appium-remote-debugger 15.7.0 → 15.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/atoms/active_element.js +16 -71
- package/atoms/clear.js +73 -131
- package/atoms/clear_local_storage.js +16 -71
- package/atoms/clear_session_storage.js +16 -71
- package/atoms/click.js +81 -137
- package/atoms/default_content.js +16 -71
- package/atoms/execute_async_script.js +20 -9
- package/atoms/execute_script.js +19 -7
- package/atoms/execute_sql.js +13 -2
- package/atoms/find_element.js +56 -109
- package/atoms/find_element_fragment.js +57 -111
- package/atoms/find_elements.js +57 -112
- package/atoms/frame_by_id_or_name.js +59 -112
- package/atoms/frame_by_index.js +16 -71
- package/atoms/get_appcache_status.js +16 -71
- package/atoms/get_attribute.js +15 -4
- package/atoms/get_attribute_value.js +32 -90
- package/atoms/get_effective_style.js +15 -6
- package/atoms/get_element_from_cache.js +14 -3
- package/atoms/get_frame_window.js +16 -71
- package/atoms/get_local_storage_item.js +16 -71
- package/atoms/get_local_storage_key.js +10 -67
- package/atoms/get_local_storage_keys.js +16 -71
- package/atoms/get_local_storage_size.js +16 -71
- package/atoms/get_location.js +14 -3
- package/atoms/get_session_storage_item.js +16 -71
- package/atoms/get_session_storage_key.js +10 -67
- package/atoms/get_session_storage_keys.js +16 -71
- package/atoms/get_session_storage_size.js +16 -71
- package/atoms/get_size.js +31 -91
- package/atoms/get_text.js +53 -112
- package/atoms/get_top_left_coordinates.js +42 -101
- package/atoms/get_value_of_css_property.js +32 -90
- package/atoms/is_displayed.js +47 -106
- package/atoms/is_editable.js +12 -1
- package/atoms/is_enabled.js +29 -87
- package/atoms/is_focusable.js +15 -4
- package/atoms/is_interactable.js +33 -23
- package/atoms/is_selected.js +28 -87
- package/atoms/lastupdate +6 -17
- package/atoms/remove_local_storage_item.js +16 -71
- package/atoms/remove_session_storage_item.js +16 -71
- package/atoms/set_local_storage_item.js +16 -71
- package/atoms/set_session_storage_item.js +16 -71
- package/atoms/submit.js +71 -129
- package/atoms/type.js +71 -129
- package/package.json +1 -1
|
@@ -1,119 +1,66 @@
|
|
|
1
|
-
function(){return (function(){
|
|
2
|
-
function ea(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";
|
|
3
|
-
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function fa(a){var b=ea(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ha(a){return"function"==ea(a)}function ia(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ja(a,b,c){return a.call.apply(a.bind,arguments)}
|
|
4
|
-
function ka(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 la(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?la=ja:la=ka;return la.apply(null,arguments)}
|
|
5
|
-
function ma(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 na=Date.now||function(){return+new Date};function k(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a};/*
|
|
1
|
+
function(){return (function(){/*
|
|
6
2
|
|
|
7
|
-
The
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
-
of this software and associated documentation files (the "Software"), to
|
|
14
|
-
deal in the Software without restriction, including without limitation the
|
|
15
|
-
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
16
|
-
sell copies of the Software, and to permit persons to whom the Software is
|
|
17
|
-
furnished to do so, subject to the following conditions:
|
|
18
|
-
|
|
19
|
-
The above copyright notice and this permission notice shall be included in
|
|
20
|
-
all copies or substantial portions of the Software.
|
|
3
|
+
Copyright The Closure Library Authors.
|
|
4
|
+
Copyright The Closure Compiler Authors.
|
|
5
|
+
SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
var aa=aa||{},h=this||self;try{var m=window}catch(a){m=h};/*
|
|
21
8
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
27
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
28
|
-
IN THE SOFTWARE.
|
|
9
|
+
Copyright The Closure Library Authors.
|
|
10
|
+
SPDX-License-Identifier: Apache-2.0
|
|
29
11
|
*/
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
function
|
|
35
|
-
a.
|
|
36
|
-
function
|
|
37
|
-
function x(a,b,c,d){a=d||a.a;var e=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(e||c))c=a.querySelectorAll(e+(c?"."+c:""));else if(c&&a.getElementsByClassName)if(b=a.getElementsByClassName(c),e){a={};for(var f=d=0,g;g=b[f];f++)e==g.nodeName&&(a[d++]=g);a.length=d;c=a}else c=b;else if(b=a.getElementsByTagName(e||"*"),c){a={};for(f=d=0;g=b[f];f++){e=g.className;var h;if(h="function"==typeof e.split)h=0<=qa(e.split(/\s+/),c);h&&(a[d++]=g)}a.length=d;c=a}else c=b;return c}
|
|
38
|
-
;function z(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:b,b=void 0==b||null==b?"":b);if("string"!=typeof b)if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;c=0;var d=[];for(b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return b}
|
|
39
|
-
function db(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 eb(a,b,c,d,e){return fb.call(null,a,b,ca(c)?c:null,ca(d)?d:null,e||new A)}
|
|
40
|
-
function fb(a,b,c,d,e){b.getElementsByName&&d&&"name"==c?(b=b.getElementsByName(d),l(b,function(f){a.a(f)&&e.add(f)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),l(b,function(f){f.className==d&&a.a(f)&&e.add(f)})):a instanceof B?gb(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.f()),l(b,function(f){db(f,c,d)&&e.add(f)}));return e}function gb(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)db(b,c,d)&&a.a(b)&&e.add(b),gb(a,b,c,d,e)};function A(){this.b=this.a=null;this.o=0}function hb(a){this.f=a;this.a=this.b=null}function ib(a,b){if(!a.a)return b;if(!b.a)return a;var c=a.a;b=b.a;for(var d=null,e,f=0;c&&b;)c.f==b.f?(e=c,c=c.a,b=b.a):0<Za(c.f,b.f)?(e=b,b=b.a):(e=c,c=c.a),(e.b=d)?d.a=e:a.a=e,d=e,f++;for(e=c||b;e;)e.b=d,d=d.a=e,f++,e=e.a;a.b=d;a.o=f;return a}function jb(a,b){b=new hb(b);b.a=a.a;a.b?a.a.b=b:a.a=a.b=b;a.a=b;a.o++}A.prototype.add=function(a){a=new hb(a);a.b=this.b;this.a?this.b.a=a:this.a=this.b=a;this.b=a;this.o++};
|
|
41
|
-
function kb(a){return(a=a.a)?a.f:null}function lb(a){return(a=kb(a))?z(a):""}function C(a,b){return new mb(a,!!b)}function mb(a,b){this.f=a;this.b=(this.B=b)?a.b:a.a;this.a=null}function D(a){var b=a.b;if(null==b)return null;var c=a.a=b;a.b=a.B?b.b:b.a;return c.f};function E(a){this.i=a;this.b=this.g=!1;this.f=null}function G(a){return"\n "+a.toString().split("\n").join("\n ")}function nb(a,b){a.g=b}function ob(a,b){a.b=b}function H(a,b){a=a.a(b);return a instanceof A?+lb(a):+a}function I(a,b){a=a.a(b);return a instanceof A?lb(a):""+a}function pb(a,b){a=a.a(b);return a instanceof A?!!a.o:!!a};function qb(a,b,c){E.call(this,a.i);this.c=a;this.h=b;this.A=c;this.g=b.g||c.g;this.b=b.b||c.b;this.c==rb&&(c.b||c.g||4==c.i||0==c.i||!b.f?b.b||b.g||4==b.i||0==b.i||!c.f||(this.f={name:c.f.name,C:b}):this.f={name:b.f.name,C:c})}k(qb,E);
|
|
42
|
-
function tb(a,b,c,d,e){b=b.a(d);c=c.a(d);var f;if(b instanceof A&&c instanceof A){b=C(b);for(d=D(b);d;d=D(b))for(e=C(c),f=D(e);f;f=D(e))if(a(z(d),z(f)))return!0;return!1}if(b instanceof A||c instanceof A){b instanceof A?(e=b,d=c):(e=c,d=b);f=C(e);for(var g=typeof d,h=D(f);h;h=D(f)){switch(g){case "number":h=+z(h);break;case "boolean":h=!!z(h);break;case "string":h=z(h);break;default:throw Error("Illegal primitive type for comparison.");}if(e==b&&a(h,d)||e==c&&a(d,h))return!0}return!1}return e?"boolean"==
|
|
43
|
-
typeof b||"boolean"==typeof c?a(!!b,!!c):"number"==typeof b||"number"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}qb.prototype.a=function(a){return this.c.u(this.h,this.A,a)};qb.prototype.toString=function(){var a="Binary Expression: "+this.c;a+=G(this.h);return a+=G(this.A)};function ub(a,b,c,d){this.aa=a;this.N=b;this.i=c;this.u=d}ub.prototype.toString=function(){return this.aa};var vb={};
|
|
44
|
-
function J(a,b,c,d){if(vb.hasOwnProperty(a))throw Error("Binary operator already created: "+a);a=new ub(a,b,c,d);return vb[a.toString()]=a}J("div",6,1,function(a,b,c){return H(a,c)/H(b,c)});J("mod",6,1,function(a,b,c){return H(a,c)%H(b,c)});J("*",6,1,function(a,b,c){return H(a,c)*H(b,c)});J("+",5,1,function(a,b,c){return H(a,c)+H(b,c)});J("-",5,1,function(a,b,c){return H(a,c)-H(b,c)});J("<",4,2,function(a,b,c){return tb(function(d,e){return d<e},a,b,c)});
|
|
45
|
-
J(">",4,2,function(a,b,c){return tb(function(d,e){return d>e},a,b,c)});J("<=",4,2,function(a,b,c){return tb(function(d,e){return d<=e},a,b,c)});J(">=",4,2,function(a,b,c){return tb(function(d,e){return d>=e},a,b,c)});var rb=J("=",3,2,function(a,b,c){return tb(function(d,e){return d==e},a,b,c,!0)});J("!=",3,2,function(a,b,c){return tb(function(d,e){return d!=e},a,b,c,!0)});J("and",2,2,function(a,b,c){return pb(a,c)&&pb(b,c)});J("or",1,2,function(a,b,c){return pb(a,c)||pb(b,c)});function wb(a,b){if(b.a.length&&4!=a.i)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");E.call(this,a.i);this.c=a;this.h=b;this.g=a.g;this.b=a.b}k(wb,E);wb.prototype.a=function(a){a=this.c.a(a);return xb(this.h,a)};wb.prototype.toString=function(){var a="Filter:"+G(this.c);return a+=G(this.h)};function yb(a,b){if(b.length<a.M)throw Error("Function "+a.l+" expects at least"+a.M+" arguments, "+b.length+" given");if(null!==a.H&&b.length>a.H)throw Error("Function "+a.l+" expects at most "+a.H+" arguments, "+b.length+" given");a.$&&l(b,function(c,d){if(4!=c.i)throw Error("Argument "+d+" to function "+a.l+" is not of type Nodeset: "+c);});E.call(this,a.i);this.F=a;this.c=b;nb(this,a.g||ua(b,function(c){return c.g}));ob(this,a.Z&&!b.length||a.Y&&!!b.length||ua(b,function(c){return c.b}))}
|
|
46
|
-
k(yb,E);yb.prototype.a=function(a){return this.F.u.apply(null,xa(a,this.c))};yb.prototype.toString=function(){var a="Function: "+this.F;if(this.c.length){var b=ta(this.c,function(c,d){return c+G(d)},"Arguments:");a+=G(b)}return a};function zb(a,b,c,d,e,f,g,h){this.l=a;this.i=b;this.g=c;this.Z=d;this.Y=!1;this.u=e;this.M=f;this.H=void 0!==g?g:f;this.$=!!h}zb.prototype.toString=function(){return this.l};var Ab={};
|
|
47
|
-
function K(a,b,c,d,e,f,g,h){if(Ab.hasOwnProperty(a))throw Error("Function already created: "+a+".");Ab[a]=new zb(a,b,c,d,e,f,g,h)}K("boolean",2,!1,!1,function(a,b){return pb(b,a)},1);K("ceiling",1,!1,!1,function(a,b){return Math.ceil(H(b,a))},1);K("concat",3,!1,!1,function(a,b){return ta(ya(arguments,1),function(c,d){return c+I(d,a)},"")},2,null);K("contains",2,!1,!1,function(a,b,c){b=I(b,a);a=I(c,a);return-1!=b.indexOf(a)},2);K("count",1,!1,!1,function(a,b){return b.a(a).o},1,1,!0);
|
|
48
|
-
K("false",2,!1,!1,function(){return!1},0);K("floor",1,!1,!1,function(a,b){return Math.floor(H(b,a))},1);K("id",4,!1,!1,function(a,b){var c=a.a,d=9==c.nodeType?c:c.ownerDocument;a=I(b,a).split(/\s+/);var e=[];l(a,function(g){g=d.getElementById(g);!g||0<=qa(e,g)||e.push(g)});e.sort(Za);var f=new A;l(e,function(g){f.add(g)});return f},1);K("lang",2,!1,!1,function(){return!1},1);K("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.f},0);
|
|
49
|
-
K("local-name",3,!1,!0,function(a,b){return(a=b?kb(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);K("name",3,!1,!0,function(a,b){return(a=b?kb(b.a(a)):a.a)?a.nodeName.toLowerCase():""},0,1,!0);K("namespace-uri",3,!0,!1,function(){return""},0,1,!0);K("normalize-space",3,!1,!0,function(a,b){return(b?I(b,a):z(a.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);K("not",2,!1,!1,function(a,b){return!pb(b,a)},1);K("number",1,!1,!0,function(a,b){return b?H(b,a):+z(a.a)},0,1);
|
|
50
|
-
K("position",1,!0,!1,function(a){return a.b},0);K("round",1,!1,!1,function(a,b){return Math.round(H(b,a))},1);K("starts-with",2,!1,!1,function(a,b,c){b=I(b,a);a=I(c,a);return 0==b.lastIndexOf(a,0)},2);K("string",3,!1,!0,function(a,b){return b?I(b,a):z(a.a)},0,1);K("string-length",1,!1,!0,function(a,b){return(b?I(b,a):z(a.a)).length},0,1);
|
|
51
|
-
K("substring",3,!1,!1,function(a,b,c,d){c=H(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?H(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=I(b,a);return Infinity==d?a.substring(e):a.substring(e,c+Math.round(d))},2,3);K("substring-after",3,!1,!1,function(a,b,c){b=I(b,a);a=I(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
|
|
52
|
-
K("substring-before",3,!1,!1,function(a,b,c){b=I(b,a);a=I(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);K("sum",1,!1,!1,function(a,b){a=C(b.a(a));b=0;for(var c=D(a);c;c=D(a))b+=+z(c);return b},1,1,!0);K("translate",3,!1,!1,function(a,b,c,d){b=I(b,a);c=I(c,a);var e=I(d,a);a={};for(d=0;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);K("true",2,!1,!1,function(){return!0},0);function B(a,b){this.h=a;this.c=void 0!==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 Bb(a){return"comment"==a||"text"==a||"processing-instruction"==a||"node"==a}B.prototype.a=function(a){return null===this.b||this.b==a.nodeType};B.prototype.f=function(){return this.h};
|
|
53
|
-
B.prototype.toString=function(){var a="Kind Test: "+this.h;null===this.c||(a+=G(this.c));return a};function Cb(a){E.call(this,3);this.c=a.substring(1,a.length-1)}k(Cb,E);Cb.prototype.a=function(){return this.c};Cb.prototype.toString=function(){return"Literal: "+this.c};function Db(a,b){this.l=a.toLowerCase();a="*"==this.l?"*":"http://www.w3.org/1999/xhtml";this.b=b?b.toLowerCase():a}Db.prototype.a=function(a){var b=a.nodeType;if(1!=b&&2!=b)return!1;b=void 0!==a.localName?a.localName:a.nodeName;return"*"!=this.l&&this.l!=b.toLowerCase()?!1:"*"==this.b?!0:this.b==(a.namespaceURI?a.namespaceURI.toLowerCase():"http://www.w3.org/1999/xhtml")};Db.prototype.f=function(){return this.l};
|
|
54
|
-
Db.prototype.toString=function(){return"Name Test: "+("http://www.w3.org/1999/xhtml"==this.b?"":this.b+":")+this.l};function Eb(a){E.call(this,1);this.c=a}k(Eb,E);Eb.prototype.a=function(){return this.c};Eb.prototype.toString=function(){return"Number: "+this.c};function Fb(a,b){E.call(this,a.i);this.h=a;this.c=b;this.g=a.g;this.b=a.b;1==this.c.length&&(a=this.c[0],a.G||a.c!=Gb||(a=a.A,"*"!=a.f()&&(this.f={name:a.f(),C:null})))}k(Fb,E);function Hb(){E.call(this,4)}k(Hb,E);Hb.prototype.a=function(a){var b=new A;a=a.a;9==a.nodeType?b.add(a):b.add(a.ownerDocument);return b};Hb.prototype.toString=function(){return"Root Helper Expression"};function Ib(){E.call(this,4)}k(Ib,E);Ib.prototype.a=function(a){var b=new A;b.add(a.a);return b};Ib.prototype.toString=function(){return"Context Helper Expression"};
|
|
55
|
-
function Jb(a){return"/"==a||"//"==a}Fb.prototype.a=function(a){var b=this.h.a(a);if(!(b instanceof A))throw Error("Filter expression must evaluate to nodeset.");a=this.c;for(var c=0,d=a.length;c<d&&b.o;c++){var e=a[c],f=C(b,e.c.B);if(e.g||e.c!=Kb)if(e.g||e.c!=Lb){var g=D(f);for(b=e.a(new oa(g));null!=(g=D(f));)g=e.a(new oa(g)),b=ib(b,g)}else g=D(f),b=e.a(new oa(g));else{for(g=D(f);(b=D(f))&&(!g.contains||g.contains(b))&&b.compareDocumentPosition(g)&8;g=b);b=e.a(new oa(g))}}return b};
|
|
56
|
-
Fb.prototype.toString=function(){var a="Path Expression:"+G(this.h);if(this.c.length){var b=ta(this.c,function(c,d){return c+G(d)},"Steps:");a+=G(b)}return a};function Mb(a,b){this.a=a;this.B=!!b}
|
|
57
|
-
function xb(a,b,c){for(c=c||0;c<a.a.length;c++)for(var d=a.a[c],e=C(b),f=b.o,g,h=0;g=D(e);h++){var t=a.B?f-h:h+1;g=d.a(new oa(g,t,f));if("number"==typeof g)t=t==g;else if("string"==typeof g||"boolean"==typeof g)t=!!g;else if(g instanceof A)t=0<g.o;else throw Error("Predicate.evaluate returned an unexpected type.");if(!t){t=e;g=t.f;var w=t.a;if(!w)throw Error("Next must be called at least once before remove.");var n=w.b;w=w.a;n?n.a=w:g.a=w;w?w.b=n:g.b=n;g.o--;t.a=null}}return b}
|
|
58
|
-
Mb.prototype.toString=function(){return ta(this.a,function(a,b){return a+G(b)},"Predicates:")};function L(a,b,c,d){E.call(this,4);this.c=a;this.A=b;this.h=c||new Mb([]);this.G=!!d;b=this.h;b=0<b.a.length?b.a[0].f:null;a.ha&&b&&(this.f={name:b.name,C:b.C});a:{a=this.h;for(b=0;b<a.a.length;b++)if(c=a.a[b],c.g||1==c.i||0==c.i){a=!0;break a}a=!1}this.g=a}k(L,E);
|
|
59
|
-
L.prototype.a=function(a){var b=a.a,c=this.f,d=null,e=null,f=0;c&&(d=c.name,e=c.C?I(c.C,a):null,f=1);if(this.G)if(this.g||this.c!=Nb)if(b=C((new L(Ob,new B("node"))).a(a)),c=D(b))for(a=this.u(c,d,e,f);null!=(c=D(b));)a=ib(a,this.u(c,d,e,f));else a=new A;else a=eb(this.A,b,d,e),a=xb(this.h,a,f);else a=this.u(a.a,d,e,f);return a};L.prototype.u=function(a,b,c,d){a=this.c.F(this.A,a,b,c);return a=xb(this.h,a,d)};
|
|
60
|
-
L.prototype.toString=function(){var a="Step:"+G("Operator: "+(this.G?"//":"/"));this.c.l&&(a+=G("Axis: "+this.c));a+=G(this.A);if(this.h.a.length){var b=ta(this.h.a,function(c,d){return c+G(d)},"Predicates:");a+=G(b)}return a};function Pb(a,b,c,d){this.l=a;this.F=b;this.B=c;this.ha=d}Pb.prototype.toString=function(){return this.l};var Qb={};function M(a,b,c,d){if(Qb.hasOwnProperty(a))throw Error("Axis already created: "+a);b=new Pb(a,b,c,!!d);return Qb[a]=b}
|
|
61
|
-
M("ancestor",function(a,b){for(var c=new A;b=b.parentNode;)a.a(b)&&jb(c,b);return c},!0);M("ancestor-or-self",function(a,b){var c=new A;do a.a(b)&&jb(c,b);while(b=b.parentNode);return c},!0);
|
|
62
|
-
var Gb=M("attribute",function(a,b){var c=new A,d=a.f();if(b=b.attributes)if(a instanceof B&&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),Nb=M("child",function(a,b,c,d,e){c=ca(c)?c:null;d=ca(d)?d:null;e=e||new A;for(b=b.firstChild;b;b=b.nextSibling)db(b,c,d)&&a.a(b)&&e.add(b);return e},!1,!0);M("descendant",eb,!1,!0);
|
|
63
|
-
var Ob=M("descendant-or-self",function(a,b,c,d){var e=new A;db(b,c,d)&&a.a(b)&&e.add(b);return eb(a,b,c,d,e)},!1,!0),Kb=M("following",function(a,b,c,d){var e=new A;do for(var f=b;f=f.nextSibling;)db(f,c,d)&&a.a(f)&&e.add(f),e=eb(a,f,c,d,e);while(b=b.parentNode);return e},!1,!0);M("following-sibling",function(a,b){for(var c=new A;b=b.nextSibling;)a.a(b)&&c.add(b);return c},!1);M("namespace",function(){return new A},!1);
|
|
64
|
-
var Rb=M("parent",function(a,b){var c=new A;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),Lb=M("preceding",function(a,b,c,d){var e=new A,f=[];do f.unshift(b);while(b=b.parentNode);for(var g=1,h=f.length;g<h;g++){var t=[];for(b=f[g];b=b.previousSibling;)t.unshift(b);for(var w=0,n=t.length;w<n;w++)b=t[w],db(b,c,d)&&a.a(b)&&e.add(b),e=eb(a,b,c,d,e)}return e},!0,!0);
|
|
65
|
-
M("preceding-sibling",function(a,b){for(var c=new A;b=b.previousSibling;)a.a(b)&&jb(c,b);return c},!0);var Sb=M("self",function(a,b){var c=new A;a.a(b)&&c.add(b);return c},!1);function Tb(a){E.call(this,1);this.c=a;this.g=a.g;this.b=a.b}k(Tb,E);Tb.prototype.a=function(a){return-H(this.c,a)};Tb.prototype.toString=function(){return"Unary Expression: -"+G(this.c)};function Ub(a){E.call(this,4);this.c=a;nb(this,ua(this.c,function(b){return b.g}));ob(this,ua(this.c,function(b){return b.b}))}k(Ub,E);Ub.prototype.a=function(a){var b=new A;l(this.c,function(c){c=c.a(a);if(!(c instanceof A))throw Error("Path expression must evaluate to NodeSet.");b=ib(b,c)});return b};Ub.prototype.toString=function(){return ta(this.c,function(a,b){return a+G(b)},"Union Expression:")};function Vb(a,b){this.a=a;this.b=b}function Wb(a){for(var b,c=[];;){N(a,"Missing right hand side of binary expression.");b=Xb(a);var d=r(a.a);if(!d)break;var e=(d=vb[d]||null)&&d.N;if(!e){a.a.a--;break}for(;c.length&&e<=c[c.length-1].N;)b=new qb(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new qb(c.pop(),c.pop(),b);return b}function N(a,b){if(Sa(a.a))throw Error(b);}function Yb(a,b){a=r(a.a);if(a!=b)throw Error("Bad token, expected: "+b+" got: "+a);}
|
|
66
|
-
function Zb(a){a=r(a.a);if(")"!=a)throw Error("Bad token: "+a);}function $b(a){a=r(a.a);if(2>a.length)throw Error("Unclosed literal string");return new Cb(a)}
|
|
67
|
-
function ac(a){var b=[];if(Jb(q(a.a))){var c=r(a.a);var d=q(a.a);if("/"==c&&(Sa(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new Hb;d=new Hb;N(a,"Missing next location step.");c=bc(a,c);b.push(c)}else{a:{c=q(a.a);d=c.charAt(0);switch(d){case "$":throw Error("Variable reference not allowed in HTML XPath");case "(":r(a.a);c=Wb(a);N(a,'unclosed "("');Yb(a,")");break;case '"':case "'":c=$b(a);break;default:if(isNaN(+c))if(!Bb(c)&&/(?![0-9])[\w]/.test(d)&&"("==q(a.a,1)){c=r(a.a);
|
|
68
|
-
c=Ab[c]||null;r(a.a);for(d=[];")"!=q(a.a);){N(a,"Missing function argument list.");d.push(Wb(a));if(","!=q(a.a))break;r(a.a)}N(a,"Unclosed function argument list.");Zb(a);c=new yb(c,d)}else{c=null;break a}else c=new Eb(+r(a.a))}"["==q(a.a)&&(d=new Mb(cc(a)),c=new wb(c,d))}if(c)if(Jb(q(a.a)))d=c;else return c;else c=bc(a,"/"),d=new Ib,b.push(c)}for(;Jb(q(a.a));)c=r(a.a),N(a,"Missing next location step."),c=bc(a,c),b.push(c);return new Fb(d,b)}
|
|
69
|
-
function bc(a,b){if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==q(a.a)){var c=new L(Sb,new B("node"));r(a.a);return c}if(".."==q(a.a))return c=new L(Rb,new B("node")),r(a.a),c;if("@"==q(a.a)){var d=Gb;r(a.a);N(a,"Missing attribute name")}else if("::"==q(a.a,1)){if(!/(?![0-9])[\w]/.test(q(a.a).charAt(0)))throw Error("Bad token: "+r(a.a));var e=r(a.a);d=Qb[e]||null;if(!d)throw Error("No axis with name: "+e);r(a.a);N(a,"Missing node name")}else d=Nb;e=q(a.a);if(/(?![0-9])[\w\*]/.test(e.charAt(0)))if("("==
|
|
70
|
-
q(a.a,1)){if(!Bb(e))throw Error("Invalid node type: "+e);e=r(a.a);if(!Bb(e))throw Error("Invalid type name: "+e);Yb(a,"(");N(a,"Bad nodetype");var f=q(a.a).charAt(0),g=null;if('"'==f||"'"==f)g=$b(a);N(a,"Bad nodetype");Zb(a);e=new B(e,g)}else if(e=r(a.a),f=e.indexOf(":"),-1==f)e=new Db(e);else{g=e.substring(0,f);if("*"==g)var h="*";else if(h=a.b(g),!h)throw Error("Namespace prefix not declared: "+g);e=e.substr(f+1);e=new Db(e,h)}else throw Error("Bad token: "+r(a.a));a=new Mb(cc(a),d.B);return c||
|
|
71
|
-
new L(d,e,a,"//"==b)}function cc(a){for(var b=[];"["==q(a.a);){r(a.a);N(a,"Missing predicate expression.");var c=Wb(a);b.push(c);N(a,"Unclosed predicate expression.");Yb(a,"]")}return b}function Xb(a){if("-"==q(a.a))return r(a.a),new Tb(Xb(a));var b=ac(a);if("|"!=q(a.a))a=b;else{for(b=[b];"|"==r(a.a);)N(a,"Missing next union location path."),b.push(ac(a));a.a.a--;a=new Ub(b)}return a};function fc(a){switch(a.nodeType){case 1:return ma(gc,a);case 9:return fc(a.documentElement);case 11:case 10:case 6:case 12:return hc;default:return a.parentNode?fc(a.parentNode):hc}}function hc(){return null}function gc(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?gc(a.parentNode,b):null};function ic(a,b){if(!a.length)throw Error("Empty XPath expression.");a=Pa(a);if(Sa(a))throw Error("Invalid XPath expression.");b?ha(b)||(b=la(b.lookupNamespaceURI,b)):b=function(){return null};var c=Wb(new Vb(a,b));if(!Sa(a))throw Error("Bad token: "+r(a));this.evaluate=function(d,e){d=c.a(new oa(d));return new O(d,e)}}
|
|
72
|
-
function O(a,b){if(0==b)if(a instanceof A)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 A))throw Error("value could not be converted to the specified type");this.resultType=b;switch(b){case 2:this.stringValue=a instanceof A?lb(a):""+a;break;case 1:this.numberValue=a instanceof A?+lb(a):+a;break;case 3:this.booleanValue=a instanceof A?0<a.o:!!a;break;case 4:case 5:case 6:case 7:var c=
|
|
73
|
-
C(a);var d=[];for(var e=D(c);e;e=D(c))d.push(e);this.snapshotLength=a.o;this.invalidIteratorState=!1;break;case 8:case 9:this.singleNodeValue=kb(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]}}O.ANY_TYPE=0;
|
|
74
|
-
O.NUMBER_TYPE=1;O.STRING_TYPE=2;O.BOOLEAN_TYPE=3;O.UNORDERED_NODE_ITERATOR_TYPE=4;O.ORDERED_NODE_ITERATOR_TYPE=5;O.UNORDERED_NODE_SNAPSHOT_TYPE=6;O.ORDERED_NODE_SNAPSHOT_TYPE=7;O.ANY_UNORDERED_NODE_TYPE=8;O.FIRST_ORDERED_NODE_TYPE=9;function jc(a){this.lookupNamespaceURI=fc(a)}
|
|
75
|
-
function kc(a,b){a=a||ba;var c=a.Document&&a.Document.prototype||a.document;if(!c.evaluate||b)a.XPathResult=O,c.evaluate=function(d,e,f,g){return(new ic(d,f)).evaluate(e,g)},c.createExpression=function(d,e){return new ic(d,e)},c.createNSResolver=function(d){return new jc(d)}}da("wgxpath.install",kc);da("wgxpath.install",kc);var lc=window;function P(a,b){this.code=a;this.a=R[a]||mc;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||""}k(P,Error);var mc="unknown error",R={15:"element not selectable",11:"element not visible"};R[31]=mc;R[30]=mc;R[24]="invalid cookie domain";R[29]="invalid element coordinates";R[12]="invalid element state";
|
|
76
|
-
R[32]="invalid selector";R[51]="invalid selector";R[52]="invalid selector";R[17]="javascript error";R[405]="unsupported operation";R[34]="move target out of bounds";R[27]="no such alert";R[7]="no such element";R[8]="no such frame";R[23]="no such window";R[28]="script timeout";R[33]="session not created";R[10]="stale element reference";R[21]="timeout";R[25]="unable to set cookie";R[26]="unexpected alert open";R[13]=mc;R[9]="unknown command";var nc={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",
|
|
12
|
+
function ba(a){var b=typeof a;return b=="object"&&a!=null||b=="function"}
|
|
13
|
+
function ca(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(c=="[object Window]")return"object";if(c=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(c=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
|
|
14
|
+
else if(b=="function"&&typeof a.call=="undefined")return"object";return b}function da(a){var b=ca(a);return b=="array"||b=="object"&&typeof a.length=="number"};function n(a,b){this.code=a;this.g=p[a]||q;this.message=b||"";a=this.g.replace(/((?:^|\s+)[a-z])/g,function(c){return c.toUpperCase().replace(/^[\s\xa0]+/g,"")});b=a.length-5;if(b<0||a.indexOf("Error",b)!=b)a+="Error";this.name=a;a=Error(this.message);a.name=this.name;this.stack=a.stack||""}(function(){function a(){}a.prototype=Error.prototype;n.prototype=new a;n.prototype.constructor=n})();var q="unknown error",p={15:"element not selectable",11:"element not visible"};p[31]=q;p[30]=q;p[24]="invalid cookie domain";
|
|
15
|
+
p[29]="invalid element coordinates";p[12]="invalid element state";p[32]="invalid selector";p[51]="invalid selector";p[52]="invalid selector";p[17]="javascript error";p[405]="unsupported operation";p[34]="move target out of bounds";p[27]="no such alert";p[7]="no such element";p[8]="no such frame";p[23]="no such window";p[28]="script timeout";p[33]="session not created";p[10]="stale element reference";p[21]="timeout";p[25]="unable to set cookie";p[26]="unexpected alert open";p[13]=q;p[9]="unknown command";var ea;var fa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},t=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},ha=Array.prototype.filter?function(a,b){return Array.prototype.filter.call(a,
|
|
16
|
+
b,void 0)}:function(a,b){for(var c=a.length,d=[],e=0,f=typeof a==="string"?a.split(""):a,g=0;g<c;g++)if(g in f){var k=f[g];b.call(void 0,k,g,a)&&(d[e++]=k)}return d},y=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=typeof a==="string"?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a));return d},ia=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,
|
|
17
|
+
d=typeof a==="string"?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;return!1},ja=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0};
|
|
18
|
+
function ka(a,b){a:{for(var c=a.length,d=typeof a==="string"?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}return b<0?null:typeof a==="string"?a.charAt(b):a[b]}function la(a,b){a.sort(b||ma)}function ma(a,b){return a>b?1:a<b?-1:0};var na={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",
|
|
77
19
|
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",
|
|
78
20
|
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",
|
|
79
21
|
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",
|
|
80
22
|
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",
|
|
81
|
-
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
|
|
82
|
-
function
|
|
83
|
-
|
|
84
|
-
function
|
|
85
|
-
|
|
86
|
-
function
|
|
87
|
-
function
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
b)
|
|
91
|
-
function
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
function
|
|
96
|
-
function
|
|
97
|
-
|
|
98
|
-
function
|
|
99
|
-
|
|
100
|
-
function
|
|
101
|
-
function
|
|
102
|
-
function
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
function(b
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
function
|
|
23
|
+
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 pa="backgroundColor borderTopColor borderRightColor borderBottomColor borderLeftColor color outlineColor".split(" "),qa=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,ra=/^#(?:[0-9a-f]{3}){1,2}$/i,sa=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i,ta=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function ua(a){var b=a.length-1;return b>=0&&a.indexOf(" ",b)==b}var z=aa.T&&String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};function va(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function wa(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function B(a,b){return a!==null&&b in a}function xa(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};function ya(){var a=h.navigator;return a&&(a=a.userAgent)?a:""}function C(a){return ya().indexOf(a)!=-1};function za(){return C("Firefox")||C("FxiOS")}function Aa(){return(C("Chrome")||C("CriOS"))&&!C("Edge")||C("Silk")};function Ba(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};function D(){return C("iPhone")&&!C("iPod")&&!C("iPad")};var Ca=za(),Da=D()||C("iPod"),Ea=C("iPad"),Fa=C("Android")&&!(Aa()||za()||C("Opera")||C("Silk")),Ia=Aa(),Ja=C("Safari")&&!(Aa()||C("Coast")||C("Opera")||C("Edge")||C("Edg/")||C("OPR")||za()||C("Silk")||C("Android"))&&!(D()||C("iPad")||C("iPod"));function E(a){return(a=a.exec(ya()))?a[1]:""}(function(){if(Ca)return E(/Firefox\/([0-9.]+)/);if(Ia){if(D()||C("iPad")||C("iPod")||C("Macintosh")){var a=E(/CriOS\/([0-9.]+)/);if(a)return a}return E(/Chrome\/([0-9.]+)/)}if(Ja&&!(D()||C("iPad")||C("iPod")))return E(/Version\/([0-9.]+)/);if(Da||Ea){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(ya()))return a[1]+"."+a[2]}else if(Fa)return(a=E(/Android\s+([0-9.]+)/))?a:E(/Version\/([0-9.]+)/);return""})();function F(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0}F.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};F.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};F.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};function G(a,b){this.width=a;this.height=b}G.prototype.aspectRatio=function(){return this.width/this.height};G.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};G.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};G.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function H(a){return a?new Ka(J(a)):ea||(ea=new Ka)}function La(a,b){return typeof b==="string"?a.getElementById(b):b}function Ma(a){return a?a.parentWindow||a.defaultView:window}function Na(a){for(;a&&a.nodeType!=1;)a=a.previousSibling;return a}function Oa(a,b){if(!a||!b)return!1;if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}
|
|
24
|
+
function J(a){return a.nodeType==9?a:a.ownerDocument||a.document}function Pa(a){try{return a.contentWindow||(a.contentDocument?Ma(a.contentDocument):null)}catch(b){}return null}function Qa(a,b){a&&(a=a.parentNode);for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null}function Ka(a){this.g=a||h.document||document}
|
|
25
|
+
function K(a,b,c,d){a=a.g;d=d||a;var e=b&&b!="*"?String(b).toUpperCase():"";if(d.querySelectorAll&&d.querySelector&&(e||c))c=d.querySelectorAll(e+(c?"."+c:""));else if(c&&d.getElementsByClassName)if(b=d.getElementsByClassName(c),e){d={};for(var f=a=0,g;g=b[f];f++)e==g.nodeName&&(d[a++]=g);d.length=a;c=d}else c=b;else if(b=d.getElementsByTagName(e||"*"),c){d={};for(f=a=0;g=b[f];f++){e=g.className;var k;if(k=typeof e.split=="function")k=fa(e.split(/\s+/),c)>=0;k&&(d[a++]=g)}d.length=a;c=d}else c=b;
|
|
26
|
+
return c};function L(a,b){b=b.toLowerCase();return b=="style"?Ra(a.style.cssText):(a=a.getAttributeNode(b))&&a.specified?a.value:null}var Sa=RegExp("[;]+(?=(?:(?:[^\"]*\"){2})*[^\"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\\([^()]*\\))*[^()]*$)");function Ra(a){var b=[];t(a.split(Sa),function(c){var d=c.indexOf(":");d>0&&(c=[c.slice(0,d),c.slice(d+1)],c.length==2&&b.push(c[0].toLowerCase(),":",c[1],";"))});b=b.join("");return b=b.charAt(b.length-1)==";"?b:b+";"}
|
|
27
|
+
function M(a,b){b&&typeof b!=="string"&&(b=b.toString());return a instanceof HTMLFormElement?!!a&&a.nodeType==1&&(!b||"FORM"==b):!!a&&a.nodeType==1&&(!b||a.tagName.toUpperCase()==b)};var N={j:function(a,b){if(!a)throw new n(32,"No selector specified");a=z(a);try{var c=b.querySelector(a)}catch(d){throw new n(32,"An invalid or illegal selector was specified");}return c&&c.nodeType==1?c:null},h:function(a,b){if(!a)throw new n(32,"No selector specified");a=z(a);try{return b.querySelectorAll(a)}catch(c){throw new n(32,"An invalid or illegal selector was specified");}}};function O(a,b,c,d){this.top=a;this.g=b;this.l=c;this.left=d}O.prototype.ceil=function(){this.top=Math.ceil(this.top);this.g=Math.ceil(this.g);this.l=Math.ceil(this.l);this.left=Math.ceil(this.left);return this};O.prototype.floor=function(){this.top=Math.floor(this.top);this.g=Math.floor(this.g);this.l=Math.floor(this.l);this.left=Math.floor(this.left);return this};
|
|
28
|
+
O.prototype.round=function(){this.top=Math.round(this.top);this.g=Math.round(this.g);this.l=Math.round(this.l);this.left=Math.round(this.left);return this};function P(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}P.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};P.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};
|
|
29
|
+
P.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};var Ta=typeof ShadowRoot==="function";function Q(a){for(a=a.parentNode;a&&a.nodeType!=1&&a.nodeType!=9&&a.nodeType!=11;)a=a.parentNode;return M(a)?a:null}
|
|
30
|
+
function R(a,b){b=Ba(b);if(b=="float"||b=="cssFloat"||b=="styleFloat")b="cssFloat";a:{var c=b;var d=J(a);if(d.defaultView&&d.defaultView.getComputedStyle&&(d=d.defaultView.getComputedStyle(a,null))){c=d[c]||d.getPropertyValue(c)||"";break a}c=""}a=c||Ua(a,b);if(a===null)a=null;else if(fa(pa,b)>=0){b:{var e=a.match(sa);if(e&&(b=Number(e[1]),c=Number(e[2]),d=Number(e[3]),e=Number(e[4]),b>=0&&b<=255&&c>=0&&c<=255&&d>=0&&d<=255&&e>=0&&e<=1)){b=[b,c,d,e];break b}b=null}if(!b)b:{if(d=a.match(ta))if(b=Number(d[1]),
|
|
31
|
+
c=Number(d[2]),d=Number(d[3]),b>=0&&b<=255&&c>=0&&c<=255&&d>=0&&d<=255){b=[b,c,d,1];break b}b=null}if(!b)b:{b=a.toLowerCase();c=na[b.toLowerCase()];if(!c&&(c=b.charAt(0)=="#"?b:"#"+b,c.length==4&&(c=c.replace(qa,"#$1$1$2$2$3$3")),!ra.test(c))){b=null;break b}b=[parseInt(c.substr(1,2),16),parseInt(c.substr(3,2),16),parseInt(c.substr(5,2),16),1]}a=b?"rgba("+b.join(", ")+")":a}return a}
|
|
32
|
+
function Ua(a,b){var c=a.currentStyle||a.style,d=c[b];d===void 0&&typeof c.getPropertyValue==="function"&&(d=c.getPropertyValue(b));return d!="inherit"?d!==void 0?d:null:(a=Q(a))?Ua(a,b):null}
|
|
33
|
+
function Va(a,b,c){function d(g){var k=S(g);if(k.height>0&&k.width>0)return!0;if(M(g,"PATH")&&(k.height>0||k.width>0))return g=R(g,"stroke-width"),!!g&&parseInt(g,10)>0;k=R(g,"visibility");return k!="collapse"&&k!="hidden"&&c(g)?R(g,"overflow")!="hidden"&&ia(g.childNodes,function(x){return x.nodeType==3?(x=x.nodeValue,/^[\s]*$/.test(x)&&/[\n\r\t]/.test(x)?!1:!0):M(x)&&d(x)}):!1}function e(g){return Wa(g)==T&&ja(g.childNodes,function(k){return!M(k)||e(k)||!d(k)})}if(!M(a))throw Error("Argument to isShown must be of type Element");
|
|
34
|
+
if(M(a,"BODY"))return!0;if(M(a,"OPTION")||M(a,"OPTGROUP"))return a=Qa(a,function(g){return M(g,"SELECT")}),!!a&&Va(a,!0,c);var f=Xa(a);if(f)return!!f.image&&f.rect.width>0&&f.rect.height>0&&Va(f.image,b,c);if(M(a,"INPUT")&&a.type.toLowerCase()=="hidden"||M(a,"NOSCRIPT"))return!1;f=R(a,"visibility");return f!="collapse"&&f!="hidden"&&c(a)&&(b||Ya(a)!=0)&&d(a)?!e(a):!1}
|
|
35
|
+
function Za(a){function b(c){if(M(c)&&(R(c,"display")=="none"||R(c,"content-visibility")=="hidden"))return!1;var d;if((d=c.parentNode)&&d.shadowRoot&&c.assignedSlot!==void 0)d=c.assignedSlot?c.assignedSlot.parentNode:null;else if(c.getDestinationInsertionPoints){var e=c.getDestinationInsertionPoints();e.length>0&&(d=e[e.length-1])}if(Ta&&d instanceof ShadowRoot){if(d.host.shadowRoot&&d.host.shadowRoot!==d)return!1;d=d.host}return!d||d.nodeType!=9&&d.nodeType!=11?d&&M(d,"DETAILS")&&!d.open&&!M(c,"SUMMARY")?
|
|
36
|
+
!1:!!d&&b(d):!0}return Va(a,!1,b)}var T="hidden";
|
|
37
|
+
function Wa(a){function b(l){function r(oa){if(oa==g)return!0;var Ga=R(oa,"display");return Ga.lastIndexOf("inline",0)==0||Ga=="contents"||Ha=="absolute"&&R(oa,"position")=="static"?!1:!0}var Ha=R(l,"position");if(Ha=="fixed")return v=!0,l==g?null:g;for(l=Q(l);l&&!r(l);)l=Q(l);return l}function c(l){var r=l;if(x=="visible")if(l==g&&k)r=k;else if(l==k)return{x:"visible",y:"visible"};r={x:R(r,"overflow-x"),y:R(r,"overflow-y")};l==g&&(r.x=r.x=="visible"?"auto":r.x,r.y=r.y=="visible"?"auto":r.y);return r}
|
|
38
|
+
function d(l){if(l==g){var r=(new Ka(f)).g;l=r.scrollingElement?r.scrollingElement:r.body||r.documentElement;r=r.parentWindow||r.defaultView;l=new F(r.pageXOffset||l.scrollLeft,r.pageYOffset||l.scrollTop)}else l=new F(l.scrollLeft,l.scrollTop);return l}var e=$a(a),f=J(a),g=f.documentElement,k=f.body,x=R(g,"overflow"),v;for(a=b(a);a;a=b(a)){var u=c(a);if(u.x!="visible"||u.y!="visible"){var w=S(a);if(w.width==0||w.height==0)return T;var A=e.g<w.left,I=e.l<w.top;if(A&&u.x=="hidden"||I&&u.y=="hidden")return T;
|
|
39
|
+
if(A&&u.x!="visible"||I&&u.y!="visible"){A=d(a);I=e.l<w.top-A.y;if(e.g<w.left-A.x&&u.x!="visible"||I&&u.x!="visible")return T;e=Wa(a);return e==T?T:"scroll"}A=e.left>=w.left+w.width;w=e.top>=w.top+w.height;if(A&&u.x=="hidden"||w&&u.y=="hidden")return T;if(A&&u.x!="visible"||w&&u.y!="visible"){if(v&&(u=d(a),e.left>=g.scrollWidth-u.x||e.g>=g.scrollHeight-u.y))return T;e=Wa(a);return e==T?T:"scroll"}}}return"none"}
|
|
40
|
+
function S(a){var b=Xa(a);if(b)return b.rect;if(M(a,"HTML"))return a=(Ma(J(a))||window).document,a=a.compatMode=="CSS1Compat"?a.documentElement:a.body,a=new G(a.clientWidth,a.clientHeight),new P(0,0,a.width,a.height);try{var c=a.getBoundingClientRect()}catch(d){return new P(0,0,0,0)}return new P(c.left,c.top,c.right-c.left,c.bottom-c.top)}
|
|
41
|
+
function Xa(a){var b=M(a,"MAP");if(!b&&!M(a,"AREA"))return null;var c=b?a:M(a.parentNode,"MAP")?a.parentNode:null,d=null,e=null;c&&c.name&&(d=N.j('*[usemap="#'+c.name+'"]',J(c)))&&(e=S(d),b||a.shape.toLowerCase()=="default"||(a=ab(a),b=Math.min(Math.max(a.left,0),e.width),c=Math.min(Math.max(a.top,0),e.height),e=new P(b+e.left,c+e.top,Math.min(a.width,e.width-b),Math.min(a.height,e.height-c))));return{image:d,rect:e||new P(0,0,0,0)}}
|
|
42
|
+
function ab(a){var b=a.shape.toLowerCase();a=a.coords.split(",");if(b=="rect"&&a.length==4){b=a[0];var c=a[1];return new P(b,c,a[2]-b,a[3]-c)}if(b=="circle"&&a.length==3)return b=a[2],new P(a[0]-b,a[1]-b,2*b,2*b);if(b=="poly"&&a.length>2){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 P(b,c,d-b,e-c)}return new P(0,0,0,0)}function $a(a){a=S(a);return new O(a.top,a.left+a.width,a.top+a.height,a.left)}
|
|
43
|
+
function bb(a){return a.replace(/^[^\S\xa0]+|[^\S\xa0]+$/g,"")}function cb(a){var b=[];Ta?db(a,b):eb(a,b);a=y(b,bb);return bb(a.join("\n")).replace(/\xa0/g," ")}
|
|
44
|
+
function fb(a,b,c){if(M(a,"BR"))b.push("");else{var d=M(a,"TD"),e=R(a,"display"),f=!d&&!(fa(gb,e)>=0),g=a.previousElementSibling!==void 0?a.previousElementSibling:Na(a.previousSibling);g=g?R(g,"display"):"";var k=R(a,"float")||R(a,"cssFloat")||R(a,"styleFloat");!f||g=="run-in"&&k=="none"||/^[\s\xa0]*$/.test(b[b.length-1]||"")||b.push("");var x=Za(a),v=null,u=null;x&&(v=R(a,"white-space"),u=R(a,"text-transform"));t(a.childNodes,function(w){c(w,b,x,v,u)});a=b[b.length-1]||"";!d&&e!="table-cell"||!a||
|
|
45
|
+
ua(a)||(b[b.length-1]+=" ");f&&e!="run-in"&&!/^[\s\xa0]*$/.test(a)&&b.push("")}}function eb(a,b){fb(a,b,function(c,d,e,f,g){c.nodeType==3&&e?hb(c,d,f,g):M(c)&&eb(c,d)})}var gb="inline inline-block inline-table none table-cell table-column table-column-group".split(" ");
|
|
46
|
+
function hb(a,b,c,d){a=a.nodeValue.replace(/[\u200b\u200e\u200f]/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"?(c=/(^|[^'_0-9A-Za-z\u00C0-\u02AF\u1E00-\u1EFF\u24B6-\u24E9\u0300-\u036F\u1AB0-\u1AFF\u1DC0-\u1DFF])([A-Za-z\u00C0-\u02AF\u1E00-\u1EFF\u24B6-\u24E9])/g,a=a.replace(c,function(){return arguments[1]+arguments[2].toUpperCase()}),
|
|
47
|
+
c=/(^|[^'_0-9A-Za-z\u00C0-\u02AF\u1E00-\u1EFF\u24B6-\u24E9])([_*])([A-Za-z\u00C0-\u02AF\u1E00-\u1EFF\u24D0-\u24E9])/g,a=a.replace(c,function(){return arguments[1]+arguments[2]+arguments[3].toUpperCase()})):d=="uppercase"?a=a.toUpperCase():d=="lowercase"&&(a=a.toLowerCase());c=b.pop()||"";ua(c)&&a.lastIndexOf(" ",0)==0&&(a=a.substr(1));b.push(c+a)}function Ya(a){var b=1,c=R(a,"opacity");c&&(b=Number(c));(a=Q(a))&&(b*=Ya(a));return b}
|
|
48
|
+
function ib(a,b,c,d,e){if(a.nodeType==3&&c)hb(a,b,d,e);else if(M(a))if(M(a,"CONTENT")||M(a,"SLOT")){for(var f=a;f.parentNode;)f=f.parentNode;f instanceof ShadowRoot?(f=M(a,"CONTENT")?a.getDistributedNodes():a.assignedNodes(),t(f.length>0?f:a.childNodes,function(g){ib(g,b,c,d,e)})):db(a,b)}else if(M(a,"SHADOW")){for(f=a;f.parentNode;)f=f.parentNode;if(f instanceof ShadowRoot&&(a=f))for(a=a.olderShadowRoot;a;)t(a.childNodes,function(g){ib(g,b,c,d,e)}),a=a.olderShadowRoot}else db(a,b)}
|
|
49
|
+
function db(a,b){if(a.shadowRoot){var c=R(a,"white-space"),d=R(a,"text-transform");t(a.shadowRoot.childNodes,function(e){ib(e,b,!0,c,d)})}fb(a,b,function(e,f,g,k,x){var v=null;e.nodeType==1?v=e:e.nodeType==3&&(v=e);v!=null&&(v.assignedSlot!=null||v.getDestinationInsertionPoints&&v.getDestinationInsertionPoints().length>0)||ib(e,f,g,k,x)})};var jb={o:function(a){return!(!a.querySelectorAll||!a.querySelector)},j:function(a,b){if(!a)throw new n(32,"No class name specified");a=z(a);if(a.indexOf(" ")!==-1)throw new n(32,"Compound class names not permitted");if(jb.o(b))try{return b.querySelector("."+a.replace(/\./g,"\\."))||null}catch(c){throw new n(32,"An invalid or illegal class name was specified");}a=K(H(b),"*",a,b);return a.length?a[0]:null},h:function(a,b){if(!a)throw new n(32,"No class name specified");a=z(a);if(a.indexOf(" ")!==-1)throw new n(32,
|
|
50
|
+
"Compound class names not permitted");if(jb.o(b))try{return b.querySelectorAll("."+a.replace(/\./g,"\\."))}catch(c){throw new n(32,"An invalid or illegal class name was specified");}return K(H(b),"*",a,b)}};var kb={o:function(a,b){return!(!a.querySelectorAll||!a.querySelector)&&!/^\d.*/.test(b)},j:function(a,b){var c=H(b),d=La(c.g,a);return d?L(d,"id")==a&&b!=d&&Oa(b,d)?d:ka(K(c,"*"),function(e){return L(e,"id")==a&&b!=e&&Oa(b,e)}):null},h:function(a,b){if(!a)return[];if(kb.o(b,a))try{return b.querySelectorAll("#"+kb.I(a))}catch(c){return[]}b=K(H(b),"*",null,b);return ha(b,function(c){return L(c,"id")==a})},I:function(a){return a.replace(/([\s'"\\#.:;,!?+<>=~*^$|%&@`{}\-\/\[\]\(\)])/g,"\\$1")}};var U={},lb={};U.C=function(a,b,c){try{var d=N.h("a",b)}catch(e){d=K(H(b),"A",null,b)}return ka(d,function(e){e=cb(e);e=e.replace(/^[\s]+|[\s]+$/g,"");return c&&e.indexOf(a)!=-1||e==a})};U.B=function(a,b,c){try{var d=N.h("a",b)}catch(e){d=K(H(b),"A",null,b)}return ha(d,function(e){e=cb(e);e=e.replace(/^[\s]+|[\s]+$/g,"");return c&&e.indexOf(a)!=-1||e==a})};U.j=function(a,b){return U.C(a,b,!1)};U.h=function(a,b){return U.B(a,b,!1)};lb.j=function(a,b){return U.C(a,b,!0)};
|
|
51
|
+
lb.h=function(a,b){return U.B(a,b,!0)};var V={m:function(a,b){return function(c){var d=V.i(a);d=S(d);c=S(c);return b.call(null,d,c)}},G:function(a){return V.m(a,function(b,c){return c.top+c.height<=b.top})},H:function(a){return V.m(a,function(b,c){return c.top>=b.top+b.height})},K:function(a){return V.m(a,function(b,c){return c.left+c.width<=b.left})},M:function(a){return V.m(a,function(b,c){return c.left>=b.left+b.width})},O:function(a){return V.m(a,function(b,c){return c.left<b.left+b.width&&c.left+c.width>b.left&&c.top+c.height<=b.top})},
|
|
52
|
+
P:function(a){return V.m(a,function(b,c){return c.left<b.left+b.width&&c.left+c.width>b.left&&c.top>=b.top+b.height})},R:function(a){return V.m(a,function(b,c){return c.top<b.top+b.height&&c.top+c.height>b.top&&c.left+c.width<=b.left})},S:function(a){return V.m(a,function(b,c){return c.top<b.top+b.height&&c.top+c.height>b.top&&c.left>=b.left+b.width})},L:function(a,b){var c;b?c=b:typeof a.distance==="number"&&(c=a.distance);c||(c=50);return function(d){var e=V.i(a);if(e===d)return!1;e=S(e);d=S(d);
|
|
53
|
+
e=new P(e.left-c,e.top-c,e.width+c*2,e.height+c*2);return e.left<=d.left+d.width&&d.left<=e.left+e.width&&e.top<=d.top+d.height&&d.top<=e.top+e.height}},i:function(a){if(ba(a)&&a.nodeType==1)return a;if(typeof a==="function")return V.i(a.call(null));if(ba(a)){var b;a:{if(b=mb(a)){var c=nb[b];if(c&&typeof c.j==="function"){b=c.j(a[b],m.document);break a}}throw new n(61,"Unsupported locator strategy: "+b);}if(!b)throw new n(7,"No element has been found by "+JSON.stringify(a));return b}throw new n(61,
|
|
54
|
+
"Selector is of wrong type: "+JSON.stringify(a));}};V.F={above:V.G,below:V.H,left:V.K,near:V.L,right:V.M,straightAbove:V.O,straightBelow:V.P,straightLeft:V.R,straightRight:V.S};V.D={above:V.i,below:V.i,left:V.i,near:V.i,right:V.i,straightAbove:V.i,straightBelow:V.i,straightLeft:V.i,straightRight:V.i};
|
|
55
|
+
V.J=function(a,b){var c=[];t(a,function(e){e&&ja(b,function(f){var g=f.kind,k=V.F[g];if(!k)throw new n(61,"Cannot find filter suitable for "+g);return k.apply(null,f.args)(e)},null)&&c.push(e)},null);a=b[b.length-1];var d=V.D[a?a.kind:"unknown"];return d?(a=d.apply(null,a.args))?V.N(a,c):c:c};
|
|
56
|
+
V.N=function(a,b){function c(f){f=S(f);return Math.sqrt(Math.pow(d-(f.left+Math.max(1,f.width)/2),2)+Math.pow(e-(f.top+Math.max(1,f.height)/2),2))}a=S(a);var d=a.left+Math.max(1,a.width)/2,e=a.top+Math.max(1,a.height)/2;la(b,function(f,g){return c(f)-c(g)});return b};V.j=function(a,b){a=V.h(a,b);return a.length==0?null:a[0]};
|
|
57
|
+
V.h=function(a,b){if(!a.hasOwnProperty("root")||!a.hasOwnProperty("filters"))throw new n(61,"Locator not suitable for relative locators: "+JSON.stringify(a));if(!da(a.filters))throw new n(61,"Targets should be an array: "+JSON.stringify(a));var c;M(a.root)?c=[a.root]:c=ob(a.root,b);return c.length==0?[]:V.J(c,a.filters)};var pb={j:function(a,b){if(a==="")throw new n(32,'Unable to locate an element with the tagName ""');return b.getElementsByTagName(a)[0]||null},h:function(a,b){if(a==="")throw new n(32,'Unable to locate an element with the tagName ""');return b.getElementsByTagName(a)}};var W={};W.u=function(){var a={U:"http://www.w3.org/2000/svg"};return function(b){return a[b]||null}}();
|
|
58
|
+
W.A=function(a,b,c){var d=J(a);if(!d.documentElement)return null;try{for(var e=d.createNSResolver?d.createNSResolver(d.documentElement):W.u,f={},g=d.getElementsByTagName("*"),k=0;k<g.length;++k){var x=g[k],v=x.namespaceURI;if(v&&!f[v]){var u=x.lookupPrefix(v);if(!u){var w=v.match(".*/(\\w+)/?$");u=w?w[1]:"xhtml"}f[v]=u}}var A={},I;for(I in f)A[f[I]]=I;e=function(l){return A[l]||null};try{return d.evaluate(b,a,e,c,null)}catch(l){if(l.name==="TypeError")return e=d.createNSResolver?d.createNSResolver(d.documentElement):
|
|
59
|
+
W.u,d.evaluate(b,a,e,c,null);throw l;}}catch(l){throw new n(32,"Unable to locate an element with the xpath expression "+b+" because of the following error:\n"+l);}};W.v=function(a,b){if(!a||a.nodeType!=1)throw new n(32,'The result of the xpath expression "'+b+'" is: '+a+". It should be an element.");};
|
|
60
|
+
W.j=function(a,b){var c=function(){var d=W.A(b,a,9);return d?d.singleNodeValue||null:b.selectSingleNode?(d=J(b),d.setProperty&&d.setProperty("SelectionLanguage","XPath"),b.selectSingleNode(a)):null}();c!==null&&W.v(c,a);return c};
|
|
61
|
+
W.h=function(a,b){var c=function(){var d=W.A(b,a,7);if(d){for(var e=d.snapshotLength,f=[],g=0;g<e;++g)f.push(d.snapshotItem(g));return f}return b.selectNodes?(d=J(b),d.setProperty&&d.setProperty("SelectionLanguage","XPath"),b.selectNodes(a)):[]}();t(c,function(d){W.v(d,a)});return c};var nb={className:jb,"class name":jb,css:N,"css selector":N,relative:V,id:kb,linkText:U,"link text":U,name:{j:function(a,b){b=K(H(b),"*",null,b);return ka(b,function(c){return L(c,"name")==a})},h:function(a,b){b=K(H(b),"*",null,b);return ha(b,function(c){return L(c,"name")==a})}},partialLinkText:lb,"partial link text":lb,tagName:pb,"tag name":pb,xpath:W};function mb(a){for(var b in a)if(a.hasOwnProperty(b))return b;return null}
|
|
62
|
+
function ob(a,b){var c=mb(a);if(c){var d=nb[c];if(d&&typeof d.h==="function")return d.h(a[c],b||m.document)}throw new n(61,"Unsupported locator strategy: "+c);};function qb(a,b){var c=b||m,d=c.frames.length;for(b=0;b<d;b++){var e=c.frames[b],f=e.frameElement||e;if(f.name==a)return e.document?e:Pa(e)}a=ob({id:a},c.document);for(b=0;b<a.length;b++)if((f=a[b])&&(M(f,"FRAME")||M(f,"IFRAME")))return Pa(f);return null};var rb=JSON.stringify;function sb(a){function b(c,d){switch(ca(c)){case "string":case "number":case "boolean":return c;case "function":return c.toString();case "array":return y(c,function(f){return b(f,d)});case "object":if(d.indexOf(c)>=0)throw new n(17,"Recursive object cannot be transferred");if(B(c,"nodeType")&&(c.nodeType==1||c.nodeType==9)){var e={};e.ELEMENT=tb(c);return e}if(B(c,"document"))return e={},e.WINDOW=tb(c),e;d.push(c);if(da(c))return y(c,function(f){return b(f,d)});c=va(c,function(f,g){return typeof g===
|
|
63
|
+
"number"||typeof g==="string"});return wa(c,function(f){return b(f,d)});default:return null}}return b(a,[])}function ub(a,b){return Array.isArray(a)?y(a,function(c){return ub(c,b)}):ba(a)?typeof a=="function"?a:B(a,"ELEMENT")?vb(a.ELEMENT,b):B(a,"WINDOW")?vb(a.WINDOW,b):wa(a,function(c){return ub(c,b)}):a}function wb(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.s=Date.now());b.s||(b.s=Date.now());return b}
|
|
64
|
+
function tb(a){var b=wb(a.ownerDocument),c=xa(b,function(d){return d==a});c||(c=":wdc:"+b.s++,b[c]=a);return c}
|
|
65
|
+
function vb(a,b){a=decodeURIComponent(a);b=b||document;var c=wb(b);if(!B(c,a))throw new n(10,"Element does not exist in cache");var d=c[a];if(B(d,"setInterval")){if(d.closed)throw delete c[a],new n(23,"Window has been closed.");return d}for(var e=d;e;){if(e==b.documentElement)return d;e.host&&e.nodeType===11&&(e=e.host);e=e.parentNode}delete c[a];throw new n(10,"Element is no longer attached to the DOM");};function xb(a,b){a=[a,b];b=qb;var c=window||m;try{a:{var d=b;if(typeof d==="string")try{b=new c.Function(d);break a}catch(g){throw g;}b=c==window?d:new c.Function("return ("+d+").apply(null,arguments);")}var e=ub(a,c.document);var f={status:0,value:sb(b.apply(null,e))}}catch(g){f={status:B(g,"code")?g.code:13,value:{message:g.message}}}return rb(f)}var X=["se_exportedFunctionSymbol"],Y=h;X[0]in Y||typeof Y.execScript=="undefined"||Y.execScript("var "+X[0]);
|
|
66
|
+
for(var Z;X.length&&(Z=X.shift());)X.length||xb===void 0?Y[Z]&&Y[Z]!==Object.prototype[Z]?Y=Y[Z]:Y=Y[Z]={}:Y[Z]=xb;; return this.se_exportedFunctionSymbol.apply(null,arguments);}).apply(window, arguments);}
|