// ==UserScript==
// @name PT种子列表瀑布流视图(Svelte重构)
// @name:en PT_Masonry_View_Svelte
// @namespace https://github.com/KesaubeEire/PT_Masonry_View_Svelte
// @version 1.1.13b
// @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://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*
// @exclude *m-team*/detail/*
// @grant none
// ==/UserScript==
(t=>{const e=document.createElement("style");e.dataset.source="vite-plugin-monkey",e.textContent=t,document.head.append(e)})(' 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-popup{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-gqty0r.svelte-gqty0r{position:fixed;opacity:.4;margin:4px 2px;border-radius:8px;overflow:hidden;z-index:40000;border:2px solid transparent}.sideP.svelte-gqty0r.svelte-gqty0r:hover{opacity:1;border:2px solid yellow}.sideP__title.svelte-gqty0r.svelte-gqty0r{width:100%;height:8px;background-color:#ff0}.sideP__title.svelte-gqty0r.svelte-gqty0r:hover{cursor:move}.sideP__out.svelte-gqty0r.svelte-gqty0r{display:flex;flex-direction:column}.sideP__btn.svelte-gqty0r.svelte-gqty0r{width:72px;font-size:14px;background-color:gray;color:#fff;padding:4px 8px;margin:4px;border-radius:8px;cursor:pointer;border:none}.sideP__btn.svelte-gqty0r.svelte-gqty0r:hover{background-color:#6531ff}.configP.svelte-gqty0r.svelte-gqty0r{position:fixed;left:0;top:0;width:100vw;height:100vh;padding:0;margin:0;z-index:50000;color:#000;background-color:#0003}.configP_holder.svelte-gqty0r.svelte-gqty0r{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-gqty0r.svelte-gqty0r::-webkit-scrollbar{display:none}.configP_title.svelte-gqty0r.svelte-gqty0r{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-gqty0r.svelte-gqty0r p{font-size:18px;font-weight:500}.configP_title.svelte-gqty0r.svelte-gqty0r button{border:none;padding:0;margin:0;background-color:transparent}.section.svelte-gqty0r.svelte-gqty0r{margin:16px 18px}.section.svelte-gqty0r.svelte-gqty0r button{border-radius:10px;margin:4px;padding:12px 16px}.section.svelte-gqty0r.svelte-gqty0r .s_title{text-align:center}.section.svelte-gqty0r.svelte-gqty0r .s_panel{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center}.section.svelte-gqty0r.svelte-gqty0r .s_checkbox{padding:12px;margin:4px;border-radius:10px;border:1px solid black;font-size:14px;display:flex;align-items:center}.section.svelte-gqty0r.svelte-gqty0r h1{font-size:14pt}.configP_holder.svelte-gqty0r .section.svelte-gqty0r:nth-child(2){margin-top:48px}#reset_panel_pos.svelte-gqty0r.svelte-gqty0r{width:100%;text-align:center;border:1px solid black;border-radius:16px}.card.svelte-1d0ss3t.svelte-1d0ss3t{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-1d0ss3t.svelte-1d0ss3t:hover{box-shadow:#7300ff4d 5px 5px,#0000001a -1px -1px}.card-title.svelte-1d0ss3t.svelte-1d0ss3t{padding:2px 0}.card-holder.svelte-1d0ss3t.svelte-1d0ss3t{background-color:#ffffff80;background:linear-gradient(to bottom,rgba(255,255,255,.4),rgba(255,255,255,0))}.card-category.svelte-1d0ss3t.svelte-1d0ss3t{text-align:center;letter-spacing:2px;font-weight:700}.card-line.svelte-1d0ss3t.svelte-1d0ss3t{margin-top:1px;margin-bottom:1px;display:flex;justify-content:space-evenly;align-items:center;height:20px}.two-lines.svelte-1d0ss3t.svelte-1d0ss3t{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .3s}.two-lines.svelte-1d0ss3t.svelte-1d0ss3t:hover{-webkit-line-clamp:100}.cl-center.svelte-1d0ss3t.svelte-1d0ss3t{display:flex;justify-content:space-evenly;align-items:center}.cl-tags.svelte-1d0ss3t.svelte-1d0ss3t{display:flex;justify-content:left;align-items:center;flex-wrap:wrap;gap:2px;transform:translate(4px)}.cl-tags.svelte-1d0ss3t.svelte-1d0ss3t:has(span){padding-top:2px}.card-details.svelte-1d0ss3t.svelte-1d0ss3t{display:flex;justify-content:center;align-items:center;flex-direction:column}.card-image.svelte-1d0ss3t.svelte-1d0ss3t{height:100%;position:relative}.card-image.svelte-1d0ss3t img.svelte-1d0ss3t{width:100%;object-fit:cover;margin-bottom:-3px}.card-alter.svelte-1d0ss3t.svelte-1d0ss3t{text-align:center;height:20px;display:flex;justify-content:center;align-items:center}.top_and_free.svelte-1d0ss3t.svelte-1d0ss3t{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-1d0ss3t.svelte-1d0ss3t{color:#00f}._2XFree.svelte-1d0ss3t.svelte-1d0ss3t{color:green}.card-description.svelte-1d0ss3t.svelte-1d0ss3t{padding-left:4px;padding-right:4px}.card-index.svelte-1d0ss3t.svelte-1d0ss3t{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-1d0ss3t.svelte-1d0ss3t{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-1d0ss3t.svelte-1d0ss3t:hover{opacity:1}.btnCollet.svelte-1d0ss3t.svelte-1d0ss3t{padding:1px 2px;cursor:pointer}.hot.svelte-1d0ss3t.svelte-1d0ss3t,.new.svelte-1d0ss3t.svelte-1d0ss3t{padding:0 2px;border-radius:8px;background:white;margin:2px}#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-1exar3b.svelte-1exar3b{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#0026269b;z-index:30000;display:flex}div._iframe.svelte-1exar3b.svelte-1exar3b{height:96%;margin:auto;position:relative}div._iframe.svelte-1exar3b iframe.svelte-1exar3b{height:100%;border-radius:20px}._iframeCloseBtn.svelte-1exar3b.svelte-1exar3b{width:40px;height:40px;background:white;position:absolute;top:10px;right:10px;border-radius:40px;transition:all .5s}._iframeCloseBtn.svelte-1exar3b.svelte-1exar3b:hover{opacity:.7;transform:scale(1.2)}._iframeCloseBtn.svelte-1exar3b.svelte-1exar3b:active{opacity:.9;transform:scale(1.9)} ');
(function () {
'use strict';
function B(){}const bl=t=>t;function go(t,e){for(const i in e)t[i]=e[i];return t}function _o(t){return !!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}function Dl(t){return t()}function on(){return Object.create(null)}function Ae(t){t.forEach(Dl);}function vi(t){return typeof t=="function"}function Pe(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Xt;function De(t,e){return Xt||(Xt=document.createElement("a")),Xt.href=e,t===Xt.href}function ho(t){return Object.keys(t).length===0}function Ll(t,...e){if(t==null)return B;const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function it(t){let e;return Ll(t,i=>e=i)(),e}function X(t,e,i){t.$$.on_destroy.push(Ll(e,i));}function mo(t,e,i,n){if(t){const l=Tl(t,e,i,n);return t[0](l)}}function Tl(t,e,i,n){return t[1]&&n?go(i.ctx.slice(),t[1](n(e))):i.ctx}function po(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 Io(t,e,i,n,l,o){if(l){const s=Tl(e,i,n,o);t.p(s,l);}}function Mo(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 me(t,e,i){return t.set(i),e}const Al=typeof window<"u";let No=Al?()=>window.performance.now():()=>Date.now(),wi=Al?t=>requestAnimationFrame(t):B;const jt=new Set;function Cl(t){jt.forEach(e=>{e.c(t)||(jt.delete(e),e.f());}),jt.size!==0&&wi(Cl);}function yo(t){let e;return jt.size===0&&wi(Cl),{promise:new Promise(i=>{jt.add(e={c:t,f:i});}),abort(){jt.delete(e);}}}const vo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function g(t,e){t.appendChild(e);}function El(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function wo(t){const e=N("style");return bo(El(t),e),e.sheet}function bo(t,e){return g(t.head||t,e),e.sheet}function D(t,e,i){t.insertBefore(e,i||null);}function b(t){t.parentNode&&t.parentNode.removeChild(t);}function Sl(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e);}function N(t){return document.createElement(t)}function he(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function z(t){return document.createTextNode(t)}function k(){return z(" ")}function nt(){return z("")}function $(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Do(t){return function(e){e.target===this&&t.call(this,e);}}function a(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i);}function ci(t){return t===""?null:+t}function Lo(t){return Array.from(t.childNodes)}function q(t,e){e=""+e,t.data!==e&&(t.data=e);}function Rt(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 ot(t,e,i){t.classList[i?"add":"remove"](e);}function To(t,e,{bubbles:i=!1,cancelable:n=!1}={}){const l=document.createEvent("CustomEvent");return l.initCustomEvent(t,i,n,e),l}class Oe{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=he(i.nodeName):this.e=N(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)D(this.t,this.n[i],e);}p(e){this.d(),this.h(e),this.i(this.a);}d(){this.n.forEach(b);}}const $t=new Map;let Kt=0;function Ao(t){let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return e>>>0}function Co(t,e){const i={stylesheet:wo(e),rules:{}};return $t.set(t,i),i}function sn(t,e,i,n,l,o,s,r=0){const f=16.666/n;let c=`{
`;for(let u=0;u<=1;u+=f){const h=e+(i-e)*o(u);c+=u*100+`%{${s(h,1-h)}}
`;}const d=c+`100% {${s(i,1-i)}}
}`,p=`__svelte_${Ao(d)}_${r}`,_=El(t),{stylesheet:I,rules:m}=$t.get(_)||Co(_,t);m[p]||(m[p]=!0,I.insertRule(`@keyframes ${p} ${d}`,I.cssRules.length));const M=t.style.animation||"";return t.style.animation=`${M?`${M}, `:""}${p} ${n}ms linear ${l}ms 1 both`,Kt+=1,p}function Eo(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(", "),Kt-=l,Kt||So());}function So(){wi(()=>{Kt||($t.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&b(e);}),$t.clear());});}let Zt;function ct(t){Zt=t;}function ei(){if(!Zt)throw new Error("Function called outside component initialization");return Zt}function ti(t){ei().$$.on_mount.push(t);}function ko(t){ei().$$.after_update.push(t);}function kl(t){ei().$$.on_destroy.push(t);}const kt=[],je=[];let zt=[];const hi=[],jo=Promise.resolve();let mi=!1;function zo(){mi||(mi=!0,jo.then(bi));}function It(t){zt.push(t);}function Fe(t){hi.push(t);}const ui=new Set;let Et=0;function bi(){if(Et!==0)return;const t=Zt;do{try{for(;Et<kt.length;){const e=kt[Et];Et++,ct(e),Oo(e.$$);}}catch(e){throw kt.length=0,Et=0,e}for(ct(null),kt.length=0,Et=0;je.length;)je.pop()();for(let e=0;e<zt.length;e+=1){const i=zt[e];ui.has(i)||(ui.add(i),i());}zt.length=0;}while(kt.length);for(;hi.length;)hi.pop()();mi=!1,ui.clear(),ct(t);}function Oo(t){if(t.fragment!==null){t.update(),Ae(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(It);}}function Po(t){const e=[],i=[];zt.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),zt=e;}let Qt;function Ro(){return Qt||(Qt=Promise.resolve(),Qt.then(()=>{Qt=null;})),Qt}function fi(t,e,i){t.dispatchEvent(To(`${e?"intro":"outro"}${i}`));}const Jt=new Set;let ut;function Ve(){ut={r:0,c:[],p:ut};}function xe(){ut.r||Ae(ut.c),ut=ut.p;}function Y(t,e){t&&t.i&&(Jt.delete(t),t.i(e));}function Z(t,e,i,n){if(t&&t.o){if(Jt.has(t))return;Jt.add(t),ut.c.push(()=>{Jt.delete(t),n&&(i&&t.d(1),n());}),t.o(e);}else n&&n();}const Yo={duration:0};function Mt(t,e,i,n){const l={direction:"both"};let o=e(t,i,l),s=n?0:1,r=null,f=null,c=null;function d(){c&&Eo(t,c);}function p(I,m){const M=I.b-s;return m*=Math.abs(M),{a:s,b:I.b,d:M,duration:m,start:I.start,end:I.start+m,group:I.group}}function _(I){const{delay:m=0,duration:M=300,easing:u=bl,tick:h=B,css:y}=o||Yo,v={start:No()+m,b:I};I||(v.group=ut,ut.r+=1),r||f?f=v:(y&&(d(),c=sn(t,s,I,M,m,u,y)),I&&h(0,1),r=p(v,M),It(()=>fi(t,I,"start")),yo(w=>{if(f&&w>f.start&&(r=p(f,M),f=null,fi(t,r.b,"start"),y&&(d(),c=sn(t,s,r.b,r.duration,0,u,o.css))),r){if(w>=r.end)h(s=r.b,1-s),fi(t,r.b,"end"),f||(r.b?d():--r.group.r||Ae(r.group.c)),r=null;else if(w>=r.start){const S=w-r.start;s=r.a+r.d*u(S/r.duration),h(s,1-s);}}return !!(r||f)}));}return {run(I){vi(o)?Ro().then(()=>{o=o(l),_(I);}):_(I);},end(){d(),r=f=null;}}}function qt(t,e){const i=e.token={};function n(l,o,s,r){if(e.token!==i)return;e.resolved=r;let f=e.ctx;s!==void 0&&(f=f.slice(),f[s]=r);const c=l&&(e.current=l)(f);let d=!1;e.block&&(e.blocks?e.blocks.forEach((p,_)=>{_!==o&&p&&(Ve(),Z(p,1,1,()=>{e.blocks[_]===p&&(e.blocks[_]=null);}),xe());}):e.block.d(1),c.c(),Y(c,1),c.m(e.mount(),e.anchor),d=!0),e.block=c,e.blocks&&(e.blocks[o]=c),d&&bi();}if(_o(t)){const l=ei();if(t.then(o=>{ct(l),n(e.then,1,e.value,o),ct(null);},o=>{if(ct(l),n(e.catch,2,e.error,o),ct(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 zl(t,e){Z(t,1,1,()=>{e.delete(t.key);});}function Ol(t,e,i,n,l,o,s,r,f,c,d,p){let _=t.length,I=o.length,m=_;const M={};for(;m--;)M[t[m].key]=m;const u=[],h=new Map,y=new Map,v=[];for(m=I;m--;){const L=p(l,o,m),R=i(L);let A=s.get(R);A?n&&v.push(()=>A.p(L,e)):(A=c(R,L),A.c()),h.set(R,u[m]=A),R in M&&y.set(R,Math.abs(m-M[R]));}const w=new Set,S=new Set;function C(L){Y(L,1),L.m(r,d),s.set(L.key,L),d=L.first,I--;}for(;_&&I;){const L=u[I-1],R=t[_-1],A=L.key,j=R.key;L===R?(d=L.first,_--,I--):h.has(j)?!s.has(A)||w.has(A)?C(L):S.has(j)?_--:y.get(A)>y.get(j)?(S.add(A),C(L)):(w.add(j),_--):(f(R,s),_--);}for(;_--;){const L=t[_];h.has(L.key)||f(L,s);}for(;I;)C(u[I-1]);return Ae(v),u}function Xe(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]));}function re(t){t&&t.c();}function le(t,e,i,n){const{fragment:l,after_update:o}=t.$$;l&&l.m(e,i),n||It(()=>{const s=t.$$.on_mount.map(Dl).filter(vi);t.$$.on_destroy?t.$$.on_destroy.push(...s):Ae(s),t.$$.on_mount=[];}),o.forEach(It);}function oe(t,e){const i=t.$$;i.fragment!==null&&(Po(i.after_update),Ae(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[]);}function Qo(t,e){t.$$.dirty[0]===-1&&(kt.push(t),zo(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31;}function We(t,e,i,n,l,o,s,r=[-1]){const f=Zt;ct(t);const c=t.$$={fragment:null,ctx:[],props:o,update:B,not_equal:l,bound:on(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(f?f.$$.context:[])),callbacks:on(),dirty:r,skip_bound:!1,root:e.target||f.$$.root};s&&s(c.root);let d=!1;if(c.ctx=i?i(t,e.props||{},(p,_,...I)=>{const m=I.length?I[0]:_;return c.ctx&&l(c.ctx[p],c.ctx[p]=m)&&(!c.skip_bound&&c.bound[p]&&c.bound[p](m),d&&Qo(t,p)),_}):[],c.update(),d=!0,Ae(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const p=Lo(e.target);c.fragment&&c.fragment.l(p),p.forEach(b);}else c.fragment&&c.fragment.c();e.intro&&Y(t.$$.fragment),le(t,e.target,e.anchor,e.customElement),bi();}ct(f);}class Ue{$destroy(){oe(this,1),this.$destroy=B;}$on(e,i){if(!vi(i))return B;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&&!ho(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1);}}/*!
* 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(f){l.error(f);};function s(f,c,d){if(d=d||i||e.jQuery,!d)return;c.prototype.option||(c.prototype.option=function(I){d.isPlainObject(I)&&(this.options=d.extend(!0,this.options,I));}),d.fn[f]=function(I){if(typeof I=="string"){var m=n.call(arguments,1);return p(this,I,m)}return _(this,I),this};function p(I,m,M){var u,h="$()."+f+'("'+m+'")';return I.each(function(y,v){var w=d.data(v,f);if(!w){o(f+" not initialized. Cannot call methods, i.e. "+h);return}var S=w[m];if(!S||m.charAt(0)=="_"){o(h+" is not a valid method");return}var C=S.apply(w,M);u=u===void 0?C:u;}),u!==void 0?u:I}function _(I,m){I.each(function(M,u){var h=d.data(u,f);h?(h.option(m),h._init()):(h=new c(u,m),d.data(u,f,h));});}r(d);}function r(f){!f||f&&f.bridget||(f.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],f=o&&o[r];f&&(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(_){var I=parseFloat(_),m=_.indexOf("%")==-1&&!isNaN(I);return m&&I}function i(){}var n=typeof console>"u"?i:function(_){console.error(_);},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],o=l.length;function s(){for(var _={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},I=0;I<o;I++){var m=l[I];_[m]=0;}return _}function r(_){var I=getComputedStyle(_);return I||n("Style returned "+I+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),I}var f=!1,c;function d(){if(!f){f=!0;var _=document.createElement("div");_.style.width="200px",_.style.padding="1px 2px 3px 4px",_.style.borderStyle="solid",_.style.borderWidth="1px 2px 3px 4px",_.style.boxSizing="border-box";var I=document.body||document.documentElement;I.appendChild(_);var m=r(_);c=Math.round(e(m.width))==200,p.isBoxSizeOuter=c,I.removeChild(_);}}function p(_){if(d(),typeof _=="string"&&(_=document.querySelector(_)),!(!_||typeof _!="object"||!_.nodeType)){var I=r(_);if(I.display=="none")return s();var m={};m.width=_.offsetWidth,m.height=_.offsetHeight;for(var M=m.isBorderBox=I.boxSizing=="border-box",u=0;u<o;u++){var h=l[u],y=I[h],v=parseFloat(y);m[h]=isNaN(v)?0:v;}var w=m.paddingLeft+m.paddingRight,S=m.paddingTop+m.paddingBottom,C=m.marginLeft+m.marginRight,L=m.marginTop+m.marginBottom,R=m.borderLeftWidth+m.borderRightWidth,A=m.borderTopWidth+m.borderBottomWidth,j=M&&c,P=e(I.width);P!==!1&&(m.width=P+(j?0:w+R));var U=e(I.height);return U!==!1&&(m.height=U+(j?0:S+A)),m.innerWidth=m.width-(w+R),m.innerHeight=m.height-(S+A),m.outerWidth=m.width+C,m.outerHeight=m.height+L,m}}return p});(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 f in r)s[f]=r[f];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 f=s.indexOf(r);f!=-1&&s.splice(f,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 f=[];return s.forEach(function(c){if(c instanceof HTMLElement){if(!r){f.push(c);return}i(c,r)&&f.push(c);for(var d=c.querySelectorAll(r),p=0;p<d.length;p++)f.push(d[p]);}}),f},n.debounceMethod=function(s,r,f){f=f||100;var c=s.prototype[r],d=r+"Timeout";s.prototype[r]=function(){var p=this[d];clearTimeout(p);var _=arguments,I=this;this[d]=setTimeout(function(){c.apply(I,_),delete I[d];},f);};},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,f,c){return f+"-"+c}).toLowerCase()};var o=e.console;return n.htmlInit=function(s,r){n.docReady(function(){var f=n.toDashed(r),c="data-"+f,d=document.querySelectorAll("["+c+"]"),p=document.querySelectorAll(".js-"+f),_=n.makeArray(d).concat(n.makeArray(p)),I=c+"-options",m=e.jQuery;_.forEach(function(M){var u=M.getAttribute(c)||M.getAttribute(I),h;try{h=u&&JSON.parse(u);}catch(v){o&&o.error("Error parsing "+c+" on "+M.className+": "+v);return}var y=new s(M,h);m&&m.data(M,r,y);});});},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(M){for(var u in M)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],f={transform:s,transition:o,transitionDuration:o+"Duration",transitionProperty:o+"Property",transitionDelay:o+"Delay"};function c(M,u){M&&(this.element=M,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(M){var u="on"+M.type;this[u]&&this[u](M);},d.getSize=function(){this.size=i(this.element);},d.css=function(M){var u=this.element.style;for(var h in M){var y=f[h]||h;u[y]=M[h];}},d.getPosition=function(){var M=getComputedStyle(this.element),u=this.layout._getOption("originLeft"),h=this.layout._getOption("originTop"),y=M[u?"left":"right"],v=M[h?"top":"bottom"],w=parseFloat(y),S=parseFloat(v),C=this.layout.size;y.indexOf("%")!=-1&&(w=w/100*C.width),v.indexOf("%")!=-1&&(S=S/100*C.height),w=isNaN(w)?0:w,S=isNaN(S)?0:S,w-=u?C.paddingLeft:C.paddingRight,S-=h?C.paddingTop:C.paddingBottom,this.position.x=w,this.position.y=S;},d.layoutPosition=function(){var M=this.layout.size,u={},h=this.layout._getOption("originLeft"),y=this.layout._getOption("originTop"),v=h?"paddingLeft":"paddingRight",w=h?"left":"right",S=h?"right":"left",C=this.position.x+M[v];u[w]=this.getXValue(C),u[S]="";var L=y?"paddingTop":"paddingBottom",R=y?"top":"bottom",A=y?"bottom":"top",j=this.position.y+M[L];u[R]=this.getYValue(j),u[A]="",this.css(u),this.emitEvent("layout",[this]);},d.getXValue=function(M){var u=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!u?M/this.layout.size.width*100+"%":M+"px"},d.getYValue=function(M){var u=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&u?M/this.layout.size.height*100+"%":M+"px"},d._transitionTo=function(M,u){this.getPosition();var h=this.position.x,y=this.position.y,v=M==this.position.x&&u==this.position.y;if(this.setPosition(M,u),v&&!this.isTransitioning){this.layoutPosition();return}var w=M-h,S=u-y,C={};C.transform=this.getTranslate(w,S),this.transition({to:C,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0});},d.getTranslate=function(M,u){var h=this.layout._getOption("originLeft"),y=this.layout._getOption("originTop");return M=h?M:-M,u=y?u:-u,"translate3d("+M+"px, "+u+"px, 0)"},d.goTo=function(M,u){this.setPosition(M,u),this.layoutPosition();},d.moveTo=d._transitionTo,d.setPosition=function(M,u){this.position.x=parseFloat(M),this.position.y=parseFloat(u);},d._nonTransition=function(M){this.css(M.to),M.isCleaning&&this._removeStyles(M.to);for(var u in M.onTransitionEnd)M.onTransitionEnd[u].call(this);},d.transition=function(M){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(M);return}var u=this._transn;for(var h in M.onTransitionEnd)u.onEnd[h]=M.onTransitionEnd[h];for(h in M.to)u.ingProperties[h]=!0,M.isCleaning&&(u.clean[h]=!0);M.from&&(this.css(M.from),this.element.offsetHeight),this.enableTransition(M.to),this.css(M.to),this.isTransitioning=!0;};function p(M){return M.replace(/([A-Z])/g,function(u){return "-"+u.toLowerCase()})}var _="opacity,"+p(s);d.enableTransition=function(){if(!this.isTransitioning){var M=this.layout.options.transitionDuration;M=typeof M=="number"?M+"ms":M,this.css({transitionProperty:_,transitionDuration:M,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(r,this,!1);}},d.onwebkitTransitionEnd=function(M){this.ontransitionend(M);},d.onotransitionend=function(M){this.ontransitionend(M);};var I={"-webkit-transform":"transform"};d.ontransitionend=function(M){if(M.target===this.element){var u=this._transn,h=I[M.propertyName]||M.propertyName;if(delete u.ingProperties[h],n(u.ingProperties)&&this.disableTransition(),h in u.clean&&(this.element.style[M.propertyName]="",delete u.clean[h]),h in u.onEnd){var y=u.onEnd[h];y.call(this),delete u.onEnd[h];}this.emitEvent("transitionEnd",[this]);}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(r,this,!1),this.isTransitioning=!1;},d._removeStyles=function(M){var u={};for(var h in M)u[h]="";this.css(u);};var m={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(m);},d.stagger=function(M){M=isNaN(M)?0:M,this.staggerDelay=M+"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 M=this.layout.options,u={},h=this.getHideRevealTransitionEndProperty("visibleStyle");u[h]=this.onRevealTransitionEnd,this.transition({from:M.hiddenStyle,to:M.visibleStyle,isCleaning:!0,onTransitionEnd:u});},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal");},d.getHideRevealTransitionEndProperty=function(M){var u=this.layout.options[M];if(u.opacity)return "opacity";for(var h in u)return h},d.hide=function(){this.isHidden=!0,this.css({display:""});var M=this.layout.options,u={},h=this.getHideRevealTransitionEndProperty("hiddenStyle");u[h]=this.onHideTransitionEnd,this.transition({from:M.visibleStyle,to:M.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,f=function(){},c=0,d={};function p(u,h){var y=l.getQueryElement(u);if(!y){s&&s.error("Bad element for "+this.constructor.namespace+": "+(y||u));return}this.element=y,r&&(this.$element=r(this.element)),this.options=l.extend({},this.constructor.defaults),this.option(h);var v=++c;this.element.outlayerGUID=v,d[v]=this,this._create();var w=this._getOption("initLayout");w&&this.layout();}p.namespace="outlayer",p.Item=o,p.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 _=p.prototype;l.extend(_,i.prototype),_.option=function(u){l.extend(this.options,u);},_._getOption=function(u){var h=this.constructor.compatOptions[u];return h&&this.options[h]!==void 0?this.options[h]:this.options[u]},p.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},_._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();},_.reloadItems=function(){this.items=this._itemize(this.element.children);},_._itemize=function(u){for(var h=this._filterFindItemElements(u),y=this.constructor.Item,v=[],w=0;w<h.length;w++){var S=h[w],C=new y(S,this);v.push(C);}return v},_._filterFindItemElements=function(u){return l.filterFindElements(u,this.options.itemSelector)},_.getItemElements=function(){return this.items.map(function(u){return u.element})},_.layout=function(){this._resetLayout(),this._manageStamps();var u=this._getOption("layoutInstant"),h=u!==void 0?u:!this._isLayoutInited;this.layoutItems(this.items,h),this._isLayoutInited=!0;},_._init=_.layout,_._resetLayout=function(){this.getSize();},_.getSize=function(){this.size=n(this.element);},_._getMeasurement=function(u,h){var y=this.options[u],v;y?(typeof y=="string"?v=this.element.querySelector(y):y instanceof HTMLElement&&(v=y),this[u]=v?n(v)[h]:y):this[u]=0;},_.layoutItems=function(u,h){u=this._getItemsForLayout(u),this._layoutItems(u,h),this._postLayout();},_._getItemsForLayout=function(u){return u.filter(function(h){return !h.isIgnored})},_._layoutItems=function(u,h){if(this._emitCompleteOnItems("layout",u),!(!u||!u.length)){var y=[];u.forEach(function(v){var w=this._getItemLayoutPosition(v);w.item=v,w.isInstant=h||v.isLayoutInstant,y.push(w);},this),this._processLayoutQueue(y);}},_._getItemLayoutPosition=function(){return {x:0,y:0}},_._processLayoutQueue=function(u){this.updateStagger(),u.forEach(function(h,y){this._positionItem(h.item,h.x,h.y,h.isInstant,y);},this);},_.updateStagger=function(){var u=this.options.stagger;if(u==null){this.stagger=0;return}return this.stagger=M(u),this.stagger},_._positionItem=function(u,h,y,v,w){v?u.goTo(h,y):(u.stagger(w*this.stagger),u.moveTo(h,y));},_._postLayout=function(){this.resizeContainer();},_.resizeContainer=function(){var u=this._getOption("resizeContainer");if(u){var h=this._getContainerSize();h&&(this._setContainerMeasure(h.width,!0),this._setContainerMeasure(h.height,!1));}},_._getContainerSize=f,_._setContainerMeasure=function(u,h){if(u!==void 0){var y=this.size;y.isBorderBox&&(u+=h?y.paddingLeft+y.paddingRight+y.borderLeftWidth+y.borderRightWidth:y.paddingBottom+y.paddingTop+y.borderTopWidth+y.borderBottomWidth),u=Math.max(u,0),this.element.style[h?"width":"height"]=u+"px";}},_._emitCompleteOnItems=function(u,h){var y=this;function v(){y.dispatchEvent(u+"Complete",null,[h]);}var w=h.length;if(!h||!w){v();return}var S=0;function C(){S++,S==w&&v();}h.forEach(function(L){L.once(u,C);});},_.dispatchEvent=function(u,h,y){var v=h?[h].concat(y):y;if(this.emitEvent(u,v),r)if(this.$element=this.$element||r(this.element),h){var w=r.Event(h);w.type=u,this.$element.trigger(w,y);}else this.$element.trigger(u,y);},_.ignore=function(u){var h=this.getItem(u);h&&(h.isIgnored=!0);},_.unignore=function(u){var h=this.getItem(u);h&&delete h.isIgnored;},_.stamp=function(u){u=this._find(u),u&&(this.stamps=this.stamps.concat(u),u.forEach(this.ignore,this));},_.unstamp=function(u){u=this._find(u),u&&u.forEach(function(h){l.removeFrom(this.stamps,h),this.unignore(h);},this);},_._find=function(u){if(u)return typeof u=="string"&&(u=this.element.querySelectorAll(u)),u=l.makeArray(u),u},_._manageStamps=function(){!this.stamps||!this.stamps.length||(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this));},_._getBoundingRect=function(){var u=this.element.getBoundingClientRect(),h=this.size;this._boundingRect={left:u.left+h.paddingLeft+h.borderLeftWidth,top:u.top+h.paddingTop+h.borderTopWidth,right:u.right-(h.paddingRight+h.borderRightWidth),bottom:u.bottom-(h.paddingBottom+h.borderBottomWidth)};},_._manageStamp=f,_._getElementOffset=function(u){var h=u.getBoundingClientRect(),y=this._boundingRect,v=n(u),w={left:h.left-y.left-v.marginLeft,top:h.top-y.top-v.marginTop,right:y.right-h.right-v.marginRight,bottom:y.bottom-h.bottom-v.marginBottom};return w},_.handleEvent=l.handleEvent,_.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0;},_.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1;},_.onresize=function(){this.resize();},l.debounceMethod(p,"onresize",100),_.resize=function(){!this.isResizeBound||!this.needsResizeLayout()||this.layout();},_.needsResizeLayout=function(){var u=n(this.element),h=this.size&&u;return h&&u.innerWidth!==this.size.innerWidth},_.addItems=function(u){var h=this._itemize(u);return h.length&&(this.items=this.items.concat(h)),h},_.appended=function(u){var h=this.addItems(u);h.length&&(this.layoutItems(h,!0),this.reveal(h));},_.prepended=function(u){var h=this._itemize(u);if(h.length){var y=this.items.slice(0);this.items=h.concat(y),this._resetLayout(),this._manageStamps(),this.layoutItems(h,!0),this.reveal(h),this.layoutItems(y);}},_.reveal=function(u){if(this._emitCompleteOnItems("reveal",u),!(!u||!u.length)){var h=this.updateStagger();u.forEach(function(y,v){y.stagger(v*h),y.reveal();});}},_.hide=function(u){if(this._emitCompleteOnItems("hide",u),!(!u||!u.length)){var h=this.updateStagger();u.forEach(function(y,v){y.stagger(v*h),y.hide();});}},_.revealItemElements=function(u){var h=this.getItems(u);this.reveal(h);},_.hideItemElements=function(u){var h=this.getItems(u);this.hide(h);},_.getItem=function(u){for(var h=0;h<this.items.length;h++){var y=this.items[h];if(y.element==u)return y}},_.getItems=function(u){u=l.makeArray(u);var h=[];return u.forEach(function(y){var v=this.getItem(y);v&&h.push(v);},this),h},_.remove=function(u){var h=this.getItems(u);this._emitCompleteOnItems("remove",h),!(!h||!h.length)&&h.forEach(function(y){y.remove(),l.removeFrom(this.items,y);},this);},_.destroy=function(){var u=this.element.style;u.height="",u.position="",u.width="",this.items.forEach(function(y){y.destroy();}),this.unbindResize();var h=this.element.outlayerGUID;delete d[h],delete this.element.outlayerGUID,r&&r.removeData(this.element,this.constructor.namespace);},p.data=function(u){u=l.getQueryElement(u);var h=u&&u.outlayerGUID;return h&&d[h]},p.create=function(u,h){var y=I(p);return y.defaults=l.extend({},p.defaults),l.extend(y.defaults,h),y.compatOptions=l.extend({},p.compatOptions),y.namespace=u,y.data=p.data,y.Item=I(o),l.htmlInit(y,u),r&&r.bridget&&r.bridget(u,y),y};function I(u){function h(){u.apply(this,arguments);}return h.prototype=Object.create(u.prototype),h.prototype.constructor=h,h}var m={ms:1,s:1e3};function M(u){if(typeof u=="number")return u;var h=u.match(/(^\d*\.?\d*)(\w*)/),y=h&&h[1],v=h&&h[2];if(!y.length)return 0;y=parseFloat(y);var w=m[v]||1;return y*w}return p.Item=o,p});/*!
* 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,f=this.containerWidth+this.gutter,c=f/r,d=r-f%r,p=d&&d<1?"round":"floor";c=Math[p](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",f=Math[r](o.size.outerWidth/this.columnWidth);f=Math.min(f,this.cols);for(var c=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",d=this[c](f,o),p={x:this.columnWidth*d.col,y:d.y},_=d.y+o.size.outerHeight,I=f+d.col,m=d.col;m<I;m++)this.colYs[m]=_;return p},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,f=0;f<r;f++)s[f]=this._getColGroupY(f,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,f=o>1&&r+o>this.cols;r=f?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),f=this._getOption("originLeft"),c=f?r.left:r.right,d=c+s.outerWidth,p=Math.floor(c/this.columnWidth);p=Math.max(0,p);var _=Math.floor(d/this.columnWidth);_-=d%this.columnWidth?0:1,_=Math.min(this.cols-1,_);for(var I=this._getOption("originTop"),m=(I?r.top:r.bottom)+s.outerHeight,M=p;M<=_;M++)this.colYs[M]=Math.max(m,this.colYs[M]);},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 Nt(t,{delay:e=0,duration:i=400,easing:n=bl}={}){const l=+getComputedStyle(t).opacity;return {delay:e,duration:i,easing:n,css:o=>`opacity: ${o*l}`}}const St=[];function xt(t,e=B){let i;const n=new Set;function l(r){if(Pe(t,r)&&(t=r,i)){const f=!St.length;for(const c of n)c[1](),St.push(c,t);if(f){for(let c=0;c<St.length;c+=2)St[c][0](St[c+1]);St.length=0;}}}function o(r){l(r(t));}function s(r,f=B){const c=[r,f];return n.add(c),n.size===1&&(i=e(l)||B),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 Pl(t,e){let i;return function(){const n=!i;i&&clearTimeout(i),i=setTimeout(()=>{i=null;},e),n&&t.apply(this,arguments);}}function Rl(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 Go=Rl(Di,1500),Wo=Rl(Di,30);function Di(){Ut.Run++,console.log(`呼叫整理次数: ${Ut.Call} 实际整理次数: ${Ut.Run}`),masonry.layout();}function Ie(t="normal"){it(Vt)?(Ut.Call++,masonry&&(t==="fast"?Wo():Go())):(Ut.Call++,masonry&&Di());}const rn=document.getElementById("kp_container"),$e=rn||Uo("");document.body.appendChild($e);const di="img.preview_Kesa";let pi=null;function bt(){if(console.log("------------------------ NEXUS TOOLS Without jQuery ------------------------"),document.body.addEventListener("mouseover",function(t){const e=it(at)==0?t.target:t.relatedTarget;it(at)==0&&t.target.matches(di)&&Ii(t,e),it(at)==1&&t.target.matches("div.hover-trigger")&&Ii(t,e);}),document.body.addEventListener("mouseout",function(t){t.target.matches(di)&&Ql();}),document.body.addEventListener("mousemove",function(t){const e=t.target;it(at)==0&&Mi(t,e),it(at)==1&&t.target.matches(di)&&Mi(t,e);}),"IntersectionObserver"in window){let t=[...document.querySelectorAll(".nexus-lazy-load_Kesa")];const e=new IntersectionObserver(i=>{i.forEach(n=>{const l=n.target;if(n.intersectionRatio,n.isIntersecting&&!l.classList.contains("preview_Kesa")){const o=l.dataset.src;l.src=o,l.classList.add("preview_Kesa"),Ie();}});});t.forEach(i=>e.observe(i));}}function an(t,e){return Math.min(e.width/t.width,e.height/t.height)}function Yl(t,e){let i=0,n=0;try{i=e.naturalWidth,n=e.naturalHeight;}catch{console.log(e);}const l=t.clientX,o=t.clientY,s=window.innerWidth,r=window.innerHeight,f=o,c=r-o,d=l,p=s-l,_={width:i,height:n},I={bot:{width:s,height:c},top:{width:s,height:f},right:{width:p,height:r},left:{width:d,height:r}};let m=0,M="";for(const y in I)if(Object.hasOwnProperty.call(I,y)){const v=I[y];an(_,v)>m&&(m=an(_,v),M=y);}const u={top:{left:0,top:0,width:s+"px",height:f+"px"},bot:{left:0,top:f+"px",width:s+"px",height:c+"px"},left:{left:0,top:0,width:d+"px",height:r+"px"},right:{left:d+"px",top:0,width:p+"px",height:r+"px"},default:{left:0,top:0,width:0,height:0}};return M!=""?u[M]:u.default}function Uo(t){const e=document.createElement("div");e.id="kp_container",e.style.backgroundColor=t,e.style.opacity="1",e.style.position="Fixed",e.style.zIndex="20000",e.style.pointerEvents="none",e.style.transition="all .3s",e.style.display="none";const i=document.createElement("img");i.className="kp_img",i.style.position="absolute",i.style.zIndex="20002",i.style.pointerEvents="none",i.style.width="100%",i.style.height="100%",i.style.objectFit="contain",e.appendChild(i);const n=document.createElement("img");return n.className="kp_img",n.style.position="absolute",n.style.zIndex="20001",n.style.pointerEvents="none",n.style.width="100%",n.style.height="100%",n.style.objectFit="cover",n.style.filter="blur(8px)",e.appendChild(n),e}function Ho(){$e.childNodes.forEach(t=>{t.setAttribute("src","");});}function Ii(t,e){pi=setTimeout(()=>{if(it(Ni)){let i=e.getAttribute("src");i&&$e&&$e.querySelectorAll(".kp_img").forEach(o=>{o.setAttribute("src",i);});const n=Yl(t,e);$e.style.left=n.left,$e.style.top=n.top,$e.style.width=n.width,$e.style.height=n.height,$e.style.display="block";}},it(yi));}function Ql(){$e.style.display="none",Ho(),pi&&clearTimeout(pi);}function Mi(t,e){const i=Yl(t,e);$e.style.left=i.left,$e.style.top=i.top,$e.style.width=i.width,$e.style.height=i.height;}const wt={};function Gl(t){const e=localStorage.getItem(t);if(e)try{if(wt[t]){if(e===wt[t].string)return console.log("%c====> 读取 localstorage 缓存成功~","color: green;"),wt[t].object;console.log("%c====> 更新 localstorage 缓存~","color: orange;");}else wt[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 wt[t].string=e,wt[t].object=i,wt[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=Gl;const Gt="Kesa:Masonry";function lt(t,e){localStorage.getItem(Gt)||localStorage.setItem(Gt,"{}");const n=JSON.parse(localStorage.getItem(Gt))[t]??e,l=xt(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=xt({}),Ke=xt(0),ft=xt("https://kamept.com/index.php"),Lt=lt("_domain",""),Tt=lt("_bgColor",""),Ot=lt("_listViewMode",1),mt=xt(!1),gi=lt("_panelPos",{x:0,y:0}),Pt=lt("_turnPage",!1),cn=lt("_show_debug_btn",0),Ni=lt("_show_nexus_pic",1),at=lt("_trigger_nexus_pic",1),yi=lt("_delay_nexus_pic",0),Vt=lt("_animated",!0),Ht=lt("_card_layout",{column:4,gap:20}),Zo={mt:{hide_gay:!0,path_in_browse:!1}},Je=lt("_SITE_SETTING",Zo);let un=!1;Je.subscribe(t=>{un?(Ie("fast"),Ie("fast"),Ie(),Ie()):un=!0;});const Bo={all:!1,title:!0,free:!1,sub_title:!1,tags:!1,size_download_collect:!1,upload_time:!1,statistics:!1},tt=lt("_card_show",Bo);let fn=!1;tt.subscribe(t=>{fn?(Ie("fast"),Ie("fast"),Ie(),Ie()):fn=!0;});function Vo(t){let e,i,n;return {c(){e=he("svg"),i=he("path"),n=he("circle"),a(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"),a(i,"fill","yellow"),a(i,"stroke","#000000"),a(i,"stroke-linecap","round"),a(i,"stroke-linejoin","round"),a(i,"stroke-miterlimit","10"),a(i,"stroke-width","4"),a(n,"cx","85"),a(n,"cy","45"),a(n,"fill","red"),a(n,"r","8"),a(n,"stroke","#000000"),a(n,"stroke-linecap","round"),a(n,"stroke-linejoin","round"),a(n,"stroke-miterlimit","10"),a(n,"stroke-width","4"),a(e,"enable-background","new 0 0 128 128"),a(e,"id","Layer_1"),a(e,"version","1.1"),a(e,"viewBox","0 0 128 128"),a(e,"xml:space","preserve"),a(e,"width","28"),a(e,"height","28"),a(e,"class","hint");},m(l,o){D(l,e,o),g(e,i),g(e,n);},p:B,i:B,o:B,d(l){l&&b(e);}}}class xo extends Ue{constructor(e){super(),We(this,e,null,Vo,Pe,{});}}function dn(t){let e,i,n,l;return e=new xo({}),{c(){re(e.$$.fragment),i=k(),n=N("div"),a(n,"class","_hint svelte-zt6zlx");},m(o,s){le(e,o,s),D(o,i,s),D(o,n,s),n.innerHTML=t[5],l=!0;},p(o,s){(!l||s&32)&&(n.innerHTML=o[5]);},i(o){l||(Y(e.$$.fragment,o),l=!0);},o(o){Z(e.$$.fragment,o),l=!1;},d(o){oe(e,o),o&&b(i),o&&b(n);}}}function gn(t){let e,i;function n(s,r){return s[7]?Jo:s[0]?Xo:Fo}let l=n(t),o=l(t);return {c(){e=z(`: \r
\r
`),o.c(),i=nt();},m(s,r){D(s,e,r),o.m(s,r),D(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&&b(e),o.d(s),s&&b(i);}}}function Fo(t){let e,i;return {c(){e=N("span"),i=z(t[3]),a(e,"class","title_green svelte-zt6zlx");},m(n,l){D(n,e,l),g(e,i);},p(n,l){l&8&&q(i,n[3]);},d(n){n&&b(e);}}}function Xo(t){let e,i;return {c(){e=N("span"),i=z(t[4]),a(e,"class","title_red svelte-zt6zlx");},m(n,l){D(n,e,l),g(e,i);},p(n,l){l&16&&q(i,n[4]);},d(n){n&&b(e);}}}function Jo(t){let e;function i(o,s){return o[0]?Ko:$o}let n=i(t),l=n(t);return {c(){l.c(),e=nt();},m(o,s){l.m(o,s),D(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&&b(e);}}}function $o(t){let e,i;return {c(){e=N("span"),i=z(t[4]),a(e,"class","title_red svelte-zt6zlx");},m(n,l){D(n,e,l),g(e,i);},p(n,l){l&16&&q(i,n[4]);},d(n){n&&b(e);}}}function Ko(t){let e,i;return {c(){e=N("span"),i=z(t[3]),a(e,"class","title_green svelte-zt6zlx");},m(n,l){D(n,e,l),g(e,i);},p(n,l){l&8&&q(i,n[3]);},d(n){n&&b(e);}}}function _n(t){let e,i,n,l,o,s;return {c(){e=N("div"),i=N("input"),n=k(),l=N("label"),a(i,"type","checkbox"),a(i,"id","_t"+t[8]),a(i,"class","svelte-zt6zlx"),a(l,"for","_t"+t[8]),a(l,"class","svelte-zt6zlx"),a(e,"class","s_switch svelte-zt6zlx");},m(r,f){D(r,e,f),g(e,i),i.checked=t[0],g(e,n),g(e,l),o||(s=[$(i,"change",t[11]),$(i,"change",t[12])],o=!0);},p(r,f){f&1&&(i.checked=r[0]);},d(r){r&&b(e),o=!1,Ae(s);}}}function hn(t){let e;const i=t[10].default,n=mo(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)&&Io(n,i,l,l[9],e?po(i,l[9],o,null):Mo(l[9]),null);},i(l){e||(Y(n,l),e=!0);},o(l){Z(n,l),e=!1;},d(l){n&&n.d(l);}}}function qo(t){let e,i,n,l,o,s,r,f,c=t[5]&&dn(t),d=(t[3]||t[4])&&gn(t),p=t[1]=="switch"&&_n(t),_=t[1]=="range"&&hn(t);return {c(){e=N("div"),i=N("div"),c&&c.c(),n=k(),l=z(t[2]),o=k(),d&&d.c(),s=k(),p&&p.c(),r=k(),_&&_.c(),a(i,"class","s_title svelte-zt6zlx"),a(i,"title",t[5]),a(e,"class","switch svelte-zt6zlx");},m(I,m){D(I,e,m),g(e,i),c&&c.m(i,null),g(i,n),g(i,l),g(i,o),d&&d.m(i,null),g(e,s),p&&p.m(e,null),g(e,r),_&&_.m(e,null),f=!0;},p(I,[m]){I[5]?c?(c.p(I,m),m&32&&Y(c,1)):(c=dn(I),c.c(),Y(c,1),c.m(i,n)):c&&(Ve(),Z(c,1,1,()=>{c=null;}),xe()),(!f||m&4)&&q(l,I[2]),I[3]||I[4]?d?d.p(I,m):(d=gn(I),d.c(),d.m(i,null)):d&&(d.d(1),d=null),(!f||m&32)&&a(i,"title",I[5]),I[1]=="switch"?p?p.p(I,m):(p=_n(I),p.c(),p.m(e,r)):p&&(p.d(1),p=null),I[1]=="range"?_?(_.p(I,m),m&2&&Y(_,1)):(_=hn(I),_.c(),Y(_,1),_.m(e,null)):_&&(Ve(),Z(_,1,1,()=>{_=null;}),xe());},i(I){f||(Y(c),Y(_),f=!0);},o(I){Z(c),Z(_),f=!1;},d(I){I&&b(e),c&&c.d(),d&&d.d(),p&&p.d(),_&&_.d();}}}function es(t,e,i){let{$$slots:n={},$$scope:l}=e,{type:o="switch"}=e,{title_fixed:s=""}=e,{title_green:r=""}=e,{title_red:f=""}=e,{label:c=""}=e,{func:d=null}=e;const p=Math.random().toFixed(8);let{checked:_=!1}=e,{green_state:I=!0}=e;function m(){_=this.checked,i(0,_);}const M=()=>{console.log(s,_),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,f=u.title_red),"label"in u&&i(5,c=u.label),"func"in u&&i(6,d=u.func),"checked"in u&&i(0,_=u.checked),"green_state"in u&&i(7,I=u.green_state),"$$scope"in u&&i(9,l=u.$$scope);},[_,o,s,r,f,c,d,I,p,l,n,m,M]}class Ge extends Ue{constructor(e){super(),We(this,e,es,qo,Pe,{type:1,title_fixed:2,title_green:3,title_red:4,label:5,func:6,checked:0,green_state:7});}}const ts="data:image/svg+xml;base64,PHN2Zw0KICB3aWR0aD0iMjAiDQogIGhlaWdodD0iMjAiDQogIHZpZXdCb3g9IjAgMCAzMiAzMiINCiAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KPg0KICA8ZGVmcz4NCiAgICA8c3R5bGU+DQogICAgICAuY2xzLTEgew0KICAgICAgICBmaWxsOiBub25lOw0KICAgICAgICBzdHJva2U6ICNmZmY7DQogICAgICAgIHN0cm9rZS1saW5lY2FwOiByb3VuZDsNCiAgICAgICAgc3Ryb2tlLWxpbmVqb2luOiByb3VuZDsNCiAgICAgICAgc3Ryb2tlLXdpZHRoOiAycHg7DQogICAgICB9DQogICAgPC9zdHlsZT4NCiAgPC9kZWZzPg0KICA8dGl0bGUgLz4NCiAgPGcgZGF0YS1uYW1lPSI4MC1zZXR0aW5nIiBpZD0iXzgwLXNldHRpbmciPg0KICAgIDxjaXJjbGUgY2xhc3M9ImNscy0xIiBjeD0iMTAiIGN5PSI2IiByPSIzIiAvPg0KICAgIDxjaXJjbGUgY2xhc3M9ImNscy0xIiBjeD0iMjIiIGN5PSIxNiIgcj0iMyIgLz4NCiAgICA8Y2lyY2xlIGNsYXNzPSJjbHMtMSIgY3g9IjEwIiBjeT0iMjYiIHI9IjMiIC8+DQogICAgPGxpbmUgY2xhc3M9ImNscy0x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A8c3R5bGU+DQogICAgICAuY2xzLTEgew0KICAgICAgICBmaWxsOiBub25lOw0KICAgICAgICBzdHJva2U6ICNmZmY7DQogICAgICAgIHN0cm9rZS1saW5lY2FwOiByb3VuZDsNCiAgICAgICAgc3Ryb2tlLWxpbmVqb2luOiByb3VuZDsNCiAgICAgICAgc3Ryb2tlLXdpZHRoOiAycHg7DQogICAgICB9DQogICAgPC9zdHlsZT4NCiAgPC9kZWZzPg0KICA8dGl0bGUgLz4NCiAgPGcgZGF0YS1uYW1lPSI0My1icm93c2VyIiBpZD0iXzQzLWJyb3dzZXIiPg0KICAgIDxyZWN0IGNsYXNzPSJjbHMtMSIgaGVpZ2h0PSIzMCIgd2lkdGg9IjMwIiB4PSIxIiB5PSIxIiAvPg0KICAgIDxsaW5lIGNsYXNzPSJjbHMtMSIgeDE9IjEiIHgyPSIzMSIgeTE9IjkiIHkyPSI5IiAvPg0KICAgIDxsaW5lIGNsYXNzPSJjbHMtMSIgeDE9IjUiIHgyPSI3IiB5MT0iNSIgeTI9IjUiIC8+DQogICAgPGxpbmUgY2xhc3M9ImNscy0xIiB4MT0iMTEiIHgyPSIxMyIgeTE9IjUiIHkyPSI1IiAvPg0KICAgIDxsaW5lIGNsYXNzPSJjbHMtMSIgeDE9IjkiIHgyPSIyNSIgeTE9IjE2IiB5Mj0iMTYiIC8+DQogICAgPGxpbmUgY2xhc3M9ImNscy0xIiB4MT0iNyIgeDI9IjI1IiB5MT0iMjAiIHkyPSIyMCIgLz4NCiAgICA8bGluZSBjbGFzcz0iY2xzLTEiIHgxPSI3IiB4Mj0iMjUiIHkxPSIyNCIgeTI9IjI0IiAvPg0KICA8L2c+DQo8L3N2Zz4=";function ls(t){let e,i,n;return {c(){e=he("svg"),i=he("line"),n=he("line"),a(i,"x1","20"),a(i,"x2","6"),a(i,"y1","6"),a(i,"y2","20"),a(n,"x1","6"),a(n,"x2","20"),a(n,"y1","6"),a(n,"y2","20"),a(e,"class","feather feather-x"),a(e,"fill","currentColor"),a(e,"height","28"),a(e,"width","28"),a(e,"stroke","currentColor"),a(e,"stroke-linecap","round"),a(e,"stroke-linejoin","round"),a(e,"stroke-width","2"),a(e,"viewBox","0 0 24 24"),G(e,"color","black"),a(e,"xmlns","http://www.w3.org/2000/svg");},m(l,o){D(l,e,o),g(e,i),g(e,n);},p:B,i:B,o:B,d(l){l&&b(e);}}}class os extends Ue{constructor(e){super(),We(this,e,null,ls,Pe,{});}}function ss(t){let e,i,n;return {c(){e=he("svg"),i=he("path"),n=he("path"),a(i,"d","M19.334,1.298c-0.005-0.037-0.005-0.074-0.013-0.109c-0.01-0.047-0.029-0.092-0.043-0.139 c-0.015-0.046-0.025-0.095-0.044-0.139c-0.016-0.037-0.039-0.071-0.058-0.107c-0.026-0.049-0.049-0.1-0.08-0.146 c-0.023-0.034-0.053-0.063-0.079-0.095c-0.035-0.043-0.068-0.089-0.107-0.128c-0.024-0.024-0.053-0.043-0.079-0.065 c-0.049-0.042-0.099-0.086-0.153-0.122c-0.004-0.002-0.007-0.006-0.011-0.009c-0.027-0.018-0.058-0.028-0.086-0.043 c-0.054-0.03-0.107-0.062-0.166-0.085c-0.043-0.017-0.087-0.027-0.131-0.041c-0.05-0.015-0.099-0.032-0.15-0.042 c-0.055-0.011-0.109-0.013-0.165-0.017C17.931,0.009,17.894,0,17.855,0c-0.006,0-0.011,0.001-0.017,0.002 c-0.054,0-0.106,0.009-0.16,0.016c-0.046,0.006-0.093,0.007-0.138,0.017c-0.027,0.005-0.052,0.017-0.078,0.024 c-0.068,0.018-0.135,0.036-0.199,0.063c-0.007,0.003-0.013,0.008-0.02,0.011c-0.081,0.036-0.159,0.078-0.232,0.127 c-0.023,0.016-0.043,0.037-0.066,0.055c-0.054,0.042-0.109,0.083-0.157,0.131c-0.021,0.022-0.039,0.049-0.06,0.072 c-0.045,0.051-0.089,0.103-0.127,0.159c-0.002,0.004-0.006,0.007-0.009,0.011L0.239,26.081c-0.448,0.696-0.248,1.625,0.449,2.073 c0.251,0.162,0.532,0.239,0.811,0.239c0.493,0,0.976-0.243,1.263-0.688L16.355,6.599v51.067c0,0.828,0.671,1.5,1.5,1.5 s1.5-0.672,1.5-1.5V1.5c0-0.005-0.001-0.01-0.001-0.015C19.353,1.422,19.343,1.36,19.334,1.298z"),a(i,"fill","white"),a(n,"d","M58.693,31.013c-0.697-0.449-1.625-0.248-2.073,0.448L43.026,52.567V1.5c0-0.829-0.672-1.5-1.5-1.5s-1.5,0.671-1.5,1.5 v56.166c0,0.005,0.001,0.009,0.001,0.014c0.001,0.067,0.011,0.133,0.021,0.199c0.005,0.032,0.005,0.065,0.012,0.098 c0.012,0.058,0.033,0.112,0.053,0.169c0.012,0.036,0.02,0.073,0.034,0.108c0.025,0.06,0.061,0.116,0.094,0.173 c0.016,0.025,0.026,0.055,0.044,0.079c0.03,0.045,0.068,0.085,0.104,0.126c0.027,0.033,0.052,0.068,0.082,0.098 c0.027,0.027,0.061,0.049,0.09,0.074c0.046,0.039,0.092,0.08,0.143,0.114c0.004,0.002,0.008,0.006,0.012,0.009 c0.011,0.007,0.022,0.009,0.033,0.016c0.098,0.06,0.202,0.105,0.313,0.143c0.03,0.01,0.061,0.021,0.092,0.028 c0.119,0.03,0.242,0.052,0.37,0.053c0.001,0,0.002,0,0.003,0l0,0c0.001,0,0.001,0,0.001,0c0.117,0,0.229-0.017,0.338-0.042 c0.031-0.007,0.061-0.019,0.091-0.027c0.078-0.023,0.154-0.052,0.227-0.088c0.035-0.017,0.068-0.035,0.102-0.055 c0.069-0.041,0.133-0.087,0.194-0.137c0.027-0.022,0.055-0.043,0.081-0.067c0.083-0.079,0.157-0.166,0.221-0.262 c0.002-0.004,0.006-0.006,0.008-0.01l16.354-25.393C59.591,32.39,59.39,31.461,58.693,31.013z"),a(n,"fill","white"),a(e,"enable-background","new 0 0 59.381 59.166"),a(e,"height","20"),a(e,"id","Layer_1"),a(e,"version","1.1"),a(e,"viewBox","0 0 59.381 59.166"),a(e,"width","20"),a(e,"xml:space","preserve"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"xmlns:xlink","http://www.w3.org/1999/xlink");},m(l,o){D(l,e,o),g(e,i),g(e,n);},p:B,i:B,o:B,d(l){l&&b(e);}}}class rs extends Ue{constructor(e){super(),We(this,e,null,ss,Pe,{});}}function as(t){let e,i,n,l,o;return {c(){e=N("div"),i=N("img"),l=k(),o=N("div"),o.textContent="列表",De(i.src,n=ns)||a(i,"src",n),a(i,"alt","SVG_LIST");},m(s,r){D(s,e,r),g(e,i),D(s,l,r),D(s,o,r);},p:B,d(s){s&&b(e),s&&b(l),s&&b(o);}}}function cs(t){let e,i,n,l,o;return {c(){e=N("div"),i=N("img"),l=k(),o=N("div"),o.textContent="瀑布",De(i.src,n=is)||a(i,"src",n),a(i,"alt","SVG_MASONRY");},m(s,r){D(s,e,r),g(e,i),D(s,l,r),D(s,o,r);},p:B,d(s){s&&b(e),s&&b(l),s&&b(o);}}}function mn(t){let e,i,n,l,o,s,r,f;return {c(){e=N("button"),e.textContent="显示详情",i=k(),n=N("button"),l=z(t[1]),o=k(),s=N("button"),s.textContent="iframe",a(e,"class","sideP__btn svelte-gqty0r"),a(n,"class","sideP__btn svelte-gqty0r"),a(s,"class","sideP__btn svelte-gqty0r");},m(c,d){D(c,e,d),D(c,i,d),D(c,n,d),g(n,l),D(c,o,d),D(c,s,d),r||(f=[$(e,"click",t[20]),$(n,"click",t[21]),$(s,"click",t[22])],r=!0);},p(c,d){d[0]&2&&q(l,c[1]);},d(c){c&&b(e),c&&b(i),c&&b(n),c&&b(o),c&&b(s),r=!1,Ae(f);}}}function pn(t){let e,i,n,l,o,s,r,f,c=t[7].includes("m-team"),d,p,_,I,m,M,u,h,y,v,w,S,C,L,R,A,j,P,U,W,T,H,pe,Le,Ce,ye,Me,He,ie,ce,F,Q,V,x,se,ne,ae,ve,_e,we,ue,ee,ke,Ze,fe,be,Te,E,te,Ne,Ee,qe,yt,At,et,vt,Ct,st,Re,Be,J,de,Ti,dt,ii,Ai,gt,ni,Ci,_t,li,ht,Yt,oi,Ei;r=new os({});let Ye=c&&In(t);function Kl(O){t[29](O);}let Si={title_fixed:"显示模式",title_green:"瀑布流",title_red:"原始表格",label:t[7].includes("m-team")?"":"原始表格模式仅支持点击图片显示iframe和加载下一页",func:t[28]};t[4]!==void 0&&(Si.checked=t[4]),M=new Ge({props:Si}),je.push(()=>Xe(M,"checked",Kl));function ql(O){t[30](O);}let ki={title_fixed:"加载下一页方式",title_green:"按钮(默认)",title_red:"滚动(谨慎使用)",label:"滚动模式下 MT 等网站频繁使用可能会导致 120",green_state:!1};t[2]!==void 0&&(ki.checked=t[2]),w=new Ge({props:ki}),je.push(()=>Xe(w,"checked",ql));function eo(O){t[31](O);}let ji={title_fixed:"卡片移动动画",title_green:"开启",title_red:"关闭",label:"开启关闭瀑布流卡片高度变化时的缓动动画",green_state:!0};t[11]!==void 0&&(ji.checked=t[11]),A=new Ge({props:ji}),je.push(()=>Xe(A,"checked",eo));function to(O){t[32](O);}let zi={title_fixed:"悬浮预览大图",title_green:"默认开启",title_red:"核心功能->确定不用再关"};t[12]!==void 0&&(zi.checked=t[12]),T=new Ge({props:zi}),je.push(()=>Xe(T,"checked",to));function io(O){t[33](O);}let Oi={title_fixed:"预览大图方式",title_green:"局部悬浮预览区域",title_red:"全图悬浮预览",label:"开发中 <br> 为优化用户预览大图体验 <br> 鼠标放到图片上就显示大图会遮挡信息 <br> 指定在图片的局部 区域放大"};t[13]!==void 0&&(Oi.checked=t[13]),Le=new Ge({props:Oi}),je.push(()=>Xe(Le,"checked",io));let Qe=t[12]&&Mn(t);function no(O){t[35](O);}let Pi={title_fixed:"侧边栏debug按钮",title_green:"隐藏(默认)",title_red:"显示(开发用)",green_state:!1};t[10]!==void 0&&(Pi.checked=t[10]),ce=new Ge({props:Pi}),je.push(()=>Xe(ce,"checked",no)),ae=new Ge({props:{title_fixed:`卡片列数: ${t[15].column}`,label:"范围: 2~7 列",type:"range",$$slots:{default:[fs]},$$scope:{ctx:t}}}),_e=new Ge({props:{title_fixed:`卡片间距: ${t[15].gap}px`,label:"范围: 2~100 px",type:"range",$$slots:{default:[ds]},$$scope:{ctx:t}}});function lo(O){t[38](O);}let Ri={title_fixed:"卡片信息",title_green:"显示下方所选信息(精简)",title_red:"显示所有信息(较乱)",green_state:!1,func:Ie};t[3].all!==void 0&&(Ri.checked=t[3].all),fe=new Ge({props:Ri}),je.push(()=>Xe(fe,"checked",lo));function oo(O){t[39](O);}let Yi={title_fixed:"显示种子名称",func:Ie};t[3].title!==void 0&&(Yi.checked=t[3].title),qe=new Ge({props:Yi}),je.push(()=>Xe(qe,"checked",oo));function so(O){t[40](O);}let Qi={title_fixed:"显示置顶和免费",func:Ie};t[3].free!==void 0&&(Qi.checked=t[3].free),et=new Ge({props:Qi}),je.push(()=>Xe(et,"checked",so));function ro(O){t[41](O);}let Gi={title_fixed:"显示副标题",func:Ie};t[3].sub_title!==void 0&&(Gi.checked=t[3].sub_title),st=new Ge({props:Gi}),je.push(()=>Xe(st,"checked",ro));function ao(O){t[42](O);}let Wi={title_fixed:"显示标签",func:Ie};t[3].tags!==void 0&&(Wi.checked=t[3].tags),J=new Ge({props:Wi}),je.push(()=>Xe(J,"checked",ao));function co(O){t[43](O);}let Ui={title_fixed:"显示 [大小/下载/收藏]",func:Ie};t[3].size_download_collect!==void 0&&(Ui.checked=t[3].size_download_collect),dt=new Ge({props:Ui}),je.push(()=>Xe(dt,"checked",co));function uo(O){t[44](O);}let Hi={title_fixed:"显示上传时间",func:Ie};t[3].upload_time!==void 0&&(Hi.checked=t[3].upload_time),gt=new Ge({props:Hi}),je.push(()=>Xe(gt,"checked",uo));function fo(O){t[45](O);}let Zi={title_fixed:"显示 [评论/上传/下载/完成]",func:Ie};return t[3].statistics!==void 0&&(Zi.checked=t[3].statistics),_t=new Ge({props:Zi}),je.push(()=>Xe(_t,"checked",fo)),{c(){e=N("div"),i=N("div"),n=N("div"),l=N("p"),l.textContent="详细配置面板",o=k(),s=N("button"),re(r.$$.fragment),f=k(),Ye&&Ye.c(),d=k(),p=N("div"),_=N("h1"),_.textContent="常用配置",I=k(),m=N("div"),re(M.$$.fragment),h=k(),y=N("br"),v=k(),re(w.$$.fragment),C=k(),L=N("br"),R=k(),re(A.$$.fragment),P=k(),U=N("br"),W=k(),re(T.$$.fragment),pe=k(),re(Le.$$.fragment),ye=k(),Qe&&Qe.c(),Me=k(),He=N("br"),ie=k(),re(ce.$$.fragment),Q=k(),V=N("div"),x=N("h1"),x.textContent="卡片布局",se=k(),ne=N("div"),re(ae.$$.fragment),ve=k(),re(_e.$$.fragment),we=k(),ue=N("div"),ee=N("h1"),ee.textContent="卡片信息",ke=k(),Ze=N("div"),re(fe.$$.fragment),Te=k(),E=N("div"),te=N("h3"),te.textContent="配置常驻卡片信息",Ne=k(),Ee=N("div"),re(qe.$$.fragment),At=k(),re(et.$$.fragment),Ct=k(),re(st.$$.fragment),Be=k(),re(J.$$.fragment),Ti=k(),re(dt.$$.fragment),Ai=k(),re(gt.$$.fragment),Ci=k(),re(_t.$$.fragment),G(l,"margin","auto 0"),a(n,"class","configP_title svelte-gqty0r"),a(_,"class","s_title"),a(m,"class","s_panel"),a(p,"class","section svelte-gqty0r"),a(x,"class","s_title"),a(ne,"class","s_panel"),a(V,"class","section svelte-gqty0r"),a(ee,"class","s_title"),a(Ze,"class","s_panel"),a(te,"class","s_title"),a(Ee,"class","s_panel"),a(E,"class","section svelte-gqty0r"),a(ue,"class","section svelte-gqty0r"),a(i,"class","configP_holder svelte-gqty0r"),a(e,"class","configP svelte-gqty0r");},m(O,ge){D(O,e,ge),g(e,i),g(i,n),g(n,l),g(n,o),g(n,s),le(r,s,null),g(i,f),Ye&&Ye.m(i,null),g(i,d),g(i,p),g(p,_),g(p,I),g(p,m),le(M,m,null),g(m,h),g(m,y),g(m,v),le(w,m,null),g(m,C),g(m,L),g(m,R),le(A,m,null),g(m,P),g(m,U),g(m,W),le(T,m,null),g(m,pe),le(Le,m,null),g(m,ye),Qe&&Qe.m(m,null),g(m,Me),g(m,He),g(m,ie),le(ce,m,null),g(i,Q),g(i,V),g(V,x),g(V,se),g(V,ne),le(ae,ne,null),g(ne,ve),le(_e,ne,null),g(i,we),g(i,ue),g(ue,ee),g(ue,ke),g(ue,Ze),le(fe,Ze,null),g(ue,Te),g(ue,E),g(E,te),g(E,Ne),g(E,Ee),le(qe,Ee,null),g(Ee,At),le(et,Ee,null),g(Ee,Ct),le(st,Ee,null),g(Ee,Be),le(J,Ee,null),g(Ee,Ti),le(dt,Ee,null),g(Ee,Ai),le(gt,Ee,null),g(Ee,Ci),le(_t,Ee,null),Yt=!0,oi||(Ei=[$(s,"click",t[25]),$(e,"click",Do(t[46]))],oi=!0);},p(O,ge){ge[0]&128&&(c=O[7].includes("m-team")),c?Ye?(Ye.p(O,ge),ge[0]&128&&Y(Ye,1)):(Ye=In(O),Ye.c(),Y(Ye,1),Ye.m(i,d)):Ye&&(Ve(),Z(Ye,1,1,()=>{Ye=null;}),xe());const si={};ge[0]&128&&(si.label=O[7].includes("m-team")?"":"原始表格模式仅支持点击图片显示iframe和加载下一页"),!u&&ge[0]&16&&(u=!0,si.checked=O[4],Fe(()=>u=!1)),M.$set(si);const Bi={};!S&&ge[0]&4&&(S=!0,Bi.checked=O[2],Fe(()=>S=!1)),w.$set(Bi);const Vi={};!j&&ge[0]&2048&&(j=!0,Vi.checked=O[11],Fe(()=>j=!1)),A.$set(Vi);const xi={};!H&&ge[0]&4096&&(H=!0,xi.checked=O[12],Fe(()=>H=!1)),T.$set(xi);const Fi={};!Ce&&ge[0]&8192&&(Ce=!0,Fi.checked=O[13],Fe(()=>Ce=!1)),Le.$set(Fi),O[12]?Qe?(Qe.p(O,ge),ge[0]&4096&&Y(Qe,1)):(Qe=Mn(O),Qe.c(),Y(Qe,1),Qe.m(m,Me)):Qe&&(Ve(),Z(Qe,1,1,()=>{Qe=null;}),xe());const Xi={};!F&&ge[0]&1024&&(F=!0,Xi.checked=O[10],Fe(()=>F=!1)),ce.$set(Xi);const ri={};ge[0]&32768&&(ri.title_fixed=`卡片列数: ${O[15].column}`),ge[0]&32768|ge[1]&8388608&&(ri.$$scope={dirty:ge,ctx:O}),ae.$set(ri);const ai={};ge[0]&32768&&(ai.title_fixed=`卡片间距: ${O[15].gap}px`),ge[0]&32768|ge[1]&8388608&&(ai.$$scope={dirty:ge,ctx:O}),_e.$set(ai);const Ji={};!be&&ge[0]&8&&(be=!0,Ji.checked=O[3].all,Fe(()=>be=!1)),fe.$set(Ji);const $i={};!yt&&ge[0]&8&&(yt=!0,$i.checked=O[3].title,Fe(()=>yt=!1)),qe.$set($i);const Ki={};!vt&&ge[0]&8&&(vt=!0,Ki.checked=O[3].free,Fe(()=>vt=!1)),et.$set(Ki);const qi={};!Re&&ge[0]&8&&(Re=!0,qi.checked=O[3].sub_title,Fe(()=>Re=!1)),st.$set(qi);const en={};!de&&ge[0]&8&&(de=!0,en.checked=O[3].tags,Fe(()=>de=!1)),J.$set(en);const tn={};!ii&&ge[0]&8&&(ii=!0,tn.checked=O[3].size_download_collect,Fe(()=>ii=!1)),dt.$set(tn);const nn={};!ni&&ge[0]&8&&(ni=!0,nn.checked=O[3].upload_time,Fe(()=>ni=!1)),gt.$set(nn);const ln={};!li&&ge[0]&8&&(li=!0,ln.checked=O[3].statistics,Fe(()=>li=!1)),_t.$set(ln);},i(O){Yt||(Y(r.$$.fragment,O),Y(Ye),Y(M.$$.fragment,O),Y(w.$$.fragment,O),Y(A.$$.fragment,O),Y(T.$$.fragment,O),Y(Le.$$.fragment,O),Y(Qe),Y(ce.$$.fragment,O),Y(ae.$$.fragment,O),Y(_e.$$.fragment,O),Y(fe.$$.fragment,O),Y(qe.$$.fragment,O),Y(et.$$.fragment,O),Y(st.$$.fragment,O),Y(J.$$.fragment,O),Y(dt.$$.fragment,O),Y(gt.$$.fragment,O),Y(_t.$$.fragment,O),It(()=>{Yt&&(ht||(ht=Mt(e,Nt,{duration:100},!0)),ht.run(1));}),Yt=!0);},o(O){Z(r.$$.fragment,O),Z(Ye),Z(M.$$.fragment,O),Z(w.$$.fragment,O),Z(A.$$.fragment,O),Z(T.$$.fragment,O),Z(Le.$$.fragment,O),Z(Qe),Z(ce.$$.fragment,O),Z(ae.$$.fragment,O),Z(_e.$$.fragment,O),Z(fe.$$.fragment,O),Z(qe.$$.fragment,O),Z(et.$$.fragment,O),Z(st.$$.fragment,O),Z(J.$$.fragment,O),Z(dt.$$.fragment,O),Z(gt.$$.fragment,O),Z(_t.$$.fragment,O),ht||(ht=Mt(e,Nt,{duration:100},!1)),ht.run(0),Yt=!1;},d(O){O&&b(e),oe(r),Ye&&Ye.d(),oe(M),oe(w),oe(A),oe(T),oe(Le),Qe&&Qe.d(),oe(ce),oe(ae),oe(_e),oe(fe),oe(qe),oe(et),oe(st),oe(J),oe(dt),oe(gt),oe(_t),O&&ht&&ht.end(),oi=!1,Ae(Ei);}}}function In(t){let e,i,n,l,o,s,r;function f(d){t[27](d);}let c={title_fixed:"隐藏Gay分区卡片",title_green:"隐藏(默认)",title_red:"显示(狠人)",func:t[26]};return t[8].mt.hide_gay!==void 0&&(c.checked=t[8].mt.hide_gay),o=new Ge({props:c}),je.push(()=>Xe(o,"checked",f)),{c(){e=N("div"),i=N("h1"),i.textContent="MT专用配置",n=k(),l=N("div"),re(o.$$.fragment),a(i,"class","s_title"),a(l,"class","s_panel"),a(e,"class","section svelte-gqty0r");},m(d,p){D(d,e,p),g(e,i),g(e,n),g(e,l),le(o,l,null),r=!0;},p(d,p){const _={};!s&&p[0]&256&&(s=!0,_.checked=d[8].mt.hide_gay,Fe(()=>s=!1)),o.$set(_);},i(d){r||(Y(o.$$.fragment,d),r=!0);},o(d){Z(o.$$.fragment,d),r=!1;},d(d){d&&b(e),oe(o);}}}function Mn(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:[us]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment);},m(n,l){le(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]&8388608&&(o.$$scope={dirty:l,ctx:n}),e.$set(o);},i(n){i||(Y(e.$$.fragment,n),i=!0);},o(n){Z(e.$$.fragment,n),i=!1;},d(n){oe(e,n);}}}function us(t){let e,i,n;return {c(){e=N("input"),a(e,"type","range"),a(e,"min","0"),a(e,"max","1500"),a(e,"step","100"),a(e,"list","values");},m(l,o){D(l,e,o),Rt(e,t[14]),i||(n=[$(e,"change",t[34]),$(e,"input",t[34])],i=!0);},p(l,o){o[0]&16384&&Rt(e,l[14]);},d(l){l&&b(e),i=!1,Ae(n);}}}function fs(t){let e,i,n;return {c(){e=N("input"),a(e,"type","range"),a(e,"min","2"),a(e,"max","7"),a(e,"step","1"),a(e,"list","values");},m(l,o){D(l,e,o),Rt(e,t[15].column),i||(n=[$(e,"change",t[36]),$(e,"input",t[36]),$(e,"change",window.CHANGE_CARD_LAYOUT)],i=!0);},p(l,o){o[0]&32768&&Rt(e,l[15].column);},d(l){l&&b(e),i=!1,Ae(n);}}}function ds(t){let e,i,n;return {c(){e=N("input"),a(e,"type","range"),a(e,"min","2"),a(e,"max","100"),a(e,"step","1"),a(e,"list","values");},m(l,o){D(l,e,o),Rt(e,t[15].gap),i||(n=[$(e,"change",t[37]),$(e,"input",t[37]),$(e,"change",window.CHANGE_CARD_LAYOUT)],i=!0);},p(l,o){o[0]&32768&&Rt(e,l[15].gap);},d(l){l&&b(e),i=!1,Ae(n);}}}function gs(t){let e,i,n,l,o,s,r,f,c,d,p,_,I,m,M,u,h,y,v,w,S,C,L,R;function A(T,H){return T[4]?cs:as}let j=A(t),P=j(t);f=new rs({});let U=t[10]&&mn(t),W=t[9]&&pn(t);return {c(){e=N("div"),i=N("div"),n=k(),l=N("div"),o=N("button"),P.c(),s=k(),r=N("button"),re(f.$$.fragment),c=k(),d=N("div"),d.textContent="整理",p=k(),_=N("button"),I=N("div"),m=N("img"),u=k(),h=N("div"),h.textContent="配置",y=k(),U&&U.c(),v=k(),W&&W.c(),w=k(),S=N("div"),S.textContent="重置瀑布流配置边栏位置",a(i,"class","sideP__title svelte-gqty0r"),a(o,"class","sideP__btn svelte-gqty0r"),a(r,"class","sideP__btn svelte-gqty0r"),De(m.src,M=ts)||a(m,"src",M),a(m,"alt","SVG_CONFIG"),a(_,"class","sideP__btn svelte-gqty0r"),a(l,"class","sideP__out svelte-gqty0r"),a(e,"class","sideP svelte-gqty0r"),G(e,"top",t[5].y+"px"),G(e,"left",t[5].x+"px"),G(e,"background-color",t[6]),G(e,"display",t[7].includes("m-team")?t[8].mt.path_in_browse?"block":"none":"block"),a(S,"id","reset_panel_pos"),a(S,"class","svelte-gqty0r");},m(T,H){D(T,e,H),g(e,i),g(e,n),g(e,l),g(l,o),P.m(o,null),g(l,s),g(l,r),le(f,r,null),g(r,c),g(r,d),g(l,p),g(l,_),g(_,I),g(I,m),g(_,u),g(_,h),g(l,y),U&&U.m(l,null),t[24](e),D(T,v,H),W&&W.m(T,H),D(T,w,H),D(T,S,H),C=!0,L||(R=[$(i,"mousedown",t[16]),$(o,"click",t[18]),$(r,"click",t[19]),$(_,"click",t[23]),$(S,"click",t[17])],L=!0);},p(T,H){j===(j=A(T))&&P?P.p(T,H):(P.d(1),P=j(T),P&&(P.c(),P.m(o,null))),T[10]?U?U.p(T,H):(U=mn(T),U.c(),U.m(l,null)):U&&(U.d(1),U=null),(!C||H[0]&32)&&G(e,"top",T[5].y+"px"),(!C||H[0]&32)&&G(e,"left",T[5].x+"px"),(!C||H[0]&64)&&G(e,"background-color",T[6]),(!C||H[0]&384)&&G(e,"display",T[7].includes("m-team")?T[8].mt.path_in_browse?"block":"none":"block"),T[9]?W?(W.p(T,H),H[0]&512&&Y(W,1)):(W=pn(T),W.c(),Y(W,1),W.m(w.parentNode,w)):W&&(Ve(),Z(W,1,1,()=>{W=null;}),xe());},i(T){C||(Y(f.$$.fragment,T),Y(W),C=!0);},o(T){Z(f.$$.fragment,T),Z(W),C=!1;},d(T){T&&b(e),P.d(),oe(f),U&&U.d(),t[24](null),T&&b(v),W&&W.d(T),T&&b(w),T&&b(S),L=!1,Ae(R);}}}function Nn(t,e,i){return t<=e&&(t=e),t>=i&&(t=i),t}function _s(t,e,i){let n,l,o,s,r,f,c,d,p,_,I,m,M,u,h,y;X(t,Ke,E=>i(50,n=E)),X(t,Pt,E=>i(2,l=E)),X(t,tt,E=>i(3,o=E)),X(t,Bt,E=>i(51,s=E)),X(t,Ot,E=>i(4,r=E)),X(t,gi,E=>i(5,f=E)),X(t,Tt,E=>i(6,c=E)),X(t,Lt,E=>i(7,d=E)),X(t,Je,E=>i(8,p=E)),X(t,mt,E=>i(9,_=E)),X(t,cn,E=>i(10,I=E)),X(t,Vt,E=>i(11,m=E)),X(t,Ni,E=>i(12,M=E)),X(t,at,E=>i(13,u=E)),X(t,yi,E=>i(14,h=E)),X(t,Ht,E=>i(15,y=E));let v,w=!1,S=0,C=0;const L=E=>{E.preventDefault(),w=!0,S=E.clientX-v.getBoundingClientRect().left,C=E.clientY-v.getBoundingClientRect().top;},R=E=>{if(!w)return;const te=Nn(E.clientX-S,0,window.innerWidth-(v.getBoundingClientRect().width+5)),Ne=Nn(E.clientY-C,0,window.innerHeight-(v.getBoundingClientRect().height+5));me(gi,f={x:te,y:Ne},f);},A=()=>{w=!1;};function j(){f.x==0&&f.y==0&&alert("无需重置瀑布流边栏位置"),me(gi,f={x:0,y:0},f);}function P(){me(Ot,r=!r,r),window.CHANGE_CARD_LAYOUT&&window.CHANGE_CARD_LAYOUT();}function U(){s.layout();}function W(){me(tt,o.all=!o.all,o),setTimeout(()=>{Ie();},0);}let T=l?"滚动加载":"按钮加载";function H(){me(Pt,l=!l,l),i(1,T=l?"滚动加载":"按钮加载");}function pe(){me(Ke,n=n==0?1:0,n);}ti(()=>(window.addEventListener("mousemove",R),window.addEventListener("mouseup",A),()=>{window.removeEventListener("mousemove",R),window.removeEventListener("mouseup",A);}));const Le=()=>{me(mt,_=!_,_);};function Ce(E){je[E?"unshift":"push"](()=>{v=E,i(0,v);});}const ye=()=>me(mt,_=!1,_),Me=()=>{window.NEXUS_TOOLS();};function He(E){t.$$.not_equal(p.mt.hide_gay,E)&&(p.mt.hide_gay=E,Je.set(p));}const ie=()=>{window.CHANGE_CARD_LAYOUT();};function ce(E){r=E,Ot.set(r);}function F(E){l=E,Pt.set(l);}function Q(E){m=E,Vt.set(m);}function V(E){M=E,Ni.set(M);}function x(E){u=E,at.set(u);}function se(){h=ci(this.value),yi.set(h);}function ne(E){I=E,cn.set(I);}function ae(){y.column=ci(this.value),Ht.set(y);}function ve(){y.gap=ci(this.value),Ht.set(y);}function _e(E){t.$$.not_equal(o.all,E)&&(o.all=E,tt.set(o));}function we(E){t.$$.not_equal(o.title,E)&&(o.title=E,tt.set(o));}function ue(E){t.$$.not_equal(o.free,E)&&(o.free=E,tt.set(o));}function ee(E){t.$$.not_equal(o.sub_title,E)&&(o.sub_title=E,tt.set(o));}function ke(E){t.$$.not_equal(o.tags,E)&&(o.tags=E,tt.set(o));}function Ze(E){t.$$.not_equal(o.size_download_collect,E)&&(o.size_download_collect=E,tt.set(o));}function fe(E){t.$$.not_equal(o.upload_time,E)&&(o.upload_time=E,tt.set(o));}function be(E){t.$$.not_equal(o.statistics,E)&&(o.statistics=E,tt.set(o));}return [v,T,l,o,r,f,c,d,p,_,I,m,M,u,h,y,L,j,P,U,W,H,pe,Le,Ce,ye,Me,He,ie,ce,F,Q,V,x,se,ne,ae,ve,_e,we,ue,ee,ke,Ze,fe,be,()=>me(mt,_=!1,_)]}class Wl extends Ue{constructor(e){super(),We(this,e,_s,gs,Pe,{},null,[-1,-1]);}}const rt={torrentListTable:"table.torrents",TORRENT_LIST_TO_JSON:hs,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(){function t(n){return document.getElementById(n)}t("ksearchboxmain")&&(t("ksearchboxmain").style.display="none");const e=document.querySelector('a[href="?sort=7&type=asc&seeders_begin=1"]');e&&(e.childNodes[0].style.color="black");let i=document.querySelector("img#nexus-preview");i&&(i.style.zIndex=12e3),yn();},pageLoaded:function(){var t=document.createElement("script");t.src="https://kamept.com/js/nexus.js",document.head.appendChild(t),yn();}};function yn(){Array.from(document.querySelectorAll(".torrentname")).forEach(e=>e.addEventListener("click",function(i){i.preventDefault(),Ke.set(1),ft.set(e.children[0].children[0].children[1].querySelector("a").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.alt:"";if(!o)return;const r=l.parentNode.href,f=r.slice(-3),c=l.cloneNode(!0);c.className="card-category-img";const d=rt.INDEX++,p=n.querySelector(".torrentname a"),_=p?p.textContent.trim():"",I=p.href,m=/id=(\d+)&hit/,M=I.match(m),u=M?parseInt(M[1]):null,h=n.querySelector(".torrentname img").getAttribute("data-src"),y=n.querySelector(".torrentname td:nth-child(2)"),v=y.childNodes.length-1,w=y.childNodes[v],S=w.nodeName=="#text"?w.textContent.trim():"",C=n.querySelectorAll(".torrentname img.sticky"),L=C[0]?C[0].title:"",R=Array.from(n.querySelectorAll(".torrentname font")),A=n.querySelector('img[class^="pro_"]'),j=A?"_"+A.alt.replace(/\s+/g,""):"",P=j?R.pop():"",U=P?P.innerText:"",W=n.querySelectorAll(".torrentname span"),T=Array.from(W);let H=W?T.map(ue=>ue.textContent.trim()):[];U!=""&&(H.shift(),T.shift());const pe=T.map(ue=>ue.outerHTML).join(""),Le=`download.php?id=${u}`,Ce=`javascript: bookmark(${u},${d});`,Me=n.querySelector(".torrentname a[id^='bookmark']").children[0].alt,He=n.querySelector("td.rowfollow:nth-child(3) a"),ie=He?parseInt(He.textContent):0,ce=n.querySelector("td:nth-child(4) span"),F=ce?ce.title:"",Q=n.querySelector("td:nth-child(5)"),V=Q?Q.textContent.trim():"",x=n.querySelector("td:nth-child(6) a"),se=x?parseInt(x.textContent):0,ne=n.querySelector("td:nth-child(7)"),ae=ne?parseInt(ne.textContent):0,ve=n.querySelector("td:nth-child(8) a"),_e=ve?parseInt(ve.textContent):0,we={torrentIndex:d,_categoryImg:c,category:o,categoryLink:r,categoryNumber:f,torrent_name:_,torrentLink:I,torrentId:u,picLink:h,place_at_the_top:C,pattMsg:L,downloadLink:Le,collectLink:Ce,collectState:Me,tempTagDom:R,freeTypeImg:A,free_type:j,free_remaining_time:U,raw_tags:pe,tagsDOM:T,tags:H,description:S,upload_date:F,comments:ie,size:V,seeders:se,leechers:ae,snatched:_e};i.push(we);}),i}const ms="data:image/svg+xml;base64,PHN2ZyANCiAgc3Ryb2tlPSJjdXJyZW50Q29sb3IiDQogIGZpbGw9ImN1cnJlbnRDb2xvciINCiAgc3Ryb2tlLXdpZHRoPSIwIg0KICB2aWV3Qm94PSIwIDAgMjQgMjQiDQogIGhlaWdodD0iMjUiDQogIHdpZHRoPSIyNSINCiAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICBzdHlsZT0iDQogICAgdmVydGljYWwtYWxpZ246IG1pZGRsZTsgDQogICAgLS1kYXJrcmVhZGVyLWlubGluZS1maWxsOiBjdXJyZW50Q29sb3I7IA0KICAgIC0tZGFya3JlYWRlci1pbmxpbmUtc3Ryb2tlOiBjdXJyZW50Q29sb3I7Ig0KPg0KICA8cGF0aCANCiAgICB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:"NEW_MT",torrentListTable:"div.app-content__inner",LOADING_PIC:"/static/media/logo.80b63235eaf702e44a8d.png",HOST:"https://test2.m-team.cc",API:{search:{url:"/torrent/search",method:"POST"},genDlToken:{url:"/torrent/genDlToken",method:"POST"},collection:{url:"/torrent/collection",method:"POST"}},ICON:{SIZE:ms,SEEDERS:ps,LEECHERS:Is,DOWNLOAD:Ms,COLLECTION:Ns,PIN:"/static/trans.gif",PREVIEW:Ul},CATEGORY_COLOR:{115:"#f52bcb",120:"#f52bcb",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",100:"#c74854",401:"#c74854",419:"#c01a20",420:"#c74854",421:"#00a0e9",439:"#1b2a51",105:"#276fb8",403:"#c74854",402:"#276fb8",435:"#4dbebd",438:"#1897d6",444:"#23ac38",404:"#23ac38",449:"#996c34",405:"#996c34",443:"#7FC269",427:"#7FC269",441:"#7FC269",442:"#7FC269",447:"#f39800",423:"#f39800",448:"#f39800",450:"#996c34",407:"#23ac38",422:"#f39800",409:"#996c34",110:"#8a57a1",406:"#8a57a1",408:"#8a57a1",434:"#8a57a1"},CATEGORY_NAME:{115:"AV(有码)",120:"AV(无码)",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",100:"Movie",401:"Movie SD",419:"Movie HD",420:"Movie DVD",421:"Movie BluRay",439:"Movie Remux",105:"TV",403:"TV SD",402:"TV HD",435:"TV DVDiSo",438:"TV BluRay",444:"Documentary",404:"Documentary",449:"Anime",405:"Anime",443:"教育",427:"教育文档",441:"教育影片",442:"教育音频",447:"Game",423:"Game",448:"TV Game",450:"其他",407:"Sport",422:"软件",409:"Other",110:"Music",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(){let t=ys(),e=vs();return t&&e},pageLoaded:function(){}};function ys(){const t=Array.from(document.querySelectorAll(".ant-table-row-level-0 .ant-col a[href]"));return t.forEach(function(e){e.addEventListener("click",function(i){i.preventDefault(),Ke.set(1),ft.set(e.href);});}),t.length}function vs(){document.querySelectorAll(".ant-image-mask").forEach(i=>{i.remove();});const e=Array.from(document.querySelectorAll(".torrent-list__thumbnail"));return e.forEach(i=>{i.classList+=" preview_Origin";}),e.length}const Li=".preview_Origin";document.body.addEventListener("mouseover",function(t){if(t.target.matches(Li)){const e=t,i=t.target;Ii(e,i);}});document.body.addEventListener("mouseout",function(t){t.target.matches(Li)&&Ql();});document.body.addEventListener("mousemove",function(t){if(t.target.matches(Li)){const e=t.target;Mi(t,e);}});const ze={"kamept.com":rt,"kp.m-team.cc":Se,"xp.m-team.io":Se,"xp.m-team.cc":Se,"ap.m-team.cc":Se,"test2.m-team.cc":Se};function Ft(){return window.location.hostname}let _i;function Dt(){var i;if(_i)return _i;const t=Ft();console.log("|-> 当前站点: ",t),console.log("|-> 当前页面: ",window.location.pathname);const e=((i=ze[t])==null?void 0:i.torrentListTable)??null;return console.log("|-> 站点selector:",e),_i=e,e}function ws(){var e,i;const t=Ft();return console.log("PT架构: ",(e=ze[t])==null?void 0:e.architecture),(i=ze[t])==null?void 0:i.architecture}function Hl(){var e;const t=Ft();return (e=ze[t])==null?void 0:e.get_bg_color()}const pt={CARD_BORDER:0,CARD_INDEX:0,PIC_HOVER_STYLE:0},K={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:()=>(K.PAGE_CURRENT=K.PAGE_CURRENT??0,K.PAGE_NEXT=K.PAGE_CURRENT+1,K.PAGE_CURRENT),$getNextPage:()=>K.PAGE_NEXT,$turnPage:()=>{K.PAGE_CURRENT=K.PAGE_NEXT,K.PAGE_NEXT=K.PAGE_CURRENT+1;},$setPage:t=>{K.PAGE_CURRENT=t,K.PAGE_NEXT=K.PAGE_CURRENT+1;}},bs={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:Ul},Zl="data:image/svg+xml;base64,PHN2Zw0KICB3aWR0aD0iMjU2cHgiDQogIGhlaWdodD0iMjU2cHgiDQogIHZpZXdCb3g9IjAgMCAyNC4wMCAyNC4wMCINCiAgZmlsbD0ibm9uZSINCiAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAwLCAwKSINCj4NCiAgPGcNCiAgICBpZD0iU1ZHUmVwb19iZ0NhcnJpZXIiDQogICAgc3Ryb2tlLXdpZHRoPSIwIg0KICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAsMCksIHNjYWxlKDEpIg0KICAvPg0KICA8Zw0KICAgIGlkPSJTVkdSZXBvX3RyYWNlckNhcnJpZXIiDQogICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIg0KICAgIHN0cm9rZS1saW5lam9pb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guOTM3Wk0xNy45MzcgMTVDMTguNDg5MyAxNSAxOC45MzcgMTUuNDQ3NyAxOC45MzcgMTZIMjAuOTM3QzIwLjkzNyAxNC4zNDMxIDE5LjU5MzggMTMgMTcuOTM3IDEzVjE1Wk0xNi45Njg0IDE1Ljc0OTNDMTcuMDc5NSAxNS4zMTc3IDE3LjQ3MjQgMTUgMTcuOTM3IDE1VjEzQzE2LjUzNzcgMTMgMTUuMzY0NSAxMy45NTcgMTUuMDMxNiAxNS4yNTA3TDE2Ljk2ODQgMTUuNzQ5M1pNMTcuOTM3NSAyMkgxNy45NDc1VjIwSDE3LjkzNzVWMjJaIg0KICAgICAgZmlsbD0iI2MwMDAwMCINCiAgICAvPg0KICA8L2c+DQo8L3N2Zz4=";function vn(t){let e,i,n,l=(t[0].tempTagDom?t[0].tempTagDom.map(Wn).join(" "):"")+"",o,s,r=t[0].torrent_name+"",f,c;return {c(){e=N("div"),i=N("a"),n=new Oe(!1),o=k(),s=N("b"),f=z(r),n.a=o,a(i,"class","two-lines svelte-1d0ss3t"),a(i,"href",c=t[0].torrentLink),a(i,"target","_blank"),a(e,"class","card-title svelte-1d0ss3t");},m(d,p){D(d,e,p),g(e,i),n.m(l,i),g(i,o),g(i,s),g(s,f);},p(d,p){p&1&&l!==(l=(d[0].tempTagDom?d[0].tempTagDom.map(Wn).join(" "):"")+"")&&n.p(l),p&1&&r!==(r=d[0].torrent_name+"")&&q(f,r),p&1&&c!==(c=d[0].torrentLink)&&a(i,"href",c);},d(d){d&&b(e);}}}function Ds(t){let e,i,n,l,o,s,r,f;return {c(){e=N("div"),i=N("div"),n=N("img"),o=k(),s=N("div"),s.textContent="图片加载失败",G(n,"height","100%"),G(n,"width","100px"),De(n.src,l=Zl)||a(n,"src",l),a(n,"alt","pic error"),a(n,"class","svelte-1d0ss3t"),a(e,"class","pic_error"),a(e,"style","");},m(c,d){D(c,e,d),g(e,i),g(i,n),g(e,o),g(e,s),r||(f=$(n,"load",t[8]),r=!0);},p:B,d(c){c&&b(e),r=!1,f();}}}function Ls(t){let e,i,n,l,o,s;return {c(){e=N("img"),a(e,"class","nexus-lazy-load_Kesa svelte-1d0ss3t"),De(e.src,i=rt.LOADING_PIC)||a(e,"src",i),a(e,"data-src",n=t[0].picLink),a(e,"alt",l=t[0].torrentName);},m(r,f){D(r,e,f),o||(s=[$(e,"load",t[8]),$(e,"error",t[13])],o=!0);},p(r,f){f&1&&n!==(n=r[0].picLink)&&a(e,"data-src",n),f&1&&l!==(l=r[0].torrentName)&&a(e,"alt",l);},d(r){r&&b(e),o=!1,Ae(s);}}}function wn(t){let e,i,n;return {c(){e=N("div"),i=N("img"),G(i,"pointer-events","none"),De(i.src,n=t[2].PREVIEW)||a(i,"src",n),a(i,"alt","PREVIEW"),a(i,"class","svelte-1d0ss3t"),a(e,"class","hover-trigger svelte-1d0ss3t");},m(l,o){D(l,e,o),g(e,i);},p(l,o){o&4&&!De(i.src,n=l[2].PREVIEW)&&a(i,"src",n);},d(l){l&&b(e);}}}function bn(t){let e,i,n,l=t[0].tagsDOM.map(t[14]).join("")+"",o,s,r,f,c,d=t[2].SIZE+"",p,_=t[0].size+"",I,m,M,u,h=t[2].DOWNLOAD+"",y,v,w,S,C,L,R,A,j,P=(t[0].collectState=="Unbookmarked"?t[2].COLLET:t[2].COLLETED)+"",U,W,T,H,pe,Le,Ce,ye=t[0].upload_date+"",Me,He,ie,ce,F=t[2].COMMENT+"",Q,V,x=t[0].comments+"",se,ne,ae,ve=t[2].SEEDERS+"",_e,we,ue=t[0].seeders+"",ee,ke,Ze,fe=t[2].LEECHERS+"",be,Te,E=t[0].leechers+"",te,Ne,Ee,qe=t[2].SNATCHED+"",yt,At,et=t[0].snatched+"",vt,Ct,st,Re=(t[0].free_type||t[0].pattMsg)&&Dn(t),Be=t[0].description&&Cn(t);return {c(){Re&&Re.c(),e=k(),Be&&Be.c(),i=k(),n=N("div"),o=k(),s=N("div"),r=N("div"),f=N("div"),c=new Oe(!1),p=z(" "),I=z(_),m=z(`\r
\r
\r
\r
`),M=N("div"),u=new Oe(!1),y=z(` \r
`),v=N("b"),w=N("a"),S=z("下载"),L=z(`\r
\r
\r
\r
`),R=N("div"),A=N("div"),j=new Oe(!1),U=z(`\r
`),W=N("b"),W.textContent="收藏",H=k(),pe=N("div"),Le=N("b"),Le.textContent="上传时间:",Ce=k(),Me=z(ye),He=k(),ie=N("div"),ce=new Oe(!1),Q=z(" "),V=N("b"),se=z(x),ne=z(` \r
`),ae=new Oe(!1),_e=z(" "),we=N("b"),ee=z(ue),ke=z(` \r
`),Ze=new Oe(!1),be=z(" "),Te=N("b"),te=z(E),Ne=z(` \r
`),Ee=new Oe(!1),yt=z(" "),At=N("b"),vt=z(et),a(n,"class","cl-tags svelte-1d0ss3t"),c.a=p,a(f,"class","cl-center svelte-1d0ss3t"),u.a=y,a(w,"href",C=t[0].downloadLink),a(M,"class","cl-center svelte-1d0ss3t"),j.a=U,a(A,"class","btnCollet cl-center svelte-1d0ss3t"),a(A,"id",T="tI_"+t[0].torrentIndex),a(R,"class","cl-center svelte-1d0ss3t"),a(r,"class","card-line svelte-1d0ss3t"),a(pe,"class","card-line svelte-1d0ss3t"),ce.a=Q,ae.a=_e,Ze.a=be,Ee.a=yt,a(ie,"class","card-line svelte-1d0ss3t"),a(s,"class","card-details svelte-1d0ss3t");},m(J,de){Re&&Re.m(J,de),D(J,e,de),Be&&Be.m(J,de),D(J,i,de),D(J,n,de),n.innerHTML=l,D(J,o,de),D(J,s,de),g(s,r),g(r,f),c.m(d,f),g(f,p),g(f,I),g(r,m),g(r,M),u.m(h,M),g(M,y),g(M,v),g(v,w),g(w,S),g(r,L),g(r,R),g(R,A),j.m(P,A),g(A,U),g(A,W),g(s,H),g(s,pe),g(pe,Le),g(pe,Ce),g(pe,Me),g(s,He),g(s,ie),ce.m(F,ie),g(ie,Q),g(ie,V),g(V,se),g(ie,ne),ae.m(ve,ie),g(ie,_e),g(ie,we),g(we,ee),g(ie,ke),Ze.m(fe,ie),g(ie,be),g(ie,Te),g(Te,te),g(ie,Ne),Ee.m(qe,ie),g(ie,yt),g(ie,At),g(At,vt),Ct||(st=$(A,"click",t[15]),Ct=!0);},p(J,de){J[0].free_type||J[0].pattMsg?Re?Re.p(J,de):(Re=Dn(J),Re.c(),Re.m(e.parentNode,e)):Re&&(Re.d(1),Re=null),J[0].description?Be?Be.p(J,de):(Be=Cn(J),Be.c(),Be.m(i.parentNode,i)):Be&&(Be.d(1),Be=null),de&1&&l!==(l=J[0].tagsDOM.map(J[14]).join("")+"")&&(n.innerHTML=l),de&4&&d!==(d=J[2].SIZE+"")&&c.p(d),de&1&&_!==(_=J[0].size+"")&&q(I,_),de&4&&h!==(h=J[2].DOWNLOAD+"")&&u.p(h),de&1&&C!==(C=J[0].downloadLink)&&a(w,"href",C),de&5&&P!==(P=(J[0].collectState=="Unbookmarked"?J[2].COLLET:J[2].COLLETED)+"")&&j.p(P),de&1&&T!==(T="tI_"+J[0].torrentIndex)&&a(A,"id",T),de&1&&ye!==(ye=J[0].upload_date+"")&&q(Me,ye),de&4&&F!==(F=J[2].COMMENT+"")&&ce.p(F),de&1&&x!==(x=J[0].comments+"")&&q(se,x),de&4&&ve!==(ve=J[2].SEEDERS+"")&&ae.p(ve),de&1&&ue!==(ue=J[0].seeders+"")&&q(ee,ue),de&4&&fe!==(fe=J[2].LEECHERS+"")&&Ze.p(fe),de&1&&E!==(E=J[0].leechers+"")&&q(te,E),de&4&&qe!==(qe=J[2].SNATCHED+"")&&Ee.p(qe),de&1&&et!==(et=J[0].snatched+"")&&q(vt,et);},d(J){Re&&Re.d(J),J&&b(e),Be&&Be.d(J),J&&b(i),J&&b(n),J&&b(o),J&&b(s),Ct=!1,st();}}}function Dn(t){let e,i,n,l,o,s=t[0].place_at_the_top.length!=0&&Ln(t),r=t[0].freeTypeImg&&Tn(t),f=t[0].free_remaining_time&&An(t);return {c(){e=N("div"),i=N("div"),s&&s.c(),n=k(),r&&r.c(),l=k(),f&&f.c(),a(i,"class",o="top_and_free "+t[0].free_type+" svelte-1d0ss3t"),a(e,"class","card-alter svelte-1d0ss3t");},m(c,d){D(c,e,d),g(e,i),s&&s.m(i,null),g(i,n),r&&r.m(i,null),g(i,l),f&&f.m(i,null);},p(c,d){c[0].place_at_the_top.length!=0?s?s.p(c,d):(s=Ln(c),s.c(),s.m(i,n)):s&&(s.d(1),s=null),c[0].freeTypeImg?r?r.p(c,d):(r=Tn(c),r.c(),r.m(i,l)):r&&(r.d(1),r=null),c[0].free_remaining_time?f?f.p(c,d):(f=An(c),f.c(),f.m(i,null)):f&&(f.d(1),f=null),d&1&&o!==(o="top_and_free "+c[0].free_type+" svelte-1d0ss3t")&&a(i,"class",o);},d(c){c&&b(e),s&&s.d(),r&&r.d(),f&&f.d();}}}function Ln(t){let e,i=Array.from(t[0].place_at_the_top).map(Un)+" ",n;return {c(){e=new Oe(!1),n=nt(),e.a=n;},m(l,o){e.m(i,l,o),D(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&&b(n),l&&e.d();}}}function Tn(t){let e,i=t[0].freeTypeImg.outerHTML+"",n;return {c(){e=new Oe(!1),n=nt(),e.a=n;},m(l,o){e.m(i,l,o),D(l,n,o);},p(l,o){o&1&&i!==(i=l[0].freeTypeImg.outerHTML+"")&&e.p(i);},d(l){l&&b(n),l&&e.d();}}}function An(t){let e,i,n=t[0].free_remaining_time+"",l;return {c(){e=z(" "),i=N("b"),l=z(n);},m(o,s){D(o,e,s),D(o,i,s),g(i,l);},p(o,s){s&1&&n!==(n=o[0].free_remaining_time+"")&&q(l,n);},d(o){o&&b(e),o&&b(i);}}}function Cn(t){let e,i=t[0].description+"",n,l;return {c(){e=N("a"),n=z(i),a(e,"class","card-description svelte-1d0ss3t"),a(e,"href",l=t[0].torrentLink);},m(o,s){D(o,e,s),g(e,n);},p(o,s){s&1&&i!==(i=o[0].description+"")&&q(n,i),s&1&&l!==(l=o[0].torrentLink)&&a(e,"href",l);},d(o){o&&b(e);}}}function En(t){let e,i,n,l,o,s,r=t[6].free&&(t[0].free_type||t[0].pattMsg)&&Sn(t),f=t[6].sub_title&&t[0].description&&On(t),c=t[6].tags&&Pn(t),d=t[6].size_download_collect&&Rn(t),p=t[6].upload_time&&Yn(t),_=t[6].statistics&&Qn(t);return {c(){r&&r.c(),e=k(),f&&f.c(),i=k(),c&&c.c(),n=k(),l=N("div"),d&&d.c(),o=k(),p&&p.c(),s=k(),_&&_.c(),a(l,"class","card-details svelte-1d0ss3t");},m(I,m){r&&r.m(I,m),D(I,e,m),f&&f.m(I,m),D(I,i,m),c&&c.m(I,m),D(I,n,m),D(I,l,m),d&&d.m(l,null),g(l,o),p&&p.m(l,null),g(l,s),_&&_.m(l,null);},p(I,m){I[6].free&&(I[0].free_type||I[0].pattMsg)?r?r.p(I,m):(r=Sn(I),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),I[6].sub_title&&I[0].description?f?f.p(I,m):(f=On(I),f.c(),f.m(i.parentNode,i)):f&&(f.d(1),f=null),I[6].tags?c?c.p(I,m):(c=Pn(I),c.c(),c.m(n.parentNode,n)):c&&(c.d(1),c=null),I[6].size_download_collect?d?d.p(I,m):(d=Rn(I),d.c(),d.m(l,o)):d&&(d.d(1),d=null),I[6].upload_time?p?p.p(I,m):(p=Yn(I),p.c(),p.m(l,s)):p&&(p.d(1),p=null),I[6].statistics?_?_.p(I,m):(_=Qn(I),_.c(),_.m(l,null)):_&&(_.d(1),_=null);},d(I){r&&r.d(I),I&&b(e),f&&f.d(I),I&&b(i),c&&c.d(I),I&&b(n),I&&b(l),d&&d.d(),p&&p.d(),_&&_.d();}}}function Sn(t){let e,i,n,l,o,s=t[0].place_at_the_top.length!=0&&kn(t),r=t[0].freeTypeImg&&jn(t),f=t[0].free_remaining_time&&zn(t);return {c(){e=N("div"),i=N("div"),s&&s.c(),n=k(),r&&r.c(),l=k(),f&&f.c(),a(i,"class",o="top_and_free "+t[0].free_type+" svelte-1d0ss3t"),a(e,"class","card-alter svelte-1d0ss3t");},m(c,d){D(c,e,d),g(e,i),s&&s.m(i,null),g(i,n),r&&r.m(i,null),g(i,l),f&&f.m(i,null);},p(c,d){c[0].place_at_the_top.length!=0?s?s.p(c,d):(s=kn(c),s.c(),s.m(i,n)):s&&(s.d(1),s=null),c[0].freeTypeImg?r?r.p(c,d):(r=jn(c),r.c(),r.m(i,l)):r&&(r.d(1),r=null),c[0].free_remaining_time?f?f.p(c,d):(f=zn(c),f.c(),f.m(i,null)):f&&(f.d(1),f=null),d&1&&o!==(o="top_and_free "+c[0].free_type+" svelte-1d0ss3t")&&a(i,"class",o);},d(c){c&&b(e),s&&s.d(),r&&r.d(),f&&f.d();}}}function kn(t){let e,i=Array.from(t[0].place_at_the_top).map(Hn)+" ",n;return {c(){e=new Oe(!1),n=nt(),e.a=n;},m(l,o){e.m(i,l,o),D(l,n,o);},p(l,o){o&1&&i!==(i=Array.from(l[0].place_at_the_top).map(Hn)+" ")&&e.p(i);},d(l){l&&b(n),l&&e.d();}}}function jn(t){let e,i=t[0].freeTypeImg.outerHTML+"",n;return {c(){e=new Oe(!1),n=nt(),e.a=n;},m(l,o){e.m(i,l,o),D(l,n,o);},p(l,o){o&1&&i!==(i=l[0].freeTypeImg.outerHTML+"")&&e.p(i);},d(l){l&&b(n),l&&e.d();}}}function zn(t){let e,i,n=t[0].free_remaining_time+"",l;return {c(){e=z(" "),i=N("b"),l=z(n);},m(o,s){D(o,e,s),D(o,i,s),g(i,l);},p(o,s){s&1&&n!==(n=o[0].free_remaining_time+"")&&q(l,n);},d(o){o&&b(e),o&&b(i);}}}function On(t){let e,i=t[0].description+"",n,l;return {c(){e=N("a"),n=z(i),a(e,"class","card-description svelte-1d0ss3t"),a(e,"href",l=t[0].torrentLink);},m(o,s){D(o,e,s),g(e,n);},p(o,s){s&1&&i!==(i=o[0].description+"")&&q(n,i),s&1&&l!==(l=o[0].torrentLink)&&a(e,"href",l);},d(o){o&&b(e);}}}function Pn(t){let e,i=t[0].tagsDOM.map(t[16]).join("")+"";return {c(){e=N("div"),a(e,"class","cl-tags svelte-1d0ss3t");},m(n,l){D(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&&b(e);}}}function Rn(t){let e,i,n,l=t[2].SIZE+"",o,s=t[0].size+"",r,f,c,d,p=t[2].DOWNLOAD+"",_,I,m,M,u,h,y,v,w,S=(t[0].collectState=="Unbookmarked"?t[2].COLLET:t[2].COLLETED)+"",C,L,R,A,j;return {c(){e=N("div"),i=N("div"),n=new Oe(!1),o=z(" "),r=z(s),f=z(`\r
\r
\r
\r
`),c=N("div"),d=new Oe(!1),_=z(` \r
`),I=N("b"),m=N("a"),M=z("下载"),h=z(`\r
\r
\r
\r
`),y=N("div"),v=N("div"),w=new Oe(!1),C=z(`\r
`),L=N("b"),L.textContent="收藏",n.a=o,a(i,"class","cl-center svelte-1d0ss3t"),d.a=_,a(m,"href",u=t[0].downloadLink),a(c,"class","cl-center svelte-1d0ss3t"),w.a=C,a(v,"class","btnCollet cl-center svelte-1d0ss3t"),a(v,"id",R="tI_"+t[0].torrentIndex),a(y,"class","cl-center svelte-1d0ss3t"),a(e,"class","card-line svelte-1d0ss3t");},m(P,U){D(P,e,U),g(e,i),n.m(l,i),g(i,o),g(i,r),g(e,f),g(e,c),d.m(p,c),g(c,_),g(c,I),g(I,m),g(m,M),g(e,h),g(e,y),g(y,v),w.m(S,v),g(v,C),g(v,L),A||(j=$(v,"click",t[17]),A=!0);},p(P,U){U&4&&l!==(l=P[2].SIZE+"")&&n.p(l),U&1&&s!==(s=P[0].size+"")&&q(r,s),U&4&&p!==(p=P[2].DOWNLOAD+"")&&d.p(p),U&1&&u!==(u=P[0].downloadLink)&&a(m,"href",u),U&5&&S!==(S=(P[0].collectState=="Unbookmarked"?P[2].COLLET:P[2].COLLETED)+"")&&w.p(S),U&1&&R!==(R="tI_"+P[0].torrentIndex)&&a(v,"id",R);},d(P){P&&b(e),A=!1,j();}}}function Yn(t){let e,i,n,l=t[0].upload_date+"",o;return {c(){e=N("div"),i=N("b"),i.textContent="上传时间:",n=k(),o=z(l),a(e,"class","card-line svelte-1d0ss3t");},m(s,r){D(s,e,r),g(e,i),g(e,n),g(e,o);},p(s,r){r&1&&l!==(l=s[0].upload_date+"")&&q(o,l);},d(s){s&&b(e);}}}function Qn(t){let e,i,n=t[2].COMMENT+"",l,o,s=t[0].comments+"",r,f,c,d=t[2].SEEDERS+"",p,_,I=t[0].seeders+"",m,M,u,h=t[2].LEECHERS+"",y,v,w=t[0].leechers+"",S,C,L,R=t[2].SNATCHED+"",A,j,P=t[0].snatched+"",U;return {c(){e=N("div"),i=new Oe(!1),l=z(" "),o=N("b"),r=z(s),f=z(` \r
`),c=new Oe(!1),p=z(" "),_=N("b"),m=z(I),M=z(` \r
`),u=new Oe(!1),y=z(" "),v=N("b"),S=z(w),C=z(` \r
`),L=new Oe(!1),A=z(" "),j=N("b"),U=z(P),i.a=l,c.a=p,u.a=y,L.a=A,a(e,"class","card-line svelte-1d0ss3t");},m(W,T){D(W,e,T),i.m(n,e),g(e,l),g(e,o),g(o,r),g(e,f),c.m(d,e),g(e,p),g(e,_),g(_,m),g(e,M),u.m(h,e),g(e,y),g(e,v),g(v,S),g(e,C),L.m(R,e),g(e,A),g(e,j),g(j,U);},p(W,T){T&4&&n!==(n=W[2].COMMENT+"")&&i.p(n),T&1&&s!==(s=W[0].comments+"")&&q(r,s),T&4&&d!==(d=W[2].SEEDERS+"")&&c.p(d),T&1&&I!==(I=W[0].seeders+"")&&q(m,I),T&4&&h!==(h=W[2].LEECHERS+"")&&u.p(h),T&1&&w!==(w=W[0].leechers+"")&&q(S,w),T&4&&R!==(R=W[2].SNATCHED+"")&&L.p(R),T&1&&P!==(P=W[0].snatched+"")&&q(U,P);},d(W){W&&b(e);}}}function Ts(t){let e,i,n,l=t[0].category+"",o,s,r,f,c,d,p,_=t[0].torrentIndex+1+"",I,m,M,u,h,y,v=(t[6].title||t[3])&&vn(t);function w(j,P){return j[4]?Ds:Ls}let S=w(t),C=S(t),L=t[7]&&wn(t),R=(t[6].all||t[3])&&bn(t),A=!(t[6].all||t[3])&&En(t);return {c(){e=N("div"),i=N("div"),n=N("div"),o=z(l),r=k(),v&&v.c(),f=k(),c=N("div"),C.c(),d=k(),p=N("div"),I=z(_),m=k(),L&&L.c(),M=k(),R&&R.c(),u=k(),A&&A.c(),a(n,"class","card-category svelte-1d0ss3t"),a(n,"data-href",s=t[0].categoryLink),G(n,"background-color",rt.CATEGORY[t[0].categoryNumber]??"transparent"),G(n,"color",rt.CATEGORY[t[0].categoryNumber]?Gn(rt.CATEGORY[t[0].categoryNumber]):"black"),a(p,"class","card-index svelte-1d0ss3t"),a(c,"class","card-image svelte-1d0ss3t"),a(i,"class","card-holder svelte-1d0ss3t"),a(e,"class","card svelte-1d0ss3t"),G(e,"width",t[1]+"px"),G(e,"z-index",1e4-t[0].torrentIndex),G(e,"background-color",t[5]);},m(j,P){D(j,e,P),g(e,i),g(i,n),g(n,o),g(i,r),v&&v.m(i,null),g(i,f),g(i,c),C.m(c,null),g(c,d),g(c,p),g(p,I),g(c,m),L&&L.m(c,null),g(i,M),R&&R.m(i,null),g(i,u),A&&A.m(i,null),h||(y=[$(c,"click",t[10]),$(i,"mouseenter",t[11]),$(i,"mouseleave",t[12])],h=!0);},p(j,[P]){P&1&&l!==(l=j[0].category+"")&&q(o,l),P&1&&s!==(s=j[0].categoryLink)&&a(n,"data-href",s),P&1&&G(n,"background-color",rt.CATEGORY[j[0].categoryNumber]??"transparent"),P&1&&G(n,"color",rt.CATEGORY[j[0].categoryNumber]?Gn(rt.CATEGORY[j[0].categoryNumber]):"black"),j[6].title||j[3]?v?v.p(j,P):(v=vn(j),v.c(),v.m(i,f)):v&&(v.d(1),v=null),S===(S=w(j))&&C?C.p(j,P):(C.d(1),C=S(j),C&&(C.c(),C.m(c,d))),P&1&&_!==(_=j[0].torrentIndex+1+"")&&q(I,_),j[7]?L?L.p(j,P):(L=wn(j),L.c(),L.m(c,null)):L&&(L.d(1),L=null),j[6].all||j[3]?R?R.p(j,P):(R=bn(j),R.c(),R.m(i,u)):R&&(R.d(1),R=null),j[6].all||j[3]?A&&(A.d(1),A=null):A?A.p(j,P):(A=En(j),A.c(),A.m(i,null)),P&2&&G(e,"width",j[1]+"px"),P&1&&G(e,"z-index",1e4-j[0].torrentIndex),P&32&&G(e,"background-color",j[5]);},i:B,o:B,d(j){j&&b(e),v&&v.d(),C.d(),L&&L.d(),R&&R.d(),A&&A.d(),h=!1,Ae(y);}}}function Gn(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 Wn=t=>t.outerHTML,Un=t=>t.outerHTML,Hn=t=>t.outerHTML;function As(t,e,i){let n,l,o,s,r;X(t,ft,L=>i(18,n=L)),X(t,Ke,L=>i(19,l=L)),X(t,Tt,L=>i(5,o=L)),X(t,tt,L=>i(6,s=L)),X(t,at,L=>i(7,r=L));function f(){Ie();}function c(L,R){try{window.location.href=L,i(0,p.collectState=p.collectState=="Unbookmarked"?"Bookmarked":"Unbookmarked",p),console.log(`执行脚本${L}成功, 已经收藏或者取消~`);}catch(A){console.error(A);}}function d(){me(Ke,l=1,l),me(ft,n=p.torrentLink+"#kdescr",n);}let{torrentInfo:p}=e,{cardWidth:_}=e,{ICON:I}=e,m=!1;function M(){i(3,m=!0);}function u(){i(3,m=!1);}let h=!1;const y=()=>{i(4,h=!0);},v=L=>{const R=document.createElement("div");return R.innerHTML=L.outerHTML,R.outerHTML},w=()=>c(p.collectLink,"tI_"+p.torrentIndex),S=L=>{const R=document.createElement("div");return R.innerHTML=L.outerHTML,R.outerHTML},C=()=>c(p.collectLink,"tI_"+p.torrentIndex);return t.$$set=L=>{"torrentInfo"in L&&i(0,p=L.torrentInfo),"cardWidth"in L&&i(1,_=L.cardWidth),"ICON"in L&&i(2,I=L.ICON);},[p,_,I,m,h,o,s,r,f,c,d,M,u,y,v,w,S,C]}class Cs extends Ue{constructor(e){super(),We(this,e,As,Ts,Pe,{torrentInfo:0,cardWidth:1,ICON:2});}}function Zn(t,e,i){const n=t.slice();return n[23]=e[i],n}function Es(t){let e;return {c(){e=N("div"),e.textContent="else";},m(i,n){D(i,e,n);},p:B,i:B,o:B,d(i){i&&b(e);}}}function Ss(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 f=Zn(t,o,r),c=s(f);i.set(c,e[r]=Bn(c,f));}return {c(){for(let r=0;r<e.length;r+=1)e[r].c();n=nt();},m(r,f){for(let c=0;c<e.length;c+=1)e[c]&&e[c].m(r,f);D(r,n,f),l=!0;},p(r,f){f&5&&(o=r[2],Ve(),e=Ol(e,f,s,1,r,o,i,n.parentNode,zl,Bn,n,Zn),xe());},i(r){if(!l){for(let f=0;f<o.length;f+=1)Y(e[f]);l=!0;}},o(r){for(let f=0;f<e.length;f+=1)Z(e[f]);l=!1;},d(r){for(let f=0;f<e.length;f+=1)e[f].d(r);r&&b(n);}}}function Bn(t,e){let i,n,l;return n=new Cs({props:{torrentInfo:e[23],cardWidth:e[0].CARD_WIDTH,ICON:bs}}),{key:t,first:null,c(){i=nt(),re(n.$$.fragment),this.first=i;},m(o,s){D(o,i,s),le(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||(Y(n.$$.fragment,o),l=!0);},o(o){Z(n.$$.fragment,o),l=!1;},d(o){o&&b(i),oe(n,o);}}}function ks(t){let e=t[5].normal+"",i;return {c(){i=z(e);},m(n,l){D(n,i,l);},p:B,d(n){n&&b(i);}}}function js(t){let e=t[5].suspend+"",i;return {c(){i=z(e);},m(n,l){D(n,i,l);},p:B,d(n){n&&b(i);}}}function zs(t){let e=t[5].disable+"",i;return {c(){i=z(e);},m(n,l){D(n,i,l);},p:B,d(n){n&&b(i);}}}function Os(t){let e,i,n,l,o,s,r,f,c;const d=[Ss,Es],p=[];function _(u,h){return u[3]=="kamept.com"?0:1}e=_(t),i=p[e]=d[e](t);function I(u,h){return u[4]?zs:u[1]?js:ks}let m=I(t),M=m(t);return {c(){i.c(),n=k(),l=N("div"),o=N("button"),M.c(),a(o,"id","turnPage"),o.disabled=s=t[4]||t[1],a(o,"class","svelte-kydsmq");},m(u,h){p[e].m(u,h),D(u,n,h),D(u,l,h),g(l,o),M.m(o,null),r=!0,f||(c=$(o,"click",t[6]),f=!0);},p(u,[h]){let y=e;e=_(u),e===y?p[e].p(u,h):(Ve(),Z(p[y],1,1,()=>{p[y]=null;}),xe(),i=p[e],i?i.p(u,h):(i=p[e]=d[e](u),i.c()),Y(i,1),i.m(n.parentNode,n)),m===(m=I(u))&&M?M.p(u,h):(M.d(1),M=m(u),M&&(M.c(),M.m(o,null))),(!r||h&18&&s!==(s=u[4]||u[1]))&&(o.disabled=s);},i(u){r||(Y(i),r=!0);},o(u){Z(i),r=!1;},d(u){p[e].d(u),u&&b(n),u&&b(l),M.d(),f=!1,c();}}}function Ps(t,e,i){var R;let n,l,o,s,r,f;X(t,Bt,A=>i(15,n=A)),X(t,Ht,A=>i(10,l=A)),X(t,Vt,A=>i(11,o=A)),X(t,Lt,A=>i(3,s=A)),X(t,Pt,A=>i(4,r=A)),X(t,Tt,A=>i(16,f=A));let{originTable:c}=e,{waterfallNode:d}=e;window.NEXUS_TOOLS=bt;function p(){_(l.column,l.gap),Ie("fast"),Ie("fast");}window.CHANGE_CARD_LAYOUT=p;function _(A,j=10){if(A<=1||j<=1){console.warn("卡片列数或卡片间隔过小, 列数不小于2, 间隔不小于1");return}const U=(document.querySelector("div.waterfall").clientWidth-(A-1)*j)/A;return Array.from(document.querySelectorAll(".card")).forEach(W=>W.style.width=U+"px"),w&&(i(9,w.options.columnWidth=U,w),i(9,w.options.gutter=j,w),w.layout()),U}let I=!1,m=!1;const M={normal:"点击加载下一页",suspend:`下一页加载CD: ${K.GAP} ms`,disable:"不可用"};function u(A){A&&A.preventDefault(),r||S(),I||(i(1,I=!0),setTimeout(()=>{i(1,I=!1);},K.GAP));}window.$$$turnPage=u,me(Lt,s=Ft(),s);const h=Hl();me(Tt,f=h,f),console.log("背景颜色:",h);const y=ze[s];let v=[];v=[...v,...y.TORRENT_LIST_TO_JSON(c)],console.log("---> 环境: ","production"),(R=ze[s])==null||R.special();let w,S;function C(){const A=document.body.scrollHeight,j=document.documentElement.clientHeight;(document.documentElement.scrollTop||document.body.scrollTop)+j>=A-K.DISTANCE&&(r?S():console.log("加载模式: 按钮"),Ie());}S=Pl(L,K.GAP);function L(){console.log("到页面底部啦!!! Scrolled to bottom!");const A=new URLSearchParams(window.location.search);K.PAGE_CURRENT=K.IS_ORIGIN?Number(A.get("page")):K.PAGE_CURRENT,K.IS_ORIGIN&&(K.PAGE_ORIGIN=K.PAGE_CURRENT),K.PAGE_CURRENT?console.log("当前页数: "+K.PAGE_CURRENT):(console.log("网页链接没有page参数, 无法跳转下一页, 生成PAGE.PAGE_CURRENT为0"),K.PAGE_CURRENT=0),K.PAGE_NEXT=parseInt(K.PAGE_CURRENT)+1,A.set("page",K.PAGE_NEXT),K.NEXT_URL=window.location.origin+window.location.pathname+"?"+A.toString(),console.log("New URL:",K.NEXT_URL),fetch(K.NEXT_URL).then(j=>j.text()).then(j=>{var H,pe;const W=new DOMParser().parseFromString(j,"text/html").querySelector(Dt()),T=Array.from(W.cloneNode(!0).children[0].children);T[0].children[1].textContent=`
↓ 新加载第${K.PAGE_NEXT-K.PAGE_ORIGIN}页`,console.log(K.PAGE_ORIGIN),c.children[0].append(...T),typeof((H=ze[s])==null?void 0:H.pageLoaded)=="function"&&((pe=ze[s])==null||pe.pageLoaded()),i(2,v=[...v,...y.TORRENT_LIST_TO_JSON(W)]),K.IS_ORIGIN=!1,K.PAGE_CURRENT=K.PAGE_NEXT,m=!0,setTimeout(()=>{m=!1;},1e3);}).catch(j=>{console.warn("获取不到下页信息, 可能到头了"),console.warn(j);});}return ti(()=>{i(9,w=new Masonry(d,{itemSelector:".card",columnWidth:_(l.column,l.gap),gutter:l.gap,transitionDuration:o?.4:0})),_(l.column,l.gap),window.masonry=w,me(Bt,n=w,n),w.layout("fast"),w.layout("fast"),d.addEventListener("click",A=>{A.target===A.currentTarget&&(w&&w.layout(),console.log("Masonry 已整理~"));}),window.addEventListener("scroll",function(){C();}),bt();}),ko(()=>{w&&m&&(w.reloadItems(),w.layout(),w.once("layoutComplete",()=>{bt();}));}),t.$$set=A=>{"originTable"in A&&i(7,c=A.originTable),"waterfallNode"in A&&i(8,d=A.waterfallNode);},t.$$.update=()=>{t.$$.dirty&2560&&w&&i(9,w.options.transitionDuration=o?"0.4s":"0",w),t.$$.dirty&1537&&w&&(i(0,pt.CARD_WIDTH=_(l.column,l.gap),pt),console.log("卡片宽度: ",pt.CARD_WIDTH),p());},[pt,I,v,s,r,M,u,c,d,w,l,o]}class Rs extends Ue{constructor(e){super(),We(this,e,Ps,Os,Pe,{originTable:7,waterfallNode:8});}}function Ys(t){let e=t[2].normal+"",i;return {c(){i=z(e);},m(n,l){D(n,i,l);},p:B,d(n){n&&b(i);}}}function Qs(t){let e=t[2].suspend+"",i;return {c(){i=z(e);},m(n,l){D(n,i,l);},p:B,d(n){n&&b(i);}}}function Gs(t){let e=t[2].disable+"",i;return {c(){i=z(e);},m(n,l){D(n,i,l);},p:B,d(n){n&&b(i);}}}function Ws(t){let e,i,n,l,o;function s(c,d){return c[1]?Gs:c[0]?Qs:Ys}let r=s(t),f=r(t);return {c(){e=N("div"),i=N("button"),f.c(),a(i,"id","_turnPage"),i.disabled=n=t[1]||t[0],a(i,"class","svelte-1gtc1kh");},m(c,d){D(c,e,d),g(e,i),f.m(i,null),l||(o=$(i,"click",t[3]),l=!0);},p(c,[d]){r===(r=s(c))&&f?f.p(c,d):(f.d(1),f=r(c),f&&(f.c(),f.m(i,null))),d&3&&n!==(n=c[1]||c[0])&&(i.disabled=n);},i:B,o:B,d(c){c&&b(e),f.d(),l=!1,o();}}}const Vn=3e3;function Us(t,e,i){let n;X(t,Pt,r=>i(1,n=r));let l=!1;const o={normal:"点击加载下一页",suspend:`下一页加载CD: ${Vn} ms`,disable:"不可用"};function s(r){r.preventDefault(),window.$$$turnPage(),l||(i(0,l=!0),setTimeout(()=>{i(0,l=!1);},Vn));}return [l,n,o,s]}class Bl extends Ue{constructor(e){super(),We(this,e,Us,Ws,Pe,{});}}function Hs(t){let e,i,n,l;return {c(){e=he("svg"),i=he("g"),n=he("circle"),l=he("path"),a(n,"cx","12"),a(n,"cy","12"),a(n,"r","10"),a(n,"stroke","#1C274C"),a(n,"stroke-width","1.5"),a(l,"d","M14.5 9.50002L9.5 14.5M9.49998 9.5L14.5 14.5"),a(l,"stroke","#1C274C"),a(l,"stroke-width","1.5"),a(l,"stroke-linecap","round"),a(i,"id","SVGRepo_iconCarrier"),a(e,"viewBox","0 0 24 24"),a(e,"fill","none"),a(e,"xmlns","http://www.w3.org/2000/svg");},m(o,s){D(o,e,s),g(e,i),g(i,n),g(i,l);},p:B,i:B,o:B,d(o){o&&b(e);}}}class Vl extends Ue{constructor(e){super(),We(this,e,null,Hs,Pe,{});}}function xn(t){let e,i,n,l,o,s,r,f,c,d,p;return r=new Vl({}),{c(){e=N("div"),i=N("div"),n=N("iframe"),o=k(),s=N("div"),re(r.$$.fragment),De(n.src,l=t[1])||a(n,"src",l),a(n,"frameborder","0"),a(n,"title","wow"),G(n,"width",(ze[t[2]]?ze[t[2]].Iframe_Width:1e3)+"px"),a(n,"class","svelte-1exar3b"),a(s,"class","_iframeCloseBtn svelte-1exar3b"),a(i,"class","_iframe svelte-1exar3b"),a(e,"id","_iframe"),a(e,"class","svelte-1exar3b");},m(_,I){D(_,e,I),g(e,i),g(i,n),g(i,o),g(i,s),le(r,s,null),c=!0,d||(p=[$(s,"click",t[3]),$(e,"click",t[3])],d=!0);},p(_,I){(!c||I&2&&!De(n.src,l=_[1]))&&a(n,"src",l),(!c||I&4)&&G(n,"width",(ze[_[2]]?ze[_[2]].Iframe_Width:1e3)+"px");},i(_){c||(Y(r.$$.fragment,_),It(()=>{c&&(f||(f=Mt(e,Nt,{duration:300},!0)),f.run(1));}),c=!0);},o(_){Z(r.$$.fragment,_),f||(f=Mt(e,Nt,{duration:300},!1)),f.run(0),c=!1;},d(_){_&&b(e),oe(r),_&&f&&f.end(),d=!1,Ae(p);}}}function Zs(t){let e,i,n,l,o=t[0]&&xn(t);return {c(){o&&o.c(),e=nt();},m(s,r){o&&o.m(s,r),D(s,e,r),i=!0,n||(l=$(window,"keydown",t[4],!0),n=!0);},p(s,[r]){s[0]?o?(o.p(s,r),r&1&&Y(o,1)):(o=xn(s),o.c(),Y(o,1),o.m(e.parentNode,e)):o&&(Ve(),Z(o,1,1,()=>{o=null;}),xe());},i(s){i||(Y(o),i=!0);},o(s){Z(o),i=!1;},d(s){o&&o.d(s),s&&b(e),n=!1,l();}}}function Bs(t,e,i){let n,l,o,s,r;X(t,mt,m=>i(9,n=m)),X(t,Ke,m=>i(0,l=m)),X(t,Ot,m=>i(5,o=m)),X(t,ft,m=>i(1,s=m)),X(t,Lt,m=>i(2,r=m)),console.log(`[${new Date().toLocaleTimeString()}]<--------------------------HMR-------------------------->`);const f=document.querySelector(Dt());for(;!Masonry;)console.log("等待初始化......");const c=f.parentNode,d=document.createElement("div");d.classList.add("waterfall"),c.insertBefore(d,f.nextSibling);const p=document.createElement("div");p.classList.add("nextPage"),c.insertBefore(p,f.nextSibling);function _(){me(Ke,l=0,l);}function I(m){m.key==="Escape"&&(console.log(m),me(Ke,l=0,l),me(mt,n=!1,n));}return ti(()=>{new Wl({target:document.body}),new Rs({target:d,props:{originTable:f,waterfallNode:d}}),new Bl({target:p});}),t.$$.update=()=>{t.$$.dirty&32&&(f.style.display=o?"none":"block",p.style.display=o?"none":"block",d.style.display=o?"block":"none");},[l,s,r,_,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BzdHJva2U9IiMwMDAwMDAiDQogICAgICBzdHJva2Utd2lkdGg9IjEuOCINCiAgICAgIHN0cm9rZS1saW5lY2FwPSJyb3VuZCINCiAgICAgIHN0cm9rZS1saW5lam9pbj0icm91bmQiDQogICAgLz4NCiAgPC9nPg0KPC9zdmc+";function Fs(t){let e,i,n;return {c(){e=he("svg"),i=he("path"),n=he("path"),a(i,"d","M7 7h10v2H7zm0 4h7v2H7z"),a(n,"d","M20 2H4c-1.103 0-2 .897-2 2v18l5.333-4H20c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2zm0 14H6.667L4 18V4h16v12z"),a(e,"stroke","currentColor"),a(e,"fill","currentColor"),a(e,"stroke-width","0"),a(e,"viewBox","0 0 24 24"),a(e,"height","18"),a(e,"width","18"),a(e,"xmlns","http://www.w3.org/2000/svg"),G(e,"vertical-align","middle");},m(l,o){D(l,e,o),g(e,i),g(e,n);},p:B,i:B,o:B,d(l){l&&b(e);}}}class xl extends Ue{constructor(e){super(),We(this,e,null,Fs,Pe,{});}}function Xs(t){let e,i,n;return {c(){e=he("svg"),i=he("path"),n=he("path"),a(i,"d","M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z"),a(n,"d","M13 7h-2v6h6v-2h-4z"),a(e,"stroke","currentColor"),a(e,"fill","currentColor"),a(e,"stroke-width","0"),a(e,"viewBox","0 0 24 24"),a(e,"height","18"),a(e,"width","18"),a(e,"xmlns","http://www.w3.org/2000/svg"),G(e,"vertical-align","middle");},m(l,o){D(l,e,o),g(e,i),g(e,n);},p:B,i:B,o:B,d(l){l&&b(e);}}}class Fl extends Ue{constructor(e){super(),We(this,e,null,Xs,Pe,{});}}function Js(t){let e,i,n;return {c(){e=he("svg"),i=he("path"),n=he("path"),a(i,"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"),a(n,"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"),a(e,"stroke","currentColor"),a(e,"fill","currentColor"),a(e,"stroke-width","0"),a(e,"viewBox","0 0 24 24"),a(e,"height","25"),a(e,"width","25"),a(e,"xmlns","http://www.w3.org/2000/svg"),G(e,"vertical-align","middle"),G(e,"--darkreader-inline-fill","currentColor"),G(e,"--darkreader-inline-stroke","currentColor");},m(l,o){D(l,e,o),g(e,i),g(e,n);},p:B,i:B,o:B,d(l){l&&b(e);}}}class Xl extends Ue{constructor(e){super(),We(this,e,null,Js,Pe,{});}}function $s(t){let e,i;return {c(){e=he("svg"),i=he("path"),a(i,"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"),a(e,"viewBox","64 64 896 896"),a(e,"focusable","false"),a(e,"data-icon","download"),a(e,"width","1em"),a(e,"height","1em"),a(e,"fill","currentColor"),a(e,"aria-hidden","true"),a(e,"xmlns","http://www.w3.org/2000/svg");},m(n,l){D(n,e,l),g(e,i);},p:B,i:B,o:B,d(n){n&&b(e);}}}class Jl extends Ue{constructor(e){super(),We(this,e,null,$s,Pe,{});}}function Fn(t,e,i){const n=t.slice();return n[39]=e[i],n[2]=i,n}function Xn(t,e,i){const n=t.slice();return n[39]=e[i],n[2]=i,n}function Jn(t){let e,i,n,l=t[0].name+"",o,s;return {c(){e=N("div"),i=N("a"),n=N("b"),o=z(l),a(i,"class","two-lines svelte-rhfb99"),a(i,"href",s="/detail/"+t[0].id),a(i,"target","_blank"),a(e,"class","card-title svelte-rhfb99");},m(r,f){D(r,e,f),g(e,i),g(i,n),g(n,o);},p(r,f){f[0]&1&&l!==(l=r[0].name+"")&&q(o,l),f[0]&1&&s!==(s="/detail/"+r[0].id)&&a(i,"href",s);},d(r){r&&b(e);}}}function Ks(t){let e,i,n,l,o,s,r,f;return {c(){e=N("div"),i=N("div"),n=N("img"),o=k(),s=N("div"),s.textContent="图片加载失败",G(n,"height","100%"),G(n,"width","100px"),De(n.src,l=Zl)||a(n,"src",l),a(n,"alt","pic error"),a(n,"class","svelte-rhfb99"),a(e,"class","pic_error"),a(e,"style","");},m(c,d){D(c,e,d),g(e,i),g(i,n),g(e,o),g(e,s),r||(f=$(n,"load",t[13]),r=!0);},p:B,d(c){c&&b(e),r=!1,f();}}}function qs(t){let e;function i(o,s){return o[0].category=="440"&&o[11].mt.hide_gay==!0?tr:er}let n=i(t),l=n(t);return {c(){l.c(),e=nt();},m(o,s){l.m(o,s),D(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&&b(e);}}}function er(t){let e;function i(o,s){return o[0].imageList[0]?nr:ir}let n=i(t),l=n(t);return {c(){l.c(),e=nt();},m(o,s){l.m(o,s),D(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&&b(e);}}}function tr(t){let e,i,n,l,o,s,r,f;return {c(){e=N("div"),i=N("div"),n=N("img"),o=k(),s=N("div"),s.innerHTML="GAY WARNING<br/>同志警告",G(n,"height","100%"),G(n,"width","60px"),G(n,"border-radius","20px"),De(n.src,l=gr)||a(n,"src",l),a(n,"alt","pic error"),a(n,"class","svelte-rhfb99"),G(s,"color","white"),G(s,"font-weight","600"),G(s,"font-size","16px"),a(e,"class","pic_error"),G(e,"height","auto"),G(e,"padding","10px"),G(e,"gap","10px"),G(e,"line-height","24px"),G(e,"background-color",t[24]);},m(c,d){D(c,e,d),g(e,i),g(i,n),g(e,o),g(e,s),r||(f=$(n,"load",t[13]),r=!0);},p:B,d(c){c&&b(e),r=!1,f();}}}function ir(t){let e,i,n,l,o,s,r,f;return {c(){e=N("div"),i=N("div"),n=N("img"),o=k(),s=N("div"),s.textContent="本种没有图片",G(n,"height","100%"),G(n,"width","100px"),De(n.src,l=xs)||a(n,"src",l),a(n,"alt","no pic"),a(n,"class","svelte-rhfb99"),a(e,"class","pic_error"),a(e,"style","");},m(c,d){D(c,e,d),g(e,i),g(i,n),g(e,o),g(e,s),r||(f=$(n,"load",t[13]),r=!0);},p:B,d(c){c&&b(e),r=!1,f();}}}function nr(t){let e,i,n,l,o;return {c(){e=N("img"),a(e,"class","nexus-lazy-load_Kesa svelte-rhfb99"),De(e.src,i=Se.LOADING_PIC)||a(e,"src",i),a(e,"data-src",t[25]),a(e,"alt",n=t[0].name);},m(s,r){D(s,e,r),l||(o=[$(e,"load",t[13]),$(e,"error",t[26])],l=!0);},p(s,r){r[0]&1&&n!==(n=s[0].name)&&a(e,"alt",n);},d(s){s&&b(e),l=!1,Ae(o);}}}function $n(t){let e,i,n;return {c(){e=N("div"),i=N("img"),G(i,"pointer-events","none"),De(i.src,n=Se.ICON.PREVIEW)||a(i,"src",n),a(i,"alt","PREVIEW"),a(i,"class","svelte-rhfb99"),a(e,"class","hover-trigger svelte-rhfb99");},m(l,o){D(l,e,o),g(e,i);},p:B,d(l){l&&b(e);}}}function Kn(t){let e,i,n,l,o,s,r,f,c,d,p=(Number(t[0].size)/1024/1024/1024).toFixed(2)+"G",_,I,m,M,u,h,y,v,w,S,C,L,R,A=`${t[19].day} 日`,j,P,U=t[19].hour?`${t[19].hour} 时`:"",W,T,H,pe,Le,Ce,ye=t[0].status.comments+"",Me,He,ie,ce,F,Q,V=t[0].status.seeders+"",x,se,ne,ae,ve,_e,we=t[0].status.leechers+"",ue,ee,ke,Ze,fe=t[0].smallDescr&&qn(t),be=(t[0].status.discount||t[0].status.toppingLevel)&&el(t),Te=t[0].labels!=0&&nl(t);c=new Xl({}),u=new Jl({});let E={ctx:t,current:null,token:null,hasCatch:!0,pending:rr,then:sr,catch:or,value:37,error:38};return qt(w=t[5],E),L=new Fl({}),pe=new xl({}),{c(){fe&&fe.c(),e=k(),be&&be.c(),i=k(),Te&&Te.c(),n=k(),l=N("div"),o=N("div"),s=N("div"),r=N("div"),f=N("span"),re(c.$$.fragment),d=z(`\r
`),_=z(p),I=z(`\r
\r
\r
\r
\r
`),m=N("div"),M=N("span"),re(u.$$.fragment),h=z(`\r
\r
\r
\r
\r
`),y=N("div"),v=N("span"),E.block.c(),S=k(),C=N("div"),re(L.$$.fragment),R=z(`\r
`),j=z(A),P=k(),W=z(U),T=k(),H=N("div"),re(pe.$$.fragment),Le=z(`\r
\r
`),Ce=N("b"),Me=z(ye),He=z(`\r
\r
`),ie=N("img"),F=z(`\r
\r
`),Q=N("b"),x=z(V),se=z(`\r
\r
`),ne=N("img"),ve=z(`\r
\r
`),_e=N("b"),ue=z(we),a(f,"class","icon_holder svelte-rhfb99"),a(r,"class","cl-btn svelte-rhfb99"),a(M,"class","icon_holder svelte-rhfb99"),a(m,"class","cl-btn svelte-rhfb99"),G(m,"cursor","pointer"),a(v,"class","icon_holder svelte-rhfb99"),a(y,"class","cl-btn svelte-rhfb99"),G(y,"cursor","pointer"),a(s,"class","cl-center svelte-rhfb99"),a(o,"class","card-line svelte-rhfb99"),a(C,"class","card-line cl-btn svelte-rhfb99"),De(ie.src,ce=Se.ICON.SEEDERS)||a(ie,"src",ce),a(ie,"alt","SVG_Seeders"),De(ne.src,ae=Se.ICON.LEECHERS)||a(ne,"src",ae),a(ne,"alt","SVG_Leechers"),a(H,"class","card-line svelte-rhfb99"),a(l,"class","card-details svelte-rhfb99");},m(te,Ne){fe&&fe.m(te,Ne),D(te,e,Ne),be&&be.m(te,Ne),D(te,i,Ne),Te&&Te.m(te,Ne),D(te,n,Ne),D(te,l,Ne),g(l,o),g(o,s),g(s,r),g(r,f),le(c,f,null),g(r,d),g(r,_),g(s,I),g(s,m),g(m,M),le(u,M,null),g(s,h),g(s,y),g(y,v),E.block.m(v,E.anchor=null),E.mount=()=>v,E.anchor=null,g(l,S),g(l,C),le(L,C,null),g(C,R),g(C,j),g(C,P),g(C,W),g(l,T),g(l,H),le(pe,H,null),g(H,Le),g(H,Ce),g(Ce,Me),g(H,He),g(H,ie),g(H,F),g(H,Q),g(Q,x),g(H,se),g(H,ne),g(H,ve),g(H,_e),g(_e,ue),ee=!0,ke||(Ze=[$(m,"click",t[20]),$(y,"click",t[21])],ke=!0);},p(te,Ne){t=te,t[0].smallDescr?fe?fe.p(t,Ne):(fe=qn(t),fe.c(),fe.m(e.parentNode,e)):fe&&(fe.d(1),fe=null),t[0].status.discount||t[0].status.toppingLevel?be?be.p(t,Ne):(be=el(t),be.c(),be.m(i.parentNode,i)):be&&(be.d(1),be=null),t[0].labels!=0?Te?Te.p(t,Ne):(Te=nl(t),Te.c(),Te.m(n.parentNode,n)):Te&&(Te.d(1),Te=null),(!ee||Ne[0]&1)&&p!==(p=(Number(t[0].size)/1024/1024/1024).toFixed(2)+"G")&&q(_,p),E.ctx=t,Ne[0]&32&&w!==(w=t[5])&&qt(w,E)||jl(E,t,Ne),(!ee||Ne[0]&1)&&ye!==(ye=t[0].status.comments+"")&&q(Me,ye),(!ee||Ne[0]&1)&&V!==(V=t[0].status.seeders+"")&&q(x,V),(!ee||Ne[0]&1)&&we!==(we=t[0].status.leechers+"")&&q(ue,we);},i(te){ee||(Y(c.$$.fragment,te),Y(u.$$.fragment,te),Y(L.$$.fragment,te),Y(pe.$$.fragment,te),ee=!0);},o(te){Z(c.$$.fragment,te),Z(u.$$.fragment,te),Z(L.$$.fragment,te),Z(pe.$$.fragment,te),ee=!1;},d(te){fe&&fe.d(te),te&&b(e),be&&be.d(te),te&&b(i),Te&&Te.d(te),te&&b(n),te&&b(l),oe(c),oe(u),E.block.d(),E.token=null,E=null,oe(L),oe(pe),ke=!1,Ae(Ze);}}}function qn(t){let e,i,n=t[0].smallDescr+"",l,o;return {c(){e=N("div"),i=N("a"),l=z(n),a(i,"href",o=t[0].torrentLink),a(i,"class","svelte-rhfb99"),a(e,"class","card-description svelte-rhfb99");},m(s,r){D(s,e,r),g(e,i),g(i,l);},p(s,r){r[0]&1&&n!==(n=s[0].smallDescr+"")&&q(l,n),r[0]&1&&o!==(o=s[0].torrentLink)&&a(i,"href",o);},d(s){s&&b(e);}}}function el(t){let e,i,n=t[0].status.toppingLevel&&tl(t),l=t[15]!="NORMAL"&&lr(t);return {c(){e=N("div"),n&&n.c(),i=k(),l&&l.c(),a(e,"class","cl-tags svelte-rhfb99");},m(o,s){D(o,e,s),n&&n.m(e,null),g(e,i),l&&l.m(e,null);},p(o,s){o[0].status.toppingLevel?n?n.p(o,s):(n=tl(o),n.c(),n.m(e,i)):n&&(n.d(1),n=null),o[15]!="NORMAL"&&l.p(o,s);},d(o){o&&b(e),n&&n.d(),l&&l.d();}}}function tl(t){let e,i=t[3],n=[];for(let l=0;l<i.length;l+=1)n[l]=il(Xn(t,i,l));return {c(){for(let l=0;l<n.length;l+=1)n[l].c();e=z(`\r
`);},m(l,o){for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(l,o);D(l,e,o);},p(l,o){if(o[0]&8){i=l[3];let s;for(s=0;s<i.length;s+=1){const r=Xn(l,i,s);n[s]?n[s].p(r,o):(n[s]=il(),n[s].c(),n[s].m(e.parentNode,e));}for(;s<n.length;s+=1)n[s].d(1);n.length=i.length;}},d(l){Sl(n,l),l&&b(e);}}}function il(t){let e,i;return {c(){e=N("img"),G(e,"background","url(/static/media/icons.8bb5446ebbbd07050285.gif) 0 -202px"),G(e,"height","14px"),G(e,"width","14px"),De(e.src,i=Se.ICON.PIN)||a(e,"src",i),a(e,"alt","PIN");},m(n,l){D(n,e,l);},p:B,d(n){n&&b(e);}}}function lr(t){let e;return {c(){e=N("div"),e.textContent=`${t[17][t[15]]}${t[16]?" : "+t[18]()+" 小时":""}`,a(e,"class","_tag svelte-rhfb99"),ot(e,"_tag_discount_free",t[15]=="FREE"),ot(e,"_tag_discount_50",t[15]=="PERCENT_50");},m(i,n){D(i,e,n);},p:B,d(i){i&&b(e);}}}function nl(t){let e,i,n,l=(t[0].labels&1)===1&&ll(),o=(t[0].labels&2)===2&&ol(),s=(t[0].labels&4)===4&&sl();return {c(){e=N("div"),l&&l.c(),i=k(),o&&o.c(),n=k(),s&&s.c(),a(e,"class","cl-tags svelte-rhfb99");},m(r,f){D(r,e,f),l&&l.m(e,null),g(e,i),o&&o.m(e,null),g(e,n),s&&s.m(e,null);},p(r,f){(r[0].labels&1)===1?l||(l=ll(),l.c(),l.m(e,i)):l&&(l.d(1),l=null),(r[0].labels&2)===2?o||(o=ol(),o.c(),o.m(e,n)):o&&(o.d(1),o=null),(r[0].labels&4)===4?s||(s=sl(),s.c(),s.m(e,null)):s&&(s.d(1),s=null);},d(r){r&&b(e),l&&l.d(),o&&o.d(),s&&s.d();}}}function ll(t){let e;return {c(){e=N("div"),e.textContent="DIY",a(e,"class","_tag _tag_diy svelte-rhfb99");},m(i,n){D(i,e,n);},d(i){i&&b(e);}}}function ol(t){let e;return {c(){e=N("div"),e.textContent="国配",a(e,"class","_tag _tag_dub svelte-rhfb99");},m(i,n){D(i,e,n);},d(i){i&&b(e);}}}function sl(t){let e;return {c(){e=N("div"),e.textContent="中字",a(e,"class","_tag _tag_sub svelte-rhfb99");},m(i,n){D(i,e,n);},d(i){i&&b(e);}}}function or(t){let e,i=t[38].message+"",n;return {c(){e=N("p"),n=z(i),G(e,"color","red");},m(l,o){D(l,e,o),g(e,n);},p(l,o){o[0]&32&&i!==(i=l[38].message+"")&&q(n,i);},d(l){l&&b(e);}}}function sr(t){let e,i,n;return {c(){e=he("svg"),i=he("path"),a(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"),a(e,"viewBox","64 64 896 896"),a(e,"focusable","false"),a(e,"data-icon","star"),a(e,"width","1em"),a(e,"height","1em"),a(e,"fill","currentColor"),a(e,"aria-hidden","true"),a(e,"style",n=t[4]?"color:orange":""),a(e,"xmlns","http://www.w3.org/2000/svg");},m(l,o){D(l,e,o),g(e,i);},p(l,o){o[0]&16&&n!==(n=l[4]?"color:orange":"")&&a(e,"style",n);},d(l){l&&b(e);}}}function rr(t){let e;return {c(){e=N("span"),e.textContent="···",G(e,"display","flex"),G(e,"align-items","center");},m(i,n){D(i,e,n);},p:B,d(i){i&&b(e);}}}function rl(t){let e,i,n,l,o,s,r,f=t[10].free&&(t[0].status.discount||t[0].status.toppingLevel)&&al(t),c=t[10].sub_title&&t[0].smallDescr&&fl(t),d=t[10].tags&&t[0].labels!=0&&dl(t),p=t[10].size_download_collect&&ml(t),_=t[10].upload_time&&pl(t),I=t[10].statistics&&Il(t);return {c(){f&&f.c(),e=k(),c&&c.c(),i=k(),d&&d.c(),n=k(),l=N("div"),p&&p.c(),o=k(),_&&_.c(),s=k(),I&&I.c(),a(l,"class","card-details svelte-rhfb99");},m(m,M){f&&f.m(m,M),D(m,e,M),c&&c.m(m,M),D(m,i,M),d&&d.m(m,M),D(m,n,M),D(m,l,M),p&&p.m(l,null),g(l,o),_&&_.m(l,null),g(l,s),I&&I.m(l,null),r=!0;},p(m,M){m[10].free&&(m[0].status.discount||m[0].status.toppingLevel)?f?f.p(m,M):(f=al(m),f.c(),f.m(e.parentNode,e)):f&&(f.d(1),f=null),m[10].sub_title&&m[0].smallDescr?c?c.p(m,M):(c=fl(m),c.c(),c.m(i.parentNode,i)):c&&(c.d(1),c=null),m[10].tags&&m[0].labels!=0?d?d.p(m,M):(d=dl(m),d.c(),d.m(n.parentNode,n)):d&&(d.d(1),d=null),m[10].size_download_collect?p?(p.p(m,M),M[0]&1024&&Y(p,1)):(p=ml(m),p.c(),Y(p,1),p.m(l,o)):p&&(Ve(),Z(p,1,1,()=>{p=null;}),xe()),m[10].upload_time?_?(_.p(m,M),M[0]&1024&&Y(_,1)):(_=pl(m),_.c(),Y(_,1),_.m(l,s)):_&&(Ve(),Z(_,1,1,()=>{_=null;}),xe()),m[10].statistics?I?(I.p(m,M),M[0]&1024&&Y(I,1)):(I=Il(m),I.c(),Y(I,1),I.m(l,null)):I&&(Ve(),Z(I,1,1,()=>{I=null;}),xe());},i(m){r||(Y(p),Y(_),Y(I),r=!0);},o(m){Z(p),Z(_),Z(I),r=!1;},d(m){f&&f.d(m),m&&b(e),c&&c.d(m),m&&b(i),d&&d.d(m),m&&b(n),m&&b(l),p&&p.d(),_&&_.d(),I&&I.d();}}}function al(t){let e,i,n=t[0].status.toppingLevel&&cl(t),l=t[15]!="NORMAL"&&ar(t);return {c(){e=N("div"),n&&n.c(),i=k(),l&&l.c(),a(e,"class","cl-tags svelte-rhfb99");},m(o,s){D(o,e,s),n&&n.m(e,null),g(e,i),l&&l.m(e,null);},p(o,s){o[0].status.toppingLevel?n?n.p(o,s):(n=cl(o),n.c(),n.m(e,i)):n&&(n.d(1),n=null),o[15]!="NORMAL"&&l.p(o,s);},d(o){o&&b(e),n&&n.d(),l&&l.d();}}}function cl(t){let e,i=t[3],n=[];for(let l=0;l<i.length;l+=1)n[l]=ul(Fn(t,i,l));return {c(){for(let l=0;l<n.length;l+=1)n[l].c();e=z(`\r
`);},m(l,o){for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(l,o);D(l,e,o);},p(l,o){if(o[0]&8){i=l[3];let s;for(s=0;s<i.length;s+=1){const r=Fn(l,i,s);n[s]?n[s].p(r,o):(n[s]=ul(),n[s].c(),n[s].m(e.parentNode,e));}for(;s<n.length;s+=1)n[s].d(1);n.length=i.length;}},d(l){Sl(n,l),l&&b(e);}}}function ul(t){let e,i;return {c(){e=N("img"),G(e,"background","url(/static/media/icons.8bb5446ebbbd07050285.gif) 0 -202px"),G(e,"height","14px"),G(e,"width","14px"),De(e.src,i=Se.ICON.PIN)||a(e,"src",i),a(e,"alt","PIN");},m(n,l){D(n,e,l);},p:B,d(n){n&&b(e);}}}function ar(t){let e;return {c(){e=N("div"),e.textContent=`${t[17][t[15]]}${t[16]?" : "+t[18]()+" 小时":""}`,a(e,"class","_tag svelte-rhfb99"),ot(e,"_tag_discount_free",t[15]=="FREE"),ot(e,"_tag_discount_50",t[15]=="PERCENT_50");},m(i,n){D(i,e,n);},p:B,d(i){i&&b(e);}}}function fl(t){let e,i,n=t[0].smallDescr+"",l,o;return {c(){e=N("div"),i=N("a"),l=z(n),a(i,"href",o=t[0].torrentLink),a(i,"class","svelte-rhfb99"),a(e,"class","card-description svelte-rhfb99");},m(s,r){D(s,e,r),g(e,i),g(i,l);},p(s,r){r[0]&1&&n!==(n=s[0].smallDescr+"")&&q(l,n),r[0]&1&&o!==(o=s[0].torrentLink)&&a(i,"href",o);},d(s){s&&b(e);}}}function dl(t){let e,i,n,l=(t[0].labels&1)===1&&gl(),o=(t[0].labels&2)===2&&_l(),s=(t[0].labels&4)===4&&hl();return {c(){e=N("div"),l&&l.c(),i=k(),o&&o.c(),n=k(),s&&s.c(),a(e,"class","cl-tags svelte-rhfb99");},m(r,f){D(r,e,f),l&&l.m(e,null),g(e,i),o&&o.m(e,null),g(e,n),s&&s.m(e,null);},p(r,f){(r[0].labels&1)===1?l||(l=gl(),l.c(),l.m(e,i)):l&&(l.d(1),l=null),(r[0].labels&2)===2?o||(o=_l(),o.c(),o.m(e,n)):o&&(o.d(1),o=null),(r[0].labels&4)===4?s||(s=hl(),s.c(),s.m(e,null)):s&&(s.d(1),s=null);},d(r){r&&b(e),l&&l.d(),o&&o.d(),s&&s.d();}}}function gl(t){let e;return {c(){e=N("div"),e.textContent="DIY",a(e,"class","_tag _tag_diy svelte-rhfb99");},m(i,n){D(i,e,n);},d(i){i&&b(e);}}}function _l(t){let e;return {c(){e=N("div"),e.textContent="国配",a(e,"class","_tag _tag_dub svelte-rhfb99");},m(i,n){D(i,e,n);},d(i){i&&b(e);}}}function hl(t){let e;return {c(){e=N("div"),e.textContent="中字",a(e,"class","_tag _tag_sub svelte-rhfb99");},m(i,n){D(i,e,n);},d(i){i&&b(e);}}}function ml(t){let e,i,n,l,o,s,r=(Number(t[0].size)/1024/1024/1024).toFixed(2)+"G",f,c,d,p,_,I,m,M,u,h,y,v;o=new Xl({}),_=new Jl({});let w={ctx:t,current:null,token:null,hasCatch:!0,pending:fr,then:ur,catch:cr,value:37,error:38};return qt(u=t[5],w),{c(){e=N("div"),i=N("div"),n=N("div"),l=N("span"),re(o.$$.fragment),s=z(`\r
`),f=z(r),c=z(`\r
\r
\r
\r
\r
`),d=N("div"),p=N("span"),re(_.$$.fragment),I=z(`\r
\r
\r
\r
\r
`),m=N("div"),M=N("span"),w.block.c(),a(l,"class","icon_holder svelte-rhfb99"),a(n,"class","cl-btn svelte-rhfb99"),a(p,"class","icon_holder svelte-rhfb99"),a(d,"class","cl-btn svelte-rhfb99"),G(d,"cursor","pointer"),a(M,"class","icon_holder svelte-rhfb99"),a(m,"class","cl-btn svelte-rhfb99"),G(m,"cursor","pointer"),a(i,"class","cl-center svelte-rhfb99"),a(e,"class","card-line svelte-rhfb99");},m(S,C){D(S,e,C),g(e,i),g(i,n),g(n,l),le(o,l,null),g(n,s),g(n,f),g(i,c),g(i,d),g(d,p),le(_,p,null),g(i,I),g(i,m),g(m,M),w.block.m(M,w.anchor=null),w.mount=()=>M,w.anchor=null,h=!0,y||(v=[$(d,"click",t[20]),$(m,"click",t[21])],y=!0);},p(S,C){t=S,(!h||C[0]&1)&&r!==(r=(Number(t[0].size)/1024/1024/1024).toFixed(2)+"G")&&q(f,r),w.ctx=t,C[0]&32&&u!==(u=t[5])&&qt(u,w)||jl(w,t,C);},i(S){h||(Y(o.$$.fragment,S),Y(_.$$.fragment,S),h=!0);},o(S){Z(o.$$.fragment,S),Z(_.$$.fragment,S),h=!1;},d(S){S&&b(e),oe(o),oe(_),w.block.d(),w.token=null,w=null,y=!1,Ae(v);}}}function cr(t){let e,i=t[38].message+"",n;return {c(){e=N("p"),n=z(i),G(e,"color","red");},m(l,o){D(l,e,o),g(e,n);},p(l,o){o[0]&32&&i!==(i=l[38].message+"")&&q(n,i);},d(l){l&&b(e);}}}function ur(t){let e,i;return {c(){e=he("svg"),i=he("path"),a(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"),a(e,"viewBox","64 64 896 896"),a(e,"focusable","false"),a(e,"data-icon","star"),a(e,"width","1em"),a(e,"height","1em"),a(e,"fill","currentColor"),a(e,"aria-hidden","true"),G(e,"color",t[4]?"orange":"black"),a(e,"xmlns","http://www.w3.org/2000/svg");},m(n,l){D(n,e,l),g(e,i);},p(n,l){l[0]&16&&G(e,"color",n[4]?"orange":"black");},d(n){n&&b(e);}}}function fr(t){let e;return {c(){e=N("span"),e.textContent="···",G(e,"display","flex"),G(e,"align-items","center");},m(i,n){D(i,e,n);},p:B,d(i){i&&b(e);}}}function pl(t){let e,i,n,l=`${t[19].day} 日`,o,s,r=t[19].hour?`${t[19].hour} 时`:"",f,c;return i=new Fl({}),{c(){e=N("div"),re(i.$$.fragment),n=z(`\r
`),o=z(l),s=k(),f=z(r),a(e,"class","card-line cl-btn svelte-rhfb99");},m(d,p){D(d,e,p),le(i,e,null),g(e,n),g(e,o),g(e,s),g(e,f),c=!0;},p:B,i(d){c||(Y(i.$$.fragment,d),c=!0);},o(d){Z(i.$$.fragment,d),c=!1;},d(d){d&&b(e),oe(i);}}}function Il(t){let e,i,n,l,o=t[0].status.comments+"",s,r,f,c,d,p,_=t[0].status.seeders+"",I,m,M,u,h,y,v=t[0].status.leechers+"",w,S;return i=new xl({}),{c(){e=N("div"),re(i.$$.fragment),n=z(`\r
\r
`),l=N("b"),s=z(o),r=z(`\r
\r
`),f=N("img"),d=z(`\r
\r
`),p=N("b"),I=z(_),m=z(`\r
\r
`),M=N("img"),h=z(`\r
\r
`),y=N("b"),w=z(v),De(f.src,c=Se.ICON.SEEDERS)||a(f,"src",c),a(f,"alt","SVG_Seeders"),De(M.src,u=Se.ICON.LEECHERS)||a(M,"src",u),a(M,"alt","SVG_Leechers"),a(e,"class","card-line svelte-rhfb99");},m(C,L){D(C,e,L),le(i,e,null),g(e,n),g(e,l),g(l,s),g(e,r),g(e,f),g(e,d),g(e,p),g(p,I),g(e,m),g(e,M),g(e,h),g(e,y),g(y,w),S=!0;},p(C,L){(!S||L[0]&1)&&o!==(o=C[0].status.comments+"")&&q(s,o),(!S||L[0]&1)&&_!==(_=C[0].status.seeders+"")&&q(I,_),(!S||L[0]&1)&&v!==(v=C[0].status.leechers+"")&&q(w,v);},i(C){S||(Y(i.$$.fragment,C),S=!0);},o(C){Z(i.$$.fragment,C),S=!1;},d(C){C&&b(e),oe(i);}}}function dr(t){let e,i,n,l,o,s,r=Se.CATEGORY_NAME[t[0].category]+"",f,c,d,p,_,I,m,M=t[2]+1+"",u,h,y,v,w,S,C,L=(t[10].title||t[6])&&Jn(t);function R(T,H){return T[7]?Ks:qs}let A=R(t),j=A(t),P=t[12]&&!t[7]&&!(t[0].category=="440"&&t[11].mt.hide_gay==!0)&&t[0].imageList[0]&&$n(),U=(t[10].all||t[6])&&Kn(t),W=!(t[10].all||t[6])&&!(t[0].category=="440"&&t[11].mt.hide_gay==!0)&&rl(t);return {c(){e=N("div"),i=N("div"),n=N("div"),l=N("img"),s=k(),f=z(r),d=k(),L&&L.c(),p=k(),_=N("div"),j.c(),I=k(),m=N("div"),u=z(M),h=k(),P&&P.c(),y=k(),U&&U.c(),v=k(),W&&W.c(),a(l,"class","card_category-img svelte-rhfb99"),De(l.src,o=t[0]._categoryImg)||a(l,"src",o),a(l,"alt",""),a(n,"class","card-category svelte-rhfb99"),a(n,"data-href",c=`https://${location.host}/browse?cat=`+t[0].category),G(n,"background-color",t[24]??"transparent"),G(n,"color",t[24]?_r(t[24]):"black"),a(m,"class","card-index svelte-rhfb99"),a(_,"class","card-image svelte-rhfb99"),a(i,"class","card-holder svelte-rhfb99"),G(i,"background","linear-gradient (to bottom, "+(t[24]??Wt)+" 18px, rgba(255, 255, 255, 0.4) 18px, rgba(255, 255, 255, 0))"),a(e,"class","card svelte-rhfb99"),G(e,"width",t[1]+"px"),G(e,"z-index",1e4-t[2]),G(e,"border-color",t[24]??Wt),G(e,"background-color",t[9]),G(e,"background","linear-gradient( to bottom, "+(t[24]??Wt)+" 18px, "+t[9]+" 18px)");},m(T,H){D(T,e,H),g(e,i),g(i,n),g(n,l),g(n,s),g(n,f),g(i,d),L&&L.m(i,null),g(i,p),g(i,_),j.m(_,null),g(_,I),g(_,m),g(m,u),g(_,h),P&&P.m(_,null),g(i,y),U&&U.m(i,null),g(i,v),W&&W.m(i,null),t[27](e),w=!0,S||(C=[$(_,"click",t[14]),$(i,"mouseenter",t[22]),$(i,"mouseleave",t[23])],S=!0);},p(T,H){(!w||H[0]&1&&!De(l.src,o=T[0]._categoryImg))&&a(l,"src",o),(!w||H[0]&1)&&r!==(r=Se.CATEGORY_NAME[T[0].category]+"")&&q(f,r),(!w||H[0]&1&&c!==(c=`https://${location.host}/browse?cat=`+T[0].category))&&a(n,"data-href",c),T[10].title||T[6]?L?L.p(T,H):(L=Jn(T),L.c(),L.m(i,p)):L&&(L.d(1),L=null),A===(A=R(T))&&j?j.p(T,H):(j.d(1),j=A(T),j&&(j.c(),j.m(_,I))),(!w||H[0]&4)&&M!==(M=T[2]+1+"")&&q(u,M),T[12]&&!T[7]&&!(T[0].category=="440"&&T[11].mt.hide_gay==!0)&&T[0].imageList[0]?P?P.p(T,H):(P=$n(),P.c(),P.m(_,null)):P&&(P.d(1),P=null),T[10].all||T[6]?U?(U.p(T,H),H[0]&1088&&Y(U,1)):(U=Kn(T),U.c(),Y(U,1),U.m(i,v)):U&&(Ve(),Z(U,1,1,()=>{U=null;}),xe()),!(T[10].all||T[6])&&!(T[0].category=="440"&&T[11].mt.hide_gay==!0)?W?(W.p(T,H),H[0]&3137&&Y(W,1)):(W=rl(T),W.c(),Y(W,1),W.m(i,null)):W&&(Ve(),Z(W,1,1,()=>{W=null;}),xe()),(!w||H[0]&2)&&G(e,"width",T[1]+"px"),(!w||H[0]&4)&&G(e,"z-index",1e4-T[2]),(!w||H[0]&512)&&G(e,"background-color",T[9]),(!w||H[0]&512)&&G(e,"background","linear-gradient( to bottom, "+(T[24]??Wt)+" 18px, "+T[9]+" 18px)");},i(T){w||(Y(U),Y(W),w=!0);},o(T){Z(U),Z(W),w=!1;},d(T){T&&b(e),L&&L.d(),j.d(),P&&P.d(),U&&U.d(),W&&W.d(),t[27](null),S=!1,Ae(C);}}}const Wt="rgba(255, 255, 255, 0.5)",gr="/static/cate/gayhd.gif";function _r(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 hr(t,e,i){let n,l,o,s,r,f;X(t,ft,F=>i(28,n=F)),X(t,Ke,F=>i(29,l=F)),X(t,Tt,F=>i(9,o=F)),X(t,tt,F=>i(10,s=F)),X(t,Je,F=>i(11,r=F)),X(t,at,F=>i(12,f=F));const d={Authorization:localStorage.getItem("auth")||""};function p(F,Q,V){if(!Se.API[F]){console.warn(`没有名为 ${F} 的 API 接口.`);return}const x=location.origin+Se.API[F].url,se=Se.API[F].method;fetch(x,{method:se,headers:d,body:Q}).then(ne=>ne.json()).then(ne=>{V(ne);}).catch(ne=>console.error(ne));}window.fetchData=p;function _(){Ie();}function I(){me(Ke,l=1,l),me(ft,n=M.torrentLink+"#kdescr",n),me(ft,n=`https://${location.host}/detail/`+M.id,n);}let{index:m}=e,{torrentInfo:M}=e,{cardWidth:u}=e;const h=M.status.discount,y=M.status.discountEndTime,v={FREE:"免费",PERCENT_50:"50%"},w=()=>{const F=new Date,Q=new Date(y);return Math.floor((Q.getTime()-F.getTime())/(1e3*3600))},S=M.status.createdDate,L=(()=>{const F=new Date,Q=new Date(S),V=F.getTime()-Q.getTime(),x=Math.floor(V/(1e3*3600*24)),se=Math.floor(V%(1e3*3600*24)/(1e3*3600));return {day:x,hour:se}})();function R(){const F=new FormData;F.append("id",M.id),p("genDlToken",F,Q=>{console.log(Q),Q.data&&window.open(Q.data,"_blank");});}let A;M.status.toppingLevel&&(A=Array(M.status.toppingLevel).fill());let j=!!M.collection;const P=new FormData;P.append("id",M.id),P.append("make",!j);let U;function W(){i(5,U=p("collection",P,T));}function T(F){console.log(F),i(4,j=!j);}let H=!1;function pe(){i(6,H=!0),i(8,Me.style.boxShadow=`
${ye??Wt} 5px 5px 0px,
rgba(0, 0, 0, 0.1) -1px -1px 0px`,Me);}function Le(){i(6,H=!1),i(8,Me.style.boxShadow="",Me);}let Ce=!1;const ye=Se.CATEGORY_COLOR[M.category];let Me;const He=M.imageList[0]?M.imageList[0]:"",ie=()=>{i(7,Ce=!0);};function ce(F){je[F?"unshift":"push"](()=>{Me=F,i(8,Me);});}return t.$$set=F=>{"index"in F&&i(2,m=F.index),"torrentInfo"in F&&i(0,M=F.torrentInfo),"cardWidth"in F&&i(1,u=F.cardWidth);},[M,u,m,A,j,U,H,Ce,Me,o,s,r,f,_,I,h,y,v,w,L,R,W,pe,Le,ye,He,ie,ce]}class mr extends Ue{constructor(e){super(),We(this,e,hr,dr,Pe,{index:2,torrentInfo:0,cardWidth:1},null,[-1,-1]);}}function Ml(t,e,i){const n=t.slice();return n[40]=e[i],n[42]=i,n}function Nl(t){let e,i,n;return {c(){e=N("div"),e.innerHTML='<div class="loading_SubHolder svelte-11rmzun"><div class="loading_Text svelte-11rmzun">页面切换加载中...</div></div>',a(e,"class","loading_Holder svelte-11rmzun");},m(l,o){D(l,e,o),n=!0;},i(l){n||(It(()=>{n&&(i||(i=Mt(e,Nt,{duration:600},!0)),i.run(1));}),n=!0);},o(l){i||(i=Mt(e,Nt,{duration:600},!1)),i.run(0),n=!1;},d(l){l&&b(e),l&&i&&i.end();}}}function yl(t,e){let i,n,l;return n=new mr({props:{index:e[42],torrentInfo:e[40],cardWidth:e[0].CARD_WIDTH}}),{key:t,first:null,c(){i=nt(),re(n.$$.fragment),this.first=i;},m(o,s){D(o,i,s),le(n,o,s),l=!0;},p(o,s){e=o;const r={};s[0]&8&&(r.index=e[42]),s[0]&8&&(r.torrentInfo=e[40]),s[0]&1&&(r.cardWidth=e[0].CARD_WIDTH),n.$set(r);},i(o){l||(Y(n.$$.fragment,o),l=!0);},o(o){Z(n.$$.fragment,o),l=!1;},d(o){o&&b(i),oe(n,o);}}}function pr(t){let e,i,n=[],l=new Map,o,s=!t[1]&&Nl(),r=t[3];const f=c=>c[40].id+c[42];for(let c=0;c<r.length;c+=1){let d=Ml(t,r,c),p=f(d);l.set(p,n[c]=yl(p,d));}return {c(){e=N("div"),s&&s.c(),i=k();for(let c=0;c<n.length;c+=1)n[c].c();a(e,"class","svelte-11rmzun"),ot(e,"masonry_Holder_unload_1st",!t[1]&&t[2]),ot(e,"masonry_Holder_loaded_1st",t[1]&&t[2]),ot(e,"masonry_Holder_unloaded",!t[1]&&!t[2]),ot(e,"masonry_Holder_loaded",t[1]&&!t[2]);},m(c,d){D(c,e,d),s&&s.m(e,null),g(e,i);for(let p=0;p<n.length;p+=1)n[p]&&n[p].m(e,null);o=!0;},p(c,d){c[1]?s&&(Ve(),Z(s,1,1,()=>{s=null;}),xe()):s?d[0]&2&&Y(s,1):(s=Nl(),s.c(),Y(s,1),s.m(e,i)),d[0]&9&&(r=c[3],Ve(),n=Ol(n,d,f,1,c,r,l,e,zl,yl,null,Ml),xe()),(!o||d[0]&6)&&ot(e,"masonry_Holder_unload_1st",!c[1]&&c[2]),(!o||d[0]&6)&&ot(e,"masonry_Holder_loaded_1st",c[1]&&c[2]),(!o||d[0]&6)&&ot(e,"masonry_Holder_unloaded",!c[1]&&!c[2]),(!o||d[0]&6)&&ot(e,"masonry_Holder_loaded",c[1]&&!c[2]);},i(c){if(!o){Y(s);for(let d=0;d<r.length;d+=1)Y(n[d]);o=!0;}},o(c){Z(s);for(let d=0;d<n.length;d+=1)Z(n[d]);o=!1;},d(c){c&&b(e),s&&s.d();for(let d=0;d<n.length;d+=1)n[d].d();}}}function Ir(t,e,i){let n,l,o,s,r,f,c;X(t,Ot,Q=>i(12,n=Q)),X(t,Bt,Q=>i(13,l=Q)),X(t,Ht,Q=>i(8,o=Q)),X(t,Vt,Q=>i(9,s=Q)),X(t,Lt,Q=>i(14,r=Q)),X(t,Pt,Q=>i(15,f=Q)),X(t,Tt,Q=>i(16,c=Q));let{waterfallNode:d}=e,{waterfallParentNode:p}=e,{update_ORIGIN_TL_Node:_}=e;const m="https://api.m-team"+location.origin.match(/\.([^.]+)$/)[0]+"/api"+Se.API.search.url,u=localStorage.getItem("apiHost")+Se.API.search.url||m;window.NEXUS_TOOLS=bt;let h,y=!1,v=!0;p.style.height="116px",me(Lt,r=Ft(),r);const w=Hl();me(Tt,c=w,c),console.log("背景颜色:",w);const S=Dt();function C(){const Q=document.querySelector(S),V=document.querySelector(".nextPage"),x=document.querySelector(".waterfall.waterfall_newMT");Q&&(Q.style.display=n?"none":"block"),V.style.display=n?"block":"none",x.style.display=n?"block":"none";}function L(){C(),R(o.column,o.gap),Ie("fast"),Ie("fast");}window.CHANGE_CARD_LAYOUT=L;function R(Q,V=10){if(Q<=1||V<=1){console.warn("卡片列数或卡片间隔过小, 列数不小于2, 间隔不小于1");return}const se=(document.querySelector("div.waterfall").clientWidth-(Q-1)*V)/Q;return Array.from(document.querySelectorAll(".card")).forEach(ne=>ne.style.width=se+"px"),h&&(i(7,h.options.columnWidth=se,h),i(7,h.options.gutter=V,h),h.layout()),se}let A=[];const P={"Content-Type":"application/json;charset=UTF-8",Authorization:localStorage.getItem("auth")||""};function U(){console.log("当前页面 path: ",location.pathname);const V={pageNumber:1,pageSize:T(),visible:1};Object.assign(V,H()),console.log(V),fetch(u,{method:"POST",headers:P,body:JSON.stringify(V)}).then(x=>x.json()).then(x=>{console.log(x);const se=x.data.data;i(3,A=[...se]);}).then(()=>{var x;K.$setPage(V.pageNumber),h.reloadItems(),i(2,v=!1),i(1,y=!0),i(4,p.style.height="auto",p),h.once("layoutComplete",()=>{bt();}),(x=ze[r])==null||x.special();}).catch(x=>{console.error("网络请求错误:",x);});}function W(Q,V=null){console.log("当前页面 path: ",location.pathname),fetch(u,{method:"POST",headers:P,body:JSON.stringify(Q)}).then(x=>x.json()).then(x=>{console.log(x);const se=x.data.data;i(3,A=[...se]);}).then(()=>{h.reloadItems(),i(1,y=!0),h.once("layoutComplete",()=>{bt();}),V&&V();}).catch(x=>{console.error("网络请求错误:",x);});}function T(Q=100){const V=Gl("persist:persist").sysinfo;return !V.pageSize||!V.pageSize.torrent?Q:Number(V.pageSize.torrent)}function H(Q=location.href){let V=Q;Q.indexOf("/browse")==0&&(V=location.origin+Q),console.log(`url 补全: ${V}`);let x=new URL(V),se=x.pathname.split("/")[2],ne=x.searchParams.getAll("cat"),ae=x.searchParams.getAll("stand"),ve=Number(x.searchParams.get("pageNumber"))||1,_e=T(100),we=x.searchParams.get("sort"),ue=Number(x.searchParams.get("onlyFav")),ee={};if(se?ee.mode=se:ee.mode="normal",ne&&(ee.categories=ne),ae.length&&(ee.standards=ae),ve&&(ee.pageNumber=ve),_e&&(ee.pageSize=_e),ue&&(ee.onlyFav=ue),we){let ke=we.split(":")[0].toUpperCase();ke.includes("DATE")&&(ee.sortField="CREATED_DATE"),ke.includes("SIZE")&&(ee.sortField="SIZE"),ke.includes("SEEDER")&&(ee.sortField="SEEDERS"),ke.includes("LEECHER")&&(ee.sortField="LEECHERS"),ke.includes("TIME")&&(ee.sortField="TIMES_COMPLETED");let Ze=we.split(":")[1].toUpperCase();Ze.includes("ASC")&&(ee.sortDirection="ASC"),Ze.includes("DESC")&&(ee.sortDirection="DESC");}return ee}const pe=history.pushState;function Le(){history.pushState=function(Q,V,x){if(i(1,y=!1),console.log(`%c ====> URL跳转劫持: %c${x}`,"color: cyan","color: white"),x.includes("/browse")||x=="/browse"){console.log("--->属于 browse 范围, search 启动"),i(4,p.style.display="block",p);const se=H(x),ae={pageNumber:1,pageSize:T(),visible:1};Object.assign(ae,se),console.log(ae),W(ae,()=>{var we;K.$setPage(ae.pageNumber),_();let ve=(we=ze[r])==null?void 0:we.special(),_e=0;ce=setInterval(()=>{var ue;ve&&(clearInterval(ce),console.log(`触发特殊次数: [${_e}]`)),_e+=1,ve=(ue=ze[r])==null?void 0:ue.special(),ve&&(clearInterval(ce),console.log(`触发特殊次数: [${_e}]`)),_e>=5&&(clearInterval(ce),console.log("======> 触发特殊次数: [${count}] setInterval 已取消. <======"));},1e3);}),C();}else i(4,p.style.display="none",p),document.querySelector(S).style.display="block";pe.apply(history,arguments);};}K.$setPage(1);let Ce;Ce=Pl(He,K.GAP);const ye=document.querySelector(".ant-layout");function Me(){const Q=ye.scrollHeight,V=ye.clientHeight;(ye.scrollTop||ye.scrollTop)+V>=Q-K.DISTANCE_newMT&&(f?Ce():console.log("加载模式: 按钮"),Ie());}function He(){const Q={pageNumber:K.$getCurrentPage()+1,pageSize:T(),visible:1};Object.assign(Q,H()),Object.assign(Q,{pageNumber:K.$getCurrentPage()+1}),console.log(Q),fetch(u,{method:"POST",headers:P,body:JSON.stringify(Q)}).then(V=>V.json()).then(V=>{console.log(V);const x=V.data.data;i(3,A=[...A,...x]);}).then(()=>{h.reloadItems(),h.once("layoutComplete",()=>{bt();}),K.$turnPage();}).catch(V=>{console.error("网络请求错误:",V);});}function ie(){f||Ce();}window.$$$turnPage=ie;let ce;function F(){console.log("------------------OB START------------------");let Q=0;const V=10,x=2e3,se=()=>{Q++;const ae=document.querySelector(".ant-spin-container");ae?(console.log(`<special> 第 ${Q} 次找到目标元素,开始监视...`),ne(ae)):Q<V?(console.log(`<special> 第 ${Q} 次未找到目标元素,继续尝试...`),setTimeout(se,x)):console.warn("<special> 未找到 .ant-spin-container, M-Team 特殊函数失效");},ne=ae=>{const ve=new MutationObserver((we,ue)=>{we.forEach(ee=>{var ke;(ee.type==="childList"||ee.type==="attributes")&&(console.log("<special> <-- 原表格 DOM 发生了变化 -->"),(ke=ze[r])==null||ke.special());});}),_e={attributes:!0,childList:!0,subtree:!1};ve.observe(ae,_e);};se();}return ti(()=>{i(7,h=new Masonry(d,{itemSelector:".card",columnWidth:R(o.column,o.gap),gutter:o.gap,transitionDuration:s?.4:0})),R(o.column,o.gap),window.masonry=h,me(Bt,l=h,l),h.layout("fast"),h.layout("fast"),d.addEventListener("click",Q=>{Q.target===Q.currentTarget&&(h&&h.layout(),console.log("Masonry 已整理~"));}),ye.addEventListener("scroll",function(){n&&Me();}),U(),Le(),F();}),kl(()=>{ce&&clearInterval(ce);}),t.$$set=Q=>{"waterfallNode"in Q&&i(5,d=Q.waterfallNode),"waterfallParentNode"in Q&&i(4,p=Q.waterfallParentNode),"update_ORIGIN_TL_Node"in Q&&i(6,_=Q.update_ORIGIN_TL_Node);},t.$$.update=()=>{t.$$.dirty[0]&640&&h&&i(7,h.options.transitionDuration=s?"0.4s":"0",h),t.$$.dirty[0]&385&&h&&(i(0,pt.CARD_WIDTH=R(o.column,o.gap),pt),console.log("卡片宽度: ",pt.CARD_WIDTH),L());},[pt,y,v,A,p,d,_,h,o,s]}class Mr extends Ue{constructor(e){super(),We(this,e,Ir,pr,Pe,{waterfallNode:5,waterfallParentNode:4,update_ORIGIN_TL_Node:6},null,[-1,-1]);}}const{window:Nr}=vo;function vl(t){let e,i,n,l,o,s,r,f,c,d,p;return r=new Vl({}),{c(){e=N("div"),i=N("div"),n=N("iframe"),o=k(),s=N("div"),re(r.$$.fragment),De(n.src,l=t[2])||a(n,"src",l),a(n,"frameborder","0"),a(n,"title","wow"),G(n,"width",(ze[t[3]]?ze[t[3]].Iframe_Width:1e3)+"px"),a(n,"class","svelte-1exar3b"),a(s,"class","_iframeCloseBtn svelte-1exar3b"),a(i,"class","_iframe svelte-1exar3b"),a(e,"id","_iframe"),a(e,"class","svelte-1exar3b");},m(_,I){D(_,e,I),g(e,i),g(i,n),t[7](n),g(i,o),g(i,s),le(r,s,null),c=!0,d||(p=[$(n,"load",t[5]),$(s,"click",t[4]),$(e,"click",t[4])],d=!0);},p(_,I){(!c||I&4&&!De(n.src,l=_[2]))&&a(n,"src",l),(!c||I&8)&&G(n,"width",(ze[_[3]]?ze[_[3]].Iframe_Width:1e3)+"px");},i(_){c||(Y(r.$$.fragment,_),It(()=>{c&&(f||(f=Mt(e,Nt,{duration:300},!0)),f.run(1));}),c=!0);},o(_){Z(r.$$.fragment,_),f||(f=Mt(e,Nt,{duration:300},!1)),f.run(0),c=!1;},d(_){_&&b(e),t[7](null),oe(r),_&&f&&f.end(),d=!1,Ae(p);}}}function yr(t){let e,i,n,l,o=t[1]&&vl(t);return {c(){o&&o.c(),e=nt();},m(s,r){o&&o.m(s,r),D(s,e,r),i=!0,n||(l=$(Nr,"keydown",t[6],!0),n=!0);},p(s,[r]){s[1]?o?(o.p(s,r),r&2&&Y(o,1)):(o=vl(s),o.c(),Y(o,1),o.m(e.parentNode,e)):o&&(Ve(),Z(o,1,1,()=>{o=null;}),xe());},i(s){i||(Y(o),i=!0);},o(s){Z(o),i=!1;},d(s){o&&o.d(s),s&&b(e),n=!1,l();}}}function $l(t,e=5,i=200,n=l=>{}){const l=document.querySelector(t);if(l)return n(l),l;e>0?setTimeout(()=>{$l(t,e-1,i,n);},i):console.log(`无法找到元素: ${t}`);}function vr(t,e,i){let n,l,o,s,r;X(t,mt,v=>i(13,n=v)),X(t,Ke,v=>i(1,l=v)),X(t,Ot,v=>i(14,o=v)),X(t,ft,v=>i(2,s=v)),X(t,Lt,v=>i(3,r=v)),console.log(`[${new Date().toLocaleTimeString()}]<----------------------HMR_NewMT---------------------->`);let f=document.querySelector(Dt());window._ORIGIN_TL_Node=f;function c(){console.log("--------> 更新 _ORIGIN_TL_Node"),document.querySelector(Dt())!=f&&(console.log("--------> 已替换 _ORIGIN_TL_Node"),f=document.querySelector(Dt()),f.style.display=o?"none":"block");}let d;function p(){me(Ke,l=0,l);}function _(){let v=0,w=0,S;I=setInterval(()=>{var C;try{const L=(C=d==null?void 0:d.contentDocument)==null?void 0:C.querySelector(".app-content__inner");v+=1,S=d.contentDocument.querySelector(".ant-descriptions-view .ant-descriptions-item-label span"),L&&L.scrollIntoView(),console.log(` iframeJump2Info ==> 轮询次数: [${v}] 轮询文本: [${S.textContent}] 轮询长度: [${S.textContent.length}] -----`);}catch{w++,console.warn(`DOM丢失: ${w}`),w>=5&&(clearInterval(I),console.log("------> setInterval 已取消, 请忽略 DOM 丢失的 Errors & Warns. <------"));}S.textContent.length&&clearInterval(I);},500);}let I;kl(()=>{clearInterval(I);});function m(v){v.key==="Escape"&&(console.log(v),me(Ke,l=0,l),me(mt,n=!1,n));}for(;!Masonry;)console.log("等待初始化......");let M,u,h;$l(".ant-card.ant-card-small",5,200,v=>{const w=v.parentNode;M=document.createElement("div"),M.classList.add("waterfall"),M.classList.add("waterfall_newMT"),u=document.createElement("div"),u.classList.add("waterfallParent"),u.append(M),w.insertBefore(u,v.nextSibling),h=document.createElement("div"),h.classList.add("nextPage"),u.append(h),new Wl({target:document.body}),new Mr({target:M,props:{waterfallNode:M,waterfallParentNode:u,update_ORIGIN_TL_Node:c}}),new Bl({target:h});});function y(v){je[v?"unshift":"push"](()=>{d=v,i(0,d);});}return [d,l,s,r,p,_,m,y]}class wl extends Ue{constructor(e){super(),We(this,e,vr,yr,Pe,{});}}function wr(t,e,i){let n;X(t,Je,c=>i(3,n=c));function l(){me(Je,n.mt.path_in_browse=!0,n);}function o(){me(Je,n.mt.path_in_browse=!1,n);}let s;(location.pathname.includes("/browse")||location.pathname=="/browse")&&(it(Je).mt.path_in_browse=!0),location.pathname.includes("/browse")&&(s||(s=new wl({target:(()=>{const c=document.createElement("div");return document.body.append(c),c})()})));const r=history.pushState;history.pushState=f;function f(c,d,p){if(console.log(`%c [main] ====> URL跳转劫持: %c${p}`,"color: green","color: white"),p.includes("/browse")||p=="/browse"){let _=it(Je);_.mt.path_in_browse=!0,Je.set(_),console.log("侧边栏: ",it(Je).mt.path_in_browse),s||(s=new wl({target:(()=>{const I=document.createElement("div");return document.body.append(I),I})()}));}else {let _=it(Je);_.mt.path_in_browse=!1,Je.set(_),console.log("侧边栏: ",it(Je).mt.path_in_browse);}r.apply(history,arguments);}return [l,o]}class br extends Ue{constructor(e){super(),We(this,e,wr,null,Pe,{showSideBar:0,hideSideBar:1});}get showSideBar(){return this.$$.ctx[0]}get hideSideBar(){return this.$$.ctx[1]}}console.log("________PT-TorrentList-Masonry________");if(ws()=="NEW_MT")new br({target:(()=>{const t=document.createElement("div");return document.body.append(t),t})()});else {const t=Dt(),e=document.querySelector(t);t&&e?new Vs({target:(()=>{const i=document.createElement("div");return document.body.append(i),i})()}):console.log("未识别到种子列表捏~");}
})();