diff --git a/dist/extended-css.js b/dist/extended-css.js index 94e35b7f..e2fbd996 100644 --- a/dist/extended-css.js +++ b/dist/extended-css.js @@ -3639,7 +3639,7 @@ function ExtendedCss(configuration) { var EventTracker = function () { var ignoredEventTypes = ['mouseover', 'mouseleave', 'mouseenter', 'mouseout']; - var LAST_EVENT_TIMEOUT_MS = 10; + var LAST_EVENT_TIMEOUT_MS = 150; var TRACKED_EVENTS = [ // keyboard events diff --git a/dist/extended-css.min.js b/dist/extended-css.min.js index b3b3a14e..0a2fcf7b 100644 --- a/dist/extended-css.min.js +++ b/dist/extended-css.min.js @@ -2,4 +2,4 @@ * https://github.com/AdguardTeam/ExtendedCss * Copyright (c) 2019 ; Licensed Apache License 2.0 */ -var ExtendedCss=function(e){function t(e){return"number"==typeof e}function n(t){function n(e){var t=function(e){for(var t=0;t=0?e.substring(0,n):e}function l(e){for(var t=0;tD?r.logError("ExtendedCss: infinite loop protection for SELECTOR",n):t.parentNode&&(t.parentNode.removeChild(t),C[n]=o+1)}function f(e){if(!e.protectionObserver&&(!x||(e=x(e))))for(var t=e.node,n=0;n-1&&a()<10}}}(),w=[],E=[],C={},T=void 0,A=e.addEventListener,N=void 0,D=50,k={attributes:!0,attributeOldValue:!0,attributeFilter:["style"]},I=new r.AsyncWrapper(g,50),O=I.run.bind(I),L=!1;w=i.parseCss(b),this.dispose=function(){m();for(var e=0;e=0&&r===e.length-n.length},s=function(e,t,n){return e?e.split(t).join(n):e};return function(t){var n=r(t);return n=o(n,e.maskStartUrl)?n.substring(0,e.maskStartUrl.length)+s(n.substring(e.maskStartUrl.length,n.length-1),"|","\\|")+n.substring(n.length-1):o(n,e.maskPipe)?n.substring(0,e.maskPipe.length)+s(n.substring(e.maskPipe.length,n.length-1),"|","\\|")+n.substring(n.length-1):s(n.substring(0,n.length-1),"|","\\|")+n.substring(n.length-1),n=s(n,e.maskAnySymbol,e.regexAnySymbol),n=s(n,e.maskSeparator,e.regexSeparator),o(n,e.maskStartUrl)?n=e.regexStartUrl+n.substring(e.maskStartUrl.length):o(n,e.maskPipe)&&(n=e.regexStartString+n.substring(e.maskPipe.length)),i(n,e.maskPipe)&&(n=n.substring(0,n.length-1)+e.regexEndString),new RegExp(n,"i")}}(),r.createLocation=function(e){var t=document.createElement("a");return t.href=e,""===t.host&&(t.href=t.href),t},r.isSameOrigin=function(e,t,n){var o=r.createLocation(e);return"javascript:"===o.protocol||"about:blank"===o.href||"data:"!==o.protocol&&"file:"!==o.protocol&&(o.hostname===n&&o.port===t.port&&o.protocol===t.protocol)},r.AsyncWrapper=function(){function n(e,t){this.callback=e,this.throttle=t,this.wrappedCallback=this.wrappedCallback.bind(this),this.wrappedAsapCallback&&(this.wrappedAsapCallback=this.wrappedAsapCallback.bind(this))}var o=void 0!==e.requestAnimationFrame&&!/phantom/i.test(navigator.userAgent),i=o?requestAnimationFrame:setTimeout,s=o?cancelAnimationFrame:clearTimeout,a=o?performance:Date;return n.prototype.wrappedCallback=function(e){this.lastRun=t(e)?e:a.now(),this.rAFid=this.timerId=this.asapScheduled=void 0,this.callback()},n.prototype.hasPendingCallback=function(){return t(this.rAFid)||t(this.timerId)},n.prototype.run=function(){if(!this.hasPendingCallback()){if(void 0!==this.lastRun){var e=a.now()-this.lastRun;if(e>>0)+e+++"__"};return t.prototype={set:function(e,t){var n=e[this.name];return n&&n[0]===e?n[1]=t:r.defineProperty(e,this.name,{value:[e,t],writable:!0}),this},get:function(e){var t=void 0;return(t=e[this.name])&&t[0]===e?t[1]:void 0},delete:function(e){var t=e[this.name];if(!t)return!1;var n=t[0]===e;return t[0]=t[1]=void 0,n},has:function(e){var t=e[this.name];return!!t&&t[0]===e}},t}(),r.Set="undefined"!=typeof Set?Set:function(){var e=Date.now()%1e9,n=function(t){if(this.name="__st"+(1e9*Math.random()>>>0)+e+++"__",this.keys=[],t&&t.length)for(var n=t.length;n--;)this.add(t[n])};return n.prototype={add:function(e){if(!t(e[this.name])){var n=this.keys.push(e)-1;r.defineProperty(e,this.name,{value:n,writable:!0})}},delete:function(e){if(t(e[this.name])){var n=e[this.name];delete this.keys[n],e[this.name]=void 0}},has:function(e){return t(e[this.name])},clear:function(){this.keys.forEach(function(e){e[this.name]=void 0}),this.keys.length=0},forEach:function(e){var t=this;this.keys.forEach(function(n){e(n,n,t)})}},r.defineProperty(n.prototype,"size",{get:function(){return this.keys.reduce(function(e){return e+1},0)}}),n}(),r.matchesPropertyName=function(){for(var e=["matches","matchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector"],t=0;t<6;t++)if(Element.prototype.hasOwnProperty(e[t]))return e[t]}(),r.Stats=function(){this.array=[],this.length=0;var e={value:0,writable:!0};Object.defineProperty(this,"sum",e),Object.defineProperty(this,"squaredSum",e)},r.Stats.prototype.push=function(e){this.array.push(e),this.length++,this.sum+=e,this.squaredSum+=e*e,this.mean=this.sum/this.length,this.stddev=Math.sqrt(this.squaredSum/this.length-Math.pow(this.mean,2))},r.logError="undefined"!=typeof console&&console.error&&Function.prototype.bind&&console.error.bind?console.error.bind(e.console):console.error,r.logInfo="undefined"!=typeof console&&console.info&&Function.prototype.bind&&console.info.bind?console.info.bind(e.console):console.info,r.getNodeSelector=function(e){if(!(e instanceof Element))throw new Error("Function received argument with wrong type");for(var t=[];e.nodeType===Node.ELEMENT_NODE;){var n=e.nodeName.toLowerCase();if(e.id&&"string"==typeof e.id){n+="#"+e.id,t.unshift(n);break}for(var r=e,o=1;r.previousSibling;)(r=r.previousSibling).nodeType===Node.ELEMENT_NODE&&r.nodeName.toLowerCase()===n&&o++;1!==o&&(n+=":nth-of-type("+o+")"),t.unshift(n),e=e.parentNode}return t.join(" > ")};var o,i=function(){function e(e){this.cssText=e}var t=/\[-(?:ext|abp)-([a-z-_]+)=(["'])((?:(?=(\\?))\4.)*?)\2\]/g,n=function(e,t,n,r){var o=new RegExp("([^\\\\]|^)\\\\"+n,"g");return r=r.replace(o,"$1"+n),":"+t+"("+r+")"},i=/\:(matches-css(?:-after|-before)?)\(([a-z-\s]*\:\s*\/(?:\\.|[^\/])*?\/\s*)\)/g,a=/:(?:-abp-)?(contains|has-text)\((\s*\/(?:\\.|[^\/])*?\/\s*)\)/g,l=function(e,t,n){return":"+t+'("'+n.replace(/["\\]/g,"\\$&")+'")'},c=function(e){return e=e.replace(t,n),e=e.replace(i,l),e=e.replace(a,l)},f=/[;}]/g,d=/[;:}]/g,p=/\S/g;return e.prototype={error:function(e){throw new Error("CssParser: parse error at position "+(this.posOffset+e))},validateSelectors:function(e){for(var t=e.length;t--;)for(var n=e[t].groups,r=n.length;r--;){var i=n[r],s=i[i.length-1];if(o.selectors.relative[s.type])return!1}return!0},parseCss:function(){this.posOffset=0,this.cssText||this.error(0);for(var e=[];this.cssText;){var t=o.tokenize(this.cssText,!1,{tolerant:!0,returnUnsorted:!0}),n=t.selectors;this.nextIndex=t.nextIndex,123===this.cssText.charCodeAt(this.nextIndex)&&this.validateSelectors(n)||this.error(this.nextIndex),this.nextIndex++;var i=this.parseNextStyle(),s=!1,a=i.debug;void 0!==a&&("global"===a&&u.enableGlobalDebugging(),s=!0,delete i.debug);for(var l=0,c=n.length;lS.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[$]=!0,e}function o(e){var t=O.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function i(e,t){for(var n=e.split("|"),r=n.length;r--;)S.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(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&&xe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function u(e){return e&&void 0!==e.getElementsByTagName&&e}function l(){}function c(e){for(var t=e.length;t--&&" "===e[t].type;)e.length=t}function f(e){c(e[e.length-1]);for(var t=Se(e),n=[],r=0;r1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function g(e,n,r){for(var o=0,i=n.length;o-1&&(r[l]=!(s[l]=f))}}else b=v(b===s?b.splice(h,b.length):b),i?i(null,s,b,u):J.apply(s,b)})}function y(e){for(var t,n,r,o=e.length,i=S.relative[e[0].type],s=i||S.relative[" "],a=i?1:0,u=p(function(e){return e===t},s,!0),l=p(function(e){return Y(t,e)>-1},s,!0),c=[function(e,n,r){var o=!i&&(r||n!==N)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,o}];a1&&h(c),a>1&&d(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(se,"$1"),n,a0,i=e.length>0,s=function(r,s,a,u,l){var c,f,d,p=0,h="0",g=r&&[],m=[],y=N,b=r||i&&S.find.TAG("*",l),x=U+=null==y?1:Math.random()||.1,w=b.length;for(l&&(N=s===O||s||l);h!==w&&null!=(c=b[h]);h++){if(i&&c){for(f=0,s||c.ownerDocument===O||(I(c),a=!P);d=e[f++];)if(d(c,s||O,a)){u.push(c);break}l&&(U=x)}o&&((c=!d&&c)&&p--,r&&g.push(c))}if(p+=h,o&&h!==p){for(f=0;d=n[f++];)d(g,m,s,a);if(r){if(p>0)for(;h--;)g[h]||m[h]||(m[h]=X.call(u));m=v(m)}J.apply(u,m),l&&!r&&m.length>0&&p+n.length>1&&t.uniqueSort(u)}return l&&(U=x,N=y),g};return o?r(s):s}var x,S,w,E,C,T,A,N,D,k,I,O,L,P,M,q,R,B,$="sizzle"+1*new Date,F=e.document,U=0,z=0,H=n(),j=n(),_=n(),G=n(),W=function(e,t){return e===t&&(k=!0),0},V={}.hasOwnProperty,K=[],X=K.pop,Z=K.push,J=K.push,Q=K.slice,Y=function(e,t){for(var n=0,r=e.length;n+~]|"+te+")"+te+"*"),le=new RegExp(oe),ce=new RegExp("^"+ne+"$"),fe={ID:new RegExp("^#("+ne+")"),CLASS:new RegExp("^\\.("+ne+")"),TAG:new RegExp("^("+ne+"|[*])"),ATTR:new RegExp("^"+re),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+te+"*(even|odd|(([+-]|)(\\d*)n|)"+te+"*(?:([+-]|)"+te+"*(\\d+)|))"+te+"*\\)|)","i"),bool:new RegExp("^(?:"+ee+")$","i"),needsContext:new RegExp("^"+te+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+te+"*((?:-\\d)?\\d*)"+te+"*\\)|)(?=[^-]|$)","i")},de=/^[^{]+\{\s*\[native \w/,pe=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,he=/[+~]/,ge=new RegExp("\\\\([\\da-f]{1,6}"+te+"?|("+te+")|.)","ig"),ve=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},me=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ye=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},be=function(){I()},xe=p(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{J.apply(K=Q.call(F.childNodes),F.childNodes),K[F.childNodes.length].nodeType}catch(e){J={apply:K.length?function(e,t){Z.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}x=t.support={},E=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},I=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:F;return r!==O&&9===r.nodeType&&r.documentElement?(O=r,L=O.documentElement,P=!E(O),F!==O&&(n=O.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",be,!1):n.attachEvent&&n.attachEvent("onunload",be)),x.attributes=o(function(e){return e.className="i",!e.getAttribute("className")}),x.getElementsByTagName=o(function(e){return e.appendChild(O.createComment("")),!e.getElementsByTagName("*").length}),x.getElementsByClassName=de.test(O.getElementsByClassName),x.getById=o(function(e){return L.appendChild(e).id=$,!O.getElementsByName||!O.getElementsByName($).length}),x.getById?(S.filter.ID=function(e){var t=e.replace(ge,ve);return function(e){return e.getAttribute("id")===t}},S.find.ID=function(e,t){if(void 0!==t.getElementById&&P){var n=t.getElementById(e);return n?[n]:[]}}):(S.filter.ID=function(e){var t=e.replace(ge,ve);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},S.find.ID=function(e,t){if(void 0!==t.getElementById&&P){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[]}}),S.find.TAG=x.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):x.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},S.find.CLASS=x.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&P)return t.getElementsByClassName(e)},q=[],M=[],(x.qsa=de.test(O.querySelectorAll))&&(o(function(e){L.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&M.push("[*^$]="+te+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||M.push("\\["+te+"*(?:value|"+ee+")"),e.querySelectorAll("[id~="+$+"-]").length||M.push("~="),e.querySelectorAll(":checked").length||M.push(":checked"),e.querySelectorAll("a#"+$+"+*").length||M.push(".#.+[+~]")}),o(function(e){e.innerHTML="";var t=O.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&M.push("name"+te+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&M.push(":enabled",":disabled"),L.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&M.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),M.push(",.*:")})),(x.matchesSelector=de.test(R=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&o(function(e){x.disconnectedMatch=R.call(e,"*"),R.call(e,"[s!='']:x"),q.push("!=",oe)}),M=M.length&&new RegExp(M.join("|")),q=q.length&&new RegExp(q.join("|")),t=de.test(L.compareDocumentPosition),B=t||de.test(L.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},W=t?function(e,t){if(e===t)return k=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!x.sortDetached&&t.compareDocumentPosition(e)===n?e===O||e.ownerDocument===F&&B(F,e)?-1:t===O||t.ownerDocument===F&&B(F,t)?1:D?Y(D,e)-Y(D,t):0:4&n?-1:1)}:function(e,t){if(e===t)return k=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],u=[t];if(!o||!i)return e===O?-1:t===O?1:o?-1:i?1:D?Y(D,e)-Y(D,t):0;if(o===i)return s(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?s(a[r],u[r]):a[r]===F?-1:u[r]===F?1:0},O):O},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==O&&I(e),x.matchesSelector&&P&&!G[n+" "]&&(!q||!q.test(n))&&(!M||!M.test(n)))try{var r=R.call(e,n);if(r||x.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){G(n,!0)}return t(n,O,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==O&&I(e),B(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==O&&I(e);var n=S.attrHandle[t.toLowerCase()],r=n&&V.call(S.attrHandle,t.toLowerCase())?n(e,t,!P):void 0;return void 0!==r?r:x.attributes||!P?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(me,ye)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,o=0;if(k=!x.detectDuplicates,D=!x.sortStable&&e.slice(0),e.sort(W),k){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)e.splice(n[r],1)}return D=null,e},w=t.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=w(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=w(t);return n},S=t.selectors={cacheLength:50,createPseudo:r,match:fe,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(ge,ve),e[3]=(e[3]||e[4]||e[5]||"").replace(ge,ve),"~="===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]||t.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]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&le.test(n)&&(t=C(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(ge,ve).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=H[e+" "];return t||(t=new RegExp("(^|"+te+")"+e+"("+te+"|$)"))&&H(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(o){var i=t.attr(o,e);return null==i?"!="===n:!n||(i+="","="===n?i===r:"!="===n?i!==r:"^="===n?r&&0===i.indexOf(r):"*="===n?r&&i.indexOf(r)>-1:"$="===n?r&&i.slice(-r.length)===r:"~="===n?(" "+i.replace(ie," ")+" ").indexOf(r)>-1:"|="===n&&(i===r||i.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,d,p,h,g=i!==s?"nextSibling":"previousSibling",v=t.parentNode,m=a&&t.nodeName.toLowerCase(),y=!u&&!a,b=!1;if(v){if(i){for(;g;){for(d=t;d=d[g];)if(a?d.nodeName.toLowerCase()===m:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?v.firstChild:v.lastChild],s&&y){for(b=(p=(l=(c=(f=(d=v)[$]||(d[$]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===U&&l[1])&&l[2],d=p&&v.childNodes[p];d=++p&&d&&d[g]||(b=p=0)||h.pop();)if(1===d.nodeType&&++b&&d===t){c[e]=[U,p,b];break}}else if(y&&(b=p=(l=(c=(f=(d=t)[$]||(d[$]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===U&&l[1]),!1===b)for(;(d=++p&&d&&d[g]||(b=p=0)||h.pop())&&((a?d.nodeName.toLowerCase()!==m:1!==d.nodeType)||!++b||(y&&((c=(f=d[$]||(d[$]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]=[U,b]),d!==t)););return(b-=o)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,n){var o,i=S.pseudos[e]||S.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return i[$]?i(n):i.length>1?(o=[e,e,"",n],S.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,o=i(e,n),s=o.length;s--;)e[r=Y(e,o[s])]=!(t[r]=o[s])}):function(e){return i(e,0,o)}):i}},pseudos:{not:r(function(e){var t=[],n=[],o=T(e.replace(se,"$1"));return o[$]?r(function(e,t,n,r){for(var i,s=o(e,null,r,[]),a=e.length;a--;)(i=s[a])&&(e[a]=!(t[a]=i))}):function(e,r,i){return t[0]=e,o(t,null,i,n),t[0]=null,!n.pop()}}),has:r(function(e){return"string"==typeof e&&t.compile(e),function(n){return t(e,n).length>0}}),lang:r(function(e){return ce.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(ge,ve).toLowerCase(),function(t){var n;do{if(n=P?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(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===L},focus:function(e){return e===O.activeElement&&(!O.hasFocus||O.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:a(!1),disabled:a(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!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}}},l.prototype=S.filters=S.pseudos,S.setFilters=new l;var Se=function(){var e=function(e){for(var n=[],r=[],o=e.length-1,i=0;i<=o;i++){var s=e[i];t.selectors.relative[s.type]?(n.push(r),n.push(s),r=[]):r.push(s),i===o&&n.push(r)}return n},n={CHILD:100,ID:90,CLASS:80,TAG:70,ATTR:70,PSEUDO:60},r=["nth","first","last","eq","even","odd","lt","gt","not"],o=function(e,t){return n[e.type]-n[t.type]},i=function(e){for(var t=e.length;t--;){var n=e[t];if("PSEUDO"===n.type&&-1!==r.indexOf(n.matches[0]))return!1;if("CHILD"===n.type)return!1}return!0},s=function(t){if(!t||1===t.length)return t;for(var n=[],r=e(t),s=0;s2&&"ID"===(s=i[0]).type&&9===t.nodeType&&P&&S.relative[i[1].type]){if(!(t=(S.find.ID(s.matches[0].replace(ge,ve),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(o=fe.needsContext.test(e)?0:i.length;o--&&(s=i[o],!S.relative[a=s.type]);)if((l=S.find[a])&&(r=l(s.matches[0].replace(ge,ve),he.test(i[0].type)&&u(t.parentNode)||t))){if(i.splice(o,1),!(e=r.length&&d(i)))return J.apply(n,r),n;break}}return(c||T(e,f))(r,t,!P,n,!t||he.test(e)&&u(t.parentNode)||t),n},x.sortStable=$.split("").sort(W).join("")===$,x.detectDuplicates=!!k,I(),x.sortDetached=o(function(e){return 1&e.compareDocumentPosition(O.createElement("fieldset"))}),o(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||i("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),x.attributes&&o(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||i("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),o(function(e){return null==e.getAttribute("disabled")})||i(ee,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e))},a=function(e,t){var n=navigator.vendor&&navigator.vendor.indexOf("Apple")>-1&&navigator.userAgent&&!navigator.userAgent.match("CriOS"),o=!!e._phantom&&!!e.getMatchedCSSRules,i=function(e){return"string"==typeof e?e.replace(/^(["'])([\s\S]*)\1$/,"$2"):e},s=function(e){if("string"!=typeof e||e.indexOf('url("')<0)return e;var t=/url\(\"(.*?)\"\)/g;return e.replace(t,"url($1)")},a=e.getComputedStyle.bind(e),u=o?e.getMatchedCSSRules.bind(e):null,l=function(e,t,r){var l="";if(o&&t)for(var c=u(e,t)||[],f=c.length;f-- >0&&!l;)l=c[f].style.getPropertyValue(r);else{var d=a(e,t);d&&(l=d.getPropertyValue(r),"opacity"===r&&n&&(l=(Math.round(100*parseFloat(l))/100).toString()))}return l=s(l),"content"===r&&(l=i(l)),l},c=function(e,t){this.pseudoElement=t;try{var n=e.indexOf(":");this.propertyName=e.substring(0,n).trim();var o=e.substring(n+1).trim();/^\/.*\/$/.test(o)?(o=o.slice(1,-1),this.regex=r.pseudoArgToRegex(o)):(o=o.replace(/\\([\\()[\]"])/g,"$1"),this.regex=r.createURLRegex(o))}catch(t){r.logError("StylePropertyMatcher: invalid match string "+e)}};c.prototype.matches=function(e){if(!this.regex||!this.propertyName)return!1;var t=l(e,this.pseudoElement,this.propertyName);return t&&this.regex.test(t)};return{extendSizzle:function(e){e.selectors.pseudos["matches-css"]=e.selectors.createPseudo(function(e){var t=new c(e);return function(e){return t.matches(e)}}),e.selectors.pseudos["matches-css-before"]=e.selectors.createPseudo(function(e){var t=new c(e,":before");return function(e){return t.matches(e)}}),e.selectors.pseudos["matches-css-after"]=e.selectors.createPseudo(function(e){var t=new c(e,":after");return function(e){return t.matches(e)}})}}}(e,document),u=function(){function e(){h||(h=!0,s(),a.extendSizzle(o),o.selectors.pseudos.contains=o.selectors.pseudos["has-text"]=o.selectors.pseudos["-abp-contains"]=o.selectors.createPseudo(function(e){if(/^\s*\/.*\/\s*$/.test(e)){e=e.trim().slice(1,-1).replace(/\\([\\"])/g,"$1");var t=void 0;try{t=new RegExp(e)}catch(t){throw new Error("Invalid argument of :contains pseudo class: "+e)}return function(e){return t.test(e.textContent)}}return e=e.replace(/\\([\\()[\]"])/g,"$1"),function(t){return t.textContent.indexOf(e)>-1}}),o.selectors.pseudos.if=o.selectors.pseudos["-abp-has"]=o.selectors.pseudos.has,o.selectors.pseudos["if-not"]=o.selectors.createPseudo(function(e){return"string"==typeof e&&o.compile(e),function(t){return 0===o(e,t).length}}))}function t(e){var t=e.type;if("ID"===t||"CLASS"===t||"ATTR"===t||"TAG"===t||"CHILD"===t)return!0;if("PSEUDO"===t){for(var n=p.length;n--;)if(e.value.indexOf(p[n])>=0)return!1;return!0}return!1}function n(e){var t=e.type;return" "===t||">"===t||"+"===t||"~"===t}function u(t,n,r){e(),void 0===n?(this.selectorText=i.normalize(t),this.tokens=o.tokenize(this.selectorText,!1,{returnUnsorted:!0})):(this.selectorText=t,this.tokens=n),!0===r&&(this.debug=!0)}function l(){return g||this.debug}function c(e,t){this.selectorText=e,this.debug=t}function f(e,t){this.selectorText=e,this.debug=t,o.compile(e)}function d(e,t,n,r,i){f.call(this,e,i),this.simple=t,this.relation=n,this.complex=r,o.compile(r)}var p=[":has",":contains",":has-text",":matches-css",":-abp-has",":-abp-has-text",":if",":if-not"],h=!1;u.prototype={createSelector:function(){var e=this.debug,t=this.tokens,n=this.selectorText;if(1!==t.length)return new f(n,e);var r=(t=t[0]).length,o=this.getSplitPoint();if(void 0===o){try{document.querySelector(n)}catch(t){return new f(n,e)}return new c(n,e)}for(var i="",s=null,a="",u=0;u0&&(s=t[u++].type);u":for(var u=0,l=t;u=0?e.substring(0,n):e}function l(e){for(var t=0;tD?r.logError("ExtendedCss: infinite loop protection for SELECTOR",n):t.parentNode&&(t.parentNode.removeChild(t),C[n]=o+1)}function f(e){if(!e.protectionObserver&&(!x||(e=x(e))))for(var t=e.node,n=0;n-1&&a()<150}}}(),w=[],E=[],C={},T=void 0,A=e.addEventListener,N=void 0,D=50,k={attributes:!0,attributeOldValue:!0,attributeFilter:["style"]},I=new r.AsyncWrapper(g,50),O=I.run.bind(I),L=!1;w=i.parseCss(b),this.dispose=function(){m();for(var e=0;e=0&&r===e.length-n.length},s=function(e,t,n){return e?e.split(t).join(n):e};return function(t){var n=r(t);return n=o(n,e.maskStartUrl)?n.substring(0,e.maskStartUrl.length)+s(n.substring(e.maskStartUrl.length,n.length-1),"|","\\|")+n.substring(n.length-1):o(n,e.maskPipe)?n.substring(0,e.maskPipe.length)+s(n.substring(e.maskPipe.length,n.length-1),"|","\\|")+n.substring(n.length-1):s(n.substring(0,n.length-1),"|","\\|")+n.substring(n.length-1),n=s(n,e.maskAnySymbol,e.regexAnySymbol),n=s(n,e.maskSeparator,e.regexSeparator),o(n,e.maskStartUrl)?n=e.regexStartUrl+n.substring(e.maskStartUrl.length):o(n,e.maskPipe)&&(n=e.regexStartString+n.substring(e.maskPipe.length)),i(n,e.maskPipe)&&(n=n.substring(0,n.length-1)+e.regexEndString),new RegExp(n,"i")}}(),r.createLocation=function(e){var t=document.createElement("a");return t.href=e,""===t.host&&(t.href=t.href),t},r.isSameOrigin=function(e,t,n){var o=r.createLocation(e);return"javascript:"===o.protocol||"about:blank"===o.href||"data:"!==o.protocol&&"file:"!==o.protocol&&(o.hostname===n&&o.port===t.port&&o.protocol===t.protocol)},r.AsyncWrapper=function(){function n(e,t){this.callback=e,this.throttle=t,this.wrappedCallback=this.wrappedCallback.bind(this),this.wrappedAsapCallback&&(this.wrappedAsapCallback=this.wrappedAsapCallback.bind(this))}var o=void 0!==e.requestAnimationFrame&&!/phantom/i.test(navigator.userAgent),i=o?requestAnimationFrame:setTimeout,s=o?cancelAnimationFrame:clearTimeout,a=o?performance:Date;return n.prototype.wrappedCallback=function(e){this.lastRun=t(e)?e:a.now(),this.rAFid=this.timerId=this.asapScheduled=void 0,this.callback()},n.prototype.hasPendingCallback=function(){return t(this.rAFid)||t(this.timerId)},n.prototype.run=function(){if(!this.hasPendingCallback()){if(void 0!==this.lastRun){var e=a.now()-this.lastRun;if(e>>0)+e+++"__"};return t.prototype={set:function(e,t){var n=e[this.name];return n&&n[0]===e?n[1]=t:r.defineProperty(e,this.name,{value:[e,t],writable:!0}),this},get:function(e){var t=void 0;return(t=e[this.name])&&t[0]===e?t[1]:void 0},delete:function(e){var t=e[this.name];if(!t)return!1;var n=t[0]===e;return t[0]=t[1]=void 0,n},has:function(e){var t=e[this.name];return!!t&&t[0]===e}},t}(),r.Set="undefined"!=typeof Set?Set:function(){var e=Date.now()%1e9,n=function(t){if(this.name="__st"+(1e9*Math.random()>>>0)+e+++"__",this.keys=[],t&&t.length)for(var n=t.length;n--;)this.add(t[n])};return n.prototype={add:function(e){if(!t(e[this.name])){var n=this.keys.push(e)-1;r.defineProperty(e,this.name,{value:n,writable:!0})}},delete:function(e){if(t(e[this.name])){var n=e[this.name];delete this.keys[n],e[this.name]=void 0}},has:function(e){return t(e[this.name])},clear:function(){this.keys.forEach(function(e){e[this.name]=void 0}),this.keys.length=0},forEach:function(e){var t=this;this.keys.forEach(function(n){e(n,n,t)})}},r.defineProperty(n.prototype,"size",{get:function(){return this.keys.reduce(function(e){return e+1},0)}}),n}(),r.matchesPropertyName=function(){for(var e=["matches","matchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector"],t=0;t<6;t++)if(Element.prototype.hasOwnProperty(e[t]))return e[t]}(),r.Stats=function(){this.array=[],this.length=0;var e={value:0,writable:!0};Object.defineProperty(this,"sum",e),Object.defineProperty(this,"squaredSum",e)},r.Stats.prototype.push=function(e){this.array.push(e),this.length++,this.sum+=e,this.squaredSum+=e*e,this.mean=this.sum/this.length,this.stddev=Math.sqrt(this.squaredSum/this.length-Math.pow(this.mean,2))},r.logError="undefined"!=typeof console&&console.error&&Function.prototype.bind&&console.error.bind?console.error.bind(e.console):console.error,r.logInfo="undefined"!=typeof console&&console.info&&Function.prototype.bind&&console.info.bind?console.info.bind(e.console):console.info,r.getNodeSelector=function(e){if(!(e instanceof Element))throw new Error("Function received argument with wrong type");for(var t=[];e.nodeType===Node.ELEMENT_NODE;){var n=e.nodeName.toLowerCase();if(e.id&&"string"==typeof e.id){n+="#"+e.id,t.unshift(n);break}for(var r=e,o=1;r.previousSibling;)(r=r.previousSibling).nodeType===Node.ELEMENT_NODE&&r.nodeName.toLowerCase()===n&&o++;1!==o&&(n+=":nth-of-type("+o+")"),t.unshift(n),e=e.parentNode}return t.join(" > ")};var o,i=function(){function e(e){this.cssText=e}var t=/\[-(?:ext|abp)-([a-z-_]+)=(["'])((?:(?=(\\?))\4.)*?)\2\]/g,n=function(e,t,n,r){var o=new RegExp("([^\\\\]|^)\\\\"+n,"g");return r=r.replace(o,"$1"+n),":"+t+"("+r+")"},i=/\:(matches-css(?:-after|-before)?)\(([a-z-\s]*\:\s*\/(?:\\.|[^\/])*?\/\s*)\)/g,a=/:(?:-abp-)?(contains|has-text)\((\s*\/(?:\\.|[^\/])*?\/\s*)\)/g,l=function(e,t,n){return":"+t+'("'+n.replace(/["\\]/g,"\\$&")+'")'},c=function(e){return e=e.replace(t,n),e=e.replace(i,l),e=e.replace(a,l)},f=/[;}]/g,d=/[;:}]/g,p=/\S/g;return e.prototype={error:function(e){throw new Error("CssParser: parse error at position "+(this.posOffset+e))},validateSelectors:function(e){for(var t=e.length;t--;)for(var n=e[t].groups,r=n.length;r--;){var i=n[r],s=i[i.length-1];if(o.selectors.relative[s.type])return!1}return!0},parseCss:function(){this.posOffset=0,this.cssText||this.error(0);for(var e=[];this.cssText;){var t=o.tokenize(this.cssText,!1,{tolerant:!0,returnUnsorted:!0}),n=t.selectors;this.nextIndex=t.nextIndex,123===this.cssText.charCodeAt(this.nextIndex)&&this.validateSelectors(n)||this.error(this.nextIndex),this.nextIndex++;var i=this.parseNextStyle(),s=!1,a=i.debug;void 0!==a&&("global"===a&&u.enableGlobalDebugging(),s=!0,delete i.debug);for(var l=0,c=n.length;lS.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[$]=!0,e}function o(e){var t=O.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function i(e,t){for(var n=e.split("|"),r=n.length;r--;)S.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(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&&xe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function u(e){return e&&void 0!==e.getElementsByTagName&&e}function l(){}function c(e){for(var t=e.length;t--&&" "===e[t].type;)e.length=t}function f(e){c(e[e.length-1]);for(var t=Se(e),n=[],r=0;r1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function g(e,n,r){for(var o=0,i=n.length;o-1&&(r[l]=!(s[l]=f))}}else b=v(b===s?b.splice(h,b.length):b),i?i(null,s,b,u):J.apply(s,b)})}function y(e){for(var t,n,r,o=e.length,i=S.relative[e[0].type],s=i||S.relative[" "],a=i?1:0,u=p(function(e){return e===t},s,!0),l=p(function(e){return Y(t,e)>-1},s,!0),c=[function(e,n,r){var o=!i&&(r||n!==N)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,o}];a1&&h(c),a>1&&d(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(se,"$1"),n,a0,i=e.length>0,s=function(r,s,a,u,l){var c,f,d,p=0,h="0",g=r&&[],m=[],y=N,b=r||i&&S.find.TAG("*",l),x=U+=null==y?1:Math.random()||.1,w=b.length;for(l&&(N=s===O||s||l);h!==w&&null!=(c=b[h]);h++){if(i&&c){for(f=0,s||c.ownerDocument===O||(I(c),a=!P);d=e[f++];)if(d(c,s||O,a)){u.push(c);break}l&&(U=x)}o&&((c=!d&&c)&&p--,r&&g.push(c))}if(p+=h,o&&h!==p){for(f=0;d=n[f++];)d(g,m,s,a);if(r){if(p>0)for(;h--;)g[h]||m[h]||(m[h]=X.call(u));m=v(m)}J.apply(u,m),l&&!r&&m.length>0&&p+n.length>1&&t.uniqueSort(u)}return l&&(U=x,N=y),g};return o?r(s):s}var x,S,w,E,C,T,A,N,D,k,I,O,L,P,M,q,R,B,$="sizzle"+1*new Date,F=e.document,U=0,z=0,H=n(),j=n(),_=n(),G=n(),W=function(e,t){return e===t&&(k=!0),0},V={}.hasOwnProperty,K=[],X=K.pop,Z=K.push,J=K.push,Q=K.slice,Y=function(e,t){for(var n=0,r=e.length;n+~]|"+te+")"+te+"*"),le=new RegExp(oe),ce=new RegExp("^"+ne+"$"),fe={ID:new RegExp("^#("+ne+")"),CLASS:new RegExp("^\\.("+ne+")"),TAG:new RegExp("^("+ne+"|[*])"),ATTR:new RegExp("^"+re),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+te+"*(even|odd|(([+-]|)(\\d*)n|)"+te+"*(?:([+-]|)"+te+"*(\\d+)|))"+te+"*\\)|)","i"),bool:new RegExp("^(?:"+ee+")$","i"),needsContext:new RegExp("^"+te+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+te+"*((?:-\\d)?\\d*)"+te+"*\\)|)(?=[^-]|$)","i")},de=/^[^{]+\{\s*\[native \w/,pe=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,he=/[+~]/,ge=new RegExp("\\\\([\\da-f]{1,6}"+te+"?|("+te+")|.)","ig"),ve=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},me=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ye=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},be=function(){I()},xe=p(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{J.apply(K=Q.call(F.childNodes),F.childNodes),K[F.childNodes.length].nodeType}catch(e){J={apply:K.length?function(e,t){Z.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}x=t.support={},E=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},I=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:F;return r!==O&&9===r.nodeType&&r.documentElement?(O=r,L=O.documentElement,P=!E(O),F!==O&&(n=O.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",be,!1):n.attachEvent&&n.attachEvent("onunload",be)),x.attributes=o(function(e){return e.className="i",!e.getAttribute("className")}),x.getElementsByTagName=o(function(e){return e.appendChild(O.createComment("")),!e.getElementsByTagName("*").length}),x.getElementsByClassName=de.test(O.getElementsByClassName),x.getById=o(function(e){return L.appendChild(e).id=$,!O.getElementsByName||!O.getElementsByName($).length}),x.getById?(S.filter.ID=function(e){var t=e.replace(ge,ve);return function(e){return e.getAttribute("id")===t}},S.find.ID=function(e,t){if(void 0!==t.getElementById&&P){var n=t.getElementById(e);return n?[n]:[]}}):(S.filter.ID=function(e){var t=e.replace(ge,ve);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},S.find.ID=function(e,t){if(void 0!==t.getElementById&&P){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[]}}),S.find.TAG=x.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):x.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},S.find.CLASS=x.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&P)return t.getElementsByClassName(e)},q=[],M=[],(x.qsa=de.test(O.querySelectorAll))&&(o(function(e){L.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&M.push("[*^$]="+te+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||M.push("\\["+te+"*(?:value|"+ee+")"),e.querySelectorAll("[id~="+$+"-]").length||M.push("~="),e.querySelectorAll(":checked").length||M.push(":checked"),e.querySelectorAll("a#"+$+"+*").length||M.push(".#.+[+~]")}),o(function(e){e.innerHTML="";var t=O.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&M.push("name"+te+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&M.push(":enabled",":disabled"),L.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&M.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),M.push(",.*:")})),(x.matchesSelector=de.test(R=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&o(function(e){x.disconnectedMatch=R.call(e,"*"),R.call(e,"[s!='']:x"),q.push("!=",oe)}),M=M.length&&new RegExp(M.join("|")),q=q.length&&new RegExp(q.join("|")),t=de.test(L.compareDocumentPosition),B=t||de.test(L.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},W=t?function(e,t){if(e===t)return k=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!x.sortDetached&&t.compareDocumentPosition(e)===n?e===O||e.ownerDocument===F&&B(F,e)?-1:t===O||t.ownerDocument===F&&B(F,t)?1:D?Y(D,e)-Y(D,t):0:4&n?-1:1)}:function(e,t){if(e===t)return k=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],u=[t];if(!o||!i)return e===O?-1:t===O?1:o?-1:i?1:D?Y(D,e)-Y(D,t):0;if(o===i)return s(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?s(a[r],u[r]):a[r]===F?-1:u[r]===F?1:0},O):O},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==O&&I(e),x.matchesSelector&&P&&!G[n+" "]&&(!q||!q.test(n))&&(!M||!M.test(n)))try{var r=R.call(e,n);if(r||x.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){G(n,!0)}return t(n,O,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==O&&I(e),B(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==O&&I(e);var n=S.attrHandle[t.toLowerCase()],r=n&&V.call(S.attrHandle,t.toLowerCase())?n(e,t,!P):void 0;return void 0!==r?r:x.attributes||!P?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(me,ye)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,o=0;if(k=!x.detectDuplicates,D=!x.sortStable&&e.slice(0),e.sort(W),k){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)e.splice(n[r],1)}return D=null,e},w=t.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=w(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=w(t);return n},S=t.selectors={cacheLength:50,createPseudo:r,match:fe,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(ge,ve),e[3]=(e[3]||e[4]||e[5]||"").replace(ge,ve),"~="===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]||t.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]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&le.test(n)&&(t=C(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(ge,ve).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=H[e+" "];return t||(t=new RegExp("(^|"+te+")"+e+"("+te+"|$)"))&&H(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(o){var i=t.attr(o,e);return null==i?"!="===n:!n||(i+="","="===n?i===r:"!="===n?i!==r:"^="===n?r&&0===i.indexOf(r):"*="===n?r&&i.indexOf(r)>-1:"$="===n?r&&i.slice(-r.length)===r:"~="===n?(" "+i.replace(ie," ")+" ").indexOf(r)>-1:"|="===n&&(i===r||i.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,d,p,h,g=i!==s?"nextSibling":"previousSibling",v=t.parentNode,m=a&&t.nodeName.toLowerCase(),y=!u&&!a,b=!1;if(v){if(i){for(;g;){for(d=t;d=d[g];)if(a?d.nodeName.toLowerCase()===m:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?v.firstChild:v.lastChild],s&&y){for(b=(p=(l=(c=(f=(d=v)[$]||(d[$]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===U&&l[1])&&l[2],d=p&&v.childNodes[p];d=++p&&d&&d[g]||(b=p=0)||h.pop();)if(1===d.nodeType&&++b&&d===t){c[e]=[U,p,b];break}}else if(y&&(b=p=(l=(c=(f=(d=t)[$]||(d[$]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===U&&l[1]),!1===b)for(;(d=++p&&d&&d[g]||(b=p=0)||h.pop())&&((a?d.nodeName.toLowerCase()!==m:1!==d.nodeType)||!++b||(y&&((c=(f=d[$]||(d[$]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]=[U,b]),d!==t)););return(b-=o)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,n){var o,i=S.pseudos[e]||S.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return i[$]?i(n):i.length>1?(o=[e,e,"",n],S.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,o=i(e,n),s=o.length;s--;)e[r=Y(e,o[s])]=!(t[r]=o[s])}):function(e){return i(e,0,o)}):i}},pseudos:{not:r(function(e){var t=[],n=[],o=T(e.replace(se,"$1"));return o[$]?r(function(e,t,n,r){for(var i,s=o(e,null,r,[]),a=e.length;a--;)(i=s[a])&&(e[a]=!(t[a]=i))}):function(e,r,i){return t[0]=e,o(t,null,i,n),t[0]=null,!n.pop()}}),has:r(function(e){return"string"==typeof e&&t.compile(e),function(n){return t(e,n).length>0}}),lang:r(function(e){return ce.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(ge,ve).toLowerCase(),function(t){var n;do{if(n=P?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(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===L},focus:function(e){return e===O.activeElement&&(!O.hasFocus||O.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:a(!1),disabled:a(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!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}}},l.prototype=S.filters=S.pseudos,S.setFilters=new l;var Se=function(){var e=function(e){for(var n=[],r=[],o=e.length-1,i=0;i<=o;i++){var s=e[i];t.selectors.relative[s.type]?(n.push(r),n.push(s),r=[]):r.push(s),i===o&&n.push(r)}return n},n={CHILD:100,ID:90,CLASS:80,TAG:70,ATTR:70,PSEUDO:60},r=["nth","first","last","eq","even","odd","lt","gt","not"],o=function(e,t){return n[e.type]-n[t.type]},i=function(e){for(var t=e.length;t--;){var n=e[t];if("PSEUDO"===n.type&&-1!==r.indexOf(n.matches[0]))return!1;if("CHILD"===n.type)return!1}return!0},s=function(t){if(!t||1===t.length)return t;for(var n=[],r=e(t),s=0;s2&&"ID"===(s=i[0]).type&&9===t.nodeType&&P&&S.relative[i[1].type]){if(!(t=(S.find.ID(s.matches[0].replace(ge,ve),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(o=fe.needsContext.test(e)?0:i.length;o--&&(s=i[o],!S.relative[a=s.type]);)if((l=S.find[a])&&(r=l(s.matches[0].replace(ge,ve),he.test(i[0].type)&&u(t.parentNode)||t))){if(i.splice(o,1),!(e=r.length&&d(i)))return J.apply(n,r),n;break}}return(c||T(e,f))(r,t,!P,n,!t||he.test(e)&&u(t.parentNode)||t),n},x.sortStable=$.split("").sort(W).join("")===$,x.detectDuplicates=!!k,I(),x.sortDetached=o(function(e){return 1&e.compareDocumentPosition(O.createElement("fieldset"))}),o(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||i("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),x.attributes&&o(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||i("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),o(function(e){return null==e.getAttribute("disabled")})||i(ee,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e))},a=function(e,t){var n=navigator.vendor&&navigator.vendor.indexOf("Apple")>-1&&navigator.userAgent&&!navigator.userAgent.match("CriOS"),o=!!e._phantom&&!!e.getMatchedCSSRules,i=function(e){return"string"==typeof e?e.replace(/^(["'])([\s\S]*)\1$/,"$2"):e},s=function(e){if("string"!=typeof e||e.indexOf('url("')<0)return e;var t=/url\(\"(.*?)\"\)/g;return e.replace(t,"url($1)")},a=e.getComputedStyle.bind(e),u=o?e.getMatchedCSSRules.bind(e):null,l=function(e,t,r){var l="";if(o&&t)for(var c=u(e,t)||[],f=c.length;f-- >0&&!l;)l=c[f].style.getPropertyValue(r);else{var d=a(e,t);d&&(l=d.getPropertyValue(r),"opacity"===r&&n&&(l=(Math.round(100*parseFloat(l))/100).toString()))}return l=s(l),"content"===r&&(l=i(l)),l},c=function(e,t){this.pseudoElement=t;try{var n=e.indexOf(":");this.propertyName=e.substring(0,n).trim();var o=e.substring(n+1).trim();/^\/.*\/$/.test(o)?(o=o.slice(1,-1),this.regex=r.pseudoArgToRegex(o)):(o=o.replace(/\\([\\()[\]"])/g,"$1"),this.regex=r.createURLRegex(o))}catch(t){r.logError("StylePropertyMatcher: invalid match string "+e)}};c.prototype.matches=function(e){if(!this.regex||!this.propertyName)return!1;var t=l(e,this.pseudoElement,this.propertyName);return t&&this.regex.test(t)};return{extendSizzle:function(e){e.selectors.pseudos["matches-css"]=e.selectors.createPseudo(function(e){var t=new c(e);return function(e){return t.matches(e)}}),e.selectors.pseudos["matches-css-before"]=e.selectors.createPseudo(function(e){var t=new c(e,":before");return function(e){return t.matches(e)}}),e.selectors.pseudos["matches-css-after"]=e.selectors.createPseudo(function(e){var t=new c(e,":after");return function(e){return t.matches(e)}})}}}(e,document),u=function(){function e(){h||(h=!0,s(),a.extendSizzle(o),o.selectors.pseudos.contains=o.selectors.pseudos["has-text"]=o.selectors.pseudos["-abp-contains"]=o.selectors.createPseudo(function(e){if(/^\s*\/.*\/\s*$/.test(e)){e=e.trim().slice(1,-1).replace(/\\([\\"])/g,"$1");var t=void 0;try{t=new RegExp(e)}catch(t){throw new Error("Invalid argument of :contains pseudo class: "+e)}return function(e){return t.test(e.textContent)}}return e=e.replace(/\\([\\()[\]"])/g,"$1"),function(t){return t.textContent.indexOf(e)>-1}}),o.selectors.pseudos.if=o.selectors.pseudos["-abp-has"]=o.selectors.pseudos.has,o.selectors.pseudos["if-not"]=o.selectors.createPseudo(function(e){return"string"==typeof e&&o.compile(e),function(t){return 0===o(e,t).length}}))}function t(e){var t=e.type;if("ID"===t||"CLASS"===t||"ATTR"===t||"TAG"===t||"CHILD"===t)return!0;if("PSEUDO"===t){for(var n=p.length;n--;)if(e.value.indexOf(p[n])>=0)return!1;return!0}return!1}function n(e){var t=e.type;return" "===t||">"===t||"+"===t||"~"===t}function u(t,n,r){e(),void 0===n?(this.selectorText=i.normalize(t),this.tokens=o.tokenize(this.selectorText,!1,{returnUnsorted:!0})):(this.selectorText=t,this.tokens=n),!0===r&&(this.debug=!0)}function l(){return g||this.debug}function c(e,t){this.selectorText=e,this.debug=t}function f(e,t){this.selectorText=e,this.debug=t,o.compile(e)}function d(e,t,n,r,i){f.call(this,e,i),this.simple=t,this.relation=n,this.complex=r,o.compile(r)}var p=[":has",":contains",":has-text",":matches-css",":-abp-has",":-abp-has-text",":if",":if-not"],h=!1;u.prototype={createSelector:function(){var e=this.debug,t=this.tokens,n=this.selectorText;if(1!==t.length)return new f(n,e);var r=(t=t[0]).length,o=this.getSplitPoint();if(void 0===o){try{document.querySelector(n)}catch(t){return new f(n,e)}return new c(n,e)}for(var i="",s=null,a="",u=0;u0&&(s=t[u++].type);u":for(var u=0,l=t;u