appium-remote-debugger 15.7.0 → 15.7.2
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 +12 -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 +2 -2
package/atoms/frame_by_index.js
CHANGED
|
@@ -1,74 +1,19 @@
|
|
|
1
|
-
function(){return (function(){
|
|
2
|
-
function l(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 ba(a){var b=l(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ca(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function da(a,b,c){return a.call.apply(a.bind,arguments)}
|
|
4
|
-
function ea(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 fa(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?fa=da:fa=ea;return fa.apply(null,arguments)}
|
|
5
|
-
function ha(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 ia=Date.now||function(){return+new Date};function m(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 e=this||self;try{var f=window}catch(a){f=e};/*
|
|
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
|
-
function
|
|
34
|
-
|
|
35
|
-
function
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
-
function N(a,b,c,d,e){b=b.a(d);c=c.a(d);var f;if(b instanceof D&&c instanceof D){b=F(b);for(d=G(b);d;d=G(b))for(e=F(c),f=G(e);f;f=G(e))if(a(z(d),z(f)))return!0;return!1}if(b instanceof D||c instanceof D){b instanceof D?(e=b,d=c):(e=c,d=b);f=F(e);for(var g=typeof d,n=G(f);n;n=G(f)){switch(g){case "number":n=+z(n);break;case "boolean":n=!!z(n);break;case "string":n=z(n);break;default:throw Error("Illegal primitive type for comparison.");}if(e==b&&a(n,d)||e==c&&a(d,n))return!0}return!1}return e?"boolean"==
|
|
39
|
-
typeof b||"boolean"==typeof c?a(!!b,!!c):"number"==typeof b||"number"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}M.prototype.a=function(a){return this.c.m(this.h,this.o,a)};M.prototype.toString=function(){var a="Binary Expression: "+this.c;a+=I(this.h);return a+=I(this.o)};function Qa(a,b,c,d){this.J=a;this.F=b;this.i=c;this.m=d}Qa.prototype.toString=function(){return this.J};var Ra={};
|
|
40
|
-
function O(a,b,c,d){if(Ra.hasOwnProperty(a))throw Error("Binary operator already created: "+a);a=new Qa(a,b,c,d);return Ra[a.toString()]=a}O("div",6,1,function(a,b,c){return J(a,c)/J(b,c)});O("mod",6,1,function(a,b,c){return J(a,c)%J(b,c)});O("*",6,1,function(a,b,c){return J(a,c)*J(b,c)});O("+",5,1,function(a,b,c){return J(a,c)+J(b,c)});O("-",5,1,function(a,b,c){return J(a,c)-J(b,c)});O("<",4,2,function(a,b,c){return N(function(d,e){return d<e},a,b,c)});
|
|
41
|
-
O(">",4,2,function(a,b,c){return N(function(d,e){return d>e},a,b,c)});O("<=",4,2,function(a,b,c){return N(function(d,e){return d<=e},a,b,c)});O(">=",4,2,function(a,b,c){return N(function(d,e){return d>=e},a,b,c)});var Pa=O("=",3,2,function(a,b,c){return N(function(d,e){return d==e},a,b,c,!0)});O("!=",3,2,function(a,b,c){return N(function(d,e){return d!=e},a,b,c,!0)});O("and",2,2,function(a,b,c){return L(a,c)&&L(b,c)});O("or",1,2,function(a,b,c){return L(a,c)||L(b,c)});function Sa(a,b){if(b.a.length&&4!=a.i)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");H.call(this,a.i);this.c=a;this.h=b;this.g=a.g;this.b=a.b}m(Sa,H);Sa.prototype.a=function(a){a=this.c.a(a);return Ta(this.h,a)};Sa.prototype.toString=function(){var a="Filter:"+I(this.c);return a+=I(this.h)};function Ua(a,b){if(b.length<a.D)throw Error("Function "+a.j+" expects at least"+a.D+" arguments, "+b.length+" given");if(null!==a.B&&b.length>a.B)throw Error("Function "+a.j+" expects at most "+a.B+" arguments, "+b.length+" given");a.I&&q(b,function(c,d){if(4!=c.i)throw Error("Argument "+d+" to function "+a.j+" is not of type Nodeset: "+c);});H.call(this,a.i);this.v=a;this.c=b;Na(this,a.g||la(b,function(c){return c.g}));Oa(this,a.H&&!b.length||a.G&&!!b.length||la(b,function(c){return c.b}))}
|
|
42
|
-
m(Ua,H);Ua.prototype.a=function(a){return this.v.m.apply(null,ma(a,this.c))};Ua.prototype.toString=function(){var a="Function: "+this.v;if(this.c.length){var b=r(this.c,function(c,d){return c+I(d)},"Arguments:");a+=I(b)}return a};function Va(a,b,c,d,e,f,g,n){this.j=a;this.i=b;this.g=c;this.H=d;this.G=!1;this.m=e;this.D=f;this.B=void 0!==g?g:f;this.I=!!n}Va.prototype.toString=function(){return this.j};var Wa={};
|
|
43
|
-
function P(a,b,c,d,e,f,g,n){if(Wa.hasOwnProperty(a))throw Error("Function already created: "+a+".");Wa[a]=new Va(a,b,c,d,e,f,g,n)}P("boolean",2,!1,!1,function(a,b){return L(b,a)},1);P("ceiling",1,!1,!1,function(a,b){return Math.ceil(J(b,a))},1);P("concat",3,!1,!1,function(a,b){return r(na(arguments,1),function(c,d){return c+K(d,a)},"")},2,null);P("contains",2,!1,!1,function(a,b,c){b=K(b,a);a=K(c,a);return-1!=b.indexOf(a)},2);P("count",1,!1,!1,function(a,b){return b.a(a).l},1,1,!0);
|
|
44
|
-
P("false",2,!1,!1,function(){return!1},0);P("floor",1,!1,!1,function(a,b){return Math.floor(J(b,a))},1);P("id",4,!1,!1,function(a,b){var c=a.a,d=9==c.nodeType?c:c.ownerDocument;a=K(b,a).split(/\s+/);var e=[];q(a,function(g){g=d.getElementById(g);!g||0<=ja(e,g)||e.push(g)});e.sort(Ca);var f=new D;q(e,function(g){f.add(g)});return f},1);P("lang",2,!1,!1,function(){return!1},1);P("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.f},0);
|
|
45
|
-
P("local-name",3,!1,!0,function(a,b){return(a=b?Ka(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);P("name",3,!1,!0,function(a,b){return(a=b?Ka(b.a(a)):a.a)?a.nodeName.toLowerCase():""},0,1,!0);P("namespace-uri",3,!0,!1,function(){return""},0,1,!0);P("normalize-space",3,!1,!0,function(a,b){return(b?K(b,a):z(a.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);P("not",2,!1,!1,function(a,b){return!L(b,a)},1);P("number",1,!1,!0,function(a,b){return b?J(b,a):+z(a.a)},0,1);
|
|
46
|
-
P("position",1,!0,!1,function(a){return a.b},0);P("round",1,!1,!1,function(a,b){return Math.round(J(b,a))},1);P("starts-with",2,!1,!1,function(a,b,c){b=K(b,a);a=K(c,a);return 0==b.lastIndexOf(a,0)},2);P("string",3,!1,!0,function(a,b){return b?K(b,a):z(a.a)},0,1);P("string-length",1,!1,!0,function(a,b){return(b?K(b,a):z(a.a)).length},0,1);
|
|
47
|
-
P("substring",3,!1,!1,function(a,b,c,d){c=J(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?J(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=K(b,a);return Infinity==d?a.substring(e):a.substring(e,c+Math.round(d))},2,3);P("substring-after",3,!1,!1,function(a,b,c){b=K(b,a);a=K(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
|
|
48
|
-
P("substring-before",3,!1,!1,function(a,b,c){b=K(b,a);a=K(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);P("sum",1,!1,!1,function(a,b){a=F(b.a(a));b=0;for(var c=G(a);c;c=G(a))b+=+z(c);return b},1,1,!0);P("translate",3,!1,!1,function(a,b,c,d){b=K(b,a);c=K(c,a);var e=K(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);P("true",2,!1,!1,function(){return!0},0);function E(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 Xa(a){return"comment"==a||"text"==a||"processing-instruction"==a||"node"==a}E.prototype.a=function(a){return null===this.b||this.b==a.nodeType};E.prototype.f=function(){return this.h};
|
|
49
|
-
E.prototype.toString=function(){var a="Kind Test: "+this.h;null===this.c||(a+=I(this.c));return a};function Ya(a){H.call(this,3);this.c=a.substring(1,a.length-1)}m(Ya,H);Ya.prototype.a=function(){return this.c};Ya.prototype.toString=function(){return"Literal: "+this.c};function R(a,b){this.j=a.toLowerCase();a="*"==this.j?"*":"http://www.w3.org/1999/xhtml";this.b=b?b.toLowerCase():a}R.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.j&&this.j!=b.toLowerCase()?!1:"*"==this.b?!0:this.b==(a.namespaceURI?a.namespaceURI.toLowerCase():"http://www.w3.org/1999/xhtml")};R.prototype.f=function(){return this.j};
|
|
50
|
-
R.prototype.toString=function(){return"Name Test: "+("http://www.w3.org/1999/xhtml"==this.b?"":this.b+":")+this.j};function Za(a){H.call(this,1);this.c=a}m(Za,H);Za.prototype.a=function(){return this.c};Za.prototype.toString=function(){return"Number: "+this.c};function $a(a,b){H.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.A||a.c!=ab||(a=a.o,"*"!=a.f()&&(this.f={name:a.f(),u:null})))}m($a,H);function S(){H.call(this,4)}m(S,H);S.prototype.a=function(a){var b=new D;a=a.a;9==a.nodeType?b.add(a):b.add(a.ownerDocument);return b};S.prototype.toString=function(){return"Root Helper Expression"};function bb(){H.call(this,4)}m(bb,H);bb.prototype.a=function(a){var b=new D;b.add(a.a);return b};bb.prototype.toString=function(){return"Context Helper Expression"};
|
|
51
|
-
function cb(a){return"/"==a||"//"==a}$a.prototype.a=function(a){var b=this.h.a(a);if(!(b instanceof D))throw Error("Filter expression must evaluate to nodeset.");a=this.c;for(var c=0,d=a.length;c<d&&b.l;c++){var e=a[c],f=F(b,e.c.s);if(e.g||e.c!=db)if(e.g||e.c!=eb){var g=G(f);for(b=e.a(new p(g));null!=(g=G(f));)g=e.a(new p(g)),b=Ia(b,g)}else g=G(f),b=e.a(new p(g));else{for(g=G(f);(b=G(f))&&(!g.contains||g.contains(b))&&b.compareDocumentPosition(g)&8;g=b);b=e.a(new p(g))}}return b};
|
|
52
|
-
$a.prototype.toString=function(){var a="Path Expression:"+I(this.h);if(this.c.length){var b=r(this.c,function(c,d){return c+I(d)},"Steps:");a+=I(b)}return a};function fb(a,b){this.a=a;this.s=!!b}
|
|
53
|
-
function Ta(a,b,c){for(c=c||0;c<a.a.length;c++)for(var d=a.a[c],e=F(b),f=b.l,g,n=0;g=G(e);n++){var x=a.s?f-n:n+1;g=d.a(new p(g,x,f));if("number"==typeof g)x=x==g;else if("string"==typeof g||"boolean"==typeof g)x=!!g;else if(g instanceof D)x=0<g.l;else throw Error("Predicate.evaluate returned an unexpected type.");if(!x){x=e;g=x.f;var C=x.a;if(!C)throw Error("Next must be called at least once before remove.");var Q=C.b;C=C.a;Q?Q.a=C:g.a=C;C?C.b=Q:g.b=Q;g.l--;x.a=null}}return b}
|
|
54
|
-
fb.prototype.toString=function(){return r(this.a,function(a,b){return a+I(b)},"Predicates:")};function T(a,b,c,d){H.call(this,4);this.c=a;this.o=b;this.h=c||new fb([]);this.A=!!d;b=this.h;b=0<b.a.length?b.a[0].f:null;a.K&&b&&(this.f={name:b.name,u:b.u});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}m(T,H);
|
|
55
|
-
T.prototype.a=function(a){var b=a.a,c=this.f,d=null,e=null,f=0;c&&(d=c.name,e=c.u?K(c.u,a):null,f=1);if(this.A)if(this.g||this.c!=gb)if(b=F((new T(hb,new E("node"))).a(a)),c=G(b))for(a=this.m(c,d,e,f);null!=(c=G(b));)a=Ia(a,this.m(c,d,e,f));else a=new D;else a=B(this.o,b,d,e),a=Ta(this.h,a,f);else a=this.m(a.a,d,e,f);return a};T.prototype.m=function(a,b,c,d){a=this.c.v(this.o,a,b,c);return a=Ta(this.h,a,d)};
|
|
56
|
-
T.prototype.toString=function(){var a="Step:"+I("Operator: "+(this.A?"//":"/"));this.c.j&&(a+=I("Axis: "+this.c));a+=I(this.o);if(this.h.a.length){var b=r(this.h.a,function(c,d){return c+I(d)},"Predicates:");a+=I(b)}return a};function ib(a,b,c,d){this.j=a;this.v=b;this.s=c;this.K=d}ib.prototype.toString=function(){return this.j};var jb={};function U(a,b,c,d){if(jb.hasOwnProperty(a))throw Error("Axis already created: "+a);b=new ib(a,b,c,!!d);return jb[a]=b}
|
|
57
|
-
U("ancestor",function(a,b){for(var c=new D;b=b.parentNode;)a.a(b)&&Ja(c,b);return c},!0);U("ancestor-or-self",function(a,b){var c=new D;do a.a(b)&&Ja(c,b);while(b=b.parentNode);return c},!0);
|
|
58
|
-
var ab=U("attribute",function(a,b){var c=new D,d=a.f();if(b=b.attributes)if(a instanceof E&&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),gb=U("child",function(a,b,c,d,e){c=k(c)?c:null;d=k(d)?d:null;e=e||new D;for(b=b.firstChild;b;b=b.nextSibling)A(b,c,d)&&a.a(b)&&e.add(b);return e},!1,!0);U("descendant",B,!1,!0);
|
|
59
|
-
var hb=U("descendant-or-self",function(a,b,c,d){var e=new D;A(b,c,d)&&a.a(b)&&e.add(b);return B(a,b,c,d,e)},!1,!0),db=U("following",function(a,b,c,d){var e=new D;do for(var f=b;f=f.nextSibling;)A(f,c,d)&&a.a(f)&&e.add(f),e=B(a,f,c,d,e);while(b=b.parentNode);return e},!1,!0);U("following-sibling",function(a,b){for(var c=new D;b=b.nextSibling;)a.a(b)&&c.add(b);return c},!1);U("namespace",function(){return new D},!1);
|
|
60
|
-
var kb=U("parent",function(a,b){var c=new D;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),eb=U("preceding",function(a,b,c,d){var e=new D,f=[];do f.unshift(b);while(b=b.parentNode);for(var g=1,n=f.length;g<n;g++){var x=[];for(b=f[g];b=b.previousSibling;)x.unshift(b);for(var C=0,Q=x.length;C<Q;C++)b=x[C],A(b,c,d)&&a.a(b)&&e.add(b),e=B(a,b,c,d,e)}return e},!0,!0);
|
|
61
|
-
U("preceding-sibling",function(a,b){for(var c=new D;b=b.previousSibling;)a.a(b)&&Ja(c,b);return c},!0);var lb=U("self",function(a,b){var c=new D;a.a(b)&&c.add(b);return c},!1);function mb(a){H.call(this,1);this.c=a;this.g=a.g;this.b=a.b}m(mb,H);mb.prototype.a=function(a){return-J(this.c,a)};mb.prototype.toString=function(){return"Unary Expression: -"+I(this.c)};function nb(a){H.call(this,4);this.c=a;Na(this,la(this.c,function(b){return b.g}));Oa(this,la(this.c,function(b){return b.b}))}m(nb,H);nb.prototype.a=function(a){var b=new D;q(this.c,function(c){c=c.a(a);if(!(c instanceof D))throw Error("Path expression must evaluate to NodeSet.");b=Ia(b,c)});return b};nb.prototype.toString=function(){return r(this.c,function(a,b){return a+I(b)},"Union Expression:")};function ob(a,b){this.a=a;this.b=b}function pb(a){for(var b,c=[];;){V(a,"Missing right hand side of binary expression.");b=qb(a);var d=y(a.a);if(!d)break;var e=(d=Ra[d]||null)&&d.F;if(!e){a.a.a--;break}for(;c.length&&e<=c[c.length-1].F;)b=new M(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new M(c.pop(),c.pop(),b);return b}function V(a,b){if(Aa(a.a))throw Error(b);}function rb(a,b){a=y(a.a);if(a!=b)throw Error("Bad token, expected: "+b+" got: "+a);}
|
|
62
|
-
function sb(a){a=y(a.a);if(")"!=a)throw Error("Bad token: "+a);}function tb(a){a=y(a.a);if(2>a.length)throw Error("Unclosed literal string");return new Ya(a)}
|
|
63
|
-
function ub(a){var b=[];if(cb(w(a.a))){var c=y(a.a);var d=w(a.a);if("/"==c&&(Aa(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new S;d=new S;V(a,"Missing next location step.");c=vb(a,c);b.push(c)}else{a:{c=w(a.a);d=c.charAt(0);switch(d){case "$":throw Error("Variable reference not allowed in HTML XPath");case "(":y(a.a);c=pb(a);V(a,'unclosed "("');rb(a,")");break;case '"':case "'":c=tb(a);break;default:if(isNaN(+c))if(!Xa(c)&&/(?![0-9])[\w]/.test(d)&&"("==w(a.a,1)){c=y(a.a);
|
|
64
|
-
c=Wa[c]||null;y(a.a);for(d=[];")"!=w(a.a);){V(a,"Missing function argument list.");d.push(pb(a));if(","!=w(a.a))break;y(a.a)}V(a,"Unclosed function argument list.");sb(a);c=new Ua(c,d)}else{c=null;break a}else c=new Za(+y(a.a))}"["==w(a.a)&&(d=new fb(wb(a)),c=new Sa(c,d))}if(c)if(cb(w(a.a)))d=c;else return c;else c=vb(a,"/"),d=new bb,b.push(c)}for(;cb(w(a.a));)c=y(a.a),V(a,"Missing next location step."),c=vb(a,c),b.push(c);return new $a(d,b)}
|
|
65
|
-
function vb(a,b){if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==w(a.a)){var c=new T(lb,new E("node"));y(a.a);return c}if(".."==w(a.a))return c=new T(kb,new E("node")),y(a.a),c;if("@"==w(a.a)){var d=ab;y(a.a);V(a,"Missing attribute name")}else if("::"==w(a.a,1)){if(!/(?![0-9])[\w]/.test(w(a.a).charAt(0)))throw Error("Bad token: "+y(a.a));var e=y(a.a);d=jb[e]||null;if(!d)throw Error("No axis with name: "+e);y(a.a);V(a,"Missing node name")}else d=gb;e=w(a.a);if(/(?![0-9])[\w\*]/.test(e.charAt(0)))if("("==
|
|
66
|
-
w(a.a,1)){if(!Xa(e))throw Error("Invalid node type: "+e);e=y(a.a);if(!Xa(e))throw Error("Invalid type name: "+e);rb(a,"(");V(a,"Bad nodetype");var f=w(a.a).charAt(0),g=null;if('"'==f||"'"==f)g=tb(a);V(a,"Bad nodetype");sb(a);e=new E(e,g)}else if(e=y(a.a),f=e.indexOf(":"),-1==f)e=new R(e);else{g=e.substring(0,f);if("*"==g)var n="*";else if(n=a.b(g),!n)throw Error("Namespace prefix not declared: "+g);e=e.substr(f+1);e=new R(e,n)}else throw Error("Bad token: "+y(a.a));a=new fb(wb(a),d.s);return c||new T(d,
|
|
67
|
-
e,a,"//"==b)}function wb(a){for(var b=[];"["==w(a.a);){y(a.a);V(a,"Missing predicate expression.");var c=pb(a);b.push(c);V(a,"Unclosed predicate expression.");rb(a,"]")}return b}function qb(a){if("-"==w(a.a))return y(a.a),new mb(qb(a));var b=ub(a);if("|"!=w(a.a))a=b;else{for(b=[b];"|"==y(a.a);)V(a,"Missing next union location path."),b.push(ub(a));a.a.a--;a=new nb(b)}return a};function xb(a){switch(a.nodeType){case 1:return ha(yb,a);case 9:return xb(a.documentElement);case 11:case 10:case 6:case 12:return zb;default:return a.parentNode?xb(a.parentNode):zb}}function zb(){return null}function yb(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?yb(a.parentNode,b):null};function Ab(a,b){if(!a.length)throw Error("Empty XPath expression.");a=xa(a);if(Aa(a))throw Error("Invalid XPath expression.");b?"function"==l(b)||(b=fa(b.lookupNamespaceURI,b)):b=function(){return null};var c=pb(new ob(a,b));if(!Aa(a))throw Error("Bad token: "+y(a));this.evaluate=function(d,e){d=c.a(new p(d));return new W(d,e)}}
|
|
68
|
-
function W(a,b){if(0==b)if(a instanceof D)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 D))throw Error("value could not be converted to the specified type");this.resultType=b;switch(b){case 2:this.stringValue=a instanceof D?La(a):""+a;break;case 1:this.numberValue=a instanceof D?+La(a):+a;break;case 3:this.booleanValue=a instanceof D?0<a.l:!!a;break;case 4:case 5:case 6:case 7:var c=
|
|
69
|
-
F(a);var d=[];for(var e=G(c);e;e=G(c))d.push(e);this.snapshotLength=a.l;this.invalidIteratorState=!1;break;case 8:case 9:this.singleNodeValue=Ka(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]}}W.ANY_TYPE=0;
|
|
70
|
-
W.NUMBER_TYPE=1;W.STRING_TYPE=2;W.BOOLEAN_TYPE=3;W.UNORDERED_NODE_ITERATOR_TYPE=4;W.ORDERED_NODE_ITERATOR_TYPE=5;W.UNORDERED_NODE_SNAPSHOT_TYPE=6;W.ORDERED_NODE_SNAPSHOT_TYPE=7;W.ANY_UNORDERED_NODE_TYPE=8;W.FIRST_ORDERED_NODE_TYPE=9;function Bb(a){this.lookupNamespaceURI=xb(a)}
|
|
71
|
-
function Cb(a,b){a=a||h;var c=a.Document&&a.Document.prototype||a.document;if(!c.evaluate||b)a.XPathResult=W,c.evaluate=function(d,e,f,g){return(new Ab(d,f)).evaluate(e,g)},c.createExpression=function(d,e){return new Ab(d,e)},c.createNSResolver=function(d){return new Bb(d)}}aa("wgxpath.install",Cb);aa("wgxpath.install",Cb);var Db=window;function X(a,b){this.code=a;this.a=Y[a]||Eb;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||""}m(X,Error);var Eb="unknown error",Y={15:"element not selectable",11:"element not visible"};Y[31]=Eb;Y[30]=Eb;Y[24]="invalid cookie domain";Y[29]="invalid element coordinates";Y[12]="invalid element state";
|
|
72
|
-
Y[32]="invalid selector";Y[51]="invalid selector";Y[52]="invalid selector";Y[17]="javascript error";Y[405]="unsupported operation";Y[34]="move target out of bounds";Y[27]="no such alert";Y[7]="no such element";Y[8]="no such frame";Y[23]="no such window";Y[28]="script timeout";Y[33]="session not created";Y[10]="stale element reference";Y[21]="timeout";Y[25]="unable to set cookie";Y[26]="unexpected alert open";Y[13]=Eb;Y[9]="unknown command";var Fb=ta(),Gb=va()||u("iPod"),Hb=u("iPad"),Ib=u("Android")&&!(ua()||ta()||u("Opera")||u("Silk")),Jb=ua(),Kb=u("Safari")&&!(ua()||u("Coast")||u("Opera")||u("Edge")||u("Edg/")||u("OPR")||ta()||u("Silk")||u("Android"))&&!(va()||u("iPad")||u("iPod"));function Z(a){return(a=a.exec(t))?a[1]:""}(function(){if(Fb)return Z(/Firefox\/([0-9.]+)/);if(Jb)return va()||u("iPad")||u("iPod")?Z(/CriOS\/([0-9.]+)/):Z(/Chrome\/([0-9.]+)/);if(Kb&&!(va()||u("iPad")||u("iPod")))return Z(/Version\/([0-9.]+)/);if(Gb||Hb){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(t);if(a)return a[1]+"."+a[2]}else if(Ib)return(a=Z(/Android\s+([0-9.]+)/))?a:Z(/Version\/([0-9.]+)/);return""})();function Lb(a,b){return(b||Db).frames[a]||null};var Mb=JSON.stringify;function Nb(a){function b(c,d){switch(l(c)){case "string":case "number":case "boolean":return c;case "function":return c.toString();case "array":return ka(c,function(f){return b(f,d)});case "object":if(0<=d.indexOf(c))throw new X(17,"Recursive object cannot be transferred");if(v(c,"nodeType")&&(1==c.nodeType||9==c.nodeType)){var e={};e.ELEMENT=Ob(c);return e}if(v(c,"document"))return e={},e.WINDOW=Ob(c),e;d.push(c);if(ba(c))return ka(c,function(f){return b(f,d)});c=qa(c,function(f,g){return"number"==
|
|
73
|
-
typeof g||k(g)});return ra(c,function(f){return b(f,d)});default:return null}}return b(a,[])}function Pb(a,b){return"array"==l(a)?ka(a,function(c){return Pb(c,b)}):ca(a)?"function"==typeof a?a:v(a,"ELEMENT")?Qb(a.ELEMENT,b):v(a,"WINDOW")?Qb(a.WINDOW,b):ra(a,function(c){return Pb(c,b)}):a}function Rb(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.C=ia());b.C||(b.C=ia());return b}function Ob(a){var b=Rb(a.ownerDocument),c=sa(b,function(d){return d==a});c||(c=":wdc:"+b.C++,b[c]=a);return c}
|
|
74
|
-
function Qb(a,b){a=decodeURIComponent(a);b=b||document;var c=Rb(b);if(!v(c,a))throw new X(10,"Element does not exist in cache");var d=c[a];if(v(d,"setInterval")){if(d.closed)throw delete c[a],new X(23,"Window has been closed.");return d}for(var e=d;e;){if(e==b.documentElement)return d;e.host&&11===e.nodeType&&(e=e.host);e=e.parentNode}delete c[a];throw new X(10,"Element is no longer attached to the DOM");};aa("se_exportedFunctionSymbol",function(a,b){a=[a,b];b=Lb;var c=window||Db;try{a:{var d=b;if(k(d))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=Pb(a,c.document);var f={status:0,value:Nb(b.apply(null,e))}}catch(g){f={status:v(g,"code")?g.code:13,value:{message:g.message}}}return Mb(f)});; return this.se_exportedFunctionSymbol.apply(null,arguments);}).apply(window, arguments);}
|
|
12
|
+
function k(a){var b=typeof a;return b=="object"&&a!=null||b=="function"}
|
|
13
|
+
function m(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 n(a){var b=m(a);return b=="array"||b=="object"&&typeof a.length=="number"};function p(a,b){this.code=a;this.h=q[a]||r;this.message=b||"";a=this.h.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;p.prototype=new a;p.prototype.constructor=p})();var r="unknown error",q={15:"element not selectable",11:"element not visible"};q[31]=r;q[30]=r;q[24]="invalid cookie domain";
|
|
15
|
+
q[29]="invalid element coordinates";q[12]="invalid element state";q[32]="invalid selector";q[51]="invalid selector";q[52]="invalid selector";q[17]="javascript error";q[405]="unsupported operation";q[34]="move target out of bounds";q[27]="no such alert";q[7]="no such element";q[8]="no such frame";q[23]="no such window";q[28]="script timeout";q[33]="session not created";q[10]="stale element reference";q[21]="timeout";q[25]="unable to set cookie";q[26]="unexpected alert open";q[13]=r;q[9]="unknown command";var t=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),g=typeof a==="string"?a.split(""):a,h=0;h<c;h++)h in g&&(d[h]=b.call(void 0,g[h],h,a));return d};function u(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function v(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function w(a,b){return a!==null&&b in a}function x(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};function y(){var a=e.navigator;return a&&(a=a.userAgent)?a:""}function z(a){return y().indexOf(a)!=-1};function A(){return z("Firefox")||z("FxiOS")}function B(){return(z("Chrome")||z("CriOS"))&&!z("Edge")||z("Silk")};function C(){return z("iPhone")&&!z("iPod")&&!z("iPad")};var D=A(),E=C()||z("iPod"),F=z("iPad"),G=z("Android")&&!(B()||A()||z("Opera")||z("Silk")),H=B(),I=z("Safari")&&!(B()||z("Coast")||z("Opera")||z("Edge")||z("Edg/")||z("OPR")||A()||z("Silk")||z("Android"))&&!(C()||z("iPad")||z("iPod"));function J(a){return(a=a.exec(y()))?a[1]:""}(function(){if(D)return J(/Firefox\/([0-9.]+)/);if(H){if(C()||z("iPad")||z("iPod")||z("Macintosh")){var a=J(/CriOS\/([0-9.]+)/);if(a)return a}return J(/Chrome\/([0-9.]+)/)}if(I&&!(C()||z("iPad")||z("iPod")))return J(/Version\/([0-9.]+)/);if(E||F){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(y()))return a[1]+"."+a[2]}else if(G)return(a=J(/Android\s+([0-9.]+)/))?a:J(/Version\/([0-9.]+)/);return""})();function K(a,b){return(b||f).frames[a]||null};var L=JSON.stringify;function M(a){function b(c,d){switch(m(c)){case "string":case "number":case "boolean":return c;case "function":return c.toString();case "array":return t(c,function(h){return b(h,d)});case "object":if(d.indexOf(c)>=0)throw new p(17,"Recursive object cannot be transferred");if(w(c,"nodeType")&&(c.nodeType==1||c.nodeType==9)){var g={};g.ELEMENT=N(c);return g}if(w(c,"document"))return g={},g.WINDOW=N(c),g;d.push(c);if(n(c))return t(c,function(h){return b(h,d)});c=u(c,function(h,l){return typeof l==="number"||
|
|
16
|
+
typeof l==="string"});return v(c,function(h){return b(h,d)});default:return null}}return b(a,[])}function O(a,b){return Array.isArray(a)?t(a,function(c){return O(c,b)}):k(a)?typeof a=="function"?a:w(a,"ELEMENT")?P(a.ELEMENT,b):w(a,"WINDOW")?P(a.WINDOW,b):v(a,function(c){return O(c,b)}):a}function Q(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.g=Date.now());b.g||(b.g=Date.now());return b}
|
|
17
|
+
function N(a){var b=Q(a.ownerDocument),c=x(b,function(d){return d==a});c||(c=":wdc:"+b.g++,b[c]=a);return c}
|
|
18
|
+
function P(a,b){a=decodeURIComponent(a);b=b||document;var c=Q(b);if(!w(c,a))throw new p(10,"Element does not exist in cache");var d=c[a];if(w(d,"setInterval")){if(d.closed)throw delete c[a],new p(23,"Window has been closed.");return d}for(var g=d;g;){if(g==b.documentElement)return d;g.host&&g.nodeType===11&&(g=g.host);g=g.parentNode}delete c[a];throw new p(10,"Element is no longer attached to the DOM");};function R(a,b){a=[a,b];b=K;var c=window||f;try{a:{var d=b;if(typeof d==="string")try{b=new c.Function(d);break a}catch(l){throw l;}b=c==window?d:new c.Function("return ("+d+").apply(null,arguments);")}var g=O(a,c.document);var h={status:0,value:M(b.apply(null,g))}}catch(l){h={status:w(l,"code")?l.code:13,value:{message:l.message}}}return L(h)}var S=["se_exportedFunctionSymbol"],T=e;S[0]in T||typeof T.execScript=="undefined"||T.execScript("var "+S[0]);
|
|
19
|
+
for(var U;S.length&&(U=S.shift());)S.length||R===void 0?T[U]&&T[U]!==Object.prototype[U]?T=T[U]:T=T[U]={}:T[U]=R;; return this.se_exportedFunctionSymbol.apply(null,arguments);}).apply(window, arguments);}
|
|
@@ -1,74 +1,19 @@
|
|
|
1
|
-
function(){return (function(){
|
|
2
|
-
function ba(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
|
|
3
|
-
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function ca(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length}function da(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ea(a,b,c){return a.call.apply(a.bind,arguments)}
|
|
4
|
-
function fa(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 ha(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ha=ea:ha=fa;return ha.apply(null,arguments)}
|
|
5
|
-
function ia(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 ja=Date.now||function(){return+new Date};function l(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 e=this||self;try{var f=window}catch(a){f=e};/*
|
|
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
|
-
function
|
|
34
|
-
|
|
35
|
-
function
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
-
function M(a,b,c,d,e){b=b.a(d);c=c.a(d);var f;if(b instanceof B&&c instanceof B){b=E(b);for(d=F(b);d;d=F(b))for(e=E(c),f=F(e);f;f=F(e))if(a(y(d),y(f)))return!0;return!1}if(b instanceof B||c instanceof B){b instanceof B?(e=b,d=c):(e=c,d=b);f=E(e);for(var g=typeof d,n=F(f);n;n=F(f)){switch(g){case "number":n=+y(n);break;case "boolean":n=!!y(n);break;case "string":n=y(n);break;default:throw Error("Illegal primitive type for comparison.");}if(e==b&&a(n,d)||e==c&&a(d,n))return!0}return!1}return e?"boolean"==
|
|
39
|
-
typeof b||"boolean"==typeof c?a(!!b,!!c):"number"==typeof b||"number"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}L.prototype.a=function(a){return this.c.m(this.h,this.o,a)};L.prototype.toString=function(){var a="Binary Expression: "+this.c;a+=H(this.h);return a+=H(this.o)};function Ra(a,b,c,d){this.J=a;this.F=b;this.i=c;this.m=d}Ra.prototype.toString=function(){return this.J};var Sa={};
|
|
40
|
-
function N(a,b,c,d){if(Sa.hasOwnProperty(a))throw Error("Binary operator already created: "+a);a=new Ra(a,b,c,d);return Sa[a.toString()]=a}N("div",6,1,function(a,b,c){return I(a,c)/I(b,c)});N("mod",6,1,function(a,b,c){return I(a,c)%I(b,c)});N("*",6,1,function(a,b,c){return I(a,c)*I(b,c)});N("+",5,1,function(a,b,c){return I(a,c)+I(b,c)});N("-",5,1,function(a,b,c){return I(a,c)-I(b,c)});N("<",4,2,function(a,b,c){return M(function(d,e){return d<e},a,b,c)});
|
|
41
|
-
N(">",4,2,function(a,b,c){return M(function(d,e){return d>e},a,b,c)});N("<=",4,2,function(a,b,c){return M(function(d,e){return d<=e},a,b,c)});N(">=",4,2,function(a,b,c){return M(function(d,e){return d>=e},a,b,c)});var Qa=N("=",3,2,function(a,b,c){return M(function(d,e){return d==e},a,b,c,!0)});N("!=",3,2,function(a,b,c){return M(function(d,e){return d!=e},a,b,c,!0)});N("and",2,2,function(a,b,c){return K(a,c)&&K(b,c)});N("or",1,2,function(a,b,c){return K(a,c)||K(b,c)});function Ta(a,b){if(b.a.length&&4!=a.i)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");G.call(this,a.i);this.c=a;this.h=b;this.g=a.g;this.b=a.b}l(Ta,G);Ta.prototype.a=function(a){a=this.c.a(a);return Ua(this.h,a)};Ta.prototype.toString=function(){var a="Filter:"+H(this.c);return a+=H(this.h)};function Va(a,b){if(b.length<a.D)throw Error("Function "+a.j+" expects at least"+a.D+" arguments, "+b.length+" given");if(null!==a.B&&b.length>a.B)throw Error("Function "+a.j+" expects at most "+a.B+" arguments, "+b.length+" given");a.I&&p(b,function(c,d){if(4!=c.i)throw Error("Argument "+d+" to function "+a.j+" is not of type Nodeset: "+c);});G.call(this,a.i);this.v=a;this.c=b;Oa(this,a.g||ma(b,function(c){return c.g}));Pa(this,a.H&&!b.length||a.G&&!!b.length||ma(b,function(c){return c.b}))}
|
|
42
|
-
l(Va,G);Va.prototype.a=function(a){return this.v.m.apply(null,na(a,this.c))};Va.prototype.toString=function(){var a="Function: "+this.v;if(this.c.length){var b=q(this.c,function(c,d){return c+H(d)},"Arguments:");a+=H(b)}return a};function Wa(a,b,c,d,e,f,g,n){this.j=a;this.i=b;this.g=c;this.H=d;this.G=!1;this.m=e;this.D=f;this.B=void 0!==g?g:f;this.I=!!n}Wa.prototype.toString=function(){return this.j};var Xa={};
|
|
43
|
-
function O(a,b,c,d,e,f,g,n){if(Xa.hasOwnProperty(a))throw Error("Function already created: "+a+".");Xa[a]=new Wa(a,b,c,d,e,f,g,n)}O("boolean",2,!1,!1,function(a,b){return K(b,a)},1);O("ceiling",1,!1,!1,function(a,b){return Math.ceil(I(b,a))},1);O("concat",3,!1,!1,function(a,b){return q(oa(arguments,1),function(c,d){return c+J(d,a)},"")},2,null);O("contains",2,!1,!1,function(a,b,c){b=J(b,a);a=J(c,a);return-1!=b.indexOf(a)},2);O("count",1,!1,!1,function(a,b){return b.a(a).l},1,1,!0);
|
|
44
|
-
O("false",2,!1,!1,function(){return!1},0);O("floor",1,!1,!1,function(a,b){return Math.floor(I(b,a))},1);O("id",4,!1,!1,function(a,b){var c=a.a,d=9==c.nodeType?c:c.ownerDocument;a=J(b,a).split(/\s+/);var e=[];p(a,function(g){g=d.getElementById(g);!g||0<=ka(e,g)||e.push(g)});e.sort(Da);var f=new B;p(e,function(g){f.add(g)});return f},1);O("lang",2,!1,!1,function(){return!1},1);O("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.f},0);
|
|
45
|
-
O("local-name",3,!1,!0,function(a,b){return(a=b?La(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);O("name",3,!1,!0,function(a,b){return(a=b?La(b.a(a)):a.a)?a.nodeName.toLowerCase():""},0,1,!0);O("namespace-uri",3,!0,!1,function(){return""},0,1,!0);O("normalize-space",3,!1,!0,function(a,b){return(b?J(b,a):y(a.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);O("not",2,!1,!1,function(a,b){return!K(b,a)},1);O("number",1,!1,!0,function(a,b){return b?I(b,a):+y(a.a)},0,1);
|
|
46
|
-
O("position",1,!0,!1,function(a){return a.b},0);O("round",1,!1,!1,function(a,b){return Math.round(I(b,a))},1);O("starts-with",2,!1,!1,function(a,b,c){b=J(b,a);a=J(c,a);return 0==b.lastIndexOf(a,0)},2);O("string",3,!1,!0,function(a,b){return b?J(b,a):y(a.a)},0,1);O("string-length",1,!1,!0,function(a,b){return(b?J(b,a):y(a.a)).length},0,1);
|
|
47
|
-
O("substring",3,!1,!1,function(a,b,c,d){c=I(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?I(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=J(b,a);return Infinity==d?a.substring(e):a.substring(e,c+Math.round(d))},2,3);O("substring-after",3,!1,!1,function(a,b,c){b=J(b,a);a=J(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
|
|
48
|
-
O("substring-before",3,!1,!1,function(a,b,c){b=J(b,a);a=J(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);O("sum",1,!1,!1,function(a,b){a=E(b.a(a));b=0;for(var c=F(a);c;c=F(a))b+=+y(c);return b},1,1,!0);O("translate",3,!1,!1,function(a,b,c,d){b=J(b,a);c=J(c,a);var e=J(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);O("true",2,!1,!1,function(){return!0},0);function D(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 Ya(a){return"comment"==a||"text"==a||"processing-instruction"==a||"node"==a}D.prototype.a=function(a){return null===this.b||this.b==a.nodeType};D.prototype.f=function(){return this.h};
|
|
49
|
-
D.prototype.toString=function(){var a="Kind Test: "+this.h;null===this.c||(a+=H(this.c));return a};function Za(a){G.call(this,3);this.c=a.substring(1,a.length-1)}l(Za,G);Za.prototype.a=function(){return this.c};Za.prototype.toString=function(){return"Literal: "+this.c};function P(a,b){this.j=a.toLowerCase();a="*"==this.j?"*":"http://www.w3.org/1999/xhtml";this.b=b?b.toLowerCase():a}P.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.j&&this.j!=b.toLowerCase()?!1:"*"==this.b?!0:this.b==(a.namespaceURI?a.namespaceURI.toLowerCase():"http://www.w3.org/1999/xhtml")};P.prototype.f=function(){return this.j};
|
|
50
|
-
P.prototype.toString=function(){return"Name Test: "+("http://www.w3.org/1999/xhtml"==this.b?"":this.b+":")+this.j};function $a(a){G.call(this,1);this.c=a}l($a,G);$a.prototype.a=function(){return this.c};$a.prototype.toString=function(){return"Number: "+this.c};function ab(a,b){G.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.A||a.c!=bb||(a=a.o,"*"!=a.f()&&(this.f={name:a.f(),u:null})))}l(ab,G);function Q(){G.call(this,4)}l(Q,G);Q.prototype.a=function(a){var b=new B;a=a.a;9==a.nodeType?b.add(a):b.add(a.ownerDocument);return b};Q.prototype.toString=function(){return"Root Helper Expression"};function cb(){G.call(this,4)}l(cb,G);cb.prototype.a=function(a){var b=new B;b.add(a.a);return b};cb.prototype.toString=function(){return"Context Helper Expression"};
|
|
51
|
-
function db(a){return"/"==a||"//"==a}ab.prototype.a=function(a){var b=this.h.a(a);if(!(b instanceof B))throw Error("Filter expression must evaluate to nodeset.");a=this.c;for(var c=0,d=a.length;c<d&&b.l;c++){var e=a[c],f=E(b,e.c.s);if(e.g||e.c!=eb)if(e.g||e.c!=fb){var g=F(f);for(b=e.a(new m(g));null!=(g=F(f));)g=e.a(new m(g)),b=Ja(b,g)}else g=F(f),b=e.a(new m(g));else{for(g=F(f);(b=F(f))&&(!g.contains||g.contains(b))&&b.compareDocumentPosition(g)&8;g=b);b=e.a(new m(g))}}return b};
|
|
52
|
-
ab.prototype.toString=function(){var a="Path Expression:"+H(this.h);if(this.c.length){var b=q(this.c,function(c,d){return c+H(d)},"Steps:");a+=H(b)}return a};function gb(a,b){this.a=a;this.s=!!b}
|
|
53
|
-
function Ua(a,b,c){for(c=c||0;c<a.a.length;c++)for(var d=a.a[c],e=E(b),f=b.l,g,n=0;g=F(e);n++){var x=a.s?f-n:n+1;g=d.a(new m(g,x,f));if("number"==typeof g)x=x==g;else if("string"==typeof g||"boolean"==typeof g)x=!!g;else if(g instanceof B)x=0<g.l;else throw Error("Predicate.evaluate returned an unexpected type.");if(!x){x=e;g=x.f;var C=x.a;if(!C)throw Error("Next must be called at least once before remove.");var R=C.b;C=C.a;R?R.a=C:g.a=C;C?C.b=R:g.b=R;g.l--;x.a=null}}return b}
|
|
54
|
-
gb.prototype.toString=function(){return q(this.a,function(a,b){return a+H(b)},"Predicates:")};function S(a,b,c,d){G.call(this,4);this.c=a;this.o=b;this.h=c||new gb([]);this.A=!!d;b=this.h;b=0<b.a.length?b.a[0].f:null;a.K&&b&&(this.f={name:b.name,u:b.u});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}l(S,G);
|
|
55
|
-
S.prototype.a=function(a){var b=a.a,c=this.f,d=null,e=null,f=0;c&&(d=c.name,e=c.u?J(c.u,a):null,f=1);if(this.A)if(this.g||this.c!=hb)if(b=E((new S(ib,new D("node"))).a(a)),c=F(b))for(a=this.m(c,d,e,f);null!=(c=F(b));)a=Ja(a,this.m(c,d,e,f));else a=new B;else a=A(this.o,b,d,e),a=Ua(this.h,a,f);else a=this.m(a.a,d,e,f);return a};S.prototype.m=function(a,b,c,d){a=this.c.v(this.o,a,b,c);return a=Ua(this.h,a,d)};
|
|
56
|
-
S.prototype.toString=function(){var a="Step:"+H("Operator: "+(this.A?"//":"/"));this.c.j&&(a+=H("Axis: "+this.c));a+=H(this.o);if(this.h.a.length){var b=q(this.h.a,function(c,d){return c+H(d)},"Predicates:");a+=H(b)}return a};function jb(a,b,c,d){this.j=a;this.v=b;this.s=c;this.K=d}jb.prototype.toString=function(){return this.j};var kb={};function T(a,b,c,d){if(kb.hasOwnProperty(a))throw Error("Axis already created: "+a);b=new jb(a,b,c,!!d);return kb[a]=b}
|
|
57
|
-
T("ancestor",function(a,b){for(var c=new B;b=b.parentNode;)a.a(b)&&Ka(c,b);return c},!0);T("ancestor-or-self",function(a,b){var c=new B;do a.a(b)&&Ka(c,b);while(b=b.parentNode);return c},!0);
|
|
58
|
-
var bb=T("attribute",function(a,b){var c=new B,d=a.f();if(b=b.attributes)if(a instanceof D&&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),hb=T("child",function(a,b,c,d,e){c=k(c)?c:null;d=k(d)?d:null;e=e||new B;for(b=b.firstChild;b;b=b.nextSibling)z(b,c,d)&&a.a(b)&&e.add(b);return e},!1,!0);T("descendant",A,!1,!0);
|
|
59
|
-
var ib=T("descendant-or-self",function(a,b,c,d){var e=new B;z(b,c,d)&&a.a(b)&&e.add(b);return A(a,b,c,d,e)},!1,!0),eb=T("following",function(a,b,c,d){var e=new B;do for(var f=b;f=f.nextSibling;)z(f,c,d)&&a.a(f)&&e.add(f),e=A(a,f,c,d,e);while(b=b.parentNode);return e},!1,!0);T("following-sibling",function(a,b){for(var c=new B;b=b.nextSibling;)a.a(b)&&c.add(b);return c},!1);T("namespace",function(){return new B},!1);
|
|
60
|
-
var lb=T("parent",function(a,b){var c=new B;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),fb=T("preceding",function(a,b,c,d){var e=new B,f=[];do f.unshift(b);while(b=b.parentNode);for(var g=1,n=f.length;g<n;g++){var x=[];for(b=f[g];b=b.previousSibling;)x.unshift(b);for(var C=0,R=x.length;C<R;C++)b=x[C],z(b,c,d)&&a.a(b)&&e.add(b),e=A(a,b,c,d,e)}return e},!0,!0);
|
|
61
|
-
T("preceding-sibling",function(a,b){for(var c=new B;b=b.previousSibling;)a.a(b)&&Ka(c,b);return c},!0);var mb=T("self",function(a,b){var c=new B;a.a(b)&&c.add(b);return c},!1);function nb(a){G.call(this,1);this.c=a;this.g=a.g;this.b=a.b}l(nb,G);nb.prototype.a=function(a){return-I(this.c,a)};nb.prototype.toString=function(){return"Unary Expression: -"+H(this.c)};function ob(a){G.call(this,4);this.c=a;Oa(this,ma(this.c,function(b){return b.g}));Pa(this,ma(this.c,function(b){return b.b}))}l(ob,G);ob.prototype.a=function(a){var b=new B;p(this.c,function(c){c=c.a(a);if(!(c instanceof B))throw Error("Path expression must evaluate to NodeSet.");b=Ja(b,c)});return b};ob.prototype.toString=function(){return q(this.c,function(a,b){return a+H(b)},"Union Expression:")};function pb(a,b){this.a=a;this.b=b}function qb(a){for(var b,c=[];;){U(a,"Missing right hand side of binary expression.");b=rb(a);var d=w(a.a);if(!d)break;var e=(d=Sa[d]||null)&&d.F;if(!e){a.a.a--;break}for(;c.length&&e<=c[c.length-1].F;)b=new L(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new L(c.pop(),c.pop(),b);return b}function U(a,b){if(Ba(a.a))throw Error(b);}function sb(a,b){a=w(a.a);if(a!=b)throw Error("Bad token, expected: "+b+" got: "+a);}
|
|
62
|
-
function tb(a){a=w(a.a);if(")"!=a)throw Error("Bad token: "+a);}function ub(a){a=w(a.a);if(2>a.length)throw Error("Unclosed literal string");return new Za(a)}
|
|
63
|
-
function vb(a){var b=[];if(db(v(a.a))){var c=w(a.a);var d=v(a.a);if("/"==c&&(Ba(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new Q;d=new Q;U(a,"Missing next location step.");c=wb(a,c);b.push(c)}else{a:{c=v(a.a);d=c.charAt(0);switch(d){case "$":throw Error("Variable reference not allowed in HTML XPath");case "(":w(a.a);c=qb(a);U(a,'unclosed "("');sb(a,")");break;case '"':case "'":c=ub(a);break;default:if(isNaN(+c))if(!Ya(c)&&/(?![0-9])[\w]/.test(d)&&"("==v(a.a,1)){c=w(a.a);
|
|
64
|
-
c=Xa[c]||null;w(a.a);for(d=[];")"!=v(a.a);){U(a,"Missing function argument list.");d.push(qb(a));if(","!=v(a.a))break;w(a.a)}U(a,"Unclosed function argument list.");tb(a);c=new Va(c,d)}else{c=null;break a}else c=new $a(+w(a.a))}"["==v(a.a)&&(d=new gb(xb(a)),c=new Ta(c,d))}if(c)if(db(v(a.a)))d=c;else return c;else c=wb(a,"/"),d=new cb,b.push(c)}for(;db(v(a.a));)c=w(a.a),U(a,"Missing next location step."),c=wb(a,c),b.push(c);return new ab(d,b)}
|
|
65
|
-
function wb(a,b){if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==v(a.a)){var c=new S(mb,new D("node"));w(a.a);return c}if(".."==v(a.a))return c=new S(lb,new D("node")),w(a.a),c;if("@"==v(a.a)){var d=bb;w(a.a);U(a,"Missing attribute name")}else if("::"==v(a.a,1)){if(!/(?![0-9])[\w]/.test(v(a.a).charAt(0)))throw Error("Bad token: "+w(a.a));var e=w(a.a);d=kb[e]||null;if(!d)throw Error("No axis with name: "+e);w(a.a);U(a,"Missing node name")}else d=hb;e=v(a.a);if(/(?![0-9])[\w\*]/.test(e.charAt(0)))if("("==
|
|
66
|
-
v(a.a,1)){if(!Ya(e))throw Error("Invalid node type: "+e);e=w(a.a);if(!Ya(e))throw Error("Invalid type name: "+e);sb(a,"(");U(a,"Bad nodetype");var f=v(a.a).charAt(0),g=null;if('"'==f||"'"==f)g=ub(a);U(a,"Bad nodetype");tb(a);e=new D(e,g)}else if(e=w(a.a),f=e.indexOf(":"),-1==f)e=new P(e);else{g=e.substring(0,f);if("*"==g)var n="*";else if(n=a.b(g),!n)throw Error("Namespace prefix not declared: "+g);e=e.substr(f+1);e=new P(e,n)}else throw Error("Bad token: "+w(a.a));a=new gb(xb(a),d.s);return c||new S(d,
|
|
67
|
-
e,a,"//"==b)}function xb(a){for(var b=[];"["==v(a.a);){w(a.a);U(a,"Missing predicate expression.");var c=qb(a);b.push(c);U(a,"Unclosed predicate expression.");sb(a,"]")}return b}function rb(a){if("-"==v(a.a))return w(a.a),new nb(rb(a));var b=vb(a);if("|"!=v(a.a))a=b;else{for(b=[b];"|"==w(a.a);)U(a,"Missing next union location path."),b.push(vb(a));a.a.a--;a=new ob(b)}return a};function yb(a){switch(a.nodeType){case 1:return ia(zb,a);case 9:return yb(a.documentElement);case 11:case 10:case 6:case 12:return Ab;default:return a.parentNode?yb(a.parentNode):Ab}}function Ab(){return null}function zb(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?zb(a.parentNode,b):null};function Bb(a,b){if(!a.length)throw Error("Empty XPath expression.");a=ya(a);if(Ba(a))throw Error("Invalid XPath expression.");b?"function"==ba(b)||(b=ha(b.lookupNamespaceURI,b)):b=function(){return null};var c=qb(new pb(a,b));if(!Ba(a))throw Error("Bad token: "+w(a));this.evaluate=function(d,e){d=c.a(new m(d));return new V(d,e)}}
|
|
68
|
-
function V(a,b){if(0==b)if(a instanceof B)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 B))throw Error("value could not be converted to the specified type");this.resultType=b;switch(b){case 2:this.stringValue=a instanceof B?Ma(a):""+a;break;case 1:this.numberValue=a instanceof B?+Ma(a):+a;break;case 3:this.booleanValue=a instanceof B?0<a.l:!!a;break;case 4:case 5:case 6:case 7:var c=
|
|
69
|
-
E(a);var d=[];for(var e=F(c);e;e=F(c))d.push(e);this.snapshotLength=a.l;this.invalidIteratorState=!1;break;case 8:case 9:this.singleNodeValue=La(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]}}V.ANY_TYPE=0;
|
|
70
|
-
V.NUMBER_TYPE=1;V.STRING_TYPE=2;V.BOOLEAN_TYPE=3;V.UNORDERED_NODE_ITERATOR_TYPE=4;V.ORDERED_NODE_ITERATOR_TYPE=5;V.UNORDERED_NODE_SNAPSHOT_TYPE=6;V.ORDERED_NODE_SNAPSHOT_TYPE=7;V.ANY_UNORDERED_NODE_TYPE=8;V.FIRST_ORDERED_NODE_TYPE=9;function Cb(a){this.lookupNamespaceURI=yb(a)}
|
|
71
|
-
function Db(a,b){a=a||h;var c=a.Document&&a.Document.prototype||a.document;if(!c.evaluate||b)a.XPathResult=V,c.evaluate=function(d,e,f,g){return(new Bb(d,f)).evaluate(e,g)},c.createExpression=function(d,e){return new Bb(d,e)},c.createNSResolver=function(d){return new Cb(d)}}aa("wgxpath.install",Db);aa("wgxpath.install",Db);var W=window;function X(a,b){this.code=a;this.a=Y[a]||Eb;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||""}l(X,Error);var Eb="unknown error",Y={15:"element not selectable",11:"element not visible"};Y[31]=Eb;Y[30]=Eb;Y[24]="invalid cookie domain";Y[29]="invalid element coordinates";Y[12]="invalid element state";
|
|
72
|
-
Y[32]="invalid selector";Y[51]="invalid selector";Y[52]="invalid selector";Y[17]="javascript error";Y[405]="unsupported operation";Y[34]="move target out of bounds";Y[27]="no such alert";Y[7]="no such element";Y[8]="no such frame";Y[23]="no such window";Y[28]="script timeout";Y[33]="session not created";Y[10]="stale element reference";Y[21]="timeout";Y[25]="unable to set cookie";Y[26]="unexpected alert open";Y[13]=Eb;Y[9]="unknown command";var Fb=ua(),Gb=wa()||t("iPod"),Hb=t("iPad"),Ib=t("Android")&&!(va()||ua()||t("Opera")||t("Silk")),Jb=va(),Kb=t("Safari")&&!(va()||t("Coast")||t("Opera")||t("Edge")||t("Edg/")||t("OPR")||ua()||t("Silk")||t("Android"))&&!(wa()||t("iPad")||t("iPod"));function Z(a){return(a=a.exec(r))?a[1]:""}(function(){if(Fb)return Z(/Firefox\/([0-9.]+)/);if(Jb)return wa()||t("iPad")||t("iPod")?Z(/CriOS\/([0-9.]+)/):Z(/Chrome\/([0-9.]+)/);if(Kb&&!(wa()||t("iPad")||t("iPod")))return Z(/Version\/([0-9.]+)/);if(Gb||Hb){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(r);if(a)return a[1]+"."+a[2]}else if(Ib)return(a=Z(/Android\s+([0-9.]+)/))?a:Z(/Version\/([0-9.]+)/);return""})();var Lb=JSON.stringify;function Mb(a){function b(c,d){switch(ba(c)){case "string":case "number":case "boolean":return c;case "function":return c.toString();case "array":return la(c,function(f){return b(f,d)});case "object":if(0<=d.indexOf(c))throw new X(17,"Recursive object cannot be transferred");if(u(c,"nodeType")&&(1==c.nodeType||9==c.nodeType)){var e={};e.ELEMENT=Nb(c);return e}if(u(c,"document"))return e={},e.WINDOW=Nb(c),e;d.push(c);if(ca(c))return la(c,function(f){return b(f,d)});c=ra(c,function(f,g){return"number"==
|
|
73
|
-
typeof g||k(g)});return sa(c,function(f){return b(f,d)});default:return null}}return b(a,[])}function Ob(a,b){return"array"==ba(a)?la(a,function(c){return Ob(c,b)}):da(a)?"function"==typeof a?a:u(a,"ELEMENT")?Pb(a.ELEMENT,b):u(a,"WINDOW")?Pb(a.WINDOW,b):sa(a,function(c){return Ob(c,b)}):a}function Qb(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.C=ja());b.C||(b.C=ja());return b}function Nb(a){var b=Qb(a.ownerDocument),c=ta(b,function(d){return d==a});c||(c=":wdc:"+b.C++,b[c]=a);return c}
|
|
74
|
-
function Pb(a,b){a=decodeURIComponent(a);b=b||document;var c=Qb(b);if(!u(c,a))throw new X(10,"Element does not exist in cache");var d=c[a];if(u(d,"setInterval")){if(d.closed)throw delete c[a],new X(23,"Window has been closed.");return d}for(var e=d;e;){if(e==b.documentElement)return d;e.host&&11===e.nodeType&&(e=e.host);e=e.parentNode}delete c[a];throw new X(10,"Element is no longer attached to the DOM");};function Rb(){if(null!=(W||W).applicationCache)var a=W.applicationCache.status;else throw new X(13,"Undefined application cache");return a};aa("se_exportedFunctionSymbol",function(){var a=Rb,b=[];try{a:{var c=a;if(k(c))try{a=new W.Function(c);break a}catch(f){throw f;}a=W==window?c:new W.Function("return ("+c+").apply(null,arguments);")}var d=Ob(b,W.document);var e={status:0,value:Mb(a.apply(null,d))}}catch(f){e={status:u(f,"code")?f.code:13,value:{message:f.message}}}return Lb(e)});; return this.se_exportedFunctionSymbol.apply(null,arguments);}).apply(window, arguments);}
|
|
12
|
+
function k(a){var b=typeof a;return b=="object"&&a!=null||b=="function"}
|
|
13
|
+
function l(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 n(a){var b=l(a);return b=="array"||b=="object"&&typeof a.length=="number"};function p(a,b){this.code=a;this.h=q[a]||r;this.message=b||"";a=this.h.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;p.prototype=new a;p.prototype.constructor=p})();var r="unknown error",q={15:"element not selectable",11:"element not visible"};q[31]=r;q[30]=r;q[24]="invalid cookie domain";
|
|
15
|
+
q[29]="invalid element coordinates";q[12]="invalid element state";q[32]="invalid selector";q[51]="invalid selector";q[52]="invalid selector";q[17]="javascript error";q[405]="unsupported operation";q[34]="move target out of bounds";q[27]="no such alert";q[7]="no such element";q[8]="no such frame";q[23]="no such window";q[28]="script timeout";q[33]="session not created";q[10]="stale element reference";q[21]="timeout";q[25]="unable to set cookie";q[26]="unexpected alert open";q[13]=r;q[9]="unknown command";function t(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function u(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function v(a,b){return a!==null&&b in a}function w(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};function x(){var a=e.navigator;return a&&(a=a.userAgent)?a:""}function y(a){return x().indexOf(a)!=-1};function z(){return y("Firefox")||y("FxiOS")}function A(){return(y("Chrome")||y("CriOS"))&&!y("Edge")||y("Silk")};var B=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),g=typeof a==="string"?a.split(""):a,h=0;h<c;h++)h in g&&(d[h]=b.call(void 0,g[h],h,a));return d};function C(){return y("iPhone")&&!y("iPod")&&!y("iPad")};var D=z(),E=C()||y("iPod"),F=y("iPad"),G=y("Android")&&!(A()||z()||y("Opera")||y("Silk")),H=A(),I=y("Safari")&&!(A()||y("Coast")||y("Opera")||y("Edge")||y("Edg/")||y("OPR")||z()||y("Silk")||y("Android"))&&!(C()||y("iPad")||y("iPod"));function J(a){return(a=a.exec(x()))?a[1]:""}(function(){if(D)return J(/Firefox\/([0-9.]+)/);if(H){if(C()||y("iPad")||y("iPod")||y("Macintosh")){var a=J(/CriOS\/([0-9.]+)/);if(a)return a}return J(/Chrome\/([0-9.]+)/)}if(I&&!(C()||y("iPad")||y("iPod")))return J(/Version\/([0-9.]+)/);if(E||F){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(x()))return a[1]+"."+a[2]}else if(G)return(a=J(/Android\s+([0-9.]+)/))?a:J(/Version\/([0-9.]+)/);return""})();var K=JSON.stringify;function L(a){function b(c,d){switch(l(c)){case "string":case "number":case "boolean":return c;case "function":return c.toString();case "array":return B(c,function(h){return b(h,d)});case "object":if(d.indexOf(c)>=0)throw new p(17,"Recursive object cannot be transferred");if(v(c,"nodeType")&&(c.nodeType==1||c.nodeType==9)){var g={};g.ELEMENT=M(c);return g}if(v(c,"document"))return g={},g.WINDOW=M(c),g;d.push(c);if(n(c))return B(c,function(h){return b(h,d)});c=t(c,function(h,m){return typeof m==="number"||
|
|
16
|
+
typeof m==="string"});return u(c,function(h){return b(h,d)});default:return null}}return b(a,[])}function N(a,b){return Array.isArray(a)?B(a,function(c){return N(c,b)}):k(a)?typeof a=="function"?a:v(a,"ELEMENT")?O(a.ELEMENT,b):v(a,"WINDOW")?O(a.WINDOW,b):u(a,function(c){return N(c,b)}):a}function P(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.g=Date.now());b.g||(b.g=Date.now());return b}
|
|
17
|
+
function M(a){var b=P(a.ownerDocument),c=w(b,function(d){return d==a});c||(c=":wdc:"+b.g++,b[c]=a);return c}
|
|
18
|
+
function O(a,b){a=decodeURIComponent(a);b=b||document;var c=P(b);if(!v(c,a))throw new p(10,"Element does not exist in cache");var d=c[a];if(v(d,"setInterval")){if(d.closed)throw delete c[a],new p(23,"Window has been closed.");return d}for(var g=d;g;){if(g==b.documentElement)return d;g.host&&g.nodeType===11&&(g=g.host);g=g.parentNode}delete c[a];throw new p(10,"Element is no longer attached to the DOM");};function Q(){var a=f;if((a||f).applicationCache!=null)a=a.applicationCache.status;else throw new p(13,"Undefined application cache");return a};function R(){var a=Q,b=[],c=f;try{a:{var d=a;if(typeof d==="string")try{a=new c.Function(d);break a}catch(m){throw m;}a=c==window?d:new c.Function("return ("+d+").apply(null,arguments);")}var g=N(b,c.document);var h={status:0,value:L(a.apply(null,g))}}catch(m){h={status:v(m,"code")?m.code:13,value:{message:m.message}}}return K(h)}var S=["se_exportedFunctionSymbol"],T=e;S[0]in T||typeof T.execScript=="undefined"||T.execScript("var "+S[0]);
|
|
19
|
+
for(var U;S.length&&(U=S.shift());)S.length||R===void 0?T[U]&&T[U]!==Object.prototype[U]?T=T[U]:T=T[U]={}:T[U]=R;; return this.se_exportedFunctionSymbol.apply(null,arguments);}).apply(window, arguments);}
|
package/atoms/get_attribute.js
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
function(){return (function(){
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
function(){return (function(){/*
|
|
2
|
+
|
|
3
|
+
Copyright The Closure Library Authors.
|
|
4
|
+
Copyright The Closure Compiler Authors.
|
|
5
|
+
SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
var d=this||self;/*
|
|
8
|
+
|
|
9
|
+
Copyright The Closure Library Authors.
|
|
10
|
+
SPDX-License-Identifier: Apache-2.0
|
|
11
|
+
*/
|
|
12
|
+
var f=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},h=Array.prototype.forEach?function(a,b){Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var c=a.length,e=typeof a==="string"?a.split(""):a,g=0;g<c;g++)g in e&&b.call(void 0,e[g],g,a)};function k(a,b){this.code=a;this.g=l[a]||m;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;k.prototype=new a;k.prototype.constructor=k})();var m="unknown error",l={15:"element not selectable",11:"element not visible"};l[31]=m;l[30]=m;l[24]="invalid cookie domain";
|
|
13
|
+
l[29]="invalid element coordinates";l[12]="invalid element state";l[32]="invalid selector";l[51]="invalid selector";l[52]="invalid selector";l[17]="javascript error";l[405]="unsupported operation";l[34]="move target out of bounds";l[27]="no such alert";l[7]="no such element";l[8]="no such frame";l[23]="no such window";l[28]="script timeout";l[33]="session not created";l[10]="stale element reference";l[21]="timeout";l[25]="unable to set cookie";l[26]="unexpected alert open";l[13]=m;l[9]="unknown command";function n(){var a=d.navigator;return a&&(a=a.userAgent)?a:""}function p(a){return n().indexOf(a)!=-1};function q(){return p("Firefox")||p("FxiOS")}function r(){return(p("Chrome")||p("CriOS"))&&!p("Edge")||p("Silk")};function t(){return p("iPhone")&&!p("iPod")&&!p("iPad")};var v=q(),w=t()||p("iPod"),x=p("iPad"),y=p("Android")&&!(r()||q()||p("Opera")||p("Silk")),z=r(),A=p("Safari")&&!(r()||p("Coast")||p("Opera")||p("Edge")||p("Edg/")||p("OPR")||q()||p("Silk")||p("Android"))&&!(t()||p("iPad")||p("iPod"));function B(a){return(a=a.exec(n()))?a[1]:""}(function(){if(v)return B(/Firefox\/([0-9.]+)/);if(z){if(t()||p("iPad")||p("iPod")||p("Macintosh")){var a=B(/CriOS\/([0-9.]+)/);if(a)return a}return B(/Chrome\/([0-9.]+)/)}if(A&&!(t()||p("iPad")||p("iPod")))return B(/Version\/([0-9.]+)/);if(w||x){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(n()))return a[1]+"."+a[2]}else if(y)return(a=B(/Android\s+([0-9.]+)/))?a:B(/Version\/([0-9.]+)/);return""})();function C(a,b){b=b.toLowerCase();return b=="style"?D(a.style.cssText):(a=a.getAttributeNode(b))&&a.specified?a.value:null}var E=RegExp("[;]+(?=(?:(?:[^\"]*\"){2})*[^\"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\\([^()]*\\))*[^()]*$)");function D(a){var b=[];h(a.split(E),function(c){var e=c.indexOf(":");e>0&&(c=[c.slice(0,e),c.slice(e+1)],c.length==2&&b.push(c[0].toLowerCase(),":",c[1],";"))});b=b.join("");return b=b.charAt(b.length-1)==";"?b:b+";"}
|
|
14
|
+
function F(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)}function G(a){return F(a,"OPTION")?!0:F(a,"INPUT")?(a=a.type.toLowerCase(),a=="checkbox"||a=="radio"):!1};var H={"class":"className",readonly:"readOnly"},I="allowfullscreen allowpaymentrequest allowusermedia async autofocus autoplay checked compact complete controls declare default defaultchecked defaultselected defer disabled ended formnovalidate hidden indeterminate iscontenteditable ismap itemscope loop multiple muted nohref nomodule noresize noshade novalidate nowrap open paused playsinline pubdate readonly required reversed scoped seamless seeking selected truespeed typemustmatch willvalidate".split(" ");function J(a,b){var c=null,e=b.toLowerCase();if("style"==e)return(c=a.style)&&typeof c!=="string"&&(c=c.cssText),c;if(("selected"==e||"checked"==e)&&G(a)){if(!G(a))throw new k(15,"Element is not selectable");b="selected";c=a.type&&a.type.toLowerCase();if("checkbox"==c||"radio"==c)b="checked";return a[b]?"true":null}var g=F(a,"A");if(F(a,"IMG")&&e=="src"||g&&e=="href")return(c=C(a,e))&&(c=a[e]),c;if("spellcheck"==e){c=C(a,e);if(c!==null){if(c.toLowerCase()=="false")return"false";if(c.toLowerCase()==
|
|
15
|
+
"true")return"true"}return a[e]+""}g=H[b]||b;if(f(I,e)>=0)return(c=C(a,b)!==null||a[g])?"true":null;try{var u=a[g]}catch(N){}(e=u==null)||(e=typeof u,e=e=="object"&&u!=null||e=="function");e?c=C(a,b):c=u;return c!=null?c.toString():null}var K=["se_exportedFunctionSymbol"],L=d;K[0]in L||typeof L.execScript=="undefined"||L.execScript("var "+K[0]);for(var M;K.length&&(M=K.shift());)K.length||J===void 0?L[M]&&L[M]!==Object.prototype[M]?L=L[M]:L=L[M]={}:L[M]=J;; return this.se_exportedFunctionSymbol.apply(null,arguments);}).apply(window, arguments);}
|