chuan / PT_Helper

// ==UserScript==
// @name         PT_Helper
// @namespace    http://tampermonkey.net/
// @version      2025-12-24
// @description   感谢 匿名大佬 的邀请和帮助,感谢 gringoire大佬 一直帮助调试
// @author       CHUAN
// @updateURL    https://openuserjs.org/meta/chuan/PT_Helper.meta.js
// @license      MIT
// @match        https://qingwapt.com/*
// @match        https://iptorrents.com/*
// @match        https://www.agsvpt.com/*
// @match        http*://hdhome.org/*
// @match        https://hdarea.club/*
// @match        https://crabpt.vip/*
// @match        https://ubits.club/*
// @match        https://www.ptskit.org/*
// @match        https://cyanbug.net/*
// @match        https://www.hxpt.org/*
// @match        https://ptcafe.club/*
// @match        https://dubhe.site/*
// @match        https://sewerpt.com/*
// @match        https://raingfh.top/*
// @match        https://pt.agsvpt.cn/*
// @match        https://audiences.me/*
// @match        https://p.t-baozi.cc/*
// @match        https://pt.btschool.club/*
// @match        https://bilibili.download/*
// @match        https://pt.luckpt.de/*
// @match        https://pt.lajidui.top/*
// @match        https://kp.m-team.cc/*
// @match        https://sunnypt.top/*
// @match        https://ptlgs.org/*
// @match        https://www.hdkyl.in/*
// @match        https://hdfans.org/*
// @match        https://si-qi.xyz/*
// @match        https://open.cd/*
// @match        https://zmpt.cc/*
// @match        https://ourbits.club/*
// @match        https://blutopia.cc/torrents?imdb=tt*
// @match        http*://*/*detail*.php*
// @match        https://nzbs.in/*
// @match        http*://*/detail*.php*
// @match        http*://*/upload*php*
// @match        https://pixhost.to*
// @match        https://*/upload/*
// @match        https://*.open.cd/plugin_upload.php*
// @match        https://www.myanonamouse.net/t/*
// @match        https://img.hdbits.org/
// @match        http*://*/offer*php*
// @match        https://star-space.net/*upload.php
// @match        http*://*.tieba.baidu.com/*
// @match        https://xthor.tk/*
// @match        https://house-of-usenet.com/threads/*
// @match        https://omgwtfnzbs.org/details*
// @match        https://speedapp.io/browse/*
// @match        https://torrent.desi/torrents*
// @match        https://www.imdb.com/title/tt*
// @match        https://hdf.world/*
// @match        https://kp.m-team.cc/detail/*
// @match        https://kp.m-team.cc/upload*
// @match        https://next.m-team.cc/upload*
// @match        https://next.m-team.cc/detail*
// @match        https://blutopia.cc/torrents/create*
// @match        https://secret-cinema.pw/torrents.php?id=*
// @match        https://filelist.io/*
// @match        https://bluebird-hd.org/*
// @match        https://iptorrents.com/torrent.php?id=*
// @match        http*://hd-space.org/index.php?page=torrent-details*
// @match        https://digitalcore.club/torrent/*
// @match        http*://ptpimg.me*
// @match        https://imgbox.com*
// @match        https://www.imagebam.com/*
// @match        https://bangumi.tv/subject/*
// @match        https://totheglory.im/*
// @match        https://hd-space.org/index.php?page=upload
// @match        https://hdcity.city/upload*
// @match        https://hdbits.org/upload*
// @match        https://hdbits.org/browse*
// @match        https://nebulance.io/torrents.php?id=*
// @match        https://hd-only.org/*
// @match        https://jpopsuki.eu/torrents.php*
// @match        https://passthepopcorn.me/*
// @match        https://hd-torrents.org/torrents.php*
// @match        https://greatposterwall.com/torrents.php*
// @match        https://broadcasthe.net/*.php*
// @match        https://backup.landof.tv/*.php*
// @match        https://beyond-hd.me/upload*
// @match        http*://beyond-hd.me/library/*
// @match        https://*/usercp.php?action=personal*
// @match        https://uhdbits.org/torrents.php*
// @match        https://blutopia.cc/torrents/create/*
// @match        https://eiga.moi/upload/*
// @match        http*://totheglory.im/t/*
// @match        http*://privatehd.to/torrent/*
// @match        http*://avistaz.to/torrent/*
// @match        http*://cinemaz.to/torrent/*
// @match        https://zhuque.in/torrent/*
// @match        https://www.yemapt.org/*
// @match        https://beyond-hd.me/download_check/*
// @match        http*://passthepopcorn.me/torrents.php?id*
// @match        http*://*php?id=*&torrentid=*
// @match        http*://*/*php?id=*&torrentid=*
// @match        http*://www.morethantv.me/torrents.php?id=*
// @match        https://*php?torrentid=*&id=*
// @match        https://hdbits.org/details.php?id=*
// @match        https://hdf.world/torrents.php*
// @match        http*://beyond-hd.me/torrents/*
// @match        https://*.douban.com/subject/*
// @match        https://filelist.io/browse.php*
// @match        http*://www.torrentleech.org/torrent/*
// @match        http*://www.torrentleech.me/torrent/*
// @match        http*://www.torrentleech.cc/torrent/*
// @match        http*://www.tlgetin.cc/torrent/*
// @match        http*://*/torrents/*
// @match        https://*/torrents?imdb*
// @match        https://broadcasthe.net/friends.php
// @exclude      http*bitpt.cn*
// @match        http*://*redacted.sh/upload.php*
// @match        http*://*redacted.sh/requests.php*
// @match        https://www.momentpt.top/*
// @match        https://www.hddolby.com/*
// @match        https://52pt.site/*
// @match        https://www.nicept.net/*
// @match        http*://*redacted.sh/torrents.php*
// @match        https://c.pc.qq.com/middlem.html?pfurl=*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=5.
// @connect      *
// @grant        GM.xmlHttpRequest
// @grant        GM_getValue
// @grant        GM_setValue
// @grant        GM_addStyle
// @grant        GM_openInTab
// @grant        GM_download
// @grant        GM_listValues
// @grant        GM_xmlhttpRequest
// @connect      *.iyuu.cn
// @connect      2025.iyuu.cn
// ==/UserScript==

(()=>{var e={755:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(r,o){"use strict";var i=[],a=Object.getPrototypeOf,l=i.slice,s=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},c=i.push,u=i.indexOf,d={},f=d.toString,p=d.hasOwnProperty,h=p.toString,m=h.call(Object),g={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},v=function(e){return null!=e&&e===e.window},b=r.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,o,i=(n=n||b).createElement("script");if(i.text=e,t)for(r in x)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function E(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[f.call(e)]||"object":typeof e}var T="3.7.1",C=/HTML$/i,_=function(e,t){return new _.fn.init(e,t)};function S(e){var t=!!e&&"length"in e&&e.length,n=E(e);return!y(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}_.fn=_.prototype={jquery:T,constructor:_,length:0,toArray:function(){return l.call(this)},get:function(e){return null==e?l.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=_.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return _.each(this,e)},map:function(e){return this.pushStack(_.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(_.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:i.sort,splice:i.splice},_.extend=_.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},l=1,s=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[l]||{},l++),"object"==typeof a||y(a)||(a={}),l===s&&(a=this,l--);l<s;l++)if(null!=(e=arguments[l]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(c&&r&&(_.isPlainObject(r)||(o=Array.isArray(r)))?(n=a[t],i=o&&!Array.isArray(n)?[]:o||_.isPlainObject(n)?n:{},o=!1,a[t]=_.extend(c,i,r)):void 0!==r&&(a[t]=r));return a},_.extend({expando:"jQuery"+(T+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==f.call(e))&&(!(t=a(e))||"function"==typeof(n=p.call(t,"constructor")&&t.constructor)&&h.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(S(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,o=e.nodeType;if(!o)for(;t=e[r++];)n+=_.text(t);return 1===o||11===o?e.textContent:9===o?e.documentElement.textContent:3===o||4===o?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(S(Object(e))?_.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!C.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;o<i;o++)!t(e[o],o)!==a&&r.push(e[o]);return r},map:function(e,t,n){var r,o,i=0,a=[];if(S(e))for(r=e.length;i<r;i++)null!=(o=t(e[i],i,n))&&a.push(o);else for(i in e)null!=(o=t(e[i],i,n))&&a.push(o);return s(a)},guid:1,support:g}),"function"==typeof Symbol&&(_.fn[Symbol.iterator]=i[Symbol.iterator]),_.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){d["[object "+t+"]"]=t.toLowerCase()});var M=i.pop,k=i.sort,I=i.splice,N="[\\x20\\t\\r\\n\\f]",B=new RegExp("^"+N+"+|((?:^|[^\\\\])(?:\\\\.)*)"+N+"+$","g");_.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var R=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function q(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}_.escapeSelector=function(e){return(e+"").replace(R,q)};var L=b,D=c;!function(){var e,t,n,o,a,s,c,d,f,h,m=D,y=_.expando,v=0,b=0,x=ee(),w=ee(),E=ee(),T=ee(),C=function(e,t){return e===t&&(a=!0),0},S="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="(?:\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",q="\\["+N+"*("+R+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+N+"*\\]",P=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+q+")*)|.*)\\)|)",O=new RegExp(N+"+","g"),F=new RegExp("^"+N+"*,"+N+"*"),G=new RegExp("^"+N+"*([>+~]|"+N+")"+N+"*"),H=new RegExp(N+"|>"),j=new RegExp(P),V=new RegExp("^"+R+"$"),K={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+S+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,U=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,X=new RegExp("\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\([^\\r\\n\\f])","g"),z=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},J=function(){se()},Q=fe(function(e){return!0===e.disabled&&A(e,"fieldset")},{dir:"parentNode",next:"legend"});try{m.apply(i=l.call(L.childNodes),L.childNodes),i[L.childNodes.length].nodeType}catch(e){m={apply:function(e,t){D.apply(e,l.call(t))},call:function(e){D.apply(e,l.call(arguments,1))}}}function Z(e,t,n,r){var o,i,a,l,c,u,p,h=t&&t.ownerDocument,v=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==v&&9!==v&&11!==v)return n;if(!r&&(se(t),t=t||s,d)){if(11!==v&&(c=U.exec(e)))if(o=c[1]){if(9===v){if(!(a=t.getElementById(o)))return n;if(a.id===o)return m.call(n,a),n}else if(h&&(a=h.getElementById(o))&&Z.contains(t,a)&&a.id===o)return m.call(n,a),n}else{if(c[2])return m.apply(n,t.getElementsByTagName(e)),n;if((o=c[3])&&t.getElementsByClassName)return m.apply(n,t.getElementsByClassName(o)),n}if(!(T[e+" "]||f&&f.test(e))){if(p=e,h=t,1===v&&(H.test(e)||G.test(e))){for((h=$.test(e)&&le(t.parentNode)||t)==t&&g.scope||((l=t.getAttribute("id"))?l=_.escapeSelector(l):t.setAttribute("id",l=y)),i=(u=ue(e)).length;i--;)u[i]=(l?"#"+l:":scope")+" "+de(u[i]);p=u.join(",")}try{return m.apply(n,h.querySelectorAll(p)),n}catch(t){T(e,!0)}finally{l===y&&t.removeAttribute("id")}}}return ve(e.replace(B,"$1"),t,n,r)}function ee(){var e=[];return function n(r,o){return e.push(r+" ")>t.cacheLength&&delete n[e.shift()],n[r+" "]=o}}function te(e){return e[y]=!0,e}function ne(e){var t=s.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return A(t,"input")&&t.type===e}}function oe(e){return function(t){return(A(t,"input")||A(t,"button"))&&t.type===e}}function ie(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Q(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te(function(t){return t=+t,te(function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))})})}function le(e){return e&&void 0!==e.getElementsByTagName&&e}function se(e){var n,r=e?e.ownerDocument||e:L;return r!=s&&9===r.nodeType&&r.documentElement?(c=(s=r).documentElement,d=!_.isXMLDoc(s),h=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&L!=s&&(n=s.defaultView)&&n.top!==n&&n.addEventListener("unload",J),g.getById=ne(function(e){return c.appendChild(e).id=_.expando,!s.getElementsByName||!s.getElementsByName(_.expando).length}),g.disconnectedMatch=ne(function(e){return h.call(e,"*")}),g.scope=ne(function(){return s.querySelectorAll(":scope")}),g.cssHas=ne(function(){try{return s.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),g.getById?(t.filter.ID=function(e){var t=e.replace(X,z);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(X,z);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},f=[],ne(function(e){var t;c.appendChild(e).innerHTML="<a id='"+y+"' href='' disabled='disabled'></a><select id='"+y+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||f.push("\\["+N+"*(?:value|"+S+")"),e.querySelectorAll("[id~="+y+"-]").length||f.push("~="),e.querySelectorAll("a#"+y+"+*").length||f.push(".#.+[+~]"),e.querySelectorAll(":checked").length||f.push(":checked"),(t=s.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),(t=s.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||f.push("\\["+N+"*name"+N+"*="+N+"*(?:''|\"\")")}),g.cssHas||f.push(":has"),f=f.length&&new RegExp(f.join("|")),C=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===n?e===s||e.ownerDocument==L&&Z.contains(L,e)?-1:t===s||t.ownerDocument==L&&Z.contains(L,t)?1:o?u.call(o,e)-u.call(o,t):0:4&n?-1:1)},s):s}for(e in Z.matches=function(e,t){return Z(e,null,null,t)},Z.matchesSelector=function(e,t){if(se(e),d&&!T[t+" "]&&(!f||!f.test(t)))try{var n=h.call(e,t);if(n||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){T(t,!0)}return Z(t,s,null,[e]).length>0},Z.contains=function(e,t){return(e.ownerDocument||e)!=s&&se(e),_.contains(e,t)},Z.attr=function(e,n){(e.ownerDocument||e)!=s&&se(e);var r=t.attrHandle[n.toLowerCase()],o=r&&p.call(t.attrHandle,n.toLowerCase())?r(e,n,!d):void 0;return void 0!==o?o:e.getAttribute(n)},Z.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},_.uniqueSort=function(e){var t,n=[],r=0,i=0;if(a=!g.sortStable,o=!g.sortStable&&l.call(e,0),k.call(e,C),a){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)I.call(e,n[r],1)}return o=null,e},_.fn.uniqueSort=function(){return this.pushStack(_.uniqueSort(l.apply(this)))},t=_.expr={cacheLength:50,createPseudo:te,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(X,z),e[3]=(e[3]||e[4]||e[5]||"").replace(X,z),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Z.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Z.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=ue(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(X,z).toLowerCase();return"*"===e?function(){return!0}:function(e){return A(e,t)}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+N+")"+e+"("+N+"|$)"))&&x(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var o=Z.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(O," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),l="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,s){var c,u,d,f,p,h=i!==a?"nextSibling":"previousSibling",m=t.parentNode,g=l&&t.nodeName.toLowerCase(),b=!s&&!l,x=!1;if(m){if(i){for(;h;){for(d=t;d=d[h];)if(l?A(d,g):1===d.nodeType)return!1;p=h="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&b){for(x=(f=(c=(u=m[y]||(m[y]={}))[e]||[])[0]===v&&c[1])&&c[2],d=f&&m.childNodes[f];d=++f&&d&&d[h]||(x=f=0)||p.pop();)if(1===d.nodeType&&++x&&d===t){u[e]=[v,f,x];break}}else if(b&&(x=f=(c=(u=t[y]||(t[y]={}))[e]||[])[0]===v&&c[1]),!1===x)for(;(d=++f&&d&&d[h]||(x=f=0)||p.pop())&&(!(l?A(d,g):1===d.nodeType)||!++x||(b&&((u=d[y]||(d[y]={}))[e]=[v,x]),d!==t)););return(x-=o)===r||x%r===0&&x/r>=0}}},PSEUDO:function(e,n){var r,o=t.pseudos[e]||t.setFilters[e.toLowerCase()]||Z.error("unsupported pseudo: "+e);return o[y]?o(n):o.length>1?(r=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)e[r=u.call(e,i[a])]=!(t[r]=i[a])}):function(e){return o(e,0,r)}):o}},pseudos:{not:te(function(e){var t=[],n=[],r=ye(e.replace(B,"$1"));return r[y]?te(function(e,t,n,o){for(var i,a=r(e,null,o,[]),l=e.length;l--;)(i=a[l])&&(e[l]=!(t[l]=i))}):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}}),has:te(function(e){return function(t){return Z(e,t).length>0}}),contains:te(function(e){return e=e.replace(X,z),function(t){return(t.textContent||_.text(t)).indexOf(e)>-1}}),lang:te(function(e){return V.test(e||"")||Z.error("unsupported lang: "+e),e=e.replace(X,z).toLowerCase(),function(t){var n;do{if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(e){var t=r.location&&r.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return s.activeElement}catch(e){}}()&&s.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:ie(!1),disabled:ie(!0),checked:function(e){return A(e,"input")&&!!e.checked||A(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return W.test(e.nodeName)},button:function(e){return A(e,"input")&&"button"===e.type||A(e,"button")},text:function(e){var t;return A(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae(function(){return[0]}),last:ae(function(e,t){return[t-1]}),eq:ae(function(e,t,n){return[n<0?n+t:n]}),even:ae(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ae(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ae(function(e,t,n){var r;for(r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:ae(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=re(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=oe(e);function ce(){}function ue(e,n){var r,o,i,a,l,s,c,u=w[e+" "];if(u)return n?0:u.slice(0);for(l=e,s=[],c=t.preFilter;l;){for(a in r&&!(o=F.exec(l))||(o&&(l=l.slice(o[0].length)||l),s.push(i=[])),r=!1,(o=G.exec(l))&&(r=o.shift(),i.push({value:r,type:o[0].replace(B," ")}),l=l.slice(r.length)),t.filter)!(o=K[a].exec(l))||c[a]&&!(o=c[a](o))||(r=o.shift(),i.push({value:r,type:a,matches:o}),l=l.slice(r.length));if(!r)break}return n?l.length:l?Z.error(e):w(e,s).slice(0)}function de(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function fe(e,t,n){var r=t.dir,o=t.next,i=o||r,a=n&&"parentNode"===i,l=b++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,o);return!1}:function(t,n,s){var c,u,d=[v,l];if(s){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,s))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(u=t[y]||(t[y]={}),o&&A(t,o))t=t[r]||t;else{if((c=u[i])&&c[0]===v&&c[1]===l)return d[2]=c[2];if(u[i]=d,d[2]=e(t,n,s))return!0}return!1}}function pe(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function he(e,t,n,r,o){for(var i,a=[],l=0,s=e.length,c=null!=t;l<s;l++)(i=e[l])&&(n&&!n(i,r,o)||(a.push(i),c&&t.push(l)));return a}function me(e,t,n,r,o,i){return r&&!r[y]&&(r=me(r)),o&&!o[y]&&(o=me(o,i)),te(function(i,a,l,s){var c,d,f,p,h=[],g=[],y=a.length,v=i||function(e,t,n){for(var r=0,o=t.length;r<o;r++)Z(e,t[r],n);return n}(t||"*",l.nodeType?[l]:l,[]),b=!e||!i&&t?v:he(v,h,e,l,s);if(n?n(b,p=o||(i?e:y||r)?[]:a,l,s):p=b,r)for(c=he(p,g),r(c,[],l,s),d=c.length;d--;)(f=c[d])&&(p[g[d]]=!(b[g[d]]=f));if(i){if(o||e){if(o){for(c=[],d=p.length;d--;)(f=p[d])&&c.push(b[d]=f);o(null,p=[],c,s)}for(d=p.length;d--;)(f=p[d])&&(c=o?u.call(i,f):h[d])>-1&&(i[c]=!(a[c]=f))}}else p=he(p===a?p.splice(y,p.length):p),o?o(null,a,p,s):m.apply(a,p)})}function ge(e){for(var r,o,i,a=e.length,l=t.relative[e[0].type],s=l||t.relative[" "],c=l?1:0,d=fe(function(e){return e===r},s,!0),f=fe(function(e){return u.call(r,e)>-1},s,!0),p=[function(e,t,o){var i=!l&&(o||t!=n)||((r=t).nodeType?d(e,t,o):f(e,t,o));return r=null,i}];c<a;c++)if(o=t.relative[e[c].type])p=[fe(pe(p),o)];else{if((o=t.filter[e[c].type].apply(null,e[c].matches))[y]){for(i=++c;i<a&&!t.relative[e[i].type];i++);return me(c>1&&pe(p),c>1&&de(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(B,"$1"),o,c<i&&ge(e.slice(c,i)),i<a&&ge(e=e.slice(i)),i<a&&de(e))}p.push(o)}return pe(p)}function ye(e,r){var o,i=[],a=[],l=E[e+" "];if(!l){for(r||(r=ue(e)),o=r.length;o--;)(l=ge(r[o]))[y]?i.push(l):a.push(l);l=E(e,function(e,r){var o=r.length>0,i=e.length>0,a=function(a,l,c,u,f){var p,h,g,y=0,b="0",x=a&&[],w=[],E=n,T=a||i&&t.find.TAG("*",f),C=v+=null==E?1:Math.random()||.1,S=T.length;for(f&&(n=l==s||l||f);b!==S&&null!=(p=T[b]);b++){if(i&&p){for(h=0,l||p.ownerDocument==s||(se(p),c=!d);g=e[h++];)if(g(p,l||s,c)){m.call(u,p);break}f&&(v=C)}o&&((p=!g&&p)&&y--,a&&x.push(p))}if(y+=b,o&&b!==y){for(h=0;g=r[h++];)g(x,w,l,c);if(a){if(y>0)for(;b--;)x[b]||w[b]||(w[b]=M.call(u));w=he(w)}m.apply(u,w),f&&!a&&w.length>0&&y+r.length>1&&_.uniqueSort(u)}return f&&(v=C,n=E),x};return o?te(a):a}(a,i)),l.selector=e}return l}function ve(e,n,r,o){var i,a,l,s,c,u="function"==typeof e&&e,f=!o&&ue(e=u.selector||e);if(r=r||[],1===f.length){if((a=f[0]=f[0].slice(0)).length>2&&"ID"===(l=a[0]).type&&9===n.nodeType&&d&&t.relative[a[1].type]){if(!(n=(t.find.ID(l.matches[0].replace(X,z),n)||[])[0]))return r;u&&(n=n.parentNode),e=e.slice(a.shift().value.length)}for(i=K.needsContext.test(e)?0:a.length;i--&&(l=a[i],!t.relative[s=l.type]);)if((c=t.find[s])&&(o=c(l.matches[0].replace(X,z),$.test(a[0].type)&&le(n.parentNode)||n))){if(a.splice(i,1),!(e=o.length&&de(a)))return m.apply(r,o),r;break}}return(u||ye(e,f))(o,n,!d,r,!n||$.test(e)&&le(n.parentNode)||n),r}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,g.sortStable=y.split("").sort(C).join("")===y,se(),g.sortDetached=ne(function(e){return 1&e.compareDocumentPosition(s.createElement("fieldset"))}),_.find=Z,_.expr[":"]=_.expr.pseudos,_.unique=_.uniqueSort,Z.compile=ye,Z.select=ve,Z.setDocument=se,Z.tokenize=ue,Z.escape=_.escapeSelector,Z.getText=_.text,Z.isXML=_.isXMLDoc,Z.selectors=_.expr,Z.support=_.support,Z.uniqueSort=_.uniqueSort}();var P=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&_(e).is(n))break;r.push(e)}return r},O=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},F=_.expr.match.needsContext,G=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function H(e,t,n){return y(t)?_.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?_.grep(e,function(e){return e===t!==n}):"string"!=typeof t?_.grep(e,function(e){return u.call(t,e)>-1!==n}):_.filter(t,e,n)}_.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?_.find.matchesSelector(r,e)?[r]:[]:_.find.matches(e,_.grep(t,function(e){return 1===e.nodeType}))},_.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(_(e).filter(function(){for(t=0;t<r;t++)if(_.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)_.find(e,o[t],n);return r>1?_.uniqueSort(n):n},filter:function(e){return this.pushStack(H(this,e||[],!1))},not:function(e){return this.pushStack(H(this,e||[],!0))},is:function(e){return!!H(this,"string"==typeof e&&F.test(e)?_(e):e||[],!1).length}});var j,V=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:V.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof _?t[0]:t,_.merge(this,_.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),G.test(r[1])&&_.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=b.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(_):_.makeArray(e,this)}).prototype=_.fn,j=_(b);var K=/^(?:parents|prev(?:Until|All))/,W={children:!0,contents:!0,next:!0,prev:!0};function Y(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}_.fn.extend({has:function(e){var t=_(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(_.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,o=this.length,i=[],a="string"!=typeof e&&_(e);if(!F.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&_.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?_.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?u.call(_(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),_.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return P(e,"parentNode")},parentsUntil:function(e,t,n){return P(e,"parentNode",n)},next:function(e){return Y(e,"nextSibling")},prev:function(e){return Y(e,"previousSibling")},nextAll:function(e){return P(e,"nextSibling")},prevAll:function(e){return P(e,"previousSibling")},nextUntil:function(e,t,n){return P(e,"nextSibling",n)},prevUntil:function(e,t,n){return P(e,"previousSibling",n)},siblings:function(e){return O((e.parentNode||{}).firstChild,e)},children:function(e){return O(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),_.merge([],e.childNodes))}},function(e,t){_.fn[e]=function(n,r){var o=_.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=_.filter(r,o)),this.length>1&&(W[e]||_.uniqueSort(o),K.test(e)&&o.reverse()),this.pushStack(o)}});var U=/[^\x20\t\r\n\f]+/g;function $(e){return e}function X(e){throw e}function z(e,t,n,r){var o;try{e&&y(o=e.promise)?o.call(e).done(t).fail(n):e&&y(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}_.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return _.each(e.match(U)||[],function(e,n){t[n]=!0}),t}(e):_.extend({},e);var t,n,r,o,i=[],a=[],l=-1,s=function(){for(o=o||e.once,r=t=!0;a.length;l=-1)for(n=a.shift();++l<i.length;)!1===i[l].apply(n[0],n[1])&&e.stopOnFalse&&(l=i.length,n=!1);e.memory||(n=!1),t=!1,o&&(i=n?[]:"")},c={add:function(){return i&&(n&&!t&&(l=i.length-1,a.push(n)),function t(n){_.each(n,function(n,r){y(r)?e.unique&&c.has(r)||i.push(r):r&&r.length&&"string"!==E(r)&&t(r)})}(arguments),n&&!t&&s()),this},remove:function(){return _.each(arguments,function(e,t){for(var n;(n=_.inArray(t,i,n))>-1;)i.splice(n,1),n<=l&&l--}),this},has:function(e){return e?_.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||t||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||s()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},_.extend({Deferred:function(e){var t=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return _.Deferred(function(n){_.each(t,function(t,r){var o=y(e[r[4]])&&e[r[4]];i[r[1]](function(){var e=o&&o.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[e]:arguments)})}),e=null}).promise()},then:function(e,n,o){var i=0;function a(e,t,n,o){return function(){var l=this,s=arguments,c=function(){var r,c;if(!(e<i)){if((r=n.apply(l,s))===t.promise())throw new TypeError("Thenable self-resolution");c=r&&("object"==typeof r||"function"==typeof r)&&r.then,y(c)?o?c.call(r,a(i,t,$,o),a(i,t,X,o)):(i++,c.call(r,a(i,t,$,o),a(i,t,X,o),a(i,t,$,t.notifyWith))):(n!==$&&(l=void 0,s=[r]),(o||t.resolveWith)(l,s))}},u=o?c:function(){try{c()}catch(r){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(r,u.error),e+1>=i&&(n!==X&&(l=void 0,s=[r]),t.rejectWith(l,s))}};e?u():(_.Deferred.getErrorHook?u.error=_.Deferred.getErrorHook():_.Deferred.getStackHook&&(u.error=_.Deferred.getStackHook()),r.setTimeout(u))}}return _.Deferred(function(r){t[0][3].add(a(0,r,y(o)?o:$,r.notifyWith)),t[1][3].add(a(0,r,y(e)?e:$)),t[2][3].add(a(0,r,y(n)?n:X))}).promise()},promise:function(e){return null!=e?_.extend(e,o):o}},i={};return _.each(t,function(e,r){var a=r[2],l=r[5];o[r[1]]=a.add,l&&a.add(function(){n=l},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(r[3].fire),i[r[0]]=function(){return i[r[0]+"With"](this===i?void 0:this,arguments),this},i[r[0]+"With"]=a.fireWith}),o.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),o=l.call(arguments),i=_.Deferred(),a=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?l.call(arguments):n,--t||i.resolveWith(r,o)}};if(t<=1&&(z(e,i.done(a(n)).resolve,i.reject,!t),"pending"===i.state()||y(o[n]&&o[n].then)))return i.then();for(;n--;)z(o[n],a(n),i.reject);return i.promise()}});var J=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&J.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},_.readyException=function(e){r.setTimeout(function(){throw e})};var Q=_.Deferred();function Z(){b.removeEventListener("DOMContentLoaded",Z),r.removeEventListener("load",Z),_.ready()}_.fn.ready=function(e){return Q.then(e).catch(function(e){_.readyException(e)}),this},_.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--_.readyWait:_.isReady)||(_.isReady=!0,!0!==e&&--_.readyWait>0||Q.resolveWith(b,[_]))}}),_.ready.then=Q.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(_.ready):(b.addEventListener("DOMContentLoaded",Z),r.addEventListener("load",Z));var ee=function(e,t,n,r,o,i,a){var l=0,s=e.length,c=null==n;if("object"===E(n))for(l in o=!0,n)ee(e,t,l,n[l],!0,i,a);else if(void 0!==r&&(o=!0,y(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(_(e),n)})),t))for(;l<s;l++)t(e[l],n,a?r:r.call(e[l],l,t(e[l],n)));return o?e:c?t.call(e):s?t(e[0],n):i},te=/^-ms-/,ne=/-([a-z])/g;function re(e,t){return t.toUpperCase()}function oe(e){return e.replace(te,"ms-").replace(ne,re)}var ie=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ae(){this.expando=_.expando+ae.uid++}ae.uid=1,ae.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ie(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[oe(t)]=n;else for(r in t)o[oe(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][oe(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(oe):(t=oe(t))in r?[t]:t.match(U)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||_.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!_.isEmptyObject(t)}};var le=new ae,se=new ae,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function de(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ue,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(n)}catch(e){}se.set(e,t,n)}else n=void 0;return n}_.extend({hasData:function(e){return se.hasData(e)||le.hasData(e)},data:function(e,t,n){return se.access(e,t,n)},removeData:function(e,t){se.remove(e,t)},_data:function(e,t,n){return le.access(e,t,n)},_removeData:function(e,t){le.remove(e,t)}}),_.fn.extend({data:function(e,t){var n,r,o,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(o=se.get(i),1===i.nodeType&&!le.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=oe(r.slice(5)),de(i,r,o[r]));le.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){se.set(this,e)}):ee(this,function(t){var n;if(i&&void 0===t)return void 0!==(n=se.get(i,e))||void 0!==(n=de(i,e))?n:void 0;this.each(function(){se.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){se.remove(this,e)})}}),_.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=le.get(e,t),n&&(!r||Array.isArray(n)?r=le.access(e,t,_.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=_.queue(e,t),r=n.length,o=n.shift(),i=_._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,function(){_.dequeue(e,t)},i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return le.get(e,n)||le.access(e,n,{empty:_.Callbacks("once memory").add(function(){le.remove(e,[t+"queue",n])})})}}),_.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?_.queue(this[0],e):void 0===t?this:this.each(function(){var n=_.queue(this,e,t);_._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&_.dequeue(this,e)})},dequeue:function(e){return this.each(function(){_.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=_.Deferred(),i=this,a=this.length,l=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=le.get(i[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(l));return l(),o.promise(t)}});var fe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pe=new RegExp("^(?:([+-])=|)("+fe+")([a-z%]*)$","i"),he=["Top","Right","Bottom","Left"],me=b.documentElement,ge=function(e){return _.contains(e.ownerDocument,e)},ye={composed:!0};me.getRootNode&&(ge=function(e){return _.contains(e.ownerDocument,e)||e.getRootNode(ye)===e.ownerDocument});var ve=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ge(e)&&"none"===_.css(e,"display")};function be(e,t,n,r){var o,i,a=20,l=r?function(){return r.cur()}:function(){return _.css(e,t,"")},s=l(),c=n&&n[3]||(_.cssNumber[t]?"":"px"),u=e.nodeType&&(_.cssNumber[t]||"px"!==c&&+s)&&pe.exec(_.css(e,t));if(u&&u[3]!==c){for(s/=2,c=c||u[3],u=+s||1;a--;)_.style(e,t,u+c),(1-i)*(1-(i=l()/s||.5))<=0&&(a=0),u/=i;u*=2,_.style(e,t,u+c),n=n||[]}return n&&(u=+u||+s||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=o)),o}var xe={};function we(e){var t,n=e.ownerDocument,r=e.nodeName,o=xe[r];return o||(t=n.body.appendChild(n.createElement(r)),o=_.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),xe[r]=o,o)}function Ee(e,t){for(var n,r,o=[],i=0,a=e.length;i<a;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(o[i]=le.get(r,"display")||null,o[i]||(r.style.display="")),""===r.style.display&&ve(r)&&(o[i]=we(r))):"none"!==n&&(o[i]="none",le.set(r,"display",n)));for(i=0;i<a;i++)null!=o[i]&&(e[i].style.display=o[i]);return e}_.fn.extend({show:function(){return Ee(this,!0)},hide:function(){return Ee(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ve(this)?_(this).show():_(this).hide()})}});var Te,Ce,_e=/^(?:checkbox|radio)$/i,Se=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ae=/^$|^module$|\/(?:java|ecma)script/i;Te=b.createDocumentFragment().appendChild(b.createElement("div")),(Ce=b.createElement("input")).setAttribute("type","radio"),Ce.setAttribute("checked","checked"),Ce.setAttribute("name","t"),Te.appendChild(Ce),g.checkClone=Te.cloneNode(!0).cloneNode(!0).lastChild.checked,Te.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!Te.cloneNode(!0).lastChild.defaultValue,Te.innerHTML="<option></option>",g.option=!!Te.lastChild;var Me={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ke(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?_.merge([e],n):n}function Ie(e,t){for(var n=0,r=e.length;n<r;n++)le.set(e[n],"globalEval",!t||le.get(t[n],"globalEval"))}Me.tbody=Me.tfoot=Me.colgroup=Me.caption=Me.thead,Me.th=Me.td,g.option||(Me.optgroup=Me.option=[1,"<select multiple='multiple'>","</select>"]);var Ne=/<|&#?\w+;/;function Be(e,t,n,r,o){for(var i,a,l,s,c,u,d=t.createDocumentFragment(),f=[],p=0,h=e.length;p<h;p++)if((i=e[p])||0===i)if("object"===E(i))_.merge(f,i.nodeType?[i]:i);else if(Ne.test(i)){for(a=a||d.appendChild(t.createElement("div")),l=(Se.exec(i)||["",""])[1].toLowerCase(),s=Me[l]||Me._default,a.innerHTML=s[1]+_.htmlPrefilter(i)+s[2],u=s[0];u--;)a=a.lastChild;_.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(t.createTextNode(i));for(d.textContent="",p=0;i=f[p++];)if(r&&_.inArray(i,r)>-1)o&&o.push(i);else if(c=ge(i),a=ke(d.appendChild(i),"script"),c&&Ie(a),n)for(u=0;i=a[u++];)Ae.test(i.type||"")&&n.push(i);return d}var Re=/^([^.]*)(?:\.(.+)|)/;function qe(){return!0}function Le(){return!1}function De(e,t,n,r,o,i){var a,l;if("object"==typeof t){for(l in"string"!=typeof n&&(r=r||n,n=void 0),t)De(e,l,n,r,t[l],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=Le;else if(!o)return e;return 1===i&&(a=o,o=function(e){return _().off(e),a.apply(this,arguments)},o.guid=a.guid||(a.guid=_.guid++)),e.each(function(){_.event.add(this,t,o,r,n)})}function Pe(e,t,n){n?(le.set(e,t,!1),_.event.add(e,t,{namespace:!1,handler:function(e){var n,r=le.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(_.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=l.call(arguments),le.set(this,t,r),this[t](),n=le.get(this,t),le.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(le.set(this,t,_.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=qe)}})):void 0===le.get(e,t)&&_.event.add(e,t,qe)}_.event={global:{},add:function(e,t,n,r,o){var i,a,l,s,c,u,d,f,p,h,m,g=le.get(e);if(ie(e))for(n.handler&&(n=(i=n).handler,o=i.selector),o&&_.find.matchesSelector(me,o),n.guid||(n.guid=_.guid++),(s=g.events)||(s=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(t){return void 0!==_&&_.event.triggered!==t.type?_.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(U)||[""]).length;c--;)p=m=(l=Re.exec(t[c])||[])[1],h=(l[2]||"").split(".").sort(),p&&(d=_.event.special[p]||{},p=(o?d.delegateType:d.bindType)||p,d=_.event.special[p]||{},u=_.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&_.expr.match.needsContext.test(o),namespace:h.join(".")},i),(f=s[p])||((f=s[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(p,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,u):f.push(u),_.event.global[p]=!0)},remove:function(e,t,n,r,o){var i,a,l,s,c,u,d,f,p,h,m,g=le.hasData(e)&&le.get(e);if(g&&(s=g.events)){for(c=(t=(t||"").match(U)||[""]).length;c--;)if(p=m=(l=Re.exec(t[c])||[])[1],h=(l[2]||"").split(".").sort(),p){for(d=_.event.special[p]||{},f=s[p=(r?d.delegateType:d.bindType)||p]||[],l=l[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=f.length;i--;)u=f[i],!o&&m!==u.origType||n&&n.guid!==u.guid||l&&!l.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(f.splice(i,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||_.removeEvent(e,p,g.handle),delete s[p])}else for(p in s)_.event.remove(e,p+t[c],n,r,!0);_.isEmptyObject(s)&&le.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,a,l=new Array(arguments.length),s=_.event.fix(e),c=(le.get(this,"events")||Object.create(null))[s.type]||[],u=_.event.special[s.type]||{};for(l[0]=s,t=1;t<arguments.length;t++)l[t]=arguments[t];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(a=_.event.handlers.call(this,s,c),t=0;(o=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==i.namespace&&!s.rnamespace.test(i.namespace)||(s.handleObj=i,s.data=i.data,void 0!==(r=((_.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,o,i,a,l=[],s=t.delegateCount,c=e.target;if(s&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(i=[],a={},n=0;n<s;n++)void 0===a[o=(r=t[n]).selector+" "]&&(a[o]=r.needsContext?_(o,this).index(c)>-1:_.find(o,this,null,[c]).length),a[o]&&i.push(r);i.length&&l.push({elem:c,handlers:i})}return c=this,s<t.length&&l.push({elem:c,handlers:t.slice(s)}),l},addProp:function(e,t){Object.defineProperty(_.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[_.expando]?e:new _.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return _e.test(t.type)&&t.click&&A(t,"input")&&Pe(t,"click",!0),!1},trigger:function(e){var t=this||e;return _e.test(t.type)&&t.click&&A(t,"input")&&Pe(t,"click"),!0},_default:function(e){var t=e.target;return _e.test(t.type)&&t.click&&A(t,"input")&&le.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},_.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},_.Event=function(e,t){if(!(this instanceof _.Event))return new _.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?qe:Le,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&_.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[_.expando]=!0},_.Event.prototype={constructor:_.Event,isDefaultPrevented:Le,isPropagationStopped:Le,isImmediatePropagationStopped:Le,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=qe,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=qe,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=qe,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},_.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},_.event.addProp),_.each({focus:"focusin",blur:"focusout"},function(e,t){function n(e){if(b.documentMode){var n=le.get(this,"handle"),r=_.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else _.event.simulate(t,e.target,_.event.fix(e))}_.event.special[e]={setup:function(){var r;if(Pe(this,e,!0),!b.documentMode)return!1;(r=le.get(this,t))||this.addEventListener(t,n),le.set(this,t,(r||0)+1)},trigger:function(){return Pe(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=le.get(this,t)-1)?le.set(this,t,e):(this.removeEventListener(t,n),le.remove(this,t))},_default:function(t){return le.get(t.target,e)},delegateType:t},_.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,o=b.documentMode?this:r,i=le.get(o,t);i||(b.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),le.set(o,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=b.documentMode?this:r,i=le.get(o,t)-1;i?le.set(o,t,i):(b.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),le.remove(o,t))}}}),_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){_.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,o=e.handleObj;return r&&(r===this||_.contains(this,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),_.fn.extend({on:function(e,t,n,r){return De(this,e,t,n,r)},one:function(e,t,n,r){return De(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,_(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Le),this.each(function(){_.event.remove(this,e,n,t)})}});var Oe=/<script|<style|<link/i,Fe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ge=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function He(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&_(e).children("tbody")[0]||e}function je(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ve(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ke(e,t){var n,r,o,i,a,l;if(1===t.nodeType){if(le.hasData(e)&&(l=le.get(e).events))for(o in le.remove(t,"handle events"),l)for(n=0,r=l[o].length;n<r;n++)_.event.add(t,o,l[o][n]);se.hasData(e)&&(i=se.access(e),a=_.extend({},i),se.set(t,a))}}function We(e,t){var n=t.nodeName.toLowerCase();"input"===n&&_e.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ye(e,t,n,r){t=s(t);var o,i,a,l,c,u,d=0,f=e.length,p=f-1,h=t[0],m=y(h);if(m||f>1&&"string"==typeof h&&!g.checkClone&&Fe.test(h))return e.each(function(o){var i=e.eq(o);m&&(t[0]=h.call(this,o,i.html())),Ye(i,t,n,r)});if(f&&(i=(o=Be(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(l=(a=_.map(ke(o,"script"),je)).length;d<f;d++)c=o,d!==p&&(c=_.clone(c,!0,!0),l&&_.merge(a,ke(c,"script"))),n.call(e[d],c,d);if(l)for(u=a[a.length-1].ownerDocument,_.map(a,Ve),d=0;d<l;d++)c=a[d],Ae.test(c.type||"")&&!le.access(c,"globalEval")&&_.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?_._evalUrl&&!c.noModule&&_._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(Ge,""),c,u))}return e}function Ue(e,t,n){for(var r,o=t?_.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||_.cleanData(ke(r)),r.parentNode&&(n&&ge(r)&&Ie(ke(r,"script")),r.parentNode.removeChild(r));return e}_.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,o,i,a,l=e.cloneNode(!0),s=ge(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||_.isXMLDoc(e)))for(a=ke(l),r=0,o=(i=ke(e)).length;r<o;r++)We(i[r],a[r]);if(t)if(n)for(i=i||ke(e),a=a||ke(l),r=0,o=i.length;r<o;r++)Ke(i[r],a[r]);else Ke(e,l);return(a=ke(l,"script")).length>0&&Ie(a,!s&&ke(e,"script")),l},cleanData:function(e){for(var t,n,r,o=_.event.special,i=0;void 0!==(n=e[i]);i++)if(ie(n)){if(t=n[le.expando]){if(t.events)for(r in t.events)o[r]?_.event.remove(n,r):_.removeEvent(n,r,t.handle);n[le.expando]=void 0}n[se.expando]&&(n[se.expando]=void 0)}}}),_.fn.extend({detach:function(e){return Ue(this,e,!0)},remove:function(e){return Ue(this,e)},text:function(e){return ee(this,function(e){return void 0===e?_.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Ye(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||He(this,e).appendChild(e)})},prepend:function(){return Ye(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=He(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Ye(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ye(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(_.cleanData(ke(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return _.clone(this,e,t)})},html:function(e){return ee(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!Me[(Se.exec(e)||["",""])[1].toLowerCase()]){e=_.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(_.cleanData(ke(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Ye(this,arguments,function(t){var n=this.parentNode;_.inArray(this,e)<0&&(_.cleanData(ke(this)),n&&n.replaceChild(t,this))},e)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){_.fn[e]=function(e){for(var n,r=[],o=_(e),i=o.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),_(o[a])[t](n),c.apply(r,n.get());return this.pushStack(r)}});var $e=new RegExp("^("+fe+")(?!px)[a-z%]+$","i"),Xe=/^--/,ze=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Je=function(e,t,n){var r,o,i={};for(o in t)i[o]=e.style[o],e.style[o]=t[o];for(o in r=n.call(e),t)e.style[o]=i[o];return r},Qe=new RegExp(he.join("|"),"i");function Ze(e,t,n){var r,o,i,a,l=Xe.test(t),s=e.style;return(n=n||ze(e))&&(a=n.getPropertyValue(t)||n[t],l&&a&&(a=a.replace(B,"$1")||void 0),""!==a||ge(e)||(a=_.style(e,t)),!g.pixelBoxStyles()&&$e.test(a)&&Qe.test(t)&&(r=s.width,o=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=o,s.maxWidth=i)),void 0!==a?a+"":a}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",me.appendChild(c).appendChild(u);var e=r.getComputedStyle(u);n="1%"!==e.top,s=12===t(e.marginLeft),u.style.right="60%",a=36===t(e.right),o=36===t(e.width),u.style.position="absolute",i=12===t(u.offsetWidth/3),me.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,o,i,a,l,s,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,_.extend(g,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,o;return null==l&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",me.appendChild(e).appendChild(t).appendChild(n),o=r.getComputedStyle(t),l=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===t.offsetHeight,me.removeChild(e)),l}}))}();var tt=["Webkit","Moz","ms"],nt=b.createElement("div").style,rt={};function ot(e){var t=_.cssProps[e]||rt[e];return t||(e in nt?e:rt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e}(e)||e)}var it=/^(none|table(?!-c[ea]).+)/,at={position:"absolute",visibility:"hidden",display:"block"},lt={letterSpacing:"0",fontWeight:"400"};function st(e,t,n){var r=pe.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function ct(e,t,n,r,o,i){var a="width"===t?1:0,l=0,s=0,c=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=_.css(e,n+he[a],!0,o)),r?("content"===n&&(s-=_.css(e,"padding"+he[a],!0,o)),"margin"!==n&&(s-=_.css(e,"border"+he[a]+"Width",!0,o))):(s+=_.css(e,"padding"+he[a],!0,o),"padding"!==n?s+=_.css(e,"border"+he[a]+"Width",!0,o):l+=_.css(e,"border"+he[a]+"Width",!0,o));return!r&&i>=0&&(s+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-s-l-.5))||0),s+c}function ut(e,t,n){var r=ze(e),o=(!g.boxSizingReliable()||n)&&"border-box"===_.css(e,"boxSizing",!1,r),i=o,a=Ze(e,t,r),l="offset"+t[0].toUpperCase()+t.slice(1);if($e.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&o||!g.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===_.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===_.css(e,"boxSizing",!1,r),(i=l in e)&&(a=e[l])),(a=parseFloat(a)||0)+ct(e,t,n||(o?"border":"content"),i,r,a)+"px"}function dt(e,t,n,r,o){return new dt.prototype.init(e,t,n,r,o)}_.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ze(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,l=oe(t),s=Xe.test(t),c=e.style;if(s||(t=ot(l)),a=_.cssHooks[t]||_.cssHooks[l],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:c[t];"string"===(i=typeof n)&&(o=pe.exec(n))&&o[1]&&(n=be(e,t,o),i="number"),null!=n&&n==n&&("number"!==i||s||(n+=o&&o[3]||(_.cssNumber[l]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(s?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var o,i,a,l=oe(t);return Xe.test(t)||(t=ot(l)),(a=_.cssHooks[t]||_.cssHooks[l])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=Ze(e,t,r)),"normal"===o&&t in lt&&(o=lt[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),_.each(["height","width"],function(e,t){_.cssHooks[t]={get:function(e,n,r){if(n)return!it.test(_.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,r):Je(e,at,function(){return ut(e,t,r)})},set:function(e,n,r){var o,i=ze(e),a=!g.scrollboxSize()&&"absolute"===i.position,l=(a||r)&&"border-box"===_.css(e,"boxSizing",!1,i),s=r?ct(e,t,r,l,i):0;return l&&a&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-ct(e,t,"border",!1,i)-.5)),s&&(o=pe.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=_.css(e,t)),st(0,n,s)}}}),_.cssHooks.marginLeft=et(g.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ze(e,"marginLeft"))||e.getBoundingClientRect().left-Je(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),_.each({margin:"",padding:"",border:"Width"},function(e,t){_.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+he[r]+t]=i[r]||i[r-2]||i[0];return o}},"margin"!==e&&(_.cssHooks[e+t].set=st)}),_.fn.extend({css:function(e,t){return ee(this,function(e,t,n){var r,o,i={},a=0;if(Array.isArray(t)){for(r=ze(e),o=t.length;a<o;a++)i[t[a]]=_.css(e,t[a],!1,r);return i}return void 0!==n?_.style(e,t,n):_.css(e,t)},e,t,arguments.length>1)}}),_.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||_.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(_.cssNumber[n]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,n=dt.propHooks[this.prop];return this.options.duration?this.pos=t=_.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=_.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){_.fx.step[e.prop]?_.fx.step[e.prop](e):1!==e.elem.nodeType||!_.cssHooks[e.prop]&&null==e.elem.style[ot(e.prop)]?e.elem[e.prop]=e.now:_.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},_.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},_.fx=dt.prototype.init,_.fx.step={};var ft,pt,ht=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;function gt(){pt&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(gt):r.setTimeout(gt,_.fx.interval),_.fx.tick())}function yt(){return r.setTimeout(function(){ft=void 0}),ft=Date.now()}function vt(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=he[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function bt(e,t,n){for(var r,o=(xt.tweeners[t]||[]).concat(xt.tweeners["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(n,t,e))return r}function xt(e,t,n){var r,o,i=0,a=xt.prefilters.length,l=_.Deferred().always(function(){delete s.elem}),s=function(){if(o)return!1;for(var t=ft||yt(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),i=0,a=c.tweens.length;i<a;i++)c.tweens[i].run(r);return l.notifyWith(e,[c,r,n]),r<1&&a?n:(a||l.notifyWith(e,[c,1,0]),l.resolveWith(e,[c]),!1)},c=l.promise({elem:e,props:_.extend({},t),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},n),originalProperties:t,originalOptions:n,startTime:ft||yt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=_.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)c.tweens[n].run(1);return t?(l.notifyWith(e,[c,1,0]),l.resolveWith(e,[c,t])):l.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,r,o,i,a;for(n in e)if(o=t[r=oe(n)],i=e[n],Array.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(a=_.cssHooks[r])&&"expand"in a)for(n in i=a.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=o);else t[r]=o}(u,c.opts.specialEasing);i<a;i++)if(r=xt.prefilters[i].call(c,e,u,c.opts))return y(r.stop)&&(_._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return _.map(u,bt,c),y(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),_.fx.timer(_.extend(s,{elem:e,anim:c,queue:c.opts.queue})),c}_.Animation=_.extend(xt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,pe.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(U);for(var n,r=0,o=e.length;r<o;r++)n=e[r],xt.tweeners[n]=xt.tweeners[n]||[],xt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,o,i,a,l,s,c,u,d="width"in t||"height"in t,f=this,p={},h=e.style,m=e.nodeType&&ve(e),g=le.get(e,"fxshow");for(r in n.queue||(null==(a=_._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,f.always(function(){f.always(function(){a.unqueued--,_.queue(e,"fx").length||a.empty.fire()})})),t)if(o=t[r],ht.test(o)){if(delete t[r],i=i||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!g||void 0===g[r])continue;m=!0}p[r]=g&&g[r]||_.style(e,r)}if((s=!_.isEmptyObject(t))||!_.isEmptyObject(p))for(r in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(c=g&&g.display)&&(c=le.get(e,"display")),"none"===(u=_.css(e,"display"))&&(c?u=c:(Ee([e],!0),c=e.style.display||c,u=_.css(e,"display"),Ee([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===_.css(e,"float")&&(s||(f.done(function(){h.display=c}),null==c&&(u=h.display,c="none"===u?"":u)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",f.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),s=!1,p)s||(g?"hidden"in g&&(m=g.hidden):g=le.access(e,"fxshow",{display:c}),i&&(g.hidden=!m),m&&Ee([e],!0),f.done(function(){for(r in m||Ee([e]),le.remove(e,"fxshow"),p)_.style(e,r,p[r])})),s=bt(m?g[r]:0,r,f),r in g||(g[r]=s.start,m&&(s.end=s.start,s.start=0))}],prefilter:function(e,t){t?xt.prefilters.unshift(e):xt.prefilters.push(e)}}),_.speed=function(e,t,n){var r=e&&"object"==typeof e?_.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return _.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in _.fx.speeds?r.duration=_.fx.speeds[r.duration]:r.duration=_.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&_.dequeue(this,r.queue)},r},_.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ve).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=_.isEmptyObject(e),i=_.speed(t,n,r),a=function(){var t=xt(this,_.extend({},e),i);(o||le.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",i=_.timers,a=le.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&mt.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));!t&&n||_.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=le.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=_.timers,a=r?r.length:0;for(n.finish=!0,_.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),_.each(["toggle","show","hide"],function(e,t){var n=_.fn[t];_.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(vt(t,!0),e,r,o)}}),_.each({slideDown:vt("show"),slideUp:vt("hide"),slideToggle:vt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){_.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),_.timers=[],_.fx.tick=function(){var e,t=0,n=_.timers;for(ft=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||_.fx.stop(),ft=void 0},_.fx.timer=function(e){_.timers.push(e),_.fx.start()},_.fx.interval=13,_.fx.start=function(){pt||(pt=!0,gt())},_.fx.stop=function(){pt=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(e,t){return e=_.fx&&_.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,n){var o=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(o)}})},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var wt,Et=_.expr.attrHandle;_.fn.extend({attr:function(e,t){return ee(this,_.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){_.removeAttr(this,e)})}}),_.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?_.prop(e,t,n):(1===i&&_.isXMLDoc(e)||(o=_.attrHooks[t.toLowerCase()]||(_.expr.match.bool.test(t)?wt:void 0)),void 0!==n?null===n?void _.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=_.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(U);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),wt={set:function(e,t,n){return!1===t?_.removeAttr(e,n):e.setAttribute(n,n),n}},_.each(_.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Et[t]||_.find.attr;Et[t]=function(e,t,r){var o,i,a=t.toLowerCase();return r||(i=Et[a],Et[a]=o,o=null!=n(e,t,r)?a:null,Et[a]=i),o}});var Tt=/^(?:input|select|textarea|button)$/i,Ct=/^(?:a|area)$/i;function _t(e){return(e.match(U)||[]).join(" ")}function St(e){return e.getAttribute&&e.getAttribute("class")||""}function At(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(U)||[]}_.fn.extend({prop:function(e,t){return ee(this,_.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[_.propFix[e]||e]})}}),_.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&_.isXMLDoc(e)||(t=_.propFix[t]||t,o=_.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=_.find.attr(e,"tabindex");return t?parseInt(t,10):Tt.test(e.nodeName)||Ct.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(_.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){_.propFix[this.toLowerCase()]=this}),_.fn.extend({addClass:function(e){var t,n,r,o,i,a;return y(e)?this.each(function(t){_(this).addClass(e.call(this,t,St(this)))}):(t=At(e)).length?this.each(function(){if(r=St(this),n=1===this.nodeType&&" "+_t(r)+" "){for(i=0;i<t.length;i++)o=t[i],n.indexOf(" "+o+" ")<0&&(n+=o+" ");a=_t(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(e){var t,n,r,o,i,a;return y(e)?this.each(function(t){_(this).removeClass(e.call(this,t,St(this)))}):arguments.length?(t=At(e)).length?this.each(function(){if(r=St(this),n=1===this.nodeType&&" "+_t(r)+" "){for(i=0;i<t.length;i++)for(o=t[i];n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");a=_t(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(e,t){var n,r,o,i,a=typeof e,l="string"===a||Array.isArray(e);return y(e)?this.each(function(n){_(this).toggleClass(e.call(this,n,St(this),t),t)}):"boolean"==typeof t&&l?t?this.addClass(e):this.removeClass(e):(n=At(e),this.each(function(){if(l)for(i=_(this),o=0;o<n.length;o++)r=n[o],i.hasClass(r)?i.removeClass(r):i.addClass(r);else void 0!==e&&"boolean"!==a||((r=St(this))&&le.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":le.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+_t(St(n))+" ").indexOf(t)>-1)return!0;return!1}});var Mt=/\r/g;_.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=y(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,_(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=_.map(o,function(e){return null==e?"":e+""})),(t=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=_.valHooks[o.type]||_.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(Mt,""):null==n?"":n:void 0}}),_.extend({valHooks:{option:{get:function(e){var t=_.find.attr(e,"value");return null!=t?t:_t(_.text(e))}},select:{get:function(e){var t,n,r,o=e.options,i=e.selectedIndex,a="select-one"===e.type,l=a?null:[],s=a?i+1:o.length;for(r=i<0?s:a?i:0;r<s;r++)if(((n=o[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=_(n).val(),a)return t;l.push(t)}return l},set:function(e,t){for(var n,r,o=e.options,i=_.makeArray(t),a=o.length;a--;)((r=o[a]).selected=_.inArray(_.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),_.each(["radio","checkbox"],function(){_.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=_.inArray(_(e).val(),t)>-1}},g.checkOn||(_.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var kt=r.location,It={guid:Date.now()},Nt=/\?/;_.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||_.error("Invalid XML: "+(n?_.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Bt=/^(?:focusinfocus|focusoutblur)$/,Rt=function(e){e.stopPropagation()};_.extend(_.event,{trigger:function(e,t,n,o){var i,a,l,s,c,u,d,f,h=[n||b],m=p.call(e,"type")?e.type:e,g=p.call(e,"namespace")?e.namespace.split("."):[];if(a=f=l=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Bt.test(m+_.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[_.expando]?e:new _.Event(m,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:_.makeArray(t,[e]),d=_.event.special[m]||{},o||!d.trigger||!1!==d.trigger.apply(n,t))){if(!o&&!d.noBubble&&!v(n)){for(s=d.delegateType||m,Bt.test(s+m)||(a=a.parentNode);a;a=a.parentNode)h.push(a),l=a;l===(n.ownerDocument||b)&&h.push(l.defaultView||l.parentWindow||r)}for(i=0;(a=h[i++])&&!e.isPropagationStopped();)f=a,e.type=i>1?s:d.bindType||m,(u=(le.get(a,"events")||Object.create(null))[e.type]&&le.get(a,"handle"))&&u.apply(a,t),(u=c&&a[c])&&u.apply&&ie(a)&&(e.result=u.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,o||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),t)||!ie(n)||c&&y(n[m])&&!v(n)&&((l=n[c])&&(n[c]=null),_.event.triggered=m,e.isPropagationStopped()&&f.addEventListener(m,Rt),n[m](),e.isPropagationStopped()&&f.removeEventListener(m,Rt),_.event.triggered=void 0,l&&(n[c]=l)),e.result}},simulate:function(e,t,n){var r=_.extend(new _.Event,n,{type:e,isSimulated:!0});_.event.trigger(r,null,t)}}),_.fn.extend({trigger:function(e,t){return this.each(function(){_.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return _.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Lt=/\r?\n/g,Dt=/^(?:submit|button|image|reset|file)$/i,Pt=/^(?:input|select|textarea|keygen)/i;function Ot(e,t,n,r){var o;if(Array.isArray(t))_.each(t,function(t,o){n||qt.test(e)?r(e,o):Ot(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,r)});else if(n||"object"!==E(t))r(e,t);else for(o in t)Ot(e+"["+o+"]",t[o],n,r)}_.param=function(e,t){var n,r=[],o=function(e,t){var n=y(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!_.isPlainObject(e))_.each(e,function(){o(this.name,this.value)});else for(n in e)Ot(n,e[n],t,o);return r.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=_.prop(this,"elements");return e?_.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!_(this).is(":disabled")&&Pt.test(this.nodeName)&&!Dt.test(e)&&(this.checked||!_e.test(e))}).map(function(e,t){var n=_(this).val();return null==n?null:Array.isArray(n)?_.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Ft=/%20/g,Gt=/#.*$/,Ht=/([?&])_=[^&]*/,jt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Vt=/^(?:GET|HEAD)$/,Kt=/^\/\//,Wt={},Yt={},Ut="*/".concat("*"),$t=b.createElement("a");function Xt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(U)||[];if(y(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function zt(e,t,n,r){var o={},i=e===Yt;function a(l){var s;return o[l]=!0,_.each(e[l]||[],function(e,l){var c=l(t,n,r);return"string"!=typeof c||i||o[c]?i?!(s=c):void 0:(t.dataTypes.unshift(c),a(c),!1)}),s}return a(t.dataTypes[0])||!o["*"]&&a("*")}function Jt(e,t){var n,r,o=_.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&_.extend(!0,e,r),e}$t.href=kt.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:kt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(kt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ut,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Jt(Jt(e,_.ajaxSettings),t):Jt(_.ajaxSettings,e)},ajaxPrefilter:Xt(Wt),ajaxTransport:Xt(Yt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,o,i,a,l,s,c,u,d,f,p=_.ajaxSetup({},t),h=p.context||p,m=p.context&&(h.nodeType||h.jquery)?_(h):_.event,g=_.Deferred(),y=_.Callbacks("once memory"),v=p.statusCode||{},x={},w={},E="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=jt.exec(i);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?i:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)T.always(e[T.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||E;return n&&n.abort(t),C(0,t),this}};if(g.promise(T),p.url=((e||p.url||kt.href)+"").replace(Kt,kt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(U)||[""],null==p.crossDomain){s=b.createElement("a");try{s.href=p.url,s.href=s.href,p.crossDomain=$t.protocol+"//"+$t.host!=s.protocol+"//"+s.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=_.param(p.data,p.traditional)),zt(Wt,p,t,T),c)return T;for(d in(u=_.event&&p.global)&&0===_.active++&&_.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Vt.test(p.type),o=p.url.replace(Gt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ft,"+")):(f=p.url.slice(o.length),p.data&&(p.processData||"string"==typeof p.data)&&(o+=(Nt.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(o=o.replace(Ht,"$1"),f=(Nt.test(o)?"&":"?")+"_="+It.guid+++f),p.url=o+f),p.ifModified&&(_.lastModified[o]&&T.setRequestHeader("If-Modified-Since",_.lastModified[o]),_.etag[o]&&T.setRequestHeader("If-None-Match",_.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&T.setRequestHeader("Content-Type",p.contentType),T.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ut+"; q=0.01":""):p.accepts["*"]),p.headers)T.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(h,T,p)||c))return T.abort();if(E="abort",y.add(p.complete),T.done(p.success),T.fail(p.error),n=zt(Yt,p,t,T)){if(T.readyState=1,u&&m.trigger("ajaxSend",[T,p]),c)return T;p.async&&p.timeout>0&&(l=r.setTimeout(function(){T.abort("timeout")},p.timeout));try{c=!1,n.send(x,C)}catch(e){if(c)throw e;C(-1,e)}}else C(-1,"No Transport");function C(e,t,a,s){var d,f,b,x,w,E=t;c||(c=!0,l&&r.clearTimeout(l),n=void 0,i=s||"",T.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(x=function(e,t,n){for(var r,o,i,a,l=e.contents,s=e.dataTypes;"*"===s[0];)s.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in l)if(l[o]&&l[o].test(r)){s.unshift(o);break}if(s[0]in n)i=s[0];else{for(o in n){if(!s[0]||e.converters[o+" "+s[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==s[0]&&s.unshift(i),n[i]}(p,T,a)),!d&&_.inArray("script",p.dataTypes)>-1&&_.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),x=function(e,t,n,r){var o,i,a,l,s,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(i=u.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!s&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),s=i,i=u.shift())if("*"===i)i=s;else if("*"!==s&&s!==i){if(!(a=c[s+" "+i]||c["* "+i]))for(o in c)if((l=o.split(" "))[1]===i&&(a=c[s+" "+l[0]]||c["* "+l[0]])){!0===a?a=c[o]:!0!==c[o]&&(i=l[0],u.unshift(l[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+s+" to "+i}}}return{state:"success",data:t}}(p,x,T,d),d?(p.ifModified&&((w=T.getResponseHeader("Last-Modified"))&&(_.lastModified[o]=w),(w=T.getResponseHeader("etag"))&&(_.etag[o]=w)),204===e||"HEAD"===p.type?E="nocontent":304===e?E="notmodified":(E=x.state,f=x.data,d=!(b=x.error))):(b=E,!e&&E||(E="error",e<0&&(e=0))),T.status=e,T.statusText=(t||E)+"",d?g.resolveWith(h,[f,E,T]):g.rejectWith(h,[T,E,b]),T.statusCode(v),v=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[T,p,d?f:b]),y.fireWith(h,[T,E]),u&&(m.trigger("ajaxComplete",[T,p]),--_.active||_.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return _.get(e,t,n,"json")},getScript:function(e,t){return _.get(e,void 0,t,"script")}}),_.each(["get","post"],function(e,t){_[t]=function(e,n,r,o){return y(n)&&(o=o||r,r=n,n=void 0),_.ajax(_.extend({url:e,type:t,dataType:o,data:n,success:r},_.isPlainObject(e)&&e))}}),_.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),_._evalUrl=function(e,t,n){return _.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){_.globalEval(e,t,n)}})},_.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=_(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return y(e)?this.each(function(t){_(this).wrapInner(e.call(this,t))}):this.each(function(){var t=_(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=y(e);return this.each(function(n){_(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){_(this).replaceWith(this.childNodes)}),this}}),_.expr.pseudos.hidden=function(e){return!_.expr.pseudos.visible(e)},_.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Qt={0:200,1223:204},Zt=_.ajaxSettings.xhr();g.cors=!!Zt&&"withCredentials"in Zt,g.ajax=Zt=!!Zt,_.ajaxTransport(function(e){var t,n;if(g.cors||Zt&&!e.crossDomain)return{send:function(o,i){var a,l=e.xhr();if(l.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)l[a]=e.xhrFields[a];for(a in e.mimeType&&l.overrideMimeType&&l.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)l.setRequestHeader(a,o[a]);t=function(e){return function(){t&&(t=n=l.onload=l.onerror=l.onabort=l.ontimeout=l.onreadystatechange=null,"abort"===e?l.abort():"error"===e?"number"!=typeof l.status?i(0,"error"):i(l.status,l.statusText):i(Qt[l.status]||l.status,l.statusText,"text"!==(l.responseType||"text")||"string"!=typeof l.responseText?{binary:l.response}:{text:l.responseText},l.getAllResponseHeaders()))}},l.onload=t(),n=l.onerror=l.ontimeout=t("error"),void 0!==l.onabort?l.onabort=n:l.onreadystatechange=function(){4===l.readyState&&r.setTimeout(function(){t&&n()})},t=t("abort");try{l.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),_.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return _.globalEval(e),e}}}),_.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),_.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,o){t=_("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}});var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||_.expando+"_"+It.guid++;return this[e]=!0,e}}),_.ajaxPrefilter("json jsonp",function(e,t,n){var o,i,a,l=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(l||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,l?e[l]=e[l].replace(nn,"$1"+o):!1!==e.jsonp&&(e.url+=(Nt.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||_.error(o+" was not called"),a[0]},e.dataTypes[0]="json",i=r[o],r[o]=function(){a=arguments},n.always(function(){void 0===i?_(r).removeProp(o):r[o]=i,e[o]&&(e.jsonpCallback=t.jsonpCallback,tn.push(o)),a&&y(i)&&i(a[0]),a=i=void 0}),"script"}),g.createHTMLDocument=((en=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),_.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),i=!n&&[],(o=G.exec(e))?[t.createElement(o[1])]:(o=Be([e],t,i),i&&i.length&&_(i).remove(),_.merge([],o.childNodes)));var r,o,i},_.fn.load=function(e,t,n){var r,o,i,a=this,l=e.indexOf(" ");return l>-1&&(r=_t(e.slice(l)),e=e.slice(0,l)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&_.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){i=arguments,a.html(r?_("<div>").append(_.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},_.expr.pseudos.animated=function(e){return _.grep(_.timers,function(t){return e===t.elem}).length},_.offset={setOffset:function(e,t,n){var r,o,i,a,l,s,c=_.css(e,"position"),u=_(e),d={};"static"===c&&(e.style.position="relative"),l=u.offset(),i=_.css(e,"top"),s=_.css(e,"left"),("absolute"===c||"fixed"===c)&&(i+s).indexOf("auto")>-1?(a=(r=u.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(s)||0),y(t)&&(t=t.call(e,n,_.extend({},l))),null!=t.top&&(d.top=t.top-l.top+a),null!=t.left&&(d.left=t.left-l.left+o),"using"in t?t.using.call(e,d):u.css(d)}},_.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){_.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===_.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===_.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=_(e).offset()).top+=_.css(e,"borderTopWidth",!0),o.left+=_.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-_.css(r,"marginTop",!0),left:t.left-o.left-_.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===_.css(e,"position");)e=e.offsetParent;return e||me})}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;_.fn[e]=function(r){return ee(this,function(e,r,o){var i;if(v(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o},e,r,arguments.length)}}),_.each(["top","left"],function(e,t){_.cssHooks[t]=et(g.pixelPosition,function(e,n){if(n)return n=Ze(e,t),$e.test(n)?_(e).position()[t]+"px":n})}),_.each({Height:"height",Width:"width"},function(e,t){_.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){_.fn[r]=function(o,i){var a=arguments.length&&(n||"boolean"!=typeof o),l=n||(!0===o||!0===i?"margin":"border");return ee(this,function(t,n,o){var i;return v(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?_.css(t,n,l):_.style(t,n,o,l)},t,a?o:void 0,a)}})}),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){_.fn[t]=function(e){return this.on(t,e)}}),_.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),_.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){_.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;_.proxy=function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return r=l.call(arguments,2),o=function(){return e.apply(t||this,r.concat(l.call(arguments)))},o.guid=e.guid=e.guid||_.guid++,o},_.holdReady=function(e){e?_.readyWait++:_.ready(!0)},_.isArray=Array.isArray,_.parseJSON=JSON.parse,_.nodeName=A,_.isFunction=y,_.isWindow=v,_.camelCase=oe,_.type=E,_.now=Date.now,_.isNumeric=function(e){var t=_.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},_.trim=function(e){return null==e?"":(e+"").replace(rn,"$1")},void 0===(n=function(){return _}.apply(t,[]))||(e.exports=n);var on=r.jQuery,an=r.$;return _.noConflict=function(e){return r.$===_&&(r.$=an),e&&r.jQuery===_&&(r.jQuery=on),_},void 0===o&&(r.jQuery=r.$=_),_})},433:(e,t,n)=>{"use strict";t.__esModule=!0,t.attachASortBehavior=t.sortTablesByAveDesc=t.sortTablesByADesc=t.sortByAveForCurrentSiteOnce=t.sortByAForCurrentSiteOnce=void 0;var r=n(222),o=n(601),i=n(983);function a(e){var t=e.trim().match(/([\d.]+)\s*@/);return t?Number(t[1]):-1/0}function l(e){var t=e.trim().match(/@([\d.]+)/);return t?Number(t[1]):-1/0}function s(){if("undefined"!=typeof document)if((0,r.isKpMTeamHost)()){var e=(0,r.findTorrentTables)();if(!e.length)return;e.forEach(function(e){return(0,i.sortMTeamTableByA)(e,!0)})}else c()}function c(){if("undefined"!=typeof document){var e=(0,r.findTorrentTables)();e.length&&e.forEach(function(e){var t=e.tBodies;if(t&&t.length){var n=t[t.length-1],o=Array.from(n.children).filter(function(e){return"TR"===e.tagName});if(o.length){for(var i=[],l=[],s=0;s<o.length;){var c=o[s];if(c.querySelector("td.colhead"))i.push(c),s+=1;else{var u=Array.from(c.children),d=c.querySelector("td[data-iyuu-a-col='1']")||(0,r.findACell)(u);if(d){for(var f=a(d.textContent||""),p=[c],h=l.length,m=s+1;m<o.length;){var g=o[m],y=Array.from(g.children),v=Boolean(g.querySelector("td.colhead")),b=g.querySelector("td[data-iyuu-a-col='1']")||(0,r.findACell)(y);if(v||b)break;p.push(g),m+=1}l.push({rows:p,aVal:f,origIndex:h}),s=m}else i.push(c),s+=1}}var x=l.filter(function(e){return e.aVal!==-1/0}),w=l.filter(function(e){return e.aVal===-1/0});x.sort(function(e,t){return e.aVal===t.aVal?e.origIndex-t.origIndex:t.aVal-e.aVal});var E=[];i.forEach(function(e){return E.push(e)}),x.forEach(function(e){return e.rows.forEach(function(e){return E.push(e)})}),w.forEach(function(e){return e.rows.forEach(function(e){return E.push(e)})}),E.forEach(function(e){return n.appendChild(e)})}}})}}function u(){if("undefined"!=typeof document){var e=(0,r.findTorrentTables)();e.length&&e.forEach(function(e){var t=e.tBodies;if(t&&t.length){var n=t[t.length-1],o=Array.from(n.children).filter(function(e){return"TR"===e.tagName});if(o.length){for(var i=[],a=[],s=0;s<o.length;){var c=o[s];if(c.querySelector("td.colhead"))i.push(c),s+=1;else{var u=Array.from(c.children),d=c.querySelector("td[data-iyuu-a-col='1']")||(0,r.findACell)(u);if(d){for(var f=l(d.textContent||""),p=[c],h=a.length,m=s+1;m<o.length;){var g=o[m],y=Array.from(g.children),v=Boolean(g.querySelector("td.colhead")),b=g.querySelector("td[data-iyuu-a-col='1']")||(0,r.findACell)(y);if(v||b)break;p.push(g),m+=1}a.push({rows:p,aVal:f,origIndex:h}),s=m}else i.push(c),s+=1}}var x=a.filter(function(e){return e.aVal!==-1/0}),w=a.filter(function(e){return e.aVal===-1/0});x.sort(function(e,t){return e.aVal===t.aVal?e.origIndex-t.origIndex:t.aVal-e.aVal});var E=[];i.forEach(function(e){return E.push(e)}),x.forEach(function(e){return e.rows.forEach(function(e){return E.push(e)})}),w.forEach(function(e){return e.rows.forEach(function(e){return E.push(e)})}),E.forEach(function(e){return n.appendChild(e)})}}})}}t.sortByAForCurrentSiteOnce=s,t.sortByAveForCurrentSiteOnce=function(){if("undefined"!=typeof document)if((0,r.isKpMTeamHost)()){var e=(0,r.findTorrentTables)();if(!e.length)return;e.forEach(function(e){return(0,i.sortMTeamTableByAve)(e,!0)})}else u()},t.sortTablesByADesc=c,t.sortTablesByAveDesc=u,t.attachASortBehavior=function(e,t){if("undefined"!=typeof document){var n=!1;try{n=GM_getValue(o.SORT_A_DESC_KEY,!1)}catch(e){n=!1}n&&!e.checked&&(e.checked=!0);var r=function(e){try{GM_setValue(o.SORT_A_DESC_KEY,e)}catch(e){}e?(s(),t&&(t.textContent="已按 A 值降序排序当前页面种子列表。")):t&&(t.textContent="已关闭按 A 值排序(刷新页面恢复原顺序)。")};e.checked&&r(!0),e.onchange=function(){r(e.checked)}}}},983:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};t.__esModule=!0,t.sortMTeamTableByAve=t.sortMTeamTableByA=void 0;var o=n(222);function i(e){var t=e.trim().match(/([\d.]+)\s*@/);return t?Number(t[1]):-1/0}function a(e,t){var n=r([],e,!0);return t?n.sort(function(e,t){return e.aVal===t.aVal?e.origIndex-t.origIndex:t.aVal-e.aVal}):n.sort(function(e,t){return e.origIndex-t.origIndex}),n}function l(e){var t=e.tBodies;if(!t||!t.length)return{headerRows:[],groups:[]};for(var n=t[t.length-1],r=Array.from(n.querySelectorAll("tr")),a=[],l=[],s=0;s<r.length;){var c=r[s];if(c.querySelector("td.colhead"))a.push(c),s+=1;else{var u=Array.from(c.children),d=c.querySelector("td[data-iyuu-a-col='1']")||(0,o.findACell)(u);if(d){for(var f=i(d.textContent||""),p=[c],h=l.length,m=s+1;m<r.length;){var g=r[m],y=Array.from(g.children),v=Boolean(g.querySelector("td.colhead")),b=g.querySelector("td[data-iyuu-a-col='1']")||(0,o.findACell)(y);if(v||b)break;p.push(g),m+=1}l.push({rows:p,aVal:f,origIndex:h}),s=m}else a.push(c),s+=1}}return{headerRows:a,groups:l}}t.sortMTeamTableByA=function(e,t){var n=l(e),r=n.headerRows,o=a(n.groups,t),i=e.tBodies;if(i&&i.length){var s=i[i.length-1],c=[];r.forEach(function(e){return c.push(e)}),o.forEach(function(e){return e.rows.forEach(function(e){return c.push(e)})}),c.forEach(function(e){return s.appendChild(e)})}},t.sortMTeamTableByAve=function(e,t){var n=l(e),r=n.headerRows,i=n.groups;i.forEach(function(e){var t,n,r=e.rows[0],i=Array.from(r.children),a=r.querySelector("td[data-iyuu-a-col='1']")||(0,o.findACell)(i);e.aVal=a?(t=a.textContent||"",(n=t.trim().match(/@([\d.]+)/))?Number(n[1]):-1/0):-1/0});var s=a(i,t),c=e.tBodies;if(c&&c.length){var u=c[c.length-1],d=[];r.forEach(function(e){return d.push(e)}),s.forEach(function(e){return e.rows.forEach(function(e){return d.push(e)})}),d.forEach(function(e){return u.appendChild(e)})}}},283:function(e,t){"use strict";var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};t.__esModule=!0,t.findBookmarkTargetInRow=t.getBookmarkRow=t.collectBookmarkTargets=void 0;t.collectBookmarkTargets=function(){var e=Array.from(document.querySelectorAll("a[id^='bookmark'][href^='javascript: bookmark(']")).filter(function(e){return null!==e.offsetParent}),t=[];document.querySelectorAll("tr").forEach(function(e){var n=Array.from(e.querySelectorAll("button.ant-btn-icon-only"));if(n.length){var r=n[0];r.querySelector("span[aria-label='star'], .anticon-star")&&t.push(r)}});var r=t.filter(function(e){return null!==e.offsetParent});return n(n([],e,!0),r,!0)};t.getBookmarkRow=function(e){return e.closest("tr.progresstr, tr.ant-table-row")||e.closest("tr")};t.findBookmarkTargetInRow=function(e){var t=e.querySelector("a[id^='bookmark'][href^='javascript: bookmark(']");return t&&null!==t.offsetParent?t:null}},690:(e,t,n)=>{"use strict";t.__esModule=!0,t.createCombinedActionControls=void 0;var r=n(283),o=n(818),i=function(e,t){t?(e.style.backgroundColor="#4caf50",e.style.borderColor="#4caf50",e.style.color="#ffffff",e.dataset.active="1",e.dataset.baseBg="#4caf50"):(e.style.backgroundColor="#f5f5f5",e.style.borderColor="#ccc",e.style.color="#000000",e.dataset.active="0",e.dataset.baseBg="#f5f5f5")},a=function(e,t,n,r){if(e.length){var o=0;t.textContent="准备点击".concat(r," ").concat(e.length," 个按钮,请稍候…");var i=setInterval(function(){if(o>=e.length)return clearInterval(i),void(t.textContent="已尝试点击".concat(r," ").concat(e.length," 个按钮。"));var n=e[o];try{n.click()}catch(e){console.error("点击按钮失败:",e)}o++},n)}else t.textContent="未找到".concat(r,"对应的按钮。")},l=function(e){var t=e.querySelector("img");return!!t&&(!!t.classList.contains("bookmark")||(t.getAttribute("title")||"").includes("去除收藏"))},s=function(){var e=new Set;return(0,r.collectBookmarkTargets)().forEach(function(t){var n=(0,r.getBookmarkRow)(t);n&&e.add(n)}),(0,o.collectDownloadTargets)().forEach(function(t){var n=(0,o.getDownloadRow)(t);n&&e.add(n)}),Array.from(e)};t.createCombinedActionControls=function(e){var t=e.stylePanelButton,n=e.statusSpan,c=e.isKpMTeam,u=e.selectionManager,d={bookmark:!0,download:!1},f={finished:!1,seeding:!1,downloading:!1,"not-downloaded":!1},p=document.createElement("div");p.style.display="flex",p.style.alignItems="center",p.style.gap="10px";var h=function(e,t){var n=document.createElement("label");n.style.display="inline-flex",n.style.alignItems="center",n.style.gap="6px",n.style.cursor="pointer",n.style.fontSize="12px";var r=document.createElement("input");r.type="checkbox",r.checked=d[t],r.addEventListener("change",function(){d[t]=r.checked});var o=document.createElement("span");return o.textContent=e,n.appendChild(r),n.appendChild(o),n};p.appendChild(h("收藏","bookmark")),p.appendChild(h("下载","download"));var m=document.createElement("button");m.textContent="手动选择",m.title="进入/退出手动选择",t(m);var g=document.createElement("button");g.textContent="执行已选",g.title="按勾选的方式执行已选条目",t(g);var y=document.createElement("button");y.textContent="取消收藏",y.title="对已收藏条目取消收藏",t(y);var v=document.createElement("button");v.textContent="点本页所有收藏/下载",v.title="按勾选的“收藏/下载”执行本页全部",t(v),v.onclick=function(){if(d.bookmark||d.download){if(d.bookmark){var e=(0,r.collectBookmarkTargets)().filter(function(e){return!l(e)});a(e,n,c?2e3:120,"收藏")}d.download&&a((0,o.collectDownloadTargets)(),n,c?2e3:1200,"下载")}else n.textContent="请先勾选“收藏”或“下载”。"},m.onclick=function(){if(u.isActive())return u.exit(),void(m.textContent="手动选择");var e=s();u.activate(e)&&(m.textContent="退出手动选择")};var b=function(){Object.keys(f).forEach(function(e){f[e]&&u.setStatusSelection(e,!0)})};g.onclick=function(){if(d.bookmark||d.download){if(!u.isActive()){var e=s();if(!u.activate(e))return void(n.textContent="请先进入手动选择。");m.textContent="退出手动选择",b()}var t=u.getSelectedRows();if(t.length){if(d.bookmark){var i=t.map(function(e){return(0,r.findBookmarkTargetInRow)(e)}).filter(function(e){return Boolean(e)&&!l(e)});a(i,n,c?2e3:120,"收藏")}if(d.download){i=t.map(function(e){return(0,o.findDownloadTargetInRow)(e)}).filter(function(e){return Boolean(e)});a(i,n,c?2e3:1200,"下载")}u.clearSelection()}else n.textContent="请先勾选要执行的条目。"}else n.textContent="请先勾选“收藏”或“下载”。"},y.onclick=function(){if(!u.isActive()){var e=s();if(!u.activate(e))return void(n.textContent="请先进入手动选择。");m.textContent="退出手动选择",b()}var t=u.getSelectedRows();if(t.length){var o=t.map(function(e){return(0,r.findBookmarkTargetInRow)(e)}).filter(function(e){return Boolean(e)&&l(e)});o.length?(a(o,n,c?2e3:120,"取消收藏"),u.clearSelection()):n.textContent="已勾选条目中未找到已收藏的种子。"}else n.textContent="请先勾选要取消收藏的条目。"};var x=[],w=function(e,n){var r=document.createElement("button");return r.textContent=e,r.title="一键勾选状态:".concat(e),t(r),i(r,!1),r.onclick=function(){if(!u.isActive()){var e=s();if(!u.activate(e))return;m.textContent="退出手动选择"}f[n]=!f[n],i(r,f[n]),u.setStatusSelection(n,f[n])},x.push(r),r},E=document.createElement("button");E.textContent="全选",E.title="勾选所有状态",t(E),E.onclick=function(){if(!u.isActive()){var e=s();if(!u.activate(e))return;m.textContent="退出手动选择"}Object.keys(f).forEach(function(e){f[e]=!0}),x.forEach(function(e){return i(e,!0)}),Object.keys(f).forEach(function(e){u.setStatusSelection(e,!0)})};var T=[E,w("已完成","finished"),w("正在做种","seeding"),w("正在下载","downloading"),w("未下载","not-downloaded")],C=document.createElement("button");return C.textContent="清空状态",C.title="清空状态勾选并取消当前选择",t(C),C.onclick=function(){Object.keys(f).forEach(function(e){f[e]=!1}),x.forEach(function(e){return i(e,!1)}),u.clearSelection()},{actionRow:p,mainButtons:[v,m,g,y],statusButtons:T,clearStatusButton:C}}},397:(e,t,n)=>{"use strict";t.__esModule=!0,t.attachClickAllDownloadsHandler=t.createClickAllDownloadsButton=void 0,t.createClickAllDownloadsButton=function(e){var t=document.createElement("button");return t.textContent="点击本页所有下载按钮",t.title="依次点击本页所有下载按钮",e(t),t};var r=n(818);t.attachClickAllDownloadsHandler=function(e,t,n){e.onclick=function(){try{var e=(0,r.collectDownloadTargets)();if(!e.length)return void(t.textContent="未找到任何下载按钮。");var o=0,i=n?2e3:1200;t.textContent="准备点击本页 ".concat(e.length," 个下载按钮,请稍候…");var a=setInterval(function(){if(o>=e.length)return clearInterval(a),void(t.textContent="已尝试点击本页全部 ".concat(e.length," 个下载按钮。"));var n=e[o];try{n.click()}catch(e){console.error("点击下载按钮失败:",e)}o++},i)}catch(e){console.error("批量点击下载按钮失败:",e),t.textContent="批量点击下载按钮失败,请查看控制台。"}}}},818:(e,t)=>{"use strict";t.__esModule=!0,t.collectDownloadTargets=t.findDownloadTargetInRow=t.getDownloadRow=void 0;t.getDownloadRow=function(e){return e.closest("tr.progresstr, tr.ant-table-row")||e.closest("tr")};t.findDownloadTargetInRow=function(e){var t=e.querySelector("a[href*='download.php?id=']");if(t&&null!==t.offsetParent)return t;var n=e.querySelector("input.download");if(n&&null!==n.offsetParent)return n;var r=Array.from(e.querySelectorAll("button.ant-btn-icon-only"));return r.length>=2&&null!==r[1].offsetParent?r[1]:null};t.collectDownloadTargets=function(){var e=[];return document.querySelectorAll("tr").forEach(function(n){if(!n.querySelector("td.colhead")){var r=(0,t.findDownloadTargetInRow)(n);r&&e.push(r)}}),e}},996:()=>{function e(){if("undefined"!=typeof window&&/(^|\.)iptorrents\.com$/i.test(window.location.hostname)&&"undefined"!=typeof document){var e={Home:"首页",Upload:"发布",Request:"求种",Settings:"设置",Invites:"邀请","Top 10":"前十",Rules:"规则",Mirrors:"镜像",FAQ:"常见问题",IPTV:"IPTV",Staff:"管理组",Help:"帮助",Profile:"个人资料","Log out":"退出登录",Ratio:"分享率",Uploaded:"上传量",Downloaded:"下载量","Active Torrents":"活动种子","Bonus Points":"魔力值",Bookmarks:"书签",Chat:"聊天","T-Subs":"种子订阅","F-Subs":"论坛订阅","New Posts":"新帖子","My Topics":"我的主题","No new messages":"没有新消息","My Friends":"好友列表",Browse:"浏览",Movies:"电影","TV Shows":"剧集",Forums:"论坛",RSS:"RSS","TV Guide":"电视指南",Donate:"捐助",Hide:"隐藏",Show:"显示","Top Torrents":"热门种子","Staff Picks":"官推精选","HOT RIGHT NOW!":"当前热门!","Settings - IPTorrents - #1 Private Tracker":"设置 - IPTorrents - #1 Private Tracker","Update Email Address":"修改邮箱地址","Update Password":"修改密码","SSL Tracker":"SSL Tracker","Use SSL for tracker announces":"为 Tracker 通信使用 SSL","Torrents - Category column":"种子列表 - 分类列显示方式",Code:"代码",Text:"文字",Icons:"图标","Torrents - Show new tags":"种子列表 - 显示 NEW 标记","Torrents - Show files count":"种子列表 - 显示文件数量","Show Avatars":"显示头像","Show Signatures":"显示签名","Home Page":"默认首页","All Topics":"所有主题",News:"新闻","Topic Subscriptions":"主题订阅",Torrents:"种子列表","Torrent Subscriptions":"种子订阅","Preferred Video Quality":"首选视频清晰度","Torrent Title Font-Weight":"种子标题粗细",Normal:"正常","Bold When New":"仅新种为粗体",Bold:"全部粗体","Accept PMs":"接收私信","All (except blocks)":"所有人(黑名单除外)","Friends & Staff":"好友与管理组","Show Recommended Torrents":"显示推荐种子","Show XXX Torrents":"显示成人分类种子","Browse defaultcategories":"浏览默认分类","Avatar URL":"头像地址","Upload Picture":"上传图片","Posts per Page":"每页帖子数","Topics per Page":"每页主题数","Torrents per Page":"每页种子数",Signature:"论坛签名",Info:"个人介绍",Update:"更新设置","Please Wait...":"请稍候...","Search similar torrents":"搜索相似种子","Download Torrent":"下载种子文件","Add to Bookmark":"加入书签","Go to comments":"查看评论","Clear NEW tags":"清除 NEW 标记",Next:"下一页",Last:"末页",Page:"第",of:"页 / 共"},t=function(t){if(t&&0===t.childElementCount){var n=t.firstChild;if(n&&n.nodeType===Node.TEXT_NODE){var r=(n.textContent||"").trim();if(r){var o=e[r];o&&(n.textContent=o)}}}},n=["#Head .topRow a","#Head .stats .tTip.ttop","#Head .ql b",".butRow b","button.tog span","#topTables th","#topTables .tTip.ttop",".tmS .tmT",".browse_torrents thead th",".hotBox h2, .hotBox .title, .hotBox .header","#body h2 a.i0"].join(",");document.querySelectorAll(n).forEach(function(e){var n;"SPAN"===e.tagName&&(null===(n=e.parentElement)||void 0===n||n.classList.contains("tog")),t(e)});if(["#iptStart"].forEach(function(e){var n=document.querySelector(e);n&&n.querySelectorAll(".tTip.ttop, button.tog span").forEach(function(e){return t(e)})}),document.querySelectorAll("#body th.ar").forEach(function(t){var n=(t.textContent||"").replace(/\s+/g," ").trim();if(n){var r=n;n.startsWith("Browse default")&&(r="Browse defaultcategories");var o=e[r];o&&(t.textContent=o)}}),document.querySelectorAll("input[type='submit'][value='Update']").forEach(function(e){e.value="更新设置"}),(window.location.pathname||"").includes("mybonus")){var r=document.querySelector("#body")||document.body,o=[{from:"Exchange your Bonus Points for goodies!",to:"用你的魔力值兑换各种奖励!"},{from:"Currently you have",to:"当前你拥有"},{from:"Bonus Points!",to:"点魔力值!"},{from:"[ If no buttons appear, you have not earned enough bonus points to trade. ]",to:"[ 如果没有显示兑换按钮,说明你当前的魔力值还不足以进行兑换。 ]"},{from:"Option",to:"选项"},{from:"Description",to:"说明"},{from:"Points Needed",to:"所需魔力值"},{from:"Trade",to:"兑换"},{from:"Custom Title!",to:"自定义头衔!"},{from:"To get bonus points you need to have the complete torrent which includes all txt/nfo documents, samples, and subtitles. Keep the torrent open in your torrent client and your bonus points will start to increase.",to:"要获得魔力值,你需要完整做种,包括所有 txt/nfo 文档、样片和字幕。只要在客户端中保持种子处于做种状态,你的魔力值就会开始增加。"},{from:"It means, when you download a torrent 100% (completely), share back and every hour you will earn bonus points, (up to a maximum of 15 torrents)  you keep sharing back.  Just download the torrent 100% and don't close your torrent client, keep sharing with others.  Even if no one downloads from you, you will still get bonus points for them.",to:"也就是说,当你把种子 100% 下载完成并开始回传时,每做种一小时就会获得一定的魔力值(最多同时计入 15 个种子)。只需完整下载种子,不要关闭客户端,持续与他人分享即可。即使暂时没有人向你下载,这些种子仍然会为你产出魔力值。"},{from:"Once you accumulate loads of points you can use them on any of the options listed above. You get points even if there are no leechers on the torrent and you can seed as many torrents as you want. Yet another way to help out your ratio!",to:"当你积累了足够多的魔力值,就可以在上面的选项中自由兑换。即使某个种子没有下载者,你依然会获得对应的魔力值,而且可以同时做种任意数量的种子。这是提升分享率的又一条有效途径!"},{from:"Keep Seeding! Plus Enjoy Being with us!",to:"请持续做种,也祝你在本站玩得愉快!"},{from:"What are these Bonus points, and how do I get them?",to:"什么是魔力值?如何获取?"},{from:"IPT's recommendation for optimal sharing:",to:"IPT 推荐的最佳分享客户端:"}];if(r){for(var i=document.createTreeWalker(r,NodeFilter.SHOW_TEXT,null),a=[],l=i.nextNode();l;)a.push(l),l=i.nextNode();a.forEach(function(e){var t=e.nodeValue||"",n=!1;o.forEach(function(e){var r=e.from,o=e.to;t.includes(r)&&(t=t.replace(r,o),n=!0)}),n&&(e.nodeValue=t)})}var s=function(e,t){var n=document.querySelector(e);n&&n.childNodes.forEach(function(e){if(e.nodeType===Node.TEXT_NODE){var n=e.textContent||"",r=!1;t.forEach(function(e){var t=e.from,o=e.to;n&&n.includes(t)&&(n=n.replace(t,o),r=!0)}),r&&(e.textContent=n)}})};s("table.t1 h1 font[color='#F00']",[{from:"Bonus Point system:",to:"魔力值系统:"}]),s("table.t1 td[colspan='4'][align='center']",[{from:"Exchange your Bonus Points for goodies!",to:"用你的魔力值兑换各种奖励!"},{from:"Currently you have",to:"当前你拥有"},{from:"Bonus Points!",to:"点魔力值!"},{from:"[ If no buttons appear, you have not earned enough bonus points to trade. ]",to:"[ 如果没有显示兑换按钮,说明你当前的魔力值还不足以进行兑换。 ]"}]),s("table.t1 tr:nth-of-type(3)",[{from:"Option",to:"选项"},{from:"Description",to:"说明"},{from:"Points Needed",to:"所需魔力值"},{from:"Trade",to:"兑换"}]),s("table.t1 tr td h1",[{from:"Upload Credit",to:"上传积分"},{from:"Custom Title!",to:"自定义头衔!"}]),s("table.t1 tr td[align='left']",[{from:"With enough bonus points acquired, you are able to exchange them for an Upload Credit.",to:"当你累计了足够的魔力值后,可以将其兑换为上传积分。"},{from:"The points are then removed from your Bonus Bank and the credit is added to your total uploaded amount.",to:"兑换后,相应魔力值会从魔力值账户中扣除,上传积分会计入你的总上传量。"}]),s("table.t1 + br + br + br + table.t1 h1 font",[{from:"What are these Bonus points, and how do I get them?",to:"什么是魔力值?如何获取?"}]),s("table.t1 + br + br + br + table.t1 td[align='center']",[{from:"To get bonus points you need to have the complete torrent which includes all txt/nfo documents, samples, and subtitles.",to:"要获得魔力值,你需要完整做种,包括所有的 txt/nfo 文档、样片和字幕。"},{from:"Keep the torrent open in your torrent client and your bonus points will start to increase.",to:"只要在客户端中保持种子处于做种状态,你的魔力值就会开始增加。"},{from:"It means, when you download a torrent 100% (completely), share back and every hour you will earn bonus points, (up to a maximum of 15 torrents)  you keep sharing back.",to:"也就是说,当你把种子 100% 下载完成并开始回传时,每做种一小时就会获得一定的魔力值(最多同时计入 15 个种子)。"},{from:"Just download the torrent 100% and don't close your torrent client, keep sharing with others.",to:"只需完整下载种子,不要关闭客户端,持续与他人分享即可。"},{from:"Even if no one downloads from you, you will still get bonus points for them.",to:"即使暂时没有人向你下载,这些种子仍然会为你产出魔力值。"},{from:"Once you accumulate loads of points you can use them on any of the options listed above.",to:"当你积累了足够多的魔力值,就可以在上面的选项中自由兑换。"},{from:"You get points even if there are no leechers on the torrent and you can seed as many torrents as you want.",to:"即使某个种子没有下载者,你依然会获得对应的魔力值,而且可以同时做种任意数量的种子。"},{from:"Yet another way to help out your ratio!",to:"这是提升分享率的又一条有效途径!"}]),s("table.t1 + br + br + br + table.t1 + table + div[style*='recommendation for optimal sharing']",[{from:"IPT's recommendation for optimal sharing:",to:"IPT 推荐的最佳分享客户端:"}])}var c=document.querySelector(".pagination .paginate .page_nav");c&&c.querySelectorAll(".single a").forEach(function(e){var t=e.firstChild;if(t&&t.nodeType===Node.TEXT_NODE){var n=t.textContent||"",r=n.trim();r.startsWith("Next")?t.textContent=n.replace("Next","下一页"):r.startsWith("Last")&&(t.textContent=n.replace("Last","末页"))}/Page\s+\d+/.test(e.textContent||"")&&e.childNodes.forEach(function(e){if(e.nodeType===Node.TEXT_NODE){var t=e.textContent||"";t.includes("Page")?e.textContent=t.replace("Page","第"):t.includes("of")&&(e.textContent=t.replace("of"," 页 / 共 "))}})})}}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e())},380:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};t.__esModule=!0,t.attachOneClickDownloadHandlers=void 0;var i=n(816),a=n(222),l=n(397),s=function(e){if(!e.trim())return null;var t=Number(e);return Number.isNaN(t)?null:t},c=function(e){return{minA:s(e.aMinInput.value),maxA:s(e.aMaxInput.value),minReseed:s(e.reseedMinInput.value),maxReseed:s(e.reseedMaxInput.value)}},u=function(e,t,n){var r=[],o=new Set;return e.forEach(function(e){Array.from(e.querySelectorAll("tbody > tr")).forEach(function(i){if(!i.querySelector("td.colhead")){var l=Array.from(i.children);if(l.length){var s=(0,a.findACell)(l);if(s){var c=(s.textContent||"").trim().match(/([\d.]+)\s*@/),u=c?Number(c[1]):null,d=null,f=(0,a.getSeederIndex)(e);if(null!=f&&f<l.length)d=(p=(l[f].textContent||"").replace(/,/g,"").trim())?Number(p):null;else if(!n&&l.length>5){var p;d=(p=(l[5].textContent||"").replace(/,/g,"").trim())?Number(p):null}var h=!0;if(null!=t.minA&&(null==u||u<t.minA)&&(h=!1),null!=t.maxA&&(null==u||u>t.maxA)&&(h=!1),null!=t.minReseed&&(null==d||d<t.minReseed)&&(h=!1),null!=t.maxReseed&&(null==d||d>t.maxReseed)&&(h=!1),h){var m=i.querySelector("a[href*='download.php?id=']");if(m&&m.href){var g=m.href;o.has(g)||(o.add(g),r.push(g))}}}}}})}),r};t.attachOneClickDownloadHandlers=function(e){var t=this,n=e.clickAllDownloadsButton,s=e.downloadFilteredButton,d=e.qbDownloadFilteredButton,f=e.statusSpan,p=e.isKpMTeam;(0,l.attachClickAllDownloadsHandler)(n,f,p),s.onclick=function(){return r(t,void 0,void 0,function(){var t,n,r;return o(this,function(o){try{if(!(t=(0,a.findTorrentTables)()).length)return f.textContent="未找到种子列表表格,无法下载。",[2];n=u(t,c(e),p),r=[],n.forEach(function(e){if("function"==typeof GM_openInTab)try{var t=GM_openInTab(e,{active:!1,insert:!1});t&&r.push(t)}catch(e){console.error("GM_openInTab 调用失败:",e)}}),r.length>0&&setTimeout(function(){r.forEach(function(e){try{e.close&&e.close()}catch(e){}})},9e3),f.textContent="已尝试下载 ".concat(n.length," 个符合当前条件的种子。")}catch(e){console.error("下载筛选后的种子失败:",e),f.textContent="下载筛选后的种子失败,请查看控制台。"}return[2]})})},d.onclick=function(){return r(t,void 0,void 0,function(){var t,n,r,l,s,d,h,m,g;return o(this,function(o){switch(o.label){case 0:if(o.trys.push([0,7,,8]),"qbittorrent"!==GM_getValue("client","qbittorrent"))return f.textContent="当前下载客户端不是 qBittorrent,请在“下载客户端配置”中选择 qBittorrent。",[2];if(!(t=(0,a.findTorrentTables)()).length)return f.textContent="未找到种子列表表格,无法下载。",[2];if(!(n=u(t,c(e),p)).length)return f.textContent="没有找到符合当前筛选条件的种子下载链接。",[2];f.textContent="准备通过 qBittorrent 下载 ".concat(n.length," 个种子,请稍候…"),r=0,l=0,s=0,d=n,o.label=1;case 1:if(!(s<d.length))return[3,6];h=d[s],o.label=2;case 2:return o.trys.push([2,4,,5]),[4,(0,i.downloadTorrentToQBittorrent)({downloadUrl:h})];case 3:return o.sent(),r++,[3,5];case 4:return m=o.sent(),console.error("推送种子到 qBittorrent 失败:",m),l++,[3,5];case 5:return s++,[3,1];case 6:return f.textContent=0===l?"已通过 qBittorrent 下载 ".concat(r," 个符合当前条件的种子。"):"已尝试通过 qBittorrent 下载 ".concat(r+l," 个种子,其中成功 ").concat(r," 个,失败 ").concat(l," 个,请查看控制台。"),[3,8];case 7:return g=o.sent(),console.error("通过 qBittorrent 下载筛选种子失败:",g),f.textContent="通过 qBittorrent 下载筛选种子失败,请查看控制台。",[3,8];case 8:return[2]}})})}}},423:(e,t)=>{"use strict";t.__esModule=!0,t.attachOpenTorrentListHandler=void 0,t.attachOpenTorrentListHandler=function(e,t,n){e.textContent="打开种子列表页面",e.onclick=function(){try{var e=window.location.origin.replace(/\/$/,""),r=void 0;r=t?"".concat(e,"/browse?pageNumber=1&sort=seeders%3Aascend"):e+"/torrents.php?inclbookmarked=0&incldead=1&spstate=0&&sort=7&type=asc&page=0",window.location.href=r}catch(e){console.error("导航到种子列表失败:",e),n&&(n.textContent="导航失败,请查看控制台。")}}}},70:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};t.__esModule=!0,t.getHostKeyForMagicArgs=void 0;var i=n(592),a=n(351),l=n(202),s=n(601),c=n(222),u=n(433),d=n(924),f=n(423),p=n(380),h=n(397),m=n(690),g=n(903),y=n(449);function v(){var e=window.location.host,t=e.match(/\b[^\.]+\.[^\.]+$/),n=t?t[0]:e;return{hostKey:n,useLegacyArgs:"qingwapt.com"!==n}}function b(){return r(this,void 0,void 0,function(){var e,t,n,r,i;return o(this,function(o){switch(o.label){case 0:try{(0,l.initPtBonusCalculator)()}catch(e){console.error("魔力值计算模块初始化失败:",e);try{window.__ptMagicInitError=e instanceof Error?e.message:String(null!=e?e:"未知错误")}catch(e){}}e="",t=["7866fdafbcc5ad504c7750f2d4626dc03954c50a"],n="8.2.0",o.label=1;case 1:return o.trys.push([1,3,,4]),[4,w(e)];case 2:return r=o.sent(),(0,a.handleSitesIndexResponse)(r),E(r.data.sites,{token:e,hashList:t,version:n}),[3,4];case 3:return i=o.sent(),console.error("IYUU 脚本执行失败:",i),[3,4];case 4:return[2]}})})}if(t.getHostKeyForMagicArgs=v,"undefined"!=typeof window){var x=window;if(x.top!==x)try{(0,l.initPtBonusCalculator)()}catch(e){}else x.__ptHelperPanelInitialized||(x.__ptHelperPanelInitialized=!0,b())}else b();function w(e){return r(this,void 0,void 0,function(){var t,n;return o(this,function(r){switch(r.label){case 0:try{if(t=GM_getValue(s.SITES_CACHE_KEY,null))try{return[2,JSON.parse(t)]}catch(e){}}catch(e){}return[4,(0,i.requestSitesIndex)(e)];case 1:n=r.sent();try{GM_setValue(s.SITES_CACHE_KEY,JSON.stringify(n))}catch(e){}return[2,n]}})})}function E(e,t){var n=this;if("undefined"!=typeof document){!function(e,t){if("undefined"!=typeof window){var n=window;if(!n.__ptHelperPanelWatchTimer){var r=function(o,i){n.__ptHelperPanelWatchTimer=window.setInterval(function(){try{if(!document.getElementById("pt-helper-panel"))return void E(e,t);"fast"===i&&(window.clearInterval(n.__ptHelperPanelWatchTimer),n.__ptHelperPanelWatchTimer=null,r(3e3,"slow"))}catch(e){console.error("检测 / 重建 PT 辅助面板失败:",e)}},o)};r(100,"fast")}}}(e,t);var b=(0,c.isKpMTeamHost)(),x=document.getElementById("pt-helper-panel"),w=document.getElementById("pt-helper-panel-container");x&&x.remove(),w&&w.remove();var T=document.createElement("div");T.id="pt-helper-panel-container",T.style.position="fixed",T.style.top="10px",T.style.right="10px",T.style.display="flex",T.style.alignItems="flex-start",T.style.zIndex="10000";var C=document.createElement("button");C.id="pt-helper-panel-toggle",C.type="button",C.textContent="◀",C.title="收起面板",C.style.background="#e0e0e0",C.style.color="#666",C.style.border="none",C.style.borderRadius="4px 0 0 4px",C.style.width="24px",C.style.height="40px",C.style.cursor="pointer",C.style.fontSize="14px",C.style.transition="background 0.3s",C.style.position="fixed",C.style.right="10px",C.style.top="50%",C.style.transform="translateY(-50%)",C.style.zIndex="10001",C.onmouseenter=function(){C.style.background="#d0d0d0"},C.onmouseleave=function(){C.style.background="#e0e0e0"};var _=document.createElement("div");_.id="pt-helper-panel",_.style.boxSizing="border-box",_.style.position="relative",_.style.zIndex="10000",_.style.width="fit-content",_.style.minWidth="360px",_.style.maxWidth="80vw",_.style.fontSize="12px",_.style.maxHeight="90vh",_.style.overflowY="auto",_.style.padding="10px 12px 16px 12px",_.style.backgroundColor="#ffffff",_.style.boxShadow="0 4px 8px rgba(0,0,0,0.2)",_.style.borderRadius="0 8px 8px 0",_.style.border="1px solid #ddd",_.style.color="var(--mt-text-base, #000000)";var S=document.createElement("div");S.style.display="flex",S.style.flexWrap="wrap",S.style.gap="8px 16px";var A=[];try{A=GM_getValue(s.SELECTED_SITES_KEY,[]),Array.isArray(A)||(A=[])}catch(e){A=[]}S.style.display="none",_.appendChild(S);var M=document.createElement("div");M.style.marginTop="8px",M.style.display="flex",M.style.flexDirection="column",M.style.alignItems="flex-start",M.style.gap="8px";var k=document.createElement("span");k.style.fontSize="11px",k.style.opacity="0.8",k.style.color="#000000";var I=document.createElement("span");I.style.fontSize="11px",I.style.opacity="0.85",I.style.color="#000000",I.style.marginLeft="8px";var N=document.createElement("div");N.style.display="flex",N.style.alignItems="center",N.style.gap="6px";var B=function(){try{var e=v().hostKey,t=GM_getValue(e+".magicArgsMessage",null);if(!t)return void(I.textContent="");var n=-1!==t.indexOf("成功")?"#2e7d32":"#d32f2f";I.textContent=t,I.style.color=n,GM_setValue(e+".magicArgsMessage","")}catch(e){}},R=!1;try{B(),R=Boolean(I.textContent)}catch(e){R=!1}try{(G=window)&&null===G.onurlchange&&!G.__ptHelperMagicUrlWatch&&(G.__ptHelperMagicUrlWatch=!0,window.addEventListener("urlchange",function(){try{B()}catch(e){}}))}catch(e){}try{var q=v().hostKey;if(!R&&"qingwapt.com"===q){var L=GM_getValue(q+".qingwaA",null),D=GM_getValue(q+".qingwaB",null),P=GM_getValue(q+".qingwaC",null),O=GM_getValue(q+".qingwaABC",null);if(null!=L&&null!=D&&null!=P&&Number.isFinite(L)&&Number.isFinite(D)&&Number.isFinite(P)){var F=null!=O&&Number.isFinite(O)?O:L*D*P;k.textContent="青蛙预估每小时蝌蚪:A≈".concat(L.toFixed(3),", B≈").concat(D.toFixed(3),", C≈").concat(P.toFixed(3),", A*B*C≈").concat(F.toFixed(3)),R=!0}}}catch(e){}try{var G,H=(G=window).__ptMagicInitError;H&&!R&&(k.textContent="魔力值参数模块初始化失败,请联系开发者并附上控制台错误信息:"+String(H),R=!0)}catch(e){}try{if(!R)!1!==GM_getValue(s.FIRST_USE_HINT_KEY,null)&&(k.textContent="提示:A 值表示单个种子的估算收益;A/GB 表示每 GB 的收益,用于对比大小不同的种子。",R=!0,GM_setValue(s.FIRST_USE_HINT_KEY,!1))}catch(e){}var j=function(e){e.style.cursor="pointer",e.style.padding="4px 10px",e.style.fontSize="12px",e.style.borderRadius="6px",e.style.border="1px solid #d0d7de",e.style.backgroundColor="#ffffff",e.style.color="#111827",e.style.boxShadow="0 1px 2px rgba(16, 24, 40, 0.06)",e.style.transition="background-color 0.2s ease, box-shadow 0.2s ease",e.dataset.baseBg="#ffffff",e.onmouseenter=function(){"1"!==e.dataset.active&&(e.style.backgroundColor="#f3f4f6",e.style.boxShadow="0 2px 6px rgba(16, 24, 40, 0.1)")},e.onmouseleave=function(){"1"!==e.dataset.active&&(e.style.backgroundColor=e.dataset.baseBg||"#ffffff",e.style.boxShadow="0 1px 2px rgba(16, 24, 40, 0.06)")}},V=document.createElement("button");V.style.display="none";var K=document.createElement("button");K.style.display="none";var W=document.createElement("button");W.title="打开当前站点的种子列表页面",j(W);var Y=document.createElement("button");Y.textContent="获取魔力值参数",Y.title="刷新/获取魔力值参数",j(Y);var U=document.createElement("button");U.textContent="功能配置",U.title="打开脚本功能配置面板",j(U);var $=(0,g.createRowSelectionManager)({statusSpan:k}),X=(0,h.createClickAllDownloadsButton)(j),z=document.createElement("div");z.style.display="flex",z.style.flexDirection="column",z.style.alignItems="stretch",z.style.gap="8px",z.style.width="100%";var J=function(e,t){e.type="number",e.style.width=t,e.style.padding="2px 4px",e.style.borderRadius="4px",e.style.border="1px solid #ccc",e.style.backgroundColor="#ffffff",e.style.color="#000000",e.style.boxSizing="border-box"},Q=document.createElement("input");Q.placeholder="A最小",J(Q,"88px");var Z=document.createElement("input");Z.placeholder="A最大",J(Z,"88px");var ee=document.createElement("input");ee.placeholder="上传数最小",J(ee,"98px");var te=document.createElement("input");te.placeholder="上传数最大",J(te,"98px");var ne=document.createElement("button");ne.textContent="应用筛选",ne.title="按输入范围筛选当前页种子",j(ne);var re=document.createElement("button");re.title="按 A 值降序排序当前页",j(re);var oe=document.createElement("button");oe.title="按 A/GB 降序排序当前页(A/GB=每GB收益)",j(oe);var ie=document.createElement("button");ie.textContent="下载筛选后的所有种子",ie.title="下载筛选后的全部种子",j(ie),ie.style.display="none";var ae=document.createElement("button");ae.textContent="qbittorrent 下载筛选种子",ae.title="用 qBittorrent 批量下载筛选种子",j(ae),ae.style.display="none";var le=document.createElement("button");le.textContent="重置脚本所有设置",le.title="清空脚本主要设置并恢复默认",j(le),(0,p.attachOneClickDownloadHandlers)({clickAllDownloadsButton:X,downloadFilteredButton:ie,qbDownloadFilteredButton:ae,statusSpan:k,aMinInput:Q,aMaxInput:Z,reseedMinInput:ee,reseedMaxInput:te,isKpMTeam:b});var se=function(){try{GM_setValue(s.FILTER_A_MIN_KEY,Q.value||""),GM_setValue(s.FILTER_A_MAX_KEY,Z.value||""),GM_setValue(s.FILTER_SEED_MIN_KEY,ee.value||""),GM_setValue(s.FILTER_SEED_MAX_KEY,te.value||"")}catch(e){}},ce=!0;try{var ue=GM_getValue(s.SORT_A_DESC_KEY,null);null===ue?(ce=!0,GM_setValue(s.SORT_A_DESC_KEY,!0)):ce=Boolean(ue)}catch(e){ce=!0}var de=!1;try{var fe=GM_getValue(s.SORT_AVE_DESC_KEY,null);de=Boolean(fe)}catch(e){de=!1}if(de&&ce){ce=!1;try{GM_setValue(s.SORT_A_DESC_KEY,!1)}catch(e){}}var pe=function(){re.textContent="".concat(ce?"☑":"☐"," 按 A 值降序排序"),ce?(re.style.backgroundColor="#4caf50",re.style.borderColor="#4caf50",re.style.color="#ffffff",re.dataset.active="1",re.dataset.baseBg="#4caf50"):(re.style.backgroundColor="#f5f5f5",re.style.borderColor="#ccc",re.style.color="#000000",re.dataset.active="0",re.dataset.baseBg="#f5f5f5")};pe();var he=function(){oe.textContent="".concat(de?"☑":"☐"," 按 每GB收益 降序排序"),de?(oe.style.backgroundColor="#4caf50",oe.style.borderColor="#4caf50",oe.style.color="#ffffff",oe.dataset.active="1",oe.dataset.baseBg="#4caf50"):(oe.style.backgroundColor="#f5f5f5",oe.style.borderColor="#ccc",oe.style.color="#000000",oe.dataset.active="0",oe.dataset.baseBg="#f5f5f5")};he();setTimeout(function(){de?(0,u.sortByAveForCurrentSiteOnce)():ce&&(0,u.sortByAForCurrentSiteOnce)()},0),re.onclick=function(){if(ce=!ce){de=!1,he();try{GM_setValue(s.SORT_AVE_DESC_KEY,!1)}catch(e){}}try{GM_setValue(s.SORT_A_DESC_KEY,ce)}catch(e){}ce?((0,u.sortByAForCurrentSiteOnce)(),k.textContent="已按 A 值降序排序当前页面种子列表。"):k.textContent="已关闭按 A 值排序(刷新页面恢复原顺序)。",pe()},oe.onclick=function(){if(de=!de){ce=!1,pe();try{GM_setValue(s.SORT_A_DESC_KEY,!1)}catch(e){}try{GM_setValue(s.SORT_AVE_DESC_KEY,!0)}catch(e){}}else try{GM_setValue(s.SORT_AVE_DESC_KEY,!1)}catch(e){}de?((0,u.sortByAveForCurrentSiteOnce)(),k.textContent="已按 A/GB 降序排序当前页面种子列表。"):k.textContent="已取消 A/GB 排序状态标记(刷新页面恢复原顺序)。",he()};try{var me=GM_getValue(s.FILTER_A_MIN_KEY,null),ge=GM_getValue(s.FILTER_A_MAX_KEY,null),ye=GM_getValue(s.FILTER_SEED_MIN_KEY,null),ve=GM_getValue(s.FILTER_SEED_MAX_KEY,null);null!=me&&(Q.value=String(me)),null!=ge&&(Z.value=String(ge)),null!=ye&&(ee.value=String(ye)),null!=ve&&(te.value=String(ve))}catch(e){}try{var be=v();q=be.hostKey;if(be.useLegacyArgs){var xe=GM_getValue(q+".T0",null),we=GM_getValue(q+".N0",null),Ee=GM_getValue(q+".B0",null),Te=GM_getValue(q+".L",null);if(Boolean(xe&&we&&Ee&&Te))Y.style.display="none";else{Y.style.display="",Y.style.backgroundColor="#f44336",Y.style.borderColor="#f44336",Y.style.color="#ffffff",k.style.color="#d32f2f",k.textContent="";var Ce=document.createTextNode("当前魔力值参数缺失,无法进行 A 值计算,请点击"),_e=document.createElement("span");_e.textContent="“获取魔力值参数”",_e.style.color="#2e7d32";var Se=document.createTextNode("或打开"),Ae=document.createElement("span");Ae.textContent="“魔力中心”",Ae.style.color="#2e7d32";var Me=document.createTextNode("。");k.append(Ce,_e,Se,Ae,Me)}}else Y.style.display="none"}catch(e){Y.style.display="none"}Q.addEventListener("change",se),Z.addEventListener("change",se),ee.addEventListener("change",se),te.addEventListener("change",se),le.onclick=function(){window.confirm("确定要重置当前脚本的所有设置吗?(包括魔力参数、筛选条件、下载配置等)")&&function(e){try{var t=v().hostKey,n=function(e){try{"function"==typeof GM_deleteValue?GM_deleteValue(e):GM_setValue(e,null)}catch(e){}};n(s.SITES_CACHE_KEY),n(s.SELECTED_SITES_KEY),n(s.FILTER_A_MIN_KEY),n(s.FILTER_A_MAX_KEY),n(s.FILTER_SEED_MIN_KEY),n(s.FILTER_SEED_MAX_KEY),n(s.SORT_A_DESC_KEY),n(s.SORT_AVE_DESC_KEY),n(s.FIRST_USE_HINT_KEY),n(t+".T0"),n(t+".N0"),n(t+".B0"),n(t+".L"),n(t+".magicArgsMessage"),n(t+".argsUnavailable"),n(t+".audiencesRatioNormal"),n(t+".audiencesRatioOfficial"),n(t+".lemon.B"),n(t+".lemon.F"),n(t+".lemon.M"),n(t+".lemon.k"),n(t+".lemon.alpha"),n("address"),n("username"),n("password"),n("saveLocations"),n("separator"),n("autoStartDownload"),n("autoCloseWindow"),n("client"),n("sequentialDownload"),n("firstLastPiecePrio"),n("autoTMM"),n("pinButton"),n("sessionId"),e.textContent="已清空当前脚本的主要设置键,请刷新页面(如需完全清空存储,可在油猴“存储”界面点击重置编辑器)。",e.style.color="#d32f2f"}catch(t){console.error("重置脚本设置失败:",t),e.textContent="重置失败,请查看控制台。"}}(k)};var ke=function(e,t){var n=document.createElement("div");n.style.display="flex",n.style.alignItems="center",n.style.gap="6px",n.style.padding="4px 6px",n.style.border="1px dashed #d6d6d6",n.style.borderRadius="8px",n.style.background="#ffffff";var r=document.createElement("span");return r.textContent=e,r.style.fontSize="12px",r.style.color="#4b5563",r.style.whiteSpace="nowrap",n.appendChild(r),t.forEach(function(e){return n.appendChild(e)}),n},Ie=ke("A 值",[Q,Z]),Ne=ke("上传数",[ee,te]),Be=document.createElement("div");Be.style.display="flex",Be.style.alignItems="center",Be.style.gap="6px",Be.appendChild(Ie);var Re=document.createElement("div");Re.style.display="flex",Re.style.alignItems="center",Re.style.gap="6px",Re.appendChild(Ne);var qe=document.createElement("div");qe.style.display="flex",qe.style.alignItems="center",qe.style.gap="6px",qe.appendChild(ne),z.appendChild(Be),z.appendChild(Re),z.appendChild(qe),N.appendChild(k),(0,d.createStickyTopToggleLabel)();var Le=function(){var e=[];return S.querySelectorAll("input[type='checkbox']").forEach(function(t){var n=t;if(n.checked){var r=Number(n.value);Number.isNaN(r)||e.push(r)}}),e};V.onclick=function(){var e=Le();if(e.length)try{GM_setValue(s.SELECTED_SITES_KEY,e),k.textContent="已保存选择。"}catch(e){k.textContent="保存选择失败,请检查 GM_setValue 权限。"}else k.textContent="请至少选择一个站点。"},(0,f.attachOpenTorrentListHandler)(W,b,k);Y.onclick=function(){var e=(0,c.isKpMTeamHost)(),t=window.location.pathname||"",n=t.includes("mybonus.php")||t.endsWith("/mybonus");try{e&&!n?(k.style.color="#f9a825",k.textContent="请等待魔力中心刷新出来,如果有问题,请刷新页面。"):k.textContent="正在刷新魔力值参数...",(0,l.manualRefreshMagicArgs)(),B()}catch(e){console.error("刷新魔力值参数失败:",e),k.textContent="刷新魔力值参数失败,请手动打开 mybonus 页面。"}},U.onclick=function(){try{(0,y.openDownloadClientConfigPanel)()}catch(e){console.error("打开下载配置面板失败:",e),k.textContent="打开下载配置面板失败,请查看控制台。"}},ne.onclick=function(){se();var e=function(e){if(!e.trim())return null;var t=Number(e);return Number.isNaN(t)?null:t},t=e(Q.value),n=e(Z.value),r=e(ee.value),o=e(te.value);try{var i=(0,c.findTorrentTables)();if(!i.length)return void(k.textContent="未找到种子列表表格,无法筛选。");var a=0;i.forEach(function(e){var i=e.tBodies;if(i&&i.length){var l=i[i.length-1],s=Array.from(l.querySelectorAll("tr"));if(s.length)for(var u=0,d=function(){var i=s[u];if(i.querySelector("td.colhead"))return u+=1,"continue";var l=Array.from(i.children);if(!l.length)return u+=1,"continue";var d=i.querySelector("td[data-iyuu-a-col='1']")||(0,c.findACell)(l);if(!d)return u+=1,"continue";var f=(d.textContent||"").trim().match(/([\d.]+)\s*@/),p=f?Number(f[1]):null,h=null,m=(0,c.getSeederIndex)(e);if(null!=m&&m<l.length)h=(g=(l[m].textContent||"").replace(/,/g,"").trim())?Number(g):null;else if(!b&&l.length>5){var g;h=(g=(l[5].textContent||"").replace(/,/g,"").trim())?Number(g):null}var y=!0;null!=t&&(null==p||p<t)&&(y=!1),null!=n&&(null==p||p>n)&&(y=!1),null!=r&&(null==h||h<r)&&(y=!1),null!=o&&(null==h||h>o)&&(y=!1);for(var v=[i],x=u+1;x<s.length;){var w=s[x],E=Array.from(w.children),T=Boolean(w.querySelector("td.colhead")),C=w.querySelector("td[data-iyuu-a-col='1']")||(0,c.findACell)(E);if(T||C)break;v.push(w),x+=1}v.forEach(function(e){e.style.display=y?"":"none",a++}),u=x};u<s.length;)d()}}),k.textContent="已应用筛选规则,影响行数约 ".concat(a,"。")}catch(e){console.error("应用筛选失败:",e),k.textContent="应用筛选失败,请查看控制台。"}},K.onclick=function(){return r(n,void 0,void 0,function(){var e,n,r,l,c,u;return o(this,function(o){switch(o.label){case 0:if(!(e=Le()).length)return k.textContent="请至少选择一个站点。",[2];K.disabled=!0,k.textContent="正在上报并查询辅种...",o.label=1;case 1:return o.trys.push([1,4,5,6]),[4,(0,i.requestReportExisting)({token:t.token,sidList:e})];case 2:n=o.sent(),(0,a.handleReportExistingResponse)(n);try{GM_setValue(s.SELECTED_SITES_KEY,e)}catch(e){}return(r=n.data&&n.data.sid_sha1||"")?(l=Math.floor(Date.now()/1e3).toString(),[4,(0,i.requestReseedIndex)({token:t.token,hashList:t.hashList,sidSha1:r,timestamp:l,version:t.version})]):(k.textContent="上报成功但未返回 sid_sha1,无法查询辅种。",[2]);case 3:return c=o.sent(),(0,a.handleReseedIndexResponse)(c),k.textContent="上报与辅种查询完成,请查看控制台结果。",[3,6];case 4:return u=o.sent(),console.error("上报 / 查询辅种失败:",u),k.textContent="上报或查询辅种失败,请查看控制台。",[3,6];case 5:return K.disabled=!1,[7];case 6:return[2]}})})};var De=function(e){var t=document.createElement("div");t.style.padding="8px 10px",t.style.border="1px solid #e2e2e2",t.style.borderRadius="10px",t.style.background="#fafafa",t.style.display="flex",t.style.flexDirection="column",t.style.gap="6px",t.style.width="100%",t.style.boxSizing="border-box";var n=document.createElement("div");return n.textContent=e,n.style.fontSize="12px",n.style.fontWeight="600",n.style.color="#444",n.style.letterSpacing="0.5px",t.appendChild(n),{section:t,heading:n}},Pe=De("快捷操作"),Oe=document.createElement("div");Oe.style.display="flex",Oe.style.flexWrap="wrap",Oe.style.gap="8px",Oe.appendChild(V),Oe.appendChild(K),Oe.appendChild(W),Oe.appendChild(U),Oe.appendChild(le),Oe.appendChild(Y),Pe.section.appendChild(Oe);var Fe=De("收藏与下载"),Ge=document.createElement("div");Ge.style.display="flex",Ge.style.flexWrap="wrap",Ge.style.gap="8px";var He=(0,m.createCombinedActionControls)({stylePanelButton:j,statusSpan:k,isKpMTeam:b,selectionManager:$}),je=document.createElement("div");je.style.display="flex",je.style.alignItems="center",je.style.gap="8px",je.appendChild(He.actionRow),Fe.section.appendChild(je),He.mainButtons.forEach(function(e){return Ge.appendChild(e)}),Fe.section.appendChild(Ge);var Ve=document.createElement("div");Ve.style.display="flex",Ve.style.flexWrap="wrap",Ve.style.gap="8px",He.statusButtons.forEach(function(e){return Ve.appendChild(e)}),Ve.appendChild(He.clearStatusButton),Fe.section.appendChild(Ve);var Ke=De("筛选与排序"),We=document.createElement("div");We.style.display="flex",We.style.flexDirection="column",We.style.alignItems="stretch",We.style.gap="8px",We.appendChild(z);var Ye=document.createElement("div");Ye.style.display="flex",Ye.style.alignItems="center",Ye.style.gap="6px",Ye.appendChild(ie),Ye.appendChild(ae),Ye.appendChild(re),Ye.appendChild(oe);var Ue=document.createElement("span");Ue.textContent="?",Ue.style.display="inline-flex",Ue.style.alignItems="center",Ue.style.justifyContent="center",Ue.style.width="18px",Ue.style.height="18px",Ue.style.borderRadius="50%",Ue.style.border="1px solid #9ca3af",Ue.style.color="#6b7280",Ue.style.fontSize="12px",Ue.style.cursor="pointer";var $e=[{label:"A 值:",text:"单个“种子”的估算收益,指该种子在给定时间窗口内带来的收益总额。",color:"#ef4444"},{label:"A/GB:",text:"每 GB 收益,即 A 值除以该种子的体积(GB),用来衡量单位体积的收益效率,便于比较不同体积种子的“性价比”。",color:"#f59e0b"},{label:"排序:",text:"优先展示收益更高或更高密度的种子。",color:"#3b82f6"},{label:"颜色说明:",text:"红色=高收益,棕色=中等,蓝色=较低。",color:"#8b5cf6"}];Ue.onclick=function(){if("1"===k.dataset.sortHelp)return k.textContent="",void(k.dataset.sortHelp="0");k.innerHTML=$e.map(function(e){return'<div><span style="color:'.concat(e.color,';font-weight:600;">').concat(e.label,"</span> ").concat(e.text,"</div>")}).join(""),k.dataset.sortHelp="1"},Ye.appendChild(Ue),We.appendChild(Ye),Ke.section.appendChild(We);var Xe=De("状态与提示");Xe.heading.style.display="none",Xe.section.style.borderStyle="dashed",Xe.section.style.background="#fff7ed",Xe.section.style.borderColor="#f3c48b";var ze=document.createElement("div");ze.style.display="flex",ze.style.flexDirection="column",ze.style.alignItems="flex-start",ze.style.gap="4px",ze.appendChild(I),ze.appendChild(N),Xe.section.appendChild(ze),M.appendChild(Pe.section),M.appendChild(Fe.section),M.appendChild(Ke.section),M.appendChild(Xe.section),_.appendChild(M),T.appendChild(C),T.appendChild(_),document.body.appendChild(T);var Je=function(e){_.style.display=e?"block":"none",C.textContent=e?"◀":"▶",C.title=e?"收起面板":"展开面板",C.style.borderRadius=e?"4px 0 0 4px":"4px",function(e){try{GM_setValue("ptHelperPanelExpanded",e)}catch(e){}}(e)};C.onclick=function(){var e="none"!==_.style.display;Je(!e)},function(){try{return GM_getValue("ptHelperPanelExpanded",!0)}catch(e){return!0}}()||Je(!1)}}},791:(e,t)=>{"use strict";t.__esModule=!0},903:(e,t)=>{"use strict";t.__esModule=!0,t.createRowSelectionManager=void 0;var n="pt-helper-row-select-cell-left",r="pt-helper-row-select-cell-right",o="pt-helper-row-select-head-left",i="pt-helper-row-select-head-right",a=function(e){return e.querySelector(".progressfinished")?"finished":e.querySelector(".progressseeding")?"seeding":e.querySelector(".progressdownloading")?"downloading":"not-downloaded"},l=function(e,t){var n=document.createElement("td");return n.className=t,n.style.textAlign="center",n.style.verticalAlign="middle",n.style.width="24px",e.querySelector(".rowfollow")&&n.classList.add("rowfollow"),n},s=function(){var e=document.createElement("input");return e.type="checkbox",e.className="pt-helper-row-select-input",e.title="选择该条目",e.style.margin="0",e.style.transform="scale(1.05)",e.style.verticalAlign="middle",e};t.createRowSelectionManager=function(e){var t=e.statusSpan,c=[],u=!1,d=function(){if(u){var e=0;c.forEach(function(t){t.checkboxes.some(function(e){return e.checked})&&(e+=1)}),e&&(t.textContent="已选择 ".concat(e," 个目标。"))}},f=function(){document.querySelectorAll(".".concat(n,", .").concat(r)).forEach(function(e){return e.remove()}),document.querySelectorAll(".".concat(o,", .").concat(i)).forEach(function(e){return e.remove()}),c.length=0},p=function(e){f(),e.forEach(function(e){if(function(e){if(e){var t=e.querySelector("tr");if(t){var n=t.querySelector(".".concat(o)),r=t.querySelector(".".concat(i));if(!n||!r){var a=function(e){var n=document.createElement("td");return n.className=e,n.textContent="",n.style.textAlign="center",n.style.whiteSpace="nowrap",n.style.width="24px",t.querySelector(".colhead")&&n.classList.add("colhead"),n};if(!n){var l=a(o);t.insertBefore(l,t.firstElementChild)}if(!r){var s=a(i);t.appendChild(s)}}}}}(e.closest("table")),!e.querySelector(".".concat(n))&&!e.querySelector(".".concat(r))){var t=l(e,n),u=l(e,r),f=s(),p=s(),h=function(e,t){t.checked=e.checked,d()};f.addEventListener("change",function(){return h(f,p)}),p.addEventListener("change",function(){return h(p,f)}),t.appendChild(f),u.appendChild(p),e.insertBefore(t,e.firstElementChild),e.appendChild(u),c.push({row:e,checkboxes:[f,p],status:a(e)})}})};return{isActive:function(){return u},activate:function(e){return e.length?(p(e),u=!0,t.textContent="已进入手动选择模式,找到 ".concat(e.length," 个条目。"),!0):(t.textContent="未找到可选择的条目。",!1)},exit:function(){u=!1,f(),t.textContent="已退出手动选择模式。"},getSelectedRows:function(){var e=[];return c.forEach(function(t){t.checkboxes.some(function(e){return e.checked})&&e.push(t.row)}),e},clearSelection:function(){c.forEach(function(e){e.checkboxes.forEach(function(e){e.checked=!1})})},setStatusSelection:function(e,t){u&&(c.forEach(function(n){n.status===e&&n.checkboxes.forEach(function(e){e.checked=t})}),d())}}}},924:(e,t,n)=>{"use strict";t.__esModule=!0,t.createStickyTopToggleLabel=void 0;var r=n(601),o="data-iyuu-sticky-hidden",i="iyuu-sticky-toggle-style",a=null;function l(e){"undefined"!=typeof document&&(!function(){if("undefined"!=typeof document&&!document.getElementById(i)){var e=document.createElement("style");e.id=i,e.textContent="[".concat(o,'="1"]{display:none !important;}'),document.head.appendChild(e)}}(),document.querySelectorAll(".sticky_top, tr.bg-sticky_top, tr[class*='sticky_top'],tr.bg-sticky_normal, tr[class*='bg-sticky_normal'],tr[style*='75CAF4'], tr[style*='75caf4'], tr[style*='B2E1FA'], tr[style*='b2e1fa'], tr[style*='DEA251'], tr[style*='dea251'], tr[style*='F6E8E8'], tr[style*='f6e8e8'], tr[style*='AADBF3'], tr[style*='aadbf3'], tr[style*='rgb(170, 219, 243)'], tr[style*='RGB(170, 219, 243)']").forEach(function(t){e?t.removeAttribute(o):t.setAttribute(o,"1")}))}function s(e){"undefined"!=typeof MutationObserver&&"undefined"!=typeof document&&(a&&(a.disconnect(),a=null),e||(a=new MutationObserver(function(){l(!1)})).observe(document.documentElement||document.body,{childList:!0,subtree:!0}))}t.createStickyTopToggleLabel=function(){var e=document.createElement("label");e.style.display="flex",e.style.alignItems="center",e.style.gap="4px";var t=document.createElement("input");t.type="checkbox";var n=!1;try{n=GM_getValue(r.STICKY_VISIBLE_KEY,!1)}catch(e){n=!1}t.checked=n;var o=document.createTextNode("显示 sticky_top 顶部条");return l(n),s(n),t.onchange=function(){var e=t.checked;l(e),s(e);try{GM_setValue(r.STICKY_VISIBLE_KEY,e)}catch(e){}},e.appendChild(t),e.appendChild(o),e}},601:(e,t)=>{"use strict";t.__esModule=!0,t.SITE_ID_WHITELIST=t.FIRST_USE_HINT_KEY=t.SORT_AVE_DESC_KEY=t.SORT_A_DESC_KEY=t.FILTER_SEED_MAX_KEY=t.FILTER_SEED_MIN_KEY=t.FILTER_A_MAX_KEY=t.FILTER_A_MIN_KEY=t.STICKY_VISIBLE_KEY=t.SELECTED_SITES_KEY=t.SITES_CACHE_KEY=void 0,t.SITES_CACHE_KEY="iyuu_sites_cache",t.SELECTED_SITES_KEY="iyuu_selected_sids",t.STICKY_VISIBLE_KEY="iyuu_sticky_top_visible",t.FILTER_A_MIN_KEY="iyuu_filter_a_min",t.FILTER_A_MAX_KEY="iyuu_filter_a_max",t.FILTER_SEED_MIN_KEY="iyuu_filter_seed_min",t.FILTER_SEED_MAX_KEY="iyuu_filter_seed_max",t.SORT_A_DESC_KEY="iyuu_sort_a_desc",t.SORT_AVE_DESC_KEY="iyuu_sort_ave_desc",t.FIRST_USE_HINT_KEY="pt_helper_first_use_hint",t.SITE_ID_WHITELIST=[1,2,3,4]},449:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};t.__esModule=!0,t.openDownloadClientConfigPanel=t.readDownloadClientConfig=void 0;var i=n(202),a=n(70),l=n(433),s=n(924),c=n(601);function u(){var e=GM_getValue("saveLocations",null);return Array.isArray(e)&&0!==e.length||(e=[{label:"默认",value:""}]),{address:GM_getValue("address",""),username:GM_getValue("username",""),password:GM_getValue("password",""),saveLocations:e,separator:GM_getValue("separator",null),autoStartDownload:GM_getValue("autoStartDownload",!0),autoCloseWindow:GM_getValue("autoCloseWindow",!1),client:GM_getValue("client","qbittorrent"),sequentialDownload:GM_getValue("sequentialDownload",!1),firstLastPiecePrio:GM_getValue("firstLastPiecePrio",!1),autoTMM:GM_getValue("autoTMM",!1),pinButton:GM_getValue("pinButton",!1)}}function d(e){var t=":"===e[1]?"\\":"/";GM_setValue("separator",t);var n=GM_getValue("saveLocations",null);return!Array.isArray(n)||0===n.length||1===n.length&&"默认"===n[0].label&&!n[0].value?(n=[{label:"默认",value:e}],GM_setValue("saveLocations",n),"保存配置成功,并设置了默认下载位置!"):"保存配置成功!"}function f(e){return new Promise(function(t,n){GM_xmlhttpRequest({method:"POST",url:"".concat(e.address,"/api/v2/auth/login"),data:new URLSearchParams({username:e.username,password:e.password}).toString(),headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},onload:function(r){404!==r.status?"Ok."===r.responseText?GM_xmlhttpRequest({method:"GET",url:"".concat(e.address,"/api/v2/app/defaultSavePath"),onload:function(e){if(200===e.status){var r=d(e.responseText.trim());t(r)}else n("获取默认保存路径失败!")},onerror:function(e){console.error("获取默认保存路径失败!",e),n("获取默认保存路径失败!")}}):n("请检查 qBittorrent 配置是否正确!"):n("请检查 qBittorrent 访问地址是否正确")},onerror:function(e){console.error("qBittorrent 登录失败:",e),n("qBittorrent 无响应!")}})})}function p(e){return new Promise(function(t,n){var r=GM_getValue("sessionId",""),o=function(){GM_xmlhttpRequest({method:"POST",url:"".concat(e.address,"/transmission/rpc"),data:JSON.stringify({method:"session-get"}),headers:{"Content-Type":"application/json","X-Transmission-Session-Id":r},user:e.username,password:e.password,onload:function(e){if(404!==e.status){if(409===e.status){var i=e.responseHeaders.match(/X-Transmission-Session-Id:\s*(\S+)/i);if(i)return r=i[1],GM_setValue("sessionId",r),void o()}if(200===e.status)try{var a=JSON.parse(e.responseText);if("success"!==a.result)return void n("请求失败:".concat(a.result));var l=d(String(a.arguments&&a.arguments["download-dir"]));t(l)}catch(e){console.error("解析 Transmission 返回失败:",e),n("解析 Transmission 返回失败!")}else n("请检查 Transmission 配置是否正确!")}else n("请检查 Transmission 访问地址是否正确")},onerror:function(e){console.error("Transmission 无响应:",e),n("Transmission 无响应!")}})};o()})}function h(e){return r(this,void 0,void 0,function(){return o(this,function(t){return e.address&&e.username&&e.password?"qbittorrent"===e.client?[2,f(e)]:[2,p(e)]:[2,"保存配置成功,但未设置默认下载位置(地址 / 用户名 / 密码为空)。"]})})}t.readDownloadClientConfig=u;var m=!1;t.openDownloadClientConfigPanel=function(){if("undefined"!=typeof document){m||(!function(){var e=this;GM_addStyle('\n        #download-client-config-backdrop {\n            position: fixed;\n            inset: 0;\n            background: rgba(0, 0, 0, 0.25);\n            z-index: 3;\n        }\n        #download-client-config-panel {\n            position: fixed;\n            top: 50%;\n            left: 50%;\n            transform: translate(-50%, -50%);\n            width: 640px;\n            min-width: 640px;\n            max-width: 90vw;\n            height: 520px;\n            min-height: 520px;\n            max-height: 90vh;\n            background-color: #ffffff;\n            border-radius: 12px;\n            padding: 18px 16px 20px 16px;\n            z-index: 3;\n            box-sizing: border-box;\n            overflow-y: auto;\n            overflow-x: hidden;\n            border: 1px solid #e2e2e2;\n            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);\n            font-family: Arial, sans-serif;\n            color: #111827;\n        }\n        #download-client-config-panel table,\n        #download-client-config-panel thead,\n        #download-client-config-panel tbody,\n        #download-client-config-panel tr,\n        #download-client-config-panel th,\n        #download-client-config-panel td {\n            background: transparent !important;\n            box-shadow: none !important;\n            border-color: transparent !important;\n        }\n        #download-client-config-panel::-webkit-scrollbar {\n            width: 0;\n            height: 0;\n        }\n        #download-client-config-panel table {\n            width: 100%;\n            border-collapse: separate;\n            border-spacing: 0;\n        }\n        #download-client-config-panel th,\n        #download-client-config-panel td {\n            border: none;\n            padding: 6px 8px;\n            font-size: 13px;\n        }\n        #download-client-config-panel thead th {\n            text-align: center;\n            padding-bottom: 10px;\n            font-size: 15px;\n            font-weight: 600;\n        }\n        #download-client-config-panel th {\n            width: 5em;\n            text-align: right;\n            white-space: nowrap;\n            color: #374151;\n        }\n        #download-client-config-panel input[type="text"],\n        #download-client-config-panel input[type="password"] {\n            width: 100%;\n            box-sizing: border-box;\n            background-color: #ffffff;\n            border: 1px solid #d0d7de;\n            border-radius: 8px;\n            padding: 6px 8px;\n            font-size: 13px;\n            color: #111827;\n        }\n        #download-client-config-panel input[type="checkbox"] {\n            width: 1.1em;\n            height: 1.1em;\n            cursor: pointer;\n        }\n        #download-client-config-panel .save-location-table td:first-child {\n            width: 6em;\n        }\n        #download-client-config-panel .save-location-table td:last-child {\n            width: 5em;\n            text-align: center;\n        }\n        #download-client-config-panel button {\n            padding: 4px 10px;\n            font-size: 12px;\n            margin: 0;\n            cursor: pointer;\n            border-radius: 8px;\n            border: 1px solid #d0d7de;\n            background-color: #ffffff;\n            color: #111827;\n            box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);\n            transition: background-color 0.2s ease, box-shadow 0.2s ease;\n        }\n        #download-client-config-panel button:hover {\n            background-color: #f3f4f6;\n            box-shadow: 0 2px 6px rgba(16, 24, 40, 0.1);\n        }\n        #download-client-config-panel .footer-actions {\n            display: flex;\n            justify-content: flex-end;\n            gap: 8px;\n            margin-top: 10px;\n        }\n        #download-client-config-panel .config-tabs {\n            display: flex;\n            justify-content: center;\n            gap: 8px;\n            margin-bottom: 4px;\n        }\n        #download-client-config-panel .config-tab {\n            padding: 3px 10px;\n            font-size: 12px;\n            border-radius: 10px;\n            border: 1px solid #e2e2e2;\n            background: #ffffff;\n            cursor: pointer;\n        }\n        #download-client-config-panel .config-tab.active {\n            border-color: #c9d3e0;\n            background-color: #f7f9fb;\n        }\n    ');var t=u(),n=document.createElement("div");n.id="download-client-config-backdrop";var d=document.createElement("div");d.id="download-client-config-panel";var f=document.createElement("table"),p=document.createElement("thead"),m=document.createElement("tbody"),g=function(e,t){void 0===t&&(t="client"),e.setAttribute("data-section",t)},y=document.createElement("tr"),v=document.createElement("th");v.textContent="客户端:";var b=document.createElement("td"),x=document.createElement("div");x.style.display="flex",x.style.gap="8px";var w=document.createElement("label"),E=document.createElement("input");E.type="radio",E.name="download-client",E.value="qbittorrent",E.checked="qbittorrent"===t.client,w.appendChild(E),w.appendChild(document.createTextNode(" qBittorrent"));var T=document.createElement("label"),C=document.createElement("input");C.type="radio",C.name="download-client",C.value="transmission",C.checked="transmission"===t.client,T.appendChild(C),T.appendChild(document.createTextNode(" Transmission")),x.appendChild(w),x.appendChild(T),b.appendChild(x),y.appendChild(v),y.appendChild(b),g(y,"client"),m.appendChild(y);var _=function(e,t,n){var r=document.createElement("tr"),o=document.createElement("th");o.textContent=e;var i=document.createElement("td"),a=document.createElement("input");return a.type=n,a.value=t,i.appendChild(a),r.appendChild(o),r.appendChild(i),{row:r,input:a}},S=_("地址:",t.address,"text"),A=_("用户名:",t.username,"text"),M=_("密码:",t.password,"password");g(S.row,"client"),g(A.row,"client"),g(M.row,"client"),m.appendChild(S.row),m.appendChild(A.row),m.appendChild(M.row);var k=document.createElement("tr"),I=document.createElement("th");I.textContent="下载位置:";var N=document.createElement("td"),B=document.createElement("table");B.className="save-location-table";var R=document.createElement("tbody");B.appendChild(R);var q=function(){for(;R.firstChild;)R.removeChild(R.firstChild);t.saveLocations.forEach(function(e,n){var r=document.createElement("tr"),o=document.createElement("td"),i=document.createElement("input");i.type="text",i.value=e.label,i.placeholder="标签",i.oninput=function(){t.saveLocations[n].label=i.value},o.appendChild(i);var a=document.createElement("td"),l=document.createElement("input");l.type="text",l.value=e.value,l.placeholder="下载路径",l.oninput=function(){t.saveLocations[n].value=l.value},a.appendChild(l);var s=document.createElement("td"),c=document.createElement("button");c.type="button",c.textContent="删除",c.onclick=function(){t.saveLocations.splice(n,1),0===t.saveLocations.length&&t.saveLocations.push({label:"默认",value:""}),q()},s.appendChild(c),r.appendChild(o),r.appendChild(a),r.appendChild(s),R.appendChild(r)});var e=document.createElement("tr"),n=document.createElement("td");n.colSpan=2;var r=document.createElement("td"),o=document.createElement("button");o.type="button",o.textContent="添加",o.onclick=function(){t.saveLocations.push({label:"默认",value:""}),q()},r.appendChild(o),e.appendChild(n),e.appendChild(r),R.appendChild(e)};q(),N.appendChild(B),k.appendChild(I),k.appendChild(N),g(k,"client"),m.appendChild(k);var L=function(e,t,n){var r=document.createElement("tr"),o=document.createElement("th");o.textContent=e;var i=document.createElement("td"),a=document.createElement("label"),l=document.createElement("input");return l.type="checkbox",l.checked=t,l.onchange=function(){return n(l.checked)},a.appendChild(l),i.appendChild(a),r.appendChild(o),r.appendChild(i),{row:r,input:l}},D=L("自动开始:",t.autoStartDownload,function(e){t.autoStartDownload=e});g(D.row,"client"),m.appendChild(D.row);var P=L("顺序下载:",t.sequentialDownload,function(e){t.sequentialDownload=e}),O=L("首尾下载:",t.firstLastPiecePrio,function(e){t.firstLastPiecePrio=e}),F=L("自动管理:",t.autoTMM,function(e){t.autoTMM=e}),G=L("右浮按钮:",t.pinButton,function(e){t.pinButton=e}),H=L("智能关窗:",t.autoCloseWindow,function(e){t.autoCloseWindow=e}),j=function(){return"qbittorrent"===t.client},V=function(){P.row.style.display=j()?"":"none",O.row.style.display=j()?"":"none",F.row.style.display=j()?"":"none",G.row.style.display=j()?"":"none"};V(),g(P.row,"client"),g(O.row,"client"),g(F.row,"client"),g(G.row,"client"),g(H.row,"client"),m.appendChild(P.row),m.appendChild(O.row),m.appendChild(F.row),m.appendChild(G.row),m.appendChild(H.row);var K=document.createElement("tr"),W=document.createElement("th");W.textContent="页面布局:";var Y=document.createElement("td"),U=document.createElement("div");U.style.display="flex",U.style.flexWrap="wrap",U.style.gap="8px",U.style.alignItems="center",U.style.marginBottom="8px";var $=document.createElement("span");$.style.fontSize="12px",$.style.opacity="0.8",$.style.marginLeft="4px";var X=document.createElement("button");X.type="button",X.textContent="刷新魔力值参数",X.onclick=function(){try{$.textContent="正在刷新魔力值参数...",(0,i.manualRefreshMagicArgs)();try{var e=(0,a.getHostKeyForMagicArgs)().hostKey,t=GM_getValue(e+".magicArgsMessage",null);t&&($.textContent=t,$.style.color=-1!==t.indexOf("成功")?"#2e7d32":"#d32f2f")}catch(e){}}catch(e){console.error("刷新魔力值参数失败:",e),$.textContent="刷新魔力值参数失败,请手动打开 mybonus 页面。"}};var z=document.createElement("label");z.style.display="flex",z.style.alignItems="center",z.style.gap="4px";var J=document.createElement("input");J.type="checkbox";try{var Q=GM_getValue(c.SORT_A_DESC_KEY,!0);J.checked=Q}catch(e){J.checked=!0}z.appendChild(J),z.appendChild(document.createTextNode("按 A 值降序排序")),(0,l.attachASortBehavior)(J,$);var Z=(0,s.createStickyTopToggleLabel)(),ee=document.createElement("button");ee.type="button",ee.textContent="重置脚本所有设置",ee.onclick=function(){if(window.confirm("确定要重置当前脚本的所有设置吗?(包括魔力参数、筛选条件、下载配置等)"))try{var e=function(e){try{"function"==typeof GM_deleteValue?GM_deleteValue(e):GM_setValue(e,null)}catch(e){}},t=(0,a.getHostKeyForMagicArgs)().hostKey;e(c.SITES_CACHE_KEY),e(c.SELECTED_SITES_KEY),e(c.FILTER_A_MIN_KEY),e(c.FILTER_A_MAX_KEY),e(c.FILTER_SEED_MIN_KEY),e(c.FILTER_SEED_MAX_KEY),e(c.SORT_A_DESC_KEY),e(t+".T0"),e(t+".N0"),e(t+".B0"),e(t+".L"),e(t+".magicArgsMessage"),e(t+".audiencesRatioNormal"),e(t+".audiencesRatioOfficial"),e(t+".qingwaA"),e(t+".qingwaB"),e(t+".qingwaC"),e(t+".qingwaABC"),e("address"),e("username"),e("password"),e("saveLocations"),e("separator"),e("autoStartDownload"),e("autoCloseWindow"),e("client"),e("sequentialDownload"),e("firstLastPiecePrio"),e("autoTMM"),e("pinButton"),e("sessionId"),$.textContent="已清空当前脚本的主要设置键,请关闭本面板并刷新页面。"}catch(e){console.error("重置脚本设置失败:",e),$.textContent="重置失败,请查看控制台。"}},U.appendChild(X),U.appendChild(z),U.appendChild(Z),U.appendChild(ee);var te=document.createElement("div");te.style.padding="8px 10px",te.style.border="1px solid #e2e2e2",te.style.borderRadius="10px",te.style.background="#fafafa",te.style.display="flex",te.style.flexDirection="column",te.style.gap="6px";var ne=document.createElement("div");ne.textContent="页面布局",ne.style.fontSize="12px",ne.style.fontWeight="600",ne.style.color="#444",ne.style.letterSpacing="0.5px",te.appendChild(ne),te.appendChild(U),te.appendChild($),W.style.display="none",Y.colSpan=2,Y.appendChild(te),K.appendChild(W),K.appendChild(Y),g(K,"page"),m.appendChild(K);var re=document.createElement("tr"),oe=document.createElement("th"),ie=document.createElement("td"),ae=document.createElement("div");ae.className="footer-actions";var le=document.createElement("button");le.type="button",le.textContent="保存";var se=document.createElement("button");se.type="button",se.textContent="关闭",ae.appendChild(le),ae.appendChild(se),ie.appendChild(ae),re.appendChild(oe),re.appendChild(ie),g(re,"all"),m.appendChild(re),f.appendChild(p),f.appendChild(m),d.appendChild(f),document.body.appendChild(n),document.body.appendChild(d);var ce=document.createElement("tr"),ue=document.createElement("th");ue.colSpan=2;var de=document.createElement("div");de.className="config-tabs";var fe=document.createElement("button");fe.type="button",fe.className="config-tab active",fe.textContent="页面布局";var pe=document.createElement("button");pe.type="button",pe.className="config-tab",pe.textContent="下载客户端",pe.style.display="none",de.appendChild(fe),de.appendChild(pe),ue.appendChild(de),ce.appendChild(ue),p.appendChild(ce);var he=function(e){Array.from(m.rows).forEach(function(t){var n=t.getAttribute("data-section")||"all";t.style.display="all"===n||n===e?"":"none"}),pe.classList.toggle("active","client"===e),fe.classList.toggle("active","page"===e)};fe.onclick=function(){return he("page")},pe.onclick=function(){return he("client")},he("page");var me=function(){d.style.display="none",n.style.display="none"};n.onclick=me,se.onclick=me,E.onchange=function(){E.checked&&(t.client="qbittorrent",V())},C.onchange=function(){C.checked&&(t.client="transmission",V())},le.onclick=function(){return r(e,void 0,void 0,function(){var e,n;return o(this,function(r){switch(r.label){case 0:t.address=S.input.value.trim().replace(/\/+$/,""),t.username=A.input.value.trim(),t.password=M.input.value,function(e){GM_setValue("address",e.address),GM_setValue("username",e.username),GM_setValue("password",e.password),GM_setValue("saveLocations",e.saveLocations),GM_setValue("separator",e.separator),GM_setValue("autoStartDownload",e.autoStartDownload),GM_setValue("autoCloseWindow",e.autoCloseWindow),GM_setValue("client",e.client),GM_setValue("sequentialDownload",e.sequentialDownload),GM_setValue("firstLastPiecePrio",e.firstLastPiecePrio),GM_setValue("autoTMM",e.autoTMM),GM_setValue("pinButton",e.pinButton)}(t),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,h(t)];case 2:return e=r.sent(),alert(e),[3,4];case 3:return n=r.sent(),alert("string"==typeof n?n:"保存配置失败,请检查控制台。"),[3,4];case 4:return[2]}})})}}(),m=!0);var e=document.getElementById("download-client-config-panel"),t=document.getElementById("download-client-config-backdrop");e&&(e.style.display="block"),t&&(t.style.display="block")}}},221:(e,t)=>{"use strict";t.__esModule=!0,t.decodeMsg=void 0,t.decodeMsg=function(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}},388:(e,t,n)=>{"use strict";t.__esModule=!0,t.handleReportExistingResponse=void 0;var r=n(221);t.handleReportExistingResponse=function(e){if(0===e.code)console.log("reportExisting 成功:",e);else{var t=(0,r.decodeMsg)(e.msg);console.log("接口错误(reportExisting):","code=".concat(e.code),t,e)}}},314:(e,t,n)=>{"use strict";t.__esModule=!0,t.handleReseedIndexResponse=void 0;var r=n(221);t.handleReseedIndexResponse=function(e){if(0===e.code){var t=e.data||{},n=Object.keys(t);n.length?n.forEach(function(e){var n;((null===(n=t[e])||void 0===n?void 0:n.torrent)||[]).forEach(function(t){console.log("[辅种结果]","源hash:",e,"sid:",t.sid,"torrent_id:",t.torrent_id,"info_hash:",t.info_hash)})}):console.log("没有返回可辅种数据:",e)}else{var o=(0,r.decodeMsg)(e.msg);console.log("接口错误(辅种):","code=".concat(e.code),o,e)}}},531:(e,t,n)=>{"use strict";t.__esModule=!0,t.handleSitesIndexResponse=void 0;var r=n(221);t.handleSitesIndexResponse=function(e){if(0===e.code&&e.data&&Array.isArray(e.data.sites))e.data.sites.forEach(function(e){});else{var t=(0,r.decodeMsg)(e.msg);console.log("接口错误(站点列表):","code=".concat(e.code),t,e)}}},351:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]});t.__esModule=!0,t.handleReportExistingResponse=t.handleSitesIndexResponse=t.handleReseedIndexResponse=t.decodeMsg=void 0,r(t,n(221),"decodeMsg"),r(t,n(314),"handleReseedIndexResponse"),r(t,n(531),"handleSitesIndexResponse"),r(t,n(388),"handleReportExistingResponse")},548:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};t.__esModule=!0,t.gmRequest=void 0,t.gmRequest=function(e){return"undefined"!=typeof GM&&"function"==typeof GM.xmlHttpRequest?GM.xmlHttpRequest(e):"function"==typeof GM_xmlhttpRequest?new Promise(function(t,r){GM_xmlhttpRequest(n(n({},e),{onload:function(e){return t(e)},onerror:function(e){return r(e)}}))}):Promise.reject(new Error("GM.xmlHttpRequest / GM_xmlhttpRequest 都未定义,请确认油猴脚本中 @grant GM.xmlHttpRequest 或 @grant GM_xmlHttpRequest 已配置。"))}},592:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]});t.__esModule=!0,t.requestReportExisting=t.requestReseedIndex=t.requestSitesIndex=t.gmRequest=void 0,r(t,n(548),"gmRequest"),r(t,n(990),"requestSitesIndex"),r(t,n(723),"requestReseedIndex"),r(t,n(108),"requestReportExisting")},108:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};t.__esModule=!0,t.requestReportExisting=void 0;var i=n(548);t.requestReportExisting=function(e){return r(this,void 0,void 0,function(){var t,n,r,a,l;return o(this,function(o){switch(o.label){case 0:return t=e.token,n=e.sidList,r="".concat("https://2025.iyuu.cn","/reseed/sites/reportExisting"),a=JSON.stringify({sid_list:n}),[4,(0,i.gmRequest)({method:"POST",url:r,headers:{"Content-Type":"application/json",token:t},data:a,overrideMimeType:"text/plain; charset=gbk"})];case 1:return l=o.sent(),[2,JSON.parse(l.responseText)]}})})}},723:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};t.__esModule=!0,t.requestReseedIndex=void 0;var i=n(548);t.requestReseedIndex=function(e){return r(this,void 0,void 0,function(){var t,n,r,a,l,s,c,u;return o(this,function(o){switch(o.label){case 0:return t=e.token,n=e.hashList,r=e.sidSha1,a=e.timestamp,l=e.version,s="".concat("https://2025.iyuu.cn","/reseed/index/index"),c="hash="+encodeURIComponent(JSON.stringify(n))+"&sid_sha1="+encodeURIComponent(r)+"&timestamp="+encodeURIComponent(a)+"&version="+encodeURIComponent(l),[4,(0,i.gmRequest)({method:"POST",url:s,headers:{"Content-Type":"application/x-www-form-urlencoded",token:t},data:c,overrideMimeType:"text/plain; charset=gbk"})];case 1:return u=o.sent(),[2,JSON.parse(u.responseText)]}})})}},990:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};t.__esModule=!0,t.requestSitesIndex=void 0;var i=n(548);t.requestSitesIndex=function(e){return r(this,void 0,void 0,function(){var t,n;return o(this,function(r){switch(r.label){case 0:return t="".concat("https://2025.iyuu.cn","/reseed/sites/index"),[4,(0,i.gmRequest)({method:"GET",url:t,headers:{token:e},overrideMimeType:"text/plain; charset=gbk"})];case 1:return n=r.sent(),[2,JSON.parse(n.responseText)]}})})}},787:(e,t,n)=>{"use strict";var r=n(755);t.__esModule=!0,t.initPtBonusCalculator=t.manualRefreshMagicArgs=void 0;var o,i,a,l,s=n(624),c=n(259),u=n(37),d=n(706),f=null;function p(){var e=r,t=(0,s.ensureMagicArgs)({host:o,isMybonusPage:l,$:e});if(t){var n=t.T0,u=t.N0,d=t.B0,f=t.L;(0,c.attachMagicColumns)({host:o,isMTeam:i,seedTableSelector:a,T0:n,N0:u,B0:d,L:f})}}function h(){f=(0,d.setupMTeamTableObserverImpl)({isMTeam:i,isMybonusPage:l,seedTableSelector:a,run:p,observer:f})}function m(){(0,d.MTteamWaitPageLoadAndRunImpl)({isMybonusPage:l,setIsMybonusPage:function(e){l=e},seedTableSelector:a,run:p,setupObserver:h})}t.manualRefreshMagicArgs=function(){(0,s.manualRefreshMagicArgsForHost)({host:o,isMybonusPage:l})},t.initPtBonusCalculator=function(){o=window.location.host.match(/\b[^\.]+\.[^\.]+$/)[0],i=-1!==window.location.toString().indexOf("m-team"),a=i?"div.mt-4>table>tbody>tr":".torrents:last-of-type>tbody>tr",l=-1!==window.location.toString().indexOf("mybonus"),-1!==window.location.toString().indexOf("tjupt.org")&&(l=-1!==window.location.toString().indexOf("bonus.php"));try{var e=(0,u.getSiteMagicConfig)(o);if(null==e?void 0:e.isMybonusPage)l=Boolean(e.isMybonusPage());else if(null==e?void 0:e.getMybonusPath){var t=e.getMybonusPath();t&&(l=window.location.pathname.endsWith(t))}}catch(e){}i?(l||-1!==window.location.toString().indexOf("browse"))&&m():p(),window.location.href,null===window.onurlchange&&window.addEventListener("urlchange",function(){return m()})}},624:(e,t,n)=>{"use strict";t.__esModule=!0,t.manualRefreshMagicArgsForHost=t.ensureMagicArgs=t.MYBONUS_TRIED_PATH_KEY_SUFFIX=t.MYBONUS_PATH_KEY_SUFFIX=t.RETURN_URL_KEY_SUFFIX=t.ARGS_UNAVAILABLE_KEY_SUFFIX=void 0;var r=n(37);function o(e){try{GM_setValue(e+t.ARGS_UNAVAILABLE_KEY_SUFFIX,!0)}catch(e){}}t.ARGS_UNAVAILABLE_KEY_SUFFIX=".argsUnavailable",t.RETURN_URL_KEY_SUFFIX=".returnUrl",t.MYBONUS_PATH_KEY_SUFFIX=".mybonusPath",t.MYBONUS_TRIED_PATH_KEY_SUFFIX=".mybonusTriedPath",t.ensureMagicArgs=function(e){var n=e.host,i=e.isMybonusPage,a=e.$,l=function(e){var n=!1;try{n=Boolean(GM_getValue(e+t.ARGS_UNAVAILABLE_KEY_SUFFIX,!1))}catch(e){n=!1}return{T0:GM_getValue(e+".T0"),N0:GM_getValue(e+".N0"),B0:GM_getValue(e+".B0"),L:GM_getValue(e+".L"),argsUnavailable:n}}(n),s=l.T0,c=l.N0,u=l.B0,d=l.L,f=l.argsUnavailable,p=Boolean(s&&c&&u&&d);if(p&&f&&(f=!1,function(e){try{GM_setValue(e+t.ARGS_UNAVAILABLE_KEY_SUFFIX,!1)}catch(e){}}(n)),!p&&!i)return f||o(n),null;if(i){var h=function(e,t){var n=(0,r.getSiteMagicConfig)(e),o=null;(null==n?void 0:n.parseArgsFromMybonus)&&(o=n.parseArgsFromMybonus({host:e,$:t}));try{var i=parseInt(t("li:has(b:contains('T0'))")[1].innerText.split(" = ")[1],10),a=parseInt(t("li:has(b:contains('N0'))")[1].innerText.split(" = ")[1],10),l=parseInt(t("li:has(b:contains('B0'))")[1].innerText.split(" = ")[1],10),s=parseInt(t("li:has(b:contains('L'))")[1].innerText.split(" = ")[1],10);return o&&(void 0!==o.T0&&(i=o.T0),void 0!==o.N0&&(a=o.N0),void 0!==o.B0&&(l=o.B0),void 0!==o.L&&(s=o.L)),console.log("数据提取成功:",i,a,l,s),{T0:i,N0:a,B0:l,L:s}}catch(e){return o&&void 0!==o.T0&&void 0!==o.N0&&void 0!==o.B0&&void 0!==o.L?o:(console.error("数据提取过程中出现错误:",e),null)}}(n,a);if(!p){if(h&&h.T0&&h.N0&&h.B0&&h.L)s=h.T0,c=h.N0,u=h.B0,d=h.L,p=!0,f=!1,function(e){try{GM_setValue(e+t.MYBONUS_TRIED_PATH_KEY_SUFFIX,!1),GM_setValue(e+t.ARGS_UNAVAILABLE_KEY_SUFFIX,!1),GM_setValue(e+".magicArgsMessage","魔力值参数已更新")}catch(e){}}(n);else{var m=function(e){var n,o=(0,r.getSiteMagicConfig)(e),i=null===(n=null==o?void 0:o.getMybonusPath)||void 0===n?void 0:n.call(o);if(i&&!i.includes("mybonus"))return!1;var a=window.location.pathname||"",l=null;if(a.endsWith("mybonus.php")?l="/mybonus":a.endsWith("mybonus")&&(l="/mybonus.php"),!l)return!1;var s=!1;try{Boolean(GM_getValue(e+t.MYBONUS_TRIED_PATH_KEY_SUFFIX,!1))||(s=!0,GM_setValue(e+t.MYBONUS_TRIED_PATH_KEY_SUFFIX,!0))}catch(e){s=!0}return!(!s||!l||(window.location.href=l,0))}(n);if(m)return null;s=c=u=d=0,f=!0,o(n)}!function(e,t){try{GM_setValue(e+".T0",t.T0),GM_setValue(e+".N0",t.N0),GM_setValue(e+".B0",t.B0),GM_setValue(e+".L",t.L)}catch(e){}}(n,{T0:s,N0:c,B0:u,L:d})}if(!p)return null}return{T0:s,N0:c,B0:u,L:d}},t.manualRefreshMagicArgsForHost=function(e){var n,o=e.host,i=e.isMybonusPage;try{GM_setValue(o+".T0",0),GM_setValue(o+".N0",0),GM_setValue(o+".B0",0),GM_setValue(o+".L",0),GM_setValue(o+t.ARGS_UNAVAILABLE_KEY_SUFFIX,!1),GM_setValue(o+t.MYBONUS_TRIED_PATH_KEY_SUFFIX,"")}catch(e){}if(i)window.location.reload();else{try{GM_setValue(o+t.RETURN_URL_KEY_SUFFIX,window.location.href)}catch(e){}var a=(0,r.getSiteMagicConfig)(o),l=(null===(n=null==a?void 0:a.getMybonusPath)||void 0===n?void 0:n.call(a))||"/mybonus.php";try{"/mybonus.php"===l&&window.location.hostname.includes("kp.m-team")&&(l="/mybonus")}catch(e){}window.location.href=l}}},259:(e,t,n)=>{"use strict";var r=n(755);t.__esModule=!0,t.attachMagicColumns=void 0;var o=[{min:0,max:1,color:null,fontWeight:null},{min:1,max:1.5,color:"#00008B",fontWeight:700},{min:1.5,max:2,color:"#8B4513",fontWeight:800},{min:2,max:1/0,color:"#ff0000",fontWeight:900}],i=n(433),a=n(37);t.attachMagicColumns=function(e){var t,n,l,s,c,u,d=e.host,f=e.isMTeam,p=e.seedTableSelector,h=e.T0,m=e.N0,g=e.B0,y=e.L,v=(0,a.getSiteMagicConfig)(d);function b(e,t,n,r){return n=n||1,(1-Math.pow(10,-e/h))*t*(1+Math.pow(2,.5)*Math.pow(10,-(n-1)/(m-1)))*r}function x(e,t,n,r){var i,a,l,s=(a=t,void 0!==(l=(i=e).children("td:eq("+a+")").find("span").attr("title"))&&""!==l||(l=i.children("td:eq("+a+")").find("span").text()),void 0!==l&&""!==l||(l=i.children("td:eq("+a+")").html().replace("<br>"," ").trim()),((new Date).getTime()-new Date(l).getTime())/1e3/86400/7),c=function(e,t){var n=e.children("td:eq("+t+")").text().trim(),r=1,o=n.replace(/[KMGT]i?B/,function(e){return"KB"===e||"KiB"===e?r=1/1024/1024:"MB"===e||"MiB"===e?r=1/1024:"GB"===e||"GiB"===e?r=1:"TB"!==e&&"TiB"!==e||(r=1024),""});return 1===r&&/(^|\s|\d)B(ytes?)?$/i.test(n)&&(r=1/1073741824,o=n.replace(/B(ytes?)?$/i,"").trim()),parseFloat(o)*r}(e,n),u=function(e,t){var n=e.children("td:eq("+t+")").text().trim().replace(/,/g,"");return parseInt(n,10)}(e,r),f=function(e,t){try{if(t.find("span.tags.tgf[title*='官方']").length>0||t.find("span.tags.tgf:contains('官方')").length>0)return!0;if(t.find("span.optiontag:contains('官组')").length>0)return!0}catch(e){}return!1}(0,e),p=null;if(null==v?void 0:v.getRowWeight)try{var x=v.getRowWeight({host:d,$row:e,isOfficial:f});"number"==typeof x&&!Number.isNaN(x)&&x>0&&(p=x)}catch(e){p=null}if(null==p)try{p=e.find("span.optiontag:contains('保种')").length>0||e.find("span.tags:contains('保种')").length>0?1.2:f?1:.5}catch(e){p=1}var w,E=null==p?1:p;if(null==v?void 0:v.calcAForRow)try{w=v.calcAForRow({host:d,T:s,S:c,N:u,T0:h,N0:m,B0:g,L:y,isOfficial:f,weight:E})}catch(e){w=b(s,c,u,E)}else w=b(s,c,u,E);var T=w.toFixed(2),C=(w/c).toFixed(2),_=T+"@"+C,S="<span>"+_+"</span>";return o.forEach(function(e){Number(C)>=e.min&&Number(C)<e.max&&(null!=e.color||null!=e.fontWeight)&&(S='<span style="'+(null==e.color?"":"color:"+e.color+";")+(null==e.fontWeight?"":"font-weight:"+e.fontWeight+";")+'">'+_+"</span>")}),S}f?(s=!1,c=r("div.mt-4>table>thead>tr>th"),u=c.length,c.filter("[data-iyuu-a-col='1']").length&&(s=!0,u-=1),t=u-5,n=u-4,l=u-3,s||r("div.mt-4>table>thead>tr>th:last").after('<th class="border-0 border-b border-solid border-[--mt-line-color] p-2 " style="width: 100px;" title="A值@每GB的A值" data-iyuu-a-col="1"><div class="action">A@A/GB</div></th>'),r(p).each(function(){var e=r(this),o=x(e,t,n,l),i=e.find("td[data-iyuu-a-col='1']").first();if(i.length)i.html(o);else{var a='<td class="border-0 border-b border-solid border-[--mt-line-color] p-0 " align="center" data-iyuu-a-col="1">'+o+"</td>";e.children("td:last").after(a)}})):function(){var e,t,n;r(p).each(function(o){var i=r(this);if(0===o){if(i.children("td").each(function(o){r(this).find("img.time").length?e=o:r(this).find("img.size").length?t=o:r(this).find("img.seeders").length&&(n=o)}),void 0===e||void 0===t||void 0===n)return;i.children("td:last").before('<td class="colhead" title="A值@每GB的A值">A@A/GB</td>')}else{if(void 0===e||void 0===t||void 0===n)return;var a=x(i,e,t,n);i.children("td:last").before('<td class="rowfollow">'+a+"</td>")}})}();try{GM_getValue("iyuu_sort_a_desc",!1)&&(0,i.sortByAForCurrentSiteOnce)()}catch(e){}}},706:(e,t,n)=>{"use strict";var r=n(755);t.__esModule=!0,t.MTteamWaitPageLoadAndRunImpl=t.setupMTeamTableObserverImpl=void 0,t.setupMTeamTableObserverImpl=function e(t){var n=t.isMTeam,r=t.isMybonusPage,o=t.seedTableSelector,i=t.run,a=t.observer;if(!n||r)return a;var l=document.querySelector("div.mt-4>table");if(!l||!l.tBodies.length)return a;var s=l.tBodies[l.tBodies.length-1],c=a;return c&&c.disconnect(),(c=new MutationObserver(function(t){var a=!1;t.forEach(function(e){e.addedNodes.forEach(function(e){e instanceof HTMLElement&&"TR"===e.tagName&&(a=!0)}),e.removedNodes.forEach(function(e){e instanceof HTMLElement&&"TR"===e.tagName&&(a=!0)})}),a&&c&&(c.disconnect(),i(),e({isMTeam:n,isMybonusPage:r,seedTableSelector:o,run:i,observer:c}))})).observe(s,{childList:!0}),c},t.MTteamWaitPageLoadAndRunImpl=function(e){var t=e.isMybonusPage,n=e.setIsMybonusPage,o=e.seedTableSelector,i=e.run,a=e.setupObserver,l=r,s=0,c=!1,u=!1,d=!1;n(-1!==window.location.toString().indexOf("mybonus"));var f=setInterval(function(){t&&(u=Boolean(l("li:has(b:contains('T0'))")[1])),(u||d||s>=100)&&(clearInterval(f),i(),a()),s++},100),p=0,h=setInterval(function(){(l("div.ant-spin-blur")[0]||p>=50)&&(c=!0,clearInterval(h)),p++},100),m=0,g=setInterval(function(){(c&&!l("div.ant-spin-blur")[0]||m>=100)&&((d=Boolean(l(o)[1]))||m>=100)&&clearInterval(g),m++},100)}},37:(e,t)=>{"use strict";t.__esModule=!0,t.getSiteMagicConfig=void 0;var n={"audiences.me":{parseArgsFromMybonus:function(e){var t=e.host,n=e.$,r=function(e){var t=n("li:has(b:contains('"+e+"'))");if(!t.length)return null;var r=t[t.length-1];return r.innerText||r.textContent||""},o=function(e){if(!e)return null;var t=e.split("="),n=t[t.length-1],r=parseInt(n.replace(/[^\d]/g,""),10);return Number.isNaN(r)?null:r};try{var i=r("T0"),a=r("N0"),l=r("L"),s=r("B0"),c=o(i),u=o(a),d=o(l),f=null,p=null,h=null;if(s){var m=s.match(/(\d+)\s*,\s*(\d+)/);m&&(p=parseInt(m[1],10),h=parseInt(m[2],10),Number.isNaN(p)&&(p=null),Number.isNaN(h)&&(h=null)),f=null==p?o(s):p}var g={};null!=c&&(g.T0=c),null!=u&&(g.N0=u),null!=d&&(g.L=d),null!=f&&(g.B0=f);var y=t;try{null!=p&&GM_setValue(y+".audiencesRatioOfficial",p),null!=h&&GM_setValue(y+".audiencesRatioNormal",h)}catch(e){}return g}catch(e){return null}},getRowB0:function(e){var t=e.host,n=(e.$row,e.baseB0),r=e.isOfficial,o=null,i=null;try{var a=GM_getValue(t+".audiencesRatioOfficial",null),l=GM_getValue(t+".audiencesRatioNormal",null);if("number"==typeof a)o=a;else if("string"==typeof a){var s=parseInt(a,10);o=Number.isNaN(s)?null:s}if("number"==typeof l)i=l;else if("string"==typeof l){s=parseInt(l,10);i=Number.isNaN(s)?null:s}}catch(e){}return null==o&&"number"==typeof n&&n>0&&(o=n),null==i&&(i=30),null==o&&(o=100),"boolean"==typeof r&&r?o:i}},"kamept.com":{parseArgsFromMybonus:function(e){e.host;var t=(0,e.$)("body").text()||"";if(!/K1\s*为常数/.test(t))return null;var n=function(e){var n=t.match(e);if(!n)return null;var r=parseFloat(n[1]);return Number.isNaN(r)?null:r},r=n(/K1\s*为常数\s*([\d.]+)/),o=n(/K2\s*为常数\s*([\d.]+)/),i=n(/B\s*值最高为\s*([\d.]+)%/);return{T0:7,N0:10,B0:i?i/100:2.5,L:null!=r&&null!=o?r*o:10}}},"hdsky.me":{getPanelAnchor:function(){try{var e=document.querySelector('form[name="searchbox"]');if(e)return e}catch(e){}return null},calcAForRow:function(e){var t=e.T,n=e.S,r=e.N,o=e.T0,i=e.N0,a=e.isOfficial,l="number"==typeof o&&o>0?o:14,s="number"==typeof i&&i>1?i:2,c=1-Math.pow(10,-t/l),u=Math.pow(10,-(r-1)/(s-1)),d=r>0?r:1;return(a?3:1)*c*n*(1+Math.SQRT2*u*(2/d))}},"si-qi.xyz":{parseArgsFromMybonus:function(e){var t=(0,e.$)("body").text()||"",n=function(e){var n=t.match(e);if(!n)return null;var r=parseFloat(n[1]);return Number.isNaN(r)?null:r},r=n(/T0\D*=\s*([\d.]+)/),o=n(/N0\D*=\s*([\d.]+)/),i=n(/B0\D*=\s*([\d.]+)/),a=n(/L\D*=\s*([\d.]+)/);return null==r||null==o||null==i||null==a?null:{T0:r,N0:o,B0:i,L:a}}},"lemonhd.club":{parseArgsFromMybonus:function(e){var t=e.host,n=(0,e.$)("body").text()||"",r=function(e){var t=n.match(e);if(!t)return null;var r=parseFloat(t[1].replace(/,/g,""));return Number.isNaN(r)?null:r},o=r(/B\s*=\s*([\d,]+(?:\.\d+)?)/),i=r(/F\s*=\s*([\d,]+(?:\.\d+)?)/),a=r(/M\s*=\s*([\d,]+(?:\.\d+)?)/),l=r(/k\s*=\s*([\d.]+)/i),s=r(/α\s*=\s*([\d.]+)/);if(null==o||null==i||null==a||null==l||null==s)return null;try{GM_setValue(t+".lemon.B",o),GM_setValue(t+".lemon.F",i),GM_setValue(t+".lemon.M",a),GM_setValue(t+".lemon.k",l),GM_setValue(t+".lemon.alpha",s)}catch(e){}return{T0:7,N0:7,B0:o,L:i}},calcAForRow:function(e){var t=e.host,n=e.S,r=e.N,o=e.isOfficial,i=GM_getValue(t+".lemon.B",5),a=GM_getValue(t+".lemon.F",10485760),l=GM_getValue(t+".lemon.M",53687091200),s=GM_getValue(t+".lemon.k",.05),c=GM_getValue(t+".lemon.alpha",1.5),u=1024*Math.max(0,n)*1024*1024,d=i*(Math.log(1+u/a)/Math.log(1+l/a))*(1/(1+s*Math.pow(Math.max(r,0),c)));return o&&(d*=1.5),d}},"m-team.cc":{getRowWeight:function(){return 1},getPanelAnchor:function(){try{var e=document.querySelector("form.torrent-search-panel");if(e)return e}catch(e){}return null}},"dmhy.org":{isMybonusPage:function(){try{return window.location.pathname.endsWith("/ucoin.php")}catch(e){return!1}},getMybonusPath:function(){return"/ucoin.php"},parseArgsFromMybonus:function(e){var t=e.$;try{if(!(t("#SeedBonusTable").length>0||/UCoin/i.test(document.title)))return null;var n=t("td.text").first().text()||"",r=function(e){var t=n.match(e);if(!t)return null;var r=parseFloat(t[1]);return Number.isNaN(r)?null:r},o=r(/超过\s*(\d+)\s*天/),i=r(/SD0\D*(\d+(?:\.\d+)?)/i),a=r(/\bb\D*(\d+(?:\.\d+)?)/i),l=r(/大于\s*(\d{3,4})/),s=Math.max(1,Math.round((null!=o?o:60)/7)),c=Math.max(2,Math.round(null!=i?i:24.297)),u=Math.max(1,Math.round(null!=a?a:14.5)),d=Math.max(1,Math.round(null!=l?l:1096)),f=function(e,n){var r=2-t("li:has(b:contains('"+e+"'))").length;if(!(r<=0)){var o=document.getElementById("iyuu-u2-legacy-magic-args");o||((o=document.createElement("ul")).id="iyuu-u2-legacy-magic-args",o.style.display="none",document.body.appendChild(o));for(var i=0;i<r;i+=1){var a=document.createElement("li");a.innerHTML="<b>"+e+"</b> = "+String(n),o.appendChild(a)}}};return f("T0",s),f("N0",c),f("B0",u),f("L",d),{T0:s,N0:c,B0:u,L:d}}catch(e){return null}}}};t.getSiteMagicConfig=function(e){var t;return null!==(t=n[e])&&void 0!==t?t:null}},202:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]});t.__esModule=!0,t.initPtBonusCalculator=t.manualRefreshMagicArgs=void 0;var o=n(787);r(t,o,"manualRefreshMagicArgs"),r(t,o,"initPtBonusCalculator")},816:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}};t.__esModule=!0,t.checkMagnetAvailabilityViaQBittorrent=t.downloadTorrentToQBittorrent=void 0;var a=n(449),l=n(548);function s(e){var t;if("qbittorrent"!==(e.client||GM_getValue("client","qbittorrent")))throw new Error("当前下载客户端不是 qBittorrent,请在“下载客户端配置”中选择 qBittorrent。");if(!e.address||!e.username||!e.password)throw new Error("请先在“下载客户端配置”中填写 qBittorrent 地址、用户名与密码。");return r(r({},e),{address:(t=e.address,t.endsWith("/")?t.slice(0,-1):t)})}function c(e,t,n){return void 0===n&&(n=15e3),new Promise(function(o,i){var a=!1,l=setTimeout(function(){a||(a=!0,console.error("[qBittorrent] ".concat(e," 超时(>").concat(n,"ms),请检查 @connect 配置与网络。"),{url:t.url}),i(new Error("".concat(e," 超时(>").concat(n,"ms),请检查脚本 @connect 是否包含 qB 地址以及网络连通性。"))))},n);console.log("[qBittorrent] 开始请求:".concat(e),{url:t.url,method:t.method}),GM_xmlhttpRequest(r(r({},t),{onload:function(n){var r,i,s,c;a||(a=!0,clearTimeout(l),console.log("[qBittorrent] ".concat(e," 返回"),{status:n.status,snippet:null!==(i=null===(r=n.responseText)||void 0===r?void 0:r.slice(0,120))&&void 0!==i?i:""}),null===(c=(s=t).onload)||void 0===c||c.call(s,n),o(n))},onerror:function(n){var r,o;a||(a=!0,clearTimeout(l),console.error("[qBittorrent] ".concat(e," 请求异常"),n),null===(o=(r=t).onerror)||void 0===o||o.call(r,n),i(n))}}))})}function u(e){return o(this,void 0,void 0,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return console.log("[qBittorrent] 使用 PT-depiler 风格登录",{address:e.address,username:e.username}),t=new URLSearchParams({username:e.username,password:e.password}).toString(),[4,(0,l.gmRequest)({method:"POST",url:"".concat(e.address,"/api/v2/auth/login"),headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},data:t})];case 1:if(n=r.sent(),console.log("[qBittorrent] 登录返回",{status:n.status,snippet:n.responseText.slice(0,120)}),404===n.status)throw new Error("请检查 qBittorrent 访问地址是否正确。");if("Ok."!==n.responseText.trim())throw new Error("qBittorrent 登录失败,请检查配置是否正确。");return[2]}})})}t.downloadTorrentToQBittorrent=function(e){return o(this,void 0,void 0,function(){var t,n,r,o,c,d;return i(this,function(i){switch(i.label){case 0:return t=(0,a.readDownloadClientConfig)(),n=s(t),r=function(e,t){if(t)return t;if(Array.isArray(e.saveLocations)&&e.saveLocations.length>0){var n=e.saveLocations[0];if(n&&"string"==typeof n.value)return n.value}return""}(n,e.savePathOverride),console.log("[qBittorrent] 准备推送种子(通过 urls 字段)",{address:n.address,downloadUrl:e.downloadUrl,rename:e.rename,savePath:r}),[4,u(n)];case 1:return i.sent(),(o=new URLSearchParams).set("urls",e.downloadUrl),r&&o.set("savepath",r),e.rename&&e.rename.trim()&&o.set("rename",e.rename.trim()),o.set("sequentialDownload",String(n.sequentialDownload)),o.set("firstLastPiecePrio",String(n.firstLastPiecePrio)),o.set("autoTMM",String(n.autoTMM)),Array.isArray(n.saveLocations)&&(c=n.saveLocations.find(function(e){return e.value===r}))&&c.label&&o.set("category",c.label),o.set("paused",String(!n.autoStartDownload)),console.log("[qBittorrent] 开始请求:添加种子",{url:"".concat(n.address,"/api/v2/torrents/add"),method:"POST"}),[4,(0,l.gmRequest)({method:"POST",url:"".concat(n.address,"/api/v2/torrents/add"),headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},data:o.toString()})];case 2:if(d=i.sent(),console.log("[qBittorrent] 添加种子 返回",{status:d.status,snippet:d.responseText.slice(0,120)}),"Ok."!==d.responseText.trim())throw new Error("添加种子失败:".concat(d.responseText||"Fails."));return[2]}})})},t.checkMagnetAvailabilityViaQBittorrent=function(e){var t;return o(this,void 0,void 0,function(){var n,r,o,l,d,f,p,h,m,g,y,v,b,x,w,E,T,C,_,S,A,M,k;return i(this,function(i){switch(i.label){case 0:if(n=e.magnet,r=e.checkIntervalMs,o=void 0===r?1e3:r,l=e.maxChecks,d=void 0===l?30:l,f=e.deleteWhenDone,p=void 0===f||f,h=e.tag,m=void 0===h?"PT助手磁链检测":h,g=(0,a.readDownloadClientConfig)(),y=s(g),v=function(e){try{var t=(e.startsWith("magnet:")?e:e.trim()).match(/magnet:\?xt=urn:btih:([^&]+)/i);if(!t)return null;var n=decodeURIComponent(t[1]);return/^[0-9a-fA-F]{40}$/.test(n)||/^[A-Z2-7]{32}$/i.test(n)?n.toLowerCase():null}catch(e){return null}}(n),!v)throw new Error("无法从磁力链接中解析出 BTIH hash。");return console.log("[qBittorrent] 磁链检测 - 初始化",{address:y.address,magnet:n,hash:v,tag:m}),[4,u(y)];case 1:return i.sent(),b=new URLSearchParams({urls:n,paused:"true",skip_checking:"true"}),m&&b.append("tags",m),[4,c("添加磁链检测任务",{method:"POST",url:"".concat(y.address,"/api/v2/torrents/add"),data:b.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8",Referer:y.address},onload:function(e){var t=e.responseText||"";if("Ok."!==t.trim())throw new Error("添加磁链检测任务失败:".concat(t||"未知错误"))},onerror:function(){}},15e3).catch(function(e){if(e instanceof Error&&e.message.startsWith("添加磁链检测任务失败"))throw e;throw new Error("添加磁链检测任务失败:请求异常或超时。")})];case 2:i.sent(),x=!1,w=0,i.label=3;case 3:return w<d?w>0?[4,new Promise(function(e){return setTimeout(e,o)})]:[3,5]:[3,9];case 4:i.sent(),i.label=5;case 5:return i.trys.push([5,7,,8]),[4,c("获取检测种子属性",{method:"GET",url:"".concat(y.address,"/api/v2/torrents/properties?hash=").concat(encodeURIComponent(v)),responseType:"text",onload:function(){},onerror:function(){}},8e3)];case 6:if(E=i.sent(),T=E.status,C=E.responseText,200!==T||!C)return[3,8];_=null;try{_=JSON.parse(C)}catch(e){return[3,8]}return(S=null===(t=null==_?void 0:_.name)||void 0===t?void 0:t.toLowerCase())&&S!==v.toLowerCase()?(x=!0,[3,9]):[3,8];case 7:return A=i.sent(),console.warn("[qBittorrent] 获取检测种子属性失败,继续重试",A),[3,8];case 8:return w++,[3,3];case 9:if(!p)return[3,13];i.label=10;case 10:return i.trys.push([10,12,,13]),M=new URLSearchParams({hashes:v,deleteFiles:"false"}),[4,c("删除检测种子任务",{method:"POST",url:"".concat(y.address,"/api/v2/torrents/delete"),data:M.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8",Referer:y.address},onload:function(){},onerror:function(){}},8e3)];case 11:return i.sent(),[3,13];case 12:return k=i.sent(),console.warn("[qBittorrent] 删除检测种子任务失败(可忽略)",k),[3,13];case 13:return console.log("[qBittorrent] 磁链检测完成",{magnet:n,hash:v,available:x}),[2,x]}})})}},450:(e,t)=>{"use strict";t.__esModule=!0,t.findACell=void 0,t.findACell=function(e){for(var t=e.length-1;t>=0;t--){var n=(e[t].textContent||"").trim();if(n&&/([\d.]+)\s*@/.test(n))return e[t]}return null}},339:(e,t)=>{"use strict";t.__esModule=!0,t.findTorrentTables=void 0,t.findTorrentTables=function(e){void 0===e&&(e=document);var t=Array.from(e.querySelectorAll("table.torrents#torrenttable"));if(t.length)return t;var n=Array.from(e.querySelectorAll("table.torrents"));return n.length?n:Array.from(e.querySelectorAll("div.mt-4>table"))}},796:(e,t,n)=>{"use strict";t.__esModule=!0,t.getSeederIndex=void 0;var r=n(640),o=new WeakMap;t.getSeederIndex=function(e,t){if(void 0===t&&(t=window),o.has(e))return o.get(e);var n=(0,r.isKpMTeamHost)(t),i=null,a=e.tHead&&e.tHead.rows.length?e.tHead.rows[0]:null;if(a){var l=Array.from(a.cells);if(l.forEach(function(e,t){var n=(e.textContent||"").trim();(/做[種种]/.test(n)||/seeders?/i.test(n)||!n&&e.querySelector("img.seeders"))&&(i=t)}),null===i&&n&&e.matches("div.mt-4>table")){var s=l.length,c=l[s-1];("1"===(null==c?void 0:c.getAttribute("data-iyuu-a-col"))||/A@A\/GB/.test((c.textContent||"").trim()))&&(s-=1),i=s-3}}if(null===i){var u=e.tBodies,d=u&&u.length?u[u.length-1]:void 0,f=d&&d.rows.length?d.rows[0]:void 0;if(f)Array.from(f.cells).forEach(function(e,t){var n=(e.textContent||"").trim();(/做[種种]/.test(n)||/seeders?/i.test(n)||e.querySelector("img.seeders"))&&(i=t)})}return null===i&&e.matches("table.torrents#torrenttable")&&(i=5),o.set(e,i),i}},222:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]});t.__esModule=!0,t.getSeederIndex=t.findACell=t.findTorrentTables=t.isKpMTeamHost=void 0,r(t,n(640),"isKpMTeamHost"),r(t,n(339),"findTorrentTables"),r(t,n(450),"findACell"),r(t,n(796),"getSeederIndex")},640:(e,t)=>{"use strict";t.__esModule=!0,t.isKpMTeamHost=void 0;t.isKpMTeamHost=function(e){return void 0===e&&(e=window),e.location.hostname.includes("kp.m-team")}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(()=>{"use strict";if("undefined"!=typeof window&&window.location)try{window.top===window&&console.log("[PT助手] 当前页面 URL:",window.location.href)}catch(e){}n(70),n(996),n(791)})()})();