function(){return function(){function h(a){throw a;}var i=void 0,k=!0,l=null,m=!1;function n(a){return function(){return this[a]}}function aa(a){return function(){return a}}var o=this;
function ba(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 q(a){return a!==i}function r(a){return"string"==typeof a}function ca(a){return"function"==ba(a)}function da(a){var b=typeof a;return"object"==b&&a!=l||"function"==b}Math.floor(2147483648*Math.random()).toString(36);var ea=Date.now||function(){return+new Date};function t(a,b){function c(){}c.prototype=b.prototype;a.pa=b.prototype;a.prototype=new c};var fa=window;function ga(a,b){var c={},d;for(d in a)c[d]=b.call(i,a[d],d,a);return c};function u(a,b){this.code=a;this.message=b||"";this.name=ha[a]||ha[13];var c=Error(this.message);c.name=this.name;this.stack=c.stack||""}t(u,Error);
var ha={7:"NoSuchElementError",8:"NoSuchFrameError",9:"UnknownCommandError",10:"StaleElementReferenceError",11:"ElementNotVisibleError",12:"InvalidElementStateError",13:"UnknownError",15:"ElementNotSelectableError",19:"XPathLookupError",23:"NoSuchWindowError",24:"InvalidCookieDomainError",25:"UnableToSetCookieError",26:"ModalDialogOpenedError",27:"NoModalDialogOpenError",28:"ScriptTimeoutError",32:"InvalidSelectorError",35:"SqlDatabaseError",34:"MoveTargetOutOfBoundsError"};
u.prototype.toString=function(){return this.name+": "+this.message};function ia(a){var b=a.length-1;return 0<=b&&a.indexOf(" ",b)==b}function ja(a,b){for(var c=1;c<arguments.length;c++)var d=String(arguments[c]).replace(/\$/g,"$$$$"),a=a.replace(/\%s/,d);return a}function ka(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}
function la(a,b){for(var c=0,d=ka(String(a)).split("."),e=ka(String(b)).split("."),f=Math.max(d.length,e.length),g=0;0==c&&g<f;g++){var j=d[g]||"",p=e[g]||"",s=RegExp("(\\d*)(\\D*)","g"),w=RegExp("(\\d*)(\\D*)","g");do{var H=s.exec(j)||["","",""],S=w.exec(p)||["","",""];if(0==H[0].length&&0==S[0].length)break;c=((0==H[1].length?0:parseInt(H[1],10))<(0==S[1].length?0:parseInt(S[1],10))?-1:(0==H[1].length?0:parseInt(H[1],10))>(0==S[1].length?0:parseInt(S[1],10))?1:0)||((0==H[2].length)<(0==S[2].length)?
-1:(0==H[2].length)>(0==S[2].length)?1:0)||(H[2]<S[2]?-1:H[2]>S[2]?1:0)}while(0==c)}return c};var ma,na,oa,pa;function qa(){return o.navigator?o.navigator.userAgent:l}pa=oa=na=ma=m;var ra;if(ra=qa()){var sa=o.navigator;ma=0==ra.indexOf("Opera");na=!ma&&-1!=ra.indexOf("MSIE");oa=!ma&&-1!=ra.indexOf("WebKit");pa=!ma&&!oa&&"Gecko"==sa.product}var v=ma,x=na,y=pa,z=oa,ta;
a:{var ua="",va;if(v&&o.opera)var wa=o.opera.version,ua="function"==typeof wa?wa():wa;else if(y?va=/rv\:([^\);]+)(\)|;)/:x?va=/MSIE\s+([^\);]+)(\)|;)/:z&&(va=/WebKit\/(\S+)/),va)var xa=va.exec(qa()),ua=xa?xa[1]:"";if(x){var ya,za=o.document;ya=za?za.documentMode:i;if(ya>parseFloat(ua)){ta=String(ya);break a}}ta=ua}var Aa={};function Ba(a){return Aa[a]||(Aa[a]=0<=la(ta,a))}var Ca={};function Da(a){return Ca[a]||(Ca[a]=x&&!!document.documentMode&&document.documentMode>=a)};var Ea,Fa,Ga,Ha,Ia,Ja,Ka;Ka=Ja=Ia=Ha=Ga=Fa=Ea=m;var A=qa();A&&(-1!=A.indexOf("Firefox")?Ea=k:-1!=A.indexOf("Camino")?Fa=k:-1!=A.indexOf("iPhone")||-1!=A.indexOf("iPod")?Ga=k:-1!=A.indexOf("iPad")?Ha=k:-1!=A.indexOf("Android")?Ia=k:-1!=A.indexOf("Chrome")?Ja=k:-1!=A.indexOf("Safari")&&(Ka=k));var La=v,Ma=x,Na=Ea,Oa=Fa,Pa=Ga,Qa=Ha,Ra=Ia,Sa=Ja,Ta=Ka;function Ua(a){return(a=a.exec(qa()))?a[1]:""}var Va=function(){if(Na)return Ua(/Firefox\/([0-9.]+)/);if(Ma||La)return ta;if(Sa)return Ua(/Chrome\/([0-9.]+)/);if(Ta)return Ua(/Version\/([0-9.]+)/);if(Pa||Qa){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(qa());if(a)return a[1]+"."+a[2]}else{if(Ra)return(a=Ua(/Android\s+([0-9.]+)/))?a:Ua(/Version\/([0-9.]+)/);if(Oa)return Ua(/Camino\/([0-9.]+)/)}return""}();var Wa,Xa;function Ya(a){return Za?Wa(a):x?0<=la(document.documentMode,a):Ba(a)}var Za=function(){if(!y)return m;var a=o.Components;if(!a)return m;try{if(!a.classes)return m}catch(b){return m}var c=a.classes,a=a.interfaces,d=c["@mozilla.org/xpcom/version-comparator;1"].getService(a.nsIVersionComparator),c=c["@mozilla.org/xre/app-info;1"].getService(a.nsIXULAppInfo),e=c.platformVersion,f=c.version;Wa=function(a){return 0<=d.fa(e,""+a)};Xa=function(a){return 0<=d.fa(f,""+a)};return k}(),$a;
if(Ra){var ab=/Android\s+([0-9\.]+)/.exec(qa());$a=ab?ab[1]:"0"}else $a="0";var bb=$a,cb=x&&9<=document.documentMode,db=x&&!cb;function eb(){this.F=i}
function fb(a,b,c){switch(typeof b){case "string":gb(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(b==l){c.push("null");break}if("array"==ba(b)){var d=b.length;c.push("[");for(var e="",f=0;f<d;f++)c.push(e),e=b[f],fb(a,a.F?a.F.call(b,String(f),e):e,c),e=",";c.push("]");break}c.push("{");d="";for(f in b)Object.prototype.hasOwnProperty.call(b,f)&&(e=b[f],"function"!=typeof e&&(c.push(d),gb(f,
c),c.push(":"),fb(a,a.F?a.F.call(b,f,e):e,c),d=","));c.push("}");break;case "function":break;default:h(Error("Unknown type: "+typeof b))}}var hb={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},ib=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function gb(a,b){b.push('"',a.replace(ib,function(a){if(a in hb)return hb[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return hb[a]=e+b.toString(16)}),'"')};z||v||y&&Ya(3.5)||x&&Ya(8);function jb(a){Error.captureStackTrace?Error.captureStackTrace(this,jb):this.stack=Error().stack||"";a&&(this.message=String(a))}t(jb,Error);jb.prototype.name="CustomError";function kb(a,b){b.unshift(a);jb.call(this,ja.apply(l,b));b.shift();this.na=a}t(kb,jb);kb.prototype.name="AssertionError";function lb(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),f=d;else a&&(e+=": "+a,f=b);h(new kb(""+e,f||[]))}function mb(a,b,c){a||lb("",l,b,Array.prototype.slice.call(arguments,2))}function nb(a,b,c){da(a)||lb("Expected object but got %s: %s.",[ba(a),a],b,Array.prototype.slice.call(arguments,2))};var ob=Array.prototype;function B(a,b){for(var c=a.length,d=r(a)?a.split(""):a,e=0;e<c;e++)e in d&&b.call(i,d[e],e,a)}function pb(a,b){for(var c=a.length,d=[],e=0,f=r(a)?a.split(""):a,g=0;g<c;g++)if(g in f){var j=f[g];b.call(i,j,g,a)&&(d[e++]=j)}return d}function qb(a,b){for(var c=a.length,d=Array(c),e=r(a)?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(i,e[f],f,a));return d}function rb(a,b,c){if(a.reduce)return a.reduce(b,c);var d=c;B(a,function(c,f){d=b.call(i,d,c,f,a)});return d}
function sb(a,b){for(var c=a.length,d=r(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(i,d[e],e,a))return k;return m}function tb(a,b){var c;a:{c=a.length;for(var d=r(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(i,d[e],e,a)){c=e;break a}c=-1}return 0>c?l:r(a)?a.charAt(c):a[c]}function ub(a,b){var c;a:if(r(a))c=!r(b)||1!=b.length?-1:a.indexOf(b,0);else{for(c=0;c<a.length;c++)if(c in a&&a[c]===b)break a;c=-1}return 0<=c}function vb(a){return ob.concat.apply(ob,arguments)}
function wb(a,b,c){mb(a.length!=l);return 2>=arguments.length?ob.slice.call(a,b):ob.slice.call(a,b,c)};var xb;!x||Da(9);!y&&!x||x&&Da(9)||y&&Ba("1.9.1");x&&Ba("9");var yb="BODY";function C(a,b){this.x=q(a)?a:0;this.y=q(b)?b:0}C.prototype.toString=function(){return"("+this.x+", "+this.y+")"};function D(a,b){this.width=a;this.height=b}D.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};D.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};D.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};D.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var zb=3;function E(a){return a?new Ab(F(a)):xb||(xb=new Ab)}function Bb(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}
function Cb(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if((9==a.nodeType||9==b.nodeType)&&x&&!Ba(9)){if(9==a.nodeType)return-1;if(9==b.nodeType)return 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?Db(a,b):!c&&Bb(e,b)?-1*Eb(a,b):!d&&Bb(f,a)?Eb(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=
F(a);c=d.createRange();c.selectNode(a);c.collapse(k);d=d.createRange();d.selectNode(b);d.collapse(k);return c.compareBoundaryPoints(o.Range.START_TO_END,d)}function Eb(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return Db(d,a)}function Db(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1}function F(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
function Fb(a,b,c,d){if(a!=l)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||Fb(a,b,c,d))return k;a=a.nextSibling}return m}function Gb(a,b){for(var a=a.parentNode,c=0;a;){if(b(a))return a;a=a.parentNode;c++}return l}function Ab(a){this.A=a||o.document||document}
function G(a,b,c,d){a=d||a.A;b=b&&"*"!=b?b.toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))c=a.querySelectorAll(b+(c?"."+c:""));else if(c&&a.getElementsByClassName)if(a=a.getElementsByClassName(c),b){for(var d={},e=0,f=0,g;g=a[f];f++)b==g.nodeName&&(d[e++]=g);d.length=e;c=d}else c=a;else if(a=a.getElementsByTagName(b||"*"),c){d={};for(f=e=0;g=a[f];f++)b=g.className,"function"==typeof b.split&&ub(b.split(/\s+/),c)&&(d[e++]=g);d.length=e;c=d}else c=a;return c}
function Hb(a){var b=a.A,a=!z&&"CSS1Compat"==b.compatMode?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new C(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}Ab.prototype.contains=Bb;function Ib(a){switch(ba(a)){case "string":case "number":case "boolean":return a;case "function":return a.toString();case "array":return qb(a,Ib);case "object":if("nodeType"in a&&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMENT=Jb(a);return b}if("document"in a)return b={},b.WINDOW=Jb(a),b;var c=ba(a);if("array"==c||"object"==c&&"number"==typeof a.length)return qb(a,Ib);var c=function(a,b){return"number"==typeof b||r(b)},d={};for(b in a)c.call(i,0,b)&&(d[b]=a[b]);return ga(d,Ib);default:return l}}
function Kb(a,b){return"array"==ba(a)?qb(a,function(a){return Kb(a,b)}):da(a)?"function"==typeof a?a:"ELEMENT"in a?Lb(a.ELEMENT,b):"WINDOW"in a?Lb(a.WINDOW,b):ga(a,function(a){return Kb(a,b)}):a}function Mb(a){var a=a||document,b=a.$wdc_;b||(b=a.$wdc_={},b.M=ea());b.M||(b.M=ea());return b}function Jb(a){var b=Mb(a.ownerDocument),c;a:{c=function(b){return b==a};for(var d in b)if(c.call(i,b[d])){c=d;break a}c=i}c||(c=":wdc:"+b.M++,b[c]=a);return c}
function Lb(a,b){var a=decodeURIComponent(a),c=b||document,d=Mb(c);a in d||h(new u(10,"Element does not exist in cache"));var e=d[a];if("setInterval"in e)return e.closed&&(delete d[a],h(new u(23,"Window has been closed."))),e;for(var f=e;f;){if(f==c.documentElement)return e;f=f.parentNode}delete d[a];h(new u(10,"Element is no longer attached to the DOM"))};var Nb={P:function(a){return!(!a.querySelectorAll||!a.querySelector)},r:function(a,b){a||h(Error("No class name specified"));a=ka(a);1<a.split(/\s+/).length&&h(Error("Compound class names not permitted"));if(Nb.P(b))return b.querySelector("."+a.replace(/\./g,"\\."))||l;var c=G(E(b),"*",a,b);return c.length?c[0]:l},k:function(a,b){a||h(Error("No class name specified"));a=ka(a);1<a.split(/\s+/).length&&h(Error("Compound class names not permitted"));return Nb.P(b)?b.querySelectorAll("."+a.replace(/\./g,
"\\.")):G(E(b),"*",a,b)}};var Ob={r:function(a,b){!ca(b.querySelector)&&(x&&Ya(8)&&!da(b.querySelector))&&h(Error("CSS selection is not supported"));a||h(Error("No selector specified"));var a=ka(a),c=b.querySelector(a);return c&&1==c.nodeType?c:l},k:function(a,b){!ca(b.querySelectorAll)&&(x&&Ya(8)&&!da(b.querySelector))&&h(Error("CSS selection is not supported"));a||h(Error("No selector specified"));a=ka(a);return b.querySelectorAll(a)}};var Pb={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:"#9370d8",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:"#d87093",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 Qb="background-color border-top-color border-right-color border-bottom-color border-left-color color outline-color".split(" "),Rb=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/;function Sb(a){Tb.test(a)||h(Error("'"+a+"' is not a valid hex color"));4==a.length&&(a=a.replace(Rb,"#$1$1$2$2$3$3"));return a.toLowerCase()}var Tb=/^#(?:[0-9a-f]{3}){1,2}$/i,Ub=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i;
function Vb(a){var b=a.match(Ub);if(b){var a=Number(b[1]),c=Number(b[2]),d=Number(b[3]),b=Number(b[4]);if(0<=a&&255>=a&&0<=c&&255>=c&&0<=d&&255>=d&&0<=b&&1>=b)return[a,c,d,b]}return[]}var Wb=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function Xb(a){var b=a.match(Wb);if(b){var a=Number(b[1]),c=Number(b[2]),b=Number(b[3]);if(0<=a&&255>=a&&0<=c&&255>=c&&0<=b&&255>=b)return[a,c,b]}return[]};function Yb(a,b,c){this.c=a;this.la=b||1;this.j=c||1};var I=x&&!Da(9),Zb=x&&!Da(8);function $b(a,b,c,d,e){this.c=a;this.nodeName=c;this.nodeValue=d;this.nodeType=2;this.ownerElement=b;this.oa=e;this.parentNode=b}function ac(a,b,c){var d=Zb&&"href"==b.nodeName?a.getAttribute(b.nodeName,2):b.nodeValue;return new $b(b,a,b.nodeName,d,c)};function bc(a){this.O=a;this.C=0}var cc=RegExp("\\$?(?:(?![0-9-])[\\w-]+:)?(?![0-9-])[\\w-]+|\\/\\/|\\.\\.|::|\\d+(?:\\.\\d*)?|\\.\\d+|\"[^\"]*\"|'[^']*'|[!<>]=|\\s+|.","g"),dc=/^\s/;function J(a,b){return a.O[a.C+(b||0)]}bc.prototype.next=function(){return this.O[this.C++]};bc.prototype.back=function(){this.C--};bc.prototype.empty=function(){return this.O.length<=this.C};function K(a){var b=l,c=a.nodeType;1==c&&(b=a.textContent,b=b==i||b==l?a.innerText:b,b=b==i||b==l?"":b);if("string"!=typeof b)if(I&&"title"==a.nodeName.toLowerCase()&&1==c)b=a.text;else if(9==c||1==c)for(var a=9==c?a.documentElement:a.firstChild,c=0,d=[],b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),I&&"title"==a.nodeName.toLowerCase()&&(b+=a.text),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}else b=a.nodeValue;return""+b}
function L(a,b,c){if(b===l)return k;try{if(!a.getAttribute)return m}catch(d){return m}Zb&&"class"==b&&(b="className");return c==l?!!a.getAttribute(b):a.getAttribute(b,2)==c}function ec(a,b,c,d,e){return(I?fc:gc).call(l,a,b,r(c)?c:l,r(d)?d:l,e||new M)}
function fc(a,b,c,d,e){if(a instanceof hc||8==a.i||c&&a.i===l){var f=b.all;if(!f)return e;a=ic(a);if("*"!=a&&(f=b.getElementsByTagName(a),!f))return e;if(c){for(var g=[],j=0;b=f[j++];)L(b,c,d)&&g.push(b);f=g}for(j=0;b=f[j++];)("*"!=a||"!"!=b.tagName)&&e.add(b);return e}jc(a,b,c,d,e);return e}
function gc(a,b,c,d,e){b.getElementsByName&&d&&"name"==c&&!x?(b=b.getElementsByName(d),B(b,function(b){a.matches(b)&&e.add(b)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),B(b,function(b){b.className==d&&a.matches(b)&&e.add(b)})):a instanceof N?jc(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),B(b,function(a){L(a,c,d)&&e.add(a)}));return e}
function kc(a,b,c,d,e){var f;if((a instanceof hc||8==a.i||c&&a.i===l)&&(f=b.childNodes)){var g=ic(a);if("*"!=g&&(f=pb(f,function(a){return a.tagName&&a.tagName.toLowerCase()==g}),!f))return e;c&&(f=pb(f,function(a){return L(a,c,d)}));B(f,function(a){("*"!=g||"!"!=a.tagName&&!("*"==g&&1!=a.nodeType))&&e.add(a)});return e}return lc(a,b,c,d,e)}function lc(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)L(b,c,d)&&a.matches(b)&&e.add(b);return e}
function jc(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)L(b,c,d)&&a.matches(b)&&e.add(b),jc(a,b,c,d,e)}function ic(a){if(a instanceof N){if(8==a.i)return"!";if(a.i===l)return"*"}return a.getName()};function M(){this.j=this.g=l;this.v=0}function mc(a){this.n=a;this.next=this.s=l}function nc(a,b){if(a.g){if(!b.g)return a}else return b;for(var c=a.g,d=b.g,e=l,f=l,g=0;c&&d;)c.n==d.n||c.n instanceof $b&&d.n instanceof $b&&c.n.c==d.n.c?(f=c,c=c.next,d=d.next):0<Cb(c.n,d.n)?(f=d,d=d.next):(f=c,c=c.next),(f.s=e)?e.next=f:a.g=f,e=f,g++;for(f=c||d;f;)f.s=e,e=e.next=f,g++,f=f.next;a.j=e;a.v=g;return a}
M.prototype.unshift=function(a){a=new mc(a);a.next=this.g;this.j?this.g.s=a:this.g=this.j=a;this.g=a;this.v++};M.prototype.add=function(a){a=new mc(a);a.s=this.j;this.g?this.j.next=a:this.g=this.j=a;this.j=a;this.v++};function oc(a){return(a=a.g)?a.n:l}M.prototype.o=n("v");function pc(a){return(a=oc(a))?K(a):""}function qc(a,b){return new rc(a,!!b)}function rc(a,b){this.ia=a;this.Q=(this.t=b)?a.j:a.g;this.K=l}
rc.prototype.next=function(){var a=this.Q;if(a==l)return l;var b=this.K=a;this.Q=this.t?a.s:a.next;return b.n};rc.prototype.remove=function(){var a=this.ia,b=this.K;b||h(Error("Next must be called at least once before remove."));var c=b.s,b=b.next;c?c.next=b:a.g=b;b?b.s=c:a.j=c;a.v--;this.K=l};function O(a){this.f=a;this.e=this.m=m;this.w=l}O.prototype.d=n("m");O.prototype.q=n("w");function P(a,b){var c=a.evaluate(b);return c instanceof M?+pc(c):+c}function Q(a,b){var c=a.evaluate(b);return c instanceof M?pc(c):""+c}function sc(a,b){var c=a.evaluate(b);return c instanceof M?!!c.o():!!c};function tc(a,b,c){O.call(this,a.f);this.N=a;this.U=b;this.$=c;this.m=b.d()||c.d();this.e=b.e||c.e;this.N==uc&&(!c.e&&!c.d()&&4!=c.f&&0!=c.f&&b.q()?this.w={name:b.q().name,u:c}:!b.e&&(!b.d()&&4!=b.f&&0!=b.f&&c.q())&&(this.w={name:c.q().name,u:b}))}t(tc,O);
function vc(a,b,c,d,e){var b=b.evaluate(d),c=c.evaluate(d),f;if(b instanceof M&&c instanceof M){f=qc(b);for(b=f.next();b;b=f.next()){e=qc(c);for(d=e.next();d;d=e.next())if(a(K(b),K(d)))return k}return m}if(b instanceof M||c instanceof M){b instanceof M?e=b:(e=c,c=b);e=qc(e);b=typeof c;for(d=e.next();d;d=e.next()){switch(b){case "number":f=+K(d);break;case "boolean":f=!!K(d);break;case "string":f=K(d);break;default:h(Error("Illegal primitive type for comparison."))}if(a(f,c))return k}return m}return e?
"boolean"==typeof b||"boolean"==typeof c?a(!!b,!!c):"number"==typeof b||"number"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}tc.prototype.evaluate=function(a){return this.N.l(this.U,this.$,a)};tc.prototype.toString=function(a){var a=a||"",b=a+"binary expression: "+this.N+"\n",a=a+"  ",b=b+(this.U.toString(a)+"\n");return b+=this.$.toString(a)};function wc(a,b,c,d){this.ka=a;this.Y=b;this.f=c;this.l=d}wc.prototype.toString=n("ka");var xc={};
function R(a,b,c,d){a in xc&&h(Error("Binary operator already created: "+a));a=new wc(a,b,c,d);return xc[a.toString()]=a}R("div",6,1,function(a,b,c){return P(a,c)/P(b,c)});R("mod",6,1,function(a,b,c){return P(a,c)%P(b,c)});R("*",6,1,function(a,b,c){return P(a,c)*P(b,c)});R("+",5,1,function(a,b,c){return P(a,c)+P(b,c)});R("-",5,1,function(a,b,c){return P(a,c)-P(b,c)});R("<",4,2,function(a,b,c){return vc(function(a,b){return a<b},a,b,c)});
R(">",4,2,function(a,b,c){return vc(function(a,b){return a>b},a,b,c)});R("<=",4,2,function(a,b,c){return vc(function(a,b){return a<=b},a,b,c)});R(">=",4,2,function(a,b,c){return vc(function(a,b){return a>=b},a,b,c)});var uc=R("=",3,2,function(a,b,c){return vc(function(a,b){return a==b},a,b,c,k)});R("!=",3,2,function(a,b,c){return vc(function(a,b){return a!=b},a,b,c,k)});R("and",2,2,function(a,b,c){return sc(a,c)&&sc(b,c)});R("or",1,2,function(a,b,c){return sc(a,c)||sc(b,c)});function yc(a,b){b.o()&&4!=a.f&&h(Error("Primary expression must evaluate to nodeset if filter has predicate(s)."));O.call(this,a.f);this.Z=a;this.b=b;this.m=a.d();this.e=a.e}t(yc,O);yc.prototype.evaluate=function(a){a=this.Z.evaluate(a);return zc(this.b,a)};yc.prototype.toString=function(a){var a=a||"",b=a+"Filter: \n",a=a+"  ",b=b+this.Z.toString(a);return b+=this.b.toString(a)};function Ac(a,b){b.length<a.X&&h(Error("Function "+a.h+" expects at least"+a.X+" arguments, "+b.length+" given"));a.L!==l&&b.length>a.L&&h(Error("Function "+a.h+" expects at most "+a.L+" arguments, "+b.length+" given"));a.ja&&B(b,function(b,d){4!=b.f&&h(Error("Argument "+d+" to function "+a.h+" is not of type Nodeset: "+b))});O.call(this,a.f);this.B=a;this.H=b;this.m=a.m||sb(b,function(a){return a.d()});this.e=a.ha&&!b.length||a.ga&&!!b.length||sb(b,function(a){return a.e})}t(Ac,O);
Ac.prototype.evaluate=function(a){return this.B.l.apply(l,vb(a,this.H))};Ac.prototype.toString=function(a){var b=a||"",a=b+"Function: "+this.B+"\n",b=b+"  ";this.H.length&&(a+=b+"Arguments:",b+="  ",a=rb(this.H,function(a,d){return a+"\n"+d.toString(b)},a));return a};function Bc(a,b,c,d,e,f,g,j,p){this.h=a;this.f=b;this.m=c;this.ha=d;this.ga=e;this.l=f;this.X=g;this.L=q(j)?j:g;this.ja=!!p}Bc.prototype.toString=n("h");var Cc={};
function T(a,b,c,d,e,f,g,j){a in Cc&&h(Error("Function already created: "+a+"."));Cc[a]=new Bc(a,b,c,d,m,e,f,g,j)}T("boolean",2,m,m,function(a,b){return sc(b,a)},1);T("ceiling",1,m,m,function(a,b){return Math.ceil(P(b,a))},1);T("concat",3,m,m,function(a,b){var c=wb(arguments,1);return rb(c,function(b,c){return b+Q(c,a)},"")},2,l);T("contains",2,m,m,function(a,b,c){b=Q(b,a);a=Q(c,a);return-1!=b.indexOf(a)},2);T("count",1,m,m,function(a,b){return b.evaluate(a).o()},1,1,k);T("false",2,m,m,aa(m),0);
T("floor",1,m,m,function(a,b){return Math.floor(P(b,a))},1);T("id",4,m,m,function(a,b){function c(a){if(I){var b=e.all[a];if(b){if(b.nodeType&&a==b.id)return b;if(b.length)return tb(b,function(b){return a==b.id})}return l}return e.getElementById(a)}var d=a.c,e=9==d.nodeType?d:d.ownerDocument,d=Q(b,a).split(/\s+/),f=[];B(d,function(a){(a=c(a))&&!ub(f,a)&&f.push(a)});f.sort(Cb);var g=new M;B(f,function(a){g.add(a)});return g},1);T("lang",2,m,m,aa(m),1);
T("last",1,k,m,function(a){1!=arguments.length&&h(Error("Function last expects ()"));return a.j},0);T("local-name",3,m,k,function(a,b){var c=b?oc(b.evaluate(a)):a.c;return c?c.nodeName.toLowerCase():""},0,1,k);T("name",3,m,k,function(a,b){var c=b?oc(b.evaluate(a)):a.c;return c?c.nodeName.toLowerCase():""},0,1,k);T("namespace-uri",3,k,m,aa(""),0,1,k);T("normalize-space",3,m,k,function(a,b){return(b?Q(b,a):K(a.c)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);
T("not",2,m,m,function(a,b){return!sc(b,a)},1);T("number",1,m,k,function(a,b){return b?P(b,a):+K(a.c)},0,1);T("position",1,k,m,function(a){return a.la},0);T("round",1,m,m,function(a,b){return Math.round(P(b,a))},1);T("starts-with",2,m,m,function(a,b,c){b=Q(b,a);a=Q(c,a);return 0==b.lastIndexOf(a,0)},2);T("string",3,m,k,function(a,b){return b?Q(b,a):K(a.c)},0,1);T("string-length",1,m,k,function(a,b){return(b?Q(b,a):K(a.c)).length},0,1);
T("substring",3,m,m,function(a,b,c,d){c=P(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?P(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";var c=Math.round(c)-1,e=Math.max(c,0),a=Q(b,a);if(Infinity==d)return a.substring(e);b=Math.round(d);return a.substring(e,c+b)},2,3);T("substring-after",3,m,m,function(a,b,c){b=Q(b,a);a=Q(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
T("substring-before",3,m,m,function(a,b,c){b=Q(b,a);a=Q(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);T("sum",1,m,m,function(a,b){for(var c=qc(b.evaluate(a)),d=0,e=c.next();e;e=c.next())d+=+K(e);return d},1,1,k);T("translate",3,m,m,function(a,b,c,d){for(var b=Q(b,a),c=Q(c,a),e=Q(d,a),a=[],d=0;d<c.length;d++){var f=c.charAt(d);f in a||(a[f]=e.charAt(d))}c="";for(d=0;d<b.length;d++)f=b.charAt(d),c+=f in a?a[f]:f;return c},3);T("true",2,m,m,aa(k),0);function N(a,b){this.ca=a;this.V=q(b)?b:l;this.i=l;switch(a){case "comment":this.i=8;break;case "text":this.i=zb;break;case "processing-instruction":this.i=7;break;case "node":break;default:h(Error("Unexpected argument"))}}function Dc(a){return"comment"==a||"text"==a||"processing-instruction"==a||"node"==a}N.prototype.matches=function(a){return this.i===l||this.i==a.nodeType};N.prototype.getName=n("ca");
N.prototype.toString=function(a){var a=a||"",b=a+"kindtest: "+this.ca;this.V===l||(b+="\n"+this.V.toString(a+"  "));return b};function Ec(a){O.call(this,3);this.ba=a.substring(1,a.length-1)}t(Ec,O);Ec.prototype.evaluate=n("ba");Ec.prototype.toString=function(a){return(a||"")+"literal: "+this.ba};function hc(a){this.h=a.toLowerCase()}hc.prototype.matches=function(a){var b=a.nodeType;if(1==b||2==b)return"*"==this.h||this.h==a.nodeName.toLowerCase()?k:this.h==(a.namespaceURI||"http://www.w3.org/1999/xhtml")+":*"};hc.prototype.getName=n("h");hc.prototype.toString=function(a){return(a||"")+"nametest: "+this.h};function Fc(a){O.call(this,1);this.da=a}t(Fc,O);Fc.prototype.evaluate=n("da");Fc.prototype.toString=function(a){return(a||"")+"number: "+this.da};function Gc(a,b){O.call(this,a.f);this.S=a;this.z=b;this.m=a.d();this.e=a.e;if(1==this.z.length){var c=this.z[0];!c.J&&c.p==Hc&&(c=c.G,"*"!=c.getName()&&(this.w={name:c.getName(),u:l}))}}t(Gc,O);function Ic(){O.call(this,4)}t(Ic,O);Ic.prototype.evaluate=function(a){var b=new M,a=a.c;9==a.nodeType?b.add(a):b.add(a.ownerDocument);return b};Ic.prototype.toString=function(a){return a+"RootHelperExpr"};function Jc(){O.call(this,4)}t(Jc,O);Jc.prototype.evaluate=function(a){var b=new M;b.add(a.c);return b};
Jc.prototype.toString=function(a){return a+"ContextHelperExpr"};
Gc.prototype.evaluate=function(a){var b=this.S.evaluate(a);b instanceof M||h(Error("FilterExpr must evaluate to nodeset."));for(var a=this.z,c=0,d=a.length;c<d&&b.o();c++){var e=a[c],f=qc(b,e.p.t),g;if(!e.d()&&e.p==Kc){for(g=f.next();(b=f.next())&&(!g.contains||g.contains(b))&&b.compareDocumentPosition(g)&8;g=b);b=e.evaluate(new Yb(g))}else if(!e.d()&&e.p==Lc)g=f.next(),b=e.evaluate(new Yb(g));else{g=f.next();for(b=e.evaluate(new Yb(g));(g=f.next())!=l;)g=e.evaluate(new Yb(g)),b=nc(b,g)}}return b};
Gc.prototype.toString=function(a){var b=a||"",c=b+"PathExpr:\n",b=b+"  ",c=c+this.S.toString(b);this.z.length&&(c+=b+"Steps:\n",b+="  ",B(this.z,function(a){c+=a.toString(b)}));return c};function Mc(a,b){this.b=a;this.t=!!b}function zc(a,b,c){for(c=c||0;c<a.b.length;c++)for(var d=a.b[c],e=qc(b),f=b.o(),g,j=0;g=e.next();j++){var p=a.t?f-j:j+1;g=d.evaluate(new Yb(g,p,f));var s;"number"==typeof g?s=p==g:"string"==typeof g||"boolean"==typeof g?s=!!g:g instanceof M?s=0<g.o():h(Error("Predicate.evaluate returned an unexpected type."));s||e.remove()}return b}Mc.prototype.q=function(){return 0<this.b.length?this.b[0].q():l};
Mc.prototype.d=function(){for(var a=0;a<this.b.length;a++){var b=this.b[a];if(b.d()||1==b.f||0==b.f)return k}return m};Mc.prototype.o=function(){return this.b.length};Mc.prototype.toString=function(a){var b=a||"",a=b+"Predicates:",b=b+"  ";return rb(this.b,function(a,d){return a+"\n"+b+d.toString(b)},a)};function Nc(a,b,c,d){O.call(this,4);this.p=a;this.G=b;this.b=c||new Mc([]);this.J=!!d;b=this.b.q();a.ma&&b&&(a=b.name,a=I?a.toLowerCase():a,this.w={name:a,u:b.u});this.m=this.b.d()}t(Nc,O);
Nc.prototype.evaluate=function(a){var b=a.c,c=l,c=this.q(),d=l,e=l,f=0;c&&(d=c.name,e=c.u?Q(c.u,a):l,f=1);if(this.J)if(!this.d()&&this.p==Oc)c=ec(this.G,b,d,e),c=zc(this.b,c,f);else if(a=qc((new Nc(Pc,new N("node"))).evaluate(a)),b=a.next())for(c=this.l(b,d,e,f);(b=a.next())!=l;)c=nc(c,this.l(b,d,e,f));else c=new M;else c=this.l(a.c,d,e,f);return c};Nc.prototype.l=function(a,b,c,d){a=this.p.B(this.G,a,b,c);return a=zc(this.b,a,d)};
Nc.prototype.toString=function(a){var a=a||"",b=a+"Step: \n",a=a+"  ",b=b+(a+"Operator: "+(this.J?"//":"/")+"\n");this.p.h&&(b+=a+"Axis: "+this.p+"\n");b+=this.G.toString(a);if(this.b.length)for(var b=b+(a+"Predicates: \n"),c=0;c<this.b.length;c++)var d=c<this.b.length-1?", ":"",b=b+(this.b[c].toString(a)+d);return b};function Qc(a,b,c,d){this.h=a;this.B=b;this.t=c;this.ma=d}Qc.prototype.toString=n("h");var Rc={};
function U(a,b,c,d){a in Rc&&h(Error("Axis already created: "+a));b=new Qc(a,b,c,!!d);return Rc[a]=b}U("ancestor",function(a,b){for(var c=new M,d=b;d=d.parentNode;)a.matches(d)&&c.unshift(d);return c},k);U("ancestor-or-self",function(a,b){var c=new M,d=b;do a.matches(d)&&c.unshift(d);while(d=d.parentNode);return c},k);
var Hc=U("attribute",function(a,b){var c=new M,d=a.getName();if("style"==d&&b.style&&I)return c.add(new $b(b.style,b,"style",b.style.cssText,b.sourceIndex)),c;var e=b.attributes;if(e)if(a instanceof N&&a.i===l||"*"==d)for(var d=b.sourceIndex,f=0,g;g=e[f];f++)I?g.nodeValue&&c.add(ac(b,g,d)):c.add(g);else(g=e.getNamedItem(d))&&(I?g.nodeValue&&c.add(ac(b,g,b.sourceIndex)):c.add(g));return c},m),Oc=U("child",function(a,b,c,d,e){return(I?kc:lc).call(l,a,b,r(c)?c:l,r(d)?d:l,e||new M)},m,k);
U("descendant",ec,m,k);var Pc=U("descendant-or-self",function(a,b,c,d){var e=new M;L(b,c,d)&&a.matches(b)&&e.add(b);return ec(a,b,c,d,e)},m,k),Kc=U("following",function(a,b,c,d){var e=new M;do for(var f=b;f=f.nextSibling;)L(f,c,d)&&a.matches(f)&&e.add(f),e=ec(a,f,c,d,e);while(b=b.parentNode);return e},m,k);U("following-sibling",function(a,b){for(var c=new M,d=b;d=d.nextSibling;)a.matches(d)&&c.add(d);return c},m);U("namespace",function(){return new M},m);
var Sc=U("parent",function(a,b){var c=new M;if(9==b.nodeType)return c;if(2==b.nodeType)return c.add(b.ownerElement),c;var d=b.parentNode;a.matches(d)&&c.add(d);return c},m),Lc=U("preceding",function(a,b,c,d){var e=new M,f=[];do f.unshift(b);while(b=b.parentNode);for(var g=1,j=f.length;g<j;g++){for(var p=[],b=f[g];b=b.previousSibling;)p.unshift(b);for(var s=0,w=p.length;s<w;s++)b=p[s],L(b,c,d)&&a.matches(b)&&e.add(b),e=ec(a,b,c,d,e)}return e},k,k);
U("preceding-sibling",function(a,b){for(var c=new M,d=b;d=d.previousSibling;)a.matches(d)&&c.unshift(d);return c},k);var Tc=U("self",function(a,b){var c=new M;a.matches(b)&&c.add(b);return c},m);function Uc(a){O.call(this,1);this.R=a;this.m=a.d();this.e=a.e}t(Uc,O);Uc.prototype.evaluate=function(a){return-P(this.R,a)};Uc.prototype.toString=function(a){var a=a||"",b=a+"UnaryExpr: -\n";return b+=this.R.toString(a+"  ")};function Vc(a){O.call(this,4);this.D=a;this.m=sb(this.D,function(a){return a.d()});this.e=sb(this.D,function(a){return a.e})}t(Vc,O);Vc.prototype.evaluate=function(a){var b=new M;B(this.D,function(c){c=c.evaluate(a);c instanceof M||h(Error("PathExpr must evaluate to NodeSet."));b=nc(b,c)});return b};Vc.prototype.toString=function(a){var b=a||"",c=b+"UnionExpr:\n",b=b+"  ";B(this.D,function(a){c+=a.toString(b)+"\n"});return c.substring(0,c.length)};function Wc(a){this.a=a}function Xc(a){for(var b,c=[];;){V(a,"Missing right hand side of binary expression.");b=Yc(a);var d=a.a.next();if(!d)break;var e=(d=xc[d]||l)&&d.Y;if(!e){a.a.back();break}for(;c.length&&e<=c[c.length-1].Y;)b=new tc(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new tc(c.pop(),c.pop(),b);return b}function V(a,b){a.a.empty()&&h(Error(b))}function Zc(a,b){var c=a.a.next();c!=b&&h(Error("Bad token, expected: "+b+" got: "+c))}
function $c(a){a=a.a.next();")"!=a&&h(Error("Bad token: "+a))}function ad(a){a=a.a.next();2>a.length&&h(Error("Unclosed literal string"));return new Ec(a)}function bd(a){return"*"!=J(a.a)&&":"==J(a.a,1)&&"*"==J(a.a,2)?new hc(a.a.next()+a.a.next()+a.a.next()):new hc(a.a.next())}
function cd(a){var b,c=[],d;if("/"==J(a.a)||"//"==J(a.a)){b=a.a.next();d=J(a.a);if("/"==b&&(a.a.empty()||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new Ic;d=new Ic;V(a,"Missing next location step.");b=dd(a,b);c.push(b)}else{a:{b=J(a.a);d=b.charAt(0);switch(d){case "$":h(Error("Variable reference not allowed in HTML XPath"));case "(":a.a.next();b=Xc(a);V(a,'unclosed "("');Zc(a,")");break;case '"':case "'":b=ad(a);break;default:if(isNaN(+b))if(!Dc(b)&&/(?![0-9])[\w]/.test(d)&&
"("==J(a.a,1)){b=a.a.next();b=Cc[b]||l;a.a.next();for(d=[];")"!=J(a.a);){V(a,"Missing function argument list.");d.push(Xc(a));if(","!=J(a.a))break;a.a.next()}V(a,"Unclosed function argument list.");$c(a);b=new Ac(b,d)}else{b=l;break a}else b=new Fc(+a.a.next())}"["==J(a.a)&&(d=new Mc(ed(a)),b=new yc(b,d))}if(b)if("/"==J(a.a)||"//"==J(a.a))d=b;else return b;else b=dd(a,"/"),d=new Jc,c.push(b)}for(;"/"==J(a.a)||"//"==J(a.a);)b=a.a.next(),V(a,"Missing next location step."),b=dd(a,b),c.push(b);return new Gc(d,
c)}
function dd(a,b){var c,d,e;"/"!=b&&"//"!=b&&h(Error('Step op should be "/" or "//"'));if("."==J(a.a))return d=new Nc(Tc,new N("node")),a.a.next(),d;if(".."==J(a.a))return d=new Nc(Sc,new N("node")),a.a.next(),d;var f;"@"==J(a.a)?(f=Hc,a.a.next(),V(a,"Missing attribute name")):"::"==J(a.a,1)?(/(?![0-9])[\w]/.test(J(a.a).charAt(0))||h(Error("Bad token: "+a.a.next())),e=a.a.next(),(f=Rc[e]||l)||h(Error("No axis with name: "+e)),a.a.next(),V(a,"Missing node name")):f=Oc;e=J(a.a);if(/(?![0-9])[\w]/.test(e.charAt(0)))if("("==J(a.a,
1)){Dc(e)||h(Error("Invalid node type: "+e));c=a.a.next();Dc(c)||h(Error("Invalid type name: "+c));Zc(a,"(");V(a,"Bad nodetype");e=J(a.a).charAt(0);var g=l;if('"'==e||"'"==e)g=ad(a);V(a,"Bad nodetype");$c(a);c=new N(c,g)}else c=bd(a);else"*"==e?c=bd(a):h(Error("Bad token: "+a.a.next()));e=new Mc(ed(a),f.t);return d||new Nc(f,c,e,"//"==b)}
function ed(a){for(var b=[];"["==J(a.a);){a.a.next();V(a,"Missing predicate expression.");var c=Xc(a);b.push(c);V(a,"Unclosed predicate expression.");Zc(a,"]")}return b}function Yc(a){if("-"==J(a.a))return a.a.next(),new Uc(Yc(a));var b=cd(a);if("|"!=J(a.a))a=b;else{for(b=[b];"|"==a.a.next();)V(a,"Missing next union location path."),b.push(cd(a));a.a.back();a=new Vc(b)}return a};function fd(a){a.length||h(Error("Empty XPath expression."));for(var a=a.match(cc),b=0;b<a.length;b++)dc.test(a[b])&&a.splice(b,1);a=new bc(a);a.empty()&&h(Error("Invalid XPath expression."));var c=Xc(new Wc(a));a.empty()||h(Error("Bad token: "+a.next()));this.evaluate=function(a,b){var f=c.evaluate(new Yb(a));return new W(f,b)}}
function W(a,b){0==b&&(a instanceof M?b=4:"string"==typeof a?b=2:"number"==typeof a?b=1:"boolean"==typeof a?b=3:h(Error("Unexpected evaluation result.")));2!=b&&(1!=b&&3!=b&&!(a instanceof M))&&h(Error("document.evaluate called with wrong result type."));this.resultType=b;var c;switch(b){case 2:this.stringValue=a instanceof M?pc(a):""+a;break;case 1:this.numberValue=a instanceof M?+pc(a):+a;break;case 3:this.booleanValue=a instanceof M?0<a.o():!!a;break;case 4:case 5:case 6:case 7:var d=qc(a);c=[];
for(var e=d.next();e;e=d.next())c.push(e instanceof $b?e.c:e);this.snapshotLength=a.o();this.invalidIteratorState=m;break;case 8:case 9:d=oc(a);this.singleNodeValue=d instanceof $b?d.c:d;break;default:h(Error("Unknown XPathResult type."))}var f=0;this.iterateNext=function(){4!=b&&5!=b&&h(Error("iterateNext called with wrong result type."));return f>=c.length?l:c[f++]};this.snapshotItem=function(a){6!=b&&7!=b&&h(Error("snapshotItem called with wrong result type."));return a>=c.length||0>a?l:c[a]}}
W.ANY_TYPE=0;W.NUMBER_TYPE=1;W.STRING_TYPE=2;W.BOOLEAN_TYPE=3;W.UNORDERED_NODE_ITERATOR_TYPE=4;W.ORDERED_NODE_ITERATOR_TYPE=5;W.UNORDERED_NODE_SNAPSHOT_TYPE=6;W.ORDERED_NODE_SNAPSHOT_TYPE=7;W.ANY_UNORDERED_NODE_TYPE=8;W.FIRST_ORDERED_NODE_TYPE=9;var X={},gd={qa:"http://www.w3.org/2000/svg"};X.ea=function(a){return gd[a]||l};
X.l=function(a,b,c){var d=F(a);if(x){var e=(d?d.parentWindow||d.defaultView:window)||o,f=e.document;f.evaluate||(e.XPathResult=W,f.evaluate=function(a,b,c,d){return(new fd(a)).evaluate(b,d)},f.createExpression=function(a){return new fd(a)})}else try{if(!d.implementation||!d.implementation.hasFeature("XPath","3.0"))return l}catch(g){return l}try{var j,p;if(p=Ra)p=!(Za?Xa(2.3):Ra?0<=la(bb,2.3):0<=la(Va,2.3));if(p)try{j=(d?d.parentWindow||d.defaultView:window).top.document}catch(s){return l}else j=d;
var w=d.createNSResolver?d.createNSResolver(d.documentElement):X.ea;return x&&!Ba(7)?j.evaluate.apply(l,[b,a,w,c,l]):j.evaluate(b,a,w,c,l)}catch(H){y&&"NS_ERROR_ILLEGAL_VALUE"==H.name||h(new u(32,"Unable to locate an element with the xpath expression "+b+" because of the following error:\n"+H))}};X.I=function(a,b){(!a||1!=a.nodeType)&&h(new u(32,'The result of the xpath expression "'+b+'" is: '+a+". It should be an element."))};
X.r=function(a,b){var c=function(){var c=X.l(b,a,9);return c?(c=c.singleNodeValue,v?c:c||l):b.selectSingleNode?(c=F(b),c.setProperty&&c.setProperty("SelectionLanguage","XPath"),b.selectSingleNode(a)):l}();c===l||X.I(c,a);return c};
X.k=function(a,b){var c=function(){var c=X.l(b,a,7);if(c){var e=c.snapshotLength;v&&!q(e)&&X.I(l,a);for(var f=[],g=0;g<e;++g)f.push(c.snapshotItem(g));return f}return b.selectNodes?(c=F(b),c.setProperty&&c.setProperty("SelectionLanguage","XPath"),b.selectNodes(a)):[]}();B(c,function(b){X.I(b,a)});return c};!v&&(!z||Ya("533"));function hd(a,b){var c=F(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,l))?c[b]||c.getPropertyValue(b)||"":""}function id(a,b){return hd(a,b)||(a.currentStyle?a.currentStyle[b]:l)||a.style&&a.style[b]}function jd(a){var b=a.getBoundingClientRect();x&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function kd(a){if(x&&!Da(8))return a.offsetParent;for(var b=F(a),c=id(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=id(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return l}
function ld(a){var b=new C;if(1==a.nodeType){if(a.getBoundingClientRect){var c=jd(a);b.x=c.left;b.y=c.top}else{c=Hb(E(a));var d,e=F(a),f=id(a,"position");nb(a,"Parameter is required");var g=y&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),j=new C(0,0),p;d=e?F(e):document;if(p=x)if(p=!Da(9))p="CSS1Compat"!=E(d).A.compatMode;p=p?d.body:d.documentElement;if(a!=p)if(a.getBoundingClientRect)d=jd(a),e=Hb(E(e)),j.x=d.left+e.x,j.y=d.top+e.y;
else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a),e=e.getBoxObjectFor(p),j.x=d.screenX-e.screenX,j.y=d.screenY-e.screenY;else{g=a;do{j.x+=g.offsetLeft;j.y+=g.offsetTop;g!=a&&(j.x+=g.clientLeft||0,j.y+=g.clientTop||0);if(z&&"fixed"==id(g,"position")){j.x+=e.body.scrollLeft;j.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(v||z&&"absolute"==f)j.y-=e.body.offsetTop;for(g=a;(g=kd(g))&&g!=e.body&&g!=p;)if(j.x-=g.scrollLeft,!v||"TR"!=g.tagName)j.y-=g.scrollTop}b.x=j.x-c.x;b.y=j.y-c.y}if(y&&
!Ba(12)){var s;x?s="-ms-transform":z?s="-webkit-transform":v?s="-o-transform":y&&(s="-moz-transform");var w;s&&(w=id(a,s));w||(w=id(a,"transform"));w?(a=w.match(md),a=!a?new C(0,0):new C(parseFloat(a[1]),parseFloat(a[2]))):a=new C(0,0);b=new C(b.x+a.x,b.y+a.y)}}else s=ca(a.T),w=a,a.targetTouches?w=a.targetTouches[0]:s&&a.T().targetTouches&&(w=a.T().targetTouches[0]),b.x=w.clientX,b.y=w.clientY;return b}
function nd(a){var b=a.offsetWidth,c=a.offsetHeight,d=z&&!b&&!c;return(!q(b)||d)&&a.getBoundingClientRect?(a=jd(a),new D(a.right-a.left,a.bottom-a.top)):new D(b,c)}var md=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Y(a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}var od="async autofocus autoplay checked compact complete controls declare defaultchecked defaultselected defer disabled draggable ended formnovalidate hidden indeterminate iscontenteditable ismap itemscope loop multiple muted nohref noresize noshade novalidate nowrap open paused pubdate readonly required reversed scoped seamless seeking selected spellcheck truespeed willvalidate".split(" "),pd=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/;
function qd(a,b){if(8==a.nodeType)return l;b=b.toLowerCase();if("style"==b){var c=[];B(a.style.cssText.split(pd),function(a){var b=a.indexOf(":");0<b&&(a=[a.slice(0,b),a.slice(b+1)],2==a.length&&c.push(a[0].toLowerCase(),":",a[1],";"))});c=c.join("");c=";"==c.charAt(c.length-1)?c:c+";";return v?c.replace(/\w+:;/g,""):c}var d=a.getAttributeNode(b);x&&!d&&(Ba(8)&&ub(od,b))&&(d=a[b]);return!d?l:ub(od,b)?db&&"false"==d.value?l:"true":d.specified?d.value:l}
function rd(a){for(a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return Y(a)?a:l}
function Z(a,b){var c=String(b).replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()});if("float"==c||"cssFloat"==c||"styleFloat"==c)c=db?"styleFloat":"cssFloat";c=hd(a,c)||sd(a,c);if(c===l)c=l;else if(ub(Qb,b)&&(Tb.test("#"==c.charAt(0)?c:"#"+c)||Xb(c).length||Pb&&Pb[c.toLowerCase()]||Vb(c).length)){var d=Vb(c);if(!d.length){a:if(d=Xb(c),!d.length){d=Pb[c.toLowerCase()];d=!d?"#"==c.charAt(0)?c:"#"+c:d;if(Tb.test(d)&&(d=Sb(d),d=Sb(d),d=[parseInt(d.substr(1,2),16),parseInt(d.substr(3,2),16),parseInt(d.substr(5,
2),16)],d.length))break a;d=[]}3==d.length&&d.push(1)}c=4!=d.length?c:"rgba("+d.join(", ")+")"}return c}function sd(a,b){var c=a.currentStyle||a.style,d=c[b];!q(d)&&ca(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?q(d)?d:l:(c=rd(a))?sd(c,b):l}
function td(a){if(ca(a.getBBox))try{var b=a.getBBox();if(b)return b}catch(c){}if(Y(a,yb)){b=(F(a)?F(a).parentWindow||F(a).defaultView:window)||i;"hidden"!=Z(a,"overflow")?a=k:(a=rd(a),!a||!Y(a,"HTML")?a=k:(a=Z(a,"overflow"),a="auto"==a||"scroll"==a));if(a){var b=(b||fa).document,a=b.documentElement,d=b.body;d||h(new u(13,"No BODY element present"));b=[a.clientHeight,a.scrollHeight,a.offsetHeight,d.scrollHeight,d.offsetHeight];a=Math.max.apply(l,[a.clientWidth,a.scrollWidth,a.offsetWidth,d.scrollWidth,
d.offsetWidth]);b=Math.max.apply(l,b);a=new D(a,b)}else a=(b||window).document,a="CSS1Compat"==a.compatMode?a.documentElement:a.body,a=new D(a.clientWidth,a.clientHeight);return a}if("none"!=id(a,"display"))a=nd(a);else{var b=a.style,d=b.display,e=b.visibility,f=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=nd(a);b.display=d;b.position=f;b.visibility=e}return a}
function ud(a,b){function c(a){if("none"==Z(a,"display"))return m;a=rd(a);return!a||c(a)}function d(a){var b=td(a);return 0<b.height&&0<b.width?k:sb(a.childNodes,function(a){return a.nodeType==zb||Y(a)&&d(a)})}function e(a){var b=kd(a),c=y||x||v?rd(a):b;if((y||x||v)&&Y(c,yb))b=c;if(b&&"hidden"==Z(b,"overflow")){var c=td(b),d=ld(b),a=ld(a);return d.x+c.width<a.x||d.y+c.height<a.y?m:e(b)}return k}Y(a)||h(Error("Argument to isShown must be of type Element"));if(Y(a,"OPTION")||Y(a,"OPTGROUP")){var f=
Gb(a,function(a){return Y(a,"SELECT")});return!!f&&ud(f,k)}if(Y(a,"MAP")){if(!a.name)return m;f=F(a);if(f.evaluate)f=X.r('/descendant::*[@usemap = "#'+a.name+'"]',f);else var g=[],f=Fb(f,function(b){return Y(b)&&qd(b,"usemap")=="#"+a.name},g,k)?g[0]:i;return!!f&&ud(f,b)}if(Y(a,"AREA"))return f=Gb(a,function(a){return Y(a,"MAP")}),!!f&&ud(f,b);if(!(f=Y(a,"INPUT")&&"hidden"==a.type.toLowerCase()||Y(a,"NOSCRIPT")||"hidden"==Z(a,"visibility")||!c(a)))if(f=!b)x?"relative"==Z(a,"position")?f=1:(f=Z(a,"filter"),
f=(f=f.match(/^alpha\(opacity=(\d*)\)/)||f.match(/^progid:DXImageTransform.Microsoft.Alpha\(Opacity=(\d*)\)/))?Number(f[1])/100:1):f=vd(a),f=0==f;return f||!d(a)?m:e(a)}function wd(a){return a.replace(/^[^\S\xa0]+|[^\S\xa0]+$/g,"")}function xd(a){var b=[];yd(a,b);b=qb(b,wd);return wd(b.join("\n")).replace(/\xa0/g," ")}
function yd(a,b){if(Y(a,"BR"))b.push("");else{var c=Y(a,"TD"),d=Z(a,"display"),e=!c&&!ub(zd,d),f;if(a.previousElementSibling!=i)f=a.previousElementSibling;else for(f=a.previousSibling;f&&1!=f.nodeType;)f=f.previousSibling;f=f?Z(f,"display"):"";var g=Z(a,"float")||Z(a,"cssFloat")||Z(a,"styleFloat");e&&(!("run-in"==f&&"none"==g)&&!/^[\s\xa0]*$/.test(b[b.length-1]||""))&&b.push("");var j=ud(a),p=l,s=l;j&&(p=Z(a,"white-space"),s=Z(a,"text-transform"));B(a.childNodes,function(a){if(a.nodeType==zb&&j){var c=
p,d=s,a=a.nodeValue.replace(/\u200b/g,""),a=a.replace(/(\r\n|\r|\n)/g,"\n");if(c=="normal"||c=="nowrap")a=a.replace(/\n/g," ");a=c=="pre"||c=="pre-wrap"?a.replace(/[ \f\t\v\u2028\u2029]/g,"\u00a0"):a.replace(/[\ \f\t\v\u2028\u2029]+/g," ");d=="capitalize"?a=a.replace(/(^|\s)(\S)/g,function(a,b,c){return b+c.toUpperCase()}):d=="uppercase"?a=a.toUpperCase():d=="lowercase"&&(a=a.toLowerCase());c=b.pop()||"";ia(c)&&a.lastIndexOf(" ",0)==0&&(a=a.substr(1));b.push(c+a)}else Y(a)&&yd(a,b)});f=b[b.length-
1]||"";if((c||"table-cell"==d)&&f&&!ia(f))b[b.length-1]+=" ";e&&("run-in"!=d&&!/^[\s\xa0]*$/.test(f))&&b.push("")}}var zd="inline inline-block inline-table none table-cell table-column table-column-group".split(" ");function vd(a){var b=1,c=Z(a,"opacity");c&&(b=Number(c));(a=rd(a))&&(b*=vd(a));return b};var $={},Ad={};$.aa=function(a,b,c){var d;try{d=Ob.k("a",b)}catch(e){d=G(E(b),"A",l,b)}return tb(d,function(b){b=xd(b);return c&&-1!=b.indexOf(a)||b==a})};$.W=function(a,b,c){var d;try{d=Ob.k("a",b)}catch(e){d=G(E(b),"A",l,b)}return pb(d,function(b){b=xd(b);return c&&-1!=b.indexOf(a)||b==a})};$.r=function(a,b){return $.aa(a,b,m)};$.k=function(a,b){return $.W(a,b,m)};Ad.r=function(a,b){return $.aa(a,b,k)};Ad.k=function(a,b){return $.W(a,b,k)};var Bd={r:function(a,b){return b.getElementsByTagName(a)[0]||l},k:function(a,b){return b.getElementsByTagName(a)}};var Cd={className:Nb,"class name":Nb,css:Ob,"css selector":Ob,id:{r:function(a,b){var c=E(b),d=r(a)?c.A.getElementById(a):a;if(!d)return l;if(qd(d,"id")==a&&Bb(b,d))return d;c=G(c,"*");return tb(c,function(c){return qd(c,"id")==a&&Bb(b,c)})},k:function(a,b){var c=G(E(b),"*",l,b);return pb(c,function(b){return qd(b,"id")==a})}},linkText:$,"link text":$,name:{r:function(a,b){var c=G(E(b),"*",l,b);return tb(c,function(b){return qd(b,"name")==a})},k:function(a,b){var c=G(E(b),"*",l,b);return pb(c,function(b){return qd(b,
"name")==a})}},partialLinkText:Ad,"partial link text":Ad,tagName:Bd,"tag name":Bd,xpath:X};function Dd(a,b){var c;a:{for(c in a)if(a.hasOwnProperty(c))break a;c=l}if(c){var d=Cd[c];if(d&&ca(d.k))return d.k(a[c],b||fa.document)}h(Error("Unsupported locator strategy: "+c))};function Ed(a,b,c){var d={};d[a]=b;var a=[d,c],b=Dd,e;try{var b=r(b)?new fa.Function(b):fa==window?b:new fa.Function("return ("+b+").apply(null,arguments);"),f=Kb(a,fa.document),g=b.apply(l,f);e={status:0,value:Ib(g)}}catch(j){e={status:"code"in j?j.code:13,value:{message:j.message}}}f=[];fb(new eb,e,f);return f.join("")}var Fd=["_"],Gd=o;!(Fd[0]in Gd)&&Gd.execScript&&Gd.execScript("var "+Fd[0]);for(var Hd;Fd.length&&(Hd=Fd.shift());)!Fd.length&&q(Ed)?Gd[Hd]=Ed:Gd=Gd[Hd]?Gd[Hd]:Gd[Hd]={};; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navigator:null}, arguments);}
