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/click.js
CHANGED
|
@@ -1,144 +1,88 @@
|
|
|
1
|
-
function(){return (function(){
|
|
2
|
-
function da(a,b){if(b)a:{var c=ca;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&aa(c,a,{configurable:!0,writable:!0,value:b})}}function ea(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}
|
|
3
|
-
da("Symbol",function(a){function b(e){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c("jscomp_symbol_"+(e||"")+"_"+d++,e)}function c(e,f){this.a=e;aa(this,"description",{configurable:!0,writable:!0,value:f})}if(a)return a;c.prototype.toString=function(){return this.a};var d=0;return b});
|
|
4
|
-
da("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ca[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&aa(d.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(ea(this))}})}return a});function fa(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
|
|
5
|
-
function ha(a,b){a instanceof String&&(a+="");var c=0,d={next:function(){if(c<a.length){var e=c++;return{value:b(e,a[e]),done:!1}}d.next=function(){return{done:!0,value:void 0}};return d.next()}};d[Symbol.iterator]=function(){return d};return d}da("Array.prototype.keys",function(a){return a?a:function(){return ha(this,function(b){return b})}});var ia=this||self;function ja(a){return void 0!==a}function ka(a){return"string"==typeof a}
|
|
6
|
-
function la(a,b){a=a.split(".");var c=ia;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b}
|
|
7
|
-
function ma(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
|
|
8
|
-
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function na(a){var b=ma(a);return"array"==b||"object"==b&&"number"==typeof a.length}function oa(a){return"function"==ma(a)}function pa(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}var qa="closure_uid_"+(1E9*Math.random()>>>0),ra=0;function sa(a,b,c){return a.call.apply(a.bind,arguments)}
|
|
9
|
-
function ta(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}function ua(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ua=sa:ua=ta;return ua.apply(null,arguments)}
|
|
10
|
-
function va(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}}var wa=Date.now||function(){return+new Date};function h(a,b){function c(){}c.prototype=b.prototype;a.J=b.prototype;a.prototype=new c;a.prototype.constructor=a}
|
|
11
|
-
function xa(a,b,c){var d=arguments.callee.caller;if("undefined"!==typeof d.J){for(var e=Array(arguments.length-1),f=1;f<arguments.length;f++)e[f-1]=arguments[f];d.J.constructor.apply(a,e)}else{if("string"!=typeof b&&"symbol"!=typeof b)throw Error("method names provided to goog.base must be a string or a symbol");e=Array(arguments.length-2);for(f=2;f<arguments.length;f++)e[f-2]=arguments[f];f=!1;for(var g=a.constructor.prototype;g;g=Object.getPrototypeOf(g))if(g[b]===d)f=!0;else if(f){g[b].apply(a,
|
|
12
|
-
e);return}if(a[b]===d)a.constructor.prototype[b].apply(a,e);else throw Error("goog.base called from a method of one name to a method of a different name");}};/*
|
|
1
|
+
function(){return (function(){/*
|
|
13
2
|
|
|
14
|
-
The
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
The above copyright notice and this permission notice shall be included in
|
|
27
|
-
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 g;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}var ba=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
|
|
8
|
+
function ca(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var da=ca(this);function ea(a,b){if(b)a:{var c=da;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&b!=null&&ba(c,a,{configurable:!0,writable:!0,value:b})}}
|
|
9
|
+
ea("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}function c(f,h){this.g=f;ba(this,"description",{configurable:!0,writable:!0,value:h})}if(a)return a;c.prototype.toString=function(){return this.g};var d="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",e=0;return b});
|
|
10
|
+
ea("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=da[b[c]];typeof d==="function"&&typeof d.prototype[a]!="function"&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(aa(this))}})}return a});function fa(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
|
|
11
|
+
var ha=typeof Object.create=="function"?Object.create:function(a){function b(){}b.prototype=a;return new b},ia;if(typeof Object.setPrototypeOf=="function")ia=Object.setPrototypeOf;else{var ja;a:{var ka={a:!0},la={};try{la.__proto__=ka;ja=la.a;break a}catch(a){}ja=!1}ia=ja?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ma=ia;
|
|
12
|
+
function na(a,b){a.prototype=ha(b.prototype);a.prototype.constructor=a;if(ma)ma(a,b);else for(var c in b)if(c!="prototype")if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.G=b.prototype}function oa(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}
|
|
13
|
+
ea("Array.prototype.keys",function(a){return a?a:function(){return oa(this,function(b){return b})}});ea("Array.prototype.values",function(a){return a?a:function(){return oa(this,function(b,c){return c})}});var pa=pa||{},qa=this||self;try{var ra=window}catch(a){ra=qa};/*
|
|
28
14
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
32
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
33
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
34
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
35
|
-
IN THE SOFTWARE.
|
|
15
|
+
Copyright The Closure Library Authors.
|
|
16
|
+
SPDX-License-Identifier: Apache-2.0
|
|
36
17
|
*/
|
|
37
|
-
function
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
a.collapse(!0);return c.compareBoundaryPoints(ia.Range.START_TO_END,a)}function mb(a,b){var c=a.parentNode;if(c==b)return-1;for(;b.parentNode!=c;)b=b.parentNode;return lb(b,a)}function lb(a,b){for(;b=b.previousSibling;)if(b==a)return-1;return 1}function v(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function nb(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null}
|
|
44
|
-
function ob(a){try{var b=a&&a.activeElement;return b&&b.nodeName?b:null}catch(c){return null}}function pb(a){this.a=a||ia.document||document}pb.prototype.getElementsByTagName=function(a,b){return(b||this.a).getElementsByTagName(String(a))};function w(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:b,b=void 0==b||null==b?"":b);if("string"!=typeof b)if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;c=0;var d=[];for(b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return b}
|
|
45
|
-
function qb(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function rb(a,b,c,d,e){return sb.call(null,a,b,ka(c)?c:null,ka(d)?d:null,e||new y)}
|
|
46
|
-
function sb(a,b,c,d,e){b.getElementsByName&&d&&"name"==c?(b=b.getElementsByName(d),m(b,function(f){a.a(f)&&e.add(f)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),m(b,function(f){f.className==d&&a.a(f)&&e.add(f)})):a instanceof tb?ub(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.f()),m(b,function(f){qb(f,c,d)&&e.add(f)}));return e}function ub(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)qb(b,c,d)&&a.a(b)&&e.add(b),ub(a,b,c,d,e)};function y(){this.b=this.a=null;this.s=0}function vb(a){this.b=a;this.next=this.a=null}function wb(a,b){if(!a.a)return b;if(!b.a)return a;var c=a.a;b=b.a;for(var d=null,e,f=0;c&&b;)c.b==b.b?(e=c,c=c.next,b=b.next):0<kb(c.b,b.b)?(e=b,b=b.next):(e=c,c=c.next),(e.a=d)?d.next=e:a.a=e,d=e,f++;for(e=c||b;e;)e.a=d,d=d.next=e,f++,e=e.next;a.b=d;a.s=f;return a}function xb(a,b){b=new vb(b);b.next=a.a;a.b?a.a.a=b:a.a=a.b=b;a.a=b;a.s++}
|
|
47
|
-
y.prototype.add=function(a){a=new vb(a);a.a=this.b;this.a?this.b.next=a:this.a=this.b=a;this.b=a;this.s++};function yb(a){return(a=a.a)?a.b:null}function zb(a){return(a=yb(a))?w(a):""}function Ab(a,b){return new Bb(a,!!b)}function Bb(a,b){this.f=a;this.b=(this.A=b)?a.b:a.a;this.a=null}Bb.prototype.next=function(){var a=this.b;if(null==a)return null;var b=this.a=a;this.b=this.A?a.a:a.next;return b.b};function A(a){this.l=a;this.b=this.j=!1;this.f=null}function B(a){return"\n "+a.toString().split("\n").join("\n ")}function Cb(a,b){a.j=b}function Db(a,b){a.b=b}function C(a,b){a=a.a(b);return a instanceof y?+zb(a):+a}function D(a,b){a=a.a(b);return a instanceof y?zb(a):""+a}function Eb(a,b){a=a.a(b);return a instanceof y?!!a.s:!!a};function Fb(a,b,c){A.call(this,a.l);this.c=a;this.g=b;this.m=c;this.j=b.j||c.j;this.b=b.b||c.b;this.c==Gb&&(c.b||c.j||4==c.l||0==c.l||!b.f?b.b||b.j||4==b.l||0==b.l||!c.f||(this.f={name:c.f.name,B:b}):this.f={name:b.f.name,B:c})}h(Fb,A);
|
|
48
|
-
function Hb(a,b,c,d,e){b=b.a(d);c=c.a(d);var f;if(b instanceof y&&c instanceof y){b=Ab(b);for(d=b.next();d;d=b.next())for(e=Ab(c),f=e.next();f;f=e.next())if(a(w(d),w(f)))return!0;return!1}if(b instanceof y||c instanceof y){b instanceof y?(e=b,d=c):(e=c,d=b);f=Ab(e);for(var g=typeof d,k=f.next();k;k=f.next()){switch(g){case "number":k=+w(k);break;case "boolean":k=!!w(k);break;case "string":k=w(k);break;default:throw Error("Illegal primitive type for comparison.");}if(e==b&&a(k,d)||e==c&&a(d,k))return!0}return!1}return e?
|
|
49
|
-
"boolean"==typeof b||"boolean"==typeof c?a(!!b,!!c):"number"==typeof b||"number"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}Fb.prototype.a=function(a){return this.c.v(this.g,this.m,a)};Fb.prototype.toString=function(){var a="Binary Expression: "+this.c;a+=B(this.g);return a+=B(this.m)};function Ib(a,b,c,d){this.N=a;this.I=b;this.l=c;this.v=d}Ib.prototype.toString=function(){return this.N};var Jb={};
|
|
50
|
-
function E(a,b,c,d){if(Jb.hasOwnProperty(a))throw Error("Binary operator already created: "+a);a=new Ib(a,b,c,d);return Jb[a.toString()]=a}E("div",6,1,function(a,b,c){return C(a,c)/C(b,c)});E("mod",6,1,function(a,b,c){return C(a,c)%C(b,c)});E("*",6,1,function(a,b,c){return C(a,c)*C(b,c)});E("+",5,1,function(a,b,c){return C(a,c)+C(b,c)});E("-",5,1,function(a,b,c){return C(a,c)-C(b,c)});E("<",4,2,function(a,b,c){return Hb(function(d,e){return d<e},a,b,c)});
|
|
51
|
-
E(">",4,2,function(a,b,c){return Hb(function(d,e){return d>e},a,b,c)});E("<=",4,2,function(a,b,c){return Hb(function(d,e){return d<=e},a,b,c)});E(">=",4,2,function(a,b,c){return Hb(function(d,e){return d>=e},a,b,c)});var Gb=E("=",3,2,function(a,b,c){return Hb(function(d,e){return d==e},a,b,c,!0)});E("!=",3,2,function(a,b,c){return Hb(function(d,e){return d!=e},a,b,c,!0)});E("and",2,2,function(a,b,c){return Eb(a,c)&&Eb(b,c)});E("or",1,2,function(a,b,c){return Eb(a,c)||Eb(b,c)});function Kb(a,b){if(b.a.length&&4!=a.l)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");A.call(this,a.l);this.c=a;this.g=b;this.j=a.j;this.b=a.b}h(Kb,A);Kb.prototype.a=function(a){a=this.c.a(a);return Lb(this.g,a)};Kb.prototype.toString=function(){var a="Filter:"+B(this.c);return a+=B(this.g)};function Mb(a,b){if(b.length<a.H)throw Error("Function "+a.o+" expects at least"+a.H+" arguments, "+b.length+" given");if(null!==a.F&&b.length>a.F)throw Error("Function "+a.o+" expects at most "+a.F+" arguments, "+b.length+" given");a.M&&m(b,function(c,d){if(4!=c.l)throw Error("Argument "+d+" to function "+a.o+" is not of type Nodeset: "+c);});A.call(this,a.l);this.C=a;this.c=b;Cb(this,a.j||Ca(b,function(c){return c.j}));Db(this,a.L&&!b.length||a.K&&!!b.length||Ca(b,function(c){return c.b}))}
|
|
52
|
-
h(Mb,A);Mb.prototype.a=function(a){return this.C.v.apply(null,Ea(a,this.c))};Mb.prototype.toString=function(){var a="Function: "+this.C;if(this.c.length){var b=Ba(this.c,function(c,d){return c+B(d)},"Arguments:");a+=B(b)}return a};function Nb(a,b,c,d,e,f,g,k){this.o=a;this.l=b;this.j=c;this.L=d;this.K=!1;this.v=e;this.H=f;this.F=ja(g)?g:f;this.M=!!k}Nb.prototype.toString=function(){return this.o};var Ob={};
|
|
53
|
-
function F(a,b,c,d,e,f,g,k){if(Ob.hasOwnProperty(a))throw Error("Function already created: "+a+".");Ob[a]=new Nb(a,b,c,d,e,f,g,k)}F("boolean",2,!1,!1,function(a,b){return Eb(b,a)},1);F("ceiling",1,!1,!1,function(a,b){return Math.ceil(C(b,a))},1);F("concat",3,!1,!1,function(a,b){return Ba(Fa(arguments,1),function(c,d){return c+D(d,a)},"")},2,null);F("contains",2,!1,!1,function(a,b,c){b=D(b,a);a=D(c,a);return-1!=b.indexOf(a)},2);F("count",1,!1,!1,function(a,b){return b.a(a).s},1,1,!0);
|
|
54
|
-
F("false",2,!1,!1,function(){return!1},0);F("floor",1,!1,!1,function(a,b){return Math.floor(C(b,a))},1);F("id",4,!1,!1,function(a,b){var c=a.a,d=9==c.nodeType?c:c.ownerDocument;a=D(b,a).split(/\s+/);var e=[];m(a,function(g){g=d.getElementById(g);!g||0<=za(e,g)||e.push(g)});e.sort(kb);var f=new y;m(e,function(g){f.add(g)});return f},1);F("lang",2,!1,!1,function(){return!1},1);F("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.f},0);
|
|
55
|
-
F("local-name",3,!1,!0,function(a,b){return(a=b?yb(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);F("name",3,!1,!0,function(a,b){return(a=b?yb(b.a(a)):a.a)?a.nodeName.toLowerCase():""},0,1,!0);F("namespace-uri",3,!0,!1,function(){return""},0,1,!0);F("normalize-space",3,!1,!0,function(a,b){return(b?D(b,a):w(a.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);F("not",2,!1,!1,function(a,b){return!Eb(b,a)},1);F("number",1,!1,!0,function(a,b){return b?C(b,a):+w(a.a)},0,1);
|
|
56
|
-
F("position",1,!0,!1,function(a){return a.b},0);F("round",1,!1,!1,function(a,b){return Math.round(C(b,a))},1);F("starts-with",2,!1,!1,function(a,b,c){b=D(b,a);a=D(c,a);return 0==b.lastIndexOf(a,0)},2);F("string",3,!1,!0,function(a,b){return b?D(b,a):w(a.a)},0,1);F("string-length",1,!1,!0,function(a,b){return(b?D(b,a):w(a.a)).length},0,1);
|
|
57
|
-
F("substring",3,!1,!1,function(a,b,c,d){c=C(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?C(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=D(b,a);return Infinity==d?a.substring(e):a.substring(e,c+Math.round(d))},2,3);F("substring-after",3,!1,!1,function(a,b,c){b=D(b,a);a=D(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
|
|
58
|
-
F("substring-before",3,!1,!1,function(a,b,c){b=D(b,a);a=D(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);F("sum",1,!1,!1,function(a,b){a=Ab(b.a(a));b=0;for(var c=a.next();c;c=a.next())b+=+w(c);return b},1,1,!0);F("translate",3,!1,!1,function(a,b,c,d){b=D(b,a);c=D(c,a);var e=D(d,a);a={};for(d=0;d<c.length;d++){var f=c.charAt(d);f in a||(a[f]=e.charAt(d))}c="";for(d=0;d<b.length;d++)f=b.charAt(d),c+=f in a?a[f]:f;return c},3);F("true",2,!1,!1,function(){return!0},0);function tb(a,b){this.g=a;this.c=ja(b)?b:null;this.b=null;switch(a){case "comment":this.b=8;break;case "text":this.b=3;break;case "processing-instruction":this.b=7;break;case "node":break;default:throw Error("Unexpected argument");}}function Pb(a){return"comment"==a||"text"==a||"processing-instruction"==a||"node"==a}tb.prototype.a=function(a){return null===this.b||this.b==a.nodeType};tb.prototype.f=function(){return this.g};
|
|
59
|
-
tb.prototype.toString=function(){var a="Kind Test: "+this.g;null===this.c||(a+=B(this.c));return a};function Qb(a){A.call(this,3);this.c=a.substring(1,a.length-1)}h(Qb,A);Qb.prototype.a=function(){return this.c};Qb.prototype.toString=function(){return"Literal: "+this.c};function Rb(a,b){this.o=a.toLowerCase();a="*"==this.o?"*":"http://www.w3.org/1999/xhtml";this.b=b?b.toLowerCase():a}Rb.prototype.a=function(a){var b=a.nodeType;if(1!=b&&2!=b)return!1;b=ja(a.localName)?a.localName:a.nodeName;return"*"!=this.o&&this.o!=b.toLowerCase()?!1:"*"==this.b?!0:this.b==(a.namespaceURI?a.namespaceURI.toLowerCase():"http://www.w3.org/1999/xhtml")};Rb.prototype.f=function(){return this.o};
|
|
60
|
-
Rb.prototype.toString=function(){return"Name Test: "+("http://www.w3.org/1999/xhtml"==this.b?"":this.b+":")+this.o};function Sb(a){A.call(this,1);this.c=a}h(Sb,A);Sb.prototype.a=function(){return this.c};Sb.prototype.toString=function(){return"Number: "+this.c};function Tb(a,b){A.call(this,a.l);this.g=a;this.c=b;this.j=a.j;this.b=a.b;1==this.c.length&&(a=this.c[0],a.u||a.c!=Ub||(a=a.m,"*"!=a.f()&&(this.f={name:a.f(),B:null})))}h(Tb,A);function Vb(){A.call(this,4)}h(Vb,A);Vb.prototype.a=function(a){var b=new y;a=a.a;9==a.nodeType?b.add(a):b.add(a.ownerDocument);return b};Vb.prototype.toString=function(){return"Root Helper Expression"};function Wb(){A.call(this,4)}h(Wb,A);Wb.prototype.a=function(a){var b=new y;b.add(a.a);return b};Wb.prototype.toString=function(){return"Context Helper Expression"};
|
|
61
|
-
function Xb(a){return"/"==a||"//"==a}Tb.prototype.a=function(a){var b=this.g.a(a);if(!(b instanceof y))throw Error("Filter expression must evaluate to nodeset.");a=this.c;for(var c=0,d=a.length;c<d&&b.s;c++){var e=a[c],f=Ab(b,e.c.A);if(e.j||e.c!=Yb)if(e.j||e.c!=Zb){var g=f.next();for(b=e.a(new ya(g));null!=(g=f.next());)g=e.a(new ya(g)),b=wb(b,g)}else g=f.next(),b=e.a(new ya(g));else{for(g=f.next();(b=f.next())&&(!g.contains||g.contains(b))&&b.compareDocumentPosition(g)&8;g=b);b=e.a(new ya(g))}}return b};
|
|
62
|
-
Tb.prototype.toString=function(){var a="Path Expression:"+B(this.g);if(this.c.length){var b=Ba(this.c,function(c,d){return c+B(d)},"Steps:");a+=B(b)}return a};function $b(a,b){this.a=a;this.A=!!b}
|
|
63
|
-
function Lb(a,b,c){for(c=c||0;c<a.a.length;c++)for(var d=a.a[c],e=Ab(b),f=b.s,g,k=0;g=e.next();k++){var l=a.A?f-k:k+1;g=d.a(new ya(g,l,f));if("number"==typeof g)l=l==g;else if("string"==typeof g||"boolean"==typeof g)l=!!g;else if(g instanceof y)l=0<g.s;else throw Error("Predicate.evaluate returned an unexpected type.");if(!l){l=e;g=l.f;var p=l.a;if(!p)throw Error("Next must be called at least once before remove.");var t=p.a;p=p.next;t?t.next=p:g.a=p;p?p.a=t:g.b=t;g.s--;l.a=null}}return b}
|
|
64
|
-
$b.prototype.toString=function(){return Ba(this.a,function(a,b){return a+B(b)},"Predicates:")};function ac(a,b,c,d){A.call(this,4);this.c=a;this.m=b;this.g=c||new $b([]);this.u=!!d;b=this.g;b=0<b.a.length?b.a[0].f:null;a.P&&b&&(this.f={name:b.name,B:b.B});a:{a=this.g;for(b=0;b<a.a.length;b++)if(c=a.a[b],c.j||1==c.l||0==c.l){a=!0;break a}a=!1}this.j=a}h(ac,A);
|
|
65
|
-
ac.prototype.a=function(a){var b=a.a,c=this.f,d=null,e=null,f=0;c&&(d=c.name,e=c.B?D(c.B,a):null,f=1);if(this.u)if(this.j||this.c!=bc)if(b=Ab((new ac(cc,new tb("node"))).a(a)),c=b.next())for(a=this.v(c,d,e,f);null!=(c=b.next());)a=wb(a,this.v(c,d,e,f));else a=new y;else a=rb(this.m,b,d,e),a=Lb(this.g,a,f);else a=this.v(a.a,d,e,f);return a};ac.prototype.v=function(a,b,c,d){a=this.c.C(this.m,a,b,c);return a=Lb(this.g,a,d)};
|
|
66
|
-
ac.prototype.toString=function(){var a="Step:"+B("Operator: "+(this.u?"//":"/"));this.c.o&&(a+=B("Axis: "+this.c));a+=B(this.m);if(this.g.a.length){var b=Ba(this.g.a,function(c,d){return c+B(d)},"Predicates:");a+=B(b)}return a};function dc(a,b,c,d){this.o=a;this.C=b;this.A=c;this.P=d}dc.prototype.toString=function(){return this.o};var ec={};function I(a,b,c,d){if(ec.hasOwnProperty(a))throw Error("Axis already created: "+a);b=new dc(a,b,c,!!d);return ec[a]=b}
|
|
67
|
-
I("ancestor",function(a,b){for(var c=new y;b=b.parentNode;)a.a(b)&&xb(c,b);return c},!0);I("ancestor-or-self",function(a,b){var c=new y;do a.a(b)&&xb(c,b);while(b=b.parentNode);return c},!0);
|
|
68
|
-
var Ub=I("attribute",function(a,b){var c=new y,d=a.f();if(b=b.attributes)if(a instanceof tb&&null===a.b||"*"==d)for(a=0;d=b[a];a++)c.add(d);else(d=b.getNamedItem(d))&&c.add(d);return c},!1),bc=I("child",function(a,b,c,d,e){c=ka(c)?c:null;d=ka(d)?d:null;e=e||new y;for(b=b.firstChild;b;b=b.nextSibling)qb(b,c,d)&&a.a(b)&&e.add(b);return e},!1,!0);I("descendant",rb,!1,!0);
|
|
69
|
-
var cc=I("descendant-or-self",function(a,b,c,d){var e=new y;qb(b,c,d)&&a.a(b)&&e.add(b);return rb(a,b,c,d,e)},!1,!0),Yb=I("following",function(a,b,c,d){var e=new y;do for(var f=b;f=f.nextSibling;)qb(f,c,d)&&a.a(f)&&e.add(f),e=rb(a,f,c,d,e);while(b=b.parentNode);return e},!1,!0);I("following-sibling",function(a,b){for(var c=new y;b=b.nextSibling;)a.a(b)&&c.add(b);return c},!1);I("namespace",function(){return new y},!1);
|
|
70
|
-
var fc=I("parent",function(a,b){var c=new y;if(9==b.nodeType)return c;if(2==b.nodeType)return c.add(b.ownerElement),c;b=b.parentNode;a.a(b)&&c.add(b);return c},!1),Zb=I("preceding",function(a,b,c,d){var e=new y,f=[];do f.unshift(b);while(b=b.parentNode);for(var g=1,k=f.length;g<k;g++){var l=[];for(b=f[g];b=b.previousSibling;)l.unshift(b);for(var p=0,t=l.length;p<t;p++)b=l[p],qb(b,c,d)&&a.a(b)&&e.add(b),e=rb(a,b,c,d,e)}return e},!0,!0);
|
|
71
|
-
I("preceding-sibling",function(a,b){for(var c=new y;b=b.previousSibling;)a.a(b)&&xb(c,b);return c},!0);var gc=I("self",function(a,b){var c=new y;a.a(b)&&c.add(b);return c},!1);function ic(a){A.call(this,1);this.c=a;this.j=a.j;this.b=a.b}h(ic,A);ic.prototype.a=function(a){return-C(this.c,a)};ic.prototype.toString=function(){return"Unary Expression: -"+B(this.c)};function jc(a){A.call(this,4);this.c=a;Cb(this,Ca(this.c,function(b){return b.j}));Db(this,Ca(this.c,function(b){return b.b}))}h(jc,A);jc.prototype.a=function(a){var b=new y;m(this.c,function(c){c=c.a(a);if(!(c instanceof y))throw Error("Path expression must evaluate to NodeSet.");b=wb(b,c)});return b};jc.prototype.toString=function(){return Ba(this.c,function(a,b){return a+B(b)},"Union Expression:")};function kc(a,b){this.a=a;this.b=b}function lc(a){for(var b,c=[];;){J(a,"Missing right hand side of binary expression.");b=mc(a);var d=a.a.next();if(!d)break;var e=(d=Jb[d]||null)&&d.I;if(!e){a.a.a--;break}for(;c.length&&e<=c[c.length-1].I;)b=new Fb(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new Fb(c.pop(),c.pop(),b);return b}function J(a,b){if(fb(a.a))throw Error(b);}function nc(a,b){a=a.a.next();if(a!=b)throw Error("Bad token, expected: "+b+" got: "+a);}
|
|
72
|
-
function oc(a){a=a.a.next();if(")"!=a)throw Error("Bad token: "+a);}function pc(a){a=a.a.next();if(2>a.length)throw Error("Unclosed literal string");return new Qb(a)}
|
|
73
|
-
function qc(a){var b=[];if(Xb(q(a.a))){var c=a.a.next();var d=q(a.a);if("/"==c&&(fb(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new Vb;d=new Vb;J(a,"Missing next location step.");c=rc(a,c);b.push(c)}else{a:{c=q(a.a);d=c.charAt(0);switch(d){case "$":throw Error("Variable reference not allowed in HTML XPath");case "(":a.a.next();c=lc(a);J(a,'unclosed "("');nc(a,")");break;case '"':case "'":c=pc(a);break;default:if(isNaN(+c))if(!Pb(c)&&/(?![0-9])[\w]/.test(d)&&"("==q(a.a,
|
|
74
|
-
1)){c=a.a.next();c=Ob[c]||null;a.a.next();for(d=[];")"!=q(a.a);){J(a,"Missing function argument list.");d.push(lc(a));if(","!=q(a.a))break;a.a.next()}J(a,"Unclosed function argument list.");oc(a);c=new Mb(c,d)}else{c=null;break a}else c=new Sb(+a.a.next())}"["==q(a.a)&&(d=new $b(sc(a)),c=new Kb(c,d))}if(c)if(Xb(q(a.a)))d=c;else return c;else c=rc(a,"/"),d=new Wb,b.push(c)}for(;Xb(q(a.a));)c=a.a.next(),J(a,"Missing next location step."),c=rc(a,c),b.push(c);return new Tb(d,b)}
|
|
75
|
-
function rc(a,b){if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==q(a.a)){var c=new ac(gc,new tb("node"));a.a.next();return c}if(".."==q(a.a))return c=new ac(fc,new tb("node")),a.a.next(),c;if("@"==q(a.a)){var d=Ub;a.a.next();J(a,"Missing attribute name")}else if("::"==q(a.a,1)){if(!/(?![0-9])[\w]/.test(q(a.a).charAt(0)))throw Error("Bad token: "+a.a.next());var e=a.a.next();d=ec[e]||null;if(!d)throw Error("No axis with name: "+e);a.a.next();J(a,"Missing node name")}else d=
|
|
76
|
-
bc;e=q(a.a);if(/(?![0-9])[\w\*]/.test(e.charAt(0)))if("("==q(a.a,1)){if(!Pb(e))throw Error("Invalid node type: "+e);e=a.a.next();if(!Pb(e))throw Error("Invalid type name: "+e);nc(a,"(");J(a,"Bad nodetype");var f=q(a.a).charAt(0),g=null;if('"'==f||"'"==f)g=pc(a);J(a,"Bad nodetype");oc(a);e=new tb(e,g)}else if(e=a.a.next(),f=e.indexOf(":"),-1==f)e=new Rb(e);else{g=e.substring(0,f);if("*"==g)var k="*";else if(k=a.b(g),!k)throw Error("Namespace prefix not declared: "+g);e=e.substr(f+1);e=new Rb(e,k)}else throw Error("Bad token: "+
|
|
77
|
-
a.a.next());a=new $b(sc(a),d.A);return c||new ac(d,e,a,"//"==b)}function sc(a){for(var b=[];"["==q(a.a);){a.a.next();J(a,"Missing predicate expression.");var c=lc(a);b.push(c);J(a,"Unclosed predicate expression.");nc(a,"]")}return b}function mc(a){if("-"==q(a.a))return a.a.next(),new ic(mc(a));var b=qc(a);if("|"!=q(a.a))a=b;else{for(b=[b];"|"==a.a.next();)J(a,"Missing next union location path."),b.push(qc(a));a.a.a--;a=new jc(b)}return a};function tc(a){switch(a.nodeType){case 1:return va(uc,a);case 9:return tc(a.documentElement);case 11:case 10:case 6:case 12:return vc;default:return a.parentNode?tc(a.parentNode):vc}}function vc(){return null}function uc(a,b){if(a.prefix==b)return a.namespaceURI||"http://www.w3.org/1999/xhtml";var c=a.getAttributeNode("xmlns:"+b);return c&&c.specified?c.value||null:a.parentNode&&9!=a.parentNode.nodeType?uc(a.parentNode,b):null};function wc(a,b){if(!a.length)throw Error("Empty XPath expression.");a=cb(a);if(fb(a))throw Error("Invalid XPath expression.");b?oa(b)||(b=ua(b.lookupNamespaceURI,b)):b=function(){return null};var c=lc(new kc(a,b));if(!fb(a))throw Error("Bad token: "+a.next());this.evaluate=function(d,e){d=c.a(new ya(d));return new K(d,e)}}
|
|
78
|
-
function K(a,b){if(0==b)if(a instanceof y)b=4;else if("string"==typeof a)b=2;else if("number"==typeof a)b=1;else if("boolean"==typeof a)b=3;else throw Error("Unexpected evaluation result.");if(2!=b&&1!=b&&3!=b&&!(a instanceof y))throw Error("value could not be converted to the specified type");this.resultType=b;switch(b){case 2:this.stringValue=a instanceof y?zb(a):""+a;break;case 1:this.numberValue=a instanceof y?+zb(a):+a;break;case 3:this.booleanValue=a instanceof y?0<a.s:!!a;break;case 4:case 5:case 6:case 7:var c=
|
|
79
|
-
Ab(a);var d=[];for(var e=c.next();e;e=c.next())d.push(e);this.snapshotLength=a.s;this.invalidIteratorState=!1;break;case 8:case 9:this.singleNodeValue=yb(a);break;default:throw Error("Unknown XPathResult type.");}var f=0;this.iterateNext=function(){if(4!=b&&5!=b)throw Error("iterateNext called with wrong result type");return f>=d.length?null:d[f++]};this.snapshotItem=function(g){if(6!=b&&7!=b)throw Error("snapshotItem called with wrong result type");return g>=d.length||0>g?null:d[g]}}K.ANY_TYPE=0;
|
|
80
|
-
K.NUMBER_TYPE=1;K.STRING_TYPE=2;K.BOOLEAN_TYPE=3;K.UNORDERED_NODE_ITERATOR_TYPE=4;K.ORDERED_NODE_ITERATOR_TYPE=5;K.UNORDERED_NODE_SNAPSHOT_TYPE=6;K.ORDERED_NODE_SNAPSHOT_TYPE=7;K.ANY_UNORDERED_NODE_TYPE=8;K.FIRST_ORDERED_NODE_TYPE=9;function xc(a){this.lookupNamespaceURI=tc(a)}
|
|
81
|
-
function yc(a,b){a=a||ia;var c=a.Document&&a.Document.prototype||a.document;if(!c.evaluate||b)a.XPathResult=K,c.evaluate=function(d,e,f,g){return(new wc(d,f)).evaluate(e,g)},c.createExpression=function(d,e){return new wc(d,e)},c.createNSResolver=function(d){return new xc(d)}}la("wgxpath.install",yc);la("wgxpath.install",yc);var zc=window;var Ac={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",
|
|
18
|
+
function sa(a){var b=typeof a;return b=="object"&&a!=null||b=="function"}
|
|
19
|
+
function ta(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";
|
|
20
|
+
else if(b=="function"&&typeof a.call=="undefined")return"object";return b}function ua(a){var b=ta(a);return b=="array"||b=="object"&&typeof a.length=="number"}function m(a,b){function c(){}c.prototype=b.prototype;a.G=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.I=function(d,e,f){for(var h=Array(arguments.length-2),k=2;k<arguments.length;k++)h[k-2]=arguments[k];return b.prototype[e].apply(d,h)}}var va="closure_uid_"+(Math.random()*1E9>>>0),wa=0;function n(a,b){this.code=a;this.g=r[a]||xa;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||""}m(n,Error);var xa="unknown error",r={15:"element not selectable",11:"element not visible"};r[31]=xa;r[30]=xa;r[24]="invalid cookie domain";r[29]="invalid element coordinates";r[12]="invalid element state";
|
|
21
|
+
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]=xa;r[9]="unknown command";var ya=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)},za=Array.prototype.map?function(a,b){return Array.prototype.map.call(a,
|
|
22
|
+
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},Aa=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){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))return!0;return!1},Ba=Array.prototype.every?function(a,b){return Array.prototype.every.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=typeof a===
|
|
23
|
+
"string"?a.split(""):a,e=0;e<c;e++)if(e in d&&!b.call(void 0,d[e],e,a))return!1;return!0};var Ca={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",
|
|
82
24
|
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",
|
|
83
25
|
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",
|
|
84
26
|
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",
|
|
85
27
|
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",
|
|
86
|
-
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
|
|
87
|
-
|
|
88
|
-
function
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
function
|
|
92
|
-
function
|
|
93
|
-
function
|
|
94
|
-
function
|
|
95
|
-
if(!d&&(d=
|
|
96
|
-
function
|
|
97
|
-
|
|
98
|
-
function
|
|
99
|
-
b)}var
|
|
100
|
-
function
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
function
|
|
104
|
-
function
|
|
105
|
-
function
|
|
106
|
-
function
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
clientX:
|
|
111
|
-
if(1
|
|
112
|
-
b.shiftKey,b.metaKey,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
function
|
|
118
|
-
function
|
|
119
|
-
function(
|
|
120
|
-
function
|
|
121
|
-
function
|
|
122
|
-
function
|
|
123
|
-
var
|
|
124
|
-
|
|
125
|
-
var
|
|
126
|
-
var
|
|
127
|
-
var
|
|
128
|
-
function
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
function
|
|
132
|
-
function
|
|
133
|
-
function
|
|
134
|
-
|
|
135
|
-
a);if("date"
|
|
136
|
-
function
|
|
137
|
-
c.
|
|
138
|
-
|
|
139
|
-
function
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
28
|
+
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 Da="backgroundColor borderTopColor borderRightColor borderBottomColor borderLeftColor color outlineColor".split(" "),Ea=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,Fa=/^#(?:[0-9a-f]{3}){1,2}$/i,Ga=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i,Ha=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;var Ia=pa.H&&String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};
|
|
29
|
+
function Ja(a,b){var c=0;a=Ia(String(a)).split(".");b=Ia(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(f[0].length==0&&h[0].length==0)break;c=Ka(f[1].length==0?0:parseInt(f[1],10),h[1].length==0?0:parseInt(h[1],10))||Ka(f[2].length==0,h[2].length==0)||Ka(f[2],h[2]);f=f[3];h=h[3]}while(c==0)}return c}function Ka(a,b){return a<b?-1:a>b?1:0};function La(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function Ma(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 Na(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};function Oa(){var a=qa.navigator;return a&&(a=a.userAgent)?a:""}function y(a){return Oa().indexOf(a)!=-1};function Pa(){return y("Firefox")||y("FxiOS")}function Qa(){return(y("Chrome")||y("CriOS"))&&!y("Edge")||y("Silk")};function Ra(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};function Sa(){return y("iPhone")&&!y("iPod")&&!y("iPad")};function Ta(a){var b=Ua;return Object.prototype.hasOwnProperty.call(b,534)?b[534]:b[534]=a(534)};var Va=y("Macintosh"),Wa=y("Windows"),Xa,Ya="",Za=/WebKit\/(\S+)/.exec(Oa());Za&&(Ya=Za?Za[1]:"");Xa=Ya;var Ua={};function $a(){return Ta(function(){return Ja(Xa,534)>=0})};var ab=Pa(),bb=Sa()||y("iPod"),cb=y("iPad"),db=y("Android")&&!(Qa()||Pa()||y("Opera")||y("Silk")),eb=Qa(),fb=y("Safari")&&!(Qa()||y("Coast")||y("Opera")||y("Edge")||y("Edg/")||y("OPR")||Pa()||y("Silk")||y("Android"))&&!(Sa()||y("iPad")||y("iPod"));function gb(a){return(a=a.exec(Oa()))?a[1]:""}var hb=function(){if(ab)return gb(/Firefox\/([0-9.]+)/);if(eb){if(Sa()||y("iPad")||y("iPod")||y("Macintosh")){var a=gb(/CriOS\/([0-9.]+)/);if(a)return a}return gb(/Chrome\/([0-9.]+)/)}if(fb&&!(Sa()||y("iPad")||y("iPod")))return gb(/Version\/([0-9.]+)/);if(bb||cb){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Oa()))return a[1]+"."+a[2]}else if(db)return(a=gb(/Android\s+([0-9.]+)/))?a:gb(/Version\/([0-9.]+)/);return""}();function ib(a){return db?Ja(jb,a)>=0:Ja(hb,a)>=0}var kb=cb||bb,lb;if(db){var mb=/Android\s+([0-9\.]+)/.exec(Oa());lb=mb?mb[1]:"0"}else lb="0";var jb=lb,nb=Number(void 0)>=10;function B(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0}B.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};B.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};B.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};B.prototype.scale=function(a,b){this.x*=a;this.y*=typeof b==="number"?b:a;return this};function ob(a,b){this.width=a;this.height=b}g=ob.prototype;g.aspectRatio=function(){return this.width/this.height};g.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};g.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};g.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};g.scale=function(a,b){this.width*=a;this.height*=typeof b==="number"?b:a;return this};function pb(a){return a?a.parentWindow||a.defaultView:window}function qb(a){for(;a&&a.nodeType!=1;)a=a.previousSibling;return a}function C(a){return a.nodeType==9?a:a.ownerDocument||a.document}function sb(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null}function tb(a){try{var b=a&&a.activeElement;return b&&b.nodeName?b:null}catch(c){return null}}function ub(a){this.g=a||qa.document||document};function vb(a){var b="tabindex";return b=="style"?wb(a.style.cssText):(a=a.getAttributeNode(b))&&a.specified?a.value:null}var xb=RegExp("[;]+(?=(?:(?:[^\"]*\"){2})*[^\"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\\([^()]*\\))*[^()]*$)");function wb(a){var b=[];t(a.split(xb),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+";"}
|
|
30
|
+
function D(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 yb(a){return D(a,"OPTION")?!0:D(a,"INPUT")?(a=a.type.toLowerCase(),a=="checkbox"||a=="radio"):!1}function zb(a){if(!yb(a))throw new n(15,"Element is not selectable");var b="selected",c=a.type&&a.type.toLowerCase();if("checkbox"==c||"radio"==c)b="checked";return!!a[b]};var Ab={F:function(a,b){if(!a)throw new n(32,"No selector specified");a=Ia(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},K:function(a,b){if(!a)throw new n(32,"No selector specified");a=Ia(a);try{return b.querySelectorAll(a)}catch(c){throw new n(32,"An invalid or illegal selector was specified");}}};function Bb(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}Bb.prototype.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};Bb.prototype.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
|
|
31
|
+
Bb.prototype.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};Bb.prototype.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};function E(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}E.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};E.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};
|
|
32
|
+
E.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};E.prototype.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};function Cb(a,b){var c=C(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""}function Db(a){var b=a.offsetWidth,c=a.offsetHeight;if((b===void 0||!b&&!c)&&a.getBoundingClientRect){try{var d=a.getBoundingClientRect()}catch(e){d={left:0,top:0,right:0,bottom:0}}return new ob(d.right-d.left,d.bottom-d.top)}return new ob(b,c)};var Eb=typeof ShadowRoot==="function";function F(a){return Fb(a)&&Gb(a)&&G(a,"pointer-events")!="none"}var Hb="A AREA BUTTON INPUT LABEL SELECT TEXTAREA".split(" ");function Ib(a){return Aa(Hb,function(b){return D(a,b)})||vb(a)!=null&&Number(a.tabIndex)>=0||Jb(a)}var Kb="BUTTON INPUT OPTGROUP OPTION SELECT TEXTAREA".split(" ");
|
|
33
|
+
function Gb(a){return Aa(Kb,function(b){return D(a,b)})?a.disabled?!1:a.parentNode&&a.parentNode.nodeType==1&&D(a,"OPTGROUP")||D(a,"OPTION")?Gb(a.parentNode):!sb(a,function(b){var c=b.parentNode;if(c&&D(c,"FIELDSET")&&c.disabled){if(!D(b,"LEGEND"))return!0;for(;b=b.previousElementSibling!==void 0?b.previousElementSibling:qb(b.previousSibling);)if(D(b,"LEGEND"))return!0}return!1},!0):!0}var Lb="text search tel url email password number".split(" ");
|
|
34
|
+
function H(a,b){return D(a,"INPUT")?a.type.toLowerCase()==b:!1}function Mb(a){function b(c){return c.contentEditable=="inherit"?(c=I(c))?b(c):!1:c.contentEditable=="true"}return a.contentEditable===void 0?!1:a.isContentEditable===void 0?b(a):a.isContentEditable}
|
|
35
|
+
function Jb(a){return((D(a,"TEXTAREA")?!0:D(a,"INPUT")?ya(Lb,a.type.toLowerCase())>=0:Mb(a)?!0:!1)||(D(a,"INPUT")?a.type.toLowerCase()=="file":!1)||H(a,"range")||H(a,"date")||H(a,"month")||H(a,"week")||H(a,"time")||H(a,"datetime-local")||H(a,"color"))&&!a.readOnly}function I(a){for(a=a.parentNode;a&&a.nodeType!=1&&a.nodeType!=9&&a.nodeType!=11;)a=a.parentNode;return D(a)?a:null}
|
|
36
|
+
function G(a,b){b=Ra(b);if(b=="float"||b=="cssFloat"||b=="styleFloat")b="cssFloat";a=Cb(a,b)||Nb(a,b);if(a===null)a=null;else if(ya(Da,b)>=0){b:{var c=a.match(Ga);if(c){b=Number(c[1]);var d=Number(c[2]),e=Number(c[3]);c=Number(c[4]);if(b>=0&&b<=255&&d>=0&&d<=255&&e>=0&&e<=255&&c>=0&&c<=1){b=[b,d,e,c];break b}}b=null}if(!b)b:{if(e=a.match(Ha))if(b=Number(e[1]),d=Number(e[2]),e=Number(e[3]),b>=0&&b<=255&&d>=0&&d<=255&&e>=0&&e<=255){b=[b,d,e,1];break b}b=null}if(!b)b:{b=a.toLowerCase();d=Ca[b.toLowerCase()];
|
|
37
|
+
if(!d&&(d=b.charAt(0)=="#"?b:"#"+b,d.length==4&&(d=d.replace(Ea,"#$1$1$2$2$3$3")),!Fa.test(d))){b=null;break b}b=[parseInt(d.substr(1,2),16),parseInt(d.substr(3,2),16),parseInt(d.substr(5,2),16),1]}a=b?"rgba("+b.join(", ")+")":a}return a}function Nb(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=I(a))?Nb(a,b):null}
|
|
38
|
+
function Ob(a,b,c){function d(h){var k=Pb(h);if(k.height>0&&k.width>0)return!0;if(D(h,"PATH")&&(k.height>0||k.width>0))return h=G(h,"stroke-width"),!!h&&parseInt(h,10)>0;k=G(h,"visibility");return k!="collapse"&&k!="hidden"&&c(h)?G(h,"overflow")!="hidden"&&Aa(h.childNodes,function(l){return l.nodeType==3?(l=l.nodeValue,/^[\s]*$/.test(l)&&/[\n\r\t]/.test(l)?!1:!0):D(l)&&d(l)}):!1}function e(h){return Qb(h)==J&&Ba(h.childNodes,function(k){return!D(k)||e(k)||!d(k)})}if(!D(a))throw Error("Argument to isShown must be of type Element");
|
|
39
|
+
if(D(a,"BODY"))return!0;if(D(a,"OPTION")||D(a,"OPTGROUP"))return a=sb(a,function(h){return D(h,"SELECT")}),!!a&&Ob(a,!0,c);var f=Rb(a);if(f)return!!f.image&&f.rect.width>0&&f.rect.height>0&&Ob(f.image,b,c);if(D(a,"INPUT")&&a.type.toLowerCase()=="hidden"||D(a,"NOSCRIPT"))return!1;f=G(a,"visibility");return f!="collapse"&&f!="hidden"&&c(a)&&(b||Sb(a)!=0)&&d(a)?!e(a):!1}
|
|
40
|
+
function Fb(a){function b(c){if(D(c)&&(G(c,"display")=="none"||G(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(Eb&&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&&D(d,"DETAILS")&&!d.open&&!D(c,"SUMMARY")?
|
|
41
|
+
!1:!!d&&b(d):!0}return Ob(a,!0,b)}var J="hidden";
|
|
42
|
+
function Qb(a,b){function c(p){function x(rb){if(rb==h)return!0;var ic=G(rb,"display");return ic.lastIndexOf("inline",0)==0||ic=="contents"||jc=="absolute"&&G(rb,"position")=="static"?!1:!0}var jc=G(p,"position");if(jc=="fixed")return q=!0,p==h?null:h;for(p=I(p);p&&!x(p);)p=I(p);return p}function d(p){var x=p;if(l=="visible")if(p==h&&k)x=k;else if(p==k)return{x:"visible",y:"visible"};x={x:G(x,"overflow-x"),y:G(x,"overflow-y")};p==h&&(x.x=x.x=="visible"?"auto":x.x,x.y=x.y=="visible"?"auto":x.y);return x}
|
|
43
|
+
function e(p){if(p==h){var x=(new ub(f)).g;p=x.scrollingElement?x.scrollingElement:x.body||x.documentElement;x=x.parentWindow||x.defaultView;p=new B(x.pageXOffset||p.scrollLeft,x.pageYOffset||p.scrollTop)}else p=new B(p.scrollLeft,p.scrollTop);return p}b=Tb(a,b);var f=C(a),h=f.documentElement,k=f.body,l=G(h,"overflow"),q;for(a=c(a);a;a=c(a)){var w=d(a);if(w.x!="visible"||w.y!="visible"){var z=Pb(a);if(z.width==0||z.height==0)return J;var A=b.right<z.left,u=b.bottom<z.top;if(A&&w.x=="hidden"||u&&w.y==
|
|
44
|
+
"hidden")return J;if(A&&w.x!="visible"||u&&w.y!="visible"){A=e(a);u=b.bottom<z.top-A.y;if(b.right<z.left-A.x&&w.x!="visible"||u&&w.x!="visible")return J;b=Qb(a);return b==J?J:"scroll"}A=b.left>=z.left+z.width;z=b.top>=z.top+z.height;if(A&&w.x=="hidden"||z&&w.y=="hidden")return J;if(A&&w.x!="visible"||z&&w.y!="visible"){if(q&&(w=e(a),b.left>=h.scrollWidth-w.x||b.right>=h.scrollHeight-w.y))return J;b=Qb(a);return b==J?J:"scroll"}}}return"none"}
|
|
45
|
+
function Pb(a){var b=Rb(a);if(b)return b.rect;if(D(a,"HTML"))return a=(pb(C(a))||window).document,a=a.compatMode=="CSS1Compat"?a.documentElement:a.body,a=new ob(a.clientWidth,a.clientHeight),new E(0,0,a.width,a.height);try{var c=a.getBoundingClientRect()}catch(d){return new E(0,0,0,0)}return new E(c.left,c.top,c.right-c.left,c.bottom-c.top)}
|
|
46
|
+
function Rb(a){var b=D(a,"MAP");if(!b&&!D(a,"AREA"))return null;var c=b?a:D(a.parentNode,"MAP")?a.parentNode:null,d=null,e=null;c&&c.name&&(d=Ab.F('*[usemap="#'+c.name+'"]',C(c)))&&(e=Pb(d),b||a.shape.toLowerCase()=="default"||(a=Ub(a),b=Math.min(Math.max(a.left,0),e.width),c=Math.min(Math.max(a.top,0),e.height),e=new E(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 E(0,0,0,0)}}
|
|
47
|
+
function Ub(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 E(b,c,a[2]-b,a[3]-c)}if(b=="circle"&&a.length==3)return b=a[2],new E(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 E(b,c,d-b,e-c)}return new E(0,0,0,0)}
|
|
48
|
+
function Tb(a,b){a=Pb(a);a=new Bb(a.top,a.left+a.width,a.top+a.height,a.left);b&&(b=b instanceof E?b:new E(b.x,b.y,1,1),a.left=Math.min(Math.max(a.left+b.left,a.left),a.right),a.top=Math.min(Math.max(a.top+b.top,a.top),a.bottom),a.right=Math.min(Math.max(a.left+b.width,a.left),a.right),a.bottom=Math.min(Math.max(a.top+b.height,a.top),a.bottom));return a}function Sb(a){var b=1,c=G(a,"opacity");c&&(b=Number(c));(a=I(a))&&(b*=Sb(a));return b};var Vb=db?!ib(4):!kb;function K(a,b,c){this.g=a;this.i=b;this.m=c}K.prototype.create=function(a){a=C(a).createEvent("HTMLEvents");a.initEvent(this.g,this.i,this.m);return a};K.prototype.toString=function(){return this.g};function L(a,b,c){K.call(this,a,b,c)}m(L,K);
|
|
49
|
+
L.prototype.create=function(a,b){if(this==Wb)throw new n(9,"Browser does not support a mouse pixel scroll event.");var c=C(a);a=pb(c);c=c.createEvent("MouseEvents");this==Xb&&(c.wheelDelta=b.wheelDelta);c.initMouseEvent(this.g,this.i,this.m,a,1,b.clientX,b.clientY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);return c};function Yb(a,b,c){K.call(this,a,b,c)}m(Yb,K);
|
|
50
|
+
Yb.prototype.create=function(a,b){a=C(a).createEvent("Events");a.initEvent(this.g,this.i,this.m);a.altKey=b.altKey;a.ctrlKey=b.ctrlKey;a.metaKey=b.metaKey;a.shiftKey=b.shiftKey;a.keyCode=b.charCode||b.keyCode;a.charCode=this==Zb?a.keyCode:0;return a};function $b(a,b,c){K.call(this,a,b,c)}m($b,K);
|
|
51
|
+
$b.prototype.create=function(a,b){function c(A){A=za(A,function(u){return h.createTouch(k,a,u.identifier,u.pageX,u.pageY,u.screenX,u.screenY)});return h.createTouchList.apply(h,A)}function d(A){var u=za(A,function(p){return{identifier:p.identifier,screenX:p.screenX,screenY:p.screenY,clientX:p.clientX,clientY:p.clientY,pageX:p.pageX,pageY:p.pageY,target:a}});u.item=function(p){return u[p]};return u}function e(A){return za(A,function(u){return new Touch({identifier:u.identifier,screenX:u.screenX,screenY:u.screenY,
|
|
52
|
+
clientX:u.clientX,clientY:u.clientY,pageX:u.pageX,pageY:u.pageY,target:a})})}function f(A,u){switch(A){case 1:return d(u);case 2:return c(u);case 3:return e(u)}return null}var h=C(a),k=pb(h);if(Vb)var l=1;else if(TouchEvent.prototype.initTouchEvent)l=2;else if(TouchEvent&&TouchEvent.length>0)l=3;else throw new n(9,"Not able to create touch events in this browser");var q=f(l,b.changedTouches),w=b.touches==b.changedTouches?q:f(l,b.touches),z=b.targetTouches==b.changedTouches?q:f(l,b.targetTouches);
|
|
53
|
+
if(l==1)l=h.createEvent("MouseEvents"),l.initMouseEvent(this.g,this.i,this.m,k,1,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,0,b.relatedTarget),l.touches=w,l.targetTouches=z,l.changedTouches=q,l.scale=b.scale,l.rotation=b.rotation;else if(l==2)l=h.createEvent("TouchEvent"),l.initTouchEvent.length==0?l.initTouchEvent(w,z,q,this.g,k,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey):l.initTouchEvent(this.g,this.i,this.m,k,1,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,
|
|
54
|
+
b.shiftKey,b.metaKey,w,z,q,b.scale,b.rotation),l.relatedTarget=b.relatedTarget;else if(l==3)l=new TouchEvent(this.g,{touches:w,targetTouches:z,changedTouches:q,bubbles:this.i,cancelable:this.m,ctrlKey:b.ctrlKey,shiftKey:b.shiftKey,altKey:b.altKey,metaKey:b.metaKey});else throw new n(9,"Illegal TouchEventStrategy_ value (this is a bug)");return l};function M(a,b,c){K.call(this,a,b,c)}m(M,K);M.prototype.create=function(){throw new n(9,"Browser does not support MSPointer events.");};
|
|
55
|
+
var ac=new K("blur",!1,!1),bc=new K("change",!0,!1),cc=new K("focus",!1,!1),dc=new K("input",!0,!1),ec=new K("submit",!0,!0),fc=new K("textInput",!0,!0),gc=new L("click",!0,!0),hc=new L("contextmenu",!0,!0),kc=new L("dblclick",!0,!0),lc=new L("mousedown",!0,!0),mc=new L("mousemove",!0,!1),nc=new L("mouseout",!0,!0),oc=new L("mouseover",!0,!0),N=new L("mouseup",!0,!0),Xb=new L("mousewheel",!0,!0),Wb=new L("MozMousePixelScroll",!0,!0),pc=new Yb("keydown",!0,!0),Zb=new Yb("keypress",!0,!0),qc=new Yb("keyup",
|
|
56
|
+
!0,!0),rc=new $b("touchend",!0,!0),sc=new $b("touchstart",!0,!0),tc=new M("MSGotPointerCapture",!0,!1),uc=new M("MSLostPointerCapture",!0,!1),vc=new M("MSPointerDown",!0,!0),wc=new M("MSPointerMove",!0,!0),xc=new M("MSPointerOver",!0,!0),yc=new M("MSPointerOut",!0,!0),zc=new M("MSPointerUp",!0,!0);function O(a,b,c){b=b.create(a,c);"isTrusted"in b||(b.isTrusted=!1);return a.dispatchEvent(b)};function Ac(a){this.g=ra.document.documentElement;this.m=null;var b=tb(C(this.g));b&&Bc(this,b);this.v=a||new Cc}function Bc(a,b){a.g=b;D(b,"OPTION")?a.m=sb(b,function(c){return D(c,"SELECT")}):a.m=null}
|
|
57
|
+
function Dc(a,b,c,d,e,f,h,k){if(!h&&!F(a.g))return!1;if(e&&oc!=b&&nc!=b)throw new n(12,"Event type does not allow related target: "+b);c={clientX:c.x,clientY:c.y,button:d,altKey:(a.v.g&4)!=0,ctrlKey:(a.v.g&2)!=0,shiftKey:(a.v.g&1)!=0,metaKey:(a.v.g&8)!=0,wheelDelta:f||0,relatedTarget:e||null,count:1};k=k||1;d=a.g;b!=gc&&b!=lc&&k in Ec?d=Ec[k]:a.m&&(d=Fc(a,b));return d?O(d,b,c):!0}
|
|
58
|
+
function Gc(a,b,c,d,e,f,h){var k=MSPointerEvent.MSPOINTER_TYPE_MOUSE;if(!h&&!F(a.g))return!1;if(f&&xc!=b&&yc!=b)throw new n(12,"Event type does not allow related target: "+b);c={clientX:c.x,clientY:c.y,button:d,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1,relatedTarget:f||null,width:0,height:0,pressure:0,rotation:0,pointerId:1,tiltX:0,tiltY:0,pointerType:k,isPrimary:e};d=a.m?Fc(a,b):a.g;Ec[1]&&(d=Ec[1]);a=pb(C(a.g));if(a&&b==vc){var l=a.Element.prototype.msSetPointerCapture;a.Element.prototype.msSetPointerCapture=
|
|
59
|
+
function(q){Ec[q]=this}}b=d?O(d,b,c):!0;l&&(a.Element.prototype.msSetPointerCapture=l);return b}function Fc(a,b){switch(b){case gc:case N:return a.m.multiple?a.g:a.m;default:return a.m.multiple?a.g:null}}function Hc(a){var b=sb(a.g,function(c){return!!c&&D(c)&&Ib(c)},!0);b=b||a.g;a=tb(C(b));if(b==a)return!1;if(a&&typeof a.blur==="function"&&!D(a,"BODY"))try{a.blur()}catch(c){throw c;}return typeof b.focus==="function"?(b.focus.call(b),!0):!1}function Ic(a){return D(a,"FORM")}
|
|
60
|
+
function Jc(a){if(!Ic(a))throw new n(12,"Element is not a form, so could not submit.");O(a,ec)&&(D(a.submit)?a.constructor.prototype.submit.call(a):a.submit())}function Cc(){this.g=0}var Ec={};function Kc(a,b){Lc(a)&&(a.selectionStart=b)}function P(a,b){var c=0,d=0;Lc(a)&&(c=a.selectionStart,d=b?-1:a.selectionEnd);return[c,d]}function Mc(a,b){Lc(a)&&(a.selectionEnd=b)}function Nc(a,b){Lc(a)&&(a.selectionStart=b,a.selectionEnd=b)}function Oc(a,b){if(Lc(a)){var c=a.value,d=a.selectionStart;a.value=c.slice(0,d)+b+c.slice(a.selectionEnd);a.selectionStart=d;a.selectionEnd=d+b.length}else throw Error("Cannot set the selection end");}
|
|
61
|
+
function Lc(a){try{return typeof a.selectionStart=="number"}catch(b){return!1}};function Pc(a,b){this.g=a[qa.Symbol.iterator]();this.i=b}Pc.prototype[Symbol.iterator]=function(){return this};Pc.prototype.next=function(){var a=this.g.next();return{value:a.done?void 0:this.i.call(void 0,a.value),done:a.done}};function Qc(a,b){return new Pc(a,b)};function Rc(){}Rc.prototype.next=function(){return Sc};var Sc={done:!0,value:void 0};Rc.prototype.u=function(){return this};function Tc(a){if(a instanceof Q||a instanceof Uc||a instanceof R)return a;if(typeof a.next=="function")return new Q(function(){return a});if(typeof a[Symbol.iterator]=="function")return new Q(function(){return a[Symbol.iterator]()});if(typeof a.u=="function")return new Q(function(){return a.u()});throw Error("Not an iterator or iterable.");}function Q(a){this.g=a}Q.prototype.u=function(){return new Uc(this.g())};Q.prototype[Symbol.iterator]=function(){return new R(this.g())};Q.prototype.i=function(){return new R(this.g())};
|
|
62
|
+
function Uc(a){this.g=a}na(Uc,Rc);Uc.prototype.next=function(){return this.g.next()};Uc.prototype[Symbol.iterator]=function(){return new R(this.g)};Uc.prototype.i=function(){return new R(this.g)};function R(a){Q.call(this,function(){return a});this.m=a}na(R,Q);R.prototype.next=function(){return this.m.next()};function Vc(a,b){this.i={};this.g=[];this.m=this.size=0;var c=arguments.length;if(c>1){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof Vc)for(c=Wc(a),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])}function Wc(a){Xc(a);return a.g.concat()}g=Vc.prototype;g.has=function(a){return Yc(this.i,a)};
|
|
63
|
+
function Xc(a){if(a.size!=a.g.length){for(var b=0,c=0;b<a.g.length;){var d=a.g[b];Yc(a.i,d)&&(a.g[c++]=d);b++}a.g.length=c}if(a.size!=a.g.length){var e={};for(c=b=0;b<a.g.length;)d=a.g[b],Yc(e,d)||(a.g[c++]=d,e[d]=1),b++;a.g.length=c}}g.get=function(a,b){return Yc(this.i,a)?this.i[a]:b};g.set=function(a,b){Yc(this.i,a)||(this.size+=1,this.g.push(a),this.m++);this.i[a]=b};g.forEach=function(a,b){for(var c=Wc(this),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};g.keys=function(){return Tc(this.u(!0)).i()};
|
|
64
|
+
g.values=function(){return Tc(this.u(!1)).i()};g.entries=function(){var a=this;return Qc(this.keys(),function(b){return[b,a.get(b)]})};g.u=function(a){Xc(this);var b=0,c=this.m,d=this,e=new Rc;e.next=function(){if(c!=d.m)throw Error("The map has changed since the iterator was created");if(b>=d.g.length)return Sc;var f=d.g[b++];return{value:a?f:d.i[f],done:!1}};return e};function Yc(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Zc(){this.g=new Vc;this.size=0}function $c(a){var b=typeof a;return b=="object"&&a||b=="function"?"o"+(a[va]||(a[va]=++wa)):b.charAt(0)+a}Zc.prototype.add=function(a){this.g.set($c(a),a);this.size=this.g.size};Zc.prototype.has=function(a){var b=this.g;a=$c(a);return b.has(a)};Zc.prototype.values=function(){return this.g.values()};Zc.prototype.u=function(){return this.g.u(!1)};Zc.prototype[Symbol.iterator]=function(){return this.values()};function ad(a){Ac.call(this);this.o=Jb(this.g);this.i=0;this.s=new Zc;a&&(t(a.pressed,function(b){bd(this,b,!0)},this),this.i=a.currentPos||0)}m(ad,Ac);var cd={};function S(a,b,c){sa(a)&&(a=a.j);a=new dd(a,b,c);!b||b in cd&&!c||(cd[b]={key:a,shift:!1},c&&(cd[c]={key:a,shift:!0}));return a}function dd(a,b,c){this.code=a;this.g=b||null;this.i=c||this.g}var ed=S(8),fd=S(9),gd=S(13),T=S(16),hd=S(17),id=S(18),jd=S(19);S(20);
|
|
65
|
+
var kd=S(27),ld=S(32," "),md=S(33),nd=S(34),od=S(35),pd=S(36),qd=S(37),rd=S(38),sd=S(39),td=S(40);S(44);var ud=S(45),vd=S(46);S(48,"0",")");S(49,"1","!");S(50,"2","@");S(51,"3","#");S(52,"4","$");S(53,"5","%");S(54,"6","^");S(55,"7","&");S(56,"8","*");S(57,"9","(");S(65,"a","A");S(66,"b","B");S(67,"c","C");S(68,"d","D");S(69,"e","E");S(70,"f","F");S(71,"g","G");S(72,"h","H");S(73,"i","I");S(74,"j","J");S(75,"k","K");S(76,"l","L");S(77,"m","M");S(78,"n","N");S(79,"o","O");S(80,"p","P");S(81,"q","Q");
|
|
66
|
+
S(82,"r","R");S(83,"s","S");S(84,"t","T");S(85,"u","U");S(86,"v","V");S(87,"w","W");S(88,"x","X");S(89,"y","Y");S(90,"z","Z");var wd=S(Wa?{l:91,j:91}:Va?{l:224,j:91}:{l:0,j:91});S(Wa?{l:92,j:92}:Va?{l:224,j:93}:{l:0,j:92});S(Wa?{l:93,j:93}:Va?{l:0,j:0}:{l:93,j:null});
|
|
67
|
+
var xd=S({l:96,j:96},"0"),yd=S({l:97,j:97},"1"),zd=S({l:98,j:98},"2"),Ad=S({l:99,j:99},"3"),Bd=S({l:100,j:100},"4"),Cd=S({l:101,j:101},"5"),Dd=S({l:102,j:102},"6"),Ed=S({l:103,j:103},"7"),Fd=S({l:104,j:104},"8"),Gd=S({l:105,j:105},"9"),Hd=S({l:106,j:106},"*"),Id=S({l:107,j:107},"+"),Jd=S({l:109,j:109},"-"),Kd=S({l:110,j:110},"."),Ld=S({l:111,j:111},"/");S(144);
|
|
68
|
+
var Md=S(112),Nd=S(113),Od=S(114),Pd=S(115),Qd=S(116),Rd=S(117),Sd=S(118),Td=S(119),Ud=S(120),Vd=S(121),Wd=S(122),Xd=S(123),Yd=S({l:107,j:187},"=","+"),Zd=S(108,",");S({l:109,j:189},"-","_");S(188,",","<");S(190,".",">");S(191,"/","?");S(192,"`","~");S(219,"[","{");S(220,"\\","|");S(221,"]","}");var $d=S({l:59,j:186},";",":");S(222,"'",'"');var ae=[id,hd,wd,T],be=new Vc;be.set(1,T);be.set(2,hd);be.set(4,id);be.set(8,wd);
|
|
69
|
+
var ce=function(a){var b=new Vc;t(Wc(a),function(c){b.set(a.get(c).code,c)});return b}(be);function bd(a,b,c){if(ya(ae,b)>=0){var d=ce.get(b.code),e=a.v;e.g=c?e.g|d:e.g&~d}c?a.s.add(b):(a=a.s,c=a.g,b=$c(b),Yc(c.i,b)&&(delete c.i[b],--c.size,c.m++,c.g.length>2*c.size&&Xc(c)),a.size=a.g.size)}function U(a,b){a=a.s.g;b=$c(b);return a.has(b)}
|
|
70
|
+
function de(a,b){if(ya(ae,b)>=0&&U(a,b))throw new n(13,"Cannot press a modifier key that is already pressed.");var c=b.code!==null&&ee(a,pc,b);if(c&&(!b.g&&b!=gd||ee(a,Zb,b,!c))&&c&&(fe(a,b),a.o))if(b.g){c=ge(a,b);var d=P(a.g,!0)[0]+1;he(a.g)?(Oc(a.g,c),Kc(a.g,d)):a.g.value+=c;O(a.g,fc);O(a.g,dc);a.i=d}else switch(b){case gd:O(a.g,fc);D(a.g,"TEXTAREA")&&(c=P(a.g,!0)[0]+1,he(a.g)?(Oc(a.g,"\n"),Kc(a.g,c)):a.g.value+="\n",O(a.g,dc),a.i=c);break;case ed:case vd:ie(a.g);c=P(a.g,!1);c[0]==c[1]&&(b==ed?
|
|
71
|
+
(Kc(a.g,c[1]-1),Mc(a.g,c[1])):Mc(a.g,c[1]+1));c=P(a.g,!1);c=!(c[0]==a.g.value.length||c[1]==0);Oc(a.g,"");c&&O(a.g,dc);c=P(a.g,!1);a.i=c[1];break;case qd:case sd:ie(a.g);c=a.g;var e=P(c,!0)[0],f=P(c,!1)[1],h=d=0;b==qd?U(a,T)?a.i==e?(d=Math.max(e-1,0),h=f,e=d):(d=e,e=h=f-1):e=e==f?Math.max(e-1,0):e:U(a,T)?a.i==f?(d=e,e=h=Math.min(f+1,c.value.length)):(d=e+1,h=f,e=d):e=e==f?Math.min(f+1,c.value.length):f;U(a,T)?(Kc(c,d),Mc(c,h)):Nc(c,e);a.i=e;break;case pd:case od:ie(a.g),c=a.g,d=P(c,!0)[0],h=P(c,!1)[1],
|
|
72
|
+
b==pd?(U(a,T)?(Kc(c,0),Mc(c,a.i==d?h:d)):Nc(c,0),a.i=0):(U(a,T)?(a.i==d&&Kc(c,h),Mc(c,c.value.length)):Nc(c,c.value.length),a.i=c.value.length)}bd(a,b,!0)}function fe(a,b){b==gd&&D(a.g,"INPUT")&&(a=sb(a.g,Ic,!0))&&(b=a.getElementsByTagName("input"),!Aa(b,function(c){a:{if(D(c,"INPUT")){var d=c.type.toLowerCase();if(d=="submit"||d=="image"){c=!0;break a}}if(D(c,"BUTTON")&&(d=c.type.toLowerCase(),d=="submit")){c=!0;break a}c=!1}return c})&&b.length!=1&&$a()||Jc(a))}
|
|
73
|
+
function je(a,b){if(!U(a,b))throw new n(13,"Cannot release a key that is not pressed. ("+b.code+")");b.code!==null&&ee(a,qc,b);bd(a,b,!1)}function ge(a,b){if(!b.g)throw new n(13,"not a character key");return U(a,T)?b.i:b.g}
|
|
74
|
+
function ie(a){try{if(typeof a.selectionStart=="number")return}catch(b){if(b.message.indexOf("does not support selection.")!=-1)throw Error(b.message+" (For more information, see https://code.google.com/p/chromium/issues/detail?id=330456)");throw b;}throw Error("Element does not support selection");}function he(a){try{ie(a)}catch(b){return!1}return!0}
|
|
75
|
+
function ee(a,b,c,d){if(c.code===null)throw new n(13,"Key must have a keycode to be fired.");c={altKey:U(a,id),ctrlKey:U(a,hd),metaKey:U(a,wd),shiftKey:U(a,T),keyCode:c.code,charCode:c.g&&b==Zb?ge(a,c).charCodeAt(0):0,preventDefault:!!d};return O(a.g,b,c)}function ke(a,b){Bc(a,b);a.o=Jb(b);var c=Hc(a);a.o&&c&&(Nc(b,b.value.length),a.i=b.value.length)};function le(a,b,c){Ac.call(this,b,c);this.s=this.i=null;this.o=new B(0,0);this.D=this.A=!1;if(a){typeof a.buttonPressed==="number"&&(this.i=a.buttonPressed);try{D(a.elementPressed)&&(this.s=a.elementPressed)}catch(d){this.i=null}this.o=new B(a.clientXY.x,a.clientXY.y);this.A=!!a.nextClickIsDoubleClick;this.D=!!a.hasEverInteracted;try{a.element&&D(a.element)&&Bc(this,a.element)}catch(d){this.i=null}}}m(le,Ac);var V={};V[gc]=[0,1,2,null];V[hc]=[null,null,2,null];V[N]=[0,1,2,null];V[nc]=[0,1,2,0];
|
|
76
|
+
V[mc]=[0,1,2,0];nb&&(V[vc]=V[N],V[zc]=V[N],V[wc]=[-1,-1,-1,-1],V[yc]=V[wc],V[xc]=V[wc]);V[kc]=V[gc];V[lc]=V[N];V[oc]=V[nc];var me={};me[lc]=vc;me[mc]=wc;me[nc]=yc;me[oc]=xc;me[N]=zc;function W(a,b,c,d,e){a.D=!0;if(nb){var f=me[b];if(f&&!Gc(a,f,a.o,ne(a,f),!0,c,e))return!1}return Dc(a,b,a.o,ne(a,b),c,d,e,null)}function ne(a,b){if(!(b in V))return 0;a=V[b][a.i===null?3:a.i];if(a===null)throw new n(13,"Event does not permit the specified mouse button.");return a};function oe(a,b){this.x=a;this.y=b}m(oe,B);oe.prototype.scale=B.prototype.scale;oe.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};function pe(a,b,c,d){function e(k){typeof k==="string"?t(k.split(""),function(l){if(l.length!=1)throw new n(13,"Argument not a single character: "+l);var q=cd[l];q||(q=l.toUpperCase(),q=S(q.charCodeAt(0),l.toLowerCase(),q),q={key:q,shift:l!=q.g});l=q;q=U(f,T);l.shift&&!q&&de(f,T);de(f,l.key);je(f,l.key);l.shift&&!q&&je(f,T)}):ya(ae,k)>=0?U(f,k)?je(f,k):de(f,k):(de(f,k),je(f,k))}if(a!=tb(C(a))){if(!F(a))throw new n(12,"Element is not currently interactable and may not be manipulated");qe(a)}var f=
|
|
77
|
+
c||new ad;ke(f,a);if(a.type=="date"){c=Array.isArray(b)?b=b.join(""):b;var h=/\d{4}-\d{2}-\d{2}/;if(c.match(h)){fb&&(O(a,sc),O(a,rc));O(a,cc);a.value=c.match(h)[0];O(a,bc);O(a,ac);return}}Array.isArray(b)?t(b,e):e(b);d||t(ae,function(k){U(f,k)&&je(f,k)})}
|
|
78
|
+
function re(a,b,c,d){if(!Fb(a))throw new n(11,"Element is not currently visible and may not be manipulated");qe(a,b||void 0);b?b=new oe(b.x,b.y):(b=se(a),b=new oe(b.width/2,b.height/2));c=c||new le;var e=b;b=F(a);var f=Pb(a);c.o.x=e.x+f.left;c.o.y=e.y+f.top;e=c.g;if(a!=e){try{pb(C(e)).closed&&(e=null)}catch(l){e=null}e&&(f=e===ra.document.documentElement||e===ra.document.body,e=!c.D&&f?null:e,W(c,nc,a));Bc(c,a);W(c,oc,e,null,b)}W(c,mc,null,null,b);c.A=!1;if(c.i!==null)throw new n(13,"Cannot press more than one button or an already pressed button.");
|
|
79
|
+
c.i=0;c.s=c.g;if(D(c.g,"OPTION")||D(c.g,"SELECT")||W(c,lc,null,null,!1))nb&&c.i==0&&D(c.s,"OPTION")&&Gc(c,tc,c.o,0,!0),Hc(c);if(c.i===null)throw new n(13,"Cannot release a button when no button is pressed.");c.m&&F(c.g)&&(a=c.m,b=zb(c.g),!b||a.multiple)&&(c.g.selected=!b,(!a.multiple||eb&&ib(28)||db&&ib(4))&&O(a,bc));a=F(c.g);W(c,N,null,null,d);try{if(c.i==0&&c.g==c.s){var h=c.o,k=ne(c,gc);if(a||F(c.g))!c.m&&yb(c.g)&&zb(c.g),Dc(c,gc,h,k,null,0,a);c.A&&W(c,kc);c.A=!c.A;nb&&c.i==0&&D(c.s,"OPTION")&&
|
|
80
|
+
Gc(c,uc,new B(0,0),0,!1)}else c.i==2&&W(c,hc)}catch(l){}Ec={};c.i=null;c.s=null}function se(a){if((Cb(a,"display")||(a.currentStyle?a.currentStyle.display:null)||a.style&&a.style.display)!="none")var b=Db(a);else{b=a.style;var c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";var f=Db(a);b.display=c;b.position=e;b.visibility=d;b=f}return b.width>0&&b.height>0||!a.offsetParent?b:se(a.offsetParent)}function te(){Ac.call(this)}m(te,Ac);
|
|
81
|
+
(function(a){a.B=void 0;a.J=function(){return a.B?a.B:a.B=new a}})(te);
|
|
82
|
+
function qe(a,b){if(Qb(a,b)=="scroll"){if(a.scrollIntoView&&(a.scrollIntoView(),"none"==Qb(a,b)))return;for(var c=Tb(a,b),d=I(a);d;d=I(d)){var e=d,f=Pb(e);var h=e;var k=Cb(h,"borderLeftWidth");var l=Cb(h,"borderRightWidth");var q=Cb(h,"borderTopWidth");h=Cb(h,"borderBottomWidth");l=new Bb(parseFloat(q),parseFloat(l),parseFloat(h),parseFloat(k));k=c.left-f.left-l.left;f=c.top-f.top-l.top;l=e.clientHeight+c.top-c.bottom;e.scrollLeft+=Math.min(k,Math.max(k-(e.clientWidth+c.left-c.right),0));e.scrollTop+=
|
|
83
|
+
Math.min(f,Math.max(f-l,0))}Qb(a,b)}};var ue=qa.JSON.stringify;function ve(a){function b(c,d){switch(ta(c)){case "string":case "number":case "boolean":return c;case "function":return c.toString();case "array":return za(c,function(f){return b(f,d)});case "object":if(d.indexOf(c)>=0)throw new n(17,"Recursive object cannot be transferred");if(v(c,"nodeType")&&(c.nodeType==1||c.nodeType==9)){var e={};e.ELEMENT=we(c);return e}if(v(c,"document"))return e={},e.WINDOW=we(c),e;d.push(c);if(ua(c))return za(c,function(f){return b(f,d)});c=La(c,function(f,h){return typeof h===
|
|
84
|
+
"number"||typeof h==="string"});return Ma(c,function(f){return b(f,d)});default:return null}}return b(a,[])}function xe(a,b){return Array.isArray(a)?za(a,function(c){return xe(c,b)}):sa(a)?typeof a=="function"?a:v(a,"ELEMENT")?ye(a.ELEMENT,b):v(a,"WINDOW")?ye(a.WINDOW,b):Ma(a,function(c){return xe(c,b)}):a}function ze(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.C=Date.now());b.C||(b.C=Date.now());return b}
|
|
85
|
+
function we(a){var b=ze(a.ownerDocument),c=Na(b,function(d){return d==a});c||(c=":wdc:"+b.C++,b[c]=a);return c}
|
|
86
|
+
function ye(a,b){a=decodeURIComponent(a);b=b||document;var c=ze(b);if(!v(c,a))throw new n(10,"Element does not exist in cache");var d=c[a];if(v(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 X(a,b,c,d){function e(){return{persist:f,keys:[]}}var f=!!d,h=[],k=e();h.push(k);t(b,function(l){t(l.split(""),function(q){if("\ue000"<=q&&q<="\ue03d"){var w=X.h[q];if(w===null)h.push(k=e()),f&&(k.persist=!1,h.push(k=e()));else if(w!==void 0)k.keys.push(w);else throw Error("Unsupported WebDriver key: \\u"+q.charCodeAt(0).toString(16));}else switch(q){case "\n":k.keys.push(gd);break;case "\t":k.keys.push(fd);break;case "\b":k.keys.push(ed);break;default:k.keys.push(q)}})});t(h,function(l){pe(a,
|
|
87
|
+
l.keys,c,l.persist)})}X.h={};X.h["\ue000"]=null;X.h["\ue003"]=ed;X.h["\ue004"]=fd;X.h["\ue006"]=gd;X.h["\ue007"]=gd;X.h["\ue008"]=T;X.h["\ue009"]=hd;X.h["\ue00a"]=id;X.h["\ue00b"]=jd;X.h["\ue00c"]=kd;X.h["\ue00d"]=ld;X.h["\ue00e"]=md;X.h["\ue00f"]=nd;X.h["\ue010"]=od;X.h["\ue011"]=pd;X.h["\ue012"]=qd;X.h["\ue013"]=rd;X.h["\ue014"]=sd;X.h["\ue015"]=td;X.h["\ue016"]=ud;X.h["\ue017"]=vd;X.h["\ue018"]=$d;X.h["\ue019"]=Yd;X.h["\ue01a"]=xd;X.h["\ue01b"]=yd;X.h["\ue01c"]=zd;X.h["\ue01d"]=Ad;
|
|
88
|
+
X.h["\ue01e"]=Bd;X.h["\ue01f"]=Cd;X.h["\ue020"]=Dd;X.h["\ue021"]=Ed;X.h["\ue022"]=Fd;X.h["\ue023"]=Gd;X.h["\ue024"]=Hd;X.h["\ue025"]=Id;X.h["\ue027"]=Jd;X.h["\ue028"]=Kd;X.h["\ue029"]=Ld;X.h["\ue026"]=Zd;X.h["\ue031"]=Md;X.h["\ue032"]=Nd;X.h["\ue033"]=Od;X.h["\ue034"]=Pd;X.h["\ue035"]=Qd;X.h["\ue036"]=Rd;X.h["\ue037"]=Sd;X.h["\ue038"]=Td;X.h["\ue039"]=Ud;X.h["\ue03a"]=Vd;X.h["\ue03b"]=Wd;X.h["\ue03c"]=Xd;X.h["\ue03d"]=wd;function Ae(a,b){a=[a];try{var c;b?c=ye(b.WINDOW):c=window;var d=xe(a,c.document),e=re.apply(null,d);var f={status:0,value:ve(e)}}catch(h){f={status:v(h,"code")?h.code:13,value:{message:h.message}}}return ue(f)}var Be=["se_exportedFunctionSymbol"],Y=qa;Be[0]in Y||typeof Y.execScript=="undefined"||Y.execScript("var "+Be[0]);for(var Z;Be.length&&(Z=Be.shift());)Be.length||Ae===void 0?Y[Z]&&Y[Z]!==Object.prototype[Z]?Y=Y[Z]:Y=Y[Z]={}:Y[Z]=Ae;; return this.se_exportedFunctionSymbol.apply(null,arguments);}).apply(window, arguments);}
|