diff --git a/css/@logicflow_core@2.0-DY-ASpx_.css b/css/@logicflow_core@2.0-DY-ASpx_.css new file mode 100644 index 00000000..3d3e6f5e --- /dev/null +++ b/css/@logicflow_core@2.0-DY-ASpx_.css @@ -0,0 +1 @@ +.lf-graph{position:relative;z-index:0;width:100%;height:100%;background:#fff;-webkit-user-select:none;-moz-user-select:none;user-select:none}.lf-element-text{cursor:text}.lf-text-disabled{pointer-events:none}.lf-text-draggable{cursor:move}.lf-node-anchor{cursor:crosshair}.lf-node-anchor-hover{visibility:hidden}.lf-anchor:hover .lf-node-anchor-hover{visibility:visible}.lf-edge.pointer-none{pointer-events:none}.lf-edge-append{cursor:pointer}.lf-edge-animation{stroke-dashoffset:100%;-webkit-animation:lf_animate_dash 5s linear infinite;animation:lf_animate_dash 5s linear infinite}@-webkit-keyframes lf_animate_dash{to{stroke-dashoffset:0}}@keyframes lf_animate_dash{to{stroke-dashoffset:0}}.lf-node-not-allow{cursor:not-allowed}.lf-polyline-append-ns-resize{cursor:ns-resize}.lf-polyline-append-ew-resize{cursor:ew-resize}.lf-dragging,.lf-dragging .lf-element-text{cursor:move}.lf-draggable{cursor:default}.lf-bezier-adjust-anchor{cursor:pointer}.lf-background,.lf-grid{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1}.lf-background-area{width:100%;height:100%}.lf-html-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}.lf-html-overlay__transform>*{pointer-events:all}.lf-text-editable{pointer-events:all}.lf-text-input{position:absolute;box-sizing:border-box;min-width:100px;min-height:20px;padding:5px;line-height:1.2;white-space:pre;text-align:center;background:#fff;border:1px solid #edefed;border-radius:3px;outline:none;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);resize:none}.lf-get-text-height{display:inline-block;box-sizing:border-box;word-break:break-all;border:1px solid transparent}.lf-node-text-auto-wrap{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box}.lf-node-text-auto-wrap-content{width:100%;line-height:1.2;text-align:center;word-break:break-all;background:transparent}.lf-node-text-ellipsis-content{width:100%;line-height:1.2;white-space:nowrap;text-align:center;background:transparent}.lf-node-text-ellipsis-content>div{overflow:hidden;text-overflow:ellipsis}.lf-tool-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;overflow:hidden;pointer-events:none}.lf-tool-overlay>*{pointer-events:all}.modification-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;overflow:hidden;pointer-events:none}.modification-overlay>*{pointer-events:all}.lf-outline,.lf-snapline{pointer-events:none}.lf-keyboard-tips{float:right}.lf-node-select-decorate{position:absolute;border:1px dashed #343435;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);pointer-events:none}.lf-multiple-select{position:absolute;border:2px dashed #187dffcc;box-shadow:0 0 3px #187dff80;cursor:move}.lf-edge-adjust-point{cursor:move}.lf-rotate-control{cursor:-webkit-grabbing;cursor:grabbing}.lf-resize-control-nw{cursor:nw-resize}.lf-resize-control-n{cursor:n-resize}.lf-resize-control-ne{cursor:ne-resize}.lf-resize-control-e{cursor:e-resize}.lf-resize-control-se{cursor:se-resize}.lf-resize-control-s{cursor:s-resize}.lf-resize-control-sw{cursor:sw-resize}.lf-resize-control-w{cursor:w-resize} diff --git a/css/@logicflow_core@2.0-DY-ASpx_.css.gz b/css/@logicflow_core@2.0-DY-ASpx_.css.gz new file mode 100644 index 00000000..75aef209 Binary files /dev/null and b/css/@logicflow_core@2.0-DY-ASpx_.css.gz differ diff --git a/css/hooks-IZdIB3QR.css b/css/hooks-IZdIB3QR.css new file mode 100644 index 00000000..efe5af62 --- /dev/null +++ b/css/hooks-IZdIB3QR.css @@ -0,0 +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 .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} diff --git a/css/hooks-IZdIB3QR.css.gz b/css/hooks-IZdIB3QR.css.gz new file mode 100644 index 00000000..9371de0a Binary files /dev/null and b/css/hooks-IZdIB3QR.css.gz differ diff --git a/css/hooks-oOjOh227.css b/css/hooks-oOjOh227.css deleted file mode 100644 index 7dc790f4..00000000 --- a/css/hooks-oOjOh227.css +++ /dev/null @@ -1 +0,0 @@ -.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-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%}.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)}body[class=ray-template--dark] .r-layout-full__viewer-content--maximize--dark .layout-content__maximize-out{color:#2c2a28;background:#757473}body[class=ray-template--dark] .r-layout-full__viewer-content--maximize--dark .layout-content__maximize-out:hover{background-color:#d5d3d1;color:#44403c}body[class=ray-template--light] .r-layout-full__viewer-content--maximize--light .layout-content__maximize-out{color:#eae9e8;background:#a19f9d}body[class=ray-template--light] .r-layout-full__viewer-content--maximize--light .layout-content__maximize-out:hover{background-color:#44403c;color:#d5d3d1}.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} diff --git a/css/hooks-oOjOh227.css.gz b/css/hooks-oOjOh227.css.gz deleted file mode 100644 index c2c35ee9..00000000 Binary files a/css/hooks-oOjOh227.css.gz and /dev/null differ diff --git a/css/index-74sXJ5VP.css.gz b/css/index-74sXJ5VP.css.gz index 4473ac09..2e562b48 100644 Binary files a/css/index-74sXJ5VP.css.gz and b/css/index-74sXJ5VP.css.gz differ diff --git a/css/index-B6QYnH28.css.gz b/css/index-B6QYnH28.css.gz deleted file mode 100644 index dc3c5dfd..00000000 Binary files a/css/index-B6QYnH28.css.gz and /dev/null differ diff --git a/css/index-B6yUFiKH.css.gz b/css/index-B6yUFiKH.css.gz new file mode 100644 index 00000000..c942f498 Binary files /dev/null and b/css/index-B6yUFiKH.css.gz differ diff --git a/css/index-B6QYnH28.css b/css/index-CU7sAw4Y.css similarity index 99% rename from css/index-B6QYnH28.css rename to css/index-CU7sAw4Y.css index 6171e20d..72cc4863 100644 --- a/css/index-B6QYnH28.css +++ b/css/index-CU7sAw4Y.css @@ -1 +1 @@ -@charset "UTF-8";.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}[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}body .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)} +@charset "UTF-8";.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}[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-CU7sAw4Y.css.gz b/css/index-CU7sAw4Y.css.gz new file mode 100644 index 00000000..3b6c806b Binary files /dev/null and b/css/index-CU7sAw4Y.css.gz differ diff --git a/css/index-DHYYVpM7.css.gz b/css/index-DHYYVpM7.css.gz new file mode 100644 index 00000000..272ca436 Binary files /dev/null and b/css/index-DHYYVpM7.css.gz differ diff --git a/css/index-D_4DGt8i.css.gz b/css/index-D_4DGt8i.css.gz new file mode 100644 index 00000000..b276041d Binary files /dev/null and b/css/index-D_4DGt8i.css.gz differ diff --git a/css/index-Dig957GB.css.gz b/css/index-Dig957GB.css.gz new file mode 100644 index 00000000..3f451fb1 Binary files /dev/null and b/css/index-Dig957GB.css.gz differ diff --git a/css/index-Eq1L-L2-.css.gz b/css/index-Eq1L-L2-.css.gz new file mode 100644 index 00000000..1a6301d8 Binary files /dev/null and b/css/index-Eq1L-L2-.css.gz differ diff --git a/css/index-QAd2IBUs.css.gz b/css/index-QAd2IBUs.css.gz new file mode 100644 index 00000000..2eb04a46 Binary files /dev/null and b/css/index-QAd2IBUs.css.gz differ diff --git a/css/index-b1h4j9PV.css.gz b/css/index-b1h4j9PV.css.gz new file mode 100644 index 00000000..10efc7e7 Binary files /dev/null and b/css/index-b1h4j9PV.css.gz differ diff --git a/css/vue3-next-qrcode@2.0.10_typescript@5.2-CG4VaxS5.css b/css/vue3-next-qrcode@2.0.10_typescript@5.6-CG4VaxS5.css similarity index 100% rename from css/vue3-next-qrcode@2.0.10_typescript@5.2-CG4VaxS5.css rename to css/vue3-next-qrcode@2.0.10_typescript@5.6-CG4VaxS5.css diff --git a/css/vue3-next-qrcode@2.0.10_typescript@5.2-CG4VaxS5.css.gz b/css/vue3-next-qrcode@2.0.10_typescript@5.6-CG4VaxS5.css.gz similarity index 91% rename from css/vue3-next-qrcode@2.0.10_typescript@5.2-CG4VaxS5.css.gz rename to css/vue3-next-qrcode@2.0.10_typescript@5.6-CG4VaxS5.css.gz index a74b1ce4..650e7032 100644 Binary files a/css/vue3-next-qrcode@2.0.10_typescript@5.2-CG4VaxS5.css.gz and b/css/vue3-next-qrcode@2.0.10_typescript@5.6-CG4VaxS5.css.gz differ diff --git a/index.html b/index.html index a4814bc6..9b33f350 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,29 +39,38 @@ - + - + + + + + + + + + - + - + - + - - + + - - - + + + + `}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-BZYDXyJG.js.gz b/js/@css-render_vue3-ssr@0.15.14_vue@3.5.12-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-BZYDXyJG.js.gz differ diff --git a/js/@emotion_hash@0.8.0-WldOFDRm.js.gz b/js/@emotion_hash@0.8.0-WldOFDRm.js.gz new file mode 100644 index 00000000..78be3bac Binary files /dev/null and b/js/@emotion_hash@0.8.0-WldOFDRm.js.gz differ diff --git a/js/@intlify_core-base@9.13.1-C6DqbPB6.js.gz b/js/@intlify_core-base@9.13.1-C6DqbPB6.js.gz index 8bb03d99..20d92e40 100644 Binary files a/js/@intlify_core-base@9.13.1-C6DqbPB6.js.gz and b/js/@intlify_core-base@9.13.1-C6DqbPB6.js.gz differ diff --git a/js/@intlify_message-compiler@9.13.1-GrLDMuy_.js.gz b/js/@intlify_message-compiler@9.13.1-GrLDMuy_.js.gz index c36ae743..f2929955 100644 Binary files a/js/@intlify_message-compiler@9.13.1-GrLDMuy_.js.gz and b/js/@intlify_message-compiler@9.13.1-GrLDMuy_.js.gz differ diff --git a/js/@intlify_shared@9.13.1-BxU0OzX2.js.gz b/js/@intlify_shared@9.13.1-BxU0OzX2.js.gz index a3d38378..6a62de2b 100644 Binary files a/js/@intlify_shared@9.13.1-BxU0OzX2.js.gz and b/js/@intlify_shared@9.13.1-BxU0OzX2.js.gz differ diff --git a/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js.gz b/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js.gz index cc3e6f86..97527e61 100644 Binary files a/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js.gz and b/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js.gz differ diff --git a/js/@logicflow_core@2.0.6-CHqfytjt.js b/js/@logicflow_core@2.0.6-CHqfytjt.js new file mode 100644 index 00000000..66862ff7 --- /dev/null +++ b/js/@logicflow_core@2.0.6-CHqfytjt.js @@ -0,0 +1,10 @@ +import{o as co}from"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import{u as x,b as V,_ as Fn,m as Fr,q as po}from"./preact@10.22.0-D1_UwAj3.js";import{a as z,c as C,m as $n,g as Un,n as lr,p as Zt,f as W,t as Nt,b as Ot,d as Bt,i as Qt,e as Jt,s as ho,h as vo,j as Zr,k as yo,l as go,r as _o,o as Vr,q as mo,u as xo,v as Wn,w as Eo,x as Mo}from"./lodash-es@4.17.21-B-5kLwAl.js";import{c as Oo,t as gt,i as Zn,s as So,o as E,a as $,b as m,r as wo}from"./mobx@5.15.7-CEMJDQot.js";import{v as Ao}from"./uuid@9.0.1-CQkTLCs1.js";import{c as Po}from"./classnames@2.5.1-nUTIn1-D.js";import{M as To}from"./mousetrap@1.6.5-BTGDluHR.js";import{d as No}from"./mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js";var Do=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);ov.step||Math.abs(v.sumDeltaY)>v.step)){var O=v.sumDeltaX%v.step,w=v.sumDeltaY%v.step,A=v.sumDeltaX-O,L=v.sumDeltaY-w;v.sumDeltaX=O,v.sumDeltaY=w;var I=(M=v.model)===null||M===void 0?void 0:M.getData();v.isDragging||((S=v.eventCenter)===null||S===void 0||S.emit(T["".concat(v.eventType,"_DRAGSTART")],{e:_,data:v.data||I}),v.onDragStart({event:_})),v.isDragging=!0,Promise.resolve().then(function(){var b,G;v.onDragging({deltaX:A,deltaY:L,event:_}),(b=v.eventCenter)===null||b===void 0||b.emit(T["".concat(v.eventType,"_MOUSEMOVE")],{deltaX:A,deltaY:L,e:_,data:v.data||I}),(G=v.eventCenter)===null||G===void 0||G.emit(T["".concat(v.eventType,"_DRAG")],{e:_,data:v.data||I})})}},this.handleMouseUp=function(_){var M=window.document;v.isStartDragging=!1,v.isStopPropagation&&_.stopPropagation(),Promise.resolve().then(function(){var S,O,w;M.removeEventListener("mousemove",v.handleMouseMove,!1),M.removeEventListener("mouseup",v.handleMouseUp,!1);var A=(S=v.model)===null||S===void 0?void 0:S.getData();(O=v.eventCenter)===null||O===void 0||O.emit(T["".concat(v.eventType,"_MOUSEUP")],{e:_,data:v.data||A}),v.isDragging&&(v.isDragging=!1,v.onDragEnd({event:_}),(w=v.eventCenter)===null||w===void 0||w.emit(T["".concat(v.eventType,"_DROP")],{e:_,data:v.data||A}))})},this.cancelDrag=function(){var _=window==null?void 0:window.document;_.removeEventListener("mousemove",v.handleMouseMove,!1),_.removeEventListener("mouseup",v.handleMouseUp,!1),v.onDragEnd({event:void 0}),v.isDragging=!1},this.onDragStart=r,this.onDragging=i,this.onDragEnd=s,this.step=c,this.isStopPropagation=y,this.eventType=d,this.eventCenter=u,this.model=p,this.data=g}return n.prototype.setStep=function(e){this.step=e},n.prototype.setModel=function(e){this.model=e},n}(),Bo=function(n){var e=n.x,t=n.y,r=n.width,o=n.height;return{x:e-r/2,y:t-o/2,x1:e+r/2,y1:t+o/2}},Xo=function(n){var e=n.startPoint,t=n.endPoint,r=(e.x+t.x)/2,o=(e.y+t.y)/2,i=Math.abs(e.x-t.x)+10,a=Math.abs(e.y-t.y)+10;return{x:r-i/2,y:o-a/2,x1:r+i/2,y1:o+a/2}},Yo=function(n){var e=n.points,t=Xt(e),r=Ee(t,8),o=r.x,i=r.y,a=r.width,s=r.height;return{x:o-a/2,y:i-s/2,x1:o+a/2,y1:i+s/2}},Ho=function(n){var e=n.path,t=$r(e),r=Ee(t,8),o=r.x,i=r.y,a=r.width,s=r.height;return{x:o-a/2,y:i-s/2,x1:o+a/2,y1:i+s/2}},ko=function(n){if(n.modelType===j.LINE_EDGE)return Xo(n);if(n.modelType===j.POLYLINE_EDGE)return Yo(n);if(n.modelType===j.BEZIER_EDGE)return Ho(n)},zo=function(n,e,t,r){var o=(e.y-n.y)*(r.x-t.x)-(n.x-e.x)*(t.y-r.y);if(o===0)return!1;var i=((e.x-n.x)*(r.x-t.x)*(t.y-n.y)+(e.y-n.y)*(r.x-t.x)*n.x-(r.y-t.y)*(e.x-n.x)*t.x)/o,a=-((e.y-n.y)*(r.y-t.y)*(t.x-n.x)+(e.x-n.x)*(r.y-t.y)*n.y-(r.x-t.x)*(e.y-n.y)*t.y)/o;return(i-n.x)*(i-e.x)<=0&&(a-n.y)*(a-e.y)<=0&&(i-t.x)*(i-r.x)<=0&&(a-t.y)*(a-r.y)<=0?{x:i,y:a}:!1},me=function(n,e,t){var r=n.x,o=n.y,i=e.x,a=e.y,s=t.x,l=t.y,d=(l-a)/(s-i),u=a-d*i;return r>=i&&r<=s&&o>=a&&o<=l&&Math.abs(o-d*r+u)=e.x?(a.leftX=e.x+d*Math.sin(s+l),a.leftY=e.y-d*Math.cos(s+l),a.rightX=e.x-d*Math.sin(s-l),a.rightY=e.y+d*Math.cos(s-l)):(a.leftX=e.x-d*Math.sin(s+l),a.leftY=e.y+d*Math.cos(s+l),a.rightX=e.x+d*Math.sin(s-l),a.rightY=e.y-d*Math.cos(s-l)):i==="end"&&(t.x>=e.x?(a.leftX=t.x+d*Math.sin(s-l),a.leftY=t.y-d*Math.cos(s-l),a.rightX=t.x-d*Math.sin(s+l),a.rightY=t.y+d*Math.cos(s+l)):(a.leftX=t.x-d*Math.sin(s-l),a.leftY=t.y+d*Math.cos(s-l),a.rightX=t.x+d*Math.sin(s+l),a.rightY=t.y-d*Math.cos(s+l))),a},Vt=function(){return Vt=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Pt=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;rr/e.height?F.HORIZONTAL:F.VERTICAL},$e=function(n,e,t){var r=Fo(t,e);return r===F.HORIZONTAL?{x:t.x>n.centerX?n.maxX:n.minX,y:t.y}:{x:t.x,y:t.y>n.centerY?n.maxY:n.minY}},qr=function(n,e){var t=Math.min(n.minX,e.minX),r=Math.min(n.minY,e.minY),o=Math.max(n.maxX,e.maxX),i=Math.max(n.maxY,e.maxY);return{x:(t+o)/2,y:(r+i)/2,centerX:(t+o)/2,centerY:(r+i)/2,minX:t,minY:r,maxX:o,maxY:i,height:i-r,width:o-t}},Ee=function(n,e){n===void 0&&(n=[]);var t=[],r=[];n.forEach(function(u){t.push(u.x),r.push(u.y)});var o=Math.min.apply(Math,Pt([],it(t),!1)),i=Math.max.apply(Math,Pt([],it(t),!1)),a=Math.min.apply(Math,Pt([],it(r),!1)),s=Math.max.apply(Math,Pt([],it(r),!1)),l=i-o,d=s-a;return e&&(l+=e,d+=e),{centerX:(o+i)/2,centerY:(a+s)/2,maxX:i,maxY:s,minX:o,minY:a,x:(o+i)/2,y:(a+s)/2,height:d,width:l}},Ue=function(n){var e=n.minX,t=n.minY,r=n.maxX,o=n.maxY;return[{x:e,y:t},{x:r,y:t},{x:r,y:o},{x:e,y:o}]},be=function(n,e){var t=n.x,r=n.y;return te.maxX||re.maxY},$o=function(n,e){return en.maxX?[]:[{x:e,y:n.minY},{x:e,y:n.maxY}]},Uo=function(n,e){return en.maxY?[]:[{x:n.minX,y:e},{x:n.maxX,y:e}]},Wo=function(n,e){return Pt(Pt([],it($o(n,e.x)),!1),it(Uo(n,e.y)),!1)},mr=function(n,e){return Math.abs(n.x-e.x)+Math.abs(n.y-e.y)},Zo=function(n,e){var t=-2,r=0;return e.forEach(function(o){o&&(n.x===o.x&&(r+=t),n.y===o.y&&(r+=t))}),r},Jr=function(n,e,t,r,o){return mr(n,e)+mr(n,t)+Zo(n,[e,t,r,o])},Vn=function(n,e,t,r,o){o||(o=0),n.unshift(e[r]),t[r]&&t[r]!==r&&o<=100&&Vn(n,e,t,t[r],o+1)},Vo=function(n,e){var t=n.indexOf(e);t>-1&&n.splice(t,1)},ie=function(n,e,t,r){var o=e.x-n.x,i=e.y-n.y,a=r.x-t.x,s=r.y-t.y,l=(-i*(n.x-t.x)+o*(n.y-t.y))/(-a*i+o*s),d=(a*(n.y-t.y)-s*(n.x-t.x))/(-a*i+o*s);return l>=0&&l<=1&&d>=0&&d<=1},Qr=function(n,e,t){if(t.width===0&&t.height===0)return!1;var r=it(Ue(t),4),o=r[0],i=r[1],a=r[2],s=r[3];return ie(n,e,o,i)||ie(n,e,o,s)||ie(n,e,i,a)||ie(n,e,a,s)},Ko=function(n,e,t,r){var o=[];return n.forEach(function(i){i!==e&&(i.x===e.x||i.y===e.y)&&!Qr(i,e,t)&&!Qr(i,e,r)&&o.push(i)}),_r(o)},qo=function(n,e,t,r,o,i,a){var s=[],l=[e],d={},u={},f={};e.id&&(u[e.id]=0,f[e.id]=Jr(e,t,e));var c={};n.forEach(function(p){p.id&&(c[p.id]=p)});for(var h=function(){var p,g=1/0;if(l.forEach(function(_){_.id&&f[_.id]=u[_.id])return;d[_.id]=p.id,u[_.id]=M,f[_.id]=u[_.id]+Jr(_,t,e,i,a)}})};l.length;){var y=h();if(typeof y=="object")return y.value}return[e,t]},tn=function(n){return rt(n)},Kn=function(n){for(var e=1;e2&&(v=Kn(v)),_r(v)},Jo=function(n){if(n.length===1){var e=it(n,1),t=e[0];return[t,t]}else{for(var r=n[0],o=n[1],i=pt(r.x,r.y,o.x,o.y),a=1;ai&&(i=d,r=s,o=l)}return[r,o]}},rn=function(n,e,t){var r=Tt(n,t),o=Tt(e,t);return r&&o},nn=function(n,e,t){var r=Tt(n,t),o=Tt(e,t),i=r&&o,a=r||o;return!i&&a},on=function(n,e,t){for(var r=void 0,o=rt(t),i=Ue(o),a=0;a=1&&r<=126||r>=65376&&r<=65439?e+=1:e+=2}return e},ti=function(n){var e=n.start,t=n.end,r;if(e.x===t.x&&e.y===t.y)r="";else{var o={start:e,end:t,offset:10,verticalLength:5},i=xe(Vt(Vt({},o),{type:"start"})),a=xe(Vt(Vt({},o),{type:"end"}));r="M".concat(i.leftX," ").concat(i.leftY,` + L`).concat(i.rightX," ").concat(i.rightY,` + L`).concat(a.rightX," ").concat(a.rightY,` + L`).concat(a.leftX," ").concat(a.leftY," z")}return{d:r,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},sn=function(n){var e=n.start,t=n.end,r=n.sourceNode,o=n.targetNode,i=n.offset,a=rt(r),s=rt(o),l=Fe(a,i),d=Fe(s,i),u=$e(l,a,e),f=$e(d,s,t);return{sNext:u,ePre:f}},$r=function(n){var e=n.replace(/M/g,"").replace(/C/g,",").split(","),t=Ce(e[0]),r=Ce(e[1]),o=Ce(e[2]),i=Ce(e[3]);return[t,r,o,i]},Ce=function(n){var e=it(n.replace(/(^\s*)/g,"").split(" "),2),t=e[0],r=e[1];return{x:+t,y:+r}},ln=function(n,e){var t=it(n,4),r=t[0],o=t[1],i=t[2],a=t[3],s=Xi(r,o,i,a,e);return[s,n[3]]},Jn=function(n,e){for(var t=n.x,r=n.y,o=Xt(e),i=Number.MAX_SAFE_INTEGER,a,s=[],l=0;lo?a:o}),{width:Math.ceil(o/2)*r+r/4,height:t*(r+2)+r/4}},Gt=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Le=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},ur=function(n,e,t){var r=dr(n,2),o=r[0],i=r[1],a=dr(e,2),s=a[0],l=a[1],d=dr(t,2),u=d[0],f=d[1];return o>s&&ol&&i=0?o:-o},e}(to),xr=function(n){Ur(e,n);function e(t,r){var o=n.call(this,t,r,1)||this;return Object.setPrototypeOf(o,e.prototype),o}return e.prototype.toString=function(){return"Point"},e}(to),er=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Ft=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},fr=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;o--){var i=t[o],a=di(n,i);if(a){var s=i.getTargetAnchor(n);if(s){var l={node:i,anchorIndex:s.index,anchor:s.anchor};(!r||si(i,r.node,e))&&(r=l)}}}return r},si=function(n,e,t){return n.zIndex>e.zIndex?!0:t.nodesMap[n.id].index>t.nodesMap[e.id].index},li=function(n,e){for(var t=Er(e),r,o=Number.MAX_SAFE_INTEGER,i=0;i=o.minX-r&&n.x<=o.maxX+r&&n.y>=o.minY-r&&n.y<=o.maxY+r&&(t=!0),t},di=function(n,e){var t=!1,r=5,o=rt(e);return n.x>=o.minX-r&&n.x<=o.maxX+r&&n.y>=o.minY-r&&n.y<=o.maxY+r&&(t=!0),t},rt=function(n){var e=n.x,t=n.y,r=n.width,o=n.height;return{minX:e-r/2,minY:t-o/2,maxX:e+r/2,maxY:t+o/2,x:e,y:t,width:r,height:o,centerX:e,centerY:t}},ui=function(n){var e=n,t=e.x,r=e.y,o=e.width,i=e.height,a=e.radius;return[{x:t-o/2+a,y:r-i/2+a,r:a},{x:t+o/2-a,y:r-i/2+a,r:a},{x:t-o/2+a,y:r+i/2-a,r:a},{x:t+o/2-a,y:r+i/2-a,r:a}]},fn=function(n,e,t){var r=ui(t),o,i=Number.MAX_SAFE_INTEGER;return r.forEach(function(a){var s=pt(n.x,n.y,a.x,a.y);sd.minX&&n.xd.minY&&n.yu.x&&(f=u,c=d);var h={x:n.x,y:n.y};if(f.x===c.x&&e===F.HORIZONTAL&&(h={x:f.x,y:n.y}),f.y===c.y&&e===F.VERTICAL&&(h={x:n.x,y:f.y}),f.x!==c.x&&f.y!==c.y){var y=(c.y-f.y)/(c.x-f.x),p=(f.x*c.y-c.x*f.y)/(f.x-c.x);e===F.HORIZONTAL?h={x:(n.y-p)/y,y:n.y}:e===F.VERTICAL&&(h={x:n.x,y:y*n.x+p})}var g=me(h,d,u);if(g){var v=pt(h.x,h.y,n.x,n.y);vn.x?o=n.x+t/2:e.xn.y?i=n.y+r/2:e.y1?e.forEach(function(s){var l=document.createElement("div");l.textContent=s,i.appendChild(l)}):i.textContent=e[0],document.body.appendChild(i);var a=i.clientHeight;return document.body.removeChild(i),a},vn=function(n){var e=n.rows,t=n.rowsLength,r=n.fontSize,o=0;return e&&e.forEach(function(i){var a=qn(i);o=a>o?a:o}),{width:Math.ceil(o/2)*r+r/4,height:t*(r+2)+r/4}},Ke=function(n){return typeof n!="object"?{isAllPass:!!n,msg:n?"":"不允许连接"}:n},It=function(){return Ao()},se=new Map,ro=function(n){var e=It();function t(){n();var o=se.get(e);if(o){var i=window.requestAnimationFrame(t);se.set(e,i)}}var r=window.requestAnimationFrame(t);return se.set(e,r),e},qe=function(n){var e=se.get(n);e&&(window.cancelAnimationFrame(e),se.delete(n))},Me=function(){return Me=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function no(n){var e=n.x,t=e===void 0?0:e,r=n.y,o=r===void 0?0:r,i=n.value,a=n.fontSize,s=a===void 0?12:a,l=n.fill,d=l===void 0?"currentColor":l,u=n.overflowMode,f=u===void 0?"default":u,c=n.textWidth,h=c===void 0?void 0:c,y=n.model,p={x:t,y:o,fill:d,fontSize:s,textAnchor:"middle",dominantBaseline:"central"};if(W(Nt(n),function(O){var w=ci(O,2),A=w[0],L=w[1];typeof L!="object"&&(p[A]=L)}),i){var g=String(i).split(/[\r\n]/g),v=g.length;if(f!=="default"){var _=y.BaseType,M=y.modelType;if(_===U.NODE&&M!==j.TEXT_NODE||_===U.EDGE&&h)return pi(n)}if(v>1){var S=g.map(function(O,w){var A=s+2,L=(w-(v-1)/2)*A;return x("tspan",{className:"lf-text-tspan",x:t,y:o+L,children:O})});return x("text",Me({},p,{children:S}))}return x("text",Me({},p,{children:i}))}return null}function pi(n){var e=n.x,t=n.y,r=n.value,o=n.model,i=n.textWidth,a=n.fontSize,s=a===void 0?12:a,l=n.lineHeight,d=n.fontFamily,u=d===void 0?"":d,f=n.wrapPadding,c=f===void 0?"0, 0":f,h=n.overflowMode,y=o.width,p=o.height,g=o.textHeight,v=i||y,_=String(r).split(/[\r\n]/g),M=_.length,S=eo({rows:_,style:{fontSize:"".concat(s,"px"),width:"".concat(v,"px"),fontFamily:u,lineHeight:l,padding:c},rowsLength:M,className:"lf-get-text-height"}),O=p>S?p:S;g&&(O=g);var w=h==="ellipsis";return w&&(O=s+2),x("g",{children:x("foreignObject",{width:v,height:O,x:e-v/2,y:t-O/2,style:{overflow:"visible",textAlign:"left"},children:x("div",{className:"lf-node-text-auto-wrap",style:{minHeight:O,width:v,padding:c},children:x("div",{className:w?"lf-node-text-ellipsis-content":"lf-node-text-auto-wrap-content",title:w?_.join(""):"",style:Me({},n),children:_.map(function(A){return x("div",{className:"lf-node-text--auto-wrap-inner",children:A})})})})})})}var Or=function(){return Or=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function ee(n){var e={x1:10,y1:10,x2:20,y2:20,stroke:"black"};return W(Nt(n),function(t){var r=hi(t,2),o=r[0],i=r[1];(o==="style"||typeof i!="object")&&(e[o]=i)}),x("line",Or({},e))}var Sr=function(){return Sr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function mt(n){var e=n.x,t=n.y,r=n.width,o=n.height,i=n.className,a=n.strokeWidth,s=n.radius,l=s===void 0?0:s,d=e-r/2,u=t-o/2,f={};return f["stroke-width"]=a,W(Nt(n),function(c){var h=vi(c,2),y=h[0],p=h[1];typeof p!="object"&&(f[y]=p)}),i?f.className="lf-basic-shape ".concat(i):f.className="lf-basic-shape",l&&(f.rx=l,f.ry=l),f.x=d,f.y=u,x("rect",Sr({},f))}var wr=function(){return wr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function Oe(n){var e={d:""};return W(Nt(n),function(t){var r=yi(t,2),o=r[0],i=r[1];(o==="style"||typeof i!="object")&&(e[o]=i)}),x("path",wr({},e))}var Ar=function(){return Ar=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function re(n){var e=n.x,t=e===void 0?0:e,r=n.y,o=r===void 0?0:r,i=n.r,a=i===void 0?4:i,s=n.className,l={cx:t,cy:o,r:a,fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1};return W(Nt(n),function(d){var u=gi(d,2),f=u[0],c=u[1];typeof c!="object"&&(l[f]=c)}),s?l.className="lf-basic-shape ".concat(s):l.className="lf-basic-shape",x("circle",Ar({},l))}var Pr=function(){return Pr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function mi(n){var e=n.x,t=e===void 0?0:e,r=n.y,o=r===void 0?0:r,i=n.rx,a=i===void 0?4:i,s=n.ry,l=s===void 0?4:s,d=n.className,u={cx:t,cy:o,rx:a,ry:l,fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1};return W(Nt(n),function(f){var c=_i(f,2),h=c[0],y=c[1];typeof y!="object"&&(u[h]=y)}),d?u.className="lf-basic-shape ".concat(d):u.className="lf-basic-shape",x("ellipse",Pr({},u))}var Tr=function(){return Tr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function oo(n){var e=n.points,t=e===void 0?[]:e,r=n.className,o={fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1,points:""};return W(Nt(n),function(i){var a=xi(i,2),s=a[0],l=a[1];typeof l!="object"&&(o[s]=l)}),r?o.classNmae="lf-basic-shape ".concat(r):o.className="lf-basic-shape",o.points=t.map(function(i){return i.join(",")}).join(" "),x("polygon",Tr({},o))}var Nr=function(){return Nr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function Mi(n){var e=n.className,t={points:"",fill:"none"};return W(Nt(n),function(r){var o=Ei(r,2),i=o[0],a=o[1];(i==="style"||typeof a!="object")&&(t[i]=a)}),e&&(t.className="".concat(e)),x("polyline",Nr({},t))}var io=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Se=function(){return Se=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},k;(function(n){n[n.LEFT_TOP=0]="LEFT_TOP",n[n.RIGHT_TOP=1]="RIGHT_TOP",n[n.RIGHT_BOTTOM=2]="RIGHT_BOTTOM",n[n.LEFT_BOTTOM=3]="LEFT_BOTTOM"})(k||(k={}));var wi=function(n){io(e,n);function e(t){var r=n.call(this)||this;r.updateEdgePointByAnchors=function(){var s=r.nodeModel,l=s.id,d=s.anchors,u=r.graphModel.getNodeEdges(l);W(u,function(f){if(f.sourceNodeId===l){var c=Bt(d,function(h){return h.id===f.sourceAnchorId});c&&f.updateStartPoint({x:c.x,y:c.y})}else if(f.targetNodeId===l){var c=Bt(d,function(y){return y.id===f.targetAnchorId});c&&f.updateEndPoint({x:c.x,y:c.y})}})},r.triggerResizeEvent=function(s,l,d,u,f,c){r.graphModel.eventCenter.emit(T.NODE_RESIZE,{preData:s,data:l,deltaX:d,deltaY:u,index:f,model:c})},r.recalcResizeInfo=function(s,l,d,u,f){d===void 0&&(d=1),u===void 0&&(u=!1),f===void 0&&(f=!1);var c=C(l),h=c.deltaX,y=c.deltaY,p=c.width,g=c.height,v=c.PCTResizeInfo;if(v){var _=4,M=0,S=0;switch(s){case k.LEFT_TOP:S=(h*-1-y)/_;break;case k.RIGHT_TOP:S=(h-y)/_;break;case k.RIGHT_BOTTOM:S=(h+y)/_;break;case k.LEFT_BOTTOM:S=(h*-1+y)/_;break}S!==0&&(M=Math.round(S/v.ResizeBasis.basisHeight*1e5)/1e3),v.ResizePCT.widthPCT=Math.max(Math.min(v.ResizePCT.widthPCT+M,v.ScaleLimit.maxScaleLimit),v.ScaleLimit.minScaleLimit),v.ResizePCT.heightPCT=Math.max(Math.min(v.ResizePCT.heightPCT+M,v.ScaleLimit.maxScaleLimit),v.ScaleLimit.minScaleLimit);var O=Math.round(v.ResizePCT.widthPCT*v.ResizeBasis.basisWidth/100),w=Math.round(v.ResizePCT.heightPCT*v.ResizeBasis.basisHeight/100);switch(s){case k.LEFT_TOP:h=p-O,y=g-w;break;case k.RIGHT_TOP:h=O-p,y=g-w;break;case k.RIGHT_BOTTOM:h=O-p,y=w-g;break;case k.LEFT_BOTTOM:h=p-O,y=w-g;break}return c}switch(s){case k.LEFT_TOP:c.width=u?p:p-h*d,c.height=f?g:g-y*d;break;case k.RIGHT_TOP:c.width=u?p:p+h*d,c.height=f?g:g-y*d;break;case k.RIGHT_BOTTOM:c.width=u?p:p+h*d,c.height=f?g:g+y*d;break;case k.LEFT_BOTTOM:c.width=u?p:p-h*d,c.height=f?g:g+y*d;break}return c},r.resizeNode=function(s){var l=s.deltaX,d=s.deltaY,u=r.index,f=r.props,c=f.model,h=f.graphModel,y=f.x,p=f.y;ji({x:y,y:p,deltaX:l,deltaY:d,index:u,nodeModel:c,graphModel:h,cancelCallback:function(){r.dragHandler.cancelDrag()}})},r.onDragging=function(s){var l=s.deltaX,d=s.deltaY,u=r.graphModel.transformModel,f=Si(u.fixDeltaXY(l,d),2),c=f[0],h=f[1];r.resizeNode({deltaX:c,deltaY:h})},r.onDragEnd=function(){var s=r.nodeModel.x,l=r.nodeModel.y;r.nodeModel.moveTo(s,l),r.updateEdgePointByAnchors()};var o=t.index,i=t.model,a=t.graphModel;return r.index=o,r.nodeModel=i,r.graphModel=a,r.dragHandler=new xt({onDragging:r.onDragging,onDragEnd:r.onDragEnd,step:a.gridSize}),r}return e.prototype.componentWillUnmount=function(){this.dragHandler.cancelDrag()},e.prototype.render=function(){var t=this.props,r=t.x,o=t.y,i=t.direction,a=t.model,s=a.getResizeControlStyle(),l=s.width,d=s.height,u=Oi(s,["width","height"]);return x("g",{className:"lf-resize-control lf-resize-control-".concat(i),children:[x(mt,Se({className:"lf-resize-control-content",x:r,y:o,width:l??7,height:d??7},u)),x(mt,{className:"lf-resize-control-content",x:r,y:o,width:25,height:25,fill:"transparent",stroke:"transparent",onMouseDown:this.dragHandler.handleMouseDown})]})},e}(V),Ai=function(n){io(e,n);function e(){return n.call(this)||this}return e.prototype.getResizeControl=function(){var t=this.props,r=t.model,o=t.graphModel,i=rt(r),a=i.minX,s=i.minY,l=i.maxX,d=i.maxY,u=[{index:k.LEFT_TOP,direction:"nw",x:a,y:s},{index:k.RIGHT_TOP,direction:"ne",x:l,y:s},{index:k.RIGHT_BOTTOM,direction:"se",x:l,y:d},{index:k.LEFT_BOTTOM,direction:"sw",x:a,y:d}];return Ot(u,function(f){return x(wi,Se({},f,{model:r,graphModel:o}))})},e.prototype.getResizeOutline=function(){var t=this.props.model,r=t.x,o=t.y,i=t.width,a=t.height,s=t.getResizeOutlineStyle();return x(mt,Se({},s,{x:r,y:o,width:i,height:a}))},e.prototype.render=function(){return x("g",{className:"lf-resize-control-group",children:[this.getResizeOutline(),this.getResizeControl()]})},e}(V);function Pi(n,e){var t=n.x,r=n.y,o=e.x,i=e.y,a={x:t+(o-t)/2,y:r+(i-r)/2};return a}function ae(n,e,t){var r=Ti(t),o=n.x-e.x,i=n.y-e.y,a=o*Math.cos(r)-i*Math.sin(r)+e.x,s=o*Math.sin(r)+i*Math.cos(r)+e.y;return{x:a,y:s}}function Ti(n){return n*Math.PI/180}function Ni(n){return n/Math.PI*180}function Di(n,e,t,r,o,i,a,s,l){s===void 0&&(s=!1),l===void 0&&(l=!1);var d=e.deltaX,u=e.deltaY,f=e.width,c=e.height,h=Ni(t),y={x:r,y:o},p={x:i,y:a},g=ae(y,p,h),v={x:g.x+d,y:g.y+u},_=Ri(g,v,p,h,s,l,f,c),M=_.width,S=_.height,O=_.center;return e.width=M*n,e.height=S*n,e.deltaX=(O.x-p.x)*2,e.deltaY=(O.y-p.y)*2,e}var bi=function(n,e,t,r,o,i,a,s,l,d){t===void 0&&(t=1),r===void 0&&(r=!1),o===void 0&&(o=!1),i===void 0&&(i=0);var u=C(e),f=u.deltaX,c=u.deltaY,h=u.width,y=u.height,p=u.PCTResizeInfo;if(p){var g=4,v=0,_=0;switch(n){case k.LEFT_TOP:_=(f*-1-c)/g;break;case k.RIGHT_TOP:_=(f-c)/g;break;case k.RIGHT_BOTTOM:_=(f+c)/g;break;case k.LEFT_BOTTOM:_=(f*-1+c)/g;break}_!==0&&(v=Math.round(_/p.ResizeBasis.basisHeight*1e5)/1e3),p.ResizePCT.widthPCT=Math.max(Math.min(p.ResizePCT.widthPCT+v,p.ScaleLimit.maxScaleLimit),p.ScaleLimit.minScaleLimit),p.ResizePCT.heightPCT=Math.max(Math.min(p.ResizePCT.heightPCT+v,p.ScaleLimit.maxScaleLimit),p.ScaleLimit.minScaleLimit);var M=Math.round(p.ResizePCT.widthPCT*p.ResizeBasis.basisWidth/100),S=Math.round(p.ResizePCT.heightPCT*p.ResizeBasis.basisHeight/100);switch(n){case k.LEFT_TOP:f=h-M,c=y-S;break;case k.RIGHT_TOP:f=M-h,c=y-S;break;case k.RIGHT_BOTTOM:f=M-h,c=S-y;break;case k.LEFT_BOTTOM:f=h-M,c=S-y;break}return u}if(i%(2*Math.PI)!==0&&a!==void 0&&s!==void 0)return Di(t,u,i,a,s,l,d,r,o);switch(n){case k.LEFT_TOP:u.width=r?h:h-f*t,u.height=o?y:y-c*t;break;case k.RIGHT_TOP:u.width=r?h:h+f*t,u.height=o?y:y-c*t;break;case k.RIGHT_BOTTOM:u.width=r?h:h+f*t,u.height=o?y:y+c*t;break;case k.LEFT_BOTTOM:u.width=r?h:h-f*t,u.height=o?y:y+c*t;break}return u},Ci=function(n,e){var t=n.id,r=n.anchors,o=e.getNodeEdges(t);W(o,function(i){if(i.sourceNodeId===t){var a=Bt(r,function(s){return s.id===i.sourceAnchorId});a&&i.updateStartPoint({x:a.x,y:a.y})}else if(i.targetNodeId===t){var a=Bt(r,function(l){return l.id===i.targetAnchorId});a&&i.updateEndPoint({x:a.x,y:a.y})}})},Li=function(n,e,t,r,o,i,a){a.eventCenter.emit(T.NODE_RESIZE,{preData:n,data:e,deltaX:t,deltaY:r,index:o,model:i})},ji=function(n){var e=n.x,t=n.y,r=n.deltaX,o=n.deltaY,i=n.index,a=n.nodeModel,s=n.graphModel,l=n.cancelCallback,d=a.r,u=a.rx,f=a.ry,c=a.width,h=a.height,y=a.PCTResizeInfo,p=a.minWidth,g=a.minHeight,v=a.maxWidth,_=a.maxHeight,M=a.rotate,S=a.x,O=a.y,w=p===v,A=g===_,L={width:d||u||c,height:d||f||h,deltaX:r,deltaY:o,PCTResizeInfo:y},I=d||u&&f?1/2:1,b=e,G=t,R=bi(i,L,I,w,A,M,b,G,S,O);if(R.widthv||R.height_){l==null||l();return}(M%(2*Math.PI)==0||y||b===void 0||G===void 0)&&(R.deltaX=w?0:R.deltaX,R.deltaY=A?0:R.deltaY);var Y=a.getData(),H=a.resize(R);Y.x===H.x&&Y.y===H.y||(Ci(a,s),Li(Y,H,r,o,i,a,s))};function Ri(n,e,t,r,o,i,a,s){o===void 0&&(o=!1),i===void 0&&(i=!1);var l={x:t.x-(n.x-t.x),y:t.y-(n.y-t.y)},d=Pi(l,e),u=ae(e,d,-r),f=ae(l,d,-r);if(o){var c=Math.abs(u.x-f.x),h=c-a;d.x>u.x?d.x=d.x+h/2:d.x=d.x-h/2}if(i){var y=Math.abs(u.y-f.y),p=y-s;d.y>u.y?d.y=d.y+p/2:d.y=d.y-p/2}if(o||i){var g=ae(f,d,r),v=g.x-l.x,_=g.y-l.y;d.x=d.x-v,d.y=d.y-_,f=ae(l,d,-r),u={x:d.x-(f.x-d.x),y:d.y-(f.y-d.y)}}var M=Math.abs(u.x-f.x),S=Math.abs(u.y-f.y);return o&&(M=a),i&&(S=s),{width:M,height:S,center:d}}var Ii=100,Bi={x:1,y:0,z:0};function Xi(n,e,t,r,o){for(var i=function(h){if(h<0||h>1)throw new RangeError('The value range of parameter "t" is [0,1]');return{x:n.x*Math.pow(1-h,3)+3*e.x*h*Math.pow(1-h,2)+3*t.x*Math.pow(h,2)*(1-h)+r.x*Math.pow(h,3),y:n.y*Math.pow(1-h,3)+3*e.y*h*Math.pow(1-h,2)+3*t.y*Math.pow(h,2)*(1-h)+r.y*Math.pow(h,3)}},a=0,s=2,l=r.x,d=r.y,u=r;a=0?r:-r}function yn(n){var e=Math.hypot(n.x,n.y);return{x:n.x/e,y:n.y/e,z:0}}function zi(n){return ki(Bi,n)}function Gi(n){return n*(180/Math.PI)}var Fi={baseNode:{fill:"#fff",stroke:"#000",strokeWidth:2},baseEdge:{stroke:"#000",strokeWidth:2},rect:{},circle:{},diamond:{},ellipse:{},polygon:{},text:{color:"#000",stroke:"none",fontSize:12,background:{fill:"transparent"}},anchor:{stroke:"#000",fill:"#fff",r:4,hover:{r:10,fill:"#949494",fillOpacity:.5,stroke:"#949494"}},anchorLine:{stroke:"#000",strokeWidth:2,strokeDasharray:"3,2"},nodeText:{color:"#000",overflowMode:"default",fontSize:12,lineHeight:1.2},edgeText:{textWidth:100,overflowMode:"default",fontSize:12,background:{fill:"#fff"}},line:{},polyline:{},bezier:{fill:"none",adjustLine:{stroke:"#949494"},adjustAnchor:{r:4,fill:"#949494",fillOpacity:1,stroke:"#949494"}},arrow:{offset:10,verticalLength:5},snapline:{stroke:"#949494",strokeWidth:1},edgeAdjust:{r:4,fill:"#fff",stroke:"#949494",strokeWidth:2},outline:{fill:"transparent",stroke:"#949494",strokeDasharray:"3,3",hover:{stroke:"#949494"}},edgeAnimation:{stroke:"red",strokeDasharray:"10,10",strokeDashoffset:"100%",animationName:"lf_animate_dash",animationDuration:"20s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"normal"},rotateControl:{stroke:"#000",fill:"#fff",strokeWidth:1.5},resizeControl:{width:7,height:7,fill:"#fff",stroke:"#000"},resizeOutline:{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}},ao=function(n){var e=C(Fi);return n&&(e=$n(e,n)),e},$i=ao,Ui=1e3,Wi=999,Wr=function(){return++Ui},Zi=function(){return--Wi},Z=function(){return Z=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},or=function(){function n(e,t){var r;this.BaseType=U.EDGE,this.id="",this.type="",this.sourceNodeId="",this.targetNodeId="",this.textMode=ht.TEXT,this.text={value:"",x:0,y:0,draggable:!1,editable:!0},this.points="",this.pointsList=[],this.virtual=!1,this.isSelected=!1,this.isHovered=!1,this.isHitable=!0,this.isHittable=!0,this.draggable=!0,this.visible=!0,this.isAnimation=!1,this.isShowAdjustPoint=!1,this.zIndex=0,this.state=B.DEFAULT,this.modelType=j.EDGE,this.customTextPosition=!1,this.style={},this.arrowConfig={markerEnd:"url(#marker-end-".concat(this.id,")"),markerStart:"url(#marker-start-".concat(this.id,")")},this.graphModel=t,this.properties=(r=e.properties)!==null&&r!==void 0?r:{},this.initEdgeData(e),this.setAttributes()}return n.prototype.initEdgeData=function(e){if(e.properties||(e.properties={}),!e.id){var t=this.graphModel.idGenerator,r=t&&t(e.type),o=this.createId();e.id=o||r||It()}this.arrowConfig.markerEnd="url(#marker-end-".concat(e.id,")"),this.arrowConfig.markerStart="url(#marker-start-".concat(e.id,")");var i=this.graphModel.editConfigModel.adjustEdgeStartAndEnd;this.isShowAdjustPoint=i,z(this,ei(e));var a=this.graphModel.overlapMode;a===ct.INCREASE&&(this.zIndex=e.zIndex||Wr()),this.setAnchors(),this.initPoints(),this.formatText(e)},n.prototype.setAttributes=function(){},n.prototype.createId=function(){return null},n.prototype.getEdgeStyle=function(){return Z(Z({},this.graphModel.theme.baseEdge),this.style)},n.prototype.getAdjustPointStyle=function(){return Z({},this.graphModel.theme.edgeAdjust)},n.prototype.getTextStyle=function(){var e=this.graphModel.theme.edgeText;return C(e)},n.prototype.getEdgeAnimationStyle=function(){var e=this.graphModel.theme.edgeAnimation;return C(e)},n.prototype.getArrowStyle=function(){var e=this.getEdgeStyle(),t=this.getEdgeAnimationStyle(),r=this.graphModel.theme.arrow,o=this.isAnimation?t.stroke:e.stroke;return Z(Z(Z({},e),{fill:o,stroke:o}),r)},n.prototype.getOutlineStyle=function(){var e=this.graphModel,t=e.theme.outline;return C(t)},n.prototype.getTextPosition=function(){return{x:0,y:0}},Object.defineProperty(n.prototype,"sourceNode",{get:function(){var e,t;return(t=(e=this.graphModel)===null||e===void 0?void 0:e.nodesMap[this.sourceNodeId])===null||t===void 0?void 0:t.model},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"targetNode",{get:function(){var e,t;return(t=(e=this.graphModel)===null||e===void 0?void 0:e.nodesMap[this.targetNodeId])===null||t===void 0?void 0:t.model},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"textPosition",{get:function(){return this.getTextPosition()},enumerable:!1,configurable:!0}),n.prototype.getBeginAnchor=function(e,t,r){var o,i,a=Er(e);if(r){if(o=Bt(a,function(s){return s.id===r}),o)return o;console.warn("未在节点上找到指定的起点锚点".concat(r,",已使用默认锚点作为起点"))}return a.forEach(function(s){var l=dn(s,t);(i===void 0||l=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},cr=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},gn=function(n){Vi(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.BEZIER_EDGE,o.path="",o.initEdgeData(t),o.setAttributes(),o}return e.prototype.initEdgeData=function(t){this.offset=100,n.prototype.initEdgeData.call(this,t)},e.prototype.getEdgeStyle=function(){var t=this.graphModel.theme.bezier,r=n.prototype.getEdgeStyle.call(this),o=this.properties.style,i=o===void 0?{}:o;return Lt(Lt(Lt({},r),C(t)),C(i))},e.prototype.getTextPosition=function(){if(this.pointsList&&this.pointsList.length>0){var t=0,r=0;return this.pointsList.forEach(function(o){var i=o.x,a=o.y;t+=i,r+=a}),{x:t/this.pointsList.length,y:r/this.pointsList.length}}return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}},e.prototype.getData=function(){var t=n.prototype.getData.call(this),r=this.pointsList.map(function(o){var i=o.x,a=o.y;return{x:i,y:a}});return Lt(Lt({},t),{pointsList:r})},e.prototype.getControls=function(){var t=this.startPoint,r=this.endPoint,o=sn({start:t,end:r,sourceNode:this.sourceNode,targetNode:this.targetNode,offset:this.offset});return o},e.prototype.getPath=function(t){var r=cr(t,4),o=r[0],i=r[1],a=r[2],s=r[3];return"M ".concat(o.x," ").concat(o.y,` + C `).concat(i.x," ").concat(i.y,`, + `).concat(a.x," ").concat(a.y,`, + `).concat(s.x," ").concat(s.y)},e.prototype.initPoints=function(){this.pointsList.length>0?this.path=this.getPath(this.pointsList):this.updatePoints()},e.prototype.updatePoints=function(){var t=this.getControls(),r=t.sNext,o=t.ePre;this.updatePath(r,o)},e.prototype.updatePath=function(t,r){t=C(t),r=C(r);var o={x:this.startPoint.x,y:this.startPoint.y},i={x:this.endPoint.x,y:this.endPoint.y};if(!t||!r){var a=this.getControls();t=a.sNext,r=a.ePre}this.pointsList=[o,t,r,i],this.path=this.getPath(this.pointsList)},e.prototype.updateStartPoint=function(t){this.startPoint=Object.assign({},t),this.updatePoints()},e.prototype.updateEndPoint=function(t){this.endPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveStartPoint=function(t,r){this.startPoint.x+=t,this.startPoint.y+=r;var o=cr(this.pointsList,3),i=o[1],a=o[2];i.x+=t,i.y+=r,this.updatePath(i,a)},e.prototype.moveEndPoint=function(t,r){this.endPoint.x+=t,this.endPoint.y+=r;var o=cr(this.pointsList,3),i=o[1],a=o[2];a.x+=t,a.y+=r,this.updatePath(i,a)},e.prototype.updateAdjustAnchor=function(t,r){var o;r==="sNext"?this.pointsList[1]=t:r==="ePre"&&(this.pointsList[2]=t),this.path=this.getPath(this.pointsList),!((o=this.text)===null||o===void 0)&&o.value&&this.setText(z({},this.text,this.textPosition))},e.prototype.getAdjustStart=function(){return this.pointsList[0]||this.startPoint},e.prototype.getAdjustEnd=function(){var t=this.pointsList;return t[t.length-1]||this.endPoint},e.prototype.updateAfterAdjustStartAndEnd=function(t){var r=t.startPoint,o=t.endPoint,i=t.sourceNode,a=t.targetNode,s=sn({start:r,end:o,sourceNode:i,targetNode:a,offset:this.offset}),l=s.sNext,d=s.ePre;this.pointsList=[r,l,d,o],this.initPoints()},lt([E],e.prototype,"path",void 0),lt([m],e.prototype,"initPoints",null),lt([m],e.prototype,"updatePoints",null),lt([m],e.prototype,"updateStartPoint",null),lt([m],e.prototype,"updateEndPoint",null),lt([m],e.prototype,"moveStartPoint",null),lt([m],e.prototype,"moveEndPoint",null),lt([m],e.prototype,"updateAdjustAnchor",null),lt([m],e.prototype,"getAdjustStart",null),lt([m],e.prototype,"getAdjustEnd",null),lt([m],e.prototype,"updateAfterAdjustStartAndEnd",null),e}(or),Ki=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),le=function(){return le=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Ji=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},mn=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},ta=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;rl)&&(a=l,i=s)}),i},e.prototype.getCrossPoint=function(t,r,o){var i;return t===F.HORIZONTAL?i={x:o.x,y:r.y}:t===F.VERTICAL&&(i={x:r.x,y:o.y}),i},e.prototype.removeCrossPoints=function(t,r,o){var i=o.map(function(v){return v});if(t===1){var a=i[t],s=i[r],l=i[t-1],d=rn(l,a,this.sourceNode);if(d){var u=nn(a,s,this.sourceNode);if(u){var f=on(a,s,this.sourceNode);f&&(i[t]=f,i.splice(t-1,1),t--,r--)}}else{var c=this.sourceNode.anchors;c.forEach(function(v){if(v.x===l.x&&v.x===a.x||v.y===l.y&&v.y===a.y){var _=pt(v.x,v.y,a.x,a.y),M=pt(l.x,l.y,a.x,a.y);_0?this.points=this.pointsList.map(function(t){return"".concat(t.x,",").concat(t.y)}).join(" "):this.updatePoints()},e.prototype.updatePoints=function(){var t=en({x:this.startPoint.x,y:this.startPoint.y},{x:this.endPoint.x,y:this.endPoint.y},this.sourceNode,this.targetNode,this.offset||0);this.pointsList=t,this.points=t.map(function(r){return"".concat(r.x,",").concat(r.y)}).join(" ")},e.prototype.updateStartPoint=function(t){this.startPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveStartPoint=function(t,r){this.startPoint.x+=t,this.startPoint.y+=r,this.updatePoints()},e.prototype.updateEndPoint=function(t){this.endPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveEndPoint=function(t,r){this.endPoint.x+=t,this.endPoint.y+=r,this.updatePoints()},e.prototype.updatePointsList=function(t,r){this.pointsList.forEach(function(a){a.x+=t,a.y+=r});var o=this.pointsList[0];this.startPoint=Object.assign({},o);var i=this.pointsList[this.pointsList.length-1];this.endPoint=Object.assign({},i),this.initPoints()},e.prototype.dragAppendStart=function(){this.draggingPointList=this.pointsList.map(function(t){return t})},e.prototype.dragAppendSimple=function(t,r){var o;this.isDragging=!0;var i=t.start,a=t.end,s=t.startIndex,l=t.endIndex,d=t.direction,u=this.pointsList,f=u;return d===F.HORIZONTAL?(u[s]={x:i.x,y:i.y+r.y},u[l]={x:a.x,y:a.y+r.y},f=this.pointsList.map(function(c){return c})):d===F.VERTICAL&&(u[s]={x:i.x+r.x,y:i.y},u[l]={x:a.x+r.x,y:a.y},f=this.pointsList.map(function(c){return c})),this.updatePointsAfterDrag(f),this.draggingPointList=f,!((o=this.text)===null||o===void 0)&&o.value&&this.setText(z({},this.text,this.textPosition)),{start:z({},u[s]),end:z({},u[l]),startIndex:s,endIndex:l,direction:d}},e.prototype.dragAppend=function(t,r){var o;this.isDragging=!0;var i=t.start,a=t.end,s=t.startIndex,l=t.endIndex,d=t.direction,u=this.pointsList;if(d===F.HORIZONTAL){u[s]={x:i.x,y:i.y+r.y},u[l]={x:a.x,y:a.y+r.y};var f=this.pointsList.map(function(g){return g});if(s!==0&&l!==this.pointsList.length-1&&(f=this.removeCrossPoints(s,l,f)),s===0){var c={x:i.x,y:i.y+r.y},h=Tt(c,this.sourceNode);if(!h){var y=this.sourceNode.anchors;f=this.getDraggingPoints(d,"start",c,y,f)}}if(l===this.pointsList.length-1){var p={x:a.x,y:a.y+r.y},h=Tt(p,this.targetNode);if(!h){var y=this.targetNode.anchors;f=this.getDraggingPoints(d,"end",p,y,f)}}this.updatePointsAfterDrag(f),this.draggingPointList=f}else if(d===F.VERTICAL){u[s]={x:i.x+r.x,y:i.y},u[l]={x:a.x+r.x,y:a.y};var f=this.pointsList.map(function(v){return v});if(s!==0&&l!==this.pointsList.length-1&&(f=this.removeCrossPoints(s,l,f)),s===0){var c={x:i.x+r.x,y:i.y},h=Tt(c,this.sourceNode);if(!h){var y=this.sourceNode.anchors;f=this.getDraggingPoints(d,"start",c,y,f)}}if(l===this.pointsList.length-1){var p={x:a.x+r.x,y:a.y},h=Tt(p,this.targetNode);if(!h){var y=this.targetNode.anchors;f=this.getDraggingPoints(d,"end",p,y,f)}}this.updatePointsAfterDrag(f),this.draggingPointList=f}return!((o=this.text)===null||o===void 0)&&o.value&&this.setText(z({},this.text,this.textPosition)),{start:z({},u[s]),end:z({},u[l]),startIndex:s,endIndex:l,direction:d}},e.prototype.dragAppendEnd=function(){if(this.draggingPointList){var t=Kn(Xt(this.points));this.pointsList=t.map(function(i){return i}),this.draggingPointList=[];var r=t[0];this.startPoint=z({},r);var o=t[t.length-1];this.endPoint=z({},o)}this.isDragging=!1},e.prototype.updatePointsAfterDrag=function(t){var r=this.updateCrossPoints(t);this.points=r.map(function(o){return"".concat(o.x,",").concat(o.y)}).join(" ")},e.prototype.getAdjustStart=function(){return this.pointsList[0]||this.startPoint},e.prototype.getAdjustEnd=function(){var t=this.pointsList;return t[t.length-1]||this.endPoint},e.prototype.updateAfterAdjustStartAndEnd=function(t){var r=t.startPoint,o=t.endPoint,i=t.sourceNode,a=t.targetNode;this.pointsList=en({x:r.x,y:r.y},{x:o.x,y:o.y},i,a,this.offset||0),this.initPoints()},Q([E],e.prototype,"dbClickPosition",void 0),Q([m],e.prototype,"initPoints",null),Q([m],e.prototype,"updatePoints",null),Q([m],e.prototype,"updateStartPoint",null),Q([m],e.prototype,"moveStartPoint",null),Q([m],e.prototype,"updateEndPoint",null),Q([m],e.prototype,"moveEndPoint",null),Q([m],e.prototype,"updatePointsList",null),Q([m],e.prototype,"dragAppendStart",null),Q([m],e.prototype,"dragAppendSimple",null),Q([m],e.prototype,"dragAppend",null),Q([m],e.prototype,"dragAppendEnd",null),Q([m],e.prototype,"updatePointsAfterDrag",null),Q([m],e.prototype,"getAdjustStart",null),Q([m],e.prototype,"getAdjustEnd",null),Q([m],e.prototype,"updateAfterAdjustStartAndEnd",null),e}(or),K=function(){return K=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},En=function(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ea=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Dt=function(){function n(e,t){var r;this.BaseType=U.NODE,this.id="",this.type="",this.x=0,this.y=0,this.textMode=ht.TEXT,this.text={value:"",x:0,y:0,draggable:!1,editable:!0},this._width=100,this._height=80,this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.anchorsOffset=[],this.virtual=!1,this.isSelected=!1,this.isHovered=!1,this.isShowAnchor=!1,this.isDragging=!1,this.isHitable=!0,this.isHittable=!0,this.draggable=!0,this.visible=!0,this.rotatable=!0,this.resizable=!0,this.zIndex=1,this.state=B.DEFAULT,this.autoToFront=!0,this.style={},this._rotate=0,this.modelType=j.NODE,this.additionStateData={},this.targetRules=[],this.sourceRules=[],this.moveRules=[],this.resizeRules=[],this.hasSetTargetRules=!1,this.hasSetSourceRules=!1,this.graphModel=t,this.properties=(r=e.properties)!==null&&r!==void 0?r:{},this.initNodeData(e),this.setAttributes()}return Object.defineProperty(n.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rotate",{get:function(){return this._rotate},set:function(e){this._rotate=e;var t=this,r=t.x,o=r===void 0?0:r,i=t.y,a=i===void 0?0:i;this.transform=new nr(-o,-a).rotate(e).translate(o,a).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"incoming",{get:function(){return{nodes:this.graphModel.getNodeIncomingNode(this.id),edges:this.graphModel.getNodeIncomingEdge(this.id)}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"outgoing",{get:function(){return{nodes:this.graphModel.getNodeOutgoingNode(this.id),edges:this.graphModel.getNodeOutgoingEdge(this.id)}},enumerable:!1,configurable:!0}),n.prototype.initNodeData=function(e){if(e.properties||(e.properties={}),!e.id){var t=this.graphModel.idGenerator,r=t&&t(e.type),o=this.createId();e.id=o||r||It()}this.formatText(e),z(this,fi(e));var i=this.graphModel.overlapMode;i===ct.INCREASE&&(this.zIndex=e.zIndex||Wr())},n.prototype.setAttributes=function(){},n.prototype.createId=function(){return null},n.prototype.setTextMode=function(e){this.textMode=e},n.prototype.formatText=function(e){var t,r,o,i=e.x,a=e.y,s=e.text,l={value:"",x:i,y:a,draggable:!1,editable:!0};s&&(typeof s=="string"?l.value=s:(l=K(K({},l),{x:(t=s.x)!==null&&t!==void 0?t:i,y:(r=s.y)!==null&&r!==void 0?r:a,value:(o=s.value)!==null&&o!==void 0?o:""}),Qt(s.draggable)||(l.draggable=s.draggable),Qt(s.editable)||(l.editable=s.editable))),e.text=l},n.prototype.resize=function(e){var t=e.width,r=e.height,o=e.deltaX,i=e.deltaY,a=this.isAllowResizeNode(o,i,t,r);return a?(this.move(o/2,i/2),this.width=t,this.height=r,this.setProperties({width:t,height:r}),this.getData()):this.getData()},n.prototype.proportionalResize=function(){},n.prototype.getData=function(){var e=this.text,t=e.x,r=e.y,o=e.value,i=this.properties;Zn(i)&&(i=gt(i)),Jt(i.width)&&(i.width=this.width),Jt(i.height)&&(i.height=this.height);var a={id:this.id,type:this.type,x:this.x,y:this.y,properties:i};return this.rotate&&(a.rotate=this.rotate),this.graphModel.overlapMode===ct.INCREASE&&(a.zIndex=this.zIndex),o&&(a.text={x:t,y:r,value:o}),a},n.prototype.getHistoryData=function(){return this.getData()},n.prototype.getProperties=function(){return gt(this.properties)},n.prototype.getOuterGAttributes=function(){return{className:""}},n.prototype.getNodeStyle=function(){return K(K({},this.graphModel.theme.baseNode),this.style)},n.prototype.getTextStyle=function(){var e=this.graphModel.theme.nodeText,t=this.properties.textStyle,r=t===void 0?{}:t;return K(K({},C(e)),C(r))},n.prototype.getRotateControlStyle=function(){var e=this.graphModel.theme.rotateControl;return C(e)},n.prototype.getResizeControlStyle=function(){var e=this.graphModel.theme.resizeControl;return C(e)},n.prototype.getResizeOutlineStyle=function(){var e=this.graphModel.theme.resizeOutline;return C(e)},n.prototype.getAnchorStyle=function(e){var t=this.graphModel.theme.anchor;return C(t)},n.prototype.getAnchorLineStyle=function(e){var t=this.graphModel.theme.anchorLine;return C(t)},n.prototype.getOutlineStyle=function(){var e=this.graphModel.theme.outline;return C(e)},n.prototype.isAllowConnectedAsSource=function(e,t,r,o){var i=this.hasSetSourceRules?this.sourceRules:this.getConnectedSourceRules();this.hasSetSourceRules=!0;for(var a=!0,s="",l=0;l0?t.map(function(a,s){return a.length?(a=a,{id:"".concat(r,"_").concat(s),x:o+a[0],y:i+a[1]}):(a=a,K(K({},a),{x:o+a.x,y:i+a.y,id:a.id||"".concat(r,"_").concat(s)}))}):this.getDefaultAnchor()},n.prototype.getDefaultAnchor=function(){return[]},n.prototype.getTargetAnchor=function(e){return li(e,this)},n.prototype.getBounds=function(){return{minX:this.x-this.width/2,minY:this.y-this.height/2,maxX:this.x+this.width/2,maxY:this.y+this.height/2}},Object.defineProperty(n.prototype,"anchors",{get:function(){var e=this.getAnchorsByOffset(),t=this,r=t.x,o=t.y,i=t.rotate;return e.forEach(function(a){var s=a.x,l=a.y,d=ea(new rr([s,l,1]).translate(-r,-o).rotate(i).translate(r,o)[0],2),u=d[0],f=d[1];a.x=u,a.y=f}),e},enumerable:!1,configurable:!0}),n.prototype.getAnchorInfo=function(e){if(!Jt(e))for(var t=0;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Mn=function(n){ra(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.CIRCLE_NODE,o.r=50,o.initNodeData(t),o.setAttributes(),o}return Object.defineProperty(e.prototype,"width",{get:function(){return this.r*2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.r*2},enumerable:!1,configurable:!0}),e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties.r;t&&(this.r=t)},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.circle,o=this.properties.style,i=o===void 0?{}:o;return ue(ue(ue({},t),C(r)),C(i))},e.prototype.getDefaultAnchor=function(){var t=this,r=t.x,o=t.y,i=t.r;return[{x:r,y:o-i,id:"".concat(this.id,"_0")},{x:r+i,y:o,id:"".concat(this.id,"_1")},{x:r,y:o+i,id:"".concat(this.id,"_2")},{x:r-i,y:o,id:"".concat(this.id,"_3")}]},e.prototype.resize=function(t){var r=t.width,o=t.deltaX,i=t.deltaY;return this.move(o/2,i/2),this.r=r,this.setProperties({r}),this.getData()},pr([E],e.prototype,"r",void 0),pr([$],e.prototype,"width",null),pr([$],e.prototype,"height",null),e}(Dt),na=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),fe=function(){return fe=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Re=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},On=function(n){na(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.DIAMOND_NODE,o.rx=30,o.ry=50,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties,r=t.rx,o=t.ry;r&&(this.rx=r),o&&(this.ry=o)},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.diamond,o=this.properties.style,i=o===void 0?{}:o;return fe(fe(fe({},t),C(r)),C(i))},Object.defineProperty(e.prototype,"points",{get:function(){var t=this,r=t.x,o=t.y,i=t.rx,a=t.ry;return[[r,o-a],[r+i,o],[r,o+a],[r-i,o]]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pointsPosition",{get:function(){return Ot(this.points,function(t){var r=Re(t,2),o=r[0],i=r[1];return{x:o,y:i}})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var t=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;return W(this.points,function(o){var i=Re(o,1),a=i[0];ar&&(r=a)}),r-t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;return W(this.points,function(o){var i=Re(o,2),a=i[1];ar&&(r=a)}),r-t},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this;return Ot(this.points,function(r,o){var i=Re(r,2),a=i[0],s=i[1];return{x:a,y:s,id:"".concat(t.id,"_").concat(o)}})},e.prototype.resize=function(t){var r=t.width,o=t.height,i=t.deltaX,a=t.deltaY;return this.move(i/2,a/2),this.rx=r,this.ry=o,this.setProperties({rx:r,ry:o}),this.getData()},$t([E],e.prototype,"rx",void 0),$t([E],e.prototype,"ry",void 0),$t([$],e.prototype,"points",null),$t([$],e.prototype,"pointsPosition",null),$t([$],e.prototype,"width",null),$t([$],e.prototype,"height",null),e}(Dt),oa=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ce=function(){return ce=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Sn=function(n){oa(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.ELLIPSE_NODE,o.rx=30,o.ry=45,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties,r=t.rx,o=t.ry;r&&(this.rx=r),o&&(this.ry=o)},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.ellipse,o=this.properties.style,i=o===void 0?{}:o;return ce(ce(ce({},t),C(r)),C(i))},Object.defineProperty(e.prototype,"width",{get:function(){return this.rx*2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.ry*2},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this,r=t.x,o=t.y,i=t.rx,a=t.ry;return[{x:r,y:o-a,id:"".concat(this.id,"_0")},{x:r+i,y:o,id:"".concat(this.id,"_1")},{x:r,y:o+a,id:"".concat(this.id,"_2")},{x:r-i,y:o,id:"".concat(this.id,"_3")}]},e.prototype.resize=function(t){var r=t.width,o=t.height,i=t.deltaX,a=t.deltaY;return this.move(i/2,a/2),this.rx=r,this.ry=o,this.setProperties({rx:r,ry:o}),this.getData()},Ie([E],e.prototype,"rx",void 0),Ie([E],e.prototype,"ry",void 0),Ie([$],e.prototype,"width",null),Ie([$],e.prototype,"height",null),e}(Dt),ia=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),pe=function(){return pe=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Xe=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},wn=function(n){ia(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.POLYGON_NODE,o.points=[[50,0],[100,50],[50,100],[0,50]],o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties,r=t.points,o=t.width,i=t.height,a=r||this.points;this.points=oi(a,o,i)},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.polygon,o=this.properties.style,i=o===void 0?{}:o;return pe(pe(pe({},t),C(r)),C(i))},Object.defineProperty(e.prototype,"pointsPosition",{get:function(){var t=this,r=t.x,o=t.y,i=t.width,a=t.height;return this.points.map(function(s){return{x:s[0]+r-i/2,y:s[1]+o-a/2}})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var t=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(o){var i=Xe(o,1),a=i[0];ar&&(r=a)}),r-t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(o){var i=Xe(o,2),a=i[1];ar&&(r=a)}),r-t},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this,r=this,o=r.x,i=r.y,a=r.width,s=r.height,l=r.points;return l.map(function(d,u){var f=Xe(d,2),c=f[0],h=f[1];return{x:o+c-a/2,y:i+h-s/2,id:"".concat(t.id,"_").concat(u)}})},e.prototype.resize=function(t){var r=this,o=t.width,i=t.height,a=t.deltaX,s=t.deltaY;this.move(a/2,s/2);var l=Ot(this.points,function(d){var u=Xe(d,2),f=u[0],c=u[1];return[f*o/r.width,c*i/r.height]});return this.points=l,this.properties.points=l,this.getData()},Be([E],e.prototype,"points",void 0),Be([$],e.prototype,"pointsPosition",null),Be([$],e.prototype,"width",null),Be([$],e.prototype,"height",null),e}(Dt),aa=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),he=function(){return he=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},An=function(n){aa(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.RECT_NODE,o.radius=0,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties,r=t.width,o=t.height,i=t.radius;Jt(r)||(this.width=r),Jt(o)||(this.height=o),Jt(i)||(this.radius=i)},e.prototype.getDefaultAnchor=function(){var t=this,r=t.x,o=t.y,i=t.width,a=t.height;return[{x:r,y:o-a/2,id:"".concat(this.id,"_0")},{x:r+i/2,y:o,id:"".concat(this.id,"_1")},{x:r,y:o+a/2,id:"".concat(this.id,"_2")},{x:r-i/2,y:o,id:"".concat(this.id,"_3")}]},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.rect,o=this.properties.style,i=o===void 0?{}:o;return he(he(he({},t),C(r)),C(i))},sa([E],e.prototype,"radius",void 0),e}(Dt),la=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ve=function(){return ve=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},da=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},ua=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ca={stopZoomGraph:!1,stopScrollGraph:!1,stopMoveGraph:!1,adjustEdge:!1,adjustEdgeStartAndEnd:!1,adjustNodePosition:!1,hideAnchors:!0,allowRotate:!1,allowResize:!1,nodeSelectedOutline:!0,textEdit:!1,nodeTextEdit:!1,edgeTextEdit:!1,textDraggable:!1,nodeTextDraggable:!1,edgeTextDraggable:!1},Ye=["isSilentMode","stopZoomGraph","stopScrollGraph","stopMoveGraph","adjustEdge","adjustEdgeMiddle","adjustEdgeStartAndEnd","adjustEdgeStart","adjustEdgeEnd","adjustNodePosition","hideAnchors","allowRotate","allowResize","autoExpand","hoverOutline","nodeSelectedOutline","edgeSelectedOutline","textEdit","nodeTextEdit","edgeTextEdit","textDraggable","nodeTextDraggable","edgeTextDraggable","multipleSelectKey","textMode","nodeTextMode","edgeTextMode","nodeTextMultiple","edgeTextMultiple","nodeTextVertical","edgeTextVertical"],pa=function(){function n(e){this.isSilentMode=!1,this.stopZoomGraph=!1,this.stopMoveGraph=!1,this.stopScrollGraph=!1,this.textMode=ht.TEXT,this.textEdit=!0,this.textDraggable=!1,this.nodeTextEdit=!0,this.nodeTextDraggable=!1,this.nodeTextMultiple=!1,this.nodeTextVertical=!1,this.nodeTextMode=ht.TEXT,this.edgeTextMode=ht.TEXT,this.edgeTextEdit=!0,this.edgeTextDraggable=!1,this.edgeTextMultiple=!1,this.edgeTextVertical=!1,this.hideAnchors=!1,this.allowRotate=!1,this.allowResize=!1,this.hoverOutline=!0,this.nodeSelectedOutline=!0,this.adjustNodePosition=!0,this.autoExpand=!1,this.adjustEdge=!0,this.adjustEdgeMiddle=!1,this.adjustEdgeStartAndEnd=!1,this.adjustEdgeStart=!1,this.adjustEdgeEnd=!1,this.edgeSelectedOutline=!0,this.multipleSelectKey="",z(this,this.computeConfig(e))}return n.prototype.updateEditConfig=function(e){var t=this.computeConfig(e);z(this,t)},n.prototype.computeConfig=function(e){var t=e.isSilentMode,r=e.textDraggable,o=e.textMode,i=e.textEdit,a=e.adjustEdgeStartAndEnd,s={};if(t===!1&&z(s,this.stagedConfig),t===!0&&t!==this.isSilentMode){var l=Zt(ca,Ye);this.stagedConfig=Zt(this,Ye),z(s,l)}Qt(i)||z(s,{nodeTextEdit:i,edgeTextEdit:i}),Qt(r)||z(s,{nodeTextDraggable:r,edgeTextDraggable:r}),o&&z(s,{nodeTextMode:o,edgeTextMode:o}),yo(a)&&z(s,{adjustEdgeStart:a,adjustEdgeEnd:a});var d=Zt(e,Ye);return z(s,d)},n.prototype.updateTextMode=function(e){this.textMode=e,this.edgeTextMode=e,this.nodeTextMode=e},n.prototype.getConfig=function(){return Zt(this,Ye)},X([E],n.prototype,"isSilentMode",void 0),X([E],n.prototype,"stopZoomGraph",void 0),X([E],n.prototype,"stopMoveGraph",void 0),X([E],n.prototype,"stopScrollGraph",void 0),X([E],n.prototype,"textMode",void 0),X([E],n.prototype,"textEdit",void 0),X([E],n.prototype,"textDraggable",void 0),X([E],n.prototype,"nodeTextEdit",void 0),X([E],n.prototype,"nodeTextDraggable",void 0),X([E],n.prototype,"nodeTextMultiple",void 0),X([E],n.prototype,"nodeTextVertical",void 0),X([E],n.prototype,"nodeTextMode",void 0),X([E],n.prototype,"edgeTextMode",void 0),X([E],n.prototype,"edgeTextEdit",void 0),X([E],n.prototype,"edgeTextDraggable",void 0),X([E],n.prototype,"edgeTextMultiple",void 0),X([E],n.prototype,"edgeTextVertical",void 0),X([E],n.prototype,"hideAnchors",void 0),X([E],n.prototype,"allowRotate",void 0),X([E],n.prototype,"allowResize",void 0),X([E],n.prototype,"hoverOutline",void 0),X([E],n.prototype,"nodeSelectedOutline",void 0),X([E],n.prototype,"adjustNodePosition",void 0),X([E],n.prototype,"autoExpand",void 0),X([E],n.prototype,"adjustEdge",void 0),X([E],n.prototype,"adjustEdgeMiddle",void 0),X([E],n.prototype,"adjustEdgeStartAndEnd",void 0),X([E],n.prototype,"adjustEdgeStart",void 0),X([E],n.prototype,"adjustEdgeEnd",void 0),X([E],n.prototype,"edgeSelectedOutline",void 0),X([m],n.prototype,"updateEditConfig",null),X([m],n.prototype,"updateTextMode",null),n}(),ha="*",va=function(){function n(){this._events={}}return n.prototype.on=function(e,t,r){var o=this;e==null||e.split(",").forEach(function(i){i=i.trim(),o._events[i]||(o._events[i]=[]),o._events[i].push({callback:t,once:!!r})})},n.prototype.once=function(e,t){var r=this;e==null||e.split(",").forEach(function(o){o=o.trim(),r.on(o,t,!0)})},n.prototype.emit=function(e,t){var r=this;e==null||e.split(",").forEach(function(o){var i=r._events[o]||[],a=r._events[ha]||[],s=function(l){for(var d=l.length,u=0;u=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},q=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},ot=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ga=function(){function n(e){this.isShowHorizontal=!1,this.isShowVertical=!1,this.position={x:0,y:0},this.graphModel=e}return n.prototype.getStyle=function(){return jt({},this.graphModel.theme.snapline)},n.prototype.getCenterSnapLine=function(e,t){for(var r=e.x,o=e.y,i=!1,a=!1,s=0;s=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ut=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},_a={false:[-1/0,-1/0,1/0,1/0],true:[-1/0,-1/0,1/0,1/0],vertical:[-1/0,0,1/0,0],horizontal:[0,-1/0,0,1/0]},ma=function(){function n(e,t){this.MINI_SCALE_SIZE=.2,this.MAX_SCALE_SIZE=16,this.SCALE_X=1,this.SKEW_Y=0,this.SKEW_X=0,this.SCALE_Y=1,this.TRANSLATE_X=0,this.TRANSLATE_Y=0,this.ZOOM_SIZE=.04,this.translateLimitMinX=-1/0,this.translateLimitMinY=-1/0,this.translateLimitMaxX=1/0,this.translateLimitMaxY=1/0,this.eventCenter=e;var r=t.stopMoveGraph,o=r===void 0?!1:r;this.updateTranslateLimits(o)}return n.prototype.setZoomMiniSize=function(e){this.MINI_SCALE_SIZE=e},n.prototype.setZoomMaxSize=function(e){this.MAX_SCALE_SIZE=e},n.prototype.HtmlPointToCanvasPoint=function(e){var t=Ut(e,2),r=t[0],o=t[1];return[(r-this.TRANSLATE_X)/this.SCALE_X,(o-this.TRANSLATE_Y)/this.SCALE_Y]},n.prototype.CanvasPointToHtmlPoint=function(e){var t=Ut(e,2),r=t[0],o=t[1];return[r*this.SCALE_X+this.TRANSLATE_X,o*this.SCALE_Y+this.TRANSLATE_Y]},n.prototype.moveCanvasPointByHtml=function(e,t,r){var o=Ut(e,2),i=o[0],a=o[1];return[i+t/this.SCALE_X,a+r/this.SCALE_Y]},n.prototype.fixDeltaXY=function(e,t){return[e/this.SCALE_X,t/this.SCALE_Y]},n.prototype.getTransformStyle=function(){var e=[this.SCALE_X,this.SKEW_Y,this.SKEW_X,this.SCALE_Y,this.TRANSLATE_X,this.TRANSLATE_Y].join(",");return{transform:"matrix(".concat(e,")")}},n.prototype.zoom=function(e,t){e===void 0&&(e=!1);var r=this.SCALE_X,o=this.SCALE_Y;return typeof e=="number"?(r=e,o=e):e?(r+=this.ZOOM_SIZE,o+=this.ZOOM_SIZE):(r-=this.ZOOM_SIZE,o-=this.ZOOM_SIZE),rthis.MAX_SCALE_SIZE?"".concat(this.SCALE_X*100,"%"):(t&&(this.TRANSLATE_X-=(r-this.SCALE_X)*t[0],this.TRANSLATE_Y-=(o-this.SCALE_Y)*t[1]),this.SCALE_X=r,this.SCALE_Y=o,this.emitGraphTransform("zoom"),"".concat(this.SCALE_X*100,"%"))},n.prototype.emitGraphTransform=function(e){this.eventCenter.emit(T.GRAPH_TRANSFORM,{type:e,transform:{SCALE_X:this.SCALE_X,SKEW_Y:this.SKEW_Y,SKEW_X:this.SKEW_X,SCALE_Y:this.SCALE_Y,TRANSLATE_X:this.TRANSLATE_X,TRANSLATE_Y:this.TRANSLATE_Y}})},n.prototype.resetZoom=function(){this.SCALE_X=1,this.SCALE_Y=1,this.emitGraphTransform("resetZoom")},n.prototype.translate=function(e,t){this.TRANSLATE_X+e<=this.translateLimitMaxX&&this.TRANSLATE_X+e>=this.translateLimitMinX&&(this.TRANSLATE_X+=e),this.TRANSLATE_Y+t<=this.translateLimitMaxY&&this.TRANSLATE_Y+t>=this.translateLimitMinY&&(this.TRANSLATE_Y+=t),this.emitGraphTransform("translate")},n.prototype.focusOn=function(e,t,r,o){var i=Ut(this.CanvasPointToHtmlPoint([e,t]),2),a=i[0],s=i[1],l=Ut([r/2-a,o/2-s],2),d=l[0],u=l[1];this.TRANSLATE_X+=d,this.TRANSLATE_Y+=u,this.emitGraphTransform("focusOn")},n.prototype.updateTranslateLimits=function(e){var t;t=Ut(Array.isArray(e)&&e.length===4?e:_a[e.toString()],4),this.translateLimitMinX=t[0],this.translateLimitMinY=t[1],this.translateLimitMaxX=t[2],this.translateLimitMaxY=t[3]},dt([E],n.prototype,"SCALE_X",void 0),dt([E],n.prototype,"SKEW_Y",void 0),dt([E],n.prototype,"SKEW_X",void 0),dt([E],n.prototype,"SCALE_Y",void 0),dt([E],n.prototype,"TRANSLATE_X",void 0),dt([E],n.prototype,"TRANSLATE_Y",void 0),dt([E],n.prototype,"ZOOM_SIZE",void 0),dt([m],n.prototype,"zoom",null),dt([m],n.prototype,"resetZoom",null),dt([m],n.prototype,"translate",null),dt([m],n.prototype,"focusOn",null),n}(),xa=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Dr=function(){return Dr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ma=function(n){xa(e,n);function e(t){var r=n.call(this)||this;r.stepScrollX=0,r.stepScrollY=0,r.onDragging=function(s){var l=s.deltaX,d=s.deltaY;r.setState({isDragging:!0});var u=r.props.graphModel,f=u.transformModel,c=u.editConfigModel;c.stopMoveGraph!==!0&&f.translate(l,d)},r.onDragEnd=function(){r.setState({isDragging:!1})},r.zoomHandler=function(s){var l=r.props,d=l.graphModel,u=d.editConfigModel,f=d.transformModel,c=d.gridSize,h=l.graphModel,y=s.deltaX,p=s.deltaY;if(!u.stopScrollGraph&&!s.ctrlKey&&!s.metaKey){if(s.preventDefault(),r.stepScrollX+=y,r.stepScrollY+=p,Math.abs(r.stepScrollX)>=c){var g=r.stepScrollX%c,v=r.stepScrollX-g;f.translate(-v*f.SCALE_X,0),r.stepScrollX=g}if(Math.abs(r.stepScrollY)>=c){var _=r.stepScrollY%c,M=r.stepScrollY-_;f.translate(0,-M*f.SCALE_Y),r.stepScrollY=_}return}if(!u.stopZoomGraph){s.preventDefault();var S=h.getPointByClient({x:s.clientX,y:s.clientY}),O=S.canvasOverlayPosition,w=O.x,A=O.y;f.zoom(s.deltaY<0,[w,A])}},r.clickHandler=function(s){var l=s.target;if(l.getAttribute("name")==="canvas-overlay"){var d=r.props.graphModel,u=d.selectElements;u.size>0&&d.clearSelectElements(),d.eventCenter.emit(T.BLANK_CLICK,{e:s})}},r.handleContextMenu=function(s){var l=s.target;if(l.getAttribute("name")==="canvas-overlay"){s.preventDefault();var d=r.props.graphModel,u=d.getPointByClient({x:s.clientX,y:s.clientY});d.eventCenter.emit(T.BLANK_CONTEXTMENU,{e:s,position:u})}},r.mouseDownHandler=function(s){var l=r.props.graphModel,d=l.eventCenter,u=l.editConfigModel,f=l.transformModel.SCALE_X,c=l.gridSize,h=s.target,y=!u.adjustEdge&&!u.adjustNodePosition;(h.getAttribute("name")==="canvas-overlay"||y)&&(u.stopMoveGraph!==!0?(r.stepDrag.setStep(c*f),r.stepDrag.handleMouseDown(s)):d.emit(T.BLANK_MOUSEDOWN,{e:s}),r.clickHandler(s))};var o=t.graphModel,i=o.gridSize,a=o.eventCenter;return r.stepDrag=new xt({onDragging:r.onDragging,onDragEnd:r.onDragEnd,step:i,eventType:"BLANK",isStopPropagation:!1,eventCenter:a,model:void 0}),r.state={isDragging:!1},r}return e.prototype.render=function(){var t=this.props.graphModel.transformModel,r=t.getTransformStyle().transform,o=this.props,i=o.children,a=o.dnd,s=this.state.isDragging;return x("svg",Dr({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",name:"canvas-overlay",onWheel:this.zoomHandler,onMouseDown:this.mouseDownHandler,onContextMenu:this.handleContextMenu,className:s?"lf-canvas-overlay lf-dragging":"lf-canvas-overlay lf-drag-able"},a.eventMap(),{children:x("g",{transform:r,children:i})}))},e=Ea([at],e),e}(V),so=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),we=function(){return we=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Sa=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Dn=function(n){so(e,n);function e(){var t=n.call(this)||this;return t.onDragging=function(r){var o=r.event,i=t.props,a=i.graphModel,s=i.bezierModel,l=i.type,d=a.getPointByClient({x:o.clientX,y:o.clientY}).canvasOverlayPosition,u=d.x,f=d.y;s.updateAdjustAnchor({x:u,y:f},l),a.eventCenter.emit(T.EDGE_ADJUST,{data:s.getData()})},t.onDragEnd=function(){var r=t.props.bezierModel;r.isDragging=!1},t.dragHandler=new xt({onDragging:t.onDragging,onDragEnd:t.onDragEnd}),t}return e.prototype.render=function(){var t=this,r=this.props.position,o=r.x,i=r.y,a=this.props.bezierModel,s=a.getEdgeStyle().adjustAnchor;return x(re,we({className:"lf-bezier-adjust-anchor",x:o,y:i},s,{onMouseDown:function(l){t.dragHandler.handleMouseDown(l)}}))},e}(V),wa=function(n){so(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getBezierAdjust=function(t,r){var o=t.path,i=t.id,a=$r(o),s=Sa(a,4),l=s[0],d=s[1],u=s[2],f=s[3],c=t.getEdgeStyle().adjustLine,h=[];return h.push(x(ee,we({x1:l.x,y1:l.y,x2:d.x,y2:d.y},c))),h.push(x(Dn,{position:d,bezierModel:t,graphModel:r,type:"sNext"},"".concat(i,"_ePre"))),h.push(x(ee,we({x1:f.x,y1:f.y,x2:u.x,y2:u.y},c))),h.push(x(Dn,{position:u,bezierModel:t,graphModel:r,type:"ePre"},"".concat(i,"_sNext"))),h},e.prototype.selectedBezierEdge=function(){for(var t=this.props.graphModel,r=t.edges,o=[],i=0;i=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Da=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},ba=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ja=function(n){Ca(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.graphModel.transformModel,r=t.getTransformStyle().transform,o=this.props.children;return x("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",className:"modification-overlay",children:x("g",{transform:r,children:o})})},e=La([at],e),e}(V),Ra=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),St=function(){return St=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ba=function(n){Ra(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getNodesOutline=function(){var t=this.props.graphModel,r=t.nodes,o=t.editConfigModel,i=o.hoverOutline,a=o.nodeSelectedOutline,s=[];return r.forEach(function(l){if(l.isHovered||l.isSelected){var d=l.isHovered,u=l.isSelected,f=l.x,c=l.y,h=l.width,y=l.height;if(a&&u||i&&d){var p=l.getOutlineStyle(),g={};if(Object.keys(p).forEach(function(_){_!=="hover"&&(g[_]=p[_])}),d){var v=p.hover;g=St(St({},g),v)}s.push(x(mt,St({transform:l.transform,className:"lf-outline-node",x:f,y:c,width:h+10,height:y+10},g)))}}}),s},e.prototype.getEdgeOutline=function(){for(var t=this.props.graphModel,r=t.edges,o=t.editConfigModel,i=o.edgeSelectedOutline,a=o.hoverOutline,s=[],l=0;l=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ha=function(n){Xa(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.snaplineModel,r=t??{},o=r.position,i=r.isShowHorizontal,a=r.isShowVertical,s=t==null?void 0:t.getStyle(),l=o??{},d=l.x,u=d===void 0?0:d,f=l.y,c=f===void 0?0:f,h=wt(wt({x1:-1e5,y1:c,x2:1e5,y2:c},s),{stroke:i?s==null?void 0:s.stroke:"none"}),y=wt(wt({x1:u,y1:-1e5,x2:u,y2:1e5},s),{stroke:a?s==null?void 0:s.stroke:"none"});return x("g",{className:"lf-snapline",children:[x(ee,wt({},h)),x(ee,wt({},y))]})},e=Ya([at],e),e}(V),ka=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),za=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ga=function(n){ka(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.componentDidMount=function(){this.triggerToolRender()},e.prototype.componentDidUpdate=function(){this.triggerToolRender()},e.prototype.getTools=function(){var t=this.props,r=t.tool,o=t.graphModel,i=o.textEditElement,a=r.getTools(),s=a.map(function(l){return Fn(l,{textEditElement:i,graphModel:o,lf:r.instance})});return r.components=s,s},e.prototype.triggerToolRender=function(){var t=this.props,r=t.tool,o=t.graphModel,i=document.querySelector("#ToolOverlay_".concat(o.flowId)),a=r.getInstance();a.components.forEach(function(s){return s(a,i)}),a.components=[]},e.prototype.render=function(){var t=this.props.graphModel;return x("div",{className:"lf-tool-overlay",id:"ToolOverlay_".concat(t.flowId),children:this.getTools()})},e=za([at],e),e}(V),Fa=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),br=function(){return br=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ua=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Wa=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},qa=function(n){Va(e,n);function e(){var t=n.call(this)||this;return t.onDragStart=function(r){var o=r.event,i=t.props,a=i.anchorData,s=i.nodeModel,l=i.graphModel;l.selectNodeById(s.id),s.autoToFront&&l.toFront(s.id),l.eventCenter.emit(T.ANCHOR_DRAGSTART,{data:a,e:o,nodeModel:s}),t.setState({startX:a.x,startY:a.y,endX:a.x,endY:a.y})},t.onDragging=function(r){var o=r.event,i=t.props,a=i.graphModel,s=i.nodeModel,l=i.anchorData,d=a.transformModel,u=a.eventCenter,f=a.width,c=a.height,h=a.editConfigModel,y=h.autoExpand,p=h.stopMoveGraph;if(o){var g=o.clientX,v=o.clientY,_=a.getPointByClient({x:g,y:v}),M=_.domOverlayPosition,S=M.x,O=M.y,w=_.canvasOverlayPosition,A=w.x,L=w.y;t.t&&qe(t.t);var I=[],b=10;S<10?I=[b,0]:S+10>f?I=[-b,0]:O<10?I=[0,b]:O+10>c&&(I=[0,-b]),t.setState({endX:A,endY:L,dragging:!0}),t.moveAnchorEnd(A,L),I.length>0&&!p&&y&&(t.t=ro(function(){var G=Ka(I,2),R=G[0],Y=G[1];d.translate(R,Y);var H=t.state,nt=H.endX,st=H.endY;t.setState({endX:nt-R,endY:st-Y}),t.moveAnchorEnd(nt-R,st-Y)})),u.emit(T.ANCHOR_DRAG,{data:l,e:o,nodeModel:s})}},t.onDragEnd=function(r){var o=r.event;t.t&&qe(t.t);var i=t.checkEnd(o);t.setState({startX:0,startY:0,endX:0,endY:0,dragging:!1}),t.sourceRuleResults.clear(),t.targetRuleResults.clear();var a=t.props,s=a.graphModel,l=a.nodeModel,d=a.anchorData;i&&s.eventCenter.emit(T.ANCHOR_DRAGEND,{data:d,e:o,nodeModel:l,edgeModel:i})},t.checkEnd=function(r){var o,i=t.props,a=i.graphModel,s=i.nodeModel,l=i.anchorData,d=l.x,u=l.y,f=l.id,c=t.state,h=c.endX,y=c.endY,p=c.dragging,g=Ve({x:h,y},a);if(t.preTargetNode&&t.preTargetNode.state!==B.DEFAULT&&t.preTargetNode.setElementState(B.DEFAULT),!!p&&g&&g.node){var v=g.node,_=g.anchor.id,M="".concat(s.id,"_").concat(v.id,"_").concat(_,"_").concat(f),S=t.sourceRuleResults.get(M)||{},O=S.isAllPass,w=S.msg,A=t.targetRuleResults.get(M)||{},L=A.isAllPass,I=A.msg;if(O&&L){v.setElementState(B.DEFAULT);var b=a.getNodeModelById(g.node.id),G=(o=a.edgeGenerator)===null||o===void 0?void 0:o.call(a,s.getData(),b==null?void 0:b.getData()),R=a.addEdge(yt(yt({},G),{sourceNodeId:s.id,sourceAnchorId:f,startPoint:{x:d,y:u},targetNodeId:g.node.id,targetAnchorId:g.anchor.id,endPoint:{x:g.anchor.x,y:g.anchor.y}})),Y=t.props.anchorData;return a.eventCenter.emit(T.ANCHOR_DROP,{data:Y,e:r,nodeModel:s,edgeModel:R}),R}var H=v.getData();return a.eventCenter.emit(T.CONNECTION_NOT_ALLOWED,{data:H,msg:I||w||"不允许添加连线"}),null}},t.sourceRuleResults=new Map,t.targetRuleResults=new Map,t.state={startX:0,startY:0,endX:0,endY:0,dragging:!1},t.dragHandler=new xt({onDragStart:t.onDragStart,onDragging:t.onDragging,onDragEnd:t.onDragEnd}),t}return e.prototype.getAnchorShape=function(){var t=this.props,r=t.anchorData,o=t.style,i=t.node,a=i.getAnchorShape(r);if(a)return a;var s=r.x,l=r.y,d=yt(yt({},o),o==null?void 0:o.hover);return x("g",{children:[x(re,yt({className:"lf-node-anchor-hover"},d,{x:s,y:l})),x(re,yt({className:"lf-node-anchor"},o,{x:s,y:l}))]})},Object.defineProperty(e.prototype,"customTrajectory",{get:function(){var t=this.props.graphModel.customTrajectory;return t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"relateEdges",{get:function(){var t=this.props,r=t.graphModel,o=r.getAnchorIncomingEdge,i=r.getAnchorOutgoingEdge,a=t.anchorData.id;return{incomingEdgeList:o(a),outgoingEdgeList:i(a)}},enumerable:!1,configurable:!0}),e.prototype.moveAnchorEnd=function(t,r){var o,i,a=this.props,s=a.graphModel,l=a.nodeModel,d=a.anchorData,u=Ve({x:t,y:r},s);if(u){var f=u.node,c=u.anchor.id;if(this.preTargetNode&&this.preTargetNode!==u.node&&this.preTargetNode.setElementState(B.DEFAULT),d.id===c)return;this.preTargetNode=f;var h="".concat(l.id,"_").concat(f.id,"_").concat(c,"_").concat(d.id);if(!this.targetRuleResults.has(h)){var y=u.anchor,p=l.isAllowConnectedAsSource(f,d,y),g=f.isAllowConnectedAsTarget(l,d,y);this.sourceRuleResults.set(h,Ke(p)),this.targetRuleResults.set(h,Ke(g))}var v=((o=this.sourceRuleResults.get(h))!==null&&o!==void 0?o:{}).isAllPass,_=((i=this.targetRuleResults.get(h))!==null&&i!==void 0?i:{}).isAllPass;v&&_?f.setElementState(B.ALLOW_CONNECT):f.setElementState(B.NOT_ALLOW_CONNECT)}else this.preTargetNode&&this.preTargetNode.state!==B.DEFAULT&&this.preTargetNode.setElementState(B.DEFAULT)},e.prototype.isShowLine=function(){var t=this.state,r=t.startX,o=t.startY,i=t.endX,a=t.endY,s=pt(r,o,i,a);return s>10},e.prototype.render=function(){var t=this,r=this.state,o=r.startX,i=r.startY,a=r.endX,s=r.endY,l=this.props,d=l.anchorData.edgeAddable,u=l.edgeStyle;return x("g",{className:"lf-anchor",children:[x("g",{onMouseDown:function(f){d!==!1&&t.dragHandler.handleMouseDown(f)},children:this.getAnchorShape()}),this.isShowLine()&&(this.customTrajectory?this.customTrajectory(yt({sourcePoint:{x:o,y:i},targetPoint:{x:a,y:s}},u)):x(ee,yt({x1:o,y1:i,x2:a,y2:s},u,{"pointer-events":"none"})))]})},e}(V),Ja=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Cr=function(){return Cr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},lo=function(n){ts(e,n);function e(t){var r=n.call(this)||this;r.mouseDownHandler=function(i){var a=r.props,s=a.draggable,l=a.model,d=a.graphModel,u=d.editConfigModel.nodeTextDraggable;(s??u)&&(r.stepperDrag.model=l,r.stepperDrag.handleMouseDown(i))},r.onDragging=function(i){var a=i.deltaX,s=i.deltaY,l=r.props,d=l.model,u=l.graphModel.transformModel;if(a&&s){var f=es(u.fixDeltaXY(a,s),2),c=f[0],h=f[1];d.moveText(c,h)}},r.dbClickHandler=function(){var i=r.props,a=i.editable,s=i.graphModel.eventCenter,l=i.model;a&&l.setElementState(B.TEXT_EDIT),s.emit(T.TEXT_DBCLICK,{data:l.text,model:l})};var o=t.draggable;return r.stepperDrag=new xt({onDragging:r.onDragging,step:1,eventType:"TEXT",isStopPropagation:o}),r}return e.prototype.getShape=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=r.text,s=a.value,l=a.x,d=a.y,u=a.editable,f=a.draggable,c={x:l,y:d,className:"",value:s},h=r.getTextStyle(),y=i.nodeTextDraggable||f;return x(no,Lr({},c,h,{className:Po({"lf-element-text":u,"lf-text-draggable":!u&&y,"lf-text-disabled":!u&&!y}),model:r}))},e.prototype.render=function(){var t=this.props.model.text;if(t)return x("g",{onMouseDown:this.mouseDownHandler,onDblClick:this.dbClickHandler,children:this.getShape()})},e}(V),rs=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ut=function(){return ut=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},ns=function(n){rs(e,n);function e(t){var r=n.call(this,t)||this;return r.setHoverOn=function(){r.setState({isHovered:!0})},r.setHoverOff=function(){r.setState({isHovered:!1})},r.state={isHovered:!1},r}return e.prototype.getBackground=function(){var t=this.state.isHovered,r=this.props.model,o=r.text,i=r.getTextStyle(),a=i.background||{};if(t&&i.hover&&i.hover.background&&(a=ut(ut({},a),i.hover.background)),o!=null&&o.value&&(a==null?void 0:a.fill)!=="transparent"){var s=i.fontSize,l=i.textWidth,d=i.lineHeight,u=i.overflowMode,f=a.wrapPadding,c=o==null?void 0:o.value.split(/[\r\n]/g),h=c.length,y=o.x,p=o.y,g={};if(u==="autoWrap"&&l){var v=eo({rows:c,style:{fontSize:"".concat(s,"px"),width:"".concat(l,"px"),lineHeight:d,padding:f},rowsLength:h,className:"lf-get-text-height"});g=ut(ut({},a),{x:y,y:p,width:l,height:v})}else{var _=ni({rows:c,rowsLength:h,fontSize:s}),M=_.width,S=_.height;if(u==="ellipsis"&&(M=l,S=s+2),typeof a.wrapPadding=="string"){var O=a.wrapPadding.split(",").filter(function(et){return et.trim()}).map(function(et){return parseFloat(et.trim())});if(O.length>0&&O.length<=4){if(O.length===1){var w=He(O,1),A=w[0];O=[A,A,A,A]}else if(O.length===2){var L=He(O,2),I=L[0],b=L[1];O=[I,b,I,b]}else if(O.length===3){var G=He(O,3),R=G[0],b=G[1],Y=G[2];O=[R,b,Y,b]}var H=He(O,4),nt=H[0],st=H[1],Ct=H[2],Yt=H[3];M+=st+Yt,S+=nt+Ct,y=y+(st-Yt)/2,p=p+(Ct-nt)/2}}g=ut(ut({},a),{x:y-1,y:p-1,width:M,height:S})}return x(mt,ut({},g))}return null},e.prototype.getShape=function(){var t=this.props.model,r=t.text,o=r.x,i=r.y,a=r.value;if(!a)return null;var s=t.getTextStyle(),l=ut({x:o,y:i,value:a,model:t,className:"lf-element-text"},s);return x("g",{className:"lf-line-text",onMouseEnter:this.setHoverOn,onMouseLeave:this.setHoverOff,children:[this.getBackground(),x(no,ut({},l))]})},e}(lo),os=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Qe=function(){return Qe=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},bt=function(n){os(e,n);function e(t){var r=n.call(this)||this;r.onDragStart=function(l){var d=l.event,u=r.props,f=u.model,c=u.graphModel;if(d){var h=c.getPointByClient({x:d.clientX,y:d.clientY}).canvasOverlayPosition,y=h.x,p=h.y;r.moveOffset={dx:f.x-y,dy:f.y-p}}},r.onDragging=function(l){var d,u,f,c,h=l.event,y=r.props,p=y.model,g=y.graphModel,v=g.editConfigModel,_=v.stopMoveGraph,M=v.autoExpand,S=g.transformModel,O=g.selectNodes,w=g.width,A=g.height,L=g.gridSize;p.isDragging=!0;var I=h,b=I.clientX,G=I.clientY,R=g.getPointByClient({x:b,y:G}).canvasOverlayPosition,Y=R.x,H=R.y,nt=ke(S.CanvasPointToHtmlPoint([Y,H]),2),st=nt[0],Ct=nt[1];if(Y=Y+((u=(d=r.moveOffset)===null||d===void 0?void 0:d.dx)!==null&&u!==void 0?u:0),H=H+((c=(f=r.moveOffset)===null||f===void 0?void 0:f.dy)!==null&&c!==void 0?c:0),Y=te(Y,L),H=te(H,L),!w||!A){g.moveNode2Coordinate(p.id,Y,H);return}var Yt=st<0||Ct<0||st>w||Ct>A;if(!(M&&!_&&Yt)){var et=ke(S.CanvasPointToHtmlPoint([Y-p.width/2,H-p.height/2]),2),Et=et[0],ne=et[1],Ae=ke(S.CanvasPointToHtmlPoint([Y+p.width/2,H+p.height/2]),2),ar=Ae[0],sr=Ae[1],Pe=Math.max(L,20),Ht=[];Et<0?Ht=[Pe,0]:ar>g.width?Ht=[-Pe,0]:ne<0?Ht=[0,Pe]:sr>g.height&&(Ht=[0,-Pe]),r.t&&qe(r.t),p.transform=new nr(-Y,-H).rotate(p.rotate).translate(Y,H).toString();var Te=O.map(function(Ne){return Ne.id});Te.indexOf(p.id)===-1&&(Te=[p.id]),Ht.length>0&&!_&&M?r.t=ro(function(){var Ne=ke(Ht,2),kt=Ne[0],zt=Ne[1];S.translate(kt??0,zt??0);var uo=-(kt??0)/S.SCALE_X,fo=-(zt??0)/S.SCALE_X;g.moveNodes(Te,uo,fo)}):g.moveNodes(Te,Y-p.x,H-p.y)}},r.onDragEnd=function(){r.t&&qe(r.t);var l=r.props.model;l.isDragging=!1},r.onMouseOut=function(l){Lo()&&r.setHoverOff(l)},r.handleMouseUp=function(){var l=r.props.model;r.mouseUpDrag=l.isDragging},r.handleClick=function(l){var d=r.mouseUpDrag===!1;if(r.startTime){var u=r.props,f=u.model,c=u.graphModel;if(d){var h=f.getData(),y=c.getPointByClient({x:l.clientX,y:l.clientY}),p={data:h,e:l,position:y,isSelected:!1,isMultiple:!1},g=l.button===2,v=l.detail===2;if(!g){var _=c.editConfigModel,M=Qn(l,_);p.isMultiple=M,f.isSelected&&!v&&M?(p.isSelected=!1,f.setSelected(!1)):(c.selectNodeById(f.id,M),p.isSelected=!0,r.toFront()),v?(_.nodeTextEdit&&f.text.editable&&(f.setSelected(!1),c.setElementStateById(f.id,B.TEXT_EDIT)),c.eventCenter.emit(T.NODE_DBCLICK,p)):(c.eventCenter.emit(T.ELEMENT_CLICK,p),c.eventCenter.emit(T.NODE_CLICK,p))}}}},r.handleContextMenu=function(l){l.preventDefault();var d=r.props,u=d.model,f=d.graphModel,c=u.getData(),h=f.getPointByClient({x:l.clientX,y:l.clientY});f.setElementStateById(u.id,B.SHOW_MENU,h.domOverlayPosition),u.isSelected||f.selectNodeById(u.id),f.eventCenter.emit(T.NODE_CONTEXTMENU,{data:c,e:l,position:h}),r.toFront()},r.handleMouseDown=function(l){var d=r.props,u=d.model,f=d.graphModel;r.startTime=new Date().getTime();var c=f.editConfigModel;c.adjustNodePosition&&u.draggable&&r.stepDrag&&r.stepDrag.handleMouseDown(l)},r.setHoverOn=function(l){var d=r.props,u=d.model,f=d.graphModel;if(!u.isHovered){var c=u.getData();u.setHovered(!0),f.eventCenter.emit(T.NODE_MOUSEENTER,{data:c,e:l})}},r.setHoverOff=function(l){var d=r.props,u=d.model,f=d.graphModel,c=u.getData();u.isHovered&&(u.setHovered(!1),f.eventCenter.emit(T.NODE_MOUSELEAVE,{data:c,e:l}))};var o=t.graphModel,i=o.gridSize,a=o.eventCenter,s=t.model;return r.stepDrag=new xt({onDragStart:r.onDragStart,onDragging:r.onDragging,onDragEnd:r.onDragEnd,step:i,eventType:"NODE",isStopPropagation:!1,eventCenter:a,model:s}),r.modelDisposer=wo(function(){return r.props},function(l){l&&l.model&&r.stepDrag.setModel(l.model)}),r}return e.prototype.componentWillUnmount=function(){this.modelDisposer&&this.modelDisposer()},e.prototype.componentDidMount=function(){},e.prototype.componentDidUpdate=function(){},e.prototype.getAnchorShape=function(t){return null},e.prototype.getAnchors=function(){var t=this,r=this.props,o=r.model,i=r.graphModel,a=o.isSelected,s=o.isHitable,l=o.isDragging,d=o.isShowAnchor;return s&&(a||d)&&!l?Ot(o.anchors,function(u,f){var c=o.getAnchorLineStyle(u),h=o.getAnchorStyle(u);return x(qa,{anchorData:u,node:t,style:h,edgeStyle:c,anchorIndex:f,nodeModel:o,graphModel:i,setHoverOff:t.setHoverOff})}):[]},e.prototype.getRotateControl=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=i.isSilentMode,s=i.allowRotate,l=r.isSelected,d=r.isHitable,u=r.rotatable,f=r.isHovered,c=s&&u,h=r.getRotateControlStyle();if(!a&&d&&(l||f)&&c)return x(Qa,{graphModel:o,nodeModel:r,eventCenter:o.eventCenter,style:h})},e.prototype.getResizeControl=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=i.isSilentMode,s=i.allowResize,l=r.isSelected,d=r.isHitable,u=r.resizable,f=r.isHovered,c=s&&u,h=r.getResizeControlStyle();return!a&&d&&(l||f)&&c?x(Ai,{style:h,model:r,graphModel:o}):null},e.prototype.getText=function(){var t,r=this.props,o=r.model,i=r.graphModel,a=i.editConfigModel;if(a.nodeTextMode!==ht.TEXT||o.state===B.TEXT_EDIT)return null;if(o.text){var s=!1;return a.nodeTextDraggable&&o.text.draggable&&(s=!0),x(lo,{editable:a.nodeTextEdit&&((t=o.text.editable)!==null&&t!==void 0?t:!0),model:o,graphModel:i,draggable:s})}return null},e.prototype.getStateClassName=function(){var t=this.props.model,r=t.state,o=t.isDragging,i=t.isSelected,a="lf-node";switch(r){case B.ALLOW_CONNECT:a+=" lf-node-allow";break;case B.NOT_ALLOW_CONNECT:a+=" lf-node-not-allow";break;default:a+=" lf-node-default";break}return o&&(a+=" lf-dragging"),i&&(a+=" lf-node-selected"),a},e.prototype.toFront=function(){var t=this.props,r=t.model,o=t.graphModel;r.autoToFront&&o.toFront(r.id)},e.prototype.render=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=i.hideAnchors,s=i.adjustNodePosition,l=i.allowRotate,d=i.allowResize,u=o.gridSize,f=o.transformModel.SCALE_X,c=r.isHitable,h=r.draggable,y=r.transform,p=r.getOuterGAttributes(),g=p.className,v=g===void 0?"":g,_=is(p,["className"]),M=x("g",{className:"lf-node-content",children:[x("g",{transform:y,children:[this.getShape(),this.getText(),l&&this.getRotateControl(),d&&this.getResizeControl()]}),!a&&this.getAnchors()]}),S;return c?(s&&h&&this.stepDrag.setStep(u*f),S=x("g",Qe({className:"".concat(this.getStateClassName()," ").concat(v),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick,onMouseEnter:this.setHoverOn,onMouseOver:this.setHoverOn,onMouseLeave:this.setHoverOff,onMouseOut:this.onMouseOut,onContextMenu:this.handleContextMenu},_,{children:M}))):S=x("g",Qe({className:"".concat(this.getStateClassName()," ").concat(v)},_,{children:M})),S},e.isObserved=!1,e}(V),as=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),jr=function(){return jr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},hs=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},_t;(function(n){n.SOURCE="SOURCE",n.TARGET="TARGET"})(_t||(_t={}));var Xn=function(n){vs(e,n);function e(t){var r=n.call(this)||this;r.handleMouseDown=function(l){r.stepDrag&&r.stepDrag.handleMouseDown(l)},r.onDragStart=function(){var l=r.props,d=l.x,u=l.y,f=l.edgeModel,c=f.startPoint,h=f.endPoint,y=f.pointsList;r.oldEdge={startPoint:c,endPoint:h,pointsList:y},r.setState({endX:d,endY:u,dragging:!0})},r.onDragging=function(l){var d=l.deltaX,u=l.deltaY,f=r.state,c=f.endX,h=f.endY,y=r.props,p=y.graphModel,g=y.type,v=p.transformModel,_=p.editConfigModel,M=gs(v.moveCanvasPointByHtml([c,h],d,u),2),S=M[0],O=M[1];r.setState({endX:S,endY:O,dragging:!0});var w=r.props.edgeModel,A=Ve({x:c,y:h},p);if(A&&A.node&&r.isAllowAdjust(A).pass){var L=w.startPoint,I=w.endPoint,b=w.sourceNode,G=w.targetNode,R=g===_t.SOURCE?{startPoint:{x:A.anchor.x,y:A.anchor.y},endPoint:{x:I.x,y:I.y},sourceNode:A.node,targetNode:G}:{startPoint:{x:L.x,y:L.y},endPoint:{x:A.anchor.x,y:A.anchor.y},sourceNode:b,targetNode:A.node};w.updateAfterAdjustStartAndEnd(R)}else g===_t.SOURCE?w.updateStartPoint({x:S,y:O}):w.updateEndPoint({x:S,y:O});w.text.value&&_.adjustEdge&&w.setText(Object.assign({},w.text,w.textPosition))},r.onDragEnd=function(l){var d,u,f,c=l.event;try{r.setState({dragging:!1});var h=r.props,y=h.graphModel,p=h.edgeModel,g=h.type,v=r.state,_=v.endX,M=v.endY,S=v.dragging,O=Ve({x:_,y:M},y);if(!S)return;var w=!1,A=void 0;if(O&&O.node){var L=r.isAllowAdjust(O),I=L.pass,b=L.msg,G=L.newTargetNode;if(I){var R=p.getData(),Y=R.text,H=R.sourceAnchorId,nt=H===void 0?"":H,st=R.targetAnchorId,Ct=st===void 0?"":st,Yt=ys(R,["text","sourceAnchorId","targetAnchorId"]);if(A=ft(ft({sourceAnchorId:nt,targetAnchorId:Ct},Yt),{text:(Y==null?void 0:Y.value)||""}),g===_t.SOURCE){var et=y.getNodeModelById(O.node.id),Et=y.getNodeModelById(p.targetNodeId),ne=(d=y.edgeGenerator)===null||d===void 0?void 0:d.call(y,et==null?void 0:et.getData(),Et==null?void 0:Et.getData(),A);A=ft(ft({},ne),{sourceNodeId:O.node.id,sourceAnchorId:O.anchor.id,startPoint:{x:O.anchor.x,y:O.anchor.y},targetNodeId:p.targetNodeId,endPoint:ft({},p.endPoint)}),p.sourceNodeId===O.node.id&&p.sourceAnchorId===O.anchor.id&&(w=!0)}else if(g===_t.TARGET){var et=y.getNodeModelById(p.sourceNodeId),Et=y.getNodeModelById(O.node.id),ne=(u=y.edgeGenerator)===null||u===void 0?void 0:u.call(y,et==null?void 0:et.getData(),Et==null?void 0:Et.getData(),A);A=ft(ft({},ne),{sourceNodeId:p.sourceNodeId,startPoint:ft({},p.startPoint),targetNodeId:O.node.id,targetAnchorId:O.anchor.id,endPoint:{x:O.anchor.x,y:O.anchor.y}}),p.targetNodeId===O.node.id&&p.targetAnchorId===O.anchor.id&&(w=!0)}}else{w=!0;var Ae=G.getData();y.eventCenter.emit(T.CONNECTION_NOT_ALLOWED,{data:Ae,msg:b})}}else w=!0;if(w)r.recoveryEdge();else{var ar=p.getData();y.deleteEdgeById(p.id);var sr=y.addEdge(ft({},A));y.eventCenter.emit(T.EDGE_EXCHANGE_NODE,{data:{newEdge:sr.getData(),oldEdge:ar}})}(f=r.preTargetNode)===null||f===void 0||f.setElementState(B.DEFAULT)}finally{var y=r.props.graphModel;y.eventCenter.emit(T.ADJUST_POINT_DRAGEND,{e:c,data:r.stepDragData})}},r.recoveryEdge=function(){var l=r.props.edgeModel,d=r.oldEdge,u=d.startPoint,f=d.endPoint,c=d.pointsList;l.updateStartPoint(u),l.updateEndPoint(f),l.modelType!==j.LINE_EDGE&&(l.pointsList=c??[],l.initPoints())},r.getAdjustPointStyle=function(){var l=r.props.graphModel.theme,d=l.edgeAdjust;return d},r.state={dragging:!1,endX:0,endY:0},r.targetRuleResults=new Map,r.sourceRuleResults=new Map;var o=t.type,i=t.edgeModel,a=t.graphModel,s=a.eventCenter;return r.stepDragData={type:o,edgeData:i.getData()},r.stepDrag=new xt({onDragStart:r.onDragStart,onDragging:r.onDragging,onDragEnd:r.onDragEnd,eventType:"ADJUST_POINT",isStopPropagation:!1,eventCenter:s,data:r.stepDragData}),r}return e.prototype.isAllowAdjust=function(t){var r=this.props,o=r.edgeModel,i=o.id,a=o.sourceNode,s=o.targetNode,l=o.sourceAnchorId,d=o.targetAnchorId,u=r.type,f,c,h,y;if(u===_t.SOURCE?(f=t.node,c=s,h=t.anchor,y=s.getAnchorInfo(d)):(f=a,c=t.node,y=t.anchor,h=a.getAnchorInfo(l)),this.preTargetNode&&this.preTargetNode!==t.node&&this.preTargetNode.setElementState(B.DEFAULT),this.preTargetNode=t.node,y.id===h.id)return{pass:!1,msg:"",newTargetNode:c};var p="".concat(f.id,"_").concat(c.id,"_").concat(h.id,"_").concat(y.id);if(!this.targetRuleResults.has(p)){var g=f.isAllowConnectedAsSource(c,h,y,i),v=c.isAllowConnectedAsTarget(f,h,y,i);this.sourceRuleResults.set(p,Ke(g)),this.targetRuleResults.set(p,Ke(v))}var _=this.sourceRuleResults.get(p),M=_.isAllPass,S=_.msg,O=this.targetRuleResults.get(p),w=O.isAllPass,A=O.msg,L=M&&w?B.ALLOW_CONNECT:B.NOT_ALLOW_CONNECT;return u===_t.SOURCE?f.setElementState(L):c.setElementState(L),{pass:M&&w,msg:A||S,newTargetNode:c}},e.prototype.render=function(){var t=this.props,r=t.x,o=t.y,i=t.getAdjustPointShape,a=t.edgeModel,s=this.state.dragging;return x("g",{pointerEvents:s?"none":"",onMouseDown:this.handleMouseDown,children:s?"":i(r,o,a)})},e}(V),_s=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Yr=function(){return Yr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},ir=function(n){ms(e,n);function e(){var t=n.call(this)||this;return t.textRef=Fr(),t.handleHover=function(r,o){var i=t.props,a=i.model,s=i.graphModel.eventCenter;a.setHovered(r);var l=r?T.EDGE_MOUSEENTER:T.EDGE_MOUSELEAVE,d=a.getData();s.emit(l,{data:d,e:o})},t.setHoverOn=function(r){var o=t.props.model.isHovered;o||(t.textRef&&t.textRef.current&&t.textRef.current.setHoverOn(),t.handleHover(!0,r))},t.setHoverOff=function(r){var o=t.props.model.isHovered;o&&(t.textRef&&t.textRef.current&&t.textRef.current.setHoverOff(),t.handleHover(!1,r))},t.handleContextMenu=function(r){r.preventDefault(),t.contextMenuTime=new Date().getTime(),t.clickTimer&&clearTimeout(t.clickTimer);var o=t.props,i=o.model,a=o.graphModel,s=a.getPointByClient({x:r.clientX,y:r.clientY});a.setElementStateById(i.id,B.SHOW_MENU,s.domOverlayPosition),t.toFront(),i.isSelected||a.selectEdgeById(i.id);var l=i==null?void 0:i.getData();a.eventCenter.emit(T.EDGE_CONTEXTMENU,{data:l,e:r,position:s})},t.handleMouseDown=function(r){r.stopPropagation(),t.startTime=new Date().getTime()},t.handleMouseUp=function(r){if(t.startTime){var o=new Date().getTime()-t.startTime;if(!(o>200)){var i=r.button===2;if(!i){var a=r.detail===2,s=t.props,l=s.model,d=s.graphModel,u=l==null?void 0:l.getData(),f=d.getPointByClient({x:r.clientX,y:r.clientY});if(a){var c=d.editConfigModel,h=d.textEditElement,y=l.id,p=l.text,g=l.modelType;if(h&&h.id===y&&d.setElementStateById(y,B.DEFAULT),c.edgeTextEdit&&p.editable&&(l.setSelected(!1),d.setElementStateById(y,B.TEXT_EDIT)),g===j.POLYLINE_EDGE){var v=l,_=d.getPointByClient({x:r.x,y:r.y}).canvasOverlayPosition,M=_.x,S=_.y;v.dbClickPosition=Jn({x:M,y:S},v.points)}d.eventCenter.emit(T.EDGE_DBCLICK,{data:u,e:r,position:f})}else d.eventCenter.emit(T.ELEMENT_CLICK,{data:u,e:r,position:f}),d.eventCenter.emit(T.EDGE_CLICK,{data:u,e:r,position:f});var O=d.editConfigModel;d.selectEdgeById(l.id,Qn(r,O)),t.toFront()}}}},t}return e.prototype.getShape=function(){return x("g",{children:this.getEdge()})},e.prototype.getTextStyle=function(){},e.prototype.getText=function(){var t,r=this.props,o=r.model,i=r.graphModel,a=i.editConfigModel;if(a.edgeTextMode!==ht.TEXT||o.state===B.TEXT_EDIT)return null;if(o.text){var s=!1;return a.edgeTextDraggable&&o.text.draggable&&(s=!0),x(ns,{ref:this.textRef,editable:a.edgeTextEdit&&((t=o.text.editable)!==null&&t!==void 0?t:!0),model:o,graphModel:i,draggable:s})}return null},e.prototype.getArrowInfo=function(){var t=this.props.model,r=t.startPoint,o=t.endPoint,i=t.isSelected,a=this.state.hover;return{start:r,end:o,hover:a,isSelected:i}},e.prototype.getLastTwoPoints=function(){var t=this.props.model,r=t.startPoint,o=t.endPoint;return[r,o]},e.prototype.getArrowStyle=function(){return console.error("getArrowStyle is deprecated in 1.2.0, please use model.getArrowStyle"),null},e.prototype.getArrow=function(){var t=this.props.model,r=t.id,o=t.getArrowStyle(),i=o.refY,a=i===void 0?0:i,s=o.refX,l=s===void 0?2:s,d=xs(this.getLastTwoPoints(),2),u=d[0],f=d[1],c="auto";return u!==null&&f!==null&&(c=Gi(zi({x:f.x-u.x,y:f.y-u.y,z:0}))),x("g",{children:x("defs",{children:[x("marker",{id:"marker-start-".concat(r),refX:-l,refY:a,overflow:"visible",orient:"auto",markerUnits:"userSpaceOnUse",children:this.getStartArrow()}),x("marker",{id:"marker-end-".concat(r),refX:l,refY:a,overflow:"visible",orient:c,markerUnits:"userSpaceOnUse",children:this.getEndArrow()})]})})},e.prototype.getStartArrow=function(){return x("path",{})},e.prototype.getEndArrow=function(){var t=this.props.model,r=t.getArrowStyle(),o=r.stroke,i=r.strokeWidth,a=r.offset,s=r.verticalLength;return x("path",{stroke:o,fill:o,strokeWidth:i,transform:"rotate(180)",d:"M 0 0 L ".concat(a," -").concat(s," L ").concat(a," ").concat(s," Z")})},e.prototype.getAdjustPointShape=function(t,r,o){var i=o.getAdjustPointStyle();return x(re,ge({className:"lf-edge-adjust-point"},i,{x:t,y:r}))},e.prototype.getAdjustPoints=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=i.adjustEdgeStartAndEnd,s=i.adjustEdgeStart,l=i.adjustEdgeEnd,d=r.getAdjustStart(),u=r.getAdjustEnd();return x("g",{children:[a&&s&&x(Xn,ge({type:_t.SOURCE},d,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:r,graphModel:o})),a&&l&&x(Xn,ge({type:_t.TARGET},u,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:r,graphModel:o}))]})},e.prototype.getAnimation=function(){console.error("getAnimation is deprecated in 1.2.0, please use model.getEdgeAnimationStyle")},e.prototype.getAppendWidth=function(){return x("g",{})},e.prototype.getAppend=function(){return x("g",{className:"lf-edge-append",children:this.getAppendWidth()})},e.prototype.getEdge=function(){return null},e.prototype.toFront=function(){var t=this.props,r=t.graphModel,o=t.model;r.toFront(o.id)},e.prototype.render=function(){var t=this.props.model,r=t.isSelected,o=t.isHitable,i=t.isShowAdjustPoint;return x("g",{children:[x("g",{className:["lf-edge",!o&&"pointer-none",r&&"lf-edge-selected"].filter(Boolean).join(" "),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onContextMenu:this.handleContextMenu,onMouseOver:this.setHoverOn,onMouseEnter:this.setHoverOn,onMouseLeave:this.setHoverOff,children:[this.getShape(),this.getAppend(),this.getText(),this.getArrow()]}),i&&r?this.getAdjustPoints():""]})},e.isObserved=!1,e}(V),Es=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Hr=function(){return Hr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Yn=function(n){Es(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getEdge=function(){var t=this.props.model,r=t.getEdgeStyle(),o=t,i=o.path,a=o.isAnimation,s=o.arrowConfig,l=t.getEdgeAnimationStyle(),d=l.strokeDasharray,u=l.stroke,f=l.strokeDashoffset,c=l.animationName,h=l.animationDuration,y=l.animationIterationCount,p=l.animationTimingFunction,g=l.animationDirection;return x(Oe,Hr({d:i},r,s,a?{strokeDasharray:d,stroke:u,style:{strokeDashoffset:f,animationName:c,animationDuration:h,animationIterationCount:y,animationTimingFunction:p,animationDirection:g}}:{}))},e.prototype.getAppendWidth=function(){var t=this.props.model.path;return x(Oe,{d:t,strokeWidth:10,stroke:"transparent",fill:"none"})},e.prototype.getArrowInfo=function(){var t=this.props.model,r=this.state.hover,o=t.isSelected,i=t.getArrowStyle().offset,a=t.pointsList.map(function(f){return{x:f.x,y:f.y}}),s=Ms(ln(a,i),2),l=s[0],d=s[1],u={start:l,end:d,hover:r,isSelected:o};return u},e.prototype.getLastTwoPoints=function(){var t=this.props.model,r=t.getArrowStyle().offset,o=t.pointsList.map(function(i){return{x:i.x,y:i.y}});return ln(o,r)},e}(ir),Os=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),kr=function(){return kr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},kn=function(n){Ss(e,n);function e(){var t=n.call(this)||this;return t.onDragStart=function(){var r=t.props.model;r.dragAppendStart(),t.isShowAdjustPointTemp=r.isShowAdjustPoint,r.isShowAdjustPoint=!1},t.onDragging=function(r){var o=r.deltaX,i=r.deltaY,a=t.props,s=a.model,l=a.graphModel;t.isDragging=!0;var d=l.transformModel,u=l.editConfigModel,f=ws(d.fixDeltaXY(o,i),2),c=f[0],h=f[1],y=s,p=u.adjustEdgeMiddle;p?t.appendInfo=y.dragAppendSimple(t.appendInfo,{x:c,y:h}):t.appendInfo=y.dragAppend(t.appendInfo,{x:c,y:h})},t.onDragEnd=function(){var r,o=t.props,i=o.model,a=o.graphModel.eventCenter,s=i;s.dragAppendEnd(),t.isDragging=!1,s.isShowAdjustPoint=(r=t.isShowAdjustPointTemp)!==null&&r!==void 0?r:!1,t.appendInfo=void 0,a.emit(T.EDGE_ADJUST,{data:s.getData()})},t.beforeDragStart=function(r,o){o.draggable&&t.drag.handleMouseDown(r),t.appendInfo=o},t.drag=new xt({onDragStart:t.onDragStart,onDragging:t.onDragging,onDragEnd:t.onDragEnd,isStopPropagation:!1}),t}return e.prototype.getEdge=function(){var t=this.props.model,r=t.points,o=t.isAnimation,i=t.arrowConfig,a=t.getEdgeStyle(),s=t.getEdgeAnimationStyle(),l=s.strokeDasharray,d=s.stroke,u=s.strokeDashoffset,f=s.animationName,c=s.animationDuration,h=s.animationIterationCount,y=s.animationTimingFunction,p=s.animationDirection;return x(Mi,Rt({points:r},a,i,o?{strokeDasharray:l,stroke:d,style:{strokeDashoffset:u,animationName:f,animationDuration:c,animationIterationCount:h,animationTimingFunction:y,animationDirection:p}}:{}))},e.prototype.getArrowInfo=function(){var t=this.props.model,r=t.points,o=t.isSelected,i=this.state.hover,a=Xt(r),s=a[0],l=a[0];return a.length>=2&&(s=a[a.length-2],l=a[a.length-1]),{start:s,end:l,hover:i,isSelected:o}},e.prototype.getLastTwoPoints=function(){var t=this.props.model,r=t.points,o=Xt(r),i=o[0],a=o[0];return o.length>=2&&(i=o[o.length-2],a=o[o.length-1]),[i,a]},e.prototype.getAppendAttributes=function(t){var r=t.start,o=t.end,i;if(r.x===o.x&&r.y===o.y)i="";else{var a={start:r,end:o,offset:10,verticalLength:5},s=xe(Rt(Rt({},a),{type:"start"})),l=xe(Rt(Rt({},a),{type:"end"}));i="M".concat(s.leftX," ").concat(s.leftY,` + L`).concat(s.rightX," ").concat(s.rightY,` + L`).concat(l.rightX," ").concat(l.rightY,` + L`).concat(l.leftX," ").concat(l.leftY," z")}return{d:i,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},e.prototype.getAppendShape=function(t){var r=this.getAppendAttributes(t),o=r.d,i=r.strokeWidth,a=r.fill,s=r.strokeDasharray,l=r.stroke;return x(Oe,{d:o,fill:a,strokeWidth:i,stroke:l,strokeDasharray:s})},e.prototype.getAppendWidth=function(){for(var t=this,r=this.props,o=r.model,i=r.graphModel,a=o.pointsList,s=o.draggable,l=[],d=a.length,u=function(h){var y="lf-polyline-append",p={start:{x:a[h].x,y:a[h].y},end:{x:a[h+1].x,y:a[h+1].y},startIndex:h,endIndex:h+1,direction:F.HORIZONTAL,draggable:!0},g=x("g",{className:y,children:f.getAppendShape(p)}),v=i.editConfigModel,_=v.adjustEdge,M=v.adjustEdgeMiddle;if(_&&s){var S=p.startIndex,O=p.endIndex,w=M&&(S===0||O===d-1);p.draggable=!w,p.start.x===p.end.x?(p.draggable&&(y+="-ew-resize"),p.direction=F.VERTICAL):p.start.y===p.end.y&&(p.draggable&&(y+="-ns-resize"),p.direction=F.HORIZONTAL),g=x("g",{className:f.isDragging?"lf-dragging":"lf-drag-able",onMouseDown:function(A){return t.beforeDragStart(A,p)},children:x("g",{className:y,children:f.getAppendShape(p)})})}l.push(g)},f=this,c=0;c=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ds=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},bs=function(n){Ts(e,n);function e(t){var r=n.call(this,t)||this;return r.ref=Fr(),r.__prevText={type:"",text:"",id:""},r.keyupHandler=function(o){var i=r.props.graphModel.textEditElement;o.key==="Enter"&&o.altKey&&(i==null||i.setElementState(B.DEFAULT))},r.inputHandler=function(o){var i=o.target.innerText,a=r.props.graphModel.textEditElement;a&&(r.__prevText={type:a.type,text:i.replace(/(\r\n)+$|(\n)+$/,""),id:a.id})},r.keydownHandler=function(o){o.stopPropagation()},r.state={style:{left:0,top:0}},r}return e.getDerivedStateFromProps=function(t){var r,o=t.textEditElement,i=t.graphModel,a=i.transformModel,s=i.theme,l=s.inputText,d;if(o){if(!(!((r=o.text)===null||r===void 0)&&r.value)&&o.BaseType===U.EDGE){var u=o.text,f=o.textPosition,c=f.x,h=f.y;u.x=c,u.y=h,o.setText(u)}var y={resize:"auto",whiteSpace:"normal",wordBreak:"break-all"};if(o.BaseType===U.EDGE){var p=s.edgeText,g=p.overflowMode,v=p.lineHeight,_=p.wrapPadding,M=p.textWidth;M&&g==="autoWrap"&&(d=Mt(Mt({},y),{width:M,minWidth:M,lineHeight:v,padding:_}))}else if(o.BaseType===U.NODE){var S=s.nodeText,g=S.overflowMode,v=S.lineHeight,_=S.wrapPadding,M=S.textWidth,O=o.width,w=o.modelType,A=o.textWidth,L=A||M||O;(w!==j.TEXT_NODE&&g==="autoWrap"||w===j.TEXT_NODE&&M)&&(d=Mt(Mt({},y),{width:L,minWidth:L,lineHeight:v,padding:_}))}var I=o.text,b=I.x,G=I.y,R=Ds(a.CanvasPointToHtmlPoint([b,G]),2),Y=R[0],H=R[1];return{style:Mt(Mt({left:Y,top:H},d),l)}}return null},e.prototype.componentDidUpdate=function(){var t=this.props.graphModel;if(this.ref.current&&(this.ref.current.focus(),this.placeCaretAtEnd(this.ref.current)),this.__prevText.id!==""){var r=this.__prevText,o=r.text,i=r.id;t.updateText(i,o),t.eventCenter.emit(T.TEXT_UPDATE,{data:Mt({},this.__prevText)}),this.__prevText.id="",this.__prevText.text="",this.__prevText.type=""}},e.prototype.placeCaretAtEnd=function(t){if(window.getSelection!==void 0&&document.createRange!==void 0){var r=document.createRange();r.selectNodeContents(t),r.collapse(!1);var o=window.getSelection();o==null||o.removeAllRanges(),o==null||o.addRange(r)}},e.prototype.render=function(){var t,r=this.props.graphModel.textEditElement,o=this.state.style;return r?x("div",{contentEditable:!0,className:"lf-text-input",style:o,ref:this.ref,onKeyUp:this.keyupHandler,onKeyDown:this.keydownHandler,onKeyPress:this.keydownHandler,onInput:this.inputHandler,children:(t=r.text)===null||t===void 0?void 0:t.value},r.id):null},e.toolName="text-edit-tool",e=Ns([at],e),e}(V),Cs=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Ls=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},hr=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},js=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Is=[bs,Rs],Bs=function(){function n(e){var t=this;this.toolMap=new Map,this.disabledToolMap=new Map,this.instance=e,W(Is,function(i){t.isDisabled(i.toolName)||t.registerTool(i.toolName,i)});var r=e.graphModel,o=r.eventCenter;o.on("".concat(T.GRAPH_TRANSFORM,",").concat(T.NODE_CLICK,",").concat(T.BLANK_CLICK," "),function(){var i,a=r.textEditElement,s=r.editConfigModel,l=s.edgeTextEdit,d=s.nodeTextEdit;(l||d)&&a&&((i=r.textEditElement)===null||i===void 0||i.setElementState(B.DEFAULT))})}return n.prototype.isDisabled=function(e){var t;return((t=this.instance.options.disabledTools)===null||t===void 0?void 0:t.indexOf(e))!==-1},n.prototype.registerTool=function(e,t){this.toolMap.set(e,t)},n.prototype.disableTool=function(e){var t=this.toolMap.get(e);if(t)return this.disabledToolMap.set(e,t),this.toolMap.delete(e),!0;throw new Error("禁用失败,不存在名为 ${tool} 的工具")},n.prototype.enableTool=function(e){var t=this.disabledToolMap.get(e);if(t)return this.toolMap.set(e,t),this.disabledToolMap.delete(e),!0;throw new Error("不存在名为 ${tool} 的工具")},n.prototype.getTools=function(){return Array.from(this.toolMap.values())},n.prototype.getInstance=function(){return this.instance},vr([E],n.prototype,"toolMap",void 0),vr([m],n.prototype,"disableTool",null),vr([m],n.prototype,"enableTool",null),n}(),zr=function(){return zr=Object.assign||function(n){for(var e,t=1,r=arguments.length;tthis.maxSize&&this.undos.shift())},n.prototype.undoAble=function(){return this.undos.length>1},n.prototype.undo=function(){if(this.undoAble()){var e=this.undos.pop();this.redos.push(e);var t=this.undos.pop();return this.curData=C(t),t}},n.prototype.redoAble=function(){return this.redos.length>0},n.prototype.redo=function(){if(this.redoAble()){var e=this.redos.pop();return this.curData=C(e),e}},n.prototype.watch=function(e){var t=this;this.stopWatch&&this.stopWatch(),this.undos.push(e.modelToGraphData()),this.stopWatch=No(e,xo(function(){var r=e.modelToHistoryData();r&&t.add(zr({},r))},this.waitTime))},n}();var vt=null;function zn(n,e){return n.x+=e,n.y+=e,Wn(n.text)||(n.text.x+=e,n.text.y+=e),n}function Gn(n,e){return n.startPoint&&(n.startPoint.x+=e,n.startPoint.y+=e),n.endPoint&&(n.endPoint.x+=e,n.endPoint.y+=e),n.pointsList&&n.pointsList.length>0&&n.pointsList.forEach(function(t){t.x+=e,t.y+=e}),Wn(n.text)||(n.text.x+=e,n.text.y+=e),n}var Wt=40,ze=40;function Ys(n,e){var t=n.keyboard,r=t.options.keyboard;t.on(["cmd + c","ctrl + c"],function(){if(ze=Wt,!(r!=null&&r.enabled)||e.textEditElement)return!0;var o=n.options.guards,i=e.getSelectElements(!1),a=o&&o.beforeClone?o.beforeClone(i):!0;return!a||i.nodes.length===0&&i.edges.length===0?(vt=null,!0):(vt=i,vt.nodes.forEach(function(s){return zn(s,Wt)}),vt.edges.forEach(function(s){return Gn(s,Wt)}),!1)}),t.on(["cmd + v","ctrl + v"],function(){if(!(r!=null&&r.enabled)||e.textEditElement)return!0;if(vt&&(vt.nodes||vt.edges)){n.clearSelectElements();var o=n.addElements(vt,ze);if(!o)return!0;o.nodes.forEach(function(i){return n.selectElementById(i.id,!0)}),o.edges.forEach(function(i){return n.selectElementById(i.id,!0)}),vt.nodes.forEach(function(i){return zn(i,Wt)}),vt.edges.forEach(function(i){return Gn(i,Wt)}),ze=ze+Wt}return!1}),t.on(["cmd + z","ctrl + z"],function(){return!(r!=null&&r.enabled)||e.textEditElement?!0:(n.undo(),!1)}),t.on(["cmd + y","ctrl + y"],function(){return!(r!=null&&r.enabled)||e.textEditElement?!0:(n.redo(),!1)}),t.on(["backspace"],function(){if(!(r!=null&&r.enabled)||e.textEditElement)return!0;var o=e.getSelectElements(!0);return n.clearSelectElements(),o.edges.forEach(function(i){return i.id&&n.deleteEdge(i.id)}),o.nodes.forEach(function(i){return i.id&&n.deleteNode(i.id)}),!1})}var Hs=function(){function n(e){e.keyboard||(e.keyboard={enabled:!1}),this.options=e;var t=e.lf;this.target=t.container,this.mousetrap=new To(this.target),e.keyboard.enabled&&!t.options.isSilentMode&&this.enable(!0)}return n.prototype.initShortcuts=function(){var e=this,t,r=((t=this.options.keyboard)!==null&&t!==void 0?t:{}).shortcuts;if(r)if(Eo(r))r.forEach(function(s){var l=s.keys,d=s.callback,u=s.action;return e.on(l,d,u)});else{var o=r.keys,i=r.callback,a=r.action;this.on(o,i,a)}},n.prototype.on=function(e,t,r){this.mousetrap.bind(this.getKeys(e),t,r)},Object.defineProperty(n.prototype,"disabled",{get:function(){var e,t;return((t=(e=this.options)===null||e===void 0?void 0:e.keyboard)===null||t===void 0?void 0:t.enabled)!==!0},enumerable:!1,configurable:!0}),n.prototype.off=function(e,t){this.mousetrap.unbind(this.getKeys(e),t)},n.prototype.enable=function(e){(this.disabled||e)&&(this.options.keyboard&&(this.options.keyboard.enabled=!0),this.target instanceof HTMLElement&&(this.target.setAttribute("tabindex","-1"),this.target.style.outline="none"))},n.prototype.disable=function(){this.disabled||(this.options.keyboard&&(this.options.keyboard.enabled=!1),this.target instanceof HTMLElement&&this.target.removeAttribute("tabindex"))},n.prototype.getKeys=function(e){var t=this;return(Array.isArray(e)?e:[e]).map(function(r){return t.formatKey(r)})},n.prototype.formatKey=function(e){return e.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command")},n}(),At=function(){return At=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},yr=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;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,Ar as f,ll as g,Pr as h,bt as i,cr 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}; +**/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-dom@3.5.12-ewSD1rNh.js b/js/@vue_runtime-dom@3.5.12-BKraWVUW.js similarity index 99% rename from js/@vue_runtime-dom@3.5.12-ewSD1rNh.js rename to js/@vue_runtime-dom@3.5.12-BKraWVUW.js index d7bb5f1b..cbcacc2c 100644 --- a/js/@vue_runtime-dom@3.5.12-ewSD1rNh.js +++ b/js/@vue_runtime-dom@3.5.12-BKraWVUW.js @@ -1,4 +1,4 @@ -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-Ds-HrVrM.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";/** +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 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.12-ewSD1rNh.js.gz b/js/@vue_runtime-dom@3.5.12-ewSD1rNh.js.gz deleted file mode 100644 index 075793b0..00000000 Binary files a/js/@vue_runtime-dom@3.5.12-ewSD1rNh.js.gz and /dev/null differ diff --git a/js/@vue_shared@3.5.12--5_uv9t5.js.gz b/js/@vue_shared@3.5.12--5_uv9t5.js.gz index 0e402c15..4501ee6e 100644 Binary files a/js/@vue_shared@3.5.12--5_uv9t5.js.gz and b/js/@vue_shared@3.5.12--5_uv9t5.js.gz differ diff --git a/js/@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js.gz b/js/@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js.gz deleted file mode 100644 index 3e653bd5..00000000 Binary files a/js/@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js.gz and /dev/null differ diff --git a/js/@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js b/js/@vueuse_core@11.1.0_vue@3.5.12-DNt1HURo.js similarity index 97% rename from js/@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js rename to js/@vueuse_core@11.1.0_vue@3.5.12-DNt1HURo.js index 85cb7191..5b257790 100644 --- a/js/@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js +++ b/js/@vueuse_core@11.1.0_vue@3.5.12-DNt1HURo.js @@ -1 +1 @@ -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-B9WpRTpD.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 te,j as L,k as ne,d as re}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.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,ye as d,Se as e,de 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-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,ye as d,de as e,Se as f,we as o,T as u}; diff --git a/js/@vueuse_core@11.1.0_vue@3.5.12-DNt1HURo.js.gz b/js/@vueuse_core@11.1.0_vue@3.5.12-DNt1HURo.js.gz new file mode 100644 index 00000000..94b979ef Binary files /dev/null and b/js/@vueuse_core@11.1.0_vue@3.5.12-DNt1HURo.js.gz differ diff --git a/js/@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js.gz b/js/@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js.gz deleted file mode 100644 index db576e16..00000000 Binary files a/js/@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js.gz and /dev/null differ diff --git a/js/@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js b/js/@vueuse_shared@11.1.0_vue@3.5.12-DnrABUGp.js similarity index 97% rename from js/@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js rename to js/@vueuse_shared@11.1.0_vue@3.5.12-DnrABUGp.js index 0d3bca1b..bb51c88e 100644 --- a/js/@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js +++ b/js/@vueuse_shared@11.1.0_vue@3.5.12-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.12-Bs6EYLxJ.js";import{k,n as D,w as x,d as C}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.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-DnrABUGp.js.gz b/js/@vueuse_shared@11.1.0_vue@3.5.12-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-DnrABUGp.js.gz differ diff --git a/js/BarcodeDemo-UEinYhgS.js b/js/BarcodeDemo-UEinYhgS.js new file mode 100644 index 00000000..3524f958 --- /dev/null +++ b/js/BarcodeDemo-UEinYhgS.js @@ -0,0 +1 @@ +import{E as a}from"./hooks-AGBWEt_R.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--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 c}from"./naive-ui@2.40.1_vue@3.5.12-i2yA9The.js";import{l as F,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-DNt1HURo.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-DnrABUGp.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./utils-DweTa4yD.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12-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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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}; diff --git a/js/BarcodeDemo-UEinYhgS.js.gz b/js/BarcodeDemo-UEinYhgS.js.gz new file mode 100644 index 00000000..22867d7c Binary files /dev/null and b/js/BarcodeDemo-UEinYhgS.js.gz differ diff --git a/js/BarcodeDemo-jWbBfNPc.js b/js/BarcodeDemo-jWbBfNPc.js deleted file mode 100644 index 2e6834f4..00000000 --- a/js/BarcodeDemo-jWbBfNPc.js +++ /dev/null @@ -1 +0,0 @@ -import{z as i}from"./hooks-DNoo5Jj5.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-C6aYKqdf.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 e,N as a,c as l,ag as p,I as s,L as n,a as c}from"./naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js";import{l as F,b as t,I as u}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as m}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./utils-DewQlJ2W.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_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.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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-ewSD1rNh.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-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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 mt=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(a,{title:"详细配置项说明"},{default:()=>[u("点击查看详细配置项:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/Options"},[u("js-barcode options")]),u("。")]})]}),t(e,{span:1},{default:()=>[t(a,{title:"基础条形码"},{default:()=>[t(i,{text:"RayTemplate",options:{...r}},null)]})]}),t(e,{span:1},{default:()=>[t(a,{title:"自定义颜色条形码"},{default:()=>[t(i,{text:"RayTemplate",options:{...r,lineColor:"red"}},null)]})]}),t(e,{span:1},{default:()=>[t(a,{title:"pharmacode 模式"},{default:()=>[t(l,{vertical:!0},{default:()=>[t(p,{type:"warning",title:"注意"},{default:()=>[u("该模式下,条形码只能渲染有效数值,否则将会渲染失败。可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/pharmacode"},[u("pharmacode")]),u("。")]}),t(i,{text:"1234",format:"pharmacode",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(a,{title:"codabar 模式"},{default:()=>[t(l,{vertical:!0},{default:()=>[t(p,{type:"warning",title:"注意"},{default:()=>[u("该模式下,需要注意 text 中的特殊字符,可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/codabar"},[u("codabar")]),u("。")]}),t(i,{text:"1234",format:"codabar",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(a,{title:"有状态的条形码"},{default:()=>[t(l,{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(i,{text:"RayTemplate",loading:this.loading},null)]})]})]}),t(e,{span:1},{default:()=>[t(a,{title:"watchText 主动监听 text 变化"},{default:()=>[t(l,{vertical:!0},{default:()=>[t(n,{value:this.text,"onUpdate:value":o=>this.text=o},null),t(i,{text:this.text,watchText:!0},null)]})]})]})]})}});export{mt as default}; diff --git a/js/BarcodeDemo-jWbBfNPc.js.gz b/js/BarcodeDemo-jWbBfNPc.js.gz deleted file mode 100644 index f6da960e..00000000 Binary files a/js/BarcodeDemo-jWbBfNPc.js.gz and /dev/null differ diff --git a/js/Flow-D7UO5ALg.js b/js/Flow-D7UO5ALg.js new file mode 100644 index 00000000..36ce6923 --- /dev/null +++ b/js/Flow-D7UO5ALg.js @@ -0,0 +1 @@ +import{z as l,B as n,C as s}from"./hooks-AGBWEt_R.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--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-i2yA9The.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-DNt1HURo.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-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-DweTa4yD.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12-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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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-D7UO5ALg.js.gz b/js/Flow-D7UO5ALg.js.gz new file mode 100644 index 00000000..17710fef Binary files /dev/null and b/js/Flow-D7UO5ALg.js.gz differ diff --git a/js/TablePro-CLiR80o6.js b/js/TablePro-CLiR80o6.js new file mode 100644 index 00000000..8c7a9d98 --- /dev/null +++ b/js/TablePro-CLiR80o6.js @@ -0,0 +1 @@ +import{U as J,V as Q,N as Y,t as q,W as Z,X as $}from"./hooks-AGBWEt_R.js";import{k as ee}from"./utils-DweTa4yD.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--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-DjIgqIpD.js";import{M as x}from"./mockjs@1.1.0-CxlURkif.js";import{d as U}from"./dayjs@1.11.10-C8LoRVP6.js";import{ag as T,L as j,G as ae,ak as ue,c as f,O as m,N as L,H as I,al as V,an as b,v as oe}from"./naive-ui@2.40.1_vue@3.5.12-i2yA9The.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-DNt1HURo.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-DnrABUGp.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12-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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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}]=J(),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=U().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:U(o).add(r*2,"year").valueOf(),signTimeEnd:U(o).add(r+5,"day").valueOf()});return d})()),w=c({pagination:!0,manual:!1}),[G,{checkedRowKeysBind:O,getKeys:N,getRows:P,clearKey:R,clearAll:t,selectKey:z}]=Q(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:A,status:K,signTimeStart:B,signTimeEnd:S}=u||{};let s=k.value;const _=k.value.length;A&&(s=s.filter(p=>p.name.includes(A))),K&&(s=s.filter(p=>p.status===K)),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(K)&&C(A)&&(C(B)||C(S))?_: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:v,print:D,downloadCsv:n,checkedRowKeysBind:O,checkedRowKeys:G,getKeys:N,getRows:P,clearKey:R,clearAll:t,collapseRef:M,selectKey:z}},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:N,clearAll:P,selectKey:R}=this;return e(f,{vertical:!0},{default:()=>[e(Y,{open:this.collapseRef,bordered:!0},{default:()=>e(le,null,[e(T,{label:"用户名"},{default:()=>[e(j,{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(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(L,{title:"常用高级拓展功能"},{default:()=>[e(f,null,{default:()=>[e(I,{label:"分页"},{default:()=>[e(V,{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(V,{value:i.manual,"onUpdate:value":t=>i.manual=t},{default:()=>[e(b,{value:!1},{default:()=>[l("自动更新")]}),e(b,{value:!0},{default:()=>[l("取消自动")]})]})]})]})]}),e(L,{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(L,{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;N(t)}},{default:()=>[l("取消选中第二行")]}),e(m,{type:"primary",onClick:()=>{a==null||a.forEach(t=>R(t.key))}},{default:()=>[l("选中当前页面所有行")]}),e(m,{type:"primary",onClick:()=>{P()}},{default:()=>[l("取消所有已选中行")]})]})]}),e(Z,{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}; diff --git a/js/TablePro-CLiR80o6.js.gz b/js/TablePro-CLiR80o6.js.gz new file mode 100644 index 00000000..25111abd Binary files /dev/null and b/js/TablePro-CLiR80o6.js.gz differ diff --git a/js/TablePro-DDhVUTGT.js b/js/TablePro-DDhVUTGT.js deleted file mode 100644 index 5aafc35e..00000000 --- a/js/TablePro-DDhVUTGT.js +++ /dev/null @@ -1 +0,0 @@ -import{P as W,Q as X,J as Y,t as j,T as Z,U as $}from"./hooks-DNoo5Jj5.js";import{k as ee}from"./utils-DewQlJ2W.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-C6aYKqdf.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"./instance-CZSdczlG.js";import{M as q}from"./mockjs@1.1.0-CxlURkif.js";import{d as U}from"./dayjs@1.11.10-C8LoRVP6.js";import{aj as T,L as x,G as ae,ak as ue,c as f,O as m,N as L,H as I,al as z,an as b,v as oe}from"./naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js";import{l as le,b as e,F as re,I as r,p as ie}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as c}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_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.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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-ewSD1rNh.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"./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-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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 rt=le({name:"TableProDemo",setup(){const{format:a}=$(),[v,{runTableRequest:h,getCurrentTableRequestParams:E,print:D,downloadCsv:n}]=W(),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=U().valueOf();for(let l=0;l<30;l++)d.push({key:ee(),name:q.Random.cname(),age:l+20,address:q.Random.city(),tags:["nice","developer"],remark:"我是一条很长很长的备注",status:l%2===0?"success":"error",statusText:l%2===0?"在线":"离线",signTimeStart:U(o).add(l*2,"year").valueOf(),signTimeEnd:U(o).add(l+5,"day").valueOf()});return d})()),w=c({pagination:!0,manual:!1}),[G,{checkedRowKeysBind:O,getKeys:P,getRows:A,clearKey:R,clearAll:t,selectKey:V}]=X(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:l=10,name:K,status:N,signTimeStart:B,signTimeEnd:S}=u||{};let s=k.value;const _=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)*l,o*l),setTimeout(()=>{d({code:0,data:s,total:C(N)&&C(K)&&(C(B)||C(S))?_:s.length,message:"success",page:o,pageSize:l})},1e3)}),{run:J,loading:Q}=te(H,{onSuccess:u=>{const{data:d,total:o}=u;i.value=d,y.value=o}});return{tableDataRef:i,baseColumns:g,itemCountRef:y,loadingGetPersonList:Q,runGetPersonList:J,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(Y,{open:this.collapseRef,bordered:!0},{default:()=>e(re,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:()=>[r("查询")]})]}),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(L,{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:()=>[r("显示分页")]}),e(b,{value:!1},{default:()=>[r("隐藏分页")]})]})]}),e(I,{label:"自动更新"},{default:()=>[e(z,{value:i.manual,"onUpdate:value":t=>i.manual=t},{default:()=>[e(b,{value:!1},{default:()=>[r("自动更新")]}),e(b,{value:!0},{default:()=>[r("取消自动")]})]})]})]})]}),e(L,{title:"useTablePro 部分方法"},{default:()=>[e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>F()},{default:()=>[r("打印")]}),e(m,{type:"primary",onClick:()=>k()},{default:()=>[r("下载 csv")]})]})]}),e(L,{title:"useCheckedRowKeys 部分方法"},{default:()=>[e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>{const t=a[1].key;R(t)}},{default:()=>[r("选中第二行")]}),e(m,{type:"primary",onClick:()=>{const t=a[1].key;P(t)}},{default:()=>[r("取消选中第二行")]}),e(m,{type:"primary",onClick:()=>{a==null||a.forEach(t=>R(t.key))}},{default:()=>[r("选中当前页面所有行")]}),e(m,{type:"primary",onClick:()=>{A()}},{default:()=>[r("取消所有已选中行")]})]})]}),e(Z,{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{rt as default}; diff --git a/js/TablePro-DDhVUTGT.js.gz b/js/TablePro-DDhVUTGT.js.gz deleted file mode 100644 index ba519d42..00000000 Binary files a/js/TablePro-DDhVUTGT.js.gz and /dev/null differ diff --git a/js/adjustment-DIo_g8Za.js.gz b/js/adjustment-DIo_g8Za.js.gz index 95c42ca7..8efda5f6 100644 Binary files a/js/adjustment-DIo_g8Za.js.gz and b/js/adjustment-DIo_g8Za.js.gz differ diff --git a/js/async-validator@4.2.5-DKvM95Vc.js.gz b/js/async-validator@4.2.5-DKvM95Vc.js.gz index 49ba87f5..e47156cf 100644 Binary files a/js/async-validator@4.2.5-DKvM95Vc.js.gz and b/js/async-validator@4.2.5-DKvM95Vc.js.gz differ diff --git a/js/axios-o8g4A-7A.js.gz b/js/axios-o8g4A-7A.js.gz index c3149293..6e65d820 100644 Binary files a/js/axios-o8g4A-7A.js.gz and b/js/axios-o8g4A-7A.js.gz differ diff --git a/js/axios@1.7.5-C8DqakIB.js.gz b/js/axios@1.7.5-C8DqakIB.js.gz index de82e602..a18673e5 100644 Binary files a/js/axios@1.7.5-C8DqakIB.js.gz and b/js/axios@1.7.5-C8DqakIB.js.gz differ diff --git a/js/call-bind@1.0.7-Cpj98o6Y.js.gz b/js/call-bind@1.0.7-Cpj98o6Y.js.gz new file mode 100644 index 00000000..d6bb27fc Binary files /dev/null and b/js/call-bind@1.0.7-Cpj98o6Y.js.gz differ diff --git a/js/classnames@2.5.1-nUTIn1-D.js b/js/classnames@2.5.1-nUTIn1-D.js new file mode 100644 index 00000000..bdd1d04b --- /dev/null +++ b/js/classnames@2.5.1-nUTIn1-D.js @@ -0,0 +1,5 @@ +import{g as c}from"./call-bind@1.0.7-Cpj98o6Y.js";var i={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var f={}.hasOwnProperty;function s(){for(var t="",r=0;ri.map(i=>d[i]); +var eo=Object.defineProperty;var to=(e,n,t)=>n in e?eo(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var jt=(e,n,t)=>to(e,typeof n!="symbol"?n+"":n,t);import{s as pt,c as Xe,l as Rt,v as rn,p as Fe,y as Ve,z as no}from"./lodash-es@4.17.21-B-5kLwAl.js";import{z as Bt,d as Vt,f as oo,g as ao,N as ot,a as lo,b as ro,c as D,e as at,m as so,h as sn,u as io,S as Pt,i as uo,j as ke,k as co,l as un,n as je,o as po,p as mo,q as me,t as fo,r as go,s as cn,v as ho,w as dn,x as Je,y as Nt,A as pn,B as vo,C as yo,D as bo,E as oe,F as So,G as Ut,H as L,I as Q,J as K,K as _o,L as mn,M as fn,O as Z,P as wo,Q as Co,R as Ke,T as To,U as Oo,V as ko,W as Ao,X as Ro,Y as gn,Z as Po,_ as $t,$ as xo}from"./naive-ui@2.40.1_vue@3.5.12-i2yA9The.js";import{o as Eo,u as Be,a as zo,b as Mo,c as hn,d as mt,e as Io,f as Lo}from"./@vueuse_core@11.1.0_vue@3.5.12-DNt1HURo.js";import{k as M,l as Te,e as le,n as Do,x as Re,a as vn,s as yn,u as ee}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{n as X,j as ie,l as x,b as r,m as N,p as ge,q as se,f as C,w as Pe,t as Fo,k as xe,v as bn,h as lt,i as Ee,x as Sn,F as _n,y as jo,z as Se,A as Bo,C as ft,D as Vo,E as Le,S as No,K as Uo,G as Kt,H as $o,I as Y}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{d as ue}from"./dayjs@1.11.10-C8LoRVP6.js";import{p as Ko}from"./print-js@1.6.0-BdoEj60G.js";import{u as wn}from"./vue-hooks-plus@2.2.1_vue@3.5.12--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 Wo}from"./jsbarcode@3.11.6-DGNGFp02.js";import{L as Wt}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 xt,g as Ze,i as fe,s as Et,a as Tt,c as qo,b as Qe,l as Cn,d as Tn,e as Go,f as V,r as ye,h as F,j as Ho,k as et,q as tt,m as On,p as kn,n as zt,o as qt,t as _e,v as Yo,w as Xo,x as Jo,y as Zo,z as Qo,A as de}from"./utils-DweTa4yD.js";import{s as ea}from"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_Zka_ujQ.js";import{d as rt,c as ta}from"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12-DK9mYMr0.js";import{t as na,a as oa,b as aa,c as la,d as ra,e as sa}from"./html-to-image@1.11.11-BOFdlgi9.js";import{u as st,a as ia,o as ua,c as ca,b as da}from"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import{c as pa}from"./vue-i18n@9.13.1_vue@3.5.12-DVUVmCuN.js";import{r as ma,u as De,i as fa,a as ga,b as ha,c as va,d as ya,e as ba,f as Sa,g as _a,h as wa,j as Ca,k as Ta,l as Oa,m as ka,n as Aa,o as Ra,p as Pa,q as xa,s as Ea}from"./echarts@5.5.0-CezqL3m-.js";import{g as za}from"./@vueuse_shared@11.1.0_vue@3.5.12-DnrABUGp.js";import{T as Ma,a as Ia}from"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import{i as Gt}from"./interactjs@1.10.26-DZL_TZzP.js";const ti=(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(),d=i.join(".");u&&(d?(pt(t,u,t[u]||{}),pt(t[u],d,l)):pt(t,u,l||{}))}),t},La="modulepreload",Da=function(e){return"/ray-template/"+e},Ht={},I=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=Da(i),i in Ht)return;Ht[i]=!0;const u=i.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${d}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":La,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})},Fa=(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.":""))))})},ja=async e=>{var t;const n={};for(const o of e){const l=await Fa(Object.assign({"../lang/en-US.ts":()=>I(()=>import("./en-US-2VuRs5Do.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-BB2toPf1.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},ni=e=>{switch(e){case"zh-CN":return{locale:Bt,dateLocal:Vt};case"en-US":return{locale:null,dateLocal:null};default:return{locale:Bt,dateLocal:Vt}}},oi={darkClassName:"ray-template--dark",lightClassName:"ray-template--light"},ai={max:5,closable:!1},li="loading",ri="",J={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},Ba=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],ae={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"},An=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Va="zh-CN",Na="zh-CN",Ua={"zh-CN":"zh-cn","en-US":"en"},$a="zh-cn",si={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$/},ii={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},Ce=M(null),Rn=M(null),Ka={setupRouterLoadingBar:!0,setupRouterGuard:!0},Wa=["RLogin","ErrorPage","RayTemplateDoc"],We=[],ui=(e,n)=>{const t=M(0),o=M(0),l=M(!1),{clickOutside:a}={},s=g=>{l.value=g},i=g=>{g.preventDefault(),s(!1),X().then(()=>{const{clientX:y,clientY:f}=g;t.value=y,o.value=f,s(!0)})};a&&Eo(e,g=>{a(g)});const u=Be(e,"contextmenu",i,n),d=Be(e,"click",()=>{s(!1)});return{stop:()=>{u(),d()},x:Te(t),y:Te(o),show:Te(l),updateShow:s}},Mt=le({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function pe(e,n,t){xt(Mt,e,n,t)}function it(e){return Te(Do(Mt,e))}function qa(){return{...Re(Te(Mt))}}let ce;const Ga=async()=>{const e=Hn(),n=await ja(An);return pa({legacy:!1,locale:e,messages:n,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:Na})},ci=async e=>{const n=await Ga();e.use(n),ce=n},Yt=(e,n)=>n,Ne=e=>{if(!ce)return{t:a=>Yt(e,a),locale:a=>{}};const{t:n,...t}=ce.global;return{...t,t:(a,...s)=>a?!a.includes(".")&&!e?a:n(Yt(e,a),...s):"",locale:a=>{ce.mode==="legacy"?ce.global.locale=a:vn(ce.global.locale)?ce.global.locale.value=a:ce.global.locale=a}}},B=e=>e,Ha={path:"/dashboard",component:()=>I(()=>import("./index-D0Y6CCZo.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:B("menu.Dashboard"),icon:"dashboard",order:0}},Ya=Object.freeze(Object.defineProperty({__proto__:null,default:Ha},Symbol.toStringTag,{value:"Module"})),Xa={path:"/flow",component:()=>I(()=>import("./Flow-D7UO5ALg.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:B("menu.Flow"),icon:"other",order:2}},Ja=Object.freeze(Object.defineProperty({__proto__:null,default:Xa},Symbol.toStringTag,{value:"Module"})),Za={path:"/axios",name:"RAxios",component:()=>I(()=>import("./index-BcG8w8Qo.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:B("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},Qa=Object.freeze(Object.defineProperty({__proto__:null,default:Za},Symbol.toStringTag,{value:"Module"})),el={path:"barcode",component:()=>I(()=>import("./BarcodeDemo-UEinYhgS.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:B("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},tl=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),nl={path:"/cache-demo",component:()=>I(()=>import("./index-DUgu3oDp.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:B("menu.CacheDemo"),icon:"other",order:3}},ol=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),al={path:"/context-menu",component:()=>I(()=>import("./index-H9US9qo_.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:B("menu.ContextMenu"),icon:"other",order:2}},ll=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"})),rl={path:"/directive",component:()=>I(()=>import("./index-DMvEZ4XM.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:B("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},sl=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),il={path:"/echart",component:()=>I(()=>import("./index-CJ5lja3E.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:B("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},ul=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),cl={path:"/form",component:()=>I(()=>import("./index-BiuetcEk.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:B("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},dl=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"})),pl={path:"/iframe",component:()=>I(()=>import("./index-B7I8d6oq.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"}},ml=Object.freeze(Object.defineProperty({__proto__:null,default:pl},Symbol.toStringTag,{value:"Module"})),fl={path:"/mock-demo",component:()=>I(()=>import("./index-DM9M6Dwk.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:B("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},gl=Object.freeze(Object.defineProperty({__proto__:null,default:fl},Symbol.toStringTag,{value:"Module"})),hl={path:"/modal-demo",component:()=>I(()=>import("./index-B8O3KhRo.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:B("menu.Modal"),icon:"other",order:3}},vl=Object.freeze(Object.defineProperty({__proto__:null,default:hl},Symbol.toStringTag,{value:"Module"})),Ye=()=>I(()=>Promise.resolve().then(()=>Wr),void 0),yl={path:"/multi",component:Ye,meta:{i18nKey:B("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>I(()=>import("./index-B8UExuJq.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:Ye,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>I(()=>import("./index-DQg7_Qc2.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:Ye,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>I(()=>import("./index-E47eBjhl.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}}]}]}]},bl=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"})),Sl={path:"/precision",component:()=>I(()=>import("./index-DgT5nHqP.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:B("menu.CalculatePrecision"),icon:"other",order:2}},_l=Object.freeze(Object.defineProperty({__proto__:null,default:Sl},Symbol.toStringTag,{value:"Module"})),wl={path:"/qrcode",component:()=>I(()=>import("./index-a7mlN0Lt.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:B("menu.QRCode"),icon:"other",order:2}},Cl=Object.freeze(Object.defineProperty({__proto__:null,default:wl},Symbol.toStringTag,{value:"Module"})),Tl={path:"rely-about",component:()=>I(()=>import("./index-CQLHJkiJ.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:B("menu.RelyAbout"),icon:"rely",order:999}},Ol=Object.freeze(Object.defineProperty({__proto__:null,default:Tl},Symbol.toStringTag,{value:"Module"})),kl={path:"/router-demo",component:Ye,meta:{i18nKey:B("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>I(()=>import("./index-B9mAhQoY.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-CE3CXnQ0.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}}]},Al=Object.freeze(Object.defineProperty({__proto__:null,default:kl},Symbol.toStringTag,{value:"Module"})),Rl={path:"/scroll-reveal",component:()=>I(()=>import("./index-CQvxTDy_.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:B("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},Pl=Object.freeze(Object.defineProperty({__proto__:null,default:Rl},Symbol.toStringTag,{value:"Module"})),xl={path:"/segment",component:()=>I(()=>import("./index-Ckm8bBsN.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:B("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},El=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),zl={path:"/svg-icons",component:()=>I(()=>import("./index-DP1d3Otc.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:B("menu.SvgIcon"),icon:"other",order:3}},Ml=Object.freeze(Object.defineProperty({__proto__:null,default:zl},Symbol.toStringTag,{value:"Module"})),Il={path:"/table-pro",component:()=>I(()=>import("./TablePro-CLiR80o6.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:B("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},Ll=Object.freeze(Object.defineProperty({__proto__:null,default:Il},Symbol.toStringTag,{value:"Module"})),Dl={path:"/table",component:()=>I(()=>import("./index-DcQdji55.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:B("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Fl=Object.freeze(Object.defineProperty({__proto__:null,default:Dl},Symbol.toStringTag,{value:"Module"})),jl={path:"/template-hooks",component:()=>I(()=>import("./index-YChggc46.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:B("menu.TemplateHooks"),icon:"other",order:1}},Bl=Object.freeze(Object.defineProperty({__proto__:null,default:jl},Symbol.toStringTag,{value:"Module"})),Vl=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Ya,"/src/router/modules/demo/axios copy.ts":Ja,"/src/router/modules/demo/axios.ts":Qa,"/src/router/modules/demo/barcode.ts":tl,"/src/router/modules/demo/cache-demo.ts":ol,"/src/router/modules/demo/context-menu.ts":ll,"/src/router/modules/demo/directive.ts":sl,"/src/router/modules/demo/echart.ts":ul,"/src/router/modules/demo/form.ts":dl,"/src/router/modules/demo/iframe.ts":ml,"/src/router/modules/demo/mock.ts":gl,"/src/router/modules/demo/modal.ts":vl,"/src/router/modules/demo/multi-menu.ts":bl,"/src/router/modules/demo/precision.ts":_l,"/src/router/modules/demo/qrcode.ts":Cl,"/src/router/modules/demo/rely.ts":Ol,"/src/router/modules/demo/router-demo.ts":Al,"/src/router/modules/demo/scroll-reveal.ts":Pl,"/src/router/modules/demo/segment.ts":El,"/src/router/modules/demo/svg-icons.ts":Ml,"/src/router/modules/demo/table-pro.ts":Ll,"/src/router/modules/demo/table.ts":Fl,"/src/router/modules/demo/template-hooks.ts":Bl});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},[])},Nl=e=>e[0]==="/",Pn=(e,n=[],t="")=>{var o;if(!Array.isArray(e))return[];for(const l of e){const a=t+(Nl(l.path)?l.path:"/"+l.path);if((o=l.children)!=null&&o.length){Pn(l.children,n,a);continue}else n.push({...l,path:a})}return n},Ul=e=>Array.isArray(e)?Pn(Xe(e)):[],$l=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}),Kl=e=>{const{beforeEach:n}=e,{getRootPath:t}=Ie(),o=(l,a)=>l.path==="/"||a.path==="/login";n((l,a,s)=>{const i=Ze(J.token,"localStorage"),u=Ze(J.appMenuKey,"sessionStorage",{defaultValue:t.value}),{meta:d,name:p}=l;i!==null?o(l,a)?gt(!0):!fe(p,"Symbol")&&p&&Wa.includes(p)?s():Kn(d)?o(l,a)?u?s(u):gt(!0):s():gt(!0):o(l,a)?s():s("/")})},gt=(e=!0)=>{const{router:n}=Lt(),{push:t,replace:o}=n,{getRootPath:l}=Ie();Et(J.appMenuKey,l.value,"localStorage"),e?o(l.value):t(l.value)},Wl=e=>{var t;const{meta:n}=e;n!=null&&n.ignoreAutoResetScroll||(t=Ce.value)==null||t.scrollTo({top:0,left:0,behavior:"smooth"})},ql=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()})},xn=e=>{const{meta:n={}}=e,{hidden:t,sameLevel:o,env:l}=n,{MODE:a}=Tt();return!(o||t||l&&typeof l=="string"&&l!==a||l&&Array.isArray(l)&&!l.includes(a))};var Gl={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.4"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Ae=rt("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=Gl,{locale:n}=Ne(),{locale:t}=ws(),o=le({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},_appTheme:!1,appTheme:"light",menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:Hn(),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}),l=u=>{n(u),t(u),o.localeLanguage=u,Et(J.localeLanguage,u,"localStorage")},a=(u,d=.3)=>{const p=qo(u,d),g={primaryColor:u,primaryColorHover:u,primaryColorPressed:u};o.primaryColorOverride.common=g;const y=document.documentElement;y.style.setProperty("--ray-theme-primary-color",u),y.style.setProperty("--ray-theme-primary-fade-color",p)},s=(u,d,p)=>{xt(o,u,d,p)},i=u=>{const d=document.documentElement;s("colorWeakness",u),Qe(d,{filter:u?"invert(100%)":""})};return ie(()=>{var u;o.appTheme?o.primaryColorOverride=Object.assign({},o.primaryColorOverride,ae.appNaiveUIThemeOverrides.dark,ae.appNaiveUIThemeOverridesCommon.dark):o.primaryColorOverride=Object.assign({},o.primaryColorOverride,ae.appNaiveUIThemeOverrides.light,ae.appNaiveUIThemeOverridesCommon.light),i(o.colorWeakness),o.dynamicDocumentTitle||(document.title=((u=o.sideBarLogo)==null?void 0:u.title)||"Ray Template")}),{...Re(o),updateLocale:l,changePrimaryColor:a,updateSettingState:s,toggleColorWeakness:i}},{persist:{key:J.appPiniaSettingStore}}),En={...oo,onRegister:{type:[Function,Array],default:null}},zn={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},...ao};function Hl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const di=x({name:"RCollapse",props:Object.assign({},En,{...zn,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(br,N(l,{labelPlacement:"top",showFeedback:!1}),{default:()=>[r(Jl,l,Hl(e)?e:{default:()=>[e]})]})}}),Yl={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:()=>Cn()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>Tn()},onRegister:{type:[Function,Array],default:null}},Xl=Go(),Xt="__R_CHART_DOWN_LOAD_CHART__";Xl.forEach(e=>{ma(e.name,e.theme)});const pi=x({name:"RChart",props:Yl,setup(e,{expose:n}){const{getAppTheme:t}=W(),o=se("rayChartRef"),l=se("rayChartWrapperRef"),a=yn();let s,i;const{echartTheme:u}=ae;let d;const p=C(()=>[{label:"下载图片",key:Xt,disabled:!(a.value&&a.value.getDom())}]),g=C(()=>({"--ray-chart-width":V(e.width),"--ray-chart-height":V(e.height)})),y=M(!1);let f;const m={aria:e.showAria},h=async()=>{var O;De([ga,ha,va,ya,ba,Sa,_a,wa]),De([Ca,Ta,Oa,ka,Aa,Ra]),De([Pa,xa]),De([Ea]);try{De((O=e.use)==null?void 0:O.filter(Boolean))}catch(R){console.error("[RChart register error]: ",R)}},v=()=>{if(a.value&&T(),e.theme==="default"){e.autoChangeTheme?c("dark"):c("");return}if(e.theme)c(e.theme);else{const O=e.autoChangeTheme&&t.value?`${u}-dark`:u;c(O)}},b=O=>{let R=ee(O);return R=(q=>Object.assign({},R,q))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),R},c=(O=u)=>{var he;const R=o.value,j=b(e.options),{height:q,width:$}=R.getBoundingClientRect(),{onSuccess:te,onError:G}=e;try{a.value=fa(R,O,{width:$===0?200:void 0,height:q===0?200:void 0}),te&&F(te,a.value),e.nextTick?(a.value.setOption({}),X(()=>{var ne;j&&((ne=a.value)==null||ne.setOption(j))})):j&&((he=a.value)==null||he.setOption(j))}catch(ne){throw G&&F(G),new Error(`[RChart render error]: ${ne}`)}finally{const{onFinally:ne}=e;ne&&F(ne)}},_=()=>{var O;return!!((O=a.value)!=null&&O.isDisposed())},T=()=>{var O;_()||(O=a.value)==null||O.dispose()},w=()=>{a.value&&a.value.resize()},S=(O,R)=>{if(O===Xt&&!_()){const{filename:q,...$}=e.downloadOptions;Ho(a.value.getDataURL($),q??`${new Date().getTime()}`)}const{onDropdownSelect:j}=e;j&&F(j,O,R)},E=()=>{var R;if(e.autoResize&&(s||(s=Rt(w,500)),i||(i=Mo(e.autoResizeObserverTarget||l,s))),(R=a.value)!=null&&R.getDom()||!y.value&&e.intersectionObserver)return;v(),f==null||f.stop();const{onRegister:O}=e;O&&a.value&&F(O,a.value,E,k)},k=()=>{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(),v())}),ie(()=>{var O,R;e.intersectionObserver&&(f=zo(e.intersectionObserverTarget||l,([j])=>{y.value=j.isIntersecting},e.intersectionOptions)),e.watchOptions?d=za(()=>e.options,j=>{var te;const q=b(j),$=Object.assign({},Tn(),e.setChartOptions);(te=a.value)==null||te.setOption(q,$)},{deep:!0,throttle:e.watchOptionsThrottleWait}):d==null||d(),e.loading?(O=a.value)==null||O.showLoading(Cn(e.loadingOptions)):(R=a.value)==null||R.hideLoading(),e.showAria!==m.aria&&a.value&&(a.value.setOption(b(e.options)),m.aria=e.showAria),y.value&&!_()&&E()}),n(),Fo(async()=>{await h()}),xe(()=>{E()}),bn(()=>{k(),d==null||d()}),{rayChartRef:o,cssVarsRef:g,rayChartWrapperRef:l,moreDropDownOptions:p,dropdownSelect:S}},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(ot,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:n,bordered:a,embedded:!0},{default:ye(r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:ye(e,{defaultElement:r("div",{style:"display: none;"},null)}),"header-extra":ye(i,{defaultElement:r(Ln,{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)])}}),mi=()=>{let e,n,t;const o=(u,d,p)=>{u&&(e=u,n=p,t=d)},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)}]},Jl=x({name:"RCollapseGrid",props:zn,setup(e){const n=M(!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 ie(()=>{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:d,bordered:p}=this;return r(ot,{bordered:p,style:[d]},{default:()=>r(lo,N({class:"ray-collapse-grid"},l,{collapsed:a,xGap:s||12,yGap:i||12,collapsedRows:u}),{default:()=>[t==null?void 0:t(),r(ro,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[r(D,{justify:"end",align:"center"},{default:()=>[n==null?void 0:n(),e?e(a):o(a)]})]})]})})}}),Zl={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=x({name:"RIcon",props:Zl,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)])])}}),Ql={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}},fi=x({name:"RIframe",props:Ql,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=M(!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 Be(o,"load",a),Be(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(at,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)})])}}),er={...so,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}},tr=(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=Gt(e).draggable({inertia:!0,autoScroll:!0,allowFrom:a,modifiers:[Gt.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:i=>{o==null||o(i)}}}).resizable(!1);l(s)}},30)})},Mn=(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;tr(t,a,{scheduler:d=>{const p=d.target;i+=d.dx,u+=d.dy,p.style.transform=`translate(${i}px, ${u}px)`,s==null||s(i,u,d)}}).then(d=>{o(d)})}else l()})},nr="r-modal__preset-card--fullscreen",In="r-modal",Oe={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},gi=x({name:"RModal",props:er,setup(e){const n=C(()=>({[Oe.width]:V(e.width??600),[Oe.cardWidth]:V(e.cardWidth??600),[Oe.dialogWidth]:V(e.dialogWidth??446)})),t=et();let o;const l={x:0,y:0},a=C(()=>e.preset==="card"&&e.fullscreen);return Pe(()=>e.show,s=>{s&&e.dad&&(e.preset==="card"||e.preset==="dialog")?X(()=>{const i=document.getElementById(t);i&&Mn(i,{preset:e.preset,x:l.x,y:l.y,dargCallback:(u,d)=>{l.x=u,l.y=d}}).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(sn,N({class:[In,i?nr:""],style:[a,i?"height: 100vh":""],preset:o},{id:s},l,t),{...n})}}),or=()=>{const{create:e,destroyAll:n}=io();return{create:o=>{const{content:l,...a}=o;let s=l;a.preset==="card"&&a.fullscreen&&(s=()=>lt(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 l=="function"?l():l}));const{preset:i,dad:u,fullscreen:d,width:p,cardWidth:g,dialogWidth:y}=o,f=e({...a,content:s}),{key:m}=f,h={[Oe.width]:V(p??600),[Oe.cardWidth]:V(g??600),[Oe.dialogWidth]:V(y??446)};return X(()=>{const[v]=tt(`[internalkey="${m}"]`)||[];v&&(u&&Mn(v,{preset:i,x:0,y:0}),d&&i==="card"&&Qe(v,{width:"100%",height:"100vh"}),Qe(v,h),On(v,In))}),f},destroyAll:n}},ar={...uo,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function lr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const Ln=x({name:"RMoreDropdown",props:ar,render(){let e;const{iconSize:n,cursor:t,icon:o}=this,{default:l}=this.$slots;return r(ke,N(this.$props,this.$attrs,{placement:"bottom-start"}),lr(e=ye(l,{defaultElement:r(P,{name:o,size:n,cursor:t},null)}))?e:{default:()=>[e]})}}),ze={...co,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}},re={tableIconSize:"18",tableKey:Symbol("r-table")},rr=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],sr=x({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...ze},setup(e){return{size:M(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(un,{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:re.tableIconSize,cursor:"pointer"},null)]})}}),ir=x({name:"TableFullscreen",setup(){const{wrapperRef:e}=Ee(re.tableKey,{}),[n,{toggleFullscreen:t,isEnabled:o}]=wn(e);return{toggleFullscreen:t,isEnabled:o}},render(){const{toggleFullscreen:e,isEnabled:n,$t:t}=this;return r(P,{name:"fullscreen",size:re.tableIconSize,cursor:"pointer",onClick:()=>{n||window.$message.warning(t("globalMessage.isEnabledFullscreen")),e()}},null)}}),ur=()=>r(P,{name:"draggable",size:14,cursor:"grab"},null),Jt=({icon:e,title:n,onClick:t,customClassName:o})=>r(je,{showArrow:!1},{trigger:()=>r(P,{name:e,size:re.tableIconSize,cursor:"pointer",customClassName:o,onClick:t==null?void 0:t.bind(null)},null),default:()=>n}),Ot=(e,n)=>{if(!n)return[null,null];for(let t=0;tXe(e.columns).filter(u=>u.type?(n=u,!1):!0).map((u,d)=>{const{key:p,title:g,children:y,fixed:f,isResizable:m,...h}=u,v=f==="left",b=f==="right",c={...h,title:g,key:p,fixed:f,isLeftFixedActivated:v,isRightFixedActivated:b,isResizable:m};return{...c,suffix:()=>r(D,{style:"padding-left: 32px;"},{default:()=>[r(Jt,{icon:"row_head",title:"固定在列首",customClassName:v?ht:"",onClick:a.bind(this,"left",c,d)},null),r(je,{showArrow:!1},{trigger:()=>r(P,{name:"resize_h",size:re.tableIconSize,cursor:"pointer",customClassName:m?ht:"",onClick:l.bind(this,c,d)},null),default:()=>"修改列宽"}),r(Jt,{icon:"row_end",title:"固定在列尾",customClassName:b?ht:"",onClick:a.bind(this,"right",c,d)},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,d)=>{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[d]=u,o(t.value)};return{treeDataSource:t,treeDrop:({node:i,dragNode:u,dropPosition:d})=>{const[p,g]=Ot(u,t.value);if(p===null||g===null)return;p.splice(g,1);const[y,f]=Ot(i,t.value);y===null||f===null||(d==="before"?y.splice(f,0,u):y.splice(f+1,0,u),rn(n)||y.unshift(n),o(y))}}},render(){return r(je,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>r(P,{name:"setting",size:re.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>r(po,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:ur.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),dr=x({name:"TablePrint",props:ze,setup(e){const{wrapperRef:n}=Ee(re.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:""),kn(n,{printOptions:o,domToImageOptions:l})}}},render(){return r(P,{name:"print",size:re.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),pr=x({name:"TablePropsSelect",props:{...ze,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const n=M(!1),t=M([]),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(un,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:rr,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(P,{name:"expanded",size:re.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function mr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const fr=x({name:"RTable",inheritAttrs:!1,props:ze,setup(e,n){const{expose:t,emit:o}=n,l=se("rTableInst"),a=se("wrapperRef"),s=et(16),i=et(16),u=le({x:0,y:0,showContextMenu:!1}),d=le({size:e.size}),p=M(Object.assign({striped:!1,bordered:!1},Fe(e,"striped","bordered"))),g=(c,_)=>{const{onContextMenuClick:T}=e;T&&F(T,c,_),u.showContextMenu=!1},y=(c,_)=>{var w;return{...(w=e.rowProps)==null?void 0:w.call(e,c,_),onContextmenu:e.disabledContextMenu?void 0:S=>{S.preventDefault(),u.showContextMenu=!1,X().then(()=>{u.showContextMenu=!0,u.x=S.clientX,u.y=S.clientY})}}},f=c=>{d.size=c},m=c=>{const{onUpdateColumns:_,"onUpdate:columns":T}=e;_&&F(_,c),T&&F(T,c)},h=()=>{const{toolOptions:c}=e;return c==null?void 0:c.filter(Boolean).map(_=>typeof _=="function"?_():_)},v=c=>{Object.keys(p.value).forEach(T=>{p.value[T]=c.includes(T)})},b=c=>{const{tool:_}=c;if(!_)return;const T=()=>r(D,{align:"center"},{default:()=>[r(dr,c,null),r(sr,N(c,{onChangeSize:f.bind(this)}),null),r(ir,null,null),r(cr,N(c,{onUpdateColumn:m.bind(this)}),null),r(pr,N(c,{onPopselectChange:v.bind(this),onInitialed:v.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let w;return r(D,{align:"center"},mr(w=h())?w:{default:()=>[w]})}:()=>r(D,{align:"center"},{default:()=>[T(),h()]}):T};return xe(()=>{const{onRegister:c}=e;c&&l.value&&F(c,l.value,{uuidTable:i,uuidWrapper:s,wrapperRef:a})}),Sn(re.tableKey,{uuidTable:i,uuidWrapper:s,wrapperRef:a}),t(),{uuidWrapper:s,uuidTable:i,contextMenuReactive:u,rTableInst:l,combineRowProps:y,contextMenuSelect:g,privateReactive:d,tool:b,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,...d}=n,{tool:p,combineRowProps:g,contextMenuSelect:y}=this,{renderWrapperHeader:f,wrapperBordered:m,disabledContextMenu:h,contextMenuOptions:v,title:b,tableFlexHeight:c,cardProps:_,...T}=e;return r(ot,N(_,{id:a},d,{ref:"wrapperRef",bordered:m,class:u}),{default:()=>r(_n,null,[r(mo,N({id:o},T,i,{rowProps:g.bind(this),size:s.size,ref:"rTableInst",style:{height:c!=null?V(c):null}}),{...t}),h?null:r(ke,{show:l.showContextMenu,placement:"bottom-start",trigger:"manual",x:l.x,y:l.y,options:v,onClickoutside:()=>l.showContextMenu=!1,onSelect:y.bind(this)},null)]),header:f?ye(b,{defaultElement:r("div",{style:"display: none;"},null)}):null,"header-extra":p(e),footer:()=>{var w;return(w=t.tableFooter)==null?void 0:w.call(t)},action:()=>{var w;return(w=t.tableAction)==null?void 0:w.call(t)}})}}),gr=()=>{const e=M();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 h=document.getElementById(m);kn(h,f)}},filter:f=>o().filter.call(null,f)}]},Dn=(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=Dn(l.children,n,t);if(a)return a}}},Zt=e=>{const n=ee(e);return n?n.findIndex(o=>{const{type:l,multiple:a}=o;if(l==="selection"&&(a==null||a===!0))return!0})!==-1:!0},hr=(e,n,t,o)=>{const l=ee(e);return l?n.reduce((a,s)=>{const i=ee(t).findIndex(d=>d[o]===s);if(i!==-1)return a.push(ee(t)[i]),a;const u=l.findIndex(d=>d[o]===s);return u!==-1&&a.push(l[u]),a},[]):t},hi=(e,n,t)=>{const o=M([]),l=M([]),{rowKey:a="key",onChange:s}=t||{},i=C(()=>Zt(n)),u=(m,h,v)=>{o.value=m,l.value=ee(hr(e,m,l,a)),s==null||s(m,l.value,v),Zt(n)},d=()=>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 h;o.value=o.value.filter(v=>v!==m),l.value=l.value.filter(v=>v[a]===m?(h=v,!1):!0),s==null||s(o.value,l.value,{row:h,action:"uncheck"})},f=m=>{if(o.value.includes(m))return;const h=!i.value&&o.value.length>=1,v=Dn(ee(e)||[],a,m);h?o.value=[m]:o.value.push(m),v&&(h?l.value=[v]:l.value.push(v),s==null||s(o.value,l.value,{row:v,action:"check"}))};return zt(()=>{g()}),[o,{checkedRows:l,checkedRowKeysBind:u,getKeys:d,getRows:p,clearAll:g,clearKey:y,selectKey:f}]},vr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},yr=x({name:"RTransitionComponent",__name:"index",props:jo({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},vr),setup(e){const{getKeepAliveInclude:n}=Dr(),{getKeepAliveConfig:t}=W();return(o,l)=>{const a=Vo("RouterView");return Se(),Bo("div",null,[r(a,null,{default:ft(({Component:s,route:i})=>[s?(Se(),Le(Ma,{key:0,name:o.transitionPropName,mode:o.transitionMode,appear:o.transitionAppear},{default:ft(()=>[(Se(),Le(No,null,{default:ft(()=>[ee(t).setupKeepAlive?(Se(),Le(Uo,{key:0,max:ee(t).maxKeepAliveLength,include:ee(n),exclude:ee(t).keepAliveExclude},[(Se(),Le(Kt(s),{key:i.fullPath}))],1032,["max","include","exclude"])):(Se(),Le(Kt(s),{key:i.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):$o("",!0)]),_:1})])}}}),br=x({name:"RForm",props:En,setup(e,{expose:n}){const t=se("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(me,N(e,n,{ref:"formRef"}),{...t})}}),vi=(e,n)=>{const t=M(),o=d=>{d&&(t.value=d)},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:(d,p)=>l().validate.call(null,d,p),restoreValidation:()=>l().restoreValidation.call(null),formModel:()=>Xe(e)||{},formRules:()=>Xe(n)||{}}]},Sr=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],_r={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},wr=Ve({...fo,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...Sr);function Cr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const kt=e=>{const{icon:n,label:t}=e;return n?r(D,{align:"center",wrap:!1,size:"small"},{default:()=>{var o;return[(o=ye(n))==null?void 0:o(),r("div",null,[t])]}}):t},Tr=e=>{if(typeof e.popover=="string")return r(je,null,{trigger:()=>kt(e),default:()=>e.popover});if(fe(e.popover,"Object")){const{popover:n}=e,{label:t,...o}=n;return r(je,o,{trigger:()=>kt(e),default:()=>t})}},Or=x({name:"RSegment",props:wr,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(cn,N(n,{ref:"segmentRef",style:[o],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},_r,l)}),Cr(e=t.map(a=>r(go,{key:a.key,name:a.key,tab:a.popover?Tr(a):kt(a),disabled:a.disabled},{...a.slots})))?e:{default:()=>[e]})}}),kr={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]}},yi=x({name:"RBarcode",props:kr,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,d=Object.assign({},i,{format:a});Wo(n.value,s!=null?s.toString():"",d),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 ie(()=>{e.watchText?o=Pe(()=>e.text,l):o==null||o()}),xe(()=>{l()}),bn(()=>{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(at,{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)]})}}),Ar={...Ve(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 Rr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const bi=x({name:"RTablePro",props:Ar,setup(e){const[n,{clearFilters:t,clearSorter:o,downloadCsv:l,filters:a,page:s,scrollTo:i,sort:u,print:d,filter:p}]=gr(),[g,{getPage:y,getPageSize:f,setCallback:m,setItemCount:h,resetPagination:v,getItemCount:b}]=Os(void 0,{prefix:k=>`共 ${k.itemCount} 条`}),c=C(()=>e.request),_=()=>({getItemCount:b,getPage:y,getPageSize:f}),T=()=>{const{onTablePaginationUpdate:k}=e;k&&F(k,_())},w=k=>{const O=Object.assign({},e.requestConfig,k),{params:R,formatRangeTime:j}=O;return j!=null&&j.length&&R&&j.forEach($=>{const{key:te,target:G}=$,he=R[te];if(he&&(G!=null&&G.length)){const[ne,ct]=he;R[G[0]]=ne,R[G[1]]=ct}else R[te]=null,R[G[0]]=null,R[G[1]]=null}),Object.assign({},R,{page:y(),pageSize:f()})},S=k=>{var R;v();const O=w(k);(R=c.value)==null||R.call(c,O)},E=k=>{var R;const O=w(k);(R=c.value)==null||R.call(c,O)};return ie(()=>{h(e.paginationCount),m(()=>{const{manual:k}=e;k||E(),T()})}),xe(()=>{const{onRegister:k}=e;k&&F(k,{getTablePagination:_,runTableRequest:S,clearFilters:t,clearSorter:o,downloadCsv:l,filters:a,page:s,scrollTo:i,sort:u,print:d,filter:p,getCurrentTableRequestParams:w})}),{register:n,paginationRef:g}},render(){const{register:e,$props:n,paginationRef:t,$slots:o}=this,{onRegister:l,showPagination:a,...s}=n;return r(fr,N(s,{onRegister:e,pagination:a?t:void 0}),Rr(o)?o:{default:()=>[o]})}}),Si=()=>{const e=M(),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,h)=>t().sort.call(null,m,h),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)}]},Pr=()=>({grid:!0,partial:!1,keyboard:{enabled:!0}}),xr={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:Pr()},onRegister:{type:[Function,Array],default:void 0}};let Qt=!1;const _i=x({name:"RFlow",props:xr,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=yn(),l={nodeTextEdit:!1,edgeTextEdit:!1,textEdit:!1};let a;const s={nodes:[],edges:[]},i={readonly:e.readonly},u=()=>{var g;Qt||((g=e.use)==null||g.filter(Boolean).forEach(y=>Wt.use(y)),Qt=!0)},d=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 Wt({container:ee(n.value),...Ve(y,"container")}),o.value.render(g||s),d(f)};return ie(()=>{e.watchData?a=Pe(()=>e.data,g=>{o.value?g&&o.value.renderRawData(g):p(g)}):a==null||a(),e.readonly!==i.readonly&&(d(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)}}),wi=()=>{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}}]},Er=(e,n,t)=>!e||typeof e!="object"?!1:e[n]===t,Fn=(e,n,t)=>{const o=[];if(Er(e,n,t))return o.push(e),o;if(e.children&&e.children.length>0)for(const l of e.children){const a=Fn(l,n,t);a.length>0&&o.push(e,...a)}return o},zr=(e,n,t)=>{const o=[];for(const l of e){const a=Fn(l,n,t);a.length>0&&o.push(...a)}return o},en=e=>{const{dynamicDocumentTitle:n}=Ae();if(!n)return;const{breadcrumbLabel:t}=e;if(!t)return;const{sideBarLogo:o}=Ae(),l=o?o.title:"";document.title=t+" - "+l},Mr=e=>{const{meta:{icon:n}}=e;if(!n)return;if(fe(n,"Object"))return()=>n;const{menuConfig:t}=Ae(),{collapsed:o}=It(),l=lt(P,{name:n,size:o?t.collapsedIconSize:t.iconSize,cursor:"pointer"},{});return()=>l},jn=e=>{const{meta:{extra:n}}=e;if(!n)return;const{show:t}=n;if(t===!1)return;const{t:o}=Ne(),{label:l,icon:a,type:s,i18nLabel:i}=n,u={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},d=()=>i?o(i):l||null,p=()=>a&&(i||l)||!a&&(i||l)?null:{"padding-right":"0"};if(fe(n,"Object"))return()=>lt(ho,{...u,type:s||"primary",style:p()},{default:()=>d(),icon:()=>a})},tn=()=>{const{getRootPath:e}=Ie();return Ze(J.appMenuKey,"sessionStorage",{defaultValue:e.value})},Bn=()=>$l(Vl()),Ir=()=>Ul(Bn()),At=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let qe;const Vn=(e,n)=>{var t;if(qe&&qt(qe.fullPath,n))return qe;for(const o of e){if(qt(o.fullPath,n))return qe=o,o;if((t=o.children)!=null&&t.length){Vn(o.children,n);continue}}},It=rt("menu",()=>{const{push:e,getRoutes:n}=st(),t=ia(),{t:o}=Ne(),{setKeepAliveInclude:l}=Fr(),a=le({menuKey:tn(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),s=M(!0),i=(c,_,T)=>{xt(a,c,_,T)},u=c=>{const{meta:_}=c,{i18nKey:T,noLocalTitle:w}=_,S=C(()=>T?o(`${T}`):w),E={...c,key:c.fullPath,label:()=>lt(dn,null,{default:()=>S.value}),breadcrumbLabel:S.value},k=Object.assign({},E,{icon:Mr(c),extra:jn(c)});return c.fullPath===tn()&&(a.currentMenuOption=k),k.show=xn(k),k},d=c=>{a.breadcrumbOptions=zr(a.options,"fullPath",c)},p=(c,_=!0)=>{const w=Array.isArray(c)?[...c]:[c];_?a.menuTagOptions.push(...w):a.menuTagOptions=w},g=(c,_)=>{a.menuTagOptions.find(w=>w.fullPath===c)||a.menuTagOptions.push(_)},y=(c,_,T)=>{const{meta:w}=_;if(w.windowOpen)window.open(w.windowOpen);else{e({path:String(c),query:T});const{sameLevel:S}=w;if(l(_),en(_),!S)g(c,_),d(c),a.menuKey=c,a.currentMenuOption=_,Et(J.appMenuKey,c);else{const E=Fe(u(_),At);a.breadcrumbOptions.find(O=>O.key===E.key)||a.breadcrumbOptions.push({...E,fullPath:String(E.key)})}}},f=async(c,_)=>{const[T]=c.split("?"),w=n().find(S=>S.path===T);if(!((w==null?void 0:w.path)==="/"||!(w!=null&&w.path)||(w==null?void 0:w.path)==="/login")&&w){const S=Fe(w,At);y(T,u({...S,fullPath:S.path}),_)}},m=()=>new Promise(c=>{const _=(T,w)=>{var E;const S=[];for(const k of T){let O=`${w.endsWith("/")?w:w+"/"}${k.path}`;if(O=O.replace(/\/+/g,"/"),(E=k.children)!=null&&E.length)k.children=_(k.children,O);else if(!Kn(k.meta))continue;S.push(u({...k,fullPath:O}))}return S};if(a.options=_(Bn(),""),a.currentMenuOption){const{currentMenuOption:T}=a;a.breadcrumbOptions.length||d(T.key),g(T.fullPath,T),en(T)}c()}),h=c=>a.collapsed=c,v=(c,_=1)=>a.menuTagOptions.splice(c,_),b=async()=>{s.value&&(await m(),s.value=!1)};return Pe(()=>t.fullPath,async(c,_)=>{await b(),c!==_&&await f(c,t.query)},{immediate:!0}),{...Re(a),changeMenuModelValue:y,collapsedMenu:h,spliceMenTagOptions:v,setMenuTagOptions:p,resolveOption:u,updateMenuState:i,setupAppMenu:m}},{persist:{key:J.appPiniaMenuStore,storage:window.localStorage,pick:["breadcrumbOptions","menuKey","menuTagOptions","collapsed"]}}),Nn=rt("signing",()=>{const e=le({signingCallback:{}}),n=l=>new Promise((a,s)=>{rn(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}=Gn(),{appPiniaMenuStore:s,appPiniaSigningStore:i,token:u,signing:d,appMenuKey:p}=J;window.$message.info("账号退出中..."),_e("__all_sessionStorage__","sessionStorage"),_e(i,"localStorage"),_e(s,"localStorage"),_e(u,"localStorage"),_e(d,"localStorage"),_e(p,"localStorage"),a(),l&&(window.location.replace("#/"),setTimeout(()=>{window.location.reload()},0))},o=()=>{t(!0)};return{...Re(e),signing:n,logout:o,clearSigningCallback:t}},{persist:{key:J.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),Un=rt("keepAlive",()=>{const e=le({keepAliveInclude:[]}),n=()=>e.keepAliveInclude.length,t=l=>{const a=n(),{name:s,meta:{keepAlive:i}}=l,{maxKeepAliveLength:u}=Ae().keepAliveConfig;if(i){if(a=u&&(e.keepAliveInclude.splice(0,1),e.keepAliveInclude.push(s))}},o=()=>e.keepAliveInclude;return{...Re(e),setKeepAliveInclude:t,getKeepAliveInclude:o}},{persist:{key:J.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),be=()=>{const e=It(),n=C(()=>e.options),t=C(()=>e.breadcrumbOptions),o=C(()=>e.menuKey),l=C(()=>{const{getRootPath:i}=Ie();return e.menuTagOptions.map((u,d,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}},Me=()=>{const{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:l,updateMenuState:a,setupAppMenu:s}=It();return{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:l,updateMenuState:a,setupAppMenu:s}},W=()=>{const e=Ae(),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),d=C(()=>e.copyrightSwitch),p=C(()=>e.contentTransition),g=C(()=>e.watermarkSwitch),y=C(()=>e.watermarkConfig),f=C(()=>e.appRootRoute),m=C(()=>e.sideBarLogo),h=C(()=>e.keepAliveConfig),v=C(()=>e.menuConfig),b=C(()=>e.colorWeakness),c=C(()=>e.dynamicDocumentTitle);return{getDrawerPlacement:n,getPrimaryColorOverride:t,getAppTheme:o,getMenuTagSwitch:a,getBreadcrumbSwitch:s,getLocaleLanguage:i,getLockScreenSwitch:u,getCopyrightSwitch:d,getContentTransition:p,getWatermarkSwitch:g,getWatermarkConfig:y,getAppRootRoute:f,getSideBarLogo:m,getKeepAliveConfig:h,getMenuConfig:v,getAppThemeStr:l,getColorWeakness:b,getDynamicDocumentTitle:c}},U=()=>{const{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=Ae();return{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}},$n=()=>{const e=Nn();return{getSigningCallback:C(()=>e.signingCallback)}},Lr=()=>{const{signing:e,logout:n,clearSigningCallback:t}=Nn();return{signing:e,logout:n,clearSigningCallback:t}},Dr=()=>{const e=Un();return{getKeepAliveInclude:C(()=>e.keepAliveInclude)}},Fr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:n}=Un();return{setKeepAliveInclude:e,getKeepAliveInclude:n}},Ci=e=>{const n=ta();e.use(n),n.use(ea)},Kn=e=>{const{getSigningCallback:n}=$n(),{role:t}=e;return We!=null&&We.length&&We.includes(n.value.role)||!t||!(t!=null&&t.length)?!0:t?t.includes(n.value.role):!0},jr=e=>{const{setupRouterLoadingBar:n,setupRouterGuard:t}=Ka;n&&ql(e),t&&Kl(e)},Br=M(),Vr=x({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=st(),{getSideBarLogo:n}=W();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(fe(n.value.icon,"Object"))return ye(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:Br},[e!=null&&e.icon?n?r(Je,{placement:"right"},{trigger:()=>t({cursor:"pointer"}),default:()=>e.title}):t({cursor:"pointer"}):n?r(Je,{placement:"right"},{trigger:()=>r(Nt,{type:"primary",size:18},{default:()=>{var l;return[((l=e.title)==null?void 0:l[0])||null]}}),default:()=>e.title}):null,r(Nt,{class:[n?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"'],type:"primary",size:18},{default:()=>[r(dn,null,{default:()=>[e.title]})]})]):null}}),Nr=x({name:"AppMenu",setup(){const e=M(null),{changeMenuModelValue:n,collapsedMenu:t,updateMenuState:o}=Me(),{getMenuConfig:l}=W(),{getMenuOptions:a,getCollapsed:s,getMenuKey:i}=be(),u=C({get:()=>(X().then(()=>{g()}),i.value),set:()=>{d.value&&pe("globalDrawerValue",!1)}}),{isTabletOrSmaller:d}=ut({observer:f=>{f&&o("collapsed",!1)}}),p=C({get:()=>it("globalDrawerValue").value,set:f=>{pe("globalDrawerValue",f)}}),g=()=>{const f=u.value;f!=null&&X(()=>{var m,h;return(h=(m=e.value)==null?void 0:m.showOption)==null?void 0:h.call(m,f)})};return{isTabletOrSmaller:d,BasicMenu:()=>r(yo,{class:"app-menu__sider",showTrigger:!d.value,collapseMode:l.value.collapsedMode,collapsedWidth:l.value.collapsedWidth,onUpdateCollapsed:t.bind(this),width:l.value.menuWidth,nativeScrollbar:l.value.nativeScrollbar,ref:Rn,collapsed:s.value,onExpand:()=>{o("collapsed",!1)},onCollapse:()=>{o("collapsed",!0)},inverted:l.value.inverted},{default:()=>[l.value.menuSiderBarLogo?r(Vr,{collapsed:s.value},null):null,r(vo,{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(pn,{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 Ur{constructor(){jt(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 vt={requestInstance:null,responseInstance:null},yt={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},Ge={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},$r=new Ur,Ti=()=>{const e=(i,u)=>{u==="requestInstance"?vt.requestInstance=i:vt.responseInstance=i},n=i=>vt[i],t=(i,u,d)=>{d==="ok"?yt[i]=u:Ge[i]=u},o=(i,u)=>u==="ok"?yt[i]:Ge[i],l=(i,...u)=>{Array.isArray(i)&&i.forEach(d=>{typeof d=="function"&&d(...u)})};return{createAxiosInstance:e,setImplement:t,getImplement:o,getAxiosInstance:n,beforeFetch:(i,u,d)=>{const p=d==="ok"?yt[u]:Ge[u],g=n(i),{MODE:y}=Tt();g&&l(p,g,y)},fetchError:(i,u,d)=>{const p=Ge[d],{MODE:g}=Tt();l(p,u,g)}}},Kr=x({name:"AppRequestCancelerProvider",setup(e,{expose:n}){ua(()=>{$r.cancelAllRequest()}),n()},render(){return r("div",{class:"app-style-provider"},null)}}),Wn=x({name:"LayoutContentWrapper",setup(){st();const{maximize:e}=qn(),{getContentTransition:n}=W(),t=M(!1),o={opacitySpinning:"0"},{globalMainLayoutLoad:l,layoutContentMaximize:a,layoutContentSpinning:s}=qa();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(at,{show:l||!e||t,description:"loading...",size:"large",themeOverrides:a,class:[n?"r-layout-full__viewer-content--maximize":null,"r-layout-full__viewer-content--maximize--light","r-layout-full__viewer-content--maximize--dark"]},{default:()=>[n?r("div",{class:"layout-content__maximize-out",onClick:()=>{o(!1)}},[r(P,{name:"out",size:"16",cursor:"pointer"},null)]):null,r(Kr,null,null),e?r(yr,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),Wr=Object.freeze(Object.defineProperty({__proto__:null,default:Wn},Symbol.toStringTag,{value:"Module"}));var qr={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.4"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Gr=x({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=qr;return{copyright:e}},render(){return this.copyright?r("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),Hr=x({name:"TooltipIcon",props:{...bo,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(Je,this.$props,{trigger:()=>r(e,null,null),default:()=>this.tooltipText}):r(e,null,null)}}),Yr=x({name:"ThemeSegment",setup(){const{system:e}=hn(),{getAppThemeStr:n,getAppTheme:t}=W(),{updateSettingState:o}=U(),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 ie(()=>{s(a.value,e.value)}),{options:l,modelAppTheme:a}},render(){const{options:e}=this;return r(Or,{options:e,size:"small",width:"block",value:this.modelAppTheme,"onUpdate:value":n=>this.modelAppTheme=n},null)}}),Xr={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},Jr=()=>Xr,Ue=Symbol("segmentDrawer"),Zr=x({name:"SegmentViewsAppearance",setup(){const e=Ee(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(D,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(oe,null,{default:()=>[Y("系统主题")]}),r(Yr,null,null),r(oe,null,{default:()=>[Y("内置主题")]}),r(So,{showPreview:!0,swatches:ae.appThemeColors,value:n.primaryColorOverride.common.primaryColor,"onUpdate:value":l=>n.primaryColorOverride.common.primaryColor=l,onUpdateValue:t.bind(this)},null),r(oe,null,{default:()=>[Y("切换动画")]}),r(Ut,{value:n.contentTransition,"onUpdate:value":l=>n.contentTransition=l,options:Ba,onUpdateValue:l=>{o("contentTransition",l)}},null),r(oe,null,{default:()=>[Y("配置入口出现位置")]}),r(Ut,{value:n.drawerPlacement,"onUpdate:value":l=>n.drawerPlacement=l,options:[{label:"右边",value:"right"},{label:"左边",value:"left"}],onUpdateValue:l=>{o("drawerPlacement",l)}},null),r(oe,null,{default:()=>[Y("其他设置")]}),r(me,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(L,{label:"面包屑"},{default:()=>[r(Q,{value:n.breadcrumbSwitch,"onUpdate:value":l=>n.breadcrumbSwitch=l,onUpdateValue:l=>o("breadcrumbSwitch",l)},null)]}),r(L,{label:"标签页"},{default:()=>[r(Q,{value:n.menuTagSwitch,"onUpdate:value":l=>n.menuTagSwitch=l,onUpdateValue:l=>o("menuTagSwitch",l)},null)]}),r(L,{label:"页底信息"},{default:()=>[r(Q,{value:n.copyrightSwitch,"onUpdate:value":l=>n.copyrightSwitch=l,onUpdateValue:l=>o("copyrightSwitch",l)},null)]}),r(L,{label:"色弱模式"},{default:()=>[r(Q,{value:n.colorWeakness,"onUpdate:value":l=>n.colorWeakness=l,onUpdateValue:l=>{o("colorWeakness",l),e(l)}},null)]})]})]})}}),Qr=x({name:"SegmentViewsCommon",setup(){const e=Ee(Ue,{}),{updateSettingState:n}=U();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(D,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(oe,null,{default:()=>[Y("基础设置")]}),r(me,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(L,{label:"页面缓存"},{default:()=>[r(Q,{value:e.keepAliveConfig.setupKeepAlive,"onUpdate:value":t=>e.keepAliveConfig.setupKeepAlive=t,onUpdateValue:t=>n("keepAliveConfig",{setupKeepAlive:t})},null)]}),r(L,{label:"动态浏览器标题"},{default:()=>[r(Q,{value:e.dynamicDocumentTitle,"onUpdate:value":t=>e.dynamicDocumentTitle=t,onUpdateValue:t=>n("dynamicDocumentTitle",t)},null)]})]}),r(oe,null,{default:()=>[Y("缓存设置")]}),r(me,{labelPlacement:"top",showFeedback:!0,showRequireMark:!1,model:e.keepAliveConfig},{default:()=>[r(L,{label:"最大缓存数",feedback:C(()=>e.keepAliveConfig.maxKeepAliveLength<=0?"设置为【0】时,缓存将会失效":"").value},{default:()=>[r(K,{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(L,{label:"排除缓存"},{default:()=>[r(_o,{type:"success",value:e.keepAliveConfig.keepAliveExclude,"onUpdate:value":t=>e.keepAliveConfig.keepAliveExclude=t},null)]})]})]})}}),es=x({name:"SegmentViewsWatermark",setup(){const e=Ee(Ue,{}),{updateSettingState:n}=U();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(D,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(oe,null,{default:()=>[Y("基础设置")]}),r(me,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(L,{label:"全屏水印"},{default:()=>[r(Q,{value:e.watermarkSwitch,"onUpdate:value":t=>e.watermarkSwitch=t,onUpdateValue:t=>n("watermarkSwitch",t)},null)]}),r(L,{label:"跨边界显示"},{default:()=>[r(Q,{value:e.watermarkConfig.cross,"onUpdate:value":t=>e.watermarkConfig.cross=t,onUpdateValue:t=>n("watermarkConfig",{cross:t})},null)]})]}),r(oe,null,{default:()=>[Y("个性化水印")]}),r(me,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(L,{label:"水印内容"},{default:()=>[r(mn,{value:e.watermarkConfig.content,"onUpdate:value":t=>e.watermarkConfig.content=t,onUpdateValue:t=>n("watermarkConfig",{content:t})},null)]}),r(L,{label:"字体尺寸"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.fontSize,"onUpdate:value":t=>e.watermarkConfig.fontSize=t,onUpdateValue:t=>n("watermarkConfig",{fontSize:t})},null)]}),r(L,{label:"字体行高"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.lineHeight,"onUpdate:value":t=>e.watermarkConfig.lineHeight=t,onUpdateValue:t=>n("watermarkConfig",{lineHeight:t})},null)]}),r(L,{label:"字体宽度"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.width,"onUpdate:value":t=>e.watermarkConfig.width=t,onUpdateValue:t=>n("watermarkConfig",{width:t})},null)]}),r(L,{label:"字体高度"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.height,"onUpdate:value":t=>e.watermarkConfig.height=t,onUpdateValue:t=>n("watermarkConfig",{height:t})},null)]}),r(L,{label:"x轴偏移"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.xOffset,"onUpdate:value":t=>e.watermarkConfig.xOffset=t,onUpdateValue:t=>n("watermarkConfig",{xOffset:t})},null)]}),r(L,{label:"x轴间隙"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.xGap,"onUpdate:value":t=>e.watermarkConfig.xGap=t,onUpdateValue:t=>n("watermarkConfig",{xGap:t})},null)]}),r(L,{label:"y轴偏移"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.yOffset,"onUpdate:value":t=>e.watermarkConfig.yOffset=t,onUpdateValue:t=>n("watermarkConfig",{yOffset:t})},null)]}),r(L,{label:"y轴间隙"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.yGap,"onUpdate:value":t=>e.watermarkConfig.yGap=t,onUpdateValue:t=>n("watermarkConfig",{yGap:t})},null)]}),r(L,{label:"旋转角度"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.rotate,"onUpdate:value":t=>e.watermarkConfig.rotate=t,onUpdateValue:t=>n("watermarkConfig",{rotate:t})},null)]})]})]})}}),ts=x({name:"SegmentViewsCustomMenu",setup(){const e=Ee(Ue,{}),{updateSettingState:n}=U();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(D,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(oe,{titlePlacement:"center"},{default:()=>[r(D,{wrap:!1,align:"center",size:[4,0]},{default:()=>[r(Je,{placement:"top",showArrow:!1},{trigger:()=>r(P,{name:"question",size:"16"},null),default:()=>"菜单更新是一个复杂、耗时的操作,请手动点击【更新菜单】按钮更新设置"}),r(fn,null,{default:()=>[Y("菜单样式")]})]})]}),r(me,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(L,{label:"每级菜单缩进"},{default:()=>[r(K,{value:e.menuConfig.collapsedIndent,"onUpdate:value":t=>e.menuConfig.collapsedIndent=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIndent:t})},null)]}),r(L,{label:"菜单图标尺寸"},{default:()=>[r(K,{value:e.menuConfig.iconSize,"onUpdate:value":t=>e.menuConfig.iconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{iconSize:t})},null)]}),r(L,{label:"折叠菜单图标尺寸"},{default:()=>[r(K,{value:e.menuConfig.collapsedIconSize,"onUpdate:value":t=>e.menuConfig.collapsedIconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIconSize:t})},null)]}),r(L,{label:"菜单宽度"},{default:()=>[r(K,{value:e.menuConfig.menuWidth,"onUpdate:value":t=>e.menuConfig.menuWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{menuWidth:t})},null)]}),r(L,{label:"折叠菜单宽度"},{default:()=>[r(K,{value:e.menuConfig.collapsedWidth,"onUpdate:value":t=>e.menuConfig.collapsedWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedWidth:t})},null)]}),r(L,{showFeedback:!1,showLabel:!1},{default:()=>[r(Z,{onClick:e.throttleSetupAppMenu,block:!0,type:"primary"},{default:()=>[Y("更新菜单")]})]})]}),r(oe,null,{default:()=>[Y("其他设置")]}),r(me,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(L,{label:"反转色菜单"},{default:()=>[r(Q,{value:e.menuConfig.inverted,"onUpdate:value":t=>e.menuConfig.inverted=t,onUpdateValue:t=>n("menuConfig",{inverted:t})},null)]}),r(L,{label:"菜单标题"},{default:()=>[r(Q,{value:e.menuConfig.menuSiderBarLogo,"onUpdate:value":t=>e.menuConfig.menuSiderBarLogo=t,onUpdateValue:t=>n("menuConfig",{menuSiderBarLogo:t})},null)]}),r(L,{label:"手风琴菜单"},{default:()=>[r(Q,{value:e.menuConfig.accordion,"onUpdate:value":t=>e.menuConfig.accordion=t,onUpdateValue:t=>n("menuConfig",{accordion:t})},null)]}),r(L,{label:"原生滚动条"},{default:()=>[r(Q,{value:e.menuConfig.nativeScrollbar,"onUpdate:value":t=>e.menuConfig.nativeScrollbar=t,onUpdateValue:t=>n("menuConfig",{nativeScrollbar:t})},null)]})]})]})}}),ns=x({name:"SettingDrawer",props:wo,setup(){const{create:e}=or(),{changePrimaryColor:n,updateSettingState:t}=U(),{getAppTheme:o,getPrimaryColorOverride:l,getMenuTagSwitch:a,getBreadcrumbSwitch:s,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:d,getKeepAliveConfig:p,getMenuConfig:g,getDrawerPlacement:y,getColorWeakness:f,getWatermarkConfig:m,getDynamicDocumentTitle:h}=W(),{setupAppMenu:v}=Me(),b=Rt(v,300),c=le({menuTagSwitch:a.value,breadcrumbSwitch:s.value,copyrightSwitch:i.value,contentTransition:u.value,watermarkSwitch:d.value,keepAliveConfig:p.value,menuConfig:g.value,drawerPlacement:y.value,colorWeakness:f.value,primaryColorOverride:l.value,watermarkConfig:m.value,dynamicDocumentTitle:h.value,throttleSetupAppMenu:b}),_=()=>{e({preset:"dialog",title:"恢复默认配置",type:"warning",content:"点击【确认初始化】按钮会恢复默认系统配置,是否继续?",positiveText:"确认初始化",negativeText:"取消",onPositiveClick:()=>{no(Jr(),(T,w)=>{c[w]=T,t(w,T)}),b()}})};return Sn(Ue,c),{changePrimaryColor:n,getAppTheme:o,getPrimaryColorOverride:l,updateSettingState:t,modelReactive:c,defaultSettingBtnClick:_}},render(){const{defaultSettingBtnClick:e,$props:n}=this,{trapFocus:t,autoFocus:o,nativeScrollbar:l,...a}=n;return r(pn,N(a,{trapFocus:!1,autoFocus:!1,width:320}),{default:()=>[r(Co,{title:"个性化配置",closable:!0},{default:()=>r(cn,{type:"bar",animated:!0,defaultValue:"appearance"},{default:()=>[r(Ke,{name:"appearance",tab:"外观"},{default:()=>[r(Zr,null,null)]}),r(Ke,{name:"menu",tab:"菜单"},{default:()=>[r(ts,null,null)]}),r(Ke,{name:"watermark",tab:"水印"},{default:()=>[r(es,null,null)]}),r(Ke,{name:"common",tab:"通用"},{default:()=>[r(Qr,null,null)]})]}),footer:()=>r(D,{justify:"flex-start"},{default:()=>[r(Z,{type:"warning",onClick:e},{icon:()=>r(P,{name:"reload"},null),default:()=>"初始化配置"})]})})]})}});function os(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const as=x({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=Me(),{getBreadcrumbOptions:n}=be(),{isTabletOrSmaller:t}=ut();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(Oo,null,{default:()=>[r(Ia,{tag:"li",name:"breadcrumb",appear:!0},os(e=t.map(a=>r(To,{key:a.fullPath,onClick:l.bind(this,a)},{default:()=>{var s;return[r(ke,{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 bt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const ls=x({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:n}){const{changeMenuModelValue:t,resolveOption:o}=Me(),{getRoutes:l}=st(),a=C({get:()=>e.show,set:S=>{n("update:show",S),S||f()}}),s=le({searchValue:null,searchOptions:[]}),i=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let u=0,d=u;const{isTabletOrSmaller:p}=ut(),g=M(!1),y="content-item--active",f=()=>{s.searchOptions=[],s.searchValue=null,u=0,d=u},m=S=>{a.value||(S.ctrlKey||S.metaKey)&&S.key==="k"&&(S.preventDefault(),S.stopPropagation(),f(),a.value=!0)},h=S=>{if(S)g.value=!0;else{g.value=!1,s.searchOptions=[];return}const E=l().reduce((k,O)=>{var $;const R=Fe(O,["children","meta","path","name"]),j=o({...R,fullPath:O.path}),{breadcrumbLabel:q}=j;return($=q==null?void 0:q.toLocaleLowerCase())!=null&&$.includes(S.toLocaleLowerCase())&&xn(j)&&k.push(j),k},[]);setTimeout(()=>{s.searchOptions=E,X().then(()=>{b()}),g.value=!1},300)},v=S=>{if(S){const{meta:E}=S;E.windowOpen?window.open(E.windowOpen):(a.value=!1,t(S.fullPath,S),setTimeout(Yo,300))}},b=()=>{const S=s.searchOptions[u],E=s.searchOptions[d];S&&X().then(()=>{const k=tt(`attr:data_path="${S.path}"`),O=E?tt(`attr:data_path="${E==null?void 0:E.path}"`):null;if(O!=null&&O.length){const[R]=O;Xo(R,y)}if(k!=null&&k.length){const[R]=k;On(R,y)}})},c=S=>{const{icon:E}=S;return typeof E=="string"?r(P,{name:E,size:"24"},null):typeof E=="function"?()=>E:r(P,{name:"search",size:"24"},null)},_=S=>{S==="up"&&(u-=1,u<0&&(u=s.searchOptions.length-1)),S==="down"&&(u+=1,u>=s.searchOptions.length&&(u=0))},T=S=>{const E=S.key;switch((E==="ArrowUp"||E==="ArrowDown"||E==="Enter")&&(S.preventDefault(),S.stopPropagation()),d=u<=0?0:u,E){case"ArrowUp":_("up");break;case"ArrowDown":_("down");break;case"Enter":const k=s.searchOptions[u];k&&v(k);break}b()},w=({menuOption:S})=>r(D,N({align:"center",class:"content-item"},{onClick:v.bind(this,S),data_path:S.path}),{default:()=>[r("div",{class:"content-item-icon"},[c(S.meta)]),r("div",{class:"content-item-label"},[S.breadcrumbLabel]),r(P,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return ie(()=>{p.value&&(a.value=!1)}),Be(window,"keydown",S=>{m(S),T(S)},!0),{...Re(s),modelShow:a,helperTipOptions:i,fuzzySearchMenuOptions:Rt(h,300),searchItemClick:v,RenderPreIcon:c,isTabletOrSmaller:p,SearchItem:w,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(sn,{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(ot,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>r(mn,{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(Pt,null,{default:()=>[r(at,{show:t},{default:()=>[n.length?r(D,{vertical:!0,size:[0,6],class:"global-search__card-content"},bt(a=n.map((s,i)=>r(o,{menuOption:s,key:s.fullPath},null)))?a:{default:()=>[a]}):r(ko,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>r(D,{justify:"center",class:"global-search__empty-content"},{default:()=>[r(fn,null,{default:()=>[Y("没有搜索结果")]})]})})]})]})},action:()=>{let a;return r(D,{justify:"flex-start",align:"center",size:[16,0]},bt(a=this.helperTipOptions.map(s=>r(D,{key:s.label,size:[4,0]},{default:()=>[s.icon.map(i=>r(D,{class:"item-icon",align:"center",justify:"center"},bt(i)?i:{default:()=>[i]})),r(D,{class:"item-label",align:"center"},{default:()=>[s.label]})]})))?a:{default:()=>[a]})}})])])]})}}),rs=x({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const o=Jo();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(Z,{bordered:!1,onClick:n.bind(this),round:!0,tertiary:!0,style:"margin-right: 16px"},{icon:()=>r(P,{name:"search",size:"16"},null),default:()=>r(D,{align:"center"},{default:()=>[t("headerTooltip.Search"),r("div",{class:"global-search-btn__label"},[e()])]})})}}),ss=x({name:"AppAvatar",props:{...Ao,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}=$n();return{getSigningCallback:e}},render(){const{getSigningCallback:e,avatarSize:n,spaceSize:t,$props:o,vertical:l}=this;return r(Z,{quaternary:!0,strong:!0,focusable:!1},{default:()=>[r(D,{align:"center",size:t,vertical:l},{default:()=>[r(Ro,N(o,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:n}),null),e==null?void 0:e.name]})]})}}),is=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],us={logout:()=>{const{logout:e}=Lr();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=U();e("lockScreenSwitch",!0)}},cs=e=>{const n=us[e];n?n():window.$message.info("这个人很懒, 没做这个功能~")},ds=e=>{const{isTabletOrSmaller:n}=e,t=[],o=[{name:"menu",size:18,eventKey:"menu"}];return n.value?o:t},ps=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},ms=x({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:n}=U(),{t}=Ne(),[o,{toggleFullscreen:l,isEnabled:a}]=wn(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:i}=W(),u=M(!1),d=M(!1),{isTabletOrSmaller:p}=ut(),g=it("globalDrawerValue"),y=C(()=>ds({isFullscreen:o,isTabletOrSmaller:p})),f=C(()=>ps({isFullscreen:o,isTabletOrSmaller:p})),m={search:()=>{d.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:()=>{pe("globalDrawerValue",!g.value)}};return{leftIconOptions:y,rightTooltipIconOptions:f,toolIconClick:b=>{var c;(c=m[b])==null||c.call(m)},showSettings:u,updateLocale:e,getDrawerPlacement:s,getBreadcrumbSwitch:i,globalSearchShown:d,isRenderVNode:b=>p.value?null:b}},render(){const{rightTooltipIconOptions:e,leftIconOptions:n,getDrawerPlacement:t,getBreadcrumbSwitch:o}=this,{toolIconClick:l,updateLocale:a,isRenderVNode:s}=this;return r(gn,{class:"layout-header"},{default:()=>[r(ls,{show:this.globalSearchShown,"onUpdate:show":i=>this.globalSearchShown=i},null),r(D,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[r(D,{align:"center",wrap:!1},{default:()=>[n.map(i=>r(Hr,{key:i.name,iconName:i.name,tooltipText:vn(i.tooltip)?i.tooltip.value:i.tooltip,customClassName:i.iconClass,onClick:l.bind(this,i.name)},null)),o?r(as,null,null):null]}),r(D,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[s(r(rs,{onClick:i=>{i.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(i=>r(Z,{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(ke,{options:An,onSelect:i=>a(String(i)),trigger:"click"},{default:()=>[r(Z,{quaternary:!0,class:"override-button__layout",focusable:!1},{default:()=>[r(P,{customClassName:"layout-header__method--icon",name:"language",size:"16",cursor:"pointer"},null)]})]}),r(ke,{options:is(),onSelect:cs.bind(this),trigger:"click"},{default:()=>[r(ss,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),r(ns,{show:this.showSettings,"onUpdate:show":i=>this.showSettings=i,placement:t},null)]})}}),fs=x({name:"LayoutHeaderWrapper",setup(){return{}},render(){return r(D,{size:[0,0]},{default:()=>[r(ms,null,null)]})}});function gs(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const hs=x({name:"AppMenuTag",setup(e,{expose:n}){const t=se("scrollRef"),{getMenuKey:o,getMenuTagOptions:l}=be(),{changeMenuModelValue:a}=Me(),{getRootPath:s}=Ie(),{maximize:i}=qn(),{reload:u}=ks(),{close:d,closeAll:p,closeRight:g,closeLeft:y,closeOther:f,checkCloseLeft:m,checkCloseRight:h}=Gn(),v=["closeAll","closeRight","closeLeft","closeOther"];let b=1/0;const c={size:16},_=M([{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>r(P,{name:"close",size:c.size},null)},{label:"最大化当前页面",key:"maximizeLayoutContent",icon:()=>r(P,{name:"fullscreen_fold",size:c.size},null)},{label:"刷新当前页面",key:"reloadCurrentPage",icon:()=>r(P,{name:"reload",size:c.size},null)},{label:"新窗口打开",key:"windowOpenTab",icon:()=>r(P,{name:"shared",size:c.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>r(P,{name:"close_left",size:c.size},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>r(P,{name:"close_right",size:c.size},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>r(P,{name:"close_other",size:c.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>r(P,{name:"resize_h",size:c.size},null),disabled:!1}]),T=et(16),w={closeCurrentPage:()=>{o.value!==s.value&&d(b)},reloadCurrentPage:()=>{u()},closeAll:()=>{p()},closeRight:()=>{g(b)},closeLeft:()=>{y(b)},closeOther:()=>{f(b)},windowOpenTab:()=>{const A=l.value[b];if(!(A!=null&&A.fullPath))return;const z=A.fullPath.startsWith("#")?A.fullPath:`#${A.fullPath}`;window.open(z,"_blank")},maximizeLayoutContent:()=>{const A=l.value[b];i(!0),A&&te(A)}},S=le({x:0,y:0,actionDropdownShow:!1}),E="menu_tag_data",k=it("globalMainLayoutLoad"),O="n-scrollbar-container";let R=o.value;const j=M(!1),q=A=>{d(A)},$=(A,z)=>{for(const H of _.value)if(H.key===A){H.disabled=z;break}},te=A=>{S.actionDropdownShow=!1,a(A.fullPath,A)},G=()=>{const A=document.getElementById(T);if(A)return Array.from(A.childNodes).find($e=>Zo($e,O).value)},he=A=>{var H;const z=G();if(z){const $e=z.scrollLeft||0,Ft=A==="left"?Math.max(0,$e-200):$e+200;(H=t.value)==null||H.scrollTo({left:Ft,behavior:"smooth"})}},ne=A=>{S.actionDropdownShow=!1;const z=w[A];z==null||z()},ct=(A,z)=>{z.preventDefault(),b=A,S.actionDropdownShow=!1,X(()=>{S.x=z.clientX,S.y=z.clientY,S.actionDropdownShow=!0})},Dt=()=>{h(b)?$("closeRight",!1):$("closeRight",!0),m(b)?$("closeLeft",!1):$("closeLeft",!0)},Yn=()=>{b=l.value.findIndex(z=>z.fullPath===o.value),Dt()},Xn=A=>{l.value.length>1&&A.fullPath!==s.value&&(A.closeable=!0),j.value=!0},Jn=A=>{A.fullPath!==o.value&&(A.closeable=!1),j.value=!1},Zn=()=>{G()&&X().then(()=>{var z;(z=t.value)==null||z.scrollTo({left:99999,behavior:"smooth"})})},dt=()=>{X().then(()=>{const A=tt(`attr:${E}="${o.value}"`);if(A!=null&&A.length){const[z]=A;X().then(()=>{var H;(H=t.value)==null||H.scrollTo({left:z.offsetLeft,behavior:"smooth"})})}})},Qn=()=>{i(!0)};return Pe(()=>l.value,(A,z)=>{_.value.forEach(H=>{v.includes(H.key)&&(A.length>1?H.disabled=!1:H.disabled=!0)}),z!=null&&z.length&&(A.length>(z==null?void 0:z.length)?Zn():A.length===(z==null?void 0:z.length)&&dt()),z===void 0&&dt()},{immediate:!0}),ie(()=>{S.actionDropdownShow&&Dt(),R!==o.value&&(R=o.value,dt())}),n(),{getMenuTagOptions:l,closeCurrentMenuTag:q,getMenuKey:o,menuTagClick:te,moreOptions:_,scrollX:he,scrollRef:t,uuidScrollBar:T,actionDropdownSelect:ne,actionState:S,menuTagContextMenu:ct,setCurrentContextmenuIndex:Yn,menuTagMouseenter:Xn,menuTagMouseleave:Jn,MENU_TAG_DATA:E,iconConfig:c,maximize:i,reload:u,globalMainLayoutLoad:k,maximizeBtnClick:Qn,isMouseInMenuTag:j}},render(){let e;const{iconConfig:n,uuidScrollBar:t,getMenuTagOptions:o,MENU_TAG_DATA:l,globalMainLayoutLoad:a,isMouseInMenuTag:s}=this,{maximizeBtnClick:i,closeCurrentMenuTag:u,scrollX:d,$t:p,menuTagClick:g,menuTagContextMenu:y,menuTagMouseenter:f,menuTagMouseleave:m,actionDropdownSelect:h,reload:v}=this;return r(gn,null,{default:()=>[r("div",{class:"menu-tag"},[r(ke,{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:h.bind(this),onClickoutside:()=>{s||(this.actionState.actionDropdownShow=!1)}},null),r(D,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0},{default:()=>[r(Z,{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(Pt,N({xScrollable:!0,ref:"scrollRef"},{id:t},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[r(D,{class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},gs(e=o.map((b,c)=>r(Z,N({key:b.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:b.fullPath===this.getMenuKey?"primary":"default"},{onClick:g.bind(this,b),onContextmenu:y.bind(this,c),onMouseenter:f.bind(this,b),onMouseleave:m.bind(this,b),[l]:b.fullPath},{size:"small",focusable:!1}),{default:()=>r(_n,null,[r("span",null,{default:()=>{const{breadcrumbLabel:_,meta:{i18nKey:T}}=b;return T?p(T):_}}),r(Po,N({class:"menu-tag__btn-icon"},{onMousedown:u.bind(this,c)}),{default:()=>[r(P,{name:"close",size:"14"},null)]})])})))?e:{default:()=>[e]})]}),r(D,{align:"center",inline:!0,wrap:!1,size:[0,0]},{default:()=>[r(Z,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:d.bind(this,"right")},{icon:()=>r(P,{name:"expanded",width:n.size,height:n.size,style:{transform:"rotate(180deg)"}},null)}),r(Z,{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(Z,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:()=>{v()}},{icon:()=>r(P,{name:"reload",width:n.size,height:n.size,customClassName:`${a?"":"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(Z,{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)})]})]})]})])]})}}),vs=x({name:"LayoutFeatureWrapper",setup(){return{}},render(){return r(hs,null,null)}}),ys=e=>{const n=mt(e[0]),t=mt(e[1]),o=mt(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`}))},nn=Io(J.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),bs=()=>({setLockAppScreen:t=>{nn.value=t},getLockAppScreen:()=>nn.value}),Ss=x({name:"RLayout",setup(){const e=M(),n=M(),t=M(),{getMenuTagSwitch:o,getCopyrightSwitch:l}=W(),{getLockAppScreen:a}=bs(),s=ys([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()?null:r(xo,{class:"r-layout-full",style:[n],hasSider:!0,embedded:!0},{default:()=>[r(Nr,null,null),r($t,{class:"r-layout-full__viewer"},{default:()=>[r(fs,{ref:"layoutSiderBarRef"},null),e?r(vs,{ref:"layoutMenuTagRef"},null):null,r($t,{ref:Ce,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[r(Wn,null,null)]}),t?r(Gr,{ref:"layoutFooterRef"},null):null]})]})}}),_s=[{path:"/",name:"RLogin",component:()=>I(()=>import("./index-Dxathzqh.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:Ss,children:[...Ir(),{path:"/:catchAll(.*)",component:()=>I(()=>import("./index-CzkwrEb-.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:B("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],nt=ca({history:da(),routes:_s,scrollBehavior:e=>{Wl(e)}}),Oi=e=>{e.use(nt),jr(nt)},Lt=()=>nt?{router:nt}:{router:{}},on="YYYY-MM-DD HH:mm:ss",ws=()=>({locale:s=>{const i=Ua[s];i?ue.locale(i):ue.locale($a)},getStartAndEndOfDay:s=>{const{format:i=on}=s??{},u=ue(),d=u.startOf("day"),p=u.endOf("day"),g=u.format(i),y=d.format(i),f=p.format(i);return{today:u,startOfDay:d,endOfDay:p,formatToday:g,formatStartOfDay:y,formatEndOfDay:f}},format:(s,i)=>{const{format:u=on}=i??{};return ue(s).format(u)},isDayjs:s=>ue.isDayjs(s),daysDiff:(s,i)=>{const u=ue(s);return ue(i).diff(u,"days")},isDateInRange:(s,i)=>{const{start:u,end:d}=i,p=ue(s);return p.isAfter(u)&&p.isBefore(d)}});function ut(e){const{width:n,height:t}=Lo(e),o=M(!1),{observer:l}=e??{};return Qo(()=>{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:Te(o)}}let St=999,_t=!1;const ve="ELEMENT-FULLSCREEN-RAY",an=document.createElement("style"),Cs=(e,n)=>{const{beforeEnter:t,beforeExit:o,enter:l,exit:a,backgroundColor:s,zIndex:i,transition:u="all 0.3s var(--r-bezier)"}=n??{};let d=!1;const p={x:null,y:null},g=()=>{const h=de(e);if(!h)return;const{left:v,top:b}=h.getBoundingClientRect();p.x===null&&p.y===null&&(p.x=-v,p.y=-b),Qe(document.body,{"--element-fullscreen-z-index":fe(i,"Null")||fe(i,"Undefined")?St: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 c=` + [${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); + } + `;an.innerHTML=c,_t||document.head.appendChild(an)},y=()=>{const h=de(e);t==null||t(),h&&(h.getAttribute(ve)||h.setAttribute(ve,ve),d||(d=!0,St+=1),_t||(g(),_t=!0),h.style.transition=u,l==null||l())},f=()=>{o==null||o();const h=de(e);h&&h.removeAttribute(ve),a==null||a()},m=()=>{const h=de(e);h&&(h.getAttribute(ve)?f():y())};return zt(()=>{const h=de(e);h&&h.removeAttribute(ve),St--}),{enter:y,exit:f,toggleFullscreen:m}},wt={svg:na,png:oa,jpeg:aa,blob:la,pixelData:ra,canvas:sa},ki=(e,n)=>{const{beforeCreate:t,created:o,createdError:l,finally:a,imageType:s}=n??{};return{create:u=>new Promise((d,p)=>{var f;const g=de(e);if(t==null||t(g),!g)return l==null||l(),p("useDomToImage: element is undefined.");(f=wt[u??s??"jpeg"])==null||f.call(wt,g,n).then(m=>(o==null||o(m,g),d(m))).catch(m=>(l==null||l(m),p(m))).finally(()=>{a==null||a(g)})})}},Ai=(e,n)=>({print:()=>{const o=de(e)||e;Ko({...Ve(n,["printable"]),printable:o})}}),Ts={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},Os=(e,n)=>{const t=M(e),o=Ve(n,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size"]),a=M(Object.assign({},Ts,o,{onUpdatePage:c=>{var _;a.value.page=c,(_=t.value)==null||_.call(t)},onUpdatePageSize:c=>{var _;a.value.pageSize=c,a.value.page=1,(_=t.value)==null||_.call(t)}})),s=a.value.onUpdatePage,i=a.value.onUpdatePageSize,u=()=>a.value.itemCount,d=c=>{a.value.itemCount=c},p=()=>a.value.page,g=c=>{s(c)},y=()=>a.value.pageSize,f=c=>{i(c)},m=()=>a.value,h=e,v=c=>{t.value=c},b=()=>{const{pageSizes:c}=a.value;a.value.page=1,a.value.pageSize=(c==null?void 0:c[0])||10};return zt(()=>{t.value=void 0}),[a,{getItemCount:u,setItemCount:d,getPage:p,setPage:g,getPageSize:y,setPageSize:f,getPagination:m,getCallback:h,setCallback:v,resetPagination:b}]},qn=()=>({isLayoutContentMaximized:C(()=>it("layoutContentMaximize").value),maximize:(t,o)=>{var i;const{scrollToOptions:l}=o??{},a=de(Ce),{toggleFullscreen:s}=Cs(a,o);pe("layoutContentMaximize",t),s(),l&&t&&((i=Ce==null?void 0:Ce.value)==null||i.scrollTo(l))}}),ks=()=>({reload:(o=800)=>{pe("globalMainLayoutLoad",!1),setTimeout(()=>pe("globalMainLayoutLoad",!0),o)},openSpin:()=>{pe("layoutContentSpinning",!0)},closeSpin:()=>{pe("layoutContentSpinning",!1)}}),Ri=()=>({setWatermarkContent:l=>{const{getWatermarkConfig:a}=W(),s=Object.assign({},a.value,{content:l}),{updateSettingState:i}=U();i("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:l}=U();l("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:l}=U();l("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:l}=W(),{updateSettingState:a}=U();a("watermarkSwitch",!l.value)}}),He=e=>{const{getPrimaryColorOverride:n}=W(),{updateSettingState:t}=U();t("primaryColorOverride",e?Object.assign({},n.value,ae.appNaiveUIThemeOverrides.dark,ae.appNaiveUIThemeOverridesCommon.dark):Object.assign({},n.value,ae.appNaiveUIThemeOverrides.light,ae.appNaiveUIThemeOverridesCommon.light))},Pi=()=>{const e=()=>{const{getAppTheme:a}=W(),{t:s}=Ne();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}=U();a("_appTheme",!0),a("appTheme","dark"),He(!0)},lightTheme:()=>{const{updateSettingState:a}=U();a("_appTheme",!1),a("appTheme","light"),He(!1)},toggleTheme:()=>{const{theme:a}=e(),{updateSettingState:s}=U();s("_appTheme",!a),s("appTheme",a?"light":"dark"),He(!a)},getAppTheme:e,syncSystemTheme:()=>{const{getAppTheme:a}=W(),{updateSettingState:s}=U(),{system:i}=hn();s("_appTheme",i.value==="dark"),s("appTheme","auto"),He(a.value)}}},we=(e,n)=>{const{getMenuTagOptions:t}=be();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 Gn(){const{getMenuTagOptions:e,getMenuKey:n}=be(),{changeMenuModelValue:t,spliceMenTagOptions:o,setMenuTagOptions:l,resolveOption:a}=Me(),s=()=>e.value.findIndex(m=>m.fullPath===n.value);return{close:m=>{const h=we(m,"close");if(e.value.length!==1&&h){const{index:v,option:b}=h;if(o(v),b.fullPath===n.value){const c=e.value[v-1];c&&t(c.fullPath,c)}}},closeAll:()=>{o(0,e.value.length);const{getRootPath:m}=Ie(),{router:{getRoutes:h}}=Lt(),v=h().find(b=>b.path===m.value);if(v){const b=Fe(v,At),c=a(b);t(c.path,a({...c,fullPath:c.path}))}},closeRight:m=>{const h=we(m,"closeRight");if(h){const{option:v,index:b}=h,c=e.value.length-b,_=s();o(b+1,c),b<=_&&n.value!==v.fullPath&&t(v.fullPath,v)}},closeLeft:m=>{const h=we(m,"closeLeft");if(h){const{option:v,index:b}=h,c=s();o(0,b),c<=b&&n.value!==v.fullPath&&t(v.fullPath,v)}},closeOther:m=>{const h=we(m,"closeOther");if(h){const{option:v}=h;n.value!==v.fullPath?(o(0,e.value.length),t(v.fullPath,v)):l(v,!1)}},getCurrentTagIndex:s,checkCloseRight:m=>{const h=we(m,"checkCloseRight");if(h){const{index:v}=h,b=e.value.length-1;return!(v>=b)}return!1},checkCloseLeft:m=>{const h=we(m,"checkCloseRight");if(h){const{index:v}=h,b=e.value.length-1;return v===0?!1:v>0&&b>0}return!1}}}function xi(){return{navigationTo:(n,t)=>{const{router:{getRoutes:o,push:l,replace:a}}=Lt(),{isPush:s=!0,query:i}=t||{},u=d=>s?l({path:d,query:i}):a({path:d,query:i});if(typeof n=="number"){if(isNaN(n)){console.warn(`[navigationTo]: The ${n} is NaN, expect number.`);return}const{getMenuOptions:d}=be();if(n>d.value.length){console.warn(`[navigationTo]: The current ${n} exceeds the maximum number of menus.`);return}const p=d.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 d=o().find(p=>p.path===n);d?u(d.path):console.warn(`[navigationTo]: The path "${n}" is not found.`)}else u(n.fullPath)}}}function Ie(){const{getAppRootRoute:e}=W(),{updateSettingState:n}=U(),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 As=(e,n)=>{const{show:t,...o}=n;e.meta.extra=Object.assign({},e.meta.extra,{...o,show:t}),e.extra=jn(e)},ln=(e,n,t)=>{const o=Vn(e,n);o&&As(o,t)},Ct=(e,n,t)=>{const{getMenuOptions:o}=be();if(typeof e=="string")ln(o.value,e,t);else if(fe(e,"Object")){const{fullPath:l}=e;ln(o.value,l,t)}else console.warn(`[useBadge ${n}]: target expect string or object.`)};function Ei(){return{hidden:o=>{Ct(o,"hidden",{show:!1})},show:(o,l)=>{Ct(o,"show",{...l,show:!0})},update:(o,l)=>{Ct(o,"update",l)}}}const zi=()=>{const e=Rn.value,{scrollTo:n}=e||{};if(!n)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return n},Hn=()=>Ze(J.localeLanguage,"localStorage",{defaultValue:Va});export{ii as $,ri as A,_i as B,wi as C,$a as D,yi as E,ui as F,pi as G,mi as H,vi as I,fi as J,Os as K,Rn as L,ai as M,di as N,fr as O,or as P,Or as Q,gi as R,Br as S,oi as T,Si as U,hi as V,bi as W,ws as X,$r as Y,Ti as Z,I as _,ki as a,gr as a0,Ln as a1,qn as a2,xi as a3,ks as a4,Ri as a5,Ei as a6,Ai as b,zi as c,si as d,W as e,J as f,ni as g,U as h,bs as i,Lr as j,ut as k,ss as l,it as m,li as n,ci as o,Oi as p,Ie as q,Ne as r,Ci as s,P as t,Pi as u,An as v,gt as w,Lt as x,ti as y,br as z}; diff --git a/js/hooks-AGBWEt_R.js.gz b/js/hooks-AGBWEt_R.js.gz new file mode 100644 index 00000000..dd96237a Binary files /dev/null and b/js/hooks-AGBWEt_R.js.gz differ diff --git a/js/hooks-DNoo5Jj5.js b/js/hooks-DNoo5Jj5.js deleted file mode 100644 index 02403232..00000000 --- a/js/hooks-DNoo5Jj5.js +++ /dev/null @@ -1,12 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/en-US-D1T6JeAd.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-C6aYKqdf.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-Ds-HrVrM.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/currency.js@2.0.4-9OAR_aOO.js","js/lodash-es@4.17.21-CeZG2a4n.js","js/naive-ui@2.40.1_vue@3.5.12-DtgApL3K.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-gFk5c7Fb.js","js/evtd@0.2.4-CI_DDEu_.js","js/@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js","js/vooks@0.2.12_vue@3.5.12-CeQQlSXI.js","js/vdirs@0.1.8_vue@3.5.12-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-ewSD1rNh.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-C00EZtgk.js","js/@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js","js/utils-DewQlJ2W.js","js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_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.2.2_vue@3.5.12-DjAImzYl.js","js/vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js","js/html-to-image@1.11.11-BOFdlgi9.js","js/vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js","js/vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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-B5CyUpxI.js","js/index-Drj3PGgk.js","js/index-CT0XK3_m.js","css/index-D_4DGt8i.css","js/index-EwsxEsV-.js","js/instance-CZSdczlG.js","js/axios@1.7.5-C8DqakIB.js","css/index-QAd2IBUs.css","js/BarcodeDemo-jWbBfNPc.js","js/index-b8T1nLRq.js","js/index-D1JklQAF.js","js/index-Ov7I6uVL.js","js/index-Dx_gm2nu.js","css/index-DHYYVpM7.css","js/index-Dor1-zOS.js","js/index-BIEmcx8R.js","js/index-D1ZCvgoG.js","js/index-CtH5AG_t.js","js/index-BuRzBDbW.js","js/index-DSsu4ch3.js","js/index-D03MkEFA.js","js/index-C4S3Jatz.js","js/index-CrzR9VpM.js","js/vue3-next-qrcode@2.0.10_typescript@5.2.2-BJQJW2Mf.js","css/vue3-next-qrcode@2.0.10_typescript@5.2-CG4VaxS5.css","js/ray-dCjhX_JK.js","js/index-D1ed38ZE.js","css/index-B6yUFiKH.css","js/index-CZrqUJff.js","js/index-BaTrdXhk.js","js/index-B4VbZD3l.js","css/index-Dig957GB.css","js/index-D2Sm3Md2.js","js/index-DbfJADJ4.js","css/index-Eq1L-L2-.css","js/TablePro-DDhVUTGT.js","js/mockjs@1.1.0-CxlURkif.js","js/index-EwbgOaHC.js","js/index-nJFSuG-j.js","js/index-BVKRM6-W.js","css/index-74sXJ5VP.css","js/index-D1ThNEs9.js","css/index-b1h4j9PV.css"])))=>i.map(i=>d[i]); -var Qn=Object.defineProperty;var eo=(e,n,t)=>n in e?Qn(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var Vt=(e,n,t)=>eo(e,typeof n!="symbol"?n+"":n,t);import{s as mt,c as Xe,t as Et,i as ln,p as Fe,o as ot,f as to}from"./lodash-es@4.17.21-CeZG2a4n.js";import{z as Nt,d as Ut,f as no,g as oo,N as at,a as ao,b as lo,c as D,e as lt,m as ro,h as rn,u as so,S as zt,i as io,j as ke,k as uo,l as sn,n as Be,o as co,p as po,q as de,t as mo,r as fo,s as un,v as go,w as cn,x as Je,y as ho,A as dn,B as vo,C as yo,D as bo,E as ne,F as So,G as $t,H as I,I as Q,J as K,K as _o,L as pn,M as mn,O as Z,P as wo,Q as Co,R as Ke,T as To,U as Oo,V as ko,W as Ao,X as Ro,Y as fn,Z as Po,_ as Kt,$ as xo}from"./naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js";import{o as Eo,u as je,a as zo,b as Mo,c as gn,d as ft,e as Mt,f as Io}from"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import{k as M,l as Te,e as le,n as Lo,x as Re,a as hn,s as Do,u as oe}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{n as X,f as fe,l as x,b as r,m as V,p as ge,q as pe,j as C,w as Pe,t as Fo,k as Ve,v as vn,h as rt,i as xe,x as yn,F as bn,y as Bo,z as Se,A as jo,C as gt,D as Vo,E as Ie,S as No,K as Uo,G as Wt,H as $o,I as Y}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{d as se}from"./dayjs@1.11.10-C8LoRVP6.js";import{p as Ko}from"./print-js@1.6.0-BdoEj60G.js";import{u as Sn}from"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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 Wo}from"./jsbarcode@3.11.6-DGNGFp02.js";import{g as Ze,i as me,s as It,a as At,c as qo,u as _n,b as De,l as wn,d as Cn,e as Go,f as N,r as ye,h as B,j as Ho,k as Qe,q as et,m as Tn,p as On,n as Lt,o as qt,t as _e,v as Yo,w as Xo,x as Jo,y as Zo,z as Qo,A as ue}from"./utils-DewQlJ2W.js";import{s as ea}from"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import{d as st,c as ta}from"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import{t as na,a as oa,b as aa,c as la,d as ra,e as sa}from"./html-to-image@1.11.11-BOFdlgi9.js";import{u as it,a as ia,o as ua,c as ca,b as da}from"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import{c as pa}from"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import{r as ma,u as Le,i as fa,a as ga,b as ha,c as va,d as ya,e as ba,f as Sa,g as _a,h as wa,j as Ca,k as Ta,l as Oa,m as ka,n as Aa,o as Ra,p as Pa,q as xa,s as Ea}from"./echarts@5.5.0-CezqL3m-.js";import{g as za}from"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import{T as Ma,a as Ia}from"./@vue_runtime-dom@3.5.12-ewSD1rNh.js";import{i as Gt}from"./interactjs@1.10.26-DZL_TZzP.js";const Hs=(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(),d=i.join(".");u&&(d?(mt(t,u,t[u]||{}),mt(t[u],d,l)):mt(t,u,l||{}))}),t},La="modulepreload",Da=function(e){return"/ray-template/"+e},Ht={},L=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=Da(i),i in Ht)return;Ht[i]=!0;const u=i.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${d}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":La,u||(p.as="script"),p.crossOrigin="",p.href=i,s&&p.setAttribute("nonce",s),document.head.appendChild(p),u)return new Promise((h,S)=>{p.addEventListener("load",h),p.addEventListener("error",()=>S(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})},Fa=(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.":""))))})},Ba=async e=>{var t;const n={};for(const o of e){const l=await Fa(Object.assign({"../lang/en-US.ts":()=>L(()=>import("./en-US-D1T6JeAd.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])),"../lang/zh-CN.ts":()=>L(()=>import("./zh-CN-B5CyUpxI.js"),__vite__mapDeps([48,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]))}),`../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},Ys=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}}},Xs={max:5,closable:!1},Js="loading",Zs="",J={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},ja=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],ae={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"},kn=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Va="zh-CN",Na="zh-CN",Ua={"zh-CN":"zh-cn","en-US":"en"},$a="zh-cn",Qs={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$/},ei={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},Ce=M(null),An=M(null),Ka={setupRouterLoadingBar:!0,setupRouterGuard:!0},Wa=["RLogin","ErrorPage","RayTemplateDoc"],We=[],ti=(e,n)=>{const t=M(0),o=M(0),l=M(!1),{clickOutside:a}={},s=h=>{l.value=h},i=h=>{h.preventDefault(),s(!1),X().then(()=>{const{clientX:S,clientY:f}=h;t.value=S,o.value=f,s(!0)})};a&&Eo(e,h=>{a(h)});const u=je(e,"contextmenu",i,n),d=je(e,"click",()=>{s(!1)});return{stop:()=>{u(),d()},x:Te(t),y:Te(o),show:Te(l),updateShow:s}},tt=le({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function ce(e,n,t){Object.hasOwn(tt,e)&&(tt[e]=n)}function ut(e){return Te(Lo(tt,e))}function qa(){return{...Re(Te(tt))}}let ie;const Ga=async()=>{const e=Gn(),n=await Ba(kn);return pa({legacy:!1,locale:e,messages:n,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:Na})},ni=async e=>{const n=await Ga();e.use(n),ie=n},Yt=(e,n)=>n,Ne=e=>{if(!ie)return{t:a=>Yt(e,a),locale:a=>{}};const{t:n,...t}=ie.global;return{...t,t:(a,...s)=>a?!a.includes(".")&&!e?a:n(Yt(e,a),...s):"",locale:a=>{ie.mode==="legacy"?ie.global.locale=a:hn(ie.global.locale)?ie.global.locale.value=a:ie.global.locale=a}}},j=e=>e,Ha={path:"/dashboard",component:()=>L(()=>import("./index-Drj3PGgk.js"),__vite__mapDeps([49,12,1,2,3,4,5,6,7,8,9,10,11,50,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,51])),meta:{i18nKey:j("menu.Dashboard"),icon:"dashboard",order:0}},Ya=Object.freeze(Object.defineProperty({__proto__:null,default:Ha},Symbol.toStringTag,{value:"Module"})),Xa={path:"/axios",name:"RAxios",component:()=>L(()=>import("./index-EwsxEsV-.js"),__vite__mapDeps([52,4,5,6,7,8,2,9,10,53,54,1,3,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,55])),meta:{i18nKey:j("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},Ja=Object.freeze(Object.defineProperty({__proto__:null,default:Xa},Symbol.toStringTag,{value:"Module"})),Za={path:"barcode",component:()=>L(()=>import("./BarcodeDemo-jWbBfNPc.js"),__vite__mapDeps([56,12,1,2,3,4,5,6,7,8,9,10,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,11,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},Qa=Object.freeze(Object.defineProperty({__proto__:null,default:Za},Symbol.toStringTag,{value:"Module"})),el={path:"/cache-demo",component:()=>L(()=>import("./index-b8T1nLRq.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,8,9,10,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.CacheDemo"),icon:"other",order:3}},tl=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),nl={path:"/context-menu",component:()=>L(()=>import("./index-D1JklQAF.js"),__vite__mapDeps([58,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.ContextMenu"),icon:"other",order:2}},ol=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),al={path:"/directive",component:()=>L(()=>import("./index-Ov7I6uVL.js"),__vite__mapDeps([59,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{i18nKey:j("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},ll=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"})),rl={path:"/echart",component:()=>L(()=>import("./index-Dx_gm2nu.js"),__vite__mapDeps([60,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,61])),meta:{i18nKey:j("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},sl=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),il={path:"/form",component:()=>L(()=>import("./index-Dor1-zOS.js"),__vite__mapDeps([62,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},ul=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),cl={path:"/iframe",component:()=>L(()=>import("./index-BIEmcx8R.js"),__vite__mapDeps([63,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},dl=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"})),pl={path:"/mock-demo",component:()=>L(()=>import("./index-D1ZCvgoG.js"),__vite__mapDeps([64,12,1,2,3,11,4,5,6,7,8,9,10,53,54,32,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},ml=Object.freeze(Object.defineProperty({__proto__:null,default:pl},Symbol.toStringTag,{value:"Module"})),fl={path:"/modal-demo",component:()=>L(()=>import("./index-CtH5AG_t.js"),__vite__mapDeps([65,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.Modal"),icon:"other",order:3}},gl=Object.freeze(Object.defineProperty({__proto__:null,default:fl},Symbol.toStringTag,{value:"Module"})),Ye=()=>L(()=>Promise.resolve().then(()=>Nr),void 0),hl={path:"/multi",component:Ye,meta:{i18nKey:j("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>L(()=>import("./index-BuRzBDbW.js"),__vite__mapDeps([66,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:Ye,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>L(()=>import("./index-DSsu4ch3.js"),__vite__mapDeps([67,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:Ye,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>L(()=>import("./index-D03MkEFA.js"),__vite__mapDeps([68,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},vl=Object.freeze(Object.defineProperty({__proto__:null,default:hl},Symbol.toStringTag,{value:"Module"})),yl={path:"/precision",component:()=>L(()=>import("./index-C4S3Jatz.js"),__vite__mapDeps([69,1,2,3,4,5,6,7,8,9,10,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.CalculatePrecision"),icon:"other",order:2}},bl=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"})),Sl={path:"/qrcode",component:()=>L(()=>import("./index-CrzR9VpM.js"),__vite__mapDeps([70,71,7,5,6,72,73,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{i18nKey:j("menu.QRCode"),icon:"other",order:2}},_l=Object.freeze(Object.defineProperty({__proto__:null,default:Sl},Symbol.toStringTag,{value:"Module"})),wl={path:"rely-about",component:()=>L(()=>import("./index-D1ed38ZE.js"),__vite__mapDeps([74,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,75])),meta:{i18nKey:j("menu.RelyAbout"),icon:"rely",order:999}},Cl=Object.freeze(Object.defineProperty({__proto__:null,default:wl},Symbol.toStringTag,{value:"Module"})),Tl={path:"/router-demo",component:Ye,meta:{i18nKey:j("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>L(()=>import("./index-CZrqUJff.js"),__vite__mapDeps([76,12,1,2,3,39,5,6,7,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,4,8,9,10,32,33,34,35,36,37,38,40,41,42,43,44,45,46,47])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>L(()=>import("./index-BaTrdXhk.js"),__vite__mapDeps([77,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},Ol=Object.freeze(Object.defineProperty({__proto__:null,default:Tl},Symbol.toStringTag,{value:"Module"})),kl={path:"/scroll-reveal",component:()=>L(()=>import("./index-B4VbZD3l.js"),__vite__mapDeps([78,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,79])),meta:{i18nKey:j("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},Al=Object.freeze(Object.defineProperty({__proto__:null,default:kl},Symbol.toStringTag,{value:"Module"})),Rl={path:"/segment",component:()=>L(()=>import("./index-D2Sm3Md2.js"),__vite__mapDeps([80,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},Pl=Object.freeze(Object.defineProperty({__proto__:null,default:Rl},Symbol.toStringTag,{value:"Module"})),xl={path:"/svg-icons",component:()=>L(()=>import("./index-DbfJADJ4.js"),__vite__mapDeps([81,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,82])),meta:{i18nKey:j("menu.SvgIcon"),icon:"other",order:3}},El=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),zl={path:"/table-pro",component:()=>L(()=>import("./TablePro-DDhVUTGT.js"),__vite__mapDeps([83,32,12,1,2,3,4,5,6,7,8,9,10,11,13,53,54,84,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},Ml=Object.freeze(Object.defineProperty({__proto__:null,default:zl},Symbol.toStringTag,{value:"Module"})),Il={path:"/table",component:()=>L(()=>import("./index-EwbgOaHC.js"),__vite__mapDeps([85,32,12,1,2,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Ll=Object.freeze(Object.defineProperty({__proto__:null,default:Il},Symbol.toStringTag,{value:"Module"})),Dl={path:"/template-hooks",component:()=>L(()=>import("./index-nJFSuG-j.js"),__vite__mapDeps([86,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.TemplateHooks"),icon:"other",order:1}},Fl=Object.freeze(Object.defineProperty({__proto__:null,default:Dl},Symbol.toStringTag,{value:"Module"})),Bl=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Ya,"/src/router/modules/demo/axios.ts":Ja,"/src/router/modules/demo/barcode.ts":Qa,"/src/router/modules/demo/cache-demo.ts":tl,"/src/router/modules/demo/context-menu.ts":ol,"/src/router/modules/demo/directive.ts":ll,"/src/router/modules/demo/echart.ts":sl,"/src/router/modules/demo/form.ts":ul,"/src/router/modules/demo/iframe.ts":dl,"/src/router/modules/demo/mock.ts":ml,"/src/router/modules/demo/modal.ts":gl,"/src/router/modules/demo/multi-menu.ts":vl,"/src/router/modules/demo/precision.ts":bl,"/src/router/modules/demo/qrcode.ts":_l,"/src/router/modules/demo/rely.ts":Cl,"/src/router/modules/demo/router-demo.ts":Ol,"/src/router/modules/demo/scroll-reveal.ts":Al,"/src/router/modules/demo/segment.ts":Pl,"/src/router/modules/demo/svg-icons.ts":El,"/src/router/modules/demo/table-pro.ts":Ml,"/src/router/modules/demo/table.ts":Ll,"/src/router/modules/demo/template-hooks.ts":Fl});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},[])},jl=e=>e[0]==="/",Rn=(e,n=[],t="")=>{var o;if(!Array.isArray(e))return[];for(const l of e){const a=t+(jl(l.path)?l.path:"/"+l.path);if((o=l.children)!=null&&o.length){Rn(l.children,n,a);continue}else n.push({...l,path:a})}return n},Vl=e=>Array.isArray(e)?Rn(Xe(e)):[],Nl=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}),Ul=e=>{const{beforeEach:n}=e,{getRootPath:t}=Me(),o=(l,a)=>l.path==="/"||a.path==="/login";n((l,a,s)=>{const i=Ze(J.token,"localStorage"),u=Ze(J.appMenuKey,"sessionStorage",{defaultValue:t.value}),{meta:d,name:p}=l;i!==null?o(l,a)?ht(!0):!me(p,"Symbol")&&p&&Wa.includes(p)?s():$n(d)?o(l,a)?u?s(u):ht(!0):s():ht(!0):o(l,a)?s():s("/")})},ht=(e=!0)=>{const{router:n}=Ft(),{push:t,replace:o}=n,{getRootPath:l}=Me();It(J.appMenuKey,l.value,"localStorage"),e?o(l.value):t(l.value)},$l=e=>{var t;const{meta:n}=e;n!=null&&n.ignoreAutoResetScroll||(t=Ce.value)==null||t.scrollTo({top:0,left:0,behavior:"smooth"})},Kl=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()})},Pn=e=>{const{meta:n={}}=e,{hidden:t,sameLevel:o,env:l}=n,{MODE:a}=At();return!(o||t||l&&typeof l=="string"&&l!==a||l&&Array.isArray(l)&&!l.includes(a))};var Wl={pkg:{dependencies:{"@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/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@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",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","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-compression":"^0.5.1","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.0.13"},name:"ray-template",version:"5.0.3"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Ae=st("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=Wl,{locale:n}=Ne(),{locale:t}=ys(),o=le({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},_appTheme:!1,appTheme:"light",menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:Gn(),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}),l=u=>{n(u),t(u),o.localeLanguage=u,It(J.localeLanguage,u,"localStorage")},a=(u,d=.3)=>{const p=qo(u,d),h={primaryColor:u,primaryColorHover:u,primaryColorPressed:u};o.primaryColorOverride.common=h;const S=document.body;S.style.setProperty("--ray-theme-primary-color",u),S.style.setProperty("--ray-theme-primary-fade-color",p)},s=(u,d,p)=>{_n(o,u,d,p)},i=u=>{const d=document.documentElement;s("colorWeakness",u),De(d,{filter:u?"invert(100%)":""})};return fe(()=>{var u;o.appTheme?o.primaryColorOverride=Object.assign({},o.primaryColorOverride,ae.appNaiveUIThemeOverrides.dark,ae.appNaiveUIThemeOverridesCommon.dark):o.primaryColorOverride=Object.assign({},o.primaryColorOverride,ae.appNaiveUIThemeOverrides.light,ae.appNaiveUIThemeOverridesCommon.light),i(o.colorWeakness),o.dynamicDocumentTitle||(document.title=((u=o.sideBarLogo)==null?void 0:u.title)||"Ray Template")}),{...Re(o),updateLocale:l,changePrimaryColor:a,updateSettingState:s,toggleColorWeakness:i}},{persist:{key:J.appPiniaSettingStore}}),xn={...no,onRegister:{type:[Function,Array],default:null}},En={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},...oo};function ql(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const oi=x({name:"RCollapse",props:Object.assign({},xn,{...En,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(vr,V(l,{labelPlacement:"top",showFeedback:!1}),{default:()=>[r(Yl,l,ql(e)?e:{default:()=>[e]})]})}}),Gl={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:()=>wn()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>Cn()},onRegister:{type:[Function,Array],default:null}},Hl=Go(),Xt="__R_CHART_DOWN_LOAD_CHART__";Hl.forEach(e=>{ma(e.name,e.theme)});const ai=x({name:"RChart",props:Gl,setup(e,{expose:n}){const{getAppTheme:t}=W(),o=pe("rayChartRef"),l=pe("rayChartWrapperRef"),a=Do();let s,i;const{echartTheme:u}=ae;let d;const p=C(()=>[{label:"下载图片",key:Xt,disabled:!(a.value&&a.value.getDom())}]),h=C(()=>({"--ray-chart-width":N(e.width),"--ray-chart-height":N(e.height)})),S=M(!1);let f;const m={aria:e.showAria},_=async()=>{var O;Le([ga,ha,va,ya,ba,Sa,_a,wa]),Le([Ca,Ta,Oa,ka,Aa,Ra]),Le([Pa,xa]),Le([Ea]);try{Le((O=e.use)==null?void 0:O.filter(Boolean))}catch(R){console.error("[RChart register error]: ",R)}},g=()=>{if(a.value&&T(),e.theme==="default"){e.autoChangeTheme?c("dark"):c("");return}if(e.theme)c(e.theme);else{const O=e.autoChangeTheme&&t.value?`${u}-dark`:u;c(O)}},v=O=>{let R=oe(O);return R=(q=>Object.assign({},R,q))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),R},c=(O=u)=>{var he;const R=o.value,F=v(e.options),{height:q,width:$}=R.getBoundingClientRect(),{onSuccess:ee,onError:G}=e;try{a.value=fa(R,O,{width:$===0?200:void 0,height:q===0?200:void 0}),ee&&B(ee,a.value),e.nextTick?(a.value.setOption({}),X(()=>{var te;F&&((te=a.value)==null||te.setOption(F))})):F&&((he=a.value)==null||he.setOption(F))}catch(te){throw G&&B(G),new Error(`[RChart render error]: ${te}`)}finally{const{onFinally:te}=e;te&&B(te)}},y=()=>{var O;return!!((O=a.value)!=null&&O.isDisposed())},T=()=>{var O;y()||(O=a.value)==null||O.dispose()},w=()=>{a.value&&a.value.resize()},b=(O,R)=>{if(O===Xt&&!y()){const{filename:q,...$}=e.downloadOptions;Ho(a.value.getDataURL($),q??`${new Date().getTime()}`)}const{onDropdownSelect:F}=e;F&&B(F,O,R)},E=()=>{var R;if(e.autoResize&&(s||(s=Et(w,500)),i||(i=Mo(e.autoResizeObserverTarget||l,s))),(R=a.value)!=null&&R.getDom()||!S.value&&e.intersectionObserver)return;g(),f==null||f.stop();const{onRegister:O}=e;O&&a.value&&B(O,a.value,E,k)},k=()=>{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(),g())}),fe(()=>{var O,R;e.intersectionObserver&&(f=zo(e.intersectionObserverTarget||l,([F])=>{S.value=F.isIntersecting},e.intersectionOptions)),e.watchOptions?d=za(()=>e.options,F=>{var ee;const q=v(F),$=Object.assign({},Cn(),e.setChartOptions);(ee=a.value)==null||ee.setOption(q,$)},{deep:!0,throttle:e.watchOptionsThrottleWait}):d==null||d(),e.loading?(O=a.value)==null||O.showLoading(wn(e.loadingOptions)):(R=a.value)==null||R.hideLoading(),e.showAria!==m.aria&&a.value&&(a.value.setOption(v(e.options)),m.aria=e.showAria),S.value&&!y()&&E()}),n(),Fo(async()=>{await _()}),Ve(()=>{E()}),vn(()=>{k(),d==null||d()}),{rayChartRef:o,cssVarsRef:h,rayChartWrapperRef:l,moreDropDownOptions:p,dropdownSelect:b}},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(at,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:n,bordered:a,embedded:!0},{default:ye(r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:ye(e,{defaultElement:r("div",{style:"display: none;"},null)}),"header-extra":ye(i,{defaultElement:r(In,{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)])}}),li=()=>{let e,n,t;const o=(u,d,p)=>{u&&(e=u,n=p,t=d)},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)}]},Yl=x({name:"RCollapseGrid",props:En,setup(e){const n=M(!e.open),t=C(()=>({"--r-collapse-grid-action-align":e.actionAlign})),o=()=>{const{onUpdateOpen:a,"onUpdate:open":s}=e;n.value=!n.value,a&&B(a,n.value),s&&B(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 fe(()=>{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:d,bordered:p}=this;return r(at,{bordered:p,style:[d]},{default:()=>r(ao,V({class:"ray-collapse-grid"},l,{collapsed:a,xGap:s||12,yGap:i||12,collapsedRows:u}),{default:()=>[t==null?void 0:t(),r(lo,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[r(D,{justify:"end",align:"center"},{default:()=>[n==null?void 0:n(),e?e(a):o(a)]})]})]})})}}),Xl={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=x({name:"RIcon",props:Xl,setup(e){const n=C(()=>`#${e.prefix}-${e.name}`),t=C(()=>({"--ray-icon-width":e.width?N(e.width):N(e.size),"--ray-icon-height":e.height?N(e.height):N(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&&B(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",V({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),Jl={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}},ri=x({name:"RIframe",props:Jl,setup(e,{expose:n}){const t=C(()=>({"--ray-iframe-frameborder":N(e.frameborder),"--ray-iframe-width":N(e.width),"--ray-iframe-height":N(e.height)})),o=pe("iframeRef"),l=M(!0),a=i=>{l.value=!1;const{onSuccess:u}=e;u&&B(u,o.value,i)},s=i=>{l.value=!1;const{onError:u}=e;u&&B(u,i)};return je(o,"load",a),je(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(lt,V(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)})])}}),Zl={...ro,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}},Ql=(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=Gt(e).draggable({inertia:!0,autoScroll:!0,allowFrom:a,modifiers:[Gt.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:i=>{o==null||o(i)}}}).resizable(!1);l(s)}},30)})},zn=(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;Ql(t,a,{scheduler:d=>{const p=d.target;i+=d.dx,u+=d.dy,p.style.transform=`translate(${i}px, ${u}px)`,s==null||s(i,u,d)}}).then(d=>{o(d)})}else l()})},er="r-modal__preset-card--fullscreen",Mn="r-modal",Oe={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},si=x({name:"RModal",props:Zl,setup(e){const n=C(()=>({[Oe.width]:N(e.width??600),[Oe.cardWidth]:N(e.cardWidth??600),[Oe.dialogWidth]:N(e.dialogWidth??446)})),t=Qe();let o;const l={x:0,y:0},a=C(()=>e.preset==="card"&&e.fullscreen);return Pe(()=>e.show,s=>{s&&e.dad&&(e.preset==="card"||e.preset==="dialog")?X(()=>{const i=document.getElementById(t);i&&zn(i,{preset:e.preset,x:l.x,y:l.y,dargCallback:(u,d)=>{l.x=u,l.y=d}}).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(rn,V({class:[Mn,i?er:""],style:[a,i?"height: 100vh":""],preset:o},{id:s},l,t),{...n})}}),tr=()=>{const{create:e,destroyAll:n}=so();return{create:o=>{const{content:l,...a}=o;let s=l;a.preset==="card"&&a.fullscreen&&(s=()=>rt(zt,{themeOverrides:{color:"rgba(0, 0, 0, 0)",colorHover:"rgba(0, 0, 0, 0)"},trigger:"none",style:{width:"auto",height:"calc(100vh - 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:d,width:p,cardWidth:h,dialogWidth:S}=o,f=e({...a,content:s}),{key:m}=f,_={[Oe.width]:N(p??600),[Oe.cardWidth]:N(h??600),[Oe.dialogWidth]:N(S??446)};return X(()=>{const[g]=et(`[internalkey="${m}"]`)||[];if(g){if(u&&zn(g,{preset:i,x:0,y:0}),d&&i==="card"){const v=g.querySelector(".n-card__content");v&&De(v,{maxHeight:"calc(100vh - 9px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))",overflowY:"hidden",padding:"0"}),De(g,{width:"100%",height:"100vh"})}De(g,_),Tn(g,Mn)}}),f},destroyAll:n}},nr={...io,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function or(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const In=x({name:"RMoreDropdown",props:nr,render(){let e;const{iconSize:n,cursor:t,icon:o}=this,{default:l}=this.$slots;return r(ke,V(this.$props,this.$attrs,{placement:"bottom-start"}),or(e=ye(l,{defaultElement:r(P,{name:o,size:n,cursor:t},null)}))?e:{default:()=>[e]})}}),Ee={...uo,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}},re={tableIconSize:"18",tableKey:Symbol("r-table")},ar=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],lr=x({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...Ee},setup(e){return{size:M(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:l=>{const{onChangeSize:a}=e;a&&B(a,l)}}},render(){return r(sn,{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:re.tableIconSize,cursor:"pointer"},null)]})}}),rr=x({name:"TableFullscreen",setup(){const{wrapperRef:e}=xe(re.tableKey,{}),[n,{toggleFullscreen:t,isEnabled:o}]=Sn(e);return{toggleFullscreen:t,isEnabled:o}},render(){const{toggleFullscreen:e,isEnabled:n,$t:t}=this;return r(P,{name:"fullscreen",size:re.tableIconSize,cursor:"pointer",onClick:()=>{n||window.$message.warning(t("globalMessage.isEnabledFullscreen")),e()}},null)}}),sr=()=>r(P,{name:"draggable",size:14,cursor:"grab"},null),Jt=({icon:e,title:n,onClick:t,customClassName:o})=>r(Be,{showArrow:!1},{trigger:()=>r(P,{name:e,size:re.tableIconSize,cursor:"pointer",customClassName:o,onClick:t==null?void 0:t.bind(null)},null),default:()=>n}),Rt=(e,n)=>{if(!n)return[null,null];for(let t=0;tXe(e.columns).filter(u=>u.type?(n=u,!1):!0).map((u,d)=>{const{key:p,title:h,children:S,fixed:f,isResizable:m,..._}=u,g=f==="left",v=f==="right",c={..._,title:h,key:p,fixed:f,isLeftFixedActivated:g,isRightFixedActivated:v,isResizable:m};return{...c,suffix:()=>r(D,{style:"padding-left: 32px;"},{default:()=>[r(Jt,{icon:"row_head",title:"固定在列首",customClassName:g?vt:"",onClick:a.bind(this,"left",c,d)},null),r(Be,{showArrow:!1},{trigger:()=>r(P,{name:"resize_h",size:re.tableIconSize,cursor:"pointer",customClassName:m?vt:"",onClick:l.bind(this,c,d)},null),default:()=>"修改列宽"}),r(Jt,{icon:"row_end",title:"固定在列尾",customClassName:v?vt:"",onClick:a.bind(this,"right",c,d)},null)]})}}),set:()=>{}}),o=i=>{const{onUpdateColumn:u}=e;u&&B(u,i)},l=(i,u)=>{i.isResizable=!i.isResizable,i.resizable=i.isResizable,t.value[u]=i,o(t.value)},a=(i,u,d)=>{const p=`${i}FixedActivated`,h=`${i==="left"?"right":"left"}FixedActivated`;u[h]=!1,u[p]=!u[p],u[p]?u.fixed=i:u.fixed=void 0,t.value[d]=u,o(t.value)};return{treeDataSource:t,treeDrop:({node:i,dragNode:u,dropPosition:d})=>{const[p,h]=Rt(u,t.value);if(p===null||h===null)return;p.splice(h,1);const[S,f]=Rt(i,t.value);S===null||f===null||(d==="before"?S.splice(f,0,u):S.splice(f+1,0,u),ln(n)||S.unshift(n),o(S))}}},render(){return r(Be,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>r(P,{name:"setting",size:re.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>r(co,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:sr.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),ur=x({name:"TablePrint",props:Ee,setup(e){const{wrapperRef:n}=xe(re.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:""),On(n,{printOptions:o,domToImageOptions:l})}}},render(){return r(P,{name:"print",size:re.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),cr=x({name:"TablePropsSelect",props:{...Ee,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const n=M(!1),t=M([]),o=a=>{const{onPopselectChange:s}=e;s&&B(s,a)};return(()=>{const{striped:a,bordered:s,onInitialed:i}=e;a&&t.value.push("striped"),s&&t.value.push("bordered"),i&&B(i,t.value)})(),{propsPopselectValue:t,popoverShow:n,updatePopselectValue:o}},render(){return r(sn,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:ar,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(P,{name:"expanded",size:re.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function dr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const pr=x({name:"RTable",inheritAttrs:!1,props:Ee,setup(e,n){const{expose:t,emit:o}=n,l=pe("rTableInst"),a=pe("wrapperRef"),s=Qe(16),i=Qe(16),u=le({x:0,y:0,showContextMenu:!1}),d=le({size:e.size}),p=M(Object.assign({striped:!1,bordered:!1},Fe(e,"striped","bordered"))),h=(c,y)=>{const{onContextMenuClick:T}=e;T&&B(T,c,y),u.showContextMenu=!1},S=(c,y)=>{var w;return{...(w=e.rowProps)==null?void 0:w.call(e,c,y),onContextmenu:e.disabledContextMenu?void 0:b=>{b.preventDefault(),u.showContextMenu=!1,X().then(()=>{u.showContextMenu=!0,u.x=b.clientX,u.y=b.clientY})}}},f=c=>{d.size=c},m=c=>{const{onUpdateColumns:y,"onUpdate:columns":T}=e;y&&B(y,c),T&&B(T,c)},_=()=>{const{toolOptions:c}=e;return c==null?void 0:c.filter(Boolean).map(y=>typeof y=="function"?y():y)},g=c=>{Object.keys(p.value).forEach(T=>{p.value[T]=c.includes(T)})},v=c=>{const{tool:y}=c;if(!y)return;const T=()=>r(D,{align:"center"},{default:()=>[r(ur,c,null),r(lr,V(c,{onChangeSize:f.bind(this)}),null),r(rr,null,null),r(ir,V(c,{onUpdateColumn:m.bind(this)}),null),r(cr,V(c,{onPopselectChange:g.bind(this),onInitialed:g.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let w;return r(D,{align:"center"},dr(w=_())?w:{default:()=>[w]})}:()=>r(D,{align:"center"},{default:()=>[T(),_()]}):T};return Ve(()=>{const{onRegister:c}=e;c&&l.value&&B(c,l.value,{uuidTable:i,uuidWrapper:s,wrapperRef:a})}),yn(re.tableKey,{uuidTable:i,uuidWrapper:s,wrapperRef:a}),t(),{uuidWrapper:s,uuidTable:i,contextMenuReactive:u,rTableInst:l,combineRowProps:S,contextMenuSelect:h,privateReactive:d,tool:v,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,...d}=n,{tool:p,combineRowProps:h,contextMenuSelect:S}=this,{renderWrapperHeader:f,wrapperBordered:m,disabledContextMenu:_,contextMenuOptions:g,title:v,tableFlexHeight:c,cardProps:y,...T}=e;return r(at,V(y,{id:a},d,{ref:"wrapperRef",bordered:m,class:u}),{default:()=>r(bn,null,[r(po,V({id:o},T,i,{rowProps:h.bind(this),size:s.size,ref:"rTableInst",style:{height:c!=null?N(c):null}}),{...t}),_?null:r(ke,{show:l.showContextMenu,placement:"bottom-start",trigger:"manual",x:l.x,y:l.y,options:g,onClickoutside:()=>l.showContextMenu=!1,onSelect:S.bind(this)},null)]),header:f?ye(v,{defaultElement:r("div",{style:"display: none;"},null)}):null,"header-extra":p(e),footer:()=>{var w;return(w=t.tableFooter)==null?void 0:w.call(t)},action:()=>{var w;return(w=t.tableAction)==null?void 0:w.call(t)}})}}),mr=()=>{const e=M();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);On(_,f)}},filter:f=>o().filter.call(null,f)}]},Ln=(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=Ln(l.children,n,t);if(a)return a}}},Zt=e=>{const n=oe(e);return n?n.findIndex(o=>{const{type:l,multiple:a}=o;if(l==="selection"&&(a==null||a===!0))return!0})!==-1:!0},fr=(e,n,t,o)=>{const l=oe(e);return l?n.reduce((a,s)=>{const i=oe(t).findIndex(d=>d[o]===s);if(i!==-1)return a.push(oe(t)[i]),a;const u=l.findIndex(d=>d[o]===s);return u!==-1&&a.push(l[u]),a},[]):t},ii=(e,n,t)=>{const o=M([]),l=M([]),{rowKey:a="key",onChange:s}=t||{},i=C(()=>Zt(n)),u=(m,_,g)=>{o.value=m,l.value=oe(fr(e,m,l,a)),s==null||s(m,l.value,g),Zt(n)},d=()=>o.value,p=()=>l.value,h=()=>{o.value=[],l.value=[],s==null||s(o.value,l.value,{row:void 0,action:"uncheckAll"})},S=m=>{if(m==null)return;let _;o.value=o.value.filter(g=>g!==m),l.value=l.value.filter(g=>g[a]===m?(_=g,!1):!0),s==null||s(o.value,l.value,{row:_,action:"uncheck"})},f=m=>{if(o.value.includes(m))return;const _=!i.value&&o.value.length>=1,g=Ln(oe(e)||[],a,m);_?o.value=[m]:o.value.push(m),g&&(_?l.value=[g]:l.value.push(g),s==null||s(o.value,l.value,{row:g,action:"check"}))};return Lt(()=>{h()}),[o,{checkedRows:l,checkedRowKeysBind:u,getKeys:d,getRows:p,clearAll:h,clearKey:S,selectKey:f}]},gr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},hr=x({name:"RTransitionComponent",__name:"index",props:Bo({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},gr),setup(e){const{getKeepAliveInclude:n}=zr(),{getKeepAliveConfig:t}=W();return(o,l)=>{const a=Vo("RouterView");return Se(),jo("div",null,[r(a,null,{default:gt(({Component:s,route:i})=>[s?(Se(),Ie(Ma,{key:0,name:o.transitionPropName,mode:o.transitionMode,appear:o.transitionAppear},{default:gt(()=>[(Se(),Ie(No,null,{default:gt(()=>[oe(t).setupKeepAlive?(Se(),Ie(Uo,{key:0,max:oe(t).maxKeepAliveLength,include:oe(n),exclude:oe(t).keepAliveExclude},[(Se(),Ie(Wt(s),{key:i.fullPath}))],1032,["max","include","exclude"])):(Se(),Ie(Wt(s),{key:i.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):$o("",!0)]),_:1})])}}}),vr=x({name:"RForm",props:xn,setup(e,{expose:n}){const t=pe("formRef");return Ve(()=>{const{onRegister:o}=e;o&&t.value&&B(o,t.value)}),n(),{formRef:t}},render(){const{$attrs:e,$props:n,$slots:t}=this;return r(de,V(e,n,{ref:"formRef"}),{...t})}}),ui=(e,n)=>{const t=M(),o=d=>{d&&(t.value=d)},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:(d,p)=>l().validate.call(null,d,p),restoreValidation:()=>l().restoreValidation.call(null),formModel:()=>Xe(e)||{},formRules:()=>Xe(n)||{}}]},yr=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],br={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},Sr=ot({...mo,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...yr);function _r(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const Pt=e=>{const{icon:n,label:t}=e;return n?r(D,{align:"center",wrap:!1,size:"small"},{default:()=>{var o;return[(o=ye(n))==null?void 0:o(),r("div",null,[t])]}}):t},wr=e=>{if(typeof e.popover=="string")return r(Be,null,{trigger:()=>Pt(e),default:()=>e.popover});if(me(e.popover,"Object")){const{popover:n}=e,{label:t,...o}=n;return r(Be,o,{trigger:()=>Pt(e),default:()=>t})}},Cr=x({name:"RSegment",props:Sr,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"?N(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(un,V(n,{ref:"segmentRef",style:[o],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},br,l)}),_r(e=t.map(a=>r(fo,{key:a.key,name:a.key,tab:a.popover?wr(a):Pt(a),disabled:a.disabled},{...a.slots})))?e:{default:()=>[e]})}}),Tr={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]}},ci=x({name:"RBarcode",props:Tr,setup(e){const n=pe("barcodeRef"),t=C(()=>({"--r-barcode-width":N(e.width),"--r-barcode-height":N(e.height)}));let o;const l=()=>{try{const{format:a,text:s,options:i,onSuccess:u}=e,d=Object.assign({},i,{format:a});Wo(n.value,s!=null?s.toString():"",d),u&&B(u,s,a,i)}catch(a){const{onError:s}=e;s&&B(s,a)}finally{const{onFinally:a}=e;a&&B(a)}};return fe(()=>{e.watchText?o=Pe(()=>e.text,l):o==null||o()}),Ve(()=>{l()}),vn(()=>{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(lt,{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)]})}}),Or={...ot(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 kr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const di=x({name:"RTablePro",props:Or,setup(e){const[n,{clearFilters:t,clearSorter:o,downloadCsv:l,filters:a,page:s,scrollTo:i,sort:u,print:d,filter:p}]=mr(),[h,{getPage:S,getPageSize:f,setCallback:m,setItemCount:_,resetPagination:g,getItemCount:v}]=_s(void 0,{prefix:k=>`共 ${k.itemCount} 条`}),c=C(()=>e.request),y=()=>({getItemCount:v,getPage:S,getPageSize:f}),T=()=>{const{onTablePaginationUpdate:k}=e;k&&B(k,y())},w=k=>{const O=Object.assign({},e.requestConfig,k),{params:R,formatRangeTime:F}=O;return F!=null&&F.length&&R&&F.forEach($=>{const{key:ee,target:G}=$,he=R[ee];if(he&&(G!=null&&G.length)){const[te,dt]=he;R[G[0]]=te,R[G[1]]=dt}else R[ee]=null,R[G[0]]=null,R[G[1]]=null}),Object.assign({},R,{page:S(),pageSize:f()})},b=k=>{var R;g();const O=w(k);(R=c.value)==null||R.call(c,O)},E=k=>{var R;const O=w(k);(R=c.value)==null||R.call(c,O)};return fe(()=>{_(e.paginationCount),m(()=>{const{manual:k}=e;k||E(),T()})}),Ve(()=>{const{onRegister:k}=e;k&&B(k,{getTablePagination:y,runTableRequest:b,clearFilters:t,clearSorter:o,downloadCsv:l,filters:a,page:s,scrollTo:i,sort:u,print:d,filter:p,getCurrentTableRequestParams:w})}),{register:n,paginationRef:h}},render(){const{register:e,$props:n,paginationRef:t,$slots:o}=this,{onRegister:l,showPagination:a,...s}=n;return r(pr,V(s,{onRegister:e,pagination:a?t:void 0}),kr(o)?o:{default:()=>[o]})}}),pi=()=>{const e=M(),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)}]},Ar=(e,n,t)=>!e||typeof e!="object"?!1:e[n]===t,Dn=(e,n,t)=>{const o=[];if(Ar(e,n,t))return o.push(e),o;if(e.children&&e.children.length>0)for(const l of e.children){const a=Dn(l,n,t);a.length>0&&o.push(e,...a)}return o},Rr=(e,n,t)=>{const o=[];for(const l of e){const a=Dn(l,n,t);a.length>0&&o.push(...a)}return o},Qt=e=>{const{dynamicDocumentTitle:n}=Ae();if(!n)return;const{breadcrumbLabel:t}=e;if(!t)return;const{sideBarLogo:o}=Ae(),l=o?o.title:"";document.title=t+" - "+l},Pr=e=>{const{meta:{icon:n}}=e;if(!n)return;if(me(n,"Object"))return()=>n;const{menuConfig:t}=Ae(),{collapsed:o}=Dt(),l=rt(P,{name:n,size:o?t.collapsedIconSize:t.iconSize,cursor:"pointer"},{});return()=>l},Fn=e=>{const{meta:{extra:n}}=e;if(!n)return;const{show:t}=n;if(t===!1)return;const{t:o}=Ne(),{label:l,icon:a,type:s,i18nLabel:i}=n,u={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},d=()=>i?o(i):l||null,p=()=>a&&(i||l)||!a&&(i||l)?null:{"padding-right":"0"};if(me(n,"Object"))return()=>rt(go,{...u,type:s||"primary",style:p()},{default:()=>d(),icon:()=>a})},en=()=>{const{getRootPath:e}=Me();return Ze(J.appMenuKey,"sessionStorage",{defaultValue:e.value})},Bn=()=>Nl(Bl()),xr=()=>Vl(Bn()),xt=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let qe;const jn=(e,n)=>{var t;if(qe&&qt(qe.fullPath,n))return qe;for(const o of e){if(qt(o.fullPath,n))return qe=o,o;if((t=o.children)!=null&&t.length){jn(o.children,n);continue}}},Dt=st("menu",()=>{const{push:e,getRoutes:n}=it(),t=ia(),{t:o}=Ne(),{setKeepAliveInclude:l}=Mr(),a=le({menuKey:en(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),s=M(!0),i=(c,y,T)=>{_n(a,c,y,T)},u=c=>{const{meta:y}=c,{i18nKey:T,noLocalTitle:w}=y,b=C(()=>T?o(`${T}`):w),E={...c,key:c.fullPath,label:()=>rt(cn,null,{default:()=>b.value}),breadcrumbLabel:b.value},k=Object.assign({},E,{icon:Pr(c),extra:Fn(c)});return c.fullPath===en()&&(a.currentMenuOption=k),k.show=Pn(k),k},d=c=>{a.breadcrumbOptions=Rr(a.options,"fullPath",c)},p=(c,y=!0)=>{const w=Array.isArray(c)?[...c]:[c];y?a.menuTagOptions.push(...w):a.menuTagOptions=w},h=(c,y)=>{a.menuTagOptions.find(w=>w.fullPath===c)||a.menuTagOptions.push(y)},S=(c,y,T)=>{const{meta:w}=y;if(w.windowOpen)window.open(w.windowOpen);else{e({path:String(c),query:T});const{sameLevel:b}=w;if(l(y),Qt(y),!b)h(c,y),d(c),a.menuKey=c,a.currentMenuOption=y,It(J.appMenuKey,c);else{const E=Fe(u(y),xt);a.breadcrumbOptions.find(O=>O.key===E.key)||a.breadcrumbOptions.push({...E,fullPath:String(E.key)})}}},f=async(c,y)=>{const[T]=c.split("?"),w=n().find(b=>b.path===T);if(!((w==null?void 0:w.path)==="/"||!(w!=null&&w.path)||(w==null?void 0:w.path)==="/login")&&w){const b=Fe(w,xt);S(T,u({...b,fullPath:b.path}),y)}},m=()=>new Promise(c=>{const y=(T,w)=>{var E;const b=[];for(const k of T){let O=`${w.endsWith("/")?w:w+"/"}${k.path}`;if(O=O.replace(/\/+/g,"/"),(E=k.children)!=null&&E.length)k.children=y(k.children,O);else if(!$n(k.meta))continue;b.push(u({...k,fullPath:O}))}return b};if(a.options=y(Bn(),""),a.currentMenuOption){const{currentMenuOption:T}=a;a.breadcrumbOptions.length||d(T.key),h(T.fullPath,T),Qt(T)}c()}),_=c=>a.collapsed=c,g=(c,y=1)=>a.menuTagOptions.splice(c,y),v=async()=>{s.value&&(await m(),s.value=!1)};return Pe(()=>t.fullPath,async(c,y)=>{await v(),c!==y&&await f(c,t.query)},{immediate:!0}),{...Re(a),changeMenuModelValue:S,collapsedMenu:_,spliceMenTagOptions:g,setMenuTagOptions:p,resolveOption:u,updateMenuState:i,setupAppMenu:m}},{persist:{key:J.appPiniaMenuStore,storage:window.localStorage,pick:["breadcrumbOptions","menuKey","menuTagOptions","collapsed"]}}),Vn=st("signing",()=>{const e=le({signingCallback:{}}),n=l=>new Promise((a,s)=>{ln(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}=qn(),{appPiniaMenuStore:s,appPiniaSigningStore:i,token:u,signing:d,appMenuKey:p}=J;window.$message.info("账号退出中..."),_e("__all_sessionStorage__","sessionStorage"),_e(i,"localStorage"),_e(s,"localStorage"),_e(u,"localStorage"),_e(d,"localStorage"),_e(p,"localStorage"),a(),l&&(window.location.replace("#/"),setTimeout(()=>{window.location.reload()},0))},o=()=>{t(!0)};return{...Re(e),signing:n,logout:o,clearSigningCallback:t}},{persist:{key:J.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),Nn=st("keepAlive",()=>{const e=le({keepAliveInclude:[]}),n=()=>e.keepAliveInclude.length,t=l=>{const a=n(),{name:s,meta:{keepAlive:i}}=l,{maxKeepAliveLength:u}=Ae().keepAliveConfig;if(i){if(a=u&&(e.keepAliveInclude.splice(0,1),e.keepAliveInclude.push(s))}},o=()=>e.keepAliveInclude;return{...Re(e),setKeepAliveInclude:t,getKeepAliveInclude:o}},{persist:{key:J.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),be=()=>{const e=Dt(),n=C(()=>e.options),t=C(()=>e.breadcrumbOptions),o=C(()=>e.menuKey),l=C(()=>{const{getRootPath:i}=Me();return e.menuTagOptions.map((u,d,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}},ze=()=>{const{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:l,updateMenuState:a,setupAppMenu:s}=Dt();return{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:l,updateMenuState:a,setupAppMenu:s}},W=()=>{const e=Ae(),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),d=C(()=>e.copyrightSwitch),p=C(()=>e.contentTransition),h=C(()=>e.watermarkSwitch),S=C(()=>e.watermarkConfig),f=C(()=>e.appRootRoute),m=C(()=>e.sideBarLogo),_=C(()=>e.keepAliveConfig),g=C(()=>e.menuConfig),v=C(()=>e.colorWeakness),c=C(()=>e.dynamicDocumentTitle);return{getDrawerPlacement:n,getPrimaryColorOverride:t,getAppTheme:o,getMenuTagSwitch:a,getBreadcrumbSwitch:s,getLocaleLanguage:i,getLockScreenSwitch:u,getCopyrightSwitch:d,getContentTransition:p,getWatermarkSwitch:h,getWatermarkConfig:S,getAppRootRoute:f,getSideBarLogo:m,getKeepAliveConfig:_,getMenuConfig:g,getAppThemeStr:l,getColorWeakness:v,getDynamicDocumentTitle:c}},U=()=>{const{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=Ae();return{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}},Un=()=>{const e=Vn();return{getSigningCallback:C(()=>e.signingCallback)}},Er=()=>{const{signing:e,logout:n,clearSigningCallback:t}=Vn();return{signing:e,logout:n,clearSigningCallback:t}},zr=()=>{const e=Nn();return{getKeepAliveInclude:C(()=>e.keepAliveInclude)}},Mr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:n}=Nn();return{setKeepAliveInclude:e,getKeepAliveInclude:n}},mi=e=>{const n=ta();e.use(n),n.use(ea)},$n=e=>{const{getSigningCallback:n}=Un(),{role:t}=e;return We!=null&&We.length&&We.includes(n.value.role)||!t||!(t!=null&&t.length)?!0:t?t.includes(n.value.role):!0},Ir=e=>{const{setupRouterLoadingBar:n,setupRouterGuard:t}=Ka;n&&Kl(e),t&&Ul(e)},Lr=M(),Dr=x({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=it(),{getSideBarLogo:n}=W();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(me(n.value.icon,"Object"))return ye(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:Lr},[e!=null&&e.icon?n?r(Je,{placement:"right"},{trigger:()=>t({cursor:"pointer"}),default:()=>e.title}):t({cursor:"pointer"}):n?r(Je,{placement:"right"},{trigger:()=>{var l;return r("h1",{class:"n-menu-item-content"},[((l=e.title)==null?void 0:l[0])||null])},default:()=>e.title}):null,r(ho,{class:[n?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"'],type:"primary",size:18},{default:()=>[r(cn,null,{default:()=>[e.title]})]})]):null}}),Fr=x({name:"AppMenu",setup(){const e=M(null),{changeMenuModelValue:n,collapsedMenu:t,updateMenuState:o}=ze(),{getMenuConfig:l}=W(),{getMenuOptions:a,getCollapsed:s,getMenuKey:i}=be(),u=C({get:()=>(X().then(()=>{h()}),i.value),set:()=>{d.value&&ce("globalDrawerValue",!1)}}),{isTabletOrSmaller:d}=ct({observer:f=>{f&&o("collapsed",!1)}}),p=C({get:()=>ut("globalDrawerValue").value,set:f=>{ce("globalDrawerValue",f)}}),h=()=>{const f=u.value;f!=null&&X(()=>{var m,_;return(_=(m=e.value)==null?void 0:m.showOption)==null?void 0:_.call(m,f)})};return{isTabletOrSmaller:d,BasicMenu:()=>r(yo,{class:"app-menu__sider",showTrigger:!d.value,collapseMode:l.value.collapsedMode,collapsedWidth:l.value.collapsedWidth,onUpdateCollapsed:t.bind(this),width:l.value.menuWidth,nativeScrollbar:l.value.nativeScrollbar,ref:An,collapsed:s.value,onExpand:()=>{o("collapsed",!1)},onCollapse:()=>{o("collapsed",!0)},inverted:l.value.inverted},{default:()=>[l.value.menuSiderBarLogo?r(Dr,{collapsed:s.value},null):null,r(vo,{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(dn,{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 Br{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 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 yt={requestInstance:null,responseInstance:null},bt={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},Ge={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},jr=new Br,fi=()=>{const e=(i,u)=>{u==="requestInstance"?yt.requestInstance=i:yt.responseInstance=i},n=i=>yt[i],t=(i,u,d)=>{d==="ok"?bt[i]=u:Ge[i]=u},o=(i,u)=>u==="ok"?bt[i]:Ge[i],l=(i,...u)=>{Array.isArray(i)&&i.forEach(d=>{typeof d=="function"&&d(...u)})};return{createAxiosInstance:e,setImplement:t,getImplement:o,getAxiosInstance:n,beforeFetch:(i,u,d)=>{const p=d==="ok"?bt[u]:Ge[u],h=n(i),{MODE:S}=At();h&&l(p,h,S)},fetchError:(i,u,d)=>{const p=Ge[d],{MODE:h}=At();l(p,u,h)}}},Vr=x({name:"AppRequestCancelerProvider",setup(e,{expose:n}){ua(()=>{jr.cancelAllRequest()}),n()},render(){return r("div",{class:"app-style-provider"},null)}}),Kn=x({name:"LayoutContentWrapper",setup(){it();const{maximize:e}=Wn(),{getContentTransition:n}=W(),t=M(!1),o={opacitySpinning:"0"},{globalMainLayoutLoad:l,layoutContentMaximize:a,layoutContentSpinning:s}=qa();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(lt,{show:l||!e||t,description:"loading...",size:"large",themeOverrides:a,class:[n?"r-layout-full__viewer-content--maximize":null,"r-layout-full__viewer-content--maximize--light","r-layout-full__viewer-content--maximize--dark"]},{default:()=>[n?r("div",{class:"layout-content__maximize-out",onClick:()=>{o(!1)}},[r(P,{name:"out",size:"16",cursor:"pointer"},null)]):null,r(Vr,null,null),e?r(hr,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),Nr=Object.freeze(Object.defineProperty({__proto__:null,default:Kn},Symbol.toStringTag,{value:"Module"}));var Ur={pkg:{dependencies:{"@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/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@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",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","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-compression":"^0.5.1","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.0.13"},name:"ray-template",version:"5.0.3"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const $r=x({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=Ur;return{copyright:e}},render(){return this.copyright?r("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),Kr=x({name:"TooltipIcon",props:{...bo,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(Je,this.$props,{trigger:()=>r(e,null,null),default:()=>this.tooltipText}):r(e,null,null)}}),Wr=x({name:"ThemeSegment",setup(){const{system:e}=gn(),{getAppThemeStr:n,getAppTheme:t}=W(),{updateSettingState:o}=U(),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 fe(()=>{s(a.value,e.value)}),{options:l,modelAppTheme:a}},render(){const{options:e}=this;return r(Cr,{options:e,size:"small",width:"block",value:this.modelAppTheme,"onUpdate:value":n=>this.modelAppTheme=n},null)}}),qr={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},Gr=()=>qr,Ue=Symbol("segmentDrawer"),Hr=x({name:"SegmentViewsAppearance",setup(){const e=xe(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(D,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(ne,null,{default:()=>[Y("系统主题")]}),r(Wr,null,null),r(ne,null,{default:()=>[Y("内置主题")]}),r(So,{showPreview:!0,swatches:ae.appThemeColors,value:n.primaryColorOverride.common.primaryColor,"onUpdate:value":l=>n.primaryColorOverride.common.primaryColor=l,onUpdateValue:t.bind(this)},null),r(ne,null,{default:()=>[Y("切换动画")]}),r($t,{value:n.contentTransition,"onUpdate:value":l=>n.contentTransition=l,options:ja,onUpdateValue:l=>{o("contentTransition",l)}},null),r(ne,null,{default:()=>[Y("配置入口出现位置")]}),r($t,{value:n.drawerPlacement,"onUpdate:value":l=>n.drawerPlacement=l,options:[{label:"右边",value:"right"},{label:"左边",value:"left"}],onUpdateValue:l=>{o("drawerPlacement",l)}},null),r(ne,null,{default:()=>[Y("其他设置")]}),r(de,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(I,{label:"面包屑"},{default:()=>[r(Q,{value:n.breadcrumbSwitch,"onUpdate:value":l=>n.breadcrumbSwitch=l,onUpdateValue:l=>o("breadcrumbSwitch",l)},null)]}),r(I,{label:"标签页"},{default:()=>[r(Q,{value:n.menuTagSwitch,"onUpdate:value":l=>n.menuTagSwitch=l,onUpdateValue:l=>o("menuTagSwitch",l)},null)]}),r(I,{label:"页底信息"},{default:()=>[r(Q,{value:n.copyrightSwitch,"onUpdate:value":l=>n.copyrightSwitch=l,onUpdateValue:l=>o("copyrightSwitch",l)},null)]}),r(I,{label:"色弱模式"},{default:()=>[r(Q,{value:n.colorWeakness,"onUpdate:value":l=>n.colorWeakness=l,onUpdateValue:l=>{o("colorWeakness",l),e(l)}},null)]})]})]})}}),Yr=x({name:"SegmentViewsCommon",setup(){const e=xe(Ue,{}),{updateSettingState:n}=U();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(D,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(ne,null,{default:()=>[Y("基础设置")]}),r(de,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(I,{label:"页面缓存"},{default:()=>[r(Q,{value:e.keepAliveConfig.setupKeepAlive,"onUpdate:value":t=>e.keepAliveConfig.setupKeepAlive=t,onUpdateValue:t=>n("keepAliveConfig",{setupKeepAlive:t})},null)]}),r(I,{label:"动态浏览器标题"},{default:()=>[r(Q,{value:e.dynamicDocumentTitle,"onUpdate:value":t=>e.dynamicDocumentTitle=t,onUpdateValue:t=>n("dynamicDocumentTitle",t)},null)]})]}),r(ne,null,{default:()=>[Y("缓存设置")]}),r(de,{labelPlacement:"top",showFeedback:!0,showRequireMark:!1,model:e.keepAliveConfig},{default:()=>[r(I,{label:"最大缓存数",feedback:C(()=>e.keepAliveConfig.maxKeepAliveLength<=0?"设置为【0】时,缓存将会失效":"").value},{default:()=>[r(K,{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(I,{label:"排除缓存"},{default:()=>[r(_o,{type:"success",value:e.keepAliveConfig.keepAliveExclude,"onUpdate:value":t=>e.keepAliveConfig.keepAliveExclude=t},null)]})]})]})}}),Xr=x({name:"SegmentViewsWatermark",setup(){const e=xe(Ue,{}),{updateSettingState:n}=U();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(D,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(ne,null,{default:()=>[Y("基础设置")]}),r(de,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(I,{label:"全屏水印"},{default:()=>[r(Q,{value:e.watermarkSwitch,"onUpdate:value":t=>e.watermarkSwitch=t,onUpdateValue:t=>n("watermarkSwitch",t)},null)]}),r(I,{label:"跨边界显示"},{default:()=>[r(Q,{value:e.watermarkConfig.cross,"onUpdate:value":t=>e.watermarkConfig.cross=t,onUpdateValue:t=>n("watermarkConfig",{cross:t})},null)]})]}),r(ne,null,{default:()=>[Y("个性化水印")]}),r(de,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(I,{label:"水印内容"},{default:()=>[r(pn,{value:e.watermarkConfig.content,"onUpdate:value":t=>e.watermarkConfig.content=t,onUpdateValue:t=>n("watermarkConfig",{content:t})},null)]}),r(I,{label:"字体尺寸"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.fontSize,"onUpdate:value":t=>e.watermarkConfig.fontSize=t,onUpdateValue:t=>n("watermarkConfig",{fontSize:t})},null)]}),r(I,{label:"字体行高"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.lineHeight,"onUpdate:value":t=>e.watermarkConfig.lineHeight=t,onUpdateValue:t=>n("watermarkConfig",{lineHeight:t})},null)]}),r(I,{label:"字体宽度"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.width,"onUpdate:value":t=>e.watermarkConfig.width=t,onUpdateValue:t=>n("watermarkConfig",{width:t})},null)]}),r(I,{label:"字体高度"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.height,"onUpdate:value":t=>e.watermarkConfig.height=t,onUpdateValue:t=>n("watermarkConfig",{height:t})},null)]}),r(I,{label:"x轴偏移"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.xOffset,"onUpdate:value":t=>e.watermarkConfig.xOffset=t,onUpdateValue:t=>n("watermarkConfig",{xOffset:t})},null)]}),r(I,{label:"x轴间隙"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.xGap,"onUpdate:value":t=>e.watermarkConfig.xGap=t,onUpdateValue:t=>n("watermarkConfig",{xGap:t})},null)]}),r(I,{label:"y轴偏移"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.yOffset,"onUpdate:value":t=>e.watermarkConfig.yOffset=t,onUpdateValue:t=>n("watermarkConfig",{yOffset:t})},null)]}),r(I,{label:"y轴间隙"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.yGap,"onUpdate:value":t=>e.watermarkConfig.yGap=t,onUpdateValue:t=>n("watermarkConfig",{yGap:t})},null)]}),r(I,{label:"旋转角度"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.rotate,"onUpdate:value":t=>e.watermarkConfig.rotate=t,onUpdateValue:t=>n("watermarkConfig",{rotate:t})},null)]})]})]})}}),Jr=x({name:"SegmentViewsCustomMenu",setup(){const e=xe(Ue,{}),{updateSettingState:n}=U();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(D,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(ne,{titlePlacement:"center"},{default:()=>[r(D,{wrap:!1,align:"center",size:[4,0]},{default:()=>[r(Je,{placement:"top",showArrow:!1},{trigger:()=>r(P,{name:"question",size:"16"},null),default:()=>"菜单更新是一个复杂、耗时的操作,请手动点击【更新菜单】按钮更新设置"}),r(mn,null,{default:()=>[Y("菜单样式")]})]})]}),r(de,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(I,{label:"每级菜单缩进"},{default:()=>[r(K,{value:e.menuConfig.collapsedIndent,"onUpdate:value":t=>e.menuConfig.collapsedIndent=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIndent:t})},null)]}),r(I,{label:"菜单图标尺寸"},{default:()=>[r(K,{value:e.menuConfig.iconSize,"onUpdate:value":t=>e.menuConfig.iconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{iconSize:t})},null)]}),r(I,{label:"折叠菜单图标尺寸"},{default:()=>[r(K,{value:e.menuConfig.collapsedIconSize,"onUpdate:value":t=>e.menuConfig.collapsedIconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIconSize:t})},null)]}),r(I,{label:"菜单宽度"},{default:()=>[r(K,{value:e.menuConfig.menuWidth,"onUpdate:value":t=>e.menuConfig.menuWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{menuWidth:t})},null)]}),r(I,{label:"折叠菜单宽度"},{default:()=>[r(K,{value:e.menuConfig.collapsedWidth,"onUpdate:value":t=>e.menuConfig.collapsedWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedWidth:t})},null)]}),r(I,{showFeedback:!1,showLabel:!1},{default:()=>[r(Z,{onClick:e.throttleSetupAppMenu,block:!0,type:"primary"},{default:()=>[Y("更新菜单")]})]})]}),r(ne,null,{default:()=>[Y("其他设置")]}),r(de,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(I,{label:"反转色菜单"},{default:()=>[r(Q,{value:e.menuConfig.inverted,"onUpdate:value":t=>e.menuConfig.inverted=t,onUpdateValue:t=>n("menuConfig",{inverted:t})},null)]}),r(I,{label:"菜单标题"},{default:()=>[r(Q,{value:e.menuConfig.menuSiderBarLogo,"onUpdate:value":t=>e.menuConfig.menuSiderBarLogo=t,onUpdateValue:t=>n("menuConfig",{menuSiderBarLogo:t})},null)]}),r(I,{label:"手风琴菜单"},{default:()=>[r(Q,{value:e.menuConfig.accordion,"onUpdate:value":t=>e.menuConfig.accordion=t,onUpdateValue:t=>n("menuConfig",{accordion:t})},null)]}),r(I,{label:"原生滚动条"},{default:()=>[r(Q,{value:e.menuConfig.nativeScrollbar,"onUpdate:value":t=>e.menuConfig.nativeScrollbar=t,onUpdateValue:t=>n("menuConfig",{nativeScrollbar:t})},null)]})]})]})}}),Zr=x({name:"SettingDrawer",props:wo,setup(){const{create:e}=tr(),{changePrimaryColor:n,updateSettingState:t}=U(),{getAppTheme:o,getPrimaryColorOverride:l,getMenuTagSwitch:a,getBreadcrumbSwitch:s,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:d,getKeepAliveConfig:p,getMenuConfig:h,getDrawerPlacement:S,getColorWeakness:f,getWatermarkConfig:m,getDynamicDocumentTitle:_}=W(),{setupAppMenu:g}=ze(),v=Et(g,300),c=le({menuTagSwitch:a.value,breadcrumbSwitch:s.value,copyrightSwitch:i.value,contentTransition:u.value,watermarkSwitch:d.value,keepAliveConfig:p.value,menuConfig:h.value,drawerPlacement:S.value,colorWeakness:f.value,primaryColorOverride:l.value,watermarkConfig:m.value,dynamicDocumentTitle:_.value,throttleSetupAppMenu:v}),y=()=>{e({preset:"dialog",title:"恢复默认配置",type:"warning",content:"点击【确认初始化】按钮会恢复默认系统配置,是否继续?",positiveText:"确认初始化",negativeText:"取消",onPositiveClick:()=>{to(Gr(),(T,w)=>{c[w]=T,t(w,T)}),v()}})};return yn(Ue,c),{changePrimaryColor:n,getAppTheme:o,getPrimaryColorOverride:l,updateSettingState:t,modelReactive:c,defaultSettingBtnClick:y}},render(){const{defaultSettingBtnClick:e,$props:n}=this,{trapFocus:t,autoFocus:o,nativeScrollbar:l,...a}=n;return r(dn,V(a,{trapFocus:!1,autoFocus:!1,width:320}),{default:()=>[r(Co,{title:"个性化配置",closable:!0},{default:()=>r(un,{type:"bar",animated:!0,defaultValue:"appearance"},{default:()=>[r(Ke,{name:"appearance",tab:"外观"},{default:()=>[r(Hr,null,null)]}),r(Ke,{name:"menu",tab:"菜单"},{default:()=>[r(Jr,null,null)]}),r(Ke,{name:"watermark",tab:"水印"},{default:()=>[r(Xr,null,null)]}),r(Ke,{name:"common",tab:"通用"},{default:()=>[r(Yr,null,null)]})]}),footer:()=>r(D,{justify:"flex-start"},{default:()=>[r(Z,{type:"warning",onClick:e},{icon:()=>r(P,{name:"reload"},null),default:()=>"初始化配置"})]})})]})}});function Qr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const es=x({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=ze(),{getBreadcrumbOptions:n}=be(),{isTabletOrSmaller:t}=ct();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(Oo,null,{default:()=>[r(Ia,{tag:"li",name:"breadcrumb",appear:!0},Qr(e=t.map(a=>r(To,{key:a.fullPath,onClick:l.bind(this,a)},{default:()=>{var s;return[r(ke,{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 St(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const ts=x({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:n}){const{changeMenuModelValue:t,resolveOption:o}=ze(),{getRoutes:l}=it(),a=C({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,d=u;const{isTabletOrSmaller:p}=ct(),h=M(!1),S="content-item--active",f=()=>{s.searchOptions=[],s.searchValue=null,u=0,d=u},m=b=>{a.value||(b.ctrlKey||b.metaKey)&&b.key==="k"&&(b.preventDefault(),b.stopPropagation(),f(),a.value=!0)},_=b=>{if(b)h.value=!0;else{h.value=!1,s.searchOptions=[];return}const E=l().reduce((k,O)=>{var $;const R=Fe(O,["children","meta","path","name"]),F=o({...R,fullPath:O.path}),{breadcrumbLabel:q}=F;return($=q==null?void 0:q.toLocaleLowerCase())!=null&&$.includes(b.toLocaleLowerCase())&&Pn(F)&&k.push(F),k},[]);setTimeout(()=>{s.searchOptions=E,X().then(()=>{v()}),h.value=!1},500)},g=b=>{if(b){const{meta:E}=b;E.windowOpen?window.open(E.windowOpen):(a.value=!1,t(b.fullPath,b),setTimeout(Yo,300))}},v=()=>{const b=s.searchOptions[u],E=s.searchOptions[d];b&&X().then(()=>{const k=et(`attr:data_path="${b.path}"`),O=E?et(`attr:data_path="${E==null?void 0:E.path}"`):null;if(O!=null&&O.length){const[R]=O;Xo(R,S)}if(k!=null&&k.length){const[R]=k;Tn(R,S)}})},c=b=>{const{icon:E}=b;return typeof E=="string"?r(P,{name:E,size:"24"},null):typeof E=="function"?()=>E:r(P,{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 E=b.key;switch((E==="ArrowUp"||E==="ArrowDown"||E==="Enter")&&(b.preventDefault(),b.stopPropagation()),d=u<=0?0:u,E){case"ArrowUp":y("up");break;case"ArrowDown":y("down");break;case"Enter":const k=s.searchOptions[u];k&&g(k);break}v()},w=({menuOption:b})=>r(D,V({align:"center",class:"content-item"},{onClick:g.bind(this,b),data_path:b.path}),{default:()=>[r("div",{class:"content-item-icon"},[c(b.meta)]),r("div",{class:"content-item-label"},[b.breadcrumbLabel]),r(P,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return fe(()=>{p.value&&(a.value=!1)}),je(window,"keydown",b=>{m(b),T(b)},!0),{...Re(s),modelShow:a,helperTipOptions:i,fuzzySearchMenuOptions:Et(_,300),searchItemClick:g,RenderPreIcon:c,isTabletOrSmaller:p,SearchItem:w,loading:h}},render(){const{isTabletOrSmaller:e,searchOptions:n,loading:t}=this,{SearchItem:o,fuzzySearchMenuOptions:l}=this;return e?r("div",{style:"display: none;"},null):r(rn,{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(at,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>r(pn,{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(zt,null,{default:()=>[r(lt,{show:t},{default:()=>[n.length?r(D,{vertical:!0,size:[0,6],class:"global-search__card-content"},St(a=n.map((s,i)=>r(o,{menuOption:s,key:s.fullPath},null)))?a:{default:()=>[a]}):r(ko,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>r(D,{justify:"center",class:"global-search__empty-content"},{default:()=>[r(mn,null,{default:()=>[Y("没有搜索结果")]})]})})]})]})},action:()=>{let a;return r(D,{justify:"flex-start",align:"center",size:[16,0]},St(a=this.helperTipOptions.map(s=>r(D,{key:s.label,size:[4,0]},{default:()=>[s.icon.map(i=>r(D,{class:"item-icon",align:"center",justify:"center"},St(i)?i:{default:()=>[i]})),r(D,{class:"item-label",align:"center"},{default:()=>[s.label]})]})))?a:{default:()=>[a]})}})])])]})}}),ns=x({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const o=Jo();return o==="MacOS"?"⌘ + K":"CTRL + K"},click:o=>{const{onClick:l}=e;l&&B(l,o)}}},render(){const{getShortcutKeyAboutSystem:e,click:n,$t:t}=this;return r(Z,{bordered:!1,onClick:n.bind(this),round:!0,tertiary:!0,style:"margin-right: 16px"},{icon:()=>r(P,{name:"search",size:"16"},null),default:()=>r(D,{align:"center"},{default:()=>[t("headerTooltip.Search"),r("div",{class:"global-search-btn__label"},[e()])]})})}}),os=x({name:"AppAvatar",props:{...Ao,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}=Un();return{getSigningCallback:e}},render(){const{getSigningCallback:e,avatarSize:n,spaceSize:t,$props:o,vertical:l}=this;return r(Z,{quaternary:!0,strong:!0,focusable:!1},{default:()=>[r(D,{align:"center",size:t,vertical:l},{default:()=>[r(Ro,V(o,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:n}),null),e==null?void 0:e.name]})]})}}),as=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],ls={logout:()=>{const{logout:e}=Er();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=U();e("lockScreenSwitch",!0)}},rs=e=>{const n=ls[e];n?n():window.$message.info("这个人很懒, 没做这个功能~")},ss=e=>{const{isTabletOrSmaller:n}=e,t=[],o=[{name:"menu",size:18,eventKey:"menu"}];return n.value?o:t},is=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},us=x({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:n}=U(),{t}=Ne(),[o,{toggleFullscreen:l,isEnabled:a}]=Sn(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:i}=W(),u=M(!1),d=M(!1),{isTabletOrSmaller:p}=ct(),h=ut("globalDrawerValue"),S=C(()=>ss({isFullscreen:o,isTabletOrSmaller:p})),f=C(()=>is({isFullscreen:o,isTabletOrSmaller:p})),m={search:()=>{d.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:()=>{ce("globalDrawerValue",!h.value)}};return{leftIconOptions:S,rightTooltipIconOptions:f,toolIconClick:v=>{var c;(c=m[v])==null||c.call(m)},showSettings:u,updateLocale:e,getDrawerPlacement:s,getBreadcrumbSwitch:i,globalSearchShown:d,isRenderVNode:v=>p.value?null:v}},render(){const{rightTooltipIconOptions:e,leftIconOptions:n,getDrawerPlacement:t,getBreadcrumbSwitch:o}=this,{toolIconClick:l,updateLocale:a,isRenderVNode:s}=this;return r(fn,{class:"layout-header"},{default:()=>[r(ts,{show:this.globalSearchShown,"onUpdate:show":i=>this.globalSearchShown=i},null),r(D,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[r(D,{align:"center",wrap:!1},{default:()=>[n.map(i=>r(Kr,{key:i.name,iconName:i.name,tooltipText:hn(i.tooltip)?i.tooltip.value:i.tooltip,customClassName:i.iconClass,onClick:l.bind(this,i.name)},null)),o?r(es,null,null):null]}),r(D,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[s(r(ns,{onClick:i=>{i.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(i=>r(Z,{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(ke,{options:kn,onSelect:i=>a(String(i)),trigger:"click"},{default:()=>[r(Z,{quaternary:!0,class:"override-button__layout",focusable:!1},{default:()=>[r(P,{customClassName:"layout-header__method--icon",name:"language",size:"16",cursor:"pointer"},null)]})]}),r(ke,{options:as(),onSelect:rs.bind(this),trigger:"click"},{default:()=>[r(os,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),r(Zr,{show:this.showSettings,"onUpdate:show":i=>this.showSettings=i,placement:t},null)]})}}),cs=x({name:"LayoutHeaderWrapper",setup(){return{}},render(){return r(D,{size:[0,0]},{default:()=>[r(us,null,null)]})}});function ds(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const ps=x({name:"AppMenuTag",setup(e,{expose:n}){const t=pe("scrollRef"),{getMenuKey:o,getMenuTagOptions:l}=be(),{changeMenuModelValue:a}=ze(),{getRootPath:s}=Me(),{maximize:i}=Wn(),{reload:u}=ws(),{close:d,closeAll:p,closeRight:h,closeLeft:S,closeOther:f,checkCloseLeft:m,checkCloseRight:_}=qn(),g=["closeAll","closeRight","closeLeft","closeOther"];let v=1/0;const c={size:16},y=M([{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>r(P,{name:"close",size:c.size},null)},{label:"最大化当前页面",key:"maximizeLayoutContent",icon:()=>r(P,{name:"fullscreen_fold",size:c.size},null)},{label:"刷新当前页面",key:"reloadCurrentPage",icon:()=>r(P,{name:"reload",size:c.size},null)},{label:"新窗口打开",key:"windowOpenTab",icon:()=>r(P,{name:"shared",size:c.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>r(P,{name:"close_left",size:c.size},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>r(P,{name:"close_right",size:c.size},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>r(P,{name:"close_other",size:c.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>r(P,{name:"resize_h",size:c.size},null),disabled:!1}]),T=Qe(16),w={closeCurrentPage:()=>{o.value!==s.value&&d(v)},reloadCurrentPage:()=>{u()},closeAll:()=>{p()},closeRight:()=>{h(v)},closeLeft:()=>{S(v)},closeOther:()=>{f(v)},windowOpenTab:()=>{const A=l.value[v];if(!(A!=null&&A.fullPath))return;const z=A.fullPath.startsWith("#")?A.fullPath:`#${A.fullPath}`;window.open(z,"_blank")},maximizeLayoutContent:()=>{const A=l.value[v];i(!0),A&&ee(A)}},b=le({x:0,y:0,actionDropdownShow:!1}),E="menu_tag_data",k=ut("globalMainLayoutLoad"),O="n-scrollbar-container";let R=o.value;const F=M(!1),q=A=>{d(A)},$=(A,z)=>{for(const H of y.value)if(H.key===A){H.disabled=z;break}},ee=A=>{b.actionDropdownShow=!1,a(A.fullPath,A)},G=()=>{const A=document.getElementById(T);if(A)return Array.from(A.childNodes).find($e=>Zo($e,O).value)},he=A=>{var H;const z=G();if(z){const $e=z.scrollLeft||0,jt=A==="left"?Math.max(0,$e-200):$e+200;(H=t.value)==null||H.scrollTo({left:jt,behavior:"smooth"})}},te=A=>{b.actionDropdownShow=!1;const z=w[A];z==null||z()},dt=(A,z)=>{z.preventDefault(),v=A,b.actionDropdownShow=!1,X(()=>{b.x=z.clientX,b.y=z.clientY,b.actionDropdownShow=!0})},Bt=()=>{_(v)?$("closeRight",!1):$("closeRight",!0),m(v)?$("closeLeft",!1):$("closeLeft",!0)},Hn=()=>{v=l.value.findIndex(z=>z.fullPath===o.value),Bt()},Yn=A=>{l.value.length>1&&A.fullPath!==s.value&&(A.closeable=!0),F.value=!0},Xn=A=>{A.fullPath!==o.value&&(A.closeable=!1),F.value=!1},Jn=()=>{G()&&X().then(()=>{var z;(z=t.value)==null||z.scrollTo({left:99999,behavior:"smooth"})})},pt=()=>{X().then(()=>{const A=et(`attr:${E}="${o.value}"`);if(A!=null&&A.length){const[z]=A;X().then(()=>{var H;(H=t.value)==null||H.scrollTo({left:z.offsetLeft,behavior:"smooth"})})}})},Zn=()=>{i(!0)};return Pe(()=>l.value,(A,z)=>{y.value.forEach(H=>{g.includes(H.key)&&(A.length>1?H.disabled=!1:H.disabled=!0)}),z!=null&&z.length&&(A.length>(z==null?void 0:z.length)?Jn():A.length===(z==null?void 0:z.length)&&pt()),z===void 0&&pt()},{immediate:!0}),fe(()=>{b.actionDropdownShow&&Bt(),R!==o.value&&(R=o.value,pt())}),n(),{getMenuTagOptions:l,closeCurrentMenuTag:q,getMenuKey:o,menuTagClick:ee,moreOptions:y,scrollX:he,scrollRef:t,uuidScrollBar:T,actionDropdownSelect:te,actionState:b,menuTagContextMenu:dt,setCurrentContextmenuIndex:Hn,menuTagMouseenter:Yn,menuTagMouseleave:Xn,MENU_TAG_DATA:E,iconConfig:c,maximize:i,reload:u,globalMainLayoutLoad:k,maximizeBtnClick:Zn,isMouseInMenuTag:F}},render(){let e;const{iconConfig:n,uuidScrollBar:t,getMenuTagOptions:o,MENU_TAG_DATA:l,globalMainLayoutLoad:a,isMouseInMenuTag:s}=this,{maximizeBtnClick:i,closeCurrentMenuTag:u,scrollX:d,$t:p,menuTagClick:h,menuTagContextMenu:S,menuTagMouseenter:f,menuTagMouseleave:m,actionDropdownSelect:_,reload:g}=this;return r(fn,null,{default:()=>[r("div",{class:"menu-tag"},[r(ke,{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(D,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0},{default:()=>[r(Z,{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(zt,V({xScrollable:!0,ref:"scrollRef"},{id:t},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[r(D,{class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},ds(e=o.map((v,c)=>r(Z,V({key:v.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:v.fullPath===this.getMenuKey?"primary":"default"},{onClick:h.bind(this,v),onContextmenu:S.bind(this,c),onMouseenter:f.bind(this,v),onMouseleave:m.bind(this,v),[l]:v.fullPath},{size:"small",focusable:!1}),{default:()=>r(bn,null,[r("span",null,{default:()=>{const{breadcrumbLabel:y,meta:{i18nKey:T}}=v;return T?p(T):y}}),r(Po,V({class:"menu-tag__btn-icon"},{onMousedown:u.bind(this,c)}),{default:()=>[r(P,{name:"close",size:"14"},null)]})])})))?e:{default:()=>[e]})]}),r(D,{align:"center",inline:!0,wrap:!1,size:[0,0]},{default:()=>[r(Z,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:d.bind(this,"right")},{icon:()=>r(P,{name:"expanded",width:n.size,height:n.size,style:{transform:"rotate(180deg)"}},null)}),r(Z,{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(Z,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:()=>{g()}},{icon:()=>r(P,{name:"reload",width:n.size,height:n.size,customClassName:`${a?"":"menu-tag__right-setting--spinning"}`},null)}),r(In,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:18,keyboard:!1},{default:()=>[r(Z,{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)})]})]})]})])]})}}),ms=x({name:"LayoutFeatureWrapper",setup(){return{}},render(){return r(ps,null,null)}}),fs=e=>{const n=ft(e[0]),t=ft(e[1]),o=ft(e[2]),{height:l,width:a}=Mt();return C(()=>({"--window-width":`${a.value}px`,"--window-height":`${l.value}px`,"--layout-content-height":`calc(${l.value}px - ${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`}))},tn=Io(J.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),gs=()=>({setLockAppScreen:t=>{tn.value=t},getLockAppScreen:()=>tn.value}),hs=x({name:"RLayout",setup(){const e=M(),n=M(),t=M(),{getMenuTagSwitch:o,getCopyrightSwitch:l}=W(),{getLockAppScreen:a}=gs(),s=fs([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()?null:r(xo,{class:"r-layout-full",style:[n],hasSider:!0,embedded:!0},{default:()=>[r(Fr,null,null),r(Kt,{class:"r-layout-full__viewer"},{default:()=>[r(cs,{ref:"layoutSiderBarRef"},null),e?r(ms,{ref:"layoutMenuTagRef"},null):null,r(Kt,{ref:Ce,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[r(Kn,null,null)]}),t?r($r,{ref:"layoutFooterRef"},null):null]})]})}}),vs=[{path:"/",name:"RLogin",component:()=>L(()=>import("./index-BVKRM6-W.js"),__vite__mapDeps([87,1,2,3,4,5,6,7,8,9,10,11,39,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,71,72,73,30,31,50,33,34,35,36,37,38,40,41,42,43,44,45,46,47,88]))},{path:"/",name:"RLayout",component:hs,children:[...xr(),{path:"/:catchAll(.*)",component:()=>L(()=>import("./index-D1ThNEs9.js"),__vite__mapDeps([89,1,2,3,4,5,6,7,8,9,10,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,90])),meta:{i18nKey:j("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],nt=ca({history:da(),routes:vs,scrollBehavior:e=>{$l(e)}}),gi=e=>{e.use(nt),Ir(nt)},Ft=()=>nt?{router:nt}:{router:{}},nn="YYYY-MM-DD HH:mm:ss",ys=()=>({locale:s=>{const i=Ua[s];i?se.locale(i):se.locale($a)},getStartAndEndOfDay:s=>{const{format:i=nn}=s??{},u=se(),d=u.startOf("day"),p=u.endOf("day"),h=u.format(i),S=d.format(i),f=p.format(i);return{today:u,startOfDay:d,endOfDay:p,formatToday:h,formatStartOfDay:S,formatEndOfDay:f}},format:(s,i)=>{const{format:u=nn}=i??{};return se(s).format(u)},isDayjs:s=>se.isDayjs(s),daysDiff:(s,i)=>{const u=se(s);return se(i).diff(u,"days")},isDateInRange:(s,i)=>{const{start:u,end:d}=i,p=se(s);return p.isAfter(u)&&p.isBefore(d)}});function ct(e){const{width:n,height:t}=Mt(e),o=M(!1),{observer:l}=e??{};return Qo(()=>{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:Te(o)}}let _t=999,wt=!1;const ve="ELEMENT-FULLSCREEN-RAY",{width:Ct,height:Tt}=Mt(),on=document.createElement("style"),bs=(e,n)=>{const{beforeEnter:t,beforeExit:o,enter:l,exit:a,backgroundColor:s,zIndex:i,transition:u="all 0.3s var(--r-bezier)"}=n??{};let d=!1;const p={x:null,y:null},h=()=>{const g=ue(e);if(!g)return;const{left:v,top:c}=g.getBoundingClientRect();p.x===null&&p.y===null&&(p.x=-v,p.y=-c),De(document.body,{"--element-fullscreen-z-index":me(i,"Null")||me(i,"Undefined")?_t:i,"--element-fullscreen-transition":u,"--element-fullscreen-background-color":s,"--element-fullscreen-width":`${Ct.value}px`,"--element-fullscreen-height":`${Tt.value}px`,"--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); - } - `;on.innerHTML=y,wt||document.head.appendChild(on)},S=()=>{const g=ue(e);t==null||t(),g&&(g.getAttribute(ve)||g.setAttribute(ve,ve),d||(d=!0,_t+=1),wt||(h(),wt=!0),g.style.transition=u,l==null||l())},f=()=>{o==null||o();const g=ue(e);g&&g.removeAttribute(ve),a==null||a()},m=()=>{const g=ue(e);g&&(g.getAttribute(ve)?f():S())},_=Pe(()=>[Ct.value,Tt.value],h);return Lt(()=>{const g=ue(e);g&&g.removeAttribute(ve),_t--,_()}),{enter:S,exit:f,toggleFullscreen:m,currentWindowSize:{width:Ct,height:Tt}}},Ot={svg:na,png:oa,jpeg:aa,blob:la,pixelData:ra,canvas:sa},hi=(e,n)=>{const{beforeCreate:t,created:o,createdError:l,finally:a,imageType:s}=n??{};return{create:u=>new Promise((d,p)=>{var S;const h=ue(e);if(t==null||t(h),!h)return l==null||l(),p("useDomToImage: element is undefined.");(S=Ot[u??s??"jpeg"])==null||S.call(Ot,h,n).then(f=>(o==null||o(f,h),d(f))).catch(f=>(l==null||l(f),p(f))).finally(()=>{a==null||a(h)})})}},vi=(e,n)=>({print:()=>{const o=ue(e)||e;Ko({...ot(n,["printable"]),printable:o})}}),Ss={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},_s=(e,n)=>{const t=M(e),o=ot(n,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size"]),a=M(Object.assign({},Ss,o,{onUpdatePage:c=>{var y;a.value.page=c,(y=t.value)==null||y.call(t)},onUpdatePageSize:c=>{var y;a.value.pageSize=c,a.value.page=1,(y=t.value)==null||y.call(t)}})),s=a.value.onUpdatePage,i=a.value.onUpdatePageSize,u=()=>a.value.itemCount,d=c=>{a.value.itemCount=c},p=()=>a.value.page,h=c=>{s(c)},S=()=>a.value.pageSize,f=c=>{i(c)},m=()=>a.value,_=e,g=c=>{t.value=c},v=()=>{const{pageSizes:c}=a.value;a.value.page=1,a.value.pageSize=(c==null?void 0:c[0])||10};return Lt(()=>{t.value=void 0}),[a,{getItemCount:u,setItemCount:d,getPage:p,setPage:h,getPageSize:S,setPageSize:f,getPagination:m,getCallback:_,setCallback:g,resetPagination:v}]},Wn=()=>({isLayoutContentMaximized:C(()=>ut("layoutContentMaximize").value),maximize:(t,o)=>{var i;const{scrollToOptions:l}=o??{},a=ue(Ce),{toggleFullscreen:s}=bs(a,o);ce("layoutContentMaximize",t),s(),l&&t&&((i=Ce==null?void 0:Ce.value)==null||i.scrollTo(l))}}),ws=()=>({reload:(o=800)=>{ce("globalMainLayoutLoad",!1),setTimeout(()=>ce("globalMainLayoutLoad",!0),o)},openSpin:()=>{ce("layoutContentSpinning",!0)},closeSpin:()=>{ce("layoutContentSpinning",!1)}}),yi=()=>({setWatermarkContent:l=>{const{getWatermarkConfig:a}=W(),s=Object.assign(a.value,{content:l}),{updateSettingState:i}=U();i("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:l}=U();l("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:l}=U();l("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:l}=W(),{updateSettingState:a}=U();a("watermarkSwitch",!l.value)}}),He=e=>{const{getPrimaryColorOverride:n}=W(),{updateSettingState:t}=U();t("primaryColorOverride",e?Object.assign({},n.value,ae.appNaiveUIThemeOverrides.dark,ae.appNaiveUIThemeOverridesCommon.dark):Object.assign({},n.value,ae.appNaiveUIThemeOverrides.light,ae.appNaiveUIThemeOverridesCommon.light))},bi=()=>{const e=()=>{const{getAppTheme:a}=W(),{t:s}=Ne();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}=U();a("_appTheme",!0),a("appTheme","dark"),He(!0)},lightTheme:()=>{const{updateSettingState:a}=U();a("_appTheme",!1),a("appTheme","light"),He(!1)},toggleTheme:()=>{const{theme:a}=e(),{updateSettingState:s}=U();s("_appTheme",!a),s("appTheme",a?"light":"dark"),He(!a)},getAppTheme:e,syncSystemTheme:()=>{const{getAppTheme:a}=W(),{updateSettingState:s}=U(),{system:i}=gn();s("_appTheme",i.value==="dark"),s("appTheme","auto"),He(a.value)}}},we=(e,n)=>{const{getMenuTagOptions:t}=be();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 qn(){const{getMenuTagOptions:e,getMenuKey:n}=be(),{changeMenuModelValue:t,spliceMenTagOptions:o,setMenuTagOptions:l,resolveOption:a}=ze(),s=()=>e.value.findIndex(m=>m.fullPath===n.value);return{close:m=>{const _=we(m,"close");if(e.value.length!==1&&_){const{index:g,option:v}=_;if(o(g),v.fullPath===n.value){const c=e.value[g-1];c&&t(c.fullPath,c)}}},closeAll:()=>{o(0,e.value.length);const{getRootPath:m}=Me(),{router:{getRoutes:_}}=Ft(),g=_().find(v=>v.path===m.value);if(g){const v=Fe(g,xt),c=a(v);t(c.path,a({...c,fullPath:c.path}))}},closeRight:m=>{const _=we(m,"closeRight");if(_){const{option:g,index:v}=_,c=e.value.length-v,y=s();o(v+1,c),v<=y&&n.value!==g.fullPath&&t(g.fullPath,g)}},closeLeft:m=>{const _=we(m,"closeLeft");if(_){const{option:g,index:v}=_,c=s();o(0,v),c<=v&&n.value!==g.fullPath&&t(g.fullPath,g)}},closeOther:m=>{const _=we(m,"closeOther");if(_){const{option:g}=_;n.value!==g.fullPath?(o(0,e.value.length),t(g.fullPath,g)):l(g,!1)}},getCurrentTagIndex:s,checkCloseRight:m=>{const _=we(m,"checkCloseRight");if(_){const{index:g}=_,v=e.value.length-1;return!(g>=v)}return!1},checkCloseLeft:m=>{const _=we(m,"checkCloseRight");if(_){const{index:g}=_,v=e.value.length-1;return g===0?!1:g>0&&v>0}return!1}}}function Si(){return{navigationTo:(n,t)=>{const{router:{getRoutes:o,push:l,replace:a}}=Ft(),{isPush:s=!0,query:i}=t||{},u=d=>s?l({path:d,query:i}):a({path:d,query:i});if(typeof n=="number"){if(isNaN(n)){console.warn(`[navigationTo]: The ${n} is NaN, expect number.`);return}const{getMenuOptions:d}=be();if(n>d.value.length){console.warn(`[navigationTo]: The current ${n} exceeds the maximum number of menus.`);return}const p=d.value[n],h=S=>{if(S.children&&S.children.length>0){const{children:[f]}=S;h(f);return}u(S.fullPath)};h(p)}else if(typeof n=="string"){const d=o().find(p=>p.path===n);d?u(d.path):console.warn(`[navigationTo]: The path "${n}" is not found.`)}else u(n.fullPath)}}}function Me(){const{getAppRootRoute:e}=W(),{updateSettingState:n}=U(),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 Cs=(e,n)=>{const{show:t,...o}=n;e.meta.extra=Object.assign({},e.meta.extra,{...o,show:t}),e.extra=Fn(e)},an=(e,n,t)=>{const o=jn(e,n);o&&Cs(o,t)},kt=(e,n,t)=>{const{getMenuOptions:o}=be();if(typeof e=="string")an(o.value,e,t);else if(me(e,"Object")){const{fullPath:l}=e;an(o.value,l,t)}else console.warn(`[useBadge ${n}]: target expect string or object.`)};function _i(){return{hidden:o=>{kt(o,"hidden",{show:!1})},show:o=>{kt(o,"show",{show:!0})},update:(o,l)=>{kt(o,"update",l)}}}const wi=()=>{const e=An.value,{scrollTo:n}=e||{};if(!n)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return n},Gn=()=>Ze(J.localeLanguage,"localStorage",{defaultValue:Va});export{Wn as $,Zs as A,ti as B,ai as C,$a as D,li as E,ui as F,vr as G,ri as H,_s as I,oi as J,pr as K,An as L,Xs as M,tr as N,Cr as O,pi as P,ii as Q,si as R,Lr as S,di as T,ys as U,jr as V,fi as W,ei as X,mr as Y,In as Z,L as _,hi as a,Si as a0,ws as a1,yi as a2,_i as a3,vi as b,wi as c,Qs as d,W as e,J as f,Ys as g,U as h,gs as i,Er as j,ct as k,os as l,ut as m,Js as n,ni as o,gi as p,Me as q,Ne as r,mi as s,P as t,bi as u,kn as v,ht as w,Ft as x,Hs as y,ci as z}; diff --git a/js/hooks-DNoo5Jj5.js.gz b/js/hooks-DNoo5Jj5.js.gz deleted file mode 100644 index 515eb675..00000000 Binary files a/js/hooks-DNoo5Jj5.js.gz and /dev/null differ diff --git a/js/html-to-image@1.11.11-BOFdlgi9.js.gz b/js/html-to-image@1.11.11-BOFdlgi9.js.gz index cd43517a..fac93431 100644 Binary files a/js/html-to-image@1.11.11-BOFdlgi9.js.gz and b/js/html-to-image@1.11.11-BOFdlgi9.js.gz differ diff --git a/js/index-B4VbZD3l.js.gz b/js/index-B4VbZD3l.js.gz deleted file mode 100644 index 3532f6cf..00000000 Binary files a/js/index-B4VbZD3l.js.gz and /dev/null differ diff --git a/js/index-B7I8d6oq.js b/js/index-B7I8d6oq.js new file mode 100644 index 00000000..971ea5af --- /dev/null +++ b/js/index-B7I8d6oq.js @@ -0,0 +1 @@ +import{J as r}from"./hooks-AGBWEt_R.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--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-i2yA9The.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DNt1HURo.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-DnrABUGp.js";import"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./utils-DweTa4yD.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12-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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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-B7I8d6oq.js.gz b/js/index-B7I8d6oq.js.gz new file mode 100644 index 00000000..4f060ec7 Binary files /dev/null and b/js/index-B7I8d6oq.js.gz differ diff --git a/js/index-B8O3KhRo.js b/js/index-B8O3KhRo.js new file mode 100644 index 00000000..7d2c1703 --- /dev/null +++ b/js/index-B8O3KhRo.js @@ -0,0 +1 @@ +import{P as m,R as l}from"./hooks-AGBWEt_R.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--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-i2yA9The.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-DNt1HURo.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-DnrABUGp.js";import"./utils-DweTa4yD.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12-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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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-B8O3KhRo.js.gz b/js/index-B8O3KhRo.js.gz new file mode 100644 index 00000000..611c90a7 Binary files /dev/null and b/js/index-B8O3KhRo.js.gz differ diff --git a/js/index-BuRzBDbW.js b/js/index-B8UExuJq.js similarity index 62% rename from js/index-BuRzBDbW.js rename to js/index-B8UExuJq.js index fa0fc59d..ad22f4b0 100644 --- a/js/index-BuRzBDbW.js +++ b/js/index-B8UExuJq.js @@ -1 +1 @@ -import{l as r,b as o,I as e}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.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-DtgApL3K.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-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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-ewSD1rNh.js";import"./lodash-es@4.17.21-CeZG2a4n.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-i2yA9The.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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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-B8UExuJq.js.gz b/js/index-B8UExuJq.js.gz new file mode 100644 index 00000000..ca280d80 Binary files /dev/null and b/js/index-B8UExuJq.js.gz differ diff --git a/js/index-B9mAhQoY.js b/js/index-B9mAhQoY.js new file mode 100644 index 00000000..de4e5489 --- /dev/null +++ b/js/index-B9mAhQoY.js @@ -0,0 +1 @@ +import{O as p}from"./hooks-AGBWEt_R.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-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-i2yA9The.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-DNt1HURo.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-DnrABUGp.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12--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-DweTa4yD.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.12-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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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-B9mAhQoY.js.gz b/js/index-B9mAhQoY.js.gz new file mode 100644 index 00000000..f877c252 Binary files /dev/null and b/js/index-B9mAhQoY.js.gz differ diff --git a/js/index-BIEmcx8R.js b/js/index-BIEmcx8R.js deleted file mode 100644 index 3381e937..00000000 --- a/js/index-BIEmcx8R.js +++ /dev/null @@ -1 +0,0 @@ -import{H as r}from"./hooks-DNoo5Jj5.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-C6aYKqdf.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{l as i,b as t}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{N as o,c as m}from"./naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./utils-DewQlJ2W.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_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.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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-ewSD1rNh.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.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-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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 $=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{$ as default}; diff --git a/js/index-BIEmcx8R.js.gz b/js/index-BIEmcx8R.js.gz deleted file mode 100644 index 2d964b66..00000000 Binary files a/js/index-BIEmcx8R.js.gz and /dev/null differ diff --git a/js/index-BVKRM6-W.js b/js/index-BVKRM6-W.js deleted file mode 100644 index 055fa2b1..00000000 --- a/js/index-BVKRM6-W.js +++ /dev/null @@ -1 +0,0 @@ -import{j as T,q as C,r as L,f,t as r,e as F,u as P,h as A,v as $}from"./hooks-DNoo5Jj5.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-C6aYKqdf.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{u as V}from"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import{s as y}from"./utils-DewQlJ2W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{H as w,L as S,O as q,q as z,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-DtgApL3K.js";import{l as a,b as e,p as m,I as d,F as B}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.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.2.2-BJQJW2Mf.js";import{L as X}from"./ray-dCjhX_JK.js";import{e as Y}from"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import{A as J}from"./index-CT0XK3_m.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_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.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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-B9WpRTpD.js";import"./@vue_runtime-dom@3.5.12-ewSD1rNh.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"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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=V(),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(v=>{v.code===0&&setTimeout(()=>{window.$message.success(`欢迎${g.value.name}登陆~`),y(f.token,"tokenValue","localStorage"),y(f.signing,v.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(z,{model:this.signingForm,ref:"loginFormRef",rules:this.rules},{default:()=>[e(w,{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(w,{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(q,{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:{"@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/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@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",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","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-compression":"^0.5.1","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.0.13"},name:"ray-template",version:"5.0.3"},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 st=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{st as default}; diff --git a/js/index-BVKRM6-W.js.gz b/js/index-BVKRM6-W.js.gz deleted file mode 100644 index c22da309..00000000 Binary files a/js/index-BVKRM6-W.js.gz and /dev/null differ diff --git a/js/index-BXBystby.js b/js/index-BXBystby.js deleted file mode 100644 index 4ee208b7..00000000 --- a/js/index-BXBystby.js +++ /dev/null @@ -1 +0,0 @@ -import{R as a1}from"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import{e as w,g as s1,M as r1,f as M,h as S,i as x,j as R,k as p1,l as d1,R as E,m as h1,n as u1,D as f1,s as m1,o as v1,p as g1}from"./hooks-DNoo5Jj5.js";import{d as u}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-C6aYKqdf.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"./currency.js@2.0.4-9OAR_aOO.js";import{a0 as _1,a1 as b1,a2 as M1,a3 as y1,a4 as w1,a5 as k1,a6 as P,a7 as C1,a8 as Z1,q as $,H as N,L as F,O as k,c as z1,a9 as S1,aa as x1,e as H1}from"./naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js";import{l as f,j as C,b as n,w as V1,k as P1,n as A1,I as g,v as L1,m as I}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{g as U,c as B1,b as Z,w as z,m as q,s as A,f as L,i as j1}from"./utils-DewQlJ2W.js";import{g as D1,d as T1,t as O1,f as R1}from"./lodash-es@4.17.21-CeZG2a4n.js";import{k as _,e as Y,x as W}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./vue3-next-qrcode@2.0.10_typescript@5.2.2-BJQJW2Mf.js";import{C as E1}from"./clipboard@2.0.11-DheAgBlr.js";import{u as G}from"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import{c as J}from"./@vue_runtime-dom@3.5.12-ewSD1rNh.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_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.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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-B9WpRTpD.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.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-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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 t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const c of a.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function l(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(i){if(i.ep)return;i.ep=!0;const a=l(i);fetch(i.href,a)}})();const $1=f({name:"GlobalProvider",setup(e,{expose:t}){const{getPrimaryColorOverride:l,getAppTheme:o,getLocaleLanguage:i}=w(),a=C(()=>{const s=i.value;return s1(s)}),c=()=>{const{message:s,notification:r,dialog:p,loadingBar:d}=Z1(["message","dialog","notification","loadingBar"],{configProviderProps:C(()=>({theme:o.value?P:null}))});window.$dialog=p,window.$message=s,window.$loadingBar=d,window.$notification=r};return t(),{getPrimaryColorOverride:l,localePackage:a,getAppTheme:o,discreteApi:c}},render(){const{$slots:{default:e},discreteApi:t}=this,{getPrimaryColorOverride:l,getAppTheme:o,localePackage:i}=this;return n(C1,{themeOverrides:l,theme:o?P:null,locale:i.locale,dateLocale:i.dateLocal},{default:()=>[n(_1,null,{default:()=>[n(b1,r1,{default:()=>[n(M1,null,{default:()=>[n(y1,null,{default:()=>[n(w1,null,{default:()=>[n(k1,null,null),e==null?void 0:e(),t()]})]})]})]})]})]})}});var N1={pkg:{dependencies:{"@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/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@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",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","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-compression":"^0.5.1","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.0.13"},name:"ray-template",version:"5.0.3"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const F1=f({name:"AppStyleProvider",setup(e,{expose:t}){const{getAppTheme:l}=w(),o=()=>{const{appPrimaryColor:{primaryColor:c,primaryFadeColor:s}}=N1,r=document.body,p=U(M.appPiniaSettingStore,"localStorage");if(p){const d=D1(p,"primaryColorOverride.common.primaryColor",c),m=B1(d,.38);r.style.setProperty("--ray-theme-primary-color",d),r.style.setProperty("--ray-theme-primary-fade-color",m||s)}},i=()=>{const c=document.getElementById("pre-loading-animation");c&&Z(c,{display:"none"})},a=c=>{const s=document.body,r="ray-template--dark",p="ray-template--light";c?z(s,p):z(s,r),q(s,c?r:p)};o(),i(),V1(()=>l.value,c=>{a(c)},{immediate:!0}),t()},render(){return n("div",{class:"app-style-provider"},null)}}),K={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},y=()=>({lockPassword:null}),I1=f({name:"LockScreen",setup(){const e=_(null),t=_(null),{setLockAppScreen:l}=x(),{updateSettingState:o}=S(),i=Y({lockCondition:y()}),a=()=>{var c;(c=e.value)==null||c.validate(s=>{s||(l(!0),o("lockScreenSwitch",!0),i.lockCondition=y())})};return P1(()=>{A1(()=>{var c;(c=t.value)==null||c.focus()})}),{...W(i),lockScreen:a,formInstRef:e,inputInstRef:t}},render(){return n("div",{class:"app-lock-screen__input"},[n($,{ref:"formInstRef",model:this.lockCondition,rules:K,labelPlacement:"left"},{default:()=>[n(N,{path:"lockPassword"},{default:()=>[n(F,{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(k,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[g("锁屏")]})]})])}}),U1=f({name:"UnlockScreen",setup(){const e=_(null),t=_(null),{logout:l}=R(),{updateSettingState:o}=S(),{setLockAppScreen:i}=x(),{isTabletOrSmaller:a}=p1(),c="HH:mm",s="A",r="YY年MM月DD日",p="ddd",d=Y({lockCondition:y(),HH_MM:u().format(c),AM_PM:u().locale("en").format(s),YY_MM_DD:u().format(r),DDD:u().format(p)}),m=setInterval(()=>{d.HH_MM=u().format(c),d.AM_PM=u().format(s)},6e3),v=setInterval(()=>{d.YY_MM_DD=u().format(r),d.DDD=u().format(p)},864e5),b=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{l(),setTimeout(()=>{o("lockScreenSwitch",!1)})}})},c1=()=>{var V;(V=e.value)==null||V.validate(n1=>{n1||(i(!1),o("lockScreenSwitch",!1),d.lockCondition=y())})};return L1(()=>{clearInterval(m),clearInterval(v)}),{...W(d),backToSigning:b,unlockScreen:c1,formRef:e,inputInstRef:t,isTabletOrSmaller:a}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:t,AM_PM:l,YY_MM_DD:o,DDD:i}=this,a=t.split(":"),{unlockScreen:c,backToSigning:s}=this;return n("div",{class:"app-lock-screen__unlock"},[n("div",{class:"app-lock-screen__unlock__content"},[n("div",{class:"app-lock-screen__unlock__content-wrapper"},[n("div",{class:["app-lock-screen__unlock__content-bg__wrapper","app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[n("div",{class:"left"},[a[0]]),n("div",{class:"right"},[a[1]])])]),n("div",{class:"app-lock-screen__unlock__content-avatar"},[n(d1,{avatarSize:52,style:"pointer-events: none;",vertical:!0},null)]),n("div",{class:"app-lock-screen__unlock__content-input"},[n($,{ref:"formRef",model:this.lockCondition,rules:K},{default:()=>[n(N,{path:"lockPassword"},{default:()=>[n(F,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":r=>this.lockCondition.lockPassword=r,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,maxlength:12,onKeydown:r=>{r.code==="Enter"&&c()}},null)]}),n(z1,{justify:"space-between"},{default:()=>[n(k,{type:"primary",text:!0,onClick:s.bind(this)},{default:()=>[g("返回登陆")]}),n(k,{type:"primary",text:!0,onClick:c.bind(this)},{default:()=>[g("进入系统")]})]})]})]),n("div",{class:"app-lock-screen__unlock__content-date"},[n("div",{class:"current-date"},[t,g(" "),n("span",null,[l])]),n("div",{class:"current-year"},[o,g(" "),n("span",null,[i])])])])])}}),q1=f({name:"AppLockScreen",setup(){const{getLockAppScreen:e}=x(),{updateSettingState:t}=S(),{getLockScreenSwitch:l}=w();return{lockScreenSwitchRef:C({get:()=>l.value,set:i=>{t("lockScreenSwitch",i)}}),getLockAppScreen:e}},render(){const{getLockAppScreen:e}=this;return n(E,{show:this.lockScreenSwitchRef,"onUpdate:show":t=>this.lockScreenSwitchRef=t,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:e()?void 0:"dialog",title:"锁定屏幕"},{default:()=>[n("div",{class:"app-lock-screen__content"},[e()?n(U1,null,null):n(I1,null,null)])]})}}),Y1=f({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:e,getWatermarkConfig:t}=w();return{getWatermarkSwitch:e,getWatermarkConfig:t}},render(){const{getWatermarkConfig:e,getWatermarkSwitch:t}=this;return t?n(S1,I(e,{fullscreen:!0}),null):null}}),W1=f({name:"GlobalSpin",props:{...x1},setup(){const e={opacitySpinning:"0.3"};return{spinValue:h1("globalSpinning"),overrides:e}},render(){return n(H1,I(this.$props,{show:this.spinValue,themeOverrides:this.overrides}),{...this.$slots})}});var G1={pkg:{dependencies:{"@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/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@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",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","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-compression":"^0.5.1","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.0.13"},name:"ray-template",version:"5.0.3"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const J1=f({name:"AppVersionProvider",setup(){const{pkg:{version:e}}=G1,t=U(M.appVersionProvider,"localStorage"),l=_(!1),{logout:o}=R();return t!==null?e!==t&&(l.value=!0,A(M.appVersionProvider,e,"localStorage")):A(M.appVersionProvider,e,"localStorage"),{modalShow:l,logout:o}},render(){const{logout:e}=this;return n("div",{class:"app-style-provider"},[n(E,{show:this.modalShow,"onUpdate:show":t=>this.modalShow=t,closeOnEsc:!1,maskClosable:!1,preset:"dialog",closable:!1,title:"发现新版本",content:"当前版本已更新,点击确认加载新版本~",zIndex:999999999,dad:!0,positiveText:"确认",negativeText:"取消",onPositiveClick:e,onNegativeClick:()=>{this.modalShow=!1}},null)])}}),X=f({name:"App",render(){return n($1,null,{default:()=>[n(J1,null,null),n(q1,null,null),n(F1,null,null),n(Y1,null,null),n(W1,null,{default:()=>n(a1,null,null),description:()=>u1})]})}});if(typeof window<"u"){let e=function(){var t=document.body,l=document.getElementById("__svg__icons__dom__");l||(l=document.createElementNS("http://www.w3.org/2000/svg","svg"),l.style.position="absolute",l.style.width="0",l.style.height="0",l.id="__svg__icons__dom__",l.setAttribute("xmlns","http://www.w3.org/2000/svg"),l.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),l.innerHTML='',t.insertBefore(l,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const K1=()=>{u.locale(f1)},B=(e,t)=>{const l=new E1(e,{text:()=>t});e.$$clipboard=l,e.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),e.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},X1=()=>({mounted:(e,{value:t})=>{B(e,t)},updated:(e,{value:t,oldValue:l})=>{var o;t!==l&&((o=e.$$clipboard)==null||o.destroy(),B(e,t))},beforeUnmount:e=>{var t;e.$$clipboard&&((t=e.$$clipboard)==null||t.destroy(),e.$$clipboard=null)}}),Q1=Object.freeze(Object.defineProperty({__proto__:null,default:X1},Symbol.toStringTag,{value:"Module"})),e2=()=>{let e,t;return{beforeMount:(l,{value:o})=>{const{func:i,trigger:a="click",wait:c=500,options:s}=o;if(typeof i!="function")throw new TypeError("debounce directive value must be a function");e=T1(i,c,Object.assign({},s)),t=G(l,a,e)},beforeUnmount:(l,{value:o})=>{e&&(e.cancel(),t==null||t()),e=null}}},t2=Object.freeze(Object.defineProperty({__proto__:null,default:e2},Symbol.toStringTag,{value:"Module"})),j=(e,t)=>{if(e){const l="ray-template__directive--disabled";t?(e.setAttribute("disabled","disabled"),q(e,l)):(e.removeAttribute("disabled"),z(e,l)),e==null||e.setAttribute("disabled",t?"disabled":"")}},l2=()=>({mounted:(e,{value:t})=>{j(e,t)},updated:(e,{value:t,oldValue:l})=>{t!==l&&j(e,t)}}),i2=Object.freeze(Object.defineProperty({__proto__:null,default:l2},Symbol.toStringTag,{value:"Module"})),D=(e,t)=>{const{line:l=1,type:o="block",width:i,popoverText:a}=t;if(i==null){console.error(`[v-ellipsis]: Expected width is string or number, but got typeof ${i}!`);return}a&&e.textContent&&e.setAttribute("title",e.textContent),o==="line"?Z(e,{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l,overflow:"hidden",width:L(i)}):Z(e,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:L(i)})},o2=()=>({mounted:(e,{value:t})=>{D(e,t)},updated:(e,{value:t})=>{D(e,t)}}),c2=Object.freeze(Object.defineProperty({__proto__:null,default:o2},Symbol.toStringTag,{value:"Module"})),h={vRippleAnimationEnter:"v-ripple__animation--enter",vRippleAnimationVisible:"v-ripple__animation--visible",vRippleAnimationIn:"v-ripple__animation--in",vRippleAnimationOut:"v-ripple__animation--out",vRippleAnimation:"v-ripple__animation"},n2="v-ripple__container";function T(e,t){e.style.transform=t}function Q(e){const t={},l=e.currentTarget;!(l!=null&&l.__d_ripple__)||l.__d_ripple__.touched||(t.center=l.__d_ripple__.centered,l.__d_ripple__.class&&(t.class=l.__d_ripple__.class),H.show(e,l,t))}function e1(e){const t=e.currentTarget;t!=null&&t.__d_ripple__&&(setTimeout(()=>{t.__d_ripple__&&(t.__d_ripple__.touched=!1)}),H.hide(t))}const a2=(e,t,l={})=>{var v;const o=t.getBoundingClientRect(),i=e.clientX-o.left,a=e.clientY-o.top;let c=0,s=.3;(v=t.__d_ripple__)!=null&&v.circle?(s=.15,c=t.clientWidth/2,c=l.center?c:c+Math.sqrt((i-c)**2+(a-c)**2)/4):c=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const r=`${(t.clientWidth-c*2)/2}px`,p=`${(t.clientHeight-c*2)/2}px`,d=l.center?r:`${i-c}px`,m=l.center?p:`${a-c}px`;return{radius:c,scale:s,x:d,y:m,centerX:r,centerY:p}},H={show(e,t,l={}){var b;if(!((b=t==null?void 0:t.__d_ripple__)!=null&&b.enabled))return;const o=document.createElement("span"),i=document.createElement("span");o.appendChild(i),o.className=n2,l.class&&(o.className+=` ${l.class}`);const{radius:a,scale:c,x:s,y:r,centerX:p,centerY:d}=a2(e,t,l),m=`${a*2}px`;i.className=h.vRippleAnimation,i.style.width=m,i.style.height=m,t.appendChild(o);const v=window.getComputedStyle(t);v&&v.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add(h.vRippleAnimationEnter),i.classList.add(h.vRippleAnimationVisible),T(i,`translate(${s}, ${r}) scale3d(${c},${c},${c})`),i.dataset.activated=String(performance.now()),setTimeout(()=>{i.classList.remove(h.vRippleAnimationEnter),i.classList.add(h.vRippleAnimationIn),T(i,`translate(${p}, ${d}) scale3d(1,1,1)`)},0)},hide(e){var a;if(!((a=e==null?void 0:e.__d_ripple__)!=null&&a.enabled))return;const t=e.getElementsByClassName(h.vRippleAnimation);if(t.length===0)return;const l=t[t.length-1];if(l.dataset.isHiding)return;l.dataset.isHiding="true";const o=performance.now()-Number(l.dataset.activated),i=Math.max(250-o,0);setTimeout(()=>{l.classList.remove(h.vRippleAnimationIn),l.classList.add(h.vRippleAnimationOut),setTimeout(()=>{var s;e.getElementsByClassName(h.vRippleAnimation).length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((s=l.parentNode)==null?void 0:s.parentNode)===e&&e.removeChild(l.parentNode)},300)},i)}};function t1(e){return typeof e>"u"||!!e}function l1(e){e.removeEventListener("pointerdown",Q),e.removeEventListener("pointerup",e1)}function O(e,t,l){const{value:o,modifiers:i}=t,a=t1(o);a||H.hide(e),e.__d_ripple__=e.__d_ripple__??{},e.__d_ripple__.enabled=a,e.__d_ripple__.centered=i.center,e.__d_ripple__.circle=i.circle,j1(o,"Object")&&o.class&&(e.__d_ripple__.class=o.class),a&&!l?(e.addEventListener("pointerdown",Q),e.addEventListener("pointerup",e1)):!a&&l&&l1(e)}const s2=()=>({mounted:(e,t)=>{O(e,t,!1)},beforeUnmount:e=>{delete e.__d_ripple__,l1(e)},updated:(e,t)=>{if(t.value===t.oldValue)return;const l=t1(t.oldValue);O(e,t,l)}}),r2=Object.freeze(Object.defineProperty({__proto__:null,default:s2},Symbol.toStringTag,{value:"Module"})),p2=()=>{let e;return{beforeMount:(t,{value:l})=>{const{func:o,trigger:i="click",wait:a=500,options:c}=l;if(typeof o!="function")throw new TypeError("throttle directive value must be a function");e=O1(o,a,Object.assign({},c)),G(t,i,e)},beforeUnmount:()=>{e&&e.cancel(),e=null}}},d2=Object.freeze(Object.defineProperty({__proto__:null,default:p2},Symbol.toStringTag,{value:"Module"})),h2=e=>Object.keys(e).reduce((l,o)=>{var a;const i=(a=e[o])==null?void 0:a.default;if(typeof i=="function")return l[o]=i,l;throw new TypeError(`directiveModules: ${o} is not function`)},{}),u2=e=>{const l=h2(Object.assign({"/src/directives/modules/copy/index.ts":Q1,"/src/directives/modules/debounce/index.ts":t2,"/src/directives/modules/disabled/index.ts":i2,"/src/directives/modules/ellipsis/index.ts":c2,"/src/directives/modules/ripple/index.ts":r2,"/src/directives/modules/throttle/index.ts":d2})),o=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),i=/^([^-]+-)*[^-]+$/;R1(l,(a,c)=>{var r;const s=(r=c.match(o))==null?void 0:r[0];typeof s=="string"&&i.test(s)?e.directive(s,a()):console.error(`[setupDirectives] ${s} is not a valid directive name`)})},i1=async()=>{},o1=async e=>{m1(e),await v1(e),g1(e),K1(),u2(e)},f2=async()=>{const e=J(X);await o1(e),e.mount("#app"),await i1()},m2=async()=>{let e;window.__WUJIE_MOUNT=async()=>{e=J(X),await o1(e),e.mount("#app"),await i1()},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?m2():f2(); diff --git a/js/index-BXBystby.js.gz b/js/index-BXBystby.js.gz deleted file mode 100644 index 93c9ad4f..00000000 Binary files a/js/index-BXBystby.js.gz and /dev/null differ diff --git a/js/index-BaTrdXhk.js.gz b/js/index-BaTrdXhk.js.gz deleted file mode 100644 index aced9ce1..00000000 Binary files a/js/index-BaTrdXhk.js.gz and /dev/null differ diff --git a/js/index-BcG8w8Qo.js b/js/index-BcG8w8Qo.js new file mode 100644 index 00000000..fef6dcf9 --- /dev/null +++ b/js/index-BcG8w8Qo.js @@ -0,0 +1 @@ +import{a as l}from"./vue-hooks-plus@2.2.1_vue@3.5.12--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import{s as n}from"./instance-DjIgqIpD.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-i2yA9The.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-AGBWEt_R.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DNt1HURo.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-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-DweTa4yD.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12-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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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-BcG8w8Qo.js.gz b/js/index-BcG8w8Qo.js.gz new file mode 100644 index 00000000..ad78675a Binary files /dev/null and b/js/index-BcG8w8Qo.js.gz differ diff --git a/js/index-BiuetcEk.js b/js/index-BiuetcEk.js new file mode 100644 index 00000000..09c19070 --- /dev/null +++ b/js/index-BiuetcEk.js @@ -0,0 +1 @@ +import{I as f,z as h}from"./hooks-AGBWEt_R.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--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-i2yA9The.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-DNt1HURo.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-DnrABUGp.js";import"./utils-DweTa4yD.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12-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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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"}}),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{Bt as default}; diff --git a/js/index-BiuetcEk.js.gz b/js/index-BiuetcEk.js.gz new file mode 100644 index 00000000..496f41cf Binary files /dev/null and b/js/index-BiuetcEk.js.gz differ diff --git a/js/index-BuRzBDbW.js.gz b/js/index-BuRzBDbW.js.gz deleted file mode 100644 index 37b2425e..00000000 Binary files a/js/index-BuRzBDbW.js.gz and /dev/null differ diff --git a/js/index-C4S3Jatz.js b/js/index-C4S3Jatz.js deleted file mode 100644 index 57e62c08..00000000 --- a/js/index-C4S3Jatz.js +++ /dev/null @@ -1 +0,0 @@ -import"./hooks-DNoo5Jj5.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-C6aYKqdf.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{C as F,D as h,E as O,F as C,G as E,H as b}from"./utils-DewQlJ2W.js";import{l as D,b as u,I as p,n as B}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.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-DtgApL3K.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_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.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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-ewSD1rNh.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"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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=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,d)=>{const m=a[d],c=m(...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{bt as default}; diff --git a/js/index-C4S3Jatz.js.gz b/js/index-C4S3Jatz.js.gz deleted file mode 100644 index 4226c545..00000000 Binary files a/js/index-C4S3Jatz.js.gz and /dev/null differ diff --git a/js/index-BaTrdXhk.js b/js/index-CE3CXnQ0.js similarity index 66% rename from js/index-BaTrdXhk.js rename to js/index-CE3CXnQ0.js index 9d71c329..ca1f71c4 100644 --- a/js/index-BaTrdXhk.js +++ b/js/index-CE3CXnQ0.js @@ -1 +1 @@ -import{l as r,b as u,I as t}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{N as e,c as o}from"./naive-ui@2.40.1_vue@3.5.12-DtgApL3K.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-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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-ewSD1rNh.js";import"./lodash-es@4.17.21-CeZG2a4n.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-i2yA9The.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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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-CE3CXnQ0.js.gz b/js/index-CE3CXnQ0.js.gz new file mode 100644 index 00000000..b40a72d3 Binary files /dev/null and b/js/index-CE3CXnQ0.js.gz differ diff --git a/js/index-CJ5lja3E.js b/js/index-CJ5lja3E.js new file mode 100644 index 00000000..0975779f --- /dev/null +++ b/js/index-CJ5lja3E.js @@ -0,0 +1 @@ +import{G as r,H as A}from"./hooks-AGBWEt_R.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--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-i2yA9The.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-DNt1HURo.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-DnrABUGp.js";import"./utils-DweTa4yD.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12-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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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}; diff --git a/js/index-CJ5lja3E.js.gz b/js/index-CJ5lja3E.js.gz new file mode 100644 index 00000000..86f6180c Binary files /dev/null and b/js/index-CJ5lja3E.js.gz differ diff --git a/js/index-CQLHJkiJ.js b/js/index-CQLHJkiJ.js new file mode 100644 index 00000000..bae72cab --- /dev/null +++ b/js/index-CQLHJkiJ.js @@ -0,0 +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.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-i2yA9The.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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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.4"},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-CQLHJkiJ.js.gz b/js/index-CQLHJkiJ.js.gz new file mode 100644 index 00000000..aa4ca507 Binary files /dev/null and b/js/index-CQLHJkiJ.js.gz differ diff --git a/js/index-B4VbZD3l.js b/js/index-CQvxTDy_.js similarity index 57% rename from js/index-B4VbZD3l.js rename to js/index-CQvxTDy_.js index d729a40c..cfbecc23 100644 --- a/js/index-B4VbZD3l.js +++ b/js/index-CQvxTDy_.js @@ -1 +1 @@ -import{l as o,b as r,I as t}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{N as u}from"./naive-ui@2.40.1_vue@3.5.12-DtgApL3K.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-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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-ewSD1rNh.js";import"./lodash-es@4.17.21-CeZG2a4n.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-i2yA9The.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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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-CQvxTDy_.js.gz b/js/index-CQvxTDy_.js.gz new file mode 100644 index 00000000..f4180e6f Binary files /dev/null and b/js/index-CQvxTDy_.js.gz differ diff --git a/js/index-CT0XK3_m.js.gz b/js/index-CT0XK3_m.js.gz deleted file mode 100644 index d834a2b1..00000000 Binary files a/js/index-CT0XK3_m.js.gz and /dev/null differ diff --git a/js/index-CZrqUJff.js b/js/index-CZrqUJff.js deleted file mode 100644 index 7d1d2ad6..00000000 --- a/js/index-CZrqUJff.js +++ /dev/null @@ -1 +0,0 @@ -import{K as p}from"./hooks-DNoo5Jj5.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-DrIOQ45i.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{O as n,c as m}from"./naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js";import{l as u,b as o,I as s}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as l}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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-DewQlJ2W.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_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.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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-ewSD1rNh.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-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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 pt=u({name:"RouterDemoHome",setup(){const r=a(),i=l([{title:"姓名",key:"name"},{title:"地址",key:"address"},{title:"联系方式",key:"phone"},{title:"操作",key:"",render:t=>o(m,{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("详情")]})]})}]),e=[];for(let t=0;t<10;t++)e.push({name:"张三"+t,address:"New York No. 1 Lake Park",phone:"010-121212",key:t});return{dataSource:e,columns:i}},render(){return o(m,null,{default:()=>[o(p,{columns:this.columns,"onUpdate:columns":r=>this.columns=r,data:this.dataSource},null)]})}});export{pt as default}; diff --git a/js/index-CZrqUJff.js.gz b/js/index-CZrqUJff.js.gz deleted file mode 100644 index 869d0f36..00000000 Binary files a/js/index-CZrqUJff.js.gz and /dev/null differ diff --git a/js/index-Ckm8bBsN.js b/js/index-Ckm8bBsN.js new file mode 100644 index 00000000..5f396e1a --- /dev/null +++ b/js/index-Ckm8bBsN.js @@ -0,0 +1 @@ +import{t as m,Q as o}from"./hooks-AGBWEt_R.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--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-i2yA9The.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DNt1HURo.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-DnrABUGp.js";import"./utils-DweTa4yD.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12-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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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-Ckm8bBsN.js.gz b/js/index-Ckm8bBsN.js.gz new file mode 100644 index 00000000..10776907 Binary files /dev/null and b/js/index-Ckm8bBsN.js.gz differ diff --git a/js/index-CrzR9VpM.js.gz b/js/index-CrzR9VpM.js.gz deleted file mode 100644 index 25a3b071..00000000 Binary files a/js/index-CrzR9VpM.js.gz and /dev/null differ diff --git a/js/index-CsRBbvyN.js b/js/index-CsRBbvyN.js new file mode 100644 index 00000000..4d4f6cd4 --- /dev/null +++ b/js/index-CsRBbvyN.js @@ -0,0 +1 @@ +import{R as a1}from"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import{e as k,g as s1,M as r1,f as b,T as p1,h as S,i as x,j as O,k as d1,l as h1,R,m as u1,n as f1,D as m1,s as v1,o as g1,p as _1}from"./hooks-AGBWEt_R.js";import{d as m}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--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 M1,a1 as b1,a2 as y1,a3 as w1,a4 as k1,a5 as C1,a6 as A,a7 as Z1,a8 as z1,q as $,H as N,L as F,O as C,c as S1,a9 as x1,aa as H1,e as V1}from"./naive-ui@2.40.1_vue@3.5.12-i2yA9The.js";import{l as v,f as Z,b as c,j as A1,k as P1,n as L1,I as _,v as B1,m as I}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{f as j1,u as U}from"./@vueuse_core@11.1.0_vue@3.5.12-DNt1HURo.js";import{b as y,g as q,c as E1,w as z,m as W,s as P,f as L,i as T1}from"./utils-DweTa4yD.js";import{g as D1,u as O1,l as R1,z as $1}from"./lodash-es@4.17.21-B-5kLwAl.js";import{k as M,e as Y,x as G}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./vue3-next-qrcode@2.0.10_typescript@5.6.3-et2AKeWS.js";import{C as N1}from"./clipboard@2.0.11-DheAgBlr.js";import{c as J}from"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.12-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-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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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 t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const n of i)if(n.type==="childList")for(const a of n.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function l(i){const n={};return i.integrity&&(n.integrity=i.integrity),i.referrerPolicy&&(n.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?n.credentials="include":i.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function o(i){if(i.ep)return;i.ep=!0;const n=l(i);fetch(i.href,n)}})();const F1=v({name:"GlobalProvider",setup(e,{expose:t}){const{getPrimaryColorOverride:l,getAppTheme:o,getLocaleLanguage:i}=k(),n=Z(()=>{const s=i.value;return s1(s)}),a=()=>{const{message:s,notification:r,dialog:d,loadingBar:p}=z1(["message","dialog","notification","loadingBar"],{configProviderProps:Z(()=>({theme:o.value?A:null}))});window.$dialog=d,window.$message=s,window.$loadingBar=p,window.$notification=r};return t(),{getPrimaryColorOverride:l,localePackage:n,getAppTheme:o,discreteApi:a}},render(){const{$slots:{default:e},discreteApi:t}=this,{getPrimaryColorOverride:l,getAppTheme:o,localePackage:i}=this;return c(Z1,{themeOverrides:l,theme:o?A:null,locale:i.locale,dateLocale:i.dateLocal},{default:()=>[c(M1,null,{default:()=>[c(b1,r1,{default:()=>[c(y1,null,{default:()=>[c(w1,null,{default:()=>[c(k1,null,{default:()=>[c(C1,null,null),e==null?void 0:e(),t()]})]})]})]})]})]})}});var I1={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.4"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const U1=v({name:"AppStyleProvider",setup(e,{expose:t}){const{getAppTheme:l}=k(),{height:o,width:i}=j1(),n=()=>{const{appPrimaryColor:{primaryColor:r,primaryFadeColor:d}}=I1,p=document.documentElement,h=q(b.appPiniaSettingStore,"localStorage");if(h){const u=D1(h,"primaryColorOverride.common.primaryColor",r),g=E1(u,.38);p.style.setProperty("--ray-theme-primary-color",u),p.style.setProperty("--ray-theme-primary-fade-color",g||d)}},a=()=>{const r=document.getElementById("pre-loading-animation");r&&y(r,{display:"none"})},s=r=>{const d=document.documentElement,{darkClassName:p,lightClassName:h}=p1;r?z(d,h):z(d,p),W(d,r?p:h)};n(),a(),A1(()=>{s(l.value),y(document.documentElement,{"--html-height":`${o.value}px`,"--html-width":`${i.value}px`})}),t()},render(){return c("div",{class:"app-style-provider"},null)}}),K={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},w=()=>({lockPassword:null}),q1=v({name:"LockScreen",setup(){const e=M(null),t=M(null),{setLockAppScreen:l}=x(),{updateSettingState:o}=S(),i=Y({lockCondition:w()}),n=()=>{var a;(a=e.value)==null||a.validate(s=>{s||(l(!0),o("lockScreenSwitch",!0),i.lockCondition=w())})};return P1(()=>{L1(()=>{var a;(a=t.value)==null||a.focus()})}),{...G(i),lockScreen:n,formInstRef:e,inputInstRef:t}},render(){return c("div",{class:"app-lock-screen__input"},[c($,{ref:"formInstRef",model:this.lockCondition,rules:K,labelPlacement:"left"},{default:()=>[c(N,{path:"lockPassword"},{default:()=>[c(F,{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)]}),c(C,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[_("锁屏")]})]})])}}),W1=v({name:"UnlockScreen",setup(){const e=M(null),t=M(null),{logout:l}=O(),{updateSettingState:o}=S(),{setLockAppScreen:i}=x(),{isTabletOrSmaller:n}=d1(),a="HH:mm",s="A",r="YY年MM月DD日",d="ddd",p=Y({lockCondition:w(),HH_MM:m().format(a),AM_PM:m().locale("en").format(s),YY_MM_DD:m().format(r),DDD:m().format(d)}),h=setInterval(()=>{p.HH_MM=m().format(a),p.AM_PM=m().format(s)},6e3),u=setInterval(()=>{p.YY_MM_DD=m().format(r),p.DDD=m().format(d)},864e5),g=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{l(),setTimeout(()=>{o("lockScreenSwitch",!1)})}})},c1=()=>{var V;(V=e.value)==null||V.validate(n1=>{n1||(i(!1),o("lockScreenSwitch",!1),p.lockCondition=w())})};return B1(()=>{clearInterval(h),clearInterval(u)}),{...G(p),backToSigning:g,unlockScreen:c1,formRef:e,inputInstRef:t,isTabletOrSmaller:n}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:t,AM_PM:l,YY_MM_DD:o,DDD:i}=this,n=t.split(":"),{unlockScreen:a,backToSigning:s}=this;return c("div",{class:"app-lock-screen__unlock"},[c("div",{class:"app-lock-screen__unlock__content"},[c("div",{class:"app-lock-screen__unlock__content-wrapper"},[c("div",{class:["app-lock-screen__unlock__content-bg__wrapper","app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[c("div",{class:"left"},[n[0]]),c("div",{class:"right"},[n[1]])])]),c("div",{class:"app-lock-screen__unlock__content-avatar"},[c(h1,{avatarSize:52,style:"pointer-events: none;",vertical:!0},null)]),c("div",{class:"app-lock-screen__unlock__content-input"},[c($,{ref:"formRef",model:this.lockCondition,rules:K},{default:()=>[c(N,{path:"lockPassword"},{default:()=>[c(F,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":r=>this.lockCondition.lockPassword=r,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,maxlength:12,onKeydown:r=>{r.code==="Enter"&&a()}},null)]}),c(S1,{justify:"space-between"},{default:()=>[c(C,{type:"primary",text:!0,onClick:s.bind(this)},{default:()=>[_("返回登陆")]}),c(C,{type:"primary",text:!0,onClick:a.bind(this)},{default:()=>[_("进入系统")]})]})]})]),c("div",{class:"app-lock-screen__unlock__content-date"},[c("div",{class:"current-date"},[t,_(" "),c("span",null,[l])]),c("div",{class:"current-year"},[o,_(" "),c("span",null,[i])])])])])}}),Y1=v({name:"AppLockScreen",setup(){const{getLockAppScreen:e}=x(),{updateSettingState:t}=S(),{getLockScreenSwitch:l}=k();return{lockScreenSwitchRef:Z({get:()=>l.value,set:i=>{t("lockScreenSwitch",i)}}),getLockAppScreen:e}},render(){const{getLockAppScreen:e}=this;return c(R,{show:this.lockScreenSwitchRef,"onUpdate:show":t=>this.lockScreenSwitchRef=t,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:e()?void 0:"dialog",title:"锁定屏幕"},{default:()=>[c("div",{class:"app-lock-screen__content"},[e()?c(W1,null,null):c(q1,null,null)])]})}}),G1=v({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:e,getWatermarkConfig:t}=k();return{getWatermarkSwitch:e,getWatermarkConfig:t}},render(){const{getWatermarkConfig:e,getWatermarkSwitch:t}=this;return t?c(x1,I(e,{fullscreen:!0}),null):null}}),J1=v({name:"GlobalSpin",props:{...H1},setup(){const e={opacitySpinning:"0.3"};return{spinValue:u1("globalSpinning"),overrides:e}},render(){return c(V1,I(this.$props,{show:this.spinValue,themeOverrides:this.overrides}),{...this.$slots})}});var K1={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.4"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const X1=v({name:"AppVersionProvider",setup(){const{pkg:{version:e}}=K1,t=q(b.appVersionProvider,"localStorage"),l=M(!1),{logout:o}=O();return t!==null?e!==t&&(l.value=!0,P(b.appVersionProvider,e,"localStorage")):P(b.appVersionProvider,e,"localStorage"),{modalShow:l,logout:o}},render(){const{logout:e}=this;return c("div",{class:"app-style-provider"},[c(R,{show:this.modalShow,"onUpdate:show":t=>this.modalShow=t,closeOnEsc:!1,maskClosable:!1,preset:"dialog",closable:!1,title:"发现新版本",content:"当前版本已更新,点击确认加载新版本~",zIndex:999999999,dad:!0,positiveText:"确认",negativeText:"取消",onPositiveClick:e,onNegativeClick:()=>{this.modalShow=!1}},null)])}}),X=v({name:"App",render(){return c(F1,null,{default:()=>[c(X1,null,null),c(Y1,null,null),c(U1,null,null),c(G1,null,null),c(J1,null,{default:()=>c(a1,null,null),description:()=>f1})]})}});if(typeof window<"u"){let e=function(){var t=document.body,l=document.getElementById("__svg__icons__dom__");l||(l=document.createElementNS("http://www.w3.org/2000/svg","svg"),l.style.position="absolute",l.style.width="0",l.style.height="0",l.id="__svg__icons__dom__",l.setAttribute("xmlns","http://www.w3.org/2000/svg"),l.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),l.innerHTML='',t.insertBefore(l,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const Q1=()=>{m.locale(m1)},B=(e,t)=>{const l=new N1(e,{text:()=>t});e.$$clipboard=l,e.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),e.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},e2=()=>({mounted:(e,{value:t})=>{B(e,t)},updated:(e,{value:t,oldValue:l})=>{var o;t!==l&&((o=e.$$clipboard)==null||o.destroy(),B(e,t))},beforeUnmount:e=>{var t;e.$$clipboard&&((t=e.$$clipboard)==null||t.destroy(),e.$$clipboard=null)}}),t2=Object.freeze(Object.defineProperty({__proto__:null,default:e2},Symbol.toStringTag,{value:"Module"})),l2=()=>{let e,t;return{beforeMount:(l,{value:o})=>{const{func:i,trigger:n="click",wait:a=500,options:s}=o;if(typeof i!="function")throw new TypeError("debounce directive value must be a function");e=O1(i,a,Object.assign({},s)),t=U(l,n,e)},beforeUnmount:(l,{value:o})=>{e&&(e.cancel(),t==null||t()),e=null}}},i2=Object.freeze(Object.defineProperty({__proto__:null,default:l2},Symbol.toStringTag,{value:"Module"})),j=(e,t)=>{if(e){const l="ray-template__directive--disabled";t?(e.setAttribute("disabled","disabled"),W(e,l)):(e.removeAttribute("disabled"),z(e,l)),e==null||e.setAttribute("disabled",t?"disabled":"")}},o2=()=>({mounted:(e,{value:t})=>{j(e,t)},updated:(e,{value:t,oldValue:l})=>{t!==l&&j(e,t)}}),c2=Object.freeze(Object.defineProperty({__proto__:null,default:o2},Symbol.toStringTag,{value:"Module"})),E=(e,t)=>{const{line:l=1,type:o="block",width:i,popoverText:n}=t;if(i==null){console.error(`[v-ellipsis]: Expected width is string or number, but got typeof ${i}!`);return}n&&e.textContent&&e.setAttribute("title",e.textContent),o==="line"?y(e,{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l,overflow:"hidden",width:L(i)}):y(e,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:L(i)})},n2=()=>({mounted:(e,{value:t})=>{E(e,t)},updated:(e,{value:t})=>{E(e,t)}}),a2=Object.freeze(Object.defineProperty({__proto__:null,default:n2},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"},s2="v-ripple__container";function T(e,t){e.style.transform=t}function Q(e){const t={},l=e.currentTarget;!(l!=null&&l.__d_ripple__)||l.__d_ripple__.touched||(t.center=l.__d_ripple__.centered,l.__d_ripple__.class&&(t.class=l.__d_ripple__.class),H.show(e,l,t))}function e1(e){const t=e.currentTarget;t!=null&&t.__d_ripple__&&(setTimeout(()=>{t.__d_ripple__&&(t.__d_ripple__.touched=!1)}),H.hide(t))}const r2=(e,t,l={})=>{var u;const o=t.getBoundingClientRect(),i=e.clientX-o.left,n=e.clientY-o.top;let a=0,s=.3;(u=t.__d_ripple__)!=null&&u.circle?(s=.15,a=t.clientWidth/2,a=l.center?a:a+Math.sqrt((i-a)**2+(n-a)**2)/4):a=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const r=`${(t.clientWidth-a*2)/2}px`,d=`${(t.clientHeight-a*2)/2}px`,p=l.center?r:`${i-a}px`,h=l.center?d:`${n-a}px`;return{radius:a,scale:s,x:p,y:h,centerX:r,centerY:d}},H={show(e,t,l={}){var g;if(!((g=t==null?void 0:t.__d_ripple__)!=null&&g.enabled))return;const o=document.createElement("span"),i=document.createElement("span");o.appendChild(i),o.className=s2,l.class&&(o.className+=` ${l.class}`);const{radius:n,scale:a,x:s,y:r,centerX:d,centerY:p}=r2(e,t,l),h=`${n*2}px`;i.className=f.vRippleAnimation,i.style.width=h,i.style.height=h,t.appendChild(o);const u=window.getComputedStyle(t);u&&u.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add(f.vRippleAnimationEnter),i.classList.add(f.vRippleAnimationVisible),T(i,`translate(${s}, ${r}) scale3d(${a},${a},${a})`),i.dataset.activated=String(performance.now()),setTimeout(()=>{i.classList.remove(f.vRippleAnimationEnter),i.classList.add(f.vRippleAnimationIn),T(i,`translate(${d}, ${p}) scale3d(1,1,1)`)},0)},hide(e){var n;if(!((n=e==null?void 0:e.__d_ripple__)!=null&&n.enabled))return;const t=e.getElementsByClassName(f.vRippleAnimation);if(t.length===0)return;const l=t[t.length-1];if(l.dataset.isHiding)return;l.dataset.isHiding="true";const o=performance.now()-Number(l.dataset.activated),i=Math.max(250-o,0);setTimeout(()=>{l.classList.remove(f.vRippleAnimationIn),l.classList.add(f.vRippleAnimationOut),setTimeout(()=>{var s;e.getElementsByClassName(f.vRippleAnimation).length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((s=l.parentNode)==null?void 0:s.parentNode)===e&&e.removeChild(l.parentNode)},300)},i)}};function t1(e){return typeof e>"u"||!!e}function l1(e){e.removeEventListener("pointerdown",Q),e.removeEventListener("pointerup",e1)}function D(e,t,l){const{value:o,modifiers:i}=t,n=t1(o);n||H.hide(e),e.__d_ripple__=e.__d_ripple__??{},e.__d_ripple__.enabled=n,e.__d_ripple__.centered=i.center,e.__d_ripple__.circle=i.circle,T1(o,"Object")&&o.class&&(e.__d_ripple__.class=o.class),n&&!l?(e.addEventListener("pointerdown",Q),e.addEventListener("pointerup",e1)):!n&&l&&l1(e)}const p2=()=>({mounted:(e,t)=>{D(e,t,!1)},beforeUnmount:e=>{delete e.__d_ripple__,l1(e)},updated:(e,t)=>{if(t.value===t.oldValue)return;const l=t1(t.oldValue);D(e,t,l)}}),d2=Object.freeze(Object.defineProperty({__proto__:null,default:p2},Symbol.toStringTag,{value:"Module"})),h2=()=>{let e;return{beforeMount:(t,{value:l})=>{const{func:o,trigger:i="click",wait:n=500,options:a}=l;if(typeof o!="function")throw new TypeError("throttle directive value must be a function");e=R1(o,n,Object.assign({},a)),U(t,i,e)},beforeUnmount:()=>{e&&e.cancel(),e=null}}},u2=Object.freeze(Object.defineProperty({__proto__:null,default:h2},Symbol.toStringTag,{value:"Module"})),f2=e=>Object.keys(e).reduce((l,o)=>{var n;const i=(n=e[o])==null?void 0:n.default;if(typeof i=="function")return l[o]=i,l;throw new TypeError(`directiveModules: ${o} is not function`)},{}),m2=e=>{const l=f2(Object.assign({"/src/directives/modules/copy/index.ts":t2,"/src/directives/modules/debounce/index.ts":i2,"/src/directives/modules/disabled/index.ts":c2,"/src/directives/modules/ellipsis/index.ts":a2,"/src/directives/modules/ripple/index.ts":d2,"/src/directives/modules/throttle/index.ts":u2})),o=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),i=/^([^-]+-)*[^-]+$/;$1(l,(n,a)=>{var r;const s=(r=a.match(o))==null?void 0:r[0];typeof s=="string"&&i.test(s)?e.directive(s,n()):console.error(`[setupDirectives] ${s} is not a valid directive name`)})},i1=async()=>{},o1=async e=>{v1(e),await g1(e),_1(e),Q1(),m2(e)},v2=async()=>{const e=J(X);await o1(e),e.mount("#app"),await i1()},g2=async()=>{let e;window.__WUJIE_MOUNT=async()=>{e=J(X),await o1(e),e.mount("#app"),await i1()},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?g2():v2(); diff --git a/js/index-CsRBbvyN.js.gz b/js/index-CsRBbvyN.js.gz new file mode 100644 index 00000000..25f4ba80 Binary files /dev/null and b/js/index-CsRBbvyN.js.gz differ diff --git a/js/index-CtH5AG_t.js b/js/index-CtH5AG_t.js deleted file mode 100644 index b9fbf1d2..00000000 --- a/js/index-CtH5AG_t.js +++ /dev/null @@ -1 +0,0 @@ -import{N as m,R as i}from"./hooks-DNoo5Jj5.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-C6aYKqdf.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 o,c as a,O as r}from"./naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js";import{l as p,b as u,I as t}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{e as s,x as E}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-DewQlJ2W.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_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.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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-ewSD1rNh.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"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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 au=p({name:"ModalDemo",setup(){const l=s({modal1:!1,modal2:!1,modal3:!1}),{create:F}=m(),e=()=>{F({title:"卡片模态框",dad:!0,preset:"card",content:"我可以被拖拽的全屏card模态框",fullscreen:!0})},d=()=>{F({title:"模态框",content:"内容",preset:"dialog",dad:!0})};return{...E(l),createCardModal:e,createDialogModal:d}},render(){const{createCardModal:l,createDialogModal:F}=this;return u(a,{vertical:!0},{default:()=>[u(o,{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(i,{show:this.modal1,"onUpdate:show":e=>this.modal1=e,title:"全屏模态框",fullscreen:!0,preset:"card"},{default:()=>[t("我是全屏模态框,并且会自动启用滚动条。")]}),u(i,{show:this.modal2,"onUpdate:show":e=>this.modal2=e,preset:"card",title:"可拖拽卡片模态框",dad:!0},{default:()=>[u("p",null,[t("我可以被拖拽")])]}),u(i,{show:this.modal3,"onUpdate:show":e=>this.modal3=e,preset:"dialog",title:"可拖拽卡片模态框",dad:!0},{default:()=>[u("p",null,[t("我可以被拖拽")])]}),u(o,{title:"可拖拽模态框"},{default:()=>[u(r,{onClick:()=>this.modal2=!0},{default:()=>[t("卡片模态框")]}),u(r,{onClick:()=>this.modal3=!0},{default:()=>[t("对话框模态框")]})]}),u(o,{title:"全屏模态框"},{default:()=>[u(a,{vertical:!0},{default:()=>[u("h4",null,[t("全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。")]),u(r,{onClick:()=>this.modal1=!0},{default:()=>[t("打开")]})]})]}),u(o,{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(o,{title:"重写 useModal"},{default:()=>[u(r,{onClick:l.bind(this)},{default:()=>[t("创建卡片模态框")]}),u(r,{onClick:F.bind(this)},{default:()=>[t("创建对话框模态框")]})]})]})}});export{au as default}; diff --git a/js/index-CtH5AG_t.js.gz b/js/index-CtH5AG_t.js.gz deleted file mode 100644 index 0274b315..00000000 Binary files a/js/index-CtH5AG_t.js.gz and /dev/null differ diff --git a/js/index-CT0XK3_m.js b/js/index-CycY2SEi.js similarity index 90% rename from js/index-CT0XK3_m.js rename to js/index-CycY2SEi.js index 83ba87fa..0eae3682 100644 --- a/js/index-CT0XK3_m.js +++ b/js/index-CycY2SEi.js @@ -1 +1 @@ -import{l as n,b as e,m as s,p as i}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{x as r,X as c,c as p}from"./naive-ui@2.40.1_vue@3.5.12-DtgApL3K.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-i2yA9The.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-CycY2SEi.js.gz b/js/index-CycY2SEi.js.gz new file mode 100644 index 00000000..003c9193 Binary files /dev/null and b/js/index-CycY2SEi.js.gz differ diff --git a/js/index-CzkwrEb-.js b/js/index-CzkwrEb-.js new file mode 100644 index 00000000..0d05b5b3 --- /dev/null +++ b/js/index-CzkwrEb-.js @@ -0,0 +1 @@ +import{w as u,x as s,f as a}from"./hooks-AGBWEt_R.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--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-DweTa4yD.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-i2yA9The.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-DNt1HURo.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-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_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12-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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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-CzkwrEb-.js.gz b/js/index-CzkwrEb-.js.gz new file mode 100644 index 00000000..1f092032 Binary files /dev/null and b/js/index-CzkwrEb-.js.gz differ diff --git a/js/index-D03MkEFA.js.gz b/js/index-D03MkEFA.js.gz deleted file mode 100644 index 82f87732..00000000 Binary files a/js/index-D03MkEFA.js.gz and /dev/null differ diff --git a/js/index-D0Y6CCZo.js b/js/index-D0Y6CCZo.js new file mode 100644 index 00000000..a8b2941e --- /dev/null +++ b/js/index-D0Y6CCZo.js @@ -0,0 +1 @@ +import{t as n}from"./hooks-AGBWEt_R.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--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-CycY2SEi.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-i2yA9The.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-DNt1HURo.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-DnrABUGp.js";import"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./utils-DweTa4yD.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12-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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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-D0Y6CCZo.js.gz b/js/index-D0Y6CCZo.js.gz new file mode 100644 index 00000000..7b39440b Binary files /dev/null and b/js/index-D0Y6CCZo.js.gz differ diff --git a/js/index-D1JklQAF.js b/js/index-D1JklQAF.js deleted file mode 100644 index 6e8adde7..00000000 --- a/js/index-D1JklQAF.js +++ /dev/null @@ -1 +0,0 @@ -import{B as d}from"./hooks-DNoo5Jj5.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-C6aYKqdf.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{l as c,b as t,I as n}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.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-DtgApL3K.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-DewQlJ2W.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_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.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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-ewSD1rNh.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"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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 lt=c({name:"ContextMenuDemo",setup(){const o=u(),i=u(!1),r=u([{label:"杰·盖茨比",key:"jay gatsby"},{label:"黛西·布坎南",key:"daisy buchanan"},{type:"divider",key:"d1"},{label:"尼克·卡拉威",key:"nick caraway"}]),{x:m,y:p,show:a,updateShow:e}=d(o);return{demoOneRef:o,demoOneShow:i,x:m,y:p,show:a,options:r,clickOutside:l=>{l.preventDefault(),e(!1)},updateShow:e}},render(){const{x:o,y:i,show:r}=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:r,x:o,y:i,options:this.options,trigger:"manual",placement:"bottom-start",onSelect:(a,e)=>{window.$message.info(`选中了 ${e.label}`),p(!1)},onClickoutside:m.bind(this)},null)]})}});export{lt as default}; diff --git a/js/index-D1JklQAF.js.gz b/js/index-D1JklQAF.js.gz deleted file mode 100644 index 18e37dd9..00000000 Binary files a/js/index-D1JklQAF.js.gz and /dev/null differ diff --git a/js/index-D1ThNEs9.js b/js/index-D1ThNEs9.js deleted file mode 100644 index e1abeca3..00000000 --- a/js/index-D1ThNEs9.js +++ /dev/null @@ -1 +0,0 @@ -import{w as u,x as s,f as a}from"./hooks-DNoo5Jj5.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-C6aYKqdf.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{g as n}from"./utils-DewQlJ2W.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-DtgApL3K.js";import{l as p,b as t,m as f,I as e}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.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-_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.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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-ewSD1rNh.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.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-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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=p({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:()=>[e("返回首页")]}),t(i,{type:"primary",onClick:r.bind(this)},{default:()=>[e("返回上一页面")]})]})})])}}),ct=p({name:"ErrorPage404",setup(){return{}},render(){return t(g,{status:"404"},null)}});export{ct as default}; diff --git a/js/index-D1ThNEs9.js.gz b/js/index-D1ThNEs9.js.gz deleted file mode 100644 index 7afe0b06..00000000 Binary files a/js/index-D1ThNEs9.js.gz and /dev/null differ diff --git a/js/index-D1ZCvgoG.js b/js/index-D1ZCvgoG.js deleted file mode 100644 index d2ed2365..00000000 --- a/js/index-D1ZCvgoG.js +++ /dev/null @@ -1 +0,0 @@ -import{I as C,J as f,K as k}from"./hooks-DNoo5Jj5.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{a as A}from"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.js";import{s as B}from"./instance-CZSdczlG.js";import"./lodash@4.17.21-Cw59kuJw.js";import{N as l,q as y,aj as h,L as D,O as i,c as p}from"./naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js";import{l as b,b as t,I as o,F as w}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{e as N,x as P}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.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-DewQlJ2W.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_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.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./interactjs@1.10.26-DZL_TZzP.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-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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}),Pt=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(p,{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=N({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,...P(u),getCallback:F,paginationRef:n}},render(){return t(p,{vertical:!0},{default:()=>{var e;return[t(l,{title:"Mock 数据"},{default:()=>[t("h2",null,[o("mock 数据使用。但是,并没有启用生产环境的部署,所以生产环境结果为空。")])]}),t(l,{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{Pt as default}; diff --git a/js/index-D1ZCvgoG.js.gz b/js/index-D1ZCvgoG.js.gz deleted file mode 100644 index a5f2d659..00000000 Binary files a/js/index-D1ZCvgoG.js.gz and /dev/null differ diff --git a/js/index-D1ed38ZE.js b/js/index-D1ed38ZE.js deleted file mode 100644 index 7fa8edfc..00000000 --- a/js/index-D1ed38ZE.js +++ /dev/null @@ -1 +0,0 @@ -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-Ds-HrVrM.js";import{k as y}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{N as l,ac as a,ad as p,v as N}from"./naive-ui@2.40.1_vue@3.5.12-DtgApL3K.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-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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-ewSD1rNh.js";import"./lodash-es@4.17.21-CeZG2a4n.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:{"@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/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@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",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","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-compression":"^0.5.1","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.0.13"},name:"ray-template",version:"5.0.3"},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:s,devDependencies:n,name:e,version:g}=i,f=[{title:"依赖名称",key:"name"},{title:"依赖版本",key:"relyVersion"},{title:"依赖地址",key:"relyAddress"}],d=y([]),u=y([]),b=[{name:"项目名称",label:e},{name:"版本信息",label:g},{name:"项目地址",label:"GitHub",url:"https://github.com/XiaoDaiGua-Ray/ray-template"}],h=()=>{const o=c=>Object.keys(c).reduce((m,v)=>(m.push({name:v,relyVersion:c[v],relyAddress:""}),m),[]);d.value=o(s),u.value=o(n)},k=o=>{o.url&&window.open(o.url)};return x(()=>{h()}),{columns:f,dependenciesOptions:d,devDependenciesOptions:u,templateOptions:b,handleTagClick:k}},render(){let i,s,n;return t("div",{class:"rely-about"},[t(l,{title:"关于项目"},{default:()=>[C("ray template 是一个基于: tsx pinia vue3.x vite sass 的中后台解决方案. 项目干净与轻巧, 已经集成了很多项目中可能需要的搬砖工具可以让你快速起一个相关项目, 并且不需要剔除大量无用页面与组件.")]}),t(l,{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(l,{title:"生产依赖"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(s=this.dependenciesOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?s:{default:()=>[s]})]}),t(l,{title:"开发依赖"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(n=this.devDependenciesOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?n:{default:()=>[n]})]})])}});export{Q as default}; diff --git a/js/index-D1ed38ZE.js.gz b/js/index-D1ed38ZE.js.gz deleted file mode 100644 index 74f41158..00000000 Binary files a/js/index-D1ed38ZE.js.gz and /dev/null differ diff --git a/js/index-D2Sm3Md2.js b/js/index-D2Sm3Md2.js deleted file mode 100644 index de41b7b6..00000000 --- a/js/index-D2Sm3Md2.js +++ /dev/null @@ -1 +0,0 @@ -import{t as d,O as o}from"./hooks-DNoo5Jj5.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-C6aYKqdf.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{l as h,b as u,I as t}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as m}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{ag 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-DtgApL3K.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-DewQlJ2W.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_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.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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-ewSD1rNh.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"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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 fu=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(d,{name:"setting"},null)},{label:"刷新",key:"reload",icon:u(d,{name:"reload"},null)},{label:"搜索",key:"search",icon:u(d,{name:"search"},null),popover:"我是搜索"}],E=m("this is three"),e=m("medium"),C=m("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{fu as default}; diff --git a/js/index-D2Sm3Md2.js.gz b/js/index-D2Sm3Md2.js.gz deleted file mode 100644 index 1b5a24a8..00000000 Binary files a/js/index-D2Sm3Md2.js.gz and /dev/null differ diff --git a/js/index-DM9M6Dwk.js b/js/index-DM9M6Dwk.js new file mode 100644 index 00000000..cac7b447 --- /dev/null +++ b/js/index-DM9M6Dwk.js @@ -0,0 +1 @@ +import{K as C,N as f,O as k}from"./hooks-AGBWEt_R.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--wFVw10U.js";import{s as B}from"./instance-DjIgqIpD.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-i2yA9The.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 N,x 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-DNt1HURo.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-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-DweTa4yD.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12-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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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=N({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,...P(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-DM9M6Dwk.js.gz b/js/index-DM9M6Dwk.js.gz new file mode 100644 index 00000000..83b212eb Binary files /dev/null and b/js/index-DM9M6Dwk.js.gz differ diff --git a/js/index-Ov7I6uVL.js b/js/index-DMvEZ4XM.js similarity index 91% rename from js/index-Ov7I6uVL.js rename to js/index-DMvEZ4XM.js index 8c77339a..8f3953f6 100644 --- a/js/index-Ov7I6uVL.js +++ b/js/index-DMvEZ4XM.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.12-Ds-HrVrM.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.12-DtgApL3K.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-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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-ewSD1rNh.js";import"./lodash-es@4.17.21-CeZG2a4n.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-i2yA9The.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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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-DMvEZ4XM.js.gz b/js/index-DMvEZ4XM.js.gz new file mode 100644 index 00000000..040f9acc Binary files /dev/null and b/js/index-DMvEZ4XM.js.gz differ diff --git a/js/index-DP1d3Otc.js b/js/index-DP1d3Otc.js new file mode 100644 index 00000000..229b6cc6 --- /dev/null +++ b/js/index-DP1d3Otc.js @@ -0,0 +1 @@ +import{t as c,_ as o}from"./hooks-AGBWEt_R.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--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-i2yA9The.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DNt1HURo.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-DnrABUGp.js";import"./utils-DweTa4yD.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12-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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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-DP1d3Otc.js.gz b/js/index-DP1d3Otc.js.gz new file mode 100644 index 00000000..05d44753 Binary files /dev/null and b/js/index-DP1d3Otc.js.gz differ diff --git a/js/index-DSsu4ch3.js b/js/index-DQg7_Qc2.js similarity index 62% rename from js/index-DSsu4ch3.js rename to js/index-DQg7_Qc2.js index 4f7a8aa6..b6540ec0 100644 --- a/js/index-DSsu4ch3.js +++ b/js/index-DQg7_Qc2.js @@ -1 +1 @@ -import{l as o,b as r,I as e}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.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-DtgApL3K.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-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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-ewSD1rNh.js";import"./lodash-es@4.17.21-CeZG2a4n.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-i2yA9The.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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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-DQg7_Qc2.js.gz b/js/index-DQg7_Qc2.js.gz new file mode 100644 index 00000000..6f8b106a Binary files /dev/null and b/js/index-DQg7_Qc2.js.gz differ diff --git a/js/index-DSsu4ch3.js.gz b/js/index-DSsu4ch3.js.gz deleted file mode 100644 index a9fc397a..00000000 Binary files a/js/index-DSsu4ch3.js.gz and /dev/null differ diff --git a/js/index-DUgu3oDp.js b/js/index-DUgu3oDp.js new file mode 100644 index 00000000..8b4d6186 --- /dev/null +++ b/js/index-DUgu3oDp.js @@ -0,0 +1 @@ +import"./hooks-AGBWEt_R.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--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-DweTa4yD.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-i2yA9The.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-DNt1HURo.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-DnrABUGp.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12-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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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-DUgu3oDp.js.gz b/js/index-DUgu3oDp.js.gz new file mode 100644 index 00000000..c71bdbd3 Binary files /dev/null and b/js/index-DUgu3oDp.js.gz differ diff --git a/js/index-DbfJADJ4.js b/js/index-DbfJADJ4.js deleted file mode 100644 index 45155078..00000000 --- a/js/index-DbfJADJ4.js +++ /dev/null @@ -1 +0,0 @@ -import{t as c,_ as o}from"./hooks-DNoo5Jj5.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-C6aYKqdf.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{l as p,b as t,N as m,V as n,p as v}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.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-DtgApL3K.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-DewQlJ2W.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_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.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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-ewSD1rNh.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"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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 vo=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{vo as default}; diff --git a/js/index-DbfJADJ4.js.gz b/js/index-DbfJADJ4.js.gz deleted file mode 100644 index 67a60e44..00000000 Binary files a/js/index-DbfJADJ4.js.gz and /dev/null differ diff --git a/js/index-DcQdji55.js b/js/index-DcQdji55.js new file mode 100644 index 00000000..8a062c52 --- /dev/null +++ b/js/index-DcQdji55.js @@ -0,0 +1 @@ +import{a0 as U,V as G,N as L,O as z,t as j,a1 as P}from"./hooks-AGBWEt_R.js";import{k as _}from"./utils-DweTa4yD.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 X,O as u,v as I,b as r,G as Y,L as F,ak as q,I as H,n as Q}from"./naive-ui@2.40.1_vue@3.5.12-i2yA9The.js";import{l as W,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-DNt1HURo.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-DnrABUGp.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12--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_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12-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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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: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(P,{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:"我是一条很长很长的备注"})},V=t=>{window.$message.info(`${t}`)},M=()=>{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:V,register:i,getKeys:R,getRows:l,clearKey:B,clearAll:A,checkedRowKeysBind:v,checkedRowKeys:T,clearSecondIndexRow:M,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(X,{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(Y,null,null)]}),e(r,null,{default:()=>[e(F,null,null)]}),e(r,null,{default:()=>[e(q,{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(H,{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(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}; diff --git a/js/index-DcQdji55.js.gz b/js/index-DcQdji55.js.gz new file mode 100644 index 00000000..0fbc1286 Binary files /dev/null and b/js/index-DcQdji55.js.gz differ diff --git a/js/index-DgT5nHqP.js b/js/index-DgT5nHqP.js new file mode 100644 index 00000000..c6b1d807 --- /dev/null +++ b/js/index-DgT5nHqP.js @@ -0,0 +1 @@ +import"./hooks-AGBWEt_R.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--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-DweTa4yD.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-i2yA9The.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DNt1HURo.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-DnrABUGp.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12-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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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-DgT5nHqP.js.gz b/js/index-DgT5nHqP.js.gz new file mode 100644 index 00000000..e7f7329b Binary files /dev/null and b/js/index-DgT5nHqP.js.gz differ diff --git a/js/index-Dor1-zOS.js b/js/index-Dor1-zOS.js deleted file mode 100644 index f1d89161..00000000 --- a/js/index-Dor1-zOS.js +++ /dev/null @@ -1 +0,0 @@ -import{F as f,G as h}from"./hooks-DNoo5Jj5.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-C6aYKqdf.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{a as F,aj as r,L as p,J as v,ak as b,al as y,am as s,c as N,O as l}from"./naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js";import{l as k,b as t,I as i}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as d}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-DewQlJ2W.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_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.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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-ewSD1rNh.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"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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=k({name:"RFormDemo",setup(){const[u,{getFormInstance:m,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:m,restoreValidation:o,formModel:n,validate:a}=this;return t(h,{onRegister:m,rules:u,model:this.condition},{default:()=>[t(F,{cols:24,xGap:24},{default:()=>[t(r,{label:"姓名",path:"name",span:12},{default:()=>[t(p,{value:this.condition.name,"onUpdate:value":e=>this.condition.name=e},null)]}),t(r,{label:"年龄",path:"age",span:12},{default:()=>[t(v,{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(p,{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(l,{type:"info",onClick:()=>{this.condition=n(),o()}},{default:()=>[i("重置表单为初始状态")]}),t(l,{type:"warning",onClick:o.bind(this)},{default:()=>[i("移除校验状态")]}),t(l,{type:"primary",onClick:()=>a()},{default:()=>[i("校验")]})]})]})]})]})}});export{Ft as default}; diff --git a/js/index-Dor1-zOS.js.gz b/js/index-Dor1-zOS.js.gz deleted file mode 100644 index 702bf97d..00000000 Binary files a/js/index-Dor1-zOS.js.gz and /dev/null differ diff --git a/js/index-Drj3PGgk.js b/js/index-Drj3PGgk.js deleted file mode 100644 index d486451c..00000000 --- a/js/index-Drj3PGgk.js +++ /dev/null @@ -1 +0,0 @@ -import{t as n}from"./hooks-DNoo5Jj5.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-C6aYKqdf.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{A as d}from"./index-CT0XK3_m.js";import{N as i,ac as f,ad as c,ae as s,af as E,c as o,v as p}from"./naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js";import{l as b,b as u,I as t,p as F}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./utils-DewQlJ2W.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_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.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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-ewSD1rNh.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.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-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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(l){return typeof l=="function"||Object.prototype.toString.call(l)==="[object Object]"&&!F(l)}const du=b({name:"RDashboard",setup(){return{coverLetterOptions:[{label:"掌握搬砖框架",des:()=>u(o,null,{default:()=>[u(p,{type:"success"},{default:()=>[t("Vue3.x")]}),u(p,{type:"info"},{default:()=>[t("React")]})]})},{label:"从事搬砖时长",des:()=>u(o,null,{default:()=>[u(p,{type:"success"},{default:()=>[t("练习时长两年半的小白前端搬砖师")]})]})},{label:"个人",des:()=>u(o,{align:"center"},{default:()=>[u(n,{name:"ray",size:"22"},null),t("努力搬砖、努力摸鱼, 建设美丽家园")]}),span:2},{label:"补充说明",des:()=>u(o,{align:"center"},{default:()=>[t("如果有希望补充的功能可以在"),u("a",{class:"dashboard-link",href:"https://github.com/XiaoDaiGua-Ray/ray-template"},[t("GitHub")]),t("提一个 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 l,a;return u(o,{vertical:!0},{default:()=>[u(i,null,{header:()=>u(n,{name:"ray",size:"64"},null),default:()=>"当你看见这个页面后, 就说明项目已经启动成功了~"}),u(i,{title:"个人介绍"},{default:()=>[u(f,{bordered:!0,labelPlacement:"left",column:2},m(l=this.coverLetterOptions.map(e=>{let r;return u(c,{key:e.label,label:e.label,span:e==null?void 0:e.span},m(r=e.des())?r:{default:()=>[r]})}))?l:{default:()=>[l]})]}),u(i,{title:"项目介绍"},{default:()=>[u(s,null,{default:()=>[t("技术栈")]}),u(E,null,{default:()=>[u(o,null,m(a=this.technologyTagOptions.map(e=>u(p,{key:e.value,type:"info"},{default:()=>[e.label]})))?a:{default:()=>[a]})]}),u(s,null,{default:()=>[t("项目介绍")]}),u(E,null,{default:()=>[t("预设了最佳构建体验的配置与常用搬砖工具。意在提供一个简洁、快速上手的模板。")]})]}),u(i,{title:"友情链接"},{default:()=>[u(d,null,null)]})]})}});export{du as default}; diff --git a/js/index-Drj3PGgk.js.gz b/js/index-Drj3PGgk.js.gz deleted file mode 100644 index 4f3c32e7..00000000 Binary files a/js/index-Drj3PGgk.js.gz and /dev/null differ diff --git a/js/index-Dx_gm2nu.js b/js/index-Dx_gm2nu.js deleted file mode 100644 index 3724a26d..00000000 --- a/js/index-Dx_gm2nu.js +++ /dev/null @@ -1 +0,0 @@ -import{C as r,E as A}from"./hooks-DNoo5Jj5.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-C6aYKqdf.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 u,c as m,O as i,I as C}from"./naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js";import{l as O,b as t,I as e}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.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-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-DewQlJ2W.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_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.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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-ewSD1rNh.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"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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 St=O({name:"REchart",setup(){const[n,{getChartInstance:f,dispose:l,render:d,isDisposed:p}]=A(),[c,{getChartInstance:s,dispose:F,render:y,isDisposed:B}]=A(),b=g(!1),E=g(!1),o=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)"}}}]},h=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=>{o.loading=a},w=a=>{E.value=a},S=()=>{p()?d():window.$message.warning("图表已渲染~")},x=()=>{l()},T=()=>{o.loading1=!0;const a=()=>Math.floor((Math.random()+1)*100);setTimeout(()=>{h.value.series[0].data=new Array(7).fill(0).map(()=>a()),h.value.series[1].data=new Array(7).fill(0).map(()=>a()),o.loading1=!1},1e3)};return{baseOptions:D,chartLoading:b,handleLoadingShow:v,chartAria:E,handleAriaShow:w,basePieOptions:k,baseLineOptions:h,...V(o),mountChart:S,unmountChart:x,updateChartOptions:T,register:n,register2:c,dispose2:F,render2:y,isDisposed2:B}},render(){const{register:n,register2:f,dispose2:l,render2:d,isDisposed2:p,loading1:c}=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(m,{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:c},null)])]}),t(u,{title:"不跟随主题切换的暗色主题可视化图,并且手动指定原始主题色"},{default:()=>[t(m,{vertical:!0},{default:()=>[t(m,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":s=>this.chartLoading=s,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":s=>this.chartAria=s,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{St as default}; diff --git a/js/index-Dx_gm2nu.js.gz b/js/index-Dx_gm2nu.js.gz deleted file mode 100644 index 3219342a..00000000 Binary files a/js/index-Dx_gm2nu.js.gz and /dev/null differ diff --git a/js/index-Dxathzqh.js b/js/index-Dxathzqh.js new file mode 100644 index 00000000..ceacb744 --- /dev/null +++ b/js/index-Dxathzqh.js @@ -0,0 +1 @@ +import{j as T,q as C,r as L,f as v,t as r,e as F,u as P,h as A,v as $}from"./hooks-AGBWEt_R.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--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-Brd4YmBy.js";import{s as y}from"./utils-DweTa4yD.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{H as w,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-i2yA9The.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-DNt1HURo.js";import{A as J}from"./index-CycY2SEi.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.12-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-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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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}登陆~`),y(v.token,"tokenValue","localStorage"),y(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(w,{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(w,{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.4"},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-Dxathzqh.js.gz b/js/index-Dxathzqh.js.gz new file mode 100644 index 00000000..c6b72b11 Binary files /dev/null and b/js/index-Dxathzqh.js.gz differ diff --git a/js/index-D03MkEFA.js b/js/index-E47eBjhl.js similarity index 63% rename from js/index-D03MkEFA.js rename to js/index-E47eBjhl.js index 77ef31e2..9c0ea3d3 100644 --- a/js/index-D03MkEFA.js +++ b/js/index-E47eBjhl.js @@ -1 +1 @@ -import{l as e,b as o,I as r}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.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-DtgApL3K.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-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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-ewSD1rNh.js";import"./lodash-es@4.17.21-CeZG2a4n.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-i2yA9The.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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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-E47eBjhl.js.gz b/js/index-E47eBjhl.js.gz new file mode 100644 index 00000000..5cdc92fe Binary files /dev/null and b/js/index-E47eBjhl.js.gz differ diff --git a/js/index-EwbgOaHC.js b/js/index-EwbgOaHC.js deleted file mode 100644 index d10ffff7..00000000 --- a/js/index-EwbgOaHC.js +++ /dev/null @@ -1 +0,0 @@ -import{Y as U,Q as G,J as L,K as z,t as j,Z as P}from"./hooks-DNoo5Jj5.js";import{k as Y}from"./utils-DewQlJ2W.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{N as D,c as i,ag as _,O as u,v as S,b as r,G as Q,L as F,ak as X,I as Z,n as q}from"./naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js";import{l as H,b as e,I as l,F as I,p as W}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.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-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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-_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.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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-ewSD1rNh.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-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!W(n)}const Ze=H({name:"TableView",setup(){const[n,{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(S,{type:"info",bordered:!1,style:"margin-right: 6px"},N(d)?d:{default:()=>[d]}))},{title:"Remark",key:"remark"},{title:"Action",key:"actions",render:t=>e(i,{align:"center"},{default:()=>[e(u,{size:"tiny"},{default:()=>[l("查看")]}),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;"},[l("删除")]),key:"delete"}],E=ee({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),[T,{checkedRowKeysBind:v,getKeys:R,getRows:o,clearKey:B,clearAll:A,selectKey:K}]=G(s,g,{rowKey:"key",onChange:(t,a,d)=>{}}),O=()=>{for(let t=0;t<10;t++)s.value.push({key:Y(),name:t%2===0?"John Brown":"Jim Green",age:t+20,address:"New York No. 1 Lake Park",tags:["nice","developer"],remark:"我是一条很长很长的备注"})},J=t=>{window.$message.info(`${t}`)},M=()=>{const{key:t}=s.value[1];B(t)},V=()=>{s.value.map(a=>a.key).forEach(a=>K(a))},$=()=>{const{key:t}=s.value[1];K(t)};return O(),{...te(E),tableData:s,actionColumns:g,baseColumns:b,tableMenuOptions:w,menuSelect:J,register:n,getKeys:R,getRows:o,clearKey:B,clearAll:A,checkedRowKeysBind:v,checkedRowKeys:T,clearSecondIndexRow:M,selectAll:V,selectSecondIndexRow:$,clearFilters:p,clearSorter:m,scrollTo:f,filters:k,sort:C,downloadCsv:y,getTableInstance:c,print:h}},render(){let n;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(i,{vertical:!0},{default:()=>[e(D,{title:"RTable"},{default:()=>[l("基于 NDataTable 封装,继承该组件所有 props 属性。查看 RTable props 文件即可查看该组件拓展项")]}),e(D,{title:"useTable"},{default:()=>[e(i,{vertical:!0,style:"width: 100%"},{default:()=>[e(_,{title:"DataTable Methods",type:"info"},{default:()=>[l("其余的方法查看")," ",e("a",{style:"color: transparent",href:"https://www.naiveui.com/zh-CN/dark/components/data-table#DataTable-Methods"},[l("Naive UI")]),l("官网,保持一致。")]}),e(i,null,{default:()=>[e(u,{onClick:h.bind(this)},{default:()=>[l("清除所有排序")]}),e(u,{onClick:y.bind(this)},{default:()=>[l("清除所有过滤")]}),e(u,{onClick:()=>{w()}},{default:()=>[l("下载 CSV")]}),e(u,{onClick:()=>E()},{default:()=>[l("getTableInstance")]}),e(u,{onClick:()=>R()},{default:()=>[l("打印")]})]})]})]}),e(D,{title:"useCheckedRowKeys"},{default:()=>[e(i,{vertical:!0},{default:()=>[e(i,null,{default:()=>[e(u,{onClick:k.bind(this)},{default:()=>[l("选中所有行")]}),e(u,{onClick:p.bind(this)},{default:()=>[l("取消所有已选中行")]}),e(u,{onClick:C.bind(this)},{default:()=>[l("选中第二行")]}),e(u,{onClick:f.bind(this)},{default:()=>[l("取消第二行选中")]})]}),e(i,null,N(n=this.checkedRowKeys.map(o=>e(S,{type:"success",key:o},N(o)?o:{default:()=>[o]})))?n:{default:()=>[n]})]})]}),e(L,{collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateOpen:o=>window.$message.info(`我是 RCollapse 组件${o?"收起":"展开"}的回调函数`)},{action:()=>e(I,null,[e(u,{type:"primary"},{default:()=>[l("搜索")]}),e(u,null,{default:()=>[l("重置")]})]),default:()=>e(I,null,[e(r,null,{default:()=>[e(Q,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":o=>this.checkedRowKeys=o,onUpdateCheckedRowKeys:m.bind(this),onRegister:c.bind(this),scrollX:1e3,title:e(i,{align:"center"},{default:()=>[e("span",null,[l("标题插槽:")]),e(Z,{onUpdateValue:o=>this.tableLoading=o},null)]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":o=>this.actionColumns=o,pagination:{pageSize:10},contextMenuOptions:this.tableMenuOptions,loading:this.tableLoading,onContextMenuClick:this.menuSelect.bind(this),toolOptions:[e(q,null,{trigger:()=>e(j,{name:"search",size:"18",cursor:"pointer",onClick:()=>{window.$message.info("点击了搜索按钮")}},null),default:()=>"我是自定义工具栏示例"})],rowKey:o=>o.key,striped:!0},{tableFooter:()=>"表格的底部内容区域插槽,有时候你可能会用上",tableAction:()=>"表格的操作区域内容插槽,有时候可能会用上"})]})}});export{Ze as default}; diff --git a/js/index-EwbgOaHC.js.gz b/js/index-EwbgOaHC.js.gz deleted file mode 100644 index 1f1132ba..00000000 Binary files a/js/index-EwbgOaHC.js.gz and /dev/null differ diff --git a/js/index-EwsxEsV-.js b/js/index-EwsxEsV-.js deleted file mode 100644 index 095518dc..00000000 --- a/js/index-EwsxEsV-.js +++ /dev/null @@ -1 +0,0 @@ -import{a as r}from"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.js";import"./lodash@4.17.21-Cw59kuJw.js";import{s as n}from"./instance-CZSdczlG.js";import{c as l,N as o,O as A,L as i,$ as g}from"./naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js";import{l as V,b as u,I as t}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.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-DNoo5Jj5.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.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"./utils-DewQlJ2W.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_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.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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-ewSD1rNh.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-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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 r(()=>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"}),Ru=V({name:"RAxios",setup(){const e=R({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:a,loading:m,run:p}=r(d,{throttleWait:1e3,manual:!0}),{data:s,loading:D,run:F}=r(d,{debounceWait:1e3,manual:!0}),{data:h,loading:c,run:E}=r(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(l,{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(l,{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(l,{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(l,{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(l,{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{Ru as default}; diff --git a/js/index-EwsxEsV-.js.gz b/js/index-EwsxEsV-.js.gz deleted file mode 100644 index 53124141..00000000 Binary files a/js/index-EwsxEsV-.js.gz and /dev/null differ diff --git a/js/index-H9US9qo_.js b/js/index-H9US9qo_.js new file mode 100644 index 00000000..81ad2732 --- /dev/null +++ b/js/index-H9US9qo_.js @@ -0,0 +1 @@ +import{F as d}from"./hooks-AGBWEt_R.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--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-i2yA9The.js";import"./lodash-es@4.17.21-B-5kLwAl.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DNt1HURo.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-DnrABUGp.js";import"./utils-DweTa4yD.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12-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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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-H9US9qo_.js.gz b/js/index-H9US9qo_.js.gz new file mode 100644 index 00000000..a9ced0e6 Binary files /dev/null and b/js/index-H9US9qo_.js.gz differ diff --git a/js/index-Ov7I6uVL.js.gz b/js/index-Ov7I6uVL.js.gz deleted file mode 100644 index 9876bd08..00000000 Binary files a/js/index-Ov7I6uVL.js.gz and /dev/null differ diff --git a/js/index-YChggc46.js b/js/index-YChggc46.js new file mode 100644 index 00000000..f1da18cb --- /dev/null +++ b/js/index-YChggc46.js @@ -0,0 +1 @@ +import{m as S,e as W,a2 as V,t as w,a3 as y,a4 as N,a5 as L,u as M,a6 as I}from"./hooks-AGBWEt_R.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--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-i2yA9The.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-DNt1HURo.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-DnrABUGp.js";import"./utils-DweTa4yD.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12-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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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-YChggc46.js.gz b/js/index-YChggc46.js.gz new file mode 100644 index 00000000..67f5d112 Binary files /dev/null and b/js/index-YChggc46.js.gz differ diff --git a/js/index-CrzR9VpM.js b/js/index-a7mlN0Lt.js similarity index 81% rename from js/index-CrzR9VpM.js rename to js/index-a7mlN0Lt.js index 043447c7..d6ede932 100644 --- a/js/index-CrzR9VpM.js +++ b/js/index-a7mlN0Lt.js @@ -1 +1 @@ -import{Q as t}from"./vue3-next-qrcode@2.0.10_typescript@5.2.2-BJQJW2Mf.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-DtgApL3K.js";import{l as n,b as u,I as o}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.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-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./lodash-es@4.17.21-CeZG2a4n.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-i2yA9The.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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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-a7mlN0Lt.js.gz b/js/index-a7mlN0Lt.js.gz new file mode 100644 index 00000000..185e131a Binary files /dev/null and b/js/index-a7mlN0Lt.js.gz differ diff --git a/js/index-b8T1nLRq.js b/js/index-b8T1nLRq.js deleted file mode 100644 index be1d2a38..00000000 --- a/js/index-b8T1nLRq.js +++ /dev/null @@ -1 +0,0 @@ -import"./hooks-DNoo5Jj5.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-C6aYKqdf.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{s as n,g as l,t as c,B as f}from"./utils-DewQlJ2W.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.12-DtgApL3K.js";import{l as g,b as e,I as r}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as p}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_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.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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-ewSD1rNh.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"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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 ne=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{ne as default}; diff --git a/js/index-b8T1nLRq.js.gz b/js/index-b8T1nLRq.js.gz deleted file mode 100644 index ccc65c78..00000000 Binary files a/js/index-b8T1nLRq.js.gz and /dev/null differ diff --git a/js/index-nJFSuG-j.js b/js/index-nJFSuG-j.js deleted file mode 100644 index 6f88666f..00000000 --- a/js/index-nJFSuG-j.js +++ /dev/null @@ -1 +0,0 @@ -import{m as S,e as W,$ as w,t as V,a0 as y,a1 as N,a2 as L,u as M,a3 as I}from"./hooks-DNoo5Jj5.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-C6aYKqdf.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 i,c as a,L as T,O as t}from"./naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js";import{l as R,b as u,I as e}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as b}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-DewQlJ2W.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_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.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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-ewSD1rNh.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"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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 yu=R({name:"TemplateHooks",setup(){const m=b(""),n=S("layoutContentMaximize"),r=b(W().getWatermarkConfig.value.content),F=b("new"),{navigationTo:p}=y(),{maximize:s,isLayoutContentMaximized:d}=w(),{reload:C,openSpin:B,closeSpin:D}=N(),{showWatermark:A,hiddenWatermark:E,setWatermarkContent:c,toggleWatermark:h}=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:n,openSpin:B,closeSpin:D,showWatermark:A,hiddenWatermark:E,setWatermarkContent:c,watermark:r,toggleWatermark:h,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:n,maximize:r,openSpin:F,closeSpin:p,showWatermark:s,hiddenWatermark:d,setWatermarkContent:C,toggleWatermark:B,darkTheme:D,lightTheme:A,toggleTheme:E,getAppTheme:c,isLayoutContentMaximized:h,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")},{default:()=>[e("显示当前菜单标记")]}),u(t,{onClick:()=>l("/template-hooks",{label:this.badgeValue})},{default:()=>[e("更新当前菜单标记")]}),u(t,{onClick:()=>{l("/template-hooks",{label:this.badgeValue,icon:u(V,{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 获取当前主题色: "),c().themeLabel]),u(a,null,{default:()=>[u(t,{onClick:()=>D()},{default:()=>[e("切换暗黑主题")]}),u(t,{onClick:()=>A()},{default:()=>[e("切换明亮主题")]}),u(t,{onClick:()=>g()},{default:()=>[e("跟随主题")]}),u(t,{onClick:()=>E()},{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:()=>{n()}},{default:()=>[e("刷新(强制刷新)")]}),u(t,{onClick:()=>{F(),setTimeout(()=>{p()},800)}},{default:()=>[e("触发加载动画(不强制刷新)")]})]})]}),u(i,{title:"useMaximize 内容区域最大化"},{default:()=>[u("h3",null,[e("isLayoutContentMaximized 检测当前内容区域是否最大化:"),h?"最大化":"正常尺寸"]),u(t,{onClick:()=>{r(!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{yu as default}; diff --git a/js/index-nJFSuG-j.js.gz b/js/index-nJFSuG-j.js.gz deleted file mode 100644 index 9a4c6d69..00000000 Binary files a/js/index-nJFSuG-j.js.gz and /dev/null differ diff --git a/js/instance-CZSdczlG.js b/js/instance-CZSdczlG.js deleted file mode 100644 index 94b3483c..00000000 --- a/js/instance-CZSdczlG.js +++ /dev/null @@ -1 +0,0 @@ -import{a as R}from"./axios@1.7.5-C8DqakIB.js";import{V as t,W as n,f as q,X as d}from"./hooks-DNoo5Jj5.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-C6aYKqdf.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{g as A}from"./utils-DewQlJ2W.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-CZSdczlG.js.gz b/js/instance-CZSdczlG.js.gz deleted file mode 100644 index fc4c1c68..00000000 Binary files a/js/instance-CZSdczlG.js.gz and /dev/null differ diff --git a/js/instance-DjIgqIpD.js b/js/instance-DjIgqIpD.js new file mode 100644 index 00000000..d2b52d1e --- /dev/null +++ b/js/instance-DjIgqIpD.js @@ -0,0 +1 @@ +import{a as R}from"./axios@1.7.5-C8DqakIB.js";import{Y as t,Z as n,f as q,$ as d}from"./hooks-AGBWEt_R.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--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-DweTa4yD.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-DjIgqIpD.js.gz b/js/instance-DjIgqIpD.js.gz new file mode 100644 index 00000000..4c35aa2d Binary files /dev/null and b/js/instance-DjIgqIpD.js.gz differ diff --git a/js/interactjs@1.10.26-DZL_TZzP.js.gz b/js/interactjs@1.10.26-DZL_TZzP.js.gz index daedf7b6..6177bb3a 100644 Binary files a/js/interactjs@1.10.26-DZL_TZzP.js.gz and b/js/interactjs@1.10.26-DZL_TZzP.js.gz differ diff --git a/js/js-cookie@3.0.5-Z_8Sd105.js.gz b/js/js-cookie@3.0.5-Z_8Sd105.js.gz index 08a0c8ec..28654b00 100644 Binary files a/js/js-cookie@3.0.5-Z_8Sd105.js.gz and b/js/js-cookie@3.0.5-Z_8Sd105.js.gz differ diff --git a/js/jsbarcode@3.11.6-DGNGFp02.js.gz b/js/jsbarcode@3.11.6-DGNGFp02.js.gz index e4ae053c..c4576d32 100644 Binary files a/js/jsbarcode@3.11.6-DGNGFp02.js.gz and b/js/jsbarcode@3.11.6-DGNGFp02.js.gz differ diff --git a/js/language-BOVZ3dlJ.js.gz b/js/language-BOVZ3dlJ.js.gz new file mode 100644 index 00000000..31570003 Binary files /dev/null and b/js/language-BOVZ3dlJ.js.gz differ diff --git a/js/left_arrow-DAKeumRT.js.gz b/js/left_arrow-DAKeumRT.js.gz new file mode 100644 index 00000000..6058e8f6 Binary files /dev/null and b/js/left_arrow-DAKeumRT.js.gz differ diff --git a/js/light-DWWBs-Ry.js.gz b/js/light-DWWBs-Ry.js.gz new file mode 100644 index 00000000..47b0aba8 Binary files /dev/null and b/js/light-DWWBs-Ry.js.gz differ diff --git a/js/lock-dC7sQfx2.js.gz b/js/lock-dC7sQfx2.js.gz index c3d62010..82d60b13 100644 Binary files a/js/lock-dC7sQfx2.js.gz and b/js/lock-dC7sQfx2.js.gz differ diff --git a/js/lodash-es@4.17.21-B-5kLwAl.js b/js/lodash-es@4.17.21-B-5kLwAl.js new file mode 100644 index 00000000..262e2fee --- /dev/null +++ b/js/lodash-es@4.17.21-B-5kLwAl.js @@ -0,0 +1 @@ +var $r=typeof global=="object"&&global&&global.Object===Object&&global,he=typeof self=="object"&&self&&self.Object===Object&&self,S=$r||he||Function("return this")(),m=S.Symbol,Or=Object.prototype,ve=Or.hasOwnProperty,be=Or.toString,q=m?m.toStringTag:void 0;function ye(n){var r=ve.call(n,q),e=n[q];try{n[q]=void 0;var t=!0}catch{}var i=be.call(n);return t&&(r?n[q]=e:delete n[q]),i}var _e=Object.prototype,Te=_e.toString;function $e(n){return Te.call(n)}var Oe="[object Null]",Ae="[object Undefined]",Wn=m?m.toStringTag:void 0;function F(n){return n==null?n===void 0?Ae:Oe:Wn&&Wn in Object(n)?ye(n):$e(n)}function P(n){return n!=null&&typeof n=="object"}var me="[object Symbol]";function un(n){return typeof n=="symbol"||P(n)&&F(n)==me}function sn(n,r){for(var e=-1,t=n==null?0:n.length,i=Array(t);++e0){if(++r>=rt)return arguments[0]}else r=0;return n.apply(void 0,arguments)}}function at(n){return function(){return n}}var an=function(){try{var n=D(Object,"defineProperty");return n({},"",{}),n}catch{}}(),ft=an?function(n,r){return an(n,"toString",{configurable:!0,enumerable:!1,value:at(r),writable:!0})}:cn,wr=it(ft);function Pr(n,r){for(var e=-1,t=n==null?0:n.length;++e-1&&n%1==0&&n-1&&n%1==0&&n<=ht}function E(n){return n!=null&&Fn(n.length)&&!Rn(n)}function vt(n,r,e){if(!O(e))return!1;var t=typeof r;return(t=="number"?E(e)&&ln(r,e.length):t=="string"&&r in e)?k(e[r],n):!1}function Er(n){return pt(function(r,e){var t=-1,i=e.length,a=i>1?e[i-1]:void 0,f=i>2?e[2]:void 0;for(a=n.length>3&&typeof a=="function"?(i--,a):void 0,f&&vt(e[0],e[1],f)&&(a=i<3?void 0:a,i=1),r=Object(r);++t-1}function Si(n,r){var e=this.__data__,t=hn(e,n);return t<0?(++this.size,e.push([n,r])):e[t][1]=r,this}function I(n){var r=-1,e=n==null?0:n.length;for(this.clear();++ri?0:i+r),e=e>i?i:e,e<0&&(e+=i),i=r>e?0:e-r>>>0,r>>>=0;for(var a=Array(i);++t=t?n:Gr(n,r,e)}var Qi="\\ud800-\\udfff",Vi="\\u0300-\\u036f",ki="\\ufe20-\\ufe2f",na="\\u20d0-\\u20ff",ra=Vi+ki+na,ea="\\ufe0e\\ufe0f",ta="\\u200d",ia=RegExp("["+ta+Qi+ra+ea+"]");function Br(n){return ia.test(n)}function aa(n){return n.split("")}var Hr="\\ud800-\\udfff",fa="\\u0300-\\u036f",oa="\\ufe20-\\ufe2f",ua="\\u20d0-\\u20ff",sa=fa+oa+ua,ca="\\ufe0e\\ufe0f",la="["+Hr+"]",wn="["+sa+"]",Pn="\\ud83c[\\udffb-\\udfff]",ga="(?:"+wn+"|"+Pn+")",zr="[^"+Hr+"]",Kr="(?:\\ud83c[\\udde6-\\uddff]){2}",Wr="[\\ud800-\\udbff][\\udc00-\\udfff]",da="\\u200d",Xr=ga+"?",Yr="["+ca+"]?",pa="(?:"+da+"(?:"+[zr,Kr,Wr].join("|")+")"+Yr+Xr+")*",ha=Yr+Xr+pa,va="(?:"+[zr+wn+"?",wn,Kr,Wr,la].join("|")+")",ba=RegExp(Pn+"(?="+Pn+")|"+va+ha,"g");function ya(n){return n.match(ba)||[]}function _a(n){return Br(n)?ya(n):aa(n)}function Ta(n){return function(r){r=Lr(r);var e=Br(r)?_a(r):void 0,t=e?e[0]:r.charAt(0),i=e?Ji(e,1).join(""):r.slice(1);return t[n]()+i}}var mu=Ta("toUpperCase");function $a(n,r,e,t){var i=-1,a=n==null?0:n.length;for(t&&a&&(e=n[++i]);++io))return!1;var s=a.get(n),c=a.get(r);if(s&&c)return s==r&&c==n;var l=-1,g=!0,h=e&to?new on:void 0;for(a.set(n,r),a.set(r,n);++l=r||R<0||l&&Y>=a}function b(){var _=On();if(v(_))return x(_);o=setTimeout(b,$(_))}function x(_){return o=void 0,g&&t?h(_):(t=i=void 0,f)}function en(){o!==void 0&&clearTimeout(o),s=0,t=u=i=o=void 0}function G(){return o===void 0?f:x(On())}function M(){var _=On(),R=v(_);if(t=arguments,i=this,u=_,R){if(o===void 0)return y(u);if(l)return clearTimeout(o),o=setTimeout(b,r),h(u)}return o===void 0&&(o=setTimeout(b,r)),f}return M.cancel=en,M.flush=G,M}function Cn(n,r,e){(e!==void 0&&!k(n[r],e)||e===void 0&&!(r in n))&&gn(n,r,e)}function Wo(n){return P(n)&&E(n)}function Mn(n,r){if(!(r==="constructor"&&typeof n[r]=="function")&&r!="__proto__")return n[r]}function Xo(n){return U(n,K(n))}function Yo(n,r,e,t,i,a,f){var o=Mn(n,e),u=Mn(r,e),s=f.get(u);if(s){Cn(n,e,s);return}var c=a?a(o,u,e+"",n,r,f):void 0,l=c===void 0;if(l){var g=T(u),h=!g&&H(u),y=!g&&!h&&pn(u);c=u,g||h||y?T(o)?c=o:Wo(o)?c=mr(o):h?(l=!1,c=Zr(u,!0)):y?(l=!1,c=ne(u,!0)):c=[]:Ur(u)||B(u)?(c=o,B(o)?c=Xo(o):(!O(o)||Rn(o))&&(c=re(u))):l=!1}l&&(f.set(u,c),i(c,u,t,a,f),f.delete(u)),Cn(n,e,c)}function ge(n,r,e,t,i){n!==r&&Hn(r,function(a,f){if(i||(i=new w),O(a))Yo(n,r,f,e,ge,t,i);else{var o=t?t(Mn(n,f),a,f+"",n,r,i):void 0;o===void 0&&(o=a),Cn(n,f,o)}},K)}function qo(n){var r=n==null?0:n.length;return r?n[r-1]:void 0}function de(n){return typeof n=="function"?n:cn}function Pu(n,r){var e=T(n)?Pr:zn;return e(n,de(r))}function Zo(n,r){return sn(r,function(e){return[e,n[e]]})}function Jo(n){var r=-1,e=Array(n.size);return n.forEach(function(t){e[++r]=[t,t]}),e}var Qo="[object Map]",Vo="[object Set]";function ko(n){return function(r){var e=A(r);return e==Qo?fe(r):e==Vo?Jo(r):Zo(r,n(r))}}var Su=ko(j);function nu(n){return function(r,e,t){var i=Object(r);if(!E(r)){var a=rn(e);r=j(r),e=function(o){return a(i[o],o,i)}}var f=n(r,e,t);return f>-1?i[a?r[f]:f]:void 0}}var ru=Math.max;function eu(n,r,e){var t=n==null?0:n.length;if(!t)return-1;var i=e==null?0:Le(e);return i<0&&(i=ru(t+i,0)),Sr(n,rn(r),i)}var xu=nu(eu);function tu(n,r){var e=-1,t=E(n)?Array(n.length):[];return zn(n,function(i,a,f){t[++e]=r(i,a,f)}),t}function Eu(n,r){var e=T(n)?sn:tu;return e(n,rn(r))}function Iu(n,r){return n==null?n:Hn(n,de(r),K)}var iu=Object.prototype,au=iu.hasOwnProperty;function fu(n,r){return n!=null&&au.call(n,r)}function Cu(n,r){return n!=null&&se(n,r,fu)}function Mu(n,r,e){var t=n==null?0:n.length;if(!t)return-1;var i=0;return st(n,r,i)}function ou(n,r){return r.length<2?n:bn(n,Gr(r,0,-1))}var uu="[object Boolean]";function Ru(n){return n===!0||n===!1||P(n)&&F(n)==uu}var su="[object Map]",cu="[object Set]",lu=Object.prototype,gu=lu.hasOwnProperty;function Fu(n){if(n==null)return!0;if(E(n)&&(T(n)||typeof n=="string"||typeof n.splice=="function"||H(n)||pn(n)||B(n)))return!n.length;var r=A(n);if(r==su||r==cu)return!n.size;if(nn(n))return!jr(n).length;for(var e in n)if(gu.call(n,e))return!1;return!0}function ju(n,r){return yn(n,r)}function Lu(n){return n==null}function Nu(n){return n===void 0}function Du(n,r){var e={};return r=rn(r),le(n,function(t,i,a){gn(e,r(t,i,a),t)}),e}var Uu=Er(function(n,r,e){ge(n,r,e)});function du(n,r){return r=W(r,n),n=ou(n,r),n==null||delete n[X(qo(r))]}function pu(n){return Ur(n)?void 0:n}var hu=1,vu=2,bu=4,Gu=Nr(function(n,r){var e={};if(n==null)return e;var t=!1;r=sn(r,function(a){return a=W(a,n),t||(t=a.length>1),a}),U(n,kr(n),e),t&&(e=J(e,hu|vu|bu,pu));for(var i=r.length;i--;)du(e,r[i]);return e});function pe(n,r,e,t){if(!O(n))return n;r=W(r,n);for(var i=-1,a=r.length,f=a-1,o=n;o!=null&&++i0){if(++n>=He)return arguments[0]}else n=0;return r.apply(void 0,arguments)}}function Xe(r){return function(){return r}}var er=function(){try{var r=F(Object,"defineProperty");return r({},"",{}),r}catch{}}(),Ye=er?function(r,n){return er(r,"toString",{configurable:!0,enumerable:!1,value:Xe(n),writable:!0})}:or,mn=We(Ye);function Ze(r,n){for(var e=-1,t=r==null?0:r.length;++e-1&&r%1==0&&r-1&&r%1==0&&r<=rt}function N(r){return r!=null&&Cr(r.length)&&!Pr(r)}function nt(r,n,e){if(!m(e))return!1;var t=typeof n;return(t=="number"?N(e)&&fr(n,e.length):t=="string"&&n in e)?V(e[n],r):!1}function et(r){return ke(function(n,e){var t=-1,i=e.length,a=i>1?e[i-1]:void 0,o=i>2?e[2]:void 0;for(a=r.length>3&&typeof a=="function"?(i--,a):void 0,o&&nt(e[0],e[1],o)&&(a=i<3?void 0:a,i=1),n=Object(n);++t-1}function li(r,n){var e=this.__data__,t=cr(e,r);return t<0?(++this.size,e.push([r,n])):e[t][1]=n,this}function x(r){var n=-1,e=r==null?0:r.length;for(this.clear();++ni?0:i+n),e=e>i?i:e,e<0&&(e+=i),i=n>e?0:e-n>>>0,n>>>=0;for(var a=Array(i);++t=t?r:Ln(r,n,e)}var ji="\\ud800-\\udfff",Fi="\\u0300-\\u036f",Ni="\\ufe20-\\ufe2f",Di="\\u20d0-\\u20ff",Ui=Fi+Ni+Di,Gi="\\ufe0e\\ufe0f",Bi="\\u200d",Hi=RegExp("["+Bi+ji+Ui+Gi+"]");function jn(r){return Hi.test(r)}function zi(r){return r.split("")}var Fn="\\ud800-\\udfff",Ki="\\u0300-\\u036f",Wi="\\ufe20-\\ufe2f",Xi="\\u20d0-\\u20ff",Yi=Ki+Wi+Xi,Zi="\\ufe0e\\ufe0f",qi="["+Fn+"]",vr="["+Yi+"]",_r="\\ud83c[\\udffb-\\udfff]",Ji="(?:"+vr+"|"+_r+")",Nn="[^"+Fn+"]",Dn="(?:\\ud83c[\\udde6-\\uddff]){2}",Un="[\\ud800-\\udbff][\\udc00-\\udfff]",Qi="\\u200d",Gn=Ji+"?",Bn="["+Zi+"]?",Vi="(?:"+Qi+"(?:"+[Nn,Dn,Un].join("|")+")"+Bn+Gn+")*",ki=Bn+Gn+Vi,ra="(?:"+[Nn+vr+"?",vr,Dn,Un,qi].join("|")+")",na=RegExp(_r+"(?="+_r+")|"+ra+ki,"g");function ea(r){return r.match(na)||[]}function ta(r){return jn(r)?ea(r):zi(r)}function ia(r){return function(n){n=Cn(n);var e=jn(n)?ta(n):void 0,t=e?e[0]:n.charAt(0),i=e?Li(e,1).join(""):n.slice(1);return t[r]()+i}}var Vf=ia("toUpperCase");function aa(){this.__data__=new x,this.size=0}function oa(r){var n=this.__data__,e=n.delete(r);return this.size=n.size,e}function fa(r){return this.__data__.get(r)}function ua(r){return this.__data__.has(r)}var sa=200;function ca(r,n){var e=this.__data__;if(e instanceof x){var t=e.__data__;if(!Q||t.lengthf))return!1;var s=a.get(r),c=a.get(n);if(s&&c)return s==n&&c==r;var l=-1,g=!0,h=e&Go?new ir:void 0;for(a.set(r,n),a.set(n,r);++l=n||M<0||l&&X>=a}function b(){var _=yr();if(y(_))return P(_);f=setTimeout(b,T(_))}function P(_){return f=void 0,g&&t?h(_):(t=i=void 0,o)}function rr(){f!==void 0&&clearTimeout(f),s=0,t=u=i=f=void 0}function D(){return f===void 0?o:P(yr())}function I(){var _=yr(),M=y(_);if(t=arguments,i=this,u=_,M){if(f===void 0)return v(u);if(l)return clearTimeout(f),f=setTimeout(b,n),h(u)}return f===void 0&&(f=setTimeout(b,n)),o}return I.cancel=rr,I.flush=D,I}function Ar(r,n,e){(e!==void 0&&!V(r[n],e)||e===void 0&&!(n in r))&&Er(r,n,e)}function Rf(r){return E(r)&&N(r)}function wr(r,n){if(!(n==="constructor"&&typeof r[n]=="function")&&n!="__proto__")return r[n]}function Lf(r){return H(r,z(r))}function jf(r,n,e,t,i,a,o){var f=wr(r,e),u=wr(n,e),s=o.get(u);if(s){Ar(r,e,s);return}var c=a?a(f,u,e+"",r,n,o):void 0,l=c===void 0;if(l){var g=$(u),h=!g&&G(u),v=!g&&!h&&sr(u);c=u,g||h||v?$(f)?c=f:Rf(f)?c=$n(f):h?(l=!1,c=zn(u,!0)):v?(l=!1,c=Zn(u,!0)):c=[]:Rn(u)||U(u)?(c=f,U(f)?c=Lf(f):(!m(f)||Pr(f))&&(c=qn(u))):l=!1}l&&(o.set(u,c),i(c,u,t,a,o),o.delete(u)),Ar(r,e,c)}function te(r,n,e,t,i){r!==n&&Ur(n,function(a,o){if(i||(i=new w),m(a))jf(r,n,o,e,te,t,i);else{var f=t?t(wr(r,o),a,o+"",r,n,i):void 0;f===void 0&&(f=a),Ar(r,o,f)}},z)}function Ff(r){var n=r==null?0:r.length;return n?r[n-1]:void 0}function Nf(r){return typeof r=="function"?r:or}function Df(r,n){var e=-1,t=N(r)?Array(r.length):[];return Ef(r,function(i,a,o){t[++e]=n(i,a,o)}),t}function ru(r,n){var e=$(r)?Sr:Df;return e(r,Af(n))}function nu(r,n){return r==null?r:Ur(r,Nf(n),z)}function Uf(r,n){return n.length<2?r:gr(r,Ln(n,0,-1))}var Gf="[object Map]",Bf="[object Set]",Hf=Object.prototype,zf=Hf.hasOwnProperty;function eu(r){if(r==null)return!0;if(N(r)&&($(r)||typeof r=="string"||typeof r.splice=="function"||G(r)||sr(r)||U(r)))return!r.length;var n=O(r);if(n==Gf||n==Bf)return!r.size;if(ur(r))return!xn(r).length;for(var e in r)if(zf.call(r,e))return!1;return!0}var tu=et(function(r,n,e){te(r,n,e)});function Kf(r,n){return n=K(n,r),r=Uf(r,n),r==null||delete r[W(Ff(n))]}function Wf(r){return Rn(r)?void 0:r}var Xf=1,Yf=2,Zf=4,iu=In(function(r,n){var e={};if(r==null)return e;var t=!1;n=Sr(n,function(a){return a=K(a,r),t||(t=a.length>1),a}),H(r,Yn(r),e),t&&(e=q(e,Xf|Yf|Zf,Wf));for(var i=n.length;i--;)Kf(e,n[i]);return e});function ie(r,n,e,t){if(!m(r))return r;n=K(n,r);for(var i=-1,a=n.length,o=a-1,f=r;f!=null&&++i1&&arguments[1]!==void 0?arguments[1]:{},o=t.prefix,n=o===void 0?"":o,r=t.suffix,i=r===void 0?"":r,a=e.displayName||e.name||e.constructor&&e.constructor.name||"";return n+a+i}var O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},M=function(){function e(t,o){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:!1,n=e[t],r=$[t],i=n?o===!0?function(){r.apply(this,arguments),n.apply(this,arguments)}:function(){n.apply(this,arguments),r.apply(this,arguments)}:r;e[t]=i}function x(e,t){if(e==null||t==null||(typeof e>"u"?"undefined":O(e))!=="object"||(typeof t>"u"?"undefined":O(t))!=="object")return e!==t;var o=Object.keys(e);if(o.length!==Object.keys(t).length)return!0;for(var n=void 0,r=o.length-1;n=o[r];r--)if(t[n]!==e[n])return!0;return!1}var $={componentWillMount:function(){var t=this,o=R(this),n=!1,r=!1;function i(f){var u=this[f],l=E("reactive "+f);Object.defineProperty(this,f,{configurable:!0,enumerable:!0,get:function(){return l.reportObserved(),u},set:function(s){!r&&x(u,s)?(u=s,n=!0,l.reportChanged(),n=!1):u=s}})}i.call(this,"props"),i.call(this,"state");var a=this.render.bind(this),c=null,p=!1,g=function(){return c=new C(o+".render()",function(){if(!p&&(p=!0,typeof t.componentWillReact=="function"&&t.componentWillReact(),t.__$mobxIsUnmounted!==!0)){var u=!0;try{r=!0,n||b.prototype.forceUpdate.call(t),u=!1}finally{r=!1,u&&c.dispose()}}}),c.reactComponent=t,y.$mobx=c,t.render=y,y(t.props,t.state,t.context)},y=function(u,l,d){p=!1;var s=void 0,v=void 0;if(c.track(function(){try{v=X(!1,a,u,l,d)}catch(h){s=h}}),s)throw s;return v};this.render=g},componentWillUnmount:function(){this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0},componentDidMount:function(){},componentDidUpdate:function(){},shouldComponentUpdate:function(t,o){return this.state!==o?!0:x(this.props,t)}};function T(e){if(arguments.length>1&&w.warn('Mobx observer: Using observer to inject stores is not supported. Use `@connect(["store1", "store2"]) ComponentClass instead or preferably, use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))``'),e.isMobxInjector===!0&&w.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),I(e)){var t,o;return T((o=t=function(r){U(i,r);function i(){return _(this,i),W(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return M(i,[{key:"render",value:function(){return e.call(this,this.props,this.context)}}]),i}(b),t.displayName=R(e),o))}if(!e)throw new Error("Please pass a valid component to 'observer'");var n=e.prototype||e;return G(n),e.isMobXReactObserver=!0,e}function G(e){P(e,"componentWillMount",!0),P(e,"componentDidMount"),e.shouldComponentUpdate||(e.shouldComponentUpdate=$.shouldComponentUpdate)}var K=T(function(e){var t=e.children;return t[0]()});K.displayName="Observer";var k=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function q(e,t){return t={exports:{}},e(t,t.exports),t.exports}q(function(e,t){(function(o,n){e.exports=n()})(k,function(){var o={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r=Object.defineProperty,i=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,g=p&&p(Object);return function y(f,u,l){if(typeof u!="string"){if(g){var d=p(u);d&&d!==g&&y(f,d,l)}var s=i(u);a&&(s=s.concat(a(u)));for(var v=0;v1?N("div",null," ",r," "):r[0]}},{key:"getChildContext",value:function(){var n={},r=this.context.mobxStores;if(r)for(var i in r)n[i]=r[i];for(var a in this.props)!S[a]&&a!=="suppressChangedStoreWarning"&&(n[a]=this.props[a]);return{mobxStores:n}}},{key:"componentWillReceiveProps",value:function(n){if(Object.keys(n).length!==Object.keys(this.props).length&&j.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!n.suppressChangedStoreWarning)for(var r in n)!S[r]&&this.props[r]!==n[r]&&j.warn("MobX Provider: Provided store '"+r+"' has changed. Please avoid replacing stores as the change might not propagate to all children")}}]),t})(b);if(!b)throw new Error("mobx-preact requires Preact to be available");export{T as o}; diff --git a/js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js.gz b/js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js.gz new file mode 100644 index 00000000..85c58f02 Binary files /dev/null and b/js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js.gz differ diff --git a/js/mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js b/js/mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js new file mode 100644 index 00000000..6de4048a --- /dev/null +++ b/js/mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js @@ -0,0 +1 @@ +import{b as f,o as h,k as N,e as R,f as B,h as S,a as w,j as F,r as L,O as $,l as z,m as q,n as M,$ as J,p as E,q as U,u as W,v as H,w as x}from"./mobx@5.15.7-CEMJDQot.js";function Q(e){throw new Error("[mobx-utils] "+e)}function _(e,o){o===void 0&&(o="Illegal state"),e||Q(o)}var G=function(e){return e&&e!==Object.prototype&&Object.getOwnPropertyNames(e).concat(G(Object.getPrototypeOf(e))||[])},X=function(e){var o=G(e),t=o.filter(function(r,n){return o.indexOf(r)===n});return t},Y=function(e){return X(e).filter(function(o){return o!=="constructor"&&!~o.indexOf("__")})},T="pending",O="fulfilled",P="rejected";function Z(e){switch(this.state){case T:return e.pending&&e.pending(this.value);case P:return e.rejected&&e.rejected(this.value);case O:return e.fulfilled?e.fulfilled(this.value):this.value}}function D(e,o){if(_(arguments.length<=2,"fromPromise expects up to two arguments"),_(typeof e=="function"||typeof e=="object"&&e&&typeof e.then=="function","Please pass a promise or function to fromPromise"),e.isPromiseBasedObservable===!0)return e;typeof e=="function"&&(e=new Promise(e));var t=e;e.then(f("observableFromPromise-resolve",function(n){t.value=n,t.state=O}),f("observableFromPromise-reject",function(n){t.value=n,t.state=P})),t.isPromiseBasedObservable=!0,t.case=Z;var r=o&&o.state===O?o.value:void 0;return z(t,{value:r,state:T},{},{deep:!1}),t}(function(e){e.reject=f("fromPromise.reject",function(t){var r=e(Promise.reject(t));return r.state=P,r.value=t,r});function o(t){t===void 0&&(t=void 0);var r=e(Promise.resolve(t));return r.state=O,r.value=t,r}e.resolve=f("fromPromise.resolve",o)})(D||(D={}));var y=function(e,o,t,r){var n=arguments.length,i=n<3?o:r===null?r=Object.getOwnPropertyDescriptor(o,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,t,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(n<3?a(i):n>3?a(o,t,i):a(o,t))||i);return n>3&&i&&Object.defineProperty(o,t,i),i};(function(){function e(o,t){var r=this;q(function(){r.current=t,r.subscription=o.subscribe(r)})}return e.prototype.dispose=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.next=function(o){this.current=o},e.prototype.complete=function(){this.dispose()},e.prototype.error=function(o){this.current=o,this.dispose()},y([h.ref],e.prototype,"current",void 0),y([f.bound],e.prototype,"next",null),y([f.bound],e.prototype,"complete",null),y([f.bound],e.prototype,"error",null),e})();var g=function(){return g=Object.assign||function(e){for(var o,t=1,r=arguments.length;t=0;s--)(a=e[s])&&(i=(n<3?a(i):n>3?a(o,t,i):a(o,t))||i);return n>3&&i&&Object.defineProperty(o,t,i),i},k=["model","reset","submit","isDirty","isPropertyDirty","resetProperty"];(function(){function e(o){var t=this;this.model=o,this.localValues=h.map({}),this.localComputedValues=h.map({}),this.isPropertyDirty=function(r){return t.localValues.has(r)},_(M(o),"createViewModel expects an observable object"),Y(o).forEach(function(r){if(!(r===J||r==="__mobxDidRunLazyInitializers")){if(_(k.indexOf(r)===-1,"The propertyname "+r+" is reserved and cannot be used with viewModels"),E(o,r)){var n=U(o,r).derivation;t.localComputedValues.set(r,w(n.bind(t)))}var i=Object.getOwnPropertyDescriptor(o,r),a=i?{enumerable:i.enumerable}:{};Object.defineProperty(t,r,g(g({},a),{configurable:!0,get:function(){return E(o,r)?t.localComputedValues.get(r).get():t.isPropertyDirty(r)?t.localValues.get(r):t.model[r]},set:f(function(s){s!==t.model[r]?t.localValues.set(r,s):t.localValues.delete(r)})}))}})}return Object.defineProperty(e.prototype,"isDirty",{get:function(){return this.localValues.size>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changedValues",{get:function(){return this.localValues.toJS()},enumerable:!1,configurable:!0}),e.prototype.submit=function(){var o=this;N(this.localValues).forEach(function(t){var r=o.localValues.get(t),n=o.model[t];R(n)?n.replace(r):B(n)?(n.clear(),n.merge(r)):S(r)||(o.model[t]=r)}),this.localValues.clear()},e.prototype.reset=function(){this.localValues.clear()},e.prototype.resetProperty=function(o){this.localValues.delete(o)},b([w],e.prototype,"isDirty",null),b([w],e.prototype,"changedValues",null),b([f.bound],e.prototype,"submit",null),b([f.bound],e.prototype,"reset",null),b([f.bound],e.prototype,"resetProperty",null),e})();function I(e){if(!e)return"ROOT";for(var o=[];e.parent;)o.push(e.path),e=e.parent;return o.reverse().join("/")}function V(e){return M(e)||R(e)||B(e)}function re(e,o){var t=new WeakMap;function r(s){var l=t.get(s.object);n(s,l),o(s,I(l),e)}function n(s,l){switch(s.type){case"add":i(s.newValue,l,s.name);break;case"update":a(s.oldValue),i(s.newValue,l,s.name||""+s.index);break;case"remove":case"delete":a(s.oldValue);break;case"splice":s.removed.map(a),s.added.forEach(function(d,c){return i(d,l,""+(s.index+c))});for(var p=s.index+s.addedCount;p=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function k(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a}function Je(){for(var e=[],t=0;t2&&ie("box");var r=J(t);return new z(e,de(r),r.name,!0,r.equals)},array:function(e,t){arguments.length>2&&ie("array");var r=J(t);return kr(e,de(r),r.name)},map:function(e,t){arguments.length>2&&ie("map");var r=J(t);return new qt(e,de(r),r.name)},set:function(e,t){arguments.length>2&&ie("set");var r=J(t);return new zt(e,de(r),r.name)},object:function(e,t,r){typeof arguments[1]=="string"&&ie("object");var n=J(r);if(n.proxy===!1)return st({},e,t,n);var i=Lt(n),a=st({},void 0,void 0,n),o=Hr(a);return It(o,e,t,i),o},ref:At,shallow:lr,deep:ke,struct:hr},O=vr;Object.keys(nt).forEach(function(e){return O[e]=nt[e]});function ie(e){l("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}var Se=mt(!1,function(e,t,r,n,i){var a=r.get,o=r.set,s=i[0]||{};Ye(e).addComputedProp(e,t,Ae({get:a,set:o,context:e},s))}),pr=Se({equals:W.structural}),dr=function(t,r,n){if(typeof r=="string"||t!==null&&typeof t=="object"&&arguments.length===1)return Se.apply(null,arguments);var i=typeof r=="object"?r:{};return i.get=t,i.set=typeof r=="function"?r:i.set,i.name=i.name||t.name||"",new Y(i)};dr.struct=pr;var v;(function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"})(v||(v={}));var T;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(T||(T={}));var _e=function(){function e(t){this.cause=t}return e}();function oe(e){return e instanceof _e}function Ve(e){switch(e.dependenciesState){case v.UP_TO_DATE:return!1;case v.NOT_TRACKING:case v.STALE:return!0;case v.POSSIBLY_STALE:{for(var t=We(!0),r=re(),n=e.observing,i=n.length,a=0;a0;u.computationDepth>0&&t&&l(!1),!u.allowStateChanges&&(t||u.enforceActions==="strict")&&l(!1)}function wt(e,t,r){var n=We(!0);_t(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++u.runId;var i=u.trackingDerivation;u.trackingDerivation=e;var a;if(u.disableErrorBoundaries===!0)a=t.call(r);else try{a=t.call(r)}catch(o){a=new _e(o)}return u.trackingDerivation=i,yr(e),se(n),a}function yr(e){for(var t=e.observing,r=e.observing=e.newObserving,n=v.UP_TO_DATE,i=0,a=e.unboundDepsCount,o=0;on&&(n=s.dependenciesState)}for(r.length=i,e.newObserving=null,a=t.length;a--;){var s=t[a];s.diffValue===0&&xt(s,e),s.diffValue=0}for(;i--;){var s=r[i];s.diffValue===1&&(s.diffValue=0,Sr(s,e))}n!==v.UP_TO_DATE&&(e.dependenciesState=n,e.onBecomeStale())}function Ue(e){var t=e.observing;e.observing=[];for(var r=t.length;r--;)xt(t[r],e);e.dependenciesState=v.NOT_TRACKING}function St(e){var t=re();try{return e()}finally{I(t)}}function re(){var e=u.trackingDerivation;return u.trackingDerivation=null,e}function I(e){u.trackingDerivation=e}function We(e){var t=u.allowStateReads;return u.allowStateReads=e,t}function se(e){u.allowStateReads=e}function _t(e){if(e.dependenciesState!==v.UP_TO_DATE){e.dependenciesState=v.UP_TO_DATE;for(var t=e.observing,r=t.length;r--;)t[r].lowestObserverState=v.UP_TO_DATE}}var Ee=0,br=1,it=Object.getOwnPropertyDescriptor(function(){},"name");it&&it.configurable;function q(e,t,r){var n=function(){return Et(e,t,r||this,arguments)};return n.isMobxAction=!0,n}function Et(e,t,r,n){var i=gr();try{return t.apply(r,n)}catch(a){throw i.error=a,a}finally{mr(i)}}function gr(e,t,r){var n=g(),i=0,a=re();_();var o=je(!0),s=We(!0),f={prevDerivation:a,prevAllowStateChanges:o,prevAllowStateReads:s,notifySpy:n,startTime:i,actionId:br++,parentActionId:Ee};return Ee=f.actionId,f}function mr(e){Ee!==e.actionId&&l("invalid action stack. did you forget to finish an action?"),Ee=e.parentActionId,e.error!==void 0&&(u.suppressReactionErrors=!0),Me(e.prevAllowStateChanges),se(e.prevAllowStateReads),E(),I(e.prevDerivation),e.notifySpy,u.suppressReactionErrors=!1}function je(e){var t=u.allowStateChanges;return u.allowStateChanges=e,t}function Me(e){u.allowStateChanges=e}var z=function(e){ir(t,e);function t(r,n,i,a,o){i===void 0&&(i="ObservableValue@"+m()),a===void 0&&(a=!0),o===void 0&&(o=W.default);var s=e.call(this,i)||this;return s.enhancer=n,s.name=i,s.equals=o,s.hasUnreportedChange=!1,s.value=n(r,void 0,i),a&&g(),s}return t.prototype.dehanceValue=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.prototype.set=function(r){var n=this.value;if(r=this.prepareNewValue(r),r!==u.UNCHANGED){var i=g();this.setNewValue(r)}},t.prototype.prepareNewValue=function(r){if(X(this),D(this)){var n=P(this,{object:this,type:"update",newValue:r});if(!n)return u.UNCHANGED;r=n.newValue}return r=this.enhancer(r,this.value,this.name),this.equals(this.value,r)?u.UNCHANGED:r},t.prototype.setNewValue=function(r){var n=this.value;this.value=r,this.reportChanged(),R(this)&&x(this,{type:"update",object:this,newValue:r,oldValue:n})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(r){return le(this,r)},t.prototype.observe=function(r,n){return n&&r({object:this,type:"update",newValue:this.value,oldValue:void 0}),he(this,r)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return bt(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t}(te),Or=U("ObservableValue",z),Y=function(){function e(t){this.dependenciesState=v.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=v.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+m(),this.value=new _e(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=T.NONE,K(t.get,"missing option for computed: get"),this.derivation=t.get,this.name=t.name||"ComputedValue@"+m(),t.set&&(this.setter=q(this.name+"-setter",t.set)),this.equals=t.equals||(t.compareStructural||t.struct?W.structural:W.default),this.scope=t.context,this.requiresReaction=!!t.requiresReaction,this.keepAlive=!!t.keepAlive}return e.prototype.onBecomeStale=function(){Rr(this)},e.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(t){return t()})},e.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(t){return t()})},e.prototype.get=function(){this.isComputing&&l("Cycle detected in computation "+this.name+": "+this.derivation),u.inBatch===0&&this.observers.size===0&&!this.keepAlive?Ve(this)&&(this.warnAboutUntrackedRead(),_(),this.value=this.computeValue(!1),E()):(Tt(this),Ve(this)&&this.trackAndCompute()&&Er(this));var t=this.value;if(oe(t))throw t.cause;return t},e.prototype.peek=function(){var t=this.computeValue(!1);if(oe(t))throw t.cause;return t},e.prototype.set=function(t){if(this.setter){K(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,t)}finally{this.isRunningSetter=!1}}else K(!1,!1)},e.prototype.trackAndCompute=function(){var t=this.value,r=this.dependenciesState===v.NOT_TRACKING,n=this.computeValue(!0),i=r||oe(t)||oe(n)||!this.equals(t,n);return i&&(this.value=n),i},e.prototype.computeValue=function(t){this.isComputing=!0,u.computationDepth++;var r;if(t)r=wt(this,this.derivation,this.scope);else if(u.disableErrorBoundaries===!0)r=this.derivation.call(this.scope);else try{r=this.derivation.call(this.scope)}catch(n){r=new _e(n)}return u.computationDepth--,this.isComputing=!1,r},e.prototype.suspend=function(){this.keepAlive||(Ue(this),this.value=void 0)},e.prototype.observe=function(t,r){var n=this,i=!0,a=void 0;return Mr(function(){var o=n.get();if(!i||r){var s=re();t({type:"update",object:n,newValue:o,oldValue:a}),I(s)}i=!1,a=o})},e.prototype.warnAboutUntrackedRead=function(){},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return bt(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e}(),$=U("ComputedValue",Y),ge=function(){function e(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1}return e}(),Ar={};function Ge(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:Ar}var me=!0,Rt=!1,u=function(){var e=Ge();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(me=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new ge().version&&(me=!1),me?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new ge):(setTimeout(function(){Rt||l("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new ge)}();function wr(){(u.pendingReactions.length||u.inBatch||u.isRunningReactions)&&l("isolateGlobalState should be called before MobX is running any reactions"),Rt=!0,me&&(--Ge().__mobxInstanceCount===0&&(Ge().__mobxGlobals=void 0),u=new ge)}function nn(){return u}function Sr(e,t){e.observers.add(t),e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function xt(e,t){e.observers.delete(t),e.observers.size===0&&Ct(e)}function Ct(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,u.pendingUnobservations.push(e))}function _(){u.inBatch++}function E(){if(--u.inBatch===0){jt();for(var e=u.pendingUnobservations,t=0;t0&&Ct(e),!1)}function _r(e){e.lowestObserverState!==v.STALE&&(e.lowestObserverState=v.STALE,e.observers.forEach(function(t){t.dependenciesState===v.UP_TO_DATE&&(t.isTracing!==T.NONE&&Dt(t,e),t.onBecomeStale()),t.dependenciesState=v.STALE}))}function Er(e){e.lowestObserverState!==v.STALE&&(e.lowestObserverState=v.STALE,e.observers.forEach(function(t){t.dependenciesState===v.POSSIBLY_STALE?t.dependenciesState=v.STALE:t.dependenciesState===v.UP_TO_DATE&&(e.lowestObserverState=v.UP_TO_DATE)}))}function Rr(e){e.lowestObserverState===v.UP_TO_DATE&&(e.lowestObserverState=v.POSSIBLY_STALE,e.observers.forEach(function(t){t.dependenciesState===v.UP_TO_DATE&&(t.dependenciesState=v.POSSIBLY_STALE,t.isTracing!==T.NONE&&Dt(t,e),t.onBecomeStale())}))}function Dt(e,t){if(""+e.name+t.name,e.isTracing===T.BREAK){var r=[];Pt(Ir(e),r,1),new Function(`debugger; +/* +Tracing '`+e.name+`' + +You are entering this break point because derivation '`+e.name+"' is being traced and '"+t.name+`' is now forcing it to update. +Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update +The stackframe you are looking for is at least ~6-8 stack-frames up. + +`+(e instanceof Y?e.derivation.toString().replace(/[*]\//g,"/"):"")+` + +The dependencies for this derivation are: + +`+r.join(` +`)+` +*/ + `)()}}function Pt(e,t,r){if(t.length>=1e3){t.push("(and many more)");return}t.push(""+new Array(r).join(" ")+e.name),e.dependencies&&e.dependencies.forEach(function(n){return Pt(n,t,r+1)})}var Re=function(){function e(t,r,n,i){t===void 0&&(t="Reaction@"+m()),i===void 0&&(i=!1),this.name=t,this.onInvalidate=r,this.errorHandler=n,this.requiresObservable=i,this.observing=[],this.newObserving=[],this.dependenciesState=v.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+m(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=T.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,u.pendingReactions.push(this),jt())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(_(),this._isScheduled=!1,Ve(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&g()}catch(t){this.reportExceptionInDerivation(t)}}E()}},e.prototype.track=function(t){if(!this.isDisposed){_(),this._isRunning=!0;var r=wt(this,t,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Ue(this),oe(r)&&this.reportExceptionInDerivation(r.cause),E()}},e.prototype.reportExceptionInDerivation=function(t){var r=this;if(this.errorHandler){this.errorHandler(t,this);return}if(u.disableErrorBoundaries)throw t;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";u.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,t),u.globalReactionErrorHandlers.forEach(function(i){return i(t,r)})},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(_(),Ue(this),E()))},e.prototype.getDisposer=function(){var t=this.dispose.bind(this);return t[c]=this,t},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(t){t===void 0&&(t=!1),Kr(this,t)},e}(),at=100,Ke=function(e){return e()};function jt(){u.inBatch>0||u.isRunningReactions||Ke(xr)}function xr(){u.isRunningReactions=!0;for(var e=u.pendingReactions,t=0;e.length>0;){++t===at&&(console.error("Reaction doesn't converge to a stable state after "+at+" iterations."+(" Probably there is a cycle in the reactive function: "+e[0])),e.splice(0));for(var r=e.splice(0),n=0,i=r.length;n",t);if(arguments.length===2&&typeof r=="function")return q(t,r);if(arguments.length===1&&typeof t=="string")return ot(t);if(i===!0)Q(t,r,q(t.name||r,n.value,this));else return ot(r).apply(null,arguments)};Xe.bound=jr;function an(e,t){var r=typeof e=="string"?e:e.name||"",n=typeof e=="function"?e:t;return Et(r,n,this,void 0)}function Le(e,t,r){Q(e,t,q(t,r.bind(e)))}function Mr(e,t){t===void 0&&(t=ze);var r=t&&t.name||e.name||"Autorun@"+m(),n=!t.scheduler&&!t.delay,i;if(n)i=new Re(r,function(){this.track(s)},t.onError,t.requiresObservable);else{var a=Mt(t),o=!1;i=new Re(r,function(){o||(o=!0,a(function(){o=!1,i.isDisposed||i.track(s)}))},t.onError,t.requiresObservable)}function s(){e(i)}return i.schedule(),i.getDisposer()}var Br=function(e){return e()};function Mt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Br}function on(e,t,r){r===void 0&&(r=ze);var n=r.name||"Reaction@"+m(),i=Xe(n,r.onError?Nr(r.onError,t):t),a=!r.scheduler&&!r.delay,o=Mt(r),s=!0,f=!1,h,p=r.compareStructural?W.structural:r.equals||W.default,y=new Re(n,function(){s||a?d():f||(f=!0,o(d))},r.onError,r.requiresObservable);function d(){if(f=!1,!y.isDisposed){var b=!1;y.track(function(){var A=e(y);b=s||!p(h,A),h=A}),s&&r.fireImmediately&&i(h,y),!s&&b===!0&&i(h,y),s&&(s=!1)}}return y.schedule(),y.getDisposer()}function Nr(e,t){return function(){try{return t.apply(this,arguments)}catch(r){e.call(this,r)}}}function Lr(e,t,r){return Nt("onBecomeObserved",e,t)}function Bt(e,t,r){return Nt("onBecomeUnobserved",e,t)}function Nt(e,t,r,n){var i=V(t),a=r,o=e+"Listeners";i[o]?i[o].add(a):i[o]=new Set([a]);var s=i[e];return typeof s!="function"?l(!1):function(){var f=i[o];f&&(f.delete(a),f.size===0&&delete i[o])}}function sn(e){var t=e.enforceActions,r=e.computedRequiresReaction,n=e.computedConfigurable,i=e.disableErrorBoundaries,a=e.reactionScheduler,o=e.reactionRequiresObservable,s=e.observableRequiresReaction;if(e.isolateGlobalState===!0&&wr(),t!==void 0){var f=void 0;switch(t){case!0:case"observed":f=!0;break;case!1:case"never":f=!1;break;case"strict":case"always":f="strict";break;default:l("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}u.enforceActions=f,u.allowStateChanges=!(f===!0||f==="strict")}r!==void 0&&(u.computedRequiresReaction=!!r),o!==void 0&&(u.reactionRequiresObservable=!!o),s!==void 0&&(u.observableRequiresReaction=!!s,u.allowStateReads=!u.observableRequiresReaction),n!==void 0&&(u.computedConfigurable=!!n),i!==void 0&&(i===!0&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),u.disableErrorBoundaries=!!i),a&&Cr(a)}function st(e,t,r,n){n=J(n);var i=Lt(n);return H(e),Ye(e,n.name,i.enhancer),t&&It(e,t,r,i),e}function Lt(e){return e.defaultDecorator||(e.deep===!1?At:ke)}function It(e,t,r,n){var i,a,o,s;_();try{var o=Qt(t);try{for(var f=C(o),h=f.next();!h.done;h=f.next()){var s=h.value,p=Object.getOwnPropertyDescriptor(t,s),y=r&&s in r?r[s]:p.get?Se:n,d=y(e,s,p,!0);d&&Object.defineProperty(e,s,d)}}catch(A){i={error:A}}finally{try{h&&!h.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}}finally{E()}}function Ir(e,t){return Vt(V(e,t))}function Vt(e){var t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=Xt(e.observing).map(Vt)),t}function Ut(e,t){if(e==null)return!1;if(t!==void 0){if(B(e)===!1||!e[c].values.has(t))return!1;var r=V(e,t);return $(r)}return $(e)}function un(e){return arguments.length>1?l(!1):Ut(e)}function fn(e,t){return typeof t!="string"?l(!1):Ut(e,t)}function Vr(e,t){return e==null?!1:B(e)||!!e[c]||Fe(e)||xe(e)||$(e)}function Ce(e){return arguments.length!==1&&l(!1),Vr(e)}function ue(e){return B(e)?e[c].getKeys():S(e)||w(e)?Array.from(e.keys()):G(e)?e.map(function(t,r){return r}):l(!1)}function cn(e){return B(e)?ue(e).map(function(t){return e[t]}):S(e)?ue(e).map(function(t){return e.get(t)}):w(e)?Array.from(e.values()):G(e)?e.slice():l(!1)}function ln(e){return B(e)?ue(e).map(function(t){return[t,e[t]]}):S(e)?ue(e).map(function(t){return[t,e.get(t)]}):w(e)?Array.from(e.entries()):G(e)?e.map(function(t,r){return[r,t]}):l(!1)}function Gt(e,t,r){if(arguments.length===2&&!w(e)){_();var n=t;try{for(var i in n)Gt(e,i,n[i])}finally{E()}return}if(B(e)){var a=e[c],o=a.values.get(t);o?a.write(t,r):a.addObservableProp(t,r,a.defaultEnhancer)}else if(S(e))e.set(t,r);else if(w(e))e.add(t);else if(G(e))typeof t!="number"&&(t=parseInt(t,10)),K(t>=0,"Not a valid index: '"+t+"'"),_(),t>=e.length&&(e.length=t+1),e[t]=r,E();else return l(!1)}function hn(e,t,r,n){return Ur(e,t,r)}function Ur(e,t,r){return $e(e).observe(t,r)}var Gr={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function F(e,t,r,n){return n.detectCycles&&e.set(t,r),r}function N(e,t,r){if(!t.recurseEverything&&!Ce(e)||typeof e!="object")return e;if(e===null)return null;if(e instanceof Date)return e;if(Or(e))return N(e.get(),t,r);Ce(e)&&ue(e);var n=t.detectCycles===!0;if(n&&e!==null&&r.has(e))return r.get(e);if(G(e)||Array.isArray(e)){var i=F(r,e,[],t),a=e.map(function(b){return N(b,t,r)});i.length=a.length;for(var o=0,s=a.length;o0}function le(e,t){var r=e.interceptors||(e.interceptors=[]);return r.push(t),dt(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function P(e,t){var r=re();try{for(var n=Je(e.interceptors||[]),i=0,a=n.length;i0}function he(e,t){var r=e.changeListeners||(e.changeListeners=[]);return r.push(t),dt(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function x(e,t){var r=re(),n=e.changeListeners;if(n){n=n.slice();for(var i=0,a=n.length;i0?t.map(this.dehancer):t},e.prototype.intercept=function(t){return le(this,t)},e.prototype.observe=function(t,r){return r===void 0&&(r=!1),r&&t({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),he(this,t)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(t){if(typeof t!="number"||t<0)throw new Error("[mobx.array] Out of range: "+t);var r=this.values.length;if(t!==r)if(t>r){for(var n=new Array(t-r),i=0;ia?t=a:t<0&&(t=Math.max(0,a+t)),arguments.length===1?r=a-t:r==null?r=0:r=Math.max(0,Math.min(r,a-t)),n===void 0&&(n=Oe),D(this)){var o=P(this,{object:this.proxy,type:"splice",index:t,removedCount:r,added:n});if(!o)return Oe;r=o.removedCount,n=o.added}n=n.length===0?n:n.map(function(f){return i.enhancer(f,void 0)});var s=this.spliceItemsIntoValues(t,r,n);return(r!==0||n.length!==0)&&this.notifyArraySplice(t,n,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(t,r,n){var i;if(n.length-1?(this.splice(r,1),!0):!1},get:function(e){var t=this[c];if(t){if(e=0&&r++;break}e=pt(e),t=pt(t);var s=o==="[object Array]";if(!s){if(typeof e!="object"||typeof t!="object")return!1;var f=e.constructor,h=t.constructor;if(f!==h&&!(typeof f=="function"&&f instanceof f&&typeof h=="function"&&h instanceof h)&&"constructor"in e&&"constructor"in t)return!1}if(r===0)return!1;r<0&&(r=-1),n=n||[],i=i||[];for(var p=n.length;p--;)if(n[p]===e)return i[p]===t;if(n.push(e),i.push(t),s){if(p=e.length,p!==t.length)return!1;for(;p--;)if(!qe(e[p],t[p],r-1,n,i))return!1}else{var y=Object.keys(e),d=void 0;if(p=y.length,Object.keys(t).length!==p)return!1;for(;p--;)if(d=y[p],!(tn(t,d)&&qe(e[d],t[d],r-1,n,i)))return!1}return n.pop(),i.pop(),!0}function pt(e){return G(e)?e.slice():ee(e)||S(e)||fe(e)||w(e)?Array.from(e.entries()):e}function tn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Te(e){return e[Symbol.iterator]=rn,e}function rn(){return this}if(typeof Proxy>"u"||typeof Symbol>"u")throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");(function(){function e(){}if(e.name!=="testCodeMinification"&&!1)var t})();typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Tr,extras:{getDebugName:en},$mobx:c});export{c as $,qt as O,Re as R,dr as a,Xe as b,sn as c,gt as d,G as e,S as f,nn as g,un as h,Ce as i,hn as j,ue as k,st as l,an as m,B as n,O as o,fn as p,$e as q,on as r,Gt as s,vn as t,ln as u,cn as v,M as w}; diff --git a/js/mobx@5.15.7-CEMJDQot.js.gz b/js/mobx@5.15.7-CEMJDQot.js.gz new file mode 100644 index 00000000..36b18725 Binary files /dev/null and b/js/mobx@5.15.7-CEMJDQot.js.gz differ diff --git a/js/mockjs@1.1.0-CxlURkif.js.gz b/js/mockjs@1.1.0-CxlURkif.js.gz index b72a6804..80e1b651 100644 Binary files a/js/mockjs@1.1.0-CxlURkif.js.gz and b/js/mockjs@1.1.0-CxlURkif.js.gz differ diff --git a/js/more-DW-qndwg.js.gz b/js/more-DW-qndwg.js.gz index 23170020..1ff9fc13 100644 Binary files a/js/more-DW-qndwg.js.gz and b/js/more-DW-qndwg.js.gz differ diff --git a/js/mouse-C_l6KSTs.js.gz b/js/mouse-C_l6KSTs.js.gz index 06d057d0..34c6396c 100644 Binary files a/js/mouse-C_l6KSTs.js.gz and b/js/mouse-C_l6KSTs.js.gz differ diff --git a/js/mousetrap@1.6.5-BTGDluHR.js b/js/mousetrap@1.6.5-BTGDluHR.js new file mode 100644 index 00000000..4ed0504d --- /dev/null +++ b/js/mousetrap@1.6.5-BTGDluHR.js @@ -0,0 +1 @@ +import{g as J}from"./call-bind@1.0.7-Cpj98o6Y.js";var O={exports:{}};(function(b){(function(E,w,W){if(!E)return;for(var d={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},x={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},A={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},q={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},k,c=1;c<20;++c)d[111+c]="f"+c;for(c=0;c<=9;++c)d[c+96]=c.toString();function M(r,e,n){if(r.addEventListener){r.addEventListener(e,n,!1);return}r.attachEvent("on"+e,n)}function T(r){if(r.type=="keypress"){var e=String.fromCharCode(r.which);return r.shiftKey||(e=e.toLowerCase()),e}return d[r.which]?d[r.which]:x[r.which]?x[r.which]:String.fromCharCode(r.which).toLowerCase()}function R(r,e){return r.sort().join(",")===e.sort().join(",")}function B(r){var e=[];return r.shiftKey&&e.push("shift"),r.altKey&&e.push("alt"),r.ctrlKey&&e.push("ctrl"),r.metaKey&&e.push("meta"),e}function N(r){if(r.preventDefault){r.preventDefault();return}r.returnValue=!1}function V(r){if(r.stopPropagation){r.stopPropagation();return}r.cancelBubble=!0}function K(r){return r=="shift"||r=="ctrl"||r=="alt"||r=="meta"}function $(){if(!k){k={};for(var r in d)r>95&&r<112||d.hasOwnProperty(r)&&(k[d[r]]=r)}return k}function H(r,e,n){return n||(n=$()[r]?"keydown":"keypress"),n=="keypress"&&e.length&&(n="keydown"),n}function U(r){return r==="+"?["+"]:(r=r.replace(/\+{2}/g,"+plus"),r.split("+"))}function L(r,e){var n,o,h,y=[];for(n=U(r),h=0;h1){Y(t,v,a,s);return}f=L(t,s),e._callbacks[f.key]=e._callbacks[f.key]||[],I(f.key,f.modifiers,{type:f.action},i,t,u),e._callbacks[f.key][i?"unshift":"push"]({callback:a,modifiers:f.modifiers,action:f.action,seq:i,level:u,combo:t})}e._bindMultiple=function(t,a,s){for(var i=0;i-1||D(e,n.target))return!1;if("composedPath"in r&&typeof r.composedPath=="function"){var o=r.composedPath()[0];o!==r.target&&(e=o)}return e.tagName=="INPUT"||e.tagName=="SELECT"||e.tagName=="TEXTAREA"||e.isContentEditable},p.prototype.handleKey=function(){var r=this;return r._handleKey.apply(r,arguments)},p.addKeycodes=function(r){for(var e in r)r.hasOwnProperty(e)&&(d[e]=r[e]);k=null},p.init=function(){var r=p(w);for(var e in r)e.charAt(0)!=="_"&&(p[e]=function(n){return function(){return r[n].apply(r,arguments)}}(e))},p.init(),E.Mousetrap=p,b.exports&&(b.exports=p)})(typeof window<"u"?window:null,typeof window<"u"?document:null)})(O);var Q=O.exports;const j=J(Q);export{j as M}; diff --git a/js/mousetrap@1.6.5-BTGDluHR.js.gz b/js/mousetrap@1.6.5-BTGDluHR.js.gz new file mode 100644 index 00000000..1dceea54 Binary files /dev/null and b/js/mousetrap@1.6.5-BTGDluHR.js.gz differ diff --git a/js/naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js.gz b/js/naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js.gz deleted file mode 100644 index 28f45fe8..00000000 Binary files a/js/naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js.gz and /dev/null differ diff --git a/js/naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js b/js/naive-ui@2.40.1_vue@3.5.12-i2yA9The.js similarity index 99% rename from js/naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js rename to js/naive-ui@2.40.1_vue@3.5.12-i2yA9The.js index 1785b2eb..c95283cd 100644 --- a/js/naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js +++ b/js/naive-ui@2.40.1_vue@3.5.12-i2yA9The.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,j as C,f 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-Ds-HrVrM.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-gFk5c7Fb.js";import{v as _o,T as Vt,a as is,c as Au}from"./@vue_runtime-dom@3.5.12-ewSD1rNh.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-CeQQlSXI.js";import{c as Ho,m as Eu,z as va}from"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import{m as Mr,u as Lu,a as Nu,g as Gn,t as fi}from"./lodash-es@4.17.21-CeZG2a4n.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-CJ-8xq3W.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-CjNIvAko.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--iLh4DJ5.js";import{c as Ho,m as Eu,z as va}from"./vdirs@0.1.8_vue@3.5.12-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-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{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,ZC as ag,Ph as ah,QC as ai,vy 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}; +`).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-i2yA9The.js.gz b/js/naive-ui@2.40.1_vue@3.5.12-i2yA9The.js.gz new file mode 100644 index 00000000..077e216c Binary files /dev/null and b/js/naive-ui@2.40.1_vue@3.5.12-i2yA9The.js.gz differ diff --git a/js/object-inspect@1.13.1-l0sNRNKZ.js.gz b/js/object-inspect@1.13.1-l0sNRNKZ.js.gz new file mode 100644 index 00000000..7bb6dce8 Binary files /dev/null and b/js/object-inspect@1.13.1-l0sNRNKZ.js.gz differ diff --git a/js/office-B5pC1KGi.js.gz b/js/office-B5pC1KGi.js.gz index 033c7f3d..b07d0676 100644 Binary files a/js/office-B5pC1KGi.js.gz and b/js/office-B5pC1KGi.js.gz differ diff --git a/js/other-DU6bZUrM.js.gz b/js/other-DU6bZUrM.js.gz index b8ba0d7e..3ae22a9a 100644 Binary files a/js/other-DU6bZUrM.js.gz and b/js/other-DU6bZUrM.js.gz differ diff --git a/js/out-CMQCc625.js.gz b/js/out-CMQCc625.js.gz new file mode 100644 index 00000000..2ca56036 Binary files /dev/null and b/js/out-CMQCc625.js.gz differ diff --git a/js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js b/js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_Zka_ujQ.js similarity index 100% rename from js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js rename to js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_Zka_ujQ.js diff --git a/js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js.gz b/js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_Zka_ujQ.js.gz similarity index 91% rename from js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js.gz rename to js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_Zka_ujQ.js.gz index 5cab62a1..646d31dc 100644 Binary files a/js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js.gz and b/js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_Zka_ujQ.js.gz differ diff --git a/js/pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js b/js/pinia@2.2.4_typescript@5.6.3_vue@3.5.12-DK9mYMr0.js similarity index 96% rename from js/pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js rename to js/pinia@2.2.4_typescript@5.6.3_vue@3.5.12-DK9mYMr0.js index ee29e137..7473a4e1 100644 --- a/js/pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js +++ b/js/pinia@2.2.4_typescript@5.6.3_vue@3.5.12-DK9mYMr0.js @@ -1,4 +1,4 @@ -import{i as G}from"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import{U as $,i as T,w as tt,n as et,j as st}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.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";/*! +import{i as G}from"./vue-demi@0.14.10_vue@3.5.12-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.2.2_vue@3.5.12-DjAImzYl.js.gz b/js/pinia@2.2.4_typescript@5.6.3_vue@3.5.12-DK9mYMr0.js.gz similarity index 65% rename from js/pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js.gz rename to js/pinia@2.2.4_typescript@5.6.3_vue@3.5.12-DK9mYMr0.js.gz index 1f900e67..319f33c5 100644 Binary files a/js/pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js.gz and b/js/pinia@2.2.4_typescript@5.6.3_vue@3.5.12-DK9mYMr0.js.gz differ diff --git a/js/preact@10.22.0-D1_UwAj3.js b/js/preact@10.22.0-D1_UwAj3.js new file mode 100644 index 00000000..687bfd0d --- /dev/null +++ b/js/preact@10.22.0-D1_UwAj3.js @@ -0,0 +1 @@ +var W,s,$_,C,t_,P_,z,Y,Z,J,U={},x_=[],O_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,V=Array.isArray;function x(_,e){for(var t in e)_[t]=e[t];return _}function C_(_){var e=_.parentNode;e&&e.removeChild(_)}function K(_,e,t){var n,o,r,l={};for(r in e)r=="key"?n=e[r]:r=="ref"?o=e[r]:l[r]=e[r];if(arguments.length>2&&(l.children=arguments.length>3?W.call(arguments,2):t),typeof _=="function"&&_.defaultProps!=null)for(r in _.defaultProps)l[r]===void 0&&(l[r]=_.defaultProps[r]);return D(_,l,n,o,null)}function D(_,e,t,n,o){var r={type:_,props:e,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++$_,__i:-1,__u:0};return o==null&&s.vnode!=null&&s.vnode(r),r}function te(){return{current:null}}function E(_){return _.children}function $(_,e){this.props=_,this.context=e}function S(_,e){if(e==null)return _.__?S(_.__,_.__i+1):null;for(var t;e<_.__k.length;e++)if((t=_.__k[e])!=null&&t.__e!=null)return t.__e;return typeof _.type=="function"?S(_):null}function S_(_){var e,t;if((_=_.__)!=null&&_.__c!=null){for(_.__e=_.__c.base=null,e=0;e<_.__k.length;e++)if((t=_.__k[e])!=null&&t.__e!=null){_.__e=_.__c.base=t.__e;break}return S_(_)}}function n_(_){(!_.__d&&(_.__d=!0)&&C.push(_)&&!F.__r++||t_!==s.debounceRendering)&&((t_=s.debounceRendering)||P_)(F)}function F(){var _,e,t,n,o,r,l,u;for(C.sort(z);_=C.shift();)_.__d&&(e=C.length,n=void 0,r=(o=(t=_).__v).__e,l=[],u=[],t.__P&&((n=x({},o)).__v=o.__v+1,s.vnode&&s.vnode(n),G(t.__P,n,o,t.__n,t.__P.namespaceURI,32&o.__u?[r]:null,l,r??S(o),!!(32&o.__u),u),n.__v=o.__v,n.__.__k[n.__i]=n,U_(l,n,u),n.__e!=r&&S_(n)),C.length>e&&C.sort(z));F.__r=0}function E_(_,e,t,n,o,r,l,u,c,f,p){var i,g,a,d,k,v=n&&n.__k||x_,h=e.length;for(t.__d=c,D_(t,e,v),c=t.__d,i=0;i0?D(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=_,o.__b=_.__b+1,u=L_(o,t,l,p),o.__i=u,r=null,u!==-1&&(p--,(r=t[u])&&(r.__u|=131072)),r==null||r.__v===null?(u==-1&&i--,typeof o.type!="function"&&(o.__u|=65536)):u!==l&&(u===l+1?i++:u>l?p>c-l?i+=u-l:i--:u(c!=null&&!(131072&c.__u)?1:0))for(;l>=0||u=0){if((c=e[l])&&!(131072&c.__u)&&o==c.key&&r===c.type)return l;l--}if(u3;)t.pop()();if(t[1]{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!`)},[])},fo=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"})},uo=()=>({notMerge:!0,lazyUpdate:!0,silent:!1,replaceMerge:[]}),bo=(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",mo=()=>{const e=u(Ie),t=e==null?void 0:e.querySelector(Ke),o=u(Fe);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 m=(e=>(e.Windows="Windows",e.MacOS="MacOS",e.Linux="Linux",e.Android="Android",e.IOS="IOS",e.Unknown="Unknown",e))(m||{});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:"/"},po=()=>Ge,ho=(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)},S=(e,t)=>Object.prototype.toString.call(e).includes(t),So=(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)?m.Windows:/macintosh|mac os x/i.test(e)?m.MacOS:/linux/i.test(e)?m.Linux:/android/i.test(e)?m.Android:/iphone|ipad|ipod/i.test(e)?m.IOS:m.Unknown},go=(e,t)=>{const o=e.split("?").filter(Boolean)[0],r=t.split("?").filter(Boolean)[0],l=/\/$/;return o.replace(l,"")===r.replace(l,"")};function wo(e,t="sessionStorage",o){const{prefix:r,prefixKey:l}=o??{},a=r?l||y:"",s=t==="localStorage"?window.localStorage:window.sessionStorage;return!!Object.keys(s).find(c=>c===a+e)}function Co(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||y:"";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 xo(e,t="sessionStorage",o){const{prefix:r,prefixKey:l,defaultValue:a}=o??{},s=r?l||y:"";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 _o=(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||y:"",s=Object.keys(window.localStorage),c=Object.keys(window.sessionStorage),n=(f,p)=>{(f?[...c,...s]:p==="localStorage"?s:c).forEach(b=>{e==="__all__"?(window.sessionStorage.removeItem(a+b),window.localStorage.removeItem(a+b)):p==="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}},$o=(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)},Ao=(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)},Eo=(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},ko=(e,t)=>{const o=(a,s)=>{a.split(";").forEach(c=>{const[n,f]=c.split(":");if(n&&f){const p=n.trim(),C=f.trim();if(n.startsWith("--"))s.style.setProperty(p,C);else if(n.startsWith("-"))s.style[n]=f;else{const b=He(p);Object.keys(b).forEach(x=>{s.style[x]=b[x]}),s.style[p]=C}}})},l=g(()=>u(e),()=>{const a=u(e);a&&(S(t,"String")?o(t,a):S(t,"Array")?t.forEach(s=>{o(s,a)}):Object.keys(t).forEach(c=>{o(`${c}: ${t[c]}`,a)}))},{immediate:!0});h(l)},Wo=(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},Lo=(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}},vo=(e,t="px")=>e==="auto"?e:typeof e=="number"?e.toString()+t:S(e,"String")&&je.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()},Po=(...e)=>e.length===1?i(e[0],d).add(0):w(e,0,(t,o)=>i(t,d).add(o)),Io=(...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},Fo=(...e)=>e.length===1?i(e[0],d).multiply(1):w(e,1,(t,o)=>i(t,d).multiply(o)),jo=(...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))},Ro=(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 Bo(e,t){if(!e){const{defaultElement:o=null}=t??{};return typeof o=="function"?o:()=>o}if(typeof e=="string"||S(e,"Object"))return()=>e;if(typeof e=="function")return e}function h(e){return Me()?(De(e),!0):!1}function To(e,t){const o=Oe(e,t);h(o)}const Mo=(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,wo as B,Xe as C,Ro as D,Po as E,Io as F,Fo as G,jo as H,po as a,ko as b,Wo as c,uo as d,io as e,vo as f,xo as g,Ye as h,S as i,ho as j,So as k,fo as l,$o as m,h as n,go as o,bo as p,Lo as q,Bo as r,Co as s,_o as t,Mo as u,mo as v,Ao as w,yo as x,Eo as y,To as z}; diff --git a/js/utils-DewQlJ2W.js.gz b/js/utils-DewQlJ2W.js.gz deleted file mode 100644 index b67704c2..00000000 Binary files a/js/utils-DewQlJ2W.js.gz and /dev/null differ diff --git a/js/utils-DweTa4yD.js b/js/utils-DweTa4yD.js new file mode 100644 index 00000000..cb6e2d98 --- /dev/null +++ b/js/utils-DweTa4yD.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-AGBWEt_R.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--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-DweTa4yD.js.gz b/js/utils-DweTa4yD.js.gz new file mode 100644 index 00000000..973cab37 Binary files /dev/null and b/js/utils-DweTa4yD.js.gz differ diff --git a/js/uuid@9.0.1-CQkTLCs1.js b/js/uuid@9.0.1-CQkTLCs1.js new file mode 100644 index 00000000..3267bdae --- /dev/null +++ b/js/uuid@9.0.1-CQkTLCs1.js @@ -0,0 +1 @@ +let e;const o=new Uint8Array(16);function i(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(o)}const d=[];for(let n=0;n<256;++n)d.push((n+256).toString(16).slice(1));function p(n,t=0){return d[n[t+0]]+d[n[t+1]]+d[n[t+2]]+d[n[t+3]]+"-"+d[n[t+4]]+d[n[t+5]]+"-"+d[n[t+6]]+d[n[t+7]]+"-"+d[n[t+8]]+d[n[t+9]]+"-"+d[n[t+10]]+d[n[t+11]]+d[n[t+12]]+d[n[t+13]]+d[n[t+14]]+d[n[t+15]]}const y=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),c={randomUUID:y};function U(n,t,m){if(c.randomUUID&&!t&&!n)return c.randomUUID();n=n||{};const u=n.random||(n.rng||i)();return u[6]=u[6]&15|64,u[8]=u[8]&63|128,p(u)}export{U as v}; diff --git a/js/uuid@9.0.1-CQkTLCs1.js.gz b/js/uuid@9.0.1-CQkTLCs1.js.gz new file mode 100644 index 00000000..6bd02201 Binary files /dev/null and b/js/uuid@9.0.1-CQkTLCs1.js.gz differ diff --git a/js/vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js.gz b/js/vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js.gz index 465673bc..d8c9f58b 100644 Binary files a/js/vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js.gz and b/js/vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js.gz differ diff --git a/js/vooks@0.2.12_vue@3.5.12-CeQQlSXI.js b/js/vooks@0.2.12_vue@3.5.12--iLh4DJ5.js similarity index 84% rename from js/vooks@0.2.12_vue@3.5.12-CeQQlSXI.js rename to js/vooks@0.2.12_vue@3.5.12--iLh4DJ5.js index b91ee64a..ec6be261 100644 --- a/js/vooks@0.2.12_vue@3.5.12-CeQQlSXI.js +++ b/js/vooks@0.2.12_vue@3.5.12--iLh4DJ5.js @@ -1 +1 @@ -import{k as c,l as d,e as S}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{w as C,j as p,d as q,k as L,v as b,t as T}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.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;L(()=>{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 j(){F.value=Date.now()}let H=!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,j,!0);const a=()=>{M+=1,m("click",window,u,!0)};return H&&(H=B())?(T(a),b(()=>{M-=1,M===0&&v("click",window,j,!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 L(()=>{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=S({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--iLh4DJ5.js.gz b/js/vooks@0.2.12_vue@3.5.12--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--iLh4DJ5.js.gz differ diff --git a/js/vooks@0.2.12_vue@3.5.12-CeQQlSXI.js.gz b/js/vooks@0.2.12_vue@3.5.12-CeQQlSXI.js.gz deleted file mode 100644 index ac815a33..00000000 Binary files a/js/vooks@0.2.12_vue@3.5.12-CeQQlSXI.js.gz and /dev/null differ diff --git a/js/vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js.gz b/js/vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js.gz new file mode 100644 index 00000000..9c7b60c5 Binary files /dev/null and b/js/vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js.gz differ diff --git a/js/vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.js b/js/vue-hooks-plus@2.2.1_vue@3.5.12--wFVw10U.js similarity index 99% rename from js/vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.js rename to js/vue-hooks-plus@2.2.1_vue@3.5.12--wFVw10U.js index b0665899..58ee42f0 100644 --- a/js/vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.js +++ b/js/vue-hooks-plus@2.2.1_vue@3.5.12--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.12-Bs6EYLxJ.js";import{f as P,w as V,j as q,i as k,P as ee}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.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--wFVw10U.js.gz b/js/vue-hooks-plus@2.2.1_vue@3.5.12--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--wFVw10U.js.gz differ diff --git a/js/vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.js.gz b/js/vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.js.gz deleted file mode 100644 index 34c7a3a2..00000000 Binary files a/js/vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.js.gz and /dev/null differ diff --git a/js/vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js b/js/vue-i18n@9.13.1_vue@3.5.12-DVUVmCuN.js similarity index 99% rename from js/vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js rename to js/vue-i18n@9.13.1_vue@3.5.12-DVUVmCuN.js index 025df73f..1ca87329 100644 --- a/js/vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js +++ b/js/vue-i18n@9.13.1_vue@3.5.12-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,j as w,w as z,F as Ue,d as re,b as Ht,T as Bt}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{y as $t,a as Xt,k as Jt,s as Kt}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.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-DJkg4ac8.js.gz b/js/vue-i18n@9.13.1_vue@3.5.12-DVUVmCuN.js.gz similarity index 91% rename from js/vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js.gz rename to js/vue-i18n@9.13.1_vue@3.5.12-DVUVmCuN.js.gz index c6f933bd..a7988710 100644 Binary files a/js/vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js.gz and b/js/vue-i18n@9.13.1_vue@3.5.12-DVUVmCuN.js.gz differ diff --git a/js/vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js b/js/vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js similarity index 87% rename from js/vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js rename to js/vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js index 56a266ef..d93b55f0 100644 --- a/js/vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js +++ b/js/vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js @@ -1,5 +1,5 @@ -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,j as N,h as qe,x as le,w as ut}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.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 - */const q=typeof document<"u";function ft(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const S=Object.assign;function ue(e,t){const n={};for(const r in t){const o=t[r];n[r]=L(o)?o.map(e):e(o)}return n}const F=()=>{},L=Array.isArray,ze=/#/g,ht=/&/g,dt=/\//g,pt=/=/g,mt=/\?/g,Ue=/\+/g,gt=/%5B/g,vt=/%5D/g,Ke=/%5E/g,yt=/%60/g,Ve=/%7B/g,Rt=/%7C/g,De=/%7D/g,Et=/%20/g;function ge(e){return encodeURI(""+e).replace(Rt,"|").replace(gt,"[").replace(vt,"]")}function Pt(e){return ge(e).replace(Ve,"{").replace(De,"}").replace(Ke,"^")}function de(e){return ge(e).replace(Ue,"%2B").replace(Et,"+").replace(ze,"%23").replace(ht,"%26").replace(yt,"`").replace(Ve,"{").replace(De,"}").replace(Ke,"^")}function wt(e){return de(e).replace(pt,"%3D")}function St(e){return ge(e).replace(ze,"%23").replace(mt,"%3F")}function kt(e){return e==null?"":St(e).replace(dt,"%2F")}function X(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Ct=/\/$/,bt=e=>e.replace(Ct,"");function fe(e,t,n="/"){let r,o={},u="",d="";const g=t.indexOf("#");let i=t.indexOf("?");return g=0&&(i=-1),i>-1&&(r=t.slice(0,i),u=t.slice(i+1,g>-1?g:t.length),o=e(u)),g>-1&&(r=r||t.slice(0,g),d=t.slice(g,t.length)),r=xt(r??t,n),{fullPath:r+(u&&"?")+u+d,path:r,query:o,hash:X(d)}}function At(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ke(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function _t(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&z(t.matched[r],n.matched[o])&&Qe(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function z(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Qe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ot(e[n],t[n]))return!1;return!0}function Ot(e,t){return L(e)?Ce(e,t):L(t)?Ce(t,e):e===t}function Ce(e,t){return L(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function xt(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let u=n.length-1,d,g;for(d=0;d1&&u--;else break;return n.slice(0,u).join("/")+"/"+r.slice(d).join("/")}var Z;(function(e){e.pop="pop",e.push="push"})(Z||(Z={}));var Y;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Y||(Y={}));function Mt(e){if(!e)if(q){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),bt(e)}const Lt=/^[^#]+#/;function Nt(e,t){return e.replace(Lt,"#")+t}function jt(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const te=()=>({left:window.scrollX,top:window.scrollY});function It(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=jt(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function be(e,t){return(history.state?history.state.position-t:-1)+e}const pe=new Map;function Tt(e,t){pe.set(e,t)}function $t(e){const t=pe.get(e);return pe.delete(e),t}let Bt=()=>location.protocol+"//"+location.host;function We(e,t){const{pathname:n,search:r,hash:o}=t,u=e.indexOf("#");if(u>-1){let g=o.includes(e.slice(u))?e.slice(u).length:1,i=o.slice(g);return i[0]!=="/"&&(i="/"+i),ke(i,"")}return ke(n,e)+r+o}function Ht(e,t,n,r){let o=[],u=[],d=null;const g=({state:a})=>{const m=We(e,location),R=n.value,b=t.value;let C=0;if(a){if(n.value=m,t.value=a,d&&d===R){d=null;return}C=b?a.position-b.position:0}else r(m);o.forEach(E=>{E(n.value,R,{delta:C,type:Z.pop,direction:C?C>0?Y.forward:Y.back:Y.unknown})})};function i(){d=n.value}function f(a){o.push(a);const m=()=>{const R=o.indexOf(a);R>-1&&o.splice(R,1)};return u.push(m),m}function s(){const{history:a}=window;a.state&&a.replaceState(S({},a.state,{scroll:te()}),"")}function l(){for(const a of u)a();u=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",s)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:i,listen:f,destroy:l}}function Ae(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?te():null}}function Gt(e){const{history:t,location:n}=window,r={value:We(e,n)},o={value:t.state};o.value||u(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function u(i,f,s){const l=e.indexOf("#"),a=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+i:Bt()+e+i;try{t[s?"replaceState":"pushState"](f,"",a),o.value=f}catch(m){console.error(m),n[s?"replace":"assign"](a)}}function d(i,f){const s=S({},t.state,Ae(o.value.back,i,o.value.forward,!0),f,{position:o.value.position});u(i,s,!0),r.value=i}function g(i,f){const s=S({},o.value,t.state,{forward:i,scroll:te()});u(s.current,s,!0);const l=S({},Ae(r.value,i,null),{position:s.position+1},f);u(i,l,!1),r.value=i}return{location:r,state:o,push:g,replace:d}}function qt(e){e=Mt(e);const t=Gt(e),n=Ht(e,t.state,t.location,t.replace);function r(u,d=!0){d||n.pauseListeners(),history.go(u)}const o=S({location:"",base:e,go:r,createHref:Nt.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function gn(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),qt(e)}function zt(e){return typeof e=="string"||e&&typeof e=="object"}function Fe(e){return typeof e=="string"||typeof e=="symbol"}const T={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Ye=Symbol("");var _e;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(_e||(_e={}));function U(e,t){return S(new Error,{type:e,[Ye]:!0},t)}function I(e,t){return e instanceof Error&&Ye in e&&(t==null||!!(e.type&t))}const Oe="[^/]+?",Ut={sensitive:!1,strict:!1,start:!0,end:!0},Kt=/[.+*?^${}()[\]/\\]/g;function Vt(e,t){const n=S({},Ut,t),r=[];let o=n.start?"^":"";const u=[];for(const f of e){const s=f.length?[]:[90];n.strict&&!f.length&&(o+="/");for(let l=0;lt.length?t.length===1&&t[0]===80?1:-1:0}function Qt(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const Wt={type:0,value:""},Ft=/[a-zA-Z0-9_]/;function Yt(e){if(!e)return[[]];if(e==="/")return[[Wt]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${f}": ${m}`)}let n=0,r=n;const o=[];let u;function d(){u&&o.push(u),u=[]}let g=0,i,f="",s="";function l(){f&&(n===0?u.push({type:0,value:f}):n===1||n===2||n===3?(u.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:f,regexp:s,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),f="")}function a(){f+=i}for(;g{d(P)}:F}function d(s){if(Fe(s)){const l=r.get(s);l&&(r.delete(s),n.splice(n.indexOf(l),1),l.children.forEach(d),l.alias.forEach(d))}else{const l=n.indexOf(s);l>-1&&(n.splice(l,1),s.record.name&&r.delete(s.record.name),s.children.forEach(d),s.alias.forEach(d))}}function g(){return n}function i(s){let l=0;for(;l=0&&(s.record.path!==n[l].record.path||!Xe(s,n[l]));)l++;n.splice(l,0,s),s.record.name&&!Le(s)&&r.set(s.record.name,s)}function f(s,l){let a,m={},R,b;if("name"in s&&s.name){if(a=r.get(s.name),!a)throw U(1,{location:s});b=a.record.name,m=S(Me(l.params,a.keys.filter(P=>!P.optional).concat(a.parent?a.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),s.params&&Me(s.params,a.keys.map(P=>P.name))),R=a.stringify(m)}else if(s.path!=null)R=s.path,a=n.find(P=>P.re.test(R)),a&&(m=a.parse(R),b=a.record.name);else{if(a=l.name?r.get(l.name):n.find(P=>P.re.test(l.path)),!a)throw U(1,{location:s,currentLocation:l});b=a.record.name,m=S({},l.params,s.params),R=a.stringify(m)}const C=[];let E=a;for(;E;)C.unshift(E.record),E=E.parent;return{name:b,path:R,params:m,matched:C,meta:tn(C)}}return e.forEach(s=>u(s)),{addRoute:u,resolve:f,removeRoute:d,getRoutes:g,getRecordMatcher:o}}function Me(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Jt(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:en(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function en(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Le(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function tn(e){return e.reduce((t,n)=>S(t,n.meta),{})}function Ne(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Xe(e,t){return t.children.some(n=>n===e||Xe(e,n))}function nn(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;ou&&de(u)):[r&&de(r)]).forEach(u=>{u!==void 0&&(t+=(t.length?"&":"")+n,u!=null&&(t+="="+u))})}return t}function rn(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=L(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const Ze=Symbol(""),Ie=Symbol(""),ne=Symbol(""),ve=Symbol(""),me=Symbol("");function Q(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function on(e,t,n){const r=()=>{e[t].delete(n)};it(r),at(r),lt(()=>{e[t].add(n)}),e[t].add(n)}function vn(e){const t=B(Ze,{}).value;t&&on(t,"updateGuards",e)}function $(e,t,n,r,o,u=d=>d()){const d=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((g,i)=>{const f=a=>{a===!1?i(U(4,{from:n,to:t})):a instanceof Error?i(a):zt(a)?i(U(2,{from:t,to:a})):(d&&r.enterCallbacks[o]===d&&typeof a=="function"&&d.push(a),g())},s=u(()=>e.call(r&&r.instances[o],t,n,f));let l=Promise.resolve(s);e.length<3&&(l=l.then(f)),l.catch(a=>i(a))})}function he(e,t,n,r,o=u=>u()){const u=[];for(const d of e)for(const g in d.components){let i=d.components[g];if(!(t!=="beforeRouteEnter"&&!d.instances[g]))if(sn(i)){const s=(i.__vccOpts||i)[t];s&&u.push($(s,n,r,d,g,o))}else{let f=i();u.push(()=>f.then(s=>{if(!s)return Promise.reject(new Error(`Couldn't resolve component "${g}" at "${d.path}"`));const l=ft(s)?s.default:s;d.components[g]=l;const m=(l.__vccOpts||l)[t];return m&&$(m,n,r,d,g,o)()}))}}return u}function sn(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Te(e){const t=B(ne),n=B(ve),r=N(()=>{const i=W(e.to);return t.resolve(i)}),o=N(()=>{const{matched:i}=r.value,{length:f}=i,s=i[f-1],l=n.matched;if(!s||!l.length)return-1;const a=l.findIndex(z.bind(null,s));if(a>-1)return a;const m=$e(i[f-2]);return f>1&&$e(s)===m&&l[l.length-1].path!==m?l.findIndex(z.bind(null,i[f-2])):a}),u=N(()=>o.value>-1&&un(n.params,r.value.params)),d=N(()=>o.value>-1&&o.value===n.matched.length-1&&Qe(n.params,r.value.params));function g(i={}){return ln(i)?t[W(e.replace)?"replace":"push"](W(e.to)).catch(F):Promise.resolve()}return{route:r,href:N(()=>r.value.href),isActive:u,isExactActive:d,navigate:g}}const cn=Ge({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Te,setup(e,{slots:t}){const n=ot(Te(e)),{options:r}=B(ne),o=N(()=>({[Be(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Be(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&t.default(n);return e.custom?u:qe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},u)}}}),an=cn;function ln(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function un(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!L(o)||o.length!==r.length||r.some((u,d)=>u!==o[d]))return!1}return!0}function $e(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Be=(e,t,n)=>e??t??n,fn=Ge({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=B(me),o=N(()=>e.route||r.value),u=B(Ie,0),d=N(()=>{let f=W(u);const{matched:s}=o.value;let l;for(;(l=s[f])&&!l.components;)f++;return f}),g=N(()=>o.value.matched[d.value]);le(Ie,N(()=>d.value+1)),le(Ze,g),le(me,o);const i=st();return ut(()=>[i.value,g.value,e.name],([f,s,l],[a,m,R])=>{s&&(s.instances[l]=f,m&&m!==s&&f&&f===a&&(s.leaveGuards.size||(s.leaveGuards=m.leaveGuards),s.updateGuards.size||(s.updateGuards=m.updateGuards))),f&&s&&(!m||!z(s,m)||!a)&&(s.enterCallbacks[l]||[]).forEach(b=>b(f))},{flush:"post"}),()=>{const f=o.value,s=e.name,l=g.value,a=l&&l.components[s];if(!a)return He(n.default,{Component:a,route:f});const m=l.props[s],R=m?m===!0?f.params:typeof m=="function"?m(f):m:null,C=qe(a,S({},R,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(l.instances[s]=null)},ref:i}));return He(n.default,{Component:C,route:f})||C}}});function He(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const hn=fn;function yn(e){const t=Zt(e.routes,e),n=e.parseQuery||nn,r=e.stringifyQuery||je,o=e.history,u=Q(),d=Q(),g=Q(),i=nt(T);let f=T;q&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const s=ue.bind(null,c=>""+c),l=ue.bind(null,kt),a=ue.bind(null,X);function m(c,p){let h,v;return Fe(c)?(h=t.getRecordMatcher(c),v=p):v=c,t.addRoute(v,h)}function R(c){const p=t.getRecordMatcher(c);p&&t.removeRoute(p)}function b(){return t.getRoutes().map(c=>c.record)}function C(c){return!!t.getRecordMatcher(c)}function E(c,p){if(p=S({},p||i.value),typeof c=="string"){const y=fe(n,c,p.path),_=t.resolve({path:y.path},p),D=o.createHref(y.fullPath);return S(y,_,{params:a(_.params),hash:X(y.hash),redirectedFrom:void 0,href:D})}let h;if(c.path!=null)h=S({},c,{path:fe(n,c.path,p.path).path});else{const y=S({},c.params);for(const _ in y)y[_]==null&&delete y[_];h=S({},c,{params:l(y)}),p.params=l(p.params)}const v=t.resolve(h,p),k=c.hash||"";v.params=s(a(v.params));const A=At(r,S({},c,{hash:Pt(k),path:v.path})),w=o.createHref(A);return S({fullPath:A,hash:k,query:r===je?rn(c.query):c.query||{}},v,{redirectedFrom:void 0,href:w})}function P(c){return typeof c=="string"?fe(n,c,i.value.path):S({},c)}function O(c,p){if(f!==c)return U(8,{from:p,to:c})}function M(c){return K(c)}function H(c){return M(S(P(c),{replace:!0}))}function j(c){const p=c.matched[c.matched.length-1];if(p&&p.redirect){const{redirect:h}=p;let v=typeof h=="function"?h(c):h;return typeof v=="string"&&(v=v.includes("?")||v.includes("#")?v=P(v):{path:v},v.params={}),S({query:c.query,hash:c.hash,params:v.path!=null?{}:c.params},v)}}function K(c,p){const h=f=E(c),v=i.value,k=c.state,A=c.force,w=c.replace===!0,y=j(h);if(y)return K(S(P(y),{state:typeof y=="object"?S({},k,y.state):k,force:A,replace:w}),p||h);const _=h;_.redirectedFrom=p;let D;return!A&&_t(r,v,h)&&(D=U(16,{to:_,from:v}),we(v,v,!0,!1)),(D?Promise.resolve(D):ye(_,v)).catch(x=>I(x)?I(x,2)?x:ce(x):se(x,_,v)).then(x=>{if(x){if(I(x,2))return K(S({replace:w},P(x.to),{state:typeof x.to=="object"?S({},k,x.to.state):k,force:A}),p||_)}else x=Ee(_,v,!0,w,k);return Re(_,v,x),x})}function Je(c,p){const h=O(c,p);return h?Promise.reject(h):Promise.resolve()}function re(c){const p=ee.values().next().value;return p&&typeof p.runWithContext=="function"?p.runWithContext(c):c()}function ye(c,p){let h;const[v,k,A]=dn(c,p);h=he(v.reverse(),"beforeRouteLeave",c,p);for(const y of v)y.leaveGuards.forEach(_=>{h.push($(_,c,p))});const w=Je.bind(null,c,p);return h.push(w),G(h).then(()=>{h=[];for(const y of u.list())h.push($(y,c,p));return h.push(w),G(h)}).then(()=>{h=he(k,"beforeRouteUpdate",c,p);for(const y of k)y.updateGuards.forEach(_=>{h.push($(_,c,p))});return h.push(w),G(h)}).then(()=>{h=[];for(const y of A)if(y.beforeEnter)if(L(y.beforeEnter))for(const _ of y.beforeEnter)h.push($(_,c,p));else h.push($(y.beforeEnter,c,p));return h.push(w),G(h)}).then(()=>(c.matched.forEach(y=>y.enterCallbacks={}),h=he(A,"beforeRouteEnter",c,p,re),h.push(w),G(h))).then(()=>{h=[];for(const y of d.list())h.push($(y,c,p));return h.push(w),G(h)}).catch(y=>I(y,8)?y:Promise.reject(y))}function Re(c,p,h){g.list().forEach(v=>re(()=>v(c,p,h)))}function Ee(c,p,h,v,k){const A=O(c,p);if(A)return A;const w=p===T,y=q?history.state:{};h&&(v||w?o.replace(c.fullPath,S({scroll:w&&y&&y.scroll},k)):o.push(c.fullPath,k)),i.value=c,we(c,p,h,w),ce()}let V;function et(){V||(V=o.listen((c,p,h)=>{if(!Se.listening)return;const v=E(c),k=j(v);if(k){K(S(k,{replace:!0}),v).catch(F);return}f=v;const A=i.value;q&&Tt(be(A.fullPath,h.delta),te()),ye(v,A).catch(w=>I(w,12)?w:I(w,2)?(K(w.to,v).then(y=>{I(y,20)&&!h.delta&&h.type===Z.pop&&o.go(-1,!1)}).catch(F),Promise.reject()):(h.delta&&o.go(-h.delta,!1),se(w,v,A))).then(w=>{w=w||Ee(v,A,!1),w&&(h.delta&&!I(w,8)?o.go(-h.delta,!1):h.type===Z.pop&&I(w,20)&&o.go(-1,!1)),Re(v,A,w)}).catch(F)}))}let oe=Q(),Pe=Q(),J;function se(c,p,h){ce(c);const v=Pe.list();return v.length?v.forEach(k=>k(c,p,h)):console.error(c),Promise.reject(c)}function tt(){return J&&i.value!==T?Promise.resolve():new Promise((c,p)=>{oe.add([c,p])})}function ce(c){return J||(J=!c,et(),oe.list().forEach(([p,h])=>c?h(c):p()),oe.reset()),c}function we(c,p,h,v){const{scrollBehavior:k}=e;if(!q||!k)return Promise.resolve();const A=!h&&$t(be(c.fullPath,0))||(v||!h)&&history.state&&history.state.scroll||null;return ct().then(()=>k(c,p,A)).then(w=>w&&It(w)).catch(w=>se(w,c,p))}const ie=c=>o.go(c);let ae;const ee=new Set,Se={currentRoute:i,listening:!0,addRoute:m,removeRoute:R,hasRoute:C,getRoutes:b,resolve:E,options:e,push:M,replace:H,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:u.add,beforeResolve:d.add,afterEach:g.add,onError:Pe.add,isReady:tt,install(c){const p=this;c.component("RouterLink",an),c.component("RouterView",hn),c.config.globalProperties.$router=p,Object.defineProperty(c.config.globalProperties,"$route",{enumerable:!0,get:()=>W(i)}),q&&!ae&&i.value===T&&(ae=!0,M(o.location).catch(k=>{}));const h={};for(const k in T)Object.defineProperty(h,k,{get:()=>i.value[k],enumerable:!0});c.provide(ne,p),c.provide(ve,rt(h)),c.provide(me,i);const v=c.unmount;ee.add(c),c.unmount=function(){ee.delete(c),ee.size<1&&(f=T,V&&V(),V=null,i.value=T,ae=!1,J=!1),v()}}};function G(c){return c.reduce((p,h)=>p.then(()=>re(h)),Promise.resolve())}return Se}function dn(e,t){const n=[],r=[],o=[],u=Math.max(t.matched.length,e.matched.length);for(let d=0;dz(f,g))?r.push(g):n.push(g));const i=e.matched[d];i&&(t.matched.find(f=>z(f,i))||o.push(i))}return[n,r,o]}function Rn(){return B(ne)}function En(){return B(ve)}export{hn as R,En as a,gn as b,yn as c,vn as o,Rn as u}; + */const q=typeof document<"u";function ft(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const S=Object.assign;function ue(e,t){const n={};for(const r in t){const o=t[r];n[r]=L(o)?o.map(e):e(o)}return n}const F=()=>{},L=Array.isArray,ze=/#/g,ht=/&/g,dt=/\//g,pt=/=/g,mt=/\?/g,Ue=/\+/g,gt=/%5B/g,vt=/%5D/g,Ke=/%5E/g,yt=/%60/g,Ve=/%7B/g,Rt=/%7C/g,De=/%7D/g,Et=/%20/g;function ge(e){return encodeURI(""+e).replace(Rt,"|").replace(gt,"[").replace(vt,"]")}function Pt(e){return ge(e).replace(Ve,"{").replace(De,"}").replace(Ke,"^")}function de(e){return ge(e).replace(Ue,"%2B").replace(Et,"+").replace(ze,"%23").replace(ht,"%26").replace(yt,"`").replace(Ve,"{").replace(De,"}").replace(Ke,"^")}function wt(e){return de(e).replace(pt,"%3D")}function St(e){return ge(e).replace(ze,"%23").replace(mt,"%3F")}function kt(e){return e==null?"":St(e).replace(dt,"%2F")}function X(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Ct=/\/$/,bt=e=>e.replace(Ct,"");function fe(e,t,n="/"){let r,o={},u="",d="";const g=t.indexOf("#");let i=t.indexOf("?");return g=0&&(i=-1),i>-1&&(r=t.slice(0,i),u=t.slice(i+1,g>-1?g:t.length),o=e(u)),g>-1&&(r=r||t.slice(0,g),d=t.slice(g,t.length)),r=xt(r??t,n),{fullPath:r+(u&&"?")+u+d,path:r,query:o,hash:X(d)}}function At(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ke(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function _t(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&z(t.matched[r],n.matched[o])&&Qe(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function z(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Qe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ot(e[n],t[n]))return!1;return!0}function Ot(e,t){return L(e)?Ce(e,t):L(t)?Ce(t,e):e===t}function Ce(e,t){return L(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function xt(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let u=n.length-1,d,g;for(d=0;d1&&u--;else break;return n.slice(0,u).join("/")+"/"+r.slice(d).join("/")}var Z;(function(e){e.pop="pop",e.push="push"})(Z||(Z={}));var Y;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Y||(Y={}));function Mt(e){if(!e)if(q){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),bt(e)}const Lt=/^[^#]+#/;function Nt(e,t){return e.replace(Lt,"#")+t}function It(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const te=()=>({left:window.scrollX,top:window.scrollY});function Tt(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=It(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function be(e,t){return(history.state?history.state.position-t:-1)+e}const pe=new Map;function $t(e,t){pe.set(e,t)}function jt(e){const t=pe.get(e);return pe.delete(e),t}let Bt=()=>location.protocol+"//"+location.host;function We(e,t){const{pathname:n,search:r,hash:o}=t,u=e.indexOf("#");if(u>-1){let g=o.includes(e.slice(u))?e.slice(u).length:1,i=o.slice(g);return i[0]!=="/"&&(i="/"+i),ke(i,"")}return ke(n,e)+r+o}function Ht(e,t,n,r){let o=[],u=[],d=null;const g=({state:a})=>{const m=We(e,location),R=n.value,b=t.value;let C=0;if(a){if(n.value=m,t.value=a,d&&d===R){d=null;return}C=b?a.position-b.position:0}else r(m);o.forEach(E=>{E(n.value,R,{delta:C,type:Z.pop,direction:C?C>0?Y.forward:Y.back:Y.unknown})})};function i(){d=n.value}function f(a){o.push(a);const m=()=>{const R=o.indexOf(a);R>-1&&o.splice(R,1)};return u.push(m),m}function s(){const{history:a}=window;a.state&&a.replaceState(S({},a.state,{scroll:te()}),"")}function l(){for(const a of u)a();u=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",s)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:i,listen:f,destroy:l}}function Ae(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?te():null}}function Gt(e){const{history:t,location:n}=window,r={value:We(e,n)},o={value:t.state};o.value||u(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function u(i,f,s){const l=e.indexOf("#"),a=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+i:Bt()+e+i;try{t[s?"replaceState":"pushState"](f,"",a),o.value=f}catch(m){console.error(m),n[s?"replace":"assign"](a)}}function d(i,f){const s=S({},t.state,Ae(o.value.back,i,o.value.forward,!0),f,{position:o.value.position});u(i,s,!0),r.value=i}function g(i,f){const s=S({},o.value,t.state,{forward:i,scroll:te()});u(s.current,s,!0);const l=S({},Ae(r.value,i,null),{position:s.position+1},f);u(i,l,!1),r.value=i}return{location:r,state:o,push:g,replace:d}}function qt(e){e=Mt(e);const t=Gt(e),n=Ht(e,t.state,t.location,t.replace);function r(u,d=!0){d||n.pauseListeners(),history.go(u)}const o=S({location:"",base:e,go:r,createHref:Nt.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function gn(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),qt(e)}function zt(e){return typeof e=="string"||e&&typeof e=="object"}function Fe(e){return typeof e=="string"||typeof e=="symbol"}const $={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Ye=Symbol("");var _e;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(_e||(_e={}));function U(e,t){return S(new Error,{type:e,[Ye]:!0},t)}function T(e,t){return e instanceof Error&&Ye in e&&(t==null||!!(e.type&t))}const Oe="[^/]+?",Ut={sensitive:!1,strict:!1,start:!0,end:!0},Kt=/[.+*?^${}()[\]/\\]/g;function Vt(e,t){const n=S({},Ut,t),r=[];let o=n.start?"^":"";const u=[];for(const f of e){const s=f.length?[]:[90];n.strict&&!f.length&&(o+="/");for(let l=0;lt.length?t.length===1&&t[0]===80?1:-1:0}function Qt(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const Wt={type:0,value:""},Ft=/[a-zA-Z0-9_]/;function Yt(e){if(!e)return[[]];if(e==="/")return[[Wt]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${f}": ${m}`)}let n=0,r=n;const o=[];let u;function d(){u&&o.push(u),u=[]}let g=0,i,f="",s="";function l(){f&&(n===0?u.push({type:0,value:f}):n===1||n===2||n===3?(u.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:f,regexp:s,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),f="")}function a(){f+=i}for(;g{d(P)}:F}function d(s){if(Fe(s)){const l=r.get(s);l&&(r.delete(s),n.splice(n.indexOf(l),1),l.children.forEach(d),l.alias.forEach(d))}else{const l=n.indexOf(s);l>-1&&(n.splice(l,1),s.record.name&&r.delete(s.record.name),s.children.forEach(d),s.alias.forEach(d))}}function g(){return n}function i(s){let l=0;for(;l=0&&(s.record.path!==n[l].record.path||!Xe(s,n[l]));)l++;n.splice(l,0,s),s.record.name&&!Le(s)&&r.set(s.record.name,s)}function f(s,l){let a,m={},R,b;if("name"in s&&s.name){if(a=r.get(s.name),!a)throw U(1,{location:s});b=a.record.name,m=S(Me(l.params,a.keys.filter(P=>!P.optional).concat(a.parent?a.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),s.params&&Me(s.params,a.keys.map(P=>P.name))),R=a.stringify(m)}else if(s.path!=null)R=s.path,a=n.find(P=>P.re.test(R)),a&&(m=a.parse(R),b=a.record.name);else{if(a=l.name?r.get(l.name):n.find(P=>P.re.test(l.path)),!a)throw U(1,{location:s,currentLocation:l});b=a.record.name,m=S({},l.params,s.params),R=a.stringify(m)}const C=[];let E=a;for(;E;)C.unshift(E.record),E=E.parent;return{name:b,path:R,params:m,matched:C,meta:tn(C)}}return e.forEach(s=>u(s)),{addRoute:u,resolve:f,removeRoute:d,getRoutes:g,getRecordMatcher:o}}function Me(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Jt(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:en(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function en(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Le(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function tn(e){return e.reduce((t,n)=>S(t,n.meta),{})}function Ne(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Xe(e,t){return t.children.some(n=>n===e||Xe(e,n))}function nn(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;ou&&de(u)):[r&&de(r)]).forEach(u=>{u!==void 0&&(t+=(t.length?"&":"")+n,u!=null&&(t+="="+u))})}return t}function rn(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=L(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const Ze=Symbol(""),Te=Symbol(""),ne=Symbol(""),ve=Symbol(""),me=Symbol("");function Q(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function on(e,t,n){const r=()=>{e[t].delete(n)};it(r),at(r),lt(()=>{e[t].add(n)}),e[t].add(n)}function vn(e){const t=B(Ze,{}).value;t&&on(t,"updateGuards",e)}function j(e,t,n,r,o,u=d=>d()){const d=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((g,i)=>{const f=a=>{a===!1?i(U(4,{from:n,to:t})):a instanceof Error?i(a):zt(a)?i(U(2,{from:t,to:a})):(d&&r.enterCallbacks[o]===d&&typeof a=="function"&&d.push(a),g())},s=u(()=>e.call(r&&r.instances[o],t,n,f));let l=Promise.resolve(s);e.length<3&&(l=l.then(f)),l.catch(a=>i(a))})}function he(e,t,n,r,o=u=>u()){const u=[];for(const d of e)for(const g in d.components){let i=d.components[g];if(!(t!=="beforeRouteEnter"&&!d.instances[g]))if(sn(i)){const s=(i.__vccOpts||i)[t];s&&u.push(j(s,n,r,d,g,o))}else{let f=i();u.push(()=>f.then(s=>{if(!s)return Promise.reject(new Error(`Couldn't resolve component "${g}" at "${d.path}"`));const l=ft(s)?s.default:s;d.components[g]=l;const m=(l.__vccOpts||l)[t];return m&&j(m,n,r,d,g,o)()}))}}return u}function sn(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $e(e){const t=B(ne),n=B(ve),r=N(()=>{const i=W(e.to);return t.resolve(i)}),o=N(()=>{const{matched:i}=r.value,{length:f}=i,s=i[f-1],l=n.matched;if(!s||!l.length)return-1;const a=l.findIndex(z.bind(null,s));if(a>-1)return a;const m=je(i[f-2]);return f>1&&je(s)===m&&l[l.length-1].path!==m?l.findIndex(z.bind(null,i[f-2])):a}),u=N(()=>o.value>-1&&un(n.params,r.value.params)),d=N(()=>o.value>-1&&o.value===n.matched.length-1&&Qe(n.params,r.value.params));function g(i={}){return ln(i)?t[W(e.replace)?"replace":"push"](W(e.to)).catch(F):Promise.resolve()}return{route:r,href:N(()=>r.value.href),isActive:u,isExactActive:d,navigate:g}}const cn=Ge({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:$e,setup(e,{slots:t}){const n=ot($e(e)),{options:r}=B(ne),o=N(()=>({[Be(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Be(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&t.default(n);return e.custom?u:qe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},u)}}}),an=cn;function ln(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function un(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!L(o)||o.length!==r.length||r.some((u,d)=>u!==o[d]))return!1}return!0}function je(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Be=(e,t,n)=>e??t??n,fn=Ge({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=B(me),o=N(()=>e.route||r.value),u=B(Te,0),d=N(()=>{let f=W(u);const{matched:s}=o.value;let l;for(;(l=s[f])&&!l.components;)f++;return f}),g=N(()=>o.value.matched[d.value]);le(Te,N(()=>d.value+1)),le(Ze,g),le(me,o);const i=st();return ut(()=>[i.value,g.value,e.name],([f,s,l],[a,m,R])=>{s&&(s.instances[l]=f,m&&m!==s&&f&&f===a&&(s.leaveGuards.size||(s.leaveGuards=m.leaveGuards),s.updateGuards.size||(s.updateGuards=m.updateGuards))),f&&s&&(!m||!z(s,m)||!a)&&(s.enterCallbacks[l]||[]).forEach(b=>b(f))},{flush:"post"}),()=>{const f=o.value,s=e.name,l=g.value,a=l&&l.components[s];if(!a)return He(n.default,{Component:a,route:f});const m=l.props[s],R=m?m===!0?f.params:typeof m=="function"?m(f):m:null,C=qe(a,S({},R,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(l.instances[s]=null)},ref:i}));return He(n.default,{Component:C,route:f})||C}}});function He(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const hn=fn;function yn(e){const t=Zt(e.routes,e),n=e.parseQuery||nn,r=e.stringifyQuery||Ie,o=e.history,u=Q(),d=Q(),g=Q(),i=nt($);let f=$;q&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const s=ue.bind(null,c=>""+c),l=ue.bind(null,kt),a=ue.bind(null,X);function m(c,p){let h,v;return Fe(c)?(h=t.getRecordMatcher(c),v=p):v=c,t.addRoute(v,h)}function R(c){const p=t.getRecordMatcher(c);p&&t.removeRoute(p)}function b(){return t.getRoutes().map(c=>c.record)}function C(c){return!!t.getRecordMatcher(c)}function E(c,p){if(p=S({},p||i.value),typeof c=="string"){const y=fe(n,c,p.path),_=t.resolve({path:y.path},p),D=o.createHref(y.fullPath);return S(y,_,{params:a(_.params),hash:X(y.hash),redirectedFrom:void 0,href:D})}let h;if(c.path!=null)h=S({},c,{path:fe(n,c.path,p.path).path});else{const y=S({},c.params);for(const _ in y)y[_]==null&&delete y[_];h=S({},c,{params:l(y)}),p.params=l(p.params)}const v=t.resolve(h,p),k=c.hash||"";v.params=s(a(v.params));const A=At(r,S({},c,{hash:Pt(k),path:v.path})),w=o.createHref(A);return S({fullPath:A,hash:k,query:r===Ie?rn(c.query):c.query||{}},v,{redirectedFrom:void 0,href:w})}function P(c){return typeof c=="string"?fe(n,c,i.value.path):S({},c)}function O(c,p){if(f!==c)return U(8,{from:p,to:c})}function M(c){return K(c)}function H(c){return M(S(P(c),{replace:!0}))}function I(c){const p=c.matched[c.matched.length-1];if(p&&p.redirect){const{redirect:h}=p;let v=typeof h=="function"?h(c):h;return typeof v=="string"&&(v=v.includes("?")||v.includes("#")?v=P(v):{path:v},v.params={}),S({query:c.query,hash:c.hash,params:v.path!=null?{}:c.params},v)}}function K(c,p){const h=f=E(c),v=i.value,k=c.state,A=c.force,w=c.replace===!0,y=I(h);if(y)return K(S(P(y),{state:typeof y=="object"?S({},k,y.state):k,force:A,replace:w}),p||h);const _=h;_.redirectedFrom=p;let D;return!A&&_t(r,v,h)&&(D=U(16,{to:_,from:v}),we(v,v,!0,!1)),(D?Promise.resolve(D):ye(_,v)).catch(x=>T(x)?T(x,2)?x:ce(x):se(x,_,v)).then(x=>{if(x){if(T(x,2))return K(S({replace:w},P(x.to),{state:typeof x.to=="object"?S({},k,x.to.state):k,force:A}),p||_)}else x=Ee(_,v,!0,w,k);return Re(_,v,x),x})}function Je(c,p){const h=O(c,p);return h?Promise.reject(h):Promise.resolve()}function re(c){const p=ee.values().next().value;return p&&typeof p.runWithContext=="function"?p.runWithContext(c):c()}function ye(c,p){let h;const[v,k,A]=dn(c,p);h=he(v.reverse(),"beforeRouteLeave",c,p);for(const y of v)y.leaveGuards.forEach(_=>{h.push(j(_,c,p))});const w=Je.bind(null,c,p);return h.push(w),G(h).then(()=>{h=[];for(const y of u.list())h.push(j(y,c,p));return h.push(w),G(h)}).then(()=>{h=he(k,"beforeRouteUpdate",c,p);for(const y of k)y.updateGuards.forEach(_=>{h.push(j(_,c,p))});return h.push(w),G(h)}).then(()=>{h=[];for(const y of A)if(y.beforeEnter)if(L(y.beforeEnter))for(const _ of y.beforeEnter)h.push(j(_,c,p));else h.push(j(y.beforeEnter,c,p));return h.push(w),G(h)}).then(()=>(c.matched.forEach(y=>y.enterCallbacks={}),h=he(A,"beforeRouteEnter",c,p,re),h.push(w),G(h))).then(()=>{h=[];for(const y of d.list())h.push(j(y,c,p));return h.push(w),G(h)}).catch(y=>T(y,8)?y:Promise.reject(y))}function Re(c,p,h){g.list().forEach(v=>re(()=>v(c,p,h)))}function Ee(c,p,h,v,k){const A=O(c,p);if(A)return A;const w=p===$,y=q?history.state:{};h&&(v||w?o.replace(c.fullPath,S({scroll:w&&y&&y.scroll},k)):o.push(c.fullPath,k)),i.value=c,we(c,p,h,w),ce()}let V;function et(){V||(V=o.listen((c,p,h)=>{if(!Se.listening)return;const v=E(c),k=I(v);if(k){K(S(k,{replace:!0}),v).catch(F);return}f=v;const A=i.value;q&&$t(be(A.fullPath,h.delta),te()),ye(v,A).catch(w=>T(w,12)?w:T(w,2)?(K(w.to,v).then(y=>{T(y,20)&&!h.delta&&h.type===Z.pop&&o.go(-1,!1)}).catch(F),Promise.reject()):(h.delta&&o.go(-h.delta,!1),se(w,v,A))).then(w=>{w=w||Ee(v,A,!1),w&&(h.delta&&!T(w,8)?o.go(-h.delta,!1):h.type===Z.pop&&T(w,20)&&o.go(-1,!1)),Re(v,A,w)}).catch(F)}))}let oe=Q(),Pe=Q(),J;function se(c,p,h){ce(c);const v=Pe.list();return v.length?v.forEach(k=>k(c,p,h)):console.error(c),Promise.reject(c)}function tt(){return J&&i.value!==$?Promise.resolve():new Promise((c,p)=>{oe.add([c,p])})}function ce(c){return J||(J=!c,et(),oe.list().forEach(([p,h])=>c?h(c):p()),oe.reset()),c}function we(c,p,h,v){const{scrollBehavior:k}=e;if(!q||!k)return Promise.resolve();const A=!h&&jt(be(c.fullPath,0))||(v||!h)&&history.state&&history.state.scroll||null;return ct().then(()=>k(c,p,A)).then(w=>w&&Tt(w)).catch(w=>se(w,c,p))}const ie=c=>o.go(c);let ae;const ee=new Set,Se={currentRoute:i,listening:!0,addRoute:m,removeRoute:R,hasRoute:C,getRoutes:b,resolve:E,options:e,push:M,replace:H,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:u.add,beforeResolve:d.add,afterEach:g.add,onError:Pe.add,isReady:tt,install(c){const p=this;c.component("RouterLink",an),c.component("RouterView",hn),c.config.globalProperties.$router=p,Object.defineProperty(c.config.globalProperties,"$route",{enumerable:!0,get:()=>W(i)}),q&&!ae&&i.value===$&&(ae=!0,M(o.location).catch(k=>{}));const h={};for(const k in $)Object.defineProperty(h,k,{get:()=>i.value[k],enumerable:!0});c.provide(ne,p),c.provide(ve,rt(h)),c.provide(me,i);const v=c.unmount;ee.add(c),c.unmount=function(){ee.delete(c),ee.size<1&&(f=$,V&&V(),V=null,i.value=$,ae=!1,J=!1),v()}}};function G(c){return c.reduce((p,h)=>p.then(()=>re(h)),Promise.resolve())}return Se}function dn(e,t){const n=[],r=[],o=[],u=Math.max(t.matched.length,e.matched.length);for(let d=0;dz(f,g))?r.push(g):n.push(g));const i=e.matched[d];i&&(t.matched.find(f=>z(f,i))||o.push(i))}return[n,r,o]}function Rn(){return B(ne)}function En(){return B(ve)}export{hn as R,En as a,gn as b,yn as c,vn as o,Rn as u}; diff --git a/js/vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js.gz b/js/vue-router@4.3.2_vue@3.5.12-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-Brd4YmBy.js.gz differ diff --git a/js/vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js.gz b/js/vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js.gz deleted file mode 100644 index a2a2a586..00000000 Binary files a/js/vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js.gz and /dev/null differ diff --git a/js/vue3-next-qrcode@2.0.10_typescript@5.2.2-BJQJW2Mf.js.gz b/js/vue3-next-qrcode@2.0.10_typescript@5.2.2-BJQJW2Mf.js.gz deleted file mode 100644 index 4e07b7d5..00000000 Binary files a/js/vue3-next-qrcode@2.0.10_typescript@5.2.2-BJQJW2Mf.js.gz and /dev/null differ diff --git a/js/vue3-next-qrcode@2.0.10_typescript@5.2.2-BJQJW2Mf.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.2.2-BJQJW2Mf.js rename to js/vue3-next-qrcode@2.0.10_typescript@5.6.3-et2AKeWS.js index 3a634e28..eecbfb44 100644 --- a/js/vue3-next-qrcode@2.0.10_typescript@5.2.2-BJQJW2Mf.js +++ b/js/vue3-next-qrcode@2.0.10_typescript@5.6.3-et2AKeWS.js @@ -1 +1 @@ -import{l as be,j as ye,f as Ce,k as Ae,v as Pe,b as ot,m as Be,w as De}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.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}; +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.12_typescript@5.2.2-l0sNRNKZ.js b/js/vue@3.5.12_typescript@5.6.3-l0sNRNKZ.js similarity index 100% rename from js/vue@3.5.12_typescript@5.2.2-l0sNRNKZ.js rename to js/vue@3.5.12_typescript@5.6.3-l0sNRNKZ.js diff --git a/js/vue@3.5.12_typescript@5.6.3-l0sNRNKZ.js.gz b/js/vue@3.5.12_typescript@5.6.3-l0sNRNKZ.js.gz new file mode 100644 index 00000000..7bb6dce8 Binary files /dev/null and b/js/vue@3.5.12_typescript@5.6.3-l0sNRNKZ.js.gz differ diff --git a/js/vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js b/js/vueuc@0.4.64_vue@3.5.12-CjNIvAko.js similarity index 98% rename from js/vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js rename to js/vueuc@0.4.64_vue@3.5.12-CjNIvAko.js index f26c9459..a05f137c 100644 --- a/js/vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js +++ b/js/vueuc@0.4.64_vue@3.5.12-CjNIvAko.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,j 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-Ds-HrVrM.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-CJ-8xq3W.js";import{h as Ge,u as q,o as Je,i as Qe}from"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import{z as Ze}from"./vdirs@0.1.8_vue@3.5.12-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-BZYDXyJG.js";import{h as Ge,u as q,o as Je,i as Qe}from"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import{z as Ze}from"./vdirs@0.1.8_vue@3.5.12-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-CjNIvAko.js.gz b/js/vueuc@0.4.64_vue@3.5.12-CjNIvAko.js.gz new file mode 100644 index 00000000..d65e04b3 Binary files /dev/null and b/js/vueuc@0.4.64_vue@3.5.12-CjNIvAko.js.gz differ diff --git a/js/vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js.gz b/js/vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js.gz deleted file mode 100644 index 1ddca615..00000000 Binary files a/js/vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js.gz and /dev/null differ diff --git a/js/zh-CN-B5CyUpxI.js b/js/zh-CN-B5CyUpxI.js deleted file mode 100644 index 340849ad..00000000 --- a/js/zh-CN-B5CyUpxI.js +++ /dev/null @@ -1 +0,0 @@ -import{y as Z}from"./hooks-DNoo5Jj5.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-C6aYKqdf.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"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./@vue_runtime-core@3.5.12-Ds-HrVrM.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-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-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-ewSD1rNh.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-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-DewQlJ2W.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_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.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.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";const o="当前环境不支持全屏",oo={isEnabledFullscreen:o},eo=Object.freeze(Object.defineProperty({__proto__:null,default:oo,isEnabledFullscreen:o},Symbol.toStringTag,{value:"Module"})),e="项目配置",t={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},n="界面显示",i="动画效果",to={Title:e,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:i},no=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:i,InterfaceDisplay:n,ThemeOptions:t,Title:e,default:to},Symbol.toStringTag,{value:"Module"})),r="刷新当前页面",c="锁屏",s="设置",l="Github",a="全屏",m="退出全屏",p="搜索",io={Reload:r,Lock:c,Setting:s,Github:l,FullScreen:a,CancelFullScreen:m,Search:p},ro=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:m,FullScreen:a,Github:l,Lock:c,Reload:r,Search:p,Setting:s,default:io},Symbol.toStringTag,{value:"Module"})),_="请求",d="条形码",g="缓存工具函数",u="数字精度",f="右键菜单",b="首页",h="指令",S="文档",T="文档 (加速地址)",O="文档(内嵌)",y="可视化",C="表单",D="Mock 数据",P="模态框",M="多级菜单(缓存)",j="办公",v="文档",R="演示",z="表格",N="二维码",I="依赖项",L="关于",k="页面详情模式",F="分段器",x="SVG 图标",w="表格",A="模板内置 Api",E="滚动动画",G="高级表格",co={Axios:_,Barcode:d,CacheDemo:g,CalculatePrecision:u,ContextMenu:f,Dashboard:b,Directive:h,Doc:S,DocLocal:T,DocLocalInside:O,Echart:y,Error:"错误页",Form:C,Mock:D,Modal:P,MultiMenu:M,Office:j,Office_Document:v,Office_Presentation:R,Office_Spreadsheet:z,QRCode:N,Rely:I,RelyAbout:L,RouterDemo:k,Segment:F,SvgIcon:x,Table:w,TemplateHooks:A,scrollReveal:E,TablePro:G},so=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:y,Form:C,Mock:D,Modal:P,MultiMenu:M,Office:j,Office_Document:v,Office_Presentation:R,Office_Spreadsheet:z,QRCode:N,Rely:I,RelyAbout:L,RouterDemo:k,Segment:F,SvgIcon:x,Table:w,TablePro:G,TemplateHooks:A,default:co,scrollReveal:E},Symbol.toStringTag,{value:"Module"})),Q="项目配置",$={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},B="界面显示",lo={Title:Q,ThemeOptions:$,InterfaceDisplay:B},ao=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:B,ThemeOptions:$,Title:Q,default:lo},Symbol.toStringTag,{value:"Module"})),H="注册",V="登录",q="扫码登陆",J="请输入用户名",K="请输入密码",U="登 陆",W="用户名",X="密码",Y="开箱即用的中后台管理系统",mo={Register:H,Signing:V,QRCodeSigning:q,NamePlaceholder:J,PasswordPlaceholder:K,Login:U,Name:W,Password:X,RayTemplate:Y},po=Object.freeze(Object.defineProperty({__proto__:null,Login:U,Name:W,NamePlaceholder:J,Password:X,PasswordPlaceholder:K,QRCodeSigning:q,RayTemplate:Y,Register:H,Signing:V,default:mo},Symbol.toStringTag,{value:"Module"})),_o=Object.assign({"./zh-CN/globalMessage.json":eo,"./zh-CN/headerSettingOptions.json":no,"./zh-CN/headerTooltip.json":ro,"./zh-CN/menu.json":so,"./zh-CN/setting.json":ao,"./zh-CN/views/login/index.json":po}),le={message:{...Z(_o,"zh-CN")}};export{le as default}; diff --git a/js/zh-CN-B5CyUpxI.js.gz b/js/zh-CN-B5CyUpxI.js.gz deleted file mode 100644 index 4563ce30..00000000 Binary files a/js/zh-CN-B5CyUpxI.js.gz and /dev/null differ diff --git a/js/zh-CN-BB2toPf1.js b/js/zh-CN-BB2toPf1.js new file mode 100644 index 00000000..6a30b4f2 --- /dev/null +++ b/js/zh-CN-BB2toPf1.js @@ -0,0 +1 @@ +import{y as oo}from"./hooks-AGBWEt_R.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--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-i2yA9The.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-CjNIvAko.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js";import"./vooks@0.2.12_vue@3.5.12--iLh4DJ5.js";import"./vdirs@0.1.8_vue@3.5.12-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-DNt1HURo.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-DnrABUGp.js";import"./utils-DweTa4yD.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_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-DK9mYMr0.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import"./vue-i18n@9.13.1_vue@3.5.12-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="文档(内嵌)",y="可视化",C="表单",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:y,Error:"错误页",Form:C,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:y,Flow:Q,Form:C,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-BB2toPf1.js.gz b/js/zh-CN-BB2toPf1.js.gz new file mode 100644 index 00000000..1a49b37e Binary files /dev/null and b/js/zh-CN-BB2toPf1.js.gz differ diff --git a/js/zrender@5.5.0-DW8ownf1.js.gz b/js/zrender@5.5.0-DW8ownf1.js.gz index 8e5f5fd2..7c238be6 100644 Binary files a/js/zrender@5.5.0-DW8ownf1.js.gz and b/js/zrender@5.5.0-DW8ownf1.js.gz differ diff --git a/mockServer/index.js.gz b/mockServer/index.js.gz new file mode 100644 index 00000000..03ae6a64 Binary files /dev/null and b/mockServer/index.js.gz differ diff --git a/mockServer/mock-data.js b/mockServer/mock-data.js index f2a3d60a..4294263f 100644 --- a/mockServer/mock-data.js +++ b/mockServer/mock-data.js @@ -4,7 +4,7 @@ var __export = (target, all) => { __defProp(target, name, { get: all[name], enumerable: true }); }; -// mock-data-1730019794583.js +// mock-data-1731135612614.js import { transformMockData } from "vite-plugin-mock-dev-server"; // mock/demo/person.mock.ts @@ -85,7 +85,7 @@ var getPersonList = defineMock({ } }); -// mock-data-1730019794583.js +// mock-data-1731135612614.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_1730019794583_default = transformMockData(mockList); +var mock_data_1731135612614_default = transformMockData(mockList); export { - mock_data_1730019794583_default as default + mock_data_1731135612614_default as default }; diff --git a/mockServer/mock-data.js.gz b/mockServer/mock-data.js.gz index 99ff2921..d15a40fa 100644 Binary files a/mockServer/mock-data.js.gz and b/mockServer/mock-data.js.gz differ diff --git a/mockServer/package.json.gz b/mockServer/package.json.gz new file mode 100644 index 00000000..ce758a30 Binary files /dev/null and b/mockServer/package.json.gz differ diff --git a/svg/export_excel-Re1cVpta.svg.gz b/svg/export_excel-Re1cVpta.svg.gz new file mode 100644 index 00000000..6e73f29b Binary files /dev/null and b/svg/export_excel-Re1cVpta.svg.gz differ diff --git a/svg/login_bg-CH0AhDTq.svg.gz b/svg/login_bg-CH0AhDTq.svg.gz new file mode 100644 index 00000000..a1f6790a Binary files /dev/null and b/svg/login_bg-CH0AhDTq.svg.gz differ diff --git a/svg/ray-BrETrDeA.svg.gz b/svg/ray-BrETrDeA.svg.gz new file mode 100644 index 00000000..b694751a Binary files /dev/null and b/svg/ray-BrETrDeA.svg.gz differ