atoms.click_ios.js Maven / Gradle / Ivy
The newest version!
function(){return function(){function h(a){throw a;}var k=void 0,l=!0,m=null,n=!1;function q(a){return function(){return this[a]}}function ba(a){return function(){return a}}var r,s=this;
function ca(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 u(a){return a!==k}function v(a){return"string"==typeof a}function da(a){return"function"==ca(a)}function ea(a){var b=typeof a;return"object"==b&&a!=m||"function"==b}var fa="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ga=0;function w(a,b){function c(){}c.prototype=b.prototype;a.eb=b.prototype;a.prototype=new c};var ha=window;function ia(a){Error.captureStackTrace?Error.captureStackTrace(this,ia):this.stack=Error().stack||"";a&&(this.message=String(a))}w(ia,Error);ia.prototype.name="CustomError";function ja(a,b){for(var c=1;c(0==
aa[1].length?0:parseInt(aa[1],10))?1:0)||((0==U[2].length)<(0==aa[2].length)?-1:(0==U[2].length)>(0==aa[2].length)?1:0)||(U[2]aa[2]?1:0)}while(0==c)}return c}function la(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};function ma(a,b){b.unshift(a);ia.call(this,ja.apply(m,b));b.shift();this.Va=a}w(ma,ia);ma.prototype.name="AssertionError";function na(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),f=d;else a&&(e+=": "+a,f=b);h(new ma(""+e,f||[]))}function oa(a,b,c){a||na("",m,b,Array.prototype.slice.call(arguments,2))}function pa(a,b,c){ea(a)||na("Expected object but got %s: %s.",[ca(a),a],b,Array.prototype.slice.call(arguments,2))};var qa=Array.prototype;function ra(a,b){if(v(a))return!v(b)||1!=b.length?-1:a.indexOf(b,0);for(var c=0;cc?m:v(a)?a.charAt(c):a[c]}function xa(a){return qa.concat.apply(qa,arguments)}function ya(a,b,c){oa(a.length!=m);return 2>=arguments.length?qa.slice.call(a,b):qa.slice.call(a,b,c)};var za={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 Aa="background-color border-top-color border-right-color border-bottom-color border-left-color color outline-color".split(" "),Ba=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/;function Ca(a){Da.test(a)||h(Error("'"+a+"' is not a valid hex color"));4==a.length&&(a=a.replace(Ba,"#$1$1$2$2$3$3"));return a.toLowerCase()}var Da=/^#(?:[0-9a-f]{3}){1,2}$/i,Ea=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i;
function Fa(a){var b=a.match(Ea);if(b){a=Number(b[1]);var 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 Ga=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function Ha(a){var b=a.match(Ga);if(b){a=Number(b[1]);var 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 Ia(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=Ja[a]||Ja[13];var c=Error(this.message);c.name=this.name;this.stack=c.stack||""}w(y,Error);
var Ja={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 Ka,La;function Ma(){return s.navigator?s.navigator.userAgent:m}var A=n,B=n,D=n,Na,Oa=s.navigator;Na=Oa&&Oa.platform||"";Ka=-1!=Na.indexOf("Mac");La=-1!=Na.indexOf("Win");var Pa=-1!=Na.indexOf("Linux");function Qa(){var a=s.document;return a?a.documentMode:k}var Ra;
a:{var Sa="",Ta;if(A&&s.opera)var Ua=s.opera.version,Sa="function"==typeof Ua?Ua():Ua;else if(D?Ta=/rv\:([^\);]+)(\)|;)/:B?Ta=/MSIE\s+([^\);]+)(\)|;)/:Ta=/WebKit\/(\S+)/,Ta)var Va=Ta.exec(Ma()),Sa=Va?Va[1]:"";if(B){var Wa=Qa();if(Wa>parseFloat(Sa)){Ra=String(Wa);break a}}Ra=Sa}var Xa={};function Ya(a){return Xa[a]||(Xa[a]=0<=ka(Ra,a))}function E(a){return B&&Za>=a}var $a=s.document,Za=!$a||!B?k:Qa()||("CSS1Compat"==$a.compatMode?parseInt(Ra,10):5);var ab;!D&&!B||B&&E(9)||D&&Ya("1.9.1");B&&Ya("9");var bb="BODY";function F(a,b){this.x=u(a)?a:0;this.y=u(b)?b:0}F.prototype.toString=function(){return"("+this.x+", "+this.y+")"};function cb(a,b){this.width=a;this.height=b}r=cb.prototype;r.toString=function(){return"("+this.width+" x "+this.height+")"};r.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};r.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};r.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};r.scale=function(a){this.width*=a;this.height*=a;return this};var db=3;function eb(a){return a?new fb(G(a)):ab||(ab=new fb)}function gb(a){var b=a.body;a=a.parentWindow||a.defaultView;return new F(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function hb(a){return a?a.parentWindow||a.defaultView:window}function ib(a){for(;a&&1!=a.nodeType;)a=a.previousSibling;return a}
function jb(a,b){if(a.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 kb(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if(B&&!E(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?lb(a,b):!c&&jb(e,b)?-1*mb(a,b):!d&&jb(f,a)?mb(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=G(a);c=d.createRange();
c.selectNode(a);c.collapse(l);d=d.createRange();d.selectNode(b);d.collapse(l);return c.compareBoundaryPoints(s.Range.START_TO_END,d)}function mb(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return lb(d,a)}function lb(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 nb(a,b){var c=[];return ob(a,b,c,l)?c[0]:k}
function ob(a,b,c,d){if(a!=m)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||ob(a,b,c,d))return l;a=a.nextSibling}return n}var pb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},qb={IMG:" ",BR:"\n"};function rb(a,b,c){if(!(a.nodeName in pb))if(a.nodeType==db)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in qb)b.push(qb[a.nodeName]);else for(a=a.firstChild;a;)rb(a,b,c),a=a.nextSibling}
function sb(a,b,c){c||(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return m}function fb(a){this.K=a||s.document||document}fb.prototype.n=function(a){return v(a)?this.K.getElementById(a):a};function tb(a){return a.K.body}fb.prototype.contains=jb;var ub,vb,wb,xb,yb,zb,Ab;Ab=zb=yb=xb=wb=vb=ub=n;var Bb=Ma();Bb&&(-1!=Bb.indexOf("Firefox")?ub=l:-1!=Bb.indexOf("Camino")?vb=l:-1!=Bb.indexOf("iPhone")||-1!=Bb.indexOf("iPod")?wb=l:-1!=Bb.indexOf("iPad")?xb=l:-1!=Bb.indexOf("Android")?yb=l:-1!=Bb.indexOf("Chrome")?zb=l:-1!=Bb.indexOf("Safari")&&(Ab=l));var Cb=A,Db=B,Eb=ub,Fb=vb,Gb=wb,Hb=xb,Ib=yb,Jb=zb,Kb=Ab;function Lb(a,b,c){this.g=a;this.Ja=b||1;this.t=c||1};var Mb=B&&!E(9),Nb=B&&!E(8);function Ob(a,b,c,d,e){this.g=a;this.nodeName=c;this.nodeValue=d;this.nodeType=2;this.ownerElement=b;this.bb=e;this.parentNode=b}function Pb(a,b,c){var d=Nb&&"href"==b.nodeName?a.getAttribute(b.nodeName,2):b.nodeValue;return new Ob(b,a,b.nodeName,d,c)};function Qb(a){this.fa=a;this.T=0}function Rb(a){a=a.match(Sb);for(var b=0;b]=|\\s+|.","g"),Tb=/^\s/;function H(a,b){return a.fa[a.T+(b||0)]}Qb.prototype.next=function(){return this.fa[this.T++]};Qb.prototype.back=function(){this.T--};Qb.prototype.empty=function(){return this.fa.length<=this.T};function I(a){var b=m,c=a.nodeType;1==c&&(b=a.textContent,b=b==k||b==m?a.innerText:b,b=b==k||b==m?"":b);if("string"!=typeof b)if(Mb&&"title"==a.nodeName.toLowerCase()&&1==c)b=a.text;else if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;for(var c=0,d=[],b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),Mb&&"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 Ub(a,b,c){if(b===m)return l;try{if(!a.getAttribute)return n}catch(d){return n}Nb&&"class"==b&&(b="className");return c==m?!!a.getAttribute(b):a.getAttribute(b,2)==c}function Vb(a,b,c,d,e){return(Mb?Wb:Xb).call(m,a,b,v(c)?c:m,v(d)?d:m,e||new J)}
function Wb(a,b,c,d,e){if(a instanceof Yb||8==a.d||c&&a.d===m){var f=b.all;if(!f)return e;a=Zb(a);if("*"!=a&&(f=b.getElementsByTagName(a),!f))return e;if(c){for(var g=[],p=0;b=f[p++];)Ub(b,c,d)&&g.push(b);f=g}for(p=0;b=f[p++];)("*"!=a||"!"!=b.tagName)&&e.add(b);return e}$b(a,b,c,d,e);return e}
function Xb(a,b,c,d,e){b.getElementsByName&&d&&"name"==c&&!B?(b=b.getElementsByName(d),x(b,function(b){a.matches(b)&&e.add(b)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),x(b,function(b){b.className==d&&a.matches(b)&&e.add(b)})):a instanceof K?$b(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),x(b,function(a){Ub(a,c,d)&&e.add(a)}));return e}
function ac(a,b,c,d,e){var f;if((a instanceof Yb||8==a.d||c&&a.d===m)&&(f=b.childNodes)){var g=Zb(a);if("*"!=g&&(f=sa(f,function(a){return a.tagName&&a.tagName.toLowerCase()==g}),!f))return e;c&&(f=sa(f,function(a){return Ub(a,c,d)}));x(f,function(a){("*"!=g||"!"!=a.tagName&&!("*"==g&&1!=a.nodeType))&&e.add(a)});return e}return bc(a,b,c,d,e)}function bc(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)Ub(b,c,d)&&a.matches(b)&&e.add(b);return e}
function $b(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)Ub(b,c,d)&&a.matches(b)&&e.add(b),$b(a,b,c,d,e)}function Zb(a){if(a instanceof K){if(8==a.d)return"!";if(a.d===m)return"*"}return a.getName()};function J(){this.t=this.k=m;this.M=0}function cc(a){this.v=a;this.next=this.G=m}function dc(a,b){if(a.k){if(!b.k)return a}else return b;for(var c=a.k,d=b.k,e=m,f=m,g=0;c&&d;)c.v==d.v||c.v instanceof Ob&&d.v instanceof Ob&&c.v.g==d.v.g?(f=c,c=c.next,d=d.next):0",4,2,function(a,b,c){return nc(function(a,b){return a>b},a,b,c)});O("<=",4,2,function(a,b,c){return nc(function(a,b){return a<=b},a,b,c)});O(">=",4,2,function(a,b,c){return nc(function(a,b){return a>=b},a,b,c)});var mc=O("=",3,2,function(a,b,c){return nc(function(a,b){return a==b},a,b,c,l)});O("!=",3,2,function(a,b,c){return nc(function(a,b){return a!=b},a,b,c,l)});O("and",2,2,function(a,b,c){return kc(a,c)&&kc(b,c)});O("or",1,2,function(a,b,c){return kc(a,c)||kc(b,c)});function qc(a,b){b.w()&&4!=a.j&&h(Error("Primary expression must evaluate to nodeset if filter has predicate(s)."));L.call(this,a.j);this.ra=a;this.e=b;this.A=a.h();this.m=a.m}w(qc,L);qc.prototype.evaluate=function(a){a=this.ra.evaluate(a);return rc(this.e,a)};qc.prototype.toString=function(a){a=a||"";var b=a+"Filter: \n";a+=" ";b+=this.ra.toString(a);return b+=this.e.toString(a)};function sc(a,b){b.lengtha.ca&&h(Error("Function "+a.p+" expects at most "+a.ca+" arguments, "+b.length+" given"));a.Ha&&x(b,function(b,d){4!=b.j&&h(Error("Argument "+d+" to function "+a.p+" is not of type Nodeset: "+b))});L.call(this,a.j);this.S=a;this.Y=b;ic(this,a.A||va(b,function(a){return a.h()}));jc(this,a.Fa&&!b.length||a.Ea&&!!b.length||va(b,function(a){return a.m}))}w(sc,L);
sc.prototype.evaluate=function(a){return this.S.u.apply(m,xa(a,this.Y))};sc.prototype.toString=function(a){var b=a||"";a=b+"Function: "+this.S+"\n";b+=" ";this.Y.length&&(a+=b+"Arguments:",b+=" ",a=ua(this.Y,function(a,d){return a+"\n"+d.toString(b)},a));return a};function tc(a,b,c,d,e,f,g,p,z){this.p=a;this.j=b;this.A=c;this.Fa=d;this.Ea=e;this.u=f;this.oa=g;this.ca=u(p)?p:g;this.Ha=!!z}tc.prototype.toString=q("p");var uc={};
function P(a,b,c,d,e,f,g,p){a in uc&&h(Error("Function already created: "+a+"."));uc[a]=new tc(a,b,c,d,n,e,f,g,p)}P("boolean",2,n,n,function(a,b){return kc(b,a)},1);P("ceiling",1,n,n,function(a,b){return Math.ceil(M(b,a))},1);P("concat",3,n,n,function(a,b){var c=ya(arguments,1);return ua(c,function(b,c){return b+N(c,a)},"")},2,m);P("contains",2,n,n,function(a,b,c){b=N(b,a);a=N(c,a);return-1!=b.indexOf(a)},2);P("count",1,n,n,function(a,b){return b.evaluate(a).w()},1,1,l);P("false",2,n,n,ba(n),0);
P("floor",1,n,n,function(a,b){return Math.floor(M(b,a))},1);P("id",4,n,n,function(a,b){function c(a){if(Mb){var b=e.all[a];if(b){if(b.nodeType&&a==b.id)return b;if(b.length)return wa(b,function(b){return a==b.id})}return m}return e.getElementById(a)}var d=a.g,e=9==d.nodeType?d:d.ownerDocument,d=N(b,a).split(/\s+/),f=[];x(d,function(a){(a=c(a))&&!(0<=ra(f,a))&&f.push(a)});f.sort(kb);var g=new J;x(f,function(a){g.add(a)});return g},1);P("lang",2,n,n,ba(n),1);
P("last",1,l,n,function(a){1!=arguments.length&&h(Error("Function last expects ()"));return a.t},0);P("local-name",3,n,l,function(a,b){var c=b?ec(b.evaluate(a)):a.g;return c?c.nodeName.toLowerCase():""},0,1,l);P("name",3,n,l,function(a,b){var c=b?ec(b.evaluate(a)):a.g;return c?c.nodeName.toLowerCase():""},0,1,l);P("namespace-uri",3,l,n,ba(""),0,1,l);P("normalize-space",3,n,l,function(a,b){return(b?N(b,a):I(a.g)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);
P("not",2,n,n,function(a,b){return!kc(b,a)},1);P("number",1,n,l,function(a,b){return b?M(b,a):+I(a.g)},0,1);P("position",1,l,n,function(a){return a.Ja},0);P("round",1,n,n,function(a,b){return Math.round(M(b,a))},1);P("starts-with",2,n,n,function(a,b,c){b=N(b,a);a=N(c,a);return 0==b.lastIndexOf(a,0)},2);P("string",3,n,l,function(a,b){return b?N(b,a):I(a.g)},0,1);P("string-length",1,n,l,function(a,b){return(b?N(b,a):I(a.g)).length},0,1);
P("substring",3,n,n,function(a,b,c,d){c=M(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?M(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=N(b,a);if(Infinity==d)return a.substring(e);b=Math.round(d);return a.substring(e,c+b)},2,3);P("substring-after",3,n,n,function(a,b,c){b=N(b,a);a=N(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
P("substring-before",3,n,n,function(a,b,c){b=N(b,a);a=N(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);P("sum",1,n,n,function(a,b){for(var c=gc(b.evaluate(a)),d=0,e=c.next();e;e=c.next())d+=+I(e);return d},1,1,l);P("translate",3,n,n,function(a,b,c,d){b=N(b,a);c=N(c,a);var e=N(d,a);a=[];for(d=0;da.length&&h(Error("Unclosed literal string"));return new wc(a)}function Uc(a){return"*"!=H(a.a)&&":"==H(a.a,1)&&"*"==H(a.a,2)?new Yb(a.a.next()+a.a.next()+a.a.next()):new Yb(a.a.next())}
function Vc(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 Ac;d=new Ac;R(a,"Missing next location step.");b=Wc(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=Pc(a);R(a,'unclosed "("');Rc(a,")");break;case '"':case "'":b=Tc(a);break;default:if(isNaN(+b))if(!vc(b)&&/(?![0-9])[\w]/.test(d)&&
"("==H(a.a,1)){b=a.a.next();b=uc[b]||m;a.a.next();for(d=[];")"!=H(a.a);){R(a,"Missing function argument list.");d.push(Pc(a));if(","!=H(a.a))break;a.a.next()}R(a,"Unclosed function argument list.");Sc(a);b=new sc(b,d)}else{b=m;break a}else b=new xc(+a.a.next())}"["==H(a.a)&&(d=new Ec(Xc(a)),b=new qc(b,d))}if(b)if("/"==H(a.a)||"//"==H(a.a))d=b;else return b;else b=Wc(a,"/"),d=new Bc,c.push(b)}for(;"/"==H(a.a)||"//"==H(a.a);)b=a.a.next(),R(a,"Missing next location step."),b=Wc(a,b),c.push(b);return new yc(d,
c)}
function Wc(a,b){var c,d,e;"/"!=b&&"//"!=b&&h(Error('Step op should be "/" or "//"'));if("."==H(a.a))return d=new Fc(Lc,new K("node")),a.a.next(),d;if(".."==H(a.a))return d=new Fc(Kc,new K("node")),a.a.next(),d;var f;"@"==H(a.a)?(f=zc,a.a.next(),R(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=Jc[e]||m)||h(Error("No axis with name: "+e)),a.a.next(),R(a,"Missing node name")):f=Gc;e=H(a.a);if(/(?![0-9])[\w]/.test(e.charAt(0)))if("("==H(a.a,
1)){vc(e)||h(Error("Invalid node type: "+e));c=a.a.next();vc(c)||h(Error("Invalid type name: "+c));Rc(a,"(");R(a,"Bad nodetype");e=H(a.a).charAt(0);var g=m;if('"'==e||"'"==e)g=Tc(a);R(a,"Bad nodetype");Sc(a);c=new K(c,g)}else c=Uc(a);else"*"==e?c=Uc(a):h(Error("Bad token: "+a.a.next()));e=new Ec(Xc(a),f.H);return d||new Fc(f,c,e,"//"==b)}
function Xc(a){for(var b=[];"["==H(a.a);){a.a.next();R(a,"Missing predicate expression.");var c=Pc(a);b.push(c);R(a,"Unclosed predicate expression.");Rc(a,"]")}return b}function Qc(a){if("-"==H(a.a))return a.a.next(),new Mc(Qc(a));var b=Vc(a);if("|"!=H(a.a))a=b;else{for(b=[b];"|"==a.a.next();)R(a,"Missing next union location path."),b.push(Vc(a));a.a.back();a=new Nc(b)}return a};function Yc(a){a.length||h(Error("Empty XPath expression."));a=Rb(a);a.empty()&&h(Error("Invalid XPath expression."));var b=Pc(new Oc(a));a.empty()||h(Error("Bad token: "+a.next()));this.evaluate=function(a,d){var e=b.evaluate(new Lb(a));return new S(e,d)}}
function S(a,b){0==b&&(a instanceof J?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 J))&&h(Error("document.evaluate called with wrong result type."));this.resultType=b;var c;switch(b){case 2:this.stringValue=a instanceof J?fc(a):""+a;break;case 1:this.numberValue=a instanceof J?+fc(a):+a;break;case 3:this.booleanValue=a instanceof J?0=c.length?m:c[f++]};this.snapshotItem=function(a){6!=b&&7!=b&&h(Error("snapshotItem called with wrong result type."));return a>=c.length||0>a?m:c[a]}}
S.ANY_TYPE=0;S.NUMBER_TYPE=1;S.STRING_TYPE=2;S.BOOLEAN_TYPE=3;S.UNORDERED_NODE_ITERATOR_TYPE=4;S.ORDERED_NODE_ITERATOR_TYPE=5;S.UNORDERED_NODE_SNAPSHOT_TYPE=6;S.ORDERED_NODE_SNAPSHOT_TYPE=7;S.ANY_UNORDERED_NODE_TYPE=8;S.FIRST_ORDERED_NODE_TYPE=9;function Zc(a){a=a||s;var b=a.document;b.evaluate||(a.XPathResult=S,b.evaluate=function(a,b,e,f){return(new Yc(a)).evaluate(b,f)},b.createExpression=function(a){return new Yc(a)})};var T={};T.xa=function(){var a={fb:"http://www.w3.org/2000/svg"};return function(b){return a[b]||m}}();T.u=function(a,b,c){var d=G(a);(B||Ib)&&Zc(hb(d));try{var e=d.createNSResolver?d.createNSResolver(d.documentElement):T.xa;return B&&!Ya(7)?d.evaluate.call(d,b,a,e,c,m):d.evaluate(b,a,e,c,m)}catch(f){D&&"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))}};
T.Z=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."))};T.La=function(a,b){var c=function(){var c=T.u(b,a,9);return c?(c=c.singleNodeValue,A?c:c||m):b.selectSingleNode?(c=G(b),c.setProperty&&c.setProperty("SelectionLanguage","XPath"),b.selectSingleNode(a)):m}();c===m||T.Z(c,a);return c};
T.Ua=function(a,b){var c=function(){var c=T.u(b,a,7);if(c){var e=c.snapshotLength;A&&!u(e)&&T.Z(m,a);for(var f=[],g=0;g=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 pd(a,b){var c=G(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,m))?c[b]||c.getPropertyValue(b)||"":""}function qd(a,b){return pd(a,b)||(a.currentStyle?a.currentStyle[b]:m)||a.style&&a.style[b]}function rd(a){a=a?G(a):document;var b;if(b=B)if(b=!E(9))b="CSS1Compat"!=eb(a).K.compatMode;return b?a.body:a.documentElement}
function sd(a){var b=a.getBoundingClientRect();B&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function td(a){if(B&&!E(8))return a.offsetParent;var b=G(a),c=qd(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=qd(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 m}
function ud(a){var b,c=G(a),d=qd(a,"position");pa(a,"Parameter is required");var e=D&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new F(0,0),g=rd(c);if(a==g)return f;if(a.getBoundingClientRect)b=sd(a),a=eb(c),a=gb(a.K),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("fixed"==qd(b,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(A||"absolute"==d)f.y-=c.body.offsetTop;for(b=a;(b=td(b))&&b!=c.body&&b!=g;)if(f.x-=b.scrollLeft,!A||"TR"!=b.tagName)f.y-=b.scrollTop}return f}
function vd(a){var b=new F;if(1==a.nodeType){if(a.getBoundingClientRect){var c=sd(a);b.x=c.left;b.y=c.top}else{var c=eb(a),c=gb(c.K),d=ud(a);b.x=d.x-c.x;b.y=d.y-c.y}if(D&&!Ya(12)){var e;B?e="-ms-transform":e="-webkit-transform";var f;e&&(f=qd(a,e));f||(f=qd(a,"transform"));f?(a=f.match(wd),a=!a?new F(0,0):new F(parseFloat(a[1]),parseFloat(a[2]))):a=new F(0,0);b=new F(b.x+a.x,b.y+a.y)}}else e=da(a.ka),f=a,a.targetTouches?f=a.targetTouches[0]:e&&a.ka().targetTouches&&(f=a.ka().targetTouches[0]),b.x=
f.clientX,b.y=f.clientY;return b}function xd(a){if("none"!=qd(a,"display"))return yd(a);var b=a.style,c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=yd(a);b.display=c;b.position=e;b.visibility=d;return a}function yd(a){var b=a.offsetWidth,c=a.offsetHeight;return(!u(b)||!b&&!c)&&a.getBoundingClientRect?(a=sd(a),new cb(a.right-a.left,a.bottom-a.top)):new cb(b,c)}var zd={thin:2,medium:4,thick:6};
function Ad(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:m))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:m,d;if(c in zd)d=zd[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 wd=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Bd(a){var b;a:{a=G(a);try{b=a&&a.activeElement;break a}catch(c){}b=m}return b}function V(a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}function Cd(a){return Dd(a,l)&&Ed(a)&&!(B||A||D&&!dd("1.9.2")?0:"none"==W(a,"pointer-events"))}function Fd(a){return V(a,"OPTION")?l:V(a,"INPUT")?(a=a.type.toLowerCase(),"checkbox"==a||"radio"==a):n}function Gd(a,b){var c;if(c=kd)if(c="value"==b)if(c=V(a,"OPTION"))c=Hd(a,"value")===m;c?(c=[],rb(a,c,n),c=c.join("")):c=a[b];return c}
var Id=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/;function Jd(a){var b=[];x(a.split(Id),function(a){var d=a.indexOf(":");02*this.J&&Ce(this),l):n};
function Ce(a){if(a.J!=a.i.length){for(var b=0,c=0;b");Z(191,"/","?");Z(192,"`","~");Z(219,"[","{");Z(220,"\\","|");Z(221,"]","}");Z({b:59,c:186,opera:59},";",":");Z(222,"'",'"');var Ie=[Oe,Ne,Pe,Me],Qe=new Be;Qe.set(1,Me);Qe.set(2,Ne);Qe.set(4,Oe);Qe.set(8,Pe);var Je=function(a){var b=new Be;x(De(a),function(c){b.set(a.get(c).code,c)});return b}(Qe);He.prototype.o=function(a){return this.qa.contains(a)};D&&dd(12);function Re(a,b){Sd.call(this,b);this.R=this.r=m;this.s=new F(0,0);this.aa=this.N=n;if(a){this.r=a.Pa;try{V(a.Ba)&&(this.R=a.Ba)}catch(c){this.r=m}this.s=a.Qa;this.N=a.ab;this.aa=a.Ta;try{V(a.element)&&Td(this,a.element)}catch(d){this.r=m}}}w(Re,Sd);var $={};ld?($[ie]=[0,0,0,m],$[fe]=[m,m,0,m],$[je]=[1,4,2,m],$[Xd]=[0,0,0,0],$[ge]=[1,4,2,0]):($[ie]=[0,1,2,m],$[fe]=[m,m,2,m],$[je]=[0,1,2,m],$[Xd]=[0,1,2,0],$[ge]=[0,1,2,0]);md&&($[ye]=$[je],$[ze]=$[je],$[he]=[-1,-1,-1,-1],$[ee]=$[he],$[de]=$[he]);
$[we]=$[ie];$[xe]=$[je];$[Wd]=$[Xd];var Se={Wa:ye,Xa:he,Ya:ee,Za:de,$a:ze};Re.prototype.move=function(a,b){var c=Cd(a),d=vd(a);this.s.x=b.x+d.x;this.s.y=b.y+d.y;d=this.n();if(a!=d){try{hb(G(d)).closed&&(d=m)}catch(e){d=m}if(d){var f=d===ha.document.documentElement||d===ha.document.body,d=!this.aa&&f?m:d;Te(this,Xd,a)}Td(this,a);B||Te(this,Wd,d,m,c)}Te(this,ge,m,m,c);B&&a!=d&&Te(this,Wd,d,m,c);this.N=n};
function Te(a,b,c,d,e){a.aa=l;if(md){var f=Se[b];if(f&&!ce(a,f,a.s,Ue(a,f),1,MSPointerEvent.MSPOINTER_TYPE_MOUSE,l,c,e))return n}return Vd(a,b,a.s,Ue(a,b),c,d,e)}function Ue(a,b){if(!(b in $))return 0;var c=$[b][a.r===m?3:a.r];c===m&&h(new y(13,"Event does not permit the specified mouse button."));return c};function Ve(){Sd.call(this);this.s=new F(0,0);this.Q=new F(0,0)}w(Ve,Sd);r=Ve.prototype;r.Ca=n;r.ga=0;r.W=0;r.move=function(a,b,c){(!this.o()||md)&&Td(this,a);a=vd(a);this.s.x=b.x+a.x;this.s.y=b.y+a.y;u(c)&&(this.Q.x=c.x+a.x,this.Q.y=c.y+a.y);if(this.o())if(this.Ca=l,md){var d=We;d(this,this.s,this.ga,l);this.W&&d(this,this.Q,this.W,n)}else{b=be;this.o()||h(new y(13,"Should never fire event when touchscreen is not pressed."));var e;this.W&&(d=this.W,e=this.Q);$d(this,b,this.ga,this.s,d,e)}};r.o=function(){return!!this.ga};
function We(a,b,c,d){ce(a,he,b,-1,c,MSPointerEvent.MSPOINTER_TYPE_TOUCH,d);Vd(a,ge,b,0)};function Xe(a,b){this.x=a;this.y=b}w(Xe,F);Xe.prototype.scale=function(a){this.x*=a;this.y*=a;return this};Xe.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};function Ye(a){var b=xd(a);return 0