115不大助手 (full)

Make 115 taerg again!

// ==UserScript==
// @name         115不大助手 (full)
// @namespace    com.cloud115.enhancer
// @version      0.7.17
// @author       生瓜太保
// @description  Make 115 taerg again!
// @license      MIT
// @homepage     https://greasyfork.org/zh-CN/scripts/474231-115不大助手?locale_override=1
// @supportURL   https://greasyfork.org/zh-CN/scripts/474231-115不大助手?locale_override=1
// @match        https://*.115.com/*
// @match        https://115.com/*
// @match        https://v.anxia.com/*
// @connect      *
// @grant        GM_addStyle
// @grant        GM_deleteValue
// @grant        GM_getValue
// @grant        GM_info
// @grant        GM_openInTab
// @grant        GM_registerMenuCommand
// @grant        GM_setClipboard
// @grant        GM_setValue
// @grant        GM_xmlhttpRequest
// @grant        unsafeWindow
// @run-at       document-body
// ==/UserScript==

(e=>{if(typeof GM_addStyle=="function"){GM_addStyle(e);return}const o=document.createElement("style");o.textContent=e,document.head.append(o)})(` @charset "UTF-8";.pure-button{display:inline-block;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;user-select:none;box-sizing:border-box}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-group{letter-spacing:-.31em;text-rendering:optimizespeed}.opera-only :-o-prefocus,.pure-button-group{word-spacing:-.43em}.pure-button-group .pure-button{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-button{font-family:inherit;font-size:100%;padding:.5em 1em;color:#000c;border:none transparent;background-color:#e6e6e6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:focus,.pure-button:hover{background-image:linear-gradient(transparent,#0000000d 40%,#0000001a)}.pure-button:focus{outline:0}.pure-button-active,.pure-button:active{box-shadow:0 0 0 1px #00000026 inset,0 0 6px #0003 inset;border-color:#000}.pure-button-disabled,.pure-button-disabled:active,.pure-button-disabled:focus,.pure-button-disabled:hover,.pure-button[disabled]{border:none;background-image:none;opacity:.4;cursor:not-allowed;box-shadow:none;pointer-events:none}.pure-button-hidden{display:none}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}.pure-button-group .pure-button{margin:0;border-radius:0;border-right:1px solid rgba(0,0,0,.2)}.pure-button-group .pure-button:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.pure-button-group .pure-button:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:none}.pure-table{border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid #cbcbcb}.pure-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.pure-table td,.pure-table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:.5em 1em}.pure-table thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}.pure-table td{background-color:transparent}.pure-table-odd td{background-color:#f2f2f2}.pure-table-striped tr:nth-child(2n-1) td{background-color:#f2f2f2}.pure-table-bordered td{border-bottom:1px solid #cbcbcb}.pure-table-bordered tbody>tr:last-child>td{border-bottom-width:0}.pure-table-horizontal td,.pure-table-horizontal th{border-width:0 0 1px 0;border-bottom:1px solid #cbcbcb}.pure-table-horizontal tbody>tr:last-child>td{border-bottom-width:0}/*!
Pure v3.0.0
Copyright 2013 Yahoo!
Licensed under the BSD License.
https://github.com/pure-css/pure/blob/master/LICENSE
*/.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form select,.pure-form textarea{padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;vertical-align:middle;box-sizing:border-box}.pure-form input:not([type]){padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;box-sizing:border-box}.pure-form input[type=color]{padding:.2em .5em}.pure-form input[type=color]:focus,.pure-form input[type=date]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=email]:focus,.pure-form input[type=month]:focus,.pure-form input[type=number]:focus,.pure-form input[type=password]:focus,.pure-form input[type=search]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=text]:focus,.pure-form input[type=time]:focus,.pure-form input[type=url]:focus,.pure-form input[type=week]:focus,.pure-form select:focus,.pure-form textarea:focus{outline:0;border-color:#129fea}.pure-form input:not([type]):focus{outline:0;border-color:#129fea}.pure-form input[type=checkbox]:focus,.pure-form input[type=file]:focus,.pure-form input[type=radio]:focus{outline:thin solid #129FEA;outline:1px auto #129FEA}.pure-form .pure-checkbox,.pure-form .pure-radio{margin:.5em 0;display:block}.pure-form input[type=color][disabled],.pure-form input[type=date][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=email][disabled],.pure-form input[type=month][disabled],.pure-form input[type=number][disabled],.pure-form input[type=password][disabled],.pure-form input[type=search][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=text][disabled],.pure-form input[type=time][disabled],.pure-form input[type=url][disabled],.pure-form input[type=week][disabled],.pure-form select[disabled],.pure-form textarea[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input:not([type])[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly]{background-color:#eee;color:#777;border-color:#ccc}.pure-form input:focus:invalid,.pure-form select:focus:invalid,.pure-form textarea:focus:invalid{color:#b94a48;border-color:#e9322d}.pure-form input[type=checkbox]:focus:invalid:focus,.pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus{outline-color:#e9322d}.pure-form select{height:2.25em;border:1px solid #ccc;background-color:#fff}.pure-form select[multiple]{height:auto}.pure-form label{margin:.5em 0 .2em}.pure-form fieldset{margin:0;padding:.35em 0 .75em;border:0}.pure-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.pure-form-stacked input[type=color],.pure-form-stacked input[type=date],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=email],.pure-form-stacked input[type=file],.pure-form-stacked input[type=month],.pure-form-stacked input[type=number],.pure-form-stacked input[type=password],.pure-form-stacked input[type=search],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=text],.pure-form-stacked input[type=time],.pure-form-stacked input[type=url],.pure-form-stacked input[type=week],.pure-form-stacked label,.pure-form-stacked select,.pure-form-stacked textarea{display:block;margin:.25em 0}.pure-form-stacked input:not([type]){display:block;margin:.25em 0}.pure-form-aligned input,.pure-form-aligned select,.pure-form-aligned textarea,.pure-form-message-inline{display:inline-block;vertical-align:middle}.pure-form-aligned textarea{vertical-align:top}.pure-form-aligned .pure-control-group{margin-bottom:.5em}.pure-form-aligned .pure-control-group label{text-align:right;display:inline-block;vertical-align:middle;width:10em;margin:0 1em 0 0}.pure-form-aligned .pure-controls{margin:1.5em 0 0 11em}.pure-form .pure-input-rounded,.pure-form input.pure-input-rounded{border-radius:2em;padding:.5em 1em}.pure-form .pure-group fieldset{margin-bottom:10px}.pure-form .pure-group input,.pure-form .pure-group textarea{display:block;padding:10px;margin:0 0 -1px;border-radius:0;position:relative;top:-1px}.pure-form .pure-group input:focus,.pure-form .pure-group textarea:focus{z-index:3}.pure-form .pure-group input:first-child,.pure-form .pure-group textarea:first-child{top:1px;border-radius:4px 4px 0 0;margin:0}.pure-form .pure-group input:first-child:last-child,.pure-form .pure-group textarea:first-child:last-child{top:1px;border-radius:4px;margin:0}.pure-form .pure-group input:last-child,.pure-form .pure-group textarea:last-child{top:-2px;border-radius:0 0 4px 4px;margin:0}.pure-form .pure-group button{margin:.35em 0}.pure-form .pure-input-1{width:100%}.pure-form .pure-input-3-4{width:75%}.pure-form .pure-input-2-3{width:66%}.pure-form .pure-input-1-2{width:50%}.pure-form .pure-input-1-3{width:33%}.pure-form .pure-input-1-4{width:25%}.pure-form-message-inline{display:inline-block;padding-left:.3em;color:#666;vertical-align:middle;font-size:.875em}.pure-form-message{display:block;color:#666;font-size:.875em}@media only screen and (max-width :480px){.pure-form button[type=submit]{margin:.7em 0 0}.pure-form input:not([type]),.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form label{margin-bottom:.3em;display:block}.pure-group input:not([type]),.pure-group input[type=color],.pure-group input[type=date],.pure-group input[type=datetime-local],.pure-group input[type=datetime],.pure-group input[type=email],.pure-group input[type=month],.pure-group input[type=number],.pure-group input[type=password],.pure-group input[type=search],.pure-group input[type=tel],.pure-group input[type=text],.pure-group input[type=time],.pure-group input[type=url],.pure-group input[type=week]{margin-bottom:0}.pure-form-aligned .pure-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.pure-form-aligned .pure-controls{margin:1.5em 0 0}.pure-form-message,.pure-form-message-inline{display:block;font-size:.75em;padding:.2em 0 .8em}}.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}.v-popper__popper{z-index:10000;top:0;left:0;outline:none}.v-popper__popper.v-popper__popper--hidden{visibility:hidden;opacity:0;transition:opacity .15s,visibility .15s;pointer-events:none}.v-popper__popper.v-popper__popper--shown{visibility:visible;opacity:1;transition:opacity .15s}.v-popper__popper.v-popper__popper--skip-transition,.v-popper__popper.v-popper__popper--skip-transition>.v-popper__wrapper{transition:none!important}.v-popper__backdrop{position:absolute;top:0;left:0;width:100%;height:100%;display:none}.v-popper__inner{position:relative;box-sizing:border-box;overflow-y:auto}.v-popper__inner>div{position:relative;z-index:1;max-width:inherit;max-height:inherit}.v-popper__arrow-container{position:absolute;width:10px;height:10px}.v-popper__popper--arrow-overflow .v-popper__arrow-container,.v-popper__popper--no-positioning .v-popper__arrow-container{display:none}.v-popper__arrow-inner,.v-popper__arrow-outer{border-style:solid;position:absolute;top:0;left:0;width:0;height:0}.v-popper__arrow-inner{visibility:hidden;border-width:7px}.v-popper__arrow-outer{border-width:6px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{left:-2px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{left:-1px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer{border-bottom-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{border-top-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-top-color:transparent!important}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{top:-4px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{top:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{top:-1px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{border-left-width:0;border-left-color:transparent!important;border-top-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{left:-4px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{left:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer{border-right-width:0;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner{left:-2px}.v-popper--theme-tooltip .v-popper__inner{background:#000c;color:#fff;border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}.v-popper--theme-dropdown .v-popper__inner{background:#fff;color:#000;border-radius:6px;border:1px solid #ddd;box-shadow:0 6px 30px #0000001a}.v-popper--theme-dropdown .v-popper__arrow-inner{visibility:visible;border-color:#fff}.v-popper--theme-dropdown .v-popper__arrow-outer{border-color:#ddd}.text-center{text-align:center}.text-bold{font-weight:700}.text-cross{text-decoration:line-through}.text-primary{color:#1890ff}.text-success{color:#13ce66}.text-warning{color:#ffba00}.text-danger{color:#ff4949}.text-info{color:#909399}.ce-label{padding:2px 4px;background:#909399;color:#fff;border-radius:4px}.ce-label.ce-label-primary{background:#1890ff}.ce-label.ce-label-warning{background:#ffba00}.ce-label.ce-label-danger{background:#ff4949}.ce-label.ce-label-success{background:#13ce66}.ce-label.ce-label-primary-plain{color:#409eff;background:#ecf5ff}.ce-tag-plain{padding:1px 4px;border:1px solid #1890ff;border-radius:4px}input.ce-checkbox{width:20px;height:20px;cursor:pointer}.ce-hidden{display:none!important}.tabs-component .tabs-component-tabs{border:solid 1px #ddd;border-radius:6px;margin-bottom:5px}@media (min-width: 700px){.tabs-component .tabs-component-tabs{border:0;align-items:stretch;display:flex;justify-content:flex-start;margin-bottom:1px}}.tabs-component .tabs-component-tabs .tabs-component-tab{color:#999;font-size:14px;font-weight:600;margin-right:0;list-style:none;border-bottom:dotted 1px #ddd}.tabs-component .tabs-component-tabs .tabs-component-tab:hover{color:#666}.tabs-component .tabs-component-tabs .tabs-component-tab.is-disabled *{color:#cdcdcd;cursor:not-allowed!important}.tabs-component .tabs-component-tabs .tabs-component-tab.is-active{color:#000}.tabs-component .tabs-component-tabs .tabs-component-tab .tabs-component-tab-a{align-items:center;color:inherit;display:flex;padding:.75em 1em;text-decoration:none}@media (min-width: 700px){.tabs-component .tabs-component-tabs .tabs-component-tab{background-color:#fff;border:solid 1px #ddd;border-radius:3px 3px 0 0;margin-right:.5em;transform:translateY(2px);transition:transform .3s ease}.tabs-component .tabs-component-tabs .tabs-component-tab.is-active{border-bottom:solid 1px #fff;z-index:2;transform:translateY(2px)}}.tabs-component .tabs-component-panels{padding:1em 0}@media (min-width: 700px){.tabs-component .tabs-component-panels{background-color:#fff;border:solid 1px #ddd;border-radius:0 6px 6px;box-shadow:0 0 10px #0000000d;padding:1em 2em}}.tabs-component .tabs-component-btn{cursor:pointer;background:#e1ecf4;border-radius:3px;border:1px solid #7aa7c7;padding:4px 8px;color:#39739d}.tabs-component .tabs-component-btn:hover{background-color:#b3d3ea;color:#2c5777}.tabs-component .tabs-component-btn:active{background-color:#a0c7e4;box-shadow:none;color:#2c5777}.ce-tips{background:#eee;border-radius:4px;padding:4px;font-size:12px;color:#595959;margin-bottom:10px}.ce-hr{border:0;height:1px;background-image:linear-gradient(to right,#0000,#ccc,#0000)}.ce-config input[type=checkbox]{width:18px;height:18px;cursor:pointer}.ce-config legend{font-size:16px;color:#1890ff}.ce-config-help{font-size:11px;cursor:pointer}.ce-ec-detail{text-align:left;font-size:14px}.ce-ec-detail span{color:#1890ff;display:inline-block;width:90px;text-align:right}.swal2-container{z-index:99999999!important}.ce-swal-text-left .swal2-html-container{text-align:left!important}.swal2-checkbox input{width:20px;height:20px;cursor:pointer}div[class^=fp-].hidden-watermark{display:none!important}.ce-custom-url-help{position:fixed;top:0;left:0;z-index:10000;width:430px;height:100%;background:#fff;font-size:12px}.ce-custom-url-help .ce-custom-url-help-body{height:80%;overflow-y:auto;padding:20px 20px 300px}.ce-custom-url-help h1 a{float:right;color:#1e87f0;font-size:14px}.ce-custom-url-help h1 a:hover{color:#1e87f0;text-decoration:underline}.ce-custom-url-help table{width:100%;margin-bottom:20px}.ce-custom-url-help .ce-variable{cursor:pointer;color:#1e87f0;font-size:14px}.ce-custom-url-help .ce-variable:hover{color:#093d71}.ce-menu:not(.sub-item){background:#fffcea}.ce-menu img.ce-menu-icon{float:left;width:12px;height:12px;margin-right:4px}.ce-menu.list-item-hover-menu i.ce-menu-icon.icon-operate{scale:.75;margin-top:-4px}.ce-menu.list-item-hover-menu.ce-menu-parent{position:relative;float:left;cursor:pointer}.ce-menu.list-item-hover-menu.ce-menu-parent:after{content:"";position:absolute;top:50%;right:0;width:1px;height:14px;margin-top:-7px;background:#2777f8cc;pointer-events:none}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-trigger{padding:0 12px;color:#2777f8}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-trigger:before{content:"\u2228";margin-right:4px;font-size:12px}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;left:0;padding:4px;border-radius:4px;display:none;text-align:center;width:160px}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown.ce-menu-dropdown-active{display:block}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown .list-item-hover-menu-sub{margin:2px 0;background:#eee;color:#2877f8;width:100%;border-radius:4px;padding:6px 12px;line-height:12px;box-sizing:border-box}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown .list-item-hover-menu-sub:hover{background-color:#f3e882}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown .list-item-hover-menu-sub:after{display:none}.ce-menu.selection-menu.ce-menu-parent{position:relative;float:left;cursor:pointer}.ce-menu.selection-menu.ce-menu-parent:after{content:"";position:absolute;top:50%;right:0;width:1px;height:14px;margin-top:-7px;background:#2777f8cc;pointer-events:none}.ce-menu.selection-menu.ce-menu-parent .ce-menu-trigger{color:#2777f8}.ce-menu.selection-menu.ce-menu-parent .ce-menu-trigger:before{content:"\u2228";margin-right:4px;font-size:12px}.ce-menu.selection-menu.ce-menu-parent.ce-menu-dropdown-opened .ce-menu-trigger{color:#fff}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;top:30px;left:0;width:160px;padding:4px;border-radius:4px;display:none;text-align:left}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown.ce-menu-dropdown-active{display:block}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub{color:#2877f8;border-radius:4px;text-align:left;display:block;width:100%;box-sizing:border-box;padding-left:4px;padding-right:4px;font-size:12px;background:transparent;cursor:pointer}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub span{font-weight:400;float:inherit}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub .ce-menu-icon{float:unset}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub:hover{background-color:#f3e882}.ce-menu.dir-context-menu>a img.ce-menu-icon{float:none;width:18px;height:18px;position:absolute;top:50%;left:14px;margin-top:-10px}.ce-menu.dir-context-menu>img.ce-menu-icon{position:absolute;left:14px;top:8px}.ce-menu.dir-context-menu.ce-menu-parent{position:relative;cursor:pointer;padding:6px 0}.ce-menu.dir-context-menu.ce-menu-parent:after{content:">";position:absolute;opacity:.5;right:10px;pointer-events:none}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-trigger{margin-left:43px;color:#2777f8}.ce-menu.dir-context-menu.ce-menu-parent.ce-menu-dropdown-opened{background:#f3e882}.ce-menu.dir-context-menu.ce-menu-parent.ce-menu-dropdown-opened .ce-menu-trigger{color:#1c0ccf}.ce-menu.dir-context-menu.ce-menu-parent.ce-menu-dropdown-opened:after{opacity:0}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;top:0;left:100%;width:160px;padding:4px;border-radius:4px;display:none;text-align:left}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown.ce-menu-dropdown-active{display:block}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown .dir-context-menu-sub{color:#2877f8;border-radius:4px;text-align:left;display:block;width:100%;box-sizing:border-box;padding:4px 8px;font-size:12px;background:transparent;cursor:pointer}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown .dir-context-menu-sub span{font-weight:400;float:inherit}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown .dir-context-menu-sub:hover{background-color:#f3e882}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-icon{width:18px;height:18px;margin-right:8px}.ce-menu.list-item-context-menu.ce-menu-parent{position:relative;cursor:pointer;padding:6px 0}.ce-menu.list-item-context-menu.ce-menu-parent:after{content:">";position:absolute;opacity:.5;right:10px;pointer-events:none}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-trigger{margin-left:43px;color:#2777f8}.ce-menu.list-item-context-menu.ce-menu-parent.ce-menu-dropdown-opened{background:#f3e882}.ce-menu.list-item-context-menu.ce-menu-parent.ce-menu-dropdown-opened .ce-menu-trigger{color:#1c0ccf}.ce-menu.list-item-context-menu.ce-menu-parent.ce-menu-dropdown-opened:after{opacity:0}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;top:0;left:100%;width:160px;padding:4px;border-radius:4px;display:none;text-align:left}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown.ce-menu-dropdown-active{display:block}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown .list-item-context-menu-sub{color:#2877f8;border-radius:4px;text-align:left;display:block;width:100%;box-sizing:border-box;padding:4px 8px;font-size:12px;background:transparent;cursor:pointer}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown .list-item-context-menu-sub span{font-weight:400;float:inherit}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown .list-item-context-menu-sub:hover{background-color:#f3e882}.context-menu.menu-upward{max-height:400px!important;overflow:unset!important}.ce-menu-divider{height:1px!important;display:block!important;background-color:#edeeef!important}.ce-menu-divider:after{display:none!important}.list-item-hover-menu .ce-menu-divider{height:6px!important;background-color:transparent!important}div#js_operate_box.only-icon li[menu] span{display:none}.list-contents{padding-bottom:300px}.header-name a.ce-open-dir-context-menu{cursor:pointer;background:#f2f4f8;border-radius:4px;padding:0 6px;color:#1890ff;margin-left:10px}.header-size a.ce-size-sort{cursor:pointer;background:#f2f4f8;border-radius:4px;padding:0 6px;color:#8c97a0;margin-left:10px}.header-size a.ce-size-sort i{display:none}.header-size a.ce-size-sort.by-desc{background-color:#fdc94a;color:#1a2734}.header-size a.ce-size-sort.by-desc i.icon-sort-desc{display:inline-block}.header-size a.ce-size-sort.by-asc{background-color:#fdc94a;color:#1a2734}.header-size a.ce-size-sort.by-asc i.icon-sort-asc{display:inline-block}.header-size a.ce-size-sort.ce-size-sort-ing{cursor:no-drop}.ce-offline-config{max-height:70vh;overflow-y:auto}.ce-offline-config .ce-tips{margin-top:20px;margin-left:56px}.ce-offline-config .pure-form-message{margin-left:56px}.ce-offline-exporter{position:absolute;left:140px;top:62px;background:#f4f2ff;padding:6px 10px;border-radius:4px}.ce-offline-exporter button{margin-right:6px}.offline-exporter-config-form{width:550px;padding:10px}.swal2-input#swalDeleteFile{width:20px;padding:0;height:20px;margin:0;vertical-align:sub;cursor:pointer}body.ce-list-s #js-main{padding-top:40px}body.ce-list-s .ce-offline-exporter{top:92px}.ce-offline-searcher{position:absolute;left:140px;top:58px;background:#f4f2ff;padding:4px 10px;border-radius:4px}.ce-offline-searcher.loading form{opacity:.5;pointer-events:none;cursor:wait}.ce-offline-searcher fieldset{padding:0}.ce-offline-searcher .clearable-wrap{position:relative;width:320px}.ce-offline-searcher .clearable-wrap.is-empty .btn-clear{display:none}.ce-offline-searcher .clearable-wrap input{width:300px;padding-right:35px!important}.ce-offline-searcher .clearable-wrap .btn-clear{position:absolute;right:30px;top:4px;display:block}.ce-offline-searcher .form-item{display:inline-block;margin-right:10px;vertical-align:middle}.ce-offline-searcher .form-item input{padding:.3em}.ce-offline-searcher .form-item select{height:2em;padding:.1em .3em}.ce-offline-searcher .form-item label{margin-right:5px}.ce-offline-searcher .help-trigger{font-size:12px}.ce-offline-searcher .list{display:none}.ce-offline-searcher .stop-on-found{width:16px;height:16px;vertical-align:middle;cursor:pointer}.ce-offline-searcher .search-tips{position:fixed;top:146px;bottom:30px;left:0;width:100%;background:#fff;z-index:9999}.ce-offline-searcher .search-tips .tips-body{padding:20px;position:absolute;top:70px;left:50%;transform:translate(-50%,-50%);background:#f4f2ff;width:80%;border-radius:6px}.cloud115-page-offline.ce-list-m .list-contents .file-name-wrap .desc-tips{left:75px}.cloud115-page-offline.ce-list-m li.ce-task-trouble .info-hash{left:210px!important}.cloud115-page-offline li .ce-buttons{float:left;margin-right:6px}.cloud115-page-offline .ce-checkbox{width:30px}.cloud115-page-offline .ce-checkbox input{display:block!important;width:20px;height:20px;cursor:pointer}.cloud115-page-offline #js-warp .info-hash{position:absolute;left:47px;top:25px;color:#ababab;cursor:pointer}.cloud115-page-offline #js-warp .info-hash.hover{color:#6ab2ff}.cloud115-page-offline #js-warp li.ce-selected:before{background:#ffe296!important}.cloud115-page-offline #js-warp li.ce-show-checkbox .info-hash{left:60px}.cloud115-page-offline #js-warp li.ce-show-checkbox .file-name{margin-left:15px}.cloud115-page-offline #js-warp li.ce-show-checkbox .file-type{left:25px!important}.cloud115-page-offline #js-warp li .ce-checkbox{width:30px;position:absolute;left:0}.cloud115-page-offline #js-warp li .ce-checkbox input{display:block!important;width:20px;height:20px;cursor:pointer}.cloud115-page-offline #js-warp li .desc-tips{position:absolute;left:60px;top:25px}.cloud115-eh-cleaner-trigger .btn-open{padding:0 6px;vertical-align:text-top;line-height:30px;border-radius:4px;background:#4faa4f}.ce-drawer{visibility:hidden}.ce-drawer.is-visible{visibility:visible}.ce-drawer.is-open .ce-drawer__overlay{opacity:.5}.ce-drawer.is-open .ce-drawer__content{transform:translate(0)}.ce-drawer__overlay{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;z-index:200;opacity:0;transition-property:opacity;background-color:#000;user-select:none}.ce-drawer__content{position:fixed;top:0;right:0;bottom:0;height:100%;width:100%;z-index:9999;overflow:auto;transition-property:transform;display:flex;flex-direction:column;transform:translate(100%);box-shadow:0 2px 6px #777}.k-p-e{font-size:12px}.v-popper.v-popper--theme-dropdown{display:inline-block}.group-manager{width:750px;padding-top:8px}.group-manager a{font-size:12px;padding:0 4px;margin-right:8px}.group-manager .group-label{color:#fff;font-size:12px;margin-right:10px;border-radius:4px;padding:2px 8px;background:#66acf9}.group-manager .label-readonly{background:#c93c3c;color:#fff;padding:0 4px;border-radius:4px;vertical-align:middle;margin-right:6px}.append-form{background:#fff;width:350px;padding:10px;border-radius:4px}.append-form input,.append-form textarea{width:100%}.group-form{background:#fff;padding:10px;border-radius:4px}.group-form .pure-control-group{margin-bottom:10px}.group-form input,.group-form textarea{width:80%}.group-form .filter-label{cursor:pointer;padding:0 4px;text-decoration:underline}.group-form input#groupLabel,.group-form input#groupUrl{display:inline-block}.group-form #groupValues{resize:vertical}.group-form .values{display:flex}.group-form .values textarea{width:98%;font-size:12px;line-height:22px}.group-form .values .v-input{flex:6}.group-form .values .v-help{flex:4}.groups-list{background:#fff;width:565px;padding:10px;border-radius:4px;box-shadow:0 0 4px #d8d8d8}.groups-list table th,.groups-list table td{padding:4px 6px}.groups-list ul li{border-bottom:1px solid #eee;padding:4px}.groups-list ul li:nth-last-child(1){border-bottom:none}.groups-list span{display:inline-block}.groups-list .p-index{width:30px}.groups-list .p-label{width:120px}.groups-list .p-actions button{margin-right:8px}.group-confirm-delete{padding:20px}.cloud115-eh-cleaner-help{font-size:12px;position:absolute;top:0;right:0;width:360px;padding:10px 10px 150px 8px;background:#fdffdf;overflow-y:auto}.cloud115-eh-cleaner-help ul{list-style:decimal}.pagination-container{margin:8px 0}.pagination-container li{margin-right:10px}.pagination-container li .paginate-buttons{padding:4px 8px;width:46px;text-align:center}.pagination-container li .paginate-buttons.active-page{color:#411cc8;font-weight:700}ul#componentContainer{padding-inline-start:0;list-style-type:none;display:inline-flex}ul#componentContainer a{text-decoration:none;display:flex;justify-content:center;align-items:center}.ce-file-list[data-v-89339f2e]{padding:20px 10px 50px 20px}.ce-file-list table[data-v-89339f2e]{font-size:12px}.ce-file-list table td[data-v-89339f2e]{word-break:break-all}.v-popper__arrow-container{display:none}.ce-cleaner-x .btn-open{padding:0 6px;vertical-align:text-top;line-height:30px;border-radius:4px;background:#4faa4f;display:none}.ce-cleaner-x .actions-bar{padding-bottom:10px;width:72%}.ce-cleaner-x .actions-bar .title{font-size:18px;font-weight:700;color:#15110c}.ce-cleaner-x .actions-bar .close{margin-left:20px;margin-right:10px;color:#f40}.ce-cleaner-x .actions-bar i.tp-folder{width:18px;height:18px;vertical-align:sub}.ce-cleaner-x .actions-bar .ce-path{font-size:14px;margin-top:4px}.ce-cleaner-x .actions-bar .ce-path a:hover{text-decoration:underline}#cloud115Cleaner{margin-left:10px}.cloud115-eh-cleaner{position:relative}.cloud115-eh-cleaner-drawer{background:#fff;padding:10px 20px 200px;overflow-y:auto}.cloud115-eh-cleaner-drawer.loading{cursor:wait}.cloud115-eh-cleaner-drawer.loading button,.cloud115-eh-cleaner-drawer.loading input{cursor:no-drop;pointer-events:none}.cloud115-eh-cleaner-drawer .config-toggle{display:inline-block;background:#eee;border-radius:4px;opacity:.2;padding:2px 4px;cursor:pointer}.cloud115-eh-cleaner-drawer .config-toggle.hover{opacity:.7}.cloud115-eh-cleaner-drawer .by-box .by-header{padding-bottom:10px}.cloud115-eh-cleaner-drawer .by-box .by-header .title{font-size:16px;margin-right:8px;color:#0078e6;font-weight:400}.cloud115-eh-cleaner-drawer .by-box .by-header .filter-size{width:100px;font-size:14px;font-weight:700;color:#0078e6;text-indent:6px}.cloud115-eh-cleaner-drawer .by-box .pure-button-group{display:inline-block}.cloud115-eh-cleaner-drawer .by-box .pure-button-group .pure-button{vertical-align:inherit}.cloud115-eh-cleaner-drawer .by-box .pattern-groups{width:750px;text-align:right}.cloud115-eh-cleaner-drawer .by-box .pattern-groups a{font-size:12px;padding:0 4px;margin-right:8px}.cloud115-eh-cleaner-drawer .by-box table tr.active{background:#f7ffc3}.cloud115-eh-cleaner-drawer .by-box table tr.is-dir .pattern{color:#f40}.cloud115-eh-cleaner-drawer .by-box table tr th,.cloud115-eh-cleaner-drawer .by-box table tr td{padding:.5em;font-size:12px}.cloud115-eh-cleaner-drawer .by-box table tr .item-meta{font-size:11px}.cloud115-eh-cleaner-drawer .by-box table tr .item-meta .ce-label{background:#e6e6e6;color:#818181;margin:0 2px;font-size:10px}.cloud115-eh-cleaner-drawer .by-box table tr .item-meta .ce-label.ce-label-danger{background:#cbc8ff;color:#fff}.cloud115-eh-cleaner-drawer .by-box table tr .item-meta .ce-label:first-child{margin-left:4px}.cloud115-eh-cleaner-drawer .by-box table td button:not(:last-child){margin-right:8px}.cloud115-eh-cleaner-drawer .by-box table td a{color:#2877f8}.cloud115-eh-cleaner-drawer .by-box table td .tp-folder{width:16px;height:16px;vertical-align:sub}.cloud115-eh-cleaner-drawer .by-box table.table-matched tr.item-unmatched,.cloud115-eh-cleaner-drawer .by-box table.table-unmatched tr.item-matched{display:none}.by-keyword.kw-cate-dir tbody tr:not(.is-dir),.by-keyword.kw-cate-file tbody tr.is-dir{opacity:.5;pointer-events:none;cursor:no-drop}.fixed-header-table{width:68%;border-collapse:collapse}.fixed-header-table thead{position:sticky;top:0;background-color:#f2f2f2;z-index:1}.fixed-header-table tbody{display:block;max-height:450px;overflow-y:auto;overflow-x:hidden}.fixed-header-table thead,.fixed-header-table tbody tr{display:table;width:100%;table-layout:fixed}.fixed-header-table th,.fixed-header-table td{padding:10px;border:1px solid #ddd}td.item-index{width:29px}td.item-val{width:308px}td.item-num{width:106px}td.item-size{width:89px}td.item-actions{width:166px}td.item-status{width:204px}.ce-empty-cleaner-trigger .btn-open{padding:0 6px;vertical-align:text-top;line-height:30px;border-radius:4px;background:#4faa4f}.ce-empty-cleaner-help[data-v-11023afc]{font-size:12px;position:absolute;top:0;right:0;width:360px;padding:10px 10px 150px 8px;background:#fdffdf;overflow-y:auto}.ce-empty-cleaner-help ul[data-v-11023afc]{list-style:decimal}#cloud115EmptyCleaner{margin-left:10px}.ce-empty-cleaner{position:relative}.ce-empty-cleaner .top-actions .pure-control-group label{width:auto;text-align:left}.ce-empty-cleaner .ec-logs{max-height:250px;overflow-y:auto;max-width:72%;background:#f4f4f4;padding:10px;line-height:22px;font-size:12px;margin-bottom:20px}.ce-empty-cleaner .ec-items{margin-bottom:30px}.ce-empty-cleaner .ec-items table{font-size:12px;width:72%}.ce-empty-cleaner .ec-items table .tr-deleted>td:not(:last-child){text-decoration:line-through}.ce-empty-cleaner-drawer{background:#fff;padding:10px 20px 200px;overflow-y:auto}.ce-empty-cleaner-drawer.loading{cursor:wait}.ce-empty-cleaner-drawer.loading button,.ce-empty-cleaner-drawer.loading input{cursor:no-drop;pointer-events:none}.button-xsmall,.button-mini{font-size:12px;padding:.2em .5em}.button-small{font-size:85%}.button-large{font-size:110%}.button-xlarge{font-size:125%}.button-success,.button-error,.button-warning,.button-secondary{color:#fff;border-radius:2px;text-shadow:0 1px 1px rgba(0,0,0,.2)}.button-success{background:#1cb841}.button-error{background:#ca3c3c}.button-warning{background:#df7514}.button-secondary{background:#42b8dd}.pure-form select{height:2.5em;font-size:12px}.pure-form input:not([type]){padding:4px 6px}.pure-form input[type=number]{min-width:100px}.ce-basic-config .pure-form-message{margin-left:82px}.ce-basic-config .avatar-preview{display:inline-block;vertical-align:middle;margin-left:10px}.ce-basic-config .pure-control-group input.input-small{padding:2px 4px;width:auto}.ce-clouddrive-config-item{margin-bottom:20px;border:1px solid #cbcbcb;border-radius:0;padding:4px}.ce-clouddrive-config-item.active{background:#fefcea}.ce-clouddrive-config-item input:not([type]){font-size:12px}.ce-clouddrive-config-item .button-error{float:right}.ce-clouddrive-config .cd-tips a{text-decoration:underline}.ce-clouddrive-config .cd-code{font-size:110%;cursor:pointer;user-select:none}.ce-list-config .pure-control-group label{width:16em}.ce-list-config .pure-form-message{margin-left:3em}.ce-search-config .pure-control-group label{width:15em}.ce-search-config .pure-form-message{margin-left:3em}.ce-tools-config .pure-control-group label{width:15em}.ce-tools-config .pure-form-message{margin-left:3em}.menu-basic-config .pure-control-group label{width:170px!important}.ce-field{background:#fff;margin-bottom:1px;padding:4px}.ce-field:hover{background:#fefcea}.ce-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.menu-config-block span.btn-toggle-top{margin-left:8px;cursor:pointer;opacity:.3}.menu-config-block span.btn-toggle-top.active{opacity:1}.official-menu-config .pure-form label{width:170px!important}.official-menu-config .pure-form label small{color:#999}.official-menu-config .pure-form legend .ce-label{cursor:pointer;font-size:12px;float:right}.official-menu-config .pure-form .ce-toggle{font-size:12px;cursor:pointer;color:#909399}.official-menu-config .pure-form .menu-key{opacity:0}.official-menu-config .pure-form .menu-item:hover .menu-key{opacity:1}.official-menu-config .pure-form .hidden .ce-toggle{color:#1890ff}.ce-menu-config .menu-config-block{display:inline-block;border-radius:6px;margin:4px;vertical-align:top;padding:0 6px;background:#f9f9f9}.ce-menu-config .menu-config-block>form>legend{border:none;text-align:center;font-size:14px;color:#5092ff;padding:4px;margin-bottom:0}.ce-menu-config .menu-config-block>form>fieldset>div{background:#fff;margin-bottom:1px;padding:4px}.ce-menu-config .menu-config-block>form>fieldset>div:hover{background:#fefcea}.ce-menu-config .menu-config-block label{display:inline-block;width:120px;font-size:12px;line-height:20px;vertical-align:middle;cursor:pointer}.ce-menu-config input[type=checkbox]{margin-right:10px;width:18px;height:18px;cursor:pointer;vertical-align:middle}.ce-menu-config .btn-view-info{display:inline-block;margin-right:6px;vertical-align:middle;cursor:help}.ce-custom-url{border-radius:4px;box-shadow:0 0 5px #eee;border:1px solid #eee;margin-bottom:20px;padding:0 10px;background:#fff}.ce-custom-url label{cursor:pointer}.ce-custom-url input:not([type]){font-size:12px}.ce-custom-url textarea{font-size:12px;resize:vertical}.ce-custom-url input[type=checkbox]{width:18px;height:18px;cursor:pointer}.ce-custom-url .ce-custom-url-index{font-size:14px;font-weight:700;margin-right:20px}.ce-custom-url legend .button-error{float:right}.ce-custom-url fieldset>div{margin-bottom:1px;padding:4px}.ce-custom-url fieldset>div:hover{background:#fefcea}.ce-custom-urls{padding-bottom:100px}.ce-custom-urls .item-icon img{vertical-align:middle}.ce-custom-urls .item-memo{display:inline-block;width:320px}.ce-play-urls{padding-bottom:100px}.ce-play-urls .item-icon img{vertical-align:middle}.ce-play-urls .item-memo{display:inline-block;width:340px}.ce-play-urls .extra-memo{font-size:12px;margin-left:10px}.ce-play-urls .extra-memo a{text-decoration:underline;color:#337ab7}.ce-anxia-config .pure-control-group label{width:9em}.ce-anxia-config .pure-form-message{margin-left:3em}.ce-config-main .ce-intro{margin-left:35%;color:#7676ff}.ce-config-main .ce-intro small{color:#999}.ce-config-main .ce-config-main-body{padding:10px}.ce-config-main .ce-config-main-header{padding:10px;position:sticky;top:0;background:#fff;z-index:100000;box-shadow:0 1px 2px #e9e9e9}.ce-config-main .ce-config-main-header h1{display:inline;font-size:18px}.ce-config-main .ce-config-main-header .ce-config-main-close{float:right;vertical-align:top;color:#89929b;cursor:pointer;padding:2px 20px;border-radius:6px}.ce-config-main .ce-config-main-header .ce-config-main-close:hover{background:#fefcea;color:#0275ff}.ce-config-main .ce-offline-config{max-height:unset}.ce-login-page a.ce-entry{display:inline-block;background:#fefcea;padding:2px 6px;border-radius:4px;border:1px solid #234888;margin:0 4px}.list-contents ul li .ce-btn-folder-size{background:#f2f4f8;border-radius:6px;padding:4px;cursor:pointer}.list-contents ul li .ce-file-sha1{position:absolute;top:20px;color:#999;cursor:pointer;font-size:90%}.list-contents ul li.ce-show-sha1 .file-name{height:40px}.list-contents ul li.ce-size-got .ce-btn-folder-size{opacity:.6;margin-left:6px}.list-contents ul li.ce-size-got .ce-btn-folder-size:hover{opacity:1}#js_top_header_file_path_box .ce-path-btn{background-color:#f4f6fc;height:32px}#js_top_header_file_path_box .ce-path-btn#ceGotoPath{margin-right:6px}#js_top_header_file_path_box.ce-goto-path-active{height:60px}#js_top_header_file_path_box.ce-goto-path-active div#js_path_add_dir{height:32px}#js_top_header_file_path_box #ceGotoPathApp{position:absolute;top:40px}.ce-goto-main{position:relative;margin-right:5px}.ce-goto-main.ce-goto-sug-shown .ce-goto-input-wrap{border-radius:6px 6px 0 0}.ce-goto-main.ce-goto-sug-shown .ce-goto-sug{display:block}.ce-goto-main .ce-goto-input-wrap{position:relative;overflow:hidden;border:1px solid #cfcccc;border-radius:6px}.ce-goto-main .ce-goto-input-wrap .ce-goto-input{border-radius:6px 6px 0 0;border:none;padding:4px 10px;width:100%;box-sizing:border-box;color:#2877f8;border-bottom:none}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn{position:absolute;border:none}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn:hover{color:#ff723e}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn[data-cmd]{top:5px;font-size:12px;background:#aeaeae;color:#fff;padding:0 4px;border-radius:4px;cursor:pointer}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn[data-cmd]:hover{background:#ff723e}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn[data-cmd][disabled]{background:#d7d7d7;cursor:not-allowed}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn[data-cmd=clear]{right:10px}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn[data-cmd=toggle]{right:50px}.ce-goto-main .ce-goto-sug{display:none;position:absolute;background:#fff;width:100%;padding:10px 10px 10px 8px;max-height:250px;z-index:999999;overflow-y:auto;box-shadow:0 5px 8px #ededed;border-radius:0 0 6px 6px;border:1px solid #cfcccc;box-sizing:border-box;border-top:none}.ce-goto-main .ce-goto-sug .ce-goto-sug-item{padding:4px 10px;background:#f4f6fc;margin-bottom:4px;cursor:pointer;border-radius:4px;font-size:12px;color:#353535}.ce-goto-main .ce-goto-sug .ce-goto-sug-item:hover{background:#d7d7d7}.ce-goto-main .ce-goto-sug .ce-goto-sug-item.active{background:#f4e1cf;color:#2877f8}.ce-goto-main .ce-goto-sug .ce-goto-sug-item span.ce-goto-sug-prefix,.ce-goto-main .ce-goto-sug .ce-goto-sug-item span.ce-goto-sep{color:#a4a4a4}.ce-goto-main .ce-goto-sug .ce-goto-sug-item span.ce-goto-sug-index{display:inline-block;background:#6ab2ff;font-size:10px;min-width:20px;color:#fff;border-radius:4px;text-align:center;padding:0 2px;margin-right:4px}.ce-search-page .top-file-path .file-path{float:left}.ce-search-page .dir-tab.ce-btn-select{background:#fffcea;color:#2877f8;display:inline-block;height:32px;line-height:24px;font-size:12px;padding:4px 8px;box-sizing:border-box;border:1px solid #2877f8;border-radius:4px}.ce-search-page .dir-tab.ce-btn-select:hover{background:#ff0} `);

(function () {
  'use strict';

  var uw=Object.defineProperty;var cw=(e,t,n)=>t in e?uw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ke=(e,t,n)=>cw(e,typeof t!="symbol"?t+"":t,n);const dw=typeof btoa=="function",Ol=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const ic=typeof TextEncoder=="function"?new TextEncoder:void 0,fw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",jo=Array.prototype.slice.call(fw);(e=>{let t={};return e.forEach((n,s)=>t[n]=s),t})(jo);const Tn=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const pw=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),hw=e=>{let t,n,s,o,i="";const r=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(s=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|s<<8|o,i+=jo[t>>18&63]+jo[t>>12&63]+jo[t>>6&63]+jo[t&63];}return r?i.slice(0,r-3)+"===".substring(r):i},Wd=dw?e=>btoa(e):Ol?e=>Buffer.from(e,"binary").toString("base64"):hw,mw=Ol?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let s=0,o=e.length;s<o;s+=4096)n.push(Tn.apply(null,e.subarray(s,s+4096)));return Wd(n.join(""))},gw=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Tn(192|t>>>6)+Tn(128|t&63):Tn(224|t>>>12&15)+Tn(128|t>>>6&63)+Tn(128|t&63)}else {var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Tn(240|t>>>18&7)+Tn(128|t>>>12&63)+Tn(128|t>>>6&63)+Tn(128|t&63)}},yw=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ww=e=>e.replace(yw,gw),rc=Ol?e=>Buffer.from(e,"utf8").toString("base64"):ic?e=>mw(ic.encode(e)):e=>Wd(ww(e)),ac=(e,t=!1)=>t?pw(rc(e)):rc(e);var ze=(e=>(e.listItemHover="listItemHover",e.listItemHoverSub="listItemHoverSub",e.listItemContext="listItemContext",e.listItemContextSub="listItemContextSub",e.selection="selection",e.selectionSub="selectionSub",e.dirContext="dirContext",e.dirContextSub="dirContextSub",e))(ze||{}),mo=(e=>(e.listItemHover="列表项悬浮菜单",e.listItemHoverSub="列表项悬浮子菜单",e.listItemContext="列表项右键菜单",e.listItemContextSub="列表项右键子菜单",e.selection="选中项菜单",e.selectionSub="选中项子菜单",e.dirContext="当前目录右键菜单",e.dirContextSub="当前目录右键子菜单",e))(mo||{}),Rs=(e=>(e[e.after=0]="after",e[e.before=1]="before",e))(Rs||{}),bw=typeof GM_deleteValue<"u"?GM_deleteValue:void 0,xr=typeof GM_getValue<"u"?GM_getValue:void 0,vw=typeof GM_info<"u"?GM_info:void 0,_w=typeof GM_openInTab<"u"?GM_openInTab:void 0,Zi=typeof GM_registerMenuCommand<"u"?GM_registerMenuCommand:void 0,er=typeof GM_setClipboard<"u"?GM_setClipboard:void 0,Ha=typeof GM_setValue<"u"?GM_setValue:void 0,Dl=typeof GM_xmlhttpRequest<"u"?GM_xmlhttpRequest:void 0,xw={name:"115不大助手",version:"0.7.17",author:{name:"生瓜太保",email:"mailme@miao.com"},greasyforkUrl:"https://greasyfork.org/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"},yt=(e=>(e.basic="basic_config",e.anxia="anxia_config",e.clouddrive="clouddrive_configs",e.list="list_config",e.enabledCustomUrlsForSearch="enabled_custom_urls_for_search",e.enabledCustomUrlsForPlay="enabled_custom_urls_for_play",e.menuCustomUrlsForSearch="menu_custom_urls_for_search",e.menuCustomUrlsForPlay="menu_custom_urls_for_play",e.menu="ce_menu_config",e.hiddenOfficialMenuKeys="hidden_official_menu_keys",e.offline="offlineExporterConfig",e.search="search_config",e.tools="tools_config",e.cleanerConfig="cleanerConfig",e.cleanerSuffixGroups="suffixGroups",e.cleanerKeywordGroups="keywordGroups",e))(yt||{});const Ml=Object.values(yt),Gd=async(e,t)=>xr(e,t),Cw=async(e,t)=>Ha(e,t),Jd=async e=>bw(e),kw=async()=>{for(const e of Ml)await Jd(e);},Yd=async()=>{const e={};for(const t of Ml)e[t]=await Gd(t,{});return e};async function $w(){const e=await Yd(),t=xw;e._meta={name:t.name,version:t.version,time:new Date().toLocaleString(),browser:navigator.userAgent},e._schema="pan115_enhancer_configs";const n=document.createElement("a");n.href=URL.createObjectURL(new Blob([JSON.stringify(e,null,2)],{type:"application/json"})),n.download=`${t.name}-v${t.version}-配置.json`,n.click();}async function Sw(){return new Promise((e,t)=>{const n=document.createElement("input");n.type="file",n.accept="application/json",n.oncancel=()=>{t("取消选择文件!");},n.onchange=async()=>{const s=n.files&&n.files[0];if(!s){t("未选择文件!");return}const o=await new Promise((r,a)=>{const l=new FileReader;l.onload=()=>{try{r(JSON.parse(l.result));}catch(u){a(u);}},l.onerror=()=>{a(l.error);},l.readAsText(s);});if(o._schema!=="pan115_enhancer_configs"){t("这不是一个脚本配置文件!");return}const i=[];for(const r of Ml)i.push(r),o[r]&&await dt.set(r,o[r]);e({data:o,importedKeys:i});},n.click();})}const dt={get:Gd,set:Cw,remove:Jd,clear:kw,getAll:Yd},Qd=yt.clouddrive;var Cr=(e=>(e.windows="windows",e.macos="macos",e.linux="linux",e.android="android",e))(Cr||{}),fs=(e=>(e.play="play",e.download="download",e))(fs||{});function Ll(e){return {active:!1,url:"http://localhost:19798",root:"/115",memo:"",platform:void 0,...e}}async function Xd(){const e=[Ll()],t=await dt.get(Qd,e);return t||e}async function lc(e){e.some(t=>t.active)||(e[0].active=!0),await dt.set(Qd,e);}async function ko(){return (await Xd()).find(t=>t.active)||Ll()}function Ht(e){if(navigator.clipboard){navigator.clipboard.writeText(e);return}if(document.execCommand){const t=document.createElement("input");t.style.position="fixed",t.style.opacity="0",t.value=e,document.body.appendChild(t),t.select(),document.execCommand("Copy"),document.body.removeChild(t);return}prompt("请复制以下内容:",e);}function Zd(e="",t=""){return e+Date.now().toString()+Math.random().toString(36).substring(5)+t}async function uc(e,t=!1){try{return await navigator.clipboard.writeText(e),!0}catch(n){return console.warn("[copy]",n),t?(prompt("请复制内容:",e),!0):!1}}function ef(e,t="NFD"){return e.normalize(t)}function Ew(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function tf(e,t){return e=e.replace(/^[\/]+/g,""),"/"+e}function nf(e){return e.startsWith("file://")}async function go(e,t,n=fs.play,s=!0,o=""){e.platform===Cr.macos&&(t=ef(t,"NFD"));let{url:i,root:r}=e;if(!i)throw new Error("未设置CloudDrive地址!");(i.startsWith("/")||i.startsWith("\\"))&&(i=`file:///${i}`),nf(i);const a=/^https?:\/\//.test(i);if(a&&!r)throw new Error("当协议为http/https时,必须设置CloudDrive资源根路径!");r&&(r=r.replace(/^(\/+)?/g,"/")),t=t.replace(/^(\/+)?/g,"/");const l=`${r}${t}`,u=n===fs.play?"True":"False";let d="";return i=i.replace(/\/+$/,""),a?d=`${i}/static/${i.replace("://","/")}/${u}/${encodeURIComponent(l)}`:d=`${i}${l}`,o&&(d+=o),s&&(d+="?check_expire=True"),console.log("[Cloud115 Enhancer] buildCloudDriveUrl",d),d}async function za(e,t,n=!0){let{url:s,root:o}=e;if(!s)throw new Error("未设置CloudDrive地址!");return (s.startsWith("/")||s.startsWith("\\"))&&(s=`file:///${s}`),nf(s)?await go(e,t,fs.play,n):await go(e,t,fs.play,n,".clfsplaylist.m3u")}async function Aw(e,t){let{url:n}=e;if(!n)throw new Error("未设置CloudDrive地址!");return n.startsWith("http")||(n=`http://${n}`),n=n.replace(/\/+$/,""),t=e.root.replace(/\/+$/,"")+t,t=t.replace(/^(\/+)?/g,"/"),e.platform===Cr.macos&&(t=ef(t,"NFD")),`${n}/#${t}?a=1`}var es=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sf={exports:{}};/*!
  * sweetalert2 v11.7.2
  * Released under the MIT License.
  */(function(e,t){((function(n,s){e.exports=s();}))(es,function(){var n={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const s="swal2-",o=f=>{const p={};for(const g in f)p[f[g]]=s+f[g];return p},i=o(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),r=o(["success","warning","info","question","error"]),a="SweetAlert2:",l=f=>{const p=[];for(let g=0;g<f.length;g++)p.indexOf(f[g])===-1&&p.push(f[g]);return p},u=f=>f.charAt(0).toUpperCase()+f.slice(1),d=f=>{console.warn(`${a} ${typeof f=="object"?f.join(" "):f}`);},h=f=>{console.error(`${a} ${f}`);},y=[],v=f=>{y.includes(f)||(y.push(f),d(f));},b=(f,p)=>{v(`"${f}" is deprecated and will be removed in the next major release. Please use "${p}" instead.`);},_=f=>typeof f=="function"?f():f,R=f=>f&&typeof f.toPromise=="function",L=f=>R(f)?f.toPromise():Promise.resolve(f),N=f=>f&&Promise.resolve(f)===f,D=()=>document.body.querySelector(`.${i.container}`),B=f=>{const p=D();return p?p.querySelector(f):null},F=f=>B(`.${f}`),j=()=>F(i.popup),K=()=>F(i.icon),de=()=>F(i["icon-content"]),be=()=>F(i.title),_e=()=>F(i["html-container"]),pe=()=>F(i.image),S=()=>F(i["progress-steps"]),ee=()=>F(i["validation-message"]),Z=()=>B(`.${i.actions} .${i.confirm}`),xe=()=>B(`.${i.actions} .${i.cancel}`),ye=()=>B(`.${i.actions} .${i.deny}`),Pe=()=>F(i["input-label"]),Ee=()=>B(`.${i.loader}`),Ke=()=>F(i.actions),Ze=()=>F(i.footer),ve=()=>F(i["timer-progress-bar"]),M=()=>F(i.close),Ne=`
  a[href],
  area[href],
  input:not([disabled]),
  select:not([disabled]),
  textarea:not([disabled]),
  button:not([disabled]),
  iframe,
  object,
  embed,
  [tabindex="0"],
  [contenteditable],
  audio[controls],
  video[controls],
  summary
`,ft=()=>{const f=Array.from(j().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((g,C)=>{const Y=parseInt(g.getAttribute("tabindex")),Te=parseInt(C.getAttribute("tabindex"));return Y>Te?1:Y<Te?-1:0}),p=Array.from(j().querySelectorAll(Ne)).filter(g=>g.getAttribute("tabindex")!=="-1");return l(f.concat(p)).filter(g=>W(g))},Ie=()=>O(document.body,i.shown)&&!O(document.body,i["toast-shown"])&&!O(document.body,i["no-backdrop"]),lt=()=>j()&&O(j(),i.toast),gt=()=>j().hasAttribute("data-loading"),Pt={previousBodyPadding:null},Q=(f,p)=>{if(f.textContent="",p){const C=new DOMParser().parseFromString(p,"text/html");Array.from(C.querySelector("head").childNodes).forEach(Y=>{f.appendChild(Y);}),Array.from(C.querySelector("body").childNodes).forEach(Y=>{Y instanceof HTMLVideoElement||Y instanceof HTMLAudioElement?f.appendChild(Y.cloneNode(!0)):f.appendChild(Y);});}},O=(f,p)=>{if(!p)return !1;const g=p.split(/\s+/);for(let C=0;C<g.length;C++)if(!f.classList.contains(g[C]))return !1;return !0},V=(f,p)=>{Array.from(f.classList).forEach(g=>{!Object.values(i).includes(g)&&!Object.values(r).includes(g)&&!Object.values(p.showClass).includes(g)&&f.classList.remove(g);});},Ce=(f,p,g)=>{if(V(f,p),p.customClass&&p.customClass[g]){if(typeof p.customClass[g]!="string"&&!p.customClass[g].forEach){d(`Invalid type of customClass.${g}! Expected string or iterable object, got "${typeof p.customClass[g]}"`);return}H(f,p.customClass[g]);}},x=(f,p)=>{if(!p)return null;switch(p){case"select":case"textarea":case"file":return f.querySelector(`.${i.popup} > .${i[p]}`);case"checkbox":return f.querySelector(`.${i.popup} > .${i.checkbox} input`);case"radio":return f.querySelector(`.${i.popup} > .${i.radio} input:checked`)||f.querySelector(`.${i.popup} > .${i.radio} input:first-child`);case"range":return f.querySelector(`.${i.popup} > .${i.range} input`);default:return f.querySelector(`.${i.popup} > .${i.input}`)}},E=f=>{if(f.focus(),f.type!=="file"){const p=f.value;f.value="",f.value=p;}},q=(f,p,g)=>{!f||!p||(typeof p=="string"&&(p=p.split(/\s+/).filter(Boolean)),p.forEach(C=>{Array.isArray(f)?f.forEach(Y=>{g?Y.classList.add(C):Y.classList.remove(C);}):g?f.classList.add(C):f.classList.remove(C);}));},H=(f,p)=>{q(f,p,!0);},te=(f,p)=>{q(f,p,!1);},se=(f,p)=>{const g=Array.from(f.children);for(let C=0;C<g.length;C++){const Y=g[C];if(Y instanceof HTMLElement&&O(Y,p))return Y}},me=(f,p,g)=>{g===`${parseInt(g)}`&&(g=parseInt(g)),g||parseInt(g)===0?f.style[p]=typeof g=="number"?`${g}px`:g:f.style.removeProperty(p);},ie=function(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";f.style.display=p;},le=f=>{f.style.display="none";},ce=(f,p,g,C)=>{const Y=f.querySelector(p);Y&&(Y.style[g]=C);},Ae=function(f,p){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";p?ie(f,g):le(f);},W=f=>!!(f&&(f.offsetWidth||f.offsetHeight||f.getClientRects().length)),$e=()=>!W(Z())&&!W(ye())&&!W(xe()),m=f=>f.scrollHeight>f.clientHeight,w=f=>{const p=window.getComputedStyle(f),g=parseFloat(p.getPropertyValue("animation-duration")||"0"),C=parseFloat(p.getPropertyValue("transition-duration")||"0");return g>0||C>0},k=function(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const g=ve();W(g)&&(p&&(g.style.transition="none",g.style.width="100%"),setTimeout(()=>{g.style.transition=`width ${f/1e3}s linear`,g.style.width="0%";},10));},P=()=>{const f=ve(),p=parseInt(window.getComputedStyle(f).width);f.style.removeProperty("transition"),f.style.width="100%";const g=parseInt(window.getComputedStyle(f).width),C=p/g*100;f.style.width=`${C}%`;},z=100,I={},X=()=>{I.previousActiveElement instanceof HTMLElement?(I.previousActiveElement.focus(),I.previousActiveElement=null):document.body&&document.body.focus();},J=f=>new Promise(p=>{if(!f)return p();const g=window.scrollX,C=window.scrollY;I.restoreFocusTimeout=setTimeout(()=>{X(),p();},z),window.scrollTo(g,C);}),re=()=>typeof window>"u"||typeof document>"u",Le=`
 <div aria-labelledby="${i.title}" aria-describedby="${i["html-container"]}" class="${i.popup}" tabindex="-1">
   <button type="button" class="${i.close}"></button>
   <ul class="${i["progress-steps"]}"></ul>
   <div class="${i.icon}"></div>
   <img class="${i.image}" />
   <h2 class="${i.title}" id="${i.title}"></h2>
   <div class="${i["html-container"]}" id="${i["html-container"]}"></div>
   <input class="${i.input}" />
   <input type="file" class="${i.file}" />
   <div class="${i.range}">
     <input type="range" />
     <output></output>
   </div>
   <select class="${i.select}"></select>
   <div class="${i.radio}"></div>
   <label for="${i.checkbox}" class="${i.checkbox}">
     <input type="checkbox" />
     <span class="${i.label}"></span>
   </label>
   <textarea class="${i.textarea}"></textarea>
   <div class="${i["validation-message"]}" id="${i["validation-message"]}"></div>
   <div class="${i.actions}">
     <div class="${i.loader}"></div>
     <button type="button" class="${i.confirm}"></button>
     <button type="button" class="${i.deny}"></button>
     <button type="button" class="${i.cancel}"></button>
   </div>
   <div class="${i.footer}"></div>
   <div class="${i["timer-progress-bar-container"]}">
     <div class="${i["timer-progress-bar"]}"></div>
   </div>
 </div>
`.replace(/(^|\n)\s*/g,""),Me=()=>{const f=D();return f?(f.remove(),te([document.documentElement,document.body],[i["no-backdrop"],i["toast-shown"],i["has-column"]]),!0):!1},Se=()=>{I.currentInstance.resetValidationMessage();},We=()=>{const f=j(),p=se(f,i.input),g=se(f,i.file),C=f.querySelector(`.${i.range} input`),Y=f.querySelector(`.${i.range} output`),Te=se(f,i.select),ut=f.querySelector(`.${i.checkbox} input`),Zt=se(f,i.textarea);p.oninput=Se,g.onchange=Se,Te.onchange=Se,ut.onchange=Se,Zt.oninput=Se,C.oninput=()=>{Se(),Y.value=C.value;},C.onchange=()=>{Se(),Y.value=C.value;};},Mt=f=>typeof f=="string"?document.querySelector(f):f,It=f=>{const p=j();p.setAttribute("role",f.toast?"alert":"dialog"),p.setAttribute("aria-live",f.toast?"polite":"assertive"),f.toast||p.setAttribute("aria-modal","true");},Oo=f=>{window.getComputedStyle(f).direction==="rtl"&&H(D(),i.rtl);},Do=f=>{const p=Me();if(re()){h("SweetAlert2 requires document to initialize");return}const g=document.createElement("div");g.className=i.container,p&&H(g,i["no-transition"]),Q(g,Le);const C=Mt(f.target);C.appendChild(g),It(f),Oo(C),We();},la=(f,p)=>{f instanceof HTMLElement?p.appendChild(f):typeof f=="object"?Um(f,p):f&&Q(p,f);},Um=(f,p)=>{f.jquery?jm(p,f):Q(p,f.toString());},jm=(f,p)=>{if(f.textContent="",0 in p)for(let g=0;g in p;g++)f.appendChild(p[g].cloneNode(!0));else f.appendChild(p.cloneNode(!0));},Mo=(()=>{if(re())return !1;const f=document.createElement("div"),p={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const g in p)if(Object.prototype.hasOwnProperty.call(p,g)&&typeof f.style[g]<"u")return p[g];return !1})(),Hm=()=>{const f=document.createElement("div");f.className=i["scrollbar-measure"],document.body.appendChild(f);const p=f.getBoundingClientRect().width-f.clientWidth;return document.body.removeChild(f),p},zm=(f,p)=>{const g=Ke(),C=Ee();!p.showConfirmButton&&!p.showDenyButton&&!p.showCancelButton?le(g):ie(g),Ce(g,p,"actions"),qm(g,C,p),Q(C,p.loaderHtml),Ce(C,p,"loader");};function qm(f,p,g){const C=Z(),Y=ye(),Te=xe();ua(C,"confirm",g),ua(Y,"deny",g),ua(Te,"cancel",g),Vm(C,Y,Te,g),g.reverseButtons&&(g.toast?(f.insertBefore(Te,C),f.insertBefore(Y,C)):(f.insertBefore(Te,p),f.insertBefore(Y,p),f.insertBefore(C,p)));}function Vm(f,p,g,C){if(!C.buttonsStyling){te([f,p,g],i.styled);return}H([f,p,g],i.styled),C.confirmButtonColor&&(f.style.backgroundColor=C.confirmButtonColor,H(f,i["default-outline"])),C.denyButtonColor&&(p.style.backgroundColor=C.denyButtonColor,H(p,i["default-outline"])),C.cancelButtonColor&&(g.style.backgroundColor=C.cancelButtonColor,H(g,i["default-outline"]));}function ua(f,p,g){Ae(f,g[`show${u(p)}Button`],"inline-block"),Q(f,g[`${p}ButtonText`]),f.setAttribute("aria-label",g[`${p}ButtonAriaLabel`]),f.className=i[p],Ce(f,g,`${p}Button`),H(f,g[`${p}ButtonClass`]);}const Km=(f,p)=>{const g=M();Q(g,p.closeButtonHtml),Ce(g,p,"closeButton"),Ae(g,p.showCloseButton),g.setAttribute("aria-label",p.closeButtonAriaLabel);},Wm=(f,p)=>{const g=D();g&&(Gm(g,p.backdrop),Jm(g,p.position),Ym(g,p.grow),Ce(g,p,"container"));};function Gm(f,p){typeof p=="string"?f.style.background=p:p||H([document.documentElement,document.body],i["no-backdrop"]);}function Jm(f,p){p in i?H(f,i[p]):(d('The "position" parameter is not valid, defaulting to "center"'),H(f,i.center));}function Ym(f,p){if(p&&typeof p=="string"){const g=`grow-${p}`;g in i&&H(f,i[g]);}}const Qm=["input","file","range","select","radio","checkbox","textarea"],Xm=(f,p)=>{const g=j(),C=n.innerParams.get(f),Y=!C||p.input!==C.input;Qm.forEach(Te=>{const ut=se(g,i[Te]);tg(Te,p.inputAttributes),ut.className=i[Te],Y&&le(ut);}),p.input&&(Y&&Zm(p),ng(p));},Zm=f=>{if(!Vt[f.input]){h(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${f.input}"`);return}const p=Pu(f.input),g=Vt[f.input](p,f);ie(p),f.inputAutoFocus&&setTimeout(()=>{E(g);});},eg=f=>{for(let p=0;p<f.attributes.length;p++){const g=f.attributes[p].name;["type","value","style"].includes(g)||f.removeAttribute(g);}},tg=(f,p)=>{const g=x(j(),f);if(g){eg(g);for(const C in p)g.setAttribute(C,p[C]);}},ng=f=>{const p=Pu(f.input);typeof f.customClass=="object"&&H(p,f.customClass.input);},ca=(f,p)=>{(!f.placeholder||p.inputPlaceholder)&&(f.placeholder=p.inputPlaceholder);},Lo=(f,p,g)=>{if(g.inputLabel){f.id=i.input;const C=document.createElement("label"),Y=i["input-label"];C.setAttribute("for",f.id),C.className=Y,typeof g.customClass=="object"&&H(C,g.customClass.inputLabel),C.innerText=g.inputLabel,p.insertAdjacentElement("beforebegin",C);}},Pu=f=>se(j(),i[f]||i.input),$i=(f,p)=>{["string","number"].includes(typeof p)?f.value=`${p}`:N(p)||d(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof p}"`);},Vt={};Vt.text=Vt.email=Vt.password=Vt.number=Vt.tel=Vt.url=(f,p)=>($i(f,p.inputValue),Lo(f,f,p),ca(f,p),f.type=p.input,f),Vt.file=(f,p)=>(Lo(f,f,p),ca(f,p),f),Vt.range=(f,p)=>{const g=f.querySelector("input"),C=f.querySelector("output");return $i(g,p.inputValue),g.type=p.input,$i(C,p.inputValue),Lo(g,f,p),f},Vt.select=(f,p)=>{if(f.textContent="",p.inputPlaceholder){const g=document.createElement("option");Q(g,p.inputPlaceholder),g.value="",g.disabled=!0,g.selected=!0,f.appendChild(g);}return Lo(f,f,p),f},Vt.radio=f=>(f.textContent="",f),Vt.checkbox=(f,p)=>{const g=x(j(),"checkbox");g.value="1",g.id=i.checkbox,g.checked=!!p.inputValue;const C=f.querySelector("span");return Q(C,p.inputPlaceholder),g},Vt.textarea=(f,p)=>{$i(f,p.inputValue),ca(f,p),Lo(f,f,p);const g=C=>parseInt(window.getComputedStyle(C).marginLeft)+parseInt(window.getComputedStyle(C).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const C=parseInt(window.getComputedStyle(j()).width),Y=()=>{const Te=f.offsetWidth+g(f);Te>C?j().style.width=`${Te}px`:j().style.width=null;};new MutationObserver(Y).observe(f,{attributes:!0,attributeFilter:["style"]});}}),f};const sg=(f,p)=>{const g=_e();Ce(g,p,"htmlContainer"),p.html?(la(p.html,g),ie(g,"block")):p.text?(g.textContent=p.text,ie(g,"block")):le(g),Xm(f,p);},og=(f,p)=>{const g=Ze();Ae(g,p.footer),p.footer&&la(p.footer,g),Ce(g,p,"footer");},ig=(f,p)=>{const g=n.innerParams.get(f),C=K();if(g&&p.icon===g.icon){Tu(C,p),Iu(C,p);return}if(!p.icon&&!p.iconHtml){le(C);return}if(p.icon&&Object.keys(r).indexOf(p.icon)===-1){h(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${p.icon}"`),le(C);return}ie(C),Tu(C,p),Iu(C,p),H(C,p.showClass.icon);},Iu=(f,p)=>{for(const g in r)p.icon!==g&&te(f,r[g]);H(f,r[p.icon]),ug(f,p),rg(),Ce(f,p,"icon");},rg=()=>{const f=j(),p=window.getComputedStyle(f).getPropertyValue("background-color"),g=f.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let C=0;C<g.length;C++)g[C].style.backgroundColor=p;},ag=`
  <div class="swal2-success-circular-line-left"></div>
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
  <div class="swal2-success-circular-line-right"></div>
`,lg=`
  <span class="swal2-x-mark">
    <span class="swal2-x-mark-line-left"></span>
    <span class="swal2-x-mark-line-right"></span>
  </span>
`,Tu=(f,p)=>{let g=f.innerHTML,C;p.iconHtml?C=Ou(p.iconHtml):p.icon==="success"?(C=ag,g=g.replace(/ style=".*?"/g,"")):p.icon==="error"?C=lg:C=Ou({question:"?",warning:"!",info:"i"}[p.icon]),g.trim()!==C.trim()&&Q(f,C);},ug=(f,p)=>{if(p.iconColor){f.style.color=p.iconColor,f.style.borderColor=p.iconColor;for(const g of [".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ce(f,g,"backgroundColor",p.iconColor);ce(f,".swal2-success-ring","borderColor",p.iconColor);}},Ou=f=>`<div class="${i["icon-content"]}">${f}</div>`,cg=(f,p)=>{const g=pe();if(!p.imageUrl){le(g);return}ie(g,""),g.setAttribute("src",p.imageUrl),g.setAttribute("alt",p.imageAlt),me(g,"width",p.imageWidth),me(g,"height",p.imageHeight),g.className=i.image,Ce(g,p,"image");},dg=(f,p)=>{const g=D(),C=j();p.toast?(me(g,"width",p.width),C.style.width="100%",C.insertBefore(Ee(),K())):me(C,"width",p.width),me(C,"padding",p.padding),p.color&&(C.style.color=p.color),p.background&&(C.style.background=p.background),le(ee()),fg(C,p);},fg=(f,p)=>{f.className=`${i.popup} ${W(f)?p.showClass.popup:""}`,p.toast?(H([document.documentElement,document.body],i["toast-shown"]),H(f,i.toast)):H(f,i.modal),Ce(f,p,"popup"),typeof p.customClass=="string"&&H(f,p.customClass),p.icon&&H(f,i[`icon-${p.icon}`]);},pg=(f,p)=>{const g=S();if(!p.progressSteps||p.progressSteps.length===0){le(g);return}ie(g),g.textContent="",p.currentProgressStep>=p.progressSteps.length&&d("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),p.progressSteps.forEach((C,Y)=>{const Te=hg(C);if(g.appendChild(Te),Y===p.currentProgressStep&&H(Te,i["active-progress-step"]),Y!==p.progressSteps.length-1){const ut=mg(p);g.appendChild(ut);}});},hg=f=>{const p=document.createElement("li");return H(p,i["progress-step"]),Q(p,f),p},mg=f=>{const p=document.createElement("li");return H(p,i["progress-step-line"]),f.progressStepsDistance&&me(p,"width",f.progressStepsDistance),p},gg=(f,p)=>{const g=be();Ae(g,p.title||p.titleText,"block"),p.title&&la(p.title,g),p.titleText&&(g.innerText=p.titleText),Ce(g,p,"title");},Du=(f,p)=>{dg(f,p),Wm(f,p),pg(f,p),ig(f,p),cg(f,p),gg(f,p),Km(f,p),sg(f,p),zm(f,p),og(f,p),typeof p.didRender=="function"&&p.didRender(j());};function Mu(){const f=n.innerParams.get(this);if(!f)return;const p=n.domCache.get(this);le(p.loader),lt()?f.icon&&ie(K()):yg(p),te([p.popup,p.actions],i.loading),p.popup.removeAttribute("aria-busy"),p.popup.removeAttribute("data-loading"),p.confirmButton.disabled=!1,p.denyButton.disabled=!1,p.cancelButton.disabled=!1;}const yg=f=>{const p=f.popup.getElementsByClassName(f.loader.getAttribute("data-button-to-replace"));p.length?ie(p[0],"inline-block"):$e()&&le(f.actions);};function wg(f){const p=n.innerParams.get(f||this),g=n.domCache.get(f||this);return g?x(g.popup,p.input):null}const bg=()=>W(j()),Lu=()=>Z()&&Z().click(),vg=()=>ye()&&ye().click(),_g=()=>xe()&&xe().click(),Ys=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Bu=f=>{f.keydownTarget&&f.keydownHandlerAdded&&(f.keydownTarget.removeEventListener("keydown",f.keydownHandler,{capture:f.keydownListenerCapture}),f.keydownHandlerAdded=!1);},xg=(f,p,g,C)=>{Bu(p),g.toast||(p.keydownHandler=Y=>kg(f,Y,C),p.keydownTarget=g.keydownListenerCapture?window:j(),p.keydownListenerCapture=g.keydownListenerCapture,p.keydownTarget.addEventListener("keydown",p.keydownHandler,{capture:p.keydownListenerCapture}),p.keydownHandlerAdded=!0);},da=(f,p)=>{const g=ft();if(g.length){f=f+p,f===g.length?f=0:f===-1&&(f=g.length-1),g[f].focus();return}j().focus();},Ru=["ArrowRight","ArrowDown"],Cg=["ArrowLeft","ArrowUp"],kg=(f,p,g)=>{const C=n.innerParams.get(f);C&&(p.isComposing||p.keyCode===229||(C.stopKeydownPropagation&&p.stopPropagation(),p.key==="Enter"?$g(f,p,C):p.key==="Tab"?Sg(p):[...Ru,...Cg].includes(p.key)?Eg(p.key):p.key==="Escape"&&Ag(p,C,g)));},$g=(f,p,g)=>{if(_(g.allowEnterKey)&&p.target&&f.getInput()&&p.target instanceof HTMLElement&&p.target.outerHTML===f.getInput().outerHTML){if(["textarea","file"].includes(g.input))return;Lu(),p.preventDefault();}},Sg=f=>{const p=f.target,g=ft();let C=-1;for(let Y=0;Y<g.length;Y++)if(p===g[Y]){C=Y;break}f.shiftKey?da(C,-1):da(C,1),f.stopPropagation(),f.preventDefault();},Eg=f=>{const p=Z(),g=ye(),C=xe(),Y=[p,g,C];if(document.activeElement instanceof HTMLElement&&!Y.includes(document.activeElement))return;const Te=Ru.includes(f)?"nextElementSibling":"previousElementSibling";let ut=document.activeElement;for(let Zt=0;Zt<Ke().children.length;Zt++){if(ut=ut[Te],!ut)return;if(ut instanceof HTMLButtonElement&&W(ut))break}ut instanceof HTMLButtonElement&&ut.focus();},Ag=(f,p,g)=>{_(p.allowEscapeKey)&&(f.preventDefault(),g(Ys.esc));};var Bo={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Pg=()=>{Array.from(document.body.children).forEach(p=>{p===D()||p.contains(D())||(p.hasAttribute("aria-hidden")&&p.setAttribute("data-previous-aria-hidden",p.getAttribute("aria-hidden")),p.setAttribute("aria-hidden","true"));});},Nu=()=>{Array.from(document.body.children).forEach(p=>{p.hasAttribute("data-previous-aria-hidden")?(p.setAttribute("aria-hidden",p.getAttribute("data-previous-aria-hidden")),p.removeAttribute("data-previous-aria-hidden")):p.removeAttribute("aria-hidden");});},Ig=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!O(document.body,i.iosfix)){const p=document.body.scrollTop;document.body.style.top=`${p*-1}px`,H(document.body,i.iosfix),Og(),Tg();}},Tg=()=>{const f=navigator.userAgent,p=!!f.match(/iPad/i)||!!f.match(/iPhone/i),g=!!f.match(/WebKit/i);p&&g&&!f.match(/CriOS/i)&&j().scrollHeight>window.innerHeight-44&&(D().style.paddingBottom="44px");},Og=()=>{const f=D();let p;f.ontouchstart=g=>{p=Dg(g);},f.ontouchmove=g=>{p&&(g.preventDefault(),g.stopPropagation());};},Dg=f=>{const p=f.target,g=D();return Mg(f)||Lg(f)?!1:p===g||!m(g)&&p instanceof HTMLElement&&p.tagName!=="INPUT"&&p.tagName!=="TEXTAREA"&&!(m(_e())&&_e().contains(p))},Mg=f=>f.touches&&f.touches.length&&f.touches[0].touchType==="stylus",Lg=f=>f.touches&&f.touches.length>1,Bg=()=>{if(O(document.body,i.iosfix)){const f=parseInt(document.body.style.top,10);te(document.body,i.iosfix),document.body.style.top="",document.body.scrollTop=f*-1;}},Rg=()=>{Pt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(Pt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Pt.previousBodyPadding+Hm()}px`);},Ng=()=>{Pt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${Pt.previousBodyPadding}px`,Pt.previousBodyPadding=null);};function Fu(f,p,g,C){lt()?Uu(f,C):(J(g).then(()=>Uu(f,C)),Bu(I)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(p.setAttribute("style","display:none !important"),p.removeAttribute("class"),p.innerHTML=""):p.remove(),Ie()&&(Ng(),Bg(),Nu()),Fg();}function Fg(){te([document.documentElement,document.body],[i.shown,i["height-auto"],i["no-backdrop"],i["toast-shown"]]);}function Si(f){f=zg(f);const p=Bo.swalPromiseResolve.get(this),g=jg(this);this.isAwaitingPromise()?f.isDismissed||(Ro(this),p(f)):g&&p(f);}function Ug(){return !!n.awaitingPromise.get(this)}const jg=f=>{const p=j();if(!p)return !1;const g=n.innerParams.get(f);if(!g||O(p,g.hideClass.popup))return !1;te(p,g.showClass.popup),H(p,g.hideClass.popup);const C=D();return te(C,g.showClass.backdrop),H(C,g.hideClass.backdrop),qg(f,p,g),!0};function Hg(f){const p=Bo.swalPromiseReject.get(this);Ro(this),p&&p(f);}const Ro=f=>{f.isAwaitingPromise()&&(n.awaitingPromise.delete(f),n.innerParams.get(f)||f._destroy());},zg=f=>typeof f>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},f),qg=(f,p,g)=>{const C=D(),Y=Mo&&w(p);typeof g.willClose=="function"&&g.willClose(p),Y?Vg(f,p,C,g.returnFocus,g.didClose):Fu(f,C,g.returnFocus,g.didClose);},Vg=(f,p,g,C,Y)=>{I.swalCloseEventFinishedCallback=Fu.bind(null,f,g,C,Y),p.addEventListener(Mo,function(Te){Te.target===p&&(I.swalCloseEventFinishedCallback(),delete I.swalCloseEventFinishedCallback);});},Uu=(f,p)=>{setTimeout(()=>{typeof p=="function"&&p.bind(f.params)(),f._destroy();});};function ju(f,p,g){const C=n.domCache.get(f);p.forEach(Y=>{C[Y].disabled=g;});}function Hu(f,p){if(f)if(f.type==="radio"){const C=f.parentNode.parentNode.querySelectorAll("input");for(let Y=0;Y<C.length;Y++)C[Y].disabled=p;}else f.disabled=p;}function Kg(){ju(this,["confirmButton","denyButton","cancelButton"],!1);}function Wg(){ju(this,["confirmButton","denyButton","cancelButton"],!0);}function Gg(){Hu(this.getInput(),!1);}function Jg(){Hu(this.getInput(),!0);}function Yg(f){const p=n.domCache.get(this),g=n.innerParams.get(this);Q(p.validationMessage,f),p.validationMessage.className=i["validation-message"],g.customClass&&g.customClass.validationMessage&&H(p.validationMessage,g.customClass.validationMessage),ie(p.validationMessage);const C=this.getInput();C&&(C.setAttribute("aria-invalid",!0),C.setAttribute("aria-describedby",i["validation-message"]),E(C),H(C,i.inputerror));}function Qg(){const f=n.domCache.get(this);f.validationMessage&&le(f.validationMessage);const p=this.getInput();p&&(p.removeAttribute("aria-invalid"),p.removeAttribute("aria-describedby"),te(p,i.inputerror));}const Qs={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Xg=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],Zg={},ey=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],zu=f=>Object.prototype.hasOwnProperty.call(Qs,f),qu=f=>Xg.indexOf(f)!==-1,fa=f=>Zg[f],ty=f=>{zu(f)||d(`Unknown parameter "${f}"`);},ny=f=>{ey.includes(f)&&d(`The parameter "${f}" is incompatible with toasts`);},sy=f=>{fa(f)&&b(f,fa(f));},oy=f=>{f.backdrop===!1&&f.allowOutsideClick&&d('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const p in f)ty(p),f.toast&&ny(p),sy(p);};function iy(f){const p=j(),g=n.innerParams.get(this);if(!p||O(p,g.hideClass.popup)){d("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const C=ry(f),Y=Object.assign({},g,C);Du(this,Y),n.innerParams.set(this,Y),Object.defineProperties(this,{params:{value:Object.assign({},this.params,f),writable:!1,enumerable:!0}});}const ry=f=>{const p={};return Object.keys(f).forEach(g=>{qu(g)?p[g]=f[g]:d(`Invalid parameter to update: ${g}`);}),p};function ay(){const f=n.domCache.get(this),p=n.innerParams.get(this);if(!p){Vu(this);return}f.popup&&I.swalCloseEventFinishedCallback&&(I.swalCloseEventFinishedCallback(),delete I.swalCloseEventFinishedCallback),typeof p.didDestroy=="function"&&p.didDestroy(),ly(this);}const ly=f=>{Vu(f),delete f.params,delete I.keydownHandler,delete I.keydownTarget,delete I.currentInstance;},Vu=f=>{f.isAwaitingPromise()?(pa(n,f),n.awaitingPromise.set(f,!0)):(pa(Bo,f),pa(n,f));},pa=(f,p)=>{for(const g in f)f[g].delete(p);};var Ku=Object.freeze({__proto__:null,_destroy:ay,close:Si,closeModal:Si,closePopup:Si,closeToast:Si,disableButtons:Wg,disableInput:Jg,disableLoading:Mu,enableButtons:Kg,enableInput:Gg,getInput:wg,handleAwaitingPromise:Ro,hideLoading:Mu,isAwaitingPromise:Ug,rejectPromise:Hg,resetValidationMessage:Qg,showValidationMessage:Yg,update:iy});const Xs=f=>{let p=j();p||new Ai,p=j();const g=Ee();lt()?le(K()):uy(p,f),ie(g),p.setAttribute("data-loading","true"),p.setAttribute("aria-busy","true"),p.focus();},uy=(f,p)=>{const g=Ke(),C=Ee();!p&&W(Z())&&(p=Z()),ie(g),p&&(le(p),C.setAttribute("data-button-to-replace",p.className)),C.parentNode.insertBefore(C,p),H([f,g],i.loading);},cy=(f,p)=>{p.input==="select"||p.input==="radio"?my(f,p):["text","email","number","tel","textarea"].includes(p.input)&&(R(p.inputValue)||N(p.inputValue))&&(Xs(Z()),gy(f,p));},dy=(f,p)=>{const g=f.getInput();if(!g)return null;switch(p.input){case"checkbox":return fy(g);case"radio":return py(g);case"file":return hy(g);default:return p.inputAutoTrim?g.value.trim():g.value}},fy=f=>f.checked?1:0,py=f=>f.checked?f.value:null,hy=f=>f.files.length?f.getAttribute("multiple")!==null?f.files:f.files[0]:null,my=(f,p)=>{const g=j(),C=Y=>{yy[p.input](g,ha(Y),p);};R(p.inputOptions)||N(p.inputOptions)?(Xs(Z()),L(p.inputOptions).then(Y=>{f.hideLoading(),C(Y);})):typeof p.inputOptions=="object"?C(p.inputOptions):h(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof p.inputOptions}`);},gy=(f,p)=>{const g=f.getInput();le(g),L(p.inputValue).then(C=>{g.value=p.input==="number"?`${parseFloat(C)||0}`:`${C}`,ie(g),g.focus(),f.hideLoading();}).catch(C=>{h(`Error in inputValue promise: ${C}`),g.value="",ie(g),g.focus(),f.hideLoading();});},yy={select:(f,p,g)=>{const C=se(f,i.select),Y=(Te,ut,Zt)=>{const Lt=document.createElement("option");Lt.value=Zt,Q(Lt,ut),Lt.selected=Wu(Zt,g.inputValue),Te.appendChild(Lt);};p.forEach(Te=>{const ut=Te[0],Zt=Te[1];if(Array.isArray(Zt)){const Lt=document.createElement("optgroup");Lt.label=ut,Lt.disabled=!1,C.appendChild(Lt),Zt.forEach(eo=>Y(Lt,eo[1],eo[0]));}else Y(C,Zt,ut);}),C.focus();},radio:(f,p,g)=>{const C=se(f,i.radio);p.forEach(Te=>{const ut=Te[0],Zt=Te[1],Lt=document.createElement("input"),eo=document.createElement("label");Lt.type="radio",Lt.name=i.radio,Lt.value=ut,Wu(ut,g.inputValue)&&(Lt.checked=!0);const wa=document.createElement("span");Q(wa,Zt),wa.className=i.label,eo.appendChild(Lt),eo.appendChild(wa),C.appendChild(eo);});const Y=C.querySelectorAll("input");Y.length&&Y[0].focus();}},ha=f=>{const p=[];return typeof Map<"u"&&f instanceof Map?f.forEach((g,C)=>{let Y=g;typeof Y=="object"&&(Y=ha(Y)),p.push([C,Y]);}):Object.keys(f).forEach(g=>{let C=f[g];typeof C=="object"&&(C=ha(C)),p.push([g,C]);}),p},Wu=(f,p)=>p&&p.toString()===f.toString(),wy=f=>{const p=n.innerParams.get(f);f.disableButtons(),p.input?Gu(f,"confirm"):ga(f,!0);},by=f=>{const p=n.innerParams.get(f);f.disableButtons(),p.returnInputValueOnDeny?Gu(f,"deny"):ma(f,!1);},vy=(f,p)=>{f.disableButtons(),p(Ys.cancel);},Gu=(f,p)=>{const g=n.innerParams.get(f);if(!g.input){h(`The "input" parameter is needed to be set when using returnInputValueOn${u(p)}`);return}const C=dy(f,g);g.inputValidator?_y(f,C,p):f.getInput().checkValidity()?p==="deny"?ma(f,C):ga(f,C):(f.enableButtons(),f.showValidationMessage(g.validationMessage));},_y=(f,p,g)=>{const C=n.innerParams.get(f);f.disableInput(),Promise.resolve().then(()=>L(C.inputValidator(p,C.validationMessage))).then(Te=>{f.enableButtons(),f.enableInput(),Te?f.showValidationMessage(Te):g==="deny"?ma(f,p):ga(f,p);});},ma=(f,p)=>{const g=n.innerParams.get(f||void 0);g.showLoaderOnDeny&&Xs(ye()),g.preDeny?(n.awaitingPromise.set(f||void 0,!0),Promise.resolve().then(()=>L(g.preDeny(p,g.validationMessage))).then(Y=>{Y===!1?(f.hideLoading(),Ro(f)):f.close({isDenied:!0,value:typeof Y>"u"?p:Y});}).catch(Y=>Yu(f||void 0,Y))):f.close({isDenied:!0,value:p});},Ju=(f,p)=>{f.close({isConfirmed:!0,value:p});},Yu=(f,p)=>{f.rejectPromise(p);},ga=(f,p)=>{const g=n.innerParams.get(f||void 0);g.showLoaderOnConfirm&&Xs(),g.preConfirm?(f.resetValidationMessage(),n.awaitingPromise.set(f||void 0,!0),Promise.resolve().then(()=>L(g.preConfirm(p,g.validationMessage))).then(Y=>{W(ee())||Y===!1?(f.hideLoading(),Ro(f)):Ju(f,typeof Y>"u"?p:Y);}).catch(Y=>Yu(f||void 0,Y))):Ju(f,p);},xy=(f,p,g)=>{n.innerParams.get(f).toast?Cy(f,p,g):($y(p),Sy(p),Ey(f,p,g));},Cy=(f,p,g)=>{p.popup.onclick=()=>{const C=n.innerParams.get(f);C&&(ky(C)||C.timer||C.input)||g(Ys.close);};},ky=f=>f.showConfirmButton||f.showDenyButton||f.showCancelButton||f.showCloseButton;let Ei=!1;const $y=f=>{f.popup.onmousedown=()=>{f.container.onmouseup=function(p){f.container.onmouseup=void 0,p.target===f.container&&(Ei=!0);};};},Sy=f=>{f.container.onmousedown=()=>{f.popup.onmouseup=function(p){f.popup.onmouseup=void 0,(p.target===f.popup||f.popup.contains(p.target))&&(Ei=!0);};};},Ey=(f,p,g)=>{p.container.onclick=C=>{const Y=n.innerParams.get(f);if(Ei){Ei=!1;return}C.target===p.container&&_(Y.allowOutsideClick)&&g(Ys.backdrop);};},Ay=f=>typeof f=="object"&&f.jquery,Qu=f=>f instanceof Element||Ay(f),Py=f=>{const p={};return typeof f[0]=="object"&&!Qu(f[0])?Object.assign(p,f[0]):["title","html","icon"].forEach((g,C)=>{const Y=f[C];typeof Y=="string"||Qu(Y)?p[g]=Y:Y!==void 0&&h(`Unexpected type of ${g}! Expected "string" or "Element", got ${typeof Y}`);}),p};function Iy(){const f=this;for(var p=arguments.length,g=new Array(p),C=0;C<p;C++)g[C]=arguments[C];return new f(...g)}function Ty(f){class p extends this{_main(C,Y){return super._main(C,Object.assign({},f,Y))}}return p}const Oy=()=>I.timeout&&I.timeout.getTimerLeft(),Xu=()=>{if(I.timeout)return P(),I.timeout.stop()},Zu=()=>{if(I.timeout){const f=I.timeout.start();return k(f),f}},Dy=()=>{const f=I.timeout;return f&&(f.running?Xu():Zu())},My=f=>{if(I.timeout){const p=I.timeout.increase(f);return k(p,!0),p}},Ly=()=>I.timeout&&I.timeout.isRunning();let ec=!1;const ya={};function By(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";ya[f]=this,ec||(document.body.addEventListener("click",Ry),ec=!0);}const Ry=f=>{for(let p=f.target;p&&p!==document;p=p.parentNode)for(const g in ya){const C=p.getAttribute(g);if(C){ya[g].fire({template:C});return}}};var Ny=Object.freeze({__proto__:null,argsToParams:Py,bindClickHandler:By,clickCancel:_g,clickConfirm:Lu,clickDeny:vg,enableLoading:Xs,fire:Iy,getActions:Ke,getCancelButton:xe,getCloseButton:M,getConfirmButton:Z,getContainer:D,getDenyButton:ye,getFocusableElements:ft,getFooter:Ze,getHtmlContainer:_e,getIcon:K,getIconContent:de,getImage:pe,getInputLabel:Pe,getLoader:Ee,getPopup:j,getProgressSteps:S,getTimerLeft:Oy,getTimerProgressBar:ve,getTitle:be,getValidationMessage:ee,increaseTimer:My,isDeprecatedParameter:fa,isLoading:gt,isTimerRunning:Ly,isUpdatableParameter:qu,isValidParameter:zu,isVisible:bg,mixin:Ty,resumeTimer:Zu,showLoading:Xs,stopTimer:Xu,toggleTimer:Dy});class Fy{constructor(p,g){this.callback=p,this.remaining=g,this.running=!1,this.start();}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(p){const g=this.running;return g&&this.stop(),this.remaining+=p,g&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const tc=["swal-title","swal-html","swal-footer"],Uy=f=>{const p=typeof f.template=="string"?document.querySelector(f.template):f.template;if(!p)return {};const g=p.content;return Gy(g),Object.assign(jy(g),Hy(g),zy(g),qy(g),Vy(g),Ky(g),Wy(g,tc))},jy=f=>{const p={};return Array.from(f.querySelectorAll("swal-param")).forEach(C=>{$s(C,["name","value"]);const Y=C.getAttribute("name"),Te=C.getAttribute("value");typeof Qs[Y]=="boolean"?p[Y]=Te!=="false":typeof Qs[Y]=="object"?p[Y]=JSON.parse(Te):p[Y]=Te;}),p},Hy=f=>{const p={};return Array.from(f.querySelectorAll("swal-function-param")).forEach(C=>{const Y=C.getAttribute("name"),Te=C.getAttribute("value");p[Y]=new Function(`return ${Te}`)();}),p},zy=f=>{const p={};return Array.from(f.querySelectorAll("swal-button")).forEach(C=>{$s(C,["type","color","aria-label"]);const Y=C.getAttribute("type");p[`${Y}ButtonText`]=C.innerHTML,p[`show${u(Y)}Button`]=!0,C.hasAttribute("color")&&(p[`${Y}ButtonColor`]=C.getAttribute("color")),C.hasAttribute("aria-label")&&(p[`${Y}ButtonAriaLabel`]=C.getAttribute("aria-label"));}),p},qy=f=>{const p={},g=f.querySelector("swal-image");return g&&($s(g,["src","width","height","alt"]),g.hasAttribute("src")&&(p.imageUrl=g.getAttribute("src")),g.hasAttribute("width")&&(p.imageWidth=g.getAttribute("width")),g.hasAttribute("height")&&(p.imageHeight=g.getAttribute("height")),g.hasAttribute("alt")&&(p.imageAlt=g.getAttribute("alt"))),p},Vy=f=>{const p={},g=f.querySelector("swal-icon");return g&&($s(g,["type","color"]),g.hasAttribute("type")&&(p.icon=g.getAttribute("type")),g.hasAttribute("color")&&(p.iconColor=g.getAttribute("color")),p.iconHtml=g.innerHTML),p},Ky=f=>{const p={},g=f.querySelector("swal-input");g&&($s(g,["type","label","placeholder","value"]),p.input=g.getAttribute("type")||"text",g.hasAttribute("label")&&(p.inputLabel=g.getAttribute("label")),g.hasAttribute("placeholder")&&(p.inputPlaceholder=g.getAttribute("placeholder")),g.hasAttribute("value")&&(p.inputValue=g.getAttribute("value")));const C=Array.from(f.querySelectorAll("swal-input-option"));return C.length&&(p.inputOptions={},C.forEach(Y=>{$s(Y,["value"]);const Te=Y.getAttribute("value"),ut=Y.innerHTML;p.inputOptions[Te]=ut;})),p},Wy=(f,p)=>{const g={};for(const C in p){const Y=p[C],Te=f.querySelector(Y);Te&&($s(Te,[]),g[Y.replace(/^swal-/,"")]=Te.innerHTML.trim());}return g},Gy=f=>{const p=tc.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(f.children).forEach(g=>{const C=g.tagName.toLowerCase();p.includes(C)||d(`Unrecognized element <${C}>`);});},$s=(f,p)=>{Array.from(f.attributes).forEach(g=>{p.indexOf(g.name)===-1&&d([`Unrecognized attribute "${g.name}" on <${f.tagName.toLowerCase()}>.`,`${p.length?`Allowed attributes are: ${p.join(", ")}`:"To set the value, use HTML within the element."}`]);});},nc=10,Jy=f=>{const p=D(),g=j();typeof f.willOpen=="function"&&f.willOpen(g);const Y=window.getComputedStyle(document.body).overflowY;Xy(p,g,f),setTimeout(()=>{Yy(p,g);},nc),Ie()&&(Qy(p,f.scrollbarPadding,Y),Pg()),!lt()&&!I.previousActiveElement&&(I.previousActiveElement=document.activeElement),typeof f.didOpen=="function"&&setTimeout(()=>f.didOpen(g)),te(p,i["no-transition"]);},sc=f=>{const p=j();if(f.target!==p)return;const g=D();p.removeEventListener(Mo,sc),g.style.overflowY="auto";},Yy=(f,p)=>{Mo&&w(p)?(f.style.overflowY="hidden",p.addEventListener(Mo,sc)):f.style.overflowY="auto";},Qy=(f,p,g)=>{Ig(),p&&g!=="hidden"&&Rg(),setTimeout(()=>{f.scrollTop=0;});},Xy=(f,p,g)=>{H(f,g.showClass.backdrop),p.style.setProperty("opacity","0","important"),ie(p,"grid"),setTimeout(()=>{H(p,g.showClass.popup),p.style.removeProperty("opacity");},nc),H([document.documentElement,document.body],i.shown),g.heightAuto&&g.backdrop&&!g.toast&&H([document.documentElement,document.body],i["height-auto"]);};var oc={email:(f,p)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(f)?Promise.resolve():Promise.resolve(p||"Invalid email address"),url:(f,p)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(f)?Promise.resolve():Promise.resolve(p||"Invalid URL")};function Zy(f){f.inputValidator||Object.keys(oc).forEach(p=>{f.input===p&&(f.inputValidator=oc[p]);});}function ew(f){(!f.target||typeof f.target=="string"&&!document.querySelector(f.target)||typeof f.target!="string"&&!f.target.appendChild)&&(d('Target parameter is not valid, defaulting to "body"'),f.target="body");}function tw(f){Zy(f),f.showLoaderOnConfirm&&!f.preConfirm&&d(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
showLoaderOnConfirm should be used together with preConfirm, see usage example:
https://sweetalert2.github.io/#ajax-request`),ew(f),typeof f.title=="string"&&(f.title=f.title.split(`
`).join("<br />")),Do(f);}let Pn;class Zs{constructor(){if(typeof window>"u")return;Pn=this;for(var p=arguments.length,g=new Array(p),C=0;C<p;C++)g[C]=arguments[C];const Y=Object.freeze(this.constructor.argsToParams(g));Object.defineProperties(this,{params:{value:Y,writable:!1,enumerable:!0,configurable:!0}});const Te=Pn._main(Pn.params);n.promise.set(this,Te);}_main(p){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};oy(Object.assign({},g,p)),I.currentInstance&&(I.currentInstance._destroy(),Ie()&&Nu()),I.currentInstance=Pn;const C=sw(p,g);tw(C),Object.freeze(C),I.timeout&&(I.timeout.stop(),delete I.timeout),clearTimeout(I.restoreFocusTimeout);const Y=ow(Pn);return Du(Pn,C),n.innerParams.set(Pn,C),nw(Pn,Y,C)}then(p){return n.promise.get(this).then(p)}finally(p){return n.promise.get(this).finally(p)}}const nw=(f,p,g)=>new Promise((C,Y)=>{const Te=ut=>{f.close({isDismissed:!0,dismiss:ut});};Bo.swalPromiseResolve.set(f,C),Bo.swalPromiseReject.set(f,Y),p.confirmButton.onclick=()=>{wy(f);},p.denyButton.onclick=()=>{by(f);},p.cancelButton.onclick=()=>{vy(f,Te);},p.closeButton.onclick=()=>{Te(Ys.close);},xy(f,p,Te),xg(f,I,g,Te),cy(f,g),Jy(g),iw(I,g,Te),rw(p,g),setTimeout(()=>{p.container.scrollTop=0;});}),sw=(f,p)=>{const g=Uy(f),C=Object.assign({},Qs,p,g,f);return C.showClass=Object.assign({},Qs.showClass,C.showClass),C.hideClass=Object.assign({},Qs.hideClass,C.hideClass),C},ow=f=>{const p={popup:j(),container:D(),actions:Ke(),confirmButton:Z(),denyButton:ye(),cancelButton:xe(),loader:Ee(),closeButton:M(),validationMessage:ee(),progressSteps:S()};return n.domCache.set(f,p),p},iw=(f,p,g)=>{const C=ve();le(C),p.timer&&(f.timeout=new Fy(()=>{g("timer"),delete f.timeout;},p.timer),p.timerProgressBar&&(ie(C),Ce(C,p,"timerProgressBar"),setTimeout(()=>{f.timeout&&f.timeout.running&&k(p.timer);})));},rw=(f,p)=>{if(!p.toast){if(!_(p.allowEnterKey)){lw();return}aw(f,p)||da(-1,1);}},aw=(f,p)=>p.focusDeny&&W(f.denyButton)?(f.denyButton.focus(),!0):p.focusCancel&&W(f.cancelButton)?(f.cancelButton.focus(),!0):p.focusConfirm&&W(f.confirmButton)?(f.confirmButton.focus(),!0):!1,lw=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur();};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)){const f=new Date,p=localStorage.getItem("swal-initiation");p?(f.getTime()-Date.parse(p))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const g=document.createElement("audio");g.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",g.loop=!0,document.body.appendChild(g),setTimeout(()=>{g.play().catch(()=>{});},2500);},500):localStorage.setItem("swal-initiation",`${f}`);}Object.assign(Zs.prototype,Ku),Object.assign(Zs,Ny),Object.keys(Ku).forEach(f=>{Zs[f]=function(){if(Pn)return Pn[f](...arguments)};}),Zs.DismissReason=Ys,Zs.version="11.7.2";const Ai=Zs;return Ai.default=Ai,Ai}),typeof es<"u"&&es.Sweetalert2&&(es.swal=es.sweetAlert=es.Swal=es.SweetAlert=es.Sweetalert2),typeof document<"u"&&function(n,s){var o=n.createElement("style");if(n.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=s);else try{o.innerHTML=s;}catch{o.innerText=s;}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start     top            top-end" "center-start  center         center-end" "bottom-start  bottom-center  bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:rgba(0,0,0,0) !important}.swal2-container.swal2-top-start,.swal2-container.swal2-center-start,.swal2-container.swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}.swal2-container.swal2-top,.swal2-container.swal2-center,.swal2-container.swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}.swal2-container.swal2-top-end,.swal2-container.swal2-center-end,.swal2-container.swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-start>.swal2-popup,.swal2-container.swal2-center-left>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-start>.swal2-popup,.swal2-container.swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-row>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none !important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:none}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:none}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:rgba(0,0,0,0);color:#f27474}.swal2-close:focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-input,.swal2-file,.swal2-textarea,.swal2-select,.swal2-radio,.swal2-checkbox{margin:1em 2em 3px}.swal2-input,.swal2-file,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-input.swal2-inputerror,.swal2-file.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}.swal2-input:focus,.swal2-file:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-input::placeholder,.swal2-file::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-radio,.swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-radio label,.swal2-checkbox label{margin:0 .6em;font-size:1.125em}.swal2-radio input,.swal2-checkbox input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}');})(sf);var Pw=sf.exports;const he=Bl(Pw);var Jt=(e=>(e[e.any=-999]="any",e[e.failed=-1]="failed",e[e.illegal=0]="illegal",e[e.ing=1]="ing",e[e.success=2]="success",e))(Jt||{});const Iw={[-1]:"失败",0:"违规",1:"下载中",2:"成功"};var Kt=(e=>(e.all="all",e.failed="failed",e.success="success",e.magnet="magnet",e.magnetEd2k="magnetEd2k",e))(Kt||{}),Rl=(e=>(e[e.true=1]="true",e[e.false=0]="false",e))(Rl||{}),vn=(e=>(e[e.all=0]="all",e[e.video=4]="video",e[e.audio=3]="audio",e[e.image=2]="image",e[e.doc=1]="doc",e[e.app=6]="app",e[e.archive=5]="archive",e[e.file=99]="file",e))(vn||{}),Gt=(e=>(e.all="全部",e.video="视频",e.audio="音频",e.image="图片",e.doc="文档",e.app="应用",e.archive="压缩包",e.file="仅文件",e))(Gt||{}),of=(e=>(e.userPtime="user_ptime",e.fileName="file_name",e.fileSize="file_size",e.fileType="file_type",e))(of||{});function Tw(e){return {offset:0,limit:1150,aid:1,cid:"",format:"json",o:"user_ptime",asc:0,search_value:"",...e}}function Ms(e){return {aid:1,cid:"",o:"user_ptime",asc:0,offset:0,show_dir:1,limit:115,natsort:0,format:"json",...e}}var qa=(e=>(e[e.normal=0]="normal",e[e.violation=1]="violation",e[e.auditing=2]="auditing",e))(qa||{});class rf extends Error{}class Nl extends rf{constructor(t="搜索失败!"){super(t);}}class af extends Nl{constructor(t="搜索请求响应内容为空!"){super(t);}}class Fl extends rf{constructor(t="目录不存在!"){super(t);}}var lf=(e=>(e[e.exist=20004]="exist",e))(lf||{});const Ow={10013:"超出任务大小限制",10018:"审核中...",10016:"文件内含违规内容"};class wt{constructor(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start();}static hashStr(t,n=!1){return this.onePassHasher.start().appendStr(t).end(n)}static hashAsciiStr(t,n=!1){return this.onePassHasher.start().appendAsciiStr(t).end(n)}static _hex(t){const n=wt.hexChars,s=wt.hexOut;let o,i,r,a;for(a=0;a<4;a+=1)for(i=a*8,o=t[a],r=0;r<8;r+=2)s[i+1+r]=n.charAt(o&15),o>>>=4,s[i+0+r]=n.charAt(o&15),o>>>=4;return s.join("")}static _md5cycle(t,n){let s=t[0],o=t[1],i=t[2],r=t[3];s+=(o&i|~o&r)+n[0]-680876936|0,s=(s<<7|s>>>25)+o|0,r+=(s&o|~s&i)+n[1]-389564586|0,r=(r<<12|r>>>20)+s|0,i+=(r&s|~r&o)+n[2]+606105819|0,i=(i<<17|i>>>15)+r|0,o+=(i&r|~i&s)+n[3]-1044525330|0,o=(o<<22|o>>>10)+i|0,s+=(o&i|~o&r)+n[4]-176418897|0,s=(s<<7|s>>>25)+o|0,r+=(s&o|~s&i)+n[5]+1200080426|0,r=(r<<12|r>>>20)+s|0,i+=(r&s|~r&o)+n[6]-1473231341|0,i=(i<<17|i>>>15)+r|0,o+=(i&r|~i&s)+n[7]-45705983|0,o=(o<<22|o>>>10)+i|0,s+=(o&i|~o&r)+n[8]+1770035416|0,s=(s<<7|s>>>25)+o|0,r+=(s&o|~s&i)+n[9]-1958414417|0,r=(r<<12|r>>>20)+s|0,i+=(r&s|~r&o)+n[10]-42063|0,i=(i<<17|i>>>15)+r|0,o+=(i&r|~i&s)+n[11]-1990404162|0,o=(o<<22|o>>>10)+i|0,s+=(o&i|~o&r)+n[12]+1804603682|0,s=(s<<7|s>>>25)+o|0,r+=(s&o|~s&i)+n[13]-40341101|0,r=(r<<12|r>>>20)+s|0,i+=(r&s|~r&o)+n[14]-1502002290|0,i=(i<<17|i>>>15)+r|0,o+=(i&r|~i&s)+n[15]+1236535329|0,o=(o<<22|o>>>10)+i|0,s+=(o&r|i&~r)+n[1]-165796510|0,s=(s<<5|s>>>27)+o|0,r+=(s&i|o&~i)+n[6]-1069501632|0,r=(r<<9|r>>>23)+s|0,i+=(r&o|s&~o)+n[11]+643717713|0,i=(i<<14|i>>>18)+r|0,o+=(i&s|r&~s)+n[0]-373897302|0,o=(o<<20|o>>>12)+i|0,s+=(o&r|i&~r)+n[5]-701558691|0,s=(s<<5|s>>>27)+o|0,r+=(s&i|o&~i)+n[10]+38016083|0,r=(r<<9|r>>>23)+s|0,i+=(r&o|s&~o)+n[15]-660478335|0,i=(i<<14|i>>>18)+r|0,o+=(i&s|r&~s)+n[4]-405537848|0,o=(o<<20|o>>>12)+i|0,s+=(o&r|i&~r)+n[9]+568446438|0,s=(s<<5|s>>>27)+o|0,r+=(s&i|o&~i)+n[14]-1019803690|0,r=(r<<9|r>>>23)+s|0,i+=(r&o|s&~o)+n[3]-187363961|0,i=(i<<14|i>>>18)+r|0,o+=(i&s|r&~s)+n[8]+1163531501|0,o=(o<<20|o>>>12)+i|0,s+=(o&r|i&~r)+n[13]-1444681467|0,s=(s<<5|s>>>27)+o|0,r+=(s&i|o&~i)+n[2]-51403784|0,r=(r<<9|r>>>23)+s|0,i+=(r&o|s&~o)+n[7]+1735328473|0,i=(i<<14|i>>>18)+r|0,o+=(i&s|r&~s)+n[12]-1926607734|0,o=(o<<20|o>>>12)+i|0,s+=(o^i^r)+n[5]-378558|0,s=(s<<4|s>>>28)+o|0,r+=(s^o^i)+n[8]-2022574463|0,r=(r<<11|r>>>21)+s|0,i+=(r^s^o)+n[11]+1839030562|0,i=(i<<16|i>>>16)+r|0,o+=(i^r^s)+n[14]-35309556|0,o=(o<<23|o>>>9)+i|0,s+=(o^i^r)+n[1]-1530992060|0,s=(s<<4|s>>>28)+o|0,r+=(s^o^i)+n[4]+1272893353|0,r=(r<<11|r>>>21)+s|0,i+=(r^s^o)+n[7]-155497632|0,i=(i<<16|i>>>16)+r|0,o+=(i^r^s)+n[10]-1094730640|0,o=(o<<23|o>>>9)+i|0,s+=(o^i^r)+n[13]+681279174|0,s=(s<<4|s>>>28)+o|0,r+=(s^o^i)+n[0]-358537222|0,r=(r<<11|r>>>21)+s|0,i+=(r^s^o)+n[3]-722521979|0,i=(i<<16|i>>>16)+r|0,o+=(i^r^s)+n[6]+76029189|0,o=(o<<23|o>>>9)+i|0,s+=(o^i^r)+n[9]-640364487|0,s=(s<<4|s>>>28)+o|0,r+=(s^o^i)+n[12]-421815835|0,r=(r<<11|r>>>21)+s|0,i+=(r^s^o)+n[15]+530742520|0,i=(i<<16|i>>>16)+r|0,o+=(i^r^s)+n[2]-995338651|0,o=(o<<23|o>>>9)+i|0,s+=(i^(o|~r))+n[0]-198630844|0,s=(s<<6|s>>>26)+o|0,r+=(o^(s|~i))+n[7]+1126891415|0,r=(r<<10|r>>>22)+s|0,i+=(s^(r|~o))+n[14]-1416354905|0,i=(i<<15|i>>>17)+r|0,o+=(r^(i|~s))+n[5]-57434055|0,o=(o<<21|o>>>11)+i|0,s+=(i^(o|~r))+n[12]+1700485571|0,s=(s<<6|s>>>26)+o|0,r+=(o^(s|~i))+n[3]-1894986606|0,r=(r<<10|r>>>22)+s|0,i+=(s^(r|~o))+n[10]-1051523|0,i=(i<<15|i>>>17)+r|0,o+=(r^(i|~s))+n[1]-2054922799|0,o=(o<<21|o>>>11)+i|0,s+=(i^(o|~r))+n[8]+1873313359|0,s=(s<<6|s>>>26)+o|0,r+=(o^(s|~i))+n[15]-30611744|0,r=(r<<10|r>>>22)+s|0,i+=(s^(r|~o))+n[6]-1560198380|0,i=(i<<15|i>>>17)+r|0,o+=(r^(i|~s))+n[13]+1309151649|0,o=(o<<21|o>>>11)+i|0,s+=(i^(o|~r))+n[4]-145523070|0,s=(s<<6|s>>>26)+o|0,r+=(o^(s|~i))+n[11]-1120210379|0,r=(r<<10|r>>>22)+s|0,i+=(s^(r|~o))+n[2]+718787259|0,i=(i<<15|i>>>17)+r|0,o+=(r^(i|~s))+n[9]-343485551|0,o=(o<<21|o>>>11)+i|0,t[0]=s+t[0]|0,t[1]=o+t[1]|0,t[2]=i+t[2]|0,t[3]=r+t[3]|0;}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(wt.stateIdentity),this}appendStr(t){const n=this._buffer8,s=this._buffer32;let o=this._bufferLength,i,r;for(r=0;r<t.length;r+=1){if(i=t.charCodeAt(r),i<128)n[o++]=i;else if(i<2048)n[o++]=(i>>>6)+192,n[o++]=i&63|128;else if(i<55296||i>56319)n[o++]=(i>>>12)+224,n[o++]=i>>>6&63|128,n[o++]=i&63|128;else {if(i=(i-55296)*1024+(t.charCodeAt(++r)-56320)+65536,i>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");n[o++]=(i>>>18)+240,n[o++]=i>>>12&63|128,n[o++]=i>>>6&63|128,n[o++]=i&63|128;}o>=64&&(this._dataLength+=64,wt._md5cycle(this._state,s),o-=64,s[0]=s[16]);}return this._bufferLength=o,this}appendAsciiStr(t){const n=this._buffer8,s=this._buffer32;let o=this._bufferLength,i,r=0;for(;;){for(i=Math.min(t.length-r,64-o);i--;)n[o++]=t.charCodeAt(r++);if(o<64)break;this._dataLength+=64,wt._md5cycle(this._state,s),o=0;}return this._bufferLength=o,this}appendByteArray(t){const n=this._buffer8,s=this._buffer32;let o=this._bufferLength,i,r=0;for(;;){for(i=Math.min(t.length-r,64-o);i--;)n[o++]=t[r++];if(o<64)break;this._dataLength+=64,wt._md5cycle(this._state,s),o=0;}return this._bufferLength=o,this}getState(){const t=this._state;return {buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[t[0],t[1],t[2],t[3]]}}setState(t){const n=t.buffer,s=t.state,o=this._state;let i;for(this._dataLength=t.length,this._bufferLength=t.buflen,o[0]=s[0],o[1]=s[1],o[2]=s[2],o[3]=s[3],i=0;i<n.length;i+=1)this._buffer8[i]=n.charCodeAt(i);}end(t=!1){const n=this._bufferLength,s=this._buffer8,o=this._buffer32,i=(n>>2)+1;this._dataLength+=n;const r=this._dataLength*8;if(s[n]=128,s[n+1]=s[n+2]=s[n+3]=0,o.set(wt.buffer32Identity.subarray(i),i),n>55&&(wt._md5cycle(this._state,o),o.set(wt.buffer32Identity)),r<=4294967295)o[14]=r;else {const a=r.toString(16).match(/(.*?)(.{0,8})$/);if(a===null)return;const l=parseInt(a[2],16),u=parseInt(a[1],16)||0;o[14]=l,o[15]=u;}return wt._md5cycle(this._state,o),t?this._state:wt._hex(this._state)}}wt.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]);wt.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);wt.hexChars="0123456789abcdef";wt.hexOut=[];wt.onePassHasher=new wt;if(wt.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592")throw new Error("Md5 self test failed.");var uf={exports:{}};(function(e){var t=function(n){var s=1e7,o=7,i=9007199254740992,r=b(i),a="0123456789abcdefghijklmnopqrstuvwxyz",l=typeof BigInt=="function";function u(m,w,k,P){return typeof m>"u"?u[0]:typeof w<"u"?+w==10&&!k?W(m):te(m,w,k,P):W(m)}function d(m,w){this.value=m,this.sign=w,this.isSmall=!1;}d.prototype=Object.create(u.prototype);function h(m){this.value=m,this.sign=m<0,this.isSmall=!0;}h.prototype=Object.create(u.prototype);function y(m){this.value=m;}y.prototype=Object.create(u.prototype);function v(m){return -i<m&&m<i}function b(m){return m<1e7?[m]:m<1e14?[m%1e7,Math.floor(m/1e7)]:[m%1e7,Math.floor(m/1e7)%1e7,Math.floor(m/1e14)]}function _(m){R(m);var w=m.length;if(w<4&&Ze(m,r)<0)switch(w){case 0:return 0;case 1:return m[0];case 2:return m[0]+m[1]*s;default:return m[0]+(m[1]+m[2]*s)*s}return m}function R(m){for(var w=m.length;m[--w]===0;);m.length=w+1;}function L(m){for(var w=new Array(m),k=-1;++k<m;)w[k]=0;return w}function N(m){return m>0?Math.floor(m):Math.ceil(m)}function D(m,w){var k=m.length,P=w.length,z=new Array(k),I=0,X=s,J,re;for(re=0;re<P;re++)J=m[re]+w[re]+I,I=J>=X?1:0,z[re]=J-I*X;for(;re<k;)J=m[re]+I,I=J===X?1:0,z[re++]=J-I*X;return I>0&&z.push(I),z}function B(m,w){return m.length>=w.length?D(m,w):D(w,m)}function F(m,w){var k=m.length,P=new Array(k),z=s,I,X;for(X=0;X<k;X++)I=m[X]-z+w,w=Math.floor(I/z),P[X]=I-w*z,w+=1;for(;w>0;)P[X++]=w%z,w=Math.floor(w/z);return P}d.prototype.add=function(m){var w=W(m);if(this.sign!==w.sign)return this.subtract(w.negate());var k=this.value,P=w.value;return w.isSmall?new d(F(k,Math.abs(P)),this.sign):new d(B(k,P),this.sign)},d.prototype.plus=d.prototype.add,h.prototype.add=function(m){var w=W(m),k=this.value;if(k<0!==w.sign)return this.subtract(w.negate());var P=w.value;if(w.isSmall){if(v(k+P))return new h(k+P);P=b(Math.abs(P));}return new d(F(P,Math.abs(k)),k<0)},h.prototype.plus=h.prototype.add,y.prototype.add=function(m){return new y(this.value+W(m).value)},y.prototype.plus=y.prototype.add;function j(m,w){var k=m.length,P=w.length,z=new Array(k),I=0,X=s,J,re;for(J=0;J<P;J++)re=m[J]-I-w[J],re<0?(re+=X,I=1):I=0,z[J]=re;for(J=P;J<k;J++){if(re=m[J]-I,re<0)re+=X;else {z[J++]=re;break}z[J]=re;}for(;J<k;J++)z[J]=m[J];return R(z),z}function K(m,w,k){var P;return Ze(m,w)>=0?P=j(m,w):(P=j(w,m),k=!k),P=_(P),typeof P=="number"?(k&&(P=-P),new h(P)):new d(P,k)}function de(m,w,k){var P=m.length,z=new Array(P),I=-w,X=s,J,re;for(J=0;J<P;J++)re=m[J]+I,I=Math.floor(re/X),re%=X,z[J]=re<0?re+X:re;return z=_(z),typeof z=="number"?(k&&(z=-z),new h(z)):new d(z,k)}d.prototype.subtract=function(m){var w=W(m);if(this.sign!==w.sign)return this.add(w.negate());var k=this.value,P=w.value;return w.isSmall?de(k,Math.abs(P),this.sign):K(k,P,this.sign)},d.prototype.minus=d.prototype.subtract,h.prototype.subtract=function(m){var w=W(m),k=this.value;if(k<0!==w.sign)return this.add(w.negate());var P=w.value;return w.isSmall?new h(k-P):de(P,Math.abs(k),k>=0)},h.prototype.minus=h.prototype.subtract,y.prototype.subtract=function(m){return new y(this.value-W(m).value)},y.prototype.minus=y.prototype.subtract,d.prototype.negate=function(){return new d(this.value,!this.sign)},h.prototype.negate=function(){var m=this.sign,w=new h(-this.value);return w.sign=!m,w},y.prototype.negate=function(){return new y(-this.value)},d.prototype.abs=function(){return new d(this.value,!1)},h.prototype.abs=function(){return new h(Math.abs(this.value))},y.prototype.abs=function(){return new y(this.value>=0?this.value:-this.value)};function be(m,w){var k=m.length,P=w.length,z=k+P,I=L(z),X=s,J,re,Le,Me,Se;for(Le=0;Le<k;++Le){Me=m[Le];for(var We=0;We<P;++We)Se=w[We],J=Me*Se+I[Le+We],re=Math.floor(J/X),I[Le+We]=J-re*X,I[Le+We+1]+=re;}return R(I),I}function _e(m,w){var k=m.length,P=new Array(k),z=s,I=0,X,J;for(J=0;J<k;J++)X=m[J]*w+I,I=Math.floor(X/z),P[J]=X-I*z;for(;I>0;)P[J++]=I%z,I=Math.floor(I/z);return P}function pe(m,w){for(var k=[];w-- >0;)k.push(0);return k.concat(m)}function S(m,w){var k=Math.max(m.length,w.length);if(k<=30)return be(m,w);k=Math.ceil(k/2);var P=m.slice(k),z=m.slice(0,k),I=w.slice(k),X=w.slice(0,k),J=S(z,X),re=S(P,I),Le=S(B(z,P),B(X,I)),Me=B(B(J,pe(j(j(Le,J),re),k)),pe(re,2*k));return R(Me),Me}function ee(m,w){return -.012*m-.012*w+15e-6*m*w>0}d.prototype.multiply=function(m){var w=W(m),k=this.value,P=w.value,z=this.sign!==w.sign,I;if(w.isSmall){if(P===0)return u[0];if(P===1)return this;if(P===-1)return this.negate();if(I=Math.abs(P),I<s)return new d(_e(k,I),z);P=b(I);}return ee(k.length,P.length)?new d(S(k,P),z):new d(be(k,P),z)},d.prototype.times=d.prototype.multiply;function Z(m,w,k){return m<s?new d(_e(w,m),k):new d(be(w,b(m)),k)}h.prototype._multiplyBySmall=function(m){return v(m.value*this.value)?new h(m.value*this.value):Z(Math.abs(m.value),b(Math.abs(this.value)),this.sign!==m.sign)},d.prototype._multiplyBySmall=function(m){return m.value===0?u[0]:m.value===1?this:m.value===-1?this.negate():Z(Math.abs(m.value),this.value,this.sign!==m.sign)},h.prototype.multiply=function(m){return W(m)._multiplyBySmall(this)},h.prototype.times=h.prototype.multiply,y.prototype.multiply=function(m){return new y(this.value*W(m).value)},y.prototype.times=y.prototype.multiply;function xe(m){var w=m.length,k=L(w+w),P=s,z,I,X,J,re;for(X=0;X<w;X++){J=m[X],I=0-J*J;for(var Le=X;Le<w;Le++)re=m[Le],z=2*(J*re)+k[X+Le]+I,I=Math.floor(z/P),k[X+Le]=z-I*P;k[X+w]=I;}return R(k),k}d.prototype.square=function(){return new d(xe(this.value),!1)},h.prototype.square=function(){var m=this.value*this.value;return v(m)?new h(m):new d(xe(b(Math.abs(this.value))),!1)},y.prototype.square=function(m){return new y(this.value*this.value)};function ye(m,w){var k=m.length,P=w.length,z=s,I=L(w.length),X=w[P-1],J=Math.ceil(z/(2*X)),re=_e(m,J),Le=_e(w,J),Me,Se,We,Mt,It,Oo,Do;for(re.length<=k&&re.push(0),Le.push(0),X=Le[P-1],Se=k-P;Se>=0;Se--){for(Me=z-1,re[Se+P]!==X&&(Me=Math.floor((re[Se+P]*z+re[Se+P-1])/X)),We=0,Mt=0,Oo=Le.length,It=0;It<Oo;It++)We+=Me*Le[It],Do=Math.floor(We/z),Mt+=re[Se+It]-(We-Do*z),We=Do,Mt<0?(re[Se+It]=Mt+z,Mt=-1):(re[Se+It]=Mt,Mt=0);for(;Mt!==0;){for(Me-=1,We=0,It=0;It<Oo;It++)We+=re[Se+It]-z+Le[It],We<0?(re[Se+It]=We+z,We=0):(re[Se+It]=We,We=1);Mt+=We;}I[Se]=Me;}return re=Ee(re,J)[0],[_(I),_(re)]}function Pe(m,w){for(var k=m.length,P=w.length,z=[],I=[],X=s,J,re,Le,Me,Se;k;){if(I.unshift(m[--k]),R(I),Ze(I,w)<0){z.push(0);continue}re=I.length,Le=I[re-1]*X+I[re-2],Me=w[P-1]*X+w[P-2],re>P&&(Le=(Le+1)*X),J=Math.ceil(Le/Me);do{if(Se=_e(w,J),Ze(Se,I)<=0)break;J--;}while(J);z.push(J),I=j(I,Se);}return z.reverse(),[_(z),_(I)]}function Ee(m,w){var k=m.length,P=L(k),z=s,I,X,J,re;for(J=0,I=k-1;I>=0;--I)re=J*z+m[I],X=N(re/w),J=re-X*w,P[I]=X|0;return [P,J|0]}function Ke(m,w){var k,P=W(w);if(l)return [new y(m.value/P.value),new y(m.value%P.value)];var z=m.value,I=P.value,X;if(I===0)throw new Error("Cannot divide by zero");if(m.isSmall)return P.isSmall?[new h(N(z/I)),new h(z%I)]:[u[0],m];if(P.isSmall){if(I===1)return [m,u[0]];if(I==-1)return [m.negate(),u[0]];var J=Math.abs(I);if(J<s){k=Ee(z,J),X=_(k[0]);var re=k[1];return m.sign&&(re=-re),typeof X=="number"?(m.sign!==P.sign&&(X=-X),[new h(X),new h(re)]):[new d(X,m.sign!==P.sign),new h(re)]}I=b(J);}var Le=Ze(z,I);if(Le===-1)return [u[0],m];if(Le===0)return [u[m.sign===P.sign?1:-1],u[0]];z.length+I.length<=200?k=ye(z,I):k=Pe(z,I),X=k[0];var Me=m.sign!==P.sign,Se=k[1],We=m.sign;return typeof X=="number"?(Me&&(X=-X),X=new h(X)):X=new d(X,Me),typeof Se=="number"?(We&&(Se=-Se),Se=new h(Se)):Se=new d(Se,We),[X,Se]}d.prototype.divmod=function(m){var w=Ke(this,m);return {quotient:w[0],remainder:w[1]}},y.prototype.divmod=h.prototype.divmod=d.prototype.divmod,d.prototype.divide=function(m){return Ke(this,m)[0]},y.prototype.over=y.prototype.divide=function(m){return new y(this.value/W(m).value)},h.prototype.over=h.prototype.divide=d.prototype.over=d.prototype.divide,d.prototype.mod=function(m){return Ke(this,m)[1]},y.prototype.mod=y.prototype.remainder=function(m){return new y(this.value%W(m).value)},h.prototype.remainder=h.prototype.mod=d.prototype.remainder=d.prototype.mod,d.prototype.pow=function(m){var w=W(m),k=this.value,P=w.value,z,I,X;if(P===0)return u[1];if(k===0)return u[0];if(k===1)return u[1];if(k===-1)return w.isEven()?u[1]:u[-1];if(w.sign)return u[0];if(!w.isSmall)throw new Error("The exponent "+w.toString()+" is too large.");if(this.isSmall&&v(z=Math.pow(k,P)))return new h(N(z));for(I=this,X=u[1];P&!0&&(X=X.times(I),--P),P!==0;)P/=2,I=I.square();return X},h.prototype.pow=d.prototype.pow,y.prototype.pow=function(m){var w=W(m),k=this.value,P=w.value,z=BigInt(0),I=BigInt(1),X=BigInt(2);if(P===z)return u[1];if(k===z)return u[0];if(k===I)return u[1];if(k===BigInt(-1))return w.isEven()?u[1]:u[-1];if(w.isNegative())return new y(z);for(var J=this,re=u[1];(P&I)===I&&(re=re.times(J),--P),P!==z;)P/=X,J=J.square();return re},d.prototype.modPow=function(m,w){if(m=W(m),w=W(w),w.isZero())throw new Error("Cannot take modPow with modulus 0");var k=u[1],P=this.mod(w);for(m.isNegative()&&(m=m.multiply(u[-1]),P=P.modInv(w));m.isPositive();){if(P.isZero())return u[0];m.isOdd()&&(k=k.multiply(P).mod(w)),m=m.divide(2),P=P.square().mod(w);}return k},y.prototype.modPow=h.prototype.modPow=d.prototype.modPow;function Ze(m,w){if(m.length!==w.length)return m.length>w.length?1:-1;for(var k=m.length-1;k>=0;k--)if(m[k]!==w[k])return m[k]>w[k]?1:-1;return 0}d.prototype.compareAbs=function(m){var w=W(m),k=this.value,P=w.value;return w.isSmall?1:Ze(k,P)},h.prototype.compareAbs=function(m){var w=W(m),k=Math.abs(this.value),P=w.value;return w.isSmall?(P=Math.abs(P),k===P?0:k>P?1:-1):-1},y.prototype.compareAbs=function(m){var w=this.value,k=W(m).value;return w=w>=0?w:-w,k=k>=0?k:-k,w===k?0:w>k?1:-1},d.prototype.compare=function(m){if(m===1/0)return -1;if(m===-1/0)return 1;var w=W(m),k=this.value,P=w.value;return this.sign!==w.sign?w.sign?1:-1:w.isSmall?this.sign?-1:1:Ze(k,P)*(this.sign?-1:1)},d.prototype.compareTo=d.prototype.compare,h.prototype.compare=function(m){if(m===1/0)return -1;if(m===-1/0)return 1;var w=W(m),k=this.value,P=w.value;return w.isSmall?k==P?0:k>P?1:-1:k<0!==w.sign?k<0?-1:1:k<0?1:-1},h.prototype.compareTo=h.prototype.compare,y.prototype.compare=function(m){if(m===1/0)return -1;if(m===-1/0)return 1;var w=this.value,k=W(m).value;return w===k?0:w>k?1:-1},y.prototype.compareTo=y.prototype.compare,d.prototype.equals=function(m){return this.compare(m)===0},y.prototype.eq=y.prototype.equals=h.prototype.eq=h.prototype.equals=d.prototype.eq=d.prototype.equals,d.prototype.notEquals=function(m){return this.compare(m)!==0},y.prototype.neq=y.prototype.notEquals=h.prototype.neq=h.prototype.notEquals=d.prototype.neq=d.prototype.notEquals,d.prototype.greater=function(m){return this.compare(m)>0},y.prototype.gt=y.prototype.greater=h.prototype.gt=h.prototype.greater=d.prototype.gt=d.prototype.greater,d.prototype.lesser=function(m){return this.compare(m)<0},y.prototype.lt=y.prototype.lesser=h.prototype.lt=h.prototype.lesser=d.prototype.lt=d.prototype.lesser,d.prototype.greaterOrEquals=function(m){return this.compare(m)>=0},y.prototype.geq=y.prototype.greaterOrEquals=h.prototype.geq=h.prototype.greaterOrEquals=d.prototype.geq=d.prototype.greaterOrEquals,d.prototype.lesserOrEquals=function(m){return this.compare(m)<=0},y.prototype.leq=y.prototype.lesserOrEquals=h.prototype.leq=h.prototype.lesserOrEquals=d.prototype.leq=d.prototype.lesserOrEquals,d.prototype.isEven=function(){return (this.value[0]&1)===0},h.prototype.isEven=function(){return (this.value&1)===0},y.prototype.isEven=function(){return (this.value&BigInt(1))===BigInt(0)},d.prototype.isOdd=function(){return (this.value[0]&1)===1},h.prototype.isOdd=function(){return (this.value&1)===1},y.prototype.isOdd=function(){return (this.value&BigInt(1))===BigInt(1)},d.prototype.isPositive=function(){return !this.sign},h.prototype.isPositive=function(){return this.value>0},y.prototype.isPositive=h.prototype.isPositive,d.prototype.isNegative=function(){return this.sign},h.prototype.isNegative=function(){return this.value<0},y.prototype.isNegative=h.prototype.isNegative,d.prototype.isUnit=function(){return !1},h.prototype.isUnit=function(){return Math.abs(this.value)===1},y.prototype.isUnit=function(){return this.abs().value===BigInt(1)},d.prototype.isZero=function(){return !1},h.prototype.isZero=function(){return this.value===0},y.prototype.isZero=function(){return this.value===BigInt(0)},d.prototype.isDivisibleBy=function(m){var w=W(m);return w.isZero()?!1:w.isUnit()?!0:w.compareAbs(2)===0?this.isEven():this.mod(w).isZero()},y.prototype.isDivisibleBy=h.prototype.isDivisibleBy=d.prototype.isDivisibleBy;function ve(m){var w=m.abs();if(w.isUnit())return !1;if(w.equals(2)||w.equals(3)||w.equals(5))return !0;if(w.isEven()||w.isDivisibleBy(3)||w.isDivisibleBy(5))return !1;if(w.lesser(49))return !0}function M(m,w){for(var k=m.prev(),P=k,z=0,I,X,J;P.isEven();)P=P.divide(2),z++;e:for(X=0;X<w.length;X++)if(!m.lesser(w[X])&&(J=t(w[X]).modPow(P,m),!(J.isUnit()||J.equals(k)))){for(I=z-1;I!=0;I--){if(J=J.square().mod(m),J.isUnit())return !1;if(J.equals(k))continue e}return !1}return !0}d.prototype.isPrime=function(m){var w=ve(this);if(w!==n)return w;var k=this.abs(),P=k.bitLength();if(P<=64)return M(k,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var z=Math.log(2)*P.toJSNumber(),I=Math.ceil(m===!0?2*Math.pow(z,2):z),X=[],J=0;J<I;J++)X.push(t(J+2));return M(k,X)},y.prototype.isPrime=h.prototype.isPrime=d.prototype.isPrime,d.prototype.isProbablePrime=function(m,w){var k=ve(this);if(k!==n)return k;for(var P=this.abs(),z=m===n?5:m,I=[],X=0;X<z;X++)I.push(t.randBetween(2,P.minus(2),w));return M(P,I)},y.prototype.isProbablePrime=h.prototype.isProbablePrime=d.prototype.isProbablePrime,d.prototype.modInv=function(m){for(var w=t.zero,k=t.one,P=W(m),z=this.abs(),I,X,J;!z.isZero();)I=P.divide(z),X=w,J=P,w=k,P=z,k=X.subtract(I.multiply(k)),z=J.subtract(I.multiply(z));if(!P.isUnit())throw new Error(this.toString()+" and "+m.toString()+" are not co-prime");return w.compare(0)===-1&&(w=w.add(m)),this.isNegative()?w.negate():w},y.prototype.modInv=h.prototype.modInv=d.prototype.modInv,d.prototype.next=function(){var m=this.value;return this.sign?de(m,1,this.sign):new d(F(m,1),this.sign)},h.prototype.next=function(){var m=this.value;return m+1<i?new h(m+1):new d(r,!1)},y.prototype.next=function(){return new y(this.value+BigInt(1))},d.prototype.prev=function(){var m=this.value;return this.sign?new d(F(m,1),!0):de(m,1,this.sign)},h.prototype.prev=function(){var m=this.value;return m-1>-i?new h(m-1):new d(r,!0)},y.prototype.prev=function(){return new y(this.value-BigInt(1))};for(var Ne=[1];2*Ne[Ne.length-1]<=s;)Ne.push(2*Ne[Ne.length-1]);var ft=Ne.length,Ie=Ne[ft-1];function lt(m){return Math.abs(m)<=s}d.prototype.shiftLeft=function(m){var w=W(m).toJSNumber();if(!lt(w))throw new Error(String(w)+" is too large for shifting.");if(w<0)return this.shiftRight(-w);var k=this;if(k.isZero())return k;for(;w>=ft;)k=k.multiply(Ie),w-=ft-1;return k.multiply(Ne[w])},y.prototype.shiftLeft=h.prototype.shiftLeft=d.prototype.shiftLeft,d.prototype.shiftRight=function(m){var w,k=W(m).toJSNumber();if(!lt(k))throw new Error(String(k)+" is too large for shifting.");if(k<0)return this.shiftLeft(-k);for(var P=this;k>=ft;){if(P.isZero()||P.isNegative()&&P.isUnit())return P;w=Ke(P,Ie),P=w[1].isNegative()?w[0].prev():w[0],k-=ft-1;}return w=Ke(P,Ne[k]),w[1].isNegative()?w[0].prev():w[0]},y.prototype.shiftRight=h.prototype.shiftRight=d.prototype.shiftRight;function gt(m,w,k){w=W(w);for(var P=m.isNegative(),z=w.isNegative(),I=P?m.not():m,X=z?w.not():w,J=0,re=0,Le=null,Me=null,Se=[];!I.isZero()||!X.isZero();)Le=Ke(I,Ie),J=Le[1].toJSNumber(),P&&(J=Ie-1-J),Me=Ke(X,Ie),re=Me[1].toJSNumber(),z&&(re=Ie-1-re),I=Le[0],X=Me[0],Se.push(k(J,re));for(var We=k(P?1:0,z?1:0)!==0?t(-1):t(0),Mt=Se.length-1;Mt>=0;Mt-=1)We=We.multiply(Ie).add(t(Se[Mt]));return We}d.prototype.not=function(){return this.negate().prev()},y.prototype.not=h.prototype.not=d.prototype.not,d.prototype.and=function(m){return gt(this,m,function(w,k){return w&k})},y.prototype.and=h.prototype.and=d.prototype.and,d.prototype.or=function(m){return gt(this,m,function(w,k){return w|k})},y.prototype.or=h.prototype.or=d.prototype.or,d.prototype.xor=function(m){return gt(this,m,function(w,k){return w^k})},y.prototype.xor=h.prototype.xor=d.prototype.xor;var Pt=1<<30,Q=(s&-s)*(s&-s)|Pt;function O(m){var w=m.value,k=typeof w=="number"?w|Pt:typeof w=="bigint"?w|BigInt(Pt):w[0]+w[1]*s|Q;return k&-k}function V(m,w){if(w.compareTo(m)<=0){var k=V(m,w.square(w)),P=k.p,z=k.e,I=P.multiply(w);return I.compareTo(m)<=0?{p:I,e:z*2+1}:{p:P,e:z*2}}return {p:t(1),e:0}}d.prototype.bitLength=function(){var m=this;return m.compareTo(t(0))<0&&(m=m.negate().subtract(t(1))),m.compareTo(t(0))===0?t(0):t(V(m,t(2)).e).add(t(1))},y.prototype.bitLength=h.prototype.bitLength=d.prototype.bitLength;function Ce(m,w){return m=W(m),w=W(w),m.greater(w)?m:w}function x(m,w){return m=W(m),w=W(w),m.lesser(w)?m:w}function E(m,w){if(m=W(m).abs(),w=W(w).abs(),m.equals(w))return m;if(m.isZero())return w;if(w.isZero())return m;for(var k=u[1],P,z;m.isEven()&&w.isEven();)P=x(O(m),O(w)),m=m.divide(P),w=w.divide(P),k=k.multiply(P);for(;m.isEven();)m=m.divide(O(m));do{for(;w.isEven();)w=w.divide(O(w));m.greater(w)&&(z=w,w=m,m=z),w=w.subtract(m);}while(!w.isZero());return k.isUnit()?m:m.multiply(k)}function q(m,w){return m=W(m).abs(),w=W(w).abs(),m.divide(E(m,w)).multiply(w)}function H(m,w,k){m=W(m),w=W(w);var P=k||Math.random,z=x(m,w),I=Ce(m,w),X=I.subtract(z).add(1);if(X.isSmall)return z.add(Math.floor(P()*X));for(var J=ie(X,s).value,re=[],Le=!0,Me=0;Me<J.length;Me++){var Se=Le?J[Me]+(Me+1<J.length?J[Me+1]/s:0):s,We=N(P()*Se);re.push(We),We<J[Me]&&(Le=!1);}return z.add(u.fromArray(re,s,!1))}var te=function(m,w,k,P){k=k||a,m=String(m),P||(m=m.toLowerCase(),k=k.toLowerCase());var z=m.length,I,X=Math.abs(w),J={};for(I=0;I<k.length;I++)J[k[I]]=I;for(I=0;I<z;I++){var re=m[I];if(re!=="-"&&re in J&&J[re]>=X){if(re==="1"&&X===1)continue;throw new Error(re+" is not a valid digit in base "+w+".")}}w=W(w);var Le=[],Me=m[0]==="-";for(I=Me?1:0;I<m.length;I++){var re=m[I];if(re in J)Le.push(W(J[re]));else if(re==="<"){var Se=I;do I++;while(m[I]!==">"&&I<m.length);Le.push(W(m.slice(Se+1,I)));}else throw new Error(re+" is not a valid character")}return se(Le,w,Me)};function se(m,w,k){var P=u[0],z=u[1],I;for(I=m.length-1;I>=0;I--)P=P.add(m[I].times(z)),z=z.times(w);return k?P.negate():P}function me(m,w){return w=w||a,m<w.length?w[m]:"<"+m+">"}function ie(m,w){if(w=t(w),w.isZero()){if(m.isZero())return {value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(w.equals(-1)){if(m.isZero())return {value:[0],isNegative:!1};if(m.isNegative())return {value:[].concat.apply([],Array.apply(null,Array(-m.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var k=Array.apply(null,Array(m.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return k.unshift([1]),{value:[].concat.apply([],k),isNegative:!1}}var P=!1;if(m.isNegative()&&w.isPositive()&&(P=!0,m=m.abs()),w.isUnit())return m.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(m.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:P};for(var z=[],I=m,X;I.isNegative()||I.compareAbs(w)>=0;){X=I.divmod(w),I=X.quotient;var J=X.remainder;J.isNegative()&&(J=w.minus(J).abs(),I=I.next()),z.push(J.toJSNumber());}return z.push(I.toJSNumber()),{value:z.reverse(),isNegative:P}}function le(m,w,k){var P=ie(m,w);return (P.isNegative?"-":"")+P.value.map(function(z){return me(z,k)}).join("")}d.prototype.toArray=function(m){return ie(this,m)},h.prototype.toArray=function(m){return ie(this,m)},y.prototype.toArray=function(m){return ie(this,m)},d.prototype.toString=function(m,w){if(m===n&&(m=10),m!==10)return le(this,m,w);for(var k=this.value,P=k.length,z=String(k[--P]),I="0000000",X;--P>=0;)X=String(k[P]),z+=I.slice(X.length)+X;var J=this.sign?"-":"";return J+z},h.prototype.toString=function(m,w){return m===n&&(m=10),m!=10?le(this,m,w):String(this.value)},y.prototype.toString=h.prototype.toString,y.prototype.toJSON=d.prototype.toJSON=h.prototype.toJSON=function(){return this.toString()},d.prototype.valueOf=function(){return parseInt(this.toString(),10)},d.prototype.toJSNumber=d.prototype.valueOf,h.prototype.valueOf=function(){return this.value},h.prototype.toJSNumber=h.prototype.valueOf,y.prototype.valueOf=y.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function ce(m){if(v(+m)){var w=+m;if(w===N(w))return l?new y(BigInt(w)):new h(w);throw new Error("Invalid integer: "+m)}var k=m[0]==="-";k&&(m=m.slice(1));var P=m.split(/e/i);if(P.length>2)throw new Error("Invalid integer: "+P.join("e"));if(P.length===2){var z=P[1];if(z[0]==="+"&&(z=z.slice(1)),z=+z,z!==N(z)||!v(z))throw new Error("Invalid integer: "+z+" is not a valid exponent.");var I=P[0],X=I.indexOf(".");if(X>=0&&(z-=I.length-X-1,I=I.slice(0,X)+I.slice(X+1)),z<0)throw new Error("Cannot include negative exponent part for integers");I+=new Array(z+1).join("0"),m=I;}var J=/^([0-9][0-9]*)$/.test(m);if(!J)throw new Error("Invalid integer: "+m);if(l)return new y(BigInt(k?"-"+m:m));for(var re=[],Le=m.length,Me=o,Se=Le-Me;Le>0;)re.push(+m.slice(Se,Le)),Se-=Me,Se<0&&(Se=0),Le-=Me;return R(re),new d(re,k)}function Ae(m){if(l)return new y(BigInt(m));if(v(m)){if(m!==N(m))throw new Error(m+" is not an integer.");return new h(m)}return ce(m.toString())}function W(m){return typeof m=="number"?Ae(m):typeof m=="string"?ce(m):typeof m=="bigint"?new y(m):m}for(var $e=0;$e<1e3;$e++)u[$e]=W($e),$e>0&&(u[-$e]=W(-$e));return u.one=u[1],u.zero=u[0],u.minusOne=u[-1],u.max=Ce,u.min=x,u.gcd=E,u.lcm=q,u.isInstance=function(m){return m instanceof d||m instanceof h||m instanceof y},u.randBetween=H,u.fromArray=function(m,w,k){return se(m.map(W),W(w||10),k)},u}();e.hasOwnProperty("exports")&&(e.exports=t);})(uf);var Dw=uf.exports;const Pi=Bl(Dw);class Mw{constructor(){ke(this,"n");ke(this,"e");this.n=Pi("8686980c0f5a24c4b9d43020cd2c22703ff3f450756529058b1cf88f09b8602136477198a6e2683149659bd122c33592fdb5ad47944ad1ea4d36c6b172aad6338c3bb6ac6227502d010993ac967d1aef00f0c8e038de2e4d3bc2ec368af2e9f10a6f1eda4f7262f136420c07c331b871bf139f74f3010e3c4fe57df3afb71683",16),this.e=Pi("10001",16);}a2hex(t){let n="",s;for(let o=0;o<t.length;o++)s=t[o].toString(16),s.length<2&&(s="0"+s),n+=s;return n}hex2a(t){let n="";for(let s=0;s<t.length;s+=2)n+=String.fromCharCode(parseInt(t.substr(s,2),16));return n}pkcs1pad2(t,n){if(n<t.length+11)return null;let s=[],o=t.length-1;for(;o>=0&&n>0;)s[--n]=t.charCodeAt(o--);for(s[--n]=0;n>2;)s[--n]=255;s[--n]=2,s[--n]=0;let i=this.a2hex(s);return Pi(i,16)}pkcs1unpad2(t){let n=t.toString(16);n.length%2!==0&&(n="0"+n);let s=this.hex2a(n),o=1;for(;s.charCodeAt(o)!==0;)o++;return s.slice(o+1)}encrypt(t){let n=this.pkcs1pad2(t,128),s=n==null?void 0:n.modPow(this.e,this.n),o=(s==null?void 0:s.toString(16))||"";for(;o.length<128*2;)o="0"+o;return o}decrypt(t){const n=[];let s=0;for(;s<t.length;)n[s]=t.charCodeAt(s),s+=1;const i=Pi(this.a2hex(n),16).modPow(this.e,this.n);return this.pkcs1unpad2(i)}}class Lw{constructor(){ke(this,"rsa");ke(this,"kts");ke(this,"keyS");ke(this,"keyL");this.rsa=new Mw,this.kts=[240,229,105,174,191,220,191,138,26,69,232,190,125,166,115,184,222,143,231,196,69,218,134,196,155,100,139,20,106,180,241,170,56,1,53,158,38,105,44,134,0,107,79,165,54,52,98,166,42,150,104,24,242,74,253,189,107,151,143,77,143,137,19,183,108,142,147,237,14,13,72,62,215,47,136,216,254,254,126,134,80,149,79,209,235,131,38,52,219,102,123,156,126,157,122,129,50,234,182,51,222,58,169,89,52,102,59,170,186,129,96,72,185,213,129,156,248,108,132,119,255,84,120,38,95,190,232,30,54,159,52,128,92,69,44,155,118,213,27,143,204,195,184,245],this.keyS=[41,35,33,94],this.keyL=[120,6,173,76,51,134,93,24,76,1,63,70];}xor115Enc(t,n,s,o){let i,r,a,l,u,d,h,y;if(l=n%4,y=[],l!==0)for(i=r=0,u=l;u>=0?r<u:r>u;i=u>=0?++r:--r)y.push(t[i]^s[i%o]);for(i=a=d=l,h=n;d<=h?a<h:a>h;i=d<=h?++a:--a)y.push(t[i]^s[(i-l)%o]);return y}getkey(t,n){let s;return n!=null?(()=>{let o,i,r;for(r=[],s=o=0,i=t;i>=0?o<i:o>i;s=i>=0?++o:--o)r.push(n[s]+this.kts[t*s]&255^this.kts[t*(t-1-s)]);return r})():t===12?this.keyL.slice(0):this.keyS.slice(0)}asymEncode(t,n){let s,o,i,r,a;for(i=117,a="",s=o=0,r=Math.floor((n+i-1)/i);r>=0?o<r:o>r;s=r>=0?++o:--o)a+=this.rsa.encrypt(this.bytesToString(t.slice(s*i,Math.min((s+1)*i,n))));return window.btoa(this.rsa.hex2a(a))}asymDecode(t,n){let s,o,i,r,a;for(i=128,a="",s=o=0,r=Math.floor((n+i-1)/i);r>=0?o<r:o>r;s=r>=0?++o:--o)a+=this.rsa.decrypt(this.bytesToString(t.slice(s*i,Math.min((s+1)*i,n))));return this.stringToBytes(a)}symEncode(t,n,s,o){let i,r,a;return i=this.getkey(4,s),r=this.getkey(12,o),a=this.xor115Enc(t,n,i,4),a.reverse(),a=this.xor115Enc(a,n,r,12),a}symDecode(t,n,s,o){let i,r,a;return i=this.getkey(4,s),r=this.getkey(12,o),a=this.xor115Enc(t,n,r,12),a.reverse(),a=this.xor115Enc(a,n,i,4),a}bytesToString(t){let n,s,o,i;for(i="",s=0,o=t.length;s<o;s++)n=t[s],i+=String.fromCharCode(n);return i}stringToBytes(t){let n,s,o;for(o=[],n=0,s=t.length;n<s;n++)o.push(t.charCodeAt(n));return o}encode(t,n){const s=this.stringToBytes(wt.hashStr(`!@###@#${n}DFDR@#@#`));let o=this.stringToBytes(t);return o=this.symEncode(o,o.length,s,null),o=s.slice(0,16).concat(o),{data:this.asymEncode(o,o.length),key:s}}decode(t,n){let s=this.stringToBytes(window.atob(t));return s=this.asymDecode(s,s.length),this.bytesToString(this.symDecode(s.slice(16),s.length-16,n,s.slice(0,16)))}}let cf;function Bw(e){cf=e;}function zt(){return cf}function kr(e,...t){return new e(t[0])}async function ys(e,t,n){return new Promise(async(s,o)=>{if(typeof e!="function"){o("提供的参数`fulfill`不是一个Function!");return}let i=!1;e(l=>{i=!0,s(l);});let r=setInterval(async()=>{if(i){clearTimeout(a),clearInterval(r);return}e(l=>{clearTimeout(a),clearInterval(r),s(l);});},t),a=setTimeout(()=>{clearInterval(r),o("超时");},n);})}async function an(e){return new Promise(t=>{setTimeout(t,e);})}function Ut(e,t,n){let s;return function(...o){const i=()=>{s=void 0,e.apply(this,o);};clearTimeout(s),s=setTimeout(i,t);}}function Ns(e,t){t=t||window,t.postMessage(e);}function Ul(e,t=location.href){const n=new RegExp("(\\?|#|&)"+e+"=([^&#]*)(&|#|$)"),s=t.match(n);return s?s[2]:""}function yo(){return Math.floor(Date.now()/1e3)}function df(e){const t=e.target;e.key==="a"&&(e.ctrlKey||e.metaKey)&&t.select();}function ff(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement}function Rw(e){e.addEventListener("keydown",t=>{const n=t.target;ff(n)&&df(t);});}function pf(e,t=.2,n=.5){e.style.transition=`opacity ${n}s`,e.style.opacity=t.toString(),setTimeout(()=>{e.remove();},500);}function Qt(e){const t=document.createElement("div");if(t.innerHTML=e.trim(),t.childNodes.length!==1||!(t.firstChild instanceof HTMLElement))throw new Error("Invalid HTML string. It must contain exactly one root element.");return t.firstChild}function hf(e,t=document,n=XPathResult.ORDERED_NODE_SNAPSHOT_TYPE){const s=[],o=document.evaluate(e,t,null,n,null);for(let i=0;i<o.snapshotLength;i++){const r=o.snapshotItem(i);r&&s.push(r);}return s}async function $t(e,t=100,n=12e4,s=document){const o=await mf(e,t,n,s);if(o.length)return o[0];throw new Error(`未找到元素:${e}`)}async function mf(e,t=100,n=12e4,s=document){const o=e.indexOf("//")===0;function i(r){if(o){const a=hf(e);a.length>0&&r(a);}else {const a=s.querySelectorAll(e);a.length&&r(Array.from(a));}}try{return await ys(i,t,n)}catch(r){throw console.warn("[find]",r),new Error(`查找元素超时:${e}`)}}async function as(e,t=100,n=12e4){const s=e.indexOf("//")===0;function o(i){if(s){const r=hf(e);r.length>0&&i(unsafeWindow.$(r));}else {const r=unsafeWindow.$(e);r.length&&i(r);}}try{return await ys(o,t,n)}catch(i){throw console.warn("[findWithJQuery]",i),new Error(`查找元素超时:${e}`)}}const Vo=he.mixin({toast:!0,position:"top-end",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:e=>{e.addEventListener("mouseenter",he.stopTimer),e.addEventListener("mouseleave",he.resumeTimer);},customClass:"swal-toast"});async function Nw(e,t){e.addEventListener("keydown",n=>{const s=n.target;if(!ff(s))return;let o=!1;n.key==="Enter"&&(n.ctrlKey||n.metaKey)&&(o=!0),o&&he.clickConfirm();});}async function ue(e){return he.fire({toast:!0,position:"top",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:t=>{t.addEventListener("mouseenter",he.stopTimer),t.addEventListener("mouseleave",he.resumeTimer);},...e})}async function Fw(e,t,n=!1){var i;const s=new Map;if(!e.length)return s;t=t||await ko();let o=new Map;n||(ue({text:"正在获取上级目录路径...",timer:0}),he.showLoading());try{o=await pb(e),n||he.close();}catch(r){return console.error(r),n||ue({text:`获取上级目录路径失败: ${r}`,timer:1200,icon:"error"}),s}finally{n||he.hideLoading();}if(o.size===0)return s;for(let r=0;r<e.length;r++){const a=(i=o.get(e[r].parentId))==null?void 0:i.slice(1).join("/"),l=e[r].name,u=tf(a+"/"+l),d=e[r].isFile?await go(t,u,fs.play):await za(t,u);s.set(u,d);}return console.log("[buildCloudDriveUrlsForFileItems] pathToUrl:",s),s}async function Uw(e,t,n=!1){return new Promise(async(s,o)=>{const i=await go(e,t,void 0,n);Dl({method:"HEAD",url:i,onload:r=>s(r.status===200),onerror:r=>o(r)});})}async function jw(e,t,n,s,o){const r=`waitFileExist_${Zd()} path: ${t}`;console.time(r);async function a(l){const u=await Uw(e,t,n);u&&l(u);}try{await ys(a,s,o);}catch{throw new Error(`[waitFileExist] 检查文件存在超时!文件路径: ${t}`)}finally{console.timeEnd(r);}}async function Hw(e){let t=`#EXTM3U
`;for(const[n,s]of e)t+=`#EXTINF:0,${n}
${s}
`;return t}var ls=(e=>(e.unix="/",e.windows="\\",e))(ls||{});function tr(e,t="/"){return e.map((n,s)=>s===0?n:$r(n,t)).join(t)}function $r(e,t="/"){return e=e.replace(/[\\/]/g,t),t==="/"?e=e.replace(/\/+/g,t):e=e.replace(/\\+/g,t),e.length>1&&e.endsWith(t)&&(e=e.slice(0,-1)),e}function zw(e){return e.startsWith("/")}function qw(e){return e===""||e==="/"||e==="\\"}function Va(e,t,n="/"){if(zw(t))return t;const s=new URL(e,"http://example.com");s.pathname=Vw(s.pathname,t);let o=decodeURIComponent(s.pathname);return $r(o,n)}function Vw(e,t){const n=e.endsWith("/")?e:e+"/",s=t.startsWith("/")?t.slice(1):t;return n+s}function gf(e,t=/^\w+$/){const n=e.lastIndexOf(".");if(n===-1)return "";const s=e.slice(n+1);return t&&!t.test(s)?"":s}const Kw=["ts","wmv","3pg","mp4","mpg","m4v","iso","mkv","avi","dvd","wmv","i00","i01","i02","i03","i04","i05","i06","i07","i08","i09","i10","i11","i12","mpeg","mov","m2ts","bup","vob","rmvb","md0","md1","md2","md3","md4","md5","mdf","mds","nrg","flv"],Ww=["jpg","jpeg","png","gif","bmp","svg"],Gw=["mp3","wav","wma","ogg","ape","flac","aac"];function nr(e,t,n="text/plain"){const s=document.createElement("a");document.body.appendChild(s),s.setAttribute("style","display:none");const o=new Blob([e],{type:n}),i=window.URL.createObjectURL(o);s.href=i,s.download=t,s.click(),window.URL.revokeObjectURL(i);}function sr(e,t=2){if(Number.isNaN(e)||(e=typeof e=="string"?parseInt(e):e,!e))return "0";const n=1024,s=t,o=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,i)).toFixed(s))+" "+o[i]}function cc(e){const t=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],n=new RegExp(`^(\\d+(?:\\.\\d+)?)(${t.join("|")})$`,"i"),s=e.match(n);if(!s)throw new Error(`无效的文件大小!${e}`);const o=parseFloat(s[1]),i=s[2].toUpperCase(),r=t.indexOf(i);if(r<0)throw new Error(`无效的文件大小!${e}`);return o*Math.pow(1024,r)}function Jw(e){return e?Kw.indexOf(e.toLowerCase())>-1:!1}function Yw(e){return e?Ww.indexOf(e.toLowerCase())>-1:!1}function Qw(e){return e?Gw.indexOf(e.toLowerCase())>-1:!1}function yf(e){return JSON.parse(JSON.stringify(e))}function dc(e){return e&&typeof e=="object"&&!Array.isArray(e)}function jl(...e){const t={};for(const n of e)for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(dc(n[s])&&dc(t[s])?t[s]=jl(t[s],n[s]):t[s]=n[s]);return t}function Xw(e){const t=new Map;for(const[n,s]of e)t.set(s,n);return t}function Sr(e){const t=new URLSearchParams;let n;for(n in e)t.append(n,e[n].toString());return t.toString()}function Zw(e,t=!1){const n=[];for(const s in e){let o=e[s].toString();o=t?encodeURIComponent(o):o,n.push(`${s}=${o}`);}return n.join("&")}function eb(e){const t=new FormData;let n;for(n in e)t.append(n,e[n].toString());return t}async function jt(e=!0){const t=pn().GetCurWangPanCid();return !t&&e?(pn().Core.MinMessage.Show({text:'不支持"根目录"!',timeout:1e3}),""):t}function tb(e={}){return {move:!0,rename:!0,delete:!0,more:!0,classList:"ce-temp-item",...e}}async function nb(e,t,n={}){const s=!t.sha1,o=s?"":gf(t.file_name),i=s?"folder":o.toLowerCase(),r=s?"文件夹":o.toUpperCase()+"文件",a=s?"cate_id":"file_id";let l=$(`li.temp-el[${a}="${e}"]`);if(!l.length){const h=[];h.push(s?`<a class="name" href="javascript:;" cate="1" menu="open" aid="1" cid="${e}" rel="view_folder">
        <span>${t.file_name}</span>
      </a>`:`<a class="name" href="javascript:;" menu="view_file_one" rel="file" field="file_name">
        <span>${t.file_name}</span>
      </a>`),n.star&&h.push(`<a href="javascript:;" class="icon-star ${t.is_mark==="1"?"i-star-active":""}" menu="star" start_point="1" is_star="${t.is_mark}" data_title="星标">星标</a>`),n.remark&&h.push('<a href="javascript:;" class="icon-remarks" style="display: none;" menu="remark"></a>'),n.scores&&h.push('<div class="score-stars" menu="file_score"></div>');const y=n.labels?`<div class="labels-text" style="display: none;" rel="label_box">
      <span style="cursor: pointer; display: none;" class="ic-ellipsis" rel="more_label">...</span>
    </div>`:"",v=[];n.setTop&&v.push(`<a href="javascript:;" menu="setTop" rel="setTop">
        <i class="icon-operate ifo-filesettop" menu="setTop"></i>
        <span menu="setTop">置顶</span>
      </a>`),n.move&&v.push(`<a href="javascript:;" menu="move">
        <i class="icon-operate ifo-move" menu="move"></i>
        <span menu="move">移动</span>
      </a>`),n.rename&&v.push(`<a href="javascript:;" menu="edit_name">
        <i class="icon-operate ifo-rename" menu="edit_name"></i>
        <span menu="edit_name">重命名</span>
      </a>`),n.delete&&v.push(`<a href="javascript:;" menu="delete">
        <i class="icon-operate ifo-remove" menu="delete"></i>
        <span menu="delete">删除</span>
      </a>`);const b=[`<div class="file-name-wrap">
        <i class="file-type tp-${i}" folder-type="shared"></i>
        <span class="file-name" rel="file_name">
          <em>
            ${h.join(`
`)}
          </em>
        </span>
        ${y}
      </div>`,`<div class="file-size"><span>${s?"":t.size}</span></div>`,`<div class="file-typename"><span>${r}</span></div>`,`<div class="file-modified">${new Date(Number(t.utime)*1e3).toLocaleString()}</div>`,'<div class="file-directory"></div>',`<div class="file-opr" rel="menu">
        ${v.join(`
`)}
      </div>`],_=`
      <li rel="item" class="temp-el" file_type="${s?0:1}">
        <s class="drag-flag" data-rel="drag" style="cursor: pointer;"></s>
        <textarea style="display: none;" field="desc"></textarea>
        <textarea style="display: none;" field="ext3"></textarea>
        <input type="checkbox" value="${e}"/>
        <div class="checkbox" menu="file_check_one"></div>
        ${b.join(`
`)}
      </li>
    `;l=$(_);}l.find("a.name > span").text(t.file_name),n.classList&&l.addClass(n.classList);const u=t.paths[t.paths.length-1].file_id;let d={rel:"item",c:"0",hdf:"0",title:t.file_name,file_type:s?0:1,pick_code:t.pick_code,is_share:t.is_share,shared:t.is_share,area_id:"1",p_id:u,score:t.score};s?d={...d,cate_id:e,cate_name:t.file_name}:d={...d,file_id:e,cid:u,iv:t.play_long?"1":"0",ico:o,sha1:t.sha1};for(let h in d)l.attr(h,d[h]);return l}async function An(e){const t=await wi(e);return Ws(t)}async function wi(e){const t=e.attr("file_size"),n=e.attr("iv")==="1",s=vs(),o=e.attr("file_id")||"",i=!!o,r=e.attr("c")||"",a=e.attr("fvs")||"",l={n:e.attr("title")||"",s:t?parseInt(t):0,pc:e.attr("pick_code")||"",t:e.attr("user_ptime")||"",te:"",tp:"",ico:e.attr("ico")||"",sha:e.attr("sha1")||"",iv:n,c:r?parseInt(r):0,fuuid:e.attr("fuuid"),fvs:a?parseInt(a):0};let u={n:l.n};if(!s)u={fid:o,cid:(i?e.attr("cid"):e.attr("cate_id"))||"",pid:i?"":e.attr("p_id")||"",...l};else if(u={fid:o,cid:(i?e.attr("cid"):e.attr("cate_id"))||"",...l},!i){const d=e.find(".file-directory a[cid]");if(d.length)u.pid=d.attr("cid");else throw console.warn("无法获取上级目录ID!",e),new Error("无法获取上级目录ID!")}return {...u,...l}}async function zn(e){const t=await ab(e);return sb(t)}function sb(e){const t=[];for(let n=0;n<e.length;n++){const s=Ws(e[n]);t.push(s);}return t}function Ws(e){var s,o;const t=!!e.fid,n={id:t?e.fid:e.cid,name:e.n,hash:e.sha,parentId:t?e.cid:e.pid,sizeRaw:e.s,sizeDesc:(s=e.s)==null?void 0:s.toString(),sizeBytes:0,isFile:t,isDir:!t,isVideo:e.iv===!0||((o=e.iv)==null?void 0:o.toString())==="1",pickCode:e.pc,playDuration:e.play_long};return typeof e.s=="number"?n.sizeBytes=e.s:typeof e.s=="string"&&/^\d+$/.test(e.s)&&(n.sizeBytes=parseInt(e.s)),n.sizeDesc=sr(n.sizeBytes||0),n}function pn(){return unsafeWindow.TOP?unsafeWindow.TOP:unsafeWindow}function ob(){return unsafeWindow.top===unsafeWindow?unsafeWindow.Ext:unsafeWindow.top.Ext}async function ib(){const e=await jt();return rb(e,tb({classList:"ce-temp-cur-dir"}))}async function rb(e,t={}){const n=await At(e);return await nb(e,n,t)}async function bi(){return window.top!==window?$(document):$('iframe[name="wangpan"], .wrap-view iframe:eq(0)').contents()}async function $o(){return (await bi()).find(".list-contents, .list-thumb")}async function wf(e){const t=await $o();return e?t.find("li.selected:not(.ce-temp-cur-dir)"):t.find("li:not(.ce-temp-cur-dir)")}async function ab(e){const t=await wf(e),n=[];for(let s=0;s<t.length;s++){const o=t.eq(s),i=await wi(o);n.push(i);}return n}async function Ka(e="/"){const t=await lb();return e+t.slice(1).join(e)}async function lb(){const e=await bi(),t=[];return e.find("#js_top_header_file_path_box .top-file-path > .file-path").children().each(function(){t.push($(this).text().trim().replace(/[›]$/,""));}),t}async function ub(){const e=await jt();(await $o()).find("li.selected").each(function(){const n=$(this);n.attr("cate_id")!==e&&(n.find('input[type="checkbox"]').prop("checked",!1),n.removeClass("selected"));});}async function ws(e=!1,t=0){const n=await jt();if(!n)return null;const s=await $o(),o=await ib();return e||o.hide(),s.find(`li[cate_id="${n}"]`).length||s.append(o),t>0&&setTimeout(()=>{o.remove();},t),o}async function Hl(e,t,n){await ub(),pn().Core.FileMenu.DoEvent([e],t,null);}function cb(e,t=""){return `https://115.com/?ct=preview&ac=location&pickcode=${e}&sha1=${t}`}function wo(e){return `https://115.com/?${new URLSearchParams({cid:e}).toString()}&offset=0&mode=wangpan`}function bs(e=location.href){return e.includes("ac=userfile")}function vs(e=location.href){return e.includes("ac=search")}function zl(e,t=""){const n={aid:"1",cid:e.cid||"",old_cid:e.cid||"",old_cid_name:t,search_value:encodeURIComponent(e.search_value),ct:"file",ac:"search",is_wl_tpl:"1"};return "https://115.com/?url="+encodeURIComponent(`/?${Zw(n)}`)+"&submode=wangpan&mode=search"}function bf(e){return `https://v.anxia.com/?${new URLSearchParams({pickcode:e,share_id:"0"}).toString()}`}async function db(e){unsafeWindow.Main.ReInstance({type:e.type,offset:0,o:of.userPtime,asc:Rl.false,star:e.star,suffix:e.suffix});}async function vf(){return (await $o()).find("li.selected")}async function _f(){const e=await vf();return e?await wi(e):null}function fb(e){return e.replace(/[/\\:*?"<>|]/g,"_")}const ba=new Map;async function Er(e,t=!1){const n=fb(e.name);if(t&&e.parentId&&ba.has(e.parentId)){const r=ba.get(e.parentId);if(r)return `${r}/${n}`.replace(/^[\/]+/g,"/")}const o=(await At(e.id)).paths.slice(1).map(r=>r.file_name).join("/");return e.parentId&&ba.set(e.parentId,o),`/${o}/${n}`.replace(/^[\/]+/g,"/")}async function pb(e,t=100){var i;const n=new Map;for(const r of e){const a=r.parentId;if(!a)throw new Error(`文件"${r.name}"没有父级目录ID!`);n.has(a)?(i=n.get(a))==null||i.push(r):n.set(a,[r]);}const s=[];for(const r of n.values())s.push(r[0]);const o=new Map;for(const r of s){const a=await At(r.id);await an(t),o.set(r.parentId,a.paths.map(l=>l.file_name));}return o}async function hb(e,t=100){var i;const n=new Map;for(const r of e){const a=r.parentId;if(!a)throw new Error(`文件"${r.name}"没有父级目录ID!`);n.has(a)?(i=n.get(a))==null||i.push(r):n.set(a,[r]);}const s=[];for(const r of n.values())s.push(r[0]);const o=new Map;for(const r of s){const a=await At(r.id);await an(t),o.set(r.parentId,a.paths);}return o}async function mb(e,t){const n=new File([e],t.filename,{type:"text/plain"});return Ab(n,t)}async function gb(e,t,n){const s=await Fw(e),o=await Hw(s);n=n||Zd();let i=t;return /m3u8$/.test(n)||(n+=".m3u8"),await mb(o,{filename:n,target:i})}const va=new Map;async function oo(e,t=!1){if(e=$r(e,ls.unix),e=e.replace(/^[\/]+/,"").replace(/[\/]+$/,""),t&&va.has(e))return va.get(e);if(e===""||e==="/")return "0";const n=await xb(e);if(!n.state)throw new Error(`根据路径"${e}"获取目录ID失败: ${n.error}`);if(n.id&&n.id.toString()!=="0")return va.set(e,n.id.toString()),n.id.toString();throw new Fl(`根据路径"${e}"获取目录ID失败: 目录不存在!`)}async function yb(e){e=e.replace(/^\//,"").replace(/\/$/,"");const t={id:"",created:!1,pathToId:new Map};if(e===""||e==="/")return t.id="0",t;const n=e.split("/").filter(i=>i);let s="0",o="";for(const i of n){o+="/"+i;let r="";try{r=await oo(o,!0),t.pathToId.set(o,r);}catch(a){if(a instanceof Fl){const l=await Sf(s,i);if(!l.state)throw new Error(`创建目录"${i}"失败: ${l.error} - ${l.error}`);r=l.cid.toString();}else throw a}s=r,t.pathToId.set(o,r);}return t.id=s,t}async function wb(e,t,n=!0){let s="";const o=await Sf(t,e);if(o.state)s=o.cid.toString();else {if(o.errno===lf.exist&&n){const i=await At(t);if(!i.pick_code)throw new Error(`获取目录"${t}"属性失败: ${i.errno} - ${i.error}`);const r=[...i.paths.slice(1).map(a=>a.file_name),i.file_name,e].join("/");return await oo(r,!0)}throw new Error(`创建目录"${e}"失败: ${o.errno} - ${o.error}`)}return s}async function xf(e,t,n){const s=new URLSearchParams({page:e.toString(),uid:n.toString(),sign:t,time:yo().toString()});return (await zt().post("https://115.com/web/lixian/?ct=lixian&ac=task_lists",s,{withCredentials:!0,timeout:6e4})).data}async function Cf(){return (await zt().get(`https://115.com/?ct=offline&ac=space&_=${Date.now()}`,{timeout:3e4,withCredentials:!0})).data}async function kf(){const t=(await zt().get("https://my.115.com/?ct=ajax&ac=nav",{timeout:3e4,withCredentials:!0})).data;if(t.state)return t.data;throw new Error(t.error)}async function $f(e){const t=Sr(e),s=(await zt().get("https://webapi.115.com/files?"+t,{timeout:12e4,withCredentials:!0})).data;if(s.state)return s;throw new Error(s.error)}async function io(e,t=50){let n=[],s=0;for(;;){e.offset=s;const o=await $f(e);if(!o.data||!o.data.length||(o.count>o.data.length&&e.limit!==o.data.length&&(console.warn(`[getFilesList] invalid limit(${e.limit}) detected! max limit is ${o.page_size}, correct it now!`),e.limit=o.page_size),n=[...n,...o.data],s+=e.limit,s>=o.count))break;await an(t);}return n}async function bb(e){const t=Sr(e),n=await zt().get("https://webapi.115.com/files/search?"+t,{timeout:12e4,withCredentials:!0});if(n.data==="")throw new af;const s=n.data;if(s.state)return s;throw new Nl(s.error)}async function vb(e,t=200,n=!1){let s=[],o=0,i=e.limit;const r=1e4,a=115,l=r-r%i;let u=i;for(;;){if(n){if(o>=l&&o<r){const h=r-l;u=Math.min(h,u);}o>=r&&(u=a);}e.offset=o,e.limit=u;const d=await bb(e);if(!d.data||!d.data.length||(s=[...s,...d.data],o+=u,o>=d.count))break;await an(t);}return s}async function ql(e,t){const n=new URLSearchParams({pid:e,ignore_warn:"1"});return t.forEach((o,i)=>{n.append(`fid[${i}]`,o);}),(await zt().post("https://webapi.115.com/rb/delete",n,{timeout:12e4,withCredentials:!0})).data}async function _a(e,t,n=1150,s=1e3){let o=0,i=0;for(;;){const r=t.slice(o,o+n);if((await ql(e,r)).state&&(i+=r.length),o+=n,o>=t.length)break;await an(s);}return i}async function Sf(e,t){const n=new URLSearchParams({pid:e,cname:t});return (await zt().post("https://webapi.115.com/files/add",n,{timeout:12e4,withCredentials:!0})).data}async function _b(e,t){const n=new URLSearchParams({pid:e});return t.forEach((o,i)=>{n.append(`fid[${i}]`,o);}),(await zt().post("https://webapi.115.com/files/move",n,{timeout:12e4,withCredentials:!0})).data}async function xb(e){const t={path:e};return (await zt().get("https://webapi.115.com/files/getid?"+Sr(t),{timeout:12e4,withCredentials:!0})).data}async function At(e){const t=new URLSearchParams({cid:e});return (await zt().get("https://webapi.115.com/category/get?"+t.toString(),{timeout:12e4,withCredentials:!0})).data}async function Wa(e,t,n,s){const o={uid:s.toString(),sign:t.sign,time:yo().toString()};n&&(o.flag="1");const i=eb(o);return e.forEach((a,l)=>{i.append(`hash[${l}]`,a);}),(await zt().post("https://115.com/web/lixian/?ct=lixian&ac=task_del",i,{timeout:12e4,withCredentials:!0})).data}async function Cb(e){return new Promise((t,n)=>{const s=JSON.stringify({pickcode:e}),o=Math.floor(Date.now()).toString(),i=new Lw,{data:r,key:a}=i.encode(s,o);Dl({method:"POST",url:`https://proapi.115.com/app/chrome/downurl?t=${o}`,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","User-Agent":navigator.userAgent,Accept:"application/json, text/javascript, */*; q=0.01"},data:`data=${encodeURIComponent(r)}`,responseType:"json",onload:l=>{const u=JSON.parse(l.responseText);if(u.state){const d=i.decode(u.data,a);if(d){const h=JSON.parse(d),y=Object.keys(h)[0],v=h[y];v.file_id=y;const b=l.responseHeaders.split(/[\r\n]+/).filter(_=>_.match(/set-cookie/i));b.length&&(b.forEach((_,R)=>{b[R]=_.replace(/set-cookie:[\s]*/i,"").split(";")[0];}),v.cookie=b.join("; ")),t(v);}else n({state:!1,error:"解密失败"});}else n(u);},onerror:l=>{n(l);}});})}async function kb(e){if(!(await At(e)).play_long)throw new Error("该目录下没有可以播放的媒体文件![by_attr]");const s=(await io(Ms({cid:e,limit:1150}))).find(o=>o.play_long&&o.play_long>0);if(!s)throw new Error("该目录下没有可以播放的媒体文件![by_files]");return Ws(s)}async function $b(e,t){if(e=typeof e=="string"?e:e.join(","),!t){if(e.includes(","))throw new Error("target参数不能为空!");t=e;}t=t.startsWith("U_1_")?t:`U_1_${t}`;const n=new URLSearchParams({file_ids:e,target:t});return (await zt().post("https://webapi.115.com/files/export_dir",n,{timeout:12e4,withCredentials:!0})).data}async function Sb(e,t=1e3,n=12e4){const s=new URLSearchParams({export_id:e.toString()}),o=async()=>(await zt().get("https://webapi.115.com/files/export_dir?"+s.toString(),{timeout:12e4,withCredentials:!0})).data;async function i(r){const a=await o();a.data&&a.data.pick_code&&r(a);}try{return await ys(i,t,n)}catch(r){throw new Error(`导出目录树结果获取失败:${r.message}`)}}async function Eb(e){/^\d+$/.test(e.target)&&(e.target=`U_1_${e.target}`);const t=Sr(e);return (await zt().post("https://uplb.115.com/3.0/sampleinitupload.php",t,{timeout:12e4,withCredentials:!0})).data}async function Ab(e,t){const n=await Eb(t),s=new FormData;s.append("name",t.filename),s.append("key",n.object),s.append("policy",n.policy),s.append("OSSAccessKeyId",n.accessid),s.append("success_action_status","200"),s.append("callback",n.callback),s.append("signature",n.signature),s.append("file",e);const o=n.host.replace(/^http:/,"https:");return (await zt().post(o,s,{timeout:18e5})).data}const Ef=yt.enabledCustomUrlsForSearch,Af=yt.enabledCustomUrlsForPlay;async function Pb(e){await dt.set(Ef,e);}async function Ib(e){await dt.set(Af,e);}async function Tb(){const e=Ja,t=e.filter(o=>o.enabled).map(o=>o.key),n=await dt.get(Ef,t),s=[];return e.forEach(o=>{n.includes(o.key)&&s.push(o.key);}),s}async function Ob(){const e=Ga,t=e.filter(o=>o.enabled).map(o=>o.key),n=await dt.get(Af,t),s=[];return e.forEach(o=>{n.includes(o.key)&&s.push(o.key);}),s}async function Pf(){const e=await Tb();return Ja.forEach(t=>{t.enabled=e.includes(t.key);}),Ja}async function If(){const e=await Ob();return Ga.forEach(t=>{t.enabled=e.includes(t.key);}),Ga}const fc="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABu0lEQVRYhe2WsVXDMBCG/xNNSrFBmAB3tBEZIJkAmCBog9gbGLNAwgQwQJ5MSecNYASVaayjcBIrEDvye06V/JVs/777fJJOBi666NxFoUapzQiunAJiAmC4uV2AuACJxKbq5yQAUhsJxhzMuj0SpxsQ2xuA1EbCuRyg28B4BQSpLhCi9SljvpeckUOQgqBrm90TBCkAS++NCOzmocmBlgpIbYZw/O3RJDYbxwe9s1UMUJ24qkIeAtBcAVfWyYgWTckBwGbjGIw6oXPTkOTtABB16WmvzId1RUl9QZMeABBtB4HlLLzxsNHVAWAnqY085um6/UIA/MYSNbo2ktqMvMui0RgOwB+7YcnHt5Yrn3Zjoh4AhHivA2IkZ6YRonomHj1/0uT9q/ZOOFulAD3Xbl6AxNKmKt+siwglz0Goy8/I7eu96gdAGwnHBgFr4E/Y2GYqqAqtu8Cmylbtll+ORvIbEThum7JggC2EzcYagm5Q9X1/gf0A/AJBqio7e18dBhH8PxCqf+fCkem46htg/fWWD+4eCKDtwhwN7p6w/lp+HvIHdcKuqg6u/elo8p4E4D8EB/eFiy46P/0C5gmePG6KKVsAAAAASUVORK5CYII=",Db="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAACAlJREFUaEPtmWuIXVcVx3/7vt9zJ5NOZ5JGkxQDEZroF7WxYGILGoWmLxXamtG0RUhoLSiW4hdFPxRFSytJLVpNRqTE2qq1WqiFGbWhNiCSIClU1EZj0ySTedz3uY+zZN19bjL3zn1NckcNeODAuTPn7L3/6/Ff/7W34Qq/zBW+fv4P4L/tweV4wAf4vVuf9V7O992wCuB6dw3QW3/3vPpZQODYsWM7t2zZ8nzP0Qb4wvHjx2/eunXri0C127C9AMRFJDfAdS17KGNMAsh3+rAbgKSIZJY94wp8YIxJAdl2Q3cCEBIRZwXWcslDGmPCQLl1gHYAzNTU1O3bt29/pr/ZNP8AEXvXRzRg9KFXhPY3g741PT39iR07djyrMy3+qt0MfVrfW7DU4LVHkX8cAX8QXBfExdxxGEwAfIMjq3ZeaAcgJSIL3W2ji3ehVoGnd0E0idQX6l3672oV3+rNsOMr4At4/7g8jxhjhoCmvGw34qiInOkKQK3uVuEHNyGRmAVSydu/GR8SjEIwDr4wUnHw3/1zC8JcnjeMMVcDZ3uF0DUi8s/OAMQutJSFgzuRWhmK8+DkkIpStoFQBOJpiK9GIkkQg/9j34CRTeDTWnhpnjDGrANO9QLwThF5szMAF6pleOJGyJ1BnBw4WSiVEVeTNwCuQDiEJNOQHoX4MAQimFAM3ycnPW8sP8mNMeuBk70AbBCRv3UEoOFTKcHXNuG8WSJ/tAiOgxEX/5oUiW0pqDgWWNBAMoUMj2CSV0EkAbUa/omfQiC87JAyxmwE/n75AJwCPLyOuRdKmFoVqdYsc0ZjpH/5ErUn7wF9x5kHKSPJGKRXwdAohNOIBPC/93Z877vTS/D+QmqAAPJkP7gWd76AiGA8atan9KtvgJNBfvUY7okjUJxDakWI+pHEECRHkdgI4o+CUyP8hefA31+CDxbADeOQL9TLilaWug0FkkdPWw8XFqCUofrtT9cBUVygpgJTKTc5AhpS4RRSFqJf/CFEV/VM8IECKHx4DMkXl6RK/NVZ8IcstZZykD1L9bE9yPw8bka9UUaCYdxkGpMahdgqYtcFYWgDfORbXUNqoABKH28B4LkhOj0PoZiVFRXH5kL2LPLX1yh//xHcbAa3qLrMhxsbwqRGSNy4GkwIYmvh1ic7ghgoAOe2MShZD9QlkJeH4V8rAC1iPisrlHIrRdBF52YoPHQn5PLUchncSgXxx0nfscqGkOuDPS9bhrpQvS86eaAAKnePQbFog3+RvAo+2wCgBcvTS7WqpV4nD5mzOI8/ROXPr1M7N0voHWWi74lAZBj8Mdj2eXj/HqurWgreQAFU93gAWrIg8HQDgOqfBjKt3lo/HCgXIDMDc6dwf3wXPpm1C/VHLID0RnhgGgIhr2tdIQ/U7hkDpyWEfOCfXAxgkbpTMPWQcmw4PXU95DKQX4CqCkM/KLWuvx4+9zMrR+pt9woBcO8bQ4rFeuw37Gz84DvYBYCG0us/gT9+F7LnYe4MZLJQrIIEIZSCh/8Aw2sguOIAxqFQuLg3obkQMPiemvOSuCGhG9K7Cs/fYjc1ijk4/xbMKACt2KZeoQlH4ctHITa08iHk7rsWk80gbgWMYFS8hQP49r+1CIAX+8UZmLoXVOwVsjD7NszOQEaFoA9CwxBKwt5nYHgdRJTFlARWKoQ0EX/xVeTlw5bnTQ3iUcz6a+GBF0H7AdX+KrtfeRDyp6BagfwczJ2F+TnIFMGNQGgEQgn47CSk19QrdZ2B2vQOg2EhlQPlEuTOIY/stDrGJ+CvYO5/AYbGrfuVdV66FQhCOQ+587BwDhYyUNA9qwSE0rD9Qdh4AwyNQThuv613d83W11QeHABNxlIesqctGL1CYUiOWeufOQInHrdtZ3EBFtTqs5DNQSUEgTQEEnDXJMRHIJq2rKOWv9BDL1WogwOgpbdRnCq60yEQCFpvTH3KVlGly/yMtXpmAXJlkBgEh2F0M3z065BQeR23i9eYv7CT0V5eDwiAmlt3Hjx2UW7XcKkW4JUJ63pVnzlNUg0ZTVQtVEMQTMGuJyA1DonVEIp6smFxr9y5N+gXwHoRaep6lnZnLRU2dxp+fy/4DJTm6/nBwhyoWq1ELEUGE3DbjzwZnbA8r17rYfWWQrYBaGp328Ht0RMvHtK18uC5bVYKaLLmz0M+A44mqoZHGq7bDZt31ZuZulINhm241a/+e+N+e+K1ItLU+Xftj5VSD38AnDKU5mxxcwMQ0pBJwi2TENNE1d9q9QbLNGzXXzvpsdA1wL969cRXiUjT3ktHAMrzCuB3X4KTv4VCHqpirZxYAzc9Cqmr7W+N9z4SteNclkZHgXO9ACREpO1O8JLBGzsUGvN/OgAnf2OF2Ye+CUPrIK5toyaqWn3xflD/Vm/JgSTQtN3fbqTAoUOHPrN79+7vdbOG/Z+qyKqtxsr3yj56aXOi9HgJidppzsnJyfsmJiYOth54tN2dBnR78e3eABpUqjRatmCUVTRBL1h9eYnaaU5jzJi3rdhzd1rHUIp4l4ic6A3CO8rSetBYa9P2+qWFS0vovBv4S7vjpm6j64HCJhE53htEk1EWvT6QxW8B3gDaHrj0mkEb0/H9+/ffvHfv3u/0BjK4Nw4cOHD/vn379GBRN5oqHUOrjykVpLZHaUD35/V5acPax0A9XtEYVGGl6lDPJ+a9507uvRixy5hbwTSESy/vLWPY+qu60MZ5cddFN+XHcmf5X3t/0Fb8j+O74gH8G0lHhV4uXv6RAAAAAElFTkSuQmCC",pc="https://nplayer.com/assets/img/logo_main.png",Ga=[_t({enabled:!0,key:"p_builtin_iina",label:"IINA",icon:"https://iina.io/images/iina-icon-60.png",memo:"调用IINA播放视频(使用CloudDrive链接)",url:"iina://weblink?url={clouddrive_stream_url:encode}"}),_t({enabled:!0,key:"p_builtin_vlc",label:"VLC",icon:"https://images.videolan.org/images/favicon.ico",memo:"调用VLC播放视频(使用CloudDrive链接)",extraMemo:'<a href="https://github.com/stefansundin/vlc-protocol" target="_blank" rel="noreferer">安装VLC协议</a>',url:"vlc://{clouddrive_stream_url}"}),_t({enabled:!0,key:"p_builtin_mpv",label:"MPV",icon:"https://mpv.io/images/mpv-logo-128-0baae5aa.png",memo:"调用MPV播放视频(使用CloudDrive链接)",extraMemo:'<a href="https://github.com/akiirui/mpv-handler/blob/main/README.zh-Hans.md" target="_blank" rel="noreferer">安装MPV协议</a>',url:"mpv://{clouddrive_stream_url}"}),_t({enabled:!0,key:"p_builtin_potplayer",label:"PotPlayer",icon:"https://t1.daumcdn.net/potplayer/main/img/favicon.ico",memo:"调用PotPlayer播放视频(使用CloudDrive链接)",url:"potplayer://{clouddrive_stream_url}"}),_t({enabled:!0,key:"p_builtin_infuse",label:"Infuse",icon:Db,memo:"调用Infuse播放视频(使用CloudDrive链接)",url:"infuse://x-callback-url/play?url={clouddrive_stream_url:encode}"}),_t({enabled:!1,key:"p_builtin_nplayer_mac",label:"nPlayer-mac",icon:pc,memo:"调用nPlayer(mac版)播放视频(使用CloudDrive链接)",url:"nplayer-mac://weblink?url={clouddrive_stream_url:encode}&new_window=1"}),_t({enabled:!1,key:"p_builtin_nplayer_win",label:"nPlayer-win",icon:pc,memo:"调用nPlayer(非mac版)播放视频(使用CloudDrive链接)",url:"nplayer-{clouddrive_stream_url:encode}"}),_t({enabled:!0,key:"p_builtin_online",label:"在线播放",icon:"https://115.com/favicon.ico",memo:"115官方在线播放(转码)",url:"https://v.anxia.com/?pickcode={pick_code}&share_id=0"})],Ja=[_t({enabled:!0,key:"s_builtin_115_pure_name",label:"115-不含后缀",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(不含后缀)",url:"{pure_name:search}"}),_t({enabled:!1,key:"s_builtin_115_full_name",label:"115-完整名称",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(完整文件名)",url:"{full_name:search}"}),_t({enabled:!0,key:"s_builtin_115_sha",label:"115-sha1",icon:"https://115.com/favicon.ico",memo:"使用115搜索sha1相同的文件(仅适用于文件)",url:"{file_hash:search}"}),_t({enabled:!0,key:"s_builtin_google_pure_name",label:"Google-不含后缀",icon:"https://www.google.com/favicon.ico",memo:"使用Google搜索文件名(不含后缀)",url:"https://www.google.com/search?q={pure_name:encode}"}),_t({enabled:!1,key:"s_builtin_google_full_name",label:"Google-完整名称",icon:"https://www.google.com/favicon.ico",memo:"使用Google搜索文件名(完整文件名)",url:"https://www.google.com/search?q={full_name:encode}"}),_t({enabled:!0,key:"s_builtin_bing_pure_name",label:"Bing-不含后缀",icon:fc,memo:"使用Bing搜索文件名(不含后缀)",url:"https://cn.bing.com/search?q={pure_name:encode}"}),_t({enabled:!1,key:"s_builtin_bing_full_name",label:"Bing-完整名称",icon:fc,memo:"使用Bing搜索文件名(完整文件名)",url:"https://cn.bing.com/search?q={full_name:encode}"}),_t({enabled:!0,key:"s_builtin_115_pure_name_manual",label:"115-不含后缀-手动",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(不含后缀),手动编辑后搜索",url:"{pure_name:manual:search}"})];async function Tf(e){if(!vs()||!e.enableInSearch)return;const t=await $t("#js_data_list"),n=[{label:"移动",body:'<a href="javascript:;" menu="move" style=""><i class="icon-operate ifo-move" menu="move"></i><span menu="move">移动</span></a>',enabled:!0},{label:"重命名",body:'<a href="javascript:;" menu="edit_name" style=""><i class="icon-operate ifo-rename" menu="edit_name"></i><span menu="edit_name">重命名</span></a>',enabled:!0},{label:"删除",body:'<a href="javascript:;" menu="delete" style=""><i class="icon-operate ifo-remove" menu="delete"></i><span menu="delete">删除</span></a>',enabled:!0},{label:"属性",body:'<a href="javascript:;" menu="attribute" style=""><i class="icon-operate ifo-property" menu="attribute"></i><span menu="attribute">属性</span></a>',enabled:!0}],s=r=>{let a="";for(const l of r)l.enabled&&(a+=l.body);return a},o=()=>{const r="ce-menu-init",a=document.querySelectorAll(`li[rel="item"]:not(.${r})`),l=s(n);for(let u=0;u<a.length;u++){const d=a[u];if(d.querySelector(".file-opr"))continue;const h=document.createElement("div");h.className="file-opr",h.setAttribute("rel","menu"),h.innerHTML=l,d.classList.add(r),d.appendChild(h);}};o(),new MutationObserver(async([r])=>{r.type==="childList"&&o();}).observe(t,{childList:!0});}async function Mb(e){if(!e.hideSelectionMenuLabel)return;const t=await $t("#js_operate_box");new MutationObserver(async([s])=>{if(s.type==="childList"){const o=t.querySelectorAll("li[menu]");for(let i=0;i<o.length;i++){const r=o[i],a=r.textContent;r.setAttribute("title",a||"");}}}).observe(t,{childList:!0}),t.classList.add("only-icon");}async function Lb(e,t){const n=[],s=await hn(),o=s.keyToTriggerManual;for(const i of t){const r=kr(e,{key:`_ce_s_${i.key}`,label:i.label,icon:i.icon,title:i.memo,onClick:async(a,l)=>{l.stopPropagation(),l.preventDefault();try{let u;if(o){const b=l;(o===Dn.alt&&b.altKey||o===Dn.ctrl&&b.ctrlKey||o===Dn.shift&&b.shiftKey||o===Dn.meta&&b.metaKey)&&(u={names:[Kl.manual],position:s.injectManualFuncPosition});}const d=$(l.target).closest("li"),h=await An(d),y=await ko(),v=await si(h,i,y,u);if(console.log("[search url]",v),!v)throw new Error("无法获取有效的搜索链接!");_w(v,{active:!i.openInBackground});}catch(u){console.error(u),ue({title:"搜索失败",text:u.toString(),icon:"error"});}}});n.push(r);}return n}async function Of(e,t){if(console.log("[playDirOnAnxia]",e,t),!t)try{ue({title:"正在查找可播放的文件...",text:"请稍等...",icon:"info"}),he.showLoading(),t=await kb(e),console.log("[playDirOnAnxia] file",t);}catch(s){console.error(s),ue({title:"播放失败",text:s.toString(),icon:"error"});return}t||ue({title:"播放失败",text:"没有在该目录下找到可播放的文件![file_null]",icon:"error"});const n=bf(t.pickCode);window.open(n,"_blank","noopener noreferrer");}async function Df(e,t,n,s){s.stopPropagation(),s.preventDefault();const o=t.keyToTriggerManual;try{let i;if(o){const d=s;(o===Dn.alt&&d.altKey||o===Dn.ctrl&&d.ctrlKey||o===Dn.shift&&d.shiftKey||o===Dn.meta&&d.metaKey)&&(i={names:[Kl.manual],position:t.injectManualFuncPosition});}const r=$(s.target).closest("li"),a=await An(r),l=await ko(),u=await si(a,e,l,i);if(a.isDir&&u.includes("v.anxia.com")){Of(a.id);return}if(console.log("[play url]",u),!u)throw new Error("无法获取有效的播放链接!");window.open(u,"_blank","noopener noreferrer");}catch(i){console.error(i),ue({title:"播放失败",text:i.toString(),icon:"error"});}}async function Vl(e){const t="_p_null_",n=await If(),s=n.filter(l=>l.enabled),o=[...s,...(await Ir(Fs.play)).filter(l=>l.enabled)],i=(l,u)=>l.find(d=>d.key===u);let r=i(s,e.defaultPlayer||"p_builtin_online");r||(r=i(n,"p_builtin_online")),r||(console.warn("[play with dropdown] default player not found"),r=_t({key:t,url:"#",label:"播放",memo:"播放菜单数据异常!",enabled:!0})),r={...r},r.key==="p_builtin_online"&&(r.label="播放");const a=o.findIndex(l=>l.key===r.key);return a>-1&&o.splice(a,1),{keyNull:t,noRealDefault:r.key===t,defaultPlayer:r,customUrlItems:o}}async function Bb(e,t){const n=[],s=await hn();for(const o of t){const i=kr(e,{key:`_ce_p_${o.key}`,label:o.label,icon:o.icon,title:o.memo,onClick:async(r,a)=>{Df(o,s,r,a);}});n.push(i);}return n}var sn=(e=>(e[e.full=0]="full",e[e.pure=1]="pure",e[e.fullUnique=2]="fullUnique",e[e.pureUnique=3]="pureUnique",e))(sn||{});async function Ar(e,t){if(t===0)return e;if(t===2)return Array.from(new Set(e));const n=[];for(const s of e){const o=s.replace(/\.[^.]+$/,"");t===1?n.push(o):t===3&&(n.includes(o)||n.push(o));}return n}var on=(e=>(e[e.unixPath=0]="unixPath",e[e.winPath=1]="winPath",e[e.unixParentPath=2]="unixParentPath",e[e.winParentPath=3]="winParentPath",e))(on||{});async function Pr(e,t,n){const s=n===1||n===3;let i=n===2||n===3?t.replace(/\/[^/]+$/,""):t;return i.startsWith("/")||(i="/"+i),s&&(i=i.replace(/\//g,"\\")),i}async function Rb(e){return async(t,n)=>{const s=await jt(),r=(await bi())[0].querySelectorAll("li[file_id].selected");if(!r.length){ue({title:"文件移动到同名目录",text:"当前目录没有选中文件",icon:"warning"});return}let a=`当前已选中${r.length}个文件,是否继续?`;a+=`<br><div style="text-align:left">
      <b>处理逻辑:</b>
      <p>0.「同名目录」取自纯文件名(不带后缀名)。</p>
      <p>1.如果同名目录已存在,会直接使用已存在的目录。</p>
      <p>2.同名目录相同的文件,会被移动到同一个目录里面。</p>
      <p class="text-primary">示例: <span>movie.mp4</span> 的同名目录为 <span>movie</span></p>
      </div>`;const{value:l}=await he.fire({title:"文件移动到同名目录",html:a,icon:"warning",showCancelButton:!0,confirmButtonText:"继续",cancelButtonText:"取消"});if(l){he.fire({title:"文件移动到同名目录",html:"正在处理...",didOpen:()=>{he.showLoading();}});for(let u=0;u<r.length;u++){const d=r[u],h=await An($(d));if(!h.isFile)continue;const y=h.name,v=y.replace(/\.[^\.]+$/,""),b=`${u+1} / ${r.length} - `+Math.round(u/r.length*100)+"%";he.update({html:`${b} 正在为文件「${y}」创建目录「${v}」`});const _=await wb(v,s,!0);he.update({html:`创建目录「${v}」成功。id=${_}`}),he.update({html:`${b} 正在移动文件「${y}」到目录「${v}」`}),await _b(_,[h.id]),await an(500);}he.hideLoading(),he.update({html:"处理完成。刷新列表后查看最新的文件数据。",icon:"success"});}}}function Nb(e,t){const n=[];for(let s=1;s<e.length;s++)n.push(e[s].file_name);return n}async function Mf(e,t){const n=await hb(e),s=[];for(let o=0;o<e.length;o++){const i=n.get(e[o].parentId);if(!i)throw new Error(`无法获取文件 "${e[o].name}" 的上级目录路径!`);const r=Nb(i),a=tr([...r,e[o].name],ls.unix);s.push(await Pr(e[o],a,t));}return s}async function or(e){let t="";if(e.id==="0")t="/";else {const o=await Er(e,!0);t=await Pr(e,o,e.isDir?0:2);}const n=await ko(),s=await Aw(n,t);console.log("url: ",s),window.open(s,"_blank","noopener noreferrer"),ue({title:"在CloudDrive2中查看",text:`已打开CloudDrive2链接: ${s}`,icon:"success"});}var mt=(e=>(e.openConfig="openConfig",e.closeConfig="closeConfig",e.basicConfigChange="basicConfigChange",e.listConfigChange="listConfigChange",e.searchConfigChange="searchConfigChange",e.toolsConfigChange="toolsConfigChange",e.listRendered="listRendered",e.topDomChanged="topDomChange",e.officialMenuStyleChange="officialMenuStyleChange",e.renderMenus="renderMenus",e))(mt||{}),Wt=(e=>(e.basic="basic",e.clouddrive="clouddrive",e.list="list",e.search="search",e.menus="menus",e.searchMenus="searchMenus",e.playMenus="playMenus",e.offline="offline",e.tools="tools",e.anxia="anxia",e.about="about",e))(Wt||{});const yn={basic:"基础设置",clouddrive:"CloudDrive",list:"列表增强",search:"搜索增强",menus:"菜单设置",searchMenus:"搜索菜单",playMenus:"播放菜单",offline:"离线管理",tools:"工具",anxia:"在线播放",about:"关于"};var Kl=(e=>(e.search="search",e.encode="encode",e.base64="base64",e.base64safe="base64safe",e.upper="upper",e.lower="lower",e.number="number",e.manual="manual",e))(Kl||{});const Fb=[{label:"文件属性变量",items:[{key:"{dir_id}",label:"文件夹ID"},{key:"{file_id}",label:"文件ID"},{key:"{pick_code}",label:"提取码"},{key:"{pure_name}",label:"不含后缀的文件名"},{key:"{full_name}",label:"完整名称"},{key:"{file_suffix}",label:"文件后缀名"},{key:"{file_hash}",label:"文件hash"},{key:"{file_size}",label:"文件大小"},{key:"{file_path}",label:"文件路径"},{key:"{file_dir}",label:"文件目录路径"}]},{label:"高级变量",items:[{key:"{clouddrive_stream_url}",label:"CloudDrive链接(用于播放,目录链接是m3u)"},{key:"{clouddrive_down_url}",label:"CloudDrive文件链接"},{key:"{clouddrive_playlist_url}",label:"CloudDrive播放列表链接"},{key:"{user_agent}",label:"浏览器UA"}]},{label:"变量函数处理",memo:"支持多个函数,函数之间使用英文冒号分隔,如:{变量名:encode:base64}。调用顺序从左到右。",items:[{key:"{变量名:search}",label:"搜索链接"},{key:"{变量名:encode}",label:"url编码"},{key:"{变量名:base64}",label:"base64编码"},{key:"{变量名:base64safe}",label:"base64安全编码"},{key:"{变量名:upper}",label:"转大写"},{key:"{变量名:lower}",label:"转小写"},{key:"{变量名:number}",label:"转数字"},{key:"{变量名:manual}",label:"手动输入"}]}];function Ub(e,t,n){const{names:s,position:o}=t;let i=[];return o==="first"?i=[...s,...e]:i=[...e,...s],n?Array.from(new Set(i)):i}async function si(e,t,n,s){var u;let o=t.url;const i={dir_id:"id",file_id:"id",pick_code:"pickCode",full_name:"name",file_suffix:"suffix",file_hash:"hash",file_size:"sizeBytes"},r=e.isFile,a=/{(\w+)(:\w+(:\w+)?)?}/g,l=o.match(a);if(l){const d=["file_path","file_dir","clouddrive_stream_url","clouddrive_down_url","clouddrive_playlist_url"];for(const h of l){const y=h.replace(/[{}]/g,"").split(":")[0],v=h.replace(/[{}]/g,"").replace(/^[^:]+:/,"");let b=((u=e[i[y]])==null?void 0:u.toString())||"",_="";switch(d.includes(y)&&(_=await Er(e)),y){case"pure_name":r?b=e.name.replace(/\.[^.]+$/,""):b=e.name;break;case"file_path":b=_;break;case"file_dir":b=_.replace(/\/[^/]+$/,"");break;case"clouddrive_stream_url":r?b=await go(n,_,fs.download):b=await za(n,_);break;case"clouddrive_down_url":b=await go(n,_,fs.download);break;case"clouddrive_playlist_url":let R="";r?R=_.replace(/\/[^/]+$/,""):R=_,b=await za(n,R);break;case"user_agent":b=navigator.userAgent;break}if(b=b.toString(),v){let R=v.split(":");s&&(R=Ub(R,s,!1)),console.log(`[buildCustomUrl] functions: ${v}, after merge: ${R.join(":")}`);for(const L of R)switch(L){case"search":b=zl({search_value:b});break;case"encode":b=encodeURIComponent(b);break;case"base64":b=ac(b);break;case"base64safe":b=ac(b,!0);break;case"upper":b=b.toUpperCase();break;case"lower":b=b.toLowerCase();break;case"number":b=b.replace(/\D/g,"");break;case"manual":b=await jb(b);break}}o=o.replace(h,b);}}return t.mutation?await Hb(o,e,t,n):o}async function jb(e){let{isConfirmed:t,value:n}=await he.fire({title:"手动输入",text:"按下「Ctrl + 回车」或「Command + 回车」确认",input:"textarea",inputValue:e,showCancelButton:!0,inputValidator:s=>s?null:"输入不能为空!",didOpen:s=>{Rw(s),Nw(s);}});if(!t)throw new Error("已取消手动输入。");if(n=(n==null?void 0:n.trim())||"",n==="")throw new Error("输入不能为空!");return e=n,e}async function Hb(e,t,n,s){return await new Function("payload",n.mutation)({url:e,file:t,customUrl:n,cloudDriveConfig:s})}var Fs=(e=>(e.search="search",e.play="play",e))(Fs||{});const zb=yt.menuCustomUrlsForSearch,qb=yt.menuCustomUrlsForPlay,Lf={search:zb,play:qb};async function Ir(e){return await dt.get(Lf[e],[])}async function Bf(e,t){await dt.set(Lf[e],t);}function _t(e){return {enabled:!0,key:"",label:"",icon:"",memo:"",extraMemo:"",url:"",openInBackground:!1,...e}}var Dn=(e=>(e.none="none",e.alt="alt",e.ctrl="ctrl",e.shift="shift",e.meta="meta",e))(Dn||{});const Rf=yt.menu;function Vb(e){return {enabled:!0,openInNewTab:!0,search:!0,play:!0,getDownloadUrl:!0,copyNames:!0,exportList:!1,viewInCloudDrive:!0,...e}}function Kb(e){return {enabled:!0,copyNames:!0,viewInCloudDrive:!0,...e}}function Wb(e){return {enabled:!0,moveToSelfNameDir:!0,copyNames:!0,play:!0,...e}}function Gb(e){return {enabled:!0,rename:!0,delete:!0,play:!0,copyNames:!0,move:!0,copy:!0,copyTo:!0,viewProp:!0,showSubFolderSize:!0,exportList:!1,viewInCloudDrive:!0,topLevelMenus:["rename","delete","play"],...e}}function Jb(e){return {enabled:!0,hideSelectionMenuLabel:!1,enableInSearch:!0,manageOfficialMenus:!1,keyToTriggerManual:"none",injectManualFuncPosition:"first",m3u8TempDir:".ce-m3u8-temp",defaultPlayer:"p_builtin_online",[ze.listItemHover]:Vb(void 0),[ze.listItemContext]:Kb(void 0),[ze.selection]:Wb(void 0),[ze.dirContext]:Gb(void 0),...e}}async function hn(){const e=Jb(),t=await dt.get(Rf,e);return jl(e,t)}async function Nf(e){await dt.set(Rf,e);}const _r=class _r{constructor(t){ke(this,"menuType",ze.listItemHover);ke(this,"injectDecider");ke(this,"keyAttributeName","id");ke(this,"key","");ke(this,"label","");ke(this,"icon","");ke(this,"showIcon",!0);ke(this,"title","");ke(this,"onClick",async(t,n)=>{});ke(this,"onMouseOver");ke(this,"onMouseOut");ke(this,"subItems",[]);ke(this,"isDivider",!1);ke(this,"menuItemTemplates",{[ze.dirContext]:{body:`<li id="{key}" class="ce-menu dir-context-menu">
        <a href="javascript:;">{icon}<span>{label}</span></a>
      </li>`,bodyForMulti:`<li id="{key}" class="ce-menu ce-menu-parent dir-context-menu">
        {icon}<span class="ce-menu-trigger">{label}</span>
        <div class="ce-menu-dropdown sub-items"></div>
        </span>`,divider:'<li class="ce-menu-divider"></li>'},[ze.dirContextSub]:{body:`<span id="{key}" class="ce-menu dir-context-menu-sub sub-item">
        {icon}<span>{label}</span>
      </span>`,divider:'<span class="ce-menu-divider"></span>'},[ze.listItemContext]:{body:`<li id="{key}" class="ce-menu list-item-context-menu">
        <a href="javascript:;">{icon}<span>{label}</span></a>
      </li>`,bodyForMulti:`<li id="{key}" class="ce-menu ce-menu-parent list-item-context-menu">
        {icon}<span class="ce-menu-trigger">{label}</span>
        <div class="ce-menu-dropdown sub-items"></div>
        </span>`,divider:'<li class="ce-menu-divider"></li>'},[ze.listItemContextSub]:{body:'<span id="{key}" class="ce-menu list-item-context-menu-sub sub-item">{label}</span>',divider:'<span class="ce-menu-divider"></span>'},[ze.listItemHover]:{body:`<a href="javascript:;" id="{key}" class="ce-menu list-item-hover-menu" style="">
        {icon}<span>{label}</span>
      </a>`,bodyForMulti:`<span class="ce-menu ce-menu-parent list-item-hover-menu">
        {icon}<span class="ce-menu-trigger">{label}</span>
        <div class="ce-menu-dropdown sub-items"></div>
        </span>`,divider:'<a class="ce-menu-divider"></a>'},[ze.listItemHoverSub]:{body:`<a href="javascript:;" id="{key}" class="ce-menu list-item-hover-menu-sub" style="">
        {icon}<span>{label}</span>
      </a>`,divider:'<a class="ce-menu-divider"></a>'},[ze.selection]:{body:'<li id="{key}" class="ce-menu selection-menu">{icon}<span>{label}</span></li>',bodyForMulti:`<li class="ce-menu ce-menu-parent selection-menu">
        {icon}<span class="ce-menu-trigger">{label}</span>
        <div class="ce-menu-dropdown sub-items"></div>
        </li>`,divider:'<li class="ce-menu-divider"></li>'},[ze.selectionSub]:{body:`<a href="javascript:;" id="{key}" class="ce-menu selection-menu-sub" style="">
        {icon}<span>{label}</span>
      </a>`,divider:'<a class="ce-menu-divider"></a>'}});t.menuType&&(this.menuType=t.menuType),t.injectDecider&&(this.injectDecider=t.injectDecider),t.isDivider&&(this.isDivider=!0),t.key&&(this.key=t.key),t.label&&(this.label=t.label),t.icon&&(this.icon=t.icon),t.showIcon!==void 0&&(this.showIcon=t.showIcon),t.title&&(this.title=t.title),t.onClick&&(this.onClick=t.onClick),t.onMouseOver&&(this.onMouseOver=t.onMouseOver),t.onMouseOut&&(this.onMouseOut=t.onMouseOut),t.subItems&&(this.subItems=t.subItems),t.key&&(this.key=t.key),t.label&&(this.label=t.label),t.onClick&&(this.onClick=t.onClick);}async decideInject(t){return this.injectDecider?await this.injectDecider(this,t):!0}async render(){if(!this.menuType)throw new Error("未指定菜单类型");const t=this.menuItemTemplates[this.menuType];if(!t)throw new Error(`未找到菜单模板:${this.menuType}`);if(this.isDivider){if(!t.divider)throw new Error("未定义模版的divider内容!");const r=document.createElement("div");return r.innerHTML=t.divider,r.firstElementChild}let n=t.body;if(this.subItems.length>0){if(!t.bodyForMulti)throw new Error("未找到 bodyFormMulti 模版");n=t.bodyForMulti;}const s=document.createElement("div");let o="";this.icon&&this.showIcon&&(this.icon.match(/^(http|https|data:image)/)?o=`<img class="ce-menu-icon" src="${this.icon}" referrerpolicy="no-referrer" />`:this.icon.match(/^data-text:/)?o=`<i class="ce-menu-icon">${this.icon.replace(/^data-text:/,"")}</i>`:o=`<i class="ce-menu-icon ${this.icon}"></i>`),s.innerHTML=n.replace(/{key}/g,this.key).replace(/{label}/g,this.label).replace(/{icon}/g,o);const i=s.firstElementChild;if(i.setAttribute("title",this.title||""),this.onClick&&(i.addEventListener("click",async r=>{this.onClick(this,r);}),i.addEventListener("mousedown",r=>{r.stopPropagation();})),this.onMouseOver&&i.addEventListener("mouseover",async r=>{this.onMouseOver&&this.onMouseOver(this,r);}),this.onMouseOut&&i.addEventListener("mouseout",async r=>{this.onMouseOut&&this.onMouseOut(this,r);}),this.subItems.length>0){const r=i.querySelector(".sub-items"),a=[];for(const l of this.subItems){const u=await l.render();a.push(u);}r==null||r.append(...a);}return i}async closeMenu(){unsafeWindow.Core.FileMenu.HideRight(),document.dispatchEvent(new CustomEvent(_r.EVENT_CLOSE_MENU,{detail:{menu:this}}));}async decorateContainer(t){t.setAttribute("ce-done","");}};ke(_r,"EVENT_CLOSE_MENU","__closeMenu");let Sn=_r;async function Tr(e,t){t.stopPropagation(),t.preventDefault();const n=t.target,s=$(n).closest(".ce-menu-parent"),o=s.find(".ce-menu-dropdown");s.addClass("ce-menu-dropdown-opened"),o.addClass("ce-menu-dropdown-active");}async function Or(e,t){t.stopPropagation(),t.preventDefault();const n=t.target,s=$(n).closest(".ce-menu-parent"),o=s.find(".ce-menu-dropdown");s.removeClass("ce-menu-dropdown-opened"),o.removeClass("ce-menu-dropdown-active");}class Xt extends Sn{constructor(n){super(n);ke(this,"menuType",ze.dirContext);this.onMouseOver=Tr,this.onMouseOut=Or;}}class Yb extends Sn{constructor(){super(...arguments);ke(this,"menuType",ze.dirContextSub);}}class Dr extends Sn{constructor(n){super(n);ke(this,"menuType",ze.listItemContext);this.onMouseOver=Tr,this.onMouseOut=Or;}}class Mr extends Sn{constructor(n){super(n);ke(this,"menuType",ze.listItemHover);this.onMouseOver=Tr,this.onMouseOut=Or;}}class So extends Sn{constructor(){super(...arguments);ke(this,"menuType",ze.listItemHoverSub);}}class Wl extends Sn{constructor(n){super(n);ke(this,"menuType",ze.selection);this.onMouseOver=Tr,this.onMouseOut=Or;}}class oi extends Sn{constructor(){super(...arguments);ke(this,"menuType",ze.selectionSub);}}class Lr extends Sn{constructor(){super(...arguments);ke(this,"isDivider",!0);}}class Qb extends Lr{}class hc extends Lr{}class mc extends Lr{}class Ya extends Lr{}class Br{constructor(t){ke(this,"items");ke(this,"siblingSelector");ke(this,"position");ke(this,"useObserver",!0);ke(this,"observeTarget",document.body);ke(this,"disposeObserverAfterInjection",!0);ke(this,"menuType");ke(this,"_observer");ke(this,"injectDecider");t.menuType&&(this.menuType=t.menuType),t.injectDecider&&(this.injectDecider=t.injectDecider),this.items=t.items,this.siblingSelector=t.siblingSelector,this.position=t.position,this.useObserver=t.useObserver,this.observeTarget=t.observeTarget,this.disposeObserverAfterInjection=t.disposeObserverAfterInjection,this.handleMessage();}async createObserver(){return new MutationObserver(async([n])=>{n.type==="childList"&&await this.handleChildListMutation(n);})}handleMessage(){window.addEventListener("message",async t=>{const{event:n,body:s={}}=t.data;if(n===mt.renderMenus&&s.type===this.menuType){const o=[];document.querySelectorAll("#js_data_list .list-contents > ul > li .file-opr:not([ce-done])").forEach(i=>{o.push(i);}),o.length&&await this.perform(o);}},!1);}async observe(){if(this._observer=await this.createObserver(),!this._observer)return;const t=await this.getObserveTarget();t&&this.startObserver(t);}async startObserver(t){this._observer&&this._observer.observe(t,{childList:!0});}async disposeObserver(){this.disposeObserverAfterInjection&&this._observer&&this._observer.disconnect();}async getObserveTarget(){return typeof this.observeTarget=="string"?await $t(this.observeTarget,800,864e5*7):this.observeTarget}async isMutationMatch(t){const n=t.addedNodes[0];if(n&&n.nodeType!==Node.ELEMENT_NODE)return !1;switch(this.menuType,ze.dirContext,this.menuType){case ze.listItemHover:return !0;case ze.listItemContext:return n&&n.classList.contains("context-menu")&&!!n.querySelector('[val="report"]');case ze.selection:return !0;case ze.dirContext:return n&&n.classList.contains("context-menu")&&!!n.querySelector('[val="upload"]');default:return !1}}async handleChildListMutation(t){if(!await this.isMutationMatch(t))return;const n=await this.getContainersByMutation(t);await this.perform(n);}async perform(t){for(const n of t)await this.injectToContainer(n);}async getSibling(t){return t.querySelector(this.siblingSelector)}async getContainersByMutation(t){const n=t.addedNodes[0];return await this.getContainersByElement(n)}async getContainersByElement(t){let n=[];switch(this.menuType){case ze.listItemHover:document.querySelectorAll("#js_data_list .list-contents > ul:not([ce-done]) > li .file-opr").forEach(s=>{n.push(s);});break;case ze.listItemContext:n=[t];break;case ze.selection:document.querySelectorAll("#js_top_panel_box #js_operate_box").forEach(s=>{n.push(s);});break;case ze.dirContext:n=[t];break}return n}async shouldInjectMenuItem(t,n){return await n.decideInject(t)?await this.decideInject(n,t):!1}async decideInject(t,n){return this.injectDecider?await this.injectDecider(t,n):!0}async injectToContainer(t){const n=await this.getSibling(t);if(!n)return;let s=this.items.slice();this.position===Rs.after&&(s=s.reverse());for(let o=0;o<s.length;o++){const i=s[o];if(!await this.shouldInjectMenuItem(t,i))continue;const r=await i.render();this.position===Rs.before?n.insertAdjacentElement("beforebegin",r):n.insertAdjacentElement("afterend",r),await i.decorateContainer(t);}}async isFileContainer(t){return !!t.getAttribute("file_id")}async isDirContainer(t){return !!t.getAttribute("cate_id")}async inject(){if(this.menuType)if(this.useObserver)await this.observe();else {const t=await this.getObserveTarget();if(!t)return;await this.injectToContainer(t);}}}class Xb extends Br{constructor(){super(...arguments);ke(this,"menuType",ze.dirContext);ke(this,"useObserver",!0);ke(this,"observeTarget",document.body);ke(this,"disposeObserverAfterInjection",!0);}}class Zb extends Br{constructor(){super(...arguments);ke(this,"menuType",ze.listItemContext);}}class ev extends Br{constructor(n){super(n);ke(this,"menuType",ze.listItemHover);ke(this,"useObserver",!0);ke(this,"observeTarget","#js_data_list");ke(this,"disposeObserverAfterInjection",!1);this.handleLoadAll();}async inject(){const n=document.querySelector("#js_data_list");if(n){const s=n.querySelectorAll(".list-contents > ul:not([ce-done]) > li .file-opr");s.length&&await this.perform(Array.from(s));}super.inject();}async handleLoadAll(){if(window.top===window.self)return;const n=document.querySelector("#js_pagination_box");if(!n){console.warn("[ListItemHoverMenuInjector.handleLoadAll] 未找到「#js_pagination_box」元素");return}function s(o){const i=document.querySelector("#js_data_list .list-contents > ul > li");i&&(i.querySelector(".ce-menu")||o(!0));}n.addEventListener("click",async o=>{o.preventDefault(),o.stopPropagation();const i=o.target;let r=!1;if((i.getAttribute("menu")==="load_all_file"||i.closest('[menu="load_all_file"]'))&&(r=!0),!r)return;console.log("[ListItemHoverMenuInjector.handleLoadAll] 点击了「加载全部」按钮"),await ys(s,500,3e5);const a=document.querySelector("#js_data_list .list-contents > ul");a==null||a.removeAttribute("ce-done");const l=document.querySelector("#js_data_list");if(l){const u=".list-contents > ul:not([ce-done]) > li .file-opr";if(!document.querySelector(u)){const h=await hn();await Tf(h);}const d=l.querySelectorAll(u);d.length&&await this.perform(Array.from(d));}});}async perform(n){await super.perform(n);const s=document.querySelector("#js_data_list .list-contents > ul");s==null||s.setAttribute("ce-done","");}}class tv extends Br{constructor(){super(...arguments);ke(this,"menuType",ze.selection);ke(this,"useObserver",!0);ke(this,"observeTarget","#js_top_panel_box #js_operate_box");ke(this,"disposeObserverAfterInjection",!1);}}async function nv(e,t){return !!$(t).closest("li").attr("cate_id")}async function sv(e,t){const n=$(t).closest("li");if(n.attr("cate_id")||n.attr("iv")==="1")return !0;const s=n.attr("ico");return s?Jw(s)||Qw(s)||Yw(s):!1}/**
  * @vue/shared v3.5.12
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **//*! #__NO_SIDE_EFFECTS__ */function Gl(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const rt={},ro=[],Bn=()=>{},ov=()=>!1,Rr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Jl=e=>e.startsWith("onUpdate:"),kt=Object.assign,Yl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1);},iv=Object.prototype.hasOwnProperty,tt=(e,t)=>iv.call(e,t),Oe=Array.isArray,ao=e=>vi(e)==="[object Map]",Eo=e=>vi(e)==="[object Set]",gc=e=>vi(e)==="[object Date]",Fe=e=>typeof e=="function",pt=e=>typeof e=="string",En=e=>typeof e=="symbol",at=e=>e!==null&&typeof e=="object",Ql=e=>(at(e)||Fe(e))&&Fe(e.then)&&Fe(e.catch),Ff=Object.prototype.toString,vi=e=>Ff.call(e),rv=e=>vi(e).slice(8,-1),Uf=e=>vi(e)==="[object Object]",Xl=e=>pt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ko=Gl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Nr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},av=/-(\w)/g,mn=Nr(e=>e.replace(av,(t,n)=>n?n.toUpperCase():"")),lv=/\B([A-Z])/g,_s=Nr(e=>e.replace(lv,"-$1").toLowerCase()),Fr=Nr(e=>e.charAt(0).toUpperCase()+e.slice(1)),xa=Nr(e=>e?`on${Fr(e)}`:""),us=(e,t)=>!Object.is(e,t),zi=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t);},jf=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n});},ir=e=>{const t=parseFloat(e);return isNaN(t)?e:t},uv=e=>{const t=pt(e)?Number(e):NaN;return isNaN(t)?e:t};let yc;const Ur=()=>yc||(yc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Rn(e){if(Oe(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=pt(s)?pv(s):Rn(s);if(o)for(const i in o)t[i]=o[i];}return t}else if(pt(e)||at(e))return e}const cv=/;(?![^(]*\))/g,dv=/:([^]+)/,fv=/\/\*[^]*?\*\//g;function pv(e){const t={};return e.replace(fv,"").split(cv).forEach(n=>{if(n){const s=n.split(dv);s.length>1&&(t[s[0].trim()]=s[1].trim());}}),t}function He(e){let t="";if(pt(e))t=e;else if(Oe(e))for(let n=0;n<e.length;n++){const s=He(e[n]);s&&(t+=s+" ");}else if(at(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function hv(e){if(!e)return null;let{class:t,style:n}=e;return t&&!pt(t)&&(e.class=He(t)),n&&(e.style=Rn(n)),e}const mv="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",gv=Gl(mv);function Hf(e){return !!e||e===""}function yv(e,t){if(e.length!==t.length)return !1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Us(e[s],t[s]);return n}function Us(e,t){if(e===t)return !0;let n=gc(e),s=gc(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=En(e),s=En(t),n||s)return e===t;if(n=Oe(e),s=Oe(t),n||s)return n&&s?yv(e,t):!1;if(n=at(e),s=at(t),n||s){if(!n||!s)return !1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return !1;for(const r in e){const a=e.hasOwnProperty(r),l=t.hasOwnProperty(r);if(a&&!l||!a&&l||!Us(e[r],t[r]))return !1}}return String(e)===String(t)}function Zl(e,t){return e.findIndex(n=>Us(n,t))}const zf=e=>!!(e&&e.__v_isRef===!0),G=e=>pt(e)?e:e==null?"":Oe(e)||at(e)&&(e.toString===Ff||!Fe(e.toString))?zf(e)?G(e.value):JSON.stringify(e,qf,2):String(e),qf=(e,t)=>zf(t)?qf(e,t.value):ao(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],i)=>(n[Ca(s,i)+" =>"]=o,n),{})}:Eo(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ca(n))}:En(t)?Ca(t):at(t)&&!Oe(t)&&!Uf(t)?String(t):t,Ca=(e,t="")=>{var n;return En(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
  * @vue/reactivity v3.5.12
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **/let tn;class wv{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=tn,!t&&tn&&(this.index=(tn.scopes||(tn.scopes=[])).push(this)-1);}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause();}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume();}}run(t){if(this._active){const n=tn;try{return tn=this,t()}finally{tn=n;}}}on(){tn=this;}off(){tn=this.parent;}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index);}this.parent=void 0,this._active=!1;}}}function bv(){return tn}let ct;const ka=new WeakSet;class Vf{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,tn&&tn.active&&tn.effects.push(this);}pause(){this.flags|=64;}resume(){this.flags&64&&(this.flags&=-65,ka.has(this)&&(ka.delete(this),this.trigger()));}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Wf(this);}run(){if(!(this.flags&1))return this.fn();this.flags|=2,wc(this),Gf(this);const t=ct,n=$n;ct=this,$n=!0;try{return this.fn()}finally{Jf(this),ct=t,$n=n,this.flags&=-3;}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)nu(t);this.deps=this.depsTail=void 0,wc(this),this.onStop&&this.onStop(),this.flags&=-2;}}trigger(){this.flags&64?ka.add(this):this.scheduler?this.scheduler():this.runIfDirty();}runIfDirty(){Qa(this)&&this.run();}get dirty(){return Qa(this)}}let Kf=0,Wo,Go;function Wf(e,t=!1){if(e.flags|=8,t){e.next=Go,Go=e;return}e.next=Wo,Wo=e;}function eu(){Kf++;}function tu(){if(--Kf>0)return;if(Go){let t=Go;for(Go=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n;}}let e;for(;Wo;){let t=Wo;for(Wo=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger();}catch(s){e||(e=s);}t=n;}}if(e)throw e}function Gf(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t;}function Jf(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),nu(s),vv(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o;}e.deps=t,e.depsTail=n;}function Qa(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Yf(t.dep.computed)||t.dep.version!==t.version))return !0;return !!e._dirty}function Yf(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ii))return;e.globalVersion=ii;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Qa(e)){e.flags&=-3;return}const n=ct,s=$n;ct=e,$n=!0;try{Gf(e);const o=e.fn(e._value);(t.version===0||us(o,e._value))&&(e._value=o,t.version++);}catch(o){throw t.version++,o}finally{ct=n,$n=s,Jf(e),e.flags&=-3;}}function nu(e,t=!1){const{dep:n,prevSub:s,nextSub:o}=e;if(s&&(s.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)nu(i,!0);}!t&&!--n.sc&&n.map&&n.map.delete(n.key);}function vv(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0);}let $n=!0;const Qf=[];function xs(){Qf.push($n),$n=!1;}function Cs(){const e=Qf.pop();$n=e===void 0?!0:e;}function wc(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ct;ct=void 0;try{t();}finally{ct=n;}}}let ii=0;class _v{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0;}}class su{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0;}track(t){if(!ct||!$n||ct===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ct)n=this.activeLink=new _v(ct,this),ct.deps?(n.prevDep=ct.depsTail,ct.depsTail.nextDep=n,ct.depsTail=n):ct.deps=ct.depsTail=n,Xf(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=ct.depsTail,n.nextDep=void 0,ct.depsTail.nextDep=n,ct.depsTail=n,ct.deps===n&&(ct.deps=s);}return n}trigger(t){this.version++,ii++,this.notify(t);}notify(t){eu();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify();}finally{tu();}}}function Xf(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Xf(s);}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e;}}const rr=new WeakMap,Ls=Symbol(""),Xa=Symbol(""),ri=Symbol("");function Tt(e,t,n){if($n&&ct){let s=rr.get(e);s||rr.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new su),o.map=s,o.key=n),o.track();}}function Wn(e,t,n,s,o,i){const r=rr.get(e);if(!r){ii++;return}const a=l=>{l&&l.trigger();};if(eu(),t==="clear")r.forEach(a);else {const l=Oe(e),u=l&&Xl(n);if(l&&n==="length"){const d=Number(s);r.forEach((h,y)=>{(y==="length"||y===ri||!En(y)&&y>=d)&&a(h);});}else switch((n!==void 0||r.has(void 0))&&a(r.get(n)),u&&a(r.get(ri)),t){case"add":l?u&&a(r.get("length")):(a(r.get(Ls)),ao(e)&&a(r.get(Xa)));break;case"delete":l||(a(r.get(Ls)),ao(e)&&a(r.get(Xa)));break;case"set":ao(e)&&a(r.get(Ls));break}}tu();}function xv(e,t){const n=rr.get(e);return n&&n.get(t)}function to(e){const t=et(e);return t===e?t:(Tt(t,"iterate",ri),cn(e)?t:t.map(Ot))}function jr(e){return Tt(e=et(e),"iterate",ri),e}const Cv={__proto__:null,[Symbol.iterator](){return $a(this,Symbol.iterator,Ot)},concat(...e){return to(this).concat(...e.map(t=>Oe(t)?to(t):t))},entries(){return $a(this,"entries",e=>(e[1]=Ot(e[1]),e))},every(e,t){return Vn(this,"every",e,t,void 0,arguments)},filter(e,t){return Vn(this,"filter",e,t,n=>n.map(Ot),arguments)},find(e,t){return Vn(this,"find",e,t,Ot,arguments)},findIndex(e,t){return Vn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Vn(this,"findLast",e,t,Ot,arguments)},findLastIndex(e,t){return Vn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Vn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Sa(this,"includes",e)},indexOf(...e){return Sa(this,"indexOf",e)},join(e){return to(this).join(e)},lastIndexOf(...e){return Sa(this,"lastIndexOf",e)},map(e,t){return Vn(this,"map",e,t,void 0,arguments)},pop(){return No(this,"pop")},push(...e){return No(this,"push",e)},reduce(e,...t){return bc(this,"reduce",e,t)},reduceRight(e,...t){return bc(this,"reduceRight",e,t)},shift(){return No(this,"shift")},some(e,t){return Vn(this,"some",e,t,void 0,arguments)},splice(...e){return No(this,"splice",e)},toReversed(){return to(this).toReversed()},toSorted(e){return to(this).toSorted(e)},toSpliced(...e){return to(this).toSpliced(...e)},unshift(...e){return No(this,"unshift",e)},values(){return $a(this,"values",Ot)}};function $a(e,t,n){const s=jr(e),o=s[t]();return s!==e&&!cn(e)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.value&&(i.value=n(i.value)),i}),o}const kv=Array.prototype;function Vn(e,t,n,s,o,i){const r=jr(e),a=r!==e&&!cn(e),l=r[t];if(l!==kv[t]){const h=l.apply(e,i);return a?Ot(h):h}let u=n;r!==e&&(a?u=function(h,y){return n.call(this,Ot(h),y,e)}:n.length>2&&(u=function(h,y){return n.call(this,h,y,e)}));const d=l.call(r,u,s);return a&&o?o(d):d}function bc(e,t,n,s){const o=jr(e);let i=n;return o!==e&&(cn(e)?n.length>3&&(i=function(r,a,l){return n.call(this,r,a,l,e)}):i=function(r,a,l){return n.call(this,r,Ot(a),l,e)}),o[t](i,...s)}function Sa(e,t,n){const s=et(e);Tt(s,"iterate",ri);const o=s[t](...n);return (o===-1||o===!1)&&ru(n[0])?(n[0]=et(n[0]),s[t](...n)):o}function No(e,t,n=[]){xs(),eu();const s=et(e)[t].apply(e,n);return tu(),Cs(),s}const $v=Gl("__proto__,__v_isRef,__isVue"),Zf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(En));function Sv(e){En(e)||(e=String(e));const t=et(this);return Tt(t,"has",e),t.hasOwnProperty(e)}class ep{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n;}get(t,n,s){const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return !o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(o?i?Bv:op:i?sp:np).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=Oe(t);if(!o){let l;if(r&&(l=Cv[n]))return l;if(n==="hasOwnProperty")return Sv}const a=Reflect.get(t,n,Ct(t)?t:s);return (En(n)?Zf.has(n):$v(n))||(o||Tt(t,"get",n),i)?a:Ct(a)?r&&Xl(n)?a:a.value:at(a)?o?ip(a):Hr(a):a}}class tp extends ep{constructor(t=!1){super(!1,t);}set(t,n,s,o){let i=t[n];if(!this._isShallow){const l=js(i);if(!cn(s)&&!js(s)&&(i=et(i),s=et(s)),!Oe(t)&&Ct(i)&&!Ct(s))return l?!1:(i.value=s,!0)}const r=Oe(t)&&Xl(n)?Number(n)<t.length:tt(t,n),a=Reflect.set(t,n,s,Ct(t)?t:o);return t===et(o)&&(r?us(s,i)&&Wn(t,"set",n,s):Wn(t,"add",n,s)),a}deleteProperty(t,n){const s=tt(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&Wn(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return (!En(n)||!Zf.has(n))&&Tt(t,"has",n),s}ownKeys(t){return Tt(t,"iterate",Oe(t)?"length":Ls),Reflect.ownKeys(t)}}class Ev extends ep{constructor(t=!1){super(!0,t);}set(t,n){return !0}deleteProperty(t,n){return !0}}const Av=new tp,Pv=new Ev,Iv=new tp(!0);const Za=e=>e,Ii=e=>Reflect.getPrototypeOf(e);function Tv(e,t,n){return function(...s){const o=this.__v_raw,i=et(o),r=ao(i),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,u=o[e](...s),d=n?Za:t?el:Ot;return !t&&Tt(i,"iterate",l?Xa:Ls),{next(){const{value:h,done:y}=u.next();return y?{value:h,done:y}:{value:a?[d(h[0]),d(h[1])]:d(h),done:y}},[Symbol.iterator](){return this}}}}function Ti(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ov(e,t){const n={get(o){const i=this.__v_raw,r=et(i),a=et(o);e||(us(o,a)&&Tt(r,"get",o),Tt(r,"get",a));const{has:l}=Ii(r),u=t?Za:e?el:Ot;if(l.call(r,o))return u(i.get(o));if(l.call(r,a))return u(i.get(a));i!==r&&i.get(o);},get size(){const o=this.__v_raw;return !e&&Tt(et(o),"iterate",Ls),Reflect.get(o,"size",o)},has(o){const i=this.__v_raw,r=et(i),a=et(o);return e||(us(o,a)&&Tt(r,"has",o),Tt(r,"has",a)),o===a?i.has(o):i.has(o)||i.has(a)},forEach(o,i){const r=this,a=r.__v_raw,l=et(a),u=t?Za:e?el:Ot;return !e&&Tt(l,"iterate",Ls),a.forEach((d,h)=>o.call(i,u(d),u(h),r))}};return kt(n,e?{add:Ti("add"),set:Ti("set"),delete:Ti("delete"),clear:Ti("clear")}:{add(o){!t&&!cn(o)&&!js(o)&&(o=et(o));const i=et(this);return Ii(i).has.call(i,o)||(i.add(o),Wn(i,"add",o,o)),this},set(o,i){!t&&!cn(i)&&!js(i)&&(i=et(i));const r=et(this),{has:a,get:l}=Ii(r);let u=a.call(r,o);u||(o=et(o),u=a.call(r,o));const d=l.call(r,o);return r.set(o,i),u?us(i,d)&&Wn(r,"set",o,i):Wn(r,"add",o,i),this},delete(o){const i=et(this),{has:r,get:a}=Ii(i);let l=r.call(i,o);l||(o=et(o),l=r.call(i,o)),a&&a.call(i,o);const u=i.delete(o);return l&&Wn(i,"delete",o,void 0),u},clear(){const o=et(this),i=o.size!==0,r=o.clear();return i&&Wn(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=Tv(o,e,t);}),n}function ou(e,t){const n=Ov(e,t);return (s,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(tt(n,o)&&o in s?n:s,o,i)}const Dv={get:ou(!1,!1)},Mv={get:ou(!1,!0)},Lv={get:ou(!0,!1)};const np=new WeakMap,sp=new WeakMap,op=new WeakMap,Bv=new WeakMap;function Rv(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Nv(e){return e.__v_skip||!Object.isExtensible(e)?0:Rv(rv(e))}function Hr(e){return js(e)?e:iu(e,!1,Av,Dv,np)}function Fv(e){return iu(e,!1,Iv,Mv,sp)}function ip(e){return iu(e,!0,Pv,Lv,op)}function iu(e,t,n,s,o){if(!at(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const r=Nv(e);if(r===0)return e;const a=new Proxy(e,r===2?s:n);return o.set(e,a),a}function lo(e){return js(e)?lo(e.__v_raw):!!(e&&e.__v_isReactive)}function js(e){return !!(e&&e.__v_isReadonly)}function cn(e){return !!(e&&e.__v_isShallow)}function ru(e){return e?!!e.__v_raw:!1}function et(e){const t=e&&e.__v_raw;return t?et(t):e}function Uv(e){return !tt(e,"__v_skip")&&Object.isExtensible(e)&&jf(e,"__v_skip",!0),e}const Ot=e=>at(e)?Hr(e):e,el=e=>at(e)?ip(e):e;function Ct(e){return e?e.__v_isRef===!0:!1}function oe(e){return jv(e,!1)}function jv(e,t){return Ct(e)?e:new Hv(e,t)}class Hv{constructor(t,n){this.dep=new su,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:et(t),this._value=n?t:Ot(t),this.__v_isShallow=n;}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||cn(t)||js(t);t=s?t:et(t),us(t,n)&&(this._rawValue=t,this._value=s?t:Ot(t),this.dep.trigger());}}function fe(e){return Ct(e)?e.value:e}const zv={get:(e,t,n)=>t==="__v_raw"?e:fe(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return Ct(o)&&!Ct(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function rp(e){return lo(e)?e:new Proxy(e,zv)}function qv(e){const t=Oe(e)?new Array(e.length):{};for(const n in e)t[n]=ap(e,n);return t}class Vv{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0;}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t;}get dep(){return xv(et(this._object),this._key)}}class Kv{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0;}get value(){return this._value=this._getter()}}function Wv(e,t,n){return Ct(e)?e:Fe(e)?new Kv(e):at(e)&&arguments.length>1?ap(e,t,n):oe(e)}function ap(e,t,n){const s=e[t];return Ct(s)?s:new Vv(e,t,n)}class Gv{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new su(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ii-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s;}notify(){if(this.flags|=16,!(this.flags&8)&&ct!==this)return Wf(this,!0),!0}get value(){const t=this.dep.track();return Yf(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t);}}function Jv(e,t,n=!1){let s,o;return Fe(e)?s=e:(s=e.get,o=e.set),new Gv(s,o,n)}const Oi={},ar=new WeakMap;let Ps;function Yv(e,t=!1,n=Ps){if(n){let s=ar.get(n);s||ar.set(n,s=[]),s.push(e);}}function Qv(e,t,n=rt){const{immediate:s,deep:o,once:i,scheduler:r,augmentJob:a,call:l}=n,u=B=>o?B:cn(B)||o===!1||o===0?Gn(B,1):Gn(B);let d,h,y,v,b=!1,_=!1;if(Ct(e)?(h=()=>e.value,b=cn(e)):lo(e)?(h=()=>u(e),b=!0):Oe(e)?(_=!0,b=e.some(B=>lo(B)||cn(B)),h=()=>e.map(B=>{if(Ct(B))return B.value;if(lo(B))return u(B);if(Fe(B))return l?l(B,2):B()})):Fe(e)?t?h=l?()=>l(e,2):e:h=()=>{if(y){xs();try{y();}finally{Cs();}}const B=Ps;Ps=d;try{return l?l(e,3,[v]):e(v)}finally{Ps=B;}}:h=Bn,t&&o){const B=h,F=o===!0?1/0:o;h=()=>Gn(B(),F);}const R=bv(),L=()=>{d.stop(),R&&Yl(R.effects,d);};if(i&&t){const B=t;t=(...F)=>{B(...F),L();};}let N=_?new Array(e.length).fill(Oi):Oi;const D=B=>{if(!(!(d.flags&1)||!d.dirty&&!B))if(t){const F=d.run();if(o||b||(_?F.some((j,K)=>us(j,N[K])):us(F,N))){y&&y();const j=Ps;Ps=d;try{const K=[F,N===Oi?void 0:_&&N[0]===Oi?[]:N,v];l?l(t,3,K):t(...K),N=F;}finally{Ps=j;}}}else d.run();};return a&&a(D),d=new Vf(h),d.scheduler=r?()=>r(D,!1):D,v=B=>Yv(B,!1,d),y=d.onStop=()=>{const B=ar.get(d);if(B){if(l)l(B,4);else for(const F of B)F();ar.delete(d);}},t?s?D(!0):N=d.run():r?r(D.bind(null,!0),!0):d.run(),L.pause=d.pause.bind(d),L.resume=d.resume.bind(d),L.stop=L,L}function Gn(e,t=1/0,n){if(t<=0||!at(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Ct(e))Gn(e.value,t,n);else if(Oe(e))for(let s=0;s<e.length;s++)Gn(e[s],t,n);else if(Eo(e)||ao(e))e.forEach(s=>{Gn(s,t,n);});else if(Uf(e)){for(const s in e)Gn(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Gn(e[s],t,n);}return e}/**
  * @vue/runtime-core v3.5.12
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **/function _i(e,t,n,s){try{return s?e(...s):e()}catch(o){xi(o,t,n);}}function jn(e,t,n,s){if(Fe(e)){const o=_i(e,t,n,s);return o&&Ql(o)&&o.catch(i=>{xi(i,t,n);}),o}if(Oe(e)){const o=[];for(let i=0;i<e.length;i++)o.push(jn(e[i],t,n,s));return o}}function xi(e,t,n,s=!0){const o=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||rt;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const d=a.ec;if(d){for(let h=0;h<d.length;h++)if(d[h](e,l,u)===!1)return}a=a.parent;}if(i){xs(),_i(i,null,10,[e,l,u]),Cs();return}}Xv(e,n,o,s,r);}function Xv(e,t,n,s=!0,o=!1){if(o)throw e;console.error(e);}const Rt=[];let On=-1;const uo=[];let os=null,no=0;const lp=Promise.resolve();let lr=null;function Hs(e){const t=lr||lp;return e?t.then(this?e.bind(this):e):t}function Zv(e){let t=On+1,n=Rt.length;for(;t<n;){const s=t+n>>>1,o=Rt[s],i=ai(o);i<e||i===e&&o.flags&2?t=s+1:n=s;}return t}function au(e){if(!(e.flags&1)){const t=ai(e),n=Rt[Rt.length-1];!n||!(e.flags&2)&&t>=ai(n)?Rt.push(e):Rt.splice(Zv(t),0,e),e.flags|=1,up();}}function up(){lr||(lr=lp.then(dp));}function tl(e){Oe(e)?uo.push(...e):os&&e.id===-1?os.splice(no+1,0,e):e.flags&1||(uo.push(e),e.flags|=1),up();}function vc(e,t,n=On+1){for(;n<Rt.length;n++){const s=Rt[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Rt.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2);}}}function cp(e){if(uo.length){const t=[...new Set(uo)].sort((n,s)=>ai(n)-ai(s));if(uo.length=0,os){os.push(...t);return}for(os=t,no=0;no<os.length;no++){const n=os[no];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2;}os=null,no=0;}}const ai=e=>e.id==null?e.flags&2?-1:1/0:e.id;function dp(e){try{for(On=0;On<Rt.length;On++){const t=Rt[On];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),_i(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2));}}finally{for(;On<Rt.length;On++){const t=Rt[On];t&&(t.flags&=-2);}On=-1,Rt.length=0,cp(),lr=null,(Rt.length||uo.length)&&dp();}}let xt=null,zr=null;function ur(e){const t=xt;return xt=e,zr=e&&e.type.__scopeId||null,t}function e1(e){zr=e;}function t1(){zr=null;}const n1=e=>Re;function Re(e,t=xt,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Ic(-1);const i=ur(t);let r;try{r=e(...o);}finally{ur(i),s._d&&Ic(1);}return r};return s._n=!0,s._c=!0,s._d=!0,s}function ae(e,t){if(xt===null)return e;const n=Wr(xt),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,r,a,l=rt]=t[o];i&&(Fe(i)&&(i={mounted:i,updated:i}),i.deep&&Gn(r),s.push({dir:i,instance:n,value:r,oldValue:void 0,arg:a,modifiers:l}));}return e}function Ss(e,t,n,s){const o=e.dirs,i=t&&t.dirs;for(let r=0;r<o.length;r++){const a=o[r];i&&(a.oldValue=i[r].value);let l=a.dir[s];l&&(xs(),jn(l,n,8,[e.el,a,e,t]),Cs());}}const s1=Symbol("_vte"),o1=e=>e.__isTeleport;function lu(e,t){e.shapeFlag&6&&e.component?(e.transition=t,lu(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t;}/*! #__NO_SIDE_EFFECTS__ */function Be(e,t){return Fe(e)?kt({name:e.name},t,{setup:e}):e}function fp(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0];}function nl(e,t,n,s,o=!1){if(Oe(e)){e.forEach((b,_)=>nl(b,t&&(Oe(t)?t[_]:t),n,s,o));return}if(co(s)&&!o)return;const i=s.shapeFlag&4?Wr(s.component):s.el,r=o?null:i,{i:a,r:l}=e,u=t&&t.r,d=a.refs===rt?a.refs={}:a.refs,h=a.setupState,y=et(h),v=h===rt?()=>!1:b=>tt(y,b);if(u!=null&&u!==l&&(pt(u)?(d[u]=null,v(u)&&(h[u]=null)):Ct(u)&&(u.value=null)),Fe(l))_i(l,a,12,[r,d]);else {const b=pt(l),_=Ct(l);if(b||_){const R=()=>{if(e.f){const L=b?v(l)?h[l]:d[l]:l.value;o?Oe(L)&&Yl(L,i):Oe(L)?L.includes(i)||L.push(i):b?(d[l]=[i],v(l)&&(h[l]=d[l])):(l.value=[i],e.k&&(d[e.k]=l.value));}else b?(d[l]=r,v(l)&&(h[l]=r)):_&&(l.value=r,e.k&&(d[e.k]=r));};r?(R.id=-1,en(R,n)):R();}}}Ur().requestIdleCallback;Ur().cancelIdleCallback;const co=e=>!!e.type.__asyncLoader,pp=e=>e.type.__isKeepAlive;function i1(e,t){hp(e,"a",t);}function r1(e,t){hp(e,"da",t);}function hp(e,t,n=Et){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent;}return e()});if(qr(t,s,n),n){let o=n.parent;for(;o&&o.parent;)pp(o.parent.vnode)&&a1(s,t,n,o),o=o.parent;}}function a1(e,t,n,s){const o=qr(t,e,s,!0);Gs(()=>{Yl(s[t],o);},n);}function qr(e,t,n=Et,s=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{xs();const a=qs(n),l=jn(t,n,e,r);return a(),Cs(),l});return s?o.unshift(i):o.push(i),i}}const Xn=e=>(t,n=Et)=>{(!ui||e==="sp")&&qr(e,(...s)=>t(...s),n);},Dt=Xn("bm"),qt=Xn("m"),l1=Xn("bu"),u1=Xn("u"),mp=Xn("bum"),Gs=Xn("um"),c1=Xn("sp"),d1=Xn("rtg"),f1=Xn("rtc");function p1(e,t=Et){qr("ec",e,t);}const gp="components";function zs(e,t){return wp(gp,e,!0,t)||e}const yp=Symbol.for("v-ndc");function wn(e){return pt(e)?wp(gp,e,!1)||e:e||yp}function wp(e,t,n=!0,s=!1){const o=xt||Et;if(o){const i=o.type;{const a=o0(i,!1);if(a&&(a===t||a===mn(t)||a===Fr(mn(t))))return i}const r=_c(o[e]||i[e],t)||_c(o.appContext[e],t);return !r&&s?i:r}}function _c(e,t){return e&&(e[t]||e[mn(t)]||e[Fr(mn(t))])}function Ge(e,t,n,s){let o;const i=n,r=Oe(e);if(r||pt(e)){const a=r&&lo(e);let l=!1;a&&(l=!cn(e),e=jr(e)),o=new Array(e.length);for(let u=0,d=e.length;u<d;u++)o[u]=t(l?Ot(e[u]):e[u],u,void 0,i);}else if(typeof e=="number"){o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,i);}else if(at(e))if(e[Symbol.iterator])o=Array.from(e,(a,l)=>t(a,l,void 0,i));else {const a=Object.keys(e);o=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const d=a[l];o[l]=t(e[d],d,l,i);}}else o=[];return o}function h1(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(Oe(s))for(let o=0;o<s.length;o++)e[s[o].name]=s[o].fn;else s&&(e[s.name]=s.key?(...o)=>{const i=s.fn(...o);return i&&(i.key=s.key),i}:s.fn);}return e}function nt(e,t,n={},s,o){if(xt.ce||xt.parent&&co(xt.parent)&&xt.parent.ce)return t!=="default"&&(n.name=t),A(),ot(De,null,[ge("slot",n,s&&s())],64);let i=e[t];i&&i._c&&(i._d=!1),A();const r=i&&bp(i(n)),a=n.key||r&&r.key,l=ot(De,{key:(a&&!En(a)?a:`_${t}`)+(!r&&s?"_fb":"")},r||(s?s():[]),r&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function bp(e){return e.some(t=>vo(t)?!(t.type===Hn||t.type===De&&!bp(t.children)):!0)?e:null}const sl=e=>e?qp(e)?Wr(e):sl(e.parent):null,Jo=kt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>sl(e.parent),$root:e=>sl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>uu(e),$forceUpdate:e=>e.f||(e.f=()=>{au(e.update);}),$nextTick:e=>e.n||(e.n=Hs.bind(e.proxy)),$watch:e=>L1.bind(e)}),Ea=(e,t)=>e!==rt&&!e.__isScriptSetup&&tt(e,t),m1={get({_:e},t){if(t==="__v_skip")return !0;const{ctx:n,setupState:s,data:o,props:i,accessCache:r,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const v=r[t];if(v!==void 0)switch(v){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else {if(Ea(s,t))return r[t]=1,s[t];if(o!==rt&&tt(o,t))return r[t]=2,o[t];if((u=e.propsOptions[0])&&tt(u,t))return r[t]=3,i[t];if(n!==rt&&tt(n,t))return r[t]=4,n[t];ol&&(r[t]=0);}}const d=Jo[t];let h,y;if(d)return t==="$attrs"&&Tt(e.attrs,"get",""),d(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==rt&&tt(n,t))return r[t]=4,n[t];if(y=l.config.globalProperties,tt(y,t))return y[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:i}=e;return Ea(o,t)?(o[t]=n,!0):s!==rt&&tt(s,t)?(s[t]=n,!0):tt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:i}},r){let a;return !!n[r]||e!==rt&&tt(e,r)||Ea(t,r)||(a=i[0])&&tt(a,r)||tt(s,r)||tt(Jo,r)||tt(o.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:tt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function xc(e){return Oe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function rn(e){const t=Z1();let n=e();return ul(),Ql(n)&&(n=n.catch(s=>{throw qs(t),s})),[n,()=>qs(t)]}let ol=!0;function g1(e){const t=uu(e),n=e.proxy,s=e.ctx;ol=!1,t.beforeCreate&&Cc(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:r,watch:a,provide:l,inject:u,created:d,beforeMount:h,mounted:y,beforeUpdate:v,updated:b,activated:_,deactivated:R,beforeDestroy:L,beforeUnmount:N,destroyed:D,unmounted:B,render:F,renderTracked:j,renderTriggered:K,errorCaptured:de,serverPrefetch:be,expose:_e,inheritAttrs:pe,components:S,directives:ee,filters:Z}=t;if(u&&y1(u,s,null),r)for(const Pe in r){const Ee=r[Pe];Fe(Ee)&&(s[Pe]=Ee.bind(n));}if(o){const Pe=o.call(n,n);at(Pe)&&(e.data=Hr(Pe));}if(ol=!0,i)for(const Pe in i){const Ee=i[Pe],Ke=Fe(Ee)?Ee.bind(n,n):Fe(Ee.get)?Ee.get.bind(n,n):Bn,Ze=!Fe(Ee)&&Fe(Ee.set)?Ee.set.bind(n):Bn,ve=it({get:Ke,set:Ze});Object.defineProperty(s,Pe,{enumerable:!0,configurable:!0,get:()=>ve.value,set:M=>ve.value=M});}if(a)for(const Pe in a)vp(a[Pe],s,n,Pe);if(l){const Pe=Fe(l)?l.call(n):l;Reflect.ownKeys(Pe).forEach(Ee=>{zo(Ee,Pe[Ee]);});}d&&Cc(d,e,"c");function ye(Pe,Ee){Oe(Ee)?Ee.forEach(Ke=>Pe(Ke.bind(n))):Ee&&Pe(Ee.bind(n));}if(ye(Dt,h),ye(qt,y),ye(l1,v),ye(u1,b),ye(i1,_),ye(r1,R),ye(p1,de),ye(f1,j),ye(d1,K),ye(mp,N),ye(Gs,B),ye(c1,be),Oe(_e))if(_e.length){const Pe=e.exposed||(e.exposed={});_e.forEach(Ee=>{Object.defineProperty(Pe,Ee,{get:()=>n[Ee],set:Ke=>n[Ee]=Ke});});}else e.exposed||(e.exposed={});F&&e.render===Bn&&(e.render=F),pe!=null&&(e.inheritAttrs=pe),S&&(e.components=S),ee&&(e.directives=ee),be&&fp(e);}function y1(e,t,n=Bn){Oe(e)&&(e=il(e));for(const s in e){const o=e[s];let i;at(o)?"default"in o?i=Yo(o.from||s,o.default,!0):i=Yo(o.from||s):i=Yo(o),Ct(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[s]=i;}}function Cc(e,t,n){jn(Oe(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n);}function vp(e,t,n,s){let o=s.includes(".")?Mp(n,s):()=>n[s];if(pt(e)){const i=t[e];Fe(i)&&ht(o,i);}else if(Fe(e))ht(o,e.bind(n));else if(at(e))if(Oe(e))e.forEach(i=>vp(i,t,n,s));else {const i=Fe(e.handler)?e.handler.bind(n):t[e.handler];Fe(i)&&ht(o,i,e);}}function uu(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,a=i.get(t);let l;return a?l=a:!o.length&&!n&&!s?l=t:(l={},o.length&&o.forEach(u=>cr(l,u,r,!0)),cr(l,t,r)),at(t)&&i.set(t,l),l}function cr(e,t,n,s=!1){const{mixins:o,extends:i}=t;i&&cr(e,i,n,!0),o&&o.forEach(r=>cr(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const a=w1[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r];}return e}const w1={data:kc,props:$c,emits:$c,methods:Ho,computed:Ho,beforeCreate:Bt,created:Bt,beforeMount:Bt,mounted:Bt,beforeUpdate:Bt,updated:Bt,beforeDestroy:Bt,beforeUnmount:Bt,destroyed:Bt,unmounted:Bt,activated:Bt,deactivated:Bt,errorCaptured:Bt,serverPrefetch:Bt,components:Ho,directives:Ho,watch:v1,provide:kc,inject:b1};function kc(e,t){return t?e?function(){return kt(Fe(e)?e.call(this,this):e,Fe(t)?t.call(this,this):t)}:t:e}function b1(e,t){return Ho(il(e),il(t))}function il(e){if(Oe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Bt(e,t){return e?[...new Set([].concat(e,t))]:t}function Ho(e,t){return e?kt(Object.create(null),e,t):t}function $c(e,t){return e?Oe(e)&&Oe(t)?[...new Set([...e,...t])]:kt(Object.create(null),xc(e),xc(t??{})):t}function v1(e,t){if(!e)return t;if(!t)return e;const n=kt(Object.create(null),e);for(const s in t)n[s]=Bt(e[s],t[s]);return n}function _p(){return {app:null,config:{isNativeTag:ov,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let _1=0;function x1(e,t){return function(s,o=null){Fe(s)||(s=kt({},s)),o!=null&&!at(o)&&(o=null);const i=_p(),r=new WeakSet,a=[];let l=!1;const u=i.app={_uid:_1++,_component:s,_props:o,_container:null,_context:i,_instance:null,version:a0,get config(){return i.config},set config(d){},use(d,...h){return r.has(d)||(d&&Fe(d.install)?(r.add(d),d.install(u,...h)):Fe(d)&&(r.add(d),d(u,...h))),u},mixin(d){return i.mixins.includes(d)||i.mixins.push(d),u},component(d,h){return h?(i.components[d]=h,u):i.components[d]},directive(d,h){return h?(i.directives[d]=h,u):i.directives[d]},mount(d,h,y){if(!l){const v=u._ceVNode||ge(s,o);return v.appContext=i,y===!0?y="svg":y===!1&&(y=void 0),h&&t?t(v,d):e(v,d,y),l=!0,u._container=d,d.__vue_app__=u,Wr(v.component)}},onUnmount(d){a.push(d);},unmount(){l&&(jn(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__);},provide(d,h){return i.provides[d]=h,u},runWithContext(d){const h=fo;fo=u;try{return d()}finally{fo=h;}}};return u}}let fo=null;function zo(e,t){if(Et){let n=Et.provides;const s=Et.parent&&Et.parent.provides;s===n&&(n=Et.provides=Object.create(s)),n[e]=t;}}function Yo(e,t,n=!1){const s=Et||xt;if(s||fo){const o=fo?fo._context.provides:s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Fe(t)?t.call(s&&s.proxy):t}}const xp={},Cp=()=>Object.create(xp),kp=e=>Object.getPrototypeOf(e)===xp;function C1(e,t,n,s=!1){const o={},i=Cp();e.propsDefaults=Object.create(null),$p(e,t,o,i);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=s?o:Fv(o):e.type.props?e.props=o:e.props=i,e.attrs=i;}function k1(e,t,n,s){const{props:o,attrs:i,vnode:{patchFlag:r}}=e,a=et(o),[l]=e.propsOptions;let u=!1;if((s||r>0)&&!(r&16)){if(r&8){const d=e.vnode.dynamicProps;for(let h=0;h<d.length;h++){let y=d[h];if(Vr(e.emitsOptions,y))continue;const v=t[y];if(l)if(tt(i,y))v!==i[y]&&(i[y]=v,u=!0);else {const b=mn(y);o[b]=rl(l,a,b,v,e,!1);}else v!==i[y]&&(i[y]=v,u=!0);}}}else {$p(e,t,o,i)&&(u=!0);let d;for(const h in a)(!t||!tt(t,h)&&((d=_s(h))===h||!tt(t,d)))&&(l?n&&(n[h]!==void 0||n[d]!==void 0)&&(o[h]=rl(l,a,h,void 0,e,!0)):delete o[h]);if(i!==a)for(const h in i)(!t||!tt(t,h))&&(delete i[h],u=!0);}u&&Wn(e.attrs,"set","");}function $p(e,t,n,s){const[o,i]=e.propsOptions;let r=!1,a;if(t)for(let l in t){if(Ko(l))continue;const u=t[l];let d;o&&tt(o,d=mn(l))?!i||!i.includes(d)?n[d]=u:(a||(a={}))[d]=u:Vr(e.emitsOptions,l)||(!(l in s)||u!==s[l])&&(s[l]=u,r=!0);}if(i){const l=et(n),u=a||rt;for(let d=0;d<i.length;d++){const h=i[d];n[h]=rl(o,l,h,u[h],e,!tt(u,h));}}return r}function rl(e,t,n,s,o,i){const r=e[n];if(r!=null){const a=tt(r,"default");if(a&&s===void 0){const l=r.default;if(r.type!==Function&&!r.skipFactory&&Fe(l)){const{propsDefaults:u}=o;if(n in u)s=u[n];else {const d=qs(o);s=u[n]=l.call(null,t),d();}}else s=l;o.ce&&o.ce._setProp(n,s);}r[0]&&(i&&!a?s=!1:r[1]&&(s===""||s===_s(n))&&(s=!0));}return s}const $1=new WeakMap;function Sp(e,t,n=!1){const s=n?$1:t.propsCache,o=s.get(e);if(o)return o;const i=e.props,r={},a=[];let l=!1;if(!Fe(e)){const d=h=>{l=!0;const[y,v]=Sp(h,t,!0);kt(r,y),v&&a.push(...v);};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d);}if(!i&&!l)return at(e)&&s.set(e,ro),ro;if(Oe(i))for(let d=0;d<i.length;d++){const h=mn(i[d]);Sc(h)&&(r[h]=rt);}else if(i)for(const d in i){const h=mn(d);if(Sc(h)){const y=i[d],v=r[h]=Oe(y)||Fe(y)?{type:y}:kt({},y),b=v.type;let _=!1,R=!0;if(Oe(b))for(let L=0;L<b.length;++L){const N=b[L],D=Fe(N)&&N.name;if(D==="Boolean"){_=!0;break}else D==="String"&&(R=!1);}else _=Fe(b)&&b.name==="Boolean";v[0]=_,v[1]=R,(_||tt(v,"default"))&&a.push(h);}}const u=[r,a];return at(e)&&s.set(e,u),u}function Sc(e){return e[0]!=="$"&&!Ko(e)}const Ep=e=>e[0]==="_"||e==="$stable",cu=e=>Oe(e)?e.map(_n):[_n(e)],S1=(e,t,n)=>{if(t._n)return t;const s=Re((...o)=>cu(t(...o)),n);return s._c=!1,s},Ap=(e,t,n)=>{const s=e._ctx;for(const o in e){if(Ep(o))continue;const i=e[o];if(Fe(i))t[o]=S1(o,i,s);else if(i!=null){const r=cu(i);t[o]=()=>r;}}},Pp=(e,t)=>{const n=cu(t);e.slots.default=()=>n;},Ip=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s]);},E1=(e,t,n)=>{const s=e.slots=Cp();if(e.vnode.shapeFlag&32){const o=t._;o?(Ip(s,t,n),n&&jf(s,"_",o,!0)):Ap(t,s);}else t&&Pp(e,t);},A1=(e,t,n)=>{const{vnode:s,slots:o}=e;let i=!0,r=rt;if(s.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:Ip(o,t,n):(i=!t.$stable,Ap(t,o)),r=t;}else t&&(Pp(e,t),r={default:1});if(i)for(const a in o)!Ep(a)&&r[a]==null&&delete o[a];},en=W1;function P1(e){return I1(e)}function I1(e,t){const n=Ur();n.__VUE__=!0;const{insert:s,remove:o,patchProp:i,createElement:r,createText:a,createComment:l,setText:u,setElementText:d,parentNode:h,nextSibling:y,setScopeId:v=Bn,insertStaticContent:b}=e,_=(x,E,q,H=null,te=null,se=null,me=void 0,ie=null,le=!!E.dynamicChildren)=>{if(x===E)return;x&&!rs(x,E)&&(H=gt(x),M(x,te,se,!0),x=null),E.patchFlag===-2&&(le=!1,E.dynamicChildren=null);const{type:ce,ref:Ae,shapeFlag:W}=E;switch(ce){case Kr:R(x,E,q,H);break;case Hn:L(x,E,q,H);break;case qi:x==null&&N(E,q,H,me);break;case De:S(x,E,q,H,te,se,me,ie,le);break;default:W&1?F(x,E,q,H,te,se,me,ie,le):W&6?ee(x,E,q,H,te,se,me,ie,le):(W&64||W&128)&&ce.process(x,E,q,H,te,se,me,ie,le,O);}Ae!=null&&te&&nl(Ae,x&&x.ref,se,E||x,!E);},R=(x,E,q,H)=>{if(x==null)s(E.el=a(E.children),q,H);else {const te=E.el=x.el;E.children!==x.children&&u(te,E.children);}},L=(x,E,q,H)=>{x==null?s(E.el=l(E.children||""),q,H):E.el=x.el;},N=(x,E,q,H)=>{[x.el,x.anchor]=b(x.children,E,q,H,x.el,x.anchor);},D=({el:x,anchor:E},q,H)=>{let te;for(;x&&x!==E;)te=y(x),s(x,q,H),x=te;s(E,q,H);},B=({el:x,anchor:E})=>{let q;for(;x&&x!==E;)q=y(x),o(x),x=q;o(E);},F=(x,E,q,H,te,se,me,ie,le)=>{E.type==="svg"?me="svg":E.type==="math"&&(me="mathml"),x==null?j(E,q,H,te,se,me,ie,le):be(x,E,te,se,me,ie,le);},j=(x,E,q,H,te,se,me,ie)=>{let le,ce;const{props:Ae,shapeFlag:W,transition:$e,dirs:m}=x;if(le=x.el=r(x.type,se,Ae&&Ae.is,Ae),W&8?d(le,x.children):W&16&&de(x.children,le,null,H,te,Aa(x,se),me,ie),m&&Ss(x,null,H,"created"),K(le,x,x.scopeId,me,H),Ae){for(const k in Ae)k!=="value"&&!Ko(k)&&i(le,k,null,Ae[k],se,H);"value"in Ae&&i(le,"value",null,Ae.value,se),(ce=Ae.onVnodeBeforeMount)&&In(ce,H,x);}m&&Ss(x,null,H,"beforeMount");const w=T1(te,$e);w&&$e.beforeEnter(le),s(le,E,q),((ce=Ae&&Ae.onVnodeMounted)||w||m)&&en(()=>{ce&&In(ce,H,x),w&&$e.enter(le),m&&Ss(x,null,H,"mounted");},te);},K=(x,E,q,H,te)=>{if(q&&v(x,q),H)for(let se=0;se<H.length;se++)v(x,H[se]);if(te){let se=te.subTree;if(E===se||Bp(se.type)&&(se.ssContent===E||se.ssFallback===E)){const me=te.vnode;K(x,me,me.scopeId,me.slotScopeIds,te.parent);}}},de=(x,E,q,H,te,se,me,ie,le=0)=>{for(let ce=le;ce<x.length;ce++){const Ae=x[ce]=ie?is(x[ce]):_n(x[ce]);_(null,Ae,E,q,H,te,se,me,ie);}},be=(x,E,q,H,te,se,me)=>{const ie=E.el=x.el;let{patchFlag:le,dynamicChildren:ce,dirs:Ae}=E;le|=x.patchFlag&16;const W=x.props||rt,$e=E.props||rt;let m;if(q&&Es(q,!1),(m=$e.onVnodeBeforeUpdate)&&In(m,q,E,x),Ae&&Ss(E,x,q,"beforeUpdate"),q&&Es(q,!0),(W.innerHTML&&$e.innerHTML==null||W.textContent&&$e.textContent==null)&&d(ie,""),ce?_e(x.dynamicChildren,ce,ie,q,H,Aa(E,te),se):me||Ee(x,E,ie,null,q,H,Aa(E,te),se,!1),le>0){if(le&16)pe(ie,W,$e,q,te);else if(le&2&&W.class!==$e.class&&i(ie,"class",null,$e.class,te),le&4&&i(ie,"style",W.style,$e.style,te),le&8){const w=E.dynamicProps;for(let k=0;k<w.length;k++){const P=w[k],z=W[P],I=$e[P];(I!==z||P==="value")&&i(ie,P,z,I,te,q);}}le&1&&x.children!==E.children&&d(ie,E.children);}else !me&&ce==null&&pe(ie,W,$e,q,te);((m=$e.onVnodeUpdated)||Ae)&&en(()=>{m&&In(m,q,E,x),Ae&&Ss(E,x,q,"updated");},H);},_e=(x,E,q,H,te,se,me)=>{for(let ie=0;ie<E.length;ie++){const le=x[ie],ce=E[ie],Ae=le.el&&(le.type===De||!rs(le,ce)||le.shapeFlag&70)?h(le.el):q;_(le,ce,Ae,null,H,te,se,me,!0);}},pe=(x,E,q,H,te)=>{if(E!==q){if(E!==rt)for(const se in E)!Ko(se)&&!(se in q)&&i(x,se,E[se],null,te,H);for(const se in q){if(Ko(se))continue;const me=q[se],ie=E[se];me!==ie&&se!=="value"&&i(x,se,ie,me,te,H);}"value"in q&&i(x,"value",E.value,q.value,te);}},S=(x,E,q,H,te,se,me,ie,le)=>{const ce=E.el=x?x.el:a(""),Ae=E.anchor=x?x.anchor:a("");let{patchFlag:W,dynamicChildren:$e,slotScopeIds:m}=E;m&&(ie=ie?ie.concat(m):m),x==null?(s(ce,q,H),s(Ae,q,H),de(E.children||[],q,Ae,te,se,me,ie,le)):W>0&&W&64&&$e&&x.dynamicChildren?(_e(x.dynamicChildren,$e,q,te,se,me,ie),(E.key!=null||te&&E===te.subTree)&&Tp(x,E,!0)):Ee(x,E,q,Ae,te,se,me,ie,le);},ee=(x,E,q,H,te,se,me,ie,le)=>{E.slotScopeIds=ie,x==null?E.shapeFlag&512?te.ctx.activate(E,q,H,me,le):Z(E,q,H,te,se,me,le):xe(x,E,le);},Z=(x,E,q,H,te,se,me)=>{const ie=x.component=X1(x,H,te);if(pp(x)&&(ie.ctx.renderer=O),e0(ie,!1,me),ie.asyncDep){if(te&&te.registerDep(ie,ye,me),!x.el){const le=ie.subTree=ge(Hn);L(null,le,E,q);}}else ye(ie,x,E,q,te,se,me);},xe=(x,E,q)=>{const H=E.component=x.component;if(j1(x,E,q))if(H.asyncDep&&!H.asyncResolved){Pe(H,E,q);return}else H.next=E,H.update();else E.el=x.el,H.vnode=E;},ye=(x,E,q,H,te,se,me)=>{const ie=()=>{if(x.isMounted){let{next:W,bu:$e,u:m,parent:w,vnode:k}=x;{const J=Op(x);if(J){W&&(W.el=k.el,Pe(x,W,me)),J.asyncDep.then(()=>{x.isUnmounted||ie();});return}}let P=W,z;Es(x,!1),W?(W.el=k.el,Pe(x,W,me)):W=k,$e&&zi($e),(z=W.props&&W.props.onVnodeBeforeUpdate)&&In(z,w,W,k),Es(x,!0);const I=Pa(x),X=x.subTree;x.subTree=I,_(X,I,h(X.el),gt(X),x,te,se),W.el=I.el,P===null&&du(x,I.el),m&&en(m,te),(z=W.props&&W.props.onVnodeUpdated)&&en(()=>In(z,w,W,k),te);}else {let W;const{el:$e,props:m}=E,{bm:w,m:k,parent:P,root:z,type:I}=x,X=co(E);if(Es(x,!1),w&&zi(w),!X&&(W=m&&m.onVnodeBeforeMount)&&In(W,P,E),Es(x,!0),$e&&Ce){const J=()=>{x.subTree=Pa(x),Ce($e,x.subTree,x,te,null);};X&&I.__asyncHydrate?I.__asyncHydrate($e,x,J):J();}else {z.ce&&z.ce._injectChildStyle(I);const J=x.subTree=Pa(x);_(null,J,q,H,x,te,se),E.el=J.el;}if(k&&en(k,te),!X&&(W=m&&m.onVnodeMounted)){const J=E;en(()=>In(W,P,J),te);}(E.shapeFlag&256||P&&co(P.vnode)&&P.vnode.shapeFlag&256)&&x.a&&en(x.a,te),x.isMounted=!0,E=q=H=null;}};x.scope.on();const le=x.effect=new Vf(ie);x.scope.off();const ce=x.update=le.run.bind(le),Ae=x.job=le.runIfDirty.bind(le);Ae.i=x,Ae.id=x.uid,le.scheduler=()=>au(Ae),Es(x,!0),ce();},Pe=(x,E,q)=>{E.component=x;const H=x.vnode.props;x.vnode=E,x.next=null,k1(x,E.props,H,q),A1(x,E.children,q),xs(),vc(x),Cs();},Ee=(x,E,q,H,te,se,me,ie,le=!1)=>{const ce=x&&x.children,Ae=x?x.shapeFlag:0,W=E.children,{patchFlag:$e,shapeFlag:m}=E;if($e>0){if($e&128){Ze(ce,W,q,H,te,se,me,ie,le);return}else if($e&256){Ke(ce,W,q,H,te,se,me,ie,le);return}}m&8?(Ae&16&&lt(ce,te,se),W!==ce&&d(q,W)):Ae&16?m&16?Ze(ce,W,q,H,te,se,me,ie,le):lt(ce,te,se,!0):(Ae&8&&d(q,""),m&16&&de(W,q,H,te,se,me,ie,le));},Ke=(x,E,q,H,te,se,me,ie,le)=>{x=x||ro,E=E||ro;const ce=x.length,Ae=E.length,W=Math.min(ce,Ae);let $e;for($e=0;$e<W;$e++){const m=E[$e]=le?is(E[$e]):_n(E[$e]);_(x[$e],m,q,null,te,se,me,ie,le);}ce>Ae?lt(x,te,se,!0,!1,W):de(E,q,H,te,se,me,ie,le,W);},Ze=(x,E,q,H,te,se,me,ie,le)=>{let ce=0;const Ae=E.length;let W=x.length-1,$e=Ae-1;for(;ce<=W&&ce<=$e;){const m=x[ce],w=E[ce]=le?is(E[ce]):_n(E[ce]);if(rs(m,w))_(m,w,q,null,te,se,me,ie,le);else break;ce++;}for(;ce<=W&&ce<=$e;){const m=x[W],w=E[$e]=le?is(E[$e]):_n(E[$e]);if(rs(m,w))_(m,w,q,null,te,se,me,ie,le);else break;W--,$e--;}if(ce>W){if(ce<=$e){const m=$e+1,w=m<Ae?E[m].el:H;for(;ce<=$e;)_(null,E[ce]=le?is(E[ce]):_n(E[ce]),q,w,te,se,me,ie,le),ce++;}}else if(ce>$e)for(;ce<=W;)M(x[ce],te,se,!0),ce++;else {const m=ce,w=ce,k=new Map;for(ce=w;ce<=$e;ce++){const Me=E[ce]=le?is(E[ce]):_n(E[ce]);Me.key!=null&&k.set(Me.key,ce);}let P,z=0;const I=$e-w+1;let X=!1,J=0;const re=new Array(I);for(ce=0;ce<I;ce++)re[ce]=0;for(ce=m;ce<=W;ce++){const Me=x[ce];if(z>=I){M(Me,te,se,!0);continue}let Se;if(Me.key!=null)Se=k.get(Me.key);else for(P=w;P<=$e;P++)if(re[P-w]===0&&rs(Me,E[P])){Se=P;break}Se===void 0?M(Me,te,se,!0):(re[Se-w]=ce+1,Se>=J?J=Se:X=!0,_(Me,E[Se],q,null,te,se,me,ie,le),z++);}const Le=X?O1(re):ro;for(P=Le.length-1,ce=I-1;ce>=0;ce--){const Me=w+ce,Se=E[Me],We=Me+1<Ae?E[Me+1].el:H;re[ce]===0?_(null,Se,q,We,te,se,me,ie,le):X&&(P<0||ce!==Le[P]?ve(Se,q,We,2):P--);}}},ve=(x,E,q,H,te=null)=>{const{el:se,type:me,transition:ie,children:le,shapeFlag:ce}=x;if(ce&6){ve(x.component.subTree,E,q,H);return}if(ce&128){x.suspense.move(E,q,H);return}if(ce&64){me.move(x,E,q,O);return}if(me===De){s(se,E,q);for(let W=0;W<le.length;W++)ve(le[W],E,q,H);s(x.anchor,E,q);return}if(me===qi){D(x,E,q);return}if(H!==2&&ce&1&&ie)if(H===0)ie.beforeEnter(se),s(se,E,q),en(()=>ie.enter(se),te);else {const{leave:W,delayLeave:$e,afterLeave:m}=ie,w=()=>s(se,E,q),k=()=>{W(se,()=>{w(),m&&m();});};$e?$e(se,w,k):k();}else s(se,E,q);},M=(x,E,q,H=!1,te=!1)=>{const{type:se,props:me,ref:ie,children:le,dynamicChildren:ce,shapeFlag:Ae,patchFlag:W,dirs:$e,cacheIndex:m}=x;if(W===-2&&(te=!1),ie!=null&&nl(ie,null,q,x,!0),m!=null&&(E.renderCache[m]=void 0),Ae&256){E.ctx.deactivate(x);return}const w=Ae&1&&$e,k=!co(x);let P;if(k&&(P=me&&me.onVnodeBeforeUnmount)&&In(P,E,x),Ae&6)Ie(x.component,q,H);else {if(Ae&128){x.suspense.unmount(q,H);return}w&&Ss(x,null,E,"beforeUnmount"),Ae&64?x.type.remove(x,E,q,O,H):ce&&!ce.hasOnce&&(se!==De||W>0&&W&64)?lt(ce,E,q,!1,!0):(se===De&&W&384||!te&&Ae&16)&&lt(le,E,q),H&&Ne(x);}(k&&(P=me&&me.onVnodeUnmounted)||w)&&en(()=>{P&&In(P,E,x),w&&Ss(x,null,E,"unmounted");},q);},Ne=x=>{const{type:E,el:q,anchor:H,transition:te}=x;if(E===De){ft(q,H);return}if(E===qi){B(x);return}const se=()=>{o(q),te&&!te.persisted&&te.afterLeave&&te.afterLeave();};if(x.shapeFlag&1&&te&&!te.persisted){const{leave:me,delayLeave:ie}=te,le=()=>me(q,se);ie?ie(x.el,se,le):le();}else se();},ft=(x,E)=>{let q;for(;x!==E;)q=y(x),o(x),x=q;o(E);},Ie=(x,E,q)=>{const{bum:H,scope:te,job:se,subTree:me,um:ie,m:le,a:ce}=x;Ec(le),Ec(ce),H&&zi(H),te.stop(),se&&(se.flags|=8,M(me,x,E,q)),ie&&en(ie,E),en(()=>{x.isUnmounted=!0;},E),E&&E.pendingBranch&&!E.isUnmounted&&x.asyncDep&&!x.asyncResolved&&x.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve());},lt=(x,E,q,H=!1,te=!1,se=0)=>{for(let me=se;me<x.length;me++)M(x[me],E,q,H,te);},gt=x=>{if(x.shapeFlag&6)return gt(x.component.subTree);if(x.shapeFlag&128)return x.suspense.next();const E=y(x.anchor||x.el),q=E&&E[s1];return q?y(q):E};let Pt=!1;const Q=(x,E,q)=>{x==null?E._vnode&&M(E._vnode,null,null,!0):_(E._vnode||null,x,E,null,null,null,q),E._vnode=x,Pt||(Pt=!0,vc(),cp(),Pt=!1);},O={p:_,um:M,m:ve,r:Ne,mt:Z,mc:de,pc:Ee,pbc:_e,n:gt,o:e};let V,Ce;return {render:Q,hydrate:V,createApp:x1(Q,V)}}function Aa({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Es({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5);}function T1(e,t){return (!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Tp(e,t,n=!1){const s=e.children,o=t.children;if(Oe(s)&&Oe(o))for(let i=0;i<s.length;i++){const r=s[i];let a=o[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[i]=is(o[i]),a.el=r.el),!n&&a.patchFlag!==-2&&Tp(r,a)),a.type===Kr&&(a.el=r.el);}}function O1(e){const t=e.slice(),n=[0];let s,o,i,r,a;const l=e.length;for(s=0;s<l;s++){const u=e[s];if(u!==0){if(o=n[n.length-1],e[o]<u){t[s]=o,n.push(s);continue}for(i=0,r=n.length-1;i<r;)a=i+r>>1,e[n[a]]<u?i=a+1:r=a;u<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s);}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}function Op(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Op(t)}function Ec(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8;}const D1=Symbol.for("v-scx"),M1=()=>Yo(D1);function ht(e,t,n){return Dp(e,t,n)}function Dp(e,t,n=rt){const{immediate:s,deep:o,flush:i,once:r}=n,a=kt({},n),l=t&&s||!t&&i!=="post";let u;if(ui){if(i==="sync"){const v=M1();u=v.__watcherHandles||(v.__watcherHandles=[]);}else if(!l){const v=()=>{};return v.stop=Bn,v.resume=Bn,v.pause=Bn,v}}const d=Et;a.call=(v,b,_)=>jn(v,d,b,_);let h=!1;i==="post"?a.scheduler=v=>{en(v,d&&d.suspense);}:i!=="sync"&&(h=!0,a.scheduler=(v,b)=>{b?v():au(v);}),a.augmentJob=v=>{t&&(v.flags|=4),h&&(v.flags|=2,d&&(v.id=d.uid,v.i=d));};const y=Qv(e,t,a);return ui&&(u?u.push(y):l&&y()),y}function L1(e,t,n){const s=this.proxy,o=pt(e)?e.includes(".")?Mp(s,e):()=>s[e]:e.bind(s,s);let i;Fe(t)?i=t:(i=t.handler,n=t);const r=qs(this),a=Dp(o,i.bind(s),n);return r(),a}function Mp(e,t){const n=t.split(".");return ()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}const B1=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${mn(t)}Modifiers`]||e[`${_s(t)}Modifiers`];function R1(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||rt;let o=n;const i=t.startsWith("update:"),r=i&&B1(s,t.slice(7));r&&(r.trim&&(o=n.map(d=>pt(d)?d.trim():d)),r.number&&(o=n.map(ir)));let a,l=s[a=xa(t)]||s[a=xa(mn(t))];!l&&i&&(l=s[a=xa(_s(t))]),l&&jn(l,e,6,o);const u=s[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,jn(u,e,6,o);}}function Lp(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const i=e.emits;let r={},a=!1;if(!Fe(e)){const l=u=>{const d=Lp(u,t,!0);d&&(a=!0,kt(r,d));};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l);}return !i&&!a?(at(e)&&s.set(e,null),null):(Oe(i)?i.forEach(l=>r[l]=null):kt(r,i),at(e)&&s.set(e,r),r)}function Vr(e,t){return !e||!Rr(t)?!1:(t=t.slice(2).replace(/Once$/,""),tt(e,t[0].toLowerCase()+t.slice(1))||tt(e,_s(t))||tt(e,t))}function Pa(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[i],slots:r,attrs:a,emit:l,render:u,renderCache:d,props:h,data:y,setupState:v,ctx:b,inheritAttrs:_}=e,R=ur(e);let L,N;try{if(n.shapeFlag&4){const B=o||s,F=B;L=_n(u.call(F,B,d,h,v,y,b)),N=a;}else {const B=t;L=_n(B.length>1?B(h,{attrs:a,slots:r,emit:l}):B(h,null)),N=t.props?a:F1(a);}}catch(B){Qo.length=0,xi(B,e,1),L=ge(Hn);}let D=L;if(N&&_!==!1){const B=Object.keys(N),{shapeFlag:F}=D;B.length&&F&7&&(i&&B.some(Jl)&&(N=U1(N,i)),D=_o(D,N,!1,!0));}return n.dirs&&(D=_o(D,null,!1,!0),D.dirs=D.dirs?D.dirs.concat(n.dirs):n.dirs),n.transition&&lu(D,n.transition),L=D,ur(R),L}function N1(e,t=!0){let n;for(let s=0;s<e.length;s++){const o=e[s];if(vo(o)){if(o.type!==Hn||o.children==="v-if"){if(n)return;n=o;}}else return}return n}const F1=e=>{let t;for(const n in e)(n==="class"||n==="style"||Rr(n))&&((t||(t={}))[n]=e[n]);return t},U1=(e,t)=>{const n={};for(const s in e)(!Jl(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function j1(e,t,n){const{props:s,children:o,component:i}=e,{props:r,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return !0;if(n&&l>=0){if(l&1024)return !0;if(l&16)return s?Ac(s,r,u):!!r;if(l&8){const d=t.dynamicProps;for(let h=0;h<d.length;h++){const y=d[h];if(r[y]!==s[y]&&!Vr(u,y))return !0}}}else return (o||a)&&(!a||!a.$stable)?!0:s===r?!1:s?r?Ac(s,r,u):!0:!!r;return !1}function Ac(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return !0;for(let o=0;o<s.length;o++){const i=s[o];if(t[i]!==e[i]&&!Vr(n,i))return !0}return !1}function du({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Bp=e=>e.__isSuspense;let al=0;const H1={name:"Suspense",__isSuspense:!0,process(e,t,n,s,o,i,r,a,l,u){if(e==null)z1(t,n,s,o,i,r,a,l,u);else {if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}q1(e,t,n,s,o,r,a,l,u);}},hydrate:V1,normalize:K1},Rp=H1;function li(e,t){const n=e.props&&e.props[t];Fe(n)&&n();}function z1(e,t,n,s,o,i,r,a,l){const{p:u,o:{createElement:d}}=l,h=d("div"),y=e.suspense=Np(e,o,s,t,h,n,i,r,a,l);u(null,y.pendingBranch=e.ssContent,h,null,s,y,i,r),y.deps>0?(li(e,"onPending"),li(e,"onFallback"),u(null,e.ssFallback,t,n,s,null,i,r),po(y,e.ssFallback)):y.resolve(!1,!0);}function q1(e,t,n,s,o,i,r,a,{p:l,um:u,o:{createElement:d}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const y=t.ssContent,v=t.ssFallback,{activeBranch:b,pendingBranch:_,isInFallback:R,isHydrating:L}=h;if(_)h.pendingBranch=y,rs(y,_)?(l(_,y,h.hiddenContainer,null,o,h,i,r,a),h.deps<=0?h.resolve():R&&(L||(l(b,v,n,s,o,null,i,r,a),po(h,v)))):(h.pendingId=al++,L?(h.isHydrating=!1,h.activeBranch=_):u(_,o,h),h.deps=0,h.effects.length=0,h.hiddenContainer=d("div"),R?(l(null,y,h.hiddenContainer,null,o,h,i,r,a),h.deps<=0?h.resolve():(l(b,v,n,s,o,null,i,r,a),po(h,v))):b&&rs(y,b)?(l(b,y,n,s,o,h,i,r,a),h.resolve(!0)):(l(null,y,h.hiddenContainer,null,o,h,i,r,a),h.deps<=0&&h.resolve()));else if(b&&rs(y,b))l(b,y,n,s,o,h,i,r,a),po(h,y);else if(li(t,"onPending"),h.pendingBranch=y,y.shapeFlag&512?h.pendingId=y.component.suspenseId:h.pendingId=al++,l(null,y,h.hiddenContainer,null,o,h,i,r,a),h.deps<=0)h.resolve();else {const{timeout:N,pendingId:D}=h;N>0?setTimeout(()=>{h.pendingId===D&&h.fallback(v);},N):N===0&&h.fallback(v);}}function Np(e,t,n,s,o,i,r,a,l,u,d=!1){const{p:h,m:y,um:v,n:b,o:{parentNode:_,remove:R}}=u;let L;const N=G1(e);N&&t&&t.pendingBranch&&(L=t.pendingId,t.deps++);const D=e.props?uv(e.props.timeout):void 0,B=i,F={vnode:e,parent:t,parentComponent:n,namespace:r,container:s,hiddenContainer:o,deps:0,pendingId:al++,timeout:typeof D=="number"?D:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(j=!1,K=!1){const{vnode:de,activeBranch:be,pendingBranch:_e,pendingId:pe,effects:S,parentComponent:ee,container:Z}=F;let xe=!1;F.isHydrating?F.isHydrating=!1:j||(xe=be&&_e.transition&&_e.transition.mode==="out-in",xe&&(be.transition.afterLeave=()=>{pe===F.pendingId&&(y(_e,Z,i===B?b(be):i,0),tl(S));}),be&&(_(be.el)===Z&&(i=b(be)),v(be,ee,F,!0)),xe||y(_e,Z,i,0)),po(F,_e),F.pendingBranch=null,F.isInFallback=!1;let ye=F.parent,Pe=!1;for(;ye;){if(ye.pendingBranch){ye.effects.push(...S),Pe=!0;break}ye=ye.parent;}!Pe&&!xe&&tl(S),F.effects=[],N&&t&&t.pendingBranch&&L===t.pendingId&&(t.deps--,t.deps===0&&!K&&t.resolve()),li(de,"onResolve");},fallback(j){if(!F.pendingBranch)return;const{vnode:K,activeBranch:de,parentComponent:be,container:_e,namespace:pe}=F;li(K,"onFallback");const S=b(de),ee=()=>{F.isInFallback&&(h(null,j,_e,S,be,null,pe,a,l),po(F,j));},Z=j.transition&&j.transition.mode==="out-in";Z&&(de.transition.afterLeave=ee),F.isInFallback=!0,v(de,be,null,!0),Z||ee();},move(j,K,de){F.activeBranch&&y(F.activeBranch,j,K,de),F.container=j;},next(){return F.activeBranch&&b(F.activeBranch)},registerDep(j,K,de){const be=!!F.pendingBranch;be&&F.deps++;const _e=j.vnode.el;j.asyncDep.catch(pe=>{xi(pe,j,0);}).then(pe=>{if(j.isUnmounted||F.isUnmounted||F.pendingId!==j.suspenseId)return;j.asyncResolved=!0;const{vnode:S}=j;cl(j,pe,!1),_e&&(S.el=_e);const ee=!_e&&j.subTree.el;K(j,S,_(_e||j.subTree.el),_e?null:b(j.subTree),F,r,de),ee&&R(ee),du(j,S.el),be&&--F.deps===0&&F.resolve();});},unmount(j,K){F.isUnmounted=!0,F.activeBranch&&v(F.activeBranch,n,j,K),F.pendingBranch&&v(F.pendingBranch,n,j,K);}};return F}function V1(e,t,n,s,o,i,r,a,l){const u=t.suspense=Np(t,s,n,e.parentNode,document.createElement("div"),null,o,i,r,a,!0),d=l(e,u.pendingBranch=t.ssContent,n,u,i,r);return u.deps===0&&u.resolve(!1,!0),d}function K1(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=Pc(s?n.default:n),e.ssFallback=s?Pc(n.fallback):ge(Hn);}function Pc(e){let t;if(Fe(e)){const n=bo&&e._c;n&&(e._d=!1,A()),e=e(),n&&(e._d=!0,t=Yt,Fp());}return Oe(e)&&(e=N1(e)),e=_n(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function W1(e,t){t&&t.pendingBranch?Oe(e)?t.effects.push(...e):t.effects.push(e):tl(e);}function po(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;n.el=o,s&&s.subTree===n&&(s.vnode.el=o,du(s,o));}function G1(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const De=Symbol.for("v-fgt"),Kr=Symbol.for("v-txt"),Hn=Symbol.for("v-cmt"),qi=Symbol.for("v-stc"),Qo=[];let Yt=null;function A(e=!1){Qo.push(Yt=e?null:[]);}function Fp(){Qo.pop(),Yt=Qo[Qo.length-1]||null;}let bo=1;function Ic(e){bo+=e,e<0&&Yt&&(Yt.hasOnce=!0);}function Up(e){return e.dynamicChildren=bo>0?Yt||ro:null,Fp(),bo>0&&Yt&&Yt.push(e),e}function T(e,t,n,s,o,i){return Up(c(e,t,n,s,o,i,!0))}function ot(e,t,n,s,o){return Up(ge(e,t,n,s,o,!0))}function vo(e){return e?e.__v_isVNode===!0:!1}function rs(e,t){return e.type===t.type&&e.key===t.key}const jp=({key:e})=>e??null,Vi=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?pt(e)||Ct(e)||Fe(e)?{i:xt,r:e,k:t,f:!!n}:e:null);function c(e,t=null,n=null,s=0,o=null,i=e===De?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&jp(t),ref:t&&Vi(t),scopeId:zr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:xt};return a?(fu(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=pt(n)?8:16),bo>0&&!r&&Yt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Yt.push(l),l}const ge=J1;function J1(e,t=null,n=null,s=0,o=null,i=!1){if((!e||e===yp)&&(e=Hn),vo(e)){const a=_o(e,t,!0);return n&&fu(a,n),bo>0&&!i&&Yt&&(a.shapeFlag&6?Yt[Yt.indexOf(e)]=a:Yt.push(a)),a.patchFlag=-2,a}if(i0(e)&&(e=e.__vccOpts),t){t=Hp(t);let{class:a,style:l}=t;a&&!pt(a)&&(t.class=He(a)),at(l)&&(ru(l)&&!Oe(l)&&(l=kt({},l)),t.style=Rn(l));}const r=pt(e)?1:Bp(e)?128:o1(e)?64:at(e)?4:Fe(e)?2:0;return c(e,t,n,s,o,r,i,!0)}function Hp(e){return e?ru(e)||kp(e)?kt({},e):e:null}function _o(e,t,n=!1,s=!1){const{props:o,ref:i,patchFlag:r,children:a,transition:l}=e,u=t?pu(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&jp(u),ref:t&&t.ref?n&&i?Oe(i)?i.concat(Vi(t)):[i,Vi(t)]:Vi(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==De?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&_o(e.ssContent),ssFallback:e.ssFallback&&_o(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&lu(d,l.clone(d)),d}function U(e=" ",t=0){return ge(Kr,null,e,t)}function zp(e,t){const n=ge(qi,null,e);return n.staticCount=t,n}function we(e="",t=!1){return t?(A(),ot(Hn,null,e)):ge(Hn,null,e)}function _n(e){return e==null||typeof e=="boolean"?ge(Hn):Oe(e)?ge(De,null,e.slice()):vo(e)?is(e):ge(Kr,null,String(e))}function is(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:_o(e)}function fu(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(Oe(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),fu(e,o()),o._c&&(o._d=!0));return}else {n=32;const o=t._;!o&&!kp(t)?t._ctx=xt:o===3&&xt&&(xt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024));}else Fe(t)?(t={default:t,_ctx:xt},n=32):(t=String(t),s&64?(n=16,t=[U(t)]):n=8);e.children=t,e.shapeFlag|=n;}function pu(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=He([t.class,s.class]));else if(o==="style")t.style=Rn([t.style,s.style]);else if(Rr(o)){const i=t[o],r=s[o];r&&i!==r&&!(Oe(i)&&i.includes(r))&&(t[o]=i?[].concat(i,r):r);}else o!==""&&(t[o]=s[o]);}return t}function In(e,t,n,s=null){jn(e,t,7,[n,s]);}const Y1=_p();let Q1=0;function X1(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Y1,i={uid:Q1++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new wv(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Sp(s,o),emitsOptions:Lp(s,o),emit:null,emitted:null,propsDefaults:rt,inheritAttrs:s.inheritAttrs,ctx:rt,data:rt,props:rt,attrs:rt,slots:rt,refs:rt,setupState:rt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=R1.bind(null,i),e.ce&&e.ce(i),i}let Et=null;const Z1=()=>Et||xt;let dr,ll;{const e=Ur(),t=(n,s)=>{let o;return (o=e[n])||(o=e[n]=[]),o.push(s),i=>{o.length>1?o.forEach(r=>r(i)):o[0](i);}};dr=t("__VUE_INSTANCE_SETTERS__",n=>Et=n),ll=t("__VUE_SSR_SETTERS__",n=>ui=n);}const qs=e=>{const t=Et;return dr(e),e.scope.on(),()=>{e.scope.off(),dr(t);}},ul=()=>{Et&&Et.scope.off(),dr(null);};function qp(e){return e.vnode.shapeFlag&4}let ui=!1;function e0(e,t=!1,n=!1){t&&ll(t);const{props:s,children:o}=e.vnode,i=qp(e);C1(e,s,i,t),E1(e,o,n);const r=i?t0(e,t):void 0;return t&&ll(!1),r}function t0(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,m1);const{setup:s}=n;if(s){xs();const o=e.setupContext=s.length>1?s0(e):null,i=qs(e),r=_i(s,e,0,[e.props,o]),a=Ql(r);if(Cs(),i(),(a||e.sp)&&!co(e)&&fp(e),a){if(r.then(ul,ul),t)return r.then(l=>{cl(e,l,t);}).catch(l=>{xi(l,e,0);});e.asyncDep=r;}else cl(e,r,t);}else Vp(e,t);}function cl(e,t,n){Fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:at(t)&&(e.setupState=rp(t)),Vp(e,n);}let Tc;function Vp(e,t,n){const s=e.type;if(!e.render){if(!t&&Tc&&!s.render){const o=s.template||uu(e).template;if(o){const{isCustomElement:i,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,u=kt(kt({isCustomElement:i,delimiters:a},r),l);s.render=Tc(o,u);}}e.render=s.render||Bn;}{const o=qs(e);xs();try{g1(e);}finally{Cs(),o();}}}const n0={get(e,t){return Tt(e,"get",""),e[t]}};function s0(e){const t=n=>{e.exposed=n||{};};return {attrs:new Proxy(e.attrs,n0),slots:e.slots,emit:e.emit,expose:t}}function Wr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(rp(Uv(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Jo)return Jo[n](e)},has(t,n){return n in t||n in Jo}})):e.proxy}function o0(e,t=!0){return Fe(e)?e.displayName||e.name:e.name||t&&e.__name}function i0(e){return Fe(e)&&"__vccOpts"in e}const it=(e,t)=>Jv(e,t,ui);function r0(e,t,n){const s=arguments.length;return s===2?at(t)&&!Oe(t)?vo(t)?ge(e,null,[t]):ge(e,t):ge(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&vo(n)&&(n=[n]),ge(e,t,n))}const a0="3.5.12";/**
  * @vue/runtime-dom v3.5.12
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **/let dl;const Oc=typeof window<"u"&&window.trustedTypes;if(Oc)try{dl=Oc.createPolicy("vue",{createHTML:e=>e});}catch{}const Kp=dl?e=>dl.createHTML(e):e=>e,l0="http://www.w3.org/2000/svg",u0="http://www.w3.org/1998/Math/MathML",Kn=typeof document<"u"?document:null,Dc=Kn&&Kn.createElement("template"),c0={insert:(e,t,n)=>{t.insertBefore(e,n||null);},remove:e=>{const t=e.parentNode;t&&t.removeChild(e);},createElement:(e,t,n,s)=>{const o=t==="svg"?Kn.createElementNS(l0,e):t==="mathml"?Kn.createElementNS(u0,e):n?Kn.createElement(e,{is:n}):Kn.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>Kn.createTextNode(e),createComment:e=>Kn.createComment(e),setText:(e,t)=>{e.nodeValue=t;},setElementText:(e,t)=>{e.textContent=t;},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Kn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"");},insertStaticContent(e,t,n,s,o,i){const r=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else {Dc.innerHTML=Kp(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const a=Dc.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l);}t.insertBefore(a,n);}return [r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},d0=Symbol("_vtc");function f0(e,t,n){const s=e[d0];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t;}const fr=Symbol("_vod"),Wp=Symbol("_vsh"),Nt={beforeMount(e,{value:t},{transition:n}){e[fr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Fo(e,t);},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e);},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Fo(e,!0),s.enter(e)):s.leave(e,()=>{Fo(e,!1);}):Fo(e,t));},beforeUnmount(e,{value:t}){Fo(e,t);}};function Fo(e,t){e.style.display=t?e[fr]:"none",e[Wp]=!t;}const p0=Symbol(""),h0=/(^|;)\s*display\s*:/;function m0(e,t,n){const s=e.style,o=pt(n);let i=!1;if(n&&!o){if(t)if(pt(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();n[a]==null&&Ki(s,a,"");}else for(const r in t)n[r]==null&&Ki(s,r,"");for(const r in n)r==="display"&&(i=!0),Ki(s,r,n[r]);}else if(o){if(t!==n){const r=s[p0];r&&(n+=";"+r),s.cssText=n,i=h0.test(n);}}else t&&e.removeAttribute("style");fr in e&&(e[fr]=i?s.display:"",e[Wp]&&(s.display="none"));}const Mc=/\s*!important$/;function Ki(e,t,n){if(Oe(n))n.forEach(s=>Ki(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else {const s=g0(e,t);Mc.test(n)?e.setProperty(_s(s),n.replace(Mc,""),"important"):e[s]=n;}}const Lc=["Webkit","Moz","ms"],Ia={};function g0(e,t){const n=Ia[t];if(n)return n;let s=mn(t);if(s!=="filter"&&s in e)return Ia[t]=s;s=Fr(s);for(let o=0;o<Lc.length;o++){const i=Lc[o]+s;if(i in e)return Ia[t]=i}return t}const Bc="http://www.w3.org/1999/xlink";function Rc(e,t,n,s,o,i=gv(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Bc,t.slice(6,t.length)):e.setAttributeNS(Bc,t,n):n==null||i&&!Hf(n)?e.removeAttribute(t):e.setAttribute(t,i?"":En(n)?String(n):n);}function Nc(e,t,n,s,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Kp(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let r=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Hf(n):n==null&&a==="string"?(n="",r=!0):a==="number"&&(n=0,r=!0);}try{e[t]=n;}catch{}r&&e.removeAttribute(o||t);}function Jn(e,t,n,s){e.addEventListener(t,n,s);}function y0(e,t,n,s){e.removeEventListener(t,n,s);}const Fc=Symbol("_vei");function w0(e,t,n,s,o=null){const i=e[Fc]||(e[Fc]={}),r=i[t];if(s&&r)r.value=s;else {const[a,l]=b0(t);if(s){const u=i[t]=x0(s,o);Jn(e,a,u,l);}else r&&(y0(e,a,r,l),i[t]=void 0);}}const Uc=/(?:Once|Passive|Capture)$/;function b0(e){let t;if(Uc.test(e)){t={};let s;for(;s=e.match(Uc);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0;}return [e[2]===":"?e.slice(3):_s(e.slice(2)),t]}let Ta=0;const v0=Promise.resolve(),_0=()=>Ta||(v0.then(()=>Ta=0),Ta=Date.now());function x0(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;jn(C0(s,n.value),t,5,[s]);};return n.value=e,n.attached=_0(),n}function C0(e,t){if(Oe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0;},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const jc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,k0=(e,t,n,s,o,i)=>{const r=o==="svg";t==="class"?f0(e,s,r):t==="style"?m0(e,n,s):Rr(t)?Jl(t)||w0(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$0(e,t,s,r))?(Nc(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Rc(e,t,s,r,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!pt(s))?Nc(e,mn(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Rc(e,t,s,r));};function $0(e,t,n,s){if(s)return !!(t==="innerHTML"||t==="textContent"||t in e&&jc(t)&&Fe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return !1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return !1}return jc(t)&&pt(n)?!1:t in e}const ps=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Oe(t)?n=>zi(t,n):t};function S0(e){e.target.composing=!0;}function Hc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")));}const dn=Symbol("_assign"),Ye={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e[dn]=ps(o);const i=s||o.props&&o.props.type==="number";Jn(e,t?"change":"input",r=>{if(r.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=ir(a)),e[dn](a);}),n&&Jn(e,"change",()=>{e.value=e.value.trim();}),t||(Jn(e,"compositionstart",S0),Jn(e,"compositionend",Hc),Jn(e,"change",Hc));},mounted(e,{value:t}){e.value=t??"";},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:o,number:i}},r){if(e[dn]=ps(r),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?ir(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||o&&e.value.trim()===l)||(e.value=l));}},Ve={deep:!0,created(e,t,n){e[dn]=ps(n),Jn(e,"change",()=>{const s=e._modelValue,o=xo(e),i=e.checked,r=e[dn];if(Oe(s)){const a=Zl(s,o),l=a!==-1;if(i&&!l)r(s.concat(o));else if(!i&&l){const u=[...s];u.splice(a,1),r(u);}}else if(Eo(s)){const a=new Set(s);i?a.add(o):a.delete(o),r(a);}else r(Jp(e,i));});},mounted:zc,beforeUpdate(e,t,n){e[dn]=ps(n),zc(e,t,n);}};function zc(e,{value:t,oldValue:n},s){e._modelValue=t;let o;if(Oe(t))o=Zl(t,s.props.value)>-1;else if(Eo(t))o=t.has(s.props.value);else {if(t===n)return;o=Us(t,Jp(e,!0));}e.checked!==o&&(e.checked=o);}const Gp={created(e,{value:t},n){e.checked=Us(t,n.props.value),e[dn]=ps(n),Jn(e,"change",()=>{e[dn](xo(e));});},beforeUpdate(e,{value:t,oldValue:n},s){e[dn]=ps(s),t!==n&&(e.checked=Us(t,s.props.value));}},gn={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const o=Eo(t);Jn(e,"change",()=>{const i=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?ir(xo(r)):xo(r));e[dn](e.multiple?o?new Set(i):i:i[0]),e._assigning=!0,Hs(()=>{e._assigning=!1;});}),e[dn]=ps(s);},mounted(e,{value:t}){qc(e,t);},beforeUpdate(e,t,n){e[dn]=ps(n);},updated(e,{value:t}){e._assigning||qc(e,t);}};function qc(e,t){const n=e.multiple,s=Oe(t);if(!(n&&!s&&!Eo(t))){for(let o=0,i=e.options.length;o<i;o++){const r=e.options[o],a=xo(r);if(n)if(s){const l=typeof a;l==="string"||l==="number"?r.selected=t.some(u=>String(u)===String(a)):r.selected=Zl(t,a)>-1;}else r.selected=t.has(a);else if(Us(xo(r),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1);}}function xo(e){return "_value"in e?e._value:e.value}function Jp(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const E0={created(e,t,n){Di(e,t,n,null,"created");},mounted(e,t,n){Di(e,t,n,null,"mounted");},beforeUpdate(e,t,n,s){Di(e,t,n,s,"beforeUpdate");},updated(e,t,n,s){Di(e,t,n,s,"updated");}};function A0(e,t){switch(e){case"SELECT":return gn;case"TEXTAREA":return Ye;default:switch(t){case"checkbox":return Ve;case"radio":return Gp;default:return Ye}}}function Di(e,t,n,s,o){const r=A0(e.tagName,n.props&&n.props.type)[o];r&&r(e,t,n,s);}const P0=["ctrl","shift","alt","meta"],I0={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>P0.some(n=>e[`${n}Key`]&&!t.includes(n))},ln=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(o,...i)=>{for(let r=0;r<t.length;r++){const a=I0[t[r]];if(a&&a(o,t))return}return e(o,...i)})},T0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Yp=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=o=>{if(!("key"in o))return;const i=_s(o.key);if(t.some(r=>r===i||T0[r]===i))return e(o)})},O0=kt({patchProp:k0},c0);let Vc;function D0(){return Vc||(Vc=P1(O0))}const qn=(...e)=>{const t=D0().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=L0(s);if(!o)return;const i=t._component;!Fe(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,M0(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};function M0(e){if(e instanceof SVGElement)return "svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return "mathml"}function L0(e){return pt(e)?document.querySelector(e):e}const B0={key:0,class:"ce-custom-url-help"},R0={class:"ce-custom-url-help-body"},N0={key:0},F0={class:"pure-table pure-table-bordered"},U0=["onClick"],j0=Be({__name:"CustomUrlHelp",setup(e){const t=oe(Fb),n=oe(!1);qt(async()=>{window.addEventListener("message",o=>{const{event:i}=o.data;i==="customUrlHelp"&&(n.value=!0);},!1);});async function s(o){Ht(o.key),ue({text:"已复制到剪贴板",icon:"success",timer:1e3});}return (o,i)=>n.value?(A(),T("div",B0,[c("div",R0,[c("h1",null,[i[1]||(i[1]=U(" 自定义菜单变量说明 ")),c("a",{href:"javascript:void(0)",onClick:i[0]||(i[0]=r=>n.value=!1)},"关闭")]),i[3]||(i[3]=c("hr",null,null,-1)),(A(!0),T(De,null,Ge(t.value,(r,a)=>(A(),T("div",{key:a},[c("h2",null,G(r.label),1),r.memo?(A(),T("p",N0,G(r.memo),1)):we("",!0),c("table",F0,[i[2]||(i[2]=c("thead",null,[c("tr",null,[c("th",{width:"50%"},"变量"),c("th",{width:"50%"},"说明")])],-1)),c("tbody",null,[(A(!0),T(De,null,Ge(r.items,(l,u)=>(A(),T("tr",{key:u},[c("td",null,[c("span",{class:"ce-variable",onClick:d=>s(l)},G(l.key),9,U0)]),c("td",null,G(l.label),1)]))),128))])])]))),128))])])):we("",!0)}}),je=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},H0=je(j0,[["__file","CustomUrlHelp.vue"]]),Qp=yt.list;function z0(e){return {sizeSorter:!0,sizeSorterDirAttrInterval:100,showSha1:!1,showFolderSizeButton:!0,showOpenDirContextMenu:!0,hoverShowDirContextMenu:!1,showCopyButtonOnPathBar:!1,showGotoButtonOnPathBar:!1,noUpdateDirAfterRename:!1,noReloadAfterMove:!1,afterCreateDirBehavior:"goto",fileSelectorDefaultView:"_",followHistoryState:!1,showOnlyFileFilter:!1,...e}}async function Gr(){const e=z0(),t=await dt.get(Qp,e);return {...e,...t}}async function q0(e){await dt.set(Qp,e);}var kn=(e=>(e[e.asc=0]="asc",e[e.desc=1]="desc",e))(kn||{});async function V0(e,t,n){if(!e.showSha1||!n.hash)return;t.addClass("ce-show-sha1");const s=t.find(".file-name"),o=document.createElement("span");o.classList.add("ce-file-sha1","ce-inj"),o.title="文件SHA1,点击复制",o.textContent=n.hash,o.addEventListener("click",async i=>{i.preventDefault(),i.stopPropagation(),Ht(n.hash),ue({title:"复制SHA1",text:"已复制文件SHA1",icon:"success",timer:1500});}),s.append(o);}async function K0(e,t,n){if(!e.showFolderSizeButton||!n.isDir)return;const s=t.find(".file-size"),o=document.createElement("span");o.classList.add("ce-btn-folder-size","ce-inj"),o.title="点击获取该文件夹大小",o.textContent="大小",o.addEventListener("click",async i=>{i.preventDefault(),i.stopPropagation();const r=await At(n.id);s.find("span:eq(0)").text(r.size),t.addClass("ce-size-got"),ue({title:"获取大小",text:"已获取文件夹大小",icon:"success",timer:1500});}),s.append(o);}async function W0(e){if(!e.sizeSorter)return;console.log("renderHeaderShowSubFolderSize");const t=document.querySelector(".header-size");if(!t||t.classList.contains("ce-injected"))return;const n=t,s=Qt(`
    <a class="btn-sort ce-size-sort" title="显示当前目录下已加载的子文件夹的大小,然后按大小排序">
      <span>排序</span>
      <i icon_rel="file_size" class="icon-sort-asc"></i>
      <i icon_rel="file_size" class="icon-sort-desc"></i>
    </a>
  `);s.addEventListener("click",async o=>{if(o.preventDefault(),o.stopPropagation(),!s.classList.contains("el-size-sort-ing"))try{s.classList.add("ce-size-sort-ing");let i=kn.desc;s.classList.contains("by-desc")?i=kn.asc:i=kn.desc;const r=await jt(!1);await pr(r,i,!1,!1),i===kn.asc?(s.classList.remove("by-desc"),s.classList.add("by-asc")):(s.classList.remove("by-asc"),s.classList.add("by-desc"));}catch(i){console.error(i);}finally{s.classList.remove("ce-size-sort-ing");}}),n.appendChild(s),n.classList.add("ce-injected");}async function G0(e,t,n=!1){await Gr();const s=await jt(!1),o=await $o(),i=await zn(!1);console.log("[items]",i),ue({html:"正在获取子文件夹大小...",icon:"info",position:"top-end",timer:0}),he.showLoading();for(let r=0;r<i.length;r++){const a=i[r];if(!a.isDir)continue;const l=o.find(`li[cate_id="${a.id}"]`);if(!l.length)continue;const u=l.find(".file-size span:eq(0)");if(u.text()!==""&&!n)continue;const d=await At(a.id);he.update({html:`[${r+1} / ${i.length}] 正在获取子文件夹大小:${a.name}`}),u.text(d.size),l.addClass("ce-size-got");}return he.hideLoading(),e&&await J0(s),s}async function pr(e,t,n,s){const o=await $o();o.find('li[file_type="0"]:not(.ce-size-got)').length>0&&await G0(n);const r=o.find("ul"),a=r.children("li").toArray();a.sort(function(u,d){const h=$(u),y=$(d),v=cc(h.find(".file-size span:eq(0)").text()),b=cc(y.find(".file-size span:eq(0)").text());return t===kn.asc?v-b:b-v});const l=$("<ul></ul>");$.each(a,function(u,d){l.append(d);}),r.replaceWith(l),n?he.update({title:"排序完成",html:`已完成排序: ${t===kn.asc?"小 > 大":"大 > 小"}`,icon:"success"}):ue({html:`已完成排序: ${t===kn.asc?"小 > 大":"大 > 小"}`,icon:"success",timer:1500,position:"top-end"});}async function J0(e){he.fire({toast:!0,title:"获取子文件夹大小",html:"获取子文件夹大小完成",icon:"success",showConfirmButton:!0,confirmButtonText:"大 > 小",confirmButtonColor:"#3085d6",showDenyButton:!0,denyButtonText:"小 > 大",denyButtonColor:"#d33",position:"top-end",showCloseButton:!0,closeButtonAriaLabel:"关闭",preConfirm:async()=>(console.log("preConfirm"),pr(e,kn.desc,!0),!1),preDeny:async()=>(console.log("preDeny"),pr(e,kn.asc,!0),!1)});}async function Y0(){await fl();const e=await $t("#js_data_list");Q0(),new MutationObserver(async([n])=>{n.type==="childList"&&(window.postMessage({event:mt.listRendered}),await fl());}).observe(e,{childList:!0});}async function Q0(){if(window.top===window.self)return;const e=document.querySelector("#js_pagination_box");if(!e){console.warn("[list.handleLoadAll] 未找到「#js_pagination_box」元素");return}function t(n){document.querySelector("#js_data_list .list-contents > ul > li")&&n(!0);}e.addEventListener("click",async n=>{n.preventDefault(),n.stopPropagation();const s=n.target;let o=!1;if((s.getAttribute("menu")==="load_all_file"||s.closest('[menu="load_all_file"]'))&&(o=!0),!o)return;console.log("[list.handleLoadAll] 点击了「加载全部」按钮"),await ys(t,500,3e5);const i=document.querySelector("#js_data_list .list-contents > ul");i==null||i.removeAttribute("ce-done2");const r=document.querySelector("#js_data_list");r&&r.querySelectorAll(".list-contents > ul:not([ce-done2]) > li").length&&(i==null||i.setAttribute("ce-done2",""),await fl());});}async function fl(){const e=await Gr();W0(e),Z0(e);const t=await wf(!1);for(let n=0;n<t.length;n++){const s=t.eq(n),o=await An(s);await X0(e,s,o);}}async function X0(e,t,n){await V0(e,t,n),await K0(e,t,n);}async function Z0(e){if(!e.showOpenDirContextMenu||await jt(!1)===""||vs())return;console.log("renderHeaderOpenDirContextMenu");const n=document.querySelector(".header-name");if(!n||n.classList.contains("ce-injected"))return;const s=n,o=document.createElement("a");o.classList.add("ce-open-dir-context-menu"),o.title="打开当前目录的功能菜单",o.innerHTML="<span>目录功能菜单</span>";let i;const r=async a=>{console.log(a.clientX,a.clientY),i&&clearTimeout(i),a.preventDefault(),a.stopPropagation();try{const l=pn(),u=await jt(!1),d=o.getBoundingClientRect();l.Core.FileMenu.FileRight("1",u,!1,d.x,d.y+8,void 0,!1);}catch(l){console.error(l);}};o.addEventListener("click",r),e.hoverShowDirContextMenu&&(o.addEventListener("mouseenter",async a=>{i=setTimeout(async()=>{await r(a);},300);}),o.addEventListener("mouseleave",()=>{i&&clearTimeout(i);})),s.appendChild(o),s.classList.add("ce-injected");}async function Xp(e,t,n){n.stopPropagation(),n.preventDefault();try{const s=await ws(!1,1e3);if(!s)return;const o=await An(s),i=await ko(),r=await si(o,e,i);if(r.includes("v.anxia.com")){const l=(await zn(!1)).find(u=>u.playDuration&&u.playDuration>0);Of(o.id,l);return}if(console.log("[play url]",r),!r)throw new Error("无法获取有效的播放链接!");window.open(r,"_blank","noopener noreferrer");}catch(s){console.error(s),ue({title:"播放失败",text:s.toString(),icon:"error"});}}async function e_(e,t){const n=[];for(const s of t){const o=kr(e,{key:`_ce_p_${s.key}`,label:s.label,icon:s.icon,title:s.memo,onClick:async(i,r)=>{Xp(s,i,r);}});n.push(o);}return n}async function t_(){const e=await hn(),t=await Vl(e);return new Xt({key:"_play_with_x",label:t.defaultPlayer.label,icon:t.noRealDefault?"icon-operate ifo-video-play":t.defaultPlayer.icon,title:t.defaultPlayer.memo,onClick:async(n,s)=>{console.log("[dirContextMenuPlayAllWithX] me",n),!t.noRealDefault&&Xp(t.defaultPlayer,n,s);},subItems:[...await e_(Yb,t.customUrlItems)]})}async function n_(){return new Xt({key:"_rename_dir",label:"重命名文件夹",icon:"icon-operate ifo-rename",title:'重命名当前目录,支持"高级模式"',onClick:async(e,t)=>{await e.closeMenu();const n=await ws();n&&unsafeWindow.Core.Dir.Rename("1",n.attr("cate_id"),n.attr("title"));}})}async function s_(){return new Xt({key:"_dc_view_in_clouddrive",label:"在CloudDrive中查看",icon:"icon-operate ifo-exportdir",title:"在CloudDrive2 Web页面中查看",onClick:async(e,t)=>{t.stopPropagation(),t.preventDefault(),await e.closeMenu();const n=await jt(!1);if(!n||n==="0"){await or({id:"0",name:"根目录",isDir:!0});return}const s=await ws(!1,1e3);if(!s)return;const o=await An(s);await or(o);}})}async function o_(){return new Xt({key:"_move_dir",label:"移动文件夹",icon:"icon-operate ifo-move",title:"移动当前文件夹到其他位置",onClick:async(e,t)=>{await e.closeMenu();const n=await ws();n&&await Hl(n,"move");}})}async function i_(){return new Xt({key:"_del_dir",label:"删除文件夹",icon:"icon-operate ifo-remove",title:"删除当前文件夹",onClick:async(e,t)=>{await e.closeMenu();const n=await ws();if(!n)return;const s=await bi();unsafeWindow.Core.FileAPI.DeleteFile([n],o=>{n.remove(),s.find("#js_top_header_file_path_box .top-file-path > .file-path").children(":last").prev()[0].click();},!0);}})}async function r_(){return new Xt({key:"_copy_dir",label:"复制文件夹",icon:"icon-operate ifo-copy",title:"复制当前文件夹",onClick:async(e,t)=>{await e.closeMenu();const n=await ws();n&&await Hl(n,"set_copy");}})}async function a_(){return new Xt({key:"_copy_dir_to",label:"复制文件夹到",icon:"icon-operate ifo-copyto",title:"复制当前文件夹到其他位置",onClick:async(e,t)=>{await e.closeMenu();const n=await ws();n&&await Hl(n,"copy_list");}})}async function l_(){return new Xt({key:"_dir_copy_names",label:"名称路径",icon:"icon-operate ifo-copy",subItems:[await Mi("完整名称",sn.full),await Mi("不含后缀",sn.pure),await Mi("完整名称,去重",sn.fullUnique),await Mi("不含后缀,去重",sn.pureUnique),await u_(),new Qb({}),await Kc("路径(Unix)",on.unixPath),await Kc("路径(Windows)",on.winPath)]})}async function u_(e=!0){return new Xt({key:"_dir_copy_sha1",label:"文件sha1",icon:"icon-operate ifo-copy",title:"复制文件sha1"+(e?"。格式为 xxx//yyy,xxx为sha1,yyy为文件名":""),onClick:async(t,n)=>{await t.closeMenu();const s=await zn(!1),o=[];for(const i of s)i.isFile&&o.push(i.hash+(e?`//${i.name}`:""));Ht(o.join(`
`)),ue({title:"复制名称",text:`已复制当前目录下已加载的所有文件sha1,数量: ${o.length}`,icon:"success"});}})}async function c_(){return new Xt({key:"view_dir_attribute",label:"查看属性",icon:"icon-operate ifo-prop",onClick:async(e,t)=>{await e.closeMenu();const n=await ws();n&&pn().Core.FileAPI.getAttribute(n,{showPlayLongChange:function(s,o,i){ob().CACHE.FileMain.List.ResetPlayLongText(s,o,i);}},function(){console.log("查看属性 ok");});}})}async function Mi(e,t){return new Xt({key:`_d_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制当前目录下已加载的所有文件名称",onClick:async(n,s)=>{let i=(await zn(!1)).map(r=>r.name);i=await Ar(i,t),Ht(i.join(`
`)),ue({title:"复制名称",text:`已复制选中文件名。数量:${i.length},复制类型:${e}`,icon:"success"});}})}async function Kc(e,t){return new Xt({key:`_d_copy_paths_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制当前目录下已加载的所有文件路径",onClick:async(n,s)=>{await n.closeMenu();const o=await zn(!1);let i=[];ue({text:"正在获取文件路径...",timer:0}),he.showLoading();try{i=await Mf(o,t),he.close();}catch(r){console.error(r),ue({text:`获取文件路径失败: ${r}`,timer:6e4,icon:"error"});return}finally{he.hideLoading();}Ht(i.join(`
`)),ue({title:"复制路径",text:`已复制文件的路径。数量:${i.length},复制类型:${e}`,icon:"success"});}})}async function d_(){return new Xt({key:"show_sub_folder_size",label:"子文件夹大小",title:"显示当前目录下已加载的所有子文件夹的大小,并进行排序",icon:"icon-operate ifo-prop",onClick:async(e,t)=>{await e.closeMenu(),await pr("",kn.desc,!0);}})}async function Wc(e,t){return new Dr({key:`_l_copy_name_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制名称",onClick:async(n,s)=>{await n.closeMenu();const o=await _f();if(!o||!o.n){ue({text:"无法获取名称",timer:1200});return}let i=[o.n];i=await Ar(i,t),Ht(i.join(`
`)),ue({title:"复制名称",text:"已复制选中文件名",icon:"success"});}})}async function Li(e,t){return new Dr({key:`_l_copy_path_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制路径",onClick:async(n,s)=>{await n.closeMenu();const o=await _f();if(!o||!o.n){ue({text:"无法获取路径",timer:1200});return}const i=Ws(o),r=await Er(i),a=await Pr(i,r,t);Ht(a),ue({title:"复制路径",text:"已复制文件路径",icon:"success"});}})}async function f_(){return new Dr({key:"_lc_view_in_clouddrive",label:"在CloudDrive中查看",icon:"icon-operate ifo-exportdir",title:"在CloudDrive2 Web页面中查看",onClick:async(e,t)=>{await e.closeMenu();const n=await vf();if(!n||!n.length){ue({text:"无法获取文件信息",timer:1200});return}const s=await An(n);await or(s);}})}let p_=[];async function h_(){const e=await hn(),t=await Vl(e);return new Mr({key:"_play_with_x_d",label:t.defaultPlayer.label,injectDecider:sv,title:t.defaultPlayer.memo,onClick:async(n,s)=>{t.noRealDefault||Df(t.defaultPlayer,e,n,s);},subItems:[...await Bb(So,t.customUrlItems)]})}async function m_(){const e=[...(await Pf()).filter(t=>t.enabled),...p_.filter(t=>t.enabled),...(await Ir(Fs.search)).filter(t=>t.enabled)];return new Mr({key:"_search_with_name_d",label:"搜索",icon:"",title:"使用名称搜索",onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const s=$(n.target).closest("li"),o=await wi(s),i=zl({search_value:o.n,cid:await jt()});window.open(i,"_blank","noopener noreferrer");},subItems:[...await Lb(So,e)]})}async function g_(){return new So({key:"_lh_view_in_clouddrive",label:"在CloudDrive中查看",icon:"icon-operate ifo-exportdir",title:"在CloudDrive2 Web页面中查看",onClick:async(e,t)=>{t.stopPropagation(),t.preventDefault();const n=$(t.target).closest("li"),s=await An(n);await or(s);}})}async function y_(e){const t=[await Gc("完整名称",sn.full),await Gc("不含后缀",sn.pure),await w_(!0),new mc({}),await Bi("路径(Unix)",on.unixPath),await Bi("路径(Windows)",on.winPath),await Bi("上级路径(Unix)",on.unixParentPath),await Bi("上级路径(Windows)",on.winParentPath)];return e.viewInCloudDrive&&t.push(new mc({}),await g_()),new Mr({key:"_lh_copy_name_path",label:"名称路径",title:"复制文件名称路径",onClick:async(n,s)=>{},subItems:t})}async function w_(e=!0){return new So({key:"_lh_copy_sha1",label:"文件sha1",icon:"icon-operate ifo-copy",title:"复制文件sha1"+(e?"。格式为 xxx//yyy,xxx为sha1,yyy为文件名":""),onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const s=$(n.target).closest("li"),o=await An(s);if(o.isDir){ue({text:"该功能仅对文件有效",icon:"warning",timer:2e3});return}const i=o.hash+(e?`//${o.name}`:"");Ht(i),ue({title:"复制文件sha1",text:"已复制文件sha1",icon:"success",timer:1e3});}})}async function Gc(e,t){return new So({key:`_lh_copy_name_${t}`,label:e,icon:"icon-operate ifo-copy",title:e,onClick:async(n,s)=>{s.stopPropagation(),s.preventDefault();const o=$(s.target).closest("li");let r=[(await wi(o)).n];r=await Ar(r,t),Ht(r.join(`
`)),ue({title:"复制名称",text:`已复制选中文件名,复制类型:${e}`,icon:"success",timer:1e3});}})}async function Bi(e,t){return new So({key:`_lh_copy_path_${t}`,label:e,icon:"icon-operate ifo-copy",title:e,onClick:async(n,s)=>{s.stopPropagation(),s.preventDefault();const o=$(s.target).closest("li"),i=await An(o),r=await Er(i),a=await Pr(i,r,t);Ht(a),ue({title:"复制路径",text:`已复制选中路径,复制类型:${e}`,icon:"success",timer:1e3});}})}async function b_(){return new Mr({injectDecider:nv,key:"_open_in_new_tab",label:"新标签页",icon:"",title:"在新标签页打开",onClick:async(e,t)=>{t.stopPropagation(),t.preventDefault();const n=$(t.target).closest("li"),s=await An(n);if(!s||!s.id){ue({text:"无法获取目录ID",timer:1200});return}const o=wo(s.id);window.open(o,"_blank","noopener noreferrer");}})}async function v_(){return new Wl({key:"_s_smart_mkdir",label:"同名目录",icon:"icon-operate ifo-move",title:"将选中的文件移动到同名目录",onClick:await Rb()})}async function __(){return new Wl({key:"_s_copy_names_paths",label:"名称路径",icon:"icon-operate ifo-copy",showIcon:!1,title:"复制选中文件的名称路径",onClick:async(e,t)=>{},subItems:[await Ri("完整名称",sn.full),await Ri("不含后缀",sn.pure),await Ri("完整文件名,去重",sn.fullUnique),await Ri("不含后缀,去重",sn.pureUnique),new Ya({}),await Jc(!1,!0),await Jc(!0,!0),new Ya({}),await Yc("路径(Unix)",on.unixPath),await Yc("路径(Windows)",on.winPath)]})}async function Jc(e,t=!0){return new oi({key:"_s_copy_sha1"+(e?"_u":""),label:"文件sha1"+(e?",去重":""),icon:"icon-operate ifo-copy",showIcon:!1,title:"复制文件sha1"+(t?"。格式为 xxx//yyy,xxx为sha1,yyy为文件名":""),onClick:async(n,s)=>{const o=await zn(!0),i=new Set,r=[];for(const a of o)a.hash&&(e&&i.has(a.hash)||(i.add(a.hash),r.push(a.hash+(t?`//${a.name}`:""))));Ht(r.join(`
`)),ue({title:"复制文件sha1",text:`已复制选中文件sha1。数量:${r.length}`,icon:"success",timer:1e3});}})}async function Ri(e,t){return new oi({key:`_s_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",showIcon:!1,title:e,onClick:async(n,s)=>{let i=(await zn(!0)).map(r=>r.name);i=await Ar(i,t),Ht(i.join(`
`)),ue({title:"复制名称",text:`已复制选中文件名。数量:${i.length},复制类型:${e}`,icon:"success",timer:1e3});}})}async function Yc(e,t){return new oi({key:`_s_copy_path_${t}`,label:e,icon:"icon-operate ifo-copy",showIcon:!1,title:e,onClick:async(n,s)=>{const o=await zn(!0);let i=[];ue({text:"正在获取已选文件路径...",timer:0}),he.showLoading();try{i=await Mf(o,t),he.close();}catch(r){console.error(r),ue({text:`获取已选文件路径失败: ${r}`,timer:6e4,icon:"error"});return}finally{he.hideLoading();}Ht(i.join(`
`)),ue({title:"复制路径",text:`已复制选中文件的路径。数量:${i.length},复制类型:${e}`,icon:"success",timer:1e3});}})}async function x_(){const e=await zn(!0);if(!e.length)return;const t=Date.now().toString(),n=unsafeWindow.open(bf("xxx"),t);await an(1e3);let s=10;for(;s>0;)n==null||n.postMessage({event:"play",body:{id:t,files:e}},"https://v.anxia.com"),await an(1e3),s--;}async function C_(){const e=await hn(),t=await Vl(e);return new Wl({key:"_s_play_with_x_d",label:t.defaultPlayer.label,title:t.defaultPlayer.memo,onClick:async(n,s)=>{console.log("[selectionMenuPlayWithDropdown] me",n),!t.noRealDefault&&Zp(t.defaultPlayer,n,s);},subItems:[...await $_(oi,t.customUrlItems),new Ya({}),new oi({label:"关于选中播放",onClick:async(n,s)=>{s.stopPropagation(),s.preventDefault(),ue({title:"关于选中播放",html:`
              <p>点「在线播放」会打开115播放页面播放选中的视频。</p><br>
              <p>如果是点击调用本地播放器播放:<p>
              <p>原理: 生成m3u8文件,上传m3u8文件到115,调用播放该m3u8的CloudDrive2直链。<p>
              <p>设定: m3u8默认放在网盘根目录下的「.ce-m3u8-temp」目录下,不会自动清理。<p>
              <p>作为使用者需做的: 在CloudDrive2里设置「.ce-m3u8-temp」目录缓存时间为1秒。</p>
              <p class="text-info" style="font-size:12px;">这个目录会在首次播放时自动创建,如果想提前设置目录缓存时间,可以自己创建。另外,可以在「设置 - 菜单设置 - 全局设置」中修改「M3U8临时目录」以设置目录位置。</p>
              <br><p class="text-danger">导致播放失败的可能: CloudDrive2目录缓存工作异常,导致请求不到m3u8文件。</p>
            `,showConfirmButton:!0,width:600,timer:18e5});},icon:"data-text:❓"})]})}async function k_(e){if(e=e.trim(),!e)throw new Error("m3u8临时目录路径为空!");const t=await yb(e);if(t.id)return console.log("[ensureM3u8TempDir] result:",t),t.id;throw new Error("创建m3u8临时目录失败!")}async function Zp(e,t,n){if(n.stopPropagation(),n.preventDefault(),t.key==="_ce_p_p_builtin_online"||e.key==="p_builtin_online"){await x_();return}const s=await hn();try{let o=await zn(!0);if(o=o.filter(y=>y.isDir||y.isVideo||y.isImage),o.length===0){ue({title:"播放失败",text:"没有可以播放的目录或媒体文件!",icon:"error",timer:2e3});return}const i=await ko();if(o.length===1){const y=o[0],v=await si(y,e,i);window.open(v,"_blank","noopener noreferrer");return}const r=await k_(s.m3u8TempDir),a=await gb(o,r);console.log("[selection.buildPlayMenuItems generatePlaylistOn115]",a);const l=a.data,u={id:l.file_id,name:l.file_name,parentId:l.cid,sizeBytes:l.file_size,pickCode:l.pick_code,isDir:!1,isFile:!0},d=tr([s.m3u8TempDir,u.name],ls.unix);ue({title:"检查m3u8文件",text:"正在检查m3u8文件是否已准备就绪...",icon:"info",timer:0}),he.showLoading(),await jw(i,d,!0,1e3,6e4),ue({icon:"success",text:"m3u8文件已准备就绪,即将开始播放..."});const h=await si(u,e,i);window.open(h,"_blank","noopener noreferrer");}catch(o){console.error(o),ue({title:"播放失败",text:o.toString(),icon:"error",timer:6e4,showConfirmButton:!0});}finally{he.hideLoading();}}async function $_(e,t){const n=[];for(const s of t){const o=kr(e,{key:`_ce_p_${s.key}`,label:s.label,icon:s.icon,title:s.memo,onClick:async(i,r)=>{Zp(s,i,r);}});n.push(o);}return n}const S_={label:"当前目录右键菜单",key:"context",hiddenStyles:[{selector:"div.context-menu.menu-upward#js_float_content li[val={key}]",css:"display: none !important;"}],items:[{label:"上传文件",key:"upload"},{label:"新建文件夹",key:"add_dir"}]},E_={label:"选中项菜单",key:"selection",hiddenStyles:[{selector:"div.list-operate.lo-right li[menu={key}]",css:"width: 0 !important; opacity: 0 !important; padding: 0 !important; margin: 0 !important;"}],items:[{label:"置顶",key:"setTop"},{label:"取消置顶",key:"calcelSetTop"},{label:"下载",key:"download"},{label:"移动",key:"move"},{label:"标签",key:"edit_file_label"},{label:"重命名",key:"edit_name"},{label:"备注",key:"edit"},{label:"星标",key:"star"},{label:"删除",key:"delete"},{label:"分享",key:"public_share"},{label:"设置共享",key:"setShare"},{label:"取消共享",key:"cancelShare"},{label:"复制",key:"set_copy"},{label:"复制到...",key:"copy_list"},{label:"加密隐藏",key:"hide_file"},{label:"取消加密",key:"show_file"},{label:"评分",key:"file_score"},{label:"设为快捷入口",key:"set_category"},{label:"取消快捷入口",key:"unset_category"},{label:"显示时长",key:"show_play_long"},{label:"修改封面",key:"cover"},{label:"一键排重",key:"same"},{label:"导出目录树",key:"export_dir"},{label:"显示属性",key:"attribute"},{label:"转存至相册",key:"trans_to_album"}]},A_={label:"列表项右键菜单",key:"context",hiddenStyles:[{selector:"div.context-menu.menu-upward li[val={key}] a",css:"display: none !important;"}],items:[{label:"打开文件",key:"view"},{label:"打开文件夹",key:"open_dir"},{label:"下载文件",key:"download"},{label:"下载文件夹",key:"download_dir"},{label:"打包下载",key:"bale_download"},{label:"刷新",key:"refresh"},{label:"复制",key:"set_copy"},{label:"复制到...",key:"copy_list"},{label:"加密隐藏",key:"hide_file"},{label:"取消加密",key:"show_file"},{label:"评分",key:"file_score"},{label:"显示时长",key:"show_play_long"},{label:"取消时长",key:"hide_play_long"},{label:"添加到我听",key:"listen"},{label:"美化",key:"magic"},{label:"修改封面",key:"cover"},{label:"删除封面",key:"del_cover"},{label:"一键排重",key:"same"},{label:"移动",key:"move"},{label:"重命名",key:"edit_name"},{label:"备注",key:"edit"},{label:"显示属性",key:"attribute"},{label:"删除",key:"delete"},{label:"播放器播放",key:"player"},{label:"转存到相册",key:"trans_to_album"},{label:"举报",key:"report"}]},P_={label:"列表项悬浮菜单",key:"hover",hiddenStyles:[{selector:"div.file-opr[rel=menu] a[menu={key}]",css:"width: 0 !important; opacity: 0 !important; padding: 0 !important; margin: 0 !important; overflow: hidden !important;"},{selector:"div.context-menu li[menu={key}] a",css:"display: none !important;"}],items:[{label:"置顶",key:"setTop"},{label:"取消置顶",key:"calcelSetTop"},{label:"星标",key:"star"},{label:"下载文件",key:"download_one"},{label:"下载文件夹",key:"download_dir_one"},{label:"移动",key:"move"},{label:"标签",key:"edit_file_label"},{label:"重命名",key:"edit_name"},{label:"备注",key:"edit"},{label:"删除",key:"delete"},{label:"分享",key:"public_share"},{label:"取消加密",key:"show_file"},{label:"评分",key:"file_score"},{label:"设置共享",key:"setShare"},{label:"取消共享",key:"cancelShare"},{label:"复制",key:"set_copy"},{label:"显示时长",key:"show_play_long"},{label:"修改封面",key:"cover"},{label:"一键排重",key:"same"},{label:"导出目录树",key:"export_dir"},{label:"显示属性",key:"attribute"},{label:"转存至相册",key:"trans_to_album"},{label:"设为快捷入口",key:"set_category"},{label:"取消快捷入口",key:"unset_category"}]},eh=yt.hiddenOfficialMenuKeys;async function th(){return await dt.get(eh,[])}async function I_(e,t=!1){var n;await dt.set(eh,e),t&&(unsafeWindow.postMessage({event:mt.officialMenuStyleChange},"*"),(n=unsafeWindow.frames.wangpan)==null||n.postMessage({event:mt.officialMenuStyleChange},"*"));}async function T_(e){const t=[];return e.forEach(n=>{n.items.forEach(s=>{s.hidden&&t.push(`${n.key}_${s.key}`);});}),t}async function nh(){const e=[E_,A_,P_,S_],t=await th();return e.forEach(n=>{n.items.forEach(s=>{const o=`${n.key}_${s.key}`;t.includes(o)?s.hidden=!0:s.hidden=!1;});}),e}async function O_(){const e=await nh(),t=[];return e.forEach(n=>{n.hiddenStyles.forEach(s=>{const o=[];n.items.forEach(i=>{i.hidden&&o.push(s.selector.replace("{key}",i.key));}),o.length&&t.push(o.join(`,
`)+" { "+s.css+" }");});}),t.join(`
`)}async function Qc(){const e="cloud115EnhancerOfficialMenuStyle",t=await O_();let n=document.getElementById(e);if(n){n.innerHTML=t;return}n=document.createElement("style"),n.id=e,n.innerHTML=t,document.body.appendChild(n);}async function D_(){const{host:e,search:t}=location;if(!e.includes("115.com"))return;console.log("[Cloud115 Enhancer - menu] running..."),M_(),document.addEventListener(Sn.EVENT_CLOSE_MENU,s=>{$("#"+s.detail.menu.key).closest(".context-menu").hide();});const n=await hn();n.enabled&&(L_(n),await Tf(n),window.top===window.self&&B_(n),N_(n),(bs()||vs())&&(R_(n),F_(n),Mb(n)));}async function M_(){const e="ceCustomUrlHelp",t=document.createElement("div");t.id=e,document.body.appendChild(t),qn(H0).mount(`#${e}`);}async function L_(e){e.manageOfficialMenus&&(Qc(),window.addEventListener("message",async t=>{t.data.event===mt.officialMenuStyleChange&&(console.log("[Cloud115 Enhancer - menu] officialMenuStyleChange",location.href),await an(1e3),console.log(await th()),Qc());}));}const sh=async(e,t)=>{};async function B_(e){const{[ze.dirContext]:t}=e;if(!t.enabled)return;const n=[...t.topLevelMenus,"play","copyNames"],s=[],o=[],i=new Map;t.rename&&i.set("rename",await n_()),t.delete&&i.set("delete",await i_()),t.play&&i.set("play",await t_()),t.copyNames&&i.set("copyNames",await l_()),t.move&&i.set("move",await o_()),t.viewProp&&i.set("viewProp",await c_()),t.showSubFolderSize&&i.set("copyToSpecified",await d_()),t.copy&&i.set("copy",await r_()),t.copyTo&&i.set("copyTo",await a_()),t.viewInCloudDrive&&i.set("viewInCloudDrive",await s_());const r=i.keys();for(const l of r){const u=i.get(l);u&&(n.includes(l)?s.push(u):o.push(u));}o.length>1?s.push(new Xt({key:"_dir_more",label:"更多",icon:"icon-operate ifo-open",onClick:sh,subItems:o})):o.length===1&&s.push(o[0]),await new Xb({items:s,siblingSelector:'[val="upload"]',position:Rs.before}).inject(),$(".ce-menu-parent .ce-menu-trigger").on("mouseover",function(){$(this).find(".ce-menu-dropdown").show();}).on("mouseout",function(){$(this).find(".ce-menu-dropdown").hide();});}async function R_(e){const{[ze.listItemHover]:t}=e;if(!t.enabled)return;const n=[];t.openInNewTab&&n.push(await b_()),t.search&&n.push(await m_()),t.play&&n.push(await h_()),t.copyNames&&n.push(await y_(t)),new ev({items:n,position:Rs.after,siblingSelector:'[menu="move"], [menu="delete"]'}).inject();}async function N_(e){const{[ze.listItemContext]:t}=e;if(!t.enabled)return;const n=[],s=[];t.copyNames&&s.push(await Wc("完整名称",sn.full),await Wc("不含后缀",sn.pure),new hc({}),await Li("路径(Unix)",on.unixPath),await Li("路径(Windows)",on.winPath),await Li("上级路径(Unix)",on.unixParentPath),await Li("上级路径(Windows)",on.winParentPath)),t.viewInCloudDrive&&s.push(new hc({}),await f_()),s.length&&n.push(new Dr({key:"_list_item_copy_name_path",label:"名称路径",icon:"icon-operate ifo-copy",onClick:sh,subItems:s})),new Zb({items:n,position:Rs.after,siblingSelector:'[val="refresh"]',useObserver:!0,observeTarget:document.body,disposeObserverAfterInjection:!1}).inject();}async function F_(e){const{[ze.selection]:t}=e;if(!t.enabled)return;const n=[];vs()||t.moveToSelfNameDir&&n.push(await v_()),t.copyNames&&n.push(await __()),t.play&&n.push(await C_()),new tv({items:n,position:Rs.before,siblingSelector:"ul li"}).inject();}const oh=yt.offline;var Wi=(e=>(e.name="name",e.nameRegex="nameRegex",e.infoHash="infoHash",e.url="url",e))(Wi||{});const U_={name:"名称",nameRegex:"名称正则",infoHash:"哈希",url:"链接"};var Vs=(e=>(e.selection="ce-offline-selection",e.configChanged="ce-offline-config-changed",e.searchPageChanged="ce-offline-search-page-changed",e))(Vs||{});function j_(e){return {onlyMagnetEd2k:!1,enableOptimization:!0,reqInterval:500,maxPage:0,showInfoHash:!0,enableListManagement:!0,fixGotoPage:!1,enableSearcher:!0,searchMaxPage:5,searchKeywordType:"name",searchStatus:Jt.any,searchStopOnFound:!1,searchReqInterval:10,noGotoTaskPage:!0,...e}}async function hs(){const e=j_(),t=await dt.get(oh,e);return {...e,...t}}async function ih(e){await dt.set(oh,e),window.postMessage({event:"ce-offline-config-changed",body:JSON.parse(JSON.stringify(e))},"*");}var H_={name:"115不大助手",version:"0.7.17",author:{name:"生瓜太保",email:"mailme@miao.com"},greasyforkUrl:"https://greasyfork.org/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};async function z_(e){const t=await $t("#js-warp"),n=t.querySelectorAll("li[complete]");if(n.length>0)for(const o of Array.from(n))await Xc(o,e);W_(e),new MutationObserver(async([o])=>{if(o.type==="childList"){o.addedNodes.forEach(async a=>{await Xc(a,e);});const i=document.querySelector(".ce-checkbox-all input"),r=await Jr();if(!r.length)i.checked=!1,i.indeterminate=!1;else {const a=t.querySelectorAll("li[complete]");i.checked=r.length===a.length,i.indeterminate=!i.checked;}await Yr(r);}}).observe(t,{childList:!0});}async function q_(e){const t=e;return {complete:t.getAttribute("complete"),cate_id:t.getAttribute("cate_id"),delete_id:t.getAttribute("delete_id"),status:t.getAttribute("status"),suffix:t.getAttribute("suffix"),name:t.getAttribute("name"),hash:t.getAttribute("hash")}}async function Xc(e,t){const n=e,s=await q_(e);G_(n,t,s),V_(n,t,s),K_(n,t,s);}async function V_(e,t,n){if(!t.showInfoHash||e.querySelector(".info-hash"))return;const s=e.querySelector(".file-name"),o=document.createElement("div");o.classList.add("info-hash"),o.textContent=n.hash,o.title=`点击复制${n.hash}`,s.after(o),o.addEventListener("click",()=>{er(n.hash,"text"),ue({text:"已复制",icon:"success",timer:800});});const i=e.querySelector(".desc-tips");i&&i.style.display!=="none"&&e.classList.add("ce-task-trouble");}async function K_(e,t,n){const s=e.querySelector(".file-operate");if(s.querySelector(".ce-buttons"))return;const o=document.createElement("span");o.className="ce-buttons";const i=Qt(`
    <a target="_blank" class="pure-button button-mini button-info">打开</a>
  `);i.href=wo(n.cate_id),i.title="在新标签页打开目录",o.append(i),s.prepend(o);}async function W_(e){if(!e.enableListManagement)return;const t=await $t("#js-main .header-name");let n=t.querySelector(".ce-checkbox-all");n||(n=document.createElement("div"),n.classList.add("ce-checkbox"),n.classList.add("ce-checkbox-all"),n.innerHTML=`
      <input type="checkbox"/>
    `,t.prepend(n)),n.addEventListener("click",()=>{const s=n.querySelector("input").checked;document.querySelectorAll("#js-warp li").forEach(i=>{const r=i.querySelector("input");r.checked=s,i.classList.toggle("ce-selected",s);}),Jr().then(i=>{Yr(i);});});}async function G_(e,t,n){if(!t.enableListManagement||e.querySelector(".ce-checkbox"))return;const s=e.querySelector(".file-name-wrap"),o=document.createElement("div");o.classList.add("ce-checkbox"),o.innerHTML=`
    <input type="checkbox" data-id="${n.hash}" />
  `,s.prepend(o),e.classList.add("ce-show-checkbox"),o.addEventListener("click",async i=>{i.shiftKey?await Y_(i,e):await J_(i,e);});}async function J_(e,t){t.classList.toggle("ce-selected");const n=document.querySelector(".ce-checkbox-all input"),s=await ah();let o=0;for(const r of s)r.classList.contains("ce-selected")&&o++;const i=o===s.length;n.checked=i,n.indeterminate=!i&&o>0,Jr().then(r=>{Yr(r);});}async function Y_(e,t){const n=await ah(),s=n.indexOf(t);let o=-1;for(let d=0;d<s;d++)if(n[d].classList.contains("ce-selected")){o=d;break}if(o===-1){for(let d=n.length-1;d>s;d--)if(n[d].classList.contains("ce-selected")){o=d;break}}o=o===-1?s:o;const i=Math.min(o,s),r=Math.max(o,s);let a=0;for(let d=0;d<n.length;d++){const h=n[d],y=h.querySelector(".ce-checkbox input"),v=d>=i&&d<=r;y.checked=v,v&&a++,h.classList.toggle("ce-selected",v);}const l=i===0&&r===n.length-1,u=document.querySelector(".ce-checkbox-all input");u.checked=l,u.indeterminate=!l&&a>0,Jr().then(d=>{Yr(d);});}async function rh(e){var n;const t={info_hash:e.getAttribute("hash"),status:Number(e.getAttribute("status")),name:e.getAttribute("name"),file_id:e.getAttribute("cate_id"),delete_file_id:e.getAttribute("delete_id"),url:((n=e.querySelector(".file-operate a[cp_href]"))==null?void 0:n.getAttribute("cp_href"))||""};return t.name||(t.name=e.querySelector(".file-name").textContent.trim()),t}async function ah(e){const t=document.querySelectorAll("#js-warp li"),n=[];return t.forEach(async s=>{const o=s;n.push(o);}),n}async function Jr(){const e=document.querySelectorAll("#js-warp li"),t=[];return e.forEach(async n=>{const s=n;if(s.classList.contains("ce-selected")){const o=await rh(s);t.push(o);}}),t}async function Yr(e){window.postMessage({event:Vs.selection,body:e},"*");}async function pl(e){document.querySelectorAll("#js-warp li").forEach(async n=>{const s=n,o=s.getAttribute("hash");e.includes(o)&&pf(s);});}async function Q_(e,t,n,s){var v;const o=[],i=n.maxPage||5;let r="",a=null,l="",u="",d="";n.name!==void 0&&(r=n.caseSensitive?n.name:n.name.toLowerCase()),n.nameRegex!==void 0&&(a=new RegExp(n.nameRegex)),n.infoHash!==void 0&&(l=n.caseSensitive?n.infoHash:n.infoHash.toLowerCase()),n.url!==void 0&&(u=n.caseSensitive?n.url:n.url.toLowerCase()),n.status!==void 0&&n.status!==Jt.any&&n.status.toString()!==""&&(d=n.status.toString());let h=n.stopOnFound||!1;(l||u)&&(h=!0);let y=-1;for(let b=1;b<=i&&!(y>-1&&b>y);b++){window.postMessage({event:Vs.searchPageChanged,body:b},"*");const _=await xf(b,e,t);y===-1&&(y=_.page_count);const R=_.tasks;for(const L of R){const N=n.caseSensitive?L.name:L.name.toLowerCase(),D=n.caseSensitive?L.info_hash:L.info_hash.toLowerCase(),B=n.caseSensitive?L.url:(v=L.url)==null?void 0:v.toLowerCase(),F=r&&n.fuzzyName?N.includes(r):!1,j=a?a.test(N):!1,K=l&&D===l,de=u&&B===u;if((d?d===L.status.toString():!0)&&(F||j||K||de)&&(o.push(L),h))break}if(h&&o.length)break}return o}async function X_(){if(!(await hs()).fixGotoPage)return;const t=await $t("#js-page");if(!t){console.warn("[fixGotoPage] 找不到`#js-page`");return}const n=async r=>{if(r.key!=="Enter")return;const a=r.target,l=parseInt(a.value);if(isNaN(l)){a.select();return}parent.window.Core.OFFL5Plug.ChangePage(l);},s=async(r=!1)=>{const a=t.querySelector('input[rel="page_jump"]');if(!a)return;const l=document.createElement("input");l.setAttribute("rel","page_jump"),l.type="text",l.style.backgroundColor="#fefcea",l.title=`这是 ${H_.name} 替换的输入框,如果想恢复原有的输入框,请在「离线设置」中关闭「修复输入页码跳转」选项`,l.addEventListener("keydown",n),a.insertAdjacentElement("beforebegin",l),a.remove(),r&&l.focus();},o=Ut(async r=>{s(!0);},50),i=new MutationObserver(async([r])=>{r.type==="childList"&&o(r);});s(!1),i.observe(t,{childList:!0});}async function Z_(e){const t=pn();if(!e.noGotoTaskPage||window!==window.top||t.Core.OFFL5Plug)return;async function n(s){t.Core&&s(!0);}try{await ys(n,250,3e4),t.Core.OFFL5Plug||t.$.getScript("https://cdnres.115.com/site/static/plug/offline_wl/offline5.0.js",()=>{t.Core.OFFL5Plug.AddClient({});});}catch(s){throw new Error(`[disableGotoTaskPage] wait Core failed:${s.message}`)}}const ex={class:"ce-config ce-offline-config"},tx={class:"pure-form pure-form-aligned offline-exporter-config-form"},nx={class:"pure-control-group"},sx={class:"pure-control-group"},ox={class:"pure-control-group"},ix={class:"pure-control-group"},rx={class:"pure-control-group"},ax={class:"pure-control-group"},lx={class:"pure-control-group"},ux=Be({__name:"Config",async setup(e){let t,n;const s=oe(([t,n]=rn(()=>hs()),t=await t,n(),t));return Dt(async()=>{}),ht(s,Ut(async o=>{await ih(o),ue({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"});},500),{deep:!0}),(o,i)=>(A(),T("div",ex,[c("form",tx,[c("fieldset",null,[c("div",nx,[i[7]||(i[7]=c("label",{for:"noGotoTaskPage"},"添加任务后不跳转",-1)),ae(c("input",{id:"noGotoTaskPage",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>s.value.noGotoTaskPage=r)},null,512),[[Ve,s.value.noGotoTaskPage]]),i[8]||(i[8]=c("div",{class:"pure-form-message text-success"}," 官方的添加离线任务在添加任务后可能会跳转到任务列表页,开启此选项可以避免跳转。 ",-1))]),c("div",sx,[i[9]||(i[9]=c("label",{for:"enableListManagement"},"启用批量管理",-1)),ae(c("input",{id:"enableListManagement",type:"checkbox","onUpdate:modelValue":i[1]||(i[1]=r=>s.value.enableListManagement=r)},null,512),[[Ve,s.value.enableListManagement]]),i[10]||(i[10]=c("div",{class:"pure-form-message text-success"}," 可以选中多个任务进行操作,支持shift多选。 ",-1))]),c("div",ox,[i[11]||(i[11]=c("label",{for:"showInfoHash"},"显示链接哈希",-1)),ae(c("input",{id:"showInfoHash",type:"checkbox","onUpdate:modelValue":i[2]||(i[2]=r=>s.value.showInfoHash=r)},null,512),[[Ve,s.value.showInfoHash]]),i[12]||(i[12]=c("div",{class:"pure-form-message text-success"}," 显示离线任务的哈希文本,点击可以复制。 ",-1))]),c("div",ix,[i[13]||(i[13]=c("label",{for:"fixGotoPage"},"修复输入页码跳转",-1)),ae(c("input",{id:"fixGotoPage",type:"checkbox","onUpdate:modelValue":i[3]||(i[3]=r=>s.value.fixGotoPage=r)},null,512),[[Ve,s.value.fixGotoPage]]),i[14]||(i[14]=c("div",{class:"pure-form-message text-success"}," 如果官方的输入页码跳转功能异常,可开启此选项。 ",-1))]),i[21]||(i[21]=c("div",{class:"ce-tips"},"以下是导出链接相关选项",-1)),c("div",rx,[i[15]||(i[15]=c("label",{for:"onlyMagnetEd2k"},"只取磁力和ED2K链接",-1)),ae(c("input",{id:"onlyMagnetEd2k",type:"checkbox","onUpdate:modelValue":i[4]||(i[4]=r=>s.value.onlyMagnetEd2k=r)},null,512),[[Ve,s.value.onlyMagnetEd2k]]),i[16]||(i[16]=c("div",{class:"pure-form-message text-success"}," 导出链接时,只取磁力和ED2K链接,其他比如http链接会被略过。 ",-1))]),c("div",ax,[i[17]||(i[17]=c("label",{for:"enableOptimization"},"启用导出优化",-1)),ae(c("input",{id:"enableOptimization",type:"checkbox","onUpdate:modelValue":i[5]||(i[5]=r=>s.value.enableOptimization=r)},null,512),[[Ve,s.value.enableOptimization]]),i[18]||(i[18]=c("div",{class:"pure-form-message text-success"}," 据观察,离线记录列表是将未完成的记录放在最前面的。如果只需导出未完成链接, 当获取到一个已完成的记录时,便可以停止继续获取后面的记录,节省时间。 ",-1))]),c("div",lx,[i[19]||(i[19]=c("label",{for:"maxPage"},"最多导出页数",-1)),ae(c("input",{id:"maxPage",type:"number","onUpdate:modelValue":i[6]||(i[6]=r=>s.value.maxPage=r),min:0},null,512),[[Ye,s.value.maxPage]]),i[20]||(i[20]=c("div",{class:"pure-form-message text-success"}," 0表示不限制,否则表示最多导出的页数。 ",-1))])])])]))}}),lh=je(ux,[["__file","Config.vue"]]);function Zc(e){return /^magnet:\?xt=urn:btih/.test(e)}function ed(e){return /^ed2k:\/\/\|file\|/.test(e)}function td(e){return `magnet:?xt=urn:btih:${e.toUpperCase()}`}function uh(e){const t=e.match(/([a-z\d]{32,40})/i);return t?t[1]:""}function cx(e,t=!0){return (t?/^([a-z\d]{32})$|^([a-z\d]{40})$/i:/^[a-z\d]{32,40}$/i).test(e)}const dx={class:"ce-offline-exporter"},fx={key:0},Ni=`\r
`,px=Be({__name:"OflineExporter",setup(e){let t,n;const s=oe([]);let o={};qt(async()=>{o=await hs(),t=await kf(),console.log("[profile]",t),n=await Cf(),console.log("[space]",n),i(),await z_(o);});async function i(){window.addEventListener("message",b=>{const{event:_,body:R}=b.data;switch(_){case Vs.selection:s.value=R;break;case Vs.configChanged:o=R;break}},!1);}async function r(b=!1,_=""){const{isConfirmed:R,value:L}=await he.fire({title:"根据链接删除离线任务",html:`
      <div>每行一个链接,支持磁力链接和ED2K链接</div>
      <div>
        <label class="swal2-checkbox" style="display: flex;">
          <input type="checkbox" id="swalDeleteFile">
          <span class="swal2-label">同时删除文件</span>
        </label>
      </div>
      <div>
        <textarea id="swalUrls" aria-label="每行一个链接" class="swal2-textarea" placeholder="每行一个链接" style="width:80%;"></textarea>
      </div>
    `,focusConfirm:!1,didOpen:()=>{const B=document.getElementById("swalDeleteFile");B.checked=b;const F=document.getElementById("swalUrls");F.value=_,F.focus();},preConfirm:()=>{const B=document.getElementById("swalDeleteFile"),F=document.getElementById("swalUrls");return {deleteFile:B?B.checked:!1,urls:F?F.value:""}},width:620,inputPlaceholder:"每行一个",inputAttributes:{"aria-label":"每行一个"},showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"});if(!R)return;if(L===void 0){alert("请输入链接!");return}const N=[],D=L.urls.trim().split(`
`);for(let B=0;B<D.length;B++){const F=D[B].trim();if(Zc(F)||ed(F)){const j=uh(F);j&&N.push(j.toLowerCase());}}he.showLoading(),he.update({html:"正在删除..."}),await Wa(N,n,L.deleteFile,t.user_id),ue({icon:"success",title:"删除成功!请刷新页面查看最新的列表。",timer:3e4,position:"top-end"}),await pl(N);}async function a(){const b=s.value.map(N=>N.info_hash);if(!b.length)return;const{isConfirmed:_,value:R}=await he.fire({title:"批量删除",icon:"warning",html:`确定要删除选中的 ${b.length} 个离线记录吗?`,input:"checkbox",inputValue:0,inputPlaceholder:"同时删除文件",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"});if(!_)return;const L=!!R;he.showLoading(),he.update({html:"正在删除..."}),await Wa(b,n,L,t.user_id),ue({icon:"success",title:"删除成功",timer:800,position:"top-end"}),await pl(b),s.value=[];}async function l(b){const _=[b];o.onlyMagnetEd2k&&_.push(Kt.magnetEd2k),console.log("[filters]",_),await v(n.sign,t.user_id,_);}function u(b,_){if(!_.length||_.length===1&&_[0]==="all")return b;const R={[Jt.failed]:Kt.failed,[Jt.illegal]:Kt.failed,[Jt.ing]:Kt.failed,[Jt.success]:Kt.success};return b=b.filter(L=>{if(!L.url&&!L.info_hash)return !1;const N=R[L.status];return _.includes(Kt.all)||N&&_.includes(N)?!(_.includes(Kt.magnetEd2k)&&(!cx(L.info_hash)||L.url&&!Zc(L.url)&&!ed(L.url))):!1}),b}async function d(b,_,R){let L=[],N=1,D=0;for(;;){he.update({html:`正在导出... 进度:第 ${N} 页`+(D?` / ${D}`:""),allowOutsideClick:!1});const B=await xf(N,b,_);if(!B.tasks||!B.tasks.length)break;if(D===0&&o.maxPage>0?D=Math.min(B.page_count,o.maxPage):D=B.page_count,L=[...L,...u(B.tasks,R)],o.enableOptimization&&R.includes(Kt.failed)&&h(B.tasks)){console.warn("由于开启了导出优化,且检测到已获取的记录中至少有一个「已完成」的记录,将不再获取剩下的记录");break}if(N>=D)break;N++;}return L}function h(b){for(const _ of b)if(_.status===Jt.success)return !0;return !1}async function y(){const b=[Kt.all];o.onlyMagnetEd2k&&b.push(Kt.magnetEd2k),console.log("[filters]",b);const _=s.value;if(!_.length)return;const R=[];_.forEach(L=>{!L.url&&L.info_hash&&(L.url=td(L.info_hash)),R.push(L.url);}),R.length&&(er(R.join(Ni),"text"),console.log("[links]",R),await he.fire({title:"导出成功",icon:"success",html:`成功导出 ${R.length} 个链接,请粘贴到文本文件。`,showDenyButton:!0,denyButtonText:"保存到txt",allowEscapeKey:!1,allowOutsideClick:!1,preDeny:async()=>(console.log("[saveAs]"),nr(R.join(Ni),`115离线链接_数量${R.length}_${yo()}.txt`),!1)}));}async function v(b,_,R){he.fire({title:"导出离线链接",html:"正在导出...",didOpen:()=>{he.showLoading();}});const L=await d(b,_,R);if(he.hideLoading(),!L.length){await he.fire({title:"导出失败",icon:"error",html:"查询不到符合条件的离线记录!"});return}const N=[];if(L.forEach(D=>{!D.url&&D.info_hash&&(D.url=td(D.info_hash)),N.push(D.url);}),!N.length){await he.fire({title:"导出失败",icon:"error",html:"未完成的离线记录中没有磁力或HTTP链接!"});return}er(N.join(Ni),"text"),console.log("[links]",N),await he.fire({title:"导出成功",icon:"success",html:`成功导出 ${N.length} 个链接,请粘贴到文本文件。`,showDenyButton:!0,denyButtonText:"保存到txt",allowEscapeKey:!1,allowOutsideClick:!1,preDeny:async()=>(console.log("[saveAs]"),nr(N.join(Ni),`115离线链接_数量${N.length}_${yo()}.txt`),!1)});}return (b,_)=>{const R=zs("VDropdown");return A(),T("span",dx,[s.value.length?(A(),T("span",fx,[c("button",{type:"button",class:"pure-button button-small button-error",onClick:a},[_[4]||(_[4]=U("删除(")),c("span",null,G(s.value.length),1),_[5]||(_[5]=U(")"))]),_[6]||(_[6]=U("      "))])):we("",!0),c("button",{type:"button",class:"pure-button button-mini button-error",onClick:_[0]||(_[0]=L=>r(!1,"")),title:"填写链接以删除对应的离线任务"},"根据链接删除"),_[9]||(_[9]=U("   ")),s.value.length?(A(),T("button",{key:1,type:"button",class:"pure-button button-mini button-warning",onClick:y,title:"导出选中任务的链接"},[_[7]||(_[7]=U("导出已选")),c("span",null,"("+G(s.value.length)+")",1)])):we("",!0),c("button",{type:"button",class:"pure-button button-mini button-error",onClick:_[1]||(_[1]=L=>l(fe(Kt).failed)),title:"导出未完成链接"},"导出未完成"),c("button",{type:"button",class:"pure-button button-mini button-success",onClick:_[2]||(_[2]=L=>l(fe(Kt).success)),title:"导出已完成链接"},"导出已完成"),c("button",{type:"button",class:"pure-button button-mini button-warning",onClick:_[3]||(_[3]=L=>l(fe(Kt).all)),title:"导出全部链接"},"导出全部"),_[10]||(_[10]=U("   ")),ge(R,{distance:5,"arrow-padding":10},{popper:Re(()=>[(A(),ot(Rp,null,{default:Re(()=>[ge(lh)]),_:1}))]),default:Re(()=>[_[8]||(_[8]=c("button",{type:"button",class:"pure-button button-mini"},"设置",-1))]),_:1})])}}}),hx=je(px,[["__file","OflineExporter.vue"]]),mx=["cate_id","delete_id","status","hash"],gx={class:"file-name-wrap"},yx={class:"file-name"},wx={task_popup:"goto",href:"javascript:;",class:"name"},bx={rel:"name"},vx={class:"desc-tips",rel:"file_down_violations"},_x={class:"txt-red",rel:"file_down_tips"},xx=["filename"],Cx={class:"file-size"},kx={class:"file-process"},$x={rel:"progress"},Sx={class:"file-operate",rel:"opt"},Ex=["cp_href"],Ax=Be({__name:"OfflineItem",props:{item:{},space:{},profile:{}},setup(e){const t=it(()=>i.item.percentDone?parseInt(i.item.percentDone.toString()):0),n=it(()=>{const{name:r,del_path:a}=i.item;let l=r.replace(/^.*\./,"");return a&&/\/$/.test(a)&&(l="folder"),/^[a-z\d]+$/i.test(l)||(l="unknown"),l}),s=it(()=>{const{err:r}=i.item;return r?Ow[r]:""}),o=it(()=>i.item.can_appeal===1),i=e;return (r,a)=>(A(),T("li",{complete:"",cate_id:r.item.file_id,delete_id:r.item.delete_file_id,status:r.item.status,hash:r.item.info_hash},[c("div",gx,[c("i",{class:He(["file-type",`tp-${n.value}`])},null,2),c("div",yx,[c("em",null,[c("a",wx,[c("span",bx,G(r.item.name),1)])])]),ae(c("div",vx,[c("span",_x,G(s.value),1),ae(c("a",{href:"javascript:;",class:"btn-link",filename:r.item.name,rel:"violations_down_btn"},"去申诉",8,xx),[[Nt,o.value]])],512),[[Nt,s.value]])]),c("div",Cx,[c("span",null,G(fe(sr)(r.item.size)),1)]),c("div",kx,[r.item.status===fe(Jt).failed?(A(),T(De,{key:0},[a[0]||(a[0]=c("i",{class:"icon-file-status ifst-failure"},null,-1)),a[1]||(a[1]=c("span",{rel:"progress"},"下载失败",-1))],64)):r.item.status===fe(Jt).success?(A(),T(De,{key:1},[a[2]||(a[2]=c("i",{class:"icon-file-status ifst-success"},null,-1)),a[3]||(a[3]=c("span",{rel:"progress"},"下载成功",-1))],64)):r.item.status===fe(Jt).ing?(A(),T(De,{key:2},[a[4]||(a[4]=c("i",{class:"icon-file-status ifst-downing"},null,-1)),c("span",$x,G(t.value)+"%",1)],64)):r.item.status===fe(Jt).illegal?(A(),T(De,{key:3},[a[5]||(a[5]=c("i",{class:"icon-file-status ifst-violation"},null,-1)),a[6]||(a[6]=c("span",{rel:"progress"},"违规",-1))],64)):(A(),T(De,{key:4},[a[7]||(a[7]=c("i",{class:"icon-file-status ifst-failure"},null,-1)),a[8]||(a[8]=c("span",{rel:"progress"},"[未知]",-1))],64))]),c("div",Sx,[a[10]||(a[10]=c("a",{href:"javascript:;",task_popup:"goto"},[c("i",{class:"icon-operate ifo-opendir"}),c("s",null,"跳转到目录")],-1)),c("a",{href:"javascript:;",cp_href:r.item.url,task_popup:"copy"},a[9]||(a[9]=[c("i",{class:"icon-operate ifo-copy"},null,-1),c("s",null,"复制",-1)]),8,Ex),a[11]||(a[11]=c("a",{href:"javascript:;",class:"btn-delete-offline"},[c("i",{class:"icon-operate ifo-remove"}),c("s",null,"删除")],-1))])],8,mx))}}),Px=je(Ax,[["__file","OfflineItem.vue"]]),Ix={class:"ce-offline-list"},Tx=Be({__name:"OfflineList",props:{items:{},space:{},profile:{}},setup(e){return (t,n)=>(A(),T("div",Ix,[c("ul",null,[(A(!0),T(De,null,Ge(t.items,(s,o)=>(A(),ot(Px,{Key:o,item:s,space:t.space,profile:t.profile},null,8,["Key","item","space","profile"]))),256))])]))}}),Ox=je(Tx,[["__file","OfflineList.vue"]]),Dx={inline:"",class:"pure-form search-form",size:"small"},Mx={class:"form-item",label:"关键词"},Lx=["value"],Bx={class:"form-item"},Rx={class:"form-item",label:"状态"},Nx=["value"],Fx=["value"],Ux={class:"form-item",label:"页数"},jx={class:"form-item"},Hx={key:0,title:"根据「名称/名称正则」查找时,是否在找到一个结果时停止继续查找"},zx={key:0,class:"search-tips"},qx={class:"tips-body"},Vx={key:0},Kx=Be({__name:"OfflineSearcher",setup(e){let t,n;const s=oe(),o=oe({KeywordType:Wi.name,keyword:"",status:Jt.any,maxPage:5,stopOnFound:!1});let i={...o.value};const r=oe(null),a=oe(!1),l=oe([]),u=oe(null),d=oe({content:"",subContent:"",visible:!1});qt(async()=>{t=await kf(),n=await Cf(),s.value=await hs(),o.value.KeywordType=s.value.searchKeywordType,o.value.status=s.value.searchStatus,o.value.maxPage=s.value.searchMaxPage,o.value.stopOnFound=s.value.searchStopOnFound,i={...o.value},document.body.addEventListener("click",j=>{B(j);}),h();}),ht(o,Ut(async j=>{console.log("[searchParams changed]",yf(j)),v();},200),{deep:!0});async function h(){window.addEventListener("message",j=>{const{event:K,body:de}=j.data;switch(K){case Vs.searchPageChanged:y(de);break;case Vs.configChanged:s.value={...de};break}},!1);}async function y(j){console.log("[handleSearchPageChanged]",j),await F({subContent:`正在搜索第 ${j} 页...`,visible:!0});}async function v(){const j=await hs();let K=0;i.KeywordType!==o.value.KeywordType&&(j.searchKeywordType=o.value.KeywordType,K++),i.status!==o.value.status&&(j.searchStatus=o.value.status,K++),i.maxPage!==o.value.maxPage&&(j.searchMaxPage=o.value.maxPage,K++),i.stopOnFound!==o.value.stopOnFound&&(j.searchStopOnFound=o.value.stopOnFound,K++),K&&(await ih(j),console.log("[handleSearchParamsChange]",j),s.value={...j}),i={...o.value};}async function b(j){var K;(K=r.value)==null||K.select();}async function _(j){var K;o.value.keyword="",(K=r.value)==null||K.focus();}async function R(){l.value=[],o.value.keyword="",i={...o.value},await F({visible:!1}),await N(!1);try{parent.window.Core.OFFL5Plug.ChangePage(1);}catch(j){console.error(j);}}async function L(){var K;l.value=[];let{keyword:j}=o.value;if(j=j.trim(),j===""){await Hs(),(K=r.value)==null||K.select(),Vo.fire({icon:"warning",title:"关键词不能为空!"});return}a.value=!0,await F({content:"正在搜索...",subContent:"",visible:!0});try{const de={status:o.value.status,maxPage:o.value.maxPage,fuzzyName:!0,caseSensitive:!1,stopOnFound:o.value.stopOnFound};de[o.value.KeywordType]=o.value.keyword,de.infoHash&&(de.infoHash=uh(de.infoHash)),console.log("[search filter]",de);const be=await Q_(n.sign,t.user_id,de,s.value);l.value=be,console.log("[search result]",be),be.length>0?await F({visible:!1}):await F({content:"没有符合条件的离线任务",subContent:"",visible:!0}),await N(!0);}catch(de){console.warn("[search error]",de),Vo.fire({icon:"error",title:de.toString()}),await F({content:"搜索失败!",subContent:de.toString(),visible:!0});}finally{a.value=!1;}}async function N(j=!0){var be,_e;!l.value.length&&j&&Vo.fire({icon:"warning",html:"没有符合条件的离线任务"}),await Hs();const K=(be=u.value)==null?void 0:be.querySelector("ul");if(!K)return;const de=document.querySelector("ul#js-warp");de&&(de.innerHTML=K.innerHTML),await D(),(_e=r.value)==null||_e.focus();}async function D(){const j=l.value.length,K=document.querySelector("#js-page");if(!K)return;const de=K.querySelector(".left-bvf span");de.textContent=`共搜索到 ${j} 个结果`;const be=K.querySelector(".pagination .con");be.style.display="none";}async function B(j){let K=j.target;if(K.classList.contains("ifo-remove")&&(K=K.closest("a")),!K.classList.contains("btn-delete-offline"))return;const de=K.closest("li"),be=await rh(de),_e=[be.info_hash];let pe={title:"删除离线记录",icon:"warning",html:`确定要删除「${be.name}」吗?`,showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"};be.delete_file_id&&(pe={...pe,input:"checkbox",inputValue:0,inputPlaceholder:"同时删除文件"});const{isConfirmed:S,value:ee}=await he.fire(pe);if(!S)return;const Z=!!ee;he.showLoading(),he.update({html:"正在删除..."}),await Wa(_e,n,Z,t.user_id),ue({icon:"success",title:"删除成功",timer:800,position:"top-end"}),await pl(_e);}async function F(j){d.value={...d.value,...j};}return (j,K)=>(A(),T("div",{class:He(["ce-offline-searcher",{loading:a.value}])},[c("form",Dx,[c("fieldset",null,[c("div",Mx,[ae(c("select",{"onUpdate:modelValue":K[0]||(K[0]=de=>o.value.KeywordType=de),size:"small",onChange:b},[(A(!0),T(De,null,Ge(fe(U_),(de,be)=>(A(),T("option",{key:be,value:be},G(de),9,Lx))),128))],544),[[gn,o.value.KeywordType]])]),c("div",Bx,[c("div",{class:He(["clearable-wrap",{"is-empty":o.value.keyword===""}])},[ae(c("input",{ref_key:"refKeyword",ref:r,"onUpdate:modelValue":K[1]||(K[1]=de=>o.value.keyword=de),placeholder:"请输入关键词",clearable:"",onKeyup:Yp(L,["enter"])},null,544),[[Ye,o.value.keyword]]),c("button",{type:"button",class:"pure-button pure-button-default button-xsmall btn-clear",onClick:_},"×")],2)]),c("div",Rx,[ae(c("select",{"onUpdate:modelValue":K[2]||(K[2]=de=>o.value.status=de),placeholder:"请选择",clearable:"",style:{width:"90px"}},[c("option",{value:fe(Jt).any},"-状态-",8,Nx),(A(!0),T(De,null,Ge(fe(Iw),(de,be)=>(A(),T("option",{key:be,value:be},G(de),9,Fx))),128))],512),[[gn,o.value.status]])]),c("div",Ux,[ae(c("input",{type:"number","onUpdate:modelValue":K[3]||(K[3]=de=>o.value.maxPage=de),min:1,max:1e5,title:"最多查找页数"},null,512),[[Ye,o.value.maxPage]]),K[5]||(K[5]=c("small",null,"页",-1))]),c("div",jx,[[fe(Wi).name,fe(Wi).nameRegex].includes(o.value.KeywordType)?(A(),T("label",Hx,[ae(c("input",{type:"checkbox","onUpdate:modelValue":K[4]||(K[4]=de=>o.value.stopOnFound=de),class:"stop-on-found"},null,512),[[Ve,o.value.stopOnFound]]),K[6]||(K[6]=U(" 找到即停 "))])):we("",!0),c("button",{type:"button",class:"pure-button pure-button-primary button-small",onClick:L},"查找"),K[7]||(K[7]=U("    ")),c("button",{type:"button",class:"pure-button pure-button-default button-xsmall",onClick:R,title:"清空关键词;重置列表到非查找状态"},"重置")])])]),c("div",{ref_key:"refList",ref:u,class:"list"},[ge(Ox,{items:l.value,space:fe(n),profile:fe(t)},null,8,["items","space","profile"])],512),d.value.visible?(A(),T("div",zx,[c("div",qx,[c("h2",null,G(d.value.content),1),d.value.subContent?(A(),T("p",Vx,G(d.value.subContent),1)):we("",!0)])])):we("",!0)],2))}}),Wx=je(Kx,[["__file","OfflineSearcher.vue"]]);function xn(e){return e.split("-")[1]}function hu(e){return e==="y"?"height":"width"}function Nn(e){return e.split("-")[0]}function Ao(e){return ["top","bottom"].includes(Nn(e))?"x":"y"}function nd(e,t,n){let{reference:s,floating:o}=e;const i=s.x+s.width/2-o.width/2,r=s.y+s.height/2-o.height/2,a=Ao(t),l=hu(a),u=s[l]/2-o[l]/2,d=a==="x";let h;switch(Nn(t)){case"top":h={x:i,y:s.y-o.height};break;case"bottom":h={x:i,y:s.y+s.height};break;case"right":h={x:s.x+s.width,y:r};break;case"left":h={x:s.x-o.width,y:r};break;default:h={x:s.x,y:s.y};}switch(xn(t)){case"start":h[a]-=u*(n&&d?-1:1);break;case"end":h[a]+=u*(n&&d?-1:1);}return h}const Gx=async(e,t,n)=>{const{placement:s="bottom",strategy:o="absolute",middleware:i=[],platform:r}=n,a=i.filter(Boolean),l=await(r.isRTL==null?void 0:r.isRTL(t));let u=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:h}=nd(u,s,l),y=s,v={},b=0;for(let _=0;_<a.length;_++){const{name:R,fn:L}=a[_],{x:N,y:D,data:B,reset:F}=await L({x:d,y:h,initialPlacement:s,placement:y,strategy:o,middlewareData:v,rects:u,platform:r,elements:{reference:e,floating:t}});d=N??d,h=D??h,v={...v,[R]:{...v[R],...B}},F&&b<=50&&(b++,typeof F=="object"&&(F.placement&&(y=F.placement),F.rects&&(u=F.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:o}):F.rects),{x:d,y:h}=nd(u,y,l)),_=-1);}return {x:d,y:h,placement:y,strategy:o,middlewareData:v}};function ch(e){return typeof e!="number"?function(t){return {top:0,right:0,bottom:0,left:0,...t}}(e):{top:e,right:e,bottom:e,left:e}}function Xo(e){return {...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Qr(e,t){var n;t===void 0&&(t={});const{x:s,y:o,platform:i,rects:r,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:y=!1,padding:v=0}=t,b=ch(v),_=a[y?h==="floating"?"reference":"floating":h],R=Xo(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(_)))==null||n?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),L=h==="floating"?{...r.floating,x:s,y:o}:r.reference,N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),D=await(i.isElement==null?void 0:i.isElement(N))&&await(i.getScale==null?void 0:i.getScale(N))||{x:1,y:1},B=Xo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:L,offsetParent:N,strategy:l}):L);return {top:(R.top-B.top+b.top)/D.y,bottom:(B.bottom-R.bottom+b.bottom)/D.y,left:(R.left-B.left+b.left)/D.x,right:(B.right-R.right+b.right)/D.x}}const hl=Math.min,Is=Math.max;function ml(e,t,n){return Is(e,hl(t,n))}const Jx=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:s=0}=e||{},{x:o,y:i,placement:r,rects:a,platform:l}=t;if(n==null)return {};const u=ch(s),d={x:o,y:i},h=Ao(r),y=hu(h),v=await l.getDimensions(n),b=h==="y"?"top":"left",_=h==="y"?"bottom":"right",R=a.reference[y]+a.reference[h]-d[h]-a.floating[y],L=d[h]-a.reference[h],N=await(l.getOffsetParent==null?void 0:l.getOffsetParent(n));let D=N?h==="y"?N.clientHeight||0:N.clientWidth||0:0;D===0&&(D=a.floating[y]);const B=R/2-L/2,F=u[b],j=D-v[y]-u[_],K=D/2-v[y]/2+B,de=ml(F,K,j),be=xn(r)!=null&&K!=de&&a.reference[y]/2-(K<F?u[b]:u[_])-v[y]/2<0;return {[h]:d[h]-(be?K<F?F-K:j-K:0),data:{[h]:de,centerOffset:K-de}}}}),Yx=["top","right","bottom","left"],sd=Yx.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),Qx={left:"right",right:"left",bottom:"top",top:"bottom"};function hr(e){return e.replace(/left|right|bottom|top/g,t=>Qx[t])}function dh(e,t,n){n===void 0&&(n=!1);const s=xn(e),o=Ao(e),i=hu(o);let r=o==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(r=hr(r)),{main:r,cross:hr(r)}}const Xx={start:"end",end:"start"};function Gi(e){return e.replace(/start|end/g,t=>Xx[t])}const Zx=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,s,o;const{rects:i,middlewareData:r,placement:a,platform:l,elements:u}=t,{crossAxis:d=!1,alignment:h,allowedPlacements:y=sd,autoAlignment:v=!0,...b}=e,_=h!==void 0||y===sd?function(_e,pe,S){return (_e?[...S.filter(ee=>xn(ee)===_e),...S.filter(ee=>xn(ee)!==_e)]:S.filter(ee=>Nn(ee)===ee)).filter(ee=>!_e||xn(ee)===_e||!!pe&&Gi(ee)!==ee)}(h||null,v,y):y,R=await Qr(t,b),L=((n=r.autoPlacement)==null?void 0:n.index)||0,N=_[L];if(N==null)return {};const{main:D,cross:B}=dh(N,i,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(a!==N)return {reset:{placement:_[0]}};const F=[R[Nn(N)],R[D],R[B]],j=[...((s=r.autoPlacement)==null?void 0:s.overflows)||[],{placement:N,overflows:F}],K=_[L+1];if(K)return {data:{index:L+1,overflows:j},reset:{placement:K}};const de=j.map(_e=>{const pe=xn(_e.placement);return [_e.placement,pe&&d?_e.overflows.slice(0,2).reduce((S,ee)=>S+ee,0):_e.overflows[0],_e.overflows]}).sort((_e,pe)=>_e[1]-pe[1]),be=((o=de.filter(_e=>_e[2].slice(0,xn(_e[0])?2:3).every(pe=>pe<=0))[0])==null?void 0:o[0])||de[0][0];return be!==a?{data:{index:L+1,overflows:j},reset:{placement:be}}:{}}}},eC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:s,middlewareData:o,rects:i,initialPlacement:r,platform:a,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:b=!0,..._}=e,R=Nn(s),L=Nn(r)===r,N=await(a.isRTL==null?void 0:a.isRTL(l.floating)),D=h||(L||!b?[hr(r)]:function(pe){const S=hr(pe);return [Gi(pe),S,Gi(S)]}(r));h||v==="none"||D.push(...function(pe,S,ee,Z){const xe=xn(pe);let ye=function(Pe,Ee,Ke){const Ze=["left","right"],ve=["right","left"],M=["top","bottom"],Ne=["bottom","top"];switch(Pe){case"top":case"bottom":return Ke?Ee?ve:Ze:Ee?Ze:ve;case"left":case"right":return Ee?M:Ne;default:return []}}(Nn(pe),ee==="start",Z);return xe&&(ye=ye.map(Pe=>Pe+"-"+xe),S&&(ye=ye.concat(ye.map(Gi)))),ye}(r,b,v,N));const B=[r,...D],F=await Qr(t,_),j=[];let K=((n=o.flip)==null?void 0:n.overflows)||[];if(u&&j.push(F[R]),d){const{main:pe,cross:S}=dh(s,i,N);j.push(F[pe],F[S]);}if(K=[...K,{placement:s,overflows:j}],!j.every(pe=>pe<=0)){var de,be;const pe=(((de=o.flip)==null?void 0:de.index)||0)+1,S=B[pe];if(S)return {data:{index:pe,overflows:K},reset:{placement:S}};let ee=(be=K.filter(Z=>Z.overflows[0]<=0).sort((Z,xe)=>Z.overflows[1]-xe.overflows[1])[0])==null?void 0:be.placement;if(!ee)switch(y){case"bestFit":{var _e;const Z=(_e=K.map(xe=>[xe.placement,xe.overflows.filter(ye=>ye>0).reduce((ye,Pe)=>ye+Pe,0)]).sort((xe,ye)=>xe[1]-ye[1])[0])==null?void 0:_e[0];Z&&(ee=Z);break}case"initialPlacement":ee=r;}if(s!==ee)return {reset:{placement:ee}}}return {}}}},tC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:s}=t,o=await async function(i,r){const{placement:a,platform:l,elements:u}=i,d=await(l.isRTL==null?void 0:l.isRTL(u.floating)),h=Nn(a),y=xn(a),v=Ao(a)==="x",b=["left","top"].includes(h)?-1:1,_=d&&v?-1:1,R=typeof r=="function"?r(i):r;let{mainAxis:L,crossAxis:N,alignmentAxis:D}=typeof R=="number"?{mainAxis:R,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...R};return y&&typeof D=="number"&&(N=y==="end"?-1*D:D),v?{x:N*_,y:L*b}:{x:L*b,y:N*_}}(t,e);return {x:n+o.x,y:s+o.y,data:o}}}};function nC(e){return e==="x"?"y":"x"}const sC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:o}=t,{mainAxis:i=!0,crossAxis:r=!1,limiter:a={fn:R=>{let{x:L,y:N}=R;return {x:L,y:N}}},...l}=e,u={x:n,y:s},d=await Qr(t,l),h=Ao(Nn(o)),y=nC(h);let v=u[h],b=u[y];if(i){const R=h==="y"?"bottom":"right";v=ml(v+d[h==="y"?"top":"left"],v,v-d[R]);}if(r){const R=y==="y"?"bottom":"right";b=ml(b+d[y==="y"?"top":"left"],b,b-d[R]);}const _=a.fn({...t,[h]:v,[y]:b});return {..._,data:{x:_.x-n,y:_.y-s}}}}},oC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:s,platform:o,elements:i}=t,{apply:r=()=>{},...a}=e,l=await Qr(t,a),u=Nn(n),d=xn(n),h=Ao(n)==="x",{width:y,height:v}=s.floating;let b,_;u==="top"||u==="bottom"?(b=u,_=d===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(_=u,b=d==="end"?"top":"bottom");const R=v-l[b],L=y-l[_];let N=R,D=L;if(h?D=hl(y-l.right-l.left,L):N=hl(v-l.bottom-l.top,R),!t.middlewareData.shift&&!d){const F=Is(l.left,0),j=Is(l.right,0),K=Is(l.top,0),de=Is(l.bottom,0);h?D=y-2*(F!==0||j!==0?F+j:Is(l.left,l.right)):N=v-2*(K!==0||de!==0?K+de:Is(l.top,l.bottom));}await r({...t,availableWidth:D,availableHeight:N});const B=await o.getDimensions(i.floating);return y!==B.width||v!==B.height?{reset:{rects:!0}}:{}}}};function un(e){var t;return ((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fn(e){return un(e).getComputedStyle(e)}const od=Math.min,Zo=Math.max,mr=Math.round;function fh(e){const t=Fn(e);let n=parseFloat(t.width),s=parseFloat(t.height);const o=e.offsetWidth,i=e.offsetHeight,r=mr(n)!==o||mr(s)!==i;return r&&(n=o,s=i),{width:n,height:s,fallback:r}}function ms(e){return hh(e)?(e.nodeName||"").toLowerCase():""}let Fi;function ph(){if(Fi)return Fi;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Fi=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Fi):navigator.userAgent}function Un(e){return e instanceof un(e).HTMLElement}function cs(e){return e instanceof un(e).Element}function hh(e){return e instanceof un(e).Node}function id(e){return typeof ShadowRoot>"u"?!1:e instanceof un(e).ShadowRoot||e instanceof ShadowRoot}function Xr(e){const{overflow:t,overflowX:n,overflowY:s,display:o}=Fn(e);return /auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!["inline","contents"].includes(o)}function iC(e){return ["table","td","th"].includes(ms(e))}function gl(e){const t=/firefox/i.test(ph()),n=Fn(e),s=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!s&&s!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some(o=>n.willChange.includes(o))||["paint","layout","strict","content"].some(o=>{const i=n.contain;return i!=null&&i.includes(o)})}function mh(){return !/^((?!chrome|android).)*safari/i.test(ph())}function mu(e){return ["html","body","#document"].includes(ms(e))}function gh(e){return cs(e)?e:e.contextElement}const yh={x:1,y:1};function ho(e){const t=gh(e);if(!Un(t))return yh;const n=t.getBoundingClientRect(),{width:s,height:o,fallback:i}=fh(t);let r=(i?mr(n.width):n.width)/s,a=(i?mr(n.height):n.height)/o;return r&&Number.isFinite(r)||(r=1),a&&Number.isFinite(a)||(a=1),{x:r,y:a}}function ci(e,t,n,s){var o,i;t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=gh(e);let l=yh;t&&(s?cs(s)&&(l=ho(s)):l=ho(e));const u=a?un(a):window,d=!mh()&&n;let h=(r.left+(d&&((o=u.visualViewport)==null?void 0:o.offsetLeft)||0))/l.x,y=(r.top+(d&&((i=u.visualViewport)==null?void 0:i.offsetTop)||0))/l.y,v=r.width/l.x,b=r.height/l.y;if(a){const _=un(a),R=s&&cs(s)?un(s):s;let L=_.frameElement;for(;L&&s&&R!==_;){const N=ho(L),D=L.getBoundingClientRect(),B=getComputedStyle(L);D.x+=(L.clientLeft+parseFloat(B.paddingLeft))*N.x,D.y+=(L.clientTop+parseFloat(B.paddingTop))*N.y,h*=N.x,y*=N.y,v*=N.x,b*=N.y,h+=D.x,y+=D.y,L=un(L).frameElement;}}return {width:v,height:b,top:y,right:h+v,bottom:y+b,left:h,x:h,y}}function ds(e){return ((hh(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zr(e){return cs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function wh(e){return ci(ds(e)).left+Zr(e).scrollLeft}function di(e){if(ms(e)==="html")return e;const t=e.assignedSlot||e.parentNode||id(e)&&e.host||ds(e);return id(t)?t.host:t}function bh(e){const t=di(e);return mu(t)?t.ownerDocument.body:Un(t)&&Xr(t)?t:bh(t)}function gr(e,t){var n;t===void 0&&(t=[]);const s=bh(e),o=s===((n=e.ownerDocument)==null?void 0:n.body),i=un(s);return o?t.concat(i,i.visualViewport||[],Xr(s)?s:[]):t.concat(s,gr(s))}function rd(e,t,n){return t==="viewport"?Xo(function(s,o){const i=un(s),r=ds(s),a=i.visualViewport;let l=r.clientWidth,u=r.clientHeight,d=0,h=0;if(a){l=a.width,u=a.height;const y=mh();(y||!y&&o==="fixed")&&(d=a.offsetLeft,h=a.offsetTop);}return {width:l,height:u,x:d,y:h}}(e,n)):cs(t)?Xo(function(s,o){const i=ci(s,!0,o==="fixed"),r=i.top+s.clientTop,a=i.left+s.clientLeft,l=Un(s)?ho(s):{x:1,y:1};return {width:s.clientWidth*l.x,height:s.clientHeight*l.y,x:a*l.x,y:r*l.y}}(t,n)):Xo(function(s){const o=ds(s),i=Zr(s),r=s.ownerDocument.body,a=Zo(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),l=Zo(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let u=-i.scrollLeft+wh(s);const d=-i.scrollTop;return Fn(r).direction==="rtl"&&(u+=Zo(o.clientWidth,r.clientWidth)-a),{width:a,height:l,x:u,y:d}}(ds(e)))}function ad(e){return Un(e)&&Fn(e).position!=="fixed"?e.offsetParent:null}function ld(e){const t=un(e);let n=ad(e);for(;n&&iC(n)&&Fn(n).position==="static";)n=ad(n);return n&&(ms(n)==="html"||ms(n)==="body"&&Fn(n).position==="static"&&!gl(n))?t:n||function(s){let o=di(s);for(;Un(o)&&!mu(o);){if(gl(o))return o;o=di(o);}return null}(e)||t}function rC(e,t,n){const s=Un(t),o=ds(t),i=ci(e,!0,n==="fixed",t);let r={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(s||!s&&n!=="fixed")if((ms(t)!=="body"||Xr(o))&&(r=Zr(t)),Un(t)){const l=ci(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop;}else o&&(a.x=wh(o));return {x:i.left+r.scrollLeft-a.x,y:i.top+r.scrollTop-a.y,width:i.width,height:i.height}}const aC={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:s,strategy:o}=e;const i=n==="clippingAncestors"?function(u,d){const h=d.get(u);if(h)return h;let y=gr(u).filter(R=>cs(R)&&ms(R)!=="body"),v=null;const b=Fn(u).position==="fixed";let _=b?di(u):u;for(;cs(_)&&!mu(_);){const R=Fn(_),L=gl(_);(b?L||v:L||R.position!=="static"||!v||!["absolute","fixed"].includes(v.position))?v=R:y=y.filter(N=>N!==_),_=di(_);}return d.set(u,y),y}(t,this._c):[].concat(n),r=[...i,s],a=r[0],l=r.reduce((u,d)=>{const h=rd(t,d,o);return u.top=Zo(h.top,u.top),u.right=od(h.right,u.right),u.bottom=od(h.bottom,u.bottom),u.left=Zo(h.left,u.left),u},rd(t,a,o));return {width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:s}=e;const o=Un(n),i=ds(n);if(n===i)return t;let r={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((o||!o&&s!=="fixed")&&((ms(n)!=="body"||Xr(i))&&(r=Zr(n)),Un(n))){const u=ci(n);a=ho(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop;}return {width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-r.scrollLeft*a.x+l.x,y:t.y*a.y-r.scrollTop*a.y+l.y}},isElement:cs,getDimensions:function(e){return Un(e)?fh(e):e.getBoundingClientRect()},getOffsetParent:ld,getDocumentElement:ds,getScale:ho,async getElementRects(e){let{reference:t,floating:n,strategy:s}=e;const o=this.getOffsetParent||ld,i=this.getDimensions;return {reference:rC(t,await o(n),s),floating:{x:0,y:0,...await i(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Fn(e).direction==="rtl"},lC=(e,t,n)=>{const s=new Map,o={platform:aC,...n},i={...o.platform,_c:s};return Gx(e,t,{...o,platform:i})};function vh(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?vh(e[n],t[n]):e[n]=t[n]);}const Yn={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:0,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function fi(e,t){let n=Yn.themes[e]||{},s;do s=n[t],typeof s>"u"?n.$extend?n=Yn.themes[n.$extend]||{}:(n=null,s=Yn[t]):n=null;while(n);return s}function uC(e){const t=[e];let n=Yn.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Yn.themes[n.$extend]||{}):n=null;while(n);return t.map(s=>`v-popper--theme-${s}`)}function ud(e){const t=[e];let n=Yn.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Yn.themes[n.$extend]||{}):n=null;while(n);return t}let Ks=!1;if(typeof window<"u"){Ks=!1;try{const e=Object.defineProperty({},"passive",{get(){Ks=!0;}});window.addEventListener("test",null,e);}catch{}}let _h=!1;typeof window<"u"&&typeof navigator<"u"&&(_h=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const xh=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),cd={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},dd={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function fd(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1);}function Oa(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e);}))}const Cn=[];let As=null;const pd={};function hd(e){let t=pd[e];return t||(t=pd[e]=[]),t}let yl=function(){};typeof window<"u"&&(yl=window.Element);function Je(e){return function(t){return fi(t.theme,e)}}const Da="__floating-vue__popper",Ch=()=>Be({name:"VPopper",provide(){return {[Da]:{parentPopper:this}}},inject:{[Da]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Je("disabled")},positioningDisabled:{type:Boolean,default:Je("positioningDisabled")},placement:{type:String,default:Je("placement"),validator:e=>xh.includes(e)},delay:{type:[String,Number,Object],default:Je("delay")},distance:{type:[Number,String],default:Je("distance")},skidding:{type:[Number,String],default:Je("skidding")},triggers:{type:Array,default:Je("triggers")},showTriggers:{type:[Array,Function],default:Je("showTriggers")},hideTriggers:{type:[Array,Function],default:Je("hideTriggers")},popperTriggers:{type:Array,default:Je("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Je("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Je("popperHideTriggers")},container:{type:[String,Object,yl,Boolean],default:Je("container")},boundary:{type:[String,yl],default:Je("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Je("strategy")},autoHide:{type:[Boolean,Function],default:Je("autoHide")},handleResize:{type:Boolean,default:Je("handleResize")},instantMove:{type:Boolean,default:Je("instantMove")},eagerMount:{type:Boolean,default:Je("eagerMount")},popperClass:{type:[String,Array,Object],default:Je("popperClass")},computeTransformOrigin:{type:Boolean,default:Je("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Je("autoMinSize")},autoSize:{type:[Boolean,String],default:Je("autoSize")},autoMaxSize:{type:Boolean,default:Je("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Je("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Je("preventOverflow")},overflowPadding:{type:[Number,String],default:Je("overflowPadding")},arrowPadding:{type:[Number,String],default:Je("arrowPadding")},arrowOverflow:{type:Boolean,default:Je("arrowOverflow")},flip:{type:Boolean,default:Je("flip")},shift:{type:Boolean,default:Je("shift")},shiftCrossAxis:{type:Boolean,default:Je("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Je("noAutoFocus")},disposeTimeout:{type:Number,default:Je("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return {isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return {popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return (e=this[Da])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return ((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init();},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition());},...["triggers","positioningDisabled"].reduce((e,t)=>(e[t]="$_refreshListeners",e),{}),...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.");},mounted(){this.init(),this.$_detachPopperNode();},activated(){this.$_autoShowHide();},deactivated(){this.hide();},beforeUnmount(){this.dispose();},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var s,o;(s=this.parentPopper)!=null&&s.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(n||!this.disabled)&&(((o=this.parentPopper)==null?void 0:o.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1;})),this.$emit("update:shown",!0));},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null);},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1);}},init(){var e;this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show());},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"));},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"));},async $_computePosition(){if(this.$_isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(tC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(Zx({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(sC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(eC({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Jx({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:s,rects:o,middlewareData:i})=>{let r;const{centerOffset:a}=i.arrow;return s.startsWith("top")||s.startsWith("bottom")?r=Math.abs(a)>o.reference.width/2:r=Math.abs(a)>o.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){const s=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:o,placement:i,middlewareData:r})=>{var a;if((a=r.autoSize)!=null&&a.skip)return {};let l,u;return i.startsWith("top")||i.startsWith("bottom")?l=o.reference.width:u=o.reference.height,this.$_innerNode.style[s==="min"?"minWidth":s==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[s==="min"?"minHeight":s==="max"?"maxHeight":"height"]=u!=null?`${u}px`:null,{data:{skip:!0},reset:{rects:!0}}}});}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(oC({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:s,availableHeight:o})=>{this.$_innerNode.style.maxWidth=s!=null?`${s}px`:null,this.$_innerNode.style.maxHeight=o!=null?`${o}px`:null;}})));const n=await lC(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}});},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),As&&this.instantMove&&As.instantMove&&As!==this.parentPopper){As.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"));},$_scheduleHide(e=null,t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(As=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"));},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Oa(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...gr(this.$_referenceNode),...gr(this.$_popperNode)],"scroll",()=>{this.$_computePosition();}));},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),s=n.parentNode.getBoundingClientRect(),o=t.x+t.width/2-(s.left+n.offsetLeft),i=t.y+t.height/2-(s.top+n.offsetTop);this.result.transformOrigin=`${o}px ${i}px`;}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<Cn.length;n++)t=Cn[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"));}Cn.push(this),document.body.classList.add("v-popper--some-open");for(const t of ud(this.theme))hd(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Oa(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus();},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,fd(Cn,this),Cn.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of ud(this.theme)){const s=hd(n);fd(s,this),s.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`);}As===this&&(As=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1);},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Oa(),this.classes.hideFrom=!1,this.classes.hideTo=!0;},$_autoShowHide(){this.shown?this.show():this.hide();},$_ensureTeleport(){if(this.$_isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0;},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}));};this.$_registerTriggerListeners(this.$_targetNodes,cd,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],cd,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n});};this.$_registerTriggerListeners(this.$_targetNodes,dd,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],dd,this.popperTriggers,this.popperHideTriggers,t);},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(s=>s.addEventListener(t,n,Ks?{passive:!0}:void 0));},$_registerTriggerListeners(e,t,n,s,o){let i=n;s!=null&&(i=typeof s=="function"?s(i):s),i.forEach(r=>{const a=t[r];a&&this.$_registerEventListeners(e,a,o);});},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:s,eventType:o,handler:i}=n;!e||e===o?s.forEach(r=>r.removeEventListener(o,i)):t.push(n);}),this.$_events=t;},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners());},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1;},300)));},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode);},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const s=n.getAttribute(e);s&&(n.removeAttribute(e),n.setAttribute(t,s));}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const s=e[n];s==null?t.removeAttribute(n):t.setAttribute(n,s);}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.$_pendingHide&&t.hide()),t=t.parentPopper;},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(ei>=e.left&&ei<=e.right&&ti>=e.top&&ti<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=ei-ns,s=ti-ss,o=t.left+t.width/2-ns+(t.top+t.height/2)-ss+t.width+t.height,i=ns+n*o,r=ss+s*o;return Ui(ns,ss,i,r,t.left,t.top,t.left,t.bottom)||Ui(ns,ss,i,r,t.left,t.top,t.right,t.top)||Ui(ns,ss,i,r,t.right,t.top,t.right,t.bottom)||Ui(ns,ss,i,r,t.left,t.bottom,t.right,t.bottom)}return !1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(_h?(document.addEventListener("touchstart",md,Ks?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",dC,Ks?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",md,!0),window.addEventListener("click",cC,!0)),window.addEventListener("resize",hC));function md(e){for(let t=0;t<Cn.length;t++){const n=Cn[t];try{const s=n.popperNode();n.$_mouseDownContains=s.contains(e.target);}catch{}}}function cC(e){kh(e);}function dC(e){kh(e,!0);}function kh(e,t=!1){const n={};for(let s=Cn.length-1;s>=0;s--){const o=Cn[s];try{const i=o.$_containsGlobalTarget=fC(o,e);o.$_pendingHide=!1,requestAnimationFrame(()=>{if(o.$_pendingHide=!1,!n[o.randomId]&&gd(o,i,e)){if(o.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&i){let a=o.parentPopper;for(;a;)n[a.randomId]=!0,a=a.parentPopper;return}let r=o.parentPopper;for(;r&&gd(r,r.$_containsGlobalTarget,e);)r.$_handleGlobalClose(e,t),r=r.parentPopper;}});}catch{}}}function fC(e,t){const n=e.popperNode();return e.$_mouseDownContains||n.contains(t.target)}function gd(e,t,n){return n.closeAllPopover||n.closePopover&&t||pC(e,n)&&!t}function pC(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function hC(e){for(let t=0;t<Cn.length;t++)Cn[t].$_computePosition(e);}let ns=0,ss=0,ei=0,ti=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{ns=ei,ss=ti,ei=e.clientX,ti=e.clientY;},Ks?{passive:!0}:void 0);function Ui(e,t,n,s,o,i,r,a){const l=((r-o)*(t-i)-(a-i)*(e-o))/((a-i)*(n-e)-(r-o)*(s-t)),u=((n-e)*(t-i)-(s-t)*(e-o))/((a-i)*(n-e)-(r-o)*(s-t));return l>=0&&l<=1&&u>=0&&u<=1}const mC={extends:Ch()},ea=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n};function gC(e,t,n,s,o,i){return A(),T("div",{ref:"reference",class:He(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[nt(e.$slots,"default",hv(Hp(e.slotData)))],2)}const yC=ea(mC,[["render",gC]]);function wC(){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 s=e.indexOf("rv:");return parseInt(e.substring(s+3,e.indexOf(".",s)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}let Ji;function wl(){wl.init||(wl.init=!0,Ji=wC()!==-1);}var ta={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){wl(),Hs(()=>{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",Ji&&this.$el.appendChild(e),e.data="about:blank",Ji||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&&(!Ji&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null);}}};const bC=n1();e1("data-v-b329ee4c");const vC={class:"resize-observer",tabindex:"-1"};t1();const _C=bC((e,t,n,s,o,i)=>(A(),ot("div",vC)));ta.render=_C;ta.__scopeId="data-v-b329ee4c";ta.__file="src/components/ResizeObserver.vue";const $h=(e="theme")=>({computed:{themeClass(){return uC(this[e])}}}),xC=Be({name:"VPopperContent",components:{ResizeObserver:ta},mixins:[$h()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),CC=["id","aria-hidden","tabindex","data-popper-placement"],kC={ref:"inner",class:"v-popper__inner"},$C=c("div",{class:"v-popper__arrow-outer"},null,-1),SC=c("div",{class:"v-popper__arrow-inner"},null,-1),EC=[$C,SC];function AC(e,t,n,s,o,i){const r=zs("ResizeObserver");return A(),T("div",{id:e.popperId,ref:"popover",class:He(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Rn(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Yp(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[c("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),c("div",{class:"v-popper__wrapper",style:Rn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[c("div",kC,[e.mounted?(A(),T(De,{key:0},[c("div",null,[nt(e.$slots,"default")]),e.handleResize?(A(),ot(r,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):we("",!0)],64)):we("",!0)],512),c("div",{ref:"arrow",class:"v-popper__arrow-container",style:Rn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},EC,4)],4)],46,CC)}const Sh=ea(xC,[["render",AC]]),Eh={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},PC=Be({name:"VPopperWrapper",components:{Popper:yC,PopperContent:Sh},mixins:[Eh,$h("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Element,Boolean],default:void 0},boundary:{type:[String,Element],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function IC(e,t,n,s,o,i){const r=zs("PopperContent"),a=zs("Popper");return A(),ot(a,pu({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=l=>e.$emit("update:shown",l)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:Re(({popperId:l,isShown:u,shouldMountContent:d,skipTransition:h,autoHide:y,show:v,hide:b,handleResize:_,onResize:R,classes:L,result:N})=>[nt(e.$slots,"default",{shown:u,show:v,hide:b}),ge(r,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:u,mounted:d,"skip-transition":h,"auto-hide":y,"handle-resize":_,classes:L,result:N,onHide:b,onResize:R},{default:Re(()=>[nt(e.$slots,"popper",{shown:u,hide:b})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const gu=ea(PC,[["render",IC]]),TC={...gu,name:"VDropdown",vPopperTheme:"dropdown"},OC={...gu,name:"VMenu",vPopperTheme:"menu"},DC={...gu,name:"VTooltip",vPopperTheme:"tooltip"},MC=Be({name:"VTooltipDirective",components:{Popper:Ch(),PopperContent:Sh},mixins:[Eh],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>fi(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>fi(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return {asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0);},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize();}},created(){this.$_fetchId=0;},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,n=this.content(this);n.then?n.then(s=>this.onResult(t,s)):this.onResult(t,n);}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t);},onShow(){this.$_isShown=!0,this.fetchContent();},onHide(){this.$_isShown=!1;}}}),LC=["innerHTML"],BC=["textContent"];function RC(e,t,n,s,o,i){const r=zs("PopperContent"),a=zs("Popper");return A(),ot(a,pu({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:Re(({popperId:l,isShown:u,shouldMountContent:d,skipTransition:h,autoHide:y,hide:v,handleResize:b,onResize:_,classes:R,result:L})=>[ge(r,{ref:"popperContent",class:He({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:u,mounted:d,"skip-transition":h,"auto-hide":y,"handle-resize":b,classes:R,result:L,onHide:v,onResize:_},{default:Re(()=>[e.html?(A(),T("div",{key:0,innerHTML:e.finalContent},null,8,LC)):(A(),T("div",{key:1,textContent:G(e.finalContent)},null,8,BC))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const NC=ea(MC,[["render",RC]]),Ah="v-popper--has-tooltip";function FC(e,t){let n=e.placement;if(!n&&t)for(const s of xh)t[s]&&(n=s);return n||(n=fi(e.theme||"tooltip","placement")),n}function Ph(e,t,n){let s;const o=typeof t;return o==="string"?s={content:t}:t&&o==="object"?s=t:s={content:!1},s.placement=FC(s,n),s.targetNodes=()=>[e],s.referenceNode=()=>e,s}let Ma,pi,UC=0;function jC(){if(Ma)return;pi=oe([]),Ma=qn({name:"VTooltipDirectiveApp",setup(){return {directives:pi}},render(){return this.directives.map(t=>r0(NC,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Ma.mount(e);}function HC(e,t,n){jC();const s=oe(Ph(e,t,n)),o=oe(!1),i={id:UC++,options:s,shown:o};return pi.value.push(i),e.classList&&e.classList.add(Ah),e.$_popper={options:s,item:i,show(){o.value=!0;},hide(){o.value=!1;}}}function Ih(e){if(e.$_popper){const t=pi.value.indexOf(e.$_popper.item);t!==-1&&pi.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget;}e.classList&&e.classList.remove(Ah);}function yd(e,{value:t,modifiers:n}){const s=Ph(e,t,n);if(!s.content||fi(s.theme||"tooltip","disabled"))Ih(e);else {let o;e.$_popper?(o=e.$_popper,o.options.value=s):o=HC(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?o.show():o.hide());}}const zC={beforeMount:yd,updated:yd,beforeUnmount(e){Ih(e);}};function wd(e){e.addEventListener("click",Th),e.addEventListener("touchstart",Oh,Ks?{passive:!0}:!1);}function bd(e){e.removeEventListener("click",Th),e.removeEventListener("touchstart",Oh),e.removeEventListener("touchend",Dh),e.removeEventListener("touchcancel",Mh);}function Th(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all;}function Oh(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",Dh),t.addEventListener("touchcancel",Mh);}}function Dh(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const n=e.changedTouches[0],s=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-s.screenY)<20&&Math.abs(n.screenX-s.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all;}}function Mh(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1;}const qC={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&wd(e);},updated(e,{value:t,oldValue:n,modifiers:s}){e.$_closePopoverModifiers=s,t!==n&&(typeof t>"u"||t?wd(e):bd(e));},beforeUnmount(e){bd(e);}};function VC(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,vh(Yn,t),e.directive("tooltip",zC),e.directive("close-popper",qC),e.component("VTooltip",DC),e.component("VDropdown",TC),e.component("VMenu",OC));}const na={version:"2.0.0",install:VC,options:Yn};async function KC(){const e=await hs(),{host:t,search:n}=location;t==="115.com"&&Z_(e),!(t!=="115.com"||!n.includes("offline=1&tab=offline"))&&(await WC(),await GC(),X_());}async function WC(){console.log("[Cloud115 Enhancer] Injecting offline exporter...");const e="cloud115OfflineExporter",t=await hs();document.body.classList.add("cloud115-page-offline"),t.enableListManagement&&document.body.classList.add("ce-list-m"),$("body").append(`<div id="${e}"/>`);const n=qn(hx);n.use(na),n.mount(`#${e}`);}async function GC(){console.log("[Cloud115 Enhancer] Injecting offline searcher...");const e="cloud115OfflineSearcher",t=await hs();document.body.classList.add("cloud115-page-offline"),t.enableSearcher&&document.body.classList.add("ce-list-s"),$("body").append(`<div id="${e}"/>`);const n=qn(Wx);n.use(na),n.mount(`#${e}`);}var Ft=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.OPEN_CLEANER=1]="OPEN_CLEANER",e[e.CLOSE_CLEANER=2]="CLOSE_CLEANER",e[e.CLEANER_OPENED=3]="CLEANER_OPENED",e[e.INVOKE_FILTER=4]="INVOKE_FILTER",e[e.OPEN_EMPTY_CLEANER=5]="OPEN_EMPTY_CLEANER",e[e.CLOSE_EMPTY_CLEANER=6]="CLOSE_EMPTY_CLEANER",e[e.EMPTY_CLEANER_OPENED=7]="EMPTY_CLEANER_OPENED",e))(Ft||{});const JC={class:"cloud115-eh-cleaner-trigger"},YC=Be({__name:"Trigger",setup(e){oe(!1);const t=oe(!0);async function n(a){switch(a.data.type){case Ft.INVOKE_FILTER:await db(a.data.payload);break;case Ft.CLEANER_OPENED:await r(a.data.payload);break}}qt(async()=>{console.log("[CleanerTrigger onMounted]"),window.addEventListener("message",n);}),Gs(()=>{console.log("[CleanerTrigger onUnmounted]"),window.removeEventListener("message",n);});async function s(){await i(),Ns({type:Ft.OPEN_CLEANER},window.parent);}let o=0;async function i(){const a=Ul("cid");!a||a==="0"||(clearTimeout(o),o=window.setTimeout(async()=>{ue({icon:"error",text:"打开清理工具失败!"});},1e3));}async function r(a){console.log("成功打开Cleaner"),clearTimeout(o);}return (a,l)=>ae((A(),T("span",JC,[nt(a.$slots,"default",{},()=>[c("span",{class:"btn-open pure-button pure-button-primary",onClick:s,title:"打开清理文件工具"},l[0]||(l[0]=[c("span",null,"清理文件",-1)]))])],512)),[[Nt,t.value]])}}),QC=je(YC,[["__file","Trigger.vue"]]);var qe=(e=>(e[e.suffix=0]="suffix",e[e.keyword=1]="keyword",e))(qe||{}),st=(e=>(e[e.filter=0]="filter",e[e.dirKeyword=1]="dirKeyword",e[e.fileKeyword=2]="fileKeyword",e[e.fileHash=3]="fileHash",e))(st||{});const Lh={0:"筛选",1:"目录名关键词",2:"文件名关键词",3:"文件sha1"};var St=(e=>(e[e.append=0]="append",e[e.cover=1]="cover",e[e.clear=2]="clear",e[e.reset=3]="reset",e[e.assign=4]="assign",e))(St||{}),qo=(e=>(e.all="all",e.file="file",e.dir="dir",e))(qo||{});const XC={all:"全部",file:"文件",dir:"目录"};var yr=(e=>(e.all="all",e.matched="matched",e.notMatched="unmatched",e))(yr||{});const ZC={all:"全部",matched:"有匹配",unmatched:"无匹配"};var vt=(e=>(e.none="",e.prepare="查询文件...",e.prepared="查询文件完成",e.prepareFailed="查询失败",e.deleting="删除文件中...",e.success="清理完成",e.failed="清理失败",e))(vt||{});const ek=new Map([[vn.all,Gt.all],[vn.video,Gt.video],[vn.audio,Gt.audio],[vn.image,Gt.image],[vn.doc,Gt.doc],[vn.app,Gt.app],[vn.archive,Gt.archive]]),bl=Xw(ek),tk=[["文件名关键词","广告abc","包含`广告abc`,不区分大小写"],["目录名关键词","#广告abc","在关键词前面加上`#`"],["策略-不可分割匹配",'"广告 abc"',"匹配`广告 abc啊`,不匹配`广告啊abc`,即空格部分也进行匹配,使用双引号包裹关键词。"],["文件sha1","7309dd0d50007e027180f02301ccba8ba0fd971f//文件xxx","关键词部分长度为40且只包含a-f0-9的字符会被视为sha1"],["策略-区分大小写","广告abc/s","在关键词后面加上`/s` (s 可理解为 sensitive 首字母)"],["策略-等于","广告abc.mp4/=","在关键词后面加上`/=`,不区分大小写"],["策略-等于且区分大小写","广告abc.mp4/==","在关键词后面加上`/==`,也可以用`/s,=` (多个策略使用英文逗号隔开)"],["策略-指定最大大小","广告abc.mp4/10","在关键词后面加上`/10`,该大小将覆盖所在分组的设定"],["策略-正则表达式","^abc/r","在关键词后面加上`/r`"],["添加备注","广告abc//备注内容","在策略后面加上`/备注内容`,`//`表示策略为空,有策略的示例: 广告abc/s/备注内容"]],nk="##",yu="#",sk="=",ok="==",ik="s",rk="r",Bh="#",ak=[{type:qe.suffix,queryOnly:!1,label:"默认",memo:"请谨慎使用!",size:5,values:["txt","url","html","htm","mht"]},{type:qe.suffix,queryOnly:!0,label:"🔍115筛选",memo:"仅用于查询",size:102400,values:["#视频","#音频","#图片","#文档","#应用","#压缩包"]}],lk=["#論壇文宣","#宣傳文本","最新地址","最新网址","论坛地址","永久地址","地址发布","扫码 安装","扫码 下载","免費 掃碼","澳门 赌场","皇冠 赌场","免费18禁手游","免费黄游手游","在线影城","秀场 小视频","裸秀 主播 免费看","第一会所 宣传","SIS 影视联盟",'"最 新 位 址 獲 取"','"社 區 最 新 情 報"','"聚 合 全 網 H 直 播"'],uk=["#論壇文宣","美女 裸聊","秀场 视频","澳门 赌场","皇冠 赌场","影视 联盟","2048 社区","1024 社区","会所 宣传","扫码 安装","社区 关注","免費 掃碼","找回家","防屏蔽","封殺00","秀场 小视频","裸秀 主播 免费看",'"Free Adult Movie"',"奔驰宝马","最新网址","最新免費","免费试用","美女荷官","凤凰娛樂","观看指南","女神在线","更多无水印","免费在线","国产精品","免費原版","獨家資源","成人光碟","最新AV","FDZone","发布器","QR-1024","在這等你","激情祼聊","看妹不用等","真人祼聊","zz.jpg","X8B9.COM.gif","第一会所 宣传","SIS 影视联盟","淘精網","激情咖啡","手機影城","免费手机看片","U視娛樂","加微信","我愛看片手機版","平台正式上線"],ck=[{type:qe.keyword,queryOnly:!1,label:"默认",memo:"请谨慎使用!",size:100,values:lk},{type:qe.keyword,queryOnly:!1,label:"⚠️大杀器⚠️",memo:"请谨慎使用!",size:100,values:uk},{type:qe.keyword,queryOnly:!0,label:"远程关键词示例",size:100,values:[],url:"https://gist.githubusercontent.com/northsea4/a6c1945eb12fe7a7ef125c323b83b3fc/raw?t={t}"},{type:qe.keyword,queryOnly:!0,label:"只查询示例",memo:"这是一个示例",size:10240,values:["奔驰宝马","美女荷官",'"最 新 位 址 獲 取"']}];function Os(e={}){return {id:Date.now().toString(),type:qe.keyword,queryOnly:!1,label:"",values:"",memo:"",size:0,sort:0,createdAt:0,updatedAt:0}}function dk(e,t){if(e=e.trim(),t===qe.keyword)return yk(e);if(t!==qe.suffix)return null;const n=pk(e);return {type:st.filter,value:e,maxSize:-1,forDir:!1,isFilter:n,pattern:n?hk(e).toString():e,num:-1,fileIds:[],size:-1,status:vt.none}}function fk(e){return [vt.prepare,vt.deleting].includes(e.status)}function vd(e,t){const n=[];return fk(e)&&n.push("active"),(e.type===st.filter||e.isFilter)&&n.push("is-filter"),e.type===st.dirKeyword&&n.push("is-dir"),e.num&&n.push(`item-${yr.matched}`),e.num===0&&n.push(`item-${yr.notMatched}`),n}function pk(e){return new RegExp(`^${Bh}[\\S]{2,}`).test(e)}function hk(e){const t=new RegExp(`^${Bh}`);let n=e.replace(t,"");const s=bl.get(n);if(!s)throw new Error(`"${e}"不是有效的筛选!`);return s}async function Ts(e,t){let n;typeof e=="string"?n=e.split(/[\r\n]+/):n=e;const s=new Set;for(let i=0;i<n.length;i++){const r=n[i].trim();r.length>1&&s.add(r);}const o=[];return s.forEach(i=>{const r=dk(i,t);r&&o.push(r);}),o}function mk(e){return /(^'.+'$)|(^".+"$)/.test(e)}function _d(e,t){return e===""||!t.patternRegexp?!1:(t.pattern,t.patternRegexp.test(e))}function xd(e,t,n){const s=Rh(e);s.num=0,s.size=0,s.fileIds=[];const o=new Set;let i=0;n.maxSize&&(i=n.maxSize*1024*1024),e.maxSize>=0&&(i=e.maxSize*1024*1024);for(let r=0;r<t.length;r++){const a=!!t[r].fid,l=a?t[r].fid:t[r].cid;if(!l||(e.type===st.dirKeyword||e.type===st.fileKeyword)&&(a&&e.type!==st.fileKeyword||!a&&e.type!==st.dirKeyword))continue;const u=parseFloat(t[r].s);i&&a&&u>i||e.type===st.fileKeyword&&!_d(t[r].n,e)||e.type===st.dirKeyword&&!_d(t[r].n,e)||e.type===st.fileHash&&t[r].sha!==e.pattern.toUpperCase()||o.has(l)||(o.add(l),s.size+=u);}return s.fileIds=Array.from(o),s.num=s.fileIds.length,s}function Rh(e={}){return {type:st.fileKeyword,value:"",pattern:"",patternRegexp:null,maxSize:-1,size:-1,fullMatch:!1,caseSensitive:!1,isRegexp:!1,impartible:!1,memo:"",...e}}function gk(e){if(e=e.trim().replace(/\/+$/,"").replace(/^\/+/,""),e==="")return null;const t={caseSensitive:!1,fullMatch:!1,maxSize:-1,isRegexp:!1};let n=!1;const s=e.split(/\s*,\s*/);for(let o=0;o<s.length;o++)s[o]=s[o].trim(),s[o]!==""&&(/^\d+$/.test(s[o])&&(t.maxSize=parseInt(s[o])),s[o]===sk&&(t.fullMatch=!0),s[o]===ok&&(t.fullMatch=!0,t.caseSensitive=!0,n=!0),s[o]===ik&&(t.caseSensitive=!0,n=!0),s[o]===rk&&(t.isRegexp=!0));return t.isRegexp&&(t.caseSensitive=n?t.caseSensitive:!1,t.fullMatch=!1),t}function yk(e){const t=Rh();if(e=e.trim(),e===""||e.startsWith("//"))return null;if(/^[a-fA-F0-9]{40}(\/.*)?$/.test(e))return t.type=st.fileHash,t.value=e,t.pattern=e.substring(0,40).toLowerCase(),t.memo=e.length>41?e.substring(41):void 0,t;const n=/^(#+)?([^\/]+)(\/[^\/]*)?(\/.+)?/,s=e.match(n);if(s){if(s[2]==="")return null;if(s[3]){const o=gk(s[3]);o&&(t.caseSensitive=o.caseSensitive,t.fullMatch=o.fullMatch,t.maxSize=o.maxSize,t.isRegexp=o.isRegexp);}if(t.value=e,t.pattern=s[2].trim(),s[1]===nk)return t.type=st.filter,null;s[1]===yu?t.type=st.dirKeyword:t.type=st.fileKeyword,s[4]&&(t.memo=s[4].substring(1).trim());}return t.impartible=mk(t.pattern),t.impartible&&(t.pattern=t.pattern.replace(/^['"]|['"]$/g,"")),t.type===st.dirKeyword&&(t.maxSize=-1),t.patternRegexp=wk(t),t}function wk(e){if(e.pattern===""||![st.dirKeyword,st.fileKeyword].includes(e.type))return null;let t="";if(e.caseSensitive||(t+="i"),e.isRegexp)return new RegExp(e.pattern,t);let n=Ew(e.pattern);return e.fullMatch&&(n=`^${n}$`),e.impartible||(n=n.replace(/\s+/g,".*")),new RegExp(n,t)}function bk(e){const{type:t,pattern:n,isRegexp:s}=e;return t===st.filter?bl.has(n)?{type:bl.get(n)}:/^\d$/.test(n)?{type:parseInt(n)}:{suffix:n}:s?{search_value:n.replace(/^\^/,"").replace(/\$$/,"")}:{search_value:n}}function so(e,t,n){if(n){const s=xr(e,{});Ha(e,{...s,...t});}else Ha(e,t);}function vk(e={}){return jl({okStatus:[200],useFileReader:!1,fileReader:{encoding:"utf-8",checkBlank:!0}},e)}async function Nh(e,t={}){return new Promise((n,s)=>{const o=t.useFileReader?"blob":"text";Dl({method:"GET",url:e,responseType:o,nocache:!t.cache,onload:async i=>{if(t.okStatus&&!t.okStatus.includes(i.status)&&s(new Error(`请求失败!status=${i.status},statusText=${i.statusText}`)),t.useFileReader){let r=i.response,a=new FileReader;a.onload=l=>{var d;console.log("[load] onload",l);let u=(d=l.target)==null?void 0:d.result;typeof u=="string"?t.fileReader.checkBlank&&u===""?s(new Error("读取内容为空字符串")):n(u):s(new Error("读取结果不是字符串"));},a.readAsText(r,t.fileReader.encoding);return}n(i.response);},onerror:i=>{console.error("[load] onerror",i),s(`请求失败!status=${i==null?void 0:i.status},statusText=${i==null?void 0:i.statusText}`);}});})}async function _k(e){try{new URL(e.url);}catch{throw new Error(`无效的URL:${e.url}`)}e.url.replace("{t}",Date.now().toString());let t="";try{t=await Nh(e.url);}catch(n){throw new Error(`无法加载URL:${n.toString()}`)}if(t=t.trim(),t==="")throw new Error("URL返回内容为空!");e.values=t,e.lastSync=yo();}const Fh=function(){return document.ontouchstart!==null?"click":"touchstart"},wr="__vue_click_away__",Uh=function(e,t,n){jh(e);let s=n.context,o=t.value,i=!1;setTimeout(function(){i=!0;},0),e[wr]=function(r){if((!e||!e.contains(r.target))&&o&&i&&typeof o=="function")return o.call(s,r)},document.addEventListener(Fh(),e[wr],!1);},jh=function(e){document.removeEventListener(Fh(),e[wr],!1),delete e[wr];},xk=function(e,t,n){t.value!==t.oldValue&&Uh(e,t,n);},Ck={mounted:Uh,updated:xk,unmounted:jh},kk=Be({__name:"Drawer",props:{isOpen:{type:Boolean,default:!1},maxWidth:{default:"600px"},speed:{default:100},bgColor:{default:"#fff"}},emits:["close"],setup(e,{emit:t}){const n=e,s=oe(!1),o=oe(!1),i=l=>{const u=document.querySelector("body");u.style.overflow=l?"hidden":"";},r=l=>{l.target.classList.contains("ce-drawer__overlay")&&(o.value||a("close"));},a=t;return qt(()=>{s.value=n.isOpen;}),ht(()=>n.isOpen,l=>{o.value=!0,l?(i(!0),s.value=!0):(i(!1),setTimeout(()=>s.value=!1,n.speed)),setTimeout(()=>o.value=!1,n.speed);}),(l,u)=>(A(),T("div",null,[c("div",{class:He(["ce-drawer",{"is-open":l.isOpen,"is-visible":s.value}])},[c("div",{class:"ce-drawer__overlay",style:Rn({transitionDuration:`${l.speed}ms`})},null,4),ae((A(),T("div",{class:"ce-drawer__content",style:Rn({maxWidth:l.maxWidth,transitionDuration:`${l.speed}ms`,backgroundColor:l.bgColor})},[nt(l.$slots,"default")],4)),[[fe(Ck),r]])],2)]))}}),hi=je(kk,[["__file","Drawer.vue"]]),$k={class:"k-p-e"},Sk={class:"ce-tag-plain"},Ek={class:"text-primary"},Ak={class:"text-success"},Pk={key:0,class:"ce-hr"},Ik=Be({__name:"KeywordPatternExamples",setup(e){return (t,n)=>(A(),T("div",$k,[n[2]||(n[2]=c("h4",{style:{"margin-bottom":"6px"}},"关键词说明(前4种类型已满足大部分需求场景)",-1)),(A(!0),T(De,null,Ge(fe(tk),(s,o)=>(A(),T("div",{key:o},[c("div",null,[c("span",Sk,G(s[0]),1),n[0]||(n[0]=U("  ")),c("span",Ek,G(s[1]),1),n[1]||(n[1]=U("  ")),c("span",Ak,G(s[2]),1)]),o===3?(A(),T("hr",Pk)):we("",!0)]))),128))]))}}),Hh=je(Ik,[["__file","KeywordPatternExamples.vue"]]),Tk={class:"group-manager"},Ok={key:0,class:"label-readonly",title:"当前分组只可用于查询"},Dk={key:1,class:"label-readonly",title:"当前分组特征为远程文本"},Mk=["title"],Lk={class:"groups-list"},Bk={key:0,class:"text-danger"},Rk={class:"pure-table pure-table-bordered"},Nk={align:"center"},Fk=["onClick"],Uk={class:"group-confirm-delete"},jk=["onClick"],Hk=["onClick"],zk={class:"pure-form pure-form-stacked group-form"},qk={class:"pure-control-group"},Vk={class:"pure-control-group"},Kk={key:0,class:"pure-control-group"},Wk={class:"pure-form-message"},Gk={class:"pure-control-group"},Jk={class:"pure-form-message"},Yk={key:0,class:"text-info"},Qk={key:1,class:"text-info"},Xk=["onClick"],Zk={class:"values"},e2={class:"v-input"},t2={class:"v-help"},n2={class:"pure-control-group"},s2={class:"pure-control-group"},o2=Be({__name:"GroupManager",props:{type:{},storageKey:{},config:{}},emits:["change"],setup(e,{emit:t}){const n=e,s=t,o=oe(!1),i=oe(Os({type:n.type})),r=oe([]),a=oe(!1),l=oe(Os({type:n.type})),u=oe(null),d=oe(!1),h=oe(null),y=[Gt.video,Gt.audio,Gt.image,Gt.doc,Gt.app,Gt.archive];ht(r,async pe=>{console.log("[groups change]",pe),so(n.storageKey,pe,!1),pe.length||(a.value=!1,d.value=!1);},{deep:!0});let v=!1;qt(async()=>{if(!v){v=!0,r.value=xr(n.storageKey,[]),console.log("[groups]",r.value);const{suffixGroup:pe,keywordGroup:S}=n.config;if(r.value.length){const ee=r.value.find(Z=>Z.id===(n.type===qe.suffix?pe:S));console.log("[group last choosen]",ee),i.value=ee||r.value[0],s("change",i.value);}else n.type===qe.suffix&&!pe&&(await F(),so(yt.cleanerConfig,{suffixGroup:i.value.id},!0)),n.type===qe.keyword&&!S&&(await F(),so(yt.cleanerConfig,{keywordGroup:i.value.id},!0));}}),Gs(async()=>{});async function b(pe){const S=`#${pe}`;l.value.values.includes(S)||(l.value.values+=(`
`+S).trim()+`
`);}async function _(){var pe;(pe=u.value)==null||pe.hide();}async function R(){d.value=!1;}async function L(){d.value=!0,a.value=!1;}async function N(){h.value.show();}async function D(){h.value.hide();}async function B(){l.value.createdAt&&(l.value=Os({type:n.type})),l.value.size=5,n.type===qe.keyword&&(l.value.size=100),o.value=!0;}async function F(){let pe=[];n.type===qe.suffix?pe=ak:pe=ck;for(let S=0;S<pe.length;S++){const ee={...Os({type:pe[S].type}),...pe[S]};l.value=ee,l.value.type=ee.type,l.value.queryOnly=ee.queryOnly,l.value.size=ee.size,l.value.label=ee.label,l.value.memo=ee.memo,l.value.createdAt=0,l.value.updatedAt=0,Array.isArray(ee.values)?l.value.values=ee.values.join(`
`):l.value.values=ee.values,await de(),await D();}r.value.length&&await be(r.value[0]);}async function j(pe,S=!1){if(!S){const{isConfirmed:Z}=await he.fire({html:`确定删除"${i.value.label}"?`,icon:"question"});if(!Z)return}let ee=-1;for(let Z=0;Z<r.value.length;Z++)if(r.value[Z].id===i.value.id){ee=Z;break}r.value.splice(ee,1),r.value.length?i.value=r.value[0]:i.value=Os({type:n.type}),s("change",i.value),await ue({icon:"success",title:"删除成功!",timer:1500});}async function K(pe){l.value=pe,o.value=!0;}async function de(){let pe=[];try{pe=await Ts(l.value.values,l.value.type);}catch(ye){await he.fire({icon:"error",text:ye.message});return}if(l.value.label=l.value.label.trim(),l.value.memo=l.value.memo.trim(),l.value.label===""){await ue({icon:"warning",text:"请输入标题!"});return}let S=-1;for(let ye=0;ye<r.value.length;ye++)if(r.value[ye].id===l.value.id&&l.value.id){S=ye;break}const ee=yo();l.value.updatedAt=ee,l.value.createdAt||(l.value.createdAt=ee);let Z=[];for(let ye=0;ye<pe.length;ye++)Z.push(pe[ye].value);l.value.values=Z.join(`
`).trim(),console.log("[saveGroup]",l.value,S),S===-1?(r.value.push(l.value),ue({icon:"success",text:"添加成功"})):(r.value[S]=l.value,ue({icon:"success",text:"更新成功"}));const xe=!i.value.createdAt;xe&&(i.value=l.value),(l.value.id===i.value.id||xe)&&s("change",l.value),await _();}async function be(pe){i.value=pe;const{id:S}=i.value;n.type===qe.suffix&&(n.config.suffixGroup=S,so(yt.cleanerConfig,{suffixGroup:S},!0)),n.type===qe.keyword&&(n.config.keywordGroup=S,so(yt.cleanerConfig,{keywordGroup:S},!0)),s("change",pe);}async function _e(pe,S=!1){try{await _k(pe);}catch(ee){console.error(ee),ue({icon:"error",text:ee.message});return}S?(l.value=pe,await de()):ue({icon:"success",text:"读取成功"});}return (pe,S)=>{const ee=zs("VDropdown");return A(),T("div",Tk,[i.value.queryOnly?(A(),T("span",Ok," 🔍 只查询 ")):we("",!0),i.value.url?(A(),T("span",Dk," 🔗 远程 ")):we("",!0),i.value.createdAt?(A(),T("span",{key:2,class:"group-label",title:`当前使用的分组: ${i.value.label}`},[c("span",null,[S[11]||(S[11]=c("small",null,"分组:",-1)),U(" "+G(i.value.label),1)])],8,Mk)):we("",!0),i.value.url?(A(),T("a",{key:3,href:"javascript:void(0)",class:"pure-button button-success",onClick:S[0]||(S[0]=Z=>_e(i.value,!0))}," ↓ 同步关键词")):we("",!0),c("a",{href:"javascript:void(0)",class:"pure-button",onClick:S[1]||(S[1]=Z=>K(i.value))}," ✎ 编辑 "),S[36]||(S[36]=U("    ")),c("a",{href:"javascript:void(0)",class:"pure-button button-small",onClick:B},"+ 新增分组"),ge(ee,{ref_key:"list",ref:h,onHide:R,onShow:L,distance:5},{popper:Re(()=>[c("div",Lk,[r.value.length?we("",!0):(A(),T("h3",Bk,[S[12]||(S[12]=U(" 还没有添加任何分组。你可以: ")),c("button",{type:"button",class:"pure-button button-small",onClick:B},"添加"),S[13]||(S[13]=U("   ")),S[14]||(S[14]=c("span",{class:"text-info"},"或",-1)),S[15]||(S[15]=U("   ")),c("button",{type:"button",class:"pure-button button-small",onClick:F},"使用脚本内置"),S[16]||(S[16]=c("br",null,null,-1)),S[17]||(S[17]=c("br",null,null,-1))])),c("table",Rk,[S[21]||(S[21]=c("thead",null,[c("tr",null,[c("th",{width:"25"},"#"),c("th",{width:"70"},"只查询"),c("th",{width:"150"},"名称"),c("th",{width:"150"},"备注"),c("th",{width:"70"},[U("大小"),c("small",null,"MB")]),c("th",{width:"220"},"操作")])],-1)),c("tbody",null,[(A(!0),T(De,null,Ge(r.value,(Z,xe)=>(A(),T("tr",{key:xe},[c("td",null,G(xe+1),1),c("td",Nk,G(Z.queryOnly?"是":"否"),1),c("td",null,G(Z.label),1),c("td",null,G(Z.memo),1),c("td",null,G(Z.size),1),c("td",null,[c("button",{type:"button",class:"pure-button button-xsmall text-primary",onClick:ye=>be(Z)},"载入",8,Fk),S[19]||(S[19]=U("   ")),ge(ee,null,{popper:Re(()=>[c("div",Uk,[c("button",{type:"button",class:"pure-button button-error",onClick:ye=>j(Z,!0)},"确定",8,jk)])]),default:Re(()=>[S[18]||(S[18]=c("button",{type:"button",class:"pure-button button-xsmall text-danger"},"删除",-1))]),_:2},1024),S[20]||(S[20]=U("   ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:ye=>K(Z)},"编辑",8,Hk)])]))),128))])])])]),default:Re(()=>[c("a",{href:"javascript:void(0)",class:"pure-button button-small",onClick:N},"≡ 分组列表")]),_:1},512),ge(hi,{"is-open":o.value,onClose:S[10]||(S[10]=Z=>o.value=!1),"max-width":"1030px",speed:100,"bg-color":"#fff"},{default:Re(()=>[c("form",zk,[c("fieldset",null,[c("div",qk,[S[22]||(S[22]=c("label",{for:"groupLabel"},"* 标题",-1)),ae(c("input",{type:"text","onUpdate:modelValue":S[2]||(S[2]=Z=>l.value.label=Z),id:"groupLabel",class:"pure-input-1-2",placeholder:"分组标题"},null,512),[[Ye,l.value.label]]),S[23]||(S[23]=U("    ")),l.value.queryOnly?(A(),T("button",{key:0,type:"button",class:"pure-button button-small button-warning",onClick:S[3]||(S[3]=Z=>l.value.queryOnly=!1)},"已设置为仅用于查询 | 点击取消设置")):we("",!0),l.value.queryOnly?we("",!0):(A(),T("button",{key:1,type:"button",class:"pure-button button-small pure-button-primary",onClick:S[4]||(S[4]=Z=>l.value.queryOnly=!0)},"设置为仅用于查询"))]),c("div",Vk,[S[24]||(S[24]=c("label",{for:"groupMemo"},"备注",-1)),ae(c("input",{type:"text","onUpdate:modelValue":S[5]||(S[5]=Z=>l.value.memo=Z),id:"groupMemo",placeholder:"分组备注"},null,512),[[Ye,l.value.memo]])]),n.type===fe(qe).keyword?(A(),T("div",Kk,[S[27]||(S[27]=c("label",{for:"groupUrl"},"远程链接",-1)),c("div",Wk,[S[25]||(S[25]=c("span",null,"纯文本, utf-8编码",-1)),S[26]||(S[26]=U("    ")),l.value.url?(A(),T("button",{key:0,type:"button",class:"pure-button button-small button-success",onClick:S[6]||(S[6]=Z=>_e(l.value,!1))}," 读取 ")):we("",!0)]),ae(c("input",{type:"text","onUpdate:modelValue":S[7]||(S[7]=Z=>l.value.url=Z),id:"groupUrl",placeholder:"远程链接"},null,512),[[Ye,l.value.url]])])):we("",!0),c("div",Gk,[S[32]||(S[32]=c("label",{for:"groupValues"},"* 特征列表",-1)),c("div",Jk,[n.type===fe(qe).keyword?(A(),T("span",Yk,[S[28]||(S[28]=U(" 默认只匹配文件名。前面带")),c("b",null,G(fe(yu)),1),S[29]||(S[29]=U("则只匹配目录名。 "))])):we("",!0),n.type===fe(qe).suffix?(A(),T("span",Qk,[S[30]||(S[30]=U(" 支持115自带筛选: ")),(A(),T(De,null,Ge(y,(Z,xe)=>c("span",{class:"filter-label text-success",key:xe,onClick:ye=>b(Z)}," #"+G(Z),9,Xk)),64)),S[31]||(S[31]=c("small",{class:"text-primary"},"(点击添加)",-1))])):we("",!0)]),c("div",Zk,[c("div",e2,[ae(c("textarea",{id:"groupValues","onUpdate:modelValue":S[8]||(S[8]=Z=>l.value.values=Z),rows:"14",placeholder:"每行一个"},null,512),[[Ye,l.value.values]])]),c("div",t2,[ge(Hh)])])]),c("div",n2,[S[33]||(S[33]=c("label",{for:"groupMemo"},"* 文件大小",-1)),S[34]||(S[34]=c("div",{class:"pure-form-message"},[U("只清理小于该大小的文件,单位"),c("b",null,"MB")],-1)),ae(c("input",{type:"number","onUpdate:modelValue":S[9]||(S[9]=Z=>l.value.size=Z),class:"pure-input-1-4",placeholder:"文件大小小于该数值才清理"},null,512),[[Ye,l.value.size]])]),c("div",s2,[c("button",{type:"button",class:"pure-button pure-button-primary",onClick:de},G(l.value.createdAt?"更新":"添加"),1),S[35]||(S[35]=U("      ")),c("button",{type:"button",class:"pure-button",onClick:_},"取消")])])])]),_:1},8,["is-open"])])}}}),Cd=je(o2,[["__file","GroupManager.vue"]]),i2={class:"cloud115-eh-cleaner-help"},r2=Be({__name:"Help",setup(e){return (t,n)=>(A(),T("div",i2,[c("div",null,[n[3]||(n[3]=zp('<h2>免责声明</h2><div><p>该工具仅作为学习测试用途,使用该工具造成的任何结果由使用人承担。</p></div><hr><h2>说明</h2><ul style="color:#f40;"><li class="text-primary">始于清理,但不止于清理!</li><li>* 仅对当前选中的目录及其子目录生效。</li><li>* 通过<b class="text-primary">新增分组 / 分组列表</b>管理你的清理特征。</li><li>* 建议整理自己的特征,也欢迎在交流中分享你的特征。</li><li>* <b class="text-primary">只查询</b>按钮,只会进行查询。</li><li>* <b class="text-primary">一键清理</b>是先查询,再进行删除!</li><li>* 由于搜索接口限制,如果某个关键词结果数量超过1万,可能会清理不完全,可以多执行几次清理。</li><li>* <b>清理期间,请保持当前页面处于激活状态!</b></li><li>* <b>请谨慎操作!请谨慎操作!请谨慎操作!</b></li></ul><hr><h3>按 后缀名 清理</h3><div><p>1. 点击<b class="text-primary">分组列表</b>,选择一个分组;</p><p>2. 确认后缀名和文件大小限制等的设定;</p><p>3. 点击<b class="text-primary">一键清理</b>按钮,耐心等待。</p></div><hr><h3>按 关键词 清理</h3>',10)),c("div",null,[n[0]||(n[0]=c("p",{class:"text-danger"},[U("目录名关键词使用"),c("b",null,"搜索"),U("接口查找匹配,只能逐个关键词进行处理,请尽量使用简单的关键词,否则可能会匹配不到。")],-1)),n[1]||(n[1]=c("p",{class:"text-danger"},[U("文件名关键词使用"),c("b",null,"列表"),U("接口查找匹配,速度较快,且支持更灵活的关键词。")],-1)),n[2]||(n[2]=c("br",null,null,-1)),ge(Hh)])])]))}}),a2=je(r2,[["__file","Help.vue"]]),l2={key:0},u2={key:1},c2={key:2},d2={key:3},f2={key:4},p2={key:5},h2={key:6},m2={key:7},g2={key:8},y2={key:9},w2=Be({__name:"Pager",props:{totalItems:{type:Number,required:!0},itemsPerPage:{type:Number,default:10,validator:e=>{if(e<=0){const t="itemsPerPage attribute must be greater than 0.";throw console.error(t),new TypeError(t)}return !0}},currentPage:{type:Number,default:1,validator:e=>{const t="currentPage attribute must be greater than 0.";if(e<=0)throw console.error(t),new TypeError(t);return !0}},modelValue:{type:Number,required:!0,validator:e=>{const t="v-model is required and must be greater than 0.";if(e<=0)throw console.error(t),new TypeError(t);return !0}},maxPagesShown:{type:Number,default:5,validator:e=>{const t="maxPagesShown attribute must be greater than 0.";if(e<=0)throw console.error(t),new TypeError(t);return !0}},dir:{type:String,default:"ltr",validator:e=>{const t='dir attribute must be either "ltr" or "rtl".';if(e!=="ltr"&&e!=="rtl")throw console.error(t),new TypeError(t);return !0}},type:{type:String,default:"button",validator:e=>{const t=["link","button"],n="type attribute must be one of the following: "+t.join(", ");if(t.indexOf(e)===-1)throw console.error(n),new TypeError(n);return !0}},onClick:{type:Function,default:()=>{}},prevButtonContent:{type:String,default:"<"},nextButtonContent:{type:String,default:">"},hidePrevNext:{type:Boolean,default:!1},hidePrevNextWhenEnds:{type:Boolean,default:!1},showBreakpointButtons:{type:Boolean,default:!0},disableBreakpointButtons:{type:Boolean,default:!1},startingBreakpointContent:{type:String,default:"..."},endingBreakpointButtonContent:{type:String,default:"..."},showJumpButtons:{type:Boolean,default:!1},linkUrl:{type:String,default:"#"},backwardJumpButtonContent:{type:String,default:"<<"},forwardJumpButtonContent:{type:String,default:">>"},disablePagination:{type:Boolean,default:!1},showEndingButtons:{type:Boolean,default:!1},firstPageContent:{type:String,default:"First"},lastPageContent:{type:String,default:"Last"},backButtonClass:{type:String,default:"back-button"},nextButtonClass:{type:String,default:"next-button"},firstButtonClass:{type:String,default:"first-button"},lastButtonClass:{type:String,default:"last-button"},numberButtonsClass:{type:String,default:"number-buttons"},startingBreakpointButtonClass:{type:String,default:"starting-breakpoint-button"},endingBreakPointButtonClass:{type:String,default:"ending-breakpoint-button"},firstPageButtonClass:{type:String,default:"first-page-button"},lastPageButtonClass:{type:String,default:"last-page-button"},paginateButtonsClass:{type:String,default:"paginate-buttons pure-button"},disabledPaginateButtonsClass:{type:String,default:"disabled-paginate-buttons"},activePageClass:{type:String,default:"active-page"},paginationContainerClass:{type:String,default:"pagination-container"},disabledBreakPointButtonClass:{type:String,default:"disabled-breakpoint-button"},backwardJumpButtonClass:{type:String,default:"backward-jump-button"},forwardJumpButtonClass:{type:String,default:"forward-jump-button"},disabledBackwardJumpButtonClass:{type:String,default:"disabled-backward-jump-button"},disabledBackButtonClass:{type:String,default:"disabled-back-button"},disabledFirstButtonClass:{type:String,default:"disabled-first-button"},disabledLastButtonClass:{type:String,default:"disabled-last-button"},disabledNextButtonClass:{type:String,default:"disabled-next-button"},disabledForwardJumpButtonClass:{type:String,default:"disabled-forward-jump-button"}},emits:["update:modelValue","click"],setup(e,{emit:t}){const n=e;if(n.currentPage&&!n.modelValue)throw new Error("currentPage/current-page is now deprecated, use v-model instead to set the current page.");if(!n.modelValue)throw new TypeError("v-model is required for the paginate component.");const s=Wv(n,"modelValue"),o=t,i=D=>{D!==s.value&&(D>l.value||D<1||n.disablePagination||(o("update:modelValue",D),o("click",D)));},r=D=>D,a=D=>n.type!=="link"?"":n.linkUrl.replace("[page]",D.toString()),l=it(()=>Math.ceil(n.totalItems/n.itemsPerPage)),u=it(()=>{let D,B;if(l.value<=n.maxPagesShown)D=1,B=l.value;else {let j=Math.floor(n.maxPagesShown/2),K=Math.ceil(n.maxPagesShown/2)-1;s.value<=j?(D=1,B=n.maxPagesShown):s.value+K>=l.value?(D=l.value-n.maxPagesShown+1,B=l.value):(D=s.value-j,B=s.value+K);}let F=Array.from(Array(B+1-D).keys()).map(j=>D+j);return n.dir==="rtl"&&(F=F.reverse()),{totalItems:n.totalItems,currentPage:s.value,itemsPerPage:n.itemsPerPage,totalPages:l,startPage:D,endPage:B,pages:F}}),d=it(()=>n.dir==="rtl"),h=it(()=>d.value?!n.hidePrevNextWhenEnds||s.value!==l.value:!n.hidePrevNextWhenEnds||s.value!==1),y=it(()=>d.value?!n.hidePrevNextWhenEnds||s.value!==1:!n.hidePrevNextWhenEnds||s.value!==l.value),v=it(()=>d.value?u.value.pages[0]<l.value-1:u.value.pages[0]>=3),b=it(()=>d.value?u.value.pages[u.value.pages.length-1]>=3:u.value.pages[u.value.pages.length-1]<l.value-1),_=it(()=>d.value?u.value.pages[0]<l.value:u.value.pages[0]>=2),R=it(()=>d.value?u.value.pages[u.value.pages.length-1]>=2:u.value.pages[u.value.pages.length-1]<l.value),L=it(()=>s.value!==1),N=it(()=>s.value!==l.value);if(n.type==="link"&&n.linkUrl==="#")throw console.error("linkUrl attribute is required if type attribute is 'link'"),new TypeError("linkUrl attribute is required if type attribute is 'link'");if(n.type==="link"&&!n.linkUrl.includes("[page]"))throw console.error("linkUrl attribute must contain '[page]' substring"),new TypeError("linkUrl attribute must contain '[page]' substring");return (D,B)=>(A(),T("ul",{id:"componentContainer",class:He(e.paginationContainerClass)},[e.showEndingButtons&&L.value?(A(),T("li",l2,[(A(),ot(wn(e.type==="button"?"button":"a"),{href:a(d.value?l.value:1),onClick:B[0]||(B[0]=ln(F=>i(d.value?l.value:1),["prevent"])),class:He([e.firstPageButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:""]),disabled:e.disablePagination},{default:Re(()=>[nt(D.$slots,"first-page-button",{},()=>[U(G(e.firstPageContent),1)])]),_:3},8,["href","class","disabled"]))])):we("",!0),e.showJumpButtons&&v.value?(A(),T("li",u2,[(A(),ot(wn(e.type==="button"?"button":"a"),{href:a(d.value?s.value+Math.ceil(e.maxPagesShown/2):s.value-Math.ceil(e.maxPagesShown/2)),onClick:B[1]||(B[1]=ln(F=>i(d.value?s.value+Math.ceil(e.maxPagesShown/2):s.value-Math.ceil(e.maxPagesShown/2)),["prevent"])),class:He([e.backwardJumpButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledBackwardJumpButtonClass:""]),disabled:e.disablePagination},{default:Re(()=>[nt(D.$slots,"backward-jump-button",{},()=>[U(G(e.backwardJumpButtonContent),1)])]),_:3},8,["href","class","disabled"]))])):we("",!0),!e.hidePrevNext&&h.value?(A(),T("li",c2,[(A(),ot(wn(e.type==="button"?"button":"a"),{href:a(d.value?s.value+1:s.value-1),onClick:B[2]||(B[2]=ln(F=>i(d.value?s.value+1:s.value-1),["prevent"])),class:He([e.backButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledBackButtonClass:""]),disabled:e.disablePagination},{default:Re(()=>[nt(D.$slots,"prev-button",{},()=>[U(G(e.prevButtonContent),1)])]),_:3},8,["href","class","disabled"]))])):we("",!0),e.showBreakpointButtons&&_.value?(A(),T("li",d2,[(A(),ot(wn(e.type==="button"?"button":"a"),{href:a(d.value?l.value:1),onClick:B[3]||(B[3]=ln(F=>i(d.value?l.value:1),["prevent"])),class:He([e.firstButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledFirstButtonClass:""]),disabled:e.disablePagination},{default:Re(()=>[U(G(d.value?r(l.value):r(1)),1)]),_:1},8,["href","class","disabled"]))])):we("",!0),e.showBreakpointButtons&&v.value?(A(),T("li",f2,[(A(),ot(wn(e.type==="button"?"button":"a"),{href:a(e.disableBreakpointButtons?s.value:d.value?s.value+Math.ceil(e.maxPagesShown/2):s.value-Math.ceil(e.maxPagesShown/2)),onClick:B[4]||(B[4]=ln(F=>i(e.disableBreakpointButtons?s.value:d.value?s.value+Math.ceil(e.maxPagesShown/2):s.value-Math.ceil(e.maxPagesShown/2)),["prevent"])),disabled:e.disableBreakpointButtons||e.disablePagination,class:He([e.startingBreakpointButtonClass,e.paginateButtonsClass,e.disableBreakpointButtons||e.disablePagination?`${e.disabledPaginateButtonsClass} ${e.disabledBreakPointButtonClass}`:""])},{default:Re(()=>[nt(D.$slots,"starting-breakpoint-button",{},()=>[U(G(e.startingBreakpointContent),1)])]),_:3},8,["href","disabled","class"]))])):we("",!0),(A(!0),T(De,null,Ge(u.value.pages,(F,j)=>(A(),T("li",{key:j},[(A(),ot(wn(e.type==="button"?"button":"a"),{href:a(F),onClick:ln(()=>i(F),["prevent"]),class:He([e.paginateButtonsClass,e.numberButtonsClass,F===s.value?e.activePageClass:"",e.disablePagination?e.disabledPaginateButtonsClass:""]),disabled:e.disablePagination},{default:Re(()=>[U(G(r(F)),1)]),_:2},1032,["href","onClick","class","disabled"]))]))),128)),e.showBreakpointButtons&&b.value?(A(),T("li",p2,[(A(),ot(wn(e.type==="button"?"button":"a"),{href:a(e.disableBreakpointButtons?s.value:d.value?s.value-Math.ceil(e.maxPagesShown/2):s.value+Math.ceil(e.maxPagesShown/2)),onClick:B[5]||(B[5]=ln(F=>i(e.disableBreakpointButtons?s.value:d.value?s.value-Math.ceil(e.maxPagesShown/2):s.value+Math.ceil(e.maxPagesShown/2)),["prevent"])),disabled:e.disableBreakpointButtons||e.disablePagination,class:He([e.endingBreakPointButtonClass,e.paginateButtonsClass,e.disableBreakpointButtons||e.disablePagination?`${e.disabledPaginateButtonsClass} ${e.disabledBreakPointButtonClass}`:""])},{default:Re(()=>[nt(D.$slots,"ending-breakpoint-button",{},()=>[U(G(e.endingBreakpointButtonContent),1)])]),_:3},8,["href","disabled","class"]))])):we("",!0),e.showBreakpointButtons&&R.value?(A(),T("li",h2,[(A(),ot(wn(e.type==="button"?"button":"a"),{href:a(d.value?1:l.value),onClick:B[6]||(B[6]=ln(F=>i(d.value?1:l.value),["prevent"])),class:He([e.lastButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledLastButtonClass:""]),disabled:e.disablePagination},{default:Re(()=>[U(G(d.value?r(1):r(l.value)),1)]),_:1},8,["href","class","disabled"]))])):we("",!0),!e.hidePrevNext&&y.value?(A(),T("li",m2,[(A(),ot(wn(e.type==="button"?"button":"a"),{href:a(d.value?s.value-1:s.value+1),onClick:B[7]||(B[7]=ln(F=>i(d.value?s.value-1:s.value+1),["prevent"])),class:He([e.paginateButtonsClass,e.nextButtonClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledNextButtonClass:""]),disabled:e.disablePagination},{default:Re(()=>[nt(D.$slots,"next-button",{},()=>[U(G(e.nextButtonContent),1)])]),_:3},8,["href","class","disabled"]))])):we("",!0),e.showJumpButtons&&b.value?(A(),T("li",g2,[(A(),ot(wn(e.type==="button"?"button":"a"),{href:a(d.value?s.value-Math.ceil(e.maxPagesShown/2):s.value+Math.ceil(e.maxPagesShown/2)),onClick:B[8]||(B[8]=ln(F=>i(d.value?s.value-Math.ceil(e.maxPagesShown/2):s.value+Math.ceil(e.maxPagesShown/2)),["prevent"])),class:He([e.forwardJumpButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:"",e.disablePagination?e.disabledForwardJumpButtonClass:""]),disabled:e.disablePagination},{default:Re(()=>[nt(D.$slots,"forward-jump-button",{},()=>[U(G(e.forwardJumpButtonContent),1)])]),_:3},8,["href","class","disabled"]))])):we("",!0),e.showEndingButtons&&N.value?(A(),T("li",y2,[(A(),ot(wn(e.type==="button"?"button":"a"),{href:a(d.value?1:l.value),onClick:B[9]||(B[9]=ln(F=>i(d.value?1:l.value),["prevent"])),class:He([e.lastPageButtonClass,e.paginateButtonsClass,e.disablePagination?e.disabledPaginateButtonsClass:""]),disabled:e.disablePagination},{default:Re(()=>[nt(D.$slots,"last-page-button",{},()=>[U(G(e.lastPageContent),1)])]),_:3},8,["href","class","disabled"]))])):we("",!0)],2))}}),kd=je(w2,[["__file","Pager.vue"]]),b2=Be({__name:"Divider",props:{paddingY:{default:10},color:{default:"#eee"},transparent:{type:Boolean,default:!1}},setup(e){const t=e,n=it(()=>{const s=t.transparent?"transparent":t.color,o=`${t.paddingY}px`;return {marginTop:o,height:o,borderTop:`1px solid ${s}`}});return (s,o)=>(A(),T("div",{class:"ce-divider",style:Rn(n.value)},[nt(s.$slots,"default")],4))}}),$d=je(b2,[["__file","Divider.vue"]]),v2={class:"ce-file-list"},_2={class:"text-small text-info"},x2={class:"text-primary"},C2={class:"text-danger"},k2={class:"item-meta"},$2={key:0,class:"ce-label"},S2={key:1,class:"ce-label"},E2={key:2,class:"ce-label"},A2={key:3,class:"ce-label"},P2={key:4,class:"ce-label"},I2={key:5,class:"ce-label ce-label-danger"},T2={key:6,class:"ce-label ce-label-danger"},O2={key:7,class:"text-info"},D2={class:"text-success"},M2={class:"pure-table pure-table-bordered"},L2={class:"text-small"},B2={class:"text-success"},R2=Be({__name:"FileList",props:{group:{},pattern:{},files:{}},setup(e){const t=e,n=oe([]),s=oe(0),o=oe(15),i=oe(5),r=oe(1);Dt(async()=>{var u;s.value=((u=t.pattern.fileIds)==null?void 0:u.length)||0,a();});function a(u=1){const d=[],{fileIds:h=[]}=t.pattern,y=o.value*(u-1),v=h.slice(y,y+o.value);for(const b of v){const _=t.files.get(b);if(_){const R=Ws(_);d.push(R);}}n.value=d;}function l(u){a(u);}return (u,d)=>(A(),T("div",v2,[c("div",null,[c("div",_2,[d[2]||(d[2]=c("small",null,"原始:",-1)),d[3]||(d[3]=U()),c("span",x2,G(u.pattern.value),1),d[4]||(d[4]=U(", ")),d[5]||(d[5]=c("small",null,"类型:",-1)),d[6]||(d[6]=U()),c("span",C2,G(fe(Lh)[u.pattern.type]),1),c("div",null," fullMatch: "+G(u.pattern.fullMatch)+", caseSensitive: "+G(u.pattern.caseSensitive)+", impartible: "+G(u.pattern.impartible)+", isRegexp: "+G(u.pattern.isRegexp)+", maxSize: "+G(u.pattern.maxSize)+", patternRegexp: "+G(u.pattern.patternRegexp),1)]),d[8]||(d[8]=c("hr",null,null,-1)),c("div",k2,[u.pattern.fullMatch?(A(),T("span",$2,"全等")):we("",!0),u.pattern.caseSensitive?(A(),T("span",S2,"区分大小写")):we("",!0),u.pattern.impartible?(A(),T("span",E2,"匹配空格")):we("",!0),u.pattern.isRegexp?(A(),T("span",A2,"正则")):we("",!0),u.pattern.type===fe(st).fileHash?(A(),T("span",P2,"sha1")):we("",!0),u.pattern.maxSize===0?(A(),T("span",I2,"任意大小")):we("",!0),u.pattern.maxSize>0?(A(),T("span",T2,"不大于"+G(u.pattern.maxSize)+"MB",1)):we("",!0),u.pattern.memo?(A(),T("div",O2,[d[7]||(d[7]=c("small",null,"备注:",-1)),U(" "+G(u.pattern.memo),1)])):we("",!0)])]),d[10]||(d[10]=c("br",null,null,-1)),c("div",null,[s.value>o.value?(A(),ot(kd,{key:0,"total-items":s.value,"items-per-page":o.value,"max-pages-shown":i.value,modelValue:r.value,"onUpdate:modelValue":d[0]||(d[0]=h=>r.value=h),onClick:l},null,8,["total-items","items-per-page","max-pages-shown","modelValue"])):we("",!0),c("span",D2,"数量: "+G(s.value),1),ge($d,{transparent:"","padding-y":5}),c("table",M2,[d[9]||(d[9]=c("thead",null,[c("tr",null,[c("th",null,"#"),c("th",{width:"30"},"类型"),c("th",null,"ID"),c("th",{width:"250"},"名称"),c("th",null,"大小"),c("th",{width:"305"},"SHA1")])],-1)),c("tbody",null,[(A(!0),T(De,null,Ge(n.value,(h,y)=>(A(),T("tr",{key:y},[c("td",null,G(o.value*(r.value-1)+y+1),1),c("td",null,G(h.isDir?"目录":"文件"),1),c("td",null,G(h.id),1),c("td",null,G(h.name),1),c("td",null,G(h.sizeDesc),1),c("td",L2,G(h.hash),1)]))),128))])]),ge($d,{transparent:"","padding-y":5}),s.value>o.value?(A(),ot(kd,{key:1,"total-items":s.value,"items-per-page":o.value,"max-pages-shown":i.value,modelValue:r.value,"onUpdate:modelValue":d[1]||(d[1]=h=>r.value=h),onClick:l},null,8,["total-items","items-per-page","max-pages-shown","modelValue"])):we("",!0),c("span",B2,"数量: "+G(s.value),1)])]))}}),N2=je(R2,[["__scopeId","data-v-89339f2e"],["__file","FileList.vue"]]),F2=Be({__name:"GoTop",props:{label:{default:"回到顶部"},container:{default:"body"}},setup(e){const t=e;async function n(){if(t.container instanceof HTMLElement)t.container.scrollTo(0,0);else {const s=document.querySelector(t.container);s==null||s.scrollTo(0,0);}}return (s,o)=>nt(s.$slots,"default",{},()=>[c("button",{type:"button",class:"pure-button button-small",onClick:n},G(s.label),1)])}}),zh=je(F2,[["__file","GoTop.vue"]]),U2={type:"button",class:"pure-button button-success"},j2=Be({__name:"DirSelector",props:{label:{default:"切换目录"},purpose:{default:"操作"},confirmLabel:{default:"选择该目录"},onlyDir:{type:Boolean,default:!0},showRecord:{type:Boolean,default:!0},showCopy:{type:Boolean,default:!0}},emits:["select"],setup(e,{emit:t}){const n=e,s=t;async function o(){unsafeWindow.parent.Core.FileSelectDG.Open(async(i,r)=>{console.log("[Core.FileSelectDG.Open]",i,r),s("select",{items:i,xx:r});},{select:1,nf:n.onlyDir?1:0,show_record:n.showRecord?1:0,show_copy:n.showCopy?1:0,btn_txt:n.confirmLabel,select_txt:n.purpose});}return (i,r)=>(A(),T("span",{onClick:o},[nt(i.$slots,"default",{},()=>[c("button",U2,G(i.label),1)])]))}}),mi=je(j2,[["__file","DirSelector.vue"]]),H2={class:"cloud115-eh-cleaner ce-cleaner-x"},z2={class:"header actions-bar"},q2={class:"close"},V2={class:"ce-path ce-label ce-label-primary-plain"},K2=["href"],W2={class:"by-box by-suffix"},G2={class:"by-header"},J2={class:"pure-button-group",role:"group"},Y2=["disabled"],Q2={class:"pure-table pure-table-bordered"},X2=["onClick"],Z2=["onClick"],e$=["onClick"],t$=["onClick"],n$={class:"by-header"},s$={class:"pure-button-group",role:"group"},o$=["disabled"],i$=["value"],r$=["value"],a$={class:"item-index"},l$={class:"item-val"},u$=["href"],c$={class:"file-type tp-folder"},d$={class:"item-meta"},f$={key:0,class:"ce-label"},p$={key:1,class:"ce-label"},h$={key:2,class:"ce-label"},m$={key:3,class:"ce-label"},g$={key:4,class:"ce-label"},y$={key:5,class:"ce-label ce-label-danger"},w$={key:6,class:"ce-label ce-label-danger"},b$={key:7,class:"text-info"},v$={key:0,class:"text-small text-info"},_$={class:"text-primary"},x$={class:"text-danger"},C$={class:"item-num"},k$={class:"item-size"},$$={class:"item-actions"},S$=["onClick"],E$=["onClick"],A$=["onClick"],P$={class:"item-status"},I$={class:"footer actions-bar"},T$={class:"ce-path ce-label ce-label-primary-plain"},O$=["href"],D$=Be({__name:"Cleaner",setup(e){const t=oe(!1),n=oe(!0),s=oe(Os({type:qe.suffix})),o=oe(Os({type:qe.keyword})),i=oe({maxSize:5,matchName:!1}),r=oe({maxSize:100,matchName:!0,keywordCategory:qo.all,resultCategory:yr.all}),a=oe([]),l=oe([]),u=oe(!1),d=oe({initialized:!1,...xr(yt.cleanerConfig,{}),pageSize:1150,reqInterval:100,deleteSize:1150}),h=oe(""),y=oe([]),v=oe(null),b=oe(!1),_=it(()=>h.value?wo(h.value):"");async function R(){b.value=!b.value;}const L=oe(!1),N=new Map,D=oe({});async function B(Q){for(const O of Q){const V=O.fid||O.cid;V&&!N.has(V)&&N.set(V,O);}}async function F(Q,O){D.value.files=N,D.value.group=Q,D.value.pattern=O,L.value=!0;}async function j(Q){Q.data.type===Ft.OPEN_CLEANER&&(await K(Q.data.payload),Ns({type:Ft.CLEANER_OPENED},Q.source));}qt(async()=>{d.value.initialized||(d.value.initialized=!0,so(yt.cleanerConfig,d.value,!1)),window.addEventListener("message",j);}),Gs(()=>{window.removeEventListener("message",j);});async function K(Q){t.value=!0;const O=await jt();if(O==="0"||O===""){await de(),await he.fire({icon:"warning",html:"<h2>不允许在根目录使用该工具!</h2>"});return}h.value&&h.value!==O&&console.warn("目录变化,重置"),v.value=await At(O),y.value=[...v.value.paths.slice(1).map(V=>V.file_name),v.value.file_name],h.value=O;}async function de(){t.value=!1;}async function be(Q){console.log("[onSelectDir]",Q);const{items:O}=Q,V=O[O.length-1];await S(St.reset),await ee(St.reset),h.value=V.cid,v.value=await At(V.cid),y.value=[...v.value.paths.slice(1).map(Ce=>Ce.file_name),v.value.file_name];}async function _e(Q){const O={};Q.isFilter?O.type=Q.pattern:O.suffix=Q.pattern;let V=unsafeWindow.frames[0];for(let Ce=0;Ce<unsafeWindow.frames.length;Ce++)if(unsafeWindow.frames[Ce].name==="wangpan"){V=unsafeWindow.frames[Ce];break}Ns({type:Ft.INVOKE_FILTER,payload:O},V),await de(),ue({icon:"info",text:`已调用115筛选: ${Q.value}`,timer:2500});}async function pe(Q,O){const{value:V}=await he.fire({input:"textarea",title:Q,html:"每行一个,最短两个字符。"+(O===qe.keyword?`<br>默认只匹配文件名,不匹配目录名。<br>使用 "<b>${yu}目录名关键词</b>" 格式指定只匹配目录名的关键词。`:""),width:620,inputPlaceholder:"每行一个,最短两个字符",inputAttributes:{"aria-label":"每行一个,最短两个字符"},showCancelButton:!0});return V!==void 0?V.trim():""}async function S(Q,O){let V="",Ce=[];switch(Q){case St.assign:V=O.trim(),V.trim()===""?a.value=[]:(Ce=await Ts(V,qe.suffix),a.value=Ce);break;case St.append:V=await pe("添加后缀",qe.suffix),Ce=await Ts(V,qe.suffix);const x=[];a.value.forEach(E=>x.push(E.value.toLowerCase())),Ce.forEach(E=>{x.includes(E.value.toLowerCase())||a.value.push(E);});break;case St.cover:V=await pe("覆盖后缀",qe.suffix),V.trim()!==""&&(Ce=await Ts(V,qe.suffix),a.value=Ce);break;case St.clear:a.value=[];break;case St.reset:a.value.forEach(E=>{E.num=-1,E.fileIds=[],E.status=vt.none,E.size=-1;});break}}async function ee(Q,O){let V="",Ce=[];switch(Q){case St.assign:V=O.trim(),V.trim()===""?l.value=[]:(Ce=await Ts(V,qe.keyword),l.value=Ce);break;case St.append:V=await pe("添加关键词",qe.keyword),Ce=await Ts(V,qe.keyword);const x=[];l.value.forEach(E=>x.push(E.value.toLowerCase())),Ce.forEach(E=>{x.includes(E.value.toLowerCase())||l.value.push(E);});break;case St.cover:V=await pe("覆盖关键词",qe.keyword),V.trim()!==""&&(Ce=await Ts(V,qe.keyword),l.value=Ce);break;case St.clear:l.value=[];break;case St.reset:l.value.forEach(E=>{E.num=-1,E.fileIds=[],E.status=vt.none,E.size=-1;});break}}async function Z(Q){if(console.log("[cleanBySuffix]",Q),await S(St.reset),!a.value.length){await he.fire({icon:"warning",text:"请先设置后缀!"});return}if(Ze=[],!Q){const{isConfirmed:O}=await he.fire({icon:"warning",html:'请在清理前确认"后缀和大小限制的设置"是否符合预期!',confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!O)return}u.value=!0;try{for(let O=0;O<a.value.length;O++){const V=a.value[O];await xe(V,Q,!1,!0,!1);}Q||(u.value=!0,await Ne(qe.suffix));}catch(O){console.error(O),he.fire({title:"按后缀名清理 - 发生错误",html:O.toString()});}finally{u.value=!1,Q||he.fire({title:"按后缀名清理 - 完成"});}}async function xe(Q,O,V,Ce,x){var E;if(console.log("[cleanBySuffixSingle]",Q,O),!O&&!Ce){const{isConfirmed:q}=await he.fire({icon:"warning",html:`确认执行条件 "后缀: <b class="text-primary">${Q.pattern}</b>, 不大于: <b>${i.value.maxSize}</b> MB" 的清理?`,confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!q)return}try{if(!V){u.value=!0,Q.fileIds=[],Q.size=-1,Q.num=-1,Q.status=vt.prepare;const q=await ft(Q);await B(q),Q.status=vt.prepared;const{fileIds:H=[],size:te}=xd(Q,q,i.value);Q.fileIds=H,Q.size=te,Q.num=H.length,u.value=!1;}if(!O)if(Q.num&&Q.num>0){Q.status=vt.deleting,u.value=!0;const q=((E=Q.fileIds)==null?void 0:E.length)||0;x?await _a(h.value,Q.fileIds||[],d.value.deleteSize,1e3):M(qe.suffix,Q.fileIds||[],!1),u.value=!1,q>0?Q.status=vt.success+` / 数量 <= ${q}`:Q.status=vt.failed;}else Q.status=vt.success+" / 无";}catch(q){console.error(q),u.value=!1,await he.fire({title:"cleanBySuffixSingle - 发生错误",html:q.toString()});}}async function ye(){const Q=[st.fileKeyword,st.fileHash];return l.value.some(O=>Q.includes(O.type))}async function Pe(Q,O){if(console.log("[cleanByKeyword]",Q,O),await ee(St.reset),!l.value.length){await he.fire({icon:"warning",text:"请先设置关键词!"});return}if(ve=[],!Q){const V={icon:"warning",html:'请在清理前确认"关键词和大小限制的设置"是否符合预期!',confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"},{isConfirmed:Ce,value:x}=await he.fire(V);if(!Ce)return}u.value=!0,console.time("cleanByKeyword");try{let V;await ye()&&(V=await Ee(),await B(V));const Ce=O||r.value.keywordCategory;for(let x=0;x<l.value.length;x++){const E=l.value[x];if(Ce!==qo.all){const q=E.type===st.dirKeyword;if(Ce===qo.dir&&!q||Ce===qo.file&&q)continue}await Ke(E,Q,!1,!0,V,!1);}Q||(u.value=!0,await Ne(qe.keyword));}catch(V){console.error(V),he.fire({title:"按关键词清理 - 发生错误",html:V.toString()});}finally{console.timeEnd("cleanByKeyword"),Q||he.fire({title:"按关键词清理 - 完成"});}u.value=!1;}async function Ee(){const Q=h.value,O=Ms({cid:Q,limit:1150,type:vn.file,record_open_time:0});return await io(O)}async function Ke(Q,O,V,Ce,x,E){var q;if(console.log("[cleanByKeywordSingle]",Q,O),!O&&!Ce){const{isConfirmed:H}=await he.fire({icon:"warning",html:`确认执行条件 "关键词: <b class="text-primary">${Q.pattern}</b>, 不大于: <b class="text-primary">${r.value.maxSize}</b> MB" 的清理?`,confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!H)return}try{if(!V){u.value=!0,Q.fileIds=[],Q.size=-1,Q.num=-1,Q.status=vt.prepare;let H=[];Q.type!==st.dirKeyword&&x!==void 0?H=x:(H=await Ie(Q),await B(H)),Q.status=vt.prepared;const{fileIds:te,size:se,num:me}=xd(Q,H,r.value);Q.fileIds=te,Q.size=se,Q.num=me,u.value=!1;}if(!O)if(Q.num&&Q.num>0){Q.status=vt.deleting,u.value=!0;const H=((q=Q.fileIds)==null?void 0:q.length)||0;E?await _a(h.value,Q.fileIds||[],d.value.deleteSize,1e3):M(qe.keyword,Q.fileIds||[],!1),u.value=!1,H>0?Q.status=vt.success+` / 数量 <= ${H}`:Q.status=vt.failed;}else Q.status=vt.success+" / 无";}catch(H){console.error(H),u.value=!1;let te=!0;const se={title:"cleanByKeywordSingle - 发生错误",html:H.toString()};H instanceof Nl&&(Q.status=vt.prepareFailed+` / ${H.message}`,H instanceof af&&(se.timer=2e3,te=!1)),te?await he.fire(se):he.fire(se);}}let Ze=[],ve=[];function M(Q,O,V){Q===qe.suffix?Ze=[...Ze,...O]:ve=[...ve,...O];}async function Ne(Q){const O=Q===qe.suffix?Ze:ve;if(!O.length)return;const V=Array.from(new Set(O));console.log("[deleteFiles] num=",V.length),await _a(h.value,V,1150,1e3);}async function ft(Q){const O=h.value,V=Ms({cid:O,limit:d.value.pageSize});Q.isFilter?V.type=Q.pattern:V.suffix=Q.value;const Ce=await io(V);return console.log("[files]",Ce),Ce}async function Ie(Q){const O=h.value,V=Tw({search_value:Q.pattern,cid:O,limit:d.value.pageSize}),Ce=await vb(V,d.value.reqInterval,!0);return console.log("[files]",Ce),Ce}function lt(Q){return zl({...bk(Q),cid:h.value},y.value[y.value.length-1])}async function gt(Q){console.log("[onSuffixGroupChange]",Q),s.value=Q,i.value.maxSize=Q.size,await S(St.assign,Q.values);}async function Pt(Q){console.log("[onKeywordGroupChange]",Q),o.value=Q,r.value.maxSize=Q.size,await ee(St.assign,Q.values);}return (Q,O)=>ae((A(),T("span",H2,[nt(Q.$slots,"default",{},()=>[c("span",{class:"btn-open pure-button pure-button-primary",onClick:K},O[10]||(O[10]=[c("span",null,"清理文件",-1)]))]),ge(hi,{"is-open":t.value,speed:300,"max-width":"calc(100vw - 72px)",onClose:O[9]||(O[9]=V=>t.value=!1)},{default:Re(()=>[ae(c("div",{class:He(["cloud115-eh-cleaner-drawer",{loading:u.value}])},[ge(a2),c("div",z2,[O[13]||(O[13]=c("span",{class:"title"},"文件清理工具",-1)),c("span",q2,[c("button",{type:"button",class:"pure-button button-error",onClick:de},"关闭"),O[11]||(O[11]=U("      ")),ge(mi,{purpose:"清理文件",onSelect:be})]),c("div",V2,[c("a",{target:"_blank",href:_.value,title:"打开目录"},[O[12]||(O[12]=c("i",{class:"file-type tp-folder",style:{}},null,-1)),U(" "+G(y.value.join(" / ")),1)],8,K2)])]),c("div",W2,[c("div",G2,[O[14]||(O[14]=c("span",{class:"title"},[U("按"),c("b",null,"后缀名"),U("清理")],-1)),O[15]||(O[15]=U("      ")),c("div",J2,[c("button",{type:"button",class:"pure-button",onClick:O[0]||(O[0]=V=>Z(!0))},"只查询"),c("button",{type:"button",class:"pure-button pure-button-primary",onClick:O[1]||(O[1]=V=>Z(!1)),disabled:s.value.queryOnly}," 一键清理 ",8,Y2)]),O[16]||(O[16]=U("   ")),O[17]||(O[17]=c("span",{class:"ce-label"},"不大于",-1)),O[18]||(O[18]=U("  ")),ae(c("input",{type:"number","onUpdate:modelValue":O[2]||(O[2]=V=>i.value.maxSize=V),class:"filter-size"},null,512),[[Ye,i.value.maxSize]]),O[19]||(O[19]=U(" MB ")),O[20]||(O[20]=c("small",null,"(0表示不限制)",-1)),ge(Cd,{type:fe(qe).suffix,"storage-key":"suffixGroups",onChange:gt,config:d.value},null,8,["type","config"])]),c("table",Q2,[O[23]||(O[23]=c("thead",null,[c("tr",null,[c("th",{width:"25"},"#"),c("th",{width:"100"},"后缀名"),c("th",{width:"95"},"文件数量"),c("th",{width:"80"},"合计大小"),c("th",{width:"200"},"操作"),c("th",{width:"200"},"状态")])],-1)),c("tbody",null,[(A(!0),T(De,null,Ge(a.value,(V,Ce)=>(A(),T("tr",{key:Ce,class:He(fe(vd)(V))},[c("td",null,G(Ce+1),1),c("td",null,[c("a",{href:"javascript:void(0)",class:"pattern",onClick:x=>_e(V),title:"筛选"},G(V.value),9,X2)]),c("td",null,G(V.num&&V.num>=0?V.num:""),1),c("td",null,G(V.size>0?fe(sr)(V.size):""),1),c("td",null,[c("button",{type:"button",class:"pure-button button-xsmall",onClick:x=>xe(V,!0,!1,!0)},"查询",8,Z2),O[21]||(O[21]=U("   ")),V.num&&V.num>0&&!s.value.queryOnly?(A(),T("button",{key:0,type:"button",class:"pure-button button-warning button-xsmall",onClick:x=>xe(V,!1,!0,!1,!0)},"清理",8,e$)):we("",!0),O[22]||(O[22]=U("   ")),V.num&&V.num>0?(A(),T("button",{key:1,type:"button",class:"pure-button button-warning button-xsmall",onClick:x=>F(s.value,V)},"≡ 详情",8,t$)):we("",!0)]),c("td",null,G(V.status),1)],2))),128))])])]),O[53]||(O[53]=c("br",null,null,-1)),ge(hi,{"is-open":L.value,onClose:O[3]||(O[3]=V=>L.value=!1),"max-width":"1030px",speed:100,"bg-color":"#fff"},{default:Re(()=>[L.value?(A(),ot(N2,{key:0,files:D.value.files,group:D.value.group,pattern:D.value.pattern},null,8,["files","group","pattern"])):we("",!0)]),_:1},8,["is-open"]),c("div",{class:He(["by-box by-keyword",[`kw-cate-${r.value.keywordCategory}`]])},[c("div",n$,[O[24]||(O[24]=c("span",{class:"title"},[U("按"),c("b",null,"关键词"),U("清理")],-1)),O[25]||(O[25]=U("      ")),c("div",s$,[c("button",{type:"button",class:"pure-button",onClick:O[4]||(O[4]=V=>Pe(!0))},"只查询"),c("button",{type:"button",class:"pure-button pure-button-primary",onClick:O[5]||(O[5]=V=>Pe(!1)),disabled:o.value.queryOnly}," 一键清理 ",8,o$)]),O[26]||(O[26]=U("   ")),O[27]||(O[27]=c("span",{class:"ce-label"},"不大于",-1)),O[28]||(O[28]=U("  ")),ae(c("input",{type:"number","onUpdate:modelValue":O[6]||(O[6]=V=>r.value.maxSize=V),class:"filter-size"},null,512),[[Ye,r.value.maxSize]]),O[29]||(O[29]=U(" MB ")),O[30]||(O[30]=c("small",null,"(0表示不限制)",-1)),O[31]||(O[31]=U("    ")),O[32]||(O[32]=c("span",{class:"ce-label"},"关键词类别",-1)),O[33]||(O[33]=U("  ")),ae(c("select",{"onUpdate:modelValue":O[7]||(O[7]=V=>r.value.keywordCategory=V),title:"只会处理该类别关键词"},[(A(!0),T(De,null,Ge(fe(XC),(V,Ce)=>(A(),T("option",{key:Ce,value:Ce},G(V),9,i$))),128))],512),[[gn,r.value.keywordCategory]]),O[34]||(O[34]=U("    ")),O[35]||(O[35]=c("span",{class:"ce-label"},"结果筛选",-1)),O[36]||(O[36]=U("  ")),ae(c("select",{"onUpdate:modelValue":O[8]||(O[8]=V=>r.value.resultCategory=V)},[(A(!0),T(De,null,Ge(fe(ZC),(V,Ce)=>(A(),T("option",{key:Ce,value:Ce},G(V),9,r$))),128))],512),[[gn,r.value.resultCategory]]),ge(Cd,{type:fe(qe).keyword,"storage-key":"keywordGroups",onChange:Pt,config:d.value},null,8,["type","config"])]),c("table",{class:He(["pure-table pure-table-bordered fixed-header-table",[`table-${r.value.resultCategory}`]])},[c("thead",null,[c("tr",null,[O[38]||(O[38]=c("th",{width:"25"},"#",-1)),c("th",{width:"280"},[O[37]||(O[37]=U(" 关键词 ")),c("small",{class:"text-info",onClick:R},"显示调试信息")]),O[39]||(O[39]=c("th",{width:"95"},"文件/目录数量",-1)),O[40]||(O[40]=c("th",{width:"80"},"合计大小",-1)),O[41]||(O[41]=c("th",{width:"150"},"操作",-1)),O[42]||(O[42]=c("th",{width:"200"},"状态",-1))])]),c("tbody",null,[(A(!0),T(De,null,Ge(l.value,(V,Ce)=>{var x;return A(),T("tr",{key:Ce,class:He(fe(vd)(V,r.value))},[c("td",a$,G(Ce+1),1),c("td",l$,[c("a",{href:lt(V),target:"_blank",class:"pattern",title:"搜索"},[ae(c("i",c$,null,512),[[Nt,V.type===fe(st).dirKeyword]]),U(" "+G(V.pattern),1)],8,u$),c("span",d$,[V.fullMatch?(A(),T("span",f$,"全等")):we("",!0),V.caseSensitive?(A(),T("span",p$,"区分大小写")):we("",!0),V.impartible?(A(),T("span",h$,"匹配空格")):we("",!0),V.isRegexp?(A(),T("span",m$,"正则")):we("",!0),V.type===fe(st).fileHash?(A(),T("span",g$,"sha1")):we("",!0),V.maxSize===0?(A(),T("span",y$,"任意大小")):we("",!0),V.maxSize>0?(A(),T("span",w$,"不大于"+G(V.maxSize)+"MB",1)):we("",!0),V.memo?(A(),T("div",b$,[O[43]||(O[43]=c("small",null,"备注:",-1)),U(" "+G(V.memo),1)])):we("",!0)]),b.value?(A(),T("div",v$,[O[44]||(O[44]=c("small",null,"raw:",-1)),O[45]||(O[45]=U()),c("span",_$,G(V.value),1),O[46]||(O[46]=U(", ")),O[47]||(O[47]=c("small",null,"type:",-1)),O[48]||(O[48]=U()),c("span",x$,G(fe(Lh)[V.type]),1),c("div",null," fullMatch: "+G(V.fullMatch)+", caseSensitive: "+G(V.caseSensitive)+", impartible: "+G(V.impartible)+", isRegexp: "+G(V.isRegexp)+", maxSize: "+G(V.maxSize)+", patternRegexp: "+G((x=V.patternRegexp)==null?void 0:x.toString()),1)])):we("",!0)]),c("td",C$,G(V.num&&V.num>=0?V.num:""),1),c("td",k$,G(V.size>0?fe(sr)(V.size):""),1),c("td",$$,[V.type!==fe(st).fileKeyword?(A(),T("button",{key:0,type:"button",class:"pure-button button-xsmall",onClick:E=>Ke(V,!0,!1,!0)},"查询",8,S$)):we("",!0),V.type!==fe(st).fileKeyword&&V.num&&V.num>0&&!o.value.queryOnly?(A(),T("button",{key:1,type:"button",class:"pure-button button-warning button-xsmall",onClick:E=>Ke(V,!1,!0,!1,void 0,!0)},"清理",8,E$)):we("",!0),V.num&&V.num>0?(A(),T("button",{key:2,type:"button",class:"pure-button button-xsmall",onClick:E=>F(o.value,V)},"≡ 详情",8,A$)):we("",!0)]),c("td",P$,G(V.status),1)],2)}),128))])],2)],2),O[54]||(O[54]=c("br",null,null,-1)),c("div",I$,[O[50]||(O[50]=c("span",{class:"title"},"文件清理工具",-1)),c("span",{class:"close"},[c("button",{type:"button",class:"pure-button button-error",onClick:de},"关闭")]),O[51]||(O[51]=U("      ")),ge(mi,{purpose:"清理文件",onSelect:be}),O[52]||(O[52]=U("      ")),ge(zh,{container:".cloud115-eh-cleaner-drawer"}),c("div",T$,[c("a",{target:"_blank",href:_.value,title:"打开目录"},[O[49]||(O[49]=c("i",{class:"file-type tp-folder",style:{}},null,-1)),U(" "+G(y.value.join(" / ")),1)],8,O$)])])],2),[[Nt,t.value]])]),_:1},8,["is-open"])],512)),[[Nt,n.value]])}}),M$=je(D$,[["__file","Cleaner.vue"]]),L$={class:"ce-empty-cleaner-trigger"},B$=Be({__name:"Trigger",setup(e){oe(!1);const t=oe(!0);async function n(a){switch(a.data.type){case Ft.EMPTY_CLEANER_OPENED:await r(a.data.payload);break}}qt(async()=>{window.addEventListener("message",n);}),Gs(()=>{window.removeEventListener("message",n);});async function s(){await i(),Ns({type:Ft.OPEN_EMPTY_CLEANER},window.parent);}let o=0;async function i(){const a=Ul("cid");!a||a==="0"||(clearTimeout(o),o=window.setTimeout(async()=>{ue({icon:"error",text:"打开清理空文件夹工具失败!"});},1e3));}async function r(a){console.log("成功打开EmptyCleaner"),clearTimeout(o);}return (a,l)=>ae((A(),T("span",L$,[nt(a.$slots,"default",{},()=>[c("span",{class:"btn-open pure-button pure-button-primary",onClick:s,title:"打开清理空文件夹工具"},l[0]||(l[0]=[c("span",null,"空文件夹",-1)]))])],512)),[[Nt,t.value]])}}),R$=je(B$,[["__file","Trigger.vue"]]),N$=/^(?:\| )+\|-/;async function*F$(e){const t=["/"],n=e.trim().split(`
`);let s=0;for(const o of n){const i=N$.exec(o);if(i===null)continue;const a=i[0].length,l=a/2-1,u=o.slice(a);l>=t.length?t.push(u):t[l]=u,s+=1;const d=t.slice(0,l+1).join("/");yield {index:s,name:u,path:tf(d)};}}function Sd(e={}){return {name:"",path:"",id:"",url:"",checked:!1,deleted:!1,disabled:!1,repeated:!1,ensured:!1,...e}}function La(){return {suffixes:new Set,nameCounter:{},nameToPaths:{},repeatedPaths:new Set,maybeDirs:{},violationFiles:[]}}let U$=class{constructor(t,n=!1){ke(this,"logs",[]);ke(this,"_dirId","");ke(this,"_dirPath","");ke(this,"_dirAttr",null);ke(this,"_treeText","");ke(this,"_keepTree",!1);ke(this,"_treeFile",null);ke(this,"_tailData",La());ke(this,"_emptyItems",new Map);ke(this,"_checkedRepeatedPaths",new Set);ke(this,"_pendingPaths",new Set);ke(this,"logSubscribers",[]);ke(this,"emptyItemSubscribers",[]);ke(this,"treeFileSubscribers",[]);t&&this.setDirId(t),this._keepTree=n;}addLogSubscriber(t){this.logSubscribers.push(t);}addEmptyItemSubscriber(t){this.emptyItemSubscribers.push(t);}addTreeFileSubscriber(t){this.treeFileSubscribers.push(t);}async setDirId(t){this._dirId=t,this._dirAttr=await At(t);const n=[...this._dirAttr.paths.slice(1).map(s=>s.file_name),this._dirAttr.file_name];this._dirPath=n.join("/");}async setKeepTree(t){this._keepTree=t;}getTreeFile(){return this._treeFile}async isReady(){return !!this._dirPath}async run(){var s;if(!await this.isReady()){this.log(`运行异常!未获取到目录路径,目录ID=${this._dirId}`);return}if(((s=this._dirAttr)==null?void 0:s.folder_count)===0){this.log(`目录(id=${this._dirId}) "${this._dirPath}" 没有子目录,无需清理`);return}const t=Date.now();await this.exportTree(),await this.parseTree(),await this.queryFiles(),await this.handleMaybeDirs(),await this.detectEmpty(),await this.checkRealEmpty();const n=((Date.now()-t)/1e3).toFixed(2);this.log(`清理空目录检测阶段完成,合计耗时 ${n} 秒`),console.log("emptyItems:",this._emptyItems);}async exportTree(){const t=Date.now();this.log(`========导出目录树(目录ID=${this._dirId}, 路径=${this._dirPath})========`);const n=await $b(this._dirId);console.log("exportTree",n),this.log("已发起导出处理,等待导出完成...");const s=await Sb(n.data.export_id,2e3);console.log("exportTree",s),this.log(`导出目录树成功,PickCode为${s.data.pick_code}`);const o=await Cb(s.data.pick_code);console.log("downloadItem",o),this.log("正在读取目录树文件内容...");let i=!0;try{this._treeText=await this._readFile(o),this.log("目录树文件内容读取完成");}catch(a){this.log(`读取目录树文件内容失败,${a.toString()}`),i=!1;}if(this._keepTree)this.onTreeFileGenerated(o),this.log(`目录树文件保留,不会被删除。文件: ${o.file_name}`);else {const a=await ql(this._dirId,[o.file_id]);console.log("deleteResult",a),this.log("目录树文件已删除");}const r=((Date.now()-t)/1e3).toFixed(2);i?this.log(`导出目录树完成,耗时 ${r} 秒`):this.log(`导出目录树失败,耗时 ${r} 秒`),this.log("=".repeat(60));}async _readFile(t){const n=vk({okStatus:[200,206],useFileReader:!0,fileReader:{checkBlank:!0,encoding:"utf-16le"}});return await Nh(t.url.url,n)}async parseTree(){const t=Date.now();this.log("解析目录树...");const n=La(),s=[],o=this._dirPath.split("/").slice(0,-1).join("/");console.log("[parseTree] parentPath:",o);for await(const r of F$(this._treeText)){const a=o+r.path;s.includes(a)&&n.repeatedPaths.add(a),s.push(a);}for(let r=0;r<s.length;r++){if(s[r+1]&&s[r+1].startsWith(s[r]+"/"))continue;let a=s[r].split("/").pop();if(!a)a=s[r];else {const l=gf(a,/^\w+$/);if(l)n.suffixes.add(l.toLowerCase());else {const u=s[r].replace(/\/[^\/]+$/,"");n.maybeDirs[u]||(n.maybeDirs[u]=new Set),n.maybeDirs[u].add(a);}}n.nameToPaths[a]||(n.nameToPaths[a]=[]),n.nameToPaths[a].push(s[r]),n.nameCounter[a]||(n.nameCounter[a]=0),n.nameCounter[a]+=1;}console.log("[parseTree] result:",n);const i=((Date.now()-t)/1e3).toFixed(2);this.log(`解析目录树完成,耗时 ${i} 秒`),this.log("=".repeat(60)),this._tailData=n;}async queryFiles(){const t=Date.now(),n=this._tailData;this.log("获取文件列表...");const s=Ms({type:vn.file,limit:1150,cid:this._dirId});try{const i=Date.now(),r=await io(s),a=((Date.now()-i)/1e3).toFixed(2);this.log(`获取文件列表成功,文件数量:${r.length}。耗时 ${a} 秒`);for(const l of r)l.c===qa.violation?(console.warn(`违规: id=${l.fid}, pc=${l.pc}, cid=${l.cid}, name=${l.n}`),this._tailData.violationFiles.push(Ws(l))):l.c===qa.auditing&&console.warn(`审核中: id=${l.fid}, pc=${l.pc}, cid=${l.cid}, name=${l.n}`),n.nameCounter[l.n]&&n.nameCounter[l.n]--;}catch(i){console.error("[queryFiles] getFiles error! error:",i),this.log(`获取文件列表失败!错误: ${i.toString()}`);}const o=((Date.now()-t)/1e3).toFixed(2);this.log(`获取文件列表完成。耗时 ${o} 秒`),this.log("=".repeat(60));}async handleMaybeDirs(){const t=Date.now(),n=this._tailData;this.log("========根据上级路径排除无后缀文件========");const s=Object.keys(n.maybeDirs).length;let o=0;for(const[r,a]of Object.entries(n.maybeDirs)){let l="";try{l=await oo(r,!1);}catch(d){console.error(`[handleMaybeDirs] getDirIdByPath error! path: ${r}, error:`,d),this.log(`[${o+1} / ${s}] 根据上级路径(cid=${r}) 获取目录ID失败!错误: ${d.toString()}`);continue}const u=Ms({limit:1150,cid:l});try{const d=Date.now();this.log(`[${o+1} / ${s}] 正在获取上级路径 "${r}" 的文件列表...`);const h=await io(u),y=((Date.now()-d)/1e3).toFixed(2);this.log(`[${o+1} / ${s}] 获取上级路径 "${r}" 的文件列表成功,文件数量:${h.length}。耗时 ${y} 秒`);for(const v of h)a.has(v.n)&&v.fid&&(this.log(`[${o+1} / ${s}] 上级路径 "${r}" 下的 "${v.n}" 是一个文件`),n.nameCounter[v.n]&&n.nameCounter[v.n]--);}catch(d){console.error(`[handleMaybeDirs] getFiles error! cid: ${l}, error:`,d),this.log(`[${o+1} / ${s}] 获取上级路径(cid=${l}) "${r}" 的文件列表失败!错误: ${d.toString()}`);}o++;}const i=((Date.now()-t)/1e3).toFixed(2);this.log(`根据上级路径排除无后缀文件完成。耗时 ${i} 秒`),this.log("=".repeat(60));}async detectEmpty(){const t=Date.now(),n=this._tailData;this.log("========开始检测路径========");let s=0,o=Object.keys(n.nameCounter).length;for(const[r,a]of Object.entries(n.nameCounter)){if(!a){s++;continue}const l=n.nameToPaths[r];this.log(`[${s+1} / ${o}] 名称 "${r}" 有 ${a} 个路径需要检测`);const u=this._tailData.violationFiles.length>0;for(let d=0;d<l.length;d++){const h=l[d];if(this._emptyItems.has(h)){console.log(`[detectEmpty] path "${h}" already exists in _emptyItems`);continue}if(n.repeatedPaths.has(h)){await this.checkDirContainsRepeated(r,h);continue}this.log(`[${s+1} / ${o}] 正在检测名称 "${r}" 第 ${d+1}/${a} 个路径: ${h}`);try{const y=await oo(h,!1);if(y){this.log(`检测到该末端路径 "${h}" 是一个空目录(ID: ${y})`);const v=Sd({id:y,name:r,path:h,url:wo(y),ensured:!u});await this.addEmptyItem(v);}}catch(y){y instanceof Fl?this.log(`路径 "${h}" 不是一个目录`):(console.error(`[detectEmpty] getDirIdByPath failed! path: ${h}, error:`,y),this.log(`获取路径 "${h}" 的ID失败!错误: ${y.toString()}`));}}s++;}const i=((Date.now()-t)/1e3).toFixed(2);this.log(`检测路径完成,耗时 ${i} 秒`),this.log("=".repeat(60));}async checkDirContainsRepeated(t,n){if(this._checkedRepeatedPaths.has(n))return;this.log(`名称 "${t}" 路径 "${n}" 存在重复,将对其所在的目录进行检测`);const s=Va(n,"..",ls.unix);console.log("[checkDirContainsRepeated] parentPath:",s);let o="";try{if(o=await oo(s,!1),!o){this.log(`❌ 根据路径"${s}"获取目录ID失败: 目录不存在!`);return}}catch(r){console.error(`[checkDirContainsRepeated] getDirIdByPath error! path: ${s}, error:`,r),this.log(`获取路径 "${s}" 的ID失败!错误: ${r.toString()}`);return}const i=Ms({limit:1150,cid:o});try{const r=Date.now();this.log(`正在获取目录(id=${o})的文件列表...`);const a=await io(i),l=((Date.now()-r)/1e3).toFixed(2);this.log(`获取目录(id=${o})的文件列表成功,文件数量:${a.length}。耗时 ${l} 秒`);for(const u of a)if(!(u.fid||u.n!==t))try{const d=await At(u.cid);if(d.file_name){if(d.folder_count===0&&d.count===0){this.log(`目录(id=${o})的子目录(id=${u.cid})为空`);const h=Sd({id:u.cid,name:d.file_name,path:[...d.paths.map(y=>y.file_name).slice(1),d.file_name].join("/"),url:wo(u.cid),repeated:!0,ensured:!0,attr:d});await this.addEmptyItem(h);}else this.log(`目录(id=${o})的子目录(id=${u.cid})不为空`);this._checkedRepeatedPaths.add(n);}else this.log(`❌ 获取目录(id=${u.cid})属性失败!`);}catch(d){console.error(`[checkDirContainsRepeated] getAttr error! cid: ${u.cid}, error:`,d),this.log(`获取目录(id=${u.cid})属性失败!异常: ${d.toString()}`);}}catch(r){console.error(`[checkDirContainsRepeated] getFiles error! cid: ${o}, error:`,r),this.log(`获取目录(id=${o})的文件列表失败!错误: ${r.toString()}`);}}async checkRealEmpty(){const t=Date.now();this.log("========确认是否真的为空目录========");for(const s of this._emptyItems.values())if(!s.ensured)try{const o=await At(s.id);s.ensured=!0,s.attr=o,o.count===0&&o.folder_count===0?this.log(`目录(id=${s.id}) "${s.path}" 确认为空`):(s.disabled=!0,s.memo="目录不为空,请手动检查和处理",this.log(`目录(id=${s.id}) "${s.path}" 确认不为空,请手动检查和处理`));}catch(o){console.error(`[checkRealEmpty] getAttr error! cid: ${s.id}, error:`,o),this.log(`获取目录(id=${s.id}) "${s.path}" 属性失败!异常: ${o.toString()}`),s.disabled=!0,s.memo="确认是否为空目录失败,请手动检查和处理";}const n=((Date.now()-t)/1e3).toFixed(2);this.log(`确认是否真的为空目录完成,耗时 ${n} 秒`),this.log("=".repeat(60));}async onTreeFileGenerated(t){this._treeFile=t;for(const n of this.treeFileSubscribers)n(t);}async addEmptyItem(t){if(this._emptyItems.has(t.id)){console.log(`[addEmptyItem] path(id=${t.id}) "${t.path}" already exists in _emptyItems`);return}this._emptyItems.set(t.id,t);for(const n of this.emptyItemSubscribers)n(t);}async getEmptyItems(){return Array.from(this._emptyItems.values())}async log(t){t=`[${new Date().toLocaleString()}] ${t}`,this.logs.push(t);for(const n of this.logSubscribers)n(t);}async reset(){this.logs=[],this._emptyItems=new Map,this._tailData=La(),this._treeFile=null,this._checkedRepeatedPaths=new Set,this._pendingPaths=new Set;}};const j$={},H$={class:"ce-empty-cleaner-help"};function z$(e,t){return A(),T("div",H$,t[0]||(t[0]=[zp('<div data-v-11023afc><h2 data-v-11023afc>免责声明</h2><div data-v-11023afc><p data-v-11023afc>该工具仅作为学习测试用途,使用该工具造成的任何结果由使用人承担。</p></div><hr data-v-11023afc><h2 data-v-11023afc>说明</h2><ul style="color:#00f;" data-v-11023afc><li class="text-danger text-bold" data-v-11023afc> * <span style="font-size:120%;" data-v-11023afc>不要</span>直接清理一个巨大的文件夹!比如包含超过5万个文件夹。 太大的文件夹可能会导出目录树失败,且可能导致账号被系统风控。 </li><li data-v-11023afc>* 对于巨大的文件夹,可以分开清理下级文件夹。</li><li data-v-11023afc>* 只有违规文件的文件夹也会被检测到并列出,需要手动处理。</li><li data-v-11023afc>* 请谨慎操作!请谨慎操作!请谨慎操作!</li></ul><hr data-v-11023afc><h2 data-v-11023afc>流程</h2><ul style="color:#f40;" data-v-11023afc><li data-v-11023afc>1.确认当前显示的目录是否为需要进行清理的目录。</li><li data-v-11023afc>2.点击「检测空文件夹」按钮。</li><li data-v-11023afc>3.保持当前页面处于激活状态,留意日志区域的输出,耐心等待。</li><li data-v-11023afc>4.当看到「空文件夹检测已完成」的提示时,说明检测完成。</li><li data-v-11023afc>5.如果有空文件夹,会在空文件夹列表显示。</li><li data-v-11023afc>6.每个空文件夹都可以单独进行打开、获取详情、删除等操作。</li><li data-v-11023afc>7.批量删除: 勾选需要删除的空文件夹,点击「删除选中」进行删除。</li></ul><hr data-v-11023afc><h3 data-v-11023afc>原理和优劣</h3><div class="text-primary" data-v-11023afc> 本工具原理是导出目录树,然后查询文件,接着排除目录树中的文件,最后再判断目录树中剩余的项是否为空文件夹。 </div><ul data-v-11023afc><li class="text-bold text-success" data-v-11023afc>优点:</li><li class="text-success" data-v-11023afc>在子文件夹数量较多时,比逐层逐个查询文件列表要快得多。</li><li class="text-warning text-bold" data-v-11023afc>缺点:</li><li class="text-warning" data-v-11023afc>* 后缀名数量较多时,查询文件数据耗时较长。</li><li class="text-warning" data-v-11023afc>* 排除真实文件后,如剩余需判断项较多,耗时较长。</li><li class="text-warning" data-v-11023afc>* 不能判断大小为0且有空子文件夹的文件夹。</li></ul></div>',1)]))}const q$=je(j$,[["render",z$],["__scopeId","data-v-11023afc"],["__file","Help.vue"]]),V$={class:"ce-empty-cleaner ce-cleaner-x"},K$={class:"header actions-bar"},W$={class:"ce-path ce-label ce-label-primary-plain"},G$=["href"],J$={class:"top-actions"},Y$={class:"pure-form pure-form-aligned"},Q$={class:"pure-control-group"},X$={key:0},Z$={class:"text-primary"},eS={key:1},tS={class:"text-primary"},nS={key:0},sS=["href"],oS={key:0},iS={key:0},rS={class:"text-primary"},aS={class:"ec-items"},lS={class:"pure-table pure-table-bordered"},uS={width:"30"},cS=["disabled"],dS=["onUpdate:modelValue","onChange","disabled"],fS={key:0},pS={class:"ce-label ce-label-danger"},hS={key:0},mS={key:1},gS=["onClick","disabled"],yS=["onClick"],wS=["href"],bS={key:0},vS={class:"footer actions-bar"},_S={class:"ce-path ce-label ce-label-primary-plain"},xS=["href"],CS=Be({__name:"EmptyCleaner",setup(e){const t=oe(!1),n=oe(!0),s=oe(!1),o=oe(""),i=oe([]),r=oe(null),a=oe([]),l=oe(!1),u=oe(null),d=oe([]),h=oe([]),y=oe(null),v=oe(null),b=it(()=>v.value?cb(v.value.pick_code):""),_=it(()=>o.value?wo(o.value):"");let R;const L=oe({keepTree:!1});async function N(ve){ve.data.type===Ft.OPEN_EMPTY_CLEANER&&(await D(ve.data.payload),Ns({type:Ft.EMPTY_CLEANER_OPENED},ve.source));}qt(async()=>{window.addEventListener("message",N),R=new U$(o.value),R.addLogSubscriber(xe),R.addEmptyItemSubscriber(ye),R.addTreeFileSubscriber(Z);}),Gs(()=>{window.removeEventListener("message",N);});async function D(ve){t.value=!0;const M=await jt();if(M==="0"||M===""){await Ze(),await he.fire({icon:"warning",html:"<h2>不允许在根目录使用该工具!</h2>"});return}o.value&&o.value!==M&&console.warn("目录变化,重置"),r.value=await At(M),i.value=[...r.value.paths.slice(1).map(Ne=>Ne.file_name),r.value.file_name],o.value=M;}async function B(){l.value=!1,d.value=[],h.value=[],a.value=[],v.value=null;}async function F(){try{s.value=!0,await B(),await R.reset(),await R.setKeepTree(L.value.keepTree),await R.setDirId(o.value),await R.run(),he.fire({title:"空文件夹检测已完成"});}catch(ve){console.error(ve),he.fire({title:"空文件夹检测失败",text:ve.toString()});}finally{s.value=!1;}}async function j(ve){const M=h.value.join(`
`);if(ve==="copy")await uc(M)?ue({text:"已复制清理空文件夹日志",timer:1200}):ue({text:"复制清理空文件夹日志失败",timer:1200});else if(ve==="download"){let Ne=`清理空文件夹日志-${o.value}.txt`;nr(M,Ne);}}async function K(ve,M,Ne="path"){const ft=M==="all"?a.value:d.value;let Ie="";Ne==="path"?Ie=ft.map(gt=>gt.path).join(`
`):Ne==="full"&&(Ie=JSON.stringify(ft,null,2));const lt=Ne==="path"?"路径":"数据";if(ve==="copy")await uc(Ie)?ue({text:`已复制${lt}到剪贴板`,timer:1200}):ue({text:`复制${lt}失败`,timer:1200});else if(ve==="download"){let gt=`空文件夹${lt}-${o.value}-数量${ft.length}`;nr(Ie,`${gt}.${Ne==="path"?"txt":"json"}`);}}async function de(ve){const M=d.value;for(const Ne of M)window.open(Ne.url),await an(100);}async function be(ve){console.log("[onSelectDir]",ve);const{items:M}=ve,Ne=M[M.length-1];await B(),o.value=Ne.cid,r.value=await At(Ne.cid),i.value=[...r.value.paths.slice(1).map(ft=>ft.file_name),r.value.file_name];}async function _e(ve,M){if(ve.deleted){ue({text:"该目录已删除,不能再次删除!",timer:2e3,showConfirmButton:!0});return}s.value=!0,await S([ve.id])&&(ve.deleted=!0),s.value=!1;}async function pe(){if(!d.value.length)return;const ve=d.value.filter(M=>!M.deleted).map(M=>M.id);if(!ve.length){ue({text:"没有可删除的目录!",timer:2e3,showConfirmButton:!0});return}if(s.value=!0,await S(ve))for(const M of d.value)M.deleted=!0;s.value=!1;}async function S(ve){try{const M=await ql(o.value,ve);if(M.state)return !0;ue({text:`删除失败: ${M.errno} - ${M.error}`,timer:1200});}catch(M){console.error(M),ue({text:`删除失败!${M.toString()}`,timer:1200});}return !1}async function ee(ve){s.value=!0;try{const M=await At(ve.id),Ne=Ie=>new Date(Number(Ie)*1e3).toLocaleString(),{isConfirmed:ft}=await he.fire({title:"目录属性",html:`<div class="ce-ec-detail">
        <p><span>类型:</span> 文件夹</p>
        <p><span>大小:</span> ${M.size}</p>
        <p><span>创建时间:</span> ${Ne(M.ptime)}</p>
        <p><span>修改时间:</span> ${Ne(M.utime)}</p>
        <p><span>位置:</span> ${ve.path}</p>
      </div>
      `,showDenyButton:!0,denyButtonText:"关闭",showConfirmButton:!0,confirmButtonText:"查看目录"});ft&&window.open(ve.url);}catch(M){ue({text:`获取目录属性失败!${M.toString()}`,timer:1e4,showConfirmButton:!0});}finally{s.value=!1;}}async function Z(ve){v.value=ve;}async function xe(ve){h.value.push(ve),await Hs(),y.value.scrollTop=y.value.scrollHeight;}async function ye(ve){a.value.push(ve);}async function Pe(){console.log("[onAllCheckedChange]",l.value);for(const ve of a.value)ve.disabled||(ve.checked=l.value);await Ke();}async function Ee(ve,M){console.log("[onCheckChange]",ve,M),l.value=a.value.every(Ne=>Ne.checked),u.value.indeterminate=!l.value&&a.value.some(Ne=>Ne.checked),await Ke();}async function Ke(){d.value=a.value.filter(ve=>ve.checked);}async function Ze(){t.value=!1;}return (ve,M)=>ae((A(),T("span",V$,[nt(ve.$slots,"default",{},()=>[c("span",{class:"btn-open pure-button pure-button-primary",onClick:D},M[14]||(M[14]=[c("span",null,"清理空文件夹",-1)]))]),ge(hi,{"is-open":t.value,speed:300,"max-width":"calc(100vw - 72px)",onClose:M[13]||(M[13]=Ne=>t.value=!1)},{default:Re(()=>{var Ne,ft;return [ae(c("div",{class:He(["ce-empty-cleaner-drawer",{loading:s.value}])},[ge(q$),c("div",K$,[M[16]||(M[16]=c("span",{class:"title"},"空文件夹清理工具",-1)),c("span",{class:"close"},[c("button",{type:"button",class:"pure-button button-error",onClick:Ze},"关闭")]),M[17]||(M[17]=U("     ")),ge(mi,{purpose:"清理空文件夹",onSelect:be}),c("div",W$,[c("a",{target:"_blank",href:_.value,title:"打开目录"},[M[15]||(M[15]=c("i",{class:"file-type tp-folder",style:{}},null,-1)),U(" "+G(i.value.join(" / ")),1)],8,G$)])]),c("div",null,[c("div",J$,[c("div",null,[c("button",{type:"button",class:"pure-button pure-button-primary",onClick:F},"检测空文件夹")]),c("div",null,[c("form",Y$,[c("fieldset",null,[c("div",Q$,[r.value?(A(),T("label",X$,[M[18]||(M[18]=c("span",null,"文件夹数量:",-1)),M[19]||(M[19]=U("  ")),c("b",Z$,G((Ne=r.value)==null?void 0:Ne.folder_count),1)])):we("",!0),r.value?(A(),T("label",eS,[M[20]||(M[20]=c("span",null,"文件数量:",-1)),M[21]||(M[21]=U("  ")),c("b",tS,G((ft=r.value)==null?void 0:ft.count),1)])):we("",!0),c("label",null,[ae(c("input",{type:"checkbox",class:"ce-checkbox","onUpdate:modelValue":M[0]||(M[0]=Ie=>L.value.keepTree=Ie)},null,512),[[Ve,L.value.keepTree]]),M[23]||(M[23]=U("  ")),M[24]||(M[24]=c("span",{title:"不会删除目录树文件"},"保留目录树文件",-1)),v.value?(A(),T("span",nS,[M[22]||(M[22]=U("    ")),c("a",{href:b.value,class:"text-primary",target:"_blank"},"查看目录树文件",8,sS)])):we("",!0)])])])])])]),c("h3",null,[M[27]||(M[27]=U(" 日志 ")),h.value.length?(A(),T("span",oS,[M[25]||(M[25]=U("     ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:M[1]||(M[1]=Ie=>j("copy"))},"复制日志"),M[26]||(M[26]=U("     ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:M[2]||(M[2]=Ie=>j("download"))},"保存日志")])):we("",!0)]),c("div",{ref_key:"refLogs",ref:y,class:"ec-logs"},[(A(!0),T(De,null,Ge(h.value,(Ie,lt)=>(A(),T("div",{key:lt},G(Ie),1))),128))],512),c("h3",null,[M[32]||(M[32]=U(" 空文件夹 ")),a.value.length?(A(),T("span",iS,[c("span",rS," ( "+G(a.value.length)+" )",1),M[28]||(M[28]=U("     ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:M[3]||(M[3]=Ie=>K("copy","all","path"))},"复制路径"),M[29]||(M[29]=U("   ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:M[4]||(M[4]=Ie=>K("copy","all","full"))},"复制数据"),M[30]||(M[30]=U("     ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:M[5]||(M[5]=Ie=>K("download","all","path"))},"保存路径"),M[31]||(M[31]=U("   ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:M[6]||(M[6]=Ie=>K("download","all","full"))},"保存数据")])):we("",!0)]),c("div",aS,[c("table",lS,[c("thead",null,[c("tr",null,[M[33]||(M[33]=c("th",{width:"25"},"#",-1)),c("th",uS,[ae(c("input",{ref_key:"refAllChecked",ref:u,type:"checkbox",class:"ce-checkbox","onUpdate:modelValue":M[7]||(M[7]=Ie=>l.value=Ie),onChange:Pe,disabled:!a.value.length},null,40,cS),[[Ve,l.value]])]),M[34]||(M[34]=c("th",{width:"140"},"ID",-1)),M[35]||(M[35]=c("th",null,"路径",-1)),M[36]||(M[36]=c("th",{width:"150"},"操作",-1))])]),c("tbody",null,[(A(!0),T(De,null,Ge(a.value,(Ie,lt)=>(A(),T("tr",{key:lt,class:He({"tr-deleted":Ie.deleted})},[c("td",null,G(lt+1),1),c("td",null,[ae(c("input",{type:"checkbox",class:"ce-checkbox","onUpdate:modelValue":gt=>Ie.checked=gt,onChange:gt=>Ee(Ie,lt),disabled:Ie.disabled},null,40,dS),[[Ve,Ie.checked]])]),c("td",null,G(Ie.id),1),c("td",null,[c("div",null,G(Ie.path),1),Ie.memo?(A(),T("div",fS,[c("span",pS,G(Ie.memo),1)])):we("",!0)]),c("td",null,[Ie.deleted?(A(),T("div",hS,M[37]||(M[37]=[c("span",{class:"label-danger"},"已删除",-1)]))):(A(),T("div",mS,[c("button",{type:"button",class:"pure-button button-xsmall button-error",onClick:gt=>_e(Ie,lt),disabled:Ie.disabled},"删除",8,gS),M[38]||(M[38]=U("   ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:gt=>ee(Ie)},"详情",8,yS),M[39]||(M[39]=U("   ")),c("a",{class:"pure-button button-xsmall",href:Ie.url,target:"_blank"},"打开",8,wS)]))])],2))),128))])]),d.value.length?(A(),T("div",bS,[M[40]||(M[40]=c("br",null,null,-1)),c("button",{type:"button",class:"pure-button button-error",onClick:pe},"删除选中 ("+G(d.value.length)+")",1),M[41]||(M[41]=U("     ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:M[8]||(M[8]=Ie=>K("copy","checked","path"))},"复制已选路径"),M[42]||(M[42]=U("   ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:M[9]||(M[9]=Ie=>K("copy","checked","full"))},"复制已选数据"),M[43]||(M[43]=U("     ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:M[10]||(M[10]=Ie=>K("download","checked","path"))},"保存已选路径"),M[44]||(M[44]=U("   ")),c("button",{type:"button",class:"pure-button button-xsmall",onClick:M[11]||(M[11]=Ie=>K("download","checked","full"))},"保存已选数据"),M[45]||(M[45]=U("     ")),c("button",{type:"button",class:"pure-button button-success button-xsmall",onClick:M[12]||(M[12]=Ie=>de("checked"))},"打开已选")])):we("",!0)])]),c("div",vS,[M[47]||(M[47]=c("span",{class:"title"},"空文件夹清理工具",-1)),c("span",{class:"close"},[c("button",{type:"button",class:"pure-button button-error",onClick:Ze},"关闭")]),M[48]||(M[48]=U("      ")),ge(mi,{purpose:"清理空文件夹",onSelect:be}),M[49]||(M[49]=U("      ")),ge(zh,{container:".ce-empty-cleaner-drawer"}),c("div",_S,[c("a",{target:"_blank",href:_.value,title:"打开目录"},[M[46]||(M[46]=c("i",{class:"file-type tp-folder",style:{}},null,-1)),U(" "+G(i.value.join(" / ")),1)],8,xS)])])],2),[[Nt,t.value]])]}),_:1},8,["is-open"])],512)),[[Nt,n.value]])}}),kS=je(CS,[["__file","EmptyCleaner.vue"]]);async function $S(){const{host:e}=location;e==="115.com"&&(console.log("[Cleaner] running..."),bs()?(await SS(),await ES()):(await AS(),await PS()));}async function sa(){return typeof window.$<"u"}async function SS(){await sa()||console.log("[Cleaner injectFileCleanerTrigger] JQuery not found");const e="cloud115Cleaner",t=await $t("#js_path_add_dir"),n=Qt(`<span id="${e}"/>`);t.insertAdjacentElement("afterend",n),qn(QC).mount(`#${e}`);}async function ES(){await sa()||console.log("[Cleaner injectEmptyCleanerTrigger] JQuery not found");const e="cloud115EmptyCleaner",t=await $t("#js_path_add_dir"),n=Qt(`<span id="${e}"/>`);t.insertAdjacentElement("afterend",n),qn(R$).mount(`#${e}`);}async function AS(){await sa()||console.log("[Cleaner injectFileCleanerUI] JQuery not found");const e="cloud115Cleaner",t=Qt(`<div id="${e}"/>`);document.body.appendChild(t);const n=qn(M$);n.use(na),n.mount(`#${e}`),Zi("清理文件",async()=>{Ns({type:Ft.OPEN_CLEANER},window.parent);});}async function PS(){await sa()||console.log("[Cleaner injectEmptyCleanerUI] JQuery not found");const e="cloud115EmptyCleaner",t=Qt(`<div id="${e}"/>`);document.body.appendChild(t);const n=qn(kS);n.use(na),n.mount(`#${e}`),Zi("清理空目录",async()=>{Ns({type:Ft.OPEN_EMPTY_CLEANER},window.parent);});}function qh(e,t){return function(){return e.apply(t,arguments)}}const{toString:Vh}=Object.prototype,{getPrototypeOf:wu}=Object,bu=(e=>t=>{const n=Vh.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zn=e=>(e=e.toLowerCase(),t=>bu(t)===e),oa=e=>t=>typeof t===e,{isArray:Po}=Array,gi=oa("undefined");function IS(e){return e!==null&&!gi(e)&&e.constructor!==null&&!gi(e.constructor)&&gs(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Kh=Zn("ArrayBuffer");function TS(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Kh(e.buffer),t}const OS=oa("string"),gs=oa("function"),Wh=oa("number"),vu=e=>e!==null&&typeof e=="object",DS=e=>e===!0||e===!1,Yi=e=>{if(bu(e)!=="object")return !1;const t=wu(e);return (t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},MS=Zn("Date"),LS=Zn("File"),BS=Zn("Blob"),RS=Zn("FileList"),NS=e=>vu(e)&&gs(e.pipe),FS=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Vh.call(e)===t||gs(e.toString)&&e.toString()===t)},US=Zn("URLSearchParams"),jS=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ci(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),Po(e))for(s=0,o=e.length;s<o;s++)t.call(null,e[s],s,e);else {const i=n?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let a;for(s=0;s<r;s++)a=i[s],t.call(null,e[a],a,e);}}function Gh(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,o;for(;s-- >0;)if(o=n[s],t===o.toLowerCase())return o;return null}const Jh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Yh=e=>!gi(e)&&e!==Jh;function vl(){const{caseless:e}=Yh(this)&&this||{},t={},n=(s,o)=>{const i=e&&Gh(t,o)||o;Yi(t[i])&&Yi(s)?t[i]=vl(t[i],s):Yi(s)?t[i]=vl({},s):Po(s)?t[i]=s.slice():t[i]=s;};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&Ci(arguments[s],n);return t}const HS=(e,t,n,{allOwnKeys:s}={})=>(Ci(t,(o,i)=>{n&&gs(o)?e[i]=qh(o,n):e[i]=o;},{allOwnKeys:s}),e),zS=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),qS=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n);},VS=(e,t,n,s)=>{let o,i,r;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)r=o[i],(!s||s(r,e,t))&&!a[r]&&(t[r]=e[r],a[r]=!0);e=n!==!1&&wu(e);}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},KS=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},WS=e=>{if(!e)return null;if(Po(e))return e;let t=e.length;if(!Wh(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},GS=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wu(Uint8Array)),JS=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=s.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1]);}},YS=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},QS=Zn("HTMLFormElement"),XS=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),Ed=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ZS=Zn("RegExp"),Qh=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Ci(n,(o,i)=>{t(o,i,e)!==!1&&(s[i]=o);}),Object.defineProperties(e,s);},eE=e=>{Qh(e,(t,n)=>{if(gs(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return !1;const s=e[n];if(gs(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")});}});},tE=(e,t)=>{const n={},s=o=>{o.forEach(i=>{n[i]=!0;});};return Po(e)?s(e):s(String(e).split(t)),n},nE=()=>{},sE=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ba="abcdefghijklmnopqrstuvwxyz",Ad="0123456789",Xh={DIGIT:Ad,ALPHA:Ba,ALPHA_DIGIT:Ba+Ba.toUpperCase()+Ad},oE=(e=16,t=Xh.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function iE(e){return !!(e&&gs(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const rE=e=>{const t=new Array(10),n=(s,o)=>{if(vu(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[o]=s;const i=Po(s)?[]:{};return Ci(s,(r,a)=>{const l=n(r,o+1);!gi(l)&&(i[a]=l);}),t[o]=void 0,i}}return s};return n(e,0)},ne={isArray:Po,isArrayBuffer:Kh,isBuffer:IS,isFormData:FS,isArrayBufferView:TS,isString:OS,isNumber:Wh,isBoolean:DS,isObject:vu,isPlainObject:Yi,isUndefined:gi,isDate:MS,isFile:LS,isBlob:BS,isRegExp:ZS,isFunction:gs,isStream:NS,isURLSearchParams:US,isTypedArray:GS,isFileList:RS,forEach:Ci,merge:vl,extend:HS,trim:jS,stripBOM:zS,inherits:qS,toFlatObject:VS,kindOf:bu,kindOfTest:Zn,endsWith:KS,toArray:WS,forEachEntry:JS,matchAll:YS,isHTMLForm:QS,hasOwnProperty:Ed,hasOwnProp:Ed,reduceDescriptors:Qh,freezeMethods:eE,toObjectSet:tE,toCamelCase:XS,noop:nE,toFiniteNumber:sE,findKey:Gh,global:Jh,isContextDefined:Yh,ALPHABET:Xh,generateString:oE,isSpecCompliantForm:iE,toJSONObject:rE};function Xe(e,t,n,s,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),o&&(this.response=o);}ne.inherits(Xe,Error,{toJSON:function(){return {message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ne.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Zh=Xe.prototype,em={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{em[e]={value:e};});Object.defineProperties(Xe,em);Object.defineProperty(Zh,"isAxiosError",{value:!0});Xe.from=(e,t,n,s,o,i)=>{const r=Object.create(Zh);return ne.toFlatObject(e,r,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Xe.call(r,e.message,t,n,s,o),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const aE=null;function _l(e){return ne.isPlainObject(e)||ne.isArray(e)}function tm(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function Pd(e,t,n){return e?e.concat(t).map(function(o,i){return o=tm(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function lE(e){return ne.isArray(e)&&!e.some(_l)}const uE=ne.toFlatObject(ne,{},null,function(t){return /^is[A-Z]/.test(t)});function ia(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,R){return !ne.isUndefined(R[_])});const s=n.metaTokens,o=n.visitor||d,i=n.dots,r=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(o))throw new TypeError("visitor must be a function");function u(b){if(b===null)return "";if(ne.isDate(b))return b.toISOString();if(!l&&ne.isBlob(b))throw new Xe("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(b)||ne.isTypedArray(b)?l&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function d(b,_,R){let L=b;if(b&&!R&&typeof b=="object"){if(ne.endsWith(_,"{}"))_=s?_:_.slice(0,-2),b=JSON.stringify(b);else if(ne.isArray(b)&&lE(b)||(ne.isFileList(b)||ne.endsWith(_,"[]"))&&(L=ne.toArray(b)))return _=tm(_),L.forEach(function(D,B){!(ne.isUndefined(D)||D===null)&&t.append(r===!0?Pd([_],B,i):r===null?_:_+"[]",u(D));}),!1}return _l(b)?!0:(t.append(Pd(R,_,i),u(b)),!1)}const h=[],y=Object.assign(uE,{defaultVisitor:d,convertValue:u,isVisitable:_l});function v(b,_){if(!ne.isUndefined(b)){if(h.indexOf(b)!==-1)throw Error("Circular reference detected in "+_.join("."));h.push(b),ne.forEach(b,function(L,N){(!(ne.isUndefined(L)||L===null)&&o.call(t,L,ne.isString(N)?N.trim():N,_,y))===!0&&v(L,_?_.concat(N):[N]);}),h.pop();}}if(!ne.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Id(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function _u(e,t){this._pairs=[],e&&ia(e,this,t);}const nm=_u.prototype;nm.append=function(t,n){this._pairs.push([t,n]);};nm.toString=function(t){const n=t?function(s){return t.call(this,s,Id)}:Id;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function cE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function sm(e,t,n){if(!t)return e;const s=n&&n.encode||cE,o=n&&n.serialize;let i;if(o?i=o(t,n):i=ne.isURLSearchParams(t)?t.toString():new _u(t,n).toString(s),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i;}return e}class Td{constructor(){this.handlers=[];}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null);}clear(){this.handlers&&(this.handlers=[]);}forEach(t){ne.forEach(this.handlers,function(s){s!==null&&t(s);});}}const om={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dE=typeof URLSearchParams<"u"?URLSearchParams:_u,fE=typeof FormData<"u"?FormData:null,pE=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),hE=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Mn={isBrowser:!0,classes:{URLSearchParams:dE,FormData:fE,Blob},isStandardBrowserEnv:pE,isStandardBrowserWebWorkerEnv:hE,protocols:["http","https","file","blob","url","data"]};function mE(e,t){return ia(e,new Mn.classes.URLSearchParams,Object.assign({visitor:function(n,s,o,i){return Mn.isNode&&ne.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function gE(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function yE(e){const t={},n=Object.keys(e);let s;const o=n.length;let i;for(s=0;s<o;s++)i=n[s],t[i]=e[i];return t}function im(e){function t(n,s,o,i){let r=n[i++];const a=Number.isFinite(+r),l=i>=n.length;return r=!r&&ne.isArray(o)?o.length:r,l?(ne.hasOwnProp(o,r)?o[r]=[o[r],s]:o[r]=s,!a):((!o[r]||!ne.isObject(o[r]))&&(o[r]=[]),t(n,s,o[r],i)&&ne.isArray(o[r])&&(o[r]=yE(o[r])),!a)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(s,o)=>{t(gE(s),o,n,0);}),n}return null}const wE={"Content-Type":void 0};function bE(e,t,n){if(ne.isString(e))try{return (t||JSON.parse)(e),ne.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return (n||JSON.stringify)(e)}const Io={transitional:om,adapter:["xhr","http"],transformRequest:[function(t,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,i=ne.isObject(t);if(i&&ne.isHTMLForm(t)&&(t=new FormData(t)),ne.isFormData(t))return o&&o?JSON.stringify(im(t)):t;if(ne.isArrayBuffer(t)||ne.isBuffer(t)||ne.isStream(t)||ne.isFile(t)||ne.isBlob(t))return t;if(ne.isArrayBufferView(t))return t.buffer;if(ne.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return mE(t,this.formSerializer).toString();if((a=ne.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ia(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),bE(t)):t}],transformResponse:[function(t){const n=this.transitional||Io.transitional,s=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&ne.isString(t)&&(s&&!this.responseType||o)){const r=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(r)throw a.name==="SyntaxError"?Xe.from(a,Xe.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Mn.classes.FormData,Blob:Mn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ne.forEach(["delete","get","head"],function(t){Io.headers[t]={};});ne.forEach(["post","put","patch"],function(t){Io.headers[t]=ne.merge(wE);});const vE=ne.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_E=e=>{const t={};let n,s,o;return e&&e.split(`
`).forEach(function(r){o=r.indexOf(":"),n=r.substring(0,o).trim().toLowerCase(),s=r.substring(o+1).trim(),!(!n||t[n]&&vE[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s);}),t},Od=Symbol("internals");function Uo(e){return e&&String(e).trim().toLowerCase()}function Qi(e){return e===!1||e==null?e:ne.isArray(e)?e.map(Qi):String(e)}function xE(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}function CE(e){return /^[-_a-zA-Z]+$/.test(e.trim())}function Ra(e,t,n,s,o){if(ne.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!ne.isString(t)){if(ne.isString(s))return t.indexOf(s)!==-1;if(ne.isRegExp(s))return s.test(t)}}function kE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function $E(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(o,i,r){return this[s].call(this,t,o,i,r)},configurable:!0});});}let fn=class{constructor(t){t&&this.set(t);}set(t,n,s){const o=this;function i(a,l,u){const d=Uo(l);if(!d)throw new Error("header name must be a non-empty string");const h=ne.findKey(o,d);(!h||o[h]===void 0||u===!0||u===void 0&&o[h]!==!1)&&(o[h||l]=Qi(a));}const r=(a,l)=>ne.forEach(a,(u,d)=>i(u,d,l));return ne.isPlainObject(t)||t instanceof this.constructor?r(t,n):ne.isString(t)&&(t=t.trim())&&!CE(t)?r(_E(t),n):t!=null&&i(n,t,s),this}get(t,n){if(t=Uo(t),t){const s=ne.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return xE(o);if(ne.isFunction(n))return n.call(this,o,s);if(ne.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Uo(t),t){const s=ne.findKey(this,t);return !!(s&&this[s]!==void 0&&(!n||Ra(this,this[s],s,n)))}return !1}delete(t,n){const s=this;let o=!1;function i(r){if(r=Uo(r),r){const a=ne.findKey(s,r);a&&(!n||Ra(s,s[a],a,n))&&(delete s[a],o=!0);}}return ne.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let s=n.length,o=!1;for(;s--;){const i=n[s];(!t||Ra(this,this[i],i,t,!0))&&(delete this[i],o=!0);}return o}normalize(t){const n=this,s={};return ne.forEach(this,(o,i)=>{const r=ne.findKey(s,i);if(r){n[r]=Qi(o),delete n[i];return}const a=t?kE(i):String(i).trim();a!==i&&delete n[i],n[a]=Qi(o),s[a]=!0;}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ne.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&ne.isArray(s)?s.join(", "):s);}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return "AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(o=>s.set(o)),s}static accessor(t){const s=(this[Od]=this[Od]={accessors:{}}).accessors,o=this.prototype;function i(r){const a=Uo(r);s[a]||($E(o,r),s[a]=!0);}return ne.isArray(t)?t.forEach(i):i(t),this}};fn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.freezeMethods(fn.prototype);ne.freezeMethods(fn);function Na(e,t){const n=this||Io,s=t||n,o=fn.from(s.headers);let i=s.data;return ne.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0);}),o.normalize(),i}function rm(e){return !!(e&&e.__CANCEL__)}function ki(e,t,n){Xe.call(this,e??"canceled",Xe.ERR_CANCELED,t,n),this.name="CanceledError";}ne.inherits(ki,Xe,{__CANCEL__:!0});function SE(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new Xe("Request failed with status code "+n.status,[Xe.ERR_BAD_REQUEST,Xe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n));}const EE=Mn.isStandardBrowserEnv?function(){return {write:function(n,s,o,i,r,a){const l=[];l.push(n+"="+encodeURIComponent(s)),ne.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),ne.isString(i)&&l.push("path="+i),ne.isString(r)&&l.push("domain="+r),a===!0&&l.push("secure"),document.cookie=l.join("; ");},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5);}}}():function(){return {write:function(){},read:function(){return null},remove:function(){}}}();function AE(e){return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function PE(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function am(e,t){return e&&!AE(t)?PE(e,t):t}const IE=Mn.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function o(i){let r=i;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=o(window.location.href),function(r){const a=ne.isString(r)?o(r):r;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return !0}}();function TE(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function OE(e,t){e=e||10;const n=new Array(e),s=new Array(e);let o=0,i=0,r;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=s[i];r||(r=u),n[o]=l,s[o]=u;let h=i,y=0;for(;h!==o;)y+=n[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-r<t)return;const v=d&&u-d;return v?Math.round(y*1e3/v):void 0}}function Dd(e,t){let n=0;const s=OE(50,250);return o=>{const i=o.loaded,r=o.lengthComputable?o.total:void 0,a=i-n,l=s(a),u=i<=r;n=i;const d={loaded:i,total:r,progress:r?i/r:void 0,bytes:a,rate:l||void 0,estimated:l&&r&&u?(r-i)/l:void 0,event:o};d[t?"download":"upload"]=!0,e(d);}}const DE=typeof XMLHttpRequest<"u",ME=DE&&function(e){return new Promise(function(n,s){let o=e.data;const i=fn.from(e.headers).normalize(),r=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a);}ne.isFormData(o)&&(Mn.isStandardBrowserEnv||Mn.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(v+":"+b));}const d=am(e.baseURL,e.url);u.open(e.method.toUpperCase(),sm(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function h(){if(!u)return;const v=fn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),_={data:!r||r==="text"||r==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:v,config:e,request:u};SE(function(L){n(L),l();},function(L){s(L),l();},_),u=null;}if("onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(h);},u.onabort=function(){u&&(s(new Xe("Request aborted",Xe.ECONNABORTED,e,u)),u=null);},u.onerror=function(){s(new Xe("Network Error",Xe.ERR_NETWORK,e,u)),u=null;},u.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const _=e.transitional||om;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),s(new Xe(b,_.clarifyTimeoutError?Xe.ETIMEDOUT:Xe.ECONNABORTED,e,u)),u=null;},Mn.isStandardBrowserEnv){const v=(e.withCredentials||IE(d))&&e.xsrfCookieName&&EE.read(e.xsrfCookieName);v&&i.set(e.xsrfHeaderName,v);}o===void 0&&i.setContentType(null),"setRequestHeader"in u&&ne.forEach(i.toJSON(),function(b,_){u.setRequestHeader(_,b);}),ne.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),r&&r!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Dd(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Dd(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=v=>{u&&(s(!v||v.type?new ki(null,e,u):v),u.abort(),u=null);},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const y=TE(d);if(y&&Mn.protocols.indexOf(y)===-1){s(new Xe("Unsupported protocol "+y+":",Xe.ERR_BAD_REQUEST,e));return}u.send(o||null);})},Xi={http:aE,xhr:ME};ne.forEach(Xi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t});}catch{}Object.defineProperty(e,"adapterName",{value:t});}});const LE={getAdapter:e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,s;for(let o=0;o<t&&(n=e[o],!(s=ne.isString(n)?Xi[n.toLowerCase()]:n));o++);if(!s)throw s===!1?new Xe(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(ne.hasOwnProp(Xi,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!ne.isFunction(s))throw new TypeError("adapter is not a function");return s},adapters:Xi};function Fa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ki(null,e)}function Md(e){return Fa(e),e.headers=fn.from(e.headers),e.data=Na.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),LE.getAdapter(e.adapter||Io.adapter)(e).then(function(s){return Fa(e),s.data=Na.call(e,e.transformResponse,s),s.headers=fn.from(s.headers),s},function(s){return rm(s)||(Fa(e),s&&s.response&&(s.response.data=Na.call(e,e.transformResponse,s.response),s.response.headers=fn.from(s.response.headers))),Promise.reject(s)})}const Ld=e=>e instanceof fn?e.toJSON():e;function Co(e,t){t=t||{};const n={};function s(u,d,h){return ne.isPlainObject(u)&&ne.isPlainObject(d)?ne.merge.call({caseless:h},u,d):ne.isPlainObject(d)?ne.merge({},d):ne.isArray(d)?d.slice():d}function o(u,d,h){if(ne.isUndefined(d)){if(!ne.isUndefined(u))return s(void 0,u,h)}else return s(u,d,h)}function i(u,d){if(!ne.isUndefined(d))return s(void 0,d)}function r(u,d){if(ne.isUndefined(d)){if(!ne.isUndefined(u))return s(void 0,u)}else return s(void 0,d)}function a(u,d,h){if(h in t)return s(u,d);if(h in e)return s(void 0,u)}const l={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:a,headers:(u,d)=>o(Ld(u),Ld(d),!0)};return ne.forEach(Object.keys(e).concat(Object.keys(t)),function(d){const h=l[d]||o,y=h(e[d],t[d],d);ne.isUndefined(y)&&h!==a||(n[d]=y);}),n}const lm="1.3.3",xu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{xu[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e};});const Bd={};xu.transitional=function(t,n,s){function o(i,r){return "[Axios v"+lm+"] Transitional option '"+i+"'"+r+(s?". "+s:"")}return (i,r,a)=>{if(t===!1)throw new Xe(o(r," has been removed"+(n?" in "+n:"")),Xe.ERR_DEPRECATED);return n&&!Bd[r]&&(Bd[r]=!0,console.warn(o(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,r,a):!0}};function BE(e,t,n){if(typeof e!="object")throw new Xe("options must be an object",Xe.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const i=s[o],r=t[i];if(r){const a=e[i],l=a===void 0||r(a,i,e);if(l!==!0)throw new Xe("option "+i+" must be "+l,Xe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Xe("Unknown option "+i,Xe.ERR_BAD_OPTION)}}const xl={assertOptions:BE,validators:xu},ts=xl.validators;let Bs=class{constructor(t){this.defaults=t,this.interceptors={request:new Td,response:new Td};}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Co(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:i}=n;s!==void 0&&xl.assertOptions(s,{silentJSONParsing:ts.transitional(ts.boolean),forcedJSONParsing:ts.transitional(ts.boolean),clarifyTimeoutError:ts.transitional(ts.boolean)},!1),o!==void 0&&xl.assertOptions(o,{encode:ts.function,serialize:ts.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r;r=i&&ne.merge(i.common,i[n.method]),r&&ne.forEach(["delete","get","head","post","put","patch","common"],b=>{delete i[b];}),n.headers=fn.concat(r,i);const a=[];let l=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(l=l&&_.synchronous,a.unshift(_.fulfilled,_.rejected));});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected);});let d,h=0,y;if(!l){const b=[Md.bind(this),void 0];for(b.unshift.apply(b,a),b.push.apply(b,u),y=b.length,d=Promise.resolve(n);h<y;)d=d.then(b[h++],b[h++]);return d}y=a.length;let v=n;for(h=0;h<y;){const b=a[h++],_=a[h++];try{v=b(v);}catch(R){_.call(this,R);break}}try{d=Md.call(this,v);}catch(b){return Promise.reject(b)}for(h=0,y=u.length;h<y;)d=d.then(u[h++],u[h++]);return d}getUri(t){t=Co(this.defaults,t);const n=am(t.baseURL,t.url);return sm(n,t.params,t.paramsSerializer)}};ne.forEach(["delete","get","head","options"],function(t){Bs.prototype[t]=function(n,s){return this.request(Co(s||{},{method:t,url:n,data:(s||{}).data}))};});ne.forEach(["post","put","patch"],function(t){function n(s){return function(i,r,a){return this.request(Co(a||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}Bs.prototype[t]=n(),Bs.prototype[t+"Form"]=n(!0);});let RE=class um{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i;});const s=this;this.promise.then(o=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](o);s._listeners=null;}),this.promise.then=o=>{let i;const r=new Promise(a=>{s.subscribe(a),i=a;}).then(o);return r.cancel=function(){s.unsubscribe(i);},r},t(function(i,r,a){s.reason||(s.reason=new ki(i,r,a),n(s.reason));});}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t];}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1);}static source(){let t;return {token:new um(function(o){t=o;}),cancel:t}}};function NE(e){return function(n){return e.apply(null,n)}}function FE(e){return ne.isObject(e)&&e.isAxiosError===!0}const Cl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Cl).forEach(([e,t])=>{Cl[t]=e;});function cm(e){const t=new Bs(e),n=qh(Bs.prototype.request,t);return ne.extend(n,Bs.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return cm(Co(e,o))},n}const bt=cm(Io);bt.Axios=Bs;bt.CanceledError=ki;bt.CancelToken=RE;bt.isCancel=rm;bt.VERSION=lm;bt.toFormData=ia;bt.AxiosError=Xe;bt.Cancel=bt.CanceledError;bt.all=function(t){return Promise.all(t)};bt.spread=NE;bt.isAxiosError=FE;bt.mergeConfig=Co;bt.AxiosHeaders=fn;bt.formToJSON=e=>im(ne.isHTMLForm(e)?new FormData(e):e);bt.HttpStatusCode=Cl;bt.default=bt;const{Axios:uM,AxiosError:UE,CanceledError:cM,isCancel:dM,CancelToken:fM,VERSION:pM,all:hM,Cancel:mM,isAxiosError:gM,spread:yM,toFormData:wM,AxiosHeaders:bM,HttpStatusCode:vM,formToJSON:_M,mergeConfig:xM}=bt,jE=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);var HE=e=>!jE.has(e&&e.code);const zE=Bl(HE),Cu="axios-retry";function dm(e){const t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:zE(e)}const fm=["get","head","options"],qE=fm.concat(["put","delete"]);function ku(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function VE(e){var t;return (t=e.config)!=null&&t.method?ku(e)&&fm.indexOf(e.config.method)!==-1:!1}function pm(e){var t;return (t=e.config)!=null&&t.method?ku(e)&&qE.indexOf(e.config.method)!==-1:!1}function hm(e){return dm(e)||pm(e)}function mm(e=void 0){var s;const t=(s=e==null?void 0:e.response)==null?void 0:s.headers["retry-after"];if(!t)return 0;let n=(Number(t)||0)*1e3;return n===0&&(n=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,n)}function KE(e=0,t=void 0){return Math.max(0,mm(t))}function WE(e=0,t=void 0,n=100){const s=2**e*n,o=Math.max(s,mm(t)),i=o*.2*Math.random();return o+i}const GE={retries:3,retryCondition:hm,retryDelay:KE,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function JE(e,t){return {...GE,...t,...e[Cu]}}function Rd(e,t){const n=JE(e,t||{});return n.retryCount=n.retryCount||0,n.lastRequestTime=n.lastRequestTime||Date.now(),e[Cu]=n,n}function YE(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent;}async function QE(e,t){const{retries:n,retryCondition:s}=e,o=(e.retryCount||0)<n&&s(t);if(typeof o=="object")try{return await o!==!1}catch{return !1}return o}async function XE(e,t,n,s){var l;t.retryCount+=1;const{retryDelay:o,shouldResetTimeout:i,onRetry:r}=t,a=o(t.retryCount,n);if(YE(e,s),!i&&s.timeout&&t.lastRequestTime){const u=Date.now()-t.lastRequestTime,d=s.timeout-u-a;if(d<=0)return Promise.reject(n);s.timeout=d;}return s.transformRequest=[u=>u],await r(t.retryCount,n,s),(l=s.signal)!=null&&l.aborted?Promise.resolve(e(s)):new Promise(u=>{var y;const d=()=>{clearTimeout(h),u(e(s));},h=setTimeout(()=>{var v;u(e(s)),(v=s.signal)!=null&&v.removeEventListener&&s.signal.removeEventListener("abort",d);},a);(y=s.signal)!=null&&y.addEventListener&&s.signal.addEventListener("abort",d,{once:!0});})}async function ZE(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount);}const Js=(e,t)=>{const n=e.interceptors.request.use(o=>{var i;return Rd(o,t),(i=o[Cu])!=null&&i.validateResponse&&(o.validateStatus=()=>!1),o}),s=e.interceptors.response.use(null,async o=>{var a;const{config:i}=o;if(!i)return Promise.reject(o);const r=Rd(i,t);return o.response&&((a=r.validateResponse)!=null&&a.call(r,o.response))?o.response:await QE(r,o)?XE(e,r,o,i):(await ZE(r,o),Promise.reject(o))});return {requestInterceptorId:n,responseInterceptorId:s}};Js.isNetworkError=dm;Js.isSafeRequestError=VE;Js.isIdempotentRequestError=pm;Js.isNetworkOrIdempotentRequestError=hm;Js.exponentialDelay=WE;Js.isRetryableError=ku;var eA=class{constructor(t={}){this.points=t.points,this.duration=t.duration,this.blockDuration=t.blockDuration,this.execEvenly=t.execEvenly,this.execEvenlyMinDelayMs=t.execEvenlyMinDelayMs,this.keyPrefix=t.keyPrefix;}get points(){return this._points}set points(t){this._points=t>=0?t:4;}get duration(){return this._duration}set duration(t){this._duration=typeof t>"u"?1:t;}get msDuration(){return this.duration*1e3}get blockDuration(){return this._blockDuration}set blockDuration(t){this._blockDuration=typeof t>"u"?0:t;}get msBlockDuration(){return this.blockDuration*1e3}get execEvenly(){return this._execEvenly}set execEvenly(t){this._execEvenly=typeof t>"u"?!1:!!t;}get execEvenlyMinDelayMs(){return this._execEvenlyMinDelayMs}set execEvenlyMinDelayMs(t){this._execEvenlyMinDelayMs=typeof t>"u"?Math.ceil(this.msDuration/this.points):t;}get keyPrefix(){return this._keyPrefix}set keyPrefix(t){if(typeof t>"u"&&(t="rlflx"),typeof t!="string")throw new Error("keyPrefix must be string");this._keyPrefix=t;}_getKeySecDuration(t={}){return t&&t.customDuration>=0?t.customDuration:this.duration}getKey(t){return this.keyPrefix.length>0?`${this.keyPrefix}:${t}`:t}parseKey(t){return t.substring(this.keyPrefix.length)}consume(){throw new Error("You have to implement the method 'consume'!")}penalty(){throw new Error("You have to implement the method 'penalty'!")}reward(){throw new Error("You have to implement the method 'reward'!")}get(){throw new Error("You have to implement the method 'get'!")}set(){throw new Error("You have to implement the method 'set'!")}block(){throw new Error("You have to implement the method 'block'!")}delete(){throw new Error("You have to implement the method 'delete'!")}},tA=class{constructor(t,n,s=null){this.value=t,this.expiresAt=n,this.timeoutId=s;}get value(){return this._value}set value(t){this._value=parseInt(t);}get expiresAt(){return this._expiresAt}set expiresAt(t){!(t instanceof Date)&&Number.isInteger(t)&&(t=new Date(t)),this._expiresAt=t;}get timeoutId(){return this._timeoutId}set timeoutId(t){this._timeoutId=t;}},$u=class{constructor(t,n,s,o){this.remainingPoints=typeof t>"u"?0:t,this.msBeforeNext=typeof n>"u"?0:n,this.consumedPoints=typeof s>"u"?0:s,this.isFirstInDuration=typeof o>"u"?!1:o;}get msBeforeNext(){return this._msBeforeNext}set msBeforeNext(t){return this._msBeforeNext=t,this}get remainingPoints(){return this._remainingPoints}set remainingPoints(t){return this._remainingPoints=t,this}get consumedPoints(){return this._consumedPoints}set consumedPoints(t){return this._consumedPoints=t,this}get isFirstInDuration(){return this._isFirstInDuration}set isFirstInDuration(t){this._isFirstInDuration=!!t;}_getDecoratedProperties(){return {remainingPoints:this.remainingPoints,msBeforeNext:this.msBeforeNext,consumedPoints:this.consumedPoints,isFirstInDuration:this.isFirstInDuration}}[Symbol.for("nodejs.util.inspect.custom")](){return this._getDecoratedProperties()}toString(){return JSON.stringify(this._getDecoratedProperties())}toJSON(){return this._getDecoratedProperties()}};const nA=tA,Ua=$u;var sA=class{constructor(){this._storage={};}incrby(t,n,s){if(this._storage[t]){const o=this._storage[t].expiresAt?this._storage[t].expiresAt.getTime()-new Date().getTime():-1;return !this._storage[t].expiresAt||o>0?(this._storage[t].value=this._storage[t].value+n,new Ua(0,o,this._storage[t].value,!1)):this.set(t,n,s)}return this.set(t,n,s)}set(t,n,s){const o=s*1e3;return this._storage[t]&&this._storage[t].timeoutId&&clearTimeout(this._storage[t].timeoutId),this._storage[t]=new nA(n,o>0?new Date(Date.now()+o):null),o>0&&(this._storage[t].timeoutId=setTimeout(()=>{delete this._storage[t];},o),this._storage[t].timeoutId.unref&&this._storage[t].timeoutId.unref()),new Ua(0,o===0?-1:o,this._storage[t].value,!0)}get(t){if(this._storage[t]){const n=this._storage[t].expiresAt?this._storage[t].expiresAt.getTime()-new Date().getTime():-1;return new Ua(0,n,this._storage[t].value,!1)}return null}delete(t){return this._storage[t]?(this._storage[t].timeoutId&&clearTimeout(this._storage[t].timeoutId),delete this._storage[t],!0):!1}};const oA=eA,iA=sA,Nd=$u;let rA=class extends oA{constructor(t={}){super(t),this._memoryStorage=new iA;}consume(t,n=1,s={}){return new Promise((o,i)=>{const r=this.getKey(t),a=this._getKeySecDuration(s);let l=this._memoryStorage.incrby(r,n,a);if(l.remainingPoints=Math.max(this.points-l.consumedPoints,0),l.consumedPoints>this.points)this.blockDuration>0&&l.consumedPoints<=this.points+n&&(l=this._memoryStorage.set(r,l.consumedPoints,this.blockDuration)),i(l);else if(this.execEvenly&&l.msBeforeNext>0&&!l.isFirstInDuration){let u=Math.ceil(l.msBeforeNext/(l.remainingPoints+2));u<this.execEvenlyMinDelayMs&&(u=l.consumedPoints*this.execEvenlyMinDelayMs),setTimeout(o,u,l);}else o(l);})}penalty(t,n=1,s={}){const o=this.getKey(t);return new Promise(i=>{const r=this._getKeySecDuration(s),a=this._memoryStorage.incrby(o,n,r);a.remainingPoints=Math.max(this.points-a.consumedPoints,0),i(a);})}reward(t,n=1,s={}){const o=this.getKey(t);return new Promise(i=>{const r=this._getKeySecDuration(s),a=this._memoryStorage.incrby(o,-n,r);a.remainingPoints=Math.max(this.points-a.consumedPoints,0),i(a);})}block(t,n){const s=n*1e3,o=this.points+1;return this._memoryStorage.set(this.getKey(t),o,n),Promise.resolve(new Nd(0,s===0?-1:s,o))}set(t,n,s){const o=(s>=0?s:this.duration)*1e3;return this._memoryStorage.set(this.getKey(t),n,s),Promise.resolve(new Nd(0,o===0?-1:o,n))}get(t){const n=this._memoryStorage.get(this.getKey(t));return n!==null&&(n.remainingPoints=Math.max(this.points-n.consumedPoints,0)),Promise.resolve(n)}delete(t){return Promise.resolve(this._memoryStorage.delete(this.getKey(t)))}};var aA=rA;const lA=aA,uA=$u;var Fd={RateLimiterMemory:lA,RateLimiterRes:uA};const cA="pan115_api";var gm=(e=>(e.evenly="evenly",e.asap="asap",e))(gm||{});const ym={points:1,duration:1,execEvenly:!0};function wm(e){return {clientId:cA,rateLimit:ym,msDelayAdjustment:30,...e}}function dA(e){const t=wm(e),n=bt.create();Js(n,{retries:5,shouldResetTimeout:!0,retryDelay:o=>(console.log(`[axios] Retry ${o}...`),o*1e3)});const s=new Fd.RateLimiterMemory(t.rateLimit);return n.interceptors.request.use(async o=>{try{const i=await s.consume(t.clientId);return o}catch(i){if(console.warn("[axios] RateLimiter:",i),i instanceof Fd.RateLimiterRes){const r=i.msBeforeNext+t.msDelayAdjustment;return console.log(`[axios] Delay ${r}ms for next request...`),await an(r),o}else throw new UE(i)}},o=>(console.warn("[axios] onRejected:",o),Promise.reject(o))),n}const bm=yt.basic;function fA(e){return {qps:4,limiterDuration:1,limiterPoints:1,limitExecPolicy:gm.evenly,showOfflineEntry:!1,offlineEntryLabel:"云下载",showAddOffline:!1,addOfflineLabel:"添加",transferDefaultOffline:!1,showFavEntry:!1,favEntryLabel:"星标",hideWatermark:!0,fakeAccountEnabled:!1,fakeAccountId:"",fakeAccountName:"",fakeAccountAvatar:"",fakeAccountVip:"",...e}}async function ra(){const e=fA(),t=await dt.get(bm,e);return {...e,...t}}async function pA(e){await dt.set(bm,e);}var hA={name:"115不大助手",version:"0.7.17",author:{name:"生瓜太保",email:"mailme@miao.com"},greasyforkUrl:"https://greasyfork.org/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};const Su=hA;async function mA(e){if(!e.showOfflineEntry||!bs())return;console.log("[Cloud115 Enhancer] showOfflineEntry");const t=await as("a#js_filter_btn"),n="https://115.com/?ct=index&ac=offline_new_tpl&offline=1&tab=offline",s="background:#fffcea;",o=`点击跳转到「云下载」页面。该按钮由 ${Su.name} 注入`,i=e.offlineEntryLabel?`<span>${e.offlineEntryLabel}</span>`:"",r=$(`<a href="javascript:;" class="button btn-line" title="${o}" tab_btn="wangpan" mode-tab="offline" style="${s}">
    <i class="icon-operate ifo-linktask"></i>
    ${i}
  </a>`);t.after(r),r.on("click",()=>{try{pn().oofUtil.urlMaintain.changeMode("wangpan",{tab:"offline"});}catch(a){console.log('[Cloud115 Enhancer] showOfflineEntry failed with "top.oofUtil.urlMaintain.changeMode".',a),location.href=n;}});}async function gA(e){if(!e.showAddOffline||!bs())return;console.log("[Cloud115 Enhancer] showAddOffline");const t=await as("a#js_filter_btn"),n="background:#fffcea;",s=`点击打开到「添加云下载」对话框。该按钮由 ${Su.name} 注入`,o=e.addOfflineLabel?`<span>${e.addOfflineLabel}</span>`:"",i=$(`<a href="javascript:;" class="button btn-line" menu="offline_task" style="${n}" title="${s}">
    <i class="icon-operate ifo-linktask"></i>${o}
  </a>`);t.after(i);}async function yA(e){if(!e.showFavEntry||!bs())return;console.log("[Cloud115 Enhancer] showFavEntry");const t=await as("a#js_filter_btn"),n="https://115.com/?tab=label&show_label=1&label_id=-1&mode=wangpan",s="background:#fffcea;",o=`点击跳转到「星标」页面。该按钮由 ${Su.name} 注入`,i=e.favEntryLabel?`<span>${e.favEntryLabel}</span>`:"",r=$(`<a href="javascript:;" class="button btn-line" title="${o}" tab_btn="wangpan" mode-tab="{tab:'label',label_id:-1,show_label:1}" style="${s}">
    <i class="icon-operate ifo-fav"></i>
    ${i}
  </a>`);t.after(r),r.on("click",()=>{try{pn().oofUtil.urlMaintain.changeMode("wangpan",{tab:"label",label_id:-1,show_label:1});}catch(a){console.log('[Cloud115 Enhancer] showFavEntry failed with "top.oofUtil.urlMaintain.changeMode".',a),location.href=n;}});}async function wA(e){if(!e.transferDefaultOffline)return;const{search:t}=location;if(window.top!==window||!t.includes("mode=wangpan"))return;console.log("[Cloud115 Enhancer] makeTransferDefaultOffline");const n=await as('#js_sub_nav_scroller a[mode-tab="upload"]');n.attr("mode-tab","offline").attr("href","https://115.com/?tab=offline&mode=wangpan"),n.find("i").removeClass("icon-ns-transfer").removeClass("icon-nv-file inf-transmit").addClass("icon-operate ifo-linktask").css({filter:"invert(0.6)",marginRight:12,zoom:1.2});}async function bA(e){if(e.hideWatermark){console.log("[Cloud115 Enhancer] hideWatermark");try{const t=await $t('div[class^="fp-"]');t.classList.add("hidden-watermark"),t.style.display="none";}catch(t){console.error("[Cloud115 Enhancer] hideWatermark",t.message);}}}async function vA(e){window.top===window.self&&(await an(1e3),kl(e),window.addEventListener("message",async t=>{const n=t.data.event,s=t.data.body;n===mt.basicConfigChange&&(console.log("[Cloud115 Enhancer] basicConfigChange"),kl(s));}));}let ni=null;async function _A(){ni&&clearTimeout(ni),ni=setTimeout(async()=>{const e=await ra();kl(e);},5e3);}async function kl(e){ni&&clearTimeout(ni);const t=async(n,s)=>{const o=await as('[rel="user_id"]',100);o.data("origin")||o.data("origin",o.text()),s?o.text(o.data("origin")):o.text(n.fakeAccountId);const i=await as('[rel="user_name"]',100);i.data("origin")||i.data("origin",$(i[0]).text()),s?i.text(i.data("origin")):i.text(n.fakeAccountName);const r=await as('img[rel="user_face"], .user-avatar img',100);r.data("origin")||r.data("origin",r.attr("src")),s?r.attr("src",r.data("origin")):(r.attr("rel","noreferrer"),r.attr("src",n.fakeAccountAvatar));const a=await as(".sign-vip-card",100);a.data("origin")||a.data("origin",$(a[0]).text()),s?a.text(a.data("origin")):a.text(n.fakeAccountVip);};try{e.fakeAccountEnabled?await t(e,!1):await t(e,!0);}catch(n){console.error(n);}finally{e.fakeAccountEnabled&&_A();}}async function xA(){const e=await ra(),{host:t}=location;/115\.com$/.test(t)&&(bA(e),mA(e),gA(e),yA(e),wA(e),vA(e));}const vm=Symbol("addTab"),_m=Symbol("updateTab"),xm=Symbol("deleteTab"),Cm=Symbol("tabsProvider");function ji(e,t){const n=Yo(e,t);if(typeof n>"u")throw new Error(`Could not resolve ${e.description}`);return n}const CA=["data-tab-id","aria-hidden"],bn=Be({__name:"Tab",props:{panelClass:{type:[String,Object,Array],default:"tabs-component-panel"},id:{type:String,default:null},name:{type:String,required:!0},prefix:{type:String,default:""},suffix:{type:String,default:""},isDisabled:{type:Boolean,default:!1},navItemClass:{type:[String,Object,Array],required:!1,default:null},navItemLinkClass:{type:[String,Object,Array],required:!1,default:null}},setup(e,{expose:t}){const n=e,s=oe(!1),o=ji(Cm),i=ji(vm),r=ji(_m),a=ji(xm),l=n.prefix+n.name+n.suffix,u=n.id?n.id:n.name.toLowerCase().replace(/ /g,"-"),d=u+"-pane",h=it(()=>"#"+(n.isDisabled?"":u));return ht(()=>o.activeTabHash,()=>{s.value=h.value===o.activeTabHash;}),ht(()=>Object.assign({},n),()=>{r(u,{name:n.name,header:n.prefix+n.name+n.suffix,isDisabled:n.isDisabled,hash:h.value,index:o.tabs.length,computedId:u,paneId:d,navItemClass:n.navItemClass,navItemLinkClass:n.navItemLinkClass});}),Dt(()=>{i({name:n.name,header:l,isDisabled:n.isDisabled,hash:h.value,index:o.tabs.length,computedId:u,paneId:d,navItemClass:n.navItemClass,navItemLinkClass:n.navItemLinkClass});}),mp(()=>{a(u);}),t({header:l,computedId:u,paneId:d,hash:h,isActive:s}),(y,v)=>ae((A(),T("section",{ref:"tab",id:d,"data-tab-id":fe(u),"aria-hidden":!s.value,class:He(e.panelClass),role:"tabpanel",tabindex:"-1"},[nt(y.$slots,"default")],10,CA)),[[Nt,s.value]])}});class kA{get(t){const n=localStorage.getItem(t);if(n===null)return null;const s=JSON.parse(n);return s?new Date(s.expires)<new Date?(localStorage.removeItem(t),null):s.value:null}set(t,n,s){const o=new Date().getTime(),i=new Date(o+s*6e4);localStorage.setItem(t,JSON.stringify({value:n,expires:i}));}}const Ud=new kA,$A=["aria-controls","aria-selected","href","onClick","innerHTML"],SA=Be({__name:"Tabs",props:{cacheLifetime:{type:Number,default:5},options:{type:Object,required:!1,default:()=>({useUrlFragment:!0,defaultTabHash:null})},wrapperClass:{type:[String,Object,Array],default:"tabs-component"},panelsWrapperClass:{type:[String,Object,Array],default:"tabs-component-panels"},navClass:{type:[String,Object,Array],default:"tabs-component-tabs"},navItemClass:{type:[String,Object,Array],default:"tabs-component-tab"},navItemDisabledClass:{type:[String,Object,Array],default:"is-disabled"},navItemActiveClass:{type:[String,Object,Array],default:"is-active"},navItemInactiveClass:{type:[String,Object,Array],default:"is-inactive"},navItemLinkClass:{type:[String,Object,Array],default:"tabs-component-tab-a"},navItemLinkActiveClass:{type:[String,Object,Array],default:"is-active"},navItemLinkInactiveClass:{type:[String,Object,Array],default:"is-inactive"},navItemLinkDisabledClass:{type:[String,Object,Array],default:"is-disabled"}},emits:["changed","clicked"],setup(e,{expose:t,emit:n}){const s=e,o=Hr({activeTabHash:"",lastActiveTabHash:"",tabs:[]});zo(Cm,o),zo(vm,a=>{o.tabs.push(a);}),zo(_m,(a,l)=>{const u=o.tabs.findIndex(d=>d.computedId===a);l.isActive=o.tabs[u].isActive,o.tabs[u]=l;}),zo(xm,a=>{const l=o.tabs.findIndex(u=>u.computedId===a);o.tabs.splice(l,1);});const i=(a,l)=>{l&&!s.options.useUrlFragment&&l.preventDefault();const u=r(a);if(!u)return;if(l&&u.isDisabled){l.preventDefault();return}if(o.lastActiveTabHash===u.hash){n("clicked",{tab:u});return}if(o.tabs.forEach(h=>{h.isActive=h.hash===u.hash;}),n("changed",{tab:u}),o.lastActiveTabHash=o.activeTabHash=u.hash,s.cacheLifetime<=0)return;const d=`vue-tabs-component.cache.${window.location.host}${window.location.pathname}`;Ud.set(d,u.hash,s.cacheLifetime);},r=a=>o.tabs.find(l=>l.hash===a);return qt(()=>{if(o.tabs.length){if(window.addEventListener("hashchange",()=>i(window.location.hash)),r(window.location.hash)){i(window.location.hash);return}if(s.cacheLifetime>0){const a=`vue-tabs-component.cache.${window.location.host}${window.location.pathname}`,l=Ud.get(a);if(l!==null&&r(l)){i(l);return}if(s.options.defaultTabHash&&r("#"+s.options.defaultTabHash)){i("#"+s.options.defaultTabHash);return}}i(o.tabs[0].hash);}}),t({...qv(o),selectTab:i,findTab:r}),(a,l)=>(A(),T("div",{class:He(e.wrapperClass)},[c("ul",{role:"tablist",class:He(e.navClass)},[(A(!0),T(De,null,Ge(o.tabs,(u,d)=>{var h,y;return A(),T("li",{key:d,class:He([(h=u.navItemClass)!=null?h:e.navItemClass,u.isDisabled?e.navItemDisabledClass:"",u.isActive?e.navItemActiveClass:u.isDisabled?"":e.navItemInactiveClass]),role:"presentation"},[c("a",{role:"tab",class:He([(y=u.navItemLinkClass)!=null?y:e.navItemLinkClass,u.isDisabled?e.navItemLinkDisabledClass:"",u.isActive?e.navItemLinkActiveClass:u.isDisabled?"":e.navItemLinkInactiveClass]),"aria-controls":u.paneId,"aria-selected":u.isActive,href:u.hash,onClick:v=>i(u.hash,v),innerHTML:u.header,tabindex:"0"},null,10,$A)],2)}),128))],2),c("div",{class:He(e.panelsWrapperClass)},[nt(a.$slots,"default")],2)],2))}}),EA={class:"ce-config ce-basic-config"},AA={class:"pure-form pure-form-aligned"},PA={class:"pure-control-group"},IA={class:"pure-control-group"},TA={class:"pure-form-message text-success"},OA={class:"pure-control-group"},DA={class:"pure-form-message text-success"},MA={class:"pure-control-group"},LA={class:"pure-control-group"},BA={class:"pure-form-message text-success"},RA={class:"pure-control-group"},NA={class:"pure-control-group"},FA={class:"pure-control-group"},UA={class:"pure-control-group"},jA={class:"pure-control-group"},HA={class:"avatar-preview"},zA=["src"],qA={class:"pure-control-group"},VA=Be({__name:"Config",async setup(e){let t,n;const s=oe(([t,n]=rn(()=>ra()),t=await t,n(),t));Dt(async()=>{}),ht(s,Ut(async a=>{await pA(a),ue({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:mt.basicConfigChange,body:yf(a)});},500),{deep:!0});async function o(a,l,u="warning"){const{isConfirmed:d}=await he.fire({title:a,text:l,icon:u,showCancelButton:!0,confirmButtonText:"确认"});return d}async function i(){if(await o("导出配置","是否确认导出当前配置?"))try{await $w(),ue({icon:"success",title:"导出成功"});}catch(a){he.fire(a.toString());}}async function r(){if(await o("导入配置","导入后将覆盖当前配置,是否继续?"))try{const a=await Sw();console.log(a),Vo.fire({icon:"success",title:"导入成功,刷新页面后生效。将在5秒后自动刷新页面...",timer:5e3}),setTimeout(()=>{window.location.reload();},5e3);}catch(a){he.fire({title:"导入失败",html:a.toString()+'<br/><p class="text-danger">必须有字段 "_schema": "pan115_enhancer_configs" 。</p>'});}}return (a,l)=>(A(),T("div",EA,[c("form",AA,[c("fieldset",null,[l[41]||(l[41]=c("legend",null,"API",-1)),c("div",PA,[l[15]||(l[15]=c("label",null,"全局请求频率控制",-1)),l[16]||(l[16]=U(" 在 ")),ae(c("input",{id:"basic_limiterDuration",type:"number",min:"1",max:"300",step:"1","onUpdate:modelValue":l[0]||(l[0]=u=>s.value.limiterDuration=u)},null,512),[[Ye,s.value.limiterDuration]]),l[17]||(l[17]=U(" 秒内最多请求 ")),ae(c("input",{id:"basic_limiterQps",type:"number",min:"1",max:"3000",step:"1","onUpdate:modelValue":l[1]||(l[1]=u=>s.value.limiterPoints=u)},null,512),[[Ye,s.value.limiterPoints]]),l[18]||(l[18]=U(" 次 ")),l[19]||(l[19]=c("div",{class:"pure-form-message text-success"}," 默认 1 秒内最多 1 次。 ",-1))]),l[42]||(l[42]=c("legend",null,"UI优化",-1)),c("div",IA,[l[21]||(l[21]=c("label",{for:"basic_showOfflineEntry"},"显示云下载入口按钮",-1)),ae(c("input",{id:"basic_showOfflineEntry",type:"checkbox","onUpdate:modelValue":l[2]||(l[2]=u=>s.value.showOfflineEntry=u)},null,512),[[Ve,s.value.showOfflineEntry]]),c("div",TA,[l[20]||(l[20]=U(" 在「网盘」页面顶部工具栏显示「云下载」入口按钮。 按钮文本为 ")),ae(c("input",{"onUpdate:modelValue":l[3]||(l[3]=u=>s.value.offlineEntryLabel=u),class:"input-small",placeholder:"可以为空"},null,512),[[Ye,s.value.offlineEntryLabel]])])]),c("div",OA,[l[23]||(l[23]=c("label",{for:"basic_showAddOffline"},"显示添加云下载按钮",-1)),ae(c("input",{id:"basic_showAddOffline",type:"checkbox","onUpdate:modelValue":l[4]||(l[4]=u=>s.value.showAddOffline=u)},null,512),[[Ve,s.value.showAddOffline]]),c("div",DA,[l[22]||(l[22]=U(" 在「网盘」页面顶部工具栏显示「添加云下载」按钮。 按钮文本为 ")),ae(c("input",{"onUpdate:modelValue":l[5]||(l[5]=u=>s.value.addOfflineLabel=u),class:"input-small",placeholder:"可以为空"},null,512),[[Ye,s.value.addOfflineLabel]])])]),c("div",MA,[l[24]||(l[24]=c("label",{for:"basic_transferDefaultOffline"},"近期传输默认云下载",-1)),ae(c("input",{id:"basic_transferDefaultOffline",type:"checkbox","onUpdate:modelValue":l[6]||(l[6]=u=>s.value.transferDefaultOffline=u)},null,512),[[Ve,s.value.transferDefaultOffline]]),l[25]||(l[25]=c("div",{class:"pure-form-message text-success"}," 点击左边栏的「传输」默认进入「云下载」页面。 ",-1))]),c("div",LA,[l[27]||(l[27]=c("label",{for:"basic_showFavEntry"},"显示星标入口按钮",-1)),ae(c("input",{id:"basic_showFavEntry",type:"checkbox","onUpdate:modelValue":l[7]||(l[7]=u=>s.value.showFavEntry=u)},null,512),[[Ve,s.value.showFavEntry]]),c("div",BA,[l[26]||(l[26]=U(" 在「网盘」页面顶部工具栏显示「星标」入口按钮。 按钮文本为 ")),ae(c("input",{"onUpdate:modelValue":l[8]||(l[8]=u=>s.value.favEntryLabel=u),class:"input-small",placeholder:"可以为空"},null,512),[[Ye,s.value.favEntryLabel]])])]),l[43]||(l[43]=c("legend",null,"配置管理",-1)),c("div",{class:"pure-control-group"},[c("button",{type:"button",class:"pure-button pure-button-primary",onClick:i},"导出配置"),l[28]||(l[28]=U("      ")),c("button",{type:"button",class:"pure-button button-success",onClick:r},"导入配置"),l[29]||(l[29]=c("br",null,null,-1)),l[30]||(l[30]=c("br",null,null,-1)),l[31]||(l[31]=c("div",{class:"text-success"},[c("b",null,"导入说明:"),U(" 如有导入部分配置的需求,可以自行编辑json配置文件,只保留需要的配置key(仅限第一级),但必须保留`_`开头的key。 ")],-1)),l[32]||(l[32]=c("br",null,null,-1))]),l[44]||(l[44]=c("legend",null,"隐私保护",-1)),c("div",RA,[l[33]||(l[33]=c("label",{for:"basic_hideWatermark"},"隐藏水印",-1)),ae(c("input",{id:"basic_hideWatermark",type:"checkbox","onUpdate:modelValue":l[9]||(l[9]=u=>s.value.hideWatermark=u)},null,512),[[Ve,s.value.hideWatermark]]),l[34]||(l[34]=c("div",{class:"pure-form-message text-success"}," 网页水印是肉眼看不到的,但通过一些处理可以看到,水印内容是你的账号标识。 如果你需要截图并发给别人,可以考虑开启隐藏。 ",-1))]),c("div",NA,[l[35]||(l[35]=c("label",{for:"basic_fakeAccountEnabled"},"隐藏身份",-1)),ae(c("input",{id:"basic_fakeAccountEnabled",type:"checkbox","onUpdate:modelValue":l[10]||(l[10]=u=>s.value.fakeAccountEnabled=u)},null,512),[[Ve,s.value.fakeAccountEnabled]]),l[36]||(l[36]=c("div",{class:"pure-form-message text-success"}," 修改右上角显示的账号信息,不会真的修改。编辑后即可生效,无需刷新页面。 ",-1))]),c("div",FA,[l[37]||(l[37]=c("label",null,"账号ID",-1)),ae(c("input",{"onUpdate:modelValue":l[11]||(l[11]=u=>s.value.fakeAccountId=u),placeholder:"自定义账号ID",class:"pure-input-2-3"},null,512),[[Ye,s.value.fakeAccountId]])]),c("div",UA,[l[38]||(l[38]=c("label",null,"用户名",-1)),ae(c("input",{"onUpdate:modelValue":l[12]||(l[12]=u=>s.value.fakeAccountName=u),placeholder:"自定义用户名",class:"pure-input-2-3"},null,512),[[Ye,s.value.fakeAccountName]])]),c("div",jA,[l[39]||(l[39]=c("label",null,"头像",-1)),ae(c("input",{"onUpdate:modelValue":l[13]||(l[13]=u=>s.value.fakeAccountAvatar=u),placeholder:"支持网络图片地址或base64编码",class:"pure-input-2-3"},null,512),[[Ye,s.value.fakeAccountAvatar]]),c("span",HA,[s.value.fakeAccountAvatar?(A(),T("img",{key:0,src:s.value.fakeAccountAvatar,alt:"头像预览",width:"20",height:"20"},null,8,zA)):we("",!0)])]),c("div",qA,[l[40]||(l[40]=c("label",null,"VIP等级",-1)),ae(c("input",{"onUpdate:modelValue":l[14]||(l[14]=u=>s.value.fakeAccountVip=u),placeholder:"自定义VIP等级",class:"pure-input-2-3"},null,512),[[Ye,s.value.fakeAccountVip]])])])])]))}}),KA=je(VA,[["__file","Config.vue"]]),WA={class:"pure-form pure-form-aligned"},GA=["disabled"],JA={class:"pure-control-group"},YA={class:"pure-control-group"},QA={class:"pure-control-group"},XA={class:"pure-control-group"},ZA=["value"],eP=Be({__name:"ConfigItem",props:{config:{},deletable:{type:Boolean}},emits:["change","delete","activate"],setup(e,{emit:t}){const n=e,s=t;Dt(async()=>{});async function o(){n.config.active=!0,s("activate",n.config);}async function i(){s("delete");}return ht(n.config,Ut(async r=>{s("change",r);},500),{deep:!0}),(r,a)=>(A(),T("div",{class:He(["ce-clouddrive-config-item",{active:r.config.active}])},[c("form",WA,[c("fieldset",null,[c("legend",null,[c("button",{type:"button",class:He(["pure-button button-small",[r.config.active?"button-success":"pure-button-primary"]]),onClick:o,disabled:r.config.active},G(r.config.active?"当前使用该配置":"使用该配置"),11,GA),r.deletable?(A(),T("button",{key:0,type:"button",class:"pure-button button-error button-small",onClick:i}," 删除 ")):we("",!0)]),c("div",JA,[a[4]||(a[4]=c("label",null,[c("span",{class:"text-danger"},"*"),U(" 地址")],-1)),ae(c("input",{"onUpdate:modelValue":a[0]||(a[0]=l=>r.config.url=l),placeholder:"CloudDrive服务地址,如「http://localhost:19798」",class:"pure-input-2-3"},null,512),[[Ye,r.config.url]])]),c("div",YA,[a[5]||(a[5]=c("label",null,[c("span",{class:"text-danger"},"*"),U(" 资源根路径")],-1)),ae(c("input",{"onUpdate:modelValue":a[1]||(a[1]=l=>r.config.root=l),placeholder:"即当前115账号在CloudDrive中的资源名称,如「115」",class:"pure-input-2-3"},null,512),[[Ye,r.config.root]])]),c("div",QA,[a[6]||(a[6]=c("label",null,"备注",-1)),ae(c("input",{"onUpdate:modelValue":a[2]||(a[2]=l=>r.config.memo=l),placeholder:"备注信息",class:"pure-input-2-3"},null,512),[[Ye,r.config.memo]])]),c("div",XA,[a[7]||(a[7]=c("label",null,"平台",-1)),ae(c("select",{"onUpdate:modelValue":a[3]||(a[3]=l=>r.config.platform=l)},[(A(!0),T(De,null,Ge(fe(Cr),l=>(A(),T("option",{key:l,value:l},G(l),9,ZA))),128))],512),[[gn,r.config.platform]]),a[8]||(a[8]=U("   ")),a[9]||(a[9]=c("small",{class:"text-info"},"如果是macOS版,而且有包含日韩文的文件或目录,建议选上,可以避免播放链接无效的问题。",-1))])])])],2))}}),tP=je(eP,[["__file","ConfigItem.vue"]]),nP={class:"ce-config ce-clouddrive-config"},sP={class:"ce-list"},oP={class:"ce-actions"},iP=["disabled"],rP=Be({__name:"Config",async setup(e){let t,n;const s=oe(([t,n]=rn(()=>Xd()),t=await t,n(),t));Dt(async()=>{});async function o(){await lc(s.value),ue({icon:"success",title:"设置已保存。",timer:800,position:"top-end"});}async function i(){s.value.push(Ll());}async function r(l,u){const{isConfirmed:d}=await he.fire({icon:"warning",html:`确定要删除第 ${u+1} 个配置「${l.url}」吗?`});d&&(s.value.splice(u,1),await o(),ue({icon:"success",title:`「${l.url}」已删除!`}));}async function a(l,u){l.forEach((d,h)=>{d.active=h===u;}),await lc(l),ue({icon:"success",title:"设置已保存。",timer:800,position:"top-end"});}return (l,u)=>(A(),T("div",nP,[u[1]||(u[1]=c("div",{class:"ce-tips cd-tips"},[c("p",null,[c("a",{href:"https://www.clouddrive2.com/?ref=cloud115-enhancer",rel:"noreferer",target:"_blank",class:"text-bold text-primary"},"CloudDrive"),U(" 是一个强大的多云盘管理工具,为用户提供包含云盘本地挂载的一站式的多云盘解决方案。 ")]),c("p",null,"本脚本主要是借助CloudDrive实现原码视频播放的功能(具体可以在「播放菜单」面板中查看)。")],-1)),c("div",sP,[(A(!0),T(De,null,Ge(s.value,(d,h)=>(A(),ot(tP,{key:h,config:d,index:h,deletable:s.value.length>1,onDelete:y=>r(d,h),onActivate:y=>a(s.value,h)},null,8,["config","index","deletable","onDelete","onActivate"]))),128))]),u[2]||(u[2]=c("div",{class:"ce-tips"},[c("p",{class:"text-primary"},' 暂时发现IINA是支持`file://`协议的,这时候播放器可以读取到同目录的字幕文件。 配置地址示例: file:///Users/you/115,"资源根路径"留空即可。 ')],-1)),u[3]||(u[3]=c("div",{class:"ce-tips"}," 编辑配置后,请记得点击「保存全部配置」。 ",-1)),c("div",oP,[c("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:o,disabled:!s.value.length}," 保存全部配置 ",8,iP),u[0]||(u[0]=U("      ")),c("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:i}," + 添加配置 ")])]))}}),aP=je(rP,[["__file","Config.vue"]]),lP={class:"ce-config ce-list-config"},uP={class:"pure-form pure-form-aligned"},cP={class:"pure-control-group"},dP={class:"pure-control-group"},fP={class:"pure-control-group"},pP={class:"pure-control-group"},hP={class:"pure-control-group"},mP={class:"pure-control-group"},gP={class:"pure-control-group"},yP={class:"pure-control-group"},wP={class:"pure-control-group"},bP={class:"pure-control-group"},vP={class:"pure-control-group"},_P=Be({__name:"Config",async setup(e){let t,n;const s=oe(([t,n]=rn(()=>Gr()),t=await t,n(),t));return Dt(async()=>{}),ht(s,Ut(async o=>{await q0(o),ue({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:mt.listConfigChange,body:JSON.parse(JSON.stringify(o))});},500),{deep:!0}),(o,i)=>(A(),T("div",lP,[c("form",uP,[c("fieldset",null,[c("div",cP,[i[12]||(i[12]=c("label",{for:"showOpenDirContextMenu"},'显示"目录功能菜单"按钮',-1)),ae(c("input",{id:"showOpenDirContextMenu",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>s.value.showOpenDirContextMenu=r)},null,512),[[Ve,s.value.showOpenDirContextMenu]]),i[13]||(i[13]=U("    ")),c("small",{onClick:i[1]||(i[1]=r=>s.value.hoverShowDirContextMenu=!s.value.hoverShowDirContextMenu),class:He(["ce-label",{"ce-label-success":s.value.hoverShowDirContextMenu}]),title:"鼠标悬浮在按钮代替点击操作"},G(s.value.hoverShowDirContextMenu?"✓ 鼠标悬浮触发(已启用)":"× 鼠标悬浮触发(未启用)"),3),i[14]||(i[14]=c("div",{class:"pure-form-message text-success"},[c("div",null,"在官方的「文件名」列头部增加「目录功能菜单」按钮,点击即可打开当前目录的右键菜单。")],-1))]),c("div",dP,[i[15]||(i[15]=c("label",{for:"sizeSorter"},"大小排序",-1)),ae(c("input",{id:"sizeSorter",type:"checkbox","onUpdate:modelValue":i[2]||(i[2]=r=>s.value.sizeSorter=r)},null,512),[[Ve,s.value.sizeSorter]]),i[16]||(i[16]=c("div",{class:"pure-form-message text-success"},[c("div",null,"在官方的「大小」列头部增加「排序」按钮,可以获取文件夹的大小,然后进行排序。"),c("div",null,"请注意该功能只会对当前加载的文件进行排序,如果有多页文件并需要对全部文件进行排序,请先点击「加载全部」后再使用该排序功能。")],-1))]),c("div",fP,[i[17]||(i[17]=c("label",{for:"showSha1"},"显示文件SHA1",-1)),ae(c("input",{id:"showSha1",type:"checkbox","onUpdate:modelValue":i[3]||(i[3]=r=>s.value.showSha1=r)},null,512),[[Ve,s.value.showSha1]]),i[18]||(i[18]=c("div",{class:"pure-form-message text-success"}," 在文件名下方显示文件SHA1,点击可以复制。 ",-1))]),c("div",pP,[i[19]||(i[19]=c("label",{for:"showFolderSizeButton"},"显示文件夹获取大小按钮",-1)),ae(c("input",{id:"showFolderSizeButton",type:"checkbox","onUpdate:modelValue":i[4]||(i[4]=r=>s.value.showFolderSizeButton=r)},null,512),[[Ve,s.value.showFolderSizeButton]]),i[20]||(i[20]=c("div",{class:"pure-form-message text-success"}," 点击按钮可以获取单个文件夹的大小。 ",-1))]),c("div",hP,[i[21]||(i[21]=c("label",{for:"showCopyButtonOnPathBar"},"在路径栏显示复制按钮",-1)),ae(c("input",{id:"showCopyButtonOnPathBar",type:"checkbox","onUpdate:modelValue":i[5]||(i[5]=r=>s.value.showCopyButtonOnPathBar=r)},null,512),[[Ve,s.value.showCopyButtonOnPathBar]]),i[22]||(i[22]=c("div",{class:"pure-form-message text-success"}," 点击后,复制当前路径到剪贴板。 ",-1))]),c("div",mP,[i[23]||(i[23]=c("label",{for:"showGotoButtonOnPathBar"},[U(" 在路径栏显示前往按钮 "),c("small",{class:"ce-label"},"DEV")],-1)),ae(c("input",{id:"showGotoButtonOnPathBar",type:"checkbox","onUpdate:modelValue":i[6]||(i[6]=r=>s.value.showGotoButtonOnPathBar=r)},null,512),[[Ve,s.value.showGotoButtonOnPathBar]]),i[24]||(i[24]=c("div",{class:"pure-form-message text-success"}," 点击后,路径栏下方会显示路径输入框,输入路径后按回车即可前往该路径。 ",-1))]),c("div",gP,[i[25]||(i[25]=c("label",{for:"noUpdateDirAfterRename"}," 重命名后不刷新文件列表 ",-1)),ae(c("input",{id:"noUpdateDirAfterRename",type:"checkbox","onUpdate:modelValue":i[7]||(i[7]=r=>s.value.noUpdateDirAfterRename=r)},null,512),[[Ve,s.value.noUpdateDirAfterRename]]),i[26]||(i[26]=c("div",{class:"pure-form-message text-success"}," 仅支持单个文件或目录的重命名。在使用当前目录增强菜单项「重命名文件夹」时会忽略该选项。 ",-1))]),c("div",yP,[i[27]||(i[27]=c("label",{for:"noUpdateDirAfterMove"}," 移动后不刷新文件列表 ",-1)),ae(c("input",{id:"noUpdateDirAfterMove",type:"checkbox","onUpdate:modelValue":i[8]||(i[8]=r=>s.value.noReloadAfterMove=r)},null,512),[[Ve,s.value.noReloadAfterMove]]),i[28]||(i[28]=c("div",{class:"pure-form-message text-success text-linethrough"},[c("b",null,"启用后如果进行了移动操作,列表的全选会受影响,如已选数量不准确。"),c("br"),c("b",{class:"text-danger"},"该功能主要目的是持续高效地在进行移动操作,如果在移动后还需要其他操作,请记得手动刷新列表!")],-1))])]),c("fieldset",null,[c("div",wP,[i[30]||(i[30]=c("label",{for:"fileSelectorDefaultView"},"文件选择器默认视图",-1)),ae(c("select",{id:"fileSelectorDefaultView","onUpdate:modelValue":i[9]||(i[9]=r=>s.value.fileSelectorDefaultView=r)},i[29]||(i[29]=[c("option",{value:"view"},"大图标",-1),c("option",{value:"list"},"列表",-1),c("option",{value:"_"},"系统默认",-1)]),512),[[gn,s.value.fileSelectorDefaultView]]),i[31]||(i[31]=c("div",{class:"pure-form-message text-success"},[c("div",null,"设置打开页面后初次使用的视图。"),c("div",{class:"text-warning"},"如果在刷新页面前在选择器切换到了其他视图,该选项将不会生效,但刷新页面后会恢复。")],-1))])]),c("fieldset",null,[c("div",bP,[i[32]||(i[32]=c("label",{for:"followHistoryState"},[U(" 文件列表跟随页面前进后退 "),c("small",{class:"ce-label ce-label-warning"},"BETA")],-1)),ae(c("input",{id:"showOnlyFileFilter",type:"checkbox","onUpdate:modelValue":i[10]||(i[10]=r=>s.value.followHistoryState=r)},null,512),[[Ve,s.value.followHistoryState]])]),i[33]||(i[33]=c("div",{class:"pure-form-message text-success"},[c("div",{class:"text-success"}," 默认情况下,点击浏览器的前进或后退,页面链接中的目录ID虽然会发生变化,但文件列表并没有随之更新。 这个功能尝试解决这个问题,请注意,这是一个测试功能。 ")],-1))]),c("fieldset",null,[c("div",vP,[i[34]||(i[34]=c("label",{for:"showOnlyFileFilter"},[U(" 显示「仅文件」筛选 "),c("small",{class:"ce-label"},"DEV")],-1)),ae(c("input",{id:"showOnlyFileFilter",type:"checkbox","onUpdate:modelValue":i[11]||(i[11]=r=>s.value.showOnlyFileFilter=r)},null,512),[[Ve,s.value.showOnlyFileFilter]])])])])]))}}),xP=je(_P,[["__file","Config.vue"]]),km=yt.search;function CP(e){return {showSelectTargetButtonOnPathBar:!0,showSelectAllDir:!1,resultWidth:"",...e}}async function $m(){const e=CP(),t=await dt.get(km,e);return {...e,...t}}async function kP(e){await dt.set(km,e);}const $P={class:"ce-config ce-search-config"},SP={class:"pure-form pure-form-aligned"},EP={class:"pure-control-group"},AP={class:"pure-control-group"},PP={class:"pure-control-group"},IP=Be({__name:"Config",async setup(e){let t,n;const s=oe(([t,n]=rn(()=>$m()),t=await t,n(),t));return Dt(async()=>{}),ht(s,Ut(async o=>{await kP(o),ue({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:mt.searchConfigChange,body:JSON.parse(JSON.stringify(o))});},500),{deep:!0}),(o,i)=>(A(),T("div",$P,[c("form",SP,[c("fieldset",null,[c("div",EP,[i[3]||(i[3]=c("label",{for:"showSelectTargetButtonOnPathBar"},'显示"选择目录"按钮',-1)),ae(c("input",{id:"showSelectTargetButtonOnPathBar",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>s.value.showSelectTargetButtonOnPathBar=r)},null,512),[[Ve,s.value.showSelectTargetButtonOnPathBar]]),i[4]||(i[4]=c("div",{class:"pure-form-message text-success"},' 在路径栏显示"选择目录"按钮。即可以在搜索结果页直接选择其他目录进行搜索,而不必返回列表页进入目录后再搜索。 ',-1))]),c("div",AP,[i[5]||(i[5]=c("label",{for:"showSelectAllDir"},'显示"选中全部文件夹"按钮',-1)),ae(c("input",{id:"showSelectAllDir",type:"checkbox","onUpdate:modelValue":i[1]||(i[1]=r=>s.value.showSelectAllDir=r)},null,512),[[Ve,s.value.showSelectAllDir]]),i[6]||(i[6]=c("div",{class:"pure-form-message text-success"},' 在搜索结果文件列表顶部显示"选中全部文件夹"按钮。 ',-1))]),c("div",PP,[i[7]||(i[7]=c("label",{for:"resultWidth"},"搜索结果宽度",-1)),ae(c("input",{id:"resultWidth",class:"input-small","onUpdate:modelValue":i[2]||(i[2]=r=>s.value.resultWidth=r)},null,512),[[Ye,s.value.resultWidth]]),i[8]||(i[8]=c("div",{class:"pure-form-message text-success"},[U(" 默认为空。支持 1000px、100%、90vw 等有效的 "),c("a",{href:"https://developer.mozilla.org/zh-CN/docs/Web/CSS/width",target:"_blank",rel:"noreferrer noopener"},"css width数值 🔗"),U("。 ")],-1))])])])]))}}),TP=je(IP,[["__file","Config.vue"]]);async function OP(e){const t=`https://qrcodeapi.115.com/api/1.0/${e}/1.0/token/`;return (await fetch(t)).json()}const DP={0:"等待扫码",1:"已扫码",2:"登录成功",[-1]:"已失效",[-2]:"已取消"};let $l=new AbortController;async function MP(){$l.abort();}async function LP(e){const t=new URLSearchParams;t.append("uid",e.uid),t.append("time",e.time.toString()),t.append("sign",e.sign);const n="https://qrcodeapi.115.com/get/status/?"+t.toString();return $l=new AbortController,(await fetch(n,{signal:$l.signal})).json()}function BP(e){return {domain:"",hostOnly:!1,httpOnly:!0,name:"",path:"",sameSite:"",secure:!1,session:!1,storeId:"0",value:"",id:0,...e}}async function RP(e){let t=`UID=${e.UID}; CID=${e.CID}; SEID=${e.SEID}`;return e.KID&&(t+=`; KID=${e.KID}`),t}async function NP(e,t=[]){const n=[],s=Object.keys(e);let o=["115.com",...t];o=[...new Set(o)];const i={hostOnly:!1,httpOnly:!0,path:"/",sameSite:"unspecified",secure:!1,session:!1,storeId:"0"};let r=1;for(let a=0;a<s.length;a++){const l=s[a],u=[];for(const d of o)u.push(BP({...i,name:l,value:e[l],domain:d,id:r++}));n.push(...u);}return n}function FP(e){const{errno:t,error:n}=e;return `错误码: ${t}, 错误信息: ${n}`}async function UP(e,t){const n=new FormData;n.append("app",t),n.append("account",e);const s=`https://passportapi.115.com/app/1.0/${t}/1.0/login/qrcode/`;return (await fetch(s,{method:"POST",body:n})).json()}async function jP(e,t){const n=`https://qrcodeapi.115.com/api/1.0/web/1.0/qrcode?uid=${t}`;return (await fetch(n)).blob()}var Eu=(e=>(e.web="web",e.android="android",e._115android="115android",e.ios="ios",e._115ipad="115ipad",e.tv="tv",e.alipaymini="alipaymini",e.wechatmini="wechatmini",e.qandroid="qandroid",e._115ios="115ios",e.harmony="harmony",e.ipad="ipad",e.qios="qios",e.qipad="qipad",e.linux="linux",e.mac="mac",e.windows="windows",e))(Eu||{});const HP={web:"网页版",android:"115生活(Android端)","115android":"115(Android端)",ios:"115生活(iOS端)","115ipad":"115(iPad端)",tv:"115网盘(Android电视端)",alipaymini:"115生活(支付宝小程序)",wechatmini:"115生活(微信小程序)",qandroid:"115管理(Android端)","115ios":"115(iOS端)",harmony:"115(Harmony端) - 不能上传下载"};async function zP(e,t){return new Promise((n,s)=>{const o=new FileReader;o.onloadend=()=>{if(typeof o.result=="string"){if(t instanceof HTMLImageElement)t.src=o.result;else {const i=document.createElement("img");i.src=o.result,t.appendChild(i);}n();}else console.error("[renderQrcode]","reader.result is not string!"),s("reader.result is not string!");},o.onerror=i=>{console.error("[renderQrcode]",i),s(i);},o.readAsDataURL(e);})}async function qP(e){document.addEventListener("qrcodeStatusChange",t=>{const n=t.detail;e(n);});}async function VP(e){const t=new CustomEvent("qrcodeStatusChange",{detail:e});document.dispatchEvent(t);}async function KP(e,t,n=6e4){return new Promise(async(s,o)=>{console.log("[qrcodeLogin]",e,t,n);const i=await OP(e),r=await jP(e,i.data.uid);await zP(r,t);let a=!0,l=setTimeout(()=>{a=!1,o("[qrcode login] timeout!");},n),u="";for(;a;)try{const h=(await LP(i.data)).data.status;if(VP(h),h===0)console.log(`[qrcode login] status=${h} - waiting.`);else if(h===1)console.log(`[qrcode login] status=${h} - scanned.`);else if(h===2){console.log(`[qrcode login] status=${h} - signed.`);break}else if(h===-1){clearTimeout(l),u=`[qrcode login] status=${h} - expired.`;break}else if(h===-2){clearTimeout(l),u=`[qrcode login] status=${h} - canceled.`;break}}catch(d){console.error("[qrcode login]",d),u=d;break}clearTimeout(l),u?o(u):s(UP(i.data.uid,e));})}const Sm=yt.tools;function WP(e){return {scanApp:Eu.alipaymini,...e}}async function GP(){const e=WP(),t=await dt.get(Sm,e);return {...e,...t}}async function JP(e){await dt.set(Sm,e);}const YP={class:"ce-tools-item"},QP={class:"pure-form pure-form-aligned"},XP={class:"pure-control-group"},ZP=["disabled"],eI=["value"],tI=["disabled"],nI={key:0,class:"text-warning text-bold"},sI={key:1},oI={class:"pure-control-group"},iI=6e4,rI=Be({__name:"GetCookie",props:{app:{}},emits:["app-change"],setup(e,{emit:t}){const n=e,s=t,o=oe(n.app),i=oe(!1),r=oe(!1),a=oe(!1),l=oe(),u=oe(),d=it(()=>u.value?DP[u.value]:""),h=it(()=>{const N=[Eu.harmony],D={};for(const[B,F]of Object.entries(HP))N.includes(B)||(D[B]=F);return D});ht(o,N=>{s("app-change",N),v();}),Dt(async()=>{}),qt(async()=>{await qP(_);});async function y(){await v();try{const N=document.querySelector("#ceGetCookieQrcode"),D=await KP(o.value,N,iI);let B="";if(D.data?l.value=D.data:B=FP(D)||"未知错误",B)throw new Error(B)}catch(N){if(console.error(N),N.name==="AbortError")return;he.fire({icon:"error",title:"扫码失败",text:typeof N=="string"?N:N.toString()});}finally{i.value=!1,r.value=!1,u.value=void 0;}}async function v(){l.value=void 0,r.value=!1,a.value=!1,i.value=!1,u.value=void 0,await L();}async function b(){r.value=!0;}async function _(N){console.log("[handleStatusChange]",N),u.value=N;}async function R(N){var F;const D=(F=l.value)==null?void 0:F.cookie;if(!D)return;let B="";if(N==="text")B=await RP(D);else if(N==="json"){const j=await NP(D);B=JSON.stringify(j,null,2);}Ht(B),Vo.fire({icon:"success",title:"已复制到剪贴板",timer:1500});}async function L(){await MP();}return (N,D)=>(A(),T("div",YP,[c("form",QP,[c("fieldset",null,[D[7]||(D[7]=c("legend",null,"扫码获取Cookie",-1)),c("div",XP,[ae(c("select",{"onUpdate:modelValue":D[0]||(D[0]=B=>o.value=B),disabled:i.value},[(A(!0),T(De,null,Ge(h.value,(B,F)=>(A(),T("option",{value:F,key:F},G(B),9,eI))),128))],8,ZP),[[gn,o.value]]),D[5]||(D[5]=U("    ")),c("button",{type:"button",class:"pure-button pure-button-primary",onClick:y,disabled:i.value}," 开始 ",8,tI),D[6]||(D[6]=U("    ")),d.value?(A(),T("span",nI,G(d.value),1)):we("",!0),l.value?(A(),T("span",sI,[D[3]||(D[3]=U("      ")),c("button",{type:"button",class:"pure-button button-success",onClick:D[1]||(D[1]=B=>R("text"))}," 复制文本格式Cookie "),D[4]||(D[4]=U("    ")),c("button",{type:"button",class:"pure-button button-success",onClick:D[2]||(D[2]=B=>R("json"))}," 复制JSON格式Cookie ")])):we("",!0)]),D[8]||(D[8]=c("div",{class:"text-danger"},"扫码登录后,所选设备之前的登录将会失效,所以请尽量选不常用的。",-1)),D[9]||(D[9]=c("div",{class:"text-primary"},"请注意,扫码得到的Cookie会跟随发起扫码的设备,如果发起扫码的设备退出登录,扫码得到的Cookie也会随之失效。",-1)),D[10]||(D[10]=c("div",{class:"text-success"},"如要避免上述问题,可以考虑使用手机验证码登录小程序并获取其Cookie。",-1)),ae(c("div",oI,[c("img",{id:"ceGetCookieQrcode",alt:"qrcode",onLoad:b},null,32)],512),[[Nt,r.value]])])])]))}}),aI=je(rI,[["__file","GetCookie.vue"]]),lI={class:"ce-tools-item"},uI={class:"pure-form pure-form-aligned"},cI={class:"pure-control-group"},dI={class:"pure-control-group"},fI=Be({__name:"Cleaner",setup(e){async function t(s,o){s&&(await n(),await an(1e3)),window.postMessage({event:mt.closeConfig}),postMessage({type:o==="FileCleaner"?Ft.OPEN_CLEANER:Ft.OPEN_EMPTY_CLEANER});}async function n(){return new Promise(async(s,o)=>{unsafeWindow.parent.Core.FileSelectDG.Open((i,r)=>{console.log("[Core.FileSelectDG.Open]",i,r);const a=i[i.length-1],l=unsafeWindow.parent.wangpan;try{l.Main.GotoDir(1,a.cid,0,""),s();}catch(u){he.fire({icon:"error",title:"打开文件夹失败",text:`请在文件列表页面中打开!不要在离线任务之类的页面打开。异常: ${u.toString()}`});}},{select:1,nf:1,show_record:0,show_copy:1,btn_txt:"打开清理工具",select_txt:"清理"});})}return (s,o)=>(A(),T("div",lI,[c("form",uI,[c("fieldset",null,[o[8]||(o[8]=c("legend",null,"文件清理",-1)),c("div",cI,[o[4]||(o[4]=c("div",{class:"ce-tips"},"根据后缀、大小和名称等条件进行文件清理。请在「网盘」页中点击以下按钮。",-1)),c("button",{type:"button",class:"pure-button button-success",onClick:o[0]||(o[0]=i=>t(!1,"FileCleaner"))}," 清理当前文件夹 "),o[5]||(o[5]=U("      ")),c("button",{type:"button",class:"pure-button button-success",onClick:o[1]||(o[1]=i=>t(!0,"FileCleaner"))}," 清理指定文件夹 ")]),o[9]||(o[9]=c("br",null,null,-1)),c("div",dI,[o[6]||(o[6]=c("div",{class:"ce-tips"},"尽快找到空文件夹进行清理。请在「网盘」页中点击以下按钮。",-1)),c("button",{type:"button",class:"pure-button button-warning",onClick:o[2]||(o[2]=i=>t(!1,"EmptyCleaner"))}," 清理当前文件夹下的空文件夹 "),o[7]||(o[7]=U("      ")),c("button",{type:"button",class:"pure-button button-warning",onClick:o[3]||(o[3]=i=>t(!0,"EmptyCleaner"))}," 清理指定文件夹下的空文件夹 ")])])])]))}}),pI=je(fI,[["__file","Cleaner.vue"]]),hI={class:"ce-config ce-tools-config"},mI={class:"item"},gI=Be({__name:"Config",async setup(e){let t,n;const s=oe(([t,n]=rn(()=>GP()),t=await t,n(),t));Dt(async()=>{}),ht(s,Ut(async i=>{await JP(i),window.postMessage({event:mt.toolsConfigChange,body:JSON.parse(JSON.stringify(i))});},100),{deep:!0});async function o(i){s.value.scanApp=i;}return (i,r)=>(A(),T("div",hI,[c("div",mI,[ge(aI,{app:s.value.scanApp,onAppChange:o},null,8,["app"]),ge(pI)])]))}}),yI=je(gI,[["__file","Config.vue"]]),wI={class:"menu-config-block menu-basic-config"},bI={class:"pure-form pure-form-stacked"},vI={class:"pure-control-group"},_I={class:"pure-control-group"},xI={class:"pure-control-group"},CI={class:"pure-control-group"},kI={class:"pure-control-group"},$I=["value"],SI={class:"pure-control-group"},EI=Be({__name:"BasicConfig",props:{config:{}},setup(e){const t=e;async function n(o){const r={keyToTriggerManual:"在按下该按键时点击菜单项,会触发手动输入模式,此时会打开一个输入框,修改文本后,点击「确定」或按下Ctrl+Enter,即可继续完成菜单项的操作。",m3u8TempDir:"「M3U8临时目录」用于临时存放生成的m3u8文件。在选中多个视频文件后,在顶部菜单栏会有一个「播放」菜单项,点击后会生成对应的m3u8文件,然后调用播放器播放这个m3u8以实现播放多个视频的效果。"}[o];r&&he.fire({html:r});}function s(o){console.log("[onSelectM3U8Dir]",o),t.config.m3u8TempDir=o.items[o.items.length-1].path.slice(1).map(i=>i.name).join("/");}return (o,i)=>(A(),T("div",wI,[c("form",bI,[c("fieldset",null,[i[15]||(i[15]=c("legend",null,"全局设置",-1)),c("div",vI,[i[8]||(i[8]=c("label",{for:"basic_enabled"},"启用",-1)),ae(c("input",{id:"basic_enabled",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>t.config.enabled=r)},null,512),[[Ve,t.config.enabled]])]),c("div",_I,[i[9]||(i[9]=c("label",{for:"basic_hideSelectionMenuLabel"},"隐藏顶部菜单文本",-1)),ae(c("input",{id:"basic_hideSelectionMenuLabel",type:"checkbox","onUpdate:modelValue":i[1]||(i[1]=r=>t.config.hideSelectionMenuLabel=r)},null,512),[[Ve,t.config.hideSelectionMenuLabel]])]),c("div",xI,[i[10]||(i[10]=c("label",{for:"basic_enableInSearch"},"在搜索结果页中启用",-1)),ae(c("input",{id:"basic_enableInSearch",type:"checkbox","onUpdate:modelValue":i[2]||(i[2]=r=>t.config.enableInSearch=r)},null,512),[[Ve,t.config.enableInSearch]])]),c("div",CI,[i[11]||(i[11]=c("label",{for:"basic_manageOfficialMenus"},"控制官方菜单",-1)),ae(c("input",{id:"basic_manageOfficialMenus",type:"checkbox","onUpdate:modelValue":i[3]||(i[3]=r=>t.config.manageOfficialMenus=r)},null,512),[[Ve,t.config.manageOfficialMenus]])]),c("div",kI,[i[12]||(i[12]=c("label",{for:"basic_forceManualBeforeOpenOnKey"},"强制使用手动输入模式的辅助键",-1)),c("span",{class:"ce-label ce-label-success ce-config-help",onClick:i[4]||(i[4]=r=>n("keyToTriggerManual"))},"说明"),ae(c("select",{id:"basic_forceManualBeforeOpenOnKey","onUpdate:modelValue":i[5]||(i[5]=r=>t.config.keyToTriggerManual=r)},[(A(!0),T(De,null,Ge(fe(Dn),(r,a)=>(A(),T("option",{key:a,value:a},G(r),9,$I))),128))],512),[[gn,t.config.keyToTriggerManual]])]),c("div",SI,[i[14]||(i[14]=c("label",{for:"basic_m3u8TempDirName"},"M3U8临时目录",-1)),c("span",{class:"ce-label ce-label-success ce-config-help",onClick:i[6]||(i[6]=r=>n("m3u8TempDir"))},"说明"),ae(c("input",{id:"basic_m3u8TempDirName","onUpdate:modelValue":i[7]||(i[7]=r=>t.config.m3u8TempDir=r)},null,512),[[Ye,t.config.m3u8TempDir]]),ge(mi,{purpose:"作为M3U8临时目录",onSelect:s},{default:Re(()=>i[13]||(i[13]=[c("a",{class:"text-primary",href:"javascript:void(0)"},"选择目录",-1)])),_:1})])])])]))}}),AI=je(EI,[["__file","BasicConfig.vue"]]);var Qe=(e=>(e.input="text",e.number="number",e.password="password",e.textarea="textarea",e.checkbox="checkbox",e.select="select",e.radio="radio",e.date="date",e))(Qe||{});const PI={class:"ce-field"},II=["for"],TI={class:"ce-field-extra ce-field-prefix"},OI=["type","id","name","required","placeholder"],DI=["id","name","required","placeholder"],MI=["value"],LI={key:2},BI=["value","required"],RI=["id","name","required"],NI={key:3},FI=["value","required"],UI=["id","name","required"],jI={class:"ce-field-extra ce-field-suffix"},HI=Be({__name:"CeField",props:{field:{},value:{}},emits:["update:value"],setup(e,{emit:t}){const n=t,o=oe(e.value);return ht(o,(i,r)=>{n("update:value",i);}),(i,r)=>(A(),T("div",PI,[c("label",{for:i.field.name},G(i.field.label),9,II),c("span",TI,[nt(i.$slots,"prefix")]),!i.field.type||i.field.type===fe(Qe).input||i.field.type===fe(Qe).number?ae((A(),T("input",{key:0,type:i.field.type,id:i.field.name,name:i.field.name,"onUpdate:modelValue":r[0]||(r[0]=a=>o.value=a),required:i.field.required,placeholder:i.field.placeholder},null,8,OI)),[[E0,o.value]]):i.field.type===fe(Qe).select?ae((A(),T("select",{key:1,id:i.field.name,name:i.field.name,"onUpdate:modelValue":r[1]||(r[1]=a=>o.value=a),required:i.field.required,placeholder:i.field.placeholder},[(A(!0),T(De,null,Ge(i.field.options,(a,l)=>(A(),T("option",{key:l,value:a.value},G(a.label),9,MI))),128))],8,DI)),[[gn,o.value]]):i.field.type===fe(Qe).checkbox?(A(),T("span",LI,[i.field.options&&i.field.options.length>0?(A(!0),T(De,{key:0},Ge(i.field.options,(a,l)=>(A(),T("label",{key:l},[ae(c("input",{type:"checkbox",value:a.value,"onUpdate:modelValue":r[2]||(r[2]=u=>o.value=u),required:i.field.required},null,8,BI),[[Ve,o.value]]),U(" "+G(a.label),1)]))),128)):ae((A(),T("input",{key:1,type:"checkbox",id:i.field.name,name:i.field.name,"onUpdate:modelValue":r[3]||(r[3]=a=>o.value=a),required:i.field.required},null,8,RI)),[[Ve,o.value]])])):i.field.type===fe(Qe).radio?(A(),T("span",NI,[(A(!0),T(De,null,Ge(i.field.options,(a,l)=>(A(),T("label",{key:l},[ae(c("input",{type:"radio",value:a.value,"onUpdate:modelValue":r[4]||(r[4]=u=>o.value=u),required:i.field.required},null,8,FI),[[Gp,o.value]]),U(" "+G(a.label),1)]))),128))])):i.field.type===fe(Qe).date?ae((A(),T("input",{key:4,type:"date",id:i.field.name,name:i.field.name,"onUpdate:modelValue":r[5]||(r[5]=a=>o.value=a),required:i.field.required},null,8,UI)),[[Ye,o.value]]):we("",!0),c("span",jI,[nt(i.$slots,"suffix")])]))}}),zI=je(HI,[["__file","CeField.vue"]]),qI={class:"ce-form pure-form pure-form-stacked"},VI=Be({__name:"CeForm",props:{config:{},data:{}},emits:["update:value"],setup(e,{emit:t}){const n=t,s=e,o=(i,r)=>{n("update:value",{...s.data,[i]:r});};return (i,r)=>(A(),T("div",qI,[c("fieldset",null,[c("legend",null,[nt(i.$slots,"header",{},()=>[U(G(i.config.label),1)])]),(A(!0),T(De,null,Ge(i.config.fields,a=>nt(i.$slots,a.name,{key:a.name,data:a},()=>[ge(zI,{field:a,value:i.data[a.name],"onUpdate:value":l=>o(a.name,l)},{prefix:Re(()=>[nt(i.$slots,`${a.name}prefix`,{data:a})]),suffix:Re(()=>[nt(i.$slots,`${a.name}suffix`,{data:a})]),_:2},1032,["field","value","onUpdate:value"])])),128)),nt(i.$slots,"footer")])]))}}),aa=je(VI,[["__file","CeForm.vue"]]),KI={class:"menu-config-block"},WI=Be({__name:"ListItemHoverConfig",props:{config:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,s=t,o=oe([{label:"启用",name:"enabled",type:Qe.checkbox},{label:"新标签页打开",name:"openInNewTab",type:Qe.checkbox},{label:"搜索",name:"search",type:Qe.checkbox},{label:"播放",name:"play",type:Qe.checkbox},{label:"名称路径",name:"copyNames",type:Qe.checkbox},{label:"导出列表数据",name:"exportList",type:Qe.checkbox},{label:"在CloudDrive中查看",name:"viewInCloudDrive",type:Qe.checkbox}]),i=oe({label:mo.listItemHover,fields:o.value}),r=a=>{s("update:value",{...n.config,...a});};return (a,l)=>(A(),T("div",KI,[c("div",null,[ge(aa,{data:a.config,config:i.value,"onUpdate:value":r},null,8,["data","config"])])]))}}),GI=je(WI,[["__file","ListItemHoverConfig.vue"]]),JI={class:"menu-config-block"},YI=Be({__name:"ListItemContextConfig",props:{config:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,s=t,o=oe([{label:"启用",name:"enabled",type:Qe.checkbox},{label:"名称路径",name:"copyNames",type:Qe.checkbox},{label:"在CloudDrive中查看",name:"viewInCloudDrive",type:Qe.checkbox}]),i=oe({label:mo.listItemHover,fields:o.value}),r=a=>{s("update:value",{...n.config,...a});};return (a,l)=>(A(),T("div",JI,[c("div",null,[ge(aa,{data:a.config,config:i.value,"onUpdate:value":r},null,8,["data","config"])])]))}}),QI=je(YI,[["__file","ListItemContextConfig.vue"]]),XI={class:"menu-config-block"},ZI=Be({__name:"SelectionConfig",props:{config:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,s=t,o=oe([{label:"启用",name:"enabled",type:Qe.checkbox},{label:"移动到同名目录",name:"moveToSelfNameDir",type:Qe.checkbox},{label:"名称路径",name:"copyNames",type:Qe.checkbox},{label:"播放",name:"play",type:Qe.checkbox}]),i=oe({label:mo.listItemHover,fields:o.value}),r=a=>{s("update:value",{...n.config,...a});};return (a,l)=>(A(),T("div",XI,[c("div",null,[ge(aa,{data:a.config,config:i.value,"onUpdate:value":r},null,8,["data","config"])])]))}}),eT=je(ZI,[["__file","SelectionConfig.vue"]]),tT={class:"menu-config-block"},nT=["onClick"],sT=Be({__name:"DirContextConfig",props:{config:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,s=t,o=oe([{label:"启用",name:"enabled",type:Qe.checkbox},{label:"重命名",name:"rename",type:Qe.checkbox},{label:"删除",name:"delete",type:Qe.checkbox},{label:"播放全部",name:"play",type:Qe.checkbox},{label:"名称路径",name:"copyNames",type:Qe.checkbox},{label:"移动",name:"move",type:Qe.checkbox},{label:"复制",name:"copy",type:Qe.checkbox},{label:"复制到",name:"copyTo",type:Qe.checkbox},{label:"查看属性",name:"viewProp",type:Qe.checkbox},{label:"子文件夹大小",name:"showSubFolderSize",type:Qe.checkbox},{label:"导出列表数据",name:"exportList",type:Qe.checkbox},{label:"在CloudDrive中查看",name:"viewInCloudDrive",type:Qe.checkbox}]),i=oe({label:mo.dirContext,fields:o.value}),r=it(()=>{const h=["enabled","play","copyNames"];return Object.keys(n.config).filter(y=>!h.includes(y))}),a=it(()=>{const h=[];for(const y of Object.keys(n.config))h.push({name:y,prefix:`${y}prefix`,suffix:`${y}suffix`});return h}),l=h=>{s("update:value",{...n.config,...h});},u=h=>{n.config.topLevelMenus.includes(h.name)?n.config.topLevelMenus=n.config.topLevelMenus.filter(y=>y!==h.name):n.config.topLevelMenus.push(h.name);};async function d(){he.fire({html:`<b>当前目录右键菜单的打开方式:</b>
    <br>1. 右键单击文件列表表头;
    <br>2. 右键单击文件列表空白处;
    <br>3.「文件名」列头部增加「目录功能菜单」按钮。
    <hr class="ce-hr">
    <b>菜单显示层级:</b>
    <br>1.「播放全部」和「名称路径」强制显示为一级菜单;
    <br>2. 其他菜单可以通过点击 👁 图标设置是否显示为一级菜单。
  `,customClass:"ce-swal-text-left"});}return (h,y)=>(A(),T("div",tT,[c("div",null,[ge(aa,{data:h.config,config:i.value,"onUpdate:value":l},h1({header:Re(()=>[U(G(fe(mo).dirContext)+" ",1),c("span",{class:"ce-label ce-label-success ce-config-help",onClick:d},"说明")]),_:2},[Ge(a.value,v=>({name:v.suffix,fn:Re(({data:b})=>[r.value.includes(b.name)?(A(),T("span",{key:0,class:He(["btn-toggle-top",{active:h.config.topLevelMenus.includes(b.name)}]),onClick:_=>u(b),title:"点亮表示显示为一级菜单,否则将显示在「更多」菜单中"},"👁",10,nT)):we("",!0)])}))]),1032,["data","config"])])]))}}),oT=je(sT,[["__file","DirContextConfig.vue"]]),iT={class:"official-menu-config"},rT={class:"pure-form pure-form-stacked"},aT=["onClick"],lT={class:"menu-key"},uT=["onClick"],cT=Be({__name:"OfficialMenuConfig",setup(e){const t=oe([]),n=oe(!1);Dt(async()=>{t.value=await nh(),console.log("official menu groups",t.value,location.href);}),qt(()=>{document.body.addEventListener("click",()=>{n.value||(n.value=!0);});}),ht(t,Ut(async i=>{if(!n.value)return;const r=await T_(i);await I_(r,!0),ue({icon:"success",title:"官方菜单设置已保存,已生效。",timer:1e3,position:"top-end"});},500),{deep:!0});async function s(i){i.hidden=!i.hidden;}async function o(i){const{isConfirmed:r}=await he.fire({icon:"warning",html:`确认要重置分组「${i.label}」的隐藏状态吗?`,confirmButtonText:"确认",showDenyButton:!0,denyButtonText:"关闭"});r&&i.items.forEach(a=>{a.hidden=!1;});}return (i,r)=>(A(),T("div",iT,[r[0]||(r[0]=c("div",{class:"ce-tips"},[c("p",null,"开启「菜单设置 - 全局设置 - 控制官方菜单」后才会生效。"),c("p",{class:"text-primary"},"该功能仅支持隐藏菜单。点击「隐藏」后刷新页面生效,如需取消请点击「取消隐藏」。")],-1)),(A(!0),T(De,null,Ge(t.value,(a,l)=>(A(),T("div",{key:l,class:"menu-config-block"},[c("form",rT,[c("fieldset",null,[c("legend",null,[U(G(a.label)+" ",1),c("span",{class:"ce-label ce-label-warning",title:"取消该分组下全部的隐藏设置",onClick:u=>o(a)}," 重置 ",8,aT)]),(A(!0),T(De,null,Ge(a.items,(u,d)=>(A(),T("div",{key:d,class:He([{hidden:u.hidden},"menu-item"])},[c("label",null,[U(G(u.label)+" ",1),c("small",lT,G(u.key),1)]),c("span",{class:"ce-toggle",onClick:h=>s(u)},G(u.hidden?"取消隐藏":"隐藏"),9,uT)],2))),128))])])]))),128))]))}}),dT=je(cT,[["__file","OfficialMenuConfig.vue"]]),fT={key:0,class:"ce-menu-config"},pT=Be({__name:"MenuConfig",async setup(e){let t,n;const s=oe(([t,n]=rn(()=>hn()),t=await t,n(),t));return Dt(async()=>{}),ht(s,Ut(async o=>{const i=await hn();o.defaultPlayer=i.defaultPlayer,await Nf(o),ue({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"});},500),{deep:!0}),(o,i)=>s.value.enabled!==void 0?(A(),T("div",fT,[i[5]||(i[5]=c("div",{class:"ce-tips"},[c("p",null,"「搜索」功能菜单支持自定义,可在「搜索菜单」设置面板中添加和管理。"),c("p",null,"「播放」功能菜单支持自定义,可在「播放菜单」设置面板中添加和管理。")],-1)),ge(AI,{config:s.value},null,8,["config"]),ge(GI,{config:s.value.listItemHover,"onUpdate:value":i[0]||(i[0]=r=>s.value.listItemHover=r)},null,8,["config"]),ge(QI,{config:s.value.listItemContext,"onUpdate:value":i[1]||(i[1]=r=>s.value.listItemContext=r)},null,8,["config"]),ge(eT,{config:s.value.selection,"onUpdate:value":i[2]||(i[2]=r=>s.value.selection=r)},null,8,["config"]),ge(oT,{config:s.value.dirContext,"onUpdate:value":i[3]||(i[3]=r=>s.value.dirContext=r)},null,8,["config"]),i[6]||(i[6]=c("hr",{class:"ce-hr"},null,-1)),c("div",null,[i[4]||(i[4]=c("h1",null,"官方菜单设置",-1)),c("div",null,[ge(dT)])])])):we("",!0)}}),hT=je(pT,[["__file","MenuConfig.vue"]]),mT={class:"ce-custom-url"},gT={class:"pure-form pure-form-aligned"},yT={class:"ce-custom-url-index"},wT={class:"pure-control-group"},bT={class:"pure-control-group"},vT={class:"pure-control-group"},_T={class:"pure-control-group"},xT={key:0,class:"item-icon"},CT=["src"],kT={class:"pure-control-group"},$T={class:"pure-control-group"},ST={class:"pure-control-group"},ET={key:0,class:"pure-control-group"},AT=Be({__name:"CustomUrl",props:{item:{},index:{}},emits:["delete"],setup(e,{emit:t}){const n=oe(!0),s=t;function o(){s("delete");}async function i(){n.value=!n.value,n.value&&ue({title:"已开启高级模式",text:"请谨慎修改,不正确的代码可能会导致脚本崩溃。",icon:"info",timer:2e3});}async function r(){window.postMessage({event:"customUrlHelp"},"*");}async function a(){await he.fire({title:"Mutation 说明",html:`
  <div style="text-align:left;">
    <p>自定义代码,用于生成最终的链接。</p><br>
    <p>代码会被包含在一个async匿名函数中执行,最终应该返回一个链接字符串。</p>
    <p>传入的参数名为「payload」,其结构如下:</p>
    <p>- url: 之前自动处理得到的链接</p>
    <p>- file:当前文件信息</p>
    <p>- customUrl:当前自定义规则信息</p>
    <p>- cloudDriveConfig:CloudDrive设置信息</p><br>
    <p>示例:</p>
    <pre style="text-align:left;font-size:12px;">
    const {
      url,
      file,
      customUrl,
      cloudDriveConfig
    } = payload
    const sth = await fetch(\`https://api.sth.com/foo?bar=\${file.pc}\`)
    return \`https://example.com/do?key=\${sth}\`
    </pre>
  </div>
  `,width:480,position:"top-start",backdrop:!1});}return (l,u)=>(A(),T("div",mT,[c("form",gT,[c("fieldset",null,[c("legend",null,[c("span",yT,"# "+G(l.index+1),1),c("button",{type:"button",class:"pure-button button-error button-small",onClick:o}," 删除 ")]),c("div",wT,[u[8]||(u[8]=c("label",null,"启用",-1)),ae(c("input",{"onUpdate:modelValue":u[0]||(u[0]=d=>l.item.enabled=d),type:"checkbox",id:"customUrl_enabled"},null,512),[[Ve,l.item.enabled]])]),c("div",bT,[u[9]||(u[9]=c("label",null,"唯一标识",-1)),ae(c("input",{"onUpdate:modelValue":u[1]||(u[1]=d=>l.item.key=d),id:"customUrl_key",class:"pure-input-2-3",placeholder:"英文、数字或下划线"},null,512),[[Ye,l.item.key]])]),c("div",vT,[u[10]||(u[10]=c("label",null,"显示名称",-1)),ae(c("input",{"onUpdate:modelValue":u[2]||(u[2]=d=>l.item.label=d),id:"customUrl_label",class:"pure-input-2-3",placeholder:"菜单文本,尽量简洁"},null,512),[[Ye,l.item.label]])]),c("div",_T,[u[11]||(u[11]=c("label",null,"图标",-1)),ae(c("input",{"onUpdate:modelValue":u[3]||(u[3]=d=>l.item.icon=d),id:"customUrl_icon",class:"pure-input-2-3",placeholder:"图标class、图片链接或图片data:image"},null,512),[[Ye,l.item.icon]]),u[12]||(u[12]=U("   ")),l.item.icon?(A(),T("span",xT,[c("img",{src:l.item.icon,referrerpolicy:"no-referrer",width:"25"},null,8,CT)])):we("",!0)]),c("div",kT,[c("label",{onDblclick:i}," 链接 ",32),ae(c("textarea",{"onUpdate:modelValue":u[4]||(u[4]=d=>l.item.url=d),id:"customUrl_url",class:"pure-input-2-3",placeholder:"链接地址,支持变量,变量列表请点击右侧「查看变量」"},null,512),[[Ye,l.item.url]]),u[13]||(u[13]=U("   ")),c("a",{href:"javascript:void(0)",class:"text-primary",onClick:r},"查看变量")]),c("div",$T,[u[14]||(u[14]=c("label",null,"后台打开",-1)),ae(c("input",{"onUpdate:modelValue":u[5]||(u[5]=d=>l.item.openInBackground=d),id:"customUrl_openInBackground",type:"checkbox"},null,512),[[Ve,l.item.openInBackground]])]),c("div",ST,[u[15]||(u[15]=c("label",null,"备注",-1)),ae(c("input",{"onUpdate:modelValue":u[6]||(u[6]=d=>l.item.memo=d),id:"customUrl_memo",class:"pure-input-2-3"},null,512),[[Ye,l.item.memo]])]),n.value?(A(),T("div",ET,[u[16]||(u[16]=c("label",null,"Mutation",-1)),ae(c("textarea",{"onUpdate:modelValue":u[7]||(u[7]=d=>l.item.mutation=d),id:"customUrl_mutation",class:"pure-input-2-3",placeholder:"自定义代码生成最终链接,具体请看右侧「查看说明」"},null,512),[[Ye,l.item.mutation]]),u[17]||(u[17]=U("   ")),c("a",{href:"javascript:void(0)",class:"text-primary",onClick:a},"查看说明")])):we("",!0)])])]))}}),Em=je(AT,[["__file","CustomUrl.vue"]]),PT={class:"ce-config ce-search-urls ce-custom-urls"},IT={class:"ce-menu-urls-builtin"},TT={class:"pure-form pure-form-aligned"},OT={key:0,class:"item-icon"},DT=["src"],MT=["for"],LT=["id","onUpdate:modelValue"],BT={class:"text-info item-memo"},RT=["onClick"],NT={class:"ce-custom-urls-list"},FT={class:"ce-custom-urls-actions"},UT=["disabled"],jT=Be({__name:"SearchUrls",async setup(e){let t,n;const s=oe(([t,n]=rn(()=>Pf()),t=await t,n(),t)),o=oe(([t,n]=rn(()=>Ir(Fs.search)),t=await t,n(),t));Dt(async()=>{}),ht(s,Ut(async d=>{const h=[];d.forEach(y=>{y.enabled&&h.push(y.key);}),await Pb(h),ue({icon:"success",title:"预置搜索菜单设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"});},500),{deep:!0});async function i(){const d=[];for(const h of o.value){if(!await r(h,d.length))return;if(d.includes(h.key)){ue({icon:"error",title:`第 ${d.length+1} 个记录的「唯一标识: ${h.key}」重复!`});return}d.push(h.key);}await Bf(Fs.search,o.value),ue({icon:"success",title:"保存成功!"});}async function r(d,h){const y=/^\w+$/;return d.key=d.key.trim(),y.test(d.key)?(d.label=d.label.trim(),d.label===""?(ue({icon:"error",title:`第 ${h+1} 个记录的「显示名称」不能为空!`}),!1):(d.url=d.url.trim(),d.url===""?(ue({icon:"error",title:`第 ${h+1} 个记录的「链接」不能为空!`}),!1):(d.icon=d.icon.trim(),d.memo=d.memo.trim(),!0))):(ue({icon:"error",title:`第 ${h+1} 个记录的「唯一标识」错误!只能包含字母、数字、下划线。`}),!1)}async function a(){o.value.push(_t());}async function l(d,h){const{isConfirmed:y}=await he.fire({icon:"warning",html:`确定要删除第 ${h+1} 个记录「${d.label}」吗?`});y&&(o.value.splice(h,1),await i(),ue({icon:"success",title:`「${d.label}」已删除!`}));}async function u(d){const h=JSON.stringify(d,null,2),y=`ce-url-item-denifition-${d.key}`,{isConfirmed:v}=await he.fire({title:`「${d.label}」的定义`,html:`<h3>${d.memo}</h3>
      <pre id="${y}" style="text-align:left;font-size:12px;"></pre>`,confirmButtonText:"复制",showCancelButton:!0,position:"top-left",heightAuto:!0,didOpen:()=>{document.getElementById(y).textContent=h;}});v&&(navigator.clipboard.writeText(h),ue({icon:"success",title:"已复制到剪贴板!"}));}return (d,h)=>(A(),T("div",PT,[c("h1",null,[h[0]||(h[0]=U("预置搜索菜单 ")),ae(c("small",null,"( "+G(s.value.length)+" )",513),[[Nt,s.value.length]])]),c("div",IT,[c("form",TT,[c("fieldset",null,[(A(!0),T(De,null,Ge(s.value,(y,v)=>(A(),T("div",{key:v,class:"pure-control-group"},[y.icon?(A(),T("span",OT,[c("img",{src:y.icon,referrerpolicy:"no-referrer",width:"25"},null,8,DT)])):we("",!0),c("label",{for:`builtin_${y.key}`},G(y.label),9,MT),ae(c("input",{id:`builtin_${y.key}`,type:"checkbox","onUpdate:modelValue":b=>y.enabled=b},null,8,LT),[[Ve,y.enabled]]),h[1]||(h[1]=U("      ")),c("span",BT,G(y.memo),1),h[2]||(h[2]=U("      ")),c("button",{type:"button",class:"pure-button button-small",onClick:b=>u(y)},"查看定义",8,RT)]))),128))])])]),c("h1",null,[h[3]||(h[3]=U("自定义搜索菜单 ")),ae(c("small",null,"( "+G(o.value.length)+" )",513),[[Nt,o.value.length]])]),c("div",NT,[(A(!0),T(De,null,Ge(o.value,(y,v)=>(A(),ot(Em,{key:v,item:y,index:v,onDelete:b=>l(y,v)},null,8,["item","index","onDelete"]))),128))]),c("div",FT,[c("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:i,disabled:!o.value.length}," 保存自定义搜索菜单 ",8,UT),h[4]||(h[4]=U("      ")),c("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:a}," 添加自定义搜索菜单 ")])]))}}),HT=je(jT,[["__file","SearchUrls.vue"]]),zT={class:"ce-config ce-play-urls ce-custom-urls"},qT={class:"pure-form pure-form-aligned"},VT=["value"],KT={class:"ce-menu-urls-builtin"},WT={class:"pure-form pure-form-aligned"},GT={key:0,class:"item-icon"},JT=["src"],YT=["for"],QT=["id","onUpdate:modelValue"],XT={class:"text-info item-memo"},ZT=["onClick"],eO=["innerHTML"],tO={class:"ce-custom-urls-list"},nO={class:"ce-custom-urls-actions"},sO=["disabled"],oO=Be({__name:"PlayUrls",async setup(e){let t,n;const s=oe(([t,n]=rn(()=>If()),t=await t,n(),t)),o=oe(([t,n]=rn(()=>Ir(Fs.play)),t=await t,n(),t)),i=([t,n]=rn(()=>hn()),t=await t,n(),t),r=oe(i.defaultPlayer||""),a=it(()=>[...s.value.filter(v=>v.enabled),...o.value.filter(v=>v.enabled)]);Dt(async()=>{}),ht(s,Ut(async v=>{const b=[];v.forEach(_=>{_.enabled&&b.push(_.key);}),await Ib(b),ue({icon:"success",title:"预置搜索菜单设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"});},500),{deep:!0}),ht(r,Ut(async v=>{const b=await hn();b.defaultPlayer=v,await Nf(b),ue({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"});},250));async function l(){const v=[];for(const b of o.value){if(!await u(b,v.length))return;if(v.includes(b.key)){ue({icon:"error",title:`第 ${v.length+1} 个记录的「唯一标识: ${b.key}」重复!`});return}v.push(b.key);}await Bf(Fs.play,o.value),ue({icon:"success",title:"保存成功!"});}async function u(v,b){const _=/^\w+$/;return v.key=v.key.trim(),_.test(v.key)?(v.label=v.label.trim(),v.label===""?(ue({icon:"error",title:`第 ${b+1} 个记录的「显示名称」不能为空!`}),!1):(v.url=v.url.trim(),v.url===""?(ue({icon:"error",title:`第 ${b+1} 个记录的「链接」不能为空!`}),!1):(v.icon=v.icon.trim(),v.memo=v.memo.trim(),!0))):(ue({icon:"error",title:`第 ${b+1} 个记录的「唯一标识」错误!只能包含字母、数字、下划线。`}),!1)}async function d(){o.value.push(_t());}async function h(v,b){const{isConfirmed:_}=await he.fire({icon:"warning",html:`确定要删除第 ${b+1} 个记录「${v.label}」吗?`});_&&(o.value.splice(b,1),await l(),ue({icon:"success",title:`「${v.label}」已删除!`}));}async function y(v){const b=JSON.stringify(v,null,2),_=`ce-url-item-denifition-${v.key}`,{isConfirmed:R}=await he.fire({title:`「${v.label}」的定义`,html:`<h3>${v.memo}</h3>
      <pre id="${_}" style="text-align:left;font-size:12px;"></pre>`,confirmButtonText:"复制",showCancelButton:!0,position:"top-left",heightAuto:!0,didOpen:()=>{document.getElementById(_).innerText=b;}});R&&(navigator.clipboard.writeText(b),ue({icon:"success",title:"已复制到剪贴板!"}));}return (v,b)=>(A(),T("div",zT,[c("form",qT,[c("fieldset",null,[b[1]||(b[1]=c("span",{class:"ce-label ce-label-primary"},"默认播放菜单: ",-1)),b[2]||(b[2]=U("   ")),ae(c("select",{"onUpdate:modelValue":b[0]||(b[0]=_=>r.value=_)},[(A(!0),T(De,null,Ge(a.value,(_,R)=>(A(),T("option",{key:R,value:_.key},G(_.label),9,VT))),128))],512),[[gn,r.value]])])]),c("h1",null,[b[3]||(b[3]=U("预置播放菜单 ")),ae(c("small",null,"( "+G(s.value.length)+" )",513),[[Nt,s.value.length]])]),b[8]||(b[8]=c("div",{class:"ce-tips"},[c("p",null,[U("支持常见的视频、音频和图片格式,也支持目录播放。预置播放菜单使用的链接变量是 "),c("b",null,"{clouddrive_stream_url}"),U(" , 会根据文件或目录自动使用相应的链接。")]),c("p",null,"播放功能依赖CloudDrive,请先在「CloudDrive」设置面板中进行配置。")],-1)),c("div",KT,[c("form",WT,[c("fieldset",null,[(A(!0),T(De,null,Ge(s.value,(_,R)=>(A(),T("div",{key:R,class:"pure-control-group"},[_.icon?(A(),T("span",GT,[c("img",{src:_.icon,referrerpolicy:"no-referrer",width:"25"},null,8,JT)])):we("",!0),c("label",{for:`builtin_${_.key}`},G(_.label),9,YT),ae(c("input",{id:`builtin_${_.key}`,type:"checkbox","onUpdate:modelValue":L=>_.enabled=L},null,8,QT),[[Ve,_.enabled]]),b[4]||(b[4]=U("      ")),c("span",XT,G(_.memo),1),b[5]||(b[5]=U("      ")),c("button",{type:"button",class:"pure-button button-small",onClick:L=>y(_)},"查看定义",8,ZT),_.extraMemo?(A(),T("span",{key:1,innerHTML:_.extraMemo,class:"extra-memo"},null,8,eO)):we("",!0)]))),128))])])]),c("h1",null,[b[6]||(b[6]=U("自定义播放菜单 ")),ae(c("small",null,"( "+G(o.value.length)+" )",513),[[Nt,o.value.length]])]),c("div",tO,[(A(!0),T(De,null,Ge(o.value,(_,R)=>(A(),ot(Em,{key:R,item:_,index:R,onDelete:L=>h(_,R)},null,8,["item","index","onDelete"]))),128))]),b[9]||(b[9]=c("div",{class:"ce-tips"}," 编辑后,请记得点击「保存自定义播放菜单」。 ",-1)),c("div",nO,[c("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:l,disabled:!o.value.length}," 保存自定义播放菜单 ",8,sO),b[7]||(b[7]=U("      ")),c("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:d}," 添加自定义播放菜单 ")])]))}}),iO=je(oO,[["__file","PlayUrls.vue"]]),Am=yt.anxia,Pm={"3G":"标清",SD:"高清",HD:"超清",UD:"1080P",BD:"4K",YH:"原画"};function rO(e){return {defaultWebFull:!1,defaultOpenPlayList:!1,defaultDefinition:"",...e}}async function Im(){const e=rO(),t=await dt.get(Am,e);return {...e,...t}}async function aO(e){await dt.set(Am,e);}const lO={class:"ce-config ce-anxia-config"},uO={class:"pure-form pure-form-aligned"},cO={class:"pure-control-group"},dO={class:"pure-control-group"},fO={class:"pure-control-group"},pO=["value"],hO=Be({__name:"Config",async setup(e){let t,n;const s=oe(([t,n]=rn(()=>Im()),t=await t,n(),t));return Dt(async()=>{}),ht(s,Ut(async o=>{await aO(o),ue({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:mt.listConfigChange,body:JSON.parse(JSON.stringify(o))});},500),{deep:!0}),(o,i)=>(A(),T("div",lO,[c("form",uO,[c("fieldset",null,[c("div",cO,[i[3]||(i[3]=c("label",{for:"defaultWebFull"},"自动网页全屏",-1)),ae(c("input",{id:"defaultWebFull",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>s.value.defaultWebFull=r)},null,512),[[Ve,s.value.defaultWebFull]]),i[4]||(i[4]=c("div",{class:"pure-form-message text-success"},[c("div",null,"进入播放页后自动使播放器网页全屏。")],-1))]),c("div",dO,[i[5]||(i[5]=c("label",{for:"defaultOpenPlayList"},"自动展开播放列表",-1)),ae(c("input",{id:"defaultOpenPlayList",type:"checkbox","onUpdate:modelValue":i[1]||(i[1]=r=>s.value.defaultOpenPlayList=r)},null,512),[[Ve,s.value.defaultOpenPlayList]]),i[6]||(i[6]=c("div",{class:"pure-form-message text-success"},[c("div",null,"进入播放页后自动展开播放列表。")],-1))]),c("div",fO,[i[8]||(i[8]=c("label",{for:"defaultDefinition"},"默认清晰度",-1)),ae(c("select",{id:"defaultDefinition","onUpdate:modelValue":i[2]||(i[2]=r=>s.value.defaultDefinition=r)},[i[7]||(i[7]=c("option",{value:""},"官方默认",-1)),(A(!0),T(De,null,Ge(fe(Pm),(r,a)=>(A(),T("option",{key:a,value:a},G(r),9,pO))),128))],512),[[gn,s.value.defaultDefinition]]),i[9]||(i[9]=c("div",{class:"pure-form-message text-success"},[c("div",{class:"text-warning"},"如果没有该清晰度,则会使用官方默认。")],-1))])])])]))}}),mO=je(hO,[["__file","Config.vue"]]);var gO={name:"115不大助手",version:"0.7.17",author:{name:"生瓜太保",email:"mailme@miao.com"},greasyforkUrl:"https://greasyfork.org/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};const yO=Be({__name:"FeedbackButton",setup(e){const t=gO,n=vw;function s(){let i=`脚本: ${t.name} - v${t.version}
`;return i+=`TM: ${n.version}
`,i+=`UA: ${navigator.userAgent}
`,i+=`我在使用脚本的 xxxxxx 功能时,出现了问题,希望你能帮我解决。
`,i+=`复现步骤: xxxxxx
`,i+=`问题截图: 
`,i}function o(){let i=s();er(i,"text/plain"),ue({icon:"success",text:"已复制反馈模版,请添加详细的描述以便排查和解决问题。"});}return (i,r)=>(A(),T("button",{type:"button",class:"pure-button pure-button-success",onClick:o}," 复制反馈模版 "))}}),wO=je(yO,[["__file","FeedbackButton.vue"]]);var bO={name:"115不大助手",version:"0.7.17",author:{name:"生瓜太保",email:"mailme@miao.com"},greasyforkUrl:"https://greasyfork.org/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};const vO={class:"ce-about"},_O=["href"],xO=Be({__name:"About",setup(e){const t=bO;return (n,s)=>(A(),T("div",vO,[s[1]||(s[1]=c("p",null,"115不大助手(以下简称「脚本」),是一个仅用于学习编程的小脚本。",-1)),s[2]||(s[2]=c("br",null,null,-1)),s[3]||(s[3]=c("p",null,"脚本不会收集您的任何个人信息。",-1)),s[4]||(s[4]=c("p",null,"脚本仅借助了官方已有的功能,无任何破解行为。",-1)),s[5]||(s[5]=c("p",null,"脚本代码本身已包含全部依赖,无任何远程引用。",-1)),s[6]||(s[6]=c("br",null,null,-1)),s[7]||(s[7]=c("br",null,null,-1)),s[8]||(s[8]=c("br",null,null,-1)),c("div",null,[ge(wO)]),s[9]||(s[9]=c("br",null,null,-1)),s[10]||(s[10]=c("hr",{class:"ce-hr"},null,-1)),c("div",null,[c("a",{href:fe(t).greasyforkUrl,class:"text-bold text-primary",target:"_blank",rel:"noreferrer noopener",title:"到Greasyfork查看"},[U(G(fe(t).name)+" ",1),c("small",null,"v"+G(fe(t).version),1)],8,_O),s[0]||(s[0]=U("  ")),c("small",null,"by "+G(fe(t).author.name),1)])]))}}),CO=je(xO,[["__file","About.vue"]]);var kO={name:"115不大助手",version:"0.7.17",author:{name:"生瓜太保",email:"mailme@miao.com"},greasyforkUrl:"https://greasyfork.org/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};const $O={class:"ce-config-main"},SO={class:"ce-config-main-header"},EO={class:"ce-intro"},AO=["href"],PO={class:"ce-config-main-body"},IO=Be({__name:"Config",setup(e){const t=kO,n=oe(!1),s=oe(!1),o=oe();qt(async()=>{window.addEventListener("message",u=>{const{event:d,body:h}=u.data;d===mt.openConfig&&(n.value||(n.value=!0),i(h)),d===mt.closeConfig&&r();},!1);});async function i(u){var d;s.value=!0,console.log("[openDrawer]",u),u&&(await Hs(),(d=o.value)==null||d.selectTab(`#${u}`));}async function r(){s.value=!1;}async function a(...u){console.log("[tabClicked]",u);}async function l(...u){console.log("[tabChanged]",u);}return (u,d)=>(A(),ot(Rp,null,{default:Re(()=>[c("div",$O,[ge(hi,{"is-open":s.value,onClose:r,"max-width":"1100px",speed:500},{default:Re(()=>[c("div",SO,[d[1]||(d[1]=c("h1",null,"设置",-1)),c("span",EO,[c("a",{href:fe(t).greasyforkUrl,class:"text-bold text-primary",target:"_blank",rel:"noreferrer noopener",title:"到Greasyfork查看"},[U(G(fe(t).name)+" ",1),c("small",null,"v"+G(fe(t).version),1)],8,AO),d[0]||(d[0]=U("  ")),c("small",null,"by "+G(fe(t).author.name),1)]),c("div",{class:"ce-config-main-close",onClick:r},"关闭")]),c("div",PO,[ge(fe(SA),{ref_key:"refTabs",ref:o,options:{useUrlFragment:!1},onClicked:a,onChanged:l},{default:Re(()=>[ge(fe(bn),{id:fe(Wt).basic,name:fe(yn).basic},{default:Re(()=>[ge(KA)]),_:1},8,["id","name"]),ge(fe(bn),{id:fe(Wt).clouddrive,name:fe(yn).clouddrive},{default:Re(()=>[ge(aP)]),_:1},8,["id","name"]),ge(fe(bn),{id:fe(Wt).list,name:fe(yn).list},{default:Re(()=>[ge(xP)]),_:1},8,["id","name"]),ge(fe(bn),{id:fe(Wt).search,name:fe(yn).search},{default:Re(()=>[ge(TP)]),_:1},8,["id","name"]),ge(fe(bn),{id:fe(Wt).menus,name:fe(yn).menus},{default:Re(()=>[ge(hT)]),_:1},8,["id","name"]),ge(fe(bn),{id:fe(Wt).searchMenus,name:fe(yn).searchMenus},{default:Re(()=>[ge(HT)]),_:1},8,["id","name"]),ge(fe(bn),{id:fe(Wt).playMenus,name:fe(yn).playMenus},{default:Re(()=>[ge(iO)]),_:1},8,["id","name"]),ge(fe(bn),{id:fe(Wt).offline,name:fe(yn).offline},{default:Re(()=>[ge(lh)]),_:1},8,["id","name"]),ge(fe(bn),{id:fe(Wt).tools,name:fe(yn).tools},{default:Re(()=>[ge(yI)]),_:1},8,["id","name"]),ge(fe(bn),{id:fe(Wt).anxia,name:fe(yn).anxia},{default:Re(()=>[ge(mO)]),_:1},8,["id","name"]),ge(fe(bn),{id:fe(Wt).about,name:fe(yn).about},{default:Re(()=>[ge(CO)]),_:1},8,["id","name"])]),_:1},512)])]),_:1},8,["is-open"])])]),_:1}))}}),TO=je(IO,[["__file","Config.vue"]]);var yi={name:"115不大助手",version:"0.7.17",author:{name:"生瓜太保",email:"mailme@miao.com"},greasyforkUrl:"https://greasyfork.org/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};async function OO(){if(window!==window.parent)return;new MutationObserver(async([t])=>{t.type==="childList"&&window.postMessage({event:mt.topDomChanged});}).observe(document.body,{childList:!0});}async function DO(){const e=document.querySelector(".bottom-side .navigation-ceiling ul");if(!e){RO();return}const t=document.createElement("li"),n=document.createElement("a");n.href="javascript:;",n.style.textAlign="center",n.style.backgroundColor="#fefcea",n.style.padding="4px 10px 4px",n.addEventListener("click",async s=>{await br();}),n.title=`打开「${yi.name}」设置`,n.innerHTML='<i class="isn-setting"></i><span>不大助手</span>',t.appendChild(n),e.insertBefore(t,e.firstChild);}async function MO(){return !!document.querySelector("#js-login-box")}async function LO(){console.log("[handleLoginPage]"),await MO()&&(document.body.classList.add("ce-login-page"),BO());}async function BO(){console.log("[injectOpenConfigButtonOnLoginPage");const e=document.querySelector(".right-side a");if(!e){console.warn("[injectOpenConfigButtonOnLoginPage] '.right-side a' not found");return}const t=document.createElement("a");t.href="javascript:;",t.className="ce-entry",t.addEventListener("click",async s=>{await br();}),t.title=`打开「${yi.name}」设置`,t.innerHTML=`<i class="isn-setting"></i><span>${yi.name}</span>`,e.insertAdjacentElement("beforebegin",t);const n=document.createElement("a");n.href="javascript:;",n.className="ce-entry",n.addEventListener("click",async s=>{await br(Wt.tools);}),n.title="打开扫码获取Cookie",n.innerHTML='<i class="isn-scan"></i><span>扫码获取Cookie</span>',e.insertAdjacentElement("beforebegin",n);}async function RO(){const e=document.querySelector(".sub-footer ul");if(!e)return;const t=document.createElement("li"),n=document.createElement("a");n.href="javascript:;",n.addEventListener("click",async s=>{await br();}),n.title=`打开「${yi.name}」设置`,n.innerHTML=`<i class="isn-setting"></i><span>${yi.name}</span>`,t.appendChild(n),e.insertBefore(t,e.firstChild);}async function br(e){window.postMessage({event:mt.openConfig,body:e});}async function NO(){const{host:e}=location;e.includes("115.com")&&window.top===window.self&&(console.log("[Cloud115 Enhancer - main] running..."),FO(),DO(),OO());}async function FO(){console.log("[Cloud115 Enhancer - main] injectUI");const e="cloud115ConfigMain",t=document.createElement("div");t.id=e,document.body.appendChild(t),qn(TO).mount(`#${e}`),Zi("设置",async()=>{window.postMessage({event:mt.openConfig});}),Zi("扫码获取Cookie",async()=>{window.postMessage({event:mt.openConfig,body:Wt.tools});}),LO();}async function UO(){if(window!==window.top)return;async function e(t){var s,o;const n=pn();n&&((o=(s=n.Core)==null?void 0:s.FileConfig)!=null&&o.DataAPI)&&t(!0);}try{return await ys(e,250,3e4)}catch(t){throw new Error(`awaitDataAPI failed:${t.toString()}`)}}async function jO(e){var a;if(!e.showOnlyFileFilter)return;const t=bs(),n=vs();if(!t&&!n)return;console.log("[List] injectToListFilter",e,t,n);const s=vn.file,o=Qt(`
    <a href="javascript:;" menu="filter" val="${s}">
      <i class="iofl-max"></i><span>仅文件</span>
    </a>
  `),r=await $t(t?'#js_filter_box a[val="other"]':'#js_search_filter_popup a[val="other"]');(a=r.parentNode)==null||a.insertBefore(o,r);}async function HO(e){if(window!==window.top||!e.followHistoryState)return;const t=async n=>{const s=Ul("cid"),o=await jt(!1);s!==o&&pn().wangpan.Main.Action.Handlers.GotoDir({cid:s});};window.addEventListener("popstate",t);}async function zO(e){const t=document.querySelector("div#js_data_list");t==null||t.addEventListener("mousedown",n=>{n.target.classList.contains("ce-inj")&&n.stopPropagation();});}function Qn(e){return Array.isArray?Array.isArray(e):Dm(e)==="[object Array]"}const qO=1/0;function VO(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-qO?"-0":t}function KO(e){return e==null?"":VO(e)}function Ln(e){return typeof e=="string"}function Tm(e){return typeof e=="number"}function WO(e){return e===!0||e===!1||GO(e)&&Dm(e)=="[object Boolean]"}function Om(e){return typeof e=="object"}function GO(e){return Om(e)&&e!==null}function nn(e){return e!=null}function ja(e){return !e.trim().length}function Dm(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const JO="Incorrect 'index' type",YO=e=>`Invalid value for key ${e}`,QO=e=>`Pattern length exceeds max of ${e}.`,XO=e=>`Missing ${e} property in key`,ZO=e=>`Property 'weight' in key '${e}' must be a positive integer`,jd=Object.prototype.hasOwnProperty;class eD{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(s=>{let o=Mm(s);this._keys.push(o),this._keyMap[o.id]=o,n+=o.weight;}),this._keys.forEach(s=>{s.weight/=n;});}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Mm(e){let t=null,n=null,s=null,o=1,i=null;if(Ln(e)||Qn(e))s=e,t=Hd(e),n=Sl(e);else {if(!jd.call(e,"name"))throw new Error(XO("name"));const r=e.name;if(s=r,jd.call(e,"weight")&&(o=e.weight,o<=0))throw new Error(ZO(r));t=Hd(r),n=Sl(r),i=e.getFn;}return {path:t,id:n,weight:o,src:s,getFn:i}}function Hd(e){return Qn(e)?e:e.split(".")}function Sl(e){return Qn(e)?e.join("."):e}function tD(e,t){let n=[],s=!1;const o=(i,r,a)=>{if(nn(i))if(!r[a])n.push(i);else {let l=r[a];const u=i[l];if(!nn(u))return;if(a===r.length-1&&(Ln(u)||Tm(u)||WO(u)))n.push(KO(u));else if(Qn(u)){s=!0;for(let d=0,h=u.length;d<h;d+=1)o(u[d],r,a+1);}else r.length&&o(u,r,a+1);}};return o(e,Ln(t)?t.split("."):t,0),s?n:n[0]}const nD={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},sD={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},oD={location:0,threshold:.6,distance:100},iD={useExtendedSearch:!1,getFn:tD,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Ue={...sD,...nD,...oD,...iD};const rD=/[^ ]+/g;function aD(e=1,t=3){const n=new Map,s=Math.pow(10,t);return {get(o){const i=o.match(rD).length;if(n.has(i))return n.get(i);const r=1/Math.pow(i,.5*e),a=parseFloat(Math.round(r*s)/s);return n.set(i,a),a},clear(){n.clear();}}}class Au{constructor({getFn:t=Ue.getFn,fieldNormWeight:n=Ue.fieldNormWeight}={}){this.norm=aD(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords();}setSources(t=[]){this.docs=t;}setIndexRecords(t=[]){this.records=t;}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,s)=>{this._keysMap[n.id]=s;});}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Ln(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n);}):this.docs.forEach((t,n)=>{this._addObject(t,n);}),this.norm.clear());}add(t){const n=this.size();Ln(t)?this._addString(t,n):this._addObject(t,n);}removeAt(t){this.records.splice(t,1);for(let n=t,s=this.size();n<s;n+=1)this.records[n].i-=1;}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!nn(t)||ja(t))return;let s={v:t,i:n,n:this.norm.get(t)};this.records.push(s);}_addObject(t,n){let s={i:n,$:{}};this.keys.forEach((o,i)=>{let r=o.getFn?o.getFn(t):this.getFn(t,o.path);if(nn(r)){if(Qn(r)){let a=[];const l=[{nestedArrIndex:-1,value:r}];for(;l.length;){const{nestedArrIndex:u,value:d}=l.pop();if(nn(d))if(Ln(d)&&!ja(d)){let h={v:d,i:u,n:this.norm.get(d)};a.push(h);}else Qn(d)&&d.forEach((h,y)=>{l.push({nestedArrIndex:y,value:h});});}s.$[i]=a;}else if(Ln(r)&&!ja(r)){let a={v:r,n:this.norm.get(r)};s.$[i]=a;}}}),this.records.push(s);}toJSON(){return {keys:this.keys,records:this.records}}}function Lm(e,t,{getFn:n=Ue.getFn,fieldNormWeight:s=Ue.fieldNormWeight}={}){const o=new Au({getFn:n,fieldNormWeight:s});return o.setKeys(e.map(Mm)),o.setSources(t),o.create(),o}function lD(e,{getFn:t=Ue.getFn,fieldNormWeight:n=Ue.fieldNormWeight}={}){const{keys:s,records:o}=e,i=new Au({getFn:t,fieldNormWeight:n});return i.setKeys(s),i.setIndexRecords(o),i}function Hi(e,{errors:t=0,currentLocation:n=0,expectedLocation:s=0,distance:o=Ue.distance,ignoreLocation:i=Ue.ignoreLocation}={}){const r=t/e.length;if(i)return r;const a=Math.abs(s-n);return o?r+a/o:a?1:r}function uD(e=[],t=Ue.minMatchCharLength){let n=[],s=-1,o=-1,i=0;for(let r=e.length;i<r;i+=1){let a=e[i];a&&s===-1?s=i:!a&&s!==-1&&(o=i-1,o-s+1>=t&&n.push([s,o]),s=-1);}return e[i-1]&&i-s>=t&&n.push([s,i-1]),n}const Ds=32;function cD(e,t,n,{location:s=Ue.location,distance:o=Ue.distance,threshold:i=Ue.threshold,findAllMatches:r=Ue.findAllMatches,minMatchCharLength:a=Ue.minMatchCharLength,includeMatches:l=Ue.includeMatches,ignoreLocation:u=Ue.ignoreLocation}={}){if(t.length>Ds)throw new Error(QO(Ds));const d=t.length,h=e.length,y=Math.max(0,Math.min(s,h));let v=i,b=y;const _=a>1||l,R=_?Array(h):[];let L;for(;(L=e.indexOf(t,b))>-1;){let K=Hi(t,{currentLocation:L,expectedLocation:y,distance:o,ignoreLocation:u});if(v=Math.min(K,v),b=L+d,_){let de=0;for(;de<d;)R[L+de]=1,de+=1;}}b=-1;let N=[],D=1,B=d+h;const F=1<<d-1;for(let K=0;K<d;K+=1){let de=0,be=B;for(;de<be;)Hi(t,{errors:K,currentLocation:y+be,expectedLocation:y,distance:o,ignoreLocation:u})<=v?de=be:B=be,be=Math.floor((B-de)/2+de);B=be;let _e=Math.max(1,y-be+1),pe=r?h:Math.min(y+be,h)+d,S=Array(pe+2);S[pe+1]=(1<<K)-1;for(let Z=pe;Z>=_e;Z-=1){let xe=Z-1,ye=n[e.charAt(xe)];if(_&&(R[xe]=+!!ye),S[Z]=(S[Z+1]<<1|1)&ye,K&&(S[Z]|=(N[Z+1]|N[Z])<<1|1|N[Z+1]),S[Z]&F&&(D=Hi(t,{errors:K,currentLocation:xe,expectedLocation:y,distance:o,ignoreLocation:u}),D<=v)){if(v=D,b=xe,b<=y)break;_e=Math.max(1,2*y-b);}}if(Hi(t,{errors:K+1,currentLocation:y,expectedLocation:y,distance:o,ignoreLocation:u})>v)break;N=S;}const j={isMatch:b>=0,score:Math.max(.001,D)};if(_){const K=uD(R,a);K.length?l&&(j.indices=K):j.isMatch=!1;}return j}function dD(e){let t={};for(let n=0,s=e.length;n<s;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<s-n-1;}return t}class Bm{constructor(t,{location:n=Ue.location,threshold:s=Ue.threshold,distance:o=Ue.distance,includeMatches:i=Ue.includeMatches,findAllMatches:r=Ue.findAllMatches,minMatchCharLength:a=Ue.minMatchCharLength,isCaseSensitive:l=Ue.isCaseSensitive,ignoreLocation:u=Ue.ignoreLocation}={}){if(this.options={location:n,threshold:s,distance:o,includeMatches:i,findAllMatches:r,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:u},this.pattern=l?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const d=(y,v)=>{this.chunks.push({pattern:y,alphabet:dD(y),startIndex:v});},h=this.pattern.length;if(h>Ds){let y=0;const v=h%Ds,b=h-v;for(;y<b;)d(this.pattern.substr(y,Ds),y),y+=Ds;if(v){const _=h-Ds;d(this.pattern.substr(_),_);}}else d(this.pattern,0);}searchIn(t){const{isCaseSensitive:n,includeMatches:s}=this.options;if(n||(t=t.toLowerCase()),this.pattern===t){let b={isMatch:!0,score:0};return s&&(b.indices=[[0,t.length-1]]),b}const{location:o,distance:i,threshold:r,findAllMatches:a,minMatchCharLength:l,ignoreLocation:u}=this.options;let d=[],h=0,y=!1;this.chunks.forEach(({pattern:b,alphabet:_,startIndex:R})=>{const{isMatch:L,score:N,indices:D}=cD(t,b,_,{location:o+R,distance:i,threshold:r,findAllMatches:a,minMatchCharLength:l,includeMatches:s,ignoreLocation:u});L&&(y=!0),h+=N,L&&D&&(d=[...d,...D]);});let v={isMatch:y,score:y?h/this.chunks.length:1};return y&&s&&(v.indices=d),v}}class ks{constructor(t){this.pattern=t;}static isMultiMatch(t){return zd(t,this.multiRegex)}static isSingleMatch(t){return zd(t,this.singleRegex)}search(){}}function zd(e,t){const n=e.match(t);return n?n[1]:null}class fD extends ks{constructor(t){super(t);}static get type(){return "exact"}static get multiRegex(){return /^="(.*)"$/}static get singleRegex(){return /^=(.*)$/}search(t){const n=t===this.pattern;return {isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class pD extends ks{constructor(t){super(t);}static get type(){return "inverse-exact"}static get multiRegex(){return /^!"(.*)"$/}static get singleRegex(){return /^!(.*)$/}search(t){const s=t.indexOf(this.pattern)===-1;return {isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class hD extends ks{constructor(t){super(t);}static get type(){return "prefix-exact"}static get multiRegex(){return /^\^"(.*)"$/}static get singleRegex(){return /^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return {isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class mD extends ks{constructor(t){super(t);}static get type(){return "inverse-prefix-exact"}static get multiRegex(){return /^!\^"(.*)"$/}static get singleRegex(){return /^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return {isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class gD extends ks{constructor(t){super(t);}static get type(){return "suffix-exact"}static get multiRegex(){return /^"(.*)"\$$/}static get singleRegex(){return /^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return {isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class yD extends ks{constructor(t){super(t);}static get type(){return "inverse-suffix-exact"}static get multiRegex(){return /^!"(.*)"\$$/}static get singleRegex(){return /^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return {isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Rm extends ks{constructor(t,{location:n=Ue.location,threshold:s=Ue.threshold,distance:o=Ue.distance,includeMatches:i=Ue.includeMatches,findAllMatches:r=Ue.findAllMatches,minMatchCharLength:a=Ue.minMatchCharLength,isCaseSensitive:l=Ue.isCaseSensitive,ignoreLocation:u=Ue.ignoreLocation}={}){super(t),this._bitapSearch=new Bm(t,{location:n,threshold:s,distance:o,includeMatches:i,findAllMatches:r,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:u});}static get type(){return "fuzzy"}static get multiRegex(){return /^"(.*)"$/}static get singleRegex(){return /^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Nm extends ks{constructor(t){super(t);}static get type(){return "include"}static get multiRegex(){return /^'"(.*)"$/}static get singleRegex(){return /^'(.*)$/}search(t){let n=0,s;const o=[],i=this.pattern.length;for(;(s=t.indexOf(this.pattern,n))>-1;)n=s+i,o.push([s,n-1]);const r=!!o.length;return {isMatch:r,score:r?0:1,indices:o}}}const El=[fD,Nm,hD,mD,yD,gD,pD,Rm],qd=El.length,wD=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,bD="|";function vD(e,t={}){return e.split(bD).map(n=>{let s=n.trim().split(wD).filter(i=>i&&!!i.trim()),o=[];for(let i=0,r=s.length;i<r;i+=1){const a=s[i];let l=!1,u=-1;for(;!l&&++u<qd;){const d=El[u];let h=d.isMultiMatch(a);h&&(o.push(new d(h,t)),l=!0);}if(!l)for(u=-1;++u<qd;){const d=El[u];let h=d.isSingleMatch(a);if(h){o.push(new d(h,t));break}}}return o})}const _D=new Set([Rm.type,Nm.type]);class xD{constructor(t,{isCaseSensitive:n=Ue.isCaseSensitive,includeMatches:s=Ue.includeMatches,minMatchCharLength:o=Ue.minMatchCharLength,ignoreLocation:i=Ue.ignoreLocation,findAllMatches:r=Ue.findAllMatches,location:a=Ue.location,threshold:l=Ue.threshold,distance:u=Ue.distance}={}){this.query=null,this.options={isCaseSensitive:n,includeMatches:s,minMatchCharLength:o,findAllMatches:r,ignoreLocation:i,location:a,threshold:l,distance:u},this.pattern=n?t:t.toLowerCase(),this.query=vD(this.pattern,this.options);}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return {isMatch:!1,score:1};const{includeMatches:s,isCaseSensitive:o}=this.options;t=o?t:t.toLowerCase();let i=0,r=[],a=0;for(let l=0,u=n.length;l<u;l+=1){const d=n[l];r.length=0,i=0;for(let h=0,y=d.length;h<y;h+=1){const v=d[h],{isMatch:b,indices:_,score:R}=v.search(t);if(b){if(i+=1,a+=R,s){const L=v.constructor.type;_D.has(L)?r=[...r,..._]:r.push(_);}}else {a=0,i=0,r.length=0;break}}if(i){let h={isMatch:!0,score:a/i};return s&&(h.indices=r),h}}return {isMatch:!1,score:1}}}const Al=[];function CD(...e){Al.push(...e);}function Pl(e,t){for(let n=0,s=Al.length;n<s;n+=1){let o=Al[n];if(o.condition(e,t))return new o(e,t)}return new Bm(e,t)}const vr={AND:"$and",OR:"$or"},Il={PATH:"$path",PATTERN:"$val"},Tl=e=>!!(e[vr.AND]||e[vr.OR]),kD=e=>!!e[Il.PATH],$D=e=>!Qn(e)&&Om(e)&&!Tl(e),Vd=e=>({[vr.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Fm(e,t,{auto:n=!0}={}){const s=o=>{let i=Object.keys(o);const r=kD(o);if(!r&&i.length>1&&!Tl(o))return s(Vd(o));if($D(o)){const l=r?o[Il.PATH]:i[0],u=r?o[Il.PATTERN]:o[l];if(!Ln(u))throw new Error(YO(l));const d={keyId:Sl(l),pattern:u};return n&&(d.searcher=Pl(u,t)),d}let a={children:[],operator:i[0]};return i.forEach(l=>{const u=o[l];Qn(u)&&u.forEach(d=>{a.children.push(s(d));});}),a};return Tl(e)||(e=Vd(e)),s(e)}function SD(e,{ignoreFieldNorm:t=Ue.ignoreFieldNorm}){e.forEach(n=>{let s=1;n.matches.forEach(({key:o,norm:i,score:r})=>{const a=o?o.weight:null;s*=Math.pow(r===0&&a?Number.EPSILON:r,(a||1)*(t?1:i));}),n.score=s;});}function ED(e,t){const n=e.matches;t.matches=[],nn(n)&&n.forEach(s=>{if(!nn(s.indices)||!s.indices.length)return;const{indices:o,value:i}=s;let r={indices:o,value:i};s.key&&(r.key=s.key.src),s.idx>-1&&(r.refIndex=s.idx),t.matches.push(r);});}function AD(e,t){t.score=e.score;}function PD(e,t,{includeMatches:n=Ue.includeMatches,includeScore:s=Ue.includeScore}={}){const o=[];return n&&o.push(ED),s&&o.push(AD),e.map(i=>{const{idx:r}=i,a={item:t[r],refIndex:r};return o.length&&o.forEach(l=>{l(i,a);}),a})}class To{constructor(t,n={},s){this.options={...Ue,...n},this.options.useExtendedSearch,this._keyStore=new eD(this.options.keys),this.setCollection(t,s);}setCollection(t,n){if(this._docs=t,n&&!(n instanceof Au))throw new Error(JO);this._myIndex=n||Lm(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight});}add(t){nn(t)&&(this._docs.push(t),this._myIndex.add(t));}remove(t=()=>!1){const n=[];for(let s=0,o=this._docs.length;s<o;s+=1){const i=this._docs[s];t(i,s)&&(this.removeAt(s),s-=1,o-=1,n.push(i));}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t);}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:s,includeScore:o,shouldSort:i,sortFn:r,ignoreFieldNorm:a}=this.options;let l=Ln(t)?Ln(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return SD(l,{ignoreFieldNorm:a}),i&&l.sort(r),Tm(n)&&n>-1&&(l=l.slice(0,n)),PD(l,this._docs,{includeMatches:s,includeScore:o})}_searchStringList(t){const n=Pl(t,this.options),{records:s}=this._myIndex,o=[];return s.forEach(({v:i,i:r,n:a})=>{if(!nn(i))return;const{isMatch:l,score:u,indices:d}=n.searchIn(i);l&&o.push({item:i,idx:r,matches:[{score:u,value:i,norm:a,indices:d}]});}),o}_searchLogical(t){const n=Fm(t,this.options),s=(a,l,u)=>{if(!a.children){const{keyId:h,searcher:y}=a,v=this._findMatches({key:this._keyStore.get(h),value:this._myIndex.getValueForItemAtKeyId(l,h),searcher:y});return v&&v.length?[{idx:u,item:l,matches:v}]:[]}const d=[];for(let h=0,y=a.children.length;h<y;h+=1){const v=a.children[h],b=s(v,l,u);if(b.length)d.push(...b);else if(a.operator===vr.AND)return []}return d},o=this._myIndex.records,i={},r=[];return o.forEach(({$:a,i:l})=>{if(nn(a)){let u=s(n,a,l);u.length&&(i[l]||(i[l]={idx:l,item:a,matches:[]},r.push(i[l])),u.forEach(({matches:d})=>{i[l].matches.push(...d);}));}}),r}_searchObjectList(t){const n=Pl(t,this.options),{keys:s,records:o}=this._myIndex,i=[];return o.forEach(({$:r,i:a})=>{if(!nn(r))return;let l=[];s.forEach((u,d)=>{l.push(...this._findMatches({key:u,value:r[d],searcher:n}));}),l.length&&i.push({idx:a,item:r,matches:l});}),i}_findMatches({key:t,value:n,searcher:s}){if(!nn(n))return [];let o=[];if(Qn(n))n.forEach(({v:i,i:r,n:a})=>{if(!nn(i))return;const{isMatch:l,score:u,indices:d}=s.searchIn(i);l&&o.push({score:u,key:t,value:i,idx:r,norm:a,indices:d});});else {const{v:i,n:r}=n,{isMatch:a,score:l,indices:u}=s.searchIn(i);a&&o.push({score:l,key:t,value:i,norm:r,indices:u});}return o}}To.version="7.0.0";To.createIndex=Lm;To.parseIndex=lD;To.config=Ue;To.parseQuery=Fm;CD(xD);const ID={class:"ce-goto-input-wrap"},TD=["disabled"],OD=["disabled"],DD={class:"ce-goto-sug"},MD=["onMousedown","sid"],LD={class:"ce-goto-sug-index"},BD={class:"ce-goto-sug-prefix"},RD={class:"ce-goto-sug-name"},ND=Be({__name:"GotoPath",setup(e){const t=oe(!1),n=oe(!1),s=oe(null),o=oe(null),i=oe(""),r=oe([]),a=oe(!1),l=it(()=>i.value.trim().length>0);let u="";qt(async()=>{var S;t.value=!0,(S=o.value)==null||S.focus(),window.addEventListener("message",async ee=>{if(ee.data.event===mt.listRendered){const xe=await jt(!1);xe!==u&&(r.value=[],await K(!1)),u=xe;}});});async function d(S){if(console.log("[handleKeydown]",S.key),df(S),S.key==="Enter"){B.value>-1?be():await _e(i.value);return}if(S.key==="Escape"){await pe();return}["ArrowUp","ArrowDown"].includes(S.key)?F(S):h(S);}const h=Ut(async S=>{y();},200);async function y(){try{r.value=[],await K(!1);const S={keyword:"",parentId:await jt(!1),parentPath:await Ka(),isSubOfCurrent:!0};console.log("[getSug] searchData:",S);const ee=await N(S,!1);if(console.log("[searchData] items:",ee),!ee.length){ue({icon:"warning",text:"没有匹配的建议",timer:1500,position:"top-right"});return}const Z=await v(ee,S);console.log("[searchData] sugs:",Z),r.value=Z,B.value=-1,await K(Z.length>0);}catch(S){console.warn(S),await K(!1),ue({icon:"error",text:S.toString(),timer:2e3,position:"top-right"});}}async function v(S,ee){const Z=[];for(let Ee=0;Ee<S.length;Ee++){const Ke=S[Ee];Z.push({id:Ke.id,prefix:ee.parentPath==="/"?"":ee.parentPath,name:Ke.name,active:!1});}const xe=i.value.trim();if(!xe)return Z;const ye=/^(\.\/)?[^\/]+/.test(xe),Pe=Va(xe,"../");if(console.log("[toSug] isSubOfCurrent:",ye,"kwParentPath:",Pe),ye||Pe===ee.parentPath){const Ee=new To(Z,{keys:["name"],threshold:.6,includeScore:!0});let Ke=xe;if(Pe===ee.parentPath){const M=xe.split(/[\\/]/).filter(Boolean);Ke=M[M.length-1];}const Ze=Ee.search(Ke);console.log("[toSug] fuse res:",Ze);let ve=!1;return Ze.forEach(M=>{M.score===void 0?(console.warn("[toSug] r.score is undefined:",M),ve=!0,M.score=0):M.score!==void 0&&isNaN(M.score)&&(console.warn("[toSug] r.score is NaN:",M),ve=!0,M.score=0);}),ve&&Ze.sort((M,Ne)=>M.score-Ne.score),Ze.map(M=>M.item)}return Z}const b=new Map,_=new Map;async function R(S){return b.get(S)||!1}async function L(S,ee){b.set(S,ee);}async function N(S,ee){const Z=_.get(S.parentPath);if(Z)return console.log(`[getSubDirs] path "${S.parentPath}" is cached`),Z.items;if(await R(S.parentPath))return console.warn(`[getSubDirs] path "${S.parentPath}" is loading`),[];await L(S.parentPath,!0);try{const xe=Ms({cid:S.parentId,limit:1150,show_dir:Rl.true}),ye=await $f(xe);if(!ye.count)return [];const Pe=[];for(let Ee=0;Ee<ye.data.length;Ee++){const Ke=Ws(ye.data[Ee]);Ke.isDir&&Pe.push(Ke);}return _.set(S.parentPath,{count:Pe.length,dirPath:S.parentPath,dirId:S.parentId,items:Pe}),Pe}catch(xe){console.warn(xe);}finally{await L(S.parentPath,!1);}return []}async function D(S,ee){console.log("[handleSugClick]",S,ee);const Z=tr([S.prefix,S.name]);console.log("[handleSugClick] path:",Z),await _e(Z);}const B=oe(-1);async function F(S){var ye;console.log("[navigateSug]",S.key),S.preventDefault(),S.stopPropagation();let ee=B.value;if(S.key==="ArrowUp")ee--;else if(S.key==="ArrowDown")ee++;else if(S.key==="Enter"){const Pe=r.value[B.value];Pe&&await D(Pe,S);return}else return;ee<0?ee=0:ee>=r.value.length&&(ee=r.value.length-1),B.value=ee,r.value.forEach((Pe,Ee)=>{Pe.active=Ee===ee;});const Z=r.value[ee];if(!Z)return;const xe=(ye=s.value)==null?void 0:ye.querySelector(`[sid="${Z.id}"]`);xe==null||xe.scrollIntoView();}async function j(){var S;i.value="",(S=o.value)==null||S.focus(),await y();}async function K(S){var ee;a.value=S,S&&((ee=o.value)==null||ee.focus());}async function de(S){if(qw(S))return "0";const ee=await Ka();return S=$r(S,ls.unix),S=Va(ee,S,ls.unix),await oo(S,!0)}async function be(){const S=r.value[B.value];if(!S)return;const ee=tr([S.prefix,S.name],ls.unix);console.log("[gotoByCurrentSug] path:",ee),await _e(ee);}async function _e(S){var ee;if(!n.value){S=S.trim(),ue({text:"正在获取路径信息...",timer:0,position:"top-right"}),he.showLoading(),n.value=!0;try{const Z=await de(S);unsafeWindow.Main.GotoDir(1,Z,0,""),ue({icon:"success",text:"获取路径信息成功,现在打开...",timer:1e3,position:"top-right"}),(ee=o.value)==null||ee.focus(),r.value=[],B.value=-1;}catch(Z){he.fire({icon:"error",title:"跳转失败",text:Z.message});}finally{he.hideLoading(),n.value=!1;}}}async function pe(){if(B.value>-1)r.value.forEach(S=>S.active=!1),B.value=-1,await K(!1);else {const S=document.querySelector("#ceGotoPathApp");S==null||S.style.setProperty("display","none");const ee=document.querySelector(".ce-goto-path-active");ee==null||ee.classList.remove("ce-goto-path-active"),t.value=!1;}}return (S,ee)=>(A(),T("div",{ref_key:"refMain",ref:s,class:He(["ce-goto-main",{"ce-goto-sug-shown":a.value}])},[c("div",ID,[ae(c("input",{ref_key:"refInput",ref:o,"onUpdate:modelValue":ee[0]||(ee[0]=Z=>i.value=Z),class:"ce-goto-input",placeholder:"回车确认跳转 | Esc关闭 | 可搜索当前目录的子目录显示下拉列表,上下方向键选择",onKeydown:d},null,544),[[Ye,i.value]]),c("button",{type:"button",class:"ce-goto-input-btn","data-cmd":"clear",onClick:j,title:"清空输入框",disabled:!l.value},"清空",8,TD),c("button",{type:"button",class:"ce-goto-input-btn","data-cmd":"toggle",onClick:ee[1]||(ee[1]=Z=>K(!1)),title:"收起建议列表",disabled:!a.value},"收起",8,OD)]),c("div",DD,[(A(!0),T(De,null,Ge(r.value,(Z,xe)=>(A(),T("div",{key:xe,class:He(["ce-goto-sug-item",{active:Z.active}]),onMousedown:ln(ye=>D(Z,ye),["left","stop","prevent"]),sid:Z.id},[c("span",LD,G(xe+1),1),c("span",BD,G(Z.prefix),1),ee[2]||(ee[2]=c("span",{class:"ce-goto-sep"},"/",-1)),c("span",RD,G(Z.name),1)],42,MD))),128))])],2))}}),FD=je(ND,[["__file","GotoPath.vue"]]);async function UD(e){if(!bs())return;const t=await $t("#js_top_header_file_path_box");e.showGotoButtonOnPathBar&&HD(e,t),e.showCopyButtonOnPathBar&&jD(e,t);}async function jD(e,t){const n="ceCopyPath";let s=t.querySelector(`#${n}`);const o=async()=>{const r=await Ka();Ht(r),ue({icon:"success",text:"路径已复制",timer:1e3,position:"top-right"});};s||(s=await(async()=>{const r=Qt(`<button class="pure-button button-mini ce-path-btn" id="${n}" title="复制路径">
        <span>复制</span>
      </button>`);return r.addEventListener("click",o),r})(),t.prepend(s));}async function HD(e,t){const n=t.querySelector(".top-file-path"),s="ceGotoPath";let o=t.querySelector(`#${s}`);const i=qn(FD),r="ceGotoPathApp",a=async()=>{await l();},l=async()=>{if(t.classList.toggle("ce-goto-path-active"),t.classList.contains("ce-goto-path-active"))await u();else {const y=t.querySelector(`#${r}`);y&&(y.style.display="none");}},u=async()=>{let y=t.querySelector(`#${r}`);y||(y=await h(),n.after(y)),y.querySelector(".ce-goto-main")?setTimeout(()=>{const b=document.querySelector(".ce-goto-input");b==null||b.focus();},200):i.mount(y),y.style.display="block";},d=async()=>{const y=document.createElement("button");return y.className="pure-button button-mini ce-path-btn text-primary",y.id=s,y.title=`
      【这是一个实验功能】
      跳转到指定路径。使用:
      - 空白、单个斜杠: 根目录
      - 相对路径1: 开头不带斜杠,当前目录下的子路径
      - 相对路径2: 开头带有../,当前目录的上级目录,可以多级
      - 绝对路径: 开头带有斜杠,从根目录开始的路径

      斜杠风格不限,支持模糊搜索当前目录的子目录。
      回车键跳转,Esc键关闭输入框。`,y.innerHTML="<span>跳转</span>",y.addEventListener("click",a),y},h=async()=>Qt(`<div id="${r}" style="width: 50%"/>`);o||(o=await d(),t.prepend(o));}async function zD(e){const{fileSelectorDefaultView:t}=e;t&&(console.log("[setSelectorView]",t),unsafeWindow.localStorage.setItem("FS_view",t));}async function qD(e){if(!e.noUpdateDirAfterRename||window!==window.top)return;let t=!0,n="",s=!1;const o=pn(),i=Core.FileReNameDG.Show,r=o.Core.Dir.Rename,a=o.Core.FileConfig.DataAPI.UpdateDir;o.Core.FileReNameDG.Show=async(...l)=>{n=l[0],s=!0,i(...l);},o.Core.Dir.Rename=async(...l)=>{n=l[1],s=!1,r(...l);},o.Core.FileConfig.DataAPI.UpdateDir=async l=>{if(t){const u=await bi();let d=`li[file_id="${n}"]`;s||(d=`li[cate_id="${n}"]`);const h=u.find(d);if(h.length){if(h.hasClass("ce-temp-cur-dir")){console.warn("[list handleNoUpdateDirAfterRename] $file is ce-temp-cur-dir"),ue({icon:"warning",text:"重命名的是当前目录,忽略「重命名后不刷新列表」选项"}),a(l);return}if(ue({icon:"info",text:"启用了「重命名后不刷新列表」选项,不会刷新文件列表"}),h.find(".file-modified span").text("刚刚"),!s){const y=await At(n),{file_name:v}=y;h.attr("cate_name",v),h.attr("title",v);const b=h.find(".file-name a.name");b.length?(b.attr("title",v).text(v),b.text(v)):console.warn("[list handleNoUpdateDirAfterRename] $name not found");}}else console.warn("[list handleNoUpdateDirAfterRename] $file not found");}else a(l);},window.addEventListener("message",async l=>{var d;if(l.data.event===mt.topDomChanged){const h=document.querySelector("div.dialog-box.window-current > div.dialog-header > h3");if(h&&((d=h.textContent)!=null&&d.includes("重命名"))){const y=document.querySelector("div.dialog-box.window-current .file-rename");if(!y){console.warn("[list handleNoUpdateDirAfterRename] .file-rename not found");return}const v=document.createElement("div"),b=`
          <div style="padding: 0px 20px;">
            <label style="font-size: 18px; color: #1890ff;">
              <input id="cbNoUpdateDir" type="checkbox" style="width: 22px; height: 22px; vertical-align: sub;"> 重命名后不刷新列表
            </label>
            <p style="font-size: 12px; color: #ff4949;">在使用当前目录增强菜单项「重命名文件夹」时会忽略该选项。</p>
          </div>`;v.innerHTML=b,y.insertAdjacentElement("afterend",v);const _=document.querySelector("#cbNoUpdateDir");_&&(_.checked=t,_.addEventListener("change",()=>{t=_.checked;}));}}});}async function VD(e){if(!e.noReloadAfterMove||window!==window.top)return;let t=!0,n=[];const s=pn(),o=s.Core.FileMenu.DoEvent,i=s.Core.FileConfig.DataAPI.Reload;s.Core.FileConfig.DataAPI.Reload=async(...r)=>{if(t){ue({icon:"info",text:"启用了「移动后不刷新文本列表」选项,不会刷新文件列表"});for(let a=0;a<n.length;a++)pf(n[a][0]);}else i(...r);},s.Core.FileMenu.DoEvent=async(...r)=>{n=r[0],o(...r);},window.addEventListener("message",async r=>{var h;if(r.data.event!==mt.topDomChanged)return;const l=document.querySelector("div.dialog-box.window-current > div.dialog-header > h3");if(!l||!((h=l.textContent)!=null&&h.includes("打开要移动")))return;const u=document.querySelector("div.dialog-box.window-current .select-footer");if(!u){console.warn("[list handleNoUpdateDirAfterMove] .select-footer not found");return}let d=document.querySelector("#cbNoReload");if(!d){const y=document.createElement("div"),v=`
        <div style="padding: 6px 30px 0;">
          <label style="font-size: 18px; color: #1890ff;">
            <input id="cbNoReload" type="checkbox" style="width: 22px; height: 22px; vertical-align: sub;"> 移动后不刷新列表
          </label>
          <p style="font-size: 14px; color: #ff4949;">启用该功能并且执行过移动操作后,会影响列表的全选功能,此时如需全选,请先手动刷新列表!</p>
        </div>`;y.innerHTML=v,u.insertAdjacentElement("afterend",y),d=document.querySelector("#cbNoReload"),d&&(d.checked=t,d.addEventListener("change",()=>{t=d.checked;}));}});}async function KD(){const e=await Gr(),{host:t,search:n}=location;/115\.com$/.test(t)&&(console.log("[List] running...",e),(bs()||vs())&&Y0(),UD(e),zD(e),setTimeout(async()=>{await UO(),qD(e),VD(e);},2e3),jO(e),HO(e),zO());}async function WD(e){const t=await $t(".top-file-path");GD(e,t),JD(e,t);}async function GD(e,t){if(!e.showSelectTargetButtonOnPathBar)return;console.log("[showSelectTargetButtonOnPathBar]");const n="ce-btn-select";let s=t.querySelector(`.${n}`);const o=async()=>{unsafeWindow.parent.Core.FileSelectDG.Open((r,a)=>{console.log("[Core.FileSelectDG.Open]",r,a);const l=r[r.length-1],u=Qt(`
          <a href="javascript:;" class="dir-tab" search_btn_file="${l.cid}" style="display: none;">
          ${l.cname}
          </a>
        `);t.querySelector(".file-path").append(u),u.click();},{select:1,nf:1,show_record:0,show_copy:1,btn_txt:"在该目录下搜索",select_txt:"搜索"});};s||(s=await(async()=>{const r=Qt(`
      <a href="javascript:;" class="dir-tab ${n}" title="选择指定目录进行搜索">选择目录</a>
    `);return r.addEventListener("click",o),r})(),t.append(s));}async function JD(e,t){if(!e.showSelectAllDir)return;const n="ce-btn-select-dir";let s=t.querySelector(`.${n}`);const o=async r=>{r.preventDefault(),r.stopPropagation();const a=[],l=document.querySelectorAll('li[rel="item"][file_type="0"]');for(let u=0;u<l.length;u++)a.push($(l[u]));unsafeWindow.Main.List.RecheckFiles(a);};s||(s=await(async()=>{const a=Qt(`
      <button type="button" class="pure-button button-success button-small ${n}" title="仅会选中已加载的文件夹">选中全部文件夹</label>
    `);return a.setAttribute("style","margin-left: 10px;"),a.addEventListener("click",o),a})(),t.append(s));}async function YD(e){let t=e.resultWidth.trim();if(t===""||window!==window.parent||new URL(window.location.href).searchParams.get("mode")!=="search")return;t=/^\d+$/.test(t)?`${t}px`:t;const s=await $t("div.wrap-view");s&&(s.style.width=`${t}`);}async function QD(e){document.body.classList.add("ce-search-page"),parent.document.body.classList.add("ce-search-page");}async function XD(){const e=await $m();YD(e),vs()&&(console.log("[Search] running...",e),QD(),WD(e));}async function ZD(){console.log("[Tools] running...");}async function eM(e){const t=async s=>{const o=Qt(`<li pickcode="${s.pickCode}" style="padding:0px;"></li>`),i=Qt(`
      <a style="height:auto;text-decoration:none;padding:5px 0 5px 5px;">
        <span style="word-break:break-all">${s.name}</span>
      </a>
    `);return i.href="/?hls=1&pickcode="+s.pickCode,i.setAttribute("title",s.name),o.appendChild(i),o};let n="";window.addEventListener("message",async s=>{if(s.data.event==="play"){const o=await $t("ul#js-video_list"),i=s.data.body.id;if(n&&n===i)if(o.childElementCount){console.log(`[playSelected] same id: ${i} 但是播放列表已经渲染过了,忽略`);return}else console.warn(`[playSelected] same id: ${i} 但是播放列表为空,将会进行渲染`);n=i;const r=s.data.body.files;console.log(`[playSelected] id: ${i}, files: `,r);const a=await Promise.all(r.map(t));o==null||o.append(...a);const l=document.querySelector(".video-playlist .vpl-container");l&&(l.style.display="block");const u=o==null?void 0:o.querySelector("a");u==null||u.click();const d=document.querySelector("#js-video_container");d&&d.classList.remove("video-container-nolist");}});}async function tM(e){if(!e.defaultWebFull)return;const t=await $t('[rel="web_fullscreen"]');t.querySelector('[rel="tooltips"]').innerText==="网页全屏"&&t.click();}async function nM(e){if(!e.defaultOpenPlayList)return;const t=await $t("a#js_pl_control_expand");t.querySelector('[rel="tooltips"]').innerText==="展开播放列表"&&t.click();}async function sM(e){if(!e.defaultDefinition)return;const t=Pm[e.defaultDefinition],n=unsafeWindow.__HLS,s=n.setCurrentLevel;(async()=>{var a;const i=await $t('div[rel="level_menu"]'),r=await mf('a[btn="level"]',100,12e4,i);for(let l=0;l<r.length;l++){const u=r[l],d=u.classList.contains("current");if(((a=u.textContent)==null?void 0:a.trim())===t&&!d){console.log("[setDefinition _first] 找到目标清晰度元素:",u),u.click();break}}})(),n.setCurrentLevel=i=>{const r=n.hls();if(!r||!r.levels){s(i);return}const a=[];r.levels.forEach(u=>{a.push({name:u.name,bitrate:u.bitrate});}),a.sort((u,d)=>u.bitrate-d.bitrate);let l=i;for(let u=0;u<a.length;u++)if(a[u].name===e.defaultDefinition){l=u;break}l!==i&&console.warn(`[level changed] ${i} -> ${l}`),s(l);};}async function oM(){const{host:e}=location;if(!e.includes("anxia.com"))return;console.log("[anxia] run");const t=await Im();tM(t),nM(t),eM(),sM(t);}function Kd(e,t,n,s){return e<t||e>n?s:e}location.host==="115.com"&&(window.COMMONHEADERUSERINFO=window.COMMONHEADERUSERINFO||{});(async()=>{console.log("Cloud115 Enhancer launched!");const e=await ra(),t=Kd(e.limiterDuration,1,3e3,1),n=Kd(e.limiterPoints,1,300,1),s=t*500/n,o=wm({rateLimit:{...ym,duration:t,points:n,execEvenly:!0,execEvenlyMinDelayMs:s}}),i=dA(o);Bw(i),D_(),KC(),$S(),xA(),KD(),XD(),ZD(),oM(),NO();})();

})();