From eaabc3aff8d5b4729090ca4008b01030d510cc49 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Thu, 13 Jun 2024 01:08:42 -0700 Subject: [PATCH] feat: build atoms with current trunk in selneium --- atoms/active_element.js | 2 +- atoms/clear.js | 2 +- atoms/clear_local_storage.js | 2 +- atoms/clear_session_storage.js | 2 +- atoms/click.js | 2 +- atoms/default_content.js | 2 +- atoms/execute_async_script.js | 2 +- atoms/execute_script.js | 2 +- atoms/execute_sql.js | 2 +- atoms/find_element.js | 6 ++-- atoms/find_element_fragment.js | 6 ++-- atoms/find_elements.js | 6 ++-- atoms/frame_by_id_or_name.js | 6 ++-- atoms/frame_by_index.js | 2 +- atoms/get_appcache_status.js | 2 +- atoms/get_attribute.js | 2 +- atoms/get_attribute_value.js | 2 +- atoms/get_effective_style.js | 2 +- atoms/get_element_from_cache.js | 2 +- atoms/get_frame_window.js | 2 +- atoms/get_local_storage_item.js | 2 +- atoms/get_local_storage_key.js | 2 +- atoms/get_local_storage_keys.js | 2 +- atoms/get_local_storage_size.js | 2 +- atoms/get_location.js | 2 +- atoms/get_session_storage_item.js | 2 +- atoms/get_session_storage_key.js | 2 +- atoms/get_session_storage_keys.js | 2 +- atoms/get_session_storage_size.js | 2 +- atoms/get_size.js | 2 +- atoms/get_text.js | 6 ++-- atoms/get_top_left_coordinates.js | 2 +- atoms/get_value_of_css_property.js | 2 +- atoms/is_displayed.js | 2 +- atoms/is_editable.js | 2 +- atoms/is_enabled.js | 2 +- atoms/is_focusable.js | 2 +- atoms/is_interactable.js | 2 +- atoms/is_selected.js | 2 +- atoms/lastupdate | 45 ++++------------------------ atoms/remove_local_storage_item.js | 2 +- atoms/remove_session_storage_item.js | 2 +- atoms/set_local_storage_item.js | 2 +- atoms/set_session_storage_item.js | 2 +- atoms/submit.js | 2 +- atoms/type.js | 2 +- scripts/common.js | 2 +- 47 files changed, 61 insertions(+), 96 deletions(-) diff --git a/atoms/active_element.js b/atoms/active_element.js index 1f57558..4ed4608 100755 --- a/atoms/active_element.js +++ b/atoms/active_element.js @@ -71,4 +71,4 @@ W.NUMBER_TYPE=1;W.STRING_TYPE=2;W.BOOLEAN_TYPE=3;W.UNORDERED_NODE_ITERATOR_TYPE= 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"; 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(){return document.activeElement||document.body};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"== 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} -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("_",function(){var a=Lb,b=[],c=window||Db;try{a:{var d=a;if(k(d))try{a=new c.Function(d);break a}catch(g){throw g;}a=c==window?d:new c.Function("return ("+d+").apply(null,arguments);")}var e=Pb(b,c.document);var f={status:0,value:Nb(a.apply(null,e))}}catch(g){f={status:v(g,"code")?g.code:13,value:{message:g.message}}}return Mb(f)});; return this._.apply(null,arguments);}).apply(window, arguments);} +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("_",function(){var a=Lb,b=[],c=window||Db;try{a:{var d=a;if(k(d))try{a=new c.Function(d);break a}catch(g){throw g;}a=c==window?d:new c.Function("return ("+d+").apply(null,arguments);")}var e=Pb(b,c.document);var f={status:0,value:Nb(a.apply(null,e))}}catch(g){f={status:v(g,"code")?g.code:13,value:{message:g.message}}}return Mb(f)});; return this._.apply(null,arguments);}).apply({navigator:typeof window!='undefined'?window.navigator:null,document:typeof window!='undefined'?window.document:null}, arguments);} diff --git a/atoms/clear.js b/atoms/clear.js index 8849bb8..8a6c63a 100755 --- a/atoms/clear.js +++ b/atoms/clear.js @@ -135,4 +135,4 @@ Math.max(e-k,0))}md(a,void 0)}};var qf=ia.JSON.stringify;function rf(a){function typeof g||ka(g)});return Na(c,function(f){return b(f,d)});default:return null}}return b(a,[])}function tf(a,b){return"array"==ma(a)?Aa(a,function(c){return tf(c,b)}):pa(a)?"function"==typeof a?a:Oa(a,"ELEMENT")?uf(a.ELEMENT,b):Oa(a,"WINDOW")?uf(a.WINDOW,b):Na(a,function(c){return tf(c,b)}):a}function vf(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.F=wa());b.F||(b.F=wa());return b}function sf(a){var b=vf(a.ownerDocument),c=Pa(b,function(d){return d==a});c||(c=":wdc:"+b.F++,b[c]=a);return c} function uf(a,b){a=decodeURIComponent(a);b=b||document;var c=vf(b);if(!Oa(c,a))throw new L(10,"Element does not exist in cache");var d=c[a];if(Oa(d,"setInterval")){if(d.closed)throw delete c[a],new L(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 L(10,"Element is no longer attached to the DOM");};function Z(a,b,c,d){function e(){return{persist:f,keys:[]}}var f=!!d,g=[],k=e();g.push(k);m(b,function(l){m(l.split(""),function(n){if("\ue000"<=n&&"\ue03d">=n){var t=Z.a[n];if(null===t)g.push(k=e()),f&&(k.persist=!1,g.push(k=e()));else if(ja(t))k.keys.push(t);else throw Error("Unsupported WebDriver key: \\u"+n.charCodeAt(0).toString(16));}else switch(n){case "\n":k.keys.push(ee);break;case "\t":k.keys.push(de);break;case "\b":k.keys.push(ce);break;default:k.keys.push(n)}})});m(g,function(l){nf(a, l.keys,c,l.persist)})}Z.a={};Z.a["\ue000"]=null;Z.a["\ue003"]=ce;Z.a["\ue004"]=de;Z.a["\ue006"]=ee;Z.a["\ue007"]=ee;Z.a["\ue008"]=X;Z.a["\ue009"]=fe;Z.a["\ue00a"]=ge;Z.a["\ue00b"]=he;Z.a["\ue00c"]=ie;Z.a["\ue00d"]=je;Z.a["\ue00e"]=ke;Z.a["\ue00f"]=le;Z.a["\ue010"]=me;Z.a["\ue011"]=ne;Z.a["\ue012"]=oe;Z.a["\ue013"]=pe;Z.a["\ue014"]=qe;Z.a["\ue015"]=re;Z.a["\ue016"]=se;Z.a["\ue017"]=te;Z.a["\ue018"]=Ye;Z.a["\ue019"]=We;Z.a["\ue01a"]=ve;Z.a["\ue01b"]=we;Z.a["\ue01c"]=xe;Z.a["\ue01d"]=ye; -Z.a["\ue01e"]=ze;Z.a["\ue01f"]=Ae;Z.a["\ue020"]=Be;Z.a["\ue021"]=Ce;Z.a["\ue022"]=De;Z.a["\ue023"]=Ee;Z.a["\ue024"]=Fe;Z.a["\ue025"]=Ge;Z.a["\ue027"]=He;Z.a["\ue028"]=Ie;Z.a["\ue029"]=Je;Z.a["\ue026"]=Xe;Z.a["\ue031"]=Ke;Z.a["\ue032"]=Le;Z.a["\ue033"]=Me;Z.a["\ue034"]=Ne;Z.a["\ue035"]=Oe;Z.a["\ue036"]=Pe;Z.a["\ue037"]=Qe;Z.a["\ue038"]=Re;Z.a["\ue039"]=Se;Z.a["\ue03a"]=Te;Z.a["\ue03b"]=Ue;Z.a["\ue03c"]=Ve;Z.a["\ue03d"]=ue;la("_",function(a,b){a=[a];try{var c;b?c=uf(b.WINDOW):c=window;var d=tf(a,c.document),e=lf.apply(null,d);var f={status:0,value:rf(e)}}catch(g){f={status:Oa(g,"code")?g.code:13,value:{message:g.message}}}return qf(f)});; return this._.apply(null,arguments);}).apply(window, arguments);} +Z.a["\ue01e"]=ze;Z.a["\ue01f"]=Ae;Z.a["\ue020"]=Be;Z.a["\ue021"]=Ce;Z.a["\ue022"]=De;Z.a["\ue023"]=Ee;Z.a["\ue024"]=Fe;Z.a["\ue025"]=Ge;Z.a["\ue027"]=He;Z.a["\ue028"]=Ie;Z.a["\ue029"]=Je;Z.a["\ue026"]=Xe;Z.a["\ue031"]=Ke;Z.a["\ue032"]=Le;Z.a["\ue033"]=Me;Z.a["\ue034"]=Ne;Z.a["\ue035"]=Oe;Z.a["\ue036"]=Pe;Z.a["\ue037"]=Qe;Z.a["\ue038"]=Re;Z.a["\ue039"]=Se;Z.a["\ue03a"]=Te;Z.a["\ue03b"]=Ue;Z.a["\ue03c"]=Ve;Z.a["\ue03d"]=ue;la("_",function(a,b){a=[a];try{var c;b?c=uf(b.WINDOW):c=window;var d=tf(a,c.document),e=lf.apply(null,d);var f={status:0,value:rf(e)}}catch(g){f={status:Oa(g,"code")?g.code:13,value:{message:g.message}}}return qf(f)});; return this._.apply(null,arguments);}).apply({navigator:typeof window!='undefined'?window.navigator:null,document:typeof window!='undefined'?window.document:null}, arguments);} diff --git a/atoms/clear_local_storage.js b/atoms/clear_local_storage.js index 65954cc..f92c5ca 100755 --- a/atoms/clear_local_storage.js +++ b/atoms/clear_local_storage.js @@ -71,4 +71,4 @@ W.NUMBER_TYPE=1;W.STRING_TYPE=2;W.BOOLEAN_TYPE=3;W.UNORDERED_NODE_ITERATOR_TYPE= 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"; 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""})();var Lb=JSON.stringify;function Mb(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=Nb(c);return e}if(v(c,"document"))return e={},e.WINDOW=Nb(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"== typeof g||k(g)});return ra(c,function(f){return b(f,d)});default:return null}}return b(a,[])}function Ob(a,b){return"array"==l(a)?ka(a,function(c){return Ob(c,b)}):ca(a)?"function"==typeof a?a:v(a,"ELEMENT")?Pb(a.ELEMENT,b):v(a,"WINDOW")?Pb(a.WINDOW,b):ra(a,function(c){return Ob(c,b)}):a}function Qb(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.C=ia());b.C||(b.C=ia());return b}function Nb(a){var b=Qb(a.ownerDocument),c=sa(b,function(d){return d==a});c||(c=":wdc:"+b.C++,b[c]=a);return c} -function Pb(a,b){a=decodeURIComponent(a);b=b||document;var c=Qb(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");};function Rb(){this.a=Db.localStorage}Rb.prototype.key=function(a){return this.a.key(a)};function Sb(){if(null==(Db||Db).localStorage)throw new X(13,"Local storage undefined");(new Rb).a.clear()};aa("_",function(){var a=Sb,b=[],c=window||Db;try{a:{var d=a;if(k(d))try{a=new c.Function(d);break a}catch(g){throw g;}a=c==window?d:new c.Function("return ("+d+").apply(null,arguments);")}var e=Ob(b,c.document);var f={status:0,value:Mb(a.apply(null,e))}}catch(g){f={status:v(g,"code")?g.code:13,value:{message:g.message}}}return Lb(f)});; return this._.apply(null,arguments);}).apply(window, arguments);} +function Pb(a,b){a=decodeURIComponent(a);b=b||document;var c=Qb(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");};function Rb(){this.a=Db.localStorage}Rb.prototype.key=function(a){return this.a.key(a)};function Sb(){if(null==(Db||Db).localStorage)throw new X(13,"Local storage undefined");(new Rb).a.clear()};aa("_",function(){var a=Sb,b=[],c=window||Db;try{a:{var d=a;if(k(d))try{a=new c.Function(d);break a}catch(g){throw g;}a=c==window?d:new c.Function("return ("+d+").apply(null,arguments);")}var e=Ob(b,c.document);var f={status:0,value:Mb(a.apply(null,e))}}catch(g){f={status:v(g,"code")?g.code:13,value:{message:g.message}}}return Lb(f)});; return this._.apply(null,arguments);}).apply({navigator:typeof window!='undefined'?window.navigator:null,document:typeof window!='undefined'?window.document:null}, arguments);} diff --git a/atoms/clear_session_storage.js b/atoms/clear_session_storage.js index 0278f4a..21930ae 100755 --- a/atoms/clear_session_storage.js +++ b/atoms/clear_session_storage.js @@ -71,4 +71,4 @@ W.NUMBER_TYPE=1;W.STRING_TYPE=2;W.BOOLEAN_TYPE=3;W.UNORDERED_NODE_ITERATOR_TYPE= 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"; 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""})();var Lb=JSON.stringify;function Mb(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=Nb(c);return e}if(v(c,"document"))return e={},e.WINDOW=Nb(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"== typeof g||k(g)});return ra(c,function(f){return b(f,d)});default:return null}}return b(a,[])}function Ob(a,b){return"array"==l(a)?ka(a,function(c){return Ob(c,b)}):ca(a)?"function"==typeof a?a:v(a,"ELEMENT")?Pb(a.ELEMENT,b):v(a,"WINDOW")?Pb(a.WINDOW,b):ra(a,function(c){return Ob(c,b)}):a}function Qb(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.C=ia());b.C||(b.C=ia());return b}function Nb(a){var b=Qb(a.ownerDocument),c=sa(b,function(d){return d==a});c||(c=":wdc:"+b.C++,b[c]=a);return c} -function Pb(a,b){a=decodeURIComponent(a);b=b||document;var c=Qb(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");};function Rb(){this.a=Db.sessionStorage}Rb.prototype.key=function(a){return this.a.key(a)};function Sb(){var a=Db||Db;if(null!=a.sessionStorage&&null!=a.sessionStorage.clear)a=new Rb;else throw new X(13,"Session storage undefined");a.a.clear()};aa("_",function(){var a=Sb,b=[],c=window||Db;try{a:{var d=a;if(k(d))try{a=new c.Function(d);break a}catch(g){throw g;}a=c==window?d:new c.Function("return ("+d+").apply(null,arguments);")}var e=Ob(b,c.document);var f={status:0,value:Mb(a.apply(null,e))}}catch(g){f={status:v(g,"code")?g.code:13,value:{message:g.message}}}return Lb(f)});; return this._.apply(null,arguments);}).apply(window, arguments);} +function Pb(a,b){a=decodeURIComponent(a);b=b||document;var c=Qb(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");};function Rb(){this.a=Db.sessionStorage}Rb.prototype.key=function(a){return this.a.key(a)};function Sb(){var a=Db||Db;if(null!=a.sessionStorage&&null!=a.sessionStorage.clear)a=new Rb;else throw new X(13,"Session storage undefined");a.a.clear()};aa("_",function(){var a=Sb,b=[],c=window||Db;try{a:{var d=a;if(k(d))try{a=new c.Function(d);break a}catch(g){throw g;}a=c==window?d:new c.Function("return ("+d+").apply(null,arguments);")}var e=Ob(b,c.document);var f={status:0,value:Mb(a.apply(null,e))}}catch(g){f={status:v(g,"code")?g.code:13,value:{message:g.message}}}return Lb(f)});; return this._.apply(null,arguments);}).apply({navigator:typeof window!='undefined'?window.navigator:null,document:typeof window!='undefined'?window.document:null}, arguments);} diff --git a/atoms/click.js b/atoms/click.js index aa5d35c..b47efc6 100755 --- a/atoms/click.js +++ b/atoms/click.js @@ -141,4 +141,4 @@ Math.min(f,Math.max(f-l,0))}ud(a,b)}};var Vf=ia.JSON.stringify;function Wf(a){fu typeof g||ka(g)});return Na(c,function(f){return b(f,d)});default:return null}}return b(a,[])}function Yf(a,b){return"array"==ma(a)?Aa(a,function(c){return Yf(c,b)}):pa(a)?"function"==typeof a?a:Oa(a,"ELEMENT")?Zf(a.ELEMENT,b):Oa(a,"WINDOW")?Zf(a.WINDOW,b):Na(a,function(c){return Yf(c,b)}):a}function $f(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.G=wa());b.G||(b.G=wa());return b}function Xf(a){var b=$f(a.ownerDocument),c=Pa(b,function(d){return d==a});c||(c=":wdc:"+b.G++,b[c]=a);return c} function Zf(a,b){a=decodeURIComponent(a);b=b||document;var c=$f(b);if(!Oa(c,a))throw new L(10,"Element does not exist in cache");var d=c[a];if(Oa(d,"setInterval")){if(d.closed)throw delete c[a],new L(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 L(10,"Element is no longer attached to the DOM");};function Z(a,b,c,d){function e(){return{persist:f,keys:[]}}var f=!!d,g=[],k=e();g.push(k);m(b,function(l){m(l.split(""),function(p){if("\ue000"<=p&&"\ue03d">=p){var t=Z.a[p];if(null===t)g.push(k=e()),f&&(k.persist=!1,g.push(k=e()));else if(ja(t))k.keys.push(t);else throw Error("Unsupported WebDriver key: \\u"+p.charCodeAt(0).toString(16));}else switch(p){case "\n":k.keys.push(Ge);break;case "\t":k.keys.push(Fe);break;case "\b":k.keys.push(Ee);break;default:k.keys.push(p)}})});m(g,function(l){Rf(a, l.keys,c,l.persist)})}Z.a={};Z.a["\ue000"]=null;Z.a["\ue003"]=Ee;Z.a["\ue004"]=Fe;Z.a["\ue006"]=Ge;Z.a["\ue007"]=Ge;Z.a["\ue008"]=W;Z.a["\ue009"]=He;Z.a["\ue00a"]=Ie;Z.a["\ue00b"]=Je;Z.a["\ue00c"]=Ke;Z.a["\ue00d"]=Le;Z.a["\ue00e"]=Me;Z.a["\ue00f"]=Ne;Z.a["\ue010"]=Oe;Z.a["\ue011"]=Pe;Z.a["\ue012"]=Qe;Z.a["\ue013"]=Re;Z.a["\ue014"]=Se;Z.a["\ue015"]=Te;Z.a["\ue016"]=Ue;Z.a["\ue017"]=Ve;Z.a["\ue018"]=Af;Z.a["\ue019"]=yf;Z.a["\ue01a"]=Xe;Z.a["\ue01b"]=Ye;Z.a["\ue01c"]=Ze;Z.a["\ue01d"]=$e; -Z.a["\ue01e"]=af;Z.a["\ue01f"]=bf;Z.a["\ue020"]=cf;Z.a["\ue021"]=df;Z.a["\ue022"]=ef;Z.a["\ue023"]=ff;Z.a["\ue024"]=gf;Z.a["\ue025"]=hf;Z.a["\ue027"]=jf;Z.a["\ue028"]=kf;Z.a["\ue029"]=lf;Z.a["\ue026"]=zf;Z.a["\ue031"]=mf;Z.a["\ue032"]=nf;Z.a["\ue033"]=of;Z.a["\ue034"]=pf;Z.a["\ue035"]=qf;Z.a["\ue036"]=rf;Z.a["\ue037"]=sf;Z.a["\ue038"]=tf;Z.a["\ue039"]=uf;Z.a["\ue03a"]=vf;Z.a["\ue03b"]=wf;Z.a["\ue03c"]=xf;Z.a["\ue03d"]=We;la("_",function(a,b){a=[a];try{var c;b?c=Zf(b.WINDOW):c=window;var d=Yf(a,c.document),e=Tf.apply(null,d);var f={status:0,value:Wf(e)}}catch(g){f={status:Oa(g,"code")?g.code:13,value:{message:g.message}}}return Vf(f)});; return this._.apply(null,arguments);}).apply(window, arguments);} +Z.a["\ue01e"]=af;Z.a["\ue01f"]=bf;Z.a["\ue020"]=cf;Z.a["\ue021"]=df;Z.a["\ue022"]=ef;Z.a["\ue023"]=ff;Z.a["\ue024"]=gf;Z.a["\ue025"]=hf;Z.a["\ue027"]=jf;Z.a["\ue028"]=kf;Z.a["\ue029"]=lf;Z.a["\ue026"]=zf;Z.a["\ue031"]=mf;Z.a["\ue032"]=nf;Z.a["\ue033"]=of;Z.a["\ue034"]=pf;Z.a["\ue035"]=qf;Z.a["\ue036"]=rf;Z.a["\ue037"]=sf;Z.a["\ue038"]=tf;Z.a["\ue039"]=uf;Z.a["\ue03a"]=vf;Z.a["\ue03b"]=wf;Z.a["\ue03c"]=xf;Z.a["\ue03d"]=We;la("_",function(a,b){a=[a];try{var c;b?c=Zf(b.WINDOW):c=window;var d=Yf(a,c.document),e=Tf.apply(null,d);var f={status:0,value:Wf(e)}}catch(g){f={status:Oa(g,"code")?g.code:13,value:{message:g.message}}}return Vf(f)});; return this._.apply(null,arguments);}).apply({navigator:typeof window!='undefined'?window.navigator:null,document:typeof window!='undefined'?window.document:null}, arguments);} diff --git a/atoms/default_content.js b/atoms/default_content.js index 6328a89..f1070c7 100755 --- a/atoms/default_content.js +++ b/atoms/default_content.js @@ -71,4 +71,4 @@ W.NUMBER_TYPE=1;W.STRING_TYPE=2;W.BOOLEAN_TYPE=3;W.UNORDERED_NODE_ITERATOR_TYPE= 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"; 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(){return Db.top};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"== 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} -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("_",function(){var a=Lb,b=[],c=window||Db;try{a:{var d=a;if(k(d))try{a=new c.Function(d);break a}catch(g){throw g;}a=c==window?d:new c.Function("return ("+d+").apply(null,arguments);")}var e=Pb(b,c.document);var f={status:0,value:Nb(a.apply(null,e))}}catch(g){f={status:v(g,"code")?g.code:13,value:{message:g.message}}}return Mb(f)});; return this._.apply(null,arguments);}).apply(window, arguments);} +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("_",function(){var a=Lb,b=[],c=window||Db;try{a:{var d=a;if(k(d))try{a=new c.Function(d);break a}catch(g){throw g;}a=c==window?d:new c.Function("return ("+d+").apply(null,arguments);")}var e=Pb(b,c.document);var f={status:0,value:Nb(a.apply(null,e))}}catch(g){f={status:v(g,"code")?g.code:13,value:{message:g.message}}}return Mb(f)});; return this._.apply(null,arguments);}).apply({navigator:typeof window!='undefined'?window.navigator:null,document:typeof window!='undefined'?window.document:null}, arguments);} diff --git a/atoms/execute_async_script.js b/atoms/execute_async_script.js index 7cb0806..3bcae3d 100755 --- a/atoms/execute_async_script.js +++ b/atoms/execute_async_script.js @@ -6,4 +6,4 @@ w[51]="invalid selector";w[52]="invalid selector";w[17]="javascript error";w[405 function V(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.a=t());b.a||(b.a=t());return b}function S(a){var b=V(a.ownerDocument),c=D(b,function(d){return d==a});c||(c=":wdc:"+b.a++,b[c]=a);return c} function U(a,b){a=decodeURIComponent(a);b=b||document;var c=V(b);if(!C(c,a))throw new v(10,"Element does not exist in cache");var d=c[a];if(C(d,"setInterval")){if(d.closed)throw delete c[a],new v(23,"Window has been closed.");return d}for(var g=d;g;){if(g==b.documentElement)return d;g.host&&11===g.nodeType&&(g=g.host);g=g.parentNode}delete c[a];throw new v(10,"Element is no longer attached to the DOM");};function W(a,b,c,d,g,h){function n(l,p){P||(k.removeEventListener?k.removeEventListener("unload",A,!0):k.detachEvent("onunload",A),k.clearTimeout(ea),0!=l?(l=new v(l,p.message||p+""),l.stack=p.stack,p={status:C(l,"code")?l.code:13,value:{message:l.message}}):p={status:0,value:ca(p)},d(g?ba(p):p),P=!0)}function A(){n(13,Error("Detected a page unload event; asynchronous script execution does not work across page loads."))}var k=h||window,P=!1;h=r(n,13);if(k.closed)h("Unable to execute script; the target window is closed."); else{a=da(a,k);b=T(b,k.document);b.push(r(n,0));k.addEventListener?k.addEventListener("unload",A,!0):k.attachEvent("onunload",A);var fa=t();try{a.apply(k,b);var ea=k.setTimeout(function(){n(28,Error("Timed out waiting for asynchronous script result after "+(t()-fa)+" ms"))},Math.max(0,c))}catch(l){n(l.code||13,l)}}}var X=["_"],Y=e;X[0]in Y||"undefined"==typeof Y.execScript||Y.execScript("var "+X[0]); -for(var Z;X.length&&(Z=X.shift());)X.length||void 0===W?Y[Z]&&Y[Z]!==Object.prototype[Z]?Y=Y[Z]:Y=Y[Z]={}:Y[Z]=W;; return this._.apply(null,arguments);}).apply(window, arguments);} +for(var Z;X.length&&(Z=X.shift());)X.length||void 0===W?Y[Z]&&Y[Z]!==Object.prototype[Z]?Y=Y[Z]:Y=Y[Z]={}:Y[Z]=W;; return this._.apply(null,arguments);}).apply({navigator:typeof window!='undefined'?window.navigator:null,document:typeof window!='undefined'?window.document:null}, arguments);} diff --git a/atoms/execute_script.js b/atoms/execute_script.js index c3f3d29..a6bcc10 100755 --- a/atoms/execute_script.js +++ b/atoms/execute_script.js @@ -4,4 +4,4 @@ b&&"undefined"==typeof a.call)return"object";return b}function k(a){var b=f(a);r u[51]="invalid selector";u[52]="invalid selector";u[17]="javascript error";u[405]="unsupported operation";u[34]="move target out of bounds";u[27]="no such alert";u[7]="no such element";u[8]="no such frame";u[23]="no such window";u[28]="script timeout";u[33]="session not created";u[10]="stale element reference";u[21]="timeout";u[25]="unable to set cookie";u[26]="unexpected alert open";u[13]=v;u[9]="unknown command";var w=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="string"===typeof a?a.split(""):a,h=0;hc||b.indexOf("Error",c)!=c)b+="Error";this.name=b;b=Error(this.message);b.name=this.name;this.stack=b.stack||""}d(h,Error);var m="unknown error",k={15:"element not selectable",11:"element not visible"};k[31]=m;k[30]=m;k[24]="invalid cookie domain";k[29]="invalid element coordinates";k[12]="invalid element state";k[32]="invalid selector"; -k[51]="invalid selector";k[52]="invalid selector";k[17]="javascript error";k[405]="unsupported operation";k[34]="move target out of bounds";k[27]="no such alert";k[7]="no such element";k[8]="no such frame";k[23]="no such window";k[28]="script timeout";k[33]="session not created";k[10]="stale element reference";k[21]="timeout";k[25]="unable to set cookie";k[26]="unexpected alert open";k[13]=m;k[9]="unknown command";function n(b){this.a=[];for(var c=0;c=~*^$|%&@`{}\-\/\[\]\(\)])/g, "\\$1")}};var X={},Rc={};X.N=function(a,b,c){try{var d=nc.j("a",b)}catch(e){d=y(u(b),"A",null,b)}return ua(d,function(e){e=Jc(e);e=e.replace(/^[\s]+|[\s]+$/g,"");return c&&-1!=e.indexOf(a)||e==a})};X.K=function(a,b,c){try{var d=nc.j("a",b)}catch(e){d=y(u(b),"A",null,b)}return pa(d,function(e){e=Jc(e);e=e.replace(/^[\s]+|[\s]+$/g,"");return c&&-1!=e.indexOf(a)||e==a})};X.o=function(a,b){return X.N(a,b,!1)};X.j=function(a,b){return X.K(a,b,!1)};Rc.o=function(a,b){return X.N(a,b,!0)}; @@ -112,4 +112,4 @@ Z.s=function(a,b,c){var d=w(a);if(!d.documentElement)return null;jc&&cc(d?d.pare d.createNSResolver?d.createNSResolver(d.documentElement):Z.I,d.evaluate(b,a,e,c,null);throw l;}}catch(l){throw new P(32,"Unable to locate an element with the xpath expression "+b+" because of the following error:\n"+l);}};Z.J=function(a,b){if(!a||1!=a.nodeType)throw new P(32,'The result of the xpath expression "'+b+'" is: '+a+". It should be an element.");}; Z.o=function(a,b){var c=function(){var d=Z.s(b,a,9);return d?d.singleNodeValue||null:b.selectSingleNode?(d=w(b),d.setProperty&&d.setProperty("SelectionLanguage","XPath"),b.selectSingleNode(a)):null}();null===c||Z.J(c,a);return c}; Z.j=function(a,b){var c=function(){var d=Z.s(b,a,7);if(d){for(var e=d.snapshotLength,f=[],g=0;g=~*^$|%&@`{}\-\/\[\]\(\)])/g, "\\$1")}};var X={},ad={};X.O=function(a,b,c){try{var d=xc.j("a",b)}catch(e){d=x(v(b),"A",null,b)}return wa(d,function(e){e=Tc(e);e=e.replace(/^[\s]+|[\s]+$/g,"");return c&&-1!=e.indexOf(a)||e==a})};X.L=function(a,b,c){try{var d=xc.j("a",b)}catch(e){d=x(v(b),"A",null,b)}return ra(d,function(e){e=Tc(e);e=e.replace(/^[\s]+|[\s]+$/g,"");return c&&-1!=e.indexOf(a)||e==a})};X.o=function(a,b){return X.O(a,b,!1)};X.j=function(a,b){return X.L(a,b,!1)};ad.o=function(a,b){return X.O(a,b,!0)}; @@ -114,4 +114,4 @@ Z.s=function(a,b,c){var d=w(a);if(!d.documentElement)return null;nc&&hc(d?d.pare d.createNSResolver?d.createNSResolver(d.documentElement):Z.J,d.evaluate(b,a,e,c,null);throw m;}}catch(m){throw new P(32,"Unable to locate an element with the xpath expression "+b+" because of the following error:\n"+m);}};Z.K=function(a,b){if(!a||1!=a.nodeType)throw new P(32,'The result of the xpath expression "'+b+'" is: '+a+". It should be an element.");}; Z.o=function(a,b){var c=function(){var d=Z.s(b,a,9);return d?d.singleNodeValue||null:b.selectSingleNode?(d=w(b),d.setProperty&&d.setProperty("SelectionLanguage","XPath"),b.selectSingleNode(a)):null}();null===c||Z.K(c,a);return c}; Z.j=function(a,b){var c=function(){var d=Z.s(b,a,7);if(d){for(var e=d.snapshotLength,f=[],g=0;g=~*^$|%&@`{}\-\/\[\]\(\)])/g, "\\$1")}};var X={},ad={};X.O=function(a,b,c){try{var d=xc.j("a",b)}catch(e){d=x(v(b),"A",null,b)}return wa(d,function(e){e=Tc(e);e=e.replace(/^[\s]+|[\s]+$/g,"");return c&&-1!=e.indexOf(a)||e==a})};X.L=function(a,b,c){try{var d=xc.j("a",b)}catch(e){d=x(v(b),"A",null,b)}return ra(d,function(e){e=Tc(e);e=e.replace(/^[\s]+|[\s]+$/g,"");return c&&-1!=e.indexOf(a)||e==a})};X.o=function(a,b){return X.O(a,b,!1)};X.j=function(a,b){return X.L(a,b,!1)};ad.o=function(a,b){return X.O(a,b,!0)}; @@ -114,4 +114,4 @@ Z.s=function(a,b,c){var d=w(a);if(!d.documentElement)return null;nc&&hc(d?d.pare d.createNSResolver?d.createNSResolver(d.documentElement):Z.J,d.evaluate(b,a,e,c,null);throw m;}}catch(m){throw new P(32,"Unable to locate an element with the xpath expression "+b+" because of the following error:\n"+m);}};Z.K=function(a,b){if(!a||1!=a.nodeType)throw new P(32,'The result of the xpath expression "'+b+'" is: '+a+". It should be an element.");}; Z.o=function(a,b){var c=function(){var d=Z.s(b,a,9);return d?d.singleNodeValue||null:b.selectSingleNode?(d=w(b),d.setProperty&&d.setProperty("SelectionLanguage","XPath"),b.selectSingleNode(a)):null}();null===c||Z.K(c,a);return c}; Z.j=function(a,b){var c=function(){var d=Z.s(b,a,7);if(d){for(var e=d.snapshotLength,f=[],g=0;g=~*^$|%&@`{}\-\/\[\]\(\)])/g, @@ -114,4 +114,4 @@ Z.o=function(a,b){var c=function(){var d=Z.s(b,a,9);return d?d.singleNodeValue|| Z.j=function(a,b){var c=function(){var d=Z.s(b,a,7);if(d){for(var e=d.snapshotLength,f=[],g=0;gb||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"; 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"== 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} -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("_",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._.apply(null,arguments);}).apply(window, arguments);} +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("_",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._.apply(null,arguments);}).apply({navigator:typeof window!='undefined'?window.navigator:null,document:typeof window!='undefined'?window.document:null}, arguments);} diff --git a/atoms/get_appcache_status.js b/atoms/get_appcache_status.js index 5b6d144..a4550f6 100755 --- a/atoms/get_appcache_status.js +++ b/atoms/get_appcache_status.js @@ -71,4 +71,4 @@ V.NUMBER_TYPE=1;V.STRING_TYPE=2;V.BOOLEAN_TYPE=3;V.UNORDERED_NODE_ITERATOR_TYPE= 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"; 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"== 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} -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("_",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._.apply(null,arguments);}).apply(window, arguments);} +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("_",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._.apply(null,arguments);}).apply({navigator:typeof window!='undefined'?window.navigator:null,document:typeof window!='undefined'?window.document:null}, arguments);} diff --git a/atoms/get_attribute.js b/atoms/get_attribute.js index d54ac79..04179b7 100755 --- a/atoms/get_attribute.js +++ b/atoms/get_attribute.js @@ -1,4 +1,4 @@ function(){return (function(){var d=this||self;function f(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a};var h=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);for(var c=0;cb||a.indexOf("Error",b)!=b)a+="Error";this.name=a;a=Error(this.message);a.name=this.name;this.stack=a.stack||""}f(l,Error);var n="unknown error",m={15:"element not selectable",11:"element not visible"};m[31]=n;m[30]=n;m[24]="invalid cookie domain";m[29]="invalid element coordinates";m[12]="invalid element state";m[32]="invalid selector"; m[51]="invalid selector";m[52]="invalid selector";m[17]="javascript error";m[405]="unsupported operation";m[34]="move target out of bounds";m[27]="no such alert";m[7]="no such element";m[8]="no such frame";m[23]="no such window";m[28]="script timeout";m[33]="session not created";m[10]="stale element reference";m[21]="timeout";m[25]="unable to set cookie";m[26]="unexpected alert open";m[13]=n;m[9]="unknown command";function p(a){return-1!=q.indexOf(a)};var q;a:{var r=d.navigator;if(r){var t=r.userAgent;if(t){q=t;break a}}q=""};function v(){return p("Firefox")||p("FxiOS")}function w(){return(p("Chrome")||p("CriOS"))&&!p("Edge")};function x(){return p("iPhone")&&!p("iPod")&&!p("iPad")};var y=v(),z=x()||p("iPod"),A=p("iPad"),B=p("Android")&&!(w()||v()||p("Opera")||p("Silk")),C=w(),D=p("Safari")&&!(w()||p("Coast")||p("Opera")||p("Edge")||p("Edg/")||p("OPR")||v()||p("Silk")||p("Android"))&&!(x()||p("iPad")||p("iPod"));function E(a){return(a=a.exec(q))?a[1]:""}(function(){if(y)return E(/Firefox\/([0-9.]+)/);if(C)return x()||p("iPad")||p("iPod")?E(/CriOS\/([0-9.]+)/):E(/Chrome\/([0-9.]+)/);if(D&&!(x()||p("iPad")||p("iPod")))return E(/Version\/([0-9.]+)/);if(z||A){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(q);if(a)return a[1]+"."+a[2]}else if(B)return(a=E(/Android\s+([0-9.]+)/))?a:E(/Version\/([0-9.]+)/);return""})();function F(a,b){b=b.toLowerCase();return"style"==b?G(a.style.cssText):(a=a.getAttributeNode(b))&&a.specified?a.value:null}var H=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/;function G(a){var b=[];k(a.split(H),function(c){var e=c.indexOf(":");0