diff --git a/atoms-notes.md b/atoms-notes.md index a1c10e1..cf88c98 100644 --- a/atoms-notes.md +++ b/atoms-notes.md @@ -9,3 +9,4 @@ get deleted on build). - https://github.com/SeleniumHQ/selenium/pull/12557 When these PRs are merged and our Selenium version updated to match, we can delete this note! + diff --git a/atoms/clear.js b/atoms/clear.js index 77b2520..8849bb8 100755 --- a/atoms/clear.js +++ b/atoms/clear.js @@ -7,8 +7,8 @@ function la(a,b){a=a.split(".");var c=ia;a[0]in c||"undefined"==typeof c.execScr function ma(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function na(a){var b=ma(a);return"array"==b||"object"==b&&"number"==typeof a.length}function oa(a){return"function"==ma(a)}function pa(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}var qa="closure_uid_"+(1E9*Math.random()>>>0),ra=0;function sa(a,b,c){return a.call.apply(a.bind,arguments)} function ta(a,b,c){if(!a)throw Error();if(2=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};var Ga=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]}; -function Ha(a,b){var c=0;a=Ga(String(a)).split(".");b=Ga(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&eb?1:0};var Ja;a:{var Ka=ia.navigator;if(Ka){var La=Ka.userAgent;if(La){Ja=La;break a}}Ja=""}function q(a){return-1!=Ja.indexOf(a)};function Ma(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function Na(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function Oa(a,b){return null!==a&&b in a}function Pa(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};function Qa(){return q("Firefox")||q("FxiOS")}function Ra(){return(q("Chrome")||q("CriOS"))&&!q("Edge")};function Sa(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};function Ta(){return q("iPhone")&&!q("iPod")&&!q("iPad")};function Ua(a){var b=Va;return Object.prototype.hasOwnProperty.call(b,534)?b[534]:b[534]=a(534)};var Wa=q("Macintosh"),Xa=q("Windows"),Ya,Za="",$a=/WebKit\/(\S+)/.exec(Ja);$a&&(Za=$a?$a[1]:"");Ya=Za;var Va={};function ab(){return Ua(function(){return 0<=Ha(Ya,534)})};function bb(a){this.b=a;this.a=0}function cb(a){a=a.match(db);for(var b=0;b]=|\s+|./g,eb=/^\s/;function r(a,b){return a.b[a.a+(b||0)]}bb.prototype.next=function(){return this.b[this.a++]};function fb(a){return a.b.length<=a.a};function gb(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}gb.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};gb.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};gb.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};gb.prototype.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};function hb(a,b){this.width=a;this.height=b}hb.prototype.aspectRatio=function(){return this.width/this.height};hb.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};hb.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};hb.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; -hb.prototype.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};function ib(a){return a?a.parentWindow||a.defaultView:window}function jb(a){for(;a&&1!=a.nodeType;)a=a.previousSibling;return a}function kb(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a} -function lb(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=1==a.nodeType,d=1==b.nodeType;if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,f=b.parentNode;return e==f?mb(a,b):!c&&kb(e,b)?-1*nb(a,b):!d&&kb(f,a)?nb(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=v(a);c=d.createRange();c.selectNode(a);c.collapse(!0);a=d.createRange();a.selectNode(b); -a.collapse(!0);return c.compareBoundaryPoints(ia.Range.START_TO_END,a)}function nb(a,b){var c=a.parentNode;if(c==b)return-1;for(;b.parentNode!=c;)b=b.parentNode;return mb(b,a)}function mb(a,b){for(;b=b.previousSibling;)if(b==a)return-1;return 1}function v(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function ob(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null} -function pb(a){try{var b=a&&a.activeElement;return b&&b.nodeName?b:null}catch(c){return null}}function qb(a){this.a=a||ia.document||document}qb.prototype.getElementsByTagName=function(a,b){return(b||this.a).getElementsByTagName(String(a))};function w(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:b,b=void 0==b||null==b?"":b);if("string"!=typeof b)if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;c=0;var d=[];for(b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return b} -function rb(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function sb(a,b,c,d,e){return tb.call(null,a,b,ka(c)?c:null,ka(d)?d:null,e||new x)} -function tb(a,b,c,d,e){b.getElementsByName&&d&&"name"==c?(b=b.getElementsByName(d),m(b,function(f){a.a(f)&&e.add(f)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),m(b,function(f){f.className==d&&a.a(f)&&e.add(f)})):a instanceof z?ub(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.f()),m(b,function(f){rb(f,c,d)&&e.add(f)}));return e}function ub(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)rb(b,c,d)&&a.a(b)&&e.add(b),ub(a,b,c,d,e)};function x(){this.b=this.a=null;this.o=0}function vb(a){this.b=a;this.next=this.a=null}function wb(a,b){if(!a.a)return b;if(!b.a)return a;var c=a.a;b=b.a;for(var d=null,e,f=0;c&&b;)c.b==b.b?(e=c,c=c.next,b=b.next):0",4,2,function(a,b,c){return Hb(function(d,e){return d>e},a,b,c)});G("<=",4,2,function(a,b,c){return Hb(function(d,e){return d<=e},a,b,c)});G(">=",4,2,function(a,b,c){return Hb(function(d,e){return d>=e},a,b,c)});var Gb=G("=",3,2,function(a,b,c){return Hb(function(d,e){return d==e},a,b,c,!0)});G("!=",3,2,function(a,b,c){return Hb(function(d,e){return d!=e},a,b,c,!0)});G("and",2,2,function(a,b,c){return Eb(a,c)&&Eb(b,c)});G("or",1,2,function(a,b,c){return Eb(a,c)||Eb(b,c)});function Kb(a,b){if(b.a.length&&4!=a.l)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");A.call(this,a.l);this.c=a;this.j=b;this.i=a.i;this.b=a.b}h(Kb,A);Kb.prototype.a=function(a){a=this.c.a(a);return Lb(this.j,a)};Kb.prototype.toString=function(){var a="Filter:"+D(this.c);return a+=D(this.j)};function Mb(a,b){if(b.lengtha.D)throw Error("Function "+a.m+" expects at most "+a.D+" arguments, "+b.length+" given");a.N&&m(b,function(c,d){if(4!=c.l)throw Error("Argument "+d+" to function "+a.m+" is not of type Nodeset: "+c);});A.call(this,a.l);this.B=a;this.c=b;Cb(this,a.i||Ca(b,function(c){return c.i}));Db(this,a.M&&!b.length||a.L&&!!b.length||Ca(b,function(c){return c.b}))} -h(Mb,A);Mb.prototype.a=function(a){return this.B.s.apply(null,Ea(a,this.c))};Mb.prototype.toString=function(){var a="Function: "+this.B;if(this.c.length){var b=Ba(this.c,function(c,d){return c+D(d)},"Arguments:");a+=D(b)}return a};function Nb(a,b,c,d,e,f,g,k){this.m=a;this.l=b;this.i=c;this.M=d;this.L=!1;this.s=e;this.I=f;this.D=ja(g)?g:f;this.N=!!k}Nb.prototype.toString=function(){return this.m};var Ob={}; -function H(a,b,c,d,e,f,g,k){if(Ob.hasOwnProperty(a))throw Error("Function already created: "+a+".");Ob[a]=new Nb(a,b,c,d,e,f,g,k)}H("boolean",2,!1,!1,function(a,b){return Eb(b,a)},1);H("ceiling",1,!1,!1,function(a,b){return Math.ceil(E(b,a))},1);H("concat",3,!1,!1,function(a,b){return Ba(Fa(arguments,1),function(c,d){return c+F(d,a)},"")},2,null);H("contains",2,!1,!1,function(a,b,c){b=F(b,a);a=F(c,a);return-1!=b.indexOf(a)},2);H("count",1,!1,!1,function(a,b){return b.a(a).o},1,1,!0); -H("false",2,!1,!1,function(){return!1},0);H("floor",1,!1,!1,function(a,b){return Math.floor(E(b,a))},1);H("id",4,!1,!1,function(a,b){var c=a.a,d=9==c.nodeType?c:c.ownerDocument;a=F(b,a).split(/\s+/);var e=[];m(a,function(g){g=d.getElementById(g);!g||0<=za(e,g)||e.push(g)});e.sort(lb);var f=new x;m(e,function(g){f.add(g)});return f},1);H("lang",2,!1,!1,function(){return!1},1);H("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.f},0); -H("local-name",3,!1,!0,function(a,b){return(a=b?yb(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);H("name",3,!1,!0,function(a,b){return(a=b?yb(b.a(a)):a.a)?a.nodeName.toLowerCase():""},0,1,!0);H("namespace-uri",3,!0,!1,function(){return""},0,1,!0);H("normalize-space",3,!1,!0,function(a,b){return(b?F(b,a):w(a.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);H("not",2,!1,!1,function(a,b){return!Eb(b,a)},1);H("number",1,!1,!0,function(a,b){return b?E(b,a):+w(a.a)},0,1); -H("position",1,!0,!1,function(a){return a.b},0);H("round",1,!1,!1,function(a,b){return Math.round(E(b,a))},1);H("starts-with",2,!1,!1,function(a,b,c){b=F(b,a);a=F(c,a);return 0==b.lastIndexOf(a,0)},2);H("string",3,!1,!0,function(a,b){return b?F(b,a):w(a.a)},0,1);H("string-length",1,!1,!0,function(a,b){return(b?F(b,a):w(a.a)).length},0,1); -H("substring",3,!1,!1,function(a,b,c,d){c=E(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?E(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=F(b,a);return Infinity==d?a.substring(e):a.substring(e,c+Math.round(d))},2,3);H("substring-after",3,!1,!1,function(a,b,c){b=F(b,a);a=F(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2); -H("substring-before",3,!1,!1,function(a,b,c){b=F(b,a);a=F(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);H("sum",1,!1,!1,function(a,b){a=Ab(b.a(a));b=0;for(var c=a.next();c;c=a.next())b+=+w(c);return b},1,1,!0);H("translate",3,!1,!1,function(a,b,c,d){b=F(b,a);c=F(c,a);var e=F(d,a);a={};for(d=0;da.length)throw Error("Unclosed literal string");return new Qb(a)} -function qc(a){var b=[];if(Yb(r(a.a))){var c=a.a.next();var d=r(a.a);if("/"==c&&(fb(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new Vb;d=new Vb;J(a,"Missing next location step.");c=rc(a,c);b.push(c)}else{a:{c=r(a.a);d=c.charAt(0);switch(d){case "$":throw Error("Variable reference not allowed in HTML XPath");case "(":a.a.next();c=lc(a);J(a,'unclosed "("');nc(a,")");break;case '"':case "'":c=pc(a);break;default:if(isNaN(+c))if(!Pb(c)&&/(?![0-9])[\w]/.test(d)&&"("==r(a.a, -1)){c=a.a.next();c=Ob[c]||null;a.a.next();for(d=[];")"!=r(a.a);){J(a,"Missing function argument list.");d.push(lc(a));if(","!=r(a.a))break;a.a.next()}J(a,"Unclosed function argument list.");oc(a);c=new Mb(c,d)}else{c=null;break a}else c=new Sb(+a.a.next())}"["==r(a.a)&&(d=new ac(sc(a)),c=new Kb(c,d))}if(c)if(Yb(r(a.a)))d=c;else return c;else c=rc(a,"/"),d=new Xb,b.push(c)}for(;Yb(r(a.a));)c=a.a.next(),J(a,"Missing next location step."),c=rc(a,c),b.push(c);return new Tb(d,b)} -function rc(a,b){if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==r(a.a)){var c=new bc(hc,new z("node"));a.a.next();return c}if(".."==r(a.a))return c=new bc(gc,new z("node")),a.a.next(),c;if("@"==r(a.a)){var d=Ub;a.a.next();J(a,"Missing attribute name")}else if("::"==r(a.a,1)){if(!/(?![0-9])[\w]/.test(r(a.a).charAt(0)))throw Error("Bad token: "+a.a.next());var e=a.a.next();d=fc[e]||null;if(!d)throw Error("No axis with name: "+e);a.a.next();J(a,"Missing node name")}else d=cc; -e=r(a.a);if(/(?![0-9])[\w\*]/.test(e.charAt(0)))if("("==r(a.a,1)){if(!Pb(e))throw Error("Invalid node type: "+e);e=a.a.next();if(!Pb(e))throw Error("Invalid type name: "+e);nc(a,"(");J(a,"Bad nodetype");var f=r(a.a).charAt(0),g=null;if('"'==f||"'"==f)g=pc(a);J(a,"Bad nodetype");oc(a);e=new z(e,g)}else if(e=a.a.next(),f=e.indexOf(":"),-1==f)e=new Rb(e);else{g=e.substring(0,f);if("*"==g)var k="*";else if(k=a.b(g),!k)throw Error("Namespace prefix not declared: "+g);e=e.substr(f+1);e=new Rb(e,k)}else throw Error("Bad token: "+ -a.a.next());a=new ac(sc(a),d.v);return c||new bc(d,e,a,"//"==b)}function sc(a){for(var b=[];"["==r(a.a);){a.a.next();J(a,"Missing predicate expression.");var c=lc(a);b.push(c);J(a,"Unclosed predicate expression.");nc(a,"]")}return b}function mc(a){if("-"==r(a.a))return a.a.next(),new ic(mc(a));var b=qc(a);if("|"!=r(a.a))a=b;else{for(b=[b];"|"==a.a.next();)J(a,"Missing next union location path."),b.push(qc(a));a.a.a--;a=new jc(b)}return a};function tc(a){switch(a.nodeType){case 1:return va(uc,a);case 9:return tc(a.documentElement);case 11:case 10:case 6:case 12:return vc;default:return a.parentNode?tc(a.parentNode):vc}}function vc(){return null}function uc(a,b){if(a.prefix==b)return a.namespaceURI||"http://www.w3.org/1999/xhtml";var c=a.getAttributeNode("xmlns:"+b);return c&&c.specified?c.value||null:a.parentNode&&9!=a.parentNode.nodeType?uc(a.parentNode,b):null};function wc(a,b){if(!a.length)throw Error("Empty XPath expression.");a=cb(a);if(fb(a))throw Error("Invalid XPath expression.");b?oa(b)||(b=ua(b.lookupNamespaceURI,b)):b=function(){return null};var c=lc(new kc(a,b));if(!fb(a))throw Error("Bad token: "+a.next());this.evaluate=function(d,e){d=c.a(new ya(d));return new K(d,e)}} -function K(a,b){if(0==b)if(a instanceof x)b=4;else if("string"==typeof a)b=2;else if("number"==typeof a)b=1;else if("boolean"==typeof a)b=3;else throw Error("Unexpected evaluation result.");if(2!=b&&1!=b&&3!=b&&!(a instanceof x))throw Error("value could not be converted to the specified type");this.resultType=b;switch(b){case 2:this.stringValue=a instanceof x?zb(a):""+a;break;case 1:this.numberValue=a instanceof x?+zb(a):+a;break;case 3:this.booleanValue=a instanceof x?0=d.length?null:d[f++]};this.snapshotItem=function(g){if(6!=b&&7!=b)throw Error("snapshotItem called with wrong result type");return g>=d.length||0>g?null:d[g]}}K.ANY_TYPE=0; -K.NUMBER_TYPE=1;K.STRING_TYPE=2;K.BOOLEAN_TYPE=3;K.UNORDERED_NODE_ITERATOR_TYPE=4;K.ORDERED_NODE_ITERATOR_TYPE=5;K.UNORDERED_NODE_SNAPSHOT_TYPE=6;K.ORDERED_NODE_SNAPSHOT_TYPE=7;K.ANY_UNORDERED_NODE_TYPE=8;K.FIRST_ORDERED_NODE_TYPE=9;function xc(a){this.lookupNamespaceURI=tc(a)} -function yc(a,b){a=a||ia;var c=a.Document&&a.Document.prototype||a.document;if(!c.evaluate||b)a.XPathResult=K,c.evaluate=function(d,e,f,g){return(new wc(d,f)).evaluate(e,g)},c.createExpression=function(d,e){return new wc(d,e)},c.createNSResolver=function(d){return new xc(d)}}la("wgxpath.install",yc);la("wgxpath.install",yc);var zc=window;var Ac={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400", +function Ha(a,b){var c=0;a=Ga(String(a)).split(".");b=Ga(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&eb?1:0};var Ja;a:{var Ka=ia.navigator;if(Ka){var La=Ka.userAgent;if(La){Ja=La;break a}}Ja=""}function p(a){return-1!=Ja.indexOf(a)};function Ma(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function Na(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function Oa(a,b){return null!==a&&b in a}function Pa(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};function Qa(){return p("Firefox")||p("FxiOS")}function Ra(){return(p("Chrome")||p("CriOS"))&&!p("Edge")};function Sa(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};function Ta(){return p("iPhone")&&!p("iPod")&&!p("iPad")};function Ua(a){var b=Va;return Object.prototype.hasOwnProperty.call(b,534)?b[534]:b[534]=a(534)};var Wa=p("Macintosh"),Xa=p("Windows"),Ya,Za="",$a=/WebKit\/(\S+)/.exec(Ja);$a&&(Za=$a?$a[1]:"");Ya=Za;var Va={};function ab(){return Ua(function(){return 0<=Ha(Ya,534)})};function bb(a){this.b=a;this.a=0}function cb(a){a=a.match(db);for(var b=0;b]=|\s+|./g,eb=/^\s/;function q(a,b){return a.b[a.a+(b||0)]}bb.prototype.next=function(){return this.b[this.a++]};function fb(a){return a.b.length<=a.a};function gb(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}gb.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};gb.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};gb.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};gb.prototype.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};function hb(a,b){this.width=a;this.height=b}hb.prototype.aspectRatio=function(){return this.width/this.height};hb.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};hb.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};hb.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; +hb.prototype.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};function ib(a){for(;a&&1!=a.nodeType;)a=a.previousSibling;return a}function jb(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a} +function kb(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=1==a.nodeType,d=1==b.nodeType;if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,f=b.parentNode;return e==f?lb(a,b):!c&&jb(e,b)?-1*mb(a,b):!d&&jb(f,a)?mb(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=u(a);c=d.createRange();c.selectNode(a);c.collapse(!0);a=d.createRange();a.selectNode(b); +a.collapse(!0);return c.compareBoundaryPoints(ia.Range.START_TO_END,a)}function mb(a,b){var c=a.parentNode;if(c==b)return-1;for(;b.parentNode!=c;)b=b.parentNode;return lb(b,a)}function lb(a,b){for(;b=b.previousSibling;)if(b==a)return-1;return 1}function u(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function nb(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null} +function ob(a){try{var b=a&&a.activeElement;return b&&b.nodeName?b:null}catch(c){return null}}function pb(a){this.a=a||ia.document||document}pb.prototype.getElementsByTagName=function(a,b){return(b||this.a).getElementsByTagName(String(a))};function v(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:b,b=void 0==b||null==b?"":b);if("string"!=typeof b)if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;c=0;var d=[];for(b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return b} +function qb(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function rb(a,b,c,d,e){return sb.call(null,a,b,ka(c)?c:null,ka(d)?d:null,e||new x)} +function sb(a,b,c,d,e){b.getElementsByName&&d&&"name"==c?(b=b.getElementsByName(d),m(b,function(f){a.a(f)&&e.add(f)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),m(b,function(f){f.className==d&&a.a(f)&&e.add(f)})):a instanceof y?tb(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.f()),m(b,function(f){qb(f,c,d)&&e.add(f)}));return e}function tb(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)qb(b,c,d)&&a.a(b)&&e.add(b),tb(a,b,c,d,e)};function x(){this.b=this.a=null;this.o=0}function ub(a){this.b=a;this.next=this.a=null}function vb(a,b){if(!a.a)return b;if(!b.a)return a;var c=a.a;b=b.a;for(var d=null,e,f=0;c&&b;)c.b==b.b?(e=c,c=c.next,b=b.next):0",4,2,function(a,b,c){return Gb(function(d,e){return d>e},a,b,c)});E("<=",4,2,function(a,b,c){return Gb(function(d,e){return d<=e},a,b,c)});E(">=",4,2,function(a,b,c){return Gb(function(d,e){return d>=e},a,b,c)});var Fb=E("=",3,2,function(a,b,c){return Gb(function(d,e){return d==e},a,b,c,!0)});E("!=",3,2,function(a,b,c){return Gb(function(d,e){return d!=e},a,b,c,!0)});E("and",2,2,function(a,b,c){return Db(a,c)&&Db(b,c)});E("or",1,2,function(a,b,c){return Db(a,c)||Db(b,c)});function Jb(a,b){if(b.a.length&&4!=a.l)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");A.call(this,a.l);this.c=a;this.j=b;this.i=a.i;this.b=a.b}h(Jb,A);Jb.prototype.a=function(a){a=this.c.a(a);return Kb(this.j,a)};Jb.prototype.toString=function(){var a="Filter:"+B(this.c);return a+=B(this.j)};function Lb(a,b){if(b.lengtha.D)throw Error("Function "+a.m+" expects at most "+a.D+" arguments, "+b.length+" given");a.L&&m(b,function(c,d){if(4!=c.l)throw Error("Argument "+d+" to function "+a.m+" is not of type Nodeset: "+c);});A.call(this,a.l);this.B=a;this.c=b;Bb(this,a.i||Ca(b,function(c){return c.i}));Cb(this,a.K&&!b.length||a.J&&!!b.length||Ca(b,function(c){return c.b}))} +h(Lb,A);Lb.prototype.a=function(a){return this.B.s.apply(null,Ea(a,this.c))};Lb.prototype.toString=function(){var a="Function: "+this.B;if(this.c.length){var b=Ba(this.c,function(c,d){return c+B(d)},"Arguments:");a+=B(b)}return a};function Mb(a,b,c,d,e,f,g,k){this.m=a;this.l=b;this.i=c;this.K=d;this.J=!1;this.s=e;this.G=f;this.D=ja(g)?g:f;this.L=!!k}Mb.prototype.toString=function(){return this.m};var Nb={}; +function H(a,b,c,d,e,f,g,k){if(Nb.hasOwnProperty(a))throw Error("Function already created: "+a+".");Nb[a]=new Mb(a,b,c,d,e,f,g,k)}H("boolean",2,!1,!1,function(a,b){return Db(b,a)},1);H("ceiling",1,!1,!1,function(a,b){return Math.ceil(C(b,a))},1);H("concat",3,!1,!1,function(a,b){return Ba(Fa(arguments,1),function(c,d){return c+D(d,a)},"")},2,null);H("contains",2,!1,!1,function(a,b,c){b=D(b,a);a=D(c,a);return-1!=b.indexOf(a)},2);H("count",1,!1,!1,function(a,b){return b.a(a).o},1,1,!0); +H("false",2,!1,!1,function(){return!1},0);H("floor",1,!1,!1,function(a,b){return Math.floor(C(b,a))},1);H("id",4,!1,!1,function(a,b){var c=a.a,d=9==c.nodeType?c:c.ownerDocument;a=D(b,a).split(/\s+/);var e=[];m(a,function(g){g=d.getElementById(g);!g||0<=za(e,g)||e.push(g)});e.sort(kb);var f=new x;m(e,function(g){f.add(g)});return f},1);H("lang",2,!1,!1,function(){return!1},1);H("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.f},0); +H("local-name",3,!1,!0,function(a,b){return(a=b?xb(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);H("name",3,!1,!0,function(a,b){return(a=b?xb(b.a(a)):a.a)?a.nodeName.toLowerCase():""},0,1,!0);H("namespace-uri",3,!0,!1,function(){return""},0,1,!0);H("normalize-space",3,!1,!0,function(a,b){return(b?D(b,a):v(a.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);H("not",2,!1,!1,function(a,b){return!Db(b,a)},1);H("number",1,!1,!0,function(a,b){return b?C(b,a):+v(a.a)},0,1); +H("position",1,!0,!1,function(a){return a.b},0);H("round",1,!1,!1,function(a,b){return Math.round(C(b,a))},1);H("starts-with",2,!1,!1,function(a,b,c){b=D(b,a);a=D(c,a);return 0==b.lastIndexOf(a,0)},2);H("string",3,!1,!0,function(a,b){return b?D(b,a):v(a.a)},0,1);H("string-length",1,!1,!0,function(a,b){return(b?D(b,a):v(a.a)).length},0,1); +H("substring",3,!1,!1,function(a,b,c,d){c=C(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?C(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=D(b,a);return Infinity==d?a.substring(e):a.substring(e,c+Math.round(d))},2,3);H("substring-after",3,!1,!1,function(a,b,c){b=D(b,a);a=D(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2); +H("substring-before",3,!1,!1,function(a,b,c){b=D(b,a);a=D(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);H("sum",1,!1,!1,function(a,b){a=zb(b.a(a));b=0;for(var c=a.next();c;c=a.next())b+=+v(c);return b},1,1,!0);H("translate",3,!1,!1,function(a,b,c,d){b=D(b,a);c=D(c,a);var e=D(d,a);a={};for(d=0;da.length)throw Error("Unclosed literal string");return new Pb(a)} +function pc(a){var b=[];if(Xb(q(a.a))){var c=a.a.next();var d=q(a.a);if("/"==c&&(fb(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new Vb;d=new Vb;J(a,"Missing next location step.");c=qc(a,c);b.push(c)}else{a:{c=q(a.a);d=c.charAt(0);switch(d){case "$":throw Error("Variable reference not allowed in HTML XPath");case "(":a.a.next();c=kc(a);J(a,'unclosed "("');mc(a,")");break;case '"':case "'":c=oc(a);break;default:if(isNaN(+c))if(!Ob(c)&&/(?![0-9])[\w]/.test(d)&&"("==q(a.a, +1)){c=a.a.next();c=Nb[c]||null;a.a.next();for(d=[];")"!=q(a.a);){J(a,"Missing function argument list.");d.push(kc(a));if(","!=q(a.a))break;a.a.next()}J(a,"Unclosed function argument list.");nc(a);c=new Lb(c,d)}else{c=null;break a}else c=new Rb(+a.a.next())}"["==q(a.a)&&(d=new $b(rc(a)),c=new Jb(c,d))}if(c)if(Xb(q(a.a)))d=c;else return c;else c=qc(a,"/"),d=new Wb,b.push(c)}for(;Xb(q(a.a));)c=a.a.next(),J(a,"Missing next location step."),c=qc(a,c),b.push(c);return new Sb(d,b)} +function qc(a,b){if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==q(a.a)){var c=new ac(gc,new y("node"));a.a.next();return c}if(".."==q(a.a))return c=new ac(fc,new y("node")),a.a.next(),c;if("@"==q(a.a)){var d=Tb;a.a.next();J(a,"Missing attribute name")}else if("::"==q(a.a,1)){if(!/(?![0-9])[\w]/.test(q(a.a).charAt(0)))throw Error("Bad token: "+a.a.next());var e=a.a.next();d=ec[e]||null;if(!d)throw Error("No axis with name: "+e);a.a.next();J(a,"Missing node name")}else d=bc; +e=q(a.a);if(/(?![0-9])[\w\*]/.test(e.charAt(0)))if("("==q(a.a,1)){if(!Ob(e))throw Error("Invalid node type: "+e);e=a.a.next();if(!Ob(e))throw Error("Invalid type name: "+e);mc(a,"(");J(a,"Bad nodetype");var f=q(a.a).charAt(0),g=null;if('"'==f||"'"==f)g=oc(a);J(a,"Bad nodetype");nc(a);e=new y(e,g)}else if(e=a.a.next(),f=e.indexOf(":"),-1==f)e=new Qb(e);else{g=e.substring(0,f);if("*"==g)var k="*";else if(k=a.b(g),!k)throw Error("Namespace prefix not declared: "+g);e=e.substr(f+1);e=new Qb(e,k)}else throw Error("Bad token: "+ +a.a.next());a=new $b(rc(a),d.v);return c||new ac(d,e,a,"//"==b)}function rc(a){for(var b=[];"["==q(a.a);){a.a.next();J(a,"Missing predicate expression.");var c=kc(a);b.push(c);J(a,"Unclosed predicate expression.");mc(a,"]")}return b}function lc(a){if("-"==q(a.a))return a.a.next(),new hc(lc(a));var b=pc(a);if("|"!=q(a.a))a=b;else{for(b=[b];"|"==a.a.next();)J(a,"Missing next union location path."),b.push(pc(a));a.a.a--;a=new ic(b)}return a};function sc(a){switch(a.nodeType){case 1:return va(tc,a);case 9:return sc(a.documentElement);case 11:case 10:case 6:case 12:return uc;default:return a.parentNode?sc(a.parentNode):uc}}function uc(){return null}function tc(a,b){if(a.prefix==b)return a.namespaceURI||"http://www.w3.org/1999/xhtml";var c=a.getAttributeNode("xmlns:"+b);return c&&c.specified?c.value||null:a.parentNode&&9!=a.parentNode.nodeType?tc(a.parentNode,b):null};function vc(a,b){if(!a.length)throw Error("Empty XPath expression.");a=cb(a);if(fb(a))throw Error("Invalid XPath expression.");b?oa(b)||(b=ua(b.lookupNamespaceURI,b)):b=function(){return null};var c=kc(new jc(a,b));if(!fb(a))throw Error("Bad token: "+a.next());this.evaluate=function(d,e){d=c.a(new ya(d));return new K(d,e)}} +function K(a,b){if(0==b)if(a instanceof x)b=4;else if("string"==typeof a)b=2;else if("number"==typeof a)b=1;else if("boolean"==typeof a)b=3;else throw Error("Unexpected evaluation result.");if(2!=b&&1!=b&&3!=b&&!(a instanceof x))throw Error("value could not be converted to the specified type");this.resultType=b;switch(b){case 2:this.stringValue=a instanceof x?yb(a):""+a;break;case 1:this.numberValue=a instanceof x?+yb(a):+a;break;case 3:this.booleanValue=a instanceof x?0=d.length?null:d[f++]};this.snapshotItem=function(g){if(6!=b&&7!=b)throw Error("snapshotItem called with wrong result type");return g>=d.length||0>g?null:d[g]}}K.ANY_TYPE=0; +K.NUMBER_TYPE=1;K.STRING_TYPE=2;K.BOOLEAN_TYPE=3;K.UNORDERED_NODE_ITERATOR_TYPE=4;K.ORDERED_NODE_ITERATOR_TYPE=5;K.UNORDERED_NODE_SNAPSHOT_TYPE=6;K.ORDERED_NODE_SNAPSHOT_TYPE=7;K.ANY_UNORDERED_NODE_TYPE=8;K.FIRST_ORDERED_NODE_TYPE=9;function wc(a){this.lookupNamespaceURI=sc(a)} +function xc(a,b){a=a||ia;var c=a.Document&&a.Document.prototype||a.document;if(!c.evaluate||b)a.XPathResult=K,c.evaluate=function(d,e,f,g){return(new vc(d,f)).evaluate(e,g)},c.createExpression=function(d,e){return new vc(d,e)},c.createNSResolver=function(d){return new wc(d)}}la("wgxpath.install",xc);la("wgxpath.install",xc);var yc=window;var zc={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400", darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc", ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a", lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1", moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57", -seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var Bc="backgroundColor borderTopColor borderRightColor borderBottomColor borderLeftColor color outlineColor".split(" "),Cc=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,Dc=/^#(?:[0-9a-f]{3}){1,2}$/i,Ec=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i,Fc=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function L(a,b){this.code=a;this.a=M[a]||Gc;this.message=b||"";a=this.a.replace(/((?:^|\s+)[a-z])/g,function(c){return c.toUpperCase().replace(/^[\s\xa0]+/g,"")});b=a.length-5;if(0>b||a.indexOf("Error",b)!=b)a+="Error";this.name=a;a=Error(this.message);a.name=this.name;this.stack=a.stack||""}h(L,Error);var Gc="unknown error",M={15:"element not selectable",11:"element not visible"};M[31]=Gc;M[30]=Gc;M[24]="invalid cookie domain";M[29]="invalid element coordinates";M[12]="invalid element state"; -M[32]="invalid selector";M[51]="invalid selector";M[52]="invalid selector";M[17]="javascript error";M[405]="unsupported operation";M[34]="move target out of bounds";M[27]="no such alert";M[7]="no such element";M[8]="no such frame";M[23]="no such window";M[28]="script timeout";M[33]="session not created";M[10]="stale element reference";M[21]="timeout";M[25]="unable to set cookie";M[26]="unexpected alert open";M[13]=Gc;M[9]="unknown command";var Hc=Qa(),Ic=Ta()||q("iPod"),Jc=q("iPad"),Kc=q("Android")&&!(Ra()||Qa()||q("Opera")||q("Silk")),Lc=Ra(),Mc=q("Safari")&&!(Ra()||q("Coast")||q("Opera")||q("Edge")||q("Edg/")||q("OPR")||Qa()||q("Silk")||q("Android"))&&!(Ta()||q("iPad")||q("iPod"));function Nc(a){return(a=a.exec(Ja))?a[1]:""}var Oc=function(){if(Hc)return Nc(/Firefox\/([0-9.]+)/);if(Lc)return Ta()||q("iPad")||q("iPod")?Nc(/CriOS\/([0-9.]+)/):Nc(/Chrome\/([0-9.]+)/);if(Mc&&!(Ta()||q("iPad")||q("iPod")))return Nc(/Version\/([0-9.]+)/);if(Ic||Jc){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Ja);if(a)return a[1]+"."+a[2]}else if(Kc)return(a=Nc(/Android\s+([0-9.]+)/))?a:Nc(/Version\/([0-9.]+)/);return""}();var Pc=Jc||Ic,Qc;if(Kc){var Rc=/Android\s+([0-9\.]+)/.exec(Ja);Qc=Rc?Rc[1]:"0"}else Qc="0";var Sc=Qc;function Tc(a){var b="tabindex";return"style"==b?Uc(a.style.cssText):(a=a.getAttributeNode(b))&&a.specified?a.value:null}var Vc=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/;function Uc(a){var b=[];m(a.split(Vc),function(c){var d=c.indexOf(":");0b||a.indexOf("Error",b)!=b)a+="Error";this.name=a;a=Error(this.message);a.name=this.name;this.stack=a.stack||""}h(L,Error);var Fc="unknown error",M={15:"element not selectable",11:"element not visible"};M[31]=Fc;M[30]=Fc;M[24]="invalid cookie domain";M[29]="invalid element coordinates";M[12]="invalid element state"; +M[32]="invalid selector";M[51]="invalid selector";M[52]="invalid selector";M[17]="javascript error";M[405]="unsupported operation";M[34]="move target out of bounds";M[27]="no such alert";M[7]="no such element";M[8]="no such frame";M[23]="no such window";M[28]="script timeout";M[33]="session not created";M[10]="stale element reference";M[21]="timeout";M[25]="unable to set cookie";M[26]="unexpected alert open";M[13]=Fc;M[9]="unknown command";var Gc=Qa(),Hc=Ta()||p("iPod"),Ic=p("iPad"),Jc=p("Android")&&!(Ra()||Qa()||p("Opera")||p("Silk")),Kc=Ra(),Lc=p("Safari")&&!(Ra()||p("Coast")||p("Opera")||p("Edge")||p("Edg/")||p("OPR")||Qa()||p("Silk")||p("Android"))&&!(Ta()||p("iPad")||p("iPod"));function Mc(a){return(a=a.exec(Ja))?a[1]:""}var Nc=function(){if(Gc)return Mc(/Firefox\/([0-9.]+)/);if(Kc)return Ta()||p("iPad")||p("iPod")?Mc(/CriOS\/([0-9.]+)/):Mc(/Chrome\/([0-9.]+)/);if(Lc&&!(Ta()||p("iPad")||p("iPod")))return Mc(/Version\/([0-9.]+)/);if(Hc||Ic){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Ja);if(a)return a[1]+"."+a[2]}else if(Jc)return(a=Mc(/Android\s+([0-9.]+)/))?a:Mc(/Version\/([0-9.]+)/);return""}();var Oc=Ic||Hc,Pc;if(Jc){var Qc=/Android\s+([0-9\.]+)/.exec(Ja);Pc=Qc?Qc[1]:"0"}else Pc="0";var Rc=Pc;function Sc(a){var b="tabindex";return"style"==b?Tc(a.style.cssText):(a=a.getAttributeNode(b))&&a.specified?a.value:null}var Uc=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/;function Tc(a){var b=[];m(a.split(Uc),function(c){var d=c.indexOf(":");0=b&&0<=d&&255>=d&&0<=e&&255>=e&&0<=c&&1>=c){b=[b,d,e,c];break b}}b=null}if(!b)b:{if(e=a.match(Fc))if(b=Number(e[1]),d=Number(e[2]),e=Number(e[3]),0<=b&&255>=b&&0<=d&&255>=d&&0<=e&&255>=e){b=[b,d,e,1];break b}b=null}if(!b)b:{b=a.toLowerCase();d=Ac[b.toLowerCase()]; -if(!d&&(d="#"==b.charAt(0)?b:"#"+b,4==d.length&&(d=d.replace(Cc,"#$1$1$2$2$3$3")),!Dc.test(d))){b=null;break b}b=[parseInt(d.substr(1,2),16),parseInt(d.substr(3,2),16),parseInt(d.substr(5,2),16),1]}a=b?"rgba("+b.join(", ")+")":a}return a}function jd(a,b){var c=a.currentStyle||a.style,d=c[b];!ja(d)&&oa(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?ja(d)?d:null:(a=id(a))?jd(a,b):null} -function kd(a,b,c){function d(g){var k=ld(g);return 0=B.a+B.width;B=b.b>=B.b+B.height;if(C&&"hidden"==t.x||B&&"hidden"==t.y)return R;if(C&&"visible"!=t.x||B&&"visible"!=t.y){if(n&&(t=e(a),b.a>=g.scrollWidth-t.x||b.f>=g.scrollHeight-t.y))return R;b=md(a);return b==R?R:"scroll"}}}return"none"} -function ld(a){var b=nd(a);if(b)return b.rect;if(N(a,"HTML"))return a=(ib(v(a))||window).document,a="CSS1Compat"==a.compatMode?a.documentElement:a.body,a=new hb(a.clientWidth,a.clientHeight),new P(0,0,a.width,a.height);try{var c=a.getBoundingClientRect()}catch(d){return new P(0,0,0,0)}return new P(c.left,c.top,c.right-c.left,c.bottom-c.top)} -function nd(a){var b=N(a,"MAP");if(!b&&!N(a,"AREA"))return null;var c=b?a:N(a.parentNode,"MAP")?a.parentNode:null,d=null,e=null;c&&c.name&&(d=O.P('/descendant::*[@usemap = "#'+c.name+'"]',v(c)))&&(e=ld(d),b||"default"==a.shape.toLowerCase()||(a=rd(a),b=Math.min(Math.max(a.a,0),e.width),c=Math.min(Math.max(a.b,0),e.height),e=new P(b+e.a,c+e.b,Math.min(a.width,e.width-b),Math.min(a.height,e.height-c))));return{image:d,rect:e||new P(0,0,0,0)}} -function rd(a){var b=a.shape.toLowerCase();a=a.coords.split(",");if("rect"==b&&4==a.length){b=a[0];var c=a[1];return new P(b,c,a[2]-b,a[3]-c)}if("circle"==b&&3==a.length)return b=a[2],new P(a[0]-b,a[1]-b,2*b,2*b);if("poly"==b&&2");W(191,"/","?");W(192,"`","~");W(219,"[","{");W(220,"\\","|");W(221,"]","}");var Ze=W({h:59,g:186},";",":");W(222,"'",'"');var $e=[he,ge,ve,X],af=new Ud;af.set(1,X);af.set(2,ge);af.set(4,he);af.set(8,ve); -var bf=function(a){var b=new Ud;m(Vd(a),function(c){b.set(a.get(c).code,c)});return b}(af);function ae(a,b,c){0<=za($e,b)&&bf.get(b.code);c?a.c.add(b):(a=a.c.a,b=Zd(b),Xd(a.b,b)&&(delete a.b[b],a.f--,a.a.length>2*a.f&&Wd(a)))}function Y(a,b){b=Zd(b);return Xd(a.c.a.b,b)} -function cf(a,b){if(0<=za($e,b)&&Y(a,b))throw new L(13,"Cannot press a modifier key that is already pressed.");var c=null!==b.code&&df(a,Fd,b);if(c&&(!b.a&&b!=fe||df(a,wd,b,!c))&&c&&(ef(a,b),a.f))if(b.a){c=ff(a,b);var d=Qd(a.a,!0)[0]+1;gf(a.a)?(Td(a.a,c),Od(a.a,d)):a.a.value+=c;V(a.a,Ed);V(a.a,Cd);a.b=d}else switch(b){case fe:V(a.a,Ed);N(a.a,"TEXTAREA")&&(c=Qd(a.a,!0)[0]+1,gf(a.a)?(Td(a.a,"\n"),Od(a.a,c)):a.a.value+="\n",V(a.a,Cd),a.b=c);break;case de:case ue:hf(a.a);c=Qd(a.a,!1);c[0]==c[1]&&(b== -de?(Od(a.a,c[1]-1),Rd(a.a,c[1])):Rd(a.a,c[1]+1));c=Qd(a.a,!1);c=!(c[0]==a.a.value.length||0==c[1]);Td(a.a,"");c&&V(a.a,Cd);c=Qd(a.a,!1);a.b=c[1];break;case pe:case re:hf(a.a);c=a.a;var e=Qd(c,!0)[0],f=Qd(c,!1)[1],g=d=0;b==pe?Y(a,X)?a.b==e?(d=Math.max(e-1,0),g=f,e=d):(d=e,e=g=f-1):e=e==f?Math.max(e-1,0):e:Y(a,X)?a.b==f?(d=e,e=g=Math.min(f+1,c.value.length)):(d=e+1,g=f,e=d):e=e==f?Math.min(f+1,c.value.length):f;Y(a,X)?(Od(c,d),Rd(c,g)):Sd(c,e);a.b=e;break;case oe:case ne:hf(a.a),c=a.a,d=Qd(c,!0)[0], -g=Qd(c,!1)[1],b==oe?(Y(a,X)?(Od(c,0),Rd(c,a.b==d?g:d)):Sd(c,0),a.b=0):(Y(a,X)?(a.b==d&&Od(c,g),Rd(c,c.value.length)):Sd(c,c.value.length),a.b=c.value.length)}ae(a,b,!0)}function ef(a,b){b==fe&&N(a.a,"INPUT")&&(a=ob(a.a,Md,!0))&&(b=a.getElementsByTagName("input"),!Ca(b,function(c){a:{if(N(c,"INPUT")){var d=c.type.toLowerCase();if("submit"==d||"image"==d){c=!0;break a}}if(N(c,"BUTTON")&&(d=c.type.toLowerCase(),"submit"==d)){c=!0;break a}c=!1}return c})&&1!=b.length&&ab()||Nd(a))} -function jf(a,b){if(!Y(a,b))throw new L(13,"Cannot release a key that is not pressed. ("+b.code+")");null===b.code||df(a,Gd,b);ae(a,b,!1)}function ff(a,b){if(!b.a)throw new L(13,"not a character key");return Y(a,X)?b.b:b.a} -function hf(a){try{if("number"==typeof a.selectionStart)return}catch(b){if(-1!=b.message.indexOf("does not support selection."))throw Error(b.message+" (For more information, see https://code.google.com/p/chromium/issues/detail?id=330456)");throw b;}throw Error("Element does not support selection");}function gf(a){try{hf(a)}catch(b){return!1}return!0} -function df(a,b,c,d){if(null===c.code)throw new L(13,"Key must have a keycode to be fired.");c={altKey:Y(a,he),ctrlKey:Y(a,ge),metaKey:Y(a,ve),shiftKey:Y(a,X),keyCode:c.code,charCode:c.a&&b==wd?ff(a,c).charCodeAt(0):0,preventDefault:!!d};return V(a.a,b,c)}function kf(a,b){Kd(a,b);a.f=cd(b);var c=Ld(a);a.f&&c&&(Sd(b,b.value.length),a.b=b.value.length)};function lf(a){if(!pd(a)||!ed(a)||"none"==Q(a,"pointer-events"))throw new L(12,"Element is not currently interactable and may not be manipulated");} -function mf(a){lf(a);if(!cd(a))throw new L(12,"Element must be user-editable in order to clear it.");if(a.value)if(nf(a),a.value="",V(a,Ad),a=zc.document.body)nf(a);else throw new L(13,"Cannot unfocus element after clearing.");else if(N(a,"INPUT")&&a.getAttribute("type")&&"number"==a.getAttribute("type").toLowerCase())nf(a),a.value="";else if(hd(a))if(nf(a),a.textContent="",a=zc.document.body)nf(a);else throw new L(13,"Cannot unfocus element after clearing.");} -function of(a,b,c,d){function e(k){ka(k)?m(k.split(""),function(l){if(1!=l.length)throw new L(13,"Argument not a single character: "+l);var n=be[l];n||(n=l.toUpperCase(),n=W(n.charCodeAt(0),l.toLowerCase(),n),n={key:n,shift:l!=n.a});l=n;n=Y(f,X);l.shift&&!n&&cf(f,X);cf(f,l.key);jf(f,l.key);l.shift&&!n&&jf(f,X)}):0<=za($e,k)?Y(f,k)?jf(f,k):cf(f,k):(cf(f,k),jf(f,k))}a!=pb(v(a))&&(lf(a),pf(a));var f=c||new $d;kf(f,a);if("date"==a.type){c="array"==ma(b)?b=b.join(""):b;var g=/\d{4}-\d{2}-\d{2}/;if(c.match(g)){Mc&& -(V(a,Id),V(a,Hd));V(a,Bd);a.value=c.match(g)[0];V(a,Ad);V(a,zd);return}}"array"==ma(b)?m(b,e):e(b);d||m($e,function(k){Y(f,k)&&jf(f,k)})}function qf(){xa(this)}h(qf,Jd);qf.a=void 0;qf.b=function(){return qf.a?qf.a:qf.a=new qf};function nf(a){var b=qf.b();Kd(b,a);Ld(b)} -function pf(a){if("scroll"==md(a,void 0)){if(a.scrollIntoView&&(a.scrollIntoView(),"none"==md(a,void 0)))return;for(var b=qd(a,void 0),c=id(a);c;c=id(c)){var d=c,e=ld(d);var f=d;var g=Xc(f,"borderLeftWidth");var k=Xc(f,"borderRightWidth");var l=Xc(f,"borderTopWidth");f=Xc(f,"borderBottomWidth");k=new Wc(parseFloat(l),parseFloat(k),parseFloat(f),parseFloat(g));g=b.a-e.a-k.a;e=b.b-e.b-k.b;k=d.clientHeight+b.b-b.c;d.scrollLeft+=Math.min(g,Math.max(g-(d.clientWidth+b.a-b.f),0));d.scrollTop+=Math.min(e, -Math.max(e-k,0))}md(a,void 0)}};var rf=ia.JSON.stringify;function sf(a){function b(c,d){switch(ma(c)){case "string":case "number":case "boolean":return c;case "function":return c.toString();case "array":return Aa(c,function(f){return b(f,d)});case "object":if(0<=d.indexOf(c))throw new L(17,"Recursive object cannot be transferred");if(Oa(c,"nodeType")&&(1==c.nodeType||9==c.nodeType)){var e={};e.ELEMENT=tf(c);return e}if(Oa(c,"document"))return e={},e.WINDOW=tf(c),e;d.push(c);if(na(c))return Aa(c,function(f){return b(f,d)});c=Ma(c,function(f,g){return"number"== -typeof g||ka(g)});return Na(c,function(f){return b(f,d)});default:return null}}return b(a,[])}function uf(a,b){return"array"==ma(a)?Aa(a,function(c){return uf(c,b)}):pa(a)?"function"==typeof a?a:Oa(a,"ELEMENT")?vf(a.ELEMENT,b):Oa(a,"WINDOW")?vf(a.WINDOW,b):Na(a,function(c){return uf(c,b)}):a}function wf(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.F=wa());b.F||(b.F=wa());return b}function tf(a){var b=wf(a.ownerDocument),c=Pa(b,function(d){return d==a});c||(c=":wdc:"+b.F++,b[c]=a);return c} -function vf(a,b){a=decodeURIComponent(a);b=b||document;var c=wf(b);if(!Oa(c,a))throw new L(10,"Element does not exist in cache");var d=c[a];if(Oa(d,"setInterval")){if(d.closed)throw delete c[a],new L(23,"Window has been closed.");return d}for(var e=d;e;){if(e==b.documentElement)return d;e.host&&11===e.nodeType&&(e=e.host);e=e.parentNode}delete c[a];throw new L(10,"Element is no longer attached to the DOM");};function Z(a,b,c,d){function e(){return{persist:f,keys:[]}}var f=!!d,g=[],k=e();g.push(k);m(b,function(l){m(l.split(""),function(n){if("\ue000"<=n&&"\ue03d">=n){var t=Z.a[n];if(null===t)g.push(k=e()),f&&(k.persist=!1,g.push(k=e()));else if(ja(t))k.keys.push(t);else throw Error("Unsupported WebDriver key: \\u"+n.charCodeAt(0).toString(16));}else switch(n){case "\n":k.keys.push(fe);break;case "\t":k.keys.push(ee);break;case "\b":k.keys.push(de);break;default:k.keys.push(n)}})});m(g,function(l){of(a, -l.keys,c,l.persist)})}Z.a={};Z.a["\ue000"]=null;Z.a["\ue003"]=de;Z.a["\ue004"]=ee;Z.a["\ue006"]=fe;Z.a["\ue007"]=fe;Z.a["\ue008"]=X;Z.a["\ue009"]=ge;Z.a["\ue00a"]=he;Z.a["\ue00b"]=ie;Z.a["\ue00c"]=je;Z.a["\ue00d"]=ke;Z.a["\ue00e"]=le;Z.a["\ue00f"]=me;Z.a["\ue010"]=ne;Z.a["\ue011"]=oe;Z.a["\ue012"]=pe;Z.a["\ue013"]=qe;Z.a["\ue014"]=re;Z.a["\ue015"]=se;Z.a["\ue016"]=te;Z.a["\ue017"]=ue;Z.a["\ue018"]=Ze;Z.a["\ue019"]=Xe;Z.a["\ue01a"]=we;Z.a["\ue01b"]=xe;Z.a["\ue01c"]=ye;Z.a["\ue01d"]=ze; -Z.a["\ue01e"]=Ae;Z.a["\ue01f"]=Be;Z.a["\ue020"]=Ce;Z.a["\ue021"]=De;Z.a["\ue022"]=Ee;Z.a["\ue023"]=Fe;Z.a["\ue024"]=Ge;Z.a["\ue025"]=He;Z.a["\ue027"]=Ie;Z.a["\ue028"]=Je;Z.a["\ue029"]=Ke;Z.a["\ue026"]=Ye;Z.a["\ue031"]=Le;Z.a["\ue032"]=Me;Z.a["\ue033"]=Ne;Z.a["\ue034"]=Oe;Z.a["\ue035"]=Pe;Z.a["\ue036"]=Qe;Z.a["\ue037"]=Re;Z.a["\ue038"]=Se;Z.a["\ue039"]=Te;Z.a["\ue03a"]=Ue;Z.a["\ue03b"]=Ve;Z.a["\ue03c"]=We;Z.a["\ue03d"]=ve;la("_",function(a,b){a=[a];try{var c;b?c=vf(b.WINDOW):c=window;var d=uf(a,c.document),e=mf.apply(null,d);var f={status:0,value:sf(e)}}catch(g){f={status:Oa(g,"code")?g.code:13,value:{message:g.message}}}return rf(f)});; return this._.apply(null,arguments);}).apply(window, arguments);} +function P(a,b){b=Sa(b);if("float"==b||"cssFloat"==b||"styleFloat"==b)b="cssFloat";a=Zc(a,b)||jd(a,b);if(null===a)a=null;else if(0<=za(Ac,b)){b:{var c=a.match(Dc);if(c){b=Number(c[1]);var d=Number(c[2]),e=Number(c[3]);c=Number(c[4]);if(0<=b&&255>=b&&0<=d&&255>=d&&0<=e&&255>=e&&0<=c&&1>=c){b=[b,d,e,c];break b}}b=null}if(!b)b:{if(e=a.match(Ec))if(b=Number(e[1]),d=Number(e[2]),e=Number(e[3]),0<=b&&255>=b&&0<=d&&255>=d&&0<=e&&255>=e){b=[b,d,e,1];break b}b=null}if(!b)b:{b=a.toLowerCase();d=zc[b.toLowerCase()]; +if(!d&&(d="#"==b.charAt(0)?b:"#"+b,4==d.length&&(d=d.replace(Bc,"#$1$1$2$2$3$3")),!Cc.test(d))){b=null;break b}b=[parseInt(d.substr(1,2),16),parseInt(d.substr(3,2),16),parseInt(d.substr(5,2),16),1]}a=b?"rgba("+b.join(", ")+")":a}return a}function jd(a,b){var c=a.currentStyle||a.style,d=c[b];!ja(d)&&oa(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?ja(d)?d:null:(a=id(a))?jd(a,b):null} +function kd(a,b,c){function d(g){var k=ld(g);return 0=F.a+F.width;F=b.b>=F.b+F.height;if(G&&"hidden"==t.x||F&&"hidden"==t.y)return Q;if(G&&"visible"!=t.x||F&&"visible"!=t.y){if(n&&(t=e(a),b.a>=g.scrollWidth-t.x||b.f>=g.scrollHeight-t.y))return Q;b=md(a);return b==Q?Q:"scroll"}}}return"none"} +function ld(a){var b=nd(a);if(b)return b.rect;if(N(a,"HTML"))return a=u(a),a=((a?a.parentWindow||a.defaultView:window)||window).document,a="CSS1Compat"==a.compatMode?a.documentElement:a.body,a=new hb(a.clientWidth,a.clientHeight),new O(0,0,a.width,a.height);try{var c=a.getBoundingClientRect()}catch(d){return new O(0,0,0,0)}return new O(c.left,c.top,c.right-c.left,c.bottom-c.top)} +function nd(a){var b=N(a,"MAP");if(!b&&!N(a,"AREA"))return null;var c=b?a:N(a.parentNode,"MAP")?a.parentNode:null,d=null,e=null;c&&c.name&&(d=Vc.N('*[usemap="#'+c.name+'"]',u(c)))&&(e=ld(d),b||"default"==a.shape.toLowerCase()||(a=rd(a),b=Math.min(Math.max(a.a,0),e.width),c=Math.min(Math.max(a.b,0),e.height),e=new O(b+e.a,c+e.b,Math.min(a.width,e.width-b),Math.min(a.height,e.height-c))));return{image:d,rect:e||new O(0,0,0,0)}} +function rd(a){var b=a.shape.toLowerCase();a=a.coords.split(",");if("rect"==b&&4==a.length){b=a[0];var c=a[1];return new O(b,c,a[2]-b,a[3]-c)}if("circle"==b&&3==a.length)return b=a[2],new O(a[0]-b,a[1]-b,2*b,2*b);if("poly"==b&&2");W(191,"/","?");W(192,"`","~");W(219,"[","{");W(220,"\\","|");W(221,"]","}");var Ye=W({h:59,g:186},";",":");W(222,"'",'"');var Ze=[ge,fe,ue,X],$e=new Td;$e.set(1,X);$e.set(2,fe);$e.set(4,ge);$e.set(8,ue); +var af=function(a){var b=new Td;m(Ud(a),function(c){b.set(a.get(c).code,c)});return b}($e);function $d(a,b,c){0<=za(Ze,b)&&af.get(b.code);c?a.c.add(b):(a=a.c.a,b=Yd(b),Wd(a.b,b)&&(delete a.b[b],a.f--,a.a.length>2*a.f&&Vd(a)))}function Y(a,b){b=Yd(b);return Wd(a.c.a.b,b)} +function bf(a,b){if(0<=za(Ze,b)&&Y(a,b))throw new L(13,"Cannot press a modifier key that is already pressed.");var c=null!==b.code&&cf(a,Fd,b);if(c&&(!b.a&&b!=ee||cf(a,wd,b,!c))&&c&&(df(a,b),a.f))if(b.a){c=ef(a,b);var d=V(a.a,!0)[0]+1;ff(a.a)?(Sd(a.a,c),Od(a.a,d)):a.a.value+=c;U(a.a,Ed);U(a.a,Cd);a.b=d}else switch(b){case ee:U(a.a,Ed);N(a.a,"TEXTAREA")&&(c=V(a.a,!0)[0]+1,ff(a.a)?(Sd(a.a,"\n"),Od(a.a,c)):a.a.value+="\n",U(a.a,Cd),a.b=c);break;case ce:case te:gf(a.a);c=V(a.a,!1);c[0]==c[1]&&(b==ce? +(Od(a.a,c[1]-1),Qd(a.a,c[1])):Qd(a.a,c[1]+1));c=V(a.a,!1);c=!(c[0]==a.a.value.length||0==c[1]);Sd(a.a,"");c&&U(a.a,Cd);c=V(a.a,!1);a.b=c[1];break;case oe:case qe:gf(a.a);c=a.a;var e=V(c,!0)[0],f=V(c,!1)[1],g=d=0;b==oe?Y(a,X)?a.b==e?(d=Math.max(e-1,0),g=f,e=d):(d=e,e=g=f-1):e=e==f?Math.max(e-1,0):e:Y(a,X)?a.b==f?(d=e,e=g=Math.min(f+1,c.value.length)):(d=e+1,g=f,e=d):e=e==f?Math.min(f+1,c.value.length):f;Y(a,X)?(Od(c,d),Qd(c,g)):Rd(c,e);a.b=e;break;case ne:case me:gf(a.a),c=a.a,d=V(c,!0)[0],g=V(c,!1)[1], +b==ne?(Y(a,X)?(Od(c,0),Qd(c,a.b==d?g:d)):Rd(c,0),a.b=0):(Y(a,X)?(a.b==d&&Od(c,g),Qd(c,c.value.length)):Rd(c,c.value.length),a.b=c.value.length)}$d(a,b,!0)}function df(a,b){b==ee&&N(a.a,"INPUT")&&(a=nb(a.a,Md,!0))&&(b=a.getElementsByTagName("input"),!Ca(b,function(c){a:{if(N(c,"INPUT")){var d=c.type.toLowerCase();if("submit"==d||"image"==d){c=!0;break a}}if(N(c,"BUTTON")&&(d=c.type.toLowerCase(),"submit"==d)){c=!0;break a}c=!1}return c})&&1!=b.length&&ab()||Nd(a))} +function hf(a,b){if(!Y(a,b))throw new L(13,"Cannot release a key that is not pressed. ("+b.code+")");null===b.code||cf(a,Gd,b);$d(a,b,!1)}function ef(a,b){if(!b.a)throw new L(13,"not a character key");return Y(a,X)?b.b:b.a} +function gf(a){try{if("number"==typeof a.selectionStart)return}catch(b){if(-1!=b.message.indexOf("does not support selection."))throw Error(b.message+" (For more information, see https://code.google.com/p/chromium/issues/detail?id=330456)");throw b;}throw Error("Element does not support selection");}function ff(a){try{gf(a)}catch(b){return!1}return!0} +function cf(a,b,c,d){if(null===c.code)throw new L(13,"Key must have a keycode to be fired.");c={altKey:Y(a,ge),ctrlKey:Y(a,fe),metaKey:Y(a,ue),shiftKey:Y(a,X),keyCode:c.code,charCode:c.a&&b==wd?ef(a,c).charCodeAt(0):0,preventDefault:!!d};return U(a.a,b,c)}function jf(a,b){Kd(a,b);a.f=cd(b);var c=Ld(a);a.f&&c&&(Rd(b,b.value.length),a.b=b.value.length)};function kf(a){if(!pd(a)||!ed(a)||"none"==P(a,"pointer-events"))throw new L(12,"Element is not currently interactable and may not be manipulated");} +function lf(a){kf(a);if(!cd(a))throw new L(12,"Element must be user-editable in order to clear it.");if(a.value)if(mf(a),a.value="",U(a,Ad),a=yc.document.body)mf(a);else throw new L(13,"Cannot unfocus element after clearing.");else if(N(a,"INPUT")&&a.getAttribute("type")&&"number"==a.getAttribute("type").toLowerCase())mf(a),a.value="";else if(hd(a))if(mf(a),a.textContent="",a=yc.document.body)mf(a);else throw new L(13,"Cannot unfocus element after clearing.");} +function nf(a,b,c,d){function e(k){ka(k)?m(k.split(""),function(l){if(1!=l.length)throw new L(13,"Argument not a single character: "+l);var n=ae[l];n||(n=l.toUpperCase(),n=W(n.charCodeAt(0),l.toLowerCase(),n),n={key:n,shift:l!=n.a});l=n;n=Y(f,X);l.shift&&!n&&bf(f,X);bf(f,l.key);hf(f,l.key);l.shift&&!n&&hf(f,X)}):0<=za(Ze,k)?Y(f,k)?hf(f,k):bf(f,k):(bf(f,k),hf(f,k))}a!=ob(u(a))&&(kf(a),of(a));var f=c||new Zd;jf(f,a);if("date"==a.type){c="array"==ma(b)?b=b.join(""):b;var g=/\d{4}-\d{2}-\d{2}/;if(c.match(g)){Lc&& +(U(a,Id),U(a,Hd));U(a,Bd);a.value=c.match(g)[0];U(a,Ad);U(a,zd);return}}"array"==ma(b)?m(b,e):e(b);d||m(Ze,function(k){Y(f,k)&&hf(f,k)})}function pf(){xa(this)}h(pf,Jd);pf.a=void 0;pf.b=function(){return pf.a?pf.a:pf.a=new pf};function mf(a){var b=pf.b();Kd(b,a);Ld(b)} +function of(a){if("scroll"==md(a,void 0)){if(a.scrollIntoView&&(a.scrollIntoView(),"none"==md(a,void 0)))return;for(var b=qd(a,void 0),c=id(a);c;c=id(c)){var d=c,e=ld(d);var f=d;var g=Zc(f,"borderLeftWidth");var k=Zc(f,"borderRightWidth");var l=Zc(f,"borderTopWidth");f=Zc(f,"borderBottomWidth");k=new Yc(parseFloat(l),parseFloat(k),parseFloat(f),parseFloat(g));g=b.a-e.a-k.a;e=b.b-e.b-k.b;k=d.clientHeight+b.b-b.c;d.scrollLeft+=Math.min(g,Math.max(g-(d.clientWidth+b.a-b.f),0));d.scrollTop+=Math.min(e, +Math.max(e-k,0))}md(a,void 0)}};var qf=ia.JSON.stringify;function rf(a){function b(c,d){switch(ma(c)){case "string":case "number":case "boolean":return c;case "function":return c.toString();case "array":return Aa(c,function(f){return b(f,d)});case "object":if(0<=d.indexOf(c))throw new L(17,"Recursive object cannot be transferred");if(Oa(c,"nodeType")&&(1==c.nodeType||9==c.nodeType)){var e={};e.ELEMENT=sf(c);return e}if(Oa(c,"document"))return e={},e.WINDOW=sf(c),e;d.push(c);if(na(c))return Aa(c,function(f){return b(f,d)});c=Ma(c,function(f,g){return"number"== +typeof g||ka(g)});return Na(c,function(f){return b(f,d)});default:return null}}return b(a,[])}function tf(a,b){return"array"==ma(a)?Aa(a,function(c){return tf(c,b)}):pa(a)?"function"==typeof a?a:Oa(a,"ELEMENT")?uf(a.ELEMENT,b):Oa(a,"WINDOW")?uf(a.WINDOW,b):Na(a,function(c){return tf(c,b)}):a}function vf(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.F=wa());b.F||(b.F=wa());return b}function sf(a){var b=vf(a.ownerDocument),c=Pa(b,function(d){return d==a});c||(c=":wdc:"+b.F++,b[c]=a);return c} +function uf(a,b){a=decodeURIComponent(a);b=b||document;var c=vf(b);if(!Oa(c,a))throw new L(10,"Element does not exist in cache");var d=c[a];if(Oa(d,"setInterval")){if(d.closed)throw delete c[a],new L(23,"Window has been closed.");return d}for(var e=d;e;){if(e==b.documentElement)return d;e.host&&11===e.nodeType&&(e=e.host);e=e.parentNode}delete c[a];throw new L(10,"Element is no longer attached to the DOM");};function Z(a,b,c,d){function e(){return{persist:f,keys:[]}}var f=!!d,g=[],k=e();g.push(k);m(b,function(l){m(l.split(""),function(n){if("\ue000"<=n&&"\ue03d">=n){var t=Z.a[n];if(null===t)g.push(k=e()),f&&(k.persist=!1,g.push(k=e()));else if(ja(t))k.keys.push(t);else throw Error("Unsupported WebDriver key: \\u"+n.charCodeAt(0).toString(16));}else switch(n){case "\n":k.keys.push(ee);break;case "\t":k.keys.push(de);break;case "\b":k.keys.push(ce);break;default:k.keys.push(n)}})});m(g,function(l){nf(a, +l.keys,c,l.persist)})}Z.a={};Z.a["\ue000"]=null;Z.a["\ue003"]=ce;Z.a["\ue004"]=de;Z.a["\ue006"]=ee;Z.a["\ue007"]=ee;Z.a["\ue008"]=X;Z.a["\ue009"]=fe;Z.a["\ue00a"]=ge;Z.a["\ue00b"]=he;Z.a["\ue00c"]=ie;Z.a["\ue00d"]=je;Z.a["\ue00e"]=ke;Z.a["\ue00f"]=le;Z.a["\ue010"]=me;Z.a["\ue011"]=ne;Z.a["\ue012"]=oe;Z.a["\ue013"]=pe;Z.a["\ue014"]=qe;Z.a["\ue015"]=re;Z.a["\ue016"]=se;Z.a["\ue017"]=te;Z.a["\ue018"]=Ye;Z.a["\ue019"]=We;Z.a["\ue01a"]=ve;Z.a["\ue01b"]=we;Z.a["\ue01c"]=xe;Z.a["\ue01d"]=ye; +Z.a["\ue01e"]=ze;Z.a["\ue01f"]=Ae;Z.a["\ue020"]=Be;Z.a["\ue021"]=Ce;Z.a["\ue022"]=De;Z.a["\ue023"]=Ee;Z.a["\ue024"]=Fe;Z.a["\ue025"]=Ge;Z.a["\ue027"]=He;Z.a["\ue028"]=Ie;Z.a["\ue029"]=Je;Z.a["\ue026"]=Xe;Z.a["\ue031"]=Ke;Z.a["\ue032"]=Le;Z.a["\ue033"]=Me;Z.a["\ue034"]=Ne;Z.a["\ue035"]=Oe;Z.a["\ue036"]=Pe;Z.a["\ue037"]=Qe;Z.a["\ue038"]=Re;Z.a["\ue039"]=Se;Z.a["\ue03a"]=Te;Z.a["\ue03b"]=Ue;Z.a["\ue03c"]=Ve;Z.a["\ue03d"]=ue;la("_",function(a,b){a=[a];try{var c;b?c=uf(b.WINDOW):c=window;var d=tf(a,c.document),e=lf.apply(null,d);var f={status:0,value:rf(e)}}catch(g){f={status:Oa(g,"code")?g.code:13,value:{message:g.message}}}return qf(f)});; return this._.apply(null,arguments);}).apply(window, arguments);} diff --git a/atoms/click.js b/atoms/click.js index d509d1f..aa5d35c 100755 --- a/atoms/click.js +++ b/atoms/click.js @@ -7,8 +7,8 @@ function la(a,b){a=a.split(".");var c=ia;a[0]in c||"undefined"==typeof c.execScr function ma(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function na(a){var b=ma(a);return"array"==b||"object"==b&&"number"==typeof a.length}function oa(a){return"function"==ma(a)}function pa(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}var qa="closure_uid_"+(1E9*Math.random()>>>0),ra=0;function sa(a,b,c){return a.call.apply(a.bind,arguments)} function ta(a,b,c){if(!a)throw Error();if(2=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};var Ga=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]}; -function Ha(a,b){var c=0;a=Ga(String(a)).split(".");b=Ga(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&eb?1:0};var Ja;a:{var Ka=ia.navigator;if(Ka){var La=Ka.userAgent;if(La){Ja=La;break a}}Ja=""}function p(a){return-1!=Ja.indexOf(a)};function Ma(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function Na(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function Oa(a,b){return null!==a&&b in a}function Pa(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};function Qa(){return p("Firefox")||p("FxiOS")}function Ra(){return(p("Chrome")||p("CriOS"))&&!p("Edge")};function Sa(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};function Ta(){return p("iPhone")&&!p("iPod")&&!p("iPad")};function Ua(a){var b=Va;return Object.prototype.hasOwnProperty.call(b,534)?b[534]:b[534]=a(534)};var Wa=p("Macintosh"),Xa=p("Windows"),Ya,Za="",$a=/WebKit\/(\S+)/.exec(Ja);$a&&(Za=$a?$a[1]:"");Ya=Za;var Va={};function ab(){return Ua(function(){return 0<=Ha(Ya,534)})};function bb(a){this.b=a;this.a=0}function cb(a){a=a.match(db);for(var b=0;b]=|\s+|./g,eb=/^\s/;function r(a,b){return a.b[a.a+(b||0)]}bb.prototype.next=function(){return this.b[this.a++]};function fb(a){return a.b.length<=a.a};function v(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}v.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};v.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};v.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};v.prototype.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};function gb(a,b){this.width=a;this.height=b}gb.prototype.aspectRatio=function(){return this.width/this.height};gb.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};gb.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};gb.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; +function Ha(a,b){var c=0;a=Ga(String(a)).split(".");b=Ga(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&eb?1:0};var Ja;a:{var Ka=ia.navigator;if(Ka){var La=Ka.userAgent;if(La){Ja=La;break a}}Ja=""}function n(a){return-1!=Ja.indexOf(a)};function Ma(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function Na(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function Oa(a,b){return null!==a&&b in a}function Pa(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};function Qa(){return n("Firefox")||n("FxiOS")}function Ra(){return(n("Chrome")||n("CriOS"))&&!n("Edge")};function Sa(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};function Ta(){return n("iPhone")&&!n("iPod")&&!n("iPad")};function Ua(a){var b=Va;return Object.prototype.hasOwnProperty.call(b,534)?b[534]:b[534]=a(534)};var Wa=n("Macintosh"),Xa=n("Windows"),Ya,Za="",$a=/WebKit\/(\S+)/.exec(Ja);$a&&(Za=$a?$a[1]:"");Ya=Za;var Va={};function ab(){return Ua(function(){return 0<=Ha(Ya,534)})};function bb(a){this.b=a;this.a=0}function cb(a){a=a.match(db);for(var b=0;b]=|\s+|./g,eb=/^\s/;function q(a,b){return a.b[a.a+(b||0)]}bb.prototype.next=function(){return this.b[this.a++]};function fb(a){return a.b.length<=a.a};function u(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}u.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};u.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};u.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};u.prototype.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};function gb(a,b){this.width=a;this.height=b}gb.prototype.aspectRatio=function(){return this.width/this.height};gb.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};gb.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};gb.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; gb.prototype.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};function hb(a){return a?a.parentWindow||a.defaultView:window}function ib(a){for(;a&&1!=a.nodeType;)a=a.previousSibling;return a}function jb(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a} -function kb(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=1==a.nodeType,d=1==b.nodeType;if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,f=b.parentNode;return e==f?lb(a,b):!c&&jb(e,b)?-1*mb(a,b):!d&&jb(f,a)?mb(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=w(a);c=d.createRange();c.selectNode(a);c.collapse(!0);a=d.createRange();a.selectNode(b); -a.collapse(!0);return c.compareBoundaryPoints(ia.Range.START_TO_END,a)}function mb(a,b){var c=a.parentNode;if(c==b)return-1;for(;b.parentNode!=c;)b=b.parentNode;return lb(b,a)}function lb(a,b){for(;b=b.previousSibling;)if(b==a)return-1;return 1}function w(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function nb(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null} -function ob(a){try{var b=a&&a.activeElement;return b&&b.nodeName?b:null}catch(c){return null}}function pb(a){this.a=a||ia.document||document}pb.prototype.getElementsByTagName=function(a,b){return(b||this.a).getElementsByTagName(String(a))};function x(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:b,b=void 0==b||null==b?"":b);if("string"!=typeof b)if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;c=0;var d=[];for(b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return b} +function kb(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=1==a.nodeType,d=1==b.nodeType;if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,f=b.parentNode;return e==f?lb(a,b):!c&&jb(e,b)?-1*mb(a,b):!d&&jb(f,a)?mb(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=v(a);c=d.createRange();c.selectNode(a);c.collapse(!0);a=d.createRange();a.selectNode(b); +a.collapse(!0);return c.compareBoundaryPoints(ia.Range.START_TO_END,a)}function mb(a,b){var c=a.parentNode;if(c==b)return-1;for(;b.parentNode!=c;)b=b.parentNode;return lb(b,a)}function lb(a,b){for(;b=b.previousSibling;)if(b==a)return-1;return 1}function v(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function nb(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null} +function ob(a){try{var b=a&&a.activeElement;return b&&b.nodeName?b:null}catch(c){return null}}function pb(a){this.a=a||ia.document||document}pb.prototype.getElementsByTagName=function(a,b){return(b||this.a).getElementsByTagName(String(a))};function w(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:b,b=void 0==b||null==b?"":b);if("string"!=typeof b)if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;c=0;var d=[];for(b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return b} function qb(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function rb(a,b,c,d,e){return sb.call(null,a,b,ka(c)?c:null,ka(d)?d:null,e||new y)} function sb(a,b,c,d,e){b.getElementsByName&&d&&"name"==c?(b=b.getElementsByName(d),m(b,function(f){a.a(f)&&e.add(f)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),m(b,function(f){f.className==d&&a.a(f)&&e.add(f)})):a instanceof tb?ub(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.f()),m(b,function(f){qb(f,c,d)&&e.add(f)}));return e}function ub(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)qb(b,c,d)&&a.a(b)&&e.add(b),ub(a,b,c,d,e)};function y(){this.b=this.a=null;this.s=0}function vb(a){this.b=a;this.next=this.a=null}function wb(a,b){if(!a.a)return b;if(!b.a)return a;var c=a.a;b=b.a;for(var d=null,e,f=0;c&&b;)c.b==b.b?(e=c,c=c.next,b=b.next):0",4,2,function(a,b,c){return Hb(function(d,e){return d>e},a,b,c)});G("<=",4,2,function(a,b,c){return Hb(function(d,e){return d<=e},a,b,c)});G(">=",4,2,function(a,b,c){return Hb(function(d,e){return d>=e},a,b,c)});var Gb=G("=",3,2,function(a,b,c){return Hb(function(d,e){return d==e},a,b,c,!0)});G("!=",3,2,function(a,b,c){return Hb(function(d,e){return d!=e},a,b,c,!0)});G("and",2,2,function(a,b,c){return Eb(a,c)&&Eb(b,c)});G("or",1,2,function(a,b,c){return Eb(a,c)||Eb(b,c)});function Kb(a,b){if(b.a.length&&4!=a.l)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");A.call(this,a.l);this.c=a;this.g=b;this.j=a.j;this.b=a.b}h(Kb,A);Kb.prototype.a=function(a){a=this.c.a(a);return Lb(this.g,a)};Kb.prototype.toString=function(){var a="Filter:"+B(this.c);return a+=B(this.g)};function Mb(a,b){if(b.lengtha.F)throw Error("Function "+a.o+" expects at most "+a.F+" arguments, "+b.length+" given");a.O&&m(b,function(c,d){if(4!=c.l)throw Error("Argument "+d+" to function "+a.o+" is not of type Nodeset: "+c);});A.call(this,a.l);this.C=a;this.c=b;Cb(this,a.j||Ca(b,function(c){return c.j}));Db(this,a.N&&!b.length||a.M&&!!b.length||Ca(b,function(c){return c.b}))} -h(Mb,A);Mb.prototype.a=function(a){return this.C.u.apply(null,Ea(a,this.c))};Mb.prototype.toString=function(){var a="Function: "+this.C;if(this.c.length){var b=Ba(this.c,function(c,d){return c+B(d)},"Arguments:");a+=B(b)}return a};function Nb(a,b,c,d,e,f,g,k){this.o=a;this.l=b;this.j=c;this.N=d;this.M=!1;this.u=e;this.J=f;this.F=ja(g)?g:f;this.O=!!k}Nb.prototype.toString=function(){return this.o};var Ob={}; -function H(a,b,c,d,e,f,g,k){if(Ob.hasOwnProperty(a))throw Error("Function already created: "+a+".");Ob[a]=new Nb(a,b,c,d,e,f,g,k)}H("boolean",2,!1,!1,function(a,b){return Eb(b,a)},1);H("ceiling",1,!1,!1,function(a,b){return Math.ceil(E(b,a))},1);H("concat",3,!1,!1,function(a,b){return Ba(Fa(arguments,1),function(c,d){return c+F(d,a)},"")},2,null);H("contains",2,!1,!1,function(a,b,c){b=F(b,a);a=F(c,a);return-1!=b.indexOf(a)},2);H("count",1,!1,!1,function(a,b){return b.a(a).s},1,1,!0); -H("false",2,!1,!1,function(){return!1},0);H("floor",1,!1,!1,function(a,b){return Math.floor(E(b,a))},1);H("id",4,!1,!1,function(a,b){var c=a.a,d=9==c.nodeType?c:c.ownerDocument;a=F(b,a).split(/\s+/);var e=[];m(a,function(g){g=d.getElementById(g);!g||0<=za(e,g)||e.push(g)});e.sort(kb);var f=new y;m(e,function(g){f.add(g)});return f},1);H("lang",2,!1,!1,function(){return!1},1);H("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.f},0); -H("local-name",3,!1,!0,function(a,b){return(a=b?yb(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);H("name",3,!1,!0,function(a,b){return(a=b?yb(b.a(a)):a.a)?a.nodeName.toLowerCase():""},0,1,!0);H("namespace-uri",3,!0,!1,function(){return""},0,1,!0);H("normalize-space",3,!1,!0,function(a,b){return(b?F(b,a):x(a.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);H("not",2,!1,!1,function(a,b){return!Eb(b,a)},1);H("number",1,!1,!0,function(a,b){return b?E(b,a):+x(a.a)},0,1); -H("position",1,!0,!1,function(a){return a.b},0);H("round",1,!1,!1,function(a,b){return Math.round(E(b,a))},1);H("starts-with",2,!1,!1,function(a,b,c){b=F(b,a);a=F(c,a);return 0==b.lastIndexOf(a,0)},2);H("string",3,!1,!0,function(a,b){return b?F(b,a):x(a.a)},0,1);H("string-length",1,!1,!0,function(a,b){return(b?F(b,a):x(a.a)).length},0,1); -H("substring",3,!1,!1,function(a,b,c,d){c=E(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?E(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=F(b,a);return Infinity==d?a.substring(e):a.substring(e,c+Math.round(d))},2,3);H("substring-after",3,!1,!1,function(a,b,c){b=F(b,a);a=F(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2); -H("substring-before",3,!1,!1,function(a,b,c){b=F(b,a);a=F(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);H("sum",1,!1,!1,function(a,b){a=Ab(b.a(a));b=0;for(var c=a.next();c;c=a.next())b+=+x(c);return b},1,1,!0);H("translate",3,!1,!1,function(a,b,c,d){b=F(b,a);c=F(c,a);var e=F(d,a);a={};for(d=0;d",4,2,function(a,b,c){return Hb(function(d,e){return d>e},a,b,c)});E("<=",4,2,function(a,b,c){return Hb(function(d,e){return d<=e},a,b,c)});E(">=",4,2,function(a,b,c){return Hb(function(d,e){return d>=e},a,b,c)});var Gb=E("=",3,2,function(a,b,c){return Hb(function(d,e){return d==e},a,b,c,!0)});E("!=",3,2,function(a,b,c){return Hb(function(d,e){return d!=e},a,b,c,!0)});E("and",2,2,function(a,b,c){return Eb(a,c)&&Eb(b,c)});E("or",1,2,function(a,b,c){return Eb(a,c)||Eb(b,c)});function Kb(a,b){if(b.a.length&&4!=a.l)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");A.call(this,a.l);this.c=a;this.g=b;this.j=a.j;this.b=a.b}h(Kb,A);Kb.prototype.a=function(a){a=this.c.a(a);return Lb(this.g,a)};Kb.prototype.toString=function(){var a="Filter:"+B(this.c);return a+=B(this.g)};function Mb(a,b){if(b.lengtha.F)throw Error("Function "+a.o+" expects at most "+a.F+" arguments, "+b.length+" given");a.M&&m(b,function(c,d){if(4!=c.l)throw Error("Argument "+d+" to function "+a.o+" is not of type Nodeset: "+c);});A.call(this,a.l);this.C=a;this.c=b;Cb(this,a.j||Ca(b,function(c){return c.j}));Db(this,a.L&&!b.length||a.K&&!!b.length||Ca(b,function(c){return c.b}))} +h(Mb,A);Mb.prototype.a=function(a){return this.C.v.apply(null,Ea(a,this.c))};Mb.prototype.toString=function(){var a="Function: "+this.C;if(this.c.length){var b=Ba(this.c,function(c,d){return c+B(d)},"Arguments:");a+=B(b)}return a};function Nb(a,b,c,d,e,f,g,k){this.o=a;this.l=b;this.j=c;this.L=d;this.K=!1;this.v=e;this.H=f;this.F=ja(g)?g:f;this.M=!!k}Nb.prototype.toString=function(){return this.o};var Ob={}; +function F(a,b,c,d,e,f,g,k){if(Ob.hasOwnProperty(a))throw Error("Function already created: "+a+".");Ob[a]=new Nb(a,b,c,d,e,f,g,k)}F("boolean",2,!1,!1,function(a,b){return Eb(b,a)},1);F("ceiling",1,!1,!1,function(a,b){return Math.ceil(C(b,a))},1);F("concat",3,!1,!1,function(a,b){return Ba(Fa(arguments,1),function(c,d){return c+D(d,a)},"")},2,null);F("contains",2,!1,!1,function(a,b,c){b=D(b,a);a=D(c,a);return-1!=b.indexOf(a)},2);F("count",1,!1,!1,function(a,b){return b.a(a).s},1,1,!0); +F("false",2,!1,!1,function(){return!1},0);F("floor",1,!1,!1,function(a,b){return Math.floor(C(b,a))},1);F("id",4,!1,!1,function(a,b){var c=a.a,d=9==c.nodeType?c:c.ownerDocument;a=D(b,a).split(/\s+/);var e=[];m(a,function(g){g=d.getElementById(g);!g||0<=za(e,g)||e.push(g)});e.sort(kb);var f=new y;m(e,function(g){f.add(g)});return f},1);F("lang",2,!1,!1,function(){return!1},1);F("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.f},0); +F("local-name",3,!1,!0,function(a,b){return(a=b?yb(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);F("name",3,!1,!0,function(a,b){return(a=b?yb(b.a(a)):a.a)?a.nodeName.toLowerCase():""},0,1,!0);F("namespace-uri",3,!0,!1,function(){return""},0,1,!0);F("normalize-space",3,!1,!0,function(a,b){return(b?D(b,a):w(a.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);F("not",2,!1,!1,function(a,b){return!Eb(b,a)},1);F("number",1,!1,!0,function(a,b){return b?C(b,a):+w(a.a)},0,1); +F("position",1,!0,!1,function(a){return a.b},0);F("round",1,!1,!1,function(a,b){return Math.round(C(b,a))},1);F("starts-with",2,!1,!1,function(a,b,c){b=D(b,a);a=D(c,a);return 0==b.lastIndexOf(a,0)},2);F("string",3,!1,!0,function(a,b){return b?D(b,a):w(a.a)},0,1);F("string-length",1,!1,!0,function(a,b){return(b?D(b,a):w(a.a)).length},0,1); +F("substring",3,!1,!1,function(a,b,c,d){c=C(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?C(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=D(b,a);return Infinity==d?a.substring(e):a.substring(e,c+Math.round(d))},2,3);F("substring-after",3,!1,!1,function(a,b,c){b=D(b,a);a=D(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2); +F("substring-before",3,!1,!1,function(a,b,c){b=D(b,a);a=D(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);F("sum",1,!1,!1,function(a,b){a=Ab(b.a(a));b=0;for(var c=a.next();c;c=a.next())b+=+w(c);return b},1,1,!0);F("translate",3,!1,!1,function(a,b,c,d){b=D(b,a);c=D(c,a);var e=D(d,a);a={};for(d=0;da.length)throw Error("Unclosed literal string");return new Qb(a)} -function qc(a){var b=[];if(Xb(r(a.a))){var c=a.a.next();var d=r(a.a);if("/"==c&&(fb(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new Vb;d=new Vb;J(a,"Missing next location step.");c=rc(a,c);b.push(c)}else{a:{c=r(a.a);d=c.charAt(0);switch(d){case "$":throw Error("Variable reference not allowed in HTML XPath");case "(":a.a.next();c=lc(a);J(a,'unclosed "("');nc(a,")");break;case '"':case "'":c=pc(a);break;default:if(isNaN(+c))if(!Pb(c)&&/(?![0-9])[\w]/.test(d)&&"("==r(a.a, -1)){c=a.a.next();c=Ob[c]||null;a.a.next();for(d=[];")"!=r(a.a);){J(a,"Missing function argument list.");d.push(lc(a));if(","!=r(a.a))break;a.a.next()}J(a,"Unclosed function argument list.");oc(a);c=new Mb(c,d)}else{c=null;break a}else c=new Sb(+a.a.next())}"["==r(a.a)&&(d=new $b(sc(a)),c=new Kb(c,d))}if(c)if(Xb(r(a.a)))d=c;else return c;else c=rc(a,"/"),d=new Wb,b.push(c)}for(;Xb(r(a.a));)c=a.a.next(),J(a,"Missing next location step."),c=rc(a,c),b.push(c);return new Tb(d,b)} -function rc(a,b){if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==r(a.a)){var c=new ac(gc,new tb("node"));a.a.next();return c}if(".."==r(a.a))return c=new ac(fc,new tb("node")),a.a.next(),c;if("@"==r(a.a)){var d=Ub;a.a.next();J(a,"Missing attribute name")}else if("::"==r(a.a,1)){if(!/(?![0-9])[\w]/.test(r(a.a).charAt(0)))throw Error("Bad token: "+a.a.next());var e=a.a.next();d=ec[e]||null;if(!d)throw Error("No axis with name: "+e);a.a.next();J(a,"Missing node name")}else d= -bc;e=r(a.a);if(/(?![0-9])[\w\*]/.test(e.charAt(0)))if("("==r(a.a,1)){if(!Pb(e))throw Error("Invalid node type: "+e);e=a.a.next();if(!Pb(e))throw Error("Invalid type name: "+e);nc(a,"(");J(a,"Bad nodetype");var f=r(a.a).charAt(0),g=null;if('"'==f||"'"==f)g=pc(a);J(a,"Bad nodetype");oc(a);e=new tb(e,g)}else if(e=a.a.next(),f=e.indexOf(":"),-1==f)e=new Rb(e);else{g=e.substring(0,f);if("*"==g)var k="*";else if(k=a.b(g),!k)throw Error("Namespace prefix not declared: "+g);e=e.substr(f+1);e=new Rb(e,k)}else throw Error("Bad token: "+ -a.a.next());a=new $b(sc(a),d.A);return c||new ac(d,e,a,"//"==b)}function sc(a){for(var b=[];"["==r(a.a);){a.a.next();J(a,"Missing predicate expression.");var c=lc(a);b.push(c);J(a,"Unclosed predicate expression.");nc(a,"]")}return b}function mc(a){if("-"==r(a.a))return a.a.next(),new hc(mc(a));var b=qc(a);if("|"!=r(a.a))a=b;else{for(b=[b];"|"==a.a.next();)J(a,"Missing next union location path."),b.push(qc(a));a.a.a--;a=new jc(b)}return a};function tc(a){switch(a.nodeType){case 1:return va(uc,a);case 9:return tc(a.documentElement);case 11:case 10:case 6:case 12:return vc;default:return a.parentNode?tc(a.parentNode):vc}}function vc(){return null}function uc(a,b){if(a.prefix==b)return a.namespaceURI||"http://www.w3.org/1999/xhtml";var c=a.getAttributeNode("xmlns:"+b);return c&&c.specified?c.value||null:a.parentNode&&9!=a.parentNode.nodeType?uc(a.parentNode,b):null};function wc(a,b){if(!a.length)throw Error("Empty XPath expression.");a=cb(a);if(fb(a))throw Error("Invalid XPath expression.");b?oa(b)||(b=ua(b.lookupNamespaceURI,b)):b=function(){return null};var c=lc(new kc(a,b));if(!fb(a))throw Error("Bad token: "+a.next());this.evaluate=function(d,e){d=c.a(new ya(d));return new K(d,e)}} +function qc(a){var b=[];if(Xb(q(a.a))){var c=a.a.next();var d=q(a.a);if("/"==c&&(fb(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new Vb;d=new Vb;J(a,"Missing next location step.");c=rc(a,c);b.push(c)}else{a:{c=q(a.a);d=c.charAt(0);switch(d){case "$":throw Error("Variable reference not allowed in HTML XPath");case "(":a.a.next();c=lc(a);J(a,'unclosed "("');nc(a,")");break;case '"':case "'":c=pc(a);break;default:if(isNaN(+c))if(!Pb(c)&&/(?![0-9])[\w]/.test(d)&&"("==q(a.a, +1)){c=a.a.next();c=Ob[c]||null;a.a.next();for(d=[];")"!=q(a.a);){J(a,"Missing function argument list.");d.push(lc(a));if(","!=q(a.a))break;a.a.next()}J(a,"Unclosed function argument list.");oc(a);c=new Mb(c,d)}else{c=null;break a}else c=new Sb(+a.a.next())}"["==q(a.a)&&(d=new $b(sc(a)),c=new Kb(c,d))}if(c)if(Xb(q(a.a)))d=c;else return c;else c=rc(a,"/"),d=new Wb,b.push(c)}for(;Xb(q(a.a));)c=a.a.next(),J(a,"Missing next location step."),c=rc(a,c),b.push(c);return new Tb(d,b)} +function rc(a,b){if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==q(a.a)){var c=new ac(gc,new tb("node"));a.a.next();return c}if(".."==q(a.a))return c=new ac(fc,new tb("node")),a.a.next(),c;if("@"==q(a.a)){var d=Ub;a.a.next();J(a,"Missing attribute name")}else if("::"==q(a.a,1)){if(!/(?![0-9])[\w]/.test(q(a.a).charAt(0)))throw Error("Bad token: "+a.a.next());var e=a.a.next();d=ec[e]||null;if(!d)throw Error("No axis with name: "+e);a.a.next();J(a,"Missing node name")}else d= +bc;e=q(a.a);if(/(?![0-9])[\w\*]/.test(e.charAt(0)))if("("==q(a.a,1)){if(!Pb(e))throw Error("Invalid node type: "+e);e=a.a.next();if(!Pb(e))throw Error("Invalid type name: "+e);nc(a,"(");J(a,"Bad nodetype");var f=q(a.a).charAt(0),g=null;if('"'==f||"'"==f)g=pc(a);J(a,"Bad nodetype");oc(a);e=new tb(e,g)}else if(e=a.a.next(),f=e.indexOf(":"),-1==f)e=new Rb(e);else{g=e.substring(0,f);if("*"==g)var k="*";else if(k=a.b(g),!k)throw Error("Namespace prefix not declared: "+g);e=e.substr(f+1);e=new Rb(e,k)}else throw Error("Bad token: "+ +a.a.next());a=new $b(sc(a),d.A);return c||new ac(d,e,a,"//"==b)}function sc(a){for(var b=[];"["==q(a.a);){a.a.next();J(a,"Missing predicate expression.");var c=lc(a);b.push(c);J(a,"Unclosed predicate expression.");nc(a,"]")}return b}function mc(a){if("-"==q(a.a))return a.a.next(),new ic(mc(a));var b=qc(a);if("|"!=q(a.a))a=b;else{for(b=[b];"|"==a.a.next();)J(a,"Missing next union location path."),b.push(qc(a));a.a.a--;a=new jc(b)}return a};function tc(a){switch(a.nodeType){case 1:return va(uc,a);case 9:return tc(a.documentElement);case 11:case 10:case 6:case 12:return vc;default:return a.parentNode?tc(a.parentNode):vc}}function vc(){return null}function uc(a,b){if(a.prefix==b)return a.namespaceURI||"http://www.w3.org/1999/xhtml";var c=a.getAttributeNode("xmlns:"+b);return c&&c.specified?c.value||null:a.parentNode&&9!=a.parentNode.nodeType?uc(a.parentNode,b):null};function wc(a,b){if(!a.length)throw Error("Empty XPath expression.");a=cb(a);if(fb(a))throw Error("Invalid XPath expression.");b?oa(b)||(b=ua(b.lookupNamespaceURI,b)):b=function(){return null};var c=lc(new kc(a,b));if(!fb(a))throw Error("Bad token: "+a.next());this.evaluate=function(d,e){d=c.a(new ya(d));return new K(d,e)}} function K(a,b){if(0==b)if(a instanceof y)b=4;else if("string"==typeof a)b=2;else if("number"==typeof a)b=1;else if("boolean"==typeof a)b=3;else throw Error("Unexpected evaluation result.");if(2!=b&&1!=b&&3!=b&&!(a instanceof y))throw Error("value could not be converted to the specified type");this.resultType=b;switch(b){case 2:this.stringValue=a instanceof y?zb(a):""+a;break;case 1:this.numberValue=a instanceof y?+zb(a):+a;break;case 3:this.booleanValue=a instanceof y?0=d.length?null:d[f++]};this.snapshotItem=function(g){if(6!=b&&7!=b)throw Error("snapshotItem called with wrong result type");return g>=d.length||0>g?null:d[g]}}K.ANY_TYPE=0; K.NUMBER_TYPE=1;K.STRING_TYPE=2;K.BOOLEAN_TYPE=3;K.UNORDERED_NODE_ITERATOR_TYPE=4;K.ORDERED_NODE_ITERATOR_TYPE=5;K.UNORDERED_NODE_SNAPSHOT_TYPE=6;K.ORDERED_NODE_SNAPSHOT_TYPE=7;K.ANY_UNORDERED_NODE_TYPE=8;K.FIRST_ORDERED_NODE_TYPE=9;function xc(a){this.lookupNamespaceURI=tc(a)} @@ -84,64 +84,61 @@ ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#0 lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1", moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57", seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var Bc="backgroundColor borderTopColor borderRightColor borderBottomColor borderLeftColor color outlineColor".split(" "),Cc=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,Dc=/^#(?:[0-9a-f]{3}){1,2}$/i,Ec=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i,Fc=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function L(a,b){this.code=a;this.a=M[a]||Gc;this.message=b||"";a=this.a.replace(/((?:^|\s+)[a-z])/g,function(c){return c.toUpperCase().replace(/^[\s\xa0]+/g,"")});b=a.length-5;if(0>b||a.indexOf("Error",b)!=b)a+="Error";this.name=a;a=Error(this.message);a.name=this.name;this.stack=a.stack||""}h(L,Error);var Gc="unknown error",M={15:"element not selectable",11:"element not visible"};M[31]=Gc;M[30]=Gc;M[24]="invalid cookie domain";M[29]="invalid element coordinates";M[12]="invalid element state"; -M[32]="invalid selector";M[51]="invalid selector";M[52]="invalid selector";M[17]="javascript error";M[405]="unsupported operation";M[34]="move target out of bounds";M[27]="no such alert";M[7]="no such element";M[8]="no such frame";M[23]="no such window";M[28]="script timeout";M[33]="session not created";M[10]="stale element reference";M[21]="timeout";M[25]="unable to set cookie";M[26]="unexpected alert open";M[13]=Gc;M[9]="unknown command";var Hc=Qa(),Ic=Ta()||p("iPod"),Jc=p("iPad"),Kc=p("Android")&&!(Ra()||Qa()||p("Opera")||p("Silk")),Lc=Ra(),Mc=p("Safari")&&!(Ra()||p("Coast")||p("Opera")||p("Edge")||p("Edg/")||p("OPR")||Qa()||p("Silk")||p("Android"))&&!(Ta()||p("iPad")||p("iPod"));function Nc(a){return(a=a.exec(Ja))?a[1]:""}var Oc=function(){if(Hc)return Nc(/Firefox\/([0-9.]+)/);if(Lc)return Ta()||p("iPad")||p("iPod")?Nc(/CriOS\/([0-9.]+)/):Nc(/Chrome\/([0-9.]+)/);if(Mc&&!(Ta()||p("iPad")||p("iPod")))return Nc(/Version\/([0-9.]+)/);if(Ic||Jc){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Ja);if(a)return a[1]+"."+a[2]}else if(Kc)return(a=Nc(/Android\s+([0-9.]+)/))?a:Nc(/Version\/([0-9.]+)/);return""}();function Pc(a){return Kc?0<=Ha(Qc,a):0<=Ha(Oc,a)}var Rc=Jc||Ic,Sc;if(Kc){var Tc=/Android\s+([0-9\.]+)/.exec(Ja);Sc=Tc?Tc[1]:"0"}else Sc="0";var Qc=Sc,Uc=10<=Number(void 0);function Vc(a){var b="tabindex";return"style"==b?Wc(a.style.cssText):(a=a.getAttributeNode(b))&&a.specified?a.value:null}var Xc=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/;function Wc(a){var b=[];m(a.split(Xc),function(c){var d=c.indexOf(":");0=b&&0<=d&&255>=d&&0<=e&&255>=e&&0<=c&&1>=c){b=[b,d,e,c];break b}}b=null}if(!b)b:{if(e=a.match(Fc))if(b=Number(e[1]),d=Number(e[2]),e=Number(e[3]),0<=b&&255>=b&&0<=d&&255>=d&&0<=e&&255>=e){b=[b,d,e,1];break b}b=null}if(!b)b:{b=a.toLowerCase();d=Ac[b.toLowerCase()]; -if(!d&&(d="#"==b.charAt(0)?b:"#"+b,4==d.length&&(d=d.replace(Cc,"#$1$1$2$2$3$3")),!Dc.test(d))){b=null;break b}b=[parseInt(d.substr(1,2),16),parseInt(d.substr(3,2),16),parseInt(d.substr(5,2),16),1]}a=b?"rgba("+b.join(", ")+")":a}return a}function od(a,b){var c=a.currentStyle||a.style,d=c[b];!ja(d)&&oa(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?ja(d)?d:null:(a=nd(a))?od(a,b):null} -function pd(a,b,c){function d(g){var k=qd(g);return 0=C.left+C.width;C=b.top>=C.top+C.height;if(D&&"hidden"==t.x||C&&"hidden"==t.y)return R;if(D&&"visible"!=t.x||C&&"visible"!=t.y){if(n&&(t=e(a),b.left>=g.scrollWidth-t.x||b.right>=g.scrollHeight-t.y))return R;b=rd(a);return b==R?R:"scroll"}}}return"none"} -function qd(a){var b=sd(a);if(b)return b.rect;if(N(a,"HTML"))return a=(hb(w(a))||window).document,a="CSS1Compat"==a.compatMode?a.documentElement:a.body,a=new gb(a.clientWidth,a.clientHeight),new P(0,0,a.width,a.height);try{var c=a.getBoundingClientRect()}catch(d){return new P(0,0,0,0)}return new P(c.left,c.top,c.right-c.left,c.bottom-c.top)} -function sd(a){var b=N(a,"MAP");if(!b&&!N(a,"AREA"))return null;var c=b?a:N(a.parentNode,"MAP")?a.parentNode:null,d=null,e=null;c&&c.name&&(d=O.R('/descendant::*[@usemap = "#'+c.name+'"]',w(c)))&&(e=qd(d),b||"default"==a.shape.toLowerCase()||(a=xd(a),b=Math.min(Math.max(a.left,0),e.width),c=Math.min(Math.max(a.top,0),e.height),e=new P(b+e.left,c+e.top,Math.min(a.width,e.width-b),Math.min(a.height,e.height-c))));return{image:d,rect:e||new P(0,0,0,0)}} -function xd(a){var b=a.shape.toLowerCase();a=a.coords.split(",");if("rect"==b&&4==a.length){b=a[0];var c=a[1];return new P(b,c,a[2]-b,a[3]-c)}if("circle"==b&&3==a.length)return b=a[2],new P(a[0]-b,a[1]-b,2*b,2*b);if("poly"==b&&2=b&&0<=d&&255>=d&&0<=e&&255>=e&&0<=c&&1>=c){b=[b,d,e,c];break b}}b=null}if(!b)b:{if(e=a.match(Fc))if(b=Number(e[1]),d=Number(e[2]),e=Number(e[3]),0<=b&&255>=b&&0<=d&&255>=d&&0<=e&&255>=e){b=[b,d,e,1];break b}b=null}if(!b)b:{b=a.toLowerCase();d=Ac[b.toLowerCase()]; +if(!d&&(d="#"==b.charAt(0)?b:"#"+b,4==d.length&&(d=d.replace(Cc,"#$1$1$2$2$3$3")),!Dc.test(d))){b=null;break b}b=[parseInt(d.substr(1,2),16),parseInt(d.substr(3,2),16),parseInt(d.substr(5,2),16),1]}a=b?"rgba("+b.join(", ")+")":a}return a}function pd(a,b){var c=a.currentStyle||a.style,d=c[b];!ja(d)&&oa(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?ja(d)?d:null:(a=od(a))?pd(a,b):null} +function qd(a,b,c){function d(g){var k=rd(g);return 0=G.left+G.width;G=b.top>=G.top+G.height;if(H&&"hidden"==t.x||G&&"hidden"==t.y)return Q;if(H&&"visible"!=t.x||G&&"visible"!=t.y){if(p&&(t=e(a),b.left>=g.scrollWidth-t.x||b.right>=g.scrollHeight-t.y))return Q;b=ud(a);return b==Q?Q:"scroll"}}}return"none"} +function rd(a){var b=vd(a);if(b)return b.rect;if(N(a,"HTML"))return a=(hb(v(a))||window).document,a="CSS1Compat"==a.compatMode?a.documentElement:a.body,a=new gb(a.clientWidth,a.clientHeight),new O(0,0,a.width,a.height);try{var c=a.getBoundingClientRect()}catch(d){return new O(0,0,0,0)}return new O(c.left,c.top,c.right-c.left,c.bottom-c.top)} +function vd(a){var b=N(a,"MAP");if(!b&&!N(a,"AREA"))return null;var c=b?a:N(a.parentNode,"MAP")?a.parentNode:null,d=null,e=null;c&&c.name&&(d=$c.O('*[usemap="#'+c.name+'"]',v(c)))&&(e=rd(d),b||"default"==a.shape.toLowerCase()||(a=yd(a),b=Math.min(Math.max(a.left,0),e.width),c=Math.min(Math.max(a.top,0),e.height),e=new O(b+e.left,c+e.top,Math.min(a.width,e.width-b),Math.min(a.height,e.height-c))));return{image:d,rect:e||new O(0,0,0,0)}} +function yd(a){var b=a.shape.toLowerCase();a=a.coords.split(",");if("rect"==b&&4==a.length){b=a[0];var c=a[1];return new O(b,c,a[2]-b,a[3]-c)}if("circle"==b&&3==a.length)return b=a[2],new O(a[0]-b,a[1]-b,2*b,2*b);if("poly"==b&&2");V(191,"/","?");V(192,"`","~");V(219,"[","{");V(220,"\\","|");V(221,"]","}");var Af=V({i:59,h:186},";",":");V(222,"'",'"');var Bf=[Ie,He,We,W],Cf=new ue;Cf.set(1,W);Cf.set(2,He);Cf.set(4,Ie);Cf.set(8,We); var Df=function(a){var b=new ue;m(ve(a),function(c){b.set(a.get(c).code,c)});return b}(Cf);function Be(a,b,c){if(0<=za(Bf,b)){var d=Df.get(b.code),e=a.m;e.a=c?e.a|d:e.a&~d}c?a.g.add(b):(a=a.g.a,b=ze(b),xe(a.b,b)&&(delete a.b[b],a.f--,a.a.length>2*a.f&&we(a)))}function X(a,b){b=ze(b);return xe(a.g.a.b,b)} -function Ef(a,b){if(0<=za(Bf,b)&&X(a,b))throw new L(13,"Cannot press a modifier key that is already pressed.");var c=null!==b.code&&Ff(a,Ud,b);if(c&&(!b.a&&b!=Ge||Ff(a,Cd,b,!c))&&c&&(Gf(a,b),a.c))if(b.a){c=Hf(a,b);var d=qe(a.a,!0)[0]+1;If(a.a)?(te(a.a,c),oe(a.a,d)):a.a.value+=c;U(a.a,Ld);U(a.a,Jd);a.b=d}else switch(b){case Ge:U(a.a,Ld);N(a.a,"TEXTAREA")&&(c=qe(a.a,!0)[0]+1,If(a.a)?(te(a.a,"\n"),oe(a.a,c)):a.a.value+="\n",U(a.a,Jd),a.b=c);break;case Ee:case Ve:Jf(a.a);c=qe(a.a,!1);c[0]==c[1]&&(b== +function Ef(a,b){if(0<=za(Bf,b)&&X(a,b))throw new L(13,"Cannot press a modifier key that is already pressed.");var c=null!==b.code&&Ff(a,Ud,b);if(c&&(!b.a&&b!=Ge||Ff(a,Dd,b,!c))&&c&&(Gf(a,b),a.c))if(b.a){c=Hf(a,b);var d=qe(a.a,!0)[0]+1;If(a.a)?(te(a.a,c),oe(a.a,d)):a.a.value+=c;U(a.a,Ld);U(a.a,Jd);a.b=d}else switch(b){case Ge:U(a.a,Ld);N(a.a,"TEXTAREA")&&(c=qe(a.a,!0)[0]+1,If(a.a)?(te(a.a,"\n"),oe(a.a,c)):a.a.value+="\n",U(a.a,Jd),a.b=c);break;case Ee:case Ve:Jf(a.a);c=qe(a.a,!1);c[0]==c[1]&&(b== Ee?(oe(a.a,c[1]-1),re(a.a,c[1])):re(a.a,c[1]+1));c=qe(a.a,!1);c=!(c[0]==a.a.value.length||0==c[1]);te(a.a,"");c&&U(a.a,Jd);c=qe(a.a,!1);a.b=c[1];break;case Qe:case Se:Jf(a.a);c=a.a;var e=qe(c,!0)[0],f=qe(c,!1)[1],g=d=0;b==Qe?X(a,W)?a.b==e?(d=Math.max(e-1,0),g=f,e=d):(d=e,e=g=f-1):e=e==f?Math.max(e-1,0):e:X(a,W)?a.b==f?(d=e,e=g=Math.min(f+1,c.value.length)):(d=e+1,g=f,e=d):e=e==f?Math.min(f+1,c.value.length):f;X(a,W)?(oe(c,d),re(c,g)):se(c,e);a.b=e;break;case Pe:case Oe:Jf(a.a),c=a.a,d=qe(c,!0)[0], g=qe(c,!1)[1],b==Pe?(X(a,W)?(oe(c,0),re(c,a.b==d?g:d)):se(c,0),a.b=0):(X(a,W)?(a.b==d&&oe(c,g),re(c,c.value.length)):se(c,c.value.length),a.b=c.value.length)}Be(a,b,!0)}function Gf(a,b){b==Ge&&N(a.a,"INPUT")&&(a=nb(a.a,me,!0))&&(b=a.getElementsByTagName("input"),!Ca(b,function(c){a:{if(N(c,"INPUT")){var d=c.type.toLowerCase();if("submit"==d||"image"==d){c=!0;break a}}if(N(c,"BUTTON")&&(d=c.type.toLowerCase(),"submit"==d)){c=!0;break a}c=!1}return c})&&1!=b.length&&ab()||ne(a))} function Kf(a,b){if(!X(a,b))throw new L(13,"Cannot release a key that is not pressed. ("+b.code+")");null===b.code||Ff(a,Vd,b);Be(a,b,!1)}function Hf(a,b){if(!b.a)throw new L(13,"not a character key");return X(a,W)?b.b:b.a} function Jf(a){try{if("number"==typeof a.selectionStart)return}catch(b){if(-1!=b.message.indexOf("does not support selection."))throw Error(b.message+" (For more information, see https://code.google.com/p/chromium/issues/detail?id=330456)");throw b;}throw Error("Element does not support selection");}function If(a){try{Jf(a)}catch(b){return!1}return!0} -function Ff(a,b,c,d){if(null===c.code)throw new L(13,"Key must have a keycode to be fired.");c={altKey:X(a,Ie),ctrlKey:X(a,He),metaKey:X(a,We),shiftKey:X(a,W),keyCode:c.code,charCode:c.a&&b==Cd?Hf(a,c).charCodeAt(0):0,preventDefault:!!d};return U(a.a,b,c)}function Lf(a,b){fe(a,b);a.c=id(b);var c=le(a);a.c&&c&&(se(b,b.value.length),a.b=b.value.length)};function Mf(a,b,c){xa(this,b,c);this.g=this.b=null;this.c=new v(0,0);this.D=this.v=!1;if(a){"number"==typeof a.buttonPressed&&(this.b=a.buttonPressed);try{N(a.elementPressed)&&(this.g=a.elementPressed)}catch(d){this.b=null}this.c=new v(a.clientXY.x,a.clientXY.y);this.v=!!a.nextClickIsDoubleClick;this.D=!!a.hasEverInteracted;try{a.element&&N(a.element)&&fe(this,a.element)}catch(d){this.b=null}}}h(Mf,ee);var Y={};Y[Md]=[0,1,2,null];Y[Nd]=[null,null,2,null];Y[Td]=[0,1,2,null];Y[Rd]=[0,1,2,0]; -Y[Qd]=[0,1,2,0];Uc&&(Y[$d]=Y[Td],Y[de]=Y[Td],Y[ae]=[-1,-1,-1,-1],Y[ce]=Y[ae],Y[be]=Y[ae]);Y[Od]=Y[Md];Y[Pd]=Y[Td];Y[Sd]=Y[Rd];var Nf={};Nf[Pd]=$d;Nf[Qd]=ae;Nf[Rd]=ce;Nf[Sd]=be;Nf[Td]=de;function Of(a,b,c,d,e,f){a.D=!0;if(Uc){var g=Nf[b];if(g&&!ke(a,g,a.c,Pf(a,g),!0,c,e))return!1}return he(a,b,a.c,Pf(a,b),c,d,e,null,f)}function Pf(a,b){if(!(b in Y))return 0;a=Y[b][null===a.b?3:a.b];if(null===a)throw new L(13,"Event does not permit the specified mouse button.");return a};function Qf(a,b){this.x=a;this.y=b}h(Qf,v);Qf.prototype.scale=v.prototype.scale;Qf.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};function Rf(a,b,c,d){function e(k){ka(k)?m(k.split(""),function(l){if(1!=l.length)throw new L(13,"Argument not a single character: "+l);var n=Ce[l];n||(n=l.toUpperCase(),n=V(n.charCodeAt(0),l.toLowerCase(),n),n={key:n,shift:l!=n.a});l=n;n=X(f,W);l.shift&&!n&&Ef(f,W);Ef(f,l.key);Kf(f,l.key);l.shift&&!n&&Kf(f,W)}):0<=za(Bf,k)?X(f,k)?Kf(f,k):Ef(f,k):(Ef(f,k),Kf(f,k))}if(a!=ob(w(a))){if(!dd(a))throw new L(12,"Element is not currently interactable and may not be manipulated");Sf(a)}var f=c||new Ae;Lf(f, +function Ff(a,b,c,d){if(null===c.code)throw new L(13,"Key must have a keycode to be fired.");c={altKey:X(a,Ie),ctrlKey:X(a,He),metaKey:X(a,We),shiftKey:X(a,W),keyCode:c.code,charCode:c.a&&b==Dd?Hf(a,c).charCodeAt(0):0,preventDefault:!!d};return U(a.a,b,c)}function Lf(a,b){fe(a,b);a.c=jd(b);var c=le(a);a.c&&c&&(se(b,b.value.length),a.b=b.value.length)};function Mf(a,b,c){xa(this,b,c);this.g=this.b=null;this.c=new u(0,0);this.D=this.u=!1;if(a){"number"==typeof a.buttonPressed&&(this.b=a.buttonPressed);try{N(a.elementPressed)&&(this.g=a.elementPressed)}catch(d){this.b=null}this.c=new u(a.clientXY.x,a.clientXY.y);this.u=!!a.nextClickIsDoubleClick;this.D=!!a.hasEverInteracted;try{a.element&&N(a.element)&&fe(this,a.element)}catch(d){this.b=null}}}h(Mf,ee);var Y={};Y[Md]=[0,1,2,null];Y[Nd]=[null,null,2,null];Y[Td]=[0,1,2,null];Y[Rd]=[0,1,2,0]; +Y[Qd]=[0,1,2,0];Uc&&(Y[$d]=Y[Td],Y[de]=Y[Td],Y[ae]=[-1,-1,-1,-1],Y[ce]=Y[ae],Y[be]=Y[ae]);Y[Od]=Y[Md];Y[Pd]=Y[Td];Y[Sd]=Y[Rd];var Nf={};Nf[Pd]=$d;Nf[Qd]=ae;Nf[Rd]=ce;Nf[Sd]=be;Nf[Td]=de;function Of(a,b,c,d,e,f){a.D=!0;if(Uc){var g=Nf[b];if(g&&!ke(a,g,a.c,Pf(a,g),!0,c,e))return!1}return he(a,b,a.c,Pf(a,b),c,d,e,null,f)}function Pf(a,b){if(!(b in Y))return 0;a=Y[b][null===a.b?3:a.b];if(null===a)throw new L(13,"Event does not permit the specified mouse button.");return a};function Qf(a,b){this.x=a;this.y=b}h(Qf,u);Qf.prototype.scale=u.prototype.scale;Qf.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};function Rf(a,b,c,d){function e(k){ka(k)?m(k.split(""),function(l){if(1!=l.length)throw new L(13,"Argument not a single character: "+l);var p=Ce[l];p||(p=l.toUpperCase(),p=V(p.charCodeAt(0),l.toLowerCase(),p),p={key:p,shift:l!=p.a});l=p;p=X(f,W);l.shift&&!p&&Ef(f,W);Ef(f,l.key);Kf(f,l.key);l.shift&&!p&&Kf(f,W)}):0<=za(Bf,k)?X(f,k)?Kf(f,k):Ef(f,k):(Ef(f,k),Kf(f,k))}if(a!=ob(v(a))){if(!ed(a))throw new L(12,"Element is not currently interactable and may not be manipulated");Sf(a)}var f=c||new Ae;Lf(f, a);if("date"==a.type){c="array"==ma(b)?b=b.join(""):b;var g=/\d{4}-\d{2}-\d{2}/;if(c.match(g)){Mc&&(U(a,Xd),U(a,Wd));U(a,Id);a.value=c.match(g)[0];U(a,Hd);U(a,Gd);return}}"array"==ma(b)?m(b,e):e(b);d||m(Bf,function(k){X(f,k)&&Kf(f,k)})} -function Tf(a,b,c,d){if(!ed(a))throw new L(11,"Element is not currently visible and may not be manipulated");Sf(a,b||void 0);b?b=new Qf(b.x,b.y):(b=Uf(a),b=new Qf(b.width/2,b.height/2));c=c||new Mf;var e=b;b=dd(a);var f=qd(a);c.c.x=e.x+f.left;c.c.y=e.y+f.top;e=c.a;if(a!=e){try{hb(w(e)).closed&&(e=null)}catch(l){e=null}e&&(f=e===zc.document.documentElement||e===zc.document.body,e=!c.D&&f?null:e,Of(c,Rd,a));fe(c,a);Of(c,Sd,e,null,b)}Of(c,Qd,null,null,b);c.v=!1;if(null!==c.b)throw new L(13,"Cannot press more than one button or an already pressed button."); -c.b=0;c.g=c.a;if(N(c.a,"OPTION")||N(c.a,"SELECT")||Of(c,Pd,null,null,!1,void 0))Uc&&0==c.b&&N(c.g,"OPTION")&&ke(c,Yd,c.c,0,!0),le(c);if(null===c.b)throw new L(13,"Cannot release a button when no button is pressed.");c.f&&dd(c.a)&&(a=c.f,b=Zc(c.a),!b||a.multiple)&&(c.a.selected=!b,(!a.multiple||Lc&&Pc(28)||Kc&&Pc(4))&&U(a,Hd));a=dd(c.a);Of(c,Td,null,null,d,void 0);try{if(0==c.b&&c.a==c.g){var g=c.c,k=Pf(c,Md);if(a||dd(c.a))!c.f&&Yc(c.a)&&Zc(c.a),he(c,Md,g,k,null,0,a,void 0);c.v&&Of(c,Od);c.v=!c.v; -Uc&&0==c.b&&N(c.g,"OPTION")&&ke(c,Zd,new v(0,0),0,!1)}else 2==c.b&&Of(c,Nd)}catch(l){}ie={};c.b=null;c.g=null}function Uf(a){if("none"!=(ad(a,"display")||(a.currentStyle?a.currentStyle.display:null)||a.style&&a.style.display))var b=bd(a);else{b=a.style;var c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";var f=bd(a);b.display=c;b.position=e;b.visibility=d;b=f}return 0=n){var t=Z.a[n];if(null===t)g.push(k=e()),f&&(k.persist=!1,g.push(k=e()));else if(ja(t))k.keys.push(t);else throw Error("Unsupported WebDriver key: \\u"+n.charCodeAt(0).toString(16));}else switch(n){case "\n":k.keys.push(Ge);break;case "\t":k.keys.push(Fe);break;case "\b":k.keys.push(Ee);break;default:k.keys.push(n)}})});m(g,function(l){Rf(a, +function Zf(a,b){a=decodeURIComponent(a);b=b||document;var c=$f(b);if(!Oa(c,a))throw new L(10,"Element does not exist in cache");var d=c[a];if(Oa(d,"setInterval")){if(d.closed)throw delete c[a],new L(23,"Window has been closed.");return d}for(var e=d;e;){if(e==b.documentElement)return d;e.host&&11===e.nodeType&&(e=e.host);e=e.parentNode}delete c[a];throw new L(10,"Element is no longer attached to the DOM");};function Z(a,b,c,d){function e(){return{persist:f,keys:[]}}var f=!!d,g=[],k=e();g.push(k);m(b,function(l){m(l.split(""),function(p){if("\ue000"<=p&&"\ue03d">=p){var t=Z.a[p];if(null===t)g.push(k=e()),f&&(k.persist=!1,g.push(k=e()));else if(ja(t))k.keys.push(t);else throw Error("Unsupported WebDriver key: \\u"+p.charCodeAt(0).toString(16));}else switch(p){case "\n":k.keys.push(Ge);break;case "\t":k.keys.push(Fe);break;case "\b":k.keys.push(Ee);break;default:k.keys.push(p)}})});m(g,function(l){Rf(a, l.keys,c,l.persist)})}Z.a={};Z.a["\ue000"]=null;Z.a["\ue003"]=Ee;Z.a["\ue004"]=Fe;Z.a["\ue006"]=Ge;Z.a["\ue007"]=Ge;Z.a["\ue008"]=W;Z.a["\ue009"]=He;Z.a["\ue00a"]=Ie;Z.a["\ue00b"]=Je;Z.a["\ue00c"]=Ke;Z.a["\ue00d"]=Le;Z.a["\ue00e"]=Me;Z.a["\ue00f"]=Ne;Z.a["\ue010"]=Oe;Z.a["\ue011"]=Pe;Z.a["\ue012"]=Qe;Z.a["\ue013"]=Re;Z.a["\ue014"]=Se;Z.a["\ue015"]=Te;Z.a["\ue016"]=Ue;Z.a["\ue017"]=Ve;Z.a["\ue018"]=Af;Z.a["\ue019"]=yf;Z.a["\ue01a"]=Xe;Z.a["\ue01b"]=Ye;Z.a["\ue01c"]=Ze;Z.a["\ue01d"]=$e; Z.a["\ue01e"]=af;Z.a["\ue01f"]=bf;Z.a["\ue020"]=cf;Z.a["\ue021"]=df;Z.a["\ue022"]=ef;Z.a["\ue023"]=ff;Z.a["\ue024"]=gf;Z.a["\ue025"]=hf;Z.a["\ue027"]=jf;Z.a["\ue028"]=kf;Z.a["\ue029"]=lf;Z.a["\ue026"]=zf;Z.a["\ue031"]=mf;Z.a["\ue032"]=nf;Z.a["\ue033"]=of;Z.a["\ue034"]=pf;Z.a["\ue035"]=qf;Z.a["\ue036"]=rf;Z.a["\ue037"]=sf;Z.a["\ue038"]=tf;Z.a["\ue039"]=uf;Z.a["\ue03a"]=vf;Z.a["\ue03b"]=wf;Z.a["\ue03c"]=xf;Z.a["\ue03d"]=We;la("_",function(a,b){a=[a];try{var c;b?c=Zf(b.WINDOW):c=window;var d=Yf(a,c.document),e=Tf.apply(null,d);var f={status:0,value:Wf(e)}}catch(g){f={status:Oa(g,"code")?g.code:13,value:{message:g.message}}}return Vf(f)});; return this._.apply(null,arguments);}).apply(window, arguments);} diff --git a/atoms/find_element.js b/atoms/find_element.js index 09d77e9..655093a 100755 --- a/atoms/find_element.js +++ b/atoms/find_element.js @@ -38,31 +38,31 @@ function y(a,b,c,d){a=d||a.a;var e=b&&"*"!=b?String(b).toUpperCase():"";if(a.que ;function z(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:b,b=void 0==b||null==b?"":b);if("string"!=typeof b)if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;c=0;var d=[];for(b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return b} function Wa(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function Xa(a,b,c,d,e){return Ya.call(null,a,b,ca(c)?c:null,ca(d)?d:null,e||new A)} function Ya(a,b,c,d,e){b.getElementsByName&&d&&"name"==c?(b=b.getElementsByName(d),n(b,function(f){a.a(f)&&e.add(f)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),n(b,function(f){f.className==d&&a.a(f)&&e.add(f)})):a instanceof B?Za(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.f()),n(b,function(f){Wa(f,c,d)&&e.add(f)}));return e}function Za(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)Wa(b,c,d)&&a.a(b)&&e.add(b),Za(a,b,c,d,e)};function A(){this.b=this.a=null;this.m=0}function $a(a){this.f=a;this.a=this.b=null}function ab(a,b){if(!a.a)return b;if(!b.a)return a;var c=a.a;b=b.a;for(var d=null,e,f=0;c&&b;)c.f==b.f?(e=c,c=c.a,b=b.a):0",4,2,function(a,b,c){return kb(function(d,e){return d>e},a,b,c)});J("<=",4,2,function(a,b,c){return kb(function(d,e){return d<=e},a,b,c)});J(">=",4,2,function(a,b,c){return kb(function(d,e){return d>=e},a,b,c)});var jb=J("=",3,2,function(a,b,c){return kb(function(d,e){return d==e},a,b,c,!0)});J("!=",3,2,function(a,b,c){return kb(function(d,e){return d!=e},a,b,c,!0)});J("and",2,2,function(a,b,c){return hb(a,c)&&hb(b,c)});J("or",1,2,function(a,b,c){return hb(a,c)||hb(b,c)});function ob(a,b){if(b.a.length&&4!=a.i)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");F.call(this,a.i);this.c=a;this.h=b;this.g=a.g;this.b=a.b}k(ob,F);ob.prototype.a=function(a){a=this.c.a(a);return pb(this.h,a)};ob.prototype.toString=function(){var a="Filter:"+G(this.c);return a+=G(this.h)};function qb(a,b){if(b.lengtha.H)throw Error("Function "+a.l+" expects at most "+a.H+" arguments, "+b.length+" given");a.Z&&n(b,function(c,d){if(4!=c.i)throw Error("Argument "+d+" to function "+a.l+" is not of type Nodeset: "+c);});F.call(this,a.i);this.D=a;this.c=b;fb(this,a.g||sa(b,function(c){return c.g}));gb(this,a.Y&&!b.length||a.X&&!!b.length||sa(b,function(c){return c.b}))} -k(qb,F);qb.prototype.a=function(a){return this.D.s.apply(null,va(a,this.c))};qb.prototype.toString=function(){var a="Function: "+this.D;if(this.c.length){var b=ra(this.c,function(c,d){return c+G(d)},"Arguments:");a+=G(b)}return a};function rb(a,b,c,d,e,f,g,h){this.l=a;this.i=b;this.g=c;this.Y=d;this.X=!1;this.s=e;this.L=f;this.H=void 0!==g?g:f;this.Z=!!h}rb.prototype.toString=function(){return this.l};var sb={}; +J(">",4,2,function(a,b,c){return kb(function(d,e){return d>e},a,b,c)});J("<=",4,2,function(a,b,c){return kb(function(d,e){return d<=e},a,b,c)});J(">=",4,2,function(a,b,c){return kb(function(d,e){return d>=e},a,b,c)});var jb=J("=",3,2,function(a,b,c){return kb(function(d,e){return d==e},a,b,c,!0)});J("!=",3,2,function(a,b,c){return kb(function(d,e){return d!=e},a,b,c,!0)});J("and",2,2,function(a,b,c){return hb(a,c)&&hb(b,c)});J("or",1,2,function(a,b,c){return hb(a,c)||hb(b,c)});function ob(a,b){if(b.a.length&&4!=a.i)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");E.call(this,a.i);this.c=a;this.h=b;this.g=a.g;this.b=a.b}k(ob,E);ob.prototype.a=function(a){a=this.c.a(a);return pb(this.h,a)};ob.prototype.toString=function(){var a="Filter:"+G(this.c);return a+=G(this.h)};function qb(a,b){if(b.lengtha.H)throw Error("Function "+a.l+" expects at most "+a.H+" arguments, "+b.length+" given");a.Z&&n(b,function(c,d){if(4!=c.i)throw Error("Argument "+d+" to function "+a.l+" is not of type Nodeset: "+c);});E.call(this,a.i);this.D=a;this.c=b;fb(this,a.g||sa(b,function(c){return c.g}));gb(this,a.Y&&!b.length||a.X&&!!b.length||sa(b,function(c){return c.b}))} +k(qb,E);qb.prototype.a=function(a){return this.D.s.apply(null,va(a,this.c))};qb.prototype.toString=function(){var a="Function: "+this.D;if(this.c.length){var b=ra(this.c,function(c,d){return c+G(d)},"Arguments:");a+=G(b)}return a};function rb(a,b,c,d,e,f,g,h){this.l=a;this.i=b;this.g=c;this.Y=d;this.X=!1;this.s=e;this.L=f;this.H=void 0!==g?g:f;this.Z=!!h}rb.prototype.toString=function(){return this.l};var sb={}; function K(a,b,c,d,e,f,g,h){if(sb.hasOwnProperty(a))throw Error("Function already created: "+a+".");sb[a]=new rb(a,b,c,d,e,f,g,h)}K("boolean",2,!1,!1,function(a,b){return hb(b,a)},1);K("ceiling",1,!1,!1,function(a,b){return Math.ceil(H(b,a))},1);K("concat",3,!1,!1,function(a,b){return ra(wa(arguments,1),function(c,d){return c+I(d,a)},"")},2,null);K("contains",2,!1,!1,function(a,b,c){b=I(b,a);a=I(c,a);return-1!=b.indexOf(a)},2);K("count",1,!1,!1,function(a,b){return b.a(a).m},1,1,!0); K("false",2,!1,!1,function(){return!1},0);K("floor",1,!1,!1,function(a,b){return Math.floor(H(b,a))},1);K("id",4,!1,!1,function(a,b){var c=a.a,d=9==c.nodeType?c:c.ownerDocument;a=I(b,a).split(/\s+/);var e=[];n(a,function(g){g=d.getElementById(g);!g||0<=oa(e,g)||e.push(g)});e.sort(Sa);var f=new A;n(e,function(g){f.add(g)});return f},1);K("lang",2,!1,!1,function(){return!1},1);K("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.f},0); K("local-name",3,!1,!0,function(a,b){return(a=b?cb(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);K("name",3,!1,!0,function(a,b){return(a=b?cb(b.a(a)):a.a)?a.nodeName.toLowerCase():""},0,1,!0);K("namespace-uri",3,!0,!1,function(){return""},0,1,!0);K("normalize-space",3,!1,!0,function(a,b){return(b?I(b,a):z(a.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);K("not",2,!1,!1,function(a,b){return!hb(b,a)},1);K("number",1,!1,!0,function(a,b){return b?H(b,a):+z(a.a)},0,1); K("position",1,!0,!1,function(a){return a.b},0);K("round",1,!1,!1,function(a,b){return Math.round(H(b,a))},1);K("starts-with",2,!1,!1,function(a,b,c){b=I(b,a);a=I(c,a);return 0==b.lastIndexOf(a,0)},2);K("string",3,!1,!0,function(a,b){return b?I(b,a):z(a.a)},0,1);K("string-length",1,!1,!0,function(a,b){return(b?I(b,a):z(a.a)).length},0,1); K("substring",3,!1,!1,function(a,b,c,d){c=H(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?H(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=I(b,a);return Infinity==d?a.substring(e):a.substring(e,c+Math.round(d))},2,3);K("substring-after",3,!1,!1,function(a,b,c){b=I(b,a);a=I(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2); K("substring-before",3,!1,!1,function(a,b,c){b=I(b,a);a=I(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);K("sum",1,!1,!1,function(a,b){a=C(b.a(a));b=0;for(var c=D(a);c;c=D(a))b+=+z(c);return b},1,1,!0);K("translate",3,!1,!1,function(a,b,c,d){b=I(b,a);c=I(c,a);var e=I(d,a);a={};for(d=0;da.length)throw Error("Unclosed literal string");return new ub(a)} function Tb(a){var b=[];if(Bb(q(a.a))){var c=r(a.a);var d=q(a.a);if("/"==c&&(Ma(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new zb;d=new zb;N(a,"Missing next location step.");c=Ub(a,c);b.push(c)}else{a:{c=q(a.a);d=c.charAt(0);switch(d){case "$":throw Error("Variable reference not allowed in HTML XPath");case "(":r(a.a);c=Ob(a);N(a,'unclosed "("');Qb(a,")");break;case '"':case "'":c=Sb(a);break;default:if(isNaN(+c))if(!tb(c)&&/(?![0-9])[\w]/.test(d)&&"("==q(a.a,1)){c=r(a.a); c=sb[c]||null;r(a.a);for(d=[];")"!=q(a.a);){N(a,"Missing function argument list.");d.push(Ob(a));if(","!=q(a.a))break;r(a.a)}N(a,"Unclosed function argument list.");Rb(a);c=new qb(c,d)}else{c=null;break a}else c=new wb(+r(a.a))}"["==q(a.a)&&(d=new Eb(Vb(a)),c=new ob(c,d))}if(c)if(Bb(q(a.a)))d=c;else return c;else c=Ub(a,"/"),d=new Ab,b.push(c)}for(;Bb(q(a.a));)c=r(a.a),N(a,"Missing next location step."),c=Ub(a,c),b.push(c);return new xb(d,b)} @@ -80,35 +80,36 @@ ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#0 lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1", moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57", seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var pc="backgroundColor borderTopColor borderRightColor borderBottomColor borderLeftColor color outlineColor".split(" "),qc=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,rc=/^#(?:[0-9a-f]{3}){1,2}$/i,sc=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i,tc=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function uc(a,b){b=b.toLowerCase();return"style"==b?vc(a.style.cssText):(a=a.getAttributeNode(b))&&a.specified?a.value:null}var wc=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/;function vc(a){var b=[];n(a.split(wc),function(c){var d=c.indexOf(":");0=b&&0<=c&&255>=c&&0<=d&&255>=d&&0<=e&&1>=e)){b=[b,c,d,e];break b}b=null}if(!b)b:{if(d=a.match(tc))if(b=Number(d[1]), +function S(a,b){b&&"string"!==typeof b&&(b=b.toString());return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)};function xc(a,b,c,d){this.c=a;this.a=b;this.b=c;this.f=d}xc.prototype.ceil=function(){this.c=Math.ceil(this.c);this.a=Math.ceil(this.a);this.b=Math.ceil(this.b);this.f=Math.ceil(this.f);return this};xc.prototype.floor=function(){this.c=Math.floor(this.c);this.a=Math.floor(this.a);this.b=Math.floor(this.b);this.f=Math.floor(this.f);return this};xc.prototype.round=function(){this.c=Math.round(this.c);this.a=Math.round(this.a);this.b=Math.round(this.b);this.f=Math.round(this.f);return this};function T(a,b,c,d){this.a=a;this.b=b;this.width=c;this.height=d}T.prototype.ceil=function(){this.a=Math.ceil(this.a);this.b=Math.ceil(this.b);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};T.prototype.floor=function(){this.a=Math.floor(this.a);this.b=Math.floor(this.b);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; +T.prototype.round=function(){this.a=Math.round(this.a);this.b=Math.round(this.b);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var yc="function"===typeof ShadowRoot;function zc(a){for(a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return S(a)?a:null} +function U(a,b){b=Ga(b);if("float"==b||"cssFloat"==b||"styleFloat"==b)b="cssFloat";a:{var c=b;var d=w(a);if(d.defaultView&&d.defaultView.getComputedStyle&&(d=d.defaultView.getComputedStyle(a,null))){c=d[c]||d.getPropertyValue(c)||"";break a}c=""}a=c||Ac(a,b);if(null===a)a=null;else if(0<=oa(pc,b)){b:{var e=a.match(sc);if(e&&(b=Number(e[1]),c=Number(e[2]),d=Number(e[3]),e=Number(e[4]),0<=b&&255>=b&&0<=c&&255>=c&&0<=d&&255>=d&&0<=e&&1>=e)){b=[b,c,d,e];break b}b=null}if(!b)b:{if(d=a.match(tc))if(b=Number(d[1]), c=Number(d[2]),d=Number(d[3]),0<=b&&255>=b&&0<=c&&255>=c&&0<=d&&255>=d){b=[b,c,d,1];break b}b=null}if(!b)b:{b=a.toLowerCase();c=oc[b.toLowerCase()];if(!c&&(c="#"==b.charAt(0)?b:"#"+b,4==c.length&&(c=c.replace(qc,"#$1$1$2$2$3$3")),!rc.test(c))){b=null;break b}b=[parseInt(c.substr(1,2),16),parseInt(c.substr(3,2),16),parseInt(c.substr(5,2),16),1]}a=b?"rgba("+b.join(", ")+")":a}return a} function Ac(a,b){var c=a.currentStyle||a.style,d=c[b];void 0===d&&fa(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?void 0!==d?d:null:(a=zc(a))?Ac(a,b):null} -function Bc(a,b,c){function d(g){var h=W(g);return 0=E.a+E.width;E=e.c>=E.b+E.height;if(Q&&"hidden"==m.x||E&&"hidden"==m.y)return X;if(Q&&"visible"!=m.x||E&&"visible"!=m.y){if(v&&(m=d(a),e.f>=g.scrollWidth-m.x||e.a>=g.scrollHeight-m.y))return X;e=Cc(a);return e==X?X:"scroll"}}}return"none"} -function W(a){var b=Dc(a);if(b)return b.rect;if(S(a,"HTML"))return a=w(a),a=((a?a.parentWindow||a.defaultView:window)||window).document,a="CSS1Compat"==a.compatMode?a.documentElement:a.body,a=new Oa(a.clientWidth,a.clientHeight),new U(0,0,a.width,a.height);try{var c=a.getBoundingClientRect()}catch(d){return new U(0,0,0,0)}return new U(c.left,c.top,c.right-c.left,c.bottom-c.top)} -function Dc(a){var b=S(a,"MAP");if(!b&&!S(a,"AREA"))return null;var c=b?a:S(a.parentNode,"MAP")?a.parentNode:null,d=null,e=null;c&&c.name&&(d=T.o('/descendant::*[@usemap = "#'+c.name+'"]',w(c)))&&(e=W(d),b||"default"==a.shape.toLowerCase()||(a=Hc(a),b=Math.min(Math.max(a.a,0),e.width),c=Math.min(Math.max(a.b,0),e.height),e=new U(b+e.a,c+e.b,Math.min(a.width,e.width-b),Math.min(a.height,e.height-c))));return{image:d,rect:e||new U(0,0,0,0)}} -function Hc(a){var b=a.shape.toLowerCase();a=a.coords.split(",");if("rect"==b&&4==a.length){b=a[0];var c=a[1];return new U(b,c,a[2]-b,a[3]-c)}if("circle"==b&&3==a.length)return b=a[2],new U(a[0]-b,a[1]-b,2*b,2*b);if("poly"==b&&2=F.a+F.width;F=e.c>=F.b+F.height;if(Q&&"hidden"==m.x||F&&"hidden"==m.y)return W;if(Q&&"visible"!=m.x||F&&"visible"!=m.y){if(v&&(m=d(a),e.f>=g.scrollWidth-m.x||e.a>=g.scrollHeight-m.y))return W;e=Cc(a);return e==W?W:"scroll"}}}return"none"} +function V(a){var b=Dc(a);if(b)return b.rect;if(S(a,"HTML"))return a=w(a),a=((a?a.parentWindow||a.defaultView:window)||window).document,a="CSS1Compat"==a.compatMode?a.documentElement:a.body,a=new Oa(a.clientWidth,a.clientHeight),new T(0,0,a.width,a.height);try{var c=a.getBoundingClientRect()}catch(d){return new T(0,0,0,0)}return new T(c.left,c.top,c.right-c.left,c.bottom-c.top)} +function Dc(a){var b=S(a,"MAP");if(!b&&!S(a,"AREA"))return null;var c=b?a:S(a.parentNode,"MAP")?a.parentNode:null,d=null,e=null;c&&c.name&&(d=nc.o('*[usemap="#'+c.name+'"]',w(c)))&&(e=V(d),b||"default"==a.shape.toLowerCase()||(a=Hc(a),b=Math.min(Math.max(a.a,0),e.width),c=Math.min(Math.max(a.b,0),e.height),e=new T(b+e.a,c+e.b,Math.min(a.width,e.width-b),Math.min(a.height,e.height-c))));return{image:d,rect:e||new T(0,0,0,0)}} +function Hc(a){var b=a.shape.toLowerCase();a=a.coords.split(",");if("rect"==b&&4==a.length){b=a[0];var c=a[1];return new T(b,c,a[2]-b,a[3]-c)}if("circle"==b&&3==a.length)return b=a[2],new T(a[0]-b,a[1]-b,2*b,2*b);if("poly"==b&&2=~*^$|%&@`{}\-\/\[\]\(\)])/g, -"\\$1")}};var Y={},Rc={};Y.N=function(a,b,c){try{var d=nc.j("a",b)}catch(e){d=y(u(b),"A",null,b)}return ua(d,function(e){e=Jc(e);e=e.replace(/^[\s]+|[\s]+$/g,"");return c&&-1!=e.indexOf(a)||e==a})};Y.K=function(a,b,c){try{var d=nc.j("a",b)}catch(e){d=y(u(b),"A",null,b)}return pa(d,function(e){e=Jc(e);e=e.replace(/^[\s]+|[\s]+$/g,"");return c&&-1!=e.indexOf(a)||e==a})};Y.o=function(a,b){return Y.N(a,b,!1)};Y.j=function(a,b){return Y.K(a,b,!1)};Rc.o=function(a,b){return Y.N(a,b,!0)}; -Rc.j=function(a,b){return Y.K(a,b,!0)};var Z={F:function(a,b){return function(c){var d=Z.u(a);d=W(d);c=W(c);return b.call(null,d,c)}},R:function(a){return Z.F(a,function(b,c){return c.b+c.height=b&&0<=c&&255>=c&&0<=d&&255>=d&&0<=e&&1>=e)){b=[b,c,d,e];break b}b=null}if(!b)b:{if(d=a.match(Dc))if(b=Number(d[1]), +function S(a,b){b&&"string"!==typeof b&&(b=b.toString());return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)};function Hc(a,b,c,d){this.c=a;this.a=b;this.b=c;this.f=d}Hc.prototype.ceil=function(){this.c=Math.ceil(this.c);this.a=Math.ceil(this.a);this.b=Math.ceil(this.b);this.f=Math.ceil(this.f);return this};Hc.prototype.floor=function(){this.c=Math.floor(this.c);this.a=Math.floor(this.a);this.b=Math.floor(this.b);this.f=Math.floor(this.f);return this};Hc.prototype.round=function(){this.c=Math.round(this.c);this.a=Math.round(this.a);this.b=Math.round(this.b);this.f=Math.round(this.f);return this};function T(a,b,c,d){this.a=a;this.b=b;this.width=c;this.height=d}T.prototype.ceil=function(){this.a=Math.ceil(this.a);this.b=Math.ceil(this.b);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};T.prototype.floor=function(){this.a=Math.floor(this.a);this.b=Math.floor(this.b);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; +T.prototype.round=function(){this.a=Math.round(this.a);this.b=Math.round(this.b);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var Ic="function"===typeof ShadowRoot;function Jc(a){for(a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return S(a)?a:null} +function U(a,b){b=La(b);if("float"==b||"cssFloat"==b||"styleFloat"==b)b="cssFloat";a:{var c=b;var d=w(a);if(d.defaultView&&d.defaultView.getComputedStyle&&(d=d.defaultView.getComputedStyle(a,null))){c=d[c]||d.getPropertyValue(c)||"";break a}c=""}a=c||Kc(a,b);if(null===a)a=null;else if(0<=qa(zc,b)){b:{var e=a.match(Cc);if(e&&(b=Number(e[1]),c=Number(e[2]),d=Number(e[3]),e=Number(e[4]),0<=b&&255>=b&&0<=c&&255>=c&&0<=d&&255>=d&&0<=e&&1>=e)){b=[b,c,d,e];break b}b=null}if(!b)b:{if(d=a.match(Dc))if(b=Number(d[1]), c=Number(d[2]),d=Number(d[3]),0<=b&&255>=b&&0<=c&&255>=c&&0<=d&&255>=d){b=[b,c,d,1];break b}b=null}if(!b)b:{b=a.toLowerCase();c=yc[b.toLowerCase()];if(!c&&(c="#"==b.charAt(0)?b:"#"+b,4==c.length&&(c=c.replace(Ac,"#$1$1$2$2$3$3")),!Bc.test(c))){b=null;break b}b=[parseInt(c.substr(1,2),16),parseInt(c.substr(3,2),16),parseInt(c.substr(5,2),16),1]}a=b?"rgba("+b.join(", ")+")":a}return a} function Kc(a,b){var c=a.currentStyle||a.style,d=c[b];void 0===d&&ha(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?void 0!==d?d:null:(a=Jc(a))?Kc(a,b):null} -function Lc(a,b,c){function d(g){var h=W(g);return 0=y.a+y.width;y=e.c>=y.b+y.height;if(Q&&"hidden"==l.x||y&&"hidden"==l.y)return X;if(Q&&"visible"!=l.x||y&&"visible"!=l.y){if(u&&(l=d(a),e.f>=g.scrollWidth-l.x||e.a>=g.scrollHeight-l.y))return X;e=Mc(a);return e==X?X:"scroll"}}}return"none"} -function W(a){var b=Nc(a);if(b)return b.rect;if(S(a,"HTML"))return a=w(a),a=((a?a.parentWindow||a.defaultView:window)||window).document,a="CSS1Compat"==a.compatMode?a.documentElement:a.body,a=new Ta(a.clientWidth,a.clientHeight),new U(0,0,a.width,a.height);try{var c=a.getBoundingClientRect()}catch(d){return new U(0,0,0,0)}return new U(c.left,c.top,c.right-c.left,c.bottom-c.top)} -function Nc(a){var b=S(a,"MAP");if(!b&&!S(a,"AREA"))return null;var c=b?a:S(a.parentNode,"MAP")?a.parentNode:null,d=null,e=null;c&&c.name&&(d=T.o('/descendant::*[@usemap = "#'+c.name+'"]',w(c)))&&(e=W(d),b||"default"==a.shape.toLowerCase()||(a=Rc(a),b=Math.min(Math.max(a.a,0),e.width),c=Math.min(Math.max(a.b,0),e.height),e=new U(b+e.a,c+e.b,Math.min(a.width,e.width-b),Math.min(a.height,e.height-c))));return{image:d,rect:e||new U(0,0,0,0)}} -function Rc(a){var b=a.shape.toLowerCase();a=a.coords.split(",");if("rect"==b&&4==a.length){b=a[0];var c=a[1];return new U(b,c,a[2]-b,a[3]-c)}if("circle"==b&&3==a.length)return b=a[2],new U(a[0]-b,a[1]-b,2*b,2*b);if("poly"==b&&2=z.a+z.width;z=e.c>=z.b+z.height;if(Q&&"hidden"==l.x||z&&"hidden"==l.y)return W;if(Q&&"visible"!=l.x||z&&"visible"!=l.y){if(u&&(l=d(a),e.f>=g.scrollWidth-l.x||e.a>=g.scrollHeight-l.y))return W;e=Mc(a);return e==W?W:"scroll"}}}return"none"} +function V(a){var b=Nc(a);if(b)return b.rect;if(S(a,"HTML"))return a=w(a),a=((a?a.parentWindow||a.defaultView:window)||window).document,a="CSS1Compat"==a.compatMode?a.documentElement:a.body,a=new Ta(a.clientWidth,a.clientHeight),new T(0,0,a.width,a.height);try{var c=a.getBoundingClientRect()}catch(d){return new T(0,0,0,0)}return new T(c.left,c.top,c.right-c.left,c.bottom-c.top)} +function Nc(a){var b=S(a,"MAP");if(!b&&!S(a,"AREA"))return null;var c=b?a:S(a.parentNode,"MAP")?a.parentNode:null,d=null,e=null;c&&c.name&&(d=xc.o('*[usemap="#'+c.name+'"]',w(c)))&&(e=V(d),b||"default"==a.shape.toLowerCase()||(a=Rc(a),b=Math.min(Math.max(a.a,0),e.width),c=Math.min(Math.max(a.b,0),e.height),e=new T(b+e.a,c+e.b,Math.min(a.width,e.width-b),Math.min(a.height,e.height-c))));return{image:d,rect:e||new T(0,0,0,0)}} +function Rc(a){var b=a.shape.toLowerCase();a=a.coords.split(",");if("rect"==b&&4==a.length){b=a[0];var c=a[1];return new T(b,c,a[2]-b,a[3]-c)}if("circle"==b&&3==a.length)return b=a[2],new T(a[0]-b,a[1]-b,2*b,2*b);if("poly"==b&&2=~*^$|%&@`{}\-\/\[\]\(\)])/g, -"\\$1")}};var Y={},ad={};Y.O=function(a,b,c){try{var d=xc.j("a",b)}catch(e){d=x(v(b),"A",null,b)}return wa(d,function(e){e=Tc(e);e=e.replace(/^[\s]+|[\s]+$/g,"");return c&&-1!=e.indexOf(a)||e==a})};Y.L=function(a,b,c){try{var d=xc.j("a",b)}catch(e){d=x(v(b),"A",null,b)}return ra(d,function(e){e=Tc(e);e=e.replace(/^[\s]+|[\s]+$/g,"");return c&&-1!=e.indexOf(a)||e==a})};Y.o=function(a,b){return Y.O(a,b,!1)};Y.j=function(a,b){return Y.L(a,b,!1)};ad.o=function(a,b){return Y.O(a,b,!0)}; -ad.j=function(a,b){return Y.L(a,b,!0)};var Z={F:function(a,b){return function(c){var d=Z.u(a);d=W(d);c=W(c);return b.call(null,d,c)}},S:function(a){return Z.F(a,function(b,c){return c.b+c.height=b&&0<=c&&255>=c&&0<=d&&255>=d&&0<=e&&1>=e)){b=[b,c,d,e];break b}b=null}if(!b)b:{if(d=a.match(Dc))if(b=Number(d[1]), +function S(a,b){b&&"string"!==typeof b&&(b=b.toString());return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)};function Hc(a,b,c,d){this.c=a;this.a=b;this.b=c;this.f=d}Hc.prototype.ceil=function(){this.c=Math.ceil(this.c);this.a=Math.ceil(this.a);this.b=Math.ceil(this.b);this.f=Math.ceil(this.f);return this};Hc.prototype.floor=function(){this.c=Math.floor(this.c);this.a=Math.floor(this.a);this.b=Math.floor(this.b);this.f=Math.floor(this.f);return this};Hc.prototype.round=function(){this.c=Math.round(this.c);this.a=Math.round(this.a);this.b=Math.round(this.b);this.f=Math.round(this.f);return this};function T(a,b,c,d){this.a=a;this.b=b;this.width=c;this.height=d}T.prototype.ceil=function(){this.a=Math.ceil(this.a);this.b=Math.ceil(this.b);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};T.prototype.floor=function(){this.a=Math.floor(this.a);this.b=Math.floor(this.b);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; +T.prototype.round=function(){this.a=Math.round(this.a);this.b=Math.round(this.b);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var Ic="function"===typeof ShadowRoot;function Jc(a){for(a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return S(a)?a:null} +function U(a,b){b=La(b);if("float"==b||"cssFloat"==b||"styleFloat"==b)b="cssFloat";a:{var c=b;var d=w(a);if(d.defaultView&&d.defaultView.getComputedStyle&&(d=d.defaultView.getComputedStyle(a,null))){c=d[c]||d.getPropertyValue(c)||"";break a}c=""}a=c||Kc(a,b);if(null===a)a=null;else if(0<=qa(zc,b)){b:{var e=a.match(Cc);if(e&&(b=Number(e[1]),c=Number(e[2]),d=Number(e[3]),e=Number(e[4]),0<=b&&255>=b&&0<=c&&255>=c&&0<=d&&255>=d&&0<=e&&1>=e)){b=[b,c,d,e];break b}b=null}if(!b)b:{if(d=a.match(Dc))if(b=Number(d[1]), c=Number(d[2]),d=Number(d[3]),0<=b&&255>=b&&0<=c&&255>=c&&0<=d&&255>=d){b=[b,c,d,1];break b}b=null}if(!b)b:{b=a.toLowerCase();c=yc[b.toLowerCase()];if(!c&&(c="#"==b.charAt(0)?b:"#"+b,4==c.length&&(c=c.replace(Ac,"#$1$1$2$2$3$3")),!Bc.test(c))){b=null;break b}b=[parseInt(c.substr(1,2),16),parseInt(c.substr(3,2),16),parseInt(c.substr(5,2),16),1]}a=b?"rgba("+b.join(", ")+")":a}return a} function Kc(a,b){var c=a.currentStyle||a.style,d=c[b];void 0===d&&ha(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?void 0!==d?d:null:(a=Jc(a))?Kc(a,b):null} -function Lc(a,b,c){function d(g){var h=W(g);return 0=y.a+y.width;y=e.c>=y.b+y.height;if(Q&&"hidden"==l.x||y&&"hidden"==l.y)return X;if(Q&&"visible"!=l.x||y&&"visible"!=l.y){if(u&&(l=d(a),e.f>=g.scrollWidth-l.x||e.a>=g.scrollHeight-l.y))return X;e=Mc(a);return e==X?X:"scroll"}}}return"none"} -function W(a){var b=Nc(a);if(b)return b.rect;if(S(a,"HTML"))return a=w(a),a=((a?a.parentWindow||a.defaultView:window)||window).document,a="CSS1Compat"==a.compatMode?a.documentElement:a.body,a=new Ta(a.clientWidth,a.clientHeight),new U(0,0,a.width,a.height);try{var c=a.getBoundingClientRect()}catch(d){return new U(0,0,0,0)}return new U(c.left,c.top,c.right-c.left,c.bottom-c.top)} -function Nc(a){var b=S(a,"MAP");if(!b&&!S(a,"AREA"))return null;var c=b?a:S(a.parentNode,"MAP")?a.parentNode:null,d=null,e=null;c&&c.name&&(d=T.o('/descendant::*[@usemap = "#'+c.name+'"]',w(c)))&&(e=W(d),b||"default"==a.shape.toLowerCase()||(a=Rc(a),b=Math.min(Math.max(a.a,0),e.width),c=Math.min(Math.max(a.b,0),e.height),e=new U(b+e.a,c+e.b,Math.min(a.width,e.width-b),Math.min(a.height,e.height-c))));return{image:d,rect:e||new U(0,0,0,0)}} -function Rc(a){var b=a.shape.toLowerCase();a=a.coords.split(",");if("rect"==b&&4==a.length){b=a[0];var c=a[1];return new U(b,c,a[2]-b,a[3]-c)}if("circle"==b&&3==a.length)return b=a[2],new U(a[0]-b,a[1]-b,2*b,2*b);if("poly"==b&&2=z.a+z.width;z=e.c>=z.b+z.height;if(Q&&"hidden"==l.x||z&&"hidden"==l.y)return W;if(Q&&"visible"!=l.x||z&&"visible"!=l.y){if(u&&(l=d(a),e.f>=g.scrollWidth-l.x||e.a>=g.scrollHeight-l.y))return W;e=Mc(a);return e==W?W:"scroll"}}}return"none"} +function V(a){var b=Nc(a);if(b)return b.rect;if(S(a,"HTML"))return a=w(a),a=((a?a.parentWindow||a.defaultView:window)||window).document,a="CSS1Compat"==a.compatMode?a.documentElement:a.body,a=new Ta(a.clientWidth,a.clientHeight),new T(0,0,a.width,a.height);try{var c=a.getBoundingClientRect()}catch(d){return new T(0,0,0,0)}return new T(c.left,c.top,c.right-c.left,c.bottom-c.top)} +function Nc(a){var b=S(a,"MAP");if(!b&&!S(a,"AREA"))return null;var c=b?a:S(a.parentNode,"MAP")?a.parentNode:null,d=null,e=null;c&&c.name&&(d=xc.o('*[usemap="#'+c.name+'"]',w(c)))&&(e=V(d),b||"default"==a.shape.toLowerCase()||(a=Rc(a),b=Math.min(Math.max(a.a,0),e.width),c=Math.min(Math.max(a.b,0),e.height),e=new T(b+e.a,c+e.b,Math.min(a.width,e.width-b),Math.min(a.height,e.height-c))));return{image:d,rect:e||new T(0,0,0,0)}} +function Rc(a){var b=a.shape.toLowerCase();a=a.coords.split(",");if("rect"==b&&4==a.length){b=a[0];var c=a[1];return new T(b,c,a[2]-b,a[3]-c)}if("circle"==b&&3==a.length)return b=a[2],new T(a[0]-b,a[1]-b,2*b,2*b);if("poly"==b&&2=~*^$|%&@`{}\-\/\[\]\(\)])/g, -"\\$1")}};var Y={},ad={};Y.O=function(a,b,c){try{var d=xc.j("a",b)}catch(e){d=x(v(b),"A",null,b)}return wa(d,function(e){e=Tc(e);e=e.replace(/^[\s]+|[\s]+$/g,"");return c&&-1!=e.indexOf(a)||e==a})};Y.L=function(a,b,c){try{var d=xc.j("a",b)}catch(e){d=x(v(b),"A",null,b)}return ra(d,function(e){e=Tc(e);e=e.replace(/^[\s]+|[\s]+$/g,"");return c&&-1!=e.indexOf(a)||e==a})};Y.o=function(a,b){return Y.O(a,b,!1)};Y.j=function(a,b){return Y.L(a,b,!1)};ad.o=function(a,b){return Y.O(a,b,!0)}; -ad.j=function(a,b){return Y.L(a,b,!0)};var Z={F:function(a,b){return function(c){var d=Z.u(a);d=W(d);c=W(c);return b.call(null,d,c)}},S:function(a){return Z.F(a,function(b,c){return c.b+c.height",4,2,function(a,b,c){return tb(function(d,e){return d>e},a,b,c)});J("<=",4,2,function(a,b,c){return tb(function(d,e){return d<=e},a,b,c)});J(">=",4,2,function(a,b,c){return tb(function(d,e){return d>=e},a,b,c)});var rb=J("=",3,2,function(a,b,c){return tb(function(d,e){return d==e},a,b,c,!0)});J("!=",3,2,function(a,b,c){return tb(function(d,e){return d!=e},a,b,c,!0)});J("and",2,2,function(a,b,c){return pb(a,c)&&pb(b,c)});J("or",1,2,function(a,b,c){return pb(a,c)||pb(b,c)});function wb(a,b){if(b.a.length&&4!=a.i)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");F.call(this,a.i);this.c=a;this.h=b;this.g=a.g;this.b=a.b}k(wb,F);wb.prototype.a=function(a){a=this.c.a(a);return xb(this.h,a)};wb.prototype.toString=function(){var a="Filter:"+G(this.c);return a+=G(this.h)};function yb(a,b){if(b.lengtha.H)throw Error("Function "+a.l+" expects at most "+a.H+" arguments, "+b.length+" given");a.$&&n(b,function(c,d){if(4!=c.i)throw Error("Argument "+d+" to function "+a.l+" is not of type Nodeset: "+c);});F.call(this,a.i);this.D=a;this.c=b;nb(this,a.g||ua(b,function(c){return c.g}));ob(this,a.Z&&!b.length||a.Y&&!!b.length||ua(b,function(c){return c.b}))} -k(yb,F);yb.prototype.a=function(a){return this.D.s.apply(null,xa(a,this.c))};yb.prototype.toString=function(){var a="Function: "+this.D;if(this.c.length){var b=ta(this.c,function(c,d){return c+G(d)},"Arguments:");a+=G(b)}return a};function zb(a,b,c,d,e,f,g,h){this.l=a;this.i=b;this.g=c;this.Z=d;this.Y=!1;this.s=e;this.M=f;this.H=void 0!==g?g:f;this.$=!!h}zb.prototype.toString=function(){return this.l};var Ab={}; +J(">",4,2,function(a,b,c){return tb(function(d,e){return d>e},a,b,c)});J("<=",4,2,function(a,b,c){return tb(function(d,e){return d<=e},a,b,c)});J(">=",4,2,function(a,b,c){return tb(function(d,e){return d>=e},a,b,c)});var rb=J("=",3,2,function(a,b,c){return tb(function(d,e){return d==e},a,b,c,!0)});J("!=",3,2,function(a,b,c){return tb(function(d,e){return d!=e},a,b,c,!0)});J("and",2,2,function(a,b,c){return pb(a,c)&&pb(b,c)});J("or",1,2,function(a,b,c){return pb(a,c)||pb(b,c)});function wb(a,b){if(b.a.length&&4!=a.i)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");E.call(this,a.i);this.c=a;this.h=b;this.g=a.g;this.b=a.b}k(wb,E);wb.prototype.a=function(a){a=this.c.a(a);return xb(this.h,a)};wb.prototype.toString=function(){var a="Filter:"+G(this.c);return a+=G(this.h)};function yb(a,b){if(b.lengtha.H)throw Error("Function "+a.l+" expects at most "+a.H+" arguments, "+b.length+" given");a.$&&n(b,function(c,d){if(4!=c.i)throw Error("Argument "+d+" to function "+a.l+" is not of type Nodeset: "+c);});E.call(this,a.i);this.D=a;this.c=b;nb(this,a.g||ua(b,function(c){return c.g}));ob(this,a.Z&&!b.length||a.Y&&!!b.length||ua(b,function(c){return c.b}))} +k(yb,E);yb.prototype.a=function(a){return this.D.s.apply(null,xa(a,this.c))};yb.prototype.toString=function(){var a="Function: "+this.D;if(this.c.length){var b=ta(this.c,function(c,d){return c+G(d)},"Arguments:");a+=G(b)}return a};function zb(a,b,c,d,e,f,g,h){this.l=a;this.i=b;this.g=c;this.Z=d;this.Y=!1;this.s=e;this.M=f;this.H=void 0!==g?g:f;this.$=!!h}zb.prototype.toString=function(){return this.l};var Ab={}; function K(a,b,c,d,e,f,g,h){if(Ab.hasOwnProperty(a))throw Error("Function already created: "+a+".");Ab[a]=new zb(a,b,c,d,e,f,g,h)}K("boolean",2,!1,!1,function(a,b){return pb(b,a)},1);K("ceiling",1,!1,!1,function(a,b){return Math.ceil(H(b,a))},1);K("concat",3,!1,!1,function(a,b){return ta(ya(arguments,1),function(c,d){return c+I(d,a)},"")},2,null);K("contains",2,!1,!1,function(a,b,c){b=I(b,a);a=I(c,a);return-1!=b.indexOf(a)},2);K("count",1,!1,!1,function(a,b){return b.a(a).m},1,1,!0); K("false",2,!1,!1,function(){return!1},0);K("floor",1,!1,!1,function(a,b){return Math.floor(H(b,a))},1);K("id",4,!1,!1,function(a,b){var c=a.a,d=9==c.nodeType?c:c.ownerDocument;a=I(b,a).split(/\s+/);var e=[];n(a,function(g){g=d.getElementById(g);!g||0<=qa(e,g)||e.push(g)});e.sort(Za);var f=new A;n(e,function(g){f.add(g)});return f},1);K("lang",2,!1,!1,function(){return!1},1);K("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.f},0); K("local-name",3,!1,!0,function(a,b){return(a=b?kb(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);K("name",3,!1,!0,function(a,b){return(a=b?kb(b.a(a)):a.a)?a.nodeName.toLowerCase():""},0,1,!0);K("namespace-uri",3,!0,!1,function(){return""},0,1,!0);K("normalize-space",3,!1,!0,function(a,b){return(b?I(b,a):z(a.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);K("not",2,!1,!1,function(a,b){return!pb(b,a)},1);K("number",1,!1,!0,function(a,b){return b?H(b,a):+z(a.a)},0,1); K("position",1,!0,!1,function(a){return a.b},0);K("round",1,!1,!1,function(a,b){return Math.round(H(b,a))},1);K("starts-with",2,!1,!1,function(a,b,c){b=I(b,a);a=I(c,a);return 0==b.lastIndexOf(a,0)},2);K("string",3,!1,!0,function(a,b){return b?I(b,a):z(a.a)},0,1);K("string-length",1,!1,!0,function(a,b){return(b?I(b,a):z(a.a)).length},0,1); K("substring",3,!1,!1,function(a,b,c,d){c=H(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?H(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=I(b,a);return Infinity==d?a.substring(e):a.substring(e,c+Math.round(d))},2,3);K("substring-after",3,!1,!1,function(a,b,c){b=I(b,a);a=I(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2); K("substring-before",3,!1,!1,function(a,b,c){b=I(b,a);a=I(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);K("sum",1,!1,!1,function(a,b){a=C(b.a(a));b=0;for(var c=D(a);c;c=D(a))b+=+z(c);return b},1,1,!0);K("translate",3,!1,!1,function(a,b,c,d){b=I(b,a);c=I(c,a);var e=I(d,a);a={};for(d=0;da.length)throw Error("Unclosed literal string");return new Cb(a)} function ac(a){var b=[];if(Jb(q(a.a))){var c=r(a.a);var d=q(a.a);if("/"==c&&(Sa(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new Hb;d=new Hb;N(a,"Missing next location step.");c=bc(a,c);b.push(c)}else{a:{c=q(a.a);d=c.charAt(0);switch(d){case "$":throw Error("Variable reference not allowed in HTML XPath");case "(":r(a.a);c=Wb(a);N(a,'unclosed "("');Yb(a,")");break;case '"':case "'":c=$b(a);break;default:if(isNaN(+c))if(!Bb(c)&&/(?![0-9])[\w]/.test(d)&&"("==q(a.a,1)){c=r(a.a); c=Ab[c]||null;r(a.a);for(d=[];")"!=q(a.a);){N(a,"Missing function argument list.");d.push(Wb(a));if(","!=q(a.a))break;r(a.a)}N(a,"Unclosed function argument list.");Zb(a);c=new yb(c,d)}else{c=null;break a}else c=new Eb(+r(a.a))}"["==q(a.a)&&(d=new Mb(cc(a)),c=new wb(c,d))}if(c)if(Jb(q(a.a)))d=c;else return c;else c=bc(a,"/"),d=new Ib,b.push(c)}for(;Jb(q(a.a));)c=r(a.a),N(a,"Missing next location step."),c=bc(a,c),b.push(c);return new Fb(d,b)} @@ -79,38 +79,39 @@ ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#0 lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1", moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57", seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var oc="backgroundColor borderTopColor borderRightColor borderBottomColor borderLeftColor color outlineColor".split(" "),pc=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,qc=/^#(?:[0-9a-f]{3}){1,2}$/i,rc=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i,sc=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;var tc=Ka(),uc=Na()||p("iPod"),vc=p("iPad"),wc=p("Android")&&!(La()||Ka()||p("Opera")||p("Silk")),xc=La(),yc=p("Safari")&&!(La()||p("Coast")||p("Opera")||p("Edge")||p("Edg/")||p("OPR")||Ka()||p("Silk")||p("Android"))&&!(Na()||p("iPad")||p("iPod"));function zc(a){return(a=a.exec(Da))?a[1]:""}(function(){if(tc)return zc(/Firefox\/([0-9.]+)/);if(xc)return Na()||p("iPad")||p("iPod")?zc(/CriOS\/([0-9.]+)/):zc(/Chrome\/([0-9.]+)/);if(yc&&!(Na()||p("iPad")||p("iPod")))return zc(/Version\/([0-9.]+)/);if(uc||vc){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Da);if(a)return a[1]+"."+a[2]}else if(wc)return(a=zc(/Android\s+([0-9.]+)/))?a:zc(/Version\/([0-9.]+)/);return""})();function Ac(a,b){b=b.toLowerCase();return"style"==b?Bc(a.style.cssText):(a=a.getAttributeNode(b))&&a.specified?a.value:null}var Cc=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/;function Bc(a){var b=[];n(a.split(Cc),function(c){var d=c.indexOf(":");0=b&&0<=c&&255>=c&&0<=d&&255>=d&&0<=e&&1>=e)){b=[b,c,d,e];break b}b=null}if(!b)b:{if(d=a.match(sc))if(b=Number(d[1]), +function S(a,b){b&&"string"!==typeof b&&(b=b.toString());return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)};var Dc={o:function(a,b){ha(b.querySelector);if(!a)throw new P(32,"No selector specified");a=Ca(a);try{var c=b.querySelector(a)}catch(d){throw new P(32,"An invalid or illegal selector was specified");}return c&&1==c.nodeType?c:null},j:function(a,b){ha(b.querySelectorAll);if(!a)throw new P(32,"No selector specified");a=Ca(a);try{return b.querySelectorAll(a)}catch(c){throw new P(32,"An invalid or illegal selector was specified");}}};function Ec(a,b,c,d){this.c=a;this.a=b;this.b=c;this.f=d}Ec.prototype.ceil=function(){this.c=Math.ceil(this.c);this.a=Math.ceil(this.a);this.b=Math.ceil(this.b);this.f=Math.ceil(this.f);return this};Ec.prototype.floor=function(){this.c=Math.floor(this.c);this.a=Math.floor(this.a);this.b=Math.floor(this.b);this.f=Math.floor(this.f);return this};Ec.prototype.round=function(){this.c=Math.round(this.c);this.a=Math.round(this.a);this.b=Math.round(this.b);this.f=Math.round(this.f);return this};function T(a,b,c,d){this.a=a;this.b=b;this.width=c;this.height=d}T.prototype.ceil=function(){this.a=Math.ceil(this.a);this.b=Math.ceil(this.b);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};T.prototype.floor=function(){this.a=Math.floor(this.a);this.b=Math.floor(this.b);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; +T.prototype.round=function(){this.a=Math.round(this.a);this.b=Math.round(this.b);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var Fc="function"===typeof ShadowRoot;function Gc(a){for(a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return S(a)?a:null} +function U(a,b){b=Ma(b);if("float"==b||"cssFloat"==b||"styleFloat"==b)b="cssFloat";a:{var c=b;var d=v(a);if(d.defaultView&&d.defaultView.getComputedStyle&&(d=d.defaultView.getComputedStyle(a,null))){c=d[c]||d.getPropertyValue(c)||"";break a}c=""}a=c||Hc(a,b);if(null===a)a=null;else if(0<=qa(oc,b)){b:{var e=a.match(rc);if(e&&(b=Number(e[1]),c=Number(e[2]),d=Number(e[3]),e=Number(e[4]),0<=b&&255>=b&&0<=c&&255>=c&&0<=d&&255>=d&&0<=e&&1>=e)){b=[b,c,d,e];break b}b=null}if(!b)b:{if(d=a.match(sc))if(b=Number(d[1]), c=Number(d[2]),d=Number(d[3]),0<=b&&255>=b&&0<=c&&255>=c&&0<=d&&255>=d){b=[b,c,d,1];break b}b=null}if(!b)b:{b=a.toLowerCase();c=nc[b.toLowerCase()];if(!c&&(c="#"==b.charAt(0)?b:"#"+b,4==c.length&&(c=c.replace(pc,"#$1$1$2$2$3$3")),!qc.test(c))){b=null;break b}b=[parseInt(c.substr(1,2),16),parseInt(c.substr(3,2),16),parseInt(c.substr(5,2),16),1]}a=b?"rgba("+b.join(", ")+")":a}return a} -function Gc(a,b){var c=a.currentStyle||a.style,d=c[b];void 0===d&&ha(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?void 0!==d?d:null:(a=Fc(a))?Gc(a,b):null} -function Hc(a,b,c){function d(g){var h=W(g);return 0=E.a+E.width;E=e.c>=E.b+E.height;if(Q&&"hidden"==m.x||E&&"hidden"==m.y)return X;if(Q&&"visible"!=m.x||E&&"visible"!=m.y){if(w&&(m=d(a),e.f>=g.scrollWidth-m.x||e.a>=g.scrollHeight-m.y))return X;e=Ic(a);return e==X?X:"scroll"}}}return"none"} -function W(a){var b=Jc(a);if(b)return b.rect;if(S(a,"HTML"))return a=(Wa(v(a))||window).document,a="CSS1Compat"==a.compatMode?a.documentElement:a.body,a=new Ua(a.clientWidth,a.clientHeight),new U(0,0,a.width,a.height);try{var c=a.getBoundingClientRect()}catch(d){return new U(0,0,0,0)}return new U(c.left,c.top,c.right-c.left,c.bottom-c.top)} -function Jc(a){var b=S(a,"MAP");if(!b&&!S(a,"AREA"))return null;var c=b?a:S(a.parentNode,"MAP")?a.parentNode:null,d=null,e=null;c&&c.name&&(d=T.o('/descendant::*[@usemap = "#'+c.name+'"]',v(c)))&&(e=W(d),b||"default"==a.shape.toLowerCase()||(a=Nc(a),b=Math.min(Math.max(a.a,0),e.width),c=Math.min(Math.max(a.b,0),e.height),e=new U(b+e.a,c+e.b,Math.min(a.width,e.width-b),Math.min(a.height,e.height-c))));return{image:d,rect:e||new U(0,0,0,0)}} -function Nc(a){var b=a.shape.toLowerCase();a=a.coords.split(",");if("rect"==b&&4==a.length){b=a[0];var c=a[1];return new U(b,c,a[2]-b,a[3]-c)}if("circle"==b&&3==a.length)return b=a[2],new U(a[0]-b,a[1]-b,2*b,2*b);if("poly"==b&&2=~*^$|%&@`{}\-\/\[\]\(\)])/g, -"\\$1")}};var Y={},Zc={};Y.O=function(a,b,c){try{var d=Xc.j("a",b)}catch(e){d=x(u(b),"A",null,b)}return wa(d,function(e){e=Pc(e);e=e.replace(/^[\s]+|[\s]+$/g,"");return c&&-1!=e.indexOf(a)||e==a})};Y.L=function(a,b,c){try{var d=Xc.j("a",b)}catch(e){d=x(u(b),"A",null,b)}return ra(d,function(e){e=Pc(e);e=e.replace(/^[\s]+|[\s]+$/g,"");return c&&-1!=e.indexOf(a)||e==a})};Y.o=function(a,b){return Y.O(a,b,!1)};Y.j=function(a,b){return Y.L(a,b,!1)};Zc.o=function(a,b){return Y.O(a,b,!0)}; -Zc.j=function(a,b){return Y.L(a,b,!0)};var Z={F:function(a,b){return function(c){var d=Z.u(a);d=W(d);c=W(c);return b.call(null,d,c)}},S:function(a){return Z.F(a,function(b,c){return c.b+c.height=F.a+F.width;F=e.c>=F.b+F.height;if(Q&&"hidden"==m.x||F&&"hidden"==m.y)return W;if(Q&&"visible"!=m.x||F&&"visible"!=m.y){if(w&&(m=d(a),e.f>=g.scrollWidth-m.x||e.a>=g.scrollHeight-m.y))return W;e=Jc(a);return e==W?W:"scroll"}}}return"none"} +function V(a){var b=Kc(a);if(b)return b.rect;if(S(a,"HTML"))return a=(Wa(v(a))||window).document,a="CSS1Compat"==a.compatMode?a.documentElement:a.body,a=new Ua(a.clientWidth,a.clientHeight),new T(0,0,a.width,a.height);try{var c=a.getBoundingClientRect()}catch(d){return new T(0,0,0,0)}return new T(c.left,c.top,c.right-c.left,c.bottom-c.top)} +function Kc(a){var b=S(a,"MAP");if(!b&&!S(a,"AREA"))return null;var c=b?a:S(a.parentNode,"MAP")?a.parentNode:null,d=null,e=null;c&&c.name&&(d=Dc.o('*[usemap="#'+c.name+'"]',v(c)))&&(e=V(d),b||"default"==a.shape.toLowerCase()||(a=Oc(a),b=Math.min(Math.max(a.a,0),e.width),c=Math.min(Math.max(a.b,0),e.height),e=new T(b+e.a,c+e.b,Math.min(a.width,e.width-b),Math.min(a.height,e.height-c))));return{image:d,rect:e||new T(0,0,0,0)}} +function Oc(a){var b=a.shape.toLowerCase();a=a.coords.split(",");if("rect"==b&&4==a.length){b=a[0];var c=a[1];return new T(b,c,a[2]-b,a[3]-c)}if("circle"==b&&3==a.length)return b=a[2],new T(a[0]-b,a[1]-b,2*b,2*b);if("poly"==b&&2=~*^$|%&@`{}\-\/\[\]\(\)])/g, +"\\$1")}};var X={},Zc={};X.O=function(a,b,c){try{var d=Dc.j("a",b)}catch(e){d=x(u(b),"A",null,b)}return wa(d,function(e){e=Qc(e);e=e.replace(/^[\s]+|[\s]+$/g,"");return c&&-1!=e.indexOf(a)||e==a})};X.L=function(a,b,c){try{var d=Dc.j("a",b)}catch(e){d=x(u(b),"A",null,b)}return ra(d,function(e){e=Qc(e);e=e.replace(/^[\s]+|[\s]+$/g,"");return c&&-1!=e.indexOf(a)||e==a})};X.o=function(a,b){return X.O(a,b,!1)};X.j=function(a,b){return X.L(a,b,!1)};Zc.o=function(a,b){return X.O(a,b,!0)}; +Zc.j=function(a,b){return X.L(a,b,!0)};var Y={F:function(a,b){return function(c){var d=Y.u(a);d=V(d);c=V(c);return b.call(null,d,c)}},S:function(a){return Y.F(a,function(b,c){return c.b+c.height=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};var qa=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]}; -function ra(a){var b=0;a=qa(String(a)).split(".");for(var c=qa("4").split("."),d=Math.max(a.length,c.length),e=0;0==b&&eb?1:0};var q;a:{var ta=aa.navigator;if(ta){var ua=ta.userAgent;if(ua){q=ua;break a}}q=""}function r(a){return-1!=q.indexOf(a)};function va(){return r("Firefox")||r("FxiOS")}function wa(){return(r("Chrome")||r("CriOS"))&&!r("Edge")};function xa(){return r("iPhone")&&!r("iPod")&&!r("iPad")};var ya=r("Macintosh"),za=r("Windows");function Aa(a){this.b=a;this.a=0}function Ba(a){a=a.match(Ca);for(var b=0;b]=|\s+|./g,Da=/^\s/;function t(a,b){return a.b[a.a+(b||0)]}function v(a){return a.b[a.a++]}function Ea(a){return a.b.length<=a.a};function Fa(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a} -function Ga(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=1==a.nodeType,d=1==b.nodeType;if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,f=b.parentNode;return e==f?Ia(a,b):!c&&Fa(e,b)?-1*Ja(a,b):!d&&Fa(f,a)?Ja(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=Ka(a);c=d.createRange();c.selectNode(a);c.collapse(!0);a=d.createRange();a.selectNode(b); -a.collapse(!0);return c.compareBoundaryPoints(aa.Range.START_TO_END,a)}function Ja(a,b){var c=a.parentNode;if(c==b)return-1;for(;b.parentNode!=c;)b=b.parentNode;return Ia(b,a)}function Ia(a,b){for(;b=b.previousSibling;)if(b==a)return-1;return 1}function Ka(a){return 9==a.nodeType?a:a.ownerDocument||a.document};function x(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:b,b=void 0==b||null==b?"":b);if("string"!=typeof b)if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;c=0;var d=[];for(b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return b} -function y(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function La(a,b,c,d,e){return Ma.call(null,a,b,ba(c)?c:null,ba(d)?d:null,e||new z)} -function Ma(a,b,c,d,e){b.getElementsByName&&d&&"name"==c?(b=b.getElementsByName(d),m(b,function(f){a.a(f)&&e.add(f)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),m(b,function(f){f.className==d&&a.a(f)&&e.add(f)})):a instanceof A?Na(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.f()),m(b,function(f){y(f,c,d)&&e.add(f)}));return e}function Na(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)y(b,c,d)&&a.a(b)&&e.add(b),Na(a,b,c,d,e)};function z(){this.b=this.a=null;this.o=0}function Oa(a){this.f=a;this.a=this.b=null}function Pa(a,b){if(!a.a)return b;if(!b.a)return a;var c=a.a;b=b.a;for(var d=null,e,f=0;c&&b;)c.f==b.f?(e=c,c=c.a,b=b.a):0",4,2,function(a,b,c){return J(function(d,e){return d>e},a,b,c)});K("<=",4,2,function(a,b,c){return J(function(d,e){return d<=e},a,b,c)});K(">=",4,2,function(a,b,c){return J(function(d,e){return d>=e},a,b,c)});var Xa=K("=",3,2,function(a,b,c){return J(function(d,e){return d==e},a,b,c,!0)});K("!=",3,2,function(a,b,c){return J(function(d,e){return d!=e},a,b,c,!0)});K("and",2,2,function(a,b,c){return H(a,c)&&H(b,c)});K("or",1,2,function(a,b,c){return H(a,c)||H(b,c)});function $a(a,b){if(b.a.length&&4!=a.l)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");D.call(this,a.l);this.c=a;this.j=b;this.i=a.i;this.b=a.b}g($a,D);$a.prototype.a=function(a){a=this.c.a(a);return ab(this.j,a)};$a.prototype.toString=function(){var a="Filter:"+E(this.c);return a+=E(this.j)};function bb(a,b){if(b.lengtha.D)throw Error("Function "+a.m+" expects at most "+a.D+" arguments, "+b.length+" given");a.K&&m(b,function(c,d){if(4!=c.l)throw Error("Argument "+d+" to function "+a.m+" is not of type Nodeset: "+c);});D.call(this,a.l);this.B=a;this.c=b;Ua(this,a.i||na(b,function(c){return c.i}));Va(this,a.J&&!b.length||a.I&&!!b.length||na(b,function(c){return c.b}))} -g(bb,D);bb.prototype.a=function(a){return this.B.s.apply(null,oa(a,this.c))};bb.prototype.toString=function(){var a="Function: "+this.B;if(this.c.length){var b=p(this.c,function(c,d){return c+E(d)},"Arguments:");a+=E(b)}return a};function cb(a,b,c,d,e,f,h,n){this.m=a;this.l=b;this.i=c;this.J=d;this.I=!1;this.s=e;this.F=f;this.D=void 0!==h?h:f;this.K=!!n}cb.prototype.toString=function(){return this.m};var db={}; -function L(a,b,c,d,e,f,h,n){if(db.hasOwnProperty(a))throw Error("Function already created: "+a+".");db[a]=new cb(a,b,c,d,e,f,h,n)}L("boolean",2,!1,!1,function(a,b){return H(b,a)},1);L("ceiling",1,!1,!1,function(a,b){return Math.ceil(F(b,a))},1);L("concat",3,!1,!1,function(a,b){return p(pa(arguments,1),function(c,d){return c+G(d,a)},"")},2,null);L("contains",2,!1,!1,function(a,b,c){b=G(b,a);a=G(c,a);return-1!=b.indexOf(a)},2);L("count",1,!1,!1,function(a,b){return b.a(a).o},1,1,!0); -L("false",2,!1,!1,function(){return!1},0);L("floor",1,!1,!1,function(a,b){return Math.floor(F(b,a))},1);L("id",4,!1,!1,function(a,b){var c=a.a,d=9==c.nodeType?c:c.ownerDocument;a=G(b,a).split(/\s+/);var e=[];m(a,function(h){h=d.getElementById(h);!h||0<=la(e,h)||e.push(h)});e.sort(Ga);var f=new z;m(e,function(h){f.add(h)});return f},1);L("lang",2,!1,!1,function(){return!1},1);L("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.f},0); -L("local-name",3,!1,!0,function(a,b){return(a=b?Ra(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);L("name",3,!1,!0,function(a,b){return(a=b?Ra(b.a(a)):a.a)?a.nodeName.toLowerCase():""},0,1,!0);L("namespace-uri",3,!0,!1,function(){return""},0,1,!0);L("normalize-space",3,!1,!0,function(a,b){return(b?G(b,a):x(a.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);L("not",2,!1,!1,function(a,b){return!H(b,a)},1);L("number",1,!1,!0,function(a,b){return b?F(b,a):+x(a.a)},0,1); -L("position",1,!0,!1,function(a){return a.b},0);L("round",1,!1,!1,function(a,b){return Math.round(F(b,a))},1);L("starts-with",2,!1,!1,function(a,b,c){b=G(b,a);a=G(c,a);return 0==b.lastIndexOf(a,0)},2);L("string",3,!1,!0,function(a,b){return b?G(b,a):x(a.a)},0,1);L("string-length",1,!1,!0,function(a,b){return(b?G(b,a):x(a.a)).length},0,1); -L("substring",3,!1,!1,function(a,b,c,d){c=F(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?F(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=G(b,a);return Infinity==d?a.substring(e):a.substring(e,c+Math.round(d))},2,3);L("substring-after",3,!1,!1,function(a,b,c){b=G(b,a);a=G(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2); -L("substring-before",3,!1,!1,function(a,b,c){b=G(b,a);a=G(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);L("sum",1,!1,!1,function(a,b){a=B(b.a(a));b=0;for(var c=C(a);c;c=C(a))b+=+x(c);return b},1,1,!0);L("translate",3,!1,!1,function(a,b,c,d){b=G(b,a);c=G(c,a);var e=G(d,a);a={};for(d=0;da.length)throw Error("Unclosed literal string");return new fb(a)} -function Eb(a){var b=[];if(mb(t(a.a))){var c=v(a.a);var d=t(a.a);if("/"==c&&(Ea(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new kb;d=new kb;Q(a,"Missing next location step.");c=Fb(a,c);b.push(c)}else{a:{c=t(a.a);d=c.charAt(0);switch(d){case "$":throw Error("Variable reference not allowed in HTML XPath");case "(":v(a.a);c=zb(a);Q(a,'unclosed "("');Bb(a,")");break;case '"':case "'":c=Db(a);break;default:if(isNaN(+c))if(!eb(c)&&/(?![0-9])[\w]/.test(d)&&"("==t(a.a,1)){c=v(a.a); -c=db[c]||null;v(a.a);for(d=[];")"!=t(a.a);){Q(a,"Missing function argument list.");d.push(zb(a));if(","!=t(a.a))break;v(a.a)}Q(a,"Unclosed function argument list.");Cb(a);c=new bb(c,d)}else{c=null;break a}else c=new hb(+v(a.a))}"["==t(a.a)&&(d=new pb(Gb(a)),c=new $a(c,d))}if(c)if(mb(t(a.a)))d=c;else return c;else c=Fb(a,"/"),d=new lb,b.push(c)}for(;mb(t(a.a));)c=v(a.a),Q(a,"Missing next location step."),c=Fb(a,c),b.push(c);return new ib(d,b)} -function Fb(a,b){if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==t(a.a)){var c=new O(vb,new A("node"));v(a.a);return c}if(".."==t(a.a))return c=new O(ub,new A("node")),v(a.a),c;if("@"==t(a.a)){var d=jb;v(a.a);Q(a,"Missing attribute name")}else if("::"==t(a.a,1)){if(!/(?![0-9])[\w]/.test(t(a.a).charAt(0)))throw Error("Bad token: "+v(a.a));var e=v(a.a);d=tb[e]||null;if(!d)throw Error("No axis with name: "+e);v(a.a);Q(a,"Missing node name")}else d=qb;e=t(a.a);if(/(?![0-9])[\w\*]/.test(e.charAt(0)))if("("== -t(a.a,1)){if(!eb(e))throw Error("Invalid node type: "+e);e=v(a.a);if(!eb(e))throw Error("Invalid type name: "+e);Bb(a,"(");Q(a,"Bad nodetype");var f=t(a.a).charAt(0),h=null;if('"'==f||"'"==f)h=Db(a);Q(a,"Bad nodetype");Cb(a);e=new A(e,h)}else if(e=v(a.a),f=e.indexOf(":"),-1==f)e=new gb(e);else{h=e.substring(0,f);if("*"==h)var n="*";else if(n=a.b(h),!n)throw Error("Namespace prefix not declared: "+h);e=e.substr(f+1);e=new gb(e,n)}else throw Error("Bad token: "+v(a.a));a=new pb(Gb(a),d.v);return c|| -new O(d,e,a,"//"==b)}function Gb(a){for(var b=[];"["==t(a.a);){v(a.a);Q(a,"Missing predicate expression.");var c=zb(a);b.push(c);Q(a,"Unclosed predicate expression.");Bb(a,"]")}return b}function Ab(a){if("-"==t(a.a))return v(a.a),new wb(Ab(a));var b=Eb(a);if("|"!=t(a.a))a=b;else{for(b=[b];"|"==v(a.a);)Q(a,"Missing next union location path."),b.push(Eb(a));a.a.a--;a=new xb(b)}return a};function Hb(a){switch(a.nodeType){case 1:return ja(Ib,a);case 9:return Hb(a.documentElement);case 11:case 10:case 6:case 12:return Jb;default:return a.parentNode?Hb(a.parentNode):Jb}}function Jb(){return null}function Ib(a,b){if(a.prefix==b)return a.namespaceURI||"http://www.w3.org/1999/xhtml";var c=a.getAttributeNode("xmlns:"+b);return c&&c.specified?c.value||null:a.parentNode&&9!=a.parentNode.nodeType?Ib(a.parentNode,b):null};function Kb(a,b){if(!a.length)throw Error("Empty XPath expression.");a=Ba(a);if(Ea(a))throw Error("Invalid XPath expression.");b?"function"==da(b)||(b=ia(b.lookupNamespaceURI,b)):b=function(){return null};var c=zb(new yb(a,b));if(!Ea(a))throw Error("Bad token: "+v(a));this.evaluate=function(d,e){d=c.a(new l(d));return new R(d,e)}} -function R(a,b){if(0==b)if(a instanceof z)b=4;else if("string"==typeof a)b=2;else if("number"==typeof a)b=1;else if("boolean"==typeof a)b=3;else throw Error("Unexpected evaluation result.");if(2!=b&&1!=b&&3!=b&&!(a instanceof z))throw Error("value could not be converted to the specified type");this.resultType=b;switch(b){case 2:this.stringValue=a instanceof z?Sa(a):""+a;break;case 1:this.numberValue=a instanceof z?+Sa(a):+a;break;case 3:this.booleanValue=a instanceof z?0=d.length?null:d[f++]};this.snapshotItem=function(h){if(6!=b&&7!=b)throw Error("snapshotItem called with wrong result type");return h>=d.length||0>h?null:d[h]}}R.ANY_TYPE=0; -R.NUMBER_TYPE=1;R.STRING_TYPE=2;R.BOOLEAN_TYPE=3;R.UNORDERED_NODE_ITERATOR_TYPE=4;R.ORDERED_NODE_ITERATOR_TYPE=5;R.UNORDERED_NODE_SNAPSHOT_TYPE=6;R.ORDERED_NODE_SNAPSHOT_TYPE=7;R.ANY_UNORDERED_NODE_TYPE=8;R.FIRST_ORDERED_NODE_TYPE=9;function Lb(a){this.lookupNamespaceURI=Hb(a)} -function Mb(a,b){a=a||aa;var c=a.Document&&a.Document.prototype||a.document;if(!c.evaluate||b)a.XPathResult=R,c.evaluate=function(d,e,f,h){return(new Kb(d,f)).evaluate(e,h)},c.createExpression=function(d,e){return new Kb(d,e)},c.createNSResolver=function(d){return new Lb(d)}}ca("wgxpath.install",Mb);ca("wgxpath.install",Mb);function S(a,b){this.code=a;this.a=T[a]||Nb;this.message=b||"";a=this.a.replace(/((?:^|\s+)[a-z])/g,function(c){return c.toUpperCase().replace(/^[\s\xa0]+/g,"")});b=a.length-5;if(0>b||a.indexOf("Error",b)!=b)a+="Error";this.name=a;a=Error(this.message);a.name=this.name;this.stack=a.stack||""}g(S,Error);var Nb="unknown error",T={15:"element not selectable",11:"element not visible"};T[31]=Nb;T[30]=Nb;T[24]="invalid cookie domain";T[29]="invalid element coordinates";T[12]="invalid element state"; -T[32]="invalid selector";T[51]="invalid selector";T[52]="invalid selector";T[17]="javascript error";T[405]="unsupported operation";T[34]="move target out of bounds";T[27]="no such alert";T[7]="no such element";T[8]="no such frame";T[23]="no such window";T[28]="script timeout";T[33]="session not created";T[10]="stale element reference";T[21]="timeout";T[25]="unable to set cookie";T[26]="unexpected alert open";T[13]=Nb;T[9]="unknown command";var Ob=va(),Pb=xa()||r("iPod"),Qb=r("iPad"),Rb=r("Android")&&!(wa()||va()||r("Opera")||r("Silk")),Sb=wa(),Tb=r("Safari")&&!(wa()||r("Coast")||r("Opera")||r("Edge")||r("Edg/")||r("OPR")||va()||r("Silk")||r("Android"))&&!(xa()||r("iPad")||r("iPod"));function U(a){return(a=a.exec(q))?a[1]:""}var Ub=function(){if(Ob)return U(/Firefox\/([0-9.]+)/);if(Sb)return xa()||r("iPad")||r("iPod")?U(/CriOS\/([0-9.]+)/):U(/Chrome\/([0-9.]+)/);if(Tb&&!(xa()||r("iPad")||r("iPod")))return U(/Version\/([0-9.]+)/);if(Pb||Qb){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(q);if(a)return a[1]+"."+a[2]}else if(Rb)return(a=U(/Android\s+([0-9.]+)/))?a:U(/Version\/([0-9.]+)/);return""}();var Vb=Qb||Pb,Wb;if(Rb){var Xb=/Android\s+([0-9\.]+)/.exec(q);Wb=Xb?Xb[1]:"0"}else Wb="0";var Yb=Wb;function Zb(a,b){b=b.toLowerCase();return"style"==b?$b(a.style.cssText):(a=a.getAttributeNode(b))&&a.specified?a.value:null}var ac=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/;function $b(a){var b=[];m(a.split(ac),function(c){var d=c.indexOf(":");0");Z(191,"/","?");Z(192,"`","~");Z(219,"[","{"); -Z(220,"\\","|");Z(221,"]","}");Z({h:59,g:186},";",":");Z(222,"'",'"');var rc=new jc;rc.set(1,nc);rc.set(2,oc);rc.set(4,pc);rc.set(8,qc);(function(a){var b=new jc;m(kc(a),function(c){b.set(a.get(c).code,c)});return b})(rc);var sc={"class":"className",readonly:"readOnly"},tc="allowfullscreen allowpaymentrequest allowusermedia async autofocus autoplay checked compact complete controls declare default defaultchecked defaultselected defer disabled ended formnovalidate hidden indeterminate iscontenteditable ismap itemscope loop multiple muted nohref nomodule noresize noshade novalidate nowrap open paused playsinline pubdate readonly required reversed scoped seamless seeking selected truespeed typemustmatch willvalidate".split(" ");ca("_",function(a,b){var c=null,d=b.toLowerCase();if("style"==d)return(c=a.style)&&!ba(c)&&(c=c.cssText),c;if(("selected"==d||"checked"==d)&&cc(a)){if(!cc(a))throw new S(15,"Element is not selectable");b="selected";c=a.type&&a.type.toLowerCase();if("checkbox"==c||"radio"==c)b="checked";return a[b]?"true":null}var e=bc(a,"A");if(bc(a,"IMG")&&"src"==d||e&&"href"==d)return(c=Zb(a,d))&&(c=a[d]),c;if("spellcheck"==d){c=Zb(a,d);if(null!==c){if("false"==c.toLowerCase())return"false";if("true"==c.toLowerCase())return"true"}return a[d]+ -""}e=sc[b]||b;if(0<=la(tc,d))return(c=null!==Zb(a,b)||a[e])?"true":null;try{var f=a[e]}catch(h){}null==f||ea(f)?c=Zb(a,b):c=f;return null!=c?c.toString():null});; return this._.apply(null,arguments);}).apply(window, arguments);} +function(){return (function(){var d=this||self;function f(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a};var h=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);for(var c=0;cb||a.indexOf("Error",b)!=b)a+="Error";this.name=a;a=Error(this.message);a.name=this.name;this.stack=a.stack||""}f(l,Error);var n="unknown error",m={15:"element not selectable",11:"element not visible"};m[31]=n;m[30]=n;m[24]="invalid cookie domain";m[29]="invalid element coordinates";m[12]="invalid element state";m[32]="invalid selector"; +m[51]="invalid selector";m[52]="invalid selector";m[17]="javascript error";m[405]="unsupported operation";m[34]="move target out of bounds";m[27]="no such alert";m[7]="no such element";m[8]="no such frame";m[23]="no such window";m[28]="script timeout";m[33]="session not created";m[10]="stale element reference";m[21]="timeout";m[25]="unable to set cookie";m[26]="unexpected alert open";m[13]=n;m[9]="unknown command";function p(a){return-1!=q.indexOf(a)};var q;a:{var r=d.navigator;if(r){var t=r.userAgent;if(t){q=t;break a}}q=""};function v(){return p("Firefox")||p("FxiOS")}function w(){return(p("Chrome")||p("CriOS"))&&!p("Edge")};function x(){return p("iPhone")&&!p("iPod")&&!p("iPad")};var y=v(),z=x()||p("iPod"),A=p("iPad"),B=p("Android")&&!(w()||v()||p("Opera")||p("Silk")),C=w(),D=p("Safari")&&!(w()||p("Coast")||p("Opera")||p("Edge")||p("Edg/")||p("OPR")||v()||p("Silk")||p("Android"))&&!(x()||p("iPad")||p("iPod"));function E(a){return(a=a.exec(q))?a[1]:""}(function(){if(y)return E(/Firefox\/([0-9.]+)/);if(C)return x()||p("iPad")||p("iPod")?E(/CriOS\/([0-9.]+)/):E(/Chrome\/([0-9.]+)/);if(D&&!(x()||p("iPad")||p("iPod")))return E(/Version\/([0-9.]+)/);if(z||A){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(q);if(a)return a[1]+"."+a[2]}else if(B)return(a=E(/Android\s+([0-9.]+)/))?a:E(/Version\/([0-9.]+)/);return""})();function F(a,b){b=b.toLowerCase();return"style"==b?G(a.style.cssText):(a=a.getAttributeNode(b))&&a.specified?a.value:null}var H=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/;function G(a){var b=[];k(a.split(H),function(c){var e=c.indexOf(":");0