appium-remote-debugger
Version:
Appium proxy for Remote Debugger protocol
113 lines (108 loc) • 66.3 kB
JavaScript
function(){return (function(){var aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};function ba(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var ca=ba(this);
function da(a,b){if(b)a:{var c=ca;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&aa(c,a,{configurable:!0,writable:!0,value:b})}}function ea(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}
da("Symbol",function(a){function b(e){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c("jscomp_symbol_"+(e||"")+"_"+d++,e)}function c(e,f){this.a=e;aa(this,"description",{configurable:!0,writable:!0,value:f})}if(a)return a;c.prototype.toString=function(){return this.a};var d=0;return b});
da("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ca[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&aa(d.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(ea(this))}})}return a});function fa(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
function ha(a,b){a instanceof String&&(a+="");var c=0,d={next:function(){if(c<a.length){var e=c++;return{value:b(e,a[e]),done:!1}}d.next=function(){return{done:!0,value:void 0}};return d.next()}};d[Symbol.iterator]=function(){return d};return d}da("Array.prototype.keys",function(a){return a?a:function(){return ha(this,function(b){return b})}});var ia=this||self;function ja(a){return void 0!==a}function ka(a){return"string"==typeof a}
function la(a,b){a=a.split(".");var c=ia;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b}
function ma(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function na(a){var b=ma(a);return"array"==b||"object"==b&&"number"==typeof a.length}function oa(a){return"function"==ma(a)}function pa(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}var qa="closure_uid_"+(1E9*Math.random()>>>0),ra=0;function sa(a,b,c){return a.call.apply(a.bind,arguments)}
function ta(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}function ua(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ua=sa:ua=ta;return ua.apply(null,arguments)}
function va(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}}var wa=Date.now||function(){return+new Date};function h(a,b){function c(){}c.prototype=b.prototype;a.J=b.prototype;a.prototype=new c;a.prototype.constructor=a}
function xa(a,b,c){var d=arguments.callee.caller;if("undefined"!==typeof d.J){for(var e=Array(arguments.length-1),f=1;f<arguments.length;f++)e[f-1]=arguments[f];d.J.constructor.apply(a,e)}else{if("string"!=typeof b&&"symbol"!=typeof b)throw Error("method names provided to goog.base must be a string or a symbol");e=Array(arguments.length-2);for(f=2;f<arguments.length;f++)e[f-2]=arguments[f];f=!1;for(var g=a.constructor.prototype;g;g=Object.getPrototypeOf(g))if(g[b]===d)f=!0;else if(f){g[b].apply(a,
e);return}if(a[b]===d)a.constructor.prototype[b].apply(a,e);else throw Error("goog.base called from a method of one name to a method of a different name");}};/*
The MIT License
Copyright (c) 2007 Cybozu Labs, Inc.
Copyright (c) 2012 Google Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
*/
function ya(a,b,c){this.a=a;this.b=b||1;this.f=c||1};var za=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},m=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Aa=Array.prototype.map?function(a,b){return Array.prototype.map.call(a,
b,void 0)}:function(a,b){for(var c=a.length,d=Array(c),e="string"===typeof a?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a));return d},Ba=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;m(a,function(e,f){d=b.call(void 0,d,e,f,a)});return d},Ca=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,
d[e],e,a))return!0;return!1},Da=Array.prototype.every?function(a,b){return Array.prototype.every.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&!b.call(void 0,d[e],e,a))return!1;return!0};function Ea(a){return Array.prototype.concat.apply([],arguments)}function Fa(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};var Ga=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};
function Ha(a,b){var c=0;a=Ga(String(a)).split(".");b=Ga(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",g=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];if(0==f[0].length&&0==g[0].length)break;c=Ia(0==f[1].length?0:parseInt(f[1],10),0==g[1].length?0:parseInt(g[1],10))||Ia(0==f[2].length,0==g[2].length)||Ia(f[2],g[2]);f=f[3];g=g[3]}while(0==c)}return c}function Ia(a,b){return a<b?-1:a>b?1:0};var Ja;a:{var Ka=ia.navigator;if(Ka){var La=Ka.userAgent;if(La){Ja=La;break a}}Ja=""}function n(a){return-1!=Ja.indexOf(a)};function Ma(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function Na(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function Oa(a,b){return null!==a&&b in a}function Pa(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};function Qa(){return n("Firefox")||n("FxiOS")}function Ra(){return(n("Chrome")||n("CriOS"))&&!n("Edge")};function Sa(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};function Ta(){return n("iPhone")&&!n("iPod")&&!n("iPad")};function Ua(a){var b=Va;return Object.prototype.hasOwnProperty.call(b,534)?b[534]:b[534]=a(534)};var Wa=n("Macintosh"),Xa=n("Windows"),Ya,Za="",$a=/WebKit\/(\S+)/.exec(Ja);$a&&(Za=$a?$a[1]:"");Ya=Za;var Va={};function ab(){return Ua(function(){return 0<=Ha(Ya,534)})};function bb(a){this.b=a;this.a=0}function cb(a){a=a.match(db);for(var b=0;b<a.length;b++)eb.test(a[b])&&a.splice(b,1);return new bb(a)}var db=/\$?(?:(?![0-9-\.])(?:\*|[\w-\.]+):)?(?![0-9-\.])(?:\*|[\w-\.]+)|\/\/|\.\.|::|\d+(?:\.\d*)?|\.\d+|"[^"]*"|'[^']*'|[!<>]=|\s+|./g,eb=/^\s/;function q(a,b){return a.b[a.a+(b||0)]}bb.prototype.next=function(){return this.b[this.a++]};function fb(a){return a.b.length<=a.a};function u(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}u.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};u.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};u.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};u.prototype.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};function gb(a,b){this.width=a;this.height=b}gb.prototype.aspectRatio=function(){return this.width/this.height};gb.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};gb.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};gb.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
gb.prototype.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};function hb(a){return a?a.parentWindow||a.defaultView:window}function ib(a){for(;a&&1!=a.nodeType;)a=a.previousSibling;return a}function jb(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}
function kb(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=1==a.nodeType,d=1==b.nodeType;if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,f=b.parentNode;return e==f?lb(a,b):!c&&jb(e,b)?-1*mb(a,b):!d&&jb(f,a)?mb(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=v(a);c=d.createRange();c.selectNode(a);c.collapse(!0);a=d.createRange();a.selectNode(b);
a.collapse(!0);return c.compareBoundaryPoints(ia.Range.START_TO_END,a)}function mb(a,b){var c=a.parentNode;if(c==b)return-1;for(;b.parentNode!=c;)b=b.parentNode;return lb(b,a)}function lb(a,b){for(;b=b.previousSibling;)if(b==a)return-1;return 1}function v(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function nb(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null}
function ob(a){try{var b=a&&a.activeElement;return b&&b.nodeName?b:null}catch(c){return null}}function pb(a){this.a=a||ia.document||document}pb.prototype.getElementsByTagName=function(a,b){return(b||this.a).getElementsByTagName(String(a))};function w(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:b,b=void 0==b||null==b?"":b);if("string"!=typeof b)if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;c=0;var d=[];for(b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return b}
function qb(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function rb(a,b,c,d,e){return sb.call(null,a,b,ka(c)?c:null,ka(d)?d:null,e||new y)}
function sb(a,b,c,d,e){b.getElementsByName&&d&&"name"==c?(b=b.getElementsByName(d),m(b,function(f){a.a(f)&&e.add(f)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),m(b,function(f){f.className==d&&a.a(f)&&e.add(f)})):a instanceof tb?ub(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.f()),m(b,function(f){qb(f,c,d)&&e.add(f)}));return e}function ub(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)qb(b,c,d)&&a.a(b)&&e.add(b),ub(a,b,c,d,e)};function y(){this.b=this.a=null;this.s=0}function vb(a){this.b=a;this.next=this.a=null}function wb(a,b){if(!a.a)return b;if(!b.a)return a;var c=a.a;b=b.a;for(var d=null,e,f=0;c&&b;)c.b==b.b?(e=c,c=c.next,b=b.next):0<kb(c.b,b.b)?(e=b,b=b.next):(e=c,c=c.next),(e.a=d)?d.next=e:a.a=e,d=e,f++;for(e=c||b;e;)e.a=d,d=d.next=e,f++,e=e.next;a.b=d;a.s=f;return a}function xb(a,b){b=new vb(b);b.next=a.a;a.b?a.a.a=b:a.a=a.b=b;a.a=b;a.s++}
y.prototype.add=function(a){a=new vb(a);a.a=this.b;this.a?this.b.next=a:this.a=this.b=a;this.b=a;this.s++};function yb(a){return(a=a.a)?a.b:null}function zb(a){return(a=yb(a))?w(a):""}function Ab(a,b){return new Bb(a,!!b)}function Bb(a,b){this.f=a;this.b=(this.A=b)?a.b:a.a;this.a=null}Bb.prototype.next=function(){var a=this.b;if(null==a)return null;var b=this.a=a;this.b=this.A?a.a:a.next;return b.b};function A(a){this.l=a;this.b=this.j=!1;this.f=null}function B(a){return"\n "+a.toString().split("\n").join("\n ")}function Cb(a,b){a.j=b}function Db(a,b){a.b=b}function C(a,b){a=a.a(b);return a instanceof y?+zb(a):+a}function D(a,b){a=a.a(b);return a instanceof y?zb(a):""+a}function Eb(a,b){a=a.a(b);return a instanceof y?!!a.s:!!a};function Fb(a,b,c){A.call(this,a.l);this.c=a;this.g=b;this.m=c;this.j=b.j||c.j;this.b=b.b||c.b;this.c==Gb&&(c.b||c.j||4==c.l||0==c.l||!b.f?b.b||b.j||4==b.l||0==b.l||!c.f||(this.f={name:c.f.name,B:b}):this.f={name:b.f.name,B:c})}h(Fb,A);
function Hb(a,b,c,d,e){b=b.a(d);c=c.a(d);var f;if(b instanceof y&&c instanceof y){b=Ab(b);for(d=b.next();d;d=b.next())for(e=Ab(c),f=e.next();f;f=e.next())if(a(w(d),w(f)))return!0;return!1}if(b instanceof y||c instanceof y){b instanceof y?(e=b,d=c):(e=c,d=b);f=Ab(e);for(var g=typeof d,k=f.next();k;k=f.next()){switch(g){case "number":k=+w(k);break;case "boolean":k=!!w(k);break;case "string":k=w(k);break;default:throw Error("Illegal primitive type for comparison.");}if(e==b&&a(k,d)||e==c&&a(d,k))return!0}return!1}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)}Fb.prototype.a=function(a){return this.c.v(this.g,this.m,a)};Fb.prototype.toString=function(){var a="Binary Expression: "+this.c;a+=B(this.g);return a+=B(this.m)};function Ib(a,b,c,d){this.N=a;this.I=b;this.l=c;this.v=d}Ib.prototype.toString=function(){return this.N};var Jb={};
function E(a,b,c,d){if(Jb.hasOwnProperty(a))throw Error("Binary operator already created: "+a);a=new Ib(a,b,c,d);return Jb[a.toString()]=a}E("div",6,1,function(a,b,c){return C(a,c)/C(b,c)});E("mod",6,1,function(a,b,c){return C(a,c)%C(b,c)});E("*",6,1,function(a,b,c){return C(a,c)*C(b,c)});E("+",5,1,function(a,b,c){return C(a,c)+C(b,c)});E("-",5,1,function(a,b,c){return C(a,c)-C(b,c)});E("<",4,2,function(a,b,c){return Hb(function(d,e){return d<e},a,b,c)});
E(">",4,2,function(a,b,c){return Hb(function(d,e){return d>e},a,b,c)});E("<=",4,2,function(a,b,c){return Hb(function(d,e){return d<=e},a,b,c)});E(">=",4,2,function(a,b,c){return Hb(function(d,e){return d>=e},a,b,c)});var Gb=E("=",3,2,function(a,b,c){return Hb(function(d,e){return d==e},a,b,c,!0)});E("!=",3,2,function(a,b,c){return Hb(function(d,e){return d!=e},a,b,c,!0)});E("and",2,2,function(a,b,c){return Eb(a,c)&&Eb(b,c)});E("or",1,2,function(a,b,c){return Eb(a,c)||Eb(b,c)});function Kb(a,b){if(b.a.length&&4!=a.l)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");A.call(this,a.l);this.c=a;this.g=b;this.j=a.j;this.b=a.b}h(Kb,A);Kb.prototype.a=function(a){a=this.c.a(a);return Lb(this.g,a)};Kb.prototype.toString=function(){var a="Filter:"+B(this.c);return a+=B(this.g)};function Mb(a,b){if(b.length<a.H)throw Error("Function "+a.o+" expects at least"+a.H+" arguments, "+b.length+" given");if(null!==a.F&&b.length>a.F)throw Error("Function "+a.o+" expects at most "+a.F+" arguments, "+b.length+" given");a.M&&m(b,function(c,d){if(4!=c.l)throw Error("Argument "+d+" to function "+a.o+" is not of type Nodeset: "+c);});A.call(this,a.l);this.C=a;this.c=b;Cb(this,a.j||Ca(b,function(c){return c.j}));Db(this,a.L&&!b.length||a.K&&!!b.length||Ca(b,function(c){return c.b}))}
h(Mb,A);Mb.prototype.a=function(a){return this.C.v.apply(null,Ea(a,this.c))};Mb.prototype.toString=function(){var a="Function: "+this.C;if(this.c.length){var b=Ba(this.c,function(c,d){return c+B(d)},"Arguments:");a+=B(b)}return a};function Nb(a,b,c,d,e,f,g,k){this.o=a;this.l=b;this.j=c;this.L=d;this.K=!1;this.v=e;this.H=f;this.F=ja(g)?g:f;this.M=!!k}Nb.prototype.toString=function(){return this.o};var Ob={};
function F(a,b,c,d,e,f,g,k){if(Ob.hasOwnProperty(a))throw Error("Function already created: "+a+".");Ob[a]=new Nb(a,b,c,d,e,f,g,k)}F("boolean",2,!1,!1,function(a,b){return Eb(b,a)},1);F("ceiling",1,!1,!1,function(a,b){return Math.ceil(C(b,a))},1);F("concat",3,!1,!1,function(a,b){return Ba(Fa(arguments,1),function(c,d){return c+D(d,a)},"")},2,null);F("contains",2,!1,!1,function(a,b,c){b=D(b,a);a=D(c,a);return-1!=b.indexOf(a)},2);F("count",1,!1,!1,function(a,b){return b.a(a).s},1,1,!0);
F("false",2,!1,!1,function(){return!1},0);F("floor",1,!1,!1,function(a,b){return Math.floor(C(b,a))},1);F("id",4,!1,!1,function(a,b){var c=a.a,d=9==c.nodeType?c:c.ownerDocument;a=D(b,a).split(/\s+/);var e=[];m(a,function(g){g=d.getElementById(g);!g||0<=za(e,g)||e.push(g)});e.sort(kb);var f=new y;m(e,function(g){f.add(g)});return f},1);F("lang",2,!1,!1,function(){return!1},1);F("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.f},0);
F("local-name",3,!1,!0,function(a,b){return(a=b?yb(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);F("name",3,!1,!0,function(a,b){return(a=b?yb(b.a(a)):a.a)?a.nodeName.toLowerCase():""},0,1,!0);F("namespace-uri",3,!0,!1,function(){return""},0,1,!0);F("normalize-space",3,!1,!0,function(a,b){return(b?D(b,a):w(a.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);F("not",2,!1,!1,function(a,b){return!Eb(b,a)},1);F("number",1,!1,!0,function(a,b){return b?C(b,a):+w(a.a)},0,1);
F("position",1,!0,!1,function(a){return a.b},0);F("round",1,!1,!1,function(a,b){return Math.round(C(b,a))},1);F("starts-with",2,!1,!1,function(a,b,c){b=D(b,a);a=D(c,a);return 0==b.lastIndexOf(a,0)},2);F("string",3,!1,!0,function(a,b){return b?D(b,a):w(a.a)},0,1);F("string-length",1,!1,!0,function(a,b){return(b?D(b,a):w(a.a)).length},0,1);
F("substring",3,!1,!1,function(a,b,c,d){c=C(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?C(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=D(b,a);return Infinity==d?a.substring(e):a.substring(e,c+Math.round(d))},2,3);F("substring-after",3,!1,!1,function(a,b,c){b=D(b,a);a=D(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
F("substring-before",3,!1,!1,function(a,b,c){b=D(b,a);a=D(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);F("sum",1,!1,!1,function(a,b){a=Ab(b.a(a));b=0;for(var c=a.next();c;c=a.next())b+=+w(c);return b},1,1,!0);F("translate",3,!1,!1,function(a,b,c,d){b=D(b,a);c=D(c,a);var e=D(d,a);a={};for(d=0;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);F("true",2,!1,!1,function(){return!0},0);function tb(a,b){this.g=a;this.c=ja(b)?b:null;this.b=null;switch(a){case "comment":this.b=8;break;case "text":this.b=3;break;case "processing-instruction":this.b=7;break;case "node":break;default:throw Error("Unexpected argument");}}function Pb(a){return"comment"==a||"text"==a||"processing-instruction"==a||"node"==a}tb.prototype.a=function(a){return null===this.b||this.b==a.nodeType};tb.prototype.f=function(){return this.g};
tb.prototype.toString=function(){var a="Kind Test: "+this.g;null===this.c||(a+=B(this.c));return a};function Qb(a){A.call(this,3);this.c=a.substring(1,a.length-1)}h(Qb,A);Qb.prototype.a=function(){return this.c};Qb.prototype.toString=function(){return"Literal: "+this.c};function Rb(a,b){this.o=a.toLowerCase();a="*"==this.o?"*":"http://www.w3.org/1999/xhtml";this.b=b?b.toLowerCase():a}Rb.prototype.a=function(a){var b=a.nodeType;if(1!=b&&2!=b)return!1;b=ja(a.localName)?a.localName:a.nodeName;return"*"!=this.o&&this.o!=b.toLowerCase()?!1:"*"==this.b?!0:this.b==(a.namespaceURI?a.namespaceURI.toLowerCase():"http://www.w3.org/1999/xhtml")};Rb.prototype.f=function(){return this.o};
Rb.prototype.toString=function(){return"Name Test: "+("http://www.w3.org/1999/xhtml"==this.b?"":this.b+":")+this.o};function Sb(a){A.call(this,1);this.c=a}h(Sb,A);Sb.prototype.a=function(){return this.c};Sb.prototype.toString=function(){return"Number: "+this.c};function Tb(a,b){A.call(this,a.l);this.g=a;this.c=b;this.j=a.j;this.b=a.b;1==this.c.length&&(a=this.c[0],a.u||a.c!=Ub||(a=a.m,"*"!=a.f()&&(this.f={name:a.f(),B:null})))}h(Tb,A);function Vb(){A.call(this,4)}h(Vb,A);Vb.prototype.a=function(a){var b=new y;a=a.a;9==a.nodeType?b.add(a):b.add(a.ownerDocument);return b};Vb.prototype.toString=function(){return"Root Helper Expression"};function Wb(){A.call(this,4)}h(Wb,A);Wb.prototype.a=function(a){var b=new y;b.add(a.a);return b};Wb.prototype.toString=function(){return"Context Helper Expression"};
function Xb(a){return"/"==a||"//"==a}Tb.prototype.a=function(a){var b=this.g.a(a);if(!(b instanceof y))throw Error("Filter expression must evaluate to nodeset.");a=this.c;for(var c=0,d=a.length;c<d&&b.s;c++){var e=a[c],f=Ab(b,e.c.A);if(e.j||e.c!=Yb)if(e.j||e.c!=Zb){var g=f.next();for(b=e.a(new ya(g));null!=(g=f.next());)g=e.a(new ya(g)),b=wb(b,g)}else g=f.next(),b=e.a(new ya(g));else{for(g=f.next();(b=f.next())&&(!g.contains||g.contains(b))&&b.compareDocumentPosition(g)&8;g=b);b=e.a(new ya(g))}}return b};
Tb.prototype.toString=function(){var a="Path Expression:"+B(this.g);if(this.c.length){var b=Ba(this.c,function(c,d){return c+B(d)},"Steps:");a+=B(b)}return a};function $b(a,b){this.a=a;this.A=!!b}
function Lb(a,b,c){for(c=c||0;c<a.a.length;c++)for(var d=a.a[c],e=Ab(b),f=b.s,g,k=0;g=e.next();k++){var l=a.A?f-k:k+1;g=d.a(new ya(g,l,f));if("number"==typeof g)l=l==g;else if("string"==typeof g||"boolean"==typeof g)l=!!g;else if(g instanceof y)l=0<g.s;else throw Error("Predicate.evaluate returned an unexpected type.");if(!l){l=e;g=l.f;var p=l.a;if(!p)throw Error("Next must be called at least once before remove.");var t=p.a;p=p.next;t?t.next=p:g.a=p;p?p.a=t:g.b=t;g.s--;l.a=null}}return b}
$b.prototype.toString=function(){return Ba(this.a,function(a,b){return a+B(b)},"Predicates:")};function ac(a,b,c,d){A.call(this,4);this.c=a;this.m=b;this.g=c||new $b([]);this.u=!!d;b=this.g;b=0<b.a.length?b.a[0].f:null;a.P&&b&&(this.f={name:b.name,B:b.B});a:{a=this.g;for(b=0;b<a.a.length;b++)if(c=a.a[b],c.j||1==c.l||0==c.l){a=!0;break a}a=!1}this.j=a}h(ac,A);
ac.prototype.a=function(a){var b=a.a,c=this.f,d=null,e=null,f=0;c&&(d=c.name,e=c.B?D(c.B,a):null,f=1);if(this.u)if(this.j||this.c!=bc)if(b=Ab((new ac(cc,new tb("node"))).a(a)),c=b.next())for(a=this.v(c,d,e,f);null!=(c=b.next());)a=wb(a,this.v(c,d,e,f));else a=new y;else a=rb(this.m,b,d,e),a=Lb(this.g,a,f);else a=this.v(a.a,d,e,f);return a};ac.prototype.v=function(a,b,c,d){a=this.c.C(this.m,a,b,c);return a=Lb(this.g,a,d)};
ac.prototype.toString=function(){var a="Step:"+B("Operator: "+(this.u?"//":"/"));this.c.o&&(a+=B("Axis: "+this.c));a+=B(this.m);if(this.g.a.length){var b=Ba(this.g.a,function(c,d){return c+B(d)},"Predicates:");a+=B(b)}return a};function dc(a,b,c,d){this.o=a;this.C=b;this.A=c;this.P=d}dc.prototype.toString=function(){return this.o};var ec={};function I(a,b,c,d){if(ec.hasOwnProperty(a))throw Error("Axis already created: "+a);b=new dc(a,b,c,!!d);return ec[a]=b}
I("ancestor",function(a,b){for(var c=new y;b=b.parentNode;)a.a(b)&&xb(c,b);return c},!0);I("ancestor-or-self",function(a,b){var c=new y;do a.a(b)&&xb(c,b);while(b=b.parentNode);return c},!0);
var Ub=I("attribute",function(a,b){var c=new y,d=a.f();if(b=b.attributes)if(a instanceof tb&&null===a.b||"*"==d)for(a=0;d=b[a];a++)c.add(d);else(d=b.getNamedItem(d))&&c.add(d);return c},!1),bc=I("child",function(a,b,c,d,e){c=ka(c)?c:null;d=ka(d)?d:null;e=e||new y;for(b=b.firstChild;b;b=b.nextSibling)qb(b,c,d)&&a.a(b)&&e.add(b);return e},!1,!0);I("descendant",rb,!1,!0);
var cc=I("descendant-or-self",function(a,b,c,d){var e=new y;qb(b,c,d)&&a.a(b)&&e.add(b);return rb(a,b,c,d,e)},!1,!0),Yb=I("following",function(a,b,c,d){var e=new y;do for(var f=b;f=f.nextSibling;)qb(f,c,d)&&a.a(f)&&e.add(f),e=rb(a,f,c,d,e);while(b=b.parentNode);return e},!1,!0);I("following-sibling",function(a,b){for(var c=new y;b=b.nextSibling;)a.a(b)&&c.add(b);return c},!1);I("namespace",function(){return new y},!1);
var fc=I("parent",function(a,b){var c=new y;if(9==b.nodeType)return c;if(2==b.nodeType)return c.add(b.ownerElement),c;b=b.parentNode;a.a(b)&&c.add(b);return c},!1),Zb=I("preceding",function(a,b,c,d){var e=new y,f=[];do f.unshift(b);while(b=b.parentNode);for(var g=1,k=f.length;g<k;g++){var l=[];for(b=f[g];b=b.previousSibling;)l.unshift(b);for(var p=0,t=l.length;p<t;p++)b=l[p],qb(b,c,d)&&a.a(b)&&e.add(b),e=rb(a,b,c,d,e)}return e},!0,!0);
I("preceding-sibling",function(a,b){for(var c=new y;b=b.previousSibling;)a.a(b)&&xb(c,b);return c},!0);var gc=I("self",function(a,b){var c=new y;a.a(b)&&c.add(b);return c},!1);function ic(a){A.call(this,1);this.c=a;this.j=a.j;this.b=a.b}h(ic,A);ic.prototype.a=function(a){return-C(this.c,a)};ic.prototype.toString=function(){return"Unary Expression: -"+B(this.c)};function jc(a){A.call(this,4);this.c=a;Cb(this,Ca(this.c,function(b){return b.j}));Db(this,Ca(this.c,function(b){return b.b}))}h(jc,A);jc.prototype.a=function(a){var b=new y;m(this.c,function(c){c=c.a(a);if(!(c instanceof y))throw Error("Path expression must evaluate to NodeSet.");b=wb(b,c)});return b};jc.prototype.toString=function(){return Ba(this.c,function(a,b){return a+B(b)},"Union Expression:")};function kc(a,b){this.a=a;this.b=b}function lc(a){for(var b,c=[];;){J(a,"Missing right hand side of binary expression.");b=mc(a);var d=a.a.next();if(!d)break;var e=(d=Jb[d]||null)&&d.I;if(!e){a.a.a--;break}for(;c.length&&e<=c[c.length-1].I;)b=new Fb(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new Fb(c.pop(),c.pop(),b);return b}function J(a,b){if(fb(a.a))throw Error(b);}function nc(a,b){a=a.a.next();if(a!=b)throw Error("Bad token, expected: "+b+" got: "+a);}
function oc(a){a=a.a.next();if(")"!=a)throw Error("Bad token: "+a);}function pc(a){a=a.a.next();if(2>a.length)throw Error("Unclosed literal string");return new Qb(a)}
function qc(a){var b=[];if(Xb(q(a.a))){var c=a.a.next();var d=q(a.a);if("/"==c&&(fb(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new Vb;d=new Vb;J(a,"Missing next location step.");c=rc(a,c);b.push(c)}else{a:{c=q(a.a);d=c.charAt(0);switch(d){case "$":throw Error("Variable reference not allowed in HTML XPath");case "(":a.a.next();c=lc(a);J(a,'unclosed "("');nc(a,")");break;case '"':case "'":c=pc(a);break;default:if(isNaN(+c))if(!Pb(c)&&/(?![0-9])[\w]/.test(d)&&"("==q(a.a,
1)){c=a.a.next();c=Ob[c]||null;a.a.next();for(d=[];")"!=q(a.a);){J(a,"Missing function argument list.");d.push(lc(a));if(","!=q(a.a))break;a.a.next()}J(a,"Unclosed function argument list.");oc(a);c=new Mb(c,d)}else{c=null;break a}else c=new Sb(+a.a.next())}"["==q(a.a)&&(d=new $b(sc(a)),c=new Kb(c,d))}if(c)if(Xb(q(a.a)))d=c;else return c;else c=rc(a,"/"),d=new Wb,b.push(c)}for(;Xb(q(a.a));)c=a.a.next(),J(a,"Missing next location step."),c=rc(a,c),b.push(c);return new Tb(d,b)}
function rc(a,b){if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==q(a.a)){var c=new ac(gc,new tb("node"));a.a.next();return c}if(".."==q(a.a))return c=new ac(fc,new tb("node")),a.a.next(),c;if("@"==q(a.a)){var d=Ub;a.a.next();J(a,"Missing attribute name")}else if("::"==q(a.a,1)){if(!/(?![0-9])[\w]/.test(q(a.a).charAt(0)))throw Error("Bad token: "+a.a.next());var e=a.a.next();d=ec[e]||null;if(!d)throw Error("No axis with name: "+e);a.a.next();J(a,"Missing node name")}else d=
bc;e=q(a.a);if(/(?![0-9])[\w\*]/.test(e.charAt(0)))if("("==q(a.a,1)){if(!Pb(e))throw Error("Invalid node type: "+e);e=a.a.next();if(!Pb(e))throw Error("Invalid type name: "+e);nc(a,"(");J(a,"Bad nodetype");var f=q(a.a).charAt(0),g=null;if('"'==f||"'"==f)g=pc(a);J(a,"Bad nodetype");oc(a);e=new tb(e,g)}else if(e=a.a.next(),f=e.indexOf(":"),-1==f)e=new Rb(e);else{g=e.substring(0,f);if("*"==g)var k="*";else if(k=a.b(g),!k)throw Error("Namespace prefix not declared: "+g);e=e.substr(f+1);e=new Rb(e,k)}else throw Error("Bad token: "+
a.a.next());a=new $b(sc(a),d.A);return c||new ac(d,e,a,"//"==b)}function sc(a){for(var b=[];"["==q(a.a);){a.a.next();J(a,"Missing predicate expression.");var c=lc(a);b.push(c);J(a,"Unclosed predicate expression.");nc(a,"]")}return b}function mc(a){if("-"==q(a.a))return a.a.next(),new ic(mc(a));var b=qc(a);if("|"!=q(a.a))a=b;else{for(b=[b];"|"==a.a.next();)J(a,"Missing next union location path."),b.push(qc(a));a.a.a--;a=new jc(b)}return a};function tc(a){switch(a.nodeType){case 1:return va(uc,a);case 9:return tc(a.documentElement);case 11:case 10:case 6:case 12:return vc;default:return a.parentNode?tc(a.parentNode):vc}}function vc(){return null}function uc(a,b){if(a.prefix==b)return a.namespaceURI||"http://www.w3.org/1999/xhtml";var c=a.getAttributeNode("xmlns:"+b);return c&&c.specified?c.value||null:a.parentNode&&9!=a.parentNode.nodeType?uc(a.parentNode,b):null};function wc(a,b){if(!a.length)throw Error("Empty XPath expression.");a=cb(a);if(fb(a))throw Error("Invalid XPath expression.");b?oa(b)||(b=ua(b.lookupNamespaceURI,b)):b=function(){return null};var c=lc(new kc(a,b));if(!fb(a))throw Error("Bad token: "+a.next());this.evaluate=function(d,e){d=c.a(new ya(d));return new K(d,e)}}
function K(a,b){if(0==b)if(a instanceof y)b=4;else if("string"==typeof a)b=2;else if("number"==typeof a)b=1;else if("boolean"==typeof a)b=3;else throw Error("Unexpected evaluation result.");if(2!=b&&1!=b&&3!=b&&!(a instanceof y))throw Error("value could not be converted to the specified type");this.resultType=b;switch(b){case 2:this.stringValue=a instanceof y?zb(a):""+a;break;case 1:this.numberValue=a instanceof y?+zb(a):+a;break;case 3:this.booleanValue=a instanceof y?0<a.s:!!a;break;case 4:case 5:case 6:case 7:var c=
Ab(a);var d=[];for(var e=c.next();e;e=c.next())d.push(e);this.snapshotLength=a.s;this.invalidIteratorState=!1;break;case 8:case 9:this.singleNodeValue=yb(a);break;default:throw Error("Unknown XPathResult type.");}var f=0;this.iterateNext=function(){if(4!=b&&5!=b)throw Error("iterateNext called with wrong result type");return f>=d.length?null:d[f++]};this.snapshotItem=function(g){if(6!=b&&7!=b)throw Error("snapshotItem called with wrong result type");return g>=d.length||0>g?null:d[g]}}K.ANY_TYPE=0;
K.NUMBER_TYPE=1;K.STRING_TYPE=2;K.BOOLEAN_TYPE=3;K.UNORDERED_NODE_ITERATOR_TYPE=4;K.ORDERED_NODE_ITERATOR_TYPE=5;K.UNORDERED_NODE_SNAPSHOT_TYPE=6;K.ORDERED_NODE_SNAPSHOT_TYPE=7;K.ANY_UNORDERED_NODE_TYPE=8;K.FIRST_ORDERED_NODE_TYPE=9;function xc(a){this.lookupNamespaceURI=tc(a)}
function yc(a,b){a=a||ia;var c=a.Document&&a.Document.prototype||a.document;if(!c.evaluate||b)a.XPathResult=K,c.evaluate=function(d,e,f,g){return(new wc(d,f)).evaluate(e,g)},c.createExpression=function(d,e){return new wc(d,e)},c.createNSResolver=function(d){return new xc(d)}}la("wgxpath.install",yc);la("wgxpath.install",yc);var zc=window;var Ac={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",
darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",
ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",
lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var Bc="backgroundColor borderTopColor borderRightColor borderBottomColor borderLeftColor color outlineColor".split(" "),Cc=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,Dc=/^#(?:[0-9a-f]{3}){1,2}$/i,Ec=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i,Fc=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function L(a,b){this.code=a;this.a=M[a]||Gc;this.message=b||"";a=this.a.replace(/((?:^|\s+)[a-z])/g,function(c){return c.toUpperCase().replace(/^[\s\xa0]+/g,"")});b=a.length-5;if(0>b||a.indexOf("Error",b)!=b)a+="Error";this.name=a;a=Error(this.message);a.name=this.name;this.stack=a.stack||""}h(L,Error);var Gc="unknown error",M={15:"element not selectable",11:"element not visible"};M[31]=Gc;M[30]=Gc;M[24]="invalid cookie domain";M[29]="invalid element coordinates";M[12]="invalid element state";
M[32]="invalid selector";M[51]="invalid selector";M[52]="invalid selector";M[17]="javascript error";M[405]="unsupported operation";M[34]="move target out of bounds";M[27]="no such alert";M[7]="no such element";M[8]="no such frame";M[23]="no such window";M[28]="script timeout";M[33]="session not created";M[10]="stale element reference";M[21]="timeout";M[25]="unable to set cookie";M[26]="unexpected alert open";M[13]=Gc;M[9]="unknown command";var Hc=Qa(),Ic=Ta()||n("iPod"),Jc=n("iPad"),Kc=n("Android")&&!(Ra()||Qa()||n("Opera")||n("Silk")),Lc=Ra(),Mc=n("Safari")&&!(Ra()||n("Coast")||n("Opera")||n("Edge")||n("Edg/")||n("OPR")||Qa()||n("Silk")||n("Android"))&&!(Ta()||n("iPad")||n("iPod"));function Nc(a){return(a=a.exec(Ja))?a[1]:""}var Oc=function(){if(Hc)return Nc(/Firefox\/([0-9.]+)/);if(Lc)return Ta()||n("iPad")||n("iPod")?Nc(/CriOS\/([0-9.]+)/):Nc(/Chrome\/([0-9.]+)/);if(Mc&&!(Ta()||n("iPad")||n("iPod")))return Nc(/Version\/([0-9.]+)/);if(Ic||Jc){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Ja);if(a)return a[1]+"."+a[2]}else if(Kc)return(a=Nc(/Android\s+([0-9.]+)/))?a:Nc(/Version\/([0-9.]+)/);return""}();function Pc(a){return Kc?0<=Ha(Qc,a):0<=Ha(Oc,a)}var Rc=Jc||Ic,Sc;if(Kc){var Tc=/Android\s+([0-9\.]+)/.exec(Ja);Sc=Tc?Tc[1]:"0"}else Sc="0";var Qc=Sc,Uc=10<=Number(void 0);function Vc(a){var b="tabindex";return"style"==b?Wc(a.style.cssText):(a=a.getAttributeNode(b))&&a.specified?a.value:null}var Xc=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/;function Wc(a){var b=[];m(a.split(Xc),function(c){var d=c.indexOf(":");0<d&&(c=[c.slice(0,d),c.slice(d+1)],2==c.length&&b.push(c[0].toLowerCase(),":",c[1],";"))});b=b.join("");return b=";"==b.charAt(b.length-1)?b:b+";"}
function N(a,b){b&&"string"!==typeof b&&(b=b.toString());return a instanceof HTMLFormElement?!!a&&1==a.nodeType&&(!b||"FORM"==b):!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}function Yc(a){return N(a,"OPTION")?!0:N(a,"INPUT")?(a=a.type.toLowerCase(),"checkbox"==a||"radio"==a):!1}function Zc(a){if(!Yc(a))throw new L(15,"Element is not selectable");var b="selected",c=a.type&&a.type.toLowerCase();if("checkbox"==c||"radio"==c)b="checked";return!!a[b]};var $c={O:function(a,b){oa(b.querySelector);if(!a)throw new L(32,"No selector specified");a=Ga(a);try{var c=b.querySelector(a)}catch(d){throw new L(32,"An invalid or illegal selector was specified");}return c&&1==c.nodeType?c:null},R:function(a,b){oa(b.querySelectorAll);if(!a)throw new L(32,"No selector specified");a=Ga(a);try{return b.querySelectorAll(a)}catch(c){throw new L(32,"An invalid or illegal selector was specified");}}};function ad(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}ad.prototype.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};ad.prototype.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
ad.prototype.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};ad.prototype.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};function O(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}O.prototype.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};O.prototype.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
O.prototype.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};O.prototype.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};function bd(a,b){var c=v(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""}function cd(a){var b=a.offsetWidth,c=a.offsetHeight;if((void 0===b||!b&&!c)&&a.getBoundingClientRect){a:{try{var d=a.getBoundingClientRect()}catch(e){a={left:0,top:0,right:0,bottom:0};break a}a=d}return new gb(a.right-a.left,a.bottom-a.top)}return new gb(b,c)};var dd="function"===typeof ShadowRoot;function ed(a){return fd(a)&&gd(a)&&"none"!=P(a,"pointer-events")}var hd="A AREA BUTTON INPUT LABEL SELECT TEXTAREA".split(" ");function id(a){return Ca(hd,function(b){return N(a,b)})||null!=Vc(a)&&0<=Number(a.tabIndex)||jd(a)}var kd="BUTTON INPUT OPTGROUP OPTION SELECT TEXTAREA".split(" ");
function gd(a){return Ca(kd,function(b){return N(a,b)})?a.disabled?!1:a.parentNode&&1==a.parentNode.nodeType&&N(a,"OPTGROUP")||N(a,"OPTION")?gd(a.parentNode):!nb(a,function(b){var c=b.parentNode;if(c&&N(c,"FIELDSET")&&c.disabled){if(!N(b,"LEGEND"))return!0;for(;b=void 0!==b.previousElementSibling?b.previousElementSibling:ib(b.previousSibling);)if(N(b,"LEGEND"))return!0}return!1},!0):!0}var ld="text search tel url email password number".split(" ");
function md(a,b){return N(a,"INPUT")?a.type.toLowerCase()==b:!1}function nd(a){function b(c){return"inherit"==c.contentEditable?(c=od(c))?b(c):!1:"true"==c.contentEditable}return ja(a.contentEditable)?ja(a.isContentEditable)?a.isContentEditable:b(a):!1}
function jd(a){return((N(a,"TEXTAREA")?!0:N(a,"INPUT")?0<=za(ld,a.type.toLowerCase()):nd(a)?!0:!1)||(N(a,"INPUT")?"file"==a.type.toLowerCase():!1)||md(a,"range")||md(a,"date")||md(a,"month")||md(a,"week")||md(a,"time")||md(a,"datetime-local")||md(a,"color"))&&!a.readOnly}function od(a){for(a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return N(a)?a:null}
function P(a,b){b=Sa(b);if("float"==b||"cssFloat"==b||"styleFloat"==b)b="cssFloat";a=bd(a,b)||pd(a,b);if(null===a)a=null;else if(0<=za(Bc,b)){b:{var c=a.match(Ec);if(c){b=Number(c[1]);var d=Number(c[2]),e=Number(c[3]);c=Number(c[4]);if(0<=b&&255>=b&&0<=d&&255>=d&&0<=e&&255>=e&&0<=c&&1>=c){b=[b,d,e,c];break b}}b=null}if(!b)b:{if(e=a.match(Fc))if(b=Number(e[1]),d=Number(e[2]),e=Number(e[3]),0<=b&&255>=b&&0<=d&&255>=d&&0<=e&&255>=e){b=[b,d,e,1];break b}b=null}if(!b)b:{b=a.toLowerCase();d=Ac[b.toLowerCase()];
if(!d&&(d="#"==b.charAt(0)?b:"#"+b,4==d.length&&(d=d.replace(Cc,"#$1$1$2$2$3$3")),!Dc.test(d))){b=null;break b}b=[parseInt(d.substr(1,2),16),parseInt(d.substr(3,2),16),parseInt(d.substr(5,2),16),1]}a=b?"rgba("+b.join(", ")+")":a}return a}function pd(a,b){var c=a.currentStyle||a.style,d=c[b];!ja(d)&&oa(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?ja(d)?d:null:(a=od(a))?pd(a,b):null}
function qd(a,b,c){function d(g){var k=rd(g);return 0<k.height&&0<k.width?!0:N(g,"PATH")&&(0<k.height||0<k.width)?(g=P(g,"stroke-width"),!!g&&0<parseInt(g,10)):"hidden"!=P(g,"overflow")&&Ca(g.childNodes,function(l){return 3==l.nodeType||N(l)&&d(l)})}function e(g){return ud(g)==Q&&Da(g.childNodes,function(k){return!N(k)||e(k)||!d(k)})}if(!N(a))throw Error("Argument to isShown must be of type Element");if(N(a,"BODY"))return!0;if(N(a,"OPTION")||N(a,"OPTGROUP"))return a=nb(a,function(g){return N(g,"SELECT")}),
!!a&&qd(a,!0,c);var f=vd(a);if(f)return!!f.image&&0<f.rect.width&&0<f.rect.height&&qd(f.image,b,c);if(N(a,"INPUT")&&"hidden"==a.type.toLowerCase()||N(a,"NOSCRIPT"))return!1;f=P(a,"visibility");return"collapse"!=f&&"hidden"!=f&&c(a)&&(b||0!=wd(a))&&d(a)?!e(a):!1}
function fd(a){function b(c){if(N(c)&&"none"==P(c,"display"))return!1;var d;if((d=c.parentNode)&&d.shadowRoot&&void 0!==c.assignedSlot)d=c.assignedSlot?c.assignedSlot.parentNode:null;else if(c.getDestinationInsertionPoints){var e=c.getDestinationInsertionPoints();0<e.length&&(d=e[e.length-1])}if(dd&&d instanceof ShadowRoot){if(d.host.shadowRoot&&d.host.shadowRoot!==d)return!1;d=d.host}return!d||9!=d.nodeType&&11!=d.nodeType?d&&N(d,"DETAILS")&&!d.open&&!N(c,"SUMMARY")?!1:!!d&&b(d):!0}return qd(a,!0,
b)}var Q="hidden";
function ud(a,b){function c(r){function z(hc){if(hc==g)return!0;var sd=P(hc,"display");return 0==sd.lastIndexOf("inline",0)||"contents"==sd||"absolute"==td&&"static"==P(hc,"position")?!1:!0}var td=P(r,"position");if("fixed"==td)return p=!0,r==g?null:g;for(r=od(r);r&&!z(r);)r=od(r);return r}function d(r){var z=r;if("visible"==l)if(r==g&&k)z=k;else if(r==k)return{x:"visible",y:"visible"};z={x:P(z,"overflow-x"),y:P(z,"overflow-y")};r==g&&(z.x="visible"==z.x?"auto":z.x,z.y="visible"==z.y?"auto":z.y);
return z}function e(r){if(r==g){var z=(new pb(f)).a;r=z.scrollingElement?z.scrollingElement:z.body||z.documentElement;z=z.parentWindow||z.defaultView;r=new u(z.pageXOffset||r.scrollLeft,z.pageYOffset||r.scrollTop)}else r=new u(r.scrollLeft,r.scrollTop);return r}b=xd(a,b);var f=v(a),g=f.documentElement,k=f.body,l=P(g,"overflow"),p;for(a=c(a);a;a=c(a)){var t=d(a);if("visible"!=t.x||"visible"!=t.y){var G=rd(a);if(0==G.width||0==G.height)return Q;var H=b.right<G.left,x=b.bottom<G.top;if(H&&"hidden"==
t.x||x&&"hidden"==t.y)return Q;if(H&&"visible"!=t.x||x&&"visible"!=t.y){H=e(a);x=b.bottom<G.top-H.y;if(b.right<G.left-H.x&&"visible"!=t.x||x&&"visible"!=t.x)return Q;b=ud(a);return b==Q?Q:"scroll"}H=b.left>=G.left+G.width;G=b.top>=G.top+G.height;if(H&&"hidden"==t.x||G&&"hidden"==t.y)return Q;if(H&&"visible"!=t.x||G&&"visible"!=t.y){if(p&&(t=e(a),b.left>=g.scrollWidth-t.x||b.right>=g.scrollHeight-t.y))return Q;b=ud(a);return b==Q?Q:"scroll"}}}return"none"}
function rd(a){var b=vd(a);if(b)return b.rect;if(N(a,"HTML"))return a=(hb(v(a))||window).document,a="CSS1Compat"==a.compatMode?a.documentElement:a.body,a=new gb(a.clientWidth,a.clientHeight),new O(0,0,a.width,a.height);try{var c=a.getBoundingClientRect()}catch(d){return new O(0,0,0,0)}return new O(c.left,c.top,c.right-c.left,c.bottom-c.top)}
function vd(a){var b=N(a,"MAP");if(!b&&!N(a,"AREA"))return null;var c=b?a:N(a.parentNode,"MAP")?a.parentNode:null,d=null,e=null;c&&c.name&&(d=$c.O('*[usemap="#'+c.name+'"]',v(c)))&&(e=rd(d),b||"default"==a.shape.toLowerCase()||(a=yd(a),b=Math.min(Math.max(a.left,0),e.width),c=Math.min(Math.max(a.top,0),e.height),e=new O(b+e.left,c+e.top,Math.min(a.width,e.width-b),Math.min(a.height,e.height-c))));return{image:d,rect:e||new O(0,0,0,0)}}
function yd(a){var b=a.shape.toLowerCase();a=a.coords.split(",");if("rect"==b&&4==a.length){b=a[0];var c=a[1];return new O(b,c,a[2]-b,a[3]-c)}if("circle"==b&&3==a.length)return b=a[2],new O(a[0]-b,a[1]-b,2*b,2*b);if("poly"==b&&2<a.length){b=a[0];c=a[1];for(var d=b,e=c,f=2;f+1<a.length;f+=2)b=Math.min(b,a[f]),d=Math.max(d,a[f]),c=Math.min(c,a[f+1]),e=Math.max(e,a[f+1]);return new O(b,c,d-b,e-c)}return new O(0,0,0,0)}
function xd(a,b){a=rd(a);a=new ad(a.top,a.left+a.width,a.top+a.height,a.left);b&&(b=b instanceof O?b:new O(b.x,b.y,1,1),a.left=Math.min(Math.max(a.left+b.left,a.left),a.right),a.top=Math.min(Math.max(a.top+b.top,a.top),a.bottom),a.right=Math.min(Math.max(a.left+b.width,a.left),a.right),a.bottom=Math.min(Math.max(a.top+b.height,a.top),a.bottom));return a}function wd(a){var b=1,c=P(a,"opacity");c&&(b=Number(c));(a=od(a))&&(b*=wd(a));return b};var zd=Kc?!Pc(4):!Rc;function R(a,b,c){this.a=a;this.b=b;this.f=c}R.prototype.create=function(a){a=v(a).createEvent("HTMLEvents");a.initEvent(this.a,this.b,this.f);return a};R.prototype.toString=function(){return this.a};function S(a,b,c){xa(this,a,b,c)}h(S,R);
S.prototype.create=function(a,b){if(this==Ad)throw new L(9,"Browser does not support a mouse pixel scroll event.");var c=v(a);a=hb(c);c=c.createEvent("MouseEvents");this==Bd&&(c.wheelDelta=b.wheelDelta);c.initMouseEvent(this.a,this.b,this.f,a,1,b.clientX,b.clientY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);return c};function Cd(a,b,c){xa(this,a,b,c)}h(Cd,R);
Cd.prototype.create=function(a,b){a=v(a).createEvent("Events");a.initEvent(this.a,this.b,this.f);a.altKey=b.altKey;a.ctrlKey=b.ctrlKey;a.metaKey=b.metaKey;a.shiftKey=b.shiftKey;a.keyCode=b.charCode||b.keyCode;a.charCode=this==Dd?a.keyCode:0;return a};function Ed(a,b,c){xa(this,a,b,c)}h(Ed,R);
Ed.prototype.create=function(a,b){function c(H){H=Aa(H,function(x){return g.createTouch(k,a,x.identifier,x.pageX,x.pageY,x.screenX,x.screenY)});return g.createTouchList.apply(g,H)}function d(H){var x=Aa(H,function(r){return{identifier:r.identifier,screenX:r.screenX,screenY:r.screenY,clientX:r.clientX,clientY:r.clientY,pageX:r.pageX,pageY:r.pageY,target:a}});x.item=function(r){return x[r]};return x}function e(H){return Aa(H,function(x){return new Touch({identifier:x.identifier,screenX:x.screenX,screenY:x.screenY,
clientX:x.clientX,clientY:x.clientY,pageX:x.pageX,pageY:x.pageY,target:a})})}function f(H,x){switch(H){case 1:return d(x);case 2:return c(x);case 3:return e(x)}return null}var g=v(a),k=hb(g);if(zd)var l=1;else if(TouchEvent.prototype.initTouchEvent)l=2;else if(TouchEvent&&0<TouchEvent.length)l=3;else throw new L(9,"Not able to create touch events in this browser");var p=f(l,b.changedTouches),t=b.touches==b.changedTouches?p:f(l,b.touches),G=b.targetTouches==b.changedTouches?p:f(l,b.targetTouches);
if(1==l)l=g.createEvent("MouseEvents"),l.initMouseEvent(this.a,this.b,this.f,k,1,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,0,b.relatedTarget),l.touches=t,l.targetTouches=G,l.changedTouches=p,l.scale=b.scale,l.rotation=b.rotation;else if(2==l)l=g.createEvent("TouchEvent"),0==l.initTouchEvent.length?l.initTouchEvent(t,G,p,this.a,k,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey):l.initTouchEvent(this.a,this.b,this.f,k,1,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,
b.shiftKey,b.metaKey,t,G,p,b.scale,b.rotation),l.relatedTarget=b.relatedTarget;else if(3==l)l=new TouchEvent(this.a,{touches:t,targetTouches:G,changedTouches:p,bubbles:this.b,cancelable:this.f,ctrlKey:b.ctrlKey,shiftKey:b.shiftKey,altKey:b.altKey,metaKey:b.metaKey});else throw new L(9,"Illegal TouchEventStrategy_ value (this is a bug)");return l};function Fd(a,b,c){xa(this,a,b,c)}h(Fd,R);Fd.prototype.create=function(){throw new L(9,"Browser does not support MSGesture events.");};
function T(a,b,c){xa(this,a,b,c)}h(T,R);T.prototype