您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
PT种子列表无限下拉瀑布流视图(Svelte重构)
当前为
// ==UserScript== // @name PT种子列表瀑布流视图(Svelte重构) // @name:en PT_Masonry_View_Svelte // @namespace https://github.com/KesaubeEire/PT_Masonry_View_Svelte // @version 1.1.7 // @author Kesa // @description PT种子列表无限下拉瀑布流视图(Svelte重构) // @description:en PT Masonry View by Svelte. // @license MIT // @icon https://avatars.githubusercontent.com/u/23617963 // @match https://kamept.com/* // @match https://pterclub.com/* // @match https://kp.m-team.cc/* // @match https://xp.m-team.io/* // @match https://xp.m-team.cc/* // @match https://ap.m-team.cc/* // @match https://test2.m-team.cc/* // @exclude */offers.php* // @exclude */index.php* // @exclude */forums.php* // @exclude */viewrequests.php* // @exclude */seek.php* // @grant none // ==/UserScript== (t=>{const e=document.createElement("style");e.dataset.source="vite-plugin-monkey",e.textContent=t,document.head.append(e)})(' #_Reload.svelte-1me98ya{position:fixed;top:0;left:0}div.waterfall{width:100%;padding-top:20px;padding-bottom:60px;border-radius:20px;height:100%;margin:20px auto;transition:height .3s}div.waterfall_newMT{padding-top:0;padding-bottom:0;margin:10px auto}button.debug{position:fixed;top:10px;right:10px;padding:4px;background-color:#333;color:#fff;border:none;border-radius:5px;cursor:pointer}button#toggle_oldTable{top:10px}button#btnReLayout{top:40px}button#btnSwitchMode{top:70px}button#sort_masonry{top:100px}.pic_error{height:100px;display:flex;justify-content:center;align-items:center}.ant-menu-submenu{z-index:12000}.svelte-zt6zlx.svelte-zt6zlx,.svelte-zt6zlx.svelte-zt6zlx:after,.svelte-zt6zlx.svelte-zt6zlx:before{box-sizing:content-box}.switch.svelte-zt6zlx.svelte-zt6zlx{width:100%;height:30px;display:flex;align-items:center;justify-content:space-between}.s_title.svelte-zt6zlx.svelte-zt6zlx{display:flex;align-items:center;font-size:14px;position:relative}.title_green.svelte-zt6zlx.svelte-zt6zlx{color:green;font-weight:800}.title_red.svelte-zt6zlx.svelte-zt6zlx{color:red;font-weight:800}.s_title.svelte-zt6zlx:has(.hint):hover ._hint.svelte-zt6zlx{display:block}._hint.svelte-zt6zlx.svelte-zt6zlx{display:none;position:absolute;bottom:28px;left:0;width:max-content;height:auto;background-color:#fff;border:1px solid black;border-radius:8px;padding:4px 8px;box-sizing:content-box;z-index:1}input[type=checkbox].svelte-zt6zlx.svelte-zt6zlx{width:0px;height:0px;display:none;visibility:hidden}label.svelte-zt6zlx.svelte-zt6zlx{width:48px;height:12px;display:inline-block;position:relative;background-color:#777;border:2px solid #555;border-radius:30px;transition:all .2s}label.svelte-zt6zlx.svelte-zt6zlx:after{content:"";display:block;width:24px;height:24px;background-color:#555;position:absolute;border-radius:50%;left:-2px;top:-6px;transition:transform .2s}input[type=checkbox].svelte-zt6zlx:checked~label.svelte-zt6zlx{background-color:#00a0fc;border-color:#006dc9}input[type=checkbox].svelte-zt6zlx:checked~label.svelte-zt6zlx:after{background-color:#0054b0;transform:translate(28px)}.sideP.svelte-kk96f3.svelte-kk96f3{position:fixed;opacity:.4;margin:4px 2px;border-radius:8px;overflow:hidden;z-index:40000;border:2px solid transparent}.sideP.svelte-kk96f3.svelte-kk96f3:hover{opacity:1;border:2px solid yellow}.sideP__title.svelte-kk96f3.svelte-kk96f3{width:100%;height:8px;background-color:#ff0}.sideP__title.svelte-kk96f3.svelte-kk96f3:hover{cursor:move}.sideP__out.svelte-kk96f3.svelte-kk96f3{display:flex;flex-direction:column}.sideP__btn.svelte-kk96f3.svelte-kk96f3{background-color:gray;color:#fff;padding:4px 8px;margin:4px;border-radius:8px;cursor:pointer;border:none}.sideP__btn.svelte-kk96f3.svelte-kk96f3:hover{background-color:#6531ff}.configP.svelte-kk96f3.svelte-kk96f3{position:fixed;left:0;top:0;width:100vw;height:100vh;padding:0;margin:0;z-index:50000;background-color:#0003}.configP_holder.svelte-kk96f3.svelte-kk96f3{box-sizing:content-box;position:absolute;right:20px;top:20px;overflow-y:scroll;width:360px;max-height:calc(100vh - 40px);padding:0;margin:0;border-radius:24px;border:2px solid black;background-color:#d4e7ff}.configP_holder.svelte-kk96f3.svelte-kk96f3::-webkit-scrollbar{display:none}.configP_title.svelte-kk96f3.svelte-kk96f3{position:fixed;box-sizing:border-box;width:inherit;display:flex;justify-content:space-between;align-items:center;height:40px;padding:0 10px;border-top-left-radius:24px;border-top-right-radius:24px;border-bottom:2px solid black;background-color:#9ac6ff;z-index:2}.configP_title.svelte-kk96f3.svelte-kk96f3 p{font-size:18px;font-weight:500}.configP_title.svelte-kk96f3.svelte-kk96f3 button{border:none;padding:0;margin:0;background-color:transparent}.section.svelte-kk96f3.svelte-kk96f3{margin:16px 18px}.section.svelte-kk96f3.svelte-kk96f3 button{border-radius:10px;margin:4px;padding:12px 16px}.section.svelte-kk96f3.svelte-kk96f3 .s_title{text-align:center}.section.svelte-kk96f3.svelte-kk96f3 .s_panel{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center}.section.svelte-kk96f3.svelte-kk96f3 .s_checkbox{padding:12px;margin:4px;border-radius:10px;border:1px solid black;font-size:14px;display:flex;align-items:center}.configP_holder.svelte-kk96f3 .section.svelte-kk96f3:nth-child(2){margin-top:48px}#reset_panel_pos.svelte-kk96f3.svelte-kk96f3{width:100%;text-align:center;border:1px solid black;border-radius:16px}.card.svelte-4b9kml.svelte-4b9kml{border:1px solid rgba(255,255,255,.5);border-radius:16px;margin:6px 0;overflow:hidden;cursor:pointer;box-shadow:#0000004d 3px 3px,#0000001a -1px -1px;transition:box-shadow .2s}.card.svelte-4b9kml.svelte-4b9kml:hover{box-shadow:#7300ff4d 5px 5px,#0000001a -1px -1px}.card-title.svelte-4b9kml.svelte-4b9kml{padding:2px 0}.card-holder.svelte-4b9kml.svelte-4b9kml{background-color:#ffffff80;background:linear-gradient(to bottom,rgba(255,255,255,.4),rgba(255,255,255,0))}.card-category.svelte-4b9kml.svelte-4b9kml{text-align:center;letter-spacing:2px;font-weight:700}.card-line.svelte-4b9kml.svelte-4b9kml{margin-top:1px;margin-bottom:1px;display:flex;justify-content:space-evenly;align-items:center;height:20px}.two-lines.svelte-4b9kml.svelte-4b9kml{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .3s}.two-lines.svelte-4b9kml.svelte-4b9kml:hover{-webkit-line-clamp:100}.cl-center.svelte-4b9kml.svelte-4b9kml{display:flex;justify-content:space-evenly;align-items:center}.cl-tags.svelte-4b9kml.svelte-4b9kml{display:flex;justify-content:left;align-items:center;flex-wrap:wrap;gap:2px;transform:translate(4px)}.cl-tags.svelte-4b9kml.svelte-4b9kml:has(span){padding-top:2px}.card-details.svelte-4b9kml.svelte-4b9kml{display:flex;justify-content:center;align-items:center;flex-direction:column}.card-image.svelte-4b9kml.svelte-4b9kml{height:100%;position:relative}.card-image.svelte-4b9kml img.svelte-4b9kml{width:100%;object-fit:cover}.card-alter.svelte-4b9kml.svelte-4b9kml{text-align:center;height:20px;display:flex;justify-content:center;align-items:center}.top_and_free.svelte-4b9kml.svelte-4b9kml{padding:2px;border-radius:4px;margin-bottom:2px;display:flex;justify-content:center;align-items:center;line-height:11px;height:11px;font-size:10px}._Free.svelte-4b9kml.svelte-4b9kml{color:#00f}._2XFree.svelte-4b9kml.svelte-4b9kml{color:green}.card-description.svelte-4b9kml.svelte-4b9kml{padding-left:4px;padding-right:4px}.card-index.svelte-4b9kml.svelte-4b9kml{position:absolute;top:0;left:0;padding-right:9px;padding-left:2px;margin:0;height:20px;line-height:16px;font-size:16px;background-color:#000;color:#ff0;border-top-right-radius:100px;border-bottom-right-radius:100px;display:flex;align-items:center;pointer-events:none}.hover-trigger.svelte-4b9kml.svelte-4b9kml{position:absolute;top:8px;right:8px;padding:0;width:42px;margin:0;height:40px;line-height:16px;font-size:16px;opacity:.75;border-radius:9999px;display:flex;align-items:center}.hover-trigger.svelte-4b9kml.svelte-4b9kml:hover{opacity:1}.btnCollet.svelte-4b9kml.svelte-4b9kml{padding:1px 2px;cursor:pointer}.hot.svelte-4b9kml.svelte-4b9kml,.new.svelte-4b9kml.svelte-4b9kml{padding:0 2px;border-radius:8px;background:white;margin:2px}.card-category.svelte-1fw75v2.svelte-1fw75v2{height:24px;padding:0 2px;border:1px;background:black;color:#fff;font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center}.card_category-img.svelte-1fw75v2.svelte-1fw75v2{height:32px;background-size:100% 141%;background-position:center top;padding-top:6px}.card.svelte-1fw75v2.svelte-1fw75v2{border:1px solid rgba(255,255,255,.5);border-radius:16px;margin:6px 0;overflow:hidden;cursor:pointer;box-shadow:#0000004d 3px 3px,#0000001a -1px -1px;transition:box-shadow .2s}.card.svelte-1fw75v2.svelte-1fw75v2:hover{box-shadow:#7300ff4d 5px 5px,#0000001a -1px -1px}.card-title.svelte-1fw75v2.svelte-1fw75v2{padding:2px 0}.card-holder.svelte-1fw75v2.svelte-1fw75v2{background-color:#ffffff80;background:linear-gradient(to bottom,rgba(255,255,255,.4),rgba(255,255,255,0))}.card-line.svelte-1fw75v2.svelte-1fw75v2{margin-top:1px;margin-bottom:1px;display:flex;justify-content:space-evenly;align-items:center;height:20px}.two-lines.svelte-1fw75v2.svelte-1fw75v2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .3s}.two-lines.svelte-1fw75v2.svelte-1fw75v2:hover{-webkit-line-clamp:100}.cl-center.svelte-1fw75v2.svelte-1fw75v2{display:flex;justify-content:space-evenly;align-items:center}.cl-tags.svelte-1fw75v2.svelte-1fw75v2{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:2px;padding-top:4px;padding-bottom:2px}.cl-tags.svelte-1fw75v2.svelte-1fw75v2:has(span){padding-top:2px}.card-details.svelte-1fw75v2.svelte-1fw75v2{display:flex;justify-content:center;align-items:center;flex-direction:column}.card-image.svelte-1fw75v2.svelte-1fw75v2{height:100%;position:relative}.card-image.svelte-1fw75v2 img.svelte-1fw75v2{width:100%;object-fit:cover}.card-alter.svelte-1fw75v2.svelte-1fw75v2{text-align:center;height:20px;display:flex;justify-content:center;align-items:center}.top_and_free.svelte-1fw75v2.svelte-1fw75v2{padding:2px;border-radius:4px;margin-bottom:2px;display:flex;justify-content:center;align-items:center;line-height:11px;height:11px;font-size:10px}._Free.svelte-1fw75v2.svelte-1fw75v2{color:#00f}._2XFree.svelte-1fw75v2.svelte-1fw75v2{color:green}.card-description.svelte-1fw75v2.svelte-1fw75v2{padding-left:4px;padding-right:4px}.card-index.svelte-1fw75v2.svelte-1fw75v2{position:absolute;top:0;left:0;padding-right:9px;padding-left:2px;margin:0;height:20px;line-height:16px;font-size:16px;background-color:#000;color:#ff0;border-top-right-radius:100px;border-bottom-right-radius:100px;display:flex;align-items:center;pointer-events:none}.btnCollet.svelte-1fw75v2.svelte-1fw75v2{padding:1px 2px;cursor:pointer}.tempTags.svelte-1fw75v2.svelte-1fw75v2{background-color:#fff;margin-left:2px;padding-left:2px;padding-right:2px;border-radius:4px}#turnPage.svelte-kydsmq{width:100%;height:32px;border-radius:16px;line-height:20px;font-size:14px;position:absolute;bottom:0px}#_turnPage.svelte-1gtc1kh{width:100%;height:34px;border-radius:12px;line-height:20px;font-size:16px;margin:0;padding:0 10px}.card-category.svelte-rhfb99.svelte-rhfb99{height:18px;padding:0 2px;border:1px;background:black;color:#fff;font-weight:900;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center}.card_category-img.svelte-rhfb99.svelte-rhfb99{height:32px;background-size:100% 141%;background-position:center top;padding-top:6px}.card.svelte-rhfb99.svelte-rhfb99{border:2px solid;border-radius:16px;margin:6px 0;overflow:hidden;box-shadow:#0000004d 0 6px,#0000001a -1px -1px;transition:box-shadow .2s}.card-title.svelte-rhfb99.svelte-rhfb99{padding:2px 0}.card-holder.svelte-rhfb99.svelte-rhfb99{background-color:#ffffff80}.card-line.svelte-rhfb99.svelte-rhfb99{margin-top:1px;margin-bottom:2px;display:flex;justify-content:space-evenly;align-items:center;height:20px}.two-lines.svelte-rhfb99.svelte-rhfb99{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .3s;color:#000}.two-lines.svelte-rhfb99.svelte-rhfb99:hover{-webkit-line-clamp:100}.cl-center.svelte-rhfb99.svelte-rhfb99{display:flex;justify-content:space-evenly;align-items:center}.cl-tags.svelte-rhfb99.svelte-rhfb99{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:2px;padding-top:4px;padding-bottom:4px}.icon_holder.svelte-rhfb99.svelte-rhfb99{border-color:#2f4879;border-radius:100px;height:20px;width:20px;display:inline-flex;align-items:center;justify-content:center}.cl-btn.svelte-rhfb99.svelte-rhfb99{display:flex;justify-content:center;align-items:center;padding:1px 6px;border-radius:8px;background-color:#edf3ff}._tag.svelte-rhfb99.svelte-rhfb99{height:1.3em;line-height:1.3em;padding:0 .5em;border-radius:6px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}._tag_diy.svelte-rhfb99.svelte-rhfb99{color:#fff;background-color:#5abd48}._tag_dub.svelte-rhfb99.svelte-rhfb99{color:#fff;background-color:#5a3b14}._tag_sub.svelte-rhfb99.svelte-rhfb99{color:#fff;background-color:#3b4a7f}._tag_discount_50.svelte-rhfb99.svelte-rhfb99{background-color:#f50;color:#fff}._tag_discount_free.svelte-rhfb99.svelte-rhfb99{background-color:#108ee9;color:#fff}.card-details.svelte-rhfb99.svelte-rhfb99{display:flex;justify-content:center;align-items:center;flex-direction:column}.card-image.svelte-rhfb99.svelte-rhfb99{height:100%;position:relative}.card-image.svelte-rhfb99 img.svelte-rhfb99{width:100%;object-fit:cover}.card-description.svelte-rhfb99.svelte-rhfb99{padding:2px 4px}.card-description.svelte-rhfb99 a.svelte-rhfb99,.card-description.svelte-rhfb99 a.svelte-rhfb99:hover{color:#000}.card-index.svelte-rhfb99.svelte-rhfb99{position:absolute;top:0;left:0;padding-right:9px;padding-left:2px;margin:0;height:20px;line-height:16px;font-size:16px;background-color:#000;color:#ff0;border-top-right-radius:100px;border-bottom-right-radius:100px;display:flex;align-items:center;pointer-events:none}.hover-trigger.svelte-rhfb99.svelte-rhfb99{position:absolute;top:8px;right:8px;padding:0;width:42px;margin:0;height:40px;line-height:16px;font-size:16px;opacity:.75;border-radius:9999px;display:flex;align-items:center}.hover-trigger.svelte-rhfb99.svelte-rhfb99:hover{opacity:1}.masonry_Holder_unload_1st.svelte-11rmzun{height:96px;background:grey;position:relative}.masonry_Holder_loaded_1st.svelte-11rmzun{position:unset;background:transparent;padding:0}.masonry_Holder_unloaded.svelte-11rmzun{position:unset;background:transparent}.masonry_Holder_loaded.svelte-11rmzun{position:relative;background:transparent}.loading_Holder.svelte-11rmzun{background-color:#bccad6;position:absolute;width:100%;height:100%;z-index:10001;border-radius:8px;display:flex;justify-content:center}.loading_SubHolder.svelte-11rmzun{position:relative;padding:40px 0}.loading_Text.svelte-11rmzun{position:sticky;top:40px}div#_iframe.svelte-12ghpfg.svelte-12ghpfg{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#0026269b;z-index:30000;display:flex}div._iframe.svelte-12ghpfg.svelte-12ghpfg{height:96%;margin:auto;position:relative}div._iframe.svelte-12ghpfg iframe.svelte-12ghpfg{height:100%;border-radius:20px}._iframeCloseBtn.svelte-12ghpfg.svelte-12ghpfg{width:40px;height:40px;background:white;position:absolute;top:10px;right:10px;border-radius:40px} '); (function () { 'use strict'; function te(){}const Ul=t=>t;function bo(t,e){for(const i in e)t[i]=e[i];return t}function Io(t){return !!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}function Ql(t){return t()}function on(){return Object.create(null)}function Ce(t){t.forEach(Ql);}function qt(t){return typeof t=="function"}function tt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Xt;function ve(t,e){return Xt||(Xt=document.createElement("a")),Xt.href=e,t===Xt.href}function yo(t){return Object.keys(t).length===0}function Zl(t,...e){if(t==null)return te;const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function kt(t){let e;return Zl(t,i=>e=i)(),e}function F(t,e,i){t.$$.on_destroy.push(Zl(e,i));}function wo(t,e,i,n){if(t){const l=Bl(t,e,i,n);return t[0](l)}}function Bl(t,e,i,n){return t[1]&&n?bo(i.ctx.slice(),t[1](n(e))):i.ctx}function To(t,e,i,n){if(t[2]&&n){const l=t[2](n(i));if(e.dirty===void 0)return l;if(typeof l=="object"){const o=[],s=Math.max(e.dirty.length,l.length);for(let r=0;r<s;r+=1)o[r]=e.dirty[r]|l[r];return o}return e.dirty|l}return e.dirty}function No(t,e,i,n,l,o){if(l){const s=Bl(e,i,n,o);t.p(s,l);}}function ko(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return -1}function pe(t,e,i){return t.set(i),e}const Vl=typeof window<"u";let Do=Vl?()=>window.performance.now():()=>Date.now(),Ii=Vl?t=>requestAnimationFrame(t):te;const St=new Set;function Fl(t){St.forEach(e=>{e.c(t)||(St.delete(e),e.f());}),St.size!==0&&Ii(Fl);}function Co(t){let e;return St.size===0&&Ii(Fl),{promise:new Promise(i=>{St.add(e={c:t,f:i});}),abort(){St.delete(e);}}}const Lo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function f(t,e){t.appendChild(e);}function ql(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Ao(t){const e=M("style");return Eo(ql(t),e),e.sheet}function Eo(t,e){return f(t.head||t,e),e.sheet}function N(t,e,i){t.insertBefore(e,i||null);}function T(t){t.parentNode&&t.parentNode.removeChild(t);}function M(t){return document.createElement(t)}function bt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function D(t){return document.createTextNode(t)}function O(){return D(" ")}function We(){return D("")}function q(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Oo(t){return function(e){e.target===this&&t.call(this,e);}}function g(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i);}function ui(t){return t===""?null:+t}function So(t){return Array.from(t.childNodes)}function B(t,e){e=""+e,t.data!==e&&(t.data=e);}function Pt(t,e){t.value=e??"";}function G(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"");}function $e(t,e,i){t.classList[i?"add":"remove"](e);}function zo(t,e,{bubbles:i=!1,cancelable:n=!1}={}){const l=document.createEvent("CustomEvent");return l.initCustomEvent(t,i,n,e),l}class se{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null;}c(e){this.h(e);}m(e,i,n=null){this.e||(this.is_svg?this.e=bt(i.nodeName):this.e=M(i.nodeType===11?"TEMPLATE":i.nodeName),this.t=i.tagName!=="TEMPLATE"?i:i.content,this.c(e)),this.i(n);}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes);}i(e){for(let i=0;i<this.n.length;i+=1)N(this.t,this.n[i],e);}p(e){this.d(),this.h(e),this.i(this.a);}d(){this.n.forEach(T);}}const xt=new Map;let ei=0;function jo(t){let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return e>>>0}function Ro(t,e){const i={stylesheet:Ao(e),rules:{}};return xt.set(t,i),i}function sn(t,e,i,n,l,o,s,r=0){const a=16.666/n;let c=`{ `;for(let u=0;u<=1;u+=a){const v=e+(i-e)*o(u);c+=u*100+`%{${s(v,1-v)}} `;}const d=c+`100% {${s(i,1-i)}} }`,h=`__svelte_${jo(d)}_${r}`,m=ql(t),{stylesheet:_,rules:p}=xt.get(m)||Ro(m,t);p[h]||(p[h]=!0,_.insertRule(`@keyframes ${h} ${d}`,_.cssRules.length));const b=t.style.animation||"";return t.style.animation=`${b?`${b}, `:""}${h} ${n}ms linear ${l}ms 1 both`,ei+=1,h}function Po(t,e){const i=(t.style.animation||"").split(", "),n=i.filter(e?o=>o.indexOf(e)<0:o=>o.indexOf("__svelte")===-1),l=i.length-n.length;l&&(t.style.animation=n.join(", "),ei-=l,ei||Ho());}function Ho(){Ii(()=>{ei||(xt.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&T(e);}),xt.clear());});}let Zt;function ft(t){Zt=t;}function yi(){if(!Zt)throw new Error("Function called outside component initialization");return Zt}function ni(t){yi().$$.on_mount.push(t);}function Yo(t){yi().$$.after_update.push(t);}const Ot=[],je=[];let zt=[];const pi=[],Go=Promise.resolve();let vi=!1;function Wo(){vi||(vi=!0,Go.then(wi));}function It(t){zt.push(t);}function Ve(t){pi.push(t);}const di=new Set;let At=0;function wi(){if(At!==0)return;const t=Zt;do{try{for(;At<Ot.length;){const e=Ot[At];At++,ft(e),Uo(e.$$);}}catch(e){throw Ot.length=0,At=0,e}for(ft(null),Ot.length=0,At=0;je.length;)je.pop()();for(let e=0;e<zt.length;e+=1){const i=zt[e];di.has(i)||(di.add(i),i());}zt.length=0;}while(Ot.length);for(;pi.length;)pi.pop()();vi=!1,di.clear(),ft(t);}function Uo(t){if(t.fragment!==null){t.update(),Ce(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(It);}}function Qo(t){const e=[],i=[];zt.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),zt=e;}let Yt;function Zo(){return Yt||(Yt=Promise.resolve(),Yt.then(()=>{Yt=null;})),Yt}function _i(t,e,i){t.dispatchEvent(zo(`${e?"intro":"outro"}${i}`));}const $t=new Set;let ut;function xe(){ut={r:0,c:[],p:ut};}function et(){ut.r||Ce(ut.c),ut=ut.p;}function J(t,e){t&&t.i&&($t.delete(t),t.i(e));}function ee(t,e,i,n){if(t&&t.o){if($t.has(t))return;$t.add(t),ut.c.push(()=>{$t.delete(t),n&&(i&&t.d(1),n());}),t.o(e);}else n&&n();}const Bo={duration:0};function yt(t,e,i,n){const l={direction:"both"};let o=e(t,i,l),s=n?0:1,r=null,a=null,c=null;function d(){c&&Po(t,c);}function h(_,p){const b=_.b-s;return p*=Math.abs(b),{a:s,b:_.b,d:b,duration:p,start:_.start,end:_.start+p,group:_.group}}function m(_){const{delay:p=0,duration:b=300,easing:u=Ul,tick:v=te,css:I}=o||Bo,w={start:Do()+p,b:_};_||(w.group=ut,ut.r+=1),r||a?a=w:(I&&(d(),c=sn(t,s,_,b,p,u,I)),_&&v(0,1),r=h(w,b),It(()=>_i(t,_,"start")),Co(y=>{if(a&&y>a.start&&(r=h(a,b),a=null,_i(t,r.b,"start"),I&&(d(),c=sn(t,s,r.b,r.duration,0,u,o.css))),r){if(y>=r.end)v(s=r.b,1-s),_i(t,r.b,"end"),a||(r.b?d():--r.group.r||Ce(r.group.c)),r=null;else if(y>=r.start){const A=y-r.start;s=r.a+r.d*u(A/r.duration),v(s,1-s);}}return !!(r||a)}));}return {run(_){qt(o)?Zo().then(()=>{o=o(l),m(_);}):m(_);},end(){d(),r=a=null;}}}function ti(t,e){const i=e.token={};function n(l,o,s,r){if(e.token!==i)return;e.resolved=r;let a=e.ctx;s!==void 0&&(a=a.slice(),a[s]=r);const c=l&&(e.current=l)(a);let d=!1;e.block&&(e.blocks?e.blocks.forEach((h,m)=>{m!==o&&h&&(xe(),ee(h,1,1,()=>{e.blocks[m]===h&&(e.blocks[m]=null);}),et());}):e.block.d(1),c.c(),J(c,1),c.m(e.mount(),e.anchor),d=!0),e.block=c,e.blocks&&(e.blocks[o]=c),d&&wi();}if(Io(t)){const l=yi();if(t.then(o=>{ft(l),n(e.then,1,e.value,o),ft(null);},o=>{if(ft(l),n(e.catch,2,e.error,o),ft(null),!e.hasCatch)throw o}),e.current!==e.pending)return n(e.pending,0),!0}else {if(e.current!==e.then)return n(e.then,1,e.value,t),!0;e.resolved=t;}}function Jl(t,e,i){const n=e.slice(),{resolved:l}=t;t.current===t.then&&(n[t.value]=l),t.current===t.catch&&(n[t.error]=l),t.block.p(n,i);}function Ti(t,e){ee(t,1,1,()=>{e.delete(t.key);});}function Ni(t,e,i,n,l,o,s,r,a,c,d,h){let m=t.length,_=o.length,p=m;const b={};for(;p--;)b[t[p].key]=p;const u=[],v=new Map,I=new Map,w=[];for(p=_;p--;){const E=h(l,o,p),z=i(E);let k=s.get(z);k?n&&w.push(()=>k.p(E,e)):(k=c(z,E),k.c()),v.set(z,u[p]=k),z in b&&I.set(z,Math.abs(p-b[z]));}const y=new Set,A=new Set;function j(E){J(E,1),E.m(r,d),s.set(E.key,E),d=E.first,_--;}for(;m&&_;){const E=u[_-1],z=t[m-1],k=E.key,C=z.key;E===z?(d=E.first,m--,_--):v.has(C)?!s.has(k)||y.has(k)?j(E):A.has(C)?m--:I.get(k)>I.get(C)?(A.add(k),j(E)):(y.add(C),m--):(a(z,s),m--);}for(;m--;){const E=t[m];v.has(E.key)||a(E,s);}for(;_;)j(u[_-1]);return Ce(w),u}function Fe(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]));}function ze(t){t&&t.c();}function Ae(t,e,i,n){const{fragment:l,after_update:o}=t.$$;l&&l.m(e,i),n||It(()=>{const s=t.$$.on_mount.map(Ql).filter(qt);t.$$.on_destroy?t.$$.on_destroy.push(...s):Ce(s),t.$$.on_mount=[];}),o.forEach(It);}function Ee(t,e){const i=t.$$;i.fragment!==null&&(Qo(i.after_update),Ce(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[]);}function Vo(t,e){t.$$.dirty[0]===-1&&(Ot.push(t),Wo(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31;}function nt(t,e,i,n,l,o,s,r=[-1]){const a=Zt;ft(t);const c=t.$$={fragment:null,ctx:[],props:o,update:te,not_equal:l,bound:on(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:on(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};s&&s(c.root);let d=!1;if(c.ctx=i?i(t,e.props||{},(h,m,..._)=>{const p=_.length?_[0]:m;return c.ctx&&l(c.ctx[h],c.ctx[h]=p)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](p),d&&Vo(t,h)),m}):[],c.update(),d=!0,Ce(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const h=So(e.target);c.fragment&&c.fragment.l(h),h.forEach(T);}else c.fragment&&c.fragment.c();e.intro&&J(t.$$.fragment),Ae(t,e.target,e.anchor,e.customElement),wi();}ft(a);}class lt{$destroy(){Ee(this,1),this.$destroy=te;}$on(e,i){if(!qt(i))return te;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const l=n.indexOf(i);l!==-1&&n.splice(l,1);}}$set(e){this.$$set&&!yo(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1);}}function Fo(t){let e,i,n,l,o,s,r,a;return {c(){e=M("div"),i=M("button"),n=D("检测到种子列表"),l=M("br"),o=D("刷新以显示瀑布流"),g(i,"style",s=t[0]?"display: block":"display:none"),g(i,"id","_Reload"),g(i,"class","svelte-1me98ya");},m(c,d){N(c,e,d),f(e,i),f(i,n),f(i,l),f(i,o),r||(a=q(i,"click",qo),r=!0);},p(c,[d]){d&1&&s!==(s=c[0]?"display: block":"display:none")&&g(i,"style",s);},i:te,o:te,d(c){c&&T(e),r=!1,a();}}}function qo(){location.reload();}function Jo(t,e,i){let n,l,o=!0,s=!1;return o&&(n=location.pathname.includes("/browse"),o=!1),setInterval(()=>{l=location.pathname.includes("/browse"),i(0,s=!n&&l);},2e3),[s]}class Ko extends lt{constructor(e){super(),nt(this,e,Jo,Fo,tt,{});}}/*! * Masonry PACKAGED v4.2.2 * Cascading grid layout library * https://masonry.desandro.com * MIT License * by David DeSandro */(function(t,e){typeof define=="function"&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):t.jQueryBridget=e(t,t.jQuery);})(window,function(e,i){var n=Array.prototype.slice,l=e.console,o=typeof l>"u"?function(){}:function(a){l.error(a);};function s(a,c,d){if(d=d||i||e.jQuery,!d)return;c.prototype.option||(c.prototype.option=function(_){d.isPlainObject(_)&&(this.options=d.extend(!0,this.options,_));}),d.fn[a]=function(_){if(typeof _=="string"){var p=n.call(arguments,1);return h(this,_,p)}return m(this,_),this};function h(_,p,b){var u,v="$()."+a+'("'+p+'")';return _.each(function(I,w){var y=d.data(w,a);if(!y){o(a+" not initialized. Cannot call methods, i.e. "+v);return}var A=y[p];if(!A||p.charAt(0)=="_"){o(v+" is not a valid method");return}var j=A.apply(y,b);u=u===void 0?j:u;}),u!==void 0?u:_}function m(_,p){_.each(function(b,u){var v=d.data(u,a);v?(v.option(p),v._init()):(v=new c(u,p),d.data(u,a,v));});}r(d);}function r(a){!a||a&&a.bridget||(a.bridget=s);}return r(i||e.jQuery),s});(function(t,e){typeof define=="function"&&define.amd?define("ev-emitter/ev-emitter",e):t.EvEmitter=e();})(typeof window<"u"?window:globalThis,function(){function t(){}var e=t.prototype;return e.on=function(i,n){if(!(!i||!n)){var l=this._events=this._events||{},o=l[i]=l[i]||[];return o.indexOf(n)==-1&&o.push(n),this}},e.once=function(i,n){if(!(!i||!n)){this.on(i,n);var l=this._onceEvents=this._onceEvents||{},o=l[i]=l[i]||{};return o[n]=!0,this}},e.off=function(i,n){var l=this._events&&this._events[i];if(!(!l||!l.length)){var o=l.indexOf(n);return o!=-1&&l.splice(o,1),this}},e.emitEvent=function(i,n){var l=this._events&&this._events[i];if(!(!l||!l.length)){l=l.slice(0),n=n||[];for(var o=this._onceEvents&&this._onceEvents[i],s=0;s<l.length;s++){var r=l[s],a=o&&o[r];a&&(this.off(i,r),delete o[r]),r.apply(this,n);}return this}},e.allOff=function(){delete this._events,delete this._onceEvents;},t});/*! * getSize v2.0.3 * measure size of elements * MIT license */(function(t,e){typeof define=="function"&&define.amd?define("get-size/get-size",e):t.getSize=e();})(window,function(){function e(m){var _=parseFloat(m),p=m.indexOf("%")==-1&&!isNaN(_);return p&&_}function i(){}var n=typeof console>"u"?i:function(m){console.error(m);},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],o=l.length;function s(){for(var m={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},_=0;_<o;_++){var p=l[_];m[p]=0;}return m}function r(m){var _=getComputedStyle(m);return _||n("Style returned "+_+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),_}var a=!1,c;function d(){if(!a){a=!0;var m=document.createElement("div");m.style.width="200px",m.style.padding="1px 2px 3px 4px",m.style.borderStyle="solid",m.style.borderWidth="1px 2px 3px 4px",m.style.boxSizing="border-box";var _=document.body||document.documentElement;_.appendChild(m);var p=r(m);c=Math.round(e(p.width))==200,h.isBoxSizeOuter=c,_.removeChild(m);}}function h(m){if(d(),typeof m=="string"&&(m=document.querySelector(m)),!(!m||typeof m!="object"||!m.nodeType)){var _=r(m);if(_.display=="none")return s();var p={};p.width=m.offsetWidth,p.height=m.offsetHeight;for(var b=p.isBorderBox=_.boxSizing=="border-box",u=0;u<o;u++){var v=l[u],I=_[v],w=parseFloat(I);p[v]=isNaN(w)?0:w;}var y=p.paddingLeft+p.paddingRight,A=p.paddingTop+p.paddingBottom,j=p.marginLeft+p.marginRight,E=p.marginTop+p.marginBottom,z=p.borderLeftWidth+p.borderRightWidth,k=p.borderTopWidth+p.borderBottomWidth,C=b&&c,L=e(_.width);L!==!1&&(p.width=L+(C?0:y+z));var P=e(_.height);return P!==!1&&(p.height=P+(C?0:A+k)),p.innerWidth=p.width-(y+z),p.innerHeight=p.height-(A+k),p.outerWidth=p.width+j,p.outerHeight=p.height+E,p}}return h});(function(t,e){typeof define=="function"&&define.amd?define("desandro-matches-selector/matches-selector",e):t.matchesSelector=e();})(window,function(){var e=function(){var i=window.Element.prototype;if(i.matches)return "matches";if(i.matchesSelector)return "matchesSelector";for(var n=["webkit","moz","ms","o"],l=0;l<n.length;l++){var o=n[l],s=o+"MatchesSelector";if(i[s])return s}}();return function(n,l){return n[e](l)}});(function(t,e){typeof define=="function"&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):t.fizzyUIUtils=e(t,t.matchesSelector);})(window,function(e,i){var n={};n.extend=function(s,r){for(var a in r)s[a]=r[a];return s},n.modulo=function(s,r){return (s%r+r)%r};var l=Array.prototype.slice;n.makeArray=function(s){if(Array.isArray(s))return s;if(s==null)return [];var r=typeof s=="object"&&typeof s.length=="number";return r?l.call(s):[s]},n.removeFrom=function(s,r){var a=s.indexOf(r);a!=-1&&s.splice(a,1);},n.getParent=function(s,r){for(;s.parentNode&&s!=document.body;)if(s=s.parentNode,i(s,r))return s},n.getQueryElement=function(s){return typeof s=="string"?document.querySelector(s):s},n.handleEvent=function(s){var r="on"+s.type;this[r]&&this[r](s);},n.filterFindElements=function(s,r){s=n.makeArray(s);var a=[];return s.forEach(function(c){if(c instanceof HTMLElement){if(!r){a.push(c);return}i(c,r)&&a.push(c);for(var d=c.querySelectorAll(r),h=0;h<d.length;h++)a.push(d[h]);}}),a},n.debounceMethod=function(s,r,a){a=a||100;var c=s.prototype[r],d=r+"Timeout";s.prototype[r]=function(){var h=this[d];clearTimeout(h);var m=arguments,_=this;this[d]=setTimeout(function(){c.apply(_,m),delete _[d];},a);};},n.docReady=function(s){var r=document.readyState;r=="complete"||r=="interactive"?setTimeout(s):document.addEventListener("DOMContentLoaded",s);},n.toDashed=function(s){return s.replace(/(.)([A-Z])/g,function(r,a,c){return a+"-"+c}).toLowerCase()};var o=e.console;return n.htmlInit=function(s,r){n.docReady(function(){var a=n.toDashed(r),c="data-"+a,d=document.querySelectorAll("["+c+"]"),h=document.querySelectorAll(".js-"+a),m=n.makeArray(d).concat(n.makeArray(h)),_=c+"-options",p=e.jQuery;m.forEach(function(b){var u=b.getAttribute(c)||b.getAttribute(_),v;try{v=u&&JSON.parse(u);}catch(w){o&&o.error("Error parsing "+c+" on "+b.className+": "+w);return}var I=new s(b,v);p&&p.data(b,r,I);});});},n});(function(t,e){typeof define=="function"&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize));})(window,function(e,i){function n(b){for(var u in b)return !1;return u=null,!0}var l=document.documentElement.style,o=typeof l.transition=="string"?"transition":"WebkitTransition",s=typeof l.transform=="string"?"transform":"WebkitTransform",r={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[o],a={transform:s,transition:o,transitionDuration:o+"Duration",transitionProperty:o+"Property",transitionDelay:o+"Delay"};function c(b,u){b&&(this.element=b,this.layout=u,this.position={x:0,y:0},this._create());}var d=c.prototype=Object.create(e.prototype);d.constructor=c,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"});},d.handleEvent=function(b){var u="on"+b.type;this[u]&&this[u](b);},d.getSize=function(){this.size=i(this.element);},d.css=function(b){var u=this.element.style;for(var v in b){var I=a[v]||v;u[I]=b[v];}},d.getPosition=function(){var b=getComputedStyle(this.element),u=this.layout._getOption("originLeft"),v=this.layout._getOption("originTop"),I=b[u?"left":"right"],w=b[v?"top":"bottom"],y=parseFloat(I),A=parseFloat(w),j=this.layout.size;I.indexOf("%")!=-1&&(y=y/100*j.width),w.indexOf("%")!=-1&&(A=A/100*j.height),y=isNaN(y)?0:y,A=isNaN(A)?0:A,y-=u?j.paddingLeft:j.paddingRight,A-=v?j.paddingTop:j.paddingBottom,this.position.x=y,this.position.y=A;},d.layoutPosition=function(){var b=this.layout.size,u={},v=this.layout._getOption("originLeft"),I=this.layout._getOption("originTop"),w=v?"paddingLeft":"paddingRight",y=v?"left":"right",A=v?"right":"left",j=this.position.x+b[w];u[y]=this.getXValue(j),u[A]="";var E=I?"paddingTop":"paddingBottom",z=I?"top":"bottom",k=I?"bottom":"top",C=this.position.y+b[E];u[z]=this.getYValue(C),u[k]="",this.css(u),this.emitEvent("layout",[this]);},d.getXValue=function(b){var u=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!u?b/this.layout.size.width*100+"%":b+"px"},d.getYValue=function(b){var u=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&u?b/this.layout.size.height*100+"%":b+"px"},d._transitionTo=function(b,u){this.getPosition();var v=this.position.x,I=this.position.y,w=b==this.position.x&&u==this.position.y;if(this.setPosition(b,u),w&&!this.isTransitioning){this.layoutPosition();return}var y=b-v,A=u-I,j={};j.transform=this.getTranslate(y,A),this.transition({to:j,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0});},d.getTranslate=function(b,u){var v=this.layout._getOption("originLeft"),I=this.layout._getOption("originTop");return b=v?b:-b,u=I?u:-u,"translate3d("+b+"px, "+u+"px, 0)"},d.goTo=function(b,u){this.setPosition(b,u),this.layoutPosition();},d.moveTo=d._transitionTo,d.setPosition=function(b,u){this.position.x=parseFloat(b),this.position.y=parseFloat(u);},d._nonTransition=function(b){this.css(b.to),b.isCleaning&&this._removeStyles(b.to);for(var u in b.onTransitionEnd)b.onTransitionEnd[u].call(this);},d.transition=function(b){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(b);return}var u=this._transn;for(var v in b.onTransitionEnd)u.onEnd[v]=b.onTransitionEnd[v];for(v in b.to)u.ingProperties[v]=!0,b.isCleaning&&(u.clean[v]=!0);b.from&&(this.css(b.from),this.element.offsetHeight),this.enableTransition(b.to),this.css(b.to),this.isTransitioning=!0;};function h(b){return b.replace(/([A-Z])/g,function(u){return "-"+u.toLowerCase()})}var m="opacity,"+h(s);d.enableTransition=function(){if(!this.isTransitioning){var b=this.layout.options.transitionDuration;b=typeof b=="number"?b+"ms":b,this.css({transitionProperty:m,transitionDuration:b,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(r,this,!1);}},d.onwebkitTransitionEnd=function(b){this.ontransitionend(b);},d.onotransitionend=function(b){this.ontransitionend(b);};var _={"-webkit-transform":"transform"};d.ontransitionend=function(b){if(b.target===this.element){var u=this._transn,v=_[b.propertyName]||b.propertyName;if(delete u.ingProperties[v],n(u.ingProperties)&&this.disableTransition(),v in u.clean&&(this.element.style[b.propertyName]="",delete u.clean[v]),v in u.onEnd){var I=u.onEnd[v];I.call(this),delete u.onEnd[v];}this.emitEvent("transitionEnd",[this]);}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(r,this,!1),this.isTransitioning=!1;},d._removeStyles=function(b){var u={};for(var v in b)u[v]="";this.css(u);};var p={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(p);},d.stagger=function(b){b=isNaN(b)?0:b,this.staggerDelay=b+"ms";},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this]);},d.remove=function(){if(!o||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return}this.once("transitionEnd",function(){this.removeElem();}),this.hide();},d.reveal=function(){delete this.isHidden,this.css({display:""});var b=this.layout.options,u={},v=this.getHideRevealTransitionEndProperty("visibleStyle");u[v]=this.onRevealTransitionEnd,this.transition({from:b.hiddenStyle,to:b.visibleStyle,isCleaning:!0,onTransitionEnd:u});},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal");},d.getHideRevealTransitionEndProperty=function(b){var u=this.layout.options[b];if(u.opacity)return "opacity";for(var v in u)return v},d.hide=function(){this.isHidden=!0,this.css({display:""});var b=this.layout.options,u={},v=this.getHideRevealTransitionEndProperty("hiddenStyle");u[v]=this.onHideTransitionEnd,this.transition({from:b.visibleStyle,to:b.hiddenStyle,isCleaning:!0,onTransitionEnd:u});},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"));},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""});},c});/*! * Outlayer v2.1.1 * the brains and guts of a layout library * MIT license */(function(t,e){typeof define=="function"&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,l,o){return e(t,i,n,l,o)}):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item);})(window,function(e,i,n,l,o){var s=e.console,r=e.jQuery,a=function(){},c=0,d={};function h(u,v){var I=l.getQueryElement(u);if(!I){s&&s.error("Bad element for "+this.constructor.namespace+": "+(I||u));return}this.element=I,r&&(this.$element=r(this.element)),this.options=l.extend({},this.constructor.defaults),this.option(v);var w=++c;this.element.outlayerGUID=w,d[w]=this,this._create();var y=this._getOption("initLayout");y&&this.layout();}h.namespace="outlayer",h.Item=o,h.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var m=h.prototype;l.extend(m,i.prototype),m.option=function(u){l.extend(this.options,u);},m._getOption=function(u){var v=this.constructor.compatOptions[u];return v&&this.options[v]!==void 0?this.options[v]:this.options[u]},h.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},m._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),l.extend(this.element.style,this.options.containerStyle);var u=this._getOption("resize");u&&this.bindResize();},m.reloadItems=function(){this.items=this._itemize(this.element.children);},m._itemize=function(u){for(var v=this._filterFindItemElements(u),I=this.constructor.Item,w=[],y=0;y<v.length;y++){var A=v[y],j=new I(A,this);w.push(j);}return w},m._filterFindItemElements=function(u){return l.filterFindElements(u,this.options.itemSelector)},m.getItemElements=function(){return this.items.map(function(u){return u.element})},m.layout=function(){this._resetLayout(),this._manageStamps();var u=this._getOption("layoutInstant"),v=u!==void 0?u:!this._isLayoutInited;this.layoutItems(this.items,v),this._isLayoutInited=!0;},m._init=m.layout,m._resetLayout=function(){this.getSize();},m.getSize=function(){this.size=n(this.element);},m._getMeasurement=function(u,v){var I=this.options[u],w;I?(typeof I=="string"?w=this.element.querySelector(I):I instanceof HTMLElement&&(w=I),this[u]=w?n(w)[v]:I):this[u]=0;},m.layoutItems=function(u,v){u=this._getItemsForLayout(u),this._layoutItems(u,v),this._postLayout();},m._getItemsForLayout=function(u){return u.filter(function(v){return !v.isIgnored})},m._layoutItems=function(u,v){if(this._emitCompleteOnItems("layout",u),!(!u||!u.length)){var I=[];u.forEach(function(w){var y=this._getItemLayoutPosition(w);y.item=w,y.isInstant=v||w.isLayoutInstant,I.push(y);},this),this._processLayoutQueue(I);}},m._getItemLayoutPosition=function(){return {x:0,y:0}},m._processLayoutQueue=function(u){this.updateStagger(),u.forEach(function(v,I){this._positionItem(v.item,v.x,v.y,v.isInstant,I);},this);},m.updateStagger=function(){var u=this.options.stagger;if(u==null){this.stagger=0;return}return this.stagger=b(u),this.stagger},m._positionItem=function(u,v,I,w,y){w?u.goTo(v,I):(u.stagger(y*this.stagger),u.moveTo(v,I));},m._postLayout=function(){this.resizeContainer();},m.resizeContainer=function(){var u=this._getOption("resizeContainer");if(u){var v=this._getContainerSize();v&&(this._setContainerMeasure(v.width,!0),this._setContainerMeasure(v.height,!1));}},m._getContainerSize=a,m._setContainerMeasure=function(u,v){if(u!==void 0){var I=this.size;I.isBorderBox&&(u+=v?I.paddingLeft+I.paddingRight+I.borderLeftWidth+I.borderRightWidth:I.paddingBottom+I.paddingTop+I.borderTopWidth+I.borderBottomWidth),u=Math.max(u,0),this.element.style[v?"width":"height"]=u+"px";}},m._emitCompleteOnItems=function(u,v){var I=this;function w(){I.dispatchEvent(u+"Complete",null,[v]);}var y=v.length;if(!v||!y){w();return}var A=0;function j(){A++,A==y&&w();}v.forEach(function(E){E.once(u,j);});},m.dispatchEvent=function(u,v,I){var w=v?[v].concat(I):I;if(this.emitEvent(u,w),r)if(this.$element=this.$element||r(this.element),v){var y=r.Event(v);y.type=u,this.$element.trigger(y,I);}else this.$element.trigger(u,I);},m.ignore=function(u){var v=this.getItem(u);v&&(v.isIgnored=!0);},m.unignore=function(u){var v=this.getItem(u);v&&delete v.isIgnored;},m.stamp=function(u){u=this._find(u),u&&(this.stamps=this.stamps.concat(u),u.forEach(this.ignore,this));},m.unstamp=function(u){u=this._find(u),u&&u.forEach(function(v){l.removeFrom(this.stamps,v),this.unignore(v);},this);},m._find=function(u){if(u)return typeof u=="string"&&(u=this.element.querySelectorAll(u)),u=l.makeArray(u),u},m._manageStamps=function(){!this.stamps||!this.stamps.length||(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this));},m._getBoundingRect=function(){var u=this.element.getBoundingClientRect(),v=this.size;this._boundingRect={left:u.left+v.paddingLeft+v.borderLeftWidth,top:u.top+v.paddingTop+v.borderTopWidth,right:u.right-(v.paddingRight+v.borderRightWidth),bottom:u.bottom-(v.paddingBottom+v.borderBottomWidth)};},m._manageStamp=a,m._getElementOffset=function(u){var v=u.getBoundingClientRect(),I=this._boundingRect,w=n(u),y={left:v.left-I.left-w.marginLeft,top:v.top-I.top-w.marginTop,right:I.right-v.right-w.marginRight,bottom:I.bottom-v.bottom-w.marginBottom};return y},m.handleEvent=l.handleEvent,m.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0;},m.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1;},m.onresize=function(){this.resize();},l.debounceMethod(h,"onresize",100),m.resize=function(){!this.isResizeBound||!this.needsResizeLayout()||this.layout();},m.needsResizeLayout=function(){var u=n(this.element),v=this.size&&u;return v&&u.innerWidth!==this.size.innerWidth},m.addItems=function(u){var v=this._itemize(u);return v.length&&(this.items=this.items.concat(v)),v},m.appended=function(u){var v=this.addItems(u);v.length&&(this.layoutItems(v,!0),this.reveal(v));},m.prepended=function(u){var v=this._itemize(u);if(v.length){var I=this.items.slice(0);this.items=v.concat(I),this._resetLayout(),this._manageStamps(),this.layoutItems(v,!0),this.reveal(v),this.layoutItems(I);}},m.reveal=function(u){if(this._emitCompleteOnItems("reveal",u),!(!u||!u.length)){var v=this.updateStagger();u.forEach(function(I,w){I.stagger(w*v),I.reveal();});}},m.hide=function(u){if(this._emitCompleteOnItems("hide",u),!(!u||!u.length)){var v=this.updateStagger();u.forEach(function(I,w){I.stagger(w*v),I.hide();});}},m.revealItemElements=function(u){var v=this.getItems(u);this.reveal(v);},m.hideItemElements=function(u){var v=this.getItems(u);this.hide(v);},m.getItem=function(u){for(var v=0;v<this.items.length;v++){var I=this.items[v];if(I.element==u)return I}},m.getItems=function(u){u=l.makeArray(u);var v=[];return u.forEach(function(I){var w=this.getItem(I);w&&v.push(w);},this),v},m.remove=function(u){var v=this.getItems(u);this._emitCompleteOnItems("remove",v),!(!v||!v.length)&&v.forEach(function(I){I.remove(),l.removeFrom(this.items,I);},this);},m.destroy=function(){var u=this.element.style;u.height="",u.position="",u.width="",this.items.forEach(function(I){I.destroy();}),this.unbindResize();var v=this.element.outlayerGUID;delete d[v],delete this.element.outlayerGUID,r&&r.removeData(this.element,this.constructor.namespace);},h.data=function(u){u=l.getQueryElement(u);var v=u&&u.outlayerGUID;return v&&d[v]},h.create=function(u,v){var I=_(h);return I.defaults=l.extend({},h.defaults),l.extend(I.defaults,v),I.compatOptions=l.extend({},h.compatOptions),I.namespace=u,I.data=h.data,I.Item=_(o),l.htmlInit(I,u),r&&r.bridget&&r.bridget(u,I),I};function _(u){function v(){u.apply(this,arguments);}return v.prototype=Object.create(u.prototype),v.prototype.constructor=v,v}var p={ms:1,s:1e3};function b(u){if(typeof u=="number")return u;var v=u.match(/(^\d*\.?\d*)(\w*)/),I=v&&v[1],w=v&&v[2];if(!I.length)return 0;I=parseFloat(I);var y=p[w]||1;return I*y}return h.Item=o,h});/*! * Masonry v4.2.2 * Cascading grid layout library * https://masonry.desandro.com * MIT License * by David DeSandro */(function(t,e){typeof define=="function"&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):t.Masonry=e(t.Outlayer,t.getSize);})(window,function(e,i){var n=e.create("masonry");n.compatOptions.fitWidth="isFitWidth";var l=n.prototype;return l._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var o=0;o<this.cols;o++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0;},l.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var o=this.items[0],s=o&&o.element;this.columnWidth=s&&i(s).outerWidth||this.containerWidth;}var r=this.columnWidth+=this.gutter,a=this.containerWidth+this.gutter,c=a/r,d=r-a%r,h=d&&d<1?"round":"floor";c=Math[h](c),this.cols=Math.max(c,1);},l.getContainerWidth=function(){var o=this._getOption("fitWidth"),s=o?this.element.parentNode:this.element,r=i(s);this.containerWidth=r&&r.innerWidth;},l._getItemLayoutPosition=function(o){o.getSize();var s=o.size.outerWidth%this.columnWidth,r=s&&s<1?"round":"ceil",a=Math[r](o.size.outerWidth/this.columnWidth);a=Math.min(a,this.cols);for(var c=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",d=this[c](a,o),h={x:this.columnWidth*d.col,y:d.y},m=d.y+o.size.outerHeight,_=a+d.col,p=d.col;p<_;p++)this.colYs[p]=m;return h},l._getTopColPosition=function(o){var s=this._getTopColGroup(o),r=Math.min.apply(Math,s);return {col:s.indexOf(r),y:r}},l._getTopColGroup=function(o){if(o<2)return this.colYs;for(var s=[],r=this.cols+1-o,a=0;a<r;a++)s[a]=this._getColGroupY(a,o);return s},l._getColGroupY=function(o,s){if(s<2)return this.colYs[o];var r=this.colYs.slice(o,o+s);return Math.max.apply(Math,r)},l._getHorizontalColPosition=function(o,s){var r=this.horizontalColIndex%this.cols,a=o>1&&r+o>this.cols;r=a?0:r;var c=s.size.outerWidth&&s.size.outerHeight;return this.horizontalColIndex=c?r+o:this.horizontalColIndex,{col:r,y:this._getColGroupY(r,o)}},l._manageStamp=function(o){var s=i(o),r=this._getElementOffset(o),a=this._getOption("originLeft"),c=a?r.left:r.right,d=c+s.outerWidth,h=Math.floor(c/this.columnWidth);h=Math.max(0,h);var m=Math.floor(d/this.columnWidth);m-=d%this.columnWidth?0:1,m=Math.min(this.cols-1,m);for(var _=this._getOption("originTop"),p=(_?r.top:r.bottom)+s.outerHeight,b=h;b<=m;b++)this.colYs[b]=Math.max(p,this.colYs[b]);},l._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var o={height:this.maxY};return this._getOption("fitWidth")&&(o.width=this._getContainerFitWidth()),o},l._getContainerFitWidth=function(){for(var o=0,s=this.cols;--s&&this.colYs[s]===0;)o++;return (this.cols-o)*this.columnWidth-this.gutter},l.needsResizeLayout=function(){var o=this.containerWidth;return this.getContainerWidth(),o!=this.containerWidth},n});function wt(t,{delay:e=0,duration:i=400,easing:n=Ul}={}){const l=+getComputedStyle(t).opacity;return {delay:e,duration:i,easing:n,css:o=>`opacity: ${o*l}`}}const Et=[];function Jt(t,e=te){let i;const n=new Set;function l(r){if(tt(t,r)&&(t=r,i)){const a=!Et.length;for(const c of n)c[1](),Et.push(c,t);if(a){for(let c=0;c<Et.length;c+=2)Et[c][0](Et[c+1]);Et.length=0;}}}function o(r){l(r(t));}function s(r,a=te){const c=[r,a];return n.add(c),n.size===1&&(i=e(l)||te),r(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null);}}return {set:l,update:o,subscribe:s}}const Ut={Call:0,Run:0};function Kl(t,e){let i;return function(){const n=!i;i&&clearTimeout(i),i=setTimeout(()=>{i=null;},e),n&&t.apply(this,arguments);}}function Xl(t,e){let i,n=0;return function(...l){const o=Date.now(),s=o-n;!i&&s>e?(t.apply(this,l),n=o):(clearTimeout(i),i=setTimeout(()=>{t.apply(this,l),n=o,i=null;},e-s));}}const Xo=Xl(ki,1500),$o=Xl(ki,30);function ki(){Ut.Run++,console.log(`呼叫整理次数: ${Ut.Call} 实际整理次数: ${Ut.Run}`),masonry.layout();}function we(t="normal"){kt(Vt)?(Ut.Call++,masonry&&(t==="fast"?$o():Xo())):(Ut.Call++,masonry&&ki());}function Dt(){console.log("------------------------ NEXUS TOOLS Without jQuery ------------------------");function t(h,m){return Math.min(m.width/h.width,m.height/h.height)}function e(h,m){let _=m.naturalWidth??0,p=m.naturalHeight??0;const b=h.clientX,u=h.clientY,v=window.innerWidth,I=window.innerHeight,w=u,y=I-u,A=b,j=v-b,E={width:_,height:p},z={bot:{width:v,height:y},top:{width:v,height:w},right:{width:j,height:I},left:{width:A,height:I}};let k=0,C="";for(const S in z)if(Object.hasOwnProperty.call(z,S)){const Y=z[S];t(E,Y)>k&&(k=t(E,Y),C=S);}const L={top:{left:0,top:0,width:v+"px",height:w+"px"},bot:{left:0,top:w+"px",width:v+"px",height:y+"px"},left:{left:0,top:0,width:A+"px",height:I+"px"},right:{left:A+"px",top:0,width:j+"px",height:I+"px"},default:{left:0,top:0,width:0,height:0}};return C!=""?L[C]:L.default}function i(h){const m=document.createElement("div");m.id="kp_container",m.style.backgroundColor=h,m.style.opacity="1",m.style.position="Fixed",m.style.zIndex="20000",m.style.pointerEvents="none",m.style.transition="all .3s";const _=document.createElement("img");_.className="kp_img",_.style.position="absolute",_.style.zIndex="20002",_.style.pointerEvents="none",_.style.width="100%",_.style.height="100%",_.style.objectFit="contain",m.appendChild(_);const p=document.createElement("img");return p.className="kp_img",p.style.position="absolute",p.style.zIndex="20001",p.style.pointerEvents="none",p.style.width="100%",p.style.height="100%",p.style.objectFit="cover",p.style.filter="blur(8px)",m.appendChild(p),m}let n;const l=document.getElementById("kp_container"),o=l||i("");document.body.appendChild(o);const s="img.preview_Kesa";let r=null;function a(h){n=kt(vt)==0?h.target:h.relatedTarget,r=setTimeout(()=>{if(kt(Mi)){let m=n.getAttribute("src");m&&o&&o.querySelectorAll(".kp_img").forEach(b=>{b.setAttribute("src",m);});const _=e(h,n);o.style.left=_.left,o.style.top=_.top,o.style.width=_.width,o.style.height=_.height,o.style.display="block";}},kt(bi));}function c(){o.style.display="none",r&&clearTimeout(r);}function d(h){const m=e(h,n);o.style.left=m.left,o.style.top=m.top,o.style.width=m.width,o.style.height=m.height;}if(document.body.addEventListener("mouseover",function(h){console.log(kt(vt)),kt(vt)==0&&h.target.matches(s)&&a(h),kt(vt)==1&&h.target.matches("div.hover-trigger")&&a(h);}),document.body.addEventListener("mouseout",function(h){h.target.matches(s)&&c();}),document.body.addEventListener("mousemove",function(h){h.target.matches(s)&&d(h);}),"IntersectionObserver"in window){let h=[...document.querySelectorAll(".nexus-lazy-load_Kesa")];const m=new IntersectionObserver(_=>{_.forEach(p=>{const b=p.target;if(p.intersectionRatio,p.isIntersecting&&!b.classList.contains("preview_Kesa")){const u=b.dataset.src;b.src=u,b.classList.add("preview_Kesa"),we();}});});h.forEach(_=>m.observe(_));}}const Nt={};function $l(t){const e=localStorage.getItem(t);if(e)try{if(Nt[t]){if(e===Nt[t].string)return console.log("%c====> 读取 localstorage 缓存成功~","color: green;"),Nt[t].object;console.log("%c====> 更新 localstorage 缓存~","color: orange;");}else Nt[t]={};const i=JSON.parse(e);if(typeof i=="object"&&i!==null){for(const n in i)if(Object.hasOwnProperty.call(i,n)){const l=i[n];if(typeof l=="string")try{const o=JSON.parse(l);i[n]=o;}catch{}}return Nt[t].string=e,Nt[t].object=i,Nt[t].timestamp=new Date().getTime(),i}else console.error("localStorage 中的值不是一个对象");}catch(i){console.error("无法解析 localStorage 中的值为 JSON:",i);}else console.error(`localStorage 中不存在 key 为 ${t} 的值, 可能是本站 api 改变了`);}window.parseLocalStorage=$l;const Gt="Kesa:Masonry";function Xe(t,e){localStorage.getItem(Gt)||localStorage.setItem(Gt,"{}");const n=JSON.parse(localStorage.getItem(Gt))[t]??e,l=Jt(n);return l.subscribe(o=>{const s=JSON.parse(localStorage.getItem(Gt))??{};s[t]=o,localStorage.setItem(Gt,JSON.stringify(s));}),localStorage.getItem(t)&&localStorage.removeItem(t),l}const Bt=Jt({}),Be=Jt(0),it=Jt("https://kamept.com/index.php"),Lt=Xe("_domain",""),Tt=Xe("_bgColor",""),jt=Xe("_listViewMode",1),pt=Jt(!1),gi=Xe("_panelPos",{x:0,y:0}),Rt=Xe("_turnPage",!1),rn=Xe("_show_debug_btn",0),Mi=Xe("_show_nexus_pic",1),vt=Xe("_trigger_nexus_pic",1),bi=Xe("_delay_nexus_pic",600),Vt=Xe("_animated",!0),Qt=Xe("_card_layout",{column:4,gap:20}),xo={mt:{hide_gay:!0}},Ft=Xe("_SITE_SETTING",xo);let an=!1;Ft.subscribe(t=>{an?(we("fast"),we("fast"),we(),we()):an=!0;});const es={all:!1,title:!0,free:!1,sub_title:!1,tags:!1,size_download_collect:!1,upload_time:!1,statistics:!1},qe=Xe("_card_show",es);let cn=!1;qe.subscribe(t=>{cn?(we("fast"),we("fast"),we(),we()):cn=!0;});function fn(t){let e,i,n,l,o;return {c(){e=bt("svg"),i=bt("path"),n=bt("circle"),l=O(),o=M("div"),g(i,"d","M102.6476822,65.245285l-40.2463036,40.1161652c-3.1256676,3.1155624-8.1839256,3.1114655-11.3045425-0.0091476 l-26.7890854-26.789093c-3.1289177-3.1289139-3.1234951-8.2035599,0.0121021-11.3257828l40.077301-39.9063568 C65.8964539,25.8381672,67.9261017,25,70.0419083,25H97c4.4182816,0,8,3.5817223,8,8v26.5792809 C105,61.7055016,104.1535873,63.7442589,102.6476822,65.245285z"),g(i,"fill","yellow"),g(i,"stroke","#000000"),g(i,"stroke-linecap","round"),g(i,"stroke-linejoin","round"),g(i,"stroke-miterlimit","10"),g(i,"stroke-width","4"),g(i,"class","svelte-zt6zlx"),g(n,"cx","85"),g(n,"cy","45"),g(n,"fill","red"),g(n,"r","8"),g(n,"stroke","#000000"),g(n,"stroke-linecap","round"),g(n,"stroke-linejoin","round"),g(n,"stroke-miterlimit","10"),g(n,"stroke-width","4"),g(n,"class","svelte-zt6zlx"),g(e,"enable-background","new 0 0 128 128"),g(e,"id","Layer_1"),g(e,"version","1.1"),g(e,"viewBox","0 0 128 128"),g(e,"xml:space","preserve"),g(e,"width","28"),g(e,"height","28"),g(e,"class","hint svelte-zt6zlx"),g(o,"class","_hint svelte-zt6zlx");},m(s,r){N(s,e,r),f(e,i),f(e,n),N(s,l,r),N(s,o,r),o.innerHTML=t[5];},p(s,r){r&32&&(o.innerHTML=s[5]);},d(s){s&&T(e),s&&T(l),s&&T(o);}}}function un(t){let e,i;function n(s,r){return s[7]?ns:s[0]?is:ts}let l=n(t),o=l(t);return {c(){e=D(`: `),o.c(),i=We();},m(s,r){N(s,e,r),o.m(s,r),N(s,i,r);},p(s,r){l===(l=n(s))&&o?o.p(s,r):(o.d(1),o=l(s),o&&(o.c(),o.m(i.parentNode,i)));},d(s){s&&T(e),o.d(s),s&&T(i);}}}function ts(t){let e,i;return {c(){e=M("span"),i=D(t[3]),g(e,"class","title_green svelte-zt6zlx");},m(n,l){N(n,e,l),f(e,i);},p(n,l){l&8&&B(i,n[3]);},d(n){n&&T(e);}}}function is(t){let e,i;return {c(){e=M("span"),i=D(t[4]),g(e,"class","title_red svelte-zt6zlx");},m(n,l){N(n,e,l),f(e,i);},p(n,l){l&16&&B(i,n[4]);},d(n){n&&T(e);}}}function ns(t){let e;function i(o,s){return o[0]?os:ls}let n=i(t),l=n(t);return {c(){l.c(),e=We();},m(o,s){l.m(o,s),N(o,e,s);},p(o,s){n===(n=i(o))&&l?l.p(o,s):(l.d(1),l=n(o),l&&(l.c(),l.m(e.parentNode,e)));},d(o){l.d(o),o&&T(e);}}}function ls(t){let e,i;return {c(){e=M("span"),i=D(t[4]),g(e,"class","title_red svelte-zt6zlx");},m(n,l){N(n,e,l),f(e,i);},p(n,l){l&16&&B(i,n[4]);},d(n){n&&T(e);}}}function os(t){let e,i;return {c(){e=M("span"),i=D(t[3]),g(e,"class","title_green svelte-zt6zlx");},m(n,l){N(n,e,l),f(e,i);},p(n,l){l&8&&B(i,n[3]);},d(n){n&&T(e);}}}function dn(t){let e,i,n,l,o,s;return {c(){e=M("div"),i=M("input"),n=O(),l=M("label"),g(i,"type","checkbox"),g(i,"id","_t"+t[8]),g(i,"class","svelte-zt6zlx"),g(l,"for","_t"+t[8]),g(l,"class","svelte-zt6zlx"),g(e,"class","s_switch svelte-zt6zlx");},m(r,a){N(r,e,a),f(e,i),i.checked=t[0],f(e,n),f(e,l),o||(s=[q(i,"change",t[11]),q(i,"change",t[12])],o=!0);},p(r,a){a&1&&(i.checked=r[0]);},d(r){r&&T(e),o=!1,Ce(s);}}}function _n(t){let e;const i=t[10].default,n=wo(i,t,t[9],null);return {c(){n&&n.c();},m(l,o){n&&n.m(l,o),e=!0;},p(l,o){n&&n.p&&(!e||o&512)&&No(n,i,l,l[9],e?To(i,l[9],o,null):ko(l[9]),null);},i(l){e||(J(n,l),e=!0);},o(l){ee(n,l),e=!1;},d(l){n&&n.d(l);}}}function ss(t){let e,i,n,l,o,s,r,a,c=t[5]&&fn(t),d=(t[3]||t[4])&&un(t),h=t[1]=="switch"&&dn(t),m=t[1]=="range"&&_n(t);return {c(){e=M("div"),i=M("div"),c&&c.c(),n=O(),l=D(t[2]),o=O(),d&&d.c(),s=O(),h&&h.c(),r=O(),m&&m.c(),g(i,"class","s_title svelte-zt6zlx"),g(i,"title",t[5]),g(e,"class","switch svelte-zt6zlx");},m(_,p){N(_,e,p),f(e,i),c&&c.m(i,null),f(i,n),f(i,l),f(i,o),d&&d.m(i,null),f(e,s),h&&h.m(e,null),f(e,r),m&&m.m(e,null),a=!0;},p(_,[p]){_[5]?c?c.p(_,p):(c=fn(_),c.c(),c.m(i,n)):c&&(c.d(1),c=null),(!a||p&4)&&B(l,_[2]),_[3]||_[4]?d?d.p(_,p):(d=un(_),d.c(),d.m(i,null)):d&&(d.d(1),d=null),(!a||p&32)&&g(i,"title",_[5]),_[1]=="switch"?h?h.p(_,p):(h=dn(_),h.c(),h.m(e,r)):h&&(h.d(1),h=null),_[1]=="range"?m?(m.p(_,p),p&2&&J(m,1)):(m=_n(_),m.c(),J(m,1),m.m(e,null)):m&&(xe(),ee(m,1,1,()=>{m=null;}),et());},i(_){a||(J(m),a=!0);},o(_){ee(m),a=!1;},d(_){_&&T(e),c&&c.d(),d&&d.d(),h&&h.d(),m&&m.d();}}}function rs(t,e,i){let{$$slots:n={},$$scope:l}=e,{type:o="switch"}=e,{title_fixed:s=""}=e,{title_green:r=""}=e,{title_red:a=""}=e,{label:c=""}=e,{func:d=null}=e;const h=Math.random().toFixed(8);let{checked:m=!1}=e,{green_state:_=!0}=e;function p(){m=this.checked,i(0,m);}const b=()=>{console.log(s,m),d!=null&&d();};return t.$$set=u=>{"type"in u&&i(1,o=u.type),"title_fixed"in u&&i(2,s=u.title_fixed),"title_green"in u&&i(3,r=u.title_green),"title_red"in u&&i(4,a=u.title_red),"label"in u&&i(5,c=u.label),"func"in u&&i(6,d=u.func),"checked"in u&&i(0,m=u.checked),"green_state"in u&&i(7,_=u.green_state),"$$scope"in u&&i(9,l=u.$$scope);},[m,o,s,r,a,c,d,_,h,l,n,p,b]}class Ge extends lt{constructor(e){super(),nt(this,e,rs,ss,tt,{type:1,title_fixed:2,title_green:3,title_red:4,label:5,func:6,checked:0,green_state:7});}}function as(t){let e,i,n;return {c(){e=M("div"),e.innerHTML=`<svg viewBox="0 0 32 32" width="24" height="24" xmlns="http://www.w3.org/2000/svg"><defs><style>.cls-1 { fill: none; stroke: #000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2px; } </style></defs><title></title><g data-name="43-browser" id="_43-browser"><rect class="cls-1" height="30" width="30" x="1" y="1"></rect><line class="cls-1" x1="1" x2="31" y1="9" y2="9"></line><line class="cls-1" x1="5" x2="7" y1="5" y2="5"></line><line class="cls-1" x1="11" x2="13" y1="5" y2="5"></line><line class="cls-1" x1="9" x2="25" y1="16" y2="16"></line><line class="cls-1" x1="7" x2="25" y1="20" y2="20"></line><line class="cls-1" x1="7" x2="25" y1="24" y2="24"></line></g></svg>`,i=O(),n=M("div"),n.textContent="原有列表";},m(l,o){N(l,e,o),N(l,i,o),N(l,n,o);},d(l){l&&T(e),l&&T(i),l&&T(n);}}}function cs(t){let e,i,n;return {c(){e=M("div"),e.innerHTML='<svg enable-background="new 0 0 64 64" width="24" height="24" id="Layer_1" version="1.1" viewBox="0 0 64 64"><path d="M19,2.875H3.5c-0.829,0-1.5,0.671-1.5,1.5v19.979c0,0.829,0.671,1.5,1.5,1.5H19c0.829,0,1.5-0.671,1.5-1.5V4.375 C20.5,3.546,19.829,2.875,19,2.875z M17.5,22.854H5V5.875h12.5V22.854z" fill="white"></path><path d="M19,28.773H3.5c-0.829,0-1.5,0.671-1.5,1.5v6.166c0,0.828,0.671,1.5,1.5,1.5H19c0.829,0,1.5-0.672,1.5-1.5v-6.166 C20.5,29.445,19.829,28.773,19,28.773z M17.5,34.939H5v-3.166h12.5V34.939z" fill="white"></path><path d="M19,40.859H3.5c-0.829,0-1.5,0.672-1.5,1.5v17.266c0,0.828,0.671,1.5,1.5,1.5H19c0.829,0,1.5-0.672,1.5-1.5V42.359 C20.5,41.531,19.829,40.859,19,40.859z M17.5,58.125H5V43.859h12.5V58.125z" fill="white"></path><path d="M40,2.875H24.5c-0.829,0-1.5,0.671-1.5,1.5v14.25c0,0.829,0.671,1.5,1.5,1.5H40c0.828,0,1.5-0.671,1.5-1.5V4.375 C41.5,3.546,40.828,2.875,40,2.875z M38.5,17.125H26V5.875h12.5V17.125z" fill="white"></path><path d="M40,23.125H24.5c-0.829,0-1.5,0.671-1.5,1.5V46.5c0,0.828,0.671,1.5,1.5,1.5H40c0.828,0,1.5-0.672,1.5-1.5V24.625 C41.5,23.796,40.828,23.125,40,23.125z M38.5,45H26V26.125h12.5V45z" fill="white"></path><path d="M40,51H24.5c-0.829,0-1.5,0.672-1.5,1.5v7.125c0,0.828,0.671,1.5,1.5,1.5H40c0.828,0,1.5-0.672,1.5-1.5V52.5 C41.5,51.672,40.828,51,40,51z M38.5,58.125H26V54h12.5V58.125z" fill="white"></path><path d="M60.5,2.875H45c-0.828,0-1.5,0.671-1.5,1.5v35.171c0,0.828,0.672,1.5,1.5,1.5h15.5c0.828,0,1.5-0.672,1.5-1.5V4.375 C62,3.546,61.328,2.875,60.5,2.875z M59,38.046H46.5V5.875H59V38.046z" fill="white"></path><path d="M60.5,44.346H45c-0.828,0-1.5,0.672-1.5,1.5v13.779c0,0.828,0.672,1.5,1.5,1.5h15.5c0.828,0,1.5-0.672,1.5-1.5V45.846 C62,45.018,61.328,44.346,60.5,44.346z M59,58.125H46.5V47.346H59V58.125z" fill="white"></path></svg>',i=O(),n=M("div"),n.textContent="瀑布流";},m(l,o){N(l,e,o),N(l,i,o),N(l,n,o);},d(l){l&&T(e),l&&T(i),l&&T(n);}}}function gn(t){let e,i,n,l,o,s,r,a,c;return {c(){e=M("button"),e.textContent="[d]显示详情",i=O(),n=M("button"),l=D("[d]"),o=D(t[1]),s=O(),r=M("button"),r.textContent="[d]iframe",g(e,"class","sideP__btn svelte-kk96f3"),g(n,"class","sideP__btn svelte-kk96f3"),g(r,"class","sideP__btn svelte-kk96f3");},m(d,h){N(d,e,h),N(d,i,h),N(d,n,h),f(n,l),f(n,o),N(d,s,h),N(d,r,h),a||(c=[q(e,"click",t[19]),q(n,"click",t[20]),q(r,"click",t[21])],a=!0);},p(d,h){h[0]&2&&B(o,d[1]);},d(d){d&&T(e),d&&T(i),d&&T(n),d&&T(s),d&&T(r),a=!1,Ce(c);}}}function mn(t){let e,i,n,l,o,s,r,a=t[9].includes("m-team"),c,d,h,m,_,p,b,u,v,I,w,y,A,j,E,z,k,C,L,P,S,Y,Me,ie,U,X,K,re,Q,W,fe,he,ue,de,be,Ne,De,Oe,ge,Se,Ie,ke,Re,me,oe,R,ye,ne,ae,ot,Le,Pe,Je,st,Ue,Ke,rt,Qe,at,ce,le,Z,V,dt,li,Ci,_t,oi,Li,gt,si,mt,Ht,ri,Ai,He=a&&hn(t);function oo(H){t[27](H);}let Ei={title_fixed:"显示模式",title_green:"瀑布流",title_red:"原始表格",label:t[9].includes("m-team")?"":"原始表格模式仅支持点击图片显示iframe和加载下一页",func:t[26]};t[4]!==void 0&&(Ei.checked=t[4]),p=new Ge({props:Ei}),je.push(()=>Fe(p,"checked",oo));function so(H){t[28](H);}let Oi={title_fixed:"加载下一页方式",title_green:"按钮(默认)",title_red:"滚动(谨慎使用)",label:"滚动模式下 MT 等网站频繁使用可能会导致 120",green_state:!1};t[2]!==void 0&&(Oi.checked=t[2]),w=new Ge({props:Oi}),je.push(()=>Fe(w,"checked",so));function ro(H){t[29](H);}let Si={title_fixed:"卡片移动动画",title_green:"开启",title_red:"关闭",label:"开启关闭瀑布流卡片高度变化时的缓动动画",green_state:!0};t[11]!==void 0&&(Si.checked=t[11]),z=new Ge({props:Si}),je.push(()=>Fe(z,"checked",ro));function ao(H){t[30](H);}let zi={title_fixed:"悬浮预览大图",title_green:"默认开启",title_red:"核心功能->确定不用再关"};t[12]!==void 0&&(zi.checked=t[12]),S=new Ge({props:zi}),je.push(()=>Fe(S,"checked",ao));function co(H){t[31](H);}let ji={title_fixed:"预览大图方式",title_green:"局部悬浮预览区域",title_red:"全图悬浮预览",label:"开发中 <br> 为优化用户预览大图体验 <br> 鼠标放到图片上就显示大图会遮挡信息 <br> 指定在图片的局部 区域放大"};t[13]!==void 0&&(ji.checked=t[13]),ie=new Ge({props:ji}),je.push(()=>Fe(ie,"checked",co));let Ye=t[12]&&pn(t);function fo(H){t[33](H);}let Ri={title_fixed:"侧边栏debug按钮",title_green:"隐藏(默认)",title_red:"显示(开发用)",green_state:!1};t[8]!==void 0&&(Ri.checked=t[8]),W=new Ge({props:Ri}),je.push(()=>Fe(W,"checked",fo)),De=new Ge({props:{title_fixed:`卡片列数: ${t[15].column}`,label:"范围: 2~7 列",type:"range",$$slots:{default:[us]},$$scope:{ctx:t}}}),ge=new Ge({props:{title_fixed:`卡片间距: ${t[15].gap}px`,label:"范围: 2~100 px",type:"range",$$slots:{default:[ds]},$$scope:{ctx:t}}});function uo(H){t[36](H);}let Pi={title_fixed:"卡片信息",title_green:"显示下方所选信息(精简)",title_red:"显示所有信息(较乱)",green_state:!1,func:we};t[3].all!==void 0&&(Pi.checked=t[3].all),oe=new Ge({props:Pi}),je.push(()=>Fe(oe,"checked",uo));function _o(H){t[37](H);}let Hi={title_fixed:"显示种子名称",func:we};t[3].title!==void 0&&(Hi.checked=t[3].title),Pe=new Ge({props:Hi}),je.push(()=>Fe(Pe,"checked",_o));function go(H){t[38](H);}let Yi={title_fixed:"显示置顶和免费",func:we};t[3].free!==void 0&&(Yi.checked=t[3].free),Ue=new Ge({props:Yi}),je.push(()=>Fe(Ue,"checked",go));function mo(H){t[39](H);}let Gi={title_fixed:"显示副标题",func:we};t[3].sub_title!==void 0&&(Gi.checked=t[3].sub_title),Qe=new Ge({props:Gi}),je.push(()=>Fe(Qe,"checked",mo));function ho(H){t[40](H);}let Wi={title_fixed:"显示标签",func:we};t[3].tags!==void 0&&(Wi.checked=t[3].tags),le=new Ge({props:Wi}),je.push(()=>Fe(le,"checked",ho));function po(H){t[41](H);}let Ui={title_fixed:"显示 [大小/下载/收藏]",func:we};t[3].size_download_collect!==void 0&&(Ui.checked=t[3].size_download_collect),dt=new Ge({props:Ui}),je.push(()=>Fe(dt,"checked",po));function vo(H){t[42](H);}let Qi={title_fixed:"显示上传时间",func:we};t[3].upload_time!==void 0&&(Qi.checked=t[3].upload_time),_t=new Ge({props:Qi}),je.push(()=>Fe(_t,"checked",vo));function Mo(H){t[43](H);}let Zi={title_fixed:"显示 [评论/上传/下载/完成]",func:we};return t[3].statistics!==void 0&&(Zi.checked=t[3].statistics),gt=new Ge({props:Zi}),je.push(()=>Fe(gt,"checked",Mo)),{c(){e=M("div"),i=M("div"),n=M("div"),l=M("p"),l.textContent="详细配置面板",o=O(),s=M("button"),s.innerHTML='<svg class="feather feather-x" fill="none" height="28" width="28" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24"><line x1="20" x2="6" y1="6" y2="20"></line><line x1="6" x2="20" y1="6" y2="20"></line></svg>',r=O(),He&&He.c(),c=O(),d=M("div"),h=M("h1"),h.textContent="常用配置",m=O(),_=M("div"),ze(p.$$.fragment),u=O(),v=M("br"),I=O(),ze(w.$$.fragment),A=O(),j=M("br"),E=O(),ze(z.$$.fragment),C=O(),L=M("br"),P=O(),ze(S.$$.fragment),Me=O(),ze(ie.$$.fragment),X=O(),Ye&&Ye.c(),K=O(),re=M("br"),Q=O(),ze(W.$$.fragment),he=O(),ue=M("div"),de=M("h1"),de.textContent="卡片布局",be=O(),Ne=M("div"),ze(De.$$.fragment),Oe=O(),ze(ge.$$.fragment),Se=O(),Ie=M("div"),ke=M("h1"),ke.textContent="卡片信息",Re=O(),me=M("div"),ze(oe.$$.fragment),ye=O(),ne=M("div"),ae=M("h3"),ae.textContent="配置常驻卡片信息",ot=O(),Le=M("div"),ze(Pe.$$.fragment),st=O(),ze(Ue.$$.fragment),rt=O(),ze(Qe.$$.fragment),ce=O(),ze(le.$$.fragment),V=O(),ze(dt.$$.fragment),Ci=O(),ze(_t.$$.fragment),Li=O(),ze(gt.$$.fragment),G(l,"margin","auto 0"),g(n,"class","configP_title svelte-kk96f3"),g(h,"class","s_title"),g(_,"class","s_panel"),g(d,"class","section svelte-kk96f3"),g(de,"class","s_title"),g(Ne,"class","s_panel"),g(ue,"class","section svelte-kk96f3"),g(ke,"class","s_title"),g(me,"class","s_panel"),g(ae,"class","s_title"),g(Le,"class","s_panel"),g(ne,"class","section svelte-kk96f3"),g(Ie,"class","section svelte-kk96f3"),g(i,"class","configP_holder svelte-kk96f3"),g(e,"class","configP svelte-kk96f3");},m(H,_e){N(H,e,_e),f(e,i),f(i,n),f(n,l),f(n,o),f(n,s),f(i,r),He&&He.m(i,null),f(i,c),f(i,d),f(d,h),f(d,m),f(d,_),Ae(p,_,null),f(_,u),f(_,v),f(_,I),Ae(w,_,null),f(_,A),f(_,j),f(_,E),Ae(z,_,null),f(_,C),f(_,L),f(_,P),Ae(S,_,null),f(_,Me),Ae(ie,_,null),f(_,X),Ye&&Ye.m(_,null),f(_,K),f(_,re),f(_,Q),Ae(W,_,null),f(i,he),f(i,ue),f(ue,de),f(ue,be),f(ue,Ne),Ae(De,Ne,null),f(Ne,Oe),Ae(ge,Ne,null),f(i,Se),f(i,Ie),f(Ie,ke),f(Ie,Re),f(Ie,me),Ae(oe,me,null),f(Ie,ye),f(Ie,ne),f(ne,ae),f(ne,ot),f(ne,Le),Ae(Pe,Le,null),f(Le,st),Ae(Ue,Le,null),f(Le,rt),Ae(Qe,Le,null),f(Le,ce),Ae(le,Le,null),f(Le,V),Ae(dt,Le,null),f(Le,Ci),Ae(_t,Le,null),f(Le,Li),Ae(gt,Le,null),Ht=!0,ri||(Ai=[q(s,"click",t[24]),q(e,"click",Oo(t[44]))],ri=!0);},p(H,_e){_e[0]&512&&(a=H[9].includes("m-team")),a?He?(He.p(H,_e),_e[0]&512&&J(He,1)):(He=hn(H),He.c(),J(He,1),He.m(i,c)):He&&(xe(),ee(He,1,1,()=>{He=null;}),et());const ai={};_e[0]&512&&(ai.label=H[9].includes("m-team")?"":"原始表格模式仅支持点击图片显示iframe和加载下一页"),!b&&_e[0]&16&&(b=!0,ai.checked=H[4],Ve(()=>b=!1)),p.$set(ai);const Bi={};!y&&_e[0]&4&&(y=!0,Bi.checked=H[2],Ve(()=>y=!1)),w.$set(Bi);const Vi={};!k&&_e[0]&2048&&(k=!0,Vi.checked=H[11],Ve(()=>k=!1)),z.$set(Vi);const Fi={};!Y&&_e[0]&4096&&(Y=!0,Fi.checked=H[12],Ve(()=>Y=!1)),S.$set(Fi);const qi={};!U&&_e[0]&8192&&(U=!0,qi.checked=H[13],Ve(()=>U=!1)),ie.$set(qi),H[12]?Ye?(Ye.p(H,_e),_e[0]&4096&&J(Ye,1)):(Ye=pn(H),Ye.c(),J(Ye,1),Ye.m(_,K)):Ye&&(xe(),ee(Ye,1,1,()=>{Ye=null;}),et());const Ji={};!fe&&_e[0]&256&&(fe=!0,Ji.checked=H[8],Ve(()=>fe=!1)),W.$set(Ji);const ci={};_e[0]&32768&&(ci.title_fixed=`卡片列数: ${H[15].column}`),_e[0]&32768|_e[1]&4194304&&(ci.$$scope={dirty:_e,ctx:H}),De.$set(ci);const fi={};_e[0]&32768&&(fi.title_fixed=`卡片间距: ${H[15].gap}px`),_e[0]&32768|_e[1]&4194304&&(fi.$$scope={dirty:_e,ctx:H}),ge.$set(fi);const Ki={};!R&&_e[0]&8&&(R=!0,Ki.checked=H[3].all,Ve(()=>R=!1)),oe.$set(Ki);const Xi={};!Je&&_e[0]&8&&(Je=!0,Xi.checked=H[3].title,Ve(()=>Je=!1)),Pe.$set(Xi);const $i={};!Ke&&_e[0]&8&&(Ke=!0,$i.checked=H[3].free,Ve(()=>Ke=!1)),Ue.$set($i);const xi={};!at&&_e[0]&8&&(at=!0,xi.checked=H[3].sub_title,Ve(()=>at=!1)),Qe.$set(xi);const en={};!Z&&_e[0]&8&&(Z=!0,en.checked=H[3].tags,Ve(()=>Z=!1)),le.$set(en);const tn={};!li&&_e[0]&8&&(li=!0,tn.checked=H[3].size_download_collect,Ve(()=>li=!1)),dt.$set(tn);const nn={};!oi&&_e[0]&8&&(oi=!0,nn.checked=H[3].upload_time,Ve(()=>oi=!1)),_t.$set(nn);const ln={};!si&&_e[0]&8&&(si=!0,ln.checked=H[3].statistics,Ve(()=>si=!1)),gt.$set(ln);},i(H){Ht||(J(He),J(p.$$.fragment,H),J(w.$$.fragment,H),J(z.$$.fragment,H),J(S.$$.fragment,H),J(ie.$$.fragment,H),J(Ye),J(W.$$.fragment,H),J(De.$$.fragment,H),J(ge.$$.fragment,H),J(oe.$$.fragment,H),J(Pe.$$.fragment,H),J(Ue.$$.fragment,H),J(Qe.$$.fragment,H),J(le.$$.fragment,H),J(dt.$$.fragment,H),J(_t.$$.fragment,H),J(gt.$$.fragment,H),It(()=>{Ht&&(mt||(mt=yt(e,wt,{duration:100},!0)),mt.run(1));}),Ht=!0);},o(H){ee(He),ee(p.$$.fragment,H),ee(w.$$.fragment,H),ee(z.$$.fragment,H),ee(S.$$.fragment,H),ee(ie.$$.fragment,H),ee(Ye),ee(W.$$.fragment,H),ee(De.$$.fragment,H),ee(ge.$$.fragment,H),ee(oe.$$.fragment,H),ee(Pe.$$.fragment,H),ee(Ue.$$.fragment,H),ee(Qe.$$.fragment,H),ee(le.$$.fragment,H),ee(dt.$$.fragment,H),ee(_t.$$.fragment,H),ee(gt.$$.fragment,H),mt||(mt=yt(e,wt,{duration:100},!1)),mt.run(0),Ht=!1;},d(H){H&&T(e),He&&He.d(),Ee(p),Ee(w),Ee(z),Ee(S),Ee(ie),Ye&&Ye.d(),Ee(W),Ee(De),Ee(ge),Ee(oe),Ee(Pe),Ee(Ue),Ee(Qe),Ee(le),Ee(dt),Ee(_t),Ee(gt),H&&mt&&mt.end(),ri=!1,Ce(Ai);}}}function hn(t){let e,i,n,l,o,s,r;function a(d){t[25](d);}let c={title_fixed:"隐藏Gay分区卡片",title_green:"隐藏(默认)",title_red:"显示(狠人)"};return t[10].mt.hide_gay!==void 0&&(c.checked=t[10].mt.hide_gay),o=new Ge({props:c}),je.push(()=>Fe(o,"checked",a)),{c(){e=M("div"),i=M("h1"),i.textContent="MT专用配置",n=O(),l=M("div"),ze(o.$$.fragment),g(i,"class","s_title"),g(l,"class","s_panel"),g(e,"class","section svelte-kk96f3");},m(d,h){N(d,e,h),f(e,i),f(e,n),f(e,l),Ae(o,l,null),r=!0;},p(d,h){const m={};!s&&h[0]&1024&&(s=!0,m.checked=d[10].mt.hide_gay,Ve(()=>s=!1)),o.$set(m);},i(d){r||(J(o.$$.fragment,d),r=!0);},o(d){ee(o.$$.fragment,d),r=!1;},d(d){d&&T(e),Ee(o);}}}function pn(t){let e,i;return e=new Ge({props:{title_fixed:`悬浮预览延迟${t[14]?":"+t[14]+"ms":""}`,title_red:`${t[14]?"":"无延迟"}`,label:"防止无意滑动时大图打开妨碍预览",type:"range",$$slots:{default:[fs]},$$scope:{ctx:t}}}),{c(){ze(e.$$.fragment);},m(n,l){Ae(e,n,l),i=!0;},p(n,l){const o={};l[0]&16384&&(o.title_fixed=`悬浮预览延迟${n[14]?":"+n[14]+"ms":""}`),l[0]&16384&&(o.title_red=`${n[14]?"":"无延迟"}`),l[0]&16384|l[1]&4194304&&(o.$$scope={dirty:l,ctx:n}),e.$set(o);},i(n){i||(J(e.$$.fragment,n),i=!0);},o(n){ee(e.$$.fragment,n),i=!1;},d(n){Ee(e,n);}}}function fs(t){let e,i,n;return {c(){e=M("input"),g(e,"type","range"),g(e,"min","0"),g(e,"max","1500"),g(e,"step","100"),g(e,"list","values");},m(l,o){N(l,e,o),Pt(e,t[14]),i||(n=[q(e,"change",t[32]),q(e,"input",t[32])],i=!0);},p(l,o){o[0]&16384&&Pt(e,l[14]);},d(l){l&&T(e),i=!1,Ce(n);}}}function us(t){let e,i,n;return {c(){e=M("input"),g(e,"type","range"),g(e,"min","2"),g(e,"max","7"),g(e,"step","1"),g(e,"list","values");},m(l,o){N(l,e,o),Pt(e,t[15].column),i||(n=[q(e,"change",t[34]),q(e,"input",t[34]),q(e,"change",window.CHANGE_CARD_LAYOUT)],i=!0);},p(l,o){o[0]&32768&&Pt(e,l[15].column);},d(l){l&&T(e),i=!1,Ce(n);}}}function ds(t){let e,i,n;return {c(){e=M("input"),g(e,"type","range"),g(e,"min","2"),g(e,"max","100"),g(e,"step","1"),g(e,"list","values");},m(l,o){N(l,e,o),Pt(e,t[15].gap),i||(n=[q(e,"change",t[35]),q(e,"input",t[35]),q(e,"change",window.CHANGE_CARD_LAYOUT)],i=!0);},p(l,o){o[0]&32768&&Pt(e,l[15].gap);},d(l){l&&T(e),i=!1,Ce(n);}}}function _s(t){let e,i,n,l,o,s,r,a,c,d,h,m,_,p;function b(y,A){return y[4]?cs:as}let u=b(t),v=u(t),I=t[8]&&gn(t),w=t[7]&&mn(t);return {c(){e=M("div"),i=M("div"),n=O(),l=M("div"),o=M("button"),v.c(),s=O(),r=M("button"),r.innerHTML=`<div><svg width="24" height="24" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><defs><style>.cls-1 { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2px; } </style></defs><title></title><g data-name="80-setting" id="_80-setting"><circle class="cls-1" cx="10" cy="6" r="3"></circle><circle class="cls-1" cx="22" cy="16" r="3"></circle><circle class="cls-1" cx="10" cy="26" r="3"></circle><line class="cls-1" x1="7" x2="1" y1="6" y2="6"></line><line class="cls-1" x1="15" x2="1" y1="16" y2="16"></line><line class="cls-1" x1="7" x2="1" y1="26" y2="26"></line><line class="cls-1" x1="31" x2="17" y1="26" y2="26"></line><line class="cls-1" x1="31" x2="25" y1="16" y2="16"></line><line class="cls-1" x1="31" x2="17" y1="6" y2="6"></line></g></svg></div> <div>详细配置</div>`,a=O(),I&&I.c(),c=O(),w&&w.c(),d=O(),h=M("div"),h.textContent="重置瀑布流配置边栏位置",g(i,"class","sideP__title svelte-kk96f3"),g(o,"class","sideP__btn svelte-kk96f3"),g(r,"class","sideP__btn svelte-kk96f3"),g(l,"class","sideP__out svelte-kk96f3"),g(e,"class","sideP svelte-kk96f3"),G(e,"top",t[5].y+"px"),G(e,"left",t[5].x+"px"),G(e,"background-color",t[6]),g(h,"id","reset_panel_pos"),g(h,"class","svelte-kk96f3");},m(y,A){N(y,e,A),f(e,i),f(e,n),f(e,l),f(l,o),v.m(o,null),f(l,s),f(l,r),f(l,a),I&&I.m(l,null),t[23](e),N(y,c,A),w&&w.m(y,A),N(y,d,A),N(y,h,A),m=!0,_||(p=[q(i,"mousedown",t[16]),q(o,"click",t[18]),q(r,"click",t[22]),q(h,"click",t[17])],_=!0);},p(y,A){u!==(u=b(y))&&(v.d(1),v=u(y),v&&(v.c(),v.m(o,null))),y[8]?I?I.p(y,A):(I=gn(y),I.c(),I.m(l,null)):I&&(I.d(1),I=null),(!m||A[0]&32)&&G(e,"top",y[5].y+"px"),(!m||A[0]&32)&&G(e,"left",y[5].x+"px"),(!m||A[0]&64)&&G(e,"background-color",y[6]),y[7]?w?(w.p(y,A),A[0]&128&&J(w,1)):(w=mn(y),w.c(),J(w,1),w.m(d.parentNode,d)):w&&(xe(),ee(w,1,1,()=>{w=null;}),et());},i(y){m||(J(w),m=!0);},o(y){ee(w),m=!1;},d(y){y&&T(e),v.d(),I&&I.d(),t[23](null),y&&T(c),w&&w.d(y),y&&T(d),y&&T(h),_=!1,Ce(p);}}}function vn(t,e,i){return t<=e&&(t=e),t>=i&&(t=i),t}function gs(t,e,i){let n,l,o,s,r,a,c,d,h,m,_,p,b,u,v;F(t,Be,R=>i(48,n=R)),F(t,Rt,R=>i(2,l=R)),F(t,qe,R=>i(3,o=R)),F(t,Bt,R=>i(49,R)),F(t,jt,R=>i(4,s=R)),F(t,gi,R=>i(5,r=R)),F(t,Tt,R=>i(6,a=R)),F(t,pt,R=>i(7,c=R)),F(t,rn,R=>i(8,d=R)),F(t,Lt,R=>i(9,h=R)),F(t,Ft,R=>i(10,m=R)),F(t,Vt,R=>i(11,_=R)),F(t,Mi,R=>i(12,p=R)),F(t,vt,R=>i(13,b=R)),F(t,bi,R=>i(14,u=R)),F(t,Qt,R=>i(15,v=R));let I,w=!1,y=0,A=0;const j=R=>{R.preventDefault(),w=!0,y=R.clientX-I.getBoundingClientRect().left,A=R.clientY-I.getBoundingClientRect().top;},E=R=>{if(!w)return;const ye=vn(R.clientX-y,0,window.innerWidth-(I.getBoundingClientRect().width+5)),ne=vn(R.clientY-A,0,window.innerHeight-(I.getBoundingClientRect().height+5));pe(gi,r={x:ye,y:ne},r);},z=()=>{w=!1;};function k(){r.x==0&&r.y==0&&alert("无需重置瀑布流边栏位置"),pe(gi,r={x:0,y:0},r);}function C(){pe(jt,s=!s,s),window.CHANGE_CARD_LAYOUT&&window.CHANGE_CARD_LAYOUT();}function L(){pe(qe,o.all=!o.all,o),setTimeout(()=>{we();},0);}let P=l?"滚动加载":"按钮加载";function S(){pe(Rt,l=!l,l),i(1,P=l?"滚动加载":"按钮加载");}function Y(){pe(Be,n=n==0?1:0,n);}ni(()=>(window.addEventListener("mousemove",E),window.addEventListener("mouseup",z),()=>{window.removeEventListener("mousemove",E),window.removeEventListener("mouseup",z);}));const Me=()=>{pe(pt,c=!c,c);};function ie(R){je[R?"unshift":"push"](()=>{I=R,i(0,I);});}const U=()=>pe(pt,c=!1,c);function X(R){t.$$.not_equal(m.mt.hide_gay,R)&&(m.mt.hide_gay=R,Ft.set(m));}const K=()=>{window.CHANGE_CARD_LAYOUT();};function re(R){s=R,jt.set(s);}function Q(R){l=R,Rt.set(l);}function W(R){_=R,Vt.set(_);}function fe(R){p=R,Mi.set(p);}function he(R){b=R,vt.set(b);}function ue(){u=ui(this.value),bi.set(u);}function de(R){d=R,rn.set(d);}function be(){v.column=ui(this.value),Qt.set(v);}function Ne(){v.gap=ui(this.value),Qt.set(v);}function De(R){t.$$.not_equal(o.all,R)&&(o.all=R,qe.set(o));}function Oe(R){t.$$.not_equal(o.title,R)&&(o.title=R,qe.set(o));}function ge(R){t.$$.not_equal(o.free,R)&&(o.free=R,qe.set(o));}function Se(R){t.$$.not_equal(o.sub_title,R)&&(o.sub_title=R,qe.set(o));}function Ie(R){t.$$.not_equal(o.tags,R)&&(o.tags=R,qe.set(o));}function ke(R){t.$$.not_equal(o.size_download_collect,R)&&(o.size_download_collect=R,qe.set(o));}function Re(R){t.$$.not_equal(o.upload_time,R)&&(o.upload_time=R,qe.set(o));}function me(R){t.$$.not_equal(o.statistics,R)&&(o.statistics=R,qe.set(o));}return [I,P,l,o,s,r,a,c,d,h,m,_,p,b,u,v,j,k,C,L,S,Y,Me,ie,U,X,K,re,Q,W,fe,he,ue,de,be,Ne,De,Oe,ge,Se,Ie,ke,Re,me,()=>pe(pt,c=!1,c)]}class xl extends lt{constructor(e){super(),nt(this,e,gs,_s,tt,{},null,[-1,-1]);}}const ct={torrentListTable:"table.torrents",TORRENT_LIST_TO_JSON:ms,LOADING_PIC:"pic/logo2_100.png",ICON:{},CATEGORY:{410:"#FF66FF",413:"#FF66FF",414:"#FF66FF",417:"#59CD90",433:"#59CD90",434:"#59CD90",424:"#59CD90",435:"#59CD90",411:"#FAC05E",419:"#FAC05E",423:"#FAC05E",420:"#3FA7D6",421:"#3FA7D6",422:"#3FA7D6",437:"#3FA7D6",415:"#EE6352",418:"#EE6352"},INDEX:0,Iframe_Width:1260,get_bg_color:function(){const t=document.querySelector("table.mainouter");return window.getComputedStyle(t)["background-color"]},special:function(){$("ksearchboxmain")&&($("ksearchboxmain").style.display="none");const t=document.querySelector('a[href="?sort=7&type=asc&seeders_begin=1"]');t&&(t.childNodes[0].style.color="black");let e=document.querySelector("img#nexus-preview");e&&(e.style.zIndex=12e3),Mn();},pageLoaded:function(){var t=document.createElement("script");t.src="https://kamept.com/js/nexus.js",document.head.appendChild(t),Mn();}};function Mn(){Array.from(document.querySelectorAll(".torrentname")).forEach(e=>e.addEventListener("click",function(i){i.preventDefault(),Be.set(1),it.set(e.children[0].children[0].children[1].querySelector("a").href+"#kdescr");}));}function ms(t){const e=t.querySelectorAll("tbody tr"),i=[];return e.forEach(n=>{const l=n.querySelector("td:nth-child(1) > a > img"),o=l?l.alt:"";if(!o)return;const r=l.parentNode.href,a=r.slice(-3),c=l.cloneNode(!0);c.className="card-category-img";const d=ct.INDEX++,h=n.querySelector(".torrentname a"),m=h?h.textContent.trim():"",_=h.href,p=/id=(\d+)&hit/,b=_.match(p),u=b?parseInt(b[1]):null,v=n.querySelector(".torrentname img").getAttribute("data-src"),I=n.querySelector(".torrentname td:nth-child(2)"),w=I.childNodes.length-1,y=I.childNodes[w],A=y.nodeName=="#text"?y.textContent.trim():"",j=n.querySelectorAll(".torrentname img.sticky"),E=j[0]?j[0].title:"",z=Array.from(n.querySelectorAll(".torrentname font")),k=n.querySelector('img[class^="pro_"]'),C=k?"_"+k.alt.replace(/\s+/g,""):"",L=C?z.pop():"",P=L?L.innerText:"",S=n.querySelectorAll(".torrentname span"),Y=Array.from(S);let Me=S?Y.map(ke=>ke.textContent.trim()):[];P!=""&&(Me.shift(),Y.shift());const ie=Y.map(ke=>ke.outerHTML).join(""),U=`download.php?id=${u}`,X=`javascript: bookmark(${u},${d});`,re=n.querySelector(".torrentname a[id^='bookmark']").children[0].alt,Q=n.querySelector("td.rowfollow:nth-child(3) a"),W=Q?parseInt(Q.textContent):0,fe=n.querySelector("td:nth-child(4) span"),he=fe?fe.title:"",ue=n.querySelector("td:nth-child(5)"),de=ue?ue.textContent.trim():"",be=n.querySelector("td:nth-child(6) a"),Ne=be?parseInt(be.textContent):0,De=n.querySelector("td:nth-child(7)"),Oe=De?parseInt(De.textContent):0,ge=n.querySelector("td:nth-child(8) a"),Se=ge?parseInt(ge.textContent):0,Ie={torrentIndex:d,_categoryImg:c,category:o,categoryLink:r,categoryNumber:a,torrent_name:m,torrentLink:_,torrentId:u,picLink:v,place_at_the_top:j,pattMsg:E,downloadLink:U,collectLink:X,collectState:re,tempTagDom:z,freeTypeImg:k,free_type:C,free_remaining_time:P,raw_tags:ie,tagsDOM:Y,tags:Me,description:A,upload_date:he,comments:W,size:de,seeders:Ne,leechers:Oe,snatched:Se};i.push(Ie);}),i}const ht={torrentListTable:"table.torrents",TORRENT_LIST_TO_JSON:hs,LOADING_PIC:"logo.png",ICON:{},CATEGORY:{410:"#f52bcb",429:"#f52bcb",424:"#db55a9",430:"#db55a9",437:"#f77afa",426:"#f77afa",431:"#19a7ec",432:"#19a7ec",440:"#f52bcb",436:"#bb1e9a",425:"#bb1e9a",433:"#bb1e9a",411:"#f49800",412:"#f49800",413:"#f49800",401:"#c74854",419:"#c01a20",420:"#c74854",421:"#00a0e9",439:"#1b2a51",403:"#c74854",402:"#276fb8",435:"#4dbebd ",438:"#1897d6",404:"#23ac38",405:"#996c34",407:"#23ac38",422:"#f39800",423:"#f39800",427:"#f39800",409:"#996c34",406:"#8a57a1",408:"#8a57a1",434:"#8a57a1"},INDEX:0,Iframe_Width:1260,get_bg_color:function(){const t=document.querySelector("table.mainouter");return window.getComputedStyle(t)["background-color"]},special:function(){bn();},pageLoaded:function(){bn();}};function bn(){Array.from(document.querySelectorAll("td.torrentimg a")).forEach(e=>e.addEventListener("click",function(i){i.preventDefault(),Be.set(1),it.set(e.href+"#kdescr");}));}function hs(t){const e=t.querySelectorAll("tbody tr"),i=[];return e.forEach(n=>{const l=n.querySelector("td:nth-child(1) > a > img"),o=l?l.title:"";if(!o)return;const r=l.parentNode.href,a=r.slice(-3),c=l.style.backgroundImage,d=/url\("(.*)"\)/,h=c.match(d),m=h&&h.length>1?h[1]:null,_=ht.INDEX++,p=n.querySelector(".torrentname a"),b=p?p.title.trim():"",u=p.href,v=/id=(\d+)&hit/,I=u.match(v),w=I?parseInt(I[1]):null,A=n.querySelector(".torrentname img").getAttribute("onmouseover"),j=A?A.split(",")[2].toString():"",E=j?j.slice(j.indexOf("'")+1,j.lastIndexOf("'")):"/pic/nopic.jpg",z=n.querySelector(".torrentname td:nth-child(2)"),k=z.childNodes.length-1,C=z.childNodes[k],L=C.nodeName=="#text"?C.textContent.trim():"",P=n.querySelectorAll(".torrentname img.sticky"),S=P[0]?P[0].title:"",Y=n.querySelectorAll(".torrentname font"),Me=n.querySelector('img[class^="pro_"]'),ie=Me?"_"+Me.alt.replace(/\s+/g,""):"",U=n.querySelector(".torrentname td:nth-child(2) span"),X=U?U.innerText:"",K=n.querySelectorAll(".torrentname img[class^='label_']"),re=Array.from(K);let Q=K?re.map(ne=>ne.title.trim()):[];const W=re.map(ne=>ne.outerHTML).join(" "),fe=`download.php?id=${w}`,he=`javascript: bookmark(${w},${_});`,de=n.querySelector(".torrentname a[id^='bookmark']").children[0].alt,be=n.querySelector("td.rowfollow:nth-child(3) a"),Ne=be?parseInt(be.textContent):0,De=n.querySelector("td:nth-child(4) span"),Oe=De?De.title:"",ge=n.querySelector("td:nth-child(5)"),Se=ge?ge.textContent.trim():"",Ie=n.querySelector("td:nth-child(6) a"),ke=Ie?parseInt(Ie.textContent):0,Re=n.querySelector("td:nth-child(7)"),me=Re?parseInt(Re.textContent):0,oe=n.querySelector("td:nth-child(8) a"),R=oe?parseInt(oe.textContent):0,ye={torrentIndex:_,_categoryImg:m,category:o,categoryLink:r,categoryNumber:a,torrent_name:b,torrentLink:u,torrentId:w,picLink:E,place_at_the_top:P,pattMsg:S,downloadLink:fe,collectLink:he,collectState:de,tempTagDom:Y,freeTypeImg:Me,free_type:ie,free_remaining_time:X,raw_tags:W,tagsDOM:re,tags:Q,description:L,comments:Ne,upload_date:Oe,size:Se,seeders:ke,leechers:me,snatched:R};i.push(ye);}),i}const ps="data:image/svg+xml;base64,PHN2ZyAKICBzdHJva2U9ImN1cnJlbnRDb2xvciIKICBmaWxsPSJjdXJyZW50Q29sb3IiCiAgc3Ryb2tlLXdpZHRoPSIwIgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBoZWlnaHQ9IjI1IgogIHdpZHRoPSIyNSIKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgc3R5bGU9IgogICAgdmVydGljYWwtYWxpZ246IG1pZGRsZTsgCiAgICAtLWRhcmtyZWFkZXItaW5saW5lLWZpbGw6IGN1cnJlbnRDb2xvcjsgCiAgICAtLWRhcmtyZWFkZXItaW5saW5lLXN0cm9rZTogY3VycmVudENvbG9yOyIKPgogIDxwYXRoIAogICAgZD0iTTEyIDVjLTMuODU5IDAtNyAzLjE0MS03IDdzMy4xNDEgNyA3IDcgNy0zLjE0MSA3LTctMy4xNDEtNy03LTd6bTAgMTJjLTIuNzU3IDAtNS0yLjI0My01LTVzMi4yNDMtNSA1LTUgNSAyLjI0MyA1IDUtMi4yNDMgNS01IDV6Ij4KICA8L3BhdGg+CiAgPHBhdGggCiAgICBkPSJNMTIgOWMtMS42MjcgMC0zIDEuMzczLTMgM3MxLjM3MyAzIDMgMyAzLTEuMzczIDMtMy0xLjM3My0zLTMtM3oiPgogIDwvcGF0aD4KPC9zdmc+",vs="data:image/svg+xml;base64,PHN2ZyAKICBzdHJva2U9ImN1cnJlbnRDb2xvciIgCiAgZmlsbD0iY3VycmVudENvbG9yIiAKICBzdHJva2Utd2lkdGg9IjAiIAogIHZpZXdCb3g9IjAgMCAyNCAyNCIgCiAgaGVpZ2h0PSIxOCIgCiAgd2lkdGg9IjE4IiAKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIAogIHN0eWxlPSJ2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlOyIKPgogIDxwYXRoIAogICAgZD0iTTcgN2gxMHYySDd6bTAgNGg3djJIN3oiPgogIDwvcGF0aD4KICA8cGF0aCAKICAgIGQ9Ik0yMCAySDRjLTEuMTAzIDAtMiAuODk3LTIgMnYxOGw1LjMzMy00SDIwYzEuMTAzIDAgMi0uODk3IDItMlY0YzAtMS4xMDMtLjg5Ny0yLTItMnptMCAxNEg2LjY2N0w0IDE4VjRoMTZ2MTJ6Ij4KICA8L3BhdGg+Cjwvc3ZnPg==",Ms="data:image/svg+xml;base64,PHN2ZyAKICB2aWV3Qm94PSI2NCA2NCA4OTYgODk2IiAKICBmb2N1c2FibGU9ImZhbHNlIiAKICBkYXRhLWljb249ImFycm93LXVwIiAKICB3aWR0aD0iMWVtIiAKICBoZWlnaHQ9IjFlbSIgCiAgZmlsbD0iZ3JlZW4iIAogIGFyaWEtaGlkZGVuPSJ0cnVlIgogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKPgogIDxwYXRoIGQ9Ik04NjggNTQ1LjVMNTM2LjEgMTYzYTMxLjk2IDMxLjk2IDAgMDAtNDguMyAwTDE1NiA1NDUuNWE3Ljk3IDcuOTcgMCAwMDYgMTMuMmg4MWM0LjYgMCA5LTIgMTIuMS01LjVMNDc0IDMwMC45Vjg2NGMwIDQuNCAzLjYgOCA4IDhoNjBjNC40IDAgOC0zLjYgOC04VjMwMC45bDIxOC45IDI1Mi4zYzMgMy41IDcuNCA1LjUgMTIuMSA1LjVoODFjNi44IDAgMTAuNS04IDYtMTMuMnoiPgogIDwvcGF0aD4KPC9zdmc+",bs="data:image/svg+xml;base64,PHN2ZyAKICB2aWV3Qm94PSI2NCA2NCA4OTYgODk2IiAKICBmb2N1c2FibGU9ImZhbHNlIiAKICBkYXRhLWljb249ImFycm93LWRvd24iIAogIHdpZHRoPSIxZW0iIAogIGhlaWdodD0iMWVtIiAKICBmaWxsPSJyZWQiIAogIGFyaWEtaGlkZGVuPSJ0cnVlIgogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKPgogIDxwYXRoIGQ9Ik04NjIgNDY1LjNoLTgxYy00LjYgMC05IDItMTIuMSA1LjVMNTUwIDcyMy4xVjE2MGMwLTQuNC0zLjYtOC04LThoLTYwYy00LjQgMC04IDMuNi04IDh2NTYzLjFMMjU1LjEgNDcwLjhjLTMtMy41LTcuNC01LjUtMTIuMS01LjVoLTgxYy02LjggMC0xMC41IDguMS02IDEzLjJMNDg3LjkgODYxYTMxLjk2IDMxLjk2IDAgMDA0OC4zIDBMODY4IDQ3OC41YzQuNS01LjIuOC0xMy4yLTYtMTMuMnoiPgogIDwvcGF0aD4KPC9zdmc+",Is="data:image/svg+xml;base64,PHN2ZyAKICB2aWV3Qm94PSI2NCA2NCA4OTYgODk2IgogIGZvY3VzYWJsZT0iZmFsc2UiCiAgZGF0YS1pY29uPSJkb3dubG9hZCIKICB3aWR0aD0iMWVtIgogIGhlaWdodD0iMWVtIgogIGZpbGw9ImN1cnJlbnRDb2xvciIKICBhcmlhLWhpZGRlbj0idHJ1ZSIKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIAogID4KICA8cGF0aCAKICAgIGQ9Ik01MDUuNyA2NjFhOCA4IDAgMDAxMi42IDBsMTEyLTE0MS43YzQuMS01LjIuNC0xMi45LTYuMy0xMi45aC03NC4xVjE2OGMwLTQuNC0zLjYtOC04LThoLTYwYy00LjQgMC04IDMuNi04IDh2MzM4LjNINDAwYy02LjcgMC0xMC40IDcuNy02LjMgMTIuOWwxMTIgMTQxLjh6TTg3OCA2MjZoLTYwYy00LjQgMC04IDMuNi04IDh2MTU0SDIxNFY2MzRjMC00LjQtMy42LTgtOC04aC02MGMtNC40IDAtOCAzLjYtOCA4djE5OGMwIDE3LjcgMTQuMyAzMiAzMiAzMmg2ODRjMTcuNyAwIDMyLTE0LjMgMzItMzJWNjM0YzAtNC40LTMuNi04LTgtOHoiPgogIDwvcGF0aD4KPC9zdmc+",ys="data:image/svg+xml;base64,PHN2ZyAKICB2aWV3Qm94PSI2NCA2NCA4OTYgODk2IiAKICBmb2N1c2FibGU9ImZhbHNlIiAKICBkYXRhLWljb249InN0YXIiIAogIHdpZHRoPSIxZW0iIAogIGhlaWdodD0iMWVtIiAKICBmaWxsPSJjdXJyZW50Q29sb3IiIAogIGFyaWEtaGlkZGVuPSJ0cnVlIgogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgCj4KICA8cGF0aCAKICAgIGQ9Ik05MDguMSAzNTMuMWwtMjUzLjktMzYuOUw1NDAuNyA4Ni4xYy0zLjEtNi4zLTguMi0xMS40LTE0LjUtMTQuNS0xNS44LTcuOC0zNS0xLjMtNDIuOSAxNC41TDM2OS44IDMxNi4ybC0yNTMuOSAzNi45Yy03IDEtMTMuNCA0LjMtMTguMyA5LjNhMzIuMDUgMzIuMDUgMCAwMC42IDQ1LjNsMTgzLjcgMTc5LjEtNDMuNCAyNTIuOWEzMS45NSAzMS45NSAwIDAwNDYuNCAzMy43TDUxMiA3NTRsMjI3LjEgMTE5LjRjNi4yIDMuMyAxMy40IDQuNCAyMC4zIDMuMiAxNy40LTMgMjkuMS0xOS41IDI2LjEtMzYuOWwtNDMuNC0yNTIuOSAxODMuNy0xNzkuMWM1LTQuOSA4LjMtMTEuMyA5LjMtMTguMyAyLjctMTcuNS05LjUtMzMuNy0yNy0zNi4zeiI+CiAgPC9wYXRoPgo8L3N2Zz4=",ws="data:image/svg+xml;base64,PHN2ZyBzdHJva2U9ImN1cnJlbnRDb2xvciIgCiAgZmlsbD0iY3VycmVudENvbG9yIiAKICBzdHJva2Utd2lkdGg9IjAiIAogIHZpZXdCb3g9IjAgMCAyNCAyNCIgCiAgY2xhc3M9Ii10cmFuc2xhdGUteS1bMnB4XSIgCiAgaGVpZ2h0PSIxOCIgCiAgd2lkdGg9IjE4IiAKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIAogIHN0eWxlPSJ2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlOyI+CiAgPHBhdGggZD0iTTEyIDJDNi40ODYgMiAyIDYuNDg2IDIgMTJzNC40ODYgMTAgMTAgMTAgMTAtNC40ODYgMTAtMTBTMTcuNTE0IDIgMTIgMnptMCAxOGMtNC40MTEgMC04LTMuNTg5LTgtOHMzLjU4OS04IDgtOCA4IDMuNTg5IDggOC0zLjU4OSA4LTggOHoiPgogIDwvcGF0aD4KICA8cGF0aCBkPSJNMTMgN2gtMnY2aDZ2LTJoLTR6Ij4KICA8L3BhdGg+Cjwvc3ZnPg==",eo="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGRlZnM+CiAgICA8c3R5bGU+CiAgICAgIC5jbHMtMXtmaWxsOiMyZWIxYjc7fQogICAgICAuY2xzLTJ7ZmlsbDojNTZiNTRlO30KICAgICAgLmNscy0ze2ZpbGw6IzVkYzZkMTt9CiAgICAgIC5jbHMtNHtmaWxsOiM2MGNjNWE7fQogICAgICAuY2xzLTV7ZmlsbDojZmZjZTY5O30KICAgICAgLmNscy02e2ZpbGw6IzZjMmU3Yzt9CiAgICA8L3N0eWxlPgogIDwvZGVmcz4KICA8ZyBpZD0iSWNvbnMiPgogICAgPHJlY3QgY2xhc3M9ImNscy0xIiBoZWlnaHQ9IjIyIiByeD0iNCIgd2lkdGg9IjIyIiB4PSIxIiB5PSIxIi8+CiAgICA8cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Ik0yMywxOHYxYTQsNCwwLDAsMS00LDRINWE0LDQsMCwwLDEtMy45LTMuMWw3LjE5LTcuMTlhMS4wMDgsMS4wMDgsMCwwLDEsMS40MiwwbDEuOCwxLjhhMSwxLDAsMCwwLDEuNDYtLjA1bDIuMzMtMi42NWExLDEsMCwwLDEsMS40Ni0uMDVaIi8+CiAgICA8cGF0aCBjbGFzcz0iY2xzLTMiIGQ9Ik0yMyw1djlhNC4wMjUsNC4wMjUsMCwwLDEtMS4xNywyLjgzbC01LjA3LTUuMDdhMSwxLDAsMCwwLTEuNDYuMDVsLTIuMzMsMi42NWExLDEsMCwwLDEtMS40Ni4wNWwtMS44LTEuOGExLjAwOCwxLjAwOCwwLDAsMC0xLjQyLDBMMy4zNiwxNy42NEEzLjk4OCwzLjk4OCwwLDAsMSwxLDE0VjVBNCw0LDAsMCwxLDUsMUgxOUE0LDQsMCwwLDEsMjMsNVoiLz4KICAgIDxwYXRoIGNsYXNzPSJjbHMtNCIgZD0iTTIxLjgzLDE2LjgzQTQuMDI1LDQuMDI1LDAsMCwxLDE5LDE4SDVhMy45MzEsMy45MzEsMCwwLDEtMS42NC0uMzZsNC45My00LjkzYTEuMDA4LDEuMDA4LDAsMCwxLDEuNDIsMGwxLjgsMS44YTEsMSwwLDAsMCwxLjQ2LS4wNWwyLjMzLTIuNjVhMSwxLDAsMCwxLDEuNDYtLjA1WiIvPgogICAgPGNpcmNsZSBjbGFzcz0iY2xzLTUiIGN4PSI3IiBjeT0iNyIgcj0iMiIvPgogIDwvZz4KICA8ZyBkYXRhLW5hbWU9IkxheWVyIDQiIGlkPSJMYXllcl80Ij4KICAgIDxwYXRoIGNsYXNzPSJjbHMtNiIgZD0iTTE5LDBINUE1LjAwNiw1LjAwNiwwLDAsMCwwLDVWMTlhNS4wMDYsNS4wMDYsMCwwLDAsNSw1SDE5YTUuMDA2LDUuMDA2LDAsMCwwLDUtNVY1QTUuMDA2LDUuMDA2LDAsMCwwLDE5LDBabTMsMTlhMywzLDAsMCwxLTMsM0g1YTMsMywwLDAsMS0zLTNWNUEzLDMsMCwwLDEsNSwySDE5YTMsMywwLDAsMSwzLDNaIi8+CiAgICA8cGF0aCBjbGFzcz0iY2xzLTYiIGQ9Ik03LDEwQTMsMywwLDEsMCw0LDcsMywzLDAsMCwwLDcsMTBaTTcsNkExLDEsMCwxLDEsNiw3LDEsMSwwLDAsMSw3LDZaIi8+CiAgICA8cGF0aCBjbGFzcz0iY2xzLTYiIGQ9Ik0xNi43MDcsMTAuMjkzYS45NTYuOTU2LDAsMCwwLS43NC0uMjkzLDEuMDA2LDEuMDA2LDAsMCwwLS43Mi4zNDFMMTIuMjE3LDEzLjhsLTIuNTEtMi41MTFhMSwxLDAsMCwwLTEuNDE0LDBsLTQsNGExLDEsMCwxLDAsMS40MTQsMS40MTRMOSwxMy40MTRsMS45LDEuOUw4LjI0NywxOC4zNDFhMSwxLDAsMCwwLDEuNTA2LDEuMzE4bDMuMjE4LTMuNjc4LjAwNiwwLC4wMDctLjAxMSwzLjA2NS0zLjUsMi4yNDQsMi4yNDRhMSwxLDAsMCwwLDEuNDE0LTEuNDE0WiIvPgogIDwvZz4KPC9zdmc+",Te={noneNexusPHP:!0,architecture:"NEW_MT",torrentListTable:"div.app-content__inner",LOADING_PIC:"/static/media/logo.80b63235eaf702e44a8d.png",HOST:"https://test2.m-team.cc",API:{search:{url:"/api/torrent/search",method:"POST"},genDlToken:{url:"/api/torrent/genDlToken",method:"POST"},collection:{url:"/api/torrent/collection",method:"POST"}},ICON:{SIZE:ps,COMMENT:vs,SEEDERS:Ms,LEECHERS:bs,DOWNLOAD:Is,COLLECTION:ys,PIN:"/static/trans.gif",TIME:ws,PREVIEW:eo},CATEGORY_COLOR:{410:"#f52bcb",429:"#f52bcb",424:"#db55a9",430:"#db55a9",437:"#f77afa",426:"#f77afa",431:"#19a7ec",432:"#19a7ec",440:"#f52bcb",436:"#bb1e9a",425:"#bb1e9a",433:"#bb1e9a",411:"#f49800",412:"#f49800",413:"#f49800",401:"#c74854",419:"#c01a20",420:"#c74854",421:"#00a0e9",439:"#1b2a51",403:"#c74854",402:"#276fb8",435:"#4dbebd ",438:"#1897d6",404:"#23ac38",405:"#996c34",407:"#23ac38",422:"#f39800",423:"#f39800",427:"#f39800",409:"#996c34",406:"#8a57a1",408:"#8a57a1",434:"#8a57a1"},CATEGORY_NAME:{410:" 有码 HD",429:" 无码 HD",424:" 有码 Xvid",430:" 无码 Xvid",437:" 有码 DVD",426:" 无码 DVD",431:" 有码 BluRay",432:" 无码 BluRay",440:" GAY",436:" 0 day",425:" 写真 video",433:" 写真 pic",411:" H-Game",412:" H-Anime",413:" H-Comic",401:"Movie SD",419:"Movie HD",420:"Movie DVD ",421:"Movie BluRay",439:"Movie Remux",403:"TV SD",402:"TV HD",435:" TV DVD",438:"TV BluRay",404:"纪录教育",405:"Anime",407:"Sport",422:"Software",423:"Game",427:"EBook",409:"Other",406:"MV",408:"Music AAC/ALAC",434:"Music 无损"},INDEX:0,Iframe_Width:1260,get_bg_color:function(){return getComputedStyle(document.documentElement).getPropertyValue("--bg-3")},special:function(){},pageLoaded:function(){}},Ze={"kamept.com":ct,"kp.m-team.cc":Te,"xp.m-team.io":Te,"xp.m-team.cc":Te,"ap.m-team.cc":Te,"test2.m-team.cc":Te};function Kt(){return window.location.hostname}let mi;function Ct(){var i;if(mi)return mi;const t=Kt();console.log("|-> 当前站点: ",t),console.log("|-> 当前页面: ",window.location.pathname);const e=((i=Ze[t])==null?void 0:i.torrentListTable)??null;return console.log("|-> 站点selector:",e),mi=e,e}function Ts(){var e,i;const t=Kt();return console.log("PT架构: ",(e=Ze[t])==null?void 0:e.architecture),(i=Ze[t])==null?void 0:i.architecture}function to(){var e;const t=Kt();return (e=Ze[t])==null?void 0:e.get_bg_color()}const Mt={CARD_BORDER:0,CARD_INDEX:0,PIC_HOVER_STYLE:0},x={GAP:3e3,DISTANCE:300,DISTANCE_newMT:900,IS_ORIGIN:!0,PAGE_ORIGIN:0,PAGE_CURRENT:0,PAGE_NEXT:0,NEXT_URL:"",SWITCH_MODE:"Button",$getCurrentPage:()=>(x.PAGE_CURRENT=x.PAGE_CURRENT??0,x.PAGE_NEXT=x.PAGE_CURRENT+1,x.PAGE_CURRENT),$getNextPage:()=>x.PAGE_NEXT,$turnPage:()=>{x.PAGE_CURRENT=x.PAGE_NEXT,x.PAGE_NEXT=x.PAGE_CURRENT+1;},$setPage:t=>{x.PAGE_CURRENT=t,x.PAGE_NEXT=x.PAGE_CURRENT+1;}},io={SIZE:'<img class="size" src="pic/trans.gif" style=" transform: translateY(-0.4px);" alt="size" title="大小">',COMMENT:'<img class="comments" src="pic/trans.gif" alt="comments" title="评论数">',SEEDERS:'<img class="seeders" src="pic/trans.gif" alt="seeders" title="种子数">',LEECHERS:'<img class="leechers" src="pic/trans.gif" alt="leechers" title="下载数">',SNATCHED:'<img class="snatched" src="pic/trans.gif" alt="snatched" title="完成数">',DOWNLOAD:'<img class="download" src="pic/trans.gif" style=" transform: translateY(1px);" alt="download" title="下载本种">',COLLET:'<img class="delbookmark" src="pic/trans.gif" alt="Unbookmarked" title="收藏">',COLLETED:'<img class="bookmark" src="pic/trans.gif" alt="Bookmarked">',PREVIEW:eo},Di="data:image/svg+xml;base64,PHN2ZwogIHdpZHRoPSIyNTZweCIKICBoZWlnaHQ9IjI1NnB4IgogIHZpZXdCb3g9IjAgMCAyNC4wMCAyNC4wMCIKICBmaWxsPSJub25lIgogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAwLCAwKSIKPgogIDxnCiAgICBpZD0iU1ZHUmVwb19iZ0NhcnJpZXIiCiAgICBzdHJva2Utd2lkdGg9IjAiCiAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDApLCBzY2FsZSgxKSIKICAvPgogIDxnCiAgICBpZD0iU1ZHUmVwb190cmFjZXJDYXJyaWVyIgogICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogICAgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIKICAgIHN0cm9rZT0iI0NDQ0NDQyIKICAgIHN0cm9rZS13aWR0aD0iMC4wNDgiCiAgLz4KICA8ZyBpZD0iU1ZHUmVwb19pY29uQ2FycmllciI+CiAgICA8cGF0aAogICAgICBkPSJNMTMgM0wxMy43MDcxIDIuMjkyODlDMTMuNTE5NiAyLjEwNTM2IDEzLjI2NTIgMiAxMyAyVjNaTTE0IDIyQzE0LjU1MjMgMjIgMTUgMjEuNTUyMyAxNSAyMUMxNSAyMC40NDc3IDE0LjU1MjMgMjAgMTQgMjBWMjJaTTE5IDlIMjBDMjAgOC43MzQ3OCAxOS44OTQ2IDguNDgwNDMgMTkuNzA3MSA4LjI5Mjg5TDE5IDlaTTE4IDEwQzE4IDEwLjU1MjMgMTguNDQ3NyAxMSAxOSAxMUMxOS41NTIzIDExIDIwIDEwLjU1MjMgMjAgMTBIMThaTTUuMjE3OTkgMTkuOTA4TDQuMzI2OTggMjAuMzYySDQuMzI2OThMNS4yMTc5OSAxOS45MDhaTTYuMDkyMDIgMjAuNzgyTDYuNTQ2MDEgMTkuODkxTDYuNTQ2MDEgMTkuODkxTDYuMDkyMDIgMjAuNzgyWk02LjA5MjAyIDMuMjE3OTlMNS42MzgwMyAyLjMyNjk4TDUuNjM4MDMgMi4zMjY5OEw2LjA5MjAyIDMuMjE3OTlaTTUuMjE3OTkgNC4wOTIwMkw0LjMyNjk4IDMuNjM4MDNMNC4zMjY5OCAzLjYzODAzTDUuMjE3OTkgNC4wOTIwMlpNMTMuMTA5IDguNDUzOTlMMTQgOFY4TDEzLjEwOSA4LjQ1Mzk5Wk0xMy41NDYgOC44OTEwMUwxNCA4TDEzLjU0NiA4Ljg5MTAxWk0xNy4yMjk5IDE3Ljc5MjlDMTYuODM5NCAxOC4xODM0IDE2LjgzOTQgMTguODE2NiAxNy4yMjk5IDE5LjIwNzFDMTcuNjIwNCAxOS41OTc2IDE4LjI1MzYgMTkuNTk3NiAxOC42NDQxIDE5LjIwNzFMMTcuMjI5OSAxNy43OTI5Wk0xNS4wMzE2IDE1LjI1MDdDMTQuODkzOSAxNS43ODU2IDE1LjIxNTkgMTYuMzMwOCAxNS43NTA3IDE2LjQ2ODRDMTYuMjg1NiAxNi42MDYxIDE2LjgzMDggMTYuMjg0MSAxNi45Njg0IDE1Ljc0OTNMMTUuMDMxNiAxNS4yNTA3Wk0xNy45Mzc1IDIwQzE3LjM4NTIgMjAgMTYuOTM3NSAyMC40NDc3IDE2LjkzNzUgMjFDMTYuOTM3NSAyMS41NTIzIDE3LjM4NTIgMjIgMTcuOTM3NSAyMlYyMFpNMTcuOTQ3NSAyMkMxOC40OTk4IDIyIDE4Ljk0NzUgMjEuNTUyMyAxOC45NDc1IDIxQzE4Ljk0NzUgMjAuNDQ3NyAxOC40OTk4IDIwIDE3Ljk0NzUgMjBWMjJaTTEzIDJIOC4yVjRIMTNWMlpNNCA2LjJWMTcuOEg2VjYuMkg0Wk04LjIgMjJIMTRWMjBIOC4yVjIyWk0xOS43MDcxIDguMjkyODlMMTMuNzA3MSAyLjI5Mjg5TDEyLjI5MjkgMy43MDcxMUwxOC4yOTI5IDkuNzA3MTFMMTkuNzA3MSA4LjI5Mjg5Wk0yMCAxMFY5SDE4VjEwSDIwWk00IDE3LjhDNCAxOC4zNDM2IDMuOTk5MjIgMTguODExNCA0LjAzMDU3IDE5LjE5NUM0LjA2Mjg3IDE5LjU5MDQgNC4xMzQxOSAxOS45ODM2IDQuMzI2OTggMjAuMzYyTDYuMTA4OTkgMTkuNDU0QzYuMDgzOCAxOS40MDQ1IDYuMDQ2MTIgMTkuMzAzOCA2LjAyMzkzIDE5LjAzMjJDNi4wMDA3OCAxOC43NDg4IDYgMTguMzc2NiA2IDE3LjhINFpNOC4yIDIwQzcuNjIzNDUgMjAgNy4yNTExNyAxOS45OTkyIDYuOTY3ODQgMTkuOTc2MUM2LjY5NjE3IDE5Ljk1MzkgNi41OTU0NSAxOS45MTYyIDYuNTQ2MDEgMTkuODkxTDUuNjM4MDMgMjEuNjczQzYuMDE2NDEgMjEuODY1OCA2LjQwOTYzIDIxLjkzNzEgNi44MDQ5NyAyMS45Njk0QzcuMTg4NjQgMjIuMDAwOCA3LjY1NjQ1IDIyIDguMiAyMlYyMFpNNC4zMjY5OCAyMC4zNjJDNC42MTQ2IDIwLjkyNjUgNS4wNzM1NCAyMS4zODU0IDUuNjM4MDMgMjEuNjczTDYuNTQ2MDEgMTkuODkxQzYuMzU3ODUgMTkuNzk1MSA2LjIwNDg3IDE5LjY0MjIgNi4xMDg5OSAxOS40NTRMNC4zMjY5OCAyMC4zNjJaTTguMiAyQzcuNjU2NDUgMiA3LjE4ODY0IDEuOTk5MjIgNi44MDQ5NyAyLjAzMDU3QzYuNDA5NjMgMi4wNjI4NyA2LjAxNjQxIDIuMTM0MTkgNS42MzgwMyAyLjMyNjk4TDYuNTQ2MDEgNC4xMDg5OUM2LjU5NTQ1IDQuMDgzOCA2LjY5NjE3IDQuMDQ2MTIgNi45Njc4NCA0LjAyMzkzQzcuMjUxMTcgNC4wMDA3OCA3LjYyMzQ1IDQgOC4yIDRWMlpNNiA2LjJDNiA1LjYyMzQ1IDYuMDAwNzggNS4yNTExNyA2LjAyMzkzIDQuOTY3ODRDNi4wNDYxMiA0LjY5NjE3IDYuMDgzOCA0LjU5NTQ1IDYuMTA4OTkgNC41NDYwMUw0LjMyNjk4IDMuNjM4MDNDNC4xMzQxOSA0LjAxNjQxIDQuMDYyODcgNC40MDk2MyA0LjAzMDU3IDQuODA0OTdDMy45OTkyMiA1LjE4ODY0IDQgNS42NTY0NSA0IDYuMkg2Wk01LjYzODAzIDIuMzI2OThDNS4wNzM1NCAyLjYxNDYgNC42MTQ2IDMuMDczNTQgNC4zMjY5OCAzLjYzODAzTDYuMTA4OTkgNC41NDYwMUM2LjIwNDg3IDQuMzU3ODUgNi4zNTc4NSA0LjIwNDg3IDYuNTQ2MDEgNC4xMDg5OUw1LjYzODAzIDIuMzI2OThaTTEyIDNWNy40SDE0VjNIMTJaTTE0LjYgMTBIMTlWOEgxNC42VjEwWk0xMiA3LjRDMTIgNy42NjM1MyAxMS45OTkyIDcuOTIxMzEgMTIuMDE2OSA4LjEzODIzQzEyLjAzNTYgOC4zNjY4MiAxMi4wNzk3IDguNjM2NTYgMTIuMjE4IDguOTA3OThMMTQgOEMxNC4wMjkzIDguMDU3NTEgMTQuMDE4OSA4LjA4MDI4IDE0LjAxMDMgNy45NzUzN0MxNC4wMDA4IDcuODU4NzggMTQgNy42OTY1MyAxNCA3LjRIMTJaTTE0LjYgOEMxNC4zMDM1IDggMTQuMTQxMiA3Ljk5OTIyIDE0LjAyNDYgNy45ODk3QzEzLjkxOTcgNy45ODExMyAxMy45NDI1IDcuOTcwNyAxNCA4TDEzLjA5MiA5Ljc4MjAxQzEzLjM2MzQgOS45MjAzMSAxMy42MzMyIDkuOTY0MzggMTMuODYxOCA5Ljk4MzA1QzE0LjA3ODcgMTAuMDAwOCAxNC4zMzY1IDEwIDE0LjYgMTBWOFpNMTIuMjE4IDguOTA3OThDMTIuNDA5NyA5LjI4NDMgMTIuNzE1NyA5LjU5MDI3IDEzLjA5MiA5Ljc4MjAxTDE0IDhWOEwxMi4yMTggOC45MDc5OFpNMTguOTM3IDE2QzE4LjkzNyAxNi4xNzMyIDE4Ljg5MTUgMTYuMzA1MyAxOC42MTc1IDE2LjU2OTdDMTguNDYzOCAxNi43MTggMTguMjgyOCAxNi44NjUzIDE4LjAzMTkgMTcuMDc0QzE3Ljc5MzYgMTcuMjcyMyAxNy41MTQxIDE3LjUwODcgMTcuMjI5OSAxNy43OTI5TDE4LjY0NDEgMTkuMjA3MUMxOC44NiAxOC45OTEzIDE5LjA4MDUgMTguODAzMyAxOS4zMTA5IDE4LjYxMTZDMTkuNTI4NyAxOC40MzA1IDE5Ljc4NTIgMTguMjIyMyAyMC4wMDY1IDE4LjAwODdDMjAuNDgyNSAxNy41NDkzIDIwLjkzNyAxNi45MzE0IDIwLjkzNyAxNkgxOC45MzdaTTE3LjkzNyAxNUMxOC40ODkzIDE1IDE4LjkzNyAxNS40NDc3IDE4LjkzNyAxNkgyMC45MzdDMjAuOTM3IDE0LjM0MzEgMTkuNTkzOCAxMyAxNy45MzcgMTNWMTVaTTE2Ljk2ODQgMTUuNzQ5M0MxNy4wNzk1IDE1LjMxNzcgMTcuNDcyNCAxNSAxNy45MzcgMTVWMTNDMTYuNTM3NyAxMyAxNS4zNjQ1IDEzLjk1NyAxNS4wMzE2IDE1LjI1MDdMMTYuOTY4NCAxNS43NDkzWk0xNy45Mzc1IDIySDE3Ljk0NzVWMjBIMTcuOTM3NVYyMloiCiAgICAgIGZpbGw9IiNjMDAwMDAiCiAgICAvPgogIDwvZz4KPC9zdmc+";function In(t){let e,i,n,l=(t[0].tempTagDom?t[0].tempTagDom.map(Gn).join(" "):"")+"",o,s,r=t[0].torrent_name+"",a,c;return {c(){e=M("div"),i=M("a"),n=new se(!1),o=O(),s=M("b"),a=D(r),n.a=o,g(i,"class","two-lines svelte-4b9kml"),g(i,"href",c=t[0].torrentLink),g(i,"target","_blank"),g(e,"class","card-title svelte-4b9kml");},m(d,h){N(d,e,h),f(e,i),n.m(l,i),f(i,o),f(i,s),f(s,a);},p(d,h){h&1&&l!==(l=(d[0].tempTagDom?d[0].tempTagDom.map(Gn).join(" "):"")+"")&&n.p(l),h&1&&r!==(r=d[0].torrent_name+"")&&B(a,r),h&1&&c!==(c=d[0].torrentLink)&&g(i,"href",c);},d(d){d&&T(e);}}}function Ns(t){let e,i,n,l,o,s,r,a;return {c(){e=M("div"),i=M("div"),n=M("img"),o=O(),s=M("div"),s.textContent="图片加载失败",G(n,"height","100%"),G(n,"width","100px"),ve(n.src,l=Di)||g(n,"src",l),g(n,"alt","pic error"),g(n,"class","svelte-4b9kml"),g(e,"class","pic_error"),g(e,"style","");},m(c,d){N(c,e,d),f(e,i),f(i,n),f(e,o),f(e,s),r||(a=q(n,"load",t[8]),r=!0);},p:te,d(c){c&&T(e),r=!1,a();}}}function ks(t){let e,i,n,l,o,s;return {c(){e=M("img"),g(e,"class","nexus-lazy-load_Kesa svelte-4b9kml"),ve(e.src,i=ct.LOADING_PIC)||g(e,"src",i),g(e,"data-src",n=t[0].picLink),g(e,"alt",l=t[0].torrentName);},m(r,a){N(r,e,a),o||(s=[q(e,"load",t[8]),q(e,"error",t[13])],o=!0);},p(r,a){a&1&&n!==(n=r[0].picLink)&&g(e,"data-src",n),a&1&&l!==(l=r[0].torrentName)&&g(e,"alt",l);},d(r){r&&T(e),o=!1,Ce(s);}}}function yn(t){let e,i,n;return {c(){e=M("div"),i=M("img"),G(i,"pointer-events","none"),ve(i.src,n=t[2].PREVIEW)||g(i,"src",n),g(i,"alt","PREVIEW"),g(i,"class","svelte-4b9kml"),g(e,"class","hover-trigger svelte-4b9kml");},m(l,o){N(l,e,o),f(e,i);},p(l,o){o&4&&!ve(i.src,n=l[2].PREVIEW)&&g(i,"src",n);},d(l){l&&T(e);}}}function wn(t){let e,i,n,l=t[0].tagsDOM.map(t[14]).join("")+"",o,s,r,a,c,d=t[2].SIZE+"",h,m=t[0].size+"",_,p,b,u,v=t[2].DOWNLOAD+"",I,w,y,A,j,E,z,k,C,L=(t[0].collectState=="Unbookmarked"?t[2].COLLET:t[2].COLLETED)+"",P,S,Y,Me,ie,U,X,K=t[0].upload_date+"",re,Q,W,fe,he=t[2].COMMENT+"",ue,de,be=t[0].comments+"",Ne,De,Oe,ge=t[2].SEEDERS+"",Se,Ie,ke=t[0].seeders+"",Re,me,oe,R=t[2].LEECHERS+"",ye,ne,ae=t[0].leechers+"",ot,Le,Pe,Je=t[2].SNATCHED+"",st,Ue,Ke=t[0].snatched+"",rt,Qe,at,ce=(t[0].free_type||t[0].pattMsg)&&Tn(t),le=t[0].description&&Cn(t);return {c(){ce&&ce.c(),e=O(),le&&le.c(),i=O(),n=M("div"),o=O(),s=M("div"),r=M("div"),a=M("div"),c=new se(!1),h=D(" "),_=D(m),p=D(` `),b=M("div"),u=new se(!1),I=D(` `),w=M("b"),y=M("a"),A=D("下载"),E=D(` `),z=M("div"),k=M("div"),C=new se(!1),P=D(` `),S=M("b"),S.textContent="收藏",Me=O(),ie=M("div"),U=M("b"),U.textContent="上传时间:",X=O(),re=D(K),Q=O(),W=M("div"),fe=new se(!1),ue=D(" "),de=M("b"),Ne=D(be),De=D(` `),Oe=new se(!1),Se=D(" "),Ie=M("b"),Re=D(ke),me=D(` `),oe=new se(!1),ye=D(" "),ne=M("b"),ot=D(ae),Le=D(` `),Pe=new se(!1),st=D(" "),Ue=M("b"),rt=D(Ke),g(n,"class","cl-tags svelte-4b9kml"),c.a=h,g(a,"class","cl-center svelte-4b9kml"),u.a=I,g(y,"href",j=t[0].downloadLink),g(b,"class","cl-center svelte-4b9kml"),C.a=P,g(k,"class","btnCollet cl-center svelte-4b9kml"),g(k,"id",Y="tI_"+t[0].torrentIndex),g(z,"class","cl-center svelte-4b9kml"),g(r,"class","card-line svelte-4b9kml"),g(ie,"class","card-line svelte-4b9kml"),fe.a=ue,Oe.a=Se,oe.a=ye,Pe.a=st,g(W,"class","card-line svelte-4b9kml"),g(s,"class","card-details svelte-4b9kml");},m(Z,V){ce&&ce.m(Z,V),N(Z,e,V),le&&le.m(Z,V),N(Z,i,V),N(Z,n,V),n.innerHTML=l,N(Z,o,V),N(Z,s,V),f(s,r),f(r,a),c.m(d,a),f(a,h),f(a,_),f(r,p),f(r,b),u.m(v,b),f(b,I),f(b,w),f(w,y),f(y,A),f(r,E),f(r,z),f(z,k),C.m(L,k),f(k,P),f(k,S),f(s,Me),f(s,ie),f(ie,U),f(ie,X),f(ie,re),f(s,Q),f(s,W),fe.m(he,W),f(W,ue),f(W,de),f(de,Ne),f(W,De),Oe.m(ge,W),f(W,Se),f(W,Ie),f(Ie,Re),f(W,me),oe.m(R,W),f(W,ye),f(W,ne),f(ne,ot),f(W,Le),Pe.m(Je,W),f(W,st),f(W,Ue),f(Ue,rt),Qe||(at=q(k,"click",t[15]),Qe=!0);},p(Z,V){Z[0].free_type||Z[0].pattMsg?ce?ce.p(Z,V):(ce=Tn(Z),ce.c(),ce.m(e.parentNode,e)):ce&&(ce.d(1),ce=null),Z[0].description?le?le.p(Z,V):(le=Cn(Z),le.c(),le.m(i.parentNode,i)):le&&(le.d(1),le=null),V&1&&l!==(l=Z[0].tagsDOM.map(Z[14]).join("")+"")&&(n.innerHTML=l),V&4&&d!==(d=Z[2].SIZE+"")&&c.p(d),V&1&&m!==(m=Z[0].size+"")&&B(_,m),V&4&&v!==(v=Z[2].DOWNLOAD+"")&&u.p(v),V&1&&j!==(j=Z[0].downloadLink)&&g(y,"href",j),V&5&&L!==(L=(Z[0].collectState=="Unbookmarked"?Z[2].COLLET:Z[2].COLLETED)+"")&&C.p(L),V&1&&Y!==(Y="tI_"+Z[0].torrentIndex)&&g(k,"id",Y),V&1&&K!==(K=Z[0].upload_date+"")&&B(re,K),V&4&&he!==(he=Z[2].COMMENT+"")&&fe.p(he),V&1&&be!==(be=Z[0].comments+"")&&B(Ne,be),V&4&&ge!==(ge=Z[2].SEEDERS+"")&&Oe.p(ge),V&1&&ke!==(ke=Z[0].seeders+"")&&B(Re,ke),V&4&&R!==(R=Z[2].LEECHERS+"")&&oe.p(R),V&1&&ae!==(ae=Z[0].leechers+"")&&B(ot,ae),V&4&&Je!==(Je=Z[2].SNATCHED+"")&&Pe.p(Je),V&1&&Ke!==(Ke=Z[0].snatched+"")&&B(rt,Ke);},d(Z){ce&&ce.d(Z),Z&&T(e),le&&le.d(Z),Z&&T(i),Z&&T(n),Z&&T(o),Z&&T(s),Qe=!1,at();}}}function Tn(t){let e,i,n,l,o,s=t[0].place_at_the_top.length!=0&&Nn(t),r=t[0].freeTypeImg&&kn(t),a=t[0].free_remaining_time&&Dn(t);return {c(){e=M("div"),i=M("div"),s&&s.c(),n=O(),r&&r.c(),l=O(),a&&a.c(),g(i,"class",o="top_and_free "+t[0].free_type+" svelte-4b9kml"),g(e,"class","card-alter svelte-4b9kml");},m(c,d){N(c,e,d),f(e,i),s&&s.m(i,null),f(i,n),r&&r.m(i,null),f(i,l),a&&a.m(i,null);},p(c,d){c[0].place_at_the_top.length!=0?s?s.p(c,d):(s=Nn(c),s.c(),s.m(i,n)):s&&(s.d(1),s=null),c[0].freeTypeImg?r?r.p(c,d):(r=kn(c),r.c(),r.m(i,l)):r&&(r.d(1),r=null),c[0].free_remaining_time?a?a.p(c,d):(a=Dn(c),a.c(),a.m(i,null)):a&&(a.d(1),a=null),d&1&&o!==(o="top_and_free "+c[0].free_type+" svelte-4b9kml")&&g(i,"class",o);},d(c){c&&T(e),s&&s.d(),r&&r.d(),a&&a.d();}}}function Nn(t){let e,i=Array.from(t[0].place_at_the_top).map(Wn)+" ",n;return {c(){e=new se(!1),n=We(),e.a=n;},m(l,o){e.m(i,l,o),N(l,n,o);},p(l,o){o&1&&i!==(i=Array.from(l[0].place_at_the_top).map(Wn)+" ")&&e.p(i);},d(l){l&&T(n),l&&e.d();}}}function kn(t){let e,i=t[0].freeTypeImg.outerHTML+"",n;return {c(){e=new se(!1),n=We(),e.a=n;},m(l,o){e.m(i,l,o),N(l,n,o);},p(l,o){o&1&&i!==(i=l[0].freeTypeImg.outerHTML+"")&&e.p(i);},d(l){l&&T(n),l&&e.d();}}}function Dn(t){let e,i,n=t[0].free_remaining_time+"",l;return {c(){e=D(" "),i=M("b"),l=D(n);},m(o,s){N(o,e,s),N(o,i,s),f(i,l);},p(o,s){s&1&&n!==(n=o[0].free_remaining_time+"")&&B(l,n);},d(o){o&&T(e),o&&T(i);}}}function Cn(t){let e,i=t[0].description+"",n,l;return {c(){e=M("a"),n=D(i),g(e,"class","card-description svelte-4b9kml"),g(e,"href",l=t[0].torrentLink);},m(o,s){N(o,e,s),f(e,n);},p(o,s){s&1&&i!==(i=o[0].description+"")&&B(n,i),s&1&&l!==(l=o[0].torrentLink)&&g(e,"href",l);},d(o){o&&T(e);}}}function Ln(t){let e,i,n,l,o,s,r=t[6].free&&(t[0].free_type||t[0].pattMsg)&&An(t),a=t[6].sub_title&&t[0].description&&zn(t),c=t[6].tags&&jn(t),d=t[6].size_download_collect&&Rn(t),h=t[6].upload_time&&Pn(t),m=t[6].statistics&&Hn(t);return {c(){r&&r.c(),e=O(),a&&a.c(),i=O(),c&&c.c(),n=O(),l=M("div"),d&&d.c(),o=O(),h&&h.c(),s=O(),m&&m.c(),g(l,"class","card-details svelte-4b9kml");},m(_,p){r&&r.m(_,p),N(_,e,p),a&&a.m(_,p),N(_,i,p),c&&c.m(_,p),N(_,n,p),N(_,l,p),d&&d.m(l,null),f(l,o),h&&h.m(l,null),f(l,s),m&&m.m(l,null);},p(_,p){_[6].free&&(_[0].free_type||_[0].pattMsg)?r?r.p(_,p):(r=An(_),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),_[6].sub_title&&_[0].description?a?a.p(_,p):(a=zn(_),a.c(),a.m(i.parentNode,i)):a&&(a.d(1),a=null),_[6].tags?c?c.p(_,p):(c=jn(_),c.c(),c.m(n.parentNode,n)):c&&(c.d(1),c=null),_[6].size_download_collect?d?d.p(_,p):(d=Rn(_),d.c(),d.m(l,o)):d&&(d.d(1),d=null),_[6].upload_time?h?h.p(_,p):(h=Pn(_),h.c(),h.m(l,s)):h&&(h.d(1),h=null),_[6].statistics?m?m.p(_,p):(m=Hn(_),m.c(),m.m(l,null)):m&&(m.d(1),m=null);},d(_){r&&r.d(_),_&&T(e),a&&a.d(_),_&&T(i),c&&c.d(_),_&&T(n),_&&T(l),d&&d.d(),h&&h.d(),m&&m.d();}}}function An(t){let e,i,n,l,o,s=t[0].place_at_the_top.length!=0&&En(t),r=t[0].freeTypeImg&&On(t),a=t[0].free_remaining_time&&Sn(t);return {c(){e=M("div"),i=M("div"),s&&s.c(),n=O(),r&&r.c(),l=O(),a&&a.c(),g(i,"class",o="top_and_free "+t[0].free_type+" svelte-4b9kml"),g(e,"class","card-alter svelte-4b9kml");},m(c,d){N(c,e,d),f(e,i),s&&s.m(i,null),f(i,n),r&&r.m(i,null),f(i,l),a&&a.m(i,null);},p(c,d){c[0].place_at_the_top.length!=0?s?s.p(c,d):(s=En(c),s.c(),s.m(i,n)):s&&(s.d(1),s=null),c[0].freeTypeImg?r?r.p(c,d):(r=On(c),r.c(),r.m(i,l)):r&&(r.d(1),r=null),c[0].free_remaining_time?a?a.p(c,d):(a=Sn(c),a.c(),a.m(i,null)):a&&(a.d(1),a=null),d&1&&o!==(o="top_and_free "+c[0].free_type+" svelte-4b9kml")&&g(i,"class",o);},d(c){c&&T(e),s&&s.d(),r&&r.d(),a&&a.d();}}}function En(t){let e,i=Array.from(t[0].place_at_the_top).map(Un)+" ",n;return {c(){e=new se(!1),n=We(),e.a=n;},m(l,o){e.m(i,l,o),N(l,n,o);},p(l,o){o&1&&i!==(i=Array.from(l[0].place_at_the_top).map(Un)+" ")&&e.p(i);},d(l){l&&T(n),l&&e.d();}}}function On(t){let e,i=t[0].freeTypeImg.outerHTML+"",n;return {c(){e=new se(!1),n=We(),e.a=n;},m(l,o){e.m(i,l,o),N(l,n,o);},p(l,o){o&1&&i!==(i=l[0].freeTypeImg.outerHTML+"")&&e.p(i);},d(l){l&&T(n),l&&e.d();}}}function Sn(t){let e,i,n=t[0].free_remaining_time+"",l;return {c(){e=D(" "),i=M("b"),l=D(n);},m(o,s){N(o,e,s),N(o,i,s),f(i,l);},p(o,s){s&1&&n!==(n=o[0].free_remaining_time+"")&&B(l,n);},d(o){o&&T(e),o&&T(i);}}}function zn(t){let e,i=t[0].description+"",n,l;return {c(){e=M("a"),n=D(i),g(e,"class","card-description svelte-4b9kml"),g(e,"href",l=t[0].torrentLink);},m(o,s){N(o,e,s),f(e,n);},p(o,s){s&1&&i!==(i=o[0].description+"")&&B(n,i),s&1&&l!==(l=o[0].torrentLink)&&g(e,"href",l);},d(o){o&&T(e);}}}function jn(t){let e,i=t[0].tagsDOM.map(t[16]).join("")+"";return {c(){e=M("div"),g(e,"class","cl-tags svelte-4b9kml");},m(n,l){N(n,e,l),e.innerHTML=i;},p(n,l){l&1&&i!==(i=n[0].tagsDOM.map(n[16]).join("")+"")&&(e.innerHTML=i);},d(n){n&&T(e);}}}function Rn(t){let e,i,n,l=t[2].SIZE+"",o,s=t[0].size+"",r,a,c,d,h=t[2].DOWNLOAD+"",m,_,p,b,u,v,I,w,y,A=(t[0].collectState=="Unbookmarked"?t[2].COLLET:t[2].COLLETED)+"",j,E,z,k,C;return {c(){e=M("div"),i=M("div"),n=new se(!1),o=D(" "),r=D(s),a=D(` `),c=M("div"),d=new se(!1),m=D(` `),_=M("b"),p=M("a"),b=D("下载"),v=D(` `),I=M("div"),w=M("div"),y=new se(!1),j=D(` `),E=M("b"),E.textContent="收藏",n.a=o,g(i,"class","cl-center svelte-4b9kml"),d.a=m,g(p,"href",u=t[0].downloadLink),g(c,"class","cl-center svelte-4b9kml"),y.a=j,g(w,"class","btnCollet cl-center svelte-4b9kml"),g(w,"id",z="tI_"+t[0].torrentIndex),g(I,"class","cl-center svelte-4b9kml"),g(e,"class","card-line svelte-4b9kml");},m(L,P){N(L,e,P),f(e,i),n.m(l,i),f(i,o),f(i,r),f(e,a),f(e,c),d.m(h,c),f(c,m),f(c,_),f(_,p),f(p,b),f(e,v),f(e,I),f(I,w),y.m(A,w),f(w,j),f(w,E),k||(C=q(w,"click",t[17]),k=!0);},p(L,P){P&4&&l!==(l=L[2].SIZE+"")&&n.p(l),P&1&&s!==(s=L[0].size+"")&&B(r,s),P&4&&h!==(h=L[2].DOWNLOAD+"")&&d.p(h),P&1&&u!==(u=L[0].downloadLink)&&g(p,"href",u),P&5&&A!==(A=(L[0].collectState=="Unbookmarked"?L[2].COLLET:L[2].COLLETED)+"")&&y.p(A),P&1&&z!==(z="tI_"+L[0].torrentIndex)&&g(w,"id",z);},d(L){L&&T(e),k=!1,C();}}}function Pn(t){let e,i,n,l=t[0].upload_date+"",o;return {c(){e=M("div"),i=M("b"),i.textContent="上传时间:",n=O(),o=D(l),g(e,"class","card-line svelte-4b9kml");},m(s,r){N(s,e,r),f(e,i),f(e,n),f(e,o);},p(s,r){r&1&&l!==(l=s[0].upload_date+"")&&B(o,l);},d(s){s&&T(e);}}}function Hn(t){let e,i,n=t[2].COMMENT+"",l,o,s=t[0].comments+"",r,a,c,d=t[2].SEEDERS+"",h,m,_=t[0].seeders+"",p,b,u,v=t[2].LEECHERS+"",I,w,y=t[0].leechers+"",A,j,E,z=t[2].SNATCHED+"",k,C,L=t[0].snatched+"",P;return {c(){e=M("div"),i=new se(!1),l=D(" "),o=M("b"),r=D(s),a=D(` `),c=new se(!1),h=D(" "),m=M("b"),p=D(_),b=D(` `),u=new se(!1),I=D(" "),w=M("b"),A=D(y),j=D(` `),E=new se(!1),k=D(" "),C=M("b"),P=D(L),i.a=l,c.a=h,u.a=I,E.a=k,g(e,"class","card-line svelte-4b9kml");},m(S,Y){N(S,e,Y),i.m(n,e),f(e,l),f(e,o),f(o,r),f(e,a),c.m(d,e),f(e,h),f(e,m),f(m,p),f(e,b),u.m(v,e),f(e,I),f(e,w),f(w,A),f(e,j),E.m(z,e),f(e,k),f(e,C),f(C,P);},p(S,Y){Y&4&&n!==(n=S[2].COMMENT+"")&&i.p(n),Y&1&&s!==(s=S[0].comments+"")&&B(r,s),Y&4&&d!==(d=S[2].SEEDERS+"")&&c.p(d),Y&1&&_!==(_=S[0].seeders+"")&&B(p,_),Y&4&&v!==(v=S[2].LEECHERS+"")&&u.p(v),Y&1&&y!==(y=S[0].leechers+"")&&B(A,y),Y&4&&z!==(z=S[2].SNATCHED+"")&&E.p(z),Y&1&&L!==(L=S[0].snatched+"")&&B(P,L);},d(S){S&&T(e);}}}function Ds(t){let e,i,n,l=t[0].category+"",o,s,r,a,c,d,h,m=t[0].torrentIndex+1+"",_,p,b,u,v,I,w=(t[6].title||t[3])&&In(t);function y(C,L){return C[4]?Ns:ks}let A=y(t),j=A(t),E=t[7]&&yn(t),z=(t[6].all||t[3])&&wn(t),k=!(t[6].all||t[3])&&Ln(t);return {c(){e=M("div"),i=M("div"),n=M("div"),o=D(l),r=O(),w&&w.c(),a=O(),c=M("div"),j.c(),d=O(),h=M("div"),_=D(m),p=O(),E&&E.c(),b=O(),z&&z.c(),u=O(),k&&k.c(),g(n,"class","card-category svelte-4b9kml"),g(n,"data-href",s=t[0].categoryLink),G(n,"background-color",ct.CATEGORY[t[0].categoryNumber]??"transparent"),G(n,"color",ct.CATEGORY[t[0].categoryNumber]?Yn(ct.CATEGORY[t[0].categoryNumber]):"black"),g(h,"class","card-index svelte-4b9kml"),g(c,"class","card-image svelte-4b9kml"),g(i,"class","card-holder svelte-4b9kml"),g(e,"class","card svelte-4b9kml"),G(e,"width",t[1]+"px"),G(e,"z-index",1e4-t[0].torrentIndex),G(e,"background-color",t[5]);},m(C,L){N(C,e,L),f(e,i),f(i,n),f(n,o),f(i,r),w&&w.m(i,null),f(i,a),f(i,c),j.m(c,null),f(c,d),f(c,h),f(h,_),f(c,p),E&&E.m(c,null),f(i,b),z&&z.m(i,null),f(i,u),k&&k.m(i,null),v||(I=[q(c,"click",t[10]),q(i,"mouseenter",t[11]),q(i,"mouseleave",t[12])],v=!0);},p(C,[L]){L&1&&l!==(l=C[0].category+"")&&B(o,l),L&1&&s!==(s=C[0].categoryLink)&&g(n,"data-href",s),L&1&&G(n,"background-color",ct.CATEGORY[C[0].categoryNumber]??"transparent"),L&1&&G(n,"color",ct.CATEGORY[C[0].categoryNumber]?Yn(ct.CATEGORY[C[0].categoryNumber]):"black"),C[6].title||C[3]?w?w.p(C,L):(w=In(C),w.c(),w.m(i,a)):w&&(w.d(1),w=null),A===(A=y(C))&&j?j.p(C,L):(j.d(1),j=A(C),j&&(j.c(),j.m(c,d))),L&1&&m!==(m=C[0].torrentIndex+1+"")&&B(_,m),C[7]?E?E.p(C,L):(E=yn(C),E.c(),E.m(c,null)):E&&(E.d(1),E=null),C[6].all||C[3]?z?z.p(C,L):(z=wn(C),z.c(),z.m(i,u)):z&&(z.d(1),z=null),C[6].all||C[3]?k&&(k.d(1),k=null):k?k.p(C,L):(k=Ln(C),k.c(),k.m(i,null)),L&2&&G(e,"width",C[1]+"px"),L&1&&G(e,"z-index",1e4-C[0].torrentIndex),L&32&&G(e,"background-color",C[5]);},i:te,o:te,d(C){C&&T(e),w&&w.d(),j.d(),E&&E.d(),z&&z.d(),k&&k.d(),v=!1,Ce(I);}}}function Yn(t){const e=t.replace("#",""),i=parseInt(e.substr(0,2),16),n=parseInt(e.substr(2,2),16),l=parseInt(e.substr(4,2),16);return (i*299+n*587+l*114)/1e3<128?"white":"black"}const Gn=t=>t.outerHTML,Wn=t=>t.outerHTML,Un=t=>t.outerHTML;function Cs(t,e,i){let n,l,o,s,r;F(t,it,E=>i(18,n=E)),F(t,Be,E=>i(19,l=E)),F(t,Tt,E=>i(5,o=E)),F(t,qe,E=>i(6,s=E)),F(t,vt,E=>i(7,r=E));function a(){we();}function c(E,z){try{window.location.href=E,i(0,h.collectState=h.collectState=="Unbookmarked"?"Bookmarked":"Unbookmarked",h),console.log(`执行脚本${E}成功, 已经收藏或者取消~`);}catch(k){console.error(k);}}function d(){pe(Be,l=1,l),pe(it,n=h.torrentLink+"#kdescr",n);}let{torrentInfo:h}=e,{cardWidth:m}=e,{ICON:_}=e,p=!1;function b(){i(3,p=!0);}function u(){i(3,p=!1);}let v=!1;const I=()=>{i(4,v=!0);},w=E=>{const z=document.createElement("div");return z.innerHTML=E.outerHTML,z.outerHTML},y=()=>c(h.collectLink,"tI_"+h.torrentIndex),A=E=>{const z=document.createElement("div");return z.innerHTML=E.outerHTML,z.outerHTML},j=()=>c(h.collectLink,"tI_"+h.torrentIndex);return t.$$set=E=>{"torrentInfo"in E&&i(0,h=E.torrentInfo),"cardWidth"in E&&i(1,m=E.cardWidth),"ICON"in E&&i(2,_=E.ICON);},[h,m,_,p,v,o,s,r,a,c,d,b,u,I,w,y,A,j]}class Ls extends lt{constructor(e){super(),nt(this,e,Cs,Ds,tt,{torrentInfo:0,cardWidth:1,ICON:2});}}function Qn(t){let e,i,n,l,o=t[0].torrent_name+"",s,r,a=t[0].tempTagDom.length!=0&&Zn(t);return {c(){e=M("div"),i=M("a"),a&&a.c(),n=O(),l=M("b"),s=D(o),g(i,"class","two-lines svelte-1fw75v2"),g(i,"href",r=t[0].torrentLink),g(i,"target","_blank"),g(e,"class","card-title svelte-1fw75v2");},m(c,d){N(c,e,d),f(e,i),a&&a.m(i,null),f(i,n),f(i,l),f(l,s);},p(c,d){c[0].tempTagDom.length!=0?a?a.p(c,d):(a=Zn(c),a.c(),a.m(i,n)):a&&(a.d(1),a=null),d&1&&o!==(o=c[0].torrent_name+"")&&B(s,o),d&1&&r!==(r=c[0].torrentLink)&&g(i,"href",r);},d(c){c&&T(e),a&&a.d();}}}function Zn(t){let e,i=Array.from(t[0].tempTagDom).map(al)+"";return {c(){e=M("span"),g(e,"class","tempTags svelte-1fw75v2");},m(n,l){N(n,e,l),e.innerHTML=i;},p(n,l){l&1&&i!==(i=Array.from(n[0].tempTagDom).map(al)+"")&&(e.innerHTML=i);},d(n){n&&T(e);}}}function As(t){let e,i,n,l,o,s,r,a;return {c(){e=M("div"),i=M("div"),n=M("img"),o=O(),s=M("div"),s.textContent="图片加载失败",G(n,"height","100%"),G(n,"width","100px"),ve(n.src,l=Di)||g(n,"src",l),g(n,"alt","pic error"),g(n,"class","svelte-1fw75v2"),g(e,"class","pic_error"),g(e,"style","");},m(c,d){N(c,e,d),f(e,i),f(i,n),f(e,o),f(e,s),r||(a=q(n,"load",t[8]),r=!0);},p:te,d(c){c&&T(e),r=!1,a();}}}function Es(t){let e,i,n,l,o,s;return {c(){e=M("img"),g(e,"class","card-image--img nexus-lazy-load_Kesa svelte-1fw75v2"),ve(e.src,i=ht.LOADING_PIC)||g(e,"src",i),g(e,"data-src",n=t[0].picLink),g(e,"alt",l=t[0].torrentName);},m(r,a){N(r,e,a),o||(s=[q(e,"load",t[8]),q(e,"error",t[12])],o=!0);},p(r,a){a&1&&n!==(n=r[0].picLink)&&g(e,"data-src",n),a&1&&l!==(l=r[0].torrentName)&&g(e,"alt",l);},d(r){r&&T(e),o=!1,Ce(s);}}}function Bn(t){let e,i,n,l=t[0].tagsDOM.map(t[13]).join("")+"",o,s,r,a,c,d=t[2].SIZE+"",h,m=t[0].size+"",_,p,b,u,v=t[2].DOWNLOAD+"",I,w,y,A,j,E,z,k,C,L=(t[0].collectState=="Unbookmarked"?t[2].COLLET:t[2].COLLETED)+"",P,S,Y,Me,ie,U,X,K=t[0].upload_date+"",re,Q,W,fe,he=t[2].COMMENT+"",ue,de,be=t[0].comments+"",Ne,De,Oe,ge=t[2].SEEDERS+"",Se,Ie,ke=t[0].seeders+"",Re,me,oe,R=t[2].LEECHERS+"",ye,ne,ae=t[0].leechers+"",ot,Le,Pe,Je=t[2].SNATCHED+"",st,Ue,Ke=t[0].snatched+"",rt,Qe,at,ce=(t[0].free_type||t[0].pattMsg)&&Vn(t),le=t[0].description&&Kn(t);return {c(){ce&&ce.c(),e=O(),le&&le.c(),i=O(),n=M("div"),o=O(),s=M("div"),r=M("div"),a=M("div"),c=new se(!1),h=D(" "),_=D(m),p=D(` `),b=M("div"),u=new se(!1),I=D(` `),w=M("b"),y=M("a"),A=D("下载"),E=D(` `),z=M("div"),k=M("div"),C=new se(!1),P=D(` `),S=M("b"),S.textContent="收藏",Me=O(),ie=M("div"),U=M("b"),U.textContent="上传时间:",X=O(),re=D(K),Q=O(),W=M("div"),fe=new se(!1),ue=D(" "),de=M("b"),Ne=D(be),De=D(` `),Oe=new se(!1),Se=D(" "),Ie=M("b"),Re=D(ke),me=D(` `),oe=new se(!1),ye=D(" "),ne=M("b"),ot=D(ae),Le=D(` `),Pe=new se(!1),st=D(" "),Ue=M("b"),rt=D(Ke),g(n,"class","cl-tags svelte-1fw75v2"),c.a=h,g(a,"class","cl-center svelte-1fw75v2"),u.a=I,g(y,"href",j=t[0].downloadLink),g(b,"class","cl-center svelte-1fw75v2"),C.a=P,g(k,"class","btnCollet cl-center svelte-1fw75v2"),g(k,"id",Y="tI_"+t[0].torrentIndex),g(z,"class","cl-center svelte-1fw75v2"),g(r,"class","card-line svelte-1fw75v2"),g(ie,"class","card-line svelte-1fw75v2"),fe.a=ue,Oe.a=Se,oe.a=ye,Pe.a=st,g(W,"class","card-line svelte-1fw75v2"),g(s,"class","card-details svelte-1fw75v2");},m(Z,V){ce&&ce.m(Z,V),N(Z,e,V),le&&le.m(Z,V),N(Z,i,V),N(Z,n,V),n.innerHTML=l,N(Z,o,V),N(Z,s,V),f(s,r),f(r,a),c.m(d,a),f(a,h),f(a,_),f(r,p),f(r,b),u.m(v,b),f(b,I),f(b,w),f(w,y),f(y,A),f(r,E),f(r,z),f(z,k),C.m(L,k),f(k,P),f(k,S),f(s,Me),f(s,ie),f(ie,U),f(ie,X),f(ie,re),f(s,Q),f(s,W),fe.m(he,W),f(W,ue),f(W,de),f(de,Ne),f(W,De),Oe.m(ge,W),f(W,Se),f(W,Ie),f(Ie,Re),f(W,me),oe.m(R,W),f(W,ye),f(W,ne),f(ne,ot),f(W,Le),Pe.m(Je,W),f(W,st),f(W,Ue),f(Ue,rt),Qe||(at=q(k,"click",function(){qt(ii(t[0].collectLink,"tI_"+t[0].torrentIndex))&&ii(t[0].collectLink,"tI_"+t[0].torrentIndex).apply(this,arguments);}),Qe=!0);},p(Z,V){t=Z,t[0].free_type||t[0].pattMsg?ce?ce.p(t,V):(ce=Vn(t),ce.c(),ce.m(e.parentNode,e)):ce&&(ce.d(1),ce=null),t[0].description?le?le.p(t,V):(le=Kn(t),le.c(),le.m(i.parentNode,i)):le&&(le.d(1),le=null),V&1&&l!==(l=t[0].tagsDOM.map(t[13]).join("")+"")&&(n.innerHTML=l),V&4&&d!==(d=t[2].SIZE+"")&&c.p(d),V&1&&m!==(m=t[0].size+"")&&B(_,m),V&4&&v!==(v=t[2].DOWNLOAD+"")&&u.p(v),V&1&&j!==(j=t[0].downloadLink)&&g(y,"href",j),V&5&&L!==(L=(t[0].collectState=="Unbookmarked"?t[2].COLLET:t[2].COLLETED)+"")&&C.p(L),V&1&&Y!==(Y="tI_"+t[0].torrentIndex)&&g(k,"id",Y),V&1&&K!==(K=t[0].upload_date+"")&&B(re,K),V&4&&he!==(he=t[2].COMMENT+"")&&fe.p(he),V&1&&be!==(be=t[0].comments+"")&&B(Ne,be),V&4&&ge!==(ge=t[2].SEEDERS+"")&&Oe.p(ge),V&1&&ke!==(ke=t[0].seeders+"")&&B(Re,ke),V&4&&R!==(R=t[2].LEECHERS+"")&&oe.p(R),V&1&&ae!==(ae=t[0].leechers+"")&&B(ot,ae),V&4&&Je!==(Je=t[2].SNATCHED+"")&&Pe.p(Je),V&1&&Ke!==(Ke=t[0].snatched+"")&&B(rt,Ke);},d(Z){ce&&ce.d(Z),Z&&T(e),le&&le.d(Z),Z&&T(i),Z&&T(n),Z&&T(o),Z&&T(s),Qe=!1,at();}}}function Vn(t){let e,i,n,l,o,s=t[0].place_at_the_top.length!=0&&Fn(t),r=t[0].freeTypeImg&&qn(t),a=t[0].free_remaining_time&&Jn(t);return {c(){e=M("div"),i=M("div"),s&&s.c(),n=O(),r&&r.c(),l=O(),a&&a.c(),g(i,"class",o="top_and_free "+t[0].free_type+" svelte-1fw75v2"),g(e,"class","card-alter svelte-1fw75v2");},m(c,d){N(c,e,d),f(e,i),s&&s.m(i,null),f(i,n),r&&r.m(i,null),f(i,l),a&&a.m(i,null);},p(c,d){c[0].place_at_the_top.length!=0?s?s.p(c,d):(s=Fn(c),s.c(),s.m(i,n)):s&&(s.d(1),s=null),c[0].freeTypeImg?r?r.p(c,d):(r=qn(c),r.c(),r.m(i,l)):r&&(r.d(1),r=null),c[0].free_remaining_time?a?a.p(c,d):(a=Jn(c),a.c(),a.m(i,null)):a&&(a.d(1),a=null),d&1&&o!==(o="top_and_free "+c[0].free_type+" svelte-1fw75v2")&&g(i,"class",o);},d(c){c&&T(e),s&&s.d(),r&&r.d(),a&&a.d();}}}function Fn(t){let e,i=Array.from(t[0].place_at_the_top).map(cl)+" ",n;return {c(){e=new se(!1),n=We(),e.a=n;},m(l,o){e.m(i,l,o),N(l,n,o);},p(l,o){o&1&&i!==(i=Array.from(l[0].place_at_the_top).map(cl)+" ")&&e.p(i);},d(l){l&&T(n),l&&e.d();}}}function qn(t){let e,i=t[0].freeTypeImg.outerHTML+"",n;return {c(){e=new se(!1),n=We(),e.a=n;},m(l,o){e.m(i,l,o),N(l,n,o);},p(l,o){o&1&&i!==(i=l[0].freeTypeImg.outerHTML+"")&&e.p(i);},d(l){l&&T(n),l&&e.d();}}}function Jn(t){let e,i,n=t[0].free_remaining_time+"",l;return {c(){e=D(" "),i=M("b"),l=D(n);},m(o,s){N(o,e,s),N(o,i,s),f(i,l);},p(o,s){s&1&&n!==(n=o[0].free_remaining_time+"")&&B(l,n);},d(o){o&&T(e),o&&T(i);}}}function Kn(t){let e,i=t[0].description+"",n,l;return {c(){e=M("a"),n=D(i),g(e,"class","card-description svelte-1fw75v2"),g(e,"href",l=t[0].torrentLink);},m(o,s){N(o,e,s),f(e,n);},p(o,s){s&1&&i!==(i=o[0].description+"")&&B(n,i),s&1&&l!==(l=o[0].torrentLink)&&g(e,"href",l);},d(o){o&&T(e);}}}function Xn(t){let e,i,n,l,o,s,r=t[7].free&&(t[0].free_type||t[0].pattMsg)&&$n(t),a=t[7].sub_title&&t[0].description&&il(t),c=t[7].tags&&t[0].tagsDOM.length!=0&&nl(t),d=t[7].size_download_collect&&ll(t),h=t[7].upload_time&&ol(t),m=t[7].statistics&&sl(t);return {c(){r&&r.c(),e=O(),a&&a.c(),i=O(),c&&c.c(),n=O(),l=M("div"),d&&d.c(),o=O(),h&&h.c(),s=O(),m&&m.c(),g(l,"class","card-details svelte-1fw75v2");},m(_,p){r&&r.m(_,p),N(_,e,p),a&&a.m(_,p),N(_,i,p),c&&c.m(_,p),N(_,n,p),N(_,l,p),d&&d.m(l,null),f(l,o),h&&h.m(l,null),f(l,s),m&&m.m(l,null);},p(_,p){_[7].free&&(_[0].free_type||_[0].pattMsg)?r?r.p(_,p):(r=$n(_),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),_[7].sub_title&&_[0].description?a?a.p(_,p):(a=il(_),a.c(),a.m(i.parentNode,i)):a&&(a.d(1),a=null),_[7].tags&&_[0].tagsDOM.length!=0?c?c.p(_,p):(c=nl(_),c.c(),c.m(n.parentNode,n)):c&&(c.d(1),c=null),_[7].size_download_collect?d?d.p(_,p):(d=ll(_),d.c(),d.m(l,o)):d&&(d.d(1),d=null),_[7].upload_time?h?h.p(_,p):(h=ol(_),h.c(),h.m(l,s)):h&&(h.d(1),h=null),_[7].statistics?m?m.p(_,p):(m=sl(_),m.c(),m.m(l,null)):m&&(m.d(1),m=null);},d(_){r&&r.d(_),_&&T(e),a&&a.d(_),_&&T(i),c&&c.d(_),_&&T(n),_&&T(l),d&&d.d(),h&&h.d(),m&&m.d();}}}function $n(t){let e,i,n,l,o,s=t[0].place_at_the_top.length!=0&&xn(t),r=t[0].freeTypeImg&&el(t),a=t[0].free_remaining_time&&tl(t);return {c(){e=M("div"),i=M("div"),s&&s.c(),n=O(),r&&r.c(),l=O(),a&&a.c(),g(i,"class",o="top_and_free "+t[0].free_type+" svelte-1fw75v2"),g(e,"class","card-alter svelte-1fw75v2");},m(c,d){N(c,e,d),f(e,i),s&&s.m(i,null),f(i,n),r&&r.m(i,null),f(i,l),a&&a.m(i,null);},p(c,d){c[0].place_at_the_top.length!=0?s?s.p(c,d):(s=xn(c),s.c(),s.m(i,n)):s&&(s.d(1),s=null),c[0].freeTypeImg?r?r.p(c,d):(r=el(c),r.c(),r.m(i,l)):r&&(r.d(1),r=null),c[0].free_remaining_time?a?a.p(c,d):(a=tl(c),a.c(),a.m(i,null)):a&&(a.d(1),a=null),d&1&&o!==(o="top_and_free "+c[0].free_type+" svelte-1fw75v2")&&g(i,"class",o);},d(c){c&&T(e),s&&s.d(),r&&r.d(),a&&a.d();}}}function xn(t){let e,i=Array.from(t[0].place_at_the_top).map(fl)+" ",n;return {c(){e=new se(!1),n=We(),e.a=n;},m(l,o){e.m(i,l,o),N(l,n,o);},p(l,o){o&1&&i!==(i=Array.from(l[0].place_at_the_top).map(fl)+" ")&&e.p(i);},d(l){l&&T(n),l&&e.d();}}}function el(t){let e,i=t[0].freeTypeImg.outerHTML+"",n;return {c(){e=new se(!1),n=We(),e.a=n;},m(l,o){e.m(i,l,o),N(l,n,o);},p(l,o){o&1&&i!==(i=l[0].freeTypeImg.outerHTML+"")&&e.p(i);},d(l){l&&T(n),l&&e.d();}}}function tl(t){let e,i,n=t[0].free_remaining_time+"",l;return {c(){e=D(" "),i=M("b"),l=D(n);},m(o,s){N(o,e,s),N(o,i,s),f(i,l);},p(o,s){s&1&&n!==(n=o[0].free_remaining_time+"")&&B(l,n);},d(o){o&&T(e),o&&T(i);}}}function il(t){let e,i=t[0].description+"",n,l;return {c(){e=M("a"),n=D(i),g(e,"class","card-description svelte-1fw75v2"),g(e,"href",l=t[0].torrentLink);},m(o,s){N(o,e,s),f(e,n);},p(o,s){s&1&&i!==(i=o[0].description+"")&&B(n,i),s&1&&l!==(l=o[0].torrentLink)&&g(e,"href",l);},d(o){o&&T(e);}}}function nl(t){let e,i=t[0].tagsDOM.map(t[14]).join("")+"";return {c(){e=M("div"),g(e,"class","cl-tags svelte-1fw75v2");},m(n,l){N(n,e,l),e.innerHTML=i;},p(n,l){l&1&&i!==(i=n[0].tagsDOM.map(n[14]).join("")+"")&&(e.innerHTML=i);},d(n){n&&T(e);}}}function ll(t){let e,i,n,l=t[2].SIZE+"",o,s=t[0].size+"",r,a,c,d,h=t[2].DOWNLOAD+"",m,_,p,b,u,v,I,w,y,A=(t[0].collectState=="Unbookmarked"?t[2].COLLET:t[2].COLLETED)+"",j,E,z,k,C;return {c(){e=M("div"),i=M("div"),n=new se(!1),o=D(" "),r=D(s),a=D(` `),c=M("div"),d=new se(!1),m=D(` `),_=M("b"),p=M("a"),b=D("下载"),v=D(` `),I=M("div"),w=M("div"),y=new se(!1),j=D(` `),E=M("b"),E.textContent="收藏",n.a=o,g(i,"class","cl-center svelte-1fw75v2"),d.a=m,g(p,"href",u=t[0].downloadLink),g(c,"class","cl-center svelte-1fw75v2"),y.a=j,g(w,"class","btnCollet cl-center svelte-1fw75v2"),g(w,"id",z="tI_"+t[0].torrentIndex),g(I,"class","cl-center svelte-1fw75v2"),g(e,"class","card-line svelte-1fw75v2");},m(L,P){N(L,e,P),f(e,i),n.m(l,i),f(i,o),f(i,r),f(e,a),f(e,c),d.m(h,c),f(c,m),f(c,_),f(_,p),f(p,b),f(e,v),f(e,I),f(I,w),y.m(A,w),f(w,j),f(w,E),k||(C=q(w,"click",function(){qt(ii(t[0].collectLink,"tI_"+t[0].torrentIndex))&&ii(t[0].collectLink,"tI_"+t[0].torrentIndex).apply(this,arguments);}),k=!0);},p(L,P){t=L,P&4&&l!==(l=t[2].SIZE+"")&&n.p(l),P&1&&s!==(s=t[0].size+"")&&B(r,s),P&4&&h!==(h=t[2].DOWNLOAD+"")&&d.p(h),P&1&&u!==(u=t[0].downloadLink)&&g(p,"href",u),P&5&&A!==(A=(t[0].collectState=="Unbookmarked"?t[2].COLLET:t[2].COLLETED)+"")&&y.p(A),P&1&&z!==(z="tI_"+t[0].torrentIndex)&&g(w,"id",z);},d(L){L&&T(e),k=!1,C();}}}function ol(t){let e,i,n,l=t[0].upload_date+"",o;return {c(){e=M("div"),i=M("b"),i.textContent="上传时间:",n=O(),o=D(l),g(e,"class","card-line svelte-1fw75v2");},m(s,r){N(s,e,r),f(e,i),f(e,n),f(e,o);},p(s,r){r&1&&l!==(l=s[0].upload_date+"")&&B(o,l);},d(s){s&&T(e);}}}function sl(t){let e,i,n=t[2].COMMENT+"",l,o,s=t[0].comments+"",r,a,c,d=t[2].SEEDERS+"",h,m,_=t[0].seeders+"",p,b,u,v=t[2].LEECHERS+"",I,w,y=t[0].leechers+"",A,j,E,z=t[2].SNATCHED+"",k,C,L=t[0].snatched+"",P;return {c(){e=M("div"),i=new se(!1),l=D(" "),o=M("b"),r=D(s),a=D(` `),c=new se(!1),h=D(" "),m=M("b"),p=D(_),b=D(` `),u=new se(!1),I=D(" "),w=M("b"),A=D(y),j=D(` `),E=new se(!1),k=D(" "),C=M("b"),P=D(L),i.a=l,c.a=h,u.a=I,E.a=k,g(e,"class","card-line svelte-1fw75v2");},m(S,Y){N(S,e,Y),i.m(n,e),f(e,l),f(e,o),f(o,r),f(e,a),c.m(d,e),f(e,h),f(e,m),f(m,p),f(e,b),u.m(v,e),f(e,I),f(e,w),f(w,A),f(e,j),E.m(z,e),f(e,k),f(e,C),f(C,P);},p(S,Y){Y&4&&n!==(n=S[2].COMMENT+"")&&i.p(n),Y&1&&s!==(s=S[0].comments+"")&&B(r,s),Y&4&&d!==(d=S[2].SEEDERS+"")&&c.p(d),Y&1&&_!==(_=S[0].seeders+"")&&B(p,_),Y&4&&v!==(v=S[2].LEECHERS+"")&&u.p(v),Y&1&&y!==(y=S[0].leechers+"")&&B(A,y),Y&4&&z!==(z=S[2].SNATCHED+"")&&E.p(z),Y&1&&L!==(L=S[0].snatched+"")&&B(P,L);},d(S){S&&T(e);}}}function Os(t){let e,i,n,l,o,s,r=t[0].category+"",a,c,d,h,m,_,p,b=t[0].torrentIndex+1+"",u,v,I,w,y,A=(t[7].title||t[3])&&Qn(t);function j(L,P){return L[4]?As:Es}let E=j(t),z=E(t),k=(t[7].all||t[3])&&Bn(t),C=!(t[7].all||t[3])&&Xn(t);return {c(){e=M("div"),i=M("div"),n=M("div"),l=M("img"),s=O(),a=D(r),d=O(),A&&A.c(),h=O(),m=M("div"),z.c(),_=O(),p=M("div"),u=D(b),v=O(),k&&k.c(),I=O(),C&&C.c(),g(l,"class","card_category-img svelte-1fw75v2"),ve(l.src,o=t[0]._categoryImg)||g(l,"src",o),g(l,"alt",""),g(n,"class","card-category svelte-1fw75v2"),g(n,"data-href",c=t[0].categoryLink),G(n,"background-color",ht.CATEGORY[t[0].categoryNumber]??"transparent"),G(n,"color",ht.CATEGORY[t[0].categoryNumber]?rl(ht.CATEGORY[t[0].categoryNumber]):"black"),g(p,"class","card-index svelte-1fw75v2"),g(m,"class","card-image svelte-1fw75v2"),g(i,"class","card-holder svelte-1fw75v2"),g(e,"class","card svelte-1fw75v2"),G(e,"display",t[0].categoryNumber=="440"&&t[5].mt.hide_gay?"none":"block"),G(e,"width",t[1]+"px"),G(e,"z-index",1e4-t[0].torrentIndex),G(e,"background-color",t[6]);},m(L,P){N(L,e,P),f(e,i),f(i,n),f(n,l),f(n,s),f(n,a),f(i,d),A&&A.m(i,null),f(i,h),f(i,m),z.m(m,null),f(m,_),f(m,p),f(p,u),f(i,v),k&&k.m(i,null),f(i,I),C&&C.m(i,null),w||(y=[q(m,"click",t[9]),q(i,"mouseenter",t[10]),q(i,"mouseleave",t[11])],w=!0);},p(L,[P]){P&1&&!ve(l.src,o=L[0]._categoryImg)&&g(l,"src",o),P&1&&r!==(r=L[0].category+"")&&B(a,r),P&1&&c!==(c=L[0].categoryLink)&&g(n,"data-href",c),P&1&&G(n,"background-color",ht.CATEGORY[L[0].categoryNumber]??"transparent"),P&1&&G(n,"color",ht.CATEGORY[L[0].categoryNumber]?rl(ht.CATEGORY[L[0].categoryNumber]):"black"),L[7].title||L[3]?A?A.p(L,P):(A=Qn(L),A.c(),A.m(i,h)):A&&(A.d(1),A=null),E===(E=j(L))&&z?z.p(L,P):(z.d(1),z=E(L),z&&(z.c(),z.m(m,_))),P&1&&b!==(b=L[0].torrentIndex+1+"")&&B(u,b),L[7].all||L[3]?k?k.p(L,P):(k=Bn(L),k.c(),k.m(i,I)):k&&(k.d(1),k=null),L[7].all||L[3]?C&&(C.d(1),C=null):C?C.p(L,P):(C=Xn(L),C.c(),C.m(i,null)),P&33&&G(e,"display",L[0].categoryNumber=="440"&&L[5].mt.hide_gay?"none":"block"),P&2&&G(e,"width",L[1]+"px"),P&1&&G(e,"z-index",1e4-L[0].torrentIndex),P&64&&G(e,"background-color",L[6]);},i:te,o:te,d(L){L&&T(e),A&&A.d(),z.d(),k&&k.d(),C&&C.d(),w=!1,Ce(y);}}}function ii(t,e){try{window.location.href=t;const n=document.querySelector(`div#${e}`).children[0];n.className=n.className=="delbookmark"?"bookmark":"delbookmark",console.log(`执行脚本${t}成功, 已经收藏或者取消~`);}catch(i){console.error(i);}}function rl(t){const e=t.replace("#",""),i=parseInt(e.substr(0,2),16),n=parseInt(e.substr(2,2),16),l=parseInt(e.substr(4,2),16);return (i*299+n*587+l*114)/1e3<128?"white":"black"}const al=t=>t.outerHTML,cl=t=>t.outerHTML,fl=t=>t.outerHTML;function Ss(t,e,i){let n,l,o,s,r;F(t,it,y=>i(15,n=y)),F(t,Be,y=>i(16,l=y)),F(t,Ft,y=>i(5,o=y)),F(t,Tt,y=>i(6,s=y)),F(t,qe,y=>i(7,r=y));function a(){we();}function c(){pe(Be,l=1,l),pe(it,n=d.torrentLink+"#kdescr",n);}let{torrentInfo:d}=e,{cardWidth:h}=e,{ICON:m}=e,_=!1;function p(){i(3,_=!0);}function b(){i(3,_=!1);}let u=!1;const v=()=>{i(4,u=!0);},I=y=>{const A=document.createElement("div");return A.innerHTML=y.outerHTML,A.outerHTML},w=y=>{const A=document.createElement("div");return A.innerHTML=y.outerHTML,A.outerHTML};return t.$$set=y=>{"torrentInfo"in y&&i(0,d=y.torrentInfo),"cardWidth"in y&&i(1,h=y.cardWidth),"ICON"in y&&i(2,m=y.ICON);},[d,h,m,_,u,o,s,r,a,c,p,b,v,I,w]}class zs extends lt{constructor(e){super(),nt(this,e,Ss,Os,tt,{torrentInfo:0,cardWidth:1,ICON:2});}}function ul(t,e,i){const n=t.slice();return n[23]=e[i],n}function dl(t,e,i){const n=t.slice();return n[23]=e[i],n}function js(t){let e;return {c(){e=M("div"),e.textContent="else";},m(i,n){N(i,e,n);},p:te,i:te,o:te,d(i){i&&T(e);}}}function Rs(t){let e=[],i=new Map,n,l,o=t[2];const s=r=>r[23].torrentIndex;for(let r=0;r<o.length;r+=1){let a=ul(t,o,r),c=s(a);i.set(c,e[r]=_l(c,a));}return {c(){for(let r=0;r<e.length;r+=1)e[r].c();n=We();},m(r,a){for(let c=0;c<e.length;c+=1)e[c]&&e[c].m(r,a);N(r,n,a),l=!0;},p(r,a){a&5&&(o=r[2],xe(),e=Ni(e,a,s,1,r,o,i,n.parentNode,Ti,_l,n,ul),et());},i(r){if(!l){for(let a=0;a<o.length;a+=1)J(e[a]);l=!0;}},o(r){for(let a=0;a<e.length;a+=1)ee(e[a]);l=!1;},d(r){for(let a=0;a<e.length;a+=1)e[a].d(r);r&&T(n);}}}function Ps(t){let e=[],i=new Map,n,l,o=t[2];const s=r=>r[23].torrentIndex;for(let r=0;r<o.length;r+=1){let a=dl(t,o,r),c=s(a);i.set(c,e[r]=gl(c,a));}return {c(){for(let r=0;r<e.length;r+=1)e[r].c();n=We();},m(r,a){for(let c=0;c<e.length;c+=1)e[c]&&e[c].m(r,a);N(r,n,a),l=!0;},p(r,a){a&5&&(o=r[2],xe(),e=Ni(e,a,s,1,r,o,i,n.parentNode,Ti,gl,n,dl),et());},i(r){if(!l){for(let a=0;a<o.length;a+=1)J(e[a]);l=!0;}},o(r){for(let a=0;a<e.length;a+=1)ee(e[a]);l=!1;},d(r){for(let a=0;a<e.length;a+=1)e[a].d(r);r&&T(n);}}}function _l(t,e){let i,n,l;return n=new zs({props:{torrentInfo:e[23],cardWidth:e[0].CARD_WIDTH,ICON:io}}),{key:t,first:null,c(){i=We(),ze(n.$$.fragment),this.first=i;},m(o,s){N(o,i,s),Ae(n,o,s),l=!0;},p(o,s){e=o;const r={};s&4&&(r.torrentInfo=e[23]),s&1&&(r.cardWidth=e[0].CARD_WIDTH),n.$set(r);},i(o){l||(J(n.$$.fragment,o),l=!0);},o(o){ee(n.$$.fragment,o),l=!1;},d(o){o&&T(i),Ee(n,o);}}}function gl(t,e){let i,n,l;return n=new Ls({props:{torrentInfo:e[23],cardWidth:e[0].CARD_WIDTH,ICON:io}}),{key:t,first:null,c(){i=We(),ze(n.$$.fragment),this.first=i;},m(o,s){N(o,i,s),Ae(n,o,s),l=!0;},p(o,s){e=o;const r={};s&4&&(r.torrentInfo=e[23]),s&1&&(r.cardWidth=e[0].CARD_WIDTH),n.$set(r);},i(o){l||(J(n.$$.fragment,o),l=!0);},o(o){ee(n.$$.fragment,o),l=!1;},d(o){o&&T(i),Ee(n,o);}}}function Hs(t){let e=t[5].normal+"",i;return {c(){i=D(e);},m(n,l){N(n,i,l);},p:te,d(n){n&&T(i);}}}function Ys(t){let e=t[5].suspend+"",i;return {c(){i=D(e);},m(n,l){N(n,i,l);},p:te,d(n){n&&T(i);}}}function Gs(t){let e=t[5].disable+"",i;return {c(){i=D(e);},m(n,l){N(n,i,l);},p:te,d(n){n&&T(i);}}}function Ws(t){let e,i,n,l,o,s,r,a,c;const d=[Ps,Rs,js],h=[];function m(u,v){return u[3]=="kamept.com"?0:u[3]=="kp.m-team.cc"?1:2}e=m(t),i=h[e]=d[e](t);function _(u,v){return u[4]?Gs:u[1]?Ys:Hs}let p=_(t),b=p(t);return {c(){i.c(),n=O(),l=M("div"),o=M("button"),b.c(),g(o,"id","turnPage"),o.disabled=s=t[4]||t[1],g(o,"class","svelte-kydsmq");},m(u,v){h[e].m(u,v),N(u,n,v),N(u,l,v),f(l,o),b.m(o,null),r=!0,a||(c=q(o,"click",t[6]),a=!0);},p(u,[v]){let I=e;e=m(u),e===I?h[e].p(u,v):(xe(),ee(h[I],1,1,()=>{h[I]=null;}),et(),i=h[e],i?i.p(u,v):(i=h[e]=d[e](u),i.c()),J(i,1),i.m(n.parentNode,n)),p===(p=_(u))&&b?b.p(u,v):(b.d(1),b=p(u),b&&(b.c(),b.m(o,null))),(!r||v&18&&s!==(s=u[4]||u[1]))&&(o.disabled=s);},i(u){r||(J(i),r=!0);},o(u){ee(i),r=!1;},d(u){h[e].d(u),u&&T(n),u&&T(l),b.d(),a=!1,c();}}}function Us(t,e,i){var z;let n,l,o,s,r,a;F(t,Bt,k=>i(15,n=k)),F(t,Qt,k=>i(10,l=k)),F(t,Vt,k=>i(11,o=k)),F(t,Lt,k=>i(3,s=k)),F(t,Rt,k=>i(4,r=k)),F(t,Tt,k=>i(16,a=k));let{originTable:c}=e,{waterfallNode:d}=e;window.NEXUS_TOOLS=Dt;function h(){m(l.column,l.gap),we("fast"),we("fast");}window.CHANGE_CARD_LAYOUT=h;function m(k,C=10){if(k<=1||C<=1){console.warn("卡片列数或卡片间隔过小, 列数不小于2, 间隔不小于1");return}const P=(document.querySelector("div.waterfall").clientWidth-(k-1)*C)/k;return Array.from(document.querySelectorAll(".card")).forEach(S=>S.style.width=P+"px"),y&&(i(9,y.options.columnWidth=P,y),i(9,y.options.gutter=C,y),y.layout()),P}let _=!1,p=!1;const b={normal:"点击加载下一页",suspend:`下一页加载CD: ${x.GAP} ms`,disable:"不可用"};function u(k){k&&k.preventDefault(),r||A(),_||(i(1,_=!0),setTimeout(()=>{i(1,_=!1);},x.GAP));}window.$$$turnPage=u,pe(Lt,s=Kt(),s);const v=to();pe(Tt,a=v,a),console.log("背景颜色:",v);const I=Ze[s];let w=[];w=[...w,...I.TORRENT_LIST_TO_JSON(c)],console.log("---> 环境: ","production"),(z=Ze[s])==null||z.special();let y,A;function j(){const k=document.body.scrollHeight,C=document.documentElement.clientHeight;(document.documentElement.scrollTop||document.body.scrollTop)+C>=k-x.DISTANCE&&(r?A():console.log("加载模式: 按钮"),we());}A=Kl(E,x.GAP);function E(){console.log("到页面底部啦!!! Scrolled to bottom!");const k=new URLSearchParams(window.location.search);x.PAGE_CURRENT=x.IS_ORIGIN?Number(k.get("page")):x.PAGE_CURRENT,x.IS_ORIGIN&&(x.PAGE_ORIGIN=x.PAGE_CURRENT),x.PAGE_CURRENT?console.log("当前页数: "+x.PAGE_CURRENT):(console.log("网页链接没有page参数, 无法跳转下一页, 生成PAGE.PAGE_CURRENT为0"),x.PAGE_CURRENT=0),x.PAGE_NEXT=parseInt(x.PAGE_CURRENT)+1,k.set("page",x.PAGE_NEXT),x.NEXT_URL=window.location.origin+window.location.pathname+"?"+k.toString(),console.log("New URL:",x.NEXT_URL),fetch(x.NEXT_URL).then(C=>C.text()).then(C=>{var Me,ie;const S=new DOMParser().parseFromString(C,"text/html").querySelector(Ct()),Y=Array.from(S.cloneNode(!0).children[0].children);Y[0].children[1].textContent=` ↓ 新加载第${x.PAGE_NEXT-x.PAGE_ORIGIN}页`,console.log(x.PAGE_ORIGIN),c.children[0].append(...Y),typeof((Me=Ze[s])==null?void 0:Me.pageLoaded)=="function"&&((ie=Ze[s])==null||ie.pageLoaded()),i(2,w=[...w,...I.TORRENT_LIST_TO_JSON(S)]),x.IS_ORIGIN=!1,x.PAGE_CURRENT=x.PAGE_NEXT,p=!0,setTimeout(()=>{p=!1;},1e3);}).catch(C=>{console.warn("获取不到下页信息, 可能到头了"),console.warn(C);});}return ni(()=>{i(9,y=new Masonry(d,{itemSelector:".card",columnWidth:m(l.column,l.gap),gutter:l.gap,transitionDuration:o?.4:0})),m(l.column,l.gap),window.masonry=y,pe(Bt,n=y,n),y.layout("fast"),y.layout("fast"),d.addEventListener("click",k=>{k.target===k.currentTarget&&(y&&y.layout(),console.log("Masonry 已整理~"));}),window.addEventListener("scroll",function(){j();}),Dt();}),Yo(()=>{y&&p&&(y.reloadItems(),y.layout(),y.once("layoutComplete",()=>{Dt();}));}),t.$$set=k=>{"originTable"in k&&i(7,c=k.originTable),"waterfallNode"in k&&i(8,d=k.waterfallNode);},t.$$.update=()=>{t.$$.dirty&2560&&y&&i(9,y.options.transitionDuration=o?"0.4s":"0",y),t.$$.dirty&1537&&y&&(i(0,Mt.CARD_WIDTH=m(l.column,l.gap),Mt),console.log("卡片宽度: ",Mt.CARD_WIDTH),h());},[Mt,_,w,s,r,b,u,c,d,y,l,o]}class Qs extends lt{constructor(e){super(),nt(this,e,Us,Ws,tt,{originTable:7,waterfallNode:8});}}function Zs(t){let e=t[2].normal+"",i;return {c(){i=D(e);},m(n,l){N(n,i,l);},p:te,d(n){n&&T(i);}}}function Bs(t){let e=t[2].suspend+"",i;return {c(){i=D(e);},m(n,l){N(n,i,l);},p:te,d(n){n&&T(i);}}}function Vs(t){let e=t[2].disable+"",i;return {c(){i=D(e);},m(n,l){N(n,i,l);},p:te,d(n){n&&T(i);}}}function Fs(t){let e,i,n,l,o;function s(c,d){return c[1]?Vs:c[0]?Bs:Zs}let r=s(t),a=r(t);return {c(){e=M("div"),i=M("button"),a.c(),g(i,"id","_turnPage"),i.disabled=n=t[1]||t[0],g(i,"class","svelte-1gtc1kh");},m(c,d){N(c,e,d),f(e,i),a.m(i,null),l||(o=q(i,"click",t[3]),l=!0);},p(c,[d]){r===(r=s(c))&&a?a.p(c,d):(a.d(1),a=r(c),a&&(a.c(),a.m(i,null))),d&3&&n!==(n=c[1]||c[0])&&(i.disabled=n);},i:te,o:te,d(c){c&&T(e),a.d(),l=!1,o();}}}const ml=3e3;function qs(t,e,i){let n;F(t,Rt,r=>i(1,n=r));let l=!1;const o={normal:"点击加载下一页",suspend:`下一页加载CD: ${ml} ms`,disable:"不可用"};function s(r){r.preventDefault(),window.$$$turnPage(),l||(i(0,l=!0),setTimeout(()=>{i(0,l=!1);},ml));}return [l,n,o,s]}class no extends lt{constructor(e){super(),nt(this,e,qs,Fs,tt,{});}}function hl(t){let e,i,n,l,o,s,r,a,c,d;return {c(){e=M("div"),i=M("div"),n=M("iframe"),o=O(),s=M("div"),s.innerHTML='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_iconCarrier"><circle cx="12" cy="12" r="10" stroke="#1C274C" stroke-width="1.5"></circle><path d="M14.5 9.50002L9.5 14.5M9.49998 9.5L14.5 14.5" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round"></path></g></svg>',ve(n.src,l=t[1])||g(n,"src",l),g(n,"frameborder","0"),g(n,"title","wow"),G(n,"width",(Ze[t[2]]?Ze[t[2]].Iframe_Width:1e3)+"px"),g(n,"class","svelte-12ghpfg"),g(s,"class","_iframeCloseBtn svelte-12ghpfg"),g(i,"class","_iframe svelte-12ghpfg"),g(e,"id","_iframe"),g(e,"class","svelte-12ghpfg");},m(h,m){N(h,e,m),f(e,i),f(i,n),f(i,o),f(i,s),a=!0,c||(d=[q(s,"click",t[3]),q(e,"click",t[3])],c=!0);},p(h,m){(!a||m&2&&!ve(n.src,l=h[1]))&&g(n,"src",l),(!a||m&4)&&G(n,"width",(Ze[h[2]]?Ze[h[2]].Iframe_Width:1e3)+"px");},i(h){a||(It(()=>{a&&(r||(r=yt(e,wt,{duration:300},!0)),r.run(1));}),a=!0);},o(h){r||(r=yt(e,wt,{duration:300},!1)),r.run(0),a=!1;},d(h){h&&T(e),h&&r&&r.end(),c=!1,Ce(d);}}}function Js(t){let e,i,n,l,o=t[0]&&hl(t);return {c(){o&&o.c(),e=We();},m(s,r){o&&o.m(s,r),N(s,e,r),i=!0,n||(l=q(window,"keydown",t[4],!0),n=!0);},p(s,[r]){s[0]?o?(o.p(s,r),r&1&&J(o,1)):(o=hl(s),o.c(),J(o,1),o.m(e.parentNode,e)):o&&(xe(),ee(o,1,1,()=>{o=null;}),et());},i(s){i||(J(o),i=!0);},o(s){ee(o),i=!1;},d(s){o&&o.d(s),s&&T(e),n=!1,l();}}}function Ks(t,e,i){let n,l,o,s,r;F(t,pt,p=>i(9,n=p)),F(t,Be,p=>i(0,l=p)),F(t,jt,p=>i(5,o=p)),F(t,it,p=>i(1,s=p)),F(t,Lt,p=>i(2,r=p)),console.log(`[${new Date().toLocaleTimeString()}]<--------------------------HMR-------------------------->`);const a=document.querySelector(Ct());for(;!Masonry;)console.log("等待初始化......");const c=a.parentNode,d=document.createElement("div");d.classList.add("waterfall"),c.insertBefore(d,a.nextSibling);const h=document.createElement("div");h.classList.add("nextPage"),c.insertBefore(h,a.nextSibling);function m(){pe(Be,l=0,l);}function _(p){p.key==="Escape"&&(console.log(p),pe(Be,l=0,l),pe(pt,n=!1,n));}return ni(()=>{new xl({target:document.body}),new Qs({target:d,props:{originTable:a,waterfallNode:d}}),new no({target:h});}),t.$$.update=()=>{t.$$.dirty&32&&(a.style.display=o?"none":"block",h.style.display=o?"none":"block",d.style.display=o?"block":"none");},[l,s,r,m,_,o]}class Xs extends lt{constructor(e){super(),nt(this,e,Ks,Js,tt,{});}}const $s="data:image/svg+xml;base64,PHN2ZwogIHZpZXdCb3g9Ii0yLjQgLTIuNCAyOC44MCAyOC44MCIKICBmaWxsPSJub25lIgogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICBzdHJva2U9IiMwMDAwMDAiCj4KICA8ZyBpZD0iU1ZHUmVwb19iZ0NhcnJpZXIiIHN0cm9rZS13aWR0aD0iMCIgLz4KICA8ZyBpZD0iU1ZHUmVwb19pY29uQ2FycmllciI+CiAgICA8cGF0aAogICAgICBkPSJNMTUuNiAxNS42QzE1LjYgMTUuNiAxNC4yNSAxMy44IDEyIDEzLjhDOS43NSAxMy44IDguNCAxNS42IDguNCAxNS42TTE0LjcgOS4zSDE0LjcwOU05LjMgOS4zSDkuMzA5TTIxIDEyQzIxIDE2Ljk3MDYgMTYuOTcwNiAyMSAxMiAyMUM3LjAyOTQ0IDIxIDMgMTYuOTcwNiAzIDEyQzMgNy4wMjk0NCA3LjAyOTQ0IDMgMTIgM0MxNi45NzA2IDMgMjEgNy4wMjk0NCAyMSAxMlpNMTUuMTUgOS4zQzE1LjE1IDkuNTQ4NTMgMTQuOTQ4NSA5Ljc1IDE0LjcgOS43NUMxNC40NTE1IDkuNzUgMTQuMjUgOS41NDg1MyAxNC4yNSA5LjNDMTQuMjUgOS4wNTE0NyAxNC40NTE1IDguODUgMTQuNyA4Ljg1QzE0Ljk0ODUgOC44NSAxNS4xNSA5LjA1MTQ3IDE1LjE1IDkuM1pNOS43NSA5LjNDOS43NSA5LjU0ODUzIDkuNTQ4NTMgOS43NSA5LjMgOS43NUM5LjA1MTQ3IDkuNzUgOC44NSA5LjU0ODUzIDguODUgOS4zQzguODUgOS4wNTE0NyA5LjA1MTQ3IDguODUgOS4zIDguODVDOS41NDg1MyA4Ljg1IDkuNzUgOS4wNTE0NyA5Ljc1IDkuM1oiCiAgICAgIHN0cm9rZT0iIzAwMDAwMCIKICAgICAgc3Ryb2tlLXdpZHRoPSIxLjgiCiAgICAgIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIKICAgICAgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIKICAgIC8+CiAgPC9nPgo8L3N2Zz4=";function pl(t){let e,i,n,l=t[1].name+"",o,s;return {c(){e=M("div"),i=M("a"),n=M("b"),o=D(l),g(i,"class","two-lines svelte-rhfb99"),g(i,"href",s="/detail/"+t[1].id),g(i,"target","_blank"),g(e,"class","card-title svelte-rhfb99");},m(r,a){N(r,e,a),f(e,i),f(i,n),f(n,o);},p(r,a){a[0]&2&&l!==(l=r[1].name+"")&&B(o,l),a[0]&2&&s!==(s="/detail/"+r[1].id)&&g(i,"href",s);},d(r){r&&T(e);}}}function xs(t){let e,i,n,l,o,s,r,a;return {c(){e=M("div"),i=M("div"),n=M("img"),o=O(),s=M("div"),s.textContent="图片加载失败",G(n,"height","100%"),G(n,"width","100px"),ve(n.src,l=Di)||g(n,"src",l),g(n,"alt","pic error"),g(n,"class","svelte-rhfb99"),g(e,"class","pic_error"),g(e,"style","");},m(c,d){N(c,e,d),f(e,i),f(i,n),f(e,o),f(e,s),r||(a=q(n,"load",t[12]),r=!0);},p:te,d(c){c&&T(e),r=!1,a();}}}function er(t){let e;function i(o,s){return o[1].imageList[0]?ir:tr}let n=i(t),l=n(t);return {c(){l.c(),e=We();},m(o,s){l.m(o,s),N(o,e,s);},p(o,s){n===(n=i(o))&&l?l.p(o,s):(l.d(1),l=n(o),l&&(l.c(),l.m(e.parentNode,e)));},d(o){l.d(o),o&&T(e);}}}function tr(t){let e,i,n,l,o,s,r,a;return {c(){e=M("div"),i=M("div"),n=M("img"),o=O(),s=M("div"),s.textContent="本种没有图片",G(n,"height","100%"),G(n,"width","100px"),ve(n.src,l=$s)||g(n,"src",l),g(n,"alt","no pic"),g(n,"class","svelte-rhfb99"),g(e,"class","pic_error"),g(e,"style","");},m(c,d){N(c,e,d),f(e,i),f(i,n),f(e,o),f(e,s),r||(a=q(n,"load",t[12]),r=!0);},p:te,d(c){c&&T(e),r=!1,a();}}}function ir(t){let e,i,n,l,o,s;return {c(){e=M("img"),g(e,"class","nexus-lazy-load_Kesa svelte-rhfb99"),ve(e.src,i=Te.LOADING_PIC)||g(e,"src",i),g(e,"data-src",n=t[1].imageList[0]?t[1].imageList[0]:""),g(e,"alt",l=t[1].name);},m(r,a){N(r,e,a),o||(s=[q(e,"load",t[12]),q(e,"error",t[24])],o=!0);},p(r,a){a[0]&2&&n!==(n=r[1].imageList[0]?r[1].imageList[0]:"")&&g(e,"data-src",n),a[0]&2&&l!==(l=r[1].name)&&g(e,"alt",l);},d(r){r&&T(e),o=!1,Ce(s);}}}function vl(t){let e,i,n;return {c(){e=M("div"),i=M("img"),G(i,"pointer-events","none"),ve(i.src,n=Te.ICON.PREVIEW)||g(i,"src",n),g(i,"alt","PREVIEW"),g(i,"class","svelte-rhfb99"),g(e,"class","hover-trigger svelte-rhfb99");},m(l,o){N(l,e,o),f(e,i);},p:te,d(l){l&&T(e);}}}function Ml(t){let e,i,n,l,o,s,r,a,c,d=(Number(t[1].size)/1024/1024/1024).toFixed(2)+"G",h,m,_,p,b,u,v,I,w,y,A,j,E=`${t[18].day} 日`,z,k,C=t[18].hour?`${t[18].hour} 时`:"",L,P,S,Y,Me,ie,U,X=t[1].status.comments+"",K,re,Q,W,fe,he,ue=t[1].status.seeders+"",de,be,Ne,De,Oe,ge,Se=t[1].status.leechers+"",Ie,ke,Re,me=t[1].smallDescr&&bl(t),oe=(t[1].status.discount||t[1].status.toppingLevel)&&Il(t),R=t[1].labels!=0&&wl(t),ye={ctx:t,current:null,token:null,hasCatch:!0,pending:sr,then:or,catch:lr,value:34,error:35};return ti(v=t[4],ye),{c(){me&&me.c(),e=O(),oe&&oe.c(),i=O(),R&&R.c(),n=O(),l=M("div"),o=M("div"),s=M("div"),r=M("div"),a=M("span"),a.innerHTML='<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" height="25" width="25" xmlns="http://www.w3.org/2000/svg" style="vertical-align: middle; --darkreader-inline-fill: currentColor; --darkreader-inline-stroke: currentColor;"><path d="M12 5c-3.859 0-7 3.141-7 7s3.141 7 7 7 7-3.141 7-7-3.141-7-7-7zm0 12c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5z"></path><path d="M12 9c-1.627 0-3 1.373-3 3s1.373 3 3 3 3-1.373 3-3-1.373-3-3-3z"></path></svg>',c=D(` `),h=D(d),m=D(` `),_=M("div"),_.innerHTML='<span class="icon_holder svelte-rhfb99"><svg viewBox="64 64 896 896" focusable="false" data-icon="download" width="1em" height="1em" fill="currentColor" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"><path d="M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"></path></svg></span>',p=D(` `),b=M("div"),u=M("span"),ye.block.c(),I=O(),w=M("div"),y=M("img"),j=D(` `),z=D(E),k=O(),L=D(C),P=O(),S=M("div"),Y=M("img"),ie=D(` `),U=M("b"),K=D(X),re=D(` `),Q=M("img"),fe=D(` `),he=M("b"),de=D(ue),be=D(` `),Ne=M("img"),Oe=D(` `),ge=M("b"),Ie=D(Se),g(a,"class","icon_holder svelte-rhfb99"),g(r,"class","cl-btn svelte-rhfb99"),g(_,"class","cl-btn svelte-rhfb99"),G(_,"cursor","pointer"),g(u,"class","icon_holder svelte-rhfb99"),g(b,"class","cl-btn svelte-rhfb99"),G(b,"cursor","pointer"),g(s,"class","cl-center svelte-rhfb99"),g(o,"class","card-line svelte-rhfb99"),ve(y.src,A=Te.ICON.TIME)||g(y,"src",A),g(y,"alt","SVG_Time"),g(w,"class","card-line cl-btn svelte-rhfb99"),ve(Y.src,Me=Te.ICON.COMMENT)||g(Y,"src",Me),g(Y,"alt","SVG_Comment"),ve(Q.src,W=Te.ICON.SEEDERS)||g(Q,"src",W),g(Q,"alt","SVG_Seeders"),ve(Ne.src,De=Te.ICON.LEECHERS)||g(Ne,"src",De),g(Ne,"alt","SVG_Leechers"),g(S,"class","card-line svelte-rhfb99"),g(l,"class","card-details svelte-rhfb99");},m(ne,ae){me&&me.m(ne,ae),N(ne,e,ae),oe&&oe.m(ne,ae),N(ne,i,ae),R&&R.m(ne,ae),N(ne,n,ae),N(ne,l,ae),f(l,o),f(o,s),f(s,r),f(r,a),f(r,c),f(r,h),f(s,m),f(s,_),f(s,p),f(s,b),f(b,u),ye.block.m(u,ye.anchor=null),ye.mount=()=>u,ye.anchor=null,f(l,I),f(l,w),f(w,y),f(w,j),f(w,z),f(w,k),f(w,L),f(l,P),f(l,S),f(S,Y),f(S,ie),f(S,U),f(U,K),f(S,re),f(S,Q),f(S,fe),f(S,he),f(he,de),f(S,be),f(S,Ne),f(S,Oe),f(S,ge),f(ge,Ie),ke||(Re=[q(_,"click",t[19]),q(b,"click",t[20])],ke=!0);},p(ne,ae){t=ne,t[1].smallDescr?me?me.p(t,ae):(me=bl(t),me.c(),me.m(e.parentNode,e)):me&&(me.d(1),me=null),t[1].status.discount||t[1].status.toppingLevel?oe?oe.p(t,ae):(oe=Il(t),oe.c(),oe.m(i.parentNode,i)):oe&&(oe.d(1),oe=null),t[1].labels!=0?R?R.p(t,ae):(R=wl(t),R.c(),R.m(n.parentNode,n)):R&&(R.d(1),R=null),ae[0]&2&&d!==(d=(Number(t[1].size)/1024/1024/1024).toFixed(2)+"G")&&B(h,d),ye.ctx=t,ae[0]&16&&v!==(v=t[4])&&ti(v,ye)||Jl(ye,t,ae),ae[0]&2&&X!==(X=t[1].status.comments+"")&&B(K,X),ae[0]&2&&ue!==(ue=t[1].status.seeders+"")&&B(de,ue),ae[0]&2&&Se!==(Se=t[1].status.leechers+"")&&B(Ie,Se);},d(ne){me&&me.d(ne),ne&&T(e),oe&&oe.d(ne),ne&&T(i),R&&R.d(ne),ne&&T(n),ne&&T(l),ye.block.d(),ye.token=null,ye=null,ke=!1,Ce(Re);}}}function bl(t){let e,i,n=t[1].smallDescr+"",l,o;return {c(){e=M("div"),i=M("a"),l=D(n),g(i,"href",o=t[1].torrentLink),g(i,"class","svelte-rhfb99"),g(e,"class","card-description svelte-rhfb99");},m(s,r){N(s,e,r),f(e,i),f(i,l);},p(s,r){r[0]&2&&n!==(n=s[1].smallDescr+"")&&B(l,n),r[0]&2&&o!==(o=s[1].torrentLink)&&g(i,"href",o);},d(s){s&&T(e);}}}function Il(t){let e,i,n=t[1].status.toppingLevel&&yl(),l=t[14]!="NORMAL"&&nr(t);return {c(){e=M("div"),n&&n.c(),i=O(),l&&l.c(),g(e,"class","cl-tags svelte-rhfb99");},m(o,s){N(o,e,s),n&&n.m(e,null),f(e,i),l&&l.m(e,null);},p(o,s){o[1].status.toppingLevel?n?n.p(o,s):(n=yl(),n.c(),n.m(e,i)):n&&(n.d(1),n=null),o[14]!="NORMAL"&&l.p(o,s);},d(o){o&&T(e),n&&n.d(),l&&l.d();}}}function yl(t){let e,i,n;return {c(){e=M("img"),n=D(` `),G(e,"background","url(/static/media/icons.8bb5446ebbbd07050285.gif) 0 -202px"),G(e,"height","14px"),G(e,"width","14px"),ve(e.src,i=Te.ICON.PIN)||g(e,"src",i),g(e,"alt","SVG_Comment");},m(l,o){N(l,e,o),N(l,n,o);},p:te,d(l){l&&T(e),l&&T(n);}}}function nr(t){let e;return {c(){e=M("div"),e.textContent=`${t[16][t[14]]}${t[15]?" : "+t[17]()+" 小时":""}`,g(e,"class","_tag svelte-rhfb99"),$e(e,"_tag_discount_free",t[14]=="FREE"),$e(e,"_tag_discount_50",t[14]=="PERCENT_50");},m(i,n){N(i,e,n);},p:te,d(i){i&&T(e);}}}function wl(t){let e,i,n,l=(t[1].labels&1)===1&&Tl(),o=(t[1].labels&2)===2&&Nl(),s=(t[1].labels&4)===4&&kl();return {c(){e=M("div"),l&&l.c(),i=O(),o&&o.c(),n=O(),s&&s.c(),g(e,"class","cl-tags svelte-rhfb99");},m(r,a){N(r,e,a),l&&l.m(e,null),f(e,i),o&&o.m(e,null),f(e,n),s&&s.m(e,null);},p(r,a){(r[1].labels&1)===1?l||(l=Tl(),l.c(),l.m(e,i)):l&&(l.d(1),l=null),(r[1].labels&2)===2?o||(o=Nl(),o.c(),o.m(e,n)):o&&(o.d(1),o=null),(r[1].labels&4)===4?s||(s=kl(),s.c(),s.m(e,null)):s&&(s.d(1),s=null);},d(r){r&&T(e),l&&l.d(),o&&o.d(),s&&s.d();}}}function Tl(t){let e;return {c(){e=M("div"),e.textContent="DIY",g(e,"class","_tag _tag_diy svelte-rhfb99");},m(i,n){N(i,e,n);},d(i){i&&T(e);}}}function Nl(t){let e;return {c(){e=M("div"),e.textContent="国配",g(e,"class","_tag _tag_dub svelte-rhfb99");},m(i,n){N(i,e,n);},d(i){i&&T(e);}}}function kl(t){let e;return {c(){e=M("div"),e.textContent="中字",g(e,"class","_tag _tag_sub svelte-rhfb99");},m(i,n){N(i,e,n);},d(i){i&&T(e);}}}function lr(t){let e,i=t[35].message+"",n;return {c(){e=M("p"),n=D(i),G(e,"color","red");},m(l,o){N(l,e,o),f(e,n);},p(l,o){o[0]&16&&i!==(i=l[35].message+"")&&B(n,i);},d(l){l&&T(e);}}}function or(t){let e,i;return {c(){e=bt("svg"),i=bt("path"),g(i,"d","M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"),g(e,"viewBox","64 64 896 896"),g(e,"focusable","false"),g(e,"data-icon","star"),g(e,"width","1em"),g(e,"height","1em"),g(e,"fill","currentColor"),g(e,"aria-hidden","true"),G(e,"color",t[3]?"orange":"black"),g(e,"xmlns","http://www.w3.org/2000/svg");},m(n,l){N(n,e,l),f(e,i);},p(n,l){l[0]&8&&G(e,"color",n[3]?"orange":"black");},d(n){n&&T(e);}}}function sr(t){let e;return {c(){e=M("span"),e.textContent="···",G(e,"display","flex"),G(e,"align-items","center");},m(i,n){N(i,e,n);},p:te,d(i){i&&T(e);}}}function Dl(t){let e,i,n,l,o,s,r=t[10].free&&(t[1].status.discount||t[1].status.toppingLevel)&&Cl(t),a=t[10].sub_title&&t[1].smallDescr&&Al(t),c=t[10].tags&&t[1].labels!=0&&El(t),d=t[10].size_download_collect&&jl(t),h=t[10].upload_time&&Rl(t),m=t[10].statistics&&Pl(t);return {c(){r&&r.c(),e=O(),a&&a.c(),i=O(),c&&c.c(),n=O(),l=M("div"),d&&d.c(),o=O(),h&&h.c(),s=O(),m&&m.c(),g(l,"class","card-details svelte-rhfb99");},m(_,p){r&&r.m(_,p),N(_,e,p),a&&a.m(_,p),N(_,i,p),c&&c.m(_,p),N(_,n,p),N(_,l,p),d&&d.m(l,null),f(l,o),h&&h.m(l,null),f(l,s),m&&m.m(l,null);},p(_,p){_[10].free&&(_[1].status.discount||_[1].status.toppingLevel)?r?r.p(_,p):(r=Cl(_),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),_[10].sub_title&&_[1].smallDescr?a?a.p(_,p):(a=Al(_),a.c(),a.m(i.parentNode,i)):a&&(a.d(1),a=null),_[10].tags&&_[1].labels!=0?c?c.p(_,p):(c=El(_),c.c(),c.m(n.parentNode,n)):c&&(c.d(1),c=null),_[10].size_download_collect?d?d.p(_,p):(d=jl(_),d.c(),d.m(l,o)):d&&(d.d(1),d=null),_[10].upload_time?h?h.p(_,p):(h=Rl(_),h.c(),h.m(l,s)):h&&(h.d(1),h=null),_[10].statistics?m?m.p(_,p):(m=Pl(_),m.c(),m.m(l,null)):m&&(m.d(1),m=null);},d(_){r&&r.d(_),_&&T(e),a&&a.d(_),_&&T(i),c&&c.d(_),_&&T(n),_&&T(l),d&&d.d(),h&&h.d(),m&&m.d();}}}function Cl(t){let e,i,n=t[1].status.toppingLevel&&Ll(),l=t[14]!="NORMAL"&&rr(t);return {c(){e=M("div"),n&&n.c(),i=O(),l&&l.c(),g(e,"class","cl-tags svelte-rhfb99");},m(o,s){N(o,e,s),n&&n.m(e,null),f(e,i),l&&l.m(e,null);},p(o,s){o[1].status.toppingLevel?n?n.p(o,s):(n=Ll(),n.c(),n.m(e,i)):n&&(n.d(1),n=null),o[14]!="NORMAL"&&l.p(o,s);},d(o){o&&T(e),n&&n.d(),l&&l.d();}}}function Ll(t){let e,i,n;return {c(){e=M("img"),n=D(` `),G(e,"background","url(/static/media/icons.8bb5446ebbbd07050285.gif) 0 -202px"),G(e,"height","14px"),G(e,"width","14px"),ve(e.src,i=Te.ICON.PIN)||g(e,"src",i),g(e,"alt","SVG_Comment");},m(l,o){N(l,e,o),N(l,n,o);},p:te,d(l){l&&T(e),l&&T(n);}}}function rr(t){let e;return {c(){e=M("div"),e.textContent=`${t[16][t[14]]}${t[15]?" : "+t[17]()+" 小时":""}`,g(e,"class","_tag svelte-rhfb99"),$e(e,"_tag_discount_free",t[14]=="FREE"),$e(e,"_tag_discount_50",t[14]=="PERCENT_50");},m(i,n){N(i,e,n);},p:te,d(i){i&&T(e);}}}function Al(t){let e,i,n=t[1].smallDescr+"",l,o;return {c(){e=M("div"),i=M("a"),l=D(n),g(i,"href",o=t[1].torrentLink),g(i,"class","svelte-rhfb99"),g(e,"class","card-description svelte-rhfb99");},m(s,r){N(s,e,r),f(e,i),f(i,l);},p(s,r){r[0]&2&&n!==(n=s[1].smallDescr+"")&&B(l,n),r[0]&2&&o!==(o=s[1].torrentLink)&&g(i,"href",o);},d(s){s&&T(e);}}}function El(t){let e,i,n,l=(t[1].labels&1)===1&&Ol(),o=(t[1].labels&2)===2&&Sl(),s=(t[1].labels&4)===4&&zl();return {c(){e=M("div"),l&&l.c(),i=O(),o&&o.c(),n=O(),s&&s.c(),g(e,"class","cl-tags svelte-rhfb99");},m(r,a){N(r,e,a),l&&l.m(e,null),f(e,i),o&&o.m(e,null),f(e,n),s&&s.m(e,null);},p(r,a){(r[1].labels&1)===1?l||(l=Ol(),l.c(),l.m(e,i)):l&&(l.d(1),l=null),(r[1].labels&2)===2?o||(o=Sl(),o.c(),o.m(e,n)):o&&(o.d(1),o=null),(r[1].labels&4)===4?s||(s=zl(),s.c(),s.m(e,null)):s&&(s.d(1),s=null);},d(r){r&&T(e),l&&l.d(),o&&o.d(),s&&s.d();}}}function Ol(t){let e;return {c(){e=M("div"),e.textContent="DIY",g(e,"class","_tag _tag_diy svelte-rhfb99");},m(i,n){N(i,e,n);},d(i){i&&T(e);}}}function Sl(t){let e;return {c(){e=M("div"),e.textContent="国配",g(e,"class","_tag _tag_dub svelte-rhfb99");},m(i,n){N(i,e,n);},d(i){i&&T(e);}}}function zl(t){let e;return {c(){e=M("div"),e.textContent="中字",g(e,"class","_tag _tag_sub svelte-rhfb99");},m(i,n){N(i,e,n);},d(i){i&&T(e);}}}function jl(t){let e,i,n,l,o,s=(Number(t[1].size)/1024/1024/1024).toFixed(2)+"G",r,a,c,d,h,m,_,p,b,u={ctx:t,current:null,token:null,hasCatch:!0,pending:fr,then:cr,catch:ar,value:34,error:35};return ti(_=t[4],u),{c(){e=M("div"),i=M("div"),n=M("div"),l=M("span"),l.innerHTML='<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" height="25" width="25" xmlns="http://www.w3.org/2000/svg" style="vertical-align: middle; --darkreader-inline-fill: currentColor; --darkreader-inline-stroke: currentColor;"><path d="M12 5c-3.859 0-7 3.141-7 7s3.141 7 7 7 7-3.141 7-7-3.141-7-7-7zm0 12c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5z"></path><path d="M12 9c-1.627 0-3 1.373-3 3s1.373 3 3 3 3-1.373 3-3-1.373-3-3-3z"></path></svg>',o=D(` `),r=D(s),a=D(` `),c=M("div"),c.innerHTML='<span class="icon_holder svelte-rhfb99"><svg viewBox="64 64 896 896" focusable="false" data-icon="download" width="1em" height="1em" fill="currentColor" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"><path d="M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"></path></svg></span>',d=D(` `),h=M("div"),m=M("span"),u.block.c(),g(l,"class","icon_holder svelte-rhfb99"),g(n,"class","cl-btn svelte-rhfb99"),g(c,"class","cl-btn svelte-rhfb99"),G(c,"cursor","pointer"),g(m,"class","icon_holder svelte-rhfb99"),g(h,"class","cl-btn svelte-rhfb99"),G(h,"cursor","pointer"),g(i,"class","cl-center svelte-rhfb99"),g(e,"class","card-line svelte-rhfb99");},m(v,I){N(v,e,I),f(e,i),f(i,n),f(n,l),f(n,o),f(n,r),f(i,a),f(i,c),f(i,d),f(i,h),f(h,m),u.block.m(m,u.anchor=null),u.mount=()=>m,u.anchor=null,p||(b=[q(c,"click",t[19]),q(h,"click",t[20])],p=!0);},p(v,I){t=v,I[0]&2&&s!==(s=(Number(t[1].size)/1024/1024/1024).toFixed(2)+"G")&&B(r,s),u.ctx=t,I[0]&16&&_!==(_=t[4])&&ti(_,u)||Jl(u,t,I);},d(v){v&&T(e),u.block.d(),u.token=null,u=null,p=!1,Ce(b);}}}function ar(t){let e,i=t[35].message+"",n;return {c(){e=M("p"),n=D(i),G(e,"color","red");},m(l,o){N(l,e,o),f(e,n);},p(l,o){o[0]&16&&i!==(i=l[35].message+"")&&B(n,i);},d(l){l&&T(e);}}}function cr(t){let e,i;return {c(){e=bt("svg"),i=bt("path"),g(i,"d","M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"),g(e,"viewBox","64 64 896 896"),g(e,"focusable","false"),g(e,"data-icon","star"),g(e,"width","1em"),g(e,"height","1em"),g(e,"fill","currentColor"),g(e,"aria-hidden","true"),G(e,"color",t[3]?"orange":"black"),g(e,"xmlns","http://www.w3.org/2000/svg");},m(n,l){N(n,e,l),f(e,i);},p(n,l){l[0]&8&&G(e,"color",n[3]?"orange":"black");},d(n){n&&T(e);}}}function fr(t){let e;return {c(){e=M("span"),e.textContent="···",G(e,"display","flex"),G(e,"align-items","center");},m(i,n){N(i,e,n);},p:te,d(i){i&&T(e);}}}function Rl(t){let e,i,n,l,o=`${t[18].day} 日`,s,r,a=t[18].hour?`${t[18].hour} 时`:"",c;return {c(){e=M("div"),i=M("img"),l=D(` `),s=D(o),r=O(),c=D(a),ve(i.src,n=Te.ICON.TIME)||g(i,"src",n),g(i,"alt","SVG_Time"),g(e,"class","card-line cl-btn svelte-rhfb99");},m(d,h){N(d,e,h),f(e,i),f(e,l),f(e,s),f(e,r),f(e,c);},p:te,d(d){d&&T(e);}}}function Pl(t){let e,i,n,l,o,s=t[1].status.comments+"",r,a,c,d,h,m,_=t[1].status.seeders+"",p,b,u,v,I,w,y=t[1].status.leechers+"",A;return {c(){e=M("div"),i=M("img"),l=D(` `),o=M("b"),r=D(s),a=D(` `),c=M("img"),h=D(` `),m=M("b"),p=D(_),b=D(` `),u=M("img"),I=D(` `),w=M("b"),A=D(y),ve(i.src,n=Te.ICON.COMMENT)||g(i,"src",n),g(i,"alt","SVG_Comment"),ve(c.src,d=Te.ICON.SEEDERS)||g(c,"src",d),g(c,"alt","SVG_Seeders"),ve(u.src,v=Te.ICON.LEECHERS)||g(u,"src",v),g(u,"alt","SVG_Leechers"),g(e,"class","card-line svelte-rhfb99");},m(j,E){N(j,e,E),f(e,i),f(e,l),f(e,o),f(o,r),f(e,a),f(e,c),f(e,h),f(e,m),f(m,p),f(e,b),f(e,u),f(e,I),f(e,w),f(w,A);},p(j,E){E[0]&2&&s!==(s=j[1].status.comments+"")&&B(r,s),E[0]&2&&_!==(_=j[1].status.seeders+"")&&B(p,_),E[0]&2&&y!==(y=j[1].status.leechers+"")&&B(A,y);},d(j){j&&T(e);}}}function ur(t){let e,i,n,l,o,s,r=Te.CATEGORY_NAME[t[1].category]+"",a,c,d,h,m,_,p,b=t[0]+1+"",u,v,I,w,y,A,j=(t[10].title||t[5])&&pl(t);function E(S,Y){return S[6]?xs:er}let z=E(t),k=z(t),C=t[11]&&vl(),L=(t[10].all||t[5])&&Ml(t),P=!(t[10].all||t[5])&&Dl(t);return {c(){e=M("div"),i=M("div"),n=M("div"),l=M("img"),s=O(),a=D(r),d=O(),j&&j.c(),h=O(),m=M("div"),k.c(),_=O(),p=M("div"),u=D(b),v=O(),C&&C.c(),I=O(),L&&L.c(),w=O(),P&&P.c(),g(l,"class","card_category-img svelte-rhfb99"),ve(l.src,o=t[1]._categoryImg)||g(l,"src",o),g(l,"alt",""),g(n,"class","card-category svelte-rhfb99"),g(n,"data-href",c=`https://${location.host}/browse?cat=`+t[1].category),G(n,"background-color",t[23]??"transparent"),G(n,"color",t[23]?dr(t[23]):"black"),g(p,"class","card-index svelte-rhfb99"),g(m,"class","card-image svelte-rhfb99"),g(i,"class","card-holder svelte-rhfb99"),G(i,"background","linear-gradient (to bottom, "+(t[23]??Wt)+" 18px, rgba(255, 255, 255, 0.4) 18px, rgba(255, 255, 255, 0))"),g(e,"class","card svelte-rhfb99"),G(e,"display",t[1].category=="440"&&t[8].mt.hide_gay?"none":"block"),G(e,"width",t[2]+"px"),G(e,"z-index",1e4-t[0]),G(e,"border-color",t[23]??Wt),G(e,"background-color",t[9]),G(e,"background","linear-gradient( to bottom, "+(t[23]??Wt)+" 18px, "+t[9]+" 18px)");},m(S,Y){N(S,e,Y),f(e,i),f(i,n),f(n,l),f(n,s),f(n,a),f(i,d),j&&j.m(i,null),f(i,h),f(i,m),k.m(m,null),f(m,_),f(m,p),f(p,u),f(m,v),C&&C.m(m,null),f(i,I),L&&L.m(i,null),f(i,w),P&&P.m(i,null),t[25](e),y||(A=[q(m,"click",t[13]),q(i,"mouseenter",t[21]),q(i,"mouseleave",t[22])],y=!0);},p(S,Y){Y[0]&2&&!ve(l.src,o=S[1]._categoryImg)&&g(l,"src",o),Y[0]&2&&r!==(r=Te.CATEGORY_NAME[S[1].category]+"")&&B(a,r),Y[0]&2&&c!==(c=`https://${location.host}/browse?cat=`+S[1].category)&&g(n,"data-href",c),S[10].title||S[5]?j?j.p(S,Y):(j=pl(S),j.c(),j.m(i,h)):j&&(j.d(1),j=null),z===(z=E(S))&&k?k.p(S,Y):(k.d(1),k=z(S),k&&(k.c(),k.m(m,_))),Y[0]&1&&b!==(b=S[0]+1+"")&&B(u,b),S[11]?C?C.p(S,Y):(C=vl(),C.c(),C.m(m,null)):C&&(C.d(1),C=null),S[10].all||S[5]?L?L.p(S,Y):(L=Ml(S),L.c(),L.m(i,w)):L&&(L.d(1),L=null),S[10].all||S[5]?P&&(P.d(1),P=null):P?P.p(S,Y):(P=Dl(S),P.c(),P.m(i,null)),Y[0]&258&&G(e,"display",S[1].category=="440"&&S[8].mt.hide_gay?"none":"block"),Y[0]&4&&G(e,"width",S[2]+"px"),Y[0]&1&&G(e,"z-index",1e4-S[0]),Y[0]&512&&G(e,"background-color",S[9]),Y[0]&512&&G(e,"background","linear-gradient( to bottom, "+(S[23]??Wt)+" 18px, "+S[9]+" 18px)");},i:te,o:te,d(S){S&&T(e),j&&j.d(),k.d(),C&&C.d(),L&&L.d(),P&&P.d(),t[25](null),y=!1,Ce(A);}}}const Wt="rgba(255, 255, 255, 0.5)";function dr(t){const e=t.replace("#",""),i=parseInt(e.substr(0,2),16),n=parseInt(e.substr(2,2),16),l=parseInt(e.substr(4,2),16);return (i*299+n*587+l*114)/1e3<128?"white":"black"}function _r(t,e,i){let n,l,o,s,r,a;F(t,it,Q=>i(26,n=Q)),F(t,Be,Q=>i(27,l=Q)),F(t,Ft,Q=>i(8,o=Q)),F(t,Tt,Q=>i(9,s=Q)),F(t,qe,Q=>i(10,r=Q)),F(t,vt,Q=>i(11,a=Q));function c(Q,W,fe){if(!Te.API[Q]){console.warn(`没有名为 ${Q} 的 API 接口.`);return}const he=location.origin+Te.API[Q].url,ue=Te.API[Q].method;fetch(he,{method:ue,body:W}).then(de=>de.json()).then(de=>{fe(de);}).catch(de=>console.error(de));}window.fetchData=c;function d(){we();}function h(){pe(Be,l=1,l),pe(it,n=_.torrentLink+"#kdescr",n),pe(it,n=`https://${location.host}/detail/`+_.id,n);}let{index:m}=e,{torrentInfo:_}=e,{cardWidth:p}=e;const b=_.status.discount,u=_.status.discountEndTime,v={FREE:"免费",PERCENT_50:"50%"},I=()=>{const Q=new Date,W=new Date(u);return Math.floor((W.getTime()-Q.getTime())/(1e3*3600))},w=_.status.createdDate,A=(()=>{const Q=new Date,W=new Date(w),fe=Q.getTime()-W.getTime(),he=Math.floor(fe/(1e3*3600*24)),ue=Math.floor(fe%(1e3*3600*24)/(1e3*3600));return {day:he,hour:ue}})();function j(){const Q=new FormData;Q.append("id",_.id),c("genDlToken",Q,W=>{console.log(W),W.data&&window.open(W.data,"_blank");});}let E=!!_.collection;const z=new FormData;z.append("id",_.id),z.append("make",!E);let k;async function C(Q,W,fe){if(!Te.API[Q]){console.warn(`没有名为 ${Q} 的 API 接口.`);return}const he=location.origin+Te.API[Q].url,ue=Te.API[Q].method,de=await fetch(he,{method:ue,body:W}),be=await de.json();if(de.ok)return fe(be),be;throw new Error(be)}function L(){i(4,k=C("collection",z,P));}function P(Q){console.log(Q),i(3,E=!E);}let S=!1;function Y(){i(5,S=!0),i(7,X.style.boxShadow=` ${U??Wt} 5px 5px 0px, rgba(0, 0, 0, 0.1) -1px -1px 0px`,X);}function Me(){i(5,S=!1),i(7,X.style.boxShadow="",X);}let ie=!1;const U=Te.CATEGORY_COLOR[_.category];let X;const K=()=>{i(6,ie=!0);};function re(Q){je[Q?"unshift":"push"](()=>{X=Q,i(7,X);});}return t.$$set=Q=>{"index"in Q&&i(0,m=Q.index),"torrentInfo"in Q&&i(1,_=Q.torrentInfo),"cardWidth"in Q&&i(2,p=Q.cardWidth);},[m,_,p,E,k,S,ie,X,o,s,r,a,d,h,b,u,v,I,A,j,L,Y,Me,U,K,re]}class gr extends lt{constructor(e){super(),nt(this,e,_r,ur,tt,{index:0,torrentInfo:1,cardWidth:2},null,[-1,-1]);}}function Hl(t,e,i){const n=t.slice();return n[32]=e[i],n[34]=i,n}function Yl(t){let e,i,n;return {c(){e=M("div"),e.innerHTML='<div class="loading_SubHolder svelte-11rmzun"><div class="loading_Text svelte-11rmzun">页面切换加载中...</div></div>',g(e,"class","loading_Holder svelte-11rmzun");},m(l,o){N(l,e,o),n=!0;},i(l){n||(It(()=>{n&&(i||(i=yt(e,wt,{duration:600},!0)),i.run(1));}),n=!0);},o(l){i||(i=yt(e,wt,{duration:600},!1)),i.run(0),n=!1;},d(l){l&&T(e),l&&i&&i.end();}}}function Gl(t,e){let i,n,l;return n=new gr({props:{index:e[34],torrentInfo:e[32],cardWidth:e[0].CARD_WIDTH}}),{key:t,first:null,c(){i=We(),ze(n.$$.fragment),this.first=i;},m(o,s){N(o,i,s),Ae(n,o,s),l=!0;},p(o,s){e=o;const r={};s[0]&8&&(r.index=e[34]),s[0]&8&&(r.torrentInfo=e[32]),s[0]&1&&(r.cardWidth=e[0].CARD_WIDTH),n.$set(r);},i(o){l||(J(n.$$.fragment,o),l=!0);},o(o){ee(n.$$.fragment,o),l=!1;},d(o){o&&T(i),Ee(n,o);}}}function mr(t){let e,i,n=[],l=new Map,o,s=!t[1]&&Yl(),r=t[3];const a=c=>c[32].id;for(let c=0;c<r.length;c+=1){let d=Hl(t,r,c),h=a(d);l.set(h,n[c]=Gl(h,d));}return {c(){e=M("div"),s&&s.c(),i=O();for(let c=0;c<n.length;c+=1)n[c].c();g(e,"class","svelte-11rmzun"),$e(e,"masonry_Holder_unload_1st",!t[1]&&t[2]),$e(e,"masonry_Holder_loaded_1st",t[1]&&t[2]),$e(e,"masonry_Holder_unloaded",!t[1]&&!t[2]),$e(e,"masonry_Holder_loaded",t[1]&&!t[2]);},m(c,d){N(c,e,d),s&&s.m(e,null),f(e,i);for(let h=0;h<n.length;h+=1)n[h]&&n[h].m(e,null);o=!0;},p(c,d){c[1]?s&&(xe(),ee(s,1,1,()=>{s=null;}),et()):s?d[0]&2&&J(s,1):(s=Yl(),s.c(),J(s,1),s.m(e,i)),d[0]&9&&(r=c[3],xe(),n=Ni(n,d,a,1,c,r,l,e,Ti,Gl,null,Hl),et()),(!o||d[0]&6)&&$e(e,"masonry_Holder_unload_1st",!c[1]&&c[2]),(!o||d[0]&6)&&$e(e,"masonry_Holder_loaded_1st",c[1]&&c[2]),(!o||d[0]&6)&&$e(e,"masonry_Holder_unloaded",!c[1]&&!c[2]),(!o||d[0]&6)&&$e(e,"masonry_Holder_loaded",c[1]&&!c[2]);},i(c){if(!o){J(s);for(let d=0;d<r.length;d+=1)J(n[d]);o=!0;}},o(c){ee(s);for(let d=0;d<n.length;d+=1)ee(n[d]);o=!1;},d(c){c&&T(e),s&&s.d();for(let d=0;d<n.length;d+=1)n[d].d();}}}function hi(t=location.href){let e=t;t.indexOf("/browse")==0&&(e=location.origin+t),console.log(`url 补全: ${e}`);let i=new URL(e),n=i.pathname.split("/")[2],l=i.searchParams.getAll("cat"),o=i.searchParams.getAll("stand"),s={};return n!==void 0?s.mode=n:s.mode="normal",l!==void 0&&(s.categories=l),o!==void 0&&(s.standards=o),console.log(s),s}function hr(t,e,i){let n,l,o,s,r,a,c;F(t,jt,U=>i(11,n=U)),F(t,Bt,U=>i(12,l=U)),F(t,Qt,U=>i(8,o=U)),F(t,Vt,U=>i(9,s=U)),F(t,Rt,U=>i(13,r=U)),F(t,Tt,U=>i(14,a=U)),F(t,Lt,U=>i(15,c=U));let{waterfallNode:d}=e,{waterfallParentNode:h}=e,{update_ORIGIN_TL_Node:m}=e;const _=location.origin+Te.API.search.url;window.NEXUS_TOOLS=Dt;let p,b=!1,u=!0;h.style.height="116px",pe(Lt,c=Kt(),c);const v=to();pe(Tt,a=v,a),console.log("背景颜色:",v);const I=Ct();function w(){const U=document.querySelector(I),X=document.querySelector(".nextPage"),K=document.querySelector(".waterfall.waterfall_newMT");U&&(U.style.display=n?"none":"block"),X.style.display=n?"block":"none",K.style.display=n?"block":"none";}function y(){w(),A(o.column,o.gap),we("fast"),we("fast");}window.CHANGE_CARD_LAYOUT=y;function A(U,X=10){if(U<=1||X<=1){console.warn("卡片列数或卡片间隔过小, 列数不小于2, 间隔不小于1");return}const re=(document.querySelector("div.waterfall").clientWidth-(U-1)*X)/U;return Array.from(document.querySelectorAll(".card")).forEach(Q=>Q.style.width=re+"px"),p&&(i(7,p.options.columnWidth=re,p),i(7,p.options.gutter=X,p),p.layout()),re}let j=[];function E(){console.log("当前页面 path: ",location.pathname);const X={pageNumber:1,pageSize:k(),visible:1};Object.assign(X,hi()),fetch(_,{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},body:JSON.stringify(X)}).then(K=>K.json()).then(K=>{console.log(K);const re=K.data.data;i(3,j=[...re]);}).then(()=>{p.reloadItems(),i(2,u=!1),i(1,b=!0),i(4,h.style.height="auto",h),p.once("layoutComplete",()=>{Dt();});}).catch(K=>{console.error("网络请求错误:",K);});}function z(U,X=null){console.log("当前页面 path: ",location.pathname),fetch(_,{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},body:JSON.stringify(U)}).then(K=>K.json()).then(K=>{console.log(K);const re=K.data.data;i(3,j=[...re]);}).then(()=>{p.reloadItems(),i(1,b=!0),p.once("layoutComplete",()=>{Dt();}),X&&X();}).catch(K=>{console.error("网络请求错误:",K);});}function k(){const U=$l("persist:persist").sysinfo;return !U.pageSize||!U.pageSize.torrent?50:Number(U.pageSize.torrent)}const C=history.pushState;function L(){history.pushState=function(U,X,K){if(i(1,b=!1),console.log(`%c ====> URL跳转劫持: %c${K}`,"color: cyan","color: white"),K.includes("/browse")||K=="/browse"){console.log("--->属于 browse 范围, search 启动"),i(4,h.style.display="block",h);const re=hi(K),W={pageNumber:1,pageSize:k(),visible:1};Object.assign(W,re),z(W,m),w();}else i(4,h.style.display="none",h),document.querySelector(I).style.display="block";C.apply(history,arguments);};}x.$setPage(1);let P;P=Kl(Me,x.GAP);const S=document.querySelector(".ant-layout");function Y(){const U=S.scrollHeight,X=S.clientHeight;(S.scrollTop||S.scrollTop)+X>=U-x.DISTANCE_newMT&&(r?P():console.log("加载模式: 按钮"),we());}function Me(){const U={pageNumber:x.$getCurrentPage()+1,pageSize:k(),visible:1};Object.assign(U,hi()),fetch(_,{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},body:JSON.stringify(U)}).then(X=>X.json()).then(X=>{console.log(X);const K=X.data.data;i(3,j=[...j,...K]);}).then(()=>{p.reloadItems(),p.once("layoutComplete",()=>{Dt();}),x.$turnPage();}).catch(X=>{console.error("网络请求错误:",X);});}function ie(){r||P();}return window.$$$turnPage=ie,ni(()=>{i(7,p=new Masonry(d,{itemSelector:".card",columnWidth:A(o.column,o.gap),gutter:o.gap,transitionDuration:s?.4:0})),A(o.column,o.gap),window.masonry=p,pe(Bt,l=p,l),p.layout("fast"),p.layout("fast"),d.addEventListener("click",U=>{U.target===U.currentTarget&&(p&&p.layout(),console.log("Masonry 已整理~"));}),S.addEventListener("scroll",function(){n&&Y();}),E(),L();}),t.$$set=U=>{"waterfallNode"in U&&i(5,d=U.waterfallNode),"waterfallParentNode"in U&&i(4,h=U.waterfallParentNode),"update_ORIGIN_TL_Node"in U&&i(6,m=U.update_ORIGIN_TL_Node);},t.$$.update=()=>{t.$$.dirty[0]&640&&p&&i(7,p.options.transitionDuration=s?"0.4s":"0",p),t.$$.dirty[0]&385&&p&&(i(0,Mt.CARD_WIDTH=A(o.column,o.gap),Mt),console.log("卡片宽度: ",Mt.CARD_WIDTH),y());},[Mt,b,u,j,h,d,m,p,o,s]}class pr extends lt{constructor(e){super(),nt(this,e,hr,mr,tt,{waterfallNode:5,waterfallParentNode:4,update_ORIGIN_TL_Node:6},null,[-1,-1]);}}const{window:vr}=Lo;function Wl(t){let e,i,n,l,o,s,r,a,c,d;return {c(){e=M("div"),i=M("div"),n=M("iframe"),o=O(),s=M("div"),s.innerHTML='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_iconCarrier"><circle cx="12" cy="12" r="10" stroke="#1C274C" stroke-width="1.5"></circle><path d="M14.5 9.50002L9.5 14.5M9.49998 9.5L14.5 14.5" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round"></path></g></svg>',ve(n.src,l=t[1])||g(n,"src",l),g(n,"frameborder","0"),g(n,"title","wow"),G(n,"width",(Ze[t[2]]?Ze[t[2]].Iframe_Width:1e3)+"px"),g(n,"class","svelte-12ghpfg"),g(s,"class","_iframeCloseBtn svelte-12ghpfg"),g(i,"class","_iframe svelte-12ghpfg"),g(e,"id","_iframe"),g(e,"class","svelte-12ghpfg");},m(h,m){N(h,e,m),f(e,i),f(i,n),f(i,o),f(i,s),a=!0,c||(d=[q(s,"click",t[3]),q(e,"click",t[3])],c=!0);},p(h,m){(!a||m&2&&!ve(n.src,l=h[1]))&&g(n,"src",l),(!a||m&4)&&G(n,"width",(Ze[h[2]]?Ze[h[2]].Iframe_Width:1e3)+"px");},i(h){a||(It(()=>{a&&(r||(r=yt(e,wt,{duration:300},!0)),r.run(1));}),a=!0);},o(h){r||(r=yt(e,wt,{duration:300},!1)),r.run(0),a=!1;},d(h){h&&T(e),h&&r&&r.end(),c=!1,Ce(d);}}}function Mr(t){let e,i,n,l,o=t[0]&&Wl(t);return {c(){o&&o.c(),e=We();},m(s,r){o&&o.m(s,r),N(s,e,r),i=!0,n||(l=q(vr,"keydown",t[4],!0),n=!0);},p(s,[r]){s[0]?o?(o.p(s,r),r&1&&J(o,1)):(o=Wl(s),o.c(),J(o,1),o.m(e.parentNode,e)):o&&(xe(),ee(o,1,1,()=>{o=null;}),et());},i(s){i||(J(o),i=!0);},o(s){ee(o),i=!1;},d(s){o&&o.d(s),s&&T(e),n=!1,l();}}}function lo(t,e=5,i=200,n=l=>{}){const l=document.querySelector(t);if(l)return n(l),l;e>0?setTimeout(()=>{lo(t,e-1,i,n);},i):console.log(`无法找到元素: ${t}`);}function br(t,e,i){let n,l,o,s,r;F(t,pt,b=>i(9,n=b)),F(t,Be,b=>i(0,l=b)),F(t,jt,b=>i(10,o=b)),F(t,it,b=>i(1,s=b)),F(t,Lt,b=>i(2,r=b)),console.log(`[${new Date().toLocaleTimeString()}]<----------------------HMR_NewMT---------------------->`);let a=document.querySelector(Ct());window._ORIGIN_TL_Node=a;function c(){console.log("--------> 更新 _ORIGIN_TL_Node"),document.querySelector(Ct())!=a&&(console.log("--------> 已替换 _ORIGIN_TL_Node"),a=document.querySelector(Ct()),a.style.display=o?"none":"block");}function d(){pe(Be,l=0,l);}function h(b){b.key==="Escape"&&(console.log(b),pe(Be,l=0,l),pe(pt,n=!1,n));}for(;!Masonry;)console.log("等待初始化......");let m,_,p;return lo(".ant-card.ant-card-small",5,200,b=>{const u=b.parentNode;m=document.createElement("div"),m.classList.add("waterfall"),m.classList.add("waterfall_newMT"),_=document.createElement("div"),_.classList.add("waterfallParent"),_.append(m),u.insertBefore(_,b.nextSibling),p=document.createElement("div"),p.classList.add("nextPage"),_.append(p),new xl({target:document.body}),new pr({target:m,props:{waterfallNode:m,waterfallParentNode:_,update_ORIGIN_TL_Node:c}}),new no({target:p});}),[l,s,r,d,h]}class Ir extends lt{constructor(e){super(),nt(this,e,br,Mr,tt,{});}}console.log("________PT-TorrentList-Masonry________");if(Ts()=="NEW_MT")location.pathname.includes("/browse")&&new Ir({target:(()=>{const t=document.createElement("div");return document.body.append(t),t})()}),new Ko({target:document.body});else {const t=Ct(),e=document.querySelector(t);t&&e?new Xs({target:(()=>{const i=document.createElement("div");return document.body.append(i),i})()}):console.log("未识别到种子列表捏~");} })();