diff --git a/javascript/index.js b/javascript/index.js index d8cf44a..eba8f26 100644 --- a/javascript/index.js +++ b/javascript/index.js @@ -12,7 +12,7 @@ Promise.resolve().then(async () => { Infinite Image Browsing - + diff --git a/vue/dist/assets/FileItem-b09f7869.css b/vue/dist/assets/FileItem-5f98ff36.css similarity index 97% rename from vue/dist/assets/FileItem-b09f7869.css rename to vue/dist/assets/FileItem-5f98ff36.css index fd1783b..54c2811 100644 --- a/vue/dist/assets/FileItem-b09f7869.css +++ b/vue/dist/assets/FileItem-5f98ff36.css @@ -1 +1 @@ -.ant-dropdown-menu-item.ant-dropdown-menu-item-danger{color:#ff4d4f}.ant-dropdown-menu-item.ant-dropdown-menu-item-danger:hover{color:#fff;background-color:#ff4d4f}.ant-dropdown{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:absolute;top:-9999px;left:-9999px;z-index:1050;display:block}.ant-dropdown:before{position:absolute;top:-4px;right:0;bottom:-4px;left:-7px;z-index:-9999;opacity:.0001;content:" "}.ant-dropdown-wrap{position:relative}.ant-dropdown-wrap .ant-btn>.anticon-down{font-size:10px}.ant-dropdown-wrap .anticon-down:before{transition:transform .2s}.ant-dropdown-wrap-open .anticon-down:before{transform:rotate(180deg)}.ant-dropdown-hidden,.ant-dropdown-menu-hidden,.ant-dropdown-menu-submenu-hidden{display:none}.ant-dropdown-show-arrow.ant-dropdown-placement-topCenter,.ant-dropdown-show-arrow.ant-dropdown-placement-topLeft,.ant-dropdown-show-arrow.ant-dropdown-placement-topRight{padding-bottom:10px}.ant-dropdown-show-arrow.ant-dropdown-placement-bottomCenter,.ant-dropdown-show-arrow.ant-dropdown-placement-bottomLeft,.ant-dropdown-show-arrow.ant-dropdown-placement-bottomRight{padding-top:10px}.ant-dropdown-arrow{position:absolute;z-index:1;display:block;width:8.48528137px;height:8.48528137px;background:transparent;border-style:solid;border-width:4.24264069px;transform:rotate(45deg)}.ant-dropdown-placement-topCenter>.ant-dropdown-arrow,.ant-dropdown-placement-topLeft>.ant-dropdown-arrow,.ant-dropdown-placement-topRight>.ant-dropdown-arrow{bottom:6.2px;border-color:transparent #fff #fff transparent;box-shadow:3px 3px 7px #00000012}.ant-dropdown-placement-topCenter>.ant-dropdown-arrow{left:50%;transform:translate(-50%) rotate(45deg)}.ant-dropdown-placement-topLeft>.ant-dropdown-arrow{left:16px}.ant-dropdown-placement-topRight>.ant-dropdown-arrow{right:16px}.ant-dropdown-placement-bottomCenter>.ant-dropdown-arrow,.ant-dropdown-placement-bottomLeft>.ant-dropdown-arrow,.ant-dropdown-placement-bottomRight>.ant-dropdown-arrow{top:6px;border-color:#fff transparent transparent #fff;box-shadow:-2px -2px 5px #0000000f}.ant-dropdown-placement-bottomCenter>.ant-dropdown-arrow{left:50%;transform:translate(-50%) rotate(45deg)}.ant-dropdown-placement-bottomLeft>.ant-dropdown-arrow{left:16px}.ant-dropdown-placement-bottomRight>.ant-dropdown-arrow{right:16px}.ant-dropdown-menu{position:relative;margin:0;padding:4px 0;text-align:left;list-style-type:none;background-color:#fff;background-clip:padding-box;border-radius:2px;outline:none;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d}.ant-dropdown-menu-item-group-title{padding:5px 12px;color:#00000073;transition:all .3s}.ant-dropdown-menu-submenu-popup{position:absolute;z-index:1050;background:transparent;box-shadow:none;transform-origin:0 0}.ant-dropdown-menu-submenu-popup ul,.ant-dropdown-menu-submenu-popup li{list-style:none}.ant-dropdown-menu-submenu-popup ul{margin-right:.3em;margin-left:.3em}.ant-dropdown-menu-item{position:relative;display:flex;align-items:center}.ant-dropdown-menu-item-icon{min-width:12px;margin-right:8px;font-size:12px}.ant-dropdown-menu-title-content{flex:auto;white-space:nowrap}.ant-dropdown-menu-title-content>a{color:inherit;transition:all .3s}.ant-dropdown-menu-title-content>a:hover{color:inherit}.ant-dropdown-menu-title-content>a:after{position:absolute;top:0;right:0;bottom:0;left:0;content:""}.ant-dropdown-menu-item,.ant-dropdown-menu-submenu-title{clear:both;margin:0;padding:5px 12px;color:#000000d9;font-weight:400;font-size:14px;line-height:22px;cursor:pointer;transition:all .3s}.ant-dropdown-menu-item-selected,.ant-dropdown-menu-submenu-title-selected{color:#d03f0a;background-color:#fff1e6}.ant-dropdown-menu-item:hover,.ant-dropdown-menu-submenu-title:hover{background-color:#f5f5f5}.ant-dropdown-menu-item-disabled,.ant-dropdown-menu-submenu-title-disabled{color:#00000040;cursor:not-allowed}.ant-dropdown-menu-item-disabled:hover,.ant-dropdown-menu-submenu-title-disabled:hover{color:#00000040;background-color:#fff;cursor:not-allowed}.ant-dropdown-menu-item-disabled a,.ant-dropdown-menu-submenu-title-disabled a{pointer-events:none}.ant-dropdown-menu-item-divider,.ant-dropdown-menu-submenu-title-divider{height:1px;margin:4px 0;overflow:hidden;line-height:0;background-color:#f0f0f0}.ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon,.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon{position:absolute;right:8px}.ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon,.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon{margin-right:0!important;color:#00000073;font-size:10px;font-style:normal}.ant-dropdown-menu-item-group-list{margin:0 8px;padding:0;list-style:none}.ant-dropdown-menu-submenu-title{padding-right:24px}.ant-dropdown-menu-submenu-vertical{position:relative}.ant-dropdown-menu-submenu-vertical>.ant-dropdown-menu{position:absolute;top:0;left:100%;min-width:100%;margin-left:4px;transform-origin:0 0}.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title,.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon{color:#00000040;background-color:#fff;cursor:not-allowed}.ant-dropdown-menu-submenu-selected .ant-dropdown-menu-submenu-title{color:#d03f0a}.ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomLeft,.ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomLeft,.ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomCenter,.ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomCenter,.ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomRight,.ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomRight{animation-name:antSlideUpIn}.ant-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-dropdown-placement-topLeft,.ant-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-dropdown-placement-topLeft,.ant-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-dropdown-placement-topCenter,.ant-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-dropdown-placement-topCenter,.ant-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-dropdown-placement-topRight,.ant-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-dropdown-placement-topRight{animation-name:antSlideDownIn}.ant-dropdown.ant-slide-down-leave.ant-slide-down-leave-active.ant-dropdown-placement-bottomLeft,.ant-dropdown.ant-slide-down-leave.ant-slide-down-leave-active.ant-dropdown-placement-bottomCenter,.ant-dropdown.ant-slide-down-leave.ant-slide-down-leave-active.ant-dropdown-placement-bottomRight{animation-name:antSlideUpOut}.ant-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-dropdown-placement-topLeft,.ant-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-dropdown-placement-topCenter,.ant-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-dropdown-placement-topRight{animation-name:antSlideDownOut}.ant-dropdown-trigger>.anticon.anticon-down,.ant-dropdown-link>.anticon.anticon-down,.ant-dropdown-button>.anticon.anticon-down{font-size:10px;vertical-align:baseline}.ant-dropdown-button{white-space:nowrap}.ant-dropdown-button.ant-btn-group>.ant-btn-loading,.ant-dropdown-button.ant-btn-group>.ant-btn-loading+.ant-btn{cursor:default;pointer-events:none}.ant-dropdown-button.ant-btn-group>.ant-btn-loading+.ant-btn:before{display:block}.ant-dropdown-button.ant-btn-group>.ant-btn:last-child:not(:first-child):not(.ant-btn-icon-only){padding-right:8px;padding-left:8px}.ant-dropdown-menu-dark,.ant-dropdown-menu-dark .ant-dropdown-menu{background:#001529}.ant-dropdown-menu-dark .ant-dropdown-menu-item,.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title,.ant-dropdown-menu-dark .ant-dropdown-menu-item>a,.ant-dropdown-menu-dark .ant-dropdown-menu-item>.anticon+span>a{color:#ffffffa6}.ant-dropdown-menu-dark .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow:after,.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow:after,.ant-dropdown-menu-dark .ant-dropdown-menu-item>a .ant-dropdown-menu-submenu-arrow:after,.ant-dropdown-menu-dark .ant-dropdown-menu-item>.anticon+span>a .ant-dropdown-menu-submenu-arrow:after{color:#ffffffa6}.ant-dropdown-menu-dark .ant-dropdown-menu-item:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-item>a:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-item>.anticon+span>a:hover{color:#fff;background:transparent}.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected,.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected>a{color:#fff;background:#d03f0a}.ant-dropdown-rtl{direction:rtl}.ant-dropdown-rtl.ant-dropdown:before{right:-7px;left:0}.ant-dropdown-menu.ant-dropdown-menu-rtl,.ant-dropdown-rtl .ant-dropdown-menu-item-group-title,.ant-dropdown-menu-submenu-rtl .ant-dropdown-menu-item-group-title{direction:rtl;text-align:right}.ant-dropdown-menu-submenu-popup.ant-dropdown-menu-submenu-rtl{transform-origin:100% 0}.ant-dropdown-rtl .ant-dropdown-menu-submenu-popup ul,.ant-dropdown-rtl .ant-dropdown-menu-submenu-popup li,.ant-dropdown-rtl .ant-dropdown-menu-item,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title{text-align:right}.ant-dropdown-rtl .ant-dropdown-menu-item>.anticon:first-child,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title>.anticon:first-child,.ant-dropdown-rtl .ant-dropdown-menu-item>span>.anticon:first-child,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title>span>.anticon:first-child{margin-right:0;margin-left:8px}.ant-dropdown-rtl .ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon{right:auto;left:8px}.ant-dropdown-rtl .ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon{margin-left:0!important;transform:scaleX(-1)}.ant-dropdown-rtl .ant-dropdown-menu-submenu-title{padding-right:12px;padding-left:24px}.ant-dropdown-rtl .ant-dropdown-menu-submenu-vertical>.ant-dropdown-menu{right:100%;left:0;margin-right:4px;margin-left:0}.ant-menu-item-danger.ant-menu-item,.ant-menu-item-danger.ant-menu-item:hover,.ant-menu-item-danger.ant-menu-item-active{color:#ff4d4f}.ant-menu-item-danger.ant-menu-item:active{background:#fff1f0}.ant-menu-item-danger.ant-menu-item-selected{color:#ff4d4f}.ant-menu-item-danger.ant-menu-item-selected>a,.ant-menu-item-danger.ant-menu-item-selected>a:hover{color:#ff4d4f}.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected{background-color:#fff1f0}.ant-menu-inline .ant-menu-item-danger.ant-menu-item:after{border-right-color:#ff4d4f}.ant-menu-dark .ant-menu-item-danger.ant-menu-item,.ant-menu-dark .ant-menu-item-danger.ant-menu-item:hover,.ant-menu-dark .ant-menu-item-danger.ant-menu-item>a{color:#ff4d4f}.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected{color:#fff;background-color:#ff4d4f}.ant-menu{box-sizing:border-box;margin:0;font-variant:tabular-nums;line-height:1.5715;font-feature-settings:"tnum";padding:0;color:#000000d9;font-size:14px;line-height:0;text-align:left;list-style:none;background:#fff;outline:none;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d;transition:background .3s,width .3s cubic-bezier(.2,0,0,1) 0s}.ant-menu:before{display:table;content:""}.ant-menu:after{display:table;clear:both;content:""}.ant-menu.ant-menu-root:focus-visible{box-shadow:0 0 0 2px #ffd0b0}.ant-menu ul,.ant-menu ol{margin:0;padding:0;list-style:none}.ant-menu-overflow{display:flex}.ant-menu-overflow-item{flex:none}.ant-menu-hidden,.ant-menu-submenu-hidden{display:none}.ant-menu-item-group-title{height:1.5715;padding:8px 16px;color:#00000073;font-size:14px;line-height:1.5715;transition:all .3s}.ant-menu-horizontal .ant-menu-submenu{transition:border-color .3s cubic-bezier(.645,.045,.355,1),background .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu,.ant-menu-submenu-inline{transition:border-color .3s cubic-bezier(.645,.045,.355,1),background .3s cubic-bezier(.645,.045,.355,1),padding .15s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu-selected{color:#d03f0a}.ant-menu-item:active,.ant-menu-submenu-title:active{background:#fff1e6}.ant-menu-submenu .ant-menu-sub{cursor:initial;transition:background .3s cubic-bezier(.645,.045,.355,1),padding .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-title-content{transition:color .3s}.ant-menu-item a{color:#000000d9}.ant-menu-item a:hover{color:#d03f0a}.ant-menu-item a:before{position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;content:""}.ant-menu-item>.ant-badge a{color:#000000d9}.ant-menu-item>.ant-badge a:hover{color:#d03f0a}.ant-menu-item-divider{overflow:hidden;line-height:0;border-color:#f0f0f0;border-style:solid;border-width:1px 0 0}.ant-menu-item-divider-dashed{border-style:dashed}.ant-menu-horizontal .ant-menu-item,.ant-menu-horizontal .ant-menu-submenu{margin-top:-1px}.ant-menu-horizontal>.ant-menu-item:hover,.ant-menu-horizontal>.ant-menu-item-active,.ant-menu-horizontal>.ant-menu-submenu .ant-menu-submenu-title:hover{background-color:transparent}.ant-menu-item-selected,.ant-menu-item-selected a,.ant-menu-item-selected a:hover{color:#d03f0a}.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected{background-color:#fff1e6}.ant-menu-inline,.ant-menu-vertical,.ant-menu-vertical-left{border-right:1px solid #f0f0f0}.ant-menu-vertical-right{border-left:1px solid #f0f0f0}.ant-menu-vertical.ant-menu-sub,.ant-menu-vertical-left.ant-menu-sub,.ant-menu-vertical-right.ant-menu-sub{min-width:160px;max-height:calc(100vh - 100px);padding:0;overflow:hidden;border-right:0}.ant-menu-vertical.ant-menu-sub:not([class*="-active"]),.ant-menu-vertical-left.ant-menu-sub:not([class*="-active"]),.ant-menu-vertical-right.ant-menu-sub:not([class*="-active"]){overflow-x:hidden;overflow-y:auto}.ant-menu-vertical.ant-menu-sub .ant-menu-item,.ant-menu-vertical-left.ant-menu-sub .ant-menu-item,.ant-menu-vertical-right.ant-menu-sub .ant-menu-item{left:0;margin-left:0;border-right:0}.ant-menu-vertical.ant-menu-sub .ant-menu-item:after,.ant-menu-vertical-left.ant-menu-sub .ant-menu-item:after,.ant-menu-vertical-right.ant-menu-sub .ant-menu-item:after{border-right:0}.ant-menu-vertical.ant-menu-sub>.ant-menu-item,.ant-menu-vertical-left.ant-menu-sub>.ant-menu-item,.ant-menu-vertical-right.ant-menu-sub>.ant-menu-item,.ant-menu-vertical.ant-menu-sub>.ant-menu-submenu,.ant-menu-vertical-left.ant-menu-sub>.ant-menu-submenu,.ant-menu-vertical-right.ant-menu-sub>.ant-menu-submenu{transform-origin:0 0}.ant-menu-horizontal.ant-menu-sub{min-width:114px}.ant-menu-horizontal .ant-menu-item,.ant-menu-horizontal .ant-menu-submenu-title{transition:border-color .3s,background .3s}.ant-menu-item,.ant-menu-submenu-title{position:relative;display:block;margin:0;padding:0 20px;white-space:nowrap;cursor:pointer;transition:border-color .3s,background .3s,padding .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-item .ant-menu-item-icon,.ant-menu-submenu-title .ant-menu-item-icon,.ant-menu-item .anticon,.ant-menu-submenu-title .anticon{min-width:14px;font-size:14px;transition:font-size .15s cubic-bezier(.215,.61,.355,1),margin .3s cubic-bezier(.645,.045,.355,1),color .3s}.ant-menu-item .ant-menu-item-icon+span,.ant-menu-submenu-title .ant-menu-item-icon+span,.ant-menu-item .anticon+span,.ant-menu-submenu-title .anticon+span{margin-left:10px;opacity:1;transition:opacity .3s cubic-bezier(.645,.045,.355,1),margin .3s,color .3s}.ant-menu-item .ant-menu-item-icon.svg,.ant-menu-submenu-title .ant-menu-item-icon.svg{vertical-align:-.125em}.ant-menu-item.ant-menu-item-only-child>.anticon,.ant-menu-submenu-title.ant-menu-item-only-child>.anticon,.ant-menu-item.ant-menu-item-only-child>.ant-menu-item-icon,.ant-menu-submenu-title.ant-menu-item-only-child>.ant-menu-item-icon{margin-right:0}.ant-menu-item:focus-visible,.ant-menu-submenu-title:focus-visible{box-shadow:0 0 0 2px #ffd0b0}.ant-menu>.ant-menu-item-divider{margin:1px 0;padding:0}.ant-menu-submenu-popup{position:absolute;z-index:1050;background:transparent;border-radius:2px;box-shadow:none;transform-origin:0 0}.ant-menu-submenu-popup:before{position:absolute;top:-7px;right:0;bottom:0;left:0;z-index:-1;width:100%;height:100%;opacity:.0001;content:" "}.ant-menu-submenu-placement-rightTop:before{top:0;left:-7px}.ant-menu-submenu>.ant-menu{background-color:#fff;border-radius:2px}.ant-menu-submenu>.ant-menu-submenu-title:after{transition:transform .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu-popup>.ant-menu{background-color:#fff}.ant-menu-submenu-expand-icon,.ant-menu-submenu-arrow{position:absolute;top:50%;right:16px;width:10px;color:#000000d9;transform:translateY(-50%);transition:transform .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu-arrow:before,.ant-menu-submenu-arrow:after{position:absolute;width:6px;height:1.5px;background-color:currentcolor;border-radius:2px;transition:background .3s cubic-bezier(.645,.045,.355,1),transform .3s cubic-bezier(.645,.045,.355,1),top .3s cubic-bezier(.645,.045,.355,1),color .3s cubic-bezier(.645,.045,.355,1);content:""}.ant-menu-submenu-arrow:before{transform:rotate(45deg) translateY(-2.5px)}.ant-menu-submenu-arrow:after{transform:rotate(-45deg) translateY(2.5px)}.ant-menu-submenu:hover>.ant-menu-submenu-title>.ant-menu-submenu-expand-icon,.ant-menu-submenu:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow{color:#d03f0a}.ant-menu-inline-collapsed .ant-menu-submenu-arrow:before,.ant-menu-submenu-inline .ant-menu-submenu-arrow:before{transform:rotate(-45deg) translate(2.5px)}.ant-menu-inline-collapsed .ant-menu-submenu-arrow:after,.ant-menu-submenu-inline .ant-menu-submenu-arrow:after{transform:rotate(45deg) translate(-2.5px)}.ant-menu-submenu-horizontal .ant-menu-submenu-arrow{display:none}.ant-menu-submenu-open.ant-menu-submenu-inline>.ant-menu-submenu-title>.ant-menu-submenu-arrow{transform:translateY(-2px)}.ant-menu-submenu-open.ant-menu-submenu-inline>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after{transform:rotate(-45deg) translate(-2.5px)}.ant-menu-submenu-open.ant-menu-submenu-inline>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before{transform:rotate(45deg) translate(2.5px)}.ant-menu-vertical .ant-menu-submenu-selected,.ant-menu-vertical-left .ant-menu-submenu-selected,.ant-menu-vertical-right .ant-menu-submenu-selected{color:#d03f0a}.ant-menu-horizontal{line-height:46px;border:0;border-bottom:1px solid #f0f0f0;box-shadow:none}.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu{margin-top:-1px;margin-bottom:0;padding:0 20px}.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item:hover,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu:hover,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-active,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-active,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-open,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-open,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-selected,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-selected{color:#d03f0a}.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item:hover:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu:hover:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-active:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-active:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-open:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-open:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-selected:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-selected:after{border-bottom:2px solid #d03f0a}.ant-menu-horizontal>.ant-menu-item,.ant-menu-horizontal>.ant-menu-submenu{position:relative;top:1px;display:inline-block;vertical-align:bottom}.ant-menu-horizontal>.ant-menu-item:after,.ant-menu-horizontal>.ant-menu-submenu:after{position:absolute;right:20px;bottom:0;left:20px;border-bottom:2px solid transparent;transition:border-color .3s cubic-bezier(.645,.045,.355,1);content:""}.ant-menu-horizontal>.ant-menu-submenu>.ant-menu-submenu-title{padding:0}.ant-menu-horizontal>.ant-menu-item a{color:#000000d9}.ant-menu-horizontal>.ant-menu-item a:hover{color:#d03f0a}.ant-menu-horizontal>.ant-menu-item a:before{bottom:-2px}.ant-menu-horizontal>.ant-menu-item-selected a{color:#d03f0a}.ant-menu-horizontal:after{display:block;clear:both;height:0;content:" "}.ant-menu-vertical .ant-menu-item,.ant-menu-vertical-left .ant-menu-item,.ant-menu-vertical-right .ant-menu-item,.ant-menu-inline .ant-menu-item{position:relative}.ant-menu-vertical .ant-menu-item:after,.ant-menu-vertical-left .ant-menu-item:after,.ant-menu-vertical-right .ant-menu-item:after,.ant-menu-inline .ant-menu-item:after{position:absolute;top:0;right:0;bottom:0;border-right:3px solid #d03f0a;transform:scaleY(.0001);opacity:0;transition:transform .15s cubic-bezier(.215,.61,.355,1),opacity .15s cubic-bezier(.215,.61,.355,1);content:""}.ant-menu-vertical .ant-menu-item,.ant-menu-vertical-left .ant-menu-item,.ant-menu-vertical-right .ant-menu-item,.ant-menu-inline .ant-menu-item,.ant-menu-vertical .ant-menu-submenu-title,.ant-menu-vertical-left .ant-menu-submenu-title,.ant-menu-vertical-right .ant-menu-submenu-title,.ant-menu-inline .ant-menu-submenu-title{height:40px;margin-top:4px;margin-bottom:4px;padding:0 16px;overflow:hidden;line-height:40px;text-overflow:ellipsis}.ant-menu-vertical .ant-menu-submenu,.ant-menu-vertical-left .ant-menu-submenu,.ant-menu-vertical-right .ant-menu-submenu,.ant-menu-inline .ant-menu-submenu{padding-bottom:.02px}.ant-menu-vertical .ant-menu-item:not(:last-child),.ant-menu-vertical-left .ant-menu-item:not(:last-child),.ant-menu-vertical-right .ant-menu-item:not(:last-child),.ant-menu-inline .ant-menu-item:not(:last-child){margin-bottom:8px}.ant-menu-vertical>.ant-menu-item,.ant-menu-vertical-left>.ant-menu-item,.ant-menu-vertical-right>.ant-menu-item,.ant-menu-inline>.ant-menu-item,.ant-menu-vertical>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu-vertical-left>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu-vertical-right>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu-inline>.ant-menu-submenu>.ant-menu-submenu-title{height:40px;line-height:40px}.ant-menu-vertical .ant-menu-item-group-list .ant-menu-submenu-title,.ant-menu-vertical .ant-menu-submenu-title{padding-right:34px}.ant-menu-inline{width:100%}.ant-menu-inline .ant-menu-selected:after,.ant-menu-inline .ant-menu-item-selected:after{transform:scaleY(1);opacity:1;transition:transform .15s cubic-bezier(.645,.045,.355,1),opacity .15s cubic-bezier(.645,.045,.355,1)}.ant-menu-inline .ant-menu-item,.ant-menu-inline .ant-menu-submenu-title{width:calc(100% + 1px)}.ant-menu-inline .ant-menu-item-group-list .ant-menu-submenu-title,.ant-menu-inline .ant-menu-submenu-title{padding-right:34px}.ant-menu-inline.ant-menu-root .ant-menu-item,.ant-menu-inline.ant-menu-root .ant-menu-submenu-title{display:flex;align-items:center;transition:border-color .3s,background .3s,padding .1s cubic-bezier(.215,.61,.355,1)}.ant-menu-inline.ant-menu-root .ant-menu-item>.ant-menu-title-content,.ant-menu-inline.ant-menu-root .ant-menu-submenu-title>.ant-menu-title-content{flex:auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.ant-menu-inline.ant-menu-root .ant-menu-item>*,.ant-menu-inline.ant-menu-root .ant-menu-submenu-title>*{flex:none}.ant-menu.ant-menu-inline-collapsed{width:80px}.ant-menu.ant-menu-inline-collapsed>.ant-menu-item,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title{left:0;padding:0 calc(50% - 8px);text-overflow:clip}.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .ant-menu-submenu-arrow,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .ant-menu-submenu-arrow,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-submenu-arrow{opacity:0}.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .anticon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .anticon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .anticon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .anticon{margin:0;font-size:16px;line-height:40px}.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .ant-menu-item-icon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .ant-menu-item-icon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-item-icon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-item-icon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .anticon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .anticon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .anticon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .anticon+span{display:inline-block;opacity:0}.ant-menu.ant-menu-inline-collapsed .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed .anticon{display:inline-block}.ant-menu.ant-menu-inline-collapsed-tooltip{pointer-events:none}.ant-menu.ant-menu-inline-collapsed-tooltip .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed-tooltip .anticon{display:none}.ant-menu.ant-menu-inline-collapsed-tooltip a{color:#ffffffd9}.ant-menu.ant-menu-inline-collapsed .ant-menu-item-group-title{padding-right:4px;padding-left:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-menu-item-group-list{margin:0;padding:0}.ant-menu-item-group-list .ant-menu-item,.ant-menu-item-group-list .ant-menu-submenu-title{padding:0 16px 0 28px}.ant-menu-root.ant-menu-vertical,.ant-menu-root.ant-menu-vertical-left,.ant-menu-root.ant-menu-vertical-right,.ant-menu-root.ant-menu-inline{box-shadow:none}.ant-menu-root.ant-menu-inline-collapsed .ant-menu-item>.ant-menu-inline-collapsed-noicon,.ant-menu-root.ant-menu-inline-collapsed .ant-menu-submenu .ant-menu-submenu-title>.ant-menu-inline-collapsed-noicon{font-size:16px;text-align:center}.ant-menu-sub.ant-menu-inline{padding:0;background:#fafafa;border:0;border-radius:0;box-shadow:none}.ant-menu-sub.ant-menu-inline>.ant-menu-item,.ant-menu-sub.ant-menu-inline>.ant-menu-submenu>.ant-menu-submenu-title{height:40px;line-height:40px;list-style-position:inside;list-style-type:disc}.ant-menu-sub.ant-menu-inline .ant-menu-item-group-title{padding-left:32px}.ant-menu-item-disabled,.ant-menu-submenu-disabled{color:#00000040!important;background:none;cursor:not-allowed}.ant-menu-item-disabled:after,.ant-menu-submenu-disabled:after{border-color:transparent!important}.ant-menu-item-disabled a,.ant-menu-submenu-disabled a{color:#00000040!important;pointer-events:none}.ant-menu-item-disabled>.ant-menu-submenu-title,.ant-menu-submenu-disabled>.ant-menu-submenu-title{color:#00000040!important;cursor:not-allowed}.ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after{background:rgba(0,0,0,.25)!important}.ant-layout-header .ant-menu{line-height:inherit}.ant-menu-inline-collapsed-tooltip a,.ant-menu-inline-collapsed-tooltip a:hover{color:#fff}.ant-menu-light .ant-menu-item:hover,.ant-menu-light .ant-menu-item-active,.ant-menu-light .ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open,.ant-menu-light .ant-menu-submenu-active,.ant-menu-light .ant-menu-submenu-title:hover{color:#d03f0a}.ant-menu.ant-menu-root:focus-visible{box-shadow:0 0 0 2px #ab2800}.ant-menu-dark .ant-menu-item:focus-visible,.ant-menu-dark .ant-menu-submenu-title:focus-visible{box-shadow:0 0 0 2px #ab2800}.ant-menu.ant-menu-dark,.ant-menu-dark .ant-menu-sub,.ant-menu.ant-menu-dark .ant-menu-sub{color:#ffffffa6;background:#001529}.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow{opacity:.45;transition:all .3s}.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:before{background:#fff}.ant-menu-dark.ant-menu-submenu-popup{background:transparent}.ant-menu-dark .ant-menu-inline.ant-menu-sub{background:#000c17}.ant-menu-dark.ant-menu-horizontal{border-bottom:0}.ant-menu-dark.ant-menu-horizontal>.ant-menu-item,.ant-menu-dark.ant-menu-horizontal>.ant-menu-submenu{top:0;margin-top:0;padding:0 20px;border-color:#001529;border-bottom:0}.ant-menu-dark.ant-menu-horizontal>.ant-menu-item:hover{background-color:#d03f0a}.ant-menu-dark.ant-menu-horizontal>.ant-menu-item>a:before{bottom:0}.ant-menu-dark .ant-menu-item,.ant-menu-dark .ant-menu-item-group-title,.ant-menu-dark .ant-menu-item>a,.ant-menu-dark .ant-menu-item>span>a{color:#ffffffa6}.ant-menu-dark.ant-menu-inline,.ant-menu-dark.ant-menu-vertical,.ant-menu-dark.ant-menu-vertical-left,.ant-menu-dark.ant-menu-vertical-right{border-right:0}.ant-menu-dark.ant-menu-inline .ant-menu-item,.ant-menu-dark.ant-menu-vertical .ant-menu-item,.ant-menu-dark.ant-menu-vertical-left .ant-menu-item,.ant-menu-dark.ant-menu-vertical-right .ant-menu-item{left:0;margin-left:0;border-right:0}.ant-menu-dark.ant-menu-inline .ant-menu-item:after,.ant-menu-dark.ant-menu-vertical .ant-menu-item:after,.ant-menu-dark.ant-menu-vertical-left .ant-menu-item:after,.ant-menu-dark.ant-menu-vertical-right .ant-menu-item:after{border-right:0}.ant-menu-dark.ant-menu-inline .ant-menu-item,.ant-menu-dark.ant-menu-inline .ant-menu-submenu-title{width:100%}.ant-menu-dark .ant-menu-item:hover,.ant-menu-dark .ant-menu-item-active,.ant-menu-dark .ant-menu-submenu-active,.ant-menu-dark .ant-menu-submenu-open,.ant-menu-dark .ant-menu-submenu-selected,.ant-menu-dark .ant-menu-submenu-title:hover{color:#fff;background-color:transparent}.ant-menu-dark .ant-menu-item:hover>a,.ant-menu-dark .ant-menu-item-active>a,.ant-menu-dark .ant-menu-submenu-active>a,.ant-menu-dark .ant-menu-submenu-open>a,.ant-menu-dark .ant-menu-submenu-selected>a,.ant-menu-dark .ant-menu-submenu-title:hover>a,.ant-menu-dark .ant-menu-item:hover>span>a,.ant-menu-dark .ant-menu-item-active>span>a,.ant-menu-dark .ant-menu-submenu-active>span>a,.ant-menu-dark .ant-menu-submenu-open>span>a,.ant-menu-dark .ant-menu-submenu-selected>span>a,.ant-menu-dark .ant-menu-submenu-title:hover>span>a{color:#fff}.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow{opacity:1}.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before{background:#fff}.ant-menu-dark .ant-menu-item:hover{background-color:transparent}.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected{background-color:#d03f0a}.ant-menu-dark .ant-menu-item-selected{color:#fff;border-right:0}.ant-menu-dark .ant-menu-item-selected:after{border-right:0}.ant-menu-dark .ant-menu-item-selected>a,.ant-menu-dark .ant-menu-item-selected>span>a,.ant-menu-dark .ant-menu-item-selected>a:hover,.ant-menu-dark .ant-menu-item-selected>span>a:hover{color:#fff}.ant-menu-dark .ant-menu-item-selected .ant-menu-item-icon,.ant-menu-dark .ant-menu-item-selected .anticon{color:#fff}.ant-menu-dark .ant-menu-item-selected .ant-menu-item-icon+span,.ant-menu-dark .ant-menu-item-selected .anticon+span{color:#fff}.ant-menu.ant-menu-dark .ant-menu-item-selected,.ant-menu-submenu-popup.ant-menu-dark .ant-menu-item-selected{background-color:#d03f0a}.ant-menu-dark .ant-menu-item-disabled,.ant-menu-dark .ant-menu-submenu-disabled,.ant-menu-dark .ant-menu-item-disabled>a,.ant-menu-dark .ant-menu-submenu-disabled>a,.ant-menu-dark .ant-menu-item-disabled>span>a,.ant-menu-dark .ant-menu-submenu-disabled>span>a{color:#ffffff59!important;opacity:.8}.ant-menu-dark .ant-menu-item-disabled>.ant-menu-submenu-title,.ant-menu-dark .ant-menu-submenu-disabled>.ant-menu-submenu-title{color:#ffffff59!important}.ant-menu-dark .ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after{background:rgba(255,255,255,.35)!important}.ant-menu.ant-menu-rtl{direction:rtl;text-align:right}.ant-menu-rtl .ant-menu-item-group-title{text-align:right}.ant-menu-rtl.ant-menu-inline,.ant-menu-rtl.ant-menu-vertical{border-right:none;border-left:1px solid #f0f0f0}.ant-menu-rtl.ant-menu-dark.ant-menu-inline,.ant-menu-rtl.ant-menu-dark.ant-menu-vertical{border-left:none}.ant-menu-rtl.ant-menu-vertical.ant-menu-sub>.ant-menu-item,.ant-menu-rtl.ant-menu-vertical-left.ant-menu-sub>.ant-menu-item,.ant-menu-rtl.ant-menu-vertical-right.ant-menu-sub>.ant-menu-item,.ant-menu-rtl.ant-menu-vertical.ant-menu-sub>.ant-menu-submenu,.ant-menu-rtl.ant-menu-vertical-left.ant-menu-sub>.ant-menu-submenu,.ant-menu-rtl.ant-menu-vertical-right.ant-menu-sub>.ant-menu-submenu{transform-origin:top right}.ant-menu-rtl .ant-menu-item .ant-menu-item-icon,.ant-menu-rtl .ant-menu-submenu-title .ant-menu-item-icon,.ant-menu-rtl .ant-menu-item .anticon,.ant-menu-rtl .ant-menu-submenu-title .anticon{margin-right:auto;margin-left:10px}.ant-menu-rtl .ant-menu-item.ant-menu-item-only-child>.ant-menu-item-icon,.ant-menu-rtl .ant-menu-submenu-title.ant-menu-item-only-child>.ant-menu-item-icon,.ant-menu-rtl .ant-menu-item.ant-menu-item-only-child>.anticon,.ant-menu-rtl .ant-menu-submenu-title.ant-menu-item-only-child>.anticon{margin-left:0}.ant-menu-submenu-rtl.ant-menu-submenu-popup{transform-origin:100% 0}.ant-menu-rtl .ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-rtl .ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-rtl .ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-rtl .ant-menu-submenu-inline>.ant-menu-submenu-title .ant-menu-submenu-arrow{right:auto;left:16px}.ant-menu-rtl .ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-rtl .ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-rtl .ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow:before{transform:rotate(-45deg) translateY(-2px)}.ant-menu-rtl .ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-rtl .ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-rtl .ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow:after{transform:rotate(45deg) translateY(2px)}.ant-menu-rtl.ant-menu-vertical .ant-menu-item:after,.ant-menu-rtl.ant-menu-vertical-left .ant-menu-item:after,.ant-menu-rtl.ant-menu-vertical-right .ant-menu-item:after,.ant-menu-rtl.ant-menu-inline .ant-menu-item:after{right:auto;left:0}.ant-menu-rtl.ant-menu-vertical .ant-menu-item,.ant-menu-rtl.ant-menu-vertical-left .ant-menu-item,.ant-menu-rtl.ant-menu-vertical-right .ant-menu-item,.ant-menu-rtl.ant-menu-inline .ant-menu-item,.ant-menu-rtl.ant-menu-vertical .ant-menu-submenu-title,.ant-menu-rtl.ant-menu-vertical-left .ant-menu-submenu-title,.ant-menu-rtl.ant-menu-vertical-right .ant-menu-submenu-title,.ant-menu-rtl.ant-menu-inline .ant-menu-submenu-title{text-align:right}.ant-menu-rtl.ant-menu-inline .ant-menu-submenu-title{padding-right:0;padding-left:34px}.ant-menu-rtl.ant-menu-vertical .ant-menu-submenu-title{padding-right:16px;padding-left:34px}.ant-menu-rtl.ant-menu-inline-collapsed.ant-menu-vertical .ant-menu-submenu-title{padding:0 calc(50% - 8px)}.ant-menu-rtl .ant-menu-item-group-list .ant-menu-item,.ant-menu-rtl .ant-menu-item-group-list .ant-menu-submenu-title{padding:0 28px 0 16px}.ant-menu-sub.ant-menu-inline{border:0}.ant-menu-rtl.ant-menu-sub.ant-menu-inline .ant-menu-item-group-title{padding-right:32px;padding-left:0}.vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:flex}.vue-recycle-scroller__slot{flex:auto 0 0}.vue-recycle-scroller__item-wrapper{flex:1;box-sizing:border-box;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{position:absolute;top:0;left:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.ant-tag{box-sizing:border-box;margin:0 8px 0 0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:inline-block;height:auto;padding:0 7px;font-size:12px;line-height:20px;white-space:nowrap;background:#fafafa;border:1px solid #d9d9d9;border-radius:2px;opacity:1;transition:all .3s}.ant-tag,.ant-tag a,.ant-tag a:hover{color:#000000d9}.ant-tag>a:first-child:last-child{display:inline-block;margin:0 -8px;padding:0 8px}.ant-tag-close-icon{margin-left:3px;color:#00000073;font-size:10px;cursor:pointer;transition:all .3s}.ant-tag-close-icon:hover{color:#000000d9}.ant-tag-has-color{border-color:transparent}.ant-tag-has-color,.ant-tag-has-color a,.ant-tag-has-color a:hover,.ant-tag-has-color .anticon-close,.ant-tag-has-color .anticon-close:hover{color:#fff}.ant-tag-checkable{background-color:transparent;border-color:transparent;cursor:pointer}.ant-tag-checkable:not(.ant-tag-checkable-checked):hover{color:#d03f0a}.ant-tag-checkable:active,.ant-tag-checkable-checked{color:#fff}.ant-tag-checkable-checked{background-color:#d03f0a}.ant-tag-checkable:active{background-color:#ab2800}.ant-tag-hidden{display:none}.ant-tag-pink{color:#c41d7f;background:#fff0f6;border-color:#ffadd2}.ant-tag-pink-inverse{color:#fff;background:#eb2f96;border-color:#eb2f96}.ant-tag-magenta{color:#c41d7f;background:#fff0f6;border-color:#ffadd2}.ant-tag-magenta-inverse{color:#fff;background:#eb2f96;border-color:#eb2f96}.ant-tag-red{color:#cf1322;background:#fff1f0;border-color:#ffa39e}.ant-tag-red-inverse{color:#fff;background:#f5222d;border-color:#f5222d}.ant-tag-volcano{color:#d4380d;background:#fff2e8;border-color:#ffbb96}.ant-tag-volcano-inverse{color:#fff;background:#fa541c;border-color:#fa541c}.ant-tag-orange{color:#d46b08;background:#fff7e6;border-color:#ffd591}.ant-tag-orange-inverse{color:#fff;background:#fa8c16;border-color:#fa8c16}.ant-tag-yellow{color:#d4b106;background:#feffe6;border-color:#fffb8f}.ant-tag-yellow-inverse{color:#fff;background:#fadb14;border-color:#fadb14}.ant-tag-gold{color:#d48806;background:#fffbe6;border-color:#ffe58f}.ant-tag-gold-inverse{color:#fff;background:#faad14;border-color:#faad14}.ant-tag-cyan{color:#08979c;background:#e6fffb;border-color:#87e8de}.ant-tag-cyan-inverse{color:#fff;background:#13c2c2;border-color:#13c2c2}.ant-tag-lime{color:#7cb305;background:#fcffe6;border-color:#eaff8f}.ant-tag-lime-inverse{color:#fff;background:#a0d911;border-color:#a0d911}.ant-tag-green{color:#389e0d;background:#f6ffed;border-color:#b7eb8f}.ant-tag-green-inverse{color:#fff;background:#52c41a;border-color:#52c41a}.ant-tag-blue{color:#096dd9;background:#e6f7ff;border-color:#91d5ff}.ant-tag-blue-inverse{color:#fff;background:#1890ff;border-color:#1890ff}.ant-tag-geekblue{color:#1d39c4;background:#f0f5ff;border-color:#adc6ff}.ant-tag-geekblue-inverse{color:#fff;background:#2f54eb;border-color:#2f54eb}.ant-tag-purple{color:#531dab;background:#f9f0ff;border-color:#d3adf7}.ant-tag-purple-inverse{color:#fff;background:#722ed1;border-color:#722ed1}.ant-tag-success{color:#52c41a;background:#f6ffed;border-color:#b7eb8f}.ant-tag-processing{color:#d03f0a;background:#fff1e6;border-color:#f7ae83}.ant-tag-error{color:#ff4d4f;background:#fff2f0;border-color:#ffccc7}.ant-tag-warning{color:#faad14;background:#fffbe6;border-color:#ffe58f}.ant-tag>.anticon+span,.ant-tag>span+.anticon{margin-left:7px}.ant-tag.ant-tag-rtl{margin-right:0;margin-left:8px;direction:rtl;text-align:right}.ant-tag-rtl .ant-tag-close-icon{margin-right:3px;margin-left:0}.ant-tag-rtl.ant-tag>.anticon+span,.ant-tag-rtl.ant-tag>span+.anticon{margin-right:7px;margin-left:0}.center[data-v-eb7b4ec8]{display:flex;justify-content:center;align-items:center}.tags-container[data-v-eb7b4ec8]{position:absolute;right:8px;bottom:8px;display:flex;width:calc(100% - 16px);flex-wrap:wrap-reverse;flex-direction:row-reverse}.tags-container>*[data-v-eb7b4ec8]{margin:0 0 4px 4px;font-size:14px;line-height:1.6}.close-icon[data-v-eb7b4ec8]{position:absolute;top:0;right:0;transform:translate(50%,-50%) scale(1.5);cursor:pointer;z-index:100;border-radius:100%;overflow:hidden;line-height:1;background-color:var(--zp-primary-background)}.file[data-v-eb7b4ec8]{padding:8px 16px;margin:8px;display:flex;align-items:center;background:var(--zp-primary-background);border-radius:8px;box-shadow:0 0 4px var(--zp-secondary-variant-background);position:relative}.file:hover .more[data-v-eb7b4ec8]{opacity:1}.file .more[data-v-eb7b4ec8]{opacity:0;transition:all .3s ease;position:absolute;top:4px;right:4px;cursor:pointer;z-index:100;font-size:500;font-size:1.8em;display:flex;align-items:center;justify-content:center;padding:4px;border-radius:100vh;color:#fff;background:var(--zp-icon-bg)}.file.grid[data-v-eb7b4ec8]{padding:0;display:inline-block;box-sizing:content-box;box-shadow:unset;background-color:var(--zp-secondary-background)}.file.grid[data-v-eb7b4ec8] .icon{font-size:8em}.file.grid[data-v-eb7b4ec8] .profile{padding:0 4px}.file.grid[data-v-eb7b4ec8] .profile .name{font-weight:500;padding:0}.file.grid[data-v-eb7b4ec8] .profile .basic-info{display:flex;justify-content:space-between;flex-direction:row;margin:0;font-size:.7em}.file.grid[data-v-eb7b4ec8] .ant-image,.file.grid[data-v-eb7b4ec8] .preview-icon-wrap{border:1px solid var(--zp-secondary);background-color:var(--zp-secondary-variant-background);border-radius:8px;overflow:hidden}.file.grid[data-v-eb7b4ec8] img,.file.grid[data-v-eb7b4ec8] .preview-icon-wrap>[role=img]{height:var(--aaf8adf2);width:var(--aaf8adf2);object-fit:contain}.file.clickable[data-v-eb7b4ec8]{cursor:pointer}.file.selected[data-v-eb7b4ec8]{outline:#0084ff solid 2px}.file .name[data-v-eb7b4ec8]{flex:1;padding:8px;word-break:break-all}.file .basic-info[data-v-eb7b4ec8]{overflow:hidden;display:flex;flex-direction:column;align-items:flex-end} +.ant-dropdown-menu-item.ant-dropdown-menu-item-danger{color:#ff4d4f}.ant-dropdown-menu-item.ant-dropdown-menu-item-danger:hover{color:#fff;background-color:#ff4d4f}.ant-dropdown{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:absolute;top:-9999px;left:-9999px;z-index:1050;display:block}.ant-dropdown:before{position:absolute;top:-4px;right:0;bottom:-4px;left:-7px;z-index:-9999;opacity:.0001;content:" "}.ant-dropdown-wrap{position:relative}.ant-dropdown-wrap .ant-btn>.anticon-down{font-size:10px}.ant-dropdown-wrap .anticon-down:before{transition:transform .2s}.ant-dropdown-wrap-open .anticon-down:before{transform:rotate(180deg)}.ant-dropdown-hidden,.ant-dropdown-menu-hidden,.ant-dropdown-menu-submenu-hidden{display:none}.ant-dropdown-show-arrow.ant-dropdown-placement-topCenter,.ant-dropdown-show-arrow.ant-dropdown-placement-topLeft,.ant-dropdown-show-arrow.ant-dropdown-placement-topRight{padding-bottom:10px}.ant-dropdown-show-arrow.ant-dropdown-placement-bottomCenter,.ant-dropdown-show-arrow.ant-dropdown-placement-bottomLeft,.ant-dropdown-show-arrow.ant-dropdown-placement-bottomRight{padding-top:10px}.ant-dropdown-arrow{position:absolute;z-index:1;display:block;width:8.48528137px;height:8.48528137px;background:transparent;border-style:solid;border-width:4.24264069px;transform:rotate(45deg)}.ant-dropdown-placement-topCenter>.ant-dropdown-arrow,.ant-dropdown-placement-topLeft>.ant-dropdown-arrow,.ant-dropdown-placement-topRight>.ant-dropdown-arrow{bottom:6.2px;border-color:transparent #fff #fff transparent;box-shadow:3px 3px 7px #00000012}.ant-dropdown-placement-topCenter>.ant-dropdown-arrow{left:50%;transform:translate(-50%) rotate(45deg)}.ant-dropdown-placement-topLeft>.ant-dropdown-arrow{left:16px}.ant-dropdown-placement-topRight>.ant-dropdown-arrow{right:16px}.ant-dropdown-placement-bottomCenter>.ant-dropdown-arrow,.ant-dropdown-placement-bottomLeft>.ant-dropdown-arrow,.ant-dropdown-placement-bottomRight>.ant-dropdown-arrow{top:6px;border-color:#fff transparent transparent #fff;box-shadow:-2px -2px 5px #0000000f}.ant-dropdown-placement-bottomCenter>.ant-dropdown-arrow{left:50%;transform:translate(-50%) rotate(45deg)}.ant-dropdown-placement-bottomLeft>.ant-dropdown-arrow{left:16px}.ant-dropdown-placement-bottomRight>.ant-dropdown-arrow{right:16px}.ant-dropdown-menu{position:relative;margin:0;padding:4px 0;text-align:left;list-style-type:none;background-color:#fff;background-clip:padding-box;border-radius:2px;outline:none;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d}.ant-dropdown-menu-item-group-title{padding:5px 12px;color:#00000073;transition:all .3s}.ant-dropdown-menu-submenu-popup{position:absolute;z-index:1050;background:transparent;box-shadow:none;transform-origin:0 0}.ant-dropdown-menu-submenu-popup ul,.ant-dropdown-menu-submenu-popup li{list-style:none}.ant-dropdown-menu-submenu-popup ul{margin-right:.3em;margin-left:.3em}.ant-dropdown-menu-item{position:relative;display:flex;align-items:center}.ant-dropdown-menu-item-icon{min-width:12px;margin-right:8px;font-size:12px}.ant-dropdown-menu-title-content{flex:auto;white-space:nowrap}.ant-dropdown-menu-title-content>a{color:inherit;transition:all .3s}.ant-dropdown-menu-title-content>a:hover{color:inherit}.ant-dropdown-menu-title-content>a:after{position:absolute;top:0;right:0;bottom:0;left:0;content:""}.ant-dropdown-menu-item,.ant-dropdown-menu-submenu-title{clear:both;margin:0;padding:5px 12px;color:#000000d9;font-weight:400;font-size:14px;line-height:22px;cursor:pointer;transition:all .3s}.ant-dropdown-menu-item-selected,.ant-dropdown-menu-submenu-title-selected{color:#d03f0a;background-color:#fff1e6}.ant-dropdown-menu-item:hover,.ant-dropdown-menu-submenu-title:hover{background-color:#f5f5f5}.ant-dropdown-menu-item-disabled,.ant-dropdown-menu-submenu-title-disabled{color:#00000040;cursor:not-allowed}.ant-dropdown-menu-item-disabled:hover,.ant-dropdown-menu-submenu-title-disabled:hover{color:#00000040;background-color:#fff;cursor:not-allowed}.ant-dropdown-menu-item-disabled a,.ant-dropdown-menu-submenu-title-disabled a{pointer-events:none}.ant-dropdown-menu-item-divider,.ant-dropdown-menu-submenu-title-divider{height:1px;margin:4px 0;overflow:hidden;line-height:0;background-color:#f0f0f0}.ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon,.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon{position:absolute;right:8px}.ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon,.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon{margin-right:0!important;color:#00000073;font-size:10px;font-style:normal}.ant-dropdown-menu-item-group-list{margin:0 8px;padding:0;list-style:none}.ant-dropdown-menu-submenu-title{padding-right:24px}.ant-dropdown-menu-submenu-vertical{position:relative}.ant-dropdown-menu-submenu-vertical>.ant-dropdown-menu{position:absolute;top:0;left:100%;min-width:100%;margin-left:4px;transform-origin:0 0}.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title,.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon{color:#00000040;background-color:#fff;cursor:not-allowed}.ant-dropdown-menu-submenu-selected .ant-dropdown-menu-submenu-title{color:#d03f0a}.ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomLeft,.ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomLeft,.ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomCenter,.ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomCenter,.ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomRight,.ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomRight{animation-name:antSlideUpIn}.ant-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-dropdown-placement-topLeft,.ant-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-dropdown-placement-topLeft,.ant-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-dropdown-placement-topCenter,.ant-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-dropdown-placement-topCenter,.ant-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-dropdown-placement-topRight,.ant-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-dropdown-placement-topRight{animation-name:antSlideDownIn}.ant-dropdown.ant-slide-down-leave.ant-slide-down-leave-active.ant-dropdown-placement-bottomLeft,.ant-dropdown.ant-slide-down-leave.ant-slide-down-leave-active.ant-dropdown-placement-bottomCenter,.ant-dropdown.ant-slide-down-leave.ant-slide-down-leave-active.ant-dropdown-placement-bottomRight{animation-name:antSlideUpOut}.ant-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-dropdown-placement-topLeft,.ant-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-dropdown-placement-topCenter,.ant-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-dropdown-placement-topRight{animation-name:antSlideDownOut}.ant-dropdown-trigger>.anticon.anticon-down,.ant-dropdown-link>.anticon.anticon-down,.ant-dropdown-button>.anticon.anticon-down{font-size:10px;vertical-align:baseline}.ant-dropdown-button{white-space:nowrap}.ant-dropdown-button.ant-btn-group>.ant-btn-loading,.ant-dropdown-button.ant-btn-group>.ant-btn-loading+.ant-btn{cursor:default;pointer-events:none}.ant-dropdown-button.ant-btn-group>.ant-btn-loading+.ant-btn:before{display:block}.ant-dropdown-button.ant-btn-group>.ant-btn:last-child:not(:first-child):not(.ant-btn-icon-only){padding-right:8px;padding-left:8px}.ant-dropdown-menu-dark,.ant-dropdown-menu-dark .ant-dropdown-menu{background:#001529}.ant-dropdown-menu-dark .ant-dropdown-menu-item,.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title,.ant-dropdown-menu-dark .ant-dropdown-menu-item>a,.ant-dropdown-menu-dark .ant-dropdown-menu-item>.anticon+span>a{color:#ffffffa6}.ant-dropdown-menu-dark .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow:after,.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow:after,.ant-dropdown-menu-dark .ant-dropdown-menu-item>a .ant-dropdown-menu-submenu-arrow:after,.ant-dropdown-menu-dark .ant-dropdown-menu-item>.anticon+span>a .ant-dropdown-menu-submenu-arrow:after{color:#ffffffa6}.ant-dropdown-menu-dark .ant-dropdown-menu-item:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-item>a:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-item>.anticon+span>a:hover{color:#fff;background:transparent}.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected,.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected>a{color:#fff;background:#d03f0a}.ant-dropdown-rtl{direction:rtl}.ant-dropdown-rtl.ant-dropdown:before{right:-7px;left:0}.ant-dropdown-menu.ant-dropdown-menu-rtl,.ant-dropdown-rtl .ant-dropdown-menu-item-group-title,.ant-dropdown-menu-submenu-rtl .ant-dropdown-menu-item-group-title{direction:rtl;text-align:right}.ant-dropdown-menu-submenu-popup.ant-dropdown-menu-submenu-rtl{transform-origin:100% 0}.ant-dropdown-rtl .ant-dropdown-menu-submenu-popup ul,.ant-dropdown-rtl .ant-dropdown-menu-submenu-popup li,.ant-dropdown-rtl .ant-dropdown-menu-item,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title{text-align:right}.ant-dropdown-rtl .ant-dropdown-menu-item>.anticon:first-child,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title>.anticon:first-child,.ant-dropdown-rtl .ant-dropdown-menu-item>span>.anticon:first-child,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title>span>.anticon:first-child{margin-right:0;margin-left:8px}.ant-dropdown-rtl .ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon{right:auto;left:8px}.ant-dropdown-rtl .ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon{margin-left:0!important;transform:scaleX(-1)}.ant-dropdown-rtl .ant-dropdown-menu-submenu-title{padding-right:12px;padding-left:24px}.ant-dropdown-rtl .ant-dropdown-menu-submenu-vertical>.ant-dropdown-menu{right:100%;left:0;margin-right:4px;margin-left:0}.ant-menu-item-danger.ant-menu-item,.ant-menu-item-danger.ant-menu-item:hover,.ant-menu-item-danger.ant-menu-item-active{color:#ff4d4f}.ant-menu-item-danger.ant-menu-item:active{background:#fff1f0}.ant-menu-item-danger.ant-menu-item-selected{color:#ff4d4f}.ant-menu-item-danger.ant-menu-item-selected>a,.ant-menu-item-danger.ant-menu-item-selected>a:hover{color:#ff4d4f}.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected{background-color:#fff1f0}.ant-menu-inline .ant-menu-item-danger.ant-menu-item:after{border-right-color:#ff4d4f}.ant-menu-dark .ant-menu-item-danger.ant-menu-item,.ant-menu-dark .ant-menu-item-danger.ant-menu-item:hover,.ant-menu-dark .ant-menu-item-danger.ant-menu-item>a{color:#ff4d4f}.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected{color:#fff;background-color:#ff4d4f}.ant-menu{box-sizing:border-box;margin:0;font-variant:tabular-nums;line-height:1.5715;font-feature-settings:"tnum";padding:0;color:#000000d9;font-size:14px;line-height:0;text-align:left;list-style:none;background:#fff;outline:none;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d;transition:background .3s,width .3s cubic-bezier(.2,0,0,1) 0s}.ant-menu:before{display:table;content:""}.ant-menu:after{display:table;clear:both;content:""}.ant-menu.ant-menu-root:focus-visible{box-shadow:0 0 0 2px #ffd0b0}.ant-menu ul,.ant-menu ol{margin:0;padding:0;list-style:none}.ant-menu-overflow{display:flex}.ant-menu-overflow-item{flex:none}.ant-menu-hidden,.ant-menu-submenu-hidden{display:none}.ant-menu-item-group-title{height:1.5715;padding:8px 16px;color:#00000073;font-size:14px;line-height:1.5715;transition:all .3s}.ant-menu-horizontal .ant-menu-submenu{transition:border-color .3s cubic-bezier(.645,.045,.355,1),background .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu,.ant-menu-submenu-inline{transition:border-color .3s cubic-bezier(.645,.045,.355,1),background .3s cubic-bezier(.645,.045,.355,1),padding .15s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu-selected{color:#d03f0a}.ant-menu-item:active,.ant-menu-submenu-title:active{background:#fff1e6}.ant-menu-submenu .ant-menu-sub{cursor:initial;transition:background .3s cubic-bezier(.645,.045,.355,1),padding .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-title-content{transition:color .3s}.ant-menu-item a{color:#000000d9}.ant-menu-item a:hover{color:#d03f0a}.ant-menu-item a:before{position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;content:""}.ant-menu-item>.ant-badge a{color:#000000d9}.ant-menu-item>.ant-badge a:hover{color:#d03f0a}.ant-menu-item-divider{overflow:hidden;line-height:0;border-color:#f0f0f0;border-style:solid;border-width:1px 0 0}.ant-menu-item-divider-dashed{border-style:dashed}.ant-menu-horizontal .ant-menu-item,.ant-menu-horizontal .ant-menu-submenu{margin-top:-1px}.ant-menu-horizontal>.ant-menu-item:hover,.ant-menu-horizontal>.ant-menu-item-active,.ant-menu-horizontal>.ant-menu-submenu .ant-menu-submenu-title:hover{background-color:transparent}.ant-menu-item-selected,.ant-menu-item-selected a,.ant-menu-item-selected a:hover{color:#d03f0a}.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected{background-color:#fff1e6}.ant-menu-inline,.ant-menu-vertical,.ant-menu-vertical-left{border-right:1px solid #f0f0f0}.ant-menu-vertical-right{border-left:1px solid #f0f0f0}.ant-menu-vertical.ant-menu-sub,.ant-menu-vertical-left.ant-menu-sub,.ant-menu-vertical-right.ant-menu-sub{min-width:160px;max-height:calc(100vh - 100px);padding:0;overflow:hidden;border-right:0}.ant-menu-vertical.ant-menu-sub:not([class*="-active"]),.ant-menu-vertical-left.ant-menu-sub:not([class*="-active"]),.ant-menu-vertical-right.ant-menu-sub:not([class*="-active"]){overflow-x:hidden;overflow-y:auto}.ant-menu-vertical.ant-menu-sub .ant-menu-item,.ant-menu-vertical-left.ant-menu-sub .ant-menu-item,.ant-menu-vertical-right.ant-menu-sub .ant-menu-item{left:0;margin-left:0;border-right:0}.ant-menu-vertical.ant-menu-sub .ant-menu-item:after,.ant-menu-vertical-left.ant-menu-sub .ant-menu-item:after,.ant-menu-vertical-right.ant-menu-sub .ant-menu-item:after{border-right:0}.ant-menu-vertical.ant-menu-sub>.ant-menu-item,.ant-menu-vertical-left.ant-menu-sub>.ant-menu-item,.ant-menu-vertical-right.ant-menu-sub>.ant-menu-item,.ant-menu-vertical.ant-menu-sub>.ant-menu-submenu,.ant-menu-vertical-left.ant-menu-sub>.ant-menu-submenu,.ant-menu-vertical-right.ant-menu-sub>.ant-menu-submenu{transform-origin:0 0}.ant-menu-horizontal.ant-menu-sub{min-width:114px}.ant-menu-horizontal .ant-menu-item,.ant-menu-horizontal .ant-menu-submenu-title{transition:border-color .3s,background .3s}.ant-menu-item,.ant-menu-submenu-title{position:relative;display:block;margin:0;padding:0 20px;white-space:nowrap;cursor:pointer;transition:border-color .3s,background .3s,padding .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-item .ant-menu-item-icon,.ant-menu-submenu-title .ant-menu-item-icon,.ant-menu-item .anticon,.ant-menu-submenu-title .anticon{min-width:14px;font-size:14px;transition:font-size .15s cubic-bezier(.215,.61,.355,1),margin .3s cubic-bezier(.645,.045,.355,1),color .3s}.ant-menu-item .ant-menu-item-icon+span,.ant-menu-submenu-title .ant-menu-item-icon+span,.ant-menu-item .anticon+span,.ant-menu-submenu-title .anticon+span{margin-left:10px;opacity:1;transition:opacity .3s cubic-bezier(.645,.045,.355,1),margin .3s,color .3s}.ant-menu-item .ant-menu-item-icon.svg,.ant-menu-submenu-title .ant-menu-item-icon.svg{vertical-align:-.125em}.ant-menu-item.ant-menu-item-only-child>.anticon,.ant-menu-submenu-title.ant-menu-item-only-child>.anticon,.ant-menu-item.ant-menu-item-only-child>.ant-menu-item-icon,.ant-menu-submenu-title.ant-menu-item-only-child>.ant-menu-item-icon{margin-right:0}.ant-menu-item:focus-visible,.ant-menu-submenu-title:focus-visible{box-shadow:0 0 0 2px #ffd0b0}.ant-menu>.ant-menu-item-divider{margin:1px 0;padding:0}.ant-menu-submenu-popup{position:absolute;z-index:1050;background:transparent;border-radius:2px;box-shadow:none;transform-origin:0 0}.ant-menu-submenu-popup:before{position:absolute;top:-7px;right:0;bottom:0;left:0;z-index:-1;width:100%;height:100%;opacity:.0001;content:" "}.ant-menu-submenu-placement-rightTop:before{top:0;left:-7px}.ant-menu-submenu>.ant-menu{background-color:#fff;border-radius:2px}.ant-menu-submenu>.ant-menu-submenu-title:after{transition:transform .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu-popup>.ant-menu{background-color:#fff}.ant-menu-submenu-expand-icon,.ant-menu-submenu-arrow{position:absolute;top:50%;right:16px;width:10px;color:#000000d9;transform:translateY(-50%);transition:transform .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu-arrow:before,.ant-menu-submenu-arrow:after{position:absolute;width:6px;height:1.5px;background-color:currentcolor;border-radius:2px;transition:background .3s cubic-bezier(.645,.045,.355,1),transform .3s cubic-bezier(.645,.045,.355,1),top .3s cubic-bezier(.645,.045,.355,1),color .3s cubic-bezier(.645,.045,.355,1);content:""}.ant-menu-submenu-arrow:before{transform:rotate(45deg) translateY(-2.5px)}.ant-menu-submenu-arrow:after{transform:rotate(-45deg) translateY(2.5px)}.ant-menu-submenu:hover>.ant-menu-submenu-title>.ant-menu-submenu-expand-icon,.ant-menu-submenu:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow{color:#d03f0a}.ant-menu-inline-collapsed .ant-menu-submenu-arrow:before,.ant-menu-submenu-inline .ant-menu-submenu-arrow:before{transform:rotate(-45deg) translate(2.5px)}.ant-menu-inline-collapsed .ant-menu-submenu-arrow:after,.ant-menu-submenu-inline .ant-menu-submenu-arrow:after{transform:rotate(45deg) translate(-2.5px)}.ant-menu-submenu-horizontal .ant-menu-submenu-arrow{display:none}.ant-menu-submenu-open.ant-menu-submenu-inline>.ant-menu-submenu-title>.ant-menu-submenu-arrow{transform:translateY(-2px)}.ant-menu-submenu-open.ant-menu-submenu-inline>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after{transform:rotate(-45deg) translate(-2.5px)}.ant-menu-submenu-open.ant-menu-submenu-inline>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before{transform:rotate(45deg) translate(2.5px)}.ant-menu-vertical .ant-menu-submenu-selected,.ant-menu-vertical-left .ant-menu-submenu-selected,.ant-menu-vertical-right .ant-menu-submenu-selected{color:#d03f0a}.ant-menu-horizontal{line-height:46px;border:0;border-bottom:1px solid #f0f0f0;box-shadow:none}.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu{margin-top:-1px;margin-bottom:0;padding:0 20px}.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item:hover,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu:hover,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-active,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-active,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-open,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-open,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-selected,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-selected{color:#d03f0a}.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item:hover:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu:hover:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-active:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-active:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-open:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-open:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-selected:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-selected:after{border-bottom:2px solid #d03f0a}.ant-menu-horizontal>.ant-menu-item,.ant-menu-horizontal>.ant-menu-submenu{position:relative;top:1px;display:inline-block;vertical-align:bottom}.ant-menu-horizontal>.ant-menu-item:after,.ant-menu-horizontal>.ant-menu-submenu:after{position:absolute;right:20px;bottom:0;left:20px;border-bottom:2px solid transparent;transition:border-color .3s cubic-bezier(.645,.045,.355,1);content:""}.ant-menu-horizontal>.ant-menu-submenu>.ant-menu-submenu-title{padding:0}.ant-menu-horizontal>.ant-menu-item a{color:#000000d9}.ant-menu-horizontal>.ant-menu-item a:hover{color:#d03f0a}.ant-menu-horizontal>.ant-menu-item a:before{bottom:-2px}.ant-menu-horizontal>.ant-menu-item-selected a{color:#d03f0a}.ant-menu-horizontal:after{display:block;clear:both;height:0;content:" "}.ant-menu-vertical .ant-menu-item,.ant-menu-vertical-left .ant-menu-item,.ant-menu-vertical-right .ant-menu-item,.ant-menu-inline .ant-menu-item{position:relative}.ant-menu-vertical .ant-menu-item:after,.ant-menu-vertical-left .ant-menu-item:after,.ant-menu-vertical-right .ant-menu-item:after,.ant-menu-inline .ant-menu-item:after{position:absolute;top:0;right:0;bottom:0;border-right:3px solid #d03f0a;transform:scaleY(.0001);opacity:0;transition:transform .15s cubic-bezier(.215,.61,.355,1),opacity .15s cubic-bezier(.215,.61,.355,1);content:""}.ant-menu-vertical .ant-menu-item,.ant-menu-vertical-left .ant-menu-item,.ant-menu-vertical-right .ant-menu-item,.ant-menu-inline .ant-menu-item,.ant-menu-vertical .ant-menu-submenu-title,.ant-menu-vertical-left .ant-menu-submenu-title,.ant-menu-vertical-right .ant-menu-submenu-title,.ant-menu-inline .ant-menu-submenu-title{height:40px;margin-top:4px;margin-bottom:4px;padding:0 16px;overflow:hidden;line-height:40px;text-overflow:ellipsis}.ant-menu-vertical .ant-menu-submenu,.ant-menu-vertical-left .ant-menu-submenu,.ant-menu-vertical-right .ant-menu-submenu,.ant-menu-inline .ant-menu-submenu{padding-bottom:.02px}.ant-menu-vertical .ant-menu-item:not(:last-child),.ant-menu-vertical-left .ant-menu-item:not(:last-child),.ant-menu-vertical-right .ant-menu-item:not(:last-child),.ant-menu-inline .ant-menu-item:not(:last-child){margin-bottom:8px}.ant-menu-vertical>.ant-menu-item,.ant-menu-vertical-left>.ant-menu-item,.ant-menu-vertical-right>.ant-menu-item,.ant-menu-inline>.ant-menu-item,.ant-menu-vertical>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu-vertical-left>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu-vertical-right>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu-inline>.ant-menu-submenu>.ant-menu-submenu-title{height:40px;line-height:40px}.ant-menu-vertical .ant-menu-item-group-list .ant-menu-submenu-title,.ant-menu-vertical .ant-menu-submenu-title{padding-right:34px}.ant-menu-inline{width:100%}.ant-menu-inline .ant-menu-selected:after,.ant-menu-inline .ant-menu-item-selected:after{transform:scaleY(1);opacity:1;transition:transform .15s cubic-bezier(.645,.045,.355,1),opacity .15s cubic-bezier(.645,.045,.355,1)}.ant-menu-inline .ant-menu-item,.ant-menu-inline .ant-menu-submenu-title{width:calc(100% + 1px)}.ant-menu-inline .ant-menu-item-group-list .ant-menu-submenu-title,.ant-menu-inline .ant-menu-submenu-title{padding-right:34px}.ant-menu-inline.ant-menu-root .ant-menu-item,.ant-menu-inline.ant-menu-root .ant-menu-submenu-title{display:flex;align-items:center;transition:border-color .3s,background .3s,padding .1s cubic-bezier(.215,.61,.355,1)}.ant-menu-inline.ant-menu-root .ant-menu-item>.ant-menu-title-content,.ant-menu-inline.ant-menu-root .ant-menu-submenu-title>.ant-menu-title-content{flex:auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.ant-menu-inline.ant-menu-root .ant-menu-item>*,.ant-menu-inline.ant-menu-root .ant-menu-submenu-title>*{flex:none}.ant-menu.ant-menu-inline-collapsed{width:80px}.ant-menu.ant-menu-inline-collapsed>.ant-menu-item,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title{left:0;padding:0 calc(50% - 8px);text-overflow:clip}.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .ant-menu-submenu-arrow,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .ant-menu-submenu-arrow,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-submenu-arrow{opacity:0}.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .anticon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .anticon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .anticon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .anticon{margin:0;font-size:16px;line-height:40px}.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .ant-menu-item-icon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .ant-menu-item-icon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-item-icon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-item-icon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .anticon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .anticon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .anticon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .anticon+span{display:inline-block;opacity:0}.ant-menu.ant-menu-inline-collapsed .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed .anticon{display:inline-block}.ant-menu.ant-menu-inline-collapsed-tooltip{pointer-events:none}.ant-menu.ant-menu-inline-collapsed-tooltip .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed-tooltip .anticon{display:none}.ant-menu.ant-menu-inline-collapsed-tooltip a{color:#ffffffd9}.ant-menu.ant-menu-inline-collapsed .ant-menu-item-group-title{padding-right:4px;padding-left:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-menu-item-group-list{margin:0;padding:0}.ant-menu-item-group-list .ant-menu-item,.ant-menu-item-group-list .ant-menu-submenu-title{padding:0 16px 0 28px}.ant-menu-root.ant-menu-vertical,.ant-menu-root.ant-menu-vertical-left,.ant-menu-root.ant-menu-vertical-right,.ant-menu-root.ant-menu-inline{box-shadow:none}.ant-menu-root.ant-menu-inline-collapsed .ant-menu-item>.ant-menu-inline-collapsed-noicon,.ant-menu-root.ant-menu-inline-collapsed .ant-menu-submenu .ant-menu-submenu-title>.ant-menu-inline-collapsed-noicon{font-size:16px;text-align:center}.ant-menu-sub.ant-menu-inline{padding:0;background:#fafafa;border:0;border-radius:0;box-shadow:none}.ant-menu-sub.ant-menu-inline>.ant-menu-item,.ant-menu-sub.ant-menu-inline>.ant-menu-submenu>.ant-menu-submenu-title{height:40px;line-height:40px;list-style-position:inside;list-style-type:disc}.ant-menu-sub.ant-menu-inline .ant-menu-item-group-title{padding-left:32px}.ant-menu-item-disabled,.ant-menu-submenu-disabled{color:#00000040!important;background:none;cursor:not-allowed}.ant-menu-item-disabled:after,.ant-menu-submenu-disabled:after{border-color:transparent!important}.ant-menu-item-disabled a,.ant-menu-submenu-disabled a{color:#00000040!important;pointer-events:none}.ant-menu-item-disabled>.ant-menu-submenu-title,.ant-menu-submenu-disabled>.ant-menu-submenu-title{color:#00000040!important;cursor:not-allowed}.ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after{background:rgba(0,0,0,.25)!important}.ant-layout-header .ant-menu{line-height:inherit}.ant-menu-inline-collapsed-tooltip a,.ant-menu-inline-collapsed-tooltip a:hover{color:#fff}.ant-menu-light .ant-menu-item:hover,.ant-menu-light .ant-menu-item-active,.ant-menu-light .ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open,.ant-menu-light .ant-menu-submenu-active,.ant-menu-light .ant-menu-submenu-title:hover{color:#d03f0a}.ant-menu.ant-menu-root:focus-visible{box-shadow:0 0 0 2px #ab2800}.ant-menu-dark .ant-menu-item:focus-visible,.ant-menu-dark .ant-menu-submenu-title:focus-visible{box-shadow:0 0 0 2px #ab2800}.ant-menu.ant-menu-dark,.ant-menu-dark .ant-menu-sub,.ant-menu.ant-menu-dark .ant-menu-sub{color:#ffffffa6;background:#001529}.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow{opacity:.45;transition:all .3s}.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:before{background:#fff}.ant-menu-dark.ant-menu-submenu-popup{background:transparent}.ant-menu-dark .ant-menu-inline.ant-menu-sub{background:#000c17}.ant-menu-dark.ant-menu-horizontal{border-bottom:0}.ant-menu-dark.ant-menu-horizontal>.ant-menu-item,.ant-menu-dark.ant-menu-horizontal>.ant-menu-submenu{top:0;margin-top:0;padding:0 20px;border-color:#001529;border-bottom:0}.ant-menu-dark.ant-menu-horizontal>.ant-menu-item:hover{background-color:#d03f0a}.ant-menu-dark.ant-menu-horizontal>.ant-menu-item>a:before{bottom:0}.ant-menu-dark .ant-menu-item,.ant-menu-dark .ant-menu-item-group-title,.ant-menu-dark .ant-menu-item>a,.ant-menu-dark .ant-menu-item>span>a{color:#ffffffa6}.ant-menu-dark.ant-menu-inline,.ant-menu-dark.ant-menu-vertical,.ant-menu-dark.ant-menu-vertical-left,.ant-menu-dark.ant-menu-vertical-right{border-right:0}.ant-menu-dark.ant-menu-inline .ant-menu-item,.ant-menu-dark.ant-menu-vertical .ant-menu-item,.ant-menu-dark.ant-menu-vertical-left .ant-menu-item,.ant-menu-dark.ant-menu-vertical-right .ant-menu-item{left:0;margin-left:0;border-right:0}.ant-menu-dark.ant-menu-inline .ant-menu-item:after,.ant-menu-dark.ant-menu-vertical .ant-menu-item:after,.ant-menu-dark.ant-menu-vertical-left .ant-menu-item:after,.ant-menu-dark.ant-menu-vertical-right .ant-menu-item:after{border-right:0}.ant-menu-dark.ant-menu-inline .ant-menu-item,.ant-menu-dark.ant-menu-inline .ant-menu-submenu-title{width:100%}.ant-menu-dark .ant-menu-item:hover,.ant-menu-dark .ant-menu-item-active,.ant-menu-dark .ant-menu-submenu-active,.ant-menu-dark .ant-menu-submenu-open,.ant-menu-dark .ant-menu-submenu-selected,.ant-menu-dark .ant-menu-submenu-title:hover{color:#fff;background-color:transparent}.ant-menu-dark .ant-menu-item:hover>a,.ant-menu-dark .ant-menu-item-active>a,.ant-menu-dark .ant-menu-submenu-active>a,.ant-menu-dark .ant-menu-submenu-open>a,.ant-menu-dark .ant-menu-submenu-selected>a,.ant-menu-dark .ant-menu-submenu-title:hover>a,.ant-menu-dark .ant-menu-item:hover>span>a,.ant-menu-dark .ant-menu-item-active>span>a,.ant-menu-dark .ant-menu-submenu-active>span>a,.ant-menu-dark .ant-menu-submenu-open>span>a,.ant-menu-dark .ant-menu-submenu-selected>span>a,.ant-menu-dark .ant-menu-submenu-title:hover>span>a{color:#fff}.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow{opacity:1}.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before{background:#fff}.ant-menu-dark .ant-menu-item:hover{background-color:transparent}.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected{background-color:#d03f0a}.ant-menu-dark .ant-menu-item-selected{color:#fff;border-right:0}.ant-menu-dark .ant-menu-item-selected:after{border-right:0}.ant-menu-dark .ant-menu-item-selected>a,.ant-menu-dark .ant-menu-item-selected>span>a,.ant-menu-dark .ant-menu-item-selected>a:hover,.ant-menu-dark .ant-menu-item-selected>span>a:hover{color:#fff}.ant-menu-dark .ant-menu-item-selected .ant-menu-item-icon,.ant-menu-dark .ant-menu-item-selected .anticon{color:#fff}.ant-menu-dark .ant-menu-item-selected .ant-menu-item-icon+span,.ant-menu-dark .ant-menu-item-selected .anticon+span{color:#fff}.ant-menu.ant-menu-dark .ant-menu-item-selected,.ant-menu-submenu-popup.ant-menu-dark .ant-menu-item-selected{background-color:#d03f0a}.ant-menu-dark .ant-menu-item-disabled,.ant-menu-dark .ant-menu-submenu-disabled,.ant-menu-dark .ant-menu-item-disabled>a,.ant-menu-dark .ant-menu-submenu-disabled>a,.ant-menu-dark .ant-menu-item-disabled>span>a,.ant-menu-dark .ant-menu-submenu-disabled>span>a{color:#ffffff59!important;opacity:.8}.ant-menu-dark .ant-menu-item-disabled>.ant-menu-submenu-title,.ant-menu-dark .ant-menu-submenu-disabled>.ant-menu-submenu-title{color:#ffffff59!important}.ant-menu-dark .ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after{background:rgba(255,255,255,.35)!important}.ant-menu.ant-menu-rtl{direction:rtl;text-align:right}.ant-menu-rtl .ant-menu-item-group-title{text-align:right}.ant-menu-rtl.ant-menu-inline,.ant-menu-rtl.ant-menu-vertical{border-right:none;border-left:1px solid #f0f0f0}.ant-menu-rtl.ant-menu-dark.ant-menu-inline,.ant-menu-rtl.ant-menu-dark.ant-menu-vertical{border-left:none}.ant-menu-rtl.ant-menu-vertical.ant-menu-sub>.ant-menu-item,.ant-menu-rtl.ant-menu-vertical-left.ant-menu-sub>.ant-menu-item,.ant-menu-rtl.ant-menu-vertical-right.ant-menu-sub>.ant-menu-item,.ant-menu-rtl.ant-menu-vertical.ant-menu-sub>.ant-menu-submenu,.ant-menu-rtl.ant-menu-vertical-left.ant-menu-sub>.ant-menu-submenu,.ant-menu-rtl.ant-menu-vertical-right.ant-menu-sub>.ant-menu-submenu{transform-origin:top right}.ant-menu-rtl .ant-menu-item .ant-menu-item-icon,.ant-menu-rtl .ant-menu-submenu-title .ant-menu-item-icon,.ant-menu-rtl .ant-menu-item .anticon,.ant-menu-rtl .ant-menu-submenu-title .anticon{margin-right:auto;margin-left:10px}.ant-menu-rtl .ant-menu-item.ant-menu-item-only-child>.ant-menu-item-icon,.ant-menu-rtl .ant-menu-submenu-title.ant-menu-item-only-child>.ant-menu-item-icon,.ant-menu-rtl .ant-menu-item.ant-menu-item-only-child>.anticon,.ant-menu-rtl .ant-menu-submenu-title.ant-menu-item-only-child>.anticon{margin-left:0}.ant-menu-submenu-rtl.ant-menu-submenu-popup{transform-origin:100% 0}.ant-menu-rtl .ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-rtl .ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-rtl .ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-rtl .ant-menu-submenu-inline>.ant-menu-submenu-title .ant-menu-submenu-arrow{right:auto;left:16px}.ant-menu-rtl .ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-rtl .ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-rtl .ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow:before{transform:rotate(-45deg) translateY(-2px)}.ant-menu-rtl .ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-rtl .ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-rtl .ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow:after{transform:rotate(45deg) translateY(2px)}.ant-menu-rtl.ant-menu-vertical .ant-menu-item:after,.ant-menu-rtl.ant-menu-vertical-left .ant-menu-item:after,.ant-menu-rtl.ant-menu-vertical-right .ant-menu-item:after,.ant-menu-rtl.ant-menu-inline .ant-menu-item:after{right:auto;left:0}.ant-menu-rtl.ant-menu-vertical .ant-menu-item,.ant-menu-rtl.ant-menu-vertical-left .ant-menu-item,.ant-menu-rtl.ant-menu-vertical-right .ant-menu-item,.ant-menu-rtl.ant-menu-inline .ant-menu-item,.ant-menu-rtl.ant-menu-vertical .ant-menu-submenu-title,.ant-menu-rtl.ant-menu-vertical-left .ant-menu-submenu-title,.ant-menu-rtl.ant-menu-vertical-right .ant-menu-submenu-title,.ant-menu-rtl.ant-menu-inline .ant-menu-submenu-title{text-align:right}.ant-menu-rtl.ant-menu-inline .ant-menu-submenu-title{padding-right:0;padding-left:34px}.ant-menu-rtl.ant-menu-vertical .ant-menu-submenu-title{padding-right:16px;padding-left:34px}.ant-menu-rtl.ant-menu-inline-collapsed.ant-menu-vertical .ant-menu-submenu-title{padding:0 calc(50% - 8px)}.ant-menu-rtl .ant-menu-item-group-list .ant-menu-item,.ant-menu-rtl .ant-menu-item-group-list .ant-menu-submenu-title{padding:0 28px 0 16px}.ant-menu-sub.ant-menu-inline{border:0}.ant-menu-rtl.ant-menu-sub.ant-menu-inline .ant-menu-item-group-title{padding-right:32px;padding-left:0}.vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:flex}.vue-recycle-scroller__slot{flex:auto 0 0}.vue-recycle-scroller__item-wrapper{flex:1;box-sizing:border-box;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{position:absolute;top:0;left:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.ant-tag{box-sizing:border-box;margin:0 8px 0 0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:inline-block;height:auto;padding:0 7px;font-size:12px;line-height:20px;white-space:nowrap;background:#fafafa;border:1px solid #d9d9d9;border-radius:2px;opacity:1;transition:all .3s}.ant-tag,.ant-tag a,.ant-tag a:hover{color:#000000d9}.ant-tag>a:first-child:last-child{display:inline-block;margin:0 -8px;padding:0 8px}.ant-tag-close-icon{margin-left:3px;color:#00000073;font-size:10px;cursor:pointer;transition:all .3s}.ant-tag-close-icon:hover{color:#000000d9}.ant-tag-has-color{border-color:transparent}.ant-tag-has-color,.ant-tag-has-color a,.ant-tag-has-color a:hover,.ant-tag-has-color .anticon-close,.ant-tag-has-color .anticon-close:hover{color:#fff}.ant-tag-checkable{background-color:transparent;border-color:transparent;cursor:pointer}.ant-tag-checkable:not(.ant-tag-checkable-checked):hover{color:#d03f0a}.ant-tag-checkable:active,.ant-tag-checkable-checked{color:#fff}.ant-tag-checkable-checked{background-color:#d03f0a}.ant-tag-checkable:active{background-color:#ab2800}.ant-tag-hidden{display:none}.ant-tag-pink{color:#c41d7f;background:#fff0f6;border-color:#ffadd2}.ant-tag-pink-inverse{color:#fff;background:#eb2f96;border-color:#eb2f96}.ant-tag-magenta{color:#c41d7f;background:#fff0f6;border-color:#ffadd2}.ant-tag-magenta-inverse{color:#fff;background:#eb2f96;border-color:#eb2f96}.ant-tag-red{color:#cf1322;background:#fff1f0;border-color:#ffa39e}.ant-tag-red-inverse{color:#fff;background:#f5222d;border-color:#f5222d}.ant-tag-volcano{color:#d4380d;background:#fff2e8;border-color:#ffbb96}.ant-tag-volcano-inverse{color:#fff;background:#fa541c;border-color:#fa541c}.ant-tag-orange{color:#d46b08;background:#fff7e6;border-color:#ffd591}.ant-tag-orange-inverse{color:#fff;background:#fa8c16;border-color:#fa8c16}.ant-tag-yellow{color:#d4b106;background:#feffe6;border-color:#fffb8f}.ant-tag-yellow-inverse{color:#fff;background:#fadb14;border-color:#fadb14}.ant-tag-gold{color:#d48806;background:#fffbe6;border-color:#ffe58f}.ant-tag-gold-inverse{color:#fff;background:#faad14;border-color:#faad14}.ant-tag-cyan{color:#08979c;background:#e6fffb;border-color:#87e8de}.ant-tag-cyan-inverse{color:#fff;background:#13c2c2;border-color:#13c2c2}.ant-tag-lime{color:#7cb305;background:#fcffe6;border-color:#eaff8f}.ant-tag-lime-inverse{color:#fff;background:#a0d911;border-color:#a0d911}.ant-tag-green{color:#389e0d;background:#f6ffed;border-color:#b7eb8f}.ant-tag-green-inverse{color:#fff;background:#52c41a;border-color:#52c41a}.ant-tag-blue{color:#096dd9;background:#e6f7ff;border-color:#91d5ff}.ant-tag-blue-inverse{color:#fff;background:#1890ff;border-color:#1890ff}.ant-tag-geekblue{color:#1d39c4;background:#f0f5ff;border-color:#adc6ff}.ant-tag-geekblue-inverse{color:#fff;background:#2f54eb;border-color:#2f54eb}.ant-tag-purple{color:#531dab;background:#f9f0ff;border-color:#d3adf7}.ant-tag-purple-inverse{color:#fff;background:#722ed1;border-color:#722ed1}.ant-tag-success{color:#52c41a;background:#f6ffed;border-color:#b7eb8f}.ant-tag-processing{color:#d03f0a;background:#fff1e6;border-color:#f7ae83}.ant-tag-error{color:#ff4d4f;background:#fff2f0;border-color:#ffccc7}.ant-tag-warning{color:#faad14;background:#fffbe6;border-color:#ffe58f}.ant-tag>.anticon+span,.ant-tag>span+.anticon{margin-left:7px}.ant-tag.ant-tag-rtl{margin-right:0;margin-left:8px;direction:rtl;text-align:right}.ant-tag-rtl .ant-tag-close-icon{margin-right:3px;margin-left:0}.ant-tag-rtl.ant-tag>.anticon+span,.ant-tag-rtl.ant-tag>span+.anticon{margin-right:7px;margin-left:0}.center[data-v-12928e97]{display:flex;justify-content:center;align-items:center}.tags-container[data-v-12928e97]{position:absolute;right:8px;bottom:8px;display:flex;width:calc(100% - 16px);flex-wrap:wrap-reverse;flex-direction:row-reverse}.tags-container>*[data-v-12928e97]{margin:0 0 4px 4px;font-size:14px;line-height:1.6}.close-icon[data-v-12928e97]{position:absolute;top:0;right:0;transform:translate(50%,-50%) scale(1.5);cursor:pointer;z-index:100;border-radius:100%;overflow:hidden;line-height:1;background-color:var(--zp-primary-background)}.file[data-v-12928e97]{padding:8px 16px;margin:8px;display:flex;align-items:center;background:var(--zp-primary-background);border-radius:8px;box-shadow:0 0 4px var(--zp-secondary-variant-background);position:relative}.file:hover .more[data-v-12928e97]{opacity:1}.file .more[data-v-12928e97]{opacity:0;transition:all .3s ease;position:absolute;top:4px;right:4px;cursor:pointer;z-index:100;font-size:500;font-size:1.8em;display:flex;align-items:center;justify-content:center;padding:4px;border-radius:100vh;color:#fff;background:var(--zp-icon-bg)}.file.grid[data-v-12928e97]{padding:0;display:inline-block;box-sizing:content-box;box-shadow:unset;background-color:var(--zp-secondary-background)}.file.grid[data-v-12928e97] .icon{font-size:8em}.file.grid[data-v-12928e97] .profile{padding:0 4px}.file.grid[data-v-12928e97] .profile .name{font-weight:500;padding:0}.file.grid[data-v-12928e97] .profile .basic-info{display:flex;justify-content:space-between;flex-direction:row;margin:0;font-size:.7em}.file.grid[data-v-12928e97] .ant-image,.file.grid[data-v-12928e97] .preview-icon-wrap{border:1px solid var(--zp-secondary);background-color:var(--zp-secondary-variant-background);border-radius:8px;overflow:hidden}.file.grid[data-v-12928e97] img,.file.grid[data-v-12928e97] .preview-icon-wrap>[role=img]{height:var(--a0c171a0);width:var(--a0c171a0);object-fit:contain}.file.clickable[data-v-12928e97]{cursor:pointer}.file.selected[data-v-12928e97]{outline:#0084ff solid 2px}.file .name[data-v-12928e97]{flex:1;padding:8px;word-break:break-all}.file .basic-info[data-v-12928e97]{overflow:hidden;display:flex;flex-direction:column;align-items:flex-end} diff --git a/vue/dist/assets/FileItem-7d7b8ef3.js b/vue/dist/assets/FileItem-f87590d0.js similarity index 99% rename from vue/dist/assets/FileItem-7d7b8ef3.js rename to vue/dist/assets/FileItem-f87590d0.js index 746601b..75ae727 100644 --- a/vue/dist/assets/FileItem-7d7b8ef3.js +++ b/vue/dist/assets/FileItem-f87590d0.js @@ -1,4 +1,4 @@ -var Yt=Object.defineProperty;var Zt=(e,t,n)=>t in e?Yt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ze=(e,t,n)=>(Zt(e,typeof t!="symbol"?t+"":t,n),n);import{P as xe,c3 as Xt,a as te,d as pe,bq as Pt,u as Ne,c as y,bZ as Ot,_ as en,V as ue,a0 as ye,aj as U,bL as st,a3 as lt,bo as tn,h as ie,c4 as nn,b as an,ay as rn,c5 as sn,a2 as ot,bK as ln,c6 as on,c7 as cn,$ as R,b0 as un,z as ne,aA as dn,a1 as fn,ag as we,c8 as vn,aR as pn,c9 as hn,ca as mn,aM as xt,am as je,bn as Ge,cb as gn,cc as yn,c2 as Ae,cd as bn,ce as wn,R as ce,ai as D,U as An,cf as Ye,x as L,cg as Tt,ch as ct,ci as kn,cj as Sn,ck as Bt,cl as K,k as Ze,ah as Cn,cm as Mt,ar as X,cn as Xe,l as ve,aC as Te,aw as In,ap as Qe,co as En,cp as ut,an as Nt,bQ as dt,bP as _n,cq as Ie,cr as Pn,aD as On,bO as $t,cs as xn,ct as Tn,t as Ve,as as ft,al as he,cu as vt,c1 as Bn,L as le,J as Mn,bX as pt,cv as Nn,bW as $n,cw as zn,cx as Qn,cy as Fn,at as Dn,au as Ln,ax as zt,o as Q,m as q,cz as Rn,cA as jn,cB as Vn,cC as Un,cD as Hn,a5 as Jn,y as J,cE as ke,C as ee,n as z,A as et,cF as ht,bG as Wn,cG as Kn,B as qn,N as Be,v as j,r as Z,W as Gn,cH as Yn,b_ as Zn,M as Xn,cI as ei,cJ as ti,p as oe,ae as ni,cK as ii,X as ai}from"./index-35e9ee40.js";import{h as ri,r as si,a as li,t as oi}from"./db-c6358829.js";import{t as Fe,l as de,C as ci,g as ui}from"./shortcut-9c26d495.js";var Qt=function(){return{arrow:{type:[Boolean,Object],default:void 0},trigger:{type:[Array,String]},overlay:xe.any,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},align:{type:Object},getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:{type:Object,default:void 0},forceRender:{type:Boolean,default:void 0},mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:void 0},onVisibleChange:{type:Function},"onUpdate:visible":{type:Function}}},De=Xt(),di=function(){return te(te({},Qt()),{},{type:De.type,size:String,htmlType:De.htmlType,href:String,disabled:{type:Boolean,default:void 0},prefixCls:String,icon:xe.any,title:String,loading:De.loading,onClick:{type:Function}})},fi=["type","disabled","loading","htmlType","class","overlay","trigger","align","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:visible"],vi=ue.Group;const Me=pe({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Pt(di(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:["icon","leftButton","rightButton","overlay"],setup:function(t,n){var i=n.slots,a=n.attrs,r=n.emit,f=function(m){r("update:visible",m),r("visibleChange",m)},l=Ne("dropdown-button",t),d=l.prefixCls,p=l.direction,E=l.getPopupContainer;return function(){var g,m,v=te(te({},t),a),s=v.type,o=s===void 0?"default":s,c=v.disabled,b=v.loading,S=v.htmlType,h=v.class,u=h===void 0?"":h,C=v.overlay,A=C===void 0?(g=i.overlay)===null||g===void 0?void 0:g.call(i):C,P=v.trigger,_=v.align,T=v.visible;v.onVisibleChange;var I=v.placement,F=I===void 0?p.value==="rtl"?"bottomLeft":"bottomRight":I,M=v.href,k=v.title,O=v.icon,H=O===void 0?((m=i.icon)===null||m===void 0?void 0:m.call(i))||y(Ot,null,null):O,N=v.mouseEnterDelay,w=v.mouseLeaveDelay,x=v.overlayClassName,$=v.overlayStyle,G=v.destroyPopupOnHide,V=v.onClick;v["onUpdate:visible"];var Y=en(v,fi),W={align:_,disabled:c,trigger:c?[]:P,placement:F,getPopupContainer:E.value,onVisibleChange:f,mouseEnterDelay:N,mouseLeaveDelay:w,visible:T,overlayClassName:x,overlayStyle:$,destroyPopupOnHide:G},re=y(ue,{type:o,disabled:c,loading:b,onClick:V,htmlType:S,href:M,title:k},{default:i.default}),se=y(ue,{type:o,icon:H},null);return y(vi,te(te({},Y),{},{class:ye(d.value,u)}),{default:function(){return[i.leftButton?i.leftButton({button:re}):re,y(fe,W,{default:function(){return[i.rightButton?i.rightButton({button:se}):se]},overlay:function(){return A}})]}})}}});var Ft=pe({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:Pt(Qt(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:["overlay"],setup:function(t,n){var i=n.slots,a=n.attrs,r=n.emit,f=Ne("dropdown",t),l=f.prefixCls,d=f.rootPrefixCls,p=f.direction,E=f.getPopupContainer,g=U(function(){var o=t.placement,c=o===void 0?"":o,b=t.transitionName;return b!==void 0?b:c.indexOf("top")>=0?"".concat(d.value,"-slide-down"):"".concat(d.value,"-slide-up")}),m=function(){var c,b,S,h=t.overlay||((c=i.overlay)===null||c===void 0?void 0:c.call(i)),u=Array.isArray(h)?h[0]:h;if(!u)return null;var C=u.props||{};st(!C.mode||C.mode==="vertical","Dropdown",'mode="'.concat(C.mode,`" is not supported for Dropdown's Menu.`));var A=C.selectable,P=A===void 0?!1:A,_=C.expandIcon,T=_===void 0?(b=u.children)===null||b===void 0||(S=b.expandIcon)===null||S===void 0?void 0:S.call(b):_,I=typeof T<"u"&&ot(T)?T:y("span",{class:"".concat(l.value,"-menu-submenu-arrow")},[y(ln,{class:"".concat(l.value,"-menu-submenu-arrow-icon")},null)]),F=ot(u)?lt(u,{mode:"vertical",selectable:P,expandIcon:function(){return I}}):u;return F},v=U(function(){var o=t.placement;if(!o)return p.value==="rtl"?"bottomRight":"bottomLeft";if(o.includes("Center")){var c=o.slice(0,o.indexOf("Center"));return st(!o.includes("Center"),"Dropdown","You are using '".concat(o,"' placement in Dropdown, which is deprecated. Try to use '").concat(c,"' instead.")),c}return o}),s=function(c){r("update:visible",c),r("visibleChange",c)};return function(){var o,c,b=t.arrow,S=t.trigger,h=t.disabled,u=t.overlayClassName,C=(o=i.default)===null||o===void 0?void 0:o.call(i)[0],A=lt(C,tn({class:ye(C==null||(c=C.props)===null||c===void 0?void 0:c.class,ie({},"".concat(l.value,"-rtl"),p.value==="rtl"),"".concat(l.value,"-trigger"))},h?{disabled:h}:{})),P=ye(u,ie({},"".concat(l.value,"-rtl"),p.value==="rtl")),_=h?[]:S,T;_&&_.indexOf("contextmenu")!==-1&&(T=!0);var I=nn({arrowPointAtCenter:an(b)==="object"&&b.pointAtCenter,autoAdjustOverflow:!0}),F=rn(te(te(te({},t),a),{},{builtinPlacements:I,overlayClassName:P,arrow:b,alignPoint:T,prefixCls:l.value,getPopupContainer:E.value,transitionName:g.value,trigger:_,onVisibleChange:s,placement:v.value}),["overlay","onUpdate:visible"]);return y(sn,F,{default:function(){return[A]},overlay:m})}}});Ft.Button=Me;const fe=Ft;var pi=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}},hi=pe({compatConfig:{MODE:3},name:"ACheckableTag",props:pi(),setup:function(t,n){var i=n.slots,a=n.emit,r=Ne("tag",t),f=r.prefixCls,l=function(E){var g=t.checked;a("update:checked",!g),a("change",!g),a("click",E)},d=U(function(){var p;return ye(f.value,(p={},ie(p,"".concat(f.value,"-checkable"),!0),ie(p,"".concat(f.value,"-checkable-checked"),t.checked),p))});return function(){var p;return y("span",{class:d.value,onClick:l},[(p=i.default)===null||p===void 0?void 0:p.call(i)])}}});const Ue=hi;var mi=new RegExp("^(".concat(on.join("|"),")(-inverse)?$")),gi=new RegExp("^(".concat(cn.join("|"),")$")),yi=function(){return{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:xe.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},"onUpdate:visible":Function,icon:xe.any}},ge=pe({compatConfig:{MODE:3},name:"ATag",props:yi(),slots:["closeIcon","icon"],setup:function(t,n){var i=n.slots,a=n.emit,r=n.attrs,f=Ne("tag",t),l=f.prefixCls,d=f.direction,p=R(!0);un(function(){t.visible!==void 0&&(p.value=t.visible)});var E=function(s){s.stopPropagation(),a("update:visible",!1),a("close",s),!s.defaultPrevented&&t.visible===void 0&&(p.value=!1)},g=U(function(){var v=t.color;return v?mi.test(v)||gi.test(v):!1}),m=U(function(){var v;return ye(l.value,(v={},ie(v,"".concat(l.value,"-").concat(t.color),g.value),ie(v,"".concat(l.value,"-has-color"),t.color&&!g.value),ie(v,"".concat(l.value,"-hidden"),!p.value),ie(v,"".concat(l.value,"-rtl"),d.value==="rtl"),v))});return function(){var v,s,o,c=t.icon,b=c===void 0?(v=i.icon)===null||v===void 0?void 0:v.call(i):c,S=t.color,h=t.closeIcon,u=h===void 0?(s=i.closeIcon)===null||s===void 0?void 0:s.call(i):h,C=t.closable,A=C===void 0?!1:C,P=function(){return A?u?y("span",{class:"".concat(l.value,"-close-icon"),onClick:E},[u]):y(fn,{class:"".concat(l.value,"-close-icon"),onClick:E},null):null},_={backgroundColor:S&&!g.value?S:void 0},T=b||null,I=(o=i.default)===null||o===void 0?void 0:o.call(i),F=T?y(ne,null,[T,y("span",null,[I])]):I,M="onClick"in r,k=y("span",{class:m.value,style:_},[F,P()]);return M?y(dn,null,{default:function(){return[k]}}):k}}});ge.CheckableTag=Ue;ge.install=function(e){return e.component(ge.name,ge),e.component(Ue.name,Ue),e};const bi=ge;fe.Button=Me;fe.install=function(e){return e.component(fe.name,fe),e.component(Me.name,Me),e};var wi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const Ai=wi;function mt(e){for(var t=1;t{document.addEventListener(...e),xt(()=>document.removeEventListener(...e))},Di="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghgg0Aj8i0JO4OzsrPv69Wv+hi2qPHr0qNvf39+iI97soRIh4f3z58/u7du3SXX7Xt7Z2enevHmzfQe+oSN2apSAPj09TSrb+XKI/f379+08+A0cNRE2ANkupk+ACNPvkSPcAAEibACyXUyfABGm3yNHuAECRNgAZLuYPgEirKlHu7u7XdyytGwHAd8jjNyng4OD7vnz51dbPT8/7z58+NB9+/bt6jU/TI+AGWHEnrx48eJ/EsSmHzx40L18+fLyzxF3ZVMjEyDCiEDjMYZZS5wiPXnyZFbJaxMhQIQRGzHvWR7XCyOCXsOmiDAi1HmPMMQjDpbpEiDCiL358eNHurW/5SnWdIBbXiDCiA38/Pnzrce2YyZ4//59F3ePLNMl4PbpiL2J0L979+7yDtHDhw8vtzzvdGnEXdvUigSIsCLAWavHp/+qM0BcXMd/q25n1vF57TYBp0a3mUzilePj4+7k5KSLb6gt6ydAhPUzXnoPR0dHl79WGTNCfBnn1uvSCJdegQhLI1vvCk+fPu2ePXt2tZOYEV6/fn31dz+shwAR1sP1cqvLntbEN9MxA9xcYjsxS1jWR4AIa2Ibzx0tc44fYX/16lV6NDFLXH+YL32jwiACRBiEbf5KcXoTIsQSpzXx4N28Ja4BQoK7rgXiydbHjx/P25TaQAJEGAguWy0+2Q8PD6/Ki4R8EVl+bzBOnZY95fq9rj9zAkTI2SxdidBHqG9+skdw43borCXO/ZcJdraPWdv22uIEiLA4q7nvvCug8WTqzQveOH26fodo7g6uFe/a17W3+nFBAkRYENRdb1vkkz1CH9cPsVy/jrhr27PqMYvENYNlHAIesRiBYwRy0V+8iXP8+/fvX11Mr7L7ECueb/r48eMqm7FuI2BGWDEG8cm+7G3NEOfmdcTQw4h9/55lhm7DekRYKQPZF2ArbXTAyu4kDYB2YxUzwg0gi/41ztHnfQG26HbGel/crVrm7tNY+/1btkOEAZ2M05r4FB7r9GbAIdxaZYrHdOsgJ/wCEQY0J74TmOKnbxxT9n3FgGGWWsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg==",Se=new WeakMap;function Li(e,t){return{useHookShareState:i=>{const a=yn();je(a),Se.has(a)||(Se.set(a,Ge(e(a,i??(t==null?void 0:t())))),xt(()=>{Se.delete(a)}));const r=Se.get(a);return je(r),{state:r,toRefs(){return gn(r)}}}}}var Ri={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"};const ji=Ri;function bt(e){for(var t=1;t(await Ae.value.get("/files",{params:{folder_path:e}})).data,qi=async e=>(await Ae.value.post("/delete_files",{file_paths:e})).data,Lt=async(e,t,n)=>(await Ae.value.post("/move_files",{file_paths:e,dest:t,create_dest_folder:n})).data,Gi=async(e,t,n)=>(await Ae.value.post("/copy_files",{file_paths:e,dest:t,create_dest_folder:n})).data,Yi=async e=>{await Ae.value.post("/mkdirs",{dest_folder:e})};var Rt={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress +var Yt=Object.defineProperty;var Zt=(e,t,n)=>t in e?Yt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ze=(e,t,n)=>(Zt(e,typeof t!="symbol"?t+"":t,n),n);import{P as xe,c3 as Xt,a as te,d as pe,bq as Pt,u as Ne,c as y,bZ as Ot,_ as en,V as ue,a0 as ye,aj as U,bL as st,a3 as lt,bo as tn,h as ie,c4 as nn,b as an,ay as rn,c5 as sn,a2 as ot,bK as ln,c6 as on,c7 as cn,$ as R,b0 as un,z as ne,aA as dn,a1 as fn,ag as we,c8 as vn,aR as pn,c9 as hn,ca as mn,aM as xt,am as je,bn as Ge,cb as gn,cc as yn,c2 as Ae,cd as bn,ce as wn,R as ce,ai as D,U as An,cf as Ye,x as L,cg as Tt,ch as ct,ci as kn,cj as Sn,ck as Bt,cl as K,k as Ze,ah as Cn,cm as Mt,ar as X,cn as Xe,l as ve,aC as Te,aw as In,ap as Qe,co as En,cp as ut,an as Nt,bQ as dt,bP as _n,cq as Ie,cr as Pn,aD as On,bO as $t,cs as xn,ct as Tn,t as Ve,as as ft,al as he,cu as vt,c1 as Bn,L as le,J as Mn,bX as pt,cv as Nn,bW as $n,cw as zn,cx as Qn,cy as Fn,at as Dn,au as Ln,ax as zt,o as Q,m as q,cz as Rn,cA as jn,cB as Vn,cC as Un,cD as Hn,a5 as Jn,y as J,cE as ke,C as ee,n as z,A as et,cF as ht,bG as Wn,cG as Kn,B as qn,N as Be,v as j,r as Z,W as Gn,cH as Yn,b_ as Zn,M as Xn,cI as ei,cJ as ti,p as oe,ae as ni,cK as ii,X as ai}from"./index-a4883aca.js";import{h as ri,r as si,a as li,t as oi}from"./db-a03371d5.js";import{t as Fe,l as de,C as ci,g as ui}from"./shortcut-c6713a64.js";var Qt=function(){return{arrow:{type:[Boolean,Object],default:void 0},trigger:{type:[Array,String]},overlay:xe.any,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},align:{type:Object},getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:{type:Object,default:void 0},forceRender:{type:Boolean,default:void 0},mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:void 0},onVisibleChange:{type:Function},"onUpdate:visible":{type:Function}}},De=Xt(),di=function(){return te(te({},Qt()),{},{type:De.type,size:String,htmlType:De.htmlType,href:String,disabled:{type:Boolean,default:void 0},prefixCls:String,icon:xe.any,title:String,loading:De.loading,onClick:{type:Function}})},fi=["type","disabled","loading","htmlType","class","overlay","trigger","align","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:visible"],vi=ue.Group;const Me=pe({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Pt(di(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:["icon","leftButton","rightButton","overlay"],setup:function(t,n){var i=n.slots,a=n.attrs,r=n.emit,f=function(m){r("update:visible",m),r("visibleChange",m)},l=Ne("dropdown-button",t),d=l.prefixCls,p=l.direction,E=l.getPopupContainer;return function(){var g,m,v=te(te({},t),a),s=v.type,o=s===void 0?"default":s,c=v.disabled,b=v.loading,S=v.htmlType,h=v.class,u=h===void 0?"":h,C=v.overlay,A=C===void 0?(g=i.overlay)===null||g===void 0?void 0:g.call(i):C,P=v.trigger,_=v.align,T=v.visible;v.onVisibleChange;var I=v.placement,F=I===void 0?p.value==="rtl"?"bottomLeft":"bottomRight":I,M=v.href,k=v.title,O=v.icon,H=O===void 0?((m=i.icon)===null||m===void 0?void 0:m.call(i))||y(Ot,null,null):O,N=v.mouseEnterDelay,w=v.mouseLeaveDelay,x=v.overlayClassName,$=v.overlayStyle,G=v.destroyPopupOnHide,V=v.onClick;v["onUpdate:visible"];var Y=en(v,fi),W={align:_,disabled:c,trigger:c?[]:P,placement:F,getPopupContainer:E.value,onVisibleChange:f,mouseEnterDelay:N,mouseLeaveDelay:w,visible:T,overlayClassName:x,overlayStyle:$,destroyPopupOnHide:G},re=y(ue,{type:o,disabled:c,loading:b,onClick:V,htmlType:S,href:M,title:k},{default:i.default}),se=y(ue,{type:o,icon:H},null);return y(vi,te(te({},Y),{},{class:ye(d.value,u)}),{default:function(){return[i.leftButton?i.leftButton({button:re}):re,y(fe,W,{default:function(){return[i.rightButton?i.rightButton({button:se}):se]},overlay:function(){return A}})]}})}}});var Ft=pe({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:Pt(Qt(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:["overlay"],setup:function(t,n){var i=n.slots,a=n.attrs,r=n.emit,f=Ne("dropdown",t),l=f.prefixCls,d=f.rootPrefixCls,p=f.direction,E=f.getPopupContainer,g=U(function(){var o=t.placement,c=o===void 0?"":o,b=t.transitionName;return b!==void 0?b:c.indexOf("top")>=0?"".concat(d.value,"-slide-down"):"".concat(d.value,"-slide-up")}),m=function(){var c,b,S,h=t.overlay||((c=i.overlay)===null||c===void 0?void 0:c.call(i)),u=Array.isArray(h)?h[0]:h;if(!u)return null;var C=u.props||{};st(!C.mode||C.mode==="vertical","Dropdown",'mode="'.concat(C.mode,`" is not supported for Dropdown's Menu.`));var A=C.selectable,P=A===void 0?!1:A,_=C.expandIcon,T=_===void 0?(b=u.children)===null||b===void 0||(S=b.expandIcon)===null||S===void 0?void 0:S.call(b):_,I=typeof T<"u"&&ot(T)?T:y("span",{class:"".concat(l.value,"-menu-submenu-arrow")},[y(ln,{class:"".concat(l.value,"-menu-submenu-arrow-icon")},null)]),F=ot(u)?lt(u,{mode:"vertical",selectable:P,expandIcon:function(){return I}}):u;return F},v=U(function(){var o=t.placement;if(!o)return p.value==="rtl"?"bottomRight":"bottomLeft";if(o.includes("Center")){var c=o.slice(0,o.indexOf("Center"));return st(!o.includes("Center"),"Dropdown","You are using '".concat(o,"' placement in Dropdown, which is deprecated. Try to use '").concat(c,"' instead.")),c}return o}),s=function(c){r("update:visible",c),r("visibleChange",c)};return function(){var o,c,b=t.arrow,S=t.trigger,h=t.disabled,u=t.overlayClassName,C=(o=i.default)===null||o===void 0?void 0:o.call(i)[0],A=lt(C,tn({class:ye(C==null||(c=C.props)===null||c===void 0?void 0:c.class,ie({},"".concat(l.value,"-rtl"),p.value==="rtl"),"".concat(l.value,"-trigger"))},h?{disabled:h}:{})),P=ye(u,ie({},"".concat(l.value,"-rtl"),p.value==="rtl")),_=h?[]:S,T;_&&_.indexOf("contextmenu")!==-1&&(T=!0);var I=nn({arrowPointAtCenter:an(b)==="object"&&b.pointAtCenter,autoAdjustOverflow:!0}),F=rn(te(te(te({},t),a),{},{builtinPlacements:I,overlayClassName:P,arrow:b,alignPoint:T,prefixCls:l.value,getPopupContainer:E.value,transitionName:g.value,trigger:_,onVisibleChange:s,placement:v.value}),["overlay","onUpdate:visible"]);return y(sn,F,{default:function(){return[A]},overlay:m})}}});Ft.Button=Me;const fe=Ft;var pi=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}},hi=pe({compatConfig:{MODE:3},name:"ACheckableTag",props:pi(),setup:function(t,n){var i=n.slots,a=n.emit,r=Ne("tag",t),f=r.prefixCls,l=function(E){var g=t.checked;a("update:checked",!g),a("change",!g),a("click",E)},d=U(function(){var p;return ye(f.value,(p={},ie(p,"".concat(f.value,"-checkable"),!0),ie(p,"".concat(f.value,"-checkable-checked"),t.checked),p))});return function(){var p;return y("span",{class:d.value,onClick:l},[(p=i.default)===null||p===void 0?void 0:p.call(i)])}}});const Ue=hi;var mi=new RegExp("^(".concat(on.join("|"),")(-inverse)?$")),gi=new RegExp("^(".concat(cn.join("|"),")$")),yi=function(){return{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:xe.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},"onUpdate:visible":Function,icon:xe.any}},ge=pe({compatConfig:{MODE:3},name:"ATag",props:yi(),slots:["closeIcon","icon"],setup:function(t,n){var i=n.slots,a=n.emit,r=n.attrs,f=Ne("tag",t),l=f.prefixCls,d=f.direction,p=R(!0);un(function(){t.visible!==void 0&&(p.value=t.visible)});var E=function(s){s.stopPropagation(),a("update:visible",!1),a("close",s),!s.defaultPrevented&&t.visible===void 0&&(p.value=!1)},g=U(function(){var v=t.color;return v?mi.test(v)||gi.test(v):!1}),m=U(function(){var v;return ye(l.value,(v={},ie(v,"".concat(l.value,"-").concat(t.color),g.value),ie(v,"".concat(l.value,"-has-color"),t.color&&!g.value),ie(v,"".concat(l.value,"-hidden"),!p.value),ie(v,"".concat(l.value,"-rtl"),d.value==="rtl"),v))});return function(){var v,s,o,c=t.icon,b=c===void 0?(v=i.icon)===null||v===void 0?void 0:v.call(i):c,S=t.color,h=t.closeIcon,u=h===void 0?(s=i.closeIcon)===null||s===void 0?void 0:s.call(i):h,C=t.closable,A=C===void 0?!1:C,P=function(){return A?u?y("span",{class:"".concat(l.value,"-close-icon"),onClick:E},[u]):y(fn,{class:"".concat(l.value,"-close-icon"),onClick:E},null):null},_={backgroundColor:S&&!g.value?S:void 0},T=b||null,I=(o=i.default)===null||o===void 0?void 0:o.call(i),F=T?y(ne,null,[T,y("span",null,[I])]):I,M="onClick"in r,k=y("span",{class:m.value,style:_},[F,P()]);return M?y(dn,null,{default:function(){return[k]}}):k}}});ge.CheckableTag=Ue;ge.install=function(e){return e.component(ge.name,ge),e.component(Ue.name,Ue),e};const bi=ge;fe.Button=Me;fe.install=function(e){return e.component(fe.name,fe),e.component(Me.name,Me),e};var wi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const Ai=wi;function mt(e){for(var t=1;t{document.addEventListener(...e),xt(()=>document.removeEventListener(...e))},Di="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghgg0Aj8i0JO4OzsrPv69Wv+hi2qPHr0qNvf39+iI97soRIh4f3z58/u7du3SXX7Xt7Z2enevHmzfQe+oSN2apSAPj09TSrb+XKI/f379+08+A0cNRE2ANkupk+ACNPvkSPcAAEibACyXUyfABGm3yNHuAECRNgAZLuYPgEirKlHu7u7XdyytGwHAd8jjNyng4OD7vnz51dbPT8/7z58+NB9+/bt6jU/TI+AGWHEnrx48eJ/EsSmHzx40L18+fLyzxF3ZVMjEyDCiEDjMYZZS5wiPXnyZFbJaxMhQIQRGzHvWR7XCyOCXsOmiDAi1HmPMMQjDpbpEiDCiL358eNHurW/5SnWdIBbXiDCiA38/Pnzrce2YyZ4//59F3ePLNMl4PbpiL2J0L979+7yDtHDhw8vtzzvdGnEXdvUigSIsCLAWavHp/+qM0BcXMd/q25n1vF57TYBp0a3mUzilePj4+7k5KSLb6gt6ydAhPUzXnoPR0dHl79WGTNCfBnn1uvSCJdegQhLI1vvCk+fPu2ePXt2tZOYEV6/fn31dz+shwAR1sP1cqvLntbEN9MxA9xcYjsxS1jWR4AIa2Ibzx0tc44fYX/16lV6NDFLXH+YL32jwiACRBiEbf5KcXoTIsQSpzXx4N28Ja4BQoK7rgXiydbHjx/P25TaQAJEGAguWy0+2Q8PD6/Ki4R8EVl+bzBOnZY95fq9rj9zAkTI2SxdidBHqG9+skdw43borCXO/ZcJdraPWdv22uIEiLA4q7nvvCug8WTqzQveOH26fodo7g6uFe/a17W3+nFBAkRYENRdb1vkkz1CH9cPsVy/jrhr27PqMYvENYNlHAIesRiBYwRy0V+8iXP8+/fvX11Mr7L7ECueb/r48eMqm7FuI2BGWDEG8cm+7G3NEOfmdcTQw4h9/55lhm7DekRYKQPZF2ArbXTAyu4kDYB2YxUzwg0gi/41ztHnfQG26HbGel/crVrm7tNY+/1btkOEAZ2M05r4FB7r9GbAIdxaZYrHdOsgJ/wCEQY0J74TmOKnbxxT9n3FgGGWWsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg==",Se=new WeakMap;function Li(e,t){return{useHookShareState:i=>{const a=yn();je(a),Se.has(a)||(Se.set(a,Ge(e(a,i??(t==null?void 0:t())))),xt(()=>{Se.delete(a)}));const r=Se.get(a);return je(r),{state:r,toRefs(){return gn(r)}}}}}var Ri={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"};const ji=Ri;function bt(e){for(var t=1;t(await Ae.value.get("/files",{params:{folder_path:e}})).data,qi=async e=>(await Ae.value.post("/delete_files",{file_paths:e})).data,Lt=async(e,t,n)=>(await Ae.value.post("/move_files",{file_paths:e,dest:t,create_dest_folder:n})).data,Gi=async(e,t,n)=>(await Ae.value.post("/copy_files",{file_paths:e,dest:t,create_dest_folder:n})).data,Yi=async e=>{await Ae.value.post("/mkdirs",{dest_folder:e})};var Rt={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress * @license MIT */(function(e,t){(function(n,i){e.exports=i})(bn,function(){var n={};n.version="0.3.5";var i=n.settings={minimum:.08,easing:"linear",positionUsing:"",speed:200,trickle:!0,trickleSpeed:200,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};n.configure=function(s){var o,c;for(o in s)c=s[o],c!==void 0&&s.hasOwnProperty(o)&&(i[o]=c);return this},n.status=null,n.set=function(s){var o=n.isStarted();s=a(s,i.minimum,1),n.status=s===1?null:s;var c=n.render(!o),b=c.querySelector(i.barSelector),S=i.speed,h=i.easing;return c.offsetWidth,l(function(u){i.positionUsing===""&&(i.positionUsing=n.getPositioningCSS()),d(b,f(s,S,h)),s===1?(d(c,{transition:"none",opacity:1}),c.offsetWidth,setTimeout(function(){d(c,{transition:"all "+S+"ms linear",opacity:0}),setTimeout(function(){n.remove(),u()},S)},S)):setTimeout(u,S)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var s=function(){setTimeout(function(){n.status&&(n.trickle(),s())},i.trickleSpeed)};return i.trickle&&s(),this},n.done=function(s){return!s&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(s){var o=n.status;return o?o>1?void 0:(typeof s!="number"&&(o>=0&&o<.2?s=.1:o>=.2&&o<.5?s=.04:o>=.5&&o<.8?s=.02:o>=.8&&o<.99?s=.005:s=0),o=a(o+s,0,.994),n.set(o)):n.start()},n.trickle=function(){return n.inc()},function(){var s=0,o=0;n.promise=function(c){return!c||c.state()==="resolved"?this:(o===0&&n.start(),s++,o++,c.always(function(){o--,o===0?(s=0,n.done()):n.set((s-o)/s)}),this)}}(),n.getElement=function(){var s=n.getParent();if(s){var o=Array.prototype.slice.call(s.querySelectorAll(".nprogress")).filter(function(c){return c.parentElement===s});if(o.length>0)return o[0]}return null},n.getParent=function(){if(i.parent instanceof HTMLElement)return i.parent;if(typeof i.parent=="string")return document.querySelector(i.parent)},n.render=function(s){if(n.isRendered())return n.getElement();E(document.documentElement,"nprogress-busy");var o=document.createElement("div");o.id="nprogress",o.className="nprogress",o.innerHTML=i.template;var c=o.querySelector(i.barSelector),b=s?"-100":r(n.status||0),S=n.getParent(),h;return d(c,{transition:"all 0 linear",transform:"translate3d("+b+"%,0,0)"}),i.showSpinner||(h=o.querySelector(i.spinnerSelector),h&&v(h)),S!=document.body&&E(S,"nprogress-custom-parent"),S.appendChild(o),o},n.remove=function(){n.status=null,g(document.documentElement,"nprogress-busy"),g(n.getParent(),"nprogress-custom-parent");var s=n.getElement();s&&v(s)},n.isRendered=function(){return!!n.getElement()},n.getPositioningCSS=function(){var s=document.body.style,o="WebkitTransform"in s?"Webkit":"MozTransform"in s?"Moz":"msTransform"in s?"ms":"OTransform"in s?"O":"";return o+"Perspective"in s?"translate3d":o+"Transform"in s?"translate":"margin"};function a(s,o,c){return sc?c:s}function r(s){return(-1+s)*100}function f(s,o,c){var b;return i.positionUsing==="translate3d"?b={transform:"translate3d("+r(s)+"%,0,0)"}:i.positionUsing==="translate"?b={transform:"translate("+r(s)+"%,0)"}:b={"margin-left":r(s)+"%"},b.transition="all "+o+"ms "+c,b}var l=function(){var s=[];function o(){var c=s.shift();c&&c(o)}return function(c){s.push(c),s.length==1&&o()}}(),d=function(){var s=["Webkit","O","Moz","ms"],o={};function c(u){return u.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(C,A){return A.toUpperCase()})}function b(u){var C=document.body.style;if(u in C)return u;for(var A=s.length,P=u.charAt(0).toUpperCase()+u.slice(1),_;A--;)if(_=s[A]+P,_ in C)return _;return u}function S(u){return u=c(u),o[u]||(o[u]=b(u))}function h(u,C,A){C=S(C),u.style[C]=A}return function(u,C){var A=arguments,P,_;if(A.length==2)for(P in C)_=C[P],_!==void 0&&C.hasOwnProperty(P)&&h(u,P,_);else h(u,A[1],A[2])}}();function p(s,o){var c=typeof s=="string"?s:m(s);return c.indexOf(" "+o+" ")>=0}function E(s,o){var c=m(s),b=c+o;p(c,o)||(s.className=b.substring(1))}function g(s,o){var c=m(s),b;p(s,o)&&(b=c.replace(" "+o+" "," "),s.className=b.substring(1,b.length-1))}function m(s){return(" "+(s&&s.className||"")+" ").replace(/\s+/gi," ")}function v(s){s&&s.parentNode&&s.parentNode.removeChild(s)}return n})})(Rt);var Zi=Rt.exports;const Xi=wn(Zi),ea=e=>{const t=R("");return new Promise(n=>{ce.confirm({title:D("inputFolderName"),content:()=>y(An,{value:t.value,"onUpdate:value":i=>t.value=i},null),async onOk(){if(!t.value)return;const i=Ye(e,t.value);await Yi(i),n()}})})},jt=()=>y("p",{style:{background:"var(--zp-secondary-background)",padding:"8px",borderLeft:"4px solid var(--primary-color)"}},[L("Tips: "),D("multiSelectTips")]);function ta(){const e=[];for(let a=0;a<72;a++){const f=`hsl(${a*7.2}, 90%, 35%)`;e.push(f)}return e}const At=ta(),Vt=Tt("useTagStore",()=>{const e=Ge(new Map),t=async r=>{if(r=r.filter(f=>!e.has(f)),!!r.length)try{r.forEach(l=>e.set(l,[]));const f=await ri(r);for(const l in f)e.set(l,f[l])}catch{r.forEach(f=>e.delete(f))}},n=new Map;return{tagMap:e,getColor:r=>{let f=n.get(r);if(!f){const l=ct.hash.sha256.hash(r),d=parseInt(ct.codec.hex.fromBits(l),16)%At.length;f=At[d],n.set(r,f)}return f},fetchImageTags:t,refreshTags:async r=>{r.forEach(f=>e.delete(f)),await t(r)}}}),na=Tt("useBatchDownloadStore",()=>{const e=R([]);return{selectdFiles:e,addFiles:n=>{e.value=kn([...e.value,...n])}}});class kt{constructor(t,n=Sn.CREATED_TIME_DESC){ze(this,"root");ze(this,"execQueue",[]);this.sortMethod=n,this.root={children:[],info:{name:t,size:"-",bytes:0,created_time:"",is_under_scanned_path:!0,date:"",type:"dir",fullpath:t}},this.fetchChildren(this.root)}reset(){return this.root.children=[],this.fetchChildren(this.root)}get images(){const t=n=>n.children.map(i=>{if(i.info.type==="dir")return t(i);if(K(i.info.name))return i.info}).filter(i=>i).flat(1);return t(this.root)}get isCompleted(){return this.execQueue.length===0}async fetchChildren(t){const{files:n}=await me(t.info.fullpath);return t.children=Bt(n,this.sortMethod).map(i=>({info:i,children:[]})),this.execQueue.shift(),this.execQueue.unshift(...t.children.filter(i=>i.info.type==="dir").map(i=>({fn:()=>this.fetchChildren(i),...i}))),t}async next(){const t=Mi(this.execQueue);if(!t)return null;const n=await t.fn();return this.execQueue=this.execQueue.slice(),this.root={...this.root},n}}function Le(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!$n(e)}const Ee=new Map,B=Ze(),ia=na(),Ut=Vt(),St=Cn(),Ce=new BroadcastChannel("iib-image-transfer-bus"),{eventEmitter:_e,useEventListen:He}=Mt(),{useHookShareState:ae}=Li((e,{images:t})=>{const n=R({tabIdx:-1,paneIdx:-1}),i=U(()=>de(a.value)),a=R([]),r=U(()=>{var S;return a.value.map(h=>h.curr).slice((S=B.conf)!=null&&S.is_win?1:0)}),f=U(()=>Ye(...r.value)),l=R(B.defaultSortingMethod),d=R(n.value.walkModePath?new kt(n.value.walkModePath,l.value):void 0);ve([()=>n.value.walkModePath,l],()=>{d.value=n.value.walkModePath?new kt(n.value.walkModePath,l.value):void 0});const p=Ge(new Set);ve(i,()=>p.clear());const E=U(()=>{var C;if(t.value)return t.value;if(d.value)return d.value.images.filter(A=>!p.has(A.fullpath));if(!i.value)return[];const S=((C=i.value)==null?void 0:C.files)??[],h=l.value;return Bt((A=>B.onlyFoldersAndImages?A.filter(P=>P.type==="dir"||K(P.name)):A)(S),h).filter(A=>!p.has(A.fullpath))}),g=R([]),m=R(-1),v=U(()=>d.value?!d.value.isCompleted:!1),s=R(!1),o=R(!1),c=()=>{var S,h,u;return(u=(h=(S=B.tabList)==null?void 0:S[n.value.tabIdx])==null?void 0:h.panes)==null?void 0:u[n.value.paneIdx]},b=Mt();return b.useEventListen("selectAll",()=>{console.log(`select all 0 -> ${E.value.length}`),g.value=Dt(0,E.value.length)}),{previewing:o,spinning:s,canLoadNext:v,multiSelectedIdxs:g,previewIdx:m,basePath:r,currLocation:f,currPage:i,stack:a,sortMethod:l,sortedFiles:E,scroller:R(),stackViewEl:R(),props:n,getPane:c,walker:d,deletedFiles:p,...b}},()=>({images:R()}));function Va(){const{previewIdx:e,eventEmitter:t,canLoadNext:n,previewing:i,sortedFiles:a,scroller:r,props:f}=ae().toRefs(),{state:l}=ae();let d=null;const p=(v,s)=>{var o;i.value=v,d!=null&&!v&&s&&((o=r.value)==null||o.scrollToItem(d),d=null)},E=()=>{f.value.walkModePath&&!m("next")&&n&&(X.info(D("loadingNextFolder")),t.value.emit("loadNextDir",!0))};be("keydown",v=>{var s;if(i.value){let o=e.value;if(["ArrowDown","ArrowRight"].includes(v.key))for(o++;a.value[o]&&!K(a.value[o].name);)o++;else if(["ArrowUp","ArrowLeft"].includes(v.key))for(o--;a.value[o]&&!K(a.value[o].name);)o--;if(K((s=a.value[o])==null?void 0:s.name)??""){e.value=o;const c=r.value;c&&!(o>=c.$_startIndex&&o<=c.$_endIndex)&&(d=o)}E()}});const g=v=>{var o;let s=e.value;if(v==="next")for(s++;a.value[s]&&!K(a.value[s].name);)s++;else if(v==="prev")for(s--;a.value[s]&&!K(a.value[s].name);)s--;if(K((o=a.value[s])==null?void 0:o.name)??""){e.value=s;const c=r.value;c&&!(s>=c.$_startIndex&&s<=c.$_endIndex)&&(d=s)}E()},m=v=>{var o;let s=e.value;if(v==="next")for(s++;a.value[s]&&!K(a.value[s].name);)s++;else if(v==="prev")for(s--;a.value[s]&&!K(a.value[s].name);)s--;return K((o=a.value[s])==null?void 0:o.name)??""};return He("removeFiles",async()=>{var v;i.value&&!l.sortedFiles[e.value]&&(X.info(D("manualExitFullScreen"),5),await Xe(500),(v=document.querySelector(".ant-image-preview-operations-operation .anticon-close"))==null||v.click(),e.value=-1)}),{previewIdx:e,onPreviewVisibleChange:p,previewing:i,previewImgMove:g,canPreview:m}}function Ua(){const e=R(),{scroller:t,stackViewEl:n,stack:i,currPage:a,currLocation:r,useEventListen:f,eventEmitter:l,getPane:d,props:p,deletedFiles:E,walker:g,sortedFiles:m}=ae().toRefs();ve(()=>i.value.length,Te((w,x)=>{var $;w!==x&&(($=t.value)==null||$.scrollToItem(0))},300));const v=async w=>{var x;await S(w),p.value.walkModePath&&(await Xe(),await((x=g.value)==null?void 0:x.reset()),l.value.emit("loadNextDir"))};In(async()=>{var w;if(!i.value.length){const x=await me("/");i.value.push({files:x.files,curr:"/"})}e.value=new Xi,e.value.configure({parent:n.value}),p.value.path&&p.value.path!=="/"?await v(p.value.walkModePath??p.value.path):(w=B.conf)!=null&&w.home&&S(B.conf.home)}),ve(r,Te(w=>{const x=d.value();if(!x)return;x.path=w;const $=x.path.split("/").pop(),V=(()=>{var Y;if(!p.value.walkModePath){const W=Ie(w);for(const[re,se]of Object.entries(B.pathAliasMap))if(W.startsWith(se))return W.replace(se,re);return $}return"Walk: "+(((Y=B.quickMovePaths.find(W=>W.dir===x.walkModePath))==null?void 0:Y.zh)??$)})();x.name=Qe("div",{style:"display:flex;align-items:center"},[Qe(Ui),Qe("span",{class:"line-clamp-1",style:"max-width: 256px"},V)]),x.nameFallbackStr=V,B.recent=B.recent.filter(Y=>Y.key!==x.key),B.recent.unshift({path:w,key:x.key}),B.recent.length>20&&(B.recent=B.recent.slice(0,20))},300));const s=()=>Ve(r.value),o=async w=>{var x,$;if(w.type==="dir")try{(x=e.value)==null||x.start();const{files:G}=await me(w.fullpath);i.value.push({files:G,curr:w.name})}finally{($=e.value)==null||$.done()}},c=w=>{for(;w(je(B.conf,"global.conf load failed"),B.conf.is_win?w.toLowerCase()==x.toLowerCase():w==x),S=async w=>{var $,G;const x=i.value.slice();try{En(w)||(w=Ye((($=B.conf)==null?void 0:$.sd_cwd)??"/",w));const V=ut(w),Y=i.value.map(W=>W.curr);for(Y.shift();Y[0]&&V[0]&&b(Y[0],V[0]);)Y.shift(),V.shift();for(let W=0;Wb(se.name,W));if(!re)throw console.error({frags:V,frag:W,stack:Nt(i.value)}),new Error(`${W} not found`);await o(re)}}catch(V){throw X.error(D("moveFailedCheckPath")+(V instanceof Error?V.message:"")),console.error(w,ut(w),a.value),i.value=x,V}},h=dt(async()=>{var w,x,$;try{if((w=e.value)==null||w.start(),g.value)await g.value.reset(),l.value.emit("loadNextDir");else{const{files:G}=await me(i.value.length===1?"/":r.value);de(i.value).files=G}E.value.clear(),(x=t.value)==null||x.scrollToItem(0),X.success(D("refreshCompleted"))}finally{($=e.value)==null||$.done()}});_n("returnToIIB",dt(async()=>{var w,x;if(!p.value.walkModePath)try{(w=e.value)==null||w.start();const{files:$}=await me(i.value.length===1?"/":r.value);de(i.value).files.map(V=>V.date).join()!==$.map(V=>V.date).join()&&(de(i.value).files=$,X.success(D("autoUpdate")))}finally{(x=e.value)==null||x.done()}})),f.value("refresh",h);const u=w=>{p.value.walkModePath&&(d.value().walkModePath=w),v(w)},C=U(()=>B.quickMovePaths.map(w=>({...w,path:Ie(w.dir)}))),A=U(()=>{const w=Ie(r.value);return C.value.find($=>$.path===w)}),P=async()=>{const w=A.value;if(w){if(!w.can_delete)return;await si(r.value),X.success(D("removeCompleted"))}else await li(r.value),X.success(D("addCompleted"));ft.emit("searchIndexExpired"),ft.emit("updateGlobalSetting")},_=R(!1),T=R(r.value),I=()=>{_.value=!0,T.value=r.value},F=async()=>{await S(T.value),_.value=!1};be("click",()=>{_.value=!1});const M=()=>{const w=parent.location,x=w.href.substring(0,w.href.length-w.search.length),$=new URLSearchParams(w.search);$.set("action","open"),g.value&&$.set("walk","1"),$.set("path",r.value);const G=`${x}?${$.toString()}`;Ve(G,D("copyLocationUrlSuccessMsg"))},k=()=>l.value.emit("selectAll"),O=async()=>{await ea(r.value),await h()},H=()=>{const w=r.value;Ee.set(w,i.value);const x=B.tabList[p.value.tabIdx],$={type:"local",key:he(),path:w,name:D("local"),stackKey:w,walkModePath:w};x.panes.push($),x.key=$.key},N=U(()=>!g.value&&m.value.some(w=>w.type==="dir"));return{locInputValue:T,isLocationEditing:_,onLocEditEnter:F,onEditBtnClick:I,addToSearchScanPathAndQuickMove:P,searchPathInfo:A,refresh:h,copyLocation:s,back:c,openNext:o,currPage:a,currLocation:r,to:S,stack:i,scroller:t,share:M,selectAll:k,quickMoveTo:u,onCreateFloderBtnClick:O,onWalkBtnClick:H,showWalkButton:N}}function Ha(){const{scroller:e,sortedFiles:t,sortMethod:n,currLocation:i,stackViewEl:a,canLoadNext:r,previewIdx:f,props:l,walker:d}=ae().toRefs(),{state:p}=ae(),E=R(!1),g=R(B.defaultGridCellWidth),m=U(()=>g.value+16),v=44,{width:s}=Pn(a),o=U(()=>~~(s.value/m.value)),c=U(()=>{const A=m.value;return{first:A+(g.value<=160?0:v),second:A}}),b=R(!1),S=async()=>{var A;if(!(b.value||!l.value.walkModePath||!r.value))try{b.value=!0,await((A=d.value)==null?void 0:A.next())}finally{b.value=!1}},h=async(A=!1)=>{const P=e.value,_=()=>A?f.value:(P==null?void 0:P.$_endIndex)??0;for(;!t.value.length||_()>t.value.length-20&&r.value;)await Xe(30),await S()};p.useEventListen("loadNextDir",h);const u=()=>{const A=e.value;if(A){const P=t.value.slice(Math.max(A.$_startIndex-10,0),A.$_endIndex+10).filter(_=>_.is_under_scanned_path&&K(_.name)).map(_=>_.fullpath);Ut.fetchImageTags(P)}};ve(i,Te(u,150));const C=Te(()=>{h(),u()},300);return{gridItems:o,sortedFiles:t,sortMethodConv:On,moreActionsDropdownShow:E,gridSize:m,sortMethod:n,onScroll:C,loadNextDir:S,loadNextDirLoading:b,canLoadNext:r,itemSize:c,cellWidth:g,onViewedImagesChange:u}}function Ja(){const{currLocation:e,sortedFiles:t,currPage:n,multiSelectedIdxs:i,eventEmitter:a,walker:r}=ae().toRefs(),f=()=>{i.value=[]};return be("click",f),be("blur",f),ve(n,f),{onFileDragStart:(E,g)=>{const m=Nt(t.value[g]);St.fileDragging=!0,console.log("onFileDragStart set drag file ",E,g,m);const v=[m];let s=m.type==="dir";if(i.value.includes(g)){const c=i.value.map(b=>t.value[b]);v.push(...c),s=c.some(b=>b.type==="dir")}const o={includeDir:s,loc:e.value||"search-result",path:vt(v,"fullpath").map(c=>c.fullpath),nodes:vt(v,"fullpath"),__id:"FileTransferData"};E.dataTransfer.setData("text/plain",JSON.stringify(o))},onDrop:async E=>{if(r.value)return;const g=Bn(E);if(!g)return;const m=e.value;if(g.loc===m)return;const v=$t(),s=async()=>v.pushAction(async()=>{await Gi(g.path,m),a.value.emit("refresh"),ce.destroyAll()}),o=()=>v.pushAction(async()=>{await Lt(g.path,m),_e.emit("removeFiles",{paths:g.path,loc:g.loc}),a.value.emit("refresh"),ce.destroyAll()});ce.confirm({title:D("confirm")+"?",width:"60vw",content:()=>{let c,b,S;return y("div",null,[y("div",null,[`${D("moveSelectedFilesTo")} ${m}`,y("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[g.path.map(h=>y("li",null,[h.split(/[/\\]/).pop()]))])]),y(jt,null,null),y("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"},class:"actions"},[y(ue,{onClick:ce.destroyAll},Le(c=D("cancel"))?c:{default:()=>[c]}),y(ue,{type:"primary",loading:!v.isIdle,onClick:s},Le(b=D("copy"))?b:{default:()=>[b]}),y(ue,{type:"primary",loading:!v.isIdle,onClick:o},Le(S=D("move"))?S:{default:()=>[S]})])])},maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"})},multiSelectedIdxs:i,onFileDragEnd:()=>{St.fileDragging=!1}}}function Wa({openNext:e}){const t=R(!1),n=R(""),{sortedFiles:i,previewIdx:a,multiSelectedIdxs:r,stack:f,currLocation:l,spinning:d,previewing:p,stackViewEl:E,eventEmitter:g,props:m,deletedFiles:v}=ae().toRefs(),s=Ie;He("removeFiles",({paths:h,loc:u})=>{s(u)!==s(l.value)||!de(f.value)||(h.forEach(A=>v.value.add(A)),h.filter(K).forEach(A=>v.value.add(A.replace(/\.\w+$/,".txt"))))}),He("addFiles",({files:h,loc:u})=>{if(s(u)!==s(l.value))return;const C=de(f.value);C&&C.files.unshift(...h)});const o=$t(),c=async(h,u,C)=>{a.value=C,B.fullscreenPreviewInitialUrl=le(u);const A=r.value.indexOf(C);if(h.shiftKey){if(A!==-1)r.value.splice(A,1);else{r.value.push(C),r.value.sort((T,I)=>T-I);const P=r.value[0],_=r.value[r.value.length-1];r.value=Dt(P,_+1)}h.stopPropagation()}else h.ctrlKey||h.metaKey?(A!==-1?r.value.splice(A,1):r.value.push(C),h.stopPropagation()):await e(u)},b=async(h,u,C)=>{var I,F,M;const A=le(u),P=l.value,_=()=>{let k=[];return r.value.includes(C)?k=r.value.map(O=>i.value[O]):k.push(u),k},T=async k=>{if(!d.value)try{d.value=!0,await zn(u.fullpath),Ce.postMessage(JSON.stringify({event:"click_hidden_button",btnEleId:"iib_hidden_img_update_trigger"}));const O=setTimeout(()=>Qn.warn({message:D("long_loading"),duration:20}),5e3);await Fn(),clearTimeout(O),Ce.postMessage(JSON.stringify({event:"click_hidden_button",btnEleId:`iib_hidden_tab_${k}`}))}catch(O){console.error(O),X.error("发送图像失败,请携带console的错误消息找开发者")}finally{d.value=!1}};if(`${h.key}`.startsWith("toggle-tag-")){const k=+`${h.key}`.split("toggle-tag-")[1],{is_remove:O}=await oi({tag_id:k,img_path:u.fullpath}),H=(F=(I=B.conf)==null?void 0:I.all_custom_tags.find(N=>N.id===k))==null?void 0:F.name;Ut.refreshTags([u.fullpath]),X.success(D(O?"removedTagFromImage":"addedTagToImage",{tag:H}));return}switch(h.key){case"previewInNewWindow":return window.open(A);case"download":return window.open(le(u,!0));case"copyPreviewUrl":return Ve(parent.document.location.origin+A);case"send2txt2img":return T("txt2img");case"send2img2img":return T("img2img");case"send2inpaint":return T("inpaint");case"send2extras":return T("extras");case"send2savedDir":{const k=B.quickMovePaths.find(N=>N.key==="outdir_save");if(!k)return X.error(D("unknownSavedDir"));const O=Nn(k.dir,(M=B.conf)==null?void 0:M.sd_cwd),H=_();await Lt(H.map(N=>N.fullpath),O,!0),_e.emit("removeFiles",{paths:H.map(N=>N.fullpath),loc:l.value}),_e.emit("addFiles",{files:H,loc:O});break}case"send2controlnet-img2img":case"send2controlnet-txt2img":{const k=h.key.split("-")[1];Ce.postMessage(JSON.stringify({event:"send_to_control_net",type:k,url:le(u)}));break}case"send2outpaint":{n.value=await o.pushAction(()=>pt(u.fullpath)).res;const[k,O]=(n.value||"").split(` `);Ce.postMessage(JSON.stringify({event:"send_to_outpaint",url:le(u),prompt:k,negPrompt:O.slice(17)}));break}case"openWithWalkMode":{Ee.set(P,f.value);const k=B.tabList[m.value.tabIdx],O={type:"local",key:he(),path:u.fullpath,name:D("local"),stackKey:P,walkModePath:u.fullpath};k.panes.push(O),k.key=O.key;break}case"openInNewTab":{Ee.set(P,f.value);const k=B.tabList[m.value.tabIdx],O={type:"local",key:he(),path:u.fullpath,name:D("local"),stackKey:P};k.panes.push(O),k.key=O.key;break}case"openOnTheRight":{Ee.set(P,f.value);let k=B.tabList[m.value.tabIdx+1];k||(k={panes:[],key:"",id:he()},B.tabList[m.value.tabIdx+1]=k);const O={type:"local",key:he(),path:u.fullpath,name:D("local"),stackKey:P};k.panes.push(O),k.key=O.key;break}case"send2BatchDownload":{ia.addFiles(_());break}case"viewGenInfo":{t.value=!0,n.value=await o.pushAction(()=>pt(u.fullpath)).res;break}case"openWithLocalFileBrowser":{await Mn(u.fullpath);break}case"deleteFiles":{const k=_(),O=async()=>{const H=k.map(N=>N.fullpath);await qi(H),X.success(D("deleteSuccess")),_e.emit("removeFiles",{paths:H,loc:l.value})};if(k.length===1&&B.ignoredConfirmActions.deleteOneOnly)return O();await new Promise(H=>{ce.confirm({title:D("confirmDelete"),maskClosable:!0,width:"60vw",content:()=>y("div",null,[y("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[k.map(N=>y("li",null,[N.fullpath.split(/[/\\]/).pop()]))]),y(jt,null,null),y(ci,{checked:B.ignoredConfirmActions.deleteOneOnly,"onUpdate:checked":N=>B.ignoredConfirmActions.deleteOneOnly=N},{default:()=>[D("deleteOneOnlySkipConfirm"),L(" ("),D("resetOnGlobalSettingsPage"),L(")")]})]),async onOk(){await O(),H()}})});break}}return{}},{isOutside:S}=xn(E);return be("keydown",h=>{var C,A,P;const u=ui(h);if(p.value){const _=(C=Object.entries(B.shortcut).find(T=>T[1]===u&&T[1]))==null?void 0:C[0];if(_){h.stopPropagation(),h.preventDefault();const T=a.value,I=i.value[T];switch(_){case"delete":return le(I)===B.fullscreenPreviewInitialUrl?X.warn(D("fullscreenRestriction")):b({key:"deleteFiles"},I,T);default:{const F=(A=/^toggle_tag_(.*)$/.exec(_))==null?void 0:A[1],M=(P=B.conf)==null?void 0:P.all_custom_tags.find(k=>k.name===F);return M?b({key:`toggle-tag-${M.id}`},I,T):void 0}}}}else!S.value&&["Ctrl + KeyA","Cmd + KeyA"].includes(u)&&(h.preventDefault(),h.stopPropagation(),g.value.emit("selectAll"))}),{onFileItemClick:c,onContextMenuClick:b,showGenInfo:t,imageGenInfo:n,q:o}}const Ka=()=>{const{stackViewEl:e}=ae().toRefs(),t=R(-1);return Tn(e,n=>{var a;let i=n.target;for(;i.parentElement;)if(i=i.parentElement,i.tagName.toLowerCase()==="li"&&i.classList.contains("file-item-trigger")){const r=(a=i.dataset)==null?void 0:a.idx;r&&Number.isSafeInteger(+r)&&(t.value=+r);return}}),{showMenuIdx:t}};function aa(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var a=e.indexOf("Edge/");return a>0?parseInt(e.substring(a+5,e.indexOf(".",a)),10):-1}let Pe;function Je(){Je.init||(Je.init=!0,Pe=aa()!==-1)}var $e={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Je(),zt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Pe&&this.$el.appendChild(e),e.data="about:blank",Pe||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Pe&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const ra=Rn();Dn("data-v-b329ee4c");const sa={class:"resize-observer",tabindex:"-1"};Ln();const la=ra((e,t,n,i,a,r)=>(Q(),q("div",sa)));$e.render=la;$e.__scopeId="data-v-b329ee4c";$e.__file="src/components/ResizeObserver.vue";function Oe(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Oe=function(t){return typeof t}:Oe=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oe(e)}function oa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ct(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,i=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{},i,a,r,f=function(d){for(var p=arguments.length,E=new Array(p>1?p-1:0),g=1;g1){var p=l.find(function(g){return g.isIntersecting});p&&(d=p)}if(a.callback){var E=d.isIntersecting&&d.intersectionRatio>=a.threshold;if(E===a.oldResult)return;a.oldResult=E,a.callback(E,d)}},this.options.intersection),zt(function(){a.observer&&a.observer.observe(a.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function Jt(e,t,n){var i=t.value;if(i)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var a=new ma(e,i,n);e._vue_visibilityState=a}}function ga(e,t,n){var i=t.value,a=t.oldValue;if(!Ht(i,a)){var r=e._vue_visibilityState;if(!i){Wt(e);return}r?r.createObserver(i,n):Jt(e,{value:i},n)}}function Wt(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var ya={beforeMount:Jt,updated:ga,unmounted:Wt},ba={itemsLimit:1e3},wa=/(auto|scroll)/;function Kt(e,t){return e.parentNode===null?t:Kt(e.parentNode,t.concat([e]))}var Re=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},Aa=function(t){return Re(t,"overflow")+Re(t,"overflow-y")+Re(t,"overflow-x")},ka=function(t){return wa.test(Aa(t))};function Et(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Kt(e.parentNode,[]),n=0;n{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,i,a){const r=jn({id:Ea++,index:t,used:!0,key:i,type:a}),f=Vn({item:n,position:0,nr:r});return e.push(f),f},unuseView(e,t=!1){const n=this.$_unusedViews,i=e.nr.type;let a=n.get(i);a||(a=[],n.set(i,a)),a.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,i=this.gridItems||1,a=this.itemSecondarySize||n,r=this.$_computedMinItemSize,f=this.typeField,l=this.simpleArray?null:this.keyField,d=this.items,p=d.length,E=this.sizes,g=this.$_views,m=this.$_unusedViews,v=this.pool,s=this.itemIndexByKey;let o,c,b,S,h;if(!p)o=c=S=h=b=0;else if(this.$_prerender)o=S=0,c=h=Math.min(this.prerender,d.length),b=null;else{const I=this.getScroll();if(t){let k=I.start-this.$_lastUpdateScrollPosition;if(k<0&&(k=-k),n===null&&kI.start&&(H=N),N=~~((O+H)/2);while(N!==w);for(N<0&&(N=0),o=N,b=E[p-1].accumulator,c=N;cp&&(c=p)),S=o;Sp&&(c=p),S<0&&(S=0),h>p&&(h=p),b=Math.ceil(p/i)*n}}c-o>ba.itemsLimit&&this.itemsLimitError(),this.totalSize=b;let u;const C=o<=this.$_endIndex&&c>=this.$_startIndex;if(C)for(let I=0,F=v.length;I=c)&&this.unuseView(u));const A=C?null:new Map;let P,_,T;for(let I=o;I=M.length)&&(u=this.addView(v,I,P,F,_),this.unuseView(u,!0),M=m.get(_)),u=M[T],A.set(_,T+1)),g.delete(u.nr.key),u.nr.used=!0,u.nr.index=I,u.nr.key=F,u.nr.type=_,g.set(F,u),k=!0;else if(!u.nr.used&&(u.nr.used=!0,u.nr.index=I,k=!0,M)){const O=M.indexOf(u);O!==-1&&M.splice(O,1)}u.item=P,k&&(I===d.length-1&&this.$emit("scroll-end"),I===0&&this.$emit("scroll-start")),n===null?(u.position=E[I-1].accumulator,u.offset=0):(u.position=Math.floor(I/i)*n,u.offset=I%i*a)}return this.$_startIndex=o,this.$_endIndex=c,this.emitUpdate&&this.$emit("update",o,c,S,h),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:C}},getListenerTarget(){let e=Et(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let i;if(this.pageMode){const a=e.getBoundingClientRect(),r=n?a.height:a.width;let f=-(n?a.top:a.left),l=n?window.innerHeight:window.innerWidth;f<0&&(l+=f,f=0),f+l>r&&(l=r-f),i={start:f,end:f+l}}else n?i={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:i={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return i},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,qe?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,i,a;if(this.pageMode){const r=Et(this.$el),f=r.tagName==="HTML"?0:r[t.scroll],l=r.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-l[t.start];n=r,i=t.scroll,a=e+f+p}else n=this.$el,i=t.scroll,a=e;n[i]=a},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const _a={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Pa={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Oa(e,t,n,i,a,r){const f=Un("ResizeObserver"),l=Hn("observe-visibility");return Jn((Q(),J("div",{class:Be(["vue-recycle-scroller",{ready:a.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...d)=>r.handleScroll&&r.handleScroll(...d))},[e.$slots.before?(Q(),J("div",_a,[ke(e.$slots,"before")],512)):ee("v-if",!0),(Q(),q(ht(n.listTag),{ref:"wrapper",style:qn({[e.direction==="vertical"?"minHeight":"minWidth"]:a.totalSize+"px"}),class:Be(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:z(()=>[(Q(!0),J(ne,null,et(a.pool,d=>(Q(),q(ht(n.itemTag),Wn({key:d.nr.id,style:a.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${d.position}px) translate${e.direction==="vertical"?"X":"Y"}(${d.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&a.hoverKey===d.nr.key}]]},Kn(n.skipHover?{}:{mouseenter:()=>{a.hoverKey=d.nr.key},mouseleave:()=>{a.hoverKey=null}})),{default:z(()=>[ke(e.$slots,"default",{item:d.item,index:d.nr.index,active:d.nr.used})]),_:2},1040,["style","class"]))),128)),ke(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(Q(),J("div",Pa,[ke(e.$slots,"after")],512)):ee("v-if",!0),y(f,{onNotify:r.handleResize},null,8,["onNotify"])],34)),[[l,r.handleVisibilityChange]])}qt.render=Oa;qt.__file="src/components/RecycleScroller.vue";const _t=pe({__name:"ContextMenu",props:{file:{},idx:{},selectedTag:{},disableDelete:{type:Boolean}},emits:["contextMenuClick"],setup(e,{emit:t}){const n=e,i=Ze(),a=U(()=>{var r;return(((r=i.conf)==null?void 0:r.all_custom_tags)??[]).reduce((f,l)=>[...f,{...l,selected:!!n.selectedTag.find(d=>d.id===l.id)}],[])});return(r,f)=>{const l=Gn,d=Yn,p=Zn,E=Xn;return Q(),q(E,{onClick:f[0]||(f[0]=g=>t("contextMenuClick",g,r.file,r.idx))},{default:z(()=>{var g;return[y(l,{key:"deleteFiles",disabled:r.disableDelete},{default:z(()=>[L(j(r.$t("deleteSelected")),1)]),_:1},8,["disabled"]),r.file.type==="dir"?(Q(),J(ne,{key:0},[y(l,{key:"openInNewTab"},{default:z(()=>[L(j(r.$t("openInNewTab")),1)]),_:1}),y(l,{key:"openOnTheRight"},{default:z(()=>[L(j(r.$t("openOnTheRight")),1)]),_:1}),y(l,{key:"openWithWalkMode"},{default:z(()=>[L(j(r.$t("openWithWalkMode")),1)]),_:1})],64)):ee("",!0),r.file.type==="file"?(Q(),J(ne,{key:1},[Z(K)(r.file.name)?(Q(),J(ne,{key:0},[y(l,{key:"viewGenInfo"},{default:z(()=>[L(j(r.$t("viewGenerationInfo")),1)]),_:1}),y(d),((g=Z(i).conf)==null?void 0:g.launch_mode)!=="server"?(Q(),J(ne,{key:0},[y(l,{key:"send2txt2img"},{default:z(()=>[L(j(r.$t("sendToTxt2img")),1)]),_:1}),y(l,{key:"send2img2img"},{default:z(()=>[L(j(r.$t("sendToImg2img")),1)]),_:1}),y(l,{key:"send2inpaint"},{default:z(()=>[L(j(r.$t("sendToInpaint")),1)]),_:1}),y(l,{key:"send2extras"},{default:z(()=>[L(j(r.$t("sendToExtraFeatures")),1)]),_:1}),y(p,{key:"sendToThirdPartyExtension",title:r.$t("sendToThirdPartyExtension")},{default:z(()=>[y(l,{key:"send2controlnet-txt2img"},{default:z(()=>[L("ControlNet - "+j(r.$t("t2i")),1)]),_:1}),y(l,{key:"send2controlnet-img2img"},{default:z(()=>[L("ControlNet - "+j(r.$t("i2i")),1)]),_:1}),y(l,{key:"send2outpaint"},{default:z(()=>[L("openOutpaint")]),_:1})]),_:1},8,["title"])],64)):ee("",!0),y(l,{key:"send2BatchDownload"},{default:z(()=>[L(j(r.$t("sendToBatchDownload")),1)]),_:1}),y(l,{key:"send2savedDir"},{default:z(()=>[L(j(r.$t("send2savedDir")),1)]),_:1}),y(d),y(p,{key:"toggle-tag",title:r.$t("toggleTag")},{default:z(()=>[(Q(!0),J(ne,null,et(a.value,m=>(Q(),q(l,{key:`toggle-tag-${m.id}`},{default:z(()=>[L(j(m.name)+" ",1),m.selected?(Q(),q(Z(Si),{key:0})):(Q(),q(Z(Ki),{key:1}))]),_:2},1024))),128))]),_:1},8,["title"]),y(l,{key:"openWithLocalFileBrowser"},{default:z(()=>[L(j(r.$t("openWithLocalFileBrowser")),1)]),_:1})],64)):ee("",!0),y(l,{key:"previewInNewWindow"},{default:z(()=>[L(j(r.$t("previewInNewWindow")),1)]),_:1}),y(l,{key:"download"},{default:z(()=>[L(j(r.$t("download")),1)]),_:1}),y(l,{key:"copyPreviewUrl"},{default:z(()=>[L(j(r.$t("copySourceFilePreviewLink")),1)]),_:1})],64)):ee("",!0)]}),_:1})}}}),xa=["data-idx"],Ta={class:"more"},Ba={key:0,class:"tags-container"},Ma={key:3,class:"preview-icon-wrap"},Na={key:4,class:"profile"},$a={class:"name line-clamp-1"},za={class:"basic-info"},Qa=pe({__name:"FileItem",props:{file:{},idx:{},selected:{type:Boolean,default:!1},showMenuIdx:{},cellWidth:{},fullScreenPreviewImageUrl:{},enableRightClickMenu:{type:Boolean,default:!0},enableCloseIcon:{type:Boolean,default:!1}},emits:["update:showMenuIdx","fileItemClick","dragstart","dragend","previewVisibleChange","contextMenuClick","close-icon-click"],setup(e,{emit:t}){const n=e;ei(l=>({aaf8adf2:l.$props.cellWidth+"px"}));const i=Ze(),a=Vt(),r=U(()=>a.tagMap.get(n.file.fullpath)??[]),f=U(()=>{const l=i.gridThumbnailResolution;return i.enableThumbnail?ti(n.file,[l,l].join("x")):le(n.file)});return(l,d)=>{const p=fe,E=ii,g=bi;return Q(),q(p,{trigger:["contextmenu"],visible:Z(i).longPressOpenContextMenu?typeof l.idx=="number"&&l.showMenuIdx===l.idx:void 0,"onUpdate:visible":d[6]||(d[6]=m=>typeof l.idx=="number"&&t("update:showMenuIdx",m?l.idx:-1))},{overlay:z(()=>[l.enableRightClickMenu?(Q(),q(_t,{key:0,file:l.file,idx:l.idx,"selected-tag":r.value,onContextMenuClick:d[5]||(d[5]=(m,v,s)=>t("contextMenuClick",m,v,s))},null,8,["file","idx","selected-tag"])):ee("",!0)]),default:z(()=>[(Q(),J("li",{class:Be(["file file-item-trigger grid",{clickable:l.file.type==="dir",selected:l.selected}]),"data-idx":l.idx,key:l.file.name,draggable:"true",onDragstart:d[2]||(d[2]=m=>t("dragstart",m,l.idx)),onDragend:d[3]||(d[3]=m=>t("dragend",m,l.idx)),onClickCapture:d[4]||(d[4]=m=>t("fileItemClick",m,l.file,l.idx))},[oe("div",null,[l.enableCloseIcon?(Q(),J("div",{key:0,class:"close-icon",onClick:d[0]||(d[0]=m=>t("close-icon-click"))},[y(Z(ni))])):ee("",!0),l.enableRightClickMenu?(Q(),q(p,{key:1},{overlay:z(()=>[y(_t,{file:l.file,idx:l.idx,"selected-tag":r.value,onContextMenuClick:d[1]||(d[1]=(m,v,s)=>t("contextMenuClick",m,v,s))},null,8,["file","idx","selected-tag"])]),default:z(()=>[oe("div",Ta,[y(Z(Ot))])]),_:1})):ee("",!0),Z(K)(l.file.name)?(Q(),J("div",{style:{position:"relative"},key:l.file.fullpath,class:Be(`idx-${l.idx}`)},[y(E,{src:f.value,fallback:Z(Di),preview:{src:l.fullScreenPreviewImageUrl,onVisibleChange:(m,v)=>t("previewVisibleChange",m,v)}},null,8,["src","fallback","preview"]),r.value&&l.cellWidth>128?(Q(),J("div",Ba,[(Q(!0),J(ne,null,et(r.value,m=>(Q(),q(g,{key:m.id,color:Z(a).getColor(m.name)},{default:z(()=>[L(j(m.name),1)]),_:2},1032,["color"]))),128))])):ee("",!0)],2)):(Q(),J("div",Ma,[l.file.type==="file"?(Q(),q(Z(_i),{key:0,class:"icon center"})):(Q(),q(Z(Ti),{key:1,class:"icon center"}))])),l.cellWidth>128?(Q(),J("div",Na,[oe("div",$a,j(l.file.name),1),oe("div",za,[oe("div",null,j(l.file.size),1),oe("div",null,j(l.file.date),1)])])):ee("",!0)])],42,xa))]),_:1},8,["visible"])}}});const qa=ai(Qa,[["__scopeId","data-v-eb7b4ec8"]]);export{fe as D,qa as F,_t as _,Ua as a,Ha as b,Ja as c,Wa as d,Va as e,Ka as f,qt as g,Vt as h,He as i,be as j,na as k,Ee as s,ae as u}; +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pa(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function ha(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,a,r,f=function(d){for(var p=arguments.length,E=new Array(p>1?p-1:0),g=1;g1){var p=l.find(function(g){return g.isIntersecting});p&&(d=p)}if(a.callback){var E=d.isIntersecting&&d.intersectionRatio>=a.threshold;if(E===a.oldResult)return;a.oldResult=E,a.callback(E,d)}},this.options.intersection),zt(function(){a.observer&&a.observer.observe(a.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function Jt(e,t,n){var i=t.value;if(i)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var a=new ma(e,i,n);e._vue_visibilityState=a}}function ga(e,t,n){var i=t.value,a=t.oldValue;if(!Ht(i,a)){var r=e._vue_visibilityState;if(!i){Wt(e);return}r?r.createObserver(i,n):Jt(e,{value:i},n)}}function Wt(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var ya={beforeMount:Jt,updated:ga,unmounted:Wt},ba={itemsLimit:1e3},wa=/(auto|scroll)/;function Kt(e,t){return e.parentNode===null?t:Kt(e.parentNode,t.concat([e]))}var Re=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},Aa=function(t){return Re(t,"overflow")+Re(t,"overflow-y")+Re(t,"overflow-x")},ka=function(t){return wa.test(Aa(t))};function Et(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Kt(e.parentNode,[]),n=0;n{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,i,a){const r=jn({id:Ea++,index:t,used:!0,key:i,type:a}),f=Vn({item:n,position:0,nr:r});return e.push(f),f},unuseView(e,t=!1){const n=this.$_unusedViews,i=e.nr.type;let a=n.get(i);a||(a=[],n.set(i,a)),a.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,i=this.gridItems||1,a=this.itemSecondarySize||n,r=this.$_computedMinItemSize,f=this.typeField,l=this.simpleArray?null:this.keyField,d=this.items,p=d.length,E=this.sizes,g=this.$_views,m=this.$_unusedViews,v=this.pool,s=this.itemIndexByKey;let o,c,b,S,h;if(!p)o=c=S=h=b=0;else if(this.$_prerender)o=S=0,c=h=Math.min(this.prerender,d.length),b=null;else{const I=this.getScroll();if(t){let k=I.start-this.$_lastUpdateScrollPosition;if(k<0&&(k=-k),n===null&&kI.start&&(H=N),N=~~((O+H)/2);while(N!==w);for(N<0&&(N=0),o=N,b=E[p-1].accumulator,c=N;cp&&(c=p)),S=o;Sp&&(c=p),S<0&&(S=0),h>p&&(h=p),b=Math.ceil(p/i)*n}}c-o>ba.itemsLimit&&this.itemsLimitError(),this.totalSize=b;let u;const C=o<=this.$_endIndex&&c>=this.$_startIndex;if(C)for(let I=0,F=v.length;I=c)&&this.unuseView(u));const A=C?null:new Map;let P,_,T;for(let I=o;I=M.length)&&(u=this.addView(v,I,P,F,_),this.unuseView(u,!0),M=m.get(_)),u=M[T],A.set(_,T+1)),g.delete(u.nr.key),u.nr.used=!0,u.nr.index=I,u.nr.key=F,u.nr.type=_,g.set(F,u),k=!0;else if(!u.nr.used&&(u.nr.used=!0,u.nr.index=I,k=!0,M)){const O=M.indexOf(u);O!==-1&&M.splice(O,1)}u.item=P,k&&(I===d.length-1&&this.$emit("scroll-end"),I===0&&this.$emit("scroll-start")),n===null?(u.position=E[I-1].accumulator,u.offset=0):(u.position=Math.floor(I/i)*n,u.offset=I%i*a)}return this.$_startIndex=o,this.$_endIndex=c,this.emitUpdate&&this.$emit("update",o,c,S,h),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:C}},getListenerTarget(){let e=Et(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let i;if(this.pageMode){const a=e.getBoundingClientRect(),r=n?a.height:a.width;let f=-(n?a.top:a.left),l=n?window.innerHeight:window.innerWidth;f<0&&(l+=f,f=0),f+l>r&&(l=r-f),i={start:f,end:f+l}}else n?i={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:i={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return i},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,qe?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,i,a;if(this.pageMode){const r=Et(this.$el),f=r.tagName==="HTML"?0:r[t.scroll],l=r.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-l[t.start];n=r,i=t.scroll,a=e+f+p}else n=this.$el,i=t.scroll,a=e;n[i]=a},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const _a={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Pa={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Oa(e,t,n,i,a,r){const f=Un("ResizeObserver"),l=Hn("observe-visibility");return Jn((Q(),J("div",{class:Be(["vue-recycle-scroller",{ready:a.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...d)=>r.handleScroll&&r.handleScroll(...d))},[e.$slots.before?(Q(),J("div",_a,[ke(e.$slots,"before")],512)):ee("v-if",!0),(Q(),q(ht(n.listTag),{ref:"wrapper",style:qn({[e.direction==="vertical"?"minHeight":"minWidth"]:a.totalSize+"px"}),class:Be(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:z(()=>[(Q(!0),J(ne,null,et(a.pool,d=>(Q(),q(ht(n.itemTag),Wn({key:d.nr.id,style:a.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${d.position}px) translate${e.direction==="vertical"?"X":"Y"}(${d.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&a.hoverKey===d.nr.key}]]},Kn(n.skipHover?{}:{mouseenter:()=>{a.hoverKey=d.nr.key},mouseleave:()=>{a.hoverKey=null}})),{default:z(()=>[ke(e.$slots,"default",{item:d.item,index:d.nr.index,active:d.nr.used})]),_:2},1040,["style","class"]))),128)),ke(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(Q(),J("div",Pa,[ke(e.$slots,"after")],512)):ee("v-if",!0),y(f,{onNotify:r.handleResize},null,8,["onNotify"])],34)),[[l,r.handleVisibilityChange]])}qt.render=Oa;qt.__file="src/components/RecycleScroller.vue";const _t=pe({__name:"ContextMenu",props:{file:{},idx:{},selectedTag:{},disableDelete:{type:Boolean}},emits:["contextMenuClick"],setup(e,{emit:t}){const n=e,i=Ze(),a=U(()=>{var r;return(((r=i.conf)==null?void 0:r.all_custom_tags)??[]).reduce((f,l)=>[...f,{...l,selected:!!n.selectedTag.find(d=>d.id===l.id)}],[])});return(r,f)=>{const l=Gn,d=Yn,p=Zn,E=Xn;return Q(),q(E,{onClick:f[0]||(f[0]=g=>t("contextMenuClick",g,r.file,r.idx))},{default:z(()=>{var g;return[y(l,{key:"deleteFiles",disabled:r.disableDelete},{default:z(()=>[L(j(r.$t("deleteSelected")),1)]),_:1},8,["disabled"]),r.file.type==="dir"?(Q(),J(ne,{key:0},[y(l,{key:"openInNewTab"},{default:z(()=>[L(j(r.$t("openInNewTab")),1)]),_:1}),y(l,{key:"openOnTheRight"},{default:z(()=>[L(j(r.$t("openOnTheRight")),1)]),_:1}),y(l,{key:"openWithWalkMode"},{default:z(()=>[L(j(r.$t("openWithWalkMode")),1)]),_:1})],64)):ee("",!0),r.file.type==="file"?(Q(),J(ne,{key:1},[Z(K)(r.file.name)?(Q(),J(ne,{key:0},[y(l,{key:"viewGenInfo"},{default:z(()=>[L(j(r.$t("viewGenerationInfo")),1)]),_:1}),y(d),((g=Z(i).conf)==null?void 0:g.launch_mode)!=="server"?(Q(),J(ne,{key:0},[y(l,{key:"send2txt2img"},{default:z(()=>[L(j(r.$t("sendToTxt2img")),1)]),_:1}),y(l,{key:"send2img2img"},{default:z(()=>[L(j(r.$t("sendToImg2img")),1)]),_:1}),y(l,{key:"send2inpaint"},{default:z(()=>[L(j(r.$t("sendToInpaint")),1)]),_:1}),y(l,{key:"send2extras"},{default:z(()=>[L(j(r.$t("sendToExtraFeatures")),1)]),_:1}),y(p,{key:"sendToThirdPartyExtension",title:r.$t("sendToThirdPartyExtension")},{default:z(()=>[y(l,{key:"send2controlnet-txt2img"},{default:z(()=>[L("ControlNet - "+j(r.$t("t2i")),1)]),_:1}),y(l,{key:"send2controlnet-img2img"},{default:z(()=>[L("ControlNet - "+j(r.$t("i2i")),1)]),_:1}),y(l,{key:"send2outpaint"},{default:z(()=>[L("openOutpaint")]),_:1})]),_:1},8,["title"])],64)):ee("",!0),y(l,{key:"send2BatchDownload"},{default:z(()=>[L(j(r.$t("sendToBatchDownload")),1)]),_:1}),y(l,{key:"send2savedDir"},{default:z(()=>[L(j(r.$t("send2savedDir")),1)]),_:1}),y(d),y(p,{key:"toggle-tag",title:r.$t("toggleTag")},{default:z(()=>[(Q(!0),J(ne,null,et(a.value,m=>(Q(),q(l,{key:`toggle-tag-${m.id}`},{default:z(()=>[L(j(m.name)+" ",1),m.selected?(Q(),q(Z(Si),{key:0})):(Q(),q(Z(Ki),{key:1}))]),_:2},1024))),128))]),_:1},8,["title"]),y(l,{key:"openWithLocalFileBrowser"},{default:z(()=>[L(j(r.$t("openWithLocalFileBrowser")),1)]),_:1})],64)):ee("",!0),y(l,{key:"previewInNewWindow"},{default:z(()=>[L(j(r.$t("previewInNewWindow")),1)]),_:1}),y(l,{key:"download"},{default:z(()=>[L(j(r.$t("download")),1)]),_:1}),y(l,{key:"copyPreviewUrl"},{default:z(()=>[L(j(r.$t("copySourceFilePreviewLink")),1)]),_:1})],64)):ee("",!0)]}),_:1})}}}),xa=["data-idx"],Ta={class:"more"},Ba={key:0,class:"tags-container"},Ma={key:3,class:"preview-icon-wrap"},Na={key:4,class:"profile"},$a={class:"name line-clamp-1"},za={class:"basic-info"},Qa=pe({__name:"FileItem",props:{file:{},idx:{},selected:{type:Boolean,default:!1},showMenuIdx:{},cellWidth:{},fullScreenPreviewImageUrl:{},enableRightClickMenu:{type:Boolean,default:!0},enableCloseIcon:{type:Boolean,default:!1}},emits:["update:showMenuIdx","fileItemClick","dragstart","dragend","previewVisibleChange","contextMenuClick","close-icon-click"],setup(e,{emit:t}){const n=e;ei(l=>({a0c171a0:l.$props.cellWidth+"px"}));const i=Ze(),a=Vt(),r=U(()=>a.tagMap.get(n.file.fullpath)??[]),f=U(()=>{const l=i.gridThumbnailResolution;return i.enableThumbnail?ti(n.file,[l,l].join("x")):le(n.file)});return(l,d)=>{const p=fe,E=ii,g=bi;return Q(),q(p,{trigger:["contextmenu"],visible:Z(i).longPressOpenContextMenu?typeof l.idx=="number"&&l.showMenuIdx===l.idx:void 0,"onUpdate:visible":d[6]||(d[6]=m=>typeof l.idx=="number"&&t("update:showMenuIdx",m?l.idx:-1))},{overlay:z(()=>[l.enableRightClickMenu?(Q(),q(_t,{key:0,file:l.file,idx:l.idx,"selected-tag":r.value,onContextMenuClick:d[5]||(d[5]=(m,v,s)=>t("contextMenuClick",m,v,s))},null,8,["file","idx","selected-tag"])):ee("",!0)]),default:z(()=>[(Q(),J("li",{class:Be(["file file-item-trigger grid",{clickable:l.file.type==="dir",selected:l.selected}]),"data-idx":l.idx,key:l.file.name,draggable:"true",onDragstart:d[2]||(d[2]=m=>t("dragstart",m,l.idx)),onDragend:d[3]||(d[3]=m=>t("dragend",m,l.idx)),onClickCapture:d[4]||(d[4]=m=>t("fileItemClick",m,l.file,l.idx))},[oe("div",null,[l.enableCloseIcon?(Q(),J("div",{key:0,class:"close-icon",onClick:d[0]||(d[0]=m=>t("close-icon-click"))},[y(Z(ni))])):ee("",!0),l.enableRightClickMenu?(Q(),q(p,{key:1},{overlay:z(()=>[y(_t,{file:l.file,idx:l.idx,"selected-tag":r.value,onContextMenuClick:d[1]||(d[1]=(m,v,s)=>t("contextMenuClick",m,v,s))},null,8,["file","idx","selected-tag"])]),default:z(()=>[oe("div",Ta,[y(Z(Ot))])]),_:1})):ee("",!0),Z(K)(l.file.name)?(Q(),J("div",{style:{position:"relative"},key:l.file.fullpath,class:Be(`idx-${l.idx}`)},[y(E,{src:f.value,fallback:Z(Di),preview:{src:l.fullScreenPreviewImageUrl,onVisibleChange:(m,v)=>t("previewVisibleChange",m,v)}},null,8,["src","fallback","preview"]),r.value&&l.cellWidth>128?(Q(),J("div",Ba,[(Q(!0),J(ne,null,et(r.value,m=>(Q(),q(g,{key:m.id,color:Z(a).getColor(m.name)},{default:z(()=>[L(j(m.name),1)]),_:2},1032,["color"]))),128))])):ee("",!0)],2)):(Q(),J("div",Ma,[l.file.type==="file"?(Q(),q(Z(_i),{key:0,class:"icon center"})):(Q(),q(Z(Ti),{key:1,class:"icon center"}))])),l.cellWidth>128?(Q(),J("div",Na,[oe("div",$a,j(l.file.name),1),oe("div",za,[oe("div",null,j(l.file.size),1),oe("div",null,j(l.file.date),1)])])):ee("",!0)])],42,xa))]),_:1},8,["visible"])}}});const qa=ai(Qa,[["__scopeId","data-v-12928e97"]]);export{fe as D,qa as F,_t as _,Ua as a,Ha as b,Ja as c,Wa as d,Va as e,Ka as f,qt as g,Vt as h,He as i,be as j,na as k,Ee as s,ae as u}; diff --git a/vue/dist/assets/ImgSliPagePane-e5d90c60.js b/vue/dist/assets/ImgSliPagePane-06ea41b3.js similarity index 74% rename from vue/dist/assets/ImgSliPagePane-e5d90c60.js rename to vue/dist/assets/ImgSliPagePane-06ea41b3.js index e881304..ba6aead 100644 --- a/vue/dist/assets/ImgSliPagePane-e5d90c60.js +++ b/vue/dist/assets/ImgSliPagePane-06ea41b3.js @@ -1 +1 @@ -import{d as t,o as a,m as r,b$ as n}from"./index-35e9ee40.js";const p=t({__name:"ImgSliPagePane",props:{paneIdx:{},tabIdx:{},left:{},right:{}},setup(o){return(e,s)=>(a(),r(n,{left:e.left,right:e.right},null,8,["left","right"]))}});export{p as default}; +import{d as t,o as a,m as r,b$ as n}from"./index-a4883aca.js";const p=t({__name:"ImgSliPagePane",props:{paneIdx:{},tabIdx:{},left:{},right:{}},setup(o){return(e,s)=>(a(),r(n,{left:e.left,right:e.right},null,8,["left","right"]))}});export{p as default}; diff --git a/vue/dist/assets/MatchedImageGrid-8a40156c.js b/vue/dist/assets/MatchedImageGrid-42123f9e.js similarity index 89% rename from vue/dist/assets/MatchedImageGrid-8a40156c.js rename to vue/dist/assets/MatchedImageGrid-42123f9e.js index b6ce081..6694ad1 100644 --- a/vue/dist/assets/MatchedImageGrid-8a40156c.js +++ b/vue/dist/assets/MatchedImageGrid-42123f9e.js @@ -1 +1 @@ -import{d as q,l as Q,ax as W,o as r,y as _,c as s,n as a,r as e,s as h,p as y,t as X,v as b,x as j,m as M,L as H,C as m,N as S,Q as J,R as K,X as Y}from"./index-35e9ee40.js";import{L as Z,R as ee,f as te,S as ie}from"./fullScreenContextMenu-641139fc.js";import{g as le,F as se}from"./FileItem-7d7b8ef3.js";import{g as ne}from"./db-c6358829.js";import{u as ae}from"./hook-9a924413.js";import"./shortcut-9c26d495.js";const oe={class:"hint"},re={key:1,class:"preview-switch"},de=q({__name:"MatchedImageGrid",props:{tabIdx:{},paneIdx:{},selectedTagIds:{},id:{}},setup(T){const u=T,{queue:p,images:i,onContextMenuClickU:g,stackViewEl:V,previewIdx:n,previewing:v,onPreviewVisibleChange:D,previewImgMove:f,canPreview:w,itemSize:I,gridItems:F,showGenInfo:o,imageGenInfo:k,q:z,multiSelectedIdxs:$,onFileItemClick:B,scroller:x,showMenuIdx:d,onFileDragStart:G,onFileDragEnd:N,cellWidth:R,onScroll:A,updateImageTag:E}=ae();return Q(()=>u.selectedTagIds,async()=>{const{res:c}=p.pushAction(()=>ne(u.selectedTagIds));i.value=await c,await W(),E(),x.value.scrollToItem(0)},{immediate:!0}),(c,t)=>{const P=J,U=K,L=ie;return r(),_("div",{class:"container",ref_key:"stackViewEl",ref:V},[s(L,{size:"large",spinning:!e(p).isIdle},{default:a(()=>[s(U,{visible:e(o),"onUpdate:visible":t[1]||(t[1]=l=>h(o)?o.value=l:null),width:"70vw","mask-closable":"",onOk:t[2]||(t[2]=l=>o.value=!1)},{cancelText:a(()=>[]),default:a(()=>[s(P,{active:"",loading:!e(z).isIdle},{default:a(()=>[y("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:t[0]||(t[0]=l=>e(X)(e(k)))},[y("div",oe,b(c.$t("doubleClickToCopy")),1),j(" "+b(e(k)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),e(i)?(r(),M(e(le),{key:0,ref_key:"scroller",ref:x,class:"file-list",items:e(i),"item-size":e(I).first,"key-field":"fullpath","item-secondary-size":e(I).second,gridItems:e(F),onScroll:e(A)},{default:a(({item:l,index:C})=>[s(se,{idx:C,file:l,"cell-width":e(R),"show-menu-idx":e(d),"onUpdate:showMenuIdx":t[3]||(t[3]=O=>h(d)?d.value=O:null),onDragstart:e(G),onDragend:e(N),onFileItemClick:e(B),"full-screen-preview-image-url":e(i)[e(n)]?e(H)(e(i)[e(n)]):"",selected:e($).includes(C),onContextMenuClick:e(g),onPreviewVisibleChange:e(D)},null,8,["idx","file","cell-width","show-menu-idx","onDragstart","onDragend","onFileItemClick","full-screen-preview-image-url","selected","onContextMenuClick","onPreviewVisibleChange"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):m("",!0),e(v)?(r(),_("div",re,[s(e(Z),{onClick:t[4]||(t[4]=l=>e(f)("prev")),class:S({disable:!e(w)("prev")})},null,8,["class"]),s(e(ee),{onClick:t[5]||(t[5]=l=>e(f)("next")),class:S({disable:!e(w)("next")})},null,8,["class"])])):m("",!0)]),_:1},8,["spinning"]),e(v)&&e(i)&&e(i)[e(n)]?(r(),M(te,{key:0,file:e(i)[e(n)],idx:e(n),onContextMenuClick:e(g)},null,8,["file","idx","onContextMenuClick"])):m("",!0)],512)}}});const fe=Y(de,[["__scopeId","data-v-d698e678"]]);export{fe as default}; +import{d as q,l as Q,ax as W,o as r,y as _,c as s,n as a,r as e,s as h,p as y,t as X,v as b,x as j,m as M,L as H,C as m,N as S,Q as J,R as K,X as Y}from"./index-a4883aca.js";import{L as Z,R as ee,f as te,S as ie}from"./fullScreenContextMenu-d0f6d9eb.js";import{g as le,F as se}from"./FileItem-f87590d0.js";import{g as ne}from"./db-a03371d5.js";import{u as ae}from"./hook-24a54d22.js";import"./shortcut-c6713a64.js";const oe={class:"hint"},re={key:1,class:"preview-switch"},de=q({__name:"MatchedImageGrid",props:{tabIdx:{},paneIdx:{},selectedTagIds:{},id:{}},setup(T){const u=T,{queue:p,images:i,onContextMenuClickU:g,stackViewEl:V,previewIdx:n,previewing:v,onPreviewVisibleChange:D,previewImgMove:f,canPreview:w,itemSize:I,gridItems:F,showGenInfo:o,imageGenInfo:k,q:z,multiSelectedIdxs:$,onFileItemClick:B,scroller:x,showMenuIdx:d,onFileDragStart:G,onFileDragEnd:N,cellWidth:R,onScroll:A,updateImageTag:E}=ae();return Q(()=>u.selectedTagIds,async()=>{const{res:c}=p.pushAction(()=>ne(u.selectedTagIds));i.value=await c,await W(),E(),x.value.scrollToItem(0)},{immediate:!0}),(c,t)=>{const P=J,U=K,L=ie;return r(),_("div",{class:"container",ref_key:"stackViewEl",ref:V},[s(L,{size:"large",spinning:!e(p).isIdle},{default:a(()=>[s(U,{visible:e(o),"onUpdate:visible":t[1]||(t[1]=l=>h(o)?o.value=l:null),width:"70vw","mask-closable":"",onOk:t[2]||(t[2]=l=>o.value=!1)},{cancelText:a(()=>[]),default:a(()=>[s(P,{active:"",loading:!e(z).isIdle},{default:a(()=>[y("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:t[0]||(t[0]=l=>e(X)(e(k)))},[y("div",oe,b(c.$t("doubleClickToCopy")),1),j(" "+b(e(k)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),e(i)?(r(),M(e(le),{key:0,ref_key:"scroller",ref:x,class:"file-list",items:e(i),"item-size":e(I).first,"key-field":"fullpath","item-secondary-size":e(I).second,gridItems:e(F),onScroll:e(A)},{default:a(({item:l,index:C})=>[s(se,{idx:C,file:l,"cell-width":e(R),"show-menu-idx":e(d),"onUpdate:showMenuIdx":t[3]||(t[3]=O=>h(d)?d.value=O:null),onDragstart:e(G),onDragend:e(N),onFileItemClick:e(B),"full-screen-preview-image-url":e(i)[e(n)]?e(H)(e(i)[e(n)]):"",selected:e($).includes(C),onContextMenuClick:e(g),onPreviewVisibleChange:e(D)},null,8,["idx","file","cell-width","show-menu-idx","onDragstart","onDragend","onFileItemClick","full-screen-preview-image-url","selected","onContextMenuClick","onPreviewVisibleChange"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):m("",!0),e(v)?(r(),_("div",re,[s(e(Z),{onClick:t[4]||(t[4]=l=>e(f)("prev")),class:S({disable:!e(w)("prev")})},null,8,["class"]),s(e(ee),{onClick:t[5]||(t[5]=l=>e(f)("next")),class:S({disable:!e(w)("next")})},null,8,["class"])])):m("",!0)]),_:1},8,["spinning"]),e(v)&&e(i)&&e(i)[e(n)]?(r(),M(te,{key:0,file:e(i)[e(n)],idx:e(n),onContextMenuClick:e(g)},null,8,["file","idx","onContextMenuClick"])):m("",!0)],512)}}});const fe=Y(de,[["__scopeId","data-v-d698e678"]]);export{fe as default}; diff --git a/vue/dist/assets/SubstrSearch-31402387.js b/vue/dist/assets/SubstrSearch-ec4122c1.js similarity index 90% rename from vue/dist/assets/SubstrSearch-31402387.js rename to vue/dist/assets/SubstrSearch-ec4122c1.js index eb8a722..fa5f737 100644 --- a/vue/dist/assets/SubstrSearch-31402387.js +++ b/vue/dist/assets/SubstrSearch-ec4122c1.js @@ -1 +1 @@ -import{d as Y,$,aw as Z,bQ as ee,bP as B,o,y as k,c as r,r as e,bT as ne,m,n as u,x as w,v,C as g,s as V,p as F,t as te,L as ae,N as A,ax as se,ar as le,ai as ie,U as oe,V as re,Q as ue,R as de,X as ce}from"./index-35e9ee40.js";import{L as pe,R as me,f as ve,S as ge}from"./fullScreenContextMenu-641139fc.js";/* empty css */import{g as fe,F as ke}from"./FileItem-7d7b8ef3.js";import{b as T,c as we,f as be,u as ye}from"./db-c6358829.js";import{u as Ie}from"./hook-9a924413.js";import"./shortcut-9c26d495.js";const xe={key:0,class:"search-bar"},Ce={class:"hint"},_e={key:1,class:"preview-switch"},he=Y({__name:"SubstrSearch",setup(Se){const{queue:l,images:a,onContextMenuClickU:b,stackViewEl:U,previewIdx:d,previewing:y,onPreviewVisibleChange:E,previewImgMove:I,canPreview:x,itemSize:C,gridItems:R,showGenInfo:c,imageGenInfo:_,q:N,multiSelectedIdxs:P,onFileItemClick:L,scroller:h,showMenuIdx:f,onFileDragStart:q,onFileDragEnd:G,cellWidth:K,onScroll:O,updateImageTag:Q}=Ie(),p=$(""),t=$();Z(async()=>{t.value=await T(),t.value.img_count&&t.value.expired&&S()});const S=ee(()=>l.pushAction(async()=>(await ye(),t.value=await T(),t.value)).res),M=async()=>{a.value=await l.pushAction(()=>be(p.value)).res,await se(),Q(),h.value.scrollToItem(0),a.value.length||le.info(ie("fuzzy-search-noResults"))};return B("returnToIIB",async()=>{const i=await l.pushAction(we).res;t.value.expired=i.expired}),B("searchIndexExpired",()=>t.value&&(t.value.expired=!0)),(i,n)=>{const H=oe,z=re,W=ue,X=de,j=ge;return o(),k("div",{class:"container",ref_key:"stackViewEl",ref:U},[t.value?(o(),k("div",xe,[r(H,{value:p.value,"onUpdate:value":n[0]||(n[0]=s=>p.value=s),placeholder:i.$t("fuzzy-search-placeholder"),disabled:!e(l).isIdle,onKeydown:ne(M,["enter"])},null,8,["value","placeholder","disabled","onKeydown"]),t.value.expired||!t.value.img_count?(o(),m(z,{key:0,onClick:e(S),loading:!e(l).isIdle,type:"primary"},{default:u(()=>[w(v(t.value.img_count===0?i.$t("generateIndexHint"):i.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(o(),m(z,{key:1,type:"primary",onClick:M,loading:!e(l).isIdle,disabled:!p.value},{default:u(()=>[w(v(i.$t("search")),1)]),_:1},8,["loading","disabled"]))])):g("",!0),r(j,{size:"large",spinning:!e(l).isIdle},{default:u(()=>[r(X,{visible:e(c),"onUpdate:visible":n[2]||(n[2]=s=>V(c)?c.value=s:null),width:"70vw","mask-closable":"",onOk:n[3]||(n[3]=s=>c.value=!1)},{cancelText:u(()=>[]),default:u(()=>[r(W,{active:"",loading:!e(N).isIdle},{default:u(()=>[F("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:n[1]||(n[1]=s=>e(te)(e(_)))},[F("div",Ce,v(i.$t("doubleClickToCopy")),1),w(" "+v(e(_)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),e(a)?(o(),m(e(fe),{key:0,ref_key:"scroller",ref:h,class:"file-list",items:e(a),"item-size":e(C).first,"key-field":"fullpath","item-secondary-size":e(C).second,gridItems:e(R),onScroll:e(O)},{default:u(({item:s,index:D})=>[r(ke,{idx:D,file:s,"show-menu-idx":e(f),"onUpdate:showMenuIdx":n[4]||(n[4]=J=>V(f)?f.value=J:null),onFileItemClick:e(L),"full-screen-preview-image-url":e(a)[e(d)]?e(ae)(e(a)[e(d)]):"","cell-width":e(K),selected:e(P).includes(D),onContextMenuClick:e(b),onDragstart:e(q),onDragend:e(G),onPreviewVisibleChange:e(E)},null,8,["idx","file","show-menu-idx","onFileItemClick","full-screen-preview-image-url","cell-width","selected","onContextMenuClick","onDragstart","onDragend","onPreviewVisibleChange"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):g("",!0),e(y)?(o(),k("div",_e,[r(e(pe),{onClick:n[5]||(n[5]=s=>e(I)("prev")),class:A({disable:!e(x)("prev")})},null,8,["class"]),r(e(me),{onClick:n[6]||(n[6]=s=>e(I)("next")),class:A({disable:!e(x)("next")})},null,8,["class"])])):g("",!0)]),_:1},8,["spinning"]),e(y)&&e(a)&&e(a)[e(d)]?(o(),m(ve,{key:1,file:e(a)[e(d)],idx:e(d),onContextMenuClick:e(b)},null,8,["file","idx","onContextMenuClick"])):g("",!0)],512)}}});const Ae=ce(he,[["__scopeId","data-v-bb005cb9"]]);export{Ae as default}; +import{d as Y,$,aw as Z,bQ as ee,bP as B,o,y as k,c as r,r as e,bT as ne,m,n as u,x as w,v,C as g,s as V,p as F,t as te,L as ae,N as A,ax as se,ar as le,ai as ie,U as oe,V as re,Q as ue,R as de,X as ce}from"./index-a4883aca.js";import{L as pe,R as me,f as ve,S as ge}from"./fullScreenContextMenu-d0f6d9eb.js";/* empty css */import{g as fe,F as ke}from"./FileItem-f87590d0.js";import{b as T,c as we,f as be,u as ye}from"./db-a03371d5.js";import{u as Ie}from"./hook-24a54d22.js";import"./shortcut-c6713a64.js";const xe={key:0,class:"search-bar"},Ce={class:"hint"},_e={key:1,class:"preview-switch"},he=Y({__name:"SubstrSearch",setup(Se){const{queue:l,images:a,onContextMenuClickU:b,stackViewEl:U,previewIdx:d,previewing:y,onPreviewVisibleChange:E,previewImgMove:I,canPreview:x,itemSize:C,gridItems:R,showGenInfo:c,imageGenInfo:_,q:N,multiSelectedIdxs:P,onFileItemClick:L,scroller:h,showMenuIdx:f,onFileDragStart:q,onFileDragEnd:G,cellWidth:K,onScroll:O,updateImageTag:Q}=Ie(),p=$(""),t=$();Z(async()=>{t.value=await T(),t.value.img_count&&t.value.expired&&S()});const S=ee(()=>l.pushAction(async()=>(await ye(),t.value=await T(),t.value)).res),M=async()=>{a.value=await l.pushAction(()=>be(p.value)).res,await se(),Q(),h.value.scrollToItem(0),a.value.length||le.info(ie("fuzzy-search-noResults"))};return B("returnToIIB",async()=>{const i=await l.pushAction(we).res;t.value.expired=i.expired}),B("searchIndexExpired",()=>t.value&&(t.value.expired=!0)),(i,n)=>{const H=oe,z=re,W=ue,X=de,j=ge;return o(),k("div",{class:"container",ref_key:"stackViewEl",ref:U},[t.value?(o(),k("div",xe,[r(H,{value:p.value,"onUpdate:value":n[0]||(n[0]=s=>p.value=s),placeholder:i.$t("fuzzy-search-placeholder"),disabled:!e(l).isIdle,onKeydown:ne(M,["enter"])},null,8,["value","placeholder","disabled","onKeydown"]),t.value.expired||!t.value.img_count?(o(),m(z,{key:0,onClick:e(S),loading:!e(l).isIdle,type:"primary"},{default:u(()=>[w(v(t.value.img_count===0?i.$t("generateIndexHint"):i.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(o(),m(z,{key:1,type:"primary",onClick:M,loading:!e(l).isIdle,disabled:!p.value},{default:u(()=>[w(v(i.$t("search")),1)]),_:1},8,["loading","disabled"]))])):g("",!0),r(j,{size:"large",spinning:!e(l).isIdle},{default:u(()=>[r(X,{visible:e(c),"onUpdate:visible":n[2]||(n[2]=s=>V(c)?c.value=s:null),width:"70vw","mask-closable":"",onOk:n[3]||(n[3]=s=>c.value=!1)},{cancelText:u(()=>[]),default:u(()=>[r(W,{active:"",loading:!e(N).isIdle},{default:u(()=>[F("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:n[1]||(n[1]=s=>e(te)(e(_)))},[F("div",Ce,v(i.$t("doubleClickToCopy")),1),w(" "+v(e(_)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),e(a)?(o(),m(e(fe),{key:0,ref_key:"scroller",ref:h,class:"file-list",items:e(a),"item-size":e(C).first,"key-field":"fullpath","item-secondary-size":e(C).second,gridItems:e(R),onScroll:e(O)},{default:u(({item:s,index:D})=>[r(ke,{idx:D,file:s,"show-menu-idx":e(f),"onUpdate:showMenuIdx":n[4]||(n[4]=J=>V(f)?f.value=J:null),onFileItemClick:e(L),"full-screen-preview-image-url":e(a)[e(d)]?e(ae)(e(a)[e(d)]):"","cell-width":e(K),selected:e(P).includes(D),onContextMenuClick:e(b),onDragstart:e(q),onDragend:e(G),onPreviewVisibleChange:e(E)},null,8,["idx","file","show-menu-idx","onFileItemClick","full-screen-preview-image-url","cell-width","selected","onContextMenuClick","onDragstart","onDragend","onPreviewVisibleChange"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):g("",!0),e(y)?(o(),k("div",_e,[r(e(pe),{onClick:n[5]||(n[5]=s=>e(I)("prev")),class:A({disable:!e(x)("prev")})},null,8,["class"]),r(e(me),{onClick:n[6]||(n[6]=s=>e(I)("next")),class:A({disable:!e(x)("next")})},null,8,["class"])])):g("",!0)]),_:1},8,["spinning"]),e(y)&&e(a)&&e(a)[e(d)]?(o(),m(ve,{key:1,file:e(a)[e(d)],idx:e(d),onContextMenuClick:e(b)},null,8,["file","idx","onContextMenuClick"])):g("",!0)],512)}}});const Ae=ce(he,[["__scopeId","data-v-bb005cb9"]]);export{Ae as default}; diff --git a/vue/dist/assets/TagSearch-41046adf.js b/vue/dist/assets/TagSearch-bdd903ef.js similarity index 99% rename from vue/dist/assets/TagSearch-41046adf.js rename to vue/dist/assets/TagSearch-bdd903ef.js index 42135b4..be769b9 100644 --- a/vue/dist/assets/TagSearch-41046adf.js +++ b/vue/dist/assets/TagSearch-bdd903ef.js @@ -1 +1 @@ -import{P as D,Z as _e,d as ae,bq as ge,aY as be,$ as F,bH as Ce,l as xe,u as he,aj as J,a0 as Z,h as x,c as v,a as W,bI as Ie,b as Ae,f as we,bJ as ke,a3 as se,bK as Pe,a2 as $e,i as Oe,b0 as Se,bL as Be,a5 as Ke,a6 as Te,a7 as Ee,ag as Ne,aT as Re,aR as Me,bM as je,aS as De,bN as Fe,k as Ue,bO as Ve,al as Le,aw as qe,bP as oe,bQ as ze,o as C,y as S,C as q,z as Y,p as M,v as B,r as K,S as te,m as Q,n as V,x as z,A as ie,N as re,bR as Ge,q as ce,a1 as He,ak as Qe,ar as de,ai as ne,R as Je,V as ue,U as We,bS as Xe,X as Ye}from"./index-35e9ee40.js";/* empty css *//* empty css */import{b as ve,c as Ze,d as ea,e as aa,u as ta}from"./db-c6358829.js";var na=function(){return{prefixCls:String,activeKey:{type:[Array,Number,String]},defaultActiveKey:{type:[Array,Number,String]},accordion:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},expandIcon:Function,openAnimation:D.object,expandIconPosition:D.oneOf(_e("left","right")),collapsible:{type:String},ghost:{type:Boolean,default:void 0},onChange:Function,"onUpdate:activeKey":Function}},me=function(){return{openAnimation:D.object,prefixCls:String,header:D.any,headerClass:String,showArrow:{type:Boolean,default:void 0},isActive:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},accordion:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},expandIcon:Function,extra:D.any,panelKey:D.oneOfType([D.string,D.number]),collapsible:{type:String},role:String,onItemClick:{type:Function}}};function fe(l){var e=l;if(!Array.isArray(e)){var t=Ae(e);e=t==="number"||t==="string"?[e]:[]}return e.map(function(s){return String(s)})}const X=ae({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:ge(na(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,openAnimation:be("ant-motion-collapse",!1),expandIconPosition:"left"}),slots:["expandIcon"],setup:function(e,t){var s=t.attrs,c=t.slots,n=t.emit,o=F(fe(Ce([e.activeKey,e.defaultActiveKey])));xe(function(){return e.activeKey},function(){o.value=fe(e.activeKey)},{deep:!0});var f=he("collapse",e),g=f.prefixCls,P=f.direction,T=J(function(){var d=e.expandIconPosition;return d!==void 0?d:P.value==="rtl"?"right":"left"}),h=function(r){var u=e.expandIcon,y=u===void 0?c.expandIcon:u,_=y?y(r):v(Pe,{rotate:r.isActive?90:void 0},null);return v("div",null,[$e(Array.isArray(y)?_[0]:_)?se(_,{class:"".concat(g.value,"-arrow")},!1):_])},E=function(r){e.activeKey===void 0&&(o.value=r);var u=e.accordion?r[0]:r;n("update:activeKey",u),n("change",u)},$=function(r){var u=o.value;if(e.accordion)u=u[0]===r?[]:[r];else{u=Oe(u);var y=u.indexOf(r),_=y>-1;_?u.splice(y,1):u.push(r)}E(u)},j=function(r,u){var y,_,R;if(!ke(r)){var a=o.value,i=e.accordion,b=e.destroyInactivePanel,k=e.collapsible,O=e.openAnimation,I=String((y=r.key)!==null&&y!==void 0?y:u),w=r.props||{},A=w.header,p=A===void 0?(_=r.children)===null||_===void 0||(R=_.header)===null||R===void 0?void 0:R.call(_):A,G=w.headerClass,m=w.collapsible,L=w.disabled,U=!1;i?U=a[0]===I:U=a.indexOf(I)>-1;var H=m??k;(L||L==="")&&(H="disabled");var ye={key:I,panelKey:I,header:p,headerClass:G,isActive:U,prefixCls:g.value,destroyInactivePanel:b,openAnimation:O,accordion:i,onItemClick:H==="disabled"?null:$,expandIcon:h,collapsible:H};return se(r,ye)}},N=function(){var r;return we((r=c.default)===null||r===void 0?void 0:r.call(c)).map(j)};return function(){var d,r=e.accordion,u=e.bordered,y=e.ghost,_=Z((d={},x(d,g.value,!0),x(d,"".concat(g.value,"-borderless"),!u),x(d,"".concat(g.value,"-icon-position-").concat(T.value),!0),x(d,"".concat(g.value,"-rtl"),P.value==="rtl"),x(d,"".concat(g.value,"-ghost"),!!y),x(d,s.class,!!s.class),d));return v("div",W(W({class:_},Ie(s)),{},{style:s.style,role:r?"tablist":null}),[N()])}}}),la=ae({compatConfig:{MODE:3},name:"PanelContent",props:me(),setup:function(e,t){var s=t.slots,c=F(!1);return Se(function(){(e.isActive||e.forceRender)&&(c.value=!0)}),function(){var n,o;if(!c.value)return null;var f=e.prefixCls,g=e.isActive,P=e.role;return v("div",{ref:F,class:Z("".concat(f,"-content"),(n={},x(n,"".concat(f,"-content-active"),g),x(n,"".concat(f,"-content-inactive"),!g),n)),role:P},[v("div",{class:"".concat(f,"-content-box")},[(o=s.default)===null||o===void 0?void 0:o.call(s)])])}}}),ee=ae({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:ge(me(),{showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1}),slots:["expandIcon","extra","header"],setup:function(e,t){var s=t.slots,c=t.emit,n=t.attrs;Be(e.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');var o=he("collapse",e),f=o.prefixCls,g=function(){c("itemClick",e.panelKey)},P=function(h){(h.key==="Enter"||h.keyCode===13||h.which===13)&&g()};return function(){var T,h,E,$,j=e.header,N=j===void 0?(T=s.header)===null||T===void 0?void 0:T.call(s):j,d=e.headerClass,r=e.isActive,u=e.showArrow,y=e.destroyInactivePanel,_=e.accordion,R=e.forceRender,a=e.openAnimation,i=e.expandIcon,b=i===void 0?s.expandIcon:i,k=e.extra,O=k===void 0?(h=s.extra)===null||h===void 0?void 0:h.call(s):k,I=e.collapsible,w=I==="disabled",A=f.value,p=Z("".concat(A,"-header"),(E={},x(E,d,d),x(E,"".concat(A,"-header-collapsible-only"),I==="header"),E)),G=Z(($={},x($,"".concat(A,"-item"),!0),x($,"".concat(A,"-item-active"),r),x($,"".concat(A,"-item-disabled"),w),x($,"".concat(A,"-no-arrow"),!u),x($,"".concat(n.class),!!n.class),$)),m=v("i",{class:"arrow"},null);u&&typeof b=="function"&&(m=b(e));var L=Ke(v(la,{prefixCls:A,isActive:r,forceRender:R,role:_?"tabpanel":null},{default:s.default}),[[Te,r]]),U=W({appear:!1,css:!1},a);return v("div",W(W({},n),{},{class:G}),[v("div",{class:p,onClick:function(){return I!=="header"&&g()},role:_?"tab":"button",tabindex:w?-1:0,"aria-expanded":r,onKeypress:P},[u&&m,I==="header"?v("span",{onClick:g,class:"".concat(A,"-header-text")},[N]):N,O&&v("div",{class:"".concat(A,"-extra")},[O])]),v(Ee,U,{default:function(){return[!y||r?L:null]}})])}}});X.Panel=ee;X.install=function(l){return l.component(X.name,X),l.component(ee.name,ee),l};var sa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};const oa=sa;function pe(l){for(var e=1;e!s.isIdle),n=F(),o=F({and_tags:[],or_tags:[],not_tags:[]}),f=J(()=>n.value?n.value.tags.slice().sort((a,i)=>i.count-a.count):[]),g=["custom","Model","lora","lyco","pos","size","Postprocess upscaler","Postprocess upscale by","Sampler"].reduce((a,i,b)=>(a[i]=b,a),{}),P=J(()=>Object.entries(xa(f.value,a=>a.type)).sort((a,i)=>g[a[0]]-g[i[0]])),T=Le(),h=F(P.value.map(a=>a[0]));qe(async()=>{n.value=await ve(),h.value=P.value.map(a=>a[0]),n.value.img_count&&n.value.expired&&E()}),oe("searchIndexExpired",()=>n.value&&(n.value.expired=!0));const E=ze(()=>s.pushAction(async()=>(await ta(),n.value=await ve(),h.value=P.value.map(a=>a[0]),n.value)).res),$=()=>{t.openTagSearchMatchedImageGridInRight(e.tabIdx,T,o.value)};oe("returnToIIB",async()=>{const a=await s.pushAction(Ze).res;n.value.expired=a.expired});const j=(a,i=!1)=>(i?`[${a.type}] `:"")+(a.display_name?`${a.display_name} : ${a.name}`:a.name),N=F(!1),d=F(""),r=async()=>{var i,b,k;if(!d.value){N.value=!1;return}const a=await s.pushAction(()=>ea({tag_name:d.value})).res;a.type!=="custom"&&de.error(ne("existInOtherType")),(i=n.value)!=null&&i.tags.find(O=>O.id===a.id)?de.error(ne("alreadyExists")):((b=n.value)==null||b.tags.push(a),(k=t.conf)==null||k.all_custom_tags.push(a)),d.value="",N.value=!1},u=a=>{Je.confirm({title:ne("confirmDelete"),async onOk(){var b,k,O,I;await aa({tag_id:a});const i=((b=n.value)==null?void 0:b.tags.findIndex(w=>w.id===a))??-1;(k=n.value)==null||k.tags.splice(i,1),(I=t.conf)==null||I.all_custom_tags.splice((O=t.conf)==null?void 0:O.all_custom_tags.findIndex(w=>w.id===a),1)}})},y=J(()=>new Set([o.value.and_tags,o.value.or_tags,o.value.not_tags].flat())),_=a=>{y.value.has(a.id)?(o.value.and_tags=o.value.and_tags.filter(i=>i!==a.id),o.value.or_tags=o.value.or_tags.filter(i=>i!==a.id),o.value.not_tags=o.value.not_tags.filter(i=>i!==a.id)):o.value.and_tags.push(a.id)},R={value:a=>a.id,text:j,optionText:a=>j(a,!0)};return(a,i)=>{const b=ue,k=We,O=ue,I=Xe,w=ee,A=X;return C(),S("div",Ia,[q("",!0),n.value?(C(),S(Y,{key:1},[M("div",null,[M("div",Aa,[M("div",wa,B(a.$t("exactMatch")),1),v(K(te),{conv:R,mode:"multiple",style:{width:"100%"},options:f.value,value:o.value.and_tags,"onUpdate:value":i[0]||(i[0]=p=>o.value.and_tags=p),disabled:!f.value.length,placeholder:a.$t("selectExactMatchTag")},null,8,["options","value","disabled","placeholder"]),n.value.expired||!n.value.img_count?(C(),Q(b,{key:0,onClick:K(E),loading:!K(s).isIdle,type:"primary"},{default:V(()=>[z(B(n.value.img_count===0?a.$t("generateIndexHint"):a.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(C(),Q(b,{key:1,type:"primary",onClick:$,loading:!K(s).isIdle,disabled:!o.value.and_tags.length},{default:V(()=>[z(B(a.$t("search")),1)]),_:1},8,["loading","disabled"]))]),M("div",ka,[M("div",Pa,B(a.$t("anyMatch")),1),v(K(te),{conv:R,mode:"multiple",style:{width:"100%"},options:f.value,value:o.value.or_tags,"onUpdate:value":i[1]||(i[1]=p=>o.value.or_tags=p),disabled:!f.value.length,placeholder:a.$t("selectAnyMatchTag")},null,8,["options","value","disabled","placeholder"])]),M("div",$a,[M("div",Oa,B(a.$t("exclude")),1),v(K(te),{conv:R,mode:"multiple",style:{width:"100%"},options:f.value,value:o.value.not_tags,"onUpdate:value":i[2]||(i[2]=p=>o.value.not_tags=p),disabled:!f.value.length,placeholder:a.$t("selectExcludeTag")},null,8,["options","value","disabled","placeholder"])])]),f.value.filter(p=>p.type!=="custom").length?q("",!0):(C(),S("p",Sa,B(a.$t("needGenerateIdx")),1)),M("div",Ba,[(C(!0),S(Y,null,ie(P.value,([p,G])=>(C(),S("ul",{class:"tag-list",key:p},[M("h3",{class:"cat-name",onClick:m=>h.value.includes(p)?h.value.splice(h.value.indexOf(p),1):h.value.push(p)},[v(K(ra),{class:re(["arrow",{down:h.value.includes(p)}])},null,8,["class"]),z(" "+B(a.$t(p)),1)],8,Ka),v(A,{ghost:"",activeKey:h.value,"onUpdate:activeKey":i[5]||(i[5]=m=>h.value=m)},{expandIcon:V(()=>[]),default:V(()=>[(C(),Q(w,{key:p},{default:V(()=>[(C(!0),S(Y,null,ie(G,(m,L)=>(C(),S("li",{key:m.id,class:re(["tag",{selected:y.value.has(m.id)}]),onClick:U=>_(m)},[y.value.has(m.id)?(C(),Q(K(Ge),{key:0})):q("",!0),z(" "+B(j(m))+" ",1),p==="custom"&&L!==0?(C(),S("span",{key:1,class:"remove",onClickCapture:ce(U=>u(m.id),["stop"])},[v(K(He))],40,Ea)):q("",!0)],10,Ta))),128)),p==="custom"?(C(),S("li",{key:0,class:"tag",onClick:i[4]||(i[4]=m=>N.value=!0)},[N.value?(C(),Q(I,{key:0,compact:""},{default:V(()=>[v(k,{value:d.value,"onUpdate:value":i[3]||(i[3]=m=>d.value=m),style:{width:"128px"},loading:c.value,"allow-clear":"",size:"small"},null,8,["value","loading"]),v(O,{size:"small",type:"primary",onClickCapture:ce(r,["stop"]),loading:c.value},{default:V(()=>[z(B(d.value?a.$t("submit"):a.$t("cancel")),1)]),_:1},8,["onClickCapture","loading"])]),_:1})):(C(),S(Y,{key:1},[v(K(Qe)),z(" "+B(a.$t("add")),1)],64))])):q("",!0)]),_:2},1024))]),_:2},1032,["activeKey"])]))),128))])],64)):q("",!0)])}}});const Fa=Ye(Na,[["__scopeId","data-v-d3d0aa40"]]);export{Fa as default}; +import{P as D,Z as _e,d as ae,bq as ge,aY as be,$ as F,bH as Ce,l as xe,u as he,aj as J,a0 as Z,h as x,c as v,a as W,bI as Ie,b as Ae,f as we,bJ as ke,a3 as se,bK as Pe,a2 as $e,i as Oe,b0 as Se,bL as Be,a5 as Ke,a6 as Te,a7 as Ee,ag as Ne,aT as Re,aR as Me,bM as je,aS as De,bN as Fe,k as Ue,bO as Ve,al as Le,aw as qe,bP as oe,bQ as ze,o as C,y as S,C as q,z as Y,p as M,v as B,r as K,S as te,m as Q,n as V,x as z,A as ie,N as re,bR as Ge,q as ce,a1 as He,ak as Qe,ar as de,ai as ne,R as Je,V as ue,U as We,bS as Xe,X as Ye}from"./index-a4883aca.js";/* empty css *//* empty css */import{b as ve,c as Ze,d as ea,e as aa,u as ta}from"./db-a03371d5.js";var na=function(){return{prefixCls:String,activeKey:{type:[Array,Number,String]},defaultActiveKey:{type:[Array,Number,String]},accordion:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},expandIcon:Function,openAnimation:D.object,expandIconPosition:D.oneOf(_e("left","right")),collapsible:{type:String},ghost:{type:Boolean,default:void 0},onChange:Function,"onUpdate:activeKey":Function}},me=function(){return{openAnimation:D.object,prefixCls:String,header:D.any,headerClass:String,showArrow:{type:Boolean,default:void 0},isActive:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},accordion:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},expandIcon:Function,extra:D.any,panelKey:D.oneOfType([D.string,D.number]),collapsible:{type:String},role:String,onItemClick:{type:Function}}};function fe(l){var e=l;if(!Array.isArray(e)){var t=Ae(e);e=t==="number"||t==="string"?[e]:[]}return e.map(function(s){return String(s)})}const X=ae({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:ge(na(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,openAnimation:be("ant-motion-collapse",!1),expandIconPosition:"left"}),slots:["expandIcon"],setup:function(e,t){var s=t.attrs,c=t.slots,n=t.emit,o=F(fe(Ce([e.activeKey,e.defaultActiveKey])));xe(function(){return e.activeKey},function(){o.value=fe(e.activeKey)},{deep:!0});var f=he("collapse",e),g=f.prefixCls,P=f.direction,T=J(function(){var d=e.expandIconPosition;return d!==void 0?d:P.value==="rtl"?"right":"left"}),h=function(r){var u=e.expandIcon,y=u===void 0?c.expandIcon:u,_=y?y(r):v(Pe,{rotate:r.isActive?90:void 0},null);return v("div",null,[$e(Array.isArray(y)?_[0]:_)?se(_,{class:"".concat(g.value,"-arrow")},!1):_])},E=function(r){e.activeKey===void 0&&(o.value=r);var u=e.accordion?r[0]:r;n("update:activeKey",u),n("change",u)},$=function(r){var u=o.value;if(e.accordion)u=u[0]===r?[]:[r];else{u=Oe(u);var y=u.indexOf(r),_=y>-1;_?u.splice(y,1):u.push(r)}E(u)},j=function(r,u){var y,_,R;if(!ke(r)){var a=o.value,i=e.accordion,b=e.destroyInactivePanel,k=e.collapsible,O=e.openAnimation,I=String((y=r.key)!==null&&y!==void 0?y:u),w=r.props||{},A=w.header,p=A===void 0?(_=r.children)===null||_===void 0||(R=_.header)===null||R===void 0?void 0:R.call(_):A,G=w.headerClass,m=w.collapsible,L=w.disabled,U=!1;i?U=a[0]===I:U=a.indexOf(I)>-1;var H=m??k;(L||L==="")&&(H="disabled");var ye={key:I,panelKey:I,header:p,headerClass:G,isActive:U,prefixCls:g.value,destroyInactivePanel:b,openAnimation:O,accordion:i,onItemClick:H==="disabled"?null:$,expandIcon:h,collapsible:H};return se(r,ye)}},N=function(){var r;return we((r=c.default)===null||r===void 0?void 0:r.call(c)).map(j)};return function(){var d,r=e.accordion,u=e.bordered,y=e.ghost,_=Z((d={},x(d,g.value,!0),x(d,"".concat(g.value,"-borderless"),!u),x(d,"".concat(g.value,"-icon-position-").concat(T.value),!0),x(d,"".concat(g.value,"-rtl"),P.value==="rtl"),x(d,"".concat(g.value,"-ghost"),!!y),x(d,s.class,!!s.class),d));return v("div",W(W({class:_},Ie(s)),{},{style:s.style,role:r?"tablist":null}),[N()])}}}),la=ae({compatConfig:{MODE:3},name:"PanelContent",props:me(),setup:function(e,t){var s=t.slots,c=F(!1);return Se(function(){(e.isActive||e.forceRender)&&(c.value=!0)}),function(){var n,o;if(!c.value)return null;var f=e.prefixCls,g=e.isActive,P=e.role;return v("div",{ref:F,class:Z("".concat(f,"-content"),(n={},x(n,"".concat(f,"-content-active"),g),x(n,"".concat(f,"-content-inactive"),!g),n)),role:P},[v("div",{class:"".concat(f,"-content-box")},[(o=s.default)===null||o===void 0?void 0:o.call(s)])])}}}),ee=ae({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:ge(me(),{showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1}),slots:["expandIcon","extra","header"],setup:function(e,t){var s=t.slots,c=t.emit,n=t.attrs;Be(e.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');var o=he("collapse",e),f=o.prefixCls,g=function(){c("itemClick",e.panelKey)},P=function(h){(h.key==="Enter"||h.keyCode===13||h.which===13)&&g()};return function(){var T,h,E,$,j=e.header,N=j===void 0?(T=s.header)===null||T===void 0?void 0:T.call(s):j,d=e.headerClass,r=e.isActive,u=e.showArrow,y=e.destroyInactivePanel,_=e.accordion,R=e.forceRender,a=e.openAnimation,i=e.expandIcon,b=i===void 0?s.expandIcon:i,k=e.extra,O=k===void 0?(h=s.extra)===null||h===void 0?void 0:h.call(s):k,I=e.collapsible,w=I==="disabled",A=f.value,p=Z("".concat(A,"-header"),(E={},x(E,d,d),x(E,"".concat(A,"-header-collapsible-only"),I==="header"),E)),G=Z(($={},x($,"".concat(A,"-item"),!0),x($,"".concat(A,"-item-active"),r),x($,"".concat(A,"-item-disabled"),w),x($,"".concat(A,"-no-arrow"),!u),x($,"".concat(n.class),!!n.class),$)),m=v("i",{class:"arrow"},null);u&&typeof b=="function"&&(m=b(e));var L=Ke(v(la,{prefixCls:A,isActive:r,forceRender:R,role:_?"tabpanel":null},{default:s.default}),[[Te,r]]),U=W({appear:!1,css:!1},a);return v("div",W(W({},n),{},{class:G}),[v("div",{class:p,onClick:function(){return I!=="header"&&g()},role:_?"tab":"button",tabindex:w?-1:0,"aria-expanded":r,onKeypress:P},[u&&m,I==="header"?v("span",{onClick:g,class:"".concat(A,"-header-text")},[N]):N,O&&v("div",{class:"".concat(A,"-extra")},[O])]),v(Ee,U,{default:function(){return[!y||r?L:null]}})])}}});X.Panel=ee;X.install=function(l){return l.component(X.name,X),l.component(ee.name,ee),l};var sa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};const oa=sa;function pe(l){for(var e=1;e!s.isIdle),n=F(),o=F({and_tags:[],or_tags:[],not_tags:[]}),f=J(()=>n.value?n.value.tags.slice().sort((a,i)=>i.count-a.count):[]),g=["custom","Model","lora","lyco","pos","size","Postprocess upscaler","Postprocess upscale by","Sampler"].reduce((a,i,b)=>(a[i]=b,a),{}),P=J(()=>Object.entries(xa(f.value,a=>a.type)).sort((a,i)=>g[a[0]]-g[i[0]])),T=Le(),h=F(P.value.map(a=>a[0]));qe(async()=>{n.value=await ve(),h.value=P.value.map(a=>a[0]),n.value.img_count&&n.value.expired&&E()}),oe("searchIndexExpired",()=>n.value&&(n.value.expired=!0));const E=ze(()=>s.pushAction(async()=>(await ta(),n.value=await ve(),h.value=P.value.map(a=>a[0]),n.value)).res),$=()=>{t.openTagSearchMatchedImageGridInRight(e.tabIdx,T,o.value)};oe("returnToIIB",async()=>{const a=await s.pushAction(Ze).res;n.value.expired=a.expired});const j=(a,i=!1)=>(i?`[${a.type}] `:"")+(a.display_name?`${a.display_name} : ${a.name}`:a.name),N=F(!1),d=F(""),r=async()=>{var i,b,k;if(!d.value){N.value=!1;return}const a=await s.pushAction(()=>ea({tag_name:d.value})).res;a.type!=="custom"&&de.error(ne("existInOtherType")),(i=n.value)!=null&&i.tags.find(O=>O.id===a.id)?de.error(ne("alreadyExists")):((b=n.value)==null||b.tags.push(a),(k=t.conf)==null||k.all_custom_tags.push(a)),d.value="",N.value=!1},u=a=>{Je.confirm({title:ne("confirmDelete"),async onOk(){var b,k,O,I;await aa({tag_id:a});const i=((b=n.value)==null?void 0:b.tags.findIndex(w=>w.id===a))??-1;(k=n.value)==null||k.tags.splice(i,1),(I=t.conf)==null||I.all_custom_tags.splice((O=t.conf)==null?void 0:O.all_custom_tags.findIndex(w=>w.id===a),1)}})},y=J(()=>new Set([o.value.and_tags,o.value.or_tags,o.value.not_tags].flat())),_=a=>{y.value.has(a.id)?(o.value.and_tags=o.value.and_tags.filter(i=>i!==a.id),o.value.or_tags=o.value.or_tags.filter(i=>i!==a.id),o.value.not_tags=o.value.not_tags.filter(i=>i!==a.id)):o.value.and_tags.push(a.id)},R={value:a=>a.id,text:j,optionText:a=>j(a,!0)};return(a,i)=>{const b=ue,k=We,O=ue,I=Xe,w=ee,A=X;return C(),S("div",Ia,[q("",!0),n.value?(C(),S(Y,{key:1},[M("div",null,[M("div",Aa,[M("div",wa,B(a.$t("exactMatch")),1),v(K(te),{conv:R,mode:"multiple",style:{width:"100%"},options:f.value,value:o.value.and_tags,"onUpdate:value":i[0]||(i[0]=p=>o.value.and_tags=p),disabled:!f.value.length,placeholder:a.$t("selectExactMatchTag")},null,8,["options","value","disabled","placeholder"]),n.value.expired||!n.value.img_count?(C(),Q(b,{key:0,onClick:K(E),loading:!K(s).isIdle,type:"primary"},{default:V(()=>[z(B(n.value.img_count===0?a.$t("generateIndexHint"):a.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(C(),Q(b,{key:1,type:"primary",onClick:$,loading:!K(s).isIdle,disabled:!o.value.and_tags.length},{default:V(()=>[z(B(a.$t("search")),1)]),_:1},8,["loading","disabled"]))]),M("div",ka,[M("div",Pa,B(a.$t("anyMatch")),1),v(K(te),{conv:R,mode:"multiple",style:{width:"100%"},options:f.value,value:o.value.or_tags,"onUpdate:value":i[1]||(i[1]=p=>o.value.or_tags=p),disabled:!f.value.length,placeholder:a.$t("selectAnyMatchTag")},null,8,["options","value","disabled","placeholder"])]),M("div",$a,[M("div",Oa,B(a.$t("exclude")),1),v(K(te),{conv:R,mode:"multiple",style:{width:"100%"},options:f.value,value:o.value.not_tags,"onUpdate:value":i[2]||(i[2]=p=>o.value.not_tags=p),disabled:!f.value.length,placeholder:a.$t("selectExcludeTag")},null,8,["options","value","disabled","placeholder"])])]),f.value.filter(p=>p.type!=="custom").length?q("",!0):(C(),S("p",Sa,B(a.$t("needGenerateIdx")),1)),M("div",Ba,[(C(!0),S(Y,null,ie(P.value,([p,G])=>(C(),S("ul",{class:"tag-list",key:p},[M("h3",{class:"cat-name",onClick:m=>h.value.includes(p)?h.value.splice(h.value.indexOf(p),1):h.value.push(p)},[v(K(ra),{class:re(["arrow",{down:h.value.includes(p)}])},null,8,["class"]),z(" "+B(a.$t(p)),1)],8,Ka),v(A,{ghost:"",activeKey:h.value,"onUpdate:activeKey":i[5]||(i[5]=m=>h.value=m)},{expandIcon:V(()=>[]),default:V(()=>[(C(),Q(w,{key:p},{default:V(()=>[(C(!0),S(Y,null,ie(G,(m,L)=>(C(),S("li",{key:m.id,class:re(["tag",{selected:y.value.has(m.id)}]),onClick:U=>_(m)},[y.value.has(m.id)?(C(),Q(K(Ge),{key:0})):q("",!0),z(" "+B(j(m))+" ",1),p==="custom"&&L!==0?(C(),S("span",{key:1,class:"remove",onClickCapture:ce(U=>u(m.id),["stop"])},[v(K(He))],40,Ea)):q("",!0)],10,Ta))),128)),p==="custom"?(C(),S("li",{key:0,class:"tag",onClick:i[4]||(i[4]=m=>N.value=!0)},[N.value?(C(),Q(I,{key:0,compact:""},{default:V(()=>[v(k,{value:d.value,"onUpdate:value":i[3]||(i[3]=m=>d.value=m),style:{width:"128px"},loading:c.value,"allow-clear":"",size:"small"},null,8,["value","loading"]),v(O,{size:"small",type:"primary",onClickCapture:ce(r,["stop"]),loading:c.value},{default:V(()=>[z(B(d.value?a.$t("submit"):a.$t("cancel")),1)]),_:1},8,["onClickCapture","loading"])]),_:1})):(C(),S(Y,{key:1},[v(K(Qe)),z(" "+B(a.$t("add")),1)],64))])):q("",!0)]),_:2},1024))]),_:2},1032,["activeKey"])]))),128))])],64)):q("",!0)])}}});const Fa=Ye(Na,[["__scopeId","data-v-d3d0aa40"]]);export{Fa as default}; diff --git a/vue/dist/assets/batchDownload-f20de8ae.js b/vue/dist/assets/batchDownload-041ddd37.js similarity index 90% rename from vue/dist/assets/batchDownload-f20de8ae.js rename to vue/dist/assets/batchDownload-041ddd37.js index d33695e..967165a 100644 --- a/vue/dist/assets/batchDownload-f20de8ae.js +++ b/vue/dist/assets/batchDownload-041ddd37.js @@ -1 +1 @@ -import{d as v,c0 as C,bO as I,o as i,y as _,p as f,c,n as r,x as h,v as d,r as e,m as F,L as x,c1 as z,c2 as B,V as $,X as R}from"./index-35e9ee40.js";import{u as S,b as V,k as E,F as A,g as L}from"./FileItem-7d7b8ef3.js";import"./db-c6358829.js";import"./shortcut-9c26d495.js";const T={class:"actions-panel actions"},N={key:0,class:"file-list"},U={class:"hint"},H=v({__name:"batchDownload",props:{tabIdx:{},paneIdx:{},id:{}},setup(O){const{stackViewEl:w}=S().toRefs(),{itemSize:p,gridItems:k,cellWidth:b}=V(),l=E(),{selectdFiles:n}=C(l),u=I(),y=async t=>{const s=z(t);s&&l.addFiles(s.nodes)},D=async()=>{u.pushAction(async()=>{const t=await B.value.post("/zip",{paths:n.value.map(o=>o.fullpath)},{responseType:"blob"}),s=window.URL.createObjectURL(new Blob([t.data])),a=document.createElement("a");a.href=s,a.setAttribute("download",`iib_${new Date().toLocaleString()}.zip`),document.body.appendChild(a),a.click()})},g=t=>{n.value.splice(t,1)};return(t,s)=>{const a=$;return i(),_("div",{class:"container",ref_key:"stackViewEl",ref:w,onDrop:y},[f("div",T,[c(a,{onClick:s[0]||(s[0]=o=>e(l).selectdFiles=[])},{default:r(()=>[h(d(t.$t("clear")),1)]),_:1}),c(a,{onClick:D,type:"primary",loading:!e(u).isIdle},{default:r(()=>[h(d(t.$t("zipDownload")),1)]),_:1},8,["loading"])]),e(n).length?(i(),F(e(L),{key:1,ref:"scroller",class:"file-list",items:e(n).slice(),"item-size":e(p).first,"key-field":"fullpath","item-secondary-size":e(p).second,gridItems:e(k)},{default:r(({item:o,index:m})=>[c(A,{idx:m,file:o,"cell-width":e(b),"enable-close-icon":"",onCloseIconClick:j=>g(m),"full-screen-preview-image-url":e(x)(o),"enable-right-click-menu":!1},null,8,["idx","file","cell-width","onCloseIconClick","full-screen-preview-image-url"])]),_:1},8,["items","item-size","item-secondary-size","gridItems"])):(i(),_("div",N,[f("p",U,d(t.$t("batchDownloaDDragAndDropHint")),1)]))],544)}}});const G=R(H,[["__scopeId","data-v-aab31da2"]]);export{G as default}; +import{d as v,c0 as C,bO as I,o as i,y as _,p as f,c,n as r,x as h,v as d,r as e,m as F,L as x,c1 as z,c2 as B,V as $,X as R}from"./index-a4883aca.js";import{u as S,b as V,k as E,F as A,g as L}from"./FileItem-f87590d0.js";import"./db-a03371d5.js";import"./shortcut-c6713a64.js";const T={class:"actions-panel actions"},N={key:0,class:"file-list"},U={class:"hint"},H=v({__name:"batchDownload",props:{tabIdx:{},paneIdx:{},id:{}},setup(O){const{stackViewEl:w}=S().toRefs(),{itemSize:p,gridItems:k,cellWidth:b}=V(),l=E(),{selectdFiles:n}=C(l),u=I(),y=async t=>{const s=z(t);s&&l.addFiles(s.nodes)},D=async()=>{u.pushAction(async()=>{const t=await B.value.post("/zip",{paths:n.value.map(o=>o.fullpath)},{responseType:"blob"}),s=window.URL.createObjectURL(new Blob([t.data])),a=document.createElement("a");a.href=s,a.setAttribute("download",`iib_${new Date().toLocaleString()}.zip`),document.body.appendChild(a),a.click()})},g=t=>{n.value.splice(t,1)};return(t,s)=>{const a=$;return i(),_("div",{class:"container",ref_key:"stackViewEl",ref:w,onDrop:y},[f("div",T,[c(a,{onClick:s[0]||(s[0]=o=>e(l).selectdFiles=[])},{default:r(()=>[h(d(t.$t("clear")),1)]),_:1}),c(a,{onClick:D,type:"primary",loading:!e(u).isIdle},{default:r(()=>[h(d(t.$t("zipDownload")),1)]),_:1},8,["loading"])]),e(n).length?(i(),F(e(L),{key:1,ref:"scroller",class:"file-list",items:e(n).slice(),"item-size":e(p).first,"key-field":"fullpath","item-secondary-size":e(p).second,gridItems:e(k)},{default:r(({item:o,index:m})=>[c(A,{idx:m,file:o,"cell-width":e(b),"enable-close-icon":"",onCloseIconClick:j=>g(m),"full-screen-preview-image-url":e(x)(o),"enable-right-click-menu":!1},null,8,["idx","file","cell-width","onCloseIconClick","full-screen-preview-image-url"])]),_:1},8,["items","item-size","item-secondary-size","gridItems"])):(i(),_("div",N,[f("p",U,d(t.$t("batchDownloaDDragAndDropHint")),1)]))],544)}}});const G=R(H,[["__scopeId","data-v-aab31da2"]]);export{G as default}; diff --git a/vue/dist/assets/db-c6358829.js b/vue/dist/assets/db-a03371d5.js similarity index 92% rename from vue/dist/assets/db-c6358829.js rename to vue/dist/assets/db-a03371d5.js index 95aa22d..3ed9176 100644 --- a/vue/dist/assets/db-c6358829.js +++ b/vue/dist/assets/db-a03371d5.js @@ -1 +1 @@ -import{c2 as t}from"./index-35e9ee40.js";const o=async()=>(await t.value.get("/db/basic_info")).data,c=async()=>(await t.value.get("/db/expired_dirs")).data,r=async()=>{await t.value.post("/db/update_image_data",{},{timeout:1/0})},d=async a=>(await t.value.post("/db/match_images_by_tags",a)).data,g=async a=>(await t.value.post("/db/add_custom_tag",a)).data,u=async a=>(await t.value.post("/db/toggle_custom_tag_to_img",a)).data,p=async a=>{await t.value.post("/db/remove_custom_tag",a)},i=async a=>(await t.value.get("/db/search_by_substr",{params:{substr:a}})).data,e="/db/scanned_paths",m=async a=>{await t.value.post(e,{path:a})},_=async a=>{await t.value.delete(e,{data:{path:a}})},b=async a=>(await t.value.post("/db/get_image_tags",{paths:a})).data;export{m as a,o as b,c,g as d,p as e,i as f,d as g,b as h,_ as r,u as t,r as u}; +import{c2 as t}from"./index-a4883aca.js";const o=async()=>(await t.value.get("/db/basic_info")).data,c=async()=>(await t.value.get("/db/expired_dirs")).data,r=async()=>{await t.value.post("/db/update_image_data",{},{timeout:1/0})},d=async a=>(await t.value.post("/db/match_images_by_tags",a)).data,g=async a=>(await t.value.post("/db/add_custom_tag",a)).data,u=async a=>(await t.value.post("/db/toggle_custom_tag_to_img",a)).data,p=async a=>{await t.value.post("/db/remove_custom_tag",a)},i=async a=>(await t.value.get("/db/search_by_substr",{params:{substr:a}})).data,e="/db/scanned_paths",m=async a=>{await t.value.post(e,{path:a})},_=async a=>{await t.value.delete(e,{data:{path:a}})},b=async a=>(await t.value.post("/db/get_image_tags",{paths:a})).data;export{m as a,o as b,c,g as d,p as e,i as f,d as g,b as h,_ as r,u as t,r as u}; diff --git a/vue/dist/assets/emptyStartup-67ea4c34.js b/vue/dist/assets/emptyStartup-67ea4c34.js new file mode 100644 index 0000000..5150cde --- /dev/null +++ b/vue/dist/assets/emptyStartup-67ea4c34.js @@ -0,0 +1 @@ +import{Y as he,Z as me,d as ce,u as fe,$ as D,g as H,a0 as ge,h as O,c as p,a1 as _e,a2 as be,a3 as ye,a4 as ke,a5 as we,a6 as Ce,a as te,a7 as Oe,P as S,a8 as Se,a9 as $e,aa as Ie,ab as xe,ac as Pe,ad as ze,ae as Ae,af as Me,ag as ie,k as De,ah as Te,ai as g,aj as ne,o as d,y as f,p as a,v as c,r as h,C as y,m as W,n as $,q as I,z as j,A as B,x as V,ak as Ee,al as ae,am as Fe,an as Le,ao as Ne,R as X,ap as He,U as je,aq as Be,ar as Y,as as R,V as Ve,at as Re,au as qe,X as Ge}from"./index-a4883aca.js";import{a as Qe,r as Ue}from"./db-a03371d5.js";var We={success:Se,info:$e,error:Ie,warning:xe},Xe={success:Pe,info:ze,error:Ae,warning:Me},Ye=me("success","info","warning","error"),Ze=function(){return{type:S.oneOf(Ye),closable:{type:Boolean,default:void 0},closeText:S.any,message:S.any,description:S.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:S.any,closeIcon:S.any,onClose:Function}},Je=ce({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:Ze(),setup:function(n,e){var i=e.slots,m=e.emit,k=e.attrs,x=e.expose,P=fe("alert",n),G=P.prefixCls,Q=P.direction,C=D(!1),T=D(!1),E=D(),t=function(l){l.preventDefault();var b=E.value;b.style.height="".concat(b.offsetHeight,"px"),b.style.height="".concat(b.offsetHeight,"px"),C.value=!0,m("close",l)},r=function(){var l;C.value=!1,T.value=!0,(l=n.afterClose)===null||l===void 0||l.call(n)};x({animationEnd:r});var _=D({});return function(){var u,l,b=n.banner,z=n.closeIcon,o=z===void 0?(u=i.closeIcon)===null||u===void 0?void 0:u.call(i):z,w=n.closable,A=n.type,M=n.showIcon,U=H(i,n,"closeText"),F=H(i,n,"description"),K=H(i,n,"message"),L=H(i,n,"icon");M=b&&M===void 0?!0:M,A=b&&A===void 0?"warning":A||"info";var re=(F?Xe:We)[A]||null;U&&(w=!0);var v=G.value,ue=ge(v,(l={},O(l,"".concat(v,"-").concat(A),!0),O(l,"".concat(v,"-closing"),C.value),O(l,"".concat(v,"-with-description"),!!F),O(l,"".concat(v,"-no-icon"),!M),O(l,"".concat(v,"-banner"),!!b),O(l,"".concat(v,"-closable"),w),O(l,"".concat(v,"-rtl"),Q.value==="rtl"),l)),de=w?p("button",{type:"button",onClick:t,class:"".concat(v,"-close-icon"),tabindex:0},[U?p("span",{class:"".concat(v,"-close-text")},[U]):o===void 0?p(_e,null,null):o]):null,pe=L&&(be(L)?ye(L,{class:"".concat(v,"-icon")}):p("span",{class:"".concat(v,"-icon")},[L]))||p(re,{class:"".concat(v,"-icon")},null),ve=ke("".concat(v,"-motion"),{appear:!1,css:!0,onAfterLeave:r,onBeforeLeave:function(N){N.style.maxHeight="".concat(N.offsetHeight,"px")},onLeave:function(N){N.style.maxHeight="0px"}});return T.value?null:p(Oe,ve,{default:function(){return[we(p("div",te(te({role:"alert"},k),{},{style:[k.style,_.value],class:[k.class,ue],"data-show":!C.value,ref:E}),[M?pe:null,p("div",{class:"".concat(v,"-content")},[K?p("div",{class:"".concat(v,"-message")},[K]):null,F?p("div",{class:"".concat(v,"-description")},[F]):null]),de]),[[Ce,!C.value]])]}})}}});const Ke=he(Je);var et={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 00-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"file-done",theme:"outlined"};const tt=et;function se(s){for(var n=1;n(Re("data-v-1cab3726"),s=s(),qe(),s),ct={class:"container"},it={class:"header"},rt={key:0,style:{"margin-left":"16px","font-size":"1.5em"}},ut=q(()=>a("div",{"flex-placeholder":""},null,-1)),dt=q(()=>a("a",{href:"https://github.com/zanllp/sd-webui-infinite-image-browsing",target:"_blank",class:"last-record"},"Github",-1)),pt={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/blob/main/.env.example",target:"_blank",class:"last-record"},vt={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/wiki/Change-log",target:"_blank",class:"last-record"},ht={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/90",target:"_blank",class:"last-record"},mt={class:"access-mode-message"},ft=q(()=>a("div",{"flex-placeholder":""},null,-1)),gt={class:"access-mode-message"},_t=q(()=>a("div",{"flex-placeholder":""},null,-1)),bt={class:"content"},yt={key:0,class:"feature-item"},kt={key:1,class:"feature-item"},wt={class:"text line-clamp-1"},Ct=["onClick"],Ot={class:"text line-clamp-2"},St={class:"feature-item"},$t=["onClick"],It={class:"text line-clamp-1"},xt={class:"text line-clamp-1"},Pt={class:"text line-clamp-1"},zt={class:"text line-clamp-1"},At={key:2,class:"feature-item recent"},Mt={class:"title"},Dt=["onClick"],Tt={class:"text line-clamp-1"},Et=ce({__name:"emptyStartup",props:{tabIdx:{},paneIdx:{}},setup(s){const n=s,e=De(),i=Te(),m={local:g("local"),"tag-search":g("imgSearch"),"fuzzy-search":g("fuzzy-search"),"global-setting":g("globalSettings"),"batch-download":g("batchDownload")+" / "+g("archive")},k=(t,r,_=!1)=>{let u;switch(t){case"tag-search-matched-image-grid":case"img-sli":return;case"global-setting":case"tag-search":case"batch-download":case"fuzzy-search":case"empty":u={type:t,name:m[t],key:Date.now()+ae()};break;case"local":u={type:t,name:m[t],key:Date.now()+ae(),path:r,walkModePath:_?r:void 0}}const l=e.tabList[n.tabIdx];l.panes.splice(n.paneIdx,1,u),l.key=u.key},x=ne(()=>{var t;return(t=e.tabListHistoryRecord)==null?void 0:t[1]}),P=ne(()=>e.quickMovePaths.filter(({key:t})=>t==="outdir_txt2img_samples"||t==="outdir_img2img_samples")),G=window.parent!==window,Q=()=>window.parent.open("/infinite_image_browsing"+(window.parent.location.href.includes("theme=dark")?"?__theme=dark":"")),C=()=>{Fe(x.value),e.tabList=Le(x.value.tabs)},T=async()=>{let t;if({}.TAURI_ARCH){const r=await Ne({directory:!0});if(typeof r=="string")t=r;else return}else t=await new Promise(r=>{const _=D("");X.confirm({title:g("inputTargetFolderPath"),content:()=>He(je,{value:_.value,"onUpdate:value":u=>_.value=u}),async onOk(){const u=_.value;(await Be([u]))[u]?r(_.value):Y.error(g("pathDoesNotExist"))}})});X.confirm({content:g("confirmToAddToQuickMove"),async onOk(){await Qe(t),Y.success(g("addCompleted")),R.emit("searchIndexExpired"),R.emit("updateGlobalSetting")}})},E=t=>{X.confirm({content:g("confirmDelete"),closable:!0,async onOk(){await Ue(t),Y.success(g("removeCompleted")),R.emit("searchIndexExpired"),R.emit("updateGlobalSetting")}})};return(t,r)=>{var l,b,z;const _=Ke,u=Ve;return d(),f("div",ct,[a("div",it,[a("h1",null,c(t.$t("welcome")),1),(l=h(e).conf)!=null&&l.enable_access_control&&h(e).dontShowAgain?(d(),f("div",rt,[p(h(le),{title:"Access Control mode",style:{"vertical-align":"text-bottom"}})])):y("",!0),ut,dt,a("a",pt,c(t.$t("privacyAndSecurity")),1),a("a",vt,c(t.$t("changlog")),1),a("a",ht,c(t.$t("faq")),1)]),(b=h(e).conf)!=null&&b.enable_access_control&&!h(e).dontShowAgain?(d(),W(_,{key:0,"show-icon":""},{message:$(()=>[a("div",mt,[a("div",null,c(t.$t("accessControlModeTips")),1),ft,a("a",{onClick:r[0]||(r[0]=I(o=>h(e).dontShowAgain=!0,["prevent"]))},c(t.$t("dontShowAgain")),1)])]),icon:$(()=>[p(h(le))]),_:1})):y("",!0),h(e).dontShowAgainNewImgOpts?y("",!0):(d(),W(_,{key:1,"show-icon":""},{message:$(()=>[a("div",gt,[a("div",null,c(t.$t("majorUpdateCustomCellSizeTips")),1),_t,a("a",{onClick:r[1]||(r[1]=I(o=>h(e).dontShowAgainNewImgOpts=!0,["prevent"]))},c(t.$t("dontShowAgain")),1)])]),_:1})),a("div",bt,[P.value.length?(d(),f("div",yt,[a("h2",null,c(t.$t("walkMode")),1),a("ul",null,[(d(!0),f(j,null,B(P.value,o=>(d(),f("li",{key:o.dir,class:"item"},[p(u,{onClick:w=>k("local",o.dir,!0),ghost:"",type:"primary",block:""},{default:$(()=>[V(c(o.zh),1)]),_:2},1032,["onClick"])]))),128))])])):y("",!0),h(e).quickMovePaths.length?(d(),f("div",kt,[a("h2",null,c(t.$t("launchFromQuickMove")),1),a("ul",null,[a("li",{onClick:T,class:"item",style:{"text-align":""}},[a("span",wt,[p(h(Ee)),V(" "+c(t.$t("add")),1)])]),(d(!0),f(j,null,B(h(e).quickMovePaths,o=>(d(),f("li",{key:o.key,class:"item rem",onClick:I(w=>k("local",o.dir),["prevent"])},[a("span",Ot,c(o.zh),1),o.can_delete?(d(),W(u,{key:0,type:"link",onClick:I(w=>E(o.dir),["stop"])},{default:$(()=>[V(c(t.$t("remove")),1)]),_:2},1032,["onClick"])):y("",!0)],8,Ct))),128))])])):y("",!0),a("div",St,[a("h2",null,c(t.$t("launch")),1),a("ul",null,[(d(!0),f(j,null,B(Object.keys(m),o=>(d(),f("li",{key:o,class:"item",onClick:I(w=>k(o),["prevent"])},[a("span",It,c(m[o]),1)],8,$t))),128)),a("li",{class:"item",onClick:r[2]||(r[2]=o=>h(i).opened=!0)},[a("span",xt,c(t.$t("imgCompare")),1)]),G?(d(),f("li",{key:0,class:"item",onClick:Q},[a("span",Pt,c(t.$t("openInNewWindow")),1)])):y("",!0),(z=x.value)!=null&&z.tabs.length?(d(),f("li",{key:1,class:"item",onClick:C},[a("span",zt,c(t.$t("restoreLastRecord")),1)])):y("",!0)])]),h(e).recent.length?(d(),f("div",At,[a("div",Mt,[a("h2",null,c(t.$t("recent")),1),p(u,{onClick:r[3]||(r[3]=o=>h(e).recent=[]),type:"link"},{default:$(()=>[V(c(t.$t("clear")),1)]),_:1})]),a("ul",null,[(d(!0),f(j,null,B(h(e).recent,o=>(d(),f("li",{key:o.key,class:"item",onClick:I(w=>k("local",o.path),["prevent"])},[p(h(at),{class:"icon"}),a("span",Tt,c(o.path),1)],8,Dt))),128))])])):y("",!0)])])}}});const Nt=Ge(Et,[["__scopeId","data-v-1cab3726"]]);export{Nt as default}; diff --git a/vue/dist/assets/emptyStartup-276242f5.css b/vue/dist/assets/emptyStartup-cf762322.css similarity index 71% rename from vue/dist/assets/emptyStartup-276242f5.css rename to vue/dist/assets/emptyStartup-cf762322.css index ae60085..9e5bb02 100644 --- a/vue/dist/assets/emptyStartup-276242f5.css +++ b/vue/dist/assets/emptyStartup-cf762322.css @@ -1 +1 @@ -.ant-alert{box-sizing:border-box;margin:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;display:flex;align-items:center;padding:8px 15px;word-wrap:break-word;border-radius:2px}.ant-alert-content{flex:1;min-width:0}.ant-alert-icon{margin-right:8px}.ant-alert-description{display:none;font-size:14px;line-height:22px}.ant-alert-success{background-color:#f6ffed;border:1px solid #b7eb8f}.ant-alert-success .ant-alert-icon{color:#52c41a}.ant-alert-info{background-color:#fff1e6;border:1px solid #f7ae83}.ant-alert-info .ant-alert-icon{color:#d03f0a}.ant-alert-warning{background-color:#fffbe6;border:1px solid #ffe58f}.ant-alert-warning .ant-alert-icon{color:#faad14}.ant-alert-error{background-color:#fff2f0;border:1px solid #ffccc7}.ant-alert-error .ant-alert-icon{color:#ff4d4f}.ant-alert-error .ant-alert-description>pre{margin:0;padding:0}.ant-alert-action{margin-left:8px}.ant-alert-close-icon{margin-left:8px;padding:0;overflow:hidden;font-size:12px;line-height:12px;background-color:transparent;border:none;outline:none;cursor:pointer}.ant-alert-close-icon .anticon-close{color:#00000073;transition:color .3s}.ant-alert-close-icon .anticon-close:hover{color:#000000bf}.ant-alert-close-text{color:#00000073;transition:color .3s}.ant-alert-close-text:hover{color:#000000bf}.ant-alert-with-description{align-items:flex-start;padding:15px 15px 15px 24px}.ant-alert-with-description.ant-alert-no-icon{padding:15px}.ant-alert-with-description .ant-alert-icon{margin-right:15px;font-size:24px}.ant-alert-with-description .ant-alert-message{display:block;margin-bottom:4px;color:#000000d9;font-size:16px}.ant-alert-message{color:#000000d9}.ant-alert-with-description .ant-alert-description{display:block}.ant-alert.ant-alert-motion-leave{overflow:hidden;opacity:1;transition:max-height .3s cubic-bezier(.78,.14,.15,.86),opacity .3s cubic-bezier(.78,.14,.15,.86),padding-top .3s cubic-bezier(.78,.14,.15,.86),padding-bottom .3s cubic-bezier(.78,.14,.15,.86),margin-bottom .3s cubic-bezier(.78,.14,.15,.86)}.ant-alert.ant-alert-motion-leave-active{max-height:0;margin-bottom:0!important;padding-top:0;padding-bottom:0;opacity:0}.ant-alert-banner{margin-bottom:0;border:0;border-radius:0}.ant-alert.ant-alert-rtl{direction:rtl}.ant-alert-rtl .ant-alert-icon{margin-right:auto;margin-left:8px}.ant-alert-rtl .ant-alert-action,.ant-alert-rtl .ant-alert-close-icon{margin-right:8px;margin-left:auto}.ant-alert-rtl.ant-alert-with-description{padding-right:24px;padding-left:15px}.ant-alert-rtl.ant-alert-with-description .ant-alert-icon{margin-right:auto;margin-left:15px}.access-mode-message[data-v-9ae3ce24]{display:flex;flex-direction:row;align-items:center}.access-mode-message a[data-v-9ae3ce24]{margin-left:16px}.container[data-v-9ae3ce24]{padding:20px;background-color:var(--zp-secondary-background);height:100%;overflow:auto}.header[data-v-9ae3ce24]{display:flex;justify-content:space-between;align-items:center}.header h1[data-v-9ae3ce24]{font-size:28px;font-weight:700;color:var(--zp-primary);margin:0}.last-record[data-v-9ae3ce24]{margin-left:16px;font-size:14px;color:var(--zp-secondary)}.last-record a[data-v-9ae3ce24]{text-decoration:none;color:var(--zp-secondary)}.last-record a[data-v-9ae3ce24]:hover{color:var(--zp-primary)}.content[data-v-9ae3ce24]{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));grid-gap:20px;margin-top:16px}.feature-item[data-v-9ae3ce24]{background-color:var(--zp-primary-background);border-radius:8px;box-shadow:0 1px 2px #0000001a;padding:20px}.feature-item ul[data-v-9ae3ce24]{list-style:none;padding:4px;max-height:70vh;overflow-y:auto}.feature-item.recent .title[data-v-9ae3ce24]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.feature-item.recent .title h2[data-v-9ae3ce24]{margin:0}.feature-item .item[data-v-9ae3ce24]{margin-bottom:10px;padding:4px 8px;display:flex;align-items:center}.feature-item .item.rem[data-v-9ae3ce24]{display:flex;align-items:center;justify-content:space-between}.feature-item .item[data-v-9ae3ce24]:hover{background:var(--zp-secondary-background);border-radius:4px;color:var(--primary-color);cursor:pointer}.feature-item .icon[data-v-9ae3ce24]{margin-right:8px}.feature-item h2[data-v-9ae3ce24]{margin-top:0;margin-bottom:20px;font-size:20px;font-weight:700;color:var(--zp-primary)}.text[data-v-9ae3ce24]{flex:1;font-size:16px} +.ant-alert{box-sizing:border-box;margin:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;display:flex;align-items:center;padding:8px 15px;word-wrap:break-word;border-radius:2px}.ant-alert-content{flex:1;min-width:0}.ant-alert-icon{margin-right:8px}.ant-alert-description{display:none;font-size:14px;line-height:22px}.ant-alert-success{background-color:#f6ffed;border:1px solid #b7eb8f}.ant-alert-success .ant-alert-icon{color:#52c41a}.ant-alert-info{background-color:#fff1e6;border:1px solid #f7ae83}.ant-alert-info .ant-alert-icon{color:#d03f0a}.ant-alert-warning{background-color:#fffbe6;border:1px solid #ffe58f}.ant-alert-warning .ant-alert-icon{color:#faad14}.ant-alert-error{background-color:#fff2f0;border:1px solid #ffccc7}.ant-alert-error .ant-alert-icon{color:#ff4d4f}.ant-alert-error .ant-alert-description>pre{margin:0;padding:0}.ant-alert-action{margin-left:8px}.ant-alert-close-icon{margin-left:8px;padding:0;overflow:hidden;font-size:12px;line-height:12px;background-color:transparent;border:none;outline:none;cursor:pointer}.ant-alert-close-icon .anticon-close{color:#00000073;transition:color .3s}.ant-alert-close-icon .anticon-close:hover{color:#000000bf}.ant-alert-close-text{color:#00000073;transition:color .3s}.ant-alert-close-text:hover{color:#000000bf}.ant-alert-with-description{align-items:flex-start;padding:15px 15px 15px 24px}.ant-alert-with-description.ant-alert-no-icon{padding:15px}.ant-alert-with-description .ant-alert-icon{margin-right:15px;font-size:24px}.ant-alert-with-description .ant-alert-message{display:block;margin-bottom:4px;color:#000000d9;font-size:16px}.ant-alert-message{color:#000000d9}.ant-alert-with-description .ant-alert-description{display:block}.ant-alert.ant-alert-motion-leave{overflow:hidden;opacity:1;transition:max-height .3s cubic-bezier(.78,.14,.15,.86),opacity .3s cubic-bezier(.78,.14,.15,.86),padding-top .3s cubic-bezier(.78,.14,.15,.86),padding-bottom .3s cubic-bezier(.78,.14,.15,.86),margin-bottom .3s cubic-bezier(.78,.14,.15,.86)}.ant-alert.ant-alert-motion-leave-active{max-height:0;margin-bottom:0!important;padding-top:0;padding-bottom:0;opacity:0}.ant-alert-banner{margin-bottom:0;border:0;border-radius:0}.ant-alert.ant-alert-rtl{direction:rtl}.ant-alert-rtl .ant-alert-icon{margin-right:auto;margin-left:8px}.ant-alert-rtl .ant-alert-action,.ant-alert-rtl .ant-alert-close-icon{margin-right:8px;margin-left:auto}.ant-alert-rtl.ant-alert-with-description{padding-right:24px;padding-left:15px}.ant-alert-rtl.ant-alert-with-description .ant-alert-icon{margin-right:auto;margin-left:15px}.access-mode-message[data-v-1cab3726]{display:flex;flex-direction:row;align-items:center}.access-mode-message a[data-v-1cab3726]{margin-left:16px}.container[data-v-1cab3726]{padding:20px;background-color:var(--zp-secondary-background);height:100%;overflow:auto}.header[data-v-1cab3726]{display:flex;justify-content:space-between;align-items:center}.header h1[data-v-1cab3726]{font-size:28px;font-weight:700;color:var(--zp-primary);margin:0}.last-record[data-v-1cab3726]{margin-left:16px;font-size:14px;color:var(--zp-secondary)}.last-record a[data-v-1cab3726]{text-decoration:none;color:var(--zp-secondary)}.last-record a[data-v-1cab3726]:hover{color:var(--zp-primary)}.content[data-v-1cab3726]{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));grid-gap:20px;margin-top:16px}.feature-item[data-v-1cab3726]{background-color:var(--zp-primary-background);border-radius:8px;box-shadow:0 1px 2px #0000001a;padding:20px}.feature-item ul[data-v-1cab3726]{list-style:none;padding:4px;max-height:70vh;overflow-y:auto}.feature-item.recent .title[data-v-1cab3726]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.feature-item.recent .title h2[data-v-1cab3726]{margin:0}.feature-item .item[data-v-1cab3726]{margin-bottom:10px;padding:4px 8px;display:flex;align-items:center}.feature-item .item.rem[data-v-1cab3726]{display:flex;align-items:center;justify-content:space-between}.feature-item .item[data-v-1cab3726]:hover{background:var(--zp-secondary-background);border-radius:4px;color:var(--primary-color);cursor:pointer}.feature-item .icon[data-v-1cab3726]{margin-right:8px}.feature-item h2[data-v-1cab3726]{margin-top:0;margin-bottom:20px;font-size:20px;font-weight:700;color:var(--zp-primary)}.text[data-v-1cab3726]{flex:1;font-size:16px;word-break:break-all} diff --git a/vue/dist/assets/emptyStartup-f0ca0da7.js b/vue/dist/assets/emptyStartup-f0ca0da7.js deleted file mode 100644 index 60bb5b0..0000000 --- a/vue/dist/assets/emptyStartup-f0ca0da7.js +++ /dev/null @@ -1 +0,0 @@ -import{Y as he,Z as me,d as ce,u as fe,$ as D,g as H,a0 as ge,h as O,c as p,a1 as _e,a2 as ye,a3 as be,a4 as ke,a5 as we,a6 as Ce,a as te,a7 as Oe,P as S,a8 as Se,a9 as $e,aa as Ie,ab as xe,ac as Pe,ad as ze,ae as Ae,af as Me,ag as ie,k as De,ah as Te,ai as g,aj as ne,o as d,y as f,p as a,v as c,r as h,C as b,m as G,n as $,q as I,z as j,A as B,x as V,ak as Ee,al as ae,am as Fe,an as Le,ao as Ne,R as W,ap as He,U as je,aq as Be,ar as X,as as R,V as Ve,at as Re,au as qe,X as Qe}from"./index-35e9ee40.js";import{a as Ue,r as Ge}from"./db-c6358829.js";var We={success:Se,info:$e,error:Ie,warning:xe},Xe={success:Pe,info:ze,error:Ae,warning:Me},Ye=me("success","info","warning","error"),Ze=function(){return{type:S.oneOf(Ye),closable:{type:Boolean,default:void 0},closeText:S.any,message:S.any,description:S.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:S.any,closeIcon:S.any,onClose:Function}},Je=ce({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:Ze(),setup:function(n,e){var i=e.slots,m=e.emit,k=e.attrs,x=e.expose,P=fe("alert",n),q=P.prefixCls,Q=P.direction,C=D(!1),T=D(!1),E=D(),t=function(l){l.preventDefault();var y=E.value;y.style.height="".concat(y.offsetHeight,"px"),y.style.height="".concat(y.offsetHeight,"px"),C.value=!0,m("close",l)},r=function(){var l;C.value=!1,T.value=!0,(l=n.afterClose)===null||l===void 0||l.call(n)};x({animationEnd:r});var _=D({});return function(){var u,l,y=n.banner,z=n.closeIcon,o=z===void 0?(u=i.closeIcon)===null||u===void 0?void 0:u.call(i):z,w=n.closable,A=n.type,M=n.showIcon,U=H(i,n,"closeText"),F=H(i,n,"description"),K=H(i,n,"message"),L=H(i,n,"icon");M=y&&M===void 0?!0:M,A=y&&A===void 0?"warning":A||"info";var re=(F?Xe:We)[A]||null;U&&(w=!0);var v=q.value,ue=ge(v,(l={},O(l,"".concat(v,"-").concat(A),!0),O(l,"".concat(v,"-closing"),C.value),O(l,"".concat(v,"-with-description"),!!F),O(l,"".concat(v,"-no-icon"),!M),O(l,"".concat(v,"-banner"),!!y),O(l,"".concat(v,"-closable"),w),O(l,"".concat(v,"-rtl"),Q.value==="rtl"),l)),de=w?p("button",{type:"button",onClick:t,class:"".concat(v,"-close-icon"),tabindex:0},[U?p("span",{class:"".concat(v,"-close-text")},[U]):o===void 0?p(_e,null,null):o]):null,pe=L&&(ye(L)?be(L,{class:"".concat(v,"-icon")}):p("span",{class:"".concat(v,"-icon")},[L]))||p(re,{class:"".concat(v,"-icon")},null),ve=ke("".concat(v,"-motion"),{appear:!1,css:!0,onAfterLeave:r,onBeforeLeave:function(N){N.style.maxHeight="".concat(N.offsetHeight,"px")},onLeave:function(N){N.style.maxHeight="0px"}});return T.value?null:p(Oe,ve,{default:function(){return[we(p("div",te(te({role:"alert"},k),{},{style:[k.style,_.value],class:[k.class,ue],"data-show":!C.value,ref:E}),[M?pe:null,p("div",{class:"".concat(v,"-content")},[K?p("div",{class:"".concat(v,"-message")},[K]):null,F?p("div",{class:"".concat(v,"-description")},[F]):null]),de]),[[Ce,!C.value]])]}})}}});const Ke=he(Je);var et={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 00-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"file-done",theme:"outlined"};const tt=et;function se(s){for(var n=1;n(Re("data-v-9ae3ce24"),s=s(),qe(),s),ct={class:"container"},it={class:"header"},rt={key:0,style:{"margin-left":"16px","font-size":"1.5em"}},ut=J(()=>a("div",{"flex-placeholder":""},null,-1)),dt={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing",target:"_blank",class:"last-record"},pt={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/131",target:"_blank",class:"last-record"},vt={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/90",target:"_blank",class:"last-record"},ht={class:"access-mode-message"},mt=J(()=>a("div",{"flex-placeholder":""},null,-1)),ft={class:"access-mode-message"},gt=J(()=>a("div",{"flex-placeholder":""},null,-1)),_t={class:"content"},yt={key:0,class:"feature-item"},bt={key:1,class:"feature-item"},kt={class:"text line-clamp-1"},wt=["onClick"],Ct={class:"text line-clamp-1"},Ot={class:"feature-item"},St=["onClick"],$t={class:"text line-clamp-1"},It={class:"text line-clamp-1"},xt={class:"text line-clamp-1"},Pt={class:"text line-clamp-1"},zt={key:2,class:"feature-item recent"},At={class:"title"},Mt=["onClick"],Dt={class:"text line-clamp-1"},Tt=ce({__name:"emptyStartup",props:{tabIdx:{},paneIdx:{}},setup(s){const n=s,e=De(),i=Te(),m={local:g("local"),"tag-search":g("imgSearch"),"fuzzy-search":g("fuzzy-search"),"global-setting":g("globalSettings"),"batch-download":g("batchDownload")+" / "+g("archive")},k=(t,r,_=!1)=>{let u;switch(t){case"tag-search-matched-image-grid":case"img-sli":return;case"global-setting":case"tag-search":case"batch-download":case"fuzzy-search":case"empty":u={type:t,name:m[t],key:Date.now()+ae()};break;case"local":u={type:t,name:m[t],key:Date.now()+ae(),path:r,walkModePath:_?r:void 0}}const l=e.tabList[n.tabIdx];l.panes.splice(n.paneIdx,1,u),l.key=u.key},x=ne(()=>{var t;return(t=e.tabListHistoryRecord)==null?void 0:t[1]}),P=ne(()=>e.quickMovePaths.filter(({key:t})=>t==="outdir_txt2img_samples"||t==="outdir_img2img_samples")),q=window.parent!==window,Q=()=>window.parent.open("/infinite_image_browsing"+(window.parent.location.href.includes("theme=dark")?"?__theme=dark":"")),C=()=>{Fe(x.value),e.tabList=Le(x.value.tabs)},T=async()=>{let t;if({}.TAURI_ARCH){const r=await Ne({directory:!0});if(typeof r=="string")t=r;else return}else t=await new Promise(r=>{const _=D("");W.confirm({title:g("inputTargetFolderPath"),content:()=>He(je,{value:_.value,"onUpdate:value":u=>_.value=u}),async onOk(){const u=_.value;(await Be([u]))[u]?r(_.value):X.error(g("pathDoesNotExist"))}})});W.confirm({content:g("confirmToAddToQuickMove"),async onOk(){await Ue(t),X.success(g("addCompleted")),R.emit("searchIndexExpired"),R.emit("updateGlobalSetting")}})},E=t=>{W.confirm({content:g("confirmDelete"),closable:!0,async onOk(){await Ge(t),X.success(g("removeCompleted")),R.emit("searchIndexExpired"),R.emit("updateGlobalSetting")}})};return(t,r)=>{var l,y,z;const _=Ke,u=Ve;return d(),f("div",ct,[a("div",it,[a("h1",null,c(t.$t("welcome")),1),(l=h(e).conf)!=null&&l.enable_access_control&&h(e).dontShowAgain?(d(),f("div",rt,[p(h(le),{title:"Access Control mode",style:{"vertical-align":"text-bottom"}})])):b("",!0),ut,a("a",dt,c(t.$t("document")),1),a("a",pt,c(t.$t("changlog")),1),a("a",vt,c(t.$t("faq")),1)]),(y=h(e).conf)!=null&&y.enable_access_control&&!h(e).dontShowAgain?(d(),G(_,{key:0,"show-icon":""},{message:$(()=>[a("div",ht,[a("div",null,c(t.$t("accessControlModeTips")),1),mt,a("a",{onClick:r[0]||(r[0]=I(o=>h(e).dontShowAgain=!0,["prevent"]))},c(t.$t("dontShowAgain")),1)])]),icon:$(()=>[p(h(le))]),_:1})):b("",!0),h(e).dontShowAgainNewImgOpts?b("",!0):(d(),G(_,{key:1,"show-icon":""},{message:$(()=>[a("div",ft,[a("div",null,c(t.$t("majorUpdateCustomCellSizeTips")),1),gt,a("a",{onClick:r[1]||(r[1]=I(o=>h(e).dontShowAgainNewImgOpts=!0,["prevent"]))},c(t.$t("dontShowAgain")),1)])]),_:1})),a("div",_t,[P.value.length?(d(),f("div",yt,[a("h2",null,c(t.$t("walkMode")),1),a("ul",null,[(d(!0),f(j,null,B(P.value,o=>(d(),f("li",{key:o.dir,class:"item"},[p(u,{onClick:w=>k("local",o.dir,!0),ghost:"",type:"primary",block:""},{default:$(()=>[V(c(o.zh),1)]),_:2},1032,["onClick"])]))),128))])])):b("",!0),h(e).quickMovePaths.length?(d(),f("div",bt,[a("h2",null,c(t.$t("launchFromQuickMove")),1),a("ul",null,[a("li",{onClick:T,class:"item",style:{"text-align":""}},[a("span",kt,[p(h(Ee)),V(" "+c(t.$t("add")),1)])]),(d(!0),f(j,null,B(h(e).quickMovePaths,o=>(d(),f("li",{key:o.key,class:"item rem",onClick:I(w=>k("local",o.dir),["prevent"])},[a("span",Ct,c(o.zh),1),o.can_delete?(d(),G(u,{key:0,type:"link",onClick:I(w=>E(o.dir),["stop"])},{default:$(()=>[V(c(t.$t("remove")),1)]),_:2},1032,["onClick"])):b("",!0)],8,wt))),128))])])):b("",!0),a("div",Ot,[a("h2",null,c(t.$t("launch")),1),a("ul",null,[(d(!0),f(j,null,B(Object.keys(m),o=>(d(),f("li",{key:o,class:"item",onClick:I(w=>k(o),["prevent"])},[a("span",$t,c(m[o]),1)],8,St))),128)),a("li",{class:"item",onClick:r[2]||(r[2]=o=>h(i).opened=!0)},[a("span",It,c(t.$t("imgCompare")),1)]),q?(d(),f("li",{key:0,class:"item",onClick:Q},[a("span",xt,c(t.$t("openInNewWindow")),1)])):b("",!0),(z=x.value)!=null&&z.tabs.length?(d(),f("li",{key:1,class:"item",onClick:C},[a("span",Pt,c(t.$t("restoreLastRecord")),1)])):b("",!0)])]),h(e).recent.length?(d(),f("div",zt,[a("div",At,[a("h2",null,c(t.$t("recent")),1),p(u,{onClick:r[3]||(r[3]=o=>h(e).recent=[]),type:"link"},{default:$(()=>[V(c(t.$t("clear")),1)]),_:1})]),a("ul",null,[(d(!0),f(j,null,B(h(e).recent,o=>(d(),f("li",{key:o.key,class:"item",onClick:I(w=>k("local",o.path),["prevent"])},[p(h(at),{class:"icon"}),a("span",Dt,c(o.path),1)],8,Mt))),128))])])):b("",!0)])])}}});const Lt=Qe(Tt,[["__scopeId","data-v-9ae3ce24"]]);export{Lt as default}; diff --git a/vue/dist/assets/fullScreenContextMenu-641139fc.js b/vue/dist/assets/fullScreenContextMenu-d0f6d9eb.js similarity index 99% rename from vue/dist/assets/fullScreenContextMenu-641139fc.js rename to vue/dist/assets/fullScreenContextMenu-d0f6d9eb.js index b9797ec..37af3ac 100644 --- a/vue/dist/assets/fullScreenContextMenu-641139fc.js +++ b/vue/dist/assets/fullScreenContextMenu-d0f6d9eb.js @@ -1,2 +1,2 @@ -import{d as de,bq as pe,aI as me,bU as ge,ax as he,aC as F,bV as ye,bW as Q,e as Z,c as o,_ as be,h as C,a as J,bz as we,P as K,ag as N,aw as Oe,aM as Ee,l as fe,k as _e,$ as A,aj as R,bO as Le,bX as $e,bY as Se,ai as I,o as y,y as w,p as j,r as f,m as ee,n as v,L as te,bZ as xe,C as z,z as B,x as g,v as p,t as ne,A as ie,N as ae,B as Pe,q as Ce,V as Me,W as ke,b_ as De,M as je,X as ze}from"./index-35e9ee40.js";import{h as Ne,j as Ae,_ as We,D as Ie}from"./FileItem-7d7b8ef3.js";import"./shortcut-9c26d495.js";var Te=["class","style"],Be=function(){return{prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:K.any,delay:Number,indicator:K.any}},T=null;function Fe(t,e){return!!t&&!!e&&!isNaN(Number(e))}function St(t){var e=t.indicator;T=typeof e=="function"?e:function(){return o(e,null,null)}}const xt=de({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:pe(Be(),{size:"default",spinning:!0,wrapperClassName:""}),setup:function(){return{originalUpdateSpinning:null,configProvider:me("configProvider",ge)}},data:function(){var e=this.spinning,i=this.delay,n=Fe(e,i);return{sSpinning:e&&!n}},created:function(){this.originalUpdateSpinning=this.updateSpinning,this.debouncifyUpdateSpinning(this.$props)},mounted:function(){this.updateSpinning()},updated:function(){var e=this;he(function(){e.debouncifyUpdateSpinning(),e.updateSpinning()})},beforeUnmount:function(){this.cancelExistingSpin()},methods:{debouncifyUpdateSpinning:function(e){var i=e||this.$props,n=i.delay;n&&(this.cancelExistingSpin(),this.updateSpinning=F(this.originalUpdateSpinning,n))},updateSpinning:function(){var e=this.spinning,i=this.sSpinning;i!==e&&(this.sSpinning=e)},cancelExistingSpin:function(){var e=this.updateSpinning;e&&e.cancel&&e.cancel()},renderIndicator:function(e){var i="".concat(e,"-dot"),n=ye(this,"indicator");return n===null?null:(Array.isArray(n)&&(n=n.length===1?n[0]:n),Q(n)?Z(n,{class:i}):T&&Q(T())?Z(T(),{class:i}):o("span",{class:"".concat(i," ").concat(e,"-dot-spin")},[o("i",{class:"".concat(e,"-dot-item")},null),o("i",{class:"".concat(e,"-dot-item")},null),o("i",{class:"".concat(e,"-dot-item")},null),o("i",{class:"".concat(e,"-dot-item")},null)]))}},render:function(){var e,i,n,l=this.$props,O=l.size,E=l.prefixCls,L=l.tip,$=L===void 0?(e=(i=this.$slots).tip)===null||e===void 0?void 0:e.call(i):L,S=l.wrapperClassName,x=this.$attrs,P=x.class,M=x.style,c=be(x,Te),b=this.configProvider,k=b.getPrefixCls,_=b.direction,a=k("spin",E),u=this.sSpinning,r=(n={},C(n,a,!0),C(n,"".concat(a,"-sm"),O==="small"),C(n,"".concat(a,"-lg"),O==="large"),C(n,"".concat(a,"-spinning"),u),C(n,"".concat(a,"-show-text"),!!$),C(n,"".concat(a,"-rtl"),_==="rtl"),C(n,P,!!P),n),d=o("div",J(J({},c),{},{style:M,class:r}),[this.renderIndicator(a),$?o("div",{class:"".concat(a,"-text")},[$]):null]),s=we(this);if(s&&s.length){var h,D=(h={},C(h,"".concat(a,"-container"),!0),C(h,"".concat(a,"-blur"),u),h);return o("div",{class:["".concat(a,"-nested-loading"),S]},[u&&o("div",{key:"loading"},[d]),o("div",{class:D,key:"container"},[s])])}return d}});var Ue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"};const Ve=Ue;function re(t){for(var e=1;e{r.stopPropagation(),r.preventDefault(),!(!t.value||!e.value)&&(O=r instanceof MouseEvent?r.clientX:r.touches[0].clientX,E=r instanceof MouseEvent?r.clientY:r.touches[0].clientY,L=t.value.offsetWidth,$=t.value.offsetHeight,l.x=e.value.offsetLeft,l.y=e.value.offsetTop,document.documentElement.addEventListener("mousemove",c),document.documentElement.addEventListener("touchmove",c),document.documentElement.addEventListener("mouseup",b),document.documentElement.addEventListener("touchend",b))},c=r=>{if(!t.value||!e.value)return;let d=L+((r instanceof MouseEvent?r.clientX:r.touches[0].clientX)-O),s=$+((r instanceof MouseEvent?r.clientY:r.touches[0].clientY)-E),h=l.x+((r instanceof MouseEvent?r.clientX:r.touches[0].clientX)-O),D=l.y+((r instanceof MouseEvent?r.clientY:r.touches[0].clientY)-E);h+e.value.offsetWidth>window.innerWidth&&(h=window.innerWidth-e.value.offsetWidth),t.value.offsetLeft+d>window.innerWidth&&(d=window.innerWidth-t.value.offsetLeft),D+e.value.offsetHeight>window.innerHeight&&(D=window.innerHeight-e.value.offsetHeight),t.value.offsetTop+s>window.innerHeight&&(s=window.innerHeight-t.value.offsetTop),t.value.style.width=`${d}px`,t.value.style.height=`${s}px`,e.value.style.left=`${h}px`,e.value.style.top=`${D}px`,n!=null&&n.onResize&&n.onResize(d,s)},b=()=>{document.documentElement.removeEventListener("mousemove",c),document.documentElement.removeEventListener("touchmove",c),document.documentElement.removeEventListener("mouseup",b),document.documentElement.removeEventListener("touchend",b)},k=r=>{r.stopPropagation(),r.preventDefault(),!(!t.value||!i.value)&&(P=!0,S=t.value.offsetLeft,x=t.value.offsetTop,O=r instanceof MouseEvent?r.clientX:r.touches[0].clientX,E=r instanceof MouseEvent?r.clientY:r.touches[0].clientY,document.documentElement.addEventListener("mousemove",_),document.documentElement.addEventListener("touchmove",_),document.documentElement.addEventListener("mouseup",a),document.documentElement.addEventListener("touchend",a))},_=r=>{if(!t.value||!i.value||!P)return;const d=S+((r instanceof MouseEvent?r.clientX:r.touches[0].clientX)-O),s=x+((r instanceof MouseEvent?r.clientY:r.touches[0].clientY)-E);d<0?t.value.style.left="0px":d+t.value.offsetWidth>window.innerWidth?t.value.style.left=`${window.innerWidth-t.value.offsetWidth}px`:t.value.style.left=`${d}px`,s<0?t.value.style.top="0px":s+t.value.offsetHeight>window.innerHeight?t.value.style.top=`${window.innerHeight-t.value.offsetHeight}px`:t.value.style.top=`${s}px`,n!=null&&n.onDrag&&n.onDrag(d,s)},a=()=>{P=!1,document.documentElement.removeEventListener("mousemove",_),document.documentElement.removeEventListener("touchmove",_),document.documentElement.removeEventListener("mouseup",a),document.documentElement.removeEventListener("touchend",a)},u=()=>{if(!t.value||!e.value)return;let r=t.value.offsetLeft,d=t.value.offsetTop,s=t.value.offsetWidth,h=t.value.offsetHeight;r+s>window.innerWidth&&(r=window.innerWidth-s,r<0&&(r=0,s=window.innerWidth)),d+h>window.innerHeight&&(d=window.innerHeight-h,d<0&&(d=0,h=window.innerHeight)),t.value.style.left=`${r}px`,t.value.style.top=`${d}px`,t.value.style.width=`${s}px`,t.value.style.height=`${h}px`};return Oe(()=>{!t.value||!n||(typeof n.width=="number"&&(t.value.style.width=`${n.width}px`),typeof n.height=="number"&&(t.value.style.height=`${n.height}px`),typeof n.left=="number"&&(t.value.style.left=`${n.left}px`),typeof n.top=="number"&&(t.value.style.top=`${n.top}px`),u(),window.addEventListener("resize",u))}),Ee(()=>{document.documentElement.removeEventListener("mousemove",c),document.documentElement.removeEventListener("touchmove",c),document.documentElement.removeEventListener("mouseup",b),document.documentElement.removeEventListener("touchend",b),document.documentElement.removeEventListener("mousemove",_),document.documentElement.removeEventListener("touchmove",_),document.documentElement.removeEventListener("mouseup",a),document.documentElement.removeEventListener("touchend",a),window.removeEventListener("resize",u)}),fe(()=>[t.value,e.value,i.value],([r,d,s])=>{r&&d&&(d.addEventListener("mousedown",M),d.addEventListener("touchstart",M)),r&&s&&(s.addEventListener("mousedown",k),s.addEventListener("touchstart",k))}),{handleResizeMouseDown:M,handleDragMouseDown:k}}const dt={class:"container"},ft={class:"action-bar"},vt={key:0,class:"icon",style:{cursor:"pointer"}},pt={key:0,"flex-placeholder":""},mt={key:1,class:"action-bar"},gt={key:0,class:"gen-info"},ht={class:"info-tags"},yt={class:"name"},bt={class:"value"},wt={key:0,class:"tags-container"},Ot=["onClick"],Et=de({__name:"fullScreenContextMenu",props:{file:{},idx:{}},emits:["contextMenuClick"],setup(t,{emit:e}){const i=t,n=_e(),l=Ne(),O=A(),E=R(()=>l.tagMap.get(i.file.fullpath)??[]),L=A(""),$=Le(),S=A("");fe(()=>{var a;return(a=i==null?void 0:i.file)==null?void 0:a.fullpath},async a=>{a&&($.tasks.forEach(u=>u.cancel()),$.pushAction(()=>$e(a)).res.then(u=>{S.value=u}))},{immediate:!0});const x=A(),P=A(),M={left:100,top:100,width:512,height:384,expanded:!0},c=Se("fullScreenContextMenu.vue-drag",M);c.value&&(c.value.left<0||c.value.top<0)&&(c.value={...M}),ct(O,x,P,{...c.value,onDrag:F(function(a,u){c.value={...c.value,left:a,top:u}},300),onResize:F(function(a,u){c.value={...c.value,width:a,height:u}},300)});function b(a){return a.parentNode}Ae("load",a=>{const u=a.target;u.className==="ant-image-preview-img"&&(L.value=`${u.naturalWidth} x ${u.naturalHeight}`)},{capture:!0});const k=R(()=>{const a=[{name:I("fileName"),val:i.file.name},{name:I("fileSize"),val:i.file.size}];return L.value&&a.push({name:I("resolution"),val:L.value}),a}),_=()=>{ne(S.value.split(` +import{d as de,bq as pe,aI as me,bU as ge,ax as he,aC as F,bV as ye,bW as Q,e as Z,c as o,_ as be,h as C,a as J,bz as we,P as K,ag as N,aw as Oe,aM as Ee,l as fe,k as _e,$ as A,aj as R,bO as Le,bX as $e,bY as Se,ai as I,o as y,y as w,p as j,r as f,m as ee,n as v,L as te,bZ as xe,C as z,z as B,x as g,v as p,t as ne,A as ie,N as ae,B as Pe,q as Ce,V as Me,W as ke,b_ as De,M as je,X as ze}from"./index-a4883aca.js";import{h as Ne,j as Ae,_ as We,D as Ie}from"./FileItem-f87590d0.js";import"./shortcut-c6713a64.js";var Te=["class","style"],Be=function(){return{prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:K.any,delay:Number,indicator:K.any}},T=null;function Fe(t,e){return!!t&&!!e&&!isNaN(Number(e))}function St(t){var e=t.indicator;T=typeof e=="function"?e:function(){return o(e,null,null)}}const xt=de({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:pe(Be(),{size:"default",spinning:!0,wrapperClassName:""}),setup:function(){return{originalUpdateSpinning:null,configProvider:me("configProvider",ge)}},data:function(){var e=this.spinning,i=this.delay,n=Fe(e,i);return{sSpinning:e&&!n}},created:function(){this.originalUpdateSpinning=this.updateSpinning,this.debouncifyUpdateSpinning(this.$props)},mounted:function(){this.updateSpinning()},updated:function(){var e=this;he(function(){e.debouncifyUpdateSpinning(),e.updateSpinning()})},beforeUnmount:function(){this.cancelExistingSpin()},methods:{debouncifyUpdateSpinning:function(e){var i=e||this.$props,n=i.delay;n&&(this.cancelExistingSpin(),this.updateSpinning=F(this.originalUpdateSpinning,n))},updateSpinning:function(){var e=this.spinning,i=this.sSpinning;i!==e&&(this.sSpinning=e)},cancelExistingSpin:function(){var e=this.updateSpinning;e&&e.cancel&&e.cancel()},renderIndicator:function(e){var i="".concat(e,"-dot"),n=ye(this,"indicator");return n===null?null:(Array.isArray(n)&&(n=n.length===1?n[0]:n),Q(n)?Z(n,{class:i}):T&&Q(T())?Z(T(),{class:i}):o("span",{class:"".concat(i," ").concat(e,"-dot-spin")},[o("i",{class:"".concat(e,"-dot-item")},null),o("i",{class:"".concat(e,"-dot-item")},null),o("i",{class:"".concat(e,"-dot-item")},null),o("i",{class:"".concat(e,"-dot-item")},null)]))}},render:function(){var e,i,n,l=this.$props,O=l.size,E=l.prefixCls,L=l.tip,$=L===void 0?(e=(i=this.$slots).tip)===null||e===void 0?void 0:e.call(i):L,S=l.wrapperClassName,x=this.$attrs,P=x.class,M=x.style,c=be(x,Te),b=this.configProvider,k=b.getPrefixCls,_=b.direction,a=k("spin",E),u=this.sSpinning,r=(n={},C(n,a,!0),C(n,"".concat(a,"-sm"),O==="small"),C(n,"".concat(a,"-lg"),O==="large"),C(n,"".concat(a,"-spinning"),u),C(n,"".concat(a,"-show-text"),!!$),C(n,"".concat(a,"-rtl"),_==="rtl"),C(n,P,!!P),n),d=o("div",J(J({},c),{},{style:M,class:r}),[this.renderIndicator(a),$?o("div",{class:"".concat(a,"-text")},[$]):null]),s=we(this);if(s&&s.length){var h,D=(h={},C(h,"".concat(a,"-container"),!0),C(h,"".concat(a,"-blur"),u),h);return o("div",{class:["".concat(a,"-nested-loading"),S]},[u&&o("div",{key:"loading"},[d]),o("div",{class:D,key:"container"},[s])])}return d}});var Ue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"};const Ve=Ue;function re(t){for(var e=1;e{r.stopPropagation(),r.preventDefault(),!(!t.value||!e.value)&&(O=r instanceof MouseEvent?r.clientX:r.touches[0].clientX,E=r instanceof MouseEvent?r.clientY:r.touches[0].clientY,L=t.value.offsetWidth,$=t.value.offsetHeight,l.x=e.value.offsetLeft,l.y=e.value.offsetTop,document.documentElement.addEventListener("mousemove",c),document.documentElement.addEventListener("touchmove",c),document.documentElement.addEventListener("mouseup",b),document.documentElement.addEventListener("touchend",b))},c=r=>{if(!t.value||!e.value)return;let d=L+((r instanceof MouseEvent?r.clientX:r.touches[0].clientX)-O),s=$+((r instanceof MouseEvent?r.clientY:r.touches[0].clientY)-E),h=l.x+((r instanceof MouseEvent?r.clientX:r.touches[0].clientX)-O),D=l.y+((r instanceof MouseEvent?r.clientY:r.touches[0].clientY)-E);h+e.value.offsetWidth>window.innerWidth&&(h=window.innerWidth-e.value.offsetWidth),t.value.offsetLeft+d>window.innerWidth&&(d=window.innerWidth-t.value.offsetLeft),D+e.value.offsetHeight>window.innerHeight&&(D=window.innerHeight-e.value.offsetHeight),t.value.offsetTop+s>window.innerHeight&&(s=window.innerHeight-t.value.offsetTop),t.value.style.width=`${d}px`,t.value.style.height=`${s}px`,e.value.style.left=`${h}px`,e.value.style.top=`${D}px`,n!=null&&n.onResize&&n.onResize(d,s)},b=()=>{document.documentElement.removeEventListener("mousemove",c),document.documentElement.removeEventListener("touchmove",c),document.documentElement.removeEventListener("mouseup",b),document.documentElement.removeEventListener("touchend",b)},k=r=>{r.stopPropagation(),r.preventDefault(),!(!t.value||!i.value)&&(P=!0,S=t.value.offsetLeft,x=t.value.offsetTop,O=r instanceof MouseEvent?r.clientX:r.touches[0].clientX,E=r instanceof MouseEvent?r.clientY:r.touches[0].clientY,document.documentElement.addEventListener("mousemove",_),document.documentElement.addEventListener("touchmove",_),document.documentElement.addEventListener("mouseup",a),document.documentElement.addEventListener("touchend",a))},_=r=>{if(!t.value||!i.value||!P)return;const d=S+((r instanceof MouseEvent?r.clientX:r.touches[0].clientX)-O),s=x+((r instanceof MouseEvent?r.clientY:r.touches[0].clientY)-E);d<0?t.value.style.left="0px":d+t.value.offsetWidth>window.innerWidth?t.value.style.left=`${window.innerWidth-t.value.offsetWidth}px`:t.value.style.left=`${d}px`,s<0?t.value.style.top="0px":s+t.value.offsetHeight>window.innerHeight?t.value.style.top=`${window.innerHeight-t.value.offsetHeight}px`:t.value.style.top=`${s}px`,n!=null&&n.onDrag&&n.onDrag(d,s)},a=()=>{P=!1,document.documentElement.removeEventListener("mousemove",_),document.documentElement.removeEventListener("touchmove",_),document.documentElement.removeEventListener("mouseup",a),document.documentElement.removeEventListener("touchend",a)},u=()=>{if(!t.value||!e.value)return;let r=t.value.offsetLeft,d=t.value.offsetTop,s=t.value.offsetWidth,h=t.value.offsetHeight;r+s>window.innerWidth&&(r=window.innerWidth-s,r<0&&(r=0,s=window.innerWidth)),d+h>window.innerHeight&&(d=window.innerHeight-h,d<0&&(d=0,h=window.innerHeight)),t.value.style.left=`${r}px`,t.value.style.top=`${d}px`,t.value.style.width=`${s}px`,t.value.style.height=`${h}px`};return Oe(()=>{!t.value||!n||(typeof n.width=="number"&&(t.value.style.width=`${n.width}px`),typeof n.height=="number"&&(t.value.style.height=`${n.height}px`),typeof n.left=="number"&&(t.value.style.left=`${n.left}px`),typeof n.top=="number"&&(t.value.style.top=`${n.top}px`),u(),window.addEventListener("resize",u))}),Ee(()=>{document.documentElement.removeEventListener("mousemove",c),document.documentElement.removeEventListener("touchmove",c),document.documentElement.removeEventListener("mouseup",b),document.documentElement.removeEventListener("touchend",b),document.documentElement.removeEventListener("mousemove",_),document.documentElement.removeEventListener("touchmove",_),document.documentElement.removeEventListener("mouseup",a),document.documentElement.removeEventListener("touchend",a),window.removeEventListener("resize",u)}),fe(()=>[t.value,e.value,i.value],([r,d,s])=>{r&&d&&(d.addEventListener("mousedown",M),d.addEventListener("touchstart",M)),r&&s&&(s.addEventListener("mousedown",k),s.addEventListener("touchstart",k))}),{handleResizeMouseDown:M,handleDragMouseDown:k}}const dt={class:"container"},ft={class:"action-bar"},vt={key:0,class:"icon",style:{cursor:"pointer"}},pt={key:0,"flex-placeholder":""},mt={key:1,class:"action-bar"},gt={key:0,class:"gen-info"},ht={class:"info-tags"},yt={class:"name"},bt={class:"value"},wt={key:0,class:"tags-container"},Ot=["onClick"],Et=de({__name:"fullScreenContextMenu",props:{file:{},idx:{}},emits:["contextMenuClick"],setup(t,{emit:e}){const i=t,n=_e(),l=Ne(),O=A(),E=R(()=>l.tagMap.get(i.file.fullpath)??[]),L=A(""),$=Le(),S=A("");fe(()=>{var a;return(a=i==null?void 0:i.file)==null?void 0:a.fullpath},async a=>{a&&($.tasks.forEach(u=>u.cancel()),$.pushAction(()=>$e(a)).res.then(u=>{S.value=u}))},{immediate:!0});const x=A(),P=A(),M={left:100,top:100,width:512,height:384,expanded:!0},c=Se("fullScreenContextMenu.vue-drag",M);c.value&&(c.value.left<0||c.value.top<0)&&(c.value={...M}),ct(O,x,P,{...c.value,onDrag:F(function(a,u){c.value={...c.value,left:a,top:u}},300),onResize:F(function(a,u){c.value={...c.value,width:a,height:u}},300)});function b(a){return a.parentNode}Ae("load",a=>{const u=a.target;u.className==="ant-image-preview-img"&&(L.value=`${u.naturalWidth} x ${u.naturalHeight}`)},{capture:!0});const k=R(()=>{const a=[{name:I("fileName"),val:i.file.name},{name:I("fileSize"),val:i.file.size}];return L.value&&a.push({name:I("resolution"),val:L.value}),a}),_=()=>{ne(S.value.split(` `)[0])};return(a,u)=>{var G;const r=Ie,d=Me,s=ke,h=De,D=je;return y(),w("div",{ref_key:"el",ref:O,class:ae(["full-screen-menu",{"unset-size":!f(c).expanded}]),onWheelCapture:u[4]||(u[4]=Ce(()=>{},["stop"]))},[j("div",dt,[j("div",ft,[j("div",{ref_key:"dragHandle",ref:P,class:"icon",style:{cursor:"grab"}},[o(f(Qe))],512),j("div",{class:"icon",style:{cursor:"pointer"},onClick:u[0]||(u[0]=m=>f(c).expanded=!f(c).expanded)},[f(c).expanded?(y(),ee(f(Re),{key:0})):(y(),ee(f(it),{key:1}))]),o(r,{"get-popup-container":b},{overlay:v(()=>[o(We,{file:a.file,idx:a.idx,"selected-tag":E.value,"disable-delete":f(te)(a.file)===f(n).fullscreenPreviewInitialUrl,onContextMenuClick:u[1]||(u[1]=(m,W,ve)=>e("contextMenuClick",m,W,ve))},null,8,["file","idx","selected-tag","disable-delete"])]),default:v(()=>[f(c).expanded?z("",!0):(y(),w("div",vt,[o(f(xe))]))]),_:1}),f(c).expanded?(y(),w("div",pt)):z("",!0),f(c).expanded?(y(),w("div",mt,[o(r,{trigger:["hover"],"get-popup-container":b},{overlay:v(()=>[o(D,{onClick:u[2]||(u[2]=m=>e("contextMenuClick",m,a.file,a.idx))},{default:v(()=>{var m;return[((m=f(n).conf)==null?void 0:m.launch_mode)!=="server"?(y(),w(B,{key:0},[o(s,{key:"send2txt2img"},{default:v(()=>[g(p(a.$t("sendToTxt2img")),1)]),_:1}),o(s,{key:"send2img2img"},{default:v(()=>[g(p(a.$t("sendToImg2img")),1)]),_:1}),o(s,{key:"send2inpaint"},{default:v(()=>[g(p(a.$t("sendToInpaint")),1)]),_:1}),o(s,{key:"send2extras"},{default:v(()=>[g(p(a.$t("sendToExtraFeatures")),1)]),_:1}),o(h,{key:"sendToThirdPartyExtension",title:a.$t("sendToThirdPartyExtension")},{default:v(()=>[o(s,{key:"send2controlnet-txt2img"},{default:v(()=>[g("ControlNet - "+p(a.$t("t2i")),1)]),_:1}),o(s,{key:"send2controlnet-img2img"},{default:v(()=>[g("ControlNet - "+p(a.$t("i2i")),1)]),_:1}),o(s,{key:"send2outpaint"},{default:v(()=>[g("openOutpaint")]),_:1})]),_:1},8,["title"])],64)):z("",!0),o(s,{key:"send2BatchDownload"},{default:v(()=>[g(p(a.$t("sendToBatchDownload")),1)]),_:1}),o(s,{key:"send2savedDir"},{default:v(()=>[g(p(a.$t("send2savedDir")),1)]),_:1}),o(s,{key:"deleteFiles",disabled:f(te)(a.file)===f(n).fullscreenPreviewInitialUrl},{default:v(()=>[g(p(a.$t("deleteSelected")),1)]),_:1},8,["disabled"]),o(s,{key:"previewInNewWindow"},{default:v(()=>[g(p(a.$t("previewInNewWindow")),1)]),_:1}),o(s,{key:"download"},{default:v(()=>[g(p(a.$t("download")),1)]),_:1}),o(s,{key:"copyPreviewUrl"},{default:v(()=>[g(p(a.$t("copySourceFilePreviewLink")),1)]),_:1})]}),_:1})]),default:v(()=>[o(d,null,{default:v(()=>[g(p(f(I)("openContextMenu")),1)]),_:1})]),_:1}),o(d,{onClick:u[3]||(u[3]=m=>f(ne)(S.value))},{default:v(()=>[g(p(a.$t("copyPrompt")),1)]),_:1}),o(d,{onClick:_},{default:v(()=>[g(p(a.$t("copyPositivePrompt")),1)]),_:1})])):z("",!0)]),f(c).expanded?(y(),w("div",gt,[j("div",ht,[(y(!0),w(B,null,ie(k.value,m=>(y(),w("span",{class:"info-tag",key:m.name},[j("span",yt,p(m.name),1),j("span",bt,p(m.val),1)]))),128))]),(G=f(n).conf)!=null&&G.all_custom_tags?(y(),w("div",wt,[(y(!0),w(B,null,ie(f(n).conf.all_custom_tags,m=>(y(),w("div",{class:ae(["tag",{selected:E.value.some(W=>W.id===m.id)}]),onClick:W=>e("contextMenuClick",{key:`toggle-tag-${m.id}`},a.file,a.idx),key:m.id,style:Pe({"--tag-color":f(l).getColor(m.name)})},p(m.name),15,Ot))),128))])):z("",!0),g(" "+p(S.value),1)])):z("",!0)]),f(c).expanded?(y(),w("div",{key:0,class:"mouse-sensor",ref_key:"resizeHandle",ref:x},[o(f(Ye))],512)):z("",!0)],34)}}});const Mt=ze(Et,[["__scopeId","data-v-a8c3ff48"]]);export{Pt as L,Ct as R,xt as S,Mt as f,St as s}; diff --git a/vue/dist/assets/globalSetting-367a90eb.js b/vue/dist/assets/globalSetting-16842e8d.js similarity index 97% rename from vue/dist/assets/globalSetting-367a90eb.js rename to vue/dist/assets/globalSetting-16842e8d.js index c830c91..557983e 100644 --- a/vue/dist/assets/globalSetting-367a90eb.js +++ b/vue/dist/assets/globalSetting-16842e8d.js @@ -1 +1 @@ -import{Y as te,Z as ae,d as D,j as le,av as oe,w as O,$ as U,aj as E,l as q,u as ue,aw as ie,ax as de,h as $,c as a,a as P,ay as se,az as ce,g as R,aA as re,P as s,aB as G,k as X,aC as he,o as b,y as x,n as c,r as n,ai as C,m as V,C as B,p,z as M,v as w,S as z,aD as fe,I as me,x as F,A as W,q as j,E as ve,aE as ge,aF as _e,aG as pe,aH as be,V as Ce,U as ke,X as we}from"./index-35e9ee40.js";import{N as L,_ as Y,F as ye}from"./numInput-ad16e274.js";import{g as Se,C as $e}from"./shortcut-9c26d495.js";/* empty css *//* empty css */var Te=ae("small","default"),xe=function(){return{id:String,prefixCls:String,size:s.oneOf(Te),disabled:{type:Boolean,default:void 0},checkedChildren:s.any,unCheckedChildren:s.any,tabindex:s.oneOfType([s.string,s.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:s.oneOfType([s.string,s.number,s.looseBool]),checkedValue:s.oneOfType([s.string,s.number,s.looseBool]).def(!0),unCheckedValue:s.oneOfType([s.string,s.number,s.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}},Ie=D({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:xe(),slots:["checkedChildren","unCheckedChildren"],setup:function(e,u){var g=u.attrs,y=u.slots,h=u.expose,r=u.emit,l=le();oe(function(){O(!("defaultChecked"in g),"Switch","'defaultChecked' is deprecated, please use 'v-model:checked'"),O(!("value"in g),"Switch","`value` is not validate prop, do you mean `checked`?")});var t=U(e.checked!==void 0?e.checked:g.defaultChecked),_=E(function(){return t.value===e.checkedValue});q(function(){return e.checked},function(){t.value=e.checked});var m=ue("switch",e),f=m.prefixCls,A=m.direction,I=m.size,S=U(),T=function(){var o;(o=S.value)===null||o===void 0||o.focus()},i=function(){var o;(o=S.value)===null||o===void 0||o.blur()};h({focus:T,blur:i}),ie(function(){de(function(){e.autofocus&&!e.disabled&&S.value.focus()})});var v=function(o,k){e.disabled||(r("update:checked",o),r("change",o,k),l.onFieldChange())},K=function(o){r("blur",o)},J=function(o){T();var k=_.value?e.unCheckedValue:e.checkedValue;v(k,o),r("click",k,o)},Q=function(o){o.keyCode===G.LEFT?v(e.unCheckedValue,o):o.keyCode===G.RIGHT&&v(e.checkedValue,o),r("keydown",o)},ee=function(o){var k;(k=S.value)===null||k===void 0||k.blur(),r("mouseup",o)},ne=E(function(){var d;return d={},$(d,"".concat(f.value,"-small"),I.value==="small"),$(d,"".concat(f.value,"-loading"),e.loading),$(d,"".concat(f.value,"-checked"),_.value),$(d,"".concat(f.value,"-disabled"),e.disabled),$(d,f.value,!0),$(d,"".concat(f.value,"-rtl"),A.value==="rtl"),d});return function(){var d;return a(re,{insertExtraNode:!0},{default:function(){return[a("button",P(P(P({},se(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),g),{},{id:(d=e.id)!==null&&d!==void 0?d:l.id.value,onKeydown:Q,onClick:J,onBlur:K,onMouseup:ee,type:"button",role:"switch","aria-checked":t.value,disabled:e.disabled||e.loading,class:[g.class,ne.value],ref:S}),[a("div",{class:"".concat(f.value,"-handle")},[e.loading?a(ce,{class:"".concat(f.value,"-loading-icon")},null):null]),a("span",{class:"".concat(f.value,"-inner")},[_.value?R(y,e,"checkedChildren"):R(y,e,"unCheckedChildren")])])]}})}}});const Z=te(Ie);const H="/infinite_image_browsing/fe-static/assets/sample-55dcafc6.webp",Fe=["width","height","src"],Ve=D({__name:"ImageSetting",setup(N){function e(y,h){return new Promise(r=>{const l=new Image;l.onload=()=>{const t=document.createElement("canvas");t.width=l.width*h,t.height=l.height*h,t.getContext("2d").drawImage(l,0,0,t.width,t.height),r(t.toDataURL())},l.src=y})}const u=X(),g=U("");return q(()=>[u.enableThumbnail,u.gridThumbnailResolution],he(async()=>{u.enableThumbnail&&(g.value=await e(H,u.gridThumbnailResolution/1024))},300),{immediate:!0,deep:!0}),(y,h)=>{const r=Y,l=Z;return b(),x(M,null,[a(r,{label:n(C)("defaultGridCellWidth")},{default:c(()=>[a(L,{min:64,max:1024,step:32,modelValue:n(u).defaultGridCellWidth,"onUpdate:modelValue":h[0]||(h[0]=t=>n(u).defaultGridCellWidth=t)},null,8,["modelValue"])]),_:1},8,["label"]),a(r,{label:n(C)("useThumbnailPreview")},{default:c(()=>[a(l,{checked:n(u).enableThumbnail,"onUpdate:checked":h[1]||(h[1]=t=>n(u).enableThumbnail=t)},null,8,["checked"])]),_:1},8,["label"]),n(u).enableThumbnail?(b(),V(r,{key:0,label:n(C)("thumbnailResolution")},{default:c(()=>[a(L,{modelValue:n(u).gridThumbnailResolution,"onUpdate:modelValue":h[2]||(h[2]=t=>n(u).gridThumbnailResolution=t),min:256,max:1024,step:64},null,8,["modelValue"])]),_:1},8,["label"])):B("",!0),a(r,{label:n(C)("livePreview")},{default:c(()=>[p("div",null,[p("img",{width:n(u).defaultGridCellWidth,height:n(u).defaultGridCellWidth,src:n(u).enableThumbnail?g.value:n(H)},null,8,Fe)])]),_:1},8,["label"])],64)}}}),Be={class:"panel"},Me={style:{"margin-top":"0"}},Ue={class:"lang-select-wrap"},Ne={class:"col"},Ae={class:"col"},Ke={class:"col"},Pe=D({__name:"globalSetting",setup(N){const e=X(),u=U(!1),g=async()=>{window.location.reload()},y=[{value:"en",text:"English"},{value:"zh",text:"中文"},{value:"de",text:"Deutsch"}],h=(l,t)=>{const _=Se(l);_&&(e.shortcut[t]=_)},r=async()=>{await ge("shutdown_api_server_command"),await _e.removeFile(pe),await be()};return(l,t)=>{const _=Z,m=Y,f=Ce,A=$e,I=ke,S=ye;return b(),x("div",Be,[B("",!0),a(S,null,{default:c(()=>{var T;return[p("h2",Me,w(n(C)("ImageBrowsingSettings")),1),a(Ve),p("h2",null,w(n(C)("other")),1),a(m,{label:l.$t("onlyFoldersAndImages")},{default:c(()=>[a(_,{checked:n(e).onlyFoldersAndImages,"onUpdate:checked":t[0]||(t[0]=i=>n(e).onlyFoldersAndImages=i)},null,8,["checked"])]),_:1},8,["label"]),a(m,{label:l.$t("defaultSortingMethod")},{default:c(()=>[a(n(z),{value:n(e).defaultSortingMethod,"onUpdate:value":t[1]||(t[1]=i=>n(e).defaultSortingMethod=i),conv:n(fe),options:n(me)},null,8,["value","conv","options"])]),_:1},8,["label"]),a(m,{label:l.$t("longPressOpenContextMenu")},{default:c(()=>[a(_,{checked:n(e).longPressOpenContextMenu,"onUpdate:checked":t[2]||(t[2]=i=>n(e).longPressOpenContextMenu=i)},null,8,["checked"])]),_:1},8,["label"]),a(m,{label:l.$t("lang")},{default:c(()=>[p("div",Ue,[a(n(z),{options:y,value:n(e).lang,"onUpdate:value":t[3]||(t[3]=i=>n(e).lang=i),onChange:t[4]||(t[4]=i=>u.value=!0)},null,8,["value"])]),u.value?(b(),V(f,{key:0,type:"primary",onClick:g,ghost:""},{default:c(()=>[F(w(n(C)("langChangeReload")),1)]),_:1})):B("",!0)]),_:1},8,["label"]),(b(!0),x(M,null,W(n(e).ignoredConfirmActions,(i,v)=>(b(),V(m,{label:l.$t(v+"SkipConfirm"),key:v},{default:c(()=>[a(A,{checked:n(e).ignoredConfirmActions[v],"onUpdate:checked":K=>n(e).ignoredConfirmActions[v]=K},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"]))),128)),p("h2",null,w(n(C)("shortcutKey")),1),a(m,{label:l.$t("deleteSelected")},{default:c(()=>[p("div",Ne,[a(I,{value:n(e).shortcut.delete,onKeydown:t[5]||(t[5]=j(i=>h(i,"delete"),["stop","prevent"])),placeholder:l.$t("shortcutKeyDescription")},null,8,["value","placeholder"]),a(f,{onClick:t[6]||(t[6]=i=>n(e).shortcut.delete=""),class:"clear-btn"},{default:c(()=>[F(w(l.$t("clear")),1)]),_:1})])]),_:1},8,["label"]),(b(!0),x(M,null,W(((T=n(e).conf)==null?void 0:T.all_custom_tags)??[],i=>(b(),V(m,{label:l.$t("toggleTagSelection",{tag:i.name}),key:i.id},{default:c(()=>[p("div",Ae,[a(I,{value:n(e).shortcut[`toggle_tag_${i.name}`],onKeydown:j(v=>h(v,`toggle_tag_${i.name}`),["stop","prevent"]),placeholder:l.$t("shortcutKeyDescription")},null,8,["value","onKeydown","placeholder"]),a(f,{onClick:v=>n(e).shortcut[`toggle_tag_${i.name}`]="",class:"clear-btn"},{default:c(()=>[F(w(l.$t("clear")),1)]),_:2},1032,["onClick"])])]),_:2},1032,["label"]))),128)),n(ve)?(b(),x(M,{key:0},[p("h2",null,w(n(C)("clientSpecificSettings")),1),a(m,null,{default:c(()=>[p("div",Ke,[a(f,{onClick:r,class:"clear-btn"},{default:c(()=>[F(w(l.$t("initiateSoftwareStartupConfig")),1)]),_:1})])]),_:1})],64)):B("",!0)]}),_:1})])}}});const ze=we(Pe,[["__scopeId","data-v-4633948c"]]);export{ze as default}; +import{Y as te,Z as ae,d as D,j as le,av as oe,w as O,$ as U,aj as E,l as q,u as ue,aw as ie,ax as de,h as $,c as a,a as P,ay as se,az as ce,g as R,aA as re,P as s,aB as G,k as X,aC as he,o as b,y as x,n as c,r as n,ai as C,m as V,C as B,p,z as M,v as w,S as z,aD as fe,I as me,x as F,A as W,q as j,E as ve,aE as ge,aF as _e,aG as pe,aH as be,V as Ce,U as ke,X as we}from"./index-a4883aca.js";import{N as L,_ as Y,F as ye}from"./numInput-69617d97.js";import{g as Se,C as $e}from"./shortcut-c6713a64.js";/* empty css *//* empty css */var Te=ae("small","default"),xe=function(){return{id:String,prefixCls:String,size:s.oneOf(Te),disabled:{type:Boolean,default:void 0},checkedChildren:s.any,unCheckedChildren:s.any,tabindex:s.oneOfType([s.string,s.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:s.oneOfType([s.string,s.number,s.looseBool]),checkedValue:s.oneOfType([s.string,s.number,s.looseBool]).def(!0),unCheckedValue:s.oneOfType([s.string,s.number,s.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}},Ie=D({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:xe(),slots:["checkedChildren","unCheckedChildren"],setup:function(e,u){var g=u.attrs,y=u.slots,h=u.expose,r=u.emit,l=le();oe(function(){O(!("defaultChecked"in g),"Switch","'defaultChecked' is deprecated, please use 'v-model:checked'"),O(!("value"in g),"Switch","`value` is not validate prop, do you mean `checked`?")});var t=U(e.checked!==void 0?e.checked:g.defaultChecked),_=E(function(){return t.value===e.checkedValue});q(function(){return e.checked},function(){t.value=e.checked});var m=ue("switch",e),f=m.prefixCls,A=m.direction,I=m.size,S=U(),T=function(){var o;(o=S.value)===null||o===void 0||o.focus()},i=function(){var o;(o=S.value)===null||o===void 0||o.blur()};h({focus:T,blur:i}),ie(function(){de(function(){e.autofocus&&!e.disabled&&S.value.focus()})});var v=function(o,k){e.disabled||(r("update:checked",o),r("change",o,k),l.onFieldChange())},K=function(o){r("blur",o)},J=function(o){T();var k=_.value?e.unCheckedValue:e.checkedValue;v(k,o),r("click",k,o)},Q=function(o){o.keyCode===G.LEFT?v(e.unCheckedValue,o):o.keyCode===G.RIGHT&&v(e.checkedValue,o),r("keydown",o)},ee=function(o){var k;(k=S.value)===null||k===void 0||k.blur(),r("mouseup",o)},ne=E(function(){var d;return d={},$(d,"".concat(f.value,"-small"),I.value==="small"),$(d,"".concat(f.value,"-loading"),e.loading),$(d,"".concat(f.value,"-checked"),_.value),$(d,"".concat(f.value,"-disabled"),e.disabled),$(d,f.value,!0),$(d,"".concat(f.value,"-rtl"),A.value==="rtl"),d});return function(){var d;return a(re,{insertExtraNode:!0},{default:function(){return[a("button",P(P(P({},se(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),g),{},{id:(d=e.id)!==null&&d!==void 0?d:l.id.value,onKeydown:Q,onClick:J,onBlur:K,onMouseup:ee,type:"button",role:"switch","aria-checked":t.value,disabled:e.disabled||e.loading,class:[g.class,ne.value],ref:S}),[a("div",{class:"".concat(f.value,"-handle")},[e.loading?a(ce,{class:"".concat(f.value,"-loading-icon")},null):null]),a("span",{class:"".concat(f.value,"-inner")},[_.value?R(y,e,"checkedChildren"):R(y,e,"unCheckedChildren")])])]}})}}});const Z=te(Ie);const H="/infinite_image_browsing/fe-static/assets/sample-55dcafc6.webp",Fe=["width","height","src"],Ve=D({__name:"ImageSetting",setup(N){function e(y,h){return new Promise(r=>{const l=new Image;l.onload=()=>{const t=document.createElement("canvas");t.width=l.width*h,t.height=l.height*h,t.getContext("2d").drawImage(l,0,0,t.width,t.height),r(t.toDataURL())},l.src=y})}const u=X(),g=U("");return q(()=>[u.enableThumbnail,u.gridThumbnailResolution],he(async()=>{u.enableThumbnail&&(g.value=await e(H,u.gridThumbnailResolution/1024))},300),{immediate:!0,deep:!0}),(y,h)=>{const r=Y,l=Z;return b(),x(M,null,[a(r,{label:n(C)("defaultGridCellWidth")},{default:c(()=>[a(L,{min:64,max:1024,step:32,modelValue:n(u).defaultGridCellWidth,"onUpdate:modelValue":h[0]||(h[0]=t=>n(u).defaultGridCellWidth=t)},null,8,["modelValue"])]),_:1},8,["label"]),a(r,{label:n(C)("useThumbnailPreview")},{default:c(()=>[a(l,{checked:n(u).enableThumbnail,"onUpdate:checked":h[1]||(h[1]=t=>n(u).enableThumbnail=t)},null,8,["checked"])]),_:1},8,["label"]),n(u).enableThumbnail?(b(),V(r,{key:0,label:n(C)("thumbnailResolution")},{default:c(()=>[a(L,{modelValue:n(u).gridThumbnailResolution,"onUpdate:modelValue":h[2]||(h[2]=t=>n(u).gridThumbnailResolution=t),min:256,max:1024,step:64},null,8,["modelValue"])]),_:1},8,["label"])):B("",!0),a(r,{label:n(C)("livePreview")},{default:c(()=>[p("div",null,[p("img",{width:n(u).defaultGridCellWidth,height:n(u).defaultGridCellWidth,src:n(u).enableThumbnail?g.value:n(H)},null,8,Fe)])]),_:1},8,["label"])],64)}}}),Be={class:"panel"},Me={style:{"margin-top":"0"}},Ue={class:"lang-select-wrap"},Ne={class:"col"},Ae={class:"col"},Ke={class:"col"},Pe=D({__name:"globalSetting",setup(N){const e=X(),u=U(!1),g=async()=>{window.location.reload()},y=[{value:"en",text:"English"},{value:"zh",text:"中文"},{value:"de",text:"Deutsch"}],h=(l,t)=>{const _=Se(l);_&&(e.shortcut[t]=_)},r=async()=>{await ge("shutdown_api_server_command"),await _e.removeFile(pe),await be()};return(l,t)=>{const _=Z,m=Y,f=Ce,A=$e,I=ke,S=ye;return b(),x("div",Be,[B("",!0),a(S,null,{default:c(()=>{var T;return[p("h2",Me,w(n(C)("ImageBrowsingSettings")),1),a(Ve),p("h2",null,w(n(C)("other")),1),a(m,{label:l.$t("onlyFoldersAndImages")},{default:c(()=>[a(_,{checked:n(e).onlyFoldersAndImages,"onUpdate:checked":t[0]||(t[0]=i=>n(e).onlyFoldersAndImages=i)},null,8,["checked"])]),_:1},8,["label"]),a(m,{label:l.$t("defaultSortingMethod")},{default:c(()=>[a(n(z),{value:n(e).defaultSortingMethod,"onUpdate:value":t[1]||(t[1]=i=>n(e).defaultSortingMethod=i),conv:n(fe),options:n(me)},null,8,["value","conv","options"])]),_:1},8,["label"]),a(m,{label:l.$t("longPressOpenContextMenu")},{default:c(()=>[a(_,{checked:n(e).longPressOpenContextMenu,"onUpdate:checked":t[2]||(t[2]=i=>n(e).longPressOpenContextMenu=i)},null,8,["checked"])]),_:1},8,["label"]),a(m,{label:l.$t("lang")},{default:c(()=>[p("div",Ue,[a(n(z),{options:y,value:n(e).lang,"onUpdate:value":t[3]||(t[3]=i=>n(e).lang=i),onChange:t[4]||(t[4]=i=>u.value=!0)},null,8,["value"])]),u.value?(b(),V(f,{key:0,type:"primary",onClick:g,ghost:""},{default:c(()=>[F(w(n(C)("langChangeReload")),1)]),_:1})):B("",!0)]),_:1},8,["label"]),(b(!0),x(M,null,W(n(e).ignoredConfirmActions,(i,v)=>(b(),V(m,{label:l.$t(v+"SkipConfirm"),key:v},{default:c(()=>[a(A,{checked:n(e).ignoredConfirmActions[v],"onUpdate:checked":K=>n(e).ignoredConfirmActions[v]=K},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"]))),128)),p("h2",null,w(n(C)("shortcutKey")),1),a(m,{label:l.$t("deleteSelected")},{default:c(()=>[p("div",Ne,[a(I,{value:n(e).shortcut.delete,onKeydown:t[5]||(t[5]=j(i=>h(i,"delete"),["stop","prevent"])),placeholder:l.$t("shortcutKeyDescription")},null,8,["value","placeholder"]),a(f,{onClick:t[6]||(t[6]=i=>n(e).shortcut.delete=""),class:"clear-btn"},{default:c(()=>[F(w(l.$t("clear")),1)]),_:1})])]),_:1},8,["label"]),(b(!0),x(M,null,W(((T=n(e).conf)==null?void 0:T.all_custom_tags)??[],i=>(b(),V(m,{label:l.$t("toggleTagSelection",{tag:i.name}),key:i.id},{default:c(()=>[p("div",Ae,[a(I,{value:n(e).shortcut[`toggle_tag_${i.name}`],onKeydown:j(v=>h(v,`toggle_tag_${i.name}`),["stop","prevent"]),placeholder:l.$t("shortcutKeyDescription")},null,8,["value","onKeydown","placeholder"]),a(f,{onClick:v=>n(e).shortcut[`toggle_tag_${i.name}`]="",class:"clear-btn"},{default:c(()=>[F(w(l.$t("clear")),1)]),_:2},1032,["onClick"])])]),_:2},1032,["label"]))),128)),n(ve)?(b(),x(M,{key:0},[p("h2",null,w(n(C)("clientSpecificSettings")),1),a(m,null,{default:c(()=>[p("div",Ke,[a(f,{onClick:r,class:"clear-btn"},{default:c(()=>[F(w(l.$t("initiateSoftwareStartupConfig")),1)]),_:1})])]),_:1})],64)):B("",!0)]}),_:1})])}}});const ze=we(Pe,[["__scopeId","data-v-4633948c"]]);export{ze as default}; diff --git a/vue/dist/assets/hook-9a924413.js b/vue/dist/assets/hook-24a54d22.js similarity index 89% rename from vue/dist/assets/hook-9a924413.js rename to vue/dist/assets/hook-24a54d22.js index 48297e5..2f57155 100644 --- a/vue/dist/assets/hook-9a924413.js +++ b/vue/dist/assets/hook-24a54d22.js @@ -1 +1 @@ -import{$ as q,bO as D,bd as E,aC as P}from"./index-35e9ee40.js";import{h as $,u as z,b as G,f as O,c as Q,d as R,e as V,i as _}from"./FileItem-7d7b8ef3.js";const L=()=>{const e=q(),c=D(),l=$(),{stackViewEl:u,multiSelectedIdxs:r,stack:m,scroller:n}=z({images:e}).toRefs(),{itemSize:v,gridItems:d,cellWidth:g}=G(),{showMenuIdx:f}=O(),{onFileDragStart:I,onFileDragEnd:p}=Q(),{showGenInfo:h,imageGenInfo:w,q:x,onContextMenuClick:o,onFileItemClick:S}=R({openNext:E}),{previewIdx:C,previewing:F,onPreviewVisibleChange:b,previewImgMove:k,canPreview:M}=V(),y=async(s,t,a)=>{m.value=[{curr:"",files:e.value}],await o(s,t,a)};_("removeFiles",async({paths:s})=>{var t;e.value=(t=e.value)==null?void 0:t.filter(a=>!s.includes(a.fullpath))});const i=()=>{const s=n.value;if(s&&e.value){const t=e.value.slice(Math.max(s.$_startIndex-10,0),s.$_endIndex+10).map(a=>a.fullpath);l.fetchImageTags(t)}},T=P(i,300);return{scroller:n,queue:c,images:e,onContextMenuClickU:y,stackViewEl:u,previewIdx:C,previewing:F,onPreviewVisibleChange:b,previewImgMove:k,canPreview:M,itemSize:v,gridItems:d,showGenInfo:h,imageGenInfo:w,q:x,onContextMenuClick:o,onFileItemClick:S,showMenuIdx:f,multiSelectedIdxs:r,onFileDragStart:I,onFileDragEnd:p,cellWidth:g,onScroll:T,updateImageTag:i}};export{L as u}; +import{$ as q,bO as D,bd as E,aC as P}from"./index-a4883aca.js";import{h as $,u as z,b as G,f as O,c as Q,d as R,e as V,i as _}from"./FileItem-f87590d0.js";const L=()=>{const e=q(),c=D(),l=$(),{stackViewEl:u,multiSelectedIdxs:r,stack:m,scroller:n}=z({images:e}).toRefs(),{itemSize:v,gridItems:d,cellWidth:g}=G(),{showMenuIdx:f}=O(),{onFileDragStart:I,onFileDragEnd:p}=Q(),{showGenInfo:h,imageGenInfo:w,q:x,onContextMenuClick:o,onFileItemClick:S}=R({openNext:E}),{previewIdx:C,previewing:F,onPreviewVisibleChange:b,previewImgMove:k,canPreview:M}=V(),y=async(s,t,a)=>{m.value=[{curr:"",files:e.value}],await o(s,t,a)};_("removeFiles",async({paths:s})=>{var t;e.value=(t=e.value)==null?void 0:t.filter(a=>!s.includes(a.fullpath))});const i=()=>{const s=n.value;if(s&&e.value){const t=e.value.slice(Math.max(s.$_startIndex-10,0),s.$_endIndex+10).map(a=>a.fullpath);l.fetchImageTags(t)}},T=P(i,300);return{scroller:n,queue:c,images:e,onContextMenuClickU:y,stackViewEl:u,previewIdx:C,previewing:F,onPreviewVisibleChange:b,previewImgMove:k,canPreview:M,itemSize:v,gridItems:d,showGenInfo:h,imageGenInfo:w,q:x,onContextMenuClick:o,onFileItemClick:S,showMenuIdx:f,multiSelectedIdxs:r,onFileDragStart:I,onFileDragEnd:p,cellWidth:g,onScroll:T,updateImageTag:i}};export{L as u}; diff --git a/vue/dist/assets/index-35e9ee40.js b/vue/dist/assets/index-a4883aca.js similarity index 99% rename from vue/dist/assets/index-35e9ee40.js rename to vue/dist/assets/index-a4883aca.js index 903b8db..daa45f6 100644 --- a/vue/dist/assets/index-35e9ee40.js +++ b/vue/dist/assets/index-a4883aca.js @@ -126,7 +126,7 @@ summary tabindex target title type usemap value width wmode wrap`,sk=`onCopy onC * Released under the MIT License. */const V8="9.3.0-beta.19";function H8(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(to().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(to().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(to().__INTLIFY_PROD_DEVTOOLS__=!1)}let W1=Ue.__EXTEND_POINT__;const en=()=>++W1,Ct={UNEXPECTED_RETURN_TYPE:W1,INVALID_ARGUMENT:en(),MUST_BE_CALL_SETUP_TOP:en(),NOT_INSTALLED:en(),NOT_AVAILABLE_IN_LEGACY_MODE:en(),REQUIRED_VALUE:en(),INVALID_VALUE:en(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:en(),NOT_INSTALLED_WITH_PROVIDE:en(),UNEXPECTED_ERROR:en(),NOT_COMPATIBLE_LEGACY_VUE_I18N:en(),BRIDGE_SUPPORT_VUE_2_ONLY:en(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:en(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:en(),__EXTEND_POINT__:en()};function Pt(t,...e){return ru(t,null,void 0)}const uf=Ia("__translateVNode"),cf=Ia("__datetimeParts"),ff=Ia("__numberParts"),V1=Ia("__setPluralRules"),H1=Ia("__injectWithOption");function df(t){if(!Je(t))return t;for(const e in t)if(pv(t,e))if(!e.includes("."))Je(t[e])&&df(t[e]);else{const n=e.split("."),r=n.length-1;let a=t;for(let i=0;i{if("locale"in l&&"resource"in l){const{locale:s,resource:u}=l;s?(o[s]=o[s]||{},no(u,o[s])):no(u,o)}else be(l)&&no(JSON.parse(l),o)}),a==null&&i)for(const l in o)pv(o,l)&&df(o[l]);return o}const gl=t=>!Je(t)||ot(t);function no(t,e){if(gl(t)||gl(e))throw Pt(Ct.INVALID_VALUE);for(const n in t)pv(t,n)&&(gl(t[n])||gl(e[n])?e[n]=t[n]:no(t[n],e[n]))}function U1(t){return t.type}function K1(t,e,n){let r=Je(e.messages)?e.messages:{};"__i18nGlobal"in n&&(r=iu(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(Je(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(Je(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(o=>{t.mergeNumberFormat(o,e.numberFormats[o])})}}}function iy(t){return x(Pa,null,t,0)}const oy="__INTLIFY_META__";let ly=0;function sy(t){return(e,n,r,a)=>t(n,r,bt()||void 0,a)}const U8=()=>{const t=bt();let e=null;return t&&(e=U1(t)[oy])?{[oy]:e}:null};function gv(t={},e){const{__root:n}=t,r=n===void 0;let a=Fe(t.inheritLocale)?t.inheritLocale:!0;const i=W(n&&a?n.locale.value:be(t.locale)?t.locale:zo),o=W(n&&a?n.fallbackLocale.value:be(t.fallbackLocale)||ot(t.fallbackLocale)||Te(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:i.value),l=W(iu(i.value,t)),s=W(Te(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),u=W(Te(t.numberFormats)?t.numberFormats:{[i.value]:{}});let f=n?n.missingWarn:Fe(t.missingWarn)||Gr(t.missingWarn)?t.missingWarn:!0,v=n?n.fallbackWarn:Fe(t.fallbackWarn)||Gr(t.fallbackWarn)?t.fallbackWarn:!0,h=n?n.fallbackRoot:Fe(t.fallbackRoot)?t.fallbackRoot:!0,g=!!t.fallbackFormat,c=gt(t.missing)?t.missing:null,d=gt(t.missing)?sy(t.missing):null,m=gt(t.postTranslation)?t.postTranslation:null,p=n?n.warnHtmlMessage:Fe(t.warnHtmlMessage)?t.warnHtmlMessage:!0,y=!!t.escapeParameter;const b=n?n.modifiers:Te(t.modifiers)?t.modifiers:{};let w=t.pluralRules||n&&n.pluralRules,C;C=(()=>{r&&Xg(null);const V={version:V8,locale:i.value,fallbackLocale:o.value,messages:l.value,modifiers:b,pluralRules:w,missing:d===null?void 0:d,missingWarn:f,fallbackWarn:v,fallbackFormat:g,unresolving:!0,postTranslation:m===null?void 0:m,warnHtmlMessage:p,escapeParameter:y,messageResolver:t.messageResolver,__meta:{framework:"vue"}};V.datetimeFormats=s.value,V.numberFormats=u.value,V.__datetimeFormatters=Te(C)?C.__datetimeFormatters:void 0,V.__numberFormatters=Te(C)?C.__numberFormatters:void 0;const U=L8(V);return r&&Xg(U),U})(),Fi(C,i.value,o.value);function O(){return[i.value,o.value,l.value,s.value,u.value]}const I=K({get:()=>i.value,set:V=>{i.value=V,C.locale=i.value}}),P=K({get:()=>o.value,set:V=>{o.value=V,C.fallbackLocale=o.value,Fi(C,i.value,V)}}),k=K(()=>l.value),L=K(()=>s.value),F=K(()=>u.value);function j(){return gt(m)?m:null}function z(V){m=V,C.postTranslation=V}function $(){return c}function M(V){V!==null&&(d=sy(V)),c=V,C.missing=d}const A=(V,U,se,ce,we,Pe)=>{O();let Ee;if(__INTLIFY_PROD_DEVTOOLS__)try{Yg(U8()),r||(C.fallbackContext=n?R8():void 0),Ee=V(C)}finally{Yg(null),r||(C.fallbackContext=void 0)}else Ee=V(C);if(St(Ee)&&Ee===au){const[$e,ft]=U();return n&&h?ce(n):we($e)}else{if(Pe(Ee))return Ee;throw Pt(Ct.UNEXPECTED_RETURN_TYPE)}};function N(...V){return A(U=>Reflect.apply(ey,null,[U,...V]),()=>of(...V),"translate",U=>Reflect.apply(U.t,U,[...V]),U=>U,U=>be(U))}function D(...V){const[U,se,ce]=V;if(ce&&!Je(ce))throw Pt(Ct.INVALID_ARGUMENT);return N(U,se,$t({resolvedMessage:!0},ce||{}))}function q(...V){return A(U=>Reflect.apply(ty,null,[U,...V]),()=>lf(...V),"datetime format",U=>Reflect.apply(U.d,U,[...V]),()=>Gg,U=>be(U))}function ee(...V){return A(U=>Reflect.apply(ry,null,[U,...V]),()=>sf(...V),"number format",U=>Reflect.apply(U.n,U,[...V]),()=>Gg,U=>be(U))}function Z(V){return V.map(U=>be(U)||St(U)||Fe(U)?iy(String(U)):U)}const G={normalize:Z,interpolate:V=>V,type:"vnode"};function ne(...V){return A(U=>{let se;const ce=U;try{ce.processor=G,se=Reflect.apply(ey,null,[ce,...V])}finally{ce.processor=null}return se},()=>of(...V),"translate",U=>U[uf](...V),U=>[iy(U)],U=>ot(U))}function oe(...V){return A(U=>Reflect.apply(ry,null,[U,...V]),()=>sf(...V),"number format",U=>U[ff](...V),()=>[],U=>be(U)||ot(U))}function de(...V){return A(U=>Reflect.apply(ty,null,[U,...V]),()=>lf(...V),"datetime format",U=>U[cf](...V),()=>[],U=>be(U)||ot(U))}function me(V){w=V,C.pluralRules=w}function ve(V,U){const se=be(U)?U:i.value,ce=R(se);return C.messageResolver(ce,V)!==null}function he(V){let U=null;const se=M1(C,o.value,i.value);for(let ce=0;ce{a&&(i.value=V,C.locale=V,Fi(C,i.value,o.value))}),pe(n.fallbackLocale,V=>{a&&(o.value=V,C.fallbackLocale=V,Fi(C,i.value,o.value))}));const X={id:ly,locale:I,fallbackLocale:P,get inheritLocale(){return a},set inheritLocale(V){a=V,V&&n&&(i.value=n.locale.value,o.value=n.fallbackLocale.value,Fi(C,i.value,o.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:k,get modifiers(){return b},get pluralRules(){return w||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(V){f=V,C.missingWarn=f},get fallbackWarn(){return v},set fallbackWarn(V){v=V,C.fallbackWarn=v},get fallbackRoot(){return h},set fallbackRoot(V){h=V},get fallbackFormat(){return g},set fallbackFormat(V){g=V,C.fallbackFormat=g},get warnHtmlMessage(){return p},set warnHtmlMessage(V){p=V,C.warnHtmlMessage=V},get escapeParameter(){return y},set escapeParameter(V){y=V,C.escapeParameter=V},t:N,getLocaleMessage:R,setLocaleMessage:S,mergeLocaleMessage:E,getPostTranslationHandler:j,setPostTranslationHandler:z,getMissingHandler:$,setMissingHandler:M,[V1]:me};return X.datetimeFormats=L,X.numberFormats=F,X.rt=D,X.te=ve,X.tm=ye,X.d=q,X.n=ee,X.getDateTimeFormat=B,X.setDateTimeFormat=H,X.mergeDateTimeFormat=Q,X.getNumberFormat=ae,X.setNumberFormat=ie,X.mergeNumberFormat=re,X[H1]=t.__injectWithOption,X[uf]=ne,X[cf]=de,X[ff]=oe,X}function K8(t){const e=be(t.locale)?t.locale:zo,n=be(t.fallbackLocale)||ot(t.fallbackLocale)||Te(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,r=gt(t.missing)?t.missing:void 0,a=Fe(t.silentTranslationWarn)||Gr(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,i=Fe(t.silentFallbackWarn)||Gr(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,o=Fe(t.fallbackRoot)?t.fallbackRoot:!0,l=!!t.formatFallbackMessages,s=Te(t.modifiers)?t.modifiers:{},u=t.pluralizationRules,f=gt(t.postTranslation)?t.postTranslation:void 0,v=be(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,h=!!t.escapeParameterHtml,g=Fe(t.sync)?t.sync:!0;let c=t.messages;if(Te(t.sharedMessages)){const C=t.sharedMessages;c=Object.keys(C).reduce((O,I)=>{const P=O[I]||(O[I]={});return $t(P,C[I]),O},c||{})}const{__i18n:d,__root:m,__injectWithOption:p}=t,y=t.datetimeFormats,b=t.numberFormats,w=t.flatJson;return{locale:e,fallbackLocale:n,messages:c,flatJson:w,datetimeFormats:y,numberFormats:b,missing:r,missingWarn:a,fallbackWarn:i,fallbackRoot:o,fallbackFormat:l,modifiers:s,pluralRules:u,postTranslation:f,warnHtmlMessage:v,escapeParameter:h,messageResolver:t.messageResolver,inheritLocale:g,__i18n:d,__root:m,__injectWithOption:p}}function vf(t={},e){{const n=gv(K8(t)),r={id:n.id,get locale(){return n.locale.value},set locale(a){n.locale.value=a},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(a){n.fallbackLocale.value=a},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(a){},get missing(){return n.getMissingHandler()},set missing(a){n.setMissingHandler(a)},get silentTranslationWarn(){return Fe(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(a){n.missingWarn=Fe(a)?!a:a},get silentFallbackWarn(){return Fe(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(a){n.fallbackWarn=Fe(a)?!a:a},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(a){n.fallbackFormat=a},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(a){n.setPostTranslationHandler(a)},get sync(){return n.inheritLocale},set sync(a){n.inheritLocale=a},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){n.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(a){n.escapeParameter=a},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(a){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...a){const[i,o,l]=a,s={};let u=null,f=null;if(!be(i))throw Pt(Ct.INVALID_ARGUMENT);const v=i;return be(o)?s.locale=o:ot(o)?u=o:Te(o)&&(f=o),ot(l)?u=l:Te(l)&&(f=l),Reflect.apply(n.t,n,[v,u||f||{},s])},rt(...a){return Reflect.apply(n.rt,n,[...a])},tc(...a){const[i,o,l]=a,s={plural:1};let u=null,f=null;if(!be(i))throw Pt(Ct.INVALID_ARGUMENT);const v=i;return be(o)?s.locale=o:St(o)?s.plural=o:ot(o)?u=o:Te(o)&&(f=o),be(l)?s.locale=l:ot(l)?u=l:Te(l)&&(f=l),Reflect.apply(n.t,n,[v,u||f||{},s])},te(a,i){return n.te(a,i)},tm(a){return n.tm(a)},getLocaleMessage(a){return n.getLocaleMessage(a)},setLocaleMessage(a,i){n.setLocaleMessage(a,i)},mergeLocaleMessage(a,i){n.mergeLocaleMessage(a,i)},d(...a){return Reflect.apply(n.d,n,[...a])},getDateTimeFormat(a){return n.getDateTimeFormat(a)},setDateTimeFormat(a,i){n.setDateTimeFormat(a,i)},mergeDateTimeFormat(a,i){n.mergeDateTimeFormat(a,i)},n(...a){return Reflect.apply(n.n,n,[...a])},getNumberFormat(a){return n.getNumberFormat(a)},setNumberFormat(a,i){n.setNumberFormat(a,i)},mergeNumberFormat(a,i){n.mergeNumberFormat(a,i)},getChoiceIndex(a,i){return-1},__onComponentInstanceCreated(a){const{componentInstanceCreatedListener:i}=t;i&&i(a,r)}};return r}}const yv={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function G8({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,a)=>[...r,...a.type===De?a.children:[a]],[]):e.reduce((n,r)=>{const a=t[r];return a&&(n[r]=a()),n},{})}function G1(t){return De}const q8=fe({name:"i18n-t",props:$t({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>St(t)||!isNaN(t)}},yv),setup(t,e){const{slots:n,attrs:r}=e,a=t.i18n||bv({useScope:t.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(v=>v!=="_"),o={};t.locale&&(o.locale=t.locale),t.plural!==void 0&&(o.plural=be(t.plural)?+t.plural:t.plural);const l=G8(e,i),s=a[uf](t.keypath,l,o),u=$t({},r),f=be(t.tag)||Je(t.tag)?t.tag:G1();return Kr(f,u,s)}}}),uy=q8;function Y8(t){return ot(t)&&!be(t[0])}function q1(t,e,n,r){const{slots:a,attrs:i}=e;return()=>{const o={part:!0};let l={};t.locale&&(o.locale=t.locale),be(t.format)?o.key=t.format:Je(t.format)&&(be(t.format.key)&&(o.key=t.format.key),l=Object.keys(t.format).reduce((h,g)=>n.includes(g)?$t({},h,{[g]:t.format[g]}):h,{}));const s=r(t.value,o,l);let u=[o.key];ot(s)?u=s.map((h,g)=>{const c=a[h.type],d=c?c({[h.type]:h.value,index:g,parts:s}):[h.value];return Y8(d)&&(d[0].key=`${h.type}-${g}`),d}):be(s)&&(u=[s]);const f=$t({},i),v=be(t.tag)||Je(t.tag)?t.tag:G1();return Kr(v,f,u)}}const X8=fe({name:"i18n-n",props:$t({value:{type:Number,required:!0},format:{type:[String,Object]}},yv),setup(t,e){const n=t.i18n||bv({useScope:"parent",__useComponent:!0});return q1(t,e,z1,(...r)=>n[ff](...r))}}),cy=X8,J8=fe({name:"i18n-d",props:$t({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},yv),setup(t,e){const n=t.i18n||bv({useScope:"parent",__useComponent:!0});return q1(t,e,j1,(...r)=>n[cf](...r))}}),fy=J8;function Q8(t,e){const n=t;if(t.mode==="composition")return n.__getInstance(e)||t.global;{const r=n.__getInstance(e);return r!=null?r.__composer:t.global.__composer}}function Z8(t){const e=o=>{const{instance:l,modifiers:s,value:u}=o;if(!l||!l.$)throw Pt(Ct.UNEXPECTED_ERROR);const f=Q8(t,l.$),v=dy(u);return[Reflect.apply(f.t,f,[...vy(v)]),f]};return{created:(o,l)=>{const[s,u]=e(l);rf&&t.global===u&&(o.__i18nWatcher=pe(u.locale,()=>{l.instance&&l.instance.$forceUpdate()})),o.__composer=u,o.textContent=s},unmounted:o=>{rf&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:l})=>{if(o.__composer){const s=o.__composer,u=dy(l);o.textContent=Reflect.apply(s.t,s,[...vy(u)])}},getSSRProps:o=>{const[l]=e(o);return{textContent:l}}}}function dy(t){if(be(t))return{path:t};if(Te(t)){if(!("path"in t))throw Pt(Ct.REQUIRED_VALUE,"path");return t}else throw Pt(Ct.INVALID_VALUE)}function vy(t){const{path:e,locale:n,args:r,choice:a,plural:i}=t,o={},l=r||{};return be(n)&&(o.locale=n),St(a)&&(o.plural=a),St(i)&&(o.plural=i),[e,l,o]}function e5(t,e,...n){const r=Te(n[0])?n[0]:{},a=!!r.useI18nComponentName;(Fe(r.globalInstall)?r.globalInstall:!0)&&(t.component(a?"i18n":uy.name,uy),t.component(cy.name,cy),t.component(fy.name,fy)),t.directive("t",Z8(e))}function t5(t,e,n){return{beforeCreate(){const r=bt();if(!r)throw Pt(Ct.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const i=a.i18n;a.__i18n&&(i.__i18n=a.__i18n),i.__root=e,this===this.$root?this.$i18n=py(t,i):(i.__injectWithOption=!0,this.$i18n=vf(i))}else a.__i18n?this===this.$root?this.$i18n=py(t,a):this.$i18n=vf({__i18n:a.__i18n,__injectWithOption:!0,__root:e}):this.$i18n=t;a.__i18nGlobal&&K1(e,a,a),t.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),this!==this.$root&&!this.$i18n.__extended__&&n.__vueI18nExtend&&(n.__vueI18nExtend(this.$i18n),this.$i18n.__extended__=!0)},mounted(){},unmounted(){const r=bt();if(!r)throw Pt(Ct.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(r),delete this.$i18n}}}function py(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[V1](e.pluralizationRules||t.pluralizationRules);const n=iu(t.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(n).forEach(r=>t.mergeLocaleMessage(r,n[r])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(r=>t.mergeDateTimeFormat(r,e.datetimeFormats[r])),e.numberFormats&&Object.keys(e.numberFormats).forEach(r=>t.mergeNumberFormat(r,e.numberFormats[r])),t}const n5=Ia("global-vue-i18n");function r5(t={},e){const n=__VUE_I18N_LEGACY_API__&&Fe(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,r=Fe(t.globalInjection)?t.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&n?!!t.allowComposition:!0,i=new Map,[o,l]=a5(t,n),s=Ia("");function u(h){return i.get(h)||null}function f(h,g){i.set(h,g)}function v(h){i.delete(h)}{const h={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return a},async install(g,...c){if(g.__VUE_I18N_SYMBOL__=s,g.provide(g.__VUE_I18N_SYMBOL__,h),Te(c[0])){const m=c[0];h.__composerExtend=m.__composerExtend,h.__vueI18nExtend=m.__vueI18nExtend}!n&&r&&p5(g,h.global),__VUE_I18N_FULL_INSTALL__&&e5(g,h,...c),__VUE_I18N_LEGACY_API__&&n&&g.mixin(t5(l,l.__composer,h));const d=g.unmount;g.unmount=()=>{h.dispose(),d()}},get global(){return l},dispose(){o.stop()},__instances:i,__getInstance:u,__setInstance:f,__deleteInstance:v};return h}}function bv(t={}){const e=bt();if(e==null)throw Pt(Ct.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Pt(Ct.NOT_INSTALLED);const n=i5(e),r=l5(n),a=U1(e),i=o5(t,a);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!t.__useComponent){if(!n.allowComposition)throw Pt(Ct.NOT_AVAILABLE_IN_LEGACY_MODE);return f5(e,i,r,t)}if(i==="global")return K1(r,t,a),r;if(i==="parent"){let s=s5(n,e,t.__useComponent);return s==null&&(s=r),s}const o=n;let l=o.__getInstance(e);if(l==null){const s=$t({},t);"__i18n"in a&&(s.__i18n=a.__i18n),r&&(s.__root=r),l=gv(s),o.__composerExtend&&o.__composerExtend(l),c5(o,e),o.__setInstance(e,l)}return l}function a5(t,e,n){const r=Of();{const a=__VUE_I18N_LEGACY_API__&&e?r.run(()=>vf(t)):r.run(()=>gv(t));if(a==null)throw Pt(Ct.UNEXPECTED_ERROR);return[r,a]}}function i5(t){{const e=Ye(t.isCE?n5:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Pt(t.isCE?Ct.NOT_INSTALLED_WITH_PROVIDE:Ct.UNEXPECTED_ERROR);return e}}function o5(t,e){return nu(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function l5(t){return t.mode==="composition"?t.global:t.global.__composer}function s5(t,e,n=!1){let r=null;const a=e.root;let i=u5(e,n);for(;i!=null;){const o=t;if(t.mode==="composition")r=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const l=o.__getInstance(i);l!=null&&(r=l.__composer,n&&r&&!r[H1]&&(r=null))}if(r!=null||a===i)break;i=i.parent}return r}function u5(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function c5(t,e,n){Re(()=>{},e),on(()=>{t.__deleteInstance(e)},e)}function f5(t,e,n,r={}){const a=e==="local",i=$n(null);if(a&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Pt(Ct.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Fe(r.inheritLocale)?r.inheritLocale:!be(r.locale),l=W(!a||o?n.locale.value:be(r.locale)?r.locale:zo),s=W(!a||o?n.fallbackLocale.value:be(r.fallbackLocale)||ot(r.fallbackLocale)||Te(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:l.value),u=W(iu(l.value,r)),f=W(Te(r.datetimeFormats)?r.datetimeFormats:{[l.value]:{}}),v=W(Te(r.numberFormats)?r.numberFormats:{[l.value]:{}}),h=a?n.missingWarn:Fe(r.missingWarn)||Gr(r.missingWarn)?r.missingWarn:!0,g=a?n.fallbackWarn:Fe(r.fallbackWarn)||Gr(r.fallbackWarn)?r.fallbackWarn:!0,c=a?n.fallbackRoot:Fe(r.fallbackRoot)?r.fallbackRoot:!0,d=!!r.fallbackFormat,m=gt(r.missing)?r.missing:null,p=gt(r.postTranslation)?r.postTranslation:null,y=a?n.warnHtmlMessage:Fe(r.warnHtmlMessage)?r.warnHtmlMessage:!0,b=!!r.escapeParameter,w=a?n.modifiers:Te(r.modifiers)?r.modifiers:{},C=r.pluralRules||a&&n.pluralRules;function _(){return[l.value,s.value,u.value,f.value,v.value]}const O=K({get:()=>i.value?i.value.locale.value:l.value,set:E=>{i.value&&(i.value.locale.value=E),l.value=E}}),I=K({get:()=>i.value?i.value.fallbackLocale.value:s.value,set:E=>{i.value&&(i.value.fallbackLocale.value=E),s.value=E}}),P=K(()=>i.value?i.value.messages.value:u.value),k=K(()=>f.value),L=K(()=>v.value);function F(){return i.value?i.value.getPostTranslationHandler():p}function j(E){i.value&&i.value.setPostTranslationHandler(E)}function z(){return i.value?i.value.getMissingHandler():m}function $(E){i.value&&i.value.setMissingHandler(E)}function M(E){return _(),E()}function A(...E){return i.value?M(()=>Reflect.apply(i.value.t,null,[...E])):M(()=>"")}function N(...E){return i.value?Reflect.apply(i.value.rt,null,[...E]):""}function D(...E){return i.value?M(()=>Reflect.apply(i.value.d,null,[...E])):M(()=>"")}function q(...E){return i.value?M(()=>Reflect.apply(i.value.n,null,[...E])):M(()=>"")}function ee(E){return i.value?i.value.tm(E):{}}function Z(E,B){return i.value?i.value.te(E,B):!1}function Y(E){return i.value?i.value.getLocaleMessage(E):{}}function G(E,B){i.value&&(i.value.setLocaleMessage(E,B),u.value[E]=B)}function ne(E,B){i.value&&i.value.mergeLocaleMessage(E,B)}function oe(E){return i.value?i.value.getDateTimeFormat(E):{}}function de(E,B){i.value&&(i.value.setDateTimeFormat(E,B),f.value[E]=B)}function me(E,B){i.value&&i.value.mergeDateTimeFormat(E,B)}function ve(E){return i.value?i.value.getNumberFormat(E):{}}function he(E,B){i.value&&(i.value.setNumberFormat(E,B),v.value[E]=B)}function ye(E,B){i.value&&i.value.mergeNumberFormat(E,B)}const R={get id(){return i.value?i.value.id:-1},locale:O,fallbackLocale:I,messages:P,datetimeFormats:k,numberFormats:L,get inheritLocale(){return i.value?i.value.inheritLocale:o},set inheritLocale(E){i.value&&(i.value.inheritLocale=E)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:w},get pluralRules(){return i.value?i.value.pluralRules:C},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:h},set missingWarn(E){i.value&&(i.value.missingWarn=E)},get fallbackWarn(){return i.value?i.value.fallbackWarn:g},set fallbackWarn(E){i.value&&(i.value.missingWarn=E)},get fallbackRoot(){return i.value?i.value.fallbackRoot:c},set fallbackRoot(E){i.value&&(i.value.fallbackRoot=E)},get fallbackFormat(){return i.value?i.value.fallbackFormat:d},set fallbackFormat(E){i.value&&(i.value.fallbackFormat=E)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:y},set warnHtmlMessage(E){i.value&&(i.value.warnHtmlMessage=E)},get escapeParameter(){return i.value?i.value.escapeParameter:b},set escapeParameter(E){i.value&&(i.value.escapeParameter=E)},t:A,getPostTranslationHandler:F,setPostTranslationHandler:j,getMissingHandler:z,setMissingHandler:$,rt:N,d:D,n:q,tm:ee,te:Z,getLocaleMessage:Y,setLocaleMessage:G,mergeLocaleMessage:ne,getDateTimeFormat:oe,setDateTimeFormat:de,mergeDateTimeFormat:me,getNumberFormat:ve,setNumberFormat:he,mergeNumberFormat:ye};function S(E){E.locale.value=l.value,E.fallbackLocale.value=s.value,Object.keys(u.value).forEach(B=>{E.mergeLocaleMessage(B,u.value[B])}),Object.keys(f.value).forEach(B=>{E.mergeDateTimeFormat(B,f.value[B])}),Object.keys(v.value).forEach(B=>{E.mergeNumberFormat(B,v.value[B])}),E.escapeParameter=b,E.fallbackFormat=d,E.fallbackRoot=c,E.fallbackWarn=g,E.missingWarn=h,E.warnHtmlMessage=y}return Bf(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Pt(Ct.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const E=i.value=t.proxy.$i18n.__composer;e==="global"?(l.value=E.locale.value,s.value=E.fallbackLocale.value,u.value=E.messages.value,f.value=E.datetimeFormats.value,v.value=E.numberFormats.value):a&&S(E)}),R}const d5=["locale","fallbackLocale","availableLocales"],v5=["t","rt","d","n","tm","te"];function p5(t,e){const n=Object.create(null);d5.forEach(r=>{const a=Object.getOwnPropertyDescriptor(e,r);if(!a)throw Pt(Ct.UNEXPECTED_ERROR);const i=tt(a.value)?{get(){return a.value.value},set(o){a.value.value=o}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,r,i)}),t.config.globalProperties.$i18n=n,v5.forEach(r=>{const a=Object.getOwnPropertyDescriptor(e,r);if(!a||!a.value)throw Pt(Ct.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${r}`,a)})}M8(F8);k8(v8);N8(M1);H8();if(__INTLIFY_PROD_DEVTOOLS__){const t=to();t.__INTLIFY__=!0,_8(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const h5={errorOccurred:"发生了个错误",useThumbnailPreview:"使用缩略图预览",smallerIntervalMeansMoreNetworkTraffic:"越小对网络压力越大",gridThumbnailWidth:"网格缩略图宽度",largeGridThumbnailWidth:"大尺寸网格缩略图宽度",start:"开始",tip:"提示",startedAt:"开始于:",sortByDateAscending:"修改日期升序",sortByDateDescending:"修改日期降序",sortByCreatedDateAscending:"创建日期升序",sortByCreatedDateDescending:"创建日期降序",sortByNameAscending:"名称升序",sortByNameDescending:"名称降序",sortBySizeAscending:"大小升序",sortBySizeDescending:"大小降序",inputAddressAndPressEnter:"输入地址回车",go:"前往",unknownError:"未知错误",loadingNextFolder:"即将加载下一个文件夹的文件",moveFailedCheckPath:"移动失败,检查你的路径输入",detailList:"详情列表",previewGrid:"预览网格",largePreviewGrid:"大尺寸预览网格",sortBy:"按照",moveSelectedFilesTo:"下列文件 移动 / 复制 至",confirm:"确定",download:"下载",local:"本地",sendImageFailed:"发送图像失败,请携带console的错误消息找开发者",confirmDelete:"确认删除?",deleteSuccess:"删除成功",doubleClickToCopy:"双击复制",root:"根",drive:"盘",refresh:"刷新",quickMove:"快速移动",more:"更多",viewMode:"查看模式",sortingMethod:"排序方法",copyPath:"复制路径",deleteSelected:"删除",previewInNewWindow:"在新窗口预览",copySourceFilePreviewLink:"复制源文件预览链接",viewGenerationInfo:"查看生成信息(prompt等)",sendToTxt2img:"发送到文生图",sendToImg2img:"发送到图生图",sendToInpaint:"发送到局部重绘",sendToControlNet:"发送到ControlNet",sendToBatchDownload:"发送到批量下载",sendToExtraFeatures:"发送到附加功能",loadNextPage:"加载下一页",localFile:"本地文件",globalSettings:"全局设置",welcome:"欢迎",openInNewWindow:"在新页面打开",restoreLastRecord:"还原上次记录",launch:"启动",walkMode:"使用 Walk 模式浏览图片",launchFromQuickMove:"从快速移动启动",recent:"最近",emptyStartPage:"空启动页",t2i:"文生图",i2i:"图生图",saveButtonSavesTo:"保存",extra:"附加",gridImage:"宫格图","i2i-grid":"图生图网格",image:"图像","t2i-grid":"文生图宫格",workingFolder:"工作文件夹",lang:"语言",langChangeReload:"重新加载: 一些变化可能需要在重新加载后生效",hypernetworks:"超网络模型",openOnTheRight:"在右边打开",openInNewTab:"在新标签打开",openWithWalkMode:"使用 Walk 模式打开",longPressOpenContextMenu:"支持使用长按打开右键菜单",searchResults:"搜索结果",imgSearch:"图像搜索",onlyFoldersAndImages:"只显示文件夹和图像",send2savedDir:"发送到保存的文件夹",unknownSavedDir:"找不到保存的文件夹(配置文件中的outdir_save字段)",Model:"模型",Sampler:"采样器",lora:"LoRA",size:"尺寸",pos:"正面提示",generateIndexHint:"生成索引用于搜索图像",UpdateIndex:"更新索引",needGenerateIdx:`你需要先点击按钮生成索引用于搜索图像 这个过程可能需要消耗几分钟`,search:"搜索",custom:"自定义",add:"新增",cancel:"取消",submit:"提交",existInOtherType:"已存在于其他类型",alreadyExists:"已存在",toggleTag:"切换标签选中 (收藏)",addCompleted:"添加完成",removeCompleted:"删除完成",addedTagToImage:'已添加标签 "{tag}" 到本图片',removedTagFromImage:'已从本图片上移除 "{tag}" 标签',openContextMenu:"打开上下文菜单",copyPrompt:"复制提示",copyPositivePrompt:"复制正向提示",refreshCompleted:"刷新完成","walk-mode-move-message":"在walk模式下仅允许使用“快速移动”移动位置",long_loading:"已经连续加载超过5秒,这可能在一会后恢复,如果一直发生这种问题请查看FAQ自行解决或者提issue",manualExitFullScreen:"你删除了最后一张图片,也许需要你手动退出全屏预览",copied:"已复制!","index.expired":"索引过期,正在自动更新","auto.refreshed":"自动刷新完成!",exactMatch:"完全匹配",anyMatch:"匹配任意",exclude:"排除掉",selectExactMatchTag:"选择完全匹配的 Tag",selectAnyMatchTag:"可选,选择匹配其中一个或多个的 Tag",selectExcludeTag:"可选,选择需要排除掉的 Tag",faq:"常见问题",autoUpdate:"检测到发生改变自动更新","fuzzy-search":"模糊搜索","fuzzy-search-placeholder":"输入图像信息或者文件名的一部分来进行搜索","fuzzy-search-noResults":"什么都没找到",openWithLocalFileBrowser:"使用本地文件浏览器打开",addToSearchScanPathAndQuickMove:"添加到搜索扫描路径和快速移动",removeFromSearchScanPathAndQuickMove:"从搜索扫描路径和快速移动中移除",serverKeyRequired:"服务器配置了密匙,你必须提供相同的密匙才能继续使用",shortcutKey:"快捷键(仅允许在全屏预览下使用)",shortcutKeyDescription:"点击输入框按下你想使用的按键,支持与Shift和Ctrl进行组合",fullscreenRestriction:"受技术限制,当前拓展不允许删除打开全屏预览时的首张图片。",clear:"清除",toggleTagSelection:'切换 "{tag}" 标签选中',changlog:"更新日志",accessControlModeTips:"为确保数据安全,您当前正以访问控制模式运行,仅能访问授权文件夹。您可以通过编辑本拓展根目录的下.env文件来调整访问权限设置 (IIB_ACCESS_CONTROL) .如果不存在.env文件, 你可以将.env.example文件复制并重命名为.env",dontShowAgain:"不再显示",defaultSortingMethod:"默认排序方法",defaultViewMode:"默认查看模式",showPreviewImage:"显示预览图",copy:"复制",edit:"编辑",document:"文档",multiSelectTips:"您可以按住 Shift、Ctrl 或 Cmd 键,然后单击文件来进行多选删除/移动操作",copyLocationUrlSuccessMsg:"复制完成,你可以通过复制的链接直接打开当前文件夹",share:"分享",dragImageHere:"拖拽图像到这里",imgCompare:"图像对比",close:"关闭",fullscreenview:"全屏查看",fileName:"文件名",resolution:"分辨率",fileSize:"文件大小",selectAll:"全选","tauriLaunchConf.readSdWebuiConfigTitle":"读取Stable Diffusion Webui的配置","tauriLaunchConf.readSdWebuiConfigDescription":"如果你已经安装sd-webui,且在sd-webui内安装了本拓展,推荐直接使用这个,将直接读取配置并且数据共享","tauriLaunchConf.selectSdWebuiFolder":"点击选择SD-webui的文件夹","tauriLaunchConf.skipThisConfigTitle":"跳过本次配置","tauriLaunchConf.skipThisConfigDescription":"所有功能仍将可用,你可以在设置页重置","tauriLaunchConf.skipButton":"跳过","tauriLaunchConfMessages.configNotFound":"找不到对应配置,检查选择的文件夹是否正确","tauriLaunchConfMessages.folderNotFound":"找不到对应文件夹,检查选择的文件夹是否正确","tauriLaunchConfMessages.configCompletedMessage":"配置完成,即将重启","tauriLaunchConfMessages.firstTimeUserTitle":"看起来你好像是第一次使用, 需要进行一些配置",inputTargetFolderPath:"输入目标文件夹的绝对路径",pathDoesNotExist:"路径不存在",confirmToAddToQuickMove:"确定添加?如果文件夹过大将会消耗过多时间建立索引。(如果不需要了你可以在文件夹右上角的更多里面移除)",clientSpecificSettings:"客户端特有的设置",initiateSoftwareStartupConfig:"初始化软件启动配置",gridCellWidth:"网格单元宽度 (px)",defaultGridCellWidth:"默认网格单元宽度 (px)",thumbnailResolution:"缩略图分辨率 (px)",livePreview:"实时预览",other:"其他",ImageBrowsingSettings:"图像浏览设置",majorUpdateCustomCellSizeTips:"重大更新:你可以自定义网格图像的大小了,在全局设置页或者右上角的“更多”里面进行调整",desktop:"桌面",move:"移动",inputFolderName:"输入文件夹名",createFolder:"创建文件夹",sendToThirdPartyExtension:"发送到第三方拓展",lyco:"LyCORIS",batchDownloaDDragAndDropHint:"使用拖拽或者右键菜单中的“发送到批量下载”将其他页面的图片添加到这里,支持多选",zipDownload:"打包成zip下载",archive:"归档",batchDownload:"批量下载",remove:"移除",secretKeyRequiredWarnMsg:`为了安全考虑,你必须为本拓展单独配置Secret Key,具体参考本拓展根目录下的.env.example文件内的IIB_SECRET_KEY。 - 这项警告只会在配置了gradio-auth时出现`,secretKeyMustBeConfigured:"必须配置Secret Key",deleteOneOnlySkipConfirm:"删除单个文件时不进行确认",resetOnGlobalSettingsPage:"你可以在全局设置页重置"},m5={deleteOneOnlySkipConfirm:"Do not confirm when deleting a single file",resetOnGlobalSettingsPage:"You can reset on the global settings page",secretKeyMustBeConfigured:"Secret Key must be configured",secretKeyRequiredWarnMsg:`For security reasons, you must separately configure Secret Key for this extension, refer to the IIB_SECRET_KEY in the .env.example file under the root directory of this extension. + 这项警告只会在配置了gradio-auth时出现`,secretKeyMustBeConfigured:"必须配置Secret Key",deleteOneOnlySkipConfirm:"删除单个文件时不进行确认",resetOnGlobalSettingsPage:"你可以在全局设置页重置",privacyAndSecurity:"安全与隐私"},m5={privacyAndSecurity:"Security & Privacy",deleteOneOnlySkipConfirm:"Do not confirm when deleting a single file",resetOnGlobalSettingsPage:"You can reset on the global settings page",secretKeyMustBeConfigured:"Secret Key must be configured",secretKeyRequiredWarnMsg:`For security reasons, you must separately configure Secret Key for this extension, refer to the IIB_SECRET_KEY in the .env.example file under the root directory of this extension. This error only appears when gradio-auth is configured.`,remove:"Remove",batchDownload:"Batch Download",archive:"Archive",zipDownload:"Download as ZIP",batchDownloaDDragAndDropHint:"Use drag and drop or the 'Send to Batch Download' option in the right-click menu to add images from other pages here. Multiple selections are supported.",lyco:"LyCORIS",sendToThirdPartyExtension:"Send to third-party extension",createFolder:"Create Folder",inputFolderName:"Input Folder Name",desktop:"Desktop",move:"Move",majorUpdateCustomCellSizeTips:'Major Update: You can now customize the size of the grid image. Adjust it in the global settings page or in the "More" menu in the upper right corner.',ImageBrowsingSettings:"Image Browsing Settings",other:"Other",livePreview:"Live Preview",gridCellWidth:"Grid Cell Width (px)",defaultGridCellWidth:"Default Grid Cell Width (px)",thumbnailResolution:"Thumbnail Resolution (px)",inputTargetFolderPath:"Enter the absolute path of the target folder",pathDoesNotExist:"Path does not exist",confirmToAddToQuickMove:"Are you sure you want to add? This may take a lot of time to index if the folder is large. (You can remove it from 'More' in the top right corner of the folder if you no longer need it.)",clientSpecificSettings:"Client-specific settings",initiateSoftwareStartupConfig:"Initiate software startup configuration","tauriLaunchConf.readSdWebuiConfigTitle":"Read Stable Diffusion Webui Config","tauriLaunchConf.readSdWebuiConfigDescription":"If you have installed sd-webui and this extension, it is recommended to use this option to directly read the configuration and share data.","tauriLaunchConf.selectSdWebuiFolder":"Click to select the SD-webui folder","tauriLaunchConf.skipThisConfigTitle":"Skip This Configuration","tauriLaunchConf.skipThisConfigDescription":"All features will still be available and you can reset them in the settings page.","tauriLaunchConf.skipButton":"Skip","tauriLaunchConfMessages.configNotFound":"Cannot find the corresponding configuration. Please check if the selected folder is correct.","tauriLaunchConfMessages.folderNotFound":"Cannot find the corresponding folder. Please check if the selected folder is correct.","tauriLaunchConfMessages.configCompletedMessage":"Configuration completed. The application will restart shortly.","tauriLaunchConfMessages.firstTimeUserTitle":"It looks like this is your first time using the application. Some configuration is required.",selectAll:"Select All",close:"Close",fileName:"File Name",resolution:"Resolution",fileSize:"File Size",fullscreenview:"Fullscreen View",imgCompare:"Image Comparison",share:"Share",dragImageHere:"Drag image here",copyLocationUrlSuccessMsg:"Copy completed, you can directly open the current folder through the copied link",multiSelectTips:"You can hold down the Shift, Ctrl, or Cmd key and then click on files to perform batch delete/move operations",document:"Document",copy:"Copy",edit:"Edit",defaultSortingMethod:"Default Sorting Method",defaultViewMode:"Default View Mode",showPreviewImage:"Show Preview Image",dontShowAgain:"Don't show again",accessControlModeTips:"To ensure data security, you are currently running in access control mode, which only allows access to authorized folders. You can adjust the access permissions settings (IIB_ACCESS_CONTROL) by editing the .env file in the root directory of this extension. If the .env file does not exist, you can copy the .env.example file and rename it to .env.",changlog:"Change log",clear:"Clear",toggleTagSelection:'Toggle Selection of Tag "{tag}"',fullscreenRestriction:"Due to technical limitations, the first image cannot be deleted when opening the fullscreen preview.",shortcutKey:"Keyboard Shortcuts (Only Available in full-screen preview mode)",shortcutKeyDescription:"Click on the input box and press the shortcut key you want to use, supporting combinations with Shift and Ctrl.",serverKeyRequired:"The server has configured a key. You must provide the same key to continue using it.",removeFromSearchScanPathAndQuickMove:"Remove from Search Scan Path and Quick Move",addToSearchScanPathAndQuickMove:"Add to Search Scan Path and Quick Move",openWithLocalFileBrowser:"Open with Local File Browser","fuzzy-search-noResults":"Nothing was found","fuzzy-search-placeholder":"Enter a part of the image information or filename to search","fuzzy-search":"Fuzzy search",autoUpdate:"Detected changes, automatically updating",faq:"FAQ",selectExactMatchTag:"Select Exact Match Tags",selectAnyMatchTag:"Optional, Select Any Match Tags",selectExcludeTag:"Optional, Select Exclude Tags",exactMatch:"Exact Match",anyMatch:"Match Any",exclude:"Exclude","auto.refreshed":"Auto refresh completed!",copied:"Copied!","index.expired":"Index expired, updating automatically",manualExitFullScreen:"You have deleted the last image and may need to manually exit full-screen preview",long_loading:"Loading has been taking more than 5 seconds, it may recover shortly. If this issue persists, please check the FAQ for a solution or open an issue.","walk-mode-move-message":"Moving position is only allowed using 'Quick Move' in walk mode",refreshCompleted:"Refresh completed",addedTagToImage:'Tag "{tag}" has been added to this image',removedTagFromImage:'Tag "{tag}" has been removed from this image',openContextMenu:"Open context menu",copyPrompt:"Copy prompt",copyPositivePrompt:"Copy positive prompt",toggleTag:"Toggle Tag Selection (Favorite)",addCompleted:"Add completed",removeCompleted:"Remove Completed",existInOtherType:"Already exists in other type",alreadyExists:"Already exists",cancel:"Cancel",submit:"Submit",add:"Add",custom:"Custom",needGenerateIdx:`You need to click the button to generate an index for searching images. This process may take a few minutes to complete.`,search:"Search",UpdateIndex:"Update index",generateIndexHint:"Generate index for search image",Model:"Model",Sampler:"Sampler",lora:"LoRA",size:"Size",pos:"Positive Prompt",unknownSavedDir:"Cannot find the saved folder (outdir_save field in the config)",errorOccurred:"An error occurred",useThumbnailPreview:"Use thumbnail preview",smallerIntervalMeansMoreNetworkTraffic:"Smaller interval means more network traffic",gridThumbnailWidth:"Grid thumbnail width",largeGridThumbnailWidth:"Large grid thumbnail width",start:"Start",tip:"Tip",startedAt:"Started at: ",sortByDateAscending:"Updated date ascending",sortByDateDescending:"UPdated date descending",sortByCreatedDateAscending:"Created date ascending",sortByCreatedDateDescending:"Created date descending",sortByNameAscending:"Name ascending",sortByNameDescending:"Name descending",sortBySizeAscending:"Size ascending",sortBySizeDescending:"Size descending",inputAddressAndPressEnter:"Input address and press Enter",go:"Go",unknownError:"Unknown error",loadingNextFolder:"Loading files from the next folder",moveFailedCheckPath:"Move failed. Check your path input.",detailList:"Detail list",previewGrid:"Preview grid",largePreviewGrid:"Large preview grid",sortBy:"Sort by",moveSelectedFilesTo:"Move / Copy selected files to",confirm:"Confirm",download:"Download",local:"Local",sendImageFailed:"Failed to send image. Please contact the developer with the error message from the console.",confirmDelete:"Are you sure you want to delete?",deleteSuccess:"Deleted successfully",doubleClickToCopy:"Double-click to copy",root:"Root",drive:" drive",refresh:"Refresh",quickMove:"Quick move",more:"More",viewMode:"View mode",sortingMethod:"Sorting method",copyPath:"Copy path",deleteSelected:"Delete",previewInNewWindow:"Open in new window",copySourceFilePreviewLink:"Copy source file preview link",viewGenerationInfo:"View generation information (prompt, etc.)",sendToTxt2img:"Send to txt2img",sendToImg2img:"Send to img2img",sendToInpaint:"Send to Inpaint",sendToBatchDownload:"Send to BatchDownload",sendToExtraFeatures:"Send to Extra",sendToControlNet:"Send to ControlNet",loadNextPage:"Load next page",localFile:"Local file",globalSettings:"Global settings",welcome:"Welcome",openInNewWindow:"Open in new tab",restoreLastRecord:"Restore last record",launch:"Launch",walkMode:"Use Walk mode to browse images",launchFromQuickMove:"Launch from Quick Move",recent:"Recent",emptyStartPage:"Empty start page",t2i:"txt2img",i2i:"img2img",saveButtonSavesTo:"save",extra:"extras",gridImage:"Grid image","i2i-grid":"img2img grid",image:"Image","t2i-grid":"txt2img grid",workingFolder:"working folder",lang:"Language",langChangeReload:"Reload: Some changes may require a reload to take effect",hypernetworks:"hypernetworks",openOnTheRight:"Open on the right",openInNewTab:"Open in a new tab",openWithWalkMode:"Open with Walk Mode",longPressOpenContextMenu:"Support long press to open right-click menu",searchResults:"Search Results",imgSearch:"Image Search",onlyFoldersAndImages:"Only show folders and images",send2savedDir:"Send to saved folder"},g5={serverKeyRequired:"Für die weitere Nutzung ist die Eingabe eines Schlüssels erforderlich, der vom Server konfiguriert wurde.",removeFromSearchScanPathAndQuickMove:"Schnellzugriff entfernen",addToSearchScanPathAndQuickMove:"Schnellzugriff hinzufügen",openWithLocalFileBrowser:"Im lokalen Dateimanager öffnen","fuzzy-search-noResults":"Es wurde nichts gefunden","fuzzy-search-placeholder":"Geben Sie einen Teil der Bildinformationen oder des Dateinamens ein, um passende Ergebnisse zu finden","fuzzy-search":"Schnellsuche",autoUpdate:"Erkannte Änderungen, automatische Aktualisierung wird ausgeführt",faq:"FAQ",selectExactMatchTag:"Wähle Tags für exakte Übereinstimmung aus",selectAnyMatchTag:"(Optional) Wähle Tags für beliebige Übereinstimmung aus",selectExcludeTag:"(Optional) Wähle Tags zum Ausschliessen aus",exactMatch:"Exakte Übereinstimmung",anyMatch:"Beliebige Übereinstimmung",exclude:"Ausschliessen","auto.refreshed":"Automatische Aktualisierung erfolgreich durchgeführt!",copied:"In die Zwischenablage kopiert!","index.expired":"Index abgelaufen, automatische Aktualisierung wird durchgeführt",manualExitFullScreen:"Du hast das letzte Bild gelöscht und musst möglicherweise manuell den Vollbild-Vorschaumodus beenden",long_loading:"Ladezeit beträgt mehr als 5 Sekunden. Es könnte sich in Kürze wieder normalisieren. Falls das Problem bestehen bleibt, überprüfen Sie bitte die FAQ für Lösungen oder reichen Sie eine Fehlermeldung ein.","walk-mode-move-message":"Im Walk-Modus ist das Verschieben des Verzeichnisses nur über 'Schnellzugriff' gestattet",refreshCompleted:"Aktualisierung erfolgreich abgeschlossen",addedTagToImage:"Schlagwort wurde erfolgreich diesem Bild hinzugefügt",removedTagFromImage:"Schlagwort wurde von diesem Bild entfernt",openContextMenu:"Öffne das Kontextmenü",copyPrompt:"Kopiere Prompt-Konfiguration",toggleTag:"(Favorite) Schlagwort hinzufügen/entfernen",addCompleted:"Hinzufügen abgeschlossen",removeCompleted:"Entfernen abgeschlossen",existInOtherType:"Bereits in anderem Typ vorhanden",alreadyExists:"Bereits vorhanden",cancel:"Abbrechen",submit:"Bestätigen",add:"Hinzufügen",custom:"Benutzerdefiniert",needGenerateIdx:`Klicken Sie auf die Schaltfläche, um einen Index zur Bildersuche zu generieren. Dieser Vorgang kann einige Minuten in Anspruch nehmen.`,search:"Suchen",UpdateIndex:"Index aktualisieren",generateIndexHint:"Index für die Bildersuche generieren",Model:"Modell",Sampler:"Sampler",lora:"LoRA",size:"Grösse",pos:"Positiver Prompt",unknownSavedDir:"Das Speicherverzeichnis konnte nicht gefunden werden (Einstellung für das Speicherverzeichnis in der Konfiguration)",errorOccurred:"Ein Fehler ist aufgetreten",useThumbnailPreview:"Verwende Miniaturansichtsvorschau",smallerIntervalMeansMoreNetworkTraffic:"Kürzeres Intervall bedeutet erhöhten Netzwerkverkehr",gridThumbnailWidth:"Breite der Miniatur-Rasteransicht",largeGridThumbnailWidth:"Breite der grossen Miniatur-Rasteransicht",start:"Start",tip:"Hinweis",startedAt:"Startzeit: ",sortByDateAscending:"Datum aufsteigend",sortByDateDescending:"Datum absteigend",sortByCreatedDateAscending:"Erstellungsdatum aufsteigend",sortByCreatedDateDescending:"Erstellungsdatum absteigend",sortByNameAscending:"Name aufsteigend",sortByNameDescending:"Name absteigend",sortBySizeAscending:"Grösse aufsteigend",sortBySizeDescending:"Grösse absteigend",inputAddressAndPressEnter:"Geben Sie die Adresse ein und drücken Sie Enter",go:"Los",unknownError:"Unbekannter Fehler aufgetreten",loadingNextFolder:"Lade Dateien aus dem nächsten Verzeichnis",moveFailedCheckPath:`Fehler beim Verschieben. Überprüfen Sie den eingegebenen Pfad. @@ -189,4 +189,4 @@ Note that this is not an issue if running this frontend on a browser instead of * pinia v2.1.3 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let T_;const su=t=>T_=t,I_=Symbol();function yf(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var ro;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(ro||(ro={}));function Qj(){const t=Of(!0),e=t.run(()=>W({}));let n=[],r=[];const a=Cs({install(i){su(a),a._a=i,i.provide(I_,a),i.config.globalProperties.$pinia=a,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!Jj?r.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return a}const A_=()=>{};function Sy(t,e,n,r=A_){t.push(e);const a=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),r())};return!n&&Ef()&&Gy(a),a}function La(t,...e){t.slice().forEach(n=>{n(...e)})}const Zj=t=>t();function bf(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,r)=>t.set(r,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],a=t[n];yf(a)&&yf(r)&&t.hasOwnProperty(n)&&!tt(r)&&!wr(r)?t[n]=bf(a,r):t[n]=r}return t}const ez=Symbol();function tz(t){return!yf(t)||!t.hasOwnProperty(ez)}const{assign:Rr}=Object;function nz(t){return!!(tt(t)&&t.effect)}function rz(t,e,n,r){const{state:a,actions:i,getters:o}=e,l=n.state.value[t];let s;function u(){l||(n.state.value[t]=a?a():{});const f=lb(n.state.value[t]);return Rr(f,i,Object.keys(o||{}).reduce((v,h)=>(v[h]=Cs(K(()=>{su(n);const g=n._s.get(t);return o[h].call(g,g)})),v),{}))}return s=M_(t,u,e,n,r,!0),s}function M_(t,e,n={},r,a,i){let o;const l=Rr({actions:{}},n),s={deep:!0};let u,f,v=[],h=[],g;const c=r.state.value[t];!i&&!c&&(r.state.value[t]={}),W({});let d;function m(I){let P;u=f=!1,typeof I=="function"?(I(r.state.value[t]),P={type:ro.patchFunction,storeId:t,events:g}):(bf(r.state.value[t],I),P={type:ro.patchObject,payload:I,storeId:t,events:g});const k=d=Symbol();Ke().then(()=>{d===k&&(u=!0)}),f=!0,La(v,P,r.state.value[t])}const p=i?function(){const{state:P}=n,k=P?P():{};this.$patch(L=>{Rr(L,k)})}:A_;function y(){o.stop(),v=[],h=[],r._s.delete(t)}function b(I,P){return function(){su(r);const k=Array.from(arguments),L=[],F=[];function j(M){L.push(M)}function z(M){F.push(M)}La(h,{args:k,name:I,store:C,after:j,onError:z});let $;try{$=P.apply(this&&this.$id===t?this:C,k)}catch(M){throw La(F,M),M}return $ instanceof Promise?$.then(M=>(La(L,M),M)).catch(M=>(La(F,M),Promise.reject(M))):(La(L,$),$)}}const w={_p:r,$id:t,$onAction:Sy.bind(null,h),$patch:m,$reset:p,$subscribe(I,P={}){const k=Sy(v,I,P.detached,()=>L()),L=o.run(()=>pe(()=>r.state.value[t],F=>{(P.flush==="sync"?f:u)&&I({storeId:t,type:ro.direct,events:g},F)},Rr({},s,P)));return k},$dispose:y},C=rt(w);r._s.set(t,C);const _=r._a&&r._a.runWithContext||Zj,O=r._e.run(()=>(o=Of(),_(()=>o.run(e))));for(const I in O){const P=O[I];if(tt(P)&&!nz(P)||wr(P))i||(c&&tz(P)&&(tt(P)?P.value=c[I]:bf(P,c[I])),r.state.value[t][I]=P);else if(typeof P=="function"){const k=b(I,P);O[I]=k,l.actions[I]=P}}return Rr(C,O),Rr(ke(C),O),Object.defineProperty(C,"$state",{get:()=>r.state.value[t],set:I=>{m(P=>{Rr(P,I)})}}),r._p.forEach(I=>{Rr(C,o.run(()=>I({store:C,app:r._a,pinia:r,options:l})))}),c&&i&&n.hydrate&&n.hydrate(C.$state,c),u=!0,f=!0,C}function k_(t,e,n){let r,a;const i=typeof e=="function";typeof t=="string"?(r=t,a=i?n:e):(a=t,r=t.id);function o(l,s){const u=Ex();return l=l||(u?Ye(I_,null):null),l&&su(l),l=T_,l._s.has(r)||(i?M_(r,e,a,l):rz(r,a,l)),l._s.get(r)}return o.$id=r,o}function az(t){{t=ke(t);const e={};for(const n in t){const r=t[n];(tt(r)||wr(r))&&(e[n]=Kt(t,n))}return e}}const iz=t=>Yc({...t,name:typeof t.name=="string"?t.name:t.nameFallbackStr??""}),oz=t=>({...t,panes:t.panes.map(iz)}),Wo=k_("useGlobalStore",()=>{const t=W(),e=W([]),n=W(!0),r=W(512),a=W(Av.CREATED_TIME_DESC),i=W(256),o=()=>({type:"empty",name:Ae("emptyStartPage"),key:br()}),l=W([]);Re(()=>{const b=o();l.value.push({panes:[b],key:b.key,id:br()})});const s=W(),u=W(new Array),f=Date.now(),v=W(),h=()=>{var w;const b=ke(l.value).map(oz);((w=v.value)==null?void 0:w[0].time)!==f?v.value=[{tabs:b,time:f},...v.value??[]]:v.value[0].tabs=b,v.value=v.value.slice(0,2)},g=async(b,w,C)=>{let _=l.value.map(I=>I.panes).flat().find(I=>I.type==="tag-search-matched-image-grid"&&I.id===w);if(_){_.selectedTagIds=Yc(C);return}else _={type:"tag-search-matched-image-grid",id:w,selectedTagIds:Yc(C),key:br(),name:Ae("searchResults")};const O=l.value[b+1];O?(O.key=_.key,O.panes.push(_)):l.value.push({panes:[_],key:_.key,id:br()})},c=W(Y1());pe(c,b=>wv.global.locale.value=b);const d=W(!1),m=W({delete:""}),p=K(()=>{const b=["outdir_extras_samples","outdir_save","outdir_txt2img_samples","outdir_img2img_samples","outdir_img2img_grids","outdir_txt2img_grids"],w=e.value.filter(C=>b.includes(C.key)).map(C=>[C.zh,C.dir]);return Object.fromEntries(w)}),y=rt({deleteOneOnly:!1});return{defaultSortingMethod:a,defaultGridCellWidth:i,pathAliasMap:p,createEmptyPane:o,lang:c,tabList:l,conf:t,quickMovePaths:e,enableThumbnail:n,dragingTab:s,saveRecord:h,recent:u,tabListHistoryRecord:v,gridThumbnailResolution:r,longPressOpenContextMenu:d,openTagSearchMatchedImageGridInRight:g,onlyFoldersAndImages:W(!0),fullscreenPreviewInitialUrl:W(""),shortcut:m,dontShowAgain:W(!1),dontShowAgainNewImgOpts:W(!1),ignoredConfirmActions:y}},{persist:{paths:["dontShowAgainNewImgOpts","defaultSortingMethod","defaultGridCellWidth","dontShowAgain","lang","enableThumbnail","tabListHistoryRecord","recent","gridThumbnailResolution","longPressOpenContextMenu","onlyFoldersAndImages","shortcut","ignoredConfirmActions"]}}),ao=encodeURIComponent,vs=(t,e=!1)=>`${Iv.value}/file?path=${ao(t.fullpath)}&t=${ao(t.date)}${e?`&disposition=${ao(t.name)}`:""}`,xy=(t,e="512x512")=>`${Iv.value}/image-thumbnail?path=${ao(t.fullpath)}&size=${e}&t=${ao(t.date)}`,lz=t=>typeof t=="object"&&t.__id==="FileTransferData",sz=t=>{var n;const e=JSON.parse(((n=t.dataTransfer)==null?void 0:n.getData("text"))??"{}");return lz(e)?e:null},F9=t=>Q1(t,"fullpath");function uz(t){var r;if(typeof t!="string")return!1;const e=[".jpg",".jpeg",".png",".gif",".bmp",".webp"],n=(r=t.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&e.includes(`.${n}`)}function N_(){try{return parent.window.gradioApp()}catch{}const t=parent.document.getElementsByTagName("gradio-app"),e=t.length==0?null:t[0].shadowRoot;return e||document}const cz=()=>{const t=N_().querySelectorAll("#tabs > .tabitem[id^=tab_]");return Array.from(t).findIndex(e=>e.id.includes("infinite-image-browsing"))},fz=()=>{try{N_().querySelector("#tabs").querySelectorAll("button")[cz()].click()}catch(t){console.error(t)}},dz=async(t,e=100,n=1e3)=>new Promise(r=>{const a=(i=0)=>{const o=t();o!=null||i>n/e?r(o):setTimeout(()=>a(++i),e)};a()}),vz=(t,...e)=>e.reduce((n,r)=>(n[r]=t==null?void 0:t[r],n),{}),pz=()=>rt(new Io(-1,0,-1,"throw")),B9=async(t,e)=>{try{if(navigator.clipboard)await navigator.clipboard.writeText(t);else{const n=document.createElement("input");n.value=t,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)}ya.success(e??Ae("copied"))}catch{ya.error("copy failed. maybe it's non-secure environment")}},{useEventListen:Py,eventEmitter:$_}=J1();function j9(t){let e=null,n=!1;return async function(...r){if(n)return e;n=!0;try{return e=t.apply(this,r),await e}finally{n=!1}}}function hz(t){const e=parent.location.href,n=new URLSearchParams(parent.location.search);t.forEach(a=>{n.delete(a)});const r=`${e.split("?")[0]}${n.size?"?":""}${n.toString()}`;return parent.history.pushState(null,"",r),r}const mz=t=>new Promise((e,n)=>{const r=new Image;r.onload=()=>e(r),r.onerror=a=>n(a),r.src=t});function gz(t){return!!/^(?:\/|[a-z]:\/)/i.test(di(t))}function di(t){if(!t)return"";t=t.replace(/\\/g,"/"),t=t.replace(/\/+/g,"/");const e=t.split("/"),n=[];for(let i=0;i{const n=gz(t)?t:di(yz(e,t));return di(n)},z9=t=>{t=di(t);const e=t.split("/").filter(n=>n);return e[0].endsWith(":")&&(e[0]=e[0]+"/"),e},Oy=async({global_setting:t,sd_cwd:e,home:n,extra_paths:r,cwd:a})=>{const o={...vz(t,"outdir_grids","outdir_extras_samples","outdir_img2img_grids","outdir_img2img_samples","outdir_grids","outdir_extras_samples","outdir_samples","outdir_txt2img_grids","outdir_txt2img_samples","outdir_save"),cwd:e,home:n,desktop:`${n}/Desktop`};Object.keys(o).forEach(h=>{const g=h;if(o[g])try{o[g]=bz(o[g],e)}catch(c){console.error(c)}});const l=await qj(Object.values(o).filter(h=>h)),s={outdir_txt2img_samples:Ae("t2i"),outdir_img2img_samples:Ae("i2i"),outdir_save:Ae("saveButtonSavesTo"),outdir_extras_samples:Ae("extra"),outdir_grids:Ae("gridImage"),outdir_img2img_grids:Ae("i2i-grid"),outdir_samples:Ae("image"),outdir_txt2img_grids:Ae("t2i-grid"),cwd:Ae("workingFolder"),home:"home",desktop:Ae("desktop")},u={home:n,[Ae("desktop")]:o.desktop,[Ae("workingFolder")]:a,[Ae("t2i")]:o.outdir_txt2img_samples,[Ae("i2i")]:o.outdir_img2img_samples},f=h=>{h=di(h);const g=[];for(const[c,d]of Object.entries(u))c&&d&&g.push(h.replace(d,"$"+c));return g.sort((c,d)=>c.length-d.length)[0]},v=Object.keys(s).filter(h=>l[o[h]]).map(h=>{const g=h;return{key:g,zh:s[g],dir:o[g],can_delete:!1}}).concat(r.map(h=>({key:h.path,zh:f(h.path),dir:h.path,can_delete:!0})));return Q1(v,"key")};const R_={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,e)=>(t[e.id]=e)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,e){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=e},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,e){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===e?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,e),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=e,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[e])},onSplitterDblClick(t,e){let n=0;this.panes=this.panes.map((r,a)=>(r.size=a===e?r.max:r.min,a!==e&&(n+=r.min),r)),this.panes[e].size-=n,this.$emit("pane-maximize",this.panes[e]),this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},onPaneClick(t,e){this.$emit("pane-click",this.indexedPanes[e])},getCurrentMouseDrag(t){const e=this.container.getBoundingClientRect(),{clientX:n,clientY:r}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:n-e.left,y:r-e.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const e=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=e-t),t*100/e},calculatePanesSize(t){const e=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(e),nextPanesSize:this.sumNextPanesSize(e),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),a=100-(this.pushOtherPanes?0:n.nextPanesSize),i=Math.max(Math.min(this.getCurrentDragPercentage(t),a),r);let o=[e,e+1],l=this.panes[o[0]]||null,s=this.panes[o[1]]||null;const u=l.max<100&&i>=l.max+n.prevPanesSize,f=s.max<100&&i<=100-(s.max+this.sumNextPanesSize(e+1));if(u||f){u?(l.size=l.max,s.size=Math.max(100-l.max-n.prevPanesSize-n.nextPanesSize,0)):(l.size=Math.max(100-s.max-n.prevPanesSize-this.sumNextPanesSize(e+1),0),s.size=s.max);return}if(this.pushOtherPanes){const v=this.doPushOtherPanes(n,i);if(!v)return;({sums:n,panesToResize:o}=v),l=this.panes[o[0]]||null,s=this.panes[o[1]]||null}l!==null&&(l.size=Math.min(Math.max(i-n.prevPanesSize-n.prevReachedMinPanes,l.min),l.max)),s!==null&&(s.size=Math.min(Math.max(100-i-n.nextPanesSize-n.nextReachedMinPanes,s.min),s.max))},doPushOtherPanes(t,e){const n=this.touch.activeSplitter,r=[n,n+1];return e{i>r[0]&&i<=n&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),t.prevPanesSize=this.sumPrevPanesSize(r[0]),r[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((a,i)=>{i>0&&i<=n&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),this.panes[r[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):e>100-t.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,t.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach((a,i)=>{i>n&&i{i=n+1&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),this.panes[r[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:r}},sumPrevPanesSize(t){return this.panes.reduce((e,n,r)=>e+(re+(r>t+1?n.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(e=>e.indexe.min)||{}},findNextExpandedPane(t){return this.panes.find(e=>e.index>t+1&&e.size>e.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const e=t.classList.contains("splitpanes__pane"),n=t.classList.contains("splitpanes__splitter");!e&&!n&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(t,e,n=!1){const r=t-1,a=document.createElement("div");a.classList.add("splitpanes__splitter"),n||(a.onmousedown=i=>this.onMouseDown(i,r),typeof window<"u"&&"ontouchstart"in window&&(a.ontouchstart=i=>this.onMouseDown(i,r)),a.onclick=i=>this.onSplitterClick(i,r+1)),this.dblClickSplitter&&(a.ondblclick=i=>this.onSplitterDblClick(i,r+1)),e.parentNode.insertBefore(a,e)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let e=0;t.forEach(n=>{n.className.includes("splitpanes__pane")&&(!e&&this.firstSplitter?this.addSplitter(e,n,!0):e&&this.addSplitter(e,n),e++)})},requestUpdate({target:t,...e}){const n=this.indexedPanes[t._.uid];Object.entries(e).forEach(([r,a])=>n[r]=a)},onPaneAdd(t){let e=-1;Array.from(t.$el.parentNode.children).some(a=>(a.className.includes("splitpanes__pane")&&e++,a===t.$el));const n=parseFloat(t.minSize),r=parseFloat(t.maxSize);this.panes.splice(e,0,{id:t._.uid,index:e,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((a,i)=>a.index=i),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},onPaneRemove(t){const e=this.panes.findIndex(r=>r.id===t._.uid),n=this.panes.splice(e,1)[0];this.panes.forEach((r,a)=>r.index=a),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:e}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(e=>e.givenSize!==null||e.min||e.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const t=100/this.panesCount;let e=0;const n=[],r=[];this.panes.forEach(a=>{a.size=Math.max(Math.min(t,a.max),a.min),e-=a.size,a.size>=a.max&&n.push(a.id),a.size<=a.min&&r.push(a.id)}),e>.1&&this.readjustSizes(e,n,r)},initialPanesSizing(){let t=100;const e=[],n=[];let r=0;this.panes.forEach(i=>{t-=i.size,i.size!==null&&r++,i.size>=i.max&&e.push(i.id),i.size<=i.min&&n.push(i.id)});let a=100;t>.1&&(this.panes.forEach(i=>{i.size===null&&(i.size=Math.max(Math.min(t/(this.panesCount-r),i.max),i.min)),a-=i.size}),a>.1&&this.readjustSizes(t,e,n))},equalizeAfterAddOrRemove({addedPane:t,removedPane:e}={}){let n=100/this.panesCount,r=0;const a=[],i=[];t&&t.givenSize!==null&&(n=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{r-=o.size,o.size>=o.max&&a.push(o.id),o.size<=o.min&&i.push(o.id)}),!(Math.abs(r)<.1)&&(this.panes.forEach(o=>{t&&t.givenSize!==null&&t.id===o.id||(o.size=Math.max(Math.min(n,o.max),o.min)),r-=o.size,o.size>=o.max&&a.push(o.id),o.size<=o.min&&i.push(o.id)}),r>.1&&this.readjustSizes(r,a,i))},readjustSizes(t,e,n){let r;t>0?r=t/(this.panesCount-e.length):r=t/(this.panesCount-n.length),this.panes.forEach((a,i)=>{if(t>0&&!e.includes(a.id)){const o=Math.max(Math.min(a.size+r,a.max),a.min),l=o-a.size;t-=l,a.size=o}else if(!n.includes(a.id)){const o=Math.max(Math.min(a.size+r,a.max),a.min),l=o-a.size;t-=l,a.size=o}a.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[a.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((e,n)=>{e.ondblclick=t?r=>this.onSplitterDblClick(r,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return Kr("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},wz=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},Cz={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function _z(t,e,n,r,a,i){return Xe(),dn("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=o=>i.onPaneClick(o,t._.uid)),style:vi(t.style)},[Wl(t.$slots,"default")],4)}const wf=wz(Cz,[["render",_z]]);function Mv(t){return Ef()?(Gy(t),!0):!1}function kv(t){return typeof t=="function"?t():xe(t)}const L_=typeof window<"u",Nv=()=>{};function Sz(t,e){function n(...r){return new Promise((a,i)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(a).catch(i)})}return n}const D_=t=>t();function xz(t=D_){const e=W(!0);function n(){e.value=!1}function r(){e.value=!0}const a=(...i)=>{e.value&&t(...i)};return{isActive:ws(e),pause:n,resume:r,eventFilter:a}}function Pz(...t){if(t.length!==1)return Kt(...t);const e=t[0];return typeof e=="function"?ws(zS(()=>({get:e,set:Nv}))):W(e)}function Oz(t,e=!0){bt()?Re(t):e?t():Ke(t)}var Ey=Object.getOwnPropertySymbols,Ez=Object.prototype.hasOwnProperty,Tz=Object.prototype.propertyIsEnumerable,Iz=(t,e)=>{var n={};for(var r in t)Ez.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Ey)for(var r of Ey(t))e.indexOf(r)<0&&Tz.call(t,r)&&(n[r]=t[r]);return n};function Az(t,e,n={}){const r=n,{eventFilter:a=D_}=r,i=Iz(r,["eventFilter"]);return pe(t,Sz(a,e),i)}var Mz=Object.defineProperty,kz=Object.defineProperties,Nz=Object.getOwnPropertyDescriptors,ps=Object.getOwnPropertySymbols,F_=Object.prototype.hasOwnProperty,B_=Object.prototype.propertyIsEnumerable,Ty=(t,e,n)=>e in t?Mz(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$z=(t,e)=>{for(var n in e||(e={}))F_.call(e,n)&&Ty(t,n,e[n]);if(ps)for(var n of ps(e))B_.call(e,n)&&Ty(t,n,e[n]);return t},Rz=(t,e)=>kz(t,Nz(e)),Lz=(t,e)=>{var n={};for(var r in t)F_.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&ps)for(var r of ps(t))e.indexOf(r)<0&&B_.call(t,r)&&(n[r]=t[r]);return n};function Dz(t,e,n={}){const r=n,{eventFilter:a}=r,i=Lz(r,["eventFilter"]),{eventFilter:o,pause:l,resume:s,isActive:u}=xz(a);return{stop:Az(t,e,Rz($z({},i),{eventFilter:o})),pause:l,resume:s,isActive:u}}function Fz(t,e,n){let r;tt(n)?r={evaluating:n}:r=n||{};const{lazy:a=!1,evaluating:i=void 0,shallow:o=!0,onError:l=Nv}=r,s=W(!a),u=o?$n(e):W(e);let f=0;return st(async v=>{if(!s.value)return;f++;const h=f;let g=!1;i&&Promise.resolve().then(()=>{i.value=!0});try{const c=await t(d=>{v(()=>{i&&(i.value=!1),g||d()})});h===f&&(u.value=c)}catch(c){l(c)}finally{i&&h===f&&(i.value=!1),g=!0}}),a?K(()=>(s.value=!0,u.value)):u}function Hr(t){var e;const n=kv(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Sr=L_?window:void 0,Bz=L_?window.document:void 0;function Pn(...t){let e,n,r,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,a]=t,e=Sr):[e,n,r,a]=t,!e)return Nv;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(f=>f()),i.length=0},l=(f,v,h,g)=>(f.addEventListener(v,h,g),()=>f.removeEventListener(v,h,g)),s=pe(()=>[Hr(e),kv(a)],([f,v])=>{o(),f&&i.push(...n.flatMap(h=>r.map(g=>l(f,h,g,v))))},{immediate:!0,flush:"post"}),u=()=>{s(),o()};return Mv(u),u}const jz=500;function W9(t,e,n){var r,a;const i=K(()=>Hr(t));let o;function l(){o&&(clearTimeout(o),o=void 0)}function s(f){var v,h,g,c;(v=n==null?void 0:n.modifiers)!=null&&v.self&&f.target!==i.value||(l(),(h=n==null?void 0:n.modifiers)!=null&&h.prevent&&f.preventDefault(),(g=n==null?void 0:n.modifiers)!=null&&g.stop&&f.stopPropagation(),o=setTimeout(()=>e(f),(c=n==null?void 0:n.delay)!=null?c:jz))}const u={capture:(r=n==null?void 0:n.modifiers)==null?void 0:r.capture,once:(a=n==null?void 0:n.modifiers)==null?void 0:a.once};Pn(i,"pointerdown",s,u),Pn(i,"pointerup",l,u),Pn(i,"pointerleave",l,u)}function zz(){const t=W(!1);return bt()&&Re(()=>{t.value=!0}),t}function j_(t){const e=zz();return K(()=>(e.value,!!t()))}function Wz(t,e={}){const{window:n=Sr}=e,r=j_(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const i=W(!1),o=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",l):a.removeListener(l))},l=()=>{r.value&&(o(),a=n.matchMedia(Pz(t).value),i.value=!!(a!=null&&a.matches),a&&("addEventListener"in a?a.addEventListener("change",l):a.addListener(l)))};return st(l),Mv(()=>o()),i}const wl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Cl="__vueuse_ssr_handlers__",Vz=Hz();function Hz(){return Cl in wl||(wl[Cl]=wl[Cl]||{}),wl[Cl]}function Uz(t,e){return Vz[t]||e}function Kz(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}var Gz=Object.defineProperty,Iy=Object.getOwnPropertySymbols,qz=Object.prototype.hasOwnProperty,Yz=Object.prototype.propertyIsEnumerable,Ay=(t,e,n)=>e in t?Gz(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,My=(t,e)=>{for(var n in e||(e={}))qz.call(e,n)&&Ay(t,n,e[n]);if(Iy)for(var n of Iy(e))Yz.call(e,n)&&Ay(t,n,e[n]);return t};const Xz={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},ky="vueuse-storage";function Jz(t,e,n,r={}){var a;const{flush:i="pre",deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:s=!0,mergeDefaults:u=!1,shallow:f,window:v=Sr,eventFilter:h,onError:g=I=>{console.error(I)}}=r,c=(f?$n:W)(e);if(!n)try{n=Uz("getDefaultStorage",()=>{var I;return(I=Sr)==null?void 0:I.localStorage})()}catch(I){g(I)}if(!n)return c;const d=kv(e),m=Kz(d),p=(a=r.serializer)!=null?a:Xz[m],{pause:y,resume:b}=Dz(c,()=>w(c.value),{flush:i,deep:o,eventFilter:h});return v&&l&&(Pn(v,"storage",O),Pn(v,ky,_)),O(),c;function w(I){try{if(I==null)n.removeItem(t);else{const P=p.write(I),k=n.getItem(t);k!==P&&(n.setItem(t,P),v&&v.dispatchEvent(new CustomEvent(ky,{detail:{key:t,oldValue:k,newValue:P,storageArea:n}})))}}catch(P){g(P)}}function C(I){const P=I?I.newValue:n.getItem(t);if(P==null)return s&&d!==null&&n.setItem(t,p.write(d)),d;if(!I&&u){const k=p.read(P);return typeof u=="function"?u(k,d):m==="object"&&!Array.isArray(k)?My(My({},d),k):k}else return typeof P!="string"?P:p.read(P)}function _(I){O(I.detail)}function O(I){if(!(I&&I.storageArea!==n)){if(I&&I.key==null){c.value=d;return}if(!(I&&I.key!==t)){y();try{c.value=C(I)}catch(P){g(P)}finally{I?Ke(b):b()}}}}}function Qz(t){return Wz("(prefers-color-scheme: dark)",t)}function Zz({document:t=Bz}={}){if(!t)return W("visible");const e=W(t.visibilityState);return Pn(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var Ny=Object.getOwnPropertySymbols,e7=Object.prototype.hasOwnProperty,t7=Object.prototype.propertyIsEnumerable,n7=(t,e)=>{var n={};for(var r in t)e7.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Ny)for(var r of Ny(t))e.indexOf(r)<0&&t7.call(t,r)&&(n[r]=t[r]);return n};function r7(t,e,n={}){const r=n,{window:a=Sr}=r,i=n7(r,["window"]);let o;const l=j_(()=>a&&"ResizeObserver"in a),s=()=>{o&&(o.disconnect(),o=void 0)},u=K(()=>Array.isArray(t)?t.map(h=>Hr(h)):[Hr(t)]),f=pe(u,h=>{if(s(),l.value&&a){o=new ResizeObserver(e);for(const g of h)g&&o.observe(g,i)}},{immediate:!0,flush:"post",deep:!0}),v=()=>{s(),f()};return Mv(v),{isSupported:l,stop:v}}function a7(t,e={width:0,height:0},n={}){const{window:r=Sr,box:a="content-box"}=n,i=K(()=>{var s,u;return(u=(s=Hr(t))==null?void 0:s.namespaceURI)==null?void 0:u.includes("svg")}),o=W(e.width),l=W(e.height);return r7(t,([s])=>{const u=a==="border-box"?s.borderBoxSize:a==="content-box"?s.contentBoxSize:s.devicePixelContentBoxSize;if(r&&i.value){const f=Hr(t);if(f){const v=r.getComputedStyle(f);o.value=parseFloat(v.width),l.value=parseFloat(v.height)}}else if(u){const f=Array.isArray(u)?u:[u];o.value=f.reduce((v,{inlineSize:h})=>v+h,0),l.value=f.reduce((v,{blockSize:h})=>v+h,0)}else o.value=s.contentRect.width,l.value=s.contentRect.height},n),pe(()=>Hr(t),s=>{o.value=s?e.width:0,l.value=s?e.height:0}),{width:o,height:l}}function V9(t,e,n={}){const{window:r=Sr}=n;return Jz(t,e,r==null?void 0:r.localStorage,n)}const i7={page:t=>[t.pageX,t.pageY],client:t=>[t.clientX,t.clientY],screen:t=>[t.screenX,t.screenY],movement:t=>t instanceof Touch?null:[t.movementX,t.movementY]};function o7(t={}){const{type:e="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:a={x:0,y:0},window:i=Sr,target:o=i,eventFilter:l}=t,s=W(a.x),u=W(a.y),f=W(null),v=typeof e=="function"?e:i7[e],h=p=>{const y=v(p);y&&([s.value,u.value]=y,f.value="mouse")},g=p=>{if(p.touches.length>0){const y=v(p.touches[0]);y&&([s.value,u.value]=y,f.value="touch")}},c=()=>{s.value=a.x,u.value=a.y},d=l?p=>l(()=>h(p),{}):p=>h(p),m=l?p=>l(()=>g(p),{}):p=>g(p);return o&&(Pn(o,"mousemove",d,{passive:!0}),Pn(o,"dragover",d,{passive:!0}),n&&e!=="movement"&&(Pn(o,"touchstart",m,{passive:!0}),Pn(o,"touchmove",m,{passive:!0}),r&&Pn(o,"touchend",c,{passive:!0}))),{x:s,y:u,sourceType:f}}function $y(t,e={}){const{handleOutside:n=!0,window:r=Sr}=e,{x:a,y:i,sourceType:o}=o7(e),l=W(t??(r==null?void 0:r.document.body)),s=W(0),u=W(0),f=W(0),v=W(0),h=W(0),g=W(0),c=W(!0);let d=()=>{};return r&&(d=pe([l,a,i],()=>{const m=Hr(l);if(!m)return;const{left:p,top:y,width:b,height:w}=m.getBoundingClientRect();f.value=p+r.pageXOffset,v.value=y+r.pageYOffset,h.value=w,g.value=b;const C=a.value-f.value,_=i.value-v.value;c.value=b===0||w===0||C<0||_<0||C>b||_>w,(n||!c.value)&&(s.value=C,u.value=_)},{immediate:!0}),Pn(document,"mouseleave",()=>{c.value=!0})),{x:a,y:i,sourceType:o,elementX:s,elementY:u,elementPositionX:f,elementPositionY:v,elementHeight:h,elementWidth:g,isOutside:c,stop:d}}const l7={style:{position:"relative"}},s7=fe({__name:"edgeTrigger",props:{tabIdx:{}},setup(t){const e=t,n=Wo(),r=W(),a=W(),{isOutside:i}=$y(a),{isOutside:o}=$y(r),l=K(()=>!i.value&&!!n.dragingTab),s=K(()=>!o.value&&!!n.dragingTab&&!l.value),u=(f,v)=>{var g,c,d,m;const h=JSON.parse(((g=f.dataTransfer)==null?void 0:g.getData("text"))??"{}");if(console.log("on-drop",v,h),(h==null?void 0:h.from)==="tab-drag"){if(f.stopPropagation(),n.dragingTab=void 0,v==="insert"&&h.tabIdx===e.tabIdx)return;const p=n.tabList,y=p[h.tabIdx].panes[h.paneIdx];p[h.tabIdx].panes.splice(h.paneIdx,1),v==="add-right"?(p[e.tabIdx].key=((c=p[e.tabIdx].panes[h.paneIdx-1])==null?void 0:c.key)??p[e.tabIdx].panes[0].key,p.splice(e.tabIdx+1,0,{panes:[y],key:y.key,id:br()})):(p[h.tabIdx].key=((d=p[h.tabIdx].panes[h.paneIdx-1])==null?void 0:d.key)??((m=p[h.tabIdx].panes[0])==null?void 0:m.key),p[e.tabIdx].panes.push(y),p[e.tabIdx].key=y.key),p[h.tabIdx].panes.length===0&&p.splice(h.tabIdx,1)}};return(f,v)=>(Xe(),dn("div",{class:ba(["wrap",{accept:s.value}]),ref_key:"trigger",ref:r,onDragover:v[2]||(v[2]=Ln(()=>{},["prevent"])),onDrop:v[3]||(v[3]=Ln(h=>u(h,"insert"),["prevent"]))},[xn("div",{class:ba(["trigger",{accept:l.value}]),ref_key:"edgeTrigger",ref:a,onDragover:v[0]||(v[0]=Ln(()=>{},["prevent"])),onDrop:v[1]||(v[1]=Ln(h=>u(h,"add-right"),["prevent"]))},null,34),xn("div",l7,[Wl(f.$slots,"default",{},void 0,!0)])],34))}});const uu=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},u7=uu(s7,[["__scopeId","data-v-10c5aba4"]]);const z_=k_("useImgSliStore",()=>{const t=W(!1),e=W(!1),n=W(!1),r=W(),a=W(),i=Wo(),o=K(()=>{var s;const l=i.tabList;for(const u of l)if(((s=u.panes.find(f=>f.key===u.key))==null?void 0:s.type)==="img-sli")return!0;return!1});return{drawerVisible:e,fileDragging:t,left:r,right:a,imgSliActived:o,opened:n}}),c7=t=>(pb("data-v-8c231997"),t=t(),hb(),t),f7={key:0,class:"dragging-port-wrap"},d7={class:"content"},v7={key:0,class:"img-wrap"},p7={key:1},h7=c7(()=>xn("div",{style:{padding:"16px"}},null,-1)),m7={key:0,class:"img-wrap"},g7={key:1},y7={class:"actions"},b7=fe({__name:"DraggingPort",setup(t){const e=z_(),n=Wo(),{left:r,right:a}=az(e),i=async(s,u)=>{const f=sz(s);if(f){const v=f.nodes[0];if(!uz(v.name))return;e[u]=v}},o=()=>{e.left=void 0,e.right=void 0,e.opened=!1},l=()=>{e_(r.value&&a.value);const s={type:"img-sli",left:r.value,right:a.value,name:`${Ae("imgCompare")} ( ${r.value.name} vs ${a.value.name})`,key:br()};n.tabList[0].panes.push(s),n.tabList[0].key=s.key};return(s,u)=>{const f=bF,v=Tn;return Xe(),Xt(or,null,{default:_t(()=>[(xe(e).fileDragging||xe(r)||xe(a)||xe(e).opened)&&!xe(e).imgSliActived?(Xe(),dn("div",f7,[xn("h2",null,gr(s.$t("imgCompare")),1),xn("div",d7,[xn("div",{class:"left port",onDragover:u[1]||(u[1]=Ln(()=>{},["prevent"])),onDrop:u[2]||(u[2]=Ln(h=>i(h,"left"),["prevent"]))},[xe(r)?(Xe(),dn("div",v7,[x(f,{src:xe(xy)(xe(r)),preview:{src:xe(vs)(xe(r))}},null,8,["src","preview"]),x(xe(Jl),{class:"close",onClick:u[0]||(u[0]=h=>r.value=void 0)})])):(Xe(),dn("div",p7,gr(s.$t("dragImageHere")),1))],32),h7,xn("div",{class:"right port",onDragover:u[4]||(u[4]=Ln(()=>{},["prevent"])),onDrop:u[5]||(u[5]=Ln(h=>i(h,"right"),["prevent"]))},[xe(a)?(Xe(),dn("div",m7,[x(f,{src:xe(xy)(xe(a)),preview:{src:xe(vs)(xe(a))}},null,8,["src","preview"]),x(xe(Jl),{class:"close",onClick:u[3]||(u[3]=h=>a.value=void 0)})])):(Xe(),dn("div",g7,gr(s.$t("dragImageHere")),1))],32)]),xn("div",y7,[xe(r)&&xe(a)?(Xe(),Xt(v,{key:0,type:"primary",onClick:u[6]||(u[6]=h=>xe(e).drawerVisible=!0)},{default:_t(()=>[Fn(gr(s.$t("confirm")),1)]),_:1})):Ga("",!0),xe(r)&&xe(a)?(Xe(),Xt(v,{key:1,type:"primary",onClick:l},{default:_t(()=>[Fn(gr(s.$t("confirm"))+"("+gr(s.$t("openInNewTab"))+")",1)]),_:1})):Ga("",!0),x(v,{style:{"margin-left":"16px"},onClick:o},{default:_t(()=>[Fn(gr(s.$t("close")),1)]),_:1})])])):Ga("",!0)]),_:1})}}});const w7=uu(b7,[["__scopeId","data-v-8c231997"]]),C7={class:"container"},_7=["src"],S7=fe({__name:"ImgSliSide",props:{side:{},containerWidth:{},img:{},maxEdge:{},percent:{}},setup(t){const e=t,n=K(()=>{let r="";const i=e.containerWidth;return e.side==="left"?r=`calc(50% - ${(e.percent-50)/100*i}px)`:r=`calc(-50% - ${(e.percent-50)/100*i+4}px)`,`${e.maxEdge==="width"?"width:100%":"height:100%"};transform: translate(${r}, -50%)`});return(r,a)=>(Xe(),dn("div",C7,[xn("img",{class:ba(["img",[r.side]]),style:vi(n.value),src:xe(vs)(r.img),onDragstart:a[0]||(a[0]=Ln(()=>{},["prevent","stop"]))},null,46,_7)]))}});const Ry=uu(S7,[["__scopeId","data-v-65d66859"]]),x7=fe({__name:"ImgSliComparePane",props:{left:{},right:{}},setup(t,{expose:e}){const n=t,r=W(50),a=([{size:u}])=>{r.value=u},i=W(),{width:o}=a7(i);e({requestFullScreen:()=>{var u;(u=i.value)==null||u.requestFullscreen()}});const s=Fz(async()=>{if(!n.left)return"width";const u=await mz(vs(n.left)),f=u.width/u.height,v=document.body.clientWidth/document.body.clientHeight;return f>v?"width":"height"});return(u,f)=>(Xe(),dn("div",{ref_key:"wrapperEl",ref:i,style:{height:"100%"}},[x(xe(R_),{class:"default-theme",onResize:a},{default:_t(()=>[u.left?(Xe(),Xt(xe(wf),{key:0},{default:_t(()=>[x(Ry,{side:"left","max-edge":xe(s),"container-width":xe(o),percent:r.value,img:u.left},null,8,["max-edge","container-width","percent","img"])]),_:1})):Ga("",!0),u.right?(Xe(),Xt(xe(wf),{key:1},{default:_t(()=>[x(Ry,{"max-edge":xe(s),percent:r.value,img:u.right,side:"right","container-width":xe(o)},null,8,["max-edge","percent","img","container-width"])]),_:1})):Ga("",!0)]),_:1})],512))}});const P7={class:"actions"},O7=fe({__name:"ImgSliDrawer",setup(t){const e=z_(),n=W();return(r,a)=>{const i=Tn,o=d4;return Xe(),dn(De,null,[x(o,{width:"100vw",visible:xe(e).drawerVisible,"onUpdate:visible":a[2]||(a[2]=l=>xe(e).drawerVisible=l),"destroy-on-close":"",class:"img-sli","close-icon":null},{footer:_t(()=>[xn("div",P7,[x(i,{onClick:a[0]||(a[0]=l=>xe(e).drawerVisible=!1)},{default:_t(()=>[Fn(gr(r.$t("close")),1)]),_:1}),x(i,{onClick:a[1]||(a[1]=l=>{var s;return(s=n.value)==null?void 0:s.requestFullScreen()})},{default:_t(()=>[Fn(gr(r.$t("fullscreenview")),1)]),_:1})])]),default:_t(()=>[xe(e).left&&xe(e).right?(Xe(),Xt(x7,{key:0,ref_key:"splitpane",ref:n,left:xe(e).left,right:xe(e).right},null,8,["left","right"])):Ga("",!0)]),_:1},8,["visible"]),x(w7)],64)}}});const E7=fe({__name:"SplitViewTab",setup(t){const e=Wo(),n={local:Ir(()=>hr(()=>import("./stackView-e569ad78.js"),["assets/stackView-e569ad78.js","assets/fullScreenContextMenu-641139fc.js","assets/FileItem-7d7b8ef3.js","assets/db-c6358829.js","assets/shortcut-9c26d495.js","assets/shortcut-9fed83c2.css","assets/FileItem-b09f7869.css","assets/fullScreenContextMenu-6db7192a.css","assets/numInput-ad16e274.js","assets/numInput-a08c6857.css","assets/stackView-54b34abc.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),empty:Ir(()=>hr(()=>import("./emptyStartup-f0ca0da7.js"),["assets/emptyStartup-f0ca0da7.js","assets/db-c6358829.js","assets/emptyStartup-276242f5.css"])),"global-setting":Ir(()=>hr(()=>import("./globalSetting-367a90eb.js"),["assets/globalSetting-367a90eb.js","assets/numInput-ad16e274.js","assets/shortcut-9c26d495.js","assets/shortcut-9fed83c2.css","assets/numInput-a08c6857.css","assets/globalSetting-81978e8e.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),"tag-search-matched-image-grid":Ir(()=>hr(()=>import("./MatchedImageGrid-8a40156c.js"),["assets/MatchedImageGrid-8a40156c.js","assets/fullScreenContextMenu-641139fc.js","assets/FileItem-7d7b8ef3.js","assets/db-c6358829.js","assets/shortcut-9c26d495.js","assets/shortcut-9fed83c2.css","assets/FileItem-b09f7869.css","assets/fullScreenContextMenu-6db7192a.css","assets/hook-9a924413.js","assets/MatchedImageGrid-bdeb2907.css"])),"tag-search":Ir(()=>hr(()=>import("./TagSearch-41046adf.js"),["assets/TagSearch-41046adf.js","assets/db-c6358829.js","assets/TagSearch-ffd782da.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),"fuzzy-search":Ir(()=>hr(()=>import("./SubstrSearch-31402387.js"),["assets/SubstrSearch-31402387.js","assets/fullScreenContextMenu-641139fc.js","assets/FileItem-7d7b8ef3.js","assets/db-c6358829.js","assets/shortcut-9c26d495.js","assets/shortcut-9fed83c2.css","assets/FileItem-b09f7869.css","assets/fullScreenContextMenu-6db7192a.css","assets/hook-9a924413.js","assets/SubstrSearch-03c71861.css","assets/index-f4bbe4b8.css"])),"img-sli":Ir(()=>hr(()=>import("./ImgSliPagePane-e5d90c60.js"),[])),"batch-download":Ir(()=>hr(()=>import("./batchDownload-f20de8ae.js"),["assets/batchDownload-f20de8ae.js","assets/FileItem-7d7b8ef3.js","assets/db-c6358829.js","assets/shortcut-9c26d495.js","assets/shortcut-9fed83c2.css","assets/FileItem-b09f7869.css","assets/batchDownload-08be3fc5.css"]))},r=(o,l,s)=>{var f,v;const u=e.tabList[o];if(s==="add"){const h={type:"empty",key:br(),name:Ae("emptyStartPage")};u.panes.push(h),u.key=h.key}else{const h=u.panes.findIndex(g=>g.key===l);if(u.key===l&&(u.key=((f=u.panes[h-1])==null?void 0:f.key)??((v=u.panes[1])==null?void 0:v.key)),u.panes.splice(h,1),u.panes.length===0&&e.tabList.splice(o,1),e.tabList.length===0){const g=e.createEmptyPane();e.tabList.push({panes:[g],key:g.key,id:br()})}}},a=W();pe(()=>e.tabList,async()=>{var o;await Ke(),e.saveRecord(),Array.from(((o=a.value)==null?void 0:o.querySelectorAll(".splitpanes__pane"))??[]).forEach((l,s)=>{Array.from(l.querySelectorAll(".ant-tabs-tab")??[]).forEach((u,f)=>{const v=u;v.setAttribute("draggable","true"),v.setAttribute("tabIdx",s.toString()),v.setAttribute("paneIdx",f.toString()),v.ondragend=()=>{e.dragingTab=void 0},v.ondragstart=h=>{e.dragingTab={tabIdx:s,paneIdx:f},h.dataTransfer.setData("text/plain",JSON.stringify({tabIdx:s,paneIdx:f,from:"tab-drag"}))}})})},{immediate:!0,deep:!0});const i=qc(()=>$_.emit("returnToIIB"),100);return Oz(async()=>{const o=window.parent;if(!await dz(()=>o==null?void 0:o.onUiTabChange,200,3e4)){console.log("watch tab change failed");return}o.onUiTabChange(()=>{const l=o.get_uiCurrentTabContent();l!=null&&l.id.includes("infinite-image-browsing")&&i()})}),pe(Zz(),o=>o&&i()),(o,l)=>{const s=ls,u=Qi;return Xe(),dn("div",{ref_key:"container",ref:a},[x(xe(R_),{class:"default-theme"},{default:_t(()=>[(Xe(!0),dn(De,null,Xv(xe(e).tabList,(f,v)=>(Xe(),Xt(xe(wf),{key:f.id},{default:_t(()=>[x(u7,{tabIdx:v},{default:_t(()=>[x(u,{type:"editable-card",activeKey:f.key,"onUpdate:activeKey":h=>f.key=h,onEdit:(h,g)=>r(v,h,g)},{default:_t(()=>[(Xe(!0),dn(De,null,Xv(f.panes,(h,g)=>(Xe(),Xt(s,{key:h.key,tab:h.name,class:"pane"},{default:_t(()=>[(Xe(),Xt(gx(n[h.type]),Gf({tabIdx:v,paneIdx:g},h),null,16,["tabIdx","paneIdx"]))]),_:2},1032,["tab"]))),128))]),_:2},1032,["activeKey","onUpdate:activeKey","onEdit"])]),_:2},1032,["tabIdx"])]),_:2},1024))),128))]),_:1}),x(O7)],512)}}});const T7=uu(E7,[["__scopeId","data-v-c479b9de"]]),I7=async t=>{var r;const e=(r=t.conf)==null?void 0:r.global_setting,n=new URLSearchParams(parent.location.search);switch(n.get("action")){case"open":{let a=n.get("path");if(!a||!e)return;const i={extra:e.outdir_extras_samples,save:e.outdir_save,txt2img:e.outdir_txt2img_samples,img2img:e.outdir_img2img_samples};i[a]&&(a=i[a]);const o=t.tabList[0],l={type:"local",path:a,key:br(),name:"",walkModePath:n.get("walk")?a:void 0};o.panes.unshift(l),o.key=l.key,fz(),hz(["action","path","walk"]);break}}};function Ly(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!tr(t)}const W_="app.conf.json",io=W(),V_=()=>Ao.writeFile(W_,JSON.stringify(ke(io.value),null,4)),A7=fe({setup(){const t=async()=>{const e=await S_({directory:!0});if(typeof e=="string"){if(!await Ao.exists(`${e}/config.json`))return ya.error(Ae("tauriLaunchConfMessages.configNotFound"));if(!await Ao.exists(`${e}/extensions/sd-webui-infinite-image-browsing`))return ya.error(Ae("tauriLaunchConfMessages.folderNotFound"));io.value.sdwebui_dir=e,ya.info(Ae("tauriLaunchConfMessages.configCompletedMessage")),await V_(),await lu("shutdown_api_server_command"),await ou(1500),await w_()}};return()=>{let e,n;return x("div",{style:{padding:"32px 0"}},[x("div",{style:{padding:"16px 0"}},[x("h2",null,[Ae("tauriLaunchConf.readSdWebuiConfigTitle")]),x("p",null,[Ae("tauriLaunchConf.readSdWebuiConfigDescription")]),x(Tn,{onClick:t,type:"primary"},Ly(e=Ae("tauriLaunchConf.selectSdWebuiFolder"))?e:{default:()=>[e]})]),x("div",{style:{padding:"16px 0"}},[x("h2",null,[Ae("tauriLaunchConf.skipThisConfigTitle")]),x("p",null,[Ae("tauriLaunchConf.skipThisConfigDescription")]),x(Tn,{type:"primary",onClick:Bt.destroyAll},Ly(n=Ae("tauriLaunchConf.skipButton"))?n:{default:()=>[n]})])])}}}),M7=async()=>{try{io.value=JSON.parse(await Ao.readTextFile(W_))}catch{}io.value||(io.value={sdwebui_dir:""},await V_(),Bt.info({title:Ae("tauriLaunchConfMessages.firstTimeUserTitle"),content:x(A7,null,null),width:"80vw",okText:Ae("tauriLaunchConf.skipButton"),okButtonProps:{onClick:Bt.destroyAll}}))},k7=!!{}.TAURI_ARCH,N7=fe({__name:"App",setup(t){const e=Wo(),n=pz();return Py("updateGlobalSetting",async()=>{await Hj(),console.log(ds.value);const r=await Gj();e.conf=r;const a=await Oy(r);e.quickMovePaths=a.filter(i=>{var o,l;return(l=(o=i==null?void 0:i.dir)==null?void 0:o.trim)==null?void 0:l.call(o)}),I7(e)}),Py("returnToIIB",async()=>{const r=e.conf;if(!r)return;const a=r.global_setting;if(!a.outdir_txt2img_samples&&!a.outdir_img2img_samples)return;const i=new Set(e.quickMovePaths.map(l=>l.key));if(i.has("outdir_txt2img_samples")&&i.has("outdir_img2img_samples"))return;const o=await Oy(r);e.quickMovePaths=o.filter(l=>{var s,u;return(u=(s=l==null?void 0:l.dir)==null?void 0:s.trim)==null?void 0:u.call(s)})}),Re(async()=>{k7&&M7(),$_.emit("updateGlobalSetting")}),(r,a)=>{const i=rn;return Xe(),Xt(i,{loading:!xe(n).isIdle},{default:_t(()=>[x(T7)]),_:1},8,["loading"])}}});function $7(t){return typeof t=="object"&&t!==null}function Dy(t,e){return t=$7(t)?t:Object.create(null),new Proxy(t,{get(n,r,a){return r==="key"?Reflect.get(n,r,a):Reflect.get(n,r,a)||Reflect.get(e,r,a)}})}function R7(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function L7(t,e,n){return e.slice(0,-1).reduce((r,a)=>/^(__proto__)$/.test(a)?{}:r[a]=r[a]||{},t)[e[e.length-1]]=n,t}function D7(t,e){return e.reduce((n,r)=>{const a=r.split(".");return L7(n,a,R7(t,a))},{})}function Fy(t,{storage:e,serializer:n,key:r,debug:a}){try{const i=e==null?void 0:e.getItem(r);i&&t.$patch(n==null?void 0:n.deserialize(i))}catch(i){a&&console.error(i)}}function By(t,{storage:e,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?D7(t,a):t;e.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function F7(t={}){return e=>{const{auto:n=!1}=t,{options:{persist:r=n},store:a}=e;if(!r)return;const i=(Array.isArray(r)?r.map(o=>Dy(o,t)):[Dy(r,t)]).map(({storage:o=localStorage,beforeRestore:l=null,afterRestore:s=null,serializer:u={serialize:JSON.stringify,deserialize:JSON.parse},key:f=a.$id,paths:v=null,debug:h=!1})=>{var g;return{storage:o,beforeRestore:l,afterRestore:s,serializer:u,key:((g=t.key)!=null?g:c=>c)(f),paths:v,debug:h}});a.$persist=()=>{i.forEach(o=>{By(a.$state,o)})},a.$hydrate=({runHooks:o=!0}={})=>{i.forEach(l=>{const{beforeRestore:s,afterRestore:u}=l;o&&(s==null||s(e)),Fy(a,l),o&&(u==null||u(e))})},i.forEach(o=>{const{beforeRestore:l,afterRestore:s}=o;l==null||l(e),Fy(a,o),s==null||s(e),a.$subscribe((u,f)=>{By(f,o)},{detached:!0})})}}var B7=F7();const H_=Qj();H_.use(B7);AP(N7).use(H_).use(wv).mount("#zanllp_dev_gradio_fe");const j7=Qz(),z7=()=>{try{return parent.location.search.includes("theme=dark")}catch{}return!1};pe([j7,z7],async([t,e])=>{await ou();const n=document.getElementsByTagName("html")[0];if(t||e){document.body.classList.add("dark");const r=document.createElement("style"),{default:a}=await hr(()=>import("./antd.dark-35e9b327.js"),[]);r.innerHTML=a,r.setAttribute("antd-dark",""),n.appendChild(r)}else document.body.classList.remove("dark"),Array.from(n.querySelectorAll("style[antd-dark]")).forEach(r=>r.remove())},{immediate:!0});export{W as $,Xv as A,vi as B,Ga as C,xN as D,k7 as E,Z7 as F,W7 as G,zx as H,R9 as I,$9 as J,V7 as K,vs as L,Vr as M,ba as N,as as O,J as P,rn as Q,Bt as R,t_ as S,GN as T,At as U,Tn as V,Po as W,uu as X,No as Y,gi as Z,ut as _,T as a,$n as a$,ge as a0,Ci as a1,rr as a2,yt as a3,Ns as a4,ir as a5,Is as a6,or as a7,yT as a8,_T as a9,t$ as aA,Ce as aB,qc as aC,L9 as aD,Vj as aE,Ao as aF,W_ as aG,w_ as aH,Ye as aI,n9 as aJ,ct as aK,rm as aL,Qe as aM,e9 as aN,mI as aO,MT as aP,nh as aQ,Tw as aR,KD as aS,Ds as aT,g$ as aU,Zf as aV,_e as aW,ho as aX,F$ as aY,vE as aZ,CP as a_,id as aa,fT as ab,q0 as ac,Y0 as ad,Jl as ae,vd as af,lt as ag,z_ as ah,Ae as ai,K as aj,XR as ak,br as al,e_ as am,Yc as an,S_ as ao,Kr as ap,qj as aq,ya as ar,$_ as as,pb as at,hb as au,Bf as av,Re as aw,Ke as ax,xt as ay,Yl as az,ze as b,x7 as b$,st as b0,cE as b1,Q7 as b2,mi as b3,ke as b4,V$ as b5,Id as b6,_o as b7,bw as b8,_$ as b9,Da as bA,X7 as bB,UN as bC,ux as bD,K7 as bE,U7 as bF,Gf as bG,Hc as bH,Y7 as bI,s0 as bJ,eC as bK,En as bL,Wn as bM,wC as bN,pz as bO,Py as bP,j9 as bQ,TN as bR,h4 as bS,q7 as bT,hI as bU,l0 as bV,tr as bW,N9 as bX,V9 as bY,Zw as bZ,Oo as b_,C$ as ba,WR as bb,NR as bc,SC as bd,nr as be,Kd as bf,Us as bg,Do as bh,TO as bi,VR as bj,Ks as bk,CL as bl,kl as bm,rt as bn,Nt as bo,BM as bp,Jt as bq,J7 as br,Jw as bs,Qw as bt,Dw as bu,Le as bv,Gt as bw,Sn as bx,Iw as by,kO as bz,x as c,az as c0,sz as c1,Si as c2,r$ as c3,VN as c4,JN as c5,BN as c6,t9 as c7,zn as c8,Ed as c9,Cs as cA,DS as cB,_b as cC,yx as cD,Wl as cE,gx as cF,H7 as cG,Gc as cH,G7 as cI,xy as cJ,bF as cK,Xf as cL,Tm as cM,_d as ca,lb as cb,bt as cc,kT as cd,sd as ce,yz as cf,k_ as cg,my as ch,F9 as ci,Av as cj,D9 as ck,uz as cl,J1 as cm,ou as cn,gz as co,z9 as cp,di as cq,a7 as cr,$y as cs,W9 as ct,Q1 as cu,bz as cv,M9 as cw,aI as cx,k9 as cy,QS as cz,fe as d,jn as e,pn as f,Wr as g,te as h,He as i,Bd as j,Wo as k,pe as l,Xt as m,_t as n,Xe as o,xn as p,Ln as q,xe as r,tt as s,B9 as t,Ze as u,gr as v,ks as w,Fn as x,dn as y,De as z}; + */let T_;const su=t=>T_=t,I_=Symbol();function yf(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var ro;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(ro||(ro={}));function Qj(){const t=Of(!0),e=t.run(()=>W({}));let n=[],r=[];const a=Cs({install(i){su(a),a._a=i,i.provide(I_,a),i.config.globalProperties.$pinia=a,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!Jj?r.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return a}const A_=()=>{};function Sy(t,e,n,r=A_){t.push(e);const a=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),r())};return!n&&Ef()&&Gy(a),a}function La(t,...e){t.slice().forEach(n=>{n(...e)})}const Zj=t=>t();function bf(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,r)=>t.set(r,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],a=t[n];yf(a)&&yf(r)&&t.hasOwnProperty(n)&&!tt(r)&&!wr(r)?t[n]=bf(a,r):t[n]=r}return t}const ez=Symbol();function tz(t){return!yf(t)||!t.hasOwnProperty(ez)}const{assign:Rr}=Object;function nz(t){return!!(tt(t)&&t.effect)}function rz(t,e,n,r){const{state:a,actions:i,getters:o}=e,l=n.state.value[t];let s;function u(){l||(n.state.value[t]=a?a():{});const f=lb(n.state.value[t]);return Rr(f,i,Object.keys(o||{}).reduce((v,h)=>(v[h]=Cs(K(()=>{su(n);const g=n._s.get(t);return o[h].call(g,g)})),v),{}))}return s=M_(t,u,e,n,r,!0),s}function M_(t,e,n={},r,a,i){let o;const l=Rr({actions:{}},n),s={deep:!0};let u,f,v=[],h=[],g;const c=r.state.value[t];!i&&!c&&(r.state.value[t]={}),W({});let d;function m(I){let P;u=f=!1,typeof I=="function"?(I(r.state.value[t]),P={type:ro.patchFunction,storeId:t,events:g}):(bf(r.state.value[t],I),P={type:ro.patchObject,payload:I,storeId:t,events:g});const k=d=Symbol();Ke().then(()=>{d===k&&(u=!0)}),f=!0,La(v,P,r.state.value[t])}const p=i?function(){const{state:P}=n,k=P?P():{};this.$patch(L=>{Rr(L,k)})}:A_;function y(){o.stop(),v=[],h=[],r._s.delete(t)}function b(I,P){return function(){su(r);const k=Array.from(arguments),L=[],F=[];function j(M){L.push(M)}function z(M){F.push(M)}La(h,{args:k,name:I,store:C,after:j,onError:z});let $;try{$=P.apply(this&&this.$id===t?this:C,k)}catch(M){throw La(F,M),M}return $ instanceof Promise?$.then(M=>(La(L,M),M)).catch(M=>(La(F,M),Promise.reject(M))):(La(L,$),$)}}const w={_p:r,$id:t,$onAction:Sy.bind(null,h),$patch:m,$reset:p,$subscribe(I,P={}){const k=Sy(v,I,P.detached,()=>L()),L=o.run(()=>pe(()=>r.state.value[t],F=>{(P.flush==="sync"?f:u)&&I({storeId:t,type:ro.direct,events:g},F)},Rr({},s,P)));return k},$dispose:y},C=rt(w);r._s.set(t,C);const _=r._a&&r._a.runWithContext||Zj,O=r._e.run(()=>(o=Of(),_(()=>o.run(e))));for(const I in O){const P=O[I];if(tt(P)&&!nz(P)||wr(P))i||(c&&tz(P)&&(tt(P)?P.value=c[I]:bf(P,c[I])),r.state.value[t][I]=P);else if(typeof P=="function"){const k=b(I,P);O[I]=k,l.actions[I]=P}}return Rr(C,O),Rr(ke(C),O),Object.defineProperty(C,"$state",{get:()=>r.state.value[t],set:I=>{m(P=>{Rr(P,I)})}}),r._p.forEach(I=>{Rr(C,o.run(()=>I({store:C,app:r._a,pinia:r,options:l})))}),c&&i&&n.hydrate&&n.hydrate(C.$state,c),u=!0,f=!0,C}function k_(t,e,n){let r,a;const i=typeof e=="function";typeof t=="string"?(r=t,a=i?n:e):(a=t,r=t.id);function o(l,s){const u=Ex();return l=l||(u?Ye(I_,null):null),l&&su(l),l=T_,l._s.has(r)||(i?M_(r,e,a,l):rz(r,a,l)),l._s.get(r)}return o.$id=r,o}function az(t){{t=ke(t);const e={};for(const n in t){const r=t[n];(tt(r)||wr(r))&&(e[n]=Kt(t,n))}return e}}const iz=t=>Yc({...t,name:typeof t.name=="string"?t.name:t.nameFallbackStr??""}),oz=t=>({...t,panes:t.panes.map(iz)}),Wo=k_("useGlobalStore",()=>{const t=W(),e=W([]),n=W(!0),r=W(512),a=W(Av.CREATED_TIME_DESC),i=W(256),o=()=>({type:"empty",name:Ae("emptyStartPage"),key:br()}),l=W([]);Re(()=>{const b=o();l.value.push({panes:[b],key:b.key,id:br()})});const s=W(),u=W(new Array),f=Date.now(),v=W(),h=()=>{var w;const b=ke(l.value).map(oz);((w=v.value)==null?void 0:w[0].time)!==f?v.value=[{tabs:b,time:f},...v.value??[]]:v.value[0].tabs=b,v.value=v.value.slice(0,2)},g=async(b,w,C)=>{let _=l.value.map(I=>I.panes).flat().find(I=>I.type==="tag-search-matched-image-grid"&&I.id===w);if(_){_.selectedTagIds=Yc(C);return}else _={type:"tag-search-matched-image-grid",id:w,selectedTagIds:Yc(C),key:br(),name:Ae("searchResults")};const O=l.value[b+1];O?(O.key=_.key,O.panes.push(_)):l.value.push({panes:[_],key:_.key,id:br()})},c=W(Y1());pe(c,b=>wv.global.locale.value=b);const d=W(!1),m=W({delete:""}),p=K(()=>{const b=["outdir_extras_samples","outdir_save","outdir_txt2img_samples","outdir_img2img_samples","outdir_img2img_grids","outdir_txt2img_grids"],w=e.value.filter(C=>b.includes(C.key)).map(C=>[C.zh,C.dir]);return Object.fromEntries(w)}),y=rt({deleteOneOnly:!1});return{defaultSortingMethod:a,defaultGridCellWidth:i,pathAliasMap:p,createEmptyPane:o,lang:c,tabList:l,conf:t,quickMovePaths:e,enableThumbnail:n,dragingTab:s,saveRecord:h,recent:u,tabListHistoryRecord:v,gridThumbnailResolution:r,longPressOpenContextMenu:d,openTagSearchMatchedImageGridInRight:g,onlyFoldersAndImages:W(!0),fullscreenPreviewInitialUrl:W(""),shortcut:m,dontShowAgain:W(!1),dontShowAgainNewImgOpts:W(!1),ignoredConfirmActions:y}},{persist:{paths:["dontShowAgainNewImgOpts","defaultSortingMethod","defaultGridCellWidth","dontShowAgain","lang","enableThumbnail","tabListHistoryRecord","recent","gridThumbnailResolution","longPressOpenContextMenu","onlyFoldersAndImages","shortcut","ignoredConfirmActions"]}}),ao=encodeURIComponent,vs=(t,e=!1)=>`${Iv.value}/file?path=${ao(t.fullpath)}&t=${ao(t.date)}${e?`&disposition=${ao(t.name)}`:""}`,xy=(t,e="512x512")=>`${Iv.value}/image-thumbnail?path=${ao(t.fullpath)}&size=${e}&t=${ao(t.date)}`,lz=t=>typeof t=="object"&&t.__id==="FileTransferData",sz=t=>{var n;const e=JSON.parse(((n=t.dataTransfer)==null?void 0:n.getData("text"))??"{}");return lz(e)?e:null},F9=t=>Q1(t,"fullpath");function uz(t){var r;if(typeof t!="string")return!1;const e=[".jpg",".jpeg",".png",".gif",".bmp",".webp"],n=(r=t.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&e.includes(`.${n}`)}function N_(){try{return parent.window.gradioApp()}catch{}const t=parent.document.getElementsByTagName("gradio-app"),e=t.length==0?null:t[0].shadowRoot;return e||document}const cz=()=>{const t=N_().querySelectorAll("#tabs > .tabitem[id^=tab_]");return Array.from(t).findIndex(e=>e.id.includes("infinite-image-browsing"))},fz=()=>{try{N_().querySelector("#tabs").querySelectorAll("button")[cz()].click()}catch(t){console.error(t)}},dz=async(t,e=100,n=1e3)=>new Promise(r=>{const a=(i=0)=>{const o=t();o!=null||i>n/e?r(o):setTimeout(()=>a(++i),e)};a()}),vz=(t,...e)=>e.reduce((n,r)=>(n[r]=t==null?void 0:t[r],n),{}),pz=()=>rt(new Io(-1,0,-1,"throw")),B9=async(t,e)=>{try{if(navigator.clipboard)await navigator.clipboard.writeText(t);else{const n=document.createElement("input");n.value=t,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)}ya.success(e??Ae("copied"))}catch{ya.error("copy failed. maybe it's non-secure environment")}},{useEventListen:Py,eventEmitter:$_}=J1();function j9(t){let e=null,n=!1;return async function(...r){if(n)return e;n=!0;try{return e=t.apply(this,r),await e}finally{n=!1}}}function hz(t){const e=parent.location.href,n=new URLSearchParams(parent.location.search);t.forEach(a=>{n.delete(a)});const r=`${e.split("?")[0]}${n.size?"?":""}${n.toString()}`;return parent.history.pushState(null,"",r),r}const mz=t=>new Promise((e,n)=>{const r=new Image;r.onload=()=>e(r),r.onerror=a=>n(a),r.src=t});function gz(t){return!!/^(?:\/|[a-z]:\/)/i.test(di(t))}function di(t){if(!t)return"";t=t.replace(/\\/g,"/"),t=t.replace(/\/+/g,"/");const e=t.split("/"),n=[];for(let i=0;i{const n=gz(t)?t:di(yz(e,t));return di(n)},z9=t=>{t=di(t);const e=t.split("/").filter(n=>n);return e[0].endsWith(":")&&(e[0]=e[0]+"/"),e},Oy=async({global_setting:t,sd_cwd:e,home:n,extra_paths:r,cwd:a})=>{const o={...vz(t,"outdir_grids","outdir_extras_samples","outdir_img2img_grids","outdir_img2img_samples","outdir_grids","outdir_extras_samples","outdir_samples","outdir_txt2img_grids","outdir_txt2img_samples","outdir_save"),cwd:e,home:n,desktop:`${n}/Desktop`};Object.keys(o).forEach(h=>{const g=h;if(o[g])try{o[g]=bz(o[g],e)}catch(c){console.error(c)}});const l=await qj(Object.values(o).filter(h=>h)),s={outdir_txt2img_samples:Ae("t2i"),outdir_img2img_samples:Ae("i2i"),outdir_save:Ae("saveButtonSavesTo"),outdir_extras_samples:Ae("extra"),outdir_grids:Ae("gridImage"),outdir_img2img_grids:Ae("i2i-grid"),outdir_samples:Ae("image"),outdir_txt2img_grids:Ae("t2i-grid"),cwd:Ae("workingFolder"),home:"home",desktop:Ae("desktop")},u={home:n,[Ae("desktop")]:o.desktop,[Ae("workingFolder")]:a,[Ae("t2i")]:o.outdir_txt2img_samples,[Ae("i2i")]:o.outdir_img2img_samples},f=h=>{h=di(h);const g=[];for(const[c,d]of Object.entries(u))c&&d&&g.push(h.replace(d,"$"+c));return g.sort((c,d)=>c.length-d.length)[0]},v=Object.keys(s).filter(h=>l[o[h]]).map(h=>{const g=h;return{key:g,zh:s[g],dir:o[g],can_delete:!1}}).concat(r.map(h=>({key:h.path,zh:f(h.path),dir:h.path,can_delete:!0})));return Q1(v,"key")};const R_={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,e)=>(t[e.id]=e)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,e){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=e},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,e){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===e?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,e),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=e,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[e])},onSplitterDblClick(t,e){let n=0;this.panes=this.panes.map((r,a)=>(r.size=a===e?r.max:r.min,a!==e&&(n+=r.min),r)),this.panes[e].size-=n,this.$emit("pane-maximize",this.panes[e]),this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},onPaneClick(t,e){this.$emit("pane-click",this.indexedPanes[e])},getCurrentMouseDrag(t){const e=this.container.getBoundingClientRect(),{clientX:n,clientY:r}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:n-e.left,y:r-e.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const e=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=e-t),t*100/e},calculatePanesSize(t){const e=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(e),nextPanesSize:this.sumNextPanesSize(e),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),a=100-(this.pushOtherPanes?0:n.nextPanesSize),i=Math.max(Math.min(this.getCurrentDragPercentage(t),a),r);let o=[e,e+1],l=this.panes[o[0]]||null,s=this.panes[o[1]]||null;const u=l.max<100&&i>=l.max+n.prevPanesSize,f=s.max<100&&i<=100-(s.max+this.sumNextPanesSize(e+1));if(u||f){u?(l.size=l.max,s.size=Math.max(100-l.max-n.prevPanesSize-n.nextPanesSize,0)):(l.size=Math.max(100-s.max-n.prevPanesSize-this.sumNextPanesSize(e+1),0),s.size=s.max);return}if(this.pushOtherPanes){const v=this.doPushOtherPanes(n,i);if(!v)return;({sums:n,panesToResize:o}=v),l=this.panes[o[0]]||null,s=this.panes[o[1]]||null}l!==null&&(l.size=Math.min(Math.max(i-n.prevPanesSize-n.prevReachedMinPanes,l.min),l.max)),s!==null&&(s.size=Math.min(Math.max(100-i-n.nextPanesSize-n.nextReachedMinPanes,s.min),s.max))},doPushOtherPanes(t,e){const n=this.touch.activeSplitter,r=[n,n+1];return e{i>r[0]&&i<=n&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),t.prevPanesSize=this.sumPrevPanesSize(r[0]),r[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((a,i)=>{i>0&&i<=n&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),this.panes[r[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):e>100-t.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,t.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach((a,i)=>{i>n&&i{i=n+1&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),this.panes[r[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:r}},sumPrevPanesSize(t){return this.panes.reduce((e,n,r)=>e+(re+(r>t+1?n.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(e=>e.indexe.min)||{}},findNextExpandedPane(t){return this.panes.find(e=>e.index>t+1&&e.size>e.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const e=t.classList.contains("splitpanes__pane"),n=t.classList.contains("splitpanes__splitter");!e&&!n&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(t,e,n=!1){const r=t-1,a=document.createElement("div");a.classList.add("splitpanes__splitter"),n||(a.onmousedown=i=>this.onMouseDown(i,r),typeof window<"u"&&"ontouchstart"in window&&(a.ontouchstart=i=>this.onMouseDown(i,r)),a.onclick=i=>this.onSplitterClick(i,r+1)),this.dblClickSplitter&&(a.ondblclick=i=>this.onSplitterDblClick(i,r+1)),e.parentNode.insertBefore(a,e)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let e=0;t.forEach(n=>{n.className.includes("splitpanes__pane")&&(!e&&this.firstSplitter?this.addSplitter(e,n,!0):e&&this.addSplitter(e,n),e++)})},requestUpdate({target:t,...e}){const n=this.indexedPanes[t._.uid];Object.entries(e).forEach(([r,a])=>n[r]=a)},onPaneAdd(t){let e=-1;Array.from(t.$el.parentNode.children).some(a=>(a.className.includes("splitpanes__pane")&&e++,a===t.$el));const n=parseFloat(t.minSize),r=parseFloat(t.maxSize);this.panes.splice(e,0,{id:t._.uid,index:e,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((a,i)=>a.index=i),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},onPaneRemove(t){const e=this.panes.findIndex(r=>r.id===t._.uid),n=this.panes.splice(e,1)[0];this.panes.forEach((r,a)=>r.index=a),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:e}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(e=>e.givenSize!==null||e.min||e.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const t=100/this.panesCount;let e=0;const n=[],r=[];this.panes.forEach(a=>{a.size=Math.max(Math.min(t,a.max),a.min),e-=a.size,a.size>=a.max&&n.push(a.id),a.size<=a.min&&r.push(a.id)}),e>.1&&this.readjustSizes(e,n,r)},initialPanesSizing(){let t=100;const e=[],n=[];let r=0;this.panes.forEach(i=>{t-=i.size,i.size!==null&&r++,i.size>=i.max&&e.push(i.id),i.size<=i.min&&n.push(i.id)});let a=100;t>.1&&(this.panes.forEach(i=>{i.size===null&&(i.size=Math.max(Math.min(t/(this.panesCount-r),i.max),i.min)),a-=i.size}),a>.1&&this.readjustSizes(t,e,n))},equalizeAfterAddOrRemove({addedPane:t,removedPane:e}={}){let n=100/this.panesCount,r=0;const a=[],i=[];t&&t.givenSize!==null&&(n=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{r-=o.size,o.size>=o.max&&a.push(o.id),o.size<=o.min&&i.push(o.id)}),!(Math.abs(r)<.1)&&(this.panes.forEach(o=>{t&&t.givenSize!==null&&t.id===o.id||(o.size=Math.max(Math.min(n,o.max),o.min)),r-=o.size,o.size>=o.max&&a.push(o.id),o.size<=o.min&&i.push(o.id)}),r>.1&&this.readjustSizes(r,a,i))},readjustSizes(t,e,n){let r;t>0?r=t/(this.panesCount-e.length):r=t/(this.panesCount-n.length),this.panes.forEach((a,i)=>{if(t>0&&!e.includes(a.id)){const o=Math.max(Math.min(a.size+r,a.max),a.min),l=o-a.size;t-=l,a.size=o}else if(!n.includes(a.id)){const o=Math.max(Math.min(a.size+r,a.max),a.min),l=o-a.size;t-=l,a.size=o}a.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[a.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((e,n)=>{e.ondblclick=t?r=>this.onSplitterDblClick(r,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return Kr("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},wz=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},Cz={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function _z(t,e,n,r,a,i){return Xe(),dn("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=o=>i.onPaneClick(o,t._.uid)),style:vi(t.style)},[Wl(t.$slots,"default")],4)}const wf=wz(Cz,[["render",_z]]);function Mv(t){return Ef()?(Gy(t),!0):!1}function kv(t){return typeof t=="function"?t():xe(t)}const L_=typeof window<"u",Nv=()=>{};function Sz(t,e){function n(...r){return new Promise((a,i)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(a).catch(i)})}return n}const D_=t=>t();function xz(t=D_){const e=W(!0);function n(){e.value=!1}function r(){e.value=!0}const a=(...i)=>{e.value&&t(...i)};return{isActive:ws(e),pause:n,resume:r,eventFilter:a}}function Pz(...t){if(t.length!==1)return Kt(...t);const e=t[0];return typeof e=="function"?ws(zS(()=>({get:e,set:Nv}))):W(e)}function Oz(t,e=!0){bt()?Re(t):e?t():Ke(t)}var Ey=Object.getOwnPropertySymbols,Ez=Object.prototype.hasOwnProperty,Tz=Object.prototype.propertyIsEnumerable,Iz=(t,e)=>{var n={};for(var r in t)Ez.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Ey)for(var r of Ey(t))e.indexOf(r)<0&&Tz.call(t,r)&&(n[r]=t[r]);return n};function Az(t,e,n={}){const r=n,{eventFilter:a=D_}=r,i=Iz(r,["eventFilter"]);return pe(t,Sz(a,e),i)}var Mz=Object.defineProperty,kz=Object.defineProperties,Nz=Object.getOwnPropertyDescriptors,ps=Object.getOwnPropertySymbols,F_=Object.prototype.hasOwnProperty,B_=Object.prototype.propertyIsEnumerable,Ty=(t,e,n)=>e in t?Mz(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$z=(t,e)=>{for(var n in e||(e={}))F_.call(e,n)&&Ty(t,n,e[n]);if(ps)for(var n of ps(e))B_.call(e,n)&&Ty(t,n,e[n]);return t},Rz=(t,e)=>kz(t,Nz(e)),Lz=(t,e)=>{var n={};for(var r in t)F_.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&ps)for(var r of ps(t))e.indexOf(r)<0&&B_.call(t,r)&&(n[r]=t[r]);return n};function Dz(t,e,n={}){const r=n,{eventFilter:a}=r,i=Lz(r,["eventFilter"]),{eventFilter:o,pause:l,resume:s,isActive:u}=xz(a);return{stop:Az(t,e,Rz($z({},i),{eventFilter:o})),pause:l,resume:s,isActive:u}}function Fz(t,e,n){let r;tt(n)?r={evaluating:n}:r=n||{};const{lazy:a=!1,evaluating:i=void 0,shallow:o=!0,onError:l=Nv}=r,s=W(!a),u=o?$n(e):W(e);let f=0;return st(async v=>{if(!s.value)return;f++;const h=f;let g=!1;i&&Promise.resolve().then(()=>{i.value=!0});try{const c=await t(d=>{v(()=>{i&&(i.value=!1),g||d()})});h===f&&(u.value=c)}catch(c){l(c)}finally{i&&h===f&&(i.value=!1),g=!0}}),a?K(()=>(s.value=!0,u.value)):u}function Hr(t){var e;const n=kv(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Sr=L_?window:void 0,Bz=L_?window.document:void 0;function Pn(...t){let e,n,r,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,a]=t,e=Sr):[e,n,r,a]=t,!e)return Nv;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(f=>f()),i.length=0},l=(f,v,h,g)=>(f.addEventListener(v,h,g),()=>f.removeEventListener(v,h,g)),s=pe(()=>[Hr(e),kv(a)],([f,v])=>{o(),f&&i.push(...n.flatMap(h=>r.map(g=>l(f,h,g,v))))},{immediate:!0,flush:"post"}),u=()=>{s(),o()};return Mv(u),u}const jz=500;function W9(t,e,n){var r,a;const i=K(()=>Hr(t));let o;function l(){o&&(clearTimeout(o),o=void 0)}function s(f){var v,h,g,c;(v=n==null?void 0:n.modifiers)!=null&&v.self&&f.target!==i.value||(l(),(h=n==null?void 0:n.modifiers)!=null&&h.prevent&&f.preventDefault(),(g=n==null?void 0:n.modifiers)!=null&&g.stop&&f.stopPropagation(),o=setTimeout(()=>e(f),(c=n==null?void 0:n.delay)!=null?c:jz))}const u={capture:(r=n==null?void 0:n.modifiers)==null?void 0:r.capture,once:(a=n==null?void 0:n.modifiers)==null?void 0:a.once};Pn(i,"pointerdown",s,u),Pn(i,"pointerup",l,u),Pn(i,"pointerleave",l,u)}function zz(){const t=W(!1);return bt()&&Re(()=>{t.value=!0}),t}function j_(t){const e=zz();return K(()=>(e.value,!!t()))}function Wz(t,e={}){const{window:n=Sr}=e,r=j_(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const i=W(!1),o=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",l):a.removeListener(l))},l=()=>{r.value&&(o(),a=n.matchMedia(Pz(t).value),i.value=!!(a!=null&&a.matches),a&&("addEventListener"in a?a.addEventListener("change",l):a.addListener(l)))};return st(l),Mv(()=>o()),i}const wl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Cl="__vueuse_ssr_handlers__",Vz=Hz();function Hz(){return Cl in wl||(wl[Cl]=wl[Cl]||{}),wl[Cl]}function Uz(t,e){return Vz[t]||e}function Kz(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}var Gz=Object.defineProperty,Iy=Object.getOwnPropertySymbols,qz=Object.prototype.hasOwnProperty,Yz=Object.prototype.propertyIsEnumerable,Ay=(t,e,n)=>e in t?Gz(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,My=(t,e)=>{for(var n in e||(e={}))qz.call(e,n)&&Ay(t,n,e[n]);if(Iy)for(var n of Iy(e))Yz.call(e,n)&&Ay(t,n,e[n]);return t};const Xz={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},ky="vueuse-storage";function Jz(t,e,n,r={}){var a;const{flush:i="pre",deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:s=!0,mergeDefaults:u=!1,shallow:f,window:v=Sr,eventFilter:h,onError:g=I=>{console.error(I)}}=r,c=(f?$n:W)(e);if(!n)try{n=Uz("getDefaultStorage",()=>{var I;return(I=Sr)==null?void 0:I.localStorage})()}catch(I){g(I)}if(!n)return c;const d=kv(e),m=Kz(d),p=(a=r.serializer)!=null?a:Xz[m],{pause:y,resume:b}=Dz(c,()=>w(c.value),{flush:i,deep:o,eventFilter:h});return v&&l&&(Pn(v,"storage",O),Pn(v,ky,_)),O(),c;function w(I){try{if(I==null)n.removeItem(t);else{const P=p.write(I),k=n.getItem(t);k!==P&&(n.setItem(t,P),v&&v.dispatchEvent(new CustomEvent(ky,{detail:{key:t,oldValue:k,newValue:P,storageArea:n}})))}}catch(P){g(P)}}function C(I){const P=I?I.newValue:n.getItem(t);if(P==null)return s&&d!==null&&n.setItem(t,p.write(d)),d;if(!I&&u){const k=p.read(P);return typeof u=="function"?u(k,d):m==="object"&&!Array.isArray(k)?My(My({},d),k):k}else return typeof P!="string"?P:p.read(P)}function _(I){O(I.detail)}function O(I){if(!(I&&I.storageArea!==n)){if(I&&I.key==null){c.value=d;return}if(!(I&&I.key!==t)){y();try{c.value=C(I)}catch(P){g(P)}finally{I?Ke(b):b()}}}}}function Qz(t){return Wz("(prefers-color-scheme: dark)",t)}function Zz({document:t=Bz}={}){if(!t)return W("visible");const e=W(t.visibilityState);return Pn(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var Ny=Object.getOwnPropertySymbols,e7=Object.prototype.hasOwnProperty,t7=Object.prototype.propertyIsEnumerable,n7=(t,e)=>{var n={};for(var r in t)e7.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Ny)for(var r of Ny(t))e.indexOf(r)<0&&t7.call(t,r)&&(n[r]=t[r]);return n};function r7(t,e,n={}){const r=n,{window:a=Sr}=r,i=n7(r,["window"]);let o;const l=j_(()=>a&&"ResizeObserver"in a),s=()=>{o&&(o.disconnect(),o=void 0)},u=K(()=>Array.isArray(t)?t.map(h=>Hr(h)):[Hr(t)]),f=pe(u,h=>{if(s(),l.value&&a){o=new ResizeObserver(e);for(const g of h)g&&o.observe(g,i)}},{immediate:!0,flush:"post",deep:!0}),v=()=>{s(),f()};return Mv(v),{isSupported:l,stop:v}}function a7(t,e={width:0,height:0},n={}){const{window:r=Sr,box:a="content-box"}=n,i=K(()=>{var s,u;return(u=(s=Hr(t))==null?void 0:s.namespaceURI)==null?void 0:u.includes("svg")}),o=W(e.width),l=W(e.height);return r7(t,([s])=>{const u=a==="border-box"?s.borderBoxSize:a==="content-box"?s.contentBoxSize:s.devicePixelContentBoxSize;if(r&&i.value){const f=Hr(t);if(f){const v=r.getComputedStyle(f);o.value=parseFloat(v.width),l.value=parseFloat(v.height)}}else if(u){const f=Array.isArray(u)?u:[u];o.value=f.reduce((v,{inlineSize:h})=>v+h,0),l.value=f.reduce((v,{blockSize:h})=>v+h,0)}else o.value=s.contentRect.width,l.value=s.contentRect.height},n),pe(()=>Hr(t),s=>{o.value=s?e.width:0,l.value=s?e.height:0}),{width:o,height:l}}function V9(t,e,n={}){const{window:r=Sr}=n;return Jz(t,e,r==null?void 0:r.localStorage,n)}const i7={page:t=>[t.pageX,t.pageY],client:t=>[t.clientX,t.clientY],screen:t=>[t.screenX,t.screenY],movement:t=>t instanceof Touch?null:[t.movementX,t.movementY]};function o7(t={}){const{type:e="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:a={x:0,y:0},window:i=Sr,target:o=i,eventFilter:l}=t,s=W(a.x),u=W(a.y),f=W(null),v=typeof e=="function"?e:i7[e],h=p=>{const y=v(p);y&&([s.value,u.value]=y,f.value="mouse")},g=p=>{if(p.touches.length>0){const y=v(p.touches[0]);y&&([s.value,u.value]=y,f.value="touch")}},c=()=>{s.value=a.x,u.value=a.y},d=l?p=>l(()=>h(p),{}):p=>h(p),m=l?p=>l(()=>g(p),{}):p=>g(p);return o&&(Pn(o,"mousemove",d,{passive:!0}),Pn(o,"dragover",d,{passive:!0}),n&&e!=="movement"&&(Pn(o,"touchstart",m,{passive:!0}),Pn(o,"touchmove",m,{passive:!0}),r&&Pn(o,"touchend",c,{passive:!0}))),{x:s,y:u,sourceType:f}}function $y(t,e={}){const{handleOutside:n=!0,window:r=Sr}=e,{x:a,y:i,sourceType:o}=o7(e),l=W(t??(r==null?void 0:r.document.body)),s=W(0),u=W(0),f=W(0),v=W(0),h=W(0),g=W(0),c=W(!0);let d=()=>{};return r&&(d=pe([l,a,i],()=>{const m=Hr(l);if(!m)return;const{left:p,top:y,width:b,height:w}=m.getBoundingClientRect();f.value=p+r.pageXOffset,v.value=y+r.pageYOffset,h.value=w,g.value=b;const C=a.value-f.value,_=i.value-v.value;c.value=b===0||w===0||C<0||_<0||C>b||_>w,(n||!c.value)&&(s.value=C,u.value=_)},{immediate:!0}),Pn(document,"mouseleave",()=>{c.value=!0})),{x:a,y:i,sourceType:o,elementX:s,elementY:u,elementPositionX:f,elementPositionY:v,elementHeight:h,elementWidth:g,isOutside:c,stop:d}}const l7={style:{position:"relative"}},s7=fe({__name:"edgeTrigger",props:{tabIdx:{}},setup(t){const e=t,n=Wo(),r=W(),a=W(),{isOutside:i}=$y(a),{isOutside:o}=$y(r),l=K(()=>!i.value&&!!n.dragingTab),s=K(()=>!o.value&&!!n.dragingTab&&!l.value),u=(f,v)=>{var g,c,d,m;const h=JSON.parse(((g=f.dataTransfer)==null?void 0:g.getData("text"))??"{}");if(console.log("on-drop",v,h),(h==null?void 0:h.from)==="tab-drag"){if(f.stopPropagation(),n.dragingTab=void 0,v==="insert"&&h.tabIdx===e.tabIdx)return;const p=n.tabList,y=p[h.tabIdx].panes[h.paneIdx];p[h.tabIdx].panes.splice(h.paneIdx,1),v==="add-right"?(p[e.tabIdx].key=((c=p[e.tabIdx].panes[h.paneIdx-1])==null?void 0:c.key)??p[e.tabIdx].panes[0].key,p.splice(e.tabIdx+1,0,{panes:[y],key:y.key,id:br()})):(p[h.tabIdx].key=((d=p[h.tabIdx].panes[h.paneIdx-1])==null?void 0:d.key)??((m=p[h.tabIdx].panes[0])==null?void 0:m.key),p[e.tabIdx].panes.push(y),p[e.tabIdx].key=y.key),p[h.tabIdx].panes.length===0&&p.splice(h.tabIdx,1)}};return(f,v)=>(Xe(),dn("div",{class:ba(["wrap",{accept:s.value}]),ref_key:"trigger",ref:r,onDragover:v[2]||(v[2]=Ln(()=>{},["prevent"])),onDrop:v[3]||(v[3]=Ln(h=>u(h,"insert"),["prevent"]))},[xn("div",{class:ba(["trigger",{accept:l.value}]),ref_key:"edgeTrigger",ref:a,onDragover:v[0]||(v[0]=Ln(()=>{},["prevent"])),onDrop:v[1]||(v[1]=Ln(h=>u(h,"add-right"),["prevent"]))},null,34),xn("div",l7,[Wl(f.$slots,"default",{},void 0,!0)])],34))}});const uu=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},u7=uu(s7,[["__scopeId","data-v-10c5aba4"]]);const z_=k_("useImgSliStore",()=>{const t=W(!1),e=W(!1),n=W(!1),r=W(),a=W(),i=Wo(),o=K(()=>{var s;const l=i.tabList;for(const u of l)if(((s=u.panes.find(f=>f.key===u.key))==null?void 0:s.type)==="img-sli")return!0;return!1});return{drawerVisible:e,fileDragging:t,left:r,right:a,imgSliActived:o,opened:n}}),c7=t=>(pb("data-v-8c231997"),t=t(),hb(),t),f7={key:0,class:"dragging-port-wrap"},d7={class:"content"},v7={key:0,class:"img-wrap"},p7={key:1},h7=c7(()=>xn("div",{style:{padding:"16px"}},null,-1)),m7={key:0,class:"img-wrap"},g7={key:1},y7={class:"actions"},b7=fe({__name:"DraggingPort",setup(t){const e=z_(),n=Wo(),{left:r,right:a}=az(e),i=async(s,u)=>{const f=sz(s);if(f){const v=f.nodes[0];if(!uz(v.name))return;e[u]=v}},o=()=>{e.left=void 0,e.right=void 0,e.opened=!1},l=()=>{e_(r.value&&a.value);const s={type:"img-sli",left:r.value,right:a.value,name:`${Ae("imgCompare")} ( ${r.value.name} vs ${a.value.name})`,key:br()};n.tabList[0].panes.push(s),n.tabList[0].key=s.key};return(s,u)=>{const f=bF,v=Tn;return Xe(),Xt(or,null,{default:_t(()=>[(xe(e).fileDragging||xe(r)||xe(a)||xe(e).opened)&&!xe(e).imgSliActived?(Xe(),dn("div",f7,[xn("h2",null,gr(s.$t("imgCompare")),1),xn("div",d7,[xn("div",{class:"left port",onDragover:u[1]||(u[1]=Ln(()=>{},["prevent"])),onDrop:u[2]||(u[2]=Ln(h=>i(h,"left"),["prevent"]))},[xe(r)?(Xe(),dn("div",v7,[x(f,{src:xe(xy)(xe(r)),preview:{src:xe(vs)(xe(r))}},null,8,["src","preview"]),x(xe(Jl),{class:"close",onClick:u[0]||(u[0]=h=>r.value=void 0)})])):(Xe(),dn("div",p7,gr(s.$t("dragImageHere")),1))],32),h7,xn("div",{class:"right port",onDragover:u[4]||(u[4]=Ln(()=>{},["prevent"])),onDrop:u[5]||(u[5]=Ln(h=>i(h,"right"),["prevent"]))},[xe(a)?(Xe(),dn("div",m7,[x(f,{src:xe(xy)(xe(a)),preview:{src:xe(vs)(xe(a))}},null,8,["src","preview"]),x(xe(Jl),{class:"close",onClick:u[3]||(u[3]=h=>a.value=void 0)})])):(Xe(),dn("div",g7,gr(s.$t("dragImageHere")),1))],32)]),xn("div",y7,[xe(r)&&xe(a)?(Xe(),Xt(v,{key:0,type:"primary",onClick:u[6]||(u[6]=h=>xe(e).drawerVisible=!0)},{default:_t(()=>[Fn(gr(s.$t("confirm")),1)]),_:1})):Ga("",!0),xe(r)&&xe(a)?(Xe(),Xt(v,{key:1,type:"primary",onClick:l},{default:_t(()=>[Fn(gr(s.$t("confirm"))+"("+gr(s.$t("openInNewTab"))+")",1)]),_:1})):Ga("",!0),x(v,{style:{"margin-left":"16px"},onClick:o},{default:_t(()=>[Fn(gr(s.$t("close")),1)]),_:1})])])):Ga("",!0)]),_:1})}}});const w7=uu(b7,[["__scopeId","data-v-8c231997"]]),C7={class:"container"},_7=["src"],S7=fe({__name:"ImgSliSide",props:{side:{},containerWidth:{},img:{},maxEdge:{},percent:{}},setup(t){const e=t,n=K(()=>{let r="";const i=e.containerWidth;return e.side==="left"?r=`calc(50% - ${(e.percent-50)/100*i}px)`:r=`calc(-50% - ${(e.percent-50)/100*i+4}px)`,`${e.maxEdge==="width"?"width:100%":"height:100%"};transform: translate(${r}, -50%)`});return(r,a)=>(Xe(),dn("div",C7,[xn("img",{class:ba(["img",[r.side]]),style:vi(n.value),src:xe(vs)(r.img),onDragstart:a[0]||(a[0]=Ln(()=>{},["prevent","stop"]))},null,46,_7)]))}});const Ry=uu(S7,[["__scopeId","data-v-65d66859"]]),x7=fe({__name:"ImgSliComparePane",props:{left:{},right:{}},setup(t,{expose:e}){const n=t,r=W(50),a=([{size:u}])=>{r.value=u},i=W(),{width:o}=a7(i);e({requestFullScreen:()=>{var u;(u=i.value)==null||u.requestFullscreen()}});const s=Fz(async()=>{if(!n.left)return"width";const u=await mz(vs(n.left)),f=u.width/u.height,v=document.body.clientWidth/document.body.clientHeight;return f>v?"width":"height"});return(u,f)=>(Xe(),dn("div",{ref_key:"wrapperEl",ref:i,style:{height:"100%"}},[x(xe(R_),{class:"default-theme",onResize:a},{default:_t(()=>[u.left?(Xe(),Xt(xe(wf),{key:0},{default:_t(()=>[x(Ry,{side:"left","max-edge":xe(s),"container-width":xe(o),percent:r.value,img:u.left},null,8,["max-edge","container-width","percent","img"])]),_:1})):Ga("",!0),u.right?(Xe(),Xt(xe(wf),{key:1},{default:_t(()=>[x(Ry,{"max-edge":xe(s),percent:r.value,img:u.right,side:"right","container-width":xe(o)},null,8,["max-edge","percent","img","container-width"])]),_:1})):Ga("",!0)]),_:1})],512))}});const P7={class:"actions"},O7=fe({__name:"ImgSliDrawer",setup(t){const e=z_(),n=W();return(r,a)=>{const i=Tn,o=d4;return Xe(),dn(De,null,[x(o,{width:"100vw",visible:xe(e).drawerVisible,"onUpdate:visible":a[2]||(a[2]=l=>xe(e).drawerVisible=l),"destroy-on-close":"",class:"img-sli","close-icon":null},{footer:_t(()=>[xn("div",P7,[x(i,{onClick:a[0]||(a[0]=l=>xe(e).drawerVisible=!1)},{default:_t(()=>[Fn(gr(r.$t("close")),1)]),_:1}),x(i,{onClick:a[1]||(a[1]=l=>{var s;return(s=n.value)==null?void 0:s.requestFullScreen()})},{default:_t(()=>[Fn(gr(r.$t("fullscreenview")),1)]),_:1})])]),default:_t(()=>[xe(e).left&&xe(e).right?(Xe(),Xt(x7,{key:0,ref_key:"splitpane",ref:n,left:xe(e).left,right:xe(e).right},null,8,["left","right"])):Ga("",!0)]),_:1},8,["visible"]),x(w7)],64)}}});const E7=fe({__name:"SplitViewTab",setup(t){const e=Wo(),n={local:Ir(()=>hr(()=>import("./stackView-7eea96fb.js"),["assets/stackView-7eea96fb.js","assets/fullScreenContextMenu-d0f6d9eb.js","assets/FileItem-f87590d0.js","assets/db-a03371d5.js","assets/shortcut-c6713a64.js","assets/shortcut-9fed83c2.css","assets/FileItem-5f98ff36.css","assets/fullScreenContextMenu-6db7192a.css","assets/numInput-69617d97.js","assets/numInput-a08c6857.css","assets/stackView-c5da5c16.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),empty:Ir(()=>hr(()=>import("./emptyStartup-67ea4c34.js"),["assets/emptyStartup-67ea4c34.js","assets/db-a03371d5.js","assets/emptyStartup-cf762322.css"])),"global-setting":Ir(()=>hr(()=>import("./globalSetting-16842e8d.js"),["assets/globalSetting-16842e8d.js","assets/numInput-69617d97.js","assets/shortcut-c6713a64.js","assets/shortcut-9fed83c2.css","assets/numInput-a08c6857.css","assets/globalSetting-81978e8e.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),"tag-search-matched-image-grid":Ir(()=>hr(()=>import("./MatchedImageGrid-42123f9e.js"),["assets/MatchedImageGrid-42123f9e.js","assets/fullScreenContextMenu-d0f6d9eb.js","assets/FileItem-f87590d0.js","assets/db-a03371d5.js","assets/shortcut-c6713a64.js","assets/shortcut-9fed83c2.css","assets/FileItem-5f98ff36.css","assets/fullScreenContextMenu-6db7192a.css","assets/hook-24a54d22.js","assets/MatchedImageGrid-bdeb2907.css"])),"tag-search":Ir(()=>hr(()=>import("./TagSearch-bdd903ef.js"),["assets/TagSearch-bdd903ef.js","assets/db-a03371d5.js","assets/TagSearch-ffd782da.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),"fuzzy-search":Ir(()=>hr(()=>import("./SubstrSearch-ec4122c1.js"),["assets/SubstrSearch-ec4122c1.js","assets/fullScreenContextMenu-d0f6d9eb.js","assets/FileItem-f87590d0.js","assets/db-a03371d5.js","assets/shortcut-c6713a64.js","assets/shortcut-9fed83c2.css","assets/FileItem-5f98ff36.css","assets/fullScreenContextMenu-6db7192a.css","assets/hook-24a54d22.js","assets/SubstrSearch-03c71861.css","assets/index-f4bbe4b8.css"])),"img-sli":Ir(()=>hr(()=>import("./ImgSliPagePane-06ea41b3.js"),[])),"batch-download":Ir(()=>hr(()=>import("./batchDownload-041ddd37.js"),["assets/batchDownload-041ddd37.js","assets/FileItem-f87590d0.js","assets/db-a03371d5.js","assets/shortcut-c6713a64.js","assets/shortcut-9fed83c2.css","assets/FileItem-5f98ff36.css","assets/batchDownload-08be3fc5.css"]))},r=(o,l,s)=>{var f,v;const u=e.tabList[o];if(s==="add"){const h={type:"empty",key:br(),name:Ae("emptyStartPage")};u.panes.push(h),u.key=h.key}else{const h=u.panes.findIndex(g=>g.key===l);if(u.key===l&&(u.key=((f=u.panes[h-1])==null?void 0:f.key)??((v=u.panes[1])==null?void 0:v.key)),u.panes.splice(h,1),u.panes.length===0&&e.tabList.splice(o,1),e.tabList.length===0){const g=e.createEmptyPane();e.tabList.push({panes:[g],key:g.key,id:br()})}}},a=W();pe(()=>e.tabList,async()=>{var o;await Ke(),e.saveRecord(),Array.from(((o=a.value)==null?void 0:o.querySelectorAll(".splitpanes__pane"))??[]).forEach((l,s)=>{Array.from(l.querySelectorAll(".ant-tabs-tab")??[]).forEach((u,f)=>{const v=u;v.setAttribute("draggable","true"),v.setAttribute("tabIdx",s.toString()),v.setAttribute("paneIdx",f.toString()),v.ondragend=()=>{e.dragingTab=void 0},v.ondragstart=h=>{e.dragingTab={tabIdx:s,paneIdx:f},h.dataTransfer.setData("text/plain",JSON.stringify({tabIdx:s,paneIdx:f,from:"tab-drag"}))}})})},{immediate:!0,deep:!0});const i=qc(()=>$_.emit("returnToIIB"),100);return Oz(async()=>{const o=window.parent;if(!await dz(()=>o==null?void 0:o.onUiTabChange,200,3e4)){console.log("watch tab change failed");return}o.onUiTabChange(()=>{const l=o.get_uiCurrentTabContent();l!=null&&l.id.includes("infinite-image-browsing")&&i()})}),pe(Zz(),o=>o&&i()),(o,l)=>{const s=ls,u=Qi;return Xe(),dn("div",{ref_key:"container",ref:a},[x(xe(R_),{class:"default-theme"},{default:_t(()=>[(Xe(!0),dn(De,null,Xv(xe(e).tabList,(f,v)=>(Xe(),Xt(xe(wf),{key:f.id},{default:_t(()=>[x(u7,{tabIdx:v},{default:_t(()=>[x(u,{type:"editable-card",activeKey:f.key,"onUpdate:activeKey":h=>f.key=h,onEdit:(h,g)=>r(v,h,g)},{default:_t(()=>[(Xe(!0),dn(De,null,Xv(f.panes,(h,g)=>(Xe(),Xt(s,{key:h.key,tab:h.name,class:"pane"},{default:_t(()=>[(Xe(),Xt(gx(n[h.type]),Gf({tabIdx:v,paneIdx:g},h),null,16,["tabIdx","paneIdx"]))]),_:2},1032,["tab"]))),128))]),_:2},1032,["activeKey","onUpdate:activeKey","onEdit"])]),_:2},1032,["tabIdx"])]),_:2},1024))),128))]),_:1}),x(O7)],512)}}});const T7=uu(E7,[["__scopeId","data-v-c479b9de"]]),I7=async t=>{var r;const e=(r=t.conf)==null?void 0:r.global_setting,n=new URLSearchParams(parent.location.search);switch(n.get("action")){case"open":{let a=n.get("path");if(!a||!e)return;const i={extra:e.outdir_extras_samples,save:e.outdir_save,txt2img:e.outdir_txt2img_samples,img2img:e.outdir_img2img_samples};i[a]&&(a=i[a]);const o=t.tabList[0],l={type:"local",path:a,key:br(),name:"",walkModePath:n.get("walk")?a:void 0};o.panes.unshift(l),o.key=l.key,fz(),hz(["action","path","walk"]);break}}};function Ly(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!tr(t)}const W_="app.conf.json",io=W(),V_=()=>Ao.writeFile(W_,JSON.stringify(ke(io.value),null,4)),A7=fe({setup(){const t=async()=>{const e=await S_({directory:!0});if(typeof e=="string"){if(!await Ao.exists(`${e}/config.json`))return ya.error(Ae("tauriLaunchConfMessages.configNotFound"));if(!await Ao.exists(`${e}/extensions/sd-webui-infinite-image-browsing`))return ya.error(Ae("tauriLaunchConfMessages.folderNotFound"));io.value.sdwebui_dir=e,ya.info(Ae("tauriLaunchConfMessages.configCompletedMessage")),await V_(),await lu("shutdown_api_server_command"),await ou(1500),await w_()}};return()=>{let e,n;return x("div",{style:{padding:"32px 0"}},[x("div",{style:{padding:"16px 0"}},[x("h2",null,[Ae("tauriLaunchConf.readSdWebuiConfigTitle")]),x("p",null,[Ae("tauriLaunchConf.readSdWebuiConfigDescription")]),x(Tn,{onClick:t,type:"primary"},Ly(e=Ae("tauriLaunchConf.selectSdWebuiFolder"))?e:{default:()=>[e]})]),x("div",{style:{padding:"16px 0"}},[x("h2",null,[Ae("tauriLaunchConf.skipThisConfigTitle")]),x("p",null,[Ae("tauriLaunchConf.skipThisConfigDescription")]),x(Tn,{type:"primary",onClick:Bt.destroyAll},Ly(n=Ae("tauriLaunchConf.skipButton"))?n:{default:()=>[n]})])])}}}),M7=async()=>{try{io.value=JSON.parse(await Ao.readTextFile(W_))}catch{}io.value||(io.value={sdwebui_dir:""},await V_(),Bt.info({title:Ae("tauriLaunchConfMessages.firstTimeUserTitle"),content:x(A7,null,null),width:"80vw",okText:Ae("tauriLaunchConf.skipButton"),okButtonProps:{onClick:Bt.destroyAll}}))},k7=!!{}.TAURI_ARCH,N7=fe({__name:"App",setup(t){const e=Wo(),n=pz();return Py("updateGlobalSetting",async()=>{await Hj(),console.log(ds.value);const r=await Gj();e.conf=r;const a=await Oy(r);e.quickMovePaths=a.filter(i=>{var o,l;return(l=(o=i==null?void 0:i.dir)==null?void 0:o.trim)==null?void 0:l.call(o)}),I7(e)}),Py("returnToIIB",async()=>{const r=e.conf;if(!r)return;const a=r.global_setting;if(!a.outdir_txt2img_samples&&!a.outdir_img2img_samples)return;const i=new Set(e.quickMovePaths.map(l=>l.key));if(i.has("outdir_txt2img_samples")&&i.has("outdir_img2img_samples"))return;const o=await Oy(r);e.quickMovePaths=o.filter(l=>{var s,u;return(u=(s=l==null?void 0:l.dir)==null?void 0:s.trim)==null?void 0:u.call(s)})}),Re(async()=>{k7&&M7(),$_.emit("updateGlobalSetting")}),(r,a)=>{const i=rn;return Xe(),Xt(i,{loading:!xe(n).isIdle},{default:_t(()=>[x(T7)]),_:1},8,["loading"])}}});function $7(t){return typeof t=="object"&&t!==null}function Dy(t,e){return t=$7(t)?t:Object.create(null),new Proxy(t,{get(n,r,a){return r==="key"?Reflect.get(n,r,a):Reflect.get(n,r,a)||Reflect.get(e,r,a)}})}function R7(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function L7(t,e,n){return e.slice(0,-1).reduce((r,a)=>/^(__proto__)$/.test(a)?{}:r[a]=r[a]||{},t)[e[e.length-1]]=n,t}function D7(t,e){return e.reduce((n,r)=>{const a=r.split(".");return L7(n,a,R7(t,a))},{})}function Fy(t,{storage:e,serializer:n,key:r,debug:a}){try{const i=e==null?void 0:e.getItem(r);i&&t.$patch(n==null?void 0:n.deserialize(i))}catch(i){a&&console.error(i)}}function By(t,{storage:e,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?D7(t,a):t;e.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function F7(t={}){return e=>{const{auto:n=!1}=t,{options:{persist:r=n},store:a}=e;if(!r)return;const i=(Array.isArray(r)?r.map(o=>Dy(o,t)):[Dy(r,t)]).map(({storage:o=localStorage,beforeRestore:l=null,afterRestore:s=null,serializer:u={serialize:JSON.stringify,deserialize:JSON.parse},key:f=a.$id,paths:v=null,debug:h=!1})=>{var g;return{storage:o,beforeRestore:l,afterRestore:s,serializer:u,key:((g=t.key)!=null?g:c=>c)(f),paths:v,debug:h}});a.$persist=()=>{i.forEach(o=>{By(a.$state,o)})},a.$hydrate=({runHooks:o=!0}={})=>{i.forEach(l=>{const{beforeRestore:s,afterRestore:u}=l;o&&(s==null||s(e)),Fy(a,l),o&&(u==null||u(e))})},i.forEach(o=>{const{beforeRestore:l,afterRestore:s}=o;l==null||l(e),Fy(a,o),s==null||s(e),a.$subscribe((u,f)=>{By(f,o)},{detached:!0})})}}var B7=F7();const H_=Qj();H_.use(B7);AP(N7).use(H_).use(wv).mount("#zanllp_dev_gradio_fe");const j7=Qz(),z7=()=>{try{return parent.location.search.includes("theme=dark")}catch{}return!1};pe([j7,z7],async([t,e])=>{await ou();const n=document.getElementsByTagName("html")[0];if(t||e){document.body.classList.add("dark");const r=document.createElement("style"),{default:a}=await hr(()=>import("./antd.dark-35e9b327.js"),[]);r.innerHTML=a,r.setAttribute("antd-dark",""),n.appendChild(r)}else document.body.classList.remove("dark"),Array.from(n.querySelectorAll("style[antd-dark]")).forEach(r=>r.remove())},{immediate:!0});export{W as $,Xv as A,vi as B,Ga as C,xN as D,k7 as E,Z7 as F,W7 as G,zx as H,R9 as I,$9 as J,V7 as K,vs as L,Vr as M,ba as N,as as O,J as P,rn as Q,Bt as R,t_ as S,GN as T,At as U,Tn as V,Po as W,uu as X,No as Y,gi as Z,ut as _,T as a,$n as a$,ge as a0,Ci as a1,rr as a2,yt as a3,Ns as a4,ir as a5,Is as a6,or as a7,yT as a8,_T as a9,t$ as aA,Ce as aB,qc as aC,L9 as aD,Vj as aE,Ao as aF,W_ as aG,w_ as aH,Ye as aI,n9 as aJ,ct as aK,rm as aL,Qe as aM,e9 as aN,mI as aO,MT as aP,nh as aQ,Tw as aR,KD as aS,Ds as aT,g$ as aU,Zf as aV,_e as aW,ho as aX,F$ as aY,vE as aZ,CP as a_,id as aa,fT as ab,q0 as ac,Y0 as ad,Jl as ae,vd as af,lt as ag,z_ as ah,Ae as ai,K as aj,XR as ak,br as al,e_ as am,Yc as an,S_ as ao,Kr as ap,qj as aq,ya as ar,$_ as as,pb as at,hb as au,Bf as av,Re as aw,Ke as ax,xt as ay,Yl as az,ze as b,x7 as b$,st as b0,cE as b1,Q7 as b2,mi as b3,ke as b4,V$ as b5,Id as b6,_o as b7,bw as b8,_$ as b9,Da as bA,X7 as bB,UN as bC,ux as bD,K7 as bE,U7 as bF,Gf as bG,Hc as bH,Y7 as bI,s0 as bJ,eC as bK,En as bL,Wn as bM,wC as bN,pz as bO,Py as bP,j9 as bQ,TN as bR,h4 as bS,q7 as bT,hI as bU,l0 as bV,tr as bW,N9 as bX,V9 as bY,Zw as bZ,Oo as b_,C$ as ba,WR as bb,NR as bc,SC as bd,nr as be,Kd as bf,Us as bg,Do as bh,TO as bi,VR as bj,Ks as bk,CL as bl,kl as bm,rt as bn,Nt as bo,BM as bp,Jt as bq,J7 as br,Jw as bs,Qw as bt,Dw as bu,Le as bv,Gt as bw,Sn as bx,Iw as by,kO as bz,x as c,az as c0,sz as c1,Si as c2,r$ as c3,VN as c4,JN as c5,BN as c6,t9 as c7,zn as c8,Ed as c9,Cs as cA,DS as cB,_b as cC,yx as cD,Wl as cE,gx as cF,H7 as cG,Gc as cH,G7 as cI,xy as cJ,bF as cK,Xf as cL,Tm as cM,_d as ca,lb as cb,bt as cc,kT as cd,sd as ce,yz as cf,k_ as cg,my as ch,F9 as ci,Av as cj,D9 as ck,uz as cl,J1 as cm,ou as cn,gz as co,z9 as cp,di as cq,a7 as cr,$y as cs,W9 as ct,Q1 as cu,bz as cv,M9 as cw,aI as cx,k9 as cy,QS as cz,fe as d,jn as e,pn as f,Wr as g,te as h,He as i,Bd as j,Wo as k,pe as l,Xt as m,_t as n,Xe as o,xn as p,Ln as q,xe as r,tt as s,B9 as t,Ze as u,gr as v,ks as w,Fn as x,dn as y,De as z}; diff --git a/vue/dist/assets/numInput-ad16e274.js b/vue/dist/assets/numInput-69617d97.js similarity index 99% rename from vue/dist/assets/numInput-ad16e274.js rename to vue/dist/assets/numInput-69617d97.js index 7c50c90..6b49565 100644 --- a/vue/dist/assets/numInput-ad16e274.js +++ b/vue/dist/assets/numInput-69617d97.js @@ -1,4 +1,4 @@ -import{aj as I,aI as Le,$ as Q,aw as ht,aJ as Hr,aK as mt,Z as we,d as ae,u as ye,aL as kt,b as ce,aM as Fe,aN as Mt,a0 as ee,h as M,c as T,a as k,aO as Ur,i as re,aP as He,aQ as me,a2 as Qt,e as Gr,aR as Jt,aS as er,aT as Wr,aU as Kr,aV as zr,aW as tr,z as Re,aX as Xr,l as oe,aY as Yr,aZ as Zr,a_ as Qr,a8 as Jr,ab as en,aa as tn,az as rn,a$ as rr,b0 as nr,b1 as ar,an as je,b2 as nn,b3 as an,P as K,b4 as et,ax as ir,b5 as gt,b6 as ln,b7 as un,b8 as Ot,b9 as on,ba as sn,bb as fn,bc as cn,bd as dn,be as vn,bf as hn,bg as lr,bh as mn,bi as gn,bj as pn,bk as bn,bl as yn,bm as xn,r as ge,bn as wn,bo as Ne,aC as Sn,bp as ur,bq as pt,br as Fn,w as Me,ag as Cn,bs as or,bt as sr,bu as Nn,bv as De,_ as $e,aB as ue,j as fr,D as Vn,ay as kn,a3 as Mn,bw as cr,bx as Ve,by as bt,bz as On,bA as tt,bB as Pn,bC as $n,bD as En,T as An,Y as Tn,bE as In,bF as Bn,o as _n,y as jn,bG as Pt,X as qn}from"./index-35e9ee40.js";import{t as Rn,l as Dn}from"./shortcut-9c26d495.js";var Ln=Symbol("SizeProvider"),Hn=function(e){var t=e?I(function(){return e.size}):Le(Ln,I(function(){return"default"}));return t};function Un(n,e,t){var r=-1,a=n.length;e<0&&(e=-e>a?0:a+e),t=t>a?a:t,t<0&&(t+=a),a=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(a);++r0?"".concat(m[0]/-2,"px"):void 0,F=m[1]>0?"".concat(m[1]/-2,"px"):void 0;return d&&(b.marginLeft=d,b.marginRight=d),c.value?b.rowGap="".concat(m[1],"px"):F&&(b.marginTop=F,b.marginBottom=F),b});return function(){var m;return T("div",{class:f.value,style:y.value},[(m=r.default)===null||m===void 0?void 0:m.call(r)])}}});const Qn=Zn;function Jn(n){return typeof n=="number"?"".concat(n," ").concat(n," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(n)?"0 0 ".concat(n):n}var ea=function(){return{span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},xxxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}};const vr=ae({compatConfig:{MODE:3},name:"ACol",props:ea(),setup:function(e,t){var r=t.slots,a=zn(),i=a.gutter,l=a.supportFlexGap,u=a.wrap,o=ye("col",e),c=o.prefixCls,s=o.direction,f=I(function(){var m,b=e.span,d=e.order,F=e.offset,h=e.push,S=e.pull,g=c.value,v={};return["xs","sm","md","lg","xl","xxl","xxxl"].forEach(function(p){var N,C={},x=e[p];typeof x=="number"?C.span=x:ce(x)==="object"&&(C=x||{}),v=k(k({},v),{},(N={},M(N,"".concat(g,"-").concat(p,"-").concat(C.span),C.span!==void 0),M(N,"".concat(g,"-").concat(p,"-order-").concat(C.order),C.order||C.order===0),M(N,"".concat(g,"-").concat(p,"-offset-").concat(C.offset),C.offset||C.offset===0),M(N,"".concat(g,"-").concat(p,"-push-").concat(C.push),C.push||C.push===0),M(N,"".concat(g,"-").concat(p,"-pull-").concat(C.pull),C.pull||C.pull===0),M(N,"".concat(g,"-rtl"),s.value==="rtl"),N))}),ee(g,(m={},M(m,"".concat(g,"-").concat(b),b!==void 0),M(m,"".concat(g,"-order-").concat(d),d),M(m,"".concat(g,"-offset-").concat(F),F),M(m,"".concat(g,"-push-").concat(h),h),M(m,"".concat(g,"-pull-").concat(S),S),m),v)}),y=I(function(){var m=e.flex,b=i.value,d={};if(b&&b[0]>0){var F="".concat(b[0]/2,"px");d.paddingLeft=F,d.paddingRight=F}if(b&&b[1]>0&&!l.value){var h="".concat(b[1]/2,"px");d.paddingTop=h,d.paddingBottom=h}return m&&(d.flex=Jn(m),u.value===!1&&!d.minWidth&&(d.minWidth=0)),d});return function(){var m;return T("div",{class:f.value,style:y.value},[(m=r.default)===null||m===void 0?void 0:m.call(r)])}}});function be(){return be=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qe(n,e,t){return ra()?qe=Reflect.construct.bind():qe=function(a,i,l){var u=[null];u.push.apply(u,i);var o=Function.bind.apply(a,u),c=new o;return l&&Ee(c,l.prototype),c},qe.apply(null,arguments)}function na(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function nt(n){var e=typeof Map=="function"?new Map:void 0;return nt=function(r){if(r===null||!na(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return qe(r,arguments,rt(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Ee(a,r)},nt(n)}var aa=/%[sdj%]/g,ia=function(){};typeof process<"u"&&process.env;function at(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function le(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r=i)return u;switch(u){case"%s":return String(t[a++]);case"%d":return Number(t[a++]);case"%j":try{return JSON.stringify(t[a++])}catch{return"[Circular]"}break;default:return u}});return l}return n}function la(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function te(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||la(e)&&typeof n=="string"&&!n)}function ua(n,e,t){var r=[],a=0,i=n.length;function l(u){r.push.apply(r,u||[]),a++,a===i&&t(r)}n.forEach(function(u){e(u,l)})}function $t(n,e,t){var r=0,a=n.length;function i(l){if(l&&l.length){t(l);return}var u=r;r=r+1,ua?0:a+e),t=t>a?a:t,t<0&&(t+=a),a=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(a);++r0?"".concat(m[0]/-2,"px"):void 0,F=m[1]>0?"".concat(m[1]/-2,"px"):void 0;return d&&(b.marginLeft=d,b.marginRight=d),c.value?b.rowGap="".concat(m[1],"px"):F&&(b.marginTop=F,b.marginBottom=F),b});return function(){var m;return T("div",{class:f.value,style:y.value},[(m=r.default)===null||m===void 0?void 0:m.call(r)])}}});const Qn=Zn;function Jn(n){return typeof n=="number"?"".concat(n," ").concat(n," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(n)?"0 0 ".concat(n):n}var ea=function(){return{span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},xxxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}};const vr=ae({compatConfig:{MODE:3},name:"ACol",props:ea(),setup:function(e,t){var r=t.slots,a=zn(),i=a.gutter,l=a.supportFlexGap,u=a.wrap,o=ye("col",e),c=o.prefixCls,s=o.direction,f=I(function(){var m,b=e.span,d=e.order,F=e.offset,h=e.push,S=e.pull,g=c.value,v={};return["xs","sm","md","lg","xl","xxl","xxxl"].forEach(function(p){var N,C={},x=e[p];typeof x=="number"?C.span=x:ce(x)==="object"&&(C=x||{}),v=k(k({},v),{},(N={},M(N,"".concat(g,"-").concat(p,"-").concat(C.span),C.span!==void 0),M(N,"".concat(g,"-").concat(p,"-order-").concat(C.order),C.order||C.order===0),M(N,"".concat(g,"-").concat(p,"-offset-").concat(C.offset),C.offset||C.offset===0),M(N,"".concat(g,"-").concat(p,"-push-").concat(C.push),C.push||C.push===0),M(N,"".concat(g,"-").concat(p,"-pull-").concat(C.pull),C.pull||C.pull===0),M(N,"".concat(g,"-rtl"),s.value==="rtl"),N))}),ee(g,(m={},M(m,"".concat(g,"-").concat(b),b!==void 0),M(m,"".concat(g,"-order-").concat(d),d),M(m,"".concat(g,"-offset-").concat(F),F),M(m,"".concat(g,"-push-").concat(h),h),M(m,"".concat(g,"-pull-").concat(S),S),m),v)}),y=I(function(){var m=e.flex,b=i.value,d={};if(b&&b[0]>0){var F="".concat(b[0]/2,"px");d.paddingLeft=F,d.paddingRight=F}if(b&&b[1]>0&&!l.value){var h="".concat(b[1]/2,"px");d.paddingTop=h,d.paddingBottom=h}return m&&(d.flex=Jn(m),u.value===!1&&!d.minWidth&&(d.minWidth=0)),d});return function(){var m;return T("div",{class:f.value,style:y.value},[(m=r.default)===null||m===void 0?void 0:m.call(r)])}}});function be(){return be=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qe(n,e,t){return ra()?qe=Reflect.construct.bind():qe=function(a,i,l){var u=[null];u.push.apply(u,i);var o=Function.bind.apply(a,u),c=new o;return l&&Ee(c,l.prototype),c},qe.apply(null,arguments)}function na(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function nt(n){var e=typeof Map=="function"?new Map:void 0;return nt=function(r){if(r===null||!na(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return qe(r,arguments,rt(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Ee(a,r)},nt(n)}var aa=/%[sdj%]/g,ia=function(){};typeof process<"u"&&process.env;function at(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function le(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r=i)return u;switch(u){case"%s":return String(t[a++]);case"%d":return Number(t[a++]);case"%j":try{return JSON.stringify(t[a++])}catch{return"[Circular]"}break;default:return u}});return l}return n}function la(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function te(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||la(e)&&typeof n=="string"&&!n)}function ua(n,e,t){var r=[],a=0,i=n.length;function l(u){r.push.apply(r,u||[]),a++,a===i&&t(r)}n.forEach(function(u){e(u,l)})}function $t(n,e,t){var r=0,a=n.length;function i(l){if(l&&l.length){t(l);return}var u=r;r=r+1,u=n.length?{done:!0}:{done:!1,value:n[o++]}},e:function(c){throw c},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +import{cL as Q,cM as Z,d as H,bq as ee,$ as M,l as q,_ as T,a as f,a0 as U,h as B,c as _,P as L,j as Y,u as z,aI as ne,b0 as ae,aM as te,aw as re,w as ue,f as le,aj as R,aK as oe,i as ie}from"./index-a4883aca.js";function ce(n,e){var u=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!u){if(Array.isArray(n)||(u=Q(n))||e&&n&&typeof n.length=="number"){u&&(n=u);var o=0,s=function(){};return{s,n:function(){return o>=n.length?{done:!0}:{done:!1,value:n[o++]}},e:function(c){throw c},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var k=!0,m=!1,g;return{s:function(){u=u.call(n)},n:function(){var c=u.next();return k=c.done,c},e:function(c){m=!0,g=c},f:function(){try{!k&&u.return!=null&&u.return()}finally{if(m)throw g}}}}var X=1/0,de=17976931348623157e292;function ke(n){if(!n)return n===0?n:0;if(n=Z(n),n===X||n===-X){var e=n<0?-1:1;return e*de}return n===n?n:0}var se=["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"],fe={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:L.any,required:Boolean};const ve=H({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:ee(fe,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup:function(e,u){var o=u.attrs,s=u.emit,k=u.expose,m=M(e.checked===void 0?e.defaultChecked:e.checked),g=M();q(function(){return e.checked},function(){m.value=e.checked}),k({focus:function(){var t;(t=g.value)===null||t===void 0||t.focus()},blur:function(){var t;(t=g.value)===null||t===void 0||t.blur()}});var d=M(),c=function(t){if(!e.disabled){e.checked===void 0&&(m.value=t.target.checked),t.shiftKey=d.value;var C={target:f(f({},e),{},{checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t};e.checked!==void 0&&(g.value.checked=!!e.checked),s("change",C),d.value=!1}},p=function(t){s("click",t),d.value=t.shiftKey};return function(){var r,t=e.prefixCls,C=e.name,S=e.id,V=e.type,w=e.disabled,x=e.readonly,a=e.tabindex,l=e.autofocus,v=e.value,h=e.required,b=T(e,se),i=o.class,I=o.onFocus,A=o.onBlur,G=o.onKeydown,K=o.onKeypress,$=o.onKeyup,O=f(f({},b),o),y=Object.keys(O).reduce(function(F,P){return(P.substr(0,5)==="aria-"||P.substr(0,5)==="data-"||P==="role")&&(F[P]=O[P]),F},{}),E=U(t,i,(r={},B(r,"".concat(t,"-checked"),m.value),B(r,"".concat(t,"-disabled"),w),r)),D=f(f({name:C,id:S,type:V,readonly:x,disabled:w,tabindex:a,class:"".concat(t,"-input"),checked:!!m.value,autofocus:l,value:v},y),{},{onChange:c,onClick:p,onFocus:I,onBlur:A,onKeydown:G,onKeypress:K,onKeyup:$,required:h});return _("span",{class:E},[_("input",f({ref:g},D),null),_("span",{class:"".concat(t,"-inner")},null)])}}});function Ce(n){var e=n==null?0:n.length;return e?n[e-1]:void 0}var he=function(){return{name:String,prefixCls:String,options:{type:Array,default:function(){return[]}},disabled:Boolean,id:String}},be=function(){return f(f({},he()),{},{defaultValue:{type:Array},value:{type:Array},onChange:{type:Function},"onUpdate:value":{type:Function}})},me=function(){return{prefixCls:String,defaultChecked:{type:Boolean,default:void 0},checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},isGroup:{type:Boolean,default:void 0},value:L.any,name:String,id:String,indeterminate:{type:Boolean,default:void 0},type:{type:String,default:"checkbox"},autofocus:{type:Boolean,default:void 0},onChange:Function,"onUpdate:checked":Function,onClick:Function,skipGroup:{type:Boolean,default:!1}}},ge=function(){return f(f({},me()),{},{indeterminate:{type:Boolean,default:!1}})},J=Symbol("CheckboxGroupContext"),pe=["indeterminate","skipGroup","id"],ye=["onMouseenter","onMouseleave","onInput","class","style"];const N=H({compatConfig:{MODE:3},name:"ACheckbox",inheritAttrs:!1,__ANT_CHECKBOX:!0,props:ge(),setup:function(e,u){var o=u.emit,s=u.attrs,k=u.slots,m=u.expose,g=Y(),d=z("checkbox",e),c=d.prefixCls,p=d.direction,r=ne(J,void 0),t=Symbol("checkboxUniId");ae(function(){!e.skipGroup&&r&&r.registerValue(t,e.value)}),te(function(){r&&r.cancelValue(t)}),re(function(){ue(e.checked!==void 0||r||e.value===void 0,"Checkbox","`value` is not validate prop, do you mean `checked`?")});var C=function(a){var l=a.target.checked;o("update:checked",l),o("change",a)},S=M(),V=function(){var a;(a=S.value)===null||a===void 0||a.focus()},w=function(){var a;(a=S.value)===null||a===void 0||a.blur()};return m({focus:V,blur:w}),function(){var x,a,l=le((x=k.default)===null||x===void 0?void 0:x.call(k)),v=e.indeterminate,h=e.skipGroup,b=e.id,i=b===void 0?g.id.value:b,I=T(e,pe),A=s.onMouseenter,G=s.onMouseleave;s.onInput;var K=s.class,$=s.style,O=T(s,ye),y=f(f({},I),{},{id:i,prefixCls:c.value},O);r&&!h?(y.onChange=function(){for(var F=arguments.length,P=new Array(F),j=0;j0&&(h=r.value.map(function(i){var I;return _(N,{prefixCls:d.value,key:i.value.toString(),disabled:"disabled"in i?i.disabled:e.disabled,indeterminate:i.indeterminate,value:i.value,checked:p.value.indexOf(i.value)!==-1,onChange:i.onChange,class:"".concat(b,"-item")},{default:function(){return[i.label===void 0?(I=o.label)===null||I===void 0?void 0:I.call(o,i):i.label]}})})),_("div",{class:[b,B({},"".concat(b,"-rtl"),c.value==="rtl")],id:v},[h||((a=o.default)===null||a===void 0?void 0:a.call(o))])}}});N.Group=W;N.install=function(n){return n.component(N.name,N),n.component(W.name,W),n};const Se=n=>{const e=[];return n.shiftKey&&e.push("Shift"),n.ctrlKey&&e.push("Ctrl"),n.metaKey&&e.push("Cmd"),(n.code.startsWith("Key")||n.code.startsWith("Digit"))&&e.push(n.code),e.join(" + ")};export{N as C,Se as g,Ce as l,ke as t}; diff --git a/vue/dist/assets/stackView-e569ad78.js b/vue/dist/assets/stackView-7eea96fb.js similarity index 65% rename from vue/dist/assets/stackView-e569ad78.js rename to vue/dist/assets/stackView-7eea96fb.js index 8c19394..a8d966e 100644 --- a/vue/dist/assets/stackView-e569ad78.js +++ b/vue/dist/assets/stackView-7eea96fb.js @@ -1 +1 @@ -import{d as Y,u as ie,g as U,_ as xe,c as a,a as re,P as X,D as Se,f as Pe,w as Xe,b as Ye,e as Ze,h as he,M as oe,i as et,j as tt,F as se,k as nt,l as at,o as d,m as F,n as i,p as u,q as v,r as e,s as T,t as rt,v as c,x as L,y as w,z as ne,A as ae,B as ot,C as V,E as st,G as lt,H as it,S as ut,I as dt,J as ct,K as pt,L as mt,N as we,O as vt,Q as ft,R as kt,T as gt,U as Ct,V as bt,W as _t,X as yt}from"./index-35e9ee40.js";import{S as W,s as ht,L as wt,R as It,f as xt}from"./fullScreenContextMenu-641139fc.js";import{F as N,N as St,_ as Pt}from"./numInput-ad16e274.js";import"./shortcut-9c26d495.js";import{D as Me,u as Mt,a as $t,b as At,c as Rt,d as Bt,e as Dt,f as Ft,s as Nt,g as Et,F as Tt}from"./FileItem-7d7b8ef3.js";/* empty css *//* empty css */import"./db-c6358829.js";var Vt=["class","style"],zt=function(){return{prefixCls:String,href:String,separator:X.any,overlay:X.any,onClick:Function}};const q=Y({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:zt(),slots:["separator","overlay"],setup:function(o,_){var f=_.slots,g=_.attrs,h=ie("breadcrumb",o),y=h.prefixCls,S=function(I,p){var s=U(f,o,"overlay");return s?a(Me,{overlay:s,placement:"bottom"},{default:function(){return[a("span",{class:"".concat(p,"-overlay-link")},[I,a(Se,null,null)])]}}):I};return function(){var P,I=(P=U(f,o,"separator"))!==null&&P!==void 0?P:"/",p=U(f,o),s=g.class,C=g.style,k=xe(g,Vt),m;return o.href!==void 0?m=a("a",re({class:"".concat(y.value,"-link"),onClick:o.onClick},k),[p]):m=a("span",re({class:"".concat(y.value,"-link"),onClick:o.onClick},k),[p]),m=S(m,y.value),p?a("span",{class:s,style:C},[m,I&&a("span",{class:"".concat(y.value,"-separator")},[I])]):null}}});var Ot=function(){return{prefixCls:String,routes:{type:Array},params:X.any,separator:X.any,itemRender:{type:Function}}};function jt(r,o){if(!r.breadcrumbName)return null;var _=Object.keys(o).join("|"),f=r.breadcrumbName.replace(new RegExp(":(".concat(_,")"),"g"),function(g,h){return o[h]||g});return f}function Ie(r){var o=r.route,_=r.params,f=r.routes,g=r.paths,h=f.indexOf(o)===f.length-1,y=jt(o,_);return h?a("span",null,[y]):a("a",{href:"#/".concat(g.join("/"))},[y])}const z=Y({compatConfig:{MODE:3},name:"ABreadcrumb",props:Ot(),slots:["separator","itemRender"],setup:function(o,_){var f=_.slots,g=ie("breadcrumb",o),h=g.prefixCls,y=g.direction,S=function(s,C){return s=(s||"").replace(/^\//,""),Object.keys(C).forEach(function(k){s=s.replace(":".concat(k),C[k])}),s},P=function(s,C,k){var m=et(s),x=S(C||"",k);return x&&m.push(x),m},I=function(s){var C=s.routes,k=C===void 0?[]:C,m=s.params,x=m===void 0?{}:m,M=s.separator,$=s.itemRender,A=$===void 0?Ie:$,R=[];return k.map(function(b){var B=S(b.path,x);B&&R.push(B);var O=[].concat(R),j=null;return b.children&&b.children.length&&(j=a(oe,null,{default:function(){return[b.children.map(function(E){return a(oe.Item,{key:E.path||E.breadcrumbName},{default:function(){return[A({route:E,params:x,routes:k,paths:P(O,E.path,x)})]}})})]}})),a(q,{overlay:j,separator:M,key:B||b.breadcrumbName},{default:function(){return[A({route:b,params:x,routes:k,paths:O})]}})})};return function(){var p,s,C,k=o.routes,m=o.params,x=m===void 0?{}:m,M=Pe(U(f,o)),$=(p=U(f,o,"separator"))!==null&&p!==void 0?p:"/",A=o.itemRender||f.itemRender||Ie;k&&k.length>0?C=I({routes:k,params:x,separator:$,itemRender:A}):M.length&&(C=M.map(function(b,B){return Xe(Ye(b.type)==="object"&&(b.type.__ANT_BREADCRUMB_ITEM||b.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Ze(b,{separator:$,key:B})}));var R=(s={},he(s,h.value,!0),he(s,"".concat(h.value,"-rtl"),y.value==="rtl"),s);return a("div",{class:R},[C])}}});var Lt=["separator","class"],Ut=function(){return{prefixCls:String}};const le=Y({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:Ut(),setup:function(o,_){var f=_.slots,g=_.attrs,h=ie("breadcrumb",o),y=h.prefixCls;return function(){var S;g.separator;var P=g.class,I=xe(g,Lt),p=Pe((S=f.default)===null||S===void 0?void 0:S.call(f));return a("span",re({class:["".concat(y.value,"-separator"),P]},I),[p.length>0?p:"/"])}}});z.Item=q;z.Separator=le;z.install=function(r){return r.component(z.name,z),r.component(q.name,q),r.component(le.name,le),r};N.useInjectFormItemContext=tt;N.ItemRest=se;N.install=function(r){return r.component(N.name,N),r.component(N.Item.name,N.Item),r.component(se.name,se),r};W.setDefaultIndicator=ht;W.install=function(r){return r.component(W.name,W),r};const Wt={class:"hint"},qt={class:"location-bar"},Gt={key:0},Kt=["onClick"],Qt={key:3,style:{"margin-left":"8px"}},Ht={class:"actions"},Jt=["onClick"],Xt={style:{width:"512px",background:"var(--zp-primary-background)",padding:"16px","border-radius":"4px","box-shadow":"0 0 4px var(--zp-secondary-background)",border:"1px solid var(--zp-secondary-background)"}},Yt={style:{padding:"4px"}},Zt={style:{padding:"4px"}},en={style:{padding:"4px"}},tn={key:0,class:"view"},nn={style:{padding:"16px 0 32px"}},an={key:0,class:"preview-switch"},rn=Y({__name:"stackView",props:{tabIdx:{},paneIdx:{},path:{},walkModePath:{},stackKey:{}},setup(r){const o=r,_=nt(),{scroller:f,stackViewEl:g,props:h,multiSelectedIdxs:y,spinning:S}=Mt().toRefs(),{currLocation:P,currPage:I,refresh:p,copyLocation:s,back:C,openNext:k,stack:m,quickMoveTo:x,addToSearchScanPathAndQuickMove:M,searchPathInfo:$,locInputValue:A,isLocationEditing:R,onLocEditEnter:b,onEditBtnClick:B,share:O,selectAll:j,onCreateFloderBtnClick:G,onWalkBtnClick:E,showWalkButton:ue}=$t(),{gridItems:$e,sortMethodConv:Ae,moreActionsDropdownShow:Z,sortedFiles:K,sortMethod:ee,itemSize:de,loadNextDir:Re,loadNextDirLoading:Be,canLoadNext:De,onScroll:Fe,cellWidth:Q}=At(),{onDrop:Ne,onFileDragStart:Ee,onFileDragEnd:Te}=Rt(),{onFileItemClick:Ve,onContextMenuClick:ce,showGenInfo:H,imageGenInfo:pe,q:ze}=Bt({openNext:k}),{previewIdx:J,onPreviewVisibleChange:Oe,previewing:me,previewImgMove:ve,canPreview:fe}=Dt(),{showMenuIdx:te}=Ft();return at(()=>o,()=>{h.value=o;const l=Nt.get(o.stackKey??"");l&&(m.value=l.slice())},{immediate:!0}),(l,t)=>{const je=vt,Le=ft,Ue=kt,ke=q,ge=z,We=gt,qe=Ct,Ce=bt,Ge=_t,Ke=oe,be=Me,Qe=St,_e=Pt,He=N,Je=W;return d(),F(Je,{spinning:e(S),size:"large"},{default:i(()=>[a(je,{style:{display:"none"}}),u("div",{ref_key:"stackViewEl",ref:g,onDragover:t[24]||(t[24]=v(()=>{},["prevent"])),onDrop:t[25]||(t[25]=v(n=>e(Ne)(n),["prevent"])),class:"container"},[a(Ue,{visible:e(H),"onUpdate:visible":t[1]||(t[1]=n=>T(H)?H.value=n:null),width:"70vw","mask-closable":"",onOk:t[2]||(t[2]=n=>H.value=!1)},{cancelText:i(()=>[]),default:i(()=>[a(Le,{active:"",loading:!e(ze).isIdle},{default:i(()=>[u("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto","z-index":"9999"},onDblclick:t[0]||(t[0]=n=>e(rt)(e(pe)))},[u("div",Wt,c(l.$t("doubleClickToCopy")),1),L(" "+c(e(pe)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),u("div",qt,[o.walkModePath?(d(),w("div",Gt,[a(We,null,{title:i(()=>[L(c(l.$t("walk-mode-move-message")),1)]),default:i(()=>[a(ge,{style:{flex:"1"}},{default:i(()=>[(d(!0),w(ne,null,ae(e(m),(n,D)=>(d(),F(ke,{key:D},{default:i(()=>[u("span",null,c(n.curr==="/"?l.$t("root"):n.curr.replace(/:\/$/,l.$t("drive"))),1)]),_:2},1024))),128))]),_:1})]),_:1})])):(d(),w("div",{key:1,class:"breadcrumb",style:ot({flex:e(R)?1:""})},[e(R)?(d(),F(qe,{key:0,style:{flex:"1"},value:e(A),"onUpdate:value":t[3]||(t[3]=n=>T(A)?A.value=n:null),onClick:t[4]||(t[4]=v(()=>{},["stop"])),onPressEnter:e(b)},null,8,["value","onPressEnter"])):(d(),F(ge,{key:1,style:{flex:"1"}},{default:i(()=>[(d(!0),w(ne,null,ae(e(m),(n,D)=>(d(),F(ke,{key:D},{default:i(()=>[u("a",{onClick:v(ye=>e(C)(D),["prevent"])},c(n.curr==="/"?l.$t("root"):n.curr.replace(/:\/$/,l.$t("drive"))),9,Kt)]),_:2},1024))),128))]),_:1})),e(R)?(d(),F(Ce,{key:2,size:"small",onClick:e(b),type:"primary"},{default:i(()=>[L(c(l.$t("go")),1)]),_:1},8,["onClick"])):(d(),w("div",Qt,[u("a",{onClick:t[5]||(t[5]=v((...n)=>e(s)&&e(s)(...n),["prevent"])),style:{"margin-right":"4px"}},c(l.$t("copy")),1),u("a",{onClick:t[6]||(t[6]=v((...n)=>e(B)&&e(B)(...n),["prevent","stop"]))},c(l.$t("edit")),1)]))],4)),u("div",Ht,[u("a",{class:"opt",onClick:t[7]||(t[7]=v((...n)=>e(p)&&e(p)(...n),["prevent"]))},c(l.$t("refresh")),1),e(ue)?(d(),w("a",{key:0,class:"opt",onClick:t[8]||(t[8]=v((...n)=>e(E)&&e(E)(...n),["prevent"]))}," Walk ")):V("",!0),u("a",{class:"opt",onClick:t[9]||(t[9]=v((...n)=>e(j)&&e(j)(...n),["prevent","stop"]))},c(l.$t("selectAll")),1),e(st)?V("",!0):(d(),w("a",{key:1,class:"opt",onClick:t[10]||(t[10]=v((...n)=>e(O)&&e(O)(...n),["prevent"]))},c(l.$t("share")),1)),a(be,null,{overlay:i(()=>[a(Ke,null,{default:i(()=>[(d(!0),w(ne,null,ae(e(_).quickMovePaths,n=>(d(),F(Ge,{key:n.dir},{default:i(()=>[u("a",{onClick:v(D=>e(x)(n.dir),["prevent"])},c(n.zh),9,Jt)]),_:2},1024))),128))]),_:1})]),default:i(()=>[u("a",{class:"opt",onClick:t[11]||(t[11]=v(()=>{},["prevent"]))},[L(c(l.$t("quickMove"))+" ",1),a(e(Se))])]),_:1}),a(be,{trigger:["click"],visible:e(Z),"onUpdate:visible":t[20]||(t[20]=n=>T(Z)?Z.value=n:null),placement:"bottomLeft",getPopupContainer:n=>n.parentNode},{overlay:i(()=>[u("div",Xt,[a(He,lt(it({labelCol:{span:6},wrapperCol:{span:18}})),{default:i(()=>[a(_e,{label:l.$t("gridCellWidth")},{default:i(()=>[a(Qe,{modelValue:e(Q),"onUpdate:modelValue":t[13]||(t[13]=n=>T(Q)?Q.value=n:null),max:1024,min:64,step:64},null,8,["modelValue"])]),_:1},8,["label"]),a(_e,{label:l.$t("sortingMethod")},{default:i(()=>[a(e(ut),{value:e(ee),"onUpdate:value":t[14]||(t[14]=n=>T(ee)?ee.value=n:null),onClick:t[15]||(t[15]=v(()=>{},["stop"])),conv:e(Ae),options:e(dt)},null,8,["value","conv","options"])]),_:1},8,["label"]),u("div",Yt,[e($)?e($).can_delete?(d(),w("a",{key:1,onClick:t[17]||(t[17]=v((...n)=>e(M)&&e(M)(...n),["prevent"]))},c(l.$t("removeFromSearchScanPathAndQuickMove")),1)):V("",!0):(d(),w("a",{key:0,onClick:t[16]||(t[16]=v((...n)=>e(M)&&e(M)(...n),["prevent"]))},c(l.$t("addToSearchScanPathAndQuickMove")),1))]),u("div",Zt,[u("a",{onClick:t[18]||(t[18]=v(n=>e(ct)(e(P)+"/"),["prevent"]))},c(l.$t("openWithLocalFileBrowser")),1)]),u("div",en,[u("a",{onClick:t[19]||(t[19]=v((...n)=>e(G)&&e(G)(...n),["prevent"]))},c(l.$t("createFolder")),1)])]),_:1},16)])]),default:i(()=>[u("a",{class:"opt",onClick:t[12]||(t[12]=v(()=>{},["prevent"]))},c(l.$t("more")),1)]),_:1},8,["visible","getPopupContainer"])])]),e(I)?(d(),w("div",tn,[a(e(Et),{class:"file-list",items:e(K),ref_key:"scroller",ref:f,onScroll:e(Fe),"item-size":e(de).first,"key-field":"fullpath","item-secondary-size":e(de).second,gridItems:e($e)},pt({default:i(({item:n,index:D})=>[a(Tt,{idx:D,file:n,"full-screen-preview-image-url":e(K)[e(J)]?e(mt)(e(K)[e(J)]):"","show-menu-idx":e(te),"onUpdate:showMenuIdx":t[21]||(t[21]=ye=>T(te)?te.value=ye:null),selected:e(y).includes(D),"cell-width":e(Q),onFileItemClick:e(Ve),onDragstart:e(Ee),onDragend:e(Te),onPreviewVisibleChange:e(Oe),onContextMenuClick:e(ce)},null,8,["idx","file","full-screen-preview-image-url","show-menu-idx","selected","cell-width","onFileItemClick","onDragstart","onDragend","onPreviewVisibleChange","onContextMenuClick"])]),_:2},[o.walkModePath?{name:"after",fn:i(()=>[u("div",nn,[a(Ce,{onClick:e(Re),loading:e(Be),block:"",type:"primary",disabled:!e(De),ghost:""},{default:i(()=>[L(c(l.$t("loadNextPage")),1)]),_:1},8,["onClick","loading","disabled"])])]),key:"0"}:void 0]),1032,["items","onScroll","item-size","item-secondary-size","gridItems"]),e(me)?(d(),w("div",an,[a(e(wt),{onClick:t[22]||(t[22]=n=>e(ve)("prev")),class:we({disable:!e(fe)("prev")})},null,8,["class"]),a(e(It),{onClick:t[23]||(t[23]=n=>e(ve)("next")),class:we({disable:!e(fe)("next")})},null,8,["class"])])):V("",!0)])):V("",!0)],544),e(me)?(d(),F(xt,{key:0,file:e(K)[e(J)],idx:e(J),onContextMenuClick:e(ce)},null,8,["file","idx","onContextMenuClick"])):V("",!0)]),_:1},8,["spinning"])}}});const vn=yt(rn,[["__scopeId","data-v-645d16dc"]]);export{vn as default}; +import{d as Y,u as ie,g as U,_ as xe,c as a,a as re,P as X,D as Se,f as Pe,w as Xe,b as Ye,e as Ze,h as he,M as oe,i as et,j as tt,F as se,k as nt,l as at,o as d,m as F,n as i,p as u,q as v,r as e,s as T,t as rt,v as c,x as L,y as w,z as ne,A as ae,B as ot,C as V,E as st,G as lt,H as it,S as ut,I as dt,J as ct,K as pt,L as mt,N as we,O as vt,Q as ft,R as kt,T as bt,U as gt,V as Ct,W as _t,X as yt}from"./index-a4883aca.js";import{S as W,s as ht,L as wt,R as It,f as xt}from"./fullScreenContextMenu-d0f6d9eb.js";import{F as N,N as St,_ as Pt}from"./numInput-69617d97.js";import"./shortcut-c6713a64.js";import{D as Me,u as Mt,a as $t,b as At,c as Rt,d as Bt,e as Dt,f as Ft,s as Nt,g as Et,F as Tt}from"./FileItem-f87590d0.js";/* empty css *//* empty css */import"./db-a03371d5.js";var Vt=["class","style"],zt=function(){return{prefixCls:String,href:String,separator:X.any,overlay:X.any,onClick:Function}};const q=Y({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:zt(),slots:["separator","overlay"],setup:function(o,_){var f=_.slots,b=_.attrs,h=ie("breadcrumb",o),y=h.prefixCls,S=function(I,p){var s=U(f,o,"overlay");return s?a(Me,{overlay:s,placement:"bottom"},{default:function(){return[a("span",{class:"".concat(p,"-overlay-link")},[I,a(Se,null,null)])]}}):I};return function(){var P,I=(P=U(f,o,"separator"))!==null&&P!==void 0?P:"/",p=U(f,o),s=b.class,g=b.style,k=xe(b,Vt),m;return o.href!==void 0?m=a("a",re({class:"".concat(y.value,"-link"),onClick:o.onClick},k),[p]):m=a("span",re({class:"".concat(y.value,"-link"),onClick:o.onClick},k),[p]),m=S(m,y.value),p?a("span",{class:s,style:g},[m,I&&a("span",{class:"".concat(y.value,"-separator")},[I])]):null}}});var Ot=function(){return{prefixCls:String,routes:{type:Array},params:X.any,separator:X.any,itemRender:{type:Function}}};function jt(r,o){if(!r.breadcrumbName)return null;var _=Object.keys(o).join("|"),f=r.breadcrumbName.replace(new RegExp(":(".concat(_,")"),"g"),function(b,h){return o[h]||b});return f}function Ie(r){var o=r.route,_=r.params,f=r.routes,b=r.paths,h=f.indexOf(o)===f.length-1,y=jt(o,_);return h?a("span",null,[y]):a("a",{href:"#/".concat(b.join("/"))},[y])}const z=Y({compatConfig:{MODE:3},name:"ABreadcrumb",props:Ot(),slots:["separator","itemRender"],setup:function(o,_){var f=_.slots,b=ie("breadcrumb",o),h=b.prefixCls,y=b.direction,S=function(s,g){return s=(s||"").replace(/^\//,""),Object.keys(g).forEach(function(k){s=s.replace(":".concat(k),g[k])}),s},P=function(s,g,k){var m=et(s),x=S(g||"",k);return x&&m.push(x),m},I=function(s){var g=s.routes,k=g===void 0?[]:g,m=s.params,x=m===void 0?{}:m,M=s.separator,$=s.itemRender,A=$===void 0?Ie:$,R=[];return k.map(function(C){var B=S(C.path,x);B&&R.push(B);var O=[].concat(R),j=null;return C.children&&C.children.length&&(j=a(oe,null,{default:function(){return[C.children.map(function(E){return a(oe.Item,{key:E.path||E.breadcrumbName},{default:function(){return[A({route:E,params:x,routes:k,paths:P(O,E.path,x)})]}})})]}})),a(q,{overlay:j,separator:M,key:B||C.breadcrumbName},{default:function(){return[A({route:C,params:x,routes:k,paths:O})]}})})};return function(){var p,s,g,k=o.routes,m=o.params,x=m===void 0?{}:m,M=Pe(U(f,o)),$=(p=U(f,o,"separator"))!==null&&p!==void 0?p:"/",A=o.itemRender||f.itemRender||Ie;k&&k.length>0?g=I({routes:k,params:x,separator:$,itemRender:A}):M.length&&(g=M.map(function(C,B){return Xe(Ye(C.type)==="object"&&(C.type.__ANT_BREADCRUMB_ITEM||C.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Ze(C,{separator:$,key:B})}));var R=(s={},he(s,h.value,!0),he(s,"".concat(h.value,"-rtl"),y.value==="rtl"),s);return a("div",{class:R},[g])}}});var Lt=["separator","class"],Ut=function(){return{prefixCls:String}};const le=Y({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:Ut(),setup:function(o,_){var f=_.slots,b=_.attrs,h=ie("breadcrumb",o),y=h.prefixCls;return function(){var S;b.separator;var P=b.class,I=xe(b,Lt),p=Pe((S=f.default)===null||S===void 0?void 0:S.call(f));return a("span",re({class:["".concat(y.value,"-separator"),P]},I),[p.length>0?p:"/"])}}});z.Item=q;z.Separator=le;z.install=function(r){return r.component(z.name,z),r.component(q.name,q),r.component(le.name,le),r};N.useInjectFormItemContext=tt;N.ItemRest=se;N.install=function(r){return r.component(N.name,N),r.component(N.Item.name,N.Item),r.component(se.name,se),r};W.setDefaultIndicator=ht;W.install=function(r){return r.component(W.name,W),r};const Wt={class:"hint"},qt={class:"location-bar"},Gt={key:0},Kt=["onClick"],Qt={key:3,style:{"margin-left":"8px"}},Ht={class:"actions"},Jt=["onClick"],Xt={style:{width:"512px",background:"var(--zp-primary-background)",padding:"16px","border-radius":"4px","box-shadow":"0 0 4px var(--zp-secondary-background)",border:"1px solid var(--zp-secondary-background)"}},Yt={style:{padding:"4px"}},Zt={style:{padding:"4px"}},en={style:{padding:"4px"}},tn={key:0,class:"view"},nn={style:{padding:"16px 0 32px"}},an={key:0,class:"preview-switch"},rn=Y({__name:"stackView",props:{tabIdx:{},paneIdx:{},path:{},walkModePath:{},stackKey:{}},setup(r){const o=r,_=nt(),{scroller:f,stackViewEl:b,props:h,multiSelectedIdxs:y,spinning:S}=Mt().toRefs(),{currLocation:P,currPage:I,refresh:p,copyLocation:s,back:g,openNext:k,stack:m,quickMoveTo:x,addToSearchScanPathAndQuickMove:M,searchPathInfo:$,locInputValue:A,isLocationEditing:R,onLocEditEnter:C,onEditBtnClick:B,share:O,selectAll:j,onCreateFloderBtnClick:G,onWalkBtnClick:E,showWalkButton:ue}=$t(),{gridItems:$e,sortMethodConv:Ae,moreActionsDropdownShow:Z,sortedFiles:K,sortMethod:ee,itemSize:de,loadNextDir:Re,loadNextDirLoading:Be,canLoadNext:De,onScroll:Fe,cellWidth:Q}=At(),{onDrop:Ne,onFileDragStart:Ee,onFileDragEnd:Te}=Rt(),{onFileItemClick:Ve,onContextMenuClick:ce,showGenInfo:H,imageGenInfo:pe,q:ze}=Bt({openNext:k}),{previewIdx:J,onPreviewVisibleChange:Oe,previewing:me,previewImgMove:ve,canPreview:fe}=Dt(),{showMenuIdx:te}=Ft();return at(()=>o,()=>{h.value=o;const l=Nt.get(o.stackKey??"");l&&(m.value=l.slice())},{immediate:!0}),(l,t)=>{const je=vt,Le=ft,Ue=kt,ke=q,be=z,We=bt,qe=gt,ge=Ct,Ge=_t,Ke=oe,Ce=Me,Qe=St,_e=Pt,He=N,Je=W;return d(),F(Je,{spinning:e(S),size:"large"},{default:i(()=>[a(je,{style:{display:"none"}}),u("div",{ref_key:"stackViewEl",ref:b,onDragover:t[24]||(t[24]=v(()=>{},["prevent"])),onDrop:t[25]||(t[25]=v(n=>e(Ne)(n),["prevent"])),class:"container"},[a(Ue,{visible:e(H),"onUpdate:visible":t[1]||(t[1]=n=>T(H)?H.value=n:null),width:"70vw","mask-closable":"",onOk:t[2]||(t[2]=n=>H.value=!1)},{cancelText:i(()=>[]),default:i(()=>[a(Le,{active:"",loading:!e(ze).isIdle},{default:i(()=>[u("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto","z-index":"9999"},onDblclick:t[0]||(t[0]=n=>e(rt)(e(pe)))},[u("div",Wt,c(l.$t("doubleClickToCopy")),1),L(" "+c(e(pe)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),u("div",qt,[o.walkModePath?(d(),w("div",Gt,[a(We,null,{title:i(()=>[L(c(l.$t("walk-mode-move-message")),1)]),default:i(()=>[a(be,{style:{flex:"1"}},{default:i(()=>[(d(!0),w(ne,null,ae(e(m),(n,D)=>(d(),F(ke,{key:D},{default:i(()=>[u("span",null,c(n.curr==="/"?l.$t("root"):n.curr.replace(/:\/$/,l.$t("drive"))),1)]),_:2},1024))),128))]),_:1})]),_:1})])):(d(),w("div",{key:1,class:"breadcrumb",style:ot({flex:e(R)?1:""})},[e(R)?(d(),F(qe,{key:0,style:{flex:"1"},value:e(A),"onUpdate:value":t[3]||(t[3]=n=>T(A)?A.value=n:null),onClick:t[4]||(t[4]=v(()=>{},["stop"])),onPressEnter:e(C)},null,8,["value","onPressEnter"])):(d(),F(be,{key:1,style:{flex:"1"}},{default:i(()=>[(d(!0),w(ne,null,ae(e(m),(n,D)=>(d(),F(ke,{key:D},{default:i(()=>[u("a",{onClick:v(ye=>e(g)(D),["prevent"])},c(n.curr==="/"?l.$t("root"):n.curr.replace(/:\/$/,l.$t("drive"))),9,Kt)]),_:2},1024))),128))]),_:1})),e(R)?(d(),F(ge,{key:2,size:"small",onClick:e(C),type:"primary"},{default:i(()=>[L(c(l.$t("go")),1)]),_:1},8,["onClick"])):(d(),w("div",Qt,[u("a",{onClick:t[5]||(t[5]=v((...n)=>e(s)&&e(s)(...n),["prevent"])),style:{"margin-right":"4px"}},c(l.$t("copy")),1),u("a",{onClick:t[6]||(t[6]=v((...n)=>e(B)&&e(B)(...n),["prevent","stop"]))},c(l.$t("edit")),1)]))],4)),u("div",Ht,[u("a",{class:"opt",onClick:t[7]||(t[7]=v((...n)=>e(p)&&e(p)(...n),["prevent"]))},c(l.$t("refresh")),1),e(ue)?(d(),w("a",{key:0,class:"opt",onClick:t[8]||(t[8]=v((...n)=>e(E)&&e(E)(...n),["prevent"]))}," Walk ")):V("",!0),u("a",{class:"opt",onClick:t[9]||(t[9]=v((...n)=>e(j)&&e(j)(...n),["prevent","stop"]))},c(l.$t("selectAll")),1),e(st)?V("",!0):(d(),w("a",{key:1,class:"opt",onClick:t[10]||(t[10]=v((...n)=>e(O)&&e(O)(...n),["prevent"]))},c(l.$t("share")),1)),a(Ce,null,{overlay:i(()=>[a(Ke,null,{default:i(()=>[(d(!0),w(ne,null,ae(e(_).quickMovePaths,n=>(d(),F(Ge,{key:n.dir},{default:i(()=>[u("a",{onClick:v(D=>e(x)(n.dir),["prevent"])},c(n.zh),9,Jt)]),_:2},1024))),128))]),_:1})]),default:i(()=>[u("a",{class:"opt",onClick:t[11]||(t[11]=v(()=>{},["prevent"]))},[L(c(l.$t("quickMove"))+" ",1),a(e(Se))])]),_:1}),a(Ce,{trigger:["click"],visible:e(Z),"onUpdate:visible":t[20]||(t[20]=n=>T(Z)?Z.value=n:null),placement:"bottomLeft",getPopupContainer:n=>n.parentNode},{overlay:i(()=>[u("div",Xt,[a(He,lt(it({labelCol:{span:6},wrapperCol:{span:18}})),{default:i(()=>[a(_e,{label:l.$t("gridCellWidth")},{default:i(()=>[a(Qe,{modelValue:e(Q),"onUpdate:modelValue":t[13]||(t[13]=n=>T(Q)?Q.value=n:null),max:1024,min:64,step:64},null,8,["modelValue"])]),_:1},8,["label"]),a(_e,{label:l.$t("sortingMethod")},{default:i(()=>[a(e(ut),{value:e(ee),"onUpdate:value":t[14]||(t[14]=n=>T(ee)?ee.value=n:null),onClick:t[15]||(t[15]=v(()=>{},["stop"])),conv:e(Ae),options:e(dt)},null,8,["value","conv","options"])]),_:1},8,["label"]),u("div",Yt,[e($)?e($).can_delete?(d(),w("a",{key:1,onClick:t[17]||(t[17]=v((...n)=>e(M)&&e(M)(...n),["prevent"]))},c(l.$t("removeFromSearchScanPathAndQuickMove")),1)):V("",!0):(d(),w("a",{key:0,onClick:t[16]||(t[16]=v((...n)=>e(M)&&e(M)(...n),["prevent"]))},c(l.$t("addToSearchScanPathAndQuickMove")),1))]),u("div",Zt,[u("a",{onClick:t[18]||(t[18]=v(n=>e(ct)(e(P)+"/"),["prevent"]))},c(l.$t("openWithLocalFileBrowser")),1)]),u("div",en,[u("a",{onClick:t[19]||(t[19]=v((...n)=>e(G)&&e(G)(...n),["prevent"]))},c(l.$t("createFolder")),1)])]),_:1},16)])]),default:i(()=>[u("a",{class:"opt",onClick:t[12]||(t[12]=v(()=>{},["prevent"]))},c(l.$t("more")),1)]),_:1},8,["visible","getPopupContainer"])])]),e(I)?(d(),w("div",tn,[a(e(Et),{class:"file-list",items:e(K),ref_key:"scroller",ref:f,onScroll:e(Fe),"item-size":e(de).first,"key-field":"fullpath","item-secondary-size":e(de).second,gridItems:e($e)},pt({default:i(({item:n,index:D})=>[a(Tt,{idx:parseInt(D),file:n,"full-screen-preview-image-url":e(K)[e(J)]?e(mt)(e(K)[e(J)]):"","show-menu-idx":e(te),"onUpdate:showMenuIdx":t[21]||(t[21]=ye=>T(te)?te.value=ye:null),selected:e(y).includes(D),"cell-width":e(Q),onFileItemClick:e(Ve),onDragstart:e(Ee),onDragend:e(Te),onPreviewVisibleChange:e(Oe),onContextMenuClick:e(ce)},null,8,["idx","file","full-screen-preview-image-url","show-menu-idx","selected","cell-width","onFileItemClick","onDragstart","onDragend","onPreviewVisibleChange","onContextMenuClick"])]),_:2},[o.walkModePath?{name:"after",fn:i(()=>[u("div",nn,[a(ge,{onClick:e(Re),loading:e(Be),block:"",type:"primary",disabled:!e(De),ghost:""},{default:i(()=>[L(c(l.$t("loadNextPage")),1)]),_:1},8,["onClick","loading","disabled"])])]),key:"0"}:void 0]),1032,["items","onScroll","item-size","item-secondary-size","gridItems"]),e(me)?(d(),w("div",an,[a(e(wt),{onClick:t[22]||(t[22]=n=>e(ve)("prev")),class:we({disable:!e(fe)("prev")})},null,8,["class"]),a(e(It),{onClick:t[23]||(t[23]=n=>e(ve)("next")),class:we({disable:!e(fe)("next")})},null,8,["class"])])):V("",!0)])):V("",!0)],544),e(me)?(d(),F(xt,{key:0,file:e(K)[e(J)],idx:e(J),onContextMenuClick:e(ce)},null,8,["file","idx","onContextMenuClick"])):V("",!0)]),_:1},8,["spinning"])}}});const vn=yt(rn,[["__scopeId","data-v-e5dabb69"]]);export{vn as default}; diff --git a/vue/dist/assets/stackView-54b34abc.css b/vue/dist/assets/stackView-c5da5c16.css similarity index 77% rename from vue/dist/assets/stackView-54b34abc.css rename to vue/dist/assets/stackView-c5da5c16.css index 3901460..e7f4bf7 100644 --- a/vue/dist/assets/stackView-54b34abc.css +++ b/vue/dist/assets/stackView-c5da5c16.css @@ -1 +1 @@ -.ant-breadcrumb{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";color:#00000073;font-size:14px}.ant-breadcrumb .anticon{font-size:14px}.ant-breadcrumb a{color:#00000073;transition:color .3s}.ant-breadcrumb a:hover{color:#de632f}.ant-breadcrumb>span:last-child{color:#000000d9}.ant-breadcrumb>span:last-child a{color:#000000d9}.ant-breadcrumb>span:last-child .ant-breadcrumb-separator{display:none}.ant-breadcrumb-separator{margin:0 8px;color:#00000073}.ant-breadcrumb-link>.anticon+span,.ant-breadcrumb-link>.anticon+a{margin-left:4px}.ant-breadcrumb-overlay-link>.anticon{margin-left:4px}.ant-breadcrumb-rtl{direction:rtl}.ant-breadcrumb-rtl:before{display:table;content:""}.ant-breadcrumb-rtl:after{display:table;clear:both;content:""}.ant-breadcrumb-rtl>span{float:right}.ant-breadcrumb-rtl .ant-breadcrumb-link>.anticon+span,.ant-breadcrumb-rtl .ant-breadcrumb-link>.anticon+a{margin-right:4px;margin-left:0}.ant-breadcrumb-rtl .ant-breadcrumb-overlay-link>.anticon{margin-right:4px;margin-left:0}.nprogress{pointer-events:none}.nprogress .bar{background:#29d;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}.nprogress .peg{display:block;position:absolute;right:0px;width:100px;height:100%;box-shadow:0 0 10px #29d,0 0 5px #29d;opacity:1;-webkit-transform:rotate(3deg) translate(0px,-4px);-ms-transform:rotate(3deg) translate(0px,-4px);transform:rotate(3deg) translateY(-4px)}.nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}.nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:solid 2px transparent;border-top-color:#29d;border-left-color:#29d;border-radius:50%;-webkit-animation:nprogress-spinner .4s linear infinite;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent .nprogress .spinner,.nprogress-custom-parent .nprogress .bar{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.preview-switch[data-v-645d16dc]{position:fixed;top:0;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;z-index:11111;pointer-events:none}.preview-switch>*[data-v-645d16dc]{color:#fff;margin:16px;font-size:4em;pointer-events:all;cursor:pointer}.preview-switch>*.disable[data-v-645d16dc]{opacity:0;pointer-events:none;cursor:none}.breadcrumb[data-v-645d16dc]{display:flex;align-items:center}.breadcrumb>*[data-v-645d16dc]{margin-right:4px}.container[data-v-645d16dc]{background:var(--zp-secondary-background);height:var(--pane-max-height)}.location-bar[data-v-645d16dc]{padding:4px 16px;background:var(--zp-primary-background);border-bottom:1px solid var(--zp-border);display:flex;align-items:center;justify-content:space-between}.location-bar .actions[data-v-645d16dc]{display:flex;align-items:center;flex-shrink:0}.location-bar a.opt[data-v-645d16dc]{margin-left:8px}.view[data-v-645d16dc]{padding:8px;height:calc(100vh - 48px)}.view .file-list[data-v-645d16dc]{list-style:none;padding:8px;height:100%;overflow:auto}.hint[data-v-645d16dc]{padding:4px;border:4px;background:var(--zp-secondary-background);border:1px solid var(--zp-border)} +.ant-breadcrumb{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";color:#00000073;font-size:14px}.ant-breadcrumb .anticon{font-size:14px}.ant-breadcrumb a{color:#00000073;transition:color .3s}.ant-breadcrumb a:hover{color:#de632f}.ant-breadcrumb>span:last-child{color:#000000d9}.ant-breadcrumb>span:last-child a{color:#000000d9}.ant-breadcrumb>span:last-child .ant-breadcrumb-separator{display:none}.ant-breadcrumb-separator{margin:0 8px;color:#00000073}.ant-breadcrumb-link>.anticon+span,.ant-breadcrumb-link>.anticon+a{margin-left:4px}.ant-breadcrumb-overlay-link>.anticon{margin-left:4px}.ant-breadcrumb-rtl{direction:rtl}.ant-breadcrumb-rtl:before{display:table;content:""}.ant-breadcrumb-rtl:after{display:table;clear:both;content:""}.ant-breadcrumb-rtl>span{float:right}.ant-breadcrumb-rtl .ant-breadcrumb-link>.anticon+span,.ant-breadcrumb-rtl .ant-breadcrumb-link>.anticon+a{margin-right:4px;margin-left:0}.ant-breadcrumb-rtl .ant-breadcrumb-overlay-link>.anticon{margin-right:4px;margin-left:0}.nprogress{pointer-events:none}.nprogress .bar{background:#29d;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}.nprogress .peg{display:block;position:absolute;right:0px;width:100px;height:100%;box-shadow:0 0 10px #29d,0 0 5px #29d;opacity:1;-webkit-transform:rotate(3deg) translate(0px,-4px);-ms-transform:rotate(3deg) translate(0px,-4px);transform:rotate(3deg) translateY(-4px)}.nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}.nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:solid 2px transparent;border-top-color:#29d;border-left-color:#29d;border-radius:50%;-webkit-animation:nprogress-spinner .4s linear infinite;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent .nprogress .spinner,.nprogress-custom-parent .nprogress .bar{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.preview-switch[data-v-e5dabb69]{position:fixed;top:0;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;z-index:11111;pointer-events:none}.preview-switch>*[data-v-e5dabb69]{color:#fff;margin:16px;font-size:4em;pointer-events:all;cursor:pointer}.preview-switch>*.disable[data-v-e5dabb69]{opacity:0;pointer-events:none;cursor:none}.breadcrumb[data-v-e5dabb69]{display:flex;align-items:center}.breadcrumb>*[data-v-e5dabb69]{margin-right:4px}.container[data-v-e5dabb69]{background:var(--zp-secondary-background);height:var(--pane-max-height)}.location-bar[data-v-e5dabb69]{padding:4px 16px;background:var(--zp-primary-background);border-bottom:1px solid var(--zp-border);display:flex;align-items:center;justify-content:space-between}.location-bar .actions[data-v-e5dabb69]{display:flex;align-items:center;flex-shrink:0}.location-bar a.opt[data-v-e5dabb69]{margin-left:8px}.view[data-v-e5dabb69]{padding:8px;height:calc(100vh - 48px)}.view .file-list[data-v-e5dabb69]{list-style:none;padding:8px;height:100%;overflow:auto}.hint[data-v-e5dabb69]{padding:4px;border:4px;background:var(--zp-secondary-background);border:1px solid var(--zp-border)} diff --git a/vue/dist/index.html b/vue/dist/index.html index 95d25dd..5612abd 100644 --- a/vue/dist/index.html +++ b/vue/dist/index.html @@ -7,7 +7,7 @@ Infinite Image Browsing - + diff --git a/vue/src/i18n.ts b/vue/src/i18n.ts index 0674969..0d8fc8f 100644 --- a/vue/src/i18n.ts +++ b/vue/src/i18n.ts @@ -198,11 +198,13 @@ const zh = { 这项警告只会在配置了gradio-auth时出现`, secretKeyMustBeConfigured: '必须配置Secret Key', deleteOneOnlySkipConfirm: '删除单个文件时不进行确认', - resetOnGlobalSettingsPage: '你可以在全局设置页重置' + resetOnGlobalSettingsPage: '你可以在全局设置页重置', + privacyAndSecurity: '安全与隐私' } const en: Record = { //! MissingTranslations: "Mark missing translations like this""shortcutKey": "Keyboard Shortcuts", //! MissingTranslations + privacyAndSecurity: 'Security & Privacy', deleteOneOnlySkipConfirm: 'Do not confirm when deleting a single file', resetOnGlobalSettingsPage: 'You can reset on the global settings page', secretKeyMustBeConfigured: 'Secret Key must be configured', diff --git a/vue/src/page/SplitViewTab/emptyStartup.vue b/vue/src/page/SplitViewTab/emptyStartup.vue index 6f759fb..4fca125 100644 --- a/vue/src/page/SplitViewTab/emptyStartup.vue +++ b/vue/src/page/SplitViewTab/emptyStartup.vue @@ -131,9 +131,9 @@ const onRemoveQuickPathClick = (path: string) => {
- {{ - $t('document') }} - Github + {{ $t('privacyAndSecurity') }} + {{ $t('changlog') }} {{ $t('faq') }} @@ -182,7 +182,7 @@ const onRemoveQuickPathClick = (path: string) => {
  • - {{ dir.zh }} + {{ dir.zh }} {{ $t('remove') }}
  • @@ -339,5 +339,6 @@ const onRemoveQuickPathClick = (path: string) => { .text { flex: 1; font-size: 16px; + word-break: break-all; }