From 0035f0d8bab6bfe1ae53621473f49c5d57cd8cb0 Mon Sep 17 00:00:00 2001 From: Guangyue Xu Date: Fri, 15 Oct 2021 16:05:53 -0700 Subject: [PATCH] Fix XPath crash issue in IEDriver --- cpp/iedriver/Generated/atoms.h | 2098 ++++++++++++++++---------------- javascript/atoms/dom.js | 4 +- 2 files changed, 1052 insertions(+), 1050 deletions(-) diff --git a/cpp/iedriver/Generated/atoms.h b/cpp/iedriver/Generated/atoms.h index ea0869bd0d5fc..9012f40f4b0f0 100644 --- a/cpp/iedriver/Generated/atoms.h +++ b/cpp/iedriver/Generated/atoms.h @@ -2424,112 +2424,112 @@ const wchar_t* const FIND_ELEMENT[] = { L".replace(/(\\r\\n|\\r|\\n)/g,\"\\n\");if(\"normal\"==c||\"nowrap\"==c)", L"a=a.replace(/\\n/g,\" \");a=\"pre\"==c||\"pre-wrap\"==c?a.replace(/[ ", L"\\f\\t\\v\\u2028\\u2029]/g,\"\\u00a0\"):a.replace(/[ \\f\\t\\v\\u2028", - L"\\u2029]+/g,\" \");\"capitalize\"==d?a=a.replace(/(^|[^\\d\\p{L}\\p{S}", - L"])([\\p{Ll}|\\p{S}])/gu,function(e,f,g){return f+g.toUpperCase()}):\"u", - L"ppercase\"==d?a=a.toUpperCase():\"lowercase\"==d&&(a=a.toLowerCase());", - L"c=b.pop()||\"\";za(c)&&0==a.lastIndexOf(\" \",0)&&(a=a.substr(1));\nb.", - L"push(c+a)}function Mc(a){if(Bc){if(\"relative\"==V(a,\"position\"))ret", - L"urn 1;a=V(a,\"filter\");return(a=a.match(/^alpha\\(opacity=(\\d*)\\)/)", - L"||a.match(/^progid:DXImageTransform.Microsoft.Alpha\\(Opacity=(\\d*)", - L"\\)/))?Number(a[1])/100:1}return Xc(a)}function Xc(a){var b=1,c=V(a,\"", - L"opacity\");c&&(b=Number(c));(a=Hc(a))&&(b*=Xc(a));return b}\nfunction ", - L"Yc(a,b,c,d,e){if(3==a.nodeType&&c)Wc(a,b,d,e);else if(S(a))if(S(a,\"CO", - L"NTENT\")||S(a,\"SLOT\")){for(var f=a;f.parentNode;)f=f.parentNode;f in", - L"stanceof ShadowRoot?(a=S(a,\"CONTENT\")?a.getDistributedNodes():a.assi", - L"gnedNodes(),p(a,function(g){Yc(g,b,c,d,e)})):Sc(a,b)}else if(S(a,\"SHA", - L"DOW\")){for(f=a;f.parentNode;)f=f.parentNode;if(f instanceof ShadowRoo", - L"t&&(a=f))for(a=a.olderShadowRoot;a;)p(a.childNodes,function(g){Yc(g,b,", - L"c,d,e)}),a=a.olderShadowRoot}else Sc(a,b)}\nfunction Sc(a,b){a.shadowR", - L"oot&&p(a.shadowRoot.childNodes,function(c){Yc(c,b,!0,null,null)});Uc(a", - L",b,function(c,d,e,f,g){var h=null;1==c.nodeType?h=c:3==c.nodeType&&(h=", - L"c);null!=h&&(null!=h.assignedSlot||h.getDestinationInsertionPoints&&0<", - L"h.getDestinationInsertionPoints().length)||Yc(c,d,e,f,g)})};var Zc={C:", - L"function(a){return!(!a.querySelectorAll||!a.querySelector)},o:function", - L"(a,b){if(!a)throw new Q(32,\"No class name specified\");a=Aa(a);if(-1!", - L"==a.indexOf(\" \"))throw new Q(32,\"Compound class names not permitted", - L"\");if(Zc.C(b))try{return b.querySelector(\".\"+a.replace(/\\./g,\"", - L"\\\\.\"))||null}catch(c){throw new Q(32,\"An invalid or illegal class ", - L"name was specified\");}a=z(x(b),\"*\",a,b);return a.length?a[0]:null},", - L"j:function(a,b){if(!a)throw new Q(32,\"No class name specified\");a=Aa", - L"(a);if(-1!==a.indexOf(\" \"))throw new Q(32,\n\"Compound class names n", - L"ot permitted\");if(Zc.C(b))try{return b.querySelectorAll(\".\"+a.repla", - L"ce(/\\./g,\"\\\\.\"))}catch(c){throw new Q(32,\"An invalid or illegal ", - L"class name was specified\");}return z(x(b),\"*\",a,b)}};var $c={o:func", - L"tion(a,b){if(!fa(b.querySelector)&&0<=Ba(q,8)&&!ha(b.querySelector))th", - L"row Error(\"CSS selection is not supported\");if(!a)throw new Q(32,\"N", - L"o selector specified\");a=Aa(a);try{var c=b.querySelector(a)}catch(d){", - L"throw new Q(32,\"An invalid or illegal selector was specified\");}retu", - L"rn c&&1==c.nodeType?c:null},j:function(a,b){if(!fa(b.querySelectorAll)", - L"&&0<=Ba(q,8)&&!ha(b.querySelector))throw Error(\"CSS selection is not ", - L"supported\");if(!a)throw new Q(32,\"No selector specified\");a=Aa(a);t", - L"ry{return b.querySelectorAll(a)}catch(c){throw new Q(32,\n\"An invalid", - L" or illegal selector was specified\");}}};var ad={C:function(a,b){retu", - L"rn!(!a.querySelectorAll||!a.querySelector)&&!/^\\d.*/.test(b)},o:funct", - L"ion(a,b){var c=x(b),d=\"string\"===typeof a?c.a.getElementById(a):a;re", - L"turn d?Cc(d,\"id\")==a&&b!=d&&ab(b,d)?d:ua(z(c,\"*\"),function(e){retu", - L"rn Cc(e,\"id\")==a&&b!=e&&ab(b,e)}):null},j:function(a,b){if(!a)return", - L"[];if(ad.C(b,a))try{return b.querySelectorAll(\"#\"+ad.T(a))}catch(c){", - L"return[]}b=z(x(b),\"*\",null,b);return pa(b,function(c){return Cc(c,\"", - L"id\")==a})},T:function(a){return a.replace(/([\\s'\"\\\\#.:;,!?+<>=~*^", - L"$|%&@`{}\\-\\/\\[\\]\\(\\)])/g,\n\"\\\\$1\")}};var Y={},bd={};Y.N=func", - L"tion(a,b,c){try{var d=$c.j(\"a\",b)}catch(e){d=z(x(b),\"A\",null,b)}re", - L"turn ua(d,function(e){e=Rc(e);e=e.replace(/^[\\s]+|[\\s]+$/g,\"\");ret", - L"urn c&&-1!=e.indexOf(a)||e==a})};Y.K=function(a,b,c){try{var d=$c.j(\"", - L"a\",b)}catch(e){d=z(x(b),\"A\",null,b)}return pa(d,function(e){e=Rc(e)", - L";e=e.replace(/^[\\s]+|[\\s]+$/g,\"\");return c&&-1!=e.indexOf(a)||e==a", - L"})};Y.o=function(a,b){return Y.N(a,b,!1)};Y.j=function(a,b){return Y.K", - L"(a,b,!1)};bd.o=function(a,b){return Y.N(a,b,!0)};\nbd.j=function(a,b){", - L"return Y.K(a,b,!0)};var Z={F:function(a,b){return function(c){var d=Z.", - L"u(a);d=W(d);c=W(c);return b.call(null,d,c)}},R:function(a){return Z.F(", - L"a,function(b,c){return c.b+c.height=~*^$|%&@`{}\\-\\/\\[\\]\\(\\)])/g", + L",\n\"\\\\$1\")}};var Y={},bd={};Y.N=function(a,b,c){try{var d=$c.j(\"a", + L"\",b)}catch(e){d=z(x(b),\"A\",null,b)}return ua(d,function(e){e=Rc(e);", + L"e=e.replace(/^[\\s]+|[\\s]+$/g,\"\");return c&&-1!=e.indexOf(a)||e==a}", + L")};Y.K=function(a,b,c){try{var d=$c.j(\"a\",b)}catch(e){d=z(x(b),\"A\"", + L",null,b)}return pa(d,function(e){e=Rc(e);e=e.replace(/^[\\s]+|[\\s]+$/", + L"g,\"\");return c&&-1!=e.indexOf(a)||e==a})};Y.o=function(a,b){return Y", + L".N(a,b,!1)};Y.j=function(a,b){return Y.K(a,b,!1)};bd.o=function(a,b){r", + L"eturn Y.N(a,b,!0)};\nbd.j=function(a,b){return Y.K(a,b,!0)};var Z={F:f", + L"unction(a,b){return function(c){var d=Z.u(a);d=W(d);c=W(c);return b.ca", + L"ll(null,d,c)}},R:function(a){return Z.F(a,function(b,c){return c.b+c.h", + L"eight=~*^", - L"$|%&@`{}\\-\\/\\[\\]\\(\\)])/g,\n\"\\\\$1\")}};var Y={},bd={};Y.N=func", - L"tion(a,b,c){try{var d=$c.j(\"a\",b)}catch(e){d=z(x(b),\"A\",null,b)}re", - L"turn ua(d,function(e){e=Rc(e);e=e.replace(/^[\\s]+|[\\s]+$/g,\"\");ret", - L"urn c&&-1!=e.indexOf(a)||e==a})};Y.K=function(a,b,c){try{var d=$c.j(\"", - L"a\",b)}catch(e){d=z(x(b),\"A\",null,b)}return pa(d,function(e){e=Rc(e)", - L";e=e.replace(/^[\\s]+|[\\s]+$/g,\"\");return c&&-1!=e.indexOf(a)||e==a", - L"})};Y.o=function(a,b){return Y.N(a,b,!1)};Y.j=function(a,b){return Y.K", - L"(a,b,!1)};bd.o=function(a,b){return Y.N(a,b,!0)};\nbd.j=function(a,b){", - L"return Y.K(a,b,!0)};var Z={F:function(a,b){return function(c){var d=Z.", - L"u(a);d=W(d);c=W(c);return b.call(null,d,c)}},R:function(a){return Z.F(", - L"a,function(b,c){return c.b+c.height<\\[\\]\\\\\\{\\}\\|`#]+/.test(b))return{status:32,value:\"Inval", - L"id character in class name.\"};var d={},e={};e[a]=b;try{d=ed(e,c)}catc", - L"h(f){return{status:f.code||17,value:f.message}}return{status:0,value:d", - L"}});; return this._.apply(null,arguments);}).apply({navigator:typeof w", - L"indow!='undefined'?window.navigator:null,document:typeof window!='unde", - L"fined'?window.document:null}, arguments);}\n", + L"\\u2029]+/g,\" \");\"capitalize\"==d?a=a.replace(/(^|\\s|\\b)(\\S)/g,f", + L"unction(e,f,g){return f+g.toUpperCase()}):\"uppercase\"==d?a=a.toUpper", + L"Case():\"lowercase\"==d&&(a=a.toLowerCase());c=b.pop()||\"\";za(c)&&0=", + L"=a.lastIndexOf(\" \",0)&&(a=a.substr(1));b.push(c+a)}\nfunction Mc(a){", + L"if(Bc){if(\"relative\"==V(a,\"position\"))return 1;a=V(a,\"filter\");r", + L"eturn(a=a.match(/^alpha\\(opacity=(\\d*)\\)/)||a.match(/^progid:DXImag", + L"eTransform.Microsoft.Alpha\\(Opacity=(\\d*)\\)/))?Number(a[1])/100:1}r", + L"eturn Xc(a)}function Xc(a){var b=1,c=V(a,\"opacity\");c&&(b=Number(c))", + L";(a=Hc(a))&&(b*=Xc(a));return b}\nfunction Yc(a,b,c,d,e){if(3==a.nodeT", + L"ype&&c)Wc(a,b,d,e);else if(S(a))if(S(a,\"CONTENT\")||S(a,\"SLOT\")){fo", + L"r(var f=a;f.parentNode;)f=f.parentNode;f instanceof ShadowRoot?(a=S(a,", + L"\"CONTENT\")?a.getDistributedNodes():a.assignedNodes(),p(a,function(g)", + L"{Yc(g,b,c,d,e)})):Sc(a,b)}else if(S(a,\"SHADOW\")){for(f=a;f.parentNod", + L"e;)f=f.parentNode;if(f instanceof ShadowRoot&&(a=f))for(a=a.olderShado", + L"wRoot;a;)p(a.childNodes,function(g){Yc(g,b,c,d,e)}),a=a.olderShadowRoo", + L"t}else Sc(a,b)}\nfunction Sc(a,b){a.shadowRoot&&p(a.shadowRoot.childNo", + L"des,function(c){Yc(c,b,!0,null,null)});Uc(a,b,function(c,d,e,f,g){var ", + L"h=null;1==c.nodeType?h=c:3==c.nodeType&&(h=c);null!=h&&(null!=h.assign", + L"edSlot||h.getDestinationInsertionPoints&&0=~*^$|%&@`{}\\-\\/\\[\\]\\(\\)])/g", + L",\n\"\\\\$1\")}};var Y={},bd={};Y.N=function(a,b,c){try{var d=$c.j(\"a", + L"\",b)}catch(e){d=z(x(b),\"A\",null,b)}return ua(d,function(e){e=Rc(e);", + L"e=e.replace(/^[\\s]+|[\\s]+$/g,\"\");return c&&-1!=e.indexOf(a)||e==a}", + L")};Y.K=function(a,b,c){try{var d=$c.j(\"a\",b)}catch(e){d=z(x(b),\"A\"", + L",null,b)}return pa(d,function(e){e=Rc(e);e=e.replace(/^[\\s]+|[\\s]+$/", + L"g,\"\");return c&&-1!=e.indexOf(a)||e==a})};Y.o=function(a,b){return Y", + L".N(a,b,!1)};Y.j=function(a,b){return Y.K(a,b,!1)};bd.o=function(a,b){r", + L"eturn Y.N(a,b,!0)};\nbd.j=function(a,b){return Y.K(a,b,!0)};var Z={F:f", + L"unction(a,b){return function(c){var d=Z.u(a);d=W(d);c=W(c);return b.ca", + L"ll(null,d,c)}},R:function(a){return Z.F(a,function(b,c){return c.b+c.h", + L"eight<\\[\\]\\\\\\{\\}\\|`#]+/", + L".test(b))return{status:32,value:\"Invalid character in class name.\"};", + L"var d={},e={};e[a]=b;try{d=ed(e,c)}catch(f){return{status:f.code||17,v", + L"alue:f.message}}return{status:0,value:d}});; return this._.apply(null,", + L"arguments);}).apply({navigator:typeof window!='undefined'?window.navig", + L"ator:null,document:typeof window!='undefined'?window.document:null}, a", + L"rguments);}\n", NULL }; @@ -5510,132 +5510,132 @@ const wchar_t* const GET_TEXT[] = { L"\\r|\\n)/g,\"\\n\");if(\"normal\"==c||\"nowrap\"==c)a=a.replace(/\\n/g", L",\" \");a=\"pre\"==c||\"pre-wrap\"==c?a.replace(/[ \\f\\t\\v\\u2028\\u", L"2029]/g,\"\\u00a0\"):a.replace(/[ \\f\\t\\v\\u2028\\u2029]+/g,\" \");", - L"\"capitalize\"==d?a=a.replace(/(^|[^\\d\\p{L}\\p{S}])([\\p{Ll}|\\p{S}]", - L")/gu,function(e,f,g){return f+g.toUpperCase()}):\"uppercase\"==d?a=a.t", - L"oUpperCase():\"lowercase\"==d&&(a=a.toLowerCase());c=b.pop()||\"\";va(", - L"c)&&0==a.lastIndexOf(\" \",0)&&(a=a.substr(1));\nb.push(c+a)}function ", - L"Jc(a){if(zc){if(\"relative\"==V(a,\"position\"))return 1;a=V(a,\"filte", - L"r\");return(a=a.match(/^alpha\\(opacity=(\\d*)\\)/)||a.match(/^progid:", - L"DXImageTransform.Microsoft.Alpha\\(Opacity=(\\d*)\\)/))?Number(a[1])/1", - L"00:1}return Sc(a)}function Sc(a){var b=1,c=V(a,\"opacity\");c&&(b=Numb", - L"er(c));(a=Dc(a))&&(b*=Sc(a));return b}\nfunction Tc(a,b,c,d,e){if(3==a", - L".nodeType&&c)Rc(a,b,d,e);else if(S(a))if(S(a,\"CONTENT\")||S(a,\"SLOT", - L"\")){for(var f=a;f.parentNode;)f=f.parentNode;f instanceof ShadowRoot?", - L"(a=S(a,\"CONTENT\")?a.getDistributedNodes():a.assignedNodes(),n(a,func", - L"tion(g){Tc(g,b,c,d,e)})):Uc(a,b)}else if(S(a,\"SHADOW\")){for(f=a;f.pa", - L"rentNode;)f=f.parentNode;if(f instanceof ShadowRoot&&(a=f))for(a=a.old", - L"erShadowRoot;a;)n(a.childNodes,function(g){Tc(g,b,c,d,e)}),a=a.olderSh", - L"adowRoot}else Uc(a,b)}\nfunction Uc(a,b){a.shadowRoot&&n(a.shadowRoot.", - L"childNodes,function(c){Tc(c,b,!0,null,null)});Oc(a,b,function(c,d,e,f,", - L"g){var k=null;1==c.nodeType?k=c:3==c.nodeType&&(k=c);null!=k&&(null!=k", - L".assignedSlot||k.getDestinationInsertionPoints&&0\");Z(191,\"/\",\"?\");\nZ(192,\"`\",\"~\");Z(219,\"[\",\"{\");Z(22", - L"0,\"\\\\\",\"|\");Z(221,\"]\",\"}\");Z({h:59,g:186},\";\",\":\");Z(222", - L",\"'\",'\"');var kd=new cd;kd.set(1,gd);kd.set(2,hd);kd.set(4,id);kd.s", - L"et(8,jd);(function(a){var b=new cd;n(dd(a),function(c){b.set(a.get(c).", - L"code,c)});return b})(kd);ca(\"_\",function(a){var b=[];Cc?Uc(a,b):Qc(a", - L",b);a=oa(b,Nc);return Nc(a.join(\"\\n\")).replace(/\\xa0/g,\" \")});; ", - L"return this._.apply(null,arguments);}).apply({navigator:typeof window!", - L"='undefined'?window.navigator:null,document:typeof window!='undefined'", - L"?window.document:null}, arguments);}\n", + L"\"capitalize\"==d?a=a.replace(/(^|\\s|\\b)(\\S)/g,function(e,f,g){retu", + L"rn f+g.toUpperCase()}):\"uppercase\"==d?a=a.toUpperCase():\"lowercase", + L"\"==d&&(a=a.toLowerCase());c=b.pop()||\"\";va(c)&&0==a.lastIndexOf(\" ", + L"\",0)&&(a=a.substr(1));b.push(c+a)}\nfunction Jc(a){if(zc){if(\"relati", + L"ve\"==V(a,\"position\"))return 1;a=V(a,\"filter\");return(a=a.match(/^", + L"alpha\\(opacity=(\\d*)\\)/)||a.match(/^progid:DXImageTransform.Microso", + L"ft.Alpha\\(Opacity=(\\d*)\\)/))?Number(a[1])/100:1}return Sc(a)}functi", + L"on Sc(a){var b=1,c=V(a,\"opacity\");c&&(b=Number(c));(a=Dc(a))&&(b*=Sc", + L"(a));return b}\nfunction Tc(a,b,c,d,e){if(3==a.nodeType&&c)Rc(a,b,d,e)", + L";else if(S(a))if(S(a,\"CONTENT\")||S(a,\"SLOT\")){for(var f=a;f.parent", + L"Node;)f=f.parentNode;f instanceof ShadowRoot?(a=S(a,\"CONTENT\")?a.get", + L"DistributedNodes():a.assignedNodes(),n(a,function(g){Tc(g,b,c,d,e)})):", + L"Uc(a,b)}else if(S(a,\"SHADOW\")){for(f=a;f.parentNode;)f=f.parentNode;", + L"if(f instanceof ShadowRoot&&(a=f))for(a=a.olderShadowRoot;a;)n(a.child", + L"Nodes,function(g){Tc(g,b,c,d,e)}),a=a.olderShadowRoot}else Uc(a,b)}\nf", + L"unction Uc(a,b){a.shadowRoot&&n(a.shadowRoot.childNodes,function(c){Tc", + L"(c,b,!0,null,null)});Oc(a,b,function(c,d,e,f,g){var k=null;1==c.nodeTy", + L"pe?k=c:3==c.nodeType&&(k=c);null!=k&&(null!=k.assignedSlot||k.getDesti", + L"nationInsertionPoints&&0\");Z(191,\"/\",\"?\")", + L";\nZ(192,\"`\",\"~\");Z(219,\"[\",\"{\");Z(220,\"\\\\\",\"|\");Z(221,", + L"\"]\",\"}\");Z({h:59,g:186},\";\",\":\");Z(222,\"'\",'\"');var kd=new ", + L"cd;kd.set(1,gd);kd.set(2,hd);kd.set(4,id);kd.set(8,jd);(function(a){va", + L"r b=new cd;n(dd(a),function(c){b.set(a.get(c).code,c)});return b})(kd)", + L";ca(\"_\",function(a){var b=[];Cc?Uc(a,b):Qc(a,b);a=oa(b,Nc);return Nc", + L"(a.join(\"\\n\")).replace(/\\xa0/g,\" \")});; return this._.apply(null", + L",arguments);}).apply({navigator:typeof window!='undefined'?window.navi", + L"gator:null,document:typeof window!='undefined'?window.document:null}, ", + L"arguments);}\n", NULL }; @@ -5767,20 +5767,20 @@ const wchar_t* const INPUTS_BIN[] = { L";function Sa(c){return String(c).replace(/\\-([a-z])/g,function(d,e){r", L"eturn e.toUpperCase()})};function Ta(){return r(\"iPhone\")&&!r(\"iPod", L"\")&&!r(\"iPad\")};function Ua(c,d){var e=Va;return Object.prototype.h", - L"asOwnProperty.call(e,c)?e[c]:e[c]=d(c)};var Wa=r(\"Opera\"),u=r(\"Trid", + L"asOwnProperty.call(e,c)?e[c]:e[c]=d(c)};var Wa=r(\"Opera\"),t=r(\"Trid", L"ent\")||r(\"MSIE\"),Xa=r(\"Edge\"),w=r(\"Gecko\")&&!(-1!=Na.toLowerCas", L"e().indexOf(\"webkit\")&&!r(\"Edge\"))&&!(r(\"Trident\")||r(\"MSIE\"))", L"&&!r(\"Edge\"),x=-1!=Na.toLowerCase().indexOf(\"webkit\")&&!r(\"Edge\"", L"),Ya=x&&r(\"Mobile\"),Za=r(\"Macintosh\"),$a=r(\"Windows\");function a", L"b(){var c=ia.document;return c?c.documentMode:void 0}var bb;\na:{var c", L"b=\"\",db=function(){var c=Na;if(w)return/rv:([^\\);]+)(\\)|;)/.exec(c", - L");if(Xa)return/Edge\\/([\\d\\.]+)/.exec(c);if(u)return/\\b(?:MSIE|rv)[", + L");if(Xa)return/Edge\\/([\\d\\.]+)/.exec(c);if(t)return/\\b(?:MSIE|rv)[", L": ]([^\\);]+)(\\)|;)/.exec(c);if(x)return/WebKit\\/(\\S+)/.exec(c);if(", L"Wa)return/(?:Version)[ \\/]?(\\S+)/.exec(c)}();db&&(cb=db?db[1]:\"\");", - L"if(u){var eb=ab();if(null!=eb&&eb>parseFloat(cb)){bb=String(eb);break ", + L"if(t){var eb=ab();if(null!=eb&&eb>parseFloat(cb)){bb=String(eb);break ", L"a}}bb=cb}var Va={};function fb(c){return Ua(c,function(){return 0<=La(", - L"bb,c)})}function gb(c){return Number(hb)>=c}var ib;ib=ia.document&&u?a", - L"b():void 0;var hb=ib;var jb=u&&!gb(9),kb=u&&!gb(8);function lb(c,d,e,f", + L"bb,c)})}function gb(c){return Number(hb)>=c}var ib;ib=ia.document&&t?a", + L"b():void 0;var hb=ib;var jb=t&&!gb(9),kb=t&&!gb(8);function lb(c,d,e,f", L"){this.a=c;this.nodeName=e;this.nodeValue=f;this.nodeType=2;this.paren", L"tNode=this.ownerElement=d}function mb(c,d){var e=kb&&\"href\"==d.nodeN", L"ame?c.getAttribute(d.nodeName,2):d.nodeValue;return new lb(d,c,d.nodeN", @@ -5813,7 +5813,7 @@ const wchar_t* const INPUTS_BIN[] = { L"contains(d);if(\"undefined\"!=typeof c.compareDocumentPosition)return ", L"c==d||!!(c.compareDocumentPosition(d)&16);for(;d&&c!=d;)d=d.parentNode", L";return d==c}\nfunction zb(c,d){if(c==d)return 0;if(c.compareDocumentP", - L"osition)return c.compareDocumentPosition(d)&2?1:-1;if(u&&!gb(9)){if(9=", + L"osition)return c.compareDocumentPosition(d)&2?1:-1;if(t&&!gb(9)){if(9=", L"=c.nodeType)return-1;if(9==d.nodeType)return 1}if(\"sourceIndex\"in c|", L"|c.parentNode&&\"sourceIndex\"in c.parentNode){var e=1==c.nodeType,f=1", L"==d.nodeType;if(e&&f)return c.sourceIndex-d.sourceIndex;var g=c.parent", @@ -5856,7 +5856,7 @@ const wchar_t* const INPUTS_BIN[] = { L"getElementsByTagName(c),!h))return g;if(e){for(var k=[],l=0;d=h[l++];)", L"Ib(d,e,f)&&k.push(d);h=k}for(l=0;d=h[l++];)\"*\"==c&&\"!\"==d.tagName|", L"|g.add(d);return g}Ob(c,d,e,f,g);return g}\nfunction Lb(c,d,e,f,g){d.g", - L"etElementsByName&&f&&\"name\"==e&&!u?(d=d.getElementsByName(f),q(d,fun", + L"etElementsByName&&f&&\"name\"==e&&!t?(d=d.getElementsByName(f),q(d,fun", L"ction(h){c.a(h)&&g.add(h)})):d.getElementsByClassName&&f&&\"class\"==e", L"?(d=d.getElementsByClassName(f),q(d,function(h){h.className==f&&c.a(h)", L"&&g.add(h)})):c instanceof Pb?Ob(c,d,e,f,g):d.getElementsByTagName&&(d", @@ -6230,17 +6230,17 @@ const wchar_t* const INPUTS_BIN[] = { L"oast\")||r(\"Opera\")||r(\"Edge\")||r(\"Edg/\")||r(\"OPR\")||Qa()||r(", L"\"Silk\")||r(\"Android\"))&&!(Ta()||r(\"iPad\")||r(\"iPod\"));function", L" jd(c){return(c=c.exec(Na))?c[1]:\"\"}var kd=function(){if(dd)return j", - L"d(/Firefox\\/([0-9.]+)/);if(u||Xa||Wa)return bb;if(hd)return Ta()||r(", + L"d(/Firefox\\/([0-9.]+)/);if(t||Xa||Wa)return bb;if(hd)return Ta()||r(", L"\"iPad\")||r(\"iPod\")?jd(/CriOS\\/([0-9.]+)/):jd(/Chrome\\/([0-9.]+)/", L");if(id&&!(Ta()||r(\"iPad\")||r(\"iPod\")))return jd(/Version\\/([0-9.", L"]+)/);if(ed||fd){var c=/Version\\/(\\S+).*Mobile\\/(\\S+)/.exec(Na);if", L"(c)return c[1]+\".\"+c[2]}else if(gd)return(c=jd(/Android\\s+([0-9.]+)", - L"/))?c:jd(/Version\\/([0-9.]+)/);return\"\"}();function ld(c){return u?", + L"/))?c:jd(/Version\\/([0-9.]+)/);return\"\"}();function ld(c){return t?", L"0<=La(hb,c):fb(c)}function md(c){return gd?0<=La(nd,c):0<=La(kd,c)}var", L" od;try{od=!!(ia.b||ia.a).extension}catch(c){od=!1}var pd=od,qd=fd||ed", L",rd;if(gd){var sd=/Android\\s+([0-9\\.]+)/.exec(Na);rd=sd?sd[1]:\"0\"}", - L"else rd=\"0\";var nd=rd,td=u&&!gb(8),ud=gb(9),vd=u&&!gb(9),wd=gb(10),x", - L"d=u&&-1!=Na.indexOf(\"IEMobile\");function yd(c,d){d=d.toLowerCase();r", + L"else rd=\"0\";var nd=rd,td=t&&!gb(8),ud=gb(9),vd=t&&!gb(9),wd=gb(10),x", + L"d=t&&-1!=Na.indexOf(\"IEMobile\");function yd(c,d){d=d.toLowerCase();r", L"eturn\"style\"==d?zd(c.style.cssText):td&&\"value\"==d&&Q(c,\"INPUT\")", L"?c.value:vd&&!0===c[d]?String(c.getAttribute(d)):(c=c.getAttributeNode", L"(d))&&c.specified?c.value:null}var Ad=/[;]+(?=(?:(?:[^\"]*\"){2})*[^\"", @@ -6258,18 +6258,18 @@ const wchar_t* const INPUTS_BIN[] = { L"LowerCase();if(\"checkbox\"==e||\"radio\"==e)d=\"checked\";return!!Bd(", L"c,d)};var Ed={};Ed.L=function(){var c={ha:\"http://www.w3.org/2000/svg", L"\"};return function(d){return c[d]||null}}();\nEd.A=function(c,d,e){va", - L"r f=B(c);if(!f.documentElement)return null;(u||gd)&&Uc(wb(f));try{var ", - L"g=f.createNSResolver?f.createNSResolver(f.documentElement):Ed.L;if(u&&", - L"!fb(7))return f.evaluate.call(f,d,c,g,e,null);if(!u||gb(9)){for(var h=", + L"r f=B(c);if(!f.documentElement)return null;(t||gd)&&Uc(wb(f));try{var ", + L"g=f.createNSResolver?f.createNSResolver(f.documentElement):Ed.L;if(t&&", + L"!fb(7))return f.evaluate.call(f,d,c,g,e,null);if(!t||gb(9)){for(var h=", L"{},k=f.getElementsByTagName(\"*\"),l=0;l=~*^$|%&@`{}\\-\\/\\[\\]\\(\\)])/g,\n\"\\\\$1\")}};var ff={},g", - L"f={};ff.R=function(c,d,e){try{var f=df.o(\"a\",d)}catch(g){f=Gb(tb(d),", - L"\"A\",null,d)}return Ea(f,function(g){g=ie(g);g=g.replace(/^[\\s]+|[", - L"\\s]+$/g,\"\");return e&&-1!=g.indexOf(c)||g==c})};ff.N=function(c,d,e", - L"){try{var f=df.o(\"a\",d)}catch(g){f=Gb(tb(d),\"A\",null,d)}return za(", - L"f,function(g){g=ie(g);g=g.replace(/^[\\s]+|[\\s]+$/g,\"\");return e&&-", - L"1!=g.indexOf(c)||g==c})};ff.v=function(c,d){return ff.R(c,d,!1)};ff.o=", - L"function(c,d){return ff.N(c,d,!1)};gf.v=function(c,d){return ff.R(c,d,", - L"!0)};\ngf.o=function(c,d){return ff.N(c,d,!0)};var U={J:function(c,d){", - L"return function(e){var f=U.C(c);f=ae(f);e=ae(e);return d.call(null,f,e", - L")}},V:function(c){return U.J(c,function(d,e){return e.top+e.height\");V(191,\"/\",\"?\");V(192,\"`\",\"~\");V(219,\"[\",\"{\");V(220,", - L"\"\\\\\",\"|\");V(221,\"]\",\"}\");var Qg=V({h:59,i:186},\";\",\":\");", - L"V(222,\"'\",'\"');var Rg=[Xf,Wf,kg,W],Sg=new Jf;Sg.set(1,W);Sg.set(2,W", - L"f);Sg.set(4,Xf);Sg.set(8,kg);\nvar Tg=function(c){var d=new Jf;q(Kf(c)", - L",function(e){d.set(c.get(e).code,e)});return d}(Sg);function Qf(c,d,e)", - L"{if(0<=ya(Rg,d)){var f=Tg.get(d.code),g=c.B;g.a=e?g.a|f:g.a&~f}e?c.c.a", - L"dd(d):(c=c.c.a,d=Of(d),Mf(c.b,d)&&(delete c.b[d],c.f--,c.a.length>2*c.", - L"f&&Lf(c)))}var Ug=u?\"\\r\\n\":\"\\n\";function X(c,d){d=Of(d);return ", - L"Mf(c.c.a.b,d)}\nfunction Vg(c,d){if(0<=ya(Rg,d)&&X(c,d))throw new O(13", - L",\"Cannot press a modifier key that is already pressed.\");var e=null!", - L"==d.code&&Wg(c,Se,d);if((e||w)&&(!Xg(d)||Wg(c,ye,d,!e))&&e&&(Yg(c,d),c", - L".g))if(d.a){if(!Zg){e=$g(c,d);var f=Ff(c.a,!0)[0]+1;ah(c.a)?(If(c.a,e)", - L",Af(c.a,f)):c.a.value+=e;x&&T(c.a,Je);vd||T(c.a,He);c.b=f}}else switch", - L"(d){case Vf:Zg||(x&&T(c.a,Je),Q(c.a,\"TEXTAREA\")&&(e=Ff(c.a,!0)[0]+Ug", - L".length,ah(c.a)?(If(c.a,Ug),Af(c.a,e)):c.a.value+=Ug,u||T(c.a,He),c.b=", - L"e));break;case Tf:case jg:Zg||(bh(c.a),\ne=Ff(c.a,!1),e[0]==e[1]&&(d==", - L"Tf?(Af(c.a,e[1]-1),Gf(c.a,e[1])):Gf(c.a,e[1]+1)),e=Ff(c.a,!1),e=!(e[0]", - L"==c.a.value.length||0==e[1]),If(c.a,\"\"),(!u&&e||w&&d==Tf)&&T(c.a,He)", - L",e=Ff(c.a,!1),c.b=e[1]);break;case eg:case gg:bh(c.a);e=c.a;var g=Ff(e", - L",!0)[0],h=Ff(e,!1)[1],k=f=0;d==eg?X(c,W)?c.b==g?(f=Math.max(g-1,0),k=h", - L",g=f):(f=g,g=k=h-1):g=g==h?Math.max(g-1,0):g:X(c,W)?c.b==h?(f=g,g=k=Ma", - L"th.min(h+1,e.value.length)):(f=g+1,k=h,g=f):g=g==h?Math.min(h+1,e.valu", - L"e.length):h;X(c,W)?(Af(e,f),Gf(e,k)):Hf(e,g);c.b=g;break;\ncase dg:cas", - L"e cg:bh(c.a),e=c.a,f=Ff(e,!0)[0],k=Ff(e,!1)[1],d==dg?(X(c,W)?(Af(e,0),", - L"Gf(e,c.b==f?k:f)):Hf(e,0),c.b=0):(X(c,W)?(c.b==f&&Af(e,k),Gf(e,e.value", - L".length)):Hf(e,e.value.length),c.b=e.value.length)}Qf(c,d,!0)}function", - L" Xg(c){if(c.a||c==Vf)return!0;if(x||Xa)return!1;if(u)return c==Zf;swit", - L"ch(c){case W:case Wf:case Xf:return!1;case kg:case lg:case mg:return w", - L";default:return!0}}\nfunction Yg(c,d){d==Vf&&!w&&Q(c.a,\"INPUT\")&&(c=", - L"Fb(c.a,xf,!0))&&(d=c.getElementsByTagName(\"input\"),(Ca(d,function(e)", - L"{return uf(e)})||1==d.length||x&&!ld(534))&&yf(c))}function ch(c,d){if", - L"(!X(c,d))throw new O(13,\"Cannot release a key that is not pressed. (", - L"\"+d.code+\")\");null===d.code||Wg(c,Te,d);Qf(c,d,!1)}function $g(c,d)", - L"{if(!d.a)throw new O(13,\"not a character key\");return X(c,W)?d.b:d.a", - L"}var Zg=w&&!ld(12);\nfunction bh(c){try{if(\"number\"==typeof c.select", - L"ionStart)return}catch(d){if(-1!=d.message.indexOf(\"does not support s", - L"election.\"))throw Error(d.message+\" (For more information, see https", - L"://code.google.com/p/chromium/issues/detail?id=330456)\");throw d;}thr", - L"ow Error(\"Element does not support selection\");}function ah(c){try{b", - L"h(c)}catch(d){return!1}return!0}\nfunction Wg(c,d,e,f){if(null===e.cod", - L"e)throw new O(13,\"Key must have a keycode to be fired.\");e={altKey:X", - L"(c,Xf),ctrlKey:X(c,Wf),metaKey:X(c,kg),shiftKey:X(c,W),keyCode:e.code,", - L"charCode:e.a&&d==ye?$g(c,e).charCodeAt(0):0,preventDefault:!!f};return", - L" T(c.a,d,e)}function dh(c,d){nf(c,d);c.g=Td(d);var e=tf(c);c.g&&e&&(Hf", - L"(d,d.value.length),c.b=d.value.length)};function eh(c,d,e){va(this,d,e", - L");this.g=this.b=null;this.c=new z(0,0);this.I=this.m=!1;if(c){\"number", - L"\"==typeof c.buttonPressed&&(this.b=c.buttonPressed);try{Q(c.elementPr", - L"essed)&&(this.g=c.elementPressed)}catch(f){this.b=null}this.c=new z(c.", - L"clientXY.x,c.clientXY.y);this.m=!!c.nextClickIsDoubleClick;this.I=!!c.", - L"hasEverInteracted;try{c.element&&Q(c.element)&&nf(this,c.element)}catc", - L"h(f){this.b=null}}}m(eh,mf);var Y={};\nvd?(Y[Ke]=[0,0,0,null],Y[Le]=[n", - L"ull,null,0,null],Y[Re]=[1,4,2,null],Y[Pe]=[0,0,0,0],Y[Oe]=[1,4,2,0]):x", - L"||ud?(Y[Ke]=[0,1,2,null],Y[Le]=[null,null,2,null],Y[Re]=[0,1,2,null],Y", - L"[Pe]=[0,1,2,0],Y[Oe]=[0,1,2,0]):(Y[Ke]=[0,1,2,null],Y[Le]=[null,null,2", - L",null],Y[Re]=[0,1,2,null],Y[Pe]=[0,0,0,0],Y[Oe]=[0,0,0,0]);wd&&(Y[Ye]=", - L"Y[Re],Y[bf]=Y[Re],Y[Ze]=[-1,-1,-1,-1],Y[af]=Y[Ze],Y[$e]=Y[Ze]);Y[Me]=Y", - L"[Ke];Y[Ne]=Y[Re];Y[Qe]=Y[Pe];var fh={};fh[Ne]=Ye;fh[Oe]=Ze;fh[Pe]=af;f", - L"h[Qe]=$e;fh[Re]=bf;\nfunction gh(c,d){if(null!==c.b)throw new O(13,\"C", - L"annot press more than one button or an already pressed button.\");c.b=", - L"d;c.g=c.a;d=w&&!md(4);if((x||d)&&(Q(c.a,\"OPTION\")||Q(c.a,\"SELECT\")", - L"))var e=!0;else{(d=w||u)&&(e=Nd(c.a));var f=hh(c,Ne,null,null,!1,void ", - L"0);e=f&&d&&e!=Nd(c.a)?!1:f}e&&(wd&&0==c.b&&Q(c.g,\"OPTION\")&&sf(c,We,", - L"c.c,0,!0),tf(c))}\nfunction ih(c,d){if(null===c.b)throw new O(13,\"Can", - L"not release a button when no button is pressed.\");if(c.f&&Od(c.a)){va", - L"r e=c.f,f=Dd(c.a);if(!f||e.multiple)c.a.selected=!f,(!x||!e.multiple||", - L"hd&&md(28)||gd&&md(4))&&T(e,Fe)}e=Od(c.a);hh(c,Re,null,null,d,void 0);", - L"try{if(0==c.b&&c.a==c.g){if(!xd||!Q(c.g,\"OPTION\")){var g=c.c,h=jh(c,", - L"Ke);if(e||Od(c.a)){f=d=null;if(!x)for(var k=c.a;k;k=k.parentNode)if(Q(", - L"k,\"A\")){d=k;break}else if(uf(k)){f=k;break}var l=!c.f&&Cd(c.a),n=l&&", - L"Dd(c.a);if(u&&f)f.click();else if(pf(c,\nKe,g,h,null,0,e,void 0))if(d&", - L"&vf(d)){g=d;var p=g.href,v=wb(B(g));u&&!ld(8)&&(p=wf(v.location,p));g.", - L"target?v.open(p,g.target):v.location.href=p}else!l||w||x||n&&\"radio\"", - L"==c.a.type.toLowerCase()||(c.a.checked=!n)}}c.m&&hh(c,Me);c.m=!c.m;wd&", - L"&0==c.b&&Q(c.g,\"OPTION\")&&sf(c,Xe,new z(0,0),0,!1)}else 2==c.b&&hh(c", - L",Le)}catch(E){}qf={};c.b=null;c.g=null}\nfunction kh(c,d,e){var f=Od(d", - L"),g=ae(d);c.c.x=e.x+g.left;c.c.y=e.y+g.top;e=c.a;if(d!=e){try{wb(B(e))", - L".closed&&(e=null)}catch(h){e=null}e&&(g=e===Vc.document.documentElemen", - L"t||e===Vc.document.body,e=!c.I&&g?null:e,hh(c,Pe,d));nf(c,d);u||hh(c,Q", - L"e,e,null,f)}hh(c,Oe,null,null,f);u&&d!=e&&hh(c,Qe,e,null,f);c.m=!1}fun", - L"ction hh(c,d,e,f,g,h){c.I=!0;if(wd){var k=fh[d];if(k&&!sf(c,k,c.c,jh(c", - L",k),!0,e,g))return!1}return pf(c,d,c.c,jh(c,d),e,f,g,null,h)}\nfunctio", - L"n jh(c,d){if(!(d in Y))return 0;c=Y[d][null===c.b?3:c.b];if(null===c)t", - L"hrow new O(13,\"Event does not permit the specified mouse button.\");r", - L"eturn c}function lh(c){return{buttonPressed:c.b,elementPressed:c.g,cli", - L"entXY:{x:c.c.x,y:c.c.y},nextClickIsDoubleClick:c.m,hasEverInteracted:c", - L".I,element:c.a}};function mh(c,d){this.x=c;this.y=d}m(mh,z);mh.prototy", - L"pe.scale=z.prototype.scale;mh.prototype.add=function(c){this.x+=c.x;th", - L"is.y+=c.y;return this};function nh(c,d,e,f){function g(l){ka(l)?q(l.sp", - L"lit(\"\"),function(n){if(1!=n.length)throw new O(13,\"Argument not a s", - L"ingle character: \"+n);var p=Rf[n];p||(p=n.toUpperCase(),p=V(p.charCod", - L"eAt(0),n.toLowerCase(),p),p={key:p,shift:n!=p.a});n=p;p=X(h,W);n.shift", - L"&&!p&&Vg(h,W);Vg(h,n.key);ch(h,n.key);n.shift&&!p&&ch(h,W)}):0<=ya(Rg,", - L"l)?X(h,l)?ch(h,l):Vg(h,l):(Vg(h,l),ch(h,l))}if(c!=Nd(c)){if(!Od(c))thr", - L"ow new O(12,\"Element is not currently interactable and may not be man", - L"ipulated\");oh(c)}var h=e||new Pf;dh(h,c);\nif((!id||Ya)&&x&&\"date\"=", - L"=c.type){e=\"array\"==la(d)?d=d.join(\"\"):d;var k=/\\d{4}-\\d{2}-\\d{", - L"2}/;if(e.match(k)){Ya&&id&&(T(c,Ve),T(c,Ue));T(c,Ge);c.value=e.match(k", - L")[0];T(c,Fe);T(c,Ee);return}}\"array\"==la(d)?q(d,g):g(d);f||q(Rg,func", - L"tion(l){X(h,l)&&ch(h,l)})}\nfunction ph(c){if(\"none\"!=(Gd(c,\"displa", - L"y\")||(c.currentStyle?c.currentStyle.display:null)||c.style&&c.style.d", - L"isplay))var d=Jd(c);else{d=c.style;var e=d.display,f=d.visibility,g=d.", - L"position;d.visibility=\"hidden\";d.position=\"absolute\";d.display=\"i", - L"nline\";var h=Jd(c);d.display=e;d.position=g;d.visibility=f;d=h}return", - L" 0=p){var v=Z[p];if(null===v)k.push(l=g()),h&&(l.persist=!1,k.", - L"push(l=g()));else if(ja(v))l.keys.push(v);else throw Error(\"Unsupport", - L"ed WebDriver key: \\\\u\"+p.charCodeAt(0).toString(16));}else switch(p", - L"){case \"\\n\":l.keys.push(Vf);break;case \"\\t\":l.keys.push(Uf);brea", - L"k;case \"\\b\":l.keys.push(Tf);break;default:l.keys.push(p)}})});q(k,f", - L"unction(n){nh(c,\nn.keys,e,n.persist)})}var Z={\"\\ue000\":null};Z[\"", - L"\\ue003\"]=Tf;Z[\"\\ue004\"]=Uf;Z[\"\\ue006\"]=Vf;Z[\"\\ue007\"]=Vf;Z[", - L"\"\\ue008\"]=W;Z[\"\\ue009\"]=Wf;Z[\"\\ue00a\"]=Xf;Z[\"\\ue00b\"]=Yf;Z", - L"[\"\\ue00c\"]=Zf;Z[\"\\ue00d\"]=$f;Z[\"\\ue00e\"]=ag;Z[\"\\ue00f\"]=bg", - L";Z[\"\\ue010\"]=cg;Z[\"\\ue011\"]=dg;Z[\"\\ue012\"]=eg;Z[\"\\ue013\"]=", - L"fg;Z[\"\\ue014\"]=gg;Z[\"\\ue015\"]=hg;Z[\"\\ue016\"]=ig;Z[\"\\ue017\"", - L"]=jg;Z[\"\\ue018\"]=Qg;Z[\"\\ue019\"]=Og;Z[\"\\ue01a\"]=ng;Z[\"\\ue01b", - L"\"]=og;Z[\"\\ue01c\"]=pg;Z[\"\\ue01d\"]=qg;Z[\"\\ue01e\"]=rg;Z[\"\\ue0", - L"1f\"]=sg;Z[\"\\ue020\"]=tg;Z[\"\\ue021\"]=ug;\nZ[\"\\ue022\"]=vg;Z[\"", - L"\\ue023\"]=wg;Z[\"\\ue024\"]=xg;Z[\"\\ue025\"]=yg;Z[\"\\ue027\"]=zg;Z[", - L"\"\\ue028\"]=Ag;Z[\"\\ue029\"]=Bg;Z[\"\\ue026\"]=Pg;Z[\"\\ue031\"]=Cg;", - L"Z[\"\\ue032\"]=Dg;Z[\"\\ue033\"]=Eg;Z[\"\\ue034\"]=Fg;Z[\"\\ue035\"]=G", - L"g;Z[\"\\ue036\"]=Hg;Z[\"\\ue037\"]=Ig;Z[\"\\ue038\"]=Jg;Z[\"\\ue039\"]", - L"=Kg;Z[\"\\ue03a\"]=Lg;Z[\"\\ue03b\"]=Mg;Z[\"\\ue03c\"]=Ng;Z[\"\\ue03d", - L"\"]=kg;ua(\"webdriver.atoms.inputs.click\",function(c,d){d=new eh(d);c", - L"||(c=lh(d).element);if(!c)throw Error(\"No element to send keys to\");", - L"if(!Pd(c,!0))throw new O(11,\"Element is not currently visible and may", - L" not be manipulated\");oh(c,void 0);var e=ph(c);e=new mh(e.width/2,e.h", - L"eight/2);var f=d||new eh;kh(f,c,e);gh(f,0);ih(f,void 0);return lh(d)})", - L";ua(\"webdriver.atoms.inputs.doubleClick\",function(c){c=new eh(c);gh(", - L"c,0);ih(c);gh(c,0);ih(c);return lh(c)});\nua(\"webdriver.atoms.inputs.", - L"rightClick\",function(c){c=new eh(c);gh(c,2);ih(c);return lh(c)});ua(", - L"\"webdriver.atoms.inputs.mouseButtonDown\",function(c){c=new eh(c);gh(", - L"c,0);return lh(c)});ua(\"webdriver.atoms.inputs.mouseButtonUp\",functi", - L"on(c){c=new eh(c);ih(c);return lh(c)});\nua(\"webdriver.atoms.inputs.m", - L"ouseMove\",function(c,d,e,f){f=new eh(f);var g=c||lh(f).element,h=null", - L"!=d&&null!=e;d=d||0;e=e||0;c?h||(e=ph(c),d=Math.floor(e.width/2),e=Mat", - L"h.floor(e.height/2)):(1==g.nodeType?(c=Id(g),c=new z(c.left,c.top)):(c", - L"=g.changedTouches?g.changedTouches[0]:g,c=new z(c.clientX,c.clientY)),", - L"d+=lh(f).clientXY.x-c.x,e+=lh(f).clientXY.y-c.y);oh(g,new z(d,e));kh(f", - L",g,new z(d,e));return lh(f)});\nua(\"webdriver.atoms.inputs.sendKeys\"", - L",function(c,d,e,f){e=new Pf(e);c||(c=Nd(document));if(!c)throw Error(", - L"\"No element to send keys to\");qh(c,d,e,f);return{pressed:e.c.c(),cur", - L"rentPos:e.b}});\n", + L"g,\" \");\"capitalize\"==f?c=c.replace(t?/(^|\\s|\\b)(\\S)/g:/(^|[^\\d", + L"\\p{L}\\p{S}])([\\p{Ll}|\\p{S}])/gu,function(g,h,k){return h+k.toUpper", + L"Case()}):\"uppercase\"==f?c=c.toUpperCase():\"lowercase\"==f&&(c=c.toL", + L"owerCase());e=d.pop()||\"\";Ja(e)&&0==c.lastIndexOf(\" \",\n0)&&(c=c.s", + L"ubstr(1));d.push(e+c)}function ee(c){if(vd){if(\"relative\"==S(c,\"pos", + L"ition\"))return 1;c=S(c,\"filter\");return(c=c.match(/^alpha\\(opacity", + L"=(\\d*)\\)/)||c.match(/^progid:DXImageTransform.Microsoft.Alpha\\(Opac", + L"ity=(\\d*)\\)/))?Number(c[1])/100:1}return oe(c)}function oe(c){var d=", + L"1,e=S(c,\"opacity\");e&&(d=Number(e));(c=Yd(c))&&(d*=oe(c));return d}", + L"\nfunction pe(c,d,e,f,g){if(3==c.nodeType&&e)ne(c,d,f,g);else if(Q(c))", + L"if(Q(c,\"CONTENT\")||Q(c,\"SLOT\")){for(var h=c;h.parentNode;)h=h.pare", + L"ntNode;h instanceof ShadowRoot?(c=Q(c,\"CONTENT\")?c.getDistributedNod", + L"es():c.assignedNodes(),q(c,function(k){pe(k,d,e,f,g)})):je(c,d)}else i", + L"f(Q(c,\"SHADOW\")){for(h=c;h.parentNode;)h=h.parentNode;if(h instanceo", + L"f ShadowRoot&&(c=h))for(c=c.olderShadowRoot;c;)q(c.childNodes,function", + L"(k){pe(k,d,e,f,g)}),c=c.olderShadowRoot}else je(c,d)}\nfunction je(c,d", + L"){c.shadowRoot&&q(c.shadowRoot.childNodes,function(e){pe(e,d,!0,null,n", + L"ull)});le(c,d,function(e,f,g,h,k){var l=null;1==e.nodeType?l=e:3==e.no", + L"deType&&(l=e);null!=l&&(null!=l.assignedSlot||l.getDestinationInsertio", + L"nPoints&&0=~*^$|%&@`{}\\-\\/\\[\\]\\(\\)", + L"])/g,\n\"\\\\$1\")}};var ff={},gf={};ff.R=function(c,d,e){try{var f=df", + L".o(\"a\",d)}catch(g){f=Gb(tb(d),\"A\",null,d)}return Ea(f,function(g){", + L"g=ie(g);g=g.replace(/^[\\s]+|[\\s]+$/g,\"\");return e&&-1!=g.indexOf(c", + L")||g==c})};ff.N=function(c,d,e){try{var f=df.o(\"a\",d)}catch(g){f=Gb(", + L"tb(d),\"A\",null,d)}return za(f,function(g){g=ie(g);g=g.replace(/^[\\s", + L"]+|[\\s]+$/g,\"\");return e&&-1!=g.indexOf(c)||g==c})};ff.v=function(c", + L",d){return ff.R(c,d,!1)};ff.o=function(c,d){return ff.N(c,d,!1)};gf.v=", + L"function(c,d){return ff.R(c,d,!0)};\ngf.o=function(c,d){return ff.N(c,", + L"d,!0)};var U={J:function(c,d){return function(e){var f=U.C(c);f=ae(f);", + L"e=ae(e);return d.call(null,f,e)}},V:function(c){return U.J(c,function(", + L"d,e){return e.top+e.height\");V(191,\"/\",\"?\");V(192,\"`", + L"\",\"~\");V(219,\"[\",\"{\");V(220,\"\\\\\",\"|\");V(221,\"]\",\"}\");", + L"var Qg=V({h:59,i:186},\";\",\":\");V(222,\"'\",'\"');var Rg=[Xf,Wf,kg,", + L"W],Sg=new Jf;Sg.set(1,W);Sg.set(2,Wf);Sg.set(4,Xf);Sg.set(8,kg);\nvar ", + L"Tg=function(c){var d=new Jf;q(Kf(c),function(e){d.set(c.get(e).code,e)", + L"});return d}(Sg);function Qf(c,d,e){if(0<=ya(Rg,d)){var f=Tg.get(d.cod", + L"e),g=c.B;g.a=e?g.a|f:g.a&~f}e?c.c.add(d):(c=c.c.a,d=Of(d),Mf(c.b,d)&&(", + L"delete c.b[d],c.f--,c.a.length>2*c.f&&Lf(c)))}var Ug=t?\"\\r\\n\":\"", + L"\\n\";function X(c,d){d=Of(d);return Mf(c.c.a.b,d)}\nfunction Vg(c,d){", + L"if(0<=ya(Rg,d)&&X(c,d))throw new O(13,\"Cannot press a modifier key th", + L"at is already pressed.\");var e=null!==d.code&&Wg(c,Se,d);if((e||w)&&(", + L"!Xg(d)||Wg(c,ye,d,!e))&&e&&(Yg(c,d),c.g))if(d.a){if(!Zg){e=$g(c,d);var", + L" f=Ff(c.a,!0)[0]+1;ah(c.a)?(If(c.a,e),Af(c.a,f)):c.a.value+=e;x&&T(c.a", + L",Je);vd||T(c.a,He);c.b=f}}else switch(d){case Vf:Zg||(x&&T(c.a,Je),Q(c", + L".a,\"TEXTAREA\")&&(e=Ff(c.a,!0)[0]+Ug.length,ah(c.a)?(If(c.a,Ug),Af(c.", + L"a,e)):c.a.value+=Ug,t||T(c.a,He),c.b=e));break;case Tf:case jg:Zg||(bh", + L"(c.a),\ne=Ff(c.a,!1),e[0]==e[1]&&(d==Tf?(Af(c.a,e[1]-1),Gf(c.a,e[1])):", + L"Gf(c.a,e[1]+1)),e=Ff(c.a,!1),e=!(e[0]==c.a.value.length||0==e[1]),If(c", + L".a,\"\"),(!t&&e||w&&d==Tf)&&T(c.a,He),e=Ff(c.a,!1),c.b=e[1]);break;cas", + L"e eg:case gg:bh(c.a);e=c.a;var g=Ff(e,!0)[0],h=Ff(e,!1)[1],k=f=0;d==eg", + L"?X(c,W)?c.b==g?(f=Math.max(g-1,0),k=h,g=f):(f=g,g=k=h-1):g=g==h?Math.m", + L"ax(g-1,0):g:X(c,W)?c.b==h?(f=g,g=k=Math.min(h+1,e.value.length)):(f=g+", + L"1,k=h,g=f):g=g==h?Math.min(h+1,e.value.length):h;X(c,W)?(Af(e,f),Gf(e,", + L"k)):Hf(e,g);c.b=g;break;\ncase dg:case cg:bh(c.a),e=c.a,f=Ff(e,!0)[0],", + L"k=Ff(e,!1)[1],d==dg?(X(c,W)?(Af(e,0),Gf(e,c.b==f?k:f)):Hf(e,0),c.b=0):", + L"(X(c,W)?(c.b==f&&Af(e,k),Gf(e,e.value.length)):Hf(e,e.value.length),c.", + L"b=e.value.length)}Qf(c,d,!0)}function Xg(c){if(c.a||c==Vf)return!0;if(", + L"x||Xa)return!1;if(t)return c==Zf;switch(c){case W:case Wf:case Xf:retu", + L"rn!1;case kg:case lg:case mg:return w;default:return!0}}\nfunction Yg(", + L"c,d){d==Vf&&!w&&Q(c.a,\"INPUT\")&&(c=Fb(c.a,xf,!0))&&(d=c.getElementsB", + L"yTagName(\"input\"),(Ca(d,function(e){return uf(e)})||1==d.length||x&&", + L"!ld(534))&&yf(c))}function ch(c,d){if(!X(c,d))throw new O(13,\"Cannot ", + L"release a key that is not pressed. (\"+d.code+\")\");null===d.code||Wg", + L"(c,Te,d);Qf(c,d,!1)}function $g(c,d){if(!d.a)throw new O(13,\"not a ch", + L"aracter key\");return X(c,W)?d.b:d.a}var Zg=w&&!ld(12);\nfunction bh(c", + L"){try{if(\"number\"==typeof c.selectionStart)return}catch(d){if(-1!=d.", + L"message.indexOf(\"does not support selection.\"))throw Error(d.message", + L"+\" (For more information, see https://code.google.com/p/chromium/issu", + L"es/detail?id=330456)\");throw d;}throw Error(\"Element does not suppor", + L"t selection\");}function ah(c){try{bh(c)}catch(d){return!1}return!0}\n", + L"function Wg(c,d,e,f){if(null===e.code)throw new O(13,\"Key must have a", + L" keycode to be fired.\");e={altKey:X(c,Xf),ctrlKey:X(c,Wf),metaKey:X(c", + L",kg),shiftKey:X(c,W),keyCode:e.code,charCode:e.a&&d==ye?$g(c,e).charCo", + L"deAt(0):0,preventDefault:!!f};return T(c.a,d,e)}function dh(c,d){nf(c,", + L"d);c.g=Td(d);var e=tf(c);c.g&&e&&(Hf(d,d.value.length),c.b=d.value.len", + L"gth)};function eh(c,d,e){va(this,d,e);this.g=this.b=null;this.c=new z(", + L"0,0);this.I=this.m=!1;if(c){\"number\"==typeof c.buttonPressed&&(this.", + L"b=c.buttonPressed);try{Q(c.elementPressed)&&(this.g=c.elementPressed)}", + L"catch(f){this.b=null}this.c=new z(c.clientXY.x,c.clientXY.y);this.m=!!", + L"c.nextClickIsDoubleClick;this.I=!!c.hasEverInteracted;try{c.element&&Q", + L"(c.element)&&nf(this,c.element)}catch(f){this.b=null}}}m(eh,mf);var Y=", + L"{};\nvd?(Y[Ke]=[0,0,0,null],Y[Le]=[null,null,0,null],Y[Re]=[1,4,2,null", + L"],Y[Pe]=[0,0,0,0],Y[Oe]=[1,4,2,0]):x||ud?(Y[Ke]=[0,1,2,null],Y[Le]=[nu", + L"ll,null,2,null],Y[Re]=[0,1,2,null],Y[Pe]=[0,1,2,0],Y[Oe]=[0,1,2,0]):(Y", + L"[Ke]=[0,1,2,null],Y[Le]=[null,null,2,null],Y[Re]=[0,1,2,null],Y[Pe]=[0", + L",0,0,0],Y[Oe]=[0,0,0,0]);wd&&(Y[Ye]=Y[Re],Y[bf]=Y[Re],Y[Ze]=[-1,-1,-1,", + L"-1],Y[af]=Y[Ze],Y[$e]=Y[Ze]);Y[Me]=Y[Ke];Y[Ne]=Y[Re];Y[Qe]=Y[Pe];var f", + L"h={};fh[Ne]=Ye;fh[Oe]=Ze;fh[Pe]=af;fh[Qe]=$e;fh[Re]=bf;\nfunction gh(c", + L",d){if(null!==c.b)throw new O(13,\"Cannot press more than one button o", + L"r an already pressed button.\");c.b=d;c.g=c.a;d=w&&!md(4);if((x||d)&&(", + L"Q(c.a,\"OPTION\")||Q(c.a,\"SELECT\")))var e=!0;else{(d=w||t)&&(e=Nd(c.", + L"a));var f=hh(c,Ne,null,null,!1,void 0);e=f&&d&&e!=Nd(c.a)?!1:f}e&&(wd&", + L"&0==c.b&&Q(c.g,\"OPTION\")&&sf(c,We,c.c,0,!0),tf(c))}\nfunction ih(c,d", + L"){if(null===c.b)throw new O(13,\"Cannot release a button when no butto", + L"n is pressed.\");if(c.f&&Od(c.a)){var e=c.f,f=Dd(c.a);if(!f||e.multipl", + L"e)c.a.selected=!f,(!x||!e.multiple||hd&&md(28)||gd&&md(4))&&T(e,Fe)}e=", + L"Od(c.a);hh(c,Re,null,null,d,void 0);try{if(0==c.b&&c.a==c.g){if(!xd||!", + L"Q(c.g,\"OPTION\")){var g=c.c,h=jh(c,Ke);if(e||Od(c.a)){f=d=null;if(!x)", + L"for(var k=c.a;k;k=k.parentNode)if(Q(k,\"A\")){d=k;break}else if(uf(k))", + L"{f=k;break}var l=!c.f&&Cd(c.a),n=l&&Dd(c.a);if(t&&f)f.click();else if(", + L"pf(c,\nKe,g,h,null,0,e,void 0))if(d&&vf(d)){g=d;var p=g.href,v=wb(B(g)", + L");t&&!ld(8)&&(p=wf(v.location,p));g.target?v.open(p,g.target):v.locati", + L"on.href=p}else!l||w||x||n&&\"radio\"==c.a.type.toLowerCase()||(c.a.che", + L"cked=!n)}}c.m&&hh(c,Me);c.m=!c.m;wd&&0==c.b&&Q(c.g,\"OPTION\")&&sf(c,X", + L"e,new z(0,0),0,!1)}else 2==c.b&&hh(c,Le)}catch(E){}qf={};c.b=null;c.g=", + L"null}\nfunction kh(c,d,e){var f=Od(d),g=ae(d);c.c.x=e.x+g.left;c.c.y=e", + L".y+g.top;e=c.a;if(d!=e){try{wb(B(e)).closed&&(e=null)}catch(h){e=null}", + L"e&&(g=e===Vc.document.documentElement||e===Vc.document.body,e=!c.I&&g?", + L"null:e,hh(c,Pe,d));nf(c,d);t||hh(c,Qe,e,null,f)}hh(c,Oe,null,null,f);t", + L"&&d!=e&&hh(c,Qe,e,null,f);c.m=!1}function hh(c,d,e,f,g,h){c.I=!0;if(wd", + L"){var k=fh[d];if(k&&!sf(c,k,c.c,jh(c,k),!0,e,g))return!1}return pf(c,d", + L",c.c,jh(c,d),e,f,g,null,h)}\nfunction jh(c,d){if(!(d in Y))return 0;c=", + L"Y[d][null===c.b?3:c.b];if(null===c)throw new O(13,\"Event does not per", + L"mit the specified mouse button.\");return c}function lh(c){return{butt", + L"onPressed:c.b,elementPressed:c.g,clientXY:{x:c.c.x,y:c.c.y},nextClickI", + L"sDoubleClick:c.m,hasEverInteracted:c.I,element:c.a}};function mh(c,d){", + L"this.x=c;this.y=d}m(mh,z);mh.prototype.scale=z.prototype.scale;mh.prot", + L"otype.add=function(c){this.x+=c.x;this.y+=c.y;return this};function nh", + L"(c,d,e,f){function g(l){ka(l)?q(l.split(\"\"),function(n){if(1!=n.leng", + L"th)throw new O(13,\"Argument not a single character: \"+n);var p=Rf[n]", + L";p||(p=n.toUpperCase(),p=V(p.charCodeAt(0),n.toLowerCase(),p),p={key:p", + L",shift:n!=p.a});n=p;p=X(h,W);n.shift&&!p&&Vg(h,W);Vg(h,n.key);ch(h,n.k", + L"ey);n.shift&&!p&&ch(h,W)}):0<=ya(Rg,l)?X(h,l)?ch(h,l):Vg(h,l):(Vg(h,l)", + L",ch(h,l))}if(c!=Nd(c)){if(!Od(c))throw new O(12,\"Element is not curre", + L"ntly interactable and may not be manipulated\");oh(c)}var h=e||new Pf;", + L"dh(h,c);\nif((!id||Ya)&&x&&\"date\"==c.type){e=\"array\"==la(d)?d=d.jo", + L"in(\"\"):d;var k=/\\d{4}-\\d{2}-\\d{2}/;if(e.match(k)){Ya&&id&&(T(c,Ve", + L"),T(c,Ue));T(c,Ge);c.value=e.match(k)[0];T(c,Fe);T(c,Ee);return}}\"arr", + L"ay\"==la(d)?q(d,g):g(d);f||q(Rg,function(l){X(h,l)&&ch(h,l)})}\nfuncti", + L"on ph(c){if(\"none\"!=(Gd(c,\"display\")||(c.currentStyle?c.currentSty", + L"le.display:null)||c.style&&c.style.display))var d=Jd(c);else{d=c.style", + L";var e=d.display,f=d.visibility,g=d.position;d.visibility=\"hidden\";d", + L".position=\"absolute\";d.display=\"inline\";var h=Jd(c);d.display=e;d.", + L"position=g;d.visibility=f;d=h}return 0=p){var v=Z[p];if(null=", + L"==v)k.push(l=g()),h&&(l.persist=!1,k.push(l=g()));else if(ja(v))l.keys", + L".push(v);else throw Error(\"Unsupported WebDriver key: \\\\u\"+p.charC", + L"odeAt(0).toString(16));}else switch(p){case \"\\n\":l.keys.push(Vf);br", + L"eak;case \"\\t\":l.keys.push(Uf);break;case \"\\b\":l.keys.push(Tf);br", + L"eak;default:l.keys.push(p)}})});q(k,function(n){nh(c,\nn.keys,e,n.pers", + L"ist)})}var Z={\"\\ue000\":null};Z[\"\\ue003\"]=Tf;Z[\"\\ue004\"]=Uf;Z[", + L"\"\\ue006\"]=Vf;Z[\"\\ue007\"]=Vf;Z[\"\\ue008\"]=W;Z[\"\\ue009\"]=Wf;Z", + L"[\"\\ue00a\"]=Xf;Z[\"\\ue00b\"]=Yf;Z[\"\\ue00c\"]=Zf;Z[\"\\ue00d\"]=$f", + L";Z[\"\\ue00e\"]=ag;Z[\"\\ue00f\"]=bg;Z[\"\\ue010\"]=cg;Z[\"\\ue011\"]=", + L"dg;Z[\"\\ue012\"]=eg;Z[\"\\ue013\"]=fg;Z[\"\\ue014\"]=gg;Z[\"\\ue015\"", + L"]=hg;Z[\"\\ue016\"]=ig;Z[\"\\ue017\"]=jg;Z[\"\\ue018\"]=Qg;Z[\"\\ue019", + L"\"]=Og;Z[\"\\ue01a\"]=ng;Z[\"\\ue01b\"]=og;Z[\"\\ue01c\"]=pg;Z[\"\\ue0", + L"1d\"]=qg;Z[\"\\ue01e\"]=rg;Z[\"\\ue01f\"]=sg;Z[\"\\ue020\"]=tg;Z[\"\\u", + L"e021\"]=ug;\nZ[\"\\ue022\"]=vg;Z[\"\\ue023\"]=wg;Z[\"\\ue024\"]=xg;Z[", + L"\"\\ue025\"]=yg;Z[\"\\ue027\"]=zg;Z[\"\\ue028\"]=Ag;Z[\"\\ue029\"]=Bg;", + L"Z[\"\\ue026\"]=Pg;Z[\"\\ue031\"]=Cg;Z[\"\\ue032\"]=Dg;Z[\"\\ue033\"]=E", + L"g;Z[\"\\ue034\"]=Fg;Z[\"\\ue035\"]=Gg;Z[\"\\ue036\"]=Hg;Z[\"\\ue037\"]", + L"=Ig;Z[\"\\ue038\"]=Jg;Z[\"\\ue039\"]=Kg;Z[\"\\ue03a\"]=Lg;Z[\"\\ue03b", + L"\"]=Mg;Z[\"\\ue03c\"]=Ng;Z[\"\\ue03d\"]=kg;ua(\"webdriver.atoms.inputs", + L".click\",function(c,d){d=new eh(d);c||(c=lh(d).element);if(!c)throw Er", + L"ror(\"No element to send keys to\");if(!Pd(c,!0))throw new O(11,\"Elem", + L"ent is not currently visible and may not be manipulated\");oh(c,void 0", + L");var e=ph(c);e=new mh(e.width/2,e.height/2);var f=d||new eh;kh(f,c,e)", + L";gh(f,0);ih(f,void 0);return lh(d)});ua(\"webdriver.atoms.inputs.doubl", + L"eClick\",function(c){c=new eh(c);gh(c,0);ih(c);gh(c,0);ih(c);return lh", + L"(c)});\nua(\"webdriver.atoms.inputs.rightClick\",function(c){c=new eh(", + L"c);gh(c,2);ih(c);return lh(c)});ua(\"webdriver.atoms.inputs.mouseButto", + L"nDown\",function(c){c=new eh(c);gh(c,0);return lh(c)});ua(\"webdriver.", + L"atoms.inputs.mouseButtonUp\",function(c){c=new eh(c);ih(c);return lh(c", + L")});\nua(\"webdriver.atoms.inputs.mouseMove\",function(c,d,e,f){f=new ", + L"eh(f);var g=c||lh(f).element,h=null!=d&&null!=e;d=d||0;e=e||0;c?h||(e=", + L"ph(c),d=Math.floor(e.width/2),e=Math.floor(e.height/2)):(1==g.nodeType", + L"?(c=Id(g),c=new z(c.left,c.top)):(c=g.changedTouches?g.changedTouches[", + L"0]:g,c=new z(c.clientX,c.clientY)),d+=lh(f).clientXY.x-c.x,e+=lh(f).cl", + L"ientXY.y-c.y);oh(g,new z(d,e));kh(f,g,new z(d,e));return lh(f)});\nua(", + L"\"webdriver.atoms.inputs.sendKeys\",function(c,d,e,f){e=new Pf(e);c||(", + L"c=Nd(document));if(!c)throw Error(\"No element to send keys to\");qh(c", + L",d,e,f);return{pressed:e.c.c(),currentPos:e.b}});\n", NULL }; @@ -11924,227 +11924,227 @@ const wchar_t* const SUBMIT[] = { L".replace(/(\\r\\n|\\r|\\n)/g,\"\\n\");if(\"normal\"==c||\"nowrap\"==c)", L"a=a.replace(/\\n/g,\" \");a=\"pre\"==c||\"pre-wrap\"==c?a.replace(/[ ", L"\\f\\t\\v\\u2028\\u2029]/g,\"\\u00a0\"):a.replace(/[ \\f\\t\\v\\u2028", - L"\\u2029]+/g,\" \");\"capitalize\"==d?a=a.replace(/(^|[^\\d\\p{L}\\p{S}", - L"])([\\p{Ll}|\\p{S}])/gu,function(e,f,g){return f+g.toUpperCase()}):\"u", - L"ppercase\"==d?a=a.toUpperCase():\"lowercase\"==d&&(a=a.toLowerCase());", - L"c=b.pop()||\"\";za(c)&&0==a.lastIndexOf(\" \",0)&&(a=a.substr(1));\nb.", - L"push(c+a)}function Uc(a){if(Ic){if(\"relative\"==T(a,\"position\"))ret", - L"urn 1;a=T(a,\"filter\");return(a=a.match(/^alpha\\(opacity=(\\d*)\\)/)", - L"||a.match(/^progid:DXImageTransform.Microsoft.Alpha\\(Opacity=(\\d*)", - L"\\)/))?Number(a[1])/100:1}return ed(a)}function ed(a){var b=1,c=T(a,\"", - L"opacity\");c&&(b=Number(c));(a=Pc(a))&&(b*=ed(a));return b}\nfunction ", - L"fd(a,b,c,d,e){if(3==a.nodeType&&c)dd(a,b,d,e);else if(Q(a))if(Q(a,\"CO", - L"NTENT\")||Q(a,\"SLOT\")){for(var f=a;f.parentNode;)f=f.parentNode;f in", - L"stanceof ShadowRoot?(a=Q(a,\"CONTENT\")?a.getDistributedNodes():a.assi", - L"gnedNodes(),n(a,function(g){fd(g,b,c,d,e)})):$c(a,b)}else if(Q(a,\"SHA", - L"DOW\")){for(f=a;f.parentNode;)f=f.parentNode;if(f instanceof ShadowRoo", - L"t&&(a=f))for(a=a.olderShadowRoot;a;)n(a.childNodes,function(g){fd(g,b,", - L"c,d,e)}),a=a.olderShadowRoot}else $c(a,b)}\nfunction $c(a,b){a.shadowR", - L"oot&&n(a.shadowRoot.childNodes,function(c){fd(c,b,!0,null,null)});bd(a", - L",b,function(c,d,e,f,g){var k=null;1==c.nodeType?k=c:3==c.nodeType&&(k=", - L"c);null!=k&&(null!=k.assignedSlot||k.getDestinationInsertionPoints&&0<", - L"k.getDestinationInsertionPoints().length)||fd(c,d,e,f,g)})};var gd=!!(", - L"0<=Ba(p,10)),hd=zc.navigator.msPointerEnabled;function id(a,b,c){this.", - L"a=a;this.b=b;this.f=c}id.prototype.create=function(a){a=y(a).createEve", - L"nt(\"HTMLEvents\");a.initEvent(this.a,this.b,this.f);return a};id.prot", - L"otype.toString=function(){return this.a};function W(a,b,c){la(this,a,b", - L",c)}h(W,id);\nW.prototype.create=function(a,b){if(this==jd)throw new O", - L"(9,\"Browser does not support a mouse pixel scroll event.\");var c=y(a", - L"),d=c?db(c):window;var e=c.createEvent(\"MouseEvents\");this==kd&&(e.w", - L"heelDelta=b.wheelDelta);e.initMouseEvent(this.a,this.b,this.f,d,1,b.cl", - L"ientX,b.clientY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.me", - L"taKey,b.button,b.relatedTarget);if(0===e.pageX&&0===e.pageY&&Object.de", - L"fineProperty){a=cb(w(a).a);c=Nc(c);var f=b.clientX+a.scrollLeft-c.clie", - L"ntLeft,g=b.clientY+a.scrollTop-\nc.clientTop;Object.defineProperty(e,", - L"\"pageX\",{get:function(){return f}});Object.defineProperty(e,\"pageY", - L"\",{get:function(){return g}})}return e};function ld(a,b,c){la(this,a,", - L"b,c)}h(ld,id);ld.prototype.create=function(a,b){a=y(a).createEvent(\"E", - L"vents\");a.initEvent(this.a,this.b,this.f);a.altKey=b.altKey;a.ctrlKey", - L"=b.ctrlKey;a.metaKey=b.metaKey;a.shiftKey=b.shiftKey;a.keyCode=b.charC", - L"ode||b.keyCode;return a};function md(a,b,c){la(this,a,b,c)}h(md,id);\n", - L"md.prototype.create=function(a,b){function c(B){B=qa(B,function(r){ret", - L"urn g.createTouch(k,a,r.identifier,r.pageX,r.pageY,r.screenX,r.screenY", - L")});return g.createTouchList.apply(g,B)}function d(B){var r=qa(B,funct", - L"ion(l){return{identifier:l.identifier,screenX:l.screenX,screenY:l.scre", - L"enY,clientX:l.clientX,clientY:l.clientY,pageX:l.pageX,pageY:l.pageY,ta", - L"rget:a}});r.item=function(l){return r[l]};return r}function e(B){retur", - L"n qa(B,function(r){return new Touch({identifier:r.identifier,screenX:r", - L".screenX,screenY:r.screenY,\nclientX:r.clientX,clientY:r.clientY,pageX", - L":r.pageX,pageY:r.pageY,target:a})})}function f(B,r){switch(B){case 1:r", - L"eturn d(r);case 2:return c(r);case 3:return e(r)}return null}if(!gd)th", - L"row new O(9,\"Browser does not support firing touch events.\");var g=y", - L"(a),k=g?db(g):window,m=f(1,b.changedTouches),u=b.touches==b.changedTou", - L"ches?m:f(1,b.touches),q=b.targetTouches==b.changedTouches?m:f(1,b.targ", - L"etTouches);var x=g.createEvent(\"MouseEvents\");x.initMouseEvent(this.", - L"a,this.b,this.f,k,1,0,0,b.clientX,b.clientY,\nb.ctrlKey,b.altKey,b.shi", - L"ftKey,b.metaKey,0,b.relatedTarget);x.touches=u;x.targetTouches=q;x.cha", - L"ngedTouches=m;x.scale=b.scale;x.rotation=b.rotation;return x};function", - L" nd(a,b,c){la(this,a,b,c)}h(nd,id);\nnd.prototype.create=function(a,b)", - L"{if(!hd)throw new O(9,\"Browser does not support MSGesture events.\");", - L"var c=y(a);a=c?db(c):window;c=c.createEvent(\"MSGestureEvent\");c.init", - L"GestureEvent(this.a,this.b,this.f,a,1,0,0,b.clientX,b.clientY,0,0,b.tr", - L"anslationX,b.translationY,b.scale,b.expansion,b.rotation,b.velocityX,b", - L".velocityY,b.velocityExpansion,b.velocityAngular,(new Date).getTime(),", - L"b.relatedTarget);return c};function X(a,b,c){la(this,a,b,c)}h(X,id);\n", - L"X.prototype.create=function(a,b){if(!hd)throw new O(9,\"Browser does n", - L"ot support MSPointer events.\");var c=y(a);a=c?db(c):window;c=c.create", - L"Event(\"MSPointerEvent\");c.initPointerEvent(this.a,this.b,this.f,a,0,", - L"0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.butt", - L"on,b.relatedTarget,0,0,b.width,b.height,b.pressure,b.rotation,b.tiltX,", - L"b.tiltY,b.pointerId,b.pointerType,0,b.isPrimary);return c};var od=new ", - L"id(\"submit\",!0,!0);new W(\"click\",!0,!0);new W(\"contextmenu\",!0,!", - L"0);\nnew W(\"dblclick\",!0,!0);new W(\"mousedown\",!0,!0);new W(\"mous", - L"emove\",!0,!1);new W(\"mouseout\",!0,!0);new W(\"mouseover\",!0,!0);ne", - L"w W(\"mouseup\",!0,!0);var kd=new W(\"mousewheel\",!0,!0),jd=new W(\"M", - L"ozMousePixelScroll\",!0,!0);new ld(\"keydown\",!0,!0);new ld(\"keypres", - L"s\",!0,!0);new ld(\"keyup\",!0,!0);new md(\"touchend\",!0,!0);new md(", - L"\"touchmove\",!0,!0);new md(\"touchstart\",!0,!0);new nd(\"MSGestureCh", - L"ange\",!0,!0);new nd(\"MSGestureEnd\",!0,!0);new nd(\"MSGestureHold\",", - L"!0,!0);new nd(\"MSGestureStart\",!0,!0);\nnew nd(\"MSGestureTap\",!0,!", - L"0);new nd(\"MSInertiaStart\",!0,!0);new X(\"MSGotPointerCapture\",!0,!", - L"1);new X(\"MSLostPointerCapture\",!0,!1);new X(\"MSPointerCancel\",!0,", - L"!0);new X(\"MSPointerDown\",!0,!0);new X(\"MSPointerMove\",!0,!0);new ", - L"X(\"MSPointerOver\",!0,!0);new X(\"MSPointerOut\",!0,!0);new X(\"MSPoi", - L"nterUp\",!0,!0);function pd(a){var b=od.create(a,void 0);\"isTrusted\"", - L"in b||(b.isTrusted=!1);return a.dispatchEvent(b)};var qd={F:function(a", - L"){return!(!a.querySelectorAll||!a.querySelector)},u:function(a,b){if(!", - L"a)throw new O(32,\"No class name specified\");a=Aa(a);if(-1!==a.indexO", - L"f(\" \"))throw new O(32,\"Compound class names not permitted\");if(qd.", - L"F(b))try{return b.querySelector(\".\"+a.replace(/\\./g,\"\\\\.\"))||nu", - L"ll}catch(c){throw new O(32,\"An invalid or illegal class name was spec", - L"ified\");}a=kb(w(b),\"*\",a,b);return a.length?a[0]:null},m:function(a", - L",b){if(!a)throw new O(32,\"No class name specified\");a=Aa(a);if(-1!==", - L"a.indexOf(\" \"))throw new O(32,\n\"Compound class names not permitted", - L"\");if(qd.F(b))try{return b.querySelectorAll(\".\"+a.replace(/\\./g,\"", - L"\\\\.\"))}catch(c){throw new O(32,\"An invalid or illegal class name w", - L"as specified\");}return kb(w(b),\"*\",a,b)}};var rd={u:function(a,b){i", - L"f(!ea(b.querySelector)&&0<=Ba(p,8)&&!fa(b.querySelector))throw Error(", - L"\"CSS selection is not supported\");if(!a)throw new O(32,\"No selector", - L" specified\");a=Aa(a);try{var c=b.querySelector(a)}catch(d){throw new ", - L"O(32,\"An invalid or illegal selector was specified\");}return c&&1==c", - L".nodeType?c:null},m:function(a,b){if(!ea(b.querySelectorAll)&&0<=Ba(p,", - L"8)&&!fa(b.querySelector))throw Error(\"CSS selection is not supported", - L"\");if(!a)throw new O(32,\"No selector specified\");a=Aa(a);try{return", - L" b.querySelectorAll(a)}catch(c){throw new O(32,\n\"An invalid or illeg", - L"al selector was specified\");}}};var sd={F:function(a,b){return!(!a.qu", - L"erySelectorAll||!a.querySelector)&&!/^\\d.*/.test(b)},u:function(a,b){", - L"var c=w(b),d=\"string\"===typeof a?c.a.getElementById(a):a;return d?Jc", - L"(d,\"id\")==a&&b!=d&&fb(b,d)?d:ua(kb(c,\"*\"),function(e){return Jc(e,", - L"\"id\")==a&&b!=e&&fb(b,e)}):null},m:function(a,b){if(!a)return[];if(sd", - L".F(b,a))try{return b.querySelectorAll(\"#\"+sd.W(a))}catch(c){return[]", - L"}b=kb(w(b),\"*\",null,b);return pa(b,function(c){return Jc(c,\"id\")==", - L"a})},W:function(a){return a.replace(/([\\s'\"\\\\#.:;,!?+<>=~*^$|%&@`{", - L"}\\-\\/\\[\\]\\(\\)])/g,\n\"\\\\$1\")}};var td={},ud={};td.P=function(", - L"a,b,c){try{var d=rd.m(\"a\",b)}catch(e){d=kb(w(b),\"A\",null,b)}return", - L" ua(d,function(e){e=Zc(e);e=e.replace(/^[\\s]+|[\\s]+$/g,\"\");return ", - L"c&&-1!=e.indexOf(a)||e==a})};td.M=function(a,b,c){try{var d=rd.m(\"a\"", - L",b)}catch(e){d=kb(w(b),\"A\",null,b)}return pa(d,function(e){e=Zc(e);e", - L"=e.replace(/^[\\s]+|[\\s]+$/g,\"\");return c&&-1!=e.indexOf(a)||e==a})", - L"};td.u=function(a,b){return td.P(a,b,!1)};td.m=function(a,b){return td", - L".M(a,b,!1)};ud.u=function(a,b){return td.P(a,b,!0)};\nud.m=function(a,", - L"b){return td.M(a,b,!0)};var Y={H:function(a,b){return function(c){var ", - L"d=Y.A(a);d=U(d);c=U(c);return b.call(null,d,c)}},U:function(a){return ", - L"Y.H(a,function(b,c){return c.b+c.height\");Z(191,\"/\",\"?\");Z(192,\"`\",\"~\");Z(219,\"[\"", - L",\"{\");\nZ(220,\"\\\\\",\"|\");Z(221,\"]\",\"}\");Z({h:59,g:186},\";", - L"\",\":\");Z(222,\"'\",'\"');var Ld=new Dd;Ld.set(1,Hd);Ld.set(2,Id);Ld", - L".set(4,Jd);Ld.set(8,Kd);(function(a){var b=new Dd;n(Ed(a),function(c){", - L"b.set(a.get(c).code,c)});return b})(Ld);function Md(){la(this)}h(Md,zd", - L");Md.a=void 0;Md.b=function(){return Md.a?Md.a:Md.a=new Md};ca(\"_\",f", - L"unction(a){var b=jb(a,Bd,!0);if(!b)throw new O(7,\"Element was not in ", - L"a form, so could not submit.\");var c=Md.b();Ad(c,a);Cd(b)});; return ", - L"this._.apply(null,arguments);}).apply({navigator:typeof window!='undef", - L"ined'?window.navigator:null,document:typeof window!='undefined'?window", - L".document:null}, arguments);}\n", + L"\\u2029]+/g,\" \");\"capitalize\"==d?a=a.replace(/(^|\\s|\\b)(\\S)/g,f", + L"unction(e,f,g){return f+g.toUpperCase()}):\"uppercase\"==d?a=a.toUpper", + L"Case():\"lowercase\"==d&&(a=a.toLowerCase());c=b.pop()||\"\";za(c)&&0=", + L"=a.lastIndexOf(\" \",0)&&(a=a.substr(1));b.push(c+a)}\nfunction Uc(a){", + L"if(Ic){if(\"relative\"==T(a,\"position\"))return 1;a=T(a,\"filter\");r", + L"eturn(a=a.match(/^alpha\\(opacity=(\\d*)\\)/)||a.match(/^progid:DXImag", + L"eTransform.Microsoft.Alpha\\(Opacity=(\\d*)\\)/))?Number(a[1])/100:1}r", + L"eturn ed(a)}function ed(a){var b=1,c=T(a,\"opacity\");c&&(b=Number(c))", + L";(a=Pc(a))&&(b*=ed(a));return b}\nfunction fd(a,b,c,d,e){if(3==a.nodeT", + L"ype&&c)dd(a,b,d,e);else if(Q(a))if(Q(a,\"CONTENT\")||Q(a,\"SLOT\")){fo", + L"r(var f=a;f.parentNode;)f=f.parentNode;f instanceof ShadowRoot?(a=Q(a,", + L"\"CONTENT\")?a.getDistributedNodes():a.assignedNodes(),n(a,function(g)", + L"{fd(g,b,c,d,e)})):$c(a,b)}else if(Q(a,\"SHADOW\")){for(f=a;f.parentNod", + L"e;)f=f.parentNode;if(f instanceof ShadowRoot&&(a=f))for(a=a.olderShado", + L"wRoot;a;)n(a.childNodes,function(g){fd(g,b,c,d,e)}),a=a.olderShadowRoo", + L"t}else $c(a,b)}\nfunction $c(a,b){a.shadowRoot&&n(a.shadowRoot.childNo", + L"des,function(c){fd(c,b,!0,null,null)});bd(a,b,function(c,d,e,f,g){var ", + L"k=null;1==c.nodeType?k=c:3==c.nodeType&&(k=c);null!=k&&(null!=k.assign", + L"edSlot||k.getDestinationInsertionPoints&&0=~*^$|%&@`{}\\-\\/\\[\\]\\(\\)])/g,\n\"", + L"\\\\$1\")}};var td={},ud={};td.P=function(a,b,c){try{var d=rd.m(\"a\",", + L"b)}catch(e){d=kb(w(b),\"A\",null,b)}return ua(d,function(e){e=Zc(e);e=", + L"e.replace(/^[\\s]+|[\\s]+$/g,\"\");return c&&-1!=e.indexOf(a)||e==a})}", + L";td.M=function(a,b,c){try{var d=rd.m(\"a\",b)}catch(e){d=kb(w(b),\"A\"", + L",null,b)}return pa(d,function(e){e=Zc(e);e=e.replace(/^[\\s]+|[\\s]+$/", + L"g,\"\");return c&&-1!=e.indexOf(a)||e==a})};td.u=function(a,b){return ", + L"td.P(a,b,!1)};td.m=function(a,b){return td.M(a,b,!1)};ud.u=function(a,", + L"b){return td.P(a,b,!0)};\nud.m=function(a,b){return td.M(a,b,!0)};var ", + L"Y={H:function(a,b){return function(c){var d=Y.A(a);d=U(d);c=U(c);retur", + L"n b.call(null,d,c)}},U:function(a){return Y.H(a,function(b,c){return c", + L".b+c.height\");Z(1", + L"91,\"/\",\"?\");Z(192,\"`\",\"~\");Z(219,\"[\",\"{\");\nZ(220,\"\\\\\"", + L",\"|\");Z(221,\"]\",\"}\");Z({h:59,g:186},\";\",\":\");Z(222,\"'\",'\"", + L"');var Ld=new Dd;Ld.set(1,Hd);Ld.set(2,Id);Ld.set(4,Jd);Ld.set(8,Kd);(", + L"function(a){var b=new Dd;n(Ed(a),function(c){b.set(a.get(c).code,c)});", + L"return b})(Ld);function Md(){la(this)}h(Md,zd);Md.a=void 0;Md.b=functi", + L"on(){return Md.a?Md.a:Md.a=new Md};ca(\"_\",function(a){var b=jb(a,Bd,", + L"!0);if(!b)throw new O(7,\"Element was not in a form, so could not subm", + L"it.\");var c=Md.b();Ad(c,a);Cd(b)});; return this._.apply(null,argumen", + L"ts);}).apply({navigator:typeof window!='undefined'?window.navigator:nu", + L"ll,document:typeof window!='undefined'?window.document:null}, argument", + L"s);}\n", NULL }; diff --git a/javascript/atoms/dom.js b/javascript/atoms/dom.js index 02f4696815cb9..d4a9aae97849e 100644 --- a/javascript/atoms/dom.js +++ b/javascript/atoms/dom.js @@ -1175,7 +1175,9 @@ bot.dom.appendVisibleTextLinesFromTextNode_ = function(textNode, lines, } if (textTransform == 'capitalize') { - text = text.replace(/(^|[^\d\p{L}\p{S}])([\p{Ll}|\p{S}])/gu, function() { + // the unicode regex ending with /gu does not work in IE + var re = goog.userAgent.IE ? /(^|\s|\b)(\S)/g : /(^|[^\d\p{L}\p{S}])([\p{Ll}|\p{S}])/gu; + text = text.replace(re, function() { return arguments[1] + arguments[2].toUpperCase(); }); } else if (textTransform == 'uppercase') {