diff --git a/css/hooks-Czji-hXF.css.gz b/css/hooks-Czji-hXF.css.gz deleted file mode 100644 index 3ec56377..00000000 Binary files a/css/hooks-Czji-hXF.css.gz and /dev/null differ diff --git a/css/hooks-Czji-hXF.css b/css/hooks-DBt_nOQp.css similarity index 69% rename from css/hooks-Czji-hXF.css rename to css/hooks-DBt_nOQp.css index f6918ea7..6eb79040 100644 --- a/css/hooks-Czji-hXF.css +++ b/css/hooks-DBt_nOQp.css @@ -1 +1 @@ -.ray-chart{width:var(--ray-chart-width);height:var(--ray-chart-height);border:none;outline:none;box-sizing:border-box;-webkit-transition:width .35s var(--r-bezier);transition:width .35s var(--r-bezier)}.ray-chart .ray-chart__container{width:100%;height:100%;box-sizing:border-box}.ray-collapse-grid{box-sizing:border-box}.ray-collapse-grid .collapse-icon{height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;cursor:pointer;-webkit-transition:color .3s var(--r-bezier);transition:color .3s var(--r-bezier)}.ray-collapse-grid .collapse-icon>.collapse-icon--arrow{margin-left:.5em;-webkit-transition:color .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),transform .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);-webkit-transform:rotate(270deg);transform:rotate(270deg)}.ray-collapse-grid .collapse-icon>.collapse-icon--arrow.collapse-icon--arrow__expanded{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.ray-collapse-grid .ray-collapse-grid__suffix--btn{-webkit-align-self:var(--r-collapse-grid-action-align);align-self:var(--r-collapse-grid-action-align)}.ray-icon{position:relative;width:var(--ray-icon-width);height:var(--ray-icon-height);border:none;outline:none;text-align:center;display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;color:var(--ray-icon-color);-webkit-transform:translateZ(0);transform:translateZ(0);opacity:var(--ray-icon-depth);cursor:var(--ray-icon-cursor)}.ray-icon svg[RayIconAttribute=ray-icon]{width:var(--ray-icon-width);height:var(--ray-icon-height);fill:currentColor}.ray-icon-path__animate{stroke-dasharray:var(--ray-icon-path-length);stroke-dashoffset:var(--ray-icon-path-length);-webkit-animation:rayIconPathAnimate 2s forwards;animation:rayIconPathAnimate 2s forwards}@-webkit-keyframes rayIconPathAnimate{to{stroke-dashoffset:0}}@keyframes rayIconPathAnimate{to{stroke-dashoffset:0}}.ray-iframe{width:var(--ray-iframe-width);height:var(--ray-iframe-height);box-sizing:border-box;border:var(--ray-iframe-frameborder)}.ray-iframe .ray-iframe__container{width:100%;height:100%;border:0;outline:0}.r-modal.n-card.r-modal__preset-card--fullscreen{width:100%}.r-modal.n-card.r-modal__preset-card--fullscreen .n-card__content{overflow:scroll}.r-modal.n-card{width:var(--r-modal-card-width)}.r-modal.n-dialog{width:var(--r-modal-dialog-width)}.r-table__c-tree .n-tree-node-switcher.n-tree-node-switcher--hide{visibility:visible}.r-table__c-tree .ray-icon.r-table__c-tool-icon--active{color:var(--ray-theme-primary-color)}.r-table__setting:hover{-webkit-transform:rotate(180deg);transform:rotate(180deg);-webkit-transition:-webkit-transform .3s var(--r-bezier);transition:-webkit-transform .3s var(--r-bezier);transition:transform .3s var(--r-bezier);transition:transform .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier)}.r-segment{width:var(--r-segment-width)}.r-barcode{position:relative;width:var(--r-barcode-width);height:var(--r-barcode-height);-webkit-transition:-webkit-filter .3s var(--r-bezier);transition:-webkit-filter .3s var(--r-bezier);transition:filter .3s var(--r-bezier);transition:filter .3s var(--r-bezier),-webkit-filter .3s var(--r-bezier)}.r-barcode.r-barcode--loading{-webkit-filter:blur(4px);filter:blur(4px)}.r-barcode-spin,.r-barcode-spin .n-spin-content{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;height:-webkit-max-content!important;height:-moz-max-content!important;height:max-content!important}.r-flow{width:var(--r-flow-width);height:var(--r-flow-height)}.lf-text-input,.lf-control-text,.lf-menu-item{color:initial}.r-layout-full{position:fixed;top:0;right:0;bottom:0;left:0}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container{overflow:hidden}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content{height:var(--layout-content-height);padding:16px}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content .n-scrollbar-container,.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content .n-scrollbar-container .n-scrollbar-content{height:100%}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content .content-wrapper{width:100%;height:100%}.ray-template--light .r-layout-full__viewer-content{box-shadow:0 -1px 2px #0000001f}.ray-template--dark .r-layout-full__viewer-content{box-shadow:0 -1px 2px #000000b8}.n-drawer.app-menu__drawer{width:auto!important}.n-drawer.app-menu__drawer .n-layout-sider{height:100%}.ray-template--light .app-menu__sider{box-shadow:2px 0 8px #0000001f}.ray-template--dark .app-menu__sider{box-shadow:2px 0 8px #000000b8}.ray-menu__logo{height:64px;padding:0 18px 0 24px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;gap:8px 12px;font-weight:600;overflow:hidden}.ray-menu__logo.ray-menu__logo-url{position:-webkit-sticky;position:sticky;top:0;cursor:pointer;background-color:var(--n-color);z-index:20}.ray-menu__logo .ray-menu__logo-title{opacity:0;display:none;-webkit-box-flex:1;-webkit-flex:1;flex:1;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ray-menu__logo .ray-menu__logo-title.ray-menu__logo-title--open{opacity:1;display:inline-block}.content-wrapper{box-sizing:border-box}.content-wrapper[v-cloak]{display:none}.r-layout-full__viewer-content--maximize .layout-content__maximize-out{position:fixed;width:80px;height:80px;border-radius:50%;cursor:pointer;z-index:99;right:-40px;top:-40px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-transition:color .3s var(--r-bezier),background-color .3s var(--r-bezier);transition:color .3s var(--r-bezier),background-color .3s var(--r-bezier)}.r-layout-full__viewer-content--maximize .layout-content__maximize-out .ray-icon{-webkit-transform:translate(-14px,14px);transform:translate(-14px,14px)}.ray-template--light .layout-content__maximize-out{background-color:#d5d3d1;color:#44403c}.ray-template--light .layout-content__maximize-out:hover{color:#2c2a28;background:#757473}.ray-template--dark .layout-content__maximize-out{background-color:#44403c;color:#d5d3d1}.ray-template--dark .layout-content__maximize-out:hover{color:#eae9e8;background:#a19f9d}.ray-template--dark .r-layout-full__viewer-content{background-color:#101014}.ray-template--light .r-layout-full__viewer-content{background-color:#f7f9f8}.layout-footer-wrapper{height:48px;text-align:center;line-height:48px}.ray-template--dark .layout-footer-wrapper{background-color:#18181c}.ray-template--light .layout-footer-wrapper{background-color:#fff}.layout-header{height:64px;padding:0 18px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.layout-header>.layout-header__method{width:100%}.ray-template--light .layout-header{box-shadow:0 1px 2px #0000001f}.ray-template--dark .layout-header{box-shadow:0 1px 2px #000000b8}.override-button__layout{padding:0 9px}.tooltip-text__icon{cursor:pointer;outline:none;border:none}.n-form.setting-drawer__overrides-form .n-form-item .n-form-item-blank{-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.n-breadcrumb .n-breadcrumb-item.breadcrumb-enter-active,.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active,.n-breadcrumb .n-breadcrumb-item .breadcrumb-move{-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier)}.n-breadcrumb .n-breadcrumb-item.breadcrumb-enter-from,.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active{opacity:0;-webkit-transform:translateX(20px);transform:translate(20px)}.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active{position:absolute}.global-search{position:fixed;width:650px;left:50%;margin-left:-325px;top:60px}.global-search .global-search__wrapper{box-sizing:border-box}.global-search .global-search__wrapper .global-search__card{border-radius:6px;min-width:560px}.global-search .global-search__wrapper .global-search__card .ray-icon{color:var(--ray-theme-primary-color)}.global-search .global-search__wrapper .global-search__card .n-card__action{padding:8px 12px}.global-search .global-search__wrapper .global-search__card .n-card__content,.global-search .global-search__wrapper .global-search__card .n-spin-content{min-height:90px}.global-search .global-search__wrapper .global-search__card .content-item{padding:12px;border-radius:6px;cursor:pointer;-webkit-transition:background-color .3s var(--r-bezier);transition:background-color .3s var(--r-bezier);border:1px solid var(--n-border-color)}.global-search .global-search__wrapper .global-search__card .content-item .content-item-icon{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.global-search .global-search__wrapper .global-search__card .item-icon{min-width:24px;border-radius:4px;border:1px solid var(--n-border-color);padding:3px 6px;background-color:var(--n-action-color)}.global-search .global-search__wrapper .global-search__card .item-icon,.global-search .global-search__wrapper .global-search__card .item-label{-webkit-transform:scale(.75);transform:scale(.75);font-weight:bolder}.n-flex.global-search__card-content .content-item.content-item--active,.n-flex.global-search__card-content .content-item:hover{background-color:var(--ray-theme-primary-fade-color)}.n-flex.global-search__card-content .content-item{position:relative;-webkit-transition:var(--r-bezier);transition:var(--r-bezier)}.n-flex.global-search__card-content .content-item .content-item-icon__enter{position:absolute;width:18px;height:18px;right:16px;opacity:0}.n-flex.global-search__card-content .content-item.content-item--active .content-item-icon__enter,.n-flex.global-search__card-content .content-item:hover .content-item-icon__enter{opacity:1}.global-search-btn__label{height:22px;padding:0 6px;font-size:var(--n-font-size);line-height:1;font-family:inherit;text-align:center;cursor:pointer;border-radius:var(--n-border-radius);text-decoration:none;display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-flex-shrink:0;flex-shrink:0;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border:var(--n-border);-webkit-transition:border-color .3s var(--n-bezier);transition:border-color .3s var(--n-bezier)}.global-search__btn-wrapper:hover .global-search-btn__label{border:var(--n-border-hover)}.menu-tag{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:6px 0}.menu-tag .menu-tag-space{width:calc(100% - 18px);padding:0 18px}.menu-tag .menu-tag-space .menu-tag-wrapper{width:calc(100% - 94px)}.menu-tag .menu-tag-space .ray-icon,.menu-tag .n-tag{cursor:pointer}.menu-tag .menu-tag__btn{-webkit-transition:color .3s var(--n-bezier),background-color .3s var(--n-bezier),opacity .3s var(--n-bezier),border-color .3s var(--n-bezier),width .3s var(--n-bezier);transition:color .3s var(--n-bezier),background-color .3s var(--n-bezier),opacity .3s var(--n-bezier),border-color .3s var(--n-bezier),width .3s var(--n-bezier)}.menu-tag .menu-tag__btn .n-button__icon{opacity:0;width:0;height:var(--n-icon-size);-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier);margin-left:0;-webkit-transform:translateX(4px);transform:translate(4px)}.menu-tag .menu-tag__btn:hover .n-button__icon{opacity:1;width:var(--n-icon-size);-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier)}.menu-tag__btn-icon:hover{-webkit-filter:brightness(.8);filter:brightness(.8)}.menu-tag__dropdown .menu-tag__icon{width:16px;height:16px}.menu-tag__right-setting--spinning{-webkit-animation:elementRotate .8s linear infinite;animation:elementRotate .8s linear infinite}.ray-template--light .menu-tag{box-shadow:0 2px 2px #0000001f}.ray-template--dark .menu-tag{box-shadow:0 2px 2px #000000b8}.override-button__menu-tag{padding:0 6px}.app-lock-screen__content.app-lock-screen__content--full{width:100%;height:var(--html-height);display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.app-lock-screen__content .app-lock-screen__input button[class*=n-button]{width:100%}.app-lock-screen__content .app-lock-screen__input form[class*=n-form]{margin:24px 0}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper{position:fixed;top:0;right:0;bottom:0;left:0}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg__wrapper{width:100%;height:100%;background-color:#101014}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg{position:absolute;width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:16.67rem;gap:80px;z-index:0}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg.app-lock-screen__unlock__content-bg--smaller .left,.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg.app-lock-screen__unlock__content-bg--smaller .right{font-size:90px;padding:24px;border-radius:4px}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg .left,.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg .right{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-radius:30px;background-color:#141313;font-weight:700;padding:80px;-webkit-filter:blur(4px);filter:blur(4px)}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-avatar{margin-top:5px;color:#bababa;font-weight:bolder;z-index:1}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-input{width:260px;z-index:1}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-date{position:fixed;width:100%;font-size:3rem;text-align:center;font-weight:500;bottom:24px;z-index:1}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-date .current-year,.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-date .current-date span{font-size:1.875rem;line-height:2.25rem}.ray-template--light .app-lock-screen__unlock__content-bg__wrapper{background-color:#fff!important}.ray-template--light .app-lock-screen__unlock__content-bg .left,.ray-template--light .app-lock-screen__unlock__content-bg .right{background-color:#f4f4f5!important} +.ray-chart{width:var(--ray-chart-width);height:var(--ray-chart-height);border:none;outline:none;box-sizing:border-box;-webkit-transition:width .35s var(--r-bezier);transition:width .35s var(--r-bezier)}.ray-chart .ray-chart__container{width:100%;height:100%;box-sizing:border-box}.ray-collapse-grid{box-sizing:border-box}.ray-collapse-grid .collapse-icon{height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;cursor:pointer;-webkit-transition:color .3s var(--r-bezier);transition:color .3s var(--r-bezier)}.ray-collapse-grid .collapse-icon>.collapse-icon--arrow{margin-left:.5em;-webkit-transition:color .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),transform .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);-webkit-transform:rotate(270deg);transform:rotate(270deg)}.ray-collapse-grid .collapse-icon>.collapse-icon--arrow.collapse-icon--arrow__expanded{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.ray-collapse-grid .ray-collapse-grid__suffix--btn{-webkit-align-self:var(--r-collapse-grid-action-align);align-self:var(--r-collapse-grid-action-align)}.ray-icon{position:relative;width:var(--ray-icon-width);height:var(--ray-icon-height);border:none;outline:none;text-align:center;display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;color:var(--ray-icon-color);-webkit-transform:translateZ(0);transform:translateZ(0);opacity:var(--ray-icon-depth);cursor:var(--ray-icon-cursor)}.ray-icon svg[RayIconAttribute=ray-icon]{width:var(--ray-icon-width);height:var(--ray-icon-height);fill:currentColor}.ray-icon-path__animate{stroke-dasharray:var(--ray-icon-path-length);stroke-dashoffset:var(--ray-icon-path-length);-webkit-animation:rayIconPathAnimate 2s forwards;animation:rayIconPathAnimate 2s forwards}@-webkit-keyframes rayIconPathAnimate{to{stroke-dashoffset:0}}@keyframes rayIconPathAnimate{to{stroke-dashoffset:0}}.ray-iframe{width:var(--ray-iframe-width);height:var(--ray-iframe-height);box-sizing:border-box;border:var(--ray-iframe-frameborder)}.ray-iframe .ray-iframe__container{width:100%;height:100%;border:0;outline:0}.r-modal.n-card.r-modal__preset-card--fullscreen{width:100%}.r-modal.n-card.r-modal__preset-card--fullscreen .n-card__content{overflow:scroll}.r-modal.n-card{width:var(--r-modal-card-width)}.r-modal.n-dialog{width:var(--r-modal-dialog-width)}.r-table__c-tree .n-tree-node-switcher.n-tree-node-switcher--hide{visibility:visible}.r-table__c-tree .ray-icon.r-table__c-tool-icon--active{color:var(--ray-theme-primary-color)}.r-table__setting:hover{-webkit-transform:rotate(180deg);transform:rotate(180deg);-webkit-transition:-webkit-transform .3s var(--r-bezier);transition:-webkit-transform .3s var(--r-bezier);transition:transform .3s var(--r-bezier);transition:transform .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier)}.r-segment{width:var(--r-segment-width)}.r-barcode{position:relative;width:var(--r-barcode-width);height:var(--r-barcode-height);-webkit-transition:-webkit-filter .3s var(--r-bezier);transition:-webkit-filter .3s var(--r-bezier);transition:filter .3s var(--r-bezier);transition:filter .3s var(--r-bezier),-webkit-filter .3s var(--r-bezier)}.r-barcode.r-barcode--loading{-webkit-filter:blur(4px);filter:blur(4px)}.r-barcode-spin,.r-barcode-spin .n-spin-content{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;height:-webkit-max-content!important;height:-moz-max-content!important;height:max-content!important}.r-flow{width:var(--r-flow-width);height:var(--r-flow-height)}.lf-text-input,.lf-control-text,.lf-menu-item{color:initial}.r-layout-full{position:fixed;top:0;right:0;bottom:0;left:0}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container{overflow:hidden}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content{height:var(--layout-content-height);padding:16px}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content .n-scrollbar-container,.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content .n-scrollbar-container .n-scrollbar-content{height:100%}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content .content-wrapper{width:100%;height:100%}.ray-template--light .r-layout-full__viewer-content{box-shadow:0 -1px 2px #0000001f}.ray-template--dark .r-layout-full__viewer-content{box-shadow:0 -1px 2px #000000b8}.n-drawer.app-menu__drawer{width:auto!important}.n-drawer.app-menu__drawer .n-layout-sider{height:100%}.ray-template--light .app-menu__sider{box-shadow:2px 0 8px #0000001f}.ray-template--dark .app-menu__sider{box-shadow:2px 0 8px #000000b8}.ray-menu__logo{height:64px;padding:0 18px 0 24px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;gap:8px 12px;font-weight:600;overflow:hidden}.ray-menu__logo.ray-menu__logo-url{position:-webkit-sticky;position:sticky;top:0;cursor:pointer;background-color:var(--n-color);z-index:20}.ray-menu__logo .ray-menu__logo-title{opacity:0;display:none;-webkit-box-flex:1;-webkit-flex:1;flex:1;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ray-menu__logo .ray-menu__logo-title.ray-menu__logo-title--open{opacity:1;display:inline-block}.content-wrapper{box-sizing:border-box}.content-wrapper[v-cloak]{display:none}.r-layout-full__viewer-content--maximize .layout-content__maximize-out{position:fixed;width:80px;height:80px;border-radius:50%;cursor:pointer;z-index:99;right:-40px;top:-40px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-transition:color .3s var(--r-bezier),background-color .3s var(--r-bezier);transition:color .3s var(--r-bezier),background-color .3s var(--r-bezier)}.r-layout-full__viewer-content--maximize .layout-content__maximize-out .ray-icon{-webkit-transform:translate(-14px,14px);transform:translate(-14px,14px)}.ray-template--light .layout-content__maximize-out{background-color:#d5d3d1;color:#44403c}.ray-template--light .layout-content__maximize-out:hover{color:#2c2a28;background:#757473}.ray-template--dark .layout-content__maximize-out{background-color:#44403c;color:#d5d3d1}.ray-template--dark .layout-content__maximize-out:hover{color:#eae9e8;background:#a19f9d}.ray-template--dark .r-layout-full__viewer-content{background-color:#101014}.ray-template--light .r-layout-full__viewer-content{background-color:#f7f9f8}.layout-footer-wrapper{height:48px;text-align:center;line-height:48px}.ray-template--dark .layout-footer-wrapper{background-color:#18181c}.ray-template--light .layout-footer-wrapper{background-color:#fff}.layout-header{height:64px;padding:0 18px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.layout-header>.layout-header__method{width:100%}.ray-template--light .layout-header{box-shadow:0 1px 2px #0000001f}.ray-template--dark .layout-header{box-shadow:0 1px 2px #000000b8}.override-button__layout{padding:0 9px}.tooltip-text__icon{cursor:pointer;outline:none;border:none}.n-form.setting-drawer__overrides-form .n-form-item .n-form-item-blank{-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.n-breadcrumb .n-breadcrumb-item.breadcrumb-enter-active,.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active,.n-breadcrumb .n-breadcrumb-item .breadcrumb-move{-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier)}.n-breadcrumb .n-breadcrumb-item.breadcrumb-enter-from,.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active{opacity:0;-webkit-transform:translateX(20px);transform:translate(20px)}.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active{position:absolute}.global-search{position:fixed;width:650px;left:50%;margin-left:-325px;top:60px}.global-search .global-search__wrapper{box-sizing:border-box}.global-search .global-search__wrapper .global-search__card{border-radius:6px;min-width:560px}.global-search .global-search__wrapper .global-search__card .ray-icon{color:var(--ray-theme-primary-color)}.global-search .global-search__wrapper .global-search__card .n-card__action{padding:8px 12px}.global-search .global-search__wrapper .global-search__card .n-card__content,.global-search .global-search__wrapper .global-search__card .n-spin-content{min-height:90px}.global-search .global-search__wrapper .global-search__card .content-item{padding:12px;border-radius:6px;cursor:pointer;-webkit-transition:background-color .3s var(--r-bezier);transition:background-color .3s var(--r-bezier);border:1px solid var(--n-border-color)}.global-search .global-search__wrapper .global-search__card .content-item .content-item-icon{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.global-search .global-search__wrapper .global-search__card .item-icon{min-width:24px;border-radius:4px;border:1px solid var(--n-border-color);padding:3px 6px;background-color:var(--n-action-color)}.global-search .global-search__wrapper .global-search__card .item-icon,.global-search .global-search__wrapper .global-search__card .item-label{-webkit-transform:scale(.75);transform:scale(.75);font-weight:bolder}.n-flex.global-search__card-content .content-item.content-item--active,.n-flex.global-search__card-content .content-item:hover{background-color:var(--ray-theme-primary-fade-color)}.n-flex.global-search__card-content .content-item{position:relative;-webkit-transition:var(--r-bezier);transition:var(--r-bezier)}.n-flex.global-search__card-content .content-item .content-item-icon__enter{position:absolute;width:18px;height:18px;right:16px;opacity:0}.n-flex.global-search__card-content .content-item.content-item--active .content-item-icon__enter,.n-flex.global-search__card-content .content-item:hover .content-item-icon__enter{opacity:1}.global-search-btn__label{height:22px;padding:0 6px;font-size:var(--n-font-size);line-height:1;font-family:inherit;text-align:center;cursor:pointer;border-radius:var(--n-border-radius);text-decoration:none;display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-flex-shrink:0;flex-shrink:0;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border:var(--n-border);-webkit-transition:border-color .3s var(--n-bezier);transition:border-color .3s var(--n-bezier)}.global-search__btn-wrapper:hover .global-search-btn__label{border:var(--n-border-hover)}.menu-tag{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:6px 0}.menu-tag .menu-tag-space{width:calc(100% - 18px);padding:0 18px}.menu-tag .menu-tag-space .menu-tag-wrapper{width:calc(100% - 94px)}.menu-tag .menu-tag-space .ray-icon,.menu-tag .n-tag{cursor:pointer}.menu-tag .menu-tag__btn .menu-tag__btn-icon--hidden{display:none!important}.menu-tag .menu-tag__btn .menu-tag__btn-icon{display:inline;margin-left:0;width:0;height:0;-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier);overflow:hidden;opacity:0}.menu-tag .menu-tag__btn .menu-tag__btn-icon .ray-icon{width:11px!important;height:11px!important}.menu-tag .menu-tag__btn:hover .menu-tag__btn-icon{width:14px;height:14px;margin-left:5px;font-size:12px;background-color:#0000001f;border-radius:50%;padding:1px;-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier);opacity:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.menu-tag__dropdown .menu-tag__icon{width:16px;height:16px}.menu-tag__right-setting--spinning{-webkit-animation:elementRotate .8s linear infinite;animation:elementRotate .8s linear infinite}.ray-template--light .menu-tag{box-shadow:0 2px 2px #0000001f}.ray-template--dark .menu-tag{box-shadow:0 2px 2px #000000b8}.override-button__menu-tag{padding:0 6px}.app-lock-screen__content.app-lock-screen__content--full{width:100%;height:var(--html-height);display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.app-lock-screen__content .app-lock-screen__input button[class*=n-button]{width:100%}.app-lock-screen__content .app-lock-screen__input form[class*=n-form]{margin:24px 0}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper{position:fixed;top:0;right:0;bottom:0;left:0}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg__wrapper{width:100%;height:100%;background-color:#101014}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg{position:absolute;width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:320px;gap:80px;z-index:0}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg.app-lock-screen__unlock__content-bg--smaller .left,.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg.app-lock-screen__unlock__content-bg--smaller .right{font-size:90px;padding:24px;border-radius:4px}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg .left,.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg .right{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-radius:30px;background-color:#141313;font-weight:700;padding:80px;-webkit-filter:blur(4px);filter:blur(4px)}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-avatar{margin-top:5px;color:#bababa;font-weight:bolder;z-index:1}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-input{width:260px;z-index:1}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-date{position:fixed;width:100%;font-size:3rem;text-align:center;font-weight:500;bottom:24px;z-index:1}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-date .current-year,.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-date .current-date span{font-size:1.5rem} diff --git a/css/hooks-DBt_nOQp.css.gz b/css/hooks-DBt_nOQp.css.gz new file mode 100644 index 00000000..e5fdfd5d Binary files /dev/null and b/css/hooks-DBt_nOQp.css.gz differ diff --git a/css/index-B28u0EG5.css b/css/index-B28u0EG5.css deleted file mode 100644 index 127587b1..00000000 --- a/css/index-B28u0EG5.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";[class*=transform-leave-active]{position:absolute}.fade-slide-transform-leave-active,.fade-slide-transform-enter-active{-webkit-transition:opacity .48s var(--r-bezier),-webkit-transform .48s var(--r-bezier);transition:opacity .48s var(--r-bezier),-webkit-transform .48s var(--r-bezier);transition:transform .48s var(--r-bezier),opacity .48s var(--r-bezier);transition:transform .48s var(--r-bezier),opacity .48s var(--r-bezier),-webkit-transform .48s var(--r-bezier)}.fade-slide-transform-enter-from{opacity:0;-webkit-transform:translateX(-30px);transform:translate(-30px)}.fade-slide-transform-leave-to{opacity:0;-webkit-transform:translateX(30px);transform:translate(30px)}.scale-transform-enter-active{-webkit-transition:opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);transition:opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);transition:transform .35s cubic-bezier(.33,1,.68,1),opacity .25s cubic-bezier(.33,1,.68,1);transition:transform .35s cubic-bezier(.33,1,.68,1),opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);-webkit-transition-delay:.25s;transition-delay:.25s}.scale-transform-leave-active{-webkit-transition:opacity .25s ease-out,-webkit-transform .35s cubic-bezier(.32,0,.67,0);transition:opacity .25s ease-out,-webkit-transform .35s cubic-bezier(.32,0,.67,0);transition:transform .35s cubic-bezier(.32,0,.67,0),opacity .25s ease-out;transition:transform .35s cubic-bezier(.32,0,.67,0),opacity .25s ease-out,-webkit-transform .35s cubic-bezier(.32,0,.67,0)}.scale-transform-enter-from{opacity:0;-webkit-transform:scale(.95);transform:scale(.95)}.scale-transform-leave-to{opacity:0;-webkit-transform:scale(1.03);transform:scale(1.03)}.opacity-transform-leave-active,.opacity-transform-enter-active{-webkit-transition:opacity .55s var(--r-bezier);transition:opacity .55s var(--r-bezier)}.opacity-transform-enter-from,.opacity-transform-leave-to{opacity:0}.fade-bottom-transform-enter-active{-webkit-transition:opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);transition:opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);transition:transform .35s cubic-bezier(.33,1,.68,1),opacity .25s cubic-bezier(.33,1,.68,1);transition:transform .35s cubic-bezier(.33,1,.68,1),opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);-webkit-transition-delay:.25s;transition-delay:.25s}.fade-bottom-transform-leave-active{-webkit-transition:opacity .25s ease-out,-webkit-transform .35s cubic-bezier(.32,0,.67,0);transition:opacity .25s ease-out,-webkit-transform .35s cubic-bezier(.32,0,.67,0);transition:transform .35s cubic-bezier(.32,0,.67,0),opacity .25s ease-out;transition:transform .35s cubic-bezier(.32,0,.67,0),opacity .25s ease-out,-webkit-transform .35s cubic-bezier(.32,0,.67,0)}.fade-bottom-transform-enter-from{opacity:0;-webkit-transform:translateY(-15px);transform:translateY(-15px)}.fade-bottom-transform-leave-to{opacity:0;-webkit-transform:translateY(15px);transform:translateY(15px)}.fade-scale-transform-enter-active{-webkit-transition:opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);transition:opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);transition:transform .35s cubic-bezier(.33,1,.68,1),opacity .25s cubic-bezier(.33,1,.68,1);transition:transform .35s cubic-bezier(.33,1,.68,1),opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);-webkit-transition-delay:.25s;transition-delay:.25s}.fade-scale-transform-leave-active{-webkit-transition:opacity .25s ease-out,-webkit-transform .25s cubic-bezier(.32,0,.67,0);transition:opacity .25s ease-out,-webkit-transform .25s cubic-bezier(.32,0,.67,0);transition:transform .25s cubic-bezier(.32,0,.67,0),opacity .25s ease-out;transition:transform .25s cubic-bezier(.32,0,.67,0),opacity .25s ease-out,-webkit-transform .25s cubic-bezier(.32,0,.67,0)}.fade-scale-transform-enter-from{opacity:0;-webkit-transform:scale(1.1);transform:scale(1.1)}.fade-scale-transform-leave-to{opacity:0;-webkit-transform:scale(.85);transform:scale(.85)}:root{--r-bezier: cubic-bezier(.4, 0, .2, 1)}@-webkit-keyframes elementRotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes elementRotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.r-layout-full__viewer-content .n-spin-container,.r-layout-full__viewer-content .n-spin-container .n-spin-content{width:100%;height:100%}.r-menu--app:not(.n-menu--collapsed) .n-menu-item-content.n-menu-item-content--selected:before,.r-menu--app:not(.n-menu--collapsed) .n-menu-item-content:hover:before{border-left:4px solid var(--ray-theme-primary-color);-webkit-transition:border-left .1s;transition:border-left .1s}.r-menu--app .n-menu-item-content.n-menu-item-content--selected .n-menu-item-content-header,.r-menu--app .n-menu-item-content .n-menu-item-content-header{display:-webkit-box;display:-webkit-flex;display:flex;gap:0 6px;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.r-menu--app .n-menu-item-content-header .n-ellipsis{width:calc(100% - 41px)}.r-menu--app .n-menu-item-content-header__extra{margin-right:8px}.n-date-picker,.n-input-number{width:100%}.printModal{font-family:sans-serif;display:-webkit-box;display:-webkit-flex;display:flex;text-align:center;font-weight:300;font-size:30px;left:0;top:0;position:absolute;color:#045fb4;width:100%;height:100%;background-color:#ffffffe6}.printClose{position:absolute;right:10px;top:10px}.printClose:before{content:"×";font-family:Helvetica Neue,sans-serif;font-weight:100;line-height:1px;padding-top:.5em;display:block;font-size:2em;text-indent:1px;overflow:hidden;height:1.25em;width:1.25em;text-align:center;cursor:pointer}.printSpinner{margin-top:3px;margin-left:-40px;position:absolute;display:inline-block;width:25px;height:25px;border:2px solid #045fb4;border-radius:50%;-webkit-animation:spin .75s infinite linear;animation:spin .75s infinite linear}.printSpinner:after,.printSpinner:before{left:-2px;top:-2px;display:none;position:absolute;content:"";width:inherit;height:inherit;border:inherit;border-radius:inherit}.printSpinner,.printSpinner:after,.printSpinner:before{display:inline-block;border-color:transparent;border-top-color:#045fb4;-webkit-animation-duration:1.2s;animation-duration:1.2s}.printSpinner:before{-webkit-transform:rotate(120deg);transform:rotate(120deg)}.printSpinner:after{-webkit-transform:rotate(240deg);transform:rotate(240deg)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td{margin:0;padding:0}ul,ol,li{list-style:none}fieldset,img{border:0;vertical-align:middle;border-style:none}a{background-color:transparent}sub{bottom:-.25em}sup{top:-.5em}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}html{line-height:1.15;-webkit-text-size-adjust:100%}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html .ray-template__directive--disabled{opacity:.3!important;pointer-events:none!important;cursor:not-allowed!important;-webkit-filter:brightness(.88);filter:brightness(.88)}.app-style-provider{position:fixed;display:none;z-index:-999999}.v-ripple__container{position:absolute;top:0;left:0;z-index:0;width:100%;height:100%;overflow:hidden;pointer-events:none;border-radius:inherit;contain:strict}.v-ripple__animation{position:absolute;top:0;left:0;overflow:hidden;pointer-events:none;background:currentcolor;border-radius:50%;opacity:0;will-change:transform,opacity}.v-ripple__animation--enter{opacity:0;-webkit-transition:none;transition:none}.v-ripple__animation--in{opacity:.25;-webkit-transition:opacity .2s cubic-bezier(0,0,.2,1),-webkit-transform .4s cubic-bezier(0,0,.2,1);transition:opacity .2s cubic-bezier(0,0,.2,1),-webkit-transform .4s cubic-bezier(0,0,.2,1);transition:transform .4s cubic-bezier(0,0,.2,1),opacity .2s cubic-bezier(0,0,.2,1);transition:transform .4s cubic-bezier(0,0,.2,1),opacity .2s cubic-bezier(0,0,.2,1),-webkit-transform .4s cubic-bezier(0,0,.2,1)}.v-ripple__animation--out{opacity:0;-webkit-transition:opacity .5s cubic-bezier(0,0,.2,1);transition:opacity .5s cubic-bezier(0,0,.2,1)} diff --git a/css/index-B28u0EG5.css.gz b/css/index-B28u0EG5.css.gz deleted file mode 100644 index ad44881d..00000000 Binary files a/css/index-B28u0EG5.css.gz and /dev/null differ diff --git a/css/index-BlbCQKv9.css b/css/index-BlbCQKv9.css new file mode 100644 index 00000000..d6a62f16 --- /dev/null +++ b/css/index-BlbCQKv9.css @@ -0,0 +1 @@ +@charset "UTF-8";[class*=transform-leave-active]{position:absolute}.fade-slide-transform-leave-active,.fade-slide-transform-enter-active{-webkit-transition:opacity .48s var(--r-bezier),-webkit-transform .48s var(--r-bezier);transition:opacity .48s var(--r-bezier),-webkit-transform .48s var(--r-bezier);transition:transform .48s var(--r-bezier),opacity .48s var(--r-bezier);transition:transform .48s var(--r-bezier),opacity .48s var(--r-bezier),-webkit-transform .48s var(--r-bezier)}.fade-slide-transform-enter-from{opacity:0;-webkit-transform:translateX(-30px);transform:translate(-30px)}.fade-slide-transform-leave-to{opacity:0;-webkit-transform:translateX(30px);transform:translate(30px)}.scale-transform-enter-active,.scale-transform-leave-active{-webkit-transition:opacity .45s var(--r-bezier),-webkit-transform .4s var(--r-bezier);transition:opacity .45s var(--r-bezier),-webkit-transform .4s var(--r-bezier);transition:transform .4s var(--r-bezier),opacity .45s var(--r-bezier);transition:transform .4s var(--r-bezier),opacity .45s var(--r-bezier),-webkit-transform .4s var(--r-bezier)}.scale-transform-enter-from{opacity:0;-webkit-transform:scale(.92);transform:scale(.92)}.scale-transform-leave-to{opacity:0;-webkit-transform:scale(1.06);transform:scale(1.06)}.opacity-transform-leave-active,.opacity-transform-enter-active{-webkit-transition:opacity .55s var(--r-bezier);transition:opacity .55s var(--r-bezier)}.opacity-transform-enter-from,.opacity-transform-leave-to{opacity:0}.fade-bottom-transform-enter-active,.fade-bottom-transform-leave-active{-webkit-transition:opacity .55s var(--r-bezier),-webkit-transform .45s var(--r-bezier);transition:opacity .55s var(--r-bezier),-webkit-transform .45s var(--r-bezier);transition:opacity .55s var(--r-bezier),transform .45s var(--r-bezier);transition:opacity .55s var(--r-bezier),transform .45s var(--r-bezier),-webkit-transform .45s var(--r-bezier)}.fade-bottom-transform-enter-from{opacity:0;-webkit-transform:translateY(-10%);transform:translateY(-10%)}.fade-bottom-transform-leave-to{opacity:0;-webkit-transform:translateY(10%);transform:translateY(10%)}.fade-scale-transform-leave-active,.fade-scale-transform-enter-active{-webkit-transition:all .48s var(--r-bezier);transition:all .48s var(--r-bezier)}.fade-scale-transform-enter-from{opacity:0;-webkit-transform:scale(1.2);transform:scale(1.2)}.fade-scale-transform-leave-to{opacity:0;-webkit-transform:scale(.8);transform:scale(.8)}:root{--r-bezier: cubic-bezier(.4, 0, .2, 1)}@-webkit-keyframes elementRotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes elementRotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.r-layout-full__viewer-content .n-spin-container,.r-layout-full__viewer-content .n-spin-container .n-spin-content{width:100%;height:100%}.r-menu--app:not(.n-menu--collapsed) .n-menu-item-content.n-menu-item-content--selected:before,.r-menu--app:not(.n-menu--collapsed) .n-menu-item-content:hover:before{border-left:4px solid var(--ray-theme-primary-color);-webkit-transition:border-left .1s;transition:border-left .1s}.r-menu--app .n-menu-item-content.n-menu-item-content--selected .n-menu-item-content-header,.r-menu--app .n-menu-item-content .n-menu-item-content-header{display:-webkit-box;display:-webkit-flex;display:flex;gap:0 6px;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.r-menu--app .n-menu-item-content-header .n-ellipsis{width:calc(100% - 41px)}.r-menu--app .n-menu-item-content-header__extra{margin-right:8px}.n-date-picker,.n-input-number{width:100%}.printModal{font-family:sans-serif;display:-webkit-box;display:-webkit-flex;display:flex;text-align:center;font-weight:300;font-size:30px;left:0;top:0;position:absolute;color:#045fb4;width:100%;height:100%;background-color:#ffffffe6}.printClose{position:absolute;right:10px;top:10px}.printClose:before{content:"×";font-family:Helvetica Neue,sans-serif;font-weight:100;line-height:1px;padding-top:.5em;display:block;font-size:2em;text-indent:1px;overflow:hidden;height:1.25em;width:1.25em;text-align:center;cursor:pointer}.printSpinner{margin-top:3px;margin-left:-40px;position:absolute;display:inline-block;width:25px;height:25px;border:2px solid #045fb4;border-radius:50%;-webkit-animation:spin .75s infinite linear;animation:spin .75s infinite linear}.printSpinner:after,.printSpinner:before{left:-2px;top:-2px;display:none;position:absolute;content:"";width:inherit;height:inherit;border:inherit;border-radius:inherit}.printSpinner,.printSpinner:after,.printSpinner:before{display:inline-block;border-color:transparent;border-top-color:#045fb4;-webkit-animation-duration:1.2s;animation-duration:1.2s}.printSpinner:before{-webkit-transform:rotate(120deg);transform:rotate(120deg)}.printSpinner:after{-webkit-transform:rotate(240deg);transform:rotate(240deg)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td{margin:0;padding:0}ul,ol,li{list-style:none}fieldset,img{border:0;vertical-align:middle;border-style:none}a{background-color:transparent}sub{bottom:-.25em}sup{top:-.5em}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}html{line-height:1.15;-webkit-text-size-adjust:100%}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html .ray-template__directive--disabled{opacity:.3!important;pointer-events:none!important;cursor:not-allowed!important;-webkit-filter:brightness(.88);filter:brightness(.88)}.app-style-provider{position:fixed;display:none;z-index:-999999}.v-ripple__container{position:absolute;top:0;left:0;z-index:0;width:100%;height:100%;overflow:hidden;pointer-events:none;border-radius:inherit;contain:strict}.v-ripple__animation{position:absolute;top:0;left:0;overflow:hidden;pointer-events:none;background:currentcolor;border-radius:50%;opacity:0;will-change:transform,opacity}.v-ripple__animation--enter{opacity:0;-webkit-transition:none;transition:none}.v-ripple__animation--in{opacity:.25;-webkit-transition:opacity .2s cubic-bezier(0,0,.2,1),-webkit-transform .4s cubic-bezier(0,0,.2,1);transition:opacity .2s cubic-bezier(0,0,.2,1),-webkit-transform .4s cubic-bezier(0,0,.2,1);transition:transform .4s cubic-bezier(0,0,.2,1),opacity .2s cubic-bezier(0,0,.2,1);transition:transform .4s cubic-bezier(0,0,.2,1),opacity .2s cubic-bezier(0,0,.2,1),-webkit-transform .4s cubic-bezier(0,0,.2,1)}.v-ripple__animation--out{opacity:0;-webkit-transition:opacity .5s cubic-bezier(0,0,.2,1);transition:opacity .5s cubic-bezier(0,0,.2,1)} diff --git a/css/index-BlbCQKv9.css.gz b/css/index-BlbCQKv9.css.gz new file mode 100644 index 00000000..30ca9cc4 Binary files /dev/null and b/css/index-BlbCQKv9.css.gz differ diff --git a/index.html b/index.html index 1f21d69b..3d8f8ca4 100644 --- a/index.html +++ b/index.html @@ -8,30 +8,30 @@ content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> Ray Template - - - - - + + + + + - - - + + + - - + + - - - + + + @@ -39,7 +39,7 @@ - + @@ -49,28 +49,28 @@ - + - - - + + + - + - - + + - - + + - + - + `}function c(e,n,t){const{styles:r,ids:s}=t;s.has(e)||r!==null&&(s.add(e),r.push(o(e,n)))}const d=typeof document<"u";function l(){if(d)return;const e=u(i,null);if(e!==null)return{adapter:(n,t)=>c(n,t,e),context:e}}export{l as u}; diff --git a/js/@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js.gz b/js/@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js.gz new file mode 100644 index 00000000..21eb6176 Binary files /dev/null and b/js/@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js.gz differ diff --git a/js/@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js.gz b/js/@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js.gz deleted file mode 100644 index 00f12e47..00000000 Binary files a/js/@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js.gz and /dev/null differ diff --git a/js/@vue_reactivity@3.5.12-Bs6EYLxJ.js b/js/@vue_reactivity@3.5.12-Bs6EYLxJ.js new file mode 100644 index 00000000..76d24112 --- /dev/null +++ b/js/@vue_reactivity@3.5.12-Bs6EYLxJ.js @@ -0,0 +1,5 @@ +import{i as B,a as j,h as I,b as Z,e as Yt,t as zt,c as y,E as Bt,d as ht,f as $,g as Ft,j as C,N as Gt,k as Jt,l as Ut,m as qt,r as Qt}from"./@vue_shared@3.5.12--5_uv9t5.js";/** +* @vue/reactivity v3.5.12 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let v;class Xt{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=v,!e&&v&&(this.index=(v.scopes||(v.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,s;if(this.scopes)for(e=0,s=this.scopes.length;e0)return;if(V){let e=V;for(V=void 0;e;){const s=e.next;e.next=void 0,e.flags&=-9,e=s}}let t;for(;W;){let e=W;for(W=void 0;e;){const s=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=s}}if(t)throw t}function mt(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function xt(t){let e,s=t.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),_t(n),kt(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}t.deps=e,t.depsTail=s}function ft(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(yt(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function yt(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Y))return;t.globalVersion=Y;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!ft(t)){t.flags&=-3;return}const s=h,n=b;h=t,b=!0;try{mt(t);const i=t.fn(t._value);(e.version===0||I(i,t._value))&&(t._value=i,e.version++)}catch(i){throw e.version++,i}finally{h=s,b=n,xt(t),t.flags&=-3}}function _t(t,e=!1){const{dep:s,prevSub:n,nextSub:i}=t;if(n&&(n.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=n,t.nextSub=void 0),s.subs===t&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)_t(r,!0)}!e&&!--s.sc&&s.map&&s.map.delete(s.key)}function kt(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}let b=!0;const Tt=[];function Dt(){Tt.push(b),b=!1}function It(){const t=Tt.pop();b=t===void 0?!0:t}function wt(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const s=h;h=void 0;try{e()}finally{h=s}}}let Y=0;class te{constructor(e,s){this.sub=e,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class et{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!h||!b||h===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==h)s=this.activeLink=new te(h,this),h.deps?(s.prevDep=h.depsTail,h.depsTail.nextDep=s,h.depsTail=s):h.deps=h.depsTail=s,Et(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=h.depsTail,s.nextDep=void 0,h.depsTail.nextDep=s,h.depsTail=s,h.deps===s&&(h.deps=n)}return s}trigger(e){this.version++,Y++,this.notify(e)}notify(e){pt();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{dt()}}}function Et(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)Et(n)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}}const k=new WeakMap,P=Symbol(""),ct=Symbol(""),z=Symbol("");function w(t,e,s){if(b&&h){let n=k.get(t);n||k.set(t,n=new Map);let i=n.get(s);i||(n.set(s,i=new et),i.map=n,i.key=s),i.track()}}function T(t,e,s,n,i,r){const o=k.get(t);if(!o){Y++;return}const a=f=>{f&&f.trigger()};if(pt(),e==="clear")o.forEach(a);else{const f=y(t),d=f&&ht(s);if(f&&s==="length"){const c=Number(n);o.forEach((p,_)=>{(_==="length"||_===z||!B(_)&&_>=c)&&a(p)})}else switch((s!==void 0||o.has(void 0))&&a(o.get(s)),d&&a(o.get(z)),e){case"add":f?d&&a(o.get("length")):(a(o.get(P)),C(t)&&a(o.get(ct)));break;case"delete":f||(a(o.get(P)),C(t)&&a(o.get(ct)));break;case"set":C(t)&&a(o.get(P));break}}dt()}function ee(t,e){const s=k.get(t);return s&&s.get(e)}function L(t){const e=u(t);return e===t?e:(w(e,"iterate",z),S(t)?e:e.map(g))}function vt(t){return w(t=u(t),"iterate",z),t}const se={__proto__:null,[Symbol.iterator](){return ot(this,Symbol.iterator,g)},concat(...t){return L(this).concat(...t.map(e=>y(e)?L(e):e))},entries(){return ot(this,"entries",t=>(t[1]=g(t[1]),t))},every(t,e){return x(this,"every",t,e,void 0,arguments)},filter(t,e){return x(this,"filter",t,e,s=>s.map(g),arguments)},find(t,e){return x(this,"find",t,e,g,arguments)},findIndex(t,e){return x(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return x(this,"findLast",t,e,g,arguments)},findLastIndex(t,e){return x(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return x(this,"forEach",t,e,void 0,arguments)},includes(...t){return at(this,"includes",t)},indexOf(...t){return at(this,"indexOf",t)},join(t){return L(this).join(t)},lastIndexOf(...t){return at(this,"lastIndexOf",t)},map(t,e){return x(this,"map",t,e,void 0,arguments)},pop(){return H(this,"pop")},push(...t){return H(this,"push",t)},reduce(t,...e){return Rt(this,"reduce",t,e)},reduceRight(t,...e){return Rt(this,"reduceRight",t,e)},shift(){return H(this,"shift")},some(t,e){return x(this,"some",t,e,void 0,arguments)},splice(...t){return H(this,"splice",t)},toReversed(){return L(this).toReversed()},toSorted(t){return L(this).toSorted(t)},toSpliced(...t){return L(this).toSpliced(...t)},unshift(...t){return H(this,"unshift",t)},values(){return ot(this,"values",g)}};function ot(t,e,s){const n=vt(t),i=n[e]();return n!==t&&!S(t)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.value&&(r.value=s(r.value)),r}),i}const ie=Array.prototype;function x(t,e,s,n,i,r){const o=vt(t),a=o!==t&&!S(t),f=o[e];if(f!==ie[e]){const p=f.apply(t,r);return a?g(p):p}let d=s;o!==t&&(a?d=function(p,_){return s.call(this,g(p),_,t)}:s.length>2&&(d=function(p,_){return s.call(this,p,_,t)}));const c=f.call(o,d,n);return a&&i?i(c):c}function Rt(t,e,s,n){const i=vt(t);let r=s;return i!==t&&(S(t)?s.length>3&&(r=function(o,a,f){return s.call(this,o,a,f,t)}):r=function(o,a,f){return s.call(this,o,g(a),f,t)}),i[e](r,...n)}function at(t,e,s){const n=u(t);w(n,"iterate",z);const i=n[e](...s);return(i===-1||i===!1)&&we(s[0])?(s[0]=u(s[0]),n[e](...s)):i}function H(t,e,s=[]){Dt(),pt();const n=u(t)[e].apply(t,s);return dt(),It(),n}const ne=qt("__proto__,__v_isRef,__isVue"),Mt=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(B));function re(t){B(t)||(t=String(t));const e=u(this);return w(e,"has",t),e.hasOwnProperty(t)}class Pt{constructor(e=!1,s=!1){this._isReadonly=e,this._isShallow=s}get(e,s,n){const i=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(i?r?Ht:Kt:r?jt:Lt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=y(e);if(!i){let f;if(o&&(f=se[s]))return f;if(s==="hasOwnProperty")return re}const a=Reflect.get(e,s,R(e)?e:n);return(B(s)?Mt.has(s):ne(s))||(i||w(e,"get",s),r)?a:R(a)?o&&ht(s)?a:a.value:j(a)?i?Wt(a):Ct(a):a}}class Ot extends Pt{constructor(e=!1){super(!1,e)}set(e,s,n,i){let r=e[s];if(!this._isShallow){const f=O(r);if(!S(n)&&!O(n)&&(r=u(r),n=u(n)),!y(e)&&R(r)&&!R(n))return f?!1:(r.value=n,!0)}const o=y(e)&&ht(s)?Number(s)t,q=t=>Reflect.getPrototypeOf(t);function le(t,e,s){return function(...n){const i=this.__v_raw,r=u(i),o=C(r),a=t==="entries"||t===Symbol.iterator&&o,f=t==="keys"&&o,d=i[t](...n),c=s?lt:e?ut:g;return!e&&w(r,"iterate",f?ct:P),{next(){const{value:p,done:_}=d.next();return _?{value:p,done:_}:{value:a?[c(p[0]),c(p[1])]:c(p),done:_}},[Symbol.iterator](){return this}}}}function Q(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function ue(t,e){const s={get(i){const r=this.__v_raw,o=u(r),a=u(i);t||(I(i,a)&&w(o,"get",i),w(o,"get",a));const{has:f}=q(o),d=e?lt:t?ut:g;if(f.call(o,i))return d(r.get(i));if(f.call(o,a))return d(r.get(a));r!==o&&r.get(i)},get size(){const i=this.__v_raw;return!t&&w(u(i),"iterate",P),Reflect.get(i,"size",i)},has(i){const r=this.__v_raw,o=u(r),a=u(i);return t||(I(i,a)&&w(o,"has",i),w(o,"has",a)),i===a?r.has(i):r.has(i)||r.has(a)},forEach(i,r){const o=this,a=o.__v_raw,f=u(a),d=e?lt:t?ut:g;return!t&&w(f,"iterate",P),a.forEach((c,p)=>i.call(r,d(c),d(p),o))}};return Yt(s,t?{add:Q("add"),set:Q("set"),delete:Q("delete"),clear:Q("clear")}:{add(i){!e&&!S(i)&&!O(i)&&(i=u(i));const r=u(this);return q(r).has.call(r,i)||(r.add(i),T(r,"add",i,i)),this},set(i,r){!e&&!S(r)&&!O(r)&&(r=u(r));const o=u(this),{has:a,get:f}=q(o);let d=a.call(o,i);d||(i=u(i),d=a.call(o,i));const c=f.call(o,i);return o.set(i,r),d?I(r,c)&&T(o,"set",i,r):T(o,"add",i,r),this},delete(i){const r=u(this),{has:o,get:a}=q(r);let f=o.call(r,i);f||(i=u(i),f=o.call(r,i)),a&&a.call(r,i);const d=r.delete(i);return f&&T(r,"delete",i,void 0),d},clear(){const i=u(this),r=i.size!==0,o=i.clear();return r&&T(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=le(i,t,e)}),s}function st(t,e){const s=ue(t,e);return(n,i,r)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get($(s,i)&&i in n?s:n,i,r)}const he={get:st(!1,!1)},pe={get:st(!1,!0)},de={get:st(!0,!1)},_e={get:st(!0,!0)},Lt=new WeakMap,jt=new WeakMap,Kt=new WeakMap,Ht=new WeakMap;function ve(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ge(t){return t.__v_skip||!Object.isExtensible(t)?0:ve(zt(t))}function Ct(t){return O(t)?t:it(t,!1,oe,he,Lt)}function Oe(t){return it(t,!1,fe,pe,jt)}function Wt(t){return it(t,!0,ae,de,Kt)}function Ae(t){return it(t,!0,ce,_e,Ht)}function it(t,e,s,n,i){if(!j(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=i.get(t);if(r)return r;const o=ge(t);if(o===0)return t;const a=new Proxy(t,o===2?n:s);return i.set(t,a),a}function N(t){return O(t)?N(t.__v_raw):!!(t&&t.__v_isReactive)}function O(t){return!!(t&&t.__v_isReadonly)}function S(t){return!!(t&&t.__v_isShallow)}function we(t){return t?!!t.__v_raw:!1}function u(t){const e=t&&t.__v_raw;return e?u(e):t}function Le(t){return!$(t,"__v_skip")&&Object.isExtensible(t)&&Ft(t,"__v_skip",!0),t}const g=t=>j(t)?Ct(t):t,ut=t=>j(t)?Wt(t):t;function R(t){return t?t.__v_isRef===!0:!1}function Re(t){return Vt(t,!1)}function je(t){return Vt(t,!0)}function Vt(t,e){return R(t)?t:new be(t,e)}class be{constructor(e,s){this.dep=new et,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?e:u(e),this._value=s?e:g(e),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(e){const s=this._rawValue,n=this.__v_isShallow||S(e)||O(e);e=n?e:u(e),I(e,s)&&(this._rawValue=e,this._value=n?e:g(e),this.dep.trigger())}}function Se(t){return R(t)?t.value:t}const me={get:(t,e,s)=>e==="__v_raw"?t:Se(Reflect.get(t,e,s)),set:(t,e,s,n)=>{const i=t[e];return R(i)&&!R(s)?(i.value=s,!0):Reflect.set(t,e,s,n)}};function Ke(t){return N(t)?t:new Proxy(t,me)}class xe{constructor(e){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new et,{get:n,set:i}=e(s.track.bind(s),s.trigger.bind(s));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function He(t){return new xe(t)}function Ce(t){const e=y(t)?new Array(t.length):{};for(const s in t)e[s]=Nt(t,s);return e}class ye{constructor(e,s,n){this._object=e,this._key=s,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return ee(u(this._object),this._key)}}class Te{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function We(t,e,s){return R(t)?t:Z(t)?new Te(t):j(t)&&arguments.length>1?Nt(t,e,s):Re(t)}function Nt(t,e,s){const n=t[e];return R(n)?n:new ye(t,e,s)}class De{constructor(e,s,n){this.fn=e,this.setter=s,this._value=void 0,this.dep=new et(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Y-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&h!==this)return St(this,!0),!0}get value(){const e=this.dep.track();return yt(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Ve(t,e,s=!1){let n,i;return Z(t)?n=t:(n=t.get,i=t.set),new De(n,i,s)}const X={},tt=new WeakMap;let M;function Ie(t,e=!1,s=M){if(s){let n=tt.get(s);n||tt.set(s,n=[]),n.push(t)}}function Ne(t,e,s=Bt){const{immediate:n,deep:i,once:r,scheduler:o,augmentJob:a,call:f}=s,d=l=>i?l:S(l)||i===!1||i===0?D(l,1):D(l);let c,p,_,F,G=!1,J=!1;if(R(t)?(p=()=>t.value,G=S(t)):N(t)?(p=()=>d(t),G=!0):y(t)?(J=!0,G=t.some(l=>N(l)||S(l)),p=()=>t.map(l=>{if(R(l))return l.value;if(N(l))return d(l);if(Z(l))return f?f(l,2):l()})):Z(t)?e?p=f?()=>f(t,2):t:p=()=>{if(_){Dt();try{_()}finally{It()}}const l=M;M=c;try{return f?f(t,3,[F]):t(F)}finally{M=l}}:p=Gt,e&&i){const l=p,m=i===!0?1/0:i;p=()=>D(l(),m)}const gt=Zt(),A=()=>{c.stop(),gt&&Qt(gt.effects,c)};if(r&&e){const l=e;e=(...m)=>{l(...m),A()}}let E=J?new Array(t.length).fill(X):X;const K=l=>{if(!(!(c.flags&1)||!c.dirty&&!l))if(e){const m=c.run();if(i||G||(J?m.some((nt,U)=>I(nt,E[U])):I(m,E))){_&&_();const nt=M;M=c;try{const U=[m,E===X?void 0:J&&E[0]===X?[]:E,F];f?f(e,3,U):e(...U),E=m}finally{M=nt}}}else c.run()};return a&&a(K),c=new $t(p),c.scheduler=o?()=>o(K,!1):K,F=l=>Ie(l,!1,c),_=c.onStop=()=>{const l=tt.get(c);if(l){if(f)f(l,4);else for(const m of l)m();tt.delete(c)}},e?n?K(!0):E=c.run():o?o(K.bind(null,!0),!0):c.run(),A.pause=c.pause.bind(c),A.resume=c.resume.bind(c),A.stop=A,A}function D(t,e=1/0,s){if(e<=0||!j(t)||t.__v_skip||(s=s||new Set,s.has(t)))return t;if(s.add(t),e--,R(t))D(t.value,e,s);else if(y(t))for(let n=0;n{D(n,e,s)});else if(Ut(t)){for(const n in t)D(t[n],e,s);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&D(t[n],e,s)}return t}export{Xt as E,$t as R,R as a,Dt as b,Ve as c,u as d,Ct as e,w as f,Oe as g,T as h,we as i,Ae as j,Re as k,Wt as l,Le as m,We as n,He as o,Ke as p,Zt as q,It as r,je as s,D as t,Se as u,Pe as v,Ne as w,Ce as x,Me as y,N as z}; diff --git a/js/@vue_reactivity@3.5.12-Bs6EYLxJ.js.gz b/js/@vue_reactivity@3.5.12-Bs6EYLxJ.js.gz new file mode 100644 index 00000000..233cea64 Binary files /dev/null and b/js/@vue_reactivity@3.5.12-Bs6EYLxJ.js.gz differ diff --git a/js/@vue_reactivity@3.5.13-Ch1DBDRK.js b/js/@vue_reactivity@3.5.13-Ch1DBDRK.js deleted file mode 100644 index 4613191e..00000000 --- a/js/@vue_reactivity@3.5.13-Ch1DBDRK.js +++ /dev/null @@ -1,5 +0,0 @@ -import{i as B,a as j,h as I,b as Z,e as Yt,t as zt,c as y,E as Bt,d as $,f as Ft,g as pt,N as Gt,j as Jt,k as C,l as Ut,m as qt,r as Qt}from"./@vue_shared@3.5.13-Dh1pNJXy.js";/** -* @vue/reactivity v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let v;class Xt{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=v,!e&&v&&(this.index=(v.scopes||(v.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,s;if(this.scopes)for(e=0,s=this.scopes.length;e0)return;if(V){let e=V;for(V=void 0;e;){const s=e.next;e.next=void 0,e.flags&=-9,e=s}}let t;for(;W;){let e=W;for(W=void 0;e;){const s=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=s}}if(t)throw t}function mt(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function xt(t){let e,s=t.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),vt(n),kt(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}t.deps=e,t.depsTail=s}function ct(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(yt(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function yt(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Y))return;t.globalVersion=Y;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!ct(t)){t.flags&=-3;return}const s=h,n=b;h=t,b=!0;try{mt(t);const i=t.fn(t._value);(e.version===0||I(i,t._value))&&(t._value=i,e.version++)}catch(i){throw e.version++,i}finally{h=s,b=n,xt(t),t.flags&=-3}}function vt(t,e=!1){const{dep:s,prevSub:n,nextSub:i}=t;if(n&&(n.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=n,t.nextSub=void 0),s.subs===t&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)vt(r,!0)}!e&&!--s.sc&&s.map&&s.map.delete(s.key)}function kt(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}let b=!0;const Tt=[];function Dt(){Tt.push(b),b=!1}function It(){const t=Tt.pop();b=t===void 0?!0:t}function wt(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const s=h;h=void 0;try{e()}finally{h=s}}}let Y=0;class te{constructor(e,s){this.sub=e,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class et{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!h||!b||h===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==h)s=this.activeLink=new te(h,this),h.deps?(s.prevDep=h.depsTail,h.depsTail.nextDep=s,h.depsTail=s):h.deps=h.depsTail=s,Et(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=h.depsTail,s.nextDep=void 0,h.depsTail.nextDep=s,h.depsTail=s,h.deps===s&&(h.deps=n)}return s}trigger(e){this.version++,Y++,this.notify(e)}notify(e){dt();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{_t()}}}function Et(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)Et(n)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}}const k=new WeakMap,P=Symbol(""),lt=Symbol(""),z=Symbol("");function w(t,e,s){if(b&&h){let n=k.get(t);n||k.set(t,n=new Map);let i=n.get(s);i||(n.set(s,i=new et),i.map=n,i.key=s),i.track()}}function T(t,e,s,n,i,r){const o=k.get(t);if(!o){Y++;return}const a=f=>{f&&f.trigger()};if(dt(),e==="clear")o.forEach(a);else{const f=y(t),d=f&&pt(s);if(f&&s==="length"){const c=Number(n);o.forEach((p,_)=>{(_==="length"||_===z||!B(_)&&_>=c)&&a(p)})}else switch((s!==void 0||o.has(void 0))&&a(o.get(s)),d&&a(o.get(z)),e){case"add":f?d&&a(o.get("length")):(a(o.get(P)),C(t)&&a(o.get(lt)));break;case"delete":f||(a(o.get(P)),C(t)&&a(o.get(lt)));break;case"set":C(t)&&a(o.get(P));break}}_t()}function ee(t,e){const s=k.get(t);return s&&s.get(e)}function L(t){const e=u(t);return e===t?e:(w(e,"iterate",z),S(t)?e:e.map(g))}function gt(t){return w(t=u(t),"iterate",z),t}const se={__proto__:null,[Symbol.iterator](){return at(this,Symbol.iterator,g)},concat(...t){return L(this).concat(...t.map(e=>y(e)?L(e):e))},entries(){return at(this,"entries",t=>(t[1]=g(t[1]),t))},every(t,e){return x(this,"every",t,e,void 0,arguments)},filter(t,e){return x(this,"filter",t,e,s=>s.map(g),arguments)},find(t,e){return x(this,"find",t,e,g,arguments)},findIndex(t,e){return x(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return x(this,"findLast",t,e,g,arguments)},findLastIndex(t,e){return x(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return x(this,"forEach",t,e,void 0,arguments)},includes(...t){return ft(this,"includes",t)},indexOf(...t){return ft(this,"indexOf",t)},join(t){return L(this).join(t)},lastIndexOf(...t){return ft(this,"lastIndexOf",t)},map(t,e){return x(this,"map",t,e,void 0,arguments)},pop(){return H(this,"pop")},push(...t){return H(this,"push",t)},reduce(t,...e){return Rt(this,"reduce",t,e)},reduceRight(t,...e){return Rt(this,"reduceRight",t,e)},shift(){return H(this,"shift")},some(t,e){return x(this,"some",t,e,void 0,arguments)},splice(...t){return H(this,"splice",t)},toReversed(){return L(this).toReversed()},toSorted(t){return L(this).toSorted(t)},toSpliced(...t){return L(this).toSpliced(...t)},unshift(...t){return H(this,"unshift",t)},values(){return at(this,"values",g)}};function at(t,e,s){const n=gt(t),i=n[e]();return n!==t&&!S(t)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.value&&(r.value=s(r.value)),r}),i}const ie=Array.prototype;function x(t,e,s,n,i,r){const o=gt(t),a=o!==t&&!S(t),f=o[e];if(f!==ie[e]){const p=f.apply(t,r);return a?g(p):p}let d=s;o!==t&&(a?d=function(p,_){return s.call(this,g(p),_,t)}:s.length>2&&(d=function(p,_){return s.call(this,p,_,t)}));const c=f.call(o,d,n);return a&&i?i(c):c}function Rt(t,e,s,n){const i=gt(t);let r=s;return i!==t&&(S(t)?s.length>3&&(r=function(o,a,f){return s.call(this,o,a,f,t)}):r=function(o,a,f){return s.call(this,o,g(a),f,t)}),i[e](r,...n)}function ft(t,e,s){const n=u(t);w(n,"iterate",z);const i=n[e](...s);return(i===-1||i===!1)&&we(s[0])?(s[0]=u(s[0]),n[e](...s)):i}function H(t,e,s=[]){Dt(),dt();const n=u(t)[e].apply(t,s);return _t(),It(),n}const ne=qt("__proto__,__v_isRef,__isVue"),Mt=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(B));function re(t){B(t)||(t=String(t));const e=u(this);return w(e,"has",t),e.hasOwnProperty(t)}class Pt{constructor(e=!1,s=!1){this._isReadonly=e,this._isShallow=s}get(e,s,n){if(s==="__v_skip")return e.__v_skip;const i=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(i?r?Ht:Kt:r?jt:Lt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=y(e);if(!i){let f;if(o&&(f=se[s]))return f;if(s==="hasOwnProperty")return re}const a=Reflect.get(e,s,R(e)?e:n);return(B(s)?Mt.has(s):ne(s))||(i||w(e,"get",s),r)?a:R(a)?o&&pt(s)?a:a.value:j(a)?i?Wt(a):Ct(a):a}}class Ot extends Pt{constructor(e=!1){super(!1,e)}set(e,s,n,i){let r=e[s];if(!this._isShallow){const f=O(r);if(!S(n)&&!O(n)&&(r=u(r),n=u(n)),!y(e)&&R(r)&&!R(n))return f?!1:(r.value=n,!0)}const o=y(e)&&pt(s)?Number(s)t,q=t=>Reflect.getPrototypeOf(t);function le(t,e,s){return function(...n){const i=this.__v_raw,r=u(i),o=C(r),a=t==="entries"||t===Symbol.iterator&&o,f=t==="keys"&&o,d=i[t](...n),c=s?ut:e?ht:g;return!e&&w(r,"iterate",f?lt:P),{next(){const{value:p,done:_}=d.next();return _?{value:p,done:_}:{value:a?[c(p[0]),c(p[1])]:c(p),done:_}},[Symbol.iterator](){return this}}}}function Q(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function ue(t,e){const s={get(i){const r=this.__v_raw,o=u(r),a=u(i);t||(I(i,a)&&w(o,"get",i),w(o,"get",a));const{has:f}=q(o),d=e?ut:t?ht:g;if(f.call(o,i))return d(r.get(i));if(f.call(o,a))return d(r.get(a));r!==o&&r.get(i)},get size(){const i=this.__v_raw;return!t&&w(u(i),"iterate",P),Reflect.get(i,"size",i)},has(i){const r=this.__v_raw,o=u(r),a=u(i);return t||(I(i,a)&&w(o,"has",i),w(o,"has",a)),i===a?r.has(i):r.has(i)||r.has(a)},forEach(i,r){const o=this,a=o.__v_raw,f=u(a),d=e?ut:t?ht:g;return!t&&w(f,"iterate",P),a.forEach((c,p)=>i.call(r,d(c),d(p),o))}};return Yt(s,t?{add:Q("add"),set:Q("set"),delete:Q("delete"),clear:Q("clear")}:{add(i){!e&&!S(i)&&!O(i)&&(i=u(i));const r=u(this);return q(r).has.call(r,i)||(r.add(i),T(r,"add",i,i)),this},set(i,r){!e&&!S(r)&&!O(r)&&(r=u(r));const o=u(this),{has:a,get:f}=q(o);let d=a.call(o,i);d||(i=u(i),d=a.call(o,i));const c=f.call(o,i);return o.set(i,r),d?I(r,c)&&T(o,"set",i,r):T(o,"add",i,r),this},delete(i){const r=u(this),{has:o,get:a}=q(r);let f=o.call(r,i);f||(i=u(i),f=o.call(r,i)),a&&a.call(r,i);const d=r.delete(i);return f&&T(r,"delete",i,void 0),d},clear(){const i=u(this),r=i.size!==0,o=i.clear();return r&&T(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=le(i,t,e)}),s}function st(t,e){const s=ue(t,e);return(n,i,r)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get($(s,i)&&i in n?s:n,i,r)}const he={get:st(!1,!1)},pe={get:st(!1,!0)},de={get:st(!0,!1)},_e={get:st(!0,!0)},Lt=new WeakMap,jt=new WeakMap,Kt=new WeakMap,Ht=new WeakMap;function ve(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ge(t){return t.__v_skip||!Object.isExtensible(t)?0:ve(zt(t))}function Ct(t){return O(t)?t:it(t,!1,oe,he,Lt)}function Oe(t){return it(t,!1,fe,pe,jt)}function Wt(t){return it(t,!0,ae,de,Kt)}function Ae(t){return it(t,!0,ce,_e,Ht)}function it(t,e,s,n,i){if(!j(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=i.get(t);if(r)return r;const o=ge(t);if(o===0)return t;const a=new Proxy(t,o===2?n:s);return i.set(t,a),a}function N(t){return O(t)?N(t.__v_raw):!!(t&&t.__v_isReactive)}function O(t){return!!(t&&t.__v_isReadonly)}function S(t){return!!(t&&t.__v_isShallow)}function we(t){return t?!!t.__v_raw:!1}function u(t){const e=t&&t.__v_raw;return e?u(e):t}function Le(t){return!$(t,"__v_skip")&&Object.isExtensible(t)&&Ft(t,"__v_skip",!0),t}const g=t=>j(t)?Ct(t):t,ht=t=>j(t)?Wt(t):t;function R(t){return t?t.__v_isRef===!0:!1}function Re(t){return Vt(t,!1)}function je(t){return Vt(t,!0)}function Vt(t,e){return R(t)?t:new be(t,e)}class be{constructor(e,s){this.dep=new et,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?e:u(e),this._value=s?e:g(e),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(e){const s=this._rawValue,n=this.__v_isShallow||S(e)||O(e);e=n?e:u(e),I(e,s)&&(this._rawValue=e,this._value=n?e:g(e),this.dep.trigger())}}function Se(t){return R(t)?t.value:t}const me={get:(t,e,s)=>e==="__v_raw"?t:Se(Reflect.get(t,e,s)),set:(t,e,s,n)=>{const i=t[e];return R(i)&&!R(s)?(i.value=s,!0):Reflect.set(t,e,s,n)}};function Ke(t){return N(t)?t:new Proxy(t,me)}class xe{constructor(e){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new et,{get:n,set:i}=e(s.track.bind(s),s.trigger.bind(s));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function He(t){return new xe(t)}function Ce(t){const e=y(t)?new Array(t.length):{};for(const s in t)e[s]=Nt(t,s);return e}class ye{constructor(e,s,n){this._object=e,this._key=s,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return ee(u(this._object),this._key)}}class Te{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function We(t,e,s){return R(t)?t:Z(t)?new Te(t):j(t)&&arguments.length>1?Nt(t,e,s):Re(t)}function Nt(t,e,s){const n=t[e];return R(n)?n:new ye(t,e,s)}class De{constructor(e,s,n){this.fn=e,this.setter=s,this._value=void 0,this.dep=new et(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Y-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&h!==this)return St(this,!0),!0}get value(){const e=this.dep.track();return yt(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Ve(t,e,s=!1){let n,i;return Z(t)?n=t:(n=t.get,i=t.set),new De(n,i,s)}const X={},tt=new WeakMap;let M;function Ie(t,e=!1,s=M){if(s){let n=tt.get(s);n||tt.set(s,n=[]),n.push(t)}}function Ne(t,e,s=Bt){const{immediate:n,deep:i,once:r,scheduler:o,augmentJob:a,call:f}=s,d=l=>i?l:S(l)||i===!1||i===0?D(l,1):D(l);let c,p,_,F,G=!1,J=!1;if(R(t)?(p=()=>t.value,G=S(t)):N(t)?(p=()=>d(t),G=!0):y(t)?(J=!0,G=t.some(l=>N(l)||S(l)),p=()=>t.map(l=>{if(R(l))return l.value;if(N(l))return d(l);if(Z(l))return f?f(l,2):l()})):Z(t)?e?p=f?()=>f(t,2):t:p=()=>{if(_){Dt();try{_()}finally{It()}}const l=M;M=c;try{return f?f(t,3,[F]):t(F)}finally{M=l}}:p=Gt,e&&i){const l=p,m=i===!0?1/0:i;p=()=>D(l(),m)}const nt=Zt(),A=()=>{c.stop(),nt&&nt.active&&Qt(nt.effects,c)};if(r&&e){const l=e;e=(...m)=>{l(...m),A()}}let E=J?new Array(t.length).fill(X):X;const K=l=>{if(!(!(c.flags&1)||!c.dirty&&!l))if(e){const m=c.run();if(i||G||(J?m.some((rt,U)=>I(rt,E[U])):I(m,E))){_&&_();const rt=M;M=c;try{const U=[m,E===X?void 0:J&&E[0]===X?[]:E,F];f?f(e,3,U):e(...U),E=m}finally{M=rt}}}else c.run()};return a&&a(K),c=new $t(p),c.scheduler=o?()=>o(K,!1):K,F=l=>Ie(l,!1,c),_=c.onStop=()=>{const l=tt.get(c);if(l){if(f)f(l,4);else for(const m of l)m();tt.delete(c)}},e?n?K(!0):E=c.run():o?o(K.bind(null,!0),!0):c.run(),A.pause=c.pause.bind(c),A.resume=c.resume.bind(c),A.stop=A,A}function D(t,e=1/0,s){if(e<=0||!j(t)||t.__v_skip||(s=s||new Set,s.has(t)))return t;if(s.add(t),e--,R(t))D(t.value,e,s);else if(y(t))for(let n=0;n{D(n,e,s)});else if(Ut(t)){for(const n in t)D(t[n],e,s);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&D(t[n],e,s)}return t}export{Xt as E,$t as R,R as a,Dt as b,Ve as c,u as d,Ct as e,w as f,Oe as g,T as h,we as i,Ae as j,Re as k,Wt as l,Le as m,We as n,He as o,Ke as p,Zt as q,It as r,je as s,D as t,Se as u,Pe as v,Ne as w,Ce as x,Me as y,N as z}; diff --git a/js/@vue_reactivity@3.5.13-Ch1DBDRK.js.gz b/js/@vue_reactivity@3.5.13-Ch1DBDRK.js.gz deleted file mode 100644 index 9ba6a1d9..00000000 Binary files a/js/@vue_reactivity@3.5.13-Ch1DBDRK.js.gz and /dev/null differ diff --git a/js/@vue_runtime-core@3.5.12-rIgKm_Vg.js b/js/@vue_runtime-core@3.5.12-rIgKm_Vg.js new file mode 100644 index 00000000..05983b88 --- /dev/null +++ b/js/@vue_runtime-core@3.5.12-rIgKm_Vg.js @@ -0,0 +1,5 @@ +import{w as wl,i as Ls,c as Hl,s as Nl,a as Ct,t as $l,p as Vs,m as Ll,b as Ge,r as Je,d as Ot,e as Vl,R as Ul,E as Dl,f as Us,g as jl,h as Sl}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{b as L,e as re,n as Bt,E as q,o as be,p as Ds,a as pe,c as R,q as js,s as ns,u as Ss,r as Rs,i as Rl,N as Ie,v as ke,w as Ks,x as Se,y as et,z as Kl,A as Wl,B as tt,f as Q,C as ql,D as ft,g as Gl,F as Jl,G as Lt,H as Ws}from"./@vue_shared@3.5.12--5_uv9t5.js";/** +* @vue/runtime-core v3.5.12 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function ct(e,t,s,l){try{return l?e(...l):e()}catch(n){ut(n,t,s)}}function Ee(e,t,s,l){if(L(e)){const n=ct(e,t,s,l);return n&&Ss(n)&&n.catch(r=>{ut(r,t,s)}),n}if(R(e)){const n=[];for(let r=0;r>>1,n=fe[l],r=rt(n);r=rt(s)?fe.push(e):fe.splice(Xl(t),0,e),e.flags|=1,Gs()}}function Gs(){Ft||(Ft=qs.then(Ys))}function Kt(e){R(e)?Re.push(...e):Pe&&e.id===-1?Pe.splice(je+1,0,e):e.flags&1||(Re.push(e),e.flags|=1),Gs()}function vs(e,t,s=Te+1){for(;srt(s)-rt(l));if(Re.length=0,Pe){Pe.push(...t);return}for(Pe=t,je=0;jee.id==null?e.flags&2?-1:1/0:e.id;function Ys(e){try{for(Te=0;Te{l._d&&Hs(-1);const r=vt(t);let i;try{i=e(...n)}finally{vt(r),l._d&&Hs(1)}return i};return l._n=!0,l._c=!0,l._d=!0,l}function gr(e,t){if(z===null)return e;const s=Nt(z),l=e.dirs||(e.dirs=[]);for(let n=0;ne.__isTeleport,st=e=>e&&(e.disabled||e.disabled===""),zl=e=>e&&(e.defer||e.defer===""),Ts=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ks=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Wt=(e,t)=>{const s=e&&e.to;return be(s)?t?t(s):null:s},en={name:"Teleport",__isTeleport:!0,process(e,t,s,l,n,r,i,c,u,g){const{mc:d,pc:a,pbc:m,o:{insert:x,querySelector:A,createText:O,createComment:W}}=g,V=st(t.props);let{shapeFlag:E,children:P,dynamicChildren:B}=t;if(e==null){const k=t.el=O(""),M=t.anchor=O("");x(k,s,l),x(M,s,l);const D=(I,H)=>{E&16&&(n&&n.isCE&&(n.ce._teleportTarget=I),d(P,I,H,n,r,i,c,u))},U=()=>{const I=t.target=Wt(t.props,A),H=zs(I,t,O,x);I&&(i!=="svg"&&Ts(I)?i="svg":i!=="mathml"&&ks(I)&&(i="mathml"),V||(D(I,H),yt(t,!1)))};V&&(D(s,M),yt(t,!0)),zl(t.props)?te(U,r):U()}else{t.el=e.el,t.targetStart=e.targetStart;const k=t.anchor=e.anchor,M=t.target=e.target,D=t.targetAnchor=e.targetAnchor,U=st(e.props),I=U?s:M,H=U?k:D;if(i==="svg"||Ts(M)?i="svg":(i==="mathml"||ks(M))&&(i="mathml"),B?(m(e.dynamicChildren,B,I,n,r,i,c),ds(e,t,!0)):u||a(e,t,I,H,n,r,i,c,!1),V)U?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):gt(t,s,k,g,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=Wt(t.props,A);j&>(t,j,null,g,0)}else U&>(t,M,D,g,1);yt(t,V)}},remove(e,t,s,{um:l,o:{remove:n}},r){const{shapeFlag:i,children:c,anchor:u,targetStart:g,targetAnchor:d,target:a,props:m}=e;if(a&&(n(g),n(d)),r&&n(u),i&16){const x=r||!st(m);for(let A=0;A{e.isMounted=!0}),os(()=>{e.isUnmounting=!0}),e}const me=[Function,Array],ln={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:me,onEnter:me,onAfterEnter:me,onEnterCancelled:me,onBeforeLeave:me,onLeave:me,onAfterLeave:me,onLeaveCancelled:me,onBeforeAppear:me,onAppear:me,onAfterAppear:me,onAppearCancelled:me},el=e=>{const t=e.subTree;return t.component?el(t.component):t},nn={name:"BaseTransition",props:ln,setup(e,{slots:t}){const s=ms(),l=sn();return()=>{const n=t.default&&ll(t.default(),!0);if(!n||!n.length)return;const r=tl(n),i=Ot(e),{mode:c}=i;if(l.isLeaving)return Vt(r);const u=Es(r);if(!u)return Vt(r);let g=qt(u,i,l,s,m=>g=m);u.type!==se&&We(u,g);const d=s.subTree,a=d&&Es(d);if(a&&a.type!==se&&!Ce(u,a)&&el(s).type!==se){const m=qt(a,i,l,s);if(We(a,m),c==="out-in"&&u.type!==se)return l.isLeaving=!0,m.afterLeave=()=>{l.isLeaving=!1,s.job.flags&8||s.update(),delete m.afterLeave},Vt(r);c==="in-out"&&u.type!==se&&(m.delayLeave=(x,A,O)=>{const W=sl(l,a);W[String(a.key)]=a,x[Me]=()=>{A(),x[Me]=void 0,delete g.delayedLeave},g.delayedLeave=O})}return r}}};function tl(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==se){t=s;break}}return t}const mr=nn;function sl(e,t){const{leavingVNodes:s}=e;let l=s.get(t.type);return l||(l=Object.create(null),s.set(t.type,l)),l}function qt(e,t,s,l,n){const{appear:r,mode:i,persisted:c=!1,onBeforeEnter:u,onEnter:g,onAfterEnter:d,onEnterCancelled:a,onBeforeLeave:m,onLeave:x,onAfterLeave:A,onLeaveCancelled:O,onBeforeAppear:W,onAppear:V,onAfterAppear:E,onAppearCancelled:P}=t,B=String(e.key),k=sl(s,e),M=(I,H)=>{I&&Ee(I,l,9,H)},D=(I,H)=>{const j=H[1];M(I,H),R(I)?I.every(X=>X.length<=1)&&j():I.length<=1&&j()},U={mode:i,persisted:c,beforeEnter(I){let H=u;if(!s.isMounted)if(r)H=W||u;else return;I[Me]&&I[Me](!0);const j=k[B];j&&Ce(e,j)&&j.el[Me]&&j.el[Me](),M(H,[I])},enter(I){let H=g,j=d,X=a;if(!s.isMounted)if(r)H=V||g,j=E||d,X=P||a;else return;let ee=!1;const ie=I[pt]=Ae=>{ee||(ee=!0,Ae?M(X,[I]):M(j,[I]),U.delayedLeave&&U.delayedLeave(),I[pt]=void 0)};H?D(H,[I,ie]):ie()},leave(I,H){const j=String(e.key);if(I[pt]&&I[pt](!0),s.isUnmounting)return H();M(m,[I]);let X=!1;const ee=I[Me]=ie=>{X||(X=!0,H(),ie?M(O,[I]):M(A,[I]),I[Me]=void 0,k[j]===e&&delete k[j])};k[j]=e,x?D(x,[I,ee]):ee()},clone(I){const H=qt(I,t,s,l,n);return n&&n(H),H}};return U}function Vt(e){if(Pt(e))return e=Oe(e),e.children=null,e}function Es(e){if(!Pt(e))return Zs(e.type)&&e.children?tl(e.children):e;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&L(s.default))return s.default()}}function We(e,t){e.shapeFlag&6&&e.component?(e.transition=t,We(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ll(e,t=!1,s){let l=[],n=0;for(let r=0;r1)for(let r=0;rs.value,set:r=>s.value=r})}return s}function Gt(e,t,s,l,n=!1){if(R(e)){e.forEach((A,O)=>Gt(A,t&&(R(t)?t[O]:t),s,l,n));return}if(Ve(l)&&!n)return;const r=l.shapeFlag&4?Nt(l.component):l.el,i=n?null:r,{i:c,r:u}=e,g=t&&t.r,d=c.refs===q?c.refs={}:c.refs,a=c.setupState,m=Ot(a),x=a===q?()=>!1:A=>Q(m,A);if(g!=null&&g!==u&&(be(g)?(d[g]=null,x(g)&&(a[g]=null)):Ct(g)&&(g.value=null)),L(u))ct(u,c,12,[i,d]);else{const A=be(u),O=Ct(u);if(A||O){const W=()=>{if(e.f){const V=A?x(u)?a[u]:d[u]:u.value;n?R(V)&&Rs(V,r):R(V)?V.includes(r)||V.push(r):A?(d[u]=[r],x(u)&&(a[u]=d[u])):(u.value=[r],e.k&&(d[e.k]=u.value))}else A?(d[u]=i,x(u)&&(a[u]=i)):O&&(u.value=i,e.k&&(d[e.k]=i))};i?(W.id=-1,te(W,s)):W()}}}Bt().requestIdleCallback;Bt().cancelIdleCallback;const Ve=e=>!!e.type.__asyncLoader,Pt=e=>e.type.__isKeepAlive,rn={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const s=ms(),l=s.ctx;if(!l.renderer)return()=>{const E=t.default&&t.default();return E&&E.length===1?E[0]:E};const n=new Map,r=new Set;let i=null;const c=s.suspense,{renderer:{p:u,m:g,um:d,o:{createElement:a}}}=l,m=a("div");l.activate=(E,P,B,k,M)=>{const D=E.component;g(E,P,B,0,c),u(D.vnode,E,P,B,D,c,k,E.slotScopeIds,M),te(()=>{D.isDeactivated=!1,D.a&&et(D.a);const U=E.props&&E.props.onVnodeMounted;U&&ye(U,D.parent,E)},c)},l.deactivate=E=>{const P=E.component;kt(P.m),kt(P.a),g(E,m,null,1,c),te(()=>{P.da&&et(P.da);const B=E.props&&E.props.onVnodeUnmounted;B&&ye(B,P.parent,E),P.isDeactivated=!0},c)};function x(E){Ut(E),d(E,s,c,!0)}function A(E){n.forEach((P,B)=>{const k=ls(P.type);k&&!E(k)&&O(B)})}function O(E){const P=n.get(E);P&&(!i||!Ce(P,i))?x(P):i&&Ut(i),n.delete(E),r.delete(E)}_t(()=>[e.include,e.exclude],([E,P])=>{E&&A(B=>Ze(E,B)),P&&A(B=>!Ze(P,B))},{flush:"post",deep:!0});let W=null;const V=()=>{W!=null&&(Et(s.subTree.type)?te(()=>{n.set(W,mt(s.subTree))},s.subTree.suspense):n.set(W,mt(s.subTree)))};return is(V),il(V),os(()=>{n.forEach(E=>{const{subTree:P,suspense:B}=s,k=mt(P);if(E.type===k.type&&E.key===k.key){Ut(k);const M=k.component.da;M&&te(M,B);return}x(E)})}),()=>{if(W=null,!t.default)return i=null;const E=t.default(),P=E[0];if(E.length>1)return i=null,E;if(!De(P)||!(P.shapeFlag&4)&&!(P.shapeFlag&128))return i=null,P;let B=mt(P);if(B.type===se)return i=null,B;const k=B.type,M=ls(Ve(B)?B.type.__asyncResolved||{}:k),{include:D,exclude:U,max:I}=e;if(D&&(!M||!Ze(D,M))||U&&M&&Ze(U,M))return B.shapeFlag&=-257,i=B,P;const H=B.key==null?k:B.key,j=n.get(H);return B.el&&(B=Oe(B),P.shapeFlag&128&&(P.ssContent=B)),W=H,j?(B.el=j.el,B.component=j.component,B.transition&&We(B,B.transition),B.shapeFlag|=512,r.delete(H),r.add(H)):(r.add(H),I&&r.size>parseInt(I,10)&&O(r.values().next().value)),B.shapeFlag|=256,i=B,Et(P.type)?P:B}}},_r=rn;function Ze(e,t){return R(e)?e.some(s=>Ze(s,t)):be(e)?e.split(",").includes(t):Kl(e)?(e.lastIndex=0,e.test(t)):!1}function on(e,t){rl(e,"a",t)}function fn(e,t){rl(e,"da",t)}function rl(e,t,s=le){const l=e.__wdc||(e.__wdc=()=>{let n=s;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(Mt(t,l,s),s){let n=s.parent;for(;n&&n.parent;)Pt(n.parent.vnode)&&cn(l,t,s,n),n=n.parent}}function cn(e,t,s,l){const n=Mt(t,e,l,!0);ol(()=>{Rs(l[t],n)},s)}function Ut(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function mt(e){return e.shapeFlag&128?e.ssContent:e}function Mt(e,t,s=le,l=!1){if(s){const n=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Ge();const c=at(s),u=Ee(t,s,e,i);return c(),Je(),u});return l?n.unshift(r):n.push(r),r}}const Be=e=>(t,s=le)=>{(!ot||e==="sp")&&Mt(e,(...l)=>t(...l),s)},un=Be("bm"),is=Be("m"),an=Be("bu"),il=Be("u"),os=Be("bum"),ol=Be("um"),dn=Be("sp"),hn=Be("rtg"),gn=Be("rtc");function pn(e,t=le){Mt("ec",e,t)}const fs="components",mn="directives";function xr(e,t){return cs(fs,e,!0,t)||e}const fl=Symbol.for("v-ndc");function Cr(e){return be(e)?cs(fs,e,!1)||e:e||fl}function Fr(e){return cs(mn,e)}function cs(e,t,s=!0,l=!1){const n=z||le;if(n){const r=n.type;if(e===fs){const c=ls(r,!1);if(c&&(c===t||c===ke(t)||c===Ks(ke(t))))return r}const i=As(n[e]||r[e],t)||As(n.appContext[e],t);return!i&&l?r:i}}function As(e,t){return e&&(e[t]||e[ke(t)]||e[Ks(ke(t))])}function vr(e,t,s={},l,n){if(z.ce||z.parent&&Ve(z.parent)&&z.parent.ce)return t!=="default"&&(s.name=t),At(),es(ge,null,[ce("slot",s,l)],64);let r=e[t];r&&r._c&&(r._d=!1),At();const i=r&&cl(r(s)),c=s.key||i&&i.key,u=es(ge,{key:(c&&!Rl(c)?c:`_${t}`)+(!i&&l?"_fb":"")},i||[],i&&e._===1?64:-2);return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),r&&r._c&&(r._d=!0),u}function cl(e){return e.some(t=>De(t)?!(t.type===se||t.type===ge&&!cl(t.children)):!0)?e:null}const Jt=e=>e?Ol(e)?Nt(e):Jt(e.parent):null,lt=re(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Jt(e.parent),$root:e=>Jt(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>us(e),$forceUpdate:e=>e.f||(e.f=()=>{rs(e.update)}),$nextTick:e=>e.n||(e.n=Ql.bind(e.proxy)),$watch:e=>Ln.bind(e)}),Dt=(e,t)=>e!==q&&!e.__isScriptSetup&&Q(e,t),yn={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:l,data:n,props:r,accessCache:i,type:c,appContext:u}=e;let g;if(t[0]!=="$"){const x=i[t];if(x!==void 0)switch(x){case 1:return l[t];case 2:return n[t];case 4:return s[t];case 3:return r[t]}else{if(Dt(l,t))return i[t]=1,l[t];if(n!==q&&Q(n,t))return i[t]=2,n[t];if((g=e.propsOptions[0])&&Q(g,t))return i[t]=3,r[t];if(s!==q&&Q(s,t))return i[t]=4,s[t];Qt&&(i[t]=0)}}const d=lt[t];let a,m;if(d)return t==="$attrs"&&Us(e.attrs,"get",""),d(e);if((a=c.__cssModules)&&(a=a[t]))return a;if(s!==q&&Q(s,t))return i[t]=4,s[t];if(m=u.config.globalProperties,Q(m,t))return m[t]},set({_:e},t,s){const{data:l,setupState:n,ctx:r}=e;return Dt(n,t)?(n[t]=s,!0):l!==q&&Q(l,t)?(l[t]=s,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:l,appContext:n,propsOptions:r}},i){let c;return!!s[i]||e!==q&&Q(e,i)||Dt(t,i)||(c=r[0])&&Q(c,i)||Q(l,i)||Q(lt,i)||Q(n.config.globalProperties,i)},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Q(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Yt(e){return R(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}function Tr(e,t){const s=Yt(e);for(const l in t){if(l.startsWith("__skip"))continue;let n=s[l];n?R(n)||L(n)?n=s[l]={type:n,default:t[l]}:n.default=t[l]:n===null&&(n=s[l]={default:t[l]}),n&&t[`__skip_${l}`]&&(n.skipFactory=!0)}return s}let Qt=!0;function bn(e){const t=us(e),s=e.proxy,l=e.ctx;Qt=!1,t.beforeCreate&&Is(t.beforeCreate,e,"bc");const{data:n,computed:r,methods:i,watch:c,provide:u,inject:g,created:d,beforeMount:a,mounted:m,beforeUpdate:x,updated:A,activated:O,deactivated:W,beforeDestroy:V,beforeUnmount:E,destroyed:P,unmounted:B,render:k,renderTracked:M,renderTriggered:D,errorCaptured:U,serverPrefetch:I,expose:H,inheritAttrs:j,components:X,directives:ee,filters:ie}=t;if(g&&_n(g,l,null),i)for(const G in i){const J=i[G];L(J)&&(l[G]=J.bind(s))}if(n){const G=n.call(s,s);pe(G)&&(e.data=Vl(G))}if(Qt=!0,r)for(const G in r){const J=r[G],He=L(J)?J.bind(s,s):L(J.get)?J.get.bind(s,s):Ie,dt=!L(J)&&L(J.set)?J.set.bind(s):Ie,Ne=cr({get:He,set:dt});Object.defineProperty(l,G,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:Fe=>Ne.value=Fe})}if(c)for(const G in c)ul(c[G],l,s,G);if(u){const G=L(u)?u.call(s):u;Reflect.ownKeys(G).forEach(J=>{kn(J,G[J])})}d&&Is(d,e,"c");function Z(G,J){R(J)?J.forEach(He=>G(He.bind(s))):J&&G(J.bind(s))}if(Z(un,a),Z(is,m),Z(an,x),Z(il,A),Z(on,O),Z(fn,W),Z(pn,U),Z(gn,M),Z(hn,D),Z(os,E),Z(ol,B),Z(dn,I),R(H))if(H.length){const G=e.exposed||(e.exposed={});H.forEach(J=>{Object.defineProperty(G,J,{get:()=>s[J],set:He=>s[J]=He})})}else e.exposed||(e.exposed={});k&&e.render===Ie&&(e.render=k),j!=null&&(e.inheritAttrs=j),X&&(e.components=X),ee&&(e.directives=ee),I&&nl(e)}function _n(e,t,s=Ie){R(e)&&(e=Xt(e));for(const l in e){const n=e[l];let r;pe(n)?"default"in n?r=bt(n.from||l,n.default,!0):r=bt(n.from||l):r=bt(n),Ct(r)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[l]=r}}function Is(e,t,s){Ee(R(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,s)}function ul(e,t,s,l){let n=l.includes(".")?Fl(s,l):()=>s[l];if(be(e)){const r=t[e];L(r)&&_t(n,r)}else if(L(e))_t(n,e.bind(s));else if(pe(e))if(R(e))e.forEach(r=>ul(r,t,s,l));else{const r=L(e.handler)?e.handler.bind(s):t[e.handler];L(r)&&_t(n,r,e)}}function us(e){const t=e.type,{mixins:s,extends:l}=t,{mixins:n,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,c=r.get(t);let u;return c?u=c:!n.length&&!s&&!l?u=t:(u={},n.length&&n.forEach(g=>Tt(u,g,i,!0)),Tt(u,t,i)),pe(t)&&r.set(t,u),u}function Tt(e,t,s,l=!1){const{mixins:n,extends:r}=t;r&&Tt(e,r,s,!0),n&&n.forEach(i=>Tt(e,i,s,!0));for(const i in t)if(!(l&&i==="expose")){const c=xn[i]||s&&s[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const xn={data:Os,props:Bs,emits:Bs,methods:ze,computed:ze,beforeCreate:oe,created:oe,beforeMount:oe,mounted:oe,beforeUpdate:oe,updated:oe,beforeDestroy:oe,beforeUnmount:oe,destroyed:oe,unmounted:oe,activated:oe,deactivated:oe,errorCaptured:oe,serverPrefetch:oe,components:ze,directives:ze,watch:Fn,provide:Os,inject:Cn};function Os(e,t){return t?e?function(){return re(L(e)?e.call(this,this):e,L(t)?t.call(this,this):t)}:t:e}function Cn(e,t){return ze(Xt(e),Xt(t))}function Xt(e){if(R(e)){const t={};for(let s=0;s1)return s&&L(t)?t.call(l&&l.proxy):t}}function kr(){return!!(le||z||Ue)}const dl={},hl=()=>Object.create(dl),gl=e=>Object.getPrototypeOf(e)===dl;function En(e,t,s,l=!1){const n={},r=hl();e.propsDefaults=Object.create(null),pl(e,t,n,r);for(const i in e.propsOptions[0])i in n||(n[i]=void 0);s?e.props=l?n:jl(n):e.type.props?e.props=n:e.props=r,e.attrs=r}function An(e,t,s,l){const{props:n,attrs:r,vnode:{patchFlag:i}}=e,c=Ot(n),[u]=e.propsOptions;let g=!1;if((l||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let a=0;a{u=!0;const[m,x]=ml(a,t,!0);re(i,m),x&&c.push(...x)};!s&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!u)return pe(e)&&l.set(e,Se),Se;if(R(r))for(let d=0;de[0]==="_"||e==="$stable",as=e=>R(e)?e.map(xe):[xe(e)],On=(e,t,s)=>{if(t._n)return t;const l=Zl((...n)=>as(t(...n)),s);return l._c=!1,l},bl=(e,t,s)=>{const l=e._ctx;for(const n in e){if(yl(n))continue;const r=e[n];if(L(r))t[n]=On(n,r,l);else if(r!=null){const i=as(r);t[n]=()=>i}}},_l=(e,t)=>{const s=as(t);e.slots.default=()=>s},xl=(e,t,s)=>{for(const l in t)(s||l!=="_")&&(e[l]=t[l])},Bn=(e,t,s)=>{const l=e.slots=hl();if(e.vnode.shapeFlag&32){const n=t._;n?(xl(l,t,s),s&&Gl(l,"_",n,!0)):bl(t,l)}else t&&_l(e,t)},Pn=(e,t,s)=>{const{vnode:l,slots:n}=e;let r=!0,i=q;if(l.shapeFlag&32){const c=t._;c?s&&c===1?r=!1:xl(n,t,s):(r=!t.$stable,bl(t,n)),i=t}else t&&(_l(e,t),i={default:1});if(r)for(const c in n)!yl(c)&&i[c]==null&&delete n[c]},te=Yn;function Er(e){return Mn(e)}function Mn(e,t){const s=Bt();s.__VUE__=!0;const{insert:l,remove:n,patchProp:r,createElement:i,createText:c,createComment:u,setText:g,setElementText:d,parentNode:a,nextSibling:m,setScopeId:x=Ie,insertStaticContent:A}=e,O=(o,f,h,b=null,p=null,y=null,v=void 0,F=null,C=!!f.dynamicChildren)=>{if(o===f)return;o&&!Ce(o,f)&&(b=ht(o),Fe(o,p,y,!0),o=null),f.patchFlag===-2&&(C=!1,f.dynamicChildren=null);const{type:_,ref:N,shapeFlag:T}=f;switch(_){case Ht:W(o,f,h,b);break;case se:V(o,f,h,b);break;case Rt:o==null&&E(f,h,b,v);break;case ge:X(o,f,h,b,p,y,v,F,C);break;default:T&1?k(o,f,h,b,p,y,v,F,C):T&6?ee(o,f,h,b,p,y,v,F,C):(T&64||T&128)&&_.process(o,f,h,b,p,y,v,F,C,Qe)}N!=null&&p&&Gt(N,o&&o.ref,y,f||o,!f)},W=(o,f,h,b)=>{if(o==null)l(f.el=c(f.children),h,b);else{const p=f.el=o.el;f.children!==o.children&&g(p,f.children)}},V=(o,f,h,b)=>{o==null?l(f.el=u(f.children||""),h,b):f.el=o.el},E=(o,f,h,b)=>{[o.el,o.anchor]=A(o.children,f,h,b,o.el,o.anchor)},P=({el:o,anchor:f},h,b)=>{let p;for(;o&&o!==f;)p=m(o),l(o,h,b),o=p;l(f,h,b)},B=({el:o,anchor:f})=>{let h;for(;o&&o!==f;)h=m(o),n(o),o=h;n(f)},k=(o,f,h,b,p,y,v,F,C)=>{f.type==="svg"?v="svg":f.type==="math"&&(v="mathml"),o==null?M(f,h,b,p,y,v,F,C):I(o,f,p,y,v,F,C)},M=(o,f,h,b,p,y,v,F)=>{let C,_;const{props:N,shapeFlag:T,transition:w,dirs:$}=o;if(C=o.el=i(o.type,y,N&&N.is,N),T&8?d(C,o.children):T&16&&U(o.children,C,null,b,p,jt(o,y),v,F),$&&$e(o,null,b,"created"),D(C,o,o.scopeId,v,b),N){for(const Y in N)Y!=="value"&&!tt(Y)&&r(C,Y,null,N[Y],y,b);"value"in N&&r(C,"value",null,N.value,y),(_=N.onVnodeBeforeMount)&&ye(_,b,o)}$&&$e(o,null,b,"beforeMount");const S=wn(p,w);S&&w.beforeEnter(C),l(C,f,h),((_=N&&N.onVnodeMounted)||S||$)&&te(()=>{_&&ye(_,b,o),S&&w.enter(C),$&&$e(o,null,b,"mounted")},p)},D=(o,f,h,b,p)=>{if(h&&x(o,h),b)for(let y=0;y{for(let _=C;_{const F=f.el=o.el;let{patchFlag:C,dynamicChildren:_,dirs:N}=f;C|=o.patchFlag&16;const T=o.props||q,w=f.props||q;let $;if(h&&Le(h,!1),($=w.onVnodeBeforeUpdate)&&ye($,h,f,o),N&&$e(f,o,h,"beforeUpdate"),h&&Le(h,!0),(T.innerHTML&&w.innerHTML==null||T.textContent&&w.textContent==null)&&d(F,""),_?H(o.dynamicChildren,_,F,h,b,jt(f,p),y):v||J(o,f,F,null,h,b,jt(f,p),y,!1),C>0){if(C&16)j(F,T,w,h,p);else if(C&2&&T.class!==w.class&&r(F,"class",null,w.class,p),C&4&&r(F,"style",T.style,w.style,p),C&8){const S=f.dynamicProps;for(let Y=0;Y{$&&ye($,h,f,o),N&&$e(f,o,h,"updated")},b)},H=(o,f,h,b,p,y,v)=>{for(let F=0;F{if(f!==h){if(f!==q)for(const y in f)!tt(y)&&!(y in h)&&r(o,y,f[y],null,p,b);for(const y in h){if(tt(y))continue;const v=h[y],F=f[y];v!==F&&y!=="value"&&r(o,y,F,v,p,b)}"value"in h&&r(o,"value",f.value,h.value,p)}},X=(o,f,h,b,p,y,v,F,C)=>{const _=f.el=o?o.el:c(""),N=f.anchor=o?o.anchor:c("");let{patchFlag:T,dynamicChildren:w,slotScopeIds:$}=f;$&&(F=F?F.concat($):$),o==null?(l(_,h,b),l(N,h,b),U(f.children||[],h,N,p,y,v,F,C)):T>0&&T&64&&w&&o.dynamicChildren?(H(o.dynamicChildren,w,h,p,y,v,F),(f.key!=null||p&&f===p.subTree)&&ds(o,f,!0)):J(o,f,h,N,p,y,v,F,C)},ee=(o,f,h,b,p,y,v,F,C)=>{f.slotScopeIds=F,o==null?f.shapeFlag&512?p.ctx.activate(f,h,b,v,C):ie(f,h,b,p,y,v,C):Ae(o,f,C)},ie=(o,f,h,b,p,y,v)=>{const F=o.component=lr(o,b,p);if(Pt(o)&&(F.ctx.renderer=Qe),nr(F,!1,v),F.asyncDep){if(p&&p.registerDep(F,Z,v),!o.el){const C=F.subTree=ce(se);V(null,C,f,h)}}else Z(F,o,f,h,p,y,v)},Ae=(o,f,h)=>{const b=f.component=o.component;if(Rn(o,f,h))if(b.asyncDep&&!b.asyncResolved){G(b,f,h);return}else b.next=f,b.update();else f.el=o.el,b.vnode=f},Z=(o,f,h,b,p,y,v)=>{const F=()=>{if(o.isMounted){let{next:T,bu:w,u:$,parent:S,vnode:Y}=o;{const de=Cl(o);if(de){T&&(T.el=Y.el,G(o,T,v)),de.asyncDep.then(()=>{o.isUnmounted||F()});return}}let K=T,ae;Le(o,!1),T?(T.el=Y.el,G(o,T,v)):T=Y,w&&et(w),(ae=T.props&&T.props.onVnodeBeforeUpdate)&&ye(ae,S,T,Y),Le(o,!0);const ne=St(o),_e=o.subTree;o.subTree=ne,O(_e,ne,a(_e.el),ht(_e),o,p,y),T.el=ne.el,K===null&&gs(o,ne.el),$&&te($,p),(ae=T.props&&T.props.onVnodeUpdated)&&te(()=>ye(ae,S,T,Y),p)}else{let T;const{el:w,props:$}=f,{bm:S,m:Y,parent:K,root:ae,type:ne}=o,_e=Ve(f);if(Le(o,!1),S&&et(S),!_e&&(T=$&&$.onVnodeBeforeMount)&&ye(T,K,f),Le(o,!0),w&&xs){const de=()=>{o.subTree=St(o),xs(w,o.subTree,o,p,null)};_e&&ne.__asyncHydrate?ne.__asyncHydrate(w,o,de):de()}else{ae.ce&&ae.ce._injectChildStyle(ne);const de=o.subTree=St(o);O(null,de,h,b,o,p,y),f.el=de.el}if(Y&&te(Y,p),!_e&&(T=$&&$.onVnodeMounted)){const de=f;te(()=>ye(T,K,de),p)}(f.shapeFlag&256||K&&Ve(K.vnode)&&K.vnode.shapeFlag&256)&&o.a&&te(o.a,p),o.isMounted=!0,f=h=b=null}};o.scope.on();const C=o.effect=new Ul(F);o.scope.off();const _=o.update=C.run.bind(C),N=o.job=C.runIfDirty.bind(C);N.i=o,N.id=o.uid,C.scheduler=()=>rs(N),Le(o,!0),_()},G=(o,f,h)=>{f.component=o;const b=o.vnode.props;o.vnode=f,o.next=null,An(o,f.props,b,h),Pn(o,f.children,h),Ge(),vs(o),Je()},J=(o,f,h,b,p,y,v,F,C=!1)=>{const _=o&&o.children,N=o?o.shapeFlag:0,T=f.children,{patchFlag:w,shapeFlag:$}=f;if(w>0){if(w&128){dt(_,T,h,b,p,y,v,F,C);return}else if(w&256){He(_,T,h,b,p,y,v,F,C);return}}$&8?(N&16&&Ye(_,p,y),T!==_&&d(h,T)):N&16?$&16?dt(_,T,h,b,p,y,v,F,C):Ye(_,p,y,!0):(N&8&&d(h,""),$&16&&U(T,h,b,p,y,v,F,C))},He=(o,f,h,b,p,y,v,F,C)=>{o=o||Se,f=f||Se;const _=o.length,N=f.length,T=Math.min(_,N);let w;for(w=0;wN?Ye(o,p,y,!0,!1,T):U(f,h,b,p,y,v,F,C,T)},dt=(o,f,h,b,p,y,v,F,C)=>{let _=0;const N=f.length;let T=o.length-1,w=N-1;for(;_<=T&&_<=w;){const $=o[_],S=f[_]=C?we(f[_]):xe(f[_]);if(Ce($,S))O($,S,h,null,p,y,v,F,C);else break;_++}for(;_<=T&&_<=w;){const $=o[T],S=f[w]=C?we(f[w]):xe(f[w]);if(Ce($,S))O($,S,h,null,p,y,v,F,C);else break;T--,w--}if(_>T){if(_<=w){const $=w+1,S=$w)for(;_<=T;)Fe(o[_],p,y,!0),_++;else{const $=_,S=_,Y=new Map;for(_=S;_<=w;_++){const he=f[_]=C?we(f[_]):xe(f[_]);he.key!=null&&Y.set(he.key,_)}let K,ae=0;const ne=w-S+1;let _e=!1,de=0;const Xe=new Array(ne);for(_=0;_=ne){Fe(he,p,y,!0);continue}let ve;if(he.key!=null)ve=Y.get(he.key);else for(K=S;K<=w;K++)if(Xe[K-S]===0&&Ce(he,f[K])){ve=K;break}ve===void 0?Fe(he,p,y,!0):(Xe[ve-S]=_+1,ve>=de?de=ve:_e=!0,O(he,f[ve],h,null,p,y,v,F,C),ae++)}const Cs=_e?Hn(Xe):Se;for(K=Cs.length-1,_=ne-1;_>=0;_--){const he=S+_,ve=f[he],Fs=he+1{const{el:y,type:v,transition:F,children:C,shapeFlag:_}=o;if(_&6){Ne(o.component.subTree,f,h,b);return}if(_&128){o.suspense.move(f,h,b);return}if(_&64){v.move(o,f,h,Qe);return}if(v===ge){l(y,f,h);for(let T=0;TF.enter(y),p);else{const{leave:T,delayLeave:w,afterLeave:$}=F,S=()=>l(y,f,h),Y=()=>{T(y,()=>{S(),$&&$()})};w?w(y,S,Y):Y()}else l(y,f,h)},Fe=(o,f,h,b=!1,p=!1)=>{const{type:y,props:v,ref:F,children:C,dynamicChildren:_,shapeFlag:N,patchFlag:T,dirs:w,cacheIndex:$}=o;if(T===-2&&(p=!1),F!=null&&Gt(F,null,h,o,!0),$!=null&&(f.renderCache[$]=void 0),N&256){f.ctx.deactivate(o);return}const S=N&1&&w,Y=!Ve(o);let K;if(Y&&(K=v&&v.onVnodeBeforeUnmount)&&ye(K,f,o),N&6)Ml(o.component,h,b);else{if(N&128){o.suspense.unmount(h,b);return}S&&$e(o,null,f,"beforeUnmount"),N&64?o.type.remove(o,f,h,Qe,b):_&&!_.hasOnce&&(y!==ge||T>0&&T&64)?Ye(_,f,h,!1,!0):(y===ge&&T&384||!p&&N&16)&&Ye(C,f,h),b&&ys(o)}(Y&&(K=v&&v.onVnodeUnmounted)||S)&&te(()=>{K&&ye(K,f,o),S&&$e(o,null,f,"unmounted")},h)},ys=o=>{const{type:f,el:h,anchor:b,transition:p}=o;if(f===ge){Pl(h,b);return}if(f===Rt){B(o);return}const y=()=>{n(h),p&&!p.persisted&&p.afterLeave&&p.afterLeave()};if(o.shapeFlag&1&&p&&!p.persisted){const{leave:v,delayLeave:F}=p,C=()=>v(h,y);F?F(o.el,y,C):C()}else y()},Pl=(o,f)=>{let h;for(;o!==f;)h=m(o),n(o),o=h;n(f)},Ml=(o,f,h)=>{const{bum:b,scope:p,job:y,subTree:v,um:F,m:C,a:_}=o;kt(C),kt(_),b&&et(b),p.stop(),y&&(y.flags|=8,Fe(v,o,f,h)),F&&te(F,f),te(()=>{o.isUnmounted=!0},f),f&&f.pendingBranch&&!f.isUnmounted&&o.asyncDep&&!o.asyncResolved&&o.suspenseId===f.pendingId&&(f.deps--,f.deps===0&&f.resolve())},Ye=(o,f,h,b=!1,p=!1,y=0)=>{for(let v=y;v{if(o.shapeFlag&6)return ht(o.component.subTree);if(o.shapeFlag&128)return o.suspense.next();const f=m(o.anchor||o.el),h=f&&f[Xs];return h?m(h):f};let $t=!1;const bs=(o,f,h)=>{o==null?f._vnode&&Fe(f._vnode,null,null,!0):O(f._vnode||null,o,f,null,null,null,h),f._vnode=o,$t||($t=!0,vs(),Js(),$t=!1)},Qe={p:O,um:Fe,m:Ne,r:ys,mt:ie,mc:U,pc:J,pbc:H,n:ht,o:e};let _s,xs;return{render:bs,hydrate:_s,createApp:Tn(bs,_s)}}function jt({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Le({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function wn(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ds(e,t,s=!1){const l=e.children,n=t.children;if(R(l)&&R(n))for(let r=0;r>1,e[s[c]]0&&(t[l]=s[r-1]),s[r]=l)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function Cl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Cl(t)}function kt(e){if(e)for(let t=0;tbt(Nn);function Ar(e,t){return hs(e,null,t)}function _t(e,t,s){return hs(e,t,s)}function hs(e,t,s=q){const{immediate:l,deep:n,flush:r,once:i}=s,c=re({},s),u=t&&l||!t&&r!=="post";let g;if(ot){if(r==="sync"){const x=$n();g=x.__watcherHandles||(x.__watcherHandles=[])}else if(!u){const x=()=>{};return x.stop=Ie,x.resume=Ie,x.pause=Ie,x}}const d=le;c.call=(x,A,O)=>Ee(x,d,A,O);let a=!1;r==="post"?c.scheduler=x=>{te(x,d&&d.suspense)}:r!=="sync"&&(a=!0,c.scheduler=(x,A)=>{A?x():rs(x)}),c.augmentJob=x=>{t&&(x.flags|=4),a&&(x.flags|=2,d&&(x.id=d.uid,x.i=d))};const m=wl(e,t,c);return ot&&(g?g.push(m):u&&m()),m}function Ln(e,t,s){const l=this.proxy,n=be(e)?e.includes(".")?Fl(l,e):()=>l[e]:e.bind(l,l);let r;L(t)?r=t:(r=t.handler,s=t);const i=at(this),c=hs(n,r.bind(l),s);return i(),c}function Fl(e,t){const s=t.split(".");return()=>{let l=e;for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ke(t)}Modifiers`]||e[`${ft(t)}Modifiers`];function Un(e,t,...s){if(e.isUnmounted)return;const l=e.vnode.props||q;let n=s;const r=t.startsWith("update:"),i=r&&Vn(l,t.slice(7));i&&(i.trim&&(n=s.map(d=>be(d)?d.trim():d)),i.number&&(n=s.map(Jl)));let c,u=l[c=Lt(t)]||l[c=Lt(ke(t))];!u&&r&&(u=l[c=Lt(ft(t))]),u&&Ee(u,e,6,n);const g=l[c+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Ee(g,e,6,n)}}function vl(e,t,s=!1){const l=t.emitsCache,n=l.get(e);if(n!==void 0)return n;const r=e.emits;let i={},c=!1;if(!L(e)){const u=g=>{const d=vl(g,t,!0);d&&(c=!0,re(i,d))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!c?(pe(e)&&l.set(e,null),null):(R(r)?r.forEach(u=>i[u]=null):re(i,r),pe(e)&&l.set(e,i),i)}function wt(e,t){return!e||!ns(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,ft(t))||Q(e,t))}function St(e){const{type:t,vnode:s,proxy:l,withProxy:n,propsOptions:[r],slots:i,attrs:c,emit:u,render:g,renderCache:d,props:a,data:m,setupState:x,ctx:A,inheritAttrs:O}=e,W=vt(e);let V,E;try{if(s.shapeFlag&4){const B=n||l,k=B;V=xe(g.call(k,B,d,a,x,m,A)),E=c}else{const B=t;V=xe(B.length>1?B(a,{attrs:c,slots:i,emit:u}):B(a,null)),E=t.props?c:jn(c)}}catch(B){nt.length=0,ut(B,e,1),V=ce(se)}let P=V;if(E&&O!==!1){const B=Object.keys(E),{shapeFlag:k}=P;B.length&&k&7&&(r&&B.some(Ws)&&(E=Sn(E,r)),P=Oe(P,E,!1,!0))}return s.dirs&&(P=Oe(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(s.dirs):s.dirs),s.transition&&We(P,s.transition),V=P,vt(W),V}function Dn(e,t=!0){let s;for(let l=0;l{let t;for(const s in e)(s==="class"||s==="style"||ns(s))&&((t||(t={}))[s]=e[s]);return t},Sn=(e,t)=>{const s={};for(const l in e)(!Ws(l)||!(l.slice(9)in t))&&(s[l]=e[l]);return s};function Rn(e,t,s){const{props:l,children:n,component:r}=e,{props:i,children:c,patchFlag:u}=t,g=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return l?Ms(l,i,g):!!i;if(u&8){const d=t.dynamicProps;for(let a=0;ae.__isSuspense;let zt=0;const Kn={name:"Suspense",__isSuspense:!0,process(e,t,s,l,n,r,i,c,u,g){if(e==null)Wn(t,s,l,n,r,i,c,u,g);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}qn(e,t,s,l,n,i,c,u,g)}},hydrate:Gn,normalize:Jn},Ir=Kn;function it(e,t){const s=e.props&&e.props[t];L(s)&&s()}function Wn(e,t,s,l,n,r,i,c,u){const{p:g,o:{createElement:d}}=u,a=d("div"),m=e.suspense=Tl(e,n,l,t,a,s,r,i,c,u);g(null,m.pendingBranch=e.ssContent,a,null,l,m,r,i),m.deps>0?(it(e,"onPending"),it(e,"onFallback"),g(null,e.ssFallback,t,s,l,null,r,i),Ke(m,e.ssFallback)):m.resolve(!1,!0)}function qn(e,t,s,l,n,r,i,c,{p:u,um:g,o:{createElement:d}}){const a=t.suspense=e.suspense;a.vnode=t,t.el=e.el;const m=t.ssContent,x=t.ssFallback,{activeBranch:A,pendingBranch:O,isInFallback:W,isHydrating:V}=a;if(O)a.pendingBranch=m,Ce(m,O)?(u(O,m,a.hiddenContainer,null,n,a,r,i,c),a.deps<=0?a.resolve():W&&(V||(u(A,x,s,l,n,null,r,i,c),Ke(a,x)))):(a.pendingId=zt++,V?(a.isHydrating=!1,a.activeBranch=O):g(O,n,a),a.deps=0,a.effects.length=0,a.hiddenContainer=d("div"),W?(u(null,m,a.hiddenContainer,null,n,a,r,i,c),a.deps<=0?a.resolve():(u(A,x,s,l,n,null,r,i,c),Ke(a,x))):A&&Ce(m,A)?(u(A,m,s,l,n,a,r,i,c),a.resolve(!0)):(u(null,m,a.hiddenContainer,null,n,a,r,i,c),a.deps<=0&&a.resolve()));else if(A&&Ce(m,A))u(A,m,s,l,n,a,r,i,c),Ke(a,m);else if(it(t,"onPending"),a.pendingBranch=m,m.shapeFlag&512?a.pendingId=m.component.suspenseId:a.pendingId=zt++,u(null,m,a.hiddenContainer,null,n,a,r,i,c),a.deps<=0)a.resolve();else{const{timeout:E,pendingId:P}=a;E>0?setTimeout(()=>{a.pendingId===P&&a.fallback(x)},E):E===0&&a.fallback(x)}}function Tl(e,t,s,l,n,r,i,c,u,g,d=!1){const{p:a,m,um:x,n:A,o:{parentNode:O,remove:W}}=g;let V;const E=Qn(e);E&&t&&t.pendingBranch&&(V=t.pendingId,t.deps++);const P=e.props?Wl(e.props.timeout):void 0,B=r,k={vnode:e,parent:t,parentComponent:s,namespace:i,container:l,hiddenContainer:n,deps:0,pendingId:zt++,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(M=!1,D=!1){const{vnode:U,activeBranch:I,pendingBranch:H,pendingId:j,effects:X,parentComponent:ee,container:ie}=k;let Ae=!1;k.isHydrating?k.isHydrating=!1:M||(Ae=I&&H.transition&&H.transition.mode==="out-in",Ae&&(I.transition.afterLeave=()=>{j===k.pendingId&&(m(H,ie,r===B?A(I):r,0),Kt(X))}),I&&(O(I.el)===ie&&(r=A(I)),x(I,ee,k,!0)),Ae||m(H,ie,r,0)),Ke(k,H),k.pendingBranch=null,k.isInFallback=!1;let Z=k.parent,G=!1;for(;Z;){if(Z.pendingBranch){Z.effects.push(...X),G=!0;break}Z=Z.parent}!G&&!Ae&&Kt(X),k.effects=[],E&&t&&t.pendingBranch&&V===t.pendingId&&(t.deps--,t.deps===0&&!D&&t.resolve()),it(U,"onResolve")},fallback(M){if(!k.pendingBranch)return;const{vnode:D,activeBranch:U,parentComponent:I,container:H,namespace:j}=k;it(D,"onFallback");const X=A(U),ee=()=>{k.isInFallback&&(a(null,M,H,X,I,null,j,c,u),Ke(k,M))},ie=M.transition&&M.transition.mode==="out-in";ie&&(U.transition.afterLeave=ee),k.isInFallback=!0,x(U,I,null,!0),ie||ee()},move(M,D,U){k.activeBranch&&m(k.activeBranch,M,D,U),k.container=M},next(){return k.activeBranch&&A(k.activeBranch)},registerDep(M,D,U){const I=!!k.pendingBranch;I&&k.deps++;const H=M.vnode.el;M.asyncDep.catch(j=>{ut(j,M,0)}).then(j=>{if(M.isUnmounted||k.isUnmounted||k.pendingId!==M.suspenseId)return;M.asyncResolved=!0;const{vnode:X}=M;ss(M,j,!1),H&&(X.el=H);const ee=!H&&M.subTree.el;D(M,X,O(H||M.subTree.el),H?null:A(M.subTree),k,i,U),ee&&W(ee),gs(M,X.el),I&&--k.deps===0&&k.resolve()})},unmount(M,D){k.isUnmounted=!0,k.activeBranch&&x(k.activeBranch,s,M,D),k.pendingBranch&&x(k.pendingBranch,s,M,D)}};return k}function Gn(e,t,s,l,n,r,i,c,u){const g=t.suspense=Tl(t,l,s,e.parentNode,document.createElement("div"),null,n,r,i,c,!0),d=u(e,g.pendingBranch=t.ssContent,s,g,r,i);return g.deps===0&&g.resolve(!1,!0),d}function Jn(e){const{shapeFlag:t,children:s}=e,l=t&32;e.ssContent=ws(l?s.default:s),e.ssFallback=l?ws(s.fallback):ce(se)}function ws(e){let t;if(L(e)){const s=qe&&e._c;s&&(e._d=!1,At()),e=e(),s&&(e._d=!0,t=ue,kl())}return R(e)&&(e=Dn(e)),e=xe(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function Yn(e,t){t&&t.pendingBranch?R(e)?t.effects.push(...e):t.effects.push(e):Kt(e)}function Ke(e,t){e.activeBranch=t;const{vnode:s,parentComponent:l}=e;let n=t.el;for(;!n&&t.component;)t=t.component.subTree,n=t.el;s.el=n,l&&l.subTree===s&&(l.vnode.el=n,gs(l,n))}function Qn(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ge=Symbol.for("v-fgt"),Ht=Symbol.for("v-txt"),se=Symbol.for("v-cmt"),Rt=Symbol.for("v-stc"),nt=[];let ue=null;function At(e=!1){nt.push(ue=e?null:[])}function kl(){nt.pop(),ue=nt[nt.length-1]||null}let qe=1;function Hs(e){qe+=e,e<0&&ue&&(ue.hasOnce=!0)}function El(e){return e.dynamicChildren=qe>0?ue||Se:null,kl(),qe>0&&ue&&ue.push(e),e}function Or(e,t,s,l,n,r){return El(Il(e,t,s,l,n,r,!0))}function es(e,t,s,l,n){return El(ce(e,t,s,l,n,!0))}function De(e){return e?e.__v_isVNode===!0:!1}function Ce(e,t){return e.type===t.type&&e.key===t.key}const Al=({key:e})=>e??null,xt=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||Ct(e)||L(e)?{i:z,r:e,k:t,f:!!s}:e:null);function Il(e,t=null,s=null,l=0,n=null,r=e===ge?0:1,i=!1,c=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Al(t),ref:t&&xt(t),scopeId:Qs,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:l,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:z};return c?(ps(u,s),r&128&&e.normalize(u)):s&&(u.shapeFlag|=be(s)?8:16),qe>0&&!i&&ue&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&ue.push(u),u}const ce=Xn;function Xn(e,t=null,s=null,l=0,n=null,r=!1){if((!e||e===fl)&&(e=se),De(e)){const c=Oe(e,t,!0);return s&&ps(c,s),qe>0&&!r&&ue&&(c.shapeFlag&6?ue[ue.indexOf(e)]=c:ue.push(c)),c.patchFlag=-2,c}if(fr(e)&&(e=e.__vccOpts),t){t=Zn(t);let{class:c,style:u}=t;c&&!be(c)&&(t.class=Ds(c)),pe(u)&&(Ls(u)&&!R(u)&&(u=re({},u)),t.style=js(u))}const i=be(e)?1:Et(e)?128:Zs(e)?64:pe(e)?4:L(e)?2:0;return Il(e,t,s,l,n,i,r,!0)}function Zn(e){return e?Ls(e)||gl(e)?re({},e):e:null}function Oe(e,t,s=!1,l=!1){const{props:n,ref:r,patchFlag:i,children:c,transition:u}=e,g=t?er(n||{},t):n,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&Al(g),ref:t&&t.ref?s&&r?R(r)?r.concat(xt(t)):[r,xt(t)]:xt(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Oe(e.ssContent),ssFallback:e.ssFallback&&Oe(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&l&&We(d,u.clone(d)),d}function zn(e=" ",t=0){return ce(Ht,null,e,t)}function Br(e="",t=!1){return t?(At(),es(se,null,e)):ce(se,null,e)}function xe(e){return e==null||typeof e=="boolean"?ce(se):R(e)?ce(ge,null,e.slice()):De(e)?we(e):ce(Ht,null,String(e))}function we(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Oe(e)}function ps(e,t){let s=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(R(t))s=16;else if(typeof t=="object")if(l&65){const n=t.default;n&&(n._c&&(n._d=!1),ps(e,n()),n._c&&(n._d=!0));return}else{s=32;const n=t._;!n&&!gl(t)?t._ctx=z:n===3&&z&&(z.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else L(t)?(t={default:t,_ctx:z},s=32):(t=String(t),l&64?(s=16,t=[zn(t)]):s=8);e.children=t,e.shapeFlag|=s}function er(...e){const t={};for(let s=0;sle||z;let It,ts;{const e=Bt(),t=(s,l)=>{let n;return(n=e[s])||(n=e[s]=[]),n.push(l),r=>{n.length>1?n.forEach(i=>i(r)):n[0](r)}};It=t("__VUE_INSTANCE_SETTERS__",s=>le=s),ts=t("__VUE_SSR_SETTERS__",s=>ot=s)}const at=e=>{const t=le;return It(e),e.scope.on(),()=>{e.scope.off(),It(t)}},Ns=()=>{le&&le.scope.off(),It(null)};function Ol(e){return e.vnode.shapeFlag&4}let ot=!1;function nr(e,t=!1,s=!1){t&&ts(t);const{props:l,children:n}=e.vnode,r=Ol(e);En(e,l,r,t),Bn(e,n,s);const i=r?rr(e,t):void 0;return t&&ts(!1),i}function rr(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,yn);const{setup:l}=s;if(l){Ge();const n=e.setupContext=l.length>1?or(e):null,r=at(e),i=ct(l,e,0,[e.props,n]),c=Ss(i);if(Je(),r(),(c||e.sp)&&!Ve(e)&&nl(e),c){if(i.then(Ns,Ns),t)return i.then(u=>{ss(e,u,t)}).catch(u=>{ut(u,e,0)});e.asyncDep=i}else ss(e,i,t)}else Bl(e,t)}function ss(e,t,s){L(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=Vs(t)),Bl(e,s)}let $s;function Bl(e,t,s){const l=e.type;if(!e.render){if(!t&&$s&&!l.render){const n=l.template||us(e).template;if(n){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:c,compilerOptions:u}=l,g=re(re({isCustomElement:r,delimiters:c},i),u);l.render=$s(n,g)}}e.render=l.render||Ie}{const n=at(e);Ge();try{bn(e)}finally{Je(),n()}}}const ir={get(e,t){return Us(e,"get",""),e[t]}};function or(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,ir),slots:e.slots,emit:e.emit,expose:t}}function Nt(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Vs(Ll(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in lt)return lt[s](e)},has(t,s){return s in t||s in lt}})):e.proxy}function ls(e,t=!0){return L(e)?e.displayName||e.name:e.name||t&&e.__name}function fr(e){return L(e)&&"__vccOpts"in e}const cr=(e,t)=>Hl(e,t,ot);function Pr(e,t,s){const l=arguments.length;return l===2?pe(t)&&!R(t)?De(t)?ce(e,null,[t]):ce(e,t):ce(e,null,t):(l>3?s=Array.prototype.slice.call(arguments,2):l===3&&De(s)&&(s=[s]),ce(e,t,s))}const ur="3.5.12";export{Or as A,mr as B,Zl as C,xr as D,es as E,ge as F,Cr as G,Br as H,zn as I,se as J,_r as K,on as L,fn as M,gr as N,Oe as O,ol as P,vr as Q,pr as R,Ir as S,Ht as T,kr as U,Fr as V,ln as a,ce as b,Er as c,ms as d,Ee as e,cr as f,ll as g,Pr as h,bt as i,Ar as j,is as k,yr as l,er as m,Ql as n,il as o,De as p,br as q,qt as r,We as s,un as t,sn as u,os as v,_t as w,kn as x,Tr as y,At as z}; diff --git a/js/@vue_runtime-core@3.5.12-rIgKm_Vg.js.gz b/js/@vue_runtime-core@3.5.12-rIgKm_Vg.js.gz new file mode 100644 index 00000000..2b0af3de Binary files /dev/null and b/js/@vue_runtime-core@3.5.12-rIgKm_Vg.js.gz differ diff --git a/js/@vue_runtime-core@3.5.13-BEg_yh4N.js b/js/@vue_runtime-core@3.5.13-BEg_yh4N.js deleted file mode 100644 index c947eb69..00000000 --- a/js/@vue_runtime-core@3.5.13-BEg_yh4N.js +++ /dev/null @@ -1,5 +0,0 @@ -import{w as Nl,i as Vs,c as $l,s as Ll,a as Ct,t as Vl,p as Us,m as Ul,b as Ge,r as Je,d as Bt,e as Dl,R as jl,E as Rl,f as Ds,g as Sl,h as Kl}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import{b as L,e as re,n as Pt,E as W,o as be,p as js,a as pe,c as S,q as Rs,s as ns,u as Ss,r as Ks,i as Wl,N as Ie,v as ke,w as Ws,x as Re,y as et,z as ql,A as Gl,B as tt,d as Q,C as Jl,D as ft,f as Yl,F as Ql,G as Vt,H as qs}from"./@vue_shared@3.5.13-Dh1pNJXy.js";/** -* @vue/runtime-core v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function ct(e,t,s,l){try{return l?e(...l):e()}catch(n){ut(n,t,s)}}function Ee(e,t,s,l){if(L(e)){const n=ct(e,t,s,l);return n&&Ss(n)&&n.catch(r=>{ut(r,t,s)}),n}if(S(e)){const n=[];for(let r=0;r>>1,n=fe[l],r=rt(n);r=rt(s)?fe.push(e):fe.splice(zl(t),0,e),e.flags|=1,Js()}}function Js(){Ft||(Ft=Gs.then(Qs))}function Wt(e){S(e)?Se.push(...e):Pe&&e.id===-1?Pe.splice(je+1,0,e):e.flags&1||(Se.push(e),e.flags|=1),Js()}function vs(e,t,s=Te+1){for(;srt(s)-rt(l));if(Se.length=0,Pe){Pe.push(...t);return}for(Pe=t,je=0;jee.id==null?e.flags&2?-1:1/0:e.id;function Qs(e){try{for(Te=0;Te{l._d&&Ns(-1);const r=vt(t);let i;try{i=e(...n)}finally{vt(r),l._d&&Ns(1)}return i};return l._n=!0,l._c=!0,l._d=!0,l}function gr(e,t){if(ee===null)return e;const s=$t(ee),l=e.dirs||(e.dirs=[]);for(let n=0;ne.__isTeleport,st=e=>e&&(e.disabled||e.disabled===""),Ts=e=>e&&(e.defer||e.defer===""),ks=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Es=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,qt=(e,t)=>{const s=e&&e.to;return be(s)?t?t(s):null:s},el={name:"Teleport",__isTeleport:!0,process(e,t,s,l,n,r,i,c,u,g){const{mc:a,pc:d,pbc:m,o:{insert:x,querySelector:A,createText:O,createComment:q}}=g,V=st(t.props);let{shapeFlag:E,children:P,dynamicChildren:B}=t;if(e==null){const k=t.el=O(""),M=t.anchor=O("");x(k,s,l),x(M,s,l);const D=(I,H)=>{E&16&&(n&&n.isCE&&(n.ce._teleportTarget=I),a(P,I,H,n,r,i,c,u))},U=()=>{const I=t.target=qt(t.props,A),H=tl(I,t,O,x);I&&(i!=="svg"&&ks(I)?i="svg":i!=="mathml"&&Es(I)&&(i="mathml"),V||(D(I,H),mt(t,!1)))};V&&(D(s,M),mt(t,!0)),Ts(t.props)?z(()=>{U(),t.el.__isMounted=!0},r):U()}else{if(Ts(t.props)&&!e.el.__isMounted){z(()=>{el.process(e,t,s,l,n,r,i,c,u,g),delete e.el.__isMounted},r);return}t.el=e.el,t.targetStart=e.targetStart;const k=t.anchor=e.anchor,M=t.target=e.target,D=t.targetAnchor=e.targetAnchor,U=st(e.props),I=U?s:M,H=U?k:D;if(i==="svg"||ks(M)?i="svg":(i==="mathml"||Es(M))&&(i="mathml"),B?(m(e.dynamicChildren,B,I,n,r,i,c),ds(e,t,!0)):u||d(e,t,I,H,n,r,i,c,!1),V)U?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):gt(t,s,k,g,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=qt(t.props,A);j&>(t,j,null,g,0)}else U&>(t,M,D,g,1);mt(t,V)}},remove(e,t,s,{um:l,o:{remove:n}},r){const{shapeFlag:i,children:c,anchor:u,targetStart:g,targetAnchor:a,target:d,props:m}=e;if(d&&(n(g),n(a)),r&&n(u),i&16){const x=r||!st(m);for(let A=0;A{e.isMounted=!0}),os(()=>{e.isUnmounting=!0}),e}const ye=[Function,Array],ln={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ye,onEnter:ye,onAfterEnter:ye,onEnterCancelled:ye,onBeforeLeave:ye,onLeave:ye,onAfterLeave:ye,onLeaveCancelled:ye,onBeforeAppear:ye,onAppear:ye,onAfterAppear:ye,onAppearCancelled:ye},sl=e=>{const t=e.subTree;return t.component?sl(t.component):t},nn={name:"BaseTransition",props:ln,setup(e,{slots:t}){const s=ys(),l=sn();return()=>{const n=t.default&&rl(t.default(),!0);if(!n||!n.length)return;const r=ll(n),i=Bt(e),{mode:c}=i;if(l.isLeaving)return Ut(r);const u=As(r);if(!u)return Ut(r);let g=Gt(u,i,l,s,d=>g=d);u.type!==se&&We(u,g);let a=s.subTree&&As(s.subTree);if(a&&a.type!==se&&!Ce(u,a)&&sl(s).type!==se){let d=Gt(a,i,l,s);if(We(a,d),c==="out-in"&&u.type!==se)return l.isLeaving=!0,d.afterLeave=()=>{l.isLeaving=!1,s.job.flags&8||s.update(),delete d.afterLeave,a=void 0},Ut(r);c==="in-out"&&u.type!==se?d.delayLeave=(m,x,A)=>{const O=nl(l,a);O[String(a.key)]=a,m[Me]=()=>{x(),m[Me]=void 0,delete g.delayedLeave,a=void 0},g.delayedLeave=()=>{A(),delete g.delayedLeave,a=void 0}}:a=void 0}else a&&(a=void 0);return r}}};function ll(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==se){t=s;break}}return t}const yr=nn;function nl(e,t){const{leavingVNodes:s}=e;let l=s.get(t.type);return l||(l=Object.create(null),s.set(t.type,l)),l}function Gt(e,t,s,l,n){const{appear:r,mode:i,persisted:c=!1,onBeforeEnter:u,onEnter:g,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:m,onLeave:x,onAfterLeave:A,onLeaveCancelled:O,onBeforeAppear:q,onAppear:V,onAfterAppear:E,onAppearCancelled:P}=t,B=String(e.key),k=nl(s,e),M=(I,H)=>{I&&Ee(I,l,9,H)},D=(I,H)=>{const j=H[1];M(I,H),S(I)?I.every(X=>X.length<=1)&&j():I.length<=1&&j()},U={mode:i,persisted:c,beforeEnter(I){let H=u;if(!s.isMounted)if(r)H=q||u;else return;I[Me]&&I[Me](!0);const j=k[B];j&&Ce(e,j)&&j.el[Me]&&j.el[Me](),M(H,[I])},enter(I){let H=g,j=a,X=d;if(!s.isMounted)if(r)H=V||g,j=E||a,X=P||d;else return;let te=!1;const ie=I[pt]=Ae=>{te||(te=!0,Ae?M(X,[I]):M(j,[I]),U.delayedLeave&&U.delayedLeave(),I[pt]=void 0)};H?D(H,[I,ie]):ie()},leave(I,H){const j=String(e.key);if(I[pt]&&I[pt](!0),s.isUnmounting)return H();M(m,[I]);let X=!1;const te=I[Me]=ie=>{X||(X=!0,H(),ie?M(O,[I]):M(A,[I]),I[Me]=void 0,k[j]===e&&delete k[j])};k[j]=e,x?D(x,[I,te]):te()},clone(I){const H=Gt(I,t,s,l,n);return n&&n(H),H}};return U}function Ut(e){if(Mt(e))return e=Oe(e),e.children=null,e}function As(e){if(!Mt(e))return zs(e.type)&&e.children?ll(e.children):e;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&L(s.default))return s.default()}}function We(e,t){e.shapeFlag&6&&e.component?(e.transition=t,We(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function rl(e,t=!1,s){let l=[],n=0;for(let r=0;r1)for(let r=0;rs.value,set:r=>s.value=r})}return s}function Tt(e,t,s,l,n=!1){if(S(e)){e.forEach((A,O)=>Tt(A,t&&(S(t)?t[O]:t),s,l,n));return}if(Ve(l)&&!n){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&Tt(e,t,s,l.component.subTree);return}const r=l.shapeFlag&4?$t(l.component):l.el,i=n?null:r,{i:c,r:u}=e,g=t&&t.r,a=c.refs===W?c.refs={}:c.refs,d=c.setupState,m=Bt(d),x=d===W?()=>!1:A=>Q(m,A);if(g!=null&&g!==u&&(be(g)?(a[g]=null,x(g)&&(d[g]=null)):Ct(g)&&(g.value=null)),L(u))ct(u,c,12,[i,a]);else{const A=be(u),O=Ct(u);if(A||O){const q=()=>{if(e.f){const V=A?x(u)?d[u]:a[u]:u.value;n?S(V)&&Ks(V,r):S(V)?V.includes(r)||V.push(r):A?(a[u]=[r],x(u)&&(d[u]=a[u])):(u.value=[r],e.k&&(a[e.k]=u.value))}else A?(a[u]=i,x(u)&&(d[u]=i)):O&&(u.value=i,e.k&&(a[e.k]=i))};i?(q.id=-1,z(q,s)):q()}}}Pt().requestIdleCallback;Pt().cancelIdleCallback;const Ve=e=>!!e.type.__asyncLoader,Mt=e=>e.type.__isKeepAlive,rn={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const s=ys(),l=s.ctx;if(!l.renderer)return()=>{const E=t.default&&t.default();return E&&E.length===1?E[0]:E};const n=new Map,r=new Set;let i=null;const c=s.suspense,{renderer:{p:u,m:g,um:a,o:{createElement:d}}}=l,m=d("div");l.activate=(E,P,B,k,M)=>{const D=E.component;g(E,P,B,0,c),u(D.vnode,E,P,B,D,c,k,E.slotScopeIds,M),z(()=>{D.isDeactivated=!1,D.a&&et(D.a);const U=E.props&&E.props.onVnodeMounted;U&&me(U,D.parent,E)},c)},l.deactivate=E=>{const P=E.component;Et(P.m),Et(P.a),g(E,m,null,1,c),z(()=>{P.da&&et(P.da);const B=E.props&&E.props.onVnodeUnmounted;B&&me(B,P.parent,E),P.isDeactivated=!0},c)};function x(E){Dt(E),a(E,s,c,!0)}function A(E){n.forEach((P,B)=>{const k=ls(P.type);k&&!E(k)&&O(B)})}function O(E){const P=n.get(E);P&&(!i||!Ce(P,i))?x(P):i&&Dt(i),n.delete(E),r.delete(E)}_t(()=>[e.include,e.exclude],([E,P])=>{E&&A(B=>Ze(E,B)),P&&A(B=>!Ze(P,B))},{flush:"post",deep:!0});let q=null;const V=()=>{q!=null&&(At(s.subTree.type)?z(()=>{n.set(q,yt(s.subTree))},s.subTree.suspense):n.set(q,yt(s.subTree)))};return is(V),fl(V),os(()=>{n.forEach(E=>{const{subTree:P,suspense:B}=s,k=yt(P);if(E.type===k.type&&E.key===k.key){Dt(k);const M=k.component.da;M&&z(M,B);return}x(E)})}),()=>{if(q=null,!t.default)return i=null;const E=t.default(),P=E[0];if(E.length>1)return i=null,E;if(!De(P)||!(P.shapeFlag&4)&&!(P.shapeFlag&128))return i=null,P;let B=yt(P);if(B.type===se)return i=null,B;const k=B.type,M=ls(Ve(B)?B.type.__asyncResolved||{}:k),{include:D,exclude:U,max:I}=e;if(D&&(!M||!Ze(D,M))||U&&M&&Ze(U,M))return B.shapeFlag&=-257,i=B,P;const H=B.key==null?k:B.key,j=n.get(H);return B.el&&(B=Oe(B),P.shapeFlag&128&&(P.ssContent=B)),q=H,j?(B.el=j.el,B.component=j.component,B.transition&&We(B,B.transition),B.shapeFlag|=512,r.delete(H),r.add(H)):(r.add(H),I&&r.size>parseInt(I,10)&&O(r.values().next().value)),B.shapeFlag|=256,i=B,At(P.type)?P:B}}},_r=rn;function Ze(e,t){return S(e)?e.some(s=>Ze(s,t)):be(e)?e.split(",").includes(t):ql(e)?(e.lastIndex=0,e.test(t)):!1}function on(e,t){ol(e,"a",t)}function fn(e,t){ol(e,"da",t)}function ol(e,t,s=le){const l=e.__wdc||(e.__wdc=()=>{let n=s;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(wt(t,l,s),s){let n=s.parent;for(;n&&n.parent;)Mt(n.parent.vnode)&&cn(l,t,s,n),n=n.parent}}function cn(e,t,s,l){const n=wt(t,e,l,!0);cl(()=>{Ks(l[t],n)},s)}function Dt(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function yt(e){return e.shapeFlag&128?e.ssContent:e}function wt(e,t,s=le,l=!1){if(s){const n=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Ge();const c=at(s),u=Ee(t,s,e,i);return c(),Je(),u});return l?n.unshift(r):n.push(r),r}}const Be=e=>(t,s=le)=>{(!ot||e==="sp")&&wt(e,(...l)=>t(...l),s)},un=Be("bm"),is=Be("m"),an=Be("bu"),fl=Be("u"),os=Be("bum"),cl=Be("um"),dn=Be("sp"),hn=Be("rtg"),gn=Be("rtc");function pn(e,t=le){wt("ec",e,t)}const fs="components",yn="directives";function xr(e,t){return cs(fs,e,!0,t)||e}const ul=Symbol.for("v-ndc");function Cr(e){return be(e)?cs(fs,e,!1)||e:e||ul}function Fr(e){return cs(yn,e)}function cs(e,t,s=!0,l=!1){const n=ee||le;if(n){const r=n.type;if(e===fs){const c=ls(r,!1);if(c&&(c===t||c===ke(t)||c===Ws(ke(t))))return r}const i=Is(n[e]||r[e],t)||Is(n.appContext[e],t);return!i&&l?r:i}}function Is(e,t){return e&&(e[t]||e[ke(t)]||e[Ws(ke(t))])}function vr(e,t,s={},l,n){if(ee.ce||ee.parent&&Ve(ee.parent)&&ee.parent.ce)return t!=="default"&&(s.name=t),It(),es(ge,null,[ce("slot",s,l)],64);let r=e[t];r&&r._c&&(r._d=!1),It();const i=r&&al(r(s)),c=s.key||i&&i.key,u=es(ge,{key:(c&&!Wl(c)?c:`_${t}`)+(!i&&l?"_fb":"")},i||[],i&&e._===1?64:-2);return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),r&&r._c&&(r._d=!0),u}function al(e){return e.some(t=>De(t)?!(t.type===se||t.type===ge&&!al(t.children)):!0)?e:null}const Jt=e=>e?Pl(e)?$t(e):Jt(e.parent):null,lt=re(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Jt(e.parent),$root:e=>Jt(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>us(e),$forceUpdate:e=>e.f||(e.f=()=>{rs(e.update)}),$nextTick:e=>e.n||(e.n=Zl.bind(e.proxy)),$watch:e=>Ln.bind(e)}),jt=(e,t)=>e!==W&&!e.__isScriptSetup&&Q(e,t),mn={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:l,data:n,props:r,accessCache:i,type:c,appContext:u}=e;let g;if(t[0]!=="$"){const x=i[t];if(x!==void 0)switch(x){case 1:return l[t];case 2:return n[t];case 4:return s[t];case 3:return r[t]}else{if(jt(l,t))return i[t]=1,l[t];if(n!==W&&Q(n,t))return i[t]=2,n[t];if((g=e.propsOptions[0])&&Q(g,t))return i[t]=3,r[t];if(s!==W&&Q(s,t))return i[t]=4,s[t];Qt&&(i[t]=0)}}const a=lt[t];let d,m;if(a)return t==="$attrs"&&Ds(e.attrs,"get",""),a(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(s!==W&&Q(s,t))return i[t]=4,s[t];if(m=u.config.globalProperties,Q(m,t))return m[t]},set({_:e},t,s){const{data:l,setupState:n,ctx:r}=e;return jt(n,t)?(n[t]=s,!0):l!==W&&Q(l,t)?(l[t]=s,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:l,appContext:n,propsOptions:r}},i){let c;return!!s[i]||e!==W&&Q(e,i)||jt(t,i)||(c=r[0])&&Q(c,i)||Q(l,i)||Q(lt,i)||Q(n.config.globalProperties,i)},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Q(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Yt(e){return S(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}function Tr(e,t){const s=Yt(e);for(const l in t){if(l.startsWith("__skip"))continue;let n=s[l];n?S(n)||L(n)?n=s[l]={type:n,default:t[l]}:n.default=t[l]:n===null&&(n=s[l]={default:t[l]}),n&&t[`__skip_${l}`]&&(n.skipFactory=!0)}return s}let Qt=!0;function bn(e){const t=us(e),s=e.proxy,l=e.ctx;Qt=!1,t.beforeCreate&&Os(t.beforeCreate,e,"bc");const{data:n,computed:r,methods:i,watch:c,provide:u,inject:g,created:a,beforeMount:d,mounted:m,beforeUpdate:x,updated:A,activated:O,deactivated:q,beforeDestroy:V,beforeUnmount:E,destroyed:P,unmounted:B,render:k,renderTracked:M,renderTriggered:D,errorCaptured:U,serverPrefetch:I,expose:H,inheritAttrs:j,components:X,directives:te,filters:ie}=t;if(g&&_n(g,l,null),i)for(const G in i){const J=i[G];L(J)&&(l[G]=J.bind(s))}if(n){const G=n.call(s,s);pe(G)&&(e.data=Dl(G))}if(Qt=!0,r)for(const G in r){const J=r[G],He=L(J)?J.bind(s,s):L(J.get)?J.get.bind(s,s):Ie,dt=!L(J)&&L(J.set)?J.set.bind(s):Ie,Ne=cr({get:He,set:dt});Object.defineProperty(l,G,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:Fe=>Ne.value=Fe})}if(c)for(const G in c)dl(c[G],l,s,G);if(u){const G=L(u)?u.call(s):u;Reflect.ownKeys(G).forEach(J=>{kn(J,G[J])})}a&&Os(a,e,"c");function Z(G,J){S(J)?J.forEach(He=>G(He.bind(s))):J&&G(J.bind(s))}if(Z(un,d),Z(is,m),Z(an,x),Z(fl,A),Z(on,O),Z(fn,q),Z(pn,U),Z(gn,M),Z(hn,D),Z(os,E),Z(cl,B),Z(dn,I),S(H))if(H.length){const G=e.exposed||(e.exposed={});H.forEach(J=>{Object.defineProperty(G,J,{get:()=>s[J],set:He=>s[J]=He})})}else e.exposed||(e.exposed={});k&&e.render===Ie&&(e.render=k),j!=null&&(e.inheritAttrs=j),X&&(e.components=X),te&&(e.directives=te),I&&il(e)}function _n(e,t,s=Ie){S(e)&&(e=Xt(e));for(const l in e){const n=e[l];let r;pe(n)?"default"in n?r=bt(n.from||l,n.default,!0):r=bt(n.from||l):r=bt(n),Ct(r)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[l]=r}}function Os(e,t,s){Ee(S(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,s)}function dl(e,t,s,l){let n=l.includes(".")?Tl(s,l):()=>s[l];if(be(e)){const r=t[e];L(r)&&_t(n,r)}else if(L(e))_t(n,e.bind(s));else if(pe(e))if(S(e))e.forEach(r=>dl(r,t,s,l));else{const r=L(e.handler)?e.handler.bind(s):t[e.handler];L(r)&&_t(n,r,e)}}function us(e){const t=e.type,{mixins:s,extends:l}=t,{mixins:n,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,c=r.get(t);let u;return c?u=c:!n.length&&!s&&!l?u=t:(u={},n.length&&n.forEach(g=>kt(u,g,i,!0)),kt(u,t,i)),pe(t)&&r.set(t,u),u}function kt(e,t,s,l=!1){const{mixins:n,extends:r}=t;r&&kt(e,r,s,!0),n&&n.forEach(i=>kt(e,i,s,!0));for(const i in t)if(!(l&&i==="expose")){const c=xn[i]||s&&s[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const xn={data:Bs,props:Ps,emits:Ps,methods:ze,computed:ze,beforeCreate:oe,created:oe,beforeMount:oe,mounted:oe,beforeUpdate:oe,updated:oe,beforeDestroy:oe,beforeUnmount:oe,destroyed:oe,unmounted:oe,activated:oe,deactivated:oe,errorCaptured:oe,serverPrefetch:oe,components:ze,directives:ze,watch:Fn,provide:Bs,inject:Cn};function Bs(e,t){return t?e?function(){return re(L(e)?e.call(this,this):e,L(t)?t.call(this,this):t)}:t:e}function Cn(e,t){return ze(Xt(e),Xt(t))}function Xt(e){if(S(e)){const t={};for(let s=0;s1)return s&&L(t)?t.call(l&&l.proxy):t}}function kr(){return!!(le||ee||Ue)}const gl={},pl=()=>Object.create(gl),yl=e=>Object.getPrototypeOf(e)===gl;function En(e,t,s,l=!1){const n={},r=pl();e.propsDefaults=Object.create(null),ml(e,t,n,r);for(const i in e.propsOptions[0])i in n||(n[i]=void 0);s?e.props=l?n:Sl(n):e.type.props?e.props=n:e.props=r,e.attrs=r}function An(e,t,s,l){const{props:n,attrs:r,vnode:{patchFlag:i}}=e,c=Bt(n),[u]=e.propsOptions;let g=!1;if((l||i>0)&&!(i&16)){if(i&8){const a=e.vnode.dynamicProps;for(let d=0;d{u=!0;const[m,x]=bl(d,t,!0);re(i,m),x&&c.push(...x)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!r&&!u)return pe(e)&&l.set(e,Re),Re;if(S(r))for(let a=0;ae[0]==="_"||e==="$stable",as=e=>S(e)?e.map(xe):[xe(e)],On=(e,t,s)=>{if(t._n)return t;const l=en((...n)=>as(t(...n)),s);return l._c=!1,l},xl=(e,t,s)=>{const l=e._ctx;for(const n in e){if(_l(n))continue;const r=e[n];if(L(r))t[n]=On(n,r,l);else if(r!=null){const i=as(r);t[n]=()=>i}}},Cl=(e,t)=>{const s=as(t);e.slots.default=()=>s},Fl=(e,t,s)=>{for(const l in t)(s||l!=="_")&&(e[l]=t[l])},Bn=(e,t,s)=>{const l=e.slots=pl();if(e.vnode.shapeFlag&32){const n=t._;n?(Fl(l,t,s),s&&Yl(l,"_",n,!0)):xl(t,l)}else t&&Cl(e,t)},Pn=(e,t,s)=>{const{vnode:l,slots:n}=e;let r=!0,i=W;if(l.shapeFlag&32){const c=t._;c?s&&c===1?r=!1:Fl(n,t,s):(r=!t.$stable,xl(t,n)),i=t}else t&&(Cl(e,t),i={default:1});if(r)for(const c in n)!_l(c)&&i[c]==null&&delete n[c]},z=Yn;function Er(e){return Mn(e)}function Mn(e,t){const s=Pt();s.__VUE__=!0;const{insert:l,remove:n,patchProp:r,createElement:i,createText:c,createComment:u,setText:g,setElementText:a,parentNode:d,nextSibling:m,setScopeId:x=Ie,insertStaticContent:A}=e,O=(o,f,h,b=null,p=null,y=null,v=void 0,F=null,C=!!f.dynamicChildren)=>{if(o===f)return;o&&!Ce(o,f)&&(b=ht(o),Fe(o,p,y,!0),o=null),f.patchFlag===-2&&(C=!1,f.dynamicChildren=null);const{type:_,ref:N,shapeFlag:T}=f;switch(_){case Nt:q(o,f,h,b);break;case se:V(o,f,h,b);break;case Kt:o==null&&E(f,h,b,v);break;case ge:X(o,f,h,b,p,y,v,F,C);break;default:T&1?k(o,f,h,b,p,y,v,F,C):T&6?te(o,f,h,b,p,y,v,F,C):(T&64||T&128)&&_.process(o,f,h,b,p,y,v,F,C,Qe)}N!=null&&p&&Tt(N,o&&o.ref,y,f||o,!f)},q=(o,f,h,b)=>{if(o==null)l(f.el=c(f.children),h,b);else{const p=f.el=o.el;f.children!==o.children&&g(p,f.children)}},V=(o,f,h,b)=>{o==null?l(f.el=u(f.children||""),h,b):f.el=o.el},E=(o,f,h,b)=>{[o.el,o.anchor]=A(o.children,f,h,b,o.el,o.anchor)},P=({el:o,anchor:f},h,b)=>{let p;for(;o&&o!==f;)p=m(o),l(o,h,b),o=p;l(f,h,b)},B=({el:o,anchor:f})=>{let h;for(;o&&o!==f;)h=m(o),n(o),o=h;n(f)},k=(o,f,h,b,p,y,v,F,C)=>{f.type==="svg"?v="svg":f.type==="math"&&(v="mathml"),o==null?M(f,h,b,p,y,v,F,C):I(o,f,p,y,v,F,C)},M=(o,f,h,b,p,y,v,F)=>{let C,_;const{props:N,shapeFlag:T,transition:w,dirs:$}=o;if(C=o.el=i(o.type,y,N&&N.is,N),T&8?a(C,o.children):T&16&&U(o.children,C,null,b,p,Rt(o,y),v,F),$&&$e(o,null,b,"created"),D(C,o,o.scopeId,v,b),N){for(const Y in N)Y!=="value"&&!tt(Y)&&r(C,Y,null,N[Y],y,b);"value"in N&&r(C,"value",null,N.value,y),(_=N.onVnodeBeforeMount)&&me(_,b,o)}$&&$e(o,null,b,"beforeMount");const R=wn(p,w);R&&w.beforeEnter(C),l(C,f,h),((_=N&&N.onVnodeMounted)||R||$)&&z(()=>{_&&me(_,b,o),R&&w.enter(C),$&&$e(o,null,b,"mounted")},p)},D=(o,f,h,b,p)=>{if(h&&x(o,h),b)for(let y=0;y{for(let _=C;_{const F=f.el=o.el;let{patchFlag:C,dynamicChildren:_,dirs:N}=f;C|=o.patchFlag&16;const T=o.props||W,w=f.props||W;let $;if(h&&Le(h,!1),($=w.onVnodeBeforeUpdate)&&me($,h,f,o),N&&$e(f,o,h,"beforeUpdate"),h&&Le(h,!0),(T.innerHTML&&w.innerHTML==null||T.textContent&&w.textContent==null)&&a(F,""),_?H(o.dynamicChildren,_,F,h,b,Rt(f,p),y):v||J(o,f,F,null,h,b,Rt(f,p),y,!1),C>0){if(C&16)j(F,T,w,h,p);else if(C&2&&T.class!==w.class&&r(F,"class",null,w.class,p),C&4&&r(F,"style",T.style,w.style,p),C&8){const R=f.dynamicProps;for(let Y=0;Y{$&&me($,h,f,o),N&&$e(f,o,h,"updated")},b)},H=(o,f,h,b,p,y,v)=>{for(let F=0;F{if(f!==h){if(f!==W)for(const y in f)!tt(y)&&!(y in h)&&r(o,y,f[y],null,p,b);for(const y in h){if(tt(y))continue;const v=h[y],F=f[y];v!==F&&y!=="value"&&r(o,y,F,v,p,b)}"value"in h&&r(o,"value",f.value,h.value,p)}},X=(o,f,h,b,p,y,v,F,C)=>{const _=f.el=o?o.el:c(""),N=f.anchor=o?o.anchor:c("");let{patchFlag:T,dynamicChildren:w,slotScopeIds:$}=f;$&&(F=F?F.concat($):$),o==null?(l(_,h,b),l(N,h,b),U(f.children||[],h,N,p,y,v,F,C)):T>0&&T&64&&w&&o.dynamicChildren?(H(o.dynamicChildren,w,h,p,y,v,F),(f.key!=null||p&&f===p.subTree)&&ds(o,f,!0)):J(o,f,h,N,p,y,v,F,C)},te=(o,f,h,b,p,y,v,F,C)=>{f.slotScopeIds=F,o==null?f.shapeFlag&512?p.ctx.activate(f,h,b,v,C):ie(f,h,b,p,y,v,C):Ae(o,f,C)},ie=(o,f,h,b,p,y,v)=>{const F=o.component=lr(o,b,p);if(Mt(o)&&(F.ctx.renderer=Qe),nr(F,!1,v),F.asyncDep){if(p&&p.registerDep(F,Z,v),!o.el){const C=F.subTree=ce(se);V(null,C,f,h)}}else Z(F,o,f,h,p,y,v)},Ae=(o,f,h)=>{const b=f.component=o.component;if(Sn(o,f,h))if(b.asyncDep&&!b.asyncResolved){G(b,f,h);return}else b.next=f,b.update();else f.el=o.el,b.vnode=f},Z=(o,f,h,b,p,y,v)=>{const F=()=>{if(o.isMounted){let{next:T,bu:w,u:$,parent:R,vnode:Y}=o;{const de=vl(o);if(de){T&&(T.el=Y.el,G(o,T,v)),de.asyncDep.then(()=>{o.isUnmounted||F()});return}}let K=T,ae;Le(o,!1),T?(T.el=Y.el,G(o,T,v)):T=Y,w&&et(w),(ae=T.props&&T.props.onVnodeBeforeUpdate)&&me(ae,R,T,Y),Le(o,!0);const ne=St(o),_e=o.subTree;o.subTree=ne,O(_e,ne,d(_e.el),ht(_e),o,p,y),T.el=ne.el,K===null&&gs(o,ne.el),$&&z($,p),(ae=T.props&&T.props.onVnodeUpdated)&&z(()=>me(ae,R,T,Y),p)}else{let T;const{el:w,props:$}=f,{bm:R,m:Y,parent:K,root:ae,type:ne}=o,_e=Ve(f);if(Le(o,!1),R&&et(R),!_e&&(T=$&&$.onVnodeBeforeMount)&&me(T,K,f),Le(o,!0),w&&xs){const de=()=>{o.subTree=St(o),xs(w,o.subTree,o,p,null)};_e&&ne.__asyncHydrate?ne.__asyncHydrate(w,o,de):de()}else{ae.ce&&ae.ce._injectChildStyle(ne);const de=o.subTree=St(o);O(null,de,h,b,o,p,y),f.el=de.el}if(Y&&z(Y,p),!_e&&(T=$&&$.onVnodeMounted)){const de=f;z(()=>me(T,K,de),p)}(f.shapeFlag&256||K&&Ve(K.vnode)&&K.vnode.shapeFlag&256)&&o.a&&z(o.a,p),o.isMounted=!0,f=h=b=null}};o.scope.on();const C=o.effect=new jl(F);o.scope.off();const _=o.update=C.run.bind(C),N=o.job=C.runIfDirty.bind(C);N.i=o,N.id=o.uid,C.scheduler=()=>rs(N),Le(o,!0),_()},G=(o,f,h)=>{f.component=o;const b=o.vnode.props;o.vnode=f,o.next=null,An(o,f.props,b,h),Pn(o,f.children,h),Ge(),vs(o),Je()},J=(o,f,h,b,p,y,v,F,C=!1)=>{const _=o&&o.children,N=o?o.shapeFlag:0,T=f.children,{patchFlag:w,shapeFlag:$}=f;if(w>0){if(w&128){dt(_,T,h,b,p,y,v,F,C);return}else if(w&256){He(_,T,h,b,p,y,v,F,C);return}}$&8?(N&16&&Ye(_,p,y),T!==_&&a(h,T)):N&16?$&16?dt(_,T,h,b,p,y,v,F,C):Ye(_,p,y,!0):(N&8&&a(h,""),$&16&&U(T,h,b,p,y,v,F,C))},He=(o,f,h,b,p,y,v,F,C)=>{o=o||Re,f=f||Re;const _=o.length,N=f.length,T=Math.min(_,N);let w;for(w=0;wN?Ye(o,p,y,!0,!1,T):U(f,h,b,p,y,v,F,C,T)},dt=(o,f,h,b,p,y,v,F,C)=>{let _=0;const N=f.length;let T=o.length-1,w=N-1;for(;_<=T&&_<=w;){const $=o[_],R=f[_]=C?we(f[_]):xe(f[_]);if(Ce($,R))O($,R,h,null,p,y,v,F,C);else break;_++}for(;_<=T&&_<=w;){const $=o[T],R=f[w]=C?we(f[w]):xe(f[w]);if(Ce($,R))O($,R,h,null,p,y,v,F,C);else break;T--,w--}if(_>T){if(_<=w){const $=w+1,R=$w)for(;_<=T;)Fe(o[_],p,y,!0),_++;else{const $=_,R=_,Y=new Map;for(_=R;_<=w;_++){const he=f[_]=C?we(f[_]):xe(f[_]);he.key!=null&&Y.set(he.key,_)}let K,ae=0;const ne=w-R+1;let _e=!1,de=0;const Xe=new Array(ne);for(_=0;_=ne){Fe(he,p,y,!0);continue}let ve;if(he.key!=null)ve=Y.get(he.key);else for(K=R;K<=w;K++)if(Xe[K-R]===0&&Ce(he,f[K])){ve=K;break}ve===void 0?Fe(he,p,y,!0):(Xe[ve-R]=_+1,ve>=de?de=ve:_e=!0,O(he,f[ve],h,null,p,y,v,F,C),ae++)}const Cs=_e?Hn(Xe):Re;for(K=Cs.length-1,_=ne-1;_>=0;_--){const he=R+_,ve=f[he],Fs=he+1{const{el:y,type:v,transition:F,children:C,shapeFlag:_}=o;if(_&6){Ne(o.component.subTree,f,h,b);return}if(_&128){o.suspense.move(f,h,b);return}if(_&64){v.move(o,f,h,Qe);return}if(v===ge){l(y,f,h);for(let T=0;TF.enter(y),p);else{const{leave:T,delayLeave:w,afterLeave:$}=F,R=()=>l(y,f,h),Y=()=>{T(y,()=>{R(),$&&$()})};w?w(y,R,Y):Y()}else l(y,f,h)},Fe=(o,f,h,b=!1,p=!1)=>{const{type:y,props:v,ref:F,children:C,dynamicChildren:_,shapeFlag:N,patchFlag:T,dirs:w,cacheIndex:$}=o;if(T===-2&&(p=!1),F!=null&&Tt(F,null,h,o,!0),$!=null&&(f.renderCache[$]=void 0),N&256){f.ctx.deactivate(o);return}const R=N&1&&w,Y=!Ve(o);let K;if(Y&&(K=v&&v.onVnodeBeforeUnmount)&&me(K,f,o),N&6)Hl(o.component,h,b);else{if(N&128){o.suspense.unmount(h,b);return}R&&$e(o,null,f,"beforeUnmount"),N&64?o.type.remove(o,f,h,Qe,b):_&&!_.hasOnce&&(y!==ge||T>0&&T&64)?Ye(_,f,h,!1,!0):(y===ge&&T&384||!p&&N&16)&&Ye(C,f,h),b&&ms(o)}(Y&&(K=v&&v.onVnodeUnmounted)||R)&&z(()=>{K&&me(K,f,o),R&&$e(o,null,f,"unmounted")},h)},ms=o=>{const{type:f,el:h,anchor:b,transition:p}=o;if(f===ge){wl(h,b);return}if(f===Kt){B(o);return}const y=()=>{n(h),p&&!p.persisted&&p.afterLeave&&p.afterLeave()};if(o.shapeFlag&1&&p&&!p.persisted){const{leave:v,delayLeave:F}=p,C=()=>v(h,y);F?F(o.el,y,C):C()}else y()},wl=(o,f)=>{let h;for(;o!==f;)h=m(o),n(o),o=h;n(f)},Hl=(o,f,h)=>{const{bum:b,scope:p,job:y,subTree:v,um:F,m:C,a:_}=o;Et(C),Et(_),b&&et(b),p.stop(),y&&(y.flags|=8,Fe(v,o,f,h)),F&&z(F,f),z(()=>{o.isUnmounted=!0},f),f&&f.pendingBranch&&!f.isUnmounted&&o.asyncDep&&!o.asyncResolved&&o.suspenseId===f.pendingId&&(f.deps--,f.deps===0&&f.resolve())},Ye=(o,f,h,b=!1,p=!1,y=0)=>{for(let v=y;v{if(o.shapeFlag&6)return ht(o.component.subTree);if(o.shapeFlag&128)return o.suspense.next();const f=m(o.anchor||o.el),h=f&&f[Zs];return h?m(h):f};let Lt=!1;const bs=(o,f,h)=>{o==null?f._vnode&&Fe(f._vnode,null,null,!0):O(f._vnode||null,o,f,null,null,null,h),f._vnode=o,Lt||(Lt=!0,vs(),Ys(),Lt=!1)},Qe={p:O,um:Fe,m:Ne,r:ms,mt:ie,mc:U,pc:J,pbc:H,n:ht,o:e};let _s,xs;return{render:bs,hydrate:_s,createApp:Tn(bs,_s)}}function Rt({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Le({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function wn(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ds(e,t,s=!1){const l=e.children,n=t.children;if(S(l)&&S(n))for(let r=0;r>1,e[s[c]]0&&(t[l]=s[r-1]),s[r]=l)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function vl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:vl(t)}function Et(e){if(e)for(let t=0;tbt(Nn);function Ar(e,t){return hs(e,null,t)}function _t(e,t,s){return hs(e,t,s)}function hs(e,t,s=W){const{immediate:l,deep:n,flush:r,once:i}=s,c=re({},s),u=t&&l||!t&&r!=="post";let g;if(ot){if(r==="sync"){const x=$n();g=x.__watcherHandles||(x.__watcherHandles=[])}else if(!u){const x=()=>{};return x.stop=Ie,x.resume=Ie,x.pause=Ie,x}}const a=le;c.call=(x,A,O)=>Ee(x,a,A,O);let d=!1;r==="post"?c.scheduler=x=>{z(x,a&&a.suspense)}:r!=="sync"&&(d=!0,c.scheduler=(x,A)=>{A?x():rs(x)}),c.augmentJob=x=>{t&&(x.flags|=4),d&&(x.flags|=2,a&&(x.id=a.uid,x.i=a))};const m=Nl(e,t,c);return ot&&(g?g.push(m):u&&m()),m}function Ln(e,t,s){const l=this.proxy,n=be(e)?e.includes(".")?Tl(l,e):()=>l[e]:e.bind(l,l);let r;L(t)?r=t:(r=t.handler,s=t);const i=at(this),c=hs(n,r.bind(l),s);return i(),c}function Tl(e,t){const s=t.split(".");return()=>{let l=e;for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ke(t)}Modifiers`]||e[`${ft(t)}Modifiers`];function Un(e,t,...s){if(e.isUnmounted)return;const l=e.vnode.props||W;let n=s;const r=t.startsWith("update:"),i=r&&Vn(l,t.slice(7));i&&(i.trim&&(n=s.map(a=>be(a)?a.trim():a)),i.number&&(n=s.map(Ql)));let c,u=l[c=Vt(t)]||l[c=Vt(ke(t))];!u&&r&&(u=l[c=Vt(ft(t))]),u&&Ee(u,e,6,n);const g=l[c+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Ee(g,e,6,n)}}function kl(e,t,s=!1){const l=t.emitsCache,n=l.get(e);if(n!==void 0)return n;const r=e.emits;let i={},c=!1;if(!L(e)){const u=g=>{const a=kl(g,t,!0);a&&(c=!0,re(i,a))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!c?(pe(e)&&l.set(e,null),null):(S(r)?r.forEach(u=>i[u]=null):re(i,r),pe(e)&&l.set(e,i),i)}function Ht(e,t){return!e||!ns(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,ft(t))||Q(e,t))}function St(e){const{type:t,vnode:s,proxy:l,withProxy:n,propsOptions:[r],slots:i,attrs:c,emit:u,render:g,renderCache:a,props:d,data:m,setupState:x,ctx:A,inheritAttrs:O}=e,q=vt(e);let V,E;try{if(s.shapeFlag&4){const B=n||l,k=B;V=xe(g.call(k,B,a,d,x,m,A)),E=c}else{const B=t;V=xe(B.length>1?B(d,{attrs:c,slots:i,emit:u}):B(d,null)),E=t.props?c:jn(c)}}catch(B){nt.length=0,ut(B,e,1),V=ce(se)}let P=V;if(E&&O!==!1){const B=Object.keys(E),{shapeFlag:k}=P;B.length&&k&7&&(r&&B.some(qs)&&(E=Rn(E,r)),P=Oe(P,E,!1,!0))}return s.dirs&&(P=Oe(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(s.dirs):s.dirs),s.transition&&We(P,s.transition),V=P,vt(q),V}function Dn(e,t=!0){let s;for(let l=0;l{let t;for(const s in e)(s==="class"||s==="style"||ns(s))&&((t||(t={}))[s]=e[s]);return t},Rn=(e,t)=>{const s={};for(const l in e)(!qs(l)||!(l.slice(9)in t))&&(s[l]=e[l]);return s};function Sn(e,t,s){const{props:l,children:n,component:r}=e,{props:i,children:c,patchFlag:u}=t,g=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return l?ws(l,i,g):!!i;if(u&8){const a=t.dynamicProps;for(let d=0;de.__isSuspense;let zt=0;const Kn={name:"Suspense",__isSuspense:!0,process(e,t,s,l,n,r,i,c,u,g){if(e==null)Wn(t,s,l,n,r,i,c,u,g);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}qn(e,t,s,l,n,i,c,u,g)}},hydrate:Gn,normalize:Jn},Ir=Kn;function it(e,t){const s=e.props&&e.props[t];L(s)&&s()}function Wn(e,t,s,l,n,r,i,c,u){const{p:g,o:{createElement:a}}=u,d=a("div"),m=e.suspense=El(e,n,l,t,d,s,r,i,c,u);g(null,m.pendingBranch=e.ssContent,d,null,l,m,r,i),m.deps>0?(it(e,"onPending"),it(e,"onFallback"),g(null,e.ssFallback,t,s,l,null,r,i),Ke(m,e.ssFallback)):m.resolve(!1,!0)}function qn(e,t,s,l,n,r,i,c,{p:u,um:g,o:{createElement:a}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const m=t.ssContent,x=t.ssFallback,{activeBranch:A,pendingBranch:O,isInFallback:q,isHydrating:V}=d;if(O)d.pendingBranch=m,Ce(m,O)?(u(O,m,d.hiddenContainer,null,n,d,r,i,c),d.deps<=0?d.resolve():q&&(V||(u(A,x,s,l,n,null,r,i,c),Ke(d,x)))):(d.pendingId=zt++,V?(d.isHydrating=!1,d.activeBranch=O):g(O,n,d),d.deps=0,d.effects.length=0,d.hiddenContainer=a("div"),q?(u(null,m,d.hiddenContainer,null,n,d,r,i,c),d.deps<=0?d.resolve():(u(A,x,s,l,n,null,r,i,c),Ke(d,x))):A&&Ce(m,A)?(u(A,m,s,l,n,d,r,i,c),d.resolve(!0)):(u(null,m,d.hiddenContainer,null,n,d,r,i,c),d.deps<=0&&d.resolve()));else if(A&&Ce(m,A))u(A,m,s,l,n,d,r,i,c),Ke(d,m);else if(it(t,"onPending"),d.pendingBranch=m,m.shapeFlag&512?d.pendingId=m.component.suspenseId:d.pendingId=zt++,u(null,m,d.hiddenContainer,null,n,d,r,i,c),d.deps<=0)d.resolve();else{const{timeout:E,pendingId:P}=d;E>0?setTimeout(()=>{d.pendingId===P&&d.fallback(x)},E):E===0&&d.fallback(x)}}function El(e,t,s,l,n,r,i,c,u,g,a=!1){const{p:d,m,um:x,n:A,o:{parentNode:O,remove:q}}=g;let V;const E=Qn(e);E&&t&&t.pendingBranch&&(V=t.pendingId,t.deps++);const P=e.props?Gl(e.props.timeout):void 0,B=r,k={vnode:e,parent:t,parentComponent:s,namespace:i,container:l,hiddenContainer:n,deps:0,pendingId:zt++,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!a,isHydrating:a,isUnmounted:!1,effects:[],resolve(M=!1,D=!1){const{vnode:U,activeBranch:I,pendingBranch:H,pendingId:j,effects:X,parentComponent:te,container:ie}=k;let Ae=!1;k.isHydrating?k.isHydrating=!1:M||(Ae=I&&H.transition&&H.transition.mode==="out-in",Ae&&(I.transition.afterLeave=()=>{j===k.pendingId&&(m(H,ie,r===B?A(I):r,0),Wt(X))}),I&&(O(I.el)===ie&&(r=A(I)),x(I,te,k,!0)),Ae||m(H,ie,r,0)),Ke(k,H),k.pendingBranch=null,k.isInFallback=!1;let Z=k.parent,G=!1;for(;Z;){if(Z.pendingBranch){Z.effects.push(...X),G=!0;break}Z=Z.parent}!G&&!Ae&&Wt(X),k.effects=[],E&&t&&t.pendingBranch&&V===t.pendingId&&(t.deps--,t.deps===0&&!D&&t.resolve()),it(U,"onResolve")},fallback(M){if(!k.pendingBranch)return;const{vnode:D,activeBranch:U,parentComponent:I,container:H,namespace:j}=k;it(D,"onFallback");const X=A(U),te=()=>{k.isInFallback&&(d(null,M,H,X,I,null,j,c,u),Ke(k,M))},ie=M.transition&&M.transition.mode==="out-in";ie&&(U.transition.afterLeave=te),k.isInFallback=!0,x(U,I,null,!0),ie||te()},move(M,D,U){k.activeBranch&&m(k.activeBranch,M,D,U),k.container=M},next(){return k.activeBranch&&A(k.activeBranch)},registerDep(M,D,U){const I=!!k.pendingBranch;I&&k.deps++;const H=M.vnode.el;M.asyncDep.catch(j=>{ut(j,M,0)}).then(j=>{if(M.isUnmounted||k.isUnmounted||k.pendingId!==M.suspenseId)return;M.asyncResolved=!0;const{vnode:X}=M;ss(M,j,!1),H&&(X.el=H);const te=!H&&M.subTree.el;D(M,X,O(H||M.subTree.el),H?null:A(M.subTree),k,i,U),te&&q(te),gs(M,X.el),I&&--k.deps===0&&k.resolve()})},unmount(M,D){k.isUnmounted=!0,k.activeBranch&&x(k.activeBranch,s,M,D),k.pendingBranch&&x(k.pendingBranch,s,M,D)}};return k}function Gn(e,t,s,l,n,r,i,c,u){const g=t.suspense=El(t,l,s,e.parentNode,document.createElement("div"),null,n,r,i,c,!0),a=u(e,g.pendingBranch=t.ssContent,s,g,r,i);return g.deps===0&&g.resolve(!1,!0),a}function Jn(e){const{shapeFlag:t,children:s}=e,l=t&32;e.ssContent=Hs(l?s.default:s),e.ssFallback=l?Hs(s.fallback):ce(se)}function Hs(e){let t;if(L(e)){const s=qe&&e._c;s&&(e._d=!1,It()),e=e(),s&&(e._d=!0,t=ue,Al())}return S(e)&&(e=Dn(e)),e=xe(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function Yn(e,t){t&&t.pendingBranch?S(e)?t.effects.push(...e):t.effects.push(e):Wt(e)}function Ke(e,t){e.activeBranch=t;const{vnode:s,parentComponent:l}=e;let n=t.el;for(;!n&&t.component;)t=t.component.subTree,n=t.el;s.el=n,l&&l.subTree===s&&(l.vnode.el=n,gs(l,n))}function Qn(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ge=Symbol.for("v-fgt"),Nt=Symbol.for("v-txt"),se=Symbol.for("v-cmt"),Kt=Symbol.for("v-stc"),nt=[];let ue=null;function It(e=!1){nt.push(ue=e?null:[])}function Al(){nt.pop(),ue=nt[nt.length-1]||null}let qe=1;function Ns(e,t=!1){qe+=e,e<0&&ue&&t&&(ue.hasOnce=!0)}function Il(e){return e.dynamicChildren=qe>0?ue||Re:null,Al(),qe>0&&ue&&ue.push(e),e}function Or(e,t,s,l,n,r){return Il(Bl(e,t,s,l,n,r,!0))}function es(e,t,s,l,n){return Il(ce(e,t,s,l,n,!0))}function De(e){return e?e.__v_isVNode===!0:!1}function Ce(e,t){return e.type===t.type&&e.key===t.key}const Ol=({key:e})=>e??null,xt=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||Ct(e)||L(e)?{i:ee,r:e,k:t,f:!!s}:e:null);function Bl(e,t=null,s=null,l=0,n=null,r=e===ge?0:1,i=!1,c=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ol(t),ref:t&&xt(t),scopeId:Xs,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:l,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:ee};return c?(ps(u,s),r&128&&e.normalize(u)):s&&(u.shapeFlag|=be(s)?8:16),qe>0&&!i&&ue&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&ue.push(u),u}const ce=Xn;function Xn(e,t=null,s=null,l=0,n=null,r=!1){if((!e||e===ul)&&(e=se),De(e)){const c=Oe(e,t,!0);return s&&ps(c,s),qe>0&&!r&&ue&&(c.shapeFlag&6?ue[ue.indexOf(e)]=c:ue.push(c)),c.patchFlag=-2,c}if(fr(e)&&(e=e.__vccOpts),t){t=Zn(t);let{class:c,style:u}=t;c&&!be(c)&&(t.class=js(c)),pe(u)&&(Vs(u)&&!S(u)&&(u=re({},u)),t.style=Rs(u))}const i=be(e)?1:At(e)?128:zs(e)?64:pe(e)?4:L(e)?2:0;return Bl(e,t,s,l,n,i,r,!0)}function Zn(e){return e?Vs(e)||yl(e)?re({},e):e:null}function Oe(e,t,s=!1,l=!1){const{props:n,ref:r,patchFlag:i,children:c,transition:u}=e,g=t?er(n||{},t):n,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&Ol(g),ref:t&&t.ref?s&&r?S(r)?r.concat(xt(t)):[r,xt(t)]:xt(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Oe(e.ssContent),ssFallback:e.ssFallback&&Oe(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&l&&We(a,u.clone(a)),a}function zn(e=" ",t=0){return ce(Nt,null,e,t)}function Br(e="",t=!1){return t?(It(),es(se,null,e)):ce(se,null,e)}function xe(e){return e==null||typeof e=="boolean"?ce(se):S(e)?ce(ge,null,e.slice()):De(e)?we(e):ce(Nt,null,String(e))}function we(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Oe(e)}function ps(e,t){let s=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(S(t))s=16;else if(typeof t=="object")if(l&65){const n=t.default;n&&(n._c&&(n._d=!1),ps(e,n()),n._c&&(n._d=!0));return}else{s=32;const n=t._;!n&&!yl(t)?t._ctx=ee:n===3&&ee&&(ee.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else L(t)?(t={default:t,_ctx:ee},s=32):(t=String(t),l&64?(s=16,t=[zn(t)]):s=8);e.children=t,e.shapeFlag|=s}function er(...e){const t={};for(let s=0;sle||ee;let Ot,ts;{const e=Pt(),t=(s,l)=>{let n;return(n=e[s])||(n=e[s]=[]),n.push(l),r=>{n.length>1?n.forEach(i=>i(r)):n[0](r)}};Ot=t("__VUE_INSTANCE_SETTERS__",s=>le=s),ts=t("__VUE_SSR_SETTERS__",s=>ot=s)}const at=e=>{const t=le;return Ot(e),e.scope.on(),()=>{e.scope.off(),Ot(t)}},$s=()=>{le&&le.scope.off(),Ot(null)};function Pl(e){return e.vnode.shapeFlag&4}let ot=!1;function nr(e,t=!1,s=!1){t&&ts(t);const{props:l,children:n}=e.vnode,r=Pl(e);En(e,l,r,t),Bn(e,n,s);const i=r?rr(e,t):void 0;return t&&ts(!1),i}function rr(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,mn);const{setup:l}=s;if(l){Ge();const n=e.setupContext=l.length>1?or(e):null,r=at(e),i=ct(l,e,0,[e.props,n]),c=Ss(i);if(Je(),r(),(c||e.sp)&&!Ve(e)&&il(e),c){if(i.then($s,$s),t)return i.then(u=>{ss(e,u,t)}).catch(u=>{ut(u,e,0)});e.asyncDep=i}else ss(e,i,t)}else Ml(e,t)}function ss(e,t,s){L(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=Us(t)),Ml(e,s)}let Ls;function Ml(e,t,s){const l=e.type;if(!e.render){if(!t&&Ls&&!l.render){const n=l.template||us(e).template;if(n){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:c,compilerOptions:u}=l,g=re(re({isCustomElement:r,delimiters:c},i),u);l.render=Ls(n,g)}}e.render=l.render||Ie}{const n=at(e);Ge();try{bn(e)}finally{Je(),n()}}}const ir={get(e,t){return Ds(e,"get",""),e[t]}};function or(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,ir),slots:e.slots,emit:e.emit,expose:t}}function $t(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Us(Ul(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in lt)return lt[s](e)},has(t,s){return s in t||s in lt}})):e.proxy}function ls(e,t=!0){return L(e)?e.displayName||e.name:e.name||t&&e.__name}function fr(e){return L(e)&&"__vccOpts"in e}const cr=(e,t)=>$l(e,t,ot);function Pr(e,t,s){const l=arguments.length;return l===2?pe(t)&&!S(t)?De(t)?ce(e,null,[t]):ce(e,t):ce(e,null,t):(l>3?s=Array.prototype.slice.call(arguments,2):l===3&&De(s)&&(s=[s]),ce(e,t,s))}const ur="3.5.13";export{Or as A,yr as B,en as C,xr as D,es as E,ge as F,Cr as G,Br as H,zn as I,se as J,_r as K,on as L,fn as M,gr as N,Oe as O,cl as P,vr as Q,pr as R,Ir as S,Nt as T,kr as U,Fr as V,ln as a,ce as b,Er as c,ys as d,Ee as e,cr as f,rl as g,Pr as h,bt as i,Ar as j,is as k,mr as l,er as m,Zl as n,fl as o,De as p,br as q,Gt as r,We as s,un as t,sn as u,os as v,_t as w,kn as x,Tr as y,It as z}; diff --git a/js/@vue_runtime-core@3.5.13-BEg_yh4N.js.gz b/js/@vue_runtime-core@3.5.13-BEg_yh4N.js.gz deleted file mode 100644 index 600c53c5..00000000 Binary files a/js/@vue_runtime-core@3.5.13-BEg_yh4N.js.gz and /dev/null differ diff --git a/js/@vue_runtime-dom@3.5.12-BKraWVUW.js b/js/@vue_runtime-dom@3.5.12-BKraWVUW.js new file mode 100644 index 00000000..cbcacc2c --- /dev/null +++ b/js/@vue_runtime-dom@3.5.12-BKraWVUW.js @@ -0,0 +1,5 @@ +import{h as _t,B as Dt,a as It,c as yt,u as $t,o as Ot,F as Rt,g as Ht,s as U,r as j,b as Bt,d as xt,e as Ft}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{e as D,a as Gt,b as ft,o as N,c as I,A as zt,s as Wt,H as qt,v as ut,D as dt,w as Kt,I as pt,i as Ut,J as jt}from"./@vue_shared@3.5.12--5_uv9t5.js";import{d as Vt}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";/** +* @vue/runtime-dom v3.5.12 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let H;const V=typeof window<"u"&&window.trustedTypes;if(V)try{H=V.createPolicy("vue",{createHTML:t=>t})}catch{}const mt=H?t=>H.createHTML(t):t=>t,Xt="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1998/Math/MathML",g=typeof document<"u"?document:null,X=g&&g.createElement("template"),Zt={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const o=e==="svg"?g.createElementNS(Xt,t):e==="mathml"?g.createElementNS(Jt,t):n?g.createElement(t,{is:n}):g.createElement(t);return t==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:t=>g.createTextNode(t),createComment:t=>g.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>g.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,o,i){const r=n?n.previousSibling:e.lastChild;if(o&&(o===i||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{X.innerHTML=mt(s==="svg"?`${t}`:s==="mathml"?`${t}`:t);const c=X.content;if(s==="svg"||s==="mathml"){const u=c.firstChild;for(;u.firstChild;)c.appendChild(u.firstChild);c.removeChild(u)}e.insertBefore(c,n)}return[r?r.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},v="transition",w="animation",A=Symbol("_vtc"),ht={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},gt=D({},It,ht),Qt=t=>(t.displayName="Transition",t.props=gt,t),Pe=Qt((t,{slots:e})=>_t(Dt,vt(t),e)),T=(t,e=[])=>{I(t)?t.forEach(n=>n(...e)):t&&t(...e)},J=t=>t?I(t)?t.some(e=>e.length>1):t.length>1:!1;function vt(t){const e={};for(const a in t)a in ht||(e[a]=t[a]);if(t.css===!1)return e;const{name:n="v",type:s,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:u=i,appearActiveClass:l=r,appearToClass:f=c,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:b=`${n}-leave-to`}=t,E=Yt(o),At=E&&E[0],wt=E&&E[1],{onBeforeEnter:B,onEnter:x,onEnterCancelled:F,onLeave:G,onLeaveCancelled:Lt,onBeforeAppear:Nt=B,onAppear:Mt=x,onAppearCancelled:Pt=F}=e,y=(a,m,S)=>{C(a,m?f:c),C(a,m?l:r),S&&S()},z=(a,m)=>{a._isLeaving=!1,C(a,d),C(a,b),C(a,p),m&&m()},W=a=>(m,S)=>{const q=a?Mt:x,K=()=>y(m,a,S);T(q,[m,K]),Z(()=>{C(m,a?u:i),h(m,a?f:c),J(q)||Q(m,s,At,K)})};return D(e,{onBeforeEnter(a){T(B,[a]),h(a,i),h(a,r)},onBeforeAppear(a){T(Nt,[a]),h(a,u),h(a,l)},onEnter:W(!1),onAppear:W(!0),onLeave(a,m){a._isLeaving=!0;const S=()=>z(a,m);h(a,d),h(a,p),St(),Z(()=>{a._isLeaving&&(C(a,d),h(a,b),J(G)||Q(a,s,wt,S))}),T(G,[a,S])},onEnterCancelled(a){y(a,!1),T(F,[a])},onAppearCancelled(a){y(a,!0),T(Pt,[a])},onLeaveCancelled(a){z(a),T(Lt,[a])}})}function Yt(t){if(t==null)return null;if(Gt(t))return[$(t.enter),$(t.leave)];{const e=$(t);return[e,e]}}function $(t){return zt(t)}function h(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[A]||(t[A]=new Set)).add(e)}function C(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const n=t[A];n&&(n.delete(e),n.size||(t[A]=void 0))}function Z(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let kt=0;function Q(t,e,n,s){const o=t._endId=++kt,i=()=>{o===t._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:r,timeout:c,propCount:u}=Ct(t,e);if(!r)return s();const l=r+"end";let f=0;const d=()=>{t.removeEventListener(l,p),i()},p=b=>{b.target===t&&++f>=u&&d()};setTimeout(()=>{f(n[E]||"").split(", "),o=s(`${v}Delay`),i=s(`${v}Duration`),r=Y(o,i),c=s(`${w}Delay`),u=s(`${w}Duration`),l=Y(c,u);let f=null,d=0,p=0;e===v?r>0&&(f=v,d=r,p=i.length):e===w?l>0&&(f=w,d=l,p=u.length):(d=Math.max(r,l),f=d>0?r>l?v:w:null,p=f?f===v?i.length:u.length:0);const b=f===v&&/\b(transform|all)(,|$)/.test(s(`${v}Property`).toString());return{type:f,timeout:d,propCount:p,hasTransform:b}}function Y(t,e){for(;t.lengthk(n)+k(t[s])))}function k(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function St(){return document.body.offsetHeight}function te(t,e,n){const s=t[A];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const P=Symbol("_vod"),Tt=Symbol("_vsh"),_e={beforeMount(t,{value:e},{transition:n}){t[P]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):L(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),L(t,!0),s.enter(t)):s.leave(t,()=>{L(t,!1)}):L(t,e))},beforeUnmount(t,{value:e}){L(t,e)}};function L(t,e){t.style.display=e?t[P]:"none",t[Tt]=!e}const ee=Symbol(""),ne=/(^|;)\s*display\s*:/;function se(t,e,n){const s=t.style,o=N(n);let i=!1;if(n&&!o){if(e)if(N(e))for(const r of e.split(";")){const c=r.slice(0,r.indexOf(":")).trim();n[c]==null&&M(s,c,"")}else for(const r in e)n[r]==null&&M(s,r,"");for(const r in n)r==="display"&&(i=!0),M(s,r,n[r])}else if(o){if(e!==n){const r=s[ee];r&&(n+=";"+r),s.cssText=n,i=ne.test(n)}}else e&&t.removeAttribute("style");P in t&&(t[P]=i?s.display:"",t[Tt]&&(s.display="none"))}const tt=/\s*!important$/;function M(t,e,n){if(I(n))n.forEach(s=>M(t,e,s));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const s=oe(t,e);tt.test(n)?t.setProperty(dt(s),n.replace(tt,""),"important"):t[s]=n}}const et=["Webkit","Moz","ms"],O={};function oe(t,e){const n=O[e];if(n)return n;let s=ut(e);if(s!=="filter"&&s in t)return O[e]=s;s=Kt(s);for(let o=0;oR||(le.then(()=>R=0),R=Date.now());function ue(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ft(de(s,n.value),e,5,[s])};return n.value=t,n.attached=fe(),n}function de(t,e){if(I(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>o=>!o._stopped&&s&&s(o))}else return e}const at=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,pe=(t,e,n,s,o,i)=>{const r=o==="svg";e==="class"?te(t,s,r):e==="style"?se(t,n,s):Wt(e)?qt(e)||ae(t,e,n,s,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):me(t,e,s,r))?(ot(t,e,s),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&st(t,e,s,r,i,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!N(s))?ot(t,ut(e),s,i,e):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),st(t,e,s,r))};function me(t,e,n,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&at(e)&&ft(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const o=t.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return at(e)&&N(n)?!1:e in t}const bt=new WeakMap,Et=new WeakMap,_=Symbol("_moveCb"),ct=Symbol("_enterCb"),he=t=>(delete t.props.mode,t),ge=he({name:"TransitionGroup",props:D({},gt,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=xt(),s=$t();let o,i;return Ot(()=>{if(!o.length)return;const r=t.moveClass||`${t.name||"v"}-move`;if(!Te(o[0].el,n.vnode.el,r))return;o.forEach(ve),o.forEach(Ce);const c=o.filter(Se);St(),c.forEach(u=>{const l=u.el,f=l.style;h(l,r),f.transform=f.webkitTransform=f.transitionDuration="";const d=l[_]=p=>{p&&p.target!==l||(!p||/transform$/.test(p.propertyName))&&(l.removeEventListener("transitionend",d),l[_]=null,C(l,r))};l.addEventListener("transitionend",d)})}),()=>{const r=Vt(t),c=vt(r);let u=r.tag||Rt;if(o=[],i)for(let l=0;l{c.split(/\s+/).forEach(u=>u&&s.classList.remove(u))}),n.split(/\s+/).forEach(c=>c&&s.classList.add(c)),s.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(s);const{hasTransform:r}=Ct(s);return i.removeChild(s),r}const be=D({patchProp:pe},Zt);let lt;function Ee(){return lt||(lt=yt(be))}const Ie=(...t)=>{const e=Ee().createApp(...t),{mount:n}=e;return e.mount=s=>{const o=we(s);if(!o)return;const i=e._component;!ft(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,Ae(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},e};function Ae(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function we(t){return N(t)?document.querySelector(t):t}export{Pe as T,De as a,Ie as c,_e as v}; diff --git a/js/@vue_runtime-dom@3.5.12-BKraWVUW.js.gz b/js/@vue_runtime-dom@3.5.12-BKraWVUW.js.gz new file mode 100644 index 00000000..44b7cfdb Binary files /dev/null and b/js/@vue_runtime-dom@3.5.12-BKraWVUW.js.gz differ diff --git a/js/@vue_runtime-dom@3.5.13-BO5HcqNg.js b/js/@vue_runtime-dom@3.5.13-BO5HcqNg.js deleted file mode 100644 index 4f00e889..00000000 --- a/js/@vue_runtime-dom@3.5.13-BO5HcqNg.js +++ /dev/null @@ -1,5 +0,0 @@ -import{h as Pt,B as Dt,a as It,c as yt,u as $t,o as Ot,F as Rt,g as Ht,s as j,r as V,b as Bt,d as xt,e as Ft}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{e as I,a as Gt,b as ut,o as N,c as y,A as zt,s as Wt,H as qt,v as dt,D as pt,w as Kt,I as mt,i as Ut,J as jt}from"./@vue_shared@3.5.13-Dh1pNJXy.js";import{d as Vt}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";/** -* @vue/runtime-dom v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let B;const X=typeof window<"u"&&window.trustedTypes;if(X)try{B=X.createPolicy("vue",{createHTML:t=>t})}catch{}const ht=B?t=>B.createHTML(t):t=>t,Xt="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1998/Math/MathML",g=typeof document<"u"?document:null,J=g&&g.createElement("template"),Zt={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const o=e==="svg"?g.createElementNS(Xt,t):e==="mathml"?g.createElementNS(Jt,t):n?g.createElement(t,{is:n}):g.createElement(t);return t==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:t=>g.createTextNode(t),createComment:t=>g.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>g.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,o,i){const r=n?n.previousSibling:e.lastChild;if(o&&(o===i||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{J.innerHTML=ht(s==="svg"?`${t}`:s==="mathml"?`${t}`:t);const c=J.content;if(s==="svg"||s==="mathml"){const u=c.firstChild;for(;u.firstChild;)c.appendChild(u.firstChild);c.removeChild(u)}e.insertBefore(c,n)}return[r?r.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},v="transition",w="animation",A=Symbol("_vtc"),gt={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},vt=I({},It,gt),Qt=t=>(t.displayName="Transition",t.props=vt,t),_e=Qt((t,{slots:e})=>Pt(Dt,Ct(t),e)),T=(t,e=[])=>{y(t)?t.forEach(n=>n(...e)):t&&t(...e)},Z=t=>t?y(t)?t.some(e=>e.length>1):t.length>1:!1;function Ct(t){const e={};for(const a in t)a in gt||(e[a]=t[a]);if(t.css===!1)return e;const{name:n="v",type:s,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:u=i,appearActiveClass:l=r,appearToClass:f=c,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:b=`${n}-leave-to`}=t,E=Yt(o),At=E&&E[0],wt=E&&E[1],{onBeforeEnter:F,onEnter:G,onEnterCancelled:z,onLeave:W,onLeaveCancelled:Lt,onBeforeAppear:Nt=F,onAppear:Mt=G,onAppearCancelled:_t=z}=e,$=(a,m,S,M)=>{a._enterCancelled=M,C(a,m?f:c),C(a,m?l:r),S&&S()},q=(a,m)=>{a._isLeaving=!1,C(a,p),C(a,b),C(a,d),m&&m()},K=a=>(m,S)=>{const M=a?Mt:G,U=()=>$(m,a,S);T(M,[m,U]),Q(()=>{C(m,a?u:i),h(m,a?f:c),Z(M)||Y(m,s,At,U)})};return I(e,{onBeforeEnter(a){T(F,[a]),h(a,i),h(a,r)},onBeforeAppear(a){T(Nt,[a]),h(a,u),h(a,l)},onEnter:K(!1),onAppear:K(!0),onLeave(a,m){a._isLeaving=!0;const S=()=>q(a,m);h(a,p),a._enterCancelled?(h(a,d),x()):(x(),h(a,d)),Q(()=>{a._isLeaving&&(C(a,p),h(a,b),Z(W)||Y(a,s,wt,S))}),T(W,[a,S])},onEnterCancelled(a){$(a,!1,void 0,!0),T(z,[a])},onAppearCancelled(a){$(a,!0,void 0,!0),T(_t,[a])},onLeaveCancelled(a){q(a),T(Lt,[a])}})}function Yt(t){if(t==null)return null;if(Gt(t))return[O(t.enter),O(t.leave)];{const e=O(t);return[e,e]}}function O(t){return zt(t)}function h(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[A]||(t[A]=new Set)).add(e)}function C(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const n=t[A];n&&(n.delete(e),n.size||(t[A]=void 0))}function Q(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let kt=0;function Y(t,e,n,s){const o=t._endId=++kt,i=()=>{o===t._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:r,timeout:c,propCount:u}=St(t,e);if(!r)return s();const l=r+"end";let f=0;const p=()=>{t.removeEventListener(l,d),i()},d=b=>{b.target===t&&++f>=u&&p()};setTimeout(()=>{f(n[E]||"").split(", "),o=s(`${v}Delay`),i=s(`${v}Duration`),r=k(o,i),c=s(`${w}Delay`),u=s(`${w}Duration`),l=k(c,u);let f=null,p=0,d=0;e===v?r>0&&(f=v,p=r,d=i.length):e===w?l>0&&(f=w,p=l,d=u.length):(p=Math.max(r,l),f=p>0?r>l?v:w:null,d=f?f===v?i.length:u.length:0);const b=f===v&&/\b(transform|all)(,|$)/.test(s(`${v}Property`).toString());return{type:f,timeout:p,propCount:d,hasTransform:b}}function k(t,e){for(;t.lengthtt(n)+tt(t[s])))}function tt(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function x(){return document.body.offsetHeight}function te(t,e,n){const s=t[A];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const P=Symbol("_vod"),Tt=Symbol("_vsh"),Pe={beforeMount(t,{value:e},{transition:n}){t[P]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):L(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),L(t,!0),s.enter(t)):s.leave(t,()=>{L(t,!1)}):L(t,e))},beforeUnmount(t,{value:e}){L(t,e)}};function L(t,e){t.style.display=e?t[P]:"none",t[Tt]=!e}const ee=Symbol(""),ne=/(^|;)\s*display\s*:/;function se(t,e,n){const s=t.style,o=N(n);let i=!1;if(n&&!o){if(e)if(N(e))for(const r of e.split(";")){const c=r.slice(0,r.indexOf(":")).trim();n[c]==null&&_(s,c,"")}else for(const r in e)n[r]==null&&_(s,r,"");for(const r in n)r==="display"&&(i=!0),_(s,r,n[r])}else if(o){if(e!==n){const r=s[ee];r&&(n+=";"+r),s.cssText=n,i=ne.test(n)}}else e&&t.removeAttribute("style");P in t&&(t[P]=i?s.display:"",t[Tt]&&(s.display="none"))}const et=/\s*!important$/;function _(t,e,n){if(y(n))n.forEach(s=>_(t,e,s));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const s=oe(t,e);et.test(n)?t.setProperty(pt(s),n.replace(et,""),"important"):t[s]=n}}const nt=["Webkit","Moz","ms"],R={};function oe(t,e){const n=R[e];if(n)return n;let s=dt(e);if(s!=="filter"&&s in t)return R[e]=s;s=Kt(s);for(let o=0;oH||(le.then(()=>H=0),H=Date.now());function ue(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ft(de(s,n.value),e,5,[s])};return n.value=t,n.attached=fe(),n}function de(t,e){if(y(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>o=>!o._stopped&&s&&s(o))}else return e}const ct=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,pe=(t,e,n,s,o,i)=>{const r=o==="svg";e==="class"?te(t,s,r):e==="style"?se(t,n,s):Wt(e)?qt(e)||ae(t,e,n,s,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):me(t,e,s,r))?(it(t,e,s),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&ot(t,e,s,r,i,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!N(s))?it(t,dt(e),s,i,e):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),ot(t,e,s,r))};function me(t,e,n,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&ct(e)&&ut(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const o=t.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return ct(e)&&N(n)?!1:e in t}const bt=new WeakMap,Et=new WeakMap,D=Symbol("_moveCb"),lt=Symbol("_enterCb"),he=t=>(delete t.props.mode,t),ge=he({name:"TransitionGroup",props:I({},vt,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=xt(),s=$t();let o,i;return Ot(()=>{if(!o.length)return;const r=t.moveClass||`${t.name||"v"}-move`;if(!Te(o[0].el,n.vnode.el,r))return;o.forEach(ve),o.forEach(Ce);const c=o.filter(Se);x(),c.forEach(u=>{const l=u.el,f=l.style;h(l,r),f.transform=f.webkitTransform=f.transitionDuration="";const p=l[D]=d=>{d&&d.target!==l||(!d||/transform$/.test(d.propertyName))&&(l.removeEventListener("transitionend",p),l[D]=null,C(l,r))};l.addEventListener("transitionend",p)})}),()=>{const r=Vt(t),c=Ct(r);let u=r.tag||Rt;if(o=[],i)for(let l=0;l{c.split(/\s+/).forEach(u=>u&&s.classList.remove(u))}),n.split(/\s+/).forEach(c=>c&&s.classList.add(c)),s.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(s);const{hasTransform:r}=St(s);return i.removeChild(s),r}const be=I({patchProp:pe},Zt);let ft;function Ee(){return ft||(ft=yt(be))}const Ie=(...t)=>{const e=Ee().createApp(...t),{mount:n}=e;return e.mount=s=>{const o=we(s);if(!o)return;const i=e._component;!ut(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,Ae(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},e};function Ae(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function we(t){return N(t)?document.querySelector(t):t}export{_e as T,De as a,Ie as c,Pe as v}; diff --git a/js/@vue_runtime-dom@3.5.13-BO5HcqNg.js.gz b/js/@vue_runtime-dom@3.5.13-BO5HcqNg.js.gz deleted file mode 100644 index e344fe7a..00000000 Binary files a/js/@vue_runtime-dom@3.5.13-BO5HcqNg.js.gz and /dev/null differ diff --git a/js/@vue_shared@3.5.13-Dh1pNJXy.js b/js/@vue_shared@3.5.12--5_uv9t5.js similarity index 94% rename from js/@vue_shared@3.5.13-Dh1pNJXy.js rename to js/@vue_shared@3.5.12--5_uv9t5.js index b8e1e4de..aa29c6bd 100644 --- a/js/@vue_shared@3.5.13-Dh1pNJXy.js +++ b/js/@vue_shared@3.5.12--5_uv9t5.js @@ -1,5 +1,5 @@ /** -* @vue/shared v3.5.13 +* @vue/shared v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function d(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const E={},R=[],T=()=>{},B=()=>!1,P=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),z=t=>t.startsWith("onUpdate:"),M=Object.assign,U=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},u=Object.prototype.hasOwnProperty,x=(t,e)=>u.call(t,e),m=Array.isArray,V=t=>r(t)==="[object Map]",_=t=>r(t)==="[object Set]",F=t=>r(t)==="[object RegExp]",a=t=>typeof t=="function",s=t=>typeof t=="string",D=t=>typeof t=="symbol",l=t=>t!==null&&typeof t=="object",I=t=>(l(t)||a(t))&&a(t.then)&&a(t.catch),h=Object.prototype.toString,r=t=>h.call(t),G=t=>r(t).slice(8,-1),H=t=>r(t)==="[object Object]",J=t=>s(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,K=d(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),c=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},b=/-(\w)/g,L=c(t=>t.replace(b,(e,n)=>n?n.toUpperCase():"")),g=/\B([A-Z])/g,Y=c(t=>t.replace(g,"-$1").toLowerCase()),y=c(t=>t.charAt(0).toUpperCase()+t.slice(1)),$=c(t=>t?`on${y(t)}`:""),q=(t,e)=>!Object.is(t,e),W=(t,...e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:o,value:n})},k=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Q=t=>{const e=s(t)?Number(t):NaN;return isNaN(e)?t:e};let p;const X=()=>p||(p=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function O(t){if(m(t)){const e={};for(let n=0;n{if(n){const o=n.split(A);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function S(t){let e="";if(s(t))e=t;else if(m(t))for(let n=0;nn in e}const E={},R=[],T=()=>{},B=()=>!1,P=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),z=t=>t.startsWith("onUpdate:"),M=Object.assign,U=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},u=Object.prototype.hasOwnProperty,x=(t,e)=>u.call(t,e),m=Array.isArray,V=t=>r(t)==="[object Map]",_=t=>r(t)==="[object Set]",F=t=>r(t)==="[object RegExp]",a=t=>typeof t=="function",s=t=>typeof t=="string",D=t=>typeof t=="symbol",l=t=>t!==null&&typeof t=="object",I=t=>(l(t)||a(t))&&a(t.then)&&a(t.catch),h=Object.prototype.toString,r=t=>h.call(t),G=t=>r(t).slice(8,-1),H=t=>r(t)==="[object Object]",J=t=>s(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,K=d(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),c=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},b=/-(\w)/g,L=c(t=>t.replace(b,(e,n)=>n?n.toUpperCase():"")),g=/\B([A-Z])/g,Y=c(t=>t.replace(g,"-$1").toLowerCase()),y=c(t=>t.charAt(0).toUpperCase()+t.slice(1)),$=c(t=>t?`on${y(t)}`:""),q=(t,e)=>!Object.is(t,e),W=(t,...e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:o,value:n})},k=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Q=t=>{const e=s(t)?Number(t):NaN;return isNaN(e)?t:e};let p;const X=()=>p||(p=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function O(t){if(m(t)){const e={};for(let n=0;n{if(n){const o=n.split(A);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function S(t){let e="";if(s(t))e=t;else if(m(t))for(let n=0;n{l.forEach(c=>c()),l.length=0},d=(c,i,p,t)=>(c.addEventListener(i,p,t),()=>c.removeEventListener(i,p,t)),h=k(()=>[A(n),_(s)],([c,i])=>{if(f(),!c)return;const p=G(i)?{...i}:i;l.push(...r.flatMap(t=>o.map(a=>d(c,t,a,p))))},{immediate:!0,flush:"post"}),m=()=>{h(),f()};return D(m),m}let B=!1;function we(e,n,r={}){const{window:o=M,ignore:s=[],capture:l=!0,detectIframe:f=!1}=r;if(!o)return I;X&&!B&&(B=!0,Array.from(o.document.body.children).forEach(t=>t.addEventListener("click",I)),o.document.documentElement.addEventListener("click",I));let d=!0;const h=t=>_(s).some(a=>{if(typeof a=="string")return Array.from(o.document.querySelectorAll(a)).some(v=>v===t.target||t.composedPath().includes(v));{const v=A(a);return v&&(t.target===v||t.composedPath().includes(v))}}),m=t=>{const a=A(e);if(!(!a||a===t.target||t.composedPath().includes(a))){if(t.detail===0&&(d=!h(t)),!d){d=!0;return}n(t)}};let c=!1;const i=[T(o,"click",t=>{c||(c=!0,setTimeout(()=>{c=!1},0),m(t))},{passive:!0,capture:l}),T(o,"pointerdown",t=>{const a=A(e);d=!h(t)&&!!(a&&!t.composedPath().includes(a))},{passive:!0}),f&&T(o,"blur",t=>{setTimeout(()=>{var a;const v=A(e);((a=o.document.activeElement)==null?void 0:a.tagName)==="IFRAME"&&!(v!=null&&v.contains(o.document.activeElement))&&n(t)},0)})].filter(Boolean);return()=>i.forEach(t=>t())}function oe(){const e=E(!1),n=re();return n&&ne(()=>{e.value=!0},n),e}function x(e){const n=oe();return L(()=>(n.value,!!e()))}function se(e,n,r={}){const{window:o=M,...s}=r;let l;const f=x(()=>o&&"MutationObserver"in o),d=()=>{l&&(l.disconnect(),l=void 0)},h=L(()=>{const p=_(e),t=(Array.isArray(p)?p:[p]).map(A).filter(q);return new Set(t)}),m=k(()=>h.value,p=>{d(),f.value&&p.size&&(l=new MutationObserver(n),p.forEach(t=>l.observe(t,s)))},{immediate:!0,flush:"post"}),c=()=>l==null?void 0:l.takeRecords(),i=()=>{m(),d()};return D(i),{isSupported:f,stop:i,takeRecords:c}}function K(e,n={}){const{window:r=M}=n,o=x(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let s;const l=E(!1),f=m=>{l.value=m.matches},d=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",f):s.removeListener(f))},h=te(()=>{o.value&&(d(),s=r.matchMedia(_(e)),"addEventListener"in s?s.addEventListener("change",f):s.addListener(f),l.value=s.matches)});return D(()=>{h(),d(),s=void 0}),l}const F=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},H="__vueuse_ssr_handlers__",ie=ae();function ae(){return H in F||(F[H]=F[H]||{}),F[H]}function Q(e,n){return ie[e]||n}function ue(e){return K("(prefers-color-scheme: dark)",e)}function le(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const ce={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},J="vueuse-storage";function de(e,n,r,o={}){var s;const{flush:l="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:m=!1,shallow:c,window:i=M,eventFilter:p,onError:t=u=>{console.error(u)},initOnMounted:a}=o,v=(c?Z:E)(typeof n=="function"?n():n);if(!r)try{r=Q("getDefaultStorage",()=>{var u;return(u=M)==null?void 0:u.localStorage})()}catch(u){t(u)}if(!r)return v;const g=_(n),O=le(g),y=(s=o.serializer)!=null?s:ce[O],{pause:P,resume:S}=Y(v,()=>j(v.value),{flush:l,deep:f,eventFilter:p});i&&d&&V(()=>{r instanceof Storage?T(i,"storage",N):T(i,J,W),a&&N()}),a||N();function C(u,w){if(i){const b={key:e,oldValue:u,newValue:w,storageArea:r};i.dispatchEvent(r instanceof Storage?new StorageEvent("storage",b):new CustomEvent(J,{detail:b}))}}function j(u){try{const w=r.getItem(e);if(u==null)C(w,null),r.removeItem(e);else{const b=y.write(u);w!==b&&(r.setItem(e,b),C(w,b))}}catch(w){t(w)}}function z(u){const w=u?u.newValue:r.getItem(e);if(w==null)return h&&g!=null&&r.setItem(e,y.write(g)),g;if(!u&&m){const b=y.read(w);return typeof m=="function"?m(b,g):O==="object"&&!Array.isArray(b)?{...g,...b}:b}else return typeof w!="string"?w:y.read(w)}function N(u){if(!(u&&u.storageArea!==r)){if(u&&u.key==null){v.value=g;return}if(!(u&&u.key!==e)){P();try{(u==null?void 0:u.newValue)!==y.write(v.value)&&(v.value=z(u))}catch(w){t(w)}finally{u?ee(S):S()}}}}function W(u){N(u.detail)}return v}const fe="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function ge(e={}){const{selector:n="html",attribute:r="class",initialValue:o="auto",window:s=M,storage:l,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:m,disableTransition:c=!0}=e,i={auto:"",light:"light",dark:"dark",...e.modes||{}},p=ue({window:s}),t=L(()=>p.value?"dark":"light"),a=h||(f==null?U(o):de(f,o,l,{window:s,listenToStorageChanges:d})),v=L(()=>a.value==="auto"?t.value:a.value),g=Q("updateHTMLAttrs",(S,C,j)=>{const z=typeof S=="string"?s==null?void 0:s.document.querySelector(S):A(S);if(!z)return;const N=new Set,W=new Set;let u=null;if(C==="class"){const b=j.split(/\s/g);Object.values(i).flatMap(R=>(R||"").split(/\s/g)).filter(Boolean).forEach(R=>{b.includes(R)?N.add(R):W.add(R)})}else u={key:C,value:j};if(N.size===0&&W.size===0&&u===null)return;let w;c&&(w=s.document.createElement("style"),w.appendChild(document.createTextNode(fe)),s.document.head.appendChild(w));for(const b of N)z.classList.add(b);for(const b of W)z.classList.remove(b);u&&z.setAttribute(u.key,u.value),c&&(s.getComputedStyle(w).opacity,document.head.removeChild(w))});function O(S){var C;g(n,r,(C=i[S])!=null?C:S)}function y(S){e.onChanged?e.onChanged(S,O):O(S)}k(v,y,{flush:"post",immediate:!0}),V(()=>y(v.value));const P=L({get(){return m?a.value:v.value},set(S){a.value=S}});try{return Object.assign(P,{store:a,system:t,state:v})}catch{return P}}function me(e,n,r={}){const{window:o=M,...s}=r;let l;const f=x(()=>o&&"ResizeObserver"in o),d=()=>{l&&(l.disconnect(),l=void 0)},h=L(()=>{const i=_(e);return Array.isArray(i)?i.map(p=>A(p)):[A(i)]}),m=k(h,i=>{if(d(),f.value&&o){l=new ResizeObserver(n);for(const p of i)p&&l.observe(p,s)}},{immediate:!0,flush:"post"}),c=()=>{d(),m()};return D(c),{isSupported:f,stop:c}}function ye(e,n={}){const{reset:r=!0,windowResize:o=!0,windowScroll:s=!0,immediate:l=!0,updateTiming:f="sync"}=n,d=E(0),h=E(0),m=E(0),c=E(0),i=E(0),p=E(0),t=E(0),a=E(0);function v(){const O=A(e);if(!O){r&&(d.value=0,h.value=0,m.value=0,c.value=0,i.value=0,p.value=0,t.value=0,a.value=0);return}const y=O.getBoundingClientRect();d.value=y.height,h.value=y.bottom,m.value=y.left,c.value=y.right,i.value=y.top,p.value=y.width,t.value=y.x,a.value=y.y}function g(){f==="sync"?v():f==="next-frame"&&requestAnimationFrame(()=>v())}return me(e,g),k(()=>A(e),O=>!O&&g()),se(e,g,{attributeFilter:["style","class"]}),s&&T("scroll",g,{capture:!0,passive:!0}),o&&T("resize",g,{passive:!0}),V(()=>{l&&g()}),{height:d,bottom:h,left:m,right:c,top:i,width:p,x:t,y:a,update:g}}function be(e,n,r={}){const{root:o,rootMargin:s="0px",threshold:l=0,window:f=M,immediate:d=!0}=r,h=x(()=>f&&"IntersectionObserver"in f),m=L(()=>{const a=_(e);return(Array.isArray(a)?a:[a]).map(A).filter(q)});let c=I;const i=E(d),p=h.value?k(()=>[m.value,A(o),i.value],([a,v])=>{if(c(),!i.value||!a.length)return;const g=new IntersectionObserver(n,{root:A(v),rootMargin:s,threshold:l});a.forEach(O=>O&&g.observe(O)),c=()=>{g.disconnect(),c=I}},{immediate:d,flush:"post"}):I,t=()=>{c(),p(),i.value=!1};return D(t),{isSupported:h,isActive:i,pause(){c(),i.value=!1},resume(){i.value=!0},stop:t}}function Se(e={}){const{window:n=M,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:l=!0,type:f="inner"}=e,d=E(r),h=E(o),m=()=>{n&&(f==="outer"?(d.value=n.outerWidth,h.value=n.outerHeight):l?(d.value=n.innerWidth,h.value=n.innerHeight):(d.value=n.document.documentElement.clientWidth,h.value=n.document.documentElement.clientHeight))};if(m(),V(m),T("resize",m,{passive:!0}),s){const c=K("(orientation: portrait)");k(c,()=>m())}return{width:d,height:h}}export{be as a,me as b,ge as c,de as d,ye as e,Se as f,we as o,T as u}; +import{t as _,w as Y,a as V,i as $,n as I,b as G,c as U,d as q,e as D,f as X}from"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import{s as Z,k as E}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{n as ee,w as k,f as L,j as te,k as ne,d as re}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";const M=$?window:void 0;function A(e){var n;const r=_(e);return(n=r==null?void 0:r.$el)!=null?n:r}function T(...e){let n,r,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,o,s]=e,n=M):[n,r,o,s]=e,!n)return I;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const l=[],f=()=>{l.forEach(c=>c()),l.length=0},d=(c,i,p,t)=>(c.addEventListener(i,p,t),()=>c.removeEventListener(i,p,t)),h=k(()=>[A(n),_(s)],([c,i])=>{if(f(),!c)return;const p=G(i)?{...i}:i;l.push(...r.flatMap(t=>o.map(a=>d(c,t,a,p))))},{immediate:!0,flush:"post"}),m=()=>{h(),f()};return D(m),m}let B=!1;function we(e,n,r={}){const{window:o=M,ignore:s=[],capture:l=!0,detectIframe:f=!1}=r;if(!o)return I;X&&!B&&(B=!0,Array.from(o.document.body.children).forEach(t=>t.addEventListener("click",I)),o.document.documentElement.addEventListener("click",I));let d=!0;const h=t=>_(s).some(a=>{if(typeof a=="string")return Array.from(o.document.querySelectorAll(a)).some(v=>v===t.target||t.composedPath().includes(v));{const v=A(a);return v&&(t.target===v||t.composedPath().includes(v))}}),m=t=>{const a=A(e);if(!(!a||a===t.target||t.composedPath().includes(a))){if(t.detail===0&&(d=!h(t)),!d){d=!0;return}n(t)}};let c=!1;const i=[T(o,"click",t=>{c||(c=!0,setTimeout(()=>{c=!1},0),m(t))},{passive:!0,capture:l}),T(o,"pointerdown",t=>{const a=A(e);d=!h(t)&&!!(a&&!t.composedPath().includes(a))},{passive:!0}),f&&T(o,"blur",t=>{setTimeout(()=>{var a;const v=A(e);((a=o.document.activeElement)==null?void 0:a.tagName)==="IFRAME"&&!(v!=null&&v.contains(o.document.activeElement))&&n(t)},0)})].filter(Boolean);return()=>i.forEach(t=>t())}function oe(){const e=E(!1),n=re();return n&&ne(()=>{e.value=!0},n),e}function x(e){const n=oe();return L(()=>(n.value,!!e()))}function se(e,n,r={}){const{window:o=M,...s}=r;let l;const f=x(()=>o&&"MutationObserver"in o),d=()=>{l&&(l.disconnect(),l=void 0)},h=L(()=>{const p=_(e),t=(Array.isArray(p)?p:[p]).map(A).filter(q);return new Set(t)}),m=k(()=>h.value,p=>{d(),f.value&&p.size&&(l=new MutationObserver(n),p.forEach(t=>l.observe(t,s)))},{immediate:!0,flush:"post"}),c=()=>l==null?void 0:l.takeRecords(),i=()=>{m(),d()};return D(i),{isSupported:f,stop:i,takeRecords:c}}function K(e,n={}){const{window:r=M}=n,o=x(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let s;const l=E(!1),f=m=>{l.value=m.matches},d=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",f):s.removeListener(f))},h=te(()=>{o.value&&(d(),s=r.matchMedia(_(e)),"addEventListener"in s?s.addEventListener("change",f):s.addListener(f),l.value=s.matches)});return D(()=>{h(),d(),s=void 0}),l}const F=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},H="__vueuse_ssr_handlers__",ie=ae();function ae(){return H in F||(F[H]=F[H]||{}),F[H]}function Q(e,n){return ie[e]||n}function ue(e){return K("(prefers-color-scheme: dark)",e)}function le(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const ce={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},J="vueuse-storage";function de(e,n,r,o={}){var s;const{flush:l="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:m=!1,shallow:c,window:i=M,eventFilter:p,onError:t=u=>{console.error(u)},initOnMounted:a}=o,v=(c?Z:E)(typeof n=="function"?n():n);if(!r)try{r=Q("getDefaultStorage",()=>{var u;return(u=M)==null?void 0:u.localStorage})()}catch(u){t(u)}if(!r)return v;const g=_(n),O=le(g),y=(s=o.serializer)!=null?s:ce[O],{pause:P,resume:S}=Y(v,()=>j(v.value),{flush:l,deep:f,eventFilter:p});i&&d&&V(()=>{r instanceof Storage?T(i,"storage",N):T(i,J,W),a&&N()}),a||N();function C(u,w){if(i){const b={key:e,oldValue:u,newValue:w,storageArea:r};i.dispatchEvent(r instanceof Storage?new StorageEvent("storage",b):new CustomEvent(J,{detail:b}))}}function j(u){try{const w=r.getItem(e);if(u==null)C(w,null),r.removeItem(e);else{const b=y.write(u);w!==b&&(r.setItem(e,b),C(w,b))}}catch(w){t(w)}}function z(u){const w=u?u.newValue:r.getItem(e);if(w==null)return h&&g!=null&&r.setItem(e,y.write(g)),g;if(!u&&m){const b=y.read(w);return typeof m=="function"?m(b,g):O==="object"&&!Array.isArray(b)?{...g,...b}:b}else return typeof w!="string"?w:y.read(w)}function N(u){if(!(u&&u.storageArea!==r)){if(u&&u.key==null){v.value=g;return}if(!(u&&u.key!==e)){P();try{(u==null?void 0:u.newValue)!==y.write(v.value)&&(v.value=z(u))}catch(w){t(w)}finally{u?ee(S):S()}}}}function W(u){N(u.detail)}return v}const fe="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function ge(e={}){const{selector:n="html",attribute:r="class",initialValue:o="auto",window:s=M,storage:l,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:m,disableTransition:c=!0}=e,i={auto:"",light:"light",dark:"dark",...e.modes||{}},p=ue({window:s}),t=L(()=>p.value?"dark":"light"),a=h||(f==null?U(o):de(f,o,l,{window:s,listenToStorageChanges:d})),v=L(()=>a.value==="auto"?t.value:a.value),g=Q("updateHTMLAttrs",(S,C,j)=>{const z=typeof S=="string"?s==null?void 0:s.document.querySelector(S):A(S);if(!z)return;const N=new Set,W=new Set;let u=null;if(C==="class"){const b=j.split(/\s/g);Object.values(i).flatMap(R=>(R||"").split(/\s/g)).filter(Boolean).forEach(R=>{b.includes(R)?N.add(R):W.add(R)})}else u={key:C,value:j};if(N.size===0&&W.size===0&&u===null)return;let w;c&&(w=s.document.createElement("style"),w.appendChild(document.createTextNode(fe)),s.document.head.appendChild(w));for(const b of N)z.classList.add(b);for(const b of W)z.classList.remove(b);u&&z.setAttribute(u.key,u.value),c&&(s.getComputedStyle(w).opacity,document.head.removeChild(w))});function O(S){var C;g(n,r,(C=i[S])!=null?C:S)}function y(S){e.onChanged?e.onChanged(S,O):O(S)}k(v,y,{flush:"post",immediate:!0}),V(()=>y(v.value));const P=L({get(){return m?a.value:v.value},set(S){a.value=S}});try{return Object.assign(P,{store:a,system:t,state:v})}catch{return P}}function me(e,n,r={}){const{window:o=M,...s}=r;let l;const f=x(()=>o&&"ResizeObserver"in o),d=()=>{l&&(l.disconnect(),l=void 0)},h=L(()=>{const i=_(e);return Array.isArray(i)?i.map(p=>A(p)):[A(i)]}),m=k(h,i=>{if(d(),f.value&&o){l=new ResizeObserver(n);for(const p of i)p&&l.observe(p,s)}},{immediate:!0,flush:"post"}),c=()=>{d(),m()};return D(c),{isSupported:f,stop:c}}function ye(e,n={}){const{reset:r=!0,windowResize:o=!0,windowScroll:s=!0,immediate:l=!0,updateTiming:f="sync"}=n,d=E(0),h=E(0),m=E(0),c=E(0),i=E(0),p=E(0),t=E(0),a=E(0);function v(){const O=A(e);if(!O){r&&(d.value=0,h.value=0,m.value=0,c.value=0,i.value=0,p.value=0,t.value=0,a.value=0);return}const y=O.getBoundingClientRect();d.value=y.height,h.value=y.bottom,m.value=y.left,c.value=y.right,i.value=y.top,p.value=y.width,t.value=y.x,a.value=y.y}function g(){f==="sync"?v():f==="next-frame"&&requestAnimationFrame(()=>v())}return me(e,g),k(()=>A(e),O=>!O&&g()),se(e,g,{attributeFilter:["style","class"]}),s&&T("scroll",g,{capture:!0,passive:!0}),o&&T("resize",g,{passive:!0}),V(()=>{l&&g()}),{height:d,bottom:h,left:m,right:c,top:i,width:p,x:t,y:a,update:g}}function be(e,n,r={}){const{root:o,rootMargin:s="0px",threshold:l=0,window:f=M,immediate:d=!0}=r,h=x(()=>f&&"IntersectionObserver"in f),m=L(()=>{const a=_(e);return(Array.isArray(a)?a:[a]).map(A).filter(q)});let c=I;const i=E(d),p=h.value?k(()=>[m.value,A(o),i.value],([a,v])=>{if(c(),!i.value||!a.length)return;const g=new IntersectionObserver(n,{root:A(v),rootMargin:s,threshold:l});a.forEach(O=>O&&g.observe(O)),c=()=>{g.disconnect(),c=I}},{immediate:d,flush:"post"}):I,t=()=>{c(),p(),i.value=!1};return D(t),{isSupported:h,isActive:i,pause(){c(),i.value=!1},resume(){i.value=!0},stop:t}}function Se(e={}){const{window:n=M,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:l=!0,type:f="inner"}=e,d=E(r),h=E(o),m=()=>{n&&(f==="outer"?(d.value=n.outerWidth,h.value=n.outerHeight):l?(d.value=n.innerWidth,h.value=n.innerHeight):(d.value=n.document.documentElement.clientWidth,h.value=n.document.documentElement.clientHeight))};if(m(),V(m),T("resize",m,{passive:!0}),s){const c=K("(orientation: portrait)");k(c,()=>m())}return{width:d,height:h}}export{be as a,me as b,ge as c,de as d,ye as e,Se as f,we as o,T as u}; diff --git a/js/@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js.gz b/js/@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js.gz new file mode 100644 index 00000000..06fb9c0b Binary files /dev/null and b/js/@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js.gz differ diff --git a/js/@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js.gz b/js/@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js.gz deleted file mode 100644 index 2d3dd946..00000000 Binary files a/js/@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js.gz and /dev/null differ diff --git a/js/@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js b/js/@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js similarity index 94% rename from js/@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js rename to js/@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js index 01bd6446..bb51c88e 100644 --- a/js/@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js +++ b/js/@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js @@ -1 +1 @@ -import{u as F,k as h,l as g,n as S,o as T,q as j,v as A,a as P}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import{k,n as D,w as x,d as C}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";function $(t){return j()?(A(t),!0):!1}function R(t){return typeof t=="function"?t():F(t)}const I=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const z=t=>t!=null,M=Object.prototype.toString,B=t=>M.call(t)==="[object Object]",d=()=>{},H=W();function W(){var t,e;return I&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function G(t,e){function n(...o){return new Promise((i,r)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(i).catch(r)})}return n}const m=t=>t();function L(...t){let e=0,n,o=!0,i=d,r,s,u,a,l;!P(t[0])&&typeof t[0]=="object"?{delay:s,trailing:u=!0,leading:a=!0,rejectOnCancel:l=!1}=t[0]:[s,u=!0,a=!0,l=!1]=t;const p=()=>{n&&(clearTimeout(n),n=void 0,i(),i=d)};return b=>{const c=R(s),w=Date.now()-e,f=()=>r=b();return p(),c<=0?(e=Date.now(),f()):(w>c&&(a||!o)?(e=Date.now(),f()):u&&(r=new Promise((v,O)=>{i=l?O:v,n=setTimeout(()=>{e=Date.now(),o=!0,v(f()),p()},Math.max(0,c-w))})),!a&&!n&&(n=setTimeout(()=>o=!0,c)),o=!1,r)}}function V(t=m){const e=h(!0);function n(){e.value=!1}function o(){e.value=!0}const i=(...r)=>{e.value&&t(...r)};return{isActive:g(e),pause:n,resume:o,eventFilter:i}}function _(t){return C()}function J(...t){if(t.length!==1)return S(...t);const e=t[0];return typeof e=="function"?g(T(()=>({get:e,set:d}))):h(e)}function y(t,e,n={}){const{eventFilter:o=m,...i}=n;return x(t,G(o,e),i)}function K(t,e,n={}){const{eventFilter:o,...i}=n,{eventFilter:r,pause:s,resume:u,isActive:a}=V(o);return{stop:y(t,e,{...i,eventFilter:r}),pause:s,resume:u,isActive:a}}function Q(t,e=!0,n){_()?k(t,n):e?t():D(t)}function U(t,e,n={}){const{throttle:o=0,trailing:i=!0,leading:r=!0,...s}=n;return y(t,e,{...s,eventFilter:L(o,i,r)})}export{Q as a,B as b,J as c,z as d,$ as e,H as f,U as g,I as i,d as n,R as t,K as w}; +import{u as F,k as h,l as g,n as S,o as T,q as j,v as A,a as P}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{k,n as D,w as x,d as C}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";function $(t){return j()?(A(t),!0):!1}function R(t){return typeof t=="function"?t():F(t)}const I=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const z=t=>t!=null,M=Object.prototype.toString,B=t=>M.call(t)==="[object Object]",d=()=>{},H=W();function W(){var t,e;return I&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function G(t,e){function n(...o){return new Promise((i,r)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(i).catch(r)})}return n}const m=t=>t();function L(...t){let e=0,n,o=!0,i=d,r,s,u,a,l;!P(t[0])&&typeof t[0]=="object"?{delay:s,trailing:u=!0,leading:a=!0,rejectOnCancel:l=!1}=t[0]:[s,u=!0,a=!0,l=!1]=t;const p=()=>{n&&(clearTimeout(n),n=void 0,i(),i=d)};return b=>{const c=R(s),w=Date.now()-e,f=()=>r=b();return p(),c<=0?(e=Date.now(),f()):(w>c&&(a||!o)?(e=Date.now(),f()):u&&(r=new Promise((v,O)=>{i=l?O:v,n=setTimeout(()=>{e=Date.now(),o=!0,v(f()),p()},Math.max(0,c-w))})),!a&&!n&&(n=setTimeout(()=>o=!0,c)),o=!1,r)}}function V(t=m){const e=h(!0);function n(){e.value=!1}function o(){e.value=!0}const i=(...r)=>{e.value&&t(...r)};return{isActive:g(e),pause:n,resume:o,eventFilter:i}}function _(t){return C()}function J(...t){if(t.length!==1)return S(...t);const e=t[0];return typeof e=="function"?g(T(()=>({get:e,set:d}))):h(e)}function y(t,e,n={}){const{eventFilter:o=m,...i}=n;return x(t,G(o,e),i)}function K(t,e,n={}){const{eventFilter:o,...i}=n,{eventFilter:r,pause:s,resume:u,isActive:a}=V(o);return{stop:y(t,e,{...i,eventFilter:r}),pause:s,resume:u,isActive:a}}function Q(t,e=!0,n){_()?k(t,n):e?t():D(t)}function U(t,e,n={}){const{throttle:o=0,trailing:i=!0,leading:r=!0,...s}=n;return y(t,e,{...s,eventFilter:L(o,i,r)})}export{Q as a,B as b,J as c,z as d,$ as e,H as f,U as g,I as i,d as n,R as t,K as w}; diff --git a/js/@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js.gz b/js/@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js.gz new file mode 100644 index 00000000..07b3e3a4 Binary files /dev/null and b/js/@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js.gz differ diff --git a/js/@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js.gz b/js/@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js.gz deleted file mode 100644 index 2be4968e..00000000 Binary files a/js/@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js.gz and /dev/null differ diff --git a/js/BarcodeDemo-DCyEZKXl.js b/js/BarcodeDemo-ChSS4k2S.js similarity index 71% rename from js/BarcodeDemo-DCyEZKXl.js rename to js/BarcodeDemo-ChSS4k2S.js index 92030c32..d53bbb9b 100644 --- a/js/BarcodeDemo-DCyEZKXl.js +++ b/js/BarcodeDemo-ChSS4k2S.js @@ -1 +1 @@ -import{I as a}from"./hooks-DKN08swi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{b as e,N as i,c as p,ag as l,I as s,L as n,a as c}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import{l as F,b as t,I as u}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{k as m}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./utils-DMI3ftdH.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const Et=F({name:"BarcodeDemo",setup(){const r={width:4},o=m(!1),d=m("RayTemplate");return{baseOptions:r,loading:o,text:d}},render(){const{baseOptions:r}=this;return t(c,{cols:2,xGap:12,yGap:12},{default:()=>[t(e,{span:2},{default:()=>[t(i,{title:"详细配置项说明"},{default:()=>[u("点击查看详细配置项:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/Options"},[u("js-barcode options")]),u("。")]})]}),t(e,{span:1},{default:()=>[t(i,{title:"基础条形码"},{default:()=>[t(a,{text:"RayTemplate",options:{...r}},null)]})]}),t(e,{span:1},{default:()=>[t(i,{title:"自定义颜色条形码"},{default:()=>[t(a,{text:"RayTemplate",options:{...r,lineColor:"red"}},null)]})]}),t(e,{span:1},{default:()=>[t(i,{title:"pharmacode 模式"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(l,{type:"warning",title:"注意"},{default:()=>[u("该模式下,条形码只能渲染有效数值,否则将会渲染失败。可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/pharmacode"},[u("pharmacode")]),u("。")]}),t(a,{text:"1234",format:"pharmacode",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"codabar 模式"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(l,{type:"warning",title:"注意"},{default:()=>[u("该模式下,需要注意 text 中的特殊字符,可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/codabar"},[u("codabar")]),u("。")]}),t(a,{text:"1234",format:"codabar",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"有状态的条形码"},{default:()=>[t(p,{vertical:!0,size:"large",justify:"flex-start",inline:!0},{default:()=>[t(s,{value:this.loading,"onUpdate:value":o=>this.loading=o,style:"width: fit-content"},{checked:()=>"loading...",unchecked:()=>"success!"}),t(a,{text:"RayTemplate",loading:this.loading},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"watchText 主动监听 text 变化"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(n,{value:this.text,"onUpdate:value":o=>this.text=o},null),t(a,{text:this.text,watchText:!0},null)]})]})]})]})}});export{Et as default}; +import{F as a}from"./hooks-yKQIzKXx.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{b as e,N as i,c as p,ah as l,I as s,L as n,a as F}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import{l as c,b as t,I as u}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{k as m}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./utils-DJWgFDlo.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const Et=c({name:"BarcodeDemo",setup(){const r={width:4},o=m(!1),d=m("RayTemplate");return{baseOptions:r,loading:o,text:d}},render(){const{baseOptions:r}=this;return t(F,{cols:2,xGap:12,yGap:12},{default:()=>[t(e,{span:2},{default:()=>[t(i,{title:"详细配置项说明"},{default:()=>[u("点击查看详细配置项:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/Options"},[u("js-barcode options")]),u("。")]})]}),t(e,{span:1},{default:()=>[t(i,{title:"基础条形码"},{default:()=>[t(a,{text:"RayTemplate",options:{...r}},null)]})]}),t(e,{span:1},{default:()=>[t(i,{title:"自定义颜色条形码"},{default:()=>[t(a,{text:"RayTemplate",options:{...r,lineColor:"red"}},null)]})]}),t(e,{span:1},{default:()=>[t(i,{title:"pharmacode 模式"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(l,{type:"warning",title:"注意"},{default:()=>[u("该模式下,条形码只能渲染有效数值,否则将会渲染失败。可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/pharmacode"},[u("pharmacode")]),u("。")]}),t(a,{text:"1234",format:"pharmacode",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"codabar 模式"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(l,{type:"warning",title:"注意"},{default:()=>[u("该模式下,需要注意 text 中的特殊字符,可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/codabar"},[u("codabar")]),u("。")]}),t(a,{text:"1234",format:"codabar",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"有状态的条形码"},{default:()=>[t(p,{vertical:!0,size:"large",justify:"flex-start",inline:!0},{default:()=>[t(s,{value:this.loading,"onUpdate:value":o=>this.loading=o,style:"width: fit-content"},{checked:()=>"loading...",unchecked:()=>"success!"}),t(a,{text:"RayTemplate",loading:this.loading},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"watchText 主动监听 text 变化"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(n,{value:this.text,"onUpdate:value":o=>this.text=o},null),t(a,{text:this.text,watchText:!0},null)]})]})]})]})}});export{Et as default}; diff --git a/js/BarcodeDemo-ChSS4k2S.js.gz b/js/BarcodeDemo-ChSS4k2S.js.gz new file mode 100644 index 00000000..2d1ef847 Binary files /dev/null and b/js/BarcodeDemo-ChSS4k2S.js.gz differ diff --git a/js/BarcodeDemo-DCyEZKXl.js.gz b/js/BarcodeDemo-DCyEZKXl.js.gz deleted file mode 100644 index 7839c74d..00000000 Binary files a/js/BarcodeDemo-DCyEZKXl.js.gz and /dev/null differ diff --git a/js/Flow-BIVYLQ0q.js b/js/Flow-BIVYLQ0q.js new file mode 100644 index 00000000..11ac6e5d --- /dev/null +++ b/js/Flow-BIVYLQ0q.js @@ -0,0 +1 @@ +import{B as l,C as n,E as s}from"./hooks-yKQIzKXx.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{N as m,a as d,ag as u,I as c,c as f}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import{l as g,k as y,b as t}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{k as p}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./utils-DJWgFDlo.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const wt=g({name:"RFlowDemo",setup(){const[r,{getFlowInstance:e}]=s(),o=p(),i=p({readonly:!1}),a=()=>{e()};return setTimeout(()=>{o.value={nodes:[{id:"21",type:"rect",x:300,y:100,text:"rect node"},{id:"50",type:"circle",x:500,y:100,text:"circle node"}],edges:[{id:"21",type:"polyline",sourceNodeId:"50",targetNodeId:"21"}]}},1e3),y(()=>{a()}),{register:r,flowDataRef:o,settingRef:i}},render(){const{register:r,flowDataRef:e,settingRef:o}=this;return t(f,{vertical:!0},{default:()=>[t(m,null,{default:()=>[t(l,null,{default:()=>[t(d,{xGap:4,yGap:18,cols:4},{default:()=>[t(u,{label:"禁用流程图"},{default:()=>[t(c,{value:o.readonly,"onUpdate:value":i=>o.readonly=i},null)]})]})]})]}),t(m,null,{default:()=>[t(n,{height:500,onRegister:r,data:e,readonly:o.readonly},null)]})]})}});export{wt as default}; diff --git a/js/Flow-BIVYLQ0q.js.gz b/js/Flow-BIVYLQ0q.js.gz new file mode 100644 index 00000000..03116bb9 Binary files /dev/null and b/js/Flow-BIVYLQ0q.js.gz differ diff --git a/js/Flow-D1FXlLKy.js b/js/Flow-D1FXlLKy.js deleted file mode 100644 index 1b2ac0a1..00000000 --- a/js/Flow-D1FXlLKy.js +++ /dev/null @@ -1 +0,0 @@ -import{x as l,F as n,H as s}from"./hooks-DKN08swi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{N as m,a as d,af as u,I as f,c}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import{l as y,k as g,b as t}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{k as p}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./utils-DMI3ftdH.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const wt=y({name:"RFlowDemo",setup(){const[r,{getFlowInstance:e}]=s(),o=p(),i=p({readonly:!1}),a=()=>{e()};return setTimeout(()=>{o.value={nodes:[{id:"21",type:"rect",x:300,y:100,text:"rect node"},{id:"50",type:"circle",x:500,y:100,text:"circle node"}],edges:[{id:"21",type:"polyline",sourceNodeId:"50",targetNodeId:"21"}]}},1e3),g(()=>{a()}),{register:r,flowDataRef:o,settingRef:i}},render(){const{register:r,flowDataRef:e,settingRef:o}=this;return t(c,{vertical:!0},{default:()=>[t(m,null,{default:()=>[t(l,null,{default:()=>[t(d,{xGap:4,yGap:18,cols:4},{default:()=>[t(u,{label:"禁用流程图"},{default:()=>[t(f,{value:o.readonly,"onUpdate:value":i=>o.readonly=i},null)]})]})]})]}),t(m,null,{default:()=>[t(n,{height:500,onRegister:r,data:e,readonly:o.readonly},null)]})]})}});export{wt as default}; diff --git a/js/Flow-D1FXlLKy.js.gz b/js/Flow-D1FXlLKy.js.gz deleted file mode 100644 index a2e8d891..00000000 Binary files a/js/Flow-D1FXlLKy.js.gz and /dev/null differ diff --git a/js/TablePro-BNd8MeCl.js.gz b/js/TablePro-BNd8MeCl.js.gz deleted file mode 100644 index 94469662..00000000 Binary files a/js/TablePro-BNd8MeCl.js.gz and /dev/null differ diff --git a/js/TablePro-BNd8MeCl.js b/js/TablePro-Ce1OT4eD.js similarity index 56% rename from js/TablePro-BNd8MeCl.js rename to js/TablePro-Ce1OT4eD.js index 4f680a55..acc57576 100644 --- a/js/TablePro-BNd8MeCl.js +++ b/js/TablePro-Ce1OT4eD.js @@ -1 +1 @@ -import{W as Y,X as Z,Q as _,z as j,Y as J,Z as $}from"./hooks-DKN08swi.js";import{k as ee}from"./utils-DMI3ftdH.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import{a as te}from"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import"./instance-CzbCXUZF.js";import{M as q}from"./mockjs@1.1.0-CxlURkif.js";import{d as L}from"./dayjs@1.11.10-C8LoRVP6.js";import{af as T,L as x,G as ae,aj as ue,c as f,O as m,N as U,H as I,ak as z,am as b,v as oe}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import{l as re,b as e,F as le,I as l,p as ie}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{k as c}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./axios@1.7.5-C8DqakIB.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function se(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!ie(a)}const ft=re({name:"TableProDemo",setup(){const{format:a}=$(),[v,{runTableRequest:h,getCurrentTableRequestParams:E,print:D,downloadCsv:n}]=Y(),i=c([]),g=[{type:"selection"},{title:"Name",key:"name"},{title:"Sign Status",key:"statusText"},{title:"Sign Time",key:"signTimeStart",render:u=>a(u.signTimeStart)+" ~ "+a(u.signTimeEnd)},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:u=>u.tags.map(o=>e(oe,{type:"info",bordered:!1,style:"margin-right: 6px"},se(o)?o:{default:()=>[o]}))},{title:"Remark",key:"remark"}],y=c(0),F=c({}),k=c((()=>{const d=[],o=L().valueOf();for(let r=0;r<30;r++)d.push({key:ee(),name:q.Random.cname(),age:r+20,address:q.Random.city(),tags:["nice","developer"],remark:"我是一条很长很长的备注",status:r%2===0?"success":"error",statusText:r%2===0?"在线":"离线",signTimeStart:L(o).add(r*2,"year").valueOf(),signTimeEnd:L(o).add(r+5,"day").valueOf()});return d})()),w=c({pagination:!0,manual:!1}),[G,{checkedRowKeysBind:O,getKeys:P,getRows:A,clearKey:R,clearAll:t,selectKey:V}]=Z(i,g,{rowKey:"key",onChange:(u,d,o)=>{}}),M=c(!0),C=u=>u==null,H=u=>new Promise(d=>{const{page:o=1,pageSize:r=10,name:K,status:N,signTimeStart:B,signTimeEnd:S}=u||{};let s=k.value;const X=k.value.length;K&&(s=s.filter(p=>p.name.includes(K))),N&&(s=s.filter(p=>p.status===N)),B&&S&&(s=s.filter(p=>p.signTimeStart>=B&&p.signTimeEnd<=S)),s=s.slice((o-1)*r,o*r),setTimeout(()=>{d({code:0,data:s,total:C(N)&&C(K)&&(C(B)||C(S))?X:s.length,message:"success",page:o,pageSize:r})},1e3)}),{run:Q,loading:W}=te(H,{onSuccess:u=>{const{data:d,total:o}=u;i.value=d,y.value=o}});return{tableDataRef:i,baseColumns:g,itemCountRef:y,loadingGetPersonList:W,runGetPersonList:Q,conditionRef:F,radioRef:w,runTableRequest:h,tableProRegister:v,print:D,downloadCsv:n,checkedRowKeysBind:O,checkedRowKeys:G,getKeys:P,getRows:A,clearKey:R,clearAll:t,collapseRef:M,selectKey:V}},render(){const{tableDataRef:a,baseColumns:v,itemCountRef:h,loadingGetPersonList:E,runGetPersonList:D,conditionRef:n,radioRef:i,runTableRequest:g,tableProRegister:y,print:F,downloadCsv:k,checkedRowKeysBind:w,getKeys:G,getRows:O,clearKey:P,clearAll:A,selectKey:R}=this;return e(f,{vertical:!0},{default:()=>[e(_,{open:this.collapseRef,bordered:!0},{default:()=>e(le,null,[e(T,{label:"用户名"},{default:()=>[e(x,{value:n.name,"onUpdate:value":t=>n.name=t,clearable:!0},null)]}),e(T,{label:"状态"},{default:()=>[e(ae,{value:n.status,"onUpdate:value":t=>n.status=t,clearable:!0,options:[{label:"成功",value:"success"},{label:"失败",value:"error"}]},null)]}),e(T,{label:"登陆时间"},{default:()=>[e(ue,{type:"datetimerange",value:n.RangeTime,"onUpdate:value":t=>n.RangeTime=t,clearable:!0},null)]}),e(T,{label:"演示折叠的条件框"},{default:()=>[e(x,{readonly:!0,placeholder:"我只是为了占位"},null)]})]),action:()=>e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>g(),loading:E},{default:()=>[l("查询")]})]}),collapse:t=>t?e(m,{onClick:()=>this.collapseRef=!0,secondary:!0},{default:()=>"受控展开",icon:()=>e(j,{name:"dark",size:"18"},null)}):e(m,{onClick:()=>this.collapseRef=!1,secondary:!0},{default:()=>"受控收起",icon:()=>e(j,{name:"light",size:"18"},null)})}),e(U,{title:"常用高级拓展功能"},{default:()=>[e(f,null,{default:()=>[e(I,{label:"分页"},{default:()=>[e(z,{value:i.pagination,"onUpdate:value":t=>i.pagination=t},{default:()=>[e(b,{value:!0},{default:()=>[l("显示分页")]}),e(b,{value:!1},{default:()=>[l("隐藏分页")]})]})]}),e(I,{label:"自动更新"},{default:()=>[e(z,{value:i.manual,"onUpdate:value":t=>i.manual=t},{default:()=>[e(b,{value:!1},{default:()=>[l("自动更新")]}),e(b,{value:!0},{default:()=>[l("取消自动")]})]})]})]})]}),e(U,{title:"useTablePro 部分方法"},{default:()=>[e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>F()},{default:()=>[l("打印")]}),e(m,{type:"primary",onClick:()=>k()},{default:()=>[l("下载 csv")]})]})]}),e(U,{title:"useCheckedRowKeys 部分方法"},{default:()=>[e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>{const t=a[1].key;R(t)}},{default:()=>[l("选中第二行")]}),e(m,{type:"primary",onClick:()=>{const t=a[1].key;P(t)}},{default:()=>[l("取消选中第二行")]}),e(m,{type:"primary",onClick:()=>{a==null||a.forEach(t=>R(t.key))}},{default:()=>[l("选中当前页面所有行")]}),e(m,{type:"primary",onClick:()=>{A()}},{default:()=>[l("取消所有已选中行")]})]})]}),e(J,{onRegister:y,data:a,columns:v,loading:E,paginationCount:h,request:D,requestConfig:{params:n,formatRangeTime:[{key:"RangeTime",target:["signTimeStart","signTimeEnd"]}]},showPagination:i.pagination,manual:i.manual,rowKey:t=>t.key,checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":t=>this.checkedRowKeys=t,onUpdateCheckedRowKeys:w},null)]})}});export{ft as default}; +import{V as _,W as J,P as Q,v as q,X as Z,Y as $}from"./hooks-yKQIzKXx.js";import{k as ee}from"./utils-DJWgFDlo.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import{a as te}from"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import"./instance-DGp8AH04.js";import{M as x}from"./mockjs@1.1.0-CxlURkif.js";import{d as L}from"./dayjs@1.11.10-C8LoRVP6.js";import{ag as v,L as j,G as ae,ak as ue,c as f,O as m,N as U,H as I,al as V,an as T,v as oe}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import{l as re,b as e,F as le,I as l,p as ie}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{k as c}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./axios@1.7.5-C8DqakIB.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function se(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!ie(a)}const ft=re({name:"TableProDemo",setup(){const{format:a}=$(),[b,{runTableRequest:h,getCurrentTableRequestParams:E,print:D,downloadCsv:n}]=_(),i=c([]),g=[{type:"selection"},{title:"Name",key:"name"},{title:"Sign Status",key:"statusText"},{title:"Sign Time",key:"signTimeStart",render:u=>a(u.signTimeStart)+" ~ "+a(u.signTimeEnd)},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:u=>u.tags.map(o=>e(oe,{type:"info",bordered:!1,style:"margin-right: 6px"},se(o)?o:{default:()=>[o]}))},{title:"Remark",key:"remark"}],y=c(0),F=c({}),k=c((()=>{const d=[],o=L().valueOf();for(let r=0;r<30;r++)d.push({key:ee(),name:x.Random.cname(),age:r+20,address:x.Random.city(),tags:["nice","developer"],remark:"我是一条很长很长的备注",status:r%2===0?"success":"error",statusText:r%2===0?"在线":"离线",signTimeStart:L(o).add(r*2,"year").valueOf(),signTimeEnd:L(o).add(r+5,"day").valueOf()});return d})()),w=c({pagination:!0,manual:!1}),[G,{checkedRowKeysBind:O,getKeys:P,getRows:A,clearKey:R,clearAll:t,selectKey:z}]=J(i,g,{rowKey:"key",onChange:(u,d,o)=>{}}),M=c(!0),C=u=>u==null,H=u=>new Promise(d=>{const{page:o=1,pageSize:r=10,name:K,status:N,signTimeStart:B,signTimeEnd:S}=u||{};let s=k.value;const Y=k.value.length;K&&(s=s.filter(p=>p.name.includes(K))),N&&(s=s.filter(p=>p.status===N)),B&&S&&(s=s.filter(p=>p.signTimeStart>=B&&p.signTimeEnd<=S)),s=s.slice((o-1)*r,o*r),setTimeout(()=>{d({code:0,data:s,total:C(N)&&C(K)&&(C(B)||C(S))?Y:s.length,message:"success",page:o,pageSize:r})},1e3)}),{run:W,loading:X}=te(H,{onSuccess:u=>{const{data:d,total:o}=u;i.value=d,y.value=o}});return{tableDataRef:i,baseColumns:g,itemCountRef:y,loadingGetPersonList:X,runGetPersonList:W,conditionRef:F,radioRef:w,runTableRequest:h,tableProRegister:b,print:D,downloadCsv:n,checkedRowKeysBind:O,checkedRowKeys:G,getKeys:P,getRows:A,clearKey:R,clearAll:t,collapseRef:M,selectKey:z}},render(){const{tableDataRef:a,baseColumns:b,itemCountRef:h,loadingGetPersonList:E,runGetPersonList:D,conditionRef:n,radioRef:i,runTableRequest:g,tableProRegister:y,print:F,downloadCsv:k,checkedRowKeysBind:w,getKeys:G,getRows:O,clearKey:P,clearAll:A,selectKey:R}=this;return e(f,{vertical:!0},{default:()=>[e(Q,{open:this.collapseRef,bordered:!0},{default:()=>e(le,null,[e(v,{label:"用户名"},{default:()=>[e(j,{value:n.name,"onUpdate:value":t=>n.name=t,clearable:!0},null)]}),e(v,{label:"状态"},{default:()=>[e(ae,{value:n.status,"onUpdate:value":t=>n.status=t,clearable:!0,options:[{label:"成功",value:"success"},{label:"失败",value:"error"}]},null)]}),e(v,{label:"登陆时间"},{default:()=>[e(ue,{type:"datetimerange",value:n.RangeTime,"onUpdate:value":t=>n.RangeTime=t,clearable:!0},null)]}),e(v,{label:"演示折叠的条件框"},{default:()=>[e(j,{readonly:!0,placeholder:"我只是为了占位"},null)]})]),action:()=>e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>g(),loading:E},{default:()=>[l("查询")]})]}),collapse:t=>t?e(m,{onClick:()=>this.collapseRef=!0,secondary:!0},{default:()=>"受控展开",icon:()=>e(q,{name:"dark",size:"18"},null)}):e(m,{onClick:()=>this.collapseRef=!1,secondary:!0},{default:()=>"受控收起",icon:()=>e(q,{name:"light",size:"18"},null)})}),e(U,{title:"常用高级拓展功能"},{default:()=>[e(f,null,{default:()=>[e(I,{label:"分页"},{default:()=>[e(V,{value:i.pagination,"onUpdate:value":t=>i.pagination=t},{default:()=>[e(T,{value:!0},{default:()=>[l("显示分页")]}),e(T,{value:!1},{default:()=>[l("隐藏分页")]})]})]}),e(I,{label:"自动更新"},{default:()=>[e(V,{value:i.manual,"onUpdate:value":t=>i.manual=t},{default:()=>[e(T,{value:!1},{default:()=>[l("自动更新")]}),e(T,{value:!0},{default:()=>[l("取消自动")]})]})]})]})]}),e(U,{title:"useTablePro 部分方法"},{default:()=>[e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>F()},{default:()=>[l("打印")]}),e(m,{type:"primary",onClick:()=>k()},{default:()=>[l("下载 csv")]})]})]}),e(U,{title:"useCheckedRowKeys 部分方法"},{default:()=>[e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>{const t=a[1].key;R(t)}},{default:()=>[l("选中第二行")]}),e(m,{type:"primary",onClick:()=>{const t=a[1].key;P(t)}},{default:()=>[l("取消选中第二行")]}),e(m,{type:"primary",onClick:()=>{a==null||a.forEach(t=>R(t.key))}},{default:()=>[l("选中当前页面所有行")]}),e(m,{type:"primary",onClick:()=>{A()}},{default:()=>[l("取消所有已选中行")]})]})]}),e(Z,{onRegister:y,data:a,columns:b,loading:E,paginationCount:h,request:D,requestConfig:{params:n,formatRangeTime:[{key:"RangeTime",target:["signTimeStart","signTimeEnd"]}]},showPagination:i.pagination,manual:i.manual,rowKey:t=>t.key,checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":t=>this.checkedRowKeys=t,onUpdateCheckedRowKeys:w},null)]})}});export{ft as default}; diff --git a/js/TablePro-Ce1OT4eD.js.gz b/js/TablePro-Ce1OT4eD.js.gz new file mode 100644 index 00000000..c7f81ddf Binary files /dev/null and b/js/TablePro-Ce1OT4eD.js.gz differ diff --git a/js/echarts@5.5.0-CezqL3m-.js b/js/echarts@5.5.0-CezqL3m-.js new file mode 100644 index 00000000..608af74b --- /dev/null +++ b/js/echarts@5.5.0-CezqL3m-.js @@ -0,0 +1,28 @@ +import{i as G,r as Ta,m as F,c as U,e as w,a as se,b as lt,d as Y,f as le,g as po,h as N,j as fe,k as Up,l as B,n as X,o as On,p as ze,P as Se,q as _l,s as ie,t as Yp,Z as Or,C as Ga,E as Wc,S as or,R as Hc,u as cs,v as Nn,w as he,L as er,B as Uc,A as vs,x as Xp,y as re,z as mt,D as Zp,F as $p,G as Kp,H as Yc,I as go,T as Xc,J as hs,K as tr,M as qp,N as Ye,O as jp,Q as ge,U as Qp,V as Zc,W as Da,X as we,Y as Jp,_ as Ce,$ as Bn,a0 as K,a1 as $,a2 as xt,a3 as eg,a4 as He,a5 as J,a6 as Be,a7 as be,a8 as oe,a9 as Aa,aa as tg,ab as yt,ac as mo,ad as $c,ae as rg,af as ng,ag,ah as Vn,ai as Sl,aj as pi,ak as ig,al as yo,am as _o,an as og,ao as ds,ap as xl,aq as gi,ar as sg,as as lg,at as Kc,au as on,av as Dr,aw as qc,ax as ug,ay as fg,az as cg,aA as So,aB as bl,aC as vg,aD as hg,aE as dg,aF as pg,aG as gg,aH as wl,aI as Cl,aJ as mg,aK as yg,aL as _g,aM as Sg,aN as xg,aO as bg,aP as wg,aQ as Cg,aR as Tg,aS as Dg}from"./zrender@5.5.0-DW8ownf1.js";import{_ as V}from"./tslib@2.3.0-BDyQ-Jie.js";var Tl=1e-4,jc=20;function Ag(r){return r.replace(/^\s+|\s+$/g,"")}function Ot(r,t,e,n){var a=t[0],i=t[1],o=e[0],s=e[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}function te(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return G(r)?Ag(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function _e(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),jc),r=(+r).toFixed(t),e?r:+r}function Ig(r){return r.sort(function(t,e){return t-e}),r}function pt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return Mg(r)}function Mg(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function Qc(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Lg(r,t){var e=Ta(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=F(r,function(v){return(isNaN(v)?0:v)/e*n*100}),i=n*100,o=F(a,function(v){return Math.floor(v)}),s=Ta(o,function(v,d){return v+d},0),l=F(a,function(v,d){return v-o[d]});su&&(u=l[c],f=c);++o[f],l[f]=0,++s}return F(o,function(v){return v/n})}function Pg(r,t){var e=Math.max(pt(r),pt(t)),n=r+t;return e>jc?n:_e(n,e)}function Jc(r){var t=Math.PI*2;return(r%t+t)%t}function Ia(r){return r>-Tl&&r=10&&t++,t}function ev(r,t){var e=ps(r),n=Math.pow(10,e),a=r/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function zt(r){var t=parseFloat(r);return t==r&&(t!==0||!G(r)||r.indexOf("x")<=0)?t:NaN}function tv(r){return!isNaN(zt(r))}function rv(){return Math.round(Math.random()*9)}function nv(r,t){return t===0?r:nv(t,r%t)}function Dl(r,t){return r==null?t:t==null?r:r*t/nv(r,t)}function Q(r){throw new Error(r)}function Al(r,t,e){return(t-r)*e+r}var av="series\0",iv="\0_ec_\0";function de(r){return r instanceof Array?r:r==null?[]:[r]}function xo(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,a=e.length;n=0||i&&se(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var nm=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],am=xn(nm),im=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return am(this,t,e)},r}(),Z=ue(),om=function(r,t,e,n){if(n){var a=Z(n);a.dataIndex=e,a.dataType=t,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=Z(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},Ml=1,Ll={},cv=ue(),_s=ue(),Ss=0,Ha=1,Ua=2,Xe=["emphasis","blur","select"],Ma=["normal","emphasis","blur","select"],sm=10,lm=9,Qt="highlight",ga="downplay",hn="select",ma="unselect",dn="toggleSelect";function ur(r){return r!=null&&r!=="none"}function Ya(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function vv(r){Ya(r,"emphasis",Ua)}function hv(r){r.hoverState===Ua&&Ya(r,"normal",Ss)}function xs(r){Ya(r,"blur",Ha)}function dv(r){r.hoverState===Ha&&Ya(r,"normal",Ss)}function um(r){r.selected=!0}function fm(r){r.selected=!1}function Pl(r,t,e){t(r,e)}function bt(r,t,e){Pl(r,t,e),r.isGroup&&r.traverse(function(n){Pl(n,t,e)})}function Rl(r,t){switch(t){case"emphasis":r.hoverState=Ua;break;case"normal":r.hoverState=Ss;break;case"blur":r.hoverState=Ha;break;case"select":r.selected=!0}}function cm(r,t,e,n){for(var a=r.style,i={},o=0;o=0,i=!1;if(r instanceof Se){var o=cv(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(ur(s)||ur(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=B({},n),u=B({},u),u.fill=s):!ur(u.fill)&&ur(s)?(i=!0,n=B({},n),u=B({},u),u.fill=_l(s)):!ur(u.stroke)&&ur(l)&&(i||(n=B({},n),u=B({},u)),u.stroke=_l(l)),n.style=u}}if(n&&n.z2==null){i||(n=B({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??sm)}return n}function hm(r,t,e){if(e&&e.z2==null){e=B({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??lm)}return e}function dm(r,t,e){var n=se(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:cm(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=B({},e),o=B({opacity:n?a:i.opacity*.1},o),e.style=o),e}function mi(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return vm(this,r,t,e);if(r==="blur")return dm(this,r,e);if(r==="select")return hm(this,r,e)}return e}function pm(r){r.stateProxy=mi;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=mi),e&&(e.stateProxy=mi)}function kl(r,t){!yv(r,t)&&!r.__highByOuter&&bt(r,vv)}function El(r,t){!yv(r,t)&&!r.__highByOuter&&bt(r,hv)}function Ar(r,t){r.__highByOuter|=1<<(t||0),bt(r,vv)}function Ir(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&bt(r,hv)}function gm(r){bt(r,xs)}function pv(r){bt(r,dv)}function gv(r){bt(r,um)}function mv(r){bt(r,fm)}function yv(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function _v(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var o=_s(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){dv(u)}),s&&e.push(i)),o.isBlured=!1}),w(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function bo(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(u,f){for(var c=0;c0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Co(r,t,e){Sv(r,!0),bt(r,pm),wm(r,t,e)}function bm(r){Sv(r,!1)}function Mr(r,t,e,n){n?bm(r):Co(r,t,e)}function wm(r,t,e){var n=Z(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var Nl=["emphasis","blur","select"],Cm={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function bn(r,t,e,n){e=e||"itemStyle";for(var a=0;a0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function me(r,t,e,n,a,i){ws("update",r,t,e,n,a,i)}function De(r,t,e,n,a,i){ws("enter",r,t,e,n,a,i)}function Sr(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function zl(r){return!r.isGroup}function Em(r){return r.shape!=null}function Dv(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){zl(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Em(o)&&(s.shape=B({},o.shape)),s}var i=n(r);t.traverse(function(o){if(zl(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),me(o,l,e,Z(o).dataIndex)}}})}function Av(r,t){return F(r,function(e){var n=e[0];n=Pa(n,t.x),n=Ra(n,t.x+t.width);var a=e[1];return a=Pa(a,t.y),a=Ra(a,t.y+t.height),[n,a]})}function Om(r,t){var e=Pa(r.x,t.x),n=Ra(r.x+r.width,t.x+t.width),a=Pa(r.y,t.y),i=Ra(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function $a(r,t,e){var n=B({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),re(a,e),new Or(n)):Cs(r.replace("path://",""),n,e,"center")}function Nm(r,t,e,n,a){for(var i=0,o=a[a.length-1];i1)return!1;var g=yi(v,d,f,c)/h;return!(g<0||g>1)}function yi(r,t,e,n){return r*n-e*t}function Bm(r){return r<=1e-6&&r>=-1e-6}function Ka(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=G(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&w(ze(l),function(f){mt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=Z(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:re({content:n,formatterParams:s},a)}}function Fl(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Gn(r,t){if(r)if(N(r))for(var e=0;e=0&&s.push(l)}),s}}function Is(r,t){return K(K({},r,!0),t,!0)}const jm={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Qm={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var ka="ZH",Ms="EN",xr=Ms,_a={},Ls={},kv=fe.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||xr).toUpperCase();return r.indexOf(ka)>-1?ka:xr}():xr;function Ev(r,t){r=r.toUpperCase(),Ls[r]=new ce(t),_a[r]=t}function Jm(r){if(G(r)){var t=_a[r.toUpperCase()]||{};return r===ka||r===Ms?$(t):K($(t),$(_a[xr]),!1)}else return K($(r),$(_a[xr]),!1)}function ey(r){return Ls[r]}function ty(){return Ls[xr]}Ev(Ms,jm);Ev(ka,Qm);var Ps=1e3,Rs=Ps*60,pn=Rs*60,Ue=pn*24,Xl=Ue*365,sn={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},$n="{yyyy}-{MM}-{dd}",Zl={year:"{yyyy}",month:"{yyyy}-{MM}",day:$n,hour:$n+" "+sn.hour,minute:$n+" "+sn.minute,second:$n+" "+sn.second,millisecond:sn.none},xi=["year","month","day","hour","minute","second","millisecond"],Ov=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Dt(r,t){return r+="","0000".substr(0,t-r.length)+r}function br(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function ry(r){return r===br(r)}function ny(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ja(r,t,e,n){var a=_t(r),i=a[ks(e)](),o=a[wr(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[Qa(e)](),u=a["get"+(e?"UTC":"")+"Day"](),f=a[Tn(e)](),c=(f-1)%12+1,h=a[Ja(e)](),v=a[ei(e)](),d=a[ti(e)](),p=n instanceof ce?n:ey(n||kv)||ty(),g=p.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Dt(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Dt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Dt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Dt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Dt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Dt(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Dt(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Dt(d,3)).replace(/{S}/g,d+"")}function ay(r,t,e,n,a){var i=null;if(G(e))i=e;else if(X(e))i=e(r.value,t,{level:r.level});else{var o=B({},sn);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(N(i)){var c=r.level==null?0:r.level>=0?r.level:i.length+r.level;c=Math.min(c,i.length-1),i=i[c]}}return ja(new Date(r.value),i,a,n)}function Nv(r,t){var e=_t(r),n=e[wr(t)]()+1,a=e[Qa(t)](),i=e[Tn(t)](),o=e[Ja(t)](),s=e[ei(t)](),l=e[ti(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&i===0,v=h&&a===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function $l(r,t,e){var n=le(r)?_t(r):r;switch(t=t||Nv(r,e),t){case"year":return n[ks(e)]();case"half-year":return n[wr(e)]()>=6?1:0;case"quarter":return Math.floor((n[wr(e)]()+1)/4);case"month":return n[wr(e)]();case"day":return n[Qa(e)]();case"half-day":return n[Tn(e)]()/24;case"hour":return n[Tn(e)]();case"minute":return n[Ja(e)]();case"second":return n[ei(e)]();case"millisecond":return n[ti(e)]()}}function ks(r){return r?"getUTCFullYear":"getFullYear"}function wr(r){return r?"getUTCMonth":"getMonth"}function Qa(r){return r?"getUTCDate":"getDate"}function Tn(r){return r?"getUTCHours":"getHours"}function Ja(r){return r?"getUTCMinutes":"getMinutes"}function ei(r){return r?"getUTCSeconds":"getSeconds"}function ti(r){return r?"getUTCMilliseconds":"getMilliseconds"}function iy(r){return r?"setUTCFullYear":"setFullYear"}function Bv(r){return r?"setUTCMonth":"setMonth"}function Vv(r){return r?"setUTCDate":"setDate"}function zv(r){return r?"setUTCHours":"setHours"}function Fv(r){return r?"setUTCMinutes":"setMinutes"}function Gv(r){return r?"setUTCSeconds":"setSeconds"}function Wv(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Hv(r){if(!tv(r))return G(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Uv(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var ri=eg;function Mo(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Bn(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?_t(r):r;if(isNaN(+l)){if(s)return"-"}else return ja(l,n,e)}if(t==="ordinal")return po(r)?a(r):le(r)&&i(r)?r+"":"-";var u=zt(r);return i(u)?Hv(u):po(r)?a(r):typeof r=="boolean"?r+"":"-"}var Kl=["a","b","c","d","e","f","g"],bi=function(r,t){return"{"+r+(t??"")+"}"};function Yv(r,t,e){N(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i':'';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function nr(r,t){return t=t||"transparent",G(r)?r:Y(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function ql(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Sa=w,sy=["left","right","top","bottom","width","height"],Kn=[["width","left","right"],["height","top","bottom"]];function Es(r,t,e,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=i+p,v>n||l.newline?(i=0,v=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);d=o+g,d>a||l.newline?(i+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var Cr=Es;J(Es,"vertical");J(Es,"horizontal");function Gt(r,t,e){e=ri(e||0);var n=t.width,a=t.height,i=te(r.left,n),o=te(r.top,a),s=te(r.right,n),l=te(r.bottom,a),u=te(r.width,n),f=te(r.height,a),c=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(f)&&(f=a-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-f-c),r.left||r.right){case"center":i=n/2-u/2-e[3];break;case"right":i=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-e[0];break;case"bottom":o=a-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=n-h-i-(s||0)),isNaN(f)&&(f=a-c-o-(l||0));var d=new Ye(i+e[3],o+e[0],u,f);return d.margin=e,d}function ly(r,t,e,n,a,i){i=i||r,i.x=r.x,i.y=r.y;var o;if(o=r.getBoundingRect(),r.needLocalTransform()){var s=r.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=Gt(re({width:o.width,height:o.height},t),e,n),u=l.x-o.x,f=l.y-o.y;return i.x+=u,i.y+=f,i===r&&r.markRedraw(),!0}function Dn(r){var t=r.layoutMode||r.constructor.layoutMode;return Y(t)?t:t?{type:t}:null}function Lr(r,t,e){var n=e&&e.ignoreSize;!N(n)&&(n=[n,n]);var a=o(Kn[0],0),i=o(Kn[1],1);u(Kn[0],r,a),u(Kn[1],r,i);function o(f,c){var h={},v=0,d={},p=0,g=2;if(Sa(f,function(_){d[_]=r[_]}),Sa(f,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,l(d,_)&&p++}),n[c])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(p===g||!v)return d;if(v>=g)return h;for(var m=0;m=0;l--)s=K(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return Fn(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(ce);fv(ee,ce);Wa(ee);Km(ee);qm(ee,cy);function cy(r){var t=[];return w(ee.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=F(t,function(e){return nt(e).main}),r!=="dataset"&&se(t,"dataset")<=0&&t.unshift("dataset"),t}var Xv="";typeof navigator<"u"&&(Xv=navigator.platform||"");var fr="rgba(0, 0, 0, 0.2)";const vy={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:fr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:fr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:fr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:fr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:fr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:fr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Xv.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Zv=U(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ze="original",Ee="arrayRows",$e="objectRows",ut="keyedColumns",Bt="typedArray",$v="unknown",st="column",zr="row",Te={Must:1,Might:2,Not:3},Kv=ue();function hy(r){Kv(r).datasetMap=U()}function qv(r,t,e){var n={},a=Os(t);if(!a||!r)return n;var i=[],o=[],s=t.ecModel,l=Kv(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),w(r,function(p,g){var m=Y(p)?p:r[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=d(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});w(r,function(p,g){var m=p.name,y=d(p);if(f==null){var _=h.valueWayDim;v(n[m],_,y),v(o,_,y),h.valueWayDim+=y}else if(f===g)v(n[m],0,y),v(i,0,y);else{var _=h.categoryWayDim;v(n[m],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(p,g,m){for(var y=0;yt)return r[n];return r[e-1]}function Jv(r,t,e,n,a,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?e:_y(n,o);if(f=f||e,!(!f||!f.length)){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}function Sy(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var qn,Yr,Jl,eu="\0_ec_inner",xy=1,Bs=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,o,s){i=i||{},this.option=null,this._theme=new ce(i),this._locale=new ce(o),this._optionManager=s},t.prototype.setOption=function(e,n,a){var i=nu(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,nu(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?Jl(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&w(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=U(),u=n&&n.replaceMergeMainTypeMap;hy(this),w(e,function(c,h){c!=null&&(ee.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?$(c):K(a[h],c,!0))}),u&&u.each(function(c,h){ee.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ee.topologicalTravel(s,ee.getAllClassMainTypes(),f,this);function f(c){var h=my(this,c,de(e[c])),v=i.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=Og(v,h,d);Hg(p,c,ee),a[c]=null,i.set(c,null),o.set(c,0);var g=[],m=[],y=0,_;w(p,function(S,b){var x=S.existing,C=S.newOption;if(!C)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=c==="series",D=ee.getClass(c,S.keyInfo.subType,!T);if(!D)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===D)x.name=S.keyInfo.name,x.mergeOption(C,this),x.optionUpdated(C,!1);else{var A=B({componentIndex:b},S.keyInfo);x=new D(C,this,this,A),B(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(C,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),m.push(x),y++):(g.push(void 0),m.push(void 0))},this),a[c]=g,i.set(c,m),o.set(c,y),c==="series"&&qn(this)}this._seriesIndices||qn(this)},t.prototype.getOption=function(){var e=$(this.option);return w(e,function(n,a){if(ee.hasClass(a)){for(var i=de(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Sn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[a]=i}}),delete e[eu],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function Ly(r,t){return r.join(",")===t.join(",")}var Ke=w,An=Y,au=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ci(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=au.length;e=0;g--){var m=r[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=Pg(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var ai=function(){function r(t){this.data=t.data||(t.sourceFormat===ut?{}:[]),this.sourceFormat=t.sourceFormat||$v,this.seriesLayoutBy=t.seriesLayoutBy||st,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;np&&(p=_)}v[0]=d,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};cu=(t={},t[Ee+"_"+st]={pure:!0,appendData:i},t[Ee+"_"+zr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[$e]={pure:!0,appendData:i},t[ut]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[Ze]={appendData:i},t[Bt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Pr(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function pu(r){var t,e;return Y(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function gn(r){return new $y(r)}var $y=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v1&&n>0?s:o}};return i;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},qy=function(){function r(t,e){if(!le(e)){var n="";Q(n)}this._opFn=ch[t],this._rvalFloat=zt(e)}return r.prototype.evaluate=function(t){return le(t)?this._opFn(t,this._rvalFloat):this._opFn(zt(t),this._rvalFloat)},r}(),vh=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=le(t)?t:zt(t),a=le(e)?e:zt(e),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=G(t),l=G(e);s&&(n=l?t:0),l&&(a=s?e:0)}return na?-this._resultLT:0},r}(),jy=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=zt(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=zt(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function Qy(r,t){return r==="eq"||r==="ne"?new jy(r==="eq",t):mt(ch,r)?new qy(r,t):null}var Jy=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return xa(t,e)},r}();function e0(r,t){var e=new Jy,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==st&&Q(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";mt(l,m)&&Q(_),l[m]=y}});else for(var f=0;f65535?l0:u0}function cr(){return[1/0,-1/0]}function f0(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function yu(r,t,e,n,a){var i=ph[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=F(o,function(y){return y.property}),f=0;fm[1]&&(m[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i=c&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=v[a[0]],_=v[a[1]],S=t[a[1]][0],b=t[a[1]][1],m=0;m=c&&y<=h||isNaN(y))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var m=0;m=c&&y<=h||isNaN(y))&&(l[u++]=C)}else for(var m=0;mt[A][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,c,h,v=new(Zr(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;df&&(f=c,h=S)}I>0&&If-d&&(l=f-d,s.length=l);for(var p=0;pc[1]&&(c[1]=m),h[v++]=y}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();il&&(l=c)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,a,i){return xa(e[i],this._dimensions[i])}Ai={arrayRows:t,objectRows:function(e,n,a,i){return xa(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var o=e&&(e.value==null?e:e.value);return xa(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}(),gh=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,a,i;if(jn(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Be(s)?Bt:Ze,i=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=ie(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=ie(c.sourceHeader,h.sourceHeader),p=ie(c.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;a=g?[Po(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(e);a=y.sourceList,i=y.upstreamSignList}else{var _=m.get("source",!0);a=[Po(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&Su(i)}var o,s=[],l=[];return w(t,function(u){u.prepareSource();var f=u.getSource(a||0),c="";a!=null&&!f&&Su(c),s.push(f),l.push(u._getVersionSign())}),n?o=o0(n,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[Fy(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return w(r.blocks,function(a){var i=Sh(a);i>=t&&(t=i+ +(n&&(!i||ko(a)&&!a.noHeader)))}),t}return 0}function h0(r,t,e,n){var a=t.noHeader,i=p0(Sh(t)),o=[],s=t.blocks||[];lt(!s||N(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(mt(u,l)){var f=new vh(u[l],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(d,p){var g=t.valueFormatter,m=_h(d)(g?B(B({},r),{valueFormatter:g}):r,d,p>0?i.html:0,n);m!=null&&o.push(m)});var c=r.renderMode==="richText"?o.join(i.richText):Eo(o.join(""),a?e:i.html);if(a)return c;var h=Mo(t.header,"ordinal",r.useUTC),v=yh(n,r.renderMode).nameStyle;return r.renderMode==="richText"?xh(r,h,v)+i.richText+c:Eo('
'+He(h)+"
"+c,e)}function d0(r,t,e,n){var a=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=N(S)?S:[S],F(S,function(b,x){return Mo(b,N(v)?v[x]:v,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),h=i?"":Mo(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!i,g=!s&&i,m=yh(n,a),y=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":c)+(i?"":xh(r,h,y))+(o?"":y0(r,d,p,g,_)):Eo((s?"":c)+(i?"":g0(h,!s,y))+(o?"":m0(d,p,g,_)),e)}}function xu(r,t,e,n,a,i){if(r){var o=_h(r),s={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function p0(r){return{html:c0[r],richText:v0[r]}}function Eo(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function g0(r,t,e){var n=t?"margin-left:2px":"";return''+He(r)+""}function m0(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=N(r)?r:[r],''+F(r,function(o){return He(o)}).join("  ")+""}function xh(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function y0(r,t,e,n,a){var i=[a],o=n?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(N(t)?t.join(" "):t,i)}function _0(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return nr(n)}function bh(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Ii=function(){function r(){this.richTextStyles={},this._nextStyleNameId=rv()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=oy({color:e,type:t,renderMode:n,markerId:a});return G(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};N(e)?w(e,function(i){return B(n,i)}):B(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function S0(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=N(s),u=_0(t,e),f,c,h,v;if(o>1||l&&!o){var d=x0(s,t,e,i,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);v=f=Pr(a,e,i[0]),c=p.type}else v=f=l?s[0]:s;var g=gs(t),m=g&&t.name||"",y=a.getName(e),_=n?m:y;return In("section",{header:m,noHeader:n||!g,sortParam:v,blocks:[In("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Bn(_),value:f,valueType:c,dataIndex:e})].concat(h||[])})}function x0(r,t,e,n,a){var i=t.getData(),o=Ta(r,function(c,h,v){var d=i.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?w(n,function(c){f(Pr(i,e,c),c)}):w(r,f);function f(c,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(In("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var At=ue();function Qn(r,t){return r.getName(t)||r.getId(t)}var ba="__universalTransitionEnabled",Ve=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=gn({count:w0,reset:C0}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=At(this).sourceManager=new gh(this);i.prepareSource();var o=this.getInitialData(e,a);wu(o,this),this.dataTask.context.data=o,At(this).dataBeforeProcessed=o,bu(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=Dn(this),i=a?ni(e):{},o=this.subType;ee.hasClass(o)&&(o+="Series"),K(e,n.getTheme().get(this.subType)),K(e,this.getDefaultOption()),xo(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Lr(e,i,a)},t.prototype.mergeOption=function(e,n){e=K(this.option,e,!0),this.fillDataTextStyle(e.data);var a=Dn(this);a&&Lr(this.option,e,a);var i=At(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,n);wu(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,At(this).dataBeforeProcessed=o,bu(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Be(e))for(var n=["show"],a=0;athis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,a){var i=this.ecModel,o=Ns.prototype.getColorFromPalette.call(this,e,n,a);return o||(o=i.getColorFromPalette(e,n,a)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Qn(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[ba])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Y(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(e,n)}},t.registerClass=function(e){return ee.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(ee);xt(Ve,Zy);xt(Ve,Ns);fv(Ve,ee);function bu(r){var t=r.name;gs(r)||(r.name=b0(r)||t)}function b0(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return w(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function w0(r){return r.model.getRawData().count()}function C0(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),T0}function T0(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function wu(r,t){w(tg(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,J(D0,t))})}function D0(r,t){var e=Oo(r);return e&&e.setOutputEnd((t||this).count()),t}function Oo(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var Ne=function(){function r(){this.group=new ge,this.uid=Wn("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();ys(Ne);Wa(Ne);function Hn(){var r=ue();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var wh=ue(),A0=Hn(),ke=function(){function r(){this.group=new ge,this.uid=Wn("viewChart"),this.renderTask=gn({plan:I0,reset:M0}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Tu(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Tu(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){Gn(this.group,t)},r.markUpdateMethod=function(t,e){wh(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Cu(r,t,e){r&&To(r)&&(t==="emphasis"?Ar:Ir)(r,e)}function Tu(r,t,e){var n=rr(r,t),a=t&&t.highlightKey!=null?Tm(t.highlightKey):null;n!=null?w(de(n),function(i){Cu(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){Cu(i,e,a)})}ys(ke);Wa(ke);function I0(r){return A0(r.model)}function M0(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=a&&wh(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,a),L0[l]}var L0={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Ea="\0__throttleOriginMethod",Du="\0__throttleRate",Au="\0__throttleType";function Ws(r,t,e){var n,a=0,i=0,o=null,s,l,u,f;t=t||0;function c(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?c():o=setTimeout(c,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function Ch(r,t,e,n){var a=r[t];if(a){var i=a[Ea]||a,o=a[Au],s=a[Du];if(s!==e||o!==n){if(e==null||!n)return r[t]=i;a=r[t]=Ws(i,e,n==="debounce"),a[Ea]=i,a[Au]=n,a[Du]=e}return a}}function No(r,t){var e=r[t];e&&e[Ea]&&(e.clear&&e.clear(),r[t]=e[Ea])}var Iu=ue(),Mu={itemStyle:xn(Rv,!0),lineStyle:xn(Pv,!0)},P0={lineStyle:"stroke",itemStyle:"fill"};function Th(r,t){var e=r.visualStyleMapper||Mu[t];return e||(console.warn("Unknown style type '"+t+"'."),Mu.itemStyle)}function Dh(r,t){var e=r.visualDrawType||P0[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var R0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=Th(r,n),o=i(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=Dh(r,n),u=o[l],f=X(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||X(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||X(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=B({},o);g[l]=f(p),v.setItemVisual(d,"style",g)}}}},$r=new ce,k0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=Th(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){$r.option=l[n];var u=a($r),f=o.ensureUniqueItemVisual(s,"style");B(f,u),$r.option.decal&&(o.setItemVisual(s,"decal",$r.option.decal),$r.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},E0={performRawSeries:!0,overallReset:function(r){var t=U();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),Iu(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),o=Iu(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Dh(e,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var h=i.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},Jn=Math.PI;function O0(r,t){t=t||{},re(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new ge,n=new he({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new Ce({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new he({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new vs({shape:{startAngle:-Jn/2,endAngle:-Jn/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Jn*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Jn*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var Ah=function(){function r(t,e,n,a){this._stageTaskMap=U(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=U();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;w(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";lt(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,o=this;w(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,a.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(i=!0)}else c&&c.each(function(g,m){s(a,g)&&g.dirty();var y=o.getPerformArgs(g,a.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,a){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=U(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||gn({plan:F0,reset:G0,count:H0}));v.context={model:c,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,v)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,o=e.overallTask=e.overallTask||gn({reset:N0});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=U(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,v="";lt(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):(c=!1,w(n.getSeries(),d));function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(h=!0,gn({reset:B0,onDirty:z0})));m.context={model:p,overallProgress:c},m.agent=o,m.__block=c,i._pipe(p,m)}h&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return X(t)&&(t={overallReset:t,seriesType:U0(t)}),t.uid=Wn("stageHandler"),e&&(t.visualType=e),t},r}();function N0(r){r.overallReset(r.ecModel,r.api,r.payload)}function B0(r){return r.overallProgress&&V0}function V0(){this.agent.dirty(),this.getDownstream().dirty()}function z0(){this.agent&&this.agent.dirty()}function F0(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function G0(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=de(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?F(t,function(e,n){return Ih(n)}):W0}var W0=Ih(0);function Ih(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,i));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Bo=["symbol","symbolSize","symbolRotate","symbolOffset"],ku=Bo.concat(["symbolKeepAspect"]),Z0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,a){if(!this[Ae]){if(this._disposed){this.id;return}var i,o,s;if(Y(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ae]=!0,!this._model||n){var l=new Dy(this._api),u=this._theme,f=this._model=new Bs;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Go);var c={seriesTransition:s,optionChanged:!0};if(a)this[Oe]={silent:i,updateParams:c},this[Ae]=!1,this.getZr().wakeUp();else{try{hr(this),It.update.call(this,null,c)}catch(h){throw this[Oe]=null,this[Ae]=!1,h}this._ssr||this._zr.flush(),this[Oe]=null,this[Ae]=!1,Kr.call(this,i),qr.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||fe.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(fe.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return w(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],o=this;w(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return w(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Hu[a]){var l=s,u=s,f=-s,c=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();w(yn,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas($(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),c=o(x.bottom,c),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,g=$c.createCanvas(),m=Sl(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return w(h,function(_){var S=_.left-l,b=_.top-u;y+=''+_.dom+""}),m.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return e.connectedBackgroundColor&&m.add(new he({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),w(h,function(_){var S=new Or({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return ki(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return ki(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,o=vn(a,e);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=vn(a,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?K0(s,l,n):q0(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;w(A_,function(n){var a=function(i){var o=e.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&un(s,function(d){var p=Z(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=B({},p.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),v=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=i,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},e.trigger(n,l)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),w(mn,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),w(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),Q0(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&sv(this.getDom(),Xs,"");var n=this,a=n._api,i=n._model;w(n._componentsViews,function(o){o.dispose(i,a)}),w(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete yn[n.id]},t.prototype.resize=function(e){if(!this[Ae]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[Oe]&&(i==null&&(i=this[Oe].silent),a=!0,this[Oe]=null),this[Ae]=!0;try{a&&hr(this),It.update.call(this,{type:"resize",animation:B({duration:0},e&&e.animation)})}catch(o){throw this[Ae]=!1,o}this[Ae]=!1,Kr.call(this,i),qr.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(Y(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!Wo[e]){var a=Wo[e](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=B({},e);return n.type=mn[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(Y(n)||(n={silent:!!n}),!!Na[e.type]&&this._model){if(this[Ae]){this._pendingActions.push(e);return}var a=n.silent;Oi.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&fe.browser.weChat&&this._throttledZrFlush(),Kr.call(this,a),qr.call(this,a)}},t.prototype.updateLabelLayout=function(){je.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){hr=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),Ri(c,!0),Ri(c,!1),h.plan()},Ri=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_h.get("hoverLayerThreshold")&&!fe.node&&!fe.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=c._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(c,h){if(!c.preventAutoZ){var v=c.get("z")||0,d=c.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(c,h,v,d){var p=c.getTextContent(),g=c.getTextGuideLine(),m=c.isGroup;if(m)for(var y=c.childrenRef(),_=0;_0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Sr(m))return;if(m instanceof Se&&Dm(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&a(m)}})}Gu=function(c){return new(function(h){V(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Ar(d,p),Fe(c)},v.prototype.leaveEmphasis=function(d,p){Ir(d,p),Fe(c)},v.prototype.enterBlur=function(d){gm(d),Fe(c)},v.prototype.leaveBlur=function(d){pv(d),Fe(c)},v.prototype.enterSelect=function(d){gv(d),Fe(c)},v.prototype.leaveSelect=function(d){mv(d),Fe(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v}(eh))(c)},Uh=function(c){function h(v,d){for(var p=0;p=0)){Uu.push(e);var i=Ah.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function qh(r,t){Wo[r]=t}function E_(r,t,e){var n=v_("registerMap");n&&n(r,t,e)}var O_=i0;sr(Us,R0);sr(oi,k0);sr(oi,E0);sr(Us,Z0);sr(oi,$0);sr(Vh,f_);$h(rh);Kh(p_,Vy);qh("default",O0);ft({type:Qt,event:Qt,update:Qt},yt);ft({type:ga,event:ga,update:ga},yt);ft({type:hn,event:hn,update:hn},yt);ft({type:ma,event:ma,update:ma},yt);ft({type:dn,event:dn,update:dn},yt);Zh("light",Y0);Zh("dark",Ph);function jr(r){return r==null?0:r.length||1}function Yu(r){return r}var Ln=function(){function r(t,e,n,a,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Yu,this._newKeyGetter=a||Yu,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),a[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(c>1)for(var v=0;v1)for(var s=0;s30}var Qr=Y,Mt=F,G_=typeof Int32Array>"u"?Array:Int32Array,W_="e\0\0",Xu=-1,H_=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],U_=["_approximateExtent"],Zu,na,Jr,en,Vi,aa,zi,rd=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;Qh(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Ze;if(l&&!a.pure)for(var u=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),N(i)?i=i.slice():Qr(i)&&(i=B({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Qr(e)?B(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Qr(t)?B(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?B(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;om(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){w(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Mt(this.dimensions,this._getDimInfo,this),this.hostModel)),Vi(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];X(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(ig(arguments)))})},r.internalField=function(){Zu=function(t){var e=t._invertedIndicesMap;w(e,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=e[a]=new G_(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),a[e]=l}}}(),r}();function nd(r,t){zs(r)||(r=nh(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=U(),i=[],o=X_(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&td(o),l=n===r.dimensionsDefine,u=l?ed(r):Jh(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=U(f),h=new dh(o),v=0;v0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function X_(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return w(t,function(i){var o;Y(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function Z_(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var $_=function(){function r(t){this.coordSysDims=[],this.axisMap=U(),this.categoryAxisMap=U(),this.coordSysName=t}return r}();function K_(r){var t=r.get("coordinateSystem"),e=new $_(t),n=q_[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var q_={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",Re).models[0],i=r.getReferringComponents("yAxis",Re).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),dr(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),dr(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",Re).models[0];t.coordSysDims=["single"],e.set("single",a),dr(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",Re).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),dr(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),dr(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();w(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];e.set(f,u),dr(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function dr(r){return r.get("type")==="category"}function j_(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,o,s;Q_(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,c,h;if(w(i,function(y,_){G(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;w(i,function(y){y.coordDim===v&&p++});var g={name:c,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,d),m.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function Q_(r){return!Qh(r.schema)}function Rr(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function J_(r,t){return Rr(r,t)?r.getCalculationInfo("stackResultDimension"):t}function eS(r,t){var e=r.get("coordinateSystem"),n=Vs.get(e),a;return t&&t.coordSysDims&&(a=F(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Ho(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function tS(r,t,e){var n,a;return e&&w(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function si(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;a=n.getSource(),i=a.sourceFormat===Ze;var o=K_(t),s=eS(t,o),l=e.useEncodeDefaulter,u=X(l)?l:l?J(qv,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=nd(a,f),h=tS(c.dimensions,e.createInvertedIndices,o),v=i?null:n.getSharedDataStore(c),d=j_(t,{schema:c,store:v}),p=new rd(c,t);p.setCalculationInfo(d);var g=h!=null&&rS(a)?function(m,y,_,S){return S===h?_:this.defaultDimValueGetter(m,y,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:v,null,g),p}function rS(r){if(r.sourceFormat===Ze){var t=nS(r.data||[]);return!N(zn(t))}}function nS(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Wa(ct);var aS=0,Uo=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++aS}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&F(n,iS);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!G(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=U(this.categories))},r}();function iS(r){return Y(r)&&r.value!=null?r.value:r+""}function Yo(r){return r.type==="interval"||r.type==="log"}function oS(r,t,e,n){var a={},i=r[1]-r[0],o=a.interval=ev(i/t);e!=null&&on&&(o=a.interval=n);var s=a.intervalPrecision=ad(o),l=a.niceTickExtent=[_e(Math.ceil(r[0]/o)*o,s),_e(Math.floor(r[1]/o)*o,s)];return sS(l,r),a}function Fi(r){var t=Math.pow(10,ps(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,_e(e*t)}function ad(r){return pt(r)+2}function $u(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function sS(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),$u(r,0,t),$u(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function li(r,t){return r>=t[0]&&r<=t[1]}function ui(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function fi(r,t){return r*(t[1]-t[0])+t[0]}var Ks=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Uo({})),N(a)&&(a=new Uo({categories:F(a,function(i){return Y(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:G(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),li(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),ui(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(fi(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(ct);ct.registerClass(Ks);var $t=_e,Fr=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return li(e,this._extent)},t.prototype.normalize=function(e){return ui(e,this._extent)},t.prototype.scale=function(e){return fi(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=ad(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]l)return[];var f=s.length?s[s.length-1].value:i[1];return a[1]>f&&(e?s.push({value:$t(f+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&v0&&(i=i===null?s:Math.min(i,s))}e[n]=i}}return e}function sd(r){var t=fS(r),e=[];return w(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=te(n.get("barWidth"),s),p=te(n.get("barMaxWidth"),s),g=te(n.get("barMinWidth")||(cd(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:js(i),stackId:qs(n)})}),cS(e)}function cS(r){var t={};w(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return w(t,function(n,a){e[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=ze(i).length;s=Math.max(35-l*4,15)+"%"}var u=te(s,o),f=te(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),w(i,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var S=m.width;y&&(S=Math.min(S,y)),_&&(S=Math.max(S,_)),m.width=S,c-=S+f*S,h--}else{var S=v;y&&yS&&(S=_),S!==v&&(m.width=S,c-=S+f*S,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,p;w(i,function(m,y){m.width||(m.width=v),p=m,d+=m.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;w(i,function(m,y){e[a][y]=e[a][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+f)})}),e}function vS(r,t,e){if(r&&t){var n=r[js(t)];return n!=null&&e!=null?n[qs(e)]:n}}function ld(r,t){var e=od(r,t),n=sd(e);w(e,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=qs(a),u=n[js(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function ud(r){return{seriesType:r,plan:Hn(),reset:function(t){if(fd(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(a.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),c=Rr(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=hS(a,i),d=cd(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),m=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&at(b*3),C=d&&l&&at(b*3),T=d&&at(b),D=n.master.getRect(),A=h?D.width:D.height,I,M=S.getStore(),L=0;(I=_.next())!=null;){var P=M.get(c?g:o,I),R=M.get(s,I),O=v,W=void 0;c&&(W=+P-M.get(o,I));var k=void 0,E=void 0,z=void 0,H=void 0;if(h){var q=n.dataToPoint([P,R]);if(c){var j=n.dataToPoint([W,R]);O=j[0]}k=O,E=q[1]+y,z=q[0]-O,H=m,Math.abs(z)>>1;r[a][1]a&&(this._approxInterval=a);var s=ia.length,l=Math.min(dS(ia,this._approxInterval,0,s),s-1);this._interval=ia[l][1],this._minLevelUnit=ia[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return le(e)?e:+_t(e)},t.prototype.contain=function(e){return li(this.parse(e),this._extent)},t.prototype.normalize=function(e){return ui(this.parse(e),this._extent)},t.prototype.scale=function(e){return fi(e,this._extent)},t.type="time",t}(Fr),ia=[["second",Ps],["minute",Rs],["hour",pn],["quarter-day",pn*6],["half-day",pn*12],["day",Ue*1.2],["half-week",Ue*3.5],["week",Ue*7],["month",Ue*31],["quarter",Ue*95],["half-year",Xl/2],["year",Xl]];function pS(r,t,e,n){var a=_t(t),i=_t(e),o=function(d){return $l(a,d,n)===$l(i,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},h=function(){return c()&&o("second")},v=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return h();case"millisecond":return v()}}function gS(r,t){return r/=Ue,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function mS(r){var t=30*Ue;return r/=t,r>6?6:r>3?3:r>2?2:1}function yS(r){return r/=pn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Ku(r,t){return r/=t?Rs:Ps,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function _S(r){return ev(r)}function SS(r,t,e){var n=new Date(r);switch(br(t)){case"year":case"month":n[Bv(e)](0);case"day":n[Vv(e)](1);case"hour":n[zv(e)](0);case"minute":n[Fv(e)](0);case"second":n[Gv(e)](0),n[Wv(e)](0)}return n.getTime()}function xS(r,t,e,n){var a=1e4,i=Ov,o=0;function s(A,I,M,L,P,R,O){for(var W=new Date(I),k=I,E=W[L]();k1&&R===0&&M.unshift({value:M[0].value-k})}}for(var R=0;R=n[0]&&y<=n[1]&&c++)}var _=(n[1]-n[0])/t;if(c>_*1.5&&h>_/1.5||(u.push(g),c>_||r===i[v]))break}f=[]}}}for(var S=be(F(u,function(A){return be(A,function(I){return I.value>=n[0]&&I.value<=n[1]&&!I.notAdd})}),function(A){return A.length>0}),b=[],x=S.length-1,v=0;v0;)i*=10;var s=[_e(CS(n[0]/i)*i),_e(wS(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){_n.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=qe(e)/qe(this.base),li(e,this._extent)},t.prototype.normalize=function(e){return e=qe(e)/qe(this.base),ui(e,this._extent)},t.prototype.scale=function(e){return e=fi(e,this._extent),oa(this.base,e)},t.type="log",t}(ct),hd=Qs.prototype;hd.getMinorTicks=_n.getMinorTicks;hd.getLabel=_n.getLabel;function sa(r,t){return bS(r,pt(t))}ct.registerClass(Qs);var TS=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},r.prototype.modifyDataMinMax=function(t,e){this[AS[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=DS[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),DS={min:"_determinedMin",max:"_determinedMax"},AS={min:"_dataMin",max:"_dataMax"};function dd(r,t,e){var n=r.rawExtentInfo;return n||(n=new TS(r,t,e),r.rawExtentInfo=n,n)}function la(r,t){return t==null?null:_o(t)?NaN:r.parse(t)}function pd(r,t){var e=r.type,n=dd(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&e==="time"){var s=od("bar",o),l=!1;if(w(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=sd(s),f=IS(a,i,t,u);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function IS(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],o=vS(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;w(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;w(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,c=1-(s+l)/i,h=f/c-f;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function ju(r,t){var e=t,n=pd(r,e),a=n.extent,i=e.get("splitNumber");r instanceof Qs&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function MS(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Ks({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new vd({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(ct.getClass(t)||Fr)}}function LS(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function Un(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):G(t)?function(n){return function(a){var i=r.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(t):X(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n(Js(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function Js(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function PS(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof Ks?a=e.count():(n=e.getTicks(),a=n.length);var o=r.getLabelModel(),s=Un(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;fr[1]&&(r[1]=a[1])})}var ES=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),Qu=[],OS={registerPreprocessor:$h,registerProcessor:Kh,registerPostInit:L_,registerPostUpdate:P_,registerUpdateLifecycle:Zs,registerAction:ft,registerCoordinateSystem:R_,registerLayout:k_,registerVisual:sr,registerTransform:O_,registerLoading:qh,registerMap:E_,registerImpl:c_,PRIORITY:C_,ComponentModel:ee,ComponentView:Ne,SeriesModel:Ve,ChartView:ke,registerComponentModel:function(r){ee.registerClass(r)},registerComponentView:function(r){Ne.registerClass(r)},registerSeriesModel:function(r){Ve.registerClass(r)},registerChartView:function(r){ke.registerClass(r)},registerSubTypeDefaulter:function(r,t){ee.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){og(r,t)}};function St(r){if(N(r)){w(r,function(t){St(t)});return}se(Qu,r)>=0||(Qu.push(r),X(r)&&(r={install:r}),r.install(OS))}var Pn=ue();function NS(r){return r.type==="category"?VS(r):FS(r)}function BS(r,t){return r.type==="category"?zS(r,t):{ticks:F(r.scale.getTicks(),function(e){return e.value})}}function VS(r){var t=r.getLabelModel(),e=yd(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function yd(r,t){var e=_d(r,"labels"),n=el(t),a=Sd(e,n);if(a)return a;var i,o;return X(n)?i=wd(r,n):(o=n==="auto"?GS(r):n,i=bd(r,o)),xd(e,n,{labels:i,labelCategoryInterval:o})}function zS(r,t){var e=_d(r,"ticks"),n=el(t),a=Sd(e,n);if(a)return a;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),X(n))i=wd(r,n,!0);else if(n==="auto"){var s=yd(r,r.getLabelModel());o=s.labelCategoryInterval,i=F(s.labels,function(l){return l.tickValue})}else o=n,i=bd(r,o,!0);return xd(e,n,{ticks:i,tickCategoryInterval:o})}function FS(r){var t=r.scale.getTicks(),e=Un(r);return{labels:F(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function _d(r,t){return Pn(r)[t]||(Pn(r)[t]=[])}function Sd(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),h=0,v=0;l<=i[1];l+=s){var d=0,p=0,g=ds(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var m=h/f,y=v/c;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),S=Pn(r.model),b=r.getExtent(),x=S.lastAutoInterval,C=S.lastTickCount;return x!=null&&C!=null&&Math.abs(x-_)<=1&&Math.abs(C-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function HS(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function bd(r,t,e){var n=Un(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=gd(r),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(g){var m={value:g};s.push(e?g:{formattedLabel:n(m),rawLabel:a.getLabel(m),tickValue:g})}return s}function wd(r,t,e){var n=r.scale,a=Un(r),i=[];return w(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Ju=[0,1],US=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Qc(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),ef(n,a.count())),Ot(t,Ju,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),ef(n,a.count()));var i=Ot(t,n,Ju,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=BS(this,e),a=n.ticks,i=F(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return YS(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),a=F(n,function(i){return F(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return NS(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return WS(this)},r}();function ef(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function YS(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;w(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var c=i[0]>i[1];h(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&h(i[0],t[0].coord)&&t.unshift({coord:i[0]}),h(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&h(o.coord,i[1])&&t.push({coord:i[1]});function h(v,d){return v=_e(v),d=_e(d),c?v>d:va&&(a+=tn);var v=Math.atan2(s,o);if(v<0&&(v+=tn),v>=n&&v<=a||v+tn>=n&&v+tn<=a)return l[0]=f,l[1]=c,u-e;var d=e*Math.cos(n)+r,p=e*Math.sin(n)+t,g=e*Math.cos(a)+r,m=e*Math.sin(a)+t,y=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function Va(r,t,e,n,a,i,o,s){var l=a-r,u=i-t,f=e-r,c=n-t,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*f,g=o[1]=t+d*c;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function Cd(r,t,e,n,a,i,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(a,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var Qe=[];function KS(r,t,e){var n=Cd(t.x,t.y,t.width,t.height,r.x,r.y,Qe);return e.set(Qe[0],Qe[1]),n}function qS(r,t,e){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=t.data,c=r.x,h=r.y,v=0;v0){t=t/180*Math.PI,et.fromArray(r[0]),ae.fromArray(r[1]),ve.fromArray(r[2]),we.sub(it,et,ae),we.sub(rt,ve,ae);var e=it.len(),n=rt.len();if(!(e<.001||n<.001)){it.scale(1/e),rt.scale(1/n);var a=it.dot(rt),i=Math.cos(t);if(i1&&we.copy(Pe,ve),Pe.toArray(r[1])}}}}function jS(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,et.fromArray(r[0]),ae.fromArray(r[1]),ve.fromArray(r[2]),we.sub(it,ae,et),we.sub(rt,ve,ae);var n=it.len(),a=rt.len();if(!(n<.001||a<.001)){it.scale(1/n),rt.scale(1/a);var i=it.dot(t),o=Math.cos(e);if(i=l)we.copy(Pe,ve);else{Pe.scaleAndAdd(rt,s/Math.tan(Math.PI/2-f));var c=ve.x!==ae.x?(Pe.x-ae.x)/(ve.x-ae.x):(Pe.y-ae.y)/(ve.y-ae.y);if(isNaN(c))return;c<0?we.copy(Pe,ae):c>1&&we.copy(Pe,ve)}Pe.toArray(r[1])}}}}function Gi(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function QS(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var a=xl(n[0],n[1]),i=xl(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*e,s=gi([],n[1],n[0],o/a),l=gi([],n[1],n[2],o/i),u=gi([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f0&&i&&b(-f/o,0,o);var p=r[0],g=r[o-1],m,y;_(),m<0&&x(-m,.8),y<0&&x(y,.8),_(),S(m,y,1),S(y,m,-1),_(),m<0&&C(-m),y<0&&C(y);function _(){m=p.rect[t]-n,y=a-g.rect[t]-g.rect[e]}function S(T,D,A){if(T<0){var I=Math.min(D,-T);if(I>0){b(I*A,0,o);var M=I+T;M<0&&x(-M*A,1)}else x(-T*A,1)}}function b(T,D,A){T!==0&&(u=!0);for(var I=D;I0)for(var M=0;M0;M--){var O=A[M-1]*R;b(-O,M,o)}}}function C(T){var D=T<0?-1:1;T=Math.abs(T);for(var A=Math.ceil(T/(o-1)),I=0;I0?b(A,0,I+1):b(-A,o-I-1,o),T-=A,T<=0)return}return u}function JS(r,t,e,n){return Md(r,"x","width",t,e,n)}function Ld(r,t,e,n){return Md(r,"y","height",t,e,n)}function Pd(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new Ye(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var a=0;a=0&&n.attr(i.oldLayoutSelect),se(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),me(n,u,e,l)}else if(n.attr(u),!Vr(n).valueAnimation){var c=ie(n.style.opacity,1);n.style.opacity=0,De(n,{style:{opacity:c}},e,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};ua(v,u,fa),ua(v,n.states.select,fa)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};ua(d,u,fa),ua(d,n.states.emphasis,fa)}Gm(n,l,f,e,e)}if(a&&!a.ignore&&!a.invisible){var i=rx(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),me(a,{shape:p},e)):(a.setShape(p),a.style.strokePercent=0,De(a,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}(),Hi=ue();function U1(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=Hi(e).labelManager;a||(a=Hi(e).labelManager=new nx),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=Hi(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var ax=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(ee),Xo=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Re).models[0]},t.type="cartesian2dAxis",t}(ee);xt(Xo,ES);var Rd={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},ix=K({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Rd),tl=K({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Rd),ox=K({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},tl),sx=re({logBase:10},tl);const lx={category:ix,value:tl,time:ox,log:sx};var ux={value:1,category:1,time:1,log:1};function nf(r,t,e,n){w(ux,function(a,i){var o=K(K({},lx[i],!0),n,!0),s=function(l){V(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=Dn(this),v=h?ni(f):{},d=c.getTheme();K(f,d.get(i+"Axis")),K(f,this.getDefaultOption()),f.type=af(f),h&&Lr(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Uo.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",af)}function af(r){return r.type||(r.data?"category":"value")}var fx=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return F(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),be(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}(),Zo=["x","y"];function of(r){return r.type==="interval"||r.type==="time"}var cx=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Zo,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!of(e)||!of(n))){var a=e.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-a[0]*f,v=o[1]-i[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=hs([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var a=this.dataToPoint(e),i=this.dataToPoint(n),o=this.getArea(),s=new Ye(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return tr(a,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(e[0]),u=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var a=[];if(this._invTransform)return tr(a,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=o.coordToData(o.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-e,o=Math.min(a[0],a[1])-e,s=Math.max(n[0],n[1])-i+e,l=Math.max(a[0],a[1])-o+e;return new Ye(i,o,s,l)},t}(fx),vx=function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(US);function $o(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[c[2]-v,c[3]+v]:[c[0]-v,c[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[h[l]]:c[0],u==="x"?d[h[l]]:c[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Dr(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function sf(r){return r.get("coordinateSystem")==="cartesian2d"}function lf(r){var t={xAxisModel:null,yAxisModel:null};return w(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,Re).models[0];t[n]=i}),t}var Ui=Math.log;function hx(r,t,e){var n=Fr.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),o=a.length-1,s=n.getInterval.call(e),l=pd(r,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(r.type==="log"){var h=Ui(r.base);u=[Ui(u[0])/h,Ui(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var v=n.getExtent.call(r);f&&(u[0]=v[0]),c&&(u[1]=v[1]);var d=n.getInterval.call(r),p=u[0],g=u[1];if(f&&c)d=(g-p)/o;else if(f)for(g=u[0]+d*o;gu[0]&&isFinite(p)&&isFinite(u[0]);)d=Fi(d),p=u[1]-d*o;else{var m=r.getTicks().length-1;m>o&&(d=Fi(d));var y=d*o;g=Math.ceil(u[1]/d)*d,p=_e(g-y),p<0&&u[0]>=0?(p=0,g=_e(y)):g>0&&u[1]<=0&&(g=0,p=-_e(y))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;n.setExtent.call(r,p+d*_,g+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,g-d)}var dx=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Zo,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=ze(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,p=v.scale;Yo(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(ju(p,d),Yo(p)&&(s=v))}f.length&&(s||(s=f.pop(),ju(s.scale,s.model)),w(f,function(g){hx(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};w(n.x,function(o){uf(n,"y",o,i)}),w(n.y,function(o){uf(n,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=Gt(a,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(w(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=PS(u);if(f){var c=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+h,u.position==="top"?o.y+=f.height+h:u.position==="left"&&(o.x+=f.width+h)}}}),l()),w(this._coordsList,function(u){u.calcAffineTransform()});function l(){w(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(c[h],c[1-h]),px(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}Y(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):Ia(a-Nt)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),cf={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(tr(s,s,o),tr(l,l,o));var f=B({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new er({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Cn(c.shape,c.style.lineWidth),c.anid="line",e.add(c);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);G(h)&&(h=[h,h]),(G(v)||le(v))&&(v=[v,v]);var d=Hs(t.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];w([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(h[y]!=="none"&&h[y]!=null){var _=Wt(h[y],-p/2,-g/2,p,g,f.stroke,!0),S=m.r+m.offset,b=u?l:s;_.attr({rotation:m.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var a=yx(e,n,t,r),i=Sx(e,n,t,r);if(mx(t,i,a),_x(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Id(F(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Pd(o)}},axisName:function(r,t,e,n){var a=Dr(r.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,hf(i)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Nt/180);var d;hf(i)?h=Vt.innerTextLayout(r.rotation,v??r.rotation,o):(h=gx(r.rotation,i,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=Dr(r.nameTruncateMaxWidth,g.maxWidth,d),_=new Ce({x:c[0],y:c[1],rotation:h.rotation,silent:Vt.isLabelSilent(t),style:Ft(s,{text:a,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Ka({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=Vt.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,Z(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function gx(r,t,e,n){var a=Jc(e-r),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Ia(a-Nt/2)?(o=l?"bottom":"top",i="center"):Ia(a-Nt*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",aNt/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function mx(r,t,e){if(!gd(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],c=e[e.length-1],h=e[e.length-2];n===!1?(Ge(i),Ge(u)):vf(i,o)&&(n?(Ge(o),Ge(f)):(Ge(i),Ge(u))),a===!1?(Ge(s),Ge(c)):vf(l,s)&&(a?(Ge(l),Ge(h)):(Ge(s),Ge(c)))}}function Ge(r){r&&(r.ignore=!0)}function vf(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=Yc([]);return qc(a,a,-r.rotation),e.applyTransform(go([],a,r.getLocalTransform())),n.applyTransform(go([],a,t.getLocalTransform())),e.intersect(n)}}function hf(r){return r==="middle"||r==="center"}function kd(r,t,e,n,a){for(var i=[],o=[],s=[],l=0;l=0||r===t}function Dx(r){var t=rl(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=Ko(e);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),os)return!0;if(o){var l=rl(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var o=jt(t).pointerEl=new As[i.type](gf(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=jt(t).labelEl=new Ce(gf(e.label));t.add(i),yf(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=jt(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=jt(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),yf(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=$a(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ug(u.event)},onmousedown:Zi(this._onHandleDragMove,this,0,0),drift:Zi(this._onHandleDragMove,this),ondragend:Zi(this._onHandleDragEnd,this)}),n.add(a)),_f(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");N(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Ch(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){mf(this._axisPointerModel,!e&&this._moveAnimation,this._handle,$i(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform($i(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr($i(a)),jt(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),No(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function mf(r,t,e,n){Vd(jt(e).lastProp,n)||(jt(e).lastProp=n,t?me(e,n,r):(e.stopAnimation(),e.attr(n)))}function Vd(r,t){if(Y(r)&&Y(t)){var e=!0;return w(t,function(n,a){e=e&&Vd(r[a],n)}),!!e}else return r===t}function yf(r,t){r[t.get(["label","show"])?"show":"hide"]()}function $i(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function _f(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}function Nx(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function Bx(r,t,e,n,a){var i=e.get("value"),o=zd(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=ri(s.get("padding")||0),u=s.getFont(),f=ds(o,u),c=a.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=a.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=a.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),Vx(c,h,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Ft(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function Vx(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function zd(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:Js(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};w(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),G(o)?i=o.replace("{value}",i):X(o)&&(i=o(s))}return i}function Fd(r,t,e){var n=cg();return qc(n,n,e.rotation),fg(n,n,e.position),Ds([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function zx(r,t,e,n,a,i){var o=Vt.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),Bx(t,n,a,i,{position:Fd(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Fx(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function Gx(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var Wx=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=Sf(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=Nx(i),v=Hx[u](s,c,f);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=$o(l.model,a);zx(n,e,d,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=$o(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Fd(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Sf(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[e.x,e.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(Ox);function Sf(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var Hx={line:function(r,t,e){var n=Fx([t,e[0]],[t,e[1]],xf(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:Gx([t-n/2,e[0]],[n,a],xf(r))}}};function xf(r){return r.dim==="x"?0:1}var Ux=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(ee),gt=ue(),Yx=w;function Gd(r,t,e){if(!fe.node){var n=t.getZr();gt(n).records||(gt(n).records={}),Xx(n,t);var a=gt(n).records[r]||(gt(n).records[r]={});a.handler=e}}function Xx(r,t){if(gt(r).initialized)return;gt(r).initialized=!0,e("click",J(bf,"click")),e("mousemove",J(bf,"mousemove")),e("globalout",$x);function e(n,a){r.on(n,function(i){var o=Kx(t);Yx(gt(r).records,function(s){s&&a(s,i,o.dispatchAction)}),Zx(o.pendings,t)})}}function Zx(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function $x(r,t,e){r.handler("leave",null,e)}function bf(r,t,e,n){t.handler(r,e,n)}function Kx(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function jo(r,t){if(!fe.node){var e=t.getZr(),n=(gt(e).records||{})[r];n&&(gt(e).records[r]=null)}}var qx=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=n.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Gd("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){jo("axisPointer",n)},t.prototype.dispose=function(e,n){jo("axisPointer",n)},t.type="axisPointer",t}(Ne);function Wd(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=rr(i,r);if(o==null||o<0||N(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(F(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var wf=ue();function jx(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||oe(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Ca(a)&&(a=Wd({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Ca(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||Ca(a),h={},v={},d={list:[],map:{}},p={showPointer:J(Jx,v),showTooltip:J(eb,d)};w(s.coordSysMap,function(m,y){var _=l||m.containPoint(a);w(s.coordSysAxesInfo[y],function(S,b){var x=S.axis,C=ab(u,S);if(!c&&_&&(!u||C)){var T=C&&C.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&Cf(S,T,p,!1,h)}})});var g={};return w(f,function(m,y){var _=m.linkGroup;_&&!v[y]&&w(_.axesInfo,function(S,b){var x=v[b];if(S!==m&&x){var C=x.value;_.mapper&&(C=m.axis.scale.parse(_.mapper(C,Tf(S),Tf(m)))),g[m.key]=C}})}),w(g,function(m,y){Cf(f[y],m,p,!0,h)}),tb(v,f,h),rb(d,a,r,o),nb(f,o,e),h}}function Cf(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=Qx(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&B(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function Qx(r,t){var e=t.axis,n=e.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return w(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);h=v.dataIndices,c=v.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=r-c,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,a=c,i.length=0),w(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function Jx(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function eb(r,t,e,n){var a=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Rn(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function tb(r,t,e){var n=e.axesInfo=[];w(t,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function rb(r,t,e,n){if(Ca(t)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function nb(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=wf(n)[a]||{},o=wf(n)[a]={};w(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&w(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];w(i,function(u,f){!o[f]&&l.push(u)}),w(o,function(u,f){!i[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function ab(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Tf(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function Ca(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Hd(r){Ed.registerAxisPointerClass("CartesianAxisPointer",Wx),r.registerComponentModel(Ux),r.registerComponentView(qx),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!N(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=xx(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},jx)}function Y1(r){St(Bd),St(Hd)}var Df="\0_ec_interaction_mutex";function ib(r,t,e){var n=Ud(r);n[t]=e}function ob(r,t,e){var n=Ud(r),a=n[t];a===e&&(n[t]=null)}function Ud(r){return r[Df]||(r[Df]={})}ft({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},yt);var sb={axisPointer:1,tooltip:1,brush:1};function lb(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!sb.hasOwnProperty(n.mainType)&&a&&a.model!==e}function Yd(r,t,e,n,a,i){r=r||0;var o=e[1]-e[0];if(a!=null&&(a=pr(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=pr(s,[0,o]),a=i=pr(s,[a,i]),n=0}t[0]=pr(t[0],e),t[1]=pr(t[1],e);var l=Ki(t,n);t[n]+=r;var u=a||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=pr(t[n],f);var c;return c=Ki(t,n),a!=null&&(c.sign!==l.sign||c.spani&&(t[1-n]=t[n]+c.sign*i),t}function Ki(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function pr(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var ar=!0,kn=Math.min,kr=Math.max,ub=Math.pow,fb=1e4,cb=6,vb=6,Af="globalPan",hb={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},db={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},If={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},pb=0,gb=function(r){V(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new ge,n._uid="brushController_"+pb++,w(wb,function(a,i){this._handlers[i]=oe(a,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||ib(n,Af,this._uid),w(this._handlers,function(a,i){n.on(i,a)}),this._brushType=e.brushType,this._brushOption=K($(If),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;ob(e,Af,this._uid),w(this._handlers,function(n,a){e.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};w(e,function(a){n[a.panelId]=$(a)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=F(e,function(h){return K($(If),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Ln(a,e,u,l).add(f).update(f).remove(c).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function f(h,v){var d=e[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var p=i[h]=v!=null?(a[v].__brushOption=d,a[v]):Zd(o,Xd(o,d));nl(o,p)}}function c(h){a[h]!==s&&o.group.remove(a[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),Qo(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Vn);function Xd(r,t){var e=ci[t.brushType].createCover(r,t);return e.__brushOption=t,Kd(e,t),r.group.add(e),e}function Zd(r,t){var e=al(t);return e.endCreating&&(e.endCreating(r,t),Kd(t,t.__brushOption)),t}function $d(r,t){var e=t.__brushOption;al(t).updateCoverShape(r,t,e.range,e)}function Kd(r,t){var e=t.z;e==null&&(e=fb),r.traverse(function(n){n.z=e,n.z2=e})}function nl(r,t){al(t).updateCommon(r,t),$d(r,t)}function al(r){return ci[r.__brushOption.brushType]}function il(r,t,e){var n=r._panels;if(!n)return ar;var a,i=r._transform;return w(n,function(o){o.isTargetByCursor(t,e,i)&&(a=o)}),a}function qd(r,t){var e=r._panels;if(!e)return ar;var n=t.__brushOption.panelId;return n!=null?e[n]:ar}function Qo(r){var t=r._covers,e=t.length;return w(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function ir(r,t){var e=F(r._covers,function(n){var a=n.__brushOption,i=$(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function mb(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],a=e[0]-n[0],i=e[1]-n[1],o=ub(a*a+i*i,.5);return o>cb}function jd(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function Qd(r,t,e,n){var a=new ge;return a.add(new he({name:"main",style:ol(e),silent:!0,draggable:!0,cursor:"move",drift:J(Mf,r,t,a,["n","s","w","e"]),ondragend:J(ir,t,{isEnd:!0})})),w(n,function(i){a.add(new he({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:J(Mf,r,t,a,i),ondragend:J(ir,t,{isEnd:!0})}))}),a}function Jd(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=kr(a,vb),o=e[0][0],s=e[1][0],l=o-a/2,u=s-a/2,f=e[0][1],c=e[1][1],h=f-i+a/2,v=c-i+a/2,d=f-o,p=c-s,g=d+a,m=p+a;dt(r,t,"main",o,s,d,p),n.transformable&&(dt(r,t,"w",l,u,i,m),dt(r,t,"e",h,u,i,m),dt(r,t,"n",l,u,g,i),dt(r,t,"s",l,v,g,i),dt(r,t,"nw",l,u,i,i),dt(r,t,"ne",h,u,i,i),dt(r,t,"sw",l,v,i,i),dt(r,t,"se",h,v,i,i))}function Jo(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(ol(e)),a.attr({silent:!n,cursor:n?"move":"default"}),w([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?es(r,i[0]):_b(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?db[s]+"-resize":null})})}function dt(r,t,e,n,a,i,o){var s=t.childOfName(e);s&&s.setShape(xb(sl(r,t,[[n,a],[n+i,a+o]])))}function ol(r){return re({strokeNoScale:!0},r.brushStyle)}function ep(r,t,e,n){var a=[kn(r,e),kn(t,n)],i=[kr(r,e),kr(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function yb(r){return Ts(r.group)}function es(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Tv(e[t],yb(r));return n[a]}function _b(r,t){var e=[es(r,t[0]),es(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Mf(r,t,e,n,a,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=tp(t,a,i);w(n,function(u){var f=hb[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(ep(s[0][0],s[1][0],s[0][1],s[1][1])),nl(t,e),ir(t,{isEnd:!1})}function Sb(r,t,e,n){var a=t.__brushOption.range,i=tp(r,e,n);w(a,function(o){o[0]+=i[0],o[1]+=i[1]}),nl(r,t),ir(r,{isEnd:!1})}function tp(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function sl(r,t,e){var n=qd(r,t);return n&&n!==ar?n.clipPath(e,r._transform):$(e)}function xb(r){var t=kn(r[0][0],r[1][0]),e=kn(r[0][1],r[1][1]),n=kr(r[0][0],r[1][0]),a=kr(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function bb(r,t,e){if(!(!r._brushType||Cb(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=il(r,t,e);if(!r._dragging)for(var o=0;on.getWidth()||e<0||e>n.getHeight()}var ci={lineX:Rf(0),lineY:Rf(1),rect:{createCover:function(r,t){function e(n){return n}return Qd({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=jd(r);return ep(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){Jd(r,t,e,n)},updateCommon:Jo,contain:rs},polygon:{createCover:function(r,t){var e=new ge;return e.add(new Nn({name:"main",style:ol(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new cs({name:"main",draggable:!0,drift:J(Sb,r,t),ondragend:J(ir,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:sl(r,t,e)})},updateCommon:Jo,contain:rs}};function Rf(r){return{createCover:function(t,e){return Qd({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=jd(t),n=kn(e[0][r],e[1][r]),a=kr(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,o=qd(t,e);if(o!==ar&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),Jd(t,e,l,a)},updateCommon:Jo,contain:rs}}function Tb(r){return r=ll(r),function(t){return Av(t,r)}}function Db(r,t){return r=ll(r),function(e){var n=t??e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function Ab(r,t,e){var n=ll(r);return function(a,i){return n.contain(i[0],i[1])&&!lb(a,t,e)}}function ll(r){return Ye.create(r)}var kf=["x","y","radius","angle","single"],Ib=["cartesian2d","polar","singleAxis"];function Mb(r){var t=r.get("coordinateSystem");return se(Ib,t)>=0}function _r(r){return r+"Axis"}function Lb(r,t){var e=U(),n=[],a=U();r.eachComponent({mainType:"dataZoom",query:t},function(f){a.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var d=e.get(h);d&&d[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(e.get(c)||e.set(c,[]))[h]=!0})}return n}var qi=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),Pb=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,a){var i=Ef(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=Ef(e);K(this.option,e,!0),K(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=U(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return w(kf,function(a){var i=this.getReferringComponents(_r(a),Xg);if(i.specified){n=!0;var o=new qi;w(i.models,function(s){o.add(s.componentIndex)}),e.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var c=u[0];if(c){var h=new qi;if(h.add(c.componentIndex),e.set(f,h),i=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",Re).models[0];v&&w(u,function(d){c.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Re).models[0]&&h.add(d.componentIndex)})}}}i&&w(kf,function(u){if(i){var f=a.findComponents({mainType:_r(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new qi;c.add(f[0].componentIndex),e.set(u,c),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,a=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(_r(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){w(a.indexList,function(o){e.call(n,i,o)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(_r(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;w(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(d=!0),b&&(p=!0)}return g&&d&&p})}else yr(f,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});yr(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;yr(["min","max"],function(a){var i=e.get(a+"Span"),o=e.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Ot(n[0]+o,n,[0,100],!0):i!=null&&(o=Ot(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var a=Qc(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function Nb(r,t,e){var n=[1/0,-1/0];yr(e,function(o){kS(n,o.getData(),t)});var a=r.getAxisModel(),i=dd(a.axis.scale,a,n).calculate();return[i.min,i.max]}var Bb={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(_r(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Ob(a,i,s,r),e.push(o.__dzAxisProxy))});var n=U();return w(e,function(a){w(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function Vb(r){r.registerAction("dataZoom",function(t,e){var n=Lb(e,t);w(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Nf=!1;function zb(r){Nf||(Nf=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Bb),Vb(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Fb(r){r.registerComponentModel(Rb),r.registerComponentView(Eb),zb(r)}var Je=function(){function r(){}return r}(),np={};function rn(r,t){np[r]=t}function ap(r){return np[r]}var Gb=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;w(this.option.feature,function(n,a){var i=ap(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),K(n,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(ee);function Wb(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=Gt(n,i,a);Cr(t.get("orient"),r,t.get("itemGap"),o.width,o.height),ly(r,n,i,a)}function ip(r,t){var e=ri(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new he({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var Hb=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},f=this._features||(this._features={}),c=[];w(u,function(d,p){c.push(p)}),new Ln(this._featureNames||[],c).add(h).update(h).remove(J(h,null)).execute(),this._featureNames=c;function h(d,p){var g=c[d],m=c[p],y=u[g],_=new ce(y,e,e.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(y.title=i.newTitle),g&&!m){if(Ub(g))S={onclick:_.option.onclick,featureName:g};else{var b=ap(g);if(!b)return;S=new b}f[g]=S}else if(S=f[m],!S)return;S.uid=Wn("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var x=S instanceof Je;if(!g&&m){x&&S.dispose&&S.dispose(n,a);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,a);return}v(_,S,g),_.setIconStatus=function(C,T){var D=this.option,A=this.iconPaths;D.iconStatus=D.iconStatus||{},D.iconStatus[C]=T,A[C]&&(T==="emphasis"?Ar:Ir)(A[C])},S instanceof Je&&S.render&&S.render(_,n,a,i)}function v(d,p,g){var m=d.getModel("iconStyle"),y=d.getModel(["emphasis","iconStyle"]),_=p instanceof Je&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},b,x;G(_)?(b={},b[g]=_):b=_,G(S)?(x={},x[g]=S):x=S;var C=d.iconPaths={};w(b,function(T,D){var A=$a(T,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(m.getItemStyle());var I=A.ensureState("emphasis");I.style=y.getItemStyle();var M=new Ce({style:{text:x[D],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:Lv({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},n)},ignore:!0});A.setTextContent(M),Ka({el:A,componentModel:e,itemName:D,formatterParamsExtra:{title:x[D]}}),A.__title=x[D],A.on("mouseover",function(){var L=y.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";M.setStyle({fill:y.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),A.setTextConfig({position:y.get("textPosition")||P}),M.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",D])!=="emphasis"&&a.leaveEmphasis(this),M.hide()}),(d.get(["iconStatus",D])==="emphasis"?Ar:Ir)(A),o.add(A),A.on("click",oe(p.onclick,p,n,a,D)),C[D]=A})}Wb(o,e,a),o.add(ip(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=d.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!X(_)&&p){var S=_.style||(_.style={}),b=ds(p,Ce.makeFont(S)),x=d.x+o.x,C=d.y+o.y+s,T=!1;C+b.height>a.getHeight()&&(m.position="top",T=!0);var D=T?-5-b.height:s+10;x+b.width/2>a.getWidth()?(m.position=["100%",D],S.align="right"):x-b.width/2<0&&(m.position=[0,D],S.align="left")}})},t.prototype.updateView=function(e,n,a,i){w(this._features,function(o){o instanceof Je&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(e,n){w(this._features,function(a){a instanceof Je&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){w(this._features,function(a){a instanceof Je&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(Ne);function Ub(r){return r.indexOf("my")===0}var Yb=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=fe.browser;if(X(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,m=new Uint8Array(g);g--;)m[g]=d.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=a.get("lang"),C='',T=window.open();T.document.write(C),T.document.title=i}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Je),Bf="__ec_magicType_stack__",Xb=[["line","bar"],["stack"]],Zb=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),a={};return w(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(Vf[a]){var s={series:[]},l=function(c){var h=c.subType,v=c.id,d=Vf[a](h,v,c,i);d&&(re(d,c.option),s.series.push(d));var p=c.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",_=c.getReferringComponents(y,Re).models[0],S=_.componentIndex;s[y]=s[y]||[];for(var b=0;b<=S;b++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=a==="bar"}}};w(Xb,function(c){se(c,a)>=0&&w(c,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=K({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Je),Vf={line:function(r,t,e,n){if(r==="bar")return K({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return K({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var a=e.get("stack")===Bf;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),K({id:t,stack:a?"":Bf},n.get(["option","stack"])||{},!0)}};ft({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var vi=new Array(60).join("-"),Er=" ";function $b(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function Kb(r){var t=[];return w(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(F(e.series,function(v){return v.name})),l=[a.model.getCategories()];w(e.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Er)],f=0;f=0)return!0}var ns=new RegExp("["+Er+"]+","g");function Jb(r){for(var t=r.split(/\n+/g),e=Fa(t.shift()).split(ns),n=[],a=F(e,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=e[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();e[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),e.push(t)}function iw(r){var t=ul(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return op(e,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function ow(r){sp(r).snapshots=null}function sw(r){return ul(r).length}function ul(r){var t=sp(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var lw=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){ow(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Je);ft({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var uw=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],lp=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=zf(e,t);w(fw,function(o,s){(!n||!n.include||se(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=ji[n.brushType](0,i,a);n.__rangeOffset={offset:Hf[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){w(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&w(i.coordSyses,function(o){var s=ji[a.brushType](1,o,a.range,!0);n(a,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){w(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=ji[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?Hf[n.brushType](i.values,o.offset,cw(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return F(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:Tb(a),isTargetByCursor:Ab(a,t,n.coordSysModel),getLinearBrushOtherExtent:Db(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&se(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=zf(e,t),i=0;ir[1]&&r.reverse(),r}function zf(r,t){return vn(r,t,{includeMainTypes:uw})}var fw={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=U(),o={},s={};!e&&!n&&!a||(w(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),w(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),w(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];w(u.getCartesians(),function(c,h){(se(e,c.getAxis("x").model)>=0||se(n,c.getAxis("y").model)>=0)&&f.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:Gf.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){w(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:Gf.geo})})}},Ff=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],Gf={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Ts(r)),t}},ji={lineX:J(Wf,0),lineY:J(Wf,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[as([a[0],i[0]]),as([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=F(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function Wf(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=as(F([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var Hf={lineX:J(Uf,0),lineY:J(Uf,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return F(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function Uf(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function cw(r,t){var e=Yf(r),n=Yf(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function Yf(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var is=w,vw=Wg("toolbox-dataZoom_"),hw=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new gb(a.getZr()),this._brushController.on("brush",oe(this._onBrush,this)).mount()),gw(e,n,this,i,a),pw(e,n)},t.prototype.onclick=function(e,n,a){dw[a].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new lp(fl(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,f,c){if(c.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",c,f[0]),s("y",c,f[1])):s({lineX:"x",lineY:"y"}[h],c,f)}}),aw(i,a),this._dispatchZoomAction(a);function s(u,f,c){var h=f.getAxis(u),v=h.model,d=l(u,v,i),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(c=Yd(0,c.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(a[d.id]={dataZoomId:d.id,startValue:c[0],endValue:c[1]})}function l(u,f,c){var h;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,f.componentIndex);d&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(e){var n=[];is(e,function(a,i){n.push($(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Je),dw={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(iw(this.ecModel))}};function fl(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function pw(r,t){r.setIconStatus("back",sw(t)>1?"emphasis":"normal")}function gw(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new lp(fl(r),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}gy("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=fl(n),o=vn(r,i);is(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),is(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:vw+u+c};h[f]=c,a.push(h)}return a});function X1(r){r.registerComponentModel(Gb),r.registerComponentView(Hb),rn("saveAsImage",Yb),rn("magicType",Zb),rn("dataView",rw),rn("dataZoom",hw),rn("restore",lw),St(Fb)}var mw=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(ee);function up(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function fp(r){if(fe.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+a,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-c)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function Cw(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=fe.transformSupported?","+cl+n:",left"+n+",top"+n),Sw+":"+a}function Xf(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!fe.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=fe.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+cl+":"+o+";":[["top",0],["left",0],[cp,o]]}function Tw(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),w(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function Dw(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),c=bh(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&a&&n.push(Cw(a,e)),i&&n.push("background-color:"+i),w(["width","color","radius"],function(v){var d="border-"+v,p=Uv(d),g=r.get(p);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(Tw(f)),c!=null&&n.push("padding:"+ri(c).join("px ")+"px"),n.join(";")+";"}function Zf(r,t,e,n,a){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&hg(r,o,e,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Aw=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,fe.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=e.appendTo,o=i&&(G(i)?document.querySelector(i):So(i)?i:X(i)&&i(t.getDom()));Zf(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();vg(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=_w(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=xw+Dw(t,!this._firstShow,this._longHide)+Xf(i[0],i[1],!0)+("border-color:"+nr(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(G(i)&&n.get("trigger")==="item"&&!up(n)&&(s=ww(n,a,i)),G(t))o.innerHTML=t+s;else if(t){o.innerHTML="",N(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(e,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||fe.node||!a.getDom())){var o=qf(i,a);this._ticket="";var s=i.dataByCoordSys,l=Ew(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=Mw;f.x=i.x,f.y=i.y,f.update(),Z(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var c=Wd(i,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(qf(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=nn([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(a){var s=Z(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;un(a,function(f){if(Z(f).dataIndex!=null)return l=f,!0;if(Z(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(e,l,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=oe(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=nn([n.tooltipOption],i),l=this._renderMode,u=[],f=In("section",{blocks:[],noHeader:!0}),c=[],h=new Ii;w(e,function(y){w(y.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=zd(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),C=In("section",{header:x,noHeader:!Bn(x),sortBlocks:!0,blocks:[]});f.blocks.push(C),w(_.seriesDataIndices,function(T){var D=a.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,I=D.getDataParams(A);if(!(I.dataIndex<0)){I.axisDim=_.axisDim,I.axisIndex=_.axisIndex,I.axisType=_.axisType,I.axisId=_.axisId,I.axisValue=Js(S.axis,{value:b}),I.axisValueLabel=x,I.marker=h.makeTooltipMarker("item",nr(I.color),l);var M=pu(D.formatTooltip(A,!0,null)),L=M.frag;if(L){var P=nn([D],i).get("valueFormatter");C.blocks.push(P?B({valueFormatter:P},L):L)}M.text&&c.push(M.text),u.push(I)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),p=xu(f,h,l,d,a.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?` + +`:"
",m=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,o=Z(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=e.positionDefault,p=nn([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,c),y=new Ii;m.marker=y.makeTooltipMarker("item",nr(m.color),v);var _=pu(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,C=x?xu(b?B({valueFormatter:b},x):x,y,v,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,C,m,T,e.offsetX,e.offsetY,e.position,e.target,y)}),a({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=Z(n),o=i.tooltipConfig,s=o.option||{};if(G(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(i.componentMainType,i.componentIndex);f&&u.push(f),u.push({formatter:s.content});var c=e.positionDefault,h=nn(u,this._tooltipModel,c?{position:c}:null),v=h.get("content"),d=Math.random()+"",p=new Ii;this._showOrMove(h,function(){var g=$(h.get("formatterParams")||{});this._showTooltipContent(h,v,g,d,e.offsetX,e.offsetY,e.position,n,p)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=n,d=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor")),p=d.color;if(h)if(G(h)){var g=e.ecModel.get("useUTC"),m=N(a)?a[0]:a,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=ja(m.axisValue,v,g)),v=Yv(v,a,!0)}else if(X(h)){var _=oe(function(S,b){S===this._ticket&&(c.setContent(b,f,e,p,l),this._updatePosition(e,l,o,s,c,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;c.setContent(v,f,e,p,l),c.show(e,p),this._updatePosition(e,l,o,s,c,a,u)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||N(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!N(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var c=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),X(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),N(n))a=te(n[0],u),i=te(n[1],f);else if(Y(n)){var p=n;p.width=c[0],p.height=c[1];var g=Gt(p,{width:u,height:f});a=g.x,i=g.y,h=null,v=null}else if(G(n)&&l){var m=kw(n,d,c,e.get("borderWidth"));a=m[0],i=m[1]}else{var m=Pw(a,i,o,u,f,h?null:20,v?null:20);a=m[0],i=m[1]}if(h&&(a-=jf(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=jf(v)?c[1]/2:v==="bottom"?c[1]:0),up(e)){var m=Rw(a,i,o,u,f);a=m[0],i=m[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===e.length;return o&&w(a,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&w(u,function(h,v){var d=c[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&w(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&w(h.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=i[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){fe.node||!n.getDom()||(No(this,"_updatePosition"),this._tooltipContent.dispose(),jo("itemTooltip",n))},t.type="tooltip",t}(Ne);function nn(r,t,e){var n=t.ecModel,a;e?(a=new ce(e,n,n),a=new ce(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof ce&&(o=o.get("tooltip",!0)),G(o)&&(o={formatter:o}),o&&(a=new ce(o,a,n)))}return a}function qf(r,t){return r.dispatchAction||oe(t.dispatchAction,t)}function Pw(r,t,e,n,a,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[r,t]}function Rw(r,t,e,n,a){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,a)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function kw(r,t,e,n){var a=e[0],i=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-a/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+f+o;break;case"left":s=t.x-a-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function jf(r){return r==="center"||r==="middle"}function Ew(r,t,e){var n=ms(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Fn(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=Z(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function Z1(r){St(Hd),r.registerComponentModel(mw),r.registerComponentView(Lw),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},yt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},yt)}var Ow=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(ee),Nw=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=ie(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Ce({style:Ft(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=e.get("subtext"),v=new Ce({style:Ft(s,{text:h,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!p&&!g,d&&f.on("click",function(){ql(d,"_"+e.get("target"))}),p&&v.on("click",function(){ql(p,"_"+e.get("subtarget"))}),Z(f).eventData=Z(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),h&&i.add(v);var m=i.getBoundingRect(),y=e.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Gt(y,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),m=i.getBoundingRect();var b=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var C=new he({shape:{x:m.x-b[3],y:m.y-b[0],width:m.width+b[1]+b[3],height:m.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(Ne);function $1(r){r.registerComponentModel(Ow),r.registerComponentView(Nw)}function hi(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Pr(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o=0&&n.push(t[i])}return n.join(" ")}var vl=function(r){V(t,r);function t(e,n,a,i){var o=r.call(this)||this;return o.updateData(e,n,a,i),o}return t.prototype._createSymbol=function(e,n,a,i,o){this.removeAll();var s=Wt(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=Bw,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ar(this.childAt(0))},t.prototype.downplay=function(){Ir(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,c)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(v):me(h,v,s,n),Za(h)}if(this._updateCommon(e,n,l,a,i),u){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,De(h,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,o){var s=this.childAt(0),l=e.hostModel,u,f,c,h,v,d,p,g,m;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,m=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Br(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Hs(e.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),m&&s.attr("cursor",m);var x=e.getItemVisual(n,"style"),C=x.fill;if(s instanceof Or){var T=s.style;s.useStyle(B({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(B({},x)):s.useStyle(x),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=e.getItemVisual(n,"liftZ"),A=this._z2;D!=null?A==null&&(this._z2=s.z2,s.z2+=D):A!=null&&(s.z2=A,this._z2=null);var I=o&&o.useNameLabel;Nr(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:M,inheritColor:C,defaultOpacity:x.opacity});function M(R){return I?e.getName(R):hi(e,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Mr(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),o=Z(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&wn(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();wn(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return s_(e.getItemVisual(n,"symbolSize"))},t}(ge);function Bw(r,t){this.parent.drift(r,t)}function Qi(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Qf(r){return r!=null&&!Y(r)&&(r={isIgnore:r}),r||{}}function Jf(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Br(t),cursorStyle:t.get("cursor")}}var dp=function(){function r(t){this.group=new ge,this._SymbolCtor=t||vl}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Qf(e);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Jf(t),u={disableAnimation:s},f=e.getSymbolPoint||function(c){return t.getItemLayout(c)};i||n.removeAll(),t.diff(i).add(function(c){var h=f(c);if(Qi(t,h,c,e)){var v=new o(t,c,l,u);v.setPosition(h),t.setItemGraphicEl(c,v),n.add(v)}}).update(function(c,h){var v=i.getItemGraphicEl(h),d=f(c);if(!Qi(t,d,c,e)){n.remove(v);return}var p=t.getItemVisual(c,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)n.remove(v),v=new o(t,c,l,u),v.setPosition(d);else{v.updateData(t,c,l,u);var m={x:d[0],y:d[1]};s?v.attr(m):me(v,m,a)}n.add(v),t.setItemGraphicEl(c,v)}).remove(function(c){var h=i.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Jf(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=Qf(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(ee),gr=J,ss=w,ca=ge,pp=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new ca),this.group.add(this._selectorGroup=new ca),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,a,l,s,u);var f=e.getBoxLayoutParams(),c={width:a.getWidth(),height:a.getHeight()},h=e.get("padding"),v=Gt(f,c,h),d=this.layoutInner(e,o,v,i,l,u),p=Gt(re({width:d.width,height:d.height},f),c,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=ip(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this.getContentGroup(),f=U(),c=n.get("selectedMode"),h=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),ss(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===` +`)){var g=new ca;g.newline=!0,u.add(g);return}var m=a.getSeriesByName(p)[0];if(!f.get(p))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),b=y.getVisual("style"),x=this._createItem(m,p,d,v,n,e,_,b,S,c,i);x.on("click",gr(ec,p,null,i,h)).on("mouseover",gr(ls,m.name,null,i,h)).on("mouseout",gr(us,m.name,null,i,h)),a.ssr&&x.eachChild(function(C){var T=Z(C);T.seriesIndex=m.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),f.set(p,!0)}else a.eachRawSeries(function(C){if(!f.get(p)&&C.legendVisualProvider){var T=C.legendVisualProvider;if(!T.containName(p))return;var D=T.indexOfName(p),A=T.getItemVisual(D,"style"),I=T.getItemVisual(D,"legendIcon"),M=dg(A.fill);M&&M[3]===0&&(M[3]=.2,A=B(B({},A),{fill:pg(M,"rgba")}));var L=this._createItem(C,p,d,v,n,e,{},A,I,c,i);L.on("click",gr(ec,null,p,i,h)).on("mouseover",gr(ls,null,p,i,h)).on("mouseout",gr(us,null,p,i,h)),a.ssr&&L.eachChild(function(P){var R=Z(P);R.seriesIndex=C.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(e,n,a,i,o){var s=this.getSelectorGroup();ss(e,function(u){var f=u.type,c=new Ce({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Nr(c,{normal:h,emphasis:v},{defaultText:u.title}),Co(c)})},t.prototype._createItem=function(e,n,a,i,o,s,l,u,f,c,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=zw(f,i,l,u,v,g,h),b=new ca,x=i.getModel("textStyle");if(X(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var C=_==="inherit"&&e.getData().getVisual("symbol")?m==="inherit"?e.getData().getVisual("symbolRotate"):m:0;b.add(Fw({itemWidth:d,itemHeight:p,icon:f,iconRotate:C,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,D=s,A=o.get("formatter"),I=n;G(A)&&A?I=A.replace("{name}",n??""):X(A)&&(I=A(n));var M=g?x.getTextColor():i.get("inactiveColor");b.add(new Ce({style:Ft(x,{text:I,x:T,y:p/2,fill:M,align:D,verticalAlign:"middle"},{inheritColor:M})}));var L=new he({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&Ka({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(R){R.silent=!0}),L.silent=!c,this.getContentGroup().add(b),Co(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Cr(e.get("orient"),l,e.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Cr("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:c[p]+=h[g]+d,v[1-p]+=f[m]/2-h[m]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+h[g],_[m]=Math.max(f[m],h[m]),_[y]=Math.min(0,h[y]+v[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ne);function zw(r,t,e,n,a,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),ss(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:zo(c,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:e).opacity),s(u,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function Fw(r){var t=r.icon||"roundRect",e=Wt(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function ec(r,t,e,n){us(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),ls(r,t,e,n)}function gp(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;na[o],g=[-v.x,-v.y];n||(g[i]=f[u]);var m=[0,0],y=[-d.x,-d.y],_=ie(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?y[i]+=a[o]-d[o]:m[i]+=d[o]+_}y[1-i]+=v[s]/2-d[s]/2,f.setPosition(g),c.setPosition(m),h.setPosition(y);var b={x:0,y:0};if(b[o]=p?a[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+y[1-i]),c.__rectSize=a[o],p){var x={x:0,y:0};x[o]=Math.max(a[o]-d[o]-_,0),x[s]=b[s],c.setClipPath(new he({shape:x})),c.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&me(f,{x:C.contentPosition[0],y:C.contentPosition[1]},p?e:null),this._updatePageInfoView(e,C),b},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;w(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",G(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=Ji[o],l=eo[o],u=this._findTargetItemIndex(n),f=a.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=h;++g)_=S(f[g]),(!_&&y.e>m.s+i||_&&!b(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(y,_.s))&&m.i=C&&x.s<=C+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(n=s)}),n??i},t.type="legend.scroll",t}(pp);function Yw(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function Xw(r){St(mp),r.registerComponentModel(Hw),r.registerComponentView(Uw),Yw(r)}function K1(r){St(mp),St(Xw)}var Zw={label:{enabled:!0},decal:{show:!1}},nc=ue(),$w={};function Kw(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=$(Zw);K(n.label,r.getLocaleModel().get("aria"),!1),K(e.option,n,!1),a(),i();function a(){var u=e.getModel("decal"),f=u.get("show");if(f){var c=U();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=c.get(h.type);v||(v={},c.set(h.type,v)),nc(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(X(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var y=Ql(h.ecModel,h.name,$w,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,y))}else{var d=h.getRawData(),p={},g=nc(h).scope;v.each(function(b){var x=v.getRawIndex(b);p[x]=b});var m=d.count();d.each(function(b){var x=p[b],C=d.getName(b)||b+"",T=Ql(h.ecModel,C,g,m),D=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(D,T))})}function S(b,x){var C=b?B(B({},x),b):x;return C.dirty=!0,C}})}}function i(){var u=r.getLocaleModel().get("aria"),f=e.getModel("label");if(f.option=re(f.option,u),!!f.get("enabled")){var c=t.getZr().dom;if(f.get("description")){c.setAttribute("aria-label",f.get("description"));return}var h=r.getSeriesCount(),v=f.get(["data","maxCount"])||10,d=f.get(["series","maxCount"])||10,p=Math.min(h,d),g;if(!(h<1)){var m=s();if(m){var y=f.get(["general","withTitle"]);g=o(y,{title:m})}else g=f.get(["general","withoutTitle"]);var _=[],S=h>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=o(S,{seriesCount:h}),r.eachSeries(function(T,D){if(D1?f.get(["series","multiple",M]):f.get(["series","single",M]),A=o(A,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>v){var P=f.get(["data","partialData"]);A+=o(P,{displayCnt:v})}else A+=f.get(["data","allData"]);for(var R=f.get(["data","separator","middle"]),O=f.get(["data","separator","end"]),W=[],k=0;k":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},jw=function(){function r(t){var e=this._condVal=G(t)?new RegExp(t):gg(t)?t:null;if(e==null){var n="";Q(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return G(e)?this._condVal.test(t):le(e)?this._condVal.test(t+""):!1},r}(),Qw=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),Jw=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Ve);function _p(r,t,e){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=vC(a,e),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=F(r.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return Rr(t,c[0])&&(h=!0,c[0]=v),Rr(t,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function vC(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:le(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function Sp(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function hC(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function dC(r,t,e,n,a,i,o,s){for(var l=hC(r,t),u=[],f=[],c=[],h=[],v=[],d=[],p=[],g=_p(a,t,o),m=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=a||p<0)break;if(Jt(m,y)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](m,y),c=m,h=y;else{var _=m-u,S=y-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],C=t[b*2+1];x===m&&C===y&&g=n||Jt(x,C))v=m,d=y;else{A=x-u,I=C-f;var P=m-u,R=x-m,O=y-f,W=C-y,k=void 0,E=void 0;if(s==="x"){k=Math.abs(P),E=Math.abs(R);var z=A>0?1:-1;v=m-z*k*o,d=y,M=m+z*E*o,L=y}else if(s==="y"){k=Math.abs(O),E=Math.abs(W);var H=I>0?1:-1;v=m,d=y-H*k*o,M=m,L=y+H*E*o}else k=Math.sqrt(P*P+O*O),E=Math.sqrt(R*R+W*W),D=E/(E+k),v=m-A*o*(1-D),d=y-I*o*(1-D),M=m+A*o*D,L=y+I*o*D,M=Lt(M,Pt(x,m)),L=Lt(L,Pt(C,y)),M=Pt(M,Lt(x,m)),L=Pt(L,Lt(C,y)),A=M-m,I=L-y,v=m-A*k/E,d=y-I*k/E,v=Lt(v,Pt(u,m)),d=Lt(d,Pt(f,y)),v=Pt(v,Lt(u,m)),d=Pt(d,Lt(f,y)),A=m-v,I=y-d,M=m+A*E/k,L=y+I*E/k}r.bezierCurveTo(c,h,v,d,m,y),c=M,h=L}else r.lineTo(m,y)}u=m,f=y,p+=i}return g}var xp=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),pC=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new xp},t.prototype.buildPath=function(e,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Jt(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=i[c++],d=i[c++],p=i[c++],g=i[c++],m=i[c++],y=i[c++];var b=u?wl(s,v,p,m,e,f):wl(l,d,g,y,e,f);if(b>0)for(var x=0;x=0){var S=u?Cl(l,d,g,y,C):Cl(s,v,p,m,C);return u?[e,S]:[S,e]}}s=m,l=y;break}}},t}(Se),gC=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(xp),mC=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new gC},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Jt(a[s*2-2],a[s*2-1]);s--);for(;ot){i?e.push(o(i,l,t)):a&&e.push(o(a,l,0),o(a,l,t));break}else a&&(e.push(o(a,l,0)),a=null),e.push(l),i=l}return e}function SC(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=F(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=_C(u,a==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=h[0].coord-d,g=h[v-1].coord+d,m=g-p;if(m<.001)return"transparent";w(h,function(_){_.offset=(_.coord-p)/m}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var y=new Zc(0,0,0,0,h,!0);return y[a]=p,y[a+"2"]=g,y}}}function xC(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&bC(i,t))){var o=t.mapDimension(i.dim),s={};return w(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function bC(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;on)return!1;return!0}function wC(r,t){return isNaN(r)||isNaN(t)}function CC(r){for(var t=r.length/2;t>0&&wC(r[t*2-2],r[t*2-1]);t--);return t-1}function fc(r,t){return[r[t*2],r[t*2+1]]}function TC(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function Cp(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var z=p.getState("emphasis").style;z.lineWidth=+p.style.lineWidth+1}Z(p).seriesIndex=e.seriesIndex,Mr(p,W,k,E);var H=uc(e.get("smooth")),q=e.get("smoothMonotone");if(p.setShape({smooth:H,smoothMonotone:q,connectNulls:T}),g){var j=l.getCalculationInfo("stackedOnSeries"),ne=0;g.useStyle(re(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),j&&(ne=uc(j.get("smooth"))),g.setShape({smooth:H,stackedOnSmooth:ne,smoothMonotone:q,connectNulls:T}),bn(g,e,"areaStyle"),Z(g).seriesIndex=e.seriesIndex,Mr(g,W,k,E)}var xe=function(ye){i._changePolyState(ye)};l.eachItemGraphicEl(function(ye){ye&&(ye.onHoverStateChange=xe)}),this._polyline.onHoverStateChange=xe,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=c,this._step=I,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,p),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,n){Z(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var o=e.getData(),s=rr(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=e.get("zlevel")||0,v=e.get("z")||0;u=new vl(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ke.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var o=e.getData(),s=rr(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ke.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;Rl(this._polyline,e),n&&Rl(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new pC({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new mC({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");X(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=X(c)?c(null):c;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(a)if(o){var S=a,b=n.pointToCoord(g);i?(m=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(m=S.r0,y=S.r,_=b[0])}else{var x=a;i?(m=x.x,y=x.x+x.width,_=v.x):(m=x.y+x.height,y=x.y,_=v.y)}var C=y===m?0:(_-m)/(y-m);l&&(C=1-C);var T=X(c)?c(d):f*C+h,D=p.getSymbolPath(),A=D.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(Cp(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ce({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=CC(l);f>=0&&(Nr(s,Br(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?hp(o,v):hi(o,c)},enableTextSetter:!0},DC(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=a.getLayout("points"),h=a.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=n.shape,S=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,b=(m?p:0)*(y?-1:1),x=(m?0:-p)*(y?-1:1),C=m?"x":"y",T=TC(c,S,C),D=T.range,A=D[1]-D[0],I=void 0;if(A>=1){if(A>1&&!v){var M=fc(c,D[0]);u.attr({x:M[0]+b,y:M[1]+x}),o&&(I=h.getRawValue(D[0]))}else{var M=f.getPointOn(S,C);M&&u.attr({x:M[0]+b,y:M[1]+x});var L=h.getRawValue(D[0]),P=h.getRawValue(D[1]);o&&(I=lv(a,d,L,P,T.t))}i.lastFrameIndex=D[0]}else{var R=e===1||i.lastFrameIndex>0?D[0]:0,M=fc(c,R);o&&(I=h.getRawValue(R)),u.attr({x:M[0]+b,y:M[1]+x})}if(o){var O=Vr(u);typeof O.setLabelText=="function"&&O.setLabelText(I)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,h=dC(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(v=Rt(h.current,a,o,l),d=Rt(h.stackedOnCurrent,a,o,l),p=Rt(h.next,a,o,l),g=Rt(h.stackedOnNext,a,o,l)),lc(v,p)>3e3||f&&lc(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var m={shape:{points:p}};h.current!==v&&(m.shape.__points=h.next),u.stopAnimation(),me(u,m,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),me(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&y.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var C=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;et&&(t=i,e=a)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},MC=function(r){return Math.round(r.length/2)};function Tp(r){return{seriesType:r,reset:function(t,e,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v));var d=void 0;G(i)?d=IC[i]:X(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,d,MC))}}}}}function J1(r){r.registerChartView(AC),r.registerSeriesModel(cC),r.registerLayout(gl("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Tp("line"))}var En=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return si(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(a)w(i.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),g=o[v],m=n[v]==="x1"||n[v]==="y1";if(m&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,S=1,b=0;bg){_=(x+y)/2;break}b===1&&(S=C-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Ve);Ve.registerClass(En);var LC=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return si(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Is(En.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(En),PC=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),cc=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new PC},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?c-fMath.PI/2&&fs)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(this._isOrderChangedWithinSameData(e,n,a)){var o=this._dataSort(e,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){La(i,e,Z(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(ke),vc={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,i=r.y+r.height,o=ro(t.x,r.x),s=no(t.x+t.width,a),l=ro(t.y,r.y),u=no(t.y+t.height,i),f=sa?s:o,t.y=c&&l>i?u:l,t.width=f?0:s-o,t.height=c?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var a=no(t.r,r.r),i=ro(t.r0,r.r0);t.r=a,t.r0=i;var o=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},hc={cartesian2d:function(r,t,e,n,a,i,o,s,l){var u=new he({shape:B({},n),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,c=a?"height":"width";f[c]=0}return u},polar:function(r,t,e,n,a,i,o,s,l){var u=!a&&l?cc:or,f=new u({shape:n,z2:1});f.name="item";var c=Dp(a);if(f.calculateTextPosition=RC(c,{isRoundCap:u===cc}),i){var h=f.shape,v=a?"r":"endAngle",d={};h[v]=a?n.r0:n.startAngle,d[v]=n[v],(s?me:De)(f,{shape:d},i)}return f}};function NC(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function dc(r,t,e,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?me:De)(e,{shape:l},t,a,null);var f=t?r.baseAxis.model:null;(o?me:De)(e,{shape:u},f,a)}function pc(r,t){for(var e=0;e0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function zC(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Dp(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function mc(r,t,e,n,a,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var f=r.shape,c=fn(n.getModel("itemStyle"),f,!0);B(f,c),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",d=Br(n);Nr(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:hi(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,kC(r,g==="outside"?v:g,Dp(o),n.get(["label","rotate"]))}Fm(p,d,i.getRawValue(e),function(y){return hp(t,y)});var m=n.getModel(["emphasis"]);Mr(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),bn(r,n),zC(a)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function FC(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var GC=function(){function r(){}return r}(),yc=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new GC},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?e:null},30,!1);function WC(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=i.length/3;f=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function Ap(r,t,e){if(hl(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function HC(r,t,e){var n=r.type==="polar"?or:he;return new n({shape:Ap(t,e,r),silent:!0,z2:0})}function eT(r){r.registerChartView(OC),r.registerSeriesModel(LC),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,J(ld,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ud("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Tp("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var xc=Math.PI*2,pa=Math.PI/180;function Ip(r,t){return Gt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Mp(r,t){var e=Ip(r,t),n=r.get("center"),a=r.get("radius");N(a)||(a=[0,a]);var i=te(e.width,t.getWidth()),o=te(e.height,t.getHeight()),s=Math.min(i,o),l=te(a[0],s/2),u=te(a[1],s/2),f,c,h=r.coordinateSystem;if(h){var v=h.dataToPoint(n);f=v[0]||0,c=v[1]||0}else N(n)||(n=[n,n]),f=te(n[0],i)+e.x,c=te(n[1],o)+e.y;return{cx:f,cy:c,r0:l,r:u}}function UC(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=Ip(n,e),s=Mp(n,e),l=s.cx,u=s.cy,f=s.r,c=s.r0,h=-n.get("startAngle")*pa,v=n.get("endAngle"),d=n.get("padAngle")*pa;v=v==="auto"?h-xc:-v*pa;var p=n.get("minAngle")*pa,g=p+d,m=0;a.each(i,function(O){!isNaN(O)&&m++});var y=a.getSum(i),_=Math.PI/(y||m)*2,S=n.get("clockwise"),b=n.get("roseType"),x=n.get("stillShowZeroSum"),C=a.getDataExtent(i);C[0]=0;var T=S?1:-1,D=[h,v],A=T*d/2;yg(D,!S),h=D[0],v=D[1];var I=Math.abs(v-h),M=I,L=0,P=h;if(a.setLayout({viewRect:o,r:f}),a.each(i,function(O,W){var k;if(isNaN(O)){a.setItemLayout(W,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:c,r:b?NaN:f});return}b!=="area"?k=y===0&&x?_:O*_:k=I/m,kk?(z=P+T*k/2,H=z):(z=P+A,H=E-A),a.setItemLayout(W,{angle:k,startAngle:z,endAngle:H,clockwise:S,cx:l,cy:u,r0:c,r:b?Ot(O,C,[c,f]):f}),P=E}),Me?m:g,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*a,C=n+_.len,T=Math.abs(x)r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var p=n.getBoundingRect();i.width=p.width;var g=(n.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-c)/2}}}function ao(r){return r.position==="center"}function $C(r){var t=r.getData(),e=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*XC,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var C in x.states)if(x.states[C].ignore===!1)return!0;return!1}t.each(function(x){var C=t.getItemGraphicEl(x),T=C.shape,D=C.getTextContent(),A=C.getTextGuideLine(),I=t.getItemModel(x),M=I.getModel("label"),L=M.get("position")||I.get(["emphasis","label","position"]),P=M.get("distanceToLabelLine"),R=M.get("alignTo"),O=te(M.get("edgeDistance"),u),W=M.get("bleedMargin"),k=I.getModel("labelLine"),E=k.get("length");E=te(E,u);var z=k.get("length2");if(z=te(z,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":q>0?"left":"right"}var Tt=Math.PI,vt=0,Hr=M.get("rotate");if(le(Hr))vt=Hr*(Tt/180);else if(L==="center")vt=0;else if(Hr==="radial"||Hr===!0){var Wp=q<0?-H+Tt:-H;vt=Wp}else if(Hr==="tangential"&&L!=="outside"&&L!=="outer"){var lr=Math.atan2(q,j);lr<0&&(lr=Tt*2+lr);var Hp=j>0;Hp&&(lr=Tt+lr),vt=lr-Tt}if(i=!!vt,D.x=ne,D.y=xe,D.rotation=vt,D.setStyle({verticalAlign:"middle"}),Ct){D.setStyle({align:wt});var di=D.states.select;di&&(di.x+=D.x,di.y+=D.y)}else{var Ur=D.getBoundingRect().clone();Ur.applyTransform(D.getComputedTransform());var yl=(D.style.margin||0)+2.1;Ur.y-=yl/2,Ur.height+=yl,e.push({label:D,labelLine:A,position:L,len:E,len2:z,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new we(q,j),linePoints:ye,textAlign:wt,labelDistance:P,labelAlignTo:R,edgeDistance:O,bleedMargin:W,rect:Ur,unconstrainedWidth:Ur.width,labelStyleWidth:D.style.width})}C.setTextConfig({inside:Ct})}}),!i&&r.get("avoidLabelOverlap")&&ZC(e,n,a,l,u,h,f,c);for(var p=0;p0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c=i.r0}},t.type="pie",t}(ke);function Pp(r,t,e){t=N(t)&&{coordDimensions:t}||B({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=nd(n,t).dimensions,i=new rd(a,r);return i.initData(n,e),i}var jC=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}(),QC=ue(),JC=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new jC(oe(this.getData,this),oe(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Pp(this,{coordDimensions:["value"],encodeDefaulter:J(dy,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=QC(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Lg(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){xo(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Ve);function e1(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(le(o)&&!isNaN(o)&&o<0)})}}}function tT(r){r.registerChartView(qC),r.registerSeriesModel(JC),j0("pie",r.registerAction),r.registerLayout(J(UC,"pie")),r.registerProcessor(YC("pie")),r.registerProcessor(e1("pie"))}var t1=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return si(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Ve),Rp=4,r1=function(){function r(){}return r}(),n1=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new r1},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]=0;u--){var f=u*2,c=i[f]-s/2,h=i[f+1]-l/2;if(e>=c&&n>=h&&e<=c+s&&n<=h+l)return u}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,c=-1/0,h=0;h=0&&(u.dataIndex=c+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),i1=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=gl("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var n=e.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new a1:new dp,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(ke);function rT(r){St(Bd),r.registerSeriesModel(t1),r.registerChartView(i1),r.registerLayout(gl("scatter"))}var o1=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],f=t.layout==="horizontal"?0:1,c=this._baseAxisDim=u[f],h=u[1-f],v=[a,i],d=v[f].get("type"),p=v[1-f].get("type"),g=t.data;if(g&&l){var m=[];w(g,function(S,b){var x;N(S)?(x=S.slice(),S.unshift(b)):N(S.value)?(x=B({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,m.push(x)}),t.data=m}var y=this.defaultValueDimensions,_=[{name:c,type:Ho(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Ho(p),dimsDef:y.slice()}];return Pp(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:J(qv,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),s1=["color","borderColor"],l1=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){Gn(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(f){if(n.hasValue(f)){var c=n.getItemLayout(f);if(s&&wc(u,c))return;var h=io(c,f,!0);De(h,{shape:{points:c.ends}},e,f),oo(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}}).update(function(f,c){var h=a.getItemGraphicEl(c);if(!n.hasValue(f)){i.remove(h);return}var v=n.getItemLayout(f);if(s&&wc(u,v)){i.remove(h);return}h?(me(h,{shape:{points:v.ends}},e,f),Za(h)):h=io(v),oo(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}).remove(function(f){var c=a.getItemGraphicEl(f);c&&i.remove(c)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),Cc(e,this.group);var n=e.get("clip",!0)?pl(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=a.getItemLayout(o),l=io(s);oo(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,n){Cc(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(ke),u1=function(){function r(){}return r}(),f1=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new u1},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(Se);function io(r,t,e){var n=r.ends;return new f1({shape:{points:e?c1(n,r):n},z2:100})}function wc(r,t){for(var e=!0,n=0;n0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=e.get(["itemStyle","borderColorDoji"]));var i=e.getModel("itemStyle").getItemStyle(s1);t.useStyle(i),t.style.fill=null,t.style.stroke=a}var kp=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,a){var i=n.getItemLayout(e);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Ve);xt(kp,o1,!0);function h1(r){!r||!N(r.series)||w(r.series,function(t){Y(t)&&t.type==="k"&&(t.type="candlestick")})}var d1=["itemStyle","borderColor"],p1=["itemStyle","borderColor0"],g1=["itemStyle","borderColorDoji"],m1=["itemStyle","color"],y1=["itemStyle","color0"],_1={seriesType:"candlestick",plan:Hn(),performRawSeries:!0,reset:function(r,t){function e(i,o){return o.get(i>0?m1:y1)}function n(i,o){return o.get(i===0?g1:i>0?d1:p1)}if(!t.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=e(u,l),f.stroke=n(u,l)||f.fill;var c=o.ensureUniqueItemVisual(s,"style");B(c,f)}}}}}},S1={seriesType:"candlestick",plan:Hn(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=x1(r,e),a=0,i=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[a])),l=F(e.mapDimensionsAll(o[i]),e.getDimensionIndex,e),u=l[0],f=l[1],c=l[2],h=l[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(p,g){for(var m,y=g.getStore();(m=p.next())!=null;){var _=y.get(s,m),S=y.get(u,m),b=y.get(f,m),x=y.get(c,m),C=y.get(h,m),T=Math.min(S,b),D=Math.max(S,b),A=W(T,_),I=W(D,_),M=W(x,_),L=W(C,_),P=[];k(P,I,0),k(P,A,1),P.push(z(L),z(I),z(M),z(A));var R=g.getItemModel(m),O=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:Tc(y,m,S,b,f,O),initBaseline:S>b?I[i]:A[i],ends:P,brushRect:E(x,C,_)})}function W(H,q){var j=[];return j[a]=q,j[i]=H,isNaN(q)||isNaN(H)?[NaN,NaN]:t.dataToPoint(j)}function k(H,q,j){var ne=q.slice(),xe=q.slice();ne[a]=ya(ne[a]+n/2,1,!1),xe[a]=ya(xe[a]-n/2,1,!0),j?H.push(ne,xe):H.push(xe,ne)}function E(H,q,j){var ne=W(H,j),xe=W(q,j);return ne[a]-=n/2,xe[a]-=n/2,{x:ne[0],y:ne[1],width:n,height:xe[1]-ne[1]}}function z(H){return H[a]=ya(H[a],1),H}}function d(p,g){for(var m=at(p.count*4),y=0,_,S=[],b=[],x,C=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var D=C.get(s,x),A=C.get(u,x),I=C.get(f,x),M=C.get(c,x),L=C.get(h,x);if(isNaN(D)||isNaN(M)||isNaN(L)){m[y++]=NaN,y+=3;continue}m[y++]=Tc(C,x,A,I,f,T),S[a]=D,S[i]=M,_=t.dataToPoint(S,null,b),m[y++]=_?_[0]:NaN,m[y++]=_?_[1]:NaN,S[i]=L,_=t.dataToPoint(S,null,b),m[y++]=_?_[1]:NaN}g.setLayout("largePoints",m)}}};function Tc(r,t,e,n,a,i){var o;return e>n?o=-1:e0?r.get(a,t-1)<=n?1:-1:1,o}function x1(r,t){var e=r.getBaseAxis(),n,a=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=te(ie(r.get("barMaxWidth"),a),a),o=te(ie(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?te(s,a):Math.max(Math.min(a/2,i),o)}function nT(r){r.registerChartView(l1),r.registerSeriesModel(kp),r.registerPreprocessor(h1),r.registerVisual(_1),r.registerLayout(S1)}var b1=["itemStyle","borderWidth"],Dc=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],uo=new Ga,w1=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),c=l.master.getRect(),h={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:f,valueDim:Dc[+f],categoryDim:Dc[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=Ic(o,d),g=Ac(o,d,p,h),m=Mc(o,h,g);o.setItemGraphicEl(d,m),i.add(m),Pc(m,h,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var m=Ic(o,d),y=Ac(o,d,m,h),_=zp(o,y);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?L1(g,h,y):g=Mc(o,h,y,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=y,i.add(g),Pc(g,h,y)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&Lc(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var v=e.get("clip",!0)?pl(e.coordinateSystem,!1,e):null;return v?i.setClipPath(v):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){Lc(i,Z(o).dataIndex,e,o)}):a.removeAll()},t.type="pictorialBar",t}(ke);function Ac(r,t,e,n){var a=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=e.get("symbolPatternSize")||2,c=e.isAnimationEnabled(),h={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:c?e:null,hoverScale:c&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};C1(e,i,a,n,h),T1(r,t,a,i,o,h.boundingLength,h.pxSign,f,n,h),D1(e,h.symbolScale,u,n,h);var v=h.symbolSize,d=Hs(e.get("symbolOffset"),v);return A1(e,v,a,i,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function C1(r,t,e,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),f;if(N(o)){var c=[fo(s,o[0])-l,fo(s,o[1])-l];c[1]0?1:-1}function fo(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function T1(r,t,e,n,a,i,o,s,l,u){var f=l.valueDim,c=l.categoryDim,h=Math.abs(e[c.wh]),v=r.getItemVisual(t,"symbolSize"),d;N(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[c.index]=te(d[c.index],h),d[f.index]=te(d[f.index],n?h:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function D1(r,t,e,n,a){var i=r.get(b1)||0;i&&(uo.attr({scaleX:t[0],scaleY:t[1],rotation:e}),uo.updateTransform(),i/=uo.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function A1(r,t,e,n,a,i,o,s,l,u,f,c){var h=f.categoryDim,v=f.valueDim,d=c.pxSign,p=Math.max(t[v.index]+s,0),g=p;if(n){var m=Math.abs(l),y=Dr(r.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var S=te(y,t[v.index]),b=Math.max(p+S*2,0),x=_?0:S*2,C=tv(n),T=C?n:Rc((m+x)/b),D=m-T*p;S=D/2/(_?T:Math.max(T-1,1)),b=p+S*2,x=_?0:S*2,!C&&n!=="fixed"&&(T=u?Rc((Math.abs(u)+x)/b):0),g=T*b-x,c.repeatTimes=T,c.symbolMargin=S}var A=d*(g/2),I=c.pathPosition=[];I[h.index]=e[h.wh]/2,I[v.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(I[0]+=i[0],I[1]+=i[1]);var M=c.bundlePosition=[];M[h.index]=e[h.xy],M[v.index]=e[v.xy];var L=c.barRectShape=B({},e);L[v.wh]=d*Math.max(Math.abs(e[v.wh]),Math.abs(I[v.index]+A)),L[h.wh]=e[h.wh];var P=c.clipShape={};P[h.xy]=-e[h.xy],P[h.wh]=f.ecSize[h.wh],P[v.xy]=0,P[v.wh]=e[v.wh]}function Ep(r){var t=r.symbolPatternSize,e=Wt(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function Op(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,c=i[t.valueDim.index]+o+e.symbolMargin*2;for(ml(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f0:m<0)&&(y=u-1-p),g[l.index]=c*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function Np(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Tr(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=Ep(e),a.add(i),Tr(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function Bp(r,t,e){var n=B({},t.barRectShape),a=r.__pictorialBarRect;a?Tr(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new he({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function Vp(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=B({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(a)me(a,{shape:i},s,l);else{i[o.wh]=0,a=new he({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=e.clipShape[o.wh],As[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function Ic(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=I1,e.isAnimationEnabled=M1,e}function I1(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function M1(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Mc(r,t,e,n){var a=new ge,i=new ge;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?Op(a,t,e):Np(a,t,e),Bp(a,e,n),Vp(a,t,e,n),a.__pictorialShapeStr=zp(r,e),a.__pictorialSymbolMeta=e,a}function L1(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;me(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?Op(r,t,e,!0):Np(r,t,e,!0),Bp(r,e,!0),Vp(r,t,e,!0)}function Lc(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];ml(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),w(i,function(o){wn(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function zp(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function ml(r,t,e){w(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Tr(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&As[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function Pc(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=i.get("focus"),c=i.get("blurScope"),h=i.get("scale");ml(r,function(p){if(p instanceof Or){var g=p.style;p.useStyle(B({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var m=p.ensureState("emphasis");m.style=o,h&&(m.scaleX=p.scaleX*1.1,m.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var v=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Nr(d,Br(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:hi(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),Mr(r,f,c,i.get("disabled"))}function Rc(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var P1=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Is(En.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(En);function aT(r){r.registerChartView(w1),r.registerSeriesModel(P1),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,J(ld,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ud("pictorialBar"))}function kc(r){return N(r[0])}function Ec(r,t){for(var e=[],n=r.length,a=0;a=0;a--)if(!e[a].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[a].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var R1={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;kc(r)&&(u=r,f=t),kc(t)&&(u=t,f=r);function c(m,y,_,S,b){var x=m.many,C=m.one;if(x.length===1&&!b){var T=y?x[0]:C,D=y?C:x[0];if(Sg(T))c({many:[T],one:D},!0,_,S,!0);else{var A=s?re({delay:s(_,S)},l):l;xg(T,D,A),i(T,D,T,D,A)}}else for(var I=re({dividePath:R1[e],individualDelay:s&&function(W,k,E,z){return s(W+_,S)}},l),M=y?bg(x,C,I):wg(C,x,I),L=M.fromIndividuals,P=M.toIndividuals,R=L.length,O=0;Ot.length,v=u?Ec(f,u):Ec(h?t:r,[h?r:t]),d=0,p=0;pFp))for(var i=n.getIndices(),o=0;o0&&x.group.traverse(function(T){T instanceof Se&&!T.animators.length&&T.animateFrom({style:{opacity:0}},C)})})}function zc(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Fc(r){return N(r)?r.sort().join(","):r}function Et(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function z1(r,t){var e=U(),n=U(),a=U();return w(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=zc(i),f=Fc(u);n.set(f,{dataGroupId:s,data:l}),N(u)&&w(u,function(c){a.set(c,{key:f,dataGroupId:s,data:l})})}),w(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=zc(i),u=Fc(l),f=n.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Et(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Et(s),data:s}]});else if(N(l)){var c=[];w(l,function(d){var p=n.get(d);p.data&&c.push({dataGroupId:p.dataGroupId,divide:Et(p.data),data:p.data})}),c.length&&e.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:Et(s)}]})}else{var h=a.get(l);if(h){var v=e.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Et(h.data)}],newSeries:[]},e.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Et(s)})}}}}),e}function Gc(r,t){for(var e=0;e=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Et(t.oldData[s]),groupIdDim:o.dimension})}),w(de(r.to),function(o){var s=Gc(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Et(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&Gp(a,i,n)}function iT(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){w(de(n.seriesTransition),function(a){w(de(a.to),function(i){for(var o=n.updatedSeries,s=0;s0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}function te(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return W(r)?Mg(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function _e(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),jc),r=(+r).toFixed(t),e?r:+r}function Lg(r){return r.sort(function(t,e){return t-e}),r}function pt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return Pg(r)}function Pg(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function Qc(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Rg(r,t){var e=Ta(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=F(r,function(v){return(isNaN(v)?0:v)/e*n*100}),i=n*100,o=F(a,function(v){return Math.floor(v)}),s=Ta(o,function(v,d){return v+d},0),l=F(a,function(v,d){return v-o[d]});su&&(u=l[c],f=c);++o[f],l[f]=0,++s}return F(o,function(v){return v/n})}function kg(r,t){var e=Math.max(pt(r),pt(t)),n=r+t;return e>jc?n:_e(n,e)}function Jc(r){var t=Math.PI*2;return(r%t+t)%t}function Ia(r){return r>-Tl&&r=10&&t++,t}function ev(r,t){var e=ps(r),n=Math.pow(10,e),a=r/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function zt(r){var t=parseFloat(r);return t==r&&(t!==0||!W(r)||r.indexOf("x")<=0)?t:NaN}function tv(r){return!isNaN(zt(r))}function rv(){return Math.round(Math.random()*9)}function nv(r,t){return t===0?r:nv(t,r%t)}function Dl(r,t){return r==null?t:t==null?r:r*t/nv(r,t)}function Q(r){throw new Error(r)}function Al(r,t,e){return(t-r)*e+r}var av="series\0",iv="\0_ec_\0";function de(r){return r instanceof Array?r:r==null?[]:[r]}function xo(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,a=e.length;n=0||i&&le(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var im=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],om=bn(im),sm=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return om(this,t,e)},r}(),$=se(),lm=function(r,t,e,n){if(n){var a=$(n);a.dataIndex=e,a.dataType=t,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=$(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},Ml=1,Ll={},cv=se(),_s=se(),Ss=0,Ha=1,Ua=2,Xe=["emphasis","blur","select"],Ma=["normal","emphasis","blur","select"],um=10,fm=9,Qt="highlight",ga="downplay",dn="select",ma="unselect",pn="toggleSelect";function ur(r){return r!=null&&r!=="none"}function Ya(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function vv(r){Ya(r,"emphasis",Ua)}function hv(r){r.hoverState===Ua&&Ya(r,"normal",Ss)}function xs(r){Ya(r,"blur",Ha)}function dv(r){r.hoverState===Ha&&Ya(r,"normal",Ss)}function cm(r){r.selected=!0}function vm(r){r.selected=!1}function Pl(r,t,e){t(r,e)}function bt(r,t,e){Pl(r,t,e),r.isGroup&&r.traverse(function(n){Pl(n,t,e)})}function Rl(r,t){switch(t){case"emphasis":r.hoverState=Ua;break;case"normal":r.hoverState=Ss;break;case"blur":r.hoverState=Ha;break;case"select":r.selected=!0}}function hm(r,t,e,n){for(var a=r.style,i={},o=0;o=0,i=!1;if(r instanceof Se){var o=cv(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(ur(s)||ur(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=N({},n),u=N({},u),u.fill=s):!ur(u.fill)&&ur(s)?(i=!0,n=N({},n),u=N({},u),u.fill=_l(s)):!ur(u.stroke)&&ur(l)&&(i||(n=N({},n),u=N({},u)),u.stroke=_l(l)),n.style=u}}if(n&&n.z2==null){i||(n=N({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??um)}return n}function pm(r,t,e){if(e&&e.z2==null){e=N({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??fm)}return e}function gm(r,t,e){var n=le(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:hm(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=N({},e),o=N({opacity:n?a:i.opacity*.1},o),e.style=o),e}function mi(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return dm(this,r,t,e);if(r==="blur")return gm(this,r,e);if(r==="select")return pm(this,r,e)}return e}function mm(r){r.stateProxy=mi;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=mi),e&&(e.stateProxy=mi)}function kl(r,t){!yv(r,t)&&!r.__highByOuter&&bt(r,vv)}function El(r,t){!yv(r,t)&&!r.__highByOuter&&bt(r,hv)}function Ar(r,t){r.__highByOuter|=1<<(t||0),bt(r,vv)}function Ir(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&bt(r,hv)}function ym(r){bt(r,xs)}function pv(r){bt(r,dv)}function gv(r){bt(r,cm)}function mv(r){bt(r,vm)}function yv(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function _v(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var o=_s(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){dv(u)}),s&&e.push(i)),o.isBlured=!1}),w(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function bo(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(u,f){for(var c=0;c0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Co(r,t,e){Sv(r,!0),bt(r,mm),Tm(r,t,e)}function Cm(r){Sv(r,!1)}function Mr(r,t,e,n){n?Cm(r):Co(r,t,e)}function Tm(r,t,e){var n=$(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var Nl=["emphasis","blur","select"],Dm={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function wn(r,t,e,n){e=e||"itemStyle";for(var a=0;a0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function me(r,t,e,n,a,i){ws("update",r,t,e,n,a,i)}function De(r,t,e,n,a,i){ws("enter",r,t,e,n,a,i)}function Sr(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function zl(r){return!r.isGroup}function Nm(r){return r.shape!=null}function Dv(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){zl(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Nm(o)&&(s.shape=N({},o.shape)),s}var i=n(r);t.traverse(function(o){if(zl(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),me(o,l,e,$(o).dataIndex)}}})}function Av(r,t){return F(r,function(e){var n=e[0];n=Pa(n,t.x),n=Ra(n,t.x+t.width);var a=e[1];return a=Pa(a,t.y),a=Ra(a,t.y+t.height),[n,a]})}function Bm(r,t){var e=Pa(r.x,t.x),n=Ra(r.x+r.width,t.x+t.width),a=Pa(r.y,t.y),i=Ra(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function $a(r,t,e){var n=N({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),re(a,e),new Or(n)):Cs(r.replace("path://",""),n,e,"center")}function Vm(r,t,e,n,a){for(var i=0,o=a[a.length-1];i1)return!1;var g=yi(v,d,f,c)/h;return!(g<0||g>1)}function yi(r,t,e,n){return r*n-e*t}function zm(r){return r<=1e-6&&r>=-1e-6}function Ka(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=W(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&w(Fe(l),function(f){mt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=$(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:re({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function Fl(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Wn(r,t){if(r)if(O(r))for(var e=0;e=0&&s.push(l)}),s}}function Is(r,t){return q(q({},r,!0),t,!0)}const Jm={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},ey={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var ka="ZH",Ms="EN",xr=Ms,_a={},Ls={},kv=fe.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||xr).toUpperCase();return r.indexOf(ka)>-1?ka:xr}():xr;function Ev(r,t){r=r.toUpperCase(),Ls[r]=new ce(t),_a[r]=t}function ty(r){if(W(r)){var t=_a[r.toUpperCase()]||{};return r===ka||r===Ms?K(t):q(K(t),K(_a[xr]),!1)}else return q(K(r),K(_a[xr]),!1)}function ry(r){return Ls[r]}function ny(){return Ls[xr]}Ev(Ms,Jm);Ev(ka,ey);var Ps=1e3,Rs=Ps*60,gn=Rs*60,Ue=gn*24,Xl=Ue*365,ln={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},$n="{yyyy}-{MM}-{dd}",Zl={year:"{yyyy}",month:"{yyyy}-{MM}",day:$n,hour:$n+" "+ln.hour,minute:$n+" "+ln.minute,second:$n+" "+ln.second,millisecond:ln.none},xi=["year","month","day","hour","minute","second","millisecond"],Ov=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Dt(r,t){return r+="","0000".substr(0,t-r.length)+r}function br(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function ay(r){return r===br(r)}function iy(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ja(r,t,e,n){var a=_t(r),i=a[ks(e)](),o=a[wr(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[Qa(e)](),u=a["get"+(e?"UTC":"")+"Day"](),f=a[Dn(e)](),c=(f-1)%12+1,h=a[Ja(e)](),v=a[ei(e)](),d=a[ti(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof ce?n:ry(n||kv)||ny(),y=m.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),b=y.get("dayOfWeek"),x=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Dt(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Dt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Dt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Dt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Dt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Dt(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Dt(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Dt(d,3)).replace(/{S}/g,d+"")}function oy(r,t,e,n,a){var i=null;if(W(e))i=e;else if(X(e))i=e(r.value,t,{level:r.level});else{var o=N({},ln);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(O(i)){var c=r.level==null?0:r.level>=0?r.level:i.length+r.level;c=Math.min(c,i.length-1),i=i[c]}}return ja(new Date(r.value),i,a,n)}function Nv(r,t){var e=_t(r),n=e[wr(t)]()+1,a=e[Qa(t)](),i=e[Dn(t)](),o=e[Ja(t)](),s=e[ei(t)](),l=e[ti(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&i===0,v=h&&a===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function $l(r,t,e){var n=ue(r)?_t(r):r;switch(t=t||Nv(r,e),t){case"year":return n[ks(e)]();case"half-year":return n[wr(e)]()>=6?1:0;case"quarter":return Math.floor((n[wr(e)]()+1)/4);case"month":return n[wr(e)]();case"day":return n[Qa(e)]();case"half-day":return n[Dn(e)]()/24;case"hour":return n[Dn(e)]();case"minute":return n[Ja(e)]();case"second":return n[ei(e)]();case"millisecond":return n[ti(e)]()}}function ks(r){return r?"getUTCFullYear":"getFullYear"}function wr(r){return r?"getUTCMonth":"getMonth"}function Qa(r){return r?"getUTCDate":"getDate"}function Dn(r){return r?"getUTCHours":"getHours"}function Ja(r){return r?"getUTCMinutes":"getMinutes"}function ei(r){return r?"getUTCSeconds":"getSeconds"}function ti(r){return r?"getUTCMilliseconds":"getMilliseconds"}function sy(r){return r?"setUTCFullYear":"setFullYear"}function Bv(r){return r?"setUTCMonth":"setMonth"}function Vv(r){return r?"setUTCDate":"setDate"}function zv(r){return r?"setUTCHours":"setHours"}function Fv(r){return r?"setUTCMinutes":"setMinutes"}function Gv(r){return r?"setUTCSeconds":"setSeconds"}function Wv(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Hv(r){if(!tv(r))return W(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Uv(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var ri=rg;function Mo(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Vn(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?_t(r):r;if(isNaN(+l)){if(s)return"-"}else return ja(l,n,e)}if(t==="ordinal")return po(r)?a(r):ue(r)&&i(r)?r+"":"-";var u=zt(r);return i(u)?Hv(u):po(r)?a(r):typeof r=="boolean"?r+"":"-"}var Kl=["a","b","c","d","e","f","g"],bi=function(r,t){return"{"+r+(t??"")+"}"};function Yv(r,t,e){O(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i':'';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function nr(r,t){return t=t||"transparent",W(r)?r:Y(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function ql(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Sa=w,uy=["left","right","top","bottom","width","height"],Kn=[["width","left","right"],["height","top","bottom"]];function Es(r,t,e,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=i+p,v>n||l.newline?(i=0,v=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);d=o+g,d>a||l.newline?(i+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var Cr=Es;J(Es,"vertical");J(Es,"horizontal");function Gt(r,t,e){e=ri(e||0);var n=t.width,a=t.height,i=te(r.left,n),o=te(r.top,a),s=te(r.right,n),l=te(r.bottom,a),u=te(r.width,n),f=te(r.height,a),c=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(f)&&(f=a-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-f-c),r.left||r.right){case"center":i=n/2-u/2-e[3];break;case"right":i=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-e[0];break;case"bottom":o=a-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=n-h-i-(s||0)),isNaN(f)&&(f=a-c-o-(l||0));var d=new Ye(i+e[3],o+e[0],u,f);return d.margin=e,d}function fy(r,t,e,n,a,i){i=i||r,i.x=r.x,i.y=r.y;var o;if(o=r.getBoundingRect(),r.needLocalTransform()){var s=r.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=Gt(re({width:o.width,height:o.height},t),e,n),u=l.x-o.x,f=l.y-o.y;return i.x+=u,i.y+=f,i===r&&r.markRedraw(),!0}function An(r){var t=r.layoutMode||r.constructor.layoutMode;return Y(t)?t:t?{type:t}:null}function Lr(r,t,e){var n=e&&e.ignoreSize;!O(n)&&(n=[n,n]);var a=o(Kn[0],0),i=o(Kn[1],1);u(Kn[0],r,a),u(Kn[1],r,i);function o(f,c){var h={},v=0,d={},p=0,g=2;if(Sa(f,function(_){d[_]=r[_]}),Sa(f,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,l(d,_)&&p++}),n[c])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(p===g||!v)return d;if(v>=g)return h;for(var m=0;m=0;l--)s=q(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return Gn(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(ce);fv(ee,ce);Wa(ee);jm(ee);Qm(ee,hy);function hy(r){var t=[];return w(ee.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=F(t,function(e){return nt(e).main}),r!=="dataset"&&le(t,"dataset")<=0&&t.unshift("dataset"),t}var Xv="";typeof navigator<"u"&&(Xv=navigator.platform||"");var fr="rgba(0, 0, 0, 0.2)";const dy={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:fr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:fr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:fr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:fr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:fr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:fr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Xv.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Zv=U(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ze="original",Ee="arrayRows",$e="objectRows",ut="keyedColumns",Bt="typedArray",$v="unknown",st="column",zr="row",Te={Must:1,Might:2,Not:3},Kv=se();function py(r){Kv(r).datasetMap=U()}function qv(r,t,e){var n={},a=Os(t);if(!a||!r)return n;var i=[],o=[],s=t.ecModel,l=Kv(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),w(r,function(p,g){var m=Y(p)?p:r[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=d(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});w(r,function(p,g){var m=p.name,y=d(p);if(f==null){var _=h.valueWayDim;v(n[m],_,y),v(o,_,y),h.valueWayDim+=y}else if(f===g)v(n[m],0,y),v(i,0,y);else{var _=h.categoryWayDim;v(n[m],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(p,g,m){for(var y=0;yt)return r[n];return r[e-1]}function Jv(r,t,e,n,a,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?e:xy(n,o);if(f=f||e,!(!f||!f.length)){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}function by(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var qn,Xr,Jl,eu="\0_ec_inner",wy=1,Bs=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,o,s){i=i||{},this.option=null,this._theme=new ce(i),this._locale=new ce(o),this._optionManager=s},t.prototype.setOption=function(e,n,a){var i=nu(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,nu(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?Jl(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&w(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=U(),u=n&&n.replaceMergeMainTypeMap;py(this),w(e,function(c,h){c!=null&&(ee.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?K(c):q(a[h],c,!0))}),u&&u.each(function(c,h){ee.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ee.topologicalTravel(s,ee.getAllClassMainTypes(),f,this);function f(c){var h=_y(this,c,de(e[c])),v=i.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=Bg(v,h,d);Yg(p,c,ee),a[c]=null,i.set(c,null),o.set(c,0);var g=[],m=[],y=0,_;w(p,function(S,b){var x=S.existing,C=S.newOption;if(!C)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=c==="series",D=ee.getClass(c,S.keyInfo.subType,!T);if(!D)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===D)x.name=S.keyInfo.name,x.mergeOption(C,this),x.optionUpdated(C,!1);else{var A=N({componentIndex:b},S.keyInfo);x=new D(C,this,this,A),N(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(C,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),m.push(x),y++):(g.push(void 0),m.push(void 0))},this),a[c]=g,i.set(c,m),o.set(c,y),c==="series"&&qn(this)}this._seriesIndices||qn(this)},t.prototype.getOption=function(){var e=K(this.option);return w(e,function(n,a){if(ee.hasClass(a)){for(var i=de(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!xn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[a]=i}}),delete e[eu],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function Ry(r,t){return r.join(",")===t.join(",")}var Ke=w,In=Y,au=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ci(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=au.length;e=0;g--){var m=r[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=kg(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var ai=function(){function r(t){this.data=t.data||(t.sourceFormat===ut?{}:[]),this.sourceFormat=t.sourceFormat||$v,this.seriesLayoutBy=t.seriesLayoutBy||st,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;np&&(p=_)}v[0]=d,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};cu=(t={},t[Ee+"_"+st]={pure:!0,appendData:i},t[Ee+"_"+zr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[$e]={pure:!0,appendData:i},t[ut]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[Ze]={appendData:i},t[Bt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Pr(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function pu(r){var t,e;return Y(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function mn(r){return new qy(r)}var qy=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v1&&n>0?s:o}};return i;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},Qy=function(){function r(t,e){if(!ue(e)){var n="";Q(n)}this._opFn=ch[t],this._rvalFloat=zt(e)}return r.prototype.evaluate=function(t){return ue(t)?this._opFn(t,this._rvalFloat):this._opFn(zt(t),this._rvalFloat)},r}(),vh=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=ue(t)?t:zt(t),a=ue(e)?e:zt(e),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=W(t),l=W(e);s&&(n=l?t:0),l&&(a=s?e:0)}return na?-this._resultLT:0},r}(),Jy=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=zt(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=zt(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function e0(r,t){return r==="eq"||r==="ne"?new Jy(r==="eq",t):mt(ch,r)?new Qy(r,t):null}var t0=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return xa(t,e)},r}();function r0(r,t){var e=new t0,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==st&&Q(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";mt(l,m)&&Q(_),l[m]=y}});else for(var f=0;f65535?f0:c0}function cr(){return[1/0,-1/0]}function v0(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function yu(r,t,e,n,a){var i=ph[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=F(o,function(y){return y.property}),f=0;fm[1]&&(m[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i=c&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=v[a[0]],_=v[a[1]],S=t[a[1]][0],b=t[a[1]][1],m=0;m=c&&y<=h||isNaN(y))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var m=0;m=c&&y<=h||isNaN(y))&&(l[u++]=C)}else for(var m=0;mt[A][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,c,h,v=new($r(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;df&&(f=c,h=S)}I>0&&If-d&&(l=f-d,s.length=l);for(var p=0;pc[1]&&(c[1]=m),h[v++]=y}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();il&&(l=c)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,a,i){return xa(e[i],this._dimensions[i])}Ai={arrayRows:t,objectRows:function(e,n,a,i){return xa(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var o=e&&(e.value==null?e:e.value);return xa(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}(),gh=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,a,i;if(jn(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Ve(s)?Bt:Ze,i=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=ie(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=ie(c.sourceHeader,h.sourceHeader),p=ie(c.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;a=g?[Po(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(e);a=y.sourceList,i=y.upstreamSignList}else{var _=m.get("source",!0);a=[Po(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&Su(i)}var o,s=[],l=[];return w(t,function(u){u.prepareSource();var f=u.getSource(a||0),c="";a!=null&&!f&&Su(c),s.push(f),l.push(u._getVersionSign())}),n?o=l0(n,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[Wy(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return w(r.blocks,function(a){var i=Sh(a);i>=t&&(t=i+ +(n&&(!i||ko(a)&&!a.noHeader)))}),t}return 0}function p0(r,t,e,n){var a=t.noHeader,i=m0(Sh(t)),o=[],s=t.blocks||[];lt(!s||O(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(mt(u,l)){var f=new vh(u[l],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(d,p){var g=t.valueFormatter,m=_h(d)(g?N(N({},r),{valueFormatter:g}):r,d,p>0?i.html:0,n);m!=null&&o.push(m)});var c=r.renderMode==="richText"?o.join(i.richText):Eo(o.join(""),a?e:i.html);if(a)return c;var h=Mo(t.header,"ordinal",r.useUTC),v=yh(n,r.renderMode).nameStyle;return r.renderMode==="richText"?xh(r,h,v)+i.richText+c:Eo('
'+Be(h)+"
"+c,e)}function g0(r,t,e,n){var a=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=O(S)?S:[S],F(S,function(b,x){return Mo(b,O(v)?v[x]:v,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),h=i?"":Mo(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!i,g=!s&&i,m=yh(n,a),y=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":c)+(i?"":xh(r,h,y))+(o?"":S0(r,d,p,g,_)):Eo((s?"":c)+(i?"":y0(h,!s,y))+(o?"":_0(d,p,g,_)),e)}}function xu(r,t,e,n,a,i){if(r){var o=_h(r),s={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function m0(r){return{html:h0[r],richText:d0[r]}}function Eo(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function y0(r,t,e){var n=t?"margin-left:2px":"";return''+Be(r)+""}function _0(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=O(r)?r:[r],''+F(r,function(o){return Be(o)}).join("  ")+""}function xh(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function S0(r,t,e,n,a){var i=[a],o=n?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(O(t)?t.join(" "):t,i)}function x0(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return nr(n)}function bh(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Ii=function(){function r(){this.richTextStyles={},this._nextStyleNameId=rv()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=ly({color:e,type:t,renderMode:n,markerId:a});return W(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};O(e)?w(e,function(i){return N(n,i)}):N(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function b0(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=O(s),u=x0(t,e),f,c,h,v;if(o>1||l&&!o){var d=w0(s,t,e,i,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);v=f=Pr(a,e,i[0]),c=p.type}else v=f=l?s[0]:s;var g=gs(t),m=g&&t.name||"",y=a.getName(e),_=n?m:y;return Mn("section",{header:m,noHeader:n||!g,sortParam:v,blocks:[Mn("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Vn(_),value:f,valueType:c,dataIndex:e})].concat(h||[])})}function w0(r,t,e,n,a){var i=t.getData(),o=Ta(r,function(c,h,v){var d=i.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?w(n,function(c){f(Pr(i,e,c),c)}):w(r,f);function f(c,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Mn("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var At=se();function Qn(r,t){return r.getName(t)||r.getId(t)}var ba="__universalTransitionEnabled",ze=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=mn({count:T0,reset:D0}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=At(this).sourceManager=new gh(this);i.prepareSource();var o=this.getInitialData(e,a);wu(o,this),this.dataTask.context.data=o,At(this).dataBeforeProcessed=o,bu(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=An(this),i=a?ni(e):{},o=this.subType;ee.hasClass(o)&&(o+="Series"),q(e,n.getTheme().get(this.subType)),q(e,this.getDefaultOption()),xo(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Lr(e,i,a)},t.prototype.mergeOption=function(e,n){e=q(this.option,e,!0),this.fillDataTextStyle(e.data);var a=An(this);a&&Lr(this.option,e,a);var i=At(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,n);wu(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,At(this).dataBeforeProcessed=o,bu(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Ve(e))for(var n=["show"],a=0;athis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,a){var i=this.ecModel,o=Ns.prototype.getColorFromPalette.call(this,e,n,a);return o||(o=i.getColorFromPalette(e,n,a)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Qn(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[ba])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Y(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(e,n)}},t.registerClass=function(e){return ee.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(ee);xt(ze,Ky);xt(ze,Ns);fv(ze,ee);function bu(r){var t=r.name;gs(r)||(r.name=C0(r)||t)}function C0(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return w(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function T0(r){return r.model.getRawData().count()}function D0(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),A0}function A0(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function wu(r,t){w(ng(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,J(I0,t))})}function I0(r,t){var e=Oo(r);return e&&e.setOutputEnd((t||this).count()),t}function Oo(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var Ne=function(){function r(){this.group=new ge,this.uid=Hn("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();ys(Ne);Wa(Ne);function Un(){var r=se();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var wh=se(),M0=Un(),ke=function(){function r(){this.group=new ge,this.uid=Hn("viewChart"),this.renderTask=mn({plan:L0,reset:P0}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Tu(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Tu(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){Wn(this.group,t)},r.markUpdateMethod=function(t,e){wh(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Cu(r,t,e){r&&To(r)&&(t==="emphasis"?Ar:Ir)(r,e)}function Tu(r,t,e){var n=rr(r,t),a=t&&t.highlightKey!=null?Am(t.highlightKey):null;n!=null?w(de(n),function(i){Cu(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){Cu(i,e,a)})}ys(ke);Wa(ke);function L0(r){return M0(r.model)}function P0(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=a&&wh(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,a),R0[l]}var R0={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Ea="\0__throttleOriginMethod",Du="\0__throttleRate",Au="\0__throttleType";function Ws(r,t,e){var n,a=0,i=0,o=null,s,l,u,f;t=t||0;function c(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?c():o=setTimeout(c,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function Ch(r,t,e,n){var a=r[t];if(a){var i=a[Ea]||a,o=a[Au],s=a[Du];if(s!==e||o!==n){if(e==null||!n)return r[t]=i;a=r[t]=Ws(i,e,n==="debounce"),a[Ea]=i,a[Au]=n,a[Du]=e}return a}}function No(r,t){var e=r[t];e&&e[Ea]&&(e.clear&&e.clear(),r[t]=e[Ea])}var Iu=se(),Mu={itemStyle:bn(Rv,!0),lineStyle:bn(Pv,!0)},k0={lineStyle:"stroke",itemStyle:"fill"};function Th(r,t){var e=r.visualStyleMapper||Mu[t];return e||(console.warn("Unknown style type '"+t+"'."),Mu.itemStyle)}function Dh(r,t){var e=r.visualDrawType||k0[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var E0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=Th(r,n),o=i(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=Dh(r,n),u=o[l],f=X(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||X(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||X(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=N({},o);g[l]=f(p),v.setItemVisual(d,"style",g)}}}},Kr=new ce,O0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=Th(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Kr.option=l[n];var u=a(Kr),f=o.ensureUniqueItemVisual(s,"style");N(f,u),Kr.option.decal&&(o.setItemVisual(s,"decal",Kr.option.decal),Kr.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},N0={performRawSeries:!0,overallReset:function(r){var t=U();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),Iu(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),o=Iu(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Dh(e,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var h=i.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},Jn=Math.PI;function B0(r,t){t=t||{},re(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new ge,n=new he({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new Ce({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new he({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new vs({shape:{startAngle:-Jn/2,endAngle:-Jn/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Jn*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Jn*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var Ah=function(){function r(t,e,n,a){this._stageTaskMap=U(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=U();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;w(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";lt(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,o=this;w(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,a.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(i=!0)}else c&&c.each(function(g,m){s(a,g)&&g.dirty();var y=o.getPerformArgs(g,a.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,a){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=U(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||mn({plan:W0,reset:H0,count:Y0}));v.context={model:c,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,v)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,o=e.overallTask=e.overallTask||mn({reset:V0});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=U(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,v="";lt(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):(c=!1,w(n.getSeries(),d));function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(h=!0,mn({reset:z0,onDirty:G0})));m.context={model:p,overallProgress:c},m.agent=o,m.__block=c,i._pipe(p,m)}h&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return X(t)&&(t={overallReset:t,seriesType:X0(t)}),t.uid=Hn("stageHandler"),e&&(t.visualType=e),t},r}();function V0(r){r.overallReset(r.ecModel,r.api,r.payload)}function z0(r){return r.overallProgress&&F0}function F0(){this.agent.dirty(),this.getDownstream().dirty()}function G0(){this.agent&&this.agent.dirty()}function W0(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function H0(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=de(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?F(t,function(e,n){return Ih(n)}):U0}var U0=Ih(0);function Ih(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,i));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Bo=["symbol","symbolSize","symbolRotate","symbolOffset"],ku=Bo.concat(["symbolKeepAspect"]),K0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,a){if(!this[Ae]){if(this._disposed){this.id;return}var i,o,s;if(Y(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ae]=!0,!this._model||n){var l=new Iy(this._api),u=this._theme,f=this._model=new Bs;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Go);var c={seriesTransition:s,optionChanged:!0};if(a)this[Oe]={silent:i,updateParams:c},this[Ae]=!1,this.getZr().wakeUp();else{try{hr(this),It.update.call(this,null,c)}catch(h){throw this[Oe]=null,this[Ae]=!1,h}this._ssr||this._zr.flush(),this[Oe]=null,this[Ae]=!1,qr.call(this,i),jr.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||fe.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(fe.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return w(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],o=this;w(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return w(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Hu[a]){var l=s,u=s,f=-s,c=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();w(_n,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(K(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),c=o(x.bottom,c),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,g=$c.createCanvas(),m=Sl(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return w(h,function(_){var S=_.left-l,b=_.top-u;y+=''+_.dom+""}),m.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return e.connectedBackgroundColor&&m.add(new he({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),w(h,function(_){var S=new Or({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return ki(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return ki(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,o=hn(a,e);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=hn(a,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?j0(s,l,n):Q0(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;w(M_,function(n){var a=function(i){var o=e.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&fn(s,function(d){var p=$(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=N({},p.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),v=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=i,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},e.trigger(n,l)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),w(yn,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),w(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),e_(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&sv(this.getDom(),Xs,"");var n=this,a=n._api,i=n._model;w(n._componentsViews,function(o){o.dispose(i,a)}),w(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete _n[n.id]},t.prototype.resize=function(e){if(!this[Ae]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[Oe]&&(i==null&&(i=this[Oe].silent),a=!0,this[Oe]=null),this[Ae]=!0;try{a&&hr(this),It.update.call(this,{type:"resize",animation:N({duration:0},e&&e.animation)})}catch(o){throw this[Ae]=!1,o}this[Ae]=!1,qr.call(this,i),jr.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(Y(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!Wo[e]){var a=Wo[e](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=N({},e);return n.type=yn[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(Y(n)||(n={silent:!!n}),!!Na[e.type]&&this._model){if(this[Ae]){this._pendingActions.push(e);return}var a=n.silent;Oi.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&fe.browser.weChat&&this._throttledZrFlush(),qr.call(this,a),jr.call(this,a)}},t.prototype.updateLabelLayout=function(){je.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){hr=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),Ri(c,!0),Ri(c,!1),h.plan()},Ri=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_h.get("hoverLayerThreshold")&&!fe.node&&!fe.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=c._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(c,h){if(!c.preventAutoZ){var v=c.get("z")||0,d=c.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(c,h,v,d){var p=c.getTextContent(),g=c.getTextGuideLine(),m=c.isGroup;if(m)for(var y=c.childrenRef(),_=0;_0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Sr(m))return;if(m instanceof Se&&Im(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&a(m)}})}Gu=function(c){return new(function(h){V(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Ar(d,p),Ge(c)},v.prototype.leaveEmphasis=function(d,p){Ir(d,p),Ge(c)},v.prototype.enterBlur=function(d){ym(d),Ge(c)},v.prototype.leaveBlur=function(d){pv(d),Ge(c)},v.prototype.enterSelect=function(d){gv(d),Ge(c)},v.prototype.leaveSelect=function(d){mv(d),Ge(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v}(eh))(c)},Uh=function(c){function h(v,d){for(var p=0;p=0)){Uu.push(e);var i=Ah.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function qh(r,t){Wo[r]=t}function N_(r,t,e){var n=d_("registerMap");n&&n(r,t,e)}var B_=s0;sr(Us,E0);sr(oi,O0);sr(oi,N0);sr(Us,K0);sr(oi,q0);sr(Vh,v_);$h(rh);Kh(m_,Fy);qh("default",B0);ft({type:Qt,event:Qt,update:Qt},yt);ft({type:ga,event:ga,update:ga},yt);ft({type:dn,event:dn,update:dn},yt);ft({type:ma,event:ma,update:ma},yt);ft({type:pn,event:pn,update:pn},yt);Zh("light",Z0);Zh("dark",Ph);function Qr(r){return r==null?0:r.length||1}function Yu(r){return r}var Pn=function(){function r(t,e,n,a,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Yu,this._newKeyGetter=a||Yu,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),a[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(c>1)for(var v=0;v1)for(var s=0;s30}var Jr=Y,Mt=F,H_=typeof Int32Array>"u"?Array:Int32Array,U_="e\0\0",Xu=-1,Y_=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],X_=["_approximateExtent"],Zu,na,en,tn,Vi,aa,zi,rd=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;Qh(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Ze;if(l&&!a.pure)for(var u=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),O(i)?i=i.slice():Jr(i)&&(i=N({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Jr(e)?N(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Jr(t)?N(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?N(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;lm(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){w(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Mt(this.dimensions,this._getDimInfo,this),this.hostModel)),Vi(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];X(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(sg(arguments)))})},r.internalField=function(){Zu=function(t){var e=t._invertedIndicesMap;w(e,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=e[a]=new H_(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),a[e]=l}}}(),r}();function nd(r,t){zs(r)||(r=nh(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=U(),i=[],o=$_(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&td(o),l=n===r.dimensionsDefine,u=l?ed(r):Jh(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=U(f),h=new dh(o),v=0;v0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function $_(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return w(t,function(i){var o;Y(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function K_(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var q_=function(){function r(t){this.coordSysDims=[],this.axisMap=U(),this.categoryAxisMap=U(),this.coordSysName=t}return r}();function j_(r){var t=r.get("coordinateSystem"),e=new q_(t),n=Q_[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var Q_={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",Re).models[0],i=r.getReferringComponents("yAxis",Re).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),dr(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),dr(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",Re).models[0];t.coordSysDims=["single"],e.set("single",a),dr(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",Re).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),dr(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),dr(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();w(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];e.set(f,u),dr(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function dr(r){return r.get("type")==="category"}function J_(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,o,s;eS(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,c,h;if(w(i,function(y,_){W(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;w(i,function(y){y.coordDim===v&&p++});var g={name:c,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,d),m.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function eS(r){return!Qh(r.schema)}function Rr(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function tS(r,t){return Rr(r,t)?r.getCalculationInfo("stackResultDimension"):t}function rS(r,t){var e=r.get("coordinateSystem"),n=Vs.get(e),a;return t&&t.coordSysDims&&(a=F(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Ho(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function nS(r,t,e){var n,a;return e&&w(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function si(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;a=n.getSource(),i=a.sourceFormat===Ze;var o=j_(t),s=rS(t,o),l=e.useEncodeDefaulter,u=X(l)?l:l?J(qv,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=nd(a,f),h=nS(c.dimensions,e.createInvertedIndices,o),v=i?null:n.getSharedDataStore(c),d=J_(t,{schema:c,store:v}),p=new rd(c,t);p.setCalculationInfo(d);var g=h!=null&&aS(a)?function(m,y,_,S){return S===h?_:this.defaultDimValueGetter(m,y,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:v,null,g),p}function aS(r){if(r.sourceFormat===Ze){var t=iS(r.data||[]);return!O(Fn(t))}}function iS(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Wa(ct);var oS=0,Uo=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++oS}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&F(n,sS);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!W(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=U(this.categories))},r}();function sS(r){return Y(r)&&r.value!=null?r.value:r+""}function Yo(r){return r.type==="interval"||r.type==="log"}function lS(r,t,e,n){var a={},i=r[1]-r[0],o=a.interval=ev(i/t);e!=null&&on&&(o=a.interval=n);var s=a.intervalPrecision=ad(o),l=a.niceTickExtent=[_e(Math.ceil(r[0]/o)*o,s),_e(Math.floor(r[1]/o)*o,s)];return uS(l,r),a}function Fi(r){var t=Math.pow(10,ps(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,_e(e*t)}function ad(r){return pt(r)+2}function $u(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function uS(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),$u(r,0,t),$u(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function li(r,t){return r>=t[0]&&r<=t[1]}function ui(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function fi(r,t){return r*(t[1]-t[0])+t[0]}var Ks=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Uo({})),O(a)&&(a=new Uo({categories:F(a,function(i){return Y(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:W(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),li(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),ui(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(fi(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(ct);ct.registerClass(Ks);var $t=_e,Fr=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return li(e,this._extent)},t.prototype.normalize=function(e){return ui(e,this._extent)},t.prototype.scale=function(e){return fi(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=ad(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]l)return[];var f=s.length?s[s.length-1].value:i[1];return a[1]>f&&(e?s.push({value:$t(f+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&v0&&(i=i===null?s:Math.min(i,s))}e[n]=i}}return e}function sd(r){var t=vS(r),e=[];return w(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=te(n.get("barWidth"),s),p=te(n.get("barMaxWidth"),s),g=te(n.get("barMinWidth")||(cd(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:js(i),stackId:qs(n)})}),hS(e)}function hS(r){var t={};w(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return w(t,function(n,a){e[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Fe(i).length;s=Math.max(35-l*4,15)+"%"}var u=te(s,o),f=te(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),w(i,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var S=m.width;y&&(S=Math.min(S,y)),_&&(S=Math.max(S,_)),m.width=S,c-=S+f*S,h--}else{var S=v;y&&yS&&(S=_),S!==v&&(m.width=S,c-=S+f*S,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,p;w(i,function(m,y){m.width||(m.width=v),p=m,d+=m.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;w(i,function(m,y){e[a][y]=e[a][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+f)})}),e}function dS(r,t,e){if(r&&t){var n=r[js(t)];return n!=null&&e!=null?n[qs(e)]:n}}function ld(r,t){var e=od(r,t),n=sd(e);w(e,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=qs(a),u=n[js(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function ud(r){return{seriesType:r,plan:Un(),reset:function(t){if(fd(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(a.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),c=Rr(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=pS(a,i),d=cd(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),m=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&at(b*3),C=d&&l&&at(b*3),T=d&&at(b),D=n.master.getRect(),A=h?D.width:D.height,I,M=S.getStore(),L=0;(I=_.next())!=null;){var P=M.get(c?g:o,I),R=M.get(s,I),B=v,H=void 0;c&&(H=+P-M.get(o,I));var k=void 0,E=void 0,z=void 0,G=void 0;if(h){var Z=n.dataToPoint([P,R]);if(c){var j=n.dataToPoint([H,R]);B=j[0]}k=B,E=Z[1]+y,z=Z[0]-B,G=m,Math.abs(z)0?e:1:e))}var gS=function(r,t,e,n){for(;e>>1;r[a][1]a&&(this._approxInterval=a);var s=ia.length,l=Math.min(gS(ia,this._approxInterval,0,s),s-1);this._interval=ia[l][1],this._minLevelUnit=ia[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return ue(e)?e:+_t(e)},t.prototype.contain=function(e){return li(this.parse(e),this._extent)},t.prototype.normalize=function(e){return ui(this.parse(e),this._extent)},t.prototype.scale=function(e){return fi(e,this._extent)},t.type="time",t}(Fr),ia=[["second",Ps],["minute",Rs],["hour",gn],["quarter-day",gn*6],["half-day",gn*12],["day",Ue*1.2],["half-week",Ue*3.5],["week",Ue*7],["month",Ue*31],["quarter",Ue*95],["half-year",Xl/2],["year",Xl]];function mS(r,t,e,n){var a=_t(t),i=_t(e),o=function(d){return $l(a,d,n)===$l(i,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},h=function(){return c()&&o("second")},v=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return h();case"millisecond":return v()}}function yS(r,t){return r/=Ue,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function _S(r){var t=30*Ue;return r/=t,r>6?6:r>3?3:r>2?2:1}function SS(r){return r/=gn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Ku(r,t){return r/=t?Rs:Ps,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function xS(r){return ev(r)}function bS(r,t,e){var n=new Date(r);switch(br(t)){case"year":case"month":n[Bv(e)](0);case"day":n[Vv(e)](1);case"hour":n[zv(e)](0);case"minute":n[Fv(e)](0);case"second":n[Gv(e)](0),n[Wv(e)](0)}return n.getTime()}function wS(r,t,e,n){var a=1e4,i=Ov,o=0;function s(A,I,M,L,P,R,B){for(var H=new Date(I),k=I,E=H[L]();k1&&R===0&&M.unshift({value:M[0].value-k})}}for(var R=0;R=n[0]&&y<=n[1]&&c++)}var _=(n[1]-n[0])/t;if(c>_*1.5&&h>_/1.5||(u.push(g),c>_||r===i[v]))break}f=[]}}}for(var S=be(F(u,function(A){return be(A,function(I){return I.value>=n[0]&&I.value<=n[1]&&!I.notAdd})}),function(A){return A.length>0}),b=[],x=S.length-1,v=0;v0;)i*=10;var s=[_e(DS(n[0]/i)*i),_e(TS(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Sn.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=qe(e)/qe(this.base),li(e,this._extent)},t.prototype.normalize=function(e){return e=qe(e)/qe(this.base),ui(e,this._extent)},t.prototype.scale=function(e){return e=fi(e,this._extent),oa(this.base,e)},t.type="log",t}(ct),hd=Qs.prototype;hd.getMinorTicks=Sn.getMinorTicks;hd.getLabel=Sn.getLabel;function sa(r,t){return CS(r,pt(t))}ct.registerClass(Qs);var AS=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},r.prototype.modifyDataMinMax=function(t,e){this[MS[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=IS[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),IS={min:"_determinedMin",max:"_determinedMax"},MS={min:"_dataMin",max:"_dataMax"};function dd(r,t,e){var n=r.rawExtentInfo;return n||(n=new AS(r,t,e),r.rawExtentInfo=n,n)}function la(r,t){return t==null?null:_o(t)?NaN:r.parse(t)}function pd(r,t){var e=r.type,n=dd(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&e==="time"){var s=od("bar",o),l=!1;if(w(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=sd(s),f=LS(a,i,t,u);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function LS(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],o=dS(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;w(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;w(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,c=1-(s+l)/i,h=f/c-f;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function ju(r,t){var e=t,n=pd(r,e),a=n.extent,i=e.get("splitNumber");r instanceof Qs&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function PS(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Ks({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new vd({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(ct.getClass(t)||Fr)}}function RS(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function Gr(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):W(t)?function(n){return function(a){var i=r.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(t):X(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n(Js(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function Js(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function kS(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof Ks?a=e.count():(n=e.getTicks(),a=n.length);var o=r.getLabelModel(),s=Gr(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;fr[1]&&(r[1]=a[1])})}var NS=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),Qu=[],BS={registerPreprocessor:$h,registerProcessor:Kh,registerPostInit:R_,registerPostUpdate:k_,registerUpdateLifecycle:Zs,registerAction:ft,registerCoordinateSystem:E_,registerLayout:O_,registerVisual:sr,registerTransform:B_,registerLoading:qh,registerMap:N_,registerImpl:h_,PRIORITY:D_,ComponentModel:ee,ComponentView:Ne,SeriesModel:ze,ChartView:ke,registerComponentModel:function(r){ee.registerClass(r)},registerComponentView:function(r){Ne.registerClass(r)},registerSeriesModel:function(r){ze.registerClass(r)},registerChartView:function(r){ke.registerClass(r)},registerSubTypeDefaulter:function(r,t){ee.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){lg(r,t)}};function St(r){if(O(r)){w(r,function(t){St(t)});return}le(Qu,r)>=0||(Qu.push(r),X(r)&&(r={install:r}),r.install(BS))}var Rn=se();function yd(r,t){var e=F(t,function(n){return r.scale.parse(n)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function VS(r){var t=r.getLabelModel().get("customValues");if(t){var e=Gr(r);return{labels:yd(r,t).map(function(n){var a={value:n};return{formattedLabel:e(a),rawLabel:r.scale.getLabel(a),tickValue:n}})}}return r.type==="category"?FS(r):WS(r)}function zS(r,t){var e=r.getTickModel().get("customValues");return e?{ticks:yd(r,e)}:r.type==="category"?GS(r,t):{ticks:F(r.scale.getTicks(),function(n){return n.value})}}function FS(r){var t=r.getLabelModel(),e=_d(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function _d(r,t){var e=Sd(r,"labels"),n=el(t),a=xd(e,n);if(a)return a;var i,o;return X(n)?i=Cd(r,n):(o=n==="auto"?HS(r):n,i=wd(r,o)),bd(e,n,{labels:i,labelCategoryInterval:o})}function GS(r,t){var e=Sd(r,"ticks"),n=el(t),a=xd(e,n);if(a)return a;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),X(n))i=Cd(r,n,!0);else if(n==="auto"){var s=_d(r,r.getLabelModel());o=s.labelCategoryInterval,i=F(s.labels,function(l){return l.tickValue})}else o=n,i=wd(r,o,!0);return bd(e,n,{ticks:i,tickCategoryInterval:o})}function WS(r){var t=r.scale.getTicks(),e=Gr(r);return{labels:F(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function Sd(r,t){return Rn(r)[t]||(Rn(r)[t]=[])}function xd(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),h=0,v=0;l<=i[1];l+=s){var d=0,p=0,g=ds(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var m=h/f,y=v/c;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),S=Rn(r.model),b=r.getExtent(),x=S.lastAutoInterval,C=S.lastTickCount;return x!=null&&C!=null&&Math.abs(x-_)<=1&&Math.abs(C-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function YS(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function wd(r,t,e){var n=Gr(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=gd(r),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(g){var m={value:g};s.push(e?g:{formattedLabel:n(m),rawLabel:a.getLabel(m),tickValue:g})}return s}function Cd(r,t,e){var n=r.scale,a=Gr(r),i=[];return w(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Ju=[0,1],XS=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Qc(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),ef(n,a.count())),Ot(t,Ju,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),ef(n,a.count()));var i=Ot(t,n,Ju,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=zS(this,e),a=n.ticks,i=F(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return ZS(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),a=F(n,function(i){return F(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return VS(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return US(this)},r}();function ef(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function ZS(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;w(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var c=i[0]>i[1];h(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&h(i[0],t[0].coord)&&t.unshift({coord:i[0]}),h(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&h(o.coord,i[1])&&t.push({coord:i[1]});function h(v,d){return v=_e(v),d=_e(d),c?v>d:va&&(a+=rn);var v=Math.atan2(s,o);if(v<0&&(v+=rn),v>=n&&v<=a||v+rn>=n&&v+rn<=a)return l[0]=f,l[1]=c,u-e;var d=e*Math.cos(n)+r,p=e*Math.sin(n)+t,g=e*Math.cos(a)+r,m=e*Math.sin(a)+t,y=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function Va(r,t,e,n,a,i,o,s){var l=a-r,u=i-t,f=e-r,c=n-t,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*f,g=o[1]=t+d*c;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function Td(r,t,e,n,a,i,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(a,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var Qe=[];function jS(r,t,e){var n=Td(t.x,t.y,t.width,t.height,r.x,r.y,Qe);return e.set(Qe[0],Qe[1]),n}function QS(r,t,e){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=t.data,c=r.x,h=r.y,v=0;v0){t=t/180*Math.PI,et.fromArray(r[0]),ae.fromArray(r[1]),ve.fromArray(r[2]),we.sub(it,et,ae),we.sub(rt,ve,ae);var e=it.len(),n=rt.len();if(!(e<.001||n<.001)){it.scale(1/e),rt.scale(1/n);var a=it.dot(rt),i=Math.cos(t);if(i1&&we.copy(Pe,ve),Pe.toArray(r[1])}}}}function JS(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,et.fromArray(r[0]),ae.fromArray(r[1]),ve.fromArray(r[2]),we.sub(it,ae,et),we.sub(rt,ve,ae);var n=it.len(),a=rt.len();if(!(n<.001||a<.001)){it.scale(1/n),rt.scale(1/a);var i=it.dot(t),o=Math.cos(e);if(i=l)we.copy(Pe,ve);else{Pe.scaleAndAdd(rt,s/Math.tan(Math.PI/2-f));var c=ve.x!==ae.x?(Pe.x-ae.x)/(ve.x-ae.x):(Pe.y-ae.y)/(ve.y-ae.y);if(isNaN(c))return;c<0?we.copy(Pe,ae):c>1&&we.copy(Pe,ve)}Pe.toArray(r[1])}}}}function Gi(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function ex(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var a=xl(n[0],n[1]),i=xl(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*e,s=gi([],n[1],n[0],o/a),l=gi([],n[1],n[2],o/i),u=gi([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f0&&i&&b(-f/o,0,o);var p=r[0],g=r[o-1],m,y;_(),m<0&&x(-m,.8),y<0&&x(y,.8),_(),S(m,y,1),S(y,m,-1),_(),m<0&&C(-m),y<0&&C(y);function _(){m=p.rect[t]-n,y=a-g.rect[t]-g.rect[e]}function S(T,D,A){if(T<0){var I=Math.min(D,-T);if(I>0){b(I*A,0,o);var M=I+T;M<0&&x(-M*A,1)}else x(-T*A,1)}}function b(T,D,A){T!==0&&(u=!0);for(var I=D;I0)for(var M=0;M0;M--){var B=A[M-1]*R;b(-B,M,o)}}}function C(T){var D=T<0?-1:1;T=Math.abs(T);for(var A=Math.ceil(T/(o-1)),I=0;I0?b(A,0,I+1):b(-A,o-I-1,o),T-=A,T<=0)return}return u}function tx(r,t,e,n){return Ld(r,"x","width",t,e,n)}function Pd(r,t,e,n){return Ld(r,"y","height",t,e,n)}function Rd(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new Ye(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var a=0;a=0&&n.attr(i.oldLayoutSelect),le(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),me(n,u,e,l)}else if(n.attr(u),!Vr(n).valueAnimation){var c=ie(n.style.opacity,1);n.style.opacity=0,De(n,{style:{opacity:c}},e,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};ua(v,u,fa),ua(v,n.states.select,fa)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};ua(d,u,fa),ua(d,n.states.emphasis,fa)}Hm(n,l,f,e,e)}if(a&&!a.ignore&&!a.invisible){var i=ax(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),me(a,{shape:p},e)):(a.setShape(p),a.style.strokePercent=0,De(a,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}(),Hi=se();function X1(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=Hi(e).labelManager;a||(a=Hi(e).labelManager=new ix),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=Hi(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var ox=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(ee),Xo=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Re).models[0]},t.type="cartesian2dAxis",t}(ee);xt(Xo,NS);var kd={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},sx=q({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},kd),tl=q({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},kd),lx=q({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},tl),ux=re({logBase:10},tl);const fx={category:sx,value:tl,time:lx,log:ux};var cx={value:1,category:1,time:1,log:1};function nf(r,t,e,n){w(cx,function(a,i){var o=q(q({},fx[i],!0),n,!0),s=function(l){V(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=An(this),v=h?ni(f):{},d=c.getTheme();q(f,d.get(i+"Axis")),q(f,this.getDefaultOption()),f.type=af(f),h&&Lr(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Uo.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",af)}function af(r){return r.type||(r.data?"category":"value")}var vx=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return F(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),be(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}(),Zo=["x","y"];function of(r){return r.type==="interval"||r.type==="time"}var hx=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Zo,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!of(e)||!of(n))){var a=e.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-a[0]*f,v=o[1]-i[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=hs([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var a=this.dataToPoint(e),i=this.dataToPoint(n),o=this.getArea(),s=new Ye(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return tr(a,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(e[0]),u=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var a=[];if(this._invTransform)return tr(a,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=o.coordToData(o.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-e,o=Math.min(a[0],a[1])-e,s=Math.max(n[0],n[1])-i+e,l=Math.max(a[0],a[1])-o+e;return new Ye(i,o,s,l)},t}(vx),dx=function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(XS);function $o(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[c[2]-v,c[3]+v]:[c[0]-v,c[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[h[l]]:c[0],u==="x"?d[h[l]]:c[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Dr(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function sf(r){return r.get("coordinateSystem")==="cartesian2d"}function lf(r){var t={xAxisModel:null,yAxisModel:null};return w(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,Re).models[0];t[n]=i}),t}var Ui=Math.log;function px(r,t,e){var n=Fr.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),o=a.length-1,s=n.getInterval.call(e),l=pd(r,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(r.type==="log"){var h=Ui(r.base);u=[Ui(u[0])/h,Ui(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var v=n.getExtent.call(r);f&&(u[0]=v[0]),c&&(u[1]=v[1]);var d=n.getInterval.call(r),p=u[0],g=u[1];if(f&&c)d=(g-p)/o;else if(f)for(g=u[0]+d*o;gu[0]&&isFinite(p)&&isFinite(u[0]);)d=Fi(d),p=u[1]-d*o;else{var m=r.getTicks().length-1;m>o&&(d=Fi(d));var y=d*o;g=Math.ceil(u[1]/d)*d,p=_e(g-y),p<0&&u[0]>=0?(p=0,g=_e(y)):g>0&&u[1]<=0&&(g=0,p=-_e(y))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;n.setExtent.call(r,p+d*_,g+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,g-d)}var gx=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Zo,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=Fe(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,p=v.scale;Yo(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(ju(p,d),Yo(p)&&(s=v))}f.length&&(s||(s=f.pop(),ju(s.scale,s.model)),w(f,function(g){px(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};w(n.x,function(o){uf(n,"y",o,i)}),w(n.y,function(o){uf(n,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=Gt(a,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(w(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=kS(u);if(f){var c=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+h,u.position==="top"?o.y+=f.height+h:u.position==="left"&&(o.x+=f.width+h)}}}),l()),w(this._coordsList,function(u){u.calcAffineTransform()});function l(){w(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(c[h],c[1-h]),mx(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}Y(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):Ia(a-Nt)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),cf={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(tr(s,s,o),tr(l,l,o));var f=N({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new er({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Tn(c.shape,c.style.lineWidth),c.anid="line",e.add(c);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);W(h)&&(h=[h,h]),(W(v)||ue(v))&&(v=[v,v]);var d=Hs(t.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];w([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(h[y]!=="none"&&h[y]!=null){var _=Wt(h[y],-p/2,-g/2,p,g,f.stroke,!0),S=m.r+m.offset,b=u?l:s;_.attr({rotation:m.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var a=Sx(e,n,t,r),i=bx(e,n,t,r);if(_x(t,i,a),xx(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Md(F(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Rd(o)}},axisName:function(r,t,e,n){var a=Dr(r.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,hf(i)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Nt/180);var d;hf(i)?h=Vt.innerTextLayout(r.rotation,v??r.rotation,o):(h=yx(r.rotation,i,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=Dr(r.nameTruncateMaxWidth,g.maxWidth,d),_=new Ce({x:c[0],y:c[1],rotation:h.rotation,silent:Vt.isLabelSilent(t),style:Ft(s,{text:a,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Ka({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=Vt.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,$(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function yx(r,t,e,n){var a=Jc(e-r),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Ia(a-Nt/2)?(o=l?"bottom":"top",i="center"):Ia(a-Nt*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",aNt/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function _x(r,t,e){if(!gd(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],c=e[e.length-1],h=e[e.length-2];n===!1?(We(i),We(u)):vf(i,o)&&(n?(We(o),We(f)):(We(i),We(u))),a===!1?(We(s),We(c)):vf(l,s)&&(a?(We(l),We(h)):(We(s),We(c)))}}function We(r){r&&(r.ignore=!0)}function vf(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=Yc([]);return qc(a,a,-r.rotation),e.applyTransform(go([],a,r.getLocalTransform())),n.applyTransform(go([],a,t.getLocalTransform())),e.intersect(n)}}function hf(r){return r==="middle"||r==="center"}function Ed(r,t,e,n,a){for(var i=[],o=[],s=[],l=0;l=0||r===t}function Ix(r){var t=rl(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=Ko(e);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),os)return!0;if(o){var l=rl(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var o=jt(t).pointerEl=new As[i.type](gf(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=jt(t).labelEl=new Ce(gf(e.label));t.add(i),yf(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=jt(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=jt(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),yf(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=$a(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){cg(u.event)},onmousedown:Zi(this._onHandleDragMove,this,0,0),drift:Zi(this._onHandleDragMove,this),ondragend:Zi(this._onHandleDragEnd,this)}),n.add(a)),_f(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");O(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Ch(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){mf(this._axisPointerModel,!e&&this._moveAnimation,this._handle,$i(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform($i(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr($i(a)),jt(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),No(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function mf(r,t,e,n){zd(jt(e).lastProp,n)||(jt(e).lastProp=n,t?me(e,n,r):(e.stopAnimation(),e.attr(n)))}function zd(r,t){if(Y(r)&&Y(t)){var e=!0;return w(t,function(n,a){e=e&&zd(r[a],n)}),!!e}else return r===t}function yf(r,t){r[t.get(["label","show"])?"show":"hide"]()}function $i(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function _f(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}function Vx(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function zx(r,t,e,n,a){var i=e.get("value"),o=Fd(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=ri(s.get("padding")||0),u=s.getFont(),f=ds(o,u),c=a.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=a.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=a.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),Fx(c,h,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Ft(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function Fx(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Fd(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:Js(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};w(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),W(o)?i=o.replace("{value}",i):X(o)&&(i=o(s))}return i}function Gd(r,t,e){var n=hg();return qc(n,n,e.rotation),vg(n,n,e.position),Ds([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function Gx(r,t,e,n,a,i){var o=Vt.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),zx(t,n,a,i,{position:Gd(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Wx(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function Hx(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var Ux=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=Sf(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=Vx(i),v=Yx[u](s,c,f);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=$o(l.model,a);Gx(n,e,d,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=$o(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Gd(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Sf(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[e.x,e.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(Bx);function Sf(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var Yx={line:function(r,t,e){var n=Wx([t,e[0]],[t,e[1]],xf(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:Hx([t-n/2,e[0]],[n,a],xf(r))}}};function xf(r){return r.dim==="x"?0:1}var Xx=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(ee),gt=se(),Zx=w;function Wd(r,t,e){if(!fe.node){var n=t.getZr();gt(n).records||(gt(n).records={}),$x(n,t);var a=gt(n).records[r]||(gt(n).records[r]={});a.handler=e}}function $x(r,t){if(gt(r).initialized)return;gt(r).initialized=!0,e("click",J(bf,"click")),e("mousemove",J(bf,"mousemove")),e("globalout",qx);function e(n,a){r.on(n,function(i){var o=jx(t);Zx(gt(r).records,function(s){s&&a(s,i,o.dispatchAction)}),Kx(o.pendings,t)})}}function Kx(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function qx(r,t,e){r.handler("leave",null,e)}function bf(r,t,e,n){t.handler(r,e,n)}function jx(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function jo(r,t){if(!fe.node){var e=t.getZr(),n=(gt(e).records||{})[r];n&&(gt(e).records[r]=null)}}var Qx=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=n.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Wd("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){jo("axisPointer",n)},t.prototype.dispose=function(e,n){jo("axisPointer",n)},t.type="axisPointer",t}(Ne);function Hd(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=rr(i,r);if(o==null||o<0||O(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(F(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var wf=se();function Jx(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||oe(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Ca(a)&&(a=Hd({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Ca(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||Ca(a),h={},v={},d={list:[],map:{}},p={showPointer:J(tb,v),showTooltip:J(rb,d)};w(s.coordSysMap,function(m,y){var _=l||m.containPoint(a);w(s.coordSysAxesInfo[y],function(S,b){var x=S.axis,C=ob(u,S);if(!c&&_&&(!u||C)){var T=C&&C.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&Cf(S,T,p,!1,h)}})});var g={};return w(f,function(m,y){var _=m.linkGroup;_&&!v[y]&&w(_.axesInfo,function(S,b){var x=v[b];if(S!==m&&x){var C=x.value;_.mapper&&(C=m.axis.scale.parse(_.mapper(C,Tf(S),Tf(m)))),g[m.key]=C}})}),w(g,function(m,y){Cf(f[y],m,p,!0,h)}),nb(v,f,h),ab(d,a,r,o),ib(f,o,e),h}}function Cf(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=eb(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&N(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function eb(r,t){var e=t.axis,n=e.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return w(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);h=v.dataIndices,c=v.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=r-c,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,a=c,i.length=0),w(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function tb(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function rb(r,t,e,n){var a=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=kn(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function nb(r,t,e){var n=e.axesInfo=[];w(t,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function ab(r,t,e,n){if(Ca(t)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function ib(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=wf(n)[a]||{},o=wf(n)[a]={};w(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&w(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];w(i,function(u,f){!o[f]&&l.push(u)}),w(o,function(u,f){!i[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function ob(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Tf(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function Ca(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Ud(r){Od.registerAxisPointerClass("CartesianAxisPointer",Ux),r.registerComponentModel(Xx),r.registerComponentView(Qx),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!O(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=wx(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Jx)}function Z1(r){St(Vd),St(Ud)}var Df="\0_ec_interaction_mutex";function sb(r,t,e){var n=Yd(r);n[t]=e}function lb(r,t,e){var n=Yd(r),a=n[t];a===e&&(n[t]=null)}function Yd(r){return r[Df]||(r[Df]={})}ft({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},yt);var ub={axisPointer:1,tooltip:1,brush:1};function fb(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!ub.hasOwnProperty(n.mainType)&&a&&a.model!==e}function Xd(r,t,e,n,a,i){r=r||0;var o=e[1]-e[0];if(a!=null&&(a=pr(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=pr(s,[0,o]),a=i=pr(s,[a,i]),n=0}t[0]=pr(t[0],e),t[1]=pr(t[1],e);var l=Ki(t,n);t[n]+=r;var u=a||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=pr(t[n],f);var c;return c=Ki(t,n),a!=null&&(c.sign!==l.sign||c.spani&&(t[1-n]=t[n]+c.sign*i),t}function Ki(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function pr(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var ar=!0,En=Math.min,kr=Math.max,cb=Math.pow,vb=1e4,hb=6,db=6,Af="globalPan",pb={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},gb={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},If={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},mb=0,yb=function(r){V(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new ge,n._uid="brushController_"+mb++,w(Tb,function(a,i){this._handlers[i]=oe(a,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||sb(n,Af,this._uid),w(this._handlers,function(a,i){n.on(i,a)}),this._brushType=e.brushType,this._brushOption=q(K(If),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;lb(e,Af,this._uid),w(this._handlers,function(n,a){e.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};w(e,function(a){n[a.panelId]=K(a)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=F(e,function(h){return q(K(If),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Pn(a,e,u,l).add(f).update(f).remove(c).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function f(h,v){var d=e[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var p=i[h]=v!=null?(a[v].__brushOption=d,a[v]):$d(o,Zd(o,d));nl(o,p)}}function c(h){a[h]!==s&&o.group.remove(a[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),Qo(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(zn);function Zd(r,t){var e=ci[t.brushType].createCover(r,t);return e.__brushOption=t,qd(e,t),r.group.add(e),e}function $d(r,t){var e=al(t);return e.endCreating&&(e.endCreating(r,t),qd(t,t.__brushOption)),t}function Kd(r,t){var e=t.__brushOption;al(t).updateCoverShape(r,t,e.range,e)}function qd(r,t){var e=t.z;e==null&&(e=vb),r.traverse(function(n){n.z=e,n.z2=e})}function nl(r,t){al(t).updateCommon(r,t),Kd(r,t)}function al(r){return ci[r.__brushOption.brushType]}function il(r,t,e){var n=r._panels;if(!n)return ar;var a,i=r._transform;return w(n,function(o){o.isTargetByCursor(t,e,i)&&(a=o)}),a}function jd(r,t){var e=r._panels;if(!e)return ar;var n=t.__brushOption.panelId;return n!=null?e[n]:ar}function Qo(r){var t=r._covers,e=t.length;return w(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function ir(r,t){var e=F(r._covers,function(n){var a=n.__brushOption,i=K(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function _b(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],a=e[0]-n[0],i=e[1]-n[1],o=cb(a*a+i*i,.5);return o>hb}function Qd(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function Jd(r,t,e,n){var a=new ge;return a.add(new he({name:"main",style:ol(e),silent:!0,draggable:!0,cursor:"move",drift:J(Mf,r,t,a,["n","s","w","e"]),ondragend:J(ir,t,{isEnd:!0})})),w(n,function(i){a.add(new he({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:J(Mf,r,t,a,i),ondragend:J(ir,t,{isEnd:!0})}))}),a}function ep(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=kr(a,db),o=e[0][0],s=e[1][0],l=o-a/2,u=s-a/2,f=e[0][1],c=e[1][1],h=f-i+a/2,v=c-i+a/2,d=f-o,p=c-s,g=d+a,m=p+a;dt(r,t,"main",o,s,d,p),n.transformable&&(dt(r,t,"w",l,u,i,m),dt(r,t,"e",h,u,i,m),dt(r,t,"n",l,u,g,i),dt(r,t,"s",l,v,g,i),dt(r,t,"nw",l,u,i,i),dt(r,t,"ne",h,u,i,i),dt(r,t,"sw",l,v,i,i),dt(r,t,"se",h,v,i,i))}function Jo(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(ol(e)),a.attr({silent:!n,cursor:n?"move":"default"}),w([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?es(r,i[0]):xb(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?gb[s]+"-resize":null})})}function dt(r,t,e,n,a,i,o){var s=t.childOfName(e);s&&s.setShape(wb(sl(r,t,[[n,a],[n+i,a+o]])))}function ol(r){return re({strokeNoScale:!0},r.brushStyle)}function tp(r,t,e,n){var a=[En(r,e),En(t,n)],i=[kr(r,e),kr(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function Sb(r){return Ts(r.group)}function es(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Tv(e[t],Sb(r));return n[a]}function xb(r,t){var e=[es(r,t[0]),es(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Mf(r,t,e,n,a,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=rp(t,a,i);w(n,function(u){var f=pb[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(tp(s[0][0],s[1][0],s[0][1],s[1][1])),nl(t,e),ir(t,{isEnd:!1})}function bb(r,t,e,n){var a=t.__brushOption.range,i=rp(r,e,n);w(a,function(o){o[0]+=i[0],o[1]+=i[1]}),nl(r,t),ir(r,{isEnd:!1})}function rp(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function sl(r,t,e){var n=jd(r,t);return n&&n!==ar?n.clipPath(e,r._transform):K(e)}function wb(r){var t=En(r[0][0],r[1][0]),e=En(r[0][1],r[1][1]),n=kr(r[0][0],r[1][0]),a=kr(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function Cb(r,t,e){if(!(!r._brushType||Db(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=il(r,t,e);if(!r._dragging)for(var o=0;on.getWidth()||e<0||e>n.getHeight()}var ci={lineX:Rf(0),lineY:Rf(1),rect:{createCover:function(r,t){function e(n){return n}return Jd({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=Qd(r);return tp(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){ep(r,t,e,n)},updateCommon:Jo,contain:rs},polygon:{createCover:function(r,t){var e=new ge;return e.add(new Bn({name:"main",style:ol(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new cs({name:"main",draggable:!0,drift:J(bb,r,t),ondragend:J(ir,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:sl(r,t,e)})},updateCommon:Jo,contain:rs}};function Rf(r){return{createCover:function(t,e){return Jd({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=Qd(t),n=En(e[0][r],e[1][r]),a=kr(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,o=jd(t,e);if(o!==ar&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),ep(t,e,l,a)},updateCommon:Jo,contain:rs}}function Ab(r){return r=ll(r),function(t){return Av(t,r)}}function Ib(r,t){return r=ll(r),function(e){var n=t??e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function Mb(r,t,e){var n=ll(r);return function(a,i){return n.contain(i[0],i[1])&&!fb(a,t,e)}}function ll(r){return Ye.create(r)}var kf=["x","y","radius","angle","single"],Lb=["cartesian2d","polar","singleAxis"];function Pb(r){var t=r.get("coordinateSystem");return le(Lb,t)>=0}function _r(r){return r+"Axis"}function Rb(r,t){var e=U(),n=[],a=U();r.eachComponent({mainType:"dataZoom",query:t},function(f){a.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var d=e.get(h);d&&d[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(e.get(c)||e.set(c,[]))[h]=!0})}return n}var qi=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),kb=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,a){var i=Ef(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=Ef(e);q(this.option,e,!0),q(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=U(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return w(kf,function(a){var i=this.getReferringComponents(_r(a),$g);if(i.specified){n=!0;var o=new qi;w(i.models,function(s){o.add(s.componentIndex)}),e.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var c=u[0];if(c){var h=new qi;if(h.add(c.componentIndex),e.set(f,h),i=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",Re).models[0];v&&w(u,function(d){c.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Re).models[0]&&h.add(d.componentIndex)})}}}i&&w(kf,function(u){if(i){var f=a.findComponents({mainType:_r(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new qi;c.add(f[0].componentIndex),e.set(u,c),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,a=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(_r(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){w(a.indexList,function(o){e.call(n,i,o)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(_r(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;w(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(d=!0),b&&(p=!0)}return g&&d&&p})}else yr(f,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});yr(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;yr(["min","max"],function(a){var i=e.get(a+"Span"),o=e.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Ot(n[0]+o,n,[0,100],!0):i!=null&&(o=Ot(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var a=Qc(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function Vb(r,t,e){var n=[1/0,-1/0];yr(e,function(o){OS(n,o.getData(),t)});var a=r.getAxisModel(),i=dd(a.axis.scale,a,n).calculate();return[i.min,i.max]}var zb={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(_r(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Bb(a,i,s,r),e.push(o.__dzAxisProxy))});var n=U();return w(e,function(a){w(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function Fb(r){r.registerAction("dataZoom",function(t,e){var n=Rb(e,t);w(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Nf=!1;function Gb(r){Nf||(Nf=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,zb),Fb(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Wb(r){r.registerComponentModel(Eb),r.registerComponentView(Nb),Gb(r)}var Je=function(){function r(){}return r}(),ap={};function nn(r,t){ap[r]=t}function ip(r){return ap[r]}var Hb=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;w(this.option.feature,function(n,a){var i=ip(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),q(n,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(ee);function Ub(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=Gt(n,i,a);Cr(t.get("orient"),r,t.get("itemGap"),o.width,o.height),fy(r,n,i,a)}function op(r,t){var e=ri(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new he({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var Yb=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},f=this._features||(this._features={}),c=[];w(u,function(d,p){c.push(p)}),new Pn(this._featureNames||[],c).add(h).update(h).remove(J(h,null)).execute(),this._featureNames=c;function h(d,p){var g=c[d],m=c[p],y=u[g],_=new ce(y,e,e.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(y.title=i.newTitle),g&&!m){if(Xb(g))S={onclick:_.option.onclick,featureName:g};else{var b=ip(g);if(!b)return;S=new b}f[g]=S}else if(S=f[m],!S)return;S.uid=Hn("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var x=S instanceof Je;if(!g&&m){x&&S.dispose&&S.dispose(n,a);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,a);return}v(_,S,g),_.setIconStatus=function(C,T){var D=this.option,A=this.iconPaths;D.iconStatus=D.iconStatus||{},D.iconStatus[C]=T,A[C]&&(T==="emphasis"?Ar:Ir)(A[C])},S instanceof Je&&S.render&&S.render(_,n,a,i)}function v(d,p,g){var m=d.getModel("iconStyle"),y=d.getModel(["emphasis","iconStyle"]),_=p instanceof Je&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},b,x;W(_)?(b={},b[g]=_):b=_,W(S)?(x={},x[g]=S):x=S;var C=d.iconPaths={};w(b,function(T,D){var A=$a(T,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(m.getItemStyle());var I=A.ensureState("emphasis");I.style=y.getItemStyle();var M=new Ce({style:{text:x[D],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:Lv({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},n)},ignore:!0});A.setTextContent(M),Ka({el:A,componentModel:e,itemName:D,formatterParamsExtra:{title:x[D]}}),A.__title=x[D],A.on("mouseover",function(){var L=y.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";M.setStyle({fill:y.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),A.setTextConfig({position:y.get("textPosition")||P}),M.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",D])!=="emphasis"&&a.leaveEmphasis(this),M.hide()}),(d.get(["iconStatus",D])==="emphasis"?Ar:Ir)(A),o.add(A),A.on("click",oe(p.onclick,p,n,a,D)),C[D]=A})}Ub(o,e,a),o.add(op(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=d.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!X(_)&&p){var S=_.style||(_.style={}),b=ds(p,Ce.makeFont(S)),x=d.x+o.x,C=d.y+o.y+s,T=!1;C+b.height>a.getHeight()&&(m.position="top",T=!0);var D=T?-5-b.height:s+10;x+b.width/2>a.getWidth()?(m.position=["100%",D],S.align="right"):x-b.width/2<0&&(m.position=[0,D],S.align="left")}})},t.prototype.updateView=function(e,n,a,i){w(this._features,function(o){o instanceof Je&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(e,n){w(this._features,function(a){a instanceof Je&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){w(this._features,function(a){a instanceof Je&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(Ne);function Xb(r){return r.indexOf("my")===0}var Zb=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=fe.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,m=new Uint8Array(g);g--;)m[g]=d.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=a.get("lang"),C='',T=window.open();T.document.write(C),T.document.title=i}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Je),Bf="__ec_magicType_stack__",$b=[["line","bar"],["stack"]],Kb=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),a={};return w(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(Vf[a]){var s={series:[]},l=function(c){var h=c.subType,v=c.id,d=Vf[a](h,v,c,i);d&&(re(d,c.option),s.series.push(d));var p=c.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",_=c.getReferringComponents(y,Re).models[0],S=_.componentIndex;s[y]=s[y]||[];for(var b=0;b<=S;b++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=a==="bar"}}};w($b,function(c){le(c,a)>=0&&w(c,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=q({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Je),Vf={line:function(r,t,e,n){if(r==="bar")return q({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return q({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var a=e.get("stack")===Bf;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),q({id:t,stack:a?"":Bf},n.get(["option","stack"])||{},!0)}};ft({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var vi=new Array(60).join("-"),Er=" ";function qb(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function jb(r){var t=[];return w(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(F(e.series,function(v){return v.name})),l=[a.model.getCategories()];w(e.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Er)],f=0;f=0)return!0}var ns=new RegExp("["+Er+"]+","g");function tw(r){for(var t=r.split(/\n+/g),e=Fa(t.shift()).split(ns),n=[],a=F(e,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=e[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();e[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),e.push(t)}function sw(r){var t=ul(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return sp(e,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function lw(r){lp(r).snapshots=null}function uw(r){return ul(r).length}function ul(r){var t=lp(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var fw=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){lw(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Je);ft({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var cw=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],up=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=zf(e,t);w(vw,function(o,s){(!n||!n.include||le(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=ji[n.brushType](0,i,a);n.__rangeOffset={offset:Hf[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){w(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&w(i.coordSyses,function(o){var s=ji[a.brushType](1,o,a.range,!0);n(a,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){w(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=ji[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?Hf[n.brushType](i.values,o.offset,hw(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return F(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:Ab(a),isTargetByCursor:Mb(a,t,n.coordSysModel),getLinearBrushOtherExtent:Ib(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&le(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=zf(e,t),i=0;ir[1]&&r.reverse(),r}function zf(r,t){return hn(r,t,{includeMainTypes:cw})}var vw={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=U(),o={},s={};!e&&!n&&!a||(w(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),w(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),w(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];w(u.getCartesians(),function(c,h){(le(e,c.getAxis("x").model)>=0||le(n,c.getAxis("y").model)>=0)&&f.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:Gf.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){w(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:Gf.geo})})}},Ff=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],Gf={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Ts(r)),t}},ji={lineX:J(Wf,0),lineY:J(Wf,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[as([a[0],i[0]]),as([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=F(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function Wf(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=as(F([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var Hf={lineX:J(Uf,0),lineY:J(Uf,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return F(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function Uf(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function hw(r,t){var e=Yf(r),n=Yf(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function Yf(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var is=w,dw=Ug("toolbox-dataZoom_"),pw=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new yb(a.getZr()),this._brushController.on("brush",oe(this._onBrush,this)).mount()),yw(e,n,this,i,a),mw(e,n)},t.prototype.onclick=function(e,n,a){gw[a].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new up(fl(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,f,c){if(c.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",c,f[0]),s("y",c,f[1])):s({lineX:"x",lineY:"y"}[h],c,f)}}),ow(i,a),this._dispatchZoomAction(a);function s(u,f,c){var h=f.getAxis(u),v=h.model,d=l(u,v,i),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(c=Xd(0,c.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(a[d.id]={dataZoomId:d.id,startValue:c[0],endValue:c[1]})}function l(u,f,c){var h;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,f.componentIndex);d&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(e){var n=[];is(e,function(a,i){n.push(K(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Je),gw={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(sw(this.ecModel))}};function fl(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function mw(r,t){r.setIconStatus("back",uw(t)>1?"emphasis":"normal")}function yw(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new up(fl(r),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}yy("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=fl(n),o=hn(r,i);is(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),is(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:dw+u+c};h[f]=c,a.push(h)}return a});function $1(r){r.registerComponentModel(Hb),r.registerComponentView(Yb),nn("saveAsImage",Zb),nn("magicType",Kb),nn("dataView",aw),nn("dataZoom",pw),nn("restore",fw),St(Wb)}var _w=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(ee);function fp(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function cp(r){if(fe.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+a,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-c)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function Dw(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=fe.transformSupported?","+cl+n:",left"+n+",top"+n),bw+":"+a}function Xf(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!fe.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=fe.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+cl+":"+o+";":[["top",0],["left",0],[vp,o]]}function Aw(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),w(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function Iw(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),c=bh(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&a&&n.push(Dw(a,e)),i&&n.push("background-color:"+i),w(["width","color","radius"],function(v){var d="border-"+v,p=Uv(d),g=r.get(p);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(Aw(f)),c!=null&&n.push("padding:"+ri(c).join("px ")+"px"),n.join(";")+";"}function Zf(r,t,e,n,a){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&pg(r,o,e,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Mw=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,fe.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=e.appendTo,o=i&&(W(i)?document.querySelector(i):So(i)?i:X(i)&&i(t.getDom()));Zf(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();dg(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=xw(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=ww+Iw(t,!this._firstShow,this._longHide)+Xf(i[0],i[1],!0)+("border-color:"+nr(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(W(i)&&n.get("trigger")==="item"&&!fp(n)&&(s=Tw(n,a,i)),W(t))o.innerHTML=t+s;else if(t){o.innerHTML="",O(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(e,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||fe.node||!a.getDom())){var o=qf(i,a);this._ticket="";var s=i.dataByCoordSys,l=Nw(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=Pw;f.x=i.x,f.y=i.y,f.update(),$(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var c=Hd(i,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(qf(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=an([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(a){var s=$(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;fn(a,function(f){if($(f).dataIndex!=null)return l=f,!0;if($(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(e,l,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=oe(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=an([n.tooltipOption],i),l=this._renderMode,u=[],f=Mn("section",{blocks:[],noHeader:!0}),c=[],h=new Ii;w(e,function(y){w(y.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=Fd(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),C=Mn("section",{header:x,noHeader:!Vn(x),sortBlocks:!0,blocks:[]});f.blocks.push(C),w(_.seriesDataIndices,function(T){var D=a.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,I=D.getDataParams(A);if(!(I.dataIndex<0)){I.axisDim=_.axisDim,I.axisIndex=_.axisIndex,I.axisType=_.axisType,I.axisId=_.axisId,I.axisValue=Js(S.axis,{value:b}),I.axisValueLabel=x,I.marker=h.makeTooltipMarker("item",nr(I.color),l);var M=pu(D.formatTooltip(A,!0,null)),L=M.frag;if(L){var P=an([D],i).get("valueFormatter");C.blocks.push(P?N({valueFormatter:P},L):L)}M.text&&c.push(M.text),u.push(I)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),p=xu(f,h,l,d,a.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?` - -`:"
",m=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,o=$(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=e.positionDefault,p=an([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,c),y=new Ii;m.marker=y.makeTooltipMarker("item",nr(m.color),v);var _=pu(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,C=x?xu(b?N({valueFormatter:b},x):x,y,v,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,C,m,T,e.offsetX,e.offsetY,e.position,e.target,y)}),a({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=this._renderMode==="html",o=$(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(W(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=K(l),l.content=Be(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var v=e.positionDefault,d=an(c,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",m=new Ii;this._showOrMove(d,function(){var y=K(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,e.offsetX,e.offsetY,e.position,n,m)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=n,d=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor")),p=d.color;if(h)if(W(h)){var g=e.ecModel.get("useUTC"),m=O(a)?a[0]:a,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=ja(m.axisValue,v,g)),v=Yv(v,a,!0)}else if(X(h)){var _=oe(function(S,b){S===this._ticket&&(c.setContent(b,f,e,p,l),this._updatePosition(e,l,o,s,c,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;c.setContent(v,f,e,p,l),c.show(e,p),this._updatePosition(e,l,o,s,c,a,u)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||O(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!O(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var c=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),X(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),O(n))a=te(n[0],u),i=te(n[1],f);else if(Y(n)){var p=n;p.width=c[0],p.height=c[1];var g=Gt(p,{width:u,height:f});a=g.x,i=g.y,h=null,v=null}else if(W(n)&&l){var m=Ow(n,d,c,e.get("borderWidth"));a=m[0],i=m[1]}else{var m=kw(a,i,o,u,f,h?null:20,v?null:20);a=m[0],i=m[1]}if(h&&(a-=jf(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=jf(v)?c[1]/2:v==="bottom"?c[1]:0),fp(e)){var m=Ew(a,i,o,u,f);a=m[0],i=m[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===e.length;return o&&w(a,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&w(u,function(h,v){var d=c[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&w(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&w(h.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=i[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){fe.node||!n.getDom()||(No(this,"_updatePosition"),this._tooltipContent.dispose(),jo("itemTooltip",n))},t.type="tooltip",t}(Ne);function an(r,t,e){var n=t.ecModel,a;e?(a=new ce(e,n,n),a=new ce(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof ce&&(o=o.get("tooltip",!0)),W(o)&&(o={formatter:o}),o&&(a=new ce(o,a,n)))}return a}function qf(r,t){return r.dispatchAction||oe(t.dispatchAction,t)}function kw(r,t,e,n,a,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[r,t]}function Ew(r,t,e,n,a){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,a)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function Ow(r,t,e,n){var a=e[0],i=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-a/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+f+o;break;case"left":s=t.x-a-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function jf(r){return r==="center"||r==="middle"}function Nw(r,t,e){var n=ms(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Gn(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=$(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function K1(r){St(Ud),r.registerComponentModel(_w),r.registerComponentView(Rw),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},yt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},yt)}var Bw=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(ee),Vw=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=ie(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Ce({style:Ft(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=e.get("subtext"),v=new Ce({style:Ft(s,{text:h,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!p&&!g,d&&f.on("click",function(){ql(d,"_"+e.get("target"))}),p&&v.on("click",function(){ql(p,"_"+e.get("subtarget"))}),$(f).eventData=$(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),h&&i.add(v);var m=i.getBoundingRect(),y=e.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Gt(y,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),m=i.getBoundingRect();var b=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var C=new he({shape:{x:m.x-b[3],y:m.y-b[0],width:m.width+b[1]+b[3],height:m.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(Ne);function q1(r){r.registerComponentModel(Bw),r.registerComponentView(Vw)}function hi(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Pr(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o=0&&n.push(t[i])}return n.join(" ")}var vl=function(r){V(t,r);function t(e,n,a,i){var o=r.call(this)||this;return o.updateData(e,n,a,i),o}return t.prototype._createSymbol=function(e,n,a,i,o){this.removeAll();var s=Wt(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=zw,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ar(this.childAt(0))},t.prototype.downplay=function(){Ir(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,c)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(v):me(h,v,s,n),Za(h)}if(this._updateCommon(e,n,l,a,i),u){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,De(h,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,o){var s=this.childAt(0),l=e.hostModel,u,f,c,h,v,d,p,g,m;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,m=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Br(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Hs(e.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),m&&s.attr("cursor",m);var x=e.getItemVisual(n,"style"),C=x.fill;if(s instanceof Or){var T=s.style;s.useStyle(N({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(N({},x)):s.useStyle(x),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=e.getItemVisual(n,"liftZ"),A=this._z2;D!=null?A==null&&(this._z2=s.z2,s.z2+=D):A!=null&&(s.z2=A,this._z2=null);var I=o&&o.useNameLabel;Nr(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:M,inheritColor:C,defaultOpacity:x.opacity});function M(R){return I?e.getName(R):hi(e,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Mr(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),o=$(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Cn(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Cn(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return u_(e.getItemVisual(n,"symbolSize"))},t}(ge);function zw(r,t){this.parent.drift(r,t)}function Qi(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Qf(r){return r!=null&&!Y(r)&&(r={isIgnore:r}),r||{}}function Jf(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Br(t),cursorStyle:t.get("cursor")}}var pp=function(){function r(t){this.group=new ge,this._SymbolCtor=t||vl}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Qf(e);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Jf(t),u={disableAnimation:s},f=e.getSymbolPoint||function(c){return t.getItemLayout(c)};i||n.removeAll(),t.diff(i).add(function(c){var h=f(c);if(Qi(t,h,c,e)){var v=new o(t,c,l,u);v.setPosition(h),t.setItemGraphicEl(c,v),n.add(v)}}).update(function(c,h){var v=i.getItemGraphicEl(h),d=f(c);if(!Qi(t,d,c,e)){n.remove(v);return}var p=t.getItemVisual(c,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)n.remove(v),v=new o(t,c,l,u),v.setPosition(d);else{v.updateData(t,c,l,u);var m={x:d[0],y:d[1]};s?v.attr(m):me(v,m,a)}n.add(v),t.setItemGraphicEl(c,v)}).remove(function(c){var h=i.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Jf(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=Qf(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(ee),gr=J,ss=w,ca=ge,gp=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new ca),this.group.add(this._selectorGroup=new ca),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,a,l,s,u);var f=e.getBoxLayoutParams(),c={width:a.getWidth(),height:a.getHeight()},h=e.get("padding"),v=Gt(f,c,h),d=this.layoutInner(e,o,v,i,l,u),p=Gt(re({width:d.width,height:d.height},f),c,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=op(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this.getContentGroup(),f=U(),c=n.get("selectedMode"),h=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),ss(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===` -`)){var g=new ca;g.newline=!0,u.add(g);return}var m=a.getSeriesByName(p)[0];if(!f.get(p))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),b=y.getVisual("style"),x=this._createItem(m,p,d,v,n,e,_,b,S,c,i);x.on("click",gr(ec,p,null,i,h)).on("mouseover",gr(ls,m.name,null,i,h)).on("mouseout",gr(us,m.name,null,i,h)),a.ssr&&x.eachChild(function(C){var T=$(C);T.seriesIndex=m.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),f.set(p,!0)}else a.eachRawSeries(function(C){if(!f.get(p)&&C.legendVisualProvider){var T=C.legendVisualProvider;if(!T.containName(p))return;var D=T.indexOfName(p),A=T.getItemVisual(D,"style"),I=T.getItemVisual(D,"legendIcon"),M=gg(A.fill);M&&M[3]===0&&(M[3]=.2,A=N(N({},A),{fill:mg(M,"rgba")}));var L=this._createItem(C,p,d,v,n,e,{},A,I,c,i);L.on("click",gr(ec,null,p,i,h)).on("mouseover",gr(ls,null,p,i,h)).on("mouseout",gr(us,null,p,i,h)),a.ssr&&L.eachChild(function(P){var R=$(P);R.seriesIndex=C.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(e,n,a,i,o){var s=this.getSelectorGroup();ss(e,function(u){var f=u.type,c=new Ce({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Nr(c,{normal:h,emphasis:v},{defaultText:u.title}),Co(c)})},t.prototype._createItem=function(e,n,a,i,o,s,l,u,f,c,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=Gw(f,i,l,u,v,g,h),b=new ca,x=i.getModel("textStyle");if(X(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var C=_==="inherit"&&e.getData().getVisual("symbol")?m==="inherit"?e.getData().getVisual("symbolRotate"):m:0;b.add(Ww({itemWidth:d,itemHeight:p,icon:f,iconRotate:C,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,D=s,A=o.get("formatter"),I=n;W(A)&&A?I=A.replace("{name}",n??""):X(A)&&(I=A(n));var M=g?x.getTextColor():i.get("inactiveColor");b.add(new Ce({style:Ft(x,{text:I,x:T,y:p/2,fill:M,align:D,verticalAlign:"middle"},{inheritColor:M})}));var L=new he({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&Ka({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(R){R.silent=!0}),L.silent=!c,this.getContentGroup().add(b),Co(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Cr(e.get("orient"),l,e.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Cr("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:c[p]+=h[g]+d,v[1-p]+=f[m]/2-h[m]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+h[g],_[m]=Math.max(f[m],h[m]),_[y]=Math.min(0,h[y]+v[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ne);function Gw(r,t,e,n,a,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),ss(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:zo(c,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:e).opacity),s(u,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function Ww(r){var t=r.icon||"roundRect",e=Wt(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function ec(r,t,e,n){us(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),ls(r,t,e,n)}function mp(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;na[o],g=[-v.x,-v.y];n||(g[i]=f[u]);var m=[0,0],y=[-d.x,-d.y],_=ie(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?y[i]+=a[o]-d[o]:m[i]+=d[o]+_}y[1-i]+=v[s]/2-d[s]/2,f.setPosition(g),c.setPosition(m),h.setPosition(y);var b={x:0,y:0};if(b[o]=p?a[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+y[1-i]),c.__rectSize=a[o],p){var x={x:0,y:0};x[o]=Math.max(a[o]-d[o]-_,0),x[s]=b[s],c.setClipPath(new he({shape:x})),c.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&me(f,{x:C.contentPosition[0],y:C.contentPosition[1]},p?e:null),this._updatePageInfoView(e,C),b},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;w(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",W(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=Ji[o],l=eo[o],u=this._findTargetItemIndex(n),f=a.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=h;++g)_=S(f[g]),(!_&&y.e>m.s+i||_&&!b(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(y,_.s))&&m.i=C&&x.s<=C+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(n=s)}),n??i},t.type="legend.scroll",t}(gp);function Zw(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function $w(r){St(yp),r.registerComponentModel(Yw),r.registerComponentView(Xw),Zw(r)}function j1(r){St(yp),St($w)}var Kw={label:{enabled:!0},decal:{show:!1}},nc=se(),qw={};function jw(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=K(Kw);q(n.label,r.getLocaleModel().get("aria"),!1),q(e.option,n,!1),a(),i();function a(){var u=e.getModel("decal"),f=u.get("show");if(f){var c=U();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=c.get(h.type);v||(v={},c.set(h.type,v)),nc(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(X(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var y=Ql(h.ecModel,h.name,qw,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,y))}else{var d=h.getRawData(),p={},g=nc(h).scope;v.each(function(b){var x=v.getRawIndex(b);p[x]=b});var m=d.count();d.each(function(b){var x=p[b],C=d.getName(b)||b+"",T=Ql(h.ecModel,C,g,m),D=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(D,T))})}function S(b,x){var C=b?N(N({},x),b):x;return C.dirty=!0,C}})}}function i(){var u=t.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=re(c.option,f),!!c.get("enabled")){if(c.get("description")){u.setAttribute("aria-label",c.get("description"));return}var h=r.getSeriesCount(),v=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,p=Math.min(h,d),g;if(!(h<1)){var m=s();if(m){var y=c.get(["general","withTitle"]);g=o(y,{title:m})}else g=c.get(["general","withoutTitle"]);var _=[],S=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:h}),r.eachSeries(function(T,D){if(D1?c.get(["series","multiple",M]):c.get(["series","single",M]),A=o(A,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>v){var P=c.get(["data","partialData"]);A+=o(P,{displayCnt:v})}else A+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),B=c.get(["data","separator","end"]),H=[],k=0;k":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Jw=function(){function r(t){var e=this._condVal=W(t)?new RegExp(t):yg(t)?t:null;if(e==null){var n="";Q(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return W(e)?this._condVal.test(t):ue(e)?this._condVal.test(t+""):!1},r}(),eC=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),tC=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(ze);function Sp(r,t,e){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=dC(a,e),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=F(r.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return Rr(t,c[0])&&(h=!0,c[0]=v),Rr(t,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function dC(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:ue(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function xp(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function pC(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function gC(r,t,e,n,a,i,o,s){for(var l=pC(r,t),u=[],f=[],c=[],h=[],v=[],d=[],p=[],g=Sp(a,t,o),m=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=a||p<0)break;if(Jt(m,y)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](m,y),c=m,h=y;else{var _=m-u,S=y-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],C=t[b*2+1];x===m&&C===y&&g=n||Jt(x,C))v=m,d=y;else{A=x-u,I=C-f;var P=m-u,R=x-m,B=y-f,H=C-y,k=void 0,E=void 0;if(s==="x"){k=Math.abs(P),E=Math.abs(R);var z=A>0?1:-1;v=m-z*k*o,d=y,M=m+z*E*o,L=y}else if(s==="y"){k=Math.abs(B),E=Math.abs(H);var G=I>0?1:-1;v=m,d=y-G*k*o,M=m,L=y+G*E*o}else k=Math.sqrt(P*P+B*B),E=Math.sqrt(R*R+H*H),D=E/(E+k),v=m-A*o*(1-D),d=y-I*o*(1-D),M=m+A*o*D,L=y+I*o*D,M=Lt(M,Pt(x,m)),L=Lt(L,Pt(C,y)),M=Pt(M,Lt(x,m)),L=Pt(L,Lt(C,y)),A=M-m,I=L-y,v=m-A*k/E,d=y-I*k/E,v=Lt(v,Pt(u,m)),d=Lt(d,Pt(f,y)),v=Pt(v,Lt(u,m)),d=Pt(d,Lt(f,y)),A=m-v,I=y-d,M=m+A*E/k,L=y+I*E/k}r.bezierCurveTo(c,h,v,d,m,y),c=M,h=L}else r.lineTo(m,y)}u=m,f=y,p+=i}return g}var bp=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),mC=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new bp},t.prototype.buildPath=function(e,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Jt(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=i[c++],d=i[c++],p=i[c++],g=i[c++],m=i[c++],y=i[c++];var b=u?wl(s,v,p,m,e,f):wl(l,d,g,y,e,f);if(b>0)for(var x=0;x=0){var S=u?Cl(l,d,g,y,C):Cl(s,v,p,m,C);return u?[e,S]:[S,e]}}s=m,l=y;break}}},t}(Se),yC=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(bp),_C=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new yC},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Jt(a[s*2-2],a[s*2-1]);s--);for(;ot){i?e.push(o(i,l,t)):a&&e.push(o(a,l,0),o(a,l,t));break}else a&&(e.push(o(a,l,0)),a=null),e.push(l),i=l}return e}function bC(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=F(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=xC(u,a==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=h[0].coord-d,g=h[v-1].coord+d,m=g-p;if(m<.001)return"transparent";w(h,function(_){_.offset=(_.coord-p)/m}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var y=new Zc(0,0,0,0,h,!0);return y[a]=p,y[a+"2"]=g,y}}}function wC(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&CC(i,t))){var o=t.mapDimension(i.dim),s={};return w(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function CC(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;on)return!1;return!0}function TC(r,t){return isNaN(r)||isNaN(t)}function DC(r){for(var t=r.length/2;t>0&&TC(r[t*2-2],r[t*2-1]);t--);return t-1}function fc(r,t){return[r[t*2],r[t*2+1]]}function AC(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function Tp(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var z=p.getState("emphasis").style;z.lineWidth=+p.style.lineWidth+1}$(p).seriesIndex=e.seriesIndex,Mr(p,H,k,E);var G=uc(e.get("smooth")),Z=e.get("smoothMonotone");if(p.setShape({smooth:G,smoothMonotone:Z,connectNulls:T}),g){var j=l.getCalculationInfo("stackedOnSeries"),ne=0;g.useStyle(re(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),j&&(ne=uc(j.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:ne,smoothMonotone:Z,connectNulls:T}),wn(g,e,"areaStyle"),$(g).seriesIndex=e.seriesIndex,Mr(g,H,k,E)}var xe=function(ye){i._changePolyState(ye)};l.eachItemGraphicEl(function(ye){ye&&(ye.onHoverStateChange=xe)}),this._polyline.onHoverStateChange=xe,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=c,this._step=I,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,p),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,n){$(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var o=e.getData(),s=rr(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=e.get("zlevel")||0,v=e.get("z")||0;u=new vl(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ke.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var o=e.getData(),s=rr(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ke.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;Rl(this._polyline,e),n&&Rl(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new mC({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new _C({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");X(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=X(c)?c(null):c;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(a)if(o){var S=a,b=n.pointToCoord(g);i?(m=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(m=S.r0,y=S.r,_=b[0])}else{var x=a;i?(m=x.x,y=x.x+x.width,_=v.x):(m=x.y+x.height,y=x.y,_=v.y)}var C=y===m?0:(_-m)/(y-m);l&&(C=1-C);var T=X(c)?c(d):f*C+h,D=p.getSymbolPath(),A=D.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(Tp(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ce({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=DC(l);f>=0&&(Nr(s,Br(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?dp(o,v):hi(o,c)},enableTextSetter:!0},IC(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=a.getLayout("points"),h=a.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=n.shape,S=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,b=(m?p:0)*(y?-1:1),x=(m?0:-p)*(y?-1:1),C=m?"x":"y",T=AC(c,S,C),D=T.range,A=D[1]-D[0],I=void 0;if(A>=1){if(A>1&&!v){var M=fc(c,D[0]);u.attr({x:M[0]+b,y:M[1]+x}),o&&(I=h.getRawValue(D[0]))}else{var M=f.getPointOn(S,C);M&&u.attr({x:M[0]+b,y:M[1]+x});var L=h.getRawValue(D[0]),P=h.getRawValue(D[1]);o&&(I=lv(a,d,L,P,T.t))}i.lastFrameIndex=D[0]}else{var R=e===1||i.lastFrameIndex>0?D[0]:0,M=fc(c,R);o&&(I=h.getRawValue(R)),u.attr({x:M[0]+b,y:M[1]+x})}if(o){var B=Vr(u);typeof B.setLabelText=="function"&&B.setLabelText(I)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,h=gC(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(v=Rt(h.current,a,o,l),d=Rt(h.stackedOnCurrent,a,o,l),p=Rt(h.next,a,o,l),g=Rt(h.stackedOnNext,a,o,l)),lc(v,p)>3e3||f&&lc(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var m={shape:{points:p}};h.current!==v&&(m.shape.__points=h.next),u.stopAnimation(),me(u,m,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),me(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&y.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var C=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;et&&(t=i,e=a)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},PC=function(r){return Math.round(r.length/2)};function Dp(r){return{seriesType:r,reset:function(t,e,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v));var d=void 0;W(i)?d=LC[i]:X(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,d,PC))}}}}}function tT(r){r.registerChartView(MC),r.registerSeriesModel(hC),r.registerLayout(gl("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Dp("line"))}var On=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return si(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(a)w(i.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),g=o[v],m=n[v]==="x1"||n[v]==="y1";if(m&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,S=1,b=0;bg){_=(x+y)/2;break}b===1&&(S=C-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(ze);ze.registerClass(On);var RC=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return si(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Is(On.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(On),kC=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),cc=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new kC},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?c-fMath.PI/2&&fs)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(this._isOrderChangedWithinSameData(e,n,a)){var o=this._dataSort(e,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){La(i,e,$(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(ke),vc={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,i=r.y+r.height,o=ro(t.x,r.x),s=no(t.x+t.width,a),l=ro(t.y,r.y),u=no(t.y+t.height,i),f=sa?s:o,t.y=c&&l>i?u:l,t.width=f?0:s-o,t.height=c?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var a=no(t.r,r.r),i=ro(t.r0,r.r0);t.r=a,t.r0=i;var o=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},hc={cartesian2d:function(r,t,e,n,a,i,o,s,l){var u=new he({shape:N({},n),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,c=a?"height":"width";f[c]=0}return u},polar:function(r,t,e,n,a,i,o,s,l){var u=!a&&l?cc:or,f=new u({shape:n,z2:1});f.name="item";var c=Ap(a);if(f.calculateTextPosition=EC(c,{isRoundCap:u===cc}),i){var h=f.shape,v=a?"r":"endAngle",d={};h[v]=a?n.r0:n.startAngle,d[v]=n[v],(s?me:De)(f,{shape:d},i)}return f}};function VC(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function dc(r,t,e,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?me:De)(e,{shape:l},t,a,null);var f=t?r.baseAxis.model:null;(o?me:De)(e,{shape:u},f,a)}function pc(r,t){for(var e=0;e0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function GC(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Ap(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function mc(r,t,e,n,a,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var f=r.shape,c=cn(n.getModel("itemStyle"),f,!0);N(f,c),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",d=Br(n);Nr(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:hi(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,OC(r,g==="outside"?v:g,Ap(o),n.get(["label","rotate"]))}Wm(p,d,i.getRawValue(e),function(y){return dp(t,y)});var m=n.getModel(["emphasis"]);Mr(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),wn(r,n),GC(a)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function WC(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var HC=function(){function r(){}return r}(),yc=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new HC},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?e:null},30,!1);function UC(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=i.length/3;f=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function Ip(r,t,e){if(hl(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function YC(r,t,e){var n=r.type==="polar"?or:he;return new n({shape:Ip(t,e,r),silent:!0,z2:0})}function rT(r){r.registerChartView(BC),r.registerSeriesModel(RC),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,J(ld,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ud("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Dp("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var xc=Math.PI*2,pa=Math.PI/180;function Mp(r,t){return Gt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Lp(r,t){var e=Mp(r,t),n=r.get("center"),a=r.get("radius");O(a)||(a=[0,a]);var i=te(e.width,t.getWidth()),o=te(e.height,t.getHeight()),s=Math.min(i,o),l=te(a[0],s/2),u=te(a[1],s/2),f,c,h=r.coordinateSystem;if(h){var v=h.dataToPoint(n);f=v[0]||0,c=v[1]||0}else O(n)||(n=[n,n]),f=te(n[0],i)+e.x,c=te(n[1],o)+e.y;return{cx:f,cy:c,r0:l,r:u}}function XC(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=Mp(n,e),s=Lp(n,e),l=s.cx,u=s.cy,f=s.r,c=s.r0,h=-n.get("startAngle")*pa,v=n.get("endAngle"),d=n.get("padAngle")*pa;v=v==="auto"?h-xc:-v*pa;var p=n.get("minAngle")*pa,g=p+d,m=0;a.each(i,function(H){!isNaN(H)&&m++});var y=a.getSum(i),_=Math.PI/(y||m)*2,S=n.get("clockwise"),b=n.get("roseType"),x=n.get("stillShowZeroSum"),C=a.getDataExtent(i);C[0]=0;var T=S?1:-1,D=[h,v],A=T*d/2;Sg(D,!S),h=D[0],v=D[1];var I=Pp(n);I.startAngle=h,I.endAngle=v,I.clockwise=S;var M=Math.abs(v-h),L=M,P=0,R=h;if(a.setLayout({viewRect:o,r:f}),a.each(i,function(H,k){var E;if(isNaN(H)){a.setItemLayout(k,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:c,r:b?NaN:f});return}b!=="area"?E=y===0&&x?_:H*_:E=M/m,EE?(G=R+T*E/2,Z=G):(G=R+A,Z=z-A),a.setItemLayout(k,{angle:E,startAngle:G,endAngle:Z,clockwise:S,cx:l,cy:u,r0:c,r:b?Ot(H,C,[c,f]):f}),R=z}),Le?m:g,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*a,C=n+_.len,T=Math.abs(x)r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var p=n.getBoundingRect();i.width=p.width;var g=(n.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-c)/2}}}function ao(r){return r.position==="center"}function qC(r){var t=r.getData(),e=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*$C,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var C in x.states)if(x.states[C].ignore===!1)return!0;return!1}t.each(function(x){var C=t.getItemGraphicEl(x),T=C.shape,D=C.getTextContent(),A=C.getTextGuideLine(),I=t.getItemModel(x),M=I.getModel("label"),L=M.get("position")||I.get(["emphasis","label","position"]),P=M.get("distanceToLabelLine"),R=M.get("alignTo"),B=te(M.get("edgeDistance"),u),H=M.get("bleedMargin"),k=I.getModel("labelLine"),E=k.get("length");E=te(E,u);var z=k.get("length2");if(z=te(z,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":Z>0?"left":"right"}var Tt=Math.PI,vt=0,Ur=M.get("rotate");if(ue(Ur))vt=Ur*(Tt/180);else if(L==="center")vt=0;else if(Ur==="radial"||Ur===!0){var Up=Z<0?-G+Tt:-G;vt=Up}else if(Ur==="tangential"&&L!=="outside"&&L!=="outer"){var lr=Math.atan2(Z,j);lr<0&&(lr=Tt*2+lr);var Yp=j>0;Yp&&(lr=Tt+lr),vt=lr-Tt}if(i=!!vt,D.x=ne,D.y=xe,D.rotation=vt,D.setStyle({verticalAlign:"middle"}),Ct){D.setStyle({align:wt});var di=D.states.select;di&&(di.x+=D.x,di.y+=D.y)}else{var Yr=D.getBoundingRect().clone();Yr.applyTransform(D.getComputedTransform());var yl=(D.style.margin||0)+2.1;Yr.y-=yl/2,Yr.height+=yl,e.push({label:D,labelLine:A,position:L,len:E,len2:z,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new we(Z,j),linePoints:ye,textAlign:wt,labelDistance:P,labelAlignTo:R,edgeDistance:B,bleedMargin:H,rect:Yr,unconstrainedWidth:Yr.width,labelStyleWidth:D.style.width})}C.setTextConfig({inside:Ct})}}),!i&&r.get("avoidLabelOverlap")&&KC(e,n,a,l,u,h,f,c);for(var p=0;p0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c=i.r0}},t.type="pie",t}(ke);function kp(r,t,e){t=O(t)&&{coordDimensions:t}||N({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=nd(n,t).dimensions,i=new rd(a,r);return i.initData(n,e),i}var JC=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}(),e1=se(),t1=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new JC(oe(this.getData,this),oe(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return kp(this,{coordDimensions:["value"],encodeDefaulter:J(gy,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=e1(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Rg(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){xo(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(ze);function r1(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(ue(o)&&!isNaN(o)&&o<0)})}}}function nT(r){r.registerChartView(QC),r.registerSeriesModel(t1),J0("pie",r.registerAction),r.registerLayout(J(XC,"pie")),r.registerProcessor(ZC("pie")),r.registerProcessor(r1("pie"))}var n1=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return si(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(ze),Ep=4,a1=function(){function r(){}return r}(),i1=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new a1},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]=0;u--){var f=u*2,c=i[f]-s/2,h=i[f+1]-l/2;if(e>=c&&n>=h&&e<=c+s&&n<=h+l)return u}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,c=-1/0,h=0;h=0&&(u.dataIndex=c+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),s1=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=gl("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var n=e.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new o1:new pp,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(ke);function aT(r){St(Vd),r.registerSeriesModel(n1),r.registerChartView(s1),r.registerLayout(gl("scatter"))}var l1=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],f=t.layout==="horizontal"?0:1,c=this._baseAxisDim=u[f],h=u[1-f],v=[a,i],d=v[f].get("type"),p=v[1-f].get("type"),g=t.data;if(g&&l){var m=[];w(g,function(S,b){var x;O(S)?(x=S.slice(),S.unshift(b)):O(S.value)?(x=N({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,m.push(x)}),t.data=m}var y=this.defaultValueDimensions,_=[{name:c,type:Ho(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Ho(p),dimsDef:y.slice()}];return kp(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:J(qv,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),u1=["color","borderColor"],f1=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){Wn(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(f){if(n.hasValue(f)){var c=n.getItemLayout(f);if(s&&wc(u,c))return;var h=io(c,f,!0);De(h,{shape:{points:c.ends}},e,f),oo(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}}).update(function(f,c){var h=a.getItemGraphicEl(c);if(!n.hasValue(f)){i.remove(h);return}var v=n.getItemLayout(f);if(s&&wc(u,v)){i.remove(h);return}h?(me(h,{shape:{points:v.ends}},e,f),Za(h)):h=io(v),oo(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}).remove(function(f){var c=a.getItemGraphicEl(f);c&&i.remove(c)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),Cc(e,this.group);var n=e.get("clip",!0)?pl(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=a.getItemLayout(o),l=io(s);oo(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,n){Cc(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(ke),c1=function(){function r(){}return r}(),v1=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new c1},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(Se);function io(r,t,e){var n=r.ends;return new v1({shape:{points:e?h1(n,r):n},z2:100})}function wc(r,t){for(var e=!0,n=0;n0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=e.get(["itemStyle","borderColorDoji"]));var i=e.getModel("itemStyle").getItemStyle(u1);t.useStyle(i),t.style.fill=null,t.style.stroke=a}var Op=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,a){var i=n.getItemLayout(e);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(ze);xt(Op,l1,!0);function p1(r){!r||!O(r.series)||w(r.series,function(t){Y(t)&&t.type==="k"&&(t.type="candlestick")})}var g1=["itemStyle","borderColor"],m1=["itemStyle","borderColor0"],y1=["itemStyle","borderColorDoji"],_1=["itemStyle","color"],S1=["itemStyle","color0"],x1={seriesType:"candlestick",plan:Un(),performRawSeries:!0,reset:function(r,t){function e(i,o){return o.get(i>0?_1:S1)}function n(i,o){return o.get(i===0?y1:i>0?g1:m1)}if(!t.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=e(u,l),f.stroke=n(u,l)||f.fill;var c=o.ensureUniqueItemVisual(s,"style");N(c,f)}}}}}},b1={seriesType:"candlestick",plan:Un(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=w1(r,e),a=0,i=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[a])),l=F(e.mapDimensionsAll(o[i]),e.getDimensionIndex,e),u=l[0],f=l[1],c=l[2],h=l[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(p,g){for(var m,y=g.getStore();(m=p.next())!=null;){var _=y.get(s,m),S=y.get(u,m),b=y.get(f,m),x=y.get(c,m),C=y.get(h,m),T=Math.min(S,b),D=Math.max(S,b),A=H(T,_),I=H(D,_),M=H(x,_),L=H(C,_),P=[];k(P,I,0),k(P,A,1),P.push(z(L),z(I),z(M),z(A));var R=g.getItemModel(m),B=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:Tc(y,m,S,b,f,B),initBaseline:S>b?I[i]:A[i],ends:P,brushRect:E(x,C,_)})}function H(G,Z){var j=[];return j[a]=Z,j[i]=G,isNaN(Z)||isNaN(G)?[NaN,NaN]:t.dataToPoint(j)}function k(G,Z,j){var ne=Z.slice(),xe=Z.slice();ne[a]=ya(ne[a]+n/2,1,!1),xe[a]=ya(xe[a]-n/2,1,!0),j?G.push(ne,xe):G.push(xe,ne)}function E(G,Z,j){var ne=H(G,j),xe=H(Z,j);return ne[a]-=n/2,xe[a]-=n/2,{x:ne[0],y:ne[1],width:n,height:xe[1]-ne[1]}}function z(G){return G[a]=ya(G[a],1),G}}function d(p,g){for(var m=at(p.count*4),y=0,_,S=[],b=[],x,C=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var D=C.get(s,x),A=C.get(u,x),I=C.get(f,x),M=C.get(c,x),L=C.get(h,x);if(isNaN(D)||isNaN(M)||isNaN(L)){m[y++]=NaN,y+=3;continue}m[y++]=Tc(C,x,A,I,f,T),S[a]=D,S[i]=M,_=t.dataToPoint(S,null,b),m[y++]=_?_[0]:NaN,m[y++]=_?_[1]:NaN,S[i]=L,_=t.dataToPoint(S,null,b),m[y++]=_?_[1]:NaN}g.setLayout("largePoints",m)}}};function Tc(r,t,e,n,a,i){var o;return e>n?o=-1:e0?r.get(a,t-1)<=n?1:-1:1,o}function w1(r,t){var e=r.getBaseAxis(),n,a=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=te(ie(r.get("barMaxWidth"),a),a),o=te(ie(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?te(s,a):Math.max(Math.min(a/2,i),o)}function iT(r){r.registerChartView(f1),r.registerSeriesModel(Op),r.registerPreprocessor(p1),r.registerVisual(x1),r.registerLayout(b1)}var C1=["itemStyle","borderWidth"],Dc=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],uo=new Ga,T1=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),c=l.master.getRect(),h={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:f,valueDim:Dc[+f],categoryDim:Dc[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=Ic(o,d),g=Ac(o,d,p,h),m=Mc(o,h,g);o.setItemGraphicEl(d,m),i.add(m),Pc(m,h,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var m=Ic(o,d),y=Ac(o,d,m,h),_=Gp(o,y);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?R1(g,h,y):g=Mc(o,h,y,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=y,i.add(g),Pc(g,h,y)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&Lc(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var v=e.get("clip",!0)?pl(e.coordinateSystem,!1,e):null;return v?i.setClipPath(v):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){Lc(i,$(o).dataIndex,e,o)}):a.removeAll()},t.type="pictorialBar",t}(ke);function Ac(r,t,e,n){var a=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=e.get("symbolPatternSize")||2,c=e.isAnimationEnabled(),h={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:c?e:null,hoverScale:c&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};D1(e,i,a,n,h),A1(r,t,a,i,o,h.boundingLength,h.pxSign,f,n,h),I1(e,h.symbolScale,u,n,h);var v=h.symbolSize,d=Hs(e.get("symbolOffset"),v);return M1(e,v,a,i,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function D1(r,t,e,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),f;if(O(o)){var c=[fo(s,o[0])-l,fo(s,o[1])-l];c[1]0?1:-1}function fo(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function A1(r,t,e,n,a,i,o,s,l,u){var f=l.valueDim,c=l.categoryDim,h=Math.abs(e[c.wh]),v=r.getItemVisual(t,"symbolSize"),d;O(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[c.index]=te(d[c.index],h),d[f.index]=te(d[f.index],n?h:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function I1(r,t,e,n,a){var i=r.get(C1)||0;i&&(uo.attr({scaleX:t[0],scaleY:t[1],rotation:e}),uo.updateTransform(),i/=uo.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function M1(r,t,e,n,a,i,o,s,l,u,f,c){var h=f.categoryDim,v=f.valueDim,d=c.pxSign,p=Math.max(t[v.index]+s,0),g=p;if(n){var m=Math.abs(l),y=Dr(r.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var S=te(y,t[v.index]),b=Math.max(p+S*2,0),x=_?0:S*2,C=tv(n),T=C?n:Rc((m+x)/b),D=m-T*p;S=D/2/(_?T:Math.max(T-1,1)),b=p+S*2,x=_?0:S*2,!C&&n!=="fixed"&&(T=u?Rc((Math.abs(u)+x)/b):0),g=T*b-x,c.repeatTimes=T,c.symbolMargin=S}var A=d*(g/2),I=c.pathPosition=[];I[h.index]=e[h.wh]/2,I[v.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(I[0]+=i[0],I[1]+=i[1]);var M=c.bundlePosition=[];M[h.index]=e[h.xy],M[v.index]=e[v.xy];var L=c.barRectShape=N({},e);L[v.wh]=d*Math.max(Math.abs(e[v.wh]),Math.abs(I[v.index]+A)),L[h.wh]=e[h.wh];var P=c.clipShape={};P[h.xy]=-e[h.xy],P[h.wh]=f.ecSize[h.wh],P[v.xy]=0,P[v.wh]=e[v.wh]}function Np(r){var t=r.symbolPatternSize,e=Wt(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function Bp(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,c=i[t.valueDim.index]+o+e.symbolMargin*2;for(ml(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f0:m<0)&&(y=u-1-p),g[l.index]=c*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function Vp(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Tr(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=Np(e),a.add(i),Tr(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function zp(r,t,e){var n=N({},t.barRectShape),a=r.__pictorialBarRect;a?Tr(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new he({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function Fp(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=N({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(a)me(a,{shape:i},s,l);else{i[o.wh]=0,a=new he({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=e.clipShape[o.wh],As[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function Ic(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=L1,e.isAnimationEnabled=P1,e}function L1(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function P1(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Mc(r,t,e,n){var a=new ge,i=new ge;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?Bp(a,t,e):Vp(a,t,e),zp(a,e,n),Fp(a,t,e,n),a.__pictorialShapeStr=Gp(r,e),a.__pictorialSymbolMeta=e,a}function R1(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;me(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?Bp(r,t,e,!0):Vp(r,t,e,!0),zp(r,e,!0),Fp(r,t,e,!0)}function Lc(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];ml(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),w(i,function(o){Cn(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function Gp(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function ml(r,t,e){w(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Tr(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&As[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function Pc(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=i.get("focus"),c=i.get("blurScope"),h=i.get("scale");ml(r,function(p){if(p instanceof Or){var g=p.style;p.useStyle(N({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var m=p.ensureState("emphasis");m.style=o,h&&(m.scaleX=p.scaleX*1.1,m.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var v=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Nr(d,Br(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:hi(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),Mr(r,f,c,i.get("disabled"))}function Rc(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var k1=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Is(On.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(On);function oT(r){r.registerChartView(T1),r.registerSeriesModel(k1),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,J(ld,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ud("pictorialBar"))}function kc(r){return O(r[0])}function Ec(r,t){for(var e=[],n=r.length,a=0;a=0;a--)if(!e[a].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[a].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var E1={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;kc(r)&&(u=r,f=t),kc(t)&&(u=t,f=r);function c(m,y,_,S,b){var x=m.many,C=m.one;if(x.length===1&&!b){var T=y?x[0]:C,D=y?C:x[0];if(bg(T))c({many:[T],one:D},!0,_,S,!0);else{var A=s?re({delay:s(_,S)},l):l;wg(T,D,A),i(T,D,T,D,A)}}else for(var I=re({dividePath:E1[e],individualDelay:s&&function(H,k,E,z){return s(H+_,S)}},l),M=y?Cg(x,C,I):Tg(C,x,I),L=M.fromIndividuals,P=M.toIndividuals,R=L.length,B=0;Bt.length,v=u?Ec(f,u):Ec(h?t:r,[h?r:t]),d=0,p=0;pWp))for(var i=n.getIndices(),o=0;o0&&x.group.traverse(function(T){T instanceof Se&&!T.animators.length&&T.animateFrom({style:{opacity:0}},C)})})}function zc(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Fc(r){return O(r)?r.sort().join(","):r}function Et(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function G1(r,t){var e=U(),n=U(),a=U();return w(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=zc(i),f=Fc(u);n.set(f,{dataGroupId:s,data:l}),O(u)&&w(u,function(c){a.set(c,{key:f,dataGroupId:s,data:l})})}),w(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=zc(i),u=Fc(l),f=n.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Et(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Et(s),data:s}]});else if(O(l)){var c=[];w(l,function(d){var p=n.get(d);p.data&&c.push({dataGroupId:p.dataGroupId,divide:Et(p.data),data:p.data})}),c.length&&e.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:Et(s)}]})}else{var h=a.get(l);if(h){var v=e.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Et(h.data)}],newSeries:[]},e.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Et(s)})}}}}),e}function Gc(r,t){for(var e=0;e=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Et(t.oldData[s]),groupIdDim:o.dimension})}),w(de(r.to),function(o){var s=Gc(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Et(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&Hp(a,i,n)}function sT(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){w(de(n.seriesTransition),function(a){w(de(a.to),function(i){for(var o=n.updatedSeries,s=0;si.map(i=>d[i]); -var so=Object.defineProperty;var io=(e,n,t)=>n in e?so(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var Ut=(e,n,t)=>io(e,typeof n!="symbol"?n+"":n,t);import{s as gt,c as tt,l as xt,v as pn,p as je,y as Ue,z as uo}from"./lodash-es@4.17.21-B-5kLwAl.js";import{z as $t,d as Kt,f as co,g as po,N as it,a as mo,b as fo,c as I,e as ut,m as go,h as mn,u as ho,S as Mt,i as vo,j as Me,k as yo,l as fn,n as Ve,o as bo,p as _o,q as ce,t as So,r as wo,s as gn,v as Co,w as hn,x as nt,y as Wt,A as vn,B as To,C as ko,D as Oo,E as le,F as Ao,G as qt,H as D,I as te,J as H,K as Ro,L as Et,M as yn,O as X,P as Po,Q as xo,R as Ge,T as Mo,U as Eo,V as Do,W as zo,X as Io,Y as bn,Z as Gt,_ as Lo}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import{o as Fo,u as Ne,a as Bo,b as jo,c as _n,d as Vo,e as ht,f as No}from"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import{s as ne,k as B,l as _e,e as re,n as Uo,x as we,a as Sn,u as Q}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import{n as ee,j as de,l as R,b as r,m as N,p as he,q as se,f as C,i as Ce,w as De,t as $o,k as Te,v as Dt,h as ct,x as wn,F as Cn,y as Ko,z as Ae,A as Wo,C as vt,D as qo,E as Fe,S as Go,K as Ho,G as Ht,H as Yo,I as W}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{d as G}from"./dayjs@1.11.10-C8LoRVP6.js";import{p as Xo}from"./print-js@1.6.0-BdoEj60G.js";import{u as Tn}from"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{b as Jo}from"./jsbarcode@3.11.6-DGNGFp02.js";import{L as Yt}from"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{u as zt,g as ot,i as ge,s as It,a as Ot,c as Zo,b as at,l as kn,d as On,e as Qo,f as V,r as Se,h as F,j as ea,k as lt,q as rt,m as An,p as Rn,n as Lt,o as Xt,t as ye,v as Pn,w as ta,x as na,y as oa,z as aa,A as me}from"./utils-DMI3ftdH.js";import{s as la}from"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import{d as dt,c as ra}from"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import{t as sa,a as ia,b as ua,c as ca,d as da,e as pa}from"./html-to-image@1.11.11-BOFdlgi9.js";import{u as pt,a as ma,o as fa,c as ga,b as ha}from"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import{c as va}from"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import{r as ya,u as Be,i as ba,a as _a,b as Sa,c as wa,d as Ca,e as Ta,f as ka,g as Oa,h as Aa,j as Ra,k as Pa,l as xa,m as Ma,n as Ea,o as Da,p as za,q as Ia,s as La}from"./echarts@5.5.1-C65RY-Xl.js";import{g as Fa}from"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import{T as Ba,a as ja}from"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import{i as Jt}from"./interactjs@1.10.26-DZL_TZzP.js";const ri=(e,n)=>{if(typeof n!="string"||!n.trim())throw new TypeError("Expected prefix to be a non-empty string");const t={};return Object.keys(e).forEach(o=>{const l=e[o].default;let a=o.replace(`./${n}/`,"").replace(/^\.\//,"");const s=a.lastIndexOf(".");a=a.substring(0,s);const i=a.split("/"),u=i.shift(),c=i.join(".");u&&(c?(gt(t,u,t[u]||{}),gt(t[u],c,l)):gt(t,u,l||{}))}),t},Va="modulepreload",Na=function(e){return"/ray-template/"+e},Zt={},z=function(n,t,o){let l=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));l=Promise.all(t.map(i=>{if(i=Na(i),i in Zt)return;Zt[i]=!0;const u=i.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${c}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":Va,u||(p.as="script"),p.crossOrigin="",p.href=i,s&&p.setAttribute("nonce",s),document.head.appendChild(p),u)return new Promise((g,y)=>{p.addEventListener("load",g),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${i}`)))})}))}return l.then(()=>n()).catch(a=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a})},Ua=(e,n,t)=>{const o=e[n];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((l,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+n+(n.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})},$a=async e=>{var t;const n={};for(const o of e){const l=await Ua(Object.assign({"../lang/en-US.ts":()=>z(()=>import("./en-US-Bca6KzVD.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),"../lang/zh-CN.ts":()=>z(()=>import("./zh-CN-XKNcx7um.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56]))}),`../lang/${o.key}.ts`,3),a=o.key;a&&(n[a]=((t=l==null?void 0:l.default)==null?void 0:t.message)??{})}return n},si=e=>{switch(e){case"zh-CN":return{locale:$t,dateLocal:Kt};case"en-US":return{locale:null,dateLocal:null};default:return{locale:$t,dateLocal:Kt}}},Ka={darkClassName:"ray-template--dark",lightClassName:"ray-template--light",rayTemplateThemePrimaryColor:"--ray-theme-primary-color",rayTemplateThemePrimaryFadeColor:"--ray-theme-primary-fade-color",preLoadingAnimation:"pre-loading-animation",htmlHeight:"--html-height",htmlWidth:"--html-width"},ii={max:5,closable:!1},ui="loading",ci="",J={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},Wa=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],ie={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#dbcb02","#18A058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"},appNaiveUIThemeOverrides:{dark:{},light:{}},appNaiveUIThemeOverridesCommon:{dark:{},light:{}},echartTheme:"macarons"},xn=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],qa="zh-CN",Ga="zh-CN",Ha={"zh-CN":"zh-cn","en-US":"en"},Ya="zh-cn",di={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/,cssSize:/^auto|unset|fit-content|max-content|min-content|initial|inherit|revert|revert-layer|[-\w]+-webkit-fill-available$/},pi={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},Pe=ne(null),Mn=ne(null),Xa={setupRouterLoadingBar:!0,setupRouterGuard:!0},Ja=["RLogin","ErrorPage","RayTemplateDoc"],He=[],mi=(e,n)=>{const t=B(0),o=B(0),l=B(!1),{clickOutside:a}={},s=g=>{l.value=g},i=g=>{g.preventDefault(),s(!1),ee().then(()=>{const{clientX:y,clientY:f}=g;t.value=y,o.value=f,s(!0)})};a&&Fo(e,g=>{a(g)});const u=Ne(e,"contextmenu",i,n),c=Ne(e,"click",()=>{s(!1)});return{stop:()=>{u(),c()},x:_e(t),y:_e(o),show:_e(l),updateShow:s}},Ft=re({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function fe(e,n,t){zt(Ft,e,n,t)}function mt(e){return _e(Uo(Ft,e))}function Za(){return{...we(_e(Ft))}}let pe;const Qa=async()=>{const e=to(),n=await $a(xn);return va({legacy:!1,locale:e,messages:n,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:Ga})},fi=async e=>{const n=await Qa();e.use(n),pe=n},Qt=(e,n)=>n,$e=e=>{if(!pe)return{t:a=>Qt(e,a),locale:a=>{}};const{t:n,...t}=pe.global;return{...t,t:(a,...s)=>a?!a.includes(".")&&!e?a:n(Qt(e,a),...s):"",locale:a=>{pe.mode==="legacy"?pe.global.locale=a:Sn(pe.global.locale)?pe.global.locale.value=a:pe.global.locale=a}}},j=e=>e,el={path:"/dashboard",component:()=>z(()=>import("./index-D-nvKMgM.js"),__vite__mapDeps([58,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,59,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,60])),meta:{i18nKey:j("menu.Dashboard"),icon:"dashboard",order:0}},tl=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),nl={path:"/flow",component:()=>z(()=>import("./Flow-D1FXlLKy.js"),__vite__mapDeps([61,22,1,2,3,4,5,6,7,8,9,10,11,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38,39,40,12,13,14,15,17,18,19,20,21,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.Flow"),icon:"other",order:2}},ol=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),al={path:"/axios",name:"RAxios",component:()=>z(()=>import("./index-BJaBPbUn.js"),__vite__mapDeps([62,4,5,6,7,8,2,9,10,63,64,1,3,11,12,13,14,15,16,17,18,19,20,21,41,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,65])),meta:{i18nKey:j("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},ll=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"})),rl={path:"barcode",component:()=>z(()=>import("./BarcodeDemo-DCyEZKXl.js"),__vite__mapDeps([66,22,1,2,3,4,5,6,7,8,9,10,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,11,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},sl=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),il={path:"/cache-demo",component:()=>z(()=>import("./index-lL95gCHJ.js"),__vite__mapDeps([67,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,41,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.CacheDemo"),icon:"other",order:3}},ul=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),cl={path:"/context-menu",component:()=>z(()=>import("./index-xbK-ooCu.js"),__vite__mapDeps([68,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.ContextMenu"),icon:"other",order:2}},dl=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"})),pl={path:"/directive",component:()=>z(()=>import("./index-D5IorQkc.js"),__vite__mapDeps([69,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{i18nKey:j("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},ml=Object.freeze(Object.defineProperty({__proto__:null,default:pl},Symbol.toStringTag,{value:"Module"})),fl={path:"/echart",component:()=>z(()=>import("./index-DHoMLNRa.js"),__vite__mapDeps([70,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,71])),meta:{i18nKey:j("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},gl=Object.freeze(Object.defineProperty({__proto__:null,default:fl},Symbol.toStringTag,{value:"Module"})),hl={path:"/form",component:()=>z(()=>import("./index-D_MmtiMa.js"),__vite__mapDeps([72,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},vl=Object.freeze(Object.defineProperty({__proto__:null,default:hl},Symbol.toStringTag,{value:"Module"})),yl={path:"/iframe",component:()=>z(()=>import("./index-cD4vHjL6.js"),__vite__mapDeps([73,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},bl=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"})),_l={path:"/mock-demo",component:()=>z(()=>import("./index-BWWxn8a4.js"),__vite__mapDeps([74,22,1,2,3,11,12,13,14,15,16,17,18,19,20,21,4,5,6,7,8,9,10,63,64,41,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},Sl=Object.freeze(Object.defineProperty({__proto__:null,default:_l},Symbol.toStringTag,{value:"Module"})),wl={path:"/modal-demo",component:()=>z(()=>import("./index-BkaDMlTh.js"),__vite__mapDeps([75,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.Modal"),icon:"other",order:3}},Cl=Object.freeze(Object.defineProperty({__proto__:null,default:wl},Symbol.toStringTag,{value:"Module"})),et=()=>z(()=>Promise.resolve().then(()=>Qr),void 0),Tl={path:"/multi",component:et,meta:{i18nKey:j("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>z(()=>import("./index-BbqJDTDN.js"),__vite__mapDeps([76,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:et,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>z(()=>import("./index-DRCakPMi.js"),__vite__mapDeps([77,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:et,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>z(()=>import("./index-DiYMknRE.js"),__vite__mapDeps([78,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},kl=Object.freeze(Object.defineProperty({__proto__:null,default:Tl},Symbol.toStringTag,{value:"Module"})),Ol={path:"/precision",component:()=>z(()=>import("./index-CezQKqVe.js"),__vite__mapDeps([79,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,41,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.CalculatePrecision"),icon:"other",order:2}},Al=Object.freeze(Object.defineProperty({__proto__:null,default:Ol},Symbol.toStringTag,{value:"Module"})),Rl={path:"/qrcode",component:()=>z(()=>import("./index-C8sUoWBI.js"),__vite__mapDeps([80,81,7,5,6,82,83,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{i18nKey:j("menu.QRCode"),icon:"other",order:2}},Pl=Object.freeze(Object.defineProperty({__proto__:null,default:Rl},Symbol.toStringTag,{value:"Module"})),xl={path:"rely-about",component:()=>z(()=>import("./index-C9_pwX3h.js"),__vite__mapDeps([84,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38,85])),meta:{i18nKey:j("menu.RelyAbout"),icon:"rely",order:999}},Ml=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),El={path:"/router-demo",component:et,meta:{i18nKey:j("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>z(()=>import("./index-CJSqT0Ur.js"),__vite__mapDeps([86,22,1,2,3,48,5,6,7,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,4,8,9,10,41,42,43,44,45,46,47,49,50,51,52,53,54,55,56])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>z(()=>import("./index-Y4-cSx_f.js"),__vite__mapDeps([87,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},Dl=Object.freeze(Object.defineProperty({__proto__:null,default:El},Symbol.toStringTag,{value:"Module"})),zl={path:"/scroll-reveal",component:()=>z(()=>import("./index-ByDaUx2U.js"),__vite__mapDeps([88,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38,89])),meta:{i18nKey:j("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},Il=Object.freeze(Object.defineProperty({__proto__:null,default:zl},Symbol.toStringTag,{value:"Module"})),Ll={path:"/segment",component:()=>z(()=>import("./index-fb6Zlm5C.js"),__vite__mapDeps([90,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},Fl=Object.freeze(Object.defineProperty({__proto__:null,default:Ll},Symbol.toStringTag,{value:"Module"})),Bl={path:"/svg-icons",component:()=>z(()=>import("./index-Mr0maFkJ.js"),__vite__mapDeps([91,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,92])),meta:{i18nKey:j("menu.SvgIcon"),icon:"other",order:3}},jl=Object.freeze(Object.defineProperty({__proto__:null,default:Bl},Symbol.toStringTag,{value:"Module"})),Vl={path:"/table-pro",component:()=>z(()=>import("./TablePro-BNd8MeCl.js"),__vite__mapDeps([93,41,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,63,64,94,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},Nl=Object.freeze(Object.defineProperty({__proto__:null,default:Vl},Symbol.toStringTag,{value:"Module"})),Ul={path:"/table",component:()=>z(()=>import("./index-BixBZhhq.js"),__vite__mapDeps([95,41,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},$l=Object.freeze(Object.defineProperty({__proto__:null,default:Ul},Symbol.toStringTag,{value:"Module"})),Kl={path:"/template-hooks",component:()=>z(()=>import("./index-EUipZU_e.js"),__vite__mapDeps([96,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.TemplateHooks"),icon:"other",order:1}},Wl=Object.freeze(Object.defineProperty({__proto__:null,default:Kl},Symbol.toStringTag,{value:"Module"})),ql=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":tl,"/src/router/modules/demo/axios copy.ts":ol,"/src/router/modules/demo/axios.ts":ll,"/src/router/modules/demo/barcode.ts":sl,"/src/router/modules/demo/cache-demo.ts":ul,"/src/router/modules/demo/context-menu.ts":dl,"/src/router/modules/demo/directive.ts":ml,"/src/router/modules/demo/echart.ts":gl,"/src/router/modules/demo/form.ts":vl,"/src/router/modules/demo/iframe.ts":bl,"/src/router/modules/demo/mock.ts":Sl,"/src/router/modules/demo/modal.ts":Cl,"/src/router/modules/demo/multi-menu.ts":kl,"/src/router/modules/demo/precision.ts":Al,"/src/router/modules/demo/qrcode.ts":Pl,"/src/router/modules/demo/rely.ts":Ml,"/src/router/modules/demo/router-demo.ts":Dl,"/src/router/modules/demo/scroll-reveal.ts":Il,"/src/router/modules/demo/segment.ts":Fl,"/src/router/modules/demo/svg-icons.ts":jl,"/src/router/modules/demo/table-pro.ts":Nl,"/src/router/modules/demo/table.ts":$l,"/src/router/modules/demo/template-hooks.ts":Wl});return Object.keys(e).reduce((t,o)=>{const l=e[o].default;if(l)t.push(l);else throw new Error(`[combineRawRouteModules]: ${o} module must export default.`);return t},[])},Gl=e=>e[0]==="/",En=(e,n=[],t="")=>{var o;if(!Array.isArray(e))return[];for(const l of e){const a=t+(Gl(l.path)?l.path:"/"+l.path);if((o=l.children)!=null&&o.length){En(l.children,n,a);continue}else n.push({...l,path:a})}return n},Hl=e=>Array.isArray(e)?En(tt(e)):[],Yl=e=>e.sort((n,t)=>{var a,s;const o=((a=n.meta)==null?void 0:a.order)??1,l=((s=t.meta)==null?void 0:s.order)??0;if(typeof o!="number"||typeof l!="number")throw new TypeError("orderRoutes error: order must be a number!");return o===l?n.name?t.name?n.name.localeCompare(t.name):-1:1:o-l}),Xl=e=>{const{beforeEach:n}=e,{getRootPath:t}=Le(),o=(l,a)=>l.path==="/"||a.path==="/login";n((l,a,s)=>{const i=ot(J.token,"localStorage"),u=ot(J.appMenuKey,"sessionStorage",{defaultValue:t.value}),{meta:c,name:p}=l;i!==null?o(l,a)?yt(!0):!ge(p,"Symbol")&&p&&Ja.includes(p)?s():Yn(c)?o(l,a)?u?s(u):yt(!0):s():yt(!0):o(l,a)?s():s("/")})},yt=(e=!0)=>{const{router:n}=jt(),{push:t,replace:o}=n,{getRootPath:l}=Le();It(J.appMenuKey,l.value,"localStorage"),e?o(l.value):t(l.value)},Jl=e=>{var t;const{meta:n}=e;n!=null&&n.ignoreAutoResetScroll||(t=Pe.value)==null||t.scrollTo({top:0,left:0,behavior:"smooth"})},Zl=e=>{e.beforeEach(()=>{var n;(n=window.$loadingBar)==null||n.start()}),e.afterEach(()=>{var n;(n=window.$loadingBar)==null||n.finish()}),e.onError(()=>{var n;(n=window.$loadingBar)==null||n.error()})},Dn=e=>{const{meta:n={}}=e,{hidden:t,sameLevel:o,env:l}=n,{MODE:a}=Ot();return!(o||t||l&&typeof l=="string"&&l!==a||l&&Array.isArray(l)&&!l.includes(a))},Ql={contentTransition:"scale",watermarkSwitch:!1,keepAliveConfig:{maxKeepAliveLength:10,setupKeepAlive:!0,keepAliveExclude:[]},menuConfig:{collapsedWidth:64,collapsedMode:"width",collapsedIconSize:16,collapsedIndent:24,accordion:!1,menuSiderBarLogo:!0,iconSize:16,menuWidth:272,inverted:!1,nativeScrollbar:!1},menuTagSwitch:!0,breadcrumbSwitch:!0,copyrightSwitch:!0,drawerPlacement:"right",colorWeakness:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15,xGap:0,yGap:0,cross:!0},dynamicDocumentTitle:!0},zn=()=>Ql;var er={pkg:{dependencies:{"@logicflow/core":"2.0.6","@logicflow/extension":"2.0.10","@vueuse/core":"^11.2.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.1","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.13","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^8.13.0","@typescript-eslint/parser":"^8.13.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.1","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5","rollup-plugin-gzip":"4.0.1",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.6.3","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.1.10"},name:"ray-template",version:"5.0.6"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Ee=dt("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=er,{locale:n}=$e(),{locale:t}=Rs(),o=re({primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},_appTheme:!1,appTheme:"light",localeLanguage:to(),lockScreenSwitch:!1,appRootRoute:{name:"Dashboard",path:"/dashboard"},sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"},...zn()}),l=u=>{n(u),t(u),It(J.localeLanguage,u,"localStorage"),o.localeLanguage=u},a=(u,c=.3)=>{const p=Zo(u,c),g={primaryColor:u,primaryColorHover:u,primaryColorPressed:u},{rayTemplateThemePrimaryColor:y,rayTemplateThemePrimaryFadeColor:f}=Ka,m=document.documentElement;o.primaryColorOverride.common=g,m.style.setProperty(y,u),m.style.setProperty(f,p)},s=(u,c,p)=>{zt(o,u,c,p)},i=u=>{const c=document.documentElement;s("colorWeakness",u),at(c,{filter:u?"invert(100%)":""})};return de(()=>{var u;o.appTheme?o.primaryColorOverride=Object.assign({},o.primaryColorOverride,ie.appNaiveUIThemeOverrides.dark,ie.appNaiveUIThemeOverridesCommon.dark):o.primaryColorOverride=Object.assign({},o.primaryColorOverride,ie.appNaiveUIThemeOverrides.light,ie.appNaiveUIThemeOverridesCommon.light),i(o.colorWeakness),o.dynamicDocumentTitle||(document.title=((u=o.sideBarLogo)==null?void 0:u.title)||"Ray Template")}),{...we(o),updateLocale:l,changePrimaryColor:a,updateSettingState:s,toggleColorWeakness:i}},{persist:{key:J.appPiniaSettingStore,omit:["lockScreenSwitch"],storage:window.localStorage}}),In={...co,onRegister:{type:[Function,Array],default:null}},Ln={actionAlign:{type:String,default:"end"},open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!0},onUpdateOpen:{type:[Function,Array],default:null},"onUpdate:open":{type:[Function,Array],default:null},...po};function tr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const gi=R({name:"RCollapse",props:Object.assign({},In,{...Ln,open:{type:Boolean,default:!0},cols:{type:Number,default:4},bordered:{type:Boolean,default:!0}}),render(){const{$slots:e,$props:n}=this,{labelPlacement:t,showFeedback:o,...l}=n;return r(Ar,N(l,{labelPlacement:"top",showFeedback:!1}),{default:()=>[r(lr,l,tr(e)?e:{default:()=>[e]})]})}}),nr={intersectionObserver:{type:Boolean,default:!0},intersectionObserverTarget:{type:Object,default:null},intersectionOptions:{type:Object,default:{threshold:.1}},bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},autoResize:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onFinally:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>kn()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>On()},onRegister:{type:[Function,Array],default:null}},or=Symbol("USE_CHART_PROVIDER_KEY"),ar=Qo(),en="__R_CHART_DOWN_LOAD_CHART__";ar.forEach(e=>{ya(e.name,e.theme)});const hi=R({name:"RChart",props:nr,setup(e,{expose:n}){const{getAppTheme:t}=Y(),o=se("rayChartRef"),l=se("rayChartWrapperRef"),a=ne();let s,i;const{echartTheme:u}=ie;let c;const p=C(()=>[{label:"下载图片",key:en,disabled:!(a.value&&a.value.getDom())}]),g=C(()=>({"--ray-chart-width":V(e.width),"--ray-chart-height":V(e.height)})),y=B(!1);let f;const m={aria:e.showAria},b=Ce(or,{}),h=async()=>{var w;Be([_a,Sa,wa,Ca,Ta,ka,Oa,Aa]),Be([Ra,Pa,xa,Ma,Ea,Da]),Be([za,Ia]),Be([La]);try{Be((w=e.use)==null?void 0:w.filter(Boolean))}catch(E){console.error("[RChart register error]: ",E)}},S=()=>{const{theme:w}=b||{};if(a.value&&T(),w){v(w);return}if(e.theme==="default"){e.autoChangeTheme?v("dark"):v("");return}if(e.theme)v(e.theme);else{const E=e.autoChangeTheme&&t.value?`${u}-dark`:u;v(E)}},d=w=>{let E=Q(w);return E=(K=>Object.assign({},E,K))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),E},v=(w=u)=>{var Oe;const E=o.value,U=d(e.options),{height:K,width:oe}=E.getBoundingClientRect(),{onSuccess:q,onError:ve}=e;try{a.value=ba(E,w,{width:oe===0?200:void 0,height:K===0?200:void 0}),q&&F(q,a.value),e.nextTick?(a.value.setOption({}),ee(()=>{var ae;U&&((ae=a.value)==null||ae.setOption(U))})):U&&((Oe=a.value)==null||Oe.setOption(U))}catch(ae){throw ve&&F(ve),new Error(`[RChart render error]: ${ae}`)}finally{const{onFinally:ae}=e;ae&&F(ae)}},k=()=>{var w;return!!((w=a.value)!=null&&w.isDisposed())},T=()=>{var w;k()||(w=a.value)==null||w.dispose()},_=()=>{a.value&&a.value.resize()},x=(w,E)=>{if(w===en&&!k()){const{filename:K,...oe}=e.downloadOptions;ea(a.value.getDataURL(oe),K??`${new Date().getTime()}`)}const{onDropdownSelect:U}=e;U&&F(U,w,E)},A=()=>{var E;if(e.autoResize&&(s||(s=xt(_,500)),i||(i=jo(e.autoResizeObserverTarget||l,s))),(E=a.value)!=null&&E.getDom()||!y.value&&e.intersectionObserver)return;S(),f==null||f.stop();const{onRegister:w}=e;w&&a.value&&F(w,a.value,A,L)},L=()=>{T(),s==null||s.cancel(),i==null||i.stop(),f==null||f.stop(),f=null,s=null,i=null};return De(()=>t.value,()=>{e.autoChangeTheme&&(T(),S())}),de(()=>{var w,E;e.intersectionObserver&&(f=Bo(e.intersectionObserverTarget||l,([U])=>{y.value=U.isIntersecting},e.intersectionOptions)),e.watchOptions?c=Fa(()=>e.options,U=>{var q;const K=d(U),oe=Object.assign({},On(),e.setChartOptions);(q=a.value)==null||q.setOption(K,oe)},{deep:!0,throttle:e.watchOptionsThrottleWait}):c==null||c(),e.loading?(w=a.value)==null||w.showLoading(kn(e.loadingOptions)):(E=a.value)==null||E.hideLoading(),e.showAria!==m.aria&&a.value&&(a.value.setOption(d(e.options)),m.aria=e.showAria),y.value&&!k()&&A()}),n(),$o(async()=>{await h()}),Te(()=>{A()}),Dt(()=>{L(),c==null||c()}),{rayChartRef:o,cssVarsRef:g,rayChartWrapperRef:l,moreDropDownOptions:p,dropdownSelect:x}},render(){const{title:e,contentStyle:n,preset:t,moreDropDownOptions:o,dropdownSelect:l,bordered:a,dropdownOptions:s}=this,{cardExtra:i}=this.$slots;return t==="card"?r(it,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:n,bordered:a,embedded:!0},{default:Se(r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:Se(e,{defaultElement:r("div",{style:"display: none;"},null)}),"header-extra":Se(i,{defaultElement:r(jn,{iconSize:18,cursor:"pointer",options:s||o,trigger:"click",onSelect:l.bind(this),placement:"bottom-end"},null)})}):r("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),vi=()=>{let e,n,t;const o=(u,c,p)=>{u&&(e=u,n=p,t=c)},l=()=>{if(!e)throw new Error("[useChart]: echart instance is not ready yet. if you are using useChart, please make sure you have called register method in onRegister event.");return{dispose:n,render:t,echartInst:e}};return[o,{getChartInstance:l,isDisposed:()=>{var u;return!!((u=l().echartInst)!=null&&u.isDisposed())},dispose:()=>l().dispose.call(null),render:()=>l().render.call(null)}]},lr=R({name:"RCollapseGrid",props:Ln,setup(e){const n=B(!e.open),t=C(()=>({"--r-collapse-grid-action-align":e.actionAlign})),o=()=>{const{onUpdateOpen:a,"onUpdate:open":s}=e;n.value=!n.value,a&&F(a,n.value),s&&F(s,n.value)},l=a=>r("div",{class:"collapse-icon",onClick:o.bind(this)},[r("span",null,[a?e.collapseToggleText[0]:e.collapseToggleText[1]]),r(P,{customClassName:`collapse-icon--arrow ${a?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)]);return de(()=>{n.value=!e.open}),{modelCollapsed:n,collapseClick:o,CollapseIcon:l,cssVars:t}},render(){const{$slots:{collapse:e,action:n,default:t},CollapseIcon:o,$props:l,modelCollapsed:a,xGap:s,yGap:i,collapsedRows:u,cssVars:c,bordered:p}=this;return r(it,{bordered:p,style:[c]},{default:()=>r(mo,N({class:"ray-collapse-grid"},l,{collapsed:a,xGap:s||12,yGap:i||12,collapsedRows:u}),{default:()=>[t==null?void 0:t(),r(fo,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[r(I,{justify:"end",align:"center"},{default:()=>[n==null?void 0:n(),e?e(a):o(a)]})]})]})})}}),rr={color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:"default"},onClick:{type:[Function,Array],default:null}},P=R({name:"RIcon",props:rr,setup(e){const n=C(()=>`#${e.prefix}-${e.name}`),t=C(()=>({"--ray-icon-width":e.width?V(e.width):V(e.size),"--ray-icon-height":e.height?V(e.height):V(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor,"--ray-icon-color":e.color}));return{symbolId:n,cssVars:t,iconClick:l=>{const{onClick:a}=e;a&&F(a,l)}}},render(){return r("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[r("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[r("use",N({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),sr={src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:[Boolean,String],default:!0},iframeClass:{type:String,default:null}},yi=R({name:"RIframe",props:sr,setup(e,{expose:n}){const t=C(()=>({"--ray-iframe-frameborder":V(e.frameborder),"--ray-iframe-width":V(e.width),"--ray-iframe-height":V(e.height)})),o=se("iframeRef"),l=B(!0),a=i=>{l.value=!1;const{onSuccess:u}=e;u&&F(u,o.value,i)},s=i=>{l.value=!1;const{onError:u}=e;u&&F(u,i)};return Ne(o,"load",a),Ne(o,"error",s),n({iframeInst:o}),{cssVars:t,iframeRef:o,spinShow:l}},render(){return r("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[r(ut,N(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>r("iframe",{class:["ray-iframe__container",this.iframeClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title,loading:typeof this.lazy=="boolean"?"lazy":this.lazy},null)})])}}),ir={...go,memo:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446},dad:{type:Boolean,default:!1}},ur=(e,n,t)=>{const{scheduler:o}=t??{};return new Promise(l=>{setTimeout(()=>{const a=n==="card"?".n-card-header__main":".n-dialog__title";if(e){const s=Jt(e).draggable({inertia:!0,autoScroll:!0,allowFrom:a,modifiers:[Jt.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:i=>{o==null||o(i)}}}).resizable(!1);l(s)}},30)})},Fn=(e,n)=>{const t=typeof e=="string"?document.querySelector(e):e;return new Promise((o,l)=>{if(t){t.setAttribute("can-drag","true");const{preset:a,dargCallback:s}=n;let{x:i,y:u}=n;ur(t,a,{scheduler:c=>{const p=c.target;i+=c.dx,u+=c.dy,p.style.transform=`translate(${i}px, ${u}px)`,s==null||s(i,u,c)}}).then(c=>{o(c)})}else l()})},cr="r-modal__preset-card--fullscreen",Bn="r-modal",xe={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},bi=R({name:"RModal",props:ir,setup(e){const n=C(()=>({[xe.width]:V(e.width??600),[xe.cardWidth]:V(e.cardWidth??600),[xe.dialogWidth]:V(e.dialogWidth??446)})),t=lt();let o;const l={x:0,y:0},a=C(()=>e.preset==="card"&&e.fullscreen);return De(()=>e.show,s=>{s&&e.dad&&(e.preset==="card"||e.preset==="dialog")?ee(()=>{const i=document.getElementById(t);i&&Fn(i,{preset:e.preset,x:l.x,y:l.y,dargCallback:(u,c)=>{l.x=u,l.y=c}}).then(u=>{o=u}),e.memo&&i&&(i.style.transform=`translate(${l.x}px, ${l.y}px)`)}):(o==null||o.unset(),o=null)},{immediate:!0}),{cssVars:n,isFullscreenCardType:a,uuidEl:t}},render(){const{$props:e,$slots:n,$attrs:t}=this,{preset:o,...l}=e,{cssVars:a,uuidEl:s,isFullscreenCardType:i}=this;return r(mn,N({class:[Bn,i?cr:""],style:[a,i?"height: 100vh":""],preset:o},{id:s},l,t),{...n})}}),dr=()=>{const{create:e,destroyAll:n}=ho();return{create:o=>{const{content:l,...a}=o;let s=l;a.preset==="card"&&a.fullscreen&&(s=()=>ct(Mt,{themeOverrides:{color:"rgba(0, 0, 0, 0)",colorHover:"rgba(0, 0, 0, 0)"},trigger:"none",style:{width:"auto",height:"calc(var(--html-height) - 29px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))"}},{default:()=>typeof l=="function"?l():l}));const{preset:i,dad:u,fullscreen:c,width:p,cardWidth:g,dialogWidth:y}=o,f=e({...a,content:s}),{key:m}=f,b={[xe.width]:V(p??600),[xe.cardWidth]:V(g??600),[xe.dialogWidth]:V(y??446)};return ee(()=>{const[h]=rt(`[internalkey="${m}"]`)||[];h&&(u&&Fn(h,{preset:i,x:0,y:0}),c&&i==="card"&&at(h,{width:"100%",height:"100vh"}),at(h,b),An(h,Bn))}),f},destroyAll:n}},pr={...vo,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function mr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const jn=R({name:"RMoreDropdown",props:pr,render(){let e;const{iconSize:n,cursor:t,icon:o}=this,{default:l}=this.$slots;return r(Me,N(this.$props,this.$attrs,{placement:"bottom-start"}),mr(e=Se(l,{defaultElement:r(P,{name:o,size:n,cursor:t},null)}))?e:{default:()=>[e]})}}),ze={...yo,tableFlexHeight:{type:[String,Number],default:void 0},renderWrapperHeader:{type:Boolean,default:!0},cardProps:{type:Object,default:()=>({})},tool:{type:Boolean,default:!0},downloadCsvTableOptions:{type:Object,default:()=>({})},title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},wrapperBordered:{type:Boolean,default:!0},bordered:{type:Boolean,default:!0},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null},onRegister:{type:[Function,Array],default:null}},ue={tableIconSize:"18",tableKey:Symbol("r-table")},fr=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],gr=R({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...ze},setup(e){return{size:B(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:l=>{const{onChangeSize:a}=e;a&&F(a,l)}}},render(){return r(fn,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(P,{name:"adjustment",size:ue.tableIconSize,cursor:"pointer"},null)]})}}),hr=R({name:"TableFullscreen",setup(){const{wrapperRef:e}=Ce(ue.tableKey,{}),[n,{toggleFullscreen:t,isEnabled:o}]=Tn(e);return{toggleFullscreen:t,isEnabled:o}},render(){const{toggleFullscreen:e,isEnabled:n,$t:t}=this;return r(P,{name:"fullscreen",size:ue.tableIconSize,cursor:"pointer",onClick:()=>{n||window.$message.warning(t("globalMessage.isEnabledFullscreen")),e()}},null)}}),vr=()=>r(P,{name:"draggable",size:14,cursor:"grab"},null),tn=({icon:e,title:n,onClick:t,customClassName:o})=>r(Ve,{showArrow:!1},{trigger:()=>r(P,{name:e,size:ue.tableIconSize,cursor:"pointer",customClassName:o,onClick:t==null?void 0:t.bind(null)},null),default:()=>n}),At=(e,n)=>{if(!n)return[null,null];for(let t=0;ttt(e.columns).filter(u=>u.type?(n=u,!1):!0).map((u,c)=>{const{key:p,title:g,children:y,fixed:f,isResizable:m,...b}=u,h=f==="left",S=f==="right",d={...b,title:g,key:p,fixed:f,isLeftFixedActivated:h,isRightFixedActivated:S,isResizable:m};return{...d,suffix:()=>r(I,{style:"padding-left: 32px;"},{default:()=>[r(tn,{icon:"row_head",title:"固定在列首",customClassName:h?bt:"",onClick:a.bind(this,"left",d,c)},null),r(Ve,{showArrow:!1},{trigger:()=>r(P,{name:"resize_h",size:ue.tableIconSize,cursor:"pointer",customClassName:m?bt:"",onClick:l.bind(this,d,c)},null),default:()=>"修改列宽"}),r(tn,{icon:"row_end",title:"固定在列尾",customClassName:S?bt:"",onClick:a.bind(this,"right",d,c)},null)]})}}),set:()=>{}}),o=i=>{const{onUpdateColumn:u}=e;u&&F(u,i)},l=(i,u)=>{i.isResizable=!i.isResizable,i.resizable=i.isResizable,t.value[u]=i,o(t.value)},a=(i,u,c)=>{const p=`${i}FixedActivated`,g=`${i==="left"?"right":"left"}FixedActivated`;u[g]=!1,u[p]=!u[p],u[p]?u.fixed=i:u.fixed=void 0,t.value[c]=u,o(t.value)};return{treeDataSource:t,treeDrop:({node:i,dragNode:u,dropPosition:c})=>{const[p,g]=At(u,t.value);if(p===null||g===null)return;p.splice(g,1);const[y,f]=At(i,t.value);y===null||f===null||(c==="before"?y.splice(f,0,u):y.splice(f+1,0,u),pn(n)||y.unshift(n),o(y))}}},render(){return r(Ve,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>r(P,{name:"setting",size:ue.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>r(bo,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:vr.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),br=R({name:"TablePrint",props:ze,setup(e){const{wrapperRef:n}=Ce(ue.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:o={},domToImageOptions:l}={},title:a}=e;(o.documentTitle===""||o.documentTitle===void 0||o.documentTitle===null)&&(o.documentTitle=typeof a=="string"?a:""),Rn(n,{printOptions:o,domToImageOptions:l})}}},render(){return r(P,{name:"print",size:ue.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),_r=R({name:"TablePropsSelect",props:{...ze,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const n=B(!1),t=B([]),o=a=>{const{onPopselectChange:s}=e;s&&F(s,a)};return(()=>{const{striped:a,bordered:s,onInitialed:i}=e;a&&t.value.push("striped"),s&&t.value.push("bordered"),i&&F(i,t.value)})(),{propsPopselectValue:t,popoverShow:n,updatePopselectValue:o}},render(){return r(fn,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:fr,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(P,{name:"expanded",size:ue.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function Sr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const wr=R({name:"RTable",inheritAttrs:!1,props:ze,setup(e,n){const{expose:t,emit:o}=n,l=se("rTableInst"),a=se("wrapperRef"),s=lt(16),i=lt(16),u=re({x:0,y:0,showContextMenu:!1}),c=re({size:e.size}),p=B(Object.assign({striped:!1,bordered:!1},je(e,"striped","bordered"))),g=(d,v)=>{const{onContextMenuClick:k}=e;k&&F(k,d,v),u.showContextMenu=!1},y=(d,v)=>{var T;return{...(T=e.rowProps)==null?void 0:T.call(e,d,v),onContextmenu:e.disabledContextMenu?void 0:_=>{_.preventDefault(),u.showContextMenu=!1,ee().then(()=>{u.showContextMenu=!0,u.x=_.clientX,u.y=_.clientY})}}},f=d=>{c.size=d},m=d=>{const{onUpdateColumns:v,"onUpdate:columns":k}=e;v&&F(v,d),k&&F(k,d)},b=()=>{const{toolOptions:d}=e;return d==null?void 0:d.filter(Boolean).map(v=>typeof v=="function"?v():v)},h=d=>{Object.keys(p.value).forEach(k=>{p.value[k]=d.includes(k)})},S=d=>{const{tool:v}=d;if(!v)return;const k=()=>r(I,{align:"center"},{default:()=>[r(br,d,null),r(gr,N(d,{onChangeSize:f.bind(this)}),null),r(hr,null,null),r(yr,N(d,{onUpdateColumn:m.bind(this)}),null),r(_r,N(d,{onPopselectChange:h.bind(this),onInitialed:h.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let T;return r(I,{align:"center"},Sr(T=b())?T:{default:()=>[T]})}:()=>r(I,{align:"center"},{default:()=>[k(),b()]}):k};return Te(()=>{const{onRegister:d}=e;d&&l.value&&F(d,l.value,{uuidTable:i,uuidWrapper:s,wrapperRef:a})}),wn(ue.tableKey,{uuidTable:i,uuidWrapper:s,wrapperRef:a}),t(),{uuidWrapper:s,uuidTable:i,contextMenuReactive:u,rTableInst:l,combineRowProps:y,contextMenuSelect:g,privateReactive:c,tool:S,wrapperRef:a,propsPopselectValue:p}},render(){const{$props:e,$attrs:n,$slots:t,uuidTable:o,contextMenuReactive:l,uuidWrapper:a,privateReactive:s,propsPopselectValue:i}=this,{class:u,...c}=n,{tool:p,combineRowProps:g,contextMenuSelect:y}=this,{renderWrapperHeader:f,wrapperBordered:m,disabledContextMenu:b,contextMenuOptions:h,title:S,tableFlexHeight:d,cardProps:v,...k}=e;return r(it,N(v,{id:a},c,{ref:"wrapperRef",bordered:m,class:u}),{default:()=>r(Cn,null,[r(_o,N({id:o},k,i,{rowProps:g.bind(this),size:s.size,ref:"rTableInst",style:{height:d!=null?V(d):null}}),{...t}),b?null:r(Me,{show:l.showContextMenu,placement:"bottom-start",trigger:"manual",x:l.x,y:l.y,options:h,onClickoutside:()=>l.showContextMenu=!1,onSelect:y.bind(this)},null)]),header:f?Se(S,{defaultElement:r("div",{style:"display: none;"},null)}):null,"header-extra":p(e),footer:()=>{var T;return(T=t.tableFooter)==null?void 0:T.call(t)},action:()=>{var T;return(T=t.tableAction)==null?void 0:T.call(t)}})}}),Cr=()=>{const e=ne();let n={};const t=(f,m)=>{f&&(e.value=f,n=m)},o=()=>{if(!e.value)throw new Error("[useTable]: table instance is not ready yet. if you are using useTable, please make sure you have called register method in onRegister event.");return e.value};return[t,{getTableInstance:o,clearFilters:()=>o().clearFilters.call(null),clearSorter:()=>o().clearSorter.call(null),downloadCsv:f=>o().downloadCsv.call(null,f),filters:f=>o().filters.call(null,f),page:f=>o().page.call(null,f),scrollTo:f=>o().scrollTo(f),sort:(f,m)=>o().sort.call(null,f,m),print:f=>{const{uuidWrapper:m}=n;if(m){const b=document.getElementById(m);Rn(b,f)}},filter:f=>o().filter.call(null,f)}]},Vn=(e,n,t)=>{var o;if(e.length)for(const l of e){if(l[n]===t)return l;if((o=l==null?void 0:l.children)!=null&&o.length){const a=Vn(l.children,n,t);if(a)return a}}},nn=e=>{const n=Q(e);return n?n.findIndex(o=>{const{type:l,multiple:a}=o;if(l==="selection"&&(a==null||a===!0))return!0})!==-1:!0},Tr=(e,n,t,o)=>{const l=Q(e);return l?n.reduce((a,s)=>{const i=Q(t).findIndex(c=>c[o]===s);if(i!==-1)return a.push(Q(t)[i]),a;const u=l.findIndex(c=>c[o]===s);return u!==-1&&a.push(l[u]),a},[]):t},_i=(e,n,t)=>{const o=B([]),l=B([]),{rowKey:a="key",onChange:s}=t||{},i=C(()=>nn(n)),u=(m,b,h)=>{o.value=m,l.value=Q(Tr(e,m,l,a)),s==null||s(m,l.value,h),nn(n)},c=()=>o.value,p=()=>l.value,g=()=>{o.value=[],l.value=[],s==null||s(o.value,l.value,{row:void 0,action:"uncheckAll"})},y=m=>{if(m==null)return;let b;o.value=o.value.filter(h=>h!==m),l.value=l.value.filter(h=>h[a]===m?(b=h,!1):!0),s==null||s(o.value,l.value,{row:b,action:"uncheck"})},f=m=>{if(o.value.includes(m))return;const b=!i.value&&o.value.length>=1,h=Vn(Q(e)||[],a,m);b?o.value=[m]:o.value.push(m),h&&(b?l.value=[h]:l.value.push(h),s==null||s(o.value,l.value,{row:h,action:"check"}))};return Lt(()=>{g()}),[o,{checkedRows:l,checkedRowKeysBind:u,getKeys:c,getRows:p,clearAll:g,clearKey:y,selectKey:f}]},kr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},Or=R({name:"RTransitionComponent",__name:"index",props:Ko({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},kr),setup(e){const{getKeepAliveInclude:n}=$r(),{getKeepAliveConfig:t}=Y();return(o,l)=>{const a=qo("RouterView");return Ae(),Wo("div",null,[r(a,null,{default:vt(({Component:s,route:i})=>[s?(Ae(),Fe(Ba,{key:0,name:o.transitionPropName,mode:o.transitionMode,appear:o.transitionAppear},{default:vt(()=>[(Ae(),Fe(Go,null,{default:vt(()=>[Q(t).setupKeepAlive?(Ae(),Fe(Ho,{key:0,max:Q(t).maxKeepAliveLength,include:Q(n),exclude:Q(t).keepAliveExclude},[(Ae(),Fe(Ht(s),{key:i.fullPath}))],1032,["max","include","exclude"])):(Ae(),Fe(Ht(s),{key:i.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Yo("",!0)]),_:1})])}}}),Ar=R({name:"RForm",props:In,setup(e,{expose:n}){const t=se("formRef");return Te(()=>{const{onRegister:o}=e;o&&t.value&&F(o,t.value)}),n(),{formRef:t}},render(){const{$attrs:e,$props:n,$slots:t}=this;return r(ce,N(e,n,{ref:"formRef"}),{...t})}}),Si=(e,n)=>{const t=ne(),o=c=>{c&&(t.value=c)},l=()=>{if(!t.value)throw new Error("[useForm]: form instance is not ready yet. if you are using useForm, please make sure you have called register method in onRegister event.");return t.value};return[o,{getFormInstance:l,validate:(c,p)=>l().validate.call(null,c,p),restoreValidation:()=>l().restoreValidation.call(null),formModel:()=>tt(e)||{},formRules:()=>tt(n)||{}}]},Rr=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],Pr={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},xr=Ue({...So,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...Rr);function Mr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const Rt=e=>{const{icon:n,label:t}=e;return n?r(I,{align:"center",wrap:!1,size:"small"},{default:()=>{var o;return[(o=Se(n))==null?void 0:o(),r("div",null,[t])]}}):t},Er=e=>{if(typeof e.popover=="string")return r(Ve,null,{trigger:()=>Rt(e),default:()=>e.popover});if(ge(e.popover,"Object")){const{popover:n}=e,{label:t,...o}=n;return r(Ve,o,{trigger:()=>Rt(e),default:()=>t})}},Dr=R({name:"RSegment",props:xr,setup(e,{expose:n}){const t=C(()=>{const{width:o}=e;let l="";switch(o){case"block":l="100%";break;case"fitContent":l="fit-content";break;default:l=typeof o=="number"?V(o):"fit-content"}return{"--r-segment-width":l}});return n(),{cssVars:t}},render(){let e;const{$props:n,options:t,cssVars:o,themeOverrides:l}=this;return r(gn,N(n,{ref:"segmentRef",style:[o],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},Pr,l)}),Mr(e=t.map(a=>r(wo,{key:a.key,name:a.key,tab:a.popover?Er(a):Rt(a),disabled:a.disabled},{...a.slots})))?e:{default:()=>[e]})}}),zr={width:{type:[String,Number],default:"auto"},height:{type:[String,Number],default:"auto"},loading:{type:Boolean,default:!1},barcodeRender:{type:String,default:"canvas",validator:e=>["canvas","svg"].includes(e)},text:{type:String},options:{type:Object,default:()=>({})},format:{type:String,default:()=>"CODE128"},watchText:{type:Boolean,default:!0},onSuccess:{type:[Function,Array]},onError:{type:[Function,Array]},onFinally:{type:[Function,Array]}},wi=R({name:"RBarcode",props:zr,setup(e){const n=se("barcodeRef"),t=C(()=>({"--r-barcode-width":V(e.width),"--r-barcode-height":V(e.height)}));let o;const l=()=>{try{const{format:a,text:s,options:i,onSuccess:u}=e,c=Object.assign({},i,{format:a});Jo(n.value,s!=null?s.toString():"",c),u&&F(u,s,a,i)}catch(a){const{onError:s}=e;s&&F(s,a)}finally{const{onFinally:a}=e;a&&F(a)}};return de(()=>{e.watchText?o=De(()=>e.text,l):o==null||o()}),Te(()=>{l()}),Dt(()=>{o==null||o()}),{barcodeRef:n,cssVars:t}},render(){const{barcodeRender:e,loading:n,cssVars:t}=this,o=["r-barcode",{"r-barcode--loading":n}];return r(ut,{class:"r-barcode-spin",show:n},{default:()=>[e==="canvas"?r("canvas",{class:o,style:t,ref:"barcodeRef"},null):r("svg",{class:o,style:t,ref:"barcodeRef"},null)]})}}),Ir={...Ue(ze,["pagination"]),paginationCount:{type:Number,default:1},onRegister:{type:Function,default:void 0},manual:{type:Boolean,default:!1},request:{type:Function},onTablePaginationUpdate:{type:Function},requestConfig:{type:Object,default:()=>({})},showPagination:{type:Boolean,default:!1},remote:{type:Boolean,default:!0}};function Lr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const Ci=R({name:"RTablePro",props:Ir,setup(e){const[n,{clearFilters:t,clearSorter:o,downloadCsv:l,filters:a,page:s,scrollTo:i,sort:u,print:c,filter:p}]=Cr(),[g,{getPage:y,getPageSize:f,setCallback:m,setItemCount:b,resetPagination:h,getItemCount:S}]=xs(void 0,{prefix:A=>`共 ${A.itemCount} 条`}),d=C(()=>e.request),v=()=>({getItemCount:S,getPage:y,getPageSize:f}),k=()=>{const{onTablePaginationUpdate:A}=e;A&&F(A,v())},T=A=>{const L=Object.assign({},e.requestConfig,A),{params:w,formatRangeTime:E}=L;return E!=null&&E.length&&w&&E.forEach(K=>{const{key:oe,target:q}=K,ve=w[oe];if(ve&&(q!=null&&q.length)){const[Oe,ae]=ve;w[q[0]]=Oe,w[q[1]]=ae}else w[oe]=null,w[q[0]]=null,w[q[1]]=null}),Object.assign({},w,{page:y(),pageSize:f()})},_=A=>{var w;h();const L=T(A);(w=d.value)==null||w.call(d,L)},x=A=>{var w;const L=T(A);(w=d.value)==null||w.call(d,L)};return de(()=>{b(e.paginationCount),m(()=>{const{manual:A}=e;A||x(),k()})}),Te(()=>{const{onRegister:A}=e;A&&F(A,{getTablePagination:v,runTableRequest:_,clearFilters:t,clearSorter:o,downloadCsv:l,filters:a,page:s,scrollTo:i,sort:u,print:c,filter:p,getCurrentTableRequestParams:T})}),{register:n,paginationRef:g}},render(){const{register:e,$props:n,paginationRef:t,$slots:o}=this,{onRegister:l,showPagination:a,...s}=n;return r(wr,N(s,{onRegister:e,pagination:a?t:void 0}),Lr(o)?o:{default:()=>[o]})}}),Ti=()=>{const e=B(),n=m=>{m&&(e.value=m)},t=()=>{if(!e.value)throw new Error("[useTablePro]: table instance is not ready yet. if you are using useTablePro, please make sure you have called register method in onRegister event.");return e.value};return[n,{clearFilters:()=>t().clearFilters.call(null),getTableProInstance:t,clearSorter:()=>t().clearSorter.call(null),downloadCsv:m=>t().downloadCsv.call(null,m),filters:m=>t().filters.call(null,m),page:m=>t().page.call(null,m),scrollTo:m=>t().scrollTo(m),sort:(m,b)=>t().sort.call(null,m,b),getTablePagination:()=>t().getTablePagination.call(null),runTableRequest:m=>t().runTableRequest.call(null,m),print:m=>t().print.call(null,m),getCurrentTableRequestParams:m=>t().getCurrentTableRequestParams.call(null,m)}]},Fr=()=>({grid:!0,partial:!1,keyboard:{enabled:!0}}),Br={use:{type:Array,default:void 0},watchData:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},data:{type:Object,default:void 0},options:{type:Object,default:Fr()},onRegister:{type:[Function,Array],default:void 0}};let on=!1;const ki=R({name:"RFlow",props:Br,setup(e){const n=se("flowDomRef"),t=C(()=>{const{width:g,height:y}=e;return{"--r-flow-width":V(g),"--r-flow-height":V(y)}}),o=ne(),l={nodeTextEdit:!1,edgeTextEdit:!1,textEdit:!1};let a;const s={nodes:[],edges:[]},i={readonly:e.readonly},u=()=>{var g;on||((g=e.use)==null||g.filter(Boolean).forEach(y=>Yt.use(y)),on=!0)},c=g=>{if(!o.value)return;const y=Object.entries(l).reduce((f,[m])=>(f[m]=!g,f),{});Object.assign(l,y,{isSilentMode:g}),o.value.updateEditConfig(l)},p=g=>{if(u(),!n.value)return;const{options:y,readonly:f}=e;o.value=new Yt({container:Q(n.value),...Ue(y,"container")}),o.value.render(g||s),c(f)};return de(()=>{e.watchData?a=De(()=>e.data,g=>{o.value?g&&o.value.renderRawData(g):p(g)}):a==null||a(),e.readonly!==i.readonly&&(c(e.readonly),i.readonly=e.readonly)}),Te(()=>{p();const{onRegister:g}=e;g&&o.value&&F(g,o.value)}),{flowDomRef:n,cssVars:t}},render(){const{cssVars:e}=this;return r("div",{class:"r-flow",style:[e],ref:"flowDomRef"},null)}}),Oi=()=>{let e;return[o=>{o&&(e=o)},{getFlowInstance:()=>{if(!e)throw new Error("[useFlow]: flow instance is not ready yet. if you are using useFlow, please make sure you have called register method in onRegister event.");return e}}]},jr=(e,n,t)=>!e||typeof e!="object"?!1:e[n]===t,Nn=(e,n,t)=>{const o=[];if(jr(e,n,t))return o.push(e),o;if(e.children&&e.children.length>0)for(const l of e.children){const a=Nn(l,n,t);a.length>0&&o.push(e,...a)}return o},Vr=(e,n,t)=>{const o=[];for(const l of e){const a=Nn(l,n,t);a.length>0&&o.push(...a)}return o},an=e=>{const{dynamicDocumentTitle:n}=Ee();if(!n)return;const{breadcrumbLabel:t}=e;if(!t)return;const{sideBarLogo:o}=Ee(),l=o?o.title:"";document.title=t+" - "+l},Nr=e=>{const{meta:{icon:n}}=e;if(!n)return;if(ge(n,"Object"))return()=>n;const{menuConfig:t}=Ee(),{collapsed:o}=Bt(),l=ct(P,{name:n,size:o?t.collapsedIconSize:t.iconSize,cursor:"pointer"},{});return()=>l},Un=e=>{const{meta:{extra:n}}=e;if(!n)return;const{show:t}=n;if(t===!1)return;const{t:o}=$e(),{label:l,icon:a,type:s,i18nLabel:i}=n,u={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},c=()=>i?o(i):l||null,p=()=>a&&(i||l)||!a&&(i||l)?null:{"padding-right":"0"};if(ge(n,"Object"))return()=>ct(Co,{...u,type:s||"primary",style:p()},{default:()=>c(),icon:()=>a})},ln=()=>{const{getRootPath:e}=Le();return ot(J.appMenuKey,"sessionStorage",{defaultValue:e.value})},$n=()=>Yl(ql()),Ur=()=>Hl($n()),Pt=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let Ye;const Kn=(e,n)=>{var t;if(Ye&&Xt(Ye.fullPath,n))return Ye;for(const o of e){if(Xt(o.fullPath,n))return Ye=o,o;if((t=o.children)!=null&&t.length){Kn(o.children,n);continue}}},Bt=dt("menu",()=>{const{push:e,getRoutes:n}=pt(),t=ma(),{t:o}=$e(),{setKeepAliveInclude:l}=Kr(),a=re({menuKey:ln(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),s=B(!0),i=(d,v,k)=>{zt(a,d,v,k)},u=d=>{const{meta:v}=d,{i18nKey:k,noLocalTitle:T}=v,_=C(()=>k?o(`${k}`):T),x={...d,key:d.fullPath,label:()=>ct(hn,null,{default:()=>_.value}),breadcrumbLabel:_.value},A=Object.assign({},x,{icon:Nr(d),extra:Un(d)});return d.fullPath===ln()&&(a.currentMenuOption=A),A.show=Dn(A),A},c=d=>{a.breadcrumbOptions=Q(Vr(a.options,"fullPath",d))},p=(d,v=!0)=>{const T=Array.isArray(d)?[...d]:[d];v?a.menuTagOptions.push(...T):a.menuTagOptions=T},g=(d,v)=>{a.menuTagOptions.find(T=>T.fullPath===d)||a.menuTagOptions.push(v)},y=(d,v,k)=>{const{meta:T}=v;if(T.windowOpen)window.open(T.windowOpen);else{e({path:String(d),query:k});const{sameLevel:_}=T;if(l(v),an(v),!_)g(d,v),c(d),a.menuKey=d,a.currentMenuOption=v,It(J.appMenuKey,d);else{const x=je(u(v),Pt);a.breadcrumbOptions.find(L=>L.key===x.key)||a.breadcrumbOptions.push({...x,fullPath:String(x.key)})}}},f=async(d,v)=>{const[k]=d.split("?"),T=n().find(_=>_.path===k);if(!((T==null?void 0:T.path)==="/"||!(T!=null&&T.path)||(T==null?void 0:T.path)==="/login")&&T){const _=je(T,Pt);y(k,u({..._,fullPath:_.path}),v)}},m=()=>new Promise(d=>{const v=(T,_)=>{var A;const x=[];for(const L of T){let w=`${_.endsWith("/")?_:_+"/"}${L.path}`;if(w=w.replace(/\/+/g,"/"),(A=L.children)!=null&&A.length)L.children=v(L.children,w);else if(!Yn(L.meta))continue;x.push(u({...L,fullPath:w}))}return x};a.options=v($n(),"");const k=a.currentMenuOption||qr(a.options);k&&(a.breadcrumbOptions.length||c(k.key),g(k.fullPath,k),an(k)),d()}),b=d=>a.collapsed=d,h=(d,v=1)=>a.menuTagOptions.splice(d,v),S=async()=>{s.value&&(await m(),s.value=!1)};return De(()=>t.fullPath,async(d,v)=>{await S(),d!==v&&await f(d,t.query)},{immediate:!0}),{...we(a),changeMenuModelValue:y,collapsedMenu:b,spliceMenTagOptions:h,setMenuTagOptions:p,resolveOption:u,updateMenuState:i,setupAppMenu:m}},{persist:{key:J.appPiniaMenuStore,storage:window.localStorage,pick:["breadcrumbOptions","menuKey","menuTagOptions","collapsed"]}}),Wn=dt("signing",()=>{const e=re({signingCallback:{}}),n=l=>new Promise((a,s)=>{pn(l)?s({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:l.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},a({code:0,message:"登陆成功",data:e.signingCallback}))}),t=l=>{const{closeAll:a}=eo(),{appPiniaMenuStore:s,appPiniaSigningStore:i,token:u,signing:c,appMenuKey:p}=J;window.$message.info("账号退出中..."),ye("__all_sessionStorage__","sessionStorage"),ye(i,"localStorage"),ye(s,"localStorage"),ye(u,"localStorage"),ye(c,"localStorage"),ye(p,"localStorage"),ye(J.isAppLockScreen,"localStorage"),a(),l&&(window.location.replace("#/"),setTimeout(()=>{window.location.reload()},0))},o=()=>{t(!0)};return{...we(e),signing:n,logout:o,clearSigningCallback:t}},{persist:{key:J.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),qn=dt("keepAlive",()=>{const e=re({keepAliveInclude:[]}),n=()=>e.keepAliveInclude.length,t=l=>{const a=n(),{name:s,meta:{keepAlive:i}}=l,{maxKeepAliveLength:u}=Ee().keepAliveConfig;if(i){if(a=u&&(e.keepAliveInclude.splice(0,1),e.keepAliveInclude.push(s))}},o=()=>e.keepAliveInclude;return{...we(e),setKeepAliveInclude:t,getKeepAliveInclude:o}},{persist:{key:J.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),ke=()=>{const e=Bt(),n=C(()=>e.options),t=C(()=>e.breadcrumbOptions),o=C(()=>e.menuKey),l=C(()=>{const{getRootPath:i}=Le();return e.menuTagOptions.map((u,c,p)=>(u.key===o.value&&u.key!==i.value?u.closeable=!0:u.closeable=!1,u.key===i.value&&(u.closeable=!1),p.length<=1&&(u.closeable=!1),u))}),a=C(()=>e.currentMenuOption),s=C(()=>e.collapsed);return{getMenuOptions:n,getBreadcrumbOptions:t,getMenuKey:o,getMenuTagOptions:l,getCurrentMenuOption:a,getCollapsed:s}},Ie=()=>{const{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:l,updateMenuState:a,setupAppMenu:s}=Bt();return{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:l,updateMenuState:a,setupAppMenu:s}},Y=()=>{const e=Ee(),n=C(()=>e.drawerPlacement),t=C(()=>e.primaryColorOverride),o=C(()=>e._appTheme),l=C(()=>e.appTheme),a=C(()=>e.menuTagSwitch),s=C(()=>e.breadcrumbSwitch),i=C(()=>e.localeLanguage),u=C(()=>e.lockScreenSwitch),c=C(()=>e.copyrightSwitch),p=C(()=>e.contentTransition),g=C(()=>e.watermarkSwitch),y=C(()=>e.watermarkConfig),f=C(()=>e.appRootRoute),m=C(()=>e.sideBarLogo),b=C(()=>e.keepAliveConfig),h=C(()=>e.menuConfig),S=C(()=>e.colorWeakness),d=C(()=>e.dynamicDocumentTitle);return{getDrawerPlacement:n,getPrimaryColorOverride:t,getAppTheme:o,getMenuTagSwitch:a,getBreadcrumbSwitch:s,getLocaleLanguage:i,getLockScreenSwitch:u,getCopyrightSwitch:c,getContentTransition:p,getWatermarkSwitch:g,getWatermarkConfig:y,getAppRootRoute:f,getSideBarLogo:m,getKeepAliveConfig:b,getMenuConfig:h,getAppThemeStr:l,getColorWeakness:S,getDynamicDocumentTitle:d}},$=()=>{const{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=Ee();return{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}},Gn=()=>{const e=Wn();return{getSigningCallback:C(()=>e.signingCallback)}},Hn=()=>{const{signing:e,logout:n,clearSigningCallback:t}=Wn();return{signing:e,logout:n,clearSigningCallback:t}},$r=()=>{const e=qn();return{getKeepAliveInclude:C(()=>e.keepAliveInclude)}},Kr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:n}=qn();return{setKeepAliveInclude:e,getKeepAliveInclude:n}},Ai=e=>{const n=ra();e.use(n),n.use(la)},Yn=e=>{const{getSigningCallback:n}=Gn(),{role:t}=e;return He!=null&&He.length&&He.includes(n.value.role)||!t||!(t!=null&&t.length)?!0:t?t.includes(n.value.role):!0},Wr=e=>{const{setupRouterLoadingBar:n,setupRouterGuard:t}=Xa;n&&Zl(e),t&&Xl(e)},qr=e=>{if(!Array.isArray(e))return;const n=t=>{for(const o of t){if((!o.children||o.children.length===0)&&!o.meta.windowOpen)return o;{const l=n(o.children||[]);if(l)return l}}};return n(e)},Gr=ne(),Hr=R({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=pt(),{getSideBarLogo:n}=Y();return{sideBarLogo:n,sideBarLogoClick:()=>{n.value&&n.value.url&&(n.value.jumpType==="station"?e.push(n.value.url):window.open(n.value.url))},TemplateLogo:({cursor:l})=>{if(!n.value)return null;if(typeof n.value.icon=="string")return r(P,{name:n.value.icon,size:"30",cursor:l},null);if(ge(n.value.icon,"Object"))return Se(n.value.icon)}}},render(){const{sideBarLogo:e,collapsed:n,TemplateLogo:t,sideBarLogoClick:o}=this;return e!=null&&e.title?r("div",{class:["ray-menu__logo",e!=null&&e.url?"ray-menu__logo-url":null],onClick:o.bind(this),ref:Gr},[e!=null&&e.icon?n?r(nt,{placement:"right"},{trigger:()=>t({cursor:"pointer"}),default:()=>e.title}):t({cursor:"pointer"}):n?r(nt,{placement:"right"},{trigger:()=>r(Wt,{type:"primary",size:18},{default:()=>{var l;return[((l=e.title)==null?void 0:l[0])||null]}}),default:()=>e.title}):null,r(Wt,{class:[n?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"'],type:"primary",size:18},{default:()=>[r(hn,null,{default:()=>[e.title]})]})]):null}}),Yr=R({name:"AppMenu",setup(){const e=ne(),{changeMenuModelValue:n,collapsedMenu:t,updateMenuState:o}=Ie(),{getMenuConfig:l}=Y(),{getMenuOptions:a,getCollapsed:s,getMenuKey:i}=ke(),u=C({get:()=>(setTimeout(()=>{g(),Pn()},300),i.value),set:()=>{c.value&&fe("globalDrawerValue",!1)}}),{isTabletOrSmaller:c}=We({observer:f=>{f&&o("collapsed",!1)}}),p=C({get:()=>mt("globalDrawerValue").value,set:f=>{fe("globalDrawerValue",f)}}),g=()=>{const f=u.value;f!=null&&ee(()=>{var m,b;return(b=(m=e.value)==null?void 0:m.showOption)==null?void 0:b.call(m,f)})};return{isTabletOrSmaller:c,BasicMenu:()=>r(ko,{class:"app-menu__sider",showTrigger:!c.value,collapseMode:l.value.collapsedMode,collapsedWidth:l.value.collapsedWidth,onUpdateCollapsed:t.bind(this),width:l.value.menuWidth,nativeScrollbar:l.value.nativeScrollbar,ref:Mn,collapsed:s.value,onExpand:()=>{o("collapsed",!1)},onCollapse:()=>{o("collapsed",!0)},inverted:l.value.inverted},{default:()=>[l.value.menuSiderBarLogo?r(Hr,{collapsed:s.value},null):null,r(To,{ref:e,class:"r-menu--app",keyField:"fullPath",value:u.value,"onUpdate:value":f=>u.value=f,options:a.value,indent:l.value.collapsedIndent,collapsed:s.value,collapsedIconSize:l.value.collapsedIconSize,collapsedWidth:l.value.collapsedWidth,onUpdateValue:(f,m)=>{n(f,m)},accordion:l.value.accordion,iconSize:l.value.iconSize,inverted:l.value.inverted},null)]}),modelGlobalDrawerValue:p}},render(){const{isTabletOrSmaller:e,BasicMenu:n}=this;return e?r(vn,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":t=>this.modelGlobalDrawerValue=t,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[r(n,null,null)]}):r(n,null,null)}});class Xr{constructor(){Ut(this,"pendingRequest");this.pendingRequest=new Map}isAppending(n){var t;return((t=n.cancelConfig)==null?void 0:t.cancel)??!0}generateRequestKey(n){const{method:t,url:o}=n;return[o||"",t||"",JSON.stringify(n.params),JSON.stringify(n.data)].join("&")}addPendingRequest(n){var t;if(this.isAppending(n)){n.__CANCELER_TAG_RAY_TEMPLATE__="__CANCELER_TAG_RAY_TEMPLATE__";const o=this.generateRequestKey(n);if(this.pendingRequest.has(o))n.signal=(t=this.pendingRequest.get(o))==null?void 0:t.signal;else{const l=new AbortController;n.signal=l.signal,this.pendingRequest.set(o,l)}}}removePendingRequest(n){const t=this.generateRequestKey(n);this.pendingRequest.has(t)&&(this.pendingRequest.get(t).abort(),this.pendingRequest.delete(t))}cancelAllRequest(){this.pendingRequest.forEach(n=>{n.abort()})}}const _t={requestInstance:null,responseInstance:null},St={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},Xe={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},Jr=new Xr,Ri=()=>{const e=(i,u)=>{u==="requestInstance"?_t.requestInstance=i:_t.responseInstance=i},n=i=>_t[i],t=(i,u,c)=>{c==="ok"?St[i]=u:Xe[i]=u},o=(i,u)=>u==="ok"?St[i]:Xe[i],l=(i,...u)=>{Array.isArray(i)&&i.forEach(c=>{typeof c=="function"&&c(...u)})};return{createAxiosInstance:e,setImplement:t,getImplement:o,getAxiosInstance:n,beforeFetch:(i,u,c)=>{const p=c==="ok"?St[u]:Xe[u],g=n(i),{MODE:y}=Ot();g&&l(p,g,y)},fetchError:(i,u,c)=>{const p=Xe[c],{MODE:g}=Ot();l(p,u,g)}}},Zr=R({name:"AppRequestCancelerProvider",setup(e,{expose:n}){fa(()=>{Jr.cancelAllRequest()}),n()},render(){return r("div",{class:"app-style-provider"},null)}}),Xn=R({name:"LayoutContentWrapper",setup(){pt();const{maximize:e}=Qn(),{getContentTransition:n}=Y(),t=B(!1),o={opacitySpinning:"0"},{globalMainLayoutLoad:l,layoutContentMaximize:a,layoutContentSpinning:s}=Za();return{globalMainLayoutLoad:l,spinning:t,themeOverridesSpin:o,getContentTransition:n,layoutContentMaximize:a,maximize:e,layoutContentSpinning:s}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:n,layoutContentSpinning:t,maximize:o,spinning:l,themeOverridesSpin:a,getContentTransition:s}=this;return r(ut,{show:l||!e||t,description:"loading...",size:"large",themeOverrides:a,class:[n?"r-layout-full__viewer-content--maximize":null]},{default:()=>[n?r("div",{class:"layout-content__maximize-out",onClick:()=>{o(!1)}},[r(P,{name:"out",size:"16",cursor:"pointer"},null)]):null,r(Zr,null,null),e?r(Or,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),Qr=Object.freeze(Object.defineProperty({__proto__:null,default:Xn},Symbol.toStringTag,{value:"Module"}));var es={pkg:{dependencies:{"@logicflow/core":"2.0.6","@logicflow/extension":"2.0.10","@vueuse/core":"^11.2.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.1","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.13","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^8.13.0","@typescript-eslint/parser":"^8.13.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.1","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5","rollup-plugin-gzip":"4.0.1",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.6.3","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.1.10"},name:"ray-template",version:"5.0.6"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const ts=R({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=es;return{copyright:e}},render(){return this.copyright?r("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),ns=R({name:"TooltipIcon",props:{...Oo,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:n}){const t=l=>{n("click",l)};return{iconClick:t,Icon:()=>r(P,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:t.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?r(nt,this.$props,{trigger:()=>r(e,null,null),default:()=>this.tooltipText}):r(e,null,null)}}),os=R({name:"ThemeSegment",setup(){const{system:e}=_n(),{getAppThemeStr:n,getAppTheme:t}=Y(),{updateSettingState:o}=$(),l=[{label:"深色",key:"dark",icon:()=>r(P,{name:"dark",size:"16"},null)},{label:"浅色",key:"light",icon:()=>r(P,{name:"light",size:"16"},null)},{label:"自动",key:"auto",icon:()=>r(P,{name:"system_os",size:"16"},null)}],a=C({get:()=>n.value==="auto"?"auto":t.value?"dark":"light",set:i=>{s(i,e.value)}}),s=(i,u)=>{if(i==="auto"){o("_appTheme",u==="dark"),o("appTheme","auto");return}o("_appTheme",i==="dark"),o("appTheme",i)};return de(()=>{s(a.value,e.value)}),{options:l,modelAppTheme:a}},render(){const{options:e}=this;return r(Dr,{options:e,size:"small",width:"block",value:this.modelAppTheme,"onUpdate:value":n=>this.modelAppTheme=n},null)}}),Ke=Symbol("segmentDrawer"),as=R({name:"SegmentViewsAppearance",setup(){const e=Ce(Ke,{}),{changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=$();return{toggleColorWeakness:o,model:e,changePrimaryColor:n,updateSettingState:t}},render(){const{toggleColorWeakness:e,model:n,changePrimaryColor:t,updateSettingState:o}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,null,{default:()=>[W("系统主题")]}),r(os,null,null),r(le,null,{default:()=>[W("内置主题")]}),r(Ao,{showPreview:!0,swatches:ie.appThemeColors,value:n.primaryColorOverride.common.primaryColor,"onUpdate:value":l=>n.primaryColorOverride.common.primaryColor=l,onUpdateValue:t.bind(this)},null),r(le,null,{default:()=>[W("切换动画")]}),r(qt,{value:n.contentTransition,"onUpdate:value":l=>n.contentTransition=l,options:Wa,onUpdateValue:l=>{o("contentTransition",l)}},null),r(le,null,{default:()=>[W("配置入口出现位置")]}),r(qt,{value:n.drawerPlacement,"onUpdate:value":l=>n.drawerPlacement=l,options:[{label:"右边",value:"right"},{label:"左边",value:"left"}],onUpdateValue:l=>{o("drawerPlacement",l)}},null),r(le,null,{default:()=>[W("其他设置")]}),r(ce,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(D,{label:"面包屑"},{default:()=>[r(te,{value:n.breadcrumbSwitch,"onUpdate:value":l=>n.breadcrumbSwitch=l,onUpdateValue:l=>o("breadcrumbSwitch",l)},null)]}),r(D,{label:"标签页"},{default:()=>[r(te,{value:n.menuTagSwitch,"onUpdate:value":l=>n.menuTagSwitch=l,onUpdateValue:l=>o("menuTagSwitch",l)},null)]}),r(D,{label:"页底信息"},{default:()=>[r(te,{value:n.copyrightSwitch,"onUpdate:value":l=>n.copyrightSwitch=l,onUpdateValue:l=>o("copyrightSwitch",l)},null)]}),r(D,{label:"色弱模式"},{default:()=>[r(te,{value:n.colorWeakness,"onUpdate:value":l=>n.colorWeakness=l,onUpdateValue:l=>{o("colorWeakness",l),e(l)}},null)]})]})]})}}),ls=R({name:"SegmentViewsCommon",setup(){const e=Ce(Ke,{}),{updateSettingState:n}=$();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,null,{default:()=>[W("基础设置")]}),r(ce,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(D,{label:"页面缓存"},{default:()=>[r(te,{value:e.keepAliveConfig.setupKeepAlive,"onUpdate:value":t=>e.keepAliveConfig.setupKeepAlive=t,onUpdateValue:t=>n("keepAliveConfig",{setupKeepAlive:t})},null)]}),r(D,{label:"动态浏览器标题"},{default:()=>[r(te,{value:e.dynamicDocumentTitle,"onUpdate:value":t=>e.dynamicDocumentTitle=t,onUpdateValue:t=>n("dynamicDocumentTitle",t)},null)]})]}),r(le,null,{default:()=>[W("缓存设置")]}),r(ce,{labelPlacement:"top",showFeedback:!0,showRequireMark:!1,model:e.keepAliveConfig},{default:()=>[r(D,{label:"最大缓存数",feedback:C(()=>e.keepAliveConfig.maxKeepAliveLength<=0?"设置为【0】时,缓存将会失效":"").value},{default:()=>[r(H,{disabled:!e.keepAliveConfig.setupKeepAlive,value:e.keepAliveConfig.maxKeepAliveLength,"onUpdate:value":t=>e.keepAliveConfig.maxKeepAliveLength=t,min:0,precision:0,showButton:!1,onUpdateValue:t=>n("keepAliveConfig",{maxKeepAliveLength:t})},null)]}),r(D,{label:"排除缓存"},{default:()=>[r(Ro,{type:"success",value:e.keepAliveConfig.keepAliveExclude,"onUpdate:value":t=>e.keepAliveConfig.keepAliveExclude=t},null)]})]})]})}}),rs=R({name:"SegmentViewsWatermark",setup(){const e=Ce(Ke,{}),{updateSettingState:n}=$();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,null,{default:()=>[W("基础设置")]}),r(ce,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(D,{label:"全屏水印"},{default:()=>[r(te,{value:e.watermarkSwitch,"onUpdate:value":t=>e.watermarkSwitch=t,onUpdateValue:t=>n("watermarkSwitch",t)},null)]}),r(D,{label:"跨边界显示"},{default:()=>[r(te,{value:e.watermarkConfig.cross,"onUpdate:value":t=>e.watermarkConfig.cross=t,onUpdateValue:t=>n("watermarkConfig",{cross:t})},null)]})]}),r(le,null,{default:()=>[W("个性化水印")]}),r(ce,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(D,{label:"水印内容"},{default:()=>[r(Et,{value:e.watermarkConfig.content,"onUpdate:value":t=>e.watermarkConfig.content=t,onUpdateValue:t=>n("watermarkConfig",{content:t})},null)]}),r(D,{label:"字体尺寸"},{default:()=>[r(H,{precision:0,showButton:!1,value:e.watermarkConfig.fontSize,"onUpdate:value":t=>e.watermarkConfig.fontSize=t,onUpdateValue:t=>n("watermarkConfig",{fontSize:t})},null)]}),r(D,{label:"字体行高"},{default:()=>[r(H,{precision:0,showButton:!1,value:e.watermarkConfig.lineHeight,"onUpdate:value":t=>e.watermarkConfig.lineHeight=t,onUpdateValue:t=>n("watermarkConfig",{lineHeight:t})},null)]}),r(D,{label:"字体宽度"},{default:()=>[r(H,{precision:0,showButton:!1,value:e.watermarkConfig.width,"onUpdate:value":t=>e.watermarkConfig.width=t,onUpdateValue:t=>n("watermarkConfig",{width:t})},null)]}),r(D,{label:"字体高度"},{default:()=>[r(H,{precision:0,showButton:!1,value:e.watermarkConfig.height,"onUpdate:value":t=>e.watermarkConfig.height=t,onUpdateValue:t=>n("watermarkConfig",{height:t})},null)]}),r(D,{label:"x轴偏移"},{default:()=>[r(H,{precision:0,showButton:!1,value:e.watermarkConfig.xOffset,"onUpdate:value":t=>e.watermarkConfig.xOffset=t,onUpdateValue:t=>n("watermarkConfig",{xOffset:t})},null)]}),r(D,{label:"x轴间隙"},{default:()=>[r(H,{precision:0,showButton:!1,value:e.watermarkConfig.xGap,"onUpdate:value":t=>e.watermarkConfig.xGap=t,onUpdateValue:t=>n("watermarkConfig",{xGap:t})},null)]}),r(D,{label:"y轴偏移"},{default:()=>[r(H,{precision:0,showButton:!1,value:e.watermarkConfig.yOffset,"onUpdate:value":t=>e.watermarkConfig.yOffset=t,onUpdateValue:t=>n("watermarkConfig",{yOffset:t})},null)]}),r(D,{label:"y轴间隙"},{default:()=>[r(H,{precision:0,showButton:!1,value:e.watermarkConfig.yGap,"onUpdate:value":t=>e.watermarkConfig.yGap=t,onUpdateValue:t=>n("watermarkConfig",{yGap:t})},null)]}),r(D,{label:"旋转角度"},{default:()=>[r(H,{precision:0,showButton:!1,value:e.watermarkConfig.rotate,"onUpdate:value":t=>e.watermarkConfig.rotate=t,onUpdateValue:t=>n("watermarkConfig",{rotate:t})},null)]})]})]})}}),ss=R({name:"SegmentViewsCustomMenu",setup(){const e=Ce(Ke,{}),{updateSettingState:n}=$();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,{titlePlacement:"center"},{default:()=>[r(I,{wrap:!1,align:"center",size:[4,0]},{default:()=>[r(nt,{placement:"top",showArrow:!1},{trigger:()=>r(P,{name:"question",size:"16"},null),default:()=>"菜单更新是一个复杂、耗时的操作,请手动点击【更新菜单】按钮更新设置"}),r(yn,null,{default:()=>[W("菜单样式")]})]})]}),r(ce,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(D,{label:"每级菜单缩进"},{default:()=>[r(H,{value:e.menuConfig.collapsedIndent,"onUpdate:value":t=>e.menuConfig.collapsedIndent=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIndent:t})},null)]}),r(D,{label:"菜单图标尺寸"},{default:()=>[r(H,{value:e.menuConfig.iconSize,"onUpdate:value":t=>e.menuConfig.iconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{iconSize:t})},null)]}),r(D,{label:"折叠菜单图标尺寸"},{default:()=>[r(H,{value:e.menuConfig.collapsedIconSize,"onUpdate:value":t=>e.menuConfig.collapsedIconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIconSize:t})},null)]}),r(D,{label:"菜单宽度"},{default:()=>[r(H,{value:e.menuConfig.menuWidth,"onUpdate:value":t=>e.menuConfig.menuWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{menuWidth:t})},null)]}),r(D,{label:"折叠菜单宽度"},{default:()=>[r(H,{value:e.menuConfig.collapsedWidth,"onUpdate:value":t=>e.menuConfig.collapsedWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedWidth:t})},null)]}),r(D,{showFeedback:!1,showLabel:!1},{default:()=>[r(X,{onClick:e.throttleSetupAppMenu,block:!0,type:"primary"},{default:()=>[W("更新菜单")]})]})]}),r(le,null,{default:()=>[W("其他设置")]}),r(ce,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(D,{label:"反转色菜单"},{default:()=>[r(te,{value:e.menuConfig.inverted,"onUpdate:value":t=>e.menuConfig.inverted=t,onUpdateValue:t=>n("menuConfig",{inverted:t})},null)]}),r(D,{label:"菜单标题"},{default:()=>[r(te,{value:e.menuConfig.menuSiderBarLogo,"onUpdate:value":t=>e.menuConfig.menuSiderBarLogo=t,onUpdateValue:t=>n("menuConfig",{menuSiderBarLogo:t})},null)]}),r(D,{label:"手风琴菜单"},{default:()=>[r(te,{value:e.menuConfig.accordion,"onUpdate:value":t=>e.menuConfig.accordion=t,onUpdateValue:t=>n("menuConfig",{accordion:t})},null)]}),r(D,{label:"原生滚动条"},{default:()=>[r(te,{value:e.menuConfig.nativeScrollbar,"onUpdate:value":t=>e.menuConfig.nativeScrollbar=t,onUpdateValue:t=>n("menuConfig",{nativeScrollbar:t})},null)]})]})]})}}),is=R({name:"SettingDrawer",props:Po,setup(){const{create:e}=dr(),{changePrimaryColor:n,updateSettingState:t}=$(),{getAppTheme:o,getPrimaryColorOverride:l,getMenuTagSwitch:a,getBreadcrumbSwitch:s,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c,getKeepAliveConfig:p,getMenuConfig:g,getDrawerPlacement:y,getColorWeakness:f,getWatermarkConfig:m,getDynamicDocumentTitle:b}=Y(),{setupAppMenu:h}=Ie(),S=xt(h,300),d=re({menuTagSwitch:a.value,breadcrumbSwitch:s.value,copyrightSwitch:i.value,contentTransition:u.value,watermarkSwitch:c.value,keepAliveConfig:p.value,menuConfig:g.value,drawerPlacement:y.value,colorWeakness:f.value,primaryColorOverride:l.value,watermarkConfig:m.value,dynamicDocumentTitle:b.value,throttleSetupAppMenu:S}),v=()=>{e({preset:"dialog",title:"恢复默认配置",type:"warning",content:"点击【确认初始化】按钮会恢复默认系统配置,是否继续?",positiveText:"确认初始化",negativeText:"取消",onPositiveClick:()=>{uo(zn(),(k,T)=>{d[T]=k,t(T,k)}),S()}})};return wn(Ke,d),{changePrimaryColor:n,getAppTheme:o,getPrimaryColorOverride:l,updateSettingState:t,modelReactive:d,defaultSettingBtnClick:v}},render(){const{defaultSettingBtnClick:e,$props:n}=this,{trapFocus:t,autoFocus:o,nativeScrollbar:l,...a}=n;return r(vn,N(a,{trapFocus:!1,autoFocus:!1,width:320}),{default:()=>[r(xo,{title:"个性化配置",closable:!0},{default:()=>r(gn,{type:"bar",animated:!0,defaultValue:"appearance"},{default:()=>[r(Ge,{name:"appearance",tab:"外观"},{default:()=>[r(as,null,null)]}),r(Ge,{name:"menu",tab:"菜单"},{default:()=>[r(ss,null,null)]}),r(Ge,{name:"watermark",tab:"水印"},{default:()=>[r(rs,null,null)]}),r(Ge,{name:"common",tab:"通用"},{default:()=>[r(ls,null,null)]})]}),footer:()=>r(I,{justify:"flex-start"},{default:()=>[r(X,{type:"warning",onClick:e},{icon:()=>r(P,{name:"reload"},null),default:()=>"初始化配置"})]})})]})}});function us(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const cs=R({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=Ie(),{getBreadcrumbOptions:n}=ke(),{isTabletOrSmaller:t}=We();return{getBreadcrumbOptions:n,dropdownSelect:(a,s)=>{e(a,s)},breadcrumbItemClick:a=>{var s;if(!((s=a.children)!=null&&s.length)){const{meta:i={}}=a;i.sameLevel||e(a.fullPath,a)}},isTabletOrSmaller:t}},render(){let e;const{isTabletOrSmaller:n,getBreadcrumbOptions:t}=this,{dropdownSelect:o,breadcrumbItemClick:l}=this;return n?r("div",{style:"display: none;"},null):r(Eo,null,{default:()=>[r(ja,{tag:"li",name:"breadcrumb",appear:!0},us(e=t.map(a=>r(Mo,{key:a.fullPath,onClick:l.bind(this,a)},{default:()=>{var s;return[r(Me,{labelField:"breadcrumbLabel",keyField:"fullPath",options:a.children&&((s=a.children)==null?void 0:s.length)>1?a.children:[],onSelect:o.bind(this)},{default:()=>r("span",null,[a.label&&typeof a.label=="function"?a.label():a.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function wt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const ds=R({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:n}){const{changeMenuModelValue:t,resolveOption:o}=Ie(),{getRoutes:l}=pt(),a=C({get:()=>e.show,set:_=>{n("update:show",_),_||f()}}),s=re({searchValue:null,searchOptions:[]}),i=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let u=0,c=u;const{isTabletOrSmaller:p}=We(),g=B(!1),y="content-item--active",f=()=>{s.searchOptions=[],s.searchValue=null,u=0,c=u},m=_=>{a.value||(_.ctrlKey||_.metaKey)&&_.key==="k"&&(_.preventDefault(),_.stopPropagation(),f(),a.value=!0)},b=_=>{if(_)g.value=!0;else{g.value=!1,s.searchOptions=[];return}const x=l().reduce((A,L)=>{var K;const w=je(L,["children","meta","path","name"]),E=o({...w,fullPath:L.path}),{breadcrumbLabel:U}=E;return(K=U==null?void 0:U.toLocaleLowerCase())!=null&&K.includes(_.toLocaleLowerCase())&&Dn(E)&&A.push(E),A},[]);setTimeout(()=>{s.searchOptions=x,ee().then(()=>{S()}),g.value=!1},300)},h=_=>{if(_){const{meta:x}=_;x.windowOpen?window.open(x.windowOpen):(a.value=!1,t(_.fullPath,_),setTimeout(Pn,300))}},S=()=>{const _=s.searchOptions[u],x=s.searchOptions[c];_&&ee().then(()=>{const A=rt(`attr:data_path="${_.path}"`),L=x?rt(`attr:data_path="${x==null?void 0:x.path}"`):null;if(L!=null&&L.length){const[w]=L;ta(w,y)}if(A!=null&&A.length){const[w]=A;An(w,y)}})},d=_=>{const{icon:x}=_;return typeof x=="string"&&x?r(P,{name:x,size:"24"},null):typeof x=="function"?r(x,null,null):r(P,{name:"search",size:"24"},null)},v=_=>{_==="up"&&(u-=1,u<0&&(u=s.searchOptions.length-1)),_==="down"&&(u+=1,u>=s.searchOptions.length&&(u=0))},k=_=>{const x=_.key;switch((x==="ArrowUp"||x==="ArrowDown"||x==="Enter")&&(_.preventDefault(),_.stopPropagation()),c=u<=0?0:u,x){case"ArrowUp":v("up");break;case"ArrowDown":v("down");break;case"Enter":const A=s.searchOptions[u];A&&h(A);break}S()},T=({menuOption:_})=>r(I,N({align:"center",class:"content-item"},{onClick:h.bind(this,_),data_path:_.path}),{default:()=>[r("div",{class:"content-item-icon"},[d(_.meta)]),r("div",{class:"content-item-label"},[_.breadcrumbLabel]),r(P,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return de(()=>{p.value&&(a.value=!1)}),Ne(window,"keydown",_=>{m(_),k(_)},!0),{...we(s),modelShow:a,helperTipOptions:i,fuzzySearchMenuOptions:xt(b,300),searchItemClick:h,RenderPreIcon:d,isTabletOrSmaller:p,SearchItem:T,loading:g}},render(){const{isTabletOrSmaller:e,searchOptions:n,loading:t}=this,{SearchItem:o,fuzzySearchMenuOptions:l}=this;return e?r("div",{style:"display: none;"},null):r(mn,{show:this.modelShow,"onUpdate:show":a=>this.modelShow=a,transformOrigin:"center",displayDirective:"if"},{default:()=>[r("div",{class:"global-search global-search--dark global-search--light"},[r("div",{class:"global-search__wrapper"},[r(it,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>r(Et,{size:"large",value:this.searchValue,"onUpdate:value":a=>this.searchValue=a,clearable:!0,onInput:l.bind(this)},{prefix:()=>r(P,{name:"search",size:"24"},null)}),default:()=>{let a;return r(Mt,null,{default:()=>[r(ut,{show:t},{default:()=>[n.length?r(I,{vertical:!0,size:[0,6],class:"global-search__card-content"},wt(a=n.map((s,i)=>r(o,{menuOption:s,key:s.fullPath},null)))?a:{default:()=>[a]}):r(Do,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>r(I,{justify:"center",class:"global-search__empty-content"},{default:()=>[r(yn,null,{default:()=>[W("没有搜索结果")]})]})})]})]})},action:()=>{let a;return r(I,{justify:"flex-start",align:"center",size:[16,0]},wt(a=this.helperTipOptions.map(s=>r(I,{key:s.label,size:[4,0]},{default:()=>[s.icon.map(i=>r(I,{class:"item-icon",align:"center",justify:"center"},wt(i)?i:{default:()=>[i]})),r(I,{class:"item-label",align:"center"},{default:()=>[s.label]})]})))?a:{default:()=>[a]})}})])])]})}}),ps=R({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const o=na();return o==="MacOS"?"⌘ + K":"CTRL + K"},click:o=>{const{onClick:l}=e;l&&F(l,o)}}},render(){const{getShortcutKeyAboutSystem:e,click:n,$t:t}=this;return r(X,{bordered:!1,onClick:n.bind(this),round:!0,tertiary:!0,style:"margin-right: 16px"},{icon:()=>r(P,{name:"search",size:"16"},null),default:()=>r(I,{align:"center"},{default:()=>[t("headerTooltip.Search"),r("div",{class:"global-search-btn__label"},[e()])]})})}}),Jn=R({name:"AppAvatar",props:{...zo,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number,Array],default:"medium"},avatarSize:{type:[String,Number],default:"medium"},vertical:{type:Boolean,default:!1}},setup(){const{getSigningCallback:e}=Gn();return{getSigningCallback:e}},render(){const{getSigningCallback:e,avatarSize:n,spaceSize:t,$props:o,vertical:l}=this;return r(X,{quaternary:!0,strong:!0,focusable:!1},{default:()=>[r(I,{align:"center",size:t,vertical:l},{default:()=>[r(Io,N(o,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:n}),{default:()=>{var a;return e.avatar?null:(a=e==null?void 0:e.name)==null?void 0:a[0]}}),e==null?void 0:e.name]})]})}}),ms=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],fs={logout:()=>{const{logout:e}=Hn();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=$();e("lockScreenSwitch",!0)}},gs=e=>{const n=fs[e];n?n():window.$message.info("这个人很懒, 没做这个功能~")},hs=e=>{const{isTabletOrSmaller:n}=e,t=[],o=[{name:"menu",size:18,eventKey:"menu"}];return n.value?o:t},vs=e=>{const{isTabletOrSmaller:n}=e,t=[{name:"fullscreen",size:18,eventKey:"screen"},{name:"github",size:18,eventKey:"github"},{name:"setting",size:18,eventKey:"setting"}],o=[...t],l=[...t];return n.value?l:o},ys=R({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:n}=$(),{t}=$e(),[o,{toggleFullscreen:l,isEnabled:a}]=Tn(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:i}=Y(),u=B(!1),c=B(!1),{isTabletOrSmaller:p}=We(),g=mt("globalDrawerValue"),y=C(()=>hs({isFullscreen:o,isTabletOrSmaller:p})),f=C(()=>vs({isFullscreen:o,isTabletOrSmaller:p})),m={search:()=>{c.value=!0},setting:()=>{u.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{a||window.$message.warning(t("globalMessage.isEnabledFullscreen")),l()},lock:()=>{n("lockScreenSwitch",!0)},menu:()=>{fe("globalDrawerValue",!g.value)}};return{leftIconOptions:y,rightTooltipIconOptions:f,toolIconClick:S=>{var d;(d=m[S])==null||d.call(m)},showSettings:u,updateLocale:e,getDrawerPlacement:s,getBreadcrumbSwitch:i,globalSearchShown:c,isRenderVNode:S=>p.value?null:S}},render(){const{rightTooltipIconOptions:e,leftIconOptions:n,getDrawerPlacement:t,getBreadcrumbSwitch:o}=this,{toolIconClick:l,updateLocale:a,isRenderVNode:s}=this;return r(bn,{class:"layout-header"},{default:()=>[r(ds,{show:this.globalSearchShown,"onUpdate:show":i=>this.globalSearchShown=i},null),r(I,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[r(I,{align:"center",wrap:!1},{default:()=>[n.map(i=>r(ns,{key:i.name,iconName:i.name,tooltipText:Sn(i.tooltip)?i.tooltip.value:i.tooltip,customClassName:i.iconClass,onClick:l.bind(this,i.name)},null)),o?r(cs,null,null):null]}),r(I,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[s(r(ps,{onClick:i=>{i.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(i=>r(X,{class:"override-button__layout",quaternary:!0,size:"medium",key:i.name,onClick:l.bind(this,i.name),focusable:!1},{default:()=>[r(P,{name:i.name,size:16,cursor:"pointer"},null)]})),r(Me,{options:xn,onSelect:i=>a(String(i)),trigger:"click"},{default:()=>[r(X,{quaternary:!0,class:"override-button__layout",focusable:!1},{default:()=>[r(P,{customClassName:"layout-header__method--icon",name:"language",size:"16",cursor:"pointer"},null)]})]}),r(Me,{options:ms(),onSelect:gs.bind(this),trigger:"click"},{default:()=>[r(Jn,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),r(is,{show:this.showSettings,"onUpdate:show":i=>this.showSettings=i,placement:t},null)]})}}),bs=R({name:"LayoutHeaderWrapper",setup(){return{}},render(){return r(I,{size:[0,0]},{default:()=>[r(ys,null,null)]})}});function _s(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const Ss=R({name:"AppMenuTag",setup(e,{expose:n}){const t=se("scrollRef"),{getMenuKey:o,getMenuTagOptions:l}=ke(),{changeMenuModelValue:a}=Ie(),{getRootPath:s}=Le(),{maximize:i}=Qn(),{reload:u}=Ms(),{close:c,closeAll:p,closeRight:g,closeLeft:y,closeOther:f,checkCloseLeft:m,checkCloseRight:b}=eo(),h=["closeAll","closeRight","closeLeft","closeOther"];let S=1/0;const d={size:16},v=B([{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>r(P,{name:"close",size:d.size},null)},{label:"最大化当前页面",key:"maximizeLayoutContent",icon:()=>r(P,{name:"fullscreen_fold",size:d.size},null)},{label:"刷新当前页面",key:"reloadCurrentPage",icon:()=>r(P,{name:"reload",size:d.size},null)},{label:"新窗口打开",key:"windowOpenTab",icon:()=>r(P,{name:"shared",size:d.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>r(P,{name:"close_left",size:d.size},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>r(P,{name:"close_right",size:d.size},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>r(P,{name:"close_other",size:d.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>r(P,{name:"resize_h",size:d.size},null),disabled:!1}]),k=lt(16),T={closeCurrentPage:()=>{o.value!==s.value&&c(S)},reloadCurrentPage:()=>{u()},closeAll:()=>{p()},closeRight:()=>{g(S)},closeLeft:()=>{y(S)},closeOther:()=>{f(S)},windowOpenTab:()=>{const O=l.value[S];if(!(O!=null&&O.fullPath))return;const M=O.fullPath.startsWith("#")?O.fullPath:`#${O.fullPath}`;window.open(M,"_blank")},maximizeLayoutContent:()=>{const O=l.value[S];i(!0),O&&oe(O)}},_=re({x:0,y:0,actionDropdownShow:!1}),x="menu_tag_data",A=mt("globalMainLayoutLoad"),L="n-scrollbar-container";let w=o.value;const E=B(!1),U=O=>{c(O)},K=(O,M)=>{for(const Z of v.value)if(Z.key===O){Z.disabled=M;break}},oe=O=>{_.actionDropdownShow=!1,a(O.fullPath,O)},q=()=>{const O=document.getElementById(k);if(O)return Array.from(O.childNodes).find(qe=>oa(qe,L).value)},ve=O=>{var Z;const M=q();if(M){const qe=M.scrollLeft||0,Nt=O==="left"?Math.max(0,qe-200):qe+200;(Z=t.value)==null||Z.scrollTo({left:Nt,behavior:"smooth"})}},Oe=O=>{_.actionDropdownShow=!1;const M=T[O];M==null||M()},ae=(O,M)=>{M.preventDefault(),S=O,_.actionDropdownShow=!1,ee(()=>{_.x=M.clientX,_.y=M.clientY,_.actionDropdownShow=!0})},Vt=()=>{b(S)?K("closeRight",!1):K("closeRight",!0),m(S)?K("closeLeft",!1):K("closeLeft",!0)},no=()=>{S=l.value.findIndex(M=>M.fullPath===o.value),Vt()},oo=O=>{l.value.length>1&&O.fullPath!==s.value&&(O.closeable=!0),E.value=!0},ao=O=>{O.fullPath!==o.value&&(O.closeable=!1),E.value=!1},lo=()=>{q()&&ee().then(()=>{var M;(M=t.value)==null||M.scrollTo({left:99999,behavior:"smooth"})})},ft=()=>{ee().then(()=>{const O=rt(`attr:${x}="${o.value}"`);if(O!=null&&O.length){const[M]=O;ee().then(()=>{var Z;(Z=t.value)==null||Z.scrollTo({left:M.offsetLeft,behavior:"smooth"})})}})},ro=()=>{i(!0)};return De(()=>l.value,(O,M)=>{v.value.forEach(Z=>{h.includes(Z.key)&&(O.length>1?Z.disabled=!1:Z.disabled=!0)}),M!=null&&M.length&&(O.length>(M==null?void 0:M.length)?lo():O.length===(M==null?void 0:M.length)&&ft()),M===void 0&&ft()},{immediate:!0}),de(()=>{_.actionDropdownShow&&Vt(),w!==o.value&&(w=o.value,ft())}),n(),{getMenuTagOptions:l,closeCurrentMenuTag:U,getMenuKey:o,menuTagClick:oe,moreOptions:v,scrollX:ve,scrollRef:t,uuidScrollBar:k,actionDropdownSelect:Oe,actionState:_,menuTagContextMenu:ae,setCurrentContextmenuIndex:no,menuTagMouseenter:oo,menuTagMouseleave:ao,MENU_TAG_DATA:x,iconConfig:d,maximize:i,reload:u,globalMainLayoutLoad:A,maximizeBtnClick:ro,isMouseInMenuTag:E}},render(){let e;const{iconConfig:n,uuidScrollBar:t,getMenuTagOptions:o,MENU_TAG_DATA:l,globalMainLayoutLoad:a,isMouseInMenuTag:s}=this,{maximizeBtnClick:i,closeCurrentMenuTag:u,scrollX:c,$t:p,menuTagClick:g,menuTagContextMenu:y,menuTagMouseenter:f,menuTagMouseleave:m,actionDropdownSelect:b,reload:h}=this;return r(bn,null,{default:()=>[r("div",{class:"menu-tag"},[r(Me,{class:"menu-tag__dropdown",options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onSelect:b.bind(this),onClickoutside:()=>{s||(this.actionState.actionDropdownShow=!1)}},null),r(I,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0},{default:()=>[r(X,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.scrollX.bind(this,"left")},{icon:()=>r(P,{name:"expanded",width:n.size,height:n.size,customClassName:"menu-tag__left-arrow"},null)}),r(Mt,N({xScrollable:!0,ref:"scrollRef"},{id:t},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[r(I,{class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},_s(e=o.map((S,d)=>r(X,N({key:S.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:S.fullPath===this.getMenuKey?"primary":"default"},{onClick:g.bind(this,S),onContextmenu:y.bind(this,d),onMouseenter:f.bind(this,S),onMouseleave:m.bind(this,S),[l]:S.fullPath},{size:"small",focusable:!1,iconPlacement:"right"}),{default:()=>r(Cn,null,[r("span",null,{default:()=>{const{breadcrumbLabel:v,meta:{i18nKey:k}}=S;return k?p(k):v}})]),icon:()=>r(P,N({customClassName:"menu-tag__btn-icon",name:"close",size:"15"},{onMousedown:u.bind(this,d)}),null)})))?e:{default:()=>[e]})]}),r(I,{align:"center",inline:!0,wrap:!1,size:[0,0]},{default:()=>[r(X,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:c.bind(this,"right")},{icon:()=>r(P,{name:"expanded",width:n.size,height:n.size,style:{transform:"rotate(180deg)"}},null)}),r(X,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:i},{icon:()=>r(P,{name:"fullscreen_fold",width:n.size,height:n.size},null)}),r(X,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:()=>{h()}},{icon:()=>r(P,{name:"reload",width:n.size,height:n.size,customClassName:`${a?"":"menu-tag__right-setting--spinning"}`},null)}),r(jn,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:18,keyboard:!1},{default:()=>[r(X,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.setCurrentContextmenuIndex.bind(this)},{icon:()=>r(P,{name:"more",width:n.size,height:n.size},null)})]})]})]})])]})}}),ws=R({name:"LayoutFeatureWrapper",setup(){return{}},render(){return r(Ss,null,null)}}),Cs={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},rn=()=>({lockPassword:null}),sn=Vo(J.isAppLockScreen,!1,window.localStorage,{mergeDefaults:!0}),Zn=()=>({setLockAppScreen:t=>{sn.value=t},getLockAppScreen:()=>sn.value}),Ts=R({name:"UnlockScreen",setup(){const e=se("formRef"),n=se("inputInstRef"),{logout:t}=Hn(),{updateSettingState:o}=$(),{setLockAppScreen:l}=Zn(),{isTabletOrSmaller:a}=We(),s="HH:mm",i="A",u="YYYY-MM-DD",c="ddd",p=re({lockCondition:rn(),HH_MM:G().format(s),AM_PM:G().format(i),YY_MM_DD:G().format(u),DDD:G().format(c)}),g=setInterval(()=>{p.HH_MM=G().format(s),p.AM_PM=G().format(i)},6e3),y=setInterval(()=>{p.YY_MM_DD=G().format(u),p.DDD=G().format(c)},864e5),f=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{o("lockScreenSwitch",!1),setTimeout(()=>{t()},100)}})},m=()=>{var b;(b=e.value)==null||b.validate(h=>{h||(l(!1),o("lockScreenSwitch",!1),p.lockCondition=rn())})};return Te(()=>{ee(()=>{var b;(b=n.value)==null||b.focus()})}),Dt(()=>{clearInterval(g),clearInterval(y)}),{...we(p),backToSigning:f,unlockScreen:m,formRef:e,inputInstRef:n,isTabletOrSmaller:a}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:n,AM_PM:t,YY_MM_DD:o,DDD:l}=this,a=n.split(":"),{unlockScreen:s,backToSigning:i}=this;return r("div",{class:"app-lock-screen__content app-lock-screen__content--full"},[r("div",{class:"app-lock-screen__unlock"},[r("div",{class:"app-lock-screen__unlock__content"},[r("div",{class:"app-lock-screen__unlock__content-wrapper"},[r("div",{class:["app-lock-screen__unlock__content-bg__wrapper","app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[r("div",{class:"left"},[a[0]]),r("div",{class:"right"},[a[1]])])]),r("div",{class:"app-lock-screen__unlock__content-avatar"},[r(Jn,{avatarSize:52,style:"pointer-events: none;",vertical:!0},null)]),r("div",{class:"app-lock-screen__unlock__content-input"},[r(ce,{ref:"formRef",model:this.lockCondition,rules:Cs},{default:()=>[r(D,{path:"lockPassword"},{default:()=>[r(Et,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":u=>this.lockCondition.lockPassword=u,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,onKeydown:u=>{u.code==="Enter"&&s()}},null)]}),r(I,{justify:"space-between"},{default:()=>[r(X,{type:"primary",text:!0,onClick:i.bind(this)},{default:()=>[W("返回登陆")]}),r(X,{type:"primary",text:!0,onClick:s.bind(this)},{default:()=>[W("进入系统")]})]})]})]),r("div",{class:"app-lock-screen__unlock__content-date"},[r("div",{class:"current-year"},[o,W(" "),r("span",null,[l]),W(" "),r("span",null,[t])])])])])])}}),ks=e=>{const n=ht(e[0]),t=ht(e[1]),o=ht(e[2]);return C(()=>({"--window-width":"var(--html-width)","--window-height":"var(--html-height)","--layout-content-height":`calc(var(--html-height) - ${n.height.value}px - ${t.height.value}px - ${o.height.value}px)`,"--layout-content-width":`${n.width.value}px`,"--layout-siderbar-height":`${n.height.value}px`,"--layout-menutag-height":`${t.height.value}px`,"--layout-footer-height":`${o.height.value}px`}))},Os=R({name:"RLayout",setup(){const e=ne(),n=ne(),t=ne(),{getMenuTagSwitch:o,getCopyrightSwitch:l}=Y(),{getLockAppScreen:a}=Zn(),s=ks([e,n,t]);return{getMenuTagSwitch:o,cssVarsRef:s,getLockAppScreen:a,layoutSiderBarRef:e,layoutMenuTagRef:n,layoutFooterRef:t,getCopyrightSwitch:l}},render(){const{getMenuTagSwitch:e,cssVarsRef:n,getCopyrightSwitch:t}=this,{getLockAppScreen:o}=this;return o()?r(Ts,null,null):r(Lo,{class:"r-layout-full",style:[n],hasSider:!0,embedded:!0},{default:()=>[r(Yr,null,null),r(Gt,{class:"r-layout-full__viewer"},{default:()=>[r(bs,{ref:"layoutSiderBarRef"},null),e?r(ws,{ref:"layoutMenuTagRef"},null):null,r(Gt,{ref:Pe,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[r(Xn,null,null)]}),t?r(ts,{ref:"layoutFooterRef"},null):null]})]})}}),As=[{path:"/",name:"RLogin",component:()=>z(()=>import("./index-gQXTPbPZ.js"),__vite__mapDeps([97,41,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,48,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,81,82,83,39,40,59,42,43,44,45,46,47,49,50,51,52,53,54,55,56,98]))},{path:"/",name:"RLayout",component:Os,children:[...Ur(),{path:"/:catchAll(.*)",component:()=>z(()=>import("./index-C10J_LAt.js"),__vite__mapDeps([99,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,48,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,49,50,51,52,53,54,55,56,100])),meta:{i18nKey:j("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],st=ga({history:ha(),routes:As,scrollBehavior:e=>{Jl(e)}}),Pi=e=>{e.use(st),Wr(st)},jt=()=>st?{router:st}:{router:{}},un="YYYY-MM-DD HH:mm:ss",Rs=()=>({locale:s=>{const i=Ha[s];i?G.locale(i):G.locale(Ya)},getStartAndEndOfDay:s=>{const{format:i=un}=s??{},u=G(),c=u.startOf("day"),p=u.endOf("day"),g=u.format(i),y=c.format(i),f=p.format(i);return{today:u,startOfDay:c,endOfDay:p,formatToday:g,formatStartOfDay:y,formatEndOfDay:f}},format:(s,i)=>{const{format:u=un}=i??{};return G(s).format(u)},isDayjs:s=>G.isDayjs(s),daysDiff:(s,i)=>{const u=G(s);return G(i).diff(u,"days")},isDateInRange:(s,i)=>{const{start:u,end:c}=i,p=G(s);return p.isAfter(u)&&p.isBefore(c)}});function We(e){const{width:n,height:t}=No(e),o=B(!1),{observer:l}=e??{};return aa(()=>{const{media:s=768}=e??{};o.value=n.value<=s,l==null||l(o.value,{width:n.value,height:t.value})}),{width:n,height:t,isTabletOrSmaller:_e(o)}}let Je=999,Ct=!1;const be="ELEMENT-FULLSCREEN-RAY",cn=document.createElement("style"),Ps=(e,n)=>{const{beforeEnter:t,beforeExit:o,enter:l,exit:a,backgroundColor:s,zIndex:i,transition:u="transform 0.3s var(--r-bezier)"}=n??{};let c=!1;const p={x:null,y:null},g=B(!1),y=()=>{const h=me(e);if(!h)return;const{left:S,top:d}=h.getBoundingClientRect();p.x===null&&p.y===null&&(p.x=-S,p.y=-d),at(document.body,{"--element-fullscreen-z-index":ge(i,"Null")||ge(i,"Undefined")?Je:i,"--element-fullscreen-transition":u,"--element-fullscreen-background-color":s,"--element-fullscreen-width":"var(--html-width)","--element-fullscreen-height":"var(--html-height)","--element-fullscreen-transform-x":`${p.x}px`,"--element-fullscreen-transform-y":`${p.y}px`});const v=` - [${be}] { - position: fixed; - width: var(--element-fullscreen-width) !important; - height: var(--element-fullscreen-height) !important; - transform: translate(var(--element-fullscreen-transform-x), var(--element-fullscreen-transform-y)) !important; - transition: var(--element-fullscreen-transition); - z-index: var(--element-fullscreen-z-index) !important; - background-color: var(--element-fullscreen-background-color); - } - `.trim();cn.innerHTML=v,Ct||document.head.appendChild(cn)},f=()=>{const h=me(e);t==null||t(),h&&(h.getAttribute(be)||h.setAttribute(be,be),c||(c=!0,Je+=1),Ct||(y(),Ct=!0),h.style.transition=u,g.value=!0,l==null||l())},m=()=>{o==null||o();const h=me(e);h&&h.removeAttribute(be),g.value=!1,a==null||a()},b=()=>{const h=me(e);h&&(h.getAttribute(be)?m():f())};return Lt(()=>{const h=me(e);h&&h.removeAttribute(be),Je=Math.max(999,Je-1),g.value=!1}),{enter:f,exit:m,toggleFullscreen:b,isFullscreen:_e(g)}},Tt={svg:sa,png:ia,jpeg:ua,blob:ca,pixelData:da,canvas:pa},xi=(e,n)=>{const{beforeCreate:t,created:o,createdError:l,finally:a,imageType:s}=n??{};return{create:u=>new Promise((c,p)=>{var f;const g=me(e);if(t==null||t(g),!g)return l==null||l(),p("useDomToImage: element is undefined.");(f=Tt[u??s??"jpeg"])==null||f.call(Tt,g,n).then(m=>(o==null||o(m,g),c(m))).catch(m=>(l==null||l(m),p(m))).finally(()=>{a==null||a(g)})})}},Mi=(e,n)=>({print:()=>{const o=me(e)||e;Xo({...Ue(n,["printable"]),printable:o})}}),Ze={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},xs=(e,n)=>{const t=ne(e),o={onUpdatePage:d=>{var v;a.value.page=d,(v=t.value)==null||v.call(t)},onUpdatePageSize:d=>{var v;a.value.pageSize=d,a.value.page=Ze.page,(v=t.value)==null||v.call(t)}},l=C(()=>({...Ze,...Ue(n,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size"]),...o})),a=B(l.value),s=a.value.onUpdatePage,i=a.value.onUpdatePageSize,u=()=>a.value.itemCount,c=d=>{a.value.itemCount=d},p=()=>a.value.page,g=d=>{s(d)},y=()=>a.value.pageSize,f=d=>{i(d)},m=()=>a.value,b=t.value,h=d=>{t.value=d},S=()=>{const{pageSizes:d}=a.value;a.value.page=Ze.page,a.value.pageSize=(d==null?void 0:d[0])||Ze.pageSize};return Lt(()=>{t.value=void 0}),[a,{getItemCount:u,setItemCount:c,getPage:p,setPage:g,getPageSize:y,setPageSize:f,getPagination:m,getCallback:b,setCallback:h,resetPagination:S}]},Qn=()=>({isLayoutContentMaximized:C(()=>mt("layoutContentMaximize").value),maximize:(t,o)=>{var i;const{scrollToOptions:l}=o??{},a=me(Pe),{toggleFullscreen:s}=Ps(a,o);fe("layoutContentMaximize",t),s(),l&&t&&((i=Pe==null?void 0:Pe.value)==null||i.scrollTo(l))}}),Ms=()=>({reload:(o=800)=>{fe("globalMainLayoutLoad",!1),setTimeout(()=>fe("globalMainLayoutLoad",!0),o)},openSpin:()=>{fe("layoutContentSpinning",!0)},closeSpin:()=>{fe("layoutContentSpinning",!1)}}),Ei=()=>({setWatermarkContent:l=>{const{getWatermarkConfig:a}=Y(),s=Object.assign({},a.value,{content:l}),{updateSettingState:i}=$();i("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:l}=$();l("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:l}=$();l("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:l}=Y(),{updateSettingState:a}=$();a("watermarkSwitch",!l.value)}}),Qe=e=>{const{getPrimaryColorOverride:n}=Y(),{updateSettingState:t}=$();t("primaryColorOverride",e?Object.assign({},n.value,ie.appNaiveUIThemeOverrides.dark,ie.appNaiveUIThemeOverridesCommon.dark):Object.assign({},n.value,ie.appNaiveUIThemeOverrides.light,ie.appNaiveUIThemeOverridesCommon.light))},Di=()=>{const e=()=>{const{getAppTheme:a}=Y(),{t:s}=$e();return{theme:a.value,themeI18nLabel:a.value?s("headerSettingOptions.ThemeOptions.Dark"):s("headerSettingOptions.ThemeOptions.Light"),themeLabel:a.value?"Dark":"Light"}};return{darkTheme:()=>{const{updateSettingState:a}=$();a("_appTheme",!0),a("appTheme","dark"),Qe(!0)},lightTheme:()=>{const{updateSettingState:a}=$();a("_appTheme",!1),a("appTheme","light"),Qe(!1)},toggleTheme:()=>{const{theme:a}=e(),{updateSettingState:s}=$();s("_appTheme",!a),s("appTheme",a?"light":"dark"),Qe(!a)},getAppTheme:e,syncSystemTheme:()=>{const{getAppTheme:a}=Y(),{updateSettingState:s}=$(),{system:i}=_n();s("_appTheme",i.value==="dark"),s("appTheme","auto"),Qe(a.value)}}},Re=(e,n)=>{const{getMenuTagOptions:t}=ke();if(typeof e=="number"){if(isNaN(e)){console.warn(`${n}: The ${e} is NaN, expect number.`);return}if(e>t.value.length||e<-1){console.warn(`${n}: The incoming index ${e} did not match the corresponding item.`);return}return{option:t.value[e],index:e}}else if(typeof e=="string"){const o=t.value.findIndex(l=>l.fullPath===e);return o>-1?{option:t.value[o],index:o}:console.warn(`${n}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:o}=e,l=t.value.findIndex(a=>a.fullPath===o);if(l===-1){console.warn(`${n}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:l}}};function eo(){const{getMenuTagOptions:e,getMenuKey:n}=ke(),{changeMenuModelValue:t,spliceMenTagOptions:o,setMenuTagOptions:l,resolveOption:a}=Ie(),s=()=>e.value.findIndex(m=>m.fullPath===n.value),i=m=>{const b=Re(m,"checkCloseRight");if(b){const{index:h}=b,S=e.value.length-1;return!(h>=S)}return!1},u=m=>{const b=Re(m,"checkCloseRight");if(b){const{index:h}=b,S=e.value.length-1;return h===0?!1:h>0&&S>0}return!1};return{close:m=>{const b=Re(m,"close");if(e.value.length!==1&&b){const{index:h,option:S}=b;if(o(h),S.fullPath===n.value){let d=u(h)?h-1:i(h)?h:h-1;d<0&&(d=0);const v=e.value[d];v&&t(v.fullPath,v)}}},closeAll:()=>{o(0,e.value.length);const{getRootPath:m}=Le(),{router:{getRoutes:b}}=jt(),h=b().find(S=>S.path===m.value);if(h){const S=je(h,Pt),d=a(S);t(d.path,a({...d,fullPath:d.path}))}},closeRight:m=>{const b=Re(m,"closeRight");if(b){const{option:h,index:S}=b,d=e.value.length-S,v=s();o(S+1,d),S<=v&&n.value!==h.fullPath&&t(h.fullPath,h)}},closeLeft:m=>{const b=Re(m,"closeLeft");if(b){const{option:h,index:S}=b,d=s();o(0,S),d<=S&&n.value!==h.fullPath&&t(h.fullPath,h)}},closeOther:m=>{const b=Re(m,"closeOther");if(b){const{option:h}=b;n.value!==h.fullPath?(o(0,e.value.length),t(h.fullPath,h)):l(h,!1)}},getCurrentTagIndex:s,checkCloseRight:i,checkCloseLeft:u}}function zi(){return{navigationTo:(n,t)=>{const{router:{getRoutes:o,push:l,replace:a}}=jt(),{isPush:s=!0,query:i}=t||{},u=c=>s?l({path:c,query:i}):a({path:c,query:i});if(typeof n=="number"){if(isNaN(n)){console.warn(`[navigationTo]: The ${n} is NaN, expect number.`);return}const{getMenuOptions:c}=ke();if(n>c.value.length){console.warn(`[navigationTo]: The current ${n} exceeds the maximum number of menus.`);return}const p=c.value[n],g=y=>{if(y.children&&y.children.length>0){const{children:[f]}=y;g(f);return}u(y.fullPath)};g(p)}else if(typeof n=="string"){const c=o().find(p=>p.path===n);c?u(c.path):console.warn(`[navigationTo]: The path "${n}" is not found.`)}else u(n.fullPath)}}}function Le(){const{getAppRootRoute:e}=Y(),{updateSettingState:n}=$(),t=e,o=C(()=>e.value.path),l=C(()=>e.value.name);return{getRootRoute:t,getRootPath:o,getRootName:l,setRootRoute:s=>{n("appRootRoute",Object.assign({},e.value,s))}}}const Es=(e,n)=>{const{show:t,...o}=n;e.meta.extra=Object.assign({},e.meta.extra,{...o,show:t}),e.extra=Un(e)},dn=(e,n,t)=>{const o=Kn(e,n);o&&Es(o,t)},kt=(e,n,t)=>{const{getMenuOptions:o}=ke();if(typeof e=="string")dn(o.value,e,t);else if(ge(e,"Object")){const{fullPath:l}=e;dn(o.value,l,t)}else console.warn(`[useBadge ${n}]: target expect string or object.`)};function Ii(){return{hidden:o=>{kt(o,"hidden",{show:!1})},show:(o,l)=>{kt(o,"show",{...l,show:!0})},update:(o,l)=>{kt(o,"update",l)}}}const Li=()=>{const e=Mn.value,{scrollTo:n}=e||{};if(!n)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return n},to=()=>ot(J.localeLanguage,"localStorage",{defaultValue:qa});export{Jr as $,ci as A,xn as B,yt as C,Ha as D,ri as E,ki as F,Ka as G,Oi as H,wi as I,mi as J,hi as K,Mn as L,ii as M,vi as N,yi as O,xs as P,gi as Q,bi as R,Gr as S,wr as T,dr as U,Dr as V,Ti as W,_i as X,Ci as Y,Rs as Z,z as _,xi as a,Ri as a0,pi as a1,Cr as a2,jn as a3,Qn as a4,zi as a5,Ms as a6,Ei as a7,Ii as a8,Mi as b,Li as c,di as d,Y as e,J as f,si as g,ie as h,$ as i,rn as j,Jn as k,Zn as l,mt as m,Hn as n,ui as o,Ya as p,fi as q,Cs as r,Ai as s,Pi as t,Di as u,Si as v,Le as w,Ar as x,$e as y,P as z}; diff --git a/js/hooks-DKN08swi.js.gz b/js/hooks-DKN08swi.js.gz deleted file mode 100644 index a6945dd0..00000000 Binary files a/js/hooks-DKN08swi.js.gz and /dev/null differ diff --git a/js/hooks-yKQIzKXx.js b/js/hooks-yKQIzKXx.js new file mode 100644 index 00000000..c001e44c --- /dev/null +++ b/js/hooks-yKQIzKXx.js @@ -0,0 +1,12 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/en-US-CAmfQl2y.js","js/dayjs@1.11.10-C8LoRVP6.js","js/call-bind@1.0.7-Cpj98o6Y.js","js/print-js@1.6.0-BdoEj60G.js","js/vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js","js/@vue_reactivity@3.5.12-Bs6EYLxJ.js","js/@vue_shared@3.5.12--5_uv9t5.js","js/@vue_runtime-core@3.5.12-rIgKm_Vg.js","js/lodash@4.17.21-Cw59kuJw.js","js/js-cookie@3.0.5-Z_8Sd105.js","js/screenfull@5.2.0-DmMZCkhi.js","js/jsbarcode@3.11.6-DGNGFp02.js","js/@logicflow_core@2.0.6-CHqfytjt.js","js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js","js/preact@10.22.0-D1_UwAj3.js","js/mobx@5.15.7-CEMJDQot.js","js/lodash-es@4.17.21-B-5kLwAl.js","js/uuid@9.0.1-CQkTLCs1.js","js/classnames@2.5.1-nUTIn1-D.js","js/mousetrap@1.6.5-BTGDluHR.js","js/mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js","css/@logicflow_core@2.0-DY-ASpx_.css","js/currency.js@2.0.4-9OAR_aOO.js","js/naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js","js/date-fns@3.6.0-q9PkOyxq.js","js/seemly@0.3.8-DjGKl9dV.js","js/vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js","js/evtd@0.2.4-CI_DDEu_.js","js/@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js","js/vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js","js/vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js","js/@juggle_resize-observer@3.4.0-C8OzoCMD.js","js/css-render@0.15.14-C5toWlUr.js","js/@emotion_hash@0.8.0-WldOFDRm.js","js/@vue_runtime-dom@3.5.12-BKraWVUW.js","js/treemate@0.3.11-DKekKYbv.js","js/date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js","js/async-validator@4.2.5-DKvM95Vc.js","js/@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js","js/@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js","js/@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js","js/utils-DJWgFDlo.js","js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js","js/destr@2.0.3-CVtkxrq9.js","js/deep-pick-omit@1.2.1-CegYQlcN.js","js/pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js","js/vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js","js/html-to-image@1.11.11-BOFdlgi9.js","js/vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js","js/vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js","js/@intlify_shared@9.13.1-BxU0OzX2.js","js/@intlify_core-base@9.13.1-C6DqbPB6.js","js/@intlify_message-compiler@9.13.1-GrLDMuy_.js","js/echarts@5.5.0-CezqL3m-.js","js/zrender@5.5.0-DW8ownf1.js","js/tslib@2.3.0-BDyQ-Jie.js","js/interactjs@1.10.26-DZL_TZzP.js","js/zh-CN-BW8ylN7B.js","js/index-pNGX5TLZ.js","js/index-CPnIe1iT.js","css/index-D_4DGt8i.css","js/Flow-BIVYLQ0q.js","js/index-B4MM6uWb.js","js/instance-DGp8AH04.js","js/axios@1.7.5-C8DqakIB.js","css/index-QAd2IBUs.css","js/BarcodeDemo-ChSS4k2S.js","js/index-D4yh857T.js","js/index-yX6ilmeX.js","js/index-CMTstbS_.js","js/index-DsPYwXwT.js","css/index-DHYYVpM7.css","js/index-Dma-XXes.js","js/index-DLHH4nqK.js","js/index-BLhKipa_.js","js/index-C8iQ720y.js","js/index-sIqE1um6.js","js/index-BjjUm4zh.js","js/index-BfILLugh.js","js/index-DyDrKyTs.js","js/index-PlxeXsXD.js","js/vue3-next-qrcode@2.0.10_typescript@5.6.3-et2AKeWS.js","css/vue3-next-qrcode@2.0.10_typescript@5.6-CG4VaxS5.css","js/ray-dCjhX_JK.js","js/index-DLfdzB8P.js","css/index-B6yUFiKH.css","js/index-DHRMhslY.js","js/index-Cq14wQ9z.js","js/index-1zvmv80z.js","css/index-Dig957GB.css","js/index-C6a7JFW7.js","js/index-N8Hty4TD.js","css/index-Eq1L-L2-.css","js/TablePro-Ce1OT4eD.js","js/mockjs@1.1.0-CxlURkif.js","js/index-BYUR34wX.js","js/index-C55lNPAm.js","js/index-CCykVugW.js","css/index-74sXJ5VP.css","js/index-BYpwN2eY.js","css/index-b1h4j9PV.css"])))=>i.map(i=>d[i]); +var ao=Object.defineProperty;var lo=(e,n,t)=>n in e?ao(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var Vt=(e,n,t)=>lo(e,typeof n!="symbol"?n+"":n,t);import{s as mt,c as Ze,l as Rt,v as cn,p as Fe,y as Ve,z as ro}from"./lodash-es@4.17.21-B-5kLwAl.js";import{z as Nt,d as Ut,f as so,g as io,N as lt,a as uo,b as co,c as L,e as rt,m as po,h as dn,u as mo,S as Pt,i as fo,j as Ae,k as go,l as pn,n as Be,o as ho,p as vo,q as ie,t as yo,r as bo,s as mn,v as _o,w as fn,x as Qe,y as $t,A as gn,B as So,C as wo,D as Co,E as ae,F as To,G as Kt,H as z,I as Q,J as q,K as ko,L as xt,M as hn,O as Y,P as Oo,Q as Ao,R as We,T as Ro,U as Po,V as xo,W as Mo,X as Eo,Y as vn,Z as Do,_ as Wt,$ as zo}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import{o as Io,u as je,a as Lo,b as Fo,c as yn,d as Bo,e as ft,f as jo}from"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import{k as E,l as ye,e as le,n as Vo,x as _e,a as bn,s as _n,u as ee}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{n as te,j as ce,l as R,b as r,m as N,p as ge,q as ue,f as w,w as Pe,t as No,k as xe,v as Mt,h as st,i as Me,x as Sn,F as wn,y as Uo,z as we,A as $o,C as gt,D as Ko,E as Ie,S as Wo,K as qo,G as qt,H as Go,I as $}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{d as K}from"./dayjs@1.11.10-C8LoRVP6.js";import{p as Ho}from"./print-js@1.6.0-BdoEj60G.js";import{u as Cn}from"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{b as Yo}from"./jsbarcode@3.11.6-DGNGFp02.js";import{L as Gt}from"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{u as Et,g as et,i as fe,s as Dt,a as Tt,c as Xo,b as tt,l as Tn,d as kn,e as Jo,f as V,r as be,h as F,j as Zo,k as nt,q as ot,m as On,p as An,n as zt,o as Ht,t as Ce,v as Qo,w as ea,x as ta,y as na,z as oa,A as pe}from"./utils-DJWgFDlo.js";import{s as aa}from"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import{d as it,c as la}from"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import{t as ra,a as sa,b as ia,c as ua,d as ca,e as da}from"./html-to-image@1.11.11-BOFdlgi9.js";import{u as ut,a as pa,o as ma,c as fa,b as ga}from"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import{c as ha}from"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import{r as va,u as Le,i as ya,a as ba,b as _a,c as Sa,d as wa,e as Ca,f as Ta,g as ka,h as Oa,j as Aa,k as Ra,l as Pa,m as xa,n as Ma,o as Ea,p as Da,q as za,s as Ia}from"./echarts@5.5.0-CezqL3m-.js";import{g as La}from"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import{T as Fa,a as Ba}from"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import{i as Yt}from"./interactjs@1.10.26-DZL_TZzP.js";const ri=(e,n)=>{if(typeof n!="string"||!n.trim())throw new TypeError("Expected prefix to be a non-empty string");const t={};return Object.keys(e).forEach(o=>{const a=e[o].default;let l=o.replace(`./${n}/`,"").replace(/^\.\//,"");const s=l.lastIndexOf(".");l=l.substring(0,s);const i=l.split("/"),u=i.shift(),c=i.join(".");u&&(c?(mt(t,u,t[u]||{}),mt(t[u],c,a)):mt(t,u,a||{}))}),t},ja="modulepreload",Va=function(e){return"/ray-template/"+e},Xt={},I=function(n,t,o){let a=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),s=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));a=Promise.all(t.map(i=>{if(i=Va(i),i in Xt)return;Xt[i]=!0;const u=i.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${c}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":ja,u||(p.as="script"),p.crossOrigin="",p.href=i,s&&p.setAttribute("nonce",s),document.head.appendChild(p),u)return new Promise((g,v)=>{p.addEventListener("load",g),p.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${i}`)))})}))}return a.then(()=>n()).catch(l=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=l,window.dispatchEvent(s),!s.defaultPrevented)throw l})},Na=(e,n,t)=>{const o=e[n];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((a,l)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(l.bind(null,new Error("Unknown variable dynamic import: "+n+(n.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})},Ua=async e=>{var t;const n={};for(const o of e){const a=await Na(Object.assign({"../lang/en-US.ts":()=>I(()=>import("./en-US-CAmfQl2y.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),"../lang/zh-CN.ts":()=>I(()=>import("./zh-CN-BW8ylN7B.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56]))}),`../lang/${o.key}.ts`,3),l=o.key;l&&(n[l]=((t=a==null?void 0:a.default)==null?void 0:t.message)??{})}return n},si=e=>{switch(e){case"zh-CN":return{locale:Nt,dateLocal:Ut};case"en-US":return{locale:null,dateLocal:null};default:return{locale:Nt,dateLocal:Ut}}},$a={darkClassName:"ray-template--dark",lightClassName:"ray-template--light",rayTemplateThemePrimaryColor:"--ray-theme-primary-color",rayTemplateThemePrimaryFadeColor:"--ray-theme-primary-fade-color",preLoadingAnimation:"pre-loading-animation",htmlHeight:"--html-height",htmlWidth:"--html-width"},ii={max:5,closable:!1},ui="loading",ci="",Z={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},Ka=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],re={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#dbcb02","#18A058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"},appNaiveUIThemeOverrides:{dark:{},light:{}},appNaiveUIThemeOverridesCommon:{dark:{},light:{}},echartTheme:"macarons"},Rn=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Wa="zh-CN",qa="zh-CN",Ga={"zh-CN":"zh-cn","en-US":"en"},Ha="zh-cn",di={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/,cssSize:/^auto|unset|fit-content|max-content|min-content|initial|inherit|revert|revert-layer|[-\w]+-webkit-fill-available$/},pi={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},ke=E(null),Pn=E(null),Ya={setupRouterLoadingBar:!0,setupRouterGuard:!0},Xa=["RLogin","ErrorPage","RayTemplateDoc"],qe=[],mi=(e,n)=>{const t=E(0),o=E(0),a=E(!1),{clickOutside:l}={},s=g=>{a.value=g},i=g=>{g.preventDefault(),s(!1),te().then(()=>{const{clientX:v,clientY:f}=g;t.value=v,o.value=f,s(!0)})};l&&Io(e,g=>{l(g)});const u=je(e,"contextmenu",i,n),c=je(e,"click",()=>{s(!1)});return{stop:()=>{u(),c()},x:ye(t),y:ye(o),show:ye(a),updateShow:s}},It=le({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function me(e,n,t){Et(It,e,n,t)}function ct(e){return ye(Vo(It,e))}function Ja(){return{..._e(ye(It))}}let de;const Za=async()=>{const e=Zn(),n=await Ua(Rn);return ha({legacy:!1,locale:e,messages:n,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:qa})},fi=async e=>{const n=await Za();e.use(n),de=n},Jt=(e,n)=>n,Ne=e=>{if(!de)return{t:l=>Jt(e,l),locale:l=>{}};const{t:n,...t}=de.global;return{...t,t:(l,...s)=>l?!l.includes(".")&&!e?l:n(Jt(e,l),...s):"",locale:l=>{de.mode==="legacy"?de.global.locale=l:bn(de.global.locale)?de.global.locale.value=l:de.global.locale=l}}},j=e=>e,Qa={path:"/dashboard",component:()=>I(()=>import("./index-pNGX5TLZ.js"),__vite__mapDeps([58,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,59,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,60])),meta:{i18nKey:j("menu.Dashboard"),icon:"dashboard",order:0}},el=Object.freeze(Object.defineProperty({__proto__:null,default:Qa},Symbol.toStringTag,{value:"Module"})),tl={path:"/flow",component:()=>I(()=>import("./Flow-BIVYLQ0q.js"),__vite__mapDeps([61,22,1,2,3,4,5,6,7,8,9,10,11,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38,39,40,12,13,14,15,17,18,19,20,21,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.Flow"),icon:"other",order:2}},nl=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),ol={path:"/axios",name:"RAxios",component:()=>I(()=>import("./index-B4MM6uWb.js"),__vite__mapDeps([62,4,5,6,7,8,2,9,10,63,64,1,3,11,12,13,14,15,16,17,18,19,20,21,41,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,65])),meta:{i18nKey:j("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},al=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),ll={path:"barcode",component:()=>I(()=>import("./BarcodeDemo-ChSS4k2S.js"),__vite__mapDeps([66,22,1,2,3,4,5,6,7,8,9,10,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,11,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},rl=Object.freeze(Object.defineProperty({__proto__:null,default:ll},Symbol.toStringTag,{value:"Module"})),sl={path:"/cache-demo",component:()=>I(()=>import("./index-D4yh857T.js"),__vite__mapDeps([67,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,41,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.CacheDemo"),icon:"other",order:3}},il=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),ul={path:"/context-menu",component:()=>I(()=>import("./index-yX6ilmeX.js"),__vite__mapDeps([68,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.ContextMenu"),icon:"other",order:2}},cl=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"})),dl={path:"/directive",component:()=>I(()=>import("./index-CMTstbS_.js"),__vite__mapDeps([69,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{i18nKey:j("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},pl=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"})),ml={path:"/echart",component:()=>I(()=>import("./index-DsPYwXwT.js"),__vite__mapDeps([70,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,71])),meta:{i18nKey:j("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},fl=Object.freeze(Object.defineProperty({__proto__:null,default:ml},Symbol.toStringTag,{value:"Module"})),gl={path:"/form",component:()=>I(()=>import("./index-Dma-XXes.js"),__vite__mapDeps([72,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},hl=Object.freeze(Object.defineProperty({__proto__:null,default:gl},Symbol.toStringTag,{value:"Module"})),vl={path:"/iframe",component:()=>I(()=>import("./index-DLHH4nqK.js"),__vite__mapDeps([73,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},yl=Object.freeze(Object.defineProperty({__proto__:null,default:vl},Symbol.toStringTag,{value:"Module"})),bl={path:"/mock-demo",component:()=>I(()=>import("./index-BLhKipa_.js"),__vite__mapDeps([74,22,1,2,3,11,12,13,14,15,16,17,18,19,20,21,4,5,6,7,8,9,10,63,64,41,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},_l=Object.freeze(Object.defineProperty({__proto__:null,default:bl},Symbol.toStringTag,{value:"Module"})),Sl={path:"/modal-demo",component:()=>I(()=>import("./index-C8iQ720y.js"),__vite__mapDeps([75,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.Modal"),icon:"other",order:3}},wl=Object.freeze(Object.defineProperty({__proto__:null,default:Sl},Symbol.toStringTag,{value:"Module"})),Je=()=>I(()=>Promise.resolve().then(()=>Xr),void 0),Cl={path:"/multi",component:Je,meta:{i18nKey:j("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>I(()=>import("./index-sIqE1um6.js"),__vite__mapDeps([76,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:Je,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>I(()=>import("./index-BjjUm4zh.js"),__vite__mapDeps([77,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:Je,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>I(()=>import("./index-BfILLugh.js"),__vite__mapDeps([78,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},Tl=Object.freeze(Object.defineProperty({__proto__:null,default:Cl},Symbol.toStringTag,{value:"Module"})),kl={path:"/precision",component:()=>I(()=>import("./index-DyDrKyTs.js"),__vite__mapDeps([79,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,41,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.CalculatePrecision"),icon:"other",order:2}},Ol=Object.freeze(Object.defineProperty({__proto__:null,default:kl},Symbol.toStringTag,{value:"Module"})),Al={path:"/qrcode",component:()=>I(()=>import("./index-PlxeXsXD.js"),__vite__mapDeps([80,81,7,5,6,82,83,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{i18nKey:j("menu.QRCode"),icon:"other",order:2}},Rl=Object.freeze(Object.defineProperty({__proto__:null,default:Al},Symbol.toStringTag,{value:"Module"})),Pl={path:"rely-about",component:()=>I(()=>import("./index-DLfdzB8P.js"),__vite__mapDeps([84,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38,85])),meta:{i18nKey:j("menu.RelyAbout"),icon:"rely",order:999}},xl=Object.freeze(Object.defineProperty({__proto__:null,default:Pl},Symbol.toStringTag,{value:"Module"})),Ml={path:"/router-demo",component:Je,meta:{i18nKey:j("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>I(()=>import("./index-DHRMhslY.js"),__vite__mapDeps([86,22,1,2,3,48,5,6,7,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,4,8,9,10,41,42,43,44,45,46,47,49,50,51,52,53,54,55,56])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>I(()=>import("./index-Cq14wQ9z.js"),__vite__mapDeps([87,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},El=Object.freeze(Object.defineProperty({__proto__:null,default:Ml},Symbol.toStringTag,{value:"Module"})),Dl={path:"/scroll-reveal",component:()=>I(()=>import("./index-1zvmv80z.js"),__vite__mapDeps([88,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38,89])),meta:{i18nKey:j("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},zl=Object.freeze(Object.defineProperty({__proto__:null,default:Dl},Symbol.toStringTag,{value:"Module"})),Il={path:"/segment",component:()=>I(()=>import("./index-C6a7JFW7.js"),__vite__mapDeps([90,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},Ll=Object.freeze(Object.defineProperty({__proto__:null,default:Il},Symbol.toStringTag,{value:"Module"})),Fl={path:"/svg-icons",component:()=>I(()=>import("./index-N8Hty4TD.js"),__vite__mapDeps([91,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,92])),meta:{i18nKey:j("menu.SvgIcon"),icon:"other",order:3}},Bl=Object.freeze(Object.defineProperty({__proto__:null,default:Fl},Symbol.toStringTag,{value:"Module"})),jl={path:"/table-pro",component:()=>I(()=>import("./TablePro-Ce1OT4eD.js"),__vite__mapDeps([93,41,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,63,64,94,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},Vl=Object.freeze(Object.defineProperty({__proto__:null,default:jl},Symbol.toStringTag,{value:"Module"})),Nl={path:"/table",component:()=>I(()=>import("./index-BYUR34wX.js"),__vite__mapDeps([95,41,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Ul=Object.freeze(Object.defineProperty({__proto__:null,default:Nl},Symbol.toStringTag,{value:"Module"})),$l={path:"/template-hooks",component:()=>I(()=>import("./index-C55lNPAm.js"),__vite__mapDeps([96,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.TemplateHooks"),icon:"other",order:1}},Kl=Object.freeze(Object.defineProperty({__proto__:null,default:$l},Symbol.toStringTag,{value:"Module"})),Wl=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":el,"/src/router/modules/demo/axios copy.ts":nl,"/src/router/modules/demo/axios.ts":al,"/src/router/modules/demo/barcode.ts":rl,"/src/router/modules/demo/cache-demo.ts":il,"/src/router/modules/demo/context-menu.ts":cl,"/src/router/modules/demo/directive.ts":pl,"/src/router/modules/demo/echart.ts":fl,"/src/router/modules/demo/form.ts":hl,"/src/router/modules/demo/iframe.ts":yl,"/src/router/modules/demo/mock.ts":_l,"/src/router/modules/demo/modal.ts":wl,"/src/router/modules/demo/multi-menu.ts":Tl,"/src/router/modules/demo/precision.ts":Ol,"/src/router/modules/demo/qrcode.ts":Rl,"/src/router/modules/demo/rely.ts":xl,"/src/router/modules/demo/router-demo.ts":El,"/src/router/modules/demo/scroll-reveal.ts":zl,"/src/router/modules/demo/segment.ts":Ll,"/src/router/modules/demo/svg-icons.ts":Bl,"/src/router/modules/demo/table-pro.ts":Vl,"/src/router/modules/demo/table.ts":Ul,"/src/router/modules/demo/template-hooks.ts":Kl});return Object.keys(e).reduce((t,o)=>{const a=e[o].default;if(a)t.push(a);else throw new Error(`[combineRawRouteModules]: ${o} module must export default.`);return t},[])},ql=e=>e[0]==="/",xn=(e,n=[],t="")=>{var o;if(!Array.isArray(e))return[];for(const a of e){const l=t+(ql(a.path)?a.path:"/"+a.path);if((o=a.children)!=null&&o.length){xn(a.children,n,l);continue}else n.push({...a,path:l})}return n},Gl=e=>Array.isArray(e)?xn(Ze(e)):[],Hl=e=>e.sort((n,t)=>{var l,s;const o=((l=n.meta)==null?void 0:l.order)??1,a=((s=t.meta)==null?void 0:s.order)??0;if(typeof o!="number"||typeof a!="number")throw new TypeError("orderRoutes error: order must be a number!");return o===a?n.name?t.name?n.name.localeCompare(t.name):-1:1:o-a}),Yl=e=>{const{beforeEach:n}=e,{getRootPath:t}=ze(),o=(a,l)=>a.path==="/"||l.path==="/login";n((a,l,s)=>{const i=et(Z.token,"localStorage"),u=et(Z.appMenuKey,"sessionStorage",{defaultValue:t.value}),{meta:c,name:p}=a;i!==null?o(a,l)?ht(!0):!fe(p,"Symbol")&&p&&Xa.includes(p)?s():qn(c)?o(a,l)?u?s(u):ht(!0):s():ht(!0):o(a,l)?s():s("/")})},ht=(e=!0)=>{const{router:n}=Ft(),{push:t,replace:o}=n,{getRootPath:a}=ze();Dt(Z.appMenuKey,a.value,"localStorage"),e?o(a.value):t(a.value)},Xl=e=>{var t;const{meta:n}=e;n!=null&&n.ignoreAutoResetScroll||(t=ke.value)==null||t.scrollTo({top:0,left:0,behavior:"smooth"})},Jl=e=>{e.beforeEach(()=>{var n;(n=window.$loadingBar)==null||n.start()}),e.afterEach(()=>{var n;(n=window.$loadingBar)==null||n.finish()}),e.onError(()=>{var n;(n=window.$loadingBar)==null||n.error()})},Mn=e=>{const{meta:n={}}=e,{hidden:t,sameLevel:o,env:a}=n,{MODE:l}=Tt();return!(o||t||a&&typeof a=="string"&&a!==l||a&&Array.isArray(a)&&!a.includes(l))};var Zl={pkg:{dependencies:{"@logicflow/core":"2.0.6","@logicflow/extension":"2.0.10","@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^8.13.0","@typescript-eslint/parser":"^8.13.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.1","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5","rollup-plugin-gzip":"4.0.1",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.6.3","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.1.10"},name:"ray-template",version:"5.0.5"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Re=it("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=Zl,{locale:n}=Ne(),{locale:t}=As(),o=le({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},_appTheme:!1,appTheme:"light",menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:Zn(),lockScreenSwitch:!1,copyrightSwitch:!0,contentTransition:"scale",watermarkSwitch:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,xGap:0,yGap:0,yOffset:60,rotate:-15,cross:!0},appRootRoute:{name:"Dashboard",path:"/dashboard"},sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"},keepAliveConfig:{setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:10},menuConfig:{collapsedWidth:64,collapsedMode:"width",collapsedIconSize:16,collapsedIndent:24,accordion:!1,menuSiderBarLogo:!0,iconSize:16,menuWidth:272,inverted:!1,nativeScrollbar:!1},colorWeakness:!1,dynamicDocumentTitle:!0}),a=u=>{n(u),t(u),Dt(Z.localeLanguage,u,"localStorage"),o.localeLanguage=u},l=(u,c=.3)=>{const p=Xo(u,c),g={primaryColor:u,primaryColorHover:u,primaryColorPressed:u},{rayTemplateThemePrimaryColor:v,rayTemplateThemePrimaryFadeColor:f}=$a,m=document.documentElement;o.primaryColorOverride.common=g,m.style.setProperty(v,u),m.style.setProperty(f,p)},s=(u,c,p)=>{Et(o,u,c,p)},i=u=>{const c=document.documentElement;s("colorWeakness",u),tt(c,{filter:u?"invert(100%)":""})};return ce(()=>{var u;o.appTheme?o.primaryColorOverride=Object.assign({},o.primaryColorOverride,re.appNaiveUIThemeOverrides.dark,re.appNaiveUIThemeOverridesCommon.dark):o.primaryColorOverride=Object.assign({},o.primaryColorOverride,re.appNaiveUIThemeOverrides.light,re.appNaiveUIThemeOverridesCommon.light),i(o.colorWeakness),o.dynamicDocumentTitle||(document.title=((u=o.sideBarLogo)==null?void 0:u.title)||"Ray Template")}),{..._e(o),updateLocale:a,changePrimaryColor:l,updateSettingState:s,toggleColorWeakness:i}},{persist:{key:Z.appPiniaSettingStore,omit:["lockScreenSwitch"],storage:window.localStorage}}),En={...so,onRegister:{type:[Function,Array],default:null}},Dn={actionAlign:{type:String,default:"end"},open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!0},onUpdateOpen:{type:[Function,Array],default:null},"onUpdate:open":{type:[Function,Array],default:null},...io};function Ql(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const gi=R({name:"RCollapse",props:Object.assign({},En,{...Dn,open:{type:Boolean,default:!0},cols:{type:Number,default:4},bordered:{type:Boolean,default:!0}}),render(){const{$slots:e,$props:n}=this,{labelPlacement:t,showFeedback:o,...a}=n;return r(Tr,N(a,{labelPlacement:"top",showFeedback:!1}),{default:()=>[r(nr,a,Ql(e)?e:{default:()=>[e]})]})}}),er={intersectionObserver:{type:Boolean,default:!0},intersectionObserverTarget:{type:Object,default:null},intersectionOptions:{type:Object,default:{threshold:.1}},bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},autoResize:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onFinally:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>Tn()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>kn()},onRegister:{type:[Function,Array],default:null}},tr=Jo(),Zt="__R_CHART_DOWN_LOAD_CHART__";tr.forEach(e=>{va(e.name,e.theme)});const hi=R({name:"RChart",props:er,setup(e,{expose:n}){const{getAppTheme:t}=G(),o=ue("rayChartRef"),a=ue("rayChartWrapperRef"),l=_n();let s,i;const{echartTheme:u}=re;let c;const p=w(()=>[{label:"下载图片",key:Zt,disabled:!(l.value&&l.value.getDom())}]),g=w(()=>({"--ray-chart-width":V(e.width),"--ray-chart-height":V(e.height)})),v=E(!1);let f;const m={aria:e.showAria},_=async()=>{var k;Le([ba,_a,Sa,wa,Ca,Ta,ka,Oa]),Le([Aa,Ra,Pa,xa,Ma,Ea]),Le([Da,za]),Le([Ia]);try{Le((k=e.use)==null?void 0:k.filter(Boolean))}catch(O){console.error("[RChart register error]: ",O)}},h=()=>{if(l.value&&T(),e.theme==="default"){e.autoChangeTheme?d("dark"):d("");return}if(e.theme)d(e.theme);else{const k=e.autoChangeTheme&&t.value?`${u}-dark`:u;d(k)}},S=k=>{let O=ee(k);return O=(H=>Object.assign({},O,H))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),O},d=(k=u)=>{var he;const O=o.value,B=S(e.options),{height:H,width:W}=O.getBoundingClientRect(),{onSuccess:ne,onError:X}=e;try{l.value=ya(O,k,{width:W===0?200:void 0,height:H===0?200:void 0}),ne&&F(ne,l.value),e.nextTick?(l.value.setOption({}),te(()=>{var oe;B&&((oe=l.value)==null||oe.setOption(B))})):B&&((he=l.value)==null||he.setOption(B))}catch(oe){throw X&&F(X),new Error(`[RChart render error]: ${oe}`)}finally{const{onFinally:oe}=e;oe&&F(oe)}},y=()=>{var k;return!!((k=l.value)!=null&&k.isDisposed())},T=()=>{var k;y()||(k=l.value)==null||k.dispose()},C=()=>{l.value&&l.value.resize()},b=(k,O)=>{if(k===Zt&&!y()){const{filename:H,...W}=e.downloadOptions;Zo(l.value.getDataURL(W),H??`${new Date().getTime()}`)}const{onDropdownSelect:B}=e;B&&F(B,k,O)},M=()=>{var O;if(e.autoResize&&(s||(s=Rt(C,500)),i||(i=Fo(e.autoResizeObserverTarget||a,s))),(O=l.value)!=null&&O.getDom()||!v.value&&e.intersectionObserver)return;h(),f==null||f.stop();const{onRegister:k}=e;k&&l.value&&F(k,l.value,M,P)},P=()=>{T(),s==null||s.cancel(),i==null||i.stop(),f==null||f.stop(),f=null,s=null,i=null};return Pe(()=>t.value,()=>{e.autoChangeTheme&&(T(),h())}),ce(()=>{var k,O;e.intersectionObserver&&(f=Lo(e.intersectionObserverTarget||a,([B])=>{v.value=B.isIntersecting},e.intersectionOptions)),e.watchOptions?c=La(()=>e.options,B=>{var ne;const H=S(B),W=Object.assign({},kn(),e.setChartOptions);(ne=l.value)==null||ne.setOption(H,W)},{deep:!0,throttle:e.watchOptionsThrottleWait}):c==null||c(),e.loading?(k=l.value)==null||k.showLoading(Tn(e.loadingOptions)):(O=l.value)==null||O.hideLoading(),e.showAria!==m.aria&&l.value&&(l.value.setOption(S(e.options)),m.aria=e.showAria),v.value&&!y()&&M()}),n(),No(async()=>{await _()}),xe(()=>{M()}),Mt(()=>{P(),c==null||c()}),{rayChartRef:o,cssVarsRef:g,rayChartWrapperRef:a,moreDropDownOptions:p,dropdownSelect:b}},render(){const{title:e,contentStyle:n,preset:t,moreDropDownOptions:o,dropdownSelect:a,bordered:l,dropdownOptions:s}=this,{cardExtra:i}=this.$slots;return t==="card"?r(lt,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:n,bordered:l,embedded:!0},{default:be(r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:be(e,{defaultElement:r("div",{style:"display: none;"},null)}),"header-extra":be(i,{defaultElement:r(Ln,{iconSize:18,cursor:"pointer",options:s||o,trigger:"click",onSelect:a.bind(this),placement:"bottom-end"},null)})}):r("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),vi=()=>{let e,n,t;const o=(u,c,p)=>{u&&(e=u,n=p,t=c)},a=()=>{if(!e)throw new Error("[useChart]: echart instance is not ready yet. if you are using useChart, please make sure you have called register method in onRegister event.");return{dispose:n,render:t,echartInst:e}};return[o,{getChartInstance:a,isDisposed:()=>{var u;return!!((u=a().echartInst)!=null&&u.isDisposed())},dispose:()=>a().dispose.call(null),render:()=>a().render.call(null)}]},nr=R({name:"RCollapseGrid",props:Dn,setup(e){const n=E(!e.open),t=w(()=>({"--r-collapse-grid-action-align":e.actionAlign})),o=()=>{const{onUpdateOpen:l,"onUpdate:open":s}=e;n.value=!n.value,l&&F(l,n.value),s&&F(s,n.value)},a=l=>r("div",{class:"collapse-icon",onClick:o.bind(this)},[r("span",null,[l?e.collapseToggleText[0]:e.collapseToggleText[1]]),r(x,{customClassName:`collapse-icon--arrow ${l?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)]);return ce(()=>{n.value=!e.open}),{modelCollapsed:n,collapseClick:o,CollapseIcon:a,cssVars:t}},render(){const{$slots:{collapse:e,action:n,default:t},CollapseIcon:o,$props:a,modelCollapsed:l,xGap:s,yGap:i,collapsedRows:u,cssVars:c,bordered:p}=this;return r(lt,{bordered:p,style:[c]},{default:()=>r(uo,N({class:"ray-collapse-grid"},a,{collapsed:l,xGap:s||12,yGap:i||12,collapsedRows:u}),{default:()=>[t==null?void 0:t(),r(co,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[r(L,{justify:"end",align:"center"},{default:()=>[n==null?void 0:n(),e?e(l):o(l)]})]})]})})}}),or={color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:"default"},onClick:{type:[Function,Array],default:null}},x=R({name:"RIcon",props:or,setup(e){const n=w(()=>`#${e.prefix}-${e.name}`),t=w(()=>({"--ray-icon-width":e.width?V(e.width):V(e.size),"--ray-icon-height":e.height?V(e.height):V(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor,"--ray-icon-color":e.color}));return{symbolId:n,cssVars:t,iconClick:a=>{const{onClick:l}=e;l&&F(l,a)}}},render(){return r("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[r("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[r("use",N({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),ar={src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:[Boolean,String],default:!0},iframeClass:{type:String,default:null}},yi=R({name:"RIframe",props:ar,setup(e,{expose:n}){const t=w(()=>({"--ray-iframe-frameborder":V(e.frameborder),"--ray-iframe-width":V(e.width),"--ray-iframe-height":V(e.height)})),o=ue("iframeRef"),a=E(!0),l=i=>{a.value=!1;const{onSuccess:u}=e;u&&F(u,o.value,i)},s=i=>{a.value=!1;const{onError:u}=e;u&&F(u,i)};return je(o,"load",l),je(o,"error",s),n({iframeInst:o}),{cssVars:t,iframeRef:o,spinShow:a}},render(){return r("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[r(rt,N(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>r("iframe",{class:["ray-iframe__container",this.iframeClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title,loading:typeof this.lazy=="boolean"?"lazy":this.lazy},null)})])}}),lr={...po,memo:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446},dad:{type:Boolean,default:!1}},rr=(e,n,t)=>{const{scheduler:o}=t??{};return new Promise(a=>{setTimeout(()=>{const l=n==="card"?".n-card-header__main":".n-dialog__title";if(e){const s=Yt(e).draggable({inertia:!0,autoScroll:!0,allowFrom:l,modifiers:[Yt.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:i=>{o==null||o(i)}}}).resizable(!1);a(s)}},30)})},zn=(e,n)=>{const t=typeof e=="string"?document.querySelector(e):e;return new Promise((o,a)=>{if(t){t.setAttribute("can-drag","true");const{preset:l,dargCallback:s}=n;let{x:i,y:u}=n;rr(t,l,{scheduler:c=>{const p=c.target;i+=c.dx,u+=c.dy,p.style.transform=`translate(${i}px, ${u}px)`,s==null||s(i,u,c)}}).then(c=>{o(c)})}else a()})},sr="r-modal__preset-card--fullscreen",In="r-modal",Oe={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},bi=R({name:"RModal",props:lr,setup(e){const n=w(()=>({[Oe.width]:V(e.width??600),[Oe.cardWidth]:V(e.cardWidth??600),[Oe.dialogWidth]:V(e.dialogWidth??446)})),t=nt();let o;const a={x:0,y:0},l=w(()=>e.preset==="card"&&e.fullscreen);return Pe(()=>e.show,s=>{s&&e.dad&&(e.preset==="card"||e.preset==="dialog")?te(()=>{const i=document.getElementById(t);i&&zn(i,{preset:e.preset,x:a.x,y:a.y,dargCallback:(u,c)=>{a.x=u,a.y=c}}).then(u=>{o=u}),e.memo&&i&&(i.style.transform=`translate(${a.x}px, ${a.y}px)`)}):(o==null||o.unset(),o=null)},{immediate:!0}),{cssVars:n,isFullscreenCardType:l,uuidEl:t}},render(){const{$props:e,$slots:n,$attrs:t}=this,{preset:o,...a}=e,{cssVars:l,uuidEl:s,isFullscreenCardType:i}=this;return r(dn,N({class:[In,i?sr:""],style:[l,i?"height: 100vh":""],preset:o},{id:s},a,t),{...n})}}),ir=()=>{const{create:e,destroyAll:n}=mo();return{create:o=>{const{content:a,...l}=o;let s=a;l.preset==="card"&&l.fullscreen&&(s=()=>st(Pt,{themeOverrides:{color:"rgba(0, 0, 0, 0)",colorHover:"rgba(0, 0, 0, 0)"},trigger:"none",style:{width:"auto",height:"calc(var(--html-height) - 29px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))"}},{default:()=>typeof a=="function"?a():a}));const{preset:i,dad:u,fullscreen:c,width:p,cardWidth:g,dialogWidth:v}=o,f=e({...l,content:s}),{key:m}=f,_={[Oe.width]:V(p??600),[Oe.cardWidth]:V(g??600),[Oe.dialogWidth]:V(v??446)};return te(()=>{const[h]=ot(`[internalkey="${m}"]`)||[];h&&(u&&zn(h,{preset:i,x:0,y:0}),c&&i==="card"&&tt(h,{width:"100%",height:"100vh"}),tt(h,_),On(h,In))}),f},destroyAll:n}},ur={...fo,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function cr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const Ln=R({name:"RMoreDropdown",props:ur,render(){let e;const{iconSize:n,cursor:t,icon:o}=this,{default:a}=this.$slots;return r(Ae,N(this.$props,this.$attrs,{placement:"bottom-start"}),cr(e=be(a,{defaultElement:r(x,{name:o,size:n,cursor:t},null)}))?e:{default:()=>[e]})}}),Ee={...go,tableFlexHeight:{type:[String,Number],default:void 0},renderWrapperHeader:{type:Boolean,default:!0},cardProps:{type:Object,default:()=>({})},tool:{type:Boolean,default:!0},downloadCsvTableOptions:{type:Object,default:()=>({})},title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},wrapperBordered:{type:Boolean,default:!0},bordered:{type:Boolean,default:!0},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null},onRegister:{type:[Function,Array],default:null}},se={tableIconSize:"18",tableKey:Symbol("r-table")},dr=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],pr=R({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...Ee},setup(e){return{size:E(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:a=>{const{onChangeSize:l}=e;l&&F(l,a)}}},render(){return r(pn,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(x,{name:"adjustment",size:se.tableIconSize,cursor:"pointer"},null)]})}}),mr=R({name:"TableFullscreen",setup(){const{wrapperRef:e}=Me(se.tableKey,{}),[n,{toggleFullscreen:t,isEnabled:o}]=Cn(e);return{toggleFullscreen:t,isEnabled:o}},render(){const{toggleFullscreen:e,isEnabled:n,$t:t}=this;return r(x,{name:"fullscreen",size:se.tableIconSize,cursor:"pointer",onClick:()=>{n||window.$message.warning(t("globalMessage.isEnabledFullscreen")),e()}},null)}}),fr=()=>r(x,{name:"draggable",size:14,cursor:"grab"},null),Qt=({icon:e,title:n,onClick:t,customClassName:o})=>r(Be,{showArrow:!1},{trigger:()=>r(x,{name:e,size:se.tableIconSize,cursor:"pointer",customClassName:o,onClick:t==null?void 0:t.bind(null)},null),default:()=>n}),kt=(e,n)=>{if(!n)return[null,null];for(let t=0;tZe(e.columns).filter(u=>u.type?(n=u,!1):!0).map((u,c)=>{const{key:p,title:g,children:v,fixed:f,isResizable:m,..._}=u,h=f==="left",S=f==="right",d={..._,title:g,key:p,fixed:f,isLeftFixedActivated:h,isRightFixedActivated:S,isResizable:m};return{...d,suffix:()=>r(L,{style:"padding-left: 32px;"},{default:()=>[r(Qt,{icon:"row_head",title:"固定在列首",customClassName:h?vt:"",onClick:l.bind(this,"left",d,c)},null),r(Be,{showArrow:!1},{trigger:()=>r(x,{name:"resize_h",size:se.tableIconSize,cursor:"pointer",customClassName:m?vt:"",onClick:a.bind(this,d,c)},null),default:()=>"修改列宽"}),r(Qt,{icon:"row_end",title:"固定在列尾",customClassName:S?vt:"",onClick:l.bind(this,"right",d,c)},null)]})}}),set:()=>{}}),o=i=>{const{onUpdateColumn:u}=e;u&&F(u,i)},a=(i,u)=>{i.isResizable=!i.isResizable,i.resizable=i.isResizable,t.value[u]=i,o(t.value)},l=(i,u,c)=>{const p=`${i}FixedActivated`,g=`${i==="left"?"right":"left"}FixedActivated`;u[g]=!1,u[p]=!u[p],u[p]?u.fixed=i:u.fixed=void 0,t.value[c]=u,o(t.value)};return{treeDataSource:t,treeDrop:({node:i,dragNode:u,dropPosition:c})=>{const[p,g]=kt(u,t.value);if(p===null||g===null)return;p.splice(g,1);const[v,f]=kt(i,t.value);v===null||f===null||(c==="before"?v.splice(f,0,u):v.splice(f+1,0,u),cn(n)||v.unshift(n),o(v))}}},render(){return r(Be,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>r(x,{name:"setting",size:se.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>r(ho,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:fr.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),hr=R({name:"TablePrint",props:Ee,setup(e){const{wrapperRef:n}=Me(se.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:o={},domToImageOptions:a}={},title:l}=e;(o.documentTitle===""||o.documentTitle===void 0||o.documentTitle===null)&&(o.documentTitle=typeof l=="string"?l:""),An(n,{printOptions:o,domToImageOptions:a})}}},render(){return r(x,{name:"print",size:se.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),vr=R({name:"TablePropsSelect",props:{...Ee,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const n=E(!1),t=E([]),o=l=>{const{onPopselectChange:s}=e;s&&F(s,l)};return(()=>{const{striped:l,bordered:s,onInitialed:i}=e;l&&t.value.push("striped"),s&&t.value.push("bordered"),i&&F(i,t.value)})(),{propsPopselectValue:t,popoverShow:n,updatePopselectValue:o}},render(){return r(pn,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:dr,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(x,{name:"expanded",size:se.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function yr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const br=R({name:"RTable",inheritAttrs:!1,props:Ee,setup(e,n){const{expose:t,emit:o}=n,a=ue("rTableInst"),l=ue("wrapperRef"),s=nt(16),i=nt(16),u=le({x:0,y:0,showContextMenu:!1}),c=le({size:e.size}),p=E(Object.assign({striped:!1,bordered:!1},Fe(e,"striped","bordered"))),g=(d,y)=>{const{onContextMenuClick:T}=e;T&&F(T,d,y),u.showContextMenu=!1},v=(d,y)=>{var C;return{...(C=e.rowProps)==null?void 0:C.call(e,d,y),onContextmenu:e.disabledContextMenu?void 0:b=>{b.preventDefault(),u.showContextMenu=!1,te().then(()=>{u.showContextMenu=!0,u.x=b.clientX,u.y=b.clientY})}}},f=d=>{c.size=d},m=d=>{const{onUpdateColumns:y,"onUpdate:columns":T}=e;y&&F(y,d),T&&F(T,d)},_=()=>{const{toolOptions:d}=e;return d==null?void 0:d.filter(Boolean).map(y=>typeof y=="function"?y():y)},h=d=>{Object.keys(p.value).forEach(T=>{p.value[T]=d.includes(T)})},S=d=>{const{tool:y}=d;if(!y)return;const T=()=>r(L,{align:"center"},{default:()=>[r(hr,d,null),r(pr,N(d,{onChangeSize:f.bind(this)}),null),r(mr,null,null),r(gr,N(d,{onUpdateColumn:m.bind(this)}),null),r(vr,N(d,{onPopselectChange:h.bind(this),onInitialed:h.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let C;return r(L,{align:"center"},yr(C=_())?C:{default:()=>[C]})}:()=>r(L,{align:"center"},{default:()=>[T(),_()]}):T};return xe(()=>{const{onRegister:d}=e;d&&a.value&&F(d,a.value,{uuidTable:i,uuidWrapper:s,wrapperRef:l})}),Sn(se.tableKey,{uuidTable:i,uuidWrapper:s,wrapperRef:l}),t(),{uuidWrapper:s,uuidTable:i,contextMenuReactive:u,rTableInst:a,combineRowProps:v,contextMenuSelect:g,privateReactive:c,tool:S,wrapperRef:l,propsPopselectValue:p}},render(){const{$props:e,$attrs:n,$slots:t,uuidTable:o,contextMenuReactive:a,uuidWrapper:l,privateReactive:s,propsPopselectValue:i}=this,{class:u,...c}=n,{tool:p,combineRowProps:g,contextMenuSelect:v}=this,{renderWrapperHeader:f,wrapperBordered:m,disabledContextMenu:_,contextMenuOptions:h,title:S,tableFlexHeight:d,cardProps:y,...T}=e;return r(lt,N(y,{id:l},c,{ref:"wrapperRef",bordered:m,class:u}),{default:()=>r(wn,null,[r(vo,N({id:o},T,i,{rowProps:g.bind(this),size:s.size,ref:"rTableInst",style:{height:d!=null?V(d):null}}),{...t}),_?null:r(Ae,{show:a.showContextMenu,placement:"bottom-start",trigger:"manual",x:a.x,y:a.y,options:h,onClickoutside:()=>a.showContextMenu=!1,onSelect:v.bind(this)},null)]),header:f?be(S,{defaultElement:r("div",{style:"display: none;"},null)}):null,"header-extra":p(e),footer:()=>{var C;return(C=t.tableFooter)==null?void 0:C.call(t)},action:()=>{var C;return(C=t.tableAction)==null?void 0:C.call(t)}})}}),_r=()=>{const e=E();let n={};const t=(f,m)=>{f&&(e.value=f,n=m)},o=()=>{if(!e.value)throw new Error("[useTable]: table instance is not ready yet. if you are using useTable, please make sure you have called register method in onRegister event.");return e.value};return[t,{getTableInstance:o,clearFilters:()=>o().clearFilters.call(null),clearSorter:()=>o().clearSorter.call(null),downloadCsv:f=>o().downloadCsv.call(null,f),filters:f=>o().filters.call(null,f),page:f=>o().page.call(null,f),scrollTo:f=>o().scrollTo(f),sort:(f,m)=>o().sort.call(null,f,m),print:f=>{const{uuidWrapper:m}=n;if(m){const _=document.getElementById(m);An(_,f)}},filter:f=>o().filter.call(null,f)}]},Fn=(e,n,t)=>{var o;if(e.length)for(const a of e){if(a[n]===t)return a;if((o=a==null?void 0:a.children)!=null&&o.length){const l=Fn(a.children,n,t);if(l)return l}}},en=e=>{const n=ee(e);return n?n.findIndex(o=>{const{type:a,multiple:l}=o;if(a==="selection"&&(l==null||l===!0))return!0})!==-1:!0},Sr=(e,n,t,o)=>{const a=ee(e);return a?n.reduce((l,s)=>{const i=ee(t).findIndex(c=>c[o]===s);if(i!==-1)return l.push(ee(t)[i]),l;const u=a.findIndex(c=>c[o]===s);return u!==-1&&l.push(a[u]),l},[]):t},_i=(e,n,t)=>{const o=E([]),a=E([]),{rowKey:l="key",onChange:s}=t||{},i=w(()=>en(n)),u=(m,_,h)=>{o.value=m,a.value=ee(Sr(e,m,a,l)),s==null||s(m,a.value,h),en(n)},c=()=>o.value,p=()=>a.value,g=()=>{o.value=[],a.value=[],s==null||s(o.value,a.value,{row:void 0,action:"uncheckAll"})},v=m=>{if(m==null)return;let _;o.value=o.value.filter(h=>h!==m),a.value=a.value.filter(h=>h[l]===m?(_=h,!1):!0),s==null||s(o.value,a.value,{row:_,action:"uncheck"})},f=m=>{if(o.value.includes(m))return;const _=!i.value&&o.value.length>=1,h=Fn(ee(e)||[],l,m);_?o.value=[m]:o.value.push(m),h&&(_?a.value=[h]:a.value.push(h),s==null||s(o.value,a.value,{row:h,action:"check"}))};return zt(()=>{g()}),[o,{checkedRows:a,checkedRowKeysBind:u,getKeys:c,getRows:p,clearAll:g,clearKey:v,selectKey:f}]},wr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},Cr=R({name:"RTransitionComponent",__name:"index",props:Uo({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},wr),setup(e){const{getKeepAliveInclude:n}=Vr(),{getKeepAliveConfig:t}=G();return(o,a)=>{const l=Ko("RouterView");return we(),$o("div",null,[r(l,null,{default:gt(({Component:s,route:i})=>[s?(we(),Ie(Fa,{key:0,name:o.transitionPropName,mode:o.transitionMode,appear:o.transitionAppear},{default:gt(()=>[(we(),Ie(Wo,null,{default:gt(()=>[ee(t).setupKeepAlive?(we(),Ie(qo,{key:0,max:ee(t).maxKeepAliveLength,include:ee(n),exclude:ee(t).keepAliveExclude},[(we(),Ie(qt(s),{key:i.fullPath}))],1032,["max","include","exclude"])):(we(),Ie(qt(s),{key:i.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Go("",!0)]),_:1})])}}}),Tr=R({name:"RForm",props:En,setup(e,{expose:n}){const t=ue("formRef");return xe(()=>{const{onRegister:o}=e;o&&t.value&&F(o,t.value)}),n(),{formRef:t}},render(){const{$attrs:e,$props:n,$slots:t}=this;return r(ie,N(e,n,{ref:"formRef"}),{...t})}}),Si=(e,n)=>{const t=E(),o=c=>{c&&(t.value=c)},a=()=>{if(!t.value)throw new Error("[useForm]: form instance is not ready yet. if you are using useForm, please make sure you have called register method in onRegister event.");return t.value};return[o,{getFormInstance:a,validate:(c,p)=>a().validate.call(null,c,p),restoreValidation:()=>a().restoreValidation.call(null),formModel:()=>Ze(e)||{},formRules:()=>Ze(n)||{}}]},kr=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],Or={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},Ar=Ve({...yo,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...kr);function Rr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const Ot=e=>{const{icon:n,label:t}=e;return n?r(L,{align:"center",wrap:!1,size:"small"},{default:()=>{var o;return[(o=be(n))==null?void 0:o(),r("div",null,[t])]}}):t},Pr=e=>{if(typeof e.popover=="string")return r(Be,null,{trigger:()=>Ot(e),default:()=>e.popover});if(fe(e.popover,"Object")){const{popover:n}=e,{label:t,...o}=n;return r(Be,o,{trigger:()=>Ot(e),default:()=>t})}},xr=R({name:"RSegment",props:Ar,setup(e,{expose:n}){const t=w(()=>{const{width:o}=e;let a="";switch(o){case"block":a="100%";break;case"fitContent":a="fit-content";break;default:a=typeof o=="number"?V(o):"fit-content"}return{"--r-segment-width":a}});return n(),{cssVars:t}},render(){let e;const{$props:n,options:t,cssVars:o,themeOverrides:a}=this;return r(mn,N(n,{ref:"segmentRef",style:[o],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},Or,a)}),Rr(e=t.map(l=>r(bo,{key:l.key,name:l.key,tab:l.popover?Pr(l):Ot(l),disabled:l.disabled},{...l.slots})))?e:{default:()=>[e]})}}),Mr={width:{type:[String,Number],default:"auto"},height:{type:[String,Number],default:"auto"},loading:{type:Boolean,default:!1},barcodeRender:{type:String,default:"canvas",validator:e=>["canvas","svg"].includes(e)},text:{type:String},options:{type:Object,default:()=>({})},format:{type:String,default:()=>"CODE128"},watchText:{type:Boolean,default:!0},onSuccess:{type:[Function,Array]},onError:{type:[Function,Array]},onFinally:{type:[Function,Array]}},wi=R({name:"RBarcode",props:Mr,setup(e){const n=ue("barcodeRef"),t=w(()=>({"--r-barcode-width":V(e.width),"--r-barcode-height":V(e.height)}));let o;const a=()=>{try{const{format:l,text:s,options:i,onSuccess:u}=e,c=Object.assign({},i,{format:l});Yo(n.value,s!=null?s.toString():"",c),u&&F(u,s,l,i)}catch(l){const{onError:s}=e;s&&F(s,l)}finally{const{onFinally:l}=e;l&&F(l)}};return ce(()=>{e.watchText?o=Pe(()=>e.text,a):o==null||o()}),xe(()=>{a()}),Mt(()=>{o==null||o()}),{barcodeRef:n,cssVars:t}},render(){const{barcodeRender:e,loading:n,cssVars:t}=this,o=["r-barcode",{"r-barcode--loading":n}];return r(rt,{class:"r-barcode-spin",show:n},{default:()=>[e==="canvas"?r("canvas",{class:o,style:t,ref:"barcodeRef"},null):r("svg",{class:o,style:t,ref:"barcodeRef"},null)]})}}),Er={...Ve(Ee,["pagination"]),paginationCount:{type:Number,default:1},onRegister:{type:Function,default:void 0},manual:{type:Boolean,default:!1},request:{type:Function},onTablePaginationUpdate:{type:Function},requestConfig:{type:Object,default:()=>({})},showPagination:{type:Boolean,default:!1},remote:{type:Boolean,default:!0}};function Dr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const Ci=R({name:"RTablePro",props:Er,setup(e){const[n,{clearFilters:t,clearSorter:o,downloadCsv:a,filters:l,page:s,scrollTo:i,sort:u,print:c,filter:p}]=_r(),[g,{getPage:v,getPageSize:f,setCallback:m,setItemCount:_,resetPagination:h,getItemCount:S}]=xs(void 0,{prefix:P=>`共 ${P.itemCount} 条`}),d=w(()=>e.request),y=()=>({getItemCount:S,getPage:v,getPageSize:f}),T=()=>{const{onTablePaginationUpdate:P}=e;P&&F(P,y())},C=P=>{const k=Object.assign({},e.requestConfig,P),{params:O,formatRangeTime:B}=k;return B!=null&&B.length&&O&&B.forEach(W=>{const{key:ne,target:X}=W,he=O[ne];if(he&&(X!=null&&X.length)){const[oe,dt]=he;O[X[0]]=oe,O[X[1]]=dt}else O[ne]=null,O[X[0]]=null,O[X[1]]=null}),Object.assign({},O,{page:v(),pageSize:f()})},b=P=>{var O;h();const k=C(P);(O=d.value)==null||O.call(d,k)},M=P=>{var O;const k=C(P);(O=d.value)==null||O.call(d,k)};return ce(()=>{_(e.paginationCount),m(()=>{const{manual:P}=e;P||M(),T()})}),xe(()=>{const{onRegister:P}=e;P&&F(P,{getTablePagination:y,runTableRequest:b,clearFilters:t,clearSorter:o,downloadCsv:a,filters:l,page:s,scrollTo:i,sort:u,print:c,filter:p,getCurrentTableRequestParams:C})}),{register:n,paginationRef:g}},render(){const{register:e,$props:n,paginationRef:t,$slots:o}=this,{onRegister:a,showPagination:l,...s}=n;return r(br,N(s,{onRegister:e,pagination:l?t:void 0}),Dr(o)?o:{default:()=>[o]})}}),Ti=()=>{const e=E(),n=m=>{m&&(e.value=m)},t=()=>{if(!e.value)throw new Error("[useTablePro]: table instance is not ready yet. if you are using useTablePro, please make sure you have called register method in onRegister event.");return e.value};return[n,{clearFilters:()=>t().clearFilters.call(null),getTableProInstance:t,clearSorter:()=>t().clearSorter.call(null),downloadCsv:m=>t().downloadCsv.call(null,m),filters:m=>t().filters.call(null,m),page:m=>t().page.call(null,m),scrollTo:m=>t().scrollTo(m),sort:(m,_)=>t().sort.call(null,m,_),getTablePagination:()=>t().getTablePagination.call(null),runTableRequest:m=>t().runTableRequest.call(null,m),print:m=>t().print.call(null,m),getCurrentTableRequestParams:m=>t().getCurrentTableRequestParams.call(null,m)}]},zr=()=>({grid:!0,partial:!1,keyboard:{enabled:!0}}),Ir={use:{type:Array,default:void 0},watchData:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},data:{type:Object,default:void 0},options:{type:Object,default:zr()},onRegister:{type:[Function,Array],default:void 0}};let tn=!1;const ki=R({name:"RFlow",props:Ir,setup(e){const n=ue("flowDomRef"),t=w(()=>{const{width:g,height:v}=e;return{"--r-flow-width":V(g),"--r-flow-height":V(v)}}),o=_n(),a={nodeTextEdit:!1,edgeTextEdit:!1,textEdit:!1};let l;const s={nodes:[],edges:[]},i={readonly:e.readonly},u=()=>{var g;tn||((g=e.use)==null||g.filter(Boolean).forEach(v=>Gt.use(v)),tn=!0)},c=g=>{if(!o.value)return;const v=Object.entries(a).reduce((f,[m])=>(f[m]=!g,f),{});Object.assign(a,v,{isSilentMode:g}),o.value.updateEditConfig(a)},p=g=>{if(u(),!n.value)return;const{options:v,readonly:f}=e;o.value=new Gt({container:ee(n.value),...Ve(v,"container")}),o.value.render(g||s),c(f)};return ce(()=>{e.watchData?l=Pe(()=>e.data,g=>{o.value?g&&o.value.renderRawData(g):p(g)}):l==null||l(),e.readonly!==i.readonly&&(c(e.readonly),i.readonly=e.readonly)}),xe(()=>{p();const{onRegister:g}=e;g&&o.value&&F(g,o.value)}),{flowDomRef:n,cssVars:t}},render(){const{cssVars:e}=this;return r("div",{class:"r-flow",style:[e],ref:"flowDomRef"},null)}}),Oi=()=>{let e;return[o=>{o&&(e=o)},{getFlowInstance:()=>{if(!e)throw new Error("[useFlow]: flow instance is not ready yet. if you are using useFlow, please make sure you have called register method in onRegister event.");return e}}]},Lr=(e,n,t)=>!e||typeof e!="object"?!1:e[n]===t,Bn=(e,n,t)=>{const o=[];if(Lr(e,n,t))return o.push(e),o;if(e.children&&e.children.length>0)for(const a of e.children){const l=Bn(a,n,t);l.length>0&&o.push(e,...l)}return o},Fr=(e,n,t)=>{const o=[];for(const a of e){const l=Bn(a,n,t);l.length>0&&o.push(...l)}return o},nn=e=>{const{dynamicDocumentTitle:n}=Re();if(!n)return;const{breadcrumbLabel:t}=e;if(!t)return;const{sideBarLogo:o}=Re(),a=o?o.title:"";document.title=t+" - "+a},Br=e=>{const{meta:{icon:n}}=e;if(!n)return;if(fe(n,"Object"))return()=>n;const{menuConfig:t}=Re(),{collapsed:o}=Lt(),a=st(x,{name:n,size:o?t.collapsedIconSize:t.iconSize,cursor:"pointer"},{});return()=>a},jn=e=>{const{meta:{extra:n}}=e;if(!n)return;const{show:t}=n;if(t===!1)return;const{t:o}=Ne(),{label:a,icon:l,type:s,i18nLabel:i}=n,u={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},c=()=>i?o(i):a||null,p=()=>l&&(i||a)||!l&&(i||a)?null:{"padding-right":"0"};if(fe(n,"Object"))return()=>st(_o,{...u,type:s||"primary",style:p()},{default:()=>c(),icon:()=>l})},on=()=>{const{getRootPath:e}=ze();return et(Z.appMenuKey,"sessionStorage",{defaultValue:e.value})},Vn=()=>Hl(Wl()),jr=()=>Gl(Vn()),At=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let Ge;const Nn=(e,n)=>{var t;if(Ge&&Ht(Ge.fullPath,n))return Ge;for(const o of e){if(Ht(o.fullPath,n))return Ge=o,o;if((t=o.children)!=null&&t.length){Nn(o.children,n);continue}}},Lt=it("menu",()=>{const{push:e,getRoutes:n}=ut(),t=pa(),{t:o}=Ne(),{setKeepAliveInclude:a}=Nr(),l=le({menuKey:on(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),s=E(!0),i=(d,y,T)=>{Et(l,d,y,T)},u=d=>{const{meta:y}=d,{i18nKey:T,noLocalTitle:C}=y,b=w(()=>T?o(`${T}`):C),M={...d,key:d.fullPath,label:()=>st(fn,null,{default:()=>b.value}),breadcrumbLabel:b.value},P=Object.assign({},M,{icon:Br(d),extra:jn(d)});return d.fullPath===on()&&(l.currentMenuOption=P),P.show=Mn(P),P},c=d=>{l.breadcrumbOptions=Fr(l.options,"fullPath",d)},p=(d,y=!0)=>{const C=Array.isArray(d)?[...d]:[d];y?l.menuTagOptions.push(...C):l.menuTagOptions=C},g=(d,y)=>{l.menuTagOptions.find(C=>C.fullPath===d)||l.menuTagOptions.push(y)},v=(d,y,T)=>{const{meta:C}=y;if(C.windowOpen)window.open(C.windowOpen);else{e({path:String(d),query:T});const{sameLevel:b}=C;if(a(y),nn(y),!b)g(d,y),c(d),l.menuKey=d,l.currentMenuOption=y,Dt(Z.appMenuKey,d);else{const M=Fe(u(y),At);l.breadcrumbOptions.find(k=>k.key===M.key)||l.breadcrumbOptions.push({...M,fullPath:String(M.key)})}}},f=async(d,y)=>{const[T]=d.split("?"),C=n().find(b=>b.path===T);if(!((C==null?void 0:C.path)==="/"||!(C!=null&&C.path)||(C==null?void 0:C.path)==="/login")&&C){const b=Fe(C,At);v(T,u({...b,fullPath:b.path}),y)}},m=()=>new Promise(d=>{const y=(C,b)=>{var P;const M=[];for(const k of C){let O=`${b.endsWith("/")?b:b+"/"}${k.path}`;if(O=O.replace(/\/+/g,"/"),(P=k.children)!=null&&P.length)k.children=y(k.children,O);else if(!qn(k.meta))continue;M.push(u({...k,fullPath:O}))}return M};l.options=y(Vn(),"");const T=l.currentMenuOption||$r(l.options);T&&(l.breadcrumbOptions.length||c(T.key),g(T.fullPath,T),nn(T)),d()}),_=d=>l.collapsed=d,h=(d,y=1)=>l.menuTagOptions.splice(d,y),S=async()=>{s.value&&(await m(),s.value=!1)};return Pe(()=>t.fullPath,async(d,y)=>{await S(),d!==y&&await f(d,t.query)},{immediate:!0}),{..._e(l),changeMenuModelValue:v,collapsedMenu:_,spliceMenTagOptions:h,setMenuTagOptions:p,resolveOption:u,updateMenuState:i,setupAppMenu:m}},{persist:{key:Z.appPiniaMenuStore,storage:window.localStorage,pick:["breadcrumbOptions","menuKey","menuTagOptions","collapsed"]}}),Un=it("signing",()=>{const e=le({signingCallback:{}}),n=a=>new Promise((l,s)=>{cn(a)?s({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:a.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},l({code:0,message:"登陆成功",data:e.signingCallback}))}),t=a=>{const{closeAll:l}=Jn(),{appPiniaMenuStore:s,appPiniaSigningStore:i,token:u,signing:c,appMenuKey:p}=Z;window.$message.info("账号退出中..."),Ce("__all_sessionStorage__","sessionStorage"),Ce(i,"localStorage"),Ce(s,"localStorage"),Ce(u,"localStorage"),Ce(c,"localStorage"),Ce(p,"localStorage"),l(),a&&(window.location.replace("#/"),setTimeout(()=>{window.location.reload()},0))},o=()=>{t(!0)};return{..._e(e),signing:n,logout:o,clearSigningCallback:t}},{persist:{key:Z.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),$n=it("keepAlive",()=>{const e=le({keepAliveInclude:[]}),n=()=>e.keepAliveInclude.length,t=a=>{const l=n(),{name:s,meta:{keepAlive:i}}=a,{maxKeepAliveLength:u}=Re().keepAliveConfig;if(i){if(l=u&&(e.keepAliveInclude.splice(0,1),e.keepAliveInclude.push(s))}},o=()=>e.keepAliveInclude;return{..._e(e),setKeepAliveInclude:t,getKeepAliveInclude:o}},{persist:{key:Z.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),Se=()=>{const e=Lt(),n=w(()=>e.options),t=w(()=>e.breadcrumbOptions),o=w(()=>e.menuKey),a=w(()=>{const{getRootPath:i}=ze();return e.menuTagOptions.map((u,c,p)=>(u.key===o.value&&u.key!==i.value?u.closeable=!0:u.closeable=!1,u.key===i.value&&(u.closeable=!1),p.length<=1&&(u.closeable=!1),u))}),l=w(()=>e.currentMenuOption),s=w(()=>e.collapsed);return{getMenuOptions:n,getBreadcrumbOptions:t,getMenuKey:o,getMenuTagOptions:a,getCurrentMenuOption:l,getCollapsed:s}},De=()=>{const{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:a,updateMenuState:l,setupAppMenu:s}=Lt();return{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:a,updateMenuState:l,setupAppMenu:s}},G=()=>{const e=Re(),n=w(()=>e.drawerPlacement),t=w(()=>e.primaryColorOverride),o=w(()=>e._appTheme),a=w(()=>e.appTheme),l=w(()=>e.menuTagSwitch),s=w(()=>e.breadcrumbSwitch),i=w(()=>e.localeLanguage),u=w(()=>e.lockScreenSwitch),c=w(()=>e.copyrightSwitch),p=w(()=>e.contentTransition),g=w(()=>e.watermarkSwitch),v=w(()=>e.watermarkConfig),f=w(()=>e.appRootRoute),m=w(()=>e.sideBarLogo),_=w(()=>e.keepAliveConfig),h=w(()=>e.menuConfig),S=w(()=>e.colorWeakness),d=w(()=>e.dynamicDocumentTitle);return{getDrawerPlacement:n,getPrimaryColorOverride:t,getAppTheme:o,getMenuTagSwitch:l,getBreadcrumbSwitch:s,getLocaleLanguage:i,getLockScreenSwitch:u,getCopyrightSwitch:c,getContentTransition:p,getWatermarkSwitch:g,getWatermarkConfig:v,getAppRootRoute:f,getSideBarLogo:m,getKeepAliveConfig:_,getMenuConfig:h,getAppThemeStr:a,getColorWeakness:S,getDynamicDocumentTitle:d}},U=()=>{const{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=Re();return{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}},Kn=()=>{const e=Un();return{getSigningCallback:w(()=>e.signingCallback)}},Wn=()=>{const{signing:e,logout:n,clearSigningCallback:t}=Un();return{signing:e,logout:n,clearSigningCallback:t}},Vr=()=>{const e=$n();return{getKeepAliveInclude:w(()=>e.keepAliveInclude)}},Nr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:n}=$n();return{setKeepAliveInclude:e,getKeepAliveInclude:n}},Ai=e=>{const n=la();e.use(n),n.use(aa)},qn=e=>{const{getSigningCallback:n}=Kn(),{role:t}=e;return qe!=null&&qe.length&&qe.includes(n.value.role)||!t||!(t!=null&&t.length)?!0:t?t.includes(n.value.role):!0},Ur=e=>{const{setupRouterLoadingBar:n,setupRouterGuard:t}=Ya;n&&Jl(e),t&&Yl(e)},$r=e=>{if(!Array.isArray(e))return;const n=t=>{for(const o of t){if((!o.children||o.children.length===0)&&!o.meta.windowOpen)return o;{const a=n(o.children||[]);if(a)return a}}};return n(e)},Kr=E(),Wr=R({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=ut(),{getSideBarLogo:n}=G();return{sideBarLogo:n,sideBarLogoClick:()=>{n.value&&n.value.url&&(n.value.jumpType==="station"?e.push(n.value.url):window.open(n.value.url))},TemplateLogo:({cursor:a})=>{if(!n.value)return null;if(typeof n.value.icon=="string")return r(x,{name:n.value.icon,size:"30",cursor:a},null);if(fe(n.value.icon,"Object"))return be(n.value.icon)}}},render(){const{sideBarLogo:e,collapsed:n,TemplateLogo:t,sideBarLogoClick:o}=this;return e!=null&&e.title?r("div",{class:["ray-menu__logo",e!=null&&e.url?"ray-menu__logo-url":null],onClick:o.bind(this),ref:Kr},[e!=null&&e.icon?n?r(Qe,{placement:"right"},{trigger:()=>t({cursor:"pointer"}),default:()=>e.title}):t({cursor:"pointer"}):n?r(Qe,{placement:"right"},{trigger:()=>r($t,{type:"primary",size:18},{default:()=>{var a;return[((a=e.title)==null?void 0:a[0])||null]}}),default:()=>e.title}):null,r($t,{class:[n?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"'],type:"primary",size:18},{default:()=>[r(fn,null,{default:()=>[e.title]})]})]):null}}),qr=R({name:"AppMenu",setup(){const e=E(null),{changeMenuModelValue:n,collapsedMenu:t,updateMenuState:o}=De(),{getMenuConfig:a}=G(),{getMenuOptions:l,getCollapsed:s,getMenuKey:i}=Se(),u=w({get:()=>(setTimeout(()=>{g()},300),i.value),set:()=>{c.value&&me("globalDrawerValue",!1)}}),{isTabletOrSmaller:c}=$e({observer:f=>{f&&o("collapsed",!1)}}),p=w({get:()=>ct("globalDrawerValue").value,set:f=>{me("globalDrawerValue",f)}}),g=()=>{const f=u.value;f!=null&&te(()=>{var m,_;return(_=(m=e.value)==null?void 0:m.showOption)==null?void 0:_.call(m,f)})};return{isTabletOrSmaller:c,BasicMenu:()=>r(wo,{class:"app-menu__sider",showTrigger:!c.value,collapseMode:a.value.collapsedMode,collapsedWidth:a.value.collapsedWidth,onUpdateCollapsed:t.bind(this),width:a.value.menuWidth,nativeScrollbar:a.value.nativeScrollbar,ref:Pn,collapsed:s.value,onExpand:()=>{o("collapsed",!1)},onCollapse:()=>{o("collapsed",!0)},inverted:a.value.inverted},{default:()=>[a.value.menuSiderBarLogo?r(Wr,{collapsed:s.value},null):null,r(So,{ref:e,class:"r-menu--app",keyField:"fullPath",value:u.value,"onUpdate:value":f=>u.value=f,options:l.value,indent:a.value.collapsedIndent,collapsed:s.value,collapsedIconSize:a.value.collapsedIconSize,collapsedWidth:a.value.collapsedWidth,onUpdateValue:(f,m)=>{n(f,m)},accordion:a.value.accordion,iconSize:a.value.iconSize,inverted:a.value.inverted},null)]}),modelGlobalDrawerValue:p}},render(){const{isTabletOrSmaller:e,BasicMenu:n}=this;return e?r(gn,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":t=>this.modelGlobalDrawerValue=t,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[r(n,null,null)]}):r(n,null,null)}});class Gr{constructor(){Vt(this,"pendingRequest");this.pendingRequest=new Map}isAppending(n){var t;return((t=n.cancelConfig)==null?void 0:t.cancel)??!0}generateRequestKey(n){const{method:t,url:o}=n;return[o||"",t||"",JSON.stringify(n.params),JSON.stringify(n.data)].join("&")}addPendingRequest(n){var t;if(this.isAppending(n)){n.__CANCELER_TAG_RAY_TEMPLATE__="__CANCELER_TAG_RAY_TEMPLATE__";const o=this.generateRequestKey(n);if(this.pendingRequest.has(o))n.signal=(t=this.pendingRequest.get(o))==null?void 0:t.signal;else{const a=new AbortController;n.signal=a.signal,this.pendingRequest.set(o,a)}}}removePendingRequest(n){const t=this.generateRequestKey(n);this.pendingRequest.has(t)&&(this.pendingRequest.get(t).abort(),this.pendingRequest.delete(t))}cancelAllRequest(){this.pendingRequest.forEach(n=>{n.abort()})}}const yt={requestInstance:null,responseInstance:null},bt={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},He={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},Hr=new Gr,Ri=()=>{const e=(i,u)=>{u==="requestInstance"?yt.requestInstance=i:yt.responseInstance=i},n=i=>yt[i],t=(i,u,c)=>{c==="ok"?bt[i]=u:He[i]=u},o=(i,u)=>u==="ok"?bt[i]:He[i],a=(i,...u)=>{Array.isArray(i)&&i.forEach(c=>{typeof c=="function"&&c(...u)})};return{createAxiosInstance:e,setImplement:t,getImplement:o,getAxiosInstance:n,beforeFetch:(i,u,c)=>{const p=c==="ok"?bt[u]:He[u],g=n(i),{MODE:v}=Tt();g&&a(p,g,v)},fetchError:(i,u,c)=>{const p=He[c],{MODE:g}=Tt();a(p,u,g)}}},Yr=R({name:"AppRequestCancelerProvider",setup(e,{expose:n}){ma(()=>{Hr.cancelAllRequest()}),n()},render(){return r("div",{class:"app-style-provider"},null)}}),Gn=R({name:"LayoutContentWrapper",setup(){ut();const{maximize:e}=Xn(),{getContentTransition:n}=G(),t=E(!1),o={opacitySpinning:"0"},{globalMainLayoutLoad:a,layoutContentMaximize:l,layoutContentSpinning:s}=Ja();return{globalMainLayoutLoad:a,spinning:t,themeOverridesSpin:o,getContentTransition:n,layoutContentMaximize:l,maximize:e,layoutContentSpinning:s}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:n,layoutContentSpinning:t,maximize:o,spinning:a,themeOverridesSpin:l,getContentTransition:s}=this;return r(rt,{show:a||!e||t,description:"loading...",size:"large",themeOverrides:l,class:[n?"r-layout-full__viewer-content--maximize":null]},{default:()=>[n?r("div",{class:"layout-content__maximize-out",onClick:()=>{o(!1)}},[r(x,{name:"out",size:"16",cursor:"pointer"},null)]):null,r(Yr,null,null),e?r(Cr,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),Xr=Object.freeze(Object.defineProperty({__proto__:null,default:Gn},Symbol.toStringTag,{value:"Module"}));var Jr={pkg:{dependencies:{"@logicflow/core":"2.0.6","@logicflow/extension":"2.0.10","@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^8.13.0","@typescript-eslint/parser":"^8.13.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.1","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5","rollup-plugin-gzip":"4.0.1",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.6.3","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.1.10"},name:"ray-template",version:"5.0.5"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Zr=R({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=Jr;return{copyright:e}},render(){return this.copyright?r("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),Qr=R({name:"TooltipIcon",props:{...Co,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:n}){const t=a=>{n("click",a)};return{iconClick:t,Icon:()=>r(x,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:t.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?r(Qe,this.$props,{trigger:()=>r(e,null,null),default:()=>this.tooltipText}):r(e,null,null)}}),es=R({name:"ThemeSegment",setup(){const{system:e}=yn(),{getAppThemeStr:n,getAppTheme:t}=G(),{updateSettingState:o}=U(),a=[{label:"深色",key:"dark",icon:()=>r(x,{name:"dark",size:"16"},null)},{label:"浅色",key:"light",icon:()=>r(x,{name:"light",size:"16"},null)},{label:"自动",key:"auto",icon:()=>r(x,{name:"system_os",size:"16"},null)}],l=w({get:()=>n.value==="auto"?"auto":t.value?"dark":"light",set:i=>{s(i,e.value)}}),s=(i,u)=>{if(i==="auto"){o("_appTheme",u==="dark"),o("appTheme","auto");return}o("_appTheme",i==="dark"),o("appTheme",i)};return ce(()=>{s(l.value,e.value)}),{options:a,modelAppTheme:l}},render(){const{options:e}=this;return r(xr,{options:e,size:"small",width:"block",value:this.modelAppTheme,"onUpdate:value":n=>this.modelAppTheme=n},null)}}),ts={contentTransition:"scale",watermarkSwitch:!1,keepAliveConfig:{maxKeepAliveLength:10,setupKeepAlive:!0,keepAliveExclude:[]},menuConfig:{collapsedWidth:64,collapsedMode:"width",collapsedIconSize:16,collapsedIndent:24,accordion:!1,menuSiderBarLogo:!0,iconSize:16,menuWidth:272,inverted:!1,nativeScrollbar:!1},menuTagSwitch:!0,breadcrumbSwitch:!0,copyrightSwitch:!0,drawerPlacement:"right",colorWeakness:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15,xGap:0,yGap:0,cross:!0},dynamicDocumentTitle:!0},ns=()=>ts,Ue=Symbol("segmentDrawer"),os=R({name:"SegmentViewsAppearance",setup(){const e=Me(Ue,{}),{changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=U();return{toggleColorWeakness:o,model:e,changePrimaryColor:n,updateSettingState:t}},render(){const{toggleColorWeakness:e,model:n,changePrimaryColor:t,updateSettingState:o}=this;return r(L,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(ae,null,{default:()=>[$("系统主题")]}),r(es,null,null),r(ae,null,{default:()=>[$("内置主题")]}),r(To,{showPreview:!0,swatches:re.appThemeColors,value:n.primaryColorOverride.common.primaryColor,"onUpdate:value":a=>n.primaryColorOverride.common.primaryColor=a,onUpdateValue:t.bind(this)},null),r(ae,null,{default:()=>[$("切换动画")]}),r(Kt,{value:n.contentTransition,"onUpdate:value":a=>n.contentTransition=a,options:Ka,onUpdateValue:a=>{o("contentTransition",a)}},null),r(ae,null,{default:()=>[$("配置入口出现位置")]}),r(Kt,{value:n.drawerPlacement,"onUpdate:value":a=>n.drawerPlacement=a,options:[{label:"右边",value:"right"},{label:"左边",value:"left"}],onUpdateValue:a=>{o("drawerPlacement",a)}},null),r(ae,null,{default:()=>[$("其他设置")]}),r(ie,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(z,{label:"面包屑"},{default:()=>[r(Q,{value:n.breadcrumbSwitch,"onUpdate:value":a=>n.breadcrumbSwitch=a,onUpdateValue:a=>o("breadcrumbSwitch",a)},null)]}),r(z,{label:"标签页"},{default:()=>[r(Q,{value:n.menuTagSwitch,"onUpdate:value":a=>n.menuTagSwitch=a,onUpdateValue:a=>o("menuTagSwitch",a)},null)]}),r(z,{label:"页底信息"},{default:()=>[r(Q,{value:n.copyrightSwitch,"onUpdate:value":a=>n.copyrightSwitch=a,onUpdateValue:a=>o("copyrightSwitch",a)},null)]}),r(z,{label:"色弱模式"},{default:()=>[r(Q,{value:n.colorWeakness,"onUpdate:value":a=>n.colorWeakness=a,onUpdateValue:a=>{o("colorWeakness",a),e(a)}},null)]})]})]})}}),as=R({name:"SegmentViewsCommon",setup(){const e=Me(Ue,{}),{updateSettingState:n}=U();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(L,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(ae,null,{default:()=>[$("基础设置")]}),r(ie,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(z,{label:"页面缓存"},{default:()=>[r(Q,{value:e.keepAliveConfig.setupKeepAlive,"onUpdate:value":t=>e.keepAliveConfig.setupKeepAlive=t,onUpdateValue:t=>n("keepAliveConfig",{setupKeepAlive:t})},null)]}),r(z,{label:"动态浏览器标题"},{default:()=>[r(Q,{value:e.dynamicDocumentTitle,"onUpdate:value":t=>e.dynamicDocumentTitle=t,onUpdateValue:t=>n("dynamicDocumentTitle",t)},null)]})]}),r(ae,null,{default:()=>[$("缓存设置")]}),r(ie,{labelPlacement:"top",showFeedback:!0,showRequireMark:!1,model:e.keepAliveConfig},{default:()=>[r(z,{label:"最大缓存数",feedback:w(()=>e.keepAliveConfig.maxKeepAliveLength<=0?"设置为【0】时,缓存将会失效":"").value},{default:()=>[r(q,{disabled:!e.keepAliveConfig.setupKeepAlive,value:e.keepAliveConfig.maxKeepAliveLength,"onUpdate:value":t=>e.keepAliveConfig.maxKeepAliveLength=t,min:0,precision:0,showButton:!1,onUpdateValue:t=>n("keepAliveConfig",{maxKeepAliveLength:t})},null)]}),r(z,{label:"排除缓存"},{default:()=>[r(ko,{type:"success",value:e.keepAliveConfig.keepAliveExclude,"onUpdate:value":t=>e.keepAliveConfig.keepAliveExclude=t},null)]})]})]})}}),ls=R({name:"SegmentViewsWatermark",setup(){const e=Me(Ue,{}),{updateSettingState:n}=U();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(L,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(ae,null,{default:()=>[$("基础设置")]}),r(ie,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(z,{label:"全屏水印"},{default:()=>[r(Q,{value:e.watermarkSwitch,"onUpdate:value":t=>e.watermarkSwitch=t,onUpdateValue:t=>n("watermarkSwitch",t)},null)]}),r(z,{label:"跨边界显示"},{default:()=>[r(Q,{value:e.watermarkConfig.cross,"onUpdate:value":t=>e.watermarkConfig.cross=t,onUpdateValue:t=>n("watermarkConfig",{cross:t})},null)]})]}),r(ae,null,{default:()=>[$("个性化水印")]}),r(ie,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(z,{label:"水印内容"},{default:()=>[r(xt,{value:e.watermarkConfig.content,"onUpdate:value":t=>e.watermarkConfig.content=t,onUpdateValue:t=>n("watermarkConfig",{content:t})},null)]}),r(z,{label:"字体尺寸"},{default:()=>[r(q,{precision:0,showButton:!1,value:e.watermarkConfig.fontSize,"onUpdate:value":t=>e.watermarkConfig.fontSize=t,onUpdateValue:t=>n("watermarkConfig",{fontSize:t})},null)]}),r(z,{label:"字体行高"},{default:()=>[r(q,{precision:0,showButton:!1,value:e.watermarkConfig.lineHeight,"onUpdate:value":t=>e.watermarkConfig.lineHeight=t,onUpdateValue:t=>n("watermarkConfig",{lineHeight:t})},null)]}),r(z,{label:"字体宽度"},{default:()=>[r(q,{precision:0,showButton:!1,value:e.watermarkConfig.width,"onUpdate:value":t=>e.watermarkConfig.width=t,onUpdateValue:t=>n("watermarkConfig",{width:t})},null)]}),r(z,{label:"字体高度"},{default:()=>[r(q,{precision:0,showButton:!1,value:e.watermarkConfig.height,"onUpdate:value":t=>e.watermarkConfig.height=t,onUpdateValue:t=>n("watermarkConfig",{height:t})},null)]}),r(z,{label:"x轴偏移"},{default:()=>[r(q,{precision:0,showButton:!1,value:e.watermarkConfig.xOffset,"onUpdate:value":t=>e.watermarkConfig.xOffset=t,onUpdateValue:t=>n("watermarkConfig",{xOffset:t})},null)]}),r(z,{label:"x轴间隙"},{default:()=>[r(q,{precision:0,showButton:!1,value:e.watermarkConfig.xGap,"onUpdate:value":t=>e.watermarkConfig.xGap=t,onUpdateValue:t=>n("watermarkConfig",{xGap:t})},null)]}),r(z,{label:"y轴偏移"},{default:()=>[r(q,{precision:0,showButton:!1,value:e.watermarkConfig.yOffset,"onUpdate:value":t=>e.watermarkConfig.yOffset=t,onUpdateValue:t=>n("watermarkConfig",{yOffset:t})},null)]}),r(z,{label:"y轴间隙"},{default:()=>[r(q,{precision:0,showButton:!1,value:e.watermarkConfig.yGap,"onUpdate:value":t=>e.watermarkConfig.yGap=t,onUpdateValue:t=>n("watermarkConfig",{yGap:t})},null)]}),r(z,{label:"旋转角度"},{default:()=>[r(q,{precision:0,showButton:!1,value:e.watermarkConfig.rotate,"onUpdate:value":t=>e.watermarkConfig.rotate=t,onUpdateValue:t=>n("watermarkConfig",{rotate:t})},null)]})]})]})}}),rs=R({name:"SegmentViewsCustomMenu",setup(){const e=Me(Ue,{}),{updateSettingState:n}=U();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(L,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(ae,{titlePlacement:"center"},{default:()=>[r(L,{wrap:!1,align:"center",size:[4,0]},{default:()=>[r(Qe,{placement:"top",showArrow:!1},{trigger:()=>r(x,{name:"question",size:"16"},null),default:()=>"菜单更新是一个复杂、耗时的操作,请手动点击【更新菜单】按钮更新设置"}),r(hn,null,{default:()=>[$("菜单样式")]})]})]}),r(ie,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(z,{label:"每级菜单缩进"},{default:()=>[r(q,{value:e.menuConfig.collapsedIndent,"onUpdate:value":t=>e.menuConfig.collapsedIndent=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIndent:t})},null)]}),r(z,{label:"菜单图标尺寸"},{default:()=>[r(q,{value:e.menuConfig.iconSize,"onUpdate:value":t=>e.menuConfig.iconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{iconSize:t})},null)]}),r(z,{label:"折叠菜单图标尺寸"},{default:()=>[r(q,{value:e.menuConfig.collapsedIconSize,"onUpdate:value":t=>e.menuConfig.collapsedIconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIconSize:t})},null)]}),r(z,{label:"菜单宽度"},{default:()=>[r(q,{value:e.menuConfig.menuWidth,"onUpdate:value":t=>e.menuConfig.menuWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{menuWidth:t})},null)]}),r(z,{label:"折叠菜单宽度"},{default:()=>[r(q,{value:e.menuConfig.collapsedWidth,"onUpdate:value":t=>e.menuConfig.collapsedWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedWidth:t})},null)]}),r(z,{showFeedback:!1,showLabel:!1},{default:()=>[r(Y,{onClick:e.throttleSetupAppMenu,block:!0,type:"primary"},{default:()=>[$("更新菜单")]})]})]}),r(ae,null,{default:()=>[$("其他设置")]}),r(ie,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(z,{label:"反转色菜单"},{default:()=>[r(Q,{value:e.menuConfig.inverted,"onUpdate:value":t=>e.menuConfig.inverted=t,onUpdateValue:t=>n("menuConfig",{inverted:t})},null)]}),r(z,{label:"菜单标题"},{default:()=>[r(Q,{value:e.menuConfig.menuSiderBarLogo,"onUpdate:value":t=>e.menuConfig.menuSiderBarLogo=t,onUpdateValue:t=>n("menuConfig",{menuSiderBarLogo:t})},null)]}),r(z,{label:"手风琴菜单"},{default:()=>[r(Q,{value:e.menuConfig.accordion,"onUpdate:value":t=>e.menuConfig.accordion=t,onUpdateValue:t=>n("menuConfig",{accordion:t})},null)]}),r(z,{label:"原生滚动条"},{default:()=>[r(Q,{value:e.menuConfig.nativeScrollbar,"onUpdate:value":t=>e.menuConfig.nativeScrollbar=t,onUpdateValue:t=>n("menuConfig",{nativeScrollbar:t})},null)]})]})]})}}),ss=R({name:"SettingDrawer",props:Oo,setup(){const{create:e}=ir(),{changePrimaryColor:n,updateSettingState:t}=U(),{getAppTheme:o,getPrimaryColorOverride:a,getMenuTagSwitch:l,getBreadcrumbSwitch:s,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c,getKeepAliveConfig:p,getMenuConfig:g,getDrawerPlacement:v,getColorWeakness:f,getWatermarkConfig:m,getDynamicDocumentTitle:_}=G(),{setupAppMenu:h}=De(),S=Rt(h,300),d=le({menuTagSwitch:l.value,breadcrumbSwitch:s.value,copyrightSwitch:i.value,contentTransition:u.value,watermarkSwitch:c.value,keepAliveConfig:p.value,menuConfig:g.value,drawerPlacement:v.value,colorWeakness:f.value,primaryColorOverride:a.value,watermarkConfig:m.value,dynamicDocumentTitle:_.value,throttleSetupAppMenu:S}),y=()=>{e({preset:"dialog",title:"恢复默认配置",type:"warning",content:"点击【确认初始化】按钮会恢复默认系统配置,是否继续?",positiveText:"确认初始化",negativeText:"取消",onPositiveClick:()=>{ro(ns(),(T,C)=>{d[C]=T,t(C,T)}),S()}})};return Sn(Ue,d),{changePrimaryColor:n,getAppTheme:o,getPrimaryColorOverride:a,updateSettingState:t,modelReactive:d,defaultSettingBtnClick:y}},render(){const{defaultSettingBtnClick:e,$props:n}=this,{trapFocus:t,autoFocus:o,nativeScrollbar:a,...l}=n;return r(gn,N(l,{trapFocus:!1,autoFocus:!1,width:320}),{default:()=>[r(Ao,{title:"个性化配置",closable:!0},{default:()=>r(mn,{type:"bar",animated:!0,defaultValue:"appearance"},{default:()=>[r(We,{name:"appearance",tab:"外观"},{default:()=>[r(os,null,null)]}),r(We,{name:"menu",tab:"菜单"},{default:()=>[r(rs,null,null)]}),r(We,{name:"watermark",tab:"水印"},{default:()=>[r(ls,null,null)]}),r(We,{name:"common",tab:"通用"},{default:()=>[r(as,null,null)]})]}),footer:()=>r(L,{justify:"flex-start"},{default:()=>[r(Y,{type:"warning",onClick:e},{icon:()=>r(x,{name:"reload"},null),default:()=>"初始化配置"})]})})]})}});function is(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const us=R({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=De(),{getBreadcrumbOptions:n}=Se(),{isTabletOrSmaller:t}=$e();return{getBreadcrumbOptions:n,dropdownSelect:(l,s)=>{e(l,s)},breadcrumbItemClick:l=>{var s;if(!((s=l.children)!=null&&s.length)){const{meta:i={}}=l;i.sameLevel||e(l.fullPath,l)}},isTabletOrSmaller:t}},render(){let e;const{isTabletOrSmaller:n,getBreadcrumbOptions:t}=this,{dropdownSelect:o,breadcrumbItemClick:a}=this;return n?r("div",{style:"display: none;"},null):r(Po,null,{default:()=>[r(Ba,{tag:"li",name:"breadcrumb",appear:!0},is(e=t.map(l=>r(Ro,{key:l.fullPath,onClick:a.bind(this,l)},{default:()=>{var s;return[r(Ae,{labelField:"breadcrumbLabel",keyField:"fullPath",options:l.children&&((s=l.children)==null?void 0:s.length)>1?l.children:[],onSelect:o.bind(this)},{default:()=>r("span",null,[l.label&&typeof l.label=="function"?l.label():l.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function _t(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const cs=R({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:n}){const{changeMenuModelValue:t,resolveOption:o}=De(),{getRoutes:a}=ut(),l=w({get:()=>e.show,set:b=>{n("update:show",b),b||f()}}),s=le({searchValue:null,searchOptions:[]}),i=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let u=0,c=u;const{isTabletOrSmaller:p}=$e(),g=E(!1),v="content-item--active",f=()=>{s.searchOptions=[],s.searchValue=null,u=0,c=u},m=b=>{l.value||(b.ctrlKey||b.metaKey)&&b.key==="k"&&(b.preventDefault(),b.stopPropagation(),f(),l.value=!0)},_=b=>{if(b)g.value=!0;else{g.value=!1,s.searchOptions=[];return}const M=a().reduce((P,k)=>{var W;const O=Fe(k,["children","meta","path","name"]),B=o({...O,fullPath:k.path}),{breadcrumbLabel:H}=B;return(W=H==null?void 0:H.toLocaleLowerCase())!=null&&W.includes(b.toLocaleLowerCase())&&Mn(B)&&P.push(B),P},[]);setTimeout(()=>{s.searchOptions=M,te().then(()=>{S()}),g.value=!1},300)},h=b=>{if(b){const{meta:M}=b;M.windowOpen?window.open(M.windowOpen):(l.value=!1,t(b.fullPath,b),setTimeout(Qo,300))}},S=()=>{const b=s.searchOptions[u],M=s.searchOptions[c];b&&te().then(()=>{const P=ot(`attr:data_path="${b.path}"`),k=M?ot(`attr:data_path="${M==null?void 0:M.path}"`):null;if(k!=null&&k.length){const[O]=k;ea(O,v)}if(P!=null&&P.length){const[O]=P;On(O,v)}})},d=b=>{const{icon:M}=b;return typeof M=="string"&&M?r(x,{name:M,size:"24"},null):typeof M=="function"?r(M,null,null):r(x,{name:"search",size:"24"},null)},y=b=>{b==="up"&&(u-=1,u<0&&(u=s.searchOptions.length-1)),b==="down"&&(u+=1,u>=s.searchOptions.length&&(u=0))},T=b=>{const M=b.key;switch((M==="ArrowUp"||M==="ArrowDown"||M==="Enter")&&(b.preventDefault(),b.stopPropagation()),c=u<=0?0:u,M){case"ArrowUp":y("up");break;case"ArrowDown":y("down");break;case"Enter":const P=s.searchOptions[u];P&&h(P);break}S()},C=({menuOption:b})=>r(L,N({align:"center",class:"content-item"},{onClick:h.bind(this,b),data_path:b.path}),{default:()=>[r("div",{class:"content-item-icon"},[d(b.meta)]),r("div",{class:"content-item-label"},[b.breadcrumbLabel]),r(x,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return ce(()=>{p.value&&(l.value=!1)}),je(window,"keydown",b=>{m(b),T(b)},!0),{..._e(s),modelShow:l,helperTipOptions:i,fuzzySearchMenuOptions:Rt(_,300),searchItemClick:h,RenderPreIcon:d,isTabletOrSmaller:p,SearchItem:C,loading:g}},render(){const{isTabletOrSmaller:e,searchOptions:n,loading:t}=this,{SearchItem:o,fuzzySearchMenuOptions:a}=this;return e?r("div",{style:"display: none;"},null):r(dn,{show:this.modelShow,"onUpdate:show":l=>this.modelShow=l,transformOrigin:"center",displayDirective:"if"},{default:()=>[r("div",{class:"global-search global-search--dark global-search--light"},[r("div",{class:"global-search__wrapper"},[r(lt,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>r(xt,{size:"large",value:this.searchValue,"onUpdate:value":l=>this.searchValue=l,clearable:!0,onInput:a.bind(this)},{prefix:()=>r(x,{name:"search",size:"24"},null)}),default:()=>{let l;return r(Pt,null,{default:()=>[r(rt,{show:t},{default:()=>[n.length?r(L,{vertical:!0,size:[0,6],class:"global-search__card-content"},_t(l=n.map((s,i)=>r(o,{menuOption:s,key:s.fullPath},null)))?l:{default:()=>[l]}):r(xo,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>r(L,{justify:"center",class:"global-search__empty-content"},{default:()=>[r(hn,null,{default:()=>[$("没有搜索结果")]})]})})]})]})},action:()=>{let l;return r(L,{justify:"flex-start",align:"center",size:[16,0]},_t(l=this.helperTipOptions.map(s=>r(L,{key:s.label,size:[4,0]},{default:()=>[s.icon.map(i=>r(L,{class:"item-icon",align:"center",justify:"center"},_t(i)?i:{default:()=>[i]})),r(L,{class:"item-label",align:"center"},{default:()=>[s.label]})]})))?l:{default:()=>[l]})}})])])]})}}),ds=R({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const o=ta();return o==="MacOS"?"⌘ + K":"CTRL + K"},click:o=>{const{onClick:a}=e;a&&F(a,o)}}},render(){const{getShortcutKeyAboutSystem:e,click:n,$t:t}=this;return r(Y,{bordered:!1,onClick:n.bind(this),round:!0,tertiary:!0,style:"margin-right: 16px"},{icon:()=>r(x,{name:"search",size:"16"},null),default:()=>r(L,{align:"center"},{default:()=>[t("headerTooltip.Search"),r("div",{class:"global-search-btn__label"},[e()])]})})}}),Hn=R({name:"AppAvatar",props:{...Mo,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number,Array],default:"medium"},avatarSize:{type:[String,Number],default:"medium"},vertical:{type:Boolean,default:!1}},setup(){const{getSigningCallback:e}=Kn();return{getSigningCallback:e}},render(){const{getSigningCallback:e,avatarSize:n,spaceSize:t,$props:o,vertical:a}=this;return r(Y,{quaternary:!0,strong:!0,focusable:!1},{default:()=>[r(L,{align:"center",size:t,vertical:a},{default:()=>[r(Eo,N(o,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:n}),null),e==null?void 0:e.name]})]})}}),ps=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],ms={logout:()=>{const{logout:e}=Wn();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=U();e("lockScreenSwitch",!0)}},fs=e=>{const n=ms[e];n?n():window.$message.info("这个人很懒, 没做这个功能~")},gs=e=>{const{isTabletOrSmaller:n}=e,t=[],o=[{name:"menu",size:18,eventKey:"menu"}];return n.value?o:t},hs=e=>{const{isTabletOrSmaller:n}=e,t=[{name:"fullscreen",size:18,eventKey:"screen"},{name:"github",size:18,eventKey:"github"},{name:"setting",size:18,eventKey:"setting"}],o=[...t],a=[...t];return n.value?a:o},vs=R({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:n}=U(),{t}=Ne(),[o,{toggleFullscreen:a,isEnabled:l}]=Cn(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:i}=G(),u=E(!1),c=E(!1),{isTabletOrSmaller:p}=$e(),g=ct("globalDrawerValue"),v=w(()=>gs({isFullscreen:o,isTabletOrSmaller:p})),f=w(()=>hs({isFullscreen:o,isTabletOrSmaller:p})),m={search:()=>{c.value=!0},setting:()=>{u.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{l||window.$message.warning(t("globalMessage.isEnabledFullscreen")),a()},lock:()=>{n("lockScreenSwitch",!0)},menu:()=>{me("globalDrawerValue",!g.value)}};return{leftIconOptions:v,rightTooltipIconOptions:f,toolIconClick:S=>{var d;(d=m[S])==null||d.call(m)},showSettings:u,updateLocale:e,getDrawerPlacement:s,getBreadcrumbSwitch:i,globalSearchShown:c,isRenderVNode:S=>p.value?null:S}},render(){const{rightTooltipIconOptions:e,leftIconOptions:n,getDrawerPlacement:t,getBreadcrumbSwitch:o}=this,{toolIconClick:a,updateLocale:l,isRenderVNode:s}=this;return r(vn,{class:"layout-header"},{default:()=>[r(cs,{show:this.globalSearchShown,"onUpdate:show":i=>this.globalSearchShown=i},null),r(L,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[r(L,{align:"center",wrap:!1},{default:()=>[n.map(i=>r(Qr,{key:i.name,iconName:i.name,tooltipText:bn(i.tooltip)?i.tooltip.value:i.tooltip,customClassName:i.iconClass,onClick:a.bind(this,i.name)},null)),o?r(us,null,null):null]}),r(L,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[s(r(ds,{onClick:i=>{i.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(i=>r(Y,{class:"override-button__layout",quaternary:!0,size:"medium",key:i.name,onClick:a.bind(this,i.name),focusable:!1},{default:()=>[r(x,{name:i.name,size:16,cursor:"pointer"},null)]})),r(Ae,{options:Rn,onSelect:i=>l(String(i)),trigger:"click"},{default:()=>[r(Y,{quaternary:!0,class:"override-button__layout",focusable:!1},{default:()=>[r(x,{customClassName:"layout-header__method--icon",name:"language",size:"16",cursor:"pointer"},null)]})]}),r(Ae,{options:ps(),onSelect:fs.bind(this),trigger:"click"},{default:()=>[r(Hn,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),r(ss,{show:this.showSettings,"onUpdate:show":i=>this.showSettings=i,placement:t},null)]})}}),ys=R({name:"LayoutHeaderWrapper",setup(){return{}},render(){return r(L,{size:[0,0]},{default:()=>[r(vs,null,null)]})}});function bs(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const _s=R({name:"AppMenuTag",setup(e,{expose:n}){const t=ue("scrollRef"),{getMenuKey:o,getMenuTagOptions:a}=Se(),{changeMenuModelValue:l}=De(),{getRootPath:s}=ze(),{maximize:i}=Xn(),{reload:u}=Ms(),{close:c,closeAll:p,closeRight:g,closeLeft:v,closeOther:f,checkCloseLeft:m,checkCloseRight:_}=Jn(),h=["closeAll","closeRight","closeLeft","closeOther"];let S=1/0;const d={size:16},y=E([{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>r(x,{name:"close",size:d.size},null)},{label:"最大化当前页面",key:"maximizeLayoutContent",icon:()=>r(x,{name:"fullscreen_fold",size:d.size},null)},{label:"刷新当前页面",key:"reloadCurrentPage",icon:()=>r(x,{name:"reload",size:d.size},null)},{label:"新窗口打开",key:"windowOpenTab",icon:()=>r(x,{name:"shared",size:d.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>r(x,{name:"close_left",size:d.size},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>r(x,{name:"close_right",size:d.size},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>r(x,{name:"close_other",size:d.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>r(x,{name:"resize_h",size:d.size},null),disabled:!1}]),T=nt(16),C={closeCurrentPage:()=>{o.value!==s.value&&c(S)},reloadCurrentPage:()=>{u()},closeAll:()=>{p()},closeRight:()=>{g(S)},closeLeft:()=>{v(S)},closeOther:()=>{f(S)},windowOpenTab:()=>{const A=a.value[S];if(!(A!=null&&A.fullPath))return;const D=A.fullPath.startsWith("#")?A.fullPath:`#${A.fullPath}`;window.open(D,"_blank")},maximizeLayoutContent:()=>{const A=a.value[S];i(!0),A&&ne(A)}},b=le({x:0,y:0,actionDropdownShow:!1}),M="menu_tag_data",P=ct("globalMainLayoutLoad"),k="n-scrollbar-container";let O=o.value;const B=E(!1),H=A=>{c(A)},W=(A,D)=>{for(const J of y.value)if(J.key===A){J.disabled=D;break}},ne=A=>{b.actionDropdownShow=!1,l(A.fullPath,A)},X=()=>{const A=document.getElementById(T);if(A)return Array.from(A.childNodes).find(Ke=>na(Ke,k).value)},he=A=>{var J;const D=X();if(D){const Ke=D.scrollLeft||0,jt=A==="left"?Math.max(0,Ke-200):Ke+200;(J=t.value)==null||J.scrollTo({left:jt,behavior:"smooth"})}},oe=A=>{b.actionDropdownShow=!1;const D=C[A];D==null||D()},dt=(A,D)=>{D.preventDefault(),S=A,b.actionDropdownShow=!1,te(()=>{b.x=D.clientX,b.y=D.clientY,b.actionDropdownShow=!0})},Bt=()=>{_(S)?W("closeRight",!1):W("closeRight",!0),m(S)?W("closeLeft",!1):W("closeLeft",!0)},Qn=()=>{S=a.value.findIndex(D=>D.fullPath===o.value),Bt()},eo=A=>{a.value.length>1&&A.fullPath!==s.value&&(A.closeable=!0),B.value=!0},to=A=>{A.fullPath!==o.value&&(A.closeable=!1),B.value=!1},no=()=>{X()&&te().then(()=>{var D;(D=t.value)==null||D.scrollTo({left:99999,behavior:"smooth"})})},pt=()=>{te().then(()=>{const A=ot(`attr:${M}="${o.value}"`);if(A!=null&&A.length){const[D]=A;te().then(()=>{var J;(J=t.value)==null||J.scrollTo({left:D.offsetLeft,behavior:"smooth"})})}})},oo=()=>{i(!0)};return Pe(()=>a.value,(A,D)=>{y.value.forEach(J=>{h.includes(J.key)&&(A.length>1?J.disabled=!1:J.disabled=!0)}),D!=null&&D.length&&(A.length>(D==null?void 0:D.length)?no():A.length===(D==null?void 0:D.length)&&pt()),D===void 0&&pt()},{immediate:!0}),ce(()=>{b.actionDropdownShow&&Bt(),O!==o.value&&(O=o.value,pt())}),n(),{getMenuTagOptions:a,closeCurrentMenuTag:H,getMenuKey:o,menuTagClick:ne,moreOptions:y,scrollX:he,scrollRef:t,uuidScrollBar:T,actionDropdownSelect:oe,actionState:b,menuTagContextMenu:dt,setCurrentContextmenuIndex:Qn,menuTagMouseenter:eo,menuTagMouseleave:to,MENU_TAG_DATA:M,iconConfig:d,maximize:i,reload:u,globalMainLayoutLoad:P,maximizeBtnClick:oo,isMouseInMenuTag:B}},render(){let e;const{iconConfig:n,uuidScrollBar:t,getMenuTagOptions:o,MENU_TAG_DATA:a,globalMainLayoutLoad:l,isMouseInMenuTag:s}=this,{maximizeBtnClick:i,closeCurrentMenuTag:u,scrollX:c,$t:p,menuTagClick:g,menuTagContextMenu:v,menuTagMouseenter:f,menuTagMouseleave:m,actionDropdownSelect:_,reload:h}=this;return r(vn,null,{default:()=>[r("div",{class:"menu-tag"},[r(Ae,{class:"menu-tag__dropdown",options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onSelect:_.bind(this),onClickoutside:()=>{s||(this.actionState.actionDropdownShow=!1)}},null),r(L,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0},{default:()=>[r(Y,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.scrollX.bind(this,"left")},{icon:()=>r(x,{name:"expanded",width:n.size,height:n.size,customClassName:"menu-tag__left-arrow"},null)}),r(Pt,N({xScrollable:!0,ref:"scrollRef"},{id:t},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[r(L,{class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},bs(e=o.map((S,d)=>r(Y,N({key:S.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:S.fullPath===this.getMenuKey?"primary":"default"},{onClick:g.bind(this,S),onContextmenu:v.bind(this,d),onMouseenter:f.bind(this,S),onMouseleave:m.bind(this,S),[a]:S.fullPath},{size:"small",focusable:!1}),{default:()=>r(wn,null,[r("span",null,{default:()=>{const{breadcrumbLabel:y,meta:{i18nKey:T}}=S;return T?p(T):y}}),r(Do,N({class:"menu-tag__btn-icon"},{onMousedown:u.bind(this,d)}),{default:()=>[r(x,{name:"close",size:"14"},null)]})])})))?e:{default:()=>[e]})]}),r(L,{align:"center",inline:!0,wrap:!1,size:[0,0]},{default:()=>[r(Y,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:c.bind(this,"right")},{icon:()=>r(x,{name:"expanded",width:n.size,height:n.size,style:{transform:"rotate(180deg)"}},null)}),r(Y,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:i},{icon:()=>r(x,{name:"fullscreen_fold",width:n.size,height:n.size},null)}),r(Y,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:()=>{h()}},{icon:()=>r(x,{name:"reload",width:n.size,height:n.size,customClassName:`${l?"":"menu-tag__right-setting--spinning"}`},null)}),r(Ln,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:18,keyboard:!1},{default:()=>[r(Y,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.setCurrentContextmenuIndex.bind(this)},{icon:()=>r(x,{name:"more",width:n.size,height:n.size},null)})]})]})]})])]})}}),Ss=R({name:"LayoutFeatureWrapper",setup(){return{}},render(){return r(_s,null,null)}}),ws={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},an=()=>({lockPassword:null}),ln=Bo(Z.isAppLockScreen,!1,window.localStorage,{mergeDefaults:!0}),Yn=()=>({setLockAppScreen:t=>{ln.value=t},getLockAppScreen:()=>ln.value}),Cs=R({name:"UnlockScreen",setup(){const e=E(null),n=E(null),{logout:t}=Wn(),{updateSettingState:o}=U(),{setLockAppScreen:a}=Yn(),{isTabletOrSmaller:l}=$e(),s="HH:mm",i="A",u="YY年MM月DD日",c="ddd",p=le({lockCondition:an(),HH_MM:K().format(s),AM_PM:K().locale("en").format(i),YY_MM_DD:K().format(u),DDD:K().format(c)}),g=setInterval(()=>{p.HH_MM=K().format(s),p.AM_PM=K().format(i)},6e3),v=setInterval(()=>{p.YY_MM_DD=K().format(u),p.DDD=K().format(c)},864e5),f=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{t(),setTimeout(()=>{o("lockScreenSwitch",!1)})}})},m=()=>{var _;(_=e.value)==null||_.validate(h=>{h||(a(!1),o("lockScreenSwitch",!1),p.lockCondition=an())})};return Mt(()=>{clearInterval(g),clearInterval(v)}),{..._e(p),backToSigning:f,unlockScreen:m,formRef:e,inputInstRef:n,isTabletOrSmaller:l}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:n,AM_PM:t,YY_MM_DD:o,DDD:a}=this,l=n.split(":"),{unlockScreen:s,backToSigning:i}=this;return r("div",{class:"app-lock-screen__content app-lock-screen__content--full"},[r("div",{class:"app-lock-screen__unlock"},[r("div",{class:"app-lock-screen__unlock__content"},[r("div",{class:"app-lock-screen__unlock__content-wrapper"},[r("div",{class:["app-lock-screen__unlock__content-bg__wrapper","app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[r("div",{class:"left"},[l[0]]),r("div",{class:"right"},[l[1]])])]),r("div",{class:"app-lock-screen__unlock__content-avatar"},[r(Hn,{avatarSize:52,style:"pointer-events: none;",vertical:!0},null)]),r("div",{class:"app-lock-screen__unlock__content-input"},[r(ie,{ref:"formRef",model:this.lockCondition,rules:ws},{default:()=>[r(z,{path:"lockPassword"},{default:()=>[r(xt,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":u=>this.lockCondition.lockPassword=u,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,maxlength:12,onKeydown:u=>{u.code==="Enter"&&s()}},null)]}),r(L,{justify:"space-between"},{default:()=>[r(Y,{type:"primary",text:!0,onClick:i.bind(this)},{default:()=>[$("返回登陆")]}),r(Y,{type:"primary",text:!0,onClick:s.bind(this)},{default:()=>[$("进入系统")]})]})]})]),r("div",{class:"app-lock-screen__unlock__content-date"},[r("div",{class:"current-date"},[n,$(" "),r("span",null,[t])]),r("div",{class:"current-year"},[o,$(" "),r("span",null,[a])])])])])])}}),Ts=e=>{const n=ft(e[0]),t=ft(e[1]),o=ft(e[2]);return w(()=>({"--window-width":"var(--html-width)","--window-height":"var(--html-height)","--layout-content-height":`calc(var(--html-height) - ${n.height.value}px - ${t.height.value}px - ${o.height.value}px)`,"--layout-content-width":`${n.width.value}px`,"--layout-siderbar-height":`${n.height.value}px`,"--layout-menutag-height":`${t.height.value}px`,"--layout-footer-height":`${o.height.value}px`}))},ks=R({name:"RLayout",setup(){const e=E(),n=E(),t=E(),{getMenuTagSwitch:o,getCopyrightSwitch:a}=G(),{getLockAppScreen:l}=Yn(),s=Ts([e,n,t]);return{getMenuTagSwitch:o,cssVarsRef:s,getLockAppScreen:l,layoutSiderBarRef:e,layoutMenuTagRef:n,layoutFooterRef:t,getCopyrightSwitch:a}},render(){const{getMenuTagSwitch:e,cssVarsRef:n,getCopyrightSwitch:t}=this,{getLockAppScreen:o}=this;return o()?r(Cs,null,null):r(zo,{class:"r-layout-full",style:[n],hasSider:!0,embedded:!0},{default:()=>[r(qr,null,null),r(Wt,{class:"r-layout-full__viewer"},{default:()=>[r(ys,{ref:"layoutSiderBarRef"},null),e?r(Ss,{ref:"layoutMenuTagRef"},null):null,r(Wt,{ref:ke,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[r(Gn,null,null)]}),t?r(Zr,{ref:"layoutFooterRef"},null):null]})]})}}),Os=[{path:"/",name:"RLogin",component:()=>I(()=>import("./index-CCykVugW.js"),__vite__mapDeps([97,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,48,41,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,81,82,83,39,40,59,42,43,44,45,46,47,49,50,51,52,53,54,55,56,98]))},{path:"/",name:"RLayout",component:ks,children:[...jr(),{path:"/:catchAll(.*)",component:()=>I(()=>import("./index-BYpwN2eY.js"),__vite__mapDeps([99,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,41,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,100])),meta:{i18nKey:j("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],at=fa({history:ga(),routes:Os,scrollBehavior:e=>{Xl(e)}}),Pi=e=>{e.use(at),Ur(at)},Ft=()=>at?{router:at}:{router:{}},rn="YYYY-MM-DD HH:mm:ss",As=()=>({locale:s=>{const i=Ga[s];i?K.locale(i):K.locale(Ha)},getStartAndEndOfDay:s=>{const{format:i=rn}=s??{},u=K(),c=u.startOf("day"),p=u.endOf("day"),g=u.format(i),v=c.format(i),f=p.format(i);return{today:u,startOfDay:c,endOfDay:p,formatToday:g,formatStartOfDay:v,formatEndOfDay:f}},format:(s,i)=>{const{format:u=rn}=i??{};return K(s).format(u)},isDayjs:s=>K.isDayjs(s),daysDiff:(s,i)=>{const u=K(s);return K(i).diff(u,"days")},isDateInRange:(s,i)=>{const{start:u,end:c}=i,p=K(s);return p.isAfter(u)&&p.isBefore(c)}});function $e(e){const{width:n,height:t}=jo(e),o=E(!1),{observer:a}=e??{};return oa(()=>{const{media:s=768}=e??{};o.value=n.value<=s,a==null||a(o.value,{width:n.value,height:t.value})}),{width:n,height:t,isTabletOrSmaller:ye(o)}}let Ye=999,St=!1;const ve="ELEMENT-FULLSCREEN-RAY",sn=document.createElement("style"),Rs=(e,n)=>{const{beforeEnter:t,beforeExit:o,enter:a,exit:l,backgroundColor:s,zIndex:i,transition:u="transform 0.3s var(--r-bezier)"}=n??{};let c=!1;const p={x:null,y:null},g=E(!1),v=()=>{const h=pe(e);if(!h)return;const{left:S,top:d}=h.getBoundingClientRect();p.x===null&&p.y===null&&(p.x=-S,p.y=-d),tt(document.body,{"--element-fullscreen-z-index":fe(i,"Null")||fe(i,"Undefined")?Ye:i,"--element-fullscreen-transition":u,"--element-fullscreen-background-color":s,"--element-fullscreen-width":"var(--html-width)","--element-fullscreen-height":"var(--html-height)","--element-fullscreen-transform-x":`${p.x}px`,"--element-fullscreen-transform-y":`${p.y}px`});const y=` + [${ve}] { + position: fixed; + width: var(--element-fullscreen-width) !important; + height: var(--element-fullscreen-height) !important; + transform: translate(var(--element-fullscreen-transform-x), var(--element-fullscreen-transform-y)) !important; + transition: var(--element-fullscreen-transition); + z-index: var(--element-fullscreen-z-index) !important; + background-color: var(--element-fullscreen-background-color); + } + `.trim();sn.innerHTML=y,St||document.head.appendChild(sn)},f=()=>{const h=pe(e);t==null||t(),h&&(h.getAttribute(ve)||h.setAttribute(ve,ve),c||(c=!0,Ye+=1),St||(v(),St=!0),h.style.transition=u,g.value=!0,a==null||a())},m=()=>{o==null||o();const h=pe(e);h&&h.removeAttribute(ve),g.value=!1,l==null||l()},_=()=>{const h=pe(e);h&&(h.getAttribute(ve)?m():f())};return zt(()=>{const h=pe(e);h&&h.removeAttribute(ve),Ye=Math.max(999,Ye-1),g.value=!1}),{enter:f,exit:m,toggleFullscreen:_,isFullscreen:ye(g)}},wt={svg:ra,png:sa,jpeg:ia,blob:ua,pixelData:ca,canvas:da},xi=(e,n)=>{const{beforeCreate:t,created:o,createdError:a,finally:l,imageType:s}=n??{};return{create:u=>new Promise((c,p)=>{var f;const g=pe(e);if(t==null||t(g),!g)return a==null||a(),p("useDomToImage: element is undefined.");(f=wt[u??s??"jpeg"])==null||f.call(wt,g,n).then(m=>(o==null||o(m,g),c(m))).catch(m=>(a==null||a(m),p(m))).finally(()=>{l==null||l(g)})})}},Mi=(e,n)=>({print:()=>{const o=pe(e)||e;Ho({...Ve(n,["printable"]),printable:o})}}),Ps={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},xs=(e,n)=>{const t=E(e),o=Ve(n,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size"]),l=E(Object.assign({},Ps,o,{onUpdatePage:d=>{var y;l.value.page=d,(y=t.value)==null||y.call(t)},onUpdatePageSize:d=>{var y;l.value.pageSize=d,l.value.page=1,(y=t.value)==null||y.call(t)}})),s=l.value.onUpdatePage,i=l.value.onUpdatePageSize,u=()=>l.value.itemCount,c=d=>{l.value.itemCount=d},p=()=>l.value.page,g=d=>{s(d)},v=()=>l.value.pageSize,f=d=>{i(d)},m=()=>l.value,_=e,h=d=>{t.value=d},S=()=>{const{pageSizes:d}=l.value;l.value.page=1,l.value.pageSize=(d==null?void 0:d[0])||10};return zt(()=>{t.value=void 0}),[l,{getItemCount:u,setItemCount:c,getPage:p,setPage:g,getPageSize:v,setPageSize:f,getPagination:m,getCallback:_,setCallback:h,resetPagination:S}]},Xn=()=>({isLayoutContentMaximized:w(()=>ct("layoutContentMaximize").value),maximize:(t,o)=>{var i;const{scrollToOptions:a}=o??{},l=pe(ke),{toggleFullscreen:s}=Rs(l,o);me("layoutContentMaximize",t),s(),a&&t&&((i=ke==null?void 0:ke.value)==null||i.scrollTo(a))}}),Ms=()=>({reload:(o=800)=>{me("globalMainLayoutLoad",!1),setTimeout(()=>me("globalMainLayoutLoad",!0),o)},openSpin:()=>{me("layoutContentSpinning",!0)},closeSpin:()=>{me("layoutContentSpinning",!1)}}),Ei=()=>({setWatermarkContent:a=>{const{getWatermarkConfig:l}=G(),s=Object.assign({},l.value,{content:a}),{updateSettingState:i}=U();i("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:a}=U();a("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:a}=U();a("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:a}=G(),{updateSettingState:l}=U();l("watermarkSwitch",!a.value)}}),Xe=e=>{const{getPrimaryColorOverride:n}=G(),{updateSettingState:t}=U();t("primaryColorOverride",e?Object.assign({},n.value,re.appNaiveUIThemeOverrides.dark,re.appNaiveUIThemeOverridesCommon.dark):Object.assign({},n.value,re.appNaiveUIThemeOverrides.light,re.appNaiveUIThemeOverridesCommon.light))},Di=()=>{const e=()=>{const{getAppTheme:l}=G(),{t:s}=Ne();return{theme:l.value,themeI18nLabel:l.value?s("headerSettingOptions.ThemeOptions.Dark"):s("headerSettingOptions.ThemeOptions.Light"),themeLabel:l.value?"Dark":"Light"}};return{darkTheme:()=>{const{updateSettingState:l}=U();l("_appTheme",!0),l("appTheme","dark"),Xe(!0)},lightTheme:()=>{const{updateSettingState:l}=U();l("_appTheme",!1),l("appTheme","light"),Xe(!1)},toggleTheme:()=>{const{theme:l}=e(),{updateSettingState:s}=U();s("_appTheme",!l),s("appTheme",l?"light":"dark"),Xe(!l)},getAppTheme:e,syncSystemTheme:()=>{const{getAppTheme:l}=G(),{updateSettingState:s}=U(),{system:i}=yn();s("_appTheme",i.value==="dark"),s("appTheme","auto"),Xe(l.value)}}},Te=(e,n)=>{const{getMenuTagOptions:t}=Se();if(typeof e=="number"){if(isNaN(e)){console.warn(`${n}: The ${e} is NaN, expect number.`);return}if(e>t.value.length||e<-1){console.warn(`${n}: The incoming index ${e} did not match the corresponding item.`);return}return{option:t.value[e],index:e}}else if(typeof e=="string"){const o=t.value.findIndex(a=>a.fullPath===e);return o>-1?{option:t.value[o],index:o}:console.warn(`${n}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:o}=e,a=t.value.findIndex(l=>l.fullPath===o);if(a===-1){console.warn(`${n}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:a}}};function Jn(){const{getMenuTagOptions:e,getMenuKey:n}=Se(),{changeMenuModelValue:t,spliceMenTagOptions:o,setMenuTagOptions:a,resolveOption:l}=De(),s=()=>e.value.findIndex(m=>m.fullPath===n.value),i=m=>{const _=Te(m,"checkCloseRight");if(_){const{index:h}=_,S=e.value.length-1;return!(h>=S)}return!1},u=m=>{const _=Te(m,"checkCloseRight");if(_){const{index:h}=_,S=e.value.length-1;return h===0?!1:h>0&&S>0}return!1};return{close:m=>{const _=Te(m,"close");if(e.value.length!==1&&_){const{index:h,option:S}=_;if(o(h),S.fullPath===n.value){let d=u(h)?h-1:i(h)?h:h-1;d<0&&(d=0);const y=e.value[d];y&&t(y.fullPath,y)}}},closeAll:()=>{o(0,e.value.length);const{getRootPath:m}=ze(),{router:{getRoutes:_}}=Ft(),h=_().find(S=>S.path===m.value);if(h){const S=Fe(h,At),d=l(S);t(d.path,l({...d,fullPath:d.path}))}},closeRight:m=>{const _=Te(m,"closeRight");if(_){const{option:h,index:S}=_,d=e.value.length-S,y=s();o(S+1,d),S<=y&&n.value!==h.fullPath&&t(h.fullPath,h)}},closeLeft:m=>{const _=Te(m,"closeLeft");if(_){const{option:h,index:S}=_,d=s();o(0,S),d<=S&&n.value!==h.fullPath&&t(h.fullPath,h)}},closeOther:m=>{const _=Te(m,"closeOther");if(_){const{option:h}=_;n.value!==h.fullPath?(o(0,e.value.length),t(h.fullPath,h)):a(h,!1)}},getCurrentTagIndex:s,checkCloseRight:i,checkCloseLeft:u}}function zi(){return{navigationTo:(n,t)=>{const{router:{getRoutes:o,push:a,replace:l}}=Ft(),{isPush:s=!0,query:i}=t||{},u=c=>s?a({path:c,query:i}):l({path:c,query:i});if(typeof n=="number"){if(isNaN(n)){console.warn(`[navigationTo]: The ${n} is NaN, expect number.`);return}const{getMenuOptions:c}=Se();if(n>c.value.length){console.warn(`[navigationTo]: The current ${n} exceeds the maximum number of menus.`);return}const p=c.value[n],g=v=>{if(v.children&&v.children.length>0){const{children:[f]}=v;g(f);return}u(v.fullPath)};g(p)}else if(typeof n=="string"){const c=o().find(p=>p.path===n);c?u(c.path):console.warn(`[navigationTo]: The path "${n}" is not found.`)}else u(n.fullPath)}}}function ze(){const{getAppRootRoute:e}=G(),{updateSettingState:n}=U(),t=e,o=w(()=>e.value.path),a=w(()=>e.value.name);return{getRootRoute:t,getRootPath:o,getRootName:a,setRootRoute:s=>{n("appRootRoute",Object.assign({},e.value,s))}}}const Es=(e,n)=>{const{show:t,...o}=n;e.meta.extra=Object.assign({},e.meta.extra,{...o,show:t}),e.extra=jn(e)},un=(e,n,t)=>{const o=Nn(e,n);o&&Es(o,t)},Ct=(e,n,t)=>{const{getMenuOptions:o}=Se();if(typeof e=="string")un(o.value,e,t);else if(fe(e,"Object")){const{fullPath:a}=e;un(o.value,a,t)}else console.warn(`[useBadge ${n}]: target expect string or object.`)};function Ii(){return{hidden:o=>{Ct(o,"hidden",{show:!1})},show:(o,a)=>{Ct(o,"show",{...a,show:!0})},update:(o,a)=>{Ct(o,"update",a)}}}const Li=()=>{const e=Pn.value,{scrollTo:n}=e||{};if(!n)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return n},Zn=()=>et(Z.localeLanguage,"localStorage",{defaultValue:Wa});export{Ri as $,ci as A,Tr as B,ki as C,Ha as D,Oi as E,wi as F,$a as G,mi as H,hi as I,vi as J,Si as K,Pn as L,ii as M,yi as N,xs as O,gi as P,br as Q,bi as R,Kr as S,ir as T,xr as U,Ti as V,_i as W,Ci as X,As as Y,Hr as Z,I as _,xi as a,pi as a0,_r as a1,Ln as a2,Xn as a3,zi as a4,Ms as a5,Ei as a6,Ii as a7,Mi as b,Li as c,di as d,G as e,Z as f,si as g,re as h,U as i,an as j,Yn as k,ct as l,Wn as m,ui as n,fi as o,Pi as p,ze as q,ws as r,Ai as s,Ne as t,Di as u,x as v,Rn as w,ht as x,Ft as y,ri as z}; diff --git a/js/hooks-yKQIzKXx.js.gz b/js/hooks-yKQIzKXx.js.gz new file mode 100644 index 00000000..4c730ac7 Binary files /dev/null and b/js/hooks-yKQIzKXx.js.gz differ diff --git a/js/index-ByDaUx2U.js b/js/index-1zvmv80z.js similarity index 55% rename from js/index-ByDaUx2U.js rename to js/index-1zvmv80z.js index a3324d50..11a8e9ea 100644 --- a/js/index-ByDaUx2U.js +++ b/js/index-1zvmv80z.js @@ -1 +1 @@ -import{l as o,b as r,I as t}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{N as u}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const S=o({name:"ScrollReveal",render(){return r("div",{class:"scroll-reveal"},[r(u,{title:"提示"},{default:()=>[t("RayScrollReveal组件有点问题, 暂时移除. 不能正常的实现滚动动画. 很是操蛋!!!")]})])}});export{S as default}; +import{l as o,b as r,I as t}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{N as u}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const S=o({name:"ScrollReveal",render(){return r("div",{class:"scroll-reveal"},[r(u,{title:"提示"},{default:()=>[t("RayScrollReveal组件有点问题, 暂时移除. 不能正常的实现滚动动画. 很是操蛋!!!")]})])}});export{S as default}; diff --git a/js/index-1zvmv80z.js.gz b/js/index-1zvmv80z.js.gz new file mode 100644 index 00000000..f70ee5db Binary files /dev/null and b/js/index-1zvmv80z.js.gz differ diff --git a/js/index-BJaBPbUn.js b/js/index-B4MM6uWb.js similarity index 74% rename from js/index-BJaBPbUn.js rename to js/index-B4MM6uWb.js index 791d2a34..f0c828b6 100644 --- a/js/index-BJaBPbUn.js +++ b/js/index-B4MM6uWb.js @@ -1 +1 @@ -import{a as l}from"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import{s as n}from"./instance-CzbCXUZF.js";import{c as r,N as o,O as A,L as i,_ as g}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import{l as V,b as u,I as t}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{e as R,x as v}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./axios@1.7.5-C8DqakIB.js";import"./hooks-DKN08swi.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./utils-DMI3ftdH.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function b(e,a){return l(()=>n(e),Object.assign({},a))}const w=e=>n({url:`https://www.tianqiapi.com/api?version=v9&appid=23035354&appsecret=8YvlPNrz&city=${e}`,method:"get"}),d=()=>n({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get"}),Nu=V({name:"RAxios",setup(){const e=R({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:a,loading:m,run:p}=l(d,{throttleWait:1e3,manual:!0}),{data:s,loading:D,run:F}=l(d,{debounceWait:1e3,manual:!0}),{data:h,loading:c,run:E}=l(w,{throttleWait:1e3,manual:!0}),{data:B,loading:C,run:f}=b({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get",cancelConfig:{cancel:!0}},{manual:!0,onError:()=>{window.$message.error("接口出现异常")}});return{...v(e),throttleDemoValue:a,throttleDemoLoading:m,throttleDemoRun:p,debounceDemoValue:s,debounceDemoLoading:D,debounceDemoRun:F,weatherDemoValue:h,weatherDemoLoading:c,weatherDemoRun:E,demoData:B,demoLoading:C,demoRun:f}},render(){return u(g,null,{default:()=>[u(r,{vertical:!0},{default:()=>[u("h1",null,[t("请求")]),u(o,null,{default:()=>[u("h2",null,[t("useRequest")]),u("p",null,[t("支持配置化请求数据")]),u("h2",null,[t("useHookPlusRequest")]),u("p",null,[t("支持包裹一个拥有 promise 状态的异步函数,可以用来包裹一个 axios 请求返回值方法")])]}),u("h1",null,[t("使用 useRequest 获取")]),u(o,{title:"请求函数"},{default:()=>[u("h3",null,[t("1.基于 axios 封装,能够自动取消连续请求,避免重复渲染造成问题")]),u("h3",null,[t("2.打开控制台 => 网络 => 使用低速3g网络 => 查看控制台被取消的请求")]),u("h3",null,[t("3.详情请查看文档")])]}),u(o,{title:"useRequest示例(手动触发)"},{default:()=>[u(r,{vertical:!0},{default:()=>{var e;return[u(A,{onClick:this.demoRun.bind(this)},{default:()=>[t("获取数据")]}),u("h3",null,[t("结果: "),this.demoLoading?"获取中...":(e=this.demoData)==null?void 0:e.title])]}})]}),u("h1",null,[t("使用 useHookPlusRequest 获取")]),u(o,{title:"节流"},{default:()=>[u(r,{vertical:!0},{default:()=>[u(i,{value:this.throttleDemoInputValue,"onUpdate:value":e=>this.throttleDemoInputValue=e,onUpdateValue:()=>{this.throttleDemoRun()}},null),u("h3",null,[t("不论触发多少次,一秒钟之内仅会触发一次")]),u("h3",null,[t("当前状态: "),this.throttleDemoLoading?"获取中...":"获取成功!!!"])]})]}),u(o,{title:"防抖"},{default:()=>[u(r,{vertical:!0},{default:()=>[u(i,{value:this.debounceDemoInputValue,"onUpdate:value":e=>this.debounceDemoInputValue=e,onUpdateValue:()=>{this.debounceDemoRun()}},null),u("h3",null,[t("一秒后才会执行,如果中途重新请求,则会重新计时")]),u("h3",null,[t("当前状态: "),this.debounceDemoLoading?"获取中...":"获取成功!!!"])]})]}),u(o,{title:"获取气候"},{default:()=>[u(r,{vertical:!0},{default:()=>[u(i,{value:this.weatherDemoInputValue,"onUpdate:value":e=>this.weatherDemoInputValue=e,onUpdateValue:e=>{this.weatherDemoRun(e)}},null),u("h3",null,[t("该示例演示了如何根据动态值获取数据")]),u("h3",null,[t("当前状态: "),this.weatherDemoLoading?"获取中...":"获取成功!!!"])]})]})]})]})}});export{Nu as default}; +import{a as l}from"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import{s as n}from"./instance-DGp8AH04.js";import{c as r,N as o,O as A,L as i,$ as g}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import{l as V,b as u,I as t}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{e as R,x as v}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./axios@1.7.5-C8DqakIB.js";import"./hooks-yKQIzKXx.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./utils-DJWgFDlo.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function b(e,a){return l(()=>n(e),Object.assign({},a))}const w=e=>n({url:`https://www.tianqiapi.com/api?version=v9&appid=23035354&appsecret=8YvlPNrz&city=${e}`,method:"get"}),d=()=>n({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get"}),Nu=V({name:"RAxios",setup(){const e=R({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:a,loading:m,run:p}=l(d,{throttleWait:1e3,manual:!0}),{data:s,loading:D,run:F}=l(d,{debounceWait:1e3,manual:!0}),{data:h,loading:c,run:E}=l(w,{throttleWait:1e3,manual:!0}),{data:B,loading:C,run:f}=b({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get",cancelConfig:{cancel:!0}},{manual:!0,onError:()=>{window.$message.error("接口出现异常")}});return{...v(e),throttleDemoValue:a,throttleDemoLoading:m,throttleDemoRun:p,debounceDemoValue:s,debounceDemoLoading:D,debounceDemoRun:F,weatherDemoValue:h,weatherDemoLoading:c,weatherDemoRun:E,demoData:B,demoLoading:C,demoRun:f}},render(){return u(g,null,{default:()=>[u(r,{vertical:!0},{default:()=>[u("h1",null,[t("请求")]),u(o,null,{default:()=>[u("h2",null,[t("useRequest")]),u("p",null,[t("支持配置化请求数据")]),u("h2",null,[t("useHookPlusRequest")]),u("p",null,[t("支持包裹一个拥有 promise 状态的异步函数,可以用来包裹一个 axios 请求返回值方法")])]}),u("h1",null,[t("使用 useRequest 获取")]),u(o,{title:"请求函数"},{default:()=>[u("h3",null,[t("1.基于 axios 封装,能够自动取消连续请求,避免重复渲染造成问题")]),u("h3",null,[t("2.打开控制台 => 网络 => 使用低速3g网络 => 查看控制台被取消的请求")]),u("h3",null,[t("3.详情请查看文档")])]}),u(o,{title:"useRequest示例(手动触发)"},{default:()=>[u(r,{vertical:!0},{default:()=>{var e;return[u(A,{onClick:this.demoRun.bind(this)},{default:()=>[t("获取数据")]}),u("h3",null,[t("结果: "),this.demoLoading?"获取中...":(e=this.demoData)==null?void 0:e.title])]}})]}),u("h1",null,[t("使用 useHookPlusRequest 获取")]),u(o,{title:"节流"},{default:()=>[u(r,{vertical:!0},{default:()=>[u(i,{value:this.throttleDemoInputValue,"onUpdate:value":e=>this.throttleDemoInputValue=e,onUpdateValue:()=>{this.throttleDemoRun()}},null),u("h3",null,[t("不论触发多少次,一秒钟之内仅会触发一次")]),u("h3",null,[t("当前状态: "),this.throttleDemoLoading?"获取中...":"获取成功!!!"])]})]}),u(o,{title:"防抖"},{default:()=>[u(r,{vertical:!0},{default:()=>[u(i,{value:this.debounceDemoInputValue,"onUpdate:value":e=>this.debounceDemoInputValue=e,onUpdateValue:()=>{this.debounceDemoRun()}},null),u("h3",null,[t("一秒后才会执行,如果中途重新请求,则会重新计时")]),u("h3",null,[t("当前状态: "),this.debounceDemoLoading?"获取中...":"获取成功!!!"])]})]}),u(o,{title:"获取气候"},{default:()=>[u(r,{vertical:!0},{default:()=>[u(i,{value:this.weatherDemoInputValue,"onUpdate:value":e=>this.weatherDemoInputValue=e,onUpdateValue:e=>{this.weatherDemoRun(e)}},null),u("h3",null,[t("该示例演示了如何根据动态值获取数据")]),u("h3",null,[t("当前状态: "),this.weatherDemoLoading?"获取中...":"获取成功!!!"])]})]})]})]})}});export{Nu as default}; diff --git a/js/index-B4MM6uWb.js.gz b/js/index-B4MM6uWb.js.gz new file mode 100644 index 00000000..10669f01 Binary files /dev/null and b/js/index-B4MM6uWb.js.gz differ diff --git a/js/index-BJaBPbUn.js.gz b/js/index-BJaBPbUn.js.gz deleted file mode 100644 index 8cb9abcc..00000000 Binary files a/js/index-BJaBPbUn.js.gz and /dev/null differ diff --git a/js/index-BWWxn8a4.js b/js/index-BLhKipa_.js similarity index 67% rename from js/index-BWWxn8a4.js rename to js/index-BLhKipa_.js index 53cbc585..d76de20a 100644 --- a/js/index-BWWxn8a4.js +++ b/js/index-BLhKipa_.js @@ -1 +1 @@ -import{P as C,Q as f,T as k}from"./hooks-DKN08swi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{a as A}from"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import{s as B}from"./instance-CzbCXUZF.js";import"./lodash@4.17.21-Cw59kuJw.js";import{N as p,q as y,af as h,L as D,O as i,c as l}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import{l as b,b as t,I as o,F as w}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{e as P,x as N}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./utils-DMI3ftdH.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./axios@1.7.5-C8DqakIB.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const R=e=>B({url:"/api/list",method:"get",params:e}),Mt=b({name:"MockDemo",setup(){const e=[{type:"selection",multiple:!0},{title:"id",key:"id"},{title:"邮箱",key:"email"},{title:"地址",key:"address"},{title:"姓名",key:"name"},{title:"年龄",key:"age"},{title:"创建时间",key:"createDate"},{title:"操作",key:"action",render:m=>t(l,{align:"center"},{default:()=>[t(i,{type:"primary",text:!0,onClick:()=>{window.$message.info("查看")}},{default:()=>[o("查看")]}),t(i,{type:"primary",text:!0,onClick:()=>{window.$message.warning("编辑")}},{default:()=>[o("编辑")]}),t(i,{type:"error",text:!0,onClick:()=>{window.$message.error("删除")}},{default:()=>[o("删除")]})]})}],u=P({email:null}),[n,{getPage:r,getPageSize:a,setItemCount:s,getCallback:F,setPage:x,setPageSize:v}]=C(()=>{E({page:r(),pageSize:a(),email:u.email})}),{data:c,loading:d,run:E}=A(R,{defaultParams:[{page:r(),pageSize:a(),email:u.email}],onSuccess:m=>{const{total:g}=m;s(g)}});return{personData:c,personLoading:d,columns:e,...N(u),getCallback:F,paginationRef:n}},render(){return t(l,{vertical:!0},{default:()=>{var e;return[t(p,{title:"Mock 数据"},{default:()=>[t("h2",null,[o("mock 数据使用。但是,并没有启用生产环境的部署,所以生产环境结果为空。")])]}),t(p,{title:"提示"},{default:()=>[t("h2",null,[o("RTable 组件有一个比较值得注意的地方就是,该组件会自动的按照数据量计算分页条数。所以你在异步获取数据的时候,一定要手动设置 remote 属性为 true,并且设置 itemCount 或者 pageCount。")])]}),t(y,{labelPlacement:"left"},{default:()=>[t(f,{cols:3},{default:()=>t(w,null,[t(h,{label:"邮箱"},{default:()=>[t(D,{value:this.email,"onUpdate:value":u=>this.email=u,clearable:!0},null)]})]),action:()=>{var u;return t(i,{type:"primary",onClick:(u=this.getCallback)==null?void 0:u.bind(this)},{default:()=>[o("搜索")]})}})]}),t(k,{title:"Mock数据表格",data:(e=this.personData)==null?void 0:e.data,loading:this.personLoading,columns:this.columns,"onUpdate:columns":u=>this.columns=u,pagination:this.paginationRef,remote:!0,rowKey:u=>u.id},null)]}})}});export{Mt as default}; +import{O as C,P as f,Q as k}from"./hooks-yKQIzKXx.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{a as A}from"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import{s as B}from"./instance-DGp8AH04.js";import"./lodash@4.17.21-Cw59kuJw.js";import{N as p,q as y,ag as h,L as D,O as i,c as l}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import{l as b,b as t,I as o,F as w}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{e as P,x as N}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./utils-DJWgFDlo.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./axios@1.7.5-C8DqakIB.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const R=e=>B({url:"/api/list",method:"get",params:e}),Mt=b({name:"MockDemo",setup(){const e=[{type:"selection",multiple:!0},{title:"id",key:"id"},{title:"邮箱",key:"email"},{title:"地址",key:"address"},{title:"姓名",key:"name"},{title:"年龄",key:"age"},{title:"创建时间",key:"createDate"},{title:"操作",key:"action",render:m=>t(l,{align:"center"},{default:()=>[t(i,{type:"primary",text:!0,onClick:()=>{window.$message.info("查看")}},{default:()=>[o("查看")]}),t(i,{type:"primary",text:!0,onClick:()=>{window.$message.warning("编辑")}},{default:()=>[o("编辑")]}),t(i,{type:"error",text:!0,onClick:()=>{window.$message.error("删除")}},{default:()=>[o("删除")]})]})}],u=P({email:null}),[n,{getPage:r,getPageSize:a,setItemCount:s,getCallback:F,setPage:x,setPageSize:v}]=C(()=>{E({page:r(),pageSize:a(),email:u.email})}),{data:c,loading:d,run:E}=A(R,{defaultParams:[{page:r(),pageSize:a(),email:u.email}],onSuccess:m=>{const{total:g}=m;s(g)}});return{personData:c,personLoading:d,columns:e,...N(u),getCallback:F,paginationRef:n}},render(){return t(l,{vertical:!0},{default:()=>{var e;return[t(p,{title:"Mock 数据"},{default:()=>[t("h2",null,[o("mock 数据使用。但是,并没有启用生产环境的部署,所以生产环境结果为空。")])]}),t(p,{title:"提示"},{default:()=>[t("h2",null,[o("RTable 组件有一个比较值得注意的地方就是,该组件会自动的按照数据量计算分页条数。所以你在异步获取数据的时候,一定要手动设置 remote 属性为 true,并且设置 itemCount 或者 pageCount。")])]}),t(y,{labelPlacement:"left"},{default:()=>[t(f,{cols:3},{default:()=>t(w,null,[t(h,{label:"邮箱"},{default:()=>[t(D,{value:this.email,"onUpdate:value":u=>this.email=u,clearable:!0},null)]})]),action:()=>{var u;return t(i,{type:"primary",onClick:(u=this.getCallback)==null?void 0:u.bind(this)},{default:()=>[o("搜索")]})}})]}),t(k,{title:"Mock数据表格",data:(e=this.personData)==null?void 0:e.data,loading:this.personLoading,columns:this.columns,"onUpdate:columns":u=>this.columns=u,pagination:this.paginationRef,remote:!0,rowKey:u=>u.id},null)]}})}});export{Mt as default}; diff --git a/js/index-BLhKipa_.js.gz b/js/index-BLhKipa_.js.gz new file mode 100644 index 00000000..edc9333e Binary files /dev/null and b/js/index-BLhKipa_.js.gz differ diff --git a/js/index-BWWxn8a4.js.gz b/js/index-BWWxn8a4.js.gz deleted file mode 100644 index c6a755b5..00000000 Binary files a/js/index-BWWxn8a4.js.gz and /dev/null differ diff --git a/js/index-BixBZhhq.js b/js/index-BYUR34wX.js similarity index 60% rename from js/index-BixBZhhq.js rename to js/index-BYUR34wX.js index 763fec83..9258260a 100644 --- a/js/index-BixBZhhq.js +++ b/js/index-BYUR34wX.js @@ -1 +1 @@ -import{a2 as U,X as z,Q as G,T as L,z as j,a3 as P}from"./hooks-DKN08swi.js";import{k as X}from"./utils-DMI3ftdH.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{N as D,c as n,ag as _,O as u,v as I,b as r,G as Q,L as F,aj as Y,I as q,n as H}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import{l as W,b as e,I as o,F as K,p as Z}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{k as x,e as ee,x as te}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function N(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!Z(i)}const at=W({name:"TableView",setup(){const[i,{getTableInstance:c,clearFilters:p,clearSorter:m,scrollTo:f,filters:k,sort:C,downloadCsv:y,print:h}]=U(),b=[{type:"selection"},{title:"Name",key:"name",filterOptions:[{label:"John Brown",value:"John Brown"},{label:"Jim Green",value:"Jim Green"}],filter:(t,a)=>a.name.includes(t.toString())},{title:"Age",key:"age",sorter:(t,a)=>t.age-a.age},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:t=>t.tags.map(d=>e(I,{type:"info",bordered:!1,style:"margin-right: 6px"},N(d)?d:{default:()=>[d]}))},{title:"Remark",key:"remark"},{title:"Action",key:"actions",render:t=>e(n,{align:"center"},{default:()=>[e(u,{size:"tiny"},{default:()=>[o("查看")]}),e(P,{options:[{label:"编辑",key:"edit"},{label:"新增",key:"add"}],onSelect:a=>{window.$message.info(`当前选择: ${a}`)}},null)]})}],g=x([...b].map((t,a)=>({...t}))),s=x([]),w=[{label:"编辑",key:"edit"},{label:()=>e("span",{style:"color: red;"},[o("删除")]),key:"delete"}],E=ee({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),[T,{checkedRowKeysBind:v,getKeys:R,getRows:l,clearKey:B,clearAll:A,selectKey:S}]=z(s,g,{rowKey:"key",onChange:(t,a,d)=>{}}),O=()=>{for(let t=0;t<10;t++)s.value.push({key:X(),name:t%2===0?"John Brown":"Jim Green",age:t+20,address:"New York No. 1 Lake Park",tags:["nice","developer"],remark:"我是一条很长很长的备注"})},M=t=>{window.$message.info(`${t}`)},V=()=>{const{key:t}=s.value[1];B(t)},$=()=>{s.value.map(a=>a.key).forEach(a=>S(a))},J=()=>{const{key:t}=s.value[1];S(t)};return O(),{...te(E),tableData:s,actionColumns:g,baseColumns:b,tableMenuOptions:w,menuSelect:M,register:i,getKeys:R,getRows:l,clearKey:B,clearAll:A,checkedRowKeysBind:v,checkedRowKeys:T,clearSecondIndexRow:V,selectAll:$,selectSecondIndexRow:J,clearFilters:p,clearSorter:m,scrollTo:f,filters:k,sort:C,downloadCsv:y,getTableInstance:c,print:h}},render(){let i;const{register:c,clearAll:p,checkedRowKeysBind:m,clearSecondIndexRow:f,selectAll:k,selectSecondIndexRow:C,clearFilters:y,clearSorter:h,scrollTo:b,filters:g,sort:s,downloadCsv:w,getTableInstance:E,getRows:T,getKeys:v,print:R}=this;return e(n,{vertical:!0},{default:()=>[e(D,{title:"RTable"},{default:()=>[o("基于 NDataTable 封装,继承该组件所有 props 属性。查看 RTable props 文件即可查看该组件拓展项")]}),e(D,{title:"useTable"},{default:()=>[e(n,{vertical:!0,style:"width: 100%"},{default:()=>[e(_,{title:"DataTable Methods",type:"info"},{default:()=>[o("其余的方法查看")," ",e("a",{style:"color: transparent",href:"https://www.naiveui.com/zh-CN/dark/components/data-table#DataTable-Methods"},[o("Naive UI")]),o("官网,保持一致。")]}),e(n,null,{default:()=>[e(u,{onClick:h.bind(this)},{default:()=>[o("清除所有排序")]}),e(u,{onClick:y.bind(this)},{default:()=>[o("清除所有过滤")]}),e(u,{onClick:()=>{w()}},{default:()=>[o("下载 CSV")]}),e(u,{onClick:()=>E()},{default:()=>[o("getTableInstance")]}),e(u,{onClick:()=>R()},{default:()=>[o("打印")]})]})]})]}),e(D,{title:"useCheckedRowKeys"},{default:()=>[e(n,{vertical:!0},{default:()=>[e(n,null,{default:()=>[e(u,{onClick:k.bind(this)},{default:()=>[o("选中所有行")]}),e(u,{onClick:p.bind(this)},{default:()=>[o("取消所有已选中行")]}),e(u,{onClick:C.bind(this)},{default:()=>[o("选中第二行")]}),e(u,{onClick:f.bind(this)},{default:()=>[o("取消第二行选中")]})]}),e(n,null,N(i=this.checkedRowKeys.map(l=>e(I,{type:"success",key:l},N(l)?l:{default:()=>[l]})))?i:{default:()=>[i]})]})]}),e(G,{collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateOpen:l=>window.$message.info(`我是 RCollapse 组件${l?"收起":"展开"}的回调函数`)},{action:()=>e(K,null,[e(u,{type:"primary"},{default:()=>[o("搜索")]}),e(u,null,{default:()=>[o("重置")]})]),default:()=>e(K,null,[e(r,null,{default:()=>[e(Q,null,null)]}),e(r,null,{default:()=>[e(F,null,null)]}),e(r,null,{default:()=>[e(Y,{type:"datetimerange",clearable:!0},null)]}),e(r,null,{default:()=>[e(F,null,null)]}),e(r,null,{default:()=>[e(F,null,null)]})])}),e(L,{checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":l=>this.checkedRowKeys=l,onUpdateCheckedRowKeys:m.bind(this),onRegister:c.bind(this),scrollX:1e3,title:e(n,{align:"center"},{default:()=>[e("span",null,[o("标题插槽:")]),e(q,{onUpdateValue:l=>this.tableLoading=l},null)]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":l=>this.actionColumns=l,pagination:{pageSize:10},contextMenuOptions:this.tableMenuOptions,loading:this.tableLoading,onContextMenuClick:this.menuSelect.bind(this),toolOptions:[e(H,null,{trigger:()=>e(j,{name:"search",size:"18",cursor:"pointer",onClick:()=>{window.$message.info("点击了搜索按钮")}},null),default:()=>"我是自定义工具栏示例"})],rowKey:l=>l.key,striped:!0},{tableFooter:()=>"表格的底部内容区域插槽,有时候你可能会用上",tableAction:()=>"表格的操作区域内容插槽,有时候可能会用上"})]})}});export{at as default}; +import{a1 as U,W as G,P as L,Q as z,v as P,a2 as j}from"./hooks-yKQIzKXx.js";import{k as _}from"./utils-DJWgFDlo.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{N as D,c as n,ah as Q,O as u,v as I,b as r,G as W,L as F,ak as X,I as Y,n as q}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import{l as H,b as e,I as o,F as K,p as Z}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{k as x,e as ee,x as te}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function N(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!Z(i)}const at=H({name:"TableView",setup(){const[i,{getTableInstance:c,clearFilters:p,clearSorter:m,scrollTo:f,filters:k,sort:C,downloadCsv:h,print:y}]=U(),b=[{type:"selection"},{title:"Name",key:"name",filterOptions:[{label:"John Brown",value:"John Brown"},{label:"Jim Green",value:"Jim Green"}],filter:(t,a)=>a.name.includes(t.toString())},{title:"Age",key:"age",sorter:(t,a)=>t.age-a.age},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:t=>t.tags.map(d=>e(I,{type:"info",bordered:!1,style:"margin-right: 6px"},N(d)?d:{default:()=>[d]}))},{title:"Remark",key:"remark"},{title:"Action",key:"actions",render:t=>e(n,{align:"center"},{default:()=>[e(u,{size:"tiny"},{default:()=>[o("查看")]}),e(j,{options:[{label:"编辑",key:"edit"},{label:"新增",key:"add"}],onSelect:a=>{window.$message.info(`当前选择: ${a}`)}},null)]})}],w=x([...b].map((t,a)=>({...t}))),s=x([]),g=[{label:"编辑",key:"edit"},{label:()=>e("span",{style:"color: red;"},[o("删除")]),key:"delete"}],E=ee({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),[T,{checkedRowKeysBind:v,getKeys:R,getRows:l,clearKey:B,clearAll:A,selectKey:S}]=G(s,w,{rowKey:"key",onChange:(t,a,d)=>{}}),O=()=>{for(let t=0;t<10;t++)s.value.push({key:_(),name:t%2===0?"John Brown":"Jim Green",age:t+20,address:"New York No. 1 Lake Park",tags:["nice","developer"],remark:"我是一条很长很长的备注"})},M=t=>{window.$message.info(`${t}`)},V=()=>{const{key:t}=s.value[1];B(t)},$=()=>{s.value.map(a=>a.key).forEach(a=>S(a))},J=()=>{const{key:t}=s.value[1];S(t)};return O(),{...te(E),tableData:s,actionColumns:w,baseColumns:b,tableMenuOptions:g,menuSelect:M,register:i,getKeys:R,getRows:l,clearKey:B,clearAll:A,checkedRowKeysBind:v,checkedRowKeys:T,clearSecondIndexRow:V,selectAll:$,selectSecondIndexRow:J,clearFilters:p,clearSorter:m,scrollTo:f,filters:k,sort:C,downloadCsv:h,getTableInstance:c,print:y}},render(){let i;const{register:c,clearAll:p,checkedRowKeysBind:m,clearSecondIndexRow:f,selectAll:k,selectSecondIndexRow:C,clearFilters:h,clearSorter:y,scrollTo:b,filters:w,sort:s,downloadCsv:g,getTableInstance:E,getRows:T,getKeys:v,print:R}=this;return e(n,{vertical:!0},{default:()=>[e(D,{title:"RTable"},{default:()=>[o("基于 NDataTable 封装,继承该组件所有 props 属性。查看 RTable props 文件即可查看该组件拓展项")]}),e(D,{title:"useTable"},{default:()=>[e(n,{vertical:!0,style:"width: 100%"},{default:()=>[e(Q,{title:"DataTable Methods",type:"info"},{default:()=>[o("其余的方法查看")," ",e("a",{style:"color: transparent",href:"https://www.naiveui.com/zh-CN/dark/components/data-table#DataTable-Methods"},[o("Naive UI")]),o("官网,保持一致。")]}),e(n,null,{default:()=>[e(u,{onClick:y.bind(this)},{default:()=>[o("清除所有排序")]}),e(u,{onClick:h.bind(this)},{default:()=>[o("清除所有过滤")]}),e(u,{onClick:()=>{g()}},{default:()=>[o("下载 CSV")]}),e(u,{onClick:()=>E()},{default:()=>[o("getTableInstance")]}),e(u,{onClick:()=>R()},{default:()=>[o("打印")]})]})]})]}),e(D,{title:"useCheckedRowKeys"},{default:()=>[e(n,{vertical:!0},{default:()=>[e(n,null,{default:()=>[e(u,{onClick:k.bind(this)},{default:()=>[o("选中所有行")]}),e(u,{onClick:p.bind(this)},{default:()=>[o("取消所有已选中行")]}),e(u,{onClick:C.bind(this)},{default:()=>[o("选中第二行")]}),e(u,{onClick:f.bind(this)},{default:()=>[o("取消第二行选中")]})]}),e(n,null,N(i=this.checkedRowKeys.map(l=>e(I,{type:"success",key:l},N(l)?l:{default:()=>[l]})))?i:{default:()=>[i]})]})]}),e(L,{collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateOpen:l=>window.$message.info(`我是 RCollapse 组件${l?"收起":"展开"}的回调函数`)},{action:()=>e(K,null,[e(u,{type:"primary"},{default:()=>[o("搜索")]}),e(u,null,{default:()=>[o("重置")]})]),default:()=>e(K,null,[e(r,null,{default:()=>[e(W,null,null)]}),e(r,null,{default:()=>[e(F,null,null)]}),e(r,null,{default:()=>[e(X,{type:"datetimerange",clearable:!0},null)]}),e(r,null,{default:()=>[e(F,null,null)]}),e(r,null,{default:()=>[e(F,null,null)]})])}),e(z,{checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":l=>this.checkedRowKeys=l,onUpdateCheckedRowKeys:m.bind(this),onRegister:c.bind(this),scrollX:1e3,title:e(n,{align:"center"},{default:()=>[e("span",null,[o("标题插槽:")]),e(Y,{onUpdateValue:l=>this.tableLoading=l},null)]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":l=>this.actionColumns=l,pagination:{pageSize:10},contextMenuOptions:this.tableMenuOptions,loading:this.tableLoading,onContextMenuClick:this.menuSelect.bind(this),toolOptions:[e(q,null,{trigger:()=>e(P,{name:"search",size:"18",cursor:"pointer",onClick:()=>{window.$message.info("点击了搜索按钮")}},null),default:()=>"我是自定义工具栏示例"})],rowKey:l=>l.key,striped:!0},{tableFooter:()=>"表格的底部内容区域插槽,有时候你可能会用上",tableAction:()=>"表格的操作区域内容插槽,有时候可能会用上"})]})}});export{at as default}; diff --git a/js/index-BYUR34wX.js.gz b/js/index-BYUR34wX.js.gz new file mode 100644 index 00000000..0c1e4e4b Binary files /dev/null and b/js/index-BYUR34wX.js.gz differ diff --git a/js/index-BYpwN2eY.js b/js/index-BYpwN2eY.js new file mode 100644 index 00000000..443ebdd5 --- /dev/null +++ b/js/index-BYpwN2eY.js @@ -0,0 +1 @@ +import{x as u,y as s,f as a}from"./hooks-yKQIzKXx.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{g as n}from"./utils-DJWgFDlo.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{ab as c,V as l,c as d,O as i}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import{l as e,b as t,m as f,I as p}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const g=e({name:"PageResult",props:{...c},setup(){const{router:r}=s();return{goBack:()=>{const{appMenuKey:m}=a,o=n(m,"sessionStorage",{defaultValue:""});o&&r.replace(o)}}},render(){const{goBack:r}=this;return t("div",{class:"error-page"},[t(l,f(this.$props,{status:"500",title:"404 资源不存在",description:"小调皮你走错地方了"}),{...this.$slots,footer:()=>t(d,{align:"center",justify:"center"},{default:()=>[t(i,{onClick:u.bind(this,!0)},{default:()=>[p("返回首页")]}),t(i,{type:"primary",onClick:r.bind(this)},{default:()=>[p("返回上一页面")]})]})})])}}),Ct=e({name:"ErrorPage404",setup(){return{}},render(){return t(g,{status:"404"},null)}});export{Ct as default}; diff --git a/js/index-BYpwN2eY.js.gz b/js/index-BYpwN2eY.js.gz new file mode 100644 index 00000000..c479faf4 Binary files /dev/null and b/js/index-BYpwN2eY.js.gz differ diff --git a/js/index-BbqJDTDN.js.gz b/js/index-BbqJDTDN.js.gz deleted file mode 100644 index c1d1f46e..00000000 Binary files a/js/index-BbqJDTDN.js.gz and /dev/null differ diff --git a/js/index-DiYMknRE.js b/js/index-BfILLugh.js similarity index 56% rename from js/index-DiYMknRE.js rename to js/index-BfILLugh.js index 87fba401..db29b650 100644 --- a/js/index-DiYMknRE.js +++ b/js/index-BfILLugh.js @@ -1 +1 @@ -import{l as e,b as o,I as r}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{k as i}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import{L as p}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const C=e({name:"MultiMenuTwoOne",setup(){return{inputValue:i(null)}},render(){return o("div",{style:{height:"var(--layout-content-height)"}},[r("多级菜单2-2-1"),o(p,{modelValue:this.inputValue,"onUpdate:modelValue":t=>this.inputValue=t},null)])}});export{C as default}; +import{l as e,b as o,I as r}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{k as i}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{L as p}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const C=e({name:"MultiMenuTwoOne",setup(){return{inputValue:i(null)}},render(){return o("div",{style:{height:"var(--layout-content-height)"}},[r("多级菜单2-2-1"),o(p,{modelValue:this.inputValue,"onUpdate:modelValue":t=>this.inputValue=t},null)])}});export{C as default}; diff --git a/js/index-BfILLugh.js.gz b/js/index-BfILLugh.js.gz new file mode 100644 index 00000000..fcabe26c Binary files /dev/null and b/js/index-BfILLugh.js.gz differ diff --git a/js/index-BixBZhhq.js.gz b/js/index-BixBZhhq.js.gz deleted file mode 100644 index 9422943e..00000000 Binary files a/js/index-BixBZhhq.js.gz and /dev/null differ diff --git a/js/index-DRCakPMi.js b/js/index-BjjUm4zh.js similarity index 55% rename from js/index-DRCakPMi.js rename to js/index-BjjUm4zh.js index bd6b3fff..b99e8826 100644 --- a/js/index-DRCakPMi.js +++ b/js/index-BjjUm4zh.js @@ -1 +1 @@ -import{l as o,b as r,I as e}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{k as p}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import{L as i}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const k=o({name:"SubMenuOther",setup(){return{inputValue:p(null)}},render(){return r("div",null,[e("多级菜单-2-1"),r(i,{modelValue:this.inputValue,"onUpdate:modelValue":t=>this.inputValue=t},null)])}});export{k as default}; +import{l as o,b as r,I as e}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{k as p}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{L as i}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const k=o({name:"SubMenuOther",setup(){return{inputValue:p(null)}},render(){return r("div",null,[e("多级菜单-2-1"),r(i,{modelValue:this.inputValue,"onUpdate:modelValue":t=>this.inputValue=t},null)])}});export{k as default}; diff --git a/js/index-BjjUm4zh.js.gz b/js/index-BjjUm4zh.js.gz new file mode 100644 index 00000000..a0ec9ca4 Binary files /dev/null and b/js/index-BjjUm4zh.js.gz differ diff --git a/js/index-BkaDMlTh.js.gz b/js/index-BkaDMlTh.js.gz deleted file mode 100644 index fe77406f..00000000 Binary files a/js/index-BkaDMlTh.js.gz and /dev/null differ diff --git a/js/index-ByDaUx2U.js.gz b/js/index-ByDaUx2U.js.gz deleted file mode 100644 index 3fd0666c..00000000 Binary files a/js/index-ByDaUx2U.js.gz and /dev/null differ diff --git a/js/index-C10J_LAt.js b/js/index-C10J_LAt.js deleted file mode 100644 index 59b252fa..00000000 --- a/js/index-C10J_LAt.js +++ /dev/null @@ -1 +0,0 @@ -import{C as u,e as s}from"./hooks-DKN08swi.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{u as a}from"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{aa as n,V as l,c,O as p}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import{l as e,b as t,m as d,I as m}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./utils-DMI3ftdH.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const f=e({name:"PageResult",props:{...n},setup(){const{replace:r}=a();return{goBack:()=>{var i;const{getAppRootRoute:o}=s();(i=o.value)!=null&&i.path&&r(o.value.path)}}},render(){const{goBack:r}=this;return t("div",{class:"error-page"},[t(l,d(this.$props,{status:"500",title:"404 资源不存在",description:"小调皮你走错地方了"}),{...this.$slots,footer:()=>t(c,{align:"center",justify:"center"},{default:()=>[t(p,{onClick:u.bind(this,!0)},{default:()=>[m("返回首页")]}),t(p,{type:"primary",onClick:r.bind(this)},{default:()=>[m("返回上一页面")]})]})})])}}),Dt=e({name:"ErrorPage404",setup(){return{}},render(){return t(f,{status:"404"},null)}});export{Dt as default}; diff --git a/js/index-C10J_LAt.js.gz b/js/index-C10J_LAt.js.gz deleted file mode 100644 index 8bdb1a3f..00000000 Binary files a/js/index-C10J_LAt.js.gz and /dev/null differ diff --git a/js/index-EUipZU_e.js b/js/index-C55lNPAm.js similarity index 78% rename from js/index-EUipZU_e.js rename to js/index-C55lNPAm.js index 2e682f6a..bdf65442 100644 --- a/js/index-EUipZU_e.js +++ b/js/index-C55lNPAm.js @@ -1 +1 @@ -import{m as S,e as W,a4 as V,z as w,a5 as y,a6 as N,a7 as L,u as M,a8 as I}from"./hooks-DKN08swi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{N as i,c as a,L as T,O as t}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import{l as R,b as u,I as e}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{k as b}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./utils-DMI3ftdH.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const Ou=R({name:"TemplateHooks",setup(){const m=b(""),r=S("layoutContentMaximize"),n=b(W().getWatermarkConfig.value.content),F=b("new"),{navigationTo:p}=y(),{maximize:s,isLayoutContentMaximized:d}=V(),{reload:C,openSpin:B,closeSpin:D}=N(),{showWatermark:h,hiddenWatermark:A,setWatermarkContent:E,toggleWatermark:c}=L(),{darkTheme:f,lightTheme:k,toggleTheme:l,getAppTheme:g,syncSystemTheme:o}=M(),{hidden:v,show:x,update:z}=I();return{navigationTo:p,reload:C,currentMenuOption:m,maximize:s,maximizeRef:r,openSpin:B,closeSpin:D,showWatermark:h,hiddenWatermark:A,setWatermarkContent:E,watermark:n,toggleWatermark:c,darkTheme:f,lightTheme:k,toggleTheme:l,getAppTheme:g,isLayoutContentMaximized:d,badgeHidden:v,badgeShow:x,badgeUpdateLabel:z,badgeValue:F,syncSystemTheme:o}},render(){const{navigationTo:m,reload:r,maximize:n,openSpin:F,closeSpin:p,showWatermark:s,hiddenWatermark:d,setWatermarkContent:C,toggleWatermark:B,darkTheme:D,lightTheme:h,toggleTheme:A,getAppTheme:E,isLayoutContentMaximized:c,badgeHidden:f,badgeShow:k,badgeUpdateLabel:l,syncSystemTheme:g}=this;return u(a,{vertical:!0},{default:()=>[u(i,{title:"接口说明"},{default:()=>[u("h3",null,[e("hooks/template 包存放模板专属 hook 方法。这里不做过多的赘述,可以查看文档具体描述。")])]}),u(i,{title:"useBadge 菜单标记"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(T,{value:this.badgeValue,"onUpdate:value":o=>this.badgeValue=o},null),u(a,null,{default:()=>[u(t,{onClick:()=>f("/template-hooks")},{default:()=>[e("隐藏当前菜单标记")]}),u(t,{onClick:()=>k("/template-hooks",{label:this.badgeValue})},{default:()=>[e("显示当前菜单标记")]}),u(t,{onClick:()=>l("/template-hooks",{label:this.badgeValue})},{default:()=>[e("更新当前菜单标记")]}),u(t,{onClick:()=>{l("/template-hooks",{label:this.badgeValue,icon:u(w,{name:"error",size:"18"},null)})}},{default:()=>[e("添加标记图标")]}),u(t,{onClick:()=>{l("/template-hooks",{label:this.badgeValue,icon:void 0})}},{default:()=>[e("隐藏标记图标")]})]})]})]}),u(i,{title:"useTheme 主题"},{default:()=>[u(a,{vertical:!0},{default:()=>[u("h3",null,[e("getAppTheme 获取当前主题色: "),E().themeLabel]),u(a,null,{default:()=>[u(t,{onClick:()=>D()},{default:()=>[e("切换暗黑主题")]}),u(t,{onClick:()=>h()},{default:()=>[e("切换明亮主题")]}),u(t,{onClick:()=>g()},{default:()=>[e("跟随主题")]}),u(t,{onClick:()=>A()},{default:()=>[e("切换主题")]})]})]})]}),u(i,{title:"useWatermark 水印"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(T,{value:this.watermark,"onUpdate:value":o=>this.watermark=o,onInput:o=>{C(o)}},null),u(a,null,{default:()=>[u(t,{onClick:()=>s()},{default:()=>[e("显示水印")]}),u(t,{onClick:()=>d()},{default:()=>[e("隐藏水印")]}),u(t,{onClick:()=>B()},{default:()=>[e("切换水印")]})]})]})]}),u(i,{title:"useSpinning"},{default:()=>[u("h3",null,[e("手动刷新内容区域,会使得当前路由页面内容强制重新加载(会执行完整的 vue 生命周期)。默认 800ms 延迟。")]),u("br",null,null),u(a,null,{default:()=>[u(t,{onClick:()=>{r()}},{default:()=>[e("刷新(强制刷新)")]}),u(t,{onClick:()=>{F(),setTimeout(()=>{p()},800)}},{default:()=>[e("触发加载动画(不强制刷新)")]})]})]}),u(i,{title:"useMaximize 内容区域最大化"},{default:()=>[u("h3",null,[e("isLayoutContentMaximized 检测当前内容区域是否最大化:"),c?"最大化":"正常尺寸"]),u(t,{onClick:()=>{n(!this.maximizeRef,{scrollToOptions:{left:0,top:0}})}},{default:()=>[e("最大化内容区域,并且滚动至顶部")]})]}),u(i,{title:"useAppNavigation 导航方法"},{default:()=>[u("h3",null,[e("navigationTo 参数为正整数时,会更具当前的菜单顺序进行自动导航匹配。但是此方法仅能导航一级菜单。并且如果导航菜单非根菜单项,会自动递归导航至一子菜单。 支持传入完整的菜单路径,如:/multi/multi-menu-one。")]),u("br",null,null),u(t,{onClick:()=>m("/multi/multi-menu-one")},{default:()=>[e("跳转至多级菜单")]})]})]})}});export{Ou as default}; +import{l as S,e as W,a3 as V,v as w,a4 as y,a5 as N,a6 as L,u as M,a7 as I}from"./hooks-yKQIzKXx.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{N as i,c as a,L as T,O as t}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import{l as R,b as u,I as e}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{k as b}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./utils-DJWgFDlo.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const Ou=R({name:"TemplateHooks",setup(){const m=b(""),r=S("layoutContentMaximize"),n=b(W().getWatermarkConfig.value.content),F=b("new"),{navigationTo:p}=y(),{maximize:s,isLayoutContentMaximized:d}=V(),{reload:C,openSpin:B,closeSpin:D}=N(),{showWatermark:h,hiddenWatermark:A,setWatermarkContent:E,toggleWatermark:c}=L(),{darkTheme:f,lightTheme:k,toggleTheme:l,getAppTheme:g,syncSystemTheme:o}=M(),{hidden:v,show:x,update:z}=I();return{navigationTo:p,reload:C,currentMenuOption:m,maximize:s,maximizeRef:r,openSpin:B,closeSpin:D,showWatermark:h,hiddenWatermark:A,setWatermarkContent:E,watermark:n,toggleWatermark:c,darkTheme:f,lightTheme:k,toggleTheme:l,getAppTheme:g,isLayoutContentMaximized:d,badgeHidden:v,badgeShow:x,badgeUpdateLabel:z,badgeValue:F,syncSystemTheme:o}},render(){const{navigationTo:m,reload:r,maximize:n,openSpin:F,closeSpin:p,showWatermark:s,hiddenWatermark:d,setWatermarkContent:C,toggleWatermark:B,darkTheme:D,lightTheme:h,toggleTheme:A,getAppTheme:E,isLayoutContentMaximized:c,badgeHidden:f,badgeShow:k,badgeUpdateLabel:l,syncSystemTheme:g}=this;return u(a,{vertical:!0},{default:()=>[u(i,{title:"接口说明"},{default:()=>[u("h3",null,[e("hooks/template 包存放模板专属 hook 方法。这里不做过多的赘述,可以查看文档具体描述。")])]}),u(i,{title:"useBadge 菜单标记"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(T,{value:this.badgeValue,"onUpdate:value":o=>this.badgeValue=o},null),u(a,null,{default:()=>[u(t,{onClick:()=>f("/template-hooks")},{default:()=>[e("隐藏当前菜单标记")]}),u(t,{onClick:()=>k("/template-hooks",{label:this.badgeValue})},{default:()=>[e("显示当前菜单标记")]}),u(t,{onClick:()=>l("/template-hooks",{label:this.badgeValue})},{default:()=>[e("更新当前菜单标记")]}),u(t,{onClick:()=>{l("/template-hooks",{label:this.badgeValue,icon:u(w,{name:"error",size:"18"},null)})}},{default:()=>[e("添加标记图标")]}),u(t,{onClick:()=>{l("/template-hooks",{label:this.badgeValue,icon:void 0})}},{default:()=>[e("隐藏标记图标")]})]})]})]}),u(i,{title:"useTheme 主题"},{default:()=>[u(a,{vertical:!0},{default:()=>[u("h3",null,[e("getAppTheme 获取当前主题色: "),E().themeLabel]),u(a,null,{default:()=>[u(t,{onClick:()=>D()},{default:()=>[e("切换暗黑主题")]}),u(t,{onClick:()=>h()},{default:()=>[e("切换明亮主题")]}),u(t,{onClick:()=>g()},{default:()=>[e("跟随主题")]}),u(t,{onClick:()=>A()},{default:()=>[e("切换主题")]})]})]})]}),u(i,{title:"useWatermark 水印"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(T,{value:this.watermark,"onUpdate:value":o=>this.watermark=o,onInput:o=>{C(o)}},null),u(a,null,{default:()=>[u(t,{onClick:()=>s()},{default:()=>[e("显示水印")]}),u(t,{onClick:()=>d()},{default:()=>[e("隐藏水印")]}),u(t,{onClick:()=>B()},{default:()=>[e("切换水印")]})]})]})]}),u(i,{title:"useSpinning"},{default:()=>[u("h3",null,[e("手动刷新内容区域,会使得当前路由页面内容强制重新加载(会执行完整的 vue 生命周期)。默认 800ms 延迟。")]),u("br",null,null),u(a,null,{default:()=>[u(t,{onClick:()=>{r()}},{default:()=>[e("刷新(强制刷新)")]}),u(t,{onClick:()=>{F(),setTimeout(()=>{p()},800)}},{default:()=>[e("触发加载动画(不强制刷新)")]})]})]}),u(i,{title:"useMaximize 内容区域最大化"},{default:()=>[u("h3",null,[e("isLayoutContentMaximized 检测当前内容区域是否最大化:"),c?"最大化":"正常尺寸"]),u(t,{onClick:()=>{n(!this.maximizeRef,{scrollToOptions:{left:0,top:0}})}},{default:()=>[e("最大化内容区域,并且滚动至顶部")]})]}),u(i,{title:"useAppNavigation 导航方法"},{default:()=>[u("h3",null,[e("navigationTo 参数为正整数时,会更具当前的菜单顺序进行自动导航匹配。但是此方法仅能导航一级菜单。并且如果导航菜单非根菜单项,会自动递归导航至一子菜单。 支持传入完整的菜单路径,如:/multi/multi-menu-one。")]),u("br",null,null),u(t,{onClick:()=>m("/multi/multi-menu-one")},{default:()=>[e("跳转至多级菜单")]})]})]})}});export{Ou as default}; diff --git a/js/index-C55lNPAm.js.gz b/js/index-C55lNPAm.js.gz new file mode 100644 index 00000000..cf941e2d Binary files /dev/null and b/js/index-C55lNPAm.js.gz differ diff --git a/js/index-fb6Zlm5C.js b/js/index-C6a7JFW7.js similarity index 76% rename from js/index-fb6Zlm5C.js rename to js/index-C6a7JFW7.js index 2b1f6eae..20ad01ca 100644 --- a/js/index-fb6Zlm5C.js +++ b/js/index-C6a7JFW7.js @@ -1 +1 @@ -import{z as m,V as o}from"./hooks-DKN08swi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{l as h,b as u,I as t}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{k as d}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import{ag as F,N as i,a as b,b as l,c as B,ak as f,al as a}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./utils-DMI3ftdH.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const gu=h({name:"SegmentDemo",setup(){const s=[{label:"这是一",key:"this is one"},{label:"这是二",key:"this is two"},{label:"这是三",key:"this is three"}],n=[...s,{label:"这是四",key:"this is four",slots:{default:()=>"我是自定义"}}],p=[...s,{label:"不许点",key:"disabled option",disabled:!0},{label:"popover",key:"popover",popover:"我是 popover"},{label:"popover options",key:"popover options",popover:{label:"我是配置项的 popover"}}],r=[{label:"设置",key:"setting",icon:u(m,{name:"setting"},null)},{label:"刷新",key:"reload",icon:u(m,{name:"reload"},null)},{label:"搜索",key:"search",icon:u(m,{name:"search"},null),popover:"我是搜索"}],E=d("this is three"),e=d("medium"),C=d("block");return{baseOptions:s,options:n,segmentValueOne:E,segmentChange:A=>{window.$message.info(String(A))},size:e,width:C,disabledOptions:p,iconOptions:r}},render(){const{options:s,baseOptions:n,disabledOptions:p,iconOptions:r}=this,{segmentChange:E}=this;return u(B,{vertical:!0},{default:()=>[u(F,{title:"警告⚠️",type:"warning"},{default:()=>[t("n-tabs 默认情况下会从 slot 获取默认展示的 tab 值,因此会产生一个 vue slot 的 warning。如果你不想看到这个 warning,请设定一个 default-value。")]}),u(F,{title:"已知问题",type:"warning"},{default:()=>[t("由于 NTabs 设计缘故,手动设置 width 为 fitContent 后,配置了 disabled, popover 的配置项,会丢失过度效果。具体可以看下面的例子。"),u("br",null,null),t("解决方法,在该组件外层包一层 div,设置宽度,但是不能为 fit-content。")]}),u(i,{title:"分段器"},{default:()=>[u("h3",null,[t("该组件基于 NTabs + NTabPane 封装,所以保留了一些该组件的特性。")])]}),u(b,{cols:2,xGap:8,yGap:12},{default:()=>[u(l,{span:1},{default:()=>[u(i,{title:"基础非受控分段器"},{default:()=>[u(o,{defaultValue:"this is two",options:n},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"自定义分段器插槽"},{default:()=>[u(o,{defaultValue:this.segmentValueOne,options:s},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"updateValue 事件"},{default:()=>[u(o,{value:this.segmentValueOne,"onUpdate:value":e=>this.segmentValueOne=e,defaultValue:"this is two",options:p,onUpdateValue:E.bind(this),width:"block"},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"自适应宽度"},{default:()=>[u(o,{defaultValue:"setting",options:r,width:"block"},null)]})]}),u(l,{span:2},{default:()=>[u(i,{title:"尺寸"},{default:()=>[u(B,{vertical:!0,size:"large"},{default:()=>[u(f,{value:this.size,"onUpdate:value":e=>this.size=e},{default:()=>[u(a,{value:"small"},{default:()=>[t("小")]}),u(a,{value:"medium"},{default:()=>[t("不小")]}),u(a,{value:"large"},{default:()=>[t("不太小")]})]}),u(o,{defaultValue:"this is two",options:n,size:this.size,width:"block"},null)]})]})]}),u(l,{span:2},{default:()=>[u(i,{title:"宽度"},{default:()=>[u(B,{vertical:!0,size:"large"},{default:()=>[u(F,{title:"注意",type:"info"},{default:()=>[t("RSegment 组件宽度默认为 fitContent,按照内容自适应宽度;如果需要自适应宽度,请设置 width 为 block;如果需要手动指定宽度请设置一个数字。")]}),u(f,{value:this.width,"onUpdate:value":e=>this.width=e},{default:()=>[u(a,{value:"fitContent"},{default:()=>[t("fitContent")]}),u(a,{value:"block"},{default:()=>[t("block")]}),u(a,{value:800},{default:()=>[t("800")]})]}),u(o,{defaultValue:"this is two",options:p,width:this.width},null)]})]})]})]})]})}});export{gu as default}; +import{v as m,U as o}from"./hooks-yKQIzKXx.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{l as h,b as u,I as t}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{k as d}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{ah as F,N as i,a as b,b as l,c as B,al as f,am as a}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./utils-DJWgFDlo.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const gu=h({name:"SegmentDemo",setup(){const s=[{label:"这是一",key:"this is one"},{label:"这是二",key:"this is two"},{label:"这是三",key:"this is three"}],n=[...s,{label:"这是四",key:"this is four",slots:{default:()=>"我是自定义"}}],p=[...s,{label:"不许点",key:"disabled option",disabled:!0},{label:"popover",key:"popover",popover:"我是 popover"},{label:"popover options",key:"popover options",popover:{label:"我是配置项的 popover"}}],r=[{label:"设置",key:"setting",icon:u(m,{name:"setting"},null)},{label:"刷新",key:"reload",icon:u(m,{name:"reload"},null)},{label:"搜索",key:"search",icon:u(m,{name:"search"},null),popover:"我是搜索"}],E=d("this is three"),e=d("medium"),C=d("block");return{baseOptions:s,options:n,segmentValueOne:E,segmentChange:A=>{window.$message.info(String(A))},size:e,width:C,disabledOptions:p,iconOptions:r}},render(){const{options:s,baseOptions:n,disabledOptions:p,iconOptions:r}=this,{segmentChange:E}=this;return u(B,{vertical:!0},{default:()=>[u(F,{title:"警告⚠️",type:"warning"},{default:()=>[t("n-tabs 默认情况下会从 slot 获取默认展示的 tab 值,因此会产生一个 vue slot 的 warning。如果你不想看到这个 warning,请设定一个 default-value。")]}),u(F,{title:"已知问题",type:"warning"},{default:()=>[t("由于 NTabs 设计缘故,手动设置 width 为 fitContent 后,配置了 disabled, popover 的配置项,会丢失过度效果。具体可以看下面的例子。"),u("br",null,null),t("解决方法,在该组件外层包一层 div,设置宽度,但是不能为 fit-content。")]}),u(i,{title:"分段器"},{default:()=>[u("h3",null,[t("该组件基于 NTabs + NTabPane 封装,所以保留了一些该组件的特性。")])]}),u(b,{cols:2,xGap:8,yGap:12},{default:()=>[u(l,{span:1},{default:()=>[u(i,{title:"基础非受控分段器"},{default:()=>[u(o,{defaultValue:"this is two",options:n},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"自定义分段器插槽"},{default:()=>[u(o,{defaultValue:this.segmentValueOne,options:s},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"updateValue 事件"},{default:()=>[u(o,{value:this.segmentValueOne,"onUpdate:value":e=>this.segmentValueOne=e,defaultValue:"this is two",options:p,onUpdateValue:E.bind(this),width:"block"},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"自适应宽度"},{default:()=>[u(o,{defaultValue:"setting",options:r,width:"block"},null)]})]}),u(l,{span:2},{default:()=>[u(i,{title:"尺寸"},{default:()=>[u(B,{vertical:!0,size:"large"},{default:()=>[u(f,{value:this.size,"onUpdate:value":e=>this.size=e},{default:()=>[u(a,{value:"small"},{default:()=>[t("小")]}),u(a,{value:"medium"},{default:()=>[t("不小")]}),u(a,{value:"large"},{default:()=>[t("不太小")]})]}),u(o,{defaultValue:"this is two",options:n,size:this.size,width:"block"},null)]})]})]}),u(l,{span:2},{default:()=>[u(i,{title:"宽度"},{default:()=>[u(B,{vertical:!0,size:"large"},{default:()=>[u(F,{title:"注意",type:"info"},{default:()=>[t("RSegment 组件宽度默认为 fitContent,按照内容自适应宽度;如果需要自适应宽度,请设置 width 为 block;如果需要手动指定宽度请设置一个数字。")]}),u(f,{value:this.width,"onUpdate:value":e=>this.width=e},{default:()=>[u(a,{value:"fitContent"},{default:()=>[t("fitContent")]}),u(a,{value:"block"},{default:()=>[t("block")]}),u(a,{value:800},{default:()=>[t("800")]})]}),u(o,{defaultValue:"this is two",options:p,width:this.width},null)]})]})]})]})]})}});export{gu as default}; diff --git a/js/index-C6a7JFW7.js.gz b/js/index-C6a7JFW7.js.gz new file mode 100644 index 00000000..cd9983f6 Binary files /dev/null and b/js/index-C6a7JFW7.js.gz differ diff --git a/js/index-BkaDMlTh.js b/js/index-C8iQ720y.js similarity index 72% rename from js/index-BkaDMlTh.js rename to js/index-C8iQ720y.js index 90ef2809..f6a89270 100644 --- a/js/index-BkaDMlTh.js +++ b/js/index-C8iQ720y.js @@ -1 +1 @@ -import{U as m,R as l}from"./hooks-DKN08swi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{N as r,c as a,O as e}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import{l as p,b as u,I as t}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{e as s,x as E}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./utils-DMI3ftdH.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const Du=p({name:"ModalDemo",setup(){const F=s({modal1:!1,modal2:!1,modal3:!1}),{create:i}=m(),o=()=>{i({title:"卡片模态框",dad:!0,preset:"card",content:()=>u("div",{style:"height: 3000px;"},[t("我可以被拖拽的全屏card模态框")]),fullscreen:!0})},d=()=>{i({title:"模态框",content:"内容",preset:"dialog",dad:!0})};return{...E(F),createCardModal:o,createDialogModal:d}},render(){const{createCardModal:F,createDialogModal:i}=this;return u(a,{vertical:!0},{default:()=>[u(r,{title:"props"},{default:()=>[u(a,{vertical:!0},{default:()=>[u("h3",null,[t("memoryPosition: 是否记住上一次被拖拽的位置,如果设置为 true,那么下一次打开的时候会自动定位到上一次的位置。")]),u("h3",null,[t("fullscreen: 全屏模态框。")]),u("h3",null,[t("dad: 启用拖拽,当配置为 false 时,会禁用拖拽效果。")])]})]}),u(l,{show:this.modal1,"onUpdate:show":o=>this.modal1=o,title:"全屏模态框",fullscreen:!0,preset:"card"},{default:()=>[u("div",{style:"height: 3000px;"},[t("我可以被拖拽的全屏card模态框")])]}),u(l,{show:this.modal2,"onUpdate:show":o=>this.modal2=o,preset:"card",title:"可拖拽卡片模态框",dad:!0},{default:()=>[u("p",null,[t("我可以被拖拽")])]}),u(l,{show:this.modal3,"onUpdate:show":o=>this.modal3=o,preset:"dialog",title:"可拖拽卡片模态框",dad:!0},{default:()=>[u("p",null,[t("我可以被拖拽")])]}),u(r,{title:"可拖拽模态框"},{default:()=>[u(e,{onClick:()=>this.modal2=!0},{default:()=>[t("卡片模态框")]}),u(e,{onClick:()=>this.modal3=!0},{default:()=>[t("对话框模态框")]})]}),u(r,{title:"全屏模态框"},{default:()=>[u(a,{vertical:!0},{default:()=>[u("h4",null,[t("全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。")]),u(e,{onClick:()=>this.modal1=!0},{default:()=>[t("打开")]})]})]}),u(r,{title:"手动设置宽度"},{default:()=>[u("h4",null,[t("width(--r-modal-width): 当 preset 不为 dialog 或者 card 的时候,你可能用得上。")]),u("h4",null,[t("dialogWidth(--r-modal-dialog-width): 当 preset 为 dialog,你可能用得上。")]),u("h4",null,[t("cardWidth(--r-modal-card-width): 当 preset 为 card,你可能用得上。")]),u("h4",null,[t("所有的宽度配置属性都会注入一个对应的 `css variable`,有时候会用上。")])]}),u(r,{title:"重写 useModal"},{default:()=>[u(e,{onClick:F.bind(this)},{default:()=>[t("创建卡片模态框")]}),u(e,{onClick:i.bind(this)},{default:()=>[t("创建对话框模态框")]})]})]})}});export{Du as default}; +import{T as m,R as l}from"./hooks-yKQIzKXx.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{N as r,c as a,O as e}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import{l as p,b as u,I as t}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{e as s,x as E}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./utils-DJWgFDlo.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const Du=p({name:"ModalDemo",setup(){const F=s({modal1:!1,modal2:!1,modal3:!1}),{create:i}=m(),o=()=>{i({title:"卡片模态框",dad:!0,preset:"card",content:()=>u("div",{style:"height: 3000px;"},[t("我可以被拖拽的全屏card模态框")]),fullscreen:!0})},d=()=>{i({title:"模态框",content:"内容",preset:"dialog",dad:!0})};return{...E(F),createCardModal:o,createDialogModal:d}},render(){const{createCardModal:F,createDialogModal:i}=this;return u(a,{vertical:!0},{default:()=>[u(r,{title:"props"},{default:()=>[u(a,{vertical:!0},{default:()=>[u("h3",null,[t("memoryPosition: 是否记住上一次被拖拽的位置,如果设置为 true,那么下一次打开的时候会自动定位到上一次的位置。")]),u("h3",null,[t("fullscreen: 全屏模态框。")]),u("h3",null,[t("dad: 启用拖拽,当配置为 false 时,会禁用拖拽效果。")])]})]}),u(l,{show:this.modal1,"onUpdate:show":o=>this.modal1=o,title:"全屏模态框",fullscreen:!0,preset:"card"},{default:()=>[u("div",{style:"height: 3000px;"},[t("我可以被拖拽的全屏card模态框")])]}),u(l,{show:this.modal2,"onUpdate:show":o=>this.modal2=o,preset:"card",title:"可拖拽卡片模态框",dad:!0},{default:()=>[u("p",null,[t("我可以被拖拽")])]}),u(l,{show:this.modal3,"onUpdate:show":o=>this.modal3=o,preset:"dialog",title:"可拖拽卡片模态框",dad:!0},{default:()=>[u("p",null,[t("我可以被拖拽")])]}),u(r,{title:"可拖拽模态框"},{default:()=>[u(e,{onClick:()=>this.modal2=!0},{default:()=>[t("卡片模态框")]}),u(e,{onClick:()=>this.modal3=!0},{default:()=>[t("对话框模态框")]})]}),u(r,{title:"全屏模态框"},{default:()=>[u(a,{vertical:!0},{default:()=>[u("h4",null,[t("全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。")]),u(e,{onClick:()=>this.modal1=!0},{default:()=>[t("打开")]})]})]}),u(r,{title:"手动设置宽度"},{default:()=>[u("h4",null,[t("width(--r-modal-width): 当 preset 不为 dialog 或者 card 的时候,你可能用得上。")]),u("h4",null,[t("dialogWidth(--r-modal-dialog-width): 当 preset 为 dialog,你可能用得上。")]),u("h4",null,[t("cardWidth(--r-modal-card-width): 当 preset 为 card,你可能用得上。")]),u("h4",null,[t("所有的宽度配置属性都会注入一个对应的 `css variable`,有时候会用上。")])]}),u(r,{title:"重写 useModal"},{default:()=>[u(e,{onClick:F.bind(this)},{default:()=>[t("创建卡片模态框")]}),u(e,{onClick:i.bind(this)},{default:()=>[t("创建对话框模态框")]})]})]})}});export{Du as default}; diff --git a/js/index-C8iQ720y.js.gz b/js/index-C8iQ720y.js.gz new file mode 100644 index 00000000..f658ca57 Binary files /dev/null and b/js/index-C8iQ720y.js.gz differ diff --git a/js/index-C8sUoWBI.js.gz b/js/index-C8sUoWBI.js.gz deleted file mode 100644 index e124f5ec..00000000 Binary files a/js/index-C8sUoWBI.js.gz and /dev/null differ diff --git a/js/index-C9_pwX3h.js.gz b/js/index-C9_pwX3h.js.gz deleted file mode 100644 index ffcc92e4..00000000 Binary files a/js/index-C9_pwX3h.js.gz and /dev/null differ diff --git a/js/index-CCykVugW.js b/js/index-CCykVugW.js new file mode 100644 index 00000000..7e64b7cd --- /dev/null +++ b/js/index-CCykVugW.js @@ -0,0 +1 @@ +import{m as T,q as C,t as L,f as v,v as r,e as F,u as P,i as A,w as $}from"./hooks-yKQIzKXx.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{u as z}from"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import{s as w}from"./utils-DJWgFDlo.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{H as y,L as S,O as V,q,V as G,n as I,c as l,x as D,I as E,y as b,j as H,a as Q,b as k,N as U,s as W,R as c,E as x}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import{l as a,b as e,p as m,I as d,F as B}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{k as p,e as _,x as R}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{Q as K}from"./vue3-next-qrcode@2.0.10_typescript@5.6.3-et2AKeWS.js";import{L as X}from"./ray-dCjhX_JK.js";import{f as Y}from"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import{A as J}from"./index-CPnIe1iT.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function M(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!m(t)}const Z=a({name:"RSigning",setup(){const t=p(),{t:i}=L(),{signing:n}=T(),{getRootPath:o}=C(),s=p(!1),u=()=>({name:"Ray Admin",pwd:"123456"}),j=z(),g=p(u()),N={name:{required:!0,message:i("views.login.index.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:i("views.login.index.PasswordPlaceholder"),trigger:["blur","input"]}};return{signingForm:g,loginFormRef:t,handleLogin:()=>{var h;(h=t.value)==null||h.validate(O=>{O||(s.value=!0,n(g.value).then(f=>{f.code===0&&setTimeout(()=>{window.$message.success(`欢迎${g.value.name}登陆~`),w(v.token,"tokenValue","localStorage"),w(v.signing,f.data,"localStorage"),j.push(o.value),s.value=!1},2*1e3)}).catch(()=>{window.$message.error("不可以这样哟, 不可以哟")}))})},rules:N,loading:s}},render(){let t;const{$t:i,loading:n}=this;return e(q,{model:this.signingForm,ref:"loginFormRef",rules:this.rules},{default:()=>[e(y,{label:i("views.login.index.Name"),path:"name"},{default:()=>[e(S,{value:this.signingForm.name,"onUpdate:value":o=>this.signingForm.name=o,placeholder:i("views.login.index.NamePlaceholder")},null)]}),e(y,{label:i("views.login.index.Password"),path:"pwd"},{default:()=>[e(S,{value:this.signingForm.pwd,"onUpdate:value":o=>this.signingForm.pwd=o,type:"password",showPasswordOn:"click",placeholder:i("views.login.index.PasswordPlaceholder"),onKeydown:o=>o.key==="Enter"&&this.handleLogin()},null)]}),e(V,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this),loading:n},M(t=i("views.login.index.Login"))?t:{default:()=>[t]})]})}}),ee=a({name:"RRegister",render(){return e(G,{status:"info",title:"提示",description:"我实在是不想写了..."},null)}}),te=a({name:"QRCodeSigning",setup(){const t=_({qrcodeValue:"https://github.com/XiaoDaiGua-Ray/xiaodaigua-ray.github.io"});return{...R(t)}},render(){return e("div",{class:"qrcode-signing"},[e(K,{text:"ray template yes",size:200,logoImage:X},null)])}});function ie(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!m(t)}const ne=a({name:"SSOSigning",setup(){return{ssoSigningOptions:[{icon:"github",key:"github",tooltipLabel:"Github登陆"},{icon:"google",key:"google",tooltipLabel:"Google登陆"},{icon:"twitter",key:"twitter",tooltipLabel:"Twitter登陆"}],handleSSOSigningClick:n=>{window.$message.info(`调用${n.tooltipLabel}`)}}},render(){let t;return e(l,{class:"sso-signing",align:"center"},ie(t=this.ssoSigningOptions.map(i=>e(I,{key:i.key},{trigger:()=>e(r,{name:i.icon,size:"24",cursor:"pointer",onClick:this.handleSSOSigningClick.bind(this,i)},null),default:()=>i.tooltipLabel})))?t:{default:()=>[t]})}}),oe=a({name:"ThemeSwitch",setup(){const{darkTheme:t,lightTheme:i}=P(),{getAppTheme:n}=F(),o=p(n.value);return{darkTheme:t,lightTheme:i,getAppTheme:n,railStyle:({checked:u})=>u?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:o}},render(){const{$t:t,darkTheme:i,lightTheme:n,railStyle:o}=this;return e(l,{justify:"center"},{default:()=>[e(D,null,{trigger:()=>e(E,{value:this.modelAppThemeRef,"onUpdate:value":s=>this.modelAppThemeRef=s,railStyle:o.bind(this),onUpdateValue:s=>s?i():n()},{"checked-icon":()=>e(r,{name:"dark"},null),"unchecked-icon":()=>e(r,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?t("headerSettingOptions.ThemeOptions.Dark"):t("headerSettingOptions.ThemeOptions.Light")})]})}});var se={pkg:{dependencies:{"@logicflow/core":"2.0.6","@logicflow/extension":"2.0.10","@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^8.13.0","@typescript-eslint/parser":"^8.13.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.1","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5","rollup-plugin-gzip":"4.0.1",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.6.3","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.1.10"},name:"ray-template",version:"5.0.5"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function le(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!m(t)}const dt=a({name:"RLogin",setup(){const{layout:{copyright:t}}=se,i=_({tabsValue:"signing"}),{height:n,width:o}=Y(),{updateLocale:s}=A();return{...R(i),windowHeight:n,updateLocale:s,copyright:t,windowWidth:o}},render(){let t;const{$t:i}=this;return e("div",{class:["login"],style:[`height: ${this.windowHeight}px`,`--login-height: ${this.windowHeight}px`]},[e("div",{class:["login-wrapper",this.windowWidth>=1440?"login-wrapper--divider":""]},[e("div",{class:["login-wrapper__content"]},[e(l,{align:"center",class:"login-title__wrapper"},{default:()=>[e(r,{name:"ray",size:"48"},null),e(b,{class:"login-title",type:"info",size:28},{default:()=>[d("Ray Template")]})]}),e(l,{align:"center",class:"login-action__wrapper"},{default:()=>[e(oe,null,null),e(H,{options:$,onSelect:n=>this.updateLocale(n),trigger:"click"},{default:()=>[e(r,{customClassName:"login-icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),e(Q,{cols:"s:1 m:1 l:2 xl:2 2xl:2",itemResponsive:!1,responsive:"screen"},{default:()=>[e(k,{span:"s:0 m:0 l:1 xl:1 2xl:1",class:"login__left-wrapper"},{default:()=>[e(l,{align:"center",vertical:!0},{default:()=>[e(r,{name:"login_bg",width:"368",height:"368"},null),e(b,{class:"login-title",type:"info",size:36},le(t=i("views.login.index.RayTemplate"))?t:{default:()=>[t]})]})]}),e(k,{span:1,class:"login__right-wrapper"},{default:()=>[e(U,{class:"login__right-wrapper__content",embedded:!0,bordered:!1},{default:()=>[e(W,{value:this.tabsValue,"onUpdate:value":n=>this.tabsValue=n,type:"line",animated:!0,size:"large"},{default:()=>e(B,null,[e(c,{tab:i("views.login.index.Signing"),name:"signing"},{default:()=>[e(Z,null,null)]}),e(c,{tab:i("views.login.index.Register"),name:"register"},{default:()=>[e(ee,null,null)]}),e(c,{tab:i("views.login.index.QRCodeSigning"),name:"qrcodeSigning"},{default:()=>[e(te,null,null)]})])}),e(x,null,{default:()=>[d("其他登陆方式")]}),e(ne,null,null),e(x,null,{default:()=>[d("友情链接")]}),e(J,null,null)]})]})]}),e(l,{align:"center",justify:"center",class:"login-copyright__wrapper"},{default:()=>[this.copyright]})])])])}});export{dt as default}; diff --git a/js/index-CCykVugW.js.gz b/js/index-CCykVugW.js.gz new file mode 100644 index 00000000..9bd54744 Binary files /dev/null and b/js/index-CCykVugW.js.gz differ diff --git a/js/index-CJSqT0Ur.js.gz b/js/index-CJSqT0Ur.js.gz deleted file mode 100644 index cbf651f5..00000000 Binary files a/js/index-CJSqT0Ur.js.gz and /dev/null differ diff --git a/js/index-D5IorQkc.js b/js/index-CMTstbS_.js similarity index 88% rename from js/index-D5IorQkc.js rename to js/index-CMTstbS_.js index e280bb6f..e07d47d7 100644 --- a/js/index-D5IorQkc.js +++ b/js/index-CMTstbS_.js @@ -1 +1 @@ -import{l as f,b as u,I as e,N as t,V as l}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{N as i,c as a,ag as n,v as s,O as r,J as B,ah as p,L as d,I as E,q as m,H as h}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import{e as v,k as A,x as b}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const H=f({name:"RDirective",setup(){const F=v({copyValueOne:"我是待复制内容区域一",copyValueTwo:"我是待复制内容区域二",throttleBtnClickCount:0,debounceBtnClickCount:0,disabledValue:!1}),C=A(2),o=c=>{F[c]++};return{...b(F),updateDemoValue:o,ellipsisLineClamp:C}},render(){return u(a,null,{default:()=>[u(i,{title:"指令"},{default:()=>[e("该页面展示如何使用已封装好的指令")]}),u(i,{title:"水波纹"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(n,{title:"modifiers",type:"info"},{default:()=>[e("你可以手动显示的声明水波纹效果,默认为 circle。你可以手动的声明为 center。")]}),u(n,{title:"vue template",type:"success"},{default:()=>[e('"v-ripple.center" 或者 "v-ripple.circle"。')]}),u(n,{title:"tsx",type:"success"},{default:()=>[JSON.stringify("v-ripple={[true, ['center']]}"),e(" 或者"),JSON.stringify("v-ripple={[true, ['circle']]}"),e("。")]}),u(a,null,{default:()=>[t(u(s,{type:"success",size:"large"},{default:()=>[e("水波纹效果的Tag")]}),[[l("ripple")]]),t(u(s,{type:"warning",size:"large"},{default:()=>[e("水波纹效果的Tag")]}),[[l("ripple")]]),t(u(s,{type:"error",size:"large"},{default:()=>[e("水波纹效果的Tag")]}),[[l("ripple")]]),t(u(r,{type:"info"},{default:()=>[e("水波纹效果的Button")]}),[[l("ripple")]]),t(u("div",{style:"height: 20px; line-height: 20px;text-align: center; border: 1px solid; padding: 6px;"},[e("原生元素绑定水波纹效果,并且手动绑定 modifiers 为 center")]),[[l("ripple"),!0,void 0,{center:!0}]])]})]})]}),u(i,{title:"文本省略"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(i,{title:"单行省略"},{default:()=>[t(u("div",null,[e("我是一段很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的文本。")]),[[l("ellipsis"),{type:"block",width:"100px"}]])]}),u(i,{title:"多行省略"},{default:()=>[u(a,{vertical:!0,size:"large"},{default:()=>[u(n,{title:"注意",type:"warning"},{default:()=>[e("该方法基于非标准属性实现(-webkit-line-clamp),可能会有兼容性问题,所以请谨慎使用。 详情参考:"),u("a",{href:"https://caniuse.com/?search=line-clamp"},[e("can i use")])]}),t(u("div",null,[e("我是一段很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的文本。")]),[[l("ellipsis"),{type:"line",width:"100px",line:this.ellipsisLineClamp}]]),u(B,{value:this.ellipsisLineClamp,"onUpdate:value":F=>this.ellipsisLineClamp=F,min:1},null)]})]})]})]}),u(i,{title:"文本复制示例一"},{default:()=>[u(p,null,{default:()=>[u(d,{value:this.copyValueOne,"onUpdate:value":F=>this.copyValueOne=F},null),t(u(r,null,{default:()=>[e("复制")]}),[[l("copy"),this.copyValueOne]])]})]}),u(i,{title:"文本复制示例二"},{default:()=>[u(p,null,{default:()=>[u(d,{value:this.copyValueTwo,"onUpdate:value":F=>this.copyValueTwo=F},null),t(u(r,null,{default:()=>[e("复制")]}),[[l("copy"),this.copyValueTwo]])]})]}),u(i,{title:"节流"},{default:()=>[u(a,{vertical:!0},{default:()=>[t(u(r,null,{default:()=>[e("点击执行")]}),[[l("throttle"),{func:this.updateDemoValue.bind(null,"throttleBtnClickCount"),trigger:"click",wait:3e3,options:{}}]]),u("p",null,[e("我执行了"),this.throttleBtnClickCount,e("次")]),u("p",null,[e("该方法 3s 内仅会执行一次")])]})]}),u(i,{title:"防抖"},{default:()=>[u(a,{vertical:!0},{default:()=>[t(u(r,null,{default:()=>[e("点击执行")]}),[[l("debounce"),{func:this.updateDemoValue.bind(null,"debounceBtnClickCount"),trigger:"click",wait:3e3,options:{}}]]),u("p",null,[e("我执行了"),this.debounceBtnClickCount,e("次")]),u("p",null,[e("该方法将延迟 3s 执行")])]})]}),u(i,{title:"禁用"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(E,{value:this.disabledValue,"onUpdate:value":F=>this.disabledValue=F},{checked:()=>"取消",unchecked:()=>"禁用"}),u(i,{title:"描述"},{default:()=>[u("p",null,[e("该指令会强制禁用(通过 css 层面)禁用元素交互。但是 naive ui 组件提供了完整的 disabled 属性,所以在组件库有禁用需求时,直接调用组件库 disabled 属性即可。但是值得注意的是,该指令优先级最高,会覆盖组件 disabled 属性。")])]}),u(i,{title:"原生表单"},{default:()=>[t(u("form",null,[u("input",{type:"text",placeholder:"请输入"},null),u("button",null,[e("提交")])]),[[l("disabled"),this.disabledValue]])]}),u(i,{title:"文本内容"},{default:()=>[u(a,{vertical:!0},{default:()=>[t(u("p",null,[e("我是可以被禁用的文本内容")]),[[l("disabled"),this.disabledValue]])]})]}),u(i,{title:"naive 组件"},{default:()=>[u(a,{vertical:!0,justify:"start"},{default:()=>[t(u(m,null,{default:()=>[u(h,null,{default:()=>[u(d,null,null)]})]}),[[l("disabled"),this.disabledValue]]),t(u(r,null,{default:()=>[e("按钮")]}),[[l("disabled"),this.disabledValue]]),t(u(E,null,null),[[l("disabled"),this.disabledValue]])]})]})]})]})]})}});export{H as default}; +import{l as f,b as u,I as e,N as t,V as l}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{N as i,c as a,ah as n,v as s,O as r,J as B,ai as p,L as d,I as E,q as m,H as h}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import{e as v,k as A,x as b}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const H=f({name:"RDirective",setup(){const F=v({copyValueOne:"我是待复制内容区域一",copyValueTwo:"我是待复制内容区域二",throttleBtnClickCount:0,debounceBtnClickCount:0,disabledValue:!1}),C=A(2),o=c=>{F[c]++};return{...b(F),updateDemoValue:o,ellipsisLineClamp:C}},render(){return u(a,null,{default:()=>[u(i,{title:"指令"},{default:()=>[e("该页面展示如何使用已封装好的指令")]}),u(i,{title:"水波纹"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(n,{title:"modifiers",type:"info"},{default:()=>[e("你可以手动显示的声明水波纹效果,默认为 circle。你可以手动的声明为 center。")]}),u(n,{title:"vue template",type:"success"},{default:()=>[e('"v-ripple.center" 或者 "v-ripple.circle"。')]}),u(n,{title:"tsx",type:"success"},{default:()=>[JSON.stringify("v-ripple={[true, ['center']]}"),e(" 或者"),JSON.stringify("v-ripple={[true, ['circle']]}"),e("。")]}),u(a,null,{default:()=>[t(u(s,{type:"success",size:"large"},{default:()=>[e("水波纹效果的Tag")]}),[[l("ripple")]]),t(u(s,{type:"warning",size:"large"},{default:()=>[e("水波纹效果的Tag")]}),[[l("ripple")]]),t(u(s,{type:"error",size:"large"},{default:()=>[e("水波纹效果的Tag")]}),[[l("ripple")]]),t(u(r,{type:"info"},{default:()=>[e("水波纹效果的Button")]}),[[l("ripple")]]),t(u("div",{style:"height: 20px; line-height: 20px;text-align: center; border: 1px solid; padding: 6px;"},[e("原生元素绑定水波纹效果,并且手动绑定 modifiers 为 center")]),[[l("ripple"),!0,void 0,{center:!0}]])]})]})]}),u(i,{title:"文本省略"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(i,{title:"单行省略"},{default:()=>[t(u("div",null,[e("我是一段很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的文本。")]),[[l("ellipsis"),{type:"block",width:"100px"}]])]}),u(i,{title:"多行省略"},{default:()=>[u(a,{vertical:!0,size:"large"},{default:()=>[u(n,{title:"注意",type:"warning"},{default:()=>[e("该方法基于非标准属性实现(-webkit-line-clamp),可能会有兼容性问题,所以请谨慎使用。 详情参考:"),u("a",{href:"https://caniuse.com/?search=line-clamp"},[e("can i use")])]}),t(u("div",null,[e("我是一段很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的文本。")]),[[l("ellipsis"),{type:"line",width:"100px",line:this.ellipsisLineClamp}]]),u(B,{value:this.ellipsisLineClamp,"onUpdate:value":F=>this.ellipsisLineClamp=F,min:1},null)]})]})]})]}),u(i,{title:"文本复制示例一"},{default:()=>[u(p,null,{default:()=>[u(d,{value:this.copyValueOne,"onUpdate:value":F=>this.copyValueOne=F},null),t(u(r,null,{default:()=>[e("复制")]}),[[l("copy"),this.copyValueOne]])]})]}),u(i,{title:"文本复制示例二"},{default:()=>[u(p,null,{default:()=>[u(d,{value:this.copyValueTwo,"onUpdate:value":F=>this.copyValueTwo=F},null),t(u(r,null,{default:()=>[e("复制")]}),[[l("copy"),this.copyValueTwo]])]})]}),u(i,{title:"节流"},{default:()=>[u(a,{vertical:!0},{default:()=>[t(u(r,null,{default:()=>[e("点击执行")]}),[[l("throttle"),{func:this.updateDemoValue.bind(null,"throttleBtnClickCount"),trigger:"click",wait:3e3,options:{}}]]),u("p",null,[e("我执行了"),this.throttleBtnClickCount,e("次")]),u("p",null,[e("该方法 3s 内仅会执行一次")])]})]}),u(i,{title:"防抖"},{default:()=>[u(a,{vertical:!0},{default:()=>[t(u(r,null,{default:()=>[e("点击执行")]}),[[l("debounce"),{func:this.updateDemoValue.bind(null,"debounceBtnClickCount"),trigger:"click",wait:3e3,options:{}}]]),u("p",null,[e("我执行了"),this.debounceBtnClickCount,e("次")]),u("p",null,[e("该方法将延迟 3s 执行")])]})]}),u(i,{title:"禁用"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(E,{value:this.disabledValue,"onUpdate:value":F=>this.disabledValue=F},{checked:()=>"取消",unchecked:()=>"禁用"}),u(i,{title:"描述"},{default:()=>[u("p",null,[e("该指令会强制禁用(通过 css 层面)禁用元素交互。但是 naive ui 组件提供了完整的 disabled 属性,所以在组件库有禁用需求时,直接调用组件库 disabled 属性即可。但是值得注意的是,该指令优先级最高,会覆盖组件 disabled 属性。")])]}),u(i,{title:"原生表单"},{default:()=>[t(u("form",null,[u("input",{type:"text",placeholder:"请输入"},null),u("button",null,[e("提交")])]),[[l("disabled"),this.disabledValue]])]}),u(i,{title:"文本内容"},{default:()=>[u(a,{vertical:!0},{default:()=>[t(u("p",null,[e("我是可以被禁用的文本内容")]),[[l("disabled"),this.disabledValue]])]})]}),u(i,{title:"naive 组件"},{default:()=>[u(a,{vertical:!0,justify:"start"},{default:()=>[t(u(m,null,{default:()=>[u(h,null,{default:()=>[u(d,null,null)]})]}),[[l("disabled"),this.disabledValue]]),t(u(r,null,{default:()=>[e("按钮")]}),[[l("disabled"),this.disabledValue]]),t(u(E,null,null),[[l("disabled"),this.disabledValue]])]})]})]})]})]})}});export{H as default}; diff --git a/js/index-CMTstbS_.js.gz b/js/index-CMTstbS_.js.gz new file mode 100644 index 00000000..2bf77db4 Binary files /dev/null and b/js/index-CMTstbS_.js.gz differ diff --git a/js/index-tDavH95b.js b/js/index-CPnIe1iT.js similarity index 90% rename from js/index-tDavH95b.js rename to js/index-CPnIe1iT.js index 8cd16ea2..12d02cc9 100644 --- a/js/index-tDavH95b.js +++ b/js/index-CPnIe1iT.js @@ -1 +1 @@ -import{l as n,b as e,m as s,p as i}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{x as r,X as c,c as p}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";function l(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!i(t)}const m=n({name:"AppShareLink",setup(){return{handleLinkClick:a=>{window.open(a.src)},avatarOptions:[{key:"ray-js-note",src:"https://note.youdao.com/s/ObWEe2BB",tooltip:"Ray的前端学习笔记",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-js-cover",src:"https://note.youdao.com/s/IC8xKPdB",tooltip:"Ray的面试题总结",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-template-doc",src:"https://xiaodaigua-ray.github.io/ray-template-doc/",tooltip:"Ray Template Doc",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-template-doc-out",src:"https://ray-template.yunkuangao.com/",tooltip:"Ray Template Doc (国内地址)",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"}]}},render(){let t;return e(p,null,l(t=this.avatarOptions.map(o=>e(r,{key:o.key},{trigger:()=>e(c,s({round:!0,src:o.icon,style:["cursor: pointer"]},{onClick:this.handleLinkClick.bind(this,o)},{objectFit:"cover",size:24}),null),default:()=>o.tooltip})))?t:{default:()=>[t]})}});export{m as A}; +import{l as n,b as e,m as s,p as i}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{x as r,X as c,c as p}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";function l(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!i(t)}const m=n({name:"AppShareLink",setup(){return{handleLinkClick:a=>{window.open(a.src)},avatarOptions:[{key:"ray-js-note",src:"https://note.youdao.com/s/ObWEe2BB",tooltip:"Ray的前端学习笔记",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-js-cover",src:"https://note.youdao.com/s/IC8xKPdB",tooltip:"Ray的面试题总结",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-template-doc",src:"https://xiaodaigua-ray.github.io/ray-template-doc/",tooltip:"Ray Template Doc",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-template-doc-out",src:"https://ray-template.yunkuangao.com/",tooltip:"Ray Template Doc (国内地址)",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"}]}},render(){let t;return e(p,null,l(t=this.avatarOptions.map(o=>e(r,{key:o.key},{trigger:()=>e(c,s({round:!0,src:o.icon,style:["cursor: pointer"]},{onClick:this.handleLinkClick.bind(this,o)},{objectFit:"cover",size:24}),null),default:()=>o.tooltip})))?t:{default:()=>[t]})}});export{m as A}; diff --git a/js/index-CPnIe1iT.js.gz b/js/index-CPnIe1iT.js.gz new file mode 100644 index 00000000..48ce62cd Binary files /dev/null and b/js/index-CPnIe1iT.js.gz differ diff --git a/js/index-Cd4Wyvw_.js b/js/index-Cd4Wyvw_.js deleted file mode 100644 index 55fb1133..00000000 --- a/js/index-Cd4Wyvw_.js +++ /dev/null @@ -1 +0,0 @@ -import{R as J}from"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import{e as M,g as X,M as K,G as g,f as _,h as Q,i as E,j as k,k as e1,r as l1,l as t1,R as O,m as i1,n as o1,o as c1,D as a1,p as n1,s as r1,q as s1,t as p1}from"./hooks-DKN08swi.js";import{d as d1}from"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{$ as h1,a0 as f1,a1 as u1,a2 as m1,a3 as v1,a4 as g1,a5 as S,a6 as _1,a7 as b1,q as M1,H as y1,L as w1,O as C1,a8 as Z1,a9 as z1,e as k1}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import{l as m,f as y,b as n,j as S1,q as V,k as V1,n as x1,I as H1,m as T}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{f as L1,u as R}from"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import{b,g as C,c as P1,w,m as $,s as x,f as H,i as A1}from"./utils-DMI3ftdH.js";import{g as B1,u as j1,l as E1,z as O1}from"./lodash-es@4.17.21-B-5kLwAl.js";import{e as T1,x as R1,k as $1}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import"./vue3-next-qrcode@2.0.10_typescript@5.6.3-BAi83mm5.js";import{C as N1}from"./clipboard@2.0.11-DheAgBlr.js";import{c as N}from"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const c of i)if(c.type==="childList")for(const a of c.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function t(i){const c={};return i.integrity&&(c.integrity=i.integrity),i.referrerPolicy&&(c.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?c.credentials="include":i.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(i){if(i.ep)return;i.ep=!0;const c=t(i);fetch(i.href,c)}})();const F1=m({name:"GlobalProvider",setup(e,{expose:l}){const{getPrimaryColorOverride:t,getAppTheme:o,getLocaleLanguage:i}=M(),c=y(()=>{const r=i.value;return X(r)}),a=()=>{const{message:r,notification:s,dialog:p,loadingBar:d}=b1(["message","dialog","notification","loadingBar"],{configProviderProps:y(()=>({theme:o.value?S:null}))});window.$dialog=p,window.$message=r,window.$loadingBar=d,window.$notification=s};return l(),{getPrimaryColorOverride:t,localePackage:c,getAppTheme:o,discreteApi:a}},render(){const{$slots:{default:e},discreteApi:l}=this,{getPrimaryColorOverride:t,getAppTheme:o,localePackage:i}=this;return n(_1,{themeOverrides:t,theme:o?S:null,locale:i.locale,dateLocale:i.dateLocal},{default:()=>[n(h1,null,{default:()=>[n(f1,K,{default:()=>[n(u1,null,{default:()=>[n(m1,null,{default:()=>[n(v1,null,{default:()=>[n(g1,null,null),e==null?void 0:e(),l()]})]})]})]})]})]})}}),D1=m({name:"AppStyleProvider",setup(e,{expose:l}){const{getAppTheme:t}=M(),{height:o,width:i}=L1(),c=()=>{const{appPrimaryColor:{primaryColor:s,primaryFadeColor:p}}=Q,{rayTemplateThemePrimaryColor:d,rayTemplateThemePrimaryFadeColor:h}=g,u=document.documentElement,v=C(_.appPiniaSettingStore,"localStorage");if(v){const z=B1(v,"primaryColorOverride.common.primaryColor",s),Y=P1(z,.38);u.style.setProperty(d,z),u.style.setProperty(h,Y||p)}},a=()=>{const s=document.getElementById(g.preLoadingAnimation);s&&b(s,{display:"none"})},r=s=>{const p=document.documentElement,{darkClassName:d,lightClassName:h}=g;s?w(p,h):w(p,d),$(p,s?d:h)};c(),a(),S1(()=>{r(t.value),b(document.documentElement,{[g.htmlHeight]:`${o.value}px`,[g.htmlWidth]:`${i.value}px`})}),l()},render(){return n("div",{class:"app-style-provider"},null)}}),I1=m({name:"LockScreen",setup(){const e=V("formInstRef"),l=V("inputInstRef"),{setLockAppScreen:t}=t1(),{updateSettingState:o}=E(),i=T1({lockCondition:k()}),c=()=>{var a;(a=e.value)==null||a.validate(r=>{r||(t(!0),o("lockScreenSwitch",!1),i.lockCondition=k())})};return V1(()=>{x1(()=>{var a;(a=l.value)==null||a.focus()})}),{...R1(i),lockScreen:c,formInstRef:e,inputInstRef:l}},render(){return n("div",{class:"app-lock-screen__content"},[n("div",{class:"app-lock-screen__input"},[n(e1,{avatarSize:52,style:"pointer-events: none;margin: 24px 0;",vertical:!0},null),n(M1,{ref:"formInstRef",model:this.lockCondition,rules:l1,labelPlacement:"left"},{default:()=>[n(y1,{path:"lockPassword"},{default:()=>[n(w1,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":e=>this.lockCondition.lockPassword=e,type:"password",placeholder:"请输入锁屏密码",clearable:!0,showPasswordOn:"click",minlength:6,maxlength:12,onKeydown:e=>{e.code==="Enter"&&this.lockScreen()}},null)]}),n(C1,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[H1("锁屏")]})]})])])}}),W1=m({name:"AppLockScreen",setup(){const{updateSettingState:e}=E(),{getLockScreenSwitch:l}=M();return{lockScreenSwitchRef:y({get:()=>l.value,set:o=>{e("lockScreenSwitch",o)}})}},render(){return n(O,{show:this.lockScreenSwitchRef,"onUpdate:show":e=>this.lockScreenSwitchRef=e,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:"dialog",title:"锁定屏幕"},{default:()=>[n(I1,null,null)]})}}),q1=m({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:e,getWatermarkConfig:l}=M();return{getWatermarkSwitch:e,getWatermarkConfig:l}},render(){const{getWatermarkConfig:e,getWatermarkSwitch:l}=this;return l?n(Z1,T(e,{fullscreen:!0}),null):null}}),U1=m({name:"GlobalSpin",props:{...z1},setup(){const e={opacitySpinning:"0.3"};return{spinValue:i1("globalSpinning"),overrides:e}},render(){return n(k1,T(this.$props,{show:this.spinValue,themeOverrides:this.overrides,style:"height: var(--html-height)"}),{...this.$slots})}});var G1={pkg:{dependencies:{"@logicflow/core":"2.0.6","@logicflow/extension":"2.0.10","@vueuse/core":"^11.2.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.1","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.13","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^8.13.0","@typescript-eslint/parser":"^8.13.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.1","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5","rollup-plugin-gzip":"4.0.1",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.6.3","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.1.10"},name:"ray-template",version:"5.0.6"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Y1=m({name:"AppVersionProvider",setup(){const{pkg:{version:e}}=G1,l=C(_.appVersionProvider,"localStorage"),t=$1(!1),{logout:o}=o1();return l!==null?e!==l&&(t.value=!0,x(_.appVersionProvider,e,"localStorage")):x(_.appVersionProvider,e,"localStorage"),{modalShow:t,logout:o}},render(){const{logout:e}=this;return n("div",{class:"app-style-provider"},[n(O,{show:this.modalShow,"onUpdate:show":l=>this.modalShow=l,closeOnEsc:!1,maskClosable:!1,preset:"dialog",closable:!1,title:"发现新版本",content:"当前版本已更新,点击确认加载新版本~",zIndex:999999999,dad:!0,positiveText:"确认",negativeText:"取消",onPositiveClick:e,onNegativeClick:()=>{this.modalShow=!1}},null)])}}),F=m({name:"App",render(){return n(F1,null,{default:()=>[n(Y1,null,null),n(W1,null,null),n(D1,null,null),n(q1,null,null),n(U1,null,{default:()=>n(J,null,null),description:()=>c1})]})}});if(typeof window<"u"){let e=function(){var l=document.body,t=document.getElementById("__svg__icons__dom__");t||(t=document.createElementNS("http://www.w3.org/2000/svg","svg"),t.style.position="absolute",t.style.width="0",t.style.height="0",t.id="__svg__icons__dom__",t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),t.innerHTML='',l.insertBefore(t,l.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const J1=()=>{const{localeLanguage:e}=C(_.appPiniaSettingStore,"localStorage",{defaultValue:{}}),l=a1[e]||n1;d1.locale(l)},L=(e,l)=>{const t=new N1(e,{text:()=>l});e.$$clipboard=t,e.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),e.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},X1=()=>({mounted:(e,{value:l})=>{L(e,l)},updated:(e,{value:l,oldValue:t})=>{var o;l!==t&&((o=e.$$clipboard)==null||o.destroy(),L(e,l))},beforeUnmount:e=>{var l;e.$$clipboard&&((l=e.$$clipboard)==null||l.destroy(),e.$$clipboard=null)}}),K1=Object.freeze(Object.defineProperty({__proto__:null,default:X1},Symbol.toStringTag,{value:"Module"})),Q1=()=>{let e,l;return{beforeMount:(t,{value:o})=>{const{func:i,trigger:c="click",wait:a=500,options:r}=o;if(typeof i!="function")throw new TypeError("debounce directive value must be a function");e=j1(i,a,Object.assign({},r)),l=R(t,c,e)},beforeUnmount:(t,{value:o})=>{e&&(e.cancel(),l==null||l()),e=null}}},e2=Object.freeze(Object.defineProperty({__proto__:null,default:Q1},Symbol.toStringTag,{value:"Module"})),P=(e,l)=>{if(e){const t="ray-template__directive--disabled";l?(e.setAttribute("disabled","disabled"),$(e,t)):(e.removeAttribute("disabled"),w(e,t)),e==null||e.setAttribute("disabled",l?"disabled":"")}},l2=()=>({mounted:(e,{value:l})=>{P(e,l)},updated:(e,{value:l,oldValue:t})=>{l!==t&&P(e,l)}}),t2=Object.freeze(Object.defineProperty({__proto__:null,default:l2},Symbol.toStringTag,{value:"Module"})),A=(e,l)=>{const{line:t=1,type:o="block",width:i,popoverText:c}=l;if(i==null){console.error(`[v-ellipsis]: Expected width is string or number, but got typeof ${i}!`);return}c&&e.textContent&&e.setAttribute("title",e.textContent),o==="line"?b(e,{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":t,overflow:"hidden",width:H(i)}):b(e,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:H(i)})},i2=()=>({mounted:(e,{value:l})=>{A(e,l)},updated:(e,{value:l})=>{A(e,l)}}),o2=Object.freeze(Object.defineProperty({__proto__:null,default:i2},Symbol.toStringTag,{value:"Module"})),f={vRippleAnimationEnter:"v-ripple__animation--enter",vRippleAnimationVisible:"v-ripple__animation--visible",vRippleAnimationIn:"v-ripple__animation--in",vRippleAnimationOut:"v-ripple__animation--out",vRippleAnimation:"v-ripple__animation"},c2="v-ripple__container";function B(e,l){e.style.transform=l}function D(e){const l={},t=e.currentTarget;!(t!=null&&t.__d_ripple__)||t.__d_ripple__.touched||(l.center=t.__d_ripple__.centered,t.__d_ripple__.class&&(l.class=t.__d_ripple__.class),Z.show(e,t,l))}function I(e){const l=e.currentTarget;l!=null&&l.__d_ripple__&&(setTimeout(()=>{l.__d_ripple__&&(l.__d_ripple__.touched=!1)}),Z.hide(l))}const a2=(e,l,t={})=>{var u;const o=l.getBoundingClientRect(),i=e.clientX-o.left,c=e.clientY-o.top;let a=0,r=.3;(u=l.__d_ripple__)!=null&&u.circle?(r=.15,a=l.clientWidth/2,a=t.center?a:a+Math.sqrt((i-a)**2+(c-a)**2)/4):a=Math.sqrt(l.clientWidth**2+l.clientHeight**2)/2;const s=`${(l.clientWidth-a*2)/2}px`,p=`${(l.clientHeight-a*2)/2}px`,d=t.center?s:`${i-a}px`,h=t.center?p:`${c-a}px`;return{radius:a,scale:r,x:d,y:h,centerX:s,centerY:p}},Z={show(e,l,t={}){var v;if(!((v=l==null?void 0:l.__d_ripple__)!=null&&v.enabled))return;const o=document.createElement("span"),i=document.createElement("span");o.appendChild(i),o.className=c2,t.class&&(o.className+=` ${t.class}`);const{radius:c,scale:a,x:r,y:s,centerX:p,centerY:d}=a2(e,l,t),h=`${c*2}px`;i.className=f.vRippleAnimation,i.style.width=h,i.style.height=h,l.appendChild(o);const u=window.getComputedStyle(l);u&&u.position==="static"&&(l.style.position="relative",l.dataset.previousPosition="static"),i.classList.add(f.vRippleAnimationEnter),i.classList.add(f.vRippleAnimationVisible),B(i,`translate(${r}, ${s}) scale3d(${a},${a},${a})`),i.dataset.activated=String(performance.now()),setTimeout(()=>{i.classList.remove(f.vRippleAnimationEnter),i.classList.add(f.vRippleAnimationIn),B(i,`translate(${p}, ${d}) scale3d(1,1,1)`)},0)},hide(e){var c;if(!((c=e==null?void 0:e.__d_ripple__)!=null&&c.enabled))return;const l=e.getElementsByClassName(f.vRippleAnimation);if(l.length===0)return;const t=l[l.length-1];if(t.dataset.isHiding)return;t.dataset.isHiding="true";const o=performance.now()-Number(t.dataset.activated),i=Math.max(250-o,0);setTimeout(()=>{t.classList.remove(f.vRippleAnimationIn),t.classList.add(f.vRippleAnimationOut),setTimeout(()=>{var r;e.getElementsByClassName(f.vRippleAnimation).length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((r=t.parentNode)==null?void 0:r.parentNode)===e&&e.removeChild(t.parentNode)},300)},i)}};function W(e){return typeof e>"u"||!!e}function q(e){e.removeEventListener("pointerdown",D),e.removeEventListener("pointerup",I)}function j(e,l,t){const{value:o,modifiers:i}=l,c=W(o);c||Z.hide(e),e.__d_ripple__=e.__d_ripple__??{},e.__d_ripple__.enabled=c,e.__d_ripple__.centered=i.center,e.__d_ripple__.circle=i.circle,A1(o,"Object")&&o.class&&(e.__d_ripple__.class=o.class),c&&!t?(e.addEventListener("pointerdown",D),e.addEventListener("pointerup",I)):!c&&t&&q(e)}const n2=()=>({mounted:(e,l)=>{j(e,l,!1)},beforeUnmount:e=>{delete e.__d_ripple__,q(e)},updated:(e,l)=>{if(l.value===l.oldValue)return;const t=W(l.oldValue);j(e,l,t)}}),r2=Object.freeze(Object.defineProperty({__proto__:null,default:n2},Symbol.toStringTag,{value:"Module"})),s2=()=>{let e;return{beforeMount:(l,{value:t})=>{const{func:o,trigger:i="click",wait:c=500,options:a}=t;if(typeof o!="function")throw new TypeError("throttle directive value must be a function");e=E1(o,c,Object.assign({},a)),R(l,i,e)},beforeUnmount:()=>{e&&e.cancel(),e=null}}},p2=Object.freeze(Object.defineProperty({__proto__:null,default:s2},Symbol.toStringTag,{value:"Module"})),d2=e=>Object.keys(e).reduce((t,o)=>{var c;const i=(c=e[o])==null?void 0:c.default;if(typeof i=="function")return t[o]=i,t;throw new TypeError(`directiveModules: ${o} is not function`)},{}),h2=e=>{const t=d2(Object.assign({"/src/directives/modules/copy/index.ts":K1,"/src/directives/modules/debounce/index.ts":e2,"/src/directives/modules/disabled/index.ts":t2,"/src/directives/modules/ellipsis/index.ts":o2,"/src/directives/modules/ripple/index.ts":r2,"/src/directives/modules/throttle/index.ts":p2})),o=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),i=/^([^-]+-)*[^-]+$/;O1(t,(c,a)=>{var s;const r=(s=a.match(o))==null?void 0:s[0];typeof r=="string"&&i.test(r)?e.directive(r,c()):console.error(`[setupDirectives] ${r} is not a valid directive name`)})},U=async()=>{},G=async e=>{r1(e),await s1(e),p1(e),J1(),h2(e)},f2=async()=>{const e=N(F);await G(e),e.mount("#app"),await U()},u2=async()=>{let e;window.__WUJIE_MOUNT=async()=>{e=N(F),await G(e),e.mount("#app"),await U()},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?u2():f2(); diff --git a/js/index-Cd4Wyvw_.js.gz b/js/index-Cd4Wyvw_.js.gz deleted file mode 100644 index 7d09c7fa..00000000 Binary files a/js/index-Cd4Wyvw_.js.gz and /dev/null differ diff --git a/js/index-CezQKqVe.js.gz b/js/index-CezQKqVe.js.gz deleted file mode 100644 index d8163a97..00000000 Binary files a/js/index-CezQKqVe.js.gz and /dev/null differ diff --git a/js/index-Y4-cSx_f.js b/js/index-Cq14wQ9z.js similarity index 64% rename from js/index-Y4-cSx_f.js rename to js/index-Cq14wQ9z.js index c85931d8..4e1215da 100644 --- a/js/index-Y4-cSx_f.js +++ b/js/index-Cq14wQ9z.js @@ -1 +1 @@ -import{l as r,b as u,I as t}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{N as e,c as o}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const y=r({name:"RouterDemoDetail",render(){return u(o,null,{default:()=>[u(e,{title:this.$route.query.name||"hello"},{default:()=>[t("你好 "),this.$route.query.name]}),u(e,{title:"平层路由详情页面"},{default:()=>[t("我是平层路由详情页面")]}),u(e,{title:"TIP"},{default:()=>[u("h2",null,[t("1. 可以点击面包屑或者菜单返回到主页面")]),u("h2",null,[t("2. 如果这个页面需要配置多个详情页面,只需将该路由所在的 children 中,将所需页面配置为 sameLevel 即可。")])]})]})}});export{y as default}; +import{l as r,b as u,I as t}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{N as e,c as o}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const y=r({name:"RouterDemoDetail",render(){return u(o,null,{default:()=>[u(e,{title:this.$route.query.name||"hello"},{default:()=>[t("你好 "),this.$route.query.name]}),u(e,{title:"平层路由详情页面"},{default:()=>[t("我是平层路由详情页面")]}),u(e,{title:"TIP"},{default:()=>[u("h2",null,[t("1. 可以点击面包屑或者菜单返回到主页面")]),u("h2",null,[t("2. 如果这个页面需要配置多个详情页面,只需将该路由所在的 children 中,将所需页面配置为 sameLevel 即可。")])]})]})}});export{y as default}; diff --git a/js/index-Cq14wQ9z.js.gz b/js/index-Cq14wQ9z.js.gz new file mode 100644 index 00000000..3a6515d4 Binary files /dev/null and b/js/index-Cq14wQ9z.js.gz differ diff --git a/js/index-D-nvKMgM.js.gz b/js/index-D-nvKMgM.js.gz deleted file mode 100644 index a746d7e2..00000000 Binary files a/js/index-D-nvKMgM.js.gz and /dev/null differ diff --git a/js/index-lL95gCHJ.js b/js/index-D4yh857T.js similarity index 59% rename from js/index-lL95gCHJ.js rename to js/index-D4yh857T.js index 1ca16a6b..ea8006d3 100644 --- a/js/index-lL95gCHJ.js +++ b/js/index-D4yh857T.js @@ -1 +1 @@ -import"./hooks-DKN08swi.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{s as n,g as l,t as c,B as f}from"./utils-DMI3ftdH.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{c as i,ah as u,ai as a,L as m,O as o,N as d}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import{l as g,b as e,I as r}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{k as p}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const Be=g({name:"CacheDemo",setup(){const t=p("Ray"),s=p("ray:");return{nameValue:t,currentPrefix:s}},render(){return e(d,{title:"cache 工具包示例"},{default:()=>e(i,{vertical:!0},{default:()=>[e("h3",null,[r("点击 setStorage 按钮,设置缓存示例")]),e(u,null,{default:()=>[e(a,null,{default:()=>[r("设置缓存内容")]}),e(m,{value:this.nameValue,"onUpdate:value":t=>this.nameValue=t,placeholder:"请输入姓名"},null)]}),e(u,null,{default:()=>[e(a,null,{default:()=>[r("设置前缀")]}),e(m,{value:this.currentPrefix,"onUpdate:value":t=>this.currentPrefix=t,placeholder:"请输入前缀"},null)]})]}),action:()=>e(i,null,{default:()=>[e(o,{onClick:()=>{n("name",this.nameValue,"sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("设置成功")}},{default:()=>[r("setStorage")]}),e(o,{onClick:()=>{const t=l("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`获取到的姓名为:${t}`)}},{default:()=>[r("getStorage")]}),e(o,{onClick:()=>{c("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("删除成功")}},{default:()=>[r("removeStorage")]}),e(o,{onClick:()=>{const t=f("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`是否存在:${t}`)}},{default:()=>[r("hasStorage")]})]})})}});export{Be as default}; +import"./hooks-yKQIzKXx.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{s as n,g as l,t as c,B as f}from"./utils-DJWgFDlo.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{c as i,ai as u,aj as a,L as m,O as o,N as d}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import{l as g,b as e,I as r}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{k as p}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const he=g({name:"CacheDemo",setup(){const t=p("Ray"),s=p("ray:");return{nameValue:t,currentPrefix:s}},render(){return e(d,{title:"cache 工具包示例"},{default:()=>e(i,{vertical:!0},{default:()=>[e("h3",null,[r("点击 setStorage 按钮,设置缓存示例")]),e(u,null,{default:()=>[e(a,null,{default:()=>[r("设置缓存内容")]}),e(m,{value:this.nameValue,"onUpdate:value":t=>this.nameValue=t,placeholder:"请输入姓名"},null)]}),e(u,null,{default:()=>[e(a,null,{default:()=>[r("设置前缀")]}),e(m,{value:this.currentPrefix,"onUpdate:value":t=>this.currentPrefix=t,placeholder:"请输入前缀"},null)]})]}),action:()=>e(i,null,{default:()=>[e(o,{onClick:()=>{n("name",this.nameValue,"sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("设置成功")}},{default:()=>[r("setStorage")]}),e(o,{onClick:()=>{const t=l("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`获取到的姓名为:${t}`)}},{default:()=>[r("getStorage")]}),e(o,{onClick:()=>{c("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("删除成功")}},{default:()=>[r("removeStorage")]}),e(o,{onClick:()=>{const t=f("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`是否存在:${t}`)}},{default:()=>[r("hasStorage")]})]})})}});export{he as default}; diff --git a/js/index-D4yh857T.js.gz b/js/index-D4yh857T.js.gz new file mode 100644 index 00000000..e58d806a Binary files /dev/null and b/js/index-D4yh857T.js.gz differ diff --git a/js/index-D5IorQkc.js.gz b/js/index-D5IorQkc.js.gz deleted file mode 100644 index 8ba596f0..00000000 Binary files a/js/index-D5IorQkc.js.gz and /dev/null differ diff --git a/js/index-CJSqT0Ur.js b/js/index-DHRMhslY.js similarity index 56% rename from js/index-CJSqT0Ur.js rename to js/index-DHRMhslY.js index 421b4bfe..c655bd3f 100644 --- a/js/index-CJSqT0Ur.js +++ b/js/index-DHRMhslY.js @@ -1 +1 @@ -import{T as p}from"./hooks-DKN08swi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import{u as a}from"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{O as n,c as e}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import{l as u,b as o,I as s}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{k as l}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./utils-DMI3ftdH.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const ft=u({name:"RouterDemoHome",setup(){const r=a(),i=l([{title:"姓名",key:"name"},{title:"地址",key:"address"},{title:"联系方式",key:"phone"},{title:"操作",key:"",render:t=>o(e,{align:"center"},{default:()=>[o(n,{type:"info",text:!0,size:"tiny",onClick:()=>{r.push({path:"/router-demo/router-demo-detail",query:{name:t.name}})}},{default:()=>[s("详情")]})]})}]),m=[];for(let t=0;t<10;t++)m.push({name:"张三"+t,address:"New York No. 1 Lake Park",phone:"010-121212",key:t});return{dataSource:m,columns:i}},render(){return o(e,null,{default:()=>[o(p,{columns:this.columns,"onUpdate:columns":r=>this.columns=r,data:this.dataSource},null)]})}});export{ft as default}; +import{Q as p}from"./hooks-yKQIzKXx.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import{u as a}from"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{O as n,c as e}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import{l as u,b as o,I as s}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{k as l}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./utils-DJWgFDlo.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const ft=u({name:"RouterDemoHome",setup(){const r=a(),i=l([{title:"姓名",key:"name"},{title:"地址",key:"address"},{title:"联系方式",key:"phone"},{title:"操作",key:"",render:t=>o(e,{align:"center"},{default:()=>[o(n,{type:"info",text:!0,size:"tiny",onClick:()=>{r.push({path:"/router-demo/router-demo-detail",query:{name:t.name}})}},{default:()=>[s("详情")]})]})}]),m=[];for(let t=0;t<10;t++)m.push({name:"张三"+t,address:"New York No. 1 Lake Park",phone:"010-121212",key:t});return{dataSource:m,columns:i}},render(){return o(e,null,{default:()=>[o(p,{columns:this.columns,"onUpdate:columns":r=>this.columns=r,data:this.dataSource},null)]})}});export{ft as default}; diff --git a/js/index-DHRMhslY.js.gz b/js/index-DHRMhslY.js.gz new file mode 100644 index 00000000..35101473 Binary files /dev/null and b/js/index-DHRMhslY.js.gz differ diff --git a/js/index-DHoMLNRa.js.gz b/js/index-DHoMLNRa.js.gz deleted file mode 100644 index e5aa0e7f..00000000 Binary files a/js/index-DHoMLNRa.js.gz and /dev/null differ diff --git a/js/index-cD4vHjL6.js b/js/index-DLHH4nqK.js similarity index 56% rename from js/index-cD4vHjL6.js rename to js/index-DLHH4nqK.js index ff5d7641..d5ca8af8 100644 --- a/js/index-cD4vHjL6.js +++ b/js/index-DLHH4nqK.js @@ -1 +1 @@ -import{O as r}from"./hooks-DKN08swi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{l as i,b as t}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{N as o,c as m}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./utils-DMI3ftdH.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const ut=i({name:"IframeDemo",setup(){return{}},render(){return t(m,{vertical:!0,size:[20,20]},{default:()=>[t(o,{title:"naive ui(延迟加载)"},{default:()=>[t(r,{src:"https://www.naiveui.com/zh-CN/dark",height:"300",allow:"fullscreen"},null)]}),t(o,{title:"vue-hooks-plus(立即加载)"},{default:()=>[t(r,{src:"https://inhiblabcore.github.io/docs/hooks/",height:"300",lazy:!1},null)]})]})}});export{ut as default}; +import{N as r}from"./hooks-yKQIzKXx.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{l as i,b as t}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{N as o,c as m}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./utils-DJWgFDlo.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const ut=i({name:"IframeDemo",setup(){return{}},render(){return t(m,{vertical:!0,size:[20,20]},{default:()=>[t(o,{title:"naive ui(延迟加载)"},{default:()=>[t(r,{src:"https://www.naiveui.com/zh-CN/dark",height:"300",allow:"fullscreen"},null)]}),t(o,{title:"vue-hooks-plus(立即加载)"},{default:()=>[t(r,{src:"https://inhiblabcore.github.io/docs/hooks/",height:"300",lazy:!1},null)]})]})}});export{ut as default}; diff --git a/js/index-DLHH4nqK.js.gz b/js/index-DLHH4nqK.js.gz new file mode 100644 index 00000000..4caa6464 Binary files /dev/null and b/js/index-DLHH4nqK.js.gz differ diff --git a/js/index-C9_pwX3h.js b/js/index-DLfdzB8P.js similarity index 83% rename from js/index-C9_pwX3h.js rename to js/index-DLfdzB8P.js index b7fc6eef..87f8a421 100644 --- a/js/index-C9_pwX3h.js +++ b/js/index-DLfdzB8P.js @@ -1 +1 @@ -import{l as j,t as x,b as t,I as C,m as O,p as D}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{k as y}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import{N as o,ab as a,ac as p,v as N}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";var _={pkg:{dependencies:{"@logicflow/core":"2.0.6","@logicflow/extension":"2.0.10","@vueuse/core":"^11.2.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.1","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.13","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^8.13.0","@typescript-eslint/parser":"^8.13.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.1","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5","rollup-plugin-gzip":"4.0.1",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.6.3","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.1.10"},name:"ray-template",version:"5.0.6"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function r(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!D(i)}const Q=j({name:"RelyAbout",setup(){const{pkg:i}=_,{dependencies:n,devDependencies:s,name:e,version:g}=i,f=[{title:"依赖名称",key:"name"},{title:"依赖版本",key:"relyVersion"},{title:"依赖地址",key:"relyAddress"}],u=y([]),d=y([]),b=[{name:"项目名称",label:e},{name:"版本信息",label:g},{name:"项目地址",label:"GitHub",url:"https://github.com/XiaoDaiGua-Ray/ray-template"}],h=()=>{const l=c=>Object.keys(c).reduce((m,v)=>(m.push({name:v,relyVersion:c[v],relyAddress:""}),m),[]);u.value=l(n),d.value=l(s)},k=l=>{l.url&&window.open(l.url)};return x(()=>{h()}),{columns:f,dependenciesOptions:u,devDependenciesOptions:d,templateOptions:b,handleTagClick:k}},render(){let i,n,s;return t("div",{class:"rely-about"},[t(o,{title:"关于项目"},{default:()=>[C("ray template 是一个基于: tsx pinia vue3.x vite sass 的中后台解决方案. 项目干净与轻巧, 已经集成了很多项目中可能需要的搬砖工具可以让你快速起一个相关项目, 并且不需要剔除大量无用页面与组件.")]}),t(o,{title:"项目信息"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(i=this.templateOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[t(N,O({bordered:!1,type:"info"},{onClick:this.handleTagClick.bind(this,e)},{style:[e.url?"cursor: pointer":""]}),{default:()=>[e.label]})]})))?i:{default:()=>[i]})]}),t(o,{title:"生产依赖"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(n=this.dependenciesOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?n:{default:()=>[n]})]}),t(o,{title:"开发依赖"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(s=this.devDependenciesOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?s:{default:()=>[s]})]})])}});export{Q as default}; +import{l as j,t as x,b as t,I as C,m as O,p as D}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{k as y}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{N as o,ac as a,ad as p,v as N}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";var _={pkg:{dependencies:{"@logicflow/core":"2.0.6","@logicflow/extension":"2.0.10","@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^8.13.0","@typescript-eslint/parser":"^8.13.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.1","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5","rollup-plugin-gzip":"4.0.1",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.6.3","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.1.10"},name:"ray-template",version:"5.0.5"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function r(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!D(i)}const Q=j({name:"RelyAbout",setup(){const{pkg:i}=_,{dependencies:n,devDependencies:s,name:e,version:g}=i,f=[{title:"依赖名称",key:"name"},{title:"依赖版本",key:"relyVersion"},{title:"依赖地址",key:"relyAddress"}],u=y([]),d=y([]),b=[{name:"项目名称",label:e},{name:"版本信息",label:g},{name:"项目地址",label:"GitHub",url:"https://github.com/XiaoDaiGua-Ray/ray-template"}],h=()=>{const l=c=>Object.keys(c).reduce((m,v)=>(m.push({name:v,relyVersion:c[v],relyAddress:""}),m),[]);u.value=l(n),d.value=l(s)},k=l=>{l.url&&window.open(l.url)};return x(()=>{h()}),{columns:f,dependenciesOptions:u,devDependenciesOptions:d,templateOptions:b,handleTagClick:k}},render(){let i,n,s;return t("div",{class:"rely-about"},[t(o,{title:"关于项目"},{default:()=>[C("ray template 是一个基于: tsx pinia vue3.x vite sass 的中后台解决方案. 项目干净与轻巧, 已经集成了很多项目中可能需要的搬砖工具可以让你快速起一个相关项目, 并且不需要剔除大量无用页面与组件.")]}),t(o,{title:"项目信息"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(i=this.templateOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[t(N,O({bordered:!1,type:"info"},{onClick:this.handleTagClick.bind(this,e)},{style:[e.url?"cursor: pointer":""]}),{default:()=>[e.label]})]})))?i:{default:()=>[i]})]}),t(o,{title:"生产依赖"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(n=this.dependenciesOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?n:{default:()=>[n]})]}),t(o,{title:"开发依赖"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(s=this.devDependenciesOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?s:{default:()=>[s]})]})])}});export{Q as default}; diff --git a/js/index-DLfdzB8P.js.gz b/js/index-DLfdzB8P.js.gz new file mode 100644 index 00000000..6376bea4 Binary files /dev/null and b/js/index-DLfdzB8P.js.gz differ diff --git a/js/index-DRCakPMi.js.gz b/js/index-DRCakPMi.js.gz deleted file mode 100644 index c070663e..00000000 Binary files a/js/index-DRCakPMi.js.gz and /dev/null differ diff --git a/js/index-D_MmtiMa.js.gz b/js/index-D_MmtiMa.js.gz deleted file mode 100644 index 7ed42551..00000000 Binary files a/js/index-D_MmtiMa.js.gz and /dev/null differ diff --git a/js/index-DiYMknRE.js.gz b/js/index-DiYMknRE.js.gz deleted file mode 100644 index b1ec5fed..00000000 Binary files a/js/index-DiYMknRE.js.gz and /dev/null differ diff --git a/js/index-D_MmtiMa.js b/js/index-Dma-XXes.js similarity index 63% rename from js/index-D_MmtiMa.js rename to js/index-Dma-XXes.js index 97d90137..3e29d262 100644 --- a/js/index-D_MmtiMa.js +++ b/js/index-Dma-XXes.js @@ -1 +1 @@ -import{v as f,x as h}from"./hooks-DKN08swi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{a as v,af as r,L as l,J as F,aj as b,ak as y,al as s,c as N,O as m}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import{l as k,b as t,I as i}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{k as d}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./utils-DMI3ftdH.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const Bt=k({name:"RFormDemo",setup(){const[u,{getFormInstance:p,validate:o,restoreValidation:n,formModel:a,formRules:e}]=f({name:null,age:null,gender:null,date:null,remark:null},{name:{required:!0,message:"请输入姓名",trigger:["blur","change"]},date:{required:!0,message:"请选择日期",trigger:["blur","change"],type:"number"},gender:{required:!0,message:"请选择性别",trigger:"change"},age:{required:!0,message:"请输入年龄",trigger:["blur","change"],type:"number"}}),c=d(e()),g=d(a());return{register:u,rules:c,condition:g,restoreValidation:n,formModel:a,validate:o}},render(){const{rules:u}=this,{register:p,restoreValidation:o,formModel:n,validate:a}=this;return t(h,{onRegister:p,rules:u,model:this.condition},{default:()=>[t(v,{cols:24,xGap:24},{default:()=>[t(r,{label:"姓名",path:"name",span:12},{default:()=>[t(l,{value:this.condition.name,"onUpdate:value":e=>this.condition.name=e},null)]}),t(r,{label:"年龄",path:"age",span:12},{default:()=>[t(F,{value:this.condition.age,"onUpdate:value":e=>this.condition.age=e,showButton:!1,style:"width: 100%"},null)]}),t(r,{label:"出生日期",path:"date",span:12},{default:()=>[t(b,{value:this.condition.date,"onUpdate:value":e=>this.condition.date=e,style:"width: 100%"},null)]}),t(r,{label:"性别",path:"gender",span:12},{default:()=>[t(y,{value:this.condition.gender,"onUpdate:value":e=>this.condition.gender=e},{default:()=>[t(s,{value:"girl"},{default:()=>[i("女")]}),t(s,{value:"man"},{default:()=>[i("男")]})]})]}),t(r,{label:"备注信息",span:24},{default:()=>[t(l,{type:"textarea",value:this.condition.remark,"onUpdate:value":e=>this.condition.remark=e},null)]}),t(r,{span:24},{default:()=>[t(N,{justify:"flex-end",style:"width: 100%"},{default:()=>[t(m,{type:"info",onClick:()=>{this.condition=n(),o()}},{default:()=>[i("重置表单为初始状态")]}),t(m,{type:"warning",onClick:o.bind(this)},{default:()=>[i("移除校验状态")]}),t(m,{type:"primary",onClick:()=>a()},{default:()=>[i("校验")]})]})]})]})]})}});export{Bt as default}; +import{K as f,B as h}from"./hooks-yKQIzKXx.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{a as v,ag as r,L as l,J as F,ak as b,al as y,am as s,c as N,O as m}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import{l as k,b as t,I as i}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{k as d}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./utils-DJWgFDlo.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const xt=k({name:"RFormDemo",setup(){const[u,{getFormInstance:p,validate:o,restoreValidation:n,formModel:a,formRules:e}]=f({name:null,age:null,gender:null,date:null,remark:null},{name:{required:!0,message:"请输入姓名",trigger:["blur","change"]},date:{required:!0,message:"请选择日期",trigger:["blur","change"],type:"number"},gender:{required:!0,message:"请选择性别",trigger:"change"},age:{required:!0,message:"请输入年龄",trigger:["blur","change"],type:"number"}}),g=d(e()),c=d(a());return{register:u,rules:g,condition:c,restoreValidation:n,formModel:a,validate:o}},render(){const{rules:u}=this,{register:p,restoreValidation:o,formModel:n,validate:a}=this;return t(h,{onRegister:p,rules:u,model:this.condition},{default:()=>[t(v,{cols:24,xGap:24},{default:()=>[t(r,{label:"姓名",path:"name",span:12},{default:()=>[t(l,{value:this.condition.name,"onUpdate:value":e=>this.condition.name=e},null)]}),t(r,{label:"年龄",path:"age",span:12},{default:()=>[t(F,{value:this.condition.age,"onUpdate:value":e=>this.condition.age=e,showButton:!1,style:"width: 100%"},null)]}),t(r,{label:"出生日期",path:"date",span:12},{default:()=>[t(b,{value:this.condition.date,"onUpdate:value":e=>this.condition.date=e,style:"width: 100%"},null)]}),t(r,{label:"性别",path:"gender",span:12},{default:()=>[t(y,{value:this.condition.gender,"onUpdate:value":e=>this.condition.gender=e},{default:()=>[t(s,{value:"girl"},{default:()=>[i("女")]}),t(s,{value:"man"},{default:()=>[i("男")]})]})]}),t(r,{label:"备注信息",span:24},{default:()=>[t(l,{type:"textarea",value:this.condition.remark,"onUpdate:value":e=>this.condition.remark=e},null)]}),t(r,{span:24},{default:()=>[t(N,{justify:"flex-end",style:"width: 100%"},{default:()=>[t(m,{type:"info",onClick:()=>{this.condition=n(),o()}},{default:()=>[i("重置表单为初始状态")]}),t(m,{type:"warning",onClick:o.bind(this)},{default:()=>[i("移除校验状态")]}),t(m,{type:"primary",onClick:()=>a()},{default:()=>[i("校验")]})]})]})]})]})}});export{xt as default}; diff --git a/js/index-Dma-XXes.js.gz b/js/index-Dma-XXes.js.gz new file mode 100644 index 00000000..dafbbe4f Binary files /dev/null and b/js/index-Dma-XXes.js.gz differ diff --git a/js/index-DHoMLNRa.js b/js/index-DsPYwXwT.js similarity index 79% rename from js/index-DHoMLNRa.js rename to js/index-DsPYwXwT.js index 83852a6a..5b6fead0 100644 --- a/js/index-DHoMLNRa.js +++ b/js/index-DsPYwXwT.js @@ -1 +1 @@ -import{K as r,N as A}from"./hooks-DKN08swi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{N as u,c as h,O as i,I as C}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import{l as O,b as t,I as e}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{k as g,e as L,x as V}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./utils-DMI3ftdH.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const Rt=O({name:"REchart",setup(){const[n,{getChartInstance:f,dispose:l,render:d,isDisposed:p}]=A(),[m,{getChartInstance:o,dispose:F,render:y,isDisposed:B}]=A(),b=g(!1),E=g(!1),s=L({loading:!1,loading1:!1}),D={legend:{},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"日期",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}},{name:"数量",data:[12,220,250,180,20,10,190],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},k={title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},c=g({tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["Email","Union Ads","Video Ads","Direct","Search Engine"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Email",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[150,232,201,154,190,330,410]},{name:"Direct",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[320,332,301,334,390,330,320]},{name:"Search Engine",type:"line",stack:"Total",label:{show:!0,position:"top"},areaStyle:{},emphasis:{focus:"series"},data:[820,932,901,934,1290,1330,1320]}]}),v=a=>{s.loading=a},w=a=>{E.value=a},S=()=>{p()?d():window.$message.warning("图表已渲染~")},x=()=>{l()},T=()=>{s.loading1=!0;const a=()=>Math.floor((Math.random()+1)*100);setTimeout(()=>{c.value.series[0].data=new Array(7).fill(0).map(()=>a()),c.value.series[1].data=new Array(7).fill(0).map(()=>a()),s.loading1=!1},1e3)};return{baseOptions:D,chartLoading:b,handleLoadingShow:v,chartAria:E,handleAriaShow:w,basePieOptions:k,baseLineOptions:c,...V(s),mountChart:S,unmountChart:x,updateChartOptions:T,register:n,register2:m,dispose2:F,render2:y,isDisposed2:B}},render(){const{register:n,register2:f,dispose2:l,render2:d,isDisposed2:p,loading1:m}=this;return t("div",{class:"echart"},[t(u,{title:"chart 组件"},{default:()=>[t("h3",null,[e("该组件基于 ECharts, Vueuse 封装。默认做了最佳的优化封装实践。")]),t("h3",null,[e("开箱即用的优化策略:节流更新图表、异步渲染、自动销毁、贴花、加载、主题、视窗区域渲染、自动更新尺寸等高级特性。")])]}),t(u,{title:"预设 card 风格图表"},{default:()=>[t(h,{style:["padding: 18px 0"]},{default:()=>[t(i,{onClick:this.mountChart.bind(this)},{default:()=>[e("渲染")]}),t(i,{onClick:this.unmountChart.bind(this)},{default:()=>[e("卸载")]}),t(i,{onClick:this.updateChartOptions.bind(this)},{default:()=>[e("更新配置项")]}),t(i,{onClick:()=>{this.loading1=!this.loading1}},{default:()=>[`${this.loading1?"关闭":"开启"}`,e("加载动画")]})]}),t("div",{class:"chart--container"},[t(r,{onRegister:n,title:"周销售量",autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria,preset:"card",loading:m},null)])]}),t(u,{title:"不跟随主题切换的暗色主题可视化图,并且手动指定原始主题色"},{default:()=>[t(h,{vertical:!0},{default:()=>[t(h,null,{default:()=>[t(i,{onClick:()=>{p()?d():window.$message.warning("不可以重复渲染图表~")}},{default:()=>[e("渲染")]}),t(i,{onClick:l.bind(this)},{default:()=>[e("卸载")]})]}),t("div",{class:"chart--container"},[t(r,{onRegister:f,autoChangeTheme:!1,theme:"default",options:this.baseOptions},null)])]})]}),t(u,{title:"加载动画"},{default:()=>[t(C,{value:this.chartLoading,"onUpdate:value":o=>this.chartLoading=o,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏加载动画",unchecked:()=>"显示加载动画"}),t("div",{class:"chart--container"},[t(r,{loading:this.loading,options:this.baseOptions},null)])]}),t(u,{title:"贴画可视化图"},{default:()=>[t(C,{value:this.chartAria,"onUpdate:value":o=>this.chartAria=o,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏贴花",unchecked:()=>"显示贴花"}),t("div",{class:"chart--container"},[t(r,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{Rt as default}; +import{I as r,J as A}from"./hooks-yKQIzKXx.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{N as u,c as h,O as i,I as C}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import{l as O,b as t,I as e}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{k as g,e as L,x as V}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./utils-DJWgFDlo.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const Nt=O({name:"REchart",setup(){const[n,{getChartInstance:f,dispose:l,render:d,isDisposed:p}]=A(),[m,{getChartInstance:o,dispose:F,render:y,isDisposed:B}]=A(),b=g(!1),E=g(!1),s=L({loading:!1,loading1:!1}),D={legend:{},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"日期",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}},{name:"数量",data:[12,220,250,180,20,10,190],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},k={title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},c=g({tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["Email","Union Ads","Video Ads","Direct","Search Engine"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Email",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[150,232,201,154,190,330,410]},{name:"Direct",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[320,332,301,334,390,330,320]},{name:"Search Engine",type:"line",stack:"Total",label:{show:!0,position:"top"},areaStyle:{},emphasis:{focus:"series"},data:[820,932,901,934,1290,1330,1320]}]}),v=a=>{s.loading=a},w=a=>{E.value=a},S=()=>{p()?d():window.$message.warning("图表已渲染~")},x=()=>{l()},T=()=>{s.loading1=!0;const a=()=>Math.floor((Math.random()+1)*100);setTimeout(()=>{c.value.series[0].data=new Array(7).fill(0).map(()=>a()),c.value.series[1].data=new Array(7).fill(0).map(()=>a()),s.loading1=!1},1e3)};return{baseOptions:D,chartLoading:b,handleLoadingShow:v,chartAria:E,handleAriaShow:w,basePieOptions:k,baseLineOptions:c,...V(s),mountChart:S,unmountChart:x,updateChartOptions:T,register:n,register2:m,dispose2:F,render2:y,isDisposed2:B}},render(){const{register:n,register2:f,dispose2:l,render2:d,isDisposed2:p,loading1:m}=this;return t("div",{class:"echart"},[t(u,{title:"chart 组件"},{default:()=>[t("h3",null,[e("该组件基于 ECharts, Vueuse 封装。默认做了最佳的优化封装实践。")]),t("h3",null,[e("开箱即用的优化策略:节流更新图表、异步渲染、自动销毁、贴花、加载、主题、视窗区域渲染、自动更新尺寸等高级特性。")])]}),t(u,{title:"预设 card 风格图表"},{default:()=>[t(h,{style:["padding: 18px 0"]},{default:()=>[t(i,{onClick:this.mountChart.bind(this)},{default:()=>[e("渲染")]}),t(i,{onClick:this.unmountChart.bind(this)},{default:()=>[e("卸载")]}),t(i,{onClick:this.updateChartOptions.bind(this)},{default:()=>[e("更新配置项")]}),t(i,{onClick:()=>{this.loading1=!this.loading1}},{default:()=>[`${this.loading1?"关闭":"开启"}`,e("加载动画")]})]}),t("div",{class:"chart--container"},[t(r,{onRegister:n,title:"周销售量",autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria,preset:"card",loading:m},null)])]}),t(u,{title:"不跟随主题切换的暗色主题可视化图,并且手动指定原始主题色"},{default:()=>[t(h,{vertical:!0},{default:()=>[t(h,null,{default:()=>[t(i,{onClick:()=>{p()?d():window.$message.warning("不可以重复渲染图表~")}},{default:()=>[e("渲染")]}),t(i,{onClick:l.bind(this)},{default:()=>[e("卸载")]})]}),t("div",{class:"chart--container"},[t(r,{onRegister:f,autoChangeTheme:!1,theme:"default",options:this.baseOptions},null)])]})]}),t(u,{title:"加载动画"},{default:()=>[t(C,{value:this.chartLoading,"onUpdate:value":o=>this.chartLoading=o,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏加载动画",unchecked:()=>"显示加载动画"}),t("div",{class:"chart--container"},[t(r,{loading:this.loading,options:this.baseOptions},null)])]}),t(u,{title:"贴画可视化图"},{default:()=>[t(C,{value:this.chartAria,"onUpdate:value":o=>this.chartAria=o,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏贴花",unchecked:()=>"显示贴花"}),t("div",{class:"chart--container"},[t(r,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{Nt as default}; diff --git a/js/index-DsPYwXwT.js.gz b/js/index-DsPYwXwT.js.gz new file mode 100644 index 00000000..e3210391 Binary files /dev/null and b/js/index-DsPYwXwT.js.gz differ diff --git a/js/index-CezQKqVe.js b/js/index-DyDrKyTs.js similarity index 71% rename from js/index-CezQKqVe.js rename to js/index-DyDrKyTs.js index 9d398a85..c5703b11 100644 --- a/js/index-CezQKqVe.js +++ b/js/index-DyDrKyTs.js @@ -1 +1 @@ -import"./hooks-DKN08swi.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{C as F,D as h,E as O,F as C,G as E,H as b}from"./utils-DMI3ftdH.js";import{l as D,b as u,I as p,n as B}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{e as f,x as v}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import{c as r,N as i,K as o,J as s,_ as V}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const At=D({name:"CalculatePrecision",setup(){const t=f({addOptions:["1","0.2","0.1","1.1"],subtractOptions:["1","0.2","0.1","1.1"],multiplyOptions:["1","0.2","0.1","1.1"],divideOptions:["1","0.2","0.1","1.1"],distributeValue:12,distributeOutputValue:[],distributeLength:3}),a={addOptions:O,subtractOptions:C,multiplyOptions:E,divideOptions:b},n=(l,m)=>{const d=a[m],c=d(...l);return"结果: "+F(c)},e=()=>{B().then(()=>{t.distributeOutputValue=h(t.distributeValue,t.distributeLength)})};return e(),{...v(t),copilotFunc:n,updateDistributeValue:e}},render(){return u(V,null,{default:()=>[u("h2",{style:"margin: 0 0 20px 0"},[p("计算方法,默认都保留八位小数与四舍五入,可以根据 format 方法自行转换")]),u("h3",{style:"margin: 0 0 20px 0"},[p("示例方法都基于 currency.js 封装,利用其精度处理能力封装了常用的一些计算方法,解决精度问题。如果需要其他的方法请阅读官方文档 https://currency.js.org/#subtract")]),u(r,{vertical:!0},{default:()=>[u(i,{title:"加法"},{default:()=>u(o,{value:this.addOptions,"onUpdate:value":t=>this.addOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"addOptions")}},null),footer:()=>this.copilotFunc(this.addOptions,"addOptions")}),u(i,{title:"减法"},{default:()=>u(o,{value:this.subtractOptions,"onUpdate:value":t=>this.subtractOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"subtractOptions")}},null),footer:()=>this.copilotFunc(this.subtractOptions,"subtractOptions")}),u(i,{title:"乘法"},{default:()=>u(o,{value:this.multiplyOptions,"onUpdate:value":t=>this.multiplyOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"multiplyOptions")}},null),footer:()=>this.copilotFunc(this.multiplyOptions,"multiplyOptions")}),u(i,{title:"除法(非取模)"},{default:()=>u(o,{value:this.divideOptions,"onUpdate:value":t=>this.divideOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"divideOptions")}},null),footer:()=>this.copilotFunc(this.divideOptions,"divideOptions")}),u(i,{title:"平分一个值"},{default:()=>u(r,null,{default:()=>[u(s,{value:this.distributeValue,"onUpdate:value":t=>this.distributeValue=t,onUpdateValue:()=>{this.updateDistributeValue()}},null),u(s,{value:this.distributeLength,"onUpdate:value":t=>this.distributeLength=t,onUpdateValue:()=>{this.updateDistributeValue()}},null)]}),footer:()=>"结果: "+this.distributeOutputValue.join(", ")})]})]})}});export{At as default}; +import"./hooks-yKQIzKXx.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{C as F,D as h,E as O,F as C,G as E,H as b}from"./utils-DJWgFDlo.js";import{l as D,b as u,I as p,n as B}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{e as f,x as v}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{c as r,N as i,K as o,J as s,$ as V}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const At=D({name:"CalculatePrecision",setup(){const t=f({addOptions:["1","0.2","0.1","1.1"],subtractOptions:["1","0.2","0.1","1.1"],multiplyOptions:["1","0.2","0.1","1.1"],divideOptions:["1","0.2","0.1","1.1"],distributeValue:12,distributeOutputValue:[],distributeLength:3}),a={addOptions:O,subtractOptions:C,multiplyOptions:E,divideOptions:b},n=(l,m)=>{const d=a[m],c=d(...l);return"结果: "+F(c)},e=()=>{B().then(()=>{t.distributeOutputValue=h(t.distributeValue,t.distributeLength)})};return e(),{...v(t),copilotFunc:n,updateDistributeValue:e}},render(){return u(V,null,{default:()=>[u("h2",{style:"margin: 0 0 20px 0"},[p("计算方法,默认都保留八位小数与四舍五入,可以根据 format 方法自行转换")]),u("h3",{style:"margin: 0 0 20px 0"},[p("示例方法都基于 currency.js 封装,利用其精度处理能力封装了常用的一些计算方法,解决精度问题。如果需要其他的方法请阅读官方文档 https://currency.js.org/#subtract")]),u(r,{vertical:!0},{default:()=>[u(i,{title:"加法"},{default:()=>u(o,{value:this.addOptions,"onUpdate:value":t=>this.addOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"addOptions")}},null),footer:()=>this.copilotFunc(this.addOptions,"addOptions")}),u(i,{title:"减法"},{default:()=>u(o,{value:this.subtractOptions,"onUpdate:value":t=>this.subtractOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"subtractOptions")}},null),footer:()=>this.copilotFunc(this.subtractOptions,"subtractOptions")}),u(i,{title:"乘法"},{default:()=>u(o,{value:this.multiplyOptions,"onUpdate:value":t=>this.multiplyOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"multiplyOptions")}},null),footer:()=>this.copilotFunc(this.multiplyOptions,"multiplyOptions")}),u(i,{title:"除法(非取模)"},{default:()=>u(o,{value:this.divideOptions,"onUpdate:value":t=>this.divideOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"divideOptions")}},null),footer:()=>this.copilotFunc(this.divideOptions,"divideOptions")}),u(i,{title:"平分一个值"},{default:()=>u(r,null,{default:()=>[u(s,{value:this.distributeValue,"onUpdate:value":t=>this.distributeValue=t,onUpdateValue:()=>{this.updateDistributeValue()}},null),u(s,{value:this.distributeLength,"onUpdate:value":t=>this.distributeLength=t,onUpdateValue:()=>{this.updateDistributeValue()}},null)]}),footer:()=>"结果: "+this.distributeOutputValue.join(", ")})]})]})}});export{At as default}; diff --git a/js/index-DyDrKyTs.js.gz b/js/index-DyDrKyTs.js.gz new file mode 100644 index 00000000..ea409f82 Binary files /dev/null and b/js/index-DyDrKyTs.js.gz differ diff --git a/js/index-EUipZU_e.js.gz b/js/index-EUipZU_e.js.gz deleted file mode 100644 index 9de07bbd..00000000 Binary files a/js/index-EUipZU_e.js.gz and /dev/null differ diff --git a/js/index-Mr0maFkJ.js.gz b/js/index-Mr0maFkJ.js.gz deleted file mode 100644 index 8fbab92b..00000000 Binary files a/js/index-Mr0maFkJ.js.gz and /dev/null differ diff --git a/js/index-Mr0maFkJ.js b/js/index-N8Hty4TD.js similarity index 79% rename from js/index-Mr0maFkJ.js rename to js/index-N8Hty4TD.js index 0cd14313..36546f56 100644 --- a/js/index-Mr0maFkJ.js +++ b/js/index-N8Hty4TD.js @@ -1 +1 @@ -import{z as c,_ as o}from"./hooks-DKN08swi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{l as p,b as t,N as m,V as n,p as v}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{k as E}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import{c as d,n as a,N as u}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./utils-DMI3ftdH.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function g(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!v(i)}const Oo=p({name:"PreviewSVGIcons",setup(){const i=E([]);return Object.keys(Object.assign({"/src/icons/action/close_other.svg":()=>o(()=>import("./close_other-DPtbrCYd.js"),[]),"/src/icons/action/draggable.svg":()=>o(()=>import("./draggable-D6qza0mp.js"),[]),"/src/icons/action/fullscreen.svg":()=>o(()=>import("./fullscreen-Cjm0bPGx.js"),[]),"/src/icons/action/fullscreen_fold.svg":()=>o(()=>import("./fullscreen_fold-D_jdG9mi.js"),[]),"/src/icons/action/out.svg":()=>o(()=>import("./out-CMQCc625.js"),[]),"/src/icons/action/reload.svg":()=>o(()=>import("./reload-BPf1PV7s.js"),[]),"/src/icons/action/search.svg":()=>o(()=>import("./search-CFLGi5BR.js"),[]),"/src/icons/action/setting.svg":()=>o(()=>import("./setting-DyoycADf.js"),[]),"/src/icons/action/shared.svg":()=>o(()=>import("./shared-DVfOv8Mx.js"),[]),"/src/icons/directional/adjustment.svg":()=>o(()=>import("./adjustment-DIo_g8Za.js"),[]),"/src/icons/directional/close_left.svg":()=>o(()=>import("./close_left-DX8SFJx4.js"),[]),"/src/icons/directional/close_right.svg":()=>o(()=>import("./close_right-DWMWcuX1.js"),[]),"/src/icons/directional/expanded.svg":()=>o(()=>import("./expanded-BswQDJyW.js"),[]),"/src/icons/directional/left_arrow.svg":()=>o(()=>import("./left_arrow-DAKeumRT.js"),[]),"/src/icons/directional/lock.svg":()=>o(()=>import("./lock-dC7sQfx2.js"),[]),"/src/icons/directional/resize_h.svg":()=>o(()=>import("./resize_h-DA2p7YCQ.js"),[]),"/src/icons/directional/right_arrow.svg":()=>o(()=>import("./right_arrow-CbmroMoE.js"),[]),"/src/icons/directional/row_end.svg":()=>o(()=>import("./row_end-CqbNhb3G.js"),[]),"/src/icons/directional/row_head.svg":()=>o(()=>import("./row_head-BCxi2x-p.js"),[]),"/src/icons/logo/github.svg":()=>o(()=>import("./github-B4ARmChV.js"),[]),"/src/icons/logo/google.svg":()=>o(()=>import("./google-GEcrFhWr.js"),[]),"/src/icons/logo/login_bg.svg":()=>o(()=>import("./login_bg-CRcyXHBf.js"),[]),"/src/icons/logo/office.svg":()=>o(()=>import("./office-B5pC1KGi.js"),[]),"/src/icons/logo/ray.svg":()=>o(()=>import("./ray-B93BjtIh.js"),[]),"/src/icons/logo/twitter.svg":()=>o(()=>import("./twitter-DjE7U1HD.js"),[]),"/src/icons/template/dark.svg":()=>o(()=>import("./dark-zODhV8ab.js"),[]),"/src/icons/template/light.svg":()=>o(()=>import("./light-DWWBs-Ry.js"),[]),"/src/icons/template/system_os.svg":()=>o(()=>import("./system_os-Bu1k9Avg.js"),[]),"/src/icons/tip/axios.svg":()=>o(()=>import("./axios-o8g4A-7A.js"),[]),"/src/icons/tip/close.svg":()=>o(()=>import("./close-B43hVi0H.js"),[]),"/src/icons/tip/dashboard.svg":()=>o(()=>import("./dashboard-70op-CO0.js"),[]),"/src/icons/tip/echart.svg":()=>o(()=>import("./echart-c_3t778P.js"),[]),"/src/icons/tip/enter.svg":()=>o(()=>import("./enter-CPGcsJ25.js"),[]),"/src/icons/tip/error.svg":()=>o(()=>import("./error-CjWalrOZ.js"),[]),"/src/icons/tip/export_excel.svg":()=>o(()=>import("./export_excel-ZmNoLzCr.js"),[]),"/src/icons/tip/language.svg":()=>o(()=>import("./language-BOVZ3dlJ.js"),[]),"/src/icons/tip/menu.svg":()=>o(()=>import("./menu-CPMkWw77.js"),[]),"/src/icons/tip/more.svg":()=>o(()=>import("./more-DW-qndwg.js"),[]),"/src/icons/tip/mouse.svg":()=>o(()=>import("./mouse-C_l6KSTs.js"),[]),"/src/icons/tip/other.svg":()=>o(()=>import("./other-DU6bZUrM.js"),[]),"/src/icons/tip/print.svg":()=>o(()=>import("./print-jFo_n0lx.js"),[]),"/src/icons/tip/question.svg":()=>o(()=>import("./question-TxSSjOrI.js"),[]),"/src/icons/tip/rely.svg":()=>o(()=>import("./rely-DlDUQEbT.js"),[]),"/src/icons/tip/table.svg":()=>o(()=>import("./table-tYkftQGA.js"),[])})).forEach(e=>{var s;const _=(s=e.match(/\/(\w+)\.svg/))==null?void 0:s[1];_&&i.value.push(_)}),{icons:i}},render(){return t(u,{title:"svg图标"},{"header-extra":()=>"点击图标复制代码",default:()=>{let i;return t(d,null,g(i=this.icons.map(r=>m(t("div",{class:"pre-view-icons__card",key:r},[t(a,null,{trigger:()=>t(c,{name:r,size:"56",cursor:"pointer"},null),default:()=>r})]),[[n("copy"),``]])))?i:{default:()=>[i]})}})}});export{Oo as default}; +import{v as c,_ as o}from"./hooks-yKQIzKXx.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{l as p,b as t,N as m,V as n,p as v}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{k as E}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{c as d,n as a,N as u}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./utils-DJWgFDlo.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function g(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!v(i)}const Oo=p({name:"PreviewSVGIcons",setup(){const i=E([]);return Object.keys(Object.assign({"/src/icons/action/close_other.svg":()=>o(()=>import("./close_other-DPtbrCYd.js"),[]),"/src/icons/action/draggable.svg":()=>o(()=>import("./draggable-D6qza0mp.js"),[]),"/src/icons/action/fullscreen.svg":()=>o(()=>import("./fullscreen-Cjm0bPGx.js"),[]),"/src/icons/action/fullscreen_fold.svg":()=>o(()=>import("./fullscreen_fold-D_jdG9mi.js"),[]),"/src/icons/action/out.svg":()=>o(()=>import("./out-CMQCc625.js"),[]),"/src/icons/action/reload.svg":()=>o(()=>import("./reload-BPf1PV7s.js"),[]),"/src/icons/action/search.svg":()=>o(()=>import("./search-CFLGi5BR.js"),[]),"/src/icons/action/setting.svg":()=>o(()=>import("./setting-DyoycADf.js"),[]),"/src/icons/action/shared.svg":()=>o(()=>import("./shared-DVfOv8Mx.js"),[]),"/src/icons/directional/adjustment.svg":()=>o(()=>import("./adjustment-DIo_g8Za.js"),[]),"/src/icons/directional/close_left.svg":()=>o(()=>import("./close_left-DX8SFJx4.js"),[]),"/src/icons/directional/close_right.svg":()=>o(()=>import("./close_right-DWMWcuX1.js"),[]),"/src/icons/directional/expanded.svg":()=>o(()=>import("./expanded-BswQDJyW.js"),[]),"/src/icons/directional/left_arrow.svg":()=>o(()=>import("./left_arrow-DAKeumRT.js"),[]),"/src/icons/directional/lock.svg":()=>o(()=>import("./lock-dC7sQfx2.js"),[]),"/src/icons/directional/resize_h.svg":()=>o(()=>import("./resize_h-DA2p7YCQ.js"),[]),"/src/icons/directional/right_arrow.svg":()=>o(()=>import("./right_arrow-CbmroMoE.js"),[]),"/src/icons/directional/row_end.svg":()=>o(()=>import("./row_end-CqbNhb3G.js"),[]),"/src/icons/directional/row_head.svg":()=>o(()=>import("./row_head-BCxi2x-p.js"),[]),"/src/icons/logo/github.svg":()=>o(()=>import("./github-B4ARmChV.js"),[]),"/src/icons/logo/google.svg":()=>o(()=>import("./google-GEcrFhWr.js"),[]),"/src/icons/logo/login_bg.svg":()=>o(()=>import("./login_bg-CRcyXHBf.js"),[]),"/src/icons/logo/office.svg":()=>o(()=>import("./office-B5pC1KGi.js"),[]),"/src/icons/logo/ray.svg":()=>o(()=>import("./ray-B93BjtIh.js"),[]),"/src/icons/logo/twitter.svg":()=>o(()=>import("./twitter-DjE7U1HD.js"),[]),"/src/icons/template/dark.svg":()=>o(()=>import("./dark-zODhV8ab.js"),[]),"/src/icons/template/light.svg":()=>o(()=>import("./light-DWWBs-Ry.js"),[]),"/src/icons/template/system_os.svg":()=>o(()=>import("./system_os-Bu1k9Avg.js"),[]),"/src/icons/tip/axios.svg":()=>o(()=>import("./axios-o8g4A-7A.js"),[]),"/src/icons/tip/close.svg":()=>o(()=>import("./close-B43hVi0H.js"),[]),"/src/icons/tip/dashboard.svg":()=>o(()=>import("./dashboard-70op-CO0.js"),[]),"/src/icons/tip/echart.svg":()=>o(()=>import("./echart-c_3t778P.js"),[]),"/src/icons/tip/enter.svg":()=>o(()=>import("./enter-CPGcsJ25.js"),[]),"/src/icons/tip/error.svg":()=>o(()=>import("./error-CjWalrOZ.js"),[]),"/src/icons/tip/export_excel.svg":()=>o(()=>import("./export_excel-ZmNoLzCr.js"),[]),"/src/icons/tip/language.svg":()=>o(()=>import("./language-BOVZ3dlJ.js"),[]),"/src/icons/tip/menu.svg":()=>o(()=>import("./menu-CPMkWw77.js"),[]),"/src/icons/tip/more.svg":()=>o(()=>import("./more-DW-qndwg.js"),[]),"/src/icons/tip/mouse.svg":()=>o(()=>import("./mouse-C_l6KSTs.js"),[]),"/src/icons/tip/other.svg":()=>o(()=>import("./other-DU6bZUrM.js"),[]),"/src/icons/tip/print.svg":()=>o(()=>import("./print-jFo_n0lx.js"),[]),"/src/icons/tip/question.svg":()=>o(()=>import("./question-TxSSjOrI.js"),[]),"/src/icons/tip/rely.svg":()=>o(()=>import("./rely-DlDUQEbT.js"),[]),"/src/icons/tip/table.svg":()=>o(()=>import("./table-tYkftQGA.js"),[])})).forEach(e=>{var s;const _=(s=e.match(/\/(\w+)\.svg/))==null?void 0:s[1];_&&i.value.push(_)}),{icons:i}},render(){return t(u,{title:"svg图标"},{"header-extra":()=>"点击图标复制代码",default:()=>{let i;return t(d,null,g(i=this.icons.map(r=>m(t("div",{class:"pre-view-icons__card",key:r},[t(a,null,{trigger:()=>t(c,{name:r,size:"56",cursor:"pointer"},null),default:()=>r})]),[[n("copy"),``]])))?i:{default:()=>[i]})}})}});export{Oo as default}; diff --git a/js/index-N8Hty4TD.js.gz b/js/index-N8Hty4TD.js.gz new file mode 100644 index 00000000..fc04deaf Binary files /dev/null and b/js/index-N8Hty4TD.js.gz differ diff --git a/js/index-C8sUoWBI.js b/js/index-PlxeXsXD.js similarity index 70% rename from js/index-C8sUoWBI.js rename to js/index-PlxeXsXD.js index c2aeeaea..5793c47c 100644 --- a/js/index-C8sUoWBI.js +++ b/js/index-PlxeXsXD.js @@ -1 +1 @@ -import{Q as t}from"./vue3-next-qrcode@2.0.10_typescript@5.6.3-BAi83mm5.js";import{L as l}from"./ray-dCjhX_JK.js";import{N as r,c as e,O as d}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import{l as n,b as u,I as o}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{k as i}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const S=n({name:"RQRCodeDemo",setup(){const a=i("ray template yes"),m=i(),s=i();return{qrcodeText:a,qrcodeStatus:m,rayQRCodeRef:s}},render(){return u(e,null,{default:()=>[u(r,null,{default:()=>[u("h2",null,[o("基于 awesome-qr 进行封装,支持 LOGO、gif、backgroundImage 等属性。")]),u("h2",null,[o("该组件会自动监听文本内容变化,然后重新渲染(watchText)")]),u("h2",null,[o("具体使用请参考 props 配置项")])]}),u(r,{title:"基础二维码"},{default:()=>[u(e,null,{default:()=>[u(t,{text:"ray template yes"},null),u(t,{text:"ray template yes",logoImage:l},null),u(t,{text:"ray template yes",gifBackgroundURL:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80",dotScale:.5,colorDark:"#64d9d6"},null)]})]}),u(r,{title:"状态二维码"},{default:()=>[u(e,null,{default:()=>[u(t,{text:"ray template yes",logoImage:l,status:"error",onReload:()=>{window.$message.info("reload event")}},null),u(t,{text:"ray template yes",logoImage:l,status:"loading"},null)]})]}),u(r,{title:"监听内容变化"},{default:()=>[u(e,{vertical:!0},{default:()=>[u(e,null,{default:()=>[u(d,{onClick:()=>{this.qrcodeStatus="loading",setTimeout(()=>{this.qrcodeText="text updated: "+new Date().getTime(),this.qrcodeStatus=void 0},1e3)}},{default:()=>[o("更新二维码内容")]}),u(d,{onClick:()=>{var a;(a=this.rayQRCodeRef)==null||a.downloadQRCode()}},{default:()=>[o("下载二维码")]})]}),u(e,null,{default:()=>[u(t,{text:this.qrcodeText,status:this.qrcodeStatus,logoImage:l,ref:"rayQRCodeRef"},null),o("当前二维码内容:"),this.qrcodeText]})]})]})]})}});export{S as default}; +import{Q as t}from"./vue3-next-qrcode@2.0.10_typescript@5.6.3-et2AKeWS.js";import{L as l}from"./ray-dCjhX_JK.js";import{N as r,c as e,O as d}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import{l as n,b as u,I as o}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{k as i}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const S=n({name:"RQRCodeDemo",setup(){const a=i("ray template yes"),m=i(),s=i();return{qrcodeText:a,qrcodeStatus:m,rayQRCodeRef:s}},render(){return u(e,null,{default:()=>[u(r,null,{default:()=>[u("h2",null,[o("基于 awesome-qr 进行封装,支持 LOGO、gif、backgroundImage 等属性。")]),u("h2",null,[o("该组件会自动监听文本内容变化,然后重新渲染(watchText)")]),u("h2",null,[o("具体使用请参考 props 配置项")])]}),u(r,{title:"基础二维码"},{default:()=>[u(e,null,{default:()=>[u(t,{text:"ray template yes"},null),u(t,{text:"ray template yes",logoImage:l},null),u(t,{text:"ray template yes",gifBackgroundURL:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80",dotScale:.5,colorDark:"#64d9d6"},null)]})]}),u(r,{title:"状态二维码"},{default:()=>[u(e,null,{default:()=>[u(t,{text:"ray template yes",logoImage:l,status:"error",onReload:()=>{window.$message.info("reload event")}},null),u(t,{text:"ray template yes",logoImage:l,status:"loading"},null)]})]}),u(r,{title:"监听内容变化"},{default:()=>[u(e,{vertical:!0},{default:()=>[u(e,null,{default:()=>[u(d,{onClick:()=>{this.qrcodeStatus="loading",setTimeout(()=>{this.qrcodeText="text updated: "+new Date().getTime(),this.qrcodeStatus=void 0},1e3)}},{default:()=>[o("更新二维码内容")]}),u(d,{onClick:()=>{var a;(a=this.rayQRCodeRef)==null||a.downloadQRCode()}},{default:()=>[o("下载二维码")]})]}),u(e,null,{default:()=>[u(t,{text:this.qrcodeText,status:this.qrcodeStatus,logoImage:l,ref:"rayQRCodeRef"},null),o("当前二维码内容:"),this.qrcodeText]})]})]})]})}});export{S as default}; diff --git a/js/index-PlxeXsXD.js.gz b/js/index-PlxeXsXD.js.gz new file mode 100644 index 00000000..ff676e04 Binary files /dev/null and b/js/index-PlxeXsXD.js.gz differ diff --git a/js/index-Y4-cSx_f.js.gz b/js/index-Y4-cSx_f.js.gz deleted file mode 100644 index bf276f8b..00000000 Binary files a/js/index-Y4-cSx_f.js.gz and /dev/null differ diff --git a/js/index-cD4vHjL6.js.gz b/js/index-cD4vHjL6.js.gz deleted file mode 100644 index 54ba3885..00000000 Binary files a/js/index-cD4vHjL6.js.gz and /dev/null differ diff --git a/js/index-fb6Zlm5C.js.gz b/js/index-fb6Zlm5C.js.gz deleted file mode 100644 index 8000fd4d..00000000 Binary files a/js/index-fb6Zlm5C.js.gz and /dev/null differ diff --git a/js/index-gQXTPbPZ.js b/js/index-gQXTPbPZ.js deleted file mode 100644 index b0a9b804..00000000 --- a/js/index-gQXTPbPZ.js +++ /dev/null @@ -1 +0,0 @@ -import{v as T,n as N,w as C,x as L,y as F,f as v,z as r,e as P,u as A,i as $,B as z}from"./hooks-DKN08swi.js";import{s as f}from"./utils-DMI3ftdH.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import{u as V}from"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{H as y,L as w,O as G,V as I,n as q,c as l,x as D,I as E,y as S,j as H,a as Q,b,N as U,s as B,R as g,E as k}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import{l as a,b as e,p as m,I as c,F as W}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{k as d,e as x,x as _}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import{Q as K}from"./vue3-next-qrcode@2.0.10_typescript@5.6.3-BAi83mm5.js";import{L as X}from"./ray-dCjhX_JK.js";import{f as Y}from"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import{A as J}from"./index-tDavH95b.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function M(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!m(t)}const Z=a({name:"RSigning",setup(){const[t,{validate:i}]=T(),{t:n}=F(),{signing:s}=N(),{getRootPath:o}=C(),p=d(!1),R=()=>({name:"Ray Admin",pwd:"123456"}),j=V(),u=d(R()),O={name:{required:!0,message:n("views.login.index.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:n("views.login.index.PasswordPlaceholder"),trigger:["blur","input"]}};return{signingForm:u,register:t,handleLogin:()=>{i().then(()=>{p.value=!0,s(u.value).then(h=>{h.code===0&&setTimeout(()=>{window.$message.success(`欢迎${u.value.name}登陆~`),f(v.token,"tokenValue","localStorage"),f(v.signing,h.data,"localStorage"),j.push(o.value),p.value=!1},2*1e3)}).catch(()=>{window.$message.error("不可以这样哟, 不可以哟")})})},rules:O,loading:p}},render(){let t;const{$t:i,loading:n,register:s}=this;return e(L,{model:this.signingForm,onRegister:s,rules:this.rules},{default:()=>[e(y,{label:i("views.login.index.Name"),path:"name"},{default:()=>[e(w,{value:this.signingForm.name,"onUpdate:value":o=>this.signingForm.name=o,placeholder:i("views.login.index.NamePlaceholder")},null)]}),e(y,{label:i("views.login.index.Password"),path:"pwd"},{default:()=>[e(w,{value:this.signingForm.pwd,"onUpdate:value":o=>this.signingForm.pwd=o,type:"password",showPasswordOn:"click",placeholder:i("views.login.index.PasswordPlaceholder"),onKeydown:o=>o.key==="Enter"&&this.handleLogin()},null)]}),e(G,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this),loading:n},M(t=i("views.login.index.Login"))?t:{default:()=>[t]})]})}}),ee=a({name:"RRegister",render(){return e(I,{status:"info",title:"提示",description:"我实在是不想写了..."},null)}}),te=a({name:"QRCodeSigning",setup(){const t=x({qrcodeValue:"https://github.com/XiaoDaiGua-Ray/xiaodaigua-ray.github.io"});return{..._(t)}},render(){return e("div",{class:"qrcode-signing"},[e(K,{text:"ray template yes",size:200,logoImage:X},null)])}});function ie(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!m(t)}const ne=a({name:"SSOSigning",setup(){return{ssoSigningOptions:[{icon:"github",key:"github",tooltipLabel:"Github登陆"},{icon:"google",key:"google",tooltipLabel:"Google登陆"},{icon:"twitter",key:"twitter",tooltipLabel:"Twitter登陆"}],handleSSOSigningClick:n=>{window.$message.info(`调用${n.tooltipLabel}`)}}},render(){let t;return e(l,{class:"sso-signing",align:"center"},ie(t=this.ssoSigningOptions.map(i=>e(q,{key:i.key},{trigger:()=>e(r,{name:i.icon,size:"24",cursor:"pointer",onClick:this.handleSSOSigningClick.bind(this,i)},null),default:()=>i.tooltipLabel})))?t:{default:()=>[t]})}}),oe=a({name:"ThemeSwitch",setup(){const{darkTheme:t,lightTheme:i}=A(),{getAppTheme:n}=P(),s=d(n.value);return{darkTheme:t,lightTheme:i,getAppTheme:n,railStyle:({checked:p})=>p?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:s}},render(){const{$t:t,darkTheme:i,lightTheme:n,railStyle:s}=this;return e(l,{justify:"center"},{default:()=>[e(D,null,{trigger:()=>e(E,{value:this.modelAppThemeRef,"onUpdate:value":o=>this.modelAppThemeRef=o,railStyle:s.bind(this),onUpdateValue:o=>o?i():n()},{"checked-icon":()=>e(r,{name:"dark"},null),"unchecked-icon":()=>e(r,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?t("headerSettingOptions.ThemeOptions.Dark"):t("headerSettingOptions.ThemeOptions.Light")})]})}});var se={pkg:{dependencies:{"@logicflow/core":"2.0.6","@logicflow/extension":"2.0.10","@vueuse/core":"^11.2.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.1","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.13","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^8.13.0","@typescript-eslint/parser":"^8.13.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.1","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5","rollup-plugin-gzip":"4.0.1",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.6.3","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.1.10"},name:"ray-template",version:"5.0.6"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function le(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!m(t)}const dt=a({name:"RLogin",setup(){const{layout:{copyright:t}}=se,i=x({tabsValue:"signing"}),{height:n,width:s}=Y(),{updateLocale:o}=$();return{..._(i),windowHeight:n,updateLocale:o,copyright:t,windowWidth:s}},render(){let t;const{$t:i}=this;return e("div",{class:["login"],style:[`height: ${this.windowHeight}px`,`--login-height: ${this.windowHeight}px`]},[e("div",{class:["login-wrapper",this.windowWidth>=1440?"login-wrapper--divider":""]},[e("div",{class:["login-wrapper__content"]},[e(l,{align:"center",class:"login-title__wrapper"},{default:()=>[e(r,{name:"ray",size:"48"},null),e(S,{class:"login-title",type:"info",size:28},{default:()=>[c("Ray Template")]})]}),e(l,{align:"center",class:"login-action__wrapper"},{default:()=>[e(oe,null,null),e(H,{options:z,onSelect:n=>this.updateLocale(n),trigger:"click"},{default:()=>[e(r,{customClassName:"login-icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),e(Q,{cols:"s:1 m:1 l:2 xl:2 2xl:2",itemResponsive:!1,responsive:"screen"},{default:()=>[e(b,{span:"s:0 m:0 l:1 xl:1 2xl:1",class:"login__left-wrapper"},{default:()=>[e(l,{align:"center",vertical:!0},{default:()=>[e(r,{name:"login_bg",width:"368",height:"368"},null),e(S,{class:"login-title",type:"info",size:36},le(t=i("views.login.index.RayTemplate"))?t:{default:()=>[t]})]})]}),e(b,{span:1,class:"login__right-wrapper"},{default:()=>[e(U,{class:"login__right-wrapper__content",embedded:!0,bordered:!1},{default:()=>[e(B,{value:this.tabsValue,"onUpdate:value":n=>this.tabsValue=n,type:"line",animated:!0,size:"large"},{default:()=>e(W,null,[e(g,{tab:i("views.login.index.Signing"),name:"signing"},{default:()=>[e(Z,null,null)]}),e(g,{tab:i("views.login.index.Register"),name:"register"},{default:()=>[e(ee,null,null)]}),e(g,{tab:i("views.login.index.QRCodeSigning"),name:"qrcodeSigning"},{default:()=>[e(te,null,null)]})])}),e(k,null,{default:()=>[c("其他登陆方式")]}),e(ne,null,null),e(k,null,{default:()=>[c("友情链接")]}),e(J,null,null)]})]})]}),e(l,{align:"center",justify:"center",class:"login-copyright__wrapper"},{default:()=>[this.copyright]})])])])}});export{dt as default}; diff --git a/js/index-gQXTPbPZ.js.gz b/js/index-gQXTPbPZ.js.gz deleted file mode 100644 index a9ec5b11..00000000 Binary files a/js/index-gQXTPbPZ.js.gz and /dev/null differ diff --git a/js/index-lL95gCHJ.js.gz b/js/index-lL95gCHJ.js.gz deleted file mode 100644 index cf262a00..00000000 Binary files a/js/index-lL95gCHJ.js.gz and /dev/null differ diff --git a/js/index-D-nvKMgM.js b/js/index-pNGX5TLZ.js similarity index 67% rename from js/index-D-nvKMgM.js rename to js/index-pNGX5TLZ.js index 1333db2a..f0bd2083 100644 --- a/js/index-D-nvKMgM.js +++ b/js/index-pNGX5TLZ.js @@ -1 +1 @@ -import{z as n}from"./hooks-DKN08swi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{A as d}from"./index-tDavH95b.js";import{N as i,ab as f,ac as c,ad as s,ae as E,c as l,v as p}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import{l as b,b as t,I as u,p as F}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./utils-DMI3ftdH.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function m(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!F(o)}const Dt=b({name:"RDashboard",setup(){return{coverLetterOptions:[{label:"掌握搬砖框架",des:()=>t(l,null,{default:()=>[t(p,{type:"success"},{default:()=>[u("Vue3.x")]}),t(p,{type:"info"},{default:()=>[u("React")]})]})},{label:"从事搬砖时长",des:()=>t(l,null,{default:()=>[t(p,{type:"success"},{default:()=>[u("练习时长两年半的小白前端搬砖师")]})]})},{label:"个人",des:()=>t(l,{align:"center"},{default:()=>[t(n,{name:"ray",size:"22"},null),u("努力搬砖、努力摸鱼, 建设美丽家园")]}),span:2},{label:"补充说明",des:()=>t(l,{align:"center"},{default:()=>[u("如果有希望补充的功能可以在"),t("a",{class:"dashboard-link",href:"https://github.com/XiaoDaiGua-Ray/ray-template"},[u("GitHub")]),u("提一个 Issues")]}),span:2}],technologyTagOptions:[{label:"Vue3.x",value:"Vue3.x"},{label:"Vite5.x",value:"Vite5.x"},{label:"Pinia",value:"Pinia"},{label:"TS(X)",value:"TS(X)"}]}},render(){let o,a;return t(l,{vertical:!0},{default:()=>[t(i,null,{header:()=>t(n,{name:"ray",size:"64"},null),default:()=>"当你看见这个页面后, 就说明项目已经启动成功了~"}),t(i,{title:"个人介绍"},{default:()=>[t(f,{bordered:!0,labelPlacement:"left",column:2},m(o=this.coverLetterOptions.map(e=>{let r;return t(c,{key:e.label,label:e.label,span:e==null?void 0:e.span},m(r=e.des())?r:{default:()=>[r]})}))?o:{default:()=>[o]})]}),t(i,{title:"项目介绍"},{default:()=>[t(s,null,{default:()=>[u("技术栈")]}),t(E,null,{default:()=>[t(l,null,m(a=this.technologyTagOptions.map(e=>t(p,{key:e.value,type:"info"},{default:()=>[e.label]})))?a:{default:()=>[a]})]}),t(s,null,{default:()=>[u("项目介绍")]}),t(E,null,{default:()=>[u("预设了最佳构建体验的配置与常用搬砖工具。意在提供一个简洁、快速上手的模板。")]})]}),t(i,{title:"友情链接"},{default:()=>[t(d,null,null)]})]})}});export{Dt as default}; +import{v as n}from"./hooks-yKQIzKXx.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{A as d}from"./index-CPnIe1iT.js";import{N as i,ac as f,ad as c,ae as s,af as E,c as l,v as p}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import{l as b,b as t,I as u,p as F}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./utils-DJWgFDlo.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function m(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!F(o)}const Dt=b({name:"RDashboard",setup(){return{coverLetterOptions:[{label:"掌握搬砖框架",des:()=>t(l,null,{default:()=>[t(p,{type:"success"},{default:()=>[u("Vue3.x")]}),t(p,{type:"info"},{default:()=>[u("React")]})]})},{label:"从事搬砖时长",des:()=>t(l,null,{default:()=>[t(p,{type:"success"},{default:()=>[u("练习时长两年半的小白前端搬砖师")]})]})},{label:"个人",des:()=>t(l,{align:"center"},{default:()=>[t(n,{name:"ray",size:"22"},null),u("努力搬砖、努力摸鱼, 建设美丽家园")]}),span:2},{label:"补充说明",des:()=>t(l,{align:"center"},{default:()=>[u("如果有希望补充的功能可以在"),t("a",{class:"dashboard-link",href:"https://github.com/XiaoDaiGua-Ray/ray-template"},[u("GitHub")]),u("提一个 Issues")]}),span:2}],technologyTagOptions:[{label:"Vue3.x",value:"Vue3.x"},{label:"Vite5.x",value:"Vite5.x"},{label:"Pinia",value:"Pinia"},{label:"TS(X)",value:"TS(X)"}]}},render(){let o,a;return t(l,{vertical:!0},{default:()=>[t(i,null,{header:()=>t(n,{name:"ray",size:"64"},null),default:()=>"当你看见这个页面后, 就说明项目已经启动成功了~"}),t(i,{title:"个人介绍"},{default:()=>[t(f,{bordered:!0,labelPlacement:"left",column:2},m(o=this.coverLetterOptions.map(e=>{let r;return t(c,{key:e.label,label:e.label,span:e==null?void 0:e.span},m(r=e.des())?r:{default:()=>[r]})}))?o:{default:()=>[o]})]}),t(i,{title:"项目介绍"},{default:()=>[t(s,null,{default:()=>[u("技术栈")]}),t(E,null,{default:()=>[t(l,null,m(a=this.technologyTagOptions.map(e=>t(p,{key:e.value,type:"info"},{default:()=>[e.label]})))?a:{default:()=>[a]})]}),t(s,null,{default:()=>[u("项目介绍")]}),t(E,null,{default:()=>[u("预设了最佳构建体验的配置与常用搬砖工具。意在提供一个简洁、快速上手的模板。")]})]}),t(i,{title:"友情链接"},{default:()=>[t(d,null,null)]})]})}});export{Dt as default}; diff --git a/js/index-pNGX5TLZ.js.gz b/js/index-pNGX5TLZ.js.gz new file mode 100644 index 00000000..23129ad0 Binary files /dev/null and b/js/index-pNGX5TLZ.js.gz differ diff --git a/js/index-BbqJDTDN.js b/js/index-sIqE1um6.js similarity index 55% rename from js/index-BbqJDTDN.js rename to js/index-sIqE1um6.js index 335bdd1a..97ee8c87 100644 --- a/js/index-BbqJDTDN.js +++ b/js/index-sIqE1um6.js @@ -1 +1 @@ -import{l as r,b as o,I as e}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{k as i}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import{L as p}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const v=r({name:"MultiMenuOne",setup(){return{inputValue:i(null)}},render(){return o("div",null,[e("多级菜单-1"),o(p,{modelValue:this.inputValue,"onUpdate:modelValue":t=>this.inputValue=t},null)])}});export{v as default}; +import{l as r,b as o,I as e}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{k as i}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{L as p}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const v=r({name:"MultiMenuOne",setup(){return{inputValue:i(null)}},render(){return o("div",null,[e("多级菜单-1"),o(p,{modelValue:this.inputValue,"onUpdate:modelValue":t=>this.inputValue=t},null)])}});export{v as default}; diff --git a/js/index-sIqE1um6.js.gz b/js/index-sIqE1um6.js.gz new file mode 100644 index 00000000..72de4344 Binary files /dev/null and b/js/index-sIqE1um6.js.gz differ diff --git a/js/index-tDavH95b.js.gz b/js/index-tDavH95b.js.gz deleted file mode 100644 index a96baf5b..00000000 Binary files a/js/index-tDavH95b.js.gz and /dev/null differ diff --git a/js/index-uK1ORuri.js b/js/index-uK1ORuri.js new file mode 100644 index 00000000..d37fe3c0 --- /dev/null +++ b/js/index-uK1ORuri.js @@ -0,0 +1 @@ +import{R as J}from"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import{e as M,g as X,M as K,G as g,f as b,h as Q,i as j,j as k,r as e1,k as l1,R as E,l as t1,m as i1,n as o1,D as c1,s as a1,o as n1,p as r1}from"./hooks-yKQIzKXx.js";import{d as s1}from"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{a0 as p1,a1 as d1,a2 as h1,a3 as f1,a4 as u1,a5 as m1,a6 as S,a7 as v1,a8 as g1,q as b1,H as _1,L as M1,O as y1,a9 as w1,aa as C1,e as Z1}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import{l as m,f as y,b as n,j as z1,k as k1,n as S1,I as V1,m as O}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{f as x1,u as T}from"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import{b as _,g as $,c as H1,w,m as N,s as V,f as x,i as P1}from"./utils-DJWgFDlo.js";import{g as L1,u as A1,l as B1,z as j1}from"./lodash-es@4.17.21-B-5kLwAl.js";import{k as C,e as E1,x as O1}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./vue3-next-qrcode@2.0.10_typescript@5.6.3-et2AKeWS.js";import{C as T1}from"./clipboard@2.0.11-DheAgBlr.js";import{c as R}from"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";import"./@vue_shared@3.5.12--5_uv9t5.js";(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const c of i)if(c.type==="childList")for(const a of c.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function t(i){const c={};return i.integrity&&(c.integrity=i.integrity),i.referrerPolicy&&(c.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?c.credentials="include":i.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(i){if(i.ep)return;i.ep=!0;const c=t(i);fetch(i.href,c)}})();const $1=m({name:"GlobalProvider",setup(e,{expose:l}){const{getPrimaryColorOverride:t,getAppTheme:o,getLocaleLanguage:i}=M(),c=y(()=>{const r=i.value;return X(r)}),a=()=>{const{message:r,notification:s,dialog:p,loadingBar:d}=g1(["message","dialog","notification","loadingBar"],{configProviderProps:y(()=>({theme:o.value?S:null}))});window.$dialog=p,window.$message=r,window.$loadingBar=d,window.$notification=s};return l(),{getPrimaryColorOverride:t,localePackage:c,getAppTheme:o,discreteApi:a}},render(){const{$slots:{default:e},discreteApi:l}=this,{getPrimaryColorOverride:t,getAppTheme:o,localePackage:i}=this;return n(v1,{themeOverrides:t,theme:o?S:null,locale:i.locale,dateLocale:i.dateLocal},{default:()=>[n(p1,null,{default:()=>[n(d1,K,{default:()=>[n(h1,null,{default:()=>[n(f1,null,{default:()=>[n(u1,null,{default:()=>[n(m1,null,null),e==null?void 0:e(),l()]})]})]})]})]})]})}}),N1=m({name:"AppStyleProvider",setup(e,{expose:l}){const{getAppTheme:t}=M(),{height:o,width:i}=x1(),c=()=>{const{appPrimaryColor:{primaryColor:s,primaryFadeColor:p}}=Q,{rayTemplateThemePrimaryColor:d,rayTemplateThemePrimaryFadeColor:h}=g,u=document.documentElement,v=$(b.appPiniaSettingStore,"localStorage");if(v){const z=L1(v,"primaryColorOverride.common.primaryColor",s),Y=H1(z,.38);u.style.setProperty(d,z),u.style.setProperty(h,Y||p)}},a=()=>{const s=document.getElementById(g.preLoadingAnimation);s&&_(s,{display:"none"})},r=s=>{const p=document.documentElement,{darkClassName:d,lightClassName:h}=g;s?w(p,h):w(p,d),N(p,s?d:h)};c(),a(),z1(()=>{r(t.value),_(document.documentElement,{[g.htmlHeight]:`${o.value}px`,[g.htmlWidth]:`${i.value}px`})}),l()},render(){return n("div",{class:"app-style-provider"},null)}}),R1=m({name:"LockScreen",setup(){const e=C(null),l=C(null),{setLockAppScreen:t}=l1(),{updateSettingState:o}=j(),i=E1({lockCondition:k()}),c=()=>{var a;(a=e.value)==null||a.validate(r=>{r||(t(!0),o("lockScreenSwitch",!1),i.lockCondition=k())})};return k1(()=>{S1(()=>{var a;(a=l.value)==null||a.focus()})}),{...O1(i),lockScreen:c,formInstRef:e,inputInstRef:l}},render(){return n("div",{class:"app-lock-screen__content"},[n("div",{class:"app-lock-screen__input"},[n(b1,{ref:"formInstRef",model:this.lockCondition,rules:e1,labelPlacement:"left"},{default:()=>[n(_1,{path:"lockPassword"},{default:()=>[n(M1,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":e=>this.lockCondition.lockPassword=e,type:"password",placeholder:"请输入锁屏密码",clearable:!0,showPasswordOn:"click",minlength:6,maxlength:12,onKeydown:e=>{e.code==="Enter"&&this.lockScreen()}},null)]}),n(y1,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[V1("锁屏")]})]})])])}}),F1=m({name:"AppLockScreen",setup(){const{updateSettingState:e}=j(),{getLockScreenSwitch:l}=M();return{lockScreenSwitchRef:y({get:()=>l.value,set:o=>{e("lockScreenSwitch",o)}})}},render(){return n(E,{show:this.lockScreenSwitchRef,"onUpdate:show":e=>this.lockScreenSwitchRef=e,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:"dialog",title:"锁定屏幕"},{default:()=>[n(R1,null,null)]})}}),D1=m({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:e,getWatermarkConfig:l}=M();return{getWatermarkSwitch:e,getWatermarkConfig:l}},render(){const{getWatermarkConfig:e,getWatermarkSwitch:l}=this;return l?n(w1,O(e,{fullscreen:!0}),null):null}}),I1=m({name:"GlobalSpin",props:{...C1},setup(){const e={opacitySpinning:"0.3"};return{spinValue:t1("globalSpinning"),overrides:e}},render(){return n(Z1,O(this.$props,{show:this.spinValue,themeOverrides:this.overrides,style:"height: var(--html-height)"}),{...this.$slots})}});var W1={pkg:{dependencies:{"@logicflow/core":"2.0.6","@logicflow/extension":"2.0.10","@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^8.13.0","@typescript-eslint/parser":"^8.13.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.1","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5","rollup-plugin-gzip":"4.0.1",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.6.3","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.1.10"},name:"ray-template",version:"5.0.5"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const q1=m({name:"AppVersionProvider",setup(){const{pkg:{version:e}}=W1,l=$(b.appVersionProvider,"localStorage"),t=C(!1),{logout:o}=i1();return l!==null?e!==l&&(t.value=!0,V(b.appVersionProvider,e,"localStorage")):V(b.appVersionProvider,e,"localStorage"),{modalShow:t,logout:o}},render(){const{logout:e}=this;return n("div",{class:"app-style-provider"},[n(E,{show:this.modalShow,"onUpdate:show":l=>this.modalShow=l,closeOnEsc:!1,maskClosable:!1,preset:"dialog",closable:!1,title:"发现新版本",content:"当前版本已更新,点击确认加载新版本~",zIndex:999999999,dad:!0,positiveText:"确认",negativeText:"取消",onPositiveClick:e,onNegativeClick:()=>{this.modalShow=!1}},null)])}}),F=m({name:"App",render(){return n($1,null,{default:()=>[n(q1,null,null),n(F1,null,null),n(N1,null,null),n(D1,null,null),n(I1,null,{default:()=>n(J,null,null),description:()=>o1})]})}});if(typeof window<"u"){let e=function(){var l=document.body,t=document.getElementById("__svg__icons__dom__");t||(t=document.createElementNS("http://www.w3.org/2000/svg","svg"),t.style.position="absolute",t.style.width="0",t.style.height="0",t.id="__svg__icons__dom__",t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),t.innerHTML='',l.insertBefore(t,l.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const U1=()=>{s1.locale(c1)},H=(e,l)=>{const t=new T1(e,{text:()=>l});e.$$clipboard=t,e.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),e.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},G1=()=>({mounted:(e,{value:l})=>{H(e,l)},updated:(e,{value:l,oldValue:t})=>{var o;l!==t&&((o=e.$$clipboard)==null||o.destroy(),H(e,l))},beforeUnmount:e=>{var l;e.$$clipboard&&((l=e.$$clipboard)==null||l.destroy(),e.$$clipboard=null)}}),Y1=Object.freeze(Object.defineProperty({__proto__:null,default:G1},Symbol.toStringTag,{value:"Module"})),J1=()=>{let e,l;return{beforeMount:(t,{value:o})=>{const{func:i,trigger:c="click",wait:a=500,options:r}=o;if(typeof i!="function")throw new TypeError("debounce directive value must be a function");e=A1(i,a,Object.assign({},r)),l=T(t,c,e)},beforeUnmount:(t,{value:o})=>{e&&(e.cancel(),l==null||l()),e=null}}},X1=Object.freeze(Object.defineProperty({__proto__:null,default:J1},Symbol.toStringTag,{value:"Module"})),P=(e,l)=>{if(e){const t="ray-template__directive--disabled";l?(e.setAttribute("disabled","disabled"),N(e,t)):(e.removeAttribute("disabled"),w(e,t)),e==null||e.setAttribute("disabled",l?"disabled":"")}},K1=()=>({mounted:(e,{value:l})=>{P(e,l)},updated:(e,{value:l,oldValue:t})=>{l!==t&&P(e,l)}}),Q1=Object.freeze(Object.defineProperty({__proto__:null,default:K1},Symbol.toStringTag,{value:"Module"})),L=(e,l)=>{const{line:t=1,type:o="block",width:i,popoverText:c}=l;if(i==null){console.error(`[v-ellipsis]: Expected width is string or number, but got typeof ${i}!`);return}c&&e.textContent&&e.setAttribute("title",e.textContent),o==="line"?_(e,{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":t,overflow:"hidden",width:x(i)}):_(e,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:x(i)})},e2=()=>({mounted:(e,{value:l})=>{L(e,l)},updated:(e,{value:l})=>{L(e,l)}}),l2=Object.freeze(Object.defineProperty({__proto__:null,default:e2},Symbol.toStringTag,{value:"Module"})),f={vRippleAnimationEnter:"v-ripple__animation--enter",vRippleAnimationVisible:"v-ripple__animation--visible",vRippleAnimationIn:"v-ripple__animation--in",vRippleAnimationOut:"v-ripple__animation--out",vRippleAnimation:"v-ripple__animation"},t2="v-ripple__container";function A(e,l){e.style.transform=l}function D(e){const l={},t=e.currentTarget;!(t!=null&&t.__d_ripple__)||t.__d_ripple__.touched||(l.center=t.__d_ripple__.centered,t.__d_ripple__.class&&(l.class=t.__d_ripple__.class),Z.show(e,t,l))}function I(e){const l=e.currentTarget;l!=null&&l.__d_ripple__&&(setTimeout(()=>{l.__d_ripple__&&(l.__d_ripple__.touched=!1)}),Z.hide(l))}const i2=(e,l,t={})=>{var u;const o=l.getBoundingClientRect(),i=e.clientX-o.left,c=e.clientY-o.top;let a=0,r=.3;(u=l.__d_ripple__)!=null&&u.circle?(r=.15,a=l.clientWidth/2,a=t.center?a:a+Math.sqrt((i-a)**2+(c-a)**2)/4):a=Math.sqrt(l.clientWidth**2+l.clientHeight**2)/2;const s=`${(l.clientWidth-a*2)/2}px`,p=`${(l.clientHeight-a*2)/2}px`,d=t.center?s:`${i-a}px`,h=t.center?p:`${c-a}px`;return{radius:a,scale:r,x:d,y:h,centerX:s,centerY:p}},Z={show(e,l,t={}){var v;if(!((v=l==null?void 0:l.__d_ripple__)!=null&&v.enabled))return;const o=document.createElement("span"),i=document.createElement("span");o.appendChild(i),o.className=t2,t.class&&(o.className+=` ${t.class}`);const{radius:c,scale:a,x:r,y:s,centerX:p,centerY:d}=i2(e,l,t),h=`${c*2}px`;i.className=f.vRippleAnimation,i.style.width=h,i.style.height=h,l.appendChild(o);const u=window.getComputedStyle(l);u&&u.position==="static"&&(l.style.position="relative",l.dataset.previousPosition="static"),i.classList.add(f.vRippleAnimationEnter),i.classList.add(f.vRippleAnimationVisible),A(i,`translate(${r}, ${s}) scale3d(${a},${a},${a})`),i.dataset.activated=String(performance.now()),setTimeout(()=>{i.classList.remove(f.vRippleAnimationEnter),i.classList.add(f.vRippleAnimationIn),A(i,`translate(${p}, ${d}) scale3d(1,1,1)`)},0)},hide(e){var c;if(!((c=e==null?void 0:e.__d_ripple__)!=null&&c.enabled))return;const l=e.getElementsByClassName(f.vRippleAnimation);if(l.length===0)return;const t=l[l.length-1];if(t.dataset.isHiding)return;t.dataset.isHiding="true";const o=performance.now()-Number(t.dataset.activated),i=Math.max(250-o,0);setTimeout(()=>{t.classList.remove(f.vRippleAnimationIn),t.classList.add(f.vRippleAnimationOut),setTimeout(()=>{var r;e.getElementsByClassName(f.vRippleAnimation).length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((r=t.parentNode)==null?void 0:r.parentNode)===e&&e.removeChild(t.parentNode)},300)},i)}};function W(e){return typeof e>"u"||!!e}function q(e){e.removeEventListener("pointerdown",D),e.removeEventListener("pointerup",I)}function B(e,l,t){const{value:o,modifiers:i}=l,c=W(o);c||Z.hide(e),e.__d_ripple__=e.__d_ripple__??{},e.__d_ripple__.enabled=c,e.__d_ripple__.centered=i.center,e.__d_ripple__.circle=i.circle,P1(o,"Object")&&o.class&&(e.__d_ripple__.class=o.class),c&&!t?(e.addEventListener("pointerdown",D),e.addEventListener("pointerup",I)):!c&&t&&q(e)}const o2=()=>({mounted:(e,l)=>{B(e,l,!1)},beforeUnmount:e=>{delete e.__d_ripple__,q(e)},updated:(e,l)=>{if(l.value===l.oldValue)return;const t=W(l.oldValue);B(e,l,t)}}),c2=Object.freeze(Object.defineProperty({__proto__:null,default:o2},Symbol.toStringTag,{value:"Module"})),a2=()=>{let e;return{beforeMount:(l,{value:t})=>{const{func:o,trigger:i="click",wait:c=500,options:a}=t;if(typeof o!="function")throw new TypeError("throttle directive value must be a function");e=B1(o,c,Object.assign({},a)),T(l,i,e)},beforeUnmount:()=>{e&&e.cancel(),e=null}}},n2=Object.freeze(Object.defineProperty({__proto__:null,default:a2},Symbol.toStringTag,{value:"Module"})),r2=e=>Object.keys(e).reduce((t,o)=>{var c;const i=(c=e[o])==null?void 0:c.default;if(typeof i=="function")return t[o]=i,t;throw new TypeError(`directiveModules: ${o} is not function`)},{}),s2=e=>{const t=r2(Object.assign({"/src/directives/modules/copy/index.ts":Y1,"/src/directives/modules/debounce/index.ts":X1,"/src/directives/modules/disabled/index.ts":Q1,"/src/directives/modules/ellipsis/index.ts":l2,"/src/directives/modules/ripple/index.ts":c2,"/src/directives/modules/throttle/index.ts":n2})),o=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),i=/^([^-]+-)*[^-]+$/;j1(t,(c,a)=>{var s;const r=(s=a.match(o))==null?void 0:s[0];typeof r=="string"&&i.test(r)?e.directive(r,c()):console.error(`[setupDirectives] ${r} is not a valid directive name`)})},U=async()=>{},G=async e=>{a1(e),await n1(e),r1(e),U1(),s2(e)},p2=async()=>{const e=R(F);await G(e),e.mount("#app"),await U()},d2=async()=>{let e;window.__WUJIE_MOUNT=async()=>{e=R(F),await G(e),e.mount("#app"),await U()},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?d2():p2(); diff --git a/js/index-uK1ORuri.js.gz b/js/index-uK1ORuri.js.gz new file mode 100644 index 00000000..900ea106 Binary files /dev/null and b/js/index-uK1ORuri.js.gz differ diff --git a/js/index-xbK-ooCu.js.gz b/js/index-xbK-ooCu.js.gz deleted file mode 100644 index 16c6a3d3..00000000 Binary files a/js/index-xbK-ooCu.js.gz and /dev/null differ diff --git a/js/index-xbK-ooCu.js b/js/index-yX6ilmeX.js similarity index 65% rename from js/index-xbK-ooCu.js rename to js/index-yX6ilmeX.js index f196c2fd..0801f1dd 100644 --- a/js/index-xbK-ooCu.js +++ b/js/index-yX6ilmeX.js @@ -1 +1 @@ -import{J as d}from"./hooks-DKN08swi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{l as c,b as t,I as n}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{k as u}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import{N as f,c as s,j as h}from"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./utils-DMI3ftdH.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const kt=c({name:"ContextMenuDemo",setup(){const o=u(),r=u(!1),e=u([{label:"杰·盖茨比",key:"jay gatsby"},{label:"黛西·布坎南",key:"daisy buchanan"},{type:"divider",key:"d1"},{label:"尼克·卡拉威",key:"nick caraway"}]),{x:m,y:p,show:a,updateShow:i}=d(o);return{demoOneRef:o,demoOneShow:r,x:m,y:p,show:a,options:e,clickOutside:l=>{l.preventDefault(),i(!1)},updateShow:i}},render(){const{x:o,y:r,show:e}=this,{clickOutside:m,updateShow:p}=this;return t(s,{vertical:!0},{default:()=>[t(f,{title:"useContextmenuCoordinate + NDropdown 实现右键菜单"},{default:()=>[t(s,{vertical:!0},{default:()=>[t("h3",null,[n("默认点击元素外部会关闭菜单。")]),t("div",{ref:"demoOneRef",style:"width: 100%; height: 200px; background-color: rgba(0, 128, 0, 0.5)"},[n("右击")])]})]}),t(h,{show:e,x:o,y:r,options:this.options,trigger:"manual",placement:"bottom-start",onSelect:(a,i)=>{window.$message.info(`选中了 ${i.label}`),p(!1)},onClickoutside:m.bind(this)},null)]})}});export{kt as default}; +import{H as d}from"./hooks-yKQIzKXx.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{l as c,b as t,I as n}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{k as u}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{N as f,c as s,j as h}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./utils-DJWgFDlo.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const kt=c({name:"ContextMenuDemo",setup(){const o=u(),r=u(!1),e=u([{label:"杰·盖茨比",key:"jay gatsby"},{label:"黛西·布坎南",key:"daisy buchanan"},{type:"divider",key:"d1"},{label:"尼克·卡拉威",key:"nick caraway"}]),{x:m,y:p,show:a,updateShow:i}=d(o);return{demoOneRef:o,demoOneShow:r,x:m,y:p,show:a,options:e,clickOutside:l=>{l.preventDefault(),i(!1)},updateShow:i}},render(){const{x:o,y:r,show:e}=this,{clickOutside:m,updateShow:p}=this;return t(s,{vertical:!0},{default:()=>[t(f,{title:"useContextmenuCoordinate + NDropdown 实现右键菜单"},{default:()=>[t(s,{vertical:!0},{default:()=>[t("h3",null,[n("默认点击元素外部会关闭菜单。")]),t("div",{ref:"demoOneRef",style:"width: 100%; height: 200px; background-color: rgba(0, 128, 0, 0.5)"},[n("右击")])]})]}),t(h,{show:e,x:o,y:r,options:this.options,trigger:"manual",placement:"bottom-start",onSelect:(a,i)=>{window.$message.info(`选中了 ${i.label}`),p(!1)},onClickoutside:m.bind(this)},null)]})}});export{kt as default}; diff --git a/js/index-yX6ilmeX.js.gz b/js/index-yX6ilmeX.js.gz new file mode 100644 index 00000000..efee57dd Binary files /dev/null and b/js/index-yX6ilmeX.js.gz differ diff --git a/js/instance-CzbCXUZF.js b/js/instance-CzbCXUZF.js deleted file mode 100644 index 46b8417e..00000000 --- a/js/instance-CzbCXUZF.js +++ /dev/null @@ -1 +0,0 @@ -import{a as R}from"./axios@1.7.5-C8DqakIB.js";import{$ as t,a0 as n,f as q,a1 as d}from"./hooks-DKN08swi.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{g as A}from"./utils-DMI3ftdH.js";import"./currency.js@2.0.4-9OAR_aOO.js";const y=(e,r)=>{t.removePendingRequest(e)},E=(e,r)=>{t.removePendingRequest(e)},p={implementResponseInterceptorArray:[y],implementResponseInterceptorErrorArray:[E]},{setImplement:m}=n(),k=()=>{const{implementResponseInterceptorArray:e}=p;m("implementResponseInterceptorArray",e,"ok")},P=()=>{const{implementResponseInterceptorErrorArray:e}=p;m("implementResponseInterceptorErrorArray",e,"error")},f=(e,r)=>{t.removePendingRequest(e),t.addPendingRequest(e)},g=(e,r)=>{t.removePendingRequest(e)},v=(e,r)=>{if(e){const o=e.headers;r.forEach(s=>{o[s.key]=s.value})}},C=(e,r)=>{const o=A(q.token,"localStorage");return e.url,{key:"X-TOKEN",value:o}},H=(e,r)=>{v(e,[C(e),{key:"Demo-Header-Key",value:"Demo Header Value"}])},c={implementRequestInterceptorArray:[H,f],implementRequestInterceptorErrorArray:[g]},{setImplement:a}=n(),j=()=>{const{implementRequestInterceptorArray:e}=c;a("implementRequestInterceptorArray",e,"ok")},x=()=>{const{implementRequestInterceptorErrorArray:e}=c;a("implementRequestInterceptorErrorArray",e,"error")},i=R.create(d),{createAxiosInstance:u,beforeFetch:l,fetchError:I}=n();i.interceptors.request.use(e=>(u(e,"requestInstance"),j(),l("requestInstance","implementRequestInterceptorArray","ok"),e),e=>(x(),I("requestError",e,"implementRequestInterceptorErrorArray"),Promise.reject(e)));i.interceptors.response.use(e=>{u(e,"responseInstance"),k(),l("responseInstance","implementResponseInterceptorArray","ok");const{data:r}=e;return Promise.resolve(r)},e=>(P(),I("responseError",e,"implementResponseInterceptorErrorArray"),Promise.reject(e)));export{i as s}; diff --git a/js/instance-CzbCXUZF.js.gz b/js/instance-CzbCXUZF.js.gz deleted file mode 100644 index 91f5350d..00000000 Binary files a/js/instance-CzbCXUZF.js.gz and /dev/null differ diff --git a/js/instance-DGp8AH04.js b/js/instance-DGp8AH04.js new file mode 100644 index 00000000..fa987c22 --- /dev/null +++ b/js/instance-DGp8AH04.js @@ -0,0 +1 @@ +import{a as R}from"./axios@1.7.5-C8DqakIB.js";import{Z as t,$ as n,f as q,a0 as d}from"./hooks-yKQIzKXx.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{g as A}from"./utils-DJWgFDlo.js";import"./currency.js@2.0.4-9OAR_aOO.js";const y=(e,r)=>{t.removePendingRequest(e)},E=(e,r)=>{t.removePendingRequest(e)},p={implementResponseInterceptorArray:[y],implementResponseInterceptorErrorArray:[E]},{setImplement:m}=n(),k=()=>{const{implementResponseInterceptorArray:e}=p;m("implementResponseInterceptorArray",e,"ok")},P=()=>{const{implementResponseInterceptorErrorArray:e}=p;m("implementResponseInterceptorErrorArray",e,"error")},f=(e,r)=>{t.removePendingRequest(e),t.addPendingRequest(e)},g=(e,r)=>{t.removePendingRequest(e)},v=(e,r)=>{if(e){const o=e.headers;r.forEach(s=>{o[s.key]=s.value})}},C=(e,r)=>{const o=A(q.token,"localStorage");return e.url,{key:"X-TOKEN",value:o}},H=(e,r)=>{v(e,[C(e),{key:"Demo-Header-Key",value:"Demo Header Value"}])},c={implementRequestInterceptorArray:[H,f],implementRequestInterceptorErrorArray:[g]},{setImplement:a}=n(),j=()=>{const{implementRequestInterceptorArray:e}=c;a("implementRequestInterceptorArray",e,"ok")},x=()=>{const{implementRequestInterceptorErrorArray:e}=c;a("implementRequestInterceptorErrorArray",e,"error")},i=R.create(d),{createAxiosInstance:u,beforeFetch:l,fetchError:I}=n();i.interceptors.request.use(e=>(u(e,"requestInstance"),j(),l("requestInstance","implementRequestInterceptorArray","ok"),e),e=>(x(),I("requestError",e,"implementRequestInterceptorErrorArray"),Promise.reject(e)));i.interceptors.response.use(e=>{u(e,"responseInstance"),k(),l("responseInstance","implementResponseInterceptorArray","ok");const{data:r}=e;return Promise.resolve(r)},e=>(P(),I("responseError",e,"implementResponseInterceptorErrorArray"),Promise.reject(e)));export{i as s}; diff --git a/js/instance-DGp8AH04.js.gz b/js/instance-DGp8AH04.js.gz new file mode 100644 index 00000000..6d676f5f Binary files /dev/null and b/js/instance-DGp8AH04.js.gz differ diff --git a/js/naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js b/js/naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js similarity index 99% rename from js/naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js rename to js/naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js index 2ac146aa..f85fe03b 100644 --- a/js/naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js +++ b/js/naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js @@ -1,4 +1,4 @@ -import{z as mu,e as bu,p as xu,i as Fo,f as Bt,g as Dt,a as Ne,s as jo,b as Tn,c as Cu,d as ei,h as ro,j as yu,k as Bi,l as Oi,m as So,n as Ht,o as fn,q as Zl,r as wu,t as Ql,u as Su,v as ku,w as er,x as Wn,y as Un,A as gr,B as Ru,C as ci,D as zu,E as ui,F as aa,G as Qt,H as Pu,I as $u,J as Tu,K as Di,L as Fu,M as Jl}from"./date-fns@3.6.0-q9PkOyxq.js";import{g as qt,r as so,s as jt,c as We,d as Mt,a as Uo,h as Xt,b as Se,t as or,e as rr,f as Mi,i as yr,j as Ai,k as Vo,l as Ar,m as _i,n as es,o as wr,p as tr,q as Nn,u as rn,v as Hi,w as Ei,x as Li,y as Ko,z as Et,A as la,B as Ni,C as ts,D as Ir}from"./seemly@0.3.8-DjGKl9dV.js";import{I as ji,F as Wt,J as sa,p as Iu,l as ie,i as Ae,d as da,w as vt,v as mo,k as Jt,t as hn,L as Bu,M as os,x as Je,f as C,j as $t,h as i,m as ao,n as zt,N as lo,O as an,T as Ou,P as ca,Q as Du,R as ua}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{k as B,s as rs,n as fe,m as Za,e as ti,u as Qa}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import{r as Ja,V as Mo,a as Sr,b as Rr,F as fa,c as zr,B as Pr,d as Vi,L as ns,e as Mu}from"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import{v as _o,T as Vt,a as is,c as Au}from"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import{o as Zt,a as Kt}from"./evtd@0.2.4-CI_DDEu_.js";import{u as tt,i as qo,a as _u,b as Rt,c as nr,d as ha,e as Kn,f as qn,g as Hu,o as as}from"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import{c as Ho,m as Eu,z as va}from"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import{m as Mr,A as Lu,b as Nu,g as Gn,l as fi}from"./lodash-es@4.17.21-B-5kLwAl.js";import{c as ls,a as Wo,f as el}from"./treemate@0.3.11-DKekKYbv.js";import{f as ju}from"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import{S as tl}from"./async-validator@4.2.5-DKvM95Vc.js";import{u as oi}from"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import{C as Vu,e as Wu}from"./css-render@0.15.14-C5toWlUr.js";import{m as Yn}from"./@emotion_hash@0.8.0-WldOFDRm.js";import{p as Uu}from"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function vn(e,t="default",o=[]){const n=e.$slots[t];return n===void 0?o:n()}function ol(e,t="default",o=[]){const{children:r}=e;if(r!==null&&typeof r=="object"&&!Array.isArray(r)){const n=r[t];if(typeof n=="function")return n()}return o}function po(e,t=[],o){const r={};return t.forEach(n=>{r[n]=e[n]}),Object.assign(r,o)}function $r(e,t=[],o){const r={};return Object.getOwnPropertyNames(e).forEach(a=>{t.includes(a)||(r[a]=e[a])}),Object.assign(r,o)}function Io(e,t=!0,o=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&o.push(ji(String(r)));return}if(Array.isArray(r)){Io(r,t,o);return}if(r.type===Wt){if(r.children===null)return;Array.isArray(r.children)&&Io(r.children,t,o)}else{if(r.type===sa&&t)return;o.push(r)}}}),o}function ae(e,...t){if(Array.isArray(e))e.forEach(o=>ae(o,...t));else return e(...t)}function ko(e){return Object.keys(e)}function St(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?ji(e):typeof e=="number"?ji(String(e)):null}const rl=new Set;function Ku(e,t){const o=`[naive/${e}]: ${t}`;rl.has(o)||(rl.add(o),console.error(o))}function go(e,t){console.error(`[naive/${e}]: ${t}`)}function Go(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Wi(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw new Error(`${e} has no smaller size.`)}function nl(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Ui(e,t="default",o=void 0){const r=e[t];if(!r)return go("getFirstSlotVNode",`slot[${t}] is empty`),null;const n=Io(r(o));return n.length===1?n[0]:(go("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function ss(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function ds(e){return t=>{t?e.value=t.$el:e.value=null}}function To(e){return e.some(t=>Iu(t)?!(t.type===sa||t.type===Wt&&!To(t.children)):!0)?e:null}function ft(e,t){return e&&To(e())||t()}function io(e,t,o){return e&&To(e(t))||o(t)}function mt(e,t){const o=e&&To(e());return t(o||null)}function _r(e){return!(e&&To(e()))}function nn(e){const t=e.filter(o=>o!==void 0);if(t.length!==0)return t.length===1?t[0]:o=>{e.forEach(r=>{r&&r(o)})}}function qu(e){var t;const o=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:r})=>r===_o);return!!(o&&o.value===!1)}const Ki=ie({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),Gu=/^(\d|\.)+$/,il=/(\d|\.)+/;function _t(e,{c:t=1,offset:o=0,attachPx:r=!0}={}){if(typeof e=="number"){const n=(e+o)*t;return n===0?"0":`${n}px`}else if(typeof e=="string")if(Gu.test(e)){const n=(Number(e)+o)*t;return r?n===0?"0":`${n}px`:`${n}`}else{const n=il.exec(e);return n?e.replace(il,String((Number(n[0])+o)*t)):e}return e}function ln(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function al(e){const{left:t,right:o,top:r,bottom:n}=qt(e);return`${r} ${o} ${n} ${t}`}const Yu="n",sn=`.${Yu}-`,Xu="__",Zu="--",cs=Vu(),us=Uu({blockPrefix:sn,elementPrefix:Xu,modifierPrefix:Zu});cs.use(us);const{c:k,find:GC}=cs,{cB:m,cE:P,cM:z,cNotM:nt}=us;function jr(e){return k(({props:{bPrefix:t}})=>`${t||sn}modal, ${t||sn}drawer`,[e])}function pn(e){return k(({props:{bPrefix:t}})=>`${t||sn}popover`,[e])}function fs(e){return k(({props:{bPrefix:t}})=>`&${t||sn}modal`,e)}const Qu=(...e)=>k(">",[m(...e)]);function le(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,o=>o.toUpperCase()))}let hi;function Ju(){return hi===void 0&&(hi=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),hi}const bo=typeof document<"u"&&typeof window<"u",hs=new WeakSet;function dn(e){hs.add(e)}function vs(e){return!hs.has(e)}function ef(e,t,o){var r;const n=Ae(e,null);if(n===null)return;const a=(r=da())===null||r===void 0?void 0:r.proxy;vt(o,s),s(o.value),mo(()=>{s(void 0,o.value)});function s(c,u){if(!n)return;const f=n[t];u!==void 0&&l(f,u),c!==void 0&&d(f,c)}function l(c,u){c[u]||(c[u]=[]),c[u].splice(c[u].findIndex(f=>f===a),1)}function d(c,u){c[u]||(c[u]=[]),~c[u].findIndex(f=>f===a)||c[u].push(a)}}function tf(e,t,o){const r=B(e.value);let n=null;return vt(e,a=>{n!==null&&window.clearTimeout(n),a===!0?o&&!o.value?r.value=!0:n=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}const pa="n-internal-select-menu",ps="n-internal-select-menu-body",gn="n-modal-body",of="n-modal-provider",gs="n-modal",mn="n-drawer-body",ga="n-drawer",Vr="n-popover-body",ms="__disabled__";function Gt(e){const t=Ae(gn,null),o=Ae(mn,null),r=Ae(Vr,null),n=Ae(ps,null),a=B();if(typeof document<"u"){a.value=document.fullscreenElement;const s=()=>{a.value=document.fullscreenElement};Jt(()=>{Zt("fullscreenchange",document,s)}),mo(()=>{Kt("fullscreenchange",document,s)})}return tt(()=>{var s;const{to:l}=e;return l!==void 0?l===!1?ms:l===!0?a.value||"body":l:t!=null&&t.value?(s=t.value.$el)!==null&&s!==void 0?s:t.value:o!=null&&o.value?o.value:r!=null&&r.value?r.value:n!=null&&n.value?n.value:l??(a.value||"body")})}Gt.tdkey=ms;Gt.propTo={type:[String,Object,Boolean],default:void 0};let ll=!1;function rf(){if(bo&&window.CSS&&!ll&&(ll=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}function bs(e,t){t&&(Jt(()=>{const{value:o}=e;o&&Ja.registerHandler(o,t)}),mo(()=>{const{value:o}=e;o&&Ja.unregisterHandler(o)}))}let Br=0,sl="",dl="",cl="",ul="";const fl=B("0px");function xs(e){if(typeof document>"u")return;const t=document.documentElement;let o,r=!1;const n=()=>{t.style.marginRight=sl,t.style.overflow=dl,t.style.overflowX=cl,t.style.overflowY=ul,fl.value="0px"};Jt(()=>{o=vt(e,a=>{if(a){if(!Br){const s=window.innerWidth-t.offsetWidth;s>0&&(sl=t.style.marginRight,t.style.marginRight=`${s}px`,fl.value=`${s}px`),dl=t.style.overflow,cl=t.style.overflowX,ul=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,Br++}else Br--,Br||n(),r=!1},{immediate:!0})}),mo(()=>{o==null||o(),r&&(Br--,Br||n(),r=!1)})}const ma=B(!1);function hl(){ma.value=!0}function vl(){ma.value=!1}let Qr=0;function Cs(){return bo&&(hn(()=>{Qr||(window.addEventListener("compositionstart",hl),window.addEventListener("compositionend",vl)),Qr++}),mo(()=>{Qr<=1?(window.removeEventListener("compositionstart",hl),window.removeEventListener("compositionend",vl),Qr=0):Qr--})),ma}function ba(e){const t={isDeactivated:!1};let o=!1;return Bu(()=>{if(t.isDeactivated=!1,!o){o=!0;return}e()}),os(()=>{t.isDeactivated=!0,o||(o=!0)}),t}function nf(e,t){if(!e)return;const o=document.createElement("a");o.href=e,t!==void 0&&(o.download=t),document.body.appendChild(o),o.click(),document.body.removeChild(o)}const qi="n-form-item";function xo(e,{defaultSize:t="medium",mergedSize:o,mergedDisabled:r}={}){const n=Ae(qi,null);Je(qi,null);const a=C(o?()=>o(n):()=>{const{size:d}=e;if(d)return d;if(n){const{mergedSize:c}=n;if(c.value!==void 0)return c.value}return t}),s=C(r?()=>r(n):()=>{const{disabled:d}=e;return d!==void 0?d:n?n.disabled.value:!1}),l=C(()=>{const{status:d}=e;return d||(n==null?void 0:n.mergedValidationStatus.value)});return mo(()=>{n&&n.restoreValidation()}),{mergedSizeRef:a,mergedDisabledRef:s,mergedStatusRef:l,nTriggerFormBlur(){n&&n.handleContentBlur()},nTriggerFormChange(){n&&n.handleContentChange()},nTriggerFormFocus(){n&&n.handleContentFocus()},nTriggerFormInput(){n&&n.handleContentInput()}}}const Co={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:af,fontFamily:lf,lineHeight:sf}=Co,ys=k("body",` +import{z as mu,e as bu,p as xu,i as Fo,f as Bt,g as Dt,a as Ne,s as jo,b as Tn,c as Cu,d as ei,h as ro,j as yu,k as Bi,l as Oi,m as So,n as Ht,o as fn,q as Zl,r as wu,t as Ql,u as Su,v as ku,w as er,x as Wn,y as Un,A as gr,B as Ru,C as ci,D as zu,E as ui,F as aa,G as Qt,H as Pu,I as $u,J as Tu,K as Di,L as Fu,M as Jl}from"./date-fns@3.6.0-q9PkOyxq.js";import{g as qt,r as so,s as jt,c as We,d as Mt,a as Uo,h as Xt,b as Se,t as or,e as rr,f as Mi,i as yr,j as Ai,k as Vo,l as Ar,m as _i,n as es,o as wr,p as tr,q as Nn,u as rn,v as Hi,w as Ei,x as Li,y as Ko,z as Et,A as la,B as Ni,C as ts,D as Ir}from"./seemly@0.3.8-DjGKl9dV.js";import{I as ji,F as Wt,J as sa,p as Iu,l as ie,i as Ae,d as da,w as vt,v as mo,k as Jt,t as hn,L as Bu,M as os,x as Je,f as C,j as $t,h as i,m as ao,n as zt,N as lo,O as an,T as Ou,P as ca,Q as Du,R as ua}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{k as B,s as rs,n as fe,m as Za,e as ti,u as Qa}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{r as Ja,V as Mo,a as Sr,b as Rr,F as fa,c as zr,B as Pr,d as Vi,L as ns,e as Mu}from"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import{v as _o,T as Vt,a as is,c as Au}from"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import{o as Zt,a as Kt}from"./evtd@0.2.4-CI_DDEu_.js";import{u as tt,i as qo,a as _u,b as Rt,c as nr,d as ha,e as Kn,f as qn,g as Hu,o as as}from"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import{c as Ho,m as Eu,z as va}from"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import{m as Mr,A as Lu,b as Nu,g as Gn,l as fi}from"./lodash-es@4.17.21-B-5kLwAl.js";import{c as ls,a as Wo,f as el}from"./treemate@0.3.11-DKekKYbv.js";import{f as ju}from"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import{S as tl}from"./async-validator@4.2.5-DKvM95Vc.js";import{u as oi}from"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import{C as Vu,e as Wu}from"./css-render@0.15.14-C5toWlUr.js";import{m as Yn}from"./@emotion_hash@0.8.0-WldOFDRm.js";import{p as Uu}from"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function vn(e,t="default",o=[]){const n=e.$slots[t];return n===void 0?o:n()}function ol(e,t="default",o=[]){const{children:r}=e;if(r!==null&&typeof r=="object"&&!Array.isArray(r)){const n=r[t];if(typeof n=="function")return n()}return o}function po(e,t=[],o){const r={};return t.forEach(n=>{r[n]=e[n]}),Object.assign(r,o)}function $r(e,t=[],o){const r={};return Object.getOwnPropertyNames(e).forEach(a=>{t.includes(a)||(r[a]=e[a])}),Object.assign(r,o)}function Io(e,t=!0,o=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&o.push(ji(String(r)));return}if(Array.isArray(r)){Io(r,t,o);return}if(r.type===Wt){if(r.children===null)return;Array.isArray(r.children)&&Io(r.children,t,o)}else{if(r.type===sa&&t)return;o.push(r)}}}),o}function ae(e,...t){if(Array.isArray(e))e.forEach(o=>ae(o,...t));else return e(...t)}function ko(e){return Object.keys(e)}function St(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?ji(e):typeof e=="number"?ji(String(e)):null}const rl=new Set;function Ku(e,t){const o=`[naive/${e}]: ${t}`;rl.has(o)||(rl.add(o),console.error(o))}function go(e,t){console.error(`[naive/${e}]: ${t}`)}function Go(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Wi(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw new Error(`${e} has no smaller size.`)}function nl(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Ui(e,t="default",o=void 0){const r=e[t];if(!r)return go("getFirstSlotVNode",`slot[${t}] is empty`),null;const n=Io(r(o));return n.length===1?n[0]:(go("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function ss(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function ds(e){return t=>{t?e.value=t.$el:e.value=null}}function To(e){return e.some(t=>Iu(t)?!(t.type===sa||t.type===Wt&&!To(t.children)):!0)?e:null}function ft(e,t){return e&&To(e())||t()}function io(e,t,o){return e&&To(e(t))||o(t)}function mt(e,t){const o=e&&To(e());return t(o||null)}function _r(e){return!(e&&To(e()))}function nn(e){const t=e.filter(o=>o!==void 0);if(t.length!==0)return t.length===1?t[0]:o=>{e.forEach(r=>{r&&r(o)})}}function qu(e){var t;const o=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:r})=>r===_o);return!!(o&&o.value===!1)}const Ki=ie({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),Gu=/^(\d|\.)+$/,il=/(\d|\.)+/;function _t(e,{c:t=1,offset:o=0,attachPx:r=!0}={}){if(typeof e=="number"){const n=(e+o)*t;return n===0?"0":`${n}px`}else if(typeof e=="string")if(Gu.test(e)){const n=(Number(e)+o)*t;return r?n===0?"0":`${n}px`:`${n}`}else{const n=il.exec(e);return n?e.replace(il,String((Number(n[0])+o)*t)):e}return e}function ln(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function al(e){const{left:t,right:o,top:r,bottom:n}=qt(e);return`${r} ${o} ${n} ${t}`}const Yu="n",sn=`.${Yu}-`,Xu="__",Zu="--",cs=Vu(),us=Uu({blockPrefix:sn,elementPrefix:Xu,modifierPrefix:Zu});cs.use(us);const{c:k,find:GC}=cs,{cB:m,cE:P,cM:z,cNotM:nt}=us;function jr(e){return k(({props:{bPrefix:t}})=>`${t||sn}modal, ${t||sn}drawer`,[e])}function pn(e){return k(({props:{bPrefix:t}})=>`${t||sn}popover`,[e])}function fs(e){return k(({props:{bPrefix:t}})=>`&${t||sn}modal`,e)}const Qu=(...e)=>k(">",[m(...e)]);function le(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,o=>o.toUpperCase()))}let hi;function Ju(){return hi===void 0&&(hi=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),hi}const bo=typeof document<"u"&&typeof window<"u",hs=new WeakSet;function dn(e){hs.add(e)}function vs(e){return!hs.has(e)}function ef(e,t,o){var r;const n=Ae(e,null);if(n===null)return;const a=(r=da())===null||r===void 0?void 0:r.proxy;vt(o,s),s(o.value),mo(()=>{s(void 0,o.value)});function s(c,u){if(!n)return;const f=n[t];u!==void 0&&l(f,u),c!==void 0&&d(f,c)}function l(c,u){c[u]||(c[u]=[]),c[u].splice(c[u].findIndex(f=>f===a),1)}function d(c,u){c[u]||(c[u]=[]),~c[u].findIndex(f=>f===a)||c[u].push(a)}}function tf(e,t,o){const r=B(e.value);let n=null;return vt(e,a=>{n!==null&&window.clearTimeout(n),a===!0?o&&!o.value?r.value=!0:n=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}const pa="n-internal-select-menu",ps="n-internal-select-menu-body",gn="n-modal-body",of="n-modal-provider",gs="n-modal",mn="n-drawer-body",ga="n-drawer",Vr="n-popover-body",ms="__disabled__";function Gt(e){const t=Ae(gn,null),o=Ae(mn,null),r=Ae(Vr,null),n=Ae(ps,null),a=B();if(typeof document<"u"){a.value=document.fullscreenElement;const s=()=>{a.value=document.fullscreenElement};Jt(()=>{Zt("fullscreenchange",document,s)}),mo(()=>{Kt("fullscreenchange",document,s)})}return tt(()=>{var s;const{to:l}=e;return l!==void 0?l===!1?ms:l===!0?a.value||"body":l:t!=null&&t.value?(s=t.value.$el)!==null&&s!==void 0?s:t.value:o!=null&&o.value?o.value:r!=null&&r.value?r.value:n!=null&&n.value?n.value:l??(a.value||"body")})}Gt.tdkey=ms;Gt.propTo={type:[String,Object,Boolean],default:void 0};let ll=!1;function rf(){if(bo&&window.CSS&&!ll&&(ll=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}function bs(e,t){t&&(Jt(()=>{const{value:o}=e;o&&Ja.registerHandler(o,t)}),mo(()=>{const{value:o}=e;o&&Ja.unregisterHandler(o)}))}let Br=0,sl="",dl="",cl="",ul="";const fl=B("0px");function xs(e){if(typeof document>"u")return;const t=document.documentElement;let o,r=!1;const n=()=>{t.style.marginRight=sl,t.style.overflow=dl,t.style.overflowX=cl,t.style.overflowY=ul,fl.value="0px"};Jt(()=>{o=vt(e,a=>{if(a){if(!Br){const s=window.innerWidth-t.offsetWidth;s>0&&(sl=t.style.marginRight,t.style.marginRight=`${s}px`,fl.value=`${s}px`),dl=t.style.overflow,cl=t.style.overflowX,ul=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,Br++}else Br--,Br||n(),r=!1},{immediate:!0})}),mo(()=>{o==null||o(),r&&(Br--,Br||n(),r=!1)})}const ma=B(!1);function hl(){ma.value=!0}function vl(){ma.value=!1}let Qr=0;function Cs(){return bo&&(hn(()=>{Qr||(window.addEventListener("compositionstart",hl),window.addEventListener("compositionend",vl)),Qr++}),mo(()=>{Qr<=1?(window.removeEventListener("compositionstart",hl),window.removeEventListener("compositionend",vl),Qr=0):Qr--})),ma}function ba(e){const t={isDeactivated:!1};let o=!1;return Bu(()=>{if(t.isDeactivated=!1,!o){o=!0;return}e()}),os(()=>{t.isDeactivated=!0,o||(o=!0)}),t}function nf(e,t){if(!e)return;const o=document.createElement("a");o.href=e,t!==void 0&&(o.download=t),document.body.appendChild(o),o.click(),document.body.removeChild(o)}const qi="n-form-item";function xo(e,{defaultSize:t="medium",mergedSize:o,mergedDisabled:r}={}){const n=Ae(qi,null);Je(qi,null);const a=C(o?()=>o(n):()=>{const{size:d}=e;if(d)return d;if(n){const{mergedSize:c}=n;if(c.value!==void 0)return c.value}return t}),s=C(r?()=>r(n):()=>{const{disabled:d}=e;return d!==void 0?d:n?n.disabled.value:!1}),l=C(()=>{const{status:d}=e;return d||(n==null?void 0:n.mergedValidationStatus.value)});return mo(()=>{n&&n.restoreValidation()}),{mergedSizeRef:a,mergedDisabledRef:s,mergedStatusRef:l,nTriggerFormBlur(){n&&n.handleContentBlur()},nTriggerFormChange(){n&&n.handleContentChange()},nTriggerFormFocus(){n&&n.handleContentFocus()},nTriggerFormInput(){n&&n.handleContentInput()}}}const Co={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:af,fontFamily:lf,lineHeight:sf}=Co,ys=k("body",` margin: 0; font-size: ${af}; font-family: ${lf}; @@ -4555,4 +4555,4 @@ import{z as mu,e as bu,p as xu,i as Fo,f as Bt,g as Dt,a as Ne,s as jo,b as Tn,c height: max(284vh, 284vw); width: max(284vh, 284vw); `)])]);function SC(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const kC=Object.assign(Object.assign({},Re.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},textAlign:{type:String,default:"left"},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),Dy=ie({name:"Watermark",props:kC,setup(e,{slots:t}){const{mergedClsPrefixRef:o}=Ze(e),r=Re("Watermark","-watermark",wC,F0,e,o),n=B(""),a=bo?document.createElement("canvas"):null,s=a?a.getContext("2d"):null,l=B(!1);return as(()=>l.value=!0),$t(()=>{if(!a)return;l.value;const d=SC(s),{xGap:c,yGap:u,width:f,height:v,yOffset:p,xOffset:h,rotate:g,image:b,content:y,fontColor:x,fontStyle:T,fontVariant:$,fontStretch:R,fontWeight:w,fontFamily:S,fontSize:A,lineHeight:I,debug:M}=e,V=(c+f)*d,D=(u+v)*d,E=h*d,K=p*d;if(a.width=V,a.height=D,s){s.translate(0,0);const N=f*d,oe=v*d;if(M&&(s.strokeStyle="grey",s.strokeRect(0,0,N,oe)),s.rotate(g*(Math.PI/180)),b){const q=new Image;q.crossOrigin="anonymous",q.referrerPolicy="no-referrer",q.src=b,q.onload=()=>{s.globalAlpha=e.imageOpacity;const{imageWidth:re,imageHeight:me}=e;s.drawImage(q,E,K,(e.imageWidth||(me?q.width*me/q.height:q.width))*d,(e.imageHeight||(re?q.height*re/q.width:q.height))*d),n.value=a.toDataURL()}}else if(y){M&&(s.strokeStyle="green",s.strokeRect(0,0,N,oe)),s.font=`${T} ${$} ${w} ${R} ${A*d}px/${I*d}px ${S||r.value.self.fontFamily}`,s.fillStyle=x;let q=0;const{textAlign:re}=e;y.split(` -`).map(me=>{const ue=s.measureText(me).width;return q=Math.max(q,ue),{width:ue,line:me}}).forEach(({line:me,width:ue},W)=>{const H=re==="left"?0:re==="center"?(q-ue)/2:q-ue;s.fillText(me,E+H,K+I*d*(W+1))}),n.value=a.toDataURL()}else y||(s.clearRect(0,0,a.width,a.height),n.value=a.toDataURL())}else Ku("watermark","Canvas is not supported in the browser.")}),()=>{var d;const{globalRotate:c,fullscreen:u,zIndex:f}=e,v=o.value,p=c!==0&&u,h="max(142vh, 142vw)",g=i("div",{class:[`${v}-watermark`,c!==0&&`${v}-watermark--global-rotate`,u&&`${v}-watermark--fullscreen`],style:{transform:c?`translateX(-50%) translateY(-50%) rotate(${c}deg)`:void 0,zIndex:p?void 0:f,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:c===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${h} + ${e.width/2}px) calc(${h} + ${e.height/2}px), ${h} ${h}`:h,backgroundImage:e.cross?`url(${n.value}), url(${n.value})`:`url(${n.value})`}});return e.fullscreen&&!c?g:i("div",{class:[`${v}-watermark-container`,c!==0&&`${v}-watermark-container--global-rotate`,u&&`${v}-watermark-container--fullscreen`,e.selectable&&`${v}-watermark-container--selectable`],style:{zIndex:p?f:void 0}},(d=t.default)===null||d===void 0?void 0:d.call(t),g)}}}),RC=ie({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var o;return(o=e.onSetup)===null||o===void 0||o.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),zC={message:yx,notification:Ax,loadingBar:nx,dialog:bm,modal:zx};function PC({providersAndProps:e,configProviderProps:t}){let o=Au(n);const r={app:o};function n(){return i(ip,Qa(t),{default:()=>e.map(({type:l,Provider:d,props:c})=>i(d,Qa(c),{default:()=>i(RC,{onSetup:()=>r[l]=zC[l]()})}))})}let a;return bo&&(a=document.createElement("div"),document.body.appendChild(a),o.mount(a)),Object.assign({unmount:()=>{var l;if(o===null||a===null){go("discrete","unmount call no need because discrete app has been unmounted");return}o.unmount(),(l=a.parentNode)===null||l===void 0||l.removeChild(a),a=null,o=null}},r)}function My(e,{configProviderProps:t,messageProviderProps:o,dialogProviderProps:r,notificationProviderProps:n,loadingBarProviderProps:a,modalProviderProps:s}={}){const l=[];return e.forEach(c=>{switch(c){case"message":l.push({type:c,Provider:Cx,props:o});break;case"notification":l.push({type:c,Provider:Mx,props:n});break;case"dialog":l.push({type:c,Provider:mm,props:r});break;case"loadingBar":l.push({type:c,Provider:rx,props:a});break;case"modal":l.push({type:c,Provider:Rx,props:s})}}),PC({providersAndProps:l,configProviderProps:t})}const $C=()=>({}),TC={name:"Equation",common:_e,self:$C},FC={name:"FloatButtonGroup",common:_e,self(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},Ay={name:"dark",common:_e,Alert:ah,Anchor:ph,AutoComplete:Ih,Avatar:Gs,AvatarGroup:Lh,BackTop:jh,Badge:Vh,Breadcrumb:Kh,Button:ho,ButtonGroup:Sb,Calendar:cv,Card:id,Carousel:Wv,Cascader:qv,Checkbox:Ur,Code:sd,Collapse:tp,CollapseTransition:rp,ColorPicker:fv,DataTable:kp,DatePicker:Mg,Descriptions:em,Dialog:rc,Divider:Cm,Drawer:km,Dropdown:Ia,DynamicInput:jm,DynamicTags:qm,Element:Zm,Empty:Tr,Ellipsis:xd,Equation:TC,Flex:Qm,Form:rb,GradientText:kb,Icon:Xp,IconWrapper:H0,Image:E0,Input:Po,InputNumber:Pb,LegacyTransfer:J0,Layout:Fb,List:Ob,LoadingBar:Db,Log:_b,Menu:Nb,Mention:Hb,Message:wb,Modal:cm,Notification:xb,PageHeader:Wb,Pagination:gd,Popconfirm:qb,Popover:Fr,Popselect:dd,Progress:Rc,QrCode:_x,Radio:wd,Rate:Yb,Result:Qb,Row:I0,Scrollbar:fo,Select:hd,Skeleton:Kx,Slider:e0,Space:vc,Spin:o0,Statistic:n0,Steps:l0,Switch:s0,Table:h0,Tabs:g0,Tag:Ds,Thing:b0,TimePicker:qd,Timeline:C0,Tooltip:ni,Transfer:w0,Tree:Ic,TreeSelect:k0,Typography:z0,Upload:$0,Watermark:T0,Split:Xx,FloatButton:B0,FloatButtonGroup:FC};export{rx as $,dy as A,Sy as B,wy as C,Rp as D,sy as E,oy as F,hp as G,hb as H,Py as I,by as J,uy as K,Bo as L,Oy as M,jv as N,At as O,Em as P,cy as Q,$y as R,Ry as S,ty as T,ey as U,ky as V,Hh as W,JC as X,yy as Y,Cy as Z,xy as _,my as a,Cx as a0,mm as a1,Rx as a2,Mx as a3,py as a4,Ay as a5,ip as a6,My as a7,Dy as a8,Yx as a9,Wx as aa,ay as ab,ly as ac,Iy as ad,By as ae,vy as af,ZC as ag,Ph as ah,QC as ai,iy as aj,Mp as ak,Id as al,ry as am,pb as b,fy as c,XC as d,zy as e,ab as f,A0 as g,cc as h,sg as i,Nd as j,Pp as k,cp as l,dc as m,Rn as n,Fy as o,ny as p,hy as q,ia as r,Ty as s,tC as t,zx as u,jn as v,Ba as w,Rd as x,gy as y,YC as z}; +`).map(me=>{const ue=s.measureText(me).width;return q=Math.max(q,ue),{width:ue,line:me}}).forEach(({line:me,width:ue},W)=>{const H=re==="left"?0:re==="center"?(q-ue)/2:q-ue;s.fillText(me,E+H,K+I*d*(W+1))}),n.value=a.toDataURL()}else y||(s.clearRect(0,0,a.width,a.height),n.value=a.toDataURL())}else Ku("watermark","Canvas is not supported in the browser.")}),()=>{var d;const{globalRotate:c,fullscreen:u,zIndex:f}=e,v=o.value,p=c!==0&&u,h="max(142vh, 142vw)",g=i("div",{class:[`${v}-watermark`,c!==0&&`${v}-watermark--global-rotate`,u&&`${v}-watermark--fullscreen`],style:{transform:c?`translateX(-50%) translateY(-50%) rotate(${c}deg)`:void 0,zIndex:p?void 0:f,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:c===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${h} + ${e.width/2}px) calc(${h} + ${e.height/2}px), ${h} ${h}`:h,backgroundImage:e.cross?`url(${n.value}), url(${n.value})`:`url(${n.value})`}});return e.fullscreen&&!c?g:i("div",{class:[`${v}-watermark-container`,c!==0&&`${v}-watermark-container--global-rotate`,u&&`${v}-watermark-container--fullscreen`,e.selectable&&`${v}-watermark-container--selectable`],style:{zIndex:p?f:void 0}},(d=t.default)===null||d===void 0?void 0:d.call(t),g)}}}),RC=ie({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var o;return(o=e.onSetup)===null||o===void 0||o.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),zC={message:yx,notification:Ax,loadingBar:nx,dialog:bm,modal:zx};function PC({providersAndProps:e,configProviderProps:t}){let o=Au(n);const r={app:o};function n(){return i(ip,Qa(t),{default:()=>e.map(({type:l,Provider:d,props:c})=>i(d,Qa(c),{default:()=>i(RC,{onSetup:()=>r[l]=zC[l]()})}))})}let a;return bo&&(a=document.createElement("div"),document.body.appendChild(a),o.mount(a)),Object.assign({unmount:()=>{var l;if(o===null||a===null){go("discrete","unmount call no need because discrete app has been unmounted");return}o.unmount(),(l=a.parentNode)===null||l===void 0||l.removeChild(a),a=null,o=null}},r)}function My(e,{configProviderProps:t,messageProviderProps:o,dialogProviderProps:r,notificationProviderProps:n,loadingBarProviderProps:a,modalProviderProps:s}={}){const l=[];return e.forEach(c=>{switch(c){case"message":l.push({type:c,Provider:Cx,props:o});break;case"notification":l.push({type:c,Provider:Mx,props:n});break;case"dialog":l.push({type:c,Provider:mm,props:r});break;case"loadingBar":l.push({type:c,Provider:rx,props:a});break;case"modal":l.push({type:c,Provider:Rx,props:s})}}),PC({providersAndProps:l,configProviderProps:t})}const $C=()=>({}),TC={name:"Equation",common:_e,self:$C},FC={name:"FloatButtonGroup",common:_e,self(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},Ay={name:"dark",common:_e,Alert:ah,Anchor:ph,AutoComplete:Ih,Avatar:Gs,AvatarGroup:Lh,BackTop:jh,Badge:Vh,Breadcrumb:Kh,Button:ho,ButtonGroup:Sb,Calendar:cv,Card:id,Carousel:Wv,Cascader:qv,Checkbox:Ur,Code:sd,Collapse:tp,CollapseTransition:rp,ColorPicker:fv,DataTable:kp,DatePicker:Mg,Descriptions:em,Dialog:rc,Divider:Cm,Drawer:km,Dropdown:Ia,DynamicInput:jm,DynamicTags:qm,Element:Zm,Empty:Tr,Ellipsis:xd,Equation:TC,Flex:Qm,Form:rb,GradientText:kb,Icon:Xp,IconWrapper:H0,Image:E0,Input:Po,InputNumber:Pb,LegacyTransfer:J0,Layout:Fb,List:Ob,LoadingBar:Db,Log:_b,Menu:Nb,Mention:Hb,Message:wb,Modal:cm,Notification:xb,PageHeader:Wb,Pagination:gd,Popconfirm:qb,Popover:Fr,Popselect:dd,Progress:Rc,QrCode:_x,Radio:wd,Rate:Yb,Result:Qb,Row:I0,Scrollbar:fo,Select:hd,Skeleton:Kx,Slider:e0,Space:vc,Spin:o0,Statistic:n0,Steps:l0,Switch:s0,Table:h0,Tabs:g0,Tag:Ds,Thing:b0,TimePicker:qd,Timeline:C0,Tooltip:ni,Transfer:w0,Tree:Ic,TreeSelect:k0,Typography:z0,Upload:$0,Watermark:T0,Split:Xx,FloatButton:B0,FloatButtonGroup:FC};export{xy as $,dy as A,Sy as B,wy as C,Rp as D,sy as E,oy as F,hp as G,hb as H,Py as I,by as J,uy as K,Bo as L,Oy as M,jv as N,At as O,Em as P,cy as Q,$y as R,Ry as S,ty as T,ey as U,ky as V,Hh as W,JC as X,yy as Y,Jp as Z,Cy as _,my as a,rx as a0,Cx as a1,mm as a2,Rx as a3,Mx as a4,py as a5,Ay as a6,ip as a7,My as a8,Dy as a9,Yx as aa,Wx as ab,ay as ac,ly as ad,Iy as ae,By as af,vy as ag,ZC as ah,Ph as ai,QC as aj,iy as ak,Mp as al,Id as am,ry as an,pb as b,fy as c,XC as d,zy as e,ab as f,A0 as g,cc as h,sg as i,Nd as j,Pp as k,cp as l,dc as m,Rn as n,Fy as o,ny as p,hy as q,ia as r,Ty as s,tC as t,zx as u,jn as v,Ba as w,Rd as x,gy as y,YC as z}; diff --git a/js/naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js.gz b/js/naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js.gz new file mode 100644 index 00000000..87f87147 Binary files /dev/null and b/js/naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js.gz differ diff --git a/js/naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js.gz b/js/naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js.gz deleted file mode 100644 index 64f2a5e9..00000000 Binary files a/js/naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js.gz and /dev/null differ diff --git a/js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js b/js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js similarity index 100% rename from js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js rename to js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js diff --git a/js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js.gz b/js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js.gz similarity index 100% rename from js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js.gz rename to js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js.gz diff --git a/js/pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js b/js/pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js similarity index 95% rename from js/pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js rename to js/pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js index 3139c271..86f0dbfe 100644 --- a/js/pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js +++ b/js/pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js @@ -1,4 +1,4 @@ -import{i as G}from"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import{U as $,i as T,w as tt,n as et,f as st}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{y as H,k as M,m as q,e as nt,a as E,z,d as ot,q as ct,v as rt,x as ut}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";/*! +import{i as G}from"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import{U as $,i as T,w as tt,n as et,f as st}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{y as H,k as M,m as q,e as nt,a as E,z,d as ot,q as ct,v as rt,x as ut}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";/*! * pinia v2.2.4 * (c) 2024 Eduardo San Martin Morote * @license MIT diff --git a/js/pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js.gz b/js/pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js.gz new file mode 100644 index 00000000..497fb8dc Binary files /dev/null and b/js/pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js.gz differ diff --git a/js/pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js.gz b/js/pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js.gz deleted file mode 100644 index 7133b345..00000000 Binary files a/js/pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js.gz and /dev/null differ diff --git a/js/utils-DJWgFDlo.js b/js/utils-DJWgFDlo.js new file mode 100644 index 00000000..854f2de9 --- /dev/null +++ b/js/utils-DJWgFDlo.js @@ -0,0 +1 @@ +import{u as We,a as Le,b as ve,c as Pe,L as Ie,S as je,A as S,d as Fe}from"./hooks-yKQIzKXx.js";import{c as i}from"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{y as Re,c as _}from"./lodash-es@4.17.21-B-5kLwAl.js";import{k as Be,a as Te,q as Me,v as De}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{w as g,j as Oe}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";const $=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2","#9b8bba","#e098c7","#8fd3e8","#71669e","#cc70af","#7cb4cc","#7EC4FF","#5FCBB0","#49C4BF","#F0C9CA","#34DC90","#3295E0","#EAB62E","#76C3F3","#2DC2C0","#FCC43F","#84CFFF"],A="transparent",E={},k={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},W={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},L={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},v={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},P={itemStyle:{borderWidth:0,borderColor:"#ccc"}},I={itemStyle:{borderWidth:0,borderColor:"#ccc"}},j={itemStyle:{borderWidth:0,borderColor:"#ccc"}},F={itemStyle:{borderWidth:0,borderColor:"#ccc"}},R={itemStyle:{borderWidth:0,borderColor:"#ccc"}},B={itemStyle:{borderWidth:0,borderColor:"#ccc"}},T={itemStyle:{borderWidth:0,borderColor:"#ccc"}},M={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},D={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:"1",color:"#ffffff"},symbolSize:"0",symbol:"circle",smooth:!0,color:["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],label:{color:"#293441"}},O={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},U={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},V={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},q={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},z={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},K={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Z={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},G={textStyle:{color:"#999999"},pageTextStyle:{color:"#999999"}},H={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},X={lineStyle:{color:"#87f7cf",width:1},itemStyle:{color:"#87f7cf",borderWidth:1},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},checkpointStyle:{color:"#fc97af",borderColor:"#fc97af"},label:{color:"#87f7cf"},emphasis:{itemStyle:{color:"#f7f494"},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},label:{color:"#87f7cf"}}},Y={color:["#fc97af","#87f7cf"]},J={backgroundColor:"rgba(255,255,255,0)",dataBackgroundColor:"rgba(114,204,255,1)",fillerColor:"rgba(114,204,255,0.2)",handleColor:"#72ccff",handleSize:"100%",textStyle:{color:"#333333"}},N={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},Ue={color:$,backgroundColor:A,textStyle:E,title:k,line:W,radar:L,bar:v,pie:P,scatter:I,boxplot:j,parallel:F,sankey:R,funnel:B,gauge:T,candlestick:M,graph:D,map:O,geo:U,categoryAxis:V,valueAxis:q,logAxis:z,timeAxis:K,toolbox:Z,legend:G,tooltip:H,timeline:X,visualMap:Y,dataZoom:J,markPoint:N},Ve=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:A,bar:v,boxplot:j,candlestick:M,categoryAxis:V,color:$,dataZoom:J,default:Ue,funnel:B,gauge:T,geo:U,graph:D,legend:G,line:W,logAxis:z,map:O,markPoint:N,parallel:F,pie:P,radar:L,sankey:R,scatter:I,textStyle:E,timeAxis:K,timeline:X,title:k,toolbox:Z,tooltip:H,valueAxis:q,visualMap:Y},Symbol.toStringTag,{value:"Module"})),Q=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089","#516b91","#59c4e6","#edafda","#93b7e3","#a5e7f0","#cbb0e3"],ee="transparent",oe={},te={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},re={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},le={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},ae={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},se={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ce={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ne={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ie={itemStyle:{borderWidth:0,borderColor:"#ccc"}},de={itemStyle:{borderWidth:0,borderColor:"#ccc"}},fe={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ue={itemStyle:{borderWidth:0,borderColor:"#ccc"}},be={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},pe={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:3,symbol:"emptyCircle",smooth:!0,color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],label:{color:"#eee"}},me={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},he={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},ye={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Se={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},ge={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},we={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Ce={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},xe={textStyle:{color:"#333333"}},_e={axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},$e={lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#008acd"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},Ae={color:["#5ab1ef","#e0ffff"]},Ee={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"100%",textStyle:{color:"#333333"}},ke={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},qe={color:Q,backgroundColor:ee,textStyle:oe,title:te,line:re,radar:le,bar:ae,pie:se,scatter:ce,boxplot:ne,parallel:ie,sankey:de,funnel:fe,gauge:ue,candlestick:be,graph:pe,map:me,geo:he,categoryAxis:ye,valueAxis:Se,logAxis:ge,timeAxis:we,toolbox:Ce,legend:xe,tooltip:_e,timeline:$e,visualMap:Ae,dataZoom:Ee,markPoint:ke},ze=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:ee,bar:ae,boxplot:ne,candlestick:be,categoryAxis:ye,color:Q,dataZoom:Ee,default:qe,funnel:fe,gauge:ue,geo:he,graph:pe,legend:xe,line:re,logAxis:ge,map:me,markPoint:ke,parallel:ie,pie:se,radar:le,sankey:de,scatter:ce,textStyle:oe,timeAxis:we,timeline:$e,title:te,toolbox:Ce,tooltip:_e,valueAxis:Se,visualMap:Ae},Symbol.toStringTag,{value:"Module"})),bo=()=>{const e=Object.assign({"/src/app-config/echart-themes/macarons/macarons-dark.json":Ve,"/src/app-config/echart-themes/macarons/macarons.json":ze}),t=/\/([^/]+)\.json$/;return Object.keys(e).reduce((r,l)=>{var s;const a=(s=l.match(t))==null?void 0:s[1];if(a)return r.push({name:a,theme:e[l].default}),r;throw new Error(`[RChart Theme Error]: name ${l} is invalid!`)},[])},po=e=>{const{getAppTheme:t}=We(),{theme:o}=t();return Object.assign({},e,{text:"loading",color:"#c23531",textColor:o?"#fff":"#000",maskColor:o?"rgba(0, 0, 0, 0.8)":"rgba(255, 255, 255, 0.8)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"})},mo=()=>({notMerge:!0,lazyUpdate:!0,silent:!1,replaceMerge:[]}),ho=(e,t)=>{var a;const{domToImageOptions:o,printOptions:r}=t??{},{create:l}=Le(e,{...o,beforeCreate:s=>{var c,n;(c=o==null?void 0:o.beforeCreate)==null||c.call(o,s),(n=window.$loadingBar)==null||n.start()},created(s,c){var n,f;(n=o==null?void 0:o.created)==null||n.call(o,s,c),(f=window.$loadingBar)==null||f.finish()},createdError(s){var c,n;(c=o==null?void 0:o.createdError)==null||c.call(o,s),(n=window.$loadingBar)==null||n.error()}});(a=l("jpeg"))==null||a.then(s=>{const{print:c}=ve(s,{type:"image",base64:!0,targetStyles:["*"],...Re(r,["type","base64"])});c()})},Ke=".n-menu-item-content--selected",Ze="n-menu-item",yo=()=>{const e=u(Ie),t=e==null?void 0:e.querySelector(Ke),o=u(je);let r=0;const l=e==null?void 0:e.querySelector(Ze);if(o){const{height:a}=o.getBoundingClientRect();r=a}if(t&&e){const a=Pe(),{top:s}=e.getBoundingClientRect(),{top:c}=t.getBoundingClientRect(),n=e.scrollTop,f=l?parseInt(window.getComputedStyle(l).marginTop):6;a({top:c-s+n-r-f,left:0,behavior:"smooth"})}};var p=(e=>(e.Windows="Windows",e.MacOS="MacOS",e.Linux="Linux",e.Android="Android",e.IOS="IOS",e.Unknown="Unknown",e))(p||{});const Ge={BASE_URL:"/ray-template/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_OFFICE_PROXY_URL:"https://office.yka.one/",VITE_APP_OFFICE_SCRIPT_URL:"https://office.yka.one/web-apps/apps/api/documents/api.js",VITE_APP_URL:"/"},So=()=>Ge,go=(e,t)=>{const o=document.createElement("a");o.href=e,o.download=t,o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)},y=(e,t)=>Object.prototype.toString.call(e).includes(t),wo=(e=16,t=62)=>{const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[],l=window.crypto||window.msCrypto;let a=0;for(a=0;a{const e=navigator.userAgent;return/windows/i.test(e)?p.Windows:/macintosh|mac os x/i.test(e)?p.MacOS:/linux/i.test(e)?p.Linux:/android/i.test(e)?p.Android:/iphone|ipad|ipod/i.test(e)?p.IOS:p.Unknown},xo=(e,t)=>{const o=e.split("?").filter(Boolean)[0],r=t.split("?").filter(Boolean)[0],l=/\/$/;return o.replace(l,"")===r.replace(l,"")};function _o(e,t="sessionStorage",o){const{prefix:r,prefixKey:l}=o??{},a=r?l||S:"",s=t==="localStorage"?window.localStorage:window.sessionStorage;return!!Object.keys(s).find(c=>c===a+e)}function $o(e,t,o="sessionStorage",r){if(!e){console.error(`[setStorage]: Failed to set stored data: key ${e} is empty`);return}const{prefix:l,prefixKey:a}=r??{},s=l?a||S:"";try{const c=JSON.stringify(t);o==="localStorage"?window.localStorage.setItem(s+e,c):window.sessionStorage.setItem(s+e,c)}catch(c){console.error(`[setStorage]: Failed to set stored data for key '${e}'`,c)}}function Ao(e,t="sessionStorage",o){const{prefix:r,prefixKey:l,defaultValue:a}=o??{},s=r?l||S:"";try{const c=t==="localStorage"?window.localStorage.getItem(s+e):window.sessionStorage.getItem(s+e);return c===null?a??null:JSON.parse(c)}catch(c){return console.error(`[getStorage]: Failed to get stored data for key '${e}'`,c),a??null}}const Eo=(e,t,o)=>{if(!e){console.error(`[removeStorage]: Failed to remove stored data: key ${e} is empty or undefined`);return}const{prefix:r,prefixKey:l}=o??{},a=r?l||S:"",s=Object.keys(window.localStorage),c=Object.keys(window.sessionStorage),n=(f,m)=>{(f?[...c,...s]:m==="localStorage"?s:c).forEach(b=>{e==="__all__"?(window.sessionStorage.removeItem(a+b),window.localStorage.removeItem(a+b)):m==="localStorage"?window.localStorage.removeItem(a+b):window.sessionStorage.removeItem(a+b)})};switch(e){case"__all__":n(!0);break;case"__all_sessionStorage__":n(!1,"sessionStorage");break;case"__all_localStorage__":n(!1,"localStorage");break;default:t==="localStorage"?window.localStorage.removeItem(a+e):window.sessionStorage.removeItem(a+e);break}},ko=(e,t)=>{const r=g(()=>u(e),()=>{const l=u(e);l&&(typeof t=="string"?t.trim().split(" "):t).forEach(s=>{s&&l.classList.add(s)})},{immediate:!0});h(r)},Wo=(e,t)=>{const r=g(()=>u(e),()=>{const l=u(e);if(l)if(t==="removeAllClass"){const a=l.classList;a.forEach(s=>a.remove(s))}else(typeof t=="string"?t.trim().split(" "):t).forEach(s=>{s&&l.classList.remove(s)})},{immediate:!0});h(r)},Lo=(e,t)=>{const o=Be(!1),l=g(()=>u(e),()=>{const a=u(e);if(!a)o.value=!1;else{const s=a.className,c=t.trim().split(" ").filter(n=>n!=="");o.value=c.some(n=>s.includes(n))}},{immediate:!0});return h(l),o},He=e=>{const t=["webkit","moz","ms","o"],o={};return t.forEach(r=>{o[`${r}${e.charAt(0).toUpperCase()}${e.slice(1)}`]=e}),o[e]=e,o},vo=(e,t)=>{const o=(a,s)=>{a.split(";").forEach(c=>{const[n,f]=c.split(":");if(n&&f){const m=n.trim(),C=f.trim();if(n.startsWith("--"))s.style.setProperty(m,C);else if(n.startsWith("-"))s.style.setProperty(n,f);else{const b=He(m);Object.keys(b).forEach(x=>{s.style.setProperty(x,b[x])}),s.style.setProperty(m,C)}}})},l=g(()=>u(e),()=>{const a=u(e);a&&(y(t,"String")?o(t,a):y(t,"Array")?t.forEach(s=>{o(s,a)}):Object.keys(t).forEach(c=>{o(`${c}: ${t[c]}`,a)}))},{immediate:!0});h(l)},Po=(e,t=1)=>{if(e.includes("rgba"))return e;if(e.includes("rgb"))return e.replace("rgb","rgba").replace(")",`, ${t})`);if(e.includes("#")){const o=e.replace("#","");switch(o.length){case 3:return`rgba(${parseInt(o[0]+o[0],16)}, ${parseInt(o[1]+o[1],16)}, ${parseInt(o[2]+o[2],16)}, ${t})`;case 6:return`rgba(${parseInt(o.slice(0,2),16)}, ${parseInt(o.slice(2,4),16)}, ${parseInt(o.slice(4,6),16)}, ${t})`;case 8:return`rgba(${parseInt(o.slice(0,2),16)}, ${parseInt(o.slice(2,4),16)}, ${parseInt(o.slice(4,6),16)}, ${(parseInt(o.slice(6,8),16)/255).toFixed(2)})`;default:return e}}return e},Io=(e,t)=>{const{defaultElement:o}={};if(!e)return o?[o]:null;const r=e.startsWith("attr:")?`[${e.replace("attr:","")}]`:e;try{const l=Array.from(document.querySelectorAll(r));return!l.length&&o?[o]:l}catch(l){return console.error(`[queryElements]: Failed to get elements for selector '${e}'`,l),o?[o]:null}},jo=(e,t="px")=>e==="auto"?e:typeof e=="number"?e.toString()+t:y(e,"String")&&Fe.cssUnit.test(e)?e:e+t,d={precision:8,decimal:"."},w=(e,t,o)=>e!=null&&e.length?e.length===1?i(e[0],d):e.reduce((l,a,s,c)=>(l=o==null?void 0:o(l,a,s,c),l),t):0,Xe=(e,t)=>{const o=Object.assign({},d,t),r=i(e,o),{type:l="number"}=o;return l==="number"?r.value:r.toString()},Fo=(...e)=>e.length===1?i(e[0],d).add(0):w(e,0,(t,o)=>i(t,d).add(o)),Ro=(...e)=>{if(e.length===1)return i(e[0],d).subtract(0);if(e.length===2){const[r,l]=e;return i(r,d).subtract(l)}const t=_(e),o=t.shift();return t.length?w(t,o,(r,l)=>i(r,d).subtract(l)):o},Bo=(...e)=>e.length===1?i(e[0],d).multiply(1):w(e,1,(t,o)=>i(t,d).multiply(o)),To=(...e)=>{if(e.length===1)return i(e[0],d).divide(1);if(e.length===2){const[r,l]=e;return i(r,d).divide(l)}const t=_(e),o=t.shift();return w(t,o,(r,l)=>i(r,d).divide(l))},Mo=(e,t,o)=>{if(t<=1)return[e||0];if(!e)return new Array(t).fill(0);const r=Object.assign({},d,o);return i(e,r).distribute(t).map(a=>Xe(a,r))};function Ye(e,...t){if(Array.isArray(e))e.forEach(o=>Ye(o,...t));else return e(...t)}function u(e,t){var r;if(!e)return t;let o;return typeof e=="function"?o=e():Te(e)?o=((r=e.value)==null?void 0:r.$el)??e.value:o=e,o}function Do(e,t){if(!e){const{defaultElement:o=null}=t??{};return typeof o=="function"?o:()=>o}if(typeof e=="string"||y(e,"Object"))return()=>e;if(typeof e=="function")return e}function h(e){return Me()?(De(e),!0):!1}function Oo(e,t){const o=Oe(e,t);h(o)}const Uo=(e,t,o,r)=>{if(!e||typeof e!="object"){console.warn(`[updateObjectValue]: targetObject must be an object, expected ${typeof e}`);return}Object.hasOwn(e,t)&&(typeof o=="object"?e[t]=Object.assign({},e[t],o):e[t]=o,r==null||r())};export{u as A,_o as B,Xe as C,Mo as D,Fo as E,Ro as F,Bo as G,To as H,So as a,vo as b,Po as c,mo as d,bo as e,jo as f,Ao as g,Ye as h,y as i,go as j,wo as k,po as l,ko as m,h as n,xo as o,ho as p,Io as q,Do as r,$o as s,Eo as t,Uo as u,yo as v,Wo as w,Co as x,Lo as y,Oo as z}; diff --git a/js/utils-DJWgFDlo.js.gz b/js/utils-DJWgFDlo.js.gz new file mode 100644 index 00000000..746b10dc Binary files /dev/null and b/js/utils-DJWgFDlo.js.gz differ diff --git a/js/utils-DMI3ftdH.js b/js/utils-DMI3ftdH.js deleted file mode 100644 index a09d3a33..00000000 --- a/js/utils-DMI3ftdH.js +++ /dev/null @@ -1 +0,0 @@ -import{u as ke,a as Le,b as ve,c as Pe,L as Fe,S as Re,A as Ie,d as Te}from"./hooks-DKN08swi.js";import{c as i}from"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{y as Be,c as je}from"./lodash-es@4.17.21-B-5kLwAl.js";import{k as Me,a as De,q as Ue,v as Oe}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import{w as S,j as Ve}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";const _=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2","#9b8bba","#e098c7","#8fd3e8","#71669e","#cc70af","#7cb4cc","#7EC4FF","#5FCBB0","#49C4BF","#F0C9CA","#34DC90","#3295E0","#EAB62E","#76C3F3","#2DC2C0","#FCC43F","#84CFFF"],A="transparent",E={},W={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},k={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},L={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},v={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},P={itemStyle:{borderWidth:0,borderColor:"#ccc"}},F={itemStyle:{borderWidth:0,borderColor:"#ccc"}},R={itemStyle:{borderWidth:0,borderColor:"#ccc"}},I={itemStyle:{borderWidth:0,borderColor:"#ccc"}},T={itemStyle:{borderWidth:0,borderColor:"#ccc"}},B={itemStyle:{borderWidth:0,borderColor:"#ccc"}},j={itemStyle:{borderWidth:0,borderColor:"#ccc"}},M={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},D={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:"1",color:"#ffffff"},symbolSize:"0",symbol:"circle",smooth:!0,color:["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],label:{color:"#293441"}},U={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},O={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},V={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},q={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},z={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},K={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Z={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},G={textStyle:{color:"#999999"},pageTextStyle:{color:"#999999"}},H={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},N={lineStyle:{color:"#87f7cf",width:1},itemStyle:{color:"#87f7cf",borderWidth:1},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},checkpointStyle:{color:"#fc97af",borderColor:"#fc97af"},label:{color:"#87f7cf"},emphasis:{itemStyle:{color:"#f7f494"},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},label:{color:"#87f7cf"}}},X={color:["#fc97af","#87f7cf"]},Y={backgroundColor:"rgba(255,255,255,0)",dataBackgroundColor:"rgba(114,204,255,1)",fillerColor:"rgba(114,204,255,0.2)",handleColor:"#72ccff",handleSize:"100%",textStyle:{color:"#333333"}},J={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},qe={color:_,backgroundColor:A,textStyle:E,title:W,line:k,radar:L,bar:v,pie:P,scatter:F,boxplot:R,parallel:I,sankey:T,funnel:B,gauge:j,candlestick:M,graph:D,map:U,geo:O,categoryAxis:V,valueAxis:q,logAxis:z,timeAxis:K,toolbox:Z,legend:G,tooltip:H,timeline:N,visualMap:X,dataZoom:Y,markPoint:J},ze=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:A,bar:v,boxplot:R,candlestick:M,categoryAxis:V,color:_,dataZoom:Y,default:qe,funnel:B,gauge:j,geo:O,graph:D,legend:G,line:k,logAxis:z,map:U,markPoint:J,parallel:I,pie:P,radar:L,sankey:T,scatter:F,textStyle:E,timeAxis:K,timeline:N,title:W,toolbox:Z,tooltip:H,valueAxis:q,visualMap:X},Symbol.toStringTag,{value:"Module"})),Q=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089","#516b91","#59c4e6","#edafda","#93b7e3","#a5e7f0","#cbb0e3"],ee="transparent",te={},oe={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},re={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},le={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},se={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},ae={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ce={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ne={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ie={itemStyle:{borderWidth:0,borderColor:"#ccc"}},de={itemStyle:{borderWidth:0,borderColor:"#ccc"}},fe={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ue={itemStyle:{borderWidth:0,borderColor:"#ccc"}},be={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},he={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:3,symbol:"emptyCircle",smooth:!0,color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],label:{color:"#eee"}},me={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},pe={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},ye={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Se={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},ge={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},we={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Ce={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},xe={textStyle:{color:"#333333"}},$e={axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},_e={lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#008acd"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},Ae={color:["#5ab1ef","#e0ffff"]},Ee={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"100%",textStyle:{color:"#333333"}},We={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},Ke={color:Q,backgroundColor:ee,textStyle:te,title:oe,line:re,radar:le,bar:se,pie:ae,scatter:ce,boxplot:ne,parallel:ie,sankey:de,funnel:fe,gauge:ue,candlestick:be,graph:he,map:me,geo:pe,categoryAxis:ye,valueAxis:Se,logAxis:ge,timeAxis:we,toolbox:Ce,legend:xe,tooltip:$e,timeline:_e,visualMap:Ae,dataZoom:Ee,markPoint:We},Ze=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:ee,bar:se,boxplot:ne,candlestick:be,categoryAxis:ye,color:Q,dataZoom:Ee,default:Ke,funnel:fe,gauge:ue,geo:pe,graph:he,legend:xe,line:re,logAxis:ge,map:me,markPoint:We,parallel:ie,pie:ae,radar:le,sankey:de,scatter:ce,textStyle:te,timeAxis:we,timeline:_e,title:oe,toolbox:Ce,tooltip:$e,valueAxis:Se,visualMap:Ae},Symbol.toStringTag,{value:"Module"})),mt=()=>{const e=Object.assign({"/src/app-config/echart-themes/macarons/macarons-dark.json":ze,"/src/app-config/echart-themes/macarons/macarons.json":Ze}),o=/\/([^/]+)\.json$/;return Object.keys(e).reduce((r,l)=>{var s;const a=(s=l.match(o))==null?void 0:s[1];if(a)return r.push({name:a,theme:e[l].default}),r;throw new Error(`[RChart Theme Error]: name ${l} is invalid!`)},[])},pt=e=>{const{getAppTheme:o}=ke(),{theme:t}=o();return Object.assign({},e,{text:"loading",color:"#c23531",textColor:t?"#fff":"#000",maskColor:t?"rgba(0, 0, 0, 0.8)":"rgba(255, 255, 255, 0.8)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"})},yt=()=>({notMerge:!0,lazyUpdate:!0,silent:!1,replaceMerge:[]}),St=(e,o)=>{var a;const{domToImageOptions:t,printOptions:r}=o??{},{create:l}=Le(e,{...t,beforeCreate:s=>{var c,n;(c=t==null?void 0:t.beforeCreate)==null||c.call(t,s),(n=window.$loadingBar)==null||n.start()},created(s,c){var n,u;(n=t==null?void 0:t.created)==null||n.call(t,s,c),(u=window.$loadingBar)==null||u.finish()},createdError(s){var c,n;(c=t==null?void 0:t.createdError)==null||c.call(t,s),(n=window.$loadingBar)==null||n.error()}});(a=l("jpeg"))==null||a.then(s=>{const{print:c}=ve(s,{type:"image",base64:!0,targetStyles:["*"],...Be(r,["type","base64"])});c()})},Ge=".n-menu-item-content--selected",He=".n-menu-item",Ne=".n-menu-item-content--child-active",gt=()=>{const e=f(Fe),o=(e==null?void 0:e.querySelector(Ge))||(e==null?void 0:e.querySelector(Ne)),t=f(Re);let r=0;const l=e==null?void 0:e.querySelector(He);if(t){const{height:a}=t.getBoundingClientRect();r=a}if(o&&e){const a=o.getBoundingClientRect(),s=e.getBoundingClientRect();if(!(a.top>=s.top+r&&a.bottom<=s.bottom)){const n=Pe(),u=e.scrollTop,h=l?parseInt(window.getComputedStyle(l).marginTop):6;n({top:a.top-s.top+u-r-h,left:0,behavior:"smooth"})}}};var b=(e=>(e.Windows="Windows",e.MacOS="MacOS",e.Linux="Linux",e.Android="Android",e.IOS="IOS",e.Unknown="Unknown",e))(b||{});const Xe={BASE_URL:"/ray-template/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_OFFICE_PROXY_URL:"https://office.yka.one/",VITE_APP_OFFICE_SCRIPT_URL:"https://office.yka.one/web-apps/apps/api/documents/api.js",VITE_APP_URL:"/"},wt=()=>Xe,Ct=(e,o)=>{const t=document.createElement("a");t.href=e,t.download=o,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)},y=(e,o)=>Object.prototype.toString.call(e).includes(o),xt=(e=16,o=62)=>{const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[],l=window.crypto||window.msCrypto;let a=0;for(a=0;a{const e=navigator.userAgent;return/windows/i.test(e)?b.Windows:/macintosh|mac os x/i.test(e)?b.MacOS:/linux/i.test(e)?b.Linux:/android/i.test(e)?b.Android:/iphone|ipad|ipod/i.test(e)?b.IOS:b.Unknown},_t=(e,o)=>{const t=e.split("?").filter(Boolean)[0],r=o.split("?").filter(Boolean)[0],l=/\/$/;return t.replace(l,"")===r.replace(l,"")},g=(e="sessionStorage")=>e==="localStorage"?window.localStorage:window.sessionStorage,m=(e,o)=>{const{prefix:t,prefixKey:r}=o??{};return t?(r||Ie)+e:e};function At(e,o="sessionStorage",t){const r=m(e,t),l=g(o);return Object.keys(l).includes(r)}function Et(e,o,t="sessionStorage",r){if(!e){console.error("[setStorage]: Failed to set stored data: key is empty");return}const l=m(e,r),a=g(t);try{a.setItem(l,JSON.stringify(o))}catch(s){console.error(`[setStorage]: Failed to set stored data for key '${e}'`,s)}}function Wt(e,o="sessionStorage",t){const r=m(e,t),l=g(o),{defaultValue:a}=t??{};try{const s=l.getItem(r);return s===null?a??null:JSON.parse(s)}catch(s){return console.error(`[getStorage]: Failed to get stored data for key '${e}'`,s),a??null}}const kt=(e,o,t)=>{if(!e){console.error("[removeStorage]: Failed to remove stored data: key is empty");return}const r=m(e,t),l=window.localStorage,a=window.sessionStorage,s=c=>{Object.keys(c).forEach(n=>c.removeItem(m(n,t)))};switch(e){case"__all__":s(l),s(a);break;case"__all_sessionStorage__":s(a);break;case"__all_localStorage__":s(l);break;default:g(o).removeItem(r)}},Lt=(e,o)=>{const r=S(()=>f(e),()=>{const l=f(e);l&&(typeof o=="string"?o.trim().split(" "):o).forEach(s=>{s&&l.classList.add(s)})},{immediate:!0});p(r)},vt=(e,o)=>{const r=S(()=>f(e),()=>{const l=f(e);if(l)if(o==="removeAllClass"){const a=l.classList;a.forEach(s=>a.remove(s))}else(typeof o=="string"?o.trim().split(" "):o).forEach(s=>{s&&l.classList.remove(s)})},{immediate:!0});p(r)},Pt=(e,o)=>{const t=Me(!1),l=S(()=>f(e),()=>{const a=f(e);if(!a)t.value=!1;else{const s=a.className,c=o.trim().split(" ").filter(n=>n!=="");t.value=c.some(n=>s.includes(n))}},{immediate:!0});return p(l),t},Ye=e=>{const o=["webkit","moz","ms","o"],t={};return o.forEach(r=>{t[`${r}${e.charAt(0).toUpperCase()}${e.slice(1)}`]=e}),t[e]=e,t},Ft=(e,o)=>{const t=(a,s)=>{a.split(";").forEach(c=>{const[n,u]=c.split(":");if(n&&u){const h=n.trim(),C=u.trim();if(n.startsWith("--"))s.style.setProperty(h,C);else if(n.startsWith("-"))s.style.setProperty(n,u);else{const x=Ye(h);Object.keys(x).forEach($=>{s.style.setProperty($,x[$])}),s.style.setProperty(h,C)}}})},l=S(()=>f(e),()=>{const a=f(e);a&&(y(o,"String")?t(o,a):y(o,"Array")?o.forEach(s=>{t(s,a)}):Object.keys(o).forEach(c=>{t(`${c}: ${o[c]}`,a)}))},{immediate:!0});p(l)},Rt=(e,o=1,t)=>{if(!e)return e;if(e.includes("rgba"))return e.replace(/rgba\((.*?),(.*?),(.*?),.*?\)/,`rgba($1,$2,$3,${o})`);if(e.includes("rgb("))return e.replace("rgb","rgba").replace(")",`, ${o})`);if(e.includes("hsla"))return e.replace(/hsla\((.*?),(.*?),(.*?),.*?\)/,`hsla($1,$2,$3,${o})`);if(e.includes("hsl("))return e.replace("hsl","hsla").replace(")",`, ${o})`);if(e.startsWith("#")){const r=e.replace("#","");try{switch(r.length){case 3:return`rgba(${parseInt(r[0]+r[0],16)}, ${parseInt(r[1]+r[1],16)}, ${parseInt(r[2]+r[2],16)}, ${o})`;case 6:return`rgba(${parseInt(r.slice(0,2),16)}, ${parseInt(r.slice(2,4),16)}, ${parseInt(r.slice(4,6),16)}, ${o})`;case 8:return`rgba(${parseInt(r.slice(0,2),16)}, ${parseInt(r.slice(2,4),16)}, ${parseInt(r.slice(4,6),16)}, ${o})`;default:return t||e}}catch{return e}}return e},It=(e,o)=>{const{defaultElement:t}={};if(!e)return t?[t]:null;const r=e.startsWith("attr:")?`[${e.replace("attr:","")}]`:e;try{const l=Array.from(document.querySelectorAll(r));return!l.length&&t?[t]:l}catch(l){return console.error(`[queryElements]: Failed to get elements for selector '${e}'`,l),t?[t]:null}},Tt=(e,o="px")=>e==="auto"?e:typeof e=="number"?e.toString()+o:y(e,"String")&&Te.cssUnit.test(e)?e:e+o,d={precision:8,decimal:"."},w=(e,o,t)=>{if(!(e!=null&&e.length))return i(0,d);if(e.length===1)return i(e[0],d);const r=i(o,d);return e.reduce(t,r)},Je=(e,o)=>{const t={...d,...o},r=i(e,t),{type:l="number"}=t;return l==="number"?r.value:r.toString()},Bt=(...e)=>e.length?e.length===1?i(e[0],d).add(0):w(e,0,(o,t)=>o.add(t)):i(0,d),jt=(...e)=>{if(!e.length)return i(0,d);if(e.length===1)return i(e[0],d).subtract(0);if(e.length===2){const[r,l]=e;return i(r,d).subtract(l)}const[o,...t]=e;return w(t,o,(r,l)=>r.subtract(l))},Mt=(...e)=>e.length===1?i(e[0],d).multiply(1):w(e,1,(o,t)=>i(o,d).multiply(t)),Dt=(...e)=>{if(e.length===1)return i(e[0],d).divide(1);if(e.length===2){const[r,l]=e;return i(r,d).divide(l)}const o=je(e),t=o.shift();return w(o,t,(r,l)=>i(r,d).divide(l))},Ut=(e,o,t)=>{if(o<=1)return[e||0];if(!e)return new Array(o).fill(0);const r={...d,...t};return i(e,r).distribute(o).map(a=>Je(a,r))};function Qe(e,...o){if(Array.isArray(e))e.forEach(t=>Qe(t,...o));else return e(...o)}function f(e,o){var r;if(!e)return o;let t;return typeof e=="function"?t=e():De(e)?t=((r=e.value)==null?void 0:r.$el)??e.value:t=e,t}function Ot(e,o){if(!e){const{defaultElement:t=null}=o??{};return typeof t=="function"?t:()=>t}if(typeof e=="string"||y(e,"Object"))return()=>e;if(typeof e=="function")return e}function p(e){return Ue()?(Oe(e),!0):!1}function Vt(e,o){const t=Ve(e,o);p(t)}const qt=(e,o,t,r)=>{if(!e||typeof e!="object"){console.warn(`[updateObjectValue]: targetObject must be an object, received ${typeof e}`);return}Object.hasOwn(e,o)&&(typeof t=="object"&&t!==null?e[o]={...e[o],...t}:e[o]=t,r==null||r())};export{f as A,At as B,Je as C,Ut as D,Bt as E,jt as F,Mt as G,Dt as H,wt as a,Ft as b,Rt as c,yt as d,mt as e,Tt as f,Wt as g,Qe as h,y as i,Ct as j,xt as k,pt as l,Lt as m,p as n,_t as o,St as p,It as q,Ot as r,Et as s,kt as t,qt as u,gt as v,vt as w,$t as x,Pt as y,Vt as z}; diff --git a/js/utils-DMI3ftdH.js.gz b/js/utils-DMI3ftdH.js.gz deleted file mode 100644 index f64d59b3..00000000 Binary files a/js/utils-DMI3ftdH.js.gz and /dev/null differ diff --git a/js/vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js b/js/vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js similarity index 100% rename from js/vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js rename to js/vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js diff --git a/js/vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js.gz b/js/vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js.gz similarity index 100% rename from js/vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js.gz rename to js/vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js.gz diff --git a/js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js b/js/vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js similarity index 95% rename from js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js rename to js/vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js index 3f66e62d..ec6be261 100644 --- a/js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js +++ b/js/vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js @@ -1 +1 @@ -import{k as c,l as d,e as j}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import{w as C,f as p,d as q,k as S,v as b,t as T}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{o as m,a as v}from"./evtd@0.2.4-CI_DDEu_.js";function K(e){const t=c(!!e.value);if(t.value)return d(t);const n=C(e,o=>{o&&(t.value=!0,n())});return d(t)}function Q(e){const t=p(e),n=c(t.value);return C(t,o=>{n.value=o}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(o){e.set(o)}}}function B(){return q()!==null}const E=typeof window<"u";let k,y;const D=()=>{var e,t;k=E?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,y=!1,k!==void 0?k.then(()=>{y=!0}):y=!0};D();function z(e){if(y)return;let t=!1;S(()=>{y||k==null||k.then(()=>{t||e()})}),b(()=>{t=!0})}const h=c(null);function I(e){if(e.clientX>0||e.clientY>0)h.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:o,width:u,height:a}=t.getBoundingClientRect();n>0||o>0?h.value={x:n+u/2,y:o+a/2}:h.value={x:0,y:0}}else h.value=null}}let g=0,_=!0;function A(){if(!E)return d(c(null));g===0&&m("click",document,I,!0);const e=()=>{g+=1};return _&&(_=B())?(T(e),b(()=>{g-=1,g===0&&v("click",document,I,!0)})):e(),d(h)}const F=c(void 0);let M=0;function H(){F.value=Date.now()}let L=!0;function G(e){if(!E)return d(c(!1));const t=c(!1);let n=null;function o(){n!==null&&window.clearTimeout(n)}function u(){o(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}M===0&&m("click",window,H,!0);const a=()=>{M+=1,m("click",window,u,!0)};return L&&(L=B())?(T(a),b(()=>{M-=1,M===0&&v("click",window,H,!0),v("click",window,u,!0),o()})):a(),d(t)}function J(e,t){return C(e,n=>{n!==void 0&&(t.value=n)}),p(()=>e.value===void 0?t.value:e.value)}function O(){const e=c(!1);return S(()=>{e.value=!0}),d(e)}function W(e,t){return p(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const R=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Z(){return R}const $={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function U(e){return`(min-width: ${e}px)`}const w={};function N(e=$){if(!E)return p(()=>[]);if(typeof window.matchMedia!="function")return p(()=>[]);const t=c({}),n=Object.keys(e),o=(u,a)=>{u.matches?t.value[a]=!0:t.value[a]=!1};return n.forEach(u=>{const a=e[u];let s,r;w[a]===void 0?(s=window.matchMedia(U(a)),s.addEventListener?s.addEventListener("change",i=>{r.forEach(f=>{f(i,u)})}):s.addListener&&s.addListener(i=>{r.forEach(f=>{f(i,u)})}),r=new Set,w[a]={mql:s,cbs:r}):(s=w[a].mql,r=w[a].cbs),r.add(o),s.matches&&r.forEach(i=>{i(s,u)})}),b(()=>{n.forEach(u=>{const{cbs:a}=w[e[u]];a.has(o)&&a.delete(o)})}),p(()=>{const{value:u}=t;return n.filter(a=>u[a])})}function ee(e={},t){const n=j({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:o,keyup:u}=e,a=i=>{switch(i.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}o!==void 0&&Object.keys(o).forEach(f=>{if(f!==i.key)return;const l=o[f];if(typeof l=="function")l(i);else{const{stop:x=!1,prevent:P=!1}=l;x&&i.stopPropagation(),P&&i.preventDefault(),l.handler(i)}})},s=i=>{switch(i.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}u!==void 0&&Object.keys(u).forEach(f=>{if(f!==i.key)return;const l=u[f];if(typeof l=="function")l(i);else{const{stop:x=!1,prevent:P=!1}=l;x&&i.stopPropagation(),P&&i.preventDefault(),l.handler(i)}})},r=()=>{(t===void 0||t.value)&&(m("keydown",document,a),m("keyup",document,s)),t!==void 0&&C(t,i=>{i?(m("keydown",document,a),m("keyup",document,s)):(v("keydown",document,a),v("keyup",document,s))})};return B()?(T(r),b(()=>{(t===void 0||t.value)&&(v("keydown",document,a),v("keyup",document,s))})):r(),d(n)}export{Z as a,J as b,W as c,ee as d,G as e,A as f,N as g,K as h,O as i,z as o,Q as u}; +import{k as c,l as d,e as j}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{w as C,f as p,d as q,k as S,v as b,t as T}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{o as m,a as v}from"./evtd@0.2.4-CI_DDEu_.js";function K(e){const t=c(!!e.value);if(t.value)return d(t);const n=C(e,o=>{o&&(t.value=!0,n())});return d(t)}function Q(e){const t=p(e),n=c(t.value);return C(t,o=>{n.value=o}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(o){e.set(o)}}}function B(){return q()!==null}const E=typeof window<"u";let k,y;const D=()=>{var e,t;k=E?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,y=!1,k!==void 0?k.then(()=>{y=!0}):y=!0};D();function z(e){if(y)return;let t=!1;S(()=>{y||k==null||k.then(()=>{t||e()})}),b(()=>{t=!0})}const h=c(null);function I(e){if(e.clientX>0||e.clientY>0)h.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:o,width:u,height:a}=t.getBoundingClientRect();n>0||o>0?h.value={x:n+u/2,y:o+a/2}:h.value={x:0,y:0}}else h.value=null}}let g=0,_=!0;function A(){if(!E)return d(c(null));g===0&&m("click",document,I,!0);const e=()=>{g+=1};return _&&(_=B())?(T(e),b(()=>{g-=1,g===0&&v("click",document,I,!0)})):e(),d(h)}const F=c(void 0);let M=0;function H(){F.value=Date.now()}let L=!0;function G(e){if(!E)return d(c(!1));const t=c(!1);let n=null;function o(){n!==null&&window.clearTimeout(n)}function u(){o(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}M===0&&m("click",window,H,!0);const a=()=>{M+=1,m("click",window,u,!0)};return L&&(L=B())?(T(a),b(()=>{M-=1,M===0&&v("click",window,H,!0),v("click",window,u,!0),o()})):a(),d(t)}function J(e,t){return C(e,n=>{n!==void 0&&(t.value=n)}),p(()=>e.value===void 0?t.value:e.value)}function O(){const e=c(!1);return S(()=>{e.value=!0}),d(e)}function W(e,t){return p(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const R=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Z(){return R}const $={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function U(e){return`(min-width: ${e}px)`}const w={};function N(e=$){if(!E)return p(()=>[]);if(typeof window.matchMedia!="function")return p(()=>[]);const t=c({}),n=Object.keys(e),o=(u,a)=>{u.matches?t.value[a]=!0:t.value[a]=!1};return n.forEach(u=>{const a=e[u];let s,r;w[a]===void 0?(s=window.matchMedia(U(a)),s.addEventListener?s.addEventListener("change",i=>{r.forEach(f=>{f(i,u)})}):s.addListener&&s.addListener(i=>{r.forEach(f=>{f(i,u)})}),r=new Set,w[a]={mql:s,cbs:r}):(s=w[a].mql,r=w[a].cbs),r.add(o),s.matches&&r.forEach(i=>{i(s,u)})}),b(()=>{n.forEach(u=>{const{cbs:a}=w[e[u]];a.has(o)&&a.delete(o)})}),p(()=>{const{value:u}=t;return n.filter(a=>u[a])})}function ee(e={},t){const n=j({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:o,keyup:u}=e,a=i=>{switch(i.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}o!==void 0&&Object.keys(o).forEach(f=>{if(f!==i.key)return;const l=o[f];if(typeof l=="function")l(i);else{const{stop:x=!1,prevent:P=!1}=l;x&&i.stopPropagation(),P&&i.preventDefault(),l.handler(i)}})},s=i=>{switch(i.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}u!==void 0&&Object.keys(u).forEach(f=>{if(f!==i.key)return;const l=u[f];if(typeof l=="function")l(i);else{const{stop:x=!1,prevent:P=!1}=l;x&&i.stopPropagation(),P&&i.preventDefault(),l.handler(i)}})},r=()=>{(t===void 0||t.value)&&(m("keydown",document,a),m("keyup",document,s)),t!==void 0&&C(t,i=>{i?(m("keydown",document,a),m("keyup",document,s)):(v("keydown",document,a),v("keyup",document,s))})};return B()?(T(r),b(()=>{(t===void 0||t.value)&&(v("keydown",document,a),v("keyup",document,s))})):r(),d(n)}export{Z as a,J as b,W as c,ee as d,G as e,A as f,N as g,K as h,O as i,z as o,Q as u}; diff --git a/js/vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js.gz b/js/vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js.gz new file mode 100644 index 00000000..312d3a4f Binary files /dev/null and b/js/vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js.gz differ diff --git a/js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js.gz b/js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js.gz deleted file mode 100644 index 0d586c59..00000000 Binary files a/js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js.gz and /dev/null differ diff --git a/js/vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js b/js/vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js similarity index 100% rename from js/vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js rename to js/vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js diff --git a/js/vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js.gz b/js/vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js.gz similarity index 100% rename from js/vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js.gz rename to js/vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js.gz diff --git a/js/vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js b/js/vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js similarity index 99% rename from js/vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js rename to js/vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js index aa81cea2..58ee42f0 100644 --- a/js/vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js +++ b/js/vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js @@ -1 +1 @@ -import{u as h,k as b,v as y,e as X,a as Y,x as Z,l as K}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import{j as P,w as V,f as q,i as k,P as ee}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{d as te,t as ne,c as j}from"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import{s as g}from"./screenfull@5.2.0-DmMZCkhi.js";const z=(n,{manual:e,ready:t=!0,refreshDeps:s=[],refreshDepsAction:i})=>{const o=b(!1);return P(()=>{!e&&n.options.refreshDeps!==!0&&(o.value=h(t))}),s instanceof Array?V([o,...s],([r])=>{r&&!e&&r&&(i?i():n.refresh())},{deep:!0,immediate:!1}):V(o,r=>{!e&&r&&(i?i():n.refresh())}),{name:"autoRunPlugin",onBefore:()=>{if(!h(t))return{stopNow:!0}}}};z.onInit=({ready:n=!0,manual:e})=>({loading:!e&&h(n)});const T=new Map,se=(n,e,t)=>{const s=T.get(n);s!=null&&s.timer&&clearTimeout(s.timer);let i;e>-1&&(i=setTimeout(()=>{T.delete(n)},e)),T.set(n,{...t,timer:i})},ie=n=>T.get(n),F=new Map,re=n=>F.get(n),oe=(n,e)=>{F.set(n,e),e.then(t=>(F.delete(n),t)).catch(t=>{throw F.delete(n),t})},S={},le=[],ae=(n,e)=>{S[n]&&(S[n].forEach(t=>t(e)),le.forEach(t=>t({type:n,data:e})))},C=(n,e)=>(S[n]||(S[n]=[]),S[n].push(e),function(){const s=S[n].indexOf(e);S[n].splice(s,1)}),ue=(n,{cacheKey:e,cacheTime:t=5*60*1e3,staleTime:s=0,setCache:i,getCache:o})=>{const r=b(),u=b(),c=(l,f)=>{i?i(f):se(l,t,f),ae(l,f.data)},d=(l,f=[])=>o?o(f):ie(l);return P(()=>{if(!e)return;const l=d(e);l&&Object.hasOwnProperty.call(l,"data")&&(n.state.data=l.data,n.state.params=l.params,(s===-1||new Date().getTime()-l.time<=s)&&(n.state.loading=!1)),r.value=C(e,f=>{n.setState({data:f})})}),y(()=>{var l;(l=r.value)==null||l.call(r)}),e?{name:"cachePlugin",onBefore:l=>{const f=d(e,l);return!f||!Object.hasOwnProperty.call(f,"data")?{}:s===-1||new Date().getTime()-f.time<=s?{loading:!1,data:f==null?void 0:f.data,returnNow:!0}:{data:f==null?void 0:f.data}},onRequest:(l,f)=>{let v=re(e);return v&&v!==u.value?{servicePromise:v}:(v=l(...f),u.value=v,oe(e,v),{servicePromise:v})},onSuccess:(l,f)=>{var v;e&&((v=r.value)==null||v.call(r),c(e,{data:l,params:f,time:new Date().getTime()}),r.value=C(e,a=>{n.setState({data:a})}))},onMutate:l=>{var f;e&&((f=r.value)==null||f.call(r),c(e,{data:l,params:n.state.params,time:new Date().getTime()}),r.value=C(e,v=>{n.setState({data:v})}))}}:{}},ce=(n,{debounceWait:e,debounceLeading:t,debounceTrailing:s,debounceMaxWait:i})=>{const o=b(),r=q(()=>{const u={},c=h(t),d=h(s),l=h(i);return c!==void 0&&(u.leading=c),d!==void 0&&(u.trailing=d),l!==void 0&&(u.maxWait=l),u});return P(u=>{if(h(e)){const c=n.runAsync.bind(n);o.value=te(d=>{d()},h(e),r.value),n.runAsync=(...d)=>new Promise((l,f)=>{var v;(v=o.value)==null||v.call(o,()=>{c(...d).then(l).catch(f)})}),u(()=>{var d;(d=o.value)==null||d.cancel(),n.runAsync=c})}}),h(e)?{name:"debouncePlugin",onCancel:()=>{var u;(u=o.value)==null||u.cancel()}}:{}};var fe=Object.defineProperty,de=(n,e,t)=>e in n?fe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,I=(n,e,t)=>(de(n,typeof e!="symbol"?e+"":e,t),t);class he{constructor(){I(this,"table",{}),I(this,"hashTable",{})}insert(e){const t=Symbol(e);return this.table[e]=!0,this.hashTable[t]=e,t}find(e){return this.hashTable[e]}}new he;var ve=Object.defineProperty,me=(n,e,t)=>e in n?ve(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Q=(n,e,t)=>(me(n,typeof e!="symbol"?e+"":e,t),t);class pe{constructor(){Q(this,"requestInstances",new Map),Q(this,"listeners",[])}emit(e){this.listeners.forEach(t=>t(e))}subscribe(e){return this.listeners.push(e),()=>{const t=this.listeners.indexOf(e);this.listeners.splice(t,1)}}insert(e,t){this.requestInstances.set(e,{...t}),this.emit({key:e,...t})}update(e,t){this.has(e)&&this.requestInstances.set(e,{...this.requestInstances.get(e),...t})}has(e){return this.requestInstances.has(e)}reset(e){if(this.requestInstances.has(e)){const t=this.requestInstances.get(e);this.requestInstances.clear(),this.insert(e,t)}else this.requestInstances.clear()}getAll(){return this.requestInstances}}new pe;const be=(n,{loadingDelay:e})=>{const t=b(),s=()=>{t.value&&(clearTimeout(h(t.value)),t.value=void 0)};return{name:"loadingDelayPlugin",onFinally:()=>{s();const i=h(e);i&&(n.setState({loading:!0}),t.value=setTimeout(()=>{n.setState({loading:!1})},i))},onError:()=>{s()}}};function B(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const ge=!!(typeof window<"u"&&window.document&&window.document.createElement);function U(){return B()?document.visibilityState!=="hidden":!0}const O=[];function _e(n){return O.push(n),function(){const t=O.indexOf(n);O.splice(t,1)}}if(B()){const n=()=>{if(U())for(let e=0;e{let i;const o=b(),r=b(0),u=()=>{var c;i&&clearTimeout(i),(c=o.value)==null||c.call(o)};return P(()=>{h(e)||u()}),h(e)?{name:"pollingPlugin",onBefore:()=>{u()},onError:()=>{r.value+=1},onSuccess:()=>{r.value=0},onFinally:()=>{s===-1||s!==-1&&r.value<=s?i=setTimeout(()=>{!t&&!U()?o.value=_e(()=>{n.refresh()}):n.refresh()},h(e)):r.value=0},onCancel:()=>{u()}}:{}};function Pe(n,e){let t=!1;return(...s)=>{t||(t=!0,n(...s),setTimeout(()=>{t=!1},e))}}function Ee(){return B()&&typeof navigator.onLine<"u"?navigator.onLine:!0}const D=[];function Re(n){return D.push(n),function(){const t=D.indexOf(n);t>-1&&D.splice(t,1)}}if(ge){const n=()=>{if(!(!U()||!Ee()))for(let e=0;e{const s=b(),i=()=>{var o;(o=s.value)==null||o.call(s)};return P(o=>{if(h(e)){const r=Pe(n.refresh.bind(n),h(t));s.value=Re(()=>{r()})}o(()=>{i()})}),y(()=>{i()}),{name:"refreshOnWindowFocusPlugin"}},Oe=(n,{retryInterval:e,retryCount:t})=>{const s=b(),i=b(0),o=b(!1);return t?{name:"retryPlugin",onBefore:()=>{o.value||(i.value=0),o.value=!1,s.value&&clearTimeout(s.value)},onSuccess:()=>{i.value=0},onError:()=>{if(i.value+=1,t===-1||i.value<=t){const r=e??Math.min(1e3*2**i.value,3e4);s.value=setTimeout(()=>{o.value=!0,n.refresh()},r)}else i.value=0},onCancel:()=>{i.value=0,s.value&&clearTimeout(s.value)}}:{}},De=(n,{throttleWait:e,throttleLeading:t,throttleTrailing:s})=>{const i=q(()=>{const r={};return h(t)!==void 0&&(r.leading=h(t)),h(s)!==void 0&&(r.trailing=h(s)),r}),o=q(()=>ne(r=>{r()},h(e),i.value));return P(r=>{if(h(e)){const u=n.runAsync.bind(n);n.runAsync=(...c)=>new Promise((d,l)=>{var f;(f=o.value)==null||f.call(o,()=>{u(...c).then(d).catch(l)})}),r(()=>{var c;n.runAsync=u,(c=o.value)==null||c.cancel()})}}),h(e)?{name:"throttlePlugin",onCancel:()=>{var r;(r=o.value)==null||r.cancel()}}:{}},G=n=>typeof n=="function",Ae=n=>typeof n=="boolean";var Te=Object.defineProperty,Fe=(n,e,t)=>e in n?Te(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,A=(n,e,t)=>(Fe(n,typeof e!="symbol"?e+"":e,t),t);class qe{constructor(e,t,s,i={}){A(this,"pluginImpls"),A(this,"count",0),A(this,"state",{loading:!1,params:void 0,data:void 0,error:void 0}),A(this,"previousValidData"),this.serviceRef=e,this.options=t,this.setUpdateData=s,this.initState=i,this.state={...this.state,loading:!t.manual,...i}}setState(e={}){this.state={...this.state,...e},this.setUpdateData(this.state)}setData(e,t){console.warn("Please use 'setFetchState' instead of 'setData'"),t instanceof Array?t.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[t]=e,this.setUpdateData(e,t))}setFetchState(e,t){t instanceof Array?t.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[t]=e,this.setUpdateData(e,t))}runPluginHandler(e,...t){var s,i,o;const r=(o=(i=(s=this.pluginImpls)==null?void 0:s.map(u=>{var c;return(c=u[e])==null?void 0:c.call(u,...t)}))!=null?i:[])==null?void 0:o.filter(Boolean);return Object.assign({},...r)}async runAsync(...e){var t,s,i,o,r,u,c,d,l,f,v;this.count+=1;const a=this.count,{stopNow:w=!1,returnNow:m=!1,..._}=this.runPluginHandler("onBefore",e);if(w)return new Promise(()=>{});if(this.setState({loading:!0,params:e,..._}),m)return Promise.resolve(_.data);try{(s=(t=this.options).onBefore)==null||s.call(t,e)}catch(p){return this.setState({error:p,loading:!1}),(o=(i=this.options).onError)==null||o.call(i,p,e),this.runPluginHandler("onError",p,e),new Promise(()=>{})}try{let{servicePromise:p}=this.runPluginHandler("onRequest",this.serviceRef.value,e);const J=$=>{var L,H,N,M;if(a!==this.count)return new Promise(()=>{});const E=this.options.formatResult?this.options.formatResult($):$;return this.setState({data:E,error:void 0,loading:!1}),(H=(L=this.options).onSuccess)==null||H.call(L,E,e),this.runPluginHandler("onSuccess",E,e),this.previousValidData=E,(M=(N=this.options).onFinally)==null||M.call(N,e,E,void 0),a===this.count&&this.runPluginHandler("onFinally",e,E,void 0),E};p||(p=this.serviceRef.value(...e));const W=await p;return J(W)}catch(p){if(a!==this.count)return new Promise(()=>{});throw this.setState({error:p,loading:!1}),(u=(r=this.options).onError)==null||u.call(r,p,e),this.runPluginHandler("onError",p,e),(G((c=this.options)==null?void 0:c.rollbackOnError)&&((d=this.options)!=null&&d.rollbackOnError(e))||Ae((l=this.options)==null?void 0:l.rollbackOnError)&&this.options.rollbackOnError)&&this.setState({data:this.previousValidData}),(v=(f=this.options).onFinally)==null||v.call(f,e,void 0,p),a===this.count&&this.runPluginHandler("onFinally",e,void 0,p),p}}run(...e){this.runAsync(...e).catch(t=>{this.options.onError||console.error(t)})}cancel(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")}refresh(){this.run(...this.state.params||[])}refreshAsync(){return this.runAsync(...this.state.params||[])}mutate(e){const t=G(e)?e(this.state.data):e;this.runPluginHandler("onMutate",t),this.setState({data:t})}}const Ce=Symbol("USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY");function xe(n){return Object.keys(n).filter(t=>["data","loading","params","error"].includes(t)).length===4}function ye(n,e={},t=[]){const s=k(Ce,{}),{initialData:i=void 0,manual:o=!1,ready:r=!0,...u}={...s??{},...e??{}},c={manual:o,ready:r,initialData:i,...u},d=b(n),l=X({data:i,loading:!1,params:void 0,error:void 0}),f=(m,_)=>{_?l[_]=m:xe(m)&&(l.data=m.data,l.loading=m.loading,l.error=m.error,l.params=m.params)},v=t.map(m=>{var _;return(_=m==null?void 0:m.onInit)==null?void 0:_.call(m,c)}).filter(Boolean),a=new qe(d,c,f,Object.assign({},...v,l));a.options=c,a.pluginImpls=t.map(m=>m(a,c));const w=q(()=>Y(r)?r.value:r);if(P(()=>{if(!o){const m=a.state.params||e.defaultParams||[];w.value&&a.options.refreshDeps===!0&&d.value&&a.run(...m)}}),!o&&a.options.refreshDeps!==!0){const m=a.state.params||e.defaultParams||[];h(r)&&a.run(...m)}return y(()=>{a.cancel()}),{...Z(l),cancel:a.cancel.bind(a),refresh:a.refresh.bind(a),refreshAsync:a.refreshAsync.bind(a),run:a.run.bind(a),runAsync:a.runAsync.bind(a),mutate:a.mutate.bind(a)}}const Be=(n,e)=>function(s,i={},o=[]){let r=n;const u=e||[];for(let c=u.length;c--;)r=u[c](r);return r(s,i,o)};function Qe(n,e,t){var s;const i=(s=[null,ce,be,we,Se,De,z,ue,Oe])==null?void 0:s.filter(Boolean);return Be(ye,e==null?void 0:e.use)(n,e,[...i])}const Ue=!!(typeof window<"u"&&window.document&&window.document.createElement);function x(n,e){var t,s;if(!Ue)return;if(!n)return e;let i;return typeof n=="function"?i=n():Y(n)?i=(s=(t=n.value)==null?void 0:t.$el)!=null?s:n.value:i=n,i}var $e=Object.defineProperty,Le=(n,e,t)=>e in n?$e(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,R=(n,e,t)=>(Le(n,typeof e!="symbol"?e+"":e,t),t);class He{constructor(){R(this,"subscriptions",new Map),R(this,"emitEffectCache",new Map),R(this,"useSubscription",(e,t)=>{const s=b();P(i=>{var o,r;s.value=t;function u(d){s.value&&s.value(d)}const c=(r=(o=this.subscriptions)==null?void 0:o.get(e))!=null?r:[];c.push(u),this.subscriptions.set(e,c),this.emitEffect(e),i(()=>{this.subscriptions.delete(e)})})}),R(this,"emit",(e,...t)=>{if(typeof e=="string"||typeof e=="number"){const s=this.subscriptions.get(e);s==null||s.forEach(i=>{i==null||i({params:j(t),event:e})}),this.emitEffectCache.set(e,{params:j(t),event:e})}else throw new TypeError("event must be string or number !")}),R(this,"emitEffect",e=>{const t=this.emitEffectCache.get(e),s=this.subscriptions.get(e);t&&(s==null||s.forEach(i=>{i==null||i({...t})}))}),R(this,"removeListener",e=>{this.subscriptions.delete(e)}),R(this,"clear",()=>{this.subscriptions.clear()}),this.clear()}}new He;const Ge=(n,e)=>{const{onExit:t,onEnter:s,defaultElement:i=document.documentElement}={},o=b(t),r=b(s),u=b(!1),c=a=>{u.value=a},d=()=>{var a,w,m;if(g.isEnabled){const _=x(n,i);if(!g.element)(a=o.value)==null||a.call(o),c(!1),g.off("change",d);else{const p=g.element===_;p?(w=r.value)==null||w.call(r):(m=o.value)==null||m.call(o),c(p)}}},l=()=>{const a=x(n,i);if(a&&g.isEnabled)try{g.request(a),g.on("change",d)}catch(w){console.error(w)}},f=()=>{const a=x(n,i);g.isEnabled&&g.element===a&&g.exit()},v=()=>{u.value?f():l()};return ee(()=>{g.isEnabled&&g.off("change",d)}),[K(u),{enterFullscreen:l,exitFullscreen:f,toggleFullscreen:v,isEnabled:g.isEnabled}]};export{Qe as a,Ge as u}; +import{u as h,k as b,v as y,e as X,a as Y,x as Z,l as K}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{j as P,w as V,f as q,i as k,P as ee}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{d as te,t as ne,c as j}from"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import{s as g}from"./screenfull@5.2.0-DmMZCkhi.js";const z=(n,{manual:e,ready:t=!0,refreshDeps:s=[],refreshDepsAction:i})=>{const o=b(!1);return P(()=>{!e&&n.options.refreshDeps!==!0&&(o.value=h(t))}),s instanceof Array?V([o,...s],([r])=>{r&&!e&&r&&(i?i():n.refresh())},{deep:!0,immediate:!1}):V(o,r=>{!e&&r&&(i?i():n.refresh())}),{name:"autoRunPlugin",onBefore:()=>{if(!h(t))return{stopNow:!0}}}};z.onInit=({ready:n=!0,manual:e})=>({loading:!e&&h(n)});const T=new Map,se=(n,e,t)=>{const s=T.get(n);s!=null&&s.timer&&clearTimeout(s.timer);let i;e>-1&&(i=setTimeout(()=>{T.delete(n)},e)),T.set(n,{...t,timer:i})},ie=n=>T.get(n),F=new Map,re=n=>F.get(n),oe=(n,e)=>{F.set(n,e),e.then(t=>(F.delete(n),t)).catch(t=>{throw F.delete(n),t})},S={},le=[],ae=(n,e)=>{S[n]&&(S[n].forEach(t=>t(e)),le.forEach(t=>t({type:n,data:e})))},C=(n,e)=>(S[n]||(S[n]=[]),S[n].push(e),function(){const s=S[n].indexOf(e);S[n].splice(s,1)}),ue=(n,{cacheKey:e,cacheTime:t=5*60*1e3,staleTime:s=0,setCache:i,getCache:o})=>{const r=b(),u=b(),c=(l,f)=>{i?i(f):se(l,t,f),ae(l,f.data)},d=(l,f=[])=>o?o(f):ie(l);return P(()=>{if(!e)return;const l=d(e);l&&Object.hasOwnProperty.call(l,"data")&&(n.state.data=l.data,n.state.params=l.params,(s===-1||new Date().getTime()-l.time<=s)&&(n.state.loading=!1)),r.value=C(e,f=>{n.setState({data:f})})}),y(()=>{var l;(l=r.value)==null||l.call(r)}),e?{name:"cachePlugin",onBefore:l=>{const f=d(e,l);return!f||!Object.hasOwnProperty.call(f,"data")?{}:s===-1||new Date().getTime()-f.time<=s?{loading:!1,data:f==null?void 0:f.data,returnNow:!0}:{data:f==null?void 0:f.data}},onRequest:(l,f)=>{let v=re(e);return v&&v!==u.value?{servicePromise:v}:(v=l(...f),u.value=v,oe(e,v),{servicePromise:v})},onSuccess:(l,f)=>{var v;e&&((v=r.value)==null||v.call(r),c(e,{data:l,params:f,time:new Date().getTime()}),r.value=C(e,a=>{n.setState({data:a})}))},onMutate:l=>{var f;e&&((f=r.value)==null||f.call(r),c(e,{data:l,params:n.state.params,time:new Date().getTime()}),r.value=C(e,v=>{n.setState({data:v})}))}}:{}},ce=(n,{debounceWait:e,debounceLeading:t,debounceTrailing:s,debounceMaxWait:i})=>{const o=b(),r=q(()=>{const u={},c=h(t),d=h(s),l=h(i);return c!==void 0&&(u.leading=c),d!==void 0&&(u.trailing=d),l!==void 0&&(u.maxWait=l),u});return P(u=>{if(h(e)){const c=n.runAsync.bind(n);o.value=te(d=>{d()},h(e),r.value),n.runAsync=(...d)=>new Promise((l,f)=>{var v;(v=o.value)==null||v.call(o,()=>{c(...d).then(l).catch(f)})}),u(()=>{var d;(d=o.value)==null||d.cancel(),n.runAsync=c})}}),h(e)?{name:"debouncePlugin",onCancel:()=>{var u;(u=o.value)==null||u.cancel()}}:{}};var fe=Object.defineProperty,de=(n,e,t)=>e in n?fe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,I=(n,e,t)=>(de(n,typeof e!="symbol"?e+"":e,t),t);class he{constructor(){I(this,"table",{}),I(this,"hashTable",{})}insert(e){const t=Symbol(e);return this.table[e]=!0,this.hashTable[t]=e,t}find(e){return this.hashTable[e]}}new he;var ve=Object.defineProperty,me=(n,e,t)=>e in n?ve(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Q=(n,e,t)=>(me(n,typeof e!="symbol"?e+"":e,t),t);class pe{constructor(){Q(this,"requestInstances",new Map),Q(this,"listeners",[])}emit(e){this.listeners.forEach(t=>t(e))}subscribe(e){return this.listeners.push(e),()=>{const t=this.listeners.indexOf(e);this.listeners.splice(t,1)}}insert(e,t){this.requestInstances.set(e,{...t}),this.emit({key:e,...t})}update(e,t){this.has(e)&&this.requestInstances.set(e,{...this.requestInstances.get(e),...t})}has(e){return this.requestInstances.has(e)}reset(e){if(this.requestInstances.has(e)){const t=this.requestInstances.get(e);this.requestInstances.clear(),this.insert(e,t)}else this.requestInstances.clear()}getAll(){return this.requestInstances}}new pe;const be=(n,{loadingDelay:e})=>{const t=b(),s=()=>{t.value&&(clearTimeout(h(t.value)),t.value=void 0)};return{name:"loadingDelayPlugin",onFinally:()=>{s();const i=h(e);i&&(n.setState({loading:!0}),t.value=setTimeout(()=>{n.setState({loading:!1})},i))},onError:()=>{s()}}};function B(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const ge=!!(typeof window<"u"&&window.document&&window.document.createElement);function U(){return B()?document.visibilityState!=="hidden":!0}const O=[];function _e(n){return O.push(n),function(){const t=O.indexOf(n);O.splice(t,1)}}if(B()){const n=()=>{if(U())for(let e=0;e{let i;const o=b(),r=b(0),u=()=>{var c;i&&clearTimeout(i),(c=o.value)==null||c.call(o)};return P(()=>{h(e)||u()}),h(e)?{name:"pollingPlugin",onBefore:()=>{u()},onError:()=>{r.value+=1},onSuccess:()=>{r.value=0},onFinally:()=>{s===-1||s!==-1&&r.value<=s?i=setTimeout(()=>{!t&&!U()?o.value=_e(()=>{n.refresh()}):n.refresh()},h(e)):r.value=0},onCancel:()=>{u()}}:{}};function Pe(n,e){let t=!1;return(...s)=>{t||(t=!0,n(...s),setTimeout(()=>{t=!1},e))}}function Ee(){return B()&&typeof navigator.onLine<"u"?navigator.onLine:!0}const D=[];function Re(n){return D.push(n),function(){const t=D.indexOf(n);t>-1&&D.splice(t,1)}}if(ge){const n=()=>{if(!(!U()||!Ee()))for(let e=0;e{const s=b(),i=()=>{var o;(o=s.value)==null||o.call(s)};return P(o=>{if(h(e)){const r=Pe(n.refresh.bind(n),h(t));s.value=Re(()=>{r()})}o(()=>{i()})}),y(()=>{i()}),{name:"refreshOnWindowFocusPlugin"}},Oe=(n,{retryInterval:e,retryCount:t})=>{const s=b(),i=b(0),o=b(!1);return t?{name:"retryPlugin",onBefore:()=>{o.value||(i.value=0),o.value=!1,s.value&&clearTimeout(s.value)},onSuccess:()=>{i.value=0},onError:()=>{if(i.value+=1,t===-1||i.value<=t){const r=e??Math.min(1e3*2**i.value,3e4);s.value=setTimeout(()=>{o.value=!0,n.refresh()},r)}else i.value=0},onCancel:()=>{i.value=0,s.value&&clearTimeout(s.value)}}:{}},De=(n,{throttleWait:e,throttleLeading:t,throttleTrailing:s})=>{const i=q(()=>{const r={};return h(t)!==void 0&&(r.leading=h(t)),h(s)!==void 0&&(r.trailing=h(s)),r}),o=q(()=>ne(r=>{r()},h(e),i.value));return P(r=>{if(h(e)){const u=n.runAsync.bind(n);n.runAsync=(...c)=>new Promise((d,l)=>{var f;(f=o.value)==null||f.call(o,()=>{u(...c).then(d).catch(l)})}),r(()=>{var c;n.runAsync=u,(c=o.value)==null||c.cancel()})}}),h(e)?{name:"throttlePlugin",onCancel:()=>{var r;(r=o.value)==null||r.cancel()}}:{}},G=n=>typeof n=="function",Ae=n=>typeof n=="boolean";var Te=Object.defineProperty,Fe=(n,e,t)=>e in n?Te(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,A=(n,e,t)=>(Fe(n,typeof e!="symbol"?e+"":e,t),t);class qe{constructor(e,t,s,i={}){A(this,"pluginImpls"),A(this,"count",0),A(this,"state",{loading:!1,params:void 0,data:void 0,error:void 0}),A(this,"previousValidData"),this.serviceRef=e,this.options=t,this.setUpdateData=s,this.initState=i,this.state={...this.state,loading:!t.manual,...i}}setState(e={}){this.state={...this.state,...e},this.setUpdateData(this.state)}setData(e,t){console.warn("Please use 'setFetchState' instead of 'setData'"),t instanceof Array?t.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[t]=e,this.setUpdateData(e,t))}setFetchState(e,t){t instanceof Array?t.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[t]=e,this.setUpdateData(e,t))}runPluginHandler(e,...t){var s,i,o;const r=(o=(i=(s=this.pluginImpls)==null?void 0:s.map(u=>{var c;return(c=u[e])==null?void 0:c.call(u,...t)}))!=null?i:[])==null?void 0:o.filter(Boolean);return Object.assign({},...r)}async runAsync(...e){var t,s,i,o,r,u,c,d,l,f,v;this.count+=1;const a=this.count,{stopNow:w=!1,returnNow:m=!1,..._}=this.runPluginHandler("onBefore",e);if(w)return new Promise(()=>{});if(this.setState({loading:!0,params:e,..._}),m)return Promise.resolve(_.data);try{(s=(t=this.options).onBefore)==null||s.call(t,e)}catch(p){return this.setState({error:p,loading:!1}),(o=(i=this.options).onError)==null||o.call(i,p,e),this.runPluginHandler("onError",p,e),new Promise(()=>{})}try{let{servicePromise:p}=this.runPluginHandler("onRequest",this.serviceRef.value,e);const J=$=>{var L,H,N,M;if(a!==this.count)return new Promise(()=>{});const E=this.options.formatResult?this.options.formatResult($):$;return this.setState({data:E,error:void 0,loading:!1}),(H=(L=this.options).onSuccess)==null||H.call(L,E,e),this.runPluginHandler("onSuccess",E,e),this.previousValidData=E,(M=(N=this.options).onFinally)==null||M.call(N,e,E,void 0),a===this.count&&this.runPluginHandler("onFinally",e,E,void 0),E};p||(p=this.serviceRef.value(...e));const W=await p;return J(W)}catch(p){if(a!==this.count)return new Promise(()=>{});throw this.setState({error:p,loading:!1}),(u=(r=this.options).onError)==null||u.call(r,p,e),this.runPluginHandler("onError",p,e),(G((c=this.options)==null?void 0:c.rollbackOnError)&&((d=this.options)!=null&&d.rollbackOnError(e))||Ae((l=this.options)==null?void 0:l.rollbackOnError)&&this.options.rollbackOnError)&&this.setState({data:this.previousValidData}),(v=(f=this.options).onFinally)==null||v.call(f,e,void 0,p),a===this.count&&this.runPluginHandler("onFinally",e,void 0,p),p}}run(...e){this.runAsync(...e).catch(t=>{this.options.onError||console.error(t)})}cancel(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")}refresh(){this.run(...this.state.params||[])}refreshAsync(){return this.runAsync(...this.state.params||[])}mutate(e){const t=G(e)?e(this.state.data):e;this.runPluginHandler("onMutate",t),this.setState({data:t})}}const Ce=Symbol("USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY");function xe(n){return Object.keys(n).filter(t=>["data","loading","params","error"].includes(t)).length===4}function ye(n,e={},t=[]){const s=k(Ce,{}),{initialData:i=void 0,manual:o=!1,ready:r=!0,...u}={...s??{},...e??{}},c={manual:o,ready:r,initialData:i,...u},d=b(n),l=X({data:i,loading:!1,params:void 0,error:void 0}),f=(m,_)=>{_?l[_]=m:xe(m)&&(l.data=m.data,l.loading=m.loading,l.error=m.error,l.params=m.params)},v=t.map(m=>{var _;return(_=m==null?void 0:m.onInit)==null?void 0:_.call(m,c)}).filter(Boolean),a=new qe(d,c,f,Object.assign({},...v,l));a.options=c,a.pluginImpls=t.map(m=>m(a,c));const w=q(()=>Y(r)?r.value:r);if(P(()=>{if(!o){const m=a.state.params||e.defaultParams||[];w.value&&a.options.refreshDeps===!0&&d.value&&a.run(...m)}}),!o&&a.options.refreshDeps!==!0){const m=a.state.params||e.defaultParams||[];h(r)&&a.run(...m)}return y(()=>{a.cancel()}),{...Z(l),cancel:a.cancel.bind(a),refresh:a.refresh.bind(a),refreshAsync:a.refreshAsync.bind(a),run:a.run.bind(a),runAsync:a.runAsync.bind(a),mutate:a.mutate.bind(a)}}const Be=(n,e)=>function(s,i={},o=[]){let r=n;const u=e||[];for(let c=u.length;c--;)r=u[c](r);return r(s,i,o)};function Qe(n,e,t){var s;const i=(s=[null,ce,be,we,Se,De,z,ue,Oe])==null?void 0:s.filter(Boolean);return Be(ye,e==null?void 0:e.use)(n,e,[...i])}const Ue=!!(typeof window<"u"&&window.document&&window.document.createElement);function x(n,e){var t,s;if(!Ue)return;if(!n)return e;let i;return typeof n=="function"?i=n():Y(n)?i=(s=(t=n.value)==null?void 0:t.$el)!=null?s:n.value:i=n,i}var $e=Object.defineProperty,Le=(n,e,t)=>e in n?$e(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,R=(n,e,t)=>(Le(n,typeof e!="symbol"?e+"":e,t),t);class He{constructor(){R(this,"subscriptions",new Map),R(this,"emitEffectCache",new Map),R(this,"useSubscription",(e,t)=>{const s=b();P(i=>{var o,r;s.value=t;function u(d){s.value&&s.value(d)}const c=(r=(o=this.subscriptions)==null?void 0:o.get(e))!=null?r:[];c.push(u),this.subscriptions.set(e,c),this.emitEffect(e),i(()=>{this.subscriptions.delete(e)})})}),R(this,"emit",(e,...t)=>{if(typeof e=="string"||typeof e=="number"){const s=this.subscriptions.get(e);s==null||s.forEach(i=>{i==null||i({params:j(t),event:e})}),this.emitEffectCache.set(e,{params:j(t),event:e})}else throw new TypeError("event must be string or number !")}),R(this,"emitEffect",e=>{const t=this.emitEffectCache.get(e),s=this.subscriptions.get(e);t&&(s==null||s.forEach(i=>{i==null||i({...t})}))}),R(this,"removeListener",e=>{this.subscriptions.delete(e)}),R(this,"clear",()=>{this.subscriptions.clear()}),this.clear()}}new He;const Ge=(n,e)=>{const{onExit:t,onEnter:s,defaultElement:i=document.documentElement}={},o=b(t),r=b(s),u=b(!1),c=a=>{u.value=a},d=()=>{var a,w,m;if(g.isEnabled){const _=x(n,i);if(!g.element)(a=o.value)==null||a.call(o),c(!1),g.off("change",d);else{const p=g.element===_;p?(w=r.value)==null||w.call(r):(m=o.value)==null||m.call(o),c(p)}}},l=()=>{const a=x(n,i);if(a&&g.isEnabled)try{g.request(a),g.on("change",d)}catch(w){console.error(w)}},f=()=>{const a=x(n,i);g.isEnabled&&g.element===a&&g.exit()},v=()=>{u.value?f():l()};return ee(()=>{g.isEnabled&&g.off("change",d)}),[K(u),{enterFullscreen:l,exitFullscreen:f,toggleFullscreen:v,isEnabled:g.isEnabled}]};export{Qe as a,Ge as u}; diff --git a/js/vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js.gz b/js/vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js.gz new file mode 100644 index 00000000..56f65f41 Binary files /dev/null and b/js/vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js.gz differ diff --git a/js/vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js.gz b/js/vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js.gz deleted file mode 100644 index f0350d58..00000000 Binary files a/js/vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js.gz and /dev/null differ diff --git a/js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js b/js/vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js similarity index 99% rename from js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js rename to js/vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js index 634621cf..1ca87329 100644 --- a/js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js +++ b/js/vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js @@ -1,4 +1,4 @@ -import{e as C,l as W,b as T,j as p,f as D,m as Rt,g as Ae,r as A,c as k,d as F,h as _e,a as $,s as J,i as he,u as X,v as K}from"./@intlify_shared@9.13.1-BxU0OzX2.js";import{s as Lt,D as pt,u as x,N as vt,a as Pt,C as Ft,c as Ct,b as me,d as fe,e as St,g as Dt,f as yt,p as ge,t as Ee,M as be,h as de,i as Oe,j as Te,n as Ie,k as kt,l as At,m as Me,r as ht,o as Mt,q as Vt,v as Ut,w as Ne,x as xt,y as wt}from"./@intlify_core-base@9.13.1-C6DqbPB6.js";import{c as Wt}from"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import{l as ne,h as Ve,i as jt,k as Yt,P as Gt,f as w,w as z,F as Ue,d as re,b as Ht,T as Bt}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{y as $t,a as Xt,k as Jt,s as Kt}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";/*! +import{e as C,l as W,b as T,j as p,f as D,m as Rt,g as Ae,r as A,c as k,d as F,h as _e,a as $,s as J,i as he,u as X,v as K}from"./@intlify_shared@9.13.1-BxU0OzX2.js";import{s as Lt,D as pt,u as x,N as vt,a as Pt,C as Ft,c as Ct,b as me,d as fe,e as St,g as Dt,f as yt,p as ge,t as Ee,M as be,h as de,i as Oe,j as Te,n as Ie,k as kt,l as At,m as Me,r as ht,o as Mt,q as Vt,v as Ut,w as Ne,x as xt,y as wt}from"./@intlify_core-base@9.13.1-C6DqbPB6.js";import{c as Wt}from"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import{l as ne,h as Ve,i as jt,k as Yt,P as Gt,f as w,w as z,F as Ue,d as re,b as Ht,T as Bt}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{y as $t,a as Xt,k as Jt,s as Kt}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";/*! * vue-i18n v9.13.1 * (c) 2024 kazuya kawaguchi * Released under the MIT License. diff --git a/js/vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js.gz b/js/vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js.gz new file mode 100644 index 00000000..a7988710 Binary files /dev/null and b/js/vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js.gz differ diff --git a/js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js.gz b/js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js.gz deleted file mode 100644 index 84d79ceb..00000000 Binary files a/js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js.gz and /dev/null differ diff --git a/js/vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js b/js/vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js similarity index 99% rename from js/vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js rename to js/vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js index d0221723..d93b55f0 100644 --- a/js/vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js +++ b/js/vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js @@ -1,4 +1,4 @@ -import{s as nt,u as W,g as rt,e as ot,k as st}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import{i as B,n as ct,P as it,M as at,L as lt,l as Ge,f as N,h as qe,x as le,w as ut}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";/*! +import{s as nt,u as W,g as rt,e as ot,k as st}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{i as B,n as ct,P as it,M as at,L as lt,l as Ge,f as N,h as qe,x as le,w as ut}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";/*! * vue-router v4.3.2 * (c) 2024 Eduardo San Martin Morote * @license MIT diff --git a/js/vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js.gz b/js/vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js.gz new file mode 100644 index 00000000..73e9e157 Binary files /dev/null and b/js/vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js.gz differ diff --git a/js/vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js.gz b/js/vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js.gz deleted file mode 100644 index 0174ddec..00000000 Binary files a/js/vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js.gz and /dev/null differ diff --git a/js/vue3-next-qrcode@2.0.10_typescript@5.6.3-BAi83mm5.js.gz b/js/vue3-next-qrcode@2.0.10_typescript@5.6.3-BAi83mm5.js.gz deleted file mode 100644 index dff0cbb5..00000000 Binary files a/js/vue3-next-qrcode@2.0.10_typescript@5.6.3-BAi83mm5.js.gz and /dev/null differ diff --git a/js/vue3-next-qrcode@2.0.10_typescript@5.6.3-BAi83mm5.js b/js/vue3-next-qrcode@2.0.10_typescript@5.6.3-et2AKeWS.js similarity index 99% rename from js/vue3-next-qrcode@2.0.10_typescript@5.6.3-BAi83mm5.js rename to js/vue3-next-qrcode@2.0.10_typescript@5.6.3-et2AKeWS.js index fd345a67..eecbfb44 100644 --- a/js/vue3-next-qrcode@2.0.10_typescript@5.6.3-BAi83mm5.js +++ b/js/vue3-next-qrcode@2.0.10_typescript@5.6.3-et2AKeWS.js @@ -1 +1 @@ -import{l as be,f as ye,j as Ce,k as Ae,v as Pe,b as ot,m as Be,w as De}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{k as qt}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";const ke={maskColor:{type:String,default:"rgba(255, 255, 255, 0.96)"},watchText:{type:Boolean,default:!0},status:{type:String},errorDescription:{type:[String,Object],default:"二维码已过期"},errorActionDescription:{type:String,default:"重新加载"},text:{type:String,required:!0},size:{type:Number,default:160},margin:{type:Number,default:12},correctLevel:{type:Number,default:1,validator:o=>[0,1,2,3].includes(o)},maskPattern:{type:Number},version:{type:Number},components:{type:Object,default:()=>({data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}})},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#ffffff"},autoColor:{type:Boolean,default:!0},backgroundImage:{type:String},backgroundDimming:{type:String,default:"rgba(0, 0, 0, 0)"},gifBackgroundURL:{type:String},gifBackground:{type:ArrayBuffer},whiteMargin:{type:Boolean,default:!0},logoImage:{type:String},logoScale:{type:Number,default:.4},logoMargin:{type:Number,default:6},logoCornerRadius:{type:Number,default:8},dotScale:{type:Number,default:1},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onReload:{type:[Function,Array],default:null}};function Te(o,t,e){const r=ne(t),i=o-1;let n=0;switch(e){case Z.L:n=rt[i][0];break;case Z.M:n=rt[i][1];break;case Z.Q:n=rt[i][2];break;case Z.H:n=rt[i][3];break}return r<=n}function Ee(o,t){for(var e=1,r=ne(o),i=0,n=rt.length;irt.length)throw new Error("Too long data");return e}function ne(o){var t=encodeURI(o).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=Number(o)?3:0)}class Ie{constructor(t){this.mode=V.MODE_8BIT_BYTE,this.parsedData=[],this.data=t;const e=[];for(let r=0,i=this.data.length;r65536?(n[0]=240|(s&1835008)>>>18,n[1]=128|(s&258048)>>>12,n[2]=128|(s&4032)>>>6,n[3]=128|s&63):s>2048?(n[0]=224|(s&61440)>>>12,n[1]=128|(s&4032)>>>6,n[2]=128|s&63):s>128?(n[0]=192|(s&1984)>>>6,n[1]=128|s&63):n[0]=s,e.push(n)}this.parsedData=Array.prototype.concat.apply([],e),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}getLength(){return this.parsedData.length}write(t){for(let e=0,r=this.parsedData.length;e40)throw new Error(`Invalid QR version: ${this.typeNumber}`);if(!Te(this.typeNumber,t,this.errorCorrectLevel))throw new Error(`Data is too long for QR version: ${this.typeNumber}`)}const e=new Ie(t);this.dataList.push(e),this.dataCache=void 0}isDark(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(`${t},${e}`);return this.modules[t][e]}getModuleCount(){return this.moduleCount}make(){this.makeImpl(!1,this.getBestMaskPattern())}makeImpl(t,e){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(let r=0;r=7&&this.setupTypeNumber(t),this.dataCache==null&&(this.dataCache=ht.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)}setupPositionProbePattern(t,e){for(let r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(let i=-1;i<=7;i++)e+i<=-1||this.moduleCount<=e+i||(0<=r&&r<=6&&(i==0||i==6)||0<=i&&i<=6&&(r==0||r==6)||2<=r&&r<=4&&2<=i&&i<=4?this.modules[t+r][e+i]=!0:this.modules[t+r][e+i]=!1)}getBestMaskPattern(){if(Number.isInteger(this.maskPattern)&&Object.values(st).includes(this.maskPattern))return this.maskPattern;let t=0,e=0;for(let r=0;r<8;r++){this.makeImpl(!0,r);const i=L.getLostPoint(this);(r==0||t>i)&&(t=i,e=r)}return e}setupTimingPattern(){for(let t=8;t>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=i}for(var r=0;r<18;r++){var i=!t&&(e>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=i}}setupTypeInfo(t,e){const r=this.errorCorrectLevel<<3|e,i=L.getBCHTypeInfo(r);for(var n=0;n<15;n++){var s=!t&&(i>>n&1)==1;n<6?this.modules[n][8]=s:n<8?this.modules[n+1][8]=s:this.modules[this.moduleCount-15+n][8]=s}for(var n=0;n<15;n++){var s=!t&&(i>>n&1)==1;n<8?this.modules[8][this.moduleCount-n-1]=s:n<9?this.modules[8][15-n-1+1]=s:this.modules[8][15-n-1]=s}this.modules[this.moduleCount-8][8]=!t}mapData(t,e){let r=-1,i=this.moduleCount-1,n=7,s=0;for(let a=this.moduleCount-1;a>0;a-=2)for(a==6&&a--;;){for(let l=0;l<2;l++)if(this.modules[i][a-l]==null){let c=!1;s>>n&1)==1),L.getMask(e,i,a-l)&&(c=!c),this.modules[i][a-l]=c,n--,n==-1&&(s++,n=7)}if(i+=r,i<0||this.moduleCount<=i){i-=r,r=-r;break}}}static createData(t,e,r){const i=at.getRSBlocks(t,e),n=new xe;for(var s=0;sa*8)throw new Error(`code length overflow. (${n.getLengthInBits()}>${a*8})`);for(n.getLengthInBits()+4<=a*8&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=a*8||(n.put(ht.PAD0,8),n.getLengthInBits()>=a*8));)n.put(ht.PAD1,8);return ht.createBytes(n,i)}static createBytes(t,e){let r=0,i=0,n=0;const s=new Array(e.length),a=new Array(e.length);for(var l=0;l=0?g.get(P):0}}let u=0;for(var c=0;c=0;)e^=L.G15<=0;)e^=L.G18<>>=1;return e}static getPatternPosition(t){return L.PATTERN_POSITION_TABLE[t-1]}static getMask(t,e,r){switch(t){case st.PATTERN000:return(e+r)%2==0;case st.PATTERN001:return e%2==0;case st.PATTERN010:return r%3==0;case st.PATTERN011:return(e+r)%3==0;case st.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case st.PATTERN101:return e*r%2+e*r%3==0;case st.PATTERN110:return(e*r%2+e*r%3)%2==0;case st.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error(`bad maskPattern:${t}`)}}static getErrorCorrectPolynomial(t){let e=new vt([1],0);for(let r=0;r5&&(r+=3+l-5)}for(var i=0;i=256;)t-=255;return j.EXP_TABLE[t]}}j.EXP_TABLE=new Array(256);j.LOG_TABLE=new Array(256);j._constructor=function(){for(var o=0;o<8;o++)j.EXP_TABLE[o]=1<>>7-t%8&1)==1}put(t,e){for(let r=0;r>>e-r-1&1)==1)}getLengthInBits(){return this.length}putBit(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}}const rt=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function et(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function Vt(o,t){for(var e="",r=0,i=-1,n=0,s,a=0;a<=o.length;++a){if(a2){var l=e.lastIndexOf("/");if(l!==e.length-1){l===-1?(e="",r=0):(e=e.slice(0,l),r=e.length-1-e.lastIndexOf("/")),i=a,n=0;continue}}else if(e.length===2||e.length===1){e="",r=0,i=a,n=0;continue}}t&&(e.length>0?e+="/..":e="..",r=2)}else e.length>0?e+="/"+o.slice(i+1,a):e=o.slice(i+1,a),r=a-i-1;i=a,n=0}else s===46&&n!==-1?++n:n=-1}return e}function Se(o,t){var e=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return e?e===t.root?e+r:e+o+r:r}var dt={resolve:function(){for(var t="",e=!1,r,i=arguments.length-1;i>=-1&&!e;i--){var n;i>=0?n=arguments[i]:(r===void 0&&(r=process.cwd()),n=r),et(n),n.length!==0&&(t=n+"/"+t,e=n.charCodeAt(0)===47)}return t=Vt(t,!e),e?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(et(t),t.length===0)return".";var e=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=Vt(t,!e),t.length===0&&!e&&(t="."),t.length>0&&r&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return et(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,e=0;e0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":dt.normalize(t)},relative:function(t,e){if(et(t),et(e),t===e||(t=dt.resolve(t),e=dt.resolve(e),t===e))return"";for(var r=1;rc){if(e.charCodeAt(s+f)===47)return e.slice(s+f+1);if(f===0)return e.slice(s+f)}else n>c&&(t.charCodeAt(r+f)===47?u=f:f===0&&(u=0));break}var v=t.charCodeAt(r+f),A=e.charCodeAt(s+f);if(v!==A)break;v===47&&(u=f)}var k="";for(f=r+u+1;f<=i;++f)(f===i||t.charCodeAt(f)===47)&&(k.length===0?k+="..":k+="/..");return k.length>0?k+e.slice(s+u):(s+=u,e.charCodeAt(s)===47&&++s,e.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(et(t),t.length===0)return".";for(var e=t.charCodeAt(0),r=e===47,i=-1,n=!0,s=t.length-1;s>=1;--s)if(e=t.charCodeAt(s),e===47){if(!n){i=s;break}}else n=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');et(t);var r=0,i=-1,n=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var a=e.length-1,l=-1;for(s=t.length-1;s>=0;--s){var c=t.charCodeAt(s);if(c===47){if(!n){r=s+1;break}}else l===-1&&(n=!1,l=s+1),a>=0&&(c===e.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=l))}return r===i?i=l:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!n){r=s+1;break}}else i===-1&&(n=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){et(t);for(var e=-1,r=0,i=-1,n=!0,s=0,a=t.length-1;a>=0;--a){var l=t.charCodeAt(a);if(l===47){if(!n){r=a+1;break}continue}i===-1&&(n=!1,i=a+1),l===46?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||i===-1||s===0||s===1&&e===i-1&&e===r+1?"":t.slice(e,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return Se("/",t)},parse:function(t){et(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;var r=t.charCodeAt(0),i=r===47,n;i?(e.root="/",n=1):n=0;for(var s=-1,a=0,l=-1,c=!0,u=t.length-1,f=0;u>=n;--u){if(r=t.charCodeAt(u),r===47){if(!c){a=u+1;break}continue}l===-1&&(c=!1,l=u+1),r===46?s===-1?s=u:f!==1&&(f=1):s!==-1&&(f=-1)}return s===-1||l===-1||f===0||f===1&&s===l-1&&s===a+1?l!==-1&&(a===0&&i?e.base=e.name=t.slice(1,l):e.base=e.name=t.slice(a,l)):(a===0&&i?(e.name=t.slice(1,s),e.base=t.slice(1,l)):(e.name=t.slice(a,s),e.base=t.slice(a,l)),e.ext=t.slice(s,l)),a>0?e.dir=t.slice(0,a-1):i&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};dt.posix=dt;const _e=dt.extname,se=dt.basename;class Le{constructor(){let t=typeof global>"u",e="image/png",r="image/jpeg",i="image/jpeg",n="image/webp",s="application/pdf",a="image/svg+xml";Object.assign(this,{toMime:this.toMime.bind(this),fromMime:this.fromMime.bind(this),expected:t?'"png", "jpg", or "webp"':'"png", "jpg", "pdf", or "svg"',formats:t?{png:e,jpg:r,jpeg:i,webp:n}:{png:e,jpg:r,jpeg:i,pdf:s,svg:a},mimes:t?{[e]:"png",[r]:"jpg",[n]:"webp"}:{[e]:"png",[r]:"jpg",[s]:"pdf",[a]:"svg"}})}toMime(t){return this.formats[(t||"").replace(/^\./,"").toLowerCase()]}fromMime(t){return this.mimes[t]}}function Me(o,{filename:t="",extension:e="",format:T,page:i,quality:n,matte:s,density:a,outline:l,archive:A}={}){var{fromMime:u,toMime:f,expected:v}=new Le,A=A||"canvas",k=T||e.replace(/@\d+x$/i,"")||_e(t),T=u(f(k)||k),M=f(T),g=o.length;if(!k)throw new Error("Cannot determine image format (use a filename extension or 'format' argument)");if(!T)throw new Error(`Unsupported file format "${k}" (expected ${v})`);if(!g)throw new RangeError("Canvas has no associated contexts (try calling getContext or newPage first)");let p,P,d=t.replace(/{(\d*)}/g,(m,y)=>(P=!0,y=parseInt(y,10),p=isFinite(y)?y:isFinite(p)?p:-1,"{}")),b=i>0?i-1:i<0?g+i:void 0;if(isFinite(b)&&b<0||b>=g)throw new RangeError(g==1?`Canvas only has a ‘page 1’ (${b} is out of bounds)`:`Canvas has pages 1–${g} (${b} is out of bounds)`);if(o=isFinite(b)?[o[b]]:P||T=="pdf"?o:o.slice(-1),n===void 0)n=.92;else if(typeof n!="number"||!isFinite(n)||n<0||n>1)throw new TypeError("The quality option must be an number in the 0.0–1.0 range");if(a===void 0){let m=(e||se(t,k)).match(/@(\d+)x$/i);a=m?parseInt(m[1],10):1}else if(typeof a!="number"||!Number.isInteger(a)||a<1)throw new TypeError("The density option must be a non-negative integer");return l===void 0?l=!0:T=="svg"&&(l=!!l),{filename:t,pattern:d,format:T,mime:M,pages:o,padding:p,quality:n,matte:s,density:a,outline:l,archive:A}}class kt{static for(t){return new kt().append(t).get()}constructor(){this.crc=-1}get(){return~this.crc}append(t){for(var e=this.crc|0,r=this.table,i=0,n=t.length|0;i>>8^r[(e^t[i])&255];return this.crc=e,this}}kt.prototype.table=(()=>{var o,t,e,r=[];for(o=0;o<256;o++){for(e=o,t=0;t<8;t++)e=e&1?e>>>1^3988292384:e>>>1;r[o]=e}return r})();function _t(o){let t=new Uint8Array(o),e=new DataView(t.buffer),r={array:t,view:e,size:o,set8(i,n){return e.setUint8(i,n),r},set16(i,n){return e.setUint16(i,n,!0),r},set32(i,n){return e.setUint32(i,n,!0),r},bytes(i,n){return t.set(n,i),r}};return r}class Tt{constructor(t){let e=new Date;Object.assign(this,{directory:t,offset:0,files:[],time:(e.getHours()<<6|e.getMinutes())<<5|e.getSeconds()/2,date:(e.getFullYear()-1980<<4|e.getMonth()+1)<<5|e.getDate()}),this.add(t)}async add(t,e){let r=!e,i=Tt.encoder.encode(`${this.directory}/${r?"":t}`),n=new Uint8Array(r?0:await e.arrayBuffer()),s=30+i.length,a=s+n.length,l=16,{offset:c}=this,u=_t(26).set32(0,134742036).set16(6,this.time).set16(8,this.date).set32(10,kt.for(n)).set32(14,n.length).set32(18,n.length).set16(22,i.length);c+=s;let f=_t(s+n.length+l).set32(0,67324752).bytes(4,u.array).bytes(30,i).bytes(s,n);c+=n.length,f.set32(a,134695760).bytes(a+4,u.array.slice(10,22)),c+=l,this.files.push({offset:c,folder:r,name:i,header:u,payload:f}),this.offset=c}toBuffer(){let t=this.files.reduce((f,{name:v})=>46+v.length+f,0),e=_t(t+22),r=0;for(var{offset:i,name:n,header:s,folder:a}of this.files)e.set32(r,33639248).set16(r+4,20).bytes(r+6,s.array).set8(r+38,a?16:0).set32(r+42,i).bytes(r+46,n),r+=46+n.length;e.set32(r,101010256).set16(r+8,this.files.length).set16(r+10,this.files.length).set32(r+12,t).set32(r+16,this.offset);let l=new Uint8Array(this.offset+e.size),c=0;for(var{payload:u}of this.files)l.set(u.array,c),c+=u.size;return l.set(e.array,c),l}get blob(){return new Blob([this.toBuffer()],{type:"application/zip"})}}Tt.encoder=new TextEncoder;const Ft=(o,t,e,r)=>{if(r){let{width:i,height:n}=o,s=Object.assign(document.createElement("canvas"),{width:i,height:n}),a=s.getContext("2d");a.fillStyle=r,a.fillRect(0,0,i,n),a.drawImage(o,0,0),o=s}return new Promise((i,n)=>o.toBlob(i,t,e))},Re=(...o)=>Ft(...o).then(t=>t.arrayBuffer()),Ne=async(o,t,e,r,i)=>{ae(i,await Ft(o,t,e,r))},Oe=async(o,t,e,r,i,n,s)=>{let a=u=>n.replace("{}",String(u+1).padStart(s,"0")),l=se(i,".zip")||"archive",c=new Tt(l);await Promise.all(o.map(async(u,f)=>{let v=a(f);await c.add(v,await Ft(u,t,e,r))})),ae(`${l}.zip`,c.blob)},ae=(o,t)=>{const e=window.URL.createObjectURL(t),r=document.createElement("a");r.style.display="none",r.href=e,r.setAttribute("download",o),typeof r.download>"u"&&r.setAttribute("target","_blank"),document.body.appendChild(r),r.click(),document.body.removeChild(r),setTimeout(()=>window.URL.revokeObjectURL(e),100)},$e=(o,t,e)=>o.map(r=>{if(t==1&&!e)return r.canvas;let i=document.createElement("canvas"),n=i.getContext("2d"),s=r.canvas?r.canvas:r;return i.width=s.width*t,i.height=s.height*t,e&&(n.fillStyle=e,n.fillRect(0,0,i.width,i.height)),n.scale(t,t),n.drawImage(s,0,0),i}),Fe={asBuffer:Re,asDownload:Ne,asZipDownload:Oe,atScale:$e,options:Me},{asBuffer:Lt,asDownload:Ue,asZipDownload:Ge,atScale:Mt,options:Rt}=Fe,Jt=Symbol.for("toDataURL"),je=o=>new Promise((t,e)=>Object.assign(new le,{crossOrigin:"Anonymous",onload:t,onerror:e,src:o}));let ze=class{constructor(t,e){let r=document.createElement("canvas"),i=[];Object.defineProperty(r,"async",{value:!0,writable:!1,enumerable:!0});for(var[n,s]of Object.entries({png:()=>Lt(r,"image/png"),jpg:()=>Lt(r,"image/jpeg"),pages:()=>i.concat(r).map(a=>a.getContext("2d"))}))Object.defineProperty(r,n,{get:s});return Object.assign(r,{width:t,height:e,newPage(...a){var{width:c,height:u}=r,l=Object.assign(document.createElement("canvas"),{width:c,height:u});l.getContext("2d").drawImage(r,0,0),i.push(l);var[c,u]=a.length?a:[c,u];return Object.assign(r,{width:c,height:u}).getContext("2d")},saveAs(a,l){l=typeof l=="number"?{quality:l}:l;let c=Rt(this.pages,{filename:a,...l}),{pattern:u,padding:f,mime:v,quality:A,matte:k,density:T,archive:M}=c,g=Mt(c.pages,T);return f==null?Ue(g[0],v,A,k,a):Ge(g,v,A,k,M,u,f)},toBuffer(a="png",l={}){l=typeof l=="number"?{quality:l}:l;let c=Rt(this.pages,{extension:a,...l}),{mime:u,quality:f,matte:v,pages:A,density:k}=c,T=Mt(A,k,v)[0];return Lt(T,u,f,v)},[Jt]:r.toDataURL.bind(r),toDataURL(a="png",l={}){l=typeof l=="number"?{quality:l}:l;let c=Rt(this.pages,{extension:a,...l}),{mime:u,quality:f,matte:v,pages:A,density:k}=c,T=Mt(A,k,v)[0],M=T[T===r?Jt:"toDataURL"](u,f);return Promise.resolve(M)}})}};const{CanvasRenderingContext2D:He,CanvasGradient:Ke,CanvasPattern:Xe,Image:le,ImageData:Ze,Path2D:qe,DOMMatrix:Ve,DOMRect:Je,DOMPoint:We}=window,Ye={Canvas:ze,loadImage:je,CanvasRenderingContext2D:He,CanvasGradient:Ke,CanvasPattern:Xe,Image:le,ImageData:Ze,Path2D:qe,DOMMatrix:Ve,DOMRect:Je,DOMPoint:We},bt=(o,t,e={},r=e)=>{if(Array.isArray(t))t.forEach(i=>bt(o,i,e,r));else if(typeof t=="function")t(o,e,r,bt);else{const i=Object.keys(t)[0];Array.isArray(t[i])?(r[i]={},bt(o,t[i],e,r[i])):r[i]=t[i](o,e,r,bt)}return e},gt=(o,t)=>(e,r,i,n)=>{t(e,r,i)&&n(e,o,r,i)},Qe=(o,t)=>(e,r,i,n)=>{const s=[];let a=e.pos;for(;t(e,r,i);){const l={};if(n(e,o,r,l),e.pos===a)break;a=e.pos,s.push(l)}return s},tr=o=>({data:o,pos:0}),W=()=>o=>o.data[o.pos++],ce=(o=0)=>t=>t.data[t.pos+o],it=o=>t=>t.data.subarray(t.pos,t.pos+=o),Et=o=>t=>t.data.subarray(t.pos,t.pos+o),Ot=o=>t=>Array.from(it(o)(t)).map(e=>String.fromCharCode(e)).join(""),ft=o=>t=>{const e=it(2)(t);return(e[1]<<8)+e[0]},he=(o,t)=>(e,r,i)=>{const n=typeof t=="function"?t(e,r,i):t,s=it(o),a=new Array(n);for(var l=0;l{for(var r=0,i=0;it=>{const e=W()(t),r=new Array(8);for(var i=0;i<8;i++)r[7-i]=!!(e&1<{const a=o[s];return a.length?n[s]=er(r,a.index,a.length):n[s]=r[a.index],n},{})};var It={blocks:o=>{const e=[],r=o.data.length;for(var i=0,n=W()(o);n!==0&&n;n=W()(o)){if(o.pos+n>=r){const c=r-o.pos;e.push(it(c)(o)),i+=c;break}e.push(it(n)(o)),i+=n}const s=new Uint8Array(i);for(var a=0,l=0;l{var t=Et(2)(o);return t[0]===33&&t[1]===249}),ir=gt({image:[{code:W()},{descriptor:[{left:ft()},{top:ft()},{width:ft()},{height:ft()},{lct:Ut({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},gt({lct:he(3,(o,t,e)=>Math.pow(2,e.descriptor.lct.size+1))},(o,t,e)=>e.descriptor.lct.exists),{data:[{minCodeSize:W()},It]}]},o=>ce()(o)===44),or=gt({text:[{codes:it(2)},{blockSize:W()},{preData:(o,t,e)=>it(e.text.blockSize)(o)},It]},o=>{var t=Et(2)(o);return t[0]===33&&t[1]===1}),nr=gt({application:[{codes:it(2)},{blockSize:W()},{id:(o,t,e)=>Ot(e.blockSize)(o)},It]},o=>{var t=Et(2)(o);return t[0]===33&&t[1]===255}),sr=gt({comment:[{codes:it(2)},It]},o=>{var t=Et(2)(o);return t[0]===33&&t[1]===254}),ar=[{header:[{signature:Ot(3)},{version:Ot(3)}]},{lsd:[{width:ft()},{height:ft()},{gct:Ut({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:W()},{pixelAspectRatio:W()}]},gt({gct:he(3,(o,t)=>Math.pow(2,t.lsd.gct.size+1))},(o,t)=>t.lsd.gct.exists),{frames:Qe([rr,nr,sr,ir,or],o=>{var t=ce()(o);return t===33||t===44})}],lr=(o,t)=>{const e=new Array(o.length),r=o.length/t,i=function(u,f){const v=o.slice(f*t,(f+1)*t);e.splice.apply(e,[u*t,t].concat(v))},n=[0,4,2,1],s=[8,8,4,2];for(var a=0,l=0;l<4;l++)for(var c=n[l];c{const n=e;var s,a,l,c,u,f,v,b,A,k,d,T,m,y,I,B;const M=new Array(e),g=new Array(4096),p=new Array(4096),P=new Array(4097);for(T=o,a=1<>=c,b-=c,A>s||A==u)break;if(A==a){c=T+1,l=(1<a;)P[y++]=p[A],A=g[A];m=p[A]&255,P[y++]=m,s<4096&&(g[s]=v,p[s]=m,s++,!(s&l)&&s<4096&&(c++,l+=s)),v=f}y--,M[B++]=P[y],k++}for(k=B;k{const t=new Uint8Array(o);return bt(tr(t),ar)},ur=o=>{const t=o.pixels.length,e=new Uint8ClampedArray(t*4);for(var r=0;r{if(!o.image){console.warn("gif frame does not have associated image.");return}const{image:r}=o,i=r.descriptor.width*r.descriptor.height;var n=cr(r.data.minCodeSize,r.data.blocks,i);r.descriptor.lct.interlaced&&(n=lr(n,r.descriptor.width));const s={pixels:n,dims:{top:o.image.descriptor.top,left:o.image.descriptor.left,width:o.image.descriptor.width,height:o.image.descriptor.height}};return r.descriptor.lct&&r.descriptor.lct.exists?s.colorTable=r.lct:s.colorTable=t,o.gce&&(s.delay=(o.gce.delay||10)*10,s.disposalType=o.gce.extras.disposal,o.gce.extras.transparentColorGiven&&(s.transparentIndex=o.gce.transparentColorIndex)),s.patch=ur(s),s},dr=(o,t)=>o.frames.filter(e=>e.image).map(e=>fr(e,o.gct));var gr=100,K=256,Wt=K-1,ct=4,ue=16,Gt=1<>jt,vr=Gt<>3,$t=6,wr=1<<$t,br=mr*wr,yr=30,de=10,Ct=1<>3);var g,p;for(g=0;g>=ct,e[g][1]>>=ct,e[g][2]>>=ct,e[g][3]=g}function c(g,p,P,d,b){e[p][0]-=g*(e[p][0]-P)/Ct,e[p][1]-=g*(e[p][1]-d)/Ct,e[p][2]-=g*(e[p][2]-b)/Ct}function u(g,p,P,d,b){for(var m=Math.abs(p-g),y=Math.min(p+g,K),B=p+1,I=p-1,R=1,h,N;Bm;)N=s[R++],Bm&&(h=e[I--],h[0]-=N*(h[0]-P)/pt,h[1]-=N*(h[1]-d)/pt,h[2]-=N*(h[2]-b)/pt)}function f(g,p,P){var d=2147483647,b=d,m=-1,y=m,B,I,R,h,N;for(B=0;B>ue-ct),h>jt,n[B]-=N,i[B]+=N<>1,p=y+1;p>1,p=y+1;p<256;p++)r[p]=Wt}function A(g,p,P){for(var d,b,m,y=1e3,B=-1,I=r[p],R=I-1;I=0;)I=y?I=K:(I++,m<0&&(m=-m),d=b[0]-g,d<0&&(d=-d),m+=d,m=0&&(b=e[R],m=p-b[1],m>=y?R=-1:(R--,m<0&&(m=-m),d=b[0]-g,d<0&&(d=-d),m+=d,m>$t;for(B<=1&&(B=0),g=0;g=p&&(O-=p),g++,b===0&&(b=1),g%b===0)for(m-=m/P,y-=y/yr,B=y>>$t,B<=1&&(B=0),C=0;C=254&&I(O)}function b(C){m(wt),f=T+2,A=!0,N(T,C)}function m(C){for(var O=0;O=0){lt=z-G,G===0&&(lt=1);do if((G-=lt)<0&&(G+=z),s[G]===w){Y=a[G];continue t}while(s[G]>=0)}N(Y,O),Y=ut,f<1<0&&(C.writeByte(u),C.writeBytes(n,0,u),u=0)}function R(C){return(1<0?l|=C<=8;)d(l&255,O),l>>=8,c-=8;if((f>v||A)&&(A?(v=R(P=k),A=!1):(++P,P==At?v=1<0;)d(l&255,O),l>>=8,c-=8;I(O)}}this.encode=B}function q(){this.page=-1,this.pages=[],this.newPage()}q.pageSize=4096;q.charMap={};for(var Pt=0;Pt<256;Pt++)q.charMap[Pt]=String.fromCharCode(Pt);q.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(q.pageSize),this.cursor=0};q.prototype.getData=function(){for(var o="",t=0;tr+i.length,0));return o.reduce((r,i)=>(e.set(i,r),r+i.length),0),e};q.prototype.writeByte=function(o){this.cursor>=q.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=o};q.prototype.writeUTFBytes=function(o){for(var t=o.length,e=0;e=0&&(this.dispose=o)};$.prototype.setRepeat=function(o){this.repeat=o};$.prototype.setTransparent=function(o){this.transparent=o};$.prototype.addFrame=function(o){this.image=o,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),this.globalPalette===!0&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),!this.firstFrame&&!this.globalPalette&&this.writePalette(),this.writePixels(),this.firstFrame=!1};$.prototype.finish=function(){this.out.writeByte(59)};$.prototype.setQuality=function(o){o<1&&(o=1),this.sample=o};$.prototype.setDither=function(o){o===!0&&(o="FloydSteinberg"),this.dither=o};$.prototype.setGlobalPalette=function(o){this.globalPalette=o};$.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette};$.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")};$.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new Pr(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),this.dither.match(/-serpentine/)!==null):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,this.transparent!==null&&(this.transIndex=this.findClosest(this.transparent,!0))};$.prototype.indexPixels=function(o){var t=this.pixels.length/3;this.indexedPixels=new Uint8Array(t);for(var e=0,r=0;r=0&&B+u=0&&I+c>16,(o&65280)>>8,o&255,t)};$.prototype.findClosestRGB=function(o,t,e,r){if(this.colorTab===null)return-1;if(this.neuQuant&&!r)return this.neuQuant.lookupRGB(o,t,e);for(var i=0,n=256*256*256,s=this.colorTab.length,a=0,l=0;a=0&&(t=this.dispose&7),t<<=2,this.out.writeByte(0|t|0|o),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)};$.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)};$.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)};$.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)};$.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var o=3*256-this.colorTab.length,t=0;t>8&255)};$.prototype.writePixels=function(){var o=new Dr(this.width,this.height,this.indexedPixels,this.colorDepth);o.encode(this.out)};$.prototype.stream=function(){return this.out};var kr=globalThis&&globalThis.__awaiter||function(o,t,e,r){function i(n){return n instanceof e?n:new e(function(s){s(n)})}return new(e||(e=Promise))(function(n,s){function a(u){try{c(r.next(u))}catch(f){s(f)}}function l(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?n(u.value):i(u.value).then(a,l)}c((r=r.apply(o,t||[])).next())})};const{Canvas:nt}=Ye,Bt=.4;function ie(o){if(!o)return;function t(e){e.onload=null,e.onerror=null}return new Promise(function(e,r){if(o.slice(0,4)=="data"){let n=new Image;n.onload=function(){e(n),t(n)},n.onerror=function(){r("Image load error"),t(n)},n.src=o;return}let i=new Image;i.setAttribute("crossOrigin","Anonymous"),i.onload=function(){e(i)},i.onerror=function(){r("Image load error")},i.src=o})}class _{constructor(t){const e=Object.assign({},t);if(Object.keys(_.defaultOptions).forEach(r=>{r in e||Object.defineProperty(e,r,{value:_.defaultOptions[r],enumerable:!0,writable:!0})}),e.components?typeof e.components=="object"&&Object.keys(_.defaultComponentOptions).forEach(r=>{r in e.components?Object.defineProperty(e.components,r,{value:Object.assign(Object.assign({},_.defaultComponentOptions[r]),e.components[r]),enumerable:!0,writable:!0}):Object.defineProperty(e.components,r,{value:_.defaultComponentOptions[r],enumerable:!0,writable:!0})}):e.components=_.defaultComponentOptions,e.dotScale!==null&&e.dotScale!==void 0){if(e.dotScale<=0||e.dotScale>1)throw new Error("dotScale should be in range (0, 1].");e.components.data.scale=e.dotScale,e.components.timing.scale=e.dotScale,e.components.alignment.scale=e.dotScale}this.options=e,this.canvas=new nt(t.size,t.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new ht(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}draw(){return new Promise(t=>this._draw().then(t))}_clear(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)}static _prepareRoundedCornerClip(t,e,r,i,n,s){t.beginPath(),t.moveTo(e,r),t.arcTo(e+i,r,e+i,r+n,s),t.arcTo(e+i,r+n,e,r+n,s),t.arcTo(e,r+n,e,r,s),t.arcTo(e,r,e+i,r,s),t.closePath()}static _getAverageRGB(t){const r={r:0,g:0,b:0};let i,n,s=-4;const a={r:0,g:0,b:0};let l=0;n=t.naturalHeight||t.height,i=t.naturalWidth||t.width;const u=new nt(i,n).getContext("2d");if(!u)return r;u.drawImage(t,0,0);let f;try{f=u.getImageData(0,0,i,n)}catch{return r}for(;(s+=5*4)200||f.data[s+1]>200||f.data[s+2]>200||(++l,a.r+=f.data[s],a.g+=f.data[s+1],a.b+=f.data[s+2]);return a.r=~~(a.r/l),a.g=~~(a.g/l),a.b=~~(a.b/l),a}static _drawDot(t,e,r,i,n=0,s=1){t.fillRect((e+n)*i,(r+n)*i,s*i,s*i)}static _drawAlignProtector(t,e,r,i){t.clearRect((e-2)*i,(r-2)*i,5*i,5*i),t.fillRect((e-2)*i,(r-2)*i,5*i,5*i)}static _drawAlign(t,e,r,i,n=0,s=1,a,l){const c=t.fillStyle;t.fillStyle=a,new Array(4).fill(0).map((u,f)=>{_._drawDot(t,e-2+f,r-2,i,n,s),_._drawDot(t,e+2,r-2+f,i,n,s),_._drawDot(t,e+2-f,r+2,i,n,s),_._drawDot(t,e-2,r+2-f,i,n,s)}),_._drawDot(t,e,r,i,n,s),l||(t.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map((u,f)=>{_._drawDot(t,e-1+f,r-1,i,n,s),_._drawDot(t,e+1,r-1+f,i,n,s),_._drawDot(t,e+1-f,r+1,i,n,s),_._drawDot(t,e-1,r+1-f,i,n,s)})),t.fillStyle=c}_draw(){var t,e,r,i,n,s,a,l,c,u,f,v,A,k,T,M,g,p,P;return kr(this,void 0,void 0,function*(){const d=(t=this.qrCode)===null||t===void 0?void 0:t.moduleCount,b=this.options.size;let m=this.options.margin;(m<0||m*2>=b)&&(m=0);const y=Math.ceil(m),B=b-2*m,I=this.options.whiteMargin,R=this.options.backgroundDimming,h=Math.ceil(B/d),N=h*d,C=N+2*y,O=new nt(C,C),w=O.getContext("2d");this._clear(),w.save(),w.translate(y,y);const ut=new nt(C,C),G=ut.getContext("2d");let Y=null,lt=[];if(this.options.gifBackground){const D=hr(this.options.gifBackground);if(Y=D,lt=dr(D),this.options.autoColor){let E=0,x=0,S=0,H=0;for(let F=0;F200||U[1]>200||U[2]>200||U[0]===0&&U[1]===0&&U[2]===0||(H++,E+=U[0],x+=U[1],S+=U[2])}E=~~(E/H),x=~~(x/H),S=~~(S/H),this.options.colorDark=`rgb(${E},${x},${S})`}}else if(this.options.backgroundImage){const D=yield ie(this.options.backgroundImage);if(this.options.autoColor){const E=_._getAverageRGB(D);this.options.colorDark=`rgb(${E.r},${E.g},${E.b})`}G.drawImage(D,0,0,D.width,D.height,0,0,C,C),G.rect(0,0,C,C),G.fillStyle=R,G.fill()}else G.rect(0,0,C,C),G.fillStyle=this.options.colorLight,G.fill();const z=L.getPatternPosition(this.qrCode.typeNumber),Q=((r=(e=this.options.components)===null||e===void 0?void 0:e.data)===null||r===void 0?void 0:r.scale)||Bt,zt=(1-Q)*.5;for(let D=0;D=d-8)||E>=d-8&&D<8,H=D==6&&E>=8&&E<=d-8||E==6&&D>=8&&D<=d-8;let F=S||H;for(let X=1;X=z[X]-2&&D<=z[X]+2&&E>=z[X]-2&&E<=z[X]+2;const U=E*h+(F?0:zt*h),tt=D*h+(F?0:zt*h);if(w.strokeStyle=x?this.options.colorDark:this.options.colorLight,w.lineWidth=.5,w.fillStyle=x?this.options.colorDark:this.options.colorLight,z.length===0)F||w.fillRect(U,tt,(F?1:Q)*h,(F?1:Q)*h);else{const X=E=d-4-5&&D=d-4-5;!F&&!X&&w.fillRect(U,tt,(F?1:Q)*h,(F?1:Q)*h)}}const J=z[z.length-1],ve=this.options.colorLight;if(w.fillStyle=ve,w.fillRect(0,0,8*h,8*h),w.fillRect(0,(d-8)*h,8*h,8*h),w.fillRect((d-8)*h,0,8*h,8*h),!((n=(i=this.options.components)===null||i===void 0?void 0:i.timing)===null||n===void 0)&&n.protectors&&(w.fillRect(8*h,6*h,(d-8-8)*h,h),w.fillRect(6*h,8*h,h,(d-8-8)*h)),!((a=(s=this.options.components)===null||s===void 0?void 0:s.cornerAlignment)===null||a===void 0)&&a.protectors&&_._drawAlignProtector(w,J,J,h),!((c=(l=this.options.components)===null||l===void 0?void 0:l.alignment)===null||c===void 0)&&c.protectors)for(let D=0;D=1)&&(E=.2),x<0&&(x=0),S<0&&(S=0);const H=N*E,F=.5*(C-H),U=F;w.restore(),w.fillStyle=this.options.logoBackgroundColor,w.save(),_._prepareRoundedCornerClip(w,F-x,U-x,H+2*x,H+2*x,S+x),w.clip();const tt=w.globalCompositeOperation;w.globalCompositeOperation="destination-out",w.fill(),w.globalCompositeOperation=tt,w.restore(),w.save(),_._prepareRoundedCornerClip(w,F,U,H,H,S),w.clip(),w.drawImage(D,F,U,H,H),w.restore(),w.save(),w.translate(y,y)}if(Y){let D,E,x,S,H,F;if(lt.forEach(function(U){D||(D=new $(b,b),D.setDelay(U.delay),D.setRepeat(0));const{width:tt,height:X}=U.dims;E||(E=new nt(tt,X),x=E.getContext("2d"),x.rect(0,0,E.width,E.height),x.fillStyle="#ffffff",x.fill()),(!S||!F||tt!==S.width||X!==S.height)&&(S=new nt(tt,X),H=S.getContext("2d"),F=H.createImageData(tt,X)),F.data.set(U.patch),H.putImageData(F,0,0),x.drawImage(S.getContext("2d").canvas,U.dims.left,U.dims.top);const yt=new nt(C,C),mt=yt.getContext("2d");mt.drawImage(E.getContext("2d").canvas,0,0,C,C),mt.rect(0,0,C,C),mt.fillStyle=R,mt.fill(),mt.drawImage(O.getContext("2d").canvas,0,0,C,C);const St=new nt(b,b),Zt=St.getContext("2d");Zt.drawImage(yt.getContext("2d").canvas,0,0,b,b),D.addFrame(Zt.getImageData(0,0,St.width,St.height).data)}),!D)throw new Error("No frames.");if(D.finish(),oe(this.canvas)){const tt=D.stream().toFlattenUint8Array().reduce((X,yt)=>X+String.fromCharCode(yt),"");return Promise.resolve(`data:image/gif;base64,${window.btoa(tt)}`)}return Promise.resolve(Buffer.from(D.stream().toFlattenUint8Array()))}else{G.drawImage(O.getContext("2d").canvas,0,0,C,C),w.drawImage(ut.getContext("2d").canvas,-y,-y,C,C);const D=new nt(b,b);D.getContext("2d").drawImage(O.getContext("2d").canvas,0,0,b,b),this.canvas=D;const x=this.options.gifBackground?"gif":"png";return oe(this.canvas)?Promise.resolve(this.canvas.toDataURL(x)):Promise.resolve(this.canvas.toBuffer(x))}})}}_.CorrectLevel=Z;_.defaultComponentOptions={data:{scale:.4},timing:{scale:.5,protectors:!1},alignment:{scale:.5,protectors:!1},cornerAlignment:{scale:.5,protectors:!0}};_.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",correctLevel:Z.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:_.defaultComponentOptions,autoColor:!0,logoBackgroundColor:"#ffffff",backgroundColor:"#ffffff"};function oe(o){try{return o instanceof HTMLElement}catch{return typeof o=="object"&&o.nodeType===1&&typeof o.style=="object"&&typeof o.ownerDocument=="object"}}function Dt(o,...t){if(Array.isArray(o))o.forEach(e=>Dt(e,...t));else return o(...t)}const Tr=(o,t)=>{const e=document.createElement("a");e.href=o,e.download=t||new Date().getTime()+".png",e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e)},Er=o=>new Promise((t,e)=>{const r=new XMLHttpRequest;r.responseType="blob",r.onload=()=>{const i=new FileReader;i.onloadend=()=>{t(i.result)},i.onerror=n=>{e(n)},i.onabort=n=>{e(n)},i.readAsArrayBuffer(r.response)},r.open("GET",o),r.send()}),Nt=be({name:"Vue3NextQrcode",props:ke,setup(o,t){const{expose:e}=t,r=ye(()=>({"--ray-qrcode-width":o.size+"px","--ray-qrcode-height":o.size+"px","--ray-qrcode-border-radius":o.logoCornerRadius+"px","--ray-qrcode-mask-color":o.maskColor})),i=qt();let n;const s=qt(!1);let a;const l=async()=>{const{gifBackgroundURL:v}=o;if(v)try{n=await Er(v)}catch(A){console.error(A)}},c=()=>{const{gifBackgroundURL:v,gifBackground:A,...k}=o;new _({...k,gifBackground:n??void 0}).draw().then(T=>{const{onSuccess:M}=o;M&&Dt(M,T),i.value=T}).catch(T=>{const{onError:M}=o;M&&Dt(M,T)})},u=()=>{if(t.slots.errorAction)return;const{onReload:v}=o;v&&Dt(v)},f=v=>i.value&&typeof i.value=="string"?new Promise(A=>{Tr(i.value,v),A()}):Promise.reject();return Ce(()=>{o.watchText?a=De(()=>o.text,()=>c()):a==null||a()}),e({downloadQRCode:f}),Ae(async()=>{await l(),c()}),Pe(()=>{a==null||a()}),{qrcodeURL:i,errorActionClick:u,cssVars:r,isClick:s}},render(){return ot("div",{class:"ray-qrcode",style:[this.cssVars]},[ot("div",{class:[this.status==="loading"&&!this.$slots.loading?"ray-qrcode__loading":"",this.$slots.loading?"ray-qrcode__loading--custom":""]},[this.status==="loading"?this.$slots.loading?ot("div",{class:"ray-qrcode__loading-slots"},[this.$slots.loading()]):ot("div",{class:"ray-qrcode__spin"},null):null,ot("img",Be({src:this.qrcodeURL},{img_tag:"VUE3_NEXT_QRCODE"}),null)]),this.status==="error"?ot("div",{class:"ray-qrcode__error"},[ot("div",{class:"ray-qrcode__error-content"},[typeof this.errorDescription=="string"?this.errorDescription:()=>this.errorDescription]),ot("div",{class:"ray-qrcode__error-btn",onClick:this.errorActionClick.bind(this)},[this.$slots.errorAction?this.$slots.errorAction():ot("span",{onMousedown:()=>{this.isClick=!0},onMouseup:()=>{this.isClick=!1},class:[this.isClick?"ray-qrcode__error-btn-click":""]},[this.errorActionDescription])])]):null])}});Nt.install=function(o){o.component(Nt.name,Nt)};export{Nt as Q}; +import{l as be,f as ye,j as Ce,k as Ae,v as Pe,b as ot,m as Be,w as De}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{k as qt}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";const ke={maskColor:{type:String,default:"rgba(255, 255, 255, 0.96)"},watchText:{type:Boolean,default:!0},status:{type:String},errorDescription:{type:[String,Object],default:"二维码已过期"},errorActionDescription:{type:String,default:"重新加载"},text:{type:String,required:!0},size:{type:Number,default:160},margin:{type:Number,default:12},correctLevel:{type:Number,default:1,validator:o=>[0,1,2,3].includes(o)},maskPattern:{type:Number},version:{type:Number},components:{type:Object,default:()=>({data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}})},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#ffffff"},autoColor:{type:Boolean,default:!0},backgroundImage:{type:String},backgroundDimming:{type:String,default:"rgba(0, 0, 0, 0)"},gifBackgroundURL:{type:String},gifBackground:{type:ArrayBuffer},whiteMargin:{type:Boolean,default:!0},logoImage:{type:String},logoScale:{type:Number,default:.4},logoMargin:{type:Number,default:6},logoCornerRadius:{type:Number,default:8},dotScale:{type:Number,default:1},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onReload:{type:[Function,Array],default:null}};function Te(o,t,e){const r=ne(t),i=o-1;let n=0;switch(e){case Z.L:n=rt[i][0];break;case Z.M:n=rt[i][1];break;case Z.Q:n=rt[i][2];break;case Z.H:n=rt[i][3];break}return r<=n}function Ee(o,t){for(var e=1,r=ne(o),i=0,n=rt.length;irt.length)throw new Error("Too long data");return e}function ne(o){var t=encodeURI(o).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=Number(o)?3:0)}class Ie{constructor(t){this.mode=V.MODE_8BIT_BYTE,this.parsedData=[],this.data=t;const e=[];for(let r=0,i=this.data.length;r65536?(n[0]=240|(s&1835008)>>>18,n[1]=128|(s&258048)>>>12,n[2]=128|(s&4032)>>>6,n[3]=128|s&63):s>2048?(n[0]=224|(s&61440)>>>12,n[1]=128|(s&4032)>>>6,n[2]=128|s&63):s>128?(n[0]=192|(s&1984)>>>6,n[1]=128|s&63):n[0]=s,e.push(n)}this.parsedData=Array.prototype.concat.apply([],e),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}getLength(){return this.parsedData.length}write(t){for(let e=0,r=this.parsedData.length;e40)throw new Error(`Invalid QR version: ${this.typeNumber}`);if(!Te(this.typeNumber,t,this.errorCorrectLevel))throw new Error(`Data is too long for QR version: ${this.typeNumber}`)}const e=new Ie(t);this.dataList.push(e),this.dataCache=void 0}isDark(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(`${t},${e}`);return this.modules[t][e]}getModuleCount(){return this.moduleCount}make(){this.makeImpl(!1,this.getBestMaskPattern())}makeImpl(t,e){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(let r=0;r=7&&this.setupTypeNumber(t),this.dataCache==null&&(this.dataCache=ht.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)}setupPositionProbePattern(t,e){for(let r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(let i=-1;i<=7;i++)e+i<=-1||this.moduleCount<=e+i||(0<=r&&r<=6&&(i==0||i==6)||0<=i&&i<=6&&(r==0||r==6)||2<=r&&r<=4&&2<=i&&i<=4?this.modules[t+r][e+i]=!0:this.modules[t+r][e+i]=!1)}getBestMaskPattern(){if(Number.isInteger(this.maskPattern)&&Object.values(st).includes(this.maskPattern))return this.maskPattern;let t=0,e=0;for(let r=0;r<8;r++){this.makeImpl(!0,r);const i=L.getLostPoint(this);(r==0||t>i)&&(t=i,e=r)}return e}setupTimingPattern(){for(let t=8;t>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=i}for(var r=0;r<18;r++){var i=!t&&(e>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=i}}setupTypeInfo(t,e){const r=this.errorCorrectLevel<<3|e,i=L.getBCHTypeInfo(r);for(var n=0;n<15;n++){var s=!t&&(i>>n&1)==1;n<6?this.modules[n][8]=s:n<8?this.modules[n+1][8]=s:this.modules[this.moduleCount-15+n][8]=s}for(var n=0;n<15;n++){var s=!t&&(i>>n&1)==1;n<8?this.modules[8][this.moduleCount-n-1]=s:n<9?this.modules[8][15-n-1+1]=s:this.modules[8][15-n-1]=s}this.modules[this.moduleCount-8][8]=!t}mapData(t,e){let r=-1,i=this.moduleCount-1,n=7,s=0;for(let a=this.moduleCount-1;a>0;a-=2)for(a==6&&a--;;){for(let l=0;l<2;l++)if(this.modules[i][a-l]==null){let c=!1;s>>n&1)==1),L.getMask(e,i,a-l)&&(c=!c),this.modules[i][a-l]=c,n--,n==-1&&(s++,n=7)}if(i+=r,i<0||this.moduleCount<=i){i-=r,r=-r;break}}}static createData(t,e,r){const i=at.getRSBlocks(t,e),n=new xe;for(var s=0;sa*8)throw new Error(`code length overflow. (${n.getLengthInBits()}>${a*8})`);for(n.getLengthInBits()+4<=a*8&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=a*8||(n.put(ht.PAD0,8),n.getLengthInBits()>=a*8));)n.put(ht.PAD1,8);return ht.createBytes(n,i)}static createBytes(t,e){let r=0,i=0,n=0;const s=new Array(e.length),a=new Array(e.length);for(var l=0;l=0?g.get(P):0}}let u=0;for(var c=0;c=0;)e^=L.G15<=0;)e^=L.G18<>>=1;return e}static getPatternPosition(t){return L.PATTERN_POSITION_TABLE[t-1]}static getMask(t,e,r){switch(t){case st.PATTERN000:return(e+r)%2==0;case st.PATTERN001:return e%2==0;case st.PATTERN010:return r%3==0;case st.PATTERN011:return(e+r)%3==0;case st.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case st.PATTERN101:return e*r%2+e*r%3==0;case st.PATTERN110:return(e*r%2+e*r%3)%2==0;case st.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error(`bad maskPattern:${t}`)}}static getErrorCorrectPolynomial(t){let e=new vt([1],0);for(let r=0;r5&&(r+=3+l-5)}for(var i=0;i=256;)t-=255;return j.EXP_TABLE[t]}}j.EXP_TABLE=new Array(256);j.LOG_TABLE=new Array(256);j._constructor=function(){for(var o=0;o<8;o++)j.EXP_TABLE[o]=1<>>7-t%8&1)==1}put(t,e){for(let r=0;r>>e-r-1&1)==1)}getLengthInBits(){return this.length}putBit(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}}const rt=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function et(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function Vt(o,t){for(var e="",r=0,i=-1,n=0,s,a=0;a<=o.length;++a){if(a2){var l=e.lastIndexOf("/");if(l!==e.length-1){l===-1?(e="",r=0):(e=e.slice(0,l),r=e.length-1-e.lastIndexOf("/")),i=a,n=0;continue}}else if(e.length===2||e.length===1){e="",r=0,i=a,n=0;continue}}t&&(e.length>0?e+="/..":e="..",r=2)}else e.length>0?e+="/"+o.slice(i+1,a):e=o.slice(i+1,a),r=a-i-1;i=a,n=0}else s===46&&n!==-1?++n:n=-1}return e}function Se(o,t){var e=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return e?e===t.root?e+r:e+o+r:r}var dt={resolve:function(){for(var t="",e=!1,r,i=arguments.length-1;i>=-1&&!e;i--){var n;i>=0?n=arguments[i]:(r===void 0&&(r=process.cwd()),n=r),et(n),n.length!==0&&(t=n+"/"+t,e=n.charCodeAt(0)===47)}return t=Vt(t,!e),e?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(et(t),t.length===0)return".";var e=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=Vt(t,!e),t.length===0&&!e&&(t="."),t.length>0&&r&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return et(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,e=0;e0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":dt.normalize(t)},relative:function(t,e){if(et(t),et(e),t===e||(t=dt.resolve(t),e=dt.resolve(e),t===e))return"";for(var r=1;rc){if(e.charCodeAt(s+f)===47)return e.slice(s+f+1);if(f===0)return e.slice(s+f)}else n>c&&(t.charCodeAt(r+f)===47?u=f:f===0&&(u=0));break}var v=t.charCodeAt(r+f),A=e.charCodeAt(s+f);if(v!==A)break;v===47&&(u=f)}var k="";for(f=r+u+1;f<=i;++f)(f===i||t.charCodeAt(f)===47)&&(k.length===0?k+="..":k+="/..");return k.length>0?k+e.slice(s+u):(s+=u,e.charCodeAt(s)===47&&++s,e.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(et(t),t.length===0)return".";for(var e=t.charCodeAt(0),r=e===47,i=-1,n=!0,s=t.length-1;s>=1;--s)if(e=t.charCodeAt(s),e===47){if(!n){i=s;break}}else n=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');et(t);var r=0,i=-1,n=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var a=e.length-1,l=-1;for(s=t.length-1;s>=0;--s){var c=t.charCodeAt(s);if(c===47){if(!n){r=s+1;break}}else l===-1&&(n=!1,l=s+1),a>=0&&(c===e.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=l))}return r===i?i=l:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!n){r=s+1;break}}else i===-1&&(n=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){et(t);for(var e=-1,r=0,i=-1,n=!0,s=0,a=t.length-1;a>=0;--a){var l=t.charCodeAt(a);if(l===47){if(!n){r=a+1;break}continue}i===-1&&(n=!1,i=a+1),l===46?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||i===-1||s===0||s===1&&e===i-1&&e===r+1?"":t.slice(e,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return Se("/",t)},parse:function(t){et(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;var r=t.charCodeAt(0),i=r===47,n;i?(e.root="/",n=1):n=0;for(var s=-1,a=0,l=-1,c=!0,u=t.length-1,f=0;u>=n;--u){if(r=t.charCodeAt(u),r===47){if(!c){a=u+1;break}continue}l===-1&&(c=!1,l=u+1),r===46?s===-1?s=u:f!==1&&(f=1):s!==-1&&(f=-1)}return s===-1||l===-1||f===0||f===1&&s===l-1&&s===a+1?l!==-1&&(a===0&&i?e.base=e.name=t.slice(1,l):e.base=e.name=t.slice(a,l)):(a===0&&i?(e.name=t.slice(1,s),e.base=t.slice(1,l)):(e.name=t.slice(a,s),e.base=t.slice(a,l)),e.ext=t.slice(s,l)),a>0?e.dir=t.slice(0,a-1):i&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};dt.posix=dt;const _e=dt.extname,se=dt.basename;class Le{constructor(){let t=typeof global>"u",e="image/png",r="image/jpeg",i="image/jpeg",n="image/webp",s="application/pdf",a="image/svg+xml";Object.assign(this,{toMime:this.toMime.bind(this),fromMime:this.fromMime.bind(this),expected:t?'"png", "jpg", or "webp"':'"png", "jpg", "pdf", or "svg"',formats:t?{png:e,jpg:r,jpeg:i,webp:n}:{png:e,jpg:r,jpeg:i,pdf:s,svg:a},mimes:t?{[e]:"png",[r]:"jpg",[n]:"webp"}:{[e]:"png",[r]:"jpg",[s]:"pdf",[a]:"svg"}})}toMime(t){return this.formats[(t||"").replace(/^\./,"").toLowerCase()]}fromMime(t){return this.mimes[t]}}function Me(o,{filename:t="",extension:e="",format:T,page:i,quality:n,matte:s,density:a,outline:l,archive:A}={}){var{fromMime:u,toMime:f,expected:v}=new Le,A=A||"canvas",k=T||e.replace(/@\d+x$/i,"")||_e(t),T=u(f(k)||k),M=f(T),g=o.length;if(!k)throw new Error("Cannot determine image format (use a filename extension or 'format' argument)");if(!T)throw new Error(`Unsupported file format "${k}" (expected ${v})`);if(!g)throw new RangeError("Canvas has no associated contexts (try calling getContext or newPage first)");let p,P,d=t.replace(/{(\d*)}/g,(m,y)=>(P=!0,y=parseInt(y,10),p=isFinite(y)?y:isFinite(p)?p:-1,"{}")),b=i>0?i-1:i<0?g+i:void 0;if(isFinite(b)&&b<0||b>=g)throw new RangeError(g==1?`Canvas only has a ‘page 1’ (${b} is out of bounds)`:`Canvas has pages 1–${g} (${b} is out of bounds)`);if(o=isFinite(b)?[o[b]]:P||T=="pdf"?o:o.slice(-1),n===void 0)n=.92;else if(typeof n!="number"||!isFinite(n)||n<0||n>1)throw new TypeError("The quality option must be an number in the 0.0–1.0 range");if(a===void 0){let m=(e||se(t,k)).match(/@(\d+)x$/i);a=m?parseInt(m[1],10):1}else if(typeof a!="number"||!Number.isInteger(a)||a<1)throw new TypeError("The density option must be a non-negative integer");return l===void 0?l=!0:T=="svg"&&(l=!!l),{filename:t,pattern:d,format:T,mime:M,pages:o,padding:p,quality:n,matte:s,density:a,outline:l,archive:A}}class kt{static for(t){return new kt().append(t).get()}constructor(){this.crc=-1}get(){return~this.crc}append(t){for(var e=this.crc|0,r=this.table,i=0,n=t.length|0;i>>8^r[(e^t[i])&255];return this.crc=e,this}}kt.prototype.table=(()=>{var o,t,e,r=[];for(o=0;o<256;o++){for(e=o,t=0;t<8;t++)e=e&1?e>>>1^3988292384:e>>>1;r[o]=e}return r})();function _t(o){let t=new Uint8Array(o),e=new DataView(t.buffer),r={array:t,view:e,size:o,set8(i,n){return e.setUint8(i,n),r},set16(i,n){return e.setUint16(i,n,!0),r},set32(i,n){return e.setUint32(i,n,!0),r},bytes(i,n){return t.set(n,i),r}};return r}class Tt{constructor(t){let e=new Date;Object.assign(this,{directory:t,offset:0,files:[],time:(e.getHours()<<6|e.getMinutes())<<5|e.getSeconds()/2,date:(e.getFullYear()-1980<<4|e.getMonth()+1)<<5|e.getDate()}),this.add(t)}async add(t,e){let r=!e,i=Tt.encoder.encode(`${this.directory}/${r?"":t}`),n=new Uint8Array(r?0:await e.arrayBuffer()),s=30+i.length,a=s+n.length,l=16,{offset:c}=this,u=_t(26).set32(0,134742036).set16(6,this.time).set16(8,this.date).set32(10,kt.for(n)).set32(14,n.length).set32(18,n.length).set16(22,i.length);c+=s;let f=_t(s+n.length+l).set32(0,67324752).bytes(4,u.array).bytes(30,i).bytes(s,n);c+=n.length,f.set32(a,134695760).bytes(a+4,u.array.slice(10,22)),c+=l,this.files.push({offset:c,folder:r,name:i,header:u,payload:f}),this.offset=c}toBuffer(){let t=this.files.reduce((f,{name:v})=>46+v.length+f,0),e=_t(t+22),r=0;for(var{offset:i,name:n,header:s,folder:a}of this.files)e.set32(r,33639248).set16(r+4,20).bytes(r+6,s.array).set8(r+38,a?16:0).set32(r+42,i).bytes(r+46,n),r+=46+n.length;e.set32(r,101010256).set16(r+8,this.files.length).set16(r+10,this.files.length).set32(r+12,t).set32(r+16,this.offset);let l=new Uint8Array(this.offset+e.size),c=0;for(var{payload:u}of this.files)l.set(u.array,c),c+=u.size;return l.set(e.array,c),l}get blob(){return new Blob([this.toBuffer()],{type:"application/zip"})}}Tt.encoder=new TextEncoder;const Ft=(o,t,e,r)=>{if(r){let{width:i,height:n}=o,s=Object.assign(document.createElement("canvas"),{width:i,height:n}),a=s.getContext("2d");a.fillStyle=r,a.fillRect(0,0,i,n),a.drawImage(o,0,0),o=s}return new Promise((i,n)=>o.toBlob(i,t,e))},Re=(...o)=>Ft(...o).then(t=>t.arrayBuffer()),Ne=async(o,t,e,r,i)=>{ae(i,await Ft(o,t,e,r))},Oe=async(o,t,e,r,i,n,s)=>{let a=u=>n.replace("{}",String(u+1).padStart(s,"0")),l=se(i,".zip")||"archive",c=new Tt(l);await Promise.all(o.map(async(u,f)=>{let v=a(f);await c.add(v,await Ft(u,t,e,r))})),ae(`${l}.zip`,c.blob)},ae=(o,t)=>{const e=window.URL.createObjectURL(t),r=document.createElement("a");r.style.display="none",r.href=e,r.setAttribute("download",o),typeof r.download>"u"&&r.setAttribute("target","_blank"),document.body.appendChild(r),r.click(),document.body.removeChild(r),setTimeout(()=>window.URL.revokeObjectURL(e),100)},$e=(o,t,e)=>o.map(r=>{if(t==1&&!e)return r.canvas;let i=document.createElement("canvas"),n=i.getContext("2d"),s=r.canvas?r.canvas:r;return i.width=s.width*t,i.height=s.height*t,e&&(n.fillStyle=e,n.fillRect(0,0,i.width,i.height)),n.scale(t,t),n.drawImage(s,0,0),i}),Fe={asBuffer:Re,asDownload:Ne,asZipDownload:Oe,atScale:$e,options:Me},{asBuffer:Lt,asDownload:Ue,asZipDownload:Ge,atScale:Mt,options:Rt}=Fe,Jt=Symbol.for("toDataURL"),je=o=>new Promise((t,e)=>Object.assign(new le,{crossOrigin:"Anonymous",onload:t,onerror:e,src:o}));let ze=class{constructor(t,e){let r=document.createElement("canvas"),i=[];Object.defineProperty(r,"async",{value:!0,writable:!1,enumerable:!0});for(var[n,s]of Object.entries({png:()=>Lt(r,"image/png"),jpg:()=>Lt(r,"image/jpeg"),pages:()=>i.concat(r).map(a=>a.getContext("2d"))}))Object.defineProperty(r,n,{get:s});return Object.assign(r,{width:t,height:e,newPage(...a){var{width:c,height:u}=r,l=Object.assign(document.createElement("canvas"),{width:c,height:u});l.getContext("2d").drawImage(r,0,0),i.push(l);var[c,u]=a.length?a:[c,u];return Object.assign(r,{width:c,height:u}).getContext("2d")},saveAs(a,l){l=typeof l=="number"?{quality:l}:l;let c=Rt(this.pages,{filename:a,...l}),{pattern:u,padding:f,mime:v,quality:A,matte:k,density:T,archive:M}=c,g=Mt(c.pages,T);return f==null?Ue(g[0],v,A,k,a):Ge(g,v,A,k,M,u,f)},toBuffer(a="png",l={}){l=typeof l=="number"?{quality:l}:l;let c=Rt(this.pages,{extension:a,...l}),{mime:u,quality:f,matte:v,pages:A,density:k}=c,T=Mt(A,k,v)[0];return Lt(T,u,f,v)},[Jt]:r.toDataURL.bind(r),toDataURL(a="png",l={}){l=typeof l=="number"?{quality:l}:l;let c=Rt(this.pages,{extension:a,...l}),{mime:u,quality:f,matte:v,pages:A,density:k}=c,T=Mt(A,k,v)[0],M=T[T===r?Jt:"toDataURL"](u,f);return Promise.resolve(M)}})}};const{CanvasRenderingContext2D:He,CanvasGradient:Ke,CanvasPattern:Xe,Image:le,ImageData:Ze,Path2D:qe,DOMMatrix:Ve,DOMRect:Je,DOMPoint:We}=window,Ye={Canvas:ze,loadImage:je,CanvasRenderingContext2D:He,CanvasGradient:Ke,CanvasPattern:Xe,Image:le,ImageData:Ze,Path2D:qe,DOMMatrix:Ve,DOMRect:Je,DOMPoint:We},bt=(o,t,e={},r=e)=>{if(Array.isArray(t))t.forEach(i=>bt(o,i,e,r));else if(typeof t=="function")t(o,e,r,bt);else{const i=Object.keys(t)[0];Array.isArray(t[i])?(r[i]={},bt(o,t[i],e,r[i])):r[i]=t[i](o,e,r,bt)}return e},gt=(o,t)=>(e,r,i,n)=>{t(e,r,i)&&n(e,o,r,i)},Qe=(o,t)=>(e,r,i,n)=>{const s=[];let a=e.pos;for(;t(e,r,i);){const l={};if(n(e,o,r,l),e.pos===a)break;a=e.pos,s.push(l)}return s},tr=o=>({data:o,pos:0}),W=()=>o=>o.data[o.pos++],ce=(o=0)=>t=>t.data[t.pos+o],it=o=>t=>t.data.subarray(t.pos,t.pos+=o),Et=o=>t=>t.data.subarray(t.pos,t.pos+o),Ot=o=>t=>Array.from(it(o)(t)).map(e=>String.fromCharCode(e)).join(""),ft=o=>t=>{const e=it(2)(t);return(e[1]<<8)+e[0]},he=(o,t)=>(e,r,i)=>{const n=typeof t=="function"?t(e,r,i):t,s=it(o),a=new Array(n);for(var l=0;l{for(var r=0,i=0;it=>{const e=W()(t),r=new Array(8);for(var i=0;i<8;i++)r[7-i]=!!(e&1<{const a=o[s];return a.length?n[s]=er(r,a.index,a.length):n[s]=r[a.index],n},{})};var It={blocks:o=>{const e=[],r=o.data.length;for(var i=0,n=W()(o);n!==0&&n;n=W()(o)){if(o.pos+n>=r){const c=r-o.pos;e.push(it(c)(o)),i+=c;break}e.push(it(n)(o)),i+=n}const s=new Uint8Array(i);for(var a=0,l=0;l{var t=Et(2)(o);return t[0]===33&&t[1]===249}),ir=gt({image:[{code:W()},{descriptor:[{left:ft()},{top:ft()},{width:ft()},{height:ft()},{lct:Ut({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},gt({lct:he(3,(o,t,e)=>Math.pow(2,e.descriptor.lct.size+1))},(o,t,e)=>e.descriptor.lct.exists),{data:[{minCodeSize:W()},It]}]},o=>ce()(o)===44),or=gt({text:[{codes:it(2)},{blockSize:W()},{preData:(o,t,e)=>it(e.text.blockSize)(o)},It]},o=>{var t=Et(2)(o);return t[0]===33&&t[1]===1}),nr=gt({application:[{codes:it(2)},{blockSize:W()},{id:(o,t,e)=>Ot(e.blockSize)(o)},It]},o=>{var t=Et(2)(o);return t[0]===33&&t[1]===255}),sr=gt({comment:[{codes:it(2)},It]},o=>{var t=Et(2)(o);return t[0]===33&&t[1]===254}),ar=[{header:[{signature:Ot(3)},{version:Ot(3)}]},{lsd:[{width:ft()},{height:ft()},{gct:Ut({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:W()},{pixelAspectRatio:W()}]},gt({gct:he(3,(o,t)=>Math.pow(2,t.lsd.gct.size+1))},(o,t)=>t.lsd.gct.exists),{frames:Qe([rr,nr,sr,ir,or],o=>{var t=ce()(o);return t===33||t===44})}],lr=(o,t)=>{const e=new Array(o.length),r=o.length/t,i=function(u,f){const v=o.slice(f*t,(f+1)*t);e.splice.apply(e,[u*t,t].concat(v))},n=[0,4,2,1],s=[8,8,4,2];for(var a=0,l=0;l<4;l++)for(var c=n[l];c{const n=e;var s,a,l,c,u,f,v,b,A,k,d,T,m,y,I,B;const M=new Array(e),g=new Array(4096),p=new Array(4096),P=new Array(4097);for(T=o,a=1<>=c,b-=c,A>s||A==u)break;if(A==a){c=T+1,l=(1<a;)P[y++]=p[A],A=g[A];m=p[A]&255,P[y++]=m,s<4096&&(g[s]=v,p[s]=m,s++,!(s&l)&&s<4096&&(c++,l+=s)),v=f}y--,M[B++]=P[y],k++}for(k=B;k{const t=new Uint8Array(o);return bt(tr(t),ar)},ur=o=>{const t=o.pixels.length,e=new Uint8ClampedArray(t*4);for(var r=0;r{if(!o.image){console.warn("gif frame does not have associated image.");return}const{image:r}=o,i=r.descriptor.width*r.descriptor.height;var n=cr(r.data.minCodeSize,r.data.blocks,i);r.descriptor.lct.interlaced&&(n=lr(n,r.descriptor.width));const s={pixels:n,dims:{top:o.image.descriptor.top,left:o.image.descriptor.left,width:o.image.descriptor.width,height:o.image.descriptor.height}};return r.descriptor.lct&&r.descriptor.lct.exists?s.colorTable=r.lct:s.colorTable=t,o.gce&&(s.delay=(o.gce.delay||10)*10,s.disposalType=o.gce.extras.disposal,o.gce.extras.transparentColorGiven&&(s.transparentIndex=o.gce.transparentColorIndex)),s.patch=ur(s),s},dr=(o,t)=>o.frames.filter(e=>e.image).map(e=>fr(e,o.gct));var gr=100,K=256,Wt=K-1,ct=4,ue=16,Gt=1<>jt,vr=Gt<>3,$t=6,wr=1<<$t,br=mr*wr,yr=30,de=10,Ct=1<>3);var g,p;for(g=0;g>=ct,e[g][1]>>=ct,e[g][2]>>=ct,e[g][3]=g}function c(g,p,P,d,b){e[p][0]-=g*(e[p][0]-P)/Ct,e[p][1]-=g*(e[p][1]-d)/Ct,e[p][2]-=g*(e[p][2]-b)/Ct}function u(g,p,P,d,b){for(var m=Math.abs(p-g),y=Math.min(p+g,K),B=p+1,I=p-1,R=1,h,N;Bm;)N=s[R++],Bm&&(h=e[I--],h[0]-=N*(h[0]-P)/pt,h[1]-=N*(h[1]-d)/pt,h[2]-=N*(h[2]-b)/pt)}function f(g,p,P){var d=2147483647,b=d,m=-1,y=m,B,I,R,h,N;for(B=0;B>ue-ct),h>jt,n[B]-=N,i[B]+=N<>1,p=y+1;p>1,p=y+1;p<256;p++)r[p]=Wt}function A(g,p,P){for(var d,b,m,y=1e3,B=-1,I=r[p],R=I-1;I=0;)I=y?I=K:(I++,m<0&&(m=-m),d=b[0]-g,d<0&&(d=-d),m+=d,m=0&&(b=e[R],m=p-b[1],m>=y?R=-1:(R--,m<0&&(m=-m),d=b[0]-g,d<0&&(d=-d),m+=d,m>$t;for(B<=1&&(B=0),g=0;g=p&&(O-=p),g++,b===0&&(b=1),g%b===0)for(m-=m/P,y-=y/yr,B=y>>$t,B<=1&&(B=0),C=0;C=254&&I(O)}function b(C){m(wt),f=T+2,A=!0,N(T,C)}function m(C){for(var O=0;O=0){lt=z-G,G===0&&(lt=1);do if((G-=lt)<0&&(G+=z),s[G]===w){Y=a[G];continue t}while(s[G]>=0)}N(Y,O),Y=ut,f<1<0&&(C.writeByte(u),C.writeBytes(n,0,u),u=0)}function R(C){return(1<0?l|=C<=8;)d(l&255,O),l>>=8,c-=8;if((f>v||A)&&(A?(v=R(P=k),A=!1):(++P,P==At?v=1<0;)d(l&255,O),l>>=8,c-=8;I(O)}}this.encode=B}function q(){this.page=-1,this.pages=[],this.newPage()}q.pageSize=4096;q.charMap={};for(var Pt=0;Pt<256;Pt++)q.charMap[Pt]=String.fromCharCode(Pt);q.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(q.pageSize),this.cursor=0};q.prototype.getData=function(){for(var o="",t=0;tr+i.length,0));return o.reduce((r,i)=>(e.set(i,r),r+i.length),0),e};q.prototype.writeByte=function(o){this.cursor>=q.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=o};q.prototype.writeUTFBytes=function(o){for(var t=o.length,e=0;e=0&&(this.dispose=o)};$.prototype.setRepeat=function(o){this.repeat=o};$.prototype.setTransparent=function(o){this.transparent=o};$.prototype.addFrame=function(o){this.image=o,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),this.globalPalette===!0&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),!this.firstFrame&&!this.globalPalette&&this.writePalette(),this.writePixels(),this.firstFrame=!1};$.prototype.finish=function(){this.out.writeByte(59)};$.prototype.setQuality=function(o){o<1&&(o=1),this.sample=o};$.prototype.setDither=function(o){o===!0&&(o="FloydSteinberg"),this.dither=o};$.prototype.setGlobalPalette=function(o){this.globalPalette=o};$.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette};$.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")};$.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new Pr(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),this.dither.match(/-serpentine/)!==null):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,this.transparent!==null&&(this.transIndex=this.findClosest(this.transparent,!0))};$.prototype.indexPixels=function(o){var t=this.pixels.length/3;this.indexedPixels=new Uint8Array(t);for(var e=0,r=0;r=0&&B+u=0&&I+c>16,(o&65280)>>8,o&255,t)};$.prototype.findClosestRGB=function(o,t,e,r){if(this.colorTab===null)return-1;if(this.neuQuant&&!r)return this.neuQuant.lookupRGB(o,t,e);for(var i=0,n=256*256*256,s=this.colorTab.length,a=0,l=0;a=0&&(t=this.dispose&7),t<<=2,this.out.writeByte(0|t|0|o),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)};$.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)};$.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)};$.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)};$.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var o=3*256-this.colorTab.length,t=0;t>8&255)};$.prototype.writePixels=function(){var o=new Dr(this.width,this.height,this.indexedPixels,this.colorDepth);o.encode(this.out)};$.prototype.stream=function(){return this.out};var kr=globalThis&&globalThis.__awaiter||function(o,t,e,r){function i(n){return n instanceof e?n:new e(function(s){s(n)})}return new(e||(e=Promise))(function(n,s){function a(u){try{c(r.next(u))}catch(f){s(f)}}function l(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?n(u.value):i(u.value).then(a,l)}c((r=r.apply(o,t||[])).next())})};const{Canvas:nt}=Ye,Bt=.4;function ie(o){if(!o)return;function t(e){e.onload=null,e.onerror=null}return new Promise(function(e,r){if(o.slice(0,4)=="data"){let n=new Image;n.onload=function(){e(n),t(n)},n.onerror=function(){r("Image load error"),t(n)},n.src=o;return}let i=new Image;i.setAttribute("crossOrigin","Anonymous"),i.onload=function(){e(i)},i.onerror=function(){r("Image load error")},i.src=o})}class _{constructor(t){const e=Object.assign({},t);if(Object.keys(_.defaultOptions).forEach(r=>{r in e||Object.defineProperty(e,r,{value:_.defaultOptions[r],enumerable:!0,writable:!0})}),e.components?typeof e.components=="object"&&Object.keys(_.defaultComponentOptions).forEach(r=>{r in e.components?Object.defineProperty(e.components,r,{value:Object.assign(Object.assign({},_.defaultComponentOptions[r]),e.components[r]),enumerable:!0,writable:!0}):Object.defineProperty(e.components,r,{value:_.defaultComponentOptions[r],enumerable:!0,writable:!0})}):e.components=_.defaultComponentOptions,e.dotScale!==null&&e.dotScale!==void 0){if(e.dotScale<=0||e.dotScale>1)throw new Error("dotScale should be in range (0, 1].");e.components.data.scale=e.dotScale,e.components.timing.scale=e.dotScale,e.components.alignment.scale=e.dotScale}this.options=e,this.canvas=new nt(t.size,t.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new ht(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}draw(){return new Promise(t=>this._draw().then(t))}_clear(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)}static _prepareRoundedCornerClip(t,e,r,i,n,s){t.beginPath(),t.moveTo(e,r),t.arcTo(e+i,r,e+i,r+n,s),t.arcTo(e+i,r+n,e,r+n,s),t.arcTo(e,r+n,e,r,s),t.arcTo(e,r,e+i,r,s),t.closePath()}static _getAverageRGB(t){const r={r:0,g:0,b:0};let i,n,s=-4;const a={r:0,g:0,b:0};let l=0;n=t.naturalHeight||t.height,i=t.naturalWidth||t.width;const u=new nt(i,n).getContext("2d");if(!u)return r;u.drawImage(t,0,0);let f;try{f=u.getImageData(0,0,i,n)}catch{return r}for(;(s+=5*4)200||f.data[s+1]>200||f.data[s+2]>200||(++l,a.r+=f.data[s],a.g+=f.data[s+1],a.b+=f.data[s+2]);return a.r=~~(a.r/l),a.g=~~(a.g/l),a.b=~~(a.b/l),a}static _drawDot(t,e,r,i,n=0,s=1){t.fillRect((e+n)*i,(r+n)*i,s*i,s*i)}static _drawAlignProtector(t,e,r,i){t.clearRect((e-2)*i,(r-2)*i,5*i,5*i),t.fillRect((e-2)*i,(r-2)*i,5*i,5*i)}static _drawAlign(t,e,r,i,n=0,s=1,a,l){const c=t.fillStyle;t.fillStyle=a,new Array(4).fill(0).map((u,f)=>{_._drawDot(t,e-2+f,r-2,i,n,s),_._drawDot(t,e+2,r-2+f,i,n,s),_._drawDot(t,e+2-f,r+2,i,n,s),_._drawDot(t,e-2,r+2-f,i,n,s)}),_._drawDot(t,e,r,i,n,s),l||(t.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map((u,f)=>{_._drawDot(t,e-1+f,r-1,i,n,s),_._drawDot(t,e+1,r-1+f,i,n,s),_._drawDot(t,e+1-f,r+1,i,n,s),_._drawDot(t,e-1,r+1-f,i,n,s)})),t.fillStyle=c}_draw(){var t,e,r,i,n,s,a,l,c,u,f,v,A,k,T,M,g,p,P;return kr(this,void 0,void 0,function*(){const d=(t=this.qrCode)===null||t===void 0?void 0:t.moduleCount,b=this.options.size;let m=this.options.margin;(m<0||m*2>=b)&&(m=0);const y=Math.ceil(m),B=b-2*m,I=this.options.whiteMargin,R=this.options.backgroundDimming,h=Math.ceil(B/d),N=h*d,C=N+2*y,O=new nt(C,C),w=O.getContext("2d");this._clear(),w.save(),w.translate(y,y);const ut=new nt(C,C),G=ut.getContext("2d");let Y=null,lt=[];if(this.options.gifBackground){const D=hr(this.options.gifBackground);if(Y=D,lt=dr(D),this.options.autoColor){let E=0,x=0,S=0,H=0;for(let F=0;F200||U[1]>200||U[2]>200||U[0]===0&&U[1]===0&&U[2]===0||(H++,E+=U[0],x+=U[1],S+=U[2])}E=~~(E/H),x=~~(x/H),S=~~(S/H),this.options.colorDark=`rgb(${E},${x},${S})`}}else if(this.options.backgroundImage){const D=yield ie(this.options.backgroundImage);if(this.options.autoColor){const E=_._getAverageRGB(D);this.options.colorDark=`rgb(${E.r},${E.g},${E.b})`}G.drawImage(D,0,0,D.width,D.height,0,0,C,C),G.rect(0,0,C,C),G.fillStyle=R,G.fill()}else G.rect(0,0,C,C),G.fillStyle=this.options.colorLight,G.fill();const z=L.getPatternPosition(this.qrCode.typeNumber),Q=((r=(e=this.options.components)===null||e===void 0?void 0:e.data)===null||r===void 0?void 0:r.scale)||Bt,zt=(1-Q)*.5;for(let D=0;D=d-8)||E>=d-8&&D<8,H=D==6&&E>=8&&E<=d-8||E==6&&D>=8&&D<=d-8;let F=S||H;for(let X=1;X=z[X]-2&&D<=z[X]+2&&E>=z[X]-2&&E<=z[X]+2;const U=E*h+(F?0:zt*h),tt=D*h+(F?0:zt*h);if(w.strokeStyle=x?this.options.colorDark:this.options.colorLight,w.lineWidth=.5,w.fillStyle=x?this.options.colorDark:this.options.colorLight,z.length===0)F||w.fillRect(U,tt,(F?1:Q)*h,(F?1:Q)*h);else{const X=E=d-4-5&&D=d-4-5;!F&&!X&&w.fillRect(U,tt,(F?1:Q)*h,(F?1:Q)*h)}}const J=z[z.length-1],ve=this.options.colorLight;if(w.fillStyle=ve,w.fillRect(0,0,8*h,8*h),w.fillRect(0,(d-8)*h,8*h,8*h),w.fillRect((d-8)*h,0,8*h,8*h),!((n=(i=this.options.components)===null||i===void 0?void 0:i.timing)===null||n===void 0)&&n.protectors&&(w.fillRect(8*h,6*h,(d-8-8)*h,h),w.fillRect(6*h,8*h,h,(d-8-8)*h)),!((a=(s=this.options.components)===null||s===void 0?void 0:s.cornerAlignment)===null||a===void 0)&&a.protectors&&_._drawAlignProtector(w,J,J,h),!((c=(l=this.options.components)===null||l===void 0?void 0:l.alignment)===null||c===void 0)&&c.protectors)for(let D=0;D=1)&&(E=.2),x<0&&(x=0),S<0&&(S=0);const H=N*E,F=.5*(C-H),U=F;w.restore(),w.fillStyle=this.options.logoBackgroundColor,w.save(),_._prepareRoundedCornerClip(w,F-x,U-x,H+2*x,H+2*x,S+x),w.clip();const tt=w.globalCompositeOperation;w.globalCompositeOperation="destination-out",w.fill(),w.globalCompositeOperation=tt,w.restore(),w.save(),_._prepareRoundedCornerClip(w,F,U,H,H,S),w.clip(),w.drawImage(D,F,U,H,H),w.restore(),w.save(),w.translate(y,y)}if(Y){let D,E,x,S,H,F;if(lt.forEach(function(U){D||(D=new $(b,b),D.setDelay(U.delay),D.setRepeat(0));const{width:tt,height:X}=U.dims;E||(E=new nt(tt,X),x=E.getContext("2d"),x.rect(0,0,E.width,E.height),x.fillStyle="#ffffff",x.fill()),(!S||!F||tt!==S.width||X!==S.height)&&(S=new nt(tt,X),H=S.getContext("2d"),F=H.createImageData(tt,X)),F.data.set(U.patch),H.putImageData(F,0,0),x.drawImage(S.getContext("2d").canvas,U.dims.left,U.dims.top);const yt=new nt(C,C),mt=yt.getContext("2d");mt.drawImage(E.getContext("2d").canvas,0,0,C,C),mt.rect(0,0,C,C),mt.fillStyle=R,mt.fill(),mt.drawImage(O.getContext("2d").canvas,0,0,C,C);const St=new nt(b,b),Zt=St.getContext("2d");Zt.drawImage(yt.getContext("2d").canvas,0,0,b,b),D.addFrame(Zt.getImageData(0,0,St.width,St.height).data)}),!D)throw new Error("No frames.");if(D.finish(),oe(this.canvas)){const tt=D.stream().toFlattenUint8Array().reduce((X,yt)=>X+String.fromCharCode(yt),"");return Promise.resolve(`data:image/gif;base64,${window.btoa(tt)}`)}return Promise.resolve(Buffer.from(D.stream().toFlattenUint8Array()))}else{G.drawImage(O.getContext("2d").canvas,0,0,C,C),w.drawImage(ut.getContext("2d").canvas,-y,-y,C,C);const D=new nt(b,b);D.getContext("2d").drawImage(O.getContext("2d").canvas,0,0,b,b),this.canvas=D;const x=this.options.gifBackground?"gif":"png";return oe(this.canvas)?Promise.resolve(this.canvas.toDataURL(x)):Promise.resolve(this.canvas.toBuffer(x))}})}}_.CorrectLevel=Z;_.defaultComponentOptions={data:{scale:.4},timing:{scale:.5,protectors:!1},alignment:{scale:.5,protectors:!1},cornerAlignment:{scale:.5,protectors:!0}};_.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",correctLevel:Z.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:_.defaultComponentOptions,autoColor:!0,logoBackgroundColor:"#ffffff",backgroundColor:"#ffffff"};function oe(o){try{return o instanceof HTMLElement}catch{return typeof o=="object"&&o.nodeType===1&&typeof o.style=="object"&&typeof o.ownerDocument=="object"}}function Dt(o,...t){if(Array.isArray(o))o.forEach(e=>Dt(e,...t));else return o(...t)}const Tr=(o,t)=>{const e=document.createElement("a");e.href=o,e.download=t||new Date().getTime()+".png",e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e)},Er=o=>new Promise((t,e)=>{const r=new XMLHttpRequest;r.responseType="blob",r.onload=()=>{const i=new FileReader;i.onloadend=()=>{t(i.result)},i.onerror=n=>{e(n)},i.onabort=n=>{e(n)},i.readAsArrayBuffer(r.response)},r.open("GET",o),r.send()}),Nt=be({name:"Vue3NextQrcode",props:ke,setup(o,t){const{expose:e}=t,r=ye(()=>({"--ray-qrcode-width":o.size+"px","--ray-qrcode-height":o.size+"px","--ray-qrcode-border-radius":o.logoCornerRadius+"px","--ray-qrcode-mask-color":o.maskColor})),i=qt();let n;const s=qt(!1);let a;const l=async()=>{const{gifBackgroundURL:v}=o;if(v)try{n=await Er(v)}catch(A){console.error(A)}},c=()=>{const{gifBackgroundURL:v,gifBackground:A,...k}=o;new _({...k,gifBackground:n??void 0}).draw().then(T=>{const{onSuccess:M}=o;M&&Dt(M,T),i.value=T}).catch(T=>{const{onError:M}=o;M&&Dt(M,T)})},u=()=>{if(t.slots.errorAction)return;const{onReload:v}=o;v&&Dt(v)},f=v=>i.value&&typeof i.value=="string"?new Promise(A=>{Tr(i.value,v),A()}):Promise.reject();return Ce(()=>{o.watchText?a=De(()=>o.text,()=>c()):a==null||a()}),e({downloadQRCode:f}),Ae(async()=>{await l(),c()}),Pe(()=>{a==null||a()}),{qrcodeURL:i,errorActionClick:u,cssVars:r,isClick:s}},render(){return ot("div",{class:"ray-qrcode",style:[this.cssVars]},[ot("div",{class:[this.status==="loading"&&!this.$slots.loading?"ray-qrcode__loading":"",this.$slots.loading?"ray-qrcode__loading--custom":""]},[this.status==="loading"?this.$slots.loading?ot("div",{class:"ray-qrcode__loading-slots"},[this.$slots.loading()]):ot("div",{class:"ray-qrcode__spin"},null):null,ot("img",Be({src:this.qrcodeURL},{img_tag:"VUE3_NEXT_QRCODE"}),null)]),this.status==="error"?ot("div",{class:"ray-qrcode__error"},[ot("div",{class:"ray-qrcode__error-content"},[typeof this.errorDescription=="string"?this.errorDescription:()=>this.errorDescription]),ot("div",{class:"ray-qrcode__error-btn",onClick:this.errorActionClick.bind(this)},[this.$slots.errorAction?this.$slots.errorAction():ot("span",{onMousedown:()=>{this.isClick=!0},onMouseup:()=>{this.isClick=!1},class:[this.isClick?"ray-qrcode__error-btn-click":""]},[this.errorActionDescription])])]):null])}});Nt.install=function(o){o.component(Nt.name,Nt)};export{Nt as Q}; diff --git a/js/vue3-next-qrcode@2.0.10_typescript@5.6.3-et2AKeWS.js.gz b/js/vue3-next-qrcode@2.0.10_typescript@5.6.3-et2AKeWS.js.gz new file mode 100644 index 00000000..f4c45075 Binary files /dev/null and b/js/vue3-next-qrcode@2.0.10_typescript@5.6.3-et2AKeWS.js.gz differ diff --git a/js/vue@3.5.13_typescript@5.6.3-l0sNRNKZ.js b/js/vue@3.5.12_typescript@5.6.3-l0sNRNKZ.js similarity index 100% rename from js/vue@3.5.13_typescript@5.6.3-l0sNRNKZ.js rename to js/vue@3.5.12_typescript@5.6.3-l0sNRNKZ.js diff --git a/js/vue@3.5.13_typescript@5.6.3-l0sNRNKZ.js.gz b/js/vue@3.5.12_typescript@5.6.3-l0sNRNKZ.js.gz similarity index 100% rename from js/vue@3.5.13_typescript@5.6.3-l0sNRNKZ.js.gz rename to js/vue@3.5.12_typescript@5.6.3-l0sNRNKZ.js.gz diff --git a/js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js b/js/vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js similarity index 98% rename from js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js rename to js/vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js index b552db4b..90bd1122 100644 --- a/js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js +++ b/js/vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js @@ -1 +1 @@ -import{a as Z,o as fe}from"./evtd@0.2.4-CI_DDEu_.js";import{B as ze,d as pe,z as G,y as De,a as Ne}from"./seemly@0.3.8-DjGKl9dV.js";import{I as _e,F as Ie,J as je,l as W,x as Ee,d as Ce,i as ne,v as re,N as Fe,f as D,h as z,R as Pe,k as R,w as Q,n as Ae,Q as Be,L as Ue,M as qe,m as Ke}from"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import{k as F,n as N}from"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import{u as oe}from"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import{h as Ge,u as q,o as Je,i as Qe}from"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import{z as Ze}from"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import{R as Re}from"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import{C as et}from"./css-render@0.15.14-C5toWlUr.js";function ce(n,e,t="default"){const r=e[t];if(r===void 0)throw new Error(`[vueuc/${n}]: slot[${t}] is empty.`);return r()}function he(n,e=!0,t=[]){return n.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&t.push(_e(String(r)));return}if(Array.isArray(r)){he(r,e,t);return}if(r.type===Ie){if(r.children===null)return;Array.isArray(r.children)&&he(r.children,e,t)}else r.type!==je&&t.push(r)}}),t}function me(n,e,t="default"){const r=e[t];if(r===void 0)throw new Error(`[vueuc/${n}]: slot[${t}] is empty.`);const o=he(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${n}]: slot[${t}] should have exactly one child.`)}let L=null;function We(){if(L===null&&(L=document.getElementById("v-binder-view-measurer"),L===null)){L=document.createElement("div"),L.id="v-binder-view-measurer";const{style:n}=L;n.position="fixed",n.left="0",n.right="0",n.top="0",n.bottom="0",n.pointerEvents="none",n.visibility="hidden",document.body.appendChild(L)}return L.getBoundingClientRect()}function tt(n,e){const t=We();return{top:e,left:n,height:0,width:0,right:t.width-n,bottom:t.height-e}}function ue(n){const e=n.getBoundingClientRect(),t=We();return{left:e.left-t.left,top:e.top-t.top,bottom:t.height+t.top-e.bottom,right:t.width+t.left-e.right,width:e.width,height:e.height}}function nt(n){return n.nodeType===9?null:n.parentNode}function ke(n){if(n===null)return null;const e=nt(n);if(e===null)return null;if(e.nodeType===9)return document;if(e.nodeType===1){const{overflow:t,overflowX:r,overflowY:o}=getComputedStyle(e);if(/(auto|scroll|overlay)/.test(t+o+r))return e}return ke(e)}const It=W({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(n){var e;Ee("VBinder",(e=Ce())===null||e===void 0?void 0:e.proxy);const t=ne("VBinder",null),r=F(null),o=i=>{r.value=i,t&&n.syncTargetWithParent&&t.setTargetRef(i)};let u=[];const b=()=>{let i=r.value;for(;i=ke(i),i!==null;)u.push(i);for(const g of u)fe("scroll",g,x,!0)},w=()=>{for(const i of u)Z("scroll",i,x,!0);u=[]},l=new Set,h=i=>{l.size===0&&b(),l.has(i)||l.add(i)},p=i=>{l.has(i)&&l.delete(i),l.size===0&&w()},x=()=>{ze(d)},d=()=>{l.forEach(i=>i())},f=new Set,m=i=>{f.size===0&&fe("resize",window,a),f.has(i)||f.add(i)},v=i=>{f.has(i)&&f.delete(i),f.size===0&&Z("resize",window,a)},a=()=>{f.forEach(i=>i())};return re(()=>{Z("resize",window,a),w()}),{targetRef:r,setTargetRef:o,addScrollListener:h,removeScrollListener:p,addResizeListener:m,removeResizeListener:v}},render(){return ce("binder",this.$slots)}}),Et=W({name:"Target",setup(){const{setTargetRef:n,syncTarget:e}=ne("VBinder");return{syncTarget:e,setTargetDirective:{mounted:n,updated:n}}},render(){const{syncTarget:n,setTargetDirective:e}=this;return n?Fe(me("follower",this.$slots),[[e]]):me("follower",this.$slots)}});function ve(n,e){console.error(`[vueuc/${n}]: ${e}`)}const{c:B}=et(),ie="vueuc-style";function be(n){return n&-n}class Oe{constructor(e,t){this.l=e,this.min=t;const r=new Array(e+1);for(let o=0;oo)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let u=e*r;for(;e>0;)u+=t[e],e-=be(e);return u}getBound(e){let t=0,r=this.l;for(;r>t;){const o=Math.floor((t+r)/2),u=this.sum(o);if(u>e){r=o;continue}else if(u{const{to:e}=n;return e??"body"})}},render(){return this.showTeleport?this.disabled?ce("lazy-teleport",this.$slots):z(Pe,{disabled:this.disabled,to:this.mergedTo},ce("lazy-teleport",this.$slots)):null}}),ee={top:"bottom",bottom:"top",left:"right",right:"left"},ge={start:"end",center:"center",end:"start"},ae={top:"height",bottom:"height",left:"width",right:"width"},ot={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},it={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},lt={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ye={top:!0,bottom:!1,left:!0,right:!1},xe={top:"end",bottom:"start",left:"end",right:"start"};function st(n,e,t,r,o,u){if(!o||u)return{placement:n,top:0,left:0};const[b,w]=n.split("-");let l=w??"center",h={top:0,left:0};const p=(f,m,v)=>{let a=0,i=0;const g=t[f]-e[m]-e[f];return g>0&&r&&(v?i=ye[m]?g:-g:a=ye[m]?g:-g),{left:a,top:i}},x=b==="left"||b==="right";if(l!=="center"){const f=lt[n],m=ee[f],v=ae[f];if(t[v]>e[v]){if(e[f]+e[v]e[m]&&(l=ge[w])}else{const f=b==="bottom"||b==="top"?"left":"top",m=ee[f],v=ae[f],a=(t[v]-e[v])/2;(e[f]e[m]?(l=xe[f],h=p(v,f,x)):(l=xe[m],h=p(v,m,x)))}let d=b;return e[b] *",{pointerEvents:"all"})])]),Ct=W({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(n){const e=ne("VBinder"),t=q(()=>n.enabled!==void 0?n.enabled:n.show),r=F(null),o=F(null),u=()=>{const{syncTrigger:d}=n;d.includes("scroll")&&e.addScrollListener(l),d.includes("resize")&&e.addResizeListener(l)},b=()=>{e.removeScrollListener(l),e.removeResizeListener(l)};R(()=>{t.value&&(l(),u())});const w=oe();dt.mount({id:"vueuc/binder",head:!0,anchorMetaName:ie,ssr:w}),re(()=>{b()}),Je(()=>{t.value&&l()});const l=()=>{if(!t.value)return;const d=r.value;if(d===null)return;const f=e.targetRef,{x:m,y:v,overlap:a}=n,i=m!==void 0&&v!==void 0?tt(m,v):ue(f);d.style.setProperty("--v-target-width",`${Math.round(i.width)}px`),d.style.setProperty("--v-target-height",`${Math.round(i.height)}px`);const{width:g,minWidth:M,placement:E,internalShift:_,flip:V}=n;d.setAttribute("v-placement",E),a?d.setAttribute("v-overlap",""):d.removeAttribute("v-overlap");const{style:T}=d;g==="target"?T.width=`${i.width}px`:g!==void 0?T.width=g:T.width="",M==="target"?T.minWidth=`${i.width}px`:M!==void 0?T.minWidth=M:T.minWidth="";const H=ue(d),j=ue(o.value),{left:X,top:P,placement:U}=st(E,i,H,_,V,a),s=ut(U,a),{left:c,top:y,transform:$}=at(U,j,i,P,X,a);d.setAttribute("v-placement",U),d.style.setProperty("--v-offset-left",`${Math.round(X)}px`),d.style.setProperty("--v-offset-top",`${Math.round(P)}px`),d.style.transform=`translateX(${c}) translateY(${y}) ${$}`,d.style.setProperty("--v-transform-origin",s),d.style.transformOrigin=s};Q(t,d=>{d?(u(),h()):b()});const h=()=>{Ae().then(l).catch(d=>console.error(d))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(d=>{Q(N(n,d),l)}),["teleportDisabled"].forEach(d=>{Q(N(n,d),h)}),Q(N(n,"syncTrigger"),d=>{d.includes("resize")?e.addResizeListener(l):e.removeResizeListener(l),d.includes("scroll")?e.addScrollListener(l):e.removeScrollListener(l)});const p=Qe(),x=q(()=>{const{to:d}=n;if(d!==void 0)return d;p.value});return{VBinder:e,mergedEnabled:t,offsetContainerRef:o,followerRef:r,mergedTo:x,syncPosition:l}},render(){return z(rt,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var n,e;const t=z("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[z("div",{class:"v-binder-follower-content",ref:"followerRef"},(e=(n=this.$slots).default)===null||e===void 0?void 0:e.call(n))]);return this.zindexable?Fe(t,[[Ze,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):t}})}});class ft{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||Re)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(const t of e){const r=this.elHandlersMap.get(t.target);r!==void 0&&r(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}}const Me=new ft,$e=W({name:"ResizeObserver",props:{onResize:Function},setup(n){let e=!1;const t=Ce().proxy;function r(o){const{onResize:u}=n;u!==void 0&&u(o)}R(()=>{const o=t.$el;if(o===void 0){ve("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){ve("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Me.registerHandler(o.nextElementSibling,r),e=!0)}),re(()=>{e&&Me.unregisterHandler(t.$el.nextElementSibling)})},render(){return Be(this.$slots,"default")}});let te;function ct(){return typeof document>"u"?!1:(te===void 0&&("matchMedia"in window?te=window.matchMedia("(pointer:coarse)").matches:te=!1),te)}let de;function Se(){return typeof document>"u"?1:(de===void 0&&(de="chrome"in window?window.devicePixelRatio:1),de)}const Le="VVirtualListXScroll";function ht({columnsRef:n,renderColRef:e,renderItemWithColsRef:t}){const r=F(0),o=F(0),u=D(()=>{const h=n.value;if(h.length===0)return null;const p=new Oe(h.length,0);return h.forEach((x,d)=>{p.add(d,x.width)}),p}),b=q(()=>{const h=u.value;return h!==null?Math.max(h.getBound(o.value)-1,0):0}),w=h=>{const p=u.value;return p!==null?p.sum(h):0},l=q(()=>{const h=u.value;return h!==null?Math.min(h.getBound(o.value+r.value)+1,n.value.length-1):0});return Ee(Le,{startIndexRef:b,endIndexRef:l,columnsRef:n,renderColRef:e,renderItemWithColsRef:t,getLeft:w}),{listWidthRef:r,scrollLeftRef:o}}const Te=W({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:n,endIndexRef:e,columnsRef:t,getLeft:r,renderColRef:o,renderItemWithColsRef:u}=ne(Le);return{startIndex:n,endIndex:e,columns:t,renderCol:o,renderItemWithCols:u,getLeft:r}},render(){const{startIndex:n,endIndex:e,columns:t,renderCol:r,renderItemWithCols:o,getLeft:u,item:b}=this;if(o!=null)return o({itemIndex:this.index,startColIndex:n,endColIndex:e,allColumns:t,item:b,getLeft:u});if(r!=null){const w=[];for(let l=n;l<=e;++l){const h=t[l];w.push(r({column:h,left:u(l),item:b}))}return w}return null}}),pt=B(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[B("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[B("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Ft=W({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(n){const e=oe();pt.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:ie,ssr:e}),R(()=>{const{defaultScrollIndex:s,defaultScrollKey:c}=n;s!=null?a({index:s}):c!=null&&a({key:c})});let t=!1,r=!1;Ue(()=>{if(t=!1,!r){r=!0;return}a({top:f.value,left:b.value})}),qe(()=>{t=!0,r||(r=!0)});const o=q(()=>{if(n.renderCol==null&&n.renderItemWithCols==null||n.columns.length===0)return;let s=0;return n.columns.forEach(c=>{s+=c.width}),s}),u=D(()=>{const s=new Map,{keyField:c}=n;return n.items.forEach((y,$)=>{s.set(y[c],$)}),s}),{scrollLeftRef:b,listWidthRef:w}=ht({columnsRef:N(n,"columns"),renderColRef:N(n,"renderCol"),renderItemWithColsRef:N(n,"renderItemWithCols")}),l=F(null),h=F(void 0),p=new Map,x=D(()=>{const{items:s,itemSize:c,keyField:y}=n,$=new Oe(s.length,c);return s.forEach((I,C)=>{const S=I[y],A=p.get(S);A!==void 0&&$.add(C,A)}),$}),d=F(0),f=F(0),m=q(()=>Math.max(x.value.getBound(f.value-pe(n.paddingTop))-1,0)),v=D(()=>{const{value:s}=h;if(s===void 0)return[];const{items:c,itemSize:y}=n,$=m.value,I=Math.min($+Math.ceil(s/y+1),c.length-1),C=[];for(let S=$;S<=I;++S)C.push(c[S]);return C}),a=(s,c)=>{if(typeof s=="number"){E(s,c,"auto");return}const{left:y,top:$,index:I,key:C,position:S,behavior:A,debounce:O=!0}=s;if(y!==void 0||$!==void 0)E(y,$,A);else if(I!==void 0)M(I,A,O);else if(C!==void 0){const le=u.value.get(C);le!==void 0&&M(le,A,O)}else S==="bottom"?E(0,Number.MAX_SAFE_INTEGER,A):S==="top"&&E(0,0,A)};let i,g=null;function M(s,c,y){const{value:$}=x,I=$.sum(s)+pe(n.paddingTop);if(!y)l.value.scrollTo({left:0,top:I,behavior:c});else{i=s,g!==null&&window.clearTimeout(g),g=window.setTimeout(()=>{i=void 0,g=null},16);const{scrollTop:C,offsetHeight:S}=l.value;if(I>C){const A=$.get(s);I+A<=C+S||l.value.scrollTo({left:0,top:I+A-S,behavior:c})}else l.value.scrollTo({left:0,top:I,behavior:c})}}function E(s,c,y){l.value.scrollTo({left:s,top:c,behavior:y})}function _(s,c){var y,$,I;if(t||n.ignoreItemResize||U(c.target))return;const{value:C}=x,S=u.value.get(s),A=C.get(S),O=(I=($=(y=c.borderBoxSize)===null||y===void 0?void 0:y[0])===null||$===void 0?void 0:$.blockSize)!==null&&I!==void 0?I:c.contentRect.height;if(O===A)return;O-n.itemSize===0?p.delete(s):p.set(s,O-n.itemSize);const K=O-A;if(K===0)return;C.add(S,K);const Y=l.value;if(Y!=null){if(i===void 0){const se=C.sum(S);Y.scrollTop>se&&Y.scrollBy(0,K)}else if(SY.scrollTop+Y.offsetHeight&&Y.scrollBy(0,K)}P()}d.value++}const V=!ct();let T=!1;function H(s){var c;(c=n.onScroll)===null||c===void 0||c.call(n,s),(!V||!T)&&P()}function j(s){var c;if((c=n.onWheel)===null||c===void 0||c.call(n,s),V){const y=l.value;if(y!=null){if(s.deltaX===0&&(y.scrollTop===0&&s.deltaY<=0||y.scrollTop+y.offsetHeight>=y.scrollHeight&&s.deltaY>=0))return;s.preventDefault(),y.scrollTop+=s.deltaY/Se(),y.scrollLeft+=s.deltaX/Se(),P(),T=!0,ze(()=>{T=!1})}}}function X(s){if(t||U(s.target))return;if(n.renderCol==null&&n.renderItemWithCols==null){if(s.contentRect.height===h.value)return}else if(s.contentRect.height===h.value&&s.contentRect.width===w.value)return;h.value=s.contentRect.height,w.value=s.contentRect.width;const{onResize:c}=n;c!==void 0&&c(s)}function P(){const{value:s}=l;s!=null&&(f.value=s.scrollTop,b.value=s.scrollLeft)}function U(s){let c=s;for(;c!==null;){if(c.style.display==="none")return!0;c=c.parentElement}return!1}return{listHeight:h,listStyle:{overflow:"auto"},keyToIndex:u,itemsStyle:D(()=>{const{itemResizable:s}=n,c=G(x.value.sum());return d.value,[n.itemsStyle,{boxSizing:"content-box",width:G(o.value),height:s?"":c,minHeight:s?c:"",paddingTop:G(n.paddingTop),paddingBottom:G(n.paddingBottom)}]}),visibleItemsStyle:D(()=>(d.value,{transform:`translateY(${G(x.value.sum(m.value))})`})),viewportItems:v,listElRef:l,itemsElRef:F(null),scrollTo:a,handleListResize:X,handleListScroll:H,handleListWheel:j,handleItemResize:_}},render(){const{itemResizable:n,keyField:e,keyToIndex:t,visibleItemsTag:r}=this;return z($e,{onResize:this.handleListResize},{default:()=>{var o,u;return z("div",Ke(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?z("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[z(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:b,renderItemWithCols:w}=this;return this.viewportItems.map(l=>{const h=l[e],p=t.get(h),x=b!=null?z(Te,{index:p,item:l}):void 0,d=w!=null?z(Te,{index:p,item:l}):void 0,f=this.$slots.default({item:l,renderedCols:x,renderedItemWithCols:d,index:p})[0];return n?z($e,{key:h,onResize:m=>this.handleItemResize(h,m)},{default:()=>f}):(f.key=h,f)})}})]):(u=(o=this.$slots).empty)===null||u===void 0?void 0:u.call(o)])}})}}),mt=B(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[B("&::-webkit-scrollbar",{width:0,height:0})]),At=W({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const n=F(null);function e(o){!(o.currentTarget.offsetWidthd){const{updateCounter:V}=n;for(let T=M;T>=0;--T){const H=i-1-T;V!==void 0?V(H):p.textContent=`${H}`;const j=p.offsetWidth;if(v-=f[T],v+j<=d||T===0){a=!0,M=T-1,m&&(M===-1?(m.style.maxWidth=`${d-j}px`,m.style.boxSizing="border-box"):m.style.maxWidth="");const{onUpdateCount:X}=n;X&&X(H);break}}}}const{onUpdateOverflow:g}=n;a?g!==void 0&&g(!0):(g!==void 0&&g(!1),p.setAttribute(k,""))}const u=oe();return vt.mount({id:"vueuc/overflow",head:!0,anchorMetaName:ie,ssr:u}),R(()=>o({showAllItemsBeforeCalculate:!1})),{selfRef:t,counterRef:r,sync:o}},render(){const{$slots:n}=this;return Ae(()=>this.sync({showAllItemsBeforeCalculate:!1})),z("div",{class:"v-overflow",ref:"selfRef"},[Be(n,"default"),n.counter?n.counter():z("span",{style:{display:"inline-block"},ref:"counterRef"}),n.tail?n.tail():null])}});function Ve(n){return n instanceof HTMLElement}function He(n){for(let e=0;e=0;e--){const t=n.childNodes[e];if(Ve(t)&&(Ye(t)||Xe(t)))return!0}return!1}function Ye(n){if(!bt(n))return!1;try{n.focus({preventScroll:!0})}catch{}return document.activeElement===n}function bt(n){if(n.tabIndex>0||n.tabIndex===0&&n.getAttribute("tabIndex")!==null)return!0;if(n.getAttribute("disabled"))return!1;switch(n.nodeName){case"A":return!!n.href&&n.rel!=="ignore";case"INPUT":return n.type!=="hidden"&&n.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let J=[];const Wt=W({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(n){const e=De(),t=F(null),r=F(null);let o=!1,u=!1;const b=typeof document>"u"?null:document.activeElement;function w(){return J[J.length-1]===e}function l(a){var i;a.code==="Escape"&&w()&&((i=n.onEsc)===null||i===void 0||i.call(n,a))}R(()=>{Q(()=>n.active,a=>{a?(x(),fe("keydown",document,l)):(Z("keydown",document,l),o&&d())},{immediate:!0})}),re(()=>{Z("keydown",document,l),o&&d()});function h(a){if(!u&&w()){const i=p();if(i===null||i.contains(Ne(a)))return;f("first")}}function p(){const a=t.value;if(a===null)return null;let i=a;for(;i=i.nextSibling,!(i===null||i instanceof Element&&i.tagName==="DIV"););return i}function x(){var a;if(!n.disabled){if(J.push(e),n.autoFocus){const{initialFocusTo:i}=n;i===void 0?f("first"):(a=we(i))===null||a===void 0||a.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",h,!0)}}function d(){var a;if(n.disabled||(document.removeEventListener("focus",h,!0),J=J.filter(g=>g!==e),w()))return;const{finalFocusTo:i}=n;i!==void 0?(a=we(i))===null||a===void 0||a.focus({preventScroll:!0}):n.returnFocusOnDeactivated&&b instanceof HTMLElement&&(u=!0,b.focus({preventScroll:!0}),u=!1)}function f(a){if(w()&&n.active){const i=t.value,g=r.value;if(i!==null&&g!==null){const M=p();if(M==null||M===g){u=!0,i.focus({preventScroll:!0}),u=!1;return}u=!0;const E=a==="first"?He(M):Xe(M);u=!1,E||(u=!0,i.focus({preventScroll:!0}),u=!1)}}}function m(a){if(u)return;const i=p();i!==null&&(a.relatedTarget!==null&&i.contains(a.relatedTarget)?f("last"):f("first"))}function v(a){u||(a.relatedTarget!==null&&a.relatedTarget===t.value?f("last"):f("first"))}return{focusableStartRef:t,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:m,handleEndFocus:v}},render(){const{default:n}=this.$slots;if(n===void 0)return null;if(this.disabled)return n();const{active:e,focusableStyle:t}=this;return z(Ie,null,[z("div",{"aria-hidden":"true",tabindex:e?"0":"-1",ref:"focusableStartRef",style:t,onFocus:this.handleStartFocus}),n(),z("div",{"aria-hidden":"true",style:t,ref:"focusableEndRef",tabindex:e?"0":"-1",onFocus:this.handleEndFocus})])}});export{It as B,Wt as F,rt as L,$e as V,Ft as a,Ct as b,Et as c,Bt as d,At as e,Me as r}; +import{a as Z,o as fe}from"./evtd@0.2.4-CI_DDEu_.js";import{B as ze,d as pe,z as G,y as De,a as Ne}from"./seemly@0.3.8-DjGKl9dV.js";import{I as _e,F as Ie,J as je,l as W,x as Ee,d as Ce,i as ne,v as re,N as Fe,f as D,h as z,R as Pe,k as R,w as Q,n as Ae,Q as Be,L as Ue,M as qe,m as Ke}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{k as F,n as N}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{u as oe}from"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import{h as Ge,u as q,o as Je,i as Qe}from"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import{z as Ze}from"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import{R as Re}from"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import{C as et}from"./css-render@0.15.14-C5toWlUr.js";function ce(n,e,t="default"){const r=e[t];if(r===void 0)throw new Error(`[vueuc/${n}]: slot[${t}] is empty.`);return r()}function he(n,e=!0,t=[]){return n.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&t.push(_e(String(r)));return}if(Array.isArray(r)){he(r,e,t);return}if(r.type===Ie){if(r.children===null)return;Array.isArray(r.children)&&he(r.children,e,t)}else r.type!==je&&t.push(r)}}),t}function me(n,e,t="default"){const r=e[t];if(r===void 0)throw new Error(`[vueuc/${n}]: slot[${t}] is empty.`);const o=he(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${n}]: slot[${t}] should have exactly one child.`)}let L=null;function We(){if(L===null&&(L=document.getElementById("v-binder-view-measurer"),L===null)){L=document.createElement("div"),L.id="v-binder-view-measurer";const{style:n}=L;n.position="fixed",n.left="0",n.right="0",n.top="0",n.bottom="0",n.pointerEvents="none",n.visibility="hidden",document.body.appendChild(L)}return L.getBoundingClientRect()}function tt(n,e){const t=We();return{top:e,left:n,height:0,width:0,right:t.width-n,bottom:t.height-e}}function ue(n){const e=n.getBoundingClientRect(),t=We();return{left:e.left-t.left,top:e.top-t.top,bottom:t.height+t.top-e.bottom,right:t.width+t.left-e.right,width:e.width,height:e.height}}function nt(n){return n.nodeType===9?null:n.parentNode}function ke(n){if(n===null)return null;const e=nt(n);if(e===null)return null;if(e.nodeType===9)return document;if(e.nodeType===1){const{overflow:t,overflowX:r,overflowY:o}=getComputedStyle(e);if(/(auto|scroll|overlay)/.test(t+o+r))return e}return ke(e)}const It=W({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(n){var e;Ee("VBinder",(e=Ce())===null||e===void 0?void 0:e.proxy);const t=ne("VBinder",null),r=F(null),o=i=>{r.value=i,t&&n.syncTargetWithParent&&t.setTargetRef(i)};let u=[];const b=()=>{let i=r.value;for(;i=ke(i),i!==null;)u.push(i);for(const g of u)fe("scroll",g,x,!0)},w=()=>{for(const i of u)Z("scroll",i,x,!0);u=[]},l=new Set,h=i=>{l.size===0&&b(),l.has(i)||l.add(i)},p=i=>{l.has(i)&&l.delete(i),l.size===0&&w()},x=()=>{ze(d)},d=()=>{l.forEach(i=>i())},f=new Set,m=i=>{f.size===0&&fe("resize",window,a),f.has(i)||f.add(i)},v=i=>{f.has(i)&&f.delete(i),f.size===0&&Z("resize",window,a)},a=()=>{f.forEach(i=>i())};return re(()=>{Z("resize",window,a),w()}),{targetRef:r,setTargetRef:o,addScrollListener:h,removeScrollListener:p,addResizeListener:m,removeResizeListener:v}},render(){return ce("binder",this.$slots)}}),Et=W({name:"Target",setup(){const{setTargetRef:n,syncTarget:e}=ne("VBinder");return{syncTarget:e,setTargetDirective:{mounted:n,updated:n}}},render(){const{syncTarget:n,setTargetDirective:e}=this;return n?Fe(me("follower",this.$slots),[[e]]):me("follower",this.$slots)}});function ve(n,e){console.error(`[vueuc/${n}]: ${e}`)}const{c:B}=et(),ie="vueuc-style";function be(n){return n&-n}class Oe{constructor(e,t){this.l=e,this.min=t;const r=new Array(e+1);for(let o=0;oo)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let u=e*r;for(;e>0;)u+=t[e],e-=be(e);return u}getBound(e){let t=0,r=this.l;for(;r>t;){const o=Math.floor((t+r)/2),u=this.sum(o);if(u>e){r=o;continue}else if(u{const{to:e}=n;return e??"body"})}},render(){return this.showTeleport?this.disabled?ce("lazy-teleport",this.$slots):z(Pe,{disabled:this.disabled,to:this.mergedTo},ce("lazy-teleport",this.$slots)):null}}),ee={top:"bottom",bottom:"top",left:"right",right:"left"},ge={start:"end",center:"center",end:"start"},ae={top:"height",bottom:"height",left:"width",right:"width"},ot={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},it={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},lt={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ye={top:!0,bottom:!1,left:!0,right:!1},xe={top:"end",bottom:"start",left:"end",right:"start"};function st(n,e,t,r,o,u){if(!o||u)return{placement:n,top:0,left:0};const[b,w]=n.split("-");let l=w??"center",h={top:0,left:0};const p=(f,m,v)=>{let a=0,i=0;const g=t[f]-e[m]-e[f];return g>0&&r&&(v?i=ye[m]?g:-g:a=ye[m]?g:-g),{left:a,top:i}},x=b==="left"||b==="right";if(l!=="center"){const f=lt[n],m=ee[f],v=ae[f];if(t[v]>e[v]){if(e[f]+e[v]e[m]&&(l=ge[w])}else{const f=b==="bottom"||b==="top"?"left":"top",m=ee[f],v=ae[f],a=(t[v]-e[v])/2;(e[f]e[m]?(l=xe[f],h=p(v,f,x)):(l=xe[m],h=p(v,m,x)))}let d=b;return e[b] *",{pointerEvents:"all"})])]),Ct=W({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(n){const e=ne("VBinder"),t=q(()=>n.enabled!==void 0?n.enabled:n.show),r=F(null),o=F(null),u=()=>{const{syncTrigger:d}=n;d.includes("scroll")&&e.addScrollListener(l),d.includes("resize")&&e.addResizeListener(l)},b=()=>{e.removeScrollListener(l),e.removeResizeListener(l)};R(()=>{t.value&&(l(),u())});const w=oe();dt.mount({id:"vueuc/binder",head:!0,anchorMetaName:ie,ssr:w}),re(()=>{b()}),Je(()=>{t.value&&l()});const l=()=>{if(!t.value)return;const d=r.value;if(d===null)return;const f=e.targetRef,{x:m,y:v,overlap:a}=n,i=m!==void 0&&v!==void 0?tt(m,v):ue(f);d.style.setProperty("--v-target-width",`${Math.round(i.width)}px`),d.style.setProperty("--v-target-height",`${Math.round(i.height)}px`);const{width:g,minWidth:M,placement:E,internalShift:_,flip:V}=n;d.setAttribute("v-placement",E),a?d.setAttribute("v-overlap",""):d.removeAttribute("v-overlap");const{style:T}=d;g==="target"?T.width=`${i.width}px`:g!==void 0?T.width=g:T.width="",M==="target"?T.minWidth=`${i.width}px`:M!==void 0?T.minWidth=M:T.minWidth="";const H=ue(d),j=ue(o.value),{left:X,top:P,placement:U}=st(E,i,H,_,V,a),s=ut(U,a),{left:c,top:y,transform:$}=at(U,j,i,P,X,a);d.setAttribute("v-placement",U),d.style.setProperty("--v-offset-left",`${Math.round(X)}px`),d.style.setProperty("--v-offset-top",`${Math.round(P)}px`),d.style.transform=`translateX(${c}) translateY(${y}) ${$}`,d.style.setProperty("--v-transform-origin",s),d.style.transformOrigin=s};Q(t,d=>{d?(u(),h()):b()});const h=()=>{Ae().then(l).catch(d=>console.error(d))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(d=>{Q(N(n,d),l)}),["teleportDisabled"].forEach(d=>{Q(N(n,d),h)}),Q(N(n,"syncTrigger"),d=>{d.includes("resize")?e.addResizeListener(l):e.removeResizeListener(l),d.includes("scroll")?e.addScrollListener(l):e.removeScrollListener(l)});const p=Qe(),x=q(()=>{const{to:d}=n;if(d!==void 0)return d;p.value});return{VBinder:e,mergedEnabled:t,offsetContainerRef:o,followerRef:r,mergedTo:x,syncPosition:l}},render(){return z(rt,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var n,e;const t=z("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[z("div",{class:"v-binder-follower-content",ref:"followerRef"},(e=(n=this.$slots).default)===null||e===void 0?void 0:e.call(n))]);return this.zindexable?Fe(t,[[Ze,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):t}})}});class ft{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||Re)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(const t of e){const r=this.elHandlersMap.get(t.target);r!==void 0&&r(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}}const Me=new ft,$e=W({name:"ResizeObserver",props:{onResize:Function},setup(n){let e=!1;const t=Ce().proxy;function r(o){const{onResize:u}=n;u!==void 0&&u(o)}R(()=>{const o=t.$el;if(o===void 0){ve("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){ve("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Me.registerHandler(o.nextElementSibling,r),e=!0)}),re(()=>{e&&Me.unregisterHandler(t.$el.nextElementSibling)})},render(){return Be(this.$slots,"default")}});let te;function ct(){return typeof document>"u"?!1:(te===void 0&&("matchMedia"in window?te=window.matchMedia("(pointer:coarse)").matches:te=!1),te)}let de;function Se(){return typeof document>"u"?1:(de===void 0&&(de="chrome"in window?window.devicePixelRatio:1),de)}const Le="VVirtualListXScroll";function ht({columnsRef:n,renderColRef:e,renderItemWithColsRef:t}){const r=F(0),o=F(0),u=D(()=>{const h=n.value;if(h.length===0)return null;const p=new Oe(h.length,0);return h.forEach((x,d)=>{p.add(d,x.width)}),p}),b=q(()=>{const h=u.value;return h!==null?Math.max(h.getBound(o.value)-1,0):0}),w=h=>{const p=u.value;return p!==null?p.sum(h):0},l=q(()=>{const h=u.value;return h!==null?Math.min(h.getBound(o.value+r.value)+1,n.value.length-1):0});return Ee(Le,{startIndexRef:b,endIndexRef:l,columnsRef:n,renderColRef:e,renderItemWithColsRef:t,getLeft:w}),{listWidthRef:r,scrollLeftRef:o}}const Te=W({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:n,endIndexRef:e,columnsRef:t,getLeft:r,renderColRef:o,renderItemWithColsRef:u}=ne(Le);return{startIndex:n,endIndex:e,columns:t,renderCol:o,renderItemWithCols:u,getLeft:r}},render(){const{startIndex:n,endIndex:e,columns:t,renderCol:r,renderItemWithCols:o,getLeft:u,item:b}=this;if(o!=null)return o({itemIndex:this.index,startColIndex:n,endColIndex:e,allColumns:t,item:b,getLeft:u});if(r!=null){const w=[];for(let l=n;l<=e;++l){const h=t[l];w.push(r({column:h,left:u(l),item:b}))}return w}return null}}),pt=B(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[B("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[B("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Ft=W({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(n){const e=oe();pt.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:ie,ssr:e}),R(()=>{const{defaultScrollIndex:s,defaultScrollKey:c}=n;s!=null?a({index:s}):c!=null&&a({key:c})});let t=!1,r=!1;Ue(()=>{if(t=!1,!r){r=!0;return}a({top:f.value,left:b.value})}),qe(()=>{t=!0,r||(r=!0)});const o=q(()=>{if(n.renderCol==null&&n.renderItemWithCols==null||n.columns.length===0)return;let s=0;return n.columns.forEach(c=>{s+=c.width}),s}),u=D(()=>{const s=new Map,{keyField:c}=n;return n.items.forEach((y,$)=>{s.set(y[c],$)}),s}),{scrollLeftRef:b,listWidthRef:w}=ht({columnsRef:N(n,"columns"),renderColRef:N(n,"renderCol"),renderItemWithColsRef:N(n,"renderItemWithCols")}),l=F(null),h=F(void 0),p=new Map,x=D(()=>{const{items:s,itemSize:c,keyField:y}=n,$=new Oe(s.length,c);return s.forEach((I,C)=>{const S=I[y],A=p.get(S);A!==void 0&&$.add(C,A)}),$}),d=F(0),f=F(0),m=q(()=>Math.max(x.value.getBound(f.value-pe(n.paddingTop))-1,0)),v=D(()=>{const{value:s}=h;if(s===void 0)return[];const{items:c,itemSize:y}=n,$=m.value,I=Math.min($+Math.ceil(s/y+1),c.length-1),C=[];for(let S=$;S<=I;++S)C.push(c[S]);return C}),a=(s,c)=>{if(typeof s=="number"){E(s,c,"auto");return}const{left:y,top:$,index:I,key:C,position:S,behavior:A,debounce:O=!0}=s;if(y!==void 0||$!==void 0)E(y,$,A);else if(I!==void 0)M(I,A,O);else if(C!==void 0){const le=u.value.get(C);le!==void 0&&M(le,A,O)}else S==="bottom"?E(0,Number.MAX_SAFE_INTEGER,A):S==="top"&&E(0,0,A)};let i,g=null;function M(s,c,y){const{value:$}=x,I=$.sum(s)+pe(n.paddingTop);if(!y)l.value.scrollTo({left:0,top:I,behavior:c});else{i=s,g!==null&&window.clearTimeout(g),g=window.setTimeout(()=>{i=void 0,g=null},16);const{scrollTop:C,offsetHeight:S}=l.value;if(I>C){const A=$.get(s);I+A<=C+S||l.value.scrollTo({left:0,top:I+A-S,behavior:c})}else l.value.scrollTo({left:0,top:I,behavior:c})}}function E(s,c,y){l.value.scrollTo({left:s,top:c,behavior:y})}function _(s,c){var y,$,I;if(t||n.ignoreItemResize||U(c.target))return;const{value:C}=x,S=u.value.get(s),A=C.get(S),O=(I=($=(y=c.borderBoxSize)===null||y===void 0?void 0:y[0])===null||$===void 0?void 0:$.blockSize)!==null&&I!==void 0?I:c.contentRect.height;if(O===A)return;O-n.itemSize===0?p.delete(s):p.set(s,O-n.itemSize);const K=O-A;if(K===0)return;C.add(S,K);const Y=l.value;if(Y!=null){if(i===void 0){const se=C.sum(S);Y.scrollTop>se&&Y.scrollBy(0,K)}else if(SY.scrollTop+Y.offsetHeight&&Y.scrollBy(0,K)}P()}d.value++}const V=!ct();let T=!1;function H(s){var c;(c=n.onScroll)===null||c===void 0||c.call(n,s),(!V||!T)&&P()}function j(s){var c;if((c=n.onWheel)===null||c===void 0||c.call(n,s),V){const y=l.value;if(y!=null){if(s.deltaX===0&&(y.scrollTop===0&&s.deltaY<=0||y.scrollTop+y.offsetHeight>=y.scrollHeight&&s.deltaY>=0))return;s.preventDefault(),y.scrollTop+=s.deltaY/Se(),y.scrollLeft+=s.deltaX/Se(),P(),T=!0,ze(()=>{T=!1})}}}function X(s){if(t||U(s.target))return;if(n.renderCol==null&&n.renderItemWithCols==null){if(s.contentRect.height===h.value)return}else if(s.contentRect.height===h.value&&s.contentRect.width===w.value)return;h.value=s.contentRect.height,w.value=s.contentRect.width;const{onResize:c}=n;c!==void 0&&c(s)}function P(){const{value:s}=l;s!=null&&(f.value=s.scrollTop,b.value=s.scrollLeft)}function U(s){let c=s;for(;c!==null;){if(c.style.display==="none")return!0;c=c.parentElement}return!1}return{listHeight:h,listStyle:{overflow:"auto"},keyToIndex:u,itemsStyle:D(()=>{const{itemResizable:s}=n,c=G(x.value.sum());return d.value,[n.itemsStyle,{boxSizing:"content-box",width:G(o.value),height:s?"":c,minHeight:s?c:"",paddingTop:G(n.paddingTop),paddingBottom:G(n.paddingBottom)}]}),visibleItemsStyle:D(()=>(d.value,{transform:`translateY(${G(x.value.sum(m.value))})`})),viewportItems:v,listElRef:l,itemsElRef:F(null),scrollTo:a,handleListResize:X,handleListScroll:H,handleListWheel:j,handleItemResize:_}},render(){const{itemResizable:n,keyField:e,keyToIndex:t,visibleItemsTag:r}=this;return z($e,{onResize:this.handleListResize},{default:()=>{var o,u;return z("div",Ke(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?z("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[z(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:b,renderItemWithCols:w}=this;return this.viewportItems.map(l=>{const h=l[e],p=t.get(h),x=b!=null?z(Te,{index:p,item:l}):void 0,d=w!=null?z(Te,{index:p,item:l}):void 0,f=this.$slots.default({item:l,renderedCols:x,renderedItemWithCols:d,index:p})[0];return n?z($e,{key:h,onResize:m=>this.handleItemResize(h,m)},{default:()=>f}):(f.key=h,f)})}})]):(u=(o=this.$slots).empty)===null||u===void 0?void 0:u.call(o)])}})}}),mt=B(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[B("&::-webkit-scrollbar",{width:0,height:0})]),At=W({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const n=F(null);function e(o){!(o.currentTarget.offsetWidthd){const{updateCounter:V}=n;for(let T=M;T>=0;--T){const H=i-1-T;V!==void 0?V(H):p.textContent=`${H}`;const j=p.offsetWidth;if(v-=f[T],v+j<=d||T===0){a=!0,M=T-1,m&&(M===-1?(m.style.maxWidth=`${d-j}px`,m.style.boxSizing="border-box"):m.style.maxWidth="");const{onUpdateCount:X}=n;X&&X(H);break}}}}const{onUpdateOverflow:g}=n;a?g!==void 0&&g(!0):(g!==void 0&&g(!1),p.setAttribute(k,""))}const u=oe();return vt.mount({id:"vueuc/overflow",head:!0,anchorMetaName:ie,ssr:u}),R(()=>o({showAllItemsBeforeCalculate:!1})),{selfRef:t,counterRef:r,sync:o}},render(){const{$slots:n}=this;return Ae(()=>this.sync({showAllItemsBeforeCalculate:!1})),z("div",{class:"v-overflow",ref:"selfRef"},[Be(n,"default"),n.counter?n.counter():z("span",{style:{display:"inline-block"},ref:"counterRef"}),n.tail?n.tail():null])}});function Ve(n){return n instanceof HTMLElement}function He(n){for(let e=0;e=0;e--){const t=n.childNodes[e];if(Ve(t)&&(Ye(t)||Xe(t)))return!0}return!1}function Ye(n){if(!bt(n))return!1;try{n.focus({preventScroll:!0})}catch{}return document.activeElement===n}function bt(n){if(n.tabIndex>0||n.tabIndex===0&&n.getAttribute("tabIndex")!==null)return!0;if(n.getAttribute("disabled"))return!1;switch(n.nodeName){case"A":return!!n.href&&n.rel!=="ignore";case"INPUT":return n.type!=="hidden"&&n.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let J=[];const Wt=W({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(n){const e=De(),t=F(null),r=F(null);let o=!1,u=!1;const b=typeof document>"u"?null:document.activeElement;function w(){return J[J.length-1]===e}function l(a){var i;a.code==="Escape"&&w()&&((i=n.onEsc)===null||i===void 0||i.call(n,a))}R(()=>{Q(()=>n.active,a=>{a?(x(),fe("keydown",document,l)):(Z("keydown",document,l),o&&d())},{immediate:!0})}),re(()=>{Z("keydown",document,l),o&&d()});function h(a){if(!u&&w()){const i=p();if(i===null||i.contains(Ne(a)))return;f("first")}}function p(){const a=t.value;if(a===null)return null;let i=a;for(;i=i.nextSibling,!(i===null||i instanceof Element&&i.tagName==="DIV"););return i}function x(){var a;if(!n.disabled){if(J.push(e),n.autoFocus){const{initialFocusTo:i}=n;i===void 0?f("first"):(a=we(i))===null||a===void 0||a.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",h,!0)}}function d(){var a;if(n.disabled||(document.removeEventListener("focus",h,!0),J=J.filter(g=>g!==e),w()))return;const{finalFocusTo:i}=n;i!==void 0?(a=we(i))===null||a===void 0||a.focus({preventScroll:!0}):n.returnFocusOnDeactivated&&b instanceof HTMLElement&&(u=!0,b.focus({preventScroll:!0}),u=!1)}function f(a){if(w()&&n.active){const i=t.value,g=r.value;if(i!==null&&g!==null){const M=p();if(M==null||M===g){u=!0,i.focus({preventScroll:!0}),u=!1;return}u=!0;const E=a==="first"?He(M):Xe(M);u=!1,E||(u=!0,i.focus({preventScroll:!0}),u=!1)}}}function m(a){if(u)return;const i=p();i!==null&&(a.relatedTarget!==null&&i.contains(a.relatedTarget)?f("last"):f("first"))}function v(a){u||(a.relatedTarget!==null&&a.relatedTarget===t.value?f("last"):f("first"))}return{focusableStartRef:t,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:m,handleEndFocus:v}},render(){const{default:n}=this.$slots;if(n===void 0)return null;if(this.disabled)return n();const{active:e,focusableStyle:t}=this;return z(Ie,null,[z("div",{"aria-hidden":"true",tabindex:e?"0":"-1",ref:"focusableStartRef",style:t,onFocus:this.handleStartFocus}),n(),z("div",{"aria-hidden":"true",style:t,ref:"focusableEndRef",tabindex:e?"0":"-1",onFocus:this.handleEndFocus})])}});export{It as B,Wt as F,rt as L,$e as V,Ft as a,Ct as b,Et as c,Bt as d,At as e,Me as r}; diff --git a/js/vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js.gz b/js/vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js.gz new file mode 100644 index 00000000..2adabe3f Binary files /dev/null and b/js/vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js.gz differ diff --git a/js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js.gz b/js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js.gz deleted file mode 100644 index d7390a2c..00000000 Binary files a/js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js.gz and /dev/null differ diff --git a/js/zh-CN-XKNcx7um.js b/js/zh-CN-BW8ylN7B.js similarity index 70% rename from js/zh-CN-XKNcx7um.js rename to js/zh-CN-BW8ylN7B.js index a5aba341..5df9e498 100644 --- a/js/zh-CN-XKNcx7um.js +++ b/js/zh-CN-BW8ylN7B.js @@ -1 +1 @@ -import{E as oo}from"./hooks-DKN08swi.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-3eMKHOaU.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./naive-ui@2.40.1_vue@3.5.13_typescript@5.6.3_-Bx4bEkBQ.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./@vue_runtime-core@3.5.13-BEg_yh4N.js";import"./@vue_reactivity@3.5.13-Ch1DBDRK.js";import"./@vue_shared@3.5.13-Dh1pNJXy.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-BkAdx2tT.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BRDj2ZMK.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-B9mUPMHL.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-BO5HcqNg.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";import"./@vueuse_core@11.2.0_vue@3.5.13_typescript@5.6.3_-qLonknDl.js";import"./@vueuse_shared@11.2.0_vue@3.5.13_typescript@5.6.3_-C-DuMGMJ.js";import"./utils-DMI3ftdH.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____yt6biirdeg4kqzievtaggbt2mm-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-BSK3SS9R.js";import"./vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.13_typescript@5.6.3_-BP6RbFeK.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-B3N1nvv4.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-C65RY-Xl.js";import"./zrender@5.6.0-1zVsYK9t.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";const o="当前环境不支持全屏",to={isEnabledFullscreen:o},eo=Object.freeze(Object.defineProperty({__proto__:null,default:to,isEnabledFullscreen:o},Symbol.toStringTag,{value:"Module"})),t="项目配置",e={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},n="界面显示",i="动画效果",no={Title:t,ThemeOptions:e,InterfaceDisplay:n,ContentTransition:i},io=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:i,InterfaceDisplay:n,ThemeOptions:e,Title:t,default:no},Symbol.toStringTag,{value:"Module"})),r="刷新当前页面",c="锁屏",s="设置",l="Github",a="全屏",m="退出全屏",p="搜索",ro={Reload:r,Lock:c,Setting:s,Github:l,FullScreen:a,CancelFullScreen:m,Search:p},co=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:m,FullScreen:a,Github:l,Lock:c,Reload:r,Search:p,Setting:s,default:ro},Symbol.toStringTag,{value:"Module"})),_="请求",d="条形码",g="缓存工具函数",u="数字精度",f="右键菜单",b="首页",h="指令",S="文档",T="文档 (加速地址)",O="文档(内嵌)",C="可视化",y="表单",D="Mock 数据",P="模态框",M="多级菜单(缓存)",j="办公",v="文档",R="演示",z="表格",N="二维码",F="依赖项",I="关于",L="页面详情模式",k="分段器",w="SVG 图标",x="表格",E="模板内置 Api",A="滚动动画",G="高级表格",Q="流程图",so={Axios:_,Barcode:d,CacheDemo:g,CalculatePrecision:u,ContextMenu:f,Dashboard:b,Directive:h,Doc:S,DocLocal:T,DocLocalInside:O,Echart:C,Error:"错误页",Form:y,Mock:D,Modal:P,MultiMenu:M,Office:j,Office_Document:v,Office_Presentation:R,Office_Spreadsheet:z,QRCode:N,Rely:F,RelyAbout:I,RouterDemo:L,Segment:k,SvgIcon:w,Table:x,TemplateHooks:E,scrollReveal:A,TablePro:G,Flow:Q},lo=Object.freeze(Object.defineProperty({__proto__:null,Axios:_,Barcode:d,CacheDemo:g,CalculatePrecision:u,ContextMenu:f,Dashboard:b,Directive:h,Doc:S,DocLocal:T,DocLocalInside:O,Echart:C,Flow:Q,Form:y,Mock:D,Modal:P,MultiMenu:M,Office:j,Office_Document:v,Office_Presentation:R,Office_Spreadsheet:z,QRCode:N,Rely:F,RelyAbout:I,RouterDemo:L,Segment:k,SvgIcon:w,Table:x,TablePro:G,TemplateHooks:E,default:so,scrollReveal:A},Symbol.toStringTag,{value:"Module"})),$="项目配置",B={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},H="界面显示",ao={Title:$,ThemeOptions:B,InterfaceDisplay:H},mo=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:H,ThemeOptions:B,Title:$,default:ao},Symbol.toStringTag,{value:"Module"})),V="注册",q="登录",J="扫码登陆",K="请输入用户名",U="请输入密码",W="登 陆",X="用户名",Y="密码",Z="开箱即用的中后台管理系统",po={Register:V,Signing:q,QRCodeSigning:J,NamePlaceholder:K,PasswordPlaceholder:U,Login:W,Name:X,Password:Y,RayTemplate:Z},_o=Object.freeze(Object.defineProperty({__proto__:null,Login:W,Name:X,NamePlaceholder:K,Password:Y,PasswordPlaceholder:U,QRCodeSigning:J,RayTemplate:Z,Register:V,Signing:q,default:po},Symbol.toStringTag,{value:"Module"})),go=Object.assign({"./zh-CN/globalMessage.json":eo,"./zh-CN/headerSettingOptions.json":io,"./zh-CN/headerTooltip.json":co,"./zh-CN/menu.json":lo,"./zh-CN/setting.json":mo,"./zh-CN/views/login/index.json":_o}),bt={message:{...oo(go,"zh-CN")}};export{bt as default}; +import{z as oo}from"./hooks-yKQIzKXx.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";import"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import"./utils-DJWgFDlo.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import"./vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./mobx@5.15.7-CEMJDQot.js";import"./uuid@9.0.1-CQkTLCs1.js";import"./classnames@2.5.1-nUTIn1-D.js";import"./mousetrap@1.6.5-BTGDluHR.js";import"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";const o="当前环境不支持全屏",to={isEnabledFullscreen:o},eo=Object.freeze(Object.defineProperty({__proto__:null,default:to,isEnabledFullscreen:o},Symbol.toStringTag,{value:"Module"})),t="项目配置",e={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},n="界面显示",i="动画效果",no={Title:t,ThemeOptions:e,InterfaceDisplay:n,ContentTransition:i},io=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:i,InterfaceDisplay:n,ThemeOptions:e,Title:t,default:no},Symbol.toStringTag,{value:"Module"})),r="刷新当前页面",c="锁屏",s="设置",l="Github",a="全屏",m="退出全屏",p="搜索",ro={Reload:r,Lock:c,Setting:s,Github:l,FullScreen:a,CancelFullScreen:m,Search:p},co=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:m,FullScreen:a,Github:l,Lock:c,Reload:r,Search:p,Setting:s,default:ro},Symbol.toStringTag,{value:"Module"})),_="请求",d="条形码",g="缓存工具函数",u="数字精度",f="右键菜单",b="首页",h="指令",S="文档",T="文档 (加速地址)",O="文档(内嵌)",C="可视化",y="表单",D="Mock 数据",P="模态框",M="多级菜单(缓存)",j="办公",v="文档",R="演示",z="表格",N="二维码",F="依赖项",I="关于",L="页面详情模式",k="分段器",w="SVG 图标",x="表格",A="模板内置 Api",E="滚动动画",G="高级表格",Q="流程图",so={Axios:_,Barcode:d,CacheDemo:g,CalculatePrecision:u,ContextMenu:f,Dashboard:b,Directive:h,Doc:S,DocLocal:T,DocLocalInside:O,Echart:C,Error:"错误页",Form:y,Mock:D,Modal:P,MultiMenu:M,Office:j,Office_Document:v,Office_Presentation:R,Office_Spreadsheet:z,QRCode:N,Rely:F,RelyAbout:I,RouterDemo:L,Segment:k,SvgIcon:w,Table:x,TemplateHooks:A,scrollReveal:E,TablePro:G,Flow:Q},lo=Object.freeze(Object.defineProperty({__proto__:null,Axios:_,Barcode:d,CacheDemo:g,CalculatePrecision:u,ContextMenu:f,Dashboard:b,Directive:h,Doc:S,DocLocal:T,DocLocalInside:O,Echart:C,Flow:Q,Form:y,Mock:D,Modal:P,MultiMenu:M,Office:j,Office_Document:v,Office_Presentation:R,Office_Spreadsheet:z,QRCode:N,Rely:F,RelyAbout:I,RouterDemo:L,Segment:k,SvgIcon:w,Table:x,TablePro:G,TemplateHooks:A,default:so,scrollReveal:E},Symbol.toStringTag,{value:"Module"})),$="项目配置",B={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},H="界面显示",ao={Title:$,ThemeOptions:B,InterfaceDisplay:H},mo=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:H,ThemeOptions:B,Title:$,default:ao},Symbol.toStringTag,{value:"Module"})),V="注册",q="登录",J="扫码登陆",K="请输入用户名",U="请输入密码",W="登 陆",X="用户名",Y="密码",Z="开箱即用的中后台管理系统",po={Register:V,Signing:q,QRCodeSigning:J,NamePlaceholder:K,PasswordPlaceholder:U,Login:W,Name:X,Password:Y,RayTemplate:Z},_o=Object.freeze(Object.defineProperty({__proto__:null,Login:W,Name:X,NamePlaceholder:K,Password:Y,PasswordPlaceholder:U,QRCodeSigning:J,RayTemplate:Z,Register:V,Signing:q,default:po},Symbol.toStringTag,{value:"Module"})),go=Object.assign({"./zh-CN/globalMessage.json":eo,"./zh-CN/headerSettingOptions.json":io,"./zh-CN/headerTooltip.json":co,"./zh-CN/menu.json":lo,"./zh-CN/setting.json":mo,"./zh-CN/views/login/index.json":_o}),bt={message:{...oo(go,"zh-CN")}};export{bt as default}; diff --git a/js/zh-CN-BW8ylN7B.js.gz b/js/zh-CN-BW8ylN7B.js.gz new file mode 100644 index 00000000..677e6e23 Binary files /dev/null and b/js/zh-CN-BW8ylN7B.js.gz differ diff --git a/js/zh-CN-XKNcx7um.js.gz b/js/zh-CN-XKNcx7um.js.gz deleted file mode 100644 index 5e8c4600..00000000 Binary files a/js/zh-CN-XKNcx7um.js.gz and /dev/null differ diff --git a/js/zrender@5.6.0-1zVsYK9t.js b/js/zrender@5.5.0-DW8ownf1.js similarity index 64% rename from js/zrender@5.6.0-1zVsYK9t.js rename to js/zrender@5.5.0-DW8ownf1.js index ecd26896..6fc4fd37 100644 --- a/js/zrender@5.6.0-1zVsYK9t.js +++ b/js/zrender@5.5.0-DW8ownf1.js @@ -1,4 +1,4 @@ -import{_ as H}from"./tslib@2.3.0-BDyQ-Jie.js";var No=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Wo=function(){function e(){this.browser=new No,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),Y=new Wo;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Y.wxa=!0,Y.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Y.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Y.node=!0,Y.svgSupported=!0):Yo(navigator.userAgent,Y);function Yo(e,t){var r=t.browser,i=e.match(/Firefox\/([\d.]+)/),n=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var dn=12,Go="sans-serif",hr=dn+"px "+Go,Xo=20,qo=100,$o="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Zo(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var f=0;f>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[f]+":0",n[h]+":0",i[1-f]+":auto",n[1-h]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function ms(e,t,r){for(var i=r?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],f=!0,h=0;h<4;h++){var u=e[h].getBoundingClientRect(),v=2*h,l=u.left,c=u.top;o.push(l,c),f=f&&a&&l===a[v]&&c===a[v+1],s.push(e[h].offsetLeft,e[h].offsetTop)}return f&&n?n:(t.srcCoords=o,t[i]=r?Dn(s,o):Dn(o,s))}function Qa(e){return e.nodeName.toUpperCase()==="CANVAS"}var ws=/([&<>"'])/g,Ts={"&":"&","<":"<",">":">",'"':""","'":"'"};function Gu(e){return e==null?"":(e+"").replace(ws,function(t,r){return Ts[r]})}var bs=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,oi=[],Cs=Y.browser.firefox&&+Y.browser.version.split(".")[0]<39;function qi(e,t,r,i){return r=r||{},i?An(e,t,r):Cs&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):An(e,t,r),r}function An(e,t,r){if(Y.domSupported&&e.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Qa(e)){var a=e.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(Xi(oi,e,i,n)){r.zrX=oi[0],r.zrY=oi[1];return}}r.zrX=r.zrY=0}function yn(e){return e||window.event}function pt(e,t,r){if(t=yn(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&qi(e,o,t,r)}else{qi(e,t,t,r);var a=Ms(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&bs.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Ms(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,i=e.deltaY;if(r==null||i==null)return t;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function Ls(e,t,r,i){e.addEventListener(t,r,i)}function Ps(e,t,r,i){e.removeEventListener(t,r,i)}var Ss=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Rs=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,i){return this._doTrack(t,r,i),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:r,event:t},o=0,s=n.length;o1&&i&&i.length>1){var a=En(i)/En(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Ds(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Kr(){return[1,0,0,1,0,0]}function xs(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function As(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function fi(e,t,r){var i=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],f=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=i,e[1]=n,e[2]=a,e[3]=o,e[4]=s,e[5]=f,e}function In(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Es(e,t,r,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],f=t[3],h=t[5],u=Math.sin(r),v=Math.cos(r);return e[0]=n*v+s*u,e[1]=-n*u+s*v,e[2]=a*v+f*u,e[3]=-a*u+v*f,e[4]=v*(o-i[0])+u*(h-i[1])+i[0],e[5]=v*(h-i[1])-u*(o-i[0])+i[1],e}function Is(e,t,r){var i=r[0],n=r[1];return e[0]=t[0]*i,e[1]=t[1]*n,e[2]=t[2]*i,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*n,e}function Fs(e,t){var r=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],f=r*o-a*i;return f?(f=1/f,e[0]=o*f,e[1]=-a*f,e[2]=-i*f,e[3]=r*f,e[4]=(i*s-o*n)*f,e[5]=(a*n-r*s)*f,e):null}var F=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,i=this.y-t.y;return Math.sqrt(r*r+i*i)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,i=this.y-t.y;return r*r+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,i=this.y;return this.x=t[0]*r+t[2]*i+t[4],this.y=t[1]*r+t[3]*i+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,i){t.x=r,t.y=i},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,i){t.x=r.x+i.x,t.y=r.y+i.y},e.sub=function(t,r,i){t.x=r.x-i.x,t.y=r.y-i.y},e.scale=function(t,r,i){t.x=r.x*i,t.y=r.y*i},e.scaleAndAdd=function(t,r,i,n){t.x=r.x+i.x*n,t.y=r.y+i.y*n},e.lerp=function(t,r,i,n){var a=1-n;t.x=a*r.x+n*i.x,t.y=a*r.y+n*i.y},e}(),fe=Math.min,he=Math.max,Gt=new F,Xt=new F,qt=new F,$t=new F,Or=new F,Br=new F,W=function(){function e(t,r,i,n){i<0&&(t=t+i,i=-i),n<0&&(r=r+n,n=-n),this.x=t,this.y=r,this.width=i,this.height=n}return e.prototype.union=function(t){var r=fe(t.x,this.x),i=fe(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=he(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=he(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=r,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,i=t.width/r.width,n=t.height/r.height,a=Kr();return In(a,a,[-r.x,-r.y]),Is(a,a,[i,n]),In(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,f=t.x,h=t.x+t.width,u=t.y,v=t.y+t.height,l=!(a_&&(_=m,g_&&(_=T,p=i.x&&t<=i.x+i.width&&r>=i.y&&r<=i.y+i.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,i){if(!i){t!==r&&e.copy(t,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=r.x*n+o,t.y=r.y*a+s,t.width=r.width*n,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Gt.x=qt.x=r.x,Gt.y=$t.y=r.y,Xt.x=$t.x=r.x+r.width,Xt.y=qt.y=r.y+r.height,Gt.transform(i),$t.transform(i),Xt.transform(i),qt.transform(i),t.x=fe(Gt.x,Xt.x,qt.x,$t.x),t.y=fe(Gt.y,Xt.y,qt.y,$t.y);var f=he(Gt.x,Xt.x,qt.x,$t.x),h=he(Gt.y,Xt.y,qt.y,$t.y);t.width=f-t.x,t.height=h-t.y},e}(),Ka="silent";function Os(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Bs}}function Bs(){Ss(this.event)}var Hs=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ir),Hr=function(){function e(t,r){this.x=t,this.y=r}return e}(),zs=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],hi=new W(0,0,0,0),Ja=function(e){H(t,e);function t(r,i,n,a,o){var s=e.call(this)||this;return s._hovered=new Hr(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new Hs,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new _s(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(ft(zs,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=ja(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var f=this._hovered=a?new Hr(i,n):this.findHover(i,n),h=f.target,u=this.proxy;u.setCursor&&u.setCursor(h?h.cursor:"default"),s&&h!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(f,"mousemove",r),h&&h!==s&&this.dispatchToElement(f,"mouseover",r)},t.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Hr(0,0)},t.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},t.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=Os(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(f){typeof f[o]=="function"&&f[o].call(f,s),f.trigger&&f.trigger(i,s)}))}},t.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new Hr(r,i);if(Fn(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],f=this._pointerSize,h=f/2,u=new W(r-h,i-h,f,f),v=a.length-1;v>=0;v--){var l=a[v];l!==n&&!l.ignore&&!l.ignoreCoarsePointer&&(!l.parent||!l.parent.ignoreCoarsePointer)&&(hi.copy(l.getBoundingRect()),l.transform&&hi.applyTransform(l.transform),hi.intersect(u)&&s.push(l))}if(s.length)for(var c=4,_=Math.PI/12,g=Math.PI*2,d=0;d4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function ks(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var i=e,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s||i.parent}return n?Ka:!0}return!1}function Fn(e,t,r,i,n){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==n&&!o.ignore&&(s=ks(o,r,i))&&(!t.topTarget&&(t.topTarget=o),s!==Ka)){t.target=o;break}}}function ja(e,t,r){var i=e.painter;return t<0||t>i.getWidth()||r<0||r>i.getHeight()}var to=32,zr=7;function Ns(e){for(var t=0;e>=to;)t|=e&1,e>>=1;return e+t}function On(e,t,r,i){var n=t+1;if(n===r)return 1;if(i(e[n++],e[t])<0){for(;n=0;)n++;return n-t}function Ws(e,t,r){for(r--;t>>1,n(a,e[f])<0?s=f:o=f+1;var h=i-o;switch(h){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;h>0;)e[o+h]=e[o+h-1],h--}e[o]=a}}function ui(e,t,r,i,n,a){var o=0,s=0,f=1;if(a(e,t[r+n])>0){for(s=i-n;f0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}else{for(s=n+1;fs&&(f=s);var h=o;o=n-f,f=n-h}for(o++;o>>1);a(e,t[r+u])>0?o=u+1:f=u}return f}function vi(e,t,r,i,n,a){var o=0,s=0,f=1;if(a(e,t[r+n])<0){for(s=n+1;fs&&(f=s);var h=o;o=n-f,f=n-h}else{for(s=i-n;f=0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}for(o++;o>>1);a(e,t[r+u])<0?f=u:o=u+1}return f}function Ys(e,t){var r=zr,i,n,a=0,o=[];i=[],n=[];function s(c,_){i[a]=c,n[a]=_,a+=1}function f(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]n[c+1])break;u(c)}}function h(){for(;a>1;){var c=a-2;c>0&&n[c-1]=zr||M>=zr);if(C)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),_===1){for(p=0;p=0;p--)e[w+p]=e[b+p];e[T]=o[m];return}for(var M=r;;){var C=0,L=0,P=!1;do if(t(o[m],e[y])<0){if(e[T--]=e[y--],C++,L=0,--_===0){P=!0;break}}else if(e[T--]=o[m--],L++,C=0,--d===1){P=!0;break}while((C|L)=0;p--)e[w+p]=e[b+p];if(_===0){P=!0;break}}if(e[T--]=o[m--],--d===1){P=!0;break}if(L=d-ui(e[y],o,0,d,d-1,t),L!==0){for(T-=L,m-=L,d-=L,w=T+1,b=m+1,p=0;p=zr||L>=zr);if(P)break;M<0&&(M=0),M+=2}if(r=M,r<1&&(r=1),d===1){for(T-=_,y-=_,w=T+1,b=y+1,p=_-1;p>=0;p--)e[w+p]=e[b+p];e[T]=o[m]}else{if(d===0)throw new Error;for(b=T-(d-1),p=0;ps&&(f=s),Bn(e,r,r+f,r+a,t),a=f}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var ot=1,qr=2,mr=4,Hn=!1;function li(){Hn||(Hn=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function zn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Xs=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=zn}return e.prototype.traverse=function(t,r){for(var i=0;i0&&(u.__clipPaths=[]),isNaN(u.z)&&(li(),u.z=0),isNaN(u.z2)&&(li(),u.z2=0),isNaN(u.zlevel)&&(li(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var v=t.getDecalElement&&t.getDecalElement();v&&this._updateAndAddDisplayable(v,r,i);var l=t.getTextGuideLine();l&&this._updateAndAddDisplayable(l,r,i);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,r,i)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,i=t.length;r=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),He;He=Y.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Jr={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Jr.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Jr.bounceIn(e*2)*.5:Jr.bounceOut(e*2-1)*.5+.5}},ue=Math.pow,Bt=Math.sqrt,ze=1e-8,ro=1e-4,kn=Bt(3),ve=1/3,Lt=Er(),ct=Er(),Dr=Er();function Ot(e){return e>-ze&&eze||e<-ze}function U(e,t,r,i,n){var a=1-n;return a*a*(a*e+3*n*t)+n*n*(n*i+3*a*r)}function Nn(e,t,r,i,n){var a=1-n;return 3*(((t-e)*a+2*(r-t)*n)*a+(i-r)*n*n)}function io(e,t,r,i,n,a){var o=i+3*(t-r)-e,s=3*(r-t*2+e),f=3*(t-e),h=e-n,u=s*s-3*o*f,v=s*f-9*o*h,l=f*f-3*s*h,c=0;if(Ot(u)&&Ot(v))if(Ot(s))a[0]=0;else{var _=-f/s;_>=0&&_<=1&&(a[c++]=_)}else{var g=v*v-4*u*l;if(Ot(g)){var d=v/u,_=-s/o+d,p=-d/2;_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p)}else if(g>0){var y=Bt(g),m=u*s+1.5*o*(-v+y),T=u*s+1.5*o*(-v-y);m<0?m=-ue(-m,ve):m=ue(m,ve),T<0?T=-ue(-T,ve):T=ue(T,ve);var _=(-s-(m+T))/(3*o);_>=0&&_<=1&&(a[c++]=_)}else{var b=(2*u*s-3*o*v)/(2*Bt(u*u*u)),w=Math.acos(b)/3,M=Bt(u),C=Math.cos(w),_=(-s-2*M*C)/(3*o),p=(-s+M*(C+kn*Math.sin(w)))/(3*o),L=(-s+M*(C-kn*Math.sin(w)))/(3*o);_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p),L>=0&&L<=1&&(a[c++]=L)}}return c}function no(e,t,r,i,n){var a=6*r-12*t+6*e,o=9*t+3*i-3*e-9*r,s=3*t-3*e,f=0;if(Ot(o)){if(eo(a)){var h=-s/a;h>=0&&h<=1&&(n[f++]=h)}}else{var u=a*a-4*o*s;if(Ot(u))n[0]=-a/(2*o);else if(u>0){var v=Bt(u),h=(-a+v)/(2*o),l=(-a-v)/(2*o);h>=0&&h<=1&&(n[f++]=h),l>=0&&l<=1&&(n[f++]=l)}}return f}function kt(e,t,r,i,n,a){var o=(t-e)*n+e,s=(r-t)*n+t,f=(i-r)*n+r,h=(s-o)*n+o,u=(f-s)*n+s,v=(u-h)*n+h;a[0]=e,a[1]=o,a[2]=h,a[3]=v,a[4]=v,a[5]=u,a[6]=f,a[7]=i}function qs(e,t,r,i,n,a,o,s,f,h,u){var v,l=.005,c=1/0,_,g,d,p;Lt[0]=f,Lt[1]=h;for(var y=0;y<1;y+=.05)ct[0]=U(e,r,n,o,y),ct[1]=U(t,i,a,s,y),d=Rr(Lt,ct),d=0&&d=0&&h<=1&&(n[f++]=h)}}else{var u=o*o-4*a*s;if(Ot(u)){var h=-o/(2*a);h>=0&&h<=1&&(n[f++]=h)}else if(u>0){var v=Bt(u),h=(-o+v)/(2*a),l=(-o-v)/(2*a);h>=0&&h<=1&&(n[f++]=h),l>=0&&l<=1&&(n[f++]=l)}}return f}function ao(e,t,r){var i=e+r-2*t;return i===0?.5:(e-t)/i}function ke(e,t,r,i,n){var a=(t-e)*i+e,o=(r-t)*i+t,s=(o-a)*i+a;n[0]=e,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function Us(e,t,r,i,n,a,o,s,f){var h,u=.005,v=1/0;Lt[0]=o,Lt[1]=s;for(var l=0;l<1;l+=.05){ct[0]=Q(e,r,n,l),ct[1]=Q(t,i,a,l);var c=Rr(Lt,ct);c=0&&c=1?1:io(0,i,a,1,f,s)&&U(0,n,o,1,s[0])}}}var Ks=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Sr,this.ondestroy=t.ondestroy||Sr,this.onrestart=t.onrestart||Sr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var f=n%i;this._startTime=t-f,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Ke(t)?t:Jr[t]||oo(t)},e}(),so=function(){function e(t){this.value=t}return e}(),Js=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new so(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,i=t.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),ti=function(){function e(t){this._list=new Js,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var f=i.head;i.remove(f),delete n[f.key],a=f.value,this._lastRemovedEntry=f}s?s.value=r:s=new so(r),s.key=t,i.insertEntry(s),n[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Yn={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Ht(e){return e=Math.round(e),e<0?0:e>255?255:e}function $i(e){return e<0?0:e>1?1:e}function ci(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ht(parseFloat(t)/100*255):Ht(parseInt(t,10))}function jr(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?$i(parseFloat(t)/100):$i(parseFloat(t))}function di(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function le(e,t,r){return e+(t-e)*r}function vt(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function Zi(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var fo=new ti(20),ce=null;function lr(e,t){ce&&Zi(ce,t),ce=fo.put(e,ce||t.slice())}function zt(e,t){if(e){t=t||[];var r=fo.get(e);if(r)return Zi(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in Yn)return Zi(t,Yn[i]),lr(e,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){vt(t,0,0,0,1);return}return vt(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),lr(e,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){vt(t,0,0,0,1);return}return vt(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),lr(e,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var f=i.substr(0,o),h=i.substr(o+1,s-(o+1)).split(","),u=1;switch(f){case"rgba":if(h.length!==4)return h.length===3?vt(t,+h[0],+h[1],+h[2],1):vt(t,0,0,0,1);u=jr(h.pop());case"rgb":if(h.length>=3)return vt(t,ci(h[0]),ci(h[1]),ci(h[2]),h.length===3?u:jr(h[3])),lr(e,t),t;vt(t,0,0,0,1);return;case"hsla":if(h.length!==4){vt(t,0,0,0,1);return}return h[3]=jr(h[3]),Gn(h,t),lr(e,t),t;case"hsl":if(h.length!==3){vt(t,0,0,0,1);return}return Gn(h,t),lr(e,t),t;default:return}}vt(t,0,0,0,1)}}function Gn(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=jr(e[1]),n=jr(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],vt(t,Ht(di(o,a,r+1/3)*255),Ht(di(o,a,r)*255),Ht(di(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Xn(e,t){var r=zt(e);if(r){for(var i=0;i<3;i++)r[i]=r[i]*(1-t)|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return mn(r,r.length===4?"rgba":"rgb")}}function Xu(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=zt(t[n]),s=zt(t[a]),f=i-n,h=mn([Ht(le(o[0],s[0],f)),Ht(le(o[1],s[1],f)),Ht(le(o[2],s[2],f)),$i(le(o[3],s[3],f))],"rgba");return r?{color:h,leftIndex:n,rightIndex:a,value:i}:h}}function mn(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Ne(e,t){var r=zt(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var qn=new ti(100);function qu(e){if(Be(e)){var t=qn.get(e);return t||(t=Xn(e,-.1),qn.put(e,t)),t}else if(Je(e)){var r=k({},e);return r.colorStops=St(e.colorStops,function(i){return{offset:i.offset,color:Xn(i.color,-.1)}}),r}return e}function js(e){return e.type==="linear"}function tf(e){return e.type==="radial"}(function(){return Y.hasGlobalWindow&&Ke(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var Ui=Array.prototype.slice;function xt(e,t,r){return(t-e)*r+e}function pi(e,t,r,i){for(var n=t.length,a=0;ai?t:e,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)i.length=o;else for(var f=a;f=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Zn,f=r;if(Pt(r)){var h=af(r);s=h,(h===1&&!De(r[0])||h===2&&!De(r[0][0]))&&(o=!0)}else if(De(r)&&!es(r))s=pe;else if(Be(r))if(!isNaN(+r))s=pe;else{var u=zt(r);u&&(f=u,s=$r)}else if(Je(r)){var v=k({},f);v.colorStops=St(r.colorStops,function(c){return{offset:c.offset,color:zt(c.color)}}),js(r)?s=Vi:tf(r)&&(s=Qi),f=v}a===0?this.valType=s:(s!==this.valType||s===Zn)&&(o=!0),this.discrete=this.discrete||o;var l={time:t,value:f,rawValue:r,percent:0};return i&&(l.easing=i,l.easingFunc=Ke(i)?i:Jr[i]||oo(i)),n.push(l),l},e.prototype.prepare=function(t,r){var i=this.keyframes;this._needsSort&&i.sort(function(g,d){return g.time-d.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,f=_e(n),h=Un(n),u=0;u=0&&!(o[u].percent<=r);u--);u=l(u,s-2)}else{for(u=v;ur);u++);u=l(u-1,s-2)}_=o[u+1],c=o[u]}if(c&&_){this._lastFr=u,this._lastFrP=r;var d=_.percent-c.percent,p=d===0?1:l((r-c.percent)/d,1);_.easingFunc&&(p=_.easingFunc(p));var y=i?this._additiveValue:h?kr:t[f];if((_e(a)||h)&&!y&&(y=this._additiveValue=[]),this.discrete)t[f]=p<1?c.rawValue:_.rawValue;else if(_e(a))a===Ie?pi(y,c[n],_[n],p):rf(y,c[n],_[n],p);else if(Un(a)){var m=c[n],T=_[n],b=a===Vi;t[f]={type:b?"linear":"radial",x:xt(m.x,T.x,p),y:xt(m.y,T.y,p),colorStops:St(m.colorStops,function(M,C){var L=T.colorStops[C];return{offset:xt(M.offset,L.offset,p),color:Ee(pi([],M.color,L.color,p))}}),global:T.global},b?(t[f].x2=xt(m.x2,T.x2,p),t[f].y2=xt(m.y2,T.y2,p)):t[f].r=xt(m.r,T.r,p)}else if(h)pi(y,c[n],_[n],p),i||(t[f]=Ee(y));else{var w=xt(c[n],_[n],p);i?this._additiveValue=w:t[f]=w}i&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,i=this.propName,n=this._additiveValue;r===pe?t[i]=t[i]+n:r===$r?(zt(t[i],kr),de(kr,kr,n,1),t[i]=Ee(kr)):r===Ie?de(t[i],t[i],n,1):r===ho&&$n(t[i],t[i],n,1)},e}(),wn=function(){function e(t,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){gn("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,i){return this.whenWithKeys(t,r,ht(r),i)},e.prototype.whenWithKeys=function(t,r,i,n){for(var a=this._tracks,o=0;o0&&f.addKeyframe(0,Ae(h),n),this._trackKeys.push(s)}f.addKeyframe(t,Ae(r[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,i=0;i0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function Cr(){return new Date().getTime()}var sf=function(e){H(t,e);function t(r){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},t.prototype.update=function(r){for(var i=Cr()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(He(i),!r._paused&&r.update())}He(i)},t.prototype.start=function(){this._running||(this._time=Cr(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Cr(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Cr()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,i){i=i||{},this.start();var n=new wn(r,i.loop);return this.addAnimator(n),n},t}(Ir),ff=300,_i=Y.domSupported,gi=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=St(e,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:e,touch:t,pointer:i}}(),Vn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Qn=!1;function Ki(e){var t=e.pointerType;return t==="pen"||t==="touch"}function hf(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function yi(e){e&&(e.zrByTouch=!0)}function uf(e,t){return pt(e.dom,new vf(e,t),!0)}function uo(e,t){for(var r=t,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return i}var vf=function(){function e(t,r){this.stopPropagation=Sr,this.stopImmediatePropagation=Sr,this.preventDefault=Sr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),_t={mousedown:function(e){e=pt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=pt(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=pt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=pt(this.dom,e);var t=e.toElement||e.relatedTarget;uo(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Qn=!0,e=pt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Qn||(e=pt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=pt(this.dom,e),yi(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),_t.mousemove.call(this,e),_t.mousedown.call(this,e)},touchmove:function(e){e=pt(this.dom,e),yi(e),this.handler.processGesture(e,"change"),_t.mousemove.call(this,e)},touchend:function(e){e=pt(this.dom,e),yi(e),this.handler.processGesture(e,"end"),_t.mouseup.call(this,e),+new Date-+this.__lastTouchMomentjn||e<-jn}var Ut=[],cr=[],wi=Kr(),Ti=Math.abs,Tn=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Zt(this.rotation)||Zt(this.x)||Zt(this.y)||Zt(this.scaleX-1)||Zt(this.scaleY-1)||Zt(this.skewX)||Zt(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||t)){i&&(Jn(i),this.invTransform=null);return}i=i||Kr(),r?this.getLocalTransform(i):Jn(i),t&&(r?fi(i,t,i):As(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ut);var i=Ut[0]<0?-1:1,n=Ut[1]<0?-1:1,a=((Ut[0]-i)*r+i)/Ut[0]||0,o=((Ut[1]-n)*r+n)/Ut[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Kr(),Fs(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Kr(),fi(cr,t.invTransform,r),r=cr);var i=this.originX,n=this.originY;(i||n)&&(wi[4]=i,wi[5]=n,fi(cr,r,wi),cr[4]-=i,cr[5]-=n,r=cr),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var i=[t,r],n=this.invTransform;return n&&Qr(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,r){var i=[t,r],n=this.transform;return n&&Qr(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&Ti(t[0]-1)>1e-10&&Ti(t[3]-1)>1e-10?Math.sqrt(Ti(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){_f(this,t)},e.getLocalTransform=function(t,r){r=r||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,f=t.anchorY,h=t.rotation||0,u=t.x,v=t.y,l=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||f){var _=i+s,g=n+f;r[4]=-_*a-l*g*o,r[5]=-g*o-c*_*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=c*a,r[2]=l*o,h&&Es(r,r,h),r[4]+=i+u,r[5]+=n+v,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),ie=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function _f(e,t){for(var r=0;r"u"&&typeof self<"u"?Y.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Y.node=!0,Y.svgSupported=!0):Yo(navigator.userAgent,Y);function Yo(e,t){var r=t.browser,i=e.match(/Firefox\/([\d.]+)/),n=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var dn=12,Go="sans-serif",hr=dn+"px "+Go,Xo=20,qo=100,$o="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Zo(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var f=0;f>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[f]+":0",n[h]+":0",i[1-f]+":auto",n[1-h]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function ms(e,t,r){for(var i=r?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],f=!0,h=0;h<4;h++){var u=e[h].getBoundingClientRect(),v=2*h,l=u.left,c=u.top;o.push(l,c),f=f&&a&&l===a[v]&&c===a[v+1],s.push(e[h].offsetLeft,e[h].offsetTop)}return f&&n?n:(t.srcCoords=o,t[i]=r?Dn(s,o):Dn(o,s))}function Qa(e){return e.nodeName.toUpperCase()==="CANVAS"}var ws=/([&<>"'])/g,Ts={"&":"&","<":"<",">":">",'"':""","'":"'"};function Gu(e){return e==null?"":(e+"").replace(ws,function(t,r){return Ts[r]})}var bs=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,oi=[],Cs=Y.browser.firefox&&+Y.browser.version.split(".")[0]<39;function qi(e,t,r,i){return r=r||{},i?An(e,t,r):Cs&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):An(e,t,r),r}function An(e,t,r){if(Y.domSupported&&e.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Qa(e)){var a=e.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(Xi(oi,e,i,n)){r.zrX=oi[0],r.zrY=oi[1];return}}r.zrX=r.zrY=0}function yn(e){return e||window.event}function pt(e,t,r){if(t=yn(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&qi(e,o,t,r)}else{qi(e,t,t,r);var a=Ms(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&bs.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Ms(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,i=e.deltaY;if(r==null||i==null)return t;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function Ls(e,t,r,i){e.addEventListener(t,r,i)}function Ps(e,t,r,i){e.removeEventListener(t,r,i)}var Ss=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Rs=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,i){return this._doTrack(t,r,i),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:r,event:t},o=0,s=n.length;o1&&i&&i.length>1){var a=En(i)/En(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Ds(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Kr(){return[1,0,0,1,0,0]}function xs(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function As(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function fi(e,t,r){var i=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],f=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=i,e[1]=n,e[2]=a,e[3]=o,e[4]=s,e[5]=f,e}function In(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Es(e,t,r,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],f=t[3],h=t[5],u=Math.sin(r),v=Math.cos(r);return e[0]=n*v+s*u,e[1]=-n*u+s*v,e[2]=a*v+f*u,e[3]=-a*u+v*f,e[4]=v*(o-i[0])+u*(h-i[1])+i[0],e[5]=v*(h-i[1])-u*(o-i[0])+i[1],e}function Is(e,t,r){var i=r[0],n=r[1];return e[0]=t[0]*i,e[1]=t[1]*n,e[2]=t[2]*i,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*n,e}function Fs(e,t){var r=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],f=r*o-a*i;return f?(f=1/f,e[0]=o*f,e[1]=-a*f,e[2]=-i*f,e[3]=r*f,e[4]=(i*s-o*n)*f,e[5]=(a*n-r*s)*f,e):null}var F=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,i=this.y-t.y;return Math.sqrt(r*r+i*i)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,i=this.y-t.y;return r*r+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,i=this.y;return this.x=t[0]*r+t[2]*i+t[4],this.y=t[1]*r+t[3]*i+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,i){t.x=r,t.y=i},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,i){t.x=r.x+i.x,t.y=r.y+i.y},e.sub=function(t,r,i){t.x=r.x-i.x,t.y=r.y-i.y},e.scale=function(t,r,i){t.x=r.x*i,t.y=r.y*i},e.scaleAndAdd=function(t,r,i,n){t.x=r.x+i.x*n,t.y=r.y+i.y*n},e.lerp=function(t,r,i,n){var a=1-n;t.x=a*r.x+n*i.x,t.y=a*r.y+n*i.y},e}(),fe=Math.min,he=Math.max,Gt=new F,Xt=new F,qt=new F,$t=new F,Or=new F,Br=new F,W=function(){function e(t,r,i,n){i<0&&(t=t+i,i=-i),n<0&&(r=r+n,n=-n),this.x=t,this.y=r,this.width=i,this.height=n}return e.prototype.union=function(t){var r=fe(t.x,this.x),i=fe(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=he(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=he(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=r,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,i=t.width/r.width,n=t.height/r.height,a=Kr();return In(a,a,[-r.x,-r.y]),Is(a,a,[i,n]),In(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,f=t.x,h=t.x+t.width,u=t.y,v=t.y+t.height,l=!(a_&&(_=m,g_&&(_=T,p=i.x&&t<=i.x+i.width&&r>=i.y&&r<=i.y+i.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,i){if(!i){t!==r&&e.copy(t,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=r.x*n+o,t.y=r.y*a+s,t.width=r.width*n,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Gt.x=qt.x=r.x,Gt.y=$t.y=r.y,Xt.x=$t.x=r.x+r.width,Xt.y=qt.y=r.y+r.height,Gt.transform(i),$t.transform(i),Xt.transform(i),qt.transform(i),t.x=fe(Gt.x,Xt.x,qt.x,$t.x),t.y=fe(Gt.y,Xt.y,qt.y,$t.y);var f=he(Gt.x,Xt.x,qt.x,$t.x),h=he(Gt.y,Xt.y,qt.y,$t.y);t.width=f-t.x,t.height=h-t.y},e}(),Ka="silent";function Os(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Bs}}function Bs(){Ss(this.event)}var Hs=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ir),Hr=function(){function e(t,r){this.x=t,this.y=r}return e}(),zs=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],hi=new W(0,0,0,0),Ja=function(e){H(t,e);function t(r,i,n,a,o){var s=e.call(this)||this;return s._hovered=new Hr(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new Hs,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new _s(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(ft(zs,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=ja(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var f=this._hovered=a?new Hr(i,n):this.findHover(i,n),h=f.target,u=this.proxy;u.setCursor&&u.setCursor(h?h.cursor:"default"),s&&h!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(f,"mousemove",r),h&&h!==s&&this.dispatchToElement(f,"mouseover",r)},t.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Hr(0,0)},t.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},t.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=Os(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(f){typeof f[o]=="function"&&f[o].call(f,s),f.trigger&&f.trigger(i,s)}))}},t.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new Hr(r,i);if(Fn(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],f=this._pointerSize,h=f/2,u=new W(r-h,i-h,f,f),v=a.length-1;v>=0;v--){var l=a[v];l!==n&&!l.ignore&&!l.ignoreCoarsePointer&&(!l.parent||!l.parent.ignoreCoarsePointer)&&(hi.copy(l.getBoundingRect()),l.transform&&hi.applyTransform(l.transform),hi.intersect(u)&&s.push(l))}if(s.length)for(var c=4,_=Math.PI/12,g=Math.PI*2,d=0;d4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function ks(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var i=e,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s||i.parent}return n?Ka:!0}return!1}function Fn(e,t,r,i,n){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==n&&!o.ignore&&(s=ks(o,r,i))&&(!t.topTarget&&(t.topTarget=o),s!==Ka)){t.target=o;break}}}function ja(e,t,r){var i=e.painter;return t<0||t>i.getWidth()||r<0||r>i.getHeight()}var to=32,zr=7;function Ns(e){for(var t=0;e>=to;)t|=e&1,e>>=1;return e+t}function On(e,t,r,i){var n=t+1;if(n===r)return 1;if(i(e[n++],e[t])<0){for(;n=0;)n++;return n-t}function Ws(e,t,r){for(r--;t>>1,n(a,e[f])<0?s=f:o=f+1;var h=i-o;switch(h){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;h>0;)e[o+h]=e[o+h-1],h--}e[o]=a}}function ui(e,t,r,i,n,a){var o=0,s=0,f=1;if(a(e,t[r+n])>0){for(s=i-n;f0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}else{for(s=n+1;fs&&(f=s);var h=o;o=n-f,f=n-h}for(o++;o>>1);a(e,t[r+u])>0?o=u+1:f=u}return f}function vi(e,t,r,i,n,a){var o=0,s=0,f=1;if(a(e,t[r+n])<0){for(s=n+1;fs&&(f=s);var h=o;o=n-f,f=n-h}else{for(s=i-n;f=0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}for(o++;o>>1);a(e,t[r+u])<0?f=u:o=u+1}return f}function Ys(e,t){var r=zr,i,n,a=0,o=[];i=[],n=[];function s(c,_){i[a]=c,n[a]=_,a+=1}function f(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]n[c+1])break;u(c)}}function h(){for(;a>1;){var c=a-2;c>0&&n[c-1]=zr||M>=zr);if(C)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),_===1){for(p=0;p=0;p--)e[w+p]=e[b+p];e[T]=o[m];return}for(var M=r;;){var C=0,L=0,P=!1;do if(t(o[m],e[y])<0){if(e[T--]=e[y--],C++,L=0,--_===0){P=!0;break}}else if(e[T--]=o[m--],L++,C=0,--d===1){P=!0;break}while((C|L)=0;p--)e[w+p]=e[b+p];if(_===0){P=!0;break}}if(e[T--]=o[m--],--d===1){P=!0;break}if(L=d-ui(e[y],o,0,d,d-1,t),L!==0){for(T-=L,m-=L,d-=L,w=T+1,b=m+1,p=0;p=zr||L>=zr);if(P)break;M<0&&(M=0),M+=2}if(r=M,r<1&&(r=1),d===1){for(T-=_,y-=_,w=T+1,b=y+1,p=_-1;p>=0;p--)e[w+p]=e[b+p];e[T]=o[m]}else{if(d===0)throw new Error;for(b=T-(d-1),p=0;ps&&(f=s),Bn(e,r,r+f,r+a,t),a=f}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var ot=1,qr=2,mr=4,Hn=!1;function li(){Hn||(Hn=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function zn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Xs=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=zn}return e.prototype.traverse=function(t,r){for(var i=0;i0&&(u.__clipPaths=[]),isNaN(u.z)&&(li(),u.z=0),isNaN(u.z2)&&(li(),u.z2=0),isNaN(u.zlevel)&&(li(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var v=t.getDecalElement&&t.getDecalElement();v&&this._updateAndAddDisplayable(v,r,i);var l=t.getTextGuideLine();l&&this._updateAndAddDisplayable(l,r,i);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,r,i)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,i=t.length;r=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),He;He=Y.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Jr={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Jr.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Jr.bounceIn(e*2)*.5:Jr.bounceOut(e*2-1)*.5+.5}},ue=Math.pow,Bt=Math.sqrt,ze=1e-8,ro=1e-4,kn=Bt(3),ve=1/3,Lt=Er(),ct=Er(),Dr=Er();function Ot(e){return e>-ze&&eze||e<-ze}function U(e,t,r,i,n){var a=1-n;return a*a*(a*e+3*n*t)+n*n*(n*i+3*a*r)}function Nn(e,t,r,i,n){var a=1-n;return 3*(((t-e)*a+2*(r-t)*n)*a+(i-r)*n*n)}function io(e,t,r,i,n,a){var o=i+3*(t-r)-e,s=3*(r-t*2+e),f=3*(t-e),h=e-n,u=s*s-3*o*f,v=s*f-9*o*h,l=f*f-3*s*h,c=0;if(Ot(u)&&Ot(v))if(Ot(s))a[0]=0;else{var _=-f/s;_>=0&&_<=1&&(a[c++]=_)}else{var g=v*v-4*u*l;if(Ot(g)){var d=v/u,_=-s/o+d,p=-d/2;_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p)}else if(g>0){var y=Bt(g),m=u*s+1.5*o*(-v+y),T=u*s+1.5*o*(-v-y);m<0?m=-ue(-m,ve):m=ue(m,ve),T<0?T=-ue(-T,ve):T=ue(T,ve);var _=(-s-(m+T))/(3*o);_>=0&&_<=1&&(a[c++]=_)}else{var b=(2*u*s-3*o*v)/(2*Bt(u*u*u)),w=Math.acos(b)/3,M=Bt(u),C=Math.cos(w),_=(-s-2*M*C)/(3*o),p=(-s+M*(C+kn*Math.sin(w)))/(3*o),L=(-s+M*(C-kn*Math.sin(w)))/(3*o);_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p),L>=0&&L<=1&&(a[c++]=L)}}return c}function no(e,t,r,i,n){var a=6*r-12*t+6*e,o=9*t+3*i-3*e-9*r,s=3*t-3*e,f=0;if(Ot(o)){if(eo(a)){var h=-s/a;h>=0&&h<=1&&(n[f++]=h)}}else{var u=a*a-4*o*s;if(Ot(u))n[0]=-a/(2*o);else if(u>0){var v=Bt(u),h=(-a+v)/(2*o),l=(-a-v)/(2*o);h>=0&&h<=1&&(n[f++]=h),l>=0&&l<=1&&(n[f++]=l)}}return f}function kt(e,t,r,i,n,a){var o=(t-e)*n+e,s=(r-t)*n+t,f=(i-r)*n+r,h=(s-o)*n+o,u=(f-s)*n+s,v=(u-h)*n+h;a[0]=e,a[1]=o,a[2]=h,a[3]=v,a[4]=v,a[5]=u,a[6]=f,a[7]=i}function qs(e,t,r,i,n,a,o,s,f,h,u){var v,l=.005,c=1/0,_,g,d,p;Lt[0]=f,Lt[1]=h;for(var y=0;y<1;y+=.05)ct[0]=U(e,r,n,o,y),ct[1]=U(t,i,a,s,y),d=Rr(Lt,ct),d=0&&d=0&&h<=1&&(n[f++]=h)}}else{var u=o*o-4*a*s;if(Ot(u)){var h=-o/(2*a);h>=0&&h<=1&&(n[f++]=h)}else if(u>0){var v=Bt(u),h=(-o+v)/(2*a),l=(-o-v)/(2*a);h>=0&&h<=1&&(n[f++]=h),l>=0&&l<=1&&(n[f++]=l)}}return f}function ao(e,t,r){var i=e+r-2*t;return i===0?.5:(e-t)/i}function ke(e,t,r,i,n){var a=(t-e)*i+e,o=(r-t)*i+t,s=(o-a)*i+a;n[0]=e,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function Us(e,t,r,i,n,a,o,s,f){var h,u=.005,v=1/0;Lt[0]=o,Lt[1]=s;for(var l=0;l<1;l+=.05){ct[0]=Q(e,r,n,l),ct[1]=Q(t,i,a,l);var c=Rr(Lt,ct);c=0&&c=1?1:io(0,i,a,1,f,s)&&U(0,n,o,1,s[0])}}}var Ks=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Sr,this.ondestroy=t.ondestroy||Sr,this.onrestart=t.onrestart||Sr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var f=n%i;this._startTime=t-f,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Ke(t)?t:Jr[t]||oo(t)},e}(),so=function(){function e(t){this.value=t}return e}(),Js=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new so(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,i=t.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),ti=function(){function e(t){this._list=new Js,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var f=i.head;i.remove(f),delete n[f.key],a=f.value,this._lastRemovedEntry=f}s?s.value=r:s=new so(r),s.key=t,i.insertEntry(s),n[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Yn={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Ht(e){return e=Math.round(e),e<0?0:e>255?255:e}function $i(e){return e<0?0:e>1?1:e}function ci(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ht(parseFloat(t)/100*255):Ht(parseInt(t,10))}function jr(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?$i(parseFloat(t)/100):$i(parseFloat(t))}function di(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function le(e,t,r){return e+(t-e)*r}function vt(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function Zi(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var fo=new ti(20),ce=null;function lr(e,t){ce&&Zi(ce,t),ce=fo.put(e,ce||t.slice())}function zt(e,t){if(e){t=t||[];var r=fo.get(e);if(r)return Zi(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in Yn)return Zi(t,Yn[i]),lr(e,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){vt(t,0,0,0,1);return}return vt(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),lr(e,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){vt(t,0,0,0,1);return}return vt(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),lr(e,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var f=i.substr(0,o),h=i.substr(o+1,s-(o+1)).split(","),u=1;switch(f){case"rgba":if(h.length!==4)return h.length===3?vt(t,+h[0],+h[1],+h[2],1):vt(t,0,0,0,1);u=jr(h.pop());case"rgb":if(h.length>=3)return vt(t,ci(h[0]),ci(h[1]),ci(h[2]),h.length===3?u:jr(h[3])),lr(e,t),t;vt(t,0,0,0,1);return;case"hsla":if(h.length!==4){vt(t,0,0,0,1);return}return h[3]=jr(h[3]),Gn(h,t),lr(e,t),t;case"hsl":if(h.length!==3){vt(t,0,0,0,1);return}return Gn(h,t),lr(e,t),t;default:return}}vt(t,0,0,0,1)}}function Gn(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=jr(e[1]),n=jr(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],vt(t,Ht(di(o,a,r+1/3)*255),Ht(di(o,a,r)*255),Ht(di(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Xn(e,t){var r=zt(e);if(r){for(var i=0;i<3;i++)r[i]=r[i]*(1-t)|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return mn(r,r.length===4?"rgba":"rgb")}}function Xu(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=zt(t[n]),s=zt(t[a]),f=i-n,h=mn([Ht(le(o[0],s[0],f)),Ht(le(o[1],s[1],f)),Ht(le(o[2],s[2],f)),$i(le(o[3],s[3],f))],"rgba");return r?{color:h,leftIndex:n,rightIndex:a,value:i}:h}}function mn(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Ne(e,t){var r=zt(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var qn=new ti(100);function qu(e){if(Be(e)){var t=qn.get(e);return t||(t=Xn(e,-.1),qn.put(e,t)),t}else if(Je(e)){var r=k({},e);return r.colorStops=St(e.colorStops,function(i){return{offset:i.offset,color:Xn(i.color,-.1)}}),r}return e}function js(e){return e.type==="linear"}function tf(e){return e.type==="radial"}(function(){return Y.hasGlobalWindow&&Ke(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var Ui=Array.prototype.slice;function xt(e,t,r){return(t-e)*r+e}function pi(e,t,r,i){for(var n=t.length,a=0;ai?t:e,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)i.length=o;else for(var f=a;f=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Zn,f=r;if(Pt(r)){var h=af(r);s=h,(h===1&&!De(r[0])||h===2&&!De(r[0][0]))&&(o=!0)}else if(De(r)&&!es(r))s=pe;else if(Be(r))if(!isNaN(+r))s=pe;else{var u=zt(r);u&&(f=u,s=$r)}else if(Je(r)){var v=k({},f);v.colorStops=St(r.colorStops,function(c){return{offset:c.offset,color:zt(c.color)}}),js(r)?s=Vi:tf(r)&&(s=Qi),f=v}a===0?this.valType=s:(s!==this.valType||s===Zn)&&(o=!0),this.discrete=this.discrete||o;var l={time:t,value:f,rawValue:r,percent:0};return i&&(l.easing=i,l.easingFunc=Ke(i)?i:Jr[i]||oo(i)),n.push(l),l},e.prototype.prepare=function(t,r){var i=this.keyframes;this._needsSort&&i.sort(function(g,d){return g.time-d.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,f=_e(n),h=Un(n),u=0;u=0&&!(o[u].percent<=r);u--);u=l(u,s-2)}else{for(u=v;ur);u++);u=l(u-1,s-2)}_=o[u+1],c=o[u]}if(c&&_){this._lastFr=u,this._lastFrP=r;var d=_.percent-c.percent,p=d===0?1:l((r-c.percent)/d,1);_.easingFunc&&(p=_.easingFunc(p));var y=i?this._additiveValue:h?kr:t[f];if((_e(a)||h)&&!y&&(y=this._additiveValue=[]),this.discrete)t[f]=p<1?c.rawValue:_.rawValue;else if(_e(a))a===Ie?pi(y,c[n],_[n],p):rf(y,c[n],_[n],p);else if(Un(a)){var m=c[n],T=_[n],b=a===Vi;t[f]={type:b?"linear":"radial",x:xt(m.x,T.x,p),y:xt(m.y,T.y,p),colorStops:St(m.colorStops,function(M,C){var L=T.colorStops[C];return{offset:xt(M.offset,L.offset,p),color:Ee(pi([],M.color,L.color,p))}}),global:T.global},b?(t[f].x2=xt(m.x2,T.x2,p),t[f].y2=xt(m.y2,T.y2,p)):t[f].r=xt(m.r,T.r,p)}else if(h)pi(y,c[n],_[n],p),i||(t[f]=Ee(y));else{var w=xt(c[n],_[n],p);i?this._additiveValue=w:t[f]=w}i&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,i=this.propName,n=this._additiveValue;r===pe?t[i]=t[i]+n:r===$r?(zt(t[i],kr),de(kr,kr,n,1),t[i]=Ee(kr)):r===Ie?de(t[i],t[i],n,1):r===ho&&$n(t[i],t[i],n,1)},e}(),wn=function(){function e(t,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){gn("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,i){return this.whenWithKeys(t,r,ht(r),i)},e.prototype.whenWithKeys=function(t,r,i,n){for(var a=this._tracks,o=0;o0&&f.addKeyframe(0,Ae(h),n),this._trackKeys.push(s)}f.addKeyframe(t,Ae(r[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,i=0;i0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function Cr(){return new Date().getTime()}var sf=function(e){H(t,e);function t(r){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},t.prototype.update=function(r){for(var i=Cr()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(He(i),!r._paused&&r.update())}He(i)},t.prototype.start=function(){this._running||(this._time=Cr(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Cr(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Cr()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,i){i=i||{},this.start();var n=new wn(r,i.loop);return this.addAnimator(n),n},t}(Ir),ff=300,_i=Y.domSupported,gi=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=St(e,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:e,touch:t,pointer:i}}(),Vn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Qn=!1;function Ki(e){var t=e.pointerType;return t==="pen"||t==="touch"}function hf(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function yi(e){e&&(e.zrByTouch=!0)}function uf(e,t){return pt(e.dom,new vf(e,t),!0)}function uo(e,t){for(var r=t,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return i}var vf=function(){function e(t,r){this.stopPropagation=Sr,this.stopImmediatePropagation=Sr,this.preventDefault=Sr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),_t={mousedown:function(e){e=pt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=pt(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=pt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=pt(this.dom,e);var t=e.toElement||e.relatedTarget;uo(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Qn=!0,e=pt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Qn||(e=pt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=pt(this.dom,e),yi(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),_t.mousemove.call(this,e),_t.mousedown.call(this,e)},touchmove:function(e){e=pt(this.dom,e),yi(e),this.handler.processGesture(e,"change"),_t.mousemove.call(this,e)},touchend:function(e){e=pt(this.dom,e),yi(e),this.handler.processGesture(e,"end"),_t.mouseup.call(this,e),+new Date-+this.__lastTouchMomentjn||e<-jn}var Ut=[],cr=[],wi=Kr(),Ti=Math.abs,Tn=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Zt(this.rotation)||Zt(this.x)||Zt(this.y)||Zt(this.scaleX-1)||Zt(this.scaleY-1)||Zt(this.skewX)||Zt(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||t)){i&&(Jn(i),this.invTransform=null);return}i=i||Kr(),r?this.getLocalTransform(i):Jn(i),t&&(r?fi(i,t,i):As(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ut);var i=Ut[0]<0?-1:1,n=Ut[1]<0?-1:1,a=((Ut[0]-i)*r+i)/Ut[0]||0,o=((Ut[1]-n)*r+n)/Ut[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Kr(),Fs(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Kr(),fi(cr,t.invTransform,r),r=cr);var i=this.originX,n=this.originY;(i||n)&&(wi[4]=i,wi[5]=n,fi(cr,r,wi),cr[4]-=i,cr[5]-=n,r=cr),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var i=[t,r],n=this.invTransform;return n&&Qr(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,r){var i=[t,r],n=this.transform;return n&&Qr(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&Ti(t[0]-1)>1e-10&&Ti(t[3]-1)>1e-10?Math.sqrt(Ti(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){_f(this,t)},e.getLocalTransform=function(t,r){r=r||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,f=t.anchorY,h=t.rotation||0,u=t.x,v=t.y,l=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||f){var _=i+s,g=n+f;r[4]=-_*a-l*g*o,r[5]=-g*o-c*_*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=c*a,r[2]=l*o,h&&Es(r,r,h),r[4]+=i+u,r[5]+=n+v,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),ie=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function _f(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function yf(e,t,r){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,f=r.x,h=r.y,u="left",v="top";if(i instanceof Array)f+=ne(i[0],r.width),h+=ne(i[1],r.height),u=null,v=null;else switch(i){case"left":f-=n,h+=s,u="right",v="middle";break;case"right":f+=n+o,h+=s,v="middle";break;case"top":f+=o/2,h-=n,u="center",v="bottom";break;case"bottom":f+=o/2,h+=a+n,u="center";break;case"inside":f+=o/2,h+=s,u="center",v="middle";break;case"insideLeft":f+=n,h+=s,v="middle";break;case"insideRight":f+=o-n,h+=s,u="right",v="middle";break;case"insideTop":f+=o/2,h+=n,u="center";break;case"insideBottom":f+=o/2,h+=a-n,u="center",v="bottom";break;case"insideTopLeft":f+=n,h+=n;break;case"insideTopRight":f+=o-n,h+=n,u="right";break;case"insideBottomLeft":f+=n,h+=a-n,v="bottom";break;case"insideBottomRight":f+=o-n,h+=a-n,u="right",v="bottom";break}return e=e||{},e.x=f,e.y=h,e.align=u,e.verticalAlign=v,e}var bi="__zr_normal__",Ci=ie.concat(["ignore"]),mf=Qe(ie,function(e,t){return e[t]=!0,e},{ignore:!1}),dr={},wf=new W(0,0,0,0),ri=function(){function e(t){this.id=Xa(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,f=!1;a.parent=n?this:null;var h=!1;if(a.copyTransform(r),i.position!=null){var u=wf;i.layoutRect?u.copy(i.layoutRect):u.copy(this.getBoundingRect()),n||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(dr,i,u):yf(dr,i,u),a.x=dr.x,a.y=dr.y,o=dr.align,s=dr.verticalAlign;var v=i.origin;if(v&&i.rotation!=null){var l=void 0,c=void 0;v==="center"?(l=u.width*.5,c=u.height*.5):(l=ne(v[0],u.width),c=ne(v[1],u.height)),h=!0,a.originX=-a.x+l+(n?0:u.x),a.originY=-a.y+c+(n?0:u.y)}}i.rotation!=null&&(a.rotation=i.rotation);var _=i.offset;_&&(a.x+=_[0],a.y+=_[1],h||(a.originX=-_[0],a.originY=-_[1]));var g=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,d=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),p=void 0,y=void 0,m=void 0;g&&this.canBeInsideText()?(p=i.insideFill,y=i.insideStroke,(p==null||p==="auto")&&(p=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(p),m=!0)):(p=i.outsideFill,y=i.outsideStroke,(p==null||p==="auto")&&(p=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(p),m=!0)),p=p||"#000",(p!==d.fill||y!==d.stroke||m!==d.autoStroke||o!==d.align||s!==d.verticalAlign)&&(f=!0,d.fill=p,d.stroke=y,d.autoStroke=m,d.align=o,d.verticalAlign=s,r.setDefaultTextStyle(d)),r.__dirty|=ot,f&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?rn:tn},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&zt(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,mn(i,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},k(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Ft(t))for(var i=t,n=ht(i),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(bi,!1,t)},e.prototype.useState=function(t,r,i,n){var a=t===bi,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,f=this.stateTransition;if(!(Mt(s,t)>=0&&(r||s.length===1))){var h;if(this.stateProxy&&!a&&(h=this.stateProxy(t)),h||(h=this.states&&this.states[t]),!h&&!a){gn("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(h);var u=!!(h&&h.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,h,this._normalState,r,!i&&!this.__inHover&&f&&f.duration>0,f);var v=this._textContent,l=this._textGuide;return v&&v.useState(t,r,i,u),l&&l.useState(t,r,i,u),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ot),h}}},e.prototype.useStates=function(t,r,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var f=0;f0,_);var g=this._textContent,d=this._textGuide;g&&g.useStates(t,r,l),d&&d.useStates(t,r,l),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ot)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},e.prototype.replaceState=function(t,r,i){var n=this.currentStates.slice(),a=Mt(n,t),o=Mt(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},i,n=0;n=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var i=this.animators,n=i.length,a=[],o=0;o0&&r.during&&a[0].during(function(_,g){r.during(g)});for(var l=0;l0||n.force&&!o.length){var C=void 0,L=void 0,P=void 0;if(s){L={},l&&(C={});for(var T=0;T=0&&(n.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,i){var n=Mt(this._children,r);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(r){var i=this.__zr,n=this._children,a=Mt(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n { __defProp(target, name, { get: all[name], enumerable: true }); }; -// mock-data-1732337022617.js +// mock-data-1732337071180.js import { transformMockData } from "vite-plugin-mock-dev-server"; // mock/demo/person.mock.ts @@ -85,7 +85,7 @@ var getPersonList = defineMock({ } }); -// mock-data-1732337022617.js +// mock-data-1732337071180.js var exporters = [person_mock_exports]; var mockList = exporters.map((raw) => { let mockConfig; @@ -99,7 +99,7 @@ var mockList = exporters.map((raw) => { } return mockConfig; }); -var mock_data_1732337022617_default = transformMockData(mockList); +var mock_data_1732337071180_default = transformMockData(mockList); export { - mock_data_1732337022617_default as default + mock_data_1732337071180_default as default }; diff --git a/mockServer/mock-data.js.gz b/mockServer/mock-data.js.gz index 5112b427..2ec2293d 100644 Binary files a/mockServer/mock-data.js.gz and b/mockServer/mock-data.js.gz differ