// ==UserScript== // @name 115不大助手 (full) // @namespace com.cloud115.enhancer // @version 0.5.33 // @author 生瓜太保 // @description Make 115 taerg again! // @license MIT // @homepage https://greasyfork.org/zh-CN/scripts/474231-115不大助手?locale_override=1 // @supportURL https://github.com // @match https://*.115.com/* // @match https://115.com/* // @connect * // @grant GM_addStyle // @grant GM_deleteValue // @grant GM_getValue // @grant GM_openInTab // @grant GM_registerMenuCommand // @grant GM_setClipboard // @grant GM_setValue // @grant unsafeWindow // @run-at document-body // @downloadURL none // ==/UserScript== (o=>{const e=document.createElement("style");e.dataset.source="vite-plugin-monkey",e.innerText=o,document.head.appendChild(e)})(`@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,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.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-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}.v-popper--theme-tooltip .v-popper__inner{background:rgba(0,0,0,.8);color:#fff;border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}.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-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,rgba(0,0,0,0),#ccc,rgba(0,0,0,0))}.ce-config input[type=checkbox]{width:18px;height:18px;cursor:pointer}.tabs-component-tabs{border:solid 1px #ddd;border-radius:6px;margin-bottom:5px}@media (min-width: 700px){.tabs-component-tabs{border:0;align-items:stretch;display:flex;justify-content:flex-start;margin-bottom:-1px}}.tabs-component-tab{color:#999;font-size:14px;font-weight:600;margin-right:0;list-style:none}.tabs-component-tab:not(:last-child){border-bottom:dotted 1px #ddd}.tabs-component-tab:hover{color:#666}.tabs-component-tab.is-active{color:#000}.tabs-component-tab.is-disabled *{color:#cdcdcd;cursor:not-allowed!important}@media (min-width: 700px){.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-tab.is-active{border-bottom:solid 1px #fff;z-index:2;transform:translateY(0)}}.tabs-component-tab-a{align-items:center;color:inherit;display:flex;padding:.75em 1em;text-decoration:none}.tabs-component-panels{padding:1em 0}@media (min-width: 700px){.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-btn{cursor:pointer;background:#e1ecf4;border-radius:3px;border:1px solid #7aa7c7;padding:4px 8px;color:#39739d}.tabs-component-btn:hover{background-color:#b3d3ea;color:#2c5777}.tabs-component-btn:active{background-color:#a0c7e4;box-shadow:none;color:#2c5777}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}.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:rgba(39,119,248,.8);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:"\\2228";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:rgba(39,119,248,.8);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:"\\2228";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;width:60px;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:hover{background-color:#f3e882}.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:-250%;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;width:60px;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;width:60px;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-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 .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 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}.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}.v-popper.v-popper--theme-dropdown{display:inline-block}.group-manager{width:750px}.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;width:540px;padding:10px;border-radius:4px}.group-form input,.group-form textarea{width:100%}.group-form .filter-label{cursor:pointer;padding:0 4px;text-decoration:underline}.group-form input#groupLabel{display:inline-block}.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}#cloud115Cleaner{margin-left:10px}.v-popper__arrow-container{display:none}.cloud115-eh-cleaner .btn-open{padding:0 6px;vertical-align:text-top;line-height:30px;border-radius:4px;background:#4faa4f;display:none}.cloud115-eh-cleaner .actions-bar{padding-bottom:10px}.cloud115-eh-cleaner .actions-bar .title{font-size:18px;font-weight:700;color:#15110c}.cloud115-eh-cleaner .actions-bar .close{margin-left:20px;margin-right:10px;color:#f40}.cloud115-eh-cleaner .actions-bar i.tp-folder{width:18px;height:18px;vertical-align:sub}.cloud115-eh-cleaner-help{position:fixed;top:60px;right:0;bottom:0;width:470px;z-index:1051;padding:10px 10px 150px 8px;background:#fdffdf;overflow-y:auto}.cloud115-eh-cleaner-help ul{list-style:decimal}.cloud115-eh-cleaner-drawer{position:fixed;top:60px;right:0;bottom:0;left:260px;background:#fff;z-index:1050;padding:10px 20px 200px;overflow-y:auto;box-shadow:-2px 2px 6px #bbb}.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 td a{color:#2877f8}.cloud115-eh-cleaner-drawer .by-box table td .tp-folder{width:16px;height:16px;vertical-align:sub}.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:4px;text-shadow:0 1px 1px rgba(0,0,0,.2)}.button-success{background:rgb(28,184,65)}.button-error{background:rgb(202,60,60)}.button-warning{background:rgb(223,117,20)}.button-secondary{background:rgb(66,184,221)}.ce-basic-config .pure-form-message{margin-left:82px}.ce-basic-config .avatar-preview{display:inline-block;vertical-align:middle;margin-left:10px}.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:15em}.ce-list-config .pure-form-message{margin-left:3em}.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,.ce-play-urls{padding-bottom:100px}.ce-play-urls .extra-memo{font-size:12px;margin-left:10px}.ce-play-urls .extra-memo a{text-decoration:underline;color:#337ab7}.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}.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}.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} `); var $E=Object.defineProperty;var kE=(ko,Cn,So)=>Cn in ko?$E(ko,Cn,{enumerable:!0,configurable:!0,writable:!0,value:So}):ko[Cn]=So;var $e=(ko,Cn,So)=>(kE(ko,typeof Cn!="symbol"?Cn+"":Cn,So),So);(function(){"use strict";const ko="",Cn="",So="",SE="",EE="",AE="",PE="",Dp=typeof btoa=="function",Ar=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Il=typeof TextEncoder=="function"?new TextEncoder:void 0,Np="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Zo=Array.prototype.slice.call(Np);(e=>{let t={};return e.forEach((n,o)=>t[n]=o),t})(Zo);const Gt=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const Rp=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Tl=Dp?e=>btoa(e):Ar?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,o,s,i="";const r=e.length%3;for(let l=0;l255||(o=e.charCodeAt(l++))>255||(s=e.charCodeAt(l++))>255)throw new TypeError("invalid character found");t=n<<16|o<<8|s,i+=Zo[t>>18&63]+Zo[t>>12&63]+Zo[t>>6&63]+Zo[t&63]}return r?i.slice(0,r-3)+"===".substring(r):i},jp=Ar?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let o=0,s=e.length;o{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Gt(192|t>>>6)+Gt(128|t&63):Gt(224|t>>>12&15)+Gt(128|t>>>6&63)+Gt(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Gt(240|t>>>18&7)+Gt(128|t>>>12&63)+Gt(128|t>>>6&63)+Gt(128|t&63)}},Hp=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Up=e=>e.replace(Hp,Fp),Ll=Ar?e=>Buffer.from(e,"utf8").toString("base64"):Il?e=>jp(Il.encode(e)):e=>Tl(Up(e)),Ml=(e,t=!1)=>t?Rp(Ll(e)):Ll(e);var Eo=window,Pr=(()=>Eo.GM_setValue)(),zp=(()=>Eo.GM_deleteValue)(),qp=(()=>Eo.GM_openInTab)(),Bl=(()=>Eo.GM_registerMenuCommand)(),Qo=(()=>Eo.GM_setClipboard)(),Ys=(()=>Eo.GM_getValue)(),$n=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Dl={exports:{}};/*! * sweetalert2 v11.7.2 * Released under the MIT License. */(function(e,t){(function(n,o){e.exports=o()})($n,function(){var n={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const o="swal2-",s=a=>{const c={};for(const g in a)c[a[g]]=o+a[g];return c},i=s(["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=s(["success","warning","info","question","error"]),l="SweetAlert2:",d=a=>{const c=[];for(let g=0;ga.charAt(0).toUpperCase()+a.slice(1),p=a=>{console.warn(`${l} ${typeof a=="object"?a.join(" "):a}`)},m=a=>{console.error(`${l} ${a}`)},y=[],C=a=>{y.includes(a)||(y.push(a),p(a))},E=(a,c)=>{C(`"${a}" is deprecated and will be removed in the next major release. Please use "${c}" instead.`)},A=a=>typeof a=="function"?a():a,N=a=>a&&typeof a.toPromise=="function",V=a=>N(a)?a.toPromise():Promise.resolve(a),O=a=>a&&Promise.resolve(a)===a,P=()=>document.body.querySelector(`.${i.container}`),D=a=>{const c=P();return c?c.querySelector(a):null},G=a=>D(`.${a}`),ee=()=>G(i.popup),Oe=()=>G(i.icon),ke=()=>G(i["icon-content"]),Se=()=>G(i.title),Te=()=>G(i["html-container"]),he=()=>G(i.image),se=()=>G(i["progress-steps"]),Ee=()=>G(i["validation-message"]),ie=()=>D(`.${i.actions} .${i.confirm}`),He=()=>D(`.${i.actions} .${i.cancel}`),B=()=>D(`.${i.actions} .${i.deny}`),J=()=>G(i["input-label"]),R=()=>D(`.${i.loader}`),de=()=>G(i.actions),Ce=()=>G(i.footer),Ie=()=>G(i["timer-progress-bar"]),Xe=()=>G(i.close),Ze=` 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 `,It=()=>{const a=Array.from(ee().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((g,v)=>{const M=parseInt(g.getAttribute("tabindex")),we=parseInt(v.getAttribute("tabindex"));return M>we?1:Mg.getAttribute("tabindex")!=="-1");return d(a.concat(c)).filter(g=>j(g))},Tt=()=>et(document.body,i.shown)&&!et(document.body,i["toast-shown"])&&!et(document.body,i["no-backdrop"]),xn=()=>ee()&&et(ee(),i.toast),vt=()=>ee().hasAttribute("data-loading"),_t={previousBodyPadding:null},ct=(a,c)=>{if(a.textContent="",c){const v=new DOMParser().parseFromString(c,"text/html");Array.from(v.querySelector("head").childNodes).forEach(M=>{a.appendChild(M)}),Array.from(v.querySelector("body").childNodes).forEach(M=>{M instanceof HTMLVideoElement||M instanceof HTMLAudioElement?a.appendChild(M.cloneNode(!0)):a.appendChild(M)})}},et=(a,c)=>{if(!c)return!1;const g=c.split(/\s+/);for(let v=0;v{Array.from(a.classList).forEach(g=>{!Object.values(i).includes(g)&&!Object.values(r).includes(g)&&!Object.values(c.showClass).includes(g)&&a.classList.remove(g)})},at=(a,c,g)=>{if(Jn(a,c),c.customClass&&c.customClass[g]){if(typeof c.customClass[g]!="string"&&!c.customClass[g].forEach){p(`Invalid type of customClass.${g}! Expected string or iterable object, got "${typeof c.customClass[g]}"`);return}T(a,c.customClass[g])}},b=(a,c)=>{if(!c)return null;switch(c){case"select":case"textarea":case"file":return a.querySelector(`.${i.popup} > .${i[c]}`);case"checkbox":return a.querySelector(`.${i.popup} > .${i.checkbox} input`);case"radio":return a.querySelector(`.${i.popup} > .${i.radio} input:checked`)||a.querySelector(`.${i.popup} > .${i.radio} input:first-child`);case"range":return a.querySelector(`.${i.popup} > .${i.range} input`);default:return a.querySelector(`.${i.popup} > .${i.input}`)}},S=a=>{if(a.focus(),a.type!=="file"){const c=a.value;a.value="",a.value=c}},L=(a,c,g)=>{!a||!c||(typeof c=="string"&&(c=c.split(/\s+/).filter(Boolean)),c.forEach(v=>{Array.isArray(a)?a.forEach(M=>{g?M.classList.add(v):M.classList.remove(v)}):g?a.classList.add(v):a.classList.remove(v)}))},T=(a,c)=>{L(a,c,!0)},H=(a,c)=>{L(a,c,!1)},X=(a,c)=>{const g=Array.from(a.children);for(let v=0;v{g===`${parseInt(g)}`&&(g=parseInt(g)),g||parseInt(g)===0?a.style[c]=typeof g=="number"?`${g}px`:g:a.style.removeProperty(c)},q=function(a){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";a.style.display=c},K=a=>{a.style.display="none"},W=(a,c,g,v)=>{const M=a.querySelector(c);M&&(M.style[g]=v)},ae=function(a,c){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";c?q(a,g):K(a)},j=a=>!!(a&&(a.offsetWidth||a.offsetHeight||a.getClientRects().length)),le=()=>!j(ie())&&!j(B())&&!j(He()),h=a=>a.scrollHeight>a.clientHeight,w=a=>{const c=window.getComputedStyle(a),g=parseFloat(c.getPropertyValue("animation-duration")||"0"),v=parseFloat(c.getPropertyValue("transition-duration")||"0");return g>0||v>0},_=function(a){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const g=Ie();j(g)&&(c&&(g.style.transition="none",g.style.width="100%"),setTimeout(()=>{g.style.transition=`width ${a/1e3}s linear`,g.style.width="0%"},10))},x=()=>{const a=Ie(),c=parseInt(window.getComputedStyle(a).width);a.style.removeProperty("transition"),a.style.width="100%";const g=parseInt(window.getComputedStyle(a).width),v=c/g*100;a.style.width=`${v}%`},I=100,k={},F=()=>{k.previousActiveElement instanceof HTMLElement?(k.previousActiveElement.focus(),k.previousActiveElement=null):document.body&&document.body.focus()},U=a=>new Promise(c=>{if(!a)return c();const g=window.scrollX,v=window.scrollY;k.restoreFocusTimeout=setTimeout(()=>{F(),c()},I),window.scrollTo(g,v)}),Y=()=>typeof window>"u"||typeof document>"u",_e=`

    `.replace(/(^|\n)\s*/g,""),ye=()=>{const a=P();return a?(a.remove(),H([document.documentElement,document.body],[i["no-backdrop"],i["toast-shown"],i["has-column"]]),!0):!1},ue=()=>{k.currentInstance.resetValidationMessage()},Ne=()=>{const a=ee(),c=X(a,i.input),g=X(a,i.file),v=a.querySelector(`.${i.range} input`),M=a.querySelector(`.${i.range} output`),we=X(a,i.select),We=a.querySelector(`.${i.checkbox} input`),Lt=X(a,i.textarea);c.oninput=ue,g.onchange=ue,we.onchange=ue,We.onchange=ue,Lt.oninput=ue,v.oninput=()=>{ue(),M.value=v.value},v.onchange=()=>{ue(),M.value=v.value}},xt=a=>typeof a=="string"?document.querySelector(a):a,ht=a=>{const c=ee();c.setAttribute("role",a.toast?"alert":"dialog"),c.setAttribute("aria-live",a.toast?"polite":"assertive"),a.toast||c.setAttribute("aria-modal","true")},qs=a=>{window.getComputedStyle(a).direction==="rtl"&&T(P(),i.rtl)},Vs=a=>{const c=ye();if(Y()){m("SweetAlert2 requires document to initialize");return}const g=document.createElement("div");g.className=i.container,c&&T(g,i["no-transition"]),ct(g,_e);const v=xt(a.target);v.appendChild(g),ht(a),qs(v),Ne()},vl=(a,c)=>{a instanceof HTMLElement?c.appendChild(a):typeof a=="object"?tk(a,c):a&&ct(c,a)},tk=(a,c)=>{a.jquery?nk(c,a):ct(c,a.toString())},nk=(a,c)=>{if(a.textContent="",0 in c)for(let g=0;g in c;g++)a.appendChild(c[g].cloneNode(!0));else a.appendChild(c.cloneNode(!0))},Ws=(()=>{if(Y())return!1;const a=document.createElement("div"),c={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const g in c)if(Object.prototype.hasOwnProperty.call(c,g)&&typeof a.style[g]<"u")return c[g];return!1})(),ok=()=>{const a=document.createElement("div");a.className=i["scrollbar-measure"],document.body.appendChild(a);const c=a.getBoundingClientRect().width-a.clientWidth;return document.body.removeChild(a),c},sk=(a,c)=>{const g=de(),v=R();!c.showConfirmButton&&!c.showDenyButton&&!c.showCancelButton?K(g):q(g),at(g,c,"actions"),ik(g,v,c),ct(v,c.loaderHtml),at(v,c,"loader")};function ik(a,c,g){const v=ie(),M=B(),we=He();_l(v,"confirm",g),_l(M,"deny",g),_l(we,"cancel",g),rk(v,M,we,g),g.reverseButtons&&(g.toast?(a.insertBefore(we,v),a.insertBefore(M,v)):(a.insertBefore(we,c),a.insertBefore(M,c),a.insertBefore(v,c)))}function rk(a,c,g,v){if(!v.buttonsStyling){H([a,c,g],i.styled);return}T([a,c,g],i.styled),v.confirmButtonColor&&(a.style.backgroundColor=v.confirmButtonColor,T(a,i["default-outline"])),v.denyButtonColor&&(c.style.backgroundColor=v.denyButtonColor,T(c,i["default-outline"])),v.cancelButtonColor&&(g.style.backgroundColor=v.cancelButtonColor,T(g,i["default-outline"]))}function _l(a,c,g){ae(a,g[`show${f(c)}Button`],"inline-block"),ct(a,g[`${c}ButtonText`]),a.setAttribute("aria-label",g[`${c}ButtonAriaLabel`]),a.className=i[c],at(a,g,`${c}Button`),T(a,g[`${c}ButtonClass`])}const ak=(a,c)=>{const g=Xe();ct(g,c.closeButtonHtml),at(g,c,"closeButton"),ae(g,c.showCloseButton),g.setAttribute("aria-label",c.closeButtonAriaLabel)},lk=(a,c)=>{const g=P();!g||(ck(g,c.backdrop),uk(g,c.position),dk(g,c.grow),at(g,c,"container"))};function ck(a,c){typeof c=="string"?a.style.background=c:c||T([document.documentElement,document.body],i["no-backdrop"])}function uk(a,c){c in i?T(a,i[c]):(p('The "position" parameter is not valid, defaulting to "center"'),T(a,i.center))}function dk(a,c){if(c&&typeof c=="string"){const g=`grow-${c}`;g in i&&T(a,i[g])}}const fk=["input","file","range","select","radio","checkbox","textarea"],pk=(a,c)=>{const g=ee(),v=n.innerParams.get(a),M=!v||c.input!==v.input;fk.forEach(we=>{const We=X(g,i[we]);gk(we,c.inputAttributes),We.className=i[we],M&&K(We)}),c.input&&(M&&hk(c),wk(c))},hk=a=>{if(!Pt[a.input]){m(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${a.input}"`);return}const c=rp(a.input),g=Pt[a.input](c,a);q(c),a.inputAutoFocus&&setTimeout(()=>{S(g)})},mk=a=>{for(let c=0;c{const g=b(ee(),a);if(!!g){mk(g);for(const v in c)g.setAttribute(v,c[v])}},wk=a=>{const c=rp(a.input);typeof a.customClass=="object"&&T(c,a.customClass.input)},xl=(a,c)=>{(!a.placeholder||c.inputPlaceholder)&&(a.placeholder=c.inputPlaceholder)},Ks=(a,c,g)=>{if(g.inputLabel){a.id=i.input;const v=document.createElement("label"),M=i["input-label"];v.setAttribute("for",a.id),v.className=M,typeof g.customClass=="object"&&T(v,g.customClass.inputLabel),v.innerText=g.inputLabel,c.insertAdjacentElement("beforebegin",v)}},rp=a=>X(ee(),i[a]||i.input),$r=(a,c)=>{["string","number"].includes(typeof c)?a.value=`${c}`:O(c)||p(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof c}"`)},Pt={};Pt.text=Pt.email=Pt.password=Pt.number=Pt.tel=Pt.url=(a,c)=>($r(a,c.inputValue),Ks(a,a,c),xl(a,c),a.type=c.input,a),Pt.file=(a,c)=>(Ks(a,a,c),xl(a,c),a),Pt.range=(a,c)=>{const g=a.querySelector("input"),v=a.querySelector("output");return $r(g,c.inputValue),g.type=c.input,$r(v,c.inputValue),Ks(g,a,c),a},Pt.select=(a,c)=>{if(a.textContent="",c.inputPlaceholder){const g=document.createElement("option");ct(g,c.inputPlaceholder),g.value="",g.disabled=!0,g.selected=!0,a.appendChild(g)}return Ks(a,a,c),a},Pt.radio=a=>(a.textContent="",a),Pt.checkbox=(a,c)=>{const g=b(ee(),"checkbox");g.value="1",g.id=i.checkbox,g.checked=Boolean(c.inputValue);const v=a.querySelector("span");return ct(v,c.inputPlaceholder),g},Pt.textarea=(a,c)=>{$r(a,c.inputValue),xl(a,c),Ks(a,a,c);const g=v=>parseInt(window.getComputedStyle(v).marginLeft)+parseInt(window.getComputedStyle(v).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const v=parseInt(window.getComputedStyle(ee()).width),M=()=>{const we=a.offsetWidth+g(a);we>v?ee().style.width=`${we}px`:ee().style.width=null};new MutationObserver(M).observe(a,{attributes:!0,attributeFilter:["style"]})}}),a};const yk=(a,c)=>{const g=Te();at(g,c,"htmlContainer"),c.html?(vl(c.html,g),q(g,"block")):c.text?(g.textContent=c.text,q(g,"block")):K(g),pk(a,c)},bk=(a,c)=>{const g=Ce();ae(g,c.footer),c.footer&&vl(c.footer,g),at(g,c,"footer")},vk=(a,c)=>{const g=n.innerParams.get(a),v=Oe();if(g&&c.icon===g.icon){lp(v,c),ap(v,c);return}if(!c.icon&&!c.iconHtml){K(v);return}if(c.icon&&Object.keys(r).indexOf(c.icon)===-1){m(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${c.icon}"`),K(v);return}q(v),lp(v,c),ap(v,c),T(v,c.showClass.icon)},ap=(a,c)=>{for(const g in r)c.icon!==g&&H(a,r[g]);T(a,r[c.icon]),$k(a,c),_k(),at(a,c,"icon")},_k=()=>{const a=ee(),c=window.getComputedStyle(a).getPropertyValue("background-color"),g=a.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let v=0;v
    `,Ck=` `,lp=(a,c)=>{let g=a.innerHTML,v;c.iconHtml?v=cp(c.iconHtml):c.icon==="success"?(v=xk,g=g.replace(/ style=".*?"/g,"")):c.icon==="error"?v=Ck:v=cp({question:"?",warning:"!",info:"i"}[c.icon]),g.trim()!==v.trim()&&ct(a,v)},$k=(a,c)=>{if(!!c.iconColor){a.style.color=c.iconColor,a.style.borderColor=c.iconColor;for(const g of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])W(a,g,"backgroundColor",c.iconColor);W(a,".swal2-success-ring","borderColor",c.iconColor)}},cp=a=>`
    ${a}
    `,kk=(a,c)=>{const g=he();if(!c.imageUrl){K(g);return}q(g,""),g.setAttribute("src",c.imageUrl),g.setAttribute("alt",c.imageAlt),ne(g,"width",c.imageWidth),ne(g,"height",c.imageHeight),g.className=i.image,at(g,c,"image")},Sk=(a,c)=>{const g=P(),v=ee();c.toast?(ne(g,"width",c.width),v.style.width="100%",v.insertBefore(R(),Oe())):ne(v,"width",c.width),ne(v,"padding",c.padding),c.color&&(v.style.color=c.color),c.background&&(v.style.background=c.background),K(Ee()),Ek(v,c)},Ek=(a,c)=>{a.className=`${i.popup} ${j(a)?c.showClass.popup:""}`,c.toast?(T([document.documentElement,document.body],i["toast-shown"]),T(a,i.toast)):T(a,i.modal),at(a,c,"popup"),typeof c.customClass=="string"&&T(a,c.customClass),c.icon&&T(a,i[`icon-${c.icon}`])},Ak=(a,c)=>{const g=se();if(!c.progressSteps||c.progressSteps.length===0){K(g);return}q(g),g.textContent="",c.currentProgressStep>=c.progressSteps.length&&p("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),c.progressSteps.forEach((v,M)=>{const we=Pk(v);if(g.appendChild(we),M===c.currentProgressStep&&T(we,i["active-progress-step"]),M!==c.progressSteps.length-1){const We=Ok(c);g.appendChild(We)}})},Pk=a=>{const c=document.createElement("li");return T(c,i["progress-step"]),ct(c,a),c},Ok=a=>{const c=document.createElement("li");return T(c,i["progress-step-line"]),a.progressStepsDistance&&ne(c,"width",a.progressStepsDistance),c},Ik=(a,c)=>{const g=Se();ae(g,c.title||c.titleText,"block"),c.title&&vl(c.title,g),c.titleText&&(g.innerText=c.titleText),at(g,c,"title")},up=(a,c)=>{Sk(a,c),lk(a,c),Ak(a,c),vk(a,c),kk(a,c),Ik(a,c),ak(a,c),yk(a,c),sk(a,c),bk(a,c),typeof c.didRender=="function"&&c.didRender(ee())};function dp(){const a=n.innerParams.get(this);if(!a)return;const c=n.domCache.get(this);K(c.loader),xn()?a.icon&&q(Oe()):Tk(c),H([c.popup,c.actions],i.loading),c.popup.removeAttribute("aria-busy"),c.popup.removeAttribute("data-loading"),c.confirmButton.disabled=!1,c.denyButton.disabled=!1,c.cancelButton.disabled=!1}const Tk=a=>{const c=a.popup.getElementsByClassName(a.loader.getAttribute("data-button-to-replace"));c.length?q(c[0],"inline-block"):le()&&K(a.actions)};function Lk(a){const c=n.innerParams.get(a||this),g=n.domCache.get(a||this);return g?b(g.popup,c.input):null}const Mk=()=>j(ee()),fp=()=>ie()&&ie().click(),Bk=()=>B()&&B().click(),Dk=()=>He()&&He().click(),Ko=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),pp=a=>{a.keydownTarget&&a.keydownHandlerAdded&&(a.keydownTarget.removeEventListener("keydown",a.keydownHandler,{capture:a.keydownListenerCapture}),a.keydownHandlerAdded=!1)},Nk=(a,c,g,v)=>{pp(c),g.toast||(c.keydownHandler=M=>jk(a,M,v),c.keydownTarget=g.keydownListenerCapture?window:ee(),c.keydownListenerCapture=g.keydownListenerCapture,c.keydownTarget.addEventListener("keydown",c.keydownHandler,{capture:c.keydownListenerCapture}),c.keydownHandlerAdded=!0)},Cl=(a,c)=>{const g=It();if(g.length){a=a+c,a===g.length?a=0:a===-1&&(a=g.length-1),g[a].focus();return}ee().focus()},hp=["ArrowRight","ArrowDown"],Rk=["ArrowLeft","ArrowUp"],jk=(a,c,g)=>{const v=n.innerParams.get(a);!v||c.isComposing||c.keyCode===229||(v.stopKeydownPropagation&&c.stopPropagation(),c.key==="Enter"?Fk(a,c,v):c.key==="Tab"?Hk(c):[...hp,...Rk].includes(c.key)?Uk(c.key):c.key==="Escape"&&zk(c,v,g))},Fk=(a,c,g)=>{if(!!A(g.allowEnterKey)&&c.target&&a.getInput()&&c.target instanceof HTMLElement&&c.target.outerHTML===a.getInput().outerHTML){if(["textarea","file"].includes(g.input))return;fp(),c.preventDefault()}},Hk=a=>{const c=a.target,g=It();let v=-1;for(let M=0;M{const c=ie(),g=B(),v=He(),M=[c,g,v];if(document.activeElement instanceof HTMLElement&&!M.includes(document.activeElement))return;const we=hp.includes(a)?"nextElementSibling":"previousElementSibling";let We=document.activeElement;for(let Lt=0;Lt{A(c.allowEscapeKey)&&(a.preventDefault(),g(Ko.esc))};var Gs={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const qk=()=>{Array.from(document.body.children).forEach(c=>{c===P()||c.contains(P())||(c.hasAttribute("aria-hidden")&&c.setAttribute("data-previous-aria-hidden",c.getAttribute("aria-hidden")),c.setAttribute("aria-hidden","true"))})},mp=()=>{Array.from(document.body.children).forEach(c=>{c.hasAttribute("data-previous-aria-hidden")?(c.setAttribute("aria-hidden",c.getAttribute("data-previous-aria-hidden")),c.removeAttribute("data-previous-aria-hidden")):c.removeAttribute("aria-hidden")})},Vk=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!et(document.body,i.iosfix)){const c=document.body.scrollTop;document.body.style.top=`${c*-1}px`,T(document.body,i.iosfix),Kk(),Wk()}},Wk=()=>{const a=navigator.userAgent,c=!!a.match(/iPad/i)||!!a.match(/iPhone/i),g=!!a.match(/WebKit/i);c&&g&&!a.match(/CriOS/i)&&ee().scrollHeight>window.innerHeight-44&&(P().style.paddingBottom=`${44}px`)},Kk=()=>{const a=P();let c;a.ontouchstart=g=>{c=Gk(g)},a.ontouchmove=g=>{c&&(g.preventDefault(),g.stopPropagation())}},Gk=a=>{const c=a.target,g=P();return Jk(a)||Yk(a)?!1:c===g||!h(g)&&c instanceof HTMLElement&&c.tagName!=="INPUT"&&c.tagName!=="TEXTAREA"&&!(h(Te())&&Te().contains(c))},Jk=a=>a.touches&&a.touches.length&&a.touches[0].touchType==="stylus",Yk=a=>a.touches&&a.touches.length>1,Xk=()=>{if(et(document.body,i.iosfix)){const a=parseInt(document.body.style.top,10);H(document.body,i.iosfix),document.body.style.top="",document.body.scrollTop=a*-1}},Zk=()=>{_t.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(_t.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${_t.previousBodyPadding+ok()}px`)},Qk=()=>{_t.previousBodyPadding!==null&&(document.body.style.paddingRight=`${_t.previousBodyPadding}px`,_t.previousBodyPadding=null)};function gp(a,c,g,v){xn()?wp(a,v):(U(g).then(()=>wp(a,v)),pp(k)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(c.setAttribute("style","display:none !important"),c.removeAttribute("class"),c.innerHTML=""):c.remove(),Tt()&&(Qk(),Xk(),mp()),eS()}function eS(){H([document.documentElement,document.body],[i.shown,i["height-auto"],i["no-backdrop"],i["toast-shown"]])}function kr(a){a=sS(a);const c=Gs.swalPromiseResolve.get(this),g=nS(this);this.isAwaitingPromise()?a.isDismissed||(Js(this),c(a)):g&&c(a)}function tS(){return!!n.awaitingPromise.get(this)}const nS=a=>{const c=ee();if(!c)return!1;const g=n.innerParams.get(a);if(!g||et(c,g.hideClass.popup))return!1;H(c,g.showClass.popup),T(c,g.hideClass.popup);const v=P();return H(v,g.showClass.backdrop),T(v,g.hideClass.backdrop),iS(a,c,g),!0};function oS(a){const c=Gs.swalPromiseReject.get(this);Js(this),c&&c(a)}const Js=a=>{a.isAwaitingPromise()&&(n.awaitingPromise.delete(a),n.innerParams.get(a)||a._destroy())},sS=a=>typeof a>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},a),iS=(a,c,g)=>{const v=P(),M=Ws&&w(c);typeof g.willClose=="function"&&g.willClose(c),M?rS(a,c,v,g.returnFocus,g.didClose):gp(a,v,g.returnFocus,g.didClose)},rS=(a,c,g,v,M)=>{k.swalCloseEventFinishedCallback=gp.bind(null,a,g,v,M),c.addEventListener(Ws,function(we){we.target===c&&(k.swalCloseEventFinishedCallback(),delete k.swalCloseEventFinishedCallback)})},wp=(a,c)=>{setTimeout(()=>{typeof c=="function"&&c.bind(a.params)(),a._destroy()})};function yp(a,c,g){const v=n.domCache.get(a);c.forEach(M=>{v[M].disabled=g})}function bp(a,c){if(!!a)if(a.type==="radio"){const v=a.parentNode.parentNode.querySelectorAll("input");for(let M=0;MObject.prototype.hasOwnProperty.call(Go,a),_p=a=>pS.indexOf(a)!==-1,$l=a=>hS[a],gS=a=>{vp(a)||p(`Unknown parameter "${a}"`)},wS=a=>{mS.includes(a)&&p(`The parameter "${a}" is incompatible with toasts`)},yS=a=>{$l(a)&&E(a,$l(a))},bS=a=>{a.backdrop===!1&&a.allowOutsideClick&&p('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const c in a)gS(c),a.toast&&wS(c),yS(c)};function vS(a){const c=ee(),g=n.innerParams.get(this);if(!c||et(c,g.hideClass.popup)){p("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 v=_S(a),M=Object.assign({},g,v);up(this,M),n.innerParams.set(this,M),Object.defineProperties(this,{params:{value:Object.assign({},this.params,a),writable:!1,enumerable:!0}})}const _S=a=>{const c={};return Object.keys(a).forEach(g=>{_p(g)?c[g]=a[g]:p(`Invalid parameter to update: ${g}`)}),c};function xS(){const a=n.domCache.get(this),c=n.innerParams.get(this);if(!c){xp(this);return}a.popup&&k.swalCloseEventFinishedCallback&&(k.swalCloseEventFinishedCallback(),delete k.swalCloseEventFinishedCallback),typeof c.didDestroy=="function"&&c.didDestroy(),CS(this)}const CS=a=>{xp(a),delete a.params,delete k.keydownHandler,delete k.keydownTarget,delete k.currentInstance},xp=a=>{a.isAwaitingPromise()?(kl(n,a),n.awaitingPromise.set(a,!0)):(kl(Gs,a),kl(n,a))},kl=(a,c)=>{for(const g in a)a[g].delete(c)};var Cp=Object.freeze({__proto__:null,_destroy:xS,close:kr,closeModal:kr,closePopup:kr,closeToast:kr,disableButtons:lS,disableInput:uS,disableLoading:dp,enableButtons:aS,enableInput:cS,getInput:Lk,handleAwaitingPromise:Js,hideLoading:dp,isAwaitingPromise:tS,rejectPromise:oS,resetValidationMessage:fS,showValidationMessage:dS,update:vS});const Jo=a=>{let c=ee();c||new Er,c=ee();const g=R();xn()?K(Oe()):$S(c,a),q(g),c.setAttribute("data-loading","true"),c.setAttribute("aria-busy","true"),c.focus()},$S=(a,c)=>{const g=de(),v=R();!c&&j(ie())&&(c=ie()),q(g),c&&(K(c),v.setAttribute("data-button-to-replace",c.className)),v.parentNode.insertBefore(v,c),T([a,g],i.loading)},kS=(a,c)=>{c.input==="select"||c.input==="radio"?OS(a,c):["text","email","number","tel","textarea"].includes(c.input)&&(N(c.inputValue)||O(c.inputValue))&&(Jo(ie()),IS(a,c))},SS=(a,c)=>{const g=a.getInput();if(!g)return null;switch(c.input){case"checkbox":return ES(g);case"radio":return AS(g);case"file":return PS(g);default:return c.inputAutoTrim?g.value.trim():g.value}},ES=a=>a.checked?1:0,AS=a=>a.checked?a.value:null,PS=a=>a.files.length?a.getAttribute("multiple")!==null?a.files:a.files[0]:null,OS=(a,c)=>{const g=ee(),v=M=>{TS[c.input](g,Sl(M),c)};N(c.inputOptions)||O(c.inputOptions)?(Jo(ie()),V(c.inputOptions).then(M=>{a.hideLoading(),v(M)})):typeof c.inputOptions=="object"?v(c.inputOptions):m(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof c.inputOptions}`)},IS=(a,c)=>{const g=a.getInput();K(g),V(c.inputValue).then(v=>{g.value=c.input==="number"?`${parseFloat(v)||0}`:`${v}`,q(g),g.focus(),a.hideLoading()}).catch(v=>{m(`Error in inputValue promise: ${v}`),g.value="",q(g),g.focus(),a.hideLoading()})},TS={select:(a,c,g)=>{const v=X(a,i.select),M=(we,We,Lt)=>{const Ct=document.createElement("option");Ct.value=Lt,ct(Ct,We),Ct.selected=$p(Lt,g.inputValue),we.appendChild(Ct)};c.forEach(we=>{const We=we[0],Lt=we[1];if(Array.isArray(Lt)){const Ct=document.createElement("optgroup");Ct.label=We,Ct.disabled=!1,v.appendChild(Ct),Lt.forEach(Xo=>M(Ct,Xo[1],Xo[0]))}else M(v,Lt,We)}),v.focus()},radio:(a,c,g)=>{const v=X(a,i.radio);c.forEach(we=>{const We=we[0],Lt=we[1],Ct=document.createElement("input"),Xo=document.createElement("label");Ct.type="radio",Ct.name=i.radio,Ct.value=We,$p(We,g.inputValue)&&(Ct.checked=!0);const Ol=document.createElement("span");ct(Ol,Lt),Ol.className=i.label,Xo.appendChild(Ct),Xo.appendChild(Ol),v.appendChild(Xo)});const M=v.querySelectorAll("input");M.length&&M[0].focus()}},Sl=a=>{const c=[];return typeof Map<"u"&&a instanceof Map?a.forEach((g,v)=>{let M=g;typeof M=="object"&&(M=Sl(M)),c.push([v,M])}):Object.keys(a).forEach(g=>{let v=a[g];typeof v=="object"&&(v=Sl(v)),c.push([g,v])}),c},$p=(a,c)=>c&&c.toString()===a.toString(),LS=a=>{const c=n.innerParams.get(a);a.disableButtons(),c.input?kp(a,"confirm"):Al(a,!0)},MS=a=>{const c=n.innerParams.get(a);a.disableButtons(),c.returnInputValueOnDeny?kp(a,"deny"):El(a,!1)},BS=(a,c)=>{a.disableButtons(),c(Ko.cancel)},kp=(a,c)=>{const g=n.innerParams.get(a);if(!g.input){m(`The "input" parameter is needed to be set when using returnInputValueOn${f(c)}`);return}const v=SS(a,g);g.inputValidator?DS(a,v,c):a.getInput().checkValidity()?c==="deny"?El(a,v):Al(a,v):(a.enableButtons(),a.showValidationMessage(g.validationMessage))},DS=(a,c,g)=>{const v=n.innerParams.get(a);a.disableInput(),Promise.resolve().then(()=>V(v.inputValidator(c,v.validationMessage))).then(we=>{a.enableButtons(),a.enableInput(),we?a.showValidationMessage(we):g==="deny"?El(a,c):Al(a,c)})},El=(a,c)=>{const g=n.innerParams.get(a||void 0);g.showLoaderOnDeny&&Jo(B()),g.preDeny?(n.awaitingPromise.set(a||void 0,!0),Promise.resolve().then(()=>V(g.preDeny(c,g.validationMessage))).then(M=>{M===!1?(a.hideLoading(),Js(a)):a.close({isDenied:!0,value:typeof M>"u"?c:M})}).catch(M=>Ep(a||void 0,M))):a.close({isDenied:!0,value:c})},Sp=(a,c)=>{a.close({isConfirmed:!0,value:c})},Ep=(a,c)=>{a.rejectPromise(c)},Al=(a,c)=>{const g=n.innerParams.get(a||void 0);g.showLoaderOnConfirm&&Jo(),g.preConfirm?(a.resetValidationMessage(),n.awaitingPromise.set(a||void 0,!0),Promise.resolve().then(()=>V(g.preConfirm(c,g.validationMessage))).then(M=>{j(Ee())||M===!1?(a.hideLoading(),Js(a)):Sp(a,typeof M>"u"?c:M)}).catch(M=>Ep(a||void 0,M))):Sp(a,c)},NS=(a,c,g)=>{n.innerParams.get(a).toast?RS(a,c,g):(FS(c),HS(c),US(a,c,g))},RS=(a,c,g)=>{c.popup.onclick=()=>{const v=n.innerParams.get(a);v&&(jS(v)||v.timer||v.input)||g(Ko.close)}},jS=a=>a.showConfirmButton||a.showDenyButton||a.showCancelButton||a.showCloseButton;let Sr=!1;const FS=a=>{a.popup.onmousedown=()=>{a.container.onmouseup=function(c){a.container.onmouseup=void 0,c.target===a.container&&(Sr=!0)}}},HS=a=>{a.container.onmousedown=()=>{a.popup.onmouseup=function(c){a.popup.onmouseup=void 0,(c.target===a.popup||a.popup.contains(c.target))&&(Sr=!0)}}},US=(a,c,g)=>{c.container.onclick=v=>{const M=n.innerParams.get(a);if(Sr){Sr=!1;return}v.target===c.container&&A(M.allowOutsideClick)&&g(Ko.backdrop)}},zS=a=>typeof a=="object"&&a.jquery,Ap=a=>a instanceof Element||zS(a),qS=a=>{const c={};return typeof a[0]=="object"&&!Ap(a[0])?Object.assign(c,a[0]):["title","html","icon"].forEach((g,v)=>{const M=a[v];typeof M=="string"||Ap(M)?c[g]=M:M!==void 0&&m(`Unexpected type of ${g}! Expected "string" or "Element", got ${typeof M}`)}),c};function VS(){const a=this;for(var c=arguments.length,g=new Array(c),v=0;vk.timeout&&k.timeout.getTimerLeft(),Pp=()=>{if(k.timeout)return x(),k.timeout.stop()},Op=()=>{if(k.timeout){const a=k.timeout.start();return _(a),a}},GS=()=>{const a=k.timeout;return a&&(a.running?Pp():Op())},JS=a=>{if(k.timeout){const c=k.timeout.increase(a);return _(c,!0),c}},YS=()=>k.timeout&&k.timeout.isRunning();let Ip=!1;const Pl={};function XS(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";Pl[a]=this,Ip||(document.body.addEventListener("click",ZS),Ip=!0)}const ZS=a=>{for(let c=a.target;c&&c!==document;c=c.parentNode)for(const g in Pl){const v=c.getAttribute(g);if(v){Pl[g].fire({template:v});return}}};var QS=Object.freeze({__proto__:null,argsToParams:qS,bindClickHandler:XS,clickCancel:Dk,clickConfirm:fp,clickDeny:Bk,enableLoading:Jo,fire:VS,getActions:de,getCancelButton:He,getCloseButton:Xe,getConfirmButton:ie,getContainer:P,getDenyButton:B,getFocusableElements:It,getFooter:Ce,getHtmlContainer:Te,getIcon:Oe,getIconContent:ke,getImage:he,getInputLabel:J,getLoader:R,getPopup:ee,getProgressSteps:se,getTimerLeft:KS,getTimerProgressBar:Ie,getTitle:Se,getValidationMessage:Ee,increaseTimer:JS,isDeprecatedParameter:$l,isLoading:vt,isTimerRunning:YS,isUpdatableParameter:_p,isValidParameter:vp,isVisible:Mk,mixin:WS,resumeTimer:Op,showLoading:Jo,stopTimer:Pp,toggleTimer:GS});class eE{constructor(c,g){this.callback=c,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(c){const g=this.running;return g&&this.stop(),this.remaining+=c,g&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Tp=["swal-title","swal-html","swal-footer"],tE=a=>{const c=typeof a.template=="string"?document.querySelector(a.template):a.template;if(!c)return{};const g=c.content;return cE(g),Object.assign(nE(g),oE(g),sE(g),iE(g),rE(g),aE(g),lE(g,Tp))},nE=a=>{const c={};return Array.from(a.querySelectorAll("swal-param")).forEach(v=>{$o(v,["name","value"]);const M=v.getAttribute("name"),we=v.getAttribute("value");typeof Go[M]=="boolean"?c[M]=we!=="false":typeof Go[M]=="object"?c[M]=JSON.parse(we):c[M]=we}),c},oE=a=>{const c={};return Array.from(a.querySelectorAll("swal-function-param")).forEach(v=>{const M=v.getAttribute("name"),we=v.getAttribute("value");c[M]=new Function(`return ${we}`)()}),c},sE=a=>{const c={};return Array.from(a.querySelectorAll("swal-button")).forEach(v=>{$o(v,["type","color","aria-label"]);const M=v.getAttribute("type");c[`${M}ButtonText`]=v.innerHTML,c[`show${f(M)}Button`]=!0,v.hasAttribute("color")&&(c[`${M}ButtonColor`]=v.getAttribute("color")),v.hasAttribute("aria-label")&&(c[`${M}ButtonAriaLabel`]=v.getAttribute("aria-label"))}),c},iE=a=>{const c={},g=a.querySelector("swal-image");return g&&($o(g,["src","width","height","alt"]),g.hasAttribute("src")&&(c.imageUrl=g.getAttribute("src")),g.hasAttribute("width")&&(c.imageWidth=g.getAttribute("width")),g.hasAttribute("height")&&(c.imageHeight=g.getAttribute("height")),g.hasAttribute("alt")&&(c.imageAlt=g.getAttribute("alt"))),c},rE=a=>{const c={},g=a.querySelector("swal-icon");return g&&($o(g,["type","color"]),g.hasAttribute("type")&&(c.icon=g.getAttribute("type")),g.hasAttribute("color")&&(c.iconColor=g.getAttribute("color")),c.iconHtml=g.innerHTML),c},aE=a=>{const c={},g=a.querySelector("swal-input");g&&($o(g,["type","label","placeholder","value"]),c.input=g.getAttribute("type")||"text",g.hasAttribute("label")&&(c.inputLabel=g.getAttribute("label")),g.hasAttribute("placeholder")&&(c.inputPlaceholder=g.getAttribute("placeholder")),g.hasAttribute("value")&&(c.inputValue=g.getAttribute("value")));const v=Array.from(a.querySelectorAll("swal-input-option"));return v.length&&(c.inputOptions={},v.forEach(M=>{$o(M,["value"]);const we=M.getAttribute("value"),We=M.innerHTML;c.inputOptions[we]=We})),c},lE=(a,c)=>{const g={};for(const v in c){const M=c[v],we=a.querySelector(M);we&&($o(we,[]),g[M.replace(/^swal-/,"")]=we.innerHTML.trim())}return g},cE=a=>{const c=Tp.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(a.children).forEach(g=>{const v=g.tagName.toLowerCase();c.includes(v)||p(`Unrecognized element <${v}>`)})},$o=(a,c)=>{Array.from(a.attributes).forEach(g=>{c.indexOf(g.name)===-1&&p([`Unrecognized attribute "${g.name}" on <${a.tagName.toLowerCase()}>.`,`${c.length?`Allowed attributes are: ${c.join(", ")}`:"To set the value, use HTML within the element."}`])})},Lp=10,uE=a=>{const c=P(),g=ee();typeof a.willOpen=="function"&&a.willOpen(g);const M=window.getComputedStyle(document.body).overflowY;pE(c,g,a),setTimeout(()=>{dE(c,g)},Lp),Tt()&&(fE(c,a.scrollbarPadding,M),qk()),!xn()&&!k.previousActiveElement&&(k.previousActiveElement=document.activeElement),typeof a.didOpen=="function"&&setTimeout(()=>a.didOpen(g)),H(c,i["no-transition"])},Mp=a=>{const c=ee();if(a.target!==c)return;const g=P();c.removeEventListener(Ws,Mp),g.style.overflowY="auto"},dE=(a,c)=>{Ws&&w(c)?(a.style.overflowY="hidden",c.addEventListener(Ws,Mp)):a.style.overflowY="auto"},fE=(a,c,g)=>{Vk(),c&&g!=="hidden"&&Zk(),setTimeout(()=>{a.scrollTop=0})},pE=(a,c,g)=>{T(a,g.showClass.backdrop),c.style.setProperty("opacity","0","important"),q(c,"grid"),setTimeout(()=>{T(c,g.showClass.popup),c.style.removeProperty("opacity")},Lp),T([document.documentElement,document.body],i.shown),g.heightAuto&&g.backdrop&&!g.toast&&T([document.documentElement,document.body],i["height-auto"])};var Bp={email:(a,c)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(a)?Promise.resolve():Promise.resolve(c||"Invalid email address"),url:(a,c)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(a)?Promise.resolve():Promise.resolve(c||"Invalid URL")};function hE(a){a.inputValidator||Object.keys(Bp).forEach(c=>{a.input===c&&(a.inputValidator=Bp[c])})}function mE(a){(!a.target||typeof a.target=="string"&&!document.querySelector(a.target)||typeof a.target!="string"&&!a.target.appendChild)&&(p('Target parameter is not valid, defaulting to "body"'),a.target="body")}function gE(a){hE(a),a.showLoaderOnConfirm&&!a.preConfirm&&p(`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`),mE(a),typeof a.title=="string"&&(a.title=a.title.split(` `).join("
    ")),Vs(a)}let sn;class Yo{constructor(){if(typeof window>"u")return;sn=this;for(var c=arguments.length,g=new Array(c),v=0;v1&&arguments[1]!==void 0?arguments[1]:{};bS(Object.assign({},g,c)),k.currentInstance&&(k.currentInstance._destroy(),Tt()&&mp()),k.currentInstance=sn;const v=yE(c,g);gE(v),Object.freeze(v),k.timeout&&(k.timeout.stop(),delete k.timeout),clearTimeout(k.restoreFocusTimeout);const M=bE(sn);return up(sn,v),n.innerParams.set(sn,v),wE(sn,M,v)}then(c){return n.promise.get(this).then(c)}finally(c){return n.promise.get(this).finally(c)}}const wE=(a,c,g)=>new Promise((v,M)=>{const we=We=>{a.close({isDismissed:!0,dismiss:We})};Gs.swalPromiseResolve.set(a,v),Gs.swalPromiseReject.set(a,M),c.confirmButton.onclick=()=>{LS(a)},c.denyButton.onclick=()=>{MS(a)},c.cancelButton.onclick=()=>{BS(a,we)},c.closeButton.onclick=()=>{we(Ko.close)},NS(a,c,we),Nk(a,k,g,we),kS(a,g),uE(g),vE(k,g,we),_E(c,g),setTimeout(()=>{c.container.scrollTop=0})}),yE=(a,c)=>{const g=tE(a),v=Object.assign({},Go,c,g,a);return v.showClass=Object.assign({},Go.showClass,v.showClass),v.hideClass=Object.assign({},Go.hideClass,v.hideClass),v},bE=a=>{const c={popup:ee(),container:P(),actions:de(),confirmButton:ie(),denyButton:B(),cancelButton:He(),loader:R(),closeButton:Xe(),validationMessage:Ee(),progressSteps:se()};return n.domCache.set(a,c),c},vE=(a,c,g)=>{const v=Ie();K(v),c.timer&&(a.timeout=new eE(()=>{g("timer"),delete a.timeout},c.timer),c.timerProgressBar&&(q(v),at(v,c,"timerProgressBar"),setTimeout(()=>{a.timeout&&a.timeout.running&&_(c.timer)})))},_E=(a,c)=>{if(!c.toast){if(!A(c.allowEnterKey)){CE();return}xE(a,c)||Cl(-1,1)}},xE=(a,c)=>c.focusDeny&&j(a.denyButton)?(a.denyButton.focus(),!0):c.focusCancel&&j(a.cancelButton)?(a.cancelButton.focus(),!0):c.focusConfirm&&j(a.confirmButton)?(a.confirmButton.focus(),!0):!1,CE=()=>{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 a=new Date,c=localStorage.getItem("swal-initiation");c?(a.getTime()-Date.parse(c))/(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",`${a}`)}Object.assign(Yo.prototype,Cp),Object.assign(Yo,QS),Object.keys(Cp).forEach(a=>{Yo[a]=function(){if(sn)return sn[a](...arguments)}}),Yo.DismissReason=Ko,Yo.version="11.7.2";const Er=Yo;return Er.default=Er,Er}),typeof $n<"u"&&$n.Sweetalert2&&($n.swal=$n.sweetAlert=$n.Swal=$n.SweetAlert=$n.Sweetalert2),typeof document<"u"&&function(n,o){var s=n.createElement("style");if(n.getElementsByTagName("head")[0].appendChild(s),s.styleSheet)s.styleSheet.disabled||(s.styleSheet.cssText=o);else try{s.innerHTML=o}catch{s.innerText=o}}(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}')})(Dl);const fe=Dl.exports,Vp=["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"],Wp=["jpg","jpeg","png","gif","bmp","svg"],Kp=["mp3","wav","wma","ogg","ape","flac","aac"];function Or(e,...t){return new e(t[0])}function es(){return Math.floor(Date.now()/1e3)}function Nl(e,t,n="text/plain"){const o=document.createElement("a");document.body.appendChild(o),o.setAttribute("style","display:none");const s=new Blob([e],{type:n}),i=window.URL.createObjectURL(s);o.href=i,o.download=t,o.click(),window.URL.revokeObjectURL(i)}function Jt(e){if(typeof Qo=="function")return Qo(e,"text"),!0;const t=n=>{var o;(o=n.clipboardData)==null||o.setData("text/plain",e),n.preventDefault(),document.removeEventListener("copy",t)};return document.addEventListener("copy",t),document.execCommand("copy")}function Gp(e,t){return e=e.replace(/^[\\]+/g,""),t?"/"+e:e}function Rl(e){return/^magnet:\?xt=urn:btih/.test(e)}function jl(e){return/^ed2k:\/\/\|file\|/.test(e)}function Fl(e){return`magnet:?xt=urn:btih:${e.toUpperCase()}`}function Hl(e){const t=e.match(/([a-z\d]{32,40})/i);return t?t[1]:""}function Jp(e,t=!0){return(t?/^([a-z\d]{32})$|^([a-z\d]{40})$/i:/^[a-z\d]{32,40}$/i).test(e)}function Yp(e,t=location.href){const n=new RegExp("(\\?|#|&)"+e+"=([^&#]*)(&|#|$)"),o=t.match(n);return o?o[2]:""}function Xs(e,t=2){if(Number.isNaN(e)||(e=typeof e=="string"?parseInt(e):e,!e))return"0";const n=1024,o=t,s=["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(o))+" "+s[i]}function Ul(e){const t=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],n=new RegExp(`^(\\d+(?:\\.\\d+)?)(${t.join("|")})$`,"i"),o=e.match(n);if(!o)throw new Error(`无效的文件大小!${e}`);const s=parseFloat(o[1]),i=o[2].toUpperCase(),r=t.indexOf(i);if(r<0)throw new Error(`无效的文件大小!${e}`);return s*Math.pow(1024,r)}function zl(e,t=document,n=XPathResult.ORDERED_NODE_SNAPSHOT_TYPE){const o=[],s=document.evaluate(e,t,null,n,null);for(let i=0;i0&&r(l)}else{const l=o.querySelectorAll(e);l.length&&r(Array.from(l))}}try{return await Zs(i,t,n)}catch(r){throw console.warn("[find]",r),new Error(`查找元素超时:${e}`)}}async function kn(e,t=100,n=12e4){const o=e.indexOf("//")===0;function s(i){if(o){const r=zl(e);r.length>0&&i(unsafeWindow.$(r))}else{const r=unsafeWindow.$(e);r.length&&i(r)}}try{return await Zs(s,t,n)}catch(i){throw console.warn("[find]",i),new Error(`查找元素超时:${e}`)}}async function Zs(e,t,n){return new Promise(async(o,s)=>{if(typeof e!="function"){s("提供的参数`fulfill`不是一个Function!");return}let i=!1;e(d=>{i=!0,o(d)});let r=setInterval(async()=>{if(i){clearTimeout(l),clearInterval(r);return}e(d=>{clearTimeout(l),clearInterval(r),o(d)})},t),l=setTimeout(()=>{clearInterval(r),s("超时")},n)})}async function Yt(e){return new Promise(t=>{setTimeout(t,e)})}function ql(e){const t=new URLSearchParams;let n;for(n in e)t.append(n,e[n].toString());return t.toString()}async function ce(e){return fe.fire({toast:!0,position:"top",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:t=>{t.addEventListener("mouseenter",fe.stopTimer),t.addEventListener("mouseleave",fe.resumeTimer)},...e})}function Qs(e,t){t=t||window,t.postMessage(e)}function Yn(e,t,n){if(n){const o=Ys(e,{});Pr(e,{...o,...t})}else Pr(e,t)}function Sn(e,t,n){let o;return function(...s){const i=()=>{o=void 0,n||e.apply(this,s)},r=n&&o===void 0;clearTimeout(o),o=setTimeout(i,t),r&&e.apply(this,s)}}function Xp(e){return e?Vp.indexOf(e.toLowerCase())>-1:!1}function Zp(e){return e?Wp.indexOf(e.toLowerCase())>-1:!1}function Qp(e){return e?Kp.indexOf(e.toLowerCase())>-1:!1}var Ae=(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))(Ae||{}),ts=(e=>(e.listItemHover="列表项悬浮菜单",e.listItemHoverSub="列表项悬浮子菜单",e.listItemContext="列表项右键菜单",e.listItemContextSub="列表项右键子菜单",e.selection="选中项菜单",e.selectionSub="选中项子菜单",e.dirContext="当前目录右键菜单",e.dirContextSub="当前目录右键子菜单",e))(ts||{}),Xn=(e=>(e[e.after=0]="after",e[e.before=1]="before",e))(Xn||{});const lt={get:async(e,t)=>Ys(e,t),set:async(e,t)=>Pr(e,t),remove:async e=>zp(e)},Vl="clouddrive_configs";function Ir(e){return{active:!1,url:"http://localhost:19798",root:"/115",memo:"",...e}}async function Wl(){const e=[Ir()],t=await lt.get(Vl,e);return t||e}async function Kl(e){e.some(t=>t.active)||(e[0].active=!0),await lt.set(Vl,e)}async function Tr(){return(await Wl()).find(t=>t.active)||Ir()}var Lr=(e=>(e.play="play",e.download="download",e))(Lr||{});function Gl(e){return e.startsWith("file://")}async function ei(e,t,n){let{url:o,root:s}=e;if(!o)throw new Error("未设置CloudDrive地址!");(o.startsWith("/")||o.startsWith("\\"))&&(o=`file:///${o}`),Gl(o);const i=/^https?:\/\//.test(o);if(i&&!s)throw new Error("当协议为http/https时,必须设置CloudDrive资源根路径!");s&&(s=s.replace(/^(\/+)?/g,"/")),t=t.replace(/^(\/+)?/g,"/");const r=`${s}${t}`,l=n==="play"?"True":"False";let d="";return i?d=`${o}/static/${o.replace("://","/")}/${l}/${encodeURIComponent(r)}`:(o=o.replace(/\/+$/,""),d=`${o}${r}`),console.log("[Cloud115 Enhancer] buildCloudDriveUrl",d),d}async function Jl(e,t){let{url:n,root:o}=e;if(!n)throw new Error("未设置CloudDrive地址!");return(n.startsWith("/")||n.startsWith("\\"))&&(n=`file:///${n}`),Gl(n)?await ei(e,t,"play"):await ei(e,t,"play")+".clfsplaylist.m3u"}var $t=(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))($t||{});const eh={[-1]:"失败",[0]:"违规",[1]:"下载中",[2]:"成功"};var kt=(e=>(e.all="all",e.failed="failed",e.success="success",e.magnet="magnet",e.magnetEd2k="magnetEd2k",e))(kt||{}),Yl=(e=>(e[e.true=1]="true",e[e.false=0]="false",e))(Yl||{}),mt=(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))(mt||{}),Qe=(e=>(e.all="全部",e.video="视频",e.audio="音频",e.image="图片",e.doc="文档",e.app="应用",e.archive="压缩包",e))(Qe||{}),Xl=(e=>(e.userPtime="user_ptime",e.fileName="file_name",e.fileSize="file_size",e.fileType="file_type",e))(Xl||{});function th(e){return{offset:0,limit:1150,aid:1,cid:"",format:"json",o:"user_ptime",asc:0,search_value:"",...e}}function Zl(e){return{aid:1,cid:"",o:"user_ptime",asc:0,offset:0,show_dir:1,limit:115,natsort:0,format:"json",...e}}function Ql(e,t){return function(){return e.apply(t,arguments)}}const{toString:ec}=Object.prototype,{getPrototypeOf:Mr}=Object,Br=(e=>t=>{const n=ec.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rn=e=>(e=e.toLowerCase(),t=>Br(t)===e),ti=e=>t=>typeof t===e,{isArray:Po}=Array,ns=ti("undefined");function nh(e){return e!==null&&!ns(e)&&e.constructor!==null&&!ns(e.constructor)&&En(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tc=rn("ArrayBuffer");function oh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tc(e.buffer),t}const sh=ti("string"),En=ti("function"),nc=ti("number"),Dr=e=>e!==null&&typeof e=="object",ih=e=>e===!0||e===!1,ni=e=>{if(Br(e)!=="object")return!1;const t=Mr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},rh=rn("Date"),ah=rn("File"),lh=rn("Blob"),ch=rn("FileList"),uh=e=>Dr(e)&&En(e.pipe),dh=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||ec.call(e)===t||En(e.toString)&&e.toString()===t)},fh=rn("URLSearchParams"),ph=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function os(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,s;if(typeof e!="object"&&(e=[e]),Po(e))for(o=0,s=e.length;o0;)if(s=n[o],t===s.toLowerCase())return s;return null}const sc=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ic=e=>!ns(e)&&e!==sc;function Nr(){const{caseless:e}=ic(this)&&this||{},t={},n=(o,s)=>{const i=e&&oc(t,s)||s;ni(t[i])&&ni(o)?t[i]=Nr(t[i],o):ni(o)?t[i]=Nr({},o):Po(o)?t[i]=o.slice():t[i]=o};for(let o=0,s=arguments.length;o(os(t,(s,i)=>{n&&En(s)?e[i]=Ql(s,n):e[i]=s},{allOwnKeys:o}),e),mh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gh=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},wh=(e,t,n,o)=>{let s,i,r;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!o||o(r,e,t))&&!l[r]&&(t[r]=e[r],l[r]=!0);e=n!==!1&&Mr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},yh=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},bh=e=>{if(!e)return null;if(Po(e))return e;let t=e.length;if(!nc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},vh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Mr(Uint8Array)),_h=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},xh=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},Ch=rn("HTMLFormElement"),$h=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,s){return o.toUpperCase()+s}),rc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kh=rn("RegExp"),ac=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};os(n,(s,i)=>{t(s,i,e)!==!1&&(o[i]=s)}),Object.defineProperties(e,o)},Sh=e=>{ac(e,(t,n)=>{if(En(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(!!En(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Eh=(e,t)=>{const n={},o=s=>{s.forEach(i=>{n[i]=!0})};return Po(e)?o(e):o(String(e).split(t)),n},Ah=()=>{},Ph=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Rr="abcdefghijklmnopqrstuvwxyz",lc="0123456789",cc={DIGIT:lc,ALPHA:Rr,ALPHA_DIGIT:Rr+Rr.toUpperCase()+lc},Oh=(e=16,t=cc.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function Ih(e){return!!(e&&En(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const z={isArray:Po,isArrayBuffer:tc,isBuffer:nh,isFormData:dh,isArrayBufferView:oh,isString:sh,isNumber:nc,isBoolean:ih,isObject:Dr,isPlainObject:ni,isUndefined:ns,isDate:rh,isFile:ah,isBlob:lh,isRegExp:kh,isFunction:En,isStream:uh,isURLSearchParams:fh,isTypedArray:vh,isFileList:ch,forEach:os,merge:Nr,extend:hh,trim:ph,stripBOM:mh,inherits:gh,toFlatObject:wh,kindOf:Br,kindOfTest:rn,endsWith:yh,toArray:bh,forEachEntry:_h,matchAll:xh,isHTMLForm:Ch,hasOwnProperty:rc,hasOwnProp:rc,reduceDescriptors:ac,freezeMethods:Sh,toObjectSet:Eh,toCamelCase:$h,noop:Ah,toFiniteNumber:Ph,findKey:oc,global:sc,isContextDefined:ic,ALPHABET:cc,generateString:Oh,isSpecCompliantForm:Ih,toJSONObject:e=>{const t=new Array(10),n=(o,s)=>{if(Dr(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[s]=o;const i=Po(o)?[]:{};return os(o,(r,l)=>{const d=n(r,s+1);!ns(d)&&(i[l]=d)}),t[s]=void 0,i}}return o};return n(e,0)}};function je(e,t,n,o,s){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),o&&(this.request=o),s&&(this.response=s)}z.inherits(je,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:z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const uc=je.prototype,dc={};["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=>{dc[e]={value:e}}),Object.defineProperties(je,dc),Object.defineProperty(uc,"isAxiosError",{value:!0}),je.from=(e,t,n,o,s,i)=>{const r=Object.create(uc);return z.toFlatObject(e,r,function(d){return d!==Error.prototype},l=>l!=="isAxiosError"),je.call(r,e.message,t,n,o,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const Th=null;function jr(e){return z.isPlainObject(e)||z.isArray(e)}function fc(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function pc(e,t,n){return e?e.concat(t).map(function(s,i){return s=fc(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function Lh(e){return z.isArray(e)&&!e.some(jr)}const Mh=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function oi(e,t,n){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,N){return!z.isUndefined(N[A])});const o=n.metaTokens,s=n.visitor||p,i=n.dots,r=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(s))throw new TypeError("visitor must be a function");function f(E){if(E===null)return"";if(z.isDate(E))return E.toISOString();if(!d&&z.isBlob(E))throw new je("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(E)||z.isTypedArray(E)?d&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function p(E,A,N){let V=E;if(E&&!N&&typeof E=="object"){if(z.endsWith(A,"{}"))A=o?A:A.slice(0,-2),E=JSON.stringify(E);else if(z.isArray(E)&&Lh(E)||(z.isFileList(E)||z.endsWith(A,"[]"))&&(V=z.toArray(E)))return A=fc(A),V.forEach(function(P,D){!(z.isUndefined(P)||P===null)&&t.append(r===!0?pc([A],D,i):r===null?A:A+"[]",f(P))}),!1}return jr(E)?!0:(t.append(pc(N,A,i),f(E)),!1)}const m=[],y=Object.assign(Mh,{defaultVisitor:p,convertValue:f,isVisitable:jr});function C(E,A){if(!z.isUndefined(E)){if(m.indexOf(E)!==-1)throw Error("Circular reference detected in "+A.join("."));m.push(E),z.forEach(E,function(V,O){(!(z.isUndefined(V)||V===null)&&s.call(t,V,z.isString(O)?O.trim():O,A,y))===!0&&C(V,A?A.concat(O):[O])}),m.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return C(e),t}function hc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Fr(e,t){this._pairs=[],e&&oi(e,this,t)}const mc=Fr.prototype;mc.append=function(t,n){this._pairs.push([t,n])},mc.toString=function(t){const n=t?function(o){return t.call(this,o,hc)}:hc;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Bh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gc(e,t,n){if(!t)return e;const o=n&&n.encode||Bh,s=n&&n.serialize;let i;if(s?i=s(t,n):i=z.isURLSearchParams(t)?t.toString():new Fr(t,n).toString(o),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Dh{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(o){o!==null&&t(o)})}}const wc=Dh,yc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nh=typeof URLSearchParams<"u"?URLSearchParams:Fr,Rh=typeof FormData<"u"?FormData:null,jh=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Fh=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Xt={isBrowser:!0,classes:{URLSearchParams:Nh,FormData:Rh,Blob},isStandardBrowserEnv:jh,isStandardBrowserWebWorkerEnv:Fh,protocols:["http","https","file","blob","url","data"]};function Hh(e,t){return oi(e,new Xt.classes.URLSearchParams,Object.assign({visitor:function(n,o,s,i){return Xt.isNode&&z.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Uh(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function zh(e){const t={},n=Object.keys(e);let o;const s=n.length;let i;for(o=0;o=n.length;return r=!r&&z.isArray(s)?s.length:r,d?(z.hasOwnProp(s,r)?s[r]=[s[r],o]:s[r]=o,!l):((!s[r]||!z.isObject(s[r]))&&(s[r]=[]),t(n,o,s[r],i)&&z.isArray(s[r])&&(s[r]=zh(s[r])),!l)}if(z.isFormData(e)&&z.isFunction(e.entries)){const n={};return z.forEachEntry(e,(o,s)=>{t(Uh(o),s,n,0)}),n}return null}const qh={"Content-Type":void 0};function Vh(e,t,n){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const si={transitional:yc,adapter:["xhr","http"],transformRequest:[function(t,n){const o=n.getContentType()||"",s=o.indexOf("application/json")>-1,i=z.isObject(t);if(i&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return s&&s?JSON.stringify(bc(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Hh(t,this.formSerializer).toString();if((l=z.isFileList(t))||o.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return oi(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Vh(t)):t}],transformResponse:[function(t){const n=this.transitional||si.transitional,o=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&z.isString(t)&&(o&&!this.responseType||s)){const r=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(r)throw l.name==="SyntaxError"?je.from(l,je.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xt.classes.FormData,Blob:Xt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};z.forEach(["delete","get","head"],function(t){si.headers[t]={}}),z.forEach(["post","put","patch"],function(t){si.headers[t]=z.merge(qh)});const Hr=si,Wh=z.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"]),Kh=e=>{const t={};let n,o,s;return e&&e.split(` `).forEach(function(r){s=r.indexOf(":"),n=r.substring(0,s).trim().toLowerCase(),o=r.substring(s+1).trim(),!(!n||t[n]&&Wh[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},vc=Symbol("internals");function ss(e){return e&&String(e).trim().toLowerCase()}function ii(e){return e===!1||e==null?e:z.isArray(e)?e.map(ii):String(e)}function Gh(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}function Jh(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function Ur(e,t,n,o,s){if(z.isFunction(o))return o.call(this,t,n);if(s&&(t=n),!!z.isString(t)){if(z.isString(o))return t.indexOf(o)!==-1;if(z.isRegExp(o))return o.test(t)}}function Yh(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function Xh(e,t){const n=z.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(s,i,r){return this[o].call(this,t,s,i,r)},configurable:!0})})}class ri{constructor(t){t&&this.set(t)}set(t,n,o){const s=this;function i(l,d,f){const p=ss(d);if(!p)throw new Error("header name must be a non-empty string");const m=z.findKey(s,p);(!m||s[m]===void 0||f===!0||f===void 0&&s[m]!==!1)&&(s[m||d]=ii(l))}const r=(l,d)=>z.forEach(l,(f,p)=>i(f,p,d));return z.isPlainObject(t)||t instanceof this.constructor?r(t,n):z.isString(t)&&(t=t.trim())&&!Jh(t)?r(Kh(t),n):t!=null&&i(n,t,o),this}get(t,n){if(t=ss(t),t){const o=z.findKey(this,t);if(o){const s=this[o];if(!n)return s;if(n===!0)return Gh(s);if(z.isFunction(n))return n.call(this,s,o);if(z.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ss(t),t){const o=z.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Ur(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let s=!1;function i(r){if(r=ss(r),r){const l=z.findKey(o,r);l&&(!n||Ur(o,o[l],l,n))&&(delete o[l],s=!0)}}return z.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let o=n.length,s=!1;for(;o--;){const i=n[o];(!t||Ur(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,o={};return z.forEach(this,(s,i)=>{const r=z.findKey(o,i);if(r){n[r]=ii(s),delete n[i];return}const l=t?Yh(i):String(i).trim();l!==i&&delete n[i],n[l]=ii(s),o[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return z.forEach(this,(o,s)=>{o!=null&&o!==!1&&(n[s]=t&&z.isArray(o)?o.join(", "):o)}),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 o=new this(t);return n.forEach(s=>o.set(s)),o}static accessor(t){const o=(this[vc]=this[vc]={accessors:{}}).accessors,s=this.prototype;function i(r){const l=ss(r);o[l]||(Xh(s,r),o[l]=!0)}return z.isArray(t)?t.forEach(i):i(t),this}}ri.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),z.freezeMethods(ri.prototype),z.freezeMethods(ri);const an=ri;function zr(e,t){const n=this||Hr,o=t||n,s=an.from(o.headers);let i=o.data;return z.forEach(e,function(l){i=l.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function _c(e){return!!(e&&e.__CANCEL__)}function is(e,t,n){je.call(this,e==null?"canceled":e,je.ERR_CANCELED,t,n),this.name="CanceledError"}z.inherits(is,je,{__CANCEL__:!0});function Zh(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new je("Request failed with status code "+n.status,[je.ERR_BAD_REQUEST,je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Qh=Xt.isStandardBrowserEnv?function(){return{write:function(n,o,s,i,r,l){const d=[];d.push(n+"="+encodeURIComponent(o)),z.isNumber(s)&&d.push("expires="+new Date(s).toGMTString()),z.isString(i)&&d.push("path="+i),z.isString(r)&&d.push("domain="+r),l===!0&&d.push("secure"),document.cookie=d.join("; ")},read:function(n){const o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function em(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tm(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function xc(e,t){return e&&!em(t)?tm(e,t):t}const nm=Xt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function s(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 o=s(window.location.href),function(r){const l=z.isString(r)?s(r):r;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}();function om(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function sm(e,t){e=e||10;const n=new Array(e),o=new Array(e);let s=0,i=0,r;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),p=o[i];r||(r=f),n[s]=d,o[s]=f;let m=i,y=0;for(;m!==s;)y+=n[m++],m=m%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),f-r{const i=s.loaded,r=s.lengthComputable?s.total:void 0,l=i-n,d=o(l),f=i<=r;n=i;const p={loaded:i,total:r,progress:r?i/r:void 0,bytes:l,rate:d||void 0,estimated:d&&r&&f?(r-i)/d:void 0,event:s};p[t?"download":"upload"]=!0,e(p)}}const ai={http:Th,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){let s=e.data;const i=an.from(e.headers).normalize(),r=e.responseType;let l;function d(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}z.isFormData(s)&&(Xt.isStandardBrowserEnv||Xt.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let f=new XMLHttpRequest;if(e.auth){const C=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(C+":"+E))}const p=xc(e.baseURL,e.url);f.open(e.method.toUpperCase(),gc(p,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function m(){if(!f)return;const C=an.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),A={data:!r||r==="text"||r==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:C,config:e,request:f};Zh(function(V){n(V),d()},function(V){o(V),d()},A),f=null}if("onloadend"in f?f.onloadend=m:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(m)},f.onabort=function(){!f||(o(new je("Request aborted",je.ECONNABORTED,e,f)),f=null)},f.onerror=function(){o(new je("Network Error",je.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let E=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const A=e.transitional||yc;e.timeoutErrorMessage&&(E=e.timeoutErrorMessage),o(new je(E,A.clarifyTimeoutError?je.ETIMEDOUT:je.ECONNABORTED,e,f)),f=null},Xt.isStandardBrowserEnv){const C=(e.withCredentials||nm(p))&&e.xsrfCookieName&&Qh.read(e.xsrfCookieName);C&&i.set(e.xsrfHeaderName,C)}s===void 0&&i.setContentType(null),"setRequestHeader"in f&&z.forEach(i.toJSON(),function(E,A){f.setRequestHeader(A,E)}),z.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),r&&r!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",Cc(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",Cc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=C=>{!f||(o(!C||C.type?new is(null,e,f):C),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const y=om(p);if(y&&Xt.protocols.indexOf(y)===-1){o(new je("Unsupported protocol "+y+":",je.ERR_BAD_REQUEST,e));return}f.send(s||null)})}};z.forEach(ai,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const im={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:t}=e;let n,o;for(let s=0;se instanceof an?e.toJSON():e;function Oo(e,t){t=t||{};const n={};function o(f,p,m){return z.isPlainObject(f)&&z.isPlainObject(p)?z.merge.call({caseless:m},f,p):z.isPlainObject(p)?z.merge({},p):z.isArray(p)?p.slice():p}function s(f,p,m){if(z.isUndefined(p)){if(!z.isUndefined(f))return o(void 0,f,m)}else return o(f,p,m)}function i(f,p){if(!z.isUndefined(p))return o(void 0,p)}function r(f,p){if(z.isUndefined(p)){if(!z.isUndefined(f))return o(void 0,f)}else return o(void 0,p)}function l(f,p,m){if(m in t)return o(f,p);if(m in e)return o(void 0,f)}const d={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:l,headers:(f,p)=>s(kc(f),kc(p),!0)};return z.forEach(Object.keys(e).concat(Object.keys(t)),function(p){const m=d[p]||s,y=m(e[p],t[p],p);z.isUndefined(y)&&m!==l||(n[p]=y)}),n}const Sc="1.3.3",Vr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Vr[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Ec={};Vr.transitional=function(t,n,o){function s(i,r){return"[Axios v"+Sc+"] Transitional option '"+i+"'"+r+(o?". "+o:"")}return(i,r,l)=>{if(t===!1)throw new je(s(r," has been removed"+(n?" in "+n:"")),je.ERR_DEPRECATED);return n&&!Ec[r]&&(Ec[r]=!0,console.warn(s(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,r,l):!0}};function rm(e,t,n){if(typeof e!="object")throw new je("options must be an object",je.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let s=o.length;for(;s-- >0;){const i=o[s],r=t[i];if(r){const l=e[i],d=l===void 0||r(l,i,e);if(d!==!0)throw new je("option "+i+" must be "+d,je.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new je("Unknown option "+i,je.ERR_BAD_OPTION)}}const Wr={assertOptions:rm,validators:Vr},An=Wr.validators;class li{constructor(t){this.defaults=t,this.interceptors={request:new wc,response:new wc}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Oo(this.defaults,n);const{transitional:o,paramsSerializer:s,headers:i}=n;o!==void 0&&Wr.assertOptions(o,{silentJSONParsing:An.transitional(An.boolean),forcedJSONParsing:An.transitional(An.boolean),clarifyTimeoutError:An.transitional(An.boolean)},!1),s!==void 0&&Wr.assertOptions(s,{encode:An.function,serialize:An.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r;r=i&&z.merge(i.common,i[n.method]),r&&z.forEach(["delete","get","head","post","put","patch","common"],E=>{delete i[E]}),n.headers=an.concat(r,i);const l=[];let d=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(n)===!1||(d=d&&A.synchronous,l.unshift(A.fulfilled,A.rejected))});const f=[];this.interceptors.response.forEach(function(A){f.push(A.fulfilled,A.rejected)});let p,m=0,y;if(!d){const E=[$c.bind(this),void 0];for(E.unshift.apply(E,l),E.push.apply(E,f),y=E.length,p=Promise.resolve(n);m{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](s);o._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{o.subscribe(l),i=l}).then(s);return r.cancel=function(){o.unsubscribe(i)},r},t(function(i,r,l){o.reason||(o.reason=new is(i,r,l),n(o.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 Kr(function(s){t=s}),cancel:t}}}const am=Kr;function lm(e){return function(n){return e.apply(null,n)}}function cm(e){return z.isObject(e)&&e.isAxiosError===!0}const Gr={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(Gr).forEach(([e,t])=>{Gr[t]=e});const um=Gr;function Ac(e){const t=new ci(e),n=Ql(ci.prototype.request,t);return z.extend(n,ci.prototype,t,{allOwnKeys:!0}),z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Ac(Oo(e,s))},n}const ot=Ac(Hr);ot.Axios=ci,ot.CanceledError=is,ot.CancelToken=am,ot.isCancel=_c,ot.VERSION=Sc,ot.toFormData=oi,ot.AxiosError=je,ot.Cancel=ot.CanceledError,ot.all=function(t){return Promise.all(t)},ot.spread=lm,ot.isAxiosError=cm,ot.mergeConfig=Oo,ot.AxiosHeaders=an,ot.formToJSON=e=>bc(z.isHTMLForm(e)?new FormData(e):e),ot.HttpStatusCode=um,ot.default=ot;const Ft=ot,{Axios:NE,AxiosError:RE,CanceledError:jE,isCancel:FE,CancelToken:HE,VERSION:UE,all:zE,Cancel:qE,isAxiosError:VE,spread:WE,toFormData:dm,AxiosHeaders:KE,HttpStatusCode:GE,formToJSON:JE,mergeConfig:YE}=Ft;class fm extends Error{}class Jr extends fm{constructor(){super(...arguments);$e(this,"message","搜索失败!")}}class Pc extends Jr{constructor(){super(...arguments);$e(this,"message","搜索请求响应内容为空!")}}class st{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=st.hexChars,o=st.hexOut;let s,i,r,l;for(l=0;l<4;l+=1)for(i=l*8,s=t[l],r=0;r<8;r+=2)o[i+1+r]=n.charAt(s&15),s>>>=4,o[i+0+r]=n.charAt(s&15),s>>>=4;return o.join("")}static _md5cycle(t,n){let o=t[0],s=t[1],i=t[2],r=t[3];o+=(s&i|~s&r)+n[0]-680876936|0,o=(o<<7|o>>>25)+s|0,r+=(o&s|~o&i)+n[1]-389564586|0,r=(r<<12|r>>>20)+o|0,i+=(r&o|~r&s)+n[2]+606105819|0,i=(i<<17|i>>>15)+r|0,s+=(i&r|~i&o)+n[3]-1044525330|0,s=(s<<22|s>>>10)+i|0,o+=(s&i|~s&r)+n[4]-176418897|0,o=(o<<7|o>>>25)+s|0,r+=(o&s|~o&i)+n[5]+1200080426|0,r=(r<<12|r>>>20)+o|0,i+=(r&o|~r&s)+n[6]-1473231341|0,i=(i<<17|i>>>15)+r|0,s+=(i&r|~i&o)+n[7]-45705983|0,s=(s<<22|s>>>10)+i|0,o+=(s&i|~s&r)+n[8]+1770035416|0,o=(o<<7|o>>>25)+s|0,r+=(o&s|~o&i)+n[9]-1958414417|0,r=(r<<12|r>>>20)+o|0,i+=(r&o|~r&s)+n[10]-42063|0,i=(i<<17|i>>>15)+r|0,s+=(i&r|~i&o)+n[11]-1990404162|0,s=(s<<22|s>>>10)+i|0,o+=(s&i|~s&r)+n[12]+1804603682|0,o=(o<<7|o>>>25)+s|0,r+=(o&s|~o&i)+n[13]-40341101|0,r=(r<<12|r>>>20)+o|0,i+=(r&o|~r&s)+n[14]-1502002290|0,i=(i<<17|i>>>15)+r|0,s+=(i&r|~i&o)+n[15]+1236535329|0,s=(s<<22|s>>>10)+i|0,o+=(s&r|i&~r)+n[1]-165796510|0,o=(o<<5|o>>>27)+s|0,r+=(o&i|s&~i)+n[6]-1069501632|0,r=(r<<9|r>>>23)+o|0,i+=(r&s|o&~s)+n[11]+643717713|0,i=(i<<14|i>>>18)+r|0,s+=(i&o|r&~o)+n[0]-373897302|0,s=(s<<20|s>>>12)+i|0,o+=(s&r|i&~r)+n[5]-701558691|0,o=(o<<5|o>>>27)+s|0,r+=(o&i|s&~i)+n[10]+38016083|0,r=(r<<9|r>>>23)+o|0,i+=(r&s|o&~s)+n[15]-660478335|0,i=(i<<14|i>>>18)+r|0,s+=(i&o|r&~o)+n[4]-405537848|0,s=(s<<20|s>>>12)+i|0,o+=(s&r|i&~r)+n[9]+568446438|0,o=(o<<5|o>>>27)+s|0,r+=(o&i|s&~i)+n[14]-1019803690|0,r=(r<<9|r>>>23)+o|0,i+=(r&s|o&~s)+n[3]-187363961|0,i=(i<<14|i>>>18)+r|0,s+=(i&o|r&~o)+n[8]+1163531501|0,s=(s<<20|s>>>12)+i|0,o+=(s&r|i&~r)+n[13]-1444681467|0,o=(o<<5|o>>>27)+s|0,r+=(o&i|s&~i)+n[2]-51403784|0,r=(r<<9|r>>>23)+o|0,i+=(r&s|o&~s)+n[7]+1735328473|0,i=(i<<14|i>>>18)+r|0,s+=(i&o|r&~o)+n[12]-1926607734|0,s=(s<<20|s>>>12)+i|0,o+=(s^i^r)+n[5]-378558|0,o=(o<<4|o>>>28)+s|0,r+=(o^s^i)+n[8]-2022574463|0,r=(r<<11|r>>>21)+o|0,i+=(r^o^s)+n[11]+1839030562|0,i=(i<<16|i>>>16)+r|0,s+=(i^r^o)+n[14]-35309556|0,s=(s<<23|s>>>9)+i|0,o+=(s^i^r)+n[1]-1530992060|0,o=(o<<4|o>>>28)+s|0,r+=(o^s^i)+n[4]+1272893353|0,r=(r<<11|r>>>21)+o|0,i+=(r^o^s)+n[7]-155497632|0,i=(i<<16|i>>>16)+r|0,s+=(i^r^o)+n[10]-1094730640|0,s=(s<<23|s>>>9)+i|0,o+=(s^i^r)+n[13]+681279174|0,o=(o<<4|o>>>28)+s|0,r+=(o^s^i)+n[0]-358537222|0,r=(r<<11|r>>>21)+o|0,i+=(r^o^s)+n[3]-722521979|0,i=(i<<16|i>>>16)+r|0,s+=(i^r^o)+n[6]+76029189|0,s=(s<<23|s>>>9)+i|0,o+=(s^i^r)+n[9]-640364487|0,o=(o<<4|o>>>28)+s|0,r+=(o^s^i)+n[12]-421815835|0,r=(r<<11|r>>>21)+o|0,i+=(r^o^s)+n[15]+530742520|0,i=(i<<16|i>>>16)+r|0,s+=(i^r^o)+n[2]-995338651|0,s=(s<<23|s>>>9)+i|0,o+=(i^(s|~r))+n[0]-198630844|0,o=(o<<6|o>>>26)+s|0,r+=(s^(o|~i))+n[7]+1126891415|0,r=(r<<10|r>>>22)+o|0,i+=(o^(r|~s))+n[14]-1416354905|0,i=(i<<15|i>>>17)+r|0,s+=(r^(i|~o))+n[5]-57434055|0,s=(s<<21|s>>>11)+i|0,o+=(i^(s|~r))+n[12]+1700485571|0,o=(o<<6|o>>>26)+s|0,r+=(s^(o|~i))+n[3]-1894986606|0,r=(r<<10|r>>>22)+o|0,i+=(o^(r|~s))+n[10]-1051523|0,i=(i<<15|i>>>17)+r|0,s+=(r^(i|~o))+n[1]-2054922799|0,s=(s<<21|s>>>11)+i|0,o+=(i^(s|~r))+n[8]+1873313359|0,o=(o<<6|o>>>26)+s|0,r+=(s^(o|~i))+n[15]-30611744|0,r=(r<<10|r>>>22)+o|0,i+=(o^(r|~s))+n[6]-1560198380|0,i=(i<<15|i>>>17)+r|0,s+=(r^(i|~o))+n[13]+1309151649|0,s=(s<<21|s>>>11)+i|0,o+=(i^(s|~r))+n[4]-145523070|0,o=(o<<6|o>>>26)+s|0,r+=(s^(o|~i))+n[11]-1120210379|0,r=(r<<10|r>>>22)+o|0,i+=(o^(r|~s))+n[2]+718787259|0,i=(i<<15|i>>>17)+r|0,s+=(r^(i|~o))+n[9]-343485551|0,s=(s<<21|s>>>11)+i|0,t[0]=o+t[0]|0,t[1]=s+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(st.stateIdentity),this}appendStr(t){const n=this._buffer8,o=this._buffer32;let s=this._bufferLength,i,r;for(r=0;r>>6)+192,n[s++]=i&63|128;else if(i<55296||i>56319)n[s++]=(i>>>12)+224,n[s++]=i>>>6&63|128,n[s++]=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[s++]=(i>>>18)+240,n[s++]=i>>>12&63|128,n[s++]=i>>>6&63|128,n[s++]=i&63|128}s>=64&&(this._dataLength+=64,st._md5cycle(this._state,o),s-=64,o[0]=o[16])}return this._bufferLength=s,this}appendAsciiStr(t){const n=this._buffer8,o=this._buffer32;let s=this._bufferLength,i,r=0;for(;;){for(i=Math.min(t.length-r,64-s);i--;)n[s++]=t.charCodeAt(r++);if(s<64)break;this._dataLength+=64,st._md5cycle(this._state,o),s=0}return this._bufferLength=s,this}appendByteArray(t){const n=this._buffer8,o=this._buffer32;let s=this._bufferLength,i,r=0;for(;;){for(i=Math.min(t.length-r,64-s);i--;)n[s++]=t[r++];if(s<64)break;this._dataLength+=64,st._md5cycle(this._state,o),s=0}return this._bufferLength=s,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,o=t.state,s=this._state;let i;for(this._dataLength=t.length,this._bufferLength=t.buflen,s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],i=0;i>2)+1;this._dataLength+=n;const r=this._dataLength*8;if(o[n]=128,o[n+1]=o[n+2]=o[n+3]=0,s.set(st.buffer32Identity.subarray(i),i),n>55&&(st._md5cycle(this._state,s),s.set(st.buffer32Identity)),r<=4294967295)s[14]=r;else{const l=r.toString(16).match(/(.*?)(.{0,8})$/);if(l===null)return;const d=parseInt(l[2],16),f=parseInt(l[1],16)||0;s[14]=d,s[15]=f}return st._md5cycle(this._state,s),t?this._state:st._hex(this._state)}}if(st.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),st.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),st.hexChars="0123456789abcdef",st.hexOut=[],st.onePassHasher=new st,st.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592")throw new Error("Md5 self test failed.");var pm={exports:{}};(function(e){var t=function(n){var o=1e7,s=7,i=9007199254740992,r=E(i),l="0123456789abcdefghijklmnopqrstuvwxyz",d=typeof BigInt=="function";function f(h,w,_,x){return typeof h>"u"?f[0]:typeof w<"u"?+w==10&&!_?j(h):H(h,w,_,x):j(h)}function p(h,w){this.value=h,this.sign=w,this.isSmall=!1}p.prototype=Object.create(f.prototype);function m(h){this.value=h,this.sign=h<0,this.isSmall=!0}m.prototype=Object.create(f.prototype);function y(h){this.value=h}y.prototype=Object.create(f.prototype);function C(h){return-i0?Math.floor(h):Math.ceil(h)}function P(h,w){var _=h.length,x=w.length,I=new Array(_),k=0,F=o,U,Y;for(Y=0;Y=F?1:0,I[Y]=U-k*F;for(;Y<_;)U=h[Y]+k,k=U===F?1:0,I[Y++]=U-k*F;return k>0&&I.push(k),I}function D(h,w){return h.length>=w.length?P(h,w):P(w,h)}function G(h,w){var _=h.length,x=new Array(_),I=o,k,F;for(F=0;F<_;F++)k=h[F]-I+w,w=Math.floor(k/I),x[F]=k-w*I,w+=1;for(;w>0;)x[F++]=w%I,w=Math.floor(w/I);return x}p.prototype.add=function(h){var w=j(h);if(this.sign!==w.sign)return this.subtract(w.negate());var _=this.value,x=w.value;return w.isSmall?new p(G(_,Math.abs(x)),this.sign):new p(D(_,x),this.sign)},p.prototype.plus=p.prototype.add,m.prototype.add=function(h){var w=j(h),_=this.value;if(_<0!==w.sign)return this.subtract(w.negate());var x=w.value;if(w.isSmall){if(C(_+x))return new m(_+x);x=E(Math.abs(x))}return new p(G(x,Math.abs(_)),_<0)},m.prototype.plus=m.prototype.add,y.prototype.add=function(h){return new y(this.value+j(h).value)},y.prototype.plus=y.prototype.add;function ee(h,w){var _=h.length,x=w.length,I=new Array(_),k=0,F=o,U,Y;for(U=0;U=0?x=ee(h,w):(x=ee(w,h),_=!_),x=A(x),typeof x=="number"?(_&&(x=-x),new m(x)):new p(x,_)}function ke(h,w,_){var x=h.length,I=new Array(x),k=-w,F=o,U,Y;for(U=0;U=0)},m.prototype.minus=m.prototype.subtract,y.prototype.subtract=function(h){return new y(this.value-j(h).value)},y.prototype.minus=y.prototype.subtract,p.prototype.negate=function(){return new p(this.value,!this.sign)},m.prototype.negate=function(){var h=this.sign,w=new m(-this.value);return w.sign=!h,w},y.prototype.negate=function(){return new y(-this.value)},p.prototype.abs=function(){return new p(this.value,!1)},m.prototype.abs=function(){return new m(Math.abs(this.value))},y.prototype.abs=function(){return new y(this.value>=0?this.value:-this.value)};function Se(h,w){var _=h.length,x=w.length,I=_+x,k=V(I),F=o,U,Y,_e,ye,ue;for(_e=0;_e<_;++_e){ye=h[_e];for(var Ne=0;Ne0;)x[U++]=k%I,k=Math.floor(k/I);return x}function he(h,w){for(var _=[];w-- >0;)_.push(0);return _.concat(h)}function se(h,w){var _=Math.max(h.length,w.length);if(_<=30)return Se(h,w);_=Math.ceil(_/2);var x=h.slice(_),I=h.slice(0,_),k=w.slice(_),F=w.slice(0,_),U=se(I,F),Y=se(x,k),_e=se(D(I,x),D(F,k)),ye=D(D(U,he(ee(ee(_e,U),Y),_)),he(Y,2*_));return N(ye),ye}function Ee(h,w){return-.012*h-.012*w+15e-6*h*w>0}p.prototype.multiply=function(h){var w=j(h),_=this.value,x=w.value,I=this.sign!==w.sign,k;if(w.isSmall){if(x===0)return f[0];if(x===1)return this;if(x===-1)return this.negate();if(k=Math.abs(x),k=0;ue--){for(ye=I-1,Y[ue+x]!==F&&(ye=Math.floor((Y[ue+x]*I+Y[ue+x-1])/F)),Ne=0,xt=0,qs=_e.length,ht=0;htx&&(_e=(_e+1)*F),U=Math.ceil(_e/ye);do{if(ue=Te(w,U),Ce(ue,k)<=0)break;U--}while(U);I.push(U),k=ee(k,ue)}return I.reverse(),[A(I),A(k)]}function R(h,w){var _=h.length,x=V(_),I=o,k,F,U,Y;for(U=0,k=_-1;k>=0;--k)Y=U*I+h[k],F=O(Y/w),U=Y-F*w,x[k]=F|0;return[x,U|0]}function de(h,w){var _,x=j(w);if(d)return[new y(h.value/x.value),new y(h.value%x.value)];var I=h.value,k=x.value,F;if(k===0)throw new Error("Cannot divide by zero");if(h.isSmall)return x.isSmall?[new m(O(I/k)),new m(I%k)]:[f[0],h];if(x.isSmall){if(k===1)return[h,f[0]];if(k==-1)return[h.negate(),f[0]];var U=Math.abs(k);if(Uw.length?1:-1;for(var _=h.length-1;_>=0;_--)if(h[_]!==w[_])return h[_]>w[_]?1:-1;return 0}p.prototype.compareAbs=function(h){var w=j(h),_=this.value,x=w.value;return w.isSmall?1:Ce(_,x)},m.prototype.compareAbs=function(h){var w=j(h),_=Math.abs(this.value),x=w.value;return w.isSmall?(x=Math.abs(x),_===x?0:_>x?1:-1):-1},y.prototype.compareAbs=function(h){var w=this.value,_=j(h).value;return w=w>=0?w:-w,_=_>=0?_:-_,w===_?0:w>_?1:-1},p.prototype.compare=function(h){if(h===1/0)return-1;if(h===-1/0)return 1;var w=j(h),_=this.value,x=w.value;return this.sign!==w.sign?w.sign?1:-1:w.isSmall?this.sign?-1:1:Ce(_,x)*(this.sign?-1:1)},p.prototype.compareTo=p.prototype.compare,m.prototype.compare=function(h){if(h===1/0)return-1;if(h===-1/0)return 1;var w=j(h),_=this.value,x=w.value;return w.isSmall?_==x?0:_>x?1:-1:_<0!==w.sign?_<0?-1:1:_<0?1:-1},m.prototype.compareTo=m.prototype.compare,y.prototype.compare=function(h){if(h===1/0)return-1;if(h===-1/0)return 1;var w=this.value,_=j(h).value;return w===_?0:w>_?1:-1},y.prototype.compareTo=y.prototype.compare,p.prototype.equals=function(h){return this.compare(h)===0},y.prototype.eq=y.prototype.equals=m.prototype.eq=m.prototype.equals=p.prototype.eq=p.prototype.equals,p.prototype.notEquals=function(h){return this.compare(h)!==0},y.prototype.neq=y.prototype.notEquals=m.prototype.neq=m.prototype.notEquals=p.prototype.neq=p.prototype.notEquals,p.prototype.greater=function(h){return this.compare(h)>0},y.prototype.gt=y.prototype.greater=m.prototype.gt=m.prototype.greater=p.prototype.gt=p.prototype.greater,p.prototype.lesser=function(h){return this.compare(h)<0},y.prototype.lt=y.prototype.lesser=m.prototype.lt=m.prototype.lesser=p.prototype.lt=p.prototype.lesser,p.prototype.greaterOrEquals=function(h){return this.compare(h)>=0},y.prototype.geq=y.prototype.greaterOrEquals=m.prototype.geq=m.prototype.greaterOrEquals=p.prototype.geq=p.prototype.greaterOrEquals,p.prototype.lesserOrEquals=function(h){return this.compare(h)<=0},y.prototype.leq=y.prototype.lesserOrEquals=m.prototype.leq=m.prototype.lesserOrEquals=p.prototype.leq=p.prototype.lesserOrEquals,p.prototype.isEven=function(){return(this.value[0]&1)===0},m.prototype.isEven=function(){return(this.value&1)===0},y.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},p.prototype.isOdd=function(){return(this.value[0]&1)===1},m.prototype.isOdd=function(){return(this.value&1)===1},y.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},p.prototype.isPositive=function(){return!this.sign},m.prototype.isPositive=function(){return this.value>0},y.prototype.isPositive=m.prototype.isPositive,p.prototype.isNegative=function(){return this.sign},m.prototype.isNegative=function(){return this.value<0},y.prototype.isNegative=m.prototype.isNegative,p.prototype.isUnit=function(){return!1},m.prototype.isUnit=function(){return Math.abs(this.value)===1},y.prototype.isUnit=function(){return this.abs().value===BigInt(1)},p.prototype.isZero=function(){return!1},m.prototype.isZero=function(){return this.value===0},y.prototype.isZero=function(){return this.value===BigInt(0)},p.prototype.isDivisibleBy=function(h){var w=j(h);return w.isZero()?!1:w.isUnit()?!0:w.compareAbs(2)===0?this.isEven():this.mod(w).isZero()},y.prototype.isDivisibleBy=m.prototype.isDivisibleBy=p.prototype.isDivisibleBy;function Ie(h){var w=h.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 Xe(h,w){for(var _=h.prev(),x=_,I=0,k,F,U;x.isEven();)x=x.divide(2),I++;e:for(F=0;F-i?new m(h-1):new p(r,!0)},y.prototype.prev=function(){return new y(this.value-BigInt(1))};for(var Ze=[1];2*Ze[Ze.length-1]<=o;)Ze.push(2*Ze[Ze.length-1]);var It=Ze.length,Tt=Ze[It-1];function xn(h){return Math.abs(h)<=o}p.prototype.shiftLeft=function(h){var w=j(h).toJSNumber();if(!xn(w))throw new Error(String(w)+" is too large for shifting.");if(w<0)return this.shiftRight(-w);var _=this;if(_.isZero())return _;for(;w>=It;)_=_.multiply(Tt),w-=It-1;return _.multiply(Ze[w])},y.prototype.shiftLeft=m.prototype.shiftLeft=p.prototype.shiftLeft,p.prototype.shiftRight=function(h){var w,_=j(h).toJSNumber();if(!xn(_))throw new Error(String(_)+" is too large for shifting.");if(_<0)return this.shiftLeft(-_);for(var x=this;_>=It;){if(x.isZero()||x.isNegative()&&x.isUnit())return x;w=de(x,Tt),x=w[1].isNegative()?w[0].prev():w[0],_-=It-1}return w=de(x,Ze[_]),w[1].isNegative()?w[0].prev():w[0]},y.prototype.shiftRight=m.prototype.shiftRight=p.prototype.shiftRight;function vt(h,w,_){w=j(w);for(var x=h.isNegative(),I=w.isNegative(),k=x?h.not():h,F=I?w.not():w,U=0,Y=0,_e=null,ye=null,ue=[];!k.isZero()||!F.isZero();)_e=de(k,Tt),U=_e[1].toJSNumber(),x&&(U=Tt-1-U),ye=de(F,Tt),Y=ye[1].toJSNumber(),I&&(Y=Tt-1-Y),k=_e[0],F=ye[0],ue.push(_(U,Y));for(var Ne=_(x?1:0,I?1:0)!==0?t(-1):t(0),xt=ue.length-1;xt>=0;xt-=1)Ne=Ne.multiply(Tt).add(t(ue[xt]));return Ne}p.prototype.not=function(){return this.negate().prev()},y.prototype.not=m.prototype.not=p.prototype.not,p.prototype.and=function(h){return vt(this,h,function(w,_){return w&_})},y.prototype.and=m.prototype.and=p.prototype.and,p.prototype.or=function(h){return vt(this,h,function(w,_){return w|_})},y.prototype.or=m.prototype.or=p.prototype.or,p.prototype.xor=function(h){return vt(this,h,function(w,_){return w^_})},y.prototype.xor=m.prototype.xor=p.prototype.xor;var _t=1<<30,ct=(o&-o)*(o&-o)|_t;function et(h){var w=h.value,_=typeof w=="number"?w|_t:typeof w=="bigint"?w|BigInt(_t):w[0]+w[1]*o|ct;return _&-_}function Jn(h,w){if(w.compareTo(h)<=0){var _=Jn(h,w.square(w)),x=_.p,I=_.e,k=x.multiply(w);return k.compareTo(h)<=0?{p:k,e:I*2+1}:{p:x,e:I*2}}return{p:t(1),e:0}}p.prototype.bitLength=function(){var h=this;return h.compareTo(t(0))<0&&(h=h.negate().subtract(t(1))),h.compareTo(t(0))===0?t(0):t(Jn(h,t(2)).e).add(t(1))},y.prototype.bitLength=m.prototype.bitLength=p.prototype.bitLength;function at(h,w){return h=j(h),w=j(w),h.greater(w)?h:w}function b(h,w){return h=j(h),w=j(w),h.lesser(w)?h:w}function S(h,w){if(h=j(h).abs(),w=j(w).abs(),h.equals(w))return h;if(h.isZero())return w;if(w.isZero())return h;for(var _=f[1],x,I;h.isEven()&&w.isEven();)x=b(et(h),et(w)),h=h.divide(x),w=w.divide(x),_=_.multiply(x);for(;h.isEven();)h=h.divide(et(h));do{for(;w.isEven();)w=w.divide(et(w));h.greater(w)&&(I=w,w=h,h=I),w=w.subtract(h)}while(!w.isZero());return _.isUnit()?h:h.multiply(_)}function L(h,w){return h=j(h).abs(),w=j(w).abs(),h.divide(S(h,w)).multiply(w)}function T(h,w,_){h=j(h),w=j(w);var x=_||Math.random,I=b(h,w),k=at(h,w),F=k.subtract(I).add(1);if(F.isSmall)return I.add(Math.floor(x()*F));for(var U=q(F,o).value,Y=[],_e=!0,ye=0;ye=F){if(Y==="1"&&F===1)continue;throw new Error(Y+" is not a valid digit in base "+w+".")}}w=j(w);var _e=[],ye=h[0]==="-";for(k=ye?1:0;k"&&k=0;k--)x=x.add(h[k].times(I)),I=I.times(w);return _?x.negate():x}function ne(h,w){return w=w||l,h"}function q(h,w){if(w=t(w),w.isZero()){if(h.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(w.equals(-1)){if(h.isZero())return{value:[0],isNegative:!1};if(h.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-h.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var _=Array.apply(null,Array(h.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return _.unshift([1]),{value:[].concat.apply([],_),isNegative:!1}}var x=!1;if(h.isNegative()&&w.isPositive()&&(x=!0,h=h.abs()),w.isUnit())return h.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(h.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:x};for(var I=[],k=h,F;k.isNegative()||k.compareAbs(w)>=0;){F=k.divmod(w),k=F.quotient;var U=F.remainder;U.isNegative()&&(U=w.minus(U).abs(),k=k.next()),I.push(U.toJSNumber())}return I.push(k.toJSNumber()),{value:I.reverse(),isNegative:x}}function K(h,w,_){var x=q(h,w);return(x.isNegative?"-":"")+x.value.map(function(I){return ne(I,_)}).join("")}p.prototype.toArray=function(h){return q(this,h)},m.prototype.toArray=function(h){return q(this,h)},y.prototype.toArray=function(h){return q(this,h)},p.prototype.toString=function(h,w){if(h===n&&(h=10),h!==10)return K(this,h,w);for(var _=this.value,x=_.length,I=String(_[--x]),k="0000000",F;--x>=0;)F=String(_[x]),I+=k.slice(F.length)+F;var U=this.sign?"-":"";return U+I},m.prototype.toString=function(h,w){return h===n&&(h=10),h!=10?K(this,h,w):String(this.value)},y.prototype.toString=m.prototype.toString,y.prototype.toJSON=p.prototype.toJSON=m.prototype.toJSON=function(){return this.toString()},p.prototype.valueOf=function(){return parseInt(this.toString(),10)},p.prototype.toJSNumber=p.prototype.valueOf,m.prototype.valueOf=function(){return this.value},m.prototype.toJSNumber=m.prototype.valueOf,y.prototype.valueOf=y.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function W(h){if(C(+h)){var w=+h;if(w===O(w))return d?new y(BigInt(w)):new m(w);throw new Error("Invalid integer: "+h)}var _=h[0]==="-";_&&(h=h.slice(1));var x=h.split(/e/i);if(x.length>2)throw new Error("Invalid integer: "+x.join("e"));if(x.length===2){var I=x[1];if(I[0]==="+"&&(I=I.slice(1)),I=+I,I!==O(I)||!C(I))throw new Error("Invalid integer: "+I+" is not a valid exponent.");var k=x[0],F=k.indexOf(".");if(F>=0&&(I-=k.length-F-1,k=k.slice(0,F)+k.slice(F+1)),I<0)throw new Error("Cannot include negative exponent part for integers");k+=new Array(I+1).join("0"),h=k}var U=/^([0-9][0-9]*)$/.test(h);if(!U)throw new Error("Invalid integer: "+h);if(d)return new y(BigInt(_?"-"+h:h));for(var Y=[],_e=h.length,ye=s,ue=_e-ye;_e>0;)Y.push(+h.slice(ue,_e)),ue-=ye,ue<0&&(ue=0),_e-=ye;return N(Y),new p(Y,_)}function ae(h){if(d)return new y(BigInt(h));if(C(h)){if(h!==O(h))throw new Error(h+" is not an integer.");return new m(h)}return W(h.toString())}function j(h){return typeof h=="number"?ae(h):typeof h=="string"?W(h):typeof h=="bigint"?new y(h):h}for(var le=0;le<1e3;le++)f[le]=j(le),le>0&&(f[-le]=j(-le));return f.one=f[1],f.zero=f[0],f.minusOne=f[-1],f.max=at,f.min=b,f.gcd=S,f.lcm=L,f.isInstance=function(h){return h instanceof p||h instanceof m||h instanceof y},f.randBetween=T,f.fromArray=function(h,w,_){return X(h.map(j),j(w||10),_)},f}();e.hasOwnProperty("exports")&&(e.exports=t)})(pm);async function Oc(e,t,n){const o=new URLSearchParams({page:e.toString(),uid:n.toString(),sign:t,time:es().toString()});return(await Ft.post("https://115.com/web/lixian/?ct=lixian&ac=task_lists",o,{withCredentials:!0,timeout:6e4})).data}async function Ic(){return(await Ft.get(`https://115.com/?ct=offline&ac=space&_=${Date.now()}`,{timeout:3e4,withCredentials:!0})).data}async function Tc(){const t=(await Ft.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 hm(e){const t=ql(e),o=(await Ft.get("https://webapi.115.com/files?"+t,{timeout:12e4,withCredentials:!0})).data;if(o.state)return o;throw new Error(o.error)}async function Lc(e,t=500){let n=[],o=0;for(;;){e.offset=o;const s=await hm(e);if(!s.data||!s.data.length||(n=[...n,...s.data],o+=e.limit,o>=s.count))break;await Yt(t)}return n}async function mm(e){const t=ql(e),n=await Ft.get("https://webapi.115.com/files/search?"+t,{timeout:12e4,withCredentials:!0});if(n.data==="")throw new Pc;const o=n.data;if(o.state)return o;throw new Jr(o.error)}async function gm(e,t=500,n=!1){let o=[],s=0,i=e.limit;const r=1e4,l=115,d=r-r%i;let f=i;for(;;){if(n){if(s>=d&&s=r&&(f=l)}e.offset=s,e.limit=f;const p=await mm(e);if(!p.data||!p.data.length||(o=[...o,...p.data],s+=f,s>=p.count))break;await Yt(t)}return o}async function wm(e,t){const n=new URLSearchParams({pid:e,ignore_warn:"1"});return t.forEach((s,i)=>{n.append(`fid[${i}]`,s)}),(await Ft.post("https://webapi.115.com/rb/delete",n,{timeout:12e4,withCredentials:!0})).data}async function Mc(e,t,n,o){let s=0,i=0;for(;;){const r=t.slice(s,s+n);if((await wm(e,r)).state&&(i+=r.length),s+=n,s>=t.length)break;await Yt(o)}return i}async function ym(e,t){const n=new URLSearchParams({pid:e,cname:t});return(await Ft.post("https://webapi.115.com/files/add",n,{timeout:12e4,withCredentials:!0})).data}async function bm(e,t){const n=new URLSearchParams({pid:e});return t.forEach((s,i)=>{n.append(`fid[${i}]`,s)}),(await Ft.post("https://webapi.115.com/files/move",n,{timeout:12e4,withCredentials:!0})).data}async function rs(e){const t=new URLSearchParams({cid:e});return(await Ft.get("https://webapi.115.com/category/get?"+t.toString(),{timeout:12e4,withCredentials:!0})).data}async function Yr(e,t,n,o){const s={uid:o.toString(),sign:t.sign,time:es().toString()};n&&(s.flag="1");const i=dm(s);return e.forEach((l,d)=>{i.append(`hash[${d}]`,l)}),(await Ft.post("https://115.com/web/lixian/?ct=lixian&ac=task_del",i,{timeout:12e4,withCredentials:!0})).data}async function vm(e){if(!(await rs(e)).play_long)throw new Error("该目录下没有可以播放的媒体文件![by_attr]");const o=(await Lc(Zl({cid:e,limit:1150}))).find(s=>s.play_long&&s.play_long>0);if(!o)throw new Error("该目录下没有可以播放的媒体文件![by_files]");return o}async function Zt(e=!0){const t=as().GetCurWangPanCid();return!t&&e?(as().Core.MinMessage.Show({text:'不支持"根目录"!',timeout:1e3}),""):t}async function _m(e,t){let n=$(`li.temp-el[cate_id="${e}"]`);if(!n.length){const o=`
  • `;n=$(o)}n.attr("title",t.file_name),n.find("a.name > span").text(t.file_name);for(let o in t){const s=typeof t[o];["string","number"].indexOf(s)>-1&&n.attr(o,t[o])}return n.attr("cate_id",e),n.attr("p_id",t.paths[t.paths.length-1].file_id),n}async function Mt(e){const t=e.attr("file_size"),n=e.attr("iv")==="1",o=await Pm(),s={fid:e.attr("file_id")||"",cid:e.attr("cid")||"",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,cate_id:e.attr("cate_id")||""};if(o){const i=e.find(".file-directory a[cid]");i.length&&(s.cid=i.attr("cid")||"")}else{const i=e.attr("p_id");i&&(s.cid=i)}return s}async function xm(e){const t=[];for(let n=0;n{as().Core.DataAccess.Dir.GetDetail("1",e,o=>t(o))})}async function Sm(){const e=await Zt(),t=await km(e);return await _m(e,t)}async function ui(){return window.top!==window?$(document):$('iframe[name="wangpan"], .wrap-view iframe:eq(0)').contents()}async function Io(){return(await ui()).find(".list-contents, .list-thumb")}async function Bc(e){const t=await Io();return e?t.find("li.selected"):t.find("li")}async function To(e){const t=await Bc(e),n=[];for(let o=0;o .file-path").children().each(function(){t.push($(this).text().trim().replace(/[›]$/,""))}),t}async function Am(){const e=await Zt();(await Io()).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 Zn(e=!1){const t=await Zt();if(!t)return null;const n=await Io(),o=await Sm();return e||o.hide(),n.find(`li[cate_id="${t}"]`).length||n.append(o),o}async function Xr(e,t,n){n&&await Am(),as().Core.FileMenu.DoEvent([e],t,null)}function Dc(e){return`https://115.com/?${new URLSearchParams({cid:e}).toString()}&offset=0&mode=wangpan`}async function Pm(e=location.href){return e.includes("ac=search")}function Zr(e,t=""){const n=new URLSearchParams({aid:"1",cid:e.cid||"",old_cid:e.cid||"",old_cid_name:t,search_value:e.search_value,ct:"file",ac:"search",is_wl_tpl:"1"});return"https://115.com/?url="+encodeURIComponent(`/?${n.toString()}`)+"&submode=wangpan&mode=search"}function Nc(e){return`https://v.anxia.com/?${new URLSearchParams({pickcode:e,share_id:"0"}).toString()}`}async function Om(e){unsafeWindow.Main.ReInstance({type:e.type,offset:0,o:Xl.userPtime,asc:Yl.false,star:e.star,suffix:e.suffix})}async function Im(){return(await Io()).find("li.selected")}async function Rc(){const e=await Im();return e?await Mt(e):null}function Tm(e){return e.replace(/[/\\:*?"<>|]/g,"_")}async function di(e){const n=(await rs(e.fid||e.cate_id)).paths.slice(1).map(i=>i.file_name).join("/"),o=Tm(e.n);return`/${n}/${o}`.replace(/^[\/]+/g,"/")}async function jc(e){if(!location.search.includes("ac=search")||!e.enableInSearch)return;const n=(await Ao("#js_data_list"))[0],o=[{label:"移动",body:'移动',enabled:!0},{label:"重命名",body:'重命名',enabled:!0},{label:"删除",body:'删除',enabled:!0},{label:"属性",body:'属性',enabled:!0}],s=l=>{let d="";for(const f of l)!f.enabled||(d+=f.body);return d},i=()=>{const l="ce-menu-init",d=document.querySelectorAll(`li[rel="item"]:not(.${l})`),f=s(o);for(let p=0;p{l.type==="childList"&&i()}).observe(n,{childList:!0})}async function Lm(e){if(!e.hideSelectionMenuLabel)return;const n=(await Ao("#js_operate_box"))[0];new MutationObserver(async([s])=>{if(s.type==="childList"){const i=n.querySelectorAll("li[menu]");for(let r=0;r{r.stopPropagation(),r.preventDefault();try{const l=$(r.target).closest("li"),d=await Mt(l),f=await Tr(),p=await ea(d,o,f);if(console.log("[search url]",p),!p)throw new Error("无法获取有效的搜索链接!");qp(p,{active:!o.openInBackground})}catch(l){console.error(l),ce({title:"搜索失败",text:l.toString(),icon:"error"})}}});n.push(s)}return n}async function Qr(e,t){if(console.log("[playDirOnAnxia]",e,t),!t)try{ce({title:"正在查找可播放的文件...",text:"请稍等...",icon:"info"}),fe.showLoading(),t=await vm(e),console.log("[playDirOnAnxia] file",t)}catch(o){console.error(o),ce({title:"播放失败",text:o.toString(),icon:"error"});return}t||ce({title:"播放失败",text:"没有在该目录下找到可播放的文件![file_null]",icon:"error"});const n=Nc(t.pc);window.open(n,"_blank","noopener noreferrer")}async function Bm(e,t){const n=[];for(const o of t){const s=Or(e,{key:`_ce_p_${o.key}`,label:o.label,icon:o.icon,title:o.memo,onClick:async(i,r)=>{r.stopPropagation(),r.preventDefault();try{const l=$(r.target).closest("li"),d=await Mt(l),f=await Tr(),p=await ea(d,o,f);if(d.cate_id&&p.includes("v.anxia.com")){Qr(d.cate_id);return}if(console.log("[play url]",p),!p)throw new Error("无法获取有效的播放链接!");window.open(p,"_blank","noopener noreferrer")}catch(l){console.error(l),ce({title:"播放失败",text:l.toString(),icon:"error"})}}});n.push(s)}return n}var Ot=(e=>(e[e.full=0]="full",e[e.pure=1]="pure",e[e.fullUnique=2]="fullUnique",e[e.pureUnique=3]="pureUnique",e))(Ot||{});async function fi(e,t){if(t===0)return e;if(t===2)return Array.from(new Set(e));const n=[];for(const o of e){const s=o.replace(/\.[^.]+$/,"");t===1?n.push(s):t===3&&(n.includes(s)||n.push(s))}return n}var Ht=(e=>(e[e.unixPath=0]="unixPath",e[e.winPath=1]="winPath",e[e.unixParentPath=2]="unixParentPath",e[e.winParentPath=3]="winParentPath",e))(Ht||{});async function pi(e,t,n){const o=n===1||n===3;let i=n===2||n===3?t.replace(/\/[^/]+$/,""):t;return o&&(i=i.replace(/\//g,"\\")),i}async function Dm(e){return async(t,n)=>{const o=await Zt(),s=await ui(),i=e?"li[file_id].selected":"li[file_id]",r=s[0].querySelectorAll(i);if(!r.length){ce({title:"文件移动到同名目录",text:e?"当前目录没有选中文件":"当前目录没有文件",icon:"warning"});return}const{value:l}=await fe.fire({title:"文件移动到同名目录",text:e?`当前已选中${r.length}个文件,是否继续?`:`当前目录共有${r.length}个文件,是否继续?`,icon:"warning",showCancelButton:!0,confirmButtonText:"继续",cancelButtonText:"取消"});if(!!l){fe.fire({title:"文件移动到同名目录",html:"正在处理...",didOpen:()=>{fe.showLoading()}});for(let d=0;dP?null:"输入不能为空!"});if(!V)throw new Error("已取消手动输入。");if(O=(O==null?void 0:O.trim())||"",O==="")throw new Error("输入不能为空!");C=O;break}}o=o.replace(p,C)}}return t.mutation?await Rm(o,e,t,n):o}async function Rm(e,t,n,o){return await new Function("payload",n.mutation)({url:e,file:t,customUrl:n,cloudDriveConfig:o})}var Pn=(e=>(e.search="search",e.play="play",e))(Pn||{});const Fc={search:"menu_custom_urls_for_search",play:"menu_custom_urls_for_play"};async function ls(e){return await lt.get(Fc[e],[])}async function Hc(e,t){await lt.set(Fc[e],t)}function ut(e){return{enabled:!0,key:"",label:"",icon:"",memo:"",extraMemo:"",url:"",openInBackground:!1,...e}}const Uc="ce_menu_config";function jm(e){return{enabled:!0,openInNewTab:!0,search:!0,play:!0,getDownloadUrl:!0,copyNames:!0,...e}}function Fm(e){return{enabled:!0,copyNames:!0,...e}}function Hm(e){return{enabled:!0,moveToSelfNameDir:!0,copyNames:!0,...e}}function Um(e){return{enabled:!0,rename:!0,delete:!0,play:!0,copyNames:!0,move:!0,copy:!0,copyTo:!0,viewProp:!0,showSubFolderSize:!0,...e}}function zm(e){return{enabled:!0,hideSelectionMenuLabel:!1,enableInSearch:!0,[Ae.listItemHover]:jm(e==null?void 0:e[Ae.listItemHover]),[Ae.listItemContext]:Fm(e==null?void 0:e[Ae.listItemContext]),[Ae.selection]:Hm(e==null?void 0:e[Ae.selection]),[Ae.dirContext]:Um(e==null?void 0:e[Ae.dirContext]),...e}}async function ta(){const e=zm(),t=await lt.get(Uc,e);return{...e,...t}}async function qm(e){await lt.set(Uc,e)}const bl=class{constructor(t){$e(this,"menuType",Ae.listItemHover);$e(this,"injectDecider");$e(this,"keyAttributeName","id");$e(this,"key","");$e(this,"label","");$e(this,"icon","");$e(this,"title","");$e(this,"onClick",async(t,n)=>{});$e(this,"onMouseOver");$e(this,"onMouseOut");$e(this,"subItems",[]);$e(this,"isDivider",!1);$e(this,"menuItemTemplates",{[Ae.dirContext]:{body:`
  • {icon}{label}
  • `,bodyForMulti:`
  • {icon}{label}
    `,divider:'
  • '},[Ae.dirContextSub]:{body:` {icon}{label} `,divider:''},[Ae.listItemContext]:{body:`
  • {icon}{label}
  • `,bodyForMulti:`
  • {icon}{label}
    `,divider:'
  • '},[Ae.listItemContextSub]:{body:'{label}',divider:''},[Ae.listItemHover]:{body:` {icon}{label} `,bodyForMulti:` {icon}{label}
    `,divider:''},[Ae.listItemHoverSub]:{body:` {icon}{label} `,divider:''},[Ae.selection]:{body:'
  • {icon}{label}
  • ',bodyForMulti:`
  • {icon}{label}
  • `,divider:'
  • '},[Ae.selectionSub]:{body:` {label} `,divider:''}});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.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(){var r;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 l=document.createElement("div");return l.innerHTML=t.divider,l.firstElementChild}let n=t.body;if(this.subItems.length>0){if(!t.bodyForMulti)throw new Error("未找到 bodyFormMulti 模版");n=t.bodyForMulti}const o=document.createElement("div");let s="";this.icon&&(this.icon.match(/^(http|https|data:image)/)?s=``:s=``),o.innerHTML=n.replace(/{key}/g,this.key).replace(/{label}/g,this.label).replace(/{icon}/g,s);const i=o.firstElementChild;if(i.setAttribute("title",this.title||""),this.onClick&&i.addEventListener("click",async l=>{this.onClick(this,l)}),this.onMouseOver&&i.addEventListener("mouseover",async l=>{this.onMouseOver&&this.onMouseOver(this,l)}),this.onMouseOut&&i.addEventListener("mouseout",async l=>{this.onMouseOut&&this.onMouseOut(this,l)}),this.subItems.length>0)for(const l of this.subItems){const d=await l.render();(r=i.querySelector(".sub-items"))==null||r.appendChild(d)}return i}async closeMenu(){unsafeWindow.Core.FileMenu.HideRight(),document.dispatchEvent(new CustomEvent(bl.EVENT_CLOSE_MENU,{detail:{menu:this}}))}async decorateContainer(t){}};let Bt=bl;$e(Bt,"EVENT_CLOSE_MENU","__closeMenu");async function hi(e,t){t.stopPropagation(),t.preventDefault();const n=t.target,o=$(n).closest(".ce-menu-parent"),s=o.find(".ce-menu-dropdown");o.addClass("ce-menu-dropdown-opened"),s.addClass("ce-menu-dropdown-active")}async function mi(e,t){t.stopPropagation(),t.preventDefault();const n=t.target,o=$(n).closest(".ce-menu-parent"),s=o.find(".ce-menu-dropdown");o.removeClass("ce-menu-dropdown-opened"),s.removeClass("ce-menu-dropdown-active")}class Dt extends Bt{constructor(n){super(n);$e(this,"menuType",Ae.dirContext);this.onMouseOver=hi,this.onMouseOut=mi}}class Vm extends Bt{constructor(){super(...arguments);$e(this,"menuType",Ae.dirContextSub)}}class na extends Bt{constructor(n){super(n);$e(this,"menuType",Ae.listItemContext);this.onMouseOver=hi,this.onMouseOut=mi}}class gi extends Bt{constructor(n){super(n);$e(this,"menuType",Ae.listItemHover);this.onMouseOver=hi,this.onMouseOut=mi}}class wi extends Bt{constructor(){super(...arguments);$e(this,"menuType",Ae.listItemHoverSub)}}class zc extends Bt{constructor(n){super(n);$e(this,"menuType",Ae.selection);this.onMouseOver=hi,this.onMouseOut=mi}}class qc extends Bt{constructor(){super(...arguments);$e(this,"menuType",Ae.selectionSub)}}class yi extends Bt{constructor(){super(...arguments);$e(this,"isDivider",!0)}}class Wm extends yi{}class Km extends yi{}class Gm extends yi{}class Jm extends yi{}class bi{constructor(t){$e(this,"items");$e(this,"siblingSelector");$e(this,"position");$e(this,"useObserver",!0);$e(this,"observeTarget",document.body);$e(this,"disposeObserverAfterInjection",!0);$e(this,"menuType");$e(this,"_observer");$e(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}async createObserver(){return new MutationObserver(async([n])=>{n.type==="childList"&&await this.handleChildListMutation(n)})}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 Ao(this.observeTarget,800,6048e5))[0]:this.observeTarget}async isMutationMatch(t){const n=t.addedNodes[0];if(n&&n.nodeType!==Node.ELEMENT_NODE)return!1;switch(this.menuType,Ae.dirContext,this.menuType){case Ae.listItemHover:return!0;case Ae.listItemContext:return n&&n.classList.contains("context-menu")&&!!n.querySelector('[val="report"]');case Ae.selection:return!0;case Ae.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.getContainers(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 getContainers(t){let n=[];const o=t.addedNodes[0];switch(this.menuType){case Ae.listItemHover:document.querySelectorAll("#js_data_list .list-contents > ul:not([ce-done]) > li .file-opr").forEach(s=>{n.push(s)});break;case Ae.listItemContext:n=[o];break;case Ae.selection:document.querySelectorAll("#js_top_panel_box #js_operate_box").forEach(s=>{n.push(s)});break;case Ae.dirContext:n=[o];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 o=this.items.slice();this.position===Xn.after&&(o=o.reverse());for(let s=0;s ul:not([ce-done]) > li .file-opr");o.length&&await this.perform(Array.from(o))}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 o(s){const i=document.querySelector("#js_data_list .list-contents > ul > li");!i||i.querySelector(".ce-menu")||s(!0)}n.addEventListener("click",async s=>{s.preventDefault(),s.stopPropagation();const i=s.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 Zs(o,500,3e5);const l=document.querySelector("#js_data_list .list-contents > ul");l==null||l.removeAttribute("ce-done");const d=document.querySelector("#js_data_list");if(d){const f=".list-contents > ul:not([ce-done]) > li .file-opr";if(!document.querySelector(f)){const m=await ta();await jc(m)}const p=d.querySelectorAll(f);p.length&&await this.perform(Array.from(p))}})}async perform(n){await super.perform(n);const o=document.querySelector("#js_data_list .list-contents > ul");o==null||o.setAttribute("ce-done","")}}class Qm extends bi{constructor(){super(...arguments);$e(this,"menuType",Ae.selection);$e(this,"useObserver",!0);$e(this,"observeTarget","#js_top_panel_box #js_operate_box");$e(this,"disposeObserverAfterInjection",!1)}}async function eg(e,t){return!!$(t).closest("li").attr("cate_id")}async function tg(e,t){const n=$(t).closest("li");if(n.attr("cate_id")||n.attr("iv")==="1")return!0;const o=n.attr("ico");return o?Xp(o)||Qp(o)||Zp(o):!1}function On(e,t){const n=Object.create(null),o=e.split(",");for(let s=0;s!!n[s.toLowerCase()]:s=>!!n[s]}function ln(e){if(pe(e)){const t={};for(let n=0;n{if(n){const o=n.split(og);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Je(e){let t="";if(Ke(e))t=e;else if(pe(e))for(let n=0;ncs(n,t))}const me=e=>Ke(e)?e:e==null?"":pe(e)||Ue(e)&&(e.toString===Jc||!xe(e.toString))?JSON.stringify(e,Wc,2):String(e),Wc=(e,t)=>t&&t.__v_isRef?Wc(e,t.value):Qn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,s])=>(n[`${o} =>`]=s,n),{})}:Mo(t)?{[`Set(${t.size})`]:[...t.values()]}:Ue(t)&&!pe(t)&&!Yc(t)?String(t):t,ze=Object.freeze({}),Lo=Object.freeze([]),St=()=>{},Kc=()=>!1,pg=/^on[^a-z]/,us=e=>pg.test(e),vi=e=>e.startsWith("onUpdate:"),tt=Object.assign,sa=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},hg=Object.prototype.hasOwnProperty,Me=(e,t)=>hg.call(e,t),pe=Array.isArray,Qn=e=>fs(e)==="[object Map]",Mo=e=>fs(e)==="[object Set]",Gc=e=>fs(e)==="[object Date]",xe=e=>typeof e=="function",Ke=e=>typeof e=="string",ds=e=>typeof e=="symbol",Ue=e=>e!==null&&typeof e=="object",_i=e=>Ue(e)&&xe(e.then)&&xe(e.catch),Jc=Object.prototype.toString,fs=e=>Jc.call(e),ia=e=>fs(e).slice(8,-1),Yc=e=>fs(e)==="[object Object]",ra=e=>Ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,xi=On(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),mg=On("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Ci=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},gg=/-(\w)/g,Qt=Ci(e=>e.replace(gg,(t,n)=>n?n.toUpperCase():"")),wg=/\B([A-Z])/g,cn=Ci(e=>e.replace(wg,"-$1").toLowerCase()),eo=Ci(e=>e.charAt(0).toUpperCase()+e.slice(1)),to=Ci(e=>e?`on${eo(e)}`:""),ps=(e,t)=>!Object.is(e,t),Bo=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ki=e=>{const t=parseFloat(e);return isNaN(t)?e:t},yg=e=>{const t=Ke(e)?Number(e):NaN;return isNaN(t)?e:t};let Xc;const Zc=()=>Xc||(Xc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function aa(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Ut;class bg{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ut,!t&&Ut&&(this.index=(Ut.scopes||(Ut.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ut;try{return Ut=this,t()}finally{Ut=n}}else aa("cannot run an inactive effect scope.")}on(){Ut=this}off(){Ut=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Qc=e=>(e.w&In)>0,eu=e=>(e.n&In)>0,xg=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o{(m==="length"||m>=f)&&l.push(p)})}else switch(n!==void 0&&l.push(r.get(n)),t){case"add":pe(e)?ra(n)&&l.push(r.get("length")):(l.push(r.get(no)),Qn(e)&&l.push(r.get(ua)));break;case"delete":pe(e)||(l.push(r.get(no)),Qn(e)&&l.push(r.get(ua)));break;case"set":Qn(e)&&l.push(r.get(no));break}const d={target:e,type:t,key:n,newValue:o,oldValue:s,oldTarget:i};if(l.length===1)l[0]&&fa(l[0],d);else{const f=[];for(const p of l)p&&f.push(...p);fa(la(f),d)}}function fa(e,t){const n=pe(e)?e:[...e];for(const o of n)o.computed&&su(o,t);for(const o of n)o.computed||su(o,t)}function su(e,t){(e!==gt||e.allowRecurse)&&(e.onTrigger&&e.onTrigger(tt({effect:e},t)),e.scheduler?e.scheduler():e.run())}function $g(e,t){var n;return(n=Si.get(e))===null||n===void 0?void 0:n.get(t)}const kg=On("__proto__,__v_isRef,__isVue"),iu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ds)),Sg=Ei(),Eg=Ei(!1,!0),Ag=Ei(!0),Pg=Ei(!0,!0),ru=Og();function Og(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=Pe(this);for(let i=0,r=this.length;i{e[t]=function(...n){oo();const o=Pe(this)[t].apply(this,n);return so(),o}}),e}function Ig(e){const t=Pe(this);return Et(t,"has",e),t.hasOwnProperty(e)}function Ei(e=!1,t=!1){return function(o,s,i){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&i===(e?t?yu:wu:t?gu:mu).get(o))return o;const r=pe(o);if(!e){if(r&&Me(ru,s))return Reflect.get(ru,s,i);if(s==="hasOwnProperty")return Ig}const l=Reflect.get(o,s,i);return(ds(s)?iu.has(s):kg(s))||(e||Et(o,"get",s),t)?l:nt(l)?r&&ra(s)?l:l.value:Ue(l)?e?bu(l):Bi(l):l}}const Tg=au(),Lg=au(!0);function au(e=!1){return function(n,o,s,i){let r=n[o];if(Mn(r)&&nt(r)&&!nt(s))return!1;if(!e&&(!Ni(s)&&!Mn(s)&&(r=Pe(r),s=Pe(s)),!pe(n)&&nt(r)&&!nt(s)))return r.value=s,!0;const l=pe(n)&&ra(o)?Number(o)e,Ai=e=>Reflect.getPrototypeOf(e);function Pi(e,t,n=!1,o=!1){e=e.__v_raw;const s=Pe(e),i=Pe(t);n||(t!==i&&Et(s,"get",t),Et(s,"get",i));const{has:r}=Ai(s),l=o?pa:n?ha:ms;if(r.call(s,t))return l(e.get(t));if(r.call(s,i))return l(e.get(i));e!==s&&e.get(t)}function Oi(e,t=!1){const n=this.__v_raw,o=Pe(n),s=Pe(e);return t||(e!==s&&Et(o,"has",e),Et(o,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Ii(e,t=!1){return e=e.__v_raw,!t&&Et(Pe(e),"iterate",no),Reflect.get(e,"size",e)}function uu(e){e=Pe(e);const t=Pe(this);return Ai(t).has.call(t,e)||(t.add(e),un(t,"add",e,e)),this}function du(e,t){t=Pe(t);const n=Pe(this),{has:o,get:s}=Ai(n);let i=o.call(n,e);i?hu(n,o,e):(e=Pe(e),i=o.call(n,e));const r=s.call(n,e);return n.set(e,t),i?ps(t,r)&&un(n,"set",e,t,r):un(n,"add",e,t),this}function fu(e){const t=Pe(this),{has:n,get:o}=Ai(t);let s=n.call(t,e);s?hu(t,n,e):(e=Pe(e),s=n.call(t,e));const i=o?o.call(t,e):void 0,r=t.delete(e);return s&&un(t,"delete",e,void 0,i),r}function pu(){const e=Pe(this),t=e.size!==0,n=Qn(e)?new Map(e):new Set(e),o=e.clear();return t&&un(e,"clear",void 0,void 0,n),o}function Ti(e,t){return function(o,s){const i=this,r=i.__v_raw,l=Pe(r),d=t?pa:e?ha:ms;return!e&&Et(l,"iterate",no),r.forEach((f,p)=>o.call(s,d(f),d(p),i))}}function Li(e,t,n){return function(...o){const s=this.__v_raw,i=Pe(s),r=Qn(i),l=e==="entries"||e===Symbol.iterator&&r,d=e==="keys"&&r,f=s[e](...o),p=n?pa:t?ha:ms;return!t&&Et(i,"iterate",d?ua:no),{next(){const{value:m,done:y}=f.next();return y?{value:m,done:y}:{value:l?[p(m[0]),p(m[1])]:p(m),done:y}},[Symbol.iterator](){return this}}}}function Ln(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${eo(e)} operation ${n}failed: target is readonly.`,Pe(this))}return e==="delete"?!1:this}}function jg(){const e={get(i){return Pi(this,i)},get size(){return Ii(this)},has:Oi,add:uu,set:du,delete:fu,clear:pu,forEach:Ti(!1,!1)},t={get(i){return Pi(this,i,!1,!0)},get size(){return Ii(this)},has:Oi,add:uu,set:du,delete:fu,clear:pu,forEach:Ti(!1,!0)},n={get(i){return Pi(this,i,!0)},get size(){return Ii(this,!0)},has(i){return Oi.call(this,i,!0)},add:Ln("add"),set:Ln("set"),delete:Ln("delete"),clear:Ln("clear"),forEach:Ti(!0,!1)},o={get(i){return Pi(this,i,!0,!0)},get size(){return Ii(this,!0)},has(i){return Oi.call(this,i,!0)},add:Ln("add"),set:Ln("set"),delete:Ln("delete"),clear:Ln("clear"),forEach:Ti(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Li(i,!1,!1),n[i]=Li(i,!0,!1),t[i]=Li(i,!1,!0),o[i]=Li(i,!0,!0)}),[e,n,t,o]}const[Fg,Hg,Ug,zg]=jg();function Mi(e,t){const n=t?e?zg:Ug:e?Hg:Fg;return(o,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(Me(n,s)&&s in o?n:o,s,i)}const qg={get:Mi(!1,!1)},Vg={get:Mi(!1,!0)},Wg={get:Mi(!0,!1)},Kg={get:Mi(!0,!0)};function hu(e,t,n){const o=Pe(n);if(o!==n&&t.call(e,o)){const s=ia(e);console.warn(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const mu=new WeakMap,gu=new WeakMap,wu=new WeakMap,yu=new WeakMap;function Gg(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Jg(e){return e.__v_skip||!Object.isExtensible(e)?0:Gg(ia(e))}function Bi(e){return Mn(e)?e:Di(e,!1,lu,qg,mu)}function Yg(e){return Di(e,!1,Ng,Vg,gu)}function bu(e){return Di(e,!0,cu,Wg,wu)}function Do(e){return Di(e,!0,Rg,Kg,yu)}function Di(e,t,n,o,s){if(!Ue(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const r=Jg(e);if(r===0)return e;const l=new Proxy(e,r===2?o:n);return s.set(e,l),l}function io(e){return Mn(e)?io(e.__v_raw):!!(e&&e.__v_isReactive)}function Mn(e){return!!(e&&e.__v_isReadonly)}function Ni(e){return!!(e&&e.__v_isShallow)}function Ri(e){return io(e)||Mn(e)}function Pe(e){const t=e&&e.__v_raw;return t?Pe(t):e}function vu(e){return $i(e,"__v_skip",!0),e}const ms=e=>Ue(e)?Bi(e):e,ha=e=>Ue(e)?bu(e):e;function _u(e){Tn&>&&(e=Pe(e),ou(e.dep||(e.dep=la()),{target:e,type:"get",key:"value"}))}function xu(e,t){e=Pe(e);const n=e.dep;n&&fa(n,{target:e,type:"set",key:"value",newValue:t})}function nt(e){return!!(e&&e.__v_isRef===!0)}function ge(e){return Xg(e,!1)}function Xg(e,t){return nt(e)?e:new Zg(e,t)}class Zg{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Pe(t),this._value=n?t:ms(t)}get value(){return _u(this),this._value}set value(t){const n=this.__v_isShallow||Ni(t)||Mn(t);t=n?t:Pe(t),ps(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ms(t),xu(this,t))}}function be(e){return nt(e)?e.value:e}const Qg={get:(e,t,n)=>be(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const s=e[t];return nt(s)&&!nt(n)?(s.value=n,!0):Reflect.set(e,t,n,o)}};function Cu(e){return io(e)?e:new Proxy(e,Qg)}function ew(e){Ri(e)||console.warn("toRefs() expects a reactive object but received a plain one.");const t=pe(e)?new Array(e.length):{};for(const n in e)t[n]=nw(e,n);return t}class tw{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return $g(Pe(this._object),this._key)}}function nw(e,t,n){const o=e[t];return nt(o)?o:new tw(e,t,n)}var $u;class ow{constructor(t,n,o,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[$u]=!1,this._dirty=!0,this.effect=new da(t,()=>{this._dirty||(this._dirty=!0,xu(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=o}get value(){const t=Pe(this);return _u(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}$u="__v_isReadonly";function sw(e,t,n=!1){let o,s;const i=xe(e);i?(o=e,s=()=>{console.warn("Write operation failed: computed value is readonly")}):(o=e.get,s=e.set);const r=new ow(o,s,i||!s,n);return t&&!n&&(r.effect.onTrack=t.onTrack,r.effect.onTrigger=t.onTrigger),r}const ro=[];function gs(e){ro.push(e)}function ws(){ro.pop()}function Q(e,...t){oo();const n=ro.length?ro[ro.length-1].component:null,o=n&&n.appContext.config.warnHandler,s=iw();if(o)dn(o,n,11,[e+t.join(""),n&&n.proxy,s.map(({vnode:i})=>`at <${Qi(n,i.type)}>`).join(` `),s]);else{const i=[`[Vue warn]: ${e}`,...t];s.length&&i.push(` `,...rw(s)),console.warn(...i)}so()}function iw(){let e=ro[ro.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function rw(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[` `],...aw(n))}),t}function aw({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,s=` at <${Qi(e.component,e.type,o)}`,i=">"+n;return e.props?[s,...lw(e.props),i]:[s+i]}function lw(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...ku(o,e[o]))}),n.length>3&&t.push(" ..."),t}function ku(e,t,n){return Ke(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:nt(t)?(t=ku(e,Pe(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):xe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Pe(t),n?t:[`${e}=`,t])}function cw(e,t){e!==void 0&&(typeof e!="number"?Q(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&Q(`${t} is NaN - the duration expression might be incorrect.`))}const ma={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function dn(e,t,n,o){let s;try{s=o?e(...o):e()}catch(i){ys(i,t,n)}return s}function zt(e,t,n,o){if(xe(e)){const i=dn(e,t,n,o);return i&&_i(i)&&i.catch(r=>{ys(r,t,n)}),i}const s=[];for(let i=0;i>>1;vs(pt[o])en&&pt.splice(t,1)}function ya(e){pe(e)?No.push(...e):(!tn||!tn.includes(e,e.allowRecurse?Bn+1:Bn))&&No.push(e),Eu()}function Au(e,t=bs?en+1:0){for(e=e||new Map;tvs(n)-vs(o)),Bn=0;Bne.id==null?1/0:e.id,hw=(e,t)=>{const n=vs(e)-vs(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ou(e){ga=!1,bs=!0,e=e||new Map,pt.sort(hw);const t=n=>ba(e,n);try{for(en=0;endw){const o=t.ownerInstance,s=o&&qa(o.type);return Q(`Maximum recursive updates exceeded${s?` in component <${s}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}else e.set(t,n+1)}}let ao=!1;const Ro=new Set;Zc().__VUE_HMR_RUNTIME__={createRecord:va(Iu),rerender:va(ww),reload:va(yw)};const lo=new Map;function mw(e){const t=e.type.__hmrId;let n=lo.get(t);n||(Iu(t,e.type),n=lo.get(t)),n.instances.add(e)}function gw(e){lo.get(e.type.__hmrId).instances.delete(e)}function Iu(e,t){return lo.has(e)?!1:(lo.set(e,{initialDef:_s(t),instances:new Set}),!0)}function _s(e){return vd(e)?e.__vccOpts:e}function ww(e,t){const n=lo.get(e);!n||(n.initialDef.render=t,[...n.instances].forEach(o=>{t&&(o.render=t,_s(o.type).render=t),o.renderCache=[],ao=!0,o.update(),ao=!1}))}function yw(e,t){const n=lo.get(e);if(!n)return;t=_s(t),Tu(n.initialDef,t);const o=[...n.instances];for(const s of o){const i=_s(s.type);Ro.has(i)||(i!==n.initialDef&&Tu(i,t),Ro.add(i)),s.appContext.optionsCache.delete(s.type),s.ceReload?(Ro.add(i),s.ceReload(t.styles),Ro.delete(i)):s.parent?Fi(s.parent.update):s.appContext.reload?s.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}ya(()=>{for(const s of o)Ro.delete(_s(s.type))})}function Tu(e,t){tt(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function va(e){return(t,n)=>{try{return e(t,n)}catch(o){console.error(o),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let nn,xs=[],_a=!1;function Cs(e,...t){nn?nn.emit(e,...t):_a||xs.push({event:e,args:t})}function Lu(e,t){var n,o;nn=e,nn?(nn.enabled=!0,xs.forEach(({event:s,args:i})=>nn.emit(s,...i)),xs=[]):typeof window<"u"&&window.HTMLElement&&!(!((o=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||o===void 0)&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{Lu(i,t)}),setTimeout(()=>{nn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,_a=!0,xs=[])},3e3)):(_a=!0,xs=[])}function bw(e,t){Cs("app:init",e,t,{Fragment:De,Text:Os,Comment:bt,Static:Is})}function vw(e){Cs("app:unmount",e)}const _w=xa("component:added"),Mu=xa("component:updated"),xw=xa("component:removed"),Cw=e=>{nn&&typeof nn.cleanupBuffer=="function"&&!nn.cleanupBuffer(e)&&xw(e)};function xa(e){return t=>{Cs(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const $w=Bu("perf:start"),kw=Bu("perf:end");function Bu(e){return(t,n,o)=>{Cs(e,t.appContext.app,t.uid,t,n,o)}}function Sw(e,t,n){Cs("component:emit",e.appContext.app,e,t,n)}function Ew(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ze;{const{emitsOptions:p,propsOptions:[m]}=e;if(p)if(!(t in p))(!m||!(to(t)in m))&&Q(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${to(t)}" prop.`);else{const y=p[t];xe(y)&&(y(...n)||Q(`Invalid event arguments: event validation failed for event "${t}".`))}}let s=n;const i=t.startsWith("update:"),r=i&&t.slice(7);if(r&&r in o){const p=`${r==="modelValue"?"model":r}Modifiers`,{number:m,trim:y}=o[p]||ze;y&&(s=n.map(C=>Ke(C)?C.trim():C)),m&&(s=n.map(ki))}Sw(e,t,s);{const p=t.toLowerCase();p!==t&&o[to(p)]&&Q(`Event "${p}" is emitted in component ${Qi(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${cn(t)}" instead of "${t}".`)}let l,d=o[l=to(t)]||o[l=to(Qt(t))];!d&&i&&(d=o[l=to(cn(t))]),d&&zt(d,e,6,s);const f=o[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,zt(f,e,6,s)}}function Du(e,t,n=!1){const o=t.emitsCache,s=o.get(e);if(s!==void 0)return s;const i=e.emits;let r={},l=!1;if(!xe(e)){const d=f=>{const p=Du(f,t,!0);p&&(l=!0,tt(r,p))};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}return!i&&!l?(Ue(e)&&o.set(e,null),null):(pe(i)?i.forEach(d=>r[d]=null):tt(r,i),Ue(e)&&o.set(e,r),r)}function Hi(e,t){return!e||!us(t)?!1:(t=t.slice(2).replace(/Once$/,""),Me(e,t[0].toLowerCase()+t.slice(1))||Me(e,cn(t))||Me(e,t))}let it=null,Ui=null;function zi(e){const t=it;return it=e,Ui=e&&e.type.__scopeId||null,t}function Aw(e){Ui=e}function Pw(){Ui=null}const Ow=e=>Ve;function Ve(e,t=it,n){if(!t||e._n)return e;const o=(...s)=>{o._d&&fd(-1);const i=zi(t);let r;try{r=e(...s)}finally{zi(i),o._d&&fd(1)}return Mu(t),r};return o._n=!0,o._c=!0,o._d=!0,o}let Ca=!1;function qi(){Ca=!0}function $a(e){const{type:t,vnode:n,proxy:o,withProxy:s,props:i,propsOptions:[r],slots:l,attrs:d,emit:f,render:p,renderCache:m,data:y,setupState:C,ctx:E,inheritAttrs:A}=e;let N,V;const O=zi(e);Ca=!1;try{if(n.shapeFlag&4){const G=s||o;N=jt(p.call(G,G,m,i,C,y,E)),V=d}else{const G=t;d===i&&qi(),N=jt(G.length>1?G(i,{get attrs(){return qi(),d},slots:l,emit:f}):G(i,null)),V=t.props?d:Tw(d)}}catch(G){Ts.length=0,ys(G,e,1),N=ve(bt)}let P=N,D;if(N.patchFlag>0&&N.patchFlag&2048&&([P,D]=Iw(N)),V&&A!==!1){const G=Object.keys(V),{shapeFlag:ee}=P;if(G.length){if(ee&7)r&&G.some(vi)&&(V=Lw(V,r)),P=Rn(P,V);else if(!Ca&&P.type!==bt){const Oe=Object.keys(d),ke=[],Se=[];for(let Te=0,he=Oe.length;Te renders non-element root node that cannot be animated."),P.transition=n.transition),D?D(P):N=P,zi(O),N}const Iw=e=>{const t=e.children,n=e.dynamicChildren,o=ka(t);if(!o)return[e,void 0];const s=t.indexOf(o),i=n?n.indexOf(o):-1,r=l=>{t[s]=l,n&&(i>-1?n[i]=l:l.patchFlag>0&&(e.dynamicChildren=[...n,l]))};return[jt(o),r]};function ka(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||us(n))&&((t||(t={}))[n]=e[n]);return t},Lw=(e,t)=>{const n={};for(const o in e)(!vi(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n},Nu=e=>e.shapeFlag&7||e.type===bt;function Mw(e,t,n){const{props:o,children:s,component:i}=e,{props:r,children:l,patchFlag:d}=t,f=i.emitsOptions;if((s||l)&&ao||t.dirs||t.transition)return!0;if(n&&d>=0){if(d&1024)return!0;if(d&16)return o?Ru(o,r,f):!!r;if(d&8){const p=t.dynamicProps;for(let m=0;me.__isSuspense,ju={name:"Suspense",__isSuspense:!0,process(e,t,n,o,s,i,r,l,d,f){e==null?Dw(t,n,o,s,i,r,l,d,f):Nw(e,t,n,o,s,r,l,d,f)},hydrate:Rw,create:Ea,normalize:jw};function $s(e,t){const n=e.props&&e.props[t];xe(n)&&n()}function Dw(e,t,n,o,s,i,r,l,d){const{p:f,o:{createElement:p}}=d,m=p("div"),y=e.suspense=Ea(e,s,o,t,m,n,i,r,l,d);f(null,y.pendingBranch=e.ssContent,m,null,o,y,i,r),y.deps>0?($s(e,"onPending"),$s(e,"onFallback"),f(null,e.ssFallback,t,n,o,null,i,r),jo(y,e.ssFallback)):y.resolve()}function Nw(e,t,n,o,s,i,r,l,{p:d,um:f,o:{createElement:p}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const y=t.ssContent,C=t.ssFallback,{activeBranch:E,pendingBranch:A,isInFallback:N,isHydrating:V}=m;if(A)m.pendingBranch=y,Nn(y,A)?(d(A,y,m.hiddenContainer,null,s,m,i,r,l),m.deps<=0?m.resolve():N&&(d(E,C,n,o,s,null,i,r,l),jo(m,C))):(m.pendingId++,V?(m.isHydrating=!1,m.activeBranch=A):f(A,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=p("div"),N?(d(null,y,m.hiddenContainer,null,s,m,i,r,l),m.deps<=0?m.resolve():(d(E,C,n,o,s,null,i,r,l),jo(m,C))):E&&Nn(y,E)?(d(E,y,n,o,s,m,i,r,l),m.resolve(!0)):(d(null,y,m.hiddenContainer,null,s,m,i,r,l),m.deps<=0&&m.resolve()));else if(E&&Nn(y,E))d(E,y,n,o,s,m,i,r,l),jo(m,y);else if($s(t,"onPending"),m.pendingBranch=y,m.pendingId++,d(null,y,m.hiddenContainer,null,s,m,i,r,l),m.deps<=0)m.resolve();else{const{timeout:O,pendingId:P}=m;O>0?setTimeout(()=>{m.pendingId===P&&m.fallback(C)},O):O===0&&m.fallback(C)}}let Fu=!1;function Ea(e,t,n,o,s,i,r,l,d,f,p=!1){Fu||(Fu=!0,console[console.info?"info":"log"](" is an experimental feature and its API will likely change."));const{p:m,m:y,um:C,n:E,o:{parentNode:A,remove:N}}=f,V=e.props?yg(e.props.timeout):void 0;cw(V,"Suspense timeout");const O={vnode:e,parent:t,parentComponent:n,isSVG:r,container:o,hiddenContainer:s,anchor:i,deps:0,pendingId:0,timeout:typeof V=="number"?V:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(P=!1){{if(!P&&!O.pendingBranch)throw new Error("suspense.resolve() is called without a pending branch.");if(O.isUnmounted)throw new Error("suspense.resolve() is called on an already unmounted suspense boundary.")}const{vnode:D,activeBranch:G,pendingBranch:ee,pendingId:Oe,effects:ke,parentComponent:Se,container:Te}=O;if(O.isHydrating)O.isHydrating=!1;else if(!P){const Ee=G&&ee.transition&&ee.transition.mode==="out-in";Ee&&(G.transition.afterLeave=()=>{Oe===O.pendingId&&y(ee,Te,ie,0)});let{anchor:ie}=O;G&&(ie=E(G),C(G,Se,O,!0)),Ee||y(ee,Te,ie,0)}jo(O,ee),O.pendingBranch=null,O.isInFallback=!1;let he=O.parent,se=!1;for(;he;){if(he.pendingBranch){he.effects.push(...ke),se=!0;break}he=he.parent}se||ya(ke),O.effects=[],$s(D,"onResolve")},fallback(P){if(!O.pendingBranch)return;const{vnode:D,activeBranch:G,parentComponent:ee,container:Oe,isSVG:ke}=O;$s(D,"onFallback");const Se=E(G),Te=()=>{!O.isInFallback||(m(null,P,Oe,Se,ee,null,ke,l,d),jo(O,P))},he=P.transition&&P.transition.mode==="out-in";he&&(G.transition.afterLeave=Te),O.isInFallback=!0,C(G,ee,null,!0),he||Te()},move(P,D,G){O.activeBranch&&y(O.activeBranch,P,D,G),O.container=P},next(){return O.activeBranch&&E(O.activeBranch)},registerDep(P,D){const G=!!O.pendingBranch;G&&O.deps++;const ee=P.vnode.el;P.asyncDep.catch(Oe=>{ys(Oe,P,0)}).then(Oe=>{if(P.isUnmounted||O.isUnmounted||O.pendingId!==P.suspenseId)return;P.asyncResolved=!0;const{vnode:ke}=P;gs(ke),Ua(P,Oe,!1),ee&&(ke.el=ee);const Se=!ee&&P.subTree.el;D(P,ke,A(ee||P.subTree.el),ee?null:E(P.subTree),O,r,d),Se&&N(Se),Sa(P,ke.el),ws(),G&&--O.deps===0&&O.resolve()})},unmount(P,D){O.isUnmounted=!0,O.activeBranch&&C(O.activeBranch,n,P,D),O.pendingBranch&&C(O.pendingBranch,n,P,D)}};return O}function Rw(e,t,n,o,s,i,r,l,d){const f=t.suspense=Ea(t,o,n,e.parentNode,document.createElement("div"),null,s,i,r,l,!0),p=d(e,f.pendingBranch=t.ssContent,n,f,i,r);return f.deps===0&&f.resolve(),p}function jw(e){const{shapeFlag:t,children:n}=e,o=t&32;e.ssContent=Hu(o?n.default:n),e.ssFallback=o?Hu(n.fallback):ve(bt)}function Hu(e){let t;if(xe(e)){const n=Fo&&e._c;n&&(e._d=!1,Z()),e=e(),n&&(e._d=!0,t=Nt,dd())}if(pe(e)){const n=ka(e);n||Q(" slots expect a single root node."),e=n}return e=jt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Fw(e,t){t&&t.pendingBranch?pe(e)?t.effects.push(...e):t.effects.push(e):ya(e)}function jo(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e,s=n.el=t.el;o&&o.subTree===n&&(o.vnode.el=s,Sa(o,s))}function ks(e,t){if(!Ye)Q("provide() can only be used inside setup().");else{let n=Ye.provides;const o=Ye.parent&&Ye.parent.provides;o===n&&(n=Ye.provides=Object.create(o)),n[e]=t}}function Ss(e,t,n=!1){const o=Ye||it;if(o){const s=o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&xe(t)?t.call(o.proxy):t;Q(`injection "${String(e)}" not found.`)}else Q("inject() can only be used inside setup() or functional components.")}const Vi={};function wt(e,t,n){return xe(t)||Q("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),Uu(e,t,n)}function Uu(e,t,{immediate:n,deep:o,flush:s,onTrack:i,onTrigger:r}=ze){t||(n!==void 0&&Q('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&Q('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const l=D=>{Q("Invalid watch source: ",D,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},d=_g()===(Ye==null?void 0:Ye.scope)?Ye:null;let f,p=!1,m=!1;if(nt(e)?(f=()=>e.value,p=Ni(e)):io(e)?(f=()=>e,o=!0):pe(e)?(m=!0,p=e.some(D=>io(D)||Ni(D)),f=()=>e.map(D=>{if(nt(D))return D.value;if(io(D))return co(D);if(xe(D))return dn(D,d,2);l(D)})):xe(e)?t?f=()=>dn(e,d,2):f=()=>{if(!(d&&d.isUnmounted))return y&&y(),zt(e,d,3,[C])}:(f=St,l(e)),t&&o){const D=f;f=()=>co(D())}let y,C=D=>{y=O.onStop=()=>{dn(D,d,4)}},E;if(Ls)if(C=St,t?n&&zt(t,d,3,[f(),m?[]:void 0,C]):f(),s==="sync"){const D=zy();E=D.__watcherHandles||(D.__watcherHandles=[])}else return St;let A=m?new Array(e.length).fill(Vi):Vi;const N=()=>{if(!!O.active)if(t){const D=O.run();(o||p||(m?D.some((G,ee)=>ps(G,A[ee])):ps(D,A)))&&(y&&y(),zt(t,d,3,[D,A===Vi?void 0:m&&A[0]===Vi?[]:A,C]),A=D)}else O.run()};N.allowRecurse=!!t;let V;s==="sync"?V=N:s==="post"?V=()=>At(N,d&&d.suspense):(N.pre=!0,d&&(N.id=d.uid),V=()=>Fi(N));const O=new da(f,V);O.onTrack=i,O.onTrigger=r,t?n?N():A=O.run():s==="post"?At(O.run.bind(O),d&&d.suspense):O.run();const P=()=>{O.stop(),d&&d.scope&&sa(d.scope.effects,O)};return E&&E.push(P),P}function Hw(e,t,n){const o=this.proxy,s=Ke(e)?e.includes(".")?zu(o,e):()=>o[e]:e.bind(o,o);let i;xe(t)?i=t:(i=t.handler,n=t);const r=Ye;Fn(this);const l=Uu(s,i.bind(o),n);return r?Fn(r):Hn(),l}function zu(e,t){const n=t.split(".");return()=>{let o=e;for(let s=0;s{co(n,t)});else if(Yc(e))for(const n in e)co(e[n],t);return e}function Be(e){return xe(e)?{setup:e,name:e.name}:e}const Es=e=>!!e.type.__asyncLoader,Aa=e=>e.type.__isKeepAlive;function Uw(e,t){qu(e,"a",t)}function zw(e,t){qu(e,"da",t)}function qu(e,t,n=Ye){const o=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Wi(t,o,n),n){let s=n.parent;for(;s&&s.parent;)Aa(s.parent.vnode)&&qw(o,t,n,s),s=s.parent}}function qw(e,t,n,o){const s=Wi(t,e,o,!0);As(()=>{sa(o[t],s)},n)}function Wi(e,t,n=Ye,o=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;oo(),Fn(n);const l=zt(t,n,e,r);return Hn(),so(),l});return o?s.unshift(i):s.push(i),i}else{const s=to(ma[e].replace(/ hook$/,""));Q(`${s} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const fn=e=>(t,n=Ye)=>(!Ls||e==="sp")&&Wi(e,(...o)=>t(...o),n),qt=fn("bm"),Vt=fn("m"),Vw=fn("bu"),Ww=fn("u"),Vu=fn("bum"),As=fn("um"),Kw=fn("sp"),Gw=fn("rtg"),Jw=fn("rtc");function Yw(e,t=Ye){Wi("ec",e,t)}function Wu(e){mg(e)&&Q("Do not use built-in directive ids as custom directive id: "+e)}function oe(e,t){const n=it;if(n===null)return Q("withDirectives can only be used inside render functions."),e;const o=Zi(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;it(r,l,void 0,i&&i[l]));else{const r=Object.keys(e);s=new Array(r.length);for(let l=0,d=r.length;l1&&(Q("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),i=()=>[]),i&&i._c&&(i._d=!1),Z();const r=i&&Gu(i(n)),l=Rt(De,{key:n.key||r&&r.key||`_${t}`},r||(o?o():[]),r&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Gu(e){return e.some(t=>Ho(t)?!(t.type===bt||t.type===De&&!Gu(t.children)):!0)?e:null}const Oa=e=>e?yd(e)?Zi(e)||e.proxy:Oa(e.parent):null,po=tt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>Do(e.props),$attrs:e=>Do(e.attrs),$slots:e=>Do(e.slots),$refs:e=>Do(e.refs),$parent:e=>Oa(e.parent),$root:e=>Oa(e.root),$emit:e=>e.emit,$options:e=>Ma(e),$forceUpdate:e=>e.f||(e.f=()=>Fi(e.update)),$nextTick:e=>e.n||(e.n=ji.bind(e.proxy)),$watch:e=>Hw.bind(e)}),Ia=e=>e==="_"||e==="$",Ta=(e,t)=>e!==ze&&!e.__isScriptSetup&&Me(e,t),Ju={get({_:e},t){const{ctx:n,setupState:o,data:s,props:i,accessCache:r,type:l,appContext:d}=e;if(t==="__isVue")return!0;let f;if(t[0]!=="$"){const C=r[t];if(C!==void 0)switch(C){case 1:return o[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Ta(o,t))return r[t]=1,o[t];if(s!==ze&&Me(s,t))return r[t]=2,s[t];if((f=e.propsOptions[0])&&Me(f,t))return r[t]=3,i[t];if(n!==ze&&Me(n,t))return r[t]=4,n[t];La&&(r[t]=0)}}const p=po[t];let m,y;if(p)return t==="$attrs"&&(Et(e,"get",t),qi()),p(e);if((m=l.__cssModules)&&(m=m[t]))return m;if(n!==ze&&Me(n,t))return r[t]=4,n[t];if(y=d.config.globalProperties,Me(y,t))return y[t];it&&(!Ke(t)||t.indexOf("__v")!==0)&&(s!==ze&&Ia(t[0])&&Me(s,t)?Q(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===it&&Q(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:o,setupState:s,ctx:i}=e;return Ta(s,t)?(s[t]=n,!0):s.__isScriptSetup&&Me(s,t)?(Q(`Cannot mutate