function(){return function(){function h(a){throw a;}var i=void 0,j=!0,k=null,l=!1;function m(a){return function(){return this[a]}}function aa(a){return function(){return a}}var n,p=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 r(a){return a!==i}function ca(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length}function t(a){return"string"==typeof a}function da(a){return"function"==ba(a)}function ea(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}var fa="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ia=0,ja=Date.now||function(){return+new Date};
function u(a,b){function c(){}c.prototype=b.prototype;a.ab=b.prototype;a.prototype=new c;a.prototype.constructor=a};var v=window;var ka={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"};function la(a){Error.captureStackTrace?Error.captureStackTrace(this,la):this.stack=Error().stack||"";a&&(this.message=String(a))}u(la,Error);la.prototype.name="CustomError";function ma(a){var b=a.length-1;return 0<=b&&a.indexOf(" ",b)==b}function na(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 oa(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}
function pa(a,b){for(var c=0,d=oa(String(a)).split("."),e=oa(String(b)).split("."),f=Math.max(d.length,e.length),g=0;0==c&&g<f;g++){var o=d[g]||"",q=e[g]||"",s=RegExp("(\\d*)(\\D*)","g"),F=RegExp("(\\d*)(\\D*)","g");do{var ga=s.exec(o)||["","",""],ha=F.exec(q)||["","",""];if(0==ga[0].length&&0==ha[0].length)break;c=((0==ga[1].length?0:parseInt(ga[1],10))<(0==ha[1].length?0:parseInt(ha[1],10))?-1:(0==ga[1].length?0:parseInt(ga[1],10))>(0==ha[1].length?0:parseInt(ha[1],10))?1:0)||((0==ga[2].length)<
(0==ha[2].length)?-1:(0==ga[2].length)>(0==ha[2].length)?1:0)||(ga[2]<ha[2]?-1:ga[2]>ha[2]?1:0)}while(0==c)}return c};function qa(a,b){b.unshift(a);la.call(this,na.apply(k,b));b.shift();this.Ya=a}u(qa,la);qa.prototype.name="AssertionError";function ra(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),f=d;else a&&(e+=": "+a,f=b);h(new qa(""+e,f||[]))}function sa(a,b,c){a||ra("",k,b,Array.prototype.slice.call(arguments,2))}function ta(a,b,c){ea(a)||ra("Expected object but got %s: %s.",[ba(a),a],b,Array.prototype.slice.call(arguments,2))};var ua=Array.prototype;function w(a,b,c){for(var d=a.length,e=t(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)}function va(a,b){for(var c=a.length,d=[],e=0,f=t(a)?a.split(""):a,g=0;g<c;g++)if(g in f){var o=f[g];b.call(i,o,g,a)&&(d[e++]=o)}return d}function wa(a,b){for(var c=a.length,d=Array(c),e=t(a)?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(i,e[f],f,a));return d}function xa(a,b,c){if(a.reduce)return a.reduce(b,c);var d=c;w(a,function(c,f){d=b.call(i,d,c,f,a)});return d}
function ya(a,b){for(var c=a.length,d=t(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(i,d[e],e,a))return j;return l}function za(a,b){var c;a:{c=a.length;for(var d=t(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?k:t(a)?a.charAt(c):a[c]}function x(a,b){var c;a:if(t(a))c=!t(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 Aa(a){return ua.concat.apply(ua,arguments)}
function Ba(a,b,c){sa(a.length!=k);return 2>=arguments.length?ua.slice.call(a,b):ua.slice.call(a,b,c)};var Ca="background-color border-top-color border-right-color border-bottom-color border-left-color color outline-color".split(" "),Da=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/;function Ea(a){Fa.test(a)||h(Error("'"+a+"' is not a valid hex color"));4==a.length&&(a=a.replace(Da,"#$1$1$2$2$3$3"));return a.toLowerCase()}var Fa=/^#(?:[0-9a-f]{3}){1,2}$/i,Ga=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i;
function Ha(a){var b=a.match(Ga);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 Ia=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function Ja(a){var b=a.match(Ia);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 Ka(a,b){var c={},d;for(d in a)c[d]=b.call(i,a[d],d,a);return c}function La(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};function y(a,b){this.code=a;this.message=b||"";this.name=Ma[a]||Ma[13];var c=Error(this.message);c.name=this.name;this.stack=c.stack||""}u(y,Error);
var Ma={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"};
y.prototype.toString=function(){return this.name+": "+this.message};var Na,Oa,Pa,Qa,Ra,Sa;function Ta(){return p.navigator?p.navigator.userAgent:k}Qa=Pa=Oa=Na=l;var Ua;if(Ua=Ta()){var Va=p.navigator;Na=0==Ua.indexOf("Opera");Oa=!Na&&-1!=Ua.indexOf("MSIE");Pa=!Na&&-1!=Ua.indexOf("WebKit");Qa=!Na&&!Pa&&"Gecko"==Va.product}var z=Na,A=Oa,B=Qa,C=Pa,Wa,Xa=p.navigator;Wa=Xa&&Xa.platform||"";Ra=-1!=Wa.indexOf("Mac");Sa=-1!=Wa.indexOf("Win");var Ya=-1!=Wa.indexOf("Linux"),Za;
a:{var $a="",ab;if(z&&p.opera)var bb=p.opera.version,$a="function"==typeof bb?bb():bb;else if(B?ab=/rv\:([^\);]+)(\)|;)/:A?ab=/MSIE\s+([^\);]+)(\)|;)/:C&&(ab=/WebKit\/(\S+)/),ab)var cb=ab.exec(Ta()),$a=cb?cb[1]:"";if(A){var db,eb=p.document;db=eb?eb.documentMode:i;if(db>parseFloat($a)){Za=String(db);break a}}Za=$a}var fb={};function gb(a){return fb[a]||(fb[a]=0<=pa(Za,a))}var hb={};function ib(a){return hb[a]||(hb[a]=A&&!!document.documentMode&&document.documentMode>=a)};var jb,kb,lb,mb,nb,ob,pb;pb=ob=nb=mb=lb=kb=jb=l;var qb=Ta();qb&&(-1!=qb.indexOf("Firefox")?jb=j:-1!=qb.indexOf("Camino")?kb=j:-1!=qb.indexOf("iPhone")||-1!=qb.indexOf("iPod")?lb=j:-1!=qb.indexOf("iPad")?mb=j:-1!=qb.indexOf("Android")?nb=j:-1!=qb.indexOf("Chrome")?ob=j:-1!=qb.indexOf("Safari")&&(pb=j));var rb=z,sb=A,tb=jb,ub=kb,vb=lb,wb=mb,xb=nb,yb=ob,zb=pb;function Ab(a){return(a=a.exec(Ta()))?a[1]:""}var Bb=function(){if(tb)return Ab(/Firefox\/([0-9.]+)/);if(sb||rb)return Za;if(yb)return Ab(/Chrome\/([0-9.]+)/);if(zb)return Ab(/Version\/([0-9.]+)/);if(vb||wb){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Ta());if(a)return a[1]+"."+a[2]}else{if(xb)return(a=Ab(/Android\s+([0-9.]+)/))?a:Ab(/Version\/([0-9.]+)/);if(ub)return Ab(/Camino\/([0-9.]+)/)}return""}();var Cb,Db;function D(a){return Eb?Cb(a):A?0<=pa(document.documentMode,a):gb(a)}function Fb(a){return Eb?Db(a):xb?0<=pa(Gb,a):0<=pa(Bb,a)}
var Eb=function(){if(!B)return l;var a=p.Components;if(!a)return l;try{if(!a.classes)return l}catch(b){return l}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;Cb=function(a){return 0<=d.Ja(e,""+a)};Db=function(a){return 0<=d.Ja(f,""+a)};return j}(),Hb=wb||vb,Ib;if(xb){var Jb=/Android\s+([0-9\.]+)/.exec(Ta());Ib=Jb?Jb[1]:"0"}else Ib="0";
var Gb=Ib,Kb=A&&9<=document.documentMode,Lb=A&&!Kb;var Mb;!A||ib(9);!B&&!A||A&&ib(9)||B&&gb("1.9.1");A&&gb("9");var Nb="BODY";function E(a,b){this.x=r(a)?a:0;this.y=r(b)?b:0}E.prototype.toString=function(){return"("+this.x+", "+this.y+")"};function Ob(a,b){this.width=a;this.height=b}n=Ob.prototype;n.toString=function(){return"("+this.width+" x "+this.height+")"};n.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};n.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};n.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};n.scale=function(a){this.width*=a;this.height*=a;return this};var Pb=3;function Qb(a){return a?new Rb(G(a)):Mb||(Mb=new Rb)}function Sb(a){var b=!C&&"CSS1Compat"==a.compatMode?a.documentElement:a.body,a=a.parentWindow||a.defaultView;return new E(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function Tb(a){return a?a.parentWindow||a.defaultView:window}
function Ub(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 Vb(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if((9==a.nodeType||9==b.nodeType)&&A&&!gb(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?Wb(a,b):!c&&Ub(e,b)?-1*Xb(a,b):!d&&Ub(f,a)?Xb(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=
G(a);c=d.createRange();c.selectNode(a);c.collapse(j);d=d.createRange();d.selectNode(b);d.collapse(j);return c.compareBoundaryPoints(p.Range.START_TO_END,d)}function Xb(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return Wb(d,a)}function Wb(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1}function G(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
function Yb(a,b,c,d){if(a!=k)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||Yb(a,b,c,d))return j;a=a.nextSibling}return l}var Zb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},$b={IMG:" ",BR:"\n"};function ac(a,b,c){if(!(a.nodeName in Zb))if(a.nodeType==Pb)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in $b)b.push($b[a.nodeName]);else for(a=a.firstChild;a;)ac(a,b,c),a=a.nextSibling}
function bc(a,b,c){c||(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return k}function Rb(a){this.P=a||p.document||document}Rb.prototype.c=function(a){return t(a)?this.P.getElementById(a):a};
function cc(a,b,c,d){a=d||a.P;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&&x(b.split(/\s+/),c)&&(d[e++]=g);d.length=e;c=d}else c=a;return c}Rb.prototype.contains=Ub;function dc(a,b,c){this.j=a;this.Ra=b||1;this.u=c||1};var ec=A&&!ib(9),fc=A&&!ib(8);function gc(a,b,c,d,e){this.j=a;this.nodeName=c;this.nodeValue=d;this.nodeType=2;this.ownerElement=b;this.$a=e;this.parentNode=b}function hc(a,b,c){var d=fc&&"href"==b.nodeName?a.getAttribute(b.nodeName,2):b.nodeValue;return new gc(b,a,b.nodeName,d,c)};function ic(a){this.na=a;this.X=0}var jc=RegExp("\\$?(?:(?![0-9-])[\\w-]+:)?(?![0-9-])[\\w-]+|\\/\\/|\\.\\.|::|\\d+(?:\\.\\d*)?|\\.\\d+|\"[^\"]*\"|'[^']*'|[!<>]=|\\s+|.","g"),kc=/^\s/;function H(a,b){return a.na[a.X+(b||0)]}ic.prototype.next=function(){return this.na[this.X++]};ic.prototype.back=function(){this.X--};ic.prototype.empty=function(){return this.na.length<=this.X};function lc(a){var b=k,c=a.nodeType;1==c&&(b=a.textContent,b=b==i||b==k?a.innerText:b,b=b==i||b==k?"":b);if("string"!=typeof b)if(ec&&"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),ec&&"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 mc(a,b,c){if(b===k)return j;try{if(!a.getAttribute)return l}catch(d){return l}fc&&"class"==b&&(b="className");return c==k?!!a.getAttribute(b):a.getAttribute(b,2)==c}function nc(a,b,c,d,e){return(ec?oc:pc).call(k,a,b,t(c)?c:k,t(d)?d:k,e||new I)}
function oc(a,b,c,d,e){if(a instanceof qc||8==a.h||c&&a.h===k){var f=b.all;if(!f)return e;a=rc(a);if("*"!=a&&(f=b.getElementsByTagName(a),!f))return e;if(c){for(var g=[],o=0;b=f[o++];)mc(b,c,d)&&g.push(b);f=g}for(o=0;b=f[o++];)("*"!=a||"!"!=b.tagName)&&e.add(b);return e}sc(a,b,c,d,e);return e}
function pc(a,b,c,d,e){b.getElementsByName&&d&&"name"==c&&!A?(b=b.getElementsByName(d),w(b,function(b){a.matches(b)&&e.add(b)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),w(b,function(b){b.className==d&&a.matches(b)&&e.add(b)})):a instanceof tc?sc(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),w(b,function(a){mc(a,c,d)&&e.add(a)}));return e}
function uc(a,b,c,d,e){var f;if((a instanceof qc||8==a.h||c&&a.h===k)&&(f=b.childNodes)){var g=rc(a);if("*"!=g&&(f=va(f,function(a){return a.tagName&&a.tagName.toLowerCase()==g}),!f))return e;c&&(f=va(f,function(a){return mc(a,c,d)}));w(f,function(a){("*"!=g||"!"!=a.tagName&&!("*"==g&&1!=a.nodeType))&&e.add(a)});return e}return vc(a,b,c,d,e)}function vc(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)mc(b,c,d)&&a.matches(b)&&e.add(b);return e}
function sc(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)mc(b,c,d)&&a.matches(b)&&e.add(b),sc(a,b,c,d,e)}function rc(a){if(a instanceof tc){if(8==a.h)return"!";if(a.h===k)return"*"}return a.getName()};function I(){this.u=this.o=k;this.R=0}function wc(a){this.A=a;this.next=this.J=k}function xc(a,b){if(a.o){if(!b.o)return a}else return b;for(var c=a.o,d=b.o,e=k,f=k,g=0;c&&d;)c.A==d.A||c.A instanceof gc&&d.A instanceof gc&&c.A.j==d.A.j?(f=c,c=c.next,d=d.next):0<Vb(c.A,d.A)?(f=d,d=d.next):(f=c,c=c.next),(f.J=e)?e.next=f:a.o=f,e=f,g++;for(f=c||d;f;)f.J=e,e=e.next=f,g++,f=f.next;a.u=e;a.R=g;return a}
I.prototype.unshift=function(a){a=new wc(a);a.next=this.o;this.u?this.o.J=a:this.o=this.u=a;this.o=a;this.R++};I.prototype.add=function(a){a=new wc(a);a.J=this.u;this.o?this.u.next=a:this.o=this.u=a;this.u=a;this.R++};function yc(a){return(a=a.o)?a.A:k}I.prototype.C=m("R");function zc(a){return(a=yc(a))?lc(a):""}function Ac(a,b){return new Bc(a,!!b)}function Bc(a,b){this.Oa=a;this.pa=(this.M=b)?a.u:a.o;this.ia=k}
Bc.prototype.next=function(){var a=this.pa;if(a==k)return k;var b=this.ia=a;this.pa=this.M?a.J:a.next;return b.A};Bc.prototype.remove=function(){var a=this.Oa,b=this.ia;b||h(Error("Next must be called at least once before remove."));var c=b.J,b=b.next;c?c.next=b:a.o=b;b?b.J=c:a.u=c;a.R--;this.ia=k};function J(a){this.n=a;this.m=this.z=l;this.T=k}J.prototype.k=m("z");J.prototype.G=m("T");function K(a,b){var c=a.evaluate(b);return c instanceof I?+zc(c):+c}function L(a,b){var c=a.evaluate(b);return c instanceof I?zc(c):""+c}function Cc(a,b){var c=a.evaluate(b);return c instanceof I?!!c.C():!!c};function Dc(a,b,c){J.call(this,a.n);this.la=a;this.ua=b;this.Aa=c;this.z=b.k()||c.k();this.m=b.m||c.m;this.la==Ec&&(!c.m&&!c.k()&&4!=c.n&&0!=c.n&&b.G()?this.T={name:b.G().name,N:c}:!b.m&&(!b.k()&&4!=b.n&&0!=b.n&&c.G())&&(this.T={name:c.G().name,N:b}))}u(Dc,J);
function Fc(a,b,c,d,e){var b=b.evaluate(d),c=c.evaluate(d),f;if(b instanceof I&&c instanceof I){f=Ac(b);for(b=f.next();b;b=f.next()){e=Ac(c);for(d=e.next();d;d=e.next())if(a(lc(b),lc(d)))return j}return l}if(b instanceof I||c instanceof I){b instanceof I?e=b:(e=c,c=b);e=Ac(e);b=typeof c;for(d=e.next();d;d=e.next()){switch(b){case "number":f=+lc(d);break;case "boolean":f=!!lc(d);break;case "string":f=lc(d);break;default:h(Error("Illegal primitive type for comparison."))}if(a(f,c))return j}return l}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)}Dc.prototype.evaluate=function(a){return this.la.w(this.ua,this.Aa,a)};Dc.prototype.toString=function(a){var a=a||"",b=a+"binary expression: "+this.la+"\n",a=a+"  ",b=b+(this.ua.toString(a)+"\n");return b+=this.Aa.toString(a)};function Gc(a,b,c,d){this.Qa=a;this.ya=b;this.n=c;this.w=d}Gc.prototype.toString=m("Qa");var Hc={};
function M(a,b,c,d){a in Hc&&h(Error("Binary operator already created: "+a));a=new Gc(a,b,c,d);return Hc[a.toString()]=a}M("div",6,1,function(a,b,c){return K(a,c)/K(b,c)});M("mod",6,1,function(a,b,c){return K(a,c)%K(b,c)});M("*",6,1,function(a,b,c){return K(a,c)*K(b,c)});M("+",5,1,function(a,b,c){return K(a,c)+K(b,c)});M("-",5,1,function(a,b,c){return K(a,c)-K(b,c)});M("<",4,2,function(a,b,c){return Fc(function(a,b){return a<b},a,b,c)});
M(">",4,2,function(a,b,c){return Fc(function(a,b){return a>b},a,b,c)});M("<=",4,2,function(a,b,c){return Fc(function(a,b){return a<=b},a,b,c)});M(">=",4,2,function(a,b,c){return Fc(function(a,b){return a>=b},a,b,c)});var Ec=M("=",3,2,function(a,b,c){return Fc(function(a,b){return a==b},a,b,c,j)});M("!=",3,2,function(a,b,c){return Fc(function(a,b){return a!=b},a,b,c,j)});M("and",2,2,function(a,b,c){return Cc(a,c)&&Cc(b,c)});M("or",1,2,function(a,b,c){return Cc(a,c)||Cc(b,c)});function Ic(a,b){b.C()&&4!=a.n&&h(Error("Primary expression must evaluate to nodeset if filter has predicate(s)."));J.call(this,a.n);this.za=a;this.i=b;this.z=a.k();this.m=a.m}u(Ic,J);Ic.prototype.evaluate=function(a){a=this.za.evaluate(a);return Jc(this.i,a)};Ic.prototype.toString=function(a){var a=a||"",b=a+"Filter: \n",a=a+"  ",b=b+this.za.toString(a);return b+=this.i.toString(a)};function Kc(a,b){b.length<a.xa&&h(Error("Function "+a.q+" expects at least"+a.xa+" arguments, "+b.length+" given"));a.ja!==k&&b.length>a.ja&&h(Error("Function "+a.q+" expects at most "+a.ja+" arguments, "+b.length+" given"));a.Pa&&w(b,function(b,d){4!=b.n&&h(Error("Argument "+d+" to function "+a.q+" is not of type Nodeset: "+b))});J.call(this,a.n);this.W=a;this.ca=b;this.z=a.z||ya(b,function(a){return a.k()});this.m=a.Na&&!b.length||a.Ma&&!!b.length||ya(b,function(a){return a.m})}u(Kc,J);
Kc.prototype.evaluate=function(a){return this.W.w.apply(k,Aa(a,this.ca))};Kc.prototype.toString=function(a){var b=a||"",a=b+"Function: "+this.W+"\n",b=b+"  ";this.ca.length&&(a+=b+"Arguments:",b+="  ",a=xa(this.ca,function(a,d){return a+"\n"+d.toString(b)},a));return a};function Lc(a,b,c,d,e,f,g,o,q){this.q=a;this.n=b;this.z=c;this.Na=d;this.Ma=e;this.w=f;this.xa=g;this.ja=r(o)?o:g;this.Pa=!!q}Lc.prototype.toString=m("q");var Mc={};
function N(a,b,c,d,e,f,g,o){a in Mc&&h(Error("Function already created: "+a+"."));Mc[a]=new Lc(a,b,c,d,l,e,f,g,o)}N("boolean",2,l,l,function(a,b){return Cc(b,a)},1);N("ceiling",1,l,l,function(a,b){return Math.ceil(K(b,a))},1);N("concat",3,l,l,function(a,b){var c=Ba(arguments,1);return xa(c,function(b,c){return b+L(c,a)},"")},2,k);N("contains",2,l,l,function(a,b,c){b=L(b,a);a=L(c,a);return-1!=b.indexOf(a)},2);N("count",1,l,l,function(a,b){return b.evaluate(a).C()},1,1,j);N("false",2,l,l,aa(l),0);
N("floor",1,l,l,function(a,b){return Math.floor(K(b,a))},1);N("id",4,l,l,function(a,b){function c(a){if(ec){var b=e.all[a];if(b){if(b.nodeType&&a==b.id)return b;if(b.length)return za(b,function(b){return a==b.id})}return k}return e.getElementById(a)}var d=a.j,e=9==d.nodeType?d:d.ownerDocument,d=L(b,a).split(/\s+/),f=[];w(d,function(a){(a=c(a))&&!x(f,a)&&f.push(a)});f.sort(Vb);var g=new I;w(f,function(a){g.add(a)});return g},1);N("lang",2,l,l,aa(l),1);
N("last",1,j,l,function(a){1!=arguments.length&&h(Error("Function last expects ()"));return a.u},0);N("local-name",3,l,j,function(a,b){var c=b?yc(b.evaluate(a)):a.j;return c?c.nodeName.toLowerCase():""},0,1,j);N("name",3,l,j,function(a,b){var c=b?yc(b.evaluate(a)):a.j;return c?c.nodeName.toLowerCase():""},0,1,j);N("namespace-uri",3,j,l,aa(""),0,1,j);N("normalize-space",3,l,j,function(a,b){return(b?L(b,a):lc(a.j)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);
N("not",2,l,l,function(a,b){return!Cc(b,a)},1);N("number",1,l,j,function(a,b){return b?K(b,a):+lc(a.j)},0,1);N("position",1,j,l,function(a){return a.Ra},0);N("round",1,l,l,function(a,b){return Math.round(K(b,a))},1);N("starts-with",2,l,l,function(a,b,c){b=L(b,a);a=L(c,a);return 0==b.lastIndexOf(a,0)},2);N("string",3,l,j,function(a,b){return b?L(b,a):lc(a.j)},0,1);N("string-length",1,l,j,function(a,b){return(b?L(b,a):lc(a.j)).length},0,1);
N("substring",3,l,l,function(a,b,c,d){c=K(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?K(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";var c=Math.round(c)-1,e=Math.max(c,0),a=L(b,a);if(Infinity==d)return a.substring(e);b=Math.round(d);return a.substring(e,c+b)},2,3);N("substring-after",3,l,l,function(a,b,c){b=L(b,a);a=L(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
N("substring-before",3,l,l,function(a,b,c){b=L(b,a);a=L(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);N("sum",1,l,l,function(a,b){for(var c=Ac(b.evaluate(a)),d=0,e=c.next();e;e=c.next())d+=+lc(e);return d},1,1,j);N("translate",3,l,l,function(a,b,c,d){for(var b=L(b,a),c=L(c,a),e=L(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);N("true",2,l,l,aa(j),0);function tc(a,b){this.Fa=a;this.va=r(b)?b:k;this.h=k;switch(a){case "comment":this.h=8;break;case "text":this.h=Pb;break;case "processing-instruction":this.h=7;break;case "node":break;default:h(Error("Unexpected argument"))}}function Nc(a){return"comment"==a||"text"==a||"processing-instruction"==a||"node"==a}tc.prototype.matches=function(a){return this.h===k||this.h==a.nodeType};tc.prototype.getName=m("Fa");
tc.prototype.toString=function(a){var a=a||"",b=a+"kindtest: "+this.Fa;this.va===k||(b+="\n"+this.va.toString(a+"  "));return b};function Oc(a){J.call(this,3);this.Ca=a.substring(1,a.length-1)}u(Oc,J);Oc.prototype.evaluate=m("Ca");Oc.prototype.toString=function(a){return(a||"")+"literal: "+this.Ca};function qc(a){this.q=a.toLowerCase()}qc.prototype.matches=function(a){var b=a.nodeType;if(1==b||2==b)return"*"==this.q||this.q==a.nodeName.toLowerCase()?j:this.q==(a.namespaceURI||"http://www.w3.org/1999/xhtml")+":*"};qc.prototype.getName=m("q");qc.prototype.toString=function(a){return(a||"")+"nametest: "+this.q};function Pc(a){J.call(this,1);this.Ga=a}u(Pc,J);Pc.prototype.evaluate=m("Ga");Pc.prototype.toString=function(a){return(a||"")+"number: "+this.Ga};function Qc(a,b){J.call(this,a.n);this.ra=a;this.U=b;this.z=a.k();this.m=a.m;if(1==this.U.length){var c=this.U[0];!c.fa&&c.F==Rc&&(c=c.aa,"*"!=c.getName()&&(this.T={name:c.getName(),N:k}))}}u(Qc,J);function Sc(){J.call(this,4)}u(Sc,J);Sc.prototype.evaluate=function(a){var b=new I,a=a.j;9==a.nodeType?b.add(a):b.add(a.ownerDocument);return b};Sc.prototype.toString=function(a){return a+"RootHelperExpr"};function Tc(){J.call(this,4)}u(Tc,J);Tc.prototype.evaluate=function(a){var b=new I;b.add(a.j);return b};
Tc.prototype.toString=function(a){return a+"ContextHelperExpr"};
Qc.prototype.evaluate=function(a){var b=this.ra.evaluate(a);b instanceof I||h(Error("FilterExpr must evaluate to nodeset."));for(var a=this.U,c=0,d=a.length;c<d&&b.C();c++){var e=a[c],f=Ac(b,e.F.M),g;if(!e.k()&&e.F==Uc){for(g=f.next();(b=f.next())&&(!g.contains||g.contains(b))&&b.compareDocumentPosition(g)&8;g=b);b=e.evaluate(new dc(g))}else if(!e.k()&&e.F==Vc)g=f.next(),b=e.evaluate(new dc(g));else{g=f.next();for(b=e.evaluate(new dc(g));(g=f.next())!=k;)g=e.evaluate(new dc(g)),b=xc(b,g)}}return b};
Qc.prototype.toString=function(a){var b=a||"",c=b+"PathExpr:\n",b=b+"  ",c=c+this.ra.toString(b);this.U.length&&(c+=b+"Steps:\n",b+="  ",w(this.U,function(a){c+=a.toString(b)}));return c};function Wc(a,b){this.i=a;this.M=!!b}function Jc(a,b,c){for(c=c||0;c<a.i.length;c++)for(var d=a.i[c],e=Ac(b),f=b.C(),g,o=0;g=e.next();o++){var q=a.M?f-o:o+1;g=d.evaluate(new dc(g,q,f));var s;"number"==typeof g?s=q==g:"string"==typeof g||"boolean"==typeof g?s=!!g:g instanceof I?s=0<g.C():h(Error("Predicate.evaluate returned an unexpected type."));s||e.remove()}return b}Wc.prototype.G=function(){return 0<this.i.length?this.i[0].G():k};
Wc.prototype.k=function(){for(var a=0;a<this.i.length;a++){var b=this.i[a];if(b.k()||1==b.n||0==b.n)return j}return l};Wc.prototype.C=function(){return this.i.length};Wc.prototype.toString=function(a){var b=a||"",a=b+"Predicates:",b=b+"  ";return xa(this.i,function(a,d){return a+"\n"+b+d.toString(b)},a)};function Xc(a,b,c,d){J.call(this,4);this.F=a;this.aa=b;this.i=c||new Wc([]);this.fa=!!d;b=this.i.G();a.Ta&&b&&(a=b.name,a=ec?a.toLowerCase():a,this.T={name:a,N:b.N});this.z=this.i.k()}u(Xc,J);
Xc.prototype.evaluate=function(a){var b=a.j,c=k,c=this.G(),d=k,e=k,f=0;c&&(d=c.name,e=c.N?L(c.N,a):k,f=1);if(this.fa)if(!this.k()&&this.F==Yc)c=nc(this.aa,b,d,e),c=Jc(this.i,c,f);else if(a=Ac((new Xc(Zc,new tc("node"))).evaluate(a)),b=a.next())for(c=this.w(b,d,e,f);(b=a.next())!=k;)c=xc(c,this.w(b,d,e,f));else c=new I;else c=this.w(a.j,d,e,f);return c};Xc.prototype.w=function(a,b,c,d){a=this.F.W(this.aa,a,b,c);return a=Jc(this.i,a,d)};
Xc.prototype.toString=function(a){var a=a||"",b=a+"Step: \n",a=a+"  ",b=b+(a+"Operator: "+(this.fa?"//":"/")+"\n");this.F.q&&(b+=a+"Axis: "+this.F+"\n");b+=this.aa.toString(a);if(this.i.length)for(var b=b+(a+"Predicates: \n"),c=0;c<this.i.length;c++)var d=c<this.i.length-1?", ":"",b=b+(this.i[c].toString(a)+d);return b};function $c(a,b,c,d){this.q=a;this.W=b;this.M=c;this.Ta=d}$c.prototype.toString=m("q");var ad={};
function O(a,b,c,d){a in ad&&h(Error("Axis already created: "+a));b=new $c(a,b,c,!!d);return ad[a]=b}O("ancestor",function(a,b){for(var c=new I,d=b;d=d.parentNode;)a.matches(d)&&c.unshift(d);return c},j);O("ancestor-or-self",function(a,b){var c=new I,d=b;do a.matches(d)&&c.unshift(d);while(d=d.parentNode);return c},j);
var Rc=O("attribute",function(a,b){var c=new I,d=a.getName();if("style"==d&&b.style&&ec)return c.add(new gc(b.style,b,"style",b.style.cssText,b.sourceIndex)),c;var e=b.attributes;if(e)if(a instanceof tc&&a.h===k||"*"==d)for(var d=b.sourceIndex,f=0,g;g=e[f];f++)ec?g.nodeValue&&c.add(hc(b,g,d)):c.add(g);else(g=e.getNamedItem(d))&&(ec?g.nodeValue&&c.add(hc(b,g,b.sourceIndex)):c.add(g));return c},l),Yc=O("child",function(a,b,c,d,e){return(ec?uc:vc).call(k,a,b,t(c)?c:k,t(d)?d:k,e||new I)},l,j);
O("descendant",nc,l,j);var Zc=O("descendant-or-self",function(a,b,c,d){var e=new I;mc(b,c,d)&&a.matches(b)&&e.add(b);return nc(a,b,c,d,e)},l,j),Uc=O("following",function(a,b,c,d){var e=new I;do for(var f=b;f=f.nextSibling;)mc(f,c,d)&&a.matches(f)&&e.add(f),e=nc(a,f,c,d,e);while(b=b.parentNode);return e},l,j);O("following-sibling",function(a,b){for(var c=new I,d=b;d=d.nextSibling;)a.matches(d)&&c.add(d);return c},l);O("namespace",function(){return new I},l);
var bd=O("parent",function(a,b){var c=new I;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},l),Vc=O("preceding",function(a,b,c,d){var e=new I,f=[];do f.unshift(b);while(b=b.parentNode);for(var g=1,o=f.length;g<o;g++){for(var q=[],b=f[g];b=b.previousSibling;)q.unshift(b);for(var s=0,F=q.length;s<F;s++)b=q[s],mc(b,c,d)&&a.matches(b)&&e.add(b),e=nc(a,b,c,d,e)}return e},j,j);
O("preceding-sibling",function(a,b){for(var c=new I,d=b;d=d.previousSibling;)a.matches(d)&&c.unshift(d);return c},j);var cd=O("self",function(a,b){var c=new I;a.matches(b)&&c.add(b);return c},l);function dd(a){J.call(this,1);this.qa=a;this.z=a.k();this.m=a.m}u(dd,J);dd.prototype.evaluate=function(a){return-K(this.qa,a)};dd.prototype.toString=function(a){var a=a||"",b=a+"UnaryExpr: -\n";return b+=this.qa.toString(a+"  ")};function ed(a){J.call(this,4);this.Y=a;this.z=ya(this.Y,function(a){return a.k()});this.m=ya(this.Y,function(a){return a.m})}u(ed,J);ed.prototype.evaluate=function(a){var b=new I;w(this.Y,function(c){c=c.evaluate(a);c instanceof I||h(Error("PathExpr must evaluate to NodeSet."));b=xc(b,c)});return b};ed.prototype.toString=function(a){var b=a||"",c=b+"UnionExpr:\n",b=b+"  ";w(this.Y,function(a){c+=a.toString(b)+"\n"});return c.substring(0,c.length)};function fd(a){this.a=a}function gd(a){for(var b,c=[];;){P(a,"Missing right hand side of binary expression.");b=hd(a);var d=a.a.next();if(!d)break;var e=(d=Hc[d]||k)&&d.ya;if(!e){a.a.back();break}for(;c.length&&e<=c[c.length-1].ya;)b=new Dc(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new Dc(c.pop(),c.pop(),b);return b}function P(a,b){a.a.empty()&&h(Error(b))}function id(a,b){var c=a.a.next();c!=b&&h(Error("Bad token, expected: "+b+" got: "+c))}
function jd(a){a=a.a.next();")"!=a&&h(Error("Bad token: "+a))}function kd(a){a=a.a.next();2>a.length&&h(Error("Unclosed literal string"));return new Oc(a)}function ld(a){return"*"!=H(a.a)&&":"==H(a.a,1)&&"*"==H(a.a,2)?new qc(a.a.next()+a.a.next()+a.a.next()):new qc(a.a.next())}
function md(a){var b,c=[],d;if("/"==H(a.a)||"//"==H(a.a)){b=a.a.next();d=H(a.a);if("/"==b&&(a.a.empty()||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new Sc;d=new Sc;P(a,"Missing next location step.");b=nd(a,b);c.push(b)}else{a:{b=H(a.a);d=b.charAt(0);switch(d){case "$":h(Error("Variable reference not allowed in HTML XPath"));case "(":a.a.next();b=gd(a);P(a,'unclosed "("');id(a,")");break;case '"':case "'":b=kd(a);break;default:if(isNaN(+b))if(!Nc(b)&&/(?![0-9])[\w]/.test(d)&&
"("==H(a.a,1)){b=a.a.next();b=Mc[b]||k;a.a.next();for(d=[];")"!=H(a.a);){P(a,"Missing function argument list.");d.push(gd(a));if(","!=H(a.a))break;a.a.next()}P(a,"Unclosed function argument list.");jd(a);b=new Kc(b,d)}else{b=k;break a}else b=new Pc(+a.a.next())}"["==H(a.a)&&(d=new Wc(od(a)),b=new Ic(b,d))}if(b)if("/"==H(a.a)||"//"==H(a.a))d=b;else return b;else b=nd(a,"/"),d=new Tc,c.push(b)}for(;"/"==H(a.a)||"//"==H(a.a);)b=a.a.next(),P(a,"Missing next location step."),b=nd(a,b),c.push(b);return new Qc(d,
c)}
function nd(a,b){var c,d,e;"/"!=b&&"//"!=b&&h(Error('Step op should be "/" or "//"'));if("."==H(a.a))return d=new Xc(cd,new tc("node")),a.a.next(),d;if(".."==H(a.a))return d=new Xc(bd,new tc("node")),a.a.next(),d;var f;"@"==H(a.a)?(f=Rc,a.a.next(),P(a,"Missing attribute name")):"::"==H(a.a,1)?(/(?![0-9])[\w]/.test(H(a.a).charAt(0))||h(Error("Bad token: "+a.a.next())),e=a.a.next(),(f=ad[e]||k)||h(Error("No axis with name: "+e)),a.a.next(),P(a,"Missing node name")):f=Yc;e=H(a.a);if(/(?![0-9])[\w]/.test(e.charAt(0)))if("("==H(a.a,
1)){Nc(e)||h(Error("Invalid node type: "+e));c=a.a.next();Nc(c)||h(Error("Invalid type name: "+c));id(a,"(");P(a,"Bad nodetype");e=H(a.a).charAt(0);var g=k;if('"'==e||"'"==e)g=kd(a);P(a,"Bad nodetype");jd(a);c=new tc(c,g)}else c=ld(a);else"*"==e?c=ld(a):h(Error("Bad token: "+a.a.next()));e=new Wc(od(a),f.M);return d||new Xc(f,c,e,"//"==b)}
function od(a){for(var b=[];"["==H(a.a);){a.a.next();P(a,"Missing predicate expression.");var c=gd(a);b.push(c);P(a,"Unclosed predicate expression.");id(a,"]")}return b}function hd(a){if("-"==H(a.a))return a.a.next(),new dd(hd(a));var b=md(a);if("|"!=H(a.a))a=b;else{for(b=[b];"|"==a.a.next();)P(a,"Missing next union location path."),b.push(md(a));a.a.back();a=new ed(b)}return a};function pd(a){a.length||h(Error("Empty XPath expression."));for(var a=a.match(jc),b=0;b<a.length;b++)kc.test(a[b])&&a.splice(b,1);a=new ic(a);a.empty()&&h(Error("Invalid XPath expression."));var c=gd(new fd(a));a.empty()||h(Error("Bad token: "+a.next()));this.evaluate=function(a,b){var f=c.evaluate(new dc(a));return new Q(f,b)}}
function Q(a,b){0==b&&(a instanceof I?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 I))&&h(Error("document.evaluate called with wrong result type."));this.resultType=b;var c;switch(b){case 2:this.stringValue=a instanceof I?zc(a):""+a;break;case 1:this.numberValue=a instanceof I?+zc(a):+a;break;case 3:this.booleanValue=a instanceof I?0<a.C():!!a;break;case 4:case 5:case 6:case 7:var d=Ac(a);c=[];
for(var e=d.next();e;e=d.next())c.push(e instanceof gc?e.j:e);this.snapshotLength=a.C();this.invalidIteratorState=l;break;case 8:case 9:d=yc(a);this.singleNodeValue=d instanceof gc?d.j: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?k:c[f++]};this.snapshotItem=function(a){6!=b&&7!=b&&h(Error("snapshotItem called with wrong result type."));return a>=c.length||0>a?k:c[a]}}
Q.ANY_TYPE=0;Q.NUMBER_TYPE=1;Q.STRING_TYPE=2;Q.BOOLEAN_TYPE=3;Q.UNORDERED_NODE_ITERATOR_TYPE=4;Q.ORDERED_NODE_ITERATOR_TYPE=5;Q.UNORDERED_NODE_SNAPSHOT_TYPE=6;Q.ORDERED_NODE_SNAPSHOT_TYPE=7;Q.ANY_UNORDERED_NODE_TYPE=8;Q.FIRST_ORDERED_NODE_TYPE=9;var R={},qd={bb:"http://www.w3.org/2000/svg"};R.Ia=function(a){return qd[a]||k};
R.w=function(a,b,c){var d=G(a);if(A){var e=Tb(d)||p,f=e.document;f.evaluate||(e.XPathResult=Q,f.evaluate=function(a,b,c,d){return(new pd(a)).evaluate(b,d)},f.createExpression=function(a){return new pd(a)})}else try{if(!d.implementation||!d.implementation.hasFeature("XPath","3.0"))return k}catch(g){return k}try{var o;if(xb&&!Fb(2.3))try{o=Tb(d).top.document}catch(q){return k}else o=d;var s=d.createNSResolver?d.createNSResolver(d.documentElement):R.Ia;return A&&!gb(7)?o.evaluate.apply(k,[b,a,s,c,k]):
o.evaluate(b,a,s,c,k)}catch(F){B&&"NS_ERROR_ILLEGAL_VALUE"==F.name||h(new y(32,"Unable to locate an element with the xpath expression "+b+" because of the following error:\n"+F))}};R.da=function(a,b){(!a||1!=a.nodeType)&&h(new y(32,'The result of the xpath expression "'+b+'" is: '+a+". It should be an element."))};
R.H=function(a,b){var c=function(){var c=R.w(b,a,9);return c?(c=c.singleNodeValue,z?c:c||k):b.selectSingleNode?(c=G(b),c.setProperty&&c.setProperty("SelectionLanguage","XPath"),b.selectSingleNode(a)):k}();c===k||R.da(c,a);return c};
R.v=function(a,b){var c=function(){var c=R.w(b,a,7);if(c){var e=c.snapshotLength;z&&!r(e)&&R.da(k,a);for(var f=[],g=0;g<e;++g)f.push(c.snapshotItem(g));return f}return b.selectNodes?(c=G(b),c.setProperty&&c.setProperty("SelectionLanguage","XPath"),b.selectNodes(a)):[]}();w(c,function(b){R.da(b,a)});return c};!z&&(!C||D("533"));function rd(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}rd.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};rd.prototype.contains=function(a){return!this||!a?l:a instanceof rd?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom};function sd(a,b){var c=G(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function td(a,b){return sd(a,b)||(a.currentStyle?a.currentStyle[b]:k)||a.style&&a.style[b]}function ud(a){var b=a.getBoundingClientRect();A&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function vd(a){if(A&&!ib(8))return a.offsetParent;for(var b=G(a),c=td(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=td(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 k}
function wd(a){var b,c=G(a),d=td(a,"position");ta(a,"Parameter is required");var e=B&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new E(0,0),g;b=c?G(c):document;if(g=A)if(g=!ib(9))g="CSS1Compat"!=Qb(b).P.compatMode;g=g?b.body:b.documentElement;if(a==g)return f;if(a.getBoundingClientRect)b=ud(a),a=Qb(c),a=Sb(a.P),f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(g),f.x=b.screenX-
a.screenX,f.y=b.screenY-a.screenY;else{b=a;do{f.x+=b.offsetLeft;f.y+=b.offsetTop;b!=a&&(f.x+=b.clientLeft||0,f.y+=b.clientTop||0);if(C&&"fixed"==td(b,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(z||C&&"absolute"==d)f.y-=c.body.offsetTop;for(b=a;(b=vd(b))&&b!=c.body&&b!=g;)if(f.x-=b.scrollLeft,!z||"TR"!=b.tagName)f.y-=b.scrollTop}return f}
function xd(a){var b=new E;if(1==a.nodeType){if(a.getBoundingClientRect){var c=ud(a);b.x=c.left;b.y=c.top}else{var c=Qb(a),c=Sb(c.P),d=wd(a);b.x=d.x-c.x;b.y=d.y-c.y}if(B&&!gb(12)){var e;A?e="-ms-transform":C?e="-webkit-transform":z?e="-o-transform":B&&(e="-moz-transform");var f;e&&(f=td(a,e));f||(f=td(a,"transform"));f?(a=f.match(yd),a=!a?new E(0,0):new E(parseFloat(a[1]),parseFloat(a[2]))):a=new E(0,0);b=new E(b.x+a.x,b.y+a.y)}}else e=da(a.sa),f=a,a.targetTouches?f=a.targetTouches[0]:e&&a.sa().targetTouches&&
(f=a.sa().targetTouches[0]),b.x=f.clientX,b.y=f.clientY;return b}function zd(a){if("none"!=td(a,"display"))return Ad(a);var b=a.style,c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=Ad(a);b.display=c;b.position=e;b.visibility=d;return a}function Ad(a){var b=a.offsetWidth,c=a.offsetHeight,d=C&&!b&&!c;return(!r(b)||d)&&a.getBoundingClientRect?(a=ud(a),new Ob(a.right-a.left,a.bottom-a.top)):new Ob(b,c)}var Bd={thin:2,medium:4,thick:6};
function Cd(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:k))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:k,d;if(c in Bd)d=Bd[c];else if(/^\d+px?$/.test(c))d=parseInt(c,10);else{d=a.style.left;var e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=c;c=a.style.pixelLeft;a.style.left=d;a.runtimeStyle.left=e;d=c}return d}var yd=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function S(a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}function Dd(a){return Ed(a,j)&&Fd(a)&&(A||z||Eb&&Fb(3.6)||"none"!=T(a,"pointer-events"))}function Gd(a){return S(a,"OPTION")?j:S(a,"INPUT")?(a=a.type.toLowerCase(),"checkbox"==a||"radio"==a):l}var Hd={"class":"className",readonly:"readOnly"},Id=["checked","disabled","draggable","hidden"];
function Jd(a,b){var c=Hd[b]||b,d=a[c];if(!r(d)&&x(Id,c))return l;if(c="value"==b)if(c=S(a,"OPTION")){var e;c=b.toLowerCase();if(a.hasAttribute)e=a.hasAttribute(c);else try{e=a.attributes[c].specified}catch(f){e=l}c=!e}c&&(d=[],ac(a,d,l),d=d.join(""));return d}
var Kd="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(" "),Ld=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/;
function Md(a,b){if(8==a.nodeType)return k;b=b.toLowerCase();if("style"==b){var c=[];w(a.style.cssText.split(Ld),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 z?c.replace(/\w+:;/g,""):c}var d=a.getAttributeNode(b);A&&!d&&(gb(8)&&x(Kd,b))&&(d=a[b]);return!d?k:x(Kd,b)?Lb&&"false"==d.value?k:"true":d.specified?d.value:k}var Nd="BUTTON INPUT OPTGROUP OPTION SELECT TEXTAREA".split(" ");
function Fd(a){var b=a.tagName.toUpperCase();return!x(Nd,b)?j:Jd(a,"disabled")?l:a.parentNode&&1==a.parentNode.nodeType&&"OPTGROUP"==b||"OPTION"==b?Fd(a.parentNode):j}var Od="text search tel url email password number".split(" ");
function Pd(a){if(S(a,"TEXTAREA"))a=j;else if(S(a,"INPUT"))a=x(Od,a.type.toLowerCase());else var b=function(a){return"inherit"==a.contentEditable?(a=Qd(a))?b(a):l:"true"==a.contentEditable},a=(!r(a.contentEditable)?0:!A&&r(a.isContentEditable)?a.isContentEditable:b(a))?j:l;return a}function Qd(a){for(a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return S(a)?a:k}
function T(a,b){var c=String(b).replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()});if("float"==c||"cssFloat"==c||"styleFloat"==c)c=Lb?"styleFloat":"cssFloat";c=sd(a,c)||Rd(a,c);if(c===k)c=k;else if(x(Ca,b)&&(Fa.test("#"==c.charAt(0)?c:"#"+c)||Ja(c).length||ka&&ka[c.toLowerCase()]||Ha(c).length)){var d=Ha(c);if(!d.length){a:if(d=Ja(c),!d.length){d=ka[c.toLowerCase()];d=!d?"#"==c.charAt(0)?c:"#"+c:d;if(Fa.test(d)&&(d=Ea(d),d=Ea(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 Rd(a,b){var c=a.currentStyle||a.style,d=c[b];!r(d)&&da(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?r(d)?d:k:(c=Qd(a))?Rd(c,b):k}
function Sd(a){if(da(a.getBBox))try{var b=a.getBBox();if(b)return b}catch(c){}if(S(a,Nb)){b=Tb(G(a))||i;"hidden"!=T(a,"overflow")?a=j:(a=Qd(a),!a||!S(a,"HTML")?a=j:(a=T(a,"overflow"),a="auto"==a||"scroll"==a));if(a){var a=(b||v).document,b=a.documentElement,d=a.body;d||h(new y(13,"No BODY element present"));a=[b.clientHeight,b.scrollHeight,b.offsetHeight,d.scrollHeight,d.offsetHeight];b=Math.max.apply(k,[b.clientWidth,b.scrollWidth,b.offsetWidth,d.scrollWidth,d.offsetWidth]);a=Math.max.apply(k,a);
b=new Ob(b,a)}else b=(b||window).document,b="CSS1Compat"==b.compatMode?b.documentElement:b.body,b=new Ob(b.clientWidth,b.clientHeight);return b}return zd(a)}
function Ed(a,b){function c(a){if("none"==T(a,"display"))return l;a=Qd(a);return!a||c(a)}function d(a){var b=Sd(a);return 0<b.height&&0<b.width?j:ya(a.childNodes,function(a){return a.nodeType==Pb||S(a)&&d(a)})}function e(a){var b=vd(a),c=B||A||z?Qd(a):b;if((B||A||z)&&S(c,Nb))b=c;if(b&&"hidden"==T(b,"overflow")){var c=Sd(b),d=xd(b),a=xd(a);return d.x+c.width<a.x||d.y+c.height<a.y?l:e(b)}return j}S(a)||h(Error("Argument to isShown must be of type Element"));if(S(a,"OPTION")||S(a,"OPTGROUP")){var f=
bc(a,function(a){return S(a,"SELECT")});return!!f&&Ed(f,j)}if(S(a,"MAP")){if(!a.name)return l;f=G(a);if(f.evaluate)f=R.H('/descendant::*[@usemap = "#'+a.name+'"]',f);else var g=[],f=Yb(f,function(b){return S(b)&&Md(b,"usemap")=="#"+a.name},g,j)?g[0]:i;return!!f&&Ed(f,b)}if(S(a,"AREA"))return f=bc(a,function(a){return S(a,"MAP")}),!!f&&Ed(f,b);if(!(f=S(a,"INPUT")&&"hidden"==a.type.toLowerCase()||S(a,"NOSCRIPT")||"hidden"==T(a,"visibility")||!c(a)))if(f=!b)A?"relative"==T(a,"position")?f=1:(f=T(a,"filter"),
f=(f=f.match(/^alpha\(opacity=(\d*)\)/)||f.match(/^progid:DXImageTransform.Microsoft.Alpha\(Opacity=(\d*)\)/))?Number(f[1])/100:1):f=Td(a),f=0==f;return f||!d(a)?l:e(a)}function Ud(a){return a.replace(/^[^\S\xa0]+|[^\S\xa0]+$/g,"")}function Vd(a){var b=[];Wd(a,b);b=wa(b,Ud);return Ud(b.join("\n")).replace(/\xa0/g," ")}
function Wd(a,b){if(S(a,"BR"))b.push("");else{var c=S(a,"TD"),d=T(a,"display"),e=!c&&!x(Xd,d),f;if(a.previousElementSibling!=i)f=a.previousElementSibling;else for(f=a.previousSibling;f&&1!=f.nodeType;)f=f.previousSibling;f=f?T(f,"display"):"";var g=T(a,"float")||T(a,"cssFloat")||T(a,"styleFloat");e&&(!("run-in"==f&&"none"==g)&&!/^[\s\xa0]*$/.test(b[b.length-1]||""))&&b.push("");var o=Ed(a),q=k,s=k;o&&(q=T(a,"white-space"),s=T(a,"text-transform"));w(a.childNodes,function(a){if(a.nodeType==Pb&&o){var c=
q,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()||"";ma(c)&&a.lastIndexOf(" ",0)==0&&(a=a.substr(1));b.push(c+a)}else S(a)&&Wd(a,b)});f=b[b.length-
1]||"";if((c||"table-cell"==d)&&f&&!ma(f))b[b.length-1]+=" ";e&&("run-in"!=d&&!/^[\s\xa0]*$/.test(f))&&b.push("")}}var Xd="inline inline-block inline-table none table-cell table-column table-column-group".split(" ");function Td(a){var b=1,c=T(a,"opacity");c&&(b=Number(c));(a=Qd(a))&&(b*=Td(a));return b};var Yd={oa:function(a){return!(!a.querySelectorAll||!a.querySelector)},H:function(a,b){a||h(Error("No class name specified"));a=oa(a);1<a.split(/\s+/).length&&h(Error("Compound class names not permitted"));if(Yd.oa(b))return b.querySelector("."+a.replace(/\./g,"\\."))||k;var c=cc(Qb(b),"*",a,b);return c.length?c[0]:k},v:function(a,b){a||h(Error("No class name specified"));a=oa(a);1<a.split(/\s+/).length&&h(Error("Compound class names not permitted"));return Yd.oa(b)?b.querySelectorAll("."+a.replace(/\./g,
"\\.")):cc(Qb(b),"*",a,b)}};var Zd={H:function(a,b){!da(b.querySelector)&&(A&&D(8)&&!ea(b.querySelector))&&h(Error("CSS selection is not supported"));a||h(Error("No selector specified"));var a=oa(a),c=b.querySelector(a);return c&&1==c.nodeType?c:k},v:function(a,b){!da(b.querySelectorAll)&&(A&&D(8)&&!ea(b.querySelector))&&h(Error("CSS selection is not supported"));a||h(Error("No selector specified"));a=oa(a);return b.querySelectorAll(a)}};var $d={},ae={};$d.Ba=function(a,b,c){var d;try{d=Zd.v("a",b)}catch(e){d=cc(Qb(b),"A",k,b)}return za(d,function(b){b=Vd(b);return c&&-1!=b.indexOf(a)||b==a})};$d.wa=function(a,b,c){var d;try{d=Zd.v("a",b)}catch(e){d=cc(Qb(b),"A",k,b)}return va(d,function(b){b=Vd(b);return c&&-1!=b.indexOf(a)||b==a})};$d.H=function(a,b){return $d.Ba(a,b,l)};$d.v=function(a,b){return $d.wa(a,b,l)};ae.H=function(a,b){return $d.Ba(a,b,j)};ae.v=function(a,b){return $d.wa(a,b,j)};var be={H:function(a,b){return b.getElementsByTagName(a)[0]||k},v:function(a,b){return b.getElementsByTagName(a)}};var ce={className:Yd,"class name":Yd,css:Zd,"css selector":Zd,id:{H:function(a,b){var c=Qb(b),d=c.c(a);if(!d)return k;if(Md(d,"id")==a&&Ub(b,d))return d;c=cc(c,"*");return za(c,function(c){return Md(c,"id")==a&&Ub(b,c)})},v:function(a,b){var c=cc(Qb(b),"*",k,b);return va(c,function(b){return Md(b,"id")==a})}},linkText:$d,"link text":$d,name:{H:function(a,b){var c=cc(Qb(b),"*",k,b);return za(c,function(b){return Md(b,"name")==a})},v:function(a,b){var c=cc(Qb(b),"*",k,b);return va(c,function(b){return Md(b,
"name")==a})}},partialLinkText:ae,"partial link text":ae,tagName:be,"tag name":be,xpath:R};function de(a,b){var c;a:{for(c in a)if(a.hasOwnProperty(c))break a;c=k}if(c){var d=ce[c];if(d&&da(d.v))return d.v(a[c],b||v.document)}h(Error("Unsupported locator strategy: "+c))};function ee(a){this.g=v.document.documentElement;this.r=k;var b=G(this.g).activeElement;b&&fe(this,b);this.D=a||new ge}ee.prototype.c=m("g");function fe(a,b){a.g=b;a.r=S(b,"OPTION")?bc(b,function(a){return S(a,"SELECT")}):k}
function he(a,b,c,d,e,f){if(!Dd(a.g))return l;e&&!(ie==b||je==b)&&h(new y(12,"Event type does not allow related target: "+b));c={clientX:c.x,clientY:c.y,button:d,altKey:a.D.d(4),ctrlKey:a.D.d(2),shiftKey:a.D.d(1),metaKey:a.D.d(8),wheelDelta:f||0,relatedTarget:e||k};return(a=a.r?ke(a,b):a.g)?U(a,b,c):j}
function ke(a,b){if(A)switch(b){case ie:return k;case le:case me:return a.r.multiple?a.r:k;default:return a.r}if(z)switch(b){case le:case ie:return a.r.multiple?a.g:k;default:return a.g}if(C)switch(b){case ne:case oe:return a.r.multiple?a.g:a.r;default:return a.r.multiple?a.g:k}return a.g}
function pe(a){var a=a.r||a.g,b=G(a).activeElement;if(a==b)return l;if(b&&(da(b.blur)||A&&ea(b.blur))){try{b.blur()}catch(c){A&&"Unspecified error."==c.message||h(c)}A&&!D(8)&&Tb(G(a)).focus()}return da(a.focus)||A&&ea(a.focus)?(z&&D(11)&&!Ed(a)?U(a,qe):a.focus(),j):l}var re=C||z||Eb&&Fb(3.6);function se(a){if(S(a,"INPUT")){var b=a.type.toLowerCase();if("submit"==b||"image"==b)return j}return S(a,"BUTTON")&&(b=a.type.toLowerCase(),"submit"==b)?j:l}
function te(a){if(re||!a.href)return l;if(!Eb)return j;if(a.target||0==a.href.toLowerCase().indexOf("javascript"))return l;var b=Tb(G(a)),c=b.location.href,a=ue(b.location,a.href);return c.split("#")[0]!==a.split("#")[0]}function ve(a){return S(a,"FORM")}var we=/^([^:/?#.]+:)?(?:\/\/([^/]*))?([^?#]+)?(\?[^#]*)?(#.*)?$/;
function ue(a,b){var c=b.match(we);if(!c)return"";var d=c[1]||"",e=c[2]||"",f=c[3]||"",g=c[4]||"",c=c[5]||"";if(!d&&(d=a.protocol,!e))if(e=a.host,f){if("/"!=f.charAt(0)){var o=a.pathname.lastIndexOf("/");-1!=o&&(f=a.pathname.substr(0,o+1)+f)}}else f=a.pathname,g=g||a.search;return d+"//"+e+f+g+c}function ge(){this.Z=0}ge.prototype.d=function(a){return 0!=(this.Z&a)};var xe=!(A&&!D(10))&&!z,ye=xb?!Fb(4):!Hb;function V(a,b,c){this.h=a;this.K=b;this.L=c}V.prototype.create=function(a){a=G(a);Lb?a=a.createEventObject():(a=a.createEvent("HTMLEvents"),a.initEvent(this.h,this.K,this.L));return a};V.prototype.toString=m("h");function W(a,b,c){V.call(this,a,b,c)}u(W,V);
W.prototype.create=function(a,b){!B&&this==ze&&h(new y(9,"Browser does not support a mouse pixel scroll event."));var c=G(a),d;if(Lb){d=c.createEventObject();d.altKey=b.altKey;d.ctrlKey=b.ctrlKey;d.metaKey=b.metaKey;d.shiftKey=b.shiftKey;d.button=b.button;d.clientX=b.clientX;d.clientY=b.clientY;var e=function(a,b){Object.defineProperty(d,a,{get:function(){return b}})};if(this==je||this==ie)if(Object.defineProperty){var f=this==je;e("fromElement",f?a:b.relatedTarget);e("toElement",f?b.relatedTarget:
a)}else d.relatedTarget=b.relatedTarget;this==Ae&&(Object.defineProperty?e("wheelDelta",b.wheelDelta):d.detail=b.wheelDelta)}else{e=Tb(c);d=c.createEvent("MouseEvents");f=1;if(this==Ae&&(B||(d.wheelDelta=b.wheelDelta),B||z))f=b.wheelDelta/-40;B&&this==ze&&(f=b.wheelDelta);d.initMouseEvent(this.h,this.K,this.L,e,f,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);if(A&&0===d.pageX&&0===d.pageY&&Object.defineProperty){var c=v.document.documentElement,g=v.document.body;
Object.defineProperty(d,"pageX",{get:function(){return b.clientX+(c&&c.scrollLeft||g&&g.scrollLeft||0)-(c&&c.clientLeft||g&&g.clientLeft||0)}});Object.defineProperty(d,"pageY",{get:function(){return b.clientY+(c&&c.scrollTop||g&&g.scrollTop||0)-(c&&c.clientTop||g&&g.clientTop||0)}})}}return d};function Be(a,b,c){V.call(this,a,b,c)}u(Be,V);
Be.prototype.create=function(a,b){var c=G(a);if(B){var d=Tb(c),e=b.charCode?0:b.keyCode,c=c.createEvent("KeyboardEvent");c.initKeyEvent(this.h,this.K,this.L,d,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,e,b.charCode);this.h==Ce&&b.preventDefault&&c.preventDefault()}else if(Lb?c=c.createEventObject():(c=c.createEvent("Events"),c.initEvent(this.h,this.K,this.L)),c.altKey=b.altKey,c.ctrlKey=b.ctrlKey,c.metaKey=b.metaKey,c.shiftKey=b.shiftKey,c.keyCode=b.charCode||b.keyCode,C)c.charCode=this==Ce?c.keyCode:
0;return c};function De(a,b,c){V.call(this,a,b,c)}u(De,V);
De.prototype.create=function(a,b){function c(b){b=wa(b,function(b){return e.createTouch(f,a,b.identifier,b.pageX,b.pageY,b.screenX,b.screenY)});return e.createTouchList.apply(e,b)}function d(b){var c=wa(b,function(b){return{identifier:b.identifier,screenX:b.screenX,screenY:b.screenY,clientX:b.clientX,clientY:b.clientY,pageX:b.pageX,pageY:b.pageY,target:a}});c.item=function(a){return c[a]};return c}xe||h(new y(9,"Browser does not support firing touch events."));var e=G(a),f=Tb(e),g=ye?d(b.changedTouches):
c(b.changedTouches),o=b.touches==b.changedTouches?g:ye?d(b.touches):c(b.touches),q=b.targetTouches==b.changedTouches?g:ye?d(b.targetTouches):c(b.targetTouches),s;ye?(s=e.createEvent("MouseEvents"),s.initMouseEvent(this.h,this.K,this.L,f,1,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,0,b.relatedTarget),s.touches=o,s.targetTouches=q,s.changedTouches=g,s.scale=b.scale,s.rotation=b.rotation):(s=e.createEvent("TouchEvent"),xb?s.initTouchEvent(o,q,g,this.h,f,0,0,b.clientX,b.clientY,b.ctrlKey,
b.altKey,b.shiftKey,b.metaKey):s.initTouchEvent(this.h,this.K,this.L,f,1,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,o,q,g,b.scale,b.rotation),s.relatedTarget=b.relatedTarget);return s};
var Ee=new V("change",j,l),qe=new V("focus",l,l),Fe=new V("input",l,l),Ge=new V("submit",j,j),He=new V("textInput",j,j),ne=new W("click",j,j),le=new W("contextmenu",j,j),Ie=new W("dblclick",j,j),Je=new W("mousedown",j,j),me=new W("mousemove",j,l),je=new W("mouseout",j,j),ie=new W("mouseover",j,j),oe=new W("mouseup",j,j),Ae=new W(B?"DOMMouseScroll":"mousewheel",j,j),ze=new W("MozMousePixelScroll",j,j),Ke=new Be("keydown",j,j),Ce=new Be("keypress",j,j),Le=new Be("keyup",j,j),Me=new De("touchmove",j,
j),Ne=new De("touchstart",j,j);function U(a,b,c){c=b.create(a,c);"isTrusted"in c||(c.isTrusted=l);return Lb?a.fireEvent("on"+b.h,c):a.dispatchEvent(c)};function Oe(a,b){if(Pe(a))a.selectionStart=b;else if(A){var c=Qe(a),d=c[0];d.inRange(c[1])&&(b=Re(a,b),d.collapse(j),d.move("character",b),d.select())}}
function Se(a,b){var c=0,d=0;if(Pe(a))c=a.selectionStart,d=b?-1:a.selectionEnd;else if(A){var e=Qe(a),f=e[0],e=e[1];if(f.inRange(e)){f.setEndPoint("EndToStart",e);if("textarea"==a.type){for(var c=e.duplicate(),g=f.text,d=g,o=e=c.text,q=l;!q;)0==f.compareEndPoints("StartToEnd",f)?q=j:(f.moveEnd("character",-1),f.text==g?d+="\r\n":q=j);if(b)f=[d.length,-1];else{for(f=l;!f;)0==c.compareEndPoints("StartToEnd",c)?f=j:(c.moveEnd("character",-1),c.text==e?o+="\r\n":f=j);f=[d.length,d.length+o.length]}return f}c=
f.text.length;d=b?-1:f.text.length+e.text.length}}return[c,d]}function Te(a,b){if(Pe(a))a.selectionEnd=b;else if(A){var c=Qe(a),d=c[1];c[0].inRange(d)&&(b=Re(a,b),c=Re(a,Se(a,j)[0]),d.collapse(j),d.moveEnd("character",b-c),d.select())}}function Ue(a,b){if(Pe(a))a.selectionStart=b,a.selectionEnd=b;else if(A){var b=Re(a,b),c=a.createTextRange();c.collapse(j);c.move("character",b);c.select()}}
function Ve(a,b){if(Pe(a)){var c=a.value,d=a.selectionStart;a.value=c.substr(0,d)+b+c.substr(a.selectionEnd);a.selectionStart=d;a.selectionEnd=d+b.length}else A?(d=Qe(a),c=d[1],d[0].inRange(c)&&(d=c.duplicate(),c.text=b,c.setEndPoint("StartToStart",d),c.select())):h(Error("Cannot set the selection end"))}function Qe(a){var b=a.ownerDocument||a.document,c=b.selection.createRange();"textarea"==a.type?(b=b.body.createTextRange(),b.moveToElementText(a)):b=a.createTextRange();return[b,c]}
function Re(a,b){"textarea"==a.type&&(b=a.value.substring(0,b).replace(/(\r\n|\r|\n)/g,"\n").length);return b}function Pe(a){try{return"number"==typeof a.selectionStart}catch(b){return l}};function We(a){if("function"==typeof a.Q)return a.Q();if(t(a))return a.split("");if(ca(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return La(a)};function Xe(a,b){this.p={};this.l=[];var c=arguments.length;if(1<c){c%2&&h(Error("Uneven number of arguments"));for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.ba(a)}n=Xe.prototype;n.O=0;n.Ha=0;n.Q=function(){Ye(this);for(var a=[],b=0;b<this.l.length;b++)a.push(this.p[this.l[b]]);return a};function Ze(a){Ye(a);return a.l.concat()}n.remove=function(a){return $e(this.p,a)?(delete this.p[a],this.O--,this.Ha++,this.l.length>2*this.O&&Ye(this),j):l};
function Ye(a){if(a.O!=a.l.length){for(var b=0,c=0;b<a.l.length;){var d=a.l[b];$e(a.p,d)&&(a.l[c++]=d);b++}a.l.length=c}if(a.O!=a.l.length){for(var e={},c=b=0;b<a.l.length;)d=a.l[b],$e(e,d)||(a.l[c++]=d,e[d]=1),b++;a.l.length=c}}n.get=function(a,b){return $e(this.p,a)?this.p[a]:b};n.set=function(a,b){$e(this.p,a)||(this.O++,this.l.push(a),this.Ha++);this.p[a]=b};
n.ba=function(a){var b;if(a instanceof Xe)b=Ze(a),a=a.Q();else{b=[];var c=0,d;for(d in a)b[c++]=d;a=La(a)}for(c=0;c<b.length;c++)this.set(b[c],a[c])};function $e(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function af(a){this.p=new Xe;a&&this.ba(a)}function bf(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(a[fa]||(a[fa]=++ia)):b.substr(0,1)+a}n=af.prototype;n.add=function(a){this.p.set(bf(a),a)};n.ba=function(a){for(var a=We(a),b=a.length,c=0;c<b;c++)this.add(a[c])};n.remove=function(a){return this.p.remove(bf(a))};n.contains=function(a){a=bf(a);return $e(this.p.p,a)};n.Q=function(){return this.p.Q()};function cf(a){ee.call(this);this.ga=Pd(this.c())&&!Jd(this.c(),"readOnly");this.s=0;this.ma=new af;a&&(w(a.pressed,function(a){df(this,a,j)},this),this.s=a.currentPos)}u(cf,ee);var ef={};function X(a,b,c){ea(a)&&(a=B?a.e:z?a.opera:a.f);a=new ff(a,b,c);if(b&&(!(b in ef)||c))ef[b]={key:a,shift:l},c&&(ef[c]={key:a,shift:j});return a}function ff(a,b,c){this.code=a;this.I=b||k;this.Sa=c||this.I}var gf=X(8),hf=X(9),jf=X(13),Y=X(16),kf=X(17),lf=X(18),mf=X(19);X(20);
var nf=X(27),of=X(32," "),pf=X(33),qf=X(34),rf=X(35),sf=X(36),tf=X(37),uf=X(38),vf=X(39),wf=X(40);X(44);var xf=X(45),yf=X(46);X(48,"0",")");X(49,"1","!");X(50,"2","@");X(51,"3","#");X(52,"4","$");X(53,"5","%");X(54,"6","^");X(55,"7","&");X(56,"8","*");X(57,"9","(");X(65,"a","A");X(66,"b","B");X(67,"c","C");X(68,"d","D");X(69,"e","E");X(70,"f","F");X(71,"g","G");X(72,"h","H");X(73,"i","I");X(74,"j","J");X(75,"k","K");X(76,"l","L");X(77,"m","M");X(78,"n","N");X(79,"o","O");X(80,"p","P");X(81,"q","Q");
X(82,"r","R");X(83,"s","S");X(84,"t","T");X(85,"u","U");X(86,"v","V");X(87,"w","W");X(88,"x","X");X(89,"y","Y");X(90,"z","Z");
var zf=X(Sa?{e:91,f:91,opera:219}:Ra?{e:224,f:91,opera:17}:{e:0,f:91,opera:k}),Af=X(Sa?{e:92,f:92,opera:220}:Ra?{e:224,f:93,opera:17}:{e:0,f:92,opera:k}),Bf=X(Sa?{e:93,f:93,opera:0}:Ra?{e:0,f:0,opera:16}:{e:93,f:k,opera:0}),Cf=X({e:96,f:96,opera:48},"0"),Df=X({e:97,f:97,opera:49},"1"),Ef=X({e:98,f:98,opera:50},"2"),Ff=X({e:99,f:99,opera:51},"3"),Gf=X({e:100,f:100,opera:52},"4"),Hf=X({e:101,f:101,opera:53},"5"),If=X({e:102,f:102,opera:54},"6"),Jf=X({e:103,f:103,opera:55},"7"),Kf=X({e:104,f:104,opera:56},
"8"),Lf=X({e:105,f:105,opera:57},"9"),Mf=X({e:106,f:106,opera:Ya?56:42},"*"),Nf=X({e:107,f:107,opera:Ya?61:43},"+"),Of=X({e:109,f:109,opera:Ya?109:45},"-"),Pf=X({e:110,f:110,opera:Ya?190:78},"."),Qf=X({e:111,f:111,opera:Ya?191:47},"/");X(Ya&&z?k:144);var Rf=X(112),Sf=X(113),Tf=X(114),Uf=X(115),Vf=X(116),Wf=X(117),Xf=X(118),Yf=X(119),Zf=X(120),$f=X(121),ag=X(122),bg=X(123),cg=X({e:107,f:187,opera:61},"=","+");X({e:109,f:189,opera:109},"-","_");X(188,",","<");var dg=X(188,",");X(190,".",">");
X(191,"/","?");X(192,"`","~");X(219,"[","{");X(220,"\\","|");X(221,"]","}");var eg=X({e:59,f:186,opera:59},";",":");X(222,"'",'"');var fg=[lf,kf,zf,Y],gg=new Xe;gg.set(1,Y);gg.set(2,kf);gg.set(4,lf);gg.set(8,zf);var hg=new Xe;w(Ze(gg),function(a){hg.set(gg.get(a).code,a)});function df(a,b,c){if(x(fg,b)){var d=hg.get(b.code),e=a.D;e.Z=c?e.Z|d:e.Z&~d}c?a.ma.add(b):a.ma.remove(b)}var ig=A||z?"\r\n":"\n";cf.prototype.d=function(a){return this.ma.contains(a)};
function jg(a,b){x(fg,b)&&a.d(b)&&h(new y(13,"Cannot press a modifier key that is already pressed."));var c=b.code!==k&&kg(a,Ke,b);if(c||B)if((!lg(b)||kg(a,Ce,b,!c))&&c){if(b==jf&&(!B&&S(a.c(),"INPUT"))&&(c=bc(a.c(),ve,j))){var d=c.getElementsByTagName("input");if(ya(d,function(a){return se(a)})||1==d.length||C&&!D(534))if(ve(c)||h(new y(12,"Element was not in a form, so could not submit.")),U(c,Ge))if(S(c.submit))if(!A||D(8))c.constructor.prototype.submit.call(c);else{var d=de({id:"submit"},c),e=
de({name:"submit"},c);w(d,function(a){a.removeAttribute("id")});w(e,function(a){a.removeAttribute("name")});c=c.submit;w(d,function(a){a.setAttribute("id","submit")});w(e,function(a){a.setAttribute("name","submit")});c()}else c.submit()}if(a.ga)if(b.I)mg||(c=ng(a,b),d=Se(a.c(),j)[0]+1,Ve(a.c(),c),Oe(a.c(),d),C&&U(a.g,He),Lb||U(a.g,Fe),a.s=d);else switch(b){case jf:mg||(C&&U(a.g,He),S(a.c(),"TEXTAREA")&&(c=Se(a.c(),j)[0]+ig.length,Ve(a.c(),ig),Oe(a.c(),c),A||U(a.g,Fe),a.s=c));break;case gf:case yf:mg||
(c=Se(a.c(),l),c[0]==c[1]&&(b==gf?(Oe(a.c(),c[1]-1),Te(a.c(),c[1])):Te(a.c(),c[1]+1)),c=Se(a.c(),l),c=!(c[0]==a.c().value.length||0==c[1]),Ve(a.c(),""),(!A&&c||B&&b==gf)&&U(a.g,Fe),c=Se(a.c(),l),a.s=c[1]);break;case tf:case vf:var c=a.c(),f=Se(c,j)[0],g=Se(c,l)[1],e=d=0;b==tf?a.d(Y)?a.s==f?(d=Math.max(f-1,0),e=g,f=d):(d=f,f=e=g-1):f=f==g?Math.max(f-1,0):f:a.d(Y)?a.s==g?(d=f,f=e=Math.min(g+1,c.value.length)):(d=f+1,e=g,f=d):f=f==g?Math.min(g+1,c.value.length):g;a.d(Y)?(Oe(c,d),Te(c,e)):Ue(c,f);a.s=
f;break;case sf:case rf:c=a.c(),d=Se(c,j)[0],e=Se(c,l)[1],b==sf?(a.d(Y)?(Oe(c,0),Te(c,a.s==d?e:d)):Ue(c,0),a.s=0):(a.d(Y)?(a.s==d&&Oe(c,e),Te(c,c.value.length)):Ue(c,c.value.length),a.s=c.value.length)}}df(a,b,j)}function lg(a){if(a.I||a==jf)return j;if(C)return l;if(A)return a==nf;switch(a){case Y:case kf:case lf:return l;case zf:case Af:case Bf:return B;default:return j}}
function og(a,b){a.d(b)||h(new y(13,"Cannot release a key that is not pressed. ("+b.code+")"));b.code===k||kg(a,Le,b);df(a,b,l)}function ng(a,b){b.I||h(new y(13,"not a character key"));return a.d(Y)?b.Sa:b.I}var mg=B&&!D(12);function kg(a,b,c,d){c.code===k&&h(new y(13,"Key must have a keycode to be fired."));c={altKey:a.d(lf),ctrlKey:a.d(kf),metaKey:a.d(zf),shiftKey:a.d(Y),keyCode:c.code,charCode:c.I&&b==Ce?ng(a,c).charCodeAt(0):0,preventDefault:!!d};return U(a.g,b,c)};function pg(a,b){ee.call(this,b);this.V=this.t=k;this.B=new E(0,0);this.ha=this.S=l;if(a){this.t=a.Ua;try{S(a.Ka)&&(this.V=a.Ka)}catch(c){this.t=k}this.B=a.Va;this.S=a.Za;this.ha=a.Xa;try{S(a.element)&&fe(this,a.element)}catch(d){this.t=k}}}u(pg,ee);var Z={};
Lb?(Z[ne]=[0,0,0,k],Z[le]=[k,k,0,k],Z[oe]=[1,4,2,k],Z[je]=[0,0,0,0],Z[me]=[1,4,2,0]):C||Kb?(Z[ne]=[0,1,2,k],Z[le]=[k,k,2,k],Z[oe]=[0,1,2,k],Z[je]=[0,1,2,0],Z[me]=[0,1,2,0]):(Z[ne]=[0,1,2,k],Z[le]=[k,k,2,k],Z[oe]=[0,1,2,k],Z[je]=[0,0,0,0],Z[me]=[0,0,0,0]);Z[Ie]=Z[ne];Z[Je]=Z[oe];Z[ie]=Z[je];
pg.prototype.move=function(a,b){var c=xd(a);this.B.x=b.x+c.x;this.B.y=b.y+c.y;c=this.c();if(a!=c){try{Tb(G(c)).closed&&(c=k)}catch(d){c=k}if(c){var e=c===v.document.documentElement||c===v.document.body,c=!this.ha&&e?k:c;qg(this,je,a)}fe(this,a);A||qg(this,ie,c)}qg(this,me);A&&a!=c&&qg(this,ie,c);this.S=l};function qg(a,b,c){a.ha=j;return he(a,b,a.B,rg(a,b),c,i)}
function rg(a,b){if(!(b in Z))return 0;var c=Z[b][a.t===k?3:a.t];c===k&&h(new y(13,"Event does not permit the specified mouse button."));return c};function sg(){ee.call(this);this.B=new E(0,0);this.ea=new E(0,0)}u(sg,ee);n=sg.prototype;n.La=l;n.Ea=0;n.Da=0;
n.move=function(a,b,c){this.d()||fe(this,a);a=xd(a);this.B.x=b.x+a.x;this.B.y=b.y+a.y;r(c)&&(this.ea.x=c.x+a.x,this.ea.y=c.y+a.y);if(this.d()){this.La=j;this.d()||h(new y(13,"Should never fire event when touchscreen is not pressed."));var d,e;this.Da&&(d=this.Da,e=this.ea);var b=this.Ea,c=this.B,a=function(a,b){var c={identifier:a,screenX:b.x,screenY:b.y,clientX:b.x,clientY:b.y,pageX:b.x,pageY:b.y};f.changedTouches.push(c);if(Me==Ne||Me==Me){f.touches.push(c);f.targetTouches.push(c)}},f={touches:[],
targetTouches:[],changedTouches:[],altKey:this.D.d(4),ctrlKey:this.D.d(2),shiftKey:this.D.d(1),metaKey:this.D.d(8),relatedTarget:k,scale:0,rotation:0};a(b,c);r(d)&&a(d,e);U(this.g,Me,f)}};n.d=function(){return!!this.Ea};function tg(a,b){this.x=a;this.y=b}u(tg,E);tg.prototype.scale=function(a){this.x*=a;this.y*=a;return this};tg.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};function ug(a){Ed(a,j)||h(new y(11,"Element is not currently visible and may not be manipulated"))}
function vg(a,b,c){ug(a);var d=G(a),d=C?d.body:d.documentElement,e;e=wd(a);var f=wd(d),g;if(A){var o=Cd(d,"borderLeft");g=Cd(d,"borderRight");var q=Cd(d,"borderTop"),s=Cd(d,"borderBottom");g=new rd(q,g,s,o)}else o=sd(d,"borderLeftWidth"),g=sd(d,"borderRightWidth"),q=sd(d,"borderTopWidth"),s=sd(d,"borderBottomWidth"),g=new rd(parseFloat(q),parseFloat(g),parseFloat(s),parseFloat(o));o=e.x-f.x-g.left;e=e.y-f.y-g.top;f=d.clientHeight-a.offsetHeight;g=d.scrollLeft;q=d.scrollTop;g+=Math.min(o,Math.max(o-
(d.clientWidth-a.offsetWidth),0));q+=Math.min(e,Math.max(e-f,0));e=new E(g,q);d.scrollLeft=e.x;d.scrollTop=e.y;b?b=new tg(b.x,b.y):(b=wg(a),b=new tg(b.width/2,b.height/2));c=c||new pg;c.move(a,b);c.t!==k&&h(new y(13,"Cannot press more then one button or an already pressed button."));c.t=0;c.V=c.c();var F;a=B&&!Fb(4);(C||a)&&(S(c.c(),"OPTION")||S(c.c(),"SELECT"))?F=j:((a=B||A)&&(F=G(c.c()).activeElement),F=(b=qg(c,Je))&&a&&F!=G(c.c()).activeElement?l:b);F&&pe(c);c.t===k&&h(new y(13,"Cannot release a button when no button is pressed."));
qg(c,oe);if(0==c.t&&c.c()==c.V){F=c.B;a=rg(c,ne);if(Dd(c.g)){d=b=k;if(!re)for(e=c.g;e;e=e.parentNode)if(S(e,"A")){b=e;break}else if(se(e)){d=e;break}if(f=e=Gd(c.g)){f=c.g;Gd(f)||h(new y(15,"Element is not selectable"));o="selected";g=f.type&&f.type.toLowerCase();if("checkbox"==g||"radio"==g)o="checked";f=!!Jd(f,o)}if(c.r&&(o=c.r,!f||o.multiple))c.g.selected=!f,(!C||!o.multiple||xb&&Fb(4))&&U(o,Ee);A&&d?d.click():he(c,ne,F,a)&&(b&&te(b)?(F=b,a=F.href,b=Tb(G(F)),A&&!D(8)&&(a=ue(b.location,a)),F.target?
b.open(a,F.target):b.location.href=a):e&&!c.r&&(!B&&!C&&!(f&&"radio"==c.g.type.toLowerCase()))&&(c.g.checked=!f,z&&!D(11)&&U(c.g,Ee)))}c.S&&qg(c,Ie);c.S=!c.S}else 2==c.t&&qg(c,le);c.t=k;c.V=k}function wg(a){var b=zd(a);return 0<b.width&&0<b.height||!a.offsetParent?b:wg(a.offsetParent)}function xg(){ee.call(this)}u(xg,ee);xg.Wa=function(){return xg.ta?xg.ta:xg.ta=new xg};function yg(){this.$=i}
function zg(a,b,c){switch(typeof b){case "string":Ag(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==k){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],zg(a,a.$?a.$.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),Ag(f,
c),c.push(":"),zg(a,a.$?a.$.call(b,f,e):e,c),d=","));c.push("}");break;case "function":break;default:h(Error("Unknown type: "+typeof b))}}var Bg={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Cg=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function Ag(a,b){b.push('"',a.replace(Cg,function(a){if(a in Bg)return Bg[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return Bg[a]=e+b.toString(16)}),'"')};C||z||B&&D(3.5)||A&&D(8);function Dg(a){switch(ba(a)){case "string":case "number":case "boolean":return a;case "function":return a.toString();case "array":return wa(a,Dg);case "object":if("nodeType"in a&&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMENT=Eg(a);return b}if("document"in a)return b={},b.WINDOW=Eg(a),b;if(ca(a))return wa(a,Dg);var b=function(a,b){return"number"==typeof b||t(b)},c={},d;for(d in a)b.call(i,0,d)&&(c[d]=a[d]);return Ka(c,Dg);default:return k}}
function Fg(a,b){return"array"==ba(a)?wa(a,function(a){return Fg(a,b)}):ea(a)?"function"==typeof a?a:"ELEMENT"in a?Gg(a.ELEMENT,b):"WINDOW"in a?Gg(a.WINDOW,b):Ka(a,function(a){return Fg(a,b)}):a}function Hg(a){var a=a||document,b=a.$wdc_;b||(b=a.$wdc_={},b.ka=ja());b.ka||(b.ka=ja());return b}function Eg(a){var b=Hg(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.ka++,b[c]=a);return c}
function Gg(a,b){var a=decodeURIComponent(a),c=b||document,d=Hg(c);a in d||h(new y(10,"Element does not exist in cache"));var e=d[a];if("setInterval"in e)return e.closed&&(delete d[a],h(new y(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 y(10,"Element is no longer attached to the DOM"))};function $(a,b,c){var d=[],e=[];d.push(e);w(b,function(a){w(a.split(""),function(a){if("\ue000"<=a&&"\ue03d">=a){var b=$.b[a];b===k?d.push(e=[]):r(b)?e.push(b):h(Error("Unsupported WebDriver key: \\u"+a.charCodeAt(0).toString(16)))}else switch(a){case "\n":e.push(jf);break;case "\t":e.push(hf);break;case "\b":e.push(gf);break;default:e.push(a)}})});w(d,function(b){function d(a){t(a)?w(a.split(""),function(a){1!=a.length&&h(new y(13,"Argument not a single character: "+a));var b=ef[a];b||(b=a.toUpperCase(),
b=X(b.charCodeAt(0),a.toLowerCase(),b),b={key:b,shift:a!=b.I});a=b;b=e.d(Y);a.shift&&!b&&jg(e,Y);jg(e,a.key);og(e,a.key);a.shift&&!b&&og(e,Y)}):x(fg,a)?e.d(a)?og(e,a):jg(e,a):(jg(e,a),og(e,a))}ug(a);Dd(a)||h(new y(12,"Element is not currently interactable and may not be manipulated"));var e=c||new cf,q=e;fe(q,a);q.ga=Pd(a)&&!Jd(a,"readOnly");var s=pe(q);q.ga&&s&&(Ue(a,a.value.length),q.s=a.value.length);"array"==ba(b)?w(b,d):d(b);w(fg,function(a){e.d(a)&&og(e,a)})})}$.b={};$.b["\ue000"]=k;
$.b["\ue003"]=gf;$.b["\ue004"]=hf;$.b["\ue006"]=jf;$.b["\ue007"]=jf;$.b["\ue008"]=Y;$.b["\ue009"]=kf;$.b["\ue00a"]=lf;$.b["\ue00b"]=mf;$.b["\ue00c"]=nf;$.b["\ue00d"]=of;$.b["\ue00e"]=pf;$.b["\ue00f"]=qf;$.b["\ue010"]=rf;$.b["\ue011"]=sf;$.b["\ue012"]=tf;$.b["\ue013"]=uf;$.b["\ue014"]=vf;$.b["\ue015"]=wf;$.b["\ue016"]=xf;$.b["\ue017"]=yf;$.b["\ue018"]=eg;$.b["\ue019"]=cg;$.b["\ue01a"]=Cf;$.b["\ue01b"]=Df;$.b["\ue01c"]=Ef;$.b["\ue01d"]=Ff;$.b["\ue01e"]=Gf;$.b["\ue01f"]=Hf;$.b["\ue020"]=If;
$.b["\ue021"]=Jf;$.b["\ue022"]=Kf;$.b["\ue023"]=Lf;$.b["\ue024"]=Mf;$.b["\ue025"]=Nf;$.b["\ue027"]=Of;$.b["\ue028"]=Pf;$.b["\ue029"]=Qf;$.b["\ue026"]=dg;$.b["\ue031"]=Rf;$.b["\ue032"]=Sf;$.b["\ue033"]=Tf;$.b["\ue034"]=Uf;$.b["\ue035"]=Vf;$.b["\ue036"]=Wf;$.b["\ue037"]=Xf;$.b["\ue038"]=Yf;$.b["\ue039"]=Zf;$.b["\ue03a"]=$f;$.b["\ue03b"]=ag;$.b["\ue03c"]=bg;$.b["\ue03d"]=zf;function Ig(a){var a=[a],b=vg,c;try{var b=t(b)?new v.Function(b):v==window?b:new v.Function("return ("+b+").apply(null,arguments);"),d=Fg(a,v.document),e=b.apply(k,d);c={status:0,value:Dg(e)}}catch(f){c={status:"code"in f?f.code:13,value:{message:f.message}}}d=[];zg(new yg,c,d);return d.join("")}var Jg=["_"],Kg=p;!(Jg[0]in Kg)&&Kg.execScript&&Kg.execScript("var "+Jg[0]);for(var Lg;Jg.length&&(Lg=Jg.shift());)!Jg.length&&r(Ig)?Kg[Lg]=Ig:Kg=Kg[Lg]?Kg[Lg]:Kg[Lg]={};; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navigator:null}, arguments);}
