// CAS: "1.0.0"
// This software uses the following Open Source software:
// - a simplified (and thus modified) version of stringencoding
//	* Licensed under Apache License 2.0 (can be found here: http://www.apache.org/licenses/)
//	* Source: http://code.google.com/p/stringencoding/
// - requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
//	* MIT license
//	* Source: https://gist.github.com/paulirish/1579671
var l,aa,ba;
(function(){function a(x){var y=0;this.get=function(){return y>=x.length?-1:Number(x[y])};this.offset=function(z){y+=z;if(0>y)throw Error("Seeking past start of the buffer");if(y>x.length)throw Error("Seeking past EOF");}}function b(x){var y=0;this.get=function(){return y>=x.length?-1:x[y]};this.offset=function(z){y+=z;if(0>y)throw Error("Seeking past start of the buffer");if(y>x.length)throw Error("Seeking past EOF");}}function c(x){var y=0;this.h=function(z){var D=-1,M;for(M=0;M<arguments.length;++M)D=Number(arguments[M]),
x[y++]=D;return D}}function d(x){var y=0,z=function(){for(var D=[],M=0,ua=x.length;M<x.length;){var ca=x.charCodeAt(M);if(55296<=ca&&57343>=ca)if(56320<=ca&&57343>=ca)D.push(65533);else if(M===ua-1)D.push(65533);else{var S=x.charCodeAt(M+1);56320<=S&&57343>=S?(ca&=1023,S&=1023,M+=1,D.push(65536+(ca<<10)+S)):D.push(65533)}else D.push(ca);M+=1}return D}();this.offset=function(D){y+=D;if(0>y)throw Error("Seeking past start of the buffer");if(y>z.length)throw Error("Seeking past EOF");};this.get=function(){return y>=
z.length?-1:z[y]}}function e(){var x="";this.m=function(){return x};this.h=function(y){65535>=y?x+=String.fromCharCode(y):(y-=65536,x+=String.fromCharCode(55296+(y>>10&1023)),x+=String.fromCharCode(56320+(y&1023)))}}function f(x,y){if(x)throw Error("EncodingError");return y||65533}function g(){throw Error("EncodingError");}function h(x){x=String(x).trim().toLowerCase();if(Object.prototype.hasOwnProperty.call(J,x))return J[x];throw Error("EncodingError: Unknown encoding: "+x);}function k(x){var y=
x.fatal,z=0,D=0,M=0,ua=0;this.decode=function(ca){var S=ca.get();if(-1===S)return 0!==D?f(y):-1;ca.offset(1);if(0===D){if(0<=S&&127>=S)return S;if(194<=S&&223>=S)D=1,ua=128,z=S-192;else if(224<=S&&239>=S)D=2,ua=2048,z=S-224;else if(240<=S&&244>=S)D=3,ua=65536,z=S-240;else return f(y);z*=Math.pow(64,D);return null}if(!(128<=S&&191>=S))return ua=M=D=z=0,ca.offset(-1),f(y);M+=1;z+=(S-128)*Math.pow(64,D-M);if(M!==D)return null;ca=z;S=ua;ua=M=D=z=0;return S<=ca&&1114111>=ca&&!(55296<=ca&&57343>=ca)?ca:
f(y)}}function q(){this.encode=function(x,y){var z=y.get();if(-1===z)return-1;y.offset(1);if(55296<=z&&57343>=z)return g(z);if(0<=z&&127>=z)return x.h(z);if(128<=z&&2047>=z){var D=1;var M=192}else 2048<=z&&65535>=z?(D=2,M=224):65536<=z&&1114111>=z&&(D=3,M=240);for(y=x.h(Math.floor(z/Math.pow(64,D))+M);0<D;)y=x.h(128+Math.floor(z/Math.pow(64,D-1))%64),--D;return y}}function n(x,y){var z=y.fatal;this.decode=function(D){var M=D.get();if(-1===M)return-1;D.offset(1);if(0<=M&&127>=M)return M;D=x[M-128];
return null===D?f(z):D}}function B(x){this.encode=function(y,z){var D=z.get();if(-1===D)return-1;z.offset(1);if(0<=D&&127>=D)return y.h(D);z=x.indexOf(D);z=-1===z?null:z;null===z&&g(D);return y.h(z+128)}}var A={},J={};[{encodings:[{labels:"csisolatin2 iso-8859-2 iso-ir-101 iso8859-2 iso_8859-2 l2 latin2".split(" "),name:"iso-8859-2"},{labels:"csisolatin3 iso-8859-3 iso_8859-3 iso-ir-109 l3 latin3".split(" "),name:"iso-8859-3"},{labels:"csisolatin4 iso-8859-4 iso_8859-4 iso-ir-110 l4 latin4".split(" "),
name:"iso-8859-4"},{labels:["csisolatincyrillic","cyrillic","iso-8859-5","iso_8859-5","iso-ir-144"],name:"iso-8859-5"},{labels:"arabic csisolatinarabic ecma-114 iso-8859-6 iso_8859-6 iso-ir-127".split(" "),name:"iso-8859-6"},{labels:"csisolatingreek ecma-118 elot_928 greek greek8 iso-8859-7 iso_8859-7 iso-ir-126".split(" "),name:"iso-8859-7"},{labels:"csisolatinhebrew hebrew iso-8859-8 iso-8859-8-i iso-ir-138 iso_8859-8 visual".split(" "),name:"iso-8859-8"},{labels:"csisolatin6 iso-8859-10 iso-ir-157 iso8859-10 l6 latin6".split(" "),
name:"iso-8859-10"},{labels:["iso-8859-13"],name:"iso-8859-13"},{labels:["iso-8859-14","iso8859-14"],name:"iso-8859-14"},{labels:["iso-8859-15","iso_8859-15"],name:"iso-8859-15"},{labels:["iso-8859-16"],name:"iso-8859-16"},{labels:"ascii ansi_x3.4-1968 csisolatin1 iso-8859-1 iso8859-1 iso_8859-1 l1 latin1 us-ascii windows-1252".split(" "),name:"windows-1252"},{labels:["unicode-1-1-utf-8","utf-8","utf8"],name:"utf-8"}],heading:"Legacy single-byte encodings"}].forEach(function(x){x.encodings.forEach(function(y){A[y.name]=
y;y.labels.forEach(function(z){J[z]=y})})});var ja={"iso-8859-2":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,728,321,164,317,346,167,168,352,350,356,377,173,381,379,176,261,731,322,180,318,347,711,184,353,351,357,378,733,382,380,340,193,194,258,196,313,262,199,268,201,280,203,282,205,206,270,272,323,327,211,212,336,214,215,344,366,218,368,220,221,354,223,341,225,226,259,228,314,263,231,269,233,281,235,283,
237,238,271,273,324,328,243,244,337,246,247,345,367,250,369,252,253,355,729],"iso-8859-3":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,294,728,163,164,null,292,167,168,304,350,286,308,173,null,379,176,295,178,179,180,181,293,183,184,305,351,287,309,189,null,380,192,193,194,null,196,266,264,199,200,201,202,203,204,205,206,207,null,209,210,211,212,288,214,215,284,217,218,219,220,364,348,223,224,225,226,null,228,
267,265,231,232,233,234,235,236,237,238,239,null,241,242,243,244,289,246,247,285,249,250,251,252,365,349,729],"iso-8859-4":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,312,342,164,296,315,167,168,352,274,290,358,173,381,175,176,261,731,343,180,297,316,711,184,353,275,291,359,330,382,331,256,193,194,195,196,197,198,302,268,201,280,203,278,205,206,298,272,325,332,310,212,213,214,215,216,370,218,219,220,360,362,
223,257,225,226,227,228,229,230,303,269,233,281,235,279,237,238,299,273,326,333,311,244,245,246,247,248,371,250,251,252,361,363,729],"iso-8859-5":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,173,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,
1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,8470,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,167,1118,1119],"iso-8859-6":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,null,null,null,164,null,null,null,null,null,null,null,1548,173,null,null,null,null,null,null,null,null,null,
null,null,null,null,1563,null,null,null,1567,null,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,null,null,null,null,null,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,null,null,null,null,null,null,null,null,null,null,null,null,null],"iso-8859-7":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,
159,160,8216,8217,163,8364,8367,166,167,168,169,890,171,172,173,null,8213,176,177,178,179,900,901,902,183,904,905,906,187,908,189,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,null,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,null],"iso-8859-8":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,
151,152,153,154,155,156,157,158,159,160,null,162,163,164,165,166,167,168,169,215,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,247,187,188,189,190,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,8215,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,null,null,8206,8207,null],"iso-8859-10":[128,
129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,274,290,298,296,310,167,315,272,352,358,381,173,362,330,176,261,275,291,299,297,311,183,316,273,353,359,382,8213,363,331,256,193,194,195,196,197,198,302,268,201,280,203,278,205,206,207,208,325,332,211,212,213,214,360,216,370,218,219,220,221,222,223,257,225,226,227,228,229,230,303,269,233,281,235,279,237,238,239,240,326,333,243,244,245,246,361,248,371,250,251,252,253,
254,312],"iso-8859-13":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,8221,162,163,164,8222,166,167,216,169,342,171,172,173,174,198,176,177,178,179,8220,181,182,183,248,185,343,187,188,189,190,230,260,302,256,262,196,197,280,274,268,201,377,278,290,310,298,315,352,323,325,211,332,213,214,215,370,321,346,362,220,379,381,223,261,303,257,263,228,229,281,275,269,233,378,279,291,311,299,316,353,324,326,243,333,245,246,
247,371,322,347,363,252,380,382,8217],"iso-8859-14":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,7682,7683,163,266,267,7690,167,7808,169,7810,7691,7922,173,174,376,7710,7711,288,289,7744,7745,182,7766,7809,7767,7811,7776,7923,7812,7813,7777,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,372,209,210,211,212,213,214,7786,216,217,218,219,220,221,374,223,224,225,226,227,228,229,230,231,232,233,234,
235,236,237,238,239,373,241,242,243,244,245,246,7787,248,249,250,251,252,253,375,255],"iso-8859-15":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,8364,165,352,167,353,169,170,171,172,173,174,175,176,177,178,179,381,181,182,183,382,185,186,187,338,339,376,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,
228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255],"iso-8859-16":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,261,321,8364,8222,352,167,353,169,536,171,377,173,378,379,176,177,268,322,381,8221,182,183,382,269,537,187,338,339,376,380,192,193,194,258,196,262,198,199,200,201,202,203,204,205,206,207,272,323,210,211,212,336,214,346,368,217,218,219,220,
280,538,223,224,225,226,259,228,263,230,231,232,233,234,235,236,237,238,239,273,324,242,243,244,337,246,347,369,249,250,251,252,281,539,255],"windows-1252":[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,
210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]};A["utf-8"].Qy=function(x){return new q(x)};A["utf-8"].Py=function(x){return new k(x)};(function(){"iso-8859-2 iso-8859-3 iso-8859-4 iso-8859-5 iso-8859-6 iso-8859-7 iso-8859-8 iso-8859-10 iso-8859-13 iso-8859-14 iso-8859-15 iso-8859-16 windows-1252".split(" ").forEach(function(x){var y=A[x],z=ja[x];y.Py=function(D){return new n(z,
D)};y.Qy=function(D){return new B(z,D)}})})();ba=function(x){x=x?String(x):"utf-8";var y=Object(y);this.qj=h(x);this.Zq=!1;this.Fh=null;this.vq={fatal:!!y.fatal};Object.defineProperty&&Object.defineProperty(this,"encoding",{get:function(){return this.qj.name}});return this};ba.prototype={encode:function(x,y){x=x?String(x):"";y=Object(y);this.Zq||(this.Fh=this.qj.Qy(this.vq));this.Zq=!!y.stream;y=[];var z=new c(y);for(x=new d(x);-1!==x.get();)this.Fh.encode(z,x);if(!this.Zq){do var D=this.Fh.encode(z,
x);while(-1!==D);this.Fh=null}return new Uint8Array(y)}};aa=function(x){x=x?String(x):"utf-8";var y=Object(y);this.qj=h(x);this.vq={fatal:!!y.fatal};this.sb=this.qj.Py(this.vq);Object.defineProperty&&Object.defineProperty(this,"encoding",{get:function(){return this.qj.name}});return this};aa.prototype={decode:function(x){if(x&&!("buffer"in x&&"byteOffset"in x&&"byteLength"in x))throw new TypeError("Expected ArrayBufferView");x=new Uint8Array(x.buffer,x.byteOffset,x.byteLength);return this.Ru(new a(x))},
cK:function(x){if(!x)throw new TypeError("Expected array of bytes");return this.Ru(new b(x))},Ru:function(x){for(var y=new e,z;-1!==x.get();)z=this.sb.decode(x),null!==z&&-1!==z&&y.h(z);return y.m()}}})();
(function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;c<b.length&&!window.requestAnimationFrame;++c)window.requestAnimationFrame=window[b[c]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[b[c]+"CancelAnimationFrame"]||window[b[c]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(d){var e=(new Date).getTime(),f=Math.max(0,16-(e-a)),g=window.setTimeout(function(){d(e+f)},f);a=e+f;return g});window.cancelAnimationFrame||(window.cancelAnimationFrame=
function(d){clearTimeout(d)})})();var da;da={oo:1,Si:2,DO:3,FO:4,EO:5,ut:5};var ea;ea=function(a){this.g=a};ea.prototype={py:function(a){var b=this;return function(c,d,e,f,g,h){c=b.XD(e,b.g.A.la,c,d,f,a,g);return h?c:b.g.Yc(c)}},XD:function(a,b,c,d,e,f,g){var h,k=1;f=new fa(f);for(var q;h=e.pop();)q=new fa(h.id),q.ko(k),f.vt(q),k+=this.pD(h.vz);a=new m(a,b,c,d);a.Ad(f);(g instanceof p||g instanceof ha)&&a.Eb(g);return a},pD:function(a){var b=0;do++b,a>>>=1;while(0!==a);return b}};var r;r=function(){};
r.$i=function(){return r.Ax};r.UA=function(){return r.oE};r.uo=function(a){var b=new t(a.offsetX,a.offsetY);null!==a.currentTarget&&(b=u.qL(a.currentTarget,b));return b};r.uv=function(a){var b=new t(a.offsetLeft,a.offsetTop);a.offsetParent&&(a=r.uv(a.offsetParent),b.X+=a.X,b.Y+=a.Y);return b};r.Ex=!1;r.vo=function(a){var b=this.MC(a);null!==b&&(a=r.uv(a.target),b.X-=a.X,b.Y-=a.Y);return b};
r.MC=function(a){return a.pageX&&a.target?new t(a.pageX,a.pageY):(r.Ex||(r.Ex=!0,v.error("Evaluation of Touch events not supported because the browser uses an unexpected interface")),null)};r.rG=navigator.userAgent.match(/OS 6(_\d)+ like Mac OS X/i);r.TK=function(){return r.rG};r.mB=function(){var a=void 0!==window.TouchEvent&&"ontouchstart"in window&&"ontouchend"in document;return void 0!==window.PointerEvent&&void 0!==navigator.maxTouchPoints&&0<navigator.maxTouchPoints||a};
r.lB=function(a){return u.Do(a.RuntimeVersion,16)};r.kB=function(a,b){return u.Do(a.RuntimeVersion,18)&&2147527629!=b.dh};r.iB=function(a){return u.Do(a.RuntimeVersion,18,10)};r.jB=function(){return void 0!==window.atob&&void 0!==window.crypto&&void 0!==window.crypto.subtle};r.Mv=function(a,b){a.style.cssText+="outline: none; -webkit-tap-highlight-color: rgba(0,0,0,0);";b&&(a.style.cssText+="display:block;");a.addEventListener("MSHoldVisual",function(c){c.preventDefault()})};
r.we=function(){return window.devicePixelRatio?window.devicePixelRatio:1};r.fo=function(){return void 0!==window.visualViewport};r.IB=function(a,b){r.Mv(a,2E3);r.Mv(b,1E3)};r.Kw=function(a){if(void 0!==a&&null!==a&&!(0<=a.indexOf("%")))return parseFloat(a)};r.Mw=function(a){if(void 0===a)return null;a=a.split(/[\s,]/);return 4>a.length?null:new w(parseFloat(a[2]),parseFloat(a[3]))};
r.SI=function(a){var b=new XMLHttpRequest;b.open("GET",a.src,!1);b.send();return b.responseXML&&b.responseXML.documentElement?b.responseXML&&b.responseXML.documentElement:null};r.hD=function(a,b){var c=new XMLHttpRequest;c.open("GET",a.src);c.onreadystatechange=function(){4===c.readyState&&(200===c.status?c.responseXML&&c.responseXML.documentElement?b(c.responseXML.documentElement):b(null):b(null))};c.send()};
r.aI=function(a){try{if(0<=a.src.toLowerCase().indexOf(".svg")){v.h("Derivation of SVG size for '"+a.src+"' failed. Parsing manually");var b=r.SI(a);if(null!==b){var c=r.Kw(b.getAttribute("width"));var d=r.Kw(b.getAttribute("height"));if(c&&d)return new w(c,d);var e=r.Mw(b.getAttribute("viewBox"));if(null!==e)return e}}}catch(f){v.error("Exception during manual parsing of SVG size.")}return null};
r.nt=function(a){if(a.naturalWidth&&a.naturalHeight)return new w(a.naturalWidth,a.naturalHeight);if(a.width&&a.height)return new w(a.width,a.height);a=r.aI(a);return null!==a?a:new w(0,0)};r.zo=function(){return r.eI};r.sF="undefined"!==typeof InstallTrigger;r.KB=function(a,b,c){return!r.sF&&!c.WorkaroundForceSVGEmptySizeWorkaround||c.WorkaroundDisableSVGEmptySizeWorkaround?!1:u.Ho(b)&&void 0!==a.naturalWidth&&0===a.naturalWidth&&void 0!==a.naturalHeight&&0===a.naturalHeight};
r.XA=function(a,b,c){try{r.hD(a,function(d){if(null===d)c("DoZeroWidthHeightWorkaround: svg xml not available");else{var e=r.Mw(d.getAttribute("viewBox"));null===e?c("DoZeroWidthHeightWorkaround: no view box available"):(d.setAttribute("width",e.L),d.setAttribute("height",e.V),d=(new XMLSerializer).serializeToString(d),b("data:image/svg+xml;base64,"+btoa(d)))}})}catch(d){c(d.toString())}};
r.Gb=function(){return"onpointerdown"in window&&"PointerEvent"in window&&!C.gB("CFG_WorkaroundDisablePointerEvents",!1)};r.mt=function(){var a=C.hB("CFG_WorkaroundFileTransferTimeout");return null!==a?a:r.zo()?400:0};r.eI=-1!==navigator.userAgent.indexOf("Safari")&&0>navigator.userAgent.indexOf("Chrome");var ia="undefined"===typeof ArrayBuffer||"undefined"===typeof Uint8Array||"undefined"===typeof Int8Array,ka,la;ia||(ka=new ArrayBuffer(4),la=new Int8Array(ka,1,2),ia=2!==la.byteLength);r.Ax=ia;
r.oE=function(){if(r.Ax)return!1;var a="undefined"!==typeof DataView,b;if(/opera [56789]|opera\/[56789]/i.test(navigator.userAgent)||/MSIE (\d+\.\d+);/.test(navigator.userAgent))return!1;try{if(a){var c=new ArrayBuffer(8);var d=new Int8Array(c);for(b=0;8>b;++b)d[b]=b;var e=new DataView(c);if(a="function"===typeof e.getFloat64&&"function"===typeof e.getFloat32&&"function"===typeof e.getInt32&&"function"===typeof e.getUint32&&"function"===typeof e.getInt16&&"function"===typeof e.getUint16&&"function"===
typeof e.getInt8&&"function"===typeof e.getInt8)e.getFloat64(0),e.getFloat32(0),e.getInt32(0),e.getUint32(0),e.getInt16(0),e.getUint16(0),e.getInt8(0),e.getInt8(0)}}catch(f){return!1}return a}();r.qb=function(a,b){return void 0!==a.includes?a.includes(b):0<=a.indexOf(b)};r.uC=function(a,b){return void 0!==a.startsWith?a.startsWith(b):0===a.lastIndexOf(b,0)};r.dB=function(){try{return void 0!==navigator.languages?navigator.languages.length?navigator.languages[0]:navigator.language:navigator.language}catch(a){return""}};
r.fh=function(){return window.WindowZoomFactor?1E-4<=Math.abs(parseFloat(window.WindowZoomFactor)-1):!1};r.Wi=function(a){var b=r.co();b&&a.Kk(1/b);return a};r.co=function(){return parseFloat(window.WindowZoomFactor)};var Configuration;
Configuration=function(){this.PlcAddress="0101";this.UseLocalHost=!0;this.CommBufferSize=5E4;this.ErrorReconnectTime=1E4;this.Application="Application";this.UpdateRate=200;this.BestFitForDialogs=this.BestFit=!1;this.StartVisu="Visualization";this.StartVisuDefaultEncodingBase64="";this.XhrSendTimeout=0;this.LoginVisuDefLang=this.LoginVisuNamespace=this.LoginVisuErrorTexts=this.LoginVisuTexts=this.LoginVisu="";this.PollingRegistrationInterval=100;this.TimeMeasurements="";this.LogLevel="INFO";this.MaxUnusedImageAge=
2E4;this.MaxUndrawnImageAge=1E4;this.NumCachedImages=15;this.ChangeWindowTitle=!0;this.TooltipFont="";this.DefaultKeyActions=!0;this.KeysForWebVisu="Backspace,Tab";this.ANSIStringEncoding="iso-8859-1";this.CommitEditcontrolOnClickOut=!0;this.HandleTouchEvents=!1;this.FuzzyTransparencyColorEvaluation=!0;this.TouchHandlingActive=this.Benchmarking=this.HasKeyboard=this.LoadImagesById=!1;this.ClientName="";this.ScaleTypeIsotropic=this.IecSupportsCommonMiterLimit=this.SemiTransparencyActive=!1;this.GesturesFlickPanThresholdPxPerSecond=
1E3;this.GesturesPanFlickTimeThresholdMs=40;this.GesturesPanClickThresholdDistSquare=10;this.PostDataInHeader=0;this.Xt=this.AutoFontReductionActive=!1;this.ProgrammingSystemModeWaitingText="The online visualization is waiting for a connection. Please start the application.";this.ProgrammingSystemModeErrorText="Some sort of error occurred during the Visualisation.";this.ConnectionInfoValidTimeMsForLeaveAfterError=1E3;this.WorkaroundDisableMouseUpDownAfterActiveTouch=!0;this.WorkaroundSetIgnoreTimeMsForMouseUpDownAfterActiveTouch=
500;this.WorkaroundForceSVGEmptySizeWorkaround=this.WorkaroundDisableSVGEmptySizeWorkaround=this.WorkaroundDisableSVGAspectRatioWorkaround=this.WorkaroundDisableResizeHandling=!1;this.ContentSecurityPolicyIncludeTrustedOrigins=this.RuntimeVersion=this.CasFactoryName="";this.DefaultConfigurationOnError=!1;this.MaxResizePixel=30;this.FillBackground=!1;this.Go=5E3;this.DebugHTML5=this.DebugOnlyDiagnosisDisplay=this.DebugOnlyPrintTouchRectangles=this.DebugOnlyPrintGestures=this.DebugOnlyPrintRawTouches=
this.DebugOnlyPrintPaintCommands=!1};
Configuration.prototype={validate:function(){if("string"!==typeof this.PlcAddress)throw Error("Plc address must be of type string");if("boolean"!==typeof this.UseLocalHost)throw Error("UseLocalHost must be of type boolean");if("number"!==typeof this.CommBufferSize)throw Error("CommBufferSize must be of type number");if("number"!==typeof this.ErrorReconnectTime)throw Error("ErrorReconnectTime must be of type number");if("string"!==typeof this.Application)throw Error("Application must be of type string");if("number"!==
typeof this.UpdateRate)throw Error("UpdateRate must be of type number");if("number"!==typeof this.MaxResizePixel)throw Error("MaxResizePixel must be of type number");void 0!==this.LoginMaxResizePixel&&30===this.MaxResizePixel&&(this.MaxResizePixel=this.LoginMaxResizePixel);if("boolean"!==typeof this.BestFit)throw Error("BestFit must be of type boolean");if("boolean"!==typeof this.BestFitForDialogs)throw Error("BestFitForDialogs must be of type boolean");if("string"!==typeof this.StartVisu)throw Error("StartVisu must be of type string");
if("string"!==typeof this.LoginVisu)throw Error("LoginVisu must be of type string");if("string"!==typeof this.LoginVisuTexts)throw Error("LoginVisuTexts must be of type string");if("string"!==typeof this.LoginVisuErrorTexts)throw Error("LoginVisuErrorTexts must be of type string");if("string"!==typeof this.LoginVisuNamespace)throw Error("LoginVisuNamespace must be of type string");if("string"!==typeof this.LoginVisuDefLang)throw Error("LoginVisuDefLang must be of type string");if("number"!==typeof this.PollingRegistrationInterval)throw Error("PollingRegistrationInterval must be of type number");
if("string"!==typeof this.TimeMeasurements)throw Error("TimeMeasurements must be of type string");if("string"!==typeof this.TooltipFont)throw Error("TooltipFont must be of type string");if("boolean"!==typeof this.DefaultKeyActions)throw Error("DefaultKeyActions must be of type boolean");if("string"!==typeof this.ANSIStringEncoding)throw Error("ANSIStringEncoding must be of type string");if("boolean"!==typeof this.FuzzyTransparencyColorEvaluation)throw Error("FuzzyTransparencyColorEvaluation must be of type boolean");
if("boolean"!==typeof this.LoadImagesById)throw Error("LoadImagesById must be of type boolean");if("boolean"!==typeof this.Benchmarking)throw Error("Benchmarking must be of type boolean");if("boolean"!==typeof this.TouchHandlingActive)throw Error("TouchHandlingActive must be of type boolean");if("boolean"!==typeof this.HasKeyboard)throw Error("HasKeyboard must be of type boolean");if("boolean"!==typeof this.SemiTransparencyActive)throw Error("SemiTransparencyActive must be of type boolean");if("boolean"!==
typeof this.ScaleTypeIsotropic)throw Error("ScaleTypeIsotropic must be of type boolean");if("number"!==typeof this.GesturesFlickPanThresholdPxPerSecond||0>this.GesturesFlickPanThresholdPxPerSecond)throw Error("GesturesFlickPanThresholdPxPerSecond must be of type nonnegative number");if("number"!==typeof this.GesturesPanFlickTimeThresholdMs||0>this.GesturesPanFlickTimeThresholdMs)throw Error("GesturesPanFlickTimeThresholdMs must be of type nonnegative number");if("number"!==typeof this.GesturesPanClickThresholdDistSquare||
0>this.GesturesPanClickThresholdDistSquare)throw Error("GesturesPanClickThresholdDistSquare must be of type nonnegative number");if("number"!==typeof this.PostDataInHeader||0>this.PostDataInHeader||2<this.PostDataInHeader)throw Error("PostDataInHeader must be a number in the range 0..2");if("boolean"!==typeof this.AutoFontReductionActive)throw Error("AutoFontReductionActive must be of type boolean");if("boolean"!==typeof this.Xt)throw Error("UseUTF8Encoding must be of type boolean");if("string"!==
typeof this.ProgrammingSystemModeWaitingText)throw Error("ProgrammingSystemModeWaitingText must be of type string");if("string"!==typeof this.ProgrammingSystemModeErrorText)throw Error("ProgrammingSystemModeErrorText must be of type string");if("number"!==typeof this.ConnectionInfoValidTimeMsForLeaveAfterError)throw Error("ConnectionInfoValidTimeMsForLeaveAfterError must be of type number");if("boolean"!==typeof this.FillBackground)throw Error("FillBackground must be of type boolean");if("boolean"!==
typeof this.DebugOnlyPrintPaintCommands)throw Error("DebugOnlyPrintPaintCommands must be of type boolean");if("boolean"!==typeof this.DebugOnlyPrintRawTouches)throw Error("DebugOnlyPrintRawTouches must be of type boolean");if("boolean"!==typeof this.DebugOnlyPrintGestures)throw Error("DebugOnlyPrintGestures must be of type boolean");if("boolean"!==typeof this.DebugOnlyPrintTouchRectangles)throw Error("DebugOnlyPrintTouchRectangles must be of type boolean");if("boolean"!==typeof this.DebugOnlyDiagnosisDisplay)throw Error("DebugOnlyDiagnosisDisplay must be of type boolean");
if("boolean"!==typeof this.WorkaroundDisableMouseUpDownAfterActiveTouch)throw Error("WorkaroundDisableMouseUpDownAfterActiveTouch must be of type boolean");if("boolean"!==typeof this.WorkaroundDisableResizeHandling)throw Error("WorkaroundDisableResizeHandling must be of type boolean");if("number"!==typeof this.WorkaroundSetIgnoreTimeMsForMouseUpDownAfterActiveTouch||0>this.WorkaroundSetIgnoreTimeMsForMouseUpDownAfterActiveTouch)throw Error("WorkaroundSetIgnoreTimeMsForMouseUpDownAfterActiveTouch must be of type nonnegative number");
if("string"!==typeof this.CasFactoryName)throw Error("CasFactoryName must be of type string");if("string"!==typeof this.RuntimeVersion)throw Error("RuntimeVersion must be of type string");if("string"!==typeof this.ContentSecurityPolicyIncludeTrustedOrigins)throw Error("ContentSecurityPolicyIncludeTrustedOrigins must be of type string");if("number"!==typeof this.Go)throw Error("TouchSanityInterval must be of type number");this.Sf()},bz:function(){try{return new ma(this.TooltipFont)}catch(a){return this.TooltipFont=
""}},Sf:function(){return new aa(this.ANSIStringEncoding)},re:function(){return new ba(this.ANSIStringEncoding)}};var na;na=function(a,b,c,d,e){this.CommBufferSize=a;this.Fa=b;this.fg=c;this.lo=d;this.dh=E.va;this.la=E.m;this.qo="";this.qC=e;this.Wn=!1};var F;F=function(){};F.Zn="";F.LB="";F.$n="2";F.Qs="3";F.UB="4";F.HC="5";F.pC="6";var G;G=function(){};G.h="NOSP";G.va="---";G.m=1E3;G.J=1100;var H;H=function(){};H.ProgrammingSystemModeErrorText="Some sort of error occurred during the Visualisation.";
H.ProgrammingSystemModeWaitingText="The online visualization is waiting for a connection. Please start the application.";H.h=1;H.Ya=H.h;H.Fb=H.h+1;H.J=H.h+2;H.m=H.h+3;H.va=H.h+4;H.cd=H.h+5;var oa;oa=function(a,b,c,d,e,f,g,h,k){this.Jp=a;this.fb=d%360;this.BD=e;this.CD=f;this.Gp=g;(0===this.Gp||2===this.Gp)&&180<this.fb?(this.fb-=180,this.ul=h?c:k,this.jj=b):(this.ul=b,this.jj=h?c:k)};
oa.prototype={GK:function(a,b){if(0===b.D()||0===b.C())return"#ffffff";switch(this.Gp){case 0:return this.ou(a,b,!1);case 1:return this.qD(a,b);case 2:return this.ou(a,b,!0);default:return"#ffffff"}},ou:function(a,b,c){var d=b.zk();var e=90<this.fb?I.Rk(180-this.fb):I.Rk(this.fb);var f=d.X-Math.max(b.C(),b.D())*Math.cos(e);var g=d.Y-Math.max(b.C(),b.D())*Math.sin(e);if(this.lw(d.X,d.Y,f,g,b.s,b.u,b.s,b.aa)){d=e;e=b.D()/2*Math.tan(d);e=b.C()/2-e;d=Math.PI/2-d;d=e*Math.cos(d);f=d*d/e;g=e-f;var h=Math.sqrt(Math.max(0,
g*f));e=b.s-h;d=b.u+g;f=b.T+h;g=b.aa-g}else this.lw(d.X,d.Y,f,g,b.s,b.u,b.T,b.u)?(d=e,e=b.C()/2/Math.tan(d),e=b.D()/2-e,d=Math.PI/2-d,d=Math.cos(d)*e,f=d*d/e,h=Math.sqrt(Math.max(0,(e-f)*f)),e=b.s+f,d=b.u-h,f=b.T-f,g=b.aa+h):(e=b.s,d=b.u,f=b.T,g=b.aa);90<this.fb&&(e=b.T-(e-b.s),f=b.T-(f-b.s));a=a.createLinearGradient(e,d,f,g);a.addColorStop(0,this.ul);c?(a.addColorStop(.45,this.jj),a.addColorStop(.55,this.jj),a.addColorStop(1,this.ul)):a.addColorStop(1,this.jj);return a},qD:function(a,b){var c=new t(b.s+
b.D()*this.BD,b.u+b.C()*this.CD);b=this.OF(b,c);a=a.createRadialGradient(c.X,c.Y,0,c.X,c.Y,b);a.addColorStop(0,this.ul);a.addColorStop(1,this.jj);return a},lw:function(a,b,c,d,e,f,g,h){var k=(h-f)*(c-a)-(g-e)*(d-b);g=(g-e)*(b-f)-(h-f)*(a-e);a=(c-a)*(b-f)-(d-b)*(a-e);if(0===k)return g===a;b=g/k;k=a/k;return 0<=b&&1>=b&&0<=k&&1>=k},OF:function(a,b){var c=[];c[0]=this.Al(new t(a.s,a.u),b);c[1]=this.Al(new t(a.T,a.u),b);c[2]=this.Al(new t(a.T,a.aa),b);c[3]=this.Al(new t(a.s,a.aa),b);for(a=b=0;4>a;++a)b=
Math.max(b,c[a]);return Math.sqrt(b)},Al:function(a,b){return(a.X-b.X)*(a.X-b.X)+(a.Y-b.Y)*(a.Y-b.Y)}};var pa;pa=function(a){this.g=a;this.Qp()};
pa.prototype={Qp:function(){var a=this;window.document.addEventListener("keydown",function(b){a.fH(b)},!1);window.document.addEventListener("keypress",function(b){a.gH(b)},!1);window.document.addEventListener("keyup",function(b){a.hH(b)},!1)},gH:function(a){var b=this.g.A;a=this.Ul(a);null!==b&&null!==a&&this.g.Yc(m.Ya(b.la,a))},fH:function(a){var b=this.xv(a),c=this.g.A;this.Cw("onKeyDown",b)||(this.pu(a),null!==c&&null!==b&&void 0!==b.key&&this.g.Yc(m.J(128,c.la,b.key,b.flags)))},hH:function(a){var b=
this.xv(a),c=this.g.A;this.Cw("onKeyUp",b)||(this.pu(a),null!==c&&null!==b&&void 0!==b.key&&this.g.Yc(m.J(256,c.la,b.key,b.flags)))},Cw:function(a,b){return this.g.Dc&&window.ProgrammingSystemAccess&&window.ProgrammingSystemAccess[a]&&window.ProgrammingSystemAccess[a](b.key,b.flags)?!0:!1},xv:function(a){var b=a.keyCode,c=0;if(16<=b&&18>=b)return null;a.shiftKey&&(c|=1);a.altKey&&(c|=2);a.ctrlKey&&(c|=4);return{key:b,flags:c}},Ul:function(a){var b=0;a.charCode?b=a.charCode:a.which&&(b=a.which);if(0===
b||void 0!==a.altKey&&!0===a.altKey&&48<=b&&57>=b)return null;if(void 0!==a.ctrlKey&&a.ctrlKey||void 0!==a.altKey&&a.altKey)if(void 0===a.ctrlKey||!a.ctrlKey||void 0===a.altKey||!a.altKey)return null;return String.fromCharCode(b)},GH:function(a){var b;if(void 0===this.g.getConfiguration().KeysForWebVisu||""===this.g.getConfiguration().KeysForWebVisu)return!1;var c=this.g.getConfiguration().KeysForWebVisu.split(",");for(b=0;b<c.length;b++)if(c[b]==a.key)return!0;return!1},pu:function(a){u.J(this.g)||
null===this.g.getConfiguration()||this.g.getConfiguration().DefaultKeyActions&&!this.GH(a)||a.preventDefault&&a.preventDefault()}};var qa;qa=function(a){this.g=a;this.Zl=!1;this.Op=0;this.KG=[];this.h()};
qa.prototype={eA:function(a){this.Zl=a},nN:function(a){this.Op=a},cO:function(a){this.Fp().style.touchAction=a?"none":"auto"},h:function(){var a=this;if(r.Gb()){var b=!this.g.sa;v.h("Mouse-Handling using PointerEvents");this.Kd("pointerup",function(c){a.Vj(c)},b);this.Kd("pointerdown",function(c){a.sm(c)},b);this.Kd("pointermove",function(c){a.Uj(c)},b);this.Kd("pointerout",function(c){a.oH(c)},b)}else v.h("Mouse-Handling using MouseEvents"),this.Kd("mouseup",function(c){a.rm(c)},!1),this.Kd("mousedown",
function(c){a.pm(c)},!1),this.Kd("mousemove",function(c){a.qm(c)},!1),this.Kd("mouseout",function(c){a.kH(c)},!1),this.Kd("touchstart",function(c){a.Hf(c)},!0),this.Kd("touchmove",function(c){a.Hf(c)},!0),this.Kd("touchend",function(c){a.Hf(c)},!0)},Fp:function(){return this.g.sa?this.g.mb():this.g.Z().Rf().canvas},Kd:function(a,b,c){this.Fp().addEventListener(a,b,c,{passive:!1});this.KG.push({type:a,callback:b,SO:c})},Il:function(a,b){if(null!==this.g.A){var c=r.uo(a);this.g.sa&&(a=u.Pi(a.target,
this.Fp()),c=c.offset(a));b=m.h(b,this.g.A.la,c);this.g.Yc(b)}},dm:function(a){return null!==this.g.getConfiguration()&&this.g.getConfiguration().TouchHandlingActive?"touch"!==a.pointerType:a.isPrimary},sm:function(a){!u.J(this.g)&&this.dm(a)&&(a.preventDefault(),this.Cv(a))},Vj:function(a){!u.J(this.g)&&this.dm(a)&&(a.preventDefault(),this.Fv(a))},Uj:function(a){!u.J(this.g)&&this.dm(a)&&(a.preventDefault(),this.Dv(a))},oH:function(a){!u.J(this.g)&&this.dm(a)&&(a.preventDefault(),this.Ev(a))},Fv:function(a){u.yo(a)&&
this.Il(a,K.m)},Cv:function(a){u.yo(a)&&(this.g.Id.fn(a),this.g.Fd.wz(a),this.Il(a,K.J))},Dv:function(a){this.Zl||this.Il(a,K.h)},Ev:function(a){null!==a.relatedTarget&&void 0!==a.relatedTarget&&"string"===typeof a.relatedTarget.nodeName&&"html"!==a.relatedTarget.nodeName.toLowerCase()||this.Il(a,4096)},rm:function(a){u.J(this.g)||(u.m()<this.Op?v.h("Dropping mouse up due to required delay!"):this.Fv(a))},pm:function(a){u.J(this.g)||(u.m()<this.Op?v.h("Dropping mouse down due to required delay!"):
this.Cv(a))},qm:function(a){u.J(this.g)||this.Dv(a)},kH:function(a){u.J(this.g)||this.Ev(a)},Hf:function(a){if(!u.J(this.g)&&null!==this.g.getConfiguration()&&this.g.getConfiguration().HandleTouchEvents&&!this.g.getConfiguration().TouchHandlingActive){var b=null;switch(a.type){case "touchstart":var c=K.J;this.Zl=!0;break;case "touchmove":c=K.h;break;case "touchend":c=K.m;this.Zl=!1;break;default:return}a.touches&&1<=a.touches.length?b=r.vo(a.touches[0]):a.changedTouches&&1<=a.changedTouches.length&&
(b=r.vo(a.changedTouches[0]));null!==b&&(null!==this.g.A&&(c===K.J&&this.g.Fd.nO(b),c=m.h(c,this.g.A.la,b),this.g.Yc(c)),a.preventDefault())}}};var ra;ra=function(a,b,c){this.pg=a;this.nE=b;this.ep=c;this.Dw=p.B(1E3)};ra.prototype={wL:function(){return this.nE-this.Dw.size()},wd:function(){return this.Dw},finish:function(){this.ep=0},Uf:function(){return 0===this.ep}};var sa;
sa=function(a){this.em=0!==(a&65536);this.Fw=0!==(a&131072);this.Gw=0!==(a&262144);this.Hw=0!==(a&524288);this.Ew=0!==(a&1048576);this.Tv=0!==(a&2097152);this.Uv=0!==(a&4194304);this.em=this.em||this.Tv||this.Uv;this.yG=!(this.Fw||this.Gw||this.Hw||this.Ew)};
sa.prototype={Wr:function(){return this.left()||this.right()||this.Hs()},rz:function(){return this.top()||this.bottom()||this.Is()},qz:function(){return this.left()||this.top()},pz:function(){return this.right()||this.bottom()},ad:function(){return this.yG},left:function(){return this.Fw},right:function(){return this.Gw},top:function(){return this.Hw},bottom:function(){return this.Ew},Nk:function(){return this.ad()&&this.em},Is:function(){return this.ad()&&this.Uv},Hs:function(){return this.ad()&&
this.Tv}};var ta;ta=function(a,b){this.g=a;this.yh=b};ta.prototype={vM:function(){var a=this.g.Xa();r.kB(this.g.getConfiguration(),this.yh)||this.qI(a);this.nI(a)},Nb:function(){},R:function(){},nI:function(a){var b=this.g.ib(this.yh);b.hK();a.pb(b.kb(),this,!0)},qI:function(a){var b=this.g.ib(this.yh);b.Ms(this.yh.la);a.pb(b.kb(),this,!0)}};var va;
va=function(a,b,c,d,e){this.g=a;this.xh=null;b=this.h(b);e?c=b:(this.Sd=new wa,c=this.h(c));if(b.width!==c.width||b.height!==c.height)throw Error("Expected two canvasses of the same size");r.IB(b,c);this.Ka=this.Cp(b);this.rb=this.Cp(c);this.oJ=C.Ri(this.g.Of,"WorkaroundDisableDPRBasedZoom",!1);this.nJ=C.Ri(this.g.Of,"WorkaroundAnisoAddWidthPixel",!1);this.mJ=C.Ri(this.g.Of,"WorkaroundAnisoAddHeightPixel",!1);d&&(this.Ur()||this.m(),this.Lr(1));this.Ql=new xa;this.lp=r.we();this.Rl=new ya(this.rb);
this.jf=new ya(this.Ka);this.wh=new L;this.Hq=this.Iq=null;this.Ig=!1;this.zf=new za;this.Cj=new Aa(this.g);this.Nm=new Ba(this);this.cr=new Ca(this);this.ap=!1;this.AE=new Da(a);this.rg=0;this.gi=this.Gm=1;this.fk=null;this.$l=!1};
va.prototype={cf:function(){return new N(0,0,this.Ka.canvas.width,this.Ka.canvas.height)},Ak:function(){return null!==this.xh?this.xh:this.rb},Rf:function(){return this.g.sa?this.Ka:this.rb},zd:function(){return 0!==this.rg},oz:function(){return 2===this.rg},eN:function(){this.rg=0},cN:function(){this.rg=1},dN:function(){this.rg=2},VN:function(a){this.Gm=a},WN:function(a){this.gi=a},UN:function(a){this.fk=a},oh:function(a){return new N(this.dl(a.s),this.el(a.u),this.dl(a.T),this.el(a.aa))},oC:function(a){var b;
for(b=0;b<a.length;++b)a[b].X=this.dl(a[b].X),a[b].Y=this.el(a[b].Y);return a},dl:function(a){a*=this.Gm;2==this.rg&&null!==this.fk&&(a+=this.fk.s);return Math.round(a)},el:function(a){a*=this.gi;2==this.rg&&null!==this.fk&&(a+=this.fk.u);return Math.round(a)},clear:function(){this.g.Nc&&this.g.Nc.hs();this.g.tl&&this.g.tl.hs();this.rb.clearRect(0,0,this.rb.canvas.width,this.rb.canvas.height);this.Ka.fillStyle="#ffffff";this.Ka.fillRect(0,0,this.Ka.canvas.width,this.Ka.canvas.height)},yk:function(){var a=
u.Jo(this.Ka.canvas);return new t(a.s,a.u)},getContext:function(){if(null!==this.xh)return this.xh;if(this.g.sa){var a=this.g.ea().za();var b=this.Ig?null!==a?a.Z():this.Ka:null!==a?a.Z():this.rb;a=this.getState();this.wh.ad()?a.Xg(b):b=a.Ba;return b}a=null;b=this.Sd.qr();-1!==b&&(a=this.Sd.Jn(b));return this.Ig?null!==a?a.Ka:this.Ka:null!==a?a.xl:this.rb},Xg:function(a){this.xh=a.getContext("2d");this.jf=new ya(this.xh)},Ar:function(){if(this.g.sa){var a=this.g.ea().za();if(null!==a){a.Ar();return}}a=
this.getContext();a.clearRect(0,0,a.canvas.width,a.canvas.height)},getState:function(){if(this.g.sa)return this.wh.before()&&this.Iq?this.Iq:this.wh.after()&&this.Hq?this.Hq:this.jf;var a=null;var b=this.Sd.qr();-1!==b&&(a=this.Sd.Jn(b));return this.Ig?null!==a?a.jf:this.jf:null!==a?a.jD:this.Rl},Nz:function(){this.Ig=!0;this.g.sa&&(this.jf.Xg(this.Ka),this.jf.apply())},iM:function(){this.Ig=!1;this.g.sa&&(this.Rl.Xg(this.rb),this.Rl.apply())},jy:function(){this.ap=!0},kn:function(a,b,c){this.g.Fd.hO(da.oo);
this.Ql.clear();this.rb.save();this.Rl.Xg(this.rb);this.jf.Xg(this.Ka);var d=this.LH(a,c);c=!1;var e=this;this.$l=!1;for(a=0;a<d.length;++a)d[a]instanceof Ea&&!d[a].jz(this.Cj,this.zf)&&(c=!0),d[a]instanceof Fa&&!this.g.sa&&d[a].j(this);this.yD()?(c?(v.m("Waiting for image(s) to load"),this.Cj.GJ(function(){v.m("Loading image(s) finished so continue with drawing");e.$l=!0;e.Xu(d,b)})):(this.$l=!0,this.Xu(d,b)),null!==this.g.oa&&this.g.oa.g.N.Th&&this.HE()):b()},BL:function(){this.lp=r.we();(new Ga).Rx("DevicePixelRatioChanged",
"true")},Ur:function(){return(new Ga).fz("DevicePixelRatioChanged")},m:function(){var a=r.we();(new Ga).Rx("OriginalDevicePixelRatio",a)},MK:function(){var a=new Ga;return parseFloat(a.xn("OriginalDevicePixelRatio"))},So:function(a){this.Ka.canvas.width=this.rb.canvas.width=a.L;this.Ka.canvas.height=this.rb.canvas.height=a.V;var b=this.g.mb();null!==b&&(b.style.height=a.V+"px",b.style.width=a.L+"px",this.g.Dc||(b.style.overflow="hidden"))},Su:function(){return new w(document.documentElement.clientWidth,
document.documentElement.clientHeight)},NF:function(a,b,c){return 0<a.L-b.L?a.L-b.L:0<c.L-b.L?c.L-b.L:0},TF:function(a,b,c){return 0<a.V-b.V?a.V-b.V:0<c.V-b.V?c.V-b.V:0},UC:function(a,b){var c=!1;var d=new w(window.innerWidth,window.innerHeight);var e=this.NF(a,b,d);a=this.TF(a,b,d);if(r.fo()){var f=window.visualViewport;b.L=Math.floor(f.width);b.V=Math.floor(f.height)}0<e&&(b.L=r.fo()?Math.floor(f.width)+e:b.L-.5+e,this.nJ&&(b.L+=1),c=!0);0<a&&(b.V=r.fo()?Math.floor(f.height)+a:b.V-.5+a,this.mJ&&
(b.V+=1),c=!0);return c},Lr:function(a){this.oJ?a=1:this.Ur()&&(a=this.dF());try{var b=this.Su();this.So(b.scale(a));var c=this.Su();(this.UC(b,c)||c.L>b.L||c.V>b.V)&&this.So(c.scale(a))}catch(d){v.warn("Exception during resizing canvasses: "+d),this.So((new w(window.innerWidth,window.innerHeight)).scale(a))}},hN:function(a,b,c){c?(this.wh.LN(),this.Iq=this.tx(a,"cdsClip_before_canvas",b)):(this.wh.KN(),this.Hq=this.tx(a,"cdsClip_after_canvas",b))},tx:function(a,b,c){a=u.va(a.S(),b);if(null===a)return null;
a=this.Cp(a);a=new ya(a);a.CO=c;a.NN();return a},Pz:function(){this.wh.mM()},Xu:function(a,b){this.ap&&(this.g.iy(),this.ap=!1);var c,d=this;if(this.g.Lb.ao){for(c=0;c<a.length;++c){var e=a[c];(e instanceof Ha||e instanceof Ia||e instanceof Ja)&&e.j(this)}for(c=0;c<a.length;++c)e=a[c];this.rb.restore()}else if(this.g.sa){for(c=0;c<a.length;++c)a[c]instanceof Ka&&a[c].j(this);this.Ql.Yx(this.rb);for(c=0;c<a.length;++c)e=a[c],e instanceof Ka||a[c].j(this);this.rb.restore()}else{var f=[];for(c=0;c<a.length;++c)e=
a[c],e instanceof Ka?e.j(this):e instanceof La&&f.push(e);this.Ql.Yx(this.rb);for(c=0;c<a.length;++c)e=a[c],e instanceof Ka||e instanceof La||e instanceof Fa||a[c].j(this);this.rb.restore();for(c=0;c<f.length;++c)f[c].j(this)}this.AE.ri(this.rb);this.g.uk(function(){d.gF()});this.fF();this.g.Fd.pK(0===a.length,da.oo);b()},gF:function(){var a=this.g.FK();0!==a.length&&setTimeout(function(){window.requestAnimationFrame(function(){a.forEach(function(b){b()})})})},fF:function(){var a=this.g.BK();0!==
a.length&&window.requestAnimationFrame(function(){a.forEach(function(b){b()})})},yD:function(){return null===this.g.oa||this.g.oa.g.N.Th||!this.g.oa.g.N.Bn()},LH:function(a,b){var c=[],d;if(0<a.pg){var e=O.B(a.wd().wd(),this.g.A.Fa,this.g.getConfiguration().Sf());e=new Ma(e);for(d=0;d<a.pg;++d)if(e.fa()<e.size()-4){var f=e.fa(),g=e.getUint32(),h=e.getUint32();var k=Na.FA(h,e,g,this);if(void 0!==b&&null!==b)if(h=b(k),void 0!==h&&null!==h)for(k=0;k<h.length;k++)c.push(h[k]);else c.push(k);else c.push(k);
e.seek(f+g)}}else c=[];return c},h:function(a){var b=window.document.getElementById(a);if(null===b)throw Error("Canvas "+a+" does not exist");return b},Cp:function(a){a=a.getContext("2d");if(null===a)throw Error("Creating graphics context failed");return a},HE:function(){var a,b=this.g.oa;if(null!==b)for(a=0;a<b.wa.P.length;++a){var c=b.wa.ic(a);if(null!==c.info().ls(0)){var d=b.rd;if(null!==d){var e=this.Rf();e.save();d.Fn(this,c);e.restore()}}}},dF:function(){return(new Ga).fz("OriginalDevicePixelRatio")?
r.we()/this.MK():r.we()}};var Oa;Oa=function(a,b,c){this.Vh=!1;this.xl=a;this.Ka=b;this.jD=new ya(this.xl);this.jf=new ya(this.Ka);this.hi=c};Oa.prototype={qN:function(a){this.Vh=a},size:function(){return this.hi}};var ya;ya=function(a){this.Qh=null;this.Ml="#ffffff";this.Gv=!1;this.km="#000000";this.Sh=!1;this.le=.5;this.Cx="#000000";this.ge="12px Arial";this.Lh=12;a.font=this.ge;this.Ba=a;this.Jv=this.Iv=-1;this.Eq=new t(0,0);this.Aq=new t(0,0)};
ya.prototype={NN:function(){this.Xg(this.Ba)},Xg:function(a){null!==a&&void 0!==a&&(this.Ba=a,this.apply(),this.iu())},ts:function(a,b){this.Ml=a;this.Gv=b;this.Ba.fillStyle=this.Ml},ws:function(a,b,c,d,e,f){this.le=a;this.km=b;this.Pe=c;this.Ae=d;this.Be=e;this.ff=f;this.Ba.strokeStyle=this.km;this.Ba.lineWidth=Math.max(1,this.le);this.Ba.lineCap=this.Ae;this.Ba.lineJoin=this.Be;this.Ba.miterLimit=this.ff;"function"===typeof this.Ba.setLineDash?(this.Sh=!1,this.iu()):this.Sh=5===this.Pe},TN:function(a,
b){if("number"!==typeof a)throw new TypeError("Expected numeric value");if("number"!==typeof b)throw new TypeError("Expected numeric value");this.Iv=a;this.Jv=b},oA:function(a,b,c){this.ge=a;this.Lh=b;this.Cx=c},apply:function(){this.Ba.fillStyle!==this.Ml&&(this.Ba.fillStyle=this.Ml);this.Ba.strokeStyle!==this.km&&(this.Ba.strokeStyle=this.km);this.Ba.lineWidth!==this.le&&(this.Ba.lineWidth=this.le);this.Ba.lineCap!==this.Ae&&(this.Ba.lineCap=this.Ae);this.Ba.lineJoin!==this.Be&&(this.Ba.lineJoin=
this.Be);this.Ba.miterLimit!==this.ff&&(this.Ba.miterLimit=this.ff)},wi:function(){return this.ge},Vr:function(){return null===this.Qh?this.Gv:this.Qh.Jp},Tf:function(){return null!==this.Qh},kN:function(a){this.Qh=a},Ik:function(){this.Qh=null;this.apply()},bn:function(a){this.Ba.fillStyle=this.Qh.GK(this.Ba,a)},cA:function(a){this.Lh=a},ag:function(a){this.ge=a},iu:function(){"function"===typeof this.Ba.setLineDash&&(0===this.Pe&&this.Ba.setLineDash([]),1===this.Pe&&this.Ba.setLineDash([8,3]),2===
this.Pe&&this.Ba.setLineDash([3,3]),3===this.Pe&&this.Ba.setLineDash([8,3,3,3]),4===this.Pe&&this.Ba.setLineDash([8,3,3,3,3,3]),5===this.Pe&&(this.Sh=!0,this.Ba.setLineDash([0,0])))}};var wa;wa=function(){this.hk=[];this.bj=[]};wa.prototype={Jn:function(a){return this.hk.length>a?this.hk[a]:null},yJ:function(a,b){this.hk[a]=b},hM:function(a){this.hk.length>a&&(this.hk[a]=null)},qr:function(){return 0<this.bj.length?this.bj[this.bj.length-1]:-1},LL:function(a){this.bj.push(a)},JL:function(){return this.bj.pop()}};
var Pa;Pa=function(a,b,c,d,e,f){try{this.h(a,b,c,d,e,f)}catch(g){throw Error("Could not initialize the tooltip style. Error: "+g);}};Pa.prototype={h:function(a,b,c,d,e,f){this.Font=new ma(b+"px "+a);this.jt=I.$a(c);this.Ni=d;this.Rs=I.$a(e);this.ht=I.$a(f)}};var Qa;Qa=function(){};Qa.h="4.4.0.0";Qa.m=Qa.h;var Webvisu;
Webvisu=function(a,b,c,d,e){this.Of=C.mC();this.mG();v.info("Webvisualization starting");v.info("Version: "+Qa.m);this.KD();this.Gl=this.Mf=this.he=this.N=this.oa=this.Pd=null;this.sa=d;this.hh=!1;void 0!==e&&e?(this.Ib=new Configuration,this.Dc=this.hh=this.Ib.SemiTransparencyActive=!0):this.pG(a,b,c,d)};window.Webvisu=Webvisu;
Webvisu.prototype={ea:function(){return this.Nc.isActive()?this.Nc:this.tl},openDialog:function(a,b){this.Nc.uJ(a,b)},hc:function(){return this.BF},mb:function(){return this.lc},RJ:function(a){this.Nc.cM(a)},fO:function(a){this.Nc.ML(a)},nK:function(){return this.Nc.KL()},Xz:function(a){this.pv=a},uN:function(a){this.aw=a},pG:function(a,b,c,d){this.zp=[];this.np=[];this.lc=u.mb();this.Id=new Ra(this);this.Kq();this.Pm=new Sa;this.bb=new va(this,a,b,c,d);this.Qp();this.uu=new ea(this);new pa(this);
this.nm=new qa(this);this.Hh=new Ta(this);this.BF=new Ua;this.tl=Va.QA(this.uu.py(Wa.LC));this.Nc=Va.HA(this.uu.py(Wa.TA));this.Tb=new Xa(this);this.Fd=new Ya(this);this.nG(this.bb.Rf().canvas.id);this.eo=new H;this.Lb=new Za;this.Ih=new $a(this);this.lv=new ab(this);a=this.AK();this.ii=null;this.tb=new bb(new Configuration);this.Dc||(0<a?this.jk("Loading Webvisualization (delayed)"):this.jk("Loading Webvisualization"));this.Hl=null;this.pv=!0;this.aw="";this.hb=-1;0<a&&null!==this.ii?this.K(new cb(this),
a):(this.Je=new cb(this),this.jv())},jv:function(){var a=this.Je;null!==this.Hl&&(null!==this.vb&&this.vb.push(this.Hl),this.Hl=null);this.Je=null;try{a.j()}catch(b){this.error("Unexpected Exception: "+b)}},Kq:function(){this.vb=this.Ib=this.i=this.A=null;this.Pw=!1;null!==this.oa&&(this.oa.jb(),this.oa=null);this.Id.Xr()&&this.Id.close();null!==this.Pd&&this.Pd.detach();WebvisuExtensionMgr.dK()},Qp:function(){var a=this;window.addEventListener("unload",function(b){a.iH(b)},!1)},nG:function(a){window.WebvisuAutotestInst=
new WebvisuAutotest(this,a);window.WebvisuAutotest_raiseMouse=window.WebvisuAutotestInst.raiseMouse;window.WebvisuAutotest_raiseKey=window.WebvisuAutotestInst.raiseKey;window.WebvisuExtensionMgr=WebvisuExtensionMgr;WebvisuExtensionMgr.FN(this.sa);window.WebvisuExtensionMgr_register=window.WebvisuExtensionMgr.register;window.WebvisuExtensionMgr_openControlRelative=window.WebvisuExtensionMgr.openControlRelative;window.WebvisuInst=this},uk:function(a){this.np.push(a)},BK:function(){var a=this.np;this.np=
[];return a},Wm:function(a){this.zp.push(a)},FK:function(){var a=this.zp;this.zp=[];return a},mG:function(){var a=C.$k(this.Of,"CFG_LogLevel");"TRACE"===a?v.J(db.Eo):"DEBUG"===a?v.J(db.Yn):v.J(db.Xk)},jk:function(a){var b=0;null!==this.ii&&this.iy();if(!this.LK()){""!==this.$y()&&(b=5E3);var c=this.Dc;if("The maximum number of visualization clients is already connected. Please try again later."===a||"Not enough memory in the PLC to create the client."===a)c=!0;this.ii=new eb(a,this.bb,c,b)}},iy:function(){null!==
this.ii&&this.ii.close();this.ii=null},Xa:function(){return new fb(this)},ib:function(a){a=void 0!==a?a:this.A;return null===a?new gb(!0,E.va,5E4):new gb(a.Fa,a.dh,a.CommBufferSize)},setConfiguration:function(a){this.hh||("TRACE"===a.LogLevel?v.J(db.Eo):"DEBUG"===a.LogLevel?v.J(db.Yn):"INFO"===a.LogLevel?v.J(db.Xk):"WARNING"===a.LogLevel?v.J(db.Yt):"ERROR"===a.LogLevel?v.J(db.ft):"FATAL"===a.LogLevel?v.J(db.aB):v.warn("Unexpected loglevel: "+a.LogLevel),this.Ib=a,this.tb=new bb(a),this.Ib.TouchHandlingActive&&
(this.Mf=new hb,this.he=new ib(this.getConfiguration()),this.oa=new jb(this,new kb(this)),this.N=new lb),this.nm.cO(this.Ib.HandleTouchEvents||this.Ib.TouchHandlingActive),this.Ib.BestFit&&!this.Ib.WorkaroundDisableResizeHandling&&(null===this.Pd&&(this.Pd=new mb(this)),this.Pd.ur()),this.sa&&this.Ib.BestFit&&(this.mb().style.overflow="hidden"),this.Dc&&(this.eo.ProgrammingSystemModeErrorText=a.ProgrammingSystemModeErrorText,this.eo.ProgrammingSystemModeWaitingText=a.ProgrammingSystemModeWaitingText,
this.jk(this.Ib.ProgrammingSystemModeWaitingText)))},xe:function(){null!==this.Pd&&this.Pd.xe()},getConfiguration:function(){return this.Ib},lA:function(a){!window.btoa&&a&&(v.warn("POST data in header should be done but is not supported by the browser"),a=!1);this.Pw=a},OM:function(a){this.A=a},Ki:function(a){null===a?this.i=null:this.i=a},$y:function(){var a=location.hash;var b="";""!==a&&(b=a.split("CKT=").pop().split("#")[0]);return b},LK:function(){var a=location.search;return""!==a&&r.qb(a,
G.h)?!0:!1},AK:function(){var a=location.search;var b=0;""!==a&&(a=a.split("CFG_DelayedStart=").pop().split("?")[0],b=parseInt(a,10));return b},Rr:function(){var a=location.search;var b="";""!==a&&(b=a.split("CFG_Lang=").pop().split("?")[0],b=b.split("&")[0]);return b},Ty:function(){var a=location.search;return""!==a&&r.qb(a,"BRLG")?!0:!1},HK:function(){var a=location.search;return""!==a&&r.qb(a,"RLLG")?!0:!1},Lz:function(){var a=location.href;if(!r.qb(a,G.h)){var b=r.qb(a,"?")?"&":"?";a+=b+G.h}location.assign(a)},
Kz:function(a,b,c){var d=location.href,e,f="";if(r.qb(d,"CFG_Lang")){for(b=e=d.indexOf("CFG_Lang");"&"!==d.charAt(e)&&e<d.length;)e++;b=d.substring(b,e);""!==a&&(f="CFG_Lang="+a);d=d.replace(b,f);r.qb(d,G.h)||""===a||(d+="&"+G.h)}else""!==a&&(f=r.qb(d,"?")?"&":"?",d+=f+"CFG_Lang="+a,b&&(d+="&BRLG"),r.qb(d,G.h)||(d+="&"+G.h));c&&(f="&BRLG",r.qb(d,f)&&(d=d.replace(f,"")));r.qb(d,"RLLG")||(d+="&RLLG");location.assign(d)},Cn:function(){return this.Je instanceof nb},K:function(a,b){this.Je=a;0>=b&&(b=
0);this.Tq(b)},YM:function(a){this.Hl=a},xI:function(a){this.Je=a},Z:function(){return this.bb},error:function(a){if(!this.hh){this.Dc||v.error(a);var b=null!==this.Ib?this.Ib.ErrorReconnectTime:1E4;v.info("Will restart in "+b+"ms");null!==this.A&&(this.Gl=new ob(this.A,this.Ib));this.Kq();this.XH();if(this.Dc){var c=this.eo.ProgrammingSystemModeErrorText;window.ProgrammingSystemAccess&&window.ProgrammingSystemAccess.errorOccurred(c,a)}else c="An error happened; will automatically restart";if("The maximum number of visualization clients is already connected. Please try again later."===
a||"Not enough memory in the PLC to create the client."===a)c=a;this.jk(c);this.K(new pb(this),b)}},tL:function(){this.Gs("The webvisualization license expired.","License Expired")},Gs:function(a,b){this.hh||(v.warn(a+" Webvisualization is stopped"),this.jk(b),this.Kq(),this.xI(new pb(this)))},XM:function(a){this.vb=a},Tq:function(a){var b=this;this.hb=window.setTimeout(function(){b.jv()},a)},Yc:function(a){null!==this.vb&&(this.vb.push(a),null!==this.Je&&this.Je.vr()&&(clearTimeout(this.hb),this.Tq(0)))},
iH:function(){if(!this.Dc){var a=this.A;null===a&&null!==this.Gl&&this.Gl.jO()&&(a=this.Gl.yh);null!==a&&a.la!==E.m&&a.dh!==E.va&&(new ta(this,a)).vM()}},XH:function(){var a=this.bb.Ak(),b;for(b=0;20>b;++b)a.restore()},KD:function(){C.Ri(this.Of,"ProgrammingSystemMode",!1)?(this.Dc=!0,C.Ri(this.Of,"ProgrammingSystemModeCefSharp",!1)&&CefSharp.BindObjectAsync("ProgrammingSystemAccess")):this.Dc=!1},changeUpdateRate:function(a){null!==this.Ib&&(a<this.Ib.UpdateRate&&null!==this.Je&&(clearTimeout(this.hb),
this.Tq(0)),this.Ib.UpdateRate=a)}};var WebvisuAutotest;WebvisuAutotest=function(a,b){this.g=a;this.AD=b;this.bq=this.aq=0};
WebvisuAutotest.prototype={raiseMouse:function(a,b,c){var d=window.document.elementFromPoint(b,c);this.aq=b;this.bq=c;var e={bubbles:!0,cancelable:"mousemove"!==a,view:window,detail:0,screenX:b,screenY:c,clientX:b,clientY:c,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:d};if(r.Gb()){a=this.rA(a);var f={};this.kz(f,e,d);f.pointerType="mouse";f=new PointerEvent(a,f)}else f=window.document.createEvent("MouseEvents"),f.initMouseEvent(a,e.bubbles,e.cancelable,e.view,e.detail,e.screenX,
e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,d);this.zy(f,b,c,d);!u.J(this.g)||"mouseup"!==a&&"pointerup"!==a||(a=new MouseEvent("click"),d.dispatchEvent(a))},raiseTouch:function(a,b,c,d){var e=window.document.elementFromPoint(b,c);d={bubbles:!0,cancelable:"touchmove"!==a,view:window,detail:0,screenX:b,screenY:c,clientX:b,clientY:c,pointerId:d,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:e};a=this.rA(a);var f={};this.kz(f,d,e);f.pointerId=d.pointerId;
f.pointerType="touch";a=new PointerEvent(a,f);this.zy(a,b,c,e)},kz:function(a,b,c){a.isPrimary=!0;a.bubbles=b.bubbles;a.cancelable=b.cancelable;a.view=b.view;a.detail=b.detail;a.screenX=b.screenX;a.clientX=b.clientX;a.screenY=b.screenY;a.clientY=b.clientY;a.ctrlKey=b.ctrlKey;a.altKey=b.altKey;a.shiftKey=b.shiftKey;a.metaKey=b.metaKey;a.button=b.button;a.relatedTarget=c},zy:function(a,b,c,d){Object.defineProperty(a,"layerX",{value:b});Object.defineProperty(a,"layerY",{value:c});a.button=1;a.which=
1;d.dispatchEvent(a)},rA:function(a){switch(a){case "touchmove":case "mousemove":return"pointermove";case "touchup":case "mouseup":return"pointerup";case "touchdown":case "mousedown":return"pointerdown"}},raiseKey:function(a,b,c,d,e){var f=this.g.Id.uc();null===f&&u.J(this.g)&&(f=window.document.elementFromPoint(this.aq,this.bq));if(u.J(this.g)&&9===b&&"keydown"===a){var g=f.tabIndex,h=c?-1:1,k=this;document.querySelectorAll("input, button").forEach(function(q){if(q.tabIndex===g+h){var n=q.getBoundingClientRect();
k.aq=n.x+n.width/2;k.bq=n.y+n.height/2;q.focus()}})}else null!==f?this.Up(b)?this.Yw(f,a,b,c,d,e,!0):this.IH(f,b,a,c):this.Yw(window.document.getElementById(this.AD),a,b,c,d,e,!1)},Up:function(a){return 13===a||27===a||37===a||38===a||39===a||40===a},IH:function(a,b,c,d){if("keypress"===c){c=a.selectionStart;var e=a.selectionEnd;b=String.fromCharCode(b);d||(b=b.toLowerCase());void 0===a.value&&(a.value="");a.value=a.value.substr(0,c)+b+a.value.substr(e);c===e&&this.DF(a);this.tI(a,c+1)}},tI:function(a,
b){a.setSelectionRange?(a.focus(),a.setSelectionRange(b,b)):a.createTextRange&&(a=a.createTextRange(),a.collapse(!0),a.moveEnd("character",b),a.moveStart("character",b),a.select())},DF:function(a){var b=0;if(document.selection)a.focus(),b=document.selection.createRange(),b.moveStart("character",-a.value.length),b=b.text.length;else if(a.selectionStart||"0"===a.selectionStart)b=a.selectionStart;return b},GG:function(a,b){return b||this.Up(a)?a:String.fromCharCode(a).toLowerCase().charCodeAt(0)&255},
Yw:function(a,b,c,d,e,f,g){var h,k,q=c;"keypress"===b&&(q=this.GG(c,d));if(void 0!==window.document.createEventObject)c=document.createEvent("Events"),c.initEvent(b,!0,!0),c.which=q,c.keyCode=q,c.shiftKey=d,c.ctrlKey=f,c.altKey=e,c.metaKey=!1;else{var n=k=h=q;c=window.document.createEvent("KeyboardEvent");void 0===c.initKeyboardEvent?c.initKeyEvent(b,!0,!0,null,f,e,d,!1,h,k,n,a):c.initKeyboardEvent(b,!0,!0,null,f,e,d,!1,h,k,n,a);delete c.keyCode;Object.defineProperty(c,"keyCode",{value:q});delete c.charCode;
Object.defineProperty(c,"charCode",{value:0});delete c.shiftKey;Object.defineProperty(c,"shiftKey",{value:d});delete c.ctrlKey;Object.defineProperty(c,"ctrlKey",{value:f});delete c.altKey;Object.defineProperty(c,"altKey",{value:e});delete c.metaKey;Object.defineProperty(c,"metaKey",{value:!1});delete c.which;d=q;if("keypress"===b&&this.Up(q)&&13!==q||g)d=0;Object.defineProperty(c,"which",{value:d});delete c.target;Object.defineProperty(c,"target",{value:a})}a.dispatchEvent(c)}};var WebvisuExtensionMgr;
(function(){var a=function(){this.tp=[];this.sh={}};a.prototype={register:function(b){if(null===b)throw Error("null value not expected");if("function"!==typeof b.instantiateIf)throw Error("function instantiateIf of extensionFactory expected");this.tp.push(b)},FN:function(b){this.sa=b},openControlRelative:function(b,c,d,e,f,g){if(null===b)throw Error("null value not expected");if("number"!==typeof c)throw new TypeError("Expected numeric value");if("number"!==typeof d)throw new TypeError("Expected numeric value");
if("number"!==typeof e)throw new TypeError("Expected numeric value");if("number"!==typeof f)throw new TypeError("Expected numeric value");if(null===g)throw Error("null value not expected");c=new N(c,d,c+e,d+f);d=u.Jo(g);c=c.Mb(d.s,d.u);this.sa?g.appendChild(b):(u.cd(b,c),b.style.zIndex=300,g.parentNode.appendChild(b));g.gt=b},oO:function(b){var c;for(c=0;c<this.tp.length;++c){var d=this.tp[c].instantiateIf(b);if(null!==d&&void 0!==d){if(this.jJ(d))return d;break}}return null},dK:function(){var b;
for(b=0;b<this.sh.length;++b)this.sh[b]&&this.Ir(b);this.sh=[]},VJ:function(b,c,d,e){b.create(d.s,d.u,d.D(),d.C(),e);this.sh[c]=b},Ir:function(b){var c=this.Wl(b);null!==c&&(c.destroy(),delete this.sh[b])},UJ:function(b,c){b=this.Wl(b);null!==b&&b.setVisibility(c)},TJ:function(b,c){b=this.Wl(b);null!==b&&b.move(c.s,c.u,c.D(),c.C())},SJ:function(b,c,d){b=this.Wl(b);return null===b?null:b.invoke(c,d)},Wl:function(b){var c=this.sh[b];return c?c:(v.warn("Not existing extension with id "+b+" accessed; ignored"),
null)},jJ:function(b){return this.gj(b,"create")&&this.gj(b,"setVisibility")&&this.gj(b,"move")&&this.gj(b,"invoke")&&this.gj(b,"destroy")?!0:!1},gj:function(b,c){return"function"!==typeof b[c]?(v.warn("Extension object is missing an implementation of '"+c+"'"),!1):!0}};WebvisuExtensionMgr=new a})();var p;p=function(a){void 0===a&&(a=10);this.ma=new ArrayBuffer(a);this.jd=new Uint8Array(this.ma);this.Wa=0};p.B=function(a){return r.$i()?new ha:new p(a)};
p.prototype={YH:function(){this.hx(this.XG(this.ma.byteLength))},hx:function(a){var b=this.jd;this.ma=new ArrayBuffer(a);this.jd=new Uint8Array(this.ma);for(a=0;a<this.Wa;++a)this.jd[a]=b[a]},XG:function(a){return 500>a?2*a:Math.floor(1.3*a)},Im:function(a,b){this.jd[a]=b},Oz:function(a){a>this.ma.byteLength&&this.hx(a)},Ym:function(a){this.Wa>=this.ma.byteLength&&this.YH();var b=this.Wa;this.Wa++;this.Im(b,a)},an:function(a,b,c){var d=new Uint8Array(a);this.Oz(this.size()+c);if(200<c&&0===b%4&&0===
this.Wa%4&&!r.zo()){var e=Math.floor(c/4);var f=Math.floor(this.Wa/4);a=new Uint32Array(a,4*Math.floor(b/4),e);var g=new Uint32Array(this.ma,4*f,e),h=c-4*e;for(f=0;f<e;++f)g[f]=a[f];for(f=0;f<h;++f)this.jd[this.Wa+f+4*e]=d[b+f+4*e]}else if(d.slice)this.jd.set(d.slice(b,b+c),this.Wa);else for(f=0;f<c;++f)this.jd[this.Wa+f]=d[b+f];this.Wa+=c},qs:function(a,b){this.Im(a,b)},My:function(a){return this.jd[a]},size:function(){return this.Wa},wd:function(){var a=new ArrayBuffer(this.Wa),b=new Uint8Array(this.ma),
c=new Uint8Array(a);if(b.slice)c.set(b.slice(0,this.Wa),0);else{var d;for(d=0;d<this.Wa;++d)c[d]=b[d]}return a}};var ha;
(function(){function a(b){return String.fromCharCode((b>>4)+65)+String.fromCharCode((b&15)+65)}ha=function(){this.ma="";this.Wa=0};ha.prototype={Im:function(b,c){var d=null,e=null;0<b&&(d=this.ma.substr(0,2*b));b<this.Wa-1&&(e=this.ma.substr(2*b+2,this.ma.length-2*b-2));b="";null!==d&&(b=d);b=b.concat(a(c));null!==e&&(b=b.concat(e));this.ma=b},Oz:function(){},Ym:function(b){this.ma=this.ma.concat(a(b));this.Wa++},EJ:function(b){var c="",d;for(d=0;d<b.length;++d)c=c.concat(a(b.charCodeAt(d)));this.ma=
this.ma.concat(c);this.Wa+=c.length/2},an:function(b,c,d){this.ma=this.ma.concat(b.substr(2*c,2*d));this.Wa+=d},qs:function(b,c){this.Im(b,c)},My:function(b){return this.ma.charCodeAt(2*b)-65<<4|this.ma.charCodeAt(2*b+1)-65},size:function(){return this.Wa},wd:function(){return this.ma}}})();var O;
(function(){function a(g,h,k){return function(){if(0===this.o%k&&(1===k||this.ga))try{return(new g[h+"Array"](this.ma,this.o,1))[0]}catch(q){}return null}}function b(g,h,k){return function(){var q=this["getOptimized"+h]();null===q&&(q=this["_get"+h]());this.o+=k;return q}}function c(g,h,k){O.prototype["getOptimized"+h]=a(this,h,k);O.prototype["get"+h]=b(this,h,k)}O=function(g,h,k,q,n){if(!(g instanceof ArrayBuffer))throw new TypeError("BinaryReader requires an ArrayBuffer");if(void 0===h)throw Error("Byteorder must be explicitly assigned");
void 0===k&&(k=(new Configuration).Sf());void 0===q&&(q=0);void 0===n&&(n=g.byteLength);if(!(k instanceof aa))throw new TypeError("BinaryReader requires a WebVisuTextDecoder");if(0>q)throw Error("Invalid start offset");if(0===n||q+n>g.byteLength)throw Error("Valid data range exceeded");this.ga=h;this.lf=n;this.ma=g;this.o=q;this.jd=new Uint8Array(this.ma);this.Rd=k;this.M=new qb(this,this.ga)};O.B=function(g,h,k,q,n){return r.UA()?new rb(g,h,k,q,n):r.$i()?new sb(g,h,k,q,n):new O(g,h,k,q,n)};O.prototype=
{Ci:function(){return this.ga},Li:function(){return this.Rd},Mk:function(g){this.Rd=new aa(g)},ia:function(g,h){var k=g*(h?2:1);if(0>g||this.o+k>this.ma.byteLength)throw Error("INDEX_SIZE_ERR: DOM Exception 1");g=this.M.Hz(this.ma,this.o,g,k,h,this.Rd);this.o+=k;return g},se:function(g){return this.M.se(g)},ui:function(){return String.fromCharCode(this.getUint8())},bf:function(){return this.o>=this.lf},fa:function(){return this.o},seek:function(g){this.o=g},size:function(){return this.lf},m:function(){return this.M.vy()},
h:function(){return this.M.uy()},va:function(){return this.M.xy()},df:function(){return this.M.Hr()},J:function(){return this.M.wy()},cd:function(){return this.M.Gr()},Fb:function(){return this.M.yy()},Ya:function(){return this.M.xd()},ef:function(){return this.M.yd()},Da:function(g){return this.jd[g]},getUint8:function(){var g=this.Da(this.o);this.o++;return g},ti:function(){return this.ma}};var d={Int8:1,Int16:2,Int32:4,Uint16:2,Uint32:4,Float32:4,Float64:8},e;for(e in d)if(d.hasOwnProperty(e)){c(this,
e,d[e]);var f="_getFloat64";O.prototype[f]=O.prototype.m;f="_getFloat32";O.prototype[f]=O.prototype.h;f="_getInt64";O.prototype[f]=O.prototype.Ya;f="_getUint64";O.prototype[f]=O.prototype.ef;f="_getInt32";O.prototype[f]=O.prototype.va;f="_getUint32";O.prototype[f]=O.prototype.df;f="_getInt16";O.prototype[f]=O.prototype.J;f="_getUint16";O.prototype[f]=O.prototype.cd;f="_getInt8";O.prototype[f]=O.prototype.Fb}})();var Ma;Ma=function(a){this.M=a};
Ma.prototype={Ci:function(){return this.M.Ci()},Li:function(){return this.M.Li()},Mk:function(a){this.M.Mk(a)},ia:function(a,b){return this.M.ia(a,b)},se:function(a){return this.M.se(a)},ui:function(){return this.M.ui()},bf:function(){return this.M.bf()},fa:function(){return this.M.fa()},seek:function(a){this.M.seek(a)},size:function(){return this.M.size()},getFloat64:function(){this.fd(8);return this.M.getFloat64()},getFloat32:function(){this.fd(4);return this.M.getFloat32()},getInt32:function(){this.fd(4);
return this.M.getInt32()},getUint32:function(){this.fd(4);return this.M.getUint32()},getInt16:function(){this.fd(2);return this.M.getInt16()},getUint16:function(){this.fd(2);return this.M.getUint16()},yd:function(){this.fd(8);return this.M.yd()},xd:function(){this.fd(8);return this.M.xd()},getInt8:function(){return this.M.getInt8()},getUint8:function(){return this.M.getUint8()},Da:function(a){return this.M.Da(a)},ti:function(){return this.M.ti()},fd:function(a){if(8===a||4===a||2===a){var b=this.M.fa();
0!==b%a&&this.M.seek(b+a-b%a)}}};var rb;
rb=function(a,b,c,d,e){if(!(a instanceof ArrayBuffer))throw new TypeError("BinaryReader_DataView requires an ArrayBuffer");if(void 0===b)throw Error("Byteorder must be explicitly assigned");void 0===c&&(c=(new Configuration).Sf());void 0===d&&(d=0);void 0===e&&(e=a.byteLength);if(!(c instanceof aa))throw new TypeError("BinaryReader_DataView requires a WebVisuTextDecoder");if(0>d)throw Error("Invalid start offset");if(0===e||d+e>a.byteLength)throw Error("Valid data range exceeded");this.ga=b;this.sd=
new DataView(a,0,e+d);this.lf=e;this.ma=a;this.o=d;this.Rd=c;this.M=new qb(this,this.ga)};
rb.prototype={Ci:function(){return this.ga},Li:function(){return this.Rd},Mk:function(a){this.Rd=new aa(a)},ia:function(a,b){var c=a*(b?2:1);if(0>a||2*(this.o+c)>this.ma.length)throw Error("INDEX_SIZE_ERR: DOM Exception 1");a=this.M.Hz(this.ma,this.o,a,c,b,this.Rd);this.o+=c;return a},se:function(a){return this.M.se(a)},ui:function(){return String.fromCharCode(this.getUint8())},bf:function(){return this.o>=this.lf},fa:function(){return this.o},seek:function(a){this.o=a},size:function(){return this.lf},
getFloat64:function(){var a=this.sd.getFloat64(this.o,this.ga);this.o+=8;return a},getFloat32:function(){var a=this.sd.getFloat32(this.o,this.ga);this.o+=4;return a},xd:function(){if("function"===typeof this.sd.xd){var a=this.sd.xd(this.o,this.ga);this.o+=8}else a=this.M.xd();return a},yd:function(){if("function"===typeof this.sd.yd){var a=this.sd.yd(this.o,this.ga);this.o+=8}else a=this.M.yd();return a},getInt32:function(){var a=this.sd.getInt32(this.o,this.ga);this.o+=4;return a},getUint32:function(){var a=
this.sd.getUint32(this.o,this.ga);this.o+=4;return a},getInt16:function(){var a=this.sd.getInt16(this.o,this.ga);this.o+=2;return a},getUint16:function(){var a=this.sd.getUint16(this.o,this.ga);this.o+=2;return a},getInt8:function(){var a=this.sd.getInt8(this.o);this.o++;return a},getUint8:function(){var a=this.Da(this.o);this.o++;return a},Da:function(a){return this.sd.getUint8(a)},ti:function(){return this.ma}};var sb;
sb=function(a,b,c,d,e){if("string"!==typeof a)throw new TypeError("BinaryReader_StringBased expects a string");if(void 0===b)throw Error("Byteorder must be explicitly assigned");void 0===c&&(c=(new Configuration).Sf());void 0===d&&(d=0);void 0===e&&(e=a.length/2);if(!(c instanceof aa))throw new TypeError("BinaryReader requires a WebVisuTextDecoder");if(0>d)throw Error("Invalid start offset");if(0===e||d+e>a.length/2)throw Error("Valid data range exceeded");this.ga=b;this.lf=e;this.ma=a;this.o=d;this.Rd=
c;this.M=new qb(this,b)};
sb.prototype={Ci:function(){return this.ga},Li:function(){return this.Rd},Mk:function(a){this.Rd=new aa(a)},ia:function(a,b){var c=a*(b?2:1);if(0>a||2*(this.o+c)>this.ma.length)throw Error("INDEX_SIZE_ERR: DOM Exception 1");var d=Array(a);if(b){if(this.ga)for(b=0;b<a;++b){var e=2*b+this.o;d[b]=(this.Da(e+1)<<8)+this.Da(e)}else for(b=0;b<a;++b)e=2*b+this.o,d[b]=this.Da(e+1)+(this.Da(e)<<8);a=String.fromCharCode.apply(null,d)}else{for(b=this.o;b<this.o+a;++b)d[b-this.o]=this.Da(b);a=this.Rd.cK(d)}this.o+=
c;return a},se:function(a){return this.M.se(a)},ui:function(){return String.fromCharCode(this.getUint8())},bf:function(){return this.o>=this.lf},fa:function(){return this.o},seek:function(a){this.o=a},size:function(){return this.lf},getFloat64:function(){var a=this.M.vy();this.o+=8;return a},getFloat32:function(){var a=this.M.uy();this.o+=4;return a},xd:function(){return this.M.xd()},yd:function(){return this.M.yd()},getInt32:function(){var a=this.M.xy();this.o+=4;return a},getUint32:function(){var a=
this.M.Hr();this.o+=4;return a},getInt16:function(){var a=this.M.wy();this.o+=2;return a},getUint16:function(){var a=this.M.Gr();this.o+=2;return a},getInt8:function(){var a=this.M.yy();this.o++;return a},getUint8:function(){var a=this.Da(this.o);this.o++;return a},Da:function(a){return this.ma.charCodeAt(2*a)-65<<4|this.ma.charCodeAt(2*a+1)-65},ti:function(){return this.ma}};var qb;qb=function(a,b){this.ua=a;this.ga=b};
qb.prototype={se:function(a){var b=this.ua.fa(),c=0;if(a)for(;0!==this.ua.getUint16();)c++;else for(;0!==this.ua.getUint8();)c++;this.ua.seek(b);b=this.ua.ia(c,a);a?this.ua.getUint16():this.ua.getUint8();return b},vy:function(){var a=this.ua.fa(),b=this.ua.Da(this.Jb(a,0,8)),c=this.ua.Da(this.Jb(a,1,8)),d=this.ua.Da(this.Jb(a,2,8)),e=this.ua.Da(this.Jb(a,3,8)),f=this.ua.Da(this.Jb(a,4,8)),g=this.ua.Da(this.Jb(a,5,8)),h=this.ua.Da(this.Jb(a,6,8)),k=this.ua.Da(this.Jb(a,7,8));a=1-2*(b>>7);b=((b<<1&
255)<<3|c>>4)-(Math.pow(2,10)-1);c=(c&15)*Math.pow(2,48)+d*Math.pow(2,40)+e*Math.pow(2,32)+f*Math.pow(2,24)+g*Math.pow(2,16)+h*Math.pow(2,8)+k;return 1024===b?0!==c?NaN:Infinity*a:-1023===b?a*c*Math.pow(2,-1074):a*(1+c*Math.pow(2,-52))*Math.pow(2,b)},uy:function(){var a=this.ua.fa(),b=this.ua.Da(this.Jb(a,0,4)),c=this.ua.Da(this.Jb(a,1,4)),d=this.ua.Da(this.Jb(a,2,4)),e=this.ua.Da(this.Jb(a,3,4));a=1-2*(b>>7);b=(b<<1&255|c>>7)-127;c=(c&127)<<16|d<<8|e;return 128===b?0!==c?NaN:Infinity*a:-127===b?
a*c*Math.pow(2,-149):a*(1+c*Math.pow(2,-23))*Math.pow(2,b)},xy:function(){var a=this.Hr();return a>Math.pow(2,31)-1?a-Math.pow(2,32):a},Hr:function(){var a=this.ua.fa(),b=this.ua.Da(this.Jb(a,0,4)),c=this.ua.Da(this.Jb(a,1,4)),d=this.ua.Da(this.Jb(a,2,4));a=this.ua.Da(this.Jb(a,3,4));return b*Math.pow(2,24)+(c<<16)+(d<<8)+a},wy:function(){var a=this.Gr();return a>Math.pow(2,15)-1?a-Math.pow(2,16):a},Gr:function(){var a=this.ua.fa(),b=this.ua.Da(this.Jb(a,0,2));a=this.ua.Da(this.Jb(a,1,2));return(b<<
8)+a},yy:function(){var a=this.ua.Da(this.ua.fa());return a>Math.pow(2,7)-1?a-Math.pow(2,8):a},Hz:function(a,b,c,d,e,f){var g=null;if(e){if(this.ga&&0===b%2)try{g=new Int16Array(a,b,c)}catch(h){}if(null===g)if(g=new Int16Array(Array(c)),b=new Uint8Array(a,b,d),this.ga)for(a=0;a<c;++a)g[a]=(b[2*a+1]<<8)+b[2*a];else for(a=0;a<c;++a)g[a]=b[2*a+1]+(b[2*a]<<8);b=[];for(a=0;a<c;++a)b[a]=g[a];return String.fromCharCode.apply(null,b)}g=new Int8Array(a,b,c);return f.decode(g)},yd:function(){var a=this.ua.getUint32(),
b=this.ua.getUint32();return this.ga?a+b*Math.pow(2,32):a*Math.pow(2,32)+b},xd:function(){var a=this.ua.fa(),b=this.ua.getUint32(),c=this.ua.getUint32();if(this.ga){var d=b;b=c}else d=c;if(0===(b&2147483648))return this.ua.seek(a),this.yd();a=(~d>>>0)+1;d=~b;4294967296<=a&&(a-=4294967296,d+=1);return-1*(a+Math.pow(2,32)*d)},Jb:function(a,b,c){return a+(this.ga?c-b-1:b)}};var P;
P=function(a,b,c){if(!(a instanceof p))throw new TypeError("BinaryWriter expects a BinaryBuffer");if(void 0===b)throw Error("Byteorder must be explicitly assigned");this.qg=a;this.ga=b;this.Pc=-1;this.$q=c};P.B=function(a,b,c){null===c|void 0===c&&(c=(new Configuration).re());return r.$i()?new tb(a,b,c):new P(a,b,c)};
P.prototype={QI:function(a){var b=a.length/2,c;if(1!==b&&2!==b&&4!==b)throw Error("Unexpected size for swapping");for(c=0;c<b;++c){var d=a[c];a[c]=a[a.length-c-1];a[a.length-c-1]=d}},lg:function(a,b,c){var d=new ArrayBuffer(c);b=new b(d);d=new Uint8Array(d);b[0]=a;this.Po(d,c)},Po:function(a,b){var c;1<b&&!this.ga&&this.QI(a,b);for(c=0;c<b;++c)this.gu(a[c])},gu:function(a){-1!==this.Pc?(this.qg.qs(this.Pc,a),this.Pc++):this.qg.Ym(a)},seek:function(a){this.Pc=a},fa:function(){return-1!==this.Pc?this.Pc:
this.qg.size()},Zm:function(a){var b=[204,221],c;for(c=0;c<a;++c)this.Na(b[c%2])},Na:function(a){this.gu(a)},Vx:function(a){this.lg(a,Int8Array,1)},Cb:function(a){this.lg(a,Uint16Array,2)},tc:function(a){this.lg(a,Int16Array,2)},I:function(a){this.lg(a,Uint32Array,4)},td:function(a){this.lg(a,Int32Array,4)},$m:function(a){this.lg(a,Float32Array,4)},tr:function(a){this.lg(a,Float64Array,8)},Wx:function(a){var b=new ArrayBuffer(8);var c=new Uint8Array(b);b=new Uint32Array(b);b[0]=a&4294967295;b[1]=
a/4294967296;this.Po(c,8)},Ux:function(a){var b=new ArrayBuffer(8);var c=new Uint8Array(b);b=new Uint32Array(b);0<a&&(b[0]=a&4294967295|0,b[1]=a/4294967296|0);if(0>a){var d=~(-a&4294967295|0)+1|0;b[0]=d;b[1]=~(-a/4294967296|0)+!d|0}this.Po(c,8)},Qf:function(a){this.cj(a,!1)},Ub:function(a){this.cj(a,!0)},cb:function(a,b){return new ub(a,b,this.$q)},cj:function(a,b){for(var c,d=a.data(),e=0;e<a.length();++e)c=d[e],a.unicode()?this.Cb(c):this.Na(c);b&&(a.unicode()?this.Cb(0):this.Na(0))}};var tb;
tb=function(a,b,c){if(!(a instanceof ha))throw new TypeError("BinaryWriter expects a BinaryBuffer_StringBased");if(void 0===b)throw Error("Byteorder must be explicitly assigned");this.qg=a;this.ga=b;this.Pc=-1;this.$q=c};
tb.prototype={gd:function(a){if(-1!==this.Pc)for(var b=0;b<a.length;++b)this.qg.qs(this.Pc,a.charCodeAt(b)&255),this.Pc++;else this.qg.EJ(a)},seek:function(a){this.Pc=a},fa:function(){return-1!==this.Pc?this.Pc:this.qg.size()},Zm:function(a){var b=[204,221],c;for(c=0;c<a;++c)this.Na(b[c%2])},Na:function(a){this.gd(this.fe(a,8,!1))},Vx:function(a){this.gd(this.fe(a,8,!0))},Cb:function(a){this.gd(this.fe(a,16,!1))},tc:function(a){this.gd(this.fe(a,16,!0))},I:function(a){this.gd(this.fe(a,32,!1))},td:function(a){this.gd(this.fe(a,
32,!0))},Wx:function(a){var b=a/4294967296;this.gd(this.fe(a&4294967295,32,!1));this.gd(this.fe(b,32,!1))},Ux:function(a){if(0<a){var b=a&4294967295|0;var c=a/4294967296|0}0>a&&(b=c=~(-a&4294967295|0)+1|0,c=~(-a/4294967296|0)+!c|0);this.gd(this.fe(b,32,!1));this.gd(this.fe(c,32,!1))},$m:function(a){this.gd(this.fv(a,23,8))},tr:function(a){this.gd(this.fv(a,52,11))},Qf:function(a){this.cj(a,!1)},Ub:function(a){this.cj(a,!0)},cb:function(a,b){return new ub(a,b,this.$q)},cj:function(a,b){for(var c,d=
a.data(),e=0;e<a.length();++e)c=d[e],a.unicode()?this.Cb(c):this.Na(c);b&&(a.unicode()?this.Cb(0):this.Na(0))},fv:function(a,b,c){var d=Math.pow(2,c-1)-1,e=-d+1,f=e-b,g=parseFloat(a),h=isNaN(g)||-Infinity===g||Infinity===g?g:0,k=0,q=2*d+1+b+3,n=Array(q),B=0>(g=0!==h?0:g),A=Math.floor(g=Math.abs(g)),J=g-A,ja;for(a=q;a;n[--a]=0);for(a=d+2;A&&a;n[--a]=A%2,A=Math.floor(A/2));for(a=d+1;0<J&&a;(n[++a]=(1<=(J*=2))-0)&&--J);for(a=-1;++a<q&&!n[a];);if(n[(g=b-1+(a=(k=d+1-a)>=e&&k<=d?a+1:d+1-(k=e-1)))+1]){if(!(ja=
n[g]))for(J=g+2;!ja&&J<q;ja=n[J++]);for(J=g+1;ja&&0<=--J;(n[J]=!n[J]-0)&&(ja=0));}for(a=0>a-2?-1:a-3;++a<q&&!n[a];);(k=d+1-a)>=e&&k<=d?++a:k<e&&(k!==d+1-q&&k<f&&this.warn("encodeFloat::float underflow"),a=d+1-(k=e-1));if(A||0!==h)this.warn(A?"encodeFloat::float overflow":"encodeFloat::"+h),k=d+1,a=d+2,-Infinity===h?B=1:isNaN(h)&&(n[a]=1);g=Math.abs(k+d);J=c+1;for(c="";--J;c=g%2+c,g=g>>=1);J=g=0;a=(c=(B?"1":"0")+c+n.slice(a,a+b).join("")).length;for(b=[];a;J=(J+1)%8)g+=(1<<J)*c.charAt(--a),7===J&&
(b[b.length]=String.fromCharCode(g),g=0);b[b.length]=g?String.fromCharCode(g):"";return(this.ga?b:b.reverse()).join("")},fe:function(a,b,c){var d=[],e=Math.pow(2,b);if(c){if(c=-Math.pow(2,b-1),a>-c-1||a<c)this.Nx("encodeInt::overflow"),a=0}else if(a>e||0>a)this.Nx("encodeInt::overflow"),a=0;for(0>a&&(a+=e);a;a=Math.floor(a/256))d[d.length]=String.fromCharCode(a%256);for(b=-(-b>>3)-d.length;b;b--)d[d.length]=String.fromCharCode(0);return(this.ga?d:d.reverse()).join("")},Nx:function(a){throw Error(a);
}};var vb;vb=function(a,b,c){this.M=O.B(a,b,c,void 0,void 0)};vb.prototype={yi:function(){var a=0,b=0;do{var c=this.M.getUint8();a|=(c&127)<<b;b+=7}while(0!==(c&128));return a}};var wb;wb=function(a,b){this.Ee=P.B(a,b,void 0)};
wb.prototype={G:function(a,b){var c;b=void 0!==b?b:this.Vy(a);if(0===b)throw Error("Expected value for MBui greater then zero");var d=a;for(c=0;c<b-1;c++)this.Ee.Na(d&127|128),d>>=7;this.Ee.Na(d&127);if(0!==d>>7)throw Error("Value "+a+" cannot be written as an MBUI with "+b+" bytes");},Vy:function(a){var b=0;do a>>=7,b++;while(0<a);return b}};var xb;xb=function(a){16<=a&&(a=0);this.th=a};
xb.prototype={bA:function(a){16<=a&&(a=0);this.th=a},ad:function(){return 0===this.th},right:function(){return 0!==(this.th&1)},left:function(){return 0!==(this.th&2)},top:function(){return 0!==(this.th&4)},bottom:function(){return 0!==(this.th&8)}};var Va;Va=function(){};
Va.OA=function(a,b,c,d,e,f,g,h){var k=window.document.createElement("div");k.id="cdsClientObject";k.style.position="absolute";if(b)return new yb(k,new zb,h,a);if(c)return new Ab(k,new zb,h,a);var q=c=b=null;e&&(c=new Bb(g));d&&(b=this.gp());return f?(e&&(q=window.document.createElement("div"),q.id="cdsTouchScrollable",q.style.position="absolute",q.style.cssText+="outline: none; -webkit-tap-highlight-color: transparent;"),new Cb(k,new zb,h,b,c,new Db,q,a)):new Q(k,new zb,h,b,c,a)};
Va.GA=function(a,b,c,d){var e=window.document.createElement("div");a=a?window.document.createElement("div"):null;var f=this.gp(),g=new Bb(!1);e.id="cdsDialog";e.style.position="absolute";e.style.overflow="hidden";e.style.zIndex=F.$n;a&&(a.id="cdsModal",a.style.top="0",a.style.left="0",a.style.width="100%",a.style.height="100%",b&&(a.style.backgroundColor="rgb(0,0,0)",a.style.backgroundColor="rgba(0,0,0,0.4)"),a.style.zIndex=F.$n,a.style.position="fixed");return new Eb(e,new zb,f,g,a,b,c,d)};
Va.QA=function(a){var b=new Bb(!1);b.Bd(u.mb());b.$f(a);return b};Va.HA=function(a){var b=new Fb;b.Bd(u.mb());b.$f(a);return b};Va.MA=function(a,b){var c=this.gp(a?F.pC:F.LB),d;a&&(c.canvas.id="cdsSelectionCanvas",c.canvas.style.pointerEvents="none");b?d=this.YD():d=null;return new Gb(c,d)};
Va.YD=function(){var a=window.document.createElement("div");a.id="cdsClip";a.style.overflow="hidden";a.style.position="absolute";a.style.top="0 px";a.style.left="0 px";a.style.width="-1 px";a.style.height="-1 px";a.style.touchAction="none";a.style.zIndex=F.Zn;return a};
Va.gp=function(a){var b=window.document.createElement("canvas").getContext("2d");b.canvas.id="cdsCanvas";b.canvas.style.position="absolute";b.canvas.style.width="100%";b.canvas.style.height="100%";b.canvas.style.zIndex=void 0!==a?a:F.Zn;return b};Va.LA=function(a,b){return new Hb(a,b)};var zb;zb=function(){this.ne=null};zb.prototype={bA:function(a){this.ne=a},nz:function(){return 0!==(this.ne&1)},vK:function(){return 0!==(this.ne&2)}};var Hb;Hb=function(a,b){this.wa=[];this.oa=null;this.g=b;this.As(a)};
Hb.prototype={jb:function(a){var b=this.g.oa;null!==this.wa&&null!==b&&b.ks(a);null!==this.oa&&this.oa.jb()},handleEvent:function(a,b){return null!==this.oa?this.oa.handleEvent(a,b):!1},tk:function(){null!==this.oa&&this.oa.tk()},initialize:function(a,b,c){this.oa=new jb(a,new Ib(a,c,b));a=a.oa;null!==a&&(this.oa.g.N.dA(a.g.N.Mp),this.oa.g.N.On(a.g.N.Th));this.As(this.wa)},As:function(a){this.wa=a;if(null!==this.oa){this.oa.hy();for(a=0;a<this.wa.length;++a)this.oa.Xm(this.wa[a]);this.oa.ub instanceof
Ib&&(a=this.oa.ub.hn(),null!==a&&void 0!==a&&a instanceof Db&&a.uA(this))}},vO:function(a,b,c,d){var e=this.oa.wa.P.length,f,g=this.g.oa,h=null;for(f=0;f<e;++f){var k=this.oa.wa.ic(f);h=k.ba;var q=k.info().scroll().Oa();var n=k.info().zoom().Oa();q.Zg(new t(c,d));q.Yg(new t(a,b));n.ys(1);n.xs(1);k.U(R.ph)||k.oi(R.ph)}e=g.wa.P.length;for(f=0;f<e;++f)k=g.wa.ic(f),null!==h&&k.ba===h&&(q=k.info().scroll().Oa(),n=k.info().zoom().Oa(),q.Zg(new t(c,d)),q.Yg(new t(a,b)),n.ys(1),n.xs(1),k.U(R.ph)||k.oi(R.ph))}};
var T;T=function(){};T.dg=function(a,b){var c=new Jb;c.promiseId=a;c.error=b;return c};T.NA=function(a,b){var c=new MethodCallMessage;c.methodName=a;c.params=b;return c};T.EA=function(a,b,c){var d=new CheckSimpleValueResultMessage;d.promiseId=a;d.result=b;d.value=c;return d};T.DA=function(a,b,c,d,e,f,g){var h=new CheckComplexValueResultMessage;h.promiseId=a;h.result=b;h.value=c;h.indexCount=d;h.index0=e;h.index1=f;h.index2=g;return h};
T.PA=function(a,b){var c=new ResizeMessage;c.width=a;c.height=b;return c};T.KA=function(a,b,c){var d=new GetTypeDescResultMessage;d.promiseId=a;d.result=b;d.typeDesc=c;return d};T.IA=function(a,b,c,d){var e=new GetAdditionalFileNameResultMessage;e.promiseId=a;e.result=b;e.originalAdditionalFileName=c;e.resultingAdditionalFileName=d;return e};T.JA=function(a,b,c,d){var e=new GetImagePoolFileNameResultMessage;e.promiseId=a;e.result=b;e.imageId=c;e.resultingFileName=d;return e};
T.SA=function(a,b,c){var d=new SetSimpleValueResultMessage;d.promiseId=a;d.result=b;d.value=c;return d};T.RA=function(a,b,c,d,e,f,g){var h=new SetComplexValueResultMessage;h.promiseId=a;h.result=b;h.value=c;h.indexCount=d;h.index0=e;h.index1=f;h.index2=g;return h};var L;L=function(){this.Sc=0};L.gh=0;L.s=1;L.T=2;L.u=3;L.aa=4;
L.prototype={iN:function(a){this.Sc=L.gh;null!==a&&void 0!==a&&(a.left()?this.Sc=L.s:a.right()?this.Sc=L.T:a.top()?this.Sc=L.u:a.bottom()&&(this.Sc=L.aa))},LN:function(){this.Sc=L.s},KN:function(){this.Sc=L.T},mM:function(){this.Sc=0},ad:function(){return this.Sc===L.gh},left:function(){return this.Sc===L.s},right:function(){return this.Sc===L.T},top:function(){return this.Sc===L.u},bottom:function(){return this.Sc===L.aa},before:function(){return this.left()||this.top()},after:function(){return this.right()||
this.bottom()}};var Db;Db=function(){this.rk=null;this.im=this.hm=this.He=this.Ge=this.Mj=this.Lj=this.Pj=this.Oj=0};
Db.prototype={initialize:function(a){this.rk=a},update:function(a,b,c,d,e,f){this.Oj=a;this.Pj=b;this.Lj=c;this.Mj=d;this.Ge=e;this.He=f;this.rk(this.Ge,this.He)},uA:function(a){null!==a&&a.vO(this.Ge-this.Oj,this.He-this.Pj,this.Ge-this.Lj,this.He-this.Mj)},Rz:function(){return this.Lj-this.Oj},Sz:function(){return this.Mj-this.Pj},Sg:function(a,b){this.ZF(b.info().scroll())},Fn:function(){},xr:function(){},ZF:function(a){var b=this.im-a.Ua.Y;this.Ge+=this.hm-a.Ua.X;this.He+=b;this.hm=a.Ua.X;this.im=
a.Ua.Y;this.rk(this.Ge,this.He)},os:function(){this.im=this.hm=0},Ei:function(a){this.im=this.hm=0;return a.info().scroll().Bh.Mb(a.info().scroll().Ua)}};var Sa;Sa=function(){this.jx=u.mb();this.ji=this.Rm=this.Qm=this.$e=null};
Sa.prototype={GL:function(a,b,c,d){this.$e=this.kE(a,b,c,d);this.jx.appendChild(this.$e)},ky:function(){null!==this.$e&&this.jx.removeChild(this.$e);this.$e=null},KJ:function(a,b,c){this.$e.innerHTML!=a&&(this.$e.innerHTML=a,this.ED(b,c))},bO:function(a){this.ji=a},ED:function(a,b,c){this.Qm+a.L>b&&(this.Qm=b-a.L,this.$e.style.left=this.Qm+"px");this.Rm+a.V>c&&(this.Rm=c-a.V,this.$e.style.top=this.Rm+"px")},kE:function(a,b,c,d){var e=document.createElement("div");e.id="cdsTooltip";e.style.msUserSelect=
"none";e.style.WebkitUserSelect="none";e.style.MozUserSelect="none";e.style.userSelect="none";e.style.position="absolute";e.style.left=a+"px";e.style.top=b+"px";this.Qm=a;this.Rm=b;e.innerHTML=c;e.style.borderStyle="solid";e.style.font=d;e.style.color=this.ji.jt;e.style.borderColor=this.ji.Rs;e.style.borderWidth=this.ji.Ni+"px";e.style.padding="2px 3px 2px 3px";e.style.backgroundColor=this.ji.ht;e.style.zIndex=F.HC;return e}};var U;
U=function(a,b,c,d){this.$=null;this.sg=this.fb=this.Lg=this.Kg=this.Ud=this.Td=this.pa=this.na=this.Xc=this.Wc=0;this.Nh="solid";this.Mh="";this.$b=null;this.Ln=this.Kn=1;this.Ma=new sa(0);this.Qb=a;c?(this.ja=window.document.createElement("div"),this.ja.id="cdsClip",this.ja.style.overflow="hidden",this.ja.style.position="relative",this.Qb.appendChild(this.ja)):this.ja=this.Qb;this.da=b;this.Bf=null;this.ya="";this.jp=F.Zn;this.sc=d};
U.prototype={initialize:function(){},gy:function(){},jb:function(){this.$&&this.S().parentNode===this.$?this.$.removeChild(this.S()):v.warn("Error when removing a client object. This node doesn't have a parent:"+this.S().id)},update:function(a,b,c,d,e,f,g,h,k,q,n){this.Wc=a;this.Xc=b;this.na=c;this.pa=d;this.Td=e;this.Ud=f;this.Kg=g;this.Lg=h;this.fb=k;this.da.bA(q);this.dJ(a,b,c,d,e,f,g,h,k,n)},Nu:function(){},Ou:function(a){var b=window.document.createElement("div");b.style.overflow="hidden";b.style.position=
"absolute";b.style.margin="";b.style.padding="";b.id=a;b.style.left="0px";b.style.top="0px";b.style.width=this.na+"px";b.style.height=this.pa+"px";a=u.vL(a+"_canvas",this.na,this.pa);b.appendChild(a);return b},ON:function(a){a?this.RN():this.PN()},eO:function(a,b){this.Kn=a;this.Ln=b},S:function(){return this.Qb},dJ:function(a,b,c,d,e,f,g,h,k,q){var n=this;e=void 0===this.sk;void 0!==this.sk&&this.sk!==this.da.nz()?window.WebvisuInst.uk(function(){n.Ch(a,b,c,d,g,h,k,q)}):(this.sk=!this.da.nz())?(null!==
this.Bf&&(this.S().removeEventListener("transitionend",this.Bf,!1),this.Bf=null),e?(window.WebvisuInst.uk(function(){n.Ch(a,b,c,d,g,h,k,q,100)}),window.WebvisuInst.Wm(function(){n.ci()})):(this.ci(),window.WebvisuInst.Wm(function(){n.Ch(a,b,c,d,g,h,k,q,100)}))):(e||""===q?window.WebvisuInst.Wm(function(){n.ci()}):(this.Bf=function(){n.ci()},this.S().addEventListener("transitionend",this.Bf,!1)),window.WebvisuInst.uk(function(){n.Ch(a,b,c,d,g,h,k,q,0)}))},Ch:function(a,b,c,d,e,f,g,h,k){c=this.S();
d=this.ja;g=1/this.Kn;var q=1/this.Ln;this.qe()&&this.Nu();c.style.left=a+"px";c.style.top=b+"px";c.style.width=this.wf()+"px";c.style.height=this.vf()+"px";d.style.width=this.wf()+"px";d.style.height=this.vf()+"px";0<this.sg&&(d.style.border=this.sg+"px "+this.Nh+" "+this.Mh);c.style.transformOrigin=e+.5+"px "+(f+.5)+"px";c.style.transform="";0!==this.fb&&(c.style.transform=1!==(this.Kn||this.Ln)?c.style.transform+("scale("+this.Kn+","+this.Ln+") rotate("+this.fb+"deg) scale("+g+","+q+")"):c.style.transform+
(" rotate("+this.fb+"deg)"));void 0!==k&&(c.style.opacity=k);c.style.zIndex=this.da.vK()?F.Qs:this.jp;delete c.tabIndex;c.style.transition=h},Z:function(){return null},Ng:function(){},QN:function(a,b,c){this.$=a;void 0===c?b.appendChild(this.S()):b.insertBefore(this.S(),b.children[c])},Bd:function(a,b){this.$=a;void 0===b?this.$.appendChild(this.S()):this.$.insertBefore(this.S(),this.$.children[b])},za:function(){return this},Tg:function(){return-1},$f:function(a){this.$b=a},QK:function(){var a=u.Pi(this.ja,
u.mb());return new N(a.X,a.Y,a.X+this.na,a.Y+this.pa)},ic:function(){return new N(this.Wc,this.Xc,this.Wc+this.wf(),this.Xc+this.vf())},getParent:function(){return this.$},Xf:function(a){this.Qb.id+="_"+a;this.ya+="_"+a;this.ja!==this.Qb&&(this.ja.id+="_"+a)},Wf:function(){void 0!==this.sc&&null!==this.sc&&this.sc.lv.WA(this)},ci:function(){this.S().style.display=this.sk?"":"none";this.Bf&&(this.S().removeEventListener("transitionend",this.Bf,!1),this.Bf=null)},gN:function(a){this.Ma=a},qe:function(){return!1},
wf:function(){return Math.max(0,this.na-2*this.sg)},vf:function(){return Math.max(0,this.pa-2*this.sg)},vs:function(){},Di:function(){return!1},ez:function(){return!1},Dn:function(){return!1}};var Q;Q=function(a,b,c,d,e,f){U.call(this,a,b,c,f);this.bb=d;this.ta=e;this.Rp();this.El=this.Dj=this.Jd=null;this.Xh=[];this.ac=[];this.Jf=null;this.Uh=-1;this.fj=!1;this.Qc=null;this.ei=!1;this.bm=this.ta&&this.ta.xg?!0:!1};Q.prototype=Object.create(U.prototype);l=Q.prototype;l.constructor=Q;
l.initialize=function(){this.bm||this.QC(this.ja);this.ei&&this.RC()};l.kA=function(a){this.ei=a};l.Wz=function(a){this.fj=a};l.qe=function(){return this.Ma.Nk()};l.ci=function(){this.uh(this.bb,this.Me(),this.Le());U.prototype.ci.call(this)};l.Ng=function(a){this.ta&&this.ta.Ng(a);this.bb.clearRect(a.s,a.u,a.D(),a.C())};l.Wf=function(){this.sc.Hh.dM(this);this.ta&&this.ta.Wf();U.prototype.Wf.call(this)};l.jb=function(){this.Fq();this.ta&&this.ta.gs();this.Qc&&this.Qc.jb(this);U.prototype.jb.call(this)};
l.gy=function(){for(var a in this.ac)this.ja.removeChild(this.ac[a].S());this.Uh=-1;this.ac=[]};l.Z=function(){var a;(a=this.Bp())?(a=a.Ha,this.uh(a,-1===a.width?this.wf():a.width,-1===a.height?this.vf():a.height)):(a=this.bb,this.uh(a,this.Me(),this.Le()),a.setTransform(1,0,0,1,this.Td,this.Ud));return a};
l.Ar=function(){var a;(a=this.Bp())?(a=a.Ha,this.uh(a,-1===a.width?this.wf():a.width,-1===a.height?this.vf():a.height),a.clearRect(0,0,a.canvas.width,a.canvas.height)):(a=this.bb,this.uh(a,this.Me(),this.Le()),a.clearRect(-this.Td,-this.Ud,a.canvas.width,a.canvas.height))};l.za=function(){if(this.ta){var a=this.ta.za();if(null!==a)return a}this.uh(this.bb,this.Me(),this.Le());return this};l.ea=function(){return this.ta};l.Ek=function(a){this.ta.Ek(a)};l.Tg=function(){return this.ta?this.ta.Tg():U.prototype.Tg.call(this)};
l.sJ=function(a,b){this.qe()&&(this.ta.Ma=this.Ma);this.ta.Px(a,b)};l.bM=function(){this.ta&&(-1===this.ta.La&&this.qe()&&(this.Qa.style.left="0px",this.Qa.style.top="0px",this.oM()),this.ta.gs())};l.$f=function(a){U.prototype.$f.call(this,a);this.ta&&this.ta.$f(this.$b)};l.fN=function(a,b,c){this.sg=a;this.Nh=b;this.Mh=c};l.update=function(a,b,c,d,e,f,g,h,k,q,n){this.Jx();U.prototype.update.call(this,a,b,c,d,e,f,g,h,k,q,n)};
l.oN=function(a,b){var c=this,d=b.ic(),e=!1,f;this.bm&&null!==this.Jd&&this.Jd.src===a.src||(a.onerror=function(){c.Jd&&c.ja.removeChild(c.Jd);c.Jd=null;c.Dj=null},a.onload=function(){b.Pl&&b.sj&&(a.width=Math.round(b.Jl*a.width),a.height=Math.round(b.Kl*a.height),e=!0,f=new w(a.width,a.height),d=u.jo(d,f,b));if(b.ll&&!e)a.width=d.D(),a.height=d.C();else if(b.Vp&&!e){if(d.D()/a.width<d.C()/a.height){var g=Math.round(d.D()*a.height/a.width);var h=d.D()}else g=d.C(),h=Math.round(d.C()*a.width/a.height);
a.width=h;a.height=g;h=new N(d.s,d.u,d.s+h,d.u+g);d=u.Ps(h,d,b)}c.Jd?c.ja.replaceChild(a,c.Jd):c.ja.insertBefore(a,c.bb.canvas);c.Jd=a;c.Dj=d.kc().clone();c.Jx()})};l.rN=function(a,b){null!==this.Qc&&this.Qc.jb();this.Qc=b;this.Qc.initialize(a,this.ja,this.cc)};l.Mz=function(){null!==this.Jf&&(this.S().removeChild(this.Jf.S()),this.Jf=null)};l.zJ=function(a){null!==this.Jf&&this.Mz();this.Jf=a;this.Jf.ps();this.S().appendChild(this.Jf.S())};
l.wJ=function(a,b){var c;if(32767===a)this.zJ(b);else if(void 0===this.ac[a])if(b.ps(),b.lN(this.ya,a),this.ac[a]=b,a===this.ac.length-1){var d=this.bb.nextSibling;if(1<this.ac.length)for(c in this.ac)a>c&&(d=this.ac[c].S().nextSibling);null===d||void 0===d?this.ja.append(b.S()):this.ja.insertBefore(b.S(),d)}else for(c in this.ac){if(a<c){this.ja.insertBefore(b.S(),this.ac[c].S());break}}else b=this.ac[a].Ha,b.save(),b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,b.canvas.width,b.canvas.height),b.restore(),
this.ac[a].ps()};l.uO=function(a,b,c,d,e,f,g,h,k,q,n){var B=this.Bp();null!==B&&(g=new xb(g),B.rO(a,b,c,d,e,f,g,h,k,q,n))};l.gO=function(a){this.Uh=a};l.oK=function(){this.Uh=-1};l.Jx=function(){if(null!==this.Dj&&null!==this.Jd){var a=this.Dj.Y+this.Ud,b=this.Dj.X+this.Td;0!==a&&(this.Jd.style.top=a+"px");0!==b&&(this.Jd.style.left=b+"px")}};
l.QC=function(a){var b=this,c=r.Gb();this.Tc(a,c?"pointerdown":"mousedown",function(d){b.pm(d)});this.Tc(a,c?"pointermove":"mousemove",function(d){b.qm(d)});this.Tc(a,c?"pointerup":"mouseup",function(d){b.rm(d)});!c&&window.ontouchstart&&(this.Tc(a,"touchstart",function(d){b.pm(d)}),this.Tc(a,"touchmove",function(d){b.qm(d)}),this.Tc(a,"touchend",function(d){b.rm(d)}))};
l.RC=function(){var a=this.sc.Nc,b=null,c=null;this instanceof Eb?(c=this,b=this.bb.canvas):a===this.sc.ea()&&(c=a.yK(),b=this.ja);null!==c&&null!==b&&(r.Gb()?(b.addEventListener("pointerup",function(d){c.En(d)},!1),b.addEventListener("pointerdown",function(d){c.En(d)},!1),b.addEventListener("pointermove",function(d){c.En(d)},!1),b.addEventListener("pointerout",function(d){c.En(d)},!1)):(b.addEventListener("mousedown",function(d){c.Fi(d)},!1),b.addEventListener("mousemove",function(d){c.Fi(d)},!1),
b.addEventListener("mouseup",function(d){c.Fi(d)},!1),b.addEventListener("mouseout",function(d){c.Fi(d)},!1),b.addEventListener("touchstart",function(d){c.cs(d)},!1),b.addEventListener("touchmove",function(d){c.cs(d)},!1),b.addEventListener("touchend",function(d){c.cs(d)},!1)))};l.vi=function(a){var b=new t(0,0),c=this.eF(a,b),d=this.ZI(a),e=u.so(this.$b);a=new Kb(a,c,d,e);a.IN(b);return a};l.Ca=function(){return u.so(this.$b)};l.ZI=function(a){return u.Zk(a)};
l.Tj=function(a,b,c){r.fh()&&(a=r.Wi(a),c=r.Wi(c));c=this.gv(c);this.$b(a.fc(),0,b,[],c)};l.Gj=function(a,b){if(u.Io(a.nb)||u.Qi(a.nb)&&"touch"===a.nb.pointerType)if(null!==this.Qc&&this.Qc.handleEvent(a,b)||null!==this.sc.oa&&this.sc.oa.handleEvent(a,b))return!0;return u.Io(a.nb)};l.pm=function(a){this.sc.Fd.wz(a);this.bF(a);var b=this.vi(a);this.Gj(b,K.J)||(a.stopPropagation(),this.wG(a)&&void 0!==this.sc&&this.sc.Id.Xr()&&this.sc.Id.fn(a),this.Tj(b.fi,K.J,b.od))};
l.eF=function(a,b){var c=new t(a.offsetX,a.offsetY);var d=a.target;var e=this.ja,f=!1;d===document&&(c=new t(a.pageX,a.pageY));b.X=c.X;b.Y=c.Y;a.target!==this.ja&&(a=this.qF(),null!==a&&null!==a.cc&&null===this.Qc&&(d=a.bb.canvas,e=a.ja,f=!0),d=u.Hy(e,d),r.fh()&&d.Kk(r.co()),c.X+=d.X,c.Y+=d.Y,f||(b.X+=d.X,b.Y+=d.Y));c=this.ww(c);this.ww(b);return c};
l.qF=function(){var a;if(null===this.$)return null;for(a=u.Vk(this.sc.ea(),this.$.id);null!==a&&(void 0===a.cc||null===a.cc||0===a.cc.Rz()&&0===a.cc.Sz());)a=u.Vk(this.sc.ea(),a.$.id);return a};l.wG=function(a){return 1===a.which};l.dG=function(){return this.fj||null!==this.Qc};l.qm=function(a){var b=this.vi(a);this.Gj(b,K.h)||(a.stopPropagation(),this.Tj(b.fi,K.h,b.od))};l.rm=function(a){var b=this.vi(a);this.Gj(b,K.m)||(a.stopPropagation(),this.Tj(b.fi,K.m,b.od))};l.gv=function(a){return u.Ox(a)};
l.Fq=function(){for(var a=0;a<this.Xh.length;++a)this.Xh[a].mK.removeEventListener(this.Xh[a].Gy,this.Xh[a].callback,!1);this.Xh=[]};l.bF=function(a){if(this.dG()){var b=this;this.sc.Hh.yr(a,b,function(c){b.dH(c)},function(c){b.eH(c)})}};l.dH=function(a){var b=this.vi(a);a.stopPropagation();this.Gj(b,K.h)||this.Tj(b.fi,K.h,b.od)};l.eH=function(a){var b=this.vi(a);a.stopPropagation();this.Gj(b,K.m)||this.Tj(b.fi,K.m,b.od)};
l.Tc=function(a,b,c){this.Xh.push({mK:a,Gy:b,callback:c});a.addEventListener(b,c,!1)};l.ww=function(a){a.X=a.X-this.Td;a.Y=a.Y-this.Ud;return a};l.Bp=function(){return-1!==this.Uh?32767===this.Uh?this.Jf:this.ac[this.Uh]:null};l.uh=function(a,b,c){a.canvas.width!==b&&(a.canvas.width=b);a.canvas.height!==c&&(a.canvas.height=c)};l.Rp=function(){this.ja.appendChild(this.bb.canvas);this.ta&&(this.ta.Bd(this.ja),"cdsDialog"!==this.S().id&&(this.S().id=this.ta.xg?"cdsClientObjectBackgroundContainer":"cdsClientObjectContainer"))};
l.Me=function(){return this.wf()};l.Le=function(){return this.vf()};l.Xf=function(a){U.prototype.Xf.call(this,a);this.bb.canvas.id+="_"+a};l.$z=function(a){null===a&&null!==this.El&&(this.ja.removeChild(this.El),this.ja.focus());null===this.El&&null!==a&&this.ja.appendChild(a);this.El=a};l.vs=function(a){this.bm=a};l.Di=function(){return this.bm};l.ez=function(){return this.ta instanceof Bb&&this.ta.xg};var yb;
yb=function(a,b,c,d){U.call(this,a,b,c,d);this.Lv();this.oj=this.ld=null;this.ya="";this.Tb=null;this.rw=new Lb};yb.prototype=Object.create(U.prototype);l=yb.prototype;l.constructor=yb;l.Lv=function(){this.S().id="cdsClientObjectNative"};
l.wN=function(a,b){if(b instanceof Mb){this.ld=b;this.Tb=a;var c=Nb.h();this.oj=b.$J(c,a.getConfiguration().ContentSecurityPolicyIncludeTrustedOrigins,this.na,this.pa);this.Tb.register(c,this)}else this.ld=b,a=b.PO(),a.style.width="100%",a.style.height="100%",a.style.position="absolute",this.oj=a;this.oj.id="cdsNativeElem"+this.ya;this.ja.appendChild(this.oj);this.tA()};l.jb=function(){window.WebvisuInst.Tb.unregister(this);U.prototype.jb.call(this)};l.$L=function(a,b){this.rw.fs(a,b)};l.pn=function(a){return this.rw.Qr(a)};
l.rI=function(a,b,c){this.$b(a,b,536,[],c)};l.zM=function(a,b,c,d,e){var f=p.B(12);a=P.B(f,a.A.Fa,a.tb.Fh);a.td(c);a.td(d);a.Na(e);this.$b(b,0,539,[],f)};l.mI=function(a,b,c){this.$b(a,b,540,[],c)};l.yM=function(a,b,c){var d=new t(b,c);if(0>b||0>c||b>this.na||c>this.pa)throw Error("Illegal argument!");"mousedown"===a?this.$b(d.fc(),0,K.J,[],void 0):"mousemove"===a?this.$b(d.fc(),0,K.h,[],void 0):"mouseup"===a&&this.$b(d.fc(),0,K.m,[],void 0)};
l.IJ=function(a,b){if(this.ld instanceof Mb)this.Tb.Fc(this,T.NA(a,b));else{a=a.split(".");var c=this.ld;if(null!==c){for(var d=0;d<a.length-1;++d)c=c[a[d]]();c[a[a.length-1]].apply(c,b)}}};l.update=function(a,b,c,d,e,f,g,h,k,q,n){U.prototype.update.call(this,a,b,c,d,e,f,g,h,k,q,n);this.tA()};l.tA=function(){this.ld instanceof Mb&&this.Tb.Fc(this,T.PA(this.na,this.pa))};var Ab;Ab=function(a,b,c,d){U.call(this,a,b,c,d);this.mq=-1};Ab.prototype=Object.create(U.prototype);Ab.prototype.constructor=Ab;
Ab.prototype.Lv=function(){this.S().id="cdsClientObjectOldNative"};Ab.prototype.jb=function(){-1!==this.mq&&WebvisuExtensionMgr.Ir(this.mq);U.prototype.jb.call(this)};Ab.prototype.hA=function(a){this.mq=a};var Cb;Cb=function(a,b,c,d,e,f,g,h){this.cc=f;this.Qa=g;this.ar=!1;this.nd=new Ob;Q.call(this,a,b,c,d,e,h)};Cb.prototype=Object.create(Q.prototype);l=Cb.prototype;l.constructor=Cb;l.initialize=function(){Q.prototype.initialize.call(this);var a=this;this.cc.initialize(function(b,c){a.rk(b,c)})};
l.Bs=function(a,b,c,d,e,f){this.cc.update(a,b,c,d,e,f);this.cc.uA(this.Qc)};l.FJ=function(){var a=this.Ma;a.Hs()?this.Bs(this.nd.pc.X,0,this.nd.oc.X,0,0,0):a.Is()&&this.Bs(0,this.nd.pc.Y,0,this.nd.oc.Y,0,0)};
l.SN=function(){this.Ma.Hs()?(this.nd.Zg(new t(.3*-this.na,0)),this.nd.Yg(new t(.3*this.na,0)),this.An()&&this.nd.Zg(new t(-this.na,0)),this.zn()&&this.nd.Yg(new t(this.na,0))):this.Ma.Is()&&(this.nd.Zg(new t(0,.3*-this.pa)),this.nd.Yg(new t(0,.3*this.pa)),this.An()&&this.nd.Zg(new t(0,-this.pa)),this.zn()&&this.nd.Yg(new t(0,this.pa)))};l.RN=function(){this.Cq=!0};l.PN=function(){this.Bq=!0};l.oM=function(){this.Bq=this.Cq=!1};l.qA=function(){this.ar=!0};l.sA=function(){this.ar=!1};l.Dn=function(){return this.ar};
l.An=function(){return void 0===this.Cq?!1:this.Cq};l.zn=function(){return void 0===this.Bq?!1:this.Bq};l.Sg=function(a,b){this.Dn()||this.cc.Sg(a,b)};l.os=function(){this.cc.os()};l.Ei=function(a){this.cc.Ei(a)};l.Ch=function(a,b,c,d,e,f,g,h,k){this.Qa&&(this.Qa.style.width=this.Me()+"px",this.Qa.style.height=this.Le()+"px");Q.prototype.Ch.call(this,a,b,c,d,e,f,g,h,k)};l.fJ=function(a,b){this.Dn()||null===this.Qa||(this.Qa.style.left=a+"px",this.Qa.style.top=b+"px")};
l.Xf=function(a){Q.prototype.Xf.call(this,a);null!==this.Qa&&(this.Qa.id+="_"+a)};l.rk=function(a,b){this.fJ(-a,-b);for(var c in this.ac){var d=this.ac[c].Ha;d&&(d.tM&&(d.canvas.style.left=d.x-a+"px"),d.uM&&(d.canvas.style.top=d.y-b+"px"))}};l.Rp=function(){this.Qa?(this.Qa.appendChild(this.bb.canvas),this.ja.appendChild(this.Qa),this.ta&&(this.ta.Bd(this.Qa),this.S().id="cdsClientObjectContainer")):Q.prototype.Rp.call(this)};
l.Me=function(){return this.qe()?this.wf():this.Qa?Math.max(0,this.wf()+this.cc.Rz()):Q.prototype.Me.call(this)};l.Le=function(){return this.qe()?this.vf():this.Qa?Math.max(0,this.vf()+this.cc.Sz()):Q.prototype.Le.call(this)};
l.Nu=function(){var a=u.va(this.Qa,"cdsClip_before");var b=u.va(this.Qa,"cdsClip_after");if(null===a&&null===b){var c=this.Ma;a=this.Ou("cdsClip_before");b=this.Ou("cdsClip_after");c.Wr()?(a.style.left=-this.na+"px",b.style.left=this.na+"px"):c.rz()&&(a.style.top=-this.pa+"px",b.style.top=this.pa+"px");this.Qa.appendChild(a);this.Qa.appendChild(b)}};var Eb;
Eb=function(a,b,c,d,e,f,g,h){Q.call(this,a,b,!1,c,d,g);this.Ra=null;this.om=this.Ol=this.Wj=!1;this.o=null;this.Gx=!1;this.Aa=e;this.vh=null;this.jp=F.$n;this.nr=f;this.g=g;this.Qj=!1;this.jq=null;this.ip="";this.lc=null;this.xm=this.Ow=this.ym=this.Nw=0;h&&this.Wz(h)};Eb.prototype=Object.create(Q.prototype);l=Eb.prototype;l.constructor=Eb;
l.initialize=function(a,b,c,d,e,f,g){Q.prototype.initialize.call(this);this.Wj=b;this.om=c;this.Ol=d;this.Ra=a;this.vh=e;this.o=f;this.S().style.transform="scale(0)";this.S().style.opacity=0;this.Aa&&(this.Aa.style.opacity=0,this.NH());g&&(this.jp=F.UB)};l.jb=function(){this.Aa&&(this.bJ(),this.$===this.Aa.parentNode&&this.$.removeChild(this.Aa));Q.prototype.jb.call(this)};
l.update=function(a,b,c,d,e,f,g,h,k,q,n,B){""===n&&(this.Gx=!0);if(this.Ol)Q.prototype.update.call(this,0,0,c,d,e,f,0,0,k,q,n);else{g=c/2;h=d/2;var A=c,J=d;null!==this.vh&&null!==this.vh.canvas&&(A=this.vh.canvas.width-c,J=this.vh.canvas.height-d);this.Ra instanceof N&&(this.Wj?(a=this.Ra.zk().X-c/2,b=this.Ra.zk().Y-d/2,a=Math.min(Math.max(0,A),Math.max(0,a)),b=Math.min(Math.max(0,J),Math.max(0,b))):this.om&&(this.o.AL&&this.o.zL?(g=this.Ra.kc().Y,h=this.vh.canvas.height-this.Ra.vd().Y,this.o.zz||
this.o.yz)?this.o.zz?this.o.yz||(b=this.Ra.vd().Y,a=this.Wo(c)):(b=this.Ra.kc().Y-d,a=this.Wo(c)):this.o.sr||this.o.Tx?this.o.sr&&(a=this.Wo(c),b=this.Ra.vd().Y,d>h&&g>h&&(b=this.Ra.kc().Y-d)):(a=this.Ra.kc().X,b=this.Ra.vd().Y,d>h&&g>h&&(b=this.Ra.kc().Y-d)):(a=this.Ra.vd().X,b=this.Ra.vd().Y,a>A&&(a=this.Ra.kc().X-c),b>J&&(b=this.Ra.kc().Y-d),a=Math.min(Math.max(0,A),Math.max(0,a)),b=Math.min(Math.max(0,J),Math.max(0,b)))),g=this.Ra.zk().X-a,h=this.Ra.zk().Y-b);Q.prototype.update.call(this,a,b,
c,d,e,f,g,h,k,q,n);this.S().style.opacity=1;this.Aa&&(this.Aa.style.transition=n,this.nr&&(this.Aa.style.backgroundColor=B),this.Aa.style.opacity=1)}};l.Wo=function(a){return this.o.Tx?this.Ra.kc().X:this.o.sr?this.Ra.vd().X-a:this.Ra.kc().X+(this.Ra.vd().X-this.Ra.kc().X)/2-a/2};l.Bd=function(a){this.Aa&&a.appendChild(this.Aa);Q.prototype.Bd.call(this,a)};
l.close=function(a){if(this.Gx)this.Ey(a);else{var b=this;this.Tc(this.S(),"transitionend",function(){b.Ey(a)})}this.Aa&&(this.Aa.style.opacity=0);this.S().style.transform="scale(0)";this.S().style.opacity=0};l.Ey=function(a){this.Aa&&this.$===this.Aa.parentNode&&this.$.removeChild(this.Aa);a()};
l.NH=function(){var a=this,b=r.Gb();this.Tc(this.Aa,b?"pointerdown":"mousedown",function(c){a.kd(c)});this.Tc(this.Aa,b?"pointermove":"mousemove",function(c){a.kd(c)});this.Tc(this.Aa,b?"pointerup":"mouseup",function(c){a.kd(c)});!b&&window.ontouchstart&&(this.Tc(this.Aa,"touchstart",function(c){a.kd(c)}),this.Tc(this.Aa,"touchmove",function(c){a.kd(c)}),this.Tc(this.Aa,"touchend",function(c){a.kd(c)}))};
l.bJ=function(){var a=this,b=r.Gb();this.Aa.removeEventListener(b?"pointerdown":"mousedown",function(c){a.kd(c)});this.Aa.removeEventListener(b?"pointermove":"mousemove",function(c){a.kd(c)});this.Aa.removeEventListener(b?"pointerup":"mouseup",function(c){a.kd(c)});!b&&window.ontouchstart&&(this.Aa.removeEventListener("touchstart",function(c){a.kd(c)}),this.Aa.removeEventListener("touchmove",function(c){a.kd(c)}),this.Aa.removeEventListener("touchend",function(c){a.kd(c)}))};
l.kd=function(a){this.Aa&&a.target===this.Aa&&a.stopPropagation()};l.Fi=function(a){var b=u.Zk(a);this.tq(a,b,!1)};l.En=function(a){var b=u.Zk(a);this.tq(a,b,!1)};l.cs=function(a){if(null!==a.touches&&1<=a.touches.length){var b=u.Zk(a.touches[0]);this.tq(a,b,!0)}};
l.tq=function(a,b,c){switch(a.type){case "mouseout":case "pointerout":this.Qj?(a.preventDefault(),this.nu(a,b)):this.ix();break;case "mousedown":case "pointerdown":case "touchstart":a.preventDefault();this.lH(b,c);var d=this;this.g.Hh.yr(a,d,function(e){d.Fi(e)},function(e){d.Fi(e)});break;case "mousemove":case "pointermove":case "touchmove":a.preventDefault();this.sq(a,b,c);break;case "mouseup":case "pointerup":case "touchend":a.preventDefault(),this.mH(a,c)}};
l.lH=function(a,b){b||(this.ip=this.ja.style.cursor,this.ja.style.cursor="move");this.lc=u.mb().getBoundingClientRect();this.lc.x=0;this.lc.y=0;this.Nw=this.lc.x+2;this.ym=this.lc.x+this.lc.width-2;this.Ow=this.lc.y+2;this.xm=this.lc.y+this.lc.height-2;b=new t(parseInt(this.S().offsetLeft,10),parseInt(this.S().offsetTop,10));this.Oq(a);this.jq=new t(b.X-a.X,b.Y-a.Y);this.Qj=!0};l.sq=function(a,b,c){this.Qj?this.nu(a,b):c||this.ix()};l.mH=function(a,b){this.Qj&&(this.sw(b),this.ox(a))};
l.nu=function(a,b){this.Oq(b);b.X<=this.Nw||b.X>=this.ym||b.Y<=this.Ow||b.Y>=this.xm?(this.sw(this),this.ox(a)):(a=b.X+this.jq.X,b=b.Y+this.jq.Y,a<=this.lc.x&&(a=this.lc.x),a+this.na>=this.ym&&(a=this.ym-this.na),b<=this.lc.y&&(b=this.lc.y),b+this.pa>=this.xm&&(b=this.xm-this.pa),this.S().style.top=b+"px",this.S().style.left=a+"px")};l.sw=function(a){a||(this.ja.style.cursor=""!==this.ip?this.ip:"default");this.Qj=!1};
l.ox=function(a){if(null!==this.g.A){var b=new t(parseInt(this.S().style.left,10),parseInt(this.S().style.top,10));a=this.vi(a).od;this.Oq(a);a=this.gv(a);this.$b(b.fc(),0,537,[],a)}};l.ix=function(){"move"===this.ja.style.cursor&&(this.ja.style.cursor="default")};l.Oq=function(a){r.fh()&&r.Wi(a)};var Gb;Gb=function(a,b){this.Ha=a;this.qf=b;(this.Rh=null!==b)&&this.qf.appendChild(this.Ha.canvas)};
Gb.prototype={S:function(){return this.Rh?this.qf:this.Ha.canvas},lN:function(a,b){this.Ha.canvas.id="cdsCanvas"+a+"_Layer_"+b.toString();this.Rh&&(this.qf.id="cdsClip"+a+"_Layer_"+b.toString())},rO:function(a,b,c,d,e,f,g,h,k,q,n){g.ad()?(this.Ha.x=a,this.Ha.y=b,this.Ha.canvas.style.left=a+"px",this.Ha.canvas.style.top=b+"px"):this.XC(g);this.Ha.width=c;this.Ha.height=d;this.Ha.tM=e;this.Ha.uM=f;this.Ha.canvas.style.width=-1===this.Ha.width?"100%":c+"px";this.Ha.canvas.style.height=-1===this.Ha.height?
"100%":d+"px";this.Rh&&(this.qf.OO=n,this.qf.style.left=h+"px",this.qf.style.top=k+"px",this.qf.style.width=q+"px",this.qf.style.height=n+"px")},XC:function(a){a.right()&&(this.Ha.canvas.style.right="0px");a.left()&&(this.Ha.canvas.style.left="0px");a.top()&&(this.Ha.canvas.style.top="0px");a.bottom()&&(this.Ha.canvas.style.bottom="0px")},ps:function(){this.Ha.x=0;this.Ha.y=0;this.Ha.width=-1;this.Ha.height=-1}};var Bb;
Bb=function(a){this.$=null;this.qa=[];this.Pb={};this.La=-1;this.$b=null;this.af=-1;this.xg=a;this.sp=this.bi=null;this.wq=!1;this.If=new Pb;this.Ma=new sa(0);this.kp=null};
Bb.prototype={Px:function(a,b){32767===a?(b.S().id="cdsDemoMode",b.S().style.zIndex=F.Qs,b.Bd(u.mb()),this.kp=b):-1===this.La?(b.Di()||b.ez()?(b.Xf(a),this.ss(b,1),b.vs(!0),this.wq=!0):(b.ta instanceof Bb?null===this.bi&&(this.bi=a):this.wq&&!this.xg?this.ss(b,a+1):this.ss(b,a),b.vs(this.xg),b.Xf(a)),b.$f(this.Ku(a)),this.sx(a,b)):(b.Xf(this.La),this.ie(this.La).sJ(a,b))},ss:function(a,b){if(this.Ma.Nk()&&!a.Ma.ad()){var c=this.Zy(a.Ma);a.QN(this.$,c,b)}else a.Bd(this.$,b)},gs:function(){-1===this.La?
(this.Wu(),this.Ma.Nk()&&this.$&&this.If.clear(this.$),this.wq=!1):this.ie(this.La).bM()},hs:function(){this.Wu();this.La=-1},Ng:function(a){for(var b=0;b<this.qa.length;++b)this.qa[b]&&this.qa[b].Ng(a)},Hk:function(){for(var a=0;a<this.qa.length;++a)this.qa[a]&&this.qa[a].ta&&this.qa[a].ta.Hk();for(var b in this.Pb)this.Pb[b]&&this.Pb[b].jb();this.Pb={}},Wf:function(){for(var a=0;a<this.qa.length;++a)this.qa[a]&&this.qa[a].Wf();for(var b in this.Pb)this.Pb[b]&&this.Pb[b].Wf()},Wu:function(){this.Wf();
for(var a=0;a<this.qa.length;++a)this.qa[a]&&this.qa[a].jb();for(var b in this.Pb)this.Pb[b]&&this.Pb[b].jb();this.Zo()},za:function(){return-1!==this.La?this.ie(this.La).za():null},Ek:function(a){-1===this.La?this.La=a:this.ie(this.La).Ek(a)},Tg:function(){var a;if(-1===this.La)return-1;var b=this.za();(a=b.qe())&&(b=b.ea())&&b.If.ns();b=this.ie(this.La).Tg();-1===b&&(this.La===this.bi&&(this.$C(),this.bi=null),a&&this.If.ns(),b=this.La,this.La=-1);return b},$f:function(a){this.$b=a},Bd:function(a){this.$=
a;for(var b=0;b<this.qa.length;++b)this.qa[b]&&this.qa[b].Bd(a);for(var c in this.Pb)this.Pb[c]&&this.Pb[c].Bd(a)},$C:function(){this.If.dz()&&null!==this.bi&&this.aD()||this.qa.forEach(function(a){a&&(a.$=this.$,this.$.appendChild(a.S()))}.bind(this))},aD:function(){var a=this.If.Yy(this.bi);if(null===a)return!1;var b=this.Zy(a.Ma);a.$=this.$;null===b?this.$.appendChild(a.S()):b.appendChild(a.S());return!0},isActive:function(){return-1!==this.La},Ds:function(a){this.af=a},ZM:function(a){this.sp=
a},Zo:function(){this.qa=[];this.Pb={};this.kp=null},Zy:function(a){return this.Ma.Nk()&&this.Ma.ad()&&a?a.qz()?u.va(this.$,"cdsClip_before"):a.pz()?u.va(this.$,"cdsClip_after"):null:null},ie:function(a){if(32767===a)return this.kp;if(this.If.dz()){var b=this.If.Yy(a);if(null!==b)return b}return this.Pb.hasOwnProperty(a)?this.Pb[a]:this.qa[a-1]},sx:function(a,b){b.Ma.ad()?b.Di()?this.Pb[a]=b:this.qa[a-1]=b:this.If.MN(a,b)},Av:function(){return null===this.sp?this.qa.length:this.sp},Ku:function(a){var b=
this;return function(c,d,e,f,g,h){var k=b.ie(a);k&&!k.Di()&&f.push({id:a,vz:b.Av()});-1!==b.af&&f.push({id:b.af,vz:15});c=b.$b(c,d,e,f,g,h);if(h)return c}}};var Fb;Fb=function(){Bb.call(this,!1);this.qa={};this.mm=0};Fb.prototype=Object.create(Bb.prototype);l=Fb.prototype;l.constructor=Fb;l.uJ=function(a,b){b.Bd(this.$);b.$f(this.Ku(a));b.Xf(a);this.qa[String(a)]=b;this.mm=Math.max(this.mm,a)};l.cM=function(a){var b=this,c=this.ie(a);this.rE(a);c.Wf();c.close(function(){b.bH(c)})};
l.ML=function(a){this.La=a};l.KL=function(){var a=this.La;this.La=-1;return a};l.hs=function(){this.xF();this.Zo();this.La=-1};l.Hk=function(){for(var a in this.qa)this.qa[a]&&this.qa[a].ta&&this.qa[a].ta.Hk()};l.Ng=function(a){for(var b in this.qa)this.qa[b]&&this.qa[b].Ng(a)};l.yK=function(){return-1!==this.La?this.ie(this.La):null};l.Zo=function(){this.qa={}};
l.rE=function(a){delete this.qa[String(a)];this.La===a&&(this.La=-1);this.mm=Object.keys(this.qa).map(Number).reduce(function(b,c){return Math.max(b,c)},0)};l.bH=function(a){a.jb()};l.xF=function(){var a=Eb.prototype.jb,b=[],c;for(c in this.qa)this.qa[c]&&a.apply(this.qa[c],b)};l.ie=function(a){return this.qa[String(a)]};l.sx=function(a,b){this.qa[String(a)]=b};l.Av=function(){return this.mm};var Pb;Pb=function(){this.pf=[];this.nf=[];this.aj=new L};
Pb.prototype={empty:function(){return 0===this.pf.length&&0===this.nf.length},ns:function(){this.aj=new L},dz:function(){return!this.aj.ad()},clear:function(a){var b=u.va(a,"cdsClip_before");var c=u.va(a,"cdsClip_after");b&&(u.cz(b,"cdsClip_before_canvas"),b=u.va(a,"cdsClip_before_canvas"),b=b.getContext("2d"),b.clearRect(0,0,b.canvas.width,b.canvas.height));c&&(u.cz(c,"cdsClip_after_canvas"),b=u.va(a,"cdsClip_after_canvas"),b=b.getContext("2d"),b.clearRect(0,0,b.canvas.width,b.canvas.height));this.pf=
[];this.nf=[];this.ns()},Yy:function(a){return this.aj.before()&&0<this.pf.length?this.pf.hasOwnProperty(a)?this.pf[a]:this.pf[a-1]:this.aj.after()&&0<this.nf.length?this.nf.hasOwnProperty(a)?this.nf[a]:this.nf[a-1]:null},MN:function(a,b){var c=b.Ma;this.aj.iN(b.Ma);c.qz()?b.Di()?this.pf[a]=b:this.pf[a-1]=b:c.pz()&&(b.Di()?this.nf[a]=b:this.nf[a-1]=b)}};var Qb;Qb=function(a,b,c,d){this.Vb=a;this.RB=b;this.SB=c;this.TB=d};var Rb;Rb=function(a,b){this.Vb=a;this.fg=b};var Sb;
Sb=function(a,b,c,d){this.Vb=a;this.fg=b;this.ve=c;this.Error=d};var Tb,Ub,fb;fb=function(a){this.Ga=new XMLHttpRequest;this.g=a;this.rf=null};
fb.prototype={pb:function(a,b,c,d){this.g.getConfiguration()?(this.Ny(),this.rf.send(a,b,c,d)):this.g.error("Error while creating a connection to the webserver: No configuration found")},Ny:function(){if(null===this.rf)this.g.getConfiguration().CasFactoryName?this.rf=new Tb:this.rf=new Ub(this.g,this.Ga);else return this.rf},Zr:function(a,b){this.Wb=b;this.Ga.open("GET",a,!0);var c=this;this.Ga.onreadystatechange=function(){c.EL(a)};this.Ga.send()},EL:function(a){4===this.Ga.readyState&&(200===this.Ga.status||
"OK"===this.Ga.status?this.Wb.xk(this.Ga.responseText):this.Wb.R("Loading file '"+a+"' failed: "+this.Ga.status,H.Ya))},vk:function(a){this.Ny();null!==this.rf&&this.rf instanceof Tb&&this.rf.vk(a)}};Tb=function(){var a=this;window.CODESYS.CAS.resultListener=function(b){a.Wb.Nb(b)}};Tb.prototype={send:function(a,b){this.Wb=b;window.CODESYS.CAS.sendMessage(a)},vk:function(a){window.CODESYS.CAS.sendCloseBeacon(a)}};Ub=function(a,b){this.g=a;this.Ga=b};
Ub.prototype={send:function(a,b,c,d){void 0===c&&(c=!1);void 0===d&&(d=!1);this.Wb=b;b="WebVisuV3.bin";var e=this;d=this.oI(d,a);r.TK()&&(b+="?"+u.m());c&&"function"==typeof navigator.sendBeacon?navigator.sendBeacon(b,new Uint8Array(a)):(this.Ga.open("POST",b,!c),c||r.$i()||(this.Ga.responseType="arraybuffer"),this.Ga.setRequestHeader("Content-Type","application/octet-stream"),d&&this.Ga.setRequestHeader("3S-Repl-Content",u.iz(a)),c||(this.Ga.onreadystatechange=function(){e.FL()}),0<this.g.getConfiguration().XhrSendTimeout&&
(this.Ga.timeout=this.g.getConfiguration().XhrSendTimeout,this.Ga.ontimeout=function(){e.Wb.R("Sending service timeout",H.cd)}),d?this.Ga.send():this.Ga.send(a))},FL:function(){if(4===this.Ga.readyState)if(200===this.Ga.status||"OK"===this.Ga.status){this.Ga.onreadystatechange=null;if(r.$i()){var a=this.Ga.responseText;""===a&&(a=null)}else a=this.Ga.response,a instanceof ArrayBuffer&&0===a.byteLength&&(a=null);try{null!==a||this.hF()?this.Wb.Nb(a):this.Wb.R("Sending service failed, server not available?",
H.Fb)}catch(b){this.Wb.R("Unexpected exception while evaluating comm result"+b,H.J)}}else 4E3===this.Ga.status?this.g.tL():0===this.Ga.status?this.Wb.R("Sending service aborted",H.m):this.Wb.R("Sending service failed, status: "+this.Ga.status,H.va)},hF:function(){return"function"!==typeof this.Wb.si?!1:this.Wb.si()},oI:function(a,b){return window.btoa?(a||this.g.Pw)&&b instanceof ArrayBuffer&&70>b.byteLength?!0:!1:!1}};var E;E=function(){};E.va=43981;E.m=0;E.Fb=1;E.cd=129;E.h=0;E.J=0;E.Ya=1;var Vb;
Vb=function(a,b,c){this.Qq=a;this.Rq=b;this.px=c;this.Qd=0};Vb.h=function(a){var b=a.getUint16(),c;if(52565!==b)throw Error("Unsupported protocol: "+b);this.yj=a.getUint16();if(12>this.yj)throw Error("Unsupported length of header: "+this.yj);this.Qq=a.getUint16();this.Rq=a.getUint16();this.px=a.getUint32();this.Qd=a.getUint32();b=this.yj-12;16<=this.yj&&(a.getUint16(),b-=2);for(c=0;c<b;++c)a.getUint8();return this};
Vb.prototype={write:function(a,b){a.Cb(52565);a.Cb(16);a.Cb(this.Qq);a.Cb(this.Rq);a.I(this.px);a.I(b);a.Cb(0);a.Cb(0)}};var Wb;Wb=function(a,b,c){this.Dg=new vb(a,b,c);this.O=this.Dg.M};
Wb.prototype={Gz:function(){try{if("|"!==this.O.ui())return"Unexpected format of service: 1";var a=this.Dx(),b=!1;if(4>a.length)return"Unexpected format of service: 2";5<=a.length&&(b="true"===a[4]);return new na(parseInt(a[0],10),0===parseInt(a[1],10),parseInt(a[2],10),"true"!==a[3],b)}catch(c){return"Exception during readOpenConnectionResult: "+c}},VL:function(){var a=this.Dx(),b;for(b=0;b<a.length;++b)if(0===a[b].indexOf("IPv4:"))return a[b].substr(5);return""},Dx:function(){for(var a=[],b="";!this.O.bf();){var c=
this.O.ui();"|"===c?(a.push(b),b=""):b+=c}return a},zb:function(a,b){for(a=this.O.fa()+a;this.O.fa()<a;){var c=this.Dg.yi(),d=this.Dg.yi();c=b[c];var e=this.O.fa();"function"===typeof c&&c(this,d);c=this.O.fa()-e;c<d&&this.CI(d-c)}},RL:function(a){return a?this.JH():this.KH()},KH:function(){try{var a=this.pd(1,2),b=0,c=0,d=0,e=E.J;this.zb(a.Qd,{130:function(f,g){f.zb(g,{32:function(h){b=h.O.getUint16()},33:function(h){c=h.O.getUint32()}})},34:function(f){e=f.O.getUint32()},65407:function(f){d=f.O.getUint16()}});
return new Sb(b,c,e,d)}catch(f){return"Exception during readOldDeviceSessionResult: "+f}},JH:function(){try{var a=this.pd(1,10),b=0,c=0,d=E.J;this.zb(a.Qd,{33:function(e){b=e.O.getUint32()},70:function(e){d=e.O.getUint32()},65407:function(e){c=e.O.getUint16()}});770===c&&(d=E.Ya);return new Sb(0,b,d,c)}catch(e){return"Exception during readNewDeviceSessionResult: "+e}},PL:function(a,b){return 2===a?this.TL():this.UL(b?65315:35)},TL:function(){try{var a=this.pd(1,2),b=0,c=0,d=null,e=null,f=null;this.zb(a.Qd,
{65410:function(g,h){g.zb(h,{32:function(k){c=k.O.getUint16()}})},130:function(g,h){g.zb(h,{32:function(k){b=k.O.getUint16()}})},39:function(g){d=g.O.se(!1)},38:function(g,h){var k=p.B(h);k.an(g.O.ti(),g.O.fa(),h);e=k.wd()},65315:function(g){f=g.O.getUint32()}});return new Qb(0!==b?b:c,f,d,e)}catch(g){return"Exception during readNewDeviceCryptResult: "+g}},UL:function(a){try{var b=this.pd(1,2),c=0,d=0,e=0,f={65410:function(g,h){g.zb(h,{32:function(k){d=k.O.getUint16()}})},130:function(g,h){g.zb(h,
{32:function(k){c=k.O.getUint16()}})}};f[a]=function(g){e=g.O.getUint32()};this.zb(b.Qd,f);return new Qb(0!==c?c:d,e,null,null)}catch(g){return"Exception during readOldDeviceCryptResult: "+g}},QL:function(){try{var a=this.pd(1,2),b=0,c=0,d=0;this.zb(a.Qd,{65410:function(e,f){e.zb(f,{32:function(g){c=g.O.getUint16()},33:function(g){d=g.O.getUint32()}})},130:function(e,f){e.zb(f,{32:function(g){b=g.O.getUint16()},33:function(g){d=g.O.getUint32()}})}});return new Rb(0!==b?b:c,d)}catch(e){return"Exception during readOldDeviceLoginResult: "+
e}},XL:function(){try{for(this.pd(4,1);!this.O.bf();){var a=this.Dg.yi();this.Dg.yi();if(1===a){var b=this.O.getUint32();return 2952790016>b?b:4294967290===b?"Visualization is not allowed":4294967292===b?"No more memory on the plc":4294967293===b?"Connection to invalid application":4294967289===b?"Too many clients are registering at the same time":"Unknown error"}return 65410===a?"no rights":65407===a?"Visu not supported by the plc":"Unknown tag ID"}return"Unexpected format of service: 4"}catch(c){return"Exception during readVisuRegisterClientResult: "+
c}},WL:function(){try{for(this.pd(4,3);!this.O.bf();){var a=this.Dg.yi();this.Dg.yi();if(65407===a)return"Visu not supported by the plc";var b=this.O.getUint32();return 0===b||1===b?b:2===b?"Client registration failed":3===b?"Client registration failed due to an invalid external id":4===b?"The maximum number of visualization clients is already connected. Please try again later.":5===b?"Not enough memory in the PLC to create the client.":"Unknown error"}return"Unexpected format of service: 5"}catch(c){return"Exception during readVisuIsRegisteredClientResult: "+
c}},YL:function(){try{return this.pd(4,2),0}catch(a){return"Exception during readVisuRemoveClientResult: "+a}},es:function(a){var b=0===a.direction?5:2,c=132;a.status.Ob===V.J&&(b=E.Fb,c=E.cd);try{var d=this.pd(8,b);b={};b[c]=function(e,f){e.zb(f,{2:function(g){a.lh.qO=g.O.getUint32();a.lh.Zd=g.O.getUint32()},3:function(g){a.Sn=g.O.getUint32()},8:function(g){a.status.result=g.O.getUint16()}})};b[34]=function(e){e.O.getUint32()};b[65410]=function(e,f){e.zb(f,{32:function(g){a.status.result=g.O.getUint16()}})};
this.zb(d.Qd,b)}catch(e){return"Exception during readtFileAndSessionInfoResult: "+e}},Fz:function(a){var b=0===a.direction?7:4,c=0;try{var d=this.pd(8,b),e=0===a.direction?a.lh.Zd:a.eh.Zd,f={};0===a.direction?(f[6]=function(g){c=g.O.getUint32()},f[7]=function(g,h){a.status.Vd=!0;f[5](g,h)},f[5]=function(g,h){null===a.buffer&&(a.buffer=p.B(e));if(a.status.bd+c<=e&&c<=h){for(h=0;h<c;)a.buffer.Ym(g.O.getUint8()),h++;a.status.bd+=c;a.status.result=E.h}else a.status.bd=4294967295}):f[5]=function(g){g=
g.O.getUint16();g===E.h?(a.status.result=E.h,a.status.bd+=a.status.$g,a.status.$g=0,a.status.Vd=a.status.bd>=e):a.status.result=g};this.zb(d.Qd,f)}catch(g){return"Exception during readtFileAndSessionInfoResult: "+g}},SL:function(a){var b=0===a.direction?a.lh.Zd:a.eh.Zd;b=a.status.result===E.h&&a.status.bd===b&&a.status.Vd?8:9;try{var c=this.pd(8,b);this.zb(c.Qd,{7:function(d){d.O.getUint16();a.status.Vd=!0}})}catch(d){return"Exception during readFinishFileTransferResult: "+d}},Hi:function(a){try{var b=
this.pd(4,4),c=0,d=a;this.zb(b.Qd,{132:function(e,f){e.zb(f,{2:function(g){g.O.getUint32();var h=g.O.getUint32(),k=g.O.getUint32();g=g.O.getUint32();d=new ra(h,k,g)},4:function(){d.finish()},1:function(g){c=g.O.getUint32()},3:function(g,h){d.wd().an(g.O.ti(),g.O.fa(),Math.min(h,d.wL()))}})}});return 0!==c?65535===c?"Client id not present or no longer valid":c.toString():null===d?"Unexpected format of service: 6":d}catch(e){return"Exception during readVisuGetPaintDataResult: "+e}},CI:function(a){this.O.seek(this.O.fa()+
a)},pd:function(a,b){var c=Vb.h(this.O),d=4+c.yj+c.Qd;if(this.O.size()<d)throw Error("Actual packet size "+this.O.size()+" smaller than expected "+d);if(c.Qq!==(128|a)||c.Rq!==b)throw Error("Unexpected format of service: 3");return c}};var gb;
(function(){var a=!1;gb=function(b,c,d){this.ga=b;this.zE=c;this.ma=p.B(50);this.TD=d;this.ca=new wb(this.ma,b);this.F=this.ca.Ee};gb.prototype={iO:function(b){a=b},kb:function(){return this.ma.wd()},Bz:function(b,c,d){var e=this.F.cb("|",!1);b=this.F.cb(b,!1);c=this.F.cb(c.toString(),!1);d=this.F.cb(d.toString(),!1);this.nl(1);this.F.Qf(e);this.F.Qf(b);this.F.Qf(e);this.F.Qf(c);this.F.Qf(e);this.F.Qf(d);this.F.Qf(e)},pM:function(){this.nl(3)},lK:function(){this.nl(100)},Um:function(b,c,d){d=c.cb(d,
!1);var e=d.length()+1,f=this.xf(e,4,2);b.G(e+f,3);c.Ub(d);this.gf(c,f,0)},WJ:function(b){var c=p.B(500),d=new wb(c,this.ga),e=d.Ee;d.G(64);d.G(4,3);e.I(2882382797);d.G(65);this.Um(d,e,"WebVisualization");d.G(67);this.Um(d,e,b);d.G(68);this.Um(d,e,Qa.h);d.G(69);this.Um(d,e,Qa.h);return c},lE:function(b,c){var d=p.B(500),e=new wb(d,this.ga),f=e.Ee,g=new Uint8Array(c);e.G(16);var h=b.byteLength;var k=this.xf(h,4,2);e.G(h+k,3);for(h=0;h<b.length;++h)f.Na(b[h]);this.gf(f,k,0);e.G(17);h=c.byteLength;e.G(h,
3);for(h=0;h<g.length;++h)f.Na(g[h]);return d},iK:function(b){var c=this.Ec(1,10);b=this.WJ(b.A.qo);var d=E.Ya;this.ca.G(131);this.Qo(b,this.ca,this.F);this.ca.G(70);r.jB()&&(d|=2);this.ca.G(4,3);this.F.I(d);this.xc(c)},Qo:function(b,c,d){var e=2>=c.Vy(b.size())?2:6;c.G(b.size(),e);this.ml(d,b)},fK:function(b){var c=this.Ec(1,2);this.hu(b,1);this.xc(c)},hu:function(b,c){this.ca.G(34);this.ca.G(4,3);this.F.I(b);this.ca.G(37);this.ca.G(4,3);this.F.I(c)},gK:function(b,c){var d=this.Ec(1,2);b=this.lE(b,
c);this.hu(2,2);this.ca.G(129);this.Qo(b,this.ca,this.F);this.xc(d)},Jr:function(b,c,d,e){if(void 0===b||null===b)b="";void 0===c&&(c=null);void 0===d&&(d=0);void 0===e&&(e=E.J);var f=this.Ec(1,2),g=null,h=null,k=new ba("utf-8");this.ca.G(34);this.ca.G(4,3);this.F.I(e);0!==d&&(this.ca.G(35),this.ca.G(4,3),this.F.I(d));null!==c&&(h=k.encode(c));b=k.encode(b);b=this.IF(b);null!==h&&0!==d&&e===E.Ya&&(g=this.HF(h,d));this.ca.G(129);this.ca.G(b.size()+(null!==g?g.size():0),2);this.ml(this.F,b);null!==
g&&this.ml(this.F,g);this.xc(f)},hK:function(){var b=this.Ec(1,3);this.F.I(0);this.xc(b)},AO:function(b,c,d,e){var f=this.Ec(4,1);b=this.F.cb(b,!1);var g=b.length()+4+1,h=this.xf(g,4,0),k=0,q=0,n=524288,B=this.F.cb(c,!1),A=this.F.cb(d,!1);c&&0<c.length&&k++;d&&0<d.length&&k++;0<k&&(q=8+84*k,g+=q);e&&(n=2097152);this.ca.G(1);this.ca.G(g+h,3);this.F.Ub(b);this.gf(this.F,h,0);this.F.I(n);0<k&&(this.F.I(q),this.F.I(k),c&&0<c.length&&(this.F.Cb(1),this.F.Ub(B),this.F.Zm(82-B.length()-1)),d&&0<d.length&&
(this.F.Cb(2),this.F.Ub(A),this.F.Zm(82-A.length()-1)));this.xc(f)},yO:function(b){var c=this.Ec(4,3);this.ca.G(3);this.ca.G(4,3);this.F.I(b);this.xc(c)},Mi:function(b){this.Mx(b,4,132)},xO:function(b){var c=this.Ec(4,4);this.ca.G(132);this.ca.G(8,2);this.ca.G(4);this.ca.G(4,3);this.F.I(b);this.xc(c)},zO:function(b){this.Mx(b,6,134)},Ms:function(b){var c=this.Ec(4,2);this.ca.G(2);this.ca.G(4,3);this.F.I(b);this.xc(c)},XJ:function(b){var c=this.Ec(8,E.Fb);b=this.F.cb(b.Ug,!1);var d=b.length()+1,e=
this.xf(d,4,2);this.ca.G(1);this.ca.G(d+e);this.F.Ub(b);this.gf(this.F,e,0);this.ca.G(2);this.ca.G(8,3);this.F.I(0);this.F.I(0);this.xc(c)},sy:function(b){var c=this.Ec(8,0===b.direction?5:2),d=this.F.cb(b.Ug,!1),e=d.length()+1,f=this.xf(e,4,2);this.ca.G(1);this.ca.G(e+f);this.F.Ub(d);this.gf(this.F,f,0);0===b.direction?(this.ca.G(2),this.ca.G(8,3),this.F.I(0),this.F.I(0)):(this.ca.G(2),this.ca.G(8,3),b.eh.Zd=b.buffer.size(),this.F.I(0),this.F.I(b.eh.Zd));this.xc(c)},qy:function(b){var c=this.Ec(8,
0===b.direction?7:4);if(1===b.direction){var d=b.eh.Zd;var e;var f=this.CF();if(20<f)f-=20;else return 1;f>d-b.status.bd&&(f=d-b.status.bd);d=this.xf(f,4,0);this.ca.G(6);this.ca.G(4,3);this.F.I(f);b.status.$g=f;this.ca.G(5);this.ca.G(4+f+d,3);this.F.I(b.Sn);for(e=0;e<f;e++)this.F.Na(b.buffer.getUint8());this.gf(this.F,d,0)}else this.ca.G(5),this.ca.G(4,3),this.F.I(b.Sn),this.F.I(E.h);this.xc(c)},YJ:function(b){var c=0===b.direction?b.lh.Zd:b.eh.Zd;c=this.Ec(8,b.status.result===E.h&&b.status.bd===
c&&b.status.Vd?8:9);this.ca.G(7);this.ca.G(4,3);this.F.I(b.Sn);this.xc(c)},Mx:function(b,c,d){c=this.Ec(4,c);b=this.UF(b);this.ca.G(d);this.Qo(b,this.ca,this.F);this.xc(c)},xc:function(b){var c=this.F.fa()-b.sC;this.qJ(b.nB,c)},Ec:function(b,c){b=new Vb(b,c,this.zE);this.nl(2);this.F.Zm(20);return{nB:b,sC:this.F.fa()}},IF:function(b){var c=p.B(10+b.byteLength),d=new wb(c,this.ga),e=d.Ee,f=b.byteLength+1,g=this.xf(f,4,2);d.G(16);d.G(f+g);for(d=0;d<b.byteLength;++d)e.Na(b[d]);e.Na(0);this.gf(e,g,0);
return c},HF:function(b,c){b=this.GF(b,c);c=p.B(10+b.length);var d=new wb(c,this.ga),e=d.Ee;d.G(17);d.G(b.length,3);for(d=0;d<b.length;++d)e.Na(b[d]);return c},GF:function(b,c){var d="Qcw@e46A6!R.gssltR4dg=_l)B^nQSo^",e="",f=[],g=0,h=0,k=b.byteLength+1,q=[c&255,0,0,0];for(c=0;c<d.length;c+=4)e=e.concat(String.fromCharCode(d.charCodeAt(c+2)+3)),e=e.concat(String.fromCharCode(d.charCodeAt(c+1)+2)),e=e.concat(String.fromCharCode(d.charCodeAt(c+3)+4)),e=e.concat(String.fromCharCode(d.charCodeAt(c)+1));
d=e;32>k&&(k=32);0!==k%4&&(k+=4-k%4);for(c=0;c<k;++c){e=d.charCodeAt(g);var n=0;c<b.byteLength&&(n=b[c]);f[c]=(n^e+q[h])&255;g++;g===d.length&&(g=0);h++;4===h&&(h=0)}return f},CF:function(){return this.TD-this.F.fa()},UF:function(b){var c=p.B(100),d=new wb(c,this.ga),e=d.Ee,f=b.eu,g=b.Ca();d.G(1);d.G(16,3);e.I(b.Cd);e.I(b.VB);e.I(b.WB);e.I(b.BA);(null!==f||null!==g&&!a)&&this.pJ(d,f,a?null:g);null!==b.kh&&(d.G(3),d.G(8,3),e.Cb(b.kh.s),e.Cb(b.kh.u),e.Cb(b.kh.T),e.Cb(b.kh.aa));null!==g&&a&&(d.G(5),
d.G(8,3),e.I(g.yb),e.I(g.Rb));return c},pJ:function(b,c,d){b.G(2);var e=0,f=b.Ee;null!==d&&(e=8);null!==c&&(e+=c.size());var g=this.xf(e,4,0);b.G(e+g,3);null!==d&&(f.I(d.yb),f.I(d.Rb));null!==c&&this.ml(f,c);this.gf(f,g,0)},ml:function(b,c){var d=c.size(),e;for(e=0;e<d;++e)b.Na(c.My(e))},xf:function(b,c,d){for(var e=0;0!==(b+d)%c;)b++,e++;return e},gf:function(b,c,d){for(var e=0;e<c;++e)b.Na(d)},nl:function(b){this.F.Na(b);this.F.Na(0);this.F.Cb(0)},qJ:function(b,c){this.F.seek(4);b.write(this.F,
c)}}})();var Wa;Wa=function(){};Wa.LC=0;Wa.TA=1;var Ta;Ta=function(a){this.m=r.Gb();this.ab=[];this.g=a;var b=this;this.h(this.m?"pointermove":"mousemove",function(c){b.sq(c)});this.h(this.m?"pointerup":"mouseup",function(c){b.J(c)});this.h(this.m?"pointercancel":"mousecancel",function(c){b.Gg(c)});this.Oc=[]};
Ta.prototype={dM:function(a){var b=[],c,d=this;for(c=0;c<this.Oc.length;++c)this.Oc[c].target===a&&b.push(c);if(0!==b.length){var e=u.Yk(a.ja);var f=u.so(a.$b);a=function(h){h.stopPropagation()};var g=function(h){d.wE(h,K.m,e,f)};for(c=0;c<b.length;++c)this.Oc[c].target=null,this.Oc[c].$r=a,this.Oc[c].Js=g,this.Oc[c].wr=void 0}},wE:function(a,b,c,d){a.stopPropagation();var e=new t(a.pageX,a.pageY),f=new t(a.pageX,a.pageY);e.Fs(c);a=new Kb(a,e,f,d);if(null!==this.g.oa&&this.g.oa.handleEvent(a,b))return!0;
b=m.h(b,this.g.A.la,e);b.Ad(d);r.fh()&&(f=r.Wi(f));d=u.Ox(f);b.Eb(d);this.g.Yc(b)},Fq:function(a){for(var b=a.length-1;0<=b;--b)this.Oc.splice(a[b],1)},h:function(a,b){this.ab.push({Gy:a,callback:b});document.addEventListener(a,b,!0)},sq:function(a){var b=this.Tl(u.df(a));null!==b&&b.$r&&b.$r(a)},J:function(a){var b=u.df(a),c=this.Tl(b);null!==c&&(this.In(b),c.Js&&c.Js(a))},Gg:function(a){var b=u.df(a),c=this.Tl(b);null!==c&&(this.In(b),c.wr&&c.wr(a))},Tl:function(a){for(var b=0;b<this.Oc.length;++b)if(this.Oc[b].Fy===
a)return this.Oc[b];return null},In:function(a){for(var b=[],c=0;c<this.Oc.length;++c)this.Oc[c].Fy===a&&b.push(c);this.Fq(b)},yr:function(a,b,c,d,e){var f=u.df(a);if(null!==this.Tl(f))throw Error("This event is already registered.");if(u.Qi(a)&&a.target.releasePointerCapture)try{a.target.releasePointerCapture(f)}catch(g){}this.Oc.push({Fy:f,target:b,$r:c,Js:d,wr:e})}};var K;K=function(){};K.J=2;K.m=4;K.h=16;K.Ya=521;K.va=529;var m;
m=function(a,b,c,d){void 0===c&&(c=0);void 0===d&&(d=0);this.Cd=a;this.BA=b;this.VB=c;this.WB=d;this.kh=this.eu=null;this.$j=!1;this.xb=null};m.h=function(a,b,c){r.fh()&&(c=r.Wi(c));return m.m(a,b,c)};m.J=function(a,b,c,d){return new m(a,b,c,d)};m.Ya=function(a,b){return new m(257,a,b.charCodeAt(0))};m.va=function(a,b,c,d,e,f,g){var h=p.B(12),k=P.B(h,!0);a=new m(516,a,(b?c?d?7:5:d?3:1:0)|(g?16:0),0);k.tc(0);k.tc(0);k.tc(e.D()-1);k.tc(e.C()-1);k.$m(f);a.Eb(h);return a};
m.Fb=function(a,b,c){return m.m(a,b,c)};m.m=function(a,b,c){return new m(a,b,c.fc())};m.prototype={iA:function(a){this.kh=new N(Math.max(0,a.s),Math.max(0,a.T),Math.max(0,a.u),Math.max(0,a.aa))},Eb:function(a){this.eu=a},YN:function(){this.$j=!0},Ad:function(a){this.xb=a},Ca:function(){return this.xb}};var Xb;Xb=function(){var a;void 0===a&&(a=100);this.Fl=[];this.ni=this.dk=0;this.Kj=a;this.Sl=!1;this.fw=0};
Xb.prototype={push:function(a){2097152!==a.Cd&&(this.fw=u.m());if(this.tG(a))return!0;if(this.Sl)return"undefined"!==typeof v&&v.warn(u.h("Eventqueue full, dropped event with tag {0}",a.Cd)),!1;this.Fl[this.ni%this.Kj]=a;this.ni=(this.ni+1)%this.Kj;this.ni===this.dk&&(this.Sl=!0);return!0},empty:function(){return!this.Sl&&this.dk===this.ni},pop:function(){if(this.empty())return null;this.Sl=!1;var a=this.dk;this.dk=(this.dk+1)%this.Kj;return this.Fl[a]},tG:function(a){if(!this.empty()&&(a.Cd===K.h||
2053===a.Cd||2055===a.Cd||516===a.Cd||this.Nv(a.Cd))){var b=(this.ni+this.Kj-1)%this.Kj,c=this.Fl[b];if(c.Cd===a.Cd&&(!this.Nv(a.Cd)||this.gG(a,c)))return this.Fl[b]=a,!0}return!1},Nv:function(a){return 539===a},gG:function(a,b){return a.Ca()===b.Ca()?!0:null===a.Ca()||null===b.Ca()?!1:a.Ca().$A(b.Ca())}};var Aa;Aa=function(a){this.Lf={};this.g=a;this.eq=null};
Aa.prototype={xi:function(a,b,c){void 0===c&&(c=null);var d=this.$G(a,c);var e=this.Lf[d];if(void 0!==e)return e;e=new Yb(this.g,a,c,b);return this.Lf[d]=e},GJ:function(a){var b=[];this.rv(function(c){c.Vf()||(b.push(c),c.HJ(function(){b.splice(b.indexOf(c),1);0===b.length&&setTimeout(a,0)}))})},MJ:function(){var a=u.m(),b=[],c=this.g.getConfiguration(),d;if(-1!==c.NumCachedImages)if(0===c.NumCachedImages)this.Lf={};else{this.rv(function(f,g){var h=f.JG;f=f.Aw?c.MaxUnusedImageAge:c.MaxUndrawnImageAge;
0!==h&&h<a-f&&b.push({path:g,time:h})});var e=Math.min(u.CL(this.Lf)-c.NumCachedImages,b.length);if(0<e)for(b.sort(function(f,g){return f.time-g.time}),d=0;d<e;++d)delete this.Lf[b[d].path]}},fM:function(a){delete this.Lf[a]},uz:function(){null===this.eq&&(this.eq=this.g.getConfiguration().LoadImagesById);return this.eq},rv:function(a){var b;for(b in this.Lf){var c=this.Lf[b];a(c,b)}},$G:function(a,b){return null===b?a:a+":"+b}};var Yb;
Yb=function(a,b,c,d){this.g=a;this.Aw=!1;this.Nf=c;this.ug=u.to(b);this.RH=3;this.Xq(d,null);this.hr();this.Ej=this.vm=this.ki=null};
Yb.prototype={jG:function(){try{r.KB(this.je,this.ug,this.g.getConfiguration())?this.tF():(null===this.Nf||this.Rv()||this.aJ(),this.rl(2))}catch(a){this.g.error("Unexpected exception during load image callback: "+a)}},Rv:function(){return u.Ho(this.ug)},aJ:function(){try{var a=window.document.createElement("canvas"),b=a.getContext("2d"),c,d=parseInt(this.Nf.substr(1,2),16),e=parseInt(this.Nf.substr(3,2),16),f=parseInt(this.Nf.substr(5,2),16),g=this.EF(),h=this.rn();a.width=h.L;a.height=h.V;b.drawImage(this.je,
0,0);var k=b.getImageData(0,0,a.width,a.height);for(c=0;c<k.data.length;c+=4)g(k.data[c],k.data[c+1],k.data[c+2],d,e,f)&&(k.data[c+3]=0,k.data[c]=0,k.data[c+1]=0,k.data[c+2]=0);b.putImageData(k,0,0);this.ki=a;this.je=null}catch(q){this.ki=this.Nf=null,v.warn("Exception during making image "+this.ug+" transparent. Is this an SVG? As a workaround it will be rendered ignoring the transparency color")}},NG:function(a){try{if(v.warn("Loading image "+this.ug+" failed: "+a.type),0<=this.RH--){var b=this;
window.setTimeout(function(){v.info("Triing to load the image "+b.ug+" again");b.Xq(!0,null)},50);this.rl(4)}else this.rl(3)}catch(c){this.g.error("Unexpected exception during handling of load image problems: "+c)}},qn:function(){this.hr();this.Aw=!0;2!==this.da&&v.warn("Access to not (yet) loaded image");return null!==this.ki?this.ki:this.je},rn:function(){null===this.Ej&&(null!==this.je?this.Ej=r.nt(this.je):null!==this.ki&&(this.Ej=r.nt(this.ki)));return this.Ej},nM:function(){this.Ej=null},HJ:function(a){this.vm=
a},Vf:function(){return 2===this.da||3===this.da},loaded:function(){return 2===this.da},rl:function(a){this.hr();this.da=a;null!==this.vm&&this.Vf()&&(this.vm(),this.vm=null)},hr:function(){this.JG=u.m()},Xq:function(a,b){this.je=new Image;var c=this;b=null===b?this.ug:b;this.je.onload=function(){c.jG()};this.je.onerror=function(d){c.NG(d)};this.da=1;this.je.src=this.nD(b,a)},nD:function(a,b){b&&(a+="?"+u.m());this.Rv()&&!this.g.getConfiguration().WorkaroundDisableSVGAspectRatioWorkaround&&(a+="#svgView(preserveAspectRatio(none))");
return a},EF:function(){return this.g.getConfiguration().FuzzyTransparencyColorEvaluation?function(a,b,c,d,e,f){return 2>Math.abs(a-d)&&2>Math.abs(b-e)&&2>Math.abs(c-f)}:function(a,b,c,d,e,f){return a===d&&b===e&&c===f}},tF:function(){v.m("Workaround for image "+this.ug+" without width/height activated");var a=this;r.XA(this.je,function(b){a.Xq(!1,b)},function(b){v.warn("Retrieving workaround image failed so going on as formerly, reason: "+b);a.rl(3)})}};var za;
za=function(){this.Re={};this.Ce=null;this.al="<Project>"};
za.prototype={zi:function(a){a=a.toLowerCase().split(".");var b=[],c;for(c=0;c<a.length;++c)b[c]=u.bh(a[c]);if(1>b.length)return null;a=b[b.length-1];if(1===b.length)return this.Xj(this.nF(a));c=b[b.length-2];if(2===b.length){var d=this.oF(c);if(null!==d)return this.Xj(this.vp(a,d));d=this.xp(c);return null!==d?this.Xj(this.Nl(a,d)):null}b=b.slice(0,b.length-2).join(".");d=this.xp(b);if(null!==d&&(d=this.wp(c,d),null!==d))return this.Xj(this.vp(a,d));d=this.xp(b+"."+c);return null!==d?this.Xj(this.Nl(a,
d)):null},DM:function(a){this.Ce=a},Xj:function(a){return null!==a?a.path:null},xp:function(a){var b=this.ov(a);null===b&&(b=this.pF(a));return b},ov:function(a){a=this.Re[a];return void 0!==a?a:null},pF:function(a){if(null!==this.Ce){a=a.toLowerCase();var b,c=null;for(b=0;b<this.Ce.length;++b)if(this.Ce[b].bs===a){c=this.Ce[b].Dz;break}if(null!==c)for(b=0;b<this.Ce.length;++b)if(this.Ce[b].bs!==a&&this.Ce[b].Dz===c){var d=this.ov(this.Ce[b].bs);if(null!==d)return d}}return null},nF:function(a){var b=
this.Re[this.al],c;if(void 0!==b&&(b=this.Nl(a,b),null!==b))return b;for(c in this.Re)if(c!==this.al&&(b=this.Nl(a,this.Re[c]),null!==b))return b;return null},Nl:function(a,b){var c;for(c in b.Gi){var d=this.vp(a,b.Gi[c]);if(null!==d)return d}return null},vp:function(a,b){a=b.entries[a];return void 0===a?null:a},oF:function(a){var b=this.Re[this.al],c;if(void 0!==b&&(b=this.wp(a,b),null!==b))return b;for(c in this.Re)if(b=this.wp(a,this.Re[c]),null!==b)return b;return null},wp:function(a,b){a=b.Gi[a];
return void 0!==a?a:null},fill:function(a){a=a.replace(/\r\n/g,"\n").split("\n");var b;for(b=0;b<a.length;++b){var c=a[b].split(";");if(!(4>c.length)){var d=this.ZG(u.bh(c[1]));var e=u.bh(c[0]).toLowerCase();var f=u.bh(c[2]).toLowerCase();var g=u.bh(c[3]);c=this.Re[d];if(void 0===c){c={Gi:{}};var h=this.Mu(e);h.entries[f]=this.fp(f,g);c.Gi[e]=h;this.Re[d]=c}else h=c.Gi[e],void 0===h?(h=this.Mu(e),h.entries[f]=this.fp(f,g),c.Gi[e]=h):h.entries[f]=this.fp(f,g)}}},ZG:function(a){return null===a||""===
a?this.al:a.toLowerCase()},Mu:function(a){return{name:a,entries:{}}},fp:function(a,b){return{id:a,path:b}}};var Fa;Fa=function(){};Fa.prototype={j:function(a){if(a.g.sa){var b=a.g.ea().za();if(null!==b&&!(b instanceof yb)&&(b=b.Qc,null!==b&&void 0!==b)){b.tk();return}}a=a.g.oa;null!==a&&a.tk()}};var Zb;Zb=function(a,b){this.l=I.$d(b)};Zb.prototype={j:function(a){a.Ar();a.g.Fd.Hn(this.l)}};var $b;$b=function(a,b){this.l=I.$d(b)};
$b.prototype={j:function(a){a.getContext().clearRect(this.l.s,this.l.u,this.l.D(),this.l.C());a.g.Fd.Hn(this.l)}};var ac;ac=function(a,b){this.l=I.$d(b)};ac.prototype={j:function(a){a=a.getContext();a.save();a.beginPath();a.rect(this.l.s,this.l.u,this.l.D()+1,this.l.C()+1);a.clip()}};var bc;bc=function(){};bc.prototype={j:function(a){(a=a.g.Pm)&&a.ky()}};var cc;
cc=function(a,b,c,d){this.l=I.mh(b,!1);this.Am=0!==b.getInt8();this._type=b.getInt8();switch(this._type){case 2:case 4:this.Cl=b.getUint32();this.Dl=b.getUint32();this.Dh=b.getUint32();break;case 1:case 3:this.Eu=b.getInt16(),this.Cl=b.getUint32()}d.zd()&&(this.l=d.oh(this.l))};
cc.prototype={j:function(a){var b=a.getContext(),c=this.l.s,d=this.l.u,e=this.l.D(),f=this.l.C(),g=b.lineWidth;b.save();this.Hm=a.g.getConfiguration().SemiTransparencyActive;a.getState().Tf()?a.getState().bn(this.l):b.fillStyle=!0===this.Hm?I.$a(this.Cl):I.lb(this.Cl);b.lineWidth=1;c+=.5;d+=.5;switch(this._type){case 2:case 4:this.wH(b,c,d,e,f);break;case 1:case 3:this.vH(b,c,d,e,f)}b.lineWidth=g;a.getState().Tf()&&a.getState().Ik();b.restore()},ic:function(){return this.l},JK:function(){return!0===
this.Hm?I.$a(this.Dl):I.lb(this.Dl)},zK:function(){return!0===this.Hm?I.$a(this.Dh):I.lb(this.Dh)},wH:function(a,b,c,d,e){if(!0===this.Hm){var f=this.Am?I.$a(this.Dh):"#000000";var g=I.$a(this.Dl);var h=I.$a(this.Dh)}else f=this.Am?I.lb(this.Dh):"#000000",g=I.lb(this.Dl),h=I.lb(this.Dh);this.Am?(a.strokeStyle=f,a.strokeRect(b,c,d,e),a.fillRect(b,c,d,e)):(a.fillRect(b,c,d,e),a.strokeStyle=g,a.beginPath(),a.moveTo(b,c),a.lineTo(b+d,c),a.moveTo(b,c),a.lineTo(b,c+e),a.stroke(),a.closePath(),a.strokeStyle=
f,a.beginPath(),a.moveTo(b,c+e),a.lineTo(b+d,c+e),a.lineTo(b+d,c),a.stroke(),a.closePath(),a.strokeStyle=h,a.beginPath(),a.moveTo(b+1,c+e-1),a.lineTo(b+d-2,c+e-1),a.moveTo(b+d-1,c+1),a.lineTo(b+d-1,c+e-1),a.stroke(),a.closePath())},vH:function(a,b,c,d,e){var f=new dc(this.Cl,this.Eu);if(this.Am)a.strokeStyle=I.lb(f.Oy(0)),a.strokeRect(b,c,d,e),a.fillRect(b,c,d,e);else{a.strokeStyle="#000000";a.fillRect(b,c,d,e);a.strokeRect(b,c,d,e);var g;for(g=0;g<this.Eu;++g)a.beginPath(),a.moveTo(b+g,c+e-g),a.lineTo(b+
g,c+g),a.lineTo(b+d-g,c+g),a.strokeStyle=I.lb(f.xK(g)),a.stroke(),a.beginPath(),a.moveTo(b+d-g,c+1+g),a.lineTo(b+d-g,c+e-g),a.lineTo(b+1+g,c+e-g),a.strokeStyle=I.lb(f.Oy(g)),a.stroke()}}};var Ea;
Ea=function(a,b,c,d){a=b.fa();var e=b.getUint16();var f=b.ia(e,!1);e=b.getUint16();e=b.ia(e,!1);""!==f&&(e=f+"."+e);this.yf=e;this.l=I.mh(b,!0);this.l.normalize();d.zd()&&(this.l=d.oh(this.l));f=b.getUint32();this.Vp=0!==(f&1);this.ll=0!==(f&2);this.Pl=0!==(f&4);this.BI=0!==(f&8);this.wu=0!==(f&16);this.Sm=0!==(f&32);this.Hp=0!==(f&128);this.Nq=0!==(f&256);this.kr=0!==(f&1024);this.Vo=0!==(f&2048);this.Hg=0!==(f&4096);this.sj=!1;this.$w=this.l;this.Nf=I.lb(b.getUint32());c>=b.fa()-a+16&&(this.sj=
!0,this.Jl=b.getFloat32(),this.Kl=b.getFloat32(),d.zd()&&(this.Jl=d.Gm,this.Kl=d.gi));this.Ea=null};
Ea.prototype={j:function(a){a=a.getContext();var b=I.JB(this.l),c=this.l.clone(),d=this;this.zI(a,c,b);null!==this.Ea&&(this.Ea.loaded()?this.nj(a,this.Ea.qn(),function(){return d.Ea.rn()},c,!1):this.ME(a,this.l));this.BI&&(c=I.mo(a),a.strokeRect(this.l.s+c,this.l.u+c,this.l.D(),this.l.C()));this.MD(a,b)},pN:function(a){this.yf=a},jz:function(a,b){var c;this.Hg&&null!==(c=b.zi(this.yf))&&a.fM(c);if(null===this.Ea){if(a.uz())return b="ImageByImagePoolId?id="+this.yf,this.Ea=this.Sm?a.xi(b,this.Hg,
this.Nf):a.xi(b,this.Hg),this.Ea.Vf();c=b.zi(this.yf);if(null!==c)return this.Ea=this.Sm?a.xi(c,this.Hg,this.Nf):a.xi(c,this.Hg),this.Ea.Vf();v.warn("Imagepoolentry for "+this.yf+" not found");return!0}return this.Ea.Vf()},zA:function(){var a=this,b=this.l.clone();null!==this.Ea&&(this.nj(null,this.Ea.qn(),function(){return a.Ea.rn()},b,!0),this.Ea.nM());return this.$w},nj:function(a,b,c,d,e){if(this.Pl&&this.sj){var f=c();f=new w(Math.round(this.Jl*f.L),Math.round(this.Kl*f.V));d=u.jo(d,f,this);
this.Pl=!1;this.ll=!0}if(this.ll)e||a.drawImage(b,d.s,d.u,d.D(),d.C());else if(this.Vp){f=c();d.D()/f.L<d.C()/f.V?(c=Math.round(d.D()*f.V/f.L),f=d.D()):(c=d.C(),f=Math.round(d.C()*f.L/f.V));var g=new N(d.s,d.u,d.s+f,d.u+c);d=u.Ps(g,d,this);e||a.drawImage(b,d.s,d.u,f,c)}else e||a.drawImage(b,d.s,d.u);this.$w=d},zI:function(a,b,c){c&&(a.save(),b.dd.cn(a,b));this.wu&&(a.save(),a.beginPath(),a.rect(b.s,b.u,b.D()+1,b.C()+1),a.clip())},MD:function(a,b){this.wu&&a.restore();b&&a.restore()},ME:function(a,
b){b=b.lz(-3);a.save();a.fillStyle="#eeeeee";a.strokeStyle="#ff0000";a.lineWidth=3;a.fillRect(b.s,b.u,b.D(),b.C());a.beginPath();a.moveTo(b.s,b.u);a.lineTo(b.T,b.aa);a.moveTo(b.T,b.u);a.lineTo(b.s,b.aa);a.closePath();a.stroke();a.restore()}};var ec;ec=function(a,b,c,d){this.l=I.mh(b,!0);this.vx=I.Rk(b.getInt16());this.RI=I.Rk(b.getInt16());this.jF=1===b.getInt16();d.zd()&&(this.l=d.oh(this.l))};
ec.prototype={j:function(a){var b=a.getContext(),c=this.l.D(),d=this.l.C(),e=!a.getState().Vr(),f=!a.getState().Sh,g=Math.min(c,d)/2;0>=c||0>=d||(b.save(),this.bD(b),a.getState().Tf()&&a.getState().bn(this.QF(g)),b.beginPath(),b.arc(0,0,g,this.vx,this.vx+this.RI,!1),this.jF&&(b.lineTo(0,0),b.closePath(),e&&b.fill()),b.restore(),f&&b.stroke(),a.getState().Tf()&&a.getState().Ik())},QF:function(a){return new N(-a,-a,a,a)},bD:function(a){var b=this.l.D(),c=this.l.C();null!==this.l.dd?this.l.dd.cn(a,this.l):
a.translate(this.l.s+.5,this.l.u+.5);a.translate(b/2,c/2);b>c?a.scale(b/c,1):a.scale(1,c/b)}};var fc;fc=function(a,b){this.ha=I.yt(b)};fc.prototype={j:function(a){a=a.getContext();var b;for(b=0;b<this.ha.length;++b)a.fillRect(this.ha[b].X,this.ha[b].Y,1,1)}};var gc;gc=function(a,b,c,d){this._type=b.getUint16();2===a?this.ha=I.yt(b):59===a&&(this.ha=I.iC(b));d.zd()&&(this.ha=d.oC(this.ha))};
gc.prototype={j:function(a){var b=a.getContext(),c=!a.getState().Vr(),d=!a.getState().Sh;if(!(2>this.ha.length)){a.getState().Tf()&&a.getState().bn(this.OI());d&&this.FH(b);switch(this._type){case 0:this.NE(b,c,d);break;case 1:d&&this.OE(b);break;case 2:d&&this.IE(b)}a.getState().Tf()&&a.getState().Ik()}},FH:function(a){a=I.mo(a);var b;if(0!==a)for(b=0;b<this.ha.length;++b)this.ha[b].X+=a,this.ha[b].Y+=a},NE:function(a,b,c){a.beginPath();a.moveTo(this.ha[0].X,this.ha[0].Y);for(var d=1;d<this.ha.length;++d)a.lineTo(this.ha[d].X,
this.ha[d].Y);a.closePath();b&&a.fill();c&&a.stroke()},OE:function(a){var b;a.beginPath();a.moveTo(this.ha[0].X,this.ha[0].Y);for(b=1;b<this.ha.length;++b)a.lineTo(this.ha[b].X,this.ha[b].Y);a.stroke()},IE:function(a){a.beginPath();a.moveTo(this.ha[0].X,this.ha[0].Y);for(var b=1;b+3<=this.ha.length;)a.bezierCurveTo(this.ha[b].X,this.ha[b].Y,this.ha[b+1].X,this.ha[b+1].Y,this.ha[b+2].X,this.ha[b+2].Y),b+=3;for(;b<this.ha.length;++b)a.lineTo(this.ha[b].X,this.ha[b].Y);a.stroke()},OI:function(){var a=
1E9,b=-1E9,c=1E9,d=-1E9,e;for(e=0;e<this.ha.length;++e)this.ha[e].X<a&&(a=this.ha[e].X),this.ha[e].Y<c&&(c=this.ha[e].Y),this.ha[e].X>b&&(b=this.ha[e].X),this.ha[e].Y>d&&(d=this.ha[e].Y);return new N(a,c,b,d)}};var hc;hc=function(a,b,c,d){this._type=b.getUint16();switch(a){case 1:this.l=I.mh(b,!0);break;case 45:this.l=I.$d(b);break;case 60:this.l=I.bC(b);break;case 61:this.l=I.aC(b)}d.zd()&&(this.l=d.oh(this.l));this.zj=!1;this.iJ=new ic(this._type,this.l)};
hc.prototype={j:function(a){this.zj||this.iJ.ri(a)},ic:function(){return this.l},us:function(a){this.zj=a}};var jc;jc=function(a,b){this._type=b.getUint16();a=b.getUint16();var c=b.getUint16();this.hi=new w(a,c);a=b.getUint16();c=b.getUint16();this.Vq=new w(a,c);b=b.getUint32();this.gJ=0!==(b&1);this.hJ=0!==(b&2);this.jr=0!==(b&4)};
jc.prototype={j:function(a){var b=a.getState().Eq;var c=new t(b.X+this.Vq.L,b.Y+this.Vq.V);if(this.jr){var d=a.getState().Aq;var e=c.X;c.X=d.X+this.Vq.L;d=e-c.X}else d=this.hi.L;c=new N(c.X,c.Y,c.X+d,c.Y+this.hi.V);(new ic(this._type,c)).ri(a);this.gJ&&(b.X+=this.hi.L);this.hJ&&(b.Y+=this.hi.V)}};var ic;ic=function(a,b){this._type=a;this.l=b.yL()};
ic.prototype={JE:function(a,b,c,d,e,f,g){a.beginPath();if("function"===typeof a.ellipse){var h=d/2;e/=2;a.ellipse(b+h,c+e,h,e,0,0,2*Math.PI)}else{h=d/2*.5522848;var k=e/2*.5522848,q=b+d,n=c+e;d=b+d/2;e=c+e/2;a.moveTo(b,e);a.bezierCurveTo(b,e-k,d-h,c,d,c);a.bezierCurveTo(d+h,c,q,e-k,q,e);a.bezierCurveTo(q,e+k,d+h,n,d,n);a.bezierCurveTo(d-h,n,b,e+k,b,e);a.closePath()}f&&a.fill();g&&a.stroke()},PE:function(a,b,c,d,e,f,g){f&&a.fillRect(b,c,d,e);g&&a.strokeRect(b,c,d,e)},LE:function(a,b,c,d,e){a.beginPath();
a.moveTo(b,c+e);a.lineTo(b+d,c);a.stroke()},ri:function(a){this.Fr=a.getContext();this.Yf=a;this.x=this.l.s;this.y=this.l.u;this.w=this.l.D();this.vc=this.l.C();this.radiusX=a.getState().Iv;this.radiusY=a.getState().Jv;this.fill=!a.getState().Vr();this.stroke=!a.getState().Sh;this.Cz=this.l.dd;0>this.w||0>this.vc||(this.Yf.getState().Tf()&&this.Yf.getState().bn(this.l),this.CE())},CE:function(){var a=this.Fr,b=this.x,c=this.y,d=this.w,e=this.vc,f=this.radiusX,g=this.radiusY,h=this.fill,k=this.stroke,
q=this.Cz;null!==q&&(a.save(),this.l.dd.cn(a,this.l));if(this.stroke&&null===this.Cz){var n=I.mo(a);b+=n;c+=n}switch(this._type){case 0:this.PE(a,b,c,d,e,h,k);break;case 1:I.YA(a,b,c,d,e,h,k,f,g);break;case 2:this.JE(a,b,c,d,e,h,k);break;case 3:k&&this.LE(a,b,c,d,e);break;case 4:k&&(a.beginPath(),a.moveTo(b,c),a.lineTo(b+d,c+e),a.stroke())}null!==q&&a.restore();this.Yf.getState().Tf()&&this.Yf.getState().Ik()}};var kc;
kc=function(a,b,c,d){if(3===a||11===a)var e=I.wt(b);else if(46===a||47===a)e=I.dC(b);c=b.getUint32();this.Sb=this.eG(c);this.Bb=this.kJ(c);this.ku=0!==(c&16);this.rD=0!==(c&32);this.QH=0!==(c&64);this.gI=0!==(c&1024);this.jr=0!==(c&2048);this.Mm=0!==(c&256);this.mk=0!==(c&512);this.l=I.bt(e,0!==(c&128));d.zd()&&(this.l=d.oh(this.l));d=b.getUint16();this.ka=b.ia(d,11===a||47===a);this.$h=I.io(this.ka);this.br=I.st(this.ka);this.Ye=this.ka;this.zj=!1};
kc.prototype={j:function(a){if(!this.zj){this.Yf=a;this.Fr=a.getContext();this.state=a.getState();if(this.QH){var b=this.state.Eq;if(this.jr){b=this.state.Aq;var c=b.X;b=b.Y}else c=b.X,b=b.Y;a.zd()&&(c=a.dl(c),b=a.el(b));this.l=new N(c,b,c+this.l.D(),b+this.l.C())}this.DE()}},jc:function(a){this.ka=a;this.$h=I.io(this.ka);this.br=I.st(this.ka);this.Ye=this.ka},ic:function(){return this.l},Pr:function(){switch(this.Sb){case 1:return"LEFT";case 2:return"RIGHT";default:return"HCENTER"}},Tr:function(){switch(this.Bb){case 1:return"TOP";
case 2:return"BOTTOM";default:return"VCENTER"}},us:function(a){this.zj=a},DE:function(){var a=this.Fr,b=this.state,c=this.Yf;a.save();null!==this.l.dd&&this.l.dd.cn(a,this.l);a.beginPath();a.rect(this.l.s-.5,this.l.u-.5,this.l.D()+1,this.l.C()+1);a.clip();a.fillStyle=b.Cx;a.font=b.wi();var d=!1;var e=b.Lh;var f=a.font;!c.g.hh&&(this.VC(a,c),!0===c.g.getConfiguration().AutoFontReductionActive&&this.mk||!1===c.g.getConfiguration().AutoFontReductionActive&&(this.Mm||this.mk))&&(d=this.UH(a,c));!1===
d&&(this.$h?this.Gq(a,c):this.ex(a));if(this.rD){d=b.Eq;var g=b.Aq;d.X=this.l.s;d.Y=this.l.u;this.gI&&(g.X=d.X+1,g.Y=d.Y);d.X=this.l.s+this.UI(a)}c.g.hh||!0!==c.g.getConfiguration().AutoFontReductionActive||!1!==this.mk||(b.cA(e),b.ag(f));a.restore()},VC:function(a,b){var c=b.getState(),d,e;if(!0===b.g.getConfiguration().AutoFontReductionActive&&!this.mk){var f=a.font;var g=c.Lh;var h=this.l.D()+1;var k=this.l.C()+1;for(d=!0;(h>this.l.D()||k>this.l.C())&&1<g;){d||(--g,c.cA(g),c.ag(u.mL(f,g)),a.font=
c.wi());this.Ye=this.ka;this.Mm&&(this.gx(a,b,!0,this.Ye,!0),this.$h=I.io(this.Ye));if(this.$h)if(k=I.fl(this.Ye),h=0,0<k.length){for(e=0;e<k.length;++e)d=a.measureText(k[e]).width,h<d&&(h=d);k=u.Ya(b)*k.length}else h=a.measureText(this.Ye).width,k=u.Ya(b);else h=a.measureText(this.Ye).width,k=u.Ya(b);d=!1}this.ka=this.Ye}},ex:function(a){this.br?this.SH(a):this.Bl(a,this.ka,this.No(a))},Gq:function(a,b){var c=I.fl(this.ka),d=this,e;if(0<c.length){var f=u.Ya(b);var g=f*c.length;g-=u.HL(b);this.TC(a,
g);b=this.YC(a,g);var h=function(q){d.Bl(a,q.text,k)};for(e=0;e<c.length;++e){if(this.br){g=I.Co(a,c[e]);var k=this.fu(a,g);k.Y=b.Y;this.Zv(g,k,h)}else this.Bl(a,c[e],b);b.Y+=f}}},UH:function(a,b){var c;this.Mm?c=this.gx(a,b,!1,this.ka,!1):this.mk&&(c=this.TH(a,b));return c},gx:function(a,b,c,d,e){var f=!1;var g=this.l.T-this.l.s;this.dr(a,d)>g&&(f=!0,d=this.lJ(a,d,g,e),!1===c?(this.ka=d,this.Gq(a,b)):this.Ye=d);return f},lJ:function(a,b,c,d){var e=!1,f="",g=!1,h=1;do{if(1===b.length)break;for(;this.dr(a,
b.slice(0,h))<c;)if(h++,h===b.length){e=!0;break}if(!e){g=!1;for(var k=h-1;0<k;k--)if(this.FG(b.charAt(k))){f+=[b.slice(0,k),"\n"].join("");b=b.slice(k+1);g=!0;break}g||(d?e=!0:(f+=[b.slice(0,h-1),"\n"].join(""),b=b.slice(h-1)));h=1}}while(!e);return!g&&d?this.ka:[f,b].join("")},FG:function(a){return(new RegExp(/^\s$/)).test(a.charAt(0))},TH:function(a,b){this.ku=!0;this.$h?this.Gq(a,b):this.ex(a,b);return!0},SH:function(a){var b=I.Co(a,this.ka),c=this.fu(a,b),d=this;this.Zv(b,c,function(e){d.Bl(a,
e.text,c)})},Zv:function(a,b,c){var d;if(2===this.Sb)for(d=a.length-1;0<=d;--d)c(a[d]),b.X-=a[d].Os*I.qh;else for(d=0;d<a.length;++d)c(a[d]),b.X+=a[d].Os*I.qh},Bl:function(a,b,c){this.ku&&(b=this.uF(a,b));a.fillText(b,c.X,c.Y)},uF:function(a,b){if(I.eg(a,b,!1)<=this.l.D())return b;for(var c,d=0,e=b.length-1,f,g;1<e-d;){f=Math.floor((d+e)/2);c=b.substr(0,f)+"...";g=I.eg(a,c,!1)-this.l.D();if(0===g)return c;0>g?(d=f,g=!1):(e=f,g=!0)}return!0===g?0<f?c.substr(0,f-1)+"...":"":c},YC:function(a,b){var c=
this.No(a);a.textBaseline="top";3===this.Bb?c=new t(c.X,this.l.u+this.l.C()/2-b/2):2===this.Bb&&(c=new t(c.X,c.Y-b));return c},TC:function(a,b){this.Mm&&3===this.Bb&&this.l.C()<b&&(this.Bb=1)},No:function(a){if(1===this.Sb){var b=this.l.s+1;a.textAlign="left"}else 3===this.Sb?(b=this.l.s+this.l.D()/2,a.textAlign="center"):(b=this.l.T-1,a.textAlign="right");if(1===this.Bb){var c=this.l.u+2;a.textBaseline="top"}else 3===this.Bb?(c=this.l.u+this.l.C()/2,a.textBaseline="middle"):(c=this.l.aa-1,a.textBaseline=
"bottom");return new t(b,c)},fu:function(a,b){a=this.No(a);var c,d=0;if(3===this.Sb){for(c=0;c<b.length;++c)d+=b[c].Os*I.qh;a.X=this.l.s+(this.l.D()-d+I.qh)/2}return a},eG:function(a){var b=1;0!==(a&1)?b=3:0!==(a&2)&&(b=2);return b},kJ:function(a){var b=1;0!==(a&4)?b=3:0!==(a&8)&&(b=2);return b},UI:function(a){return this.dr(a,this.ka)},dr:function(a,b){if(this.$h){var c=0;b=I.fl(b);var d;for(d=0;d<b.length;++d)c=Math.max(c,I.eg(a,b[d],!0));return c}return I.eg(a,b,!0)}};var La;
(function(){var a=null;La=function(b,c){var d=c.getUint16();this.ka=c.ia(d,15===b);this.o=I.nh(c);this.uw=1===(c.getUint32()&1)};La.prototype={j:function(b){var c=b.getContext(),d=b.g.Pm,e=I.fl(this.ka);b.g.getConfiguration().bz();var f=d.ji;var g=this.SF(b,f);var h=this.sD(c,g,e);var k=h.size;var q=new w(2*f.Ni+6,2*f.Ni+4);var n=this.tD(b.cf(),k,q,b);b.g.sa?(this.ka=this.ka.replace(/(?:\r\n|\r|\n)/g,"<br>"),this.uw?d.GL(n.s,n.u,this.ka,g.bo):d.KJ(this.ka,k,document.getElementById("background").width,
document.getElementById("background").height)):(c.save(),this.KE(c,f,n,g,q,e,h.lineHeight),this.uw&&(a=new N(0,0,0,0)),null!==a&&n.qK(a)||this.pI(b.g,n),a=n,c.restore())},pI:function(b,c){var d=new m(513,b.A.la,0,0),e=p.B(8),f=P.B(e,!0);f.tc(Math.floor(c.s));f.tc(Math.floor(c.u));f.tc(Math.ceil(c.T));f.tc(Math.ceil(c.aa));d.Eb(e);b.vb.push(d)},sD:function(b,c,d){var e=new w(0,0),f=b.font,g,h=0;b.font=c.bo;for(g=0;g<d.length;++g){0===g&&(h=u.ef(c.cB)+2);var k=I.eg(b,d[g],!1);e.L=Math.max(e.L,k);e.V+=
h}e.V=Math.ceil(e.V);e.L=Math.ceil(e.L);b.font=f;return{size:e,lineHeight:h}},tD:function(b,c,d,e){var f;if(e.g.sa){var g=document.getElementById("background").height;var h=document.getElementById("background").width;e=e.g.ea().za().ja;e=u.Pi(e,u.mb());h<20+c.L+e.X+this.o.X?f=e.X+this.o.X-20-d.L-c.L:f=e.X+this.o.X+20;g=g<20+c.V+e.Y+this.o.Y?e.Y+this.o.Y-c.V+20+d.L:e.Y+this.o.Y+20}else this.o.X+20+d.L+c.L>=b.D()?f=this.o.X-20-d.L-c.L:f=this.o.X+20,this.o.Y+20+c.V>=b.C()?g=this.o.Y-20-c.V:g=this.o.Y+
20;0>f&&(f=c.L<b.D()?(b.D()-c.L)/2:0);0>g&&(g=c.V<b.C()?(b.C()-c.V)/2:0);return new N(f,g,f+c.L+d.L,g+d.V+c.V)},KE:function(b,c,d,e,f,g,h){var k=c.Ni/2;b.fillStyle=c.ht;b.fillRect(d.s,d.u,d.D(),d.C());b.lineWidth=c.Ni;b.strokeStyle=c.Rs;k=new N(d.s+k,d.u+k,d.T-k,d.aa-k);b.strokeRect(k.s,k.u,k.D(),k.C());b.font=e.bo;b.textBaseline="top";b.textAlign="left";b.fillStyle=c.jt;c=new t(d.s+f.L/2,d.u+f.V/2);for(d=0;d<g.length;++d)b.fillText(g[d],c.X,c.Y),c=new t(c.X,c.Y+h)},SF:function(b,c){b=b.g.getConfiguration().bz();
return""===b||void 0===b||null===b?c.Font:b}}})();var lc;lc=function(){};lc.prototype={j:function(){}};var mc;mc=function(a,b){a=b.getUint16();this.QD=0===a||2===a};mc.prototype={j:function(a){this.QD&&a.g.Id.close();a.g.Id.lM()}};var nc;nc=function(a,b,c){var d=b.fa();this.RD=b.getUint16();a=b.getUint16();this.Cu=b.ia(a,!1);c>=b.fa()-d+10?(a=b.getUint16(),this.Du=b.ia(a,!1)):this.Du=""};
nc.prototype={j:function(){switch(this.RD){case 0:v.warn("The functionality start process is not possible in the webvisualization.");break;case 1:case 2:case 3:v.warn("The functionality printing is not possible in the webvisualization.");break;case 4:this.VG()}},VG:function(){"replace"===this.Du?window.location.href=this.Cu:window.open(this.Cu)}};var oc;oc=function(a,b){this.lj=b.getUint8();this.lj=0===this.lj?2:3;this.Ll=new pc(b)};
oc.prototype={j:function(a){var b=new qc(0,this.lj,this.Ll.wg,null,this.Ll);a.g.Ki(b)}};var rc;rc=function(a,b,c,d){a=d.g.i;c=0;this.yc=b.getUint32();d=b.getUint16();this.lr=b.ia(d,!1);d=b.getUint32();null===a.buffer&&(a.buffer=p.B(d));for(;c<d;)a.buffer.Ym(b.getUint8()),c++;a.status.bd+=d;0!==(this.yc&1)&&(a.status.ud?(a.status.ud=!1,a.status.Wd=!0):a.status.Vd=!0);0===d&&(a.status.Vd=!0)};rc.prototype={j:function(){}};var sc;
sc=function(a,b){this.VH=b.getUint16();this.lj=b.getUint8();a=b.getUint16();this.yq=b.ia(a,!1);a=b.getUint16();0<a?this.lr=b.ia(a,!1):this.lr="";this.Ll=new pc(b)};sc.prototype={j:function(a){var b=new qc(this.VH,this.lj,this.yq,this.lr,this.Ll);a.g.Ki(b)}};var tc;tc=function(a,b){this.l=I.mh(b,!1)};tc.prototype={j:function(){},ic:function(){return this.l}};var uc;
uc=function(a,b,c,d){this.Lo=b.getUint16();a=b.getUint16();this.yq=b.ia(a,!1);a=b.getUint16();this.wg=b.ia(a,!1);this.tj=b.getUint16();this.uj=[];for(c=0;c<this.tj;++c)a=b.getUint16(),this.uj[c]=b.ia(a,!1);this.gb=b.getUint32();this.Sp=b.getUint8();b=new vc(!1,this.Lo,this.yq,this.wg,this.tj,this.uj,this.gb,this.Sp);d.g.Ih.zt(b)};uc.prototype={j:function(){}};var wc;
wc=function(a,b,c,d){this.Lo=b.getUint16();a=b.getUint16();this.wg=b.ia(a,!1);this.tj=b.getUint16();this.uj=[];for(c=0;c<this.tj;++c)a=b.getUint16(),this.uj[c]=b.ia(a,!1);this.gb=b.getUint32();this.Sp=b.getUint8();b=new vc(!0,this.Lo,"",this.wg,this.tj,this.uj,this.gb,this.Sp);d.g.Ih.zt(b)};wc.prototype={j:function(){}};var Ka;Ka=function(a,b,c){a=b.fa();this.l=I.$d(b);this.$o=!0;c>=b.fa()-a+12&&(this.$o=0===(b.getUint32()&1))};
Ka.prototype={j:function(a){a.Ql.rr(this.l);this.$o&&(a.Rf().clearRect(this.l.s,this.l.u,this.l.D(),this.l.C()),u.nL(a,this.l));a.g.Fd.Hn(this.l)}};var xc;
xc=function(a,b){var c;this.av=b.getUint32();this.VE=b.getUint32();a=b.getUint16();this.qw=b.ia(a,!1);a=b.getUint32();var d=b.getUint16();this.md=[];this.Jw=!1;try{for(c=0;c<d;++c){var e=b.getUint32();var f=b.getUint32();this.md.push(this.Dm(b,e,f))}}catch(g){if(g instanceof TypeError)v.error("Invalid argumenttype for calling '"+this.qw+"'; call will not be executed"),this.Jw=!0;else throw g;}2===(a&2)?(this.ik=b.getUint32(),this.Mq=b.getUint32()):this.Mq=this.ik=null};
xc.prototype={j:function(a){if(!this.Jw){var b=WebvisuExtensionMgr.SJ(this.av,this.qw,this.md);null!==b&&void 0!==b&&null!==this.Mq&&null!==this.ik&&this.$E(b,a.g)}},Dm:function(a,b,c){var d=new yc;a=d.oy(a,c);return d.Iz(b,a)},$E:function(a,b){var c=p.B(this.Mq),d=P.B(c,b.A.Fa,b.getConfiguration().re()),e=new m(515,b.A.la,this.av,this.VE);try{this.aF(a,d),e.Eb(c)}catch(f){v.error("Failed to encode return value: "+a.toString()+". Result ignored")}b.Yc(e)},aF:function(a,b){switch(this.ik){case 0:case 1:b.Na(a?
1:0);break;case 2:case 10:b.Na(a);break;case 6:b.Vx(a);break;case 3:case 11:b.Cb(a);break;case 7:b.tc(a);break;case 8:b.td(a);break;case 9:throw new TypeError("Type LINT not supported");case 4:case 12:b.I(a);break;case 5:case 13:throw new TypeError("Type LWORD/ULINT not supported");case 14:b.$m(a);break;case 15:b.tr(a);break;case 16:case 17:a=b.cb(a,17===this.ik);b.Ub(a);break;case 18:case 19:case 20:case 21:b.I(a);break;default:throw new TypeError("TypeCode + "+this.ik.toString()+" not supported");
}}};var zc;zc=function(a,b){this.Hd=b.getUint32();a=b.getUint16();this.Iu=b.ia(a,!1);this.Ld=I.$d(b)};
zc.prototype={j:function(a){var b=WebvisuExtensionMgr.oO(this.Iu);if(null===b)v.warn("No native control named '"+this.Iu+"' found");else{if(a.g.sa){var c=a.g.ea().za();var d=c.ja;"function"===typeof c.hA&&c.hA(this.Hd);this.Ld=new N(0,0,this.Ld.T,this.Ld.aa,this.Ld.dd)}else d=a.Ak().canvas;WebvisuExtensionMgr.VJ(b,this.Hd,this.Ld,d);a.g.sa&&(void 0!==d.gt?(a=d.gt,a.style.position="absolute",a.style.width="100%",a.style.height="100%"):2==d.childNodes.length&&(a=d.childNodes[1],a.style.position="absolute",
a.style.width="100%",a.style.height="100%"))}}};var Ac;Ac=function(a,b){this.Hd=b.getUint32();this.Ld=I.$d(b)};Ac.prototype={j:function(){WebvisuExtensionMgr.TJ(this.Hd,this.Ld)}};var Bc;Bc=function(a,b){this.Hd=b.getUint32();a=b.getUint32();this.AI=1===(a&1);this.vE=4===(a&4)};Bc.prototype={j:function(){this.vE?WebvisuExtensionMgr.Ir(this.Hd):WebvisuExtensionMgr.UJ(this.Hd,this.AI)}};var Cc;
Cc=function(a,b){var c;b.getUint16();b.getUint16();this.ra=I.$d(b);var d=b.getUint32();this.yg=0!==(d&1);this.ng=0!==(d&2);this.Ac=b.getUint16();var e=b.getUint16();this.Bc=b.ia(e,!1);this.kl=b.getUint16();var f=b.getUint16();e=p.B(f);d=P.B(e,!0);for(c=0;c<f;++c)d.Na(b.getUint8());this.ej=this.Ve=!1;25===a&&(d=b.getUint16(),this.Ve=0!==(d&1),this.ej=2===(d&2));a=f;0<a?(this.ej&&(a/=2),b=O.B(e.wd(),b.Ci(),b.Li()),this.am=b.ia(a,this.ej)):this.am=""};
Cc.prototype={j:function(a){var b=window.document.createElement("input"),c=window.document.createElement("form"),d=this.og(),e=a.yk();b.value=this.am;b.id="editcontrol-input";d=d.Mb(e.X,e.Y);u.cd(b,d);b.style.zIndex=300;b.style.textAlign=0!==(this.kl&1)?"center":0!==(this.kl&2)?"right":"left";b.style.fontFamily=this.Bc;b.style.fontSize=this.Ac+"px";this.yg&&(b.style.fontStyle="italic");this.ng&&(b.style.fontWeight="bold");this.Ve?(d=window.document.createElement("input"),d.type="text",d.autocomplete=
"username",d.style.display="none",b.type="password",b.autocomplete="current-password",c.id="editcontrol-inputform",c.appendChild(d),c.appendChild(b),a.g.Id.open(c,this.ej,a)):a.g.Id.open(b,this.ej,a);b.select()},og:function(){var a=this.ra.s+3,b=this.ra.T-9,c,d=u.ef(this.Ac);0!==(this.kl&8)?c=this.ra.aa-d-9:c=0!==(this.kl&4)?this.ra.u+(this.ra.C()-d)/2:this.ra.u+1;return new N(a,c,b,c+d)}};var Na;
(function(){var a=null,b=null;Na=function(){};Na.FA=function(c,d,e,f){null===a&&(a=[lc,hc,gc,kc,Dc,Ec,Fc,Ka,ac,Gc,Cc,kc,mc,lc,La,La,bc,nc,Hc,Ea,Ic,Jc,Jc,cc,Kc,Cc,zc,xc,Ac,Bc,Lc,jc,Mc,Nc,Nc,Oc,ec,Pc,lc,lc,lc,Fa,Qc,Rc,fc,hc,kc,kc,Lc,Sc,Tc,Uc,Uc,Vc,Wc,Xc,Yc,Zc,$c,gc,hc,hc,lc,lc,lc,lc,ad,sc,oc,rc,lc,bd,cd,dd,ed,fd,gd,hd,id,jd,kd,ld,md,nd,lc,od,pd,qd,rd,sd,td,ud,vd,$b,wd,lc,xd,lc,yd,zd,Ad,Bd,Cd,Dd,Ed,Zb,Fd,Gd,Hd,Id,Jd,Kd,Ld,Md,uc,wc,tc,Nd,Od,lc,Pd,Qd]);null===b&&(b=[Ia,Ja,Ha]);return c<a.length?new a[c](c,
d,e,f):8192<=c&&9215>=c&&c-8192<b.length?new b[c-8192](c,d,e,f):new lc(c,d,e,f)}})();var I;
(function(){var a="0123456789ABCDEF".split("");var b=function(d){return a[d>>4&15]+a[d&15]};var c=function(d){return d&255};I=function(){};I.qh=50;I.ct=0;I.Pk=1;I.Oi=2;I.Ok=3;I.nh=function(d){var e=d.getInt16();d=d.getInt16();return new t(e,d)};I.xo=function(d){var e=d.getFloat32();d=d.getFloat32();return new t(e,d)};I.bu=function(d,e){var f=[],g;for(g=0;4>g;++g)f[g]=e(d);return f};I.wt=function(d){return I.bu(d,I.nh)};I.cC=function(d){return I.bu(d,I.xo)};I.dC=function(d){var e=[];e[0]=I.nh(d);e[2]=
I.nh(d);e[1]=new t(e[2].X,e[0].Y);e[3]=new t(e[0].X,e[2].Y);return e};I.XB=function(d){return d[1].Y!==d[0].Y||d[2].X!==d[1].X||d[3].Y<d[0].Y||d[2].X<d[1].X};I.bt=function(d,e){if(e&&I.XB(d)){e=Math.sqrt((d[0].X-d[1].X)*(d[0].X-d[1].X)+(d[0].Y-d[1].Y)*(d[0].Y-d[1].Y));var f=Math.sqrt((d[0].X-d[3].X)*(d[0].X-d[3].X)+(d[0].Y-d[3].Y)*(d[0].Y-d[3].Y));return new N(0,0,e,f,Rd.h((d[1].X-d[0].X)/e,(d[1].Y-d[0].Y)/e,(d[3].X-d[0].X)/f,(d[3].Y-d[0].Y)/f,d[0].X,d[0].Y))}return new N(d[0].X,d[0].Y,d[2].X,d[2].Y)};
I.au=function(d,e,f){d=f(d);return I.bt(d,e)};I.mh=function(d,e){return I.au(d,e,I.wt)};I.bC=function(d){return I.au(d,!0,I.cC)};I.$t=function(d,e){var f=e(d);d=e(d);return new N(f.X,f.Y,d.X,d.Y)};I.$d=function(d){return I.$t(d,I.nh)};I.aC=function(d){return I.$t(d,I.xo)};I.cu=function(d,e){var f=d.getUint16(),g;var h=Array(f);for(g=0;g<f;++g)h[g]=e(d);return h};I.yt=function(d){return I.cu(d,I.nh)};I.iC=function(d){return I.cu(d,I.xo)};I.pt=function(d){var e=[];0!==(d&1)&&e.push("italic");0!==(d&
2)&&e.push("bold");0!==(d&16)&&e.push("lighter");0!==(d&32)&&e.push("bolder");0!==(d&64)&&e.push("900");return e.join(" ")};I.xt=function(d,e){return I.fC(d,e.g.getConfiguration().SemiTransparencyActive,e.zd(),e.gi)};I.fC=function(d,e,f,g){var h=!0===e?I.$a(d.getUint32()):I.lb(d.getUint32());e=I.pt(d.getUint32());var k=d.getUint16();var q=d.getUint16();d=d.ia(q,!1);f&&(f=k*g,1.01<g&&(f*=.95),k=Math.round(f));return new Sd(e+" "+k+'px "'+d+'"',d,k,e,h)};I.gC=function(d,e){return I.hC(d,e.g.getConfiguration().SemiTransparencyActive,
e.zd(),e.gi)};I.hC=function(d,e,f,g){var h;var k=!0===e?I.$a(d.getUint32()):I.lb(d.getUint32());e=I.pt(d.getUint32());var q=d.getUint16();var n=d.getUint16();var B=[];for(h=0;h<n;h++){var A=d.getUint16();B.push(d.ia(A,!1))}f&&(d=q*g,1.01<g&&(d*=.95),q=Math.round(d));g=u.xL(B);return new Sd(e+" "+q+"px "+g,g,q,e,k)};I.Rk=function(d){return Math.PI*d/180};I.lb=function(d){return"#"+b(d>>16)+b(d>>8)+b(d)};I.$a=function(d){var e=d>>24&255;if(255===e)return"#"+b(d>>16)+b(d>>8)+b(d);e/=255;return"rgba("+
c(d>>16)+", "+c(d>>8)+", "+c(d)+", "+e+")"};I.mo=function(d){return 1===d.lineWidth%2?.5:0};I.io=function(d){return 0<=d.indexOf("\n")||0<=d.indexOf("\r")};I.Wg=function(d,e,f){return e>d.length-1?d:d.substr(0,e)+f+d.substr(e+1)};I.YB=function(d){var e,f;var g=d.length;var h=e=0;for(f=I.ct;e<g;)switch(f){case I.ct:switch(d[e]){case "\n":f=I.Oi;break;case "\r":f=I.Ok;break;default:f=I.Pk}break;case I.Pk:switch(d[e]){case "\n":f=I.Oi;h!==e&&(d=I.Wg(d,h,d[e]));h++;break;case "\r":f=I.Ok;break;default:h!==
e&&(d=I.Wg(d,h,d[e])),h++}e++;break;case I.Oi:switch(d[e]){case "\n":h!==e&&(d=I.Wg(d,h,d[e]));h++;break;case "\r":f=I.Ok;break;default:f=I.Pk,h!==e&&(d=I.Wg(d,h,d[e])),h++}e++;break;case I.Ok:d=I.Wg(d,h,"\n");h++;switch(d[e]){case "\n":f=I.Oi;break;case "\r":d=I.Wg(d,h,"\n");h++;f=I.Oi;break;default:h!==e&&(d=I.Wg(d,h,d[e])),h++,f=I.Pk}e++}return d.substring(0,h)};I.fl=function(d){return I.YB(d).split("\n")};I.st=function(d){return 0<=d.indexOf("\t")};I.rC=function(d){return d.split("\t")};I.eg=
function(d,e,f){if(f){d=I.Co(d,e);for(e=f=0;e<d.length;++e)f+=d[e].BO;return f}return d.measureText(e).width};I.NB=function(d,e,f,g){var h=d.getContext(),k=I.eg(h,e,!0);if(void 0!==f&&void 0!==g&&k>f&&0!==(g&256)){var q=1,n=0,B=0,A=0,J=-1;for(g=0;g<e.length;++g){k=e.charAt(g);var ja=e.charAt(g+1);"\r"===k&&"\n"===ja?(++q,B=Math.max(n,B),n=0):(ja=h.measureText(k).width,n+ja<=f||0>=J?(n+=ja," "===k&&(A=n,J=g)):(++q,B=Math.max(n,A),n=n-A+ja))}B=Math.max(n,B);return new t(B,q*u.Ya(d))}return new t(k,
u.Ya(d))};I.Co=function(d,e){e=I.rC(e);var f=[],g;for(g=0;g<e.length;++g){var h=d.measureText(e[g]).width;var k=Math.max(1,Math.ceil(h/I.qh));g<e.length-1&&(h=k*I.qh);f.push({text:e[g],Os:k,BO:h})}return f};I.JB=function(d){return null!==d.dd};I.YA=function(d,e,f,g,h,k,q,n,B){var A;0>n||0>B?A=Math.max(1,Math.min(g,h)/8):A=n;d.beginPath();d.moveTo(e+A,f);d.lineTo(e+g-A,f);d.quadraticCurveTo(e+g,f,e+g,f+A);d.lineTo(e+g,f+h-A+.5);d.quadraticCurveTo(e+g,f+h,e+g-A,f+h);d.lineTo(e+A+.5,f+h);d.quadraticCurveTo(e,
f+h,e,f+h-A+.5);d.lineTo(e,f+A);d.quadraticCurveTo(e,f,e+A+.5,f);d.closePath();k&&d.fill();q&&d.stroke()}})();var yd;yd=function(a,b){this.OG=b.getUint16();this.PG=b.getUint16();a=b.getUint16();this.ka=b.ia(a,!1)};yd.prototype={j:function(){var a=u.h("Message ID: {0}   Message description: {1}",this.PG,this.ka);switch(this.OG){case 0:break;case 1:v.info(a);break;case 2:v.warn(a);break;case 4:case 8:v.error(a);break;case 16:v.m(a);break;default:v.h("Unknown log level")}}};var Fd;
Fd=function(a,b){this.TG=1===b.getUint16()?"copy":"source-over"};Fd.prototype={j:function(a){a.getContext().globalCompositeOperation=this.TG}};var ad;ad=function(a,b){this.Bx=b.getUint16();this.Pf=b.getUint32();this.Dt=8;this.Bx===this.Dt&&this.Pf&&b.Mk("utf-8")};
ad.prototype={j:function(a){switch(this.Bx){case 1:a=a.g.Mf;null!==a&&a.ZN(this.Pf/100);break;case 2:a=a.g.Mf;null!==a&&a.UM(this.Pf/100);break;case 3:a=a.g.Mf;null!==a&&a.XN(!!this.Pf);break;case 4:a.g.getConfiguration().AutoFontReductionActive=!0;break;case 6:gb.prototype.iO(0!==this.Pf);break;case 7:a.g.getConfiguration().XhrSendTimeout=this.Pf;break;case this.Dt:a.g.getConfiguration().Xt=!!this.Pf,this.Pf&&(a.g.getConfiguration().ANSIStringEncoding="utf-8")}}};var Kc;
Kc=function(a,b){switch(b.getUint16()){case 0:this.Xb="pointer";break;case 1:this.Xb="default";break;case 2:this.Xb="pointer";break;case 3:this.Xb="wait";break;case 4:this.Xb="text";break;case 5:this.Xb="crosshair";break;case 6:this.Xb="help";break;case 7:this.Xb="col-resize";break;case 8:this.Xb="row-resize";break;case 9:this.Xb="nw-resize";break;case 10:this.Xb="ne-resize";break;case 11:this.Xb="w-resize";break;case 12:this.Xb="s-resize";break;case 13:this.Xb="pointer";break;default:this.Xb="default"}};
Kc.prototype={j:function(a){a.g.sa?(a=a.g.ea().za(),null!==a&&(a=a.ja,null!==a&&(a.style.cursor=this.Xb))):a.Ak().canvas.style.cursor=this.Xb}};var Dc;Dc=function(a,b,c,d){a=b.getUint32();b=b.getUint32();this.Jp=1===(a&1);!0===d.g.getConfiguration().SemiTransparencyActive?this.Hb=I.$a(b):this.Hb=I.lb(b)};Dc.prototype={j:function(a){a.getState().ts(this.Hb,this.Jp)},ln:function(){return this.Hb}};var Fc;Fc=function(a,b,c,d){this.Vc=I.xt(b,d)};
Fc.prototype={j:function(a){a.getState().oA(this.Vc.Font,this.Vc.Size,this.Vc.Color)},Pg:function(){return this.Vc.Name},Qg:function(){return this.Vc.Size},Og:function(){return this.Vc.Color}};var Nd;Nd=function(a,b,c,d){this.Vc=I.gC(b,d)};Nd.prototype={j:function(a){a.getState().oA(this.Vc.Font,this.Vc.Size,this.Vc.Color)},Pg:function(){return this.Vc.Name},Qg:function(){return this.Vc.Size},Og:function(){return this.Vc.Color}};var Lc;
Lc=function(a,b,c,d){c=1===b.getUint32();var e=b.getUint32(),f=b.getUint32();if(30===a){var g=b.getUint32();var h=b.getUint32()/100;var k=b.getUint32()/100;var q=b.getUint32();var n=0===b.getUint32();b.getUint32();b=b.getUint32()}else g=b.getUint16(),h=b.getUint8()/100,k=b.getUint8()/100,q=b.getUint8(),n=!0,b=0;!0===d.g.getConfiguration().SemiTransparencyActive?(e=I.$a(e),f=I.$a(f),30===a&&(b=I.$a(b))):(e=I.lb(e),f=I.lb(f),30===a&&(b=I.lb(b)));this.WF=new oa(c,e,f,g,h,k,q,n,b)};Lc.prototype={j:function(a){a.getState().kN(this.WF)}};
var Qc;Qc=function(a,b,c,d){this.gb=b.getUint32();d.g.getConfiguration().SemiTransparencyActive=2===(this.gb&2);d.g.getConfiguration().IecSupportsCommonMiterLimit=8===(this.gb&8)};Qc.prototype={j:function(a){a=a.g.oa;null!==a&&(a.g.N.dA(1===(this.gb&1)),a.On(0!==(this.gb&4)))}};var wd;
wd=function(a,b,c){a=b.fa();var d=b.getUint16();var e=b.ia(d,!1);d=b.getUint16();d=b.ia(d,!1);""!==e&&(d=e+"."+d);this.yf=d;this.l=I.mh(b,!0);this.l.normalize();e=b.getUint32();this.Vp=0!==(e&1);this.ll=0!==(e&2);this.Pl=0!==(e&4);this.Hp=0!==(e&128);this.Nq=0!==(e&256);this.kr=0!==(e&1024);this.Vo=0!==(e&2048);this.Hg=0!==(e&4096);this.sj=!1;c>=b.fa()-a+16&&(this.sj=!0,this.Jl=b.getFloat32(),this.Kl=b.getFloat32());this.Ea=null};
wd.prototype={j:function(a){var b=a.g.ea().za(),c=this;this.Yf=a;window.WebvisuInst.uk(function(){var d=c.hE(c.Yf);b.oN(d,c)})},ic:function(){return this.l.clone()},hE:function(a){var b=new Image;var c=a.zf.zi(this.yf);null===c?b.src="#":b.src=c;this.Hg&&(b.src+="?"+u.m());u.Ho(b.src)&&(r.zo()?this.tJ():a.g.getConfiguration().WorkaroundDisableSVGAspectRatioWorkaround||(b.src+="#svgView(preserveAspectRatio(none))"));b.style.position="absolute";b.style.msUserSelect="none";b.style.WebkitUserSelect="none";
b.style.MozUserSelect="none";b.style.userSelect="none";return b},tJ:function(){v.warn("Anisotropic scaling of Svg images in Safari is not supported because of known bugs in WebKit. The default (isotropic) scaling is used instead.")}};var Sc;Sc=function(a,b,c,d){var e;a=b.getUint16();var f=[];for(c=0;c<a;++c){var g=b.getUint16();f[c]=b.ia(g,!1)}this.mc=[];a=b.getUint16();for(c=0;c<a;++c){var h=[];g=b.getUint16();for(e=0;e<g;++e)h[e]=f[b.getUint16()];this.mc.push({bs:h.join(".").toLowerCase(),Dz:b.getUint16()})}d.zf.DM(this.mc)};
Sc.prototype={j:function(){}};var Ec;
Ec=function(a,b,c,d){var e=b.fa(),f=b.getUint32(),g=b.getUint32();a=b.getUint16();var h=["butt","square","round"],k=["miter","bevel","round"];this.Pe=f;!0===d.g.getConfiguration().SemiTransparencyActive?this.Hb=I.$a(g):this.Hb=I.lb(g);this.na=a;c>=b.fa()-e+11?(c=b.getUint16(),this.Ae=h[0],0!==(c&0)&&(this.Ae=h[0]),0!==(c&1)&&(this.Ae=h[1]),0!==(c&2)&&(this.Ae=h[2]),c=b.getUint16(),this.Be=k[0],0!==(c&0)&&(this.Be=k[0]),0!==(c&1)&&(this.Be=k[1]),0!==(c&2)&&(this.Be=k[2]),b=b.getUint16(),d.g.getConfiguration().IecSupportsCommonMiterLimit?
this.ff=b/2:this.ff=1===b?1.7*a:2*b):(this.Ae=h[0],this.Be=k[0],d.g.getConfiguration().IecSupportsCommonMiterLimit?this.ff=1.5:this.ff=1.7*a)};Ec.prototype={j:function(a){a.getState().ws(this.na,this.Hb,this.Pe,this.Ae,this.Be,this.ff)},D:function(){return this.na},ln:function(){return this.Hb}};var Rc;
Rc=function(a,b,c){this.wa=[];var d=null;a=b.fa();for(var e,f;b.fa()-a<c-8;)e=b.getUint32(),e&2147483648?(f=b.getUint32(),d=I.$d(b),--d.aa,--d.T,d=new Td(f,d,e&2147483647),this.wa.push(d)):null!==d&&(f=e&65535,e=(e&2147483647)>>16,f=b.fa()+f,this.MH(b,d,e),b.seek(f))};
Rc.prototype={j:function(a){var b=a.g.oa;if(a.g.sa){var c=a.g.ea().za();if(null!==c&&!(c instanceof yb)){var d=c.Qc;null!==d?d.As(this.wa):c.rN(a.g,Va.LA(this.wa,a.g));b.ks(c);for(d=0;d<this.wa.length;++d)this.wa[d].NM(c),b.Xm(this.wa[d],!0)}else if(null!==b)for(b.ks(null),d=0;d<this.wa.length;++d)b.Xm(this.wa[d],!1)}else if(null!==b)for(b.hy(),d=0;d<this.wa.length;++d)b.Xm(this.wa[d],!1);a.g.getConfiguration().DebugOnlyPrintTouchRectangles&&this.TE()},MH:function(a,b,c){switch(c){case 3:b.info().scroll().Oa().Zg(new t(a.getInt32(),
a.getInt32()));b.info().scroll().Oa().Yg(new t(a.getInt32(),a.getInt32()));b.oi(R.ph);break;case 4:b.info().zoom().Oa().ys(a.getFloat32());b.info().zoom().Oa().xs(a.getFloat32());b.oi(R.Zt);break;case 5:b.info().PM(new N(a.getUint16(),a.getUint16(),a.getUint16(),a.getUint16()));break;case 6:c=a.getUint16();var d=a.getUint16(),e=!!a.getUint8(),f=!!a.getUint8();a=new t(a.getUint16(),a.getUint16());b.info().mA(c,new Ud(d,e,f,a))}},TE:function(){var a;for(a=0;a<this.wa.length;++a){var b=this.wa[a];v.m(u.h("TouchRect ({0}): {1} (Flags: {2})",
b.id(),u.OL(b.xa),b.flags()));b.U(R.ph)&&v.m(u.h("  ScrollLimits {0} -> {1}",u.Fb(b.info().scroll().Oa().pc),u.Fb(b.info().scroll().Oa().oc)));b.U(R.Zt)&&v.m(u.h("  Zoomlimits: {0} -> {1}",b.info().zoom().Oa().pc,b.info().zoom().Oa().oc))}}};var Hc;Hc=function(a,b){this.kD=1===b.getUint16()};Hc.prototype={j:function(a){this.kD?a.Nz():a.iM()}};var dd;dd=function(a,b){this.gz=b.getInt16();this.hz=b.getInt16()};dd.prototype={j:function(a){a.getState().TN(this.gz,this.hz)}};var Od;
Od=function(a,b){a=b.getUint16();this.ge=b.ia(a,!1);this.vj=b.getUint32();this.wj=b.getUint16();this.mD=b.getUint32();this.pl=b.getUint32();this.Kh=b.getUint32()};Od.prototype={j:function(a){var b=a.g.Pm;a=new Pa(this.ge,this.wj,this.vj,this.pl,this.mD,this.Kh);null!==b&&b.bO(a)}};var Pc;Pc=function(a,b){a=b.getUint16();this.ka=b.ia(a,!1)};Pc.prototype={j:function(a){a.g.getConfiguration().ChangeWindowTitle&&(window.document.title=this.ka);a.g.Dc&&window.ProgrammingSystemAccess&&window.ProgrammingSystemAccess.setVisualizationName(this.ka)}};
var Gc;Gc=function(a,b){this.l=I.$d(b)};Gc.prototype={j:function(a){a.getContext().restore();a.getState().apply()}};var Bd;Bd=function(a,b){a=b.getInt16();this.Yl=u.Ky(b,a)};Bd.prototype={j:function(a){var b=this.Yl.length-1,c=a.g.ea();for(a=0;a<=b;++a)c.Tg()}};var hd;hd=function(a,b){this.ya=b.getInt16()};hd.prototype={j:function(a){a.g.ea().Tg()}};var ed;
ed=function(a,b){this.ya=b.getInt16();a=b.getUint32();this.cG=0!==(a&1);this.sG=0!==(a&2);this.aG=0!==(a&4);this.bG=0!==(a&16);this.YI=0!==(a&8);this.lD=0!==(a&32);this.PD=0===(a&64);this.fj=0===(a&128);this.ei=0!==(a&1024);this.Ma=new sa(a);this.em=this.Ma.Nk()};
ed.prototype={j:function(a){this.WH(a);var b=Va.OA(a.g,this.aG,this.bG,this.cG,this.sG,this.YI,this.lD,this.PD);b.gN(this.Ma);a.g.ea().Px(this.ya,b);b instanceof Q&&(b.Wz(this.fj),b.kA(this.ei));b.initialize()},WH:function(a){this.Ma.ad()||a.Pz()}};var md;md=function(a,b){this.nc=b.getInt16()};md.prototype={j:function(a){a.g.ea().za().oK()}};var jd;jd=function(a,b,c){this.nc=b.getInt16();this.Rh=2<c?0!==(b.getUint32()&1):!1};
jd.prototype={j:function(a){var b=Va.MA(32767===this.nc,this.Rh);a.g.ea().za().wJ(this.nc,b)}};var zd;zd=function(a,b){this.nc=b.getInt16()};zd.prototype={j:function(a){a=a.g.ea().za();32767===this.nc&&a.Mz()}};var ld;ld=function(a,b){this.nc=b.getInt16()};ld.prototype={j:function(a){a.g.ea().za().gO(this.nc)}};var kd;
kd=function(a,b,c){a=b.fa();this.Wc=b.getInt16();this.Xc=b.getInt16();this.na=b.getInt16();this.pa=b.getInt16();this.kI=0!==b.getUint8();this.lI=0!==b.getUint8();this.ZC=b.getUint8();c>=b.fa()-a+9?(this.zu=b.getInt16(),this.Au=b.getInt16(),this.yu=b.getInt16(),this.xu=b.getInt16()):(this.Au=this.zu=0,this.xu=this.yu=-1)};kd.prototype={j:function(a){a.g.ea().za().uO(this.Wc,this.Xc,this.na,this.pa,this.kI,this.lI,this.ZC,this.zu,this.Au,this.yu,this.xu)}};var Cd;Cd=function(a,b){this.VD=b.getInt16()};
Cd.prototype={j:function(a){var b=a.g.ea().za();(null!==b?b.ea():a.g.ea()).ZM(this.VD)}};var xd;xd=function(a,b){this.af=b.getUint8()};xd.prototype={j:function(a){var b=a.g.ea().za();(null!==b?b.ea():a.g.ea()).Ds(this.af)}};var Dd;Dd=function(a,b){this.hI=b.getFloat32();this.iI=b.getFloat32()};Dd.prototype={j:function(a){a.g.ea().za().eO(this.hI,this.iI)}};var od;
od=function(a,b){this.sg=b.getInt16();a=b.getInt16();switch(a){case 0:case 5:this.Nh="solid";break;case 1:this.Nh="dashed";break;case 2:case 3:case 4:this.Nh="dotted"}this.uG=5===a;this.Mh=b.getUint32()};od.prototype={j:function(a){var b=this.uG?I.$a(this.Mh&16777215):!0===a.g.getConfiguration().SemiTransparencyActive?I.$a(this.Mh):I.lb(this.Mh);a.g.ea().za().fN(this.sg,this.Nh,b)}};var nd;
nd=function(a,b){this.Oj=b.getInt32();this.Pj=b.getInt32();this.Lj=b.getInt32();this.Mj=b.getInt32();this.Ge=b.getInt32();this.He=b.getInt32()};nd.prototype={j:function(a){a.g.ea().za().Bs(this.Oj,this.Pj,this.Lj,this.Mj,this.Ge,this.He)}};var id;id=function(){};id.prototype={j:function(a){a.g.ea().gs();var b=a.getContext(),c=a.g.ea().za();b.save();b.setTransform(1,0,0,1,0,0);b.clearRect(0,0,b.canvas.width,b.canvas.height);b.restore();null!==c&&c.gy();a.g.Fd.Hn(this.l)}};var Ad;
Ad=function(a,b){a=b.getInt16();this.Yl=u.Ky(b,a)};Ad.prototype={j:function(a){var b,c=this.Yl.length-1;for(b=0;b<=c;b++)a.g.ea().Ek(this.Yl[b])}};var gd;gd=function(a,b){this.ya=b.getInt16()};gd.prototype={j:function(a){a.g.ea().Ek(this.ya)}};var fd;fd=function(a,b){this.Wc=b.getInt16();this.Xc=b.getInt16();this.na=b.getInt16();this.pa=b.getInt16();this.Td=b.getInt16();this.Ud=b.getInt16();this.Kg=b.getInt16();this.Lg=b.getInt16();this.fb=b.getInt16();this.Uc=b.getInt16();this.ne=b.getUint32()};
fd.prototype={j:function(a){this.Uc||(this.Uc=0);var b=a.g.ea().za(),c="",d=this;0<this.Uc&&(c="all "+this.Uc+"ms ease");if(b.ta instanceof Bb&&b.ta.xg)if(this.Xc=this.Wc=0,this.pa=this.na=1,this.ne=this.fb=this.Lg=this.Kg=this.Ud=this.Td=0,u.wo(b.$)){var e=document.getElementById("background");null!==e&&(this.na=e.width,this.pa=e.height)}else e=u.Vk(a.g.ea(),b.$.id),null!==e?(this.na=e.Me(),this.pa=e.Le()):v.h("Could not find parent node. Size will be 0");0!==(this.ne&4)?a.g.Wm(function(){d.Zu(b,
c)}):this.Zu(b,c)},Zu:function(a,b){a.update(this.Wc,this.Xc,this.na,this.pa,this.Td,this.Ud,this.Kg,this.Lg,this.fb,this.ne,b)}};var Ed;Ed=function(a,b){this.Wc=b.getInt16();this.Xc=b.getInt16();this.na=b.getInt16();this.pa=b.getInt16();this.Td=b.getInt16();this.Ud=b.getInt16();this.Kg=b.getFloat32();this.Lg=b.getFloat32();this.fb=b.getInt16();this.Uc=b.getInt16();this.ne=b.getUint32()};
Ed.prototype={j:function(a){this.Uc||(this.Uc=0);var b=a.g.ea().za(),c="";0<this.Uc&&(c="all "+this.Uc+"ms ease");b.ta instanceof Bb&&b.ta.xg&&(this.Xc=this.Wc=0,this.pa=this.na=1,this.ne=this.fb=this.Lg=this.Kg=this.Ud=this.Td=0,u.wo(b.$)?(a=document.getElementById("background"),null!==a&&(this.na=a.width,this.pa=a.height)):(a=u.Vk(a.g.ea(),b.$.id),null!==a?(this.na=a.Me(),this.pa=a.Le()):v.h("Could not find parent node. Size will be 0")));b.update(this.Wc,this.Xc,this.na,this.pa,this.Td,this.Ud,
this.Kg,this.Lg,this.fb,this.ne,c)}};var sd;sd=function(a,b){this.ya=b.getInt16();this.af=b.getInt16()};sd.prototype={j:function(a){a.g.sa&&a.g.Pm.ky();a.g.RJ(this.ya);a.g.Nc.Ds(this.af)},on:function(){return this.ya}};var vd;vd=function(a,b){this.ya=b.getInt16()};vd.prototype={j:function(a){a.g.nK()}};var rd;
rd=function(a,b){this.ya=b.getInt16();this.af=b.getInt16();a=b.getUint32();this.Aa=0!==(a&1);this.Wj=0!==(a&2);this.om=0!==(a&4);this.o={yz:0!==(a&16),zL:0!==(a&32),AL:0!==(a&128),zz:0!==(a&64),MO:0!==(a&512),Tx:0!==(a&1024),sr:0!==(a&2048),NO:0!==(a&256)};this.Ol=0!==(a&8);this.nr=0!==(a&4096);this.DD=0!==(a&8192);this.SD=0!==(a&16384);this.zG=0!==(a&32768);this.ei=0!==(a&65536)};
rd.prototype={j:function(a){a.g.Nc.Ds(this.af);var b=Va.GA(this.Aa,this.nr,a.g,this.SD),c=a.g.ea().za();c=c?c.QK():null;this.DD&&(c=u.mb().getBoundingClientRect(),this.Wj=!0,c=new N(c.x,c.y,c.x+c.width,c.y+c.height));b.kA(this.ei);b.initialize(c,this.Wj,this.om,this.Ol,a.Ka,this.o,this.zG);a.g.openDialog(this.ya,b)}};var ud;ud=function(a,b){this.ya=b.getInt16()};ud.prototype={j:function(a){a.g.fO(this.ya)},on:function(){return this.ya}};var td;
td=function(a,b){this.Wc=b.getInt16();this.Xc=b.getInt16();this.na=b.getInt16();this.pa=b.getInt16();this.Uc=b.getInt16();a=b.getUint32();this.Hb=I.$a(a)};td.prototype={j:function(a){a=a.g.ea().za();var b="";0<this.Uc&&(b="transform "+this.Uc+"ms ease, opacity "+this.Uc+"ms ease");a.update(this.Wc,this.Xc,this.na,this.pa,0,0,0,0,0,null,b,this.Hb)}};var pc;
pc=function(a){this.wg="";this.Aj=0;this.Ko=[];this.yc=0;if(null!==a){var b=a.getUint16(),c;a.ia(b,!1);b=a.getUint16();this.wg=a.ia(b,!1);this.Aj=a.getUint16();for(c=0;c<this.Aj;++c)b=a.getUint16(),this.Ko[c]=a.ia(b,!1);this.yc=a.getUint32();a.getUint32()}};var Vd;Vd=function(){this.Zd=this.qO=0};var ab;ab=function(a){this.g=a;this.bc=[]};
ab.prototype={B:function(a,b){var c=this.Vl(a);0<=c&&this.Vu(c);a=new Wd(this.g,a,b);this.bc.push(a);return a},WA:function(a){a instanceof U&&this.Vu(this.JF(a.Qb.id))},Vu:function(a){0<=a&&(null!==this.bc[a].Zb&&null!==this.bc[a].S()&&this.bc[a].Zb.removeChild(this.bc[a].S()),this.bc.splice(a,1))},Vl:function(a){for(var b=0;b<this.bc.length;b++)if(this.bc[b].on()===a)return b;return-1},JF:function(a){for(var b=0;b<this.bc.length;b++)if(this.bc[b].vu===a)return b;return-1},className:function(){return"FileTransferButtonsStorage"}};
var qc;qc=function(a,b,c,d,e){this.Ns=a;this.direction=b;this.Ug=c;this.Ez=d;this.wc=e;this.Sn=0;this.lh=new Vd;this.eh=new Vd;this.status=new V;this.Db=this.buffer=null;this.Uz=u.m();this.xz=!1};var vc;vc=function(a,b,c,d,e,f,g,h){this.stream=a;this.qt=b;this.IL=c;this.mz=d;this.Iy=e;this.filters=f;this.flags=g;this.WK=h};var $a;$a=function(a){this.g=a;this.gm=-1;this.bc=[]};
$a.prototype={zt:function(a){this.gm=a.qt;var b=this.Vl(this.gm);0>b?this.bc.push(a):this.bc[b]=a},ot:function(a){a=this.Vl(a);return 0>a?null:this.bc[a]},lC:function(){this.gm=-1},Vl:function(a){for(var b=0;b<this.bc.length;b++)if(this.bc[b].qt===a)return b;return-1}};var V;V=function(){this.oe=!0;this.Vd=this.Wd=this.ud=!1;this.$g=this.bd=this.result=0;this.Ob=V.va};V.va=1;V.J=2;V.Fb=3;V.m=4;V.Ya=19;V.h=20;var Qd;Qd=function(a,b){this.vG=0!==b.getUint8();b.getUint8();b.getUint8()};
Qd.prototype={j:function(a){a.g.sa&&(a.Pz(),a=a.g.ea().za(),this.vG&&(a.SN(),a.sA()))}};var Pd;Pd=function(a,b){this.yF=b.getInt16();this.Pv=0!==b.getUint8()};Pd.prototype={j:function(a){if(a.g.sa){var b=a.g.ea().za();a.hN(b,this.yF,this.Pv);b.qe()&&(b.qA(),b.ON(this.Pv))}}};var qd,Xd;Xd={AC:0,JO:1,Gt:2,nC:3,bB:4,COLOR:5};
qd=function(a,b,c,d){var e;c=a=0;var f=d.g.Tb.ob,g=new yc;this.qd=d;this.Hd=b.getUint32();d=b.getUint16();this.md=[];for(var h=0;h<d;++h){var k=b.getUint32();var q=b.getInt8();if(q===Xd.nC){var n=e=b.getUint8();b.fd(g.wK(n))}else if(q===Xd.bB||q===Xd.COLOR)n=e=b.getUint16(),b.fd(8);else if(q===Xd.Gt){e=n=this.Zw(b);b.fd(8);a=b.getInt32();c=b.getInt32();var B=new Yd(a,c)}else q===Xd.AC&&(e=n=this.Zw(b),b.fd(8));q===Xd.Gt?a<=c?(k=this.Dm(b,e,k,n,f,B),B.setData(k),this.md.push(B)):this.md.push(0):this.md.push(this.Dm(b,
e,k,n,f,B));this.md.push(e);this.md.push(n)}};qd.prototype={j:function(a){var b=a.g.Tb.KK(this.Hd);a=a.g.ea().za();3!==this.md.length&&5!==this.md.length||a.$L(b,this.md[1]);a.IJ(b,this.md)},Dm:function(a,b,c,d,e,f){var g=new yc;a=g.oy(a,c);return g.yn(b,a,this.qd,d,e,f)},Zw:function(a){var b=a.getUint8();var c=a.getUint8()<<8;b|=c;c=a.getUint8()<<16;return b|c}};var Zd;Zd=function(a,b){this.ba=b;this.Bj=null;this.hG=a;this.Ov=!1;this.Xo=[]};
Zd.prototype={mN:function(a){this.Bj=a;this.Ov=!0},Ry:function(){return null===this.Bj?null:this.Bj.contentWindow},kO:function(a){this.Xo.push(a)},BM:function(a){this.Xo.forEach(function(b){a(b)});this.Xo=[]}};var Gd;Gd=function(a,b){var c;a=b.getUint16();this.Qe={};for(c=0;c<a;c++){var d=b.getUint16();d=b.ia(d,!1);var e=b.getUint32();this.Qe[d]=e}};Gd.prototype={j:function(a){a=a.g.Tb;for(var b in this.Qe)this.Qe.hasOwnProperty(b)&&a.ZL(b,this.Qe[b])}};var $d;$d=function(){this.Rj={}};
$d.prototype={Er:function(a){return"EmbeddedBrowser"===a?window[a+"ElementFactory"].createElement():void 0!==this.Rj[a]?this.Rj[a]:null},fill:function(a,b){this.Rj={};try{var c=JSON.parse(a)}catch(h){throw new TypeError("Expected json containing a array.");}if(!(c instanceof Array))throw new TypeError("Expected json containing a array.");var d;for(d=0;d<c.length;d++){a=c[d];if(!(a instanceof Object))throw new TypeError("Expected entry to be an object.");if("string"!==typeof a.name)throw new TypeError("Expected name to be a string.");
if("string"!==typeof a.wrapper)throw new TypeError("Expected wrapper to be a string.");if(!(a.js instanceof Array))throw new TypeError("Expected js to be an Array.");if(!(a.css instanceof Array))throw new TypeError("Expected css to be an Array.");if(!u.Wk(a.additionalFiles))throw new TypeError("Expected additionalFiles to be an Object.");var e=this.az(a.js);var f=this.az(a.css);var g=this.PK(a.additionalFiles);if(void 0!==this.Rj[a.name])throw new TypeError(u.h("There is already a native element named {0}.",
a.name));this.Rj[a.name]=new Mb(a.wrapper,e,f,g,b)}},PK:function(a){var b={},c;for(c in a){if("string"!==typeof c)throw new TypeError("Only strings are expected in the object.");if("string"!==typeof a[c])throw new TypeError("Only strings are expected in the object.");b[c]=a[c]}return b},az:function(a){var b=[],c;for(c=0;c<a.length;c++){var d=a[c];if("string"!==typeof d)throw new TypeError("Only strings are expected in the array.");b.push(d)}return b}};var pd;pd=function(a,b){this.Hd=b.getUint32()};
pd.prototype={j:function(a){var b=a.g.Tb,c=b.DK(this.Hd),d=b.Er(c);null!==d?(a=a.g.ea().za(),a.wN(b,d)):v.warn("The HTML5 element '"+c+"' can not be used because it hasn't been downloaded. View Messages in the Development system for more details.")}};var Xa;Xa=function(a){this.dv=new $d;this.pp=new Lb;this.Nj=new Lb;this.ob=new ae;this.pj=[];this.g=a;var b=this;window.addEventListener("message",function(c){b.h(c)})};
Xa.prototype={Er:function(a){return this.dv.Er(a)},getConfiguration:function(){return this.g.getConfiguration()},ZL:function(a,b){this.pp.fs(a,b)},aM:function(a,b){this.Nj.fs(a,b)},DK:function(a){return this.pp.Wy(a)},KK:function(a){return this.Nj.Wy(a)},Sy:function(a){return this.Nj.Qr(a)},h:function(a){if(null!==a&&void 0!==a&&u.Wk(a))if("null"!==a.origin)v.h("Unhandled message: Wrong origin. "+a.origin);else if(null!==a.data&&void 0!==a.data&&u.Wk(a.data)){var b=this.CK(a.data);if(null===b)v.h("Unhandled message: Unable to determine element for postMessage.");
else{a=a.data;var c=a.promiseId;if(null!==a.data&&void 0!==a.data&&u.Wk(a.data))if(null!==c&&"number"!==typeof c)v.warn("Promise Id is not of type number.");else if(this.Xv(a)||b.ba.Ma.ad())try{this.Bk(a,c,b)}catch(d){v.warn("Error at handling the followig message: \n\r"+JSON.stringify(a.data,null,4)),v.warn(d.stack),this.Fc(b.ba,T.dg(c,d))}else v.h("Messages from preview visualizations are not supported.");else v.h("Invalid message: Wrong data.")}}else v.h("Invalid message: Wrong data.");else v.h("Invalid message.")},
Bk:function(a,b,c){var d=this;var e=u.ay(a.data.param);v.info(u.h("Message from element {0}: {1}",null!==c.Bj?c.Bj.id:c.ba.Qb.id,JSON.stringify(a.type)));this.Xv(a)&&this.SK(c.ba);"SetValue"===a.type?be.va(this,c.ba,b,a.data,e):"CheckValue"===a.type?be.m(this,c.ba,b,a.data,e):"SendMouseEvent"===a.type?"string"===typeof a.data.type&&"number"===typeof a.data.xPos&&"number"===typeof a.data.yPos&&c.ba.yM(a.data.type,a.data.xPos,a.data.yPos):"GetTypeDesc"===a.type?"number"===typeof a.data.typeId&&(a=this.ob.Yd(a.data.typeId),
this.Fc(c.ba,T.KA(b,void 0!==a&&0!==a,a))):"SetScrollRange"===a.type?"string"===typeof a.data.methodName&&"number"===typeof a.data.startIndex&&"number"===typeof a.data.endIndex&&"number"===typeof a.data.scrollDimension&&(b=this.Nj.Qr(a.data.methodName),e=c.ba,e.zM(this.g,b,a.data.startIndex,a.data.endIndex,a.data.scrollDimension)):"CheckComplexValue"===a.type?be.h(this,c.ba,b,a.data,e):"SetComplexValue"===a.type?be.J(this,c.ba,b,a.data,e):"GetAdditionalFileName"===a.type?ce.Bk(c.ba.ld,b,a.data,function(f){d.Fc(c.ba,
f)}):"GetImagePoolFileName"===a.type?de.Bk(this.g.Z().zf,b,a.data,function(f){d.Fc(c.ba,f)}):"GetImageByFilename"===a.type?ee.J(c.ba.ld,b,a.data,function(f){d.Fc(c.ba,f)}):"GetImageById"===a.type?ee.m(c.ba.ld,this.g.Z().zf,b,a.data,function(f){d.Fc(c.ba,f)}):"GetTextFile"===a.type?ee.va(c.ba.ld,b,a.data,function(f){d.Fc(c.ba,f)}):"GetBinaryFile"===a.type&&ee.h(c.ba.ld,b,a.data,function(f){d.Fc(c.ba,f)})},unregister:function(a){if(a.ld instanceof Mb){var b=this.nn(a);null!==b?this.pj.splice(this.pj.indexOf(b),
1):v.warn("No element data found for "+a.Qb.id)}},nn:function(a){if(!(a instanceof yb))return null;var b=this.pj.find(function(c){return c.ba===a});return void 0===b?null:b},CK:function(a){if(void 0===a||null===a||"string"!==typeof a.identification)return null;var b=this.pj.find(function(c){return c.hG===a.identification});return void 0===b?null:b},SK:function(a){var b=a.oj,c=this,d=this.nn(a);d.mN(b);d.BM(function(e){c.Tz(d.Ry(),e)})},fill:function(a){this.dv.fill(a,this.g.getConfiguration().DebugHTML5);
this.pp=new Lb;this.Nj=new Lb},Tz:function(a,b){this.CM(a,{type:b.type(),data:b})},Fc:function(a,b){a=this.nn(a);a.Ov?this.Tz(a.Ry(),b):a.kO(b)},CM:function(a,b){a.postMessage(b,"*")},register:function(a,b){b.ld instanceof Mb&&(null!==this.nn(b)&&this.unregister(b),this.pj.push(new Zd(a,b)))},dn:function(a,b){return(new fe(this.ob)).OJ(a,b)},gn:function(a,b){var c=new fe(this.ob);return Number(c.Sx(a,b))},xM:function(a,b,c,d,e,f,g,h){var k=d,q=16,n=new yc;var B=n.Ai(c,this.ob);c=n.getType(c,this.ob);
4<B||c===W.rh||c===W.gg?(k=1,q+=B):c===W.Fo&&(k=this.sv(d));B=p.B(q);q=P.B(B,this.g.A.Fa,this.g.getConfiguration().re());q.td(e);q.td(f);q.td(g);q.td(h);this.en(q,c,d);a.mI(b,k,B)},AM:function(a,b,c,d){var e=d,f=null,g=new yc;var h=g.Ai(c,this.ob);c=g.getType(c,this.ob);if(4<h||c===W.rh||c===W.gg){f=p.B(h);var k=P.B(f,this.g.A.Fa,this.g.getConfiguration().re());e=1}else c===W.Fo&&(e=this.sv(d));this.en(k,c,d);a.rI(b,e,f)},PJ:function(a,b){var c=new yc;var d=c.Ai(a,this.ob);a=c.getType(a,this.ob);
if(4<d||a===W.rh||a===W.gg)var e=P.B(p.B(d),this.g.A.Fa,this.g.getConfiguration().re());this.en(e,a,b)},LJ:function(a,b,c,d,e,f){var g=16,h=new yc;var k=h.Ai(a,this.ob);a=h.getType(a,this.ob);if(4<k||a===W.rh||a===W.gg)g+=k;k=P.B(p.B(g),this.g.A.Fa,this.g.getConfiguration().re());k.td(c);k.td(d);k.td(e);k.td(f);this.en(k,a,b)},en:function(a,b,c){switch(b){case W.Jt:a.Ux(c);break;case W.Qt:case W.Nt:a.Wx(c);break;case W.Kt:a.tr(c);break;case W.rh:case W.gg:b=a.cb(c,b===W.gg),a.Ub(b)}},sv:function(a){var b=
p.B(4),c=this.g.A.Fa;P.B(b,c).$m(a);return O.B(b.wd(),c).getUint32()},Xv:function(a){return"WebvisuSupportLoaded"===a.type}};var Hd;Hd=function(a,b){var c;a=b.getUint16();this.Qe={};for(c=0;c<a;c++){var d=b.getUint16();d=b.ia(d,!1);var e=b.getUint32();this.Qe[d]=e}};Hd.prototype={j:function(a){a=a.g.Tb;for(var b in this.Qe)this.Qe.hasOwnProperty(b)&&a.aM(b,this.Qe[b])}};var Lb;Lb=function(){this.lq={};this.Kv={}};
Lb.prototype={fs:function(a,b){void 0===this.lq[a]&&(this.lq[a]=b,this.Kv[b]=a)},Qr:function(a){return this.lq[a]},Wy:function(a){return this.Kv[a]}};var fe,W,ge,he;fe=function(a){this.fr=a};
fe.prototype={OJ:function(a,b){var c=u.ay(b);try{if("string"===typeof b){if(a===W.rh||a===W.gg)return this.su(b,81);var d=this.fr.Yd(a);if(d instanceof ie)return this.su(b,d.getSize())}c&&(b=this.Sx(a,b));var e="number"===typeof b;if("bigint"===typeof b||e){if(e&&isNaN(b))return!1;d=this.fr.Yd(a);return d instanceof je?b>=d.LowerBorder&&b<=d.UpperBorder?!0:!1:this.Wv(b,a)?!0:this.EG(b,a)?!0:!1}}catch(f){return!1}},su:function(a,b){return null===a||void 0===a||a.length>b-1?!1:!0},Wv:function(a,b){switch(b){case W.wC:case W.vC:return this.ZK(a);
case W.xC:case W.FC:return this.lL(a);case W.GC:case W.EC:return this.jL(a);case W.zC:case W.DC:case W.Ot:case W.Et:case W.Ft:case W.Pt:return this.iL(a);case W.Nt:case W.Qt:case W.Lt:case W.Ht:case W.It:case W.Mt:return this.kL(a);case W.CC:return this.gL(a);case W.BC:return this.aL(a);case W.yC:return this.$K(a);case W.Jt:return this.cL(a);case W.Fo:return this.eL(a);case W.Kt:return this.dL(a);default:return!1}},EG:function(a,b){return(b=this.fr.Yd(b))&&b instanceof ke?this.Wv(a,b.Zc()):!1},ZK:function(a){return 0===
a||1===a},lL:function(a){return a>=ge.HB&&a<=ge.GB},jL:function(a){return a>=ge.DB&&a<=ge.CB},iL:function(a){return a>=ge.BB&&a<=ge.AB},kL:function(a){var b=BigInt(he.FB),c=BigInt(he.EB);var d=a;"bigint"!==typeof a&&(d=BigInt(a));return d>=b&&d<=c},gL:function(a){return a>=ge.zB&&a<=ge.yB},aL:function(a){return a>=ge.rB&&a<=ge.qB},$K:function(a){return a>=ge.pB&&a<=ge.oB},cL:function(a){var b=BigInt(he.tB),c=BigInt(he.sB);var d=a;"bigint"!==typeof a&&(d=BigInt(a));return d>=b&&d<=c},eL:function(a){return a>=
ge.xB&&a<=ge.wB},dL:function(a){return a>=ge.vB&&a<=ge.uB},Sx:function(a,b){switch(a){case W.Ot:case W.Pt:return Number(b.valueOf());case W.Et:case W.Ft:return this.AJ(b.valueOf());case W.Lt:case W.Ht:case W.It:case W.Mt:return this.BJ(BigInt(b.valueOf()))}return b},AJ:function(a){return Math.floor(Number(a)/1E3)},BJ:function(a){return BigInt(a)*BigInt(1E6)}};
W={wC:0,vC:1,xC:2,GC:3,zC:4,Nt:5,CC:6,BC:7,yC:8,Jt:9,FC:10,EC:11,DC:12,Qt:13,Fo:14,Kt:15,rh:16,gg:17,Ot:18,Et:19,Ft:20,Pt:21,Lt:37,Ht:46,It:47,Mt:48};ge={HB:0,GB:255,DB:0,CB:65535,BB:0,AB:4294967295,zB:-128,yB:127,rB:-32768,qB:32767,pB:-2147483648,oB:2147483647,xB:-3.402823466E38,wB:3.402823466E38,vB:-1.7976931348623157E308,uB:1.7976931348623157E308};he={FB:"0",EB:"0xffffffffffffffff",tB:"-9223372036854775808",sB:"9223372036854775807"};var Mb;
Mb=function(a,b,c,d,e){this.kv=a;this.fm=b;this.hp=c;this.SC=d;this.zl=e;void 0===this.zl&&(this.zl=!1);this.zl||this.fm.push("webvisu-support.js")};
Mb.prototype={$J:function(a,b,c,d){var e=document.createElement("iframe"),f=Nb.h();b=this.WD(f,b);e.setAttribute("src","about:blank");e.setAttribute("seamless","");e.setAttribute("sandbox","allow-scripts");e.setAttribute("style","border:0; width:100%; height:100%");e.setAttribute("csp",b);if(!this.zl)return this.ZJ(f,a,b,e,c,d);var g="<!DOCTYPE html>"+u.h('<html><style nonce="{0}">* { margin:0px;}</style><head>',f);g+=u.h('<meta http-equiv="Content-Security-Policy" content="{0}">',b);g+=u.h('<script language="javascript" src="webvisu-support.js" nonce="{0}">\x3c/script>',
f);0!==this.fm.length&&this.fm.forEach(function(h){g+=u.h('<script language="javascript" src="{0}" nonce="{1}">\x3c/script>',h,f)});0!==this.hp.length&&this.hp.forEach(function(h){g+=u.h('<link rel="stylesheet" href="{0}" nonce="{1}">',h,f)});g+="</head><body>";g+=u.h('<script nonce="{2}">window["CdsInfo"] = {"TargetOrigin": "{0}", "Identification": "{3}"};window["CdsInfo"]["Wrapper"] = new {1}({4}, {5});\x3c/script>',window.location.origin,this.kv,f,a,c,d);g+="</body></html>";e.srcdoc=g;return e},
ZJ:function(a,b,c,d,e,f){var g=this;var h="<!DOCTYPE html><html><head>";h+=u.h('<style nonce="{0}">* { margin:0px;}</style>',a);h+=u.h('<meta http-equiv="Content-Security-Policy" content="{0}">',c);c=g.fm.map(function(k){return g.tK(k,a,g)});c=g.hp.map(function(k){return g.sK(k,a,g)}).concat(c);Promise.all(c).then(function(k){var q=k.pop();k.forEach(function(n){h+=n});h+="</head><body>";h+=u.h('<script nonce="{2}">window["CdsInfo"] = {"TargetOrigin": "{0}", "Identification": "{3}"}; window["CdsInfo"]["Wrapper"] = new {1}({4}, {5});\x3c/script>',
window.location.origin,g.kv,a,b,e,f);h+=q;h+="</body></html>";d.srcdoc=h;return d}).catch(function(k){console.warn("Error when loading the additional files. Details:"+k)});d.srcdoc="<!DOCTYPE html><head></head></html>";return d},tK:function(a,b,c){return new Promise(function(d,e){c.Mr(a,"text").then(function(f){f=u.h('<script language="javascript" nonce="{1}">{0}\x3c/script>',f,b);d(f)},function(f){e(f)})})},sK:function(a,b,c){return new Promise(function(d,e){c.Mr(a,"text").then(function(f){f=u.h('<style nonce="{1}"> {0} </style>',
f,b);d(f)},function(f){e(f)})})},Mr:function(a,b){return new Promise(function(c,d){var e=new XMLHttpRequest;e.responseType=b;e.open("GET",a);e.onload=function(){4===e.readyState&&200===e.status?c(e.response):(console.error(e.statusText),d({kM:a,status:e.status,statusText:e.statusText}))};e.onerror=function(){console.error(e.statusText);d({kM:a,status:e.status,statusText:e.statusText})};e.send()})},h:function(a){if("string"!==typeof a)return null;a=a.toLowerCase();a=this.SC[a];return null===a||void 0===
a||"string"!==typeof a?null:a},WD:function(a,b){a=u.h("'nonce-{0}' 'unsafe-inline' {1}",a,b);var c=u.h("'self' blob: {0} {1} data:",window.location.origin,b);b=u.h("'unsafe-inline' 'self' {0} data:",b);return u.h("default-src {0}; object-src 'none'; script-src {0}; img-src {1}; style-src {2}; style-src-elem {2}; base-uri 'none';",a,c,b)}};var ce;ce=function(){};
ce.Bk=function(a,b,c,d){if("number"===typeof b&&"string"===typeof c.originalAdditionalFileName&&null!==a&&void 0!==a)c=c.originalAdditionalFileName,a=a.h(c),d(T.IA(b,null!==a,c,a));else throw new TypeError("Message is not in the correct format.");};var ee;ee=function(){};ee.J=function(a,b,c,d){var e=a.h(c.filename);null===e?d(T.dg(b,"handleGetImageMessage Error: Could not resolve requested filename: "+c.filename)):this.wl(a,b,"GetImageMessageResult","blob",e,d)};
ee.m=function(a,b,c,d,e){"string"===typeof d.imagePoolId&&(b=b.zi(d.imagePoolId),null===b?e(T.dg(c,"handleGetImageByIdMessage Error: Could not resolve requested filename: "+d.imagePoolId)):this.wl(a,c,"GetImageByIdMessageResult","blob",b,e))};ee.va=function(a,b,c,d){var e=a.h(c.filename);null===e?d(T.dg(b,"handleGetTextFileMessage Error: Could not resolve requested filename: "+c.filename)):this.wl(a,b,"GetTextFileMessageResult","",e,d)};
ee.h=function(a,b,c,d){var e=a.h(c.filename);null===e?d(T.dg(b,"handleGetBinaryFileMessage Error: Could not resolve requested filename: "+c.filename)):this.wl(a,b,"GetBinaryFileMessageResult","blob",e,d)};ee.iF=function(a,b,c){if(void 0===c||""===c)c="text";return a.Mr(b,c)};
ee.wl=function(a,b,c,d,e,f){"string"!==typeof e&&f(T.dg(b,"Message is not in the correct format. Expected "+e+" to be of type string. Is: "+typeof e));this.iF(a,e,d).then(function(g){f(new CommonAdditionalFileResultMessage(b,!0,c,e,g))},function(g){f(T.dg(b,g))})};var de;de=function(){};de.Bk=function(a,b,c,d){if("number"===typeof b&&"string"===typeof c.imageId)c=c.imageId,a=a.zi(c),d(T.JA(b,""!==a,c,a));else throw new TypeError("Message is not in the correct format.");};var be;be=function(){};
be.tn=function(a){return"boolean"===typeof a?a?1:0:a};be.va=function(a,b,c,d,e){var f;if("number"!==typeof c||"string"!==typeof d.methodName||"number"!==typeof d.param&&"bigint"!==typeof d.param&&"boolean"!==typeof d.param&&"string"!==typeof d.param&&!e)throw new TypeError("Message is not in the correct format.");var g=a.Sy(d.methodName);var h=b.pn(d.methodName);var k=this.tn(d.param);if(f=a.dn(h,k)){e&&(k=a.gn(h,k));try{a.AM(b,g,h,k)}catch(q){f=!1}}a.Fc(b,T.SA(c,f,d.param))};
be.m=function(a,b,c,d,e){var f;if("number"!==typeof c||"string"!==typeof d.methodName||"number"!==typeof d.param&&"bigint"!==typeof d.param&&"boolean"!==typeof d.param&&"string"!==typeof d.param&&!e)throw new TypeError("Message is not in the correct format.");var g=b.pn(d.methodName);var h=this.tn(d.param);if(f=a.dn(g,h)){e&&(h=a.gn(g,h));try{a.PJ(g,h)}catch(k){f=!1}}a.Fc(b,T.EA(c,f,d.param))};
be.J=function(a,b,c,d,e){if("number"!==typeof c||"string"!==typeof d.methodName||"number"!==typeof d.index0||"number"!==typeof d.index1||"number"!==typeof d.index2||"number"!==typeof d.indexCount||"number"!==typeof d.param&&"bigint"!==typeof d.param&&"boolean"!==typeof d.param&&"string"!==typeof d.param&&!e)throw new TypeError("Message is not in the correct format.");var f=a.ob;var g=a.Sy(d.methodName);var h=f.Yd(b.pn(d.methodName));var k=this.tn(d.param);if(h instanceof le||h instanceof me){var q=
h.Zc(f,d.indexCount,d.index0,d.index1,d.index2);h=a.dn(q,k)}else h=!1;if(h){e&&(k=a.gn(q,k));try{a.xM(b,g,q,k,d.index0,d.index1,d.index2,d.indexCount)}catch(n){h=!1}}a.Fc(b,T.RA(c,h,d.param,d.indexCount,d.index0,d.index1,d.index2))};
be.h=function(a,b,c,d,e){if("number"!==typeof c||"string"!==typeof d.methodName||"number"!==typeof d.indexCount||"number"!==typeof d.index0||"number"!==typeof d.index1||"number"!==typeof d.index2||"number"!==typeof d.param&&"bigint"!==typeof d.param&&"boolean"!==typeof d.param&&"string"!==typeof d.param&&!e)throw new TypeError("Message is not in the correct format.");var f=a.ob;var g=f.Yd(b.pn(d.methodName));var h=this.tn(d.param);if(g instanceof le||g instanceof me){var k=g.Zc(f,d.indexCount,d.index0,
d.index1,d.index2);g=a.dn(k,h)}else g=!1;if(g){e&&(h=a.gn(k,h));try{a.LJ(k,h,d.index0,d.index1,d.index2,d.indexCount)}catch(q){g=!1}}a.Fc(b,T.DA(c,g,d.param,d.indexCount,d.index0,d.index1,d.index2))};var CheckComplexValueResultMessage;CheckComplexValueResultMessage=function(){this.index2=this.index1=this.index0=this.indexCount=this.value=this.result=this.promiseId=null};CheckComplexValueResultMessage.prototype={type:function(){return"CheckComplexValueResult"}};var CheckSimpleValueResultMessage;
CheckSimpleValueResultMessage=function(){this.value=this.result=this.promiseId=null};CheckSimpleValueResultMessage.prototype={type:function(){return"CheckSimpleValueResult"}};var CommonAdditionalFileResultMessage;CommonAdditionalFileResultMessage=function(a,b,c,d,e){this.promiseId=a;this.result=b;this._type=c;this.requestFilename=d;this.responseContent=e};CommonAdditionalFileResultMessage.prototype={type:function(){return this._type?this._type:"CommonAdditionalFileResult"}};var Jb;
Jb=function(){this.error=this.promiseId=null};Jb.prototype={type:function(){return"ErrorMessage"}};var GetAdditionalFileNameResultMessage;GetAdditionalFileNameResultMessage=function(){this.resultingAdditionalFileName=this.originalAdditionalFileName=this.result=this.promiseId=null};GetAdditionalFileNameResultMessage.prototype={type:function(){return"GetAdditionalFileNameResult"}};var GetImagePoolFileNameResultMessage;
GetImagePoolFileNameResultMessage=function(){this.resultingFileName=this.imageId=this.result=this.promiseId=null};GetImagePoolFileNameResultMessage.prototype={type:function(){return"GetImagePoolFileNameResult"}};var GetTypeDescResultMessage;GetTypeDescResultMessage=function(){this.typeDesc=this.result=this.promiseId=null};GetTypeDescResultMessage.prototype={type:function(){return"GetTypeDescResult"}};var MethodCallMessage;MethodCallMessage=function(){this.params=this.methodName=null};
MethodCallMessage.prototype={type:function(){return"MethodCall"}};var ResizeMessage;ResizeMessage=function(){this.height=this.width=null};ResizeMessage.prototype={type:function(){return"Resize"}};var SetComplexValueResultMessage;SetComplexValueResultMessage=function(){this.index2=this.index1=this.index0=this.indexCount=this.value=this.result=this.promiseId=null};SetComplexValueResultMessage.prototype={type:function(){return"SetComplexValueResult"}};var SetSimpleValueResultMessage;
SetSimpleValueResultMessage=function(){this.value=this.result=this.promiseId=null};SetSimpleValueResultMessage.prototype={type:function(){return"SetSimpleValueResult"}};var ne;ne=function(a,b){this.MinRange=a;this.MaxRange=b};ne.prototype={};var Yd;Yd=function(a,b){this.Data=0;this.StartIndex=a;this.EndIndex=b;this.ScrollDimension=0};Yd.prototype={setData:function(a){this.Data=a}};var ae;ae=function(){this.Lp={}};ae.prototype={Gk:function(a,b){void 0===this.Lp[b]&&(this.Lp[b]=a)},Yd:function(a){return this.Lp[a]}};
var Md;Md=function(a,b,c,d){a=d.g.Tb;this.id=b.getUint32();this.size=b.getUint32();this.type=b.getUint32();b=new ie(this.size,this.type);a.ob.Gk(b,this.id)};Md.prototype={j:function(){}};var Jd;Jd=function(a,b,c,d){a=d.g.Tb;this.id=b.getUint32();this.size=b.getUint32();this.pO=b.getUint32();c=b.getUint16();this._dimensions=[];for(var e=0;e<c;++e){d=b.getUint32();var f=b.getUint32();this._dimensions.push(new ne(d,f))}b=new le(this.size,this.pO,this._dimensions);a.ob.Gk(b,this.id)};Jd.prototype={j:function(){}};
var Id;Id=function(a,b,c,d){a=d.g.Tb;d=new yc;this.id=b.getUint32();this.by=b.getUint32();c=b.getUint16();this._enumValues={};for(var e=0;e<c;++e){var f=b.getUint16();var g=b.ia(f,!1);f=b.yd();this._enumValues[g]=f}b=new ke(this.by,d.Ai(this.by,a.ob),this._enumValues);a.ob.Gk(b,this.id)};Id.prototype={j:function(){}};var Kd;
Kd=function(a,b,c,d){a=d.g.Tb;this.id=b.getUint32();this.size=b.getUint32();c=b.getUint32();this.Fu=[];for(var e=0;e<c;++e){d=b.getUint32();var f=b.getUint32();this.Fu.push(new oe(d,f))}b=new me(this.size,this.Fu);a.ob.Gk(b,this.id)};Kd.prototype={j:function(){}};var Ld;Ld=function(a,b,c,d){a=d.g.Tb;this.id=b.getUint32();this.type=b.getUint32();this.uL=b.xd();this.wO=b.xd();b=new je(this.type,this.uL,this.wO);a.ob.Gk(b,this.id)};Ld.prototype={j:function(){}};var oe;
oe=function(a,b){this.TypeId=a;this.Offset=b};oe.prototype={};var yc;yc=function(){};
yc.prototype={hL:function(a){return 0<=a&&48>=a},getType:function(a,b){if(this.hL(a))return a;var c=b.Yd(a);if(c instanceof le)return this.getType(c.Zc(),b);if(c instanceof ie)return this.getType(c.getType(),b);if(c instanceof ke)return this.getType(c.Zc(),b);throw new TypeError("Cannot determine type for "+a.toString());},wK:function(a){switch(a){case 4:case 8:case 12:case 14:case 18:case 21:case 19:case 20:return 4;case 5:case 13:case 9:case 15:return 8}return 0},oy:function(a,b){var c=p.B(b),d=
P.B(c,!0),e;for(e=0;e<b;++e)d.Na(a.getUint8());a=O.B(c.wd(),a.Ci(),a.Li());return new Ma(a)},yn:function(a,b,c,d,e,f){var g=e.Yd(d);void 0===g&&(g=e.Yd(a));if(g instanceof le||g instanceof me)return g.ny(b,c,e,f);if(998===d)return I.xt(b,c);if(997===d)return a=b.getUint32(),I.$a(a);g instanceof ke?a=g.Zc():g instanceof ie?a=g.getType():g instanceof je&&(a=g.getType());return this.Iz(a,b)},Iz:function(a,b){switch(a){case 0:case 1:return 0!==b.getUint8();case 2:case 10:return b.getUint8();case 6:return b.getInt8();
case 3:case 11:return b.getUint16();case 7:return b.getInt16();case 8:return b.getInt32();case 9:return b.xd();case 4:case 12:return b.getUint32();case 5:case 13:return b.yd();case 14:return b.getFloat32();case 15:return b.getFloat64();case 16:case 17:return b.se(17===a);case 18:return b.getUint32();case 19:case 20:case 21:return b=b.getUint32(),this.UD(b,a);case 26:case 28:return b;default:throw new TypeError("TypeCode + "+a.toString()+" not supported");}},Ai:function(a,b){switch(a){case 0:case 1:case 2:case 10:case 6:return 1;
case 3:case 11:case 7:return 2;case 8:return 4;case 9:return 8;case 4:case 12:return 4;case 5:case 13:return 8;case 14:return 4;case 15:return 8;case 16:return 81;case 17:return 162;case 18:case 19:case 20:case 21:return 4;default:b=b.Yd(a);if(b instanceof le||b instanceof me||b instanceof ie||b instanceof ke)return b.getSize();throw new TypeError("TypeCode + "+a.toString()+" cannot determine type size");}},Zc:function(a,b,c,d,e){if(1E3<=a){var f=b.Yd(a);if(f instanceof le||f instanceof me)return f.Zc(b,
c,d,e,0);if(f instanceof ie)return a;if(f instanceof ke)return f.Zc();throw new TypeError("SystemTypeClass: wrong base type id");}return a},UD:function(a,b){a=21===b?new Date(a):new Date(1E3*a);if(19===b)a.setHours(0,0,0,0);else if(21===b)return b=new Date(0),b.setHours(a.getHours()),b.setMinutes(a.getMinutes()),b.setSeconds(a.getSeconds()),b.setMilliseconds(a.getMilliseconds()),b;return a}};var le;le=function(a,b,c){this.Size=a;this.BaseTypeId=b;this.Dimensions=c};
le.prototype={getSize:function(){return this.Size},Zc:function(a,b,c,d,e){if(1<=this.Dimensions.length)return(new yc).Zc(this.BaseTypeId,a,b-1,d,e);throw new TypeError("TypeDescArray with no dimensions");},ny:function(a,b,c,d){if(1<=this.Dimensions.length){var e=this.Dimensions[0],f=[],g=0,h=new yc,k=a.fa();var q=h.Ai(this.BaseTypeId,c);var n=e.MinRange;e=e.MaxRange;void 0!==d&&d instanceof Yd&&(n=d.StartIndex,e=d.EndIndex);for(d=n;d<=e;d++)if(2<=this.Dimensions.length){var B=this.Dimensions[1],A=
[];for(n=B.MinRange;n<=B.MaxRange;n++)a.seek(k+g*q),A.push(h.yn(this.BaseTypeId,a,b,this.BaseTypeId,c)),g++;f.push(A)}else a.seek(k+g*q),f.push(h.yn(this.BaseTypeId,a,b,this.BaseTypeId,c)),g++;return f}throw new TypeError("TypeDescArray with no dimensions");}};var ke;ke=function(a,b,c){this.BaseTypeId=a;this.xA=b;this.EnumValues=c};ke.prototype={getSize:function(){return this.xA},Zc:function(){return this.BaseTypeId}};var Sd;
Sd=function(a,b,c,d,e){this.Font=a;this.Name=b;this.Size=c;this.Style=d;this.Color=e};Sd.prototype={wi:function(){return this.Font},getSize:function(){return this.Size},ln:function(){return this.Color}};var ie;ie=function(a,b){this.Size=a;this.TypeId=b};ie.prototype={getSize:function(){return this.Size},getType:function(){return this.TypeId}};var me;me=function(a,b){this.Size=a;this.Components=b};
me.prototype={getSize:function(){return this.Size},Zc:function(a,b,c,d,e){if(0<this.Components.length&&0<b)return(new yc).Zc(this.Components[c].TypeId,a,b-1,d,e);throw new TypeError("TypeDescStruct with no components");},ny:function(a,b,c,d){if(0<this.Components.length){var e=[],f=new yc,g=a.fa();var h=0;var k=this.Components.length-1;void 0!==d&&d instanceof Yd&&(h=d.StartIndex,k=d.EndIndex);for(d=h;d<=k;d++)a.seek(g+this.Components[d].Offset),e.push(f.yn(this.Components[d].TypeId,a,b,this.Components[d],
c));return e}throw new TypeError("TypeDescStruct with no components");}};var je;je=function(a,b,c){this.TypeId=a;this.LowerBorder=b;this.UpperBorder=c};je.prototype={getType:function(){return this.TypeId}};var Ic;Ic=function(){};Ic.prototype={j:function(){v.warn("The functionality ExecuteClientProgram is not possible in the webvisualization.")}};var Jc;Jc=function(){};Jc.prototype={j:function(){v.warn("The functionality OpenFileDialog is not possible in the webvisualization.")}};var pe;
pe=function(a,b){this.ra=a;this.To=this.Uo=-1;this.up=!1;this.nv=this.mv=1;b.zd()&&(this.ra=b.oh(this.ra));this.Ea=null};
pe.prototype={j:function(a){var b=new N(0,0,document.documentElement.clientWidth,document.documentElement.clientHeight);var c=new ic(0,b);var d=!0===a.g.getConfiguration().SemiTransparencyActive?I.$a(this.To):I.lb(this.To);a.getState().ws(1,d,0,"","",0);a.getState().ts(d,!1);c.ri(a);c=new ic(0,this.ra);d=!0===a.g.getConfiguration().SemiTransparencyActive?I.$a(this.Uo):I.lb(this.Uo);a.getState().ws(1,d,0,"","",0);a.getState().ts(d,!1);c.ri(a);null!==this.Ea&&this.Ea.loaded()&&(a.oz()&&this.up?this.nj(a,
this.Ea,b):this.nj(a,this.Ea,this.ra))},FM:function(a){this.Uo=a},EM:function(a){this.To=a},GM:function(a){this.Ea=a},$M:function(a){this.up=a},aN:function(a){this.mv=a},bN:function(a){this.nv=a},nj:function(a,b,c){if(a.zd()){var d=b.rn();if(a.oz()&&this.up){var e=this.mv;var f=this.nv}else e=a.Gm,f=a.gi;d=new w(Math.round(e*d.L),Math.round(f*d.V));c=u.jo(c,d,this);a.getContext().drawImage(b.qn(),c.s,c.u,c.D(),c.C())}else a.getContext().drawImage(b.qn(),c.s,c.u)}};var qe;
qe=function(a,b,c){this.ra=a;this.lu=this.Sm=!0;this.v=window.document.createElement("button");this.rc=null!==c&&void 0!==c?c:b.Ka.canvas.parentNode;this.Xw=0;this.pl=1;this.kf=this.Fe="#000000";this.ec=-1;this.ya="";this.PH=!1};
qe.prototype={j:function(a){a=a.yk();var b=null,c=this;b=this.ra.Mb(a.X,a.Y);u.cd(this.v,b);this.PH&&(this.v.style.position="relative",this.v.style.left="0px",this.v.style.top="0px");this.Sm&&(this.v.style.background="transparent",this.v.style.color="transparent");this.lu?(this.v.style.borderRadius=u.h("{0}px",this.Xw),this.v.style.borderWidth=u.h("{0}px",this.pl),this.v.style.borderColor=this.Fe===this.kf?this.Fe:u.h("{0} {0} {0} {0}",this.Fe,this.Fe,this.kf,this.kf)):this.v.style.border="none";
this.v.tabIndex=this.ec;this.v.addEventListener("keydown",function(d){c.Hu(d)});this.rc.appendChild(this.v)},Hu:function(a){if(32===a.keyCode||13===a.keyCode){var b=null;a.stopPropagation();r.Gb()?b=new PointerEvent("pointerup"):b=new MouseEvent("mouseup");this.v.dispatchEvent(b)}},uc:function(){return this.v},ue:function(a){this.ra=a},setRadius:function(a){this.Xw=a},KM:function(a){this.pl=a},JM:function(a){this.Fe=a},IM:function(a){this.kf=a},bg:function(a){this.ec=a},HM:function(a){this.lu=a},
Xx:function(a){this.ya=a;this.v.id=this.ya},on:function(){return this.ya},remove:function(){if(null!==this.v){var a=this;this.v.removeEventListener("keydown",function(b){a.Hu(b)});this.rc.removeChild(this.v)}}};var Wd;Wd=function(a,b,c){this.g=a;this.ya=b;this.l=c;this.jg=this.mp=this.Zb=this.Qb=null;this.ec=G.J;this.vu="";this.Hv=1;this.rq=!1;this.er=this.hb=-1;this.Sj=null};
Wd.prototype={j:function(a){if(null===this.jg){var b=a.g.ea().za();if(null!==b&&(this.l=b.ic(),0===this.Hv?this.Zb=b.getParent():(this.Zb=b.S(),this.mp=b.ja,this.l=new N(0,0,this.l.D(),this.l.C())),this.vu=b.Qb.id,null!==this.Zb)){var c=window.document.createElement("div");c.id="FTButtonElement_"+this.ya;0===this.Hv&&u.wo(this.Zb)&&(this.Zb=b.S(),this.Zb=window.document.body);this.Zb.appendChild(c);this.Qb=c}this.ee()}null!==this.jg&&this.jg.j(a)},S:function(){return this.Qb},on:function(){return this.ya},
ee:function(){this.ZD();var a=document.getElementById("FTButton_"+this.ya);if(null===a||void 0===a)this.bE(this.ya),this.aE(this.ya,this.l)},aE:function(a,b){var c=this;this.jg=this.ak(a,b);this.jg.uc().addEventListener(r.Gb()?"pointerup":"mouseup",function(d){c.iq(d,a)},!1);this.jg.uc().addEventListener(r.Gb()?"pointerdown":"mousedown",function(d){c.iq(d,a)},!1);this.jg.uc().addEventListener(r.Gb()?"pointermove":"mousemove",function(d){c.iq(d,a)},!1)},bE:function(a){var b=this;var c=window.document.createElement("input");
c.id="FTButtonFile_"+a;c.type="file";c.style.display="none";c.addEventListener("change",function(d){b.aH(d,a)},!1);this.Qb.appendChild(c)},ZD:function(){if(null===this.Qb){var a="FTButtonElement_"+this.ya;var b=document.getElementById(a);if(null===b||void 0===b)b=window.document.createElement("div"),b.id=a,a=window.document.body,null!==a&&void 0!==a&&(a.appendChild(b),this.Zb=a);this.Qb=b}},iq:function(a,b){var c=1;var d=this.g.Ih.ot(b);null!==d&&(c=d.WK,1!==c&&2!==c&&6!==c&&(c=1));d=this.Ix(a.type);
if("pointerup"===d){if(this.cJ(a),1===c||6===c)this.yw(b),this.g.Hh.In(-123)}else"pointerdown"===d?(this.GE(a),2===c&&(this.yw(b),this.g.Hh.In(-123))):"pointermove"===d&&this.UG(a,b)},yw:function(a){var b=document.getElementById("FTButtonFile_"+a),c=null,d=null,e=this;d=d=null;null!==b&&void 0!==b&&(c=this.g.Ih.ot(a),d=this.g.i,null!==c&&null===d&&(this.rq=!1,this.er=0,this.Em(),this.Sj=function(){e.cH()},window.addEventListener("focus",this.Sj,!1),d=new pc(null),d.wg=c.mz,d.Aj=c.Iy,d.Ko=c.filters,
d.yc=c.flags,d=c.stream?new qc(0,3,c.mz,"",d):new qc(a,1,c.IL,"",d),d.xz=!0,d.status.oe=!1,this.g.Ki(d),b.accept=re.h(c.Iy,c.filters),b.click()))},aH:function(a){this.rq=!0;re.m(a,this.g);this.Em()},cH:function(){var a=this;this.hb=window.setInterval(function(){a.wF()},250)},wF:function(){if(this.rq)this.Em();else if(this.er++,3<this.er){this.Em();var a=this.g.i;null!==a&&(a.status.Ob=V.m,v.info("File Transfer cancelled"))}},Em:function(){null!==this.Sj&&(window.removeEventListener("focus",this.Sj,
!1),this.Sj=null);clearInterval(this.hb)},GE:function(a){this.Ap(a,"mousedown")},cJ:function(a){this.Ap(a,"mouseup")},UG:function(a,b){this.Ap(a,"mousemove");this.vI(b)},Ap:function(a,b){a.preventDefault();a.stopPropagation();var c=null===this.mp?this.g.mb():this.mp;null!==c&&void 0!==c&&this.HH(b,c,a.pageX,a.pageY)},vI:function(a){a=document.getElementById("FTButton_"+a);null!==a&&void 0!==a&&(a.style.cursor="pointer")},ak:function(a,b){b=new qe(b,this.g.Z(),this.Qb);b.Xx("FTButton_"+a);b.HM(!1);
b.bg(this.ec++);return b},HH:function(a,b,c,d){var e={bubbles:!0,cancelable:"mousemove"!==a,view:window,detail:0,screenX:c,screenY:d,clientX:c,clientY:d,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:b};if(r.Gb()){a=this.Ix(a);var f={};this.kG(f,e,b);f.pointerType="mouse";a=new PointerEvent(a,f)}else a=new MouseEvent(a,e);this.pE(a,c,d,b)},kG:function(a,b,c){a.isPrimary=!0;a.bubbles=b.bubbles;a.cancelable=b.cancelable;a.view=b.view;a.detail=b.detail;a.screenX=b.screenX;a.clientX=
b.clientX;a.screenY=b.screenY;a.clientY=b.clientY;a.ctrlKey=b.ctrlKey;a.altKey=b.altKey;a.shiftKey=b.shiftKey;a.metaKey=b.metaKey;a.button=b.button;a.relatedTarget=c;a.pointerId=-123},pE:function(a,b,c,d){Object.defineProperty(a,"layerX",{value:b});Object.defineProperty(a,"layerY",{value:c});a.button=1;a.which=1;d.dispatchEvent(a)},Ix:function(a){switch(a){case "touchmove":case "mousemove":return"pointermove";case "touchup":case "mouseup":return"pointerup";case "touchdown":case "mousedown":return"pointerdown";
default:return a}}};var se;se=function(a,b,c){this.ra=a;this.Ac=12;this.am="";this.Sb="HCENTER";this.Bb="VCENTER";this.Bc="";this.ng=this.yg=!1;this.Ve=b;this.v=window.document.createElement("input");this.rc=c.Ka.canvas.parentNode;this.tg=this.Af=null;this.ec=-1;this.xq="";this.hf="#FFFFFF";this.Hb="#000000"};
se.prototype={j:function(a){var b=this.og();a=a.yk();b=b.Mb(a.X,a.Y);u.cd(this.v,b);this.v.style.zIndex=300;this.v.style.textAlign="HCENTER"===this.Sb?"center":"RIGHT"===this.Sb?"right":"left";this.v.style.fontFamily=this.Bc;this.v.style.fontSize=this.Ac+"px";this.yg&&(this.v.style.fontStyle="italic");this.ng&&(this.v.style.fontWeight="bold");this.Ve?(b=document.getElementsByTagName("input"),0===b.length?(this.tg=window.document.createElement("input"),this.tg.type="text",this.tg.autocomplete="username",
this.tg.style.display="none",b=this.tg):b=b[0],this.Af=window.document.createElement("form"),this.v.type="password",this.v.autocomplete="current-password",this.Af.appendChild(b),this.Af.appendChild(this.v),this.rc.appendChild(this.Af)):(this.v.autocomplete="username",this.rc.appendChild(this.v));""!==this.xq&&(this.v.placeholder=this.xq);this.v.style.border="none";this.v.style.backgroundColor=this.hf;this.v.style.color=this.Hb;this.v.tabIndex=this.ec},uc:function(){return this.v},ag:function(a,b){this.Bc=
a;this.Ac=b},Lk:function(a,b){this.Sb=a;this.Bb=b},ue:function(a){this.ra=a},bg:function(a){this.ec=a},HN:function(a){this.xq=a},Ii:function(a){this.hf=a},setColor:function(a){this.Hb=a},remove:function(){null!==this.Af?(null!==this.tg&&this.Af.removeChild(this.tg),null!==this.v&&this.Af.removeChild(this.v),this.rc.removeChild(this.Af)):null!==this.v&&this.v.parentElement===this.rc&&this.rc.removeChild(this.v)},og:function(){var a=this.ra.s+3,b=this.ra.T-9,c,d=u.ef(this.Ac);"BOTTOM"===this.Bb?c=this.ra.aa-
d-9:c="VCENTER"===this.Bb?this.ra.u+(this.ra.C()-d)/2:this.ra.u+1;return new N(a,c,b,c+d)}};var te;te=function(a){this.l=a;this.$o=!0};te.prototype=Object.create(Ka.prototype);te.prototype.constructor=te;var ue;ue=function(a,b){this.ra=a;this.Ac=12;this.am="";this.Sb="HCENTER";this.Bb="VCENTER";this.Bc="";this.ng=this.yg=!1;this.v=window.document.createElement("select");this.rc=b.Ka.canvas.parentNode;this.ec=-1;this.hf="#FFFFFF";this.Hb="#000000";this.Yv=[];this.mx=""};
ue.prototype={j:function(a){var b=this.og(),c=this;a=a.yk();b=b.Mb(a.X,a.Y);u.cd(this.v,b);this.v.style.zIndex=300;this.v.style.textAlign="HCENTER"===this.Sb?"center":"RIGHT"===this.Sb?"right":"left";this.v.style.fontFamily=this.Bc;this.v.style.fontSize=this.Ac+"px";this.yg&&(this.v.style.fontStyle="italic");this.ng&&(this.v.style.fontWeight="bold");this.Yv.forEach(function(d){var e=window.document.createElement("option");e.value=d;e.text=d;e.selected=c.mx.toUpperCase()===d.toUpperCase()?!0:!1;c.v.appendChild(e)});
this.rc.appendChild(this.v);this.v.style.border="none";this.v.style.backgroundColor=this.hf;this.v.style.color=this.Hb;this.v.tabIndex=this.ec},uc:function(){return this.v},ag:function(a,b){this.Bc=a;this.Ac=b},Lk:function(a,b){this.Sb=a;this.Bb=b},ue:function(a){this.ra=a},bg:function(a){this.ec=a},Ii:function(a){this.hf=a},setColor:function(a){this.Hb=a},tN:function(a){this.Yv=a},nA:function(a){this.mx=a},remove:function(){null!==this.v&&this.v.parentElement===this.rc&&this.rc.removeChild(this.v)},
og:function(){var a=this.ra.s+3,b=this.ra.T-9,c,d=u.ef(this.Ac);"BOTTOM"===this.Bb?c=this.ra.aa-d-9:c="VCENTER"===this.Bb?this.ra.u+(this.ra.C()-d)/2:this.ra.u+1;return new N(a,c,b,c+d)}};var ve;ve=function(a,b){this.ra=a;this.Ac=12;this.Sb="HCENTER";this.Bb="VCENTER";this.Bc="";this.ng=this.yg=!1;this.v=window.document.createElement("div");this.kg=null;this.rc=b.Ka.canvas.parentNode;this.ec=-1;this.hf="#FFFFFF";this.Hb="#000000";this.ir=this.ka="";this.tw=!0};
ve.prototype={j:function(a){var b=this.og();a=a.yk();b=b.Mb(a.X,a.Y);u.cd(this.v,b);this.v.style.zIndex=300;this.v.style.textAlign="HCENTER"===this.Sb?"center":"RIGHT"===this.Sb?"right":"left";this.v.style.fontFamily=this.Bc;this.v.style.fontSize=this.Ac+"px";this.yg&&(this.v.style.fontStyle="italic");this.ng&&(this.v.style.fontWeight="bold");""!==this.ir?(this.kg=window.document.createElement("a"),this.kg.innerText=this.ka,this.kg.href=this.ir,this.tw&&(this.kg.target="_blank"),this.v.appendChild(this.kg)):
this.v.innerText=this.ka;this.rc.appendChild(this.v);this.v.style.backgroundColor=this.hf;this.v.style.color=this.Hb;this.v.tabIndex=this.ec},uc:function(){return this.v},dO:function(a,b){this.ir=a;this.tw=b},ag:function(a,b){this.Bc=a;this.Ac=b},Lk:function(a,b){this.Sb=a;this.Bb=b},ue:function(a){this.ra=a},bg:function(a){this.ec=a},Ii:function(a){this.hf=a},setColor:function(a){this.Hb=a},jc:function(a){this.ka=a},remove:function(){null!==this.v&&(null!==this.kg.href&&this.v.removeChild(this.kg),
this.rc.removeChild(this.v))},og:function(){var a=this.ra.s+3,b=this.ra.T-9,c,d=u.ef(this.Ac);"BOTTOM"===this.Bb?c=this.ra.aa-d-9:c="VCENTER"===this.Bb?this.ra.u+(this.ra.C()-d)/2:this.ra.u+1;return new N(a,c,b,c+d)}};var Ia;Ia=function(a,b){a=b.getUint16();this.Hj=b.ia(a,!1);this.Yj=b.getUint16()};Ia.prototype={j:function(a){a=a.g.Lb;null!==a&&(a.sN(this.Hj),a.JN(this.Yj))}};var Ha;Ha=function(a,b){this.WG=b.getUint32()};Ha.prototype={j:function(a){a.g.Lb.aA(this.WG)}};var Ja;
Ja=function(a,b){a=b.getUint16();this.Om=b.ia(a,!1)};Ja.prototype={j:function(a){a=a.g.Lb;null!==a&&a.aO(this.Om)}};var Wc;Wc=function(a,b){this.nc=b.getUint16();this.na=b.getUint16();this.pa=b.getUint16();this.gb=b.getUint32();this.vA=1};
Wc.prototype={j:function(a){var b=null,c=u.no(this.na-1,this.pa-1).getContext("2d");c.fillStyle="white";c.fillRect(0,0,this.na-1,this.pa-1);this.gb&this.vA&&(b=u.no(this.na-1,this.pa-1).getContext("2d"),b.fillStyle="white",b.fillRect(0,0,this.na-1,this.pa-1));a.Sd.yJ(this.nc,new Oa(c,b,new w(this.na,this.pa)))}};var Xc;Xc=function(a,b){this.nc=b.getUint16()};Xc.prototype={j:function(a){a.Sd.hM(this.nc);a.g.oa.wa.YK(this.nc)}};var $c;
$c=function(a,b){this.XI=b.getUint32();this.fG=b.getUint16();this.Xl=b.getUint16();this.fq=!!b.getUint8();this.gq=!!b.getUint8();this.pq=new t(b.getUint16(),b.getUint16())};$c.prototype={j:function(a){var b=new Ud(this.Xl,this.fq,this.gq,this.pq);a.g.oa.wa.OK(this.XI).info().mA(this.fG,b)}};var Yc;Yc=function(a,b){this.nc=b.getUint16()};Yc.prototype={j:function(a){a.Sd.LL(this.nc)}};var Zc;Zc=function(a,b){this.nc=b.getUint16()};
Zc.prototype={j:function(a){var b=a.Sd.Jn(a.Sd.qr());!b.Vh&&a.Ig&&b.xl.drawImage(b.Ka.canvas,0,0);b.Vh||a.Ig||b.qN(!0);a.Sd.JL()}};var Vc;Vc=function(){};Vc.prototype={j:function(a){var b=a.g.vb,c=a.cr,d;var e=p.B(2*c.count());var f=P.B(e,a.g.A.Fa);for(d=0;d<c.count();++d)f.tc(c.xn(d));a=new m(519,a.g.A.la,0,0);a.Eb(e);b.push(a)}};var Oc;Oc=function(){};
Oc.prototype={j:function(a){var b=a.g.vb,c=a.Nm,d;var e=p.B(4*c.count());var f=P.B(e,a.g.A.Fa);for(d=0;d<c.count();++d)f.tc(c.D(d)),f.tc(c.C(d));a=new m(518,a.g.A.la,0,0);a.Eb(e);b.push(a)}};var Uc;Uc=function(a,b){var c=b.getUint16();this.ka=b.ia(c,52===a)};Uc.prototype={j:function(a){a.getContext().font=a.getState().wi();a.cr.xJ(this.ka)}};var Nc;Nc=function(a,b){var c=b.getUint16();this.ka=b.ia(c,34===a)};Nc.prototype={j:function(a){a.getContext().font=a.getState().wi();a.Nm.Qx(this.ka)}};var Tc;
Tc=function(a,b){b.getUint32();b.getUint32()};Tc.prototype={j:function(a){a.cr.clear()}};var Mc;Mc=function(a,b){b.getUint32();b.getUint32()};Mc.prototype={j:function(a){a.Nm.clear()}};var we;we=function(a,b){this.TI=b.getUint32();this.iD=b.getInt16();b.getInt16()};we.prototype={j:function(a){a.getContext().font=a.getState().wi();a.Nm.Qx(this.ka,this.iD,this.TI)}};var bd;bd=function(a,b,c){var d=b.getUint16();this.ka=b.ia(d,!1);we.call(this,a,b,c)};bd.prototype=Object.create(we.prototype);
bd.prototype.constructor=bd;var cd;cd=function(a,b,c){var d=b.getUint16();this.ka=b.ia(d,!0);we.call(this,a,b,c)};cd.prototype=Object.create(we.prototype);cd.prototype.constructor=cd;var Za;Za=function(){this.Rt="";this.Sk=E.m;this.Wt="";this.cl=this.ao=!1;this.ho=E.m;this.Ct=u.m();this.Hj="";this.Yj=0};
Za.prototype={sN:function(a){this.Hj=a},JN:function(a){this.Yj=a},aO:function(a){this.Rt=a},aA:function(a){this.Sk=a},fL:function(){return""===this.Hj||0===this.Yj?!1:!0},lO:function(a){this.Wt=a?location.protocol+"//"+this.Hj+":"+this.Yj:""}};var xe;xe=function(a,b){this.g=a;this.zc=b};
xe.prototype={j:function(){var a=this.g.Xa(),b=this.g.getConfiguration(),c=this.g.ib();c.Bz(b.PlcAddress,b.CommBufferSize,b.UseLocalHost);a.pb(c.kb(),this)},Nb:function(a){a=(new Wb(a,!0,this.g.tb.sb)).Gz();a instanceof na?(this.g.A.lo=a.lo,this.g.K(this.zc,0)):this.g.error("Checking for demo mode failed (1): "+a)},vr:function(){return!1},R:function(a){this.g.error("Checking for demo mode failed (2): "+a)},className:function(){return"CheckDemoModeState"}};var ye;
ye=function(a){this.g=a;this.hq=!0;this.xx=this.pr=0};
ye.prototype={j:function(){var a=this.g.Xa(),b=this.g.ib();b.lK();this.xx=u.m();a.pb(b.kb(),this,!1,!this.hq)},si:function(){return!0},Nb:function(){var a=u.m()-this.xx;this.hq?(this.pr=a,this.hq=!1,this.g.K(this,0)):(v.h(u.h("Deriving post method difference: {0}ms data in body, {1}ms without",this.pr,a)),a<this.pr-20&&(v.m("POST requests will be sent with the data in header because this seems faster"),this.g.lA(!0)),this.g.K(new ze(this.g),0))},R:function(){this.g.error("deriving the best post method failed")},
className:function(){return"DerivingPostMethodState"}};var Ae;Ae=function(a,b,c,d,e,f,g){void 0===g&&(g=null);this.g=a;this.Tm=b;this.Ve=c;this.Va=f;this.lk=e;this.sH=g;this.Ab=d;this.Lx=new ba("utf-8")};
Ae.prototype={j:function(){var a=this.g.Xa(),b=this.g.ib();v.m("DeviceLoginState, executing step: "+this.lk+", cryptType: "+this.Va.ve);2===this.Va.ve?0===this.lk?b.fK(this.Va.ve):b.gK(this.Tm,this.Ve):0===this.lk?b.Jr("","",0,this.Va.ve):b.Jr(this.Tm,this.Ve,this.sH.RB,this.Va.ve);a.pb(b.kb(),this)},Nb:function(a){0===this.lk?this.ZH(a):this.$H(a)},ZH:function(a){var b=(new Wb(a,this.g.A.Fa,this.g.tb.sb)).PL(this.Va.ve,this.Ab);if(b instanceof Qb)if(2===this.Va.ve){var c=this;Nb.J(b.SB).then(function(d){var e=
b.TB,f=c.Lx.encode(c.Ve),g=Math.min(f.byteLength,60),h=new ArrayBuffer(60),k=new Uint8Array(h);f=new Uint8Array(f);var q=new Uint8Array(e);var n=Math.min(e.byteLength,60);for(e=0;60>e;e++)k[e]=0;for(e=0;e<g;e++)k[e]=f[e];for(e=0;e<n;e++)k[e]^=q[e];Nb.m(d,h).then(function(B){var A=c.Tm;60<A.length&&(A=A.substr(0,60));A=c.Lx.encode(A);c.g.K(new Ae(c.g,A,B,c.Ab,1,c.Va,b),0)},function(B){c.R("DeviceLogin failed with the following error: "+B)})},function(d){c.R("DeviceLogin failed with the following error: "+
d)})}else this.g.K(new Ae(this.g,this.Tm,this.Ve,this.Ab,1,this.Va,b),0);else this.R("DeviceLogin failed with the following error: "+b)},$H:function(a){a=(new Wb(a,this.g.A.Fa,this.g.tb.sb)).QL();var b=!1;a instanceof Rb?(a.Vb===E.h?b=!0:63===a.Vb&&r.iB(this.g.getConfiguration())&&(b=!0),b?(this.Ab||(v.m("Successfully Logged in! DeviceSessionId: "+a.fg),this.g.A.dh=a.fg),this.g.A.Wn=!1,63===a.Vb&&(v.m("Successfully Logged with 'Change Password' set"),this.g.A.Wn=!0),this.g.K(new Be(this.g),0)):25===
a.Vb||63===a.Vb?(25===a.Vb?v.m("DeviceLogin failed with the following error: NO_ACCESS_RIGHTS"):v.m("DeviceLogin failed with the following error: ERR_CHANGE_PASSWORD"),this.Va.Error=a.Vb,this.g.K(new nb(this.g,this.Va,this.Ab),0)):this.R("DeviceLogin failed with the following error: "+a.Vb)):this.R("DeviceLogin failed with the following error: "+a.Vb)},R:function(a){this.g.error("Login to the plc device failed: "+a)},className:function(){return"DeviceLoginState Step: "+this.lk+" CryptType: "+this.Va.ve}};
var ze;ze=function(a,b,c){void 0===b&&(b=r.lB(a.getConfiguration()));void 0===c&&(c=!1);this.g=a;this.bI=c;this.Ab=b};
ze.prototype={j:function(){var a=this.g.Xa(),b=this.g.ib();this.Ab?b.iK(this.g):b.Jr();a.pb(b.kb(),this)},Nb:function(a){null!==a||this.bI?(a=(new Wb(a,this.g.A.Fa,this.g.tb.sb)).RL(this.Ab),a instanceof Sb?this.Ab?a.Vb===E.h?(this.kx(a.fg),a.Error===E.h||18===a.Error?this.g.HK()?(a.Error=0,this.g.K(new nb(this.g,a,this.Ab),0),v.m("DeviceLoginState, Skipped")):this.g.K(new Ae(this.g,"","",this.Ab,0,a),0):this.R("DeviceSessionCreate failed with the following error: "+a.Vb+" "+a.Error)):this.R("DeviceSessionCreate failed with the following error: "+
a.Vb):a.Vb===E.h&&a.ve===E.J?(this.kx(a.fg),this.g.K(new Be(this.g),0)):(v.m("Login failed. Probably credentials necessary; result: "+a.Vb),this.g.K(new nb(this.g,a,this.Ab),0)):this.R("DeviceSessionCreate failed with the following error: "+a)):this.g.K(new ze(this.g,!1,!0),0)},kx:function(a){v.m("Successfully Logged in! DeviceSessionId: "+a);this.g.A.dh=a},si:function(){return this.Ab},R:function(a){this.g.error("Login to the plc device failed: "+a)},className:function(){return"DeviceSessionState NewServices: "+
this.Ab}};var pb;pb=function(a){this.g=a};pb.prototype={j:function(){v.info("Trying to reconnect after error");this.g.K(new cb(this.g),0)},className:function(){return"ErrorState"}};var nb;
(function(){var a=[["LoginVisuErr1","Authentication failed, try again"],["LoginVisuErr2","Change password at first login is not supported"],["LoginVisuErr3","Error during authentication"]];nb=function(b,c,d){this.g=b;this.Va=c;this.Ab=d;this.Yh=this.Zh=this.lm="";this.Od=null;this.Md=this.Nd=this.da=0;this.Ue=null;this.wj=12;this.Bc="Arial";this.Ff=this.Se=this.Te=null;this.Ef=[];this.oq=this.Eg=this.Fg=null;this.Gf=[];this.Xp=this.qq=!1;this.Gd=this.hd=4294967295;this.qk=this.Jh=!1;this.mg="";this.yp=
!1;this.Ea=null;this.yx=0;this.Rc=!1;this.Lm="";this.Wh=new N(0,0,0,0);this.Bm=this.bk=0;this.le=1;this.Fe="#909090";this.kf="#000000";this.Kh="#FFFFFF";this.vj="#000000";this.ec=G.m;this.Kx=0;this.De=[];this.ij=0;this.Pp=this.Bw=!1;this.Jj=this.Cg=this.Uw=this.cw=null;this.Kf=new Ce(this.g);""!==this.g.getConfiguration().LoginVisu.toLowerCase()&&(this.Kb=this.g.Rr(),""===this.Kb&&(this.Kb=this.g.getConfiguration().LoginVisuDefLang,""===this.Kb&&(this.Kb=r.dB(),b=this.Kb.split("-"),b.length&&this.g.Kz(b[0],
!0,!1))))};nb.prototype={j:function(){switch(this.da){case 0:this.II();break;case 1:this.LI();break;case 2:this.PF();break;case 3:this.NI();break;case 4:this.KF();break;case 5:this.KI();break;case 6:this.MI();break;case 7:this.HI();break;case 8:this.JI();break;case 9:this.FI();break;case 10:this.GI();break;default:this.um()}},className:function(){return"QueryCredentialsState"},Qn:function(b){this.Lm=b},EN:function(b){this.Te=b},CN:function(b){this.Se=b},BN:function(b){this.Ff=b},Mn:function(b){this.De[this.ij]=
b},$c:function(){return this.De[this.ij]},MM:function(b){this.qq=b},LM:function(b){this.Xp=b},zN:function(b){this.Fg=b},yN:function(b){this.Eg=b},DN:function(b,c){this.Gf.push([b,c])},Xy:function(b){var c;for(c=0;c<this.Gf.length;c++)if(this.Gf[c][0]===b)return this.Gf[c][1];return null},AN:function(b,c){null===this.sn(b)&&this.Ef.push([b,c])},sn:function(b){var c;for(c=0;c<this.Ef.length;c++)if(this.Ef[c][0]===b)return this.Ef[c][1];return null},Pg:function(){return this.Bc},Qg:function(){return this.wj},
Og:function(){return this.vj},wn:function(){return this.ec++},RK:function(){return this.Kx++},EK:function(b,c){var d="";switch(b){case 25:b="LoginVisuErr1";break;case 63:b="LoginVisuErr2";break;default:b="LoginVisuErr3"}var e=this.Jj;null===e&&(e=this.Cg);""!==c&&null!==e&&(c=e.eB(c,b),null!==c&&(d=c));if(""===d)for(c=0;c<a.length;c++)a[c][0]===b&&(d=a[c][1]);return d},Vg:function(b){this.De.push(b)},un:function(b){return 0===this.Wh.D()&&0===this.Wh.C()?b:this.Wh},NK:function(b,c){var d=this.bk;
if(0>this.bk||0>this.Bm)d=Math.max(1,Math.min(b,c)/8);return d},Qk:function(b){this.g.Kz(b,!1,!0)},wD:function(b,c){c=new De(c);c.eC(b);this.Od=c.Od;null!==this.Od&&(this.Nd=c.Nd,this.Md=c.Md,this.Gd=c.Gd,this.hd=c.hd,this.mg=c.mg,this.Jh=c.Jh,this.qk=c.qk,v.h("Login page '"+this.lm+"' is availabe"));this.Rc=!0;this.g.K(this,0)},xD:function(b){this.Cg=new Ee(this.g.getConfiguration().Sf());this.Cg.rt(b);this.Cg.vg&&(v.h("Localized texts file '"+this.Zh+"' is availabe"),b=this.Cg.Cc,null!==b?v.h("Languages found: "+
b.length):v.h("Languages found: 0"));this.Rc=!0;this.g.K(this,0)},vD:function(b){this.Jj=new Ee(this.g.getConfiguration().Sf());this.Jj.rt(b);this.Jj.vg&&(v.h("Localized Error texts file '"+this.Yh+"' is availabe"),b=this.Jj.Cc,null!==b?v.h("Languages found: "+b.length):v.h("Languages found: 0"));this.Rc=!0;this.g.K(this,0)},uD:function(){this.Pp?this.g.Z().$l?this.Bw?this.da=8:(this.Bw=!0,this.Fm(!0),this.da=7):(this.Fm(!0),this.da=7):this.da=8;this.g.K(this,0)},II:function(){var b=this;this.lm=
this.g.getConfiguration().LoginVisu.toLowerCase();""===this.lm?this.Rc=!0:(this.Rc=!1,this.Ep(function(c){b.wD(c,b.g.A.Fa)},this.lm));this.da=1;this.g.K(this,0)},LI:function(){this.Rc&&(this.da=2,this.g.K(this,0))},PF:function(){var b=this;this.Zh=this.g.getConfiguration().LoginVisuTexts.toLowerCase();""===this.Zh?this.Rc=!0:(this.Rc=!1,this.Ep(function(c){b.xD(c)},this.Zh));this.da=3;this.g.K(this,0)},NI:function(){this.Rc&&(this.da=4,this.g.K(this,0))},KF:function(){var b=this;this.Yh=this.g.getConfiguration().LoginVisuErrorTexts.toLowerCase();
""===this.Yh?this.Rc=!0:this.Yh.toUpperCase()===this.Zh.toUpperCase()?(this.Yh=this.Zh,this.Rc=!0):(this.Rc=!1,this.Ep(function(c){b.vD(c)},this.Yh));this.da=5;this.g.K(this,0)},KI:function(){this.Rc&&(this.da=6,this.yx=u.m(),this.g.K(this,0))},MI:function(){this.da=7;0<this.mg.length&&!this.iG(this.mg)&&(this.da=6,5E3<u.m()-this.yx&&(this.Ea=null,this.da=7));this.g.K(this,0)},HI:function(){var b=this;if(null!==this.Od){if(null===this.Ue){var c=this.g.Pd;null!==c&&c.detach();this.Ue=function(){b.uq()};
window.addEventListener("resize",this.Ue,!1)}this.Fm(!1);this.g.Z().jy();this.g.Z().Nz();this.g.Z().kn(this.Od,function(){b.uD()},function(d){return b.ql(d,!1)});this.Kf.xe()}else this.um()},JI:function(){this.qq&&(this.da=10);this.Xp&&(this.da=9);this.g.K(this,0)},FI:function(){var b=this.g.Pd;null!==this.Ue&&(window.removeEventListener("resize",this.Ue,!1),this.Ue=null,null!==b&&b.ur());this.Yo();this.g.Gs("The user did not provide credentials.","No credentials")},GI:function(){var b="",c="",d=
this.g.Pd;null!==this.Ue&&(window.removeEventListener("resize",this.Ue,!1),this.Ue=null,null!==d&&d.ur());null!==this.Te&&(b=this.Te.uc().value);null!==this.Se&&(c=this.Se.uc().value);this.Yo();this.g.uN(this.Kb);this.g.Xz(!1);this.Va.Error=0;this.g.Z().eN();this.g.K(new Ae(this.g,b,c,this.Ab,0,this.Va),0)},ql:function(b,c){this.ij=this.De.length=0;if(this.yp){this.Pp=this.yp=!1;this.g.Z().g.getConfiguration().SemiTransparencyActive=this.qk;this.g.Z().getState().Ik();var d=new N(0,0,this.Nd,this.Md);
var e=new pe(d,this.g.Z());var f=this.hd;this.g.getConfiguration().ScaleTypeIsotropic&&(!1===this.Jh?f=this.Gd:(d=new N(0,0,document.documentElement.clientWidth,document.documentElement.clientHeight),e.aN(d.D()/this.Nd),e.bN(d.C()/this.Md)));e.EM(f);e.FM(this.hd);e.GM(this.Ea);e.$M(this.Jh);this.Vg(new te(new N(0,0,1E4,1E4)));this.Vg(e);this.Vg(b);this.ij=2}else this.Vg(b),this.ij=0;b instanceof kc?(d=new Fe(this.g,this.Va,this),d.ZA(b,c)):b instanceof cc?(this.Wh=b.ic(),this.le=1,this.Fe=b.JK(),
this.kf=b.zK(),this.bk=this.Bm=-1):b instanceof hc?(this.oq=b,this.Wh=b.ic(),0===b._type&&(this.bk=this.Bm=-1)):b instanceof Fc?(this.wj=b.Qg(),this.Bc=b.Pg(),this.vj=b.Og()):b instanceof Nd?(this.wj=b.Qg(),this.Bc=b.Pg(),this.vj=b.Og()):b instanceof dd?(this.bk=b.gz,this.Bm=b.hz):b instanceof Ec?(this.le=b.D(),this.Fe=this.kf=b.ln()):b instanceof Dc?this.Kh=b.ln():b instanceof Ea&&(d=this.g.getConfiguration().LoginVisuNamespace,""!==d&&(c=b.yf,2>=c.split(".").length&&(d+=".",r.qb(c,d)||b.pN(d+c))),
b.jz(this.g.Z().Cj,this.g.Z().zf),this.Wh=b.zA(),this.Pp=!0);this.Uw=this.cw;this.cw=b;return this.De},Yo:function(){null!==this.Te&&(this.Te.remove(),this.Te=null);null!==this.Se&&(this.Se.remove(),this.Se=null);null!==this.Ff&&(this.Ff.remove(),this.Ff=null);null!==this.Fg&&(this.Fg.remove(),this.Fg=null);null!==this.Eg&&(this.Eg.remove(),this.Eg=null);var b;for(b=0;b<this.Gf.length;b++)null!==this.Gf[b][1]&&this.Gf[b][1].remove();this.Gf=[];for(b=0;b<this.Ef.length;b++)null!==this.Ef[b][1]&&this.Ef[b][1].remove();
this.Ef=[];this.Xp=this.qq=!1},Fm:function(b){this.yp=!0;this.ec=G.m;this.Kx=0;b&&this.Yo();this.oD()},Ep:function(b,c){var d=new XMLHttpRequest;d.open("GET",c,!0);d.responseType="arraybuffer";d.timeout=5E3;d.onreadystatechange=function(){d.readyState===XMLHttpRequest.DONE&&(200===d.status?b(d.response):b(null))};d.send()},oD:function(){this.g.Z().Lr(1);if(this.g.getConfiguration().BestFit){var b=this.g.Z().cf();if(!1===this.g.getConfiguration().ScaleTypeIsotropic){var c=b.D()/this.Nd;b=b.C()/this.Md;
this.g.Z().cN()}else{var d=new N(0,0,0,0);var e=b.D()+1;var f=b.C()+1;b=e/2;c=f/2;var g=this.Nd/this.Md;g<e/f?(e=f*this.Nd/this.Md,d.u=0,d.s=b-e/2):(f=e*this.Md/this.Nd,d.u=c-f/2,d.s=0);d.T=d.s+e;d.aa=d.u+f;c=d.D()/this.Nd;b=d.C()/this.Md;c<=b?b=c:c=b;this.g.Z().UN(d);this.g.Z().dN()}this.g.Z().VN(c);this.g.Z().WN(b)}},uq:function(){if(this.Kf.et()){var b=this;this.Fm(!0);this.g.Z().kn(this.Od,function(){},function(c){return b.ql(c,!0)})}this.Kf.xe()},iG:function(b){var c=this.g.Z().Cj;var d=this.g.Z().zf;
if(null===this.Ea){if(c.uz())return this.Ea=c.xi("ImageByImagePoolId?id="+b,!1),this.Ea.Vf();d=d.zi(b);if(null!==d)return this.Ea=c.xi(d,!1),this.Ea.Vf();v.warn("Imagepoolentry for "+b+" not found");return!0}return this.Ea.Vf()},um:function(){(new Ge(this.g,this.Va,this.Ab)).VA()}}})();var He;He=function(a){this.g=a;this.rp=""};
He.prototype={j:function(){var a=this,b;for(b=document.getElementById("cas-script");null!==b;)b.parentNode.removeChild(b),b=document.getElementById("cas-script");b=document.createElement("script");b.id="cas-script";b.onload=function(){a.xk()};b.onerror=function(c){a.R(c)};window.onerror=function(c){a.R(c)};b.src=this.g.getConfiguration().CasFactoryName;document.head.appendChild(b)},xk:function(){""===this.rp&&this.me()},R:function(a){this.rp="Loading the automation server helper script failed for the following reason: "+
a+".";this.g.error(this.rp)},me:function(){this.g.K(new Ie(this.g),0)},className:function(){return"RetrievingAutomationServerScriptState"}};var cb,X;X=function(){};X.eb=function(a){return C.eb(a)};X.J=function(a){a=parseInt(a,10);if(0===a||1===a||2===a)return a;v.info("Unexpected value at the URL configured; only 0..2 are allowed so falling back to default value");return 0};X.h=function(a){return parseInt(a,10)};
X.m=[{Sa:"HandleTouchEvents",Za:"CFG_HandleTouchEvents",type:"boolean",Ta:X.eb},{Sa:"TouchHandlingActive",Za:"CFG_TouchHandlingActive",type:"boolean",Ta:X.eb},{Sa:"BestFit",Za:"CFG_BestFit",type:"boolean",Ta:X.eb},{Sa:"BestFitForDialogs",Za:"CFG_BestFitForDialogs",type:"boolean",Ta:X.eb},{Sa:"LogLevel",Za:"CFG_LogLevel",type:"string",Ta:null},{Sa:"Benchmarking",Za:"CFG_Benchmarking",type:"boolean",Ta:X.eb},{Sa:"WorkaroundDisableMouseUpDownAfterActiveTouch",Za:"CFG_WorkaroundDisableMouseUpDownAfterActiveTouch",
type:"boolean",Ta:X.eb},{Sa:"WorkaroundSetIgnoreTimeMsForMouseUpDownAfterActiveTouch",Za:"CFG_WorkaroundSetIgnoreTimeMsForMouseUpDownAfterActiveTouch",type:"number",Ta:X.h},{Sa:"WorkaroundDisableResizeHandling",Za:"CFG_WorkaroundDisableResizeHandling",type:"boolean",Ta:X.eb},{Sa:"WorkaroundDisableSVGAspectRatioWorkaround",Za:"CFG_WorkaroundDisableSVGAspectRatioWorkaroundg",type:"boolean",Ta:X.eb},{Sa:"WorkaroundDisableSVGEmptySizeWorkaround",Za:"CFG_WorkaroundDisableSVGEmptySizeWorkaround",type:"boolean",
Ta:X.eb},{Sa:"WorkaroundForceSVGEmptySizeWorkaround",Za:"CFG_WorkaroundForceSVGEmptySizeWorkaround",type:"boolean",Ta:X.eb},{Sa:"PostDataInHeader",Za:"CFG_PostDataInHeader",type:"number",Ta:X.J},{Sa:"DebugOnlyPrintPaintCommands",Za:"CFG_DebugOnlyPrintPaintCommands",type:"boolean",Ta:X.eb},{Sa:"DebugHTML5",Za:"CFG_DebugHTML5",type:"boolean",Ta:X.eb},{Sa:"DebugOnlyPrintRawTouches",Za:"CFG_DebugOnlyPrintRawTouches",type:"boolean",Ta:X.eb},{Sa:"DebugOnlyPrintGestures",Za:"CFG_DebugOnlyPrintGestures",
type:"boolean",Ta:X.eb},{Sa:"DebugOnlyPrintTouchRectangles",Za:"CFG_DebugOnlyPrintTouchRectangles",type:"boolean",Ta:X.eb},{Sa:"DebugOnlyDiagnosisDisplay",Za:"CFG_DebugOnlyDiagnosisDisplay",type:"boolean",Ta:X.eb},{Sa:"DefaultConfigurationOnError",Za:"CFG_DefaultConfigurationOnError",type:"boolean",Ta:X.eb},{Sa:"KeysForWebVisu",Za:"CFG_KeysForWebVisu",type:"string",Ta:null},{Sa:"MaxResizePixel",Za:"CFG_MaxResizePixel",type:"number",Ta:X.h},{Sa:"ClientName",Za:"ClientName",type:"string",Ta:null}];
cb=function(a){this.g=a};
cb.prototype={j:function(){var a=this.g.Xa();var b=window.document.URL;b=b.substr(0,b.lastIndexOf("."));a.Zr(b+".cfg.json",this)},xk:function(a){try{var b=this.BH(a);this.xE(b);this.Lw(b);this.g.setConfiguration(b);this.RE(b);this.me()}catch(c){this.R(c)}},xE:function(a){if(a.TouchHandlingActive){var b=r.mB();b||(a.TouchHandlingActive=b,v.info("No multitouch support detected, therefore disabling multitouch for this client."))}},Lw:function(a){var b;for(b=0;b<X.m.length;++b){var c=X.m[b];var d=C.$k(this.g.Of,
c.Za);null!==d&&(d=null!==c.Ta?c.Ta(d):d,a[c.Sa]=d,v.info("Overridden Config Entry: "+c.Sa+" = "+d))}},BH:function(a){try{var b=JSON.parse(a),c=new Configuration,d;for(d in b)void 0!==d&&(c[d]=b[d]);c.validate();return c}catch(e){return this.Cf(e),new Configuration}},R:function(a){var b=this.g.getConfiguration();null===b&&(b=new Configuration,this.Lw(b));b.DefaultConfigurationOnError?(this.Cf(a),this.g.setConfiguration(new Configuration),this.me()):this.g.error(a)},me:function(){this.g.getConfiguration().CasFactoryName?
this.g.K(new He(this.g),0):this.g.K(new Ie(this.g),0)},Cf:function(a){v.error("Loading the configuration failed for the following reason: "+a+". A default config will be used instead.")},className:function(){return"RetrievingConfigurationState"},RE:function(a){v.m("Configuration:");for(var b in a)a.hasOwnProperty(b)&&v.m(u.h(" - {0}: {1}",b,a[b]));a.Benchmarking&&v.info("Benchmarking active")}};var Je;Je=function(a){this.g=a};
Je.prototype={j:function(){var a=this.g.Xa(),b=this.g.ib();b.pM();a.pb(b.kb(),this)},si:function(){return!0},Nb:function(a){null!==a&&(a=(new Wb(a,!0,this.g.tb.sb)).VL(),""!==a&&(this.g.A.qo=a));this.g.K(this.sE(),0)},sE:function(){if(this.g.A.qC){if(0===this.g.getConfiguration().PostDataInHeader)return new ye(this.g);1===this.g.getConfiguration().PostDataInHeader&&(v.info("POST-Data in header active by override"),this.g.lA(!0))}1===this.g.getConfiguration().PostDataInHeader&&v.warn("POST-Data in header active by override but not supported by Webserver");
return new ze(this.g)},R:function(a){this.g.error("Retrieving IP Info failed: "+a)},className:function(){return"RetrievingMyIpState"}};var Ke;Ke=function(a){this.g=a};
Ke.prototype={j:function(){var a=this.g.Xa(),b=this.g.getConfiguration(),c=this.g.ib();c.Bz(b.PlcAddress,b.CommBufferSize,b.UseLocalHost);a.pb(c.kb(),this)},si:function(){return!0},Nb:function(a){null===a?this.g.K(this,this.g.getConfiguration().PollingRegistrationInterval):(a=(new Wb(a,!0,this.g.tb.sb)).Gz(),a instanceof na?(v.m("Successfully connected! SessionId: "+a.fg+" IntelByteOrder: "+a.Fa),this.g.OM(a),this.g.Dc?this.g.K(new Be(this.g),0):this.g.K(new Je(this.g),0)):this.g.error("Connection failed: "+
a))},R:function(a){this.g.error("Starting to connect failed: "+a)},className:function(){return"StartConnectState"}};var Le;Le=function(a){this.g=a};
Le.prototype={j:function(){var a=this.g.Xa(),b=this.g.getConfiguration();a.Zr(u.to((b.Application+".nativeelements.json").toLowerCase()),this)},xk:function(a){try{this.g.Tb.fill(a)}catch(b){this.Cf(b)}this.me()},R:function(a){this.Cf(a);this.me()},me:function(){this.g.K(new Ke(this.g),0)},Cf:function(a){v.error("Loading the native element list failed for the following reason: "+a+". Native elements will not work at all.")},className:function(){return"UpdateNativeElementsState"}};var Ie;
Ie=function(a){this.g=a};Ie.prototype={j:function(){var a=this.g.Xa(),b=this.g.getConfiguration();a.Zr(u.to((b.Application+".imagepoolcollection.csv").toLowerCase()),this)},xk:function(a){try{this.g.Z().zf.fill(a)}catch(b){this.Cf(b)}this.me()},R:function(a){this.Cf(a);this.me()},me:function(){this.g.K(new Le(this.g),0)},Cf:function(a){v.error("Loading the imagepool failed for the following reason: "+a+". Images will not work at all.")},className:function(){return"UploadImagePoolState"}};var re;
re=function(a,b){this.g=a;this.zc=b;this.i=this.g.i};
re.prototype={j:function(){if(null===this.i)this.g.K(this.zc,0);else{if(3===this.i.direction){var a=u.m();if(a-this.i.Uz<this.g.getConfiguration().UpdateRate){this.g.K(this.zc,0);return}}if(this.i.status.Ob===V.m){var b=K.Ya;3===this.i.direction&&(b=K.va);b=new m(b,this.g.A.la,0,1);this.g.Ki(null);this.g.K(this.zc,0);this.g.vb.push(b)}else if(this.i.status.Ob===V.h)3!==this.i.direction&&(b=this.fE(this.i)),this.g.Ki(null),this.g.K(this.zc,0),3!==this.i.direction&&this.g.vb.push(b);else if(1!==this.i.direction&&
0!==this.i.direction||this.i.status.result===E.h&&!this.i.status.Vd||this.i.status.Ob===V.Ya){if(1===this.i.direction||3===this.i.direction){if(this.i.status.oe){this.i.status.oe=!1;this.um(this.i);this.g.K(this.zc,0);return}if(1===this.i.direction){if(this.i.status.Ob!==V.Fb&&(this.i.status.ud||this.i.status.Wd)){b=this.g.Xa();a=this.g.ib();this.i.status.ud?(0<(this.i.wc.yc&4)&&this.jA(this.i),0<(this.i.wc.yc&8)?(a.XJ(this.i),this.i.status.Ob=V.J):a.sy(this.i)):this.i.status.Wd&&a.qy(this.i);b.pb(a.kb(),
this);return}}else if(this.i.status.ud||this.i.status.Wd){null!==this.i.Db&&(window.document.body.removeChild(this.i.Db),this.i.Db=null);this.i.status.ud?(this.jA(this.i),b=this.eE(this.i),this.i.status.ud=!1,this.i.status.Wd=!0,this.g.vb.push(b),b=new m(532,this.g.A.la,this.i.buffer.size(),0)):b=this.dE(this.i);this.g.K(this.zc,0);this.g.vb.push(b);this.i.Uz=u.m();return}}else if(0===this.i.direction){if(this.i.status.oe||this.i.status.Wd){b=this.g.Xa();a=this.g.ib();this.i.status.oe?a.sy(this.i):
this.i.status.Wd&&a.qy(this.i);b.pb(a.kb(),this);return}}else if(2===this.i.direction){if(this.i.status.oe){this.i.status.oe=!1;b=this.cE(this.i);this.g.K(this.zc,0);this.g.vb.push(b);return}if(this.i.status.Vd&&this.i.status.Ob!==V.h){b=r.mt();this.g.K(this.zc,b);this.Qz(this.i);return}}this.g.K(this.zc,0)}else b=this.g.Xa(),a=this.g.ib(),a.YJ(this.i),b.pb(a.kb(),this),this.i.status.Vd=!0,this.i.status.Ob=V.Ya,this.i.status.result!==E.h&&(this.i.status.Ob=V.h)}},Nb:function(a){var b=!1;null!==a||
0!==this.i.direction&&1!==this.i.direction?(a=new Wb(a,this.g.A.Fa,this.g.tb.sb),this.i.status.Vd&&this.i.status.Ob!==V.h?(b=r.mt(),a.SL(this.i),this.g.K(this.zc,b),this.Qz(this.i)):(0===this.i.direction?this.i.status.oe?(this.i.status.oe=!1,a.es(this.i),this.i.status.result===E.h&&(this.i.status.Wd=b=!0)):this.i.status.Wd&&a.Fz(this.i):this.i.status.Ob===V.J?(this.i.status.oe=!1,a.es(this.i),this.i.status.result===E.h&&0<this.i.lh.Zd?(null!==this.i.Db&&window.document.body.removeChild(this.i.Db),
this.i.status.Ob=V.Fb,this.qH(this.i)):(this.i.status.result=0,this.i.status.Ob=V.va,this.i.status.ud=!0,this.i.wc.yc=this.i.wc.yc&-5,this.i.wc.yc&=-9)):this.i.status.ud?(a.es(this.i),this.i.status.ud=!1,this.i.status.result===E.h?this.i.status.Wd=b=!0:(null!==this.i.Db&&window.document.body.removeChild(this.i.Db),this.i.Db=null)):this.i.status.Wd&&a.Fz(this.i),this.g.K(this.zc,0),b&&(a=new m(K.Ya,this.g.A.la,this.i.Ns,this.i.status.result),this.g.vb.push(a),1===this.i.direction&&(null!==this.i.Db&&
window.document.body.removeChild(this.i.Db),this.i.Db=null)))):(null!==this.i.Db&&(window.document.body.removeChild(this.i.Db),this.i.Db=null),a=new m(528,this.g.A.la,this.i.Ns,7),this.g.Ki(null),this.g.K(this.zc,0),this.g.vb.push(a))},si:function(){return!0},jA:function(a){var b,c;var d=a.Ug.split("/");var e=a.Ez.split("/");if(0<d.length&&0<e.length){for(c=0;c<d.length-1;++c)0===c?b=d[c]:b=b+"/"+d[c];void 0!==b?b=b+"/"+e[e.length-1]:b=e[e.length-1];a.Ug=b}},Qz:function(a){var b=null,c=this.eK();
null===a.buffer||0!==a.direction&&2!==a.direction||(b=a.buffer.wd());null!==this.i.Db&&window.document.body.removeChild(a.Db);a.status.Ob=V.h;null!==b&&a.status.result===E.h&&(b=new Blob([b],{type:"application/octet-binary"}),a=a.Ug,a=a.split("/"),a=a[a.length-1],c?this.kK(b,a):this.download(b,a))},kK:function(a,b){window.navigator.msSaveBlob(a,b)},eK:function(){var a=window.navigator.userAgent,b=a.indexOf("Trident/");return 0<a.indexOf("MSIE ")?!0:0<b?!0:!1},download:function(a,b){var c=window.document.createElement("a");
c.setAttribute("href",window.URL.createObjectURL(a));c.setAttribute("download",b);window.document.createEvent?(a=document.createEvent("MouseEvents"),a.initEvent("click",!0,!0),c.dispatchEvent(a)):c.click()},vr:function(){return!0},R:function(a){this.g.error("Error while processing the visualization: "+a)},className:function(){return"VisuFileTransferState"},vl:function(a){var b=window.document.createElement("p");b.textContent=a;return b},ee:function(a,b,c){var d=window.document.createElement("input");
d.className="fileTransferButton";d.type=b;null!==a?d.value=a:(d.style.display="none",null!==c&&null!==c.wc&&0<c.wc.Aj&&(d.accept=re.h(c.wc.Aj,c.wc.Ko)));return d},um:function(a){var b=window.document.createElement("div"),c=window.document.createElement("div"),d=window.document.createElement("div"),e=window.document.createElement("div"),f=window.document.createElement("div"),g=this.ee(null,"file",a),h=this.ee("Browse...","button",a);a=this.ee("Cancel","button",a);var k=this.vl("Choose file to transfer..."),
q=this.vl("File Transfer"),n=this;b.id="visuFileTransfer";b.className="fileTransferDialog";c.className="fileTransferDialogContent";d.className="fileTransferDialogHeader";e.className="fileTransferDialogBody";f.className="fileTransferDialogFooter";g.addEventListener("change",function(B){n.XF(B,b)},!1);a.addEventListener("click",function(){n.Gg(b)},!1);h.addEventListener("click",function(){g.click()},!1);d.appendChild(q);e.appendChild(k);f.appendChild(g);f.appendChild(a);f.appendChild(h);c.appendChild(d);
c.appendChild(e);c.appendChild(f);b.appendChild(c);window.document.body.appendChild(b);this.i.Db=b},qH:function(a){a.xz?window.confirm("The file already exists in the plc.\nDo you want to overwrite the file?")?this.zw(null):this.Gg(null):this.rH(a)},rH:function(a){var b=window.document.createElement("div"),c=window.document.createElement("div"),d=window.document.createElement("div"),e=window.document.createElement("div"),f=window.document.createElement("div"),g=this.ee("Ok","button",a);a=this.ee("Cancel",
"button",a);var h=this.vl("The file already exists in the plc.\nDo you want to overwrite the file?"),k=this.vl("File Transfer"),q=this;b.id="visuFileTransfer";b.className="fileTransferDialog";c.className="fileTransferDialogContent";d.className="fileTransferDialogHeader";e.className="fileTransferDialogBody";f.className="fileTransferDialogFooter";a.addEventListener("click",function(){q.Gg(b)},!1);g.addEventListener("click",function(){q.zw(b)},!1);d.appendChild(k);e.appendChild(h);f.appendChild(a);f.appendChild(g);
c.appendChild(d);c.appendChild(e);c.appendChild(f);b.appendChild(c);window.document.body.appendChild(b);this.i.Db=b},XF:function(a){re.m(a,this.g)},ru:function(a,b){var c=this.g.Z().cf();return new t((c.s+c.T-a)/2,(c.u+c.aa-b)/2)},Gg:function(a){var b=this.g.i;null!==b&&(b.status.Ob=V.m);null!==a&&window.document.body.removeChild(a)},zw:function(a){null!==this.g.i&&(this.i.status.Ob=V.va,this.i.wc.yc=this.i.wc.yc&-5,this.i.wc.yc&=-9);null!==a&&(window.document.body.removeChild(a),this.i.Db=null)},
fE:function(a){var b=this.g.A.CommBufferSize-2E3,c=p.B(b+4),d=P.B(c,!0),e=d.cb(a.Ug,!1);b=e.length();d.Ub(e);a=new m(528,this.g.A.la,a.Ns,a.status.result);0<b&&a.Eb(c);return a},dE:function(a){var b=0;var c=this.g.A.CommBufferSize-2E3,d=p.B(c+4),e=P.B(d,!0),f;a.buffer.size()-a.status.$g<c&&(c=a.buffer.size()-a.status.$g,a.status.Ob=V.h,b=1);e.I(c);for(f=0;f<c;f++)e.Na(a.buffer.getUint8());b=new m(530,this.g.A.la,b,0);b.Eb(d);a.status.$g+=c;return b},eE:function(a){var b=this.g.A.CommBufferSize-2E3;
var c=p.B(b+4),d=P.B(c,!0);a=d.cb(a.Ug,!1);b=a.length();d.I(b);d.Ub(a);b=new m(530,this.g.A.la,2,0);b.Eb(c);return b},cE:function(a){var b=p.B(20);var c=P.B(b,!0);var d=c.cb("DummyFileName",!1);c.Ub(d);c=new m(K.va,this.g.A.la,0,0);c.Eb(b);a.status.ud=!0;return c}};re.h=function(a,b){var c,d;for(d=0;d<a;++d){var e=b[d];e=e.split("|");"*.*"!==e[1]&&(0===d?c=e[1].substr(1):c=c+","+e[1].substr(1))}return c};
re.m=function(a,b){var c=new FileReader,d=b.i;c.onload=function(e){re.J(e,b)};null!==d&&void 0!==d&&(d.Ez=a.target.files[0].name,c.readAsArrayBuffer(a.target.files[0]))};re.J=function(a,b){var c=b.i;c.buffer=O.B(a.target.result,b.A.Fa,b.tb.sb);c.status.ud=!0};var Me;Me=function(a,b){this.g=a;this.Om=b};
Me.prototype={j:function(){var a=this.g.Xa(),b=this.g.ib(),c=new m(3145728,this.g.A.la,0,0),d=p.B(32),e=P.B(d,!0),f=e.cb(this.Om,!1);e.I(1);e.Ub(f);c.Eb(d);b.Mi(c);a.pb(b.kb(),this);v.h("Redundancy, request for the ID with ticket:"+this.Om)},Nb:function(a){a=(new Wb(a,this.g.A.Fa,this.g.tb.sb)).Hi(null);a instanceof ra?a.Uf()?(this.g.Lb.aA(E.m),this.g.Lb.Ct=u.m(),this.g.K(new Ne(this.g),0)):this.R("Unexpected paint result in "+this.className()):this.R(a)},R:function(a){this.g.error("Error during redundancy initializing (1) the visualization: "+
a)},className:function(){return"VisuOnlineInitRedundState1"}};var Ne;Ne=function(a){this.g=a};
Ne.prototype={j:function(){var a=this.g.Xa(),b=this.g.ib(),c=new m(1048576,this.g.A.la,0,0);b.Mi(c);a.pb(b.kb(),this)},Nb:function(a){a=(new Wb(a,this.g.A.Fa,this.g.tb.sb)).Hi(null);var b=this;a instanceof ra?a.Uf()?(this.g.Lb.ao=!0,this.g.Z().kn(a,function(){var c=b.g.Lb;c.Sk===E.m?7E3>u.m()-c.Ct?b.g.K(b,10):b.R("Timeout on receiving command in "+b.className()):(v.h("Redundancy, ID to use, ID :"+c.Sk),v.h("Redundancy, ID to remove, ID :"+b.g.A.la),c.ho=b.g.A.la,b.g.A.la=c.Sk,c.ao=!1,b.g.K(new Oe(b.g),
0))})):this.R("Unexpected paint result in "+this.className()):this.R(a)},R:function(a){this.g.error("Error during redundancy initializing (2) the visualization: "+a)},className:function(){return"VisuOnlineInitRedundState2"}};var Oe;Oe=function(a){this.g=a};
Oe.prototype={j:function(){var a=this.g.Xa(),b=this.g.ib();b.Ms(this.g.Lb.ho);a.pb(b.kb(),this)},Nb:function(a){a=(new Wb(a,this.g.A.Fa,this.g.tb.sb)).YL();0===a?(v.h("Redundancy, Client removed:"+this.g.Lb.ho),v.m("Start normal machine state after redundancy switchover, ID: "+this.g.A.la),this.g.K(new Pe(this.g),0)):this.R(a)},R:function(a){this.g.error("Error during redundancy initializing (3) the visualization: "+a)},className:function(){return"VisuOnlineInitRedundState3"}};var Pe;
Pe=function(a){this.g=a};
Pe.prototype={j:function(){var a=this.g.Xa(),b=this.g.ib(),c=m.va(this.g.A.la,this.g.getConfiguration().BestFit,this.g.getConfiguration().BestFitForDialogs,this.g.getConfiguration().ScaleTypeIsotropic,this.g.Z().cf(),this.g.Z().lp,this.g.getConfiguration().FillBackground);b.Mi(c);a.pb(b.kb(),this)},Nb:function(a){a=(new Wb(a,this.g.A.Fa,this.g.tb.sb)).Hi(null);a instanceof ra?!a.Uf()||0<a.pg?this.R("Unexpected paint result in "+this.className()):this.g.K(new Qe(this.g),0):this.R(a)},R:function(a){this.g.error("Error during initializing (1) the visualization: "+
a)},className:function(){return"VisuOnlineInitState1"}};var Qe;Qe=function(a){this.g=a};
Qe.prototype={j:function(){var a=this.g.Xa(),b=this.g.ib(),c=new m(1048576,this.g.A.la,0,0),d=p.B(16),e=P.B(d,!0),f=this.g.getConfiguration(),g=this.g.aw;var h=458752;""!==g&&(h|=524288);e.I(h);e.I(7);h=0;f.HasKeyboard&&(h|=24);f.TouchHandlingActive&&(h|=3);this.g.A.Wn&&(h|=128);e.I(h|256);""!==g&&(f=e.cb(g,!1),e.Ub(f));c.Eb(d);b.Mi(c);a.pb(b.kb(),this)},Nb:function(a){a=(new Wb(a,this.g.A.Fa,this.g.tb.sb)).Hi(null);a instanceof ra?!a.Uf()||0<a.pg?this.R("Unexpected paint result in "+this.className()+
", complete: "+a.Uf()+", commands: "+a.pg):this.g.K(new Re(this.g),0):this.R(a)},R:function(a){this.g.error("Error during initializing (2) the visualization: "+a)},className:function(){return"VisuOnlineInitState2"}};var Re;Re=function(a){this.g=a};
Re.prototype={j:function(){var a=this.g.Xa(),b=this.g.ib(),c=new m(1048576,this.g.A.la,0,0),d=p.B(32),e=P.B(d,!0);if(!1===this.g.Lb.cl)if(e.I(1),""!==this.g.getConfiguration().StartVisu){var f=e.cb(this.g.getConfiguration().StartVisu,!1);e.Ub(f)}else""!==this.g.getConfiguration().StartVisuDefaultEncodingBase64&&window.atob&&(f=window.atob(this.g.getConfiguration().StartVisuDefaultEncodingBase64),f=e.cb(f,!1),e.Ub(f));else e.I(2),e.Na(0);c.Eb(d);b.Mi(c);a.pb(b.kb(),this)},Nb:function(a){var b=(new Wb(a,
this.g.A.Fa,this.g.tb.sb)).Hi(null);a=!1;if(b instanceof ra)if(!b.Uf()||0<b.pg)this.R("Unexpected paint result in "+this.className()+", complete: "+b.Uf()+", commands: "+b.pg);else{!0===this.g.Lb.cl&&(this.g.Lb.cl=!1,a=!0);b=location.search;var c="&BRLG";r.qb(b,c)&&(b=b.replace(c,""),a=!0);c="&RLLG";r.qb(b,c)&&(b=b.replace(c,""),a=!0);c="&"+G.h;r.qb(b,c)?(b=b.replace(c,""),a=!0):(c=G.h,r.qb(b,c)&&(b=b.replace(c,""),a=!0));c="&CFG_Lang="+this.g.Rr();r.qb(b,c)?(b=b.replace(c,""),a=!0):(c="CFG_Lang="+
this.g.Rr(),r.qb(b,c)&&(b=b.replace(c,""),a=!0));"?"===b&&(b="");a&&"TRACE"!==this.g.getConfiguration().LogLevel&&(history.replaceState(null,"",location.pathname+b),window.document.title="");this.g.K(new Se(this.g),0)}else this.R(b)},R:function(a){this.g.error("Error during initializing (3) the visualization: "+a)},className:function(){return"VisuOnlineInitState3"}};var Se;Se=function(a){this.g=a;this.zh=null;this.dw=u.m();this.g.XM(new Xb);this.mr=!1;this.qv=!0;this.zq=!1;this.De=[]};
Se.prototype={j:function(){var a=this.g.Xa(),b=this.g.ib(),c=this.g.Z().Cj;this.JD(c);null===this.zh?(c=this.g.vb.empty()?new m(1,this.g.A.la,0,0):this.g.vb.pop(),c.$j?(this.zq=!0,b.zO(c)):(this.zq=!1,b.Mi(c))):b.xO(this.zh.ep);this.sI=u.m();a.pb(b.kb(),this)},vr:function(){return null===this.zh&&!this.mr},Nb:function(a){if(this.zq)this.g.K(this.vv(),this.Tu());else{a=(new Wb(a,this.g.A.Fa,this.g.tb.sb)).Hi(this.zh);var b=this;a instanceof ra?a.Uf()?(this.zh=null,this.qv&&(this.g.Z().jy(),this.qv=
!1),this.mr=!0,this.g.Z().kn(a,function(){b.mr=!1;b.g.K(b.vv(),b.Tu())},function(c){return b.ql(c)}),this.g.xe()):(this.zh=a,this.g.K(this,0)):this.R(a)}},vv:function(){return!this.g.A.lo&&4E3<=u.m()-this.dw?(this.dw=u.m(),new xe(this.g,this)):null!==this.g.i?new re(this.g,this):this},Tu:function(){var a=this.g.vb;if(null!==this.g.i&&3===this.g.i.direction)return this.g.getConfiguration().UpdateRate;if(a.empty()&&null===this.g.i){var b=u.m(),c=this.g.getConfiguration().UpdateRate;a=b-a.fw;return 0<=
a&&a<Math.min(2*c,500)?Math.max(10,c/5):Math.max(10,c-(b-this.sI))}return 0},JD:function(a){a.MJ()},R:function(a,b){var c=!1,d=!1,e="";"number"===typeof b?b>=H.h&&100>=b&&(d=!0,e="Err="+b):"Client id not present or no longer valid"===a?(d=!0,e="Err=1000"):"Unexpected format of service: 6"===a&&(d=!0,e="Err=1001");d&&this.g.Lb.fL()&&(this.g.Lb.lO(!0),b=this.g.Lb.Wt,b+=location.pathname,b+=location.search,b+="#CKT="+this.g.Lb.Rt,"TRACE"===this.g.getConfiguration().LogLevel&&(b+="#"+e),location.assign(b),
c=!0);!1===c&&("Unexpected format of service: 6"===a?this.g.Lz():this.g.error("Error while processing the visualization: "+a))},ql:function(a){var b=-1;this.g.sa&&(b=this.g.Ih.gm);return-1!==b?(this.De.length=0,this.Ww(a),a instanceof tc&&(a=a.ic(),b=this.g.lv.B(b,a),void 0!==b&&null!==b&&this.Ww(b),this.g.Ih.lC()),this.De):null},Ww:function(a){this.De.push(a)},className:function(){return"VisuOnlineState"}};var Te;Te=function(a){this.g=a;this.cI=0};
Te.prototype={j:function(){var a=this.g.Xa(),b=this.g.ib();b.yO(this.g.A.la);a.pb(b.kb(),this)},Nb:function(a){a=(new Wb(a,this.g.A.Fa,this.g.tb.sb)).WL();"number"===typeof a?0===a?(v.m("Successfully finished visu registration: "+this.g.A.la),a=this.g.$y(),""!==a?(this.g.Lb.cl=!0,this.g.K(new Me(this.g,a),0)):this.g.K(new Pe(this.g),0)):1===a?(0===this.cI++%20&&v.info("Still polling the registration of the visualization. Is the visu stopped?"),this.g.K(this,this.g.getConfiguration().PollingRegistrationInterval)):
this.R("Unexpected return value: "+a):"The maximum number of visualization clients is already connected. Please try again later."===a||"Not enough memory in the PLC to create the client."===a?this.rK(a):this.R(a)},R:function(a){this.g.error("Visu registration in the plc failed: "+a)},rK:function(a){this.g.error(a)},className:function(){return"VisuPollingRegistrationState"}};var Be;Be=function(a){this.g=a};
Be.prototype={j:function(){var a=this.g.Xa(),b=this.g.ib(),c=this.g.getConfiguration();b.AO(c.Application,c.ClientName,this.g.A.qo,this.g.Dc);a.pb(b.kb(),this)},Nb:function(a){a=(new Wb(a,this.g.A.Fa,this.g.tb.sb)).XL();"number"===typeof a?(v.m("Successful first visu registration step: "+a),this.g.A.la=a,window.ProgrammingSystemAccess&&window.ProgrammingSystemAccess.notifyValidExternId(a),this.g.getConfiguration().CasFactoryName&&this.vk(),a=new Te(this.g),this.g.K(a,this.g.getConfiguration().PollingRegistrationInterval)):
"no rights"===a?this.g.Lz():this.R(a)},R:function(a){this.g.error("Visu registration in the plc failed: "+a)},className:function(){return"VisuRegistrationState"},vk:function(){var a=this.g.A;if(null!==a&&a.la!==E.m&&(a.dh!==E.va||this.Dc)){var b=this.g.ib(a);b.Ms(a.la);this.g.Xa().vk(b.kb())}}};var Ge;Ge=function(a,b,c){this.g=a;this.Va=b;this.Ab=c};
Ge.prototype={VA:function(){var a=window.document.createElement("div"),b=this.ee("Ok"),c=this.ee("Cancel"),d=this.iE(),e=this;b.addEventListener("click",function(){e.nH(a,d.username,d.password)},!1);c.addEventListener("click",function(){e.Gg(a)},!1);a.style.boxShadow=a.style.WebkitBoxShadow="2px 2px 6px 6px rgba(0,0,0,0.5)";a.align="center";a.appendChild(d.form);a.appendChild(b);a.appendChild(c);window.document.body.appendChild(a);u.cd(a,this.ru(300,200));a.style.zIndex=300;a.style.backgroundColor=
"#d4d0c8";d.username.focus()},iE:function(){var a=window.document.createElement("table"),b=window.document.createElement("input"),c=window.document.createElement("input"),d=window.document.createElement("form");b.autocomplete="username";c.type="password";c.autocomplete="current-password";a.border="0";a.appendChild(this.Lu("Username: ",b));a.appendChild(this.Lu("Password: ",c));d.appendChild(a);return{form:d,table:a,username:b,password:c}},Lu:function(a,b){var c=window.document.createElement("tr"),
d=window.document.createElement("td");d.appendChild(window.document.createTextNode(a));c.appendChild(d);d=window.document.createElement("td");d.appendChild(b);c.appendChild(d);return c},ru:function(a,b){var c=this.g.Z().cf();return new t((c.s+c.T-a)/2,(c.u+c.aa-b)/2)},Bu:function(a){window.document.body.removeChild(a)},nH:function(a,b,c){this.Bu(a);this.g.Xz(!1);this.Va.Error=0;this.g.K(new Ae(this.g,b.value,c.value,this.Ab,0,this.Va),0)},Gg:function(a){this.g.Gs("The user did not provide credentials.",
"No credentials");this.Bu(a)},ee:function(a){var b=window.document.createElement("input");b.type="button";b.value=a;return b}};var Ee;Ee=function(a){this.Yb=this.jd=null;this.ga=!0;this.tH=a;this.ol=null;this.vg=this.li=!1;this.Cc=null;this.Zj=-1;this.nq=0};
Ee.prototype={rt:function(a){var b;if(null!==a){if(this.ol=a)this.jd=new Uint8Array(this.ol),this.Yb=new rb(this.ol,this.ga,this.tH),65279===this.Yb.getUint16()&&(this.li=!0),this.vg=!0;a=this.LF();if(null!==a&&(a=a.split(";"),2<=a.length&&(this.nq=a.length,"ID"===a[0].toUpperCase()&&"DEFAULT"===a[1].toUpperCase()&&2<a.length)))for(this.Cc=[],b=2;b<a.length;b++)this.Cc.push(a[b])}},fB:function(a,b,c,d){var e=null,f,g=a.toUpperCase();if(this.vg&&-1!==this.Zj&&null!==this.Cc){for(a=0;a<this.Cc.length&&
this.Cc[a].toUpperCase()!==g;a++);if(0<=a&&a<this.Cc.length){d?f=b:f="$"+b+"$";for(this.Yb.seek(this.Zj);;){b=this.Bv();if(null===b)break;b=b.split(";");if(b.length===this.nq&&(d=!1,c?r.uC(b[1],f)&&(d=!0):b[1]===f&&(d=!0),d)){e=b[2+a];break}}if(null!==e&&r.qb(e,"$"))for(b=e.split("$"),e="",c=0;c<b.length;c++)e=e.concat("",b[c])}}return e},eB:function(a,b){var c=null;var d=a.toUpperCase();if(this.vg&&-1!==this.Zj&&null!==this.Cc){for(a=0;a<this.Cc.length&&this.Cc[a].toUpperCase()!==d;a++);if(0<=a&&
a<this.Cc.length)for(this.Yb.seek(this.Zj);;){d=this.Bv();if(null===d)break;d=d.split(";");if(d.length===this.nq&&d[0]===b){c=d[2+a];break}}}return c},LF:function(){var a=null;if(this.vg){this.Yb.seek(this.li?2:0);var b=this.zv();-1!==b&&(a=this.yv(b),this.Zj=this.Yb.fa())}return a},Bv:function(){var a=null;if(this.vg){var b=this.zv();-1!==b&&(a=this.yv(b))}return a},yv:function(a){a=this.Yb.ia(a,this.li);var b=this.Yb.fa();b=this.li?b+4:b+2;this.Yb.seek(b);return a},zv:function(){for(var a=this.Yb.fa(),
b=-1,c;!this.Yb.bf();)if(c=this.Ul(),"\r"===c){this.Yb.bf()||(c=this.Ul(),"\n"===c&&(b=this.Yb.fa()-a,this.li?(b-=4,b/=2):b-=2,this.Yb.seek(a)));break}return b},Ul:function(){return this.li?String.fromCharCode(this.Yb.getUint16()):String.fromCharCode(this.Yb.getUint8())},className:function(){return"LocalizedTextsFileRead"}};var De;De=function(a){this.Od=null;this.Md=this.Nd=0;this.Gd=this.hd=4294967295;this.mg="";this.qk=this.Jh=!1;this.ga=a};
De.prototype={eC:function(a){var b=0;this.Od=null;if(null!==a&&a){var c=new DataView(a);if(14<c.byteLength){var d=c.getUint8(b);b+=2;if(1===d&&(d=c.getUint8(b),1===d&&!0===this.ga||0===d&&!1===this.ga)){b+=2;this.Nd=c.getUint16(b,this.ga);this.Md=c.getUint16(b+2,this.ga);b+=4;var e=c.getUint8(b);d=c.getUint8(b+1);var f=c.getUint8(b+2);var g=c.getUint8(b+3);b+=4;this.Gd=e<<24;this.Gd|=d<<16;this.Gd|=f<<8;this.Gd|=g;e=c.getUint8(b);d=c.getUint8(b+1);f=c.getUint8(b+2);g=c.getUint8(b+3);b+=4;this.hd=
e<<24;this.hd|=d<<16;this.hd|=f<<8;this.hd|=g;d=c.getUint16(b,this.ga);b+=2;if(0<d){f=Array(d);for(e=0;e<d;e++)f[e]=c.getUint8(b),b+=1;this.mg=String.fromCharCode.apply(null,f)}else this.mg="";e=c.getUint16(b,this.ga);b+=2;this.Jh=e&1?!0:!1;this.qk=e&2?!0:!1;e=c.getUint16(b,this.ga);b+=2;c=c.getUint32(b,this.ga);b+=4;this.Od=new ra(e,c,0);this.Od.wd().an(a,b,c);this.Od.finish();v.h("The paintbuffer of the login page has been read from the file, command: "+e+", dataSize: "+c)}}}},className:function(){return"PaintBufferFileRead"}};
var Fe;Fe=function(a,b,c){this.g=a;this.Va=b;this.$=c;this.kj=""};
Fe.prototype={ZA:function(a,b){var c=a.ka,d=this,e=!1,f=a.ic(),g=null;var h=null;var k=this.$;k.Qn("");this.kj="";h=this.Ph(c,"$USERNAME_PH$");var q=this.Ph(c,"$USERNAME_STAR_PH$");if("$USERNAME$"===c||"$USERNAME_STAR$"===c||"$USERNAME_PH$"===h||"$USERNAME_STAR_PH$"===q){var n="";"$USERNAME_PH$"===h&&(n=this.Ne(k.Kb,h,!0,!1));"$USERNAME_STAR_PH$"===q&&(n=this.Ne(k.Kb,q,!0,!1));null!==n&&""!==n&&k.Qn(n);null===k.Te?(g=this.Sw(f,"$USERNAME_STAR$"===c||"$USERNAME_STAR_PH$"===q,a),k.EN(g)):b&&(k.Te.ue(f),
g=k.Te);null!==g&&(k.Mn(g),e=!0)}if(!1===e){h=this.Ph(c,"$PASSWORD_PH$");q=this.Ph(c,"$PASSWORD_CLEARTEXT_PH$");if("$PASSWORD$"===c||"$PASSWORD_CLEARTEXT$"===c||"$PASSWORD_PH$"===h||"$PASSWORD_CLEARTEXT_PH$"===q)n="","$PASSWORD_PH$"===h&&(n=this.Ne(k.Kb,h,!0,!1)),"$PASSWORD_CLEARTEXT_PH$"===q&&(n=this.Ne(k.Kb,q,!0,!1)),null!==n&&""!==n&&k.Qn(n),null===k.Se?(g=this.Sw(f,"$PASSWORD$"===c||"$PASSWORD_PH$"===h,a),k.CN(g)):b&&(k.Se.ue(f),g=k.Se);null!==g&&(k.Mn(g),e=!0)}if(!1===e){h=this.Dp(c,"$LANG_SELECTOR$");
if("$LANG_SELECTOR$"===c||"$LANG_SELECTOR$"===h)null===k.Ff?(g=this.EH(f,a),g.uc().addEventListener("change",function(){var J=d.$.Ff;null!==J&&(J=J.uc().value,d.$.Qk(J))},!1),k.BN(g)):b&&(k.Ff.ue(f),g=k.Ff);null!==g&&(k.Mn(g),e=!0)}if(!1===e&&(h=this.Dp(c,"$LANG$"),q=this.Dp(c,"$LANG_DEF$"),"$LANG$"===c||"$LANG$"===h||"$LANG_DEF$"===c||"$LANG_DEF$"===q)){if(""===this.kj)n=G.va;else{n=this.kj;var B="";h=c.split("$");5===h.length&&(B=h[3])}null===k.sn(n)?(("$LANG_DEF$"===c||"$LANG_DEF$"===q)&&""!==
n&&this.g.Ty()&&k.Qk(n),g=this.ak(),g.Xx(n),g.uc().addEventListener(r.Gb()?"pointerup":"mouseup",function(){d.$.Qk(this.id)},!1),k.AN(n,g)):b&&(k.sn(n).ue(f),g=k.sn(n));n=this.Ne(k.Kb,"$LANG$$"+n+"$",!0,!1);null!==n&&""!==n&&(B=n);k.$c().jc(B);null!==g&&(k.Vg(g),e=!0)}!1===e&&"$SYS_ERROR$"===c&&(g=k.$c(),e=!0,h="",!1===this.g.pv&&this.Va.Error!==E.h&&(h=k.EK(this.Va.Error,k.Kb),e=!1),g.jc(h),g.us(e),null!==k.oq&&k.oq.us(e),e=!0);if(!1===e&&(h=this.Ph(c,"$LOGIN_CUSTOMIZED$"),"$LOGIN$"===h||"$LOGIN_DOT$"===
h||"$LOGIN_EMPTY$"===h||"$LOGIN_OK$"===h||"$LOGIN_CUSTOMIZED$"===h)){null===k.Fg?(g=this.ak(),g.uc().addEventListener(r.Gb()?"pointerup":"mouseup",function(){d.$.MM(!0)},!1),k.zN(g)):b&&(k.Fg.ue(f),g=k.Fg);n=this.Ne(k.Kb,h,"$LOGIN_CUSTOMIZED$"===h,!1);if(null!==n&&""!==n)k.$c().jc(n);else switch(h){case "$LOGIN$":k.$c().jc("LOGIN");break;case "$LOGIN_DOT$":k.$c().jc("...");break;case "$LOGIN_EMPTY$":k.$c().jc(" ");break;case "$LOGIN_OK$":k.$c().jc("OK");break;case "$LOGIN_CUSTOMIZED$":k.$c().jc(k.Lm)}null!==
g&&(k.Vg(g),e=!0)}if(!1===e){h=this.Ph(c,"$CANCEL_CUSTOMIZED$");if("$CANCEL$"===h||"$CANCEL_DOT$"===h||"$CANCEL_EMPTY$"===h||"$CANCEL_CUSTOMIZED$"===h)if(null===k.Eg?(g=this.ak(),g.uc().addEventListener(r.Gb()?"pointerup":"mouseup",function(){d.$.LM(!0)},!1),k.yN(g)):b&&(k.Eg.ue(f),g=k.Eg),n=this.Ne(k.Kb,h,"$CANCEL_CUSTOMIZED$"===h,!1),null!==n&&""!==n)k.$c().jc(n);else switch(h){case "$CANCEL$":k.$c().jc("CANCEL");break;case "$CANCEL_DOT$":k.$c().jc("...");break;case "$CANCEL_EMPTY$":k.$c().jc(" ");
break;case "$CANCEL_CUSTOMIZED$":k.$c().jc(k.Lm)}null!==g&&(k.Vg(g),e=!0)}if(!1===e&&(h=this.RF(c,"$URL$"),"$URL$"===h)){h=B=q="";var A=c.split("$");n=0;1<A.length&&"URL"===A[1]&&(q=A[2],n=this.Ne(k.Kb,q,!1,!0),null!==n&&""!==n&&(q=n),2<A.length&&(B=A[3],3<A.length&&(h=A[4])),n=k.RK(),null===k.Xy(n)?(g=k.Uw instanceof Ea?this.Tw(k.un(),a):this.Tw(f,a),g.jc(q),g.dO(B,"replace"===h?!1:!0),g.Ii("transparent"),k.DN(n,g)):b&&(g=k.Xy(n),g.ue(f)));null!==g&&(k.Mn(g),e=!0)}!1===e&&(n=this.Ne(k.Kb,c,!1,!0),
null!==n&&""!==n&&a.jc(n))},Ph:function(a,b){var c=a;0===c.indexOf(b)&&(c.length>b.length&&"$"===c.charAt(c.length-1)?(this.$.Qn(a.substring(b.length,c.length-1)),c=b):c="");return c},Dp:function(a,b){var c=a;0===c.indexOf(b)&&(a=a.split("$"),3<a.length?(this.kj=a[2],c=b):0>a.length&&(c=""));return c},Ne:function(a,b,c,d){var e=this.$.Cg;return""!==a&&null!==e&&(a=e.fB(a,b,c,d),null!==a)?a:""},RF:function(a,b){0===a.indexOf(b)&&(a.length>b.length&&"$"===a.charAt(a.length-1)?a=b:a="");return a},Sw:function(a,
b,c){a=new se(a,b,this.g.Z());b=this.$;a.ag(b.Pg(),b.Qg());a.Lk(c.Pr(),c.Tr());a.bg(b.wn());a.HN(b.Lm);a.Ii(b.Kh);a.setColor(b.Og());return a},EH:function(a,b){a=new ue(a,this.g.Z());var c=this.$.Cg,d=this.$,e=[];a.ag(d.Pg(),d.Qg());a.Lk(b.Pr(),b.Tr());a.bg(d.wn());a.Ii(d.Kh);a.setColor(d.Og());null!==c&&(null!==c.Cc&&(e=c.Cc.slice()),a.tN(e));b=this.kj;""!==b?this.g.Ty()?d.Qk(b):a.nA(d.Kb):a.nA(d.Kb);return a},ak:function(){var a=this.$,b=new qe(a.un(),this.g.Z(),null);b.setRadius(a.NK(a.un().D(),
a.un().C()));b.JM(a.Fe);b.IM(a.kf);b.bg(a.wn());b.KM(1<a.le?a.le:a.le+1);return b},Tw:function(a,b){var c=this.$;a=new ve(a,this.g.Z());a.ag(c.Pg(),c.Qg());a.Lk(b.Pr(),b.Tr());a.bg(c.wn());a.Ii(c.Kh);a.setColor(c.Og());return a},className:function(){return"PlaceHoldersHelper"}};var Ue;Ue=function(a,b){this.g=a;this.cm=this.mf=null;this.ab=[];this.hb=-1;this.xj=[];this.ub=b;this.DH=r.Gb();this.Cy=function(c){c.preventDefault()};this.bx(this.ab,!1)};
Ue.prototype={register:function(a,b){this.mf=a;this.cm=b},hc:function(){return this.g.hc()},handleEvent:function(a,b){var c=this.DH;switch(b){case K.J:return c?this.sm(a,!1):this.Hf(a.nb,!1);case K.m:return c?this.Vj(a,!1):this.Hf(a.nb,!1);case K.h:return c?this.Uj(a,!1):this.Hf(a.nb,!1);default:v.warn(u.h("BrowserTouchEventHandling.handleEvent. Unknown event: {0}",b))}return!1},jb:function(){this.qp();this.gk(this.ab);this.gk(this.xj)},Rg:function(){return this.g.sa?u.mb():this.ub.Rg()},ax:function(a){var b;
for(b=0;b<a.length;++b)this.Rg().addEventListener(a[b].e,a[b].Ia,a[b].c)},gk:function(a){var b;for(b=0;b<a.length;++b)this.Rg().removeEventListener(a[b].e,a[b].Ia)},bx:function(a,b){var c=b?"Capturing ":"";r.Gb()?(v.h(c+"Touchsupport using PointerEvents"),this.lF(a,b),this.ax(a)):"ontouchstart"in window?(v.h(c+"Touchsupport using TouchEvents"),this.mF(a,b),this.ax(a)):v.warn("No touch support")},mF:function(a,b){if(!(this.ub instanceof Ib)){var c=this,d=function(e){c.Hf(e,b)};a.push({e:"touchstart",
Ia:d,c:b});a.push({e:"touchmove",Ia:d,c:b});a.push({e:"touchend",Ia:d,c:b})}},lF:function(a,b){if(!(this.ub instanceof Ib)){var c=this;a.push({e:"pointerdown",Ia:function(d){c.jH(new Kb(d),b)},c:b});a.push({e:"pointermove",Ia:function(d){c.Uj(new Kb(d),b)},c:b});a.push({e:"pointerup",Ia:function(d){c.Vj(new Kb(d),b)},c:b})}},OH:function(){0<this.xj.length||!this.g.sa||this.ub instanceof Ib||this.bx(this.xj,!0)},OD:function(){0<this.xj.length||!this.g.sa||this.ub instanceof Ib||this.gk(this.xj)},WI:function(a,
b){var c;for(c=0;c<a.length;++c)if(a[c].identifier===b)return!0;return!1},Mo:function(a,b,c){var d;for(d=0;d<a.length;++d){var e=a[d];b.Mg(this.ub.Dr(new Kb(e),c))}},du:function(a,b,c){var d;for(d=0;d<a.length;++d){var e=a[d];this.WI(b,e.identifier)||c.Mg(this.ub.Dr(new Kb(e),Y.ce))}},BE:function(){null!==this.g.getConfiguration()&&this.g.getConfiguration().WorkaroundDisableMouseUpDownAfterActiveTouch&&this.g.nm.nN(u.m()+this.g.getConfiguration().WorkaroundSetIgnoreTimeMsForMouseUpDownAfterActiveTouch)},
Hf:function(a){if(!this.g.Cn()&&null!==this.mf){this.zx(a);this.BE();this.g.QO().fn(a);var b=new Ve;"touchstart"===a.type?(0===this.hc().Size()&&this.Uu(),this.Mo(a.changedTouches,b,Y.Hc),this.du(a.targetTouches,a.changedTouches,b,Y.ce)):"touchmove"===a.type?this.Mo(a.targetTouches,b,Y.ce):(this.Mo(a.changedTouches,b,Y.Ic),this.du(a.targetTouches,a.changedTouches,b,Y.ce),0===a.targetTouches.length&&this.ev());this.mf(b)}},jH:function(a,b){if(!this.g.Cn()){var c=a.nb;if(this.sm(a,b)&&this.g.sa){var d=
this;this.g.Hh.yr(c,d,function(e){d.Uj(new Kb(e),b)},function(e){d.Vj(new Kb(e),b)})}}},sm:function(a,b){var c=a.nb;return"touch"===c.pointerType?(this.g.Id.fn(c),0===this.hc().Size()&&this.Uu(),this.Yr(c,b)?(v.warn(u.h("Unexpected Pointerdown event for id: {0}; Ignored!",c.pointerId)),!1):this.Ip(a,b,Y.Hc)?!0:!1):!1},Vj:function(a,b){if(this.g.Cn())return!1;var c=a.nb;if(!this.Yr(c,b))return!1;if("touch"===c.pointerType){if(!this.Ip(a,b,Y.Ic))return!1;0===this.hc().Size()&&this.ev();return!0}return!1},
Uj:function(a,b){if(this.g.Cn())return!1;var c=a.nb;return this.Yr(c,b)?"touch"===c.pointerType?this.Ip(a,b,Y.ce)?!0:!1:!1:!1},Ip:function(a,b,c){this.fI(c);var d=this.ub.Dr(a,c);this.eJ();switch(c){case Y.Hc:this.hc().ZB(d);break;case Y.ce:case Y.Ic:this.hc().lt(d.id()),this.hc().KC(d)}var e=this.MF();if(b&&c===Y.Hc)if(this.cm(e))d.rs(!0);else return this.hc().At(d),!1;e.WM(a.nb);this.mf(e);c===Y.Ic&&this.hc().At(d);this.zx(a.nb);return!0},fI:function(a){a==Y.Hc&&0<this.g.getConfiguration().Go&&
u.m()-this.IG>this.g.getConfiguration().Go&&0<this.hc().Size()&&(v.warn("Touchhandling: Sanitycheck discarding obsolete events"),this.hc().AA(),null!==this.g.he&&this.g.he.rM());this.IG=u.m()},Yr:function(a,b){a=u.df(a);if(-1===this.hc().Tk(a))return!1;a=this.hc().lt(a);return b?a.Ij:!0},MF:function(){var a=new Ve;this.hc().CA(a);return a},eJ:function(){this.hc().JC(Y.ce)},zx:function(a){a.preventDefault();a.stopPropagation()},ev:function(){var a=this;this.tu();this.hb=window.setTimeout(function(){a.qp()},
500)},tu:function(){-1!==this.hb&&(window.clearTimeout(this.hb),this.hb=-1)},qp:function(){this.tu();u.mb().removeEventListener("contextmenu",this.Cy)},Uu:function(){this.qp();u.mb().addEventListener("contextmenu",this.Cy)}};var Kb;Kb=function(a,b,c,d){void 0===d&&(d=null);void 0===b&&(b=u.ty(a)?u.Pi(a.target,u.mb()).offset(r.vo(a)):u.Qi(a)?u.Pi(a.target,u.mb()).offset(r.uo(a)):new t(-1,-1));void 0===c&&(c=b);this.nb=a;this.fi=b;this.od=c;this.xb=d;this.Vw=null};
Kb.prototype={IN:function(a){this.Vw=a},Ca:function(){return this.xb},Ad:function(a){this.xb=a}};var We;We=function(a){this.be=this.Mc=null;a||(a=Y.Jc);this.xb=null;this.Rn(a)};
We.prototype={type:function(){if(null===this.Mc)throw Error("Unexpected call. Gesture data not yet assigned");return this.Mc.type()},Ad:function(a){this.xb=a},Ca:function(){return this.xb},Rn:function(a){if(null===this.Mc||this.type()!==a)switch(a){case Y.ze:this.Mc=new Xe;break;case Y.Jc:this.Mc=new Ye;break;case Y.ig:this.Mc=new Ze;break;case Y.de:this.Mc=new $e(!1);break;case Y.Dd:this.Mc=new $e(!0);break;default:throw Error("Unexpected gesture type");}},data:function(){return this.Mc},clone:function(){var a=
new We;null!==this.Mc&&(a.Mc=this.Mc.clone());null!==this.xb&&(a.xb=this.xb);a.be=this.be;return a}};var Y;Y={ce:1,Ic:2,Hc:4,jl:8,Vt:16,po:5,Jc:0,ig:1,ze:2,de:3,Dd:4,hg:0,il:1,IC:2,hl:4,Tt:8,Ut:16,KO:255,ed:0,Xi:5,Yi:10};Y.Gc=Y.Yi;Y.Zi=11;Y.ae=12;Y.ye=13;Y.tC=Y.ye;var af;af=function(){this.Tn=this.Ti=this.Uk=this.bl=this.Xn=!1};var bf;bf=function(){this.wb=[]};
bf.prototype={Jz:function(a,b){v.m("Record GesturesTouchEvent");!this.empty()&&this.BG(a)&&b?this.wb[this.wb.length-1]=a:this.wb.push(a)},jM:function(a,b){v.m("Replay");for(var c;"undefined"!==typeof(c=this.wb.shift());)a.Fk(c,b)},empty:function(){return 0===this.wb.length},BG:function(a){var b=this.wb[this.wb.length-1],c;if(a.touches().length!==b.touches().length)return!1;for(c=0;c<a.touches().length;++c){var d=a.touches()[c];var e=b.touches()[c];if(d.id()!==e.id()||d.flags()!==e.flags()||d.U(Y.Ic)||
d.U(Y.Hc))return!1}return!0}};var cf;cf=function(a,b,c,d,e,f){f=f?f:null;this.ya=a;this.gb=d;this.Ld=new df(b,c);this.od=e;this.xb=f;this.Ij=!1;this.mj=null};
cf.prototype={id:function(){return this.ya},Ca:function(){return this.xb},Ad:function(a){this.xb=a},rs:function(a){this.Ij=a},vN:function(a){this.Ld.QM(a)},location:function(){return this.Ld},VM:function(a){this.mj=a},Ks:function(a){this.mj=a;this.Ld.Ks(a)},flags:function(){return this.gb},oi:function(a){this.gb|=a},U:function(a){return(this.gb&a)===a},update:function(a){this.gb=a},clone:function(){var a=new cf(this.id(),this.location().current(),this.location().di,this.flags(),this.od,this.Ca());
a.rs(this.Ij);return a}};var Ve;Ve=function(){this.Pa=[];this.VI=u.m();this.ke=null;this.Iw=!1;this.nb=null};Ve.prototype={touches:function(){return this.Pa},gA:function(a){this.ke=a},GN:function(a){this.Iw=a},WM:function(a){this.nb=a},event:function(){return this.nb},Mg:function(a){this.Pa.push(a)},timeStamp:function(){return this.VI}};var df;df=function(a,b){this.Ah=a;this.di=new t(a.X,a.Y);void 0!==b&&null!==b&&(this.di=new t(b.X,b.Y));this.bw=null};
df.prototype={QM:function(a){this.Ah=a},Ks:function(a){this.Ah.X+=a.X;this.Ah.Y+=a.Y},current:function(){return this.Ah},Dk:function(){return this.bw},fA:function(a){this.bw=a}};var ef;
ef={Nr:function(a,b){var c=0<b.touches().length,d;a.data().QJ();for(d=0;d<b.touches().length;++d){var e=b.touches()[d];a.data().Mg(e.clone());e.U(Y.Ic)||(c=!1)}return c},DJ:function(a,b){var c;for(c=0;c<a.touches().length;++c)if(a.touches()[c].U(b))return!0;return!1},pi:function(a,b){var c;for(c=0;c<a.touches().length;++c)if(!a.touches()[c].U(b))return!1;return!0},By:function(a){var b=Y.Tt|Y.Ut;1===a.touches().length?b|=Y.il|Y.hl:2===a.touches().length&&(b|=Y.IC);return b},Ck:function(a){return a===
Y.de||a===Y.Dd}};var jb;jb=function(a,b){var c=this;this.g=a;this.ub=b;this.VF=!(b instanceof Ib);this.rj=new Ue(a,this.ub);this.rj.register(function(d){c.mf(d)},function(d){return c.cm(d)});this.rd=null;this.wa=new ff;this.Jq=-1;this.qx("none");this.Wp=new gf(this.g.Mf)};
jb.prototype={jb:function(){this.qx("auto");this.rj.jb()},handleEvent:function(a,b){return this.rj.handleEvent(a,b)},Xm:function(a,b){this.wa.rr(a,b);this.ID(a)},ks:function(a){this.wa.gM(a)},hy:function(){this.wa.clear();this.ND()},On:function(a){this.g.N.On(a);a&&(this.rd=this.ub.hn(!0))},IK:function(){return this.g.Mf.Sr()},Uy:function(){return this.g.Mf.mn()},vn:function(){return this.g.Mf.vn()},Gn:function(a,b,c){a=m.Fb(a,this.g.A.la,b);void 0!==c&&null!==c&&a.Ad(c);this.ub.Yc(a)},oL:function(){return this.Wp.active()},
pA:function(){this.Wp.stop()},Ly:function(a,b,c){var d=new af;c=this.yE(a,b,c);this.Tp(a,Y.Tt)&&this.wa.uK(b,c,this.VF)?d.Tn=!0:this.Tp(a,Y.Ut)&&this.wa.CJ(b,c)?d.Ti=!0:this.Tp(a,Y.il|Y.hl)&&(a=[],this.wa.NJ(b,a,c),d.bl=a[0],d.Uk=a[1]);d.Xn=!this.GD();return d},yE:function(a,b,c){if(this.g.sa){if(void 0===c){a=b.touches();if(0<a.length)for(b=0;b<a.length;b++)if(a[b]&&a[b].Ij)return R.Un;return 0}return c?R.Un:R.wA}return 0},Or:function(a,b,c){if(a>=Y.Yi&&a<=Y.tC)if(b.type()===Y.Jc||b.type()===Y.ig){if(this.zF(a,
b,b.be,c))return!0}else if(this.AG(b.type())&&this.AF(a,b,b.be))return!0;return!1},tk:function(){this.g.N.bK();!this.g.N.Bn()&&this.g.he.buffer().empty()&&this.g.N.zs(!1)},qx:function(a){this.ub.Rg().style.touchAction=a},GD:function(){return this.g.N.Bn()?(this.g.N.zs(!0),!1):!0},Tp:function(a,b){return(a&b)===b},AG:function(a){return a===Y.ze||ef.Ck(a)},Qv:function(a){return a===Y.Dd},Sv:function(a){return null!==a&&null!==a.ba&&(a=a.ba,a instanceof Cb&&a.qe())?!0:!1},zF:function(a,b,c){var d=Z.gh;
if(a===Y.Gc){c=this.wa.Jy(b);if(null===c)return!0;var e=c.ba;if(null!==e&&e.Dn())return!0;this.Sv(c)&&e.FJ();b.be=c;this.EI(c);this.g.N.UK()}else if(a===Y.ye||a===Y.ae)this.Sv(c)?a=this.YF(c,b):null===c||b.type()===Y.Jc&&this.Wp.start(this.g.Z(),c,this.rd,b,this)||(this.hv(d,b,c),this.Rw(b,c));if(null!==c){if(b.type()===Y.ig||b.type()===Y.Jc)d=b.data().$x(c,a,this);Z.Bi(d,Z.Ss)&&(d=Z.te(d,Z.dt))}a!==Y.ae&&(this.hv(d,b,c),this.rd.Sg(this.g.Z(),c));return!1},YF:function(a,b){var c=a.ba;var d=c.Qa;var e=
c.Ma;var f=d.style.left;var g=d.style.top;e=this.wI(e,d,c,b);this.pA();this.tk();c.os();b.Mc.wM(e);this.yI(a,b,d,f,g,e);return Y.ae},Hx:function(a,b,c,d){var e=b.ba;this.$I(a,b,c);d.style.transition="";c||e.sA()},yI:function(a,b,c,d,e,f){var g=this;var h=a.ba;var k=h.Ma;c.style.transition="all 200ms ease-in-out";h.qA();this.cF(k,c,d,e)?setTimeout(function n(){g.Hx(b,a,f,c);this.removeEventListener("transitionend",n)},0):c.addEventListener("transitionend",function B(){g.Hx(b,a,f,c);this.removeEventListener("transitionend",
B)},!1)},cF:function(a,b,c,d){return a.Wr()?b.style.left===c:b.style.top===d},$I:function(a,b,c){c&&this.zm(a,b)},wI:function(a,b,c,d){var e=d.data().ds();d=d.data().pe();var f=Math.abs(e.X)>Math.abs(e.Y);var g=Math.abs(e.Y)>Math.abs(e.X);if(a.Wr()){if(b.style.left="0px",(Math.abs(e.X)>c.na/3||5<Math.abs(d.X))&&f){if(0<e.X){if(b.style.left=c.na+"px",!c.An())return b.style.left="0px",!1}else if(b.style.left=-c.na+"px",!c.zn())return b.style.left="0px",!1;return!0}}else if(a.rz()&&(b.style.top="0px",
(Math.abs(e.Y)>c.pa/3||5<Math.abs(d.Y))&&g)){if(0<e.Y){if(b.style.top=c.pa+"px",!c.An())return b.style.top="0px",!1}else if(b.style.top=-c.pa+"px",!c.zn())return b.style.top="0px",!1;return!0}return!1},pL:function(a,b){var c=this.rd.Ei(b);this.Rw(a,b);this.Gn(4098,c,a.Ca())},AF:function(a,b,c){if(a===Y.Gc){c=this.wa.Jy(b);if(null===c&&!this.Qv(b.type()))return!0;b.be=c;ef.Ck(b.type())&&this.zm(b,c)}else if(null!==c||this.Qv(b.type()))ef.Ck(b.type())?this.zm(b,c):(a===Y.ye||a===Y.ae)&&this.zm(b,c);
return!1},zm:function(a,b){b=a.data().createEvent(this.g.A.la,b,this.ub);null!==a.Ca()&&b.Ad(a.Ca());this.Yu(b)},Yu:function(a){this.ub.Yc(a)},Rw:function(a,b){var c=a.data().createEvent(this.g.A.la,b,this.ub);c.iA(b.xa);null!==a.Ca()&&c.Ad(a.Ca());this.Yu(c)},EI:function(a){a.info().zoom().Nn(1);a.info().scroll().Zf(new t(0,0));this.g.N.Th||this.rd.xr(this.g.Z(),a.xa)},hv:function(a,b,c){Z.Bi(a,Z.OB)&&this.EE(a,b,c);Z.U(a,Z.Bo)&&(c.info().zoom().Nn(c.info().zoom().Oa().pc),this.eD(b,c));Z.U(a,Z.Ao)&&
c.info().zoom().Nn(c.info().zoom().Oa().oc)},eD:function(a,b){this.kw(Z.ih|Z.jh,b)},EE:function(a,b,c){b.type()===Y.ig?this.kw(a,c):b.type()===Y.Jc&&this.MG(a,c)},kw:function(a,b){var c=b.Ay(),d=b.info().zoom();if(Z.U(a,Z.Ui))d.Ji(new t(d.Ie.X+c.s,d.Lc.Y));else if(Z.U(a,Z.ih)){var e=d.Ie.X-(1-d.tf)*d.Ie.X;d.Ji(new t(e,d.Lc.Y));b.info().scroll().Zf(new t(d.Lc.X-d.Ie.X,b.info().scroll().Ua.Y))}Z.U(a,Z.Vi)?d.Ji(new t(d.Lc.X,d.Ie.Y+c.u)):Z.U(a,Z.jh)&&(e=d.Ie.Y-(1-d.tf)*d.Ie.Y,d.Ji(new t(d.Lc.X,e)),b.info().scroll().Zf(new t(b.info().scroll().Ua.X,
d.Lc.Y-d.Ie.Y)))},MG:function(a,b){b.sz(a)},cm:function(a){var b=ef.By(a);a=this.Ly(b,a,!0);return!!(a.Tn||a.Uk||a.Ti||a.bl)},mf:function(a){var b=this.g.getConfiguration();null!==b&&this.g.N.Mp&&b.TouchHandlingActive&&(b.DebugOnlyPrintRawTouches&&this.UE(a),this.LD(a),null===this.rd&&(this.rd=this.ub.hn(!1)),this.g.N.Dq?(this.g.he.buffer().Jz(a,!0),this.Sq()):this.g.he.Fk(a,this)&&(this.g.N.Dq&&this.g.he.buffer().Jz(a,!0),this.g.he.buffer().empty()||this.Sq()))},LD:function(a){ef.pi(a,Y.Hc)?this.g.nm.eA(!0):
ef.pi(a,Y.Ic)&&this.g.nm.eA(!1)},Sq:function(){if(-1===this.Jq){var a=this;this.Jq=window.setTimeout(function(){a.pH()},25)}},pH:function(){this.Jq=-1;this.g.N.Bn()?this.Sq():(this.g.he.buffer().jM(this.g.he,this),this.g.N.zs(!1))},UE:function(a){var b;var c=u.h("Touches ({0}): ",a.touches().length);for(b=0;b<a.touches().length;++b){var d=a.touches()[b];var e="";null!==d.Ca()&&(e=" ("+d.Ca().toString()+")");var f="D";var g="";d.U(Y.ce)?f="M":d.U(Y.Ic)&&(f="U");d.U(Y.jl)&&(g="P");c+=u.h("[{0}{1}{2} ({3}/{4}){5}] ",
g,f,d.id(),d.location().current().X,d.location().current().Y,e)}v.h(c)},ID:function(a){a.U(R.Un)&&this.rj.OH()},ND:function(){this.rj.OD()}};var gf;gf=function(a){this.hb=-1;this.Wb=this.uf=this.rd=this.bb=this.Jg=null;this.$v=a};
gf.prototype={start:function(a,b,c,d,e){this.bb=a;this.Jg=b;this.rd=c;this.uf=d.clone();this.Wb=e;var f=this;this.hb=window.setInterval(function(){f.mf()},60);return-1!==this.hb},stop:function(){-1!==this.hb&&(window.clearInterval(this.hb),this.Wb.pL(this.uf,this.Jg),this.hb=-1,this.uf=this.rd=this.bb=this.Jg=null)},active:function(){return-1!==this.hb},Sr:function(){return this.$v.Sr()},mn:function(){return this.$v.mn()},mf:function(){var a=this.Jg.info().scroll();1>Math.abs(a.pe().X)&&1>Math.abs(a.pe().Y)?
this.stop():(a.pe().Kk(1-this.mn()),a.pe().X=u.Dy(a.pe().X),a.pe().Y=u.Dy(a.pe().Y),a.Ua.offset(a.pe()),a=this.Jg.zr(),this.Jg.sz(a),Z.U(a,Z.dt)||Z.U(a,Z.PB)&&Z.U(a,Z.QB)?this.stop():this.rd.Sg(this.bb,this.Jg))}};var hb;hb=function(){this.ux=0;this.Pu=1;this.lx=!0};hb.prototype={ZN:function(a){this.ux=a},Sr:function(){return this.ux},UM:function(a){this.Pu=a},mn:function(){return this.Pu},XN:function(a){this.lx=a},vn:function(){return this.lx}};var lb;
lb=function(){this.Dq=this.Mp=!1;this.Np=0;this.Th=!1};lb.prototype={dA:function(a){this.Mp=a},zs:function(a){this.Dq=a},UK:function(){this.Np++},bK:function(){this.Np--},Bn:function(){return 0<this.Np},On:function(a){this.Th=a}};var Z;Z={gh:0,Bo:1,Ao:2};Z.IO=Z.Bo|Z.Ao;Z.Ui=4;Z.Vi=8;Z.ih=16;Z.jh=32;Z.OB=Z.Ui|Z.Vi|Z.ih|Z.jh;Z.PB=Z.Ui|Z.ih;Z.QB=Z.Vi|Z.jh;Z.dt=65536;Z.Xs=131072;Z.Ys=262144;Z.Vs=524288;Z.Ws=1048576;Z.$s=2097152;Z.Zs=4194304;Z.Ts=Z.Xs|Z.Vs;Z.Us=Z.Ys|Z.Ws;Z.Vn=Z.Ts|Z.Us;Z.yA=Z.$s|Z.Zs;
Z.Ss=Z.yA|Z.Vn;Z.te=function(a,b){return a|b};Z.eM=function(a){return a&~Z.Vn};Z.U=function(a,b){return(a&b)===b};Z.Bi=function(a,b){return 0!==(a&b)};var kb;kb=function(a){this.g=a};kb.prototype={Dr:function(a,b){b=this.$D(a,b,this);null!==a.Ca()&&b.Ad(a.Ca());return b},$D:function(a,b){return new cf(u.df(a.nb),a.fi,a.Vw,b,a.od)},hn:function(a){return this.g.sa?new hf:new jf(this.Rg(),a)},Rg:function(){return this.g.Z().Rf().canvas},Yc:function(a){this.g.Yc(a)}};var Ib;
Ib=function(a,b,c){kb.call(this,a);this.cc=b;this.YG=c};Ib.prototype=Object.create(kb.prototype);Ib.prototype.constructor=Ib;Ib.prototype.hn=function(){return this.cc};Ib.prototype.Rg=function(){return this.YG};var ib;ib=function(a){var b;this.ma=new bf;this.ek=[];this.ek[0]=new kf;for(b=1;b<Y.po;++b)this.ek[b]=new lf;this.Lq();this.Uq=new mf(a);this.N=new nf;this.Gh=new of;this.Fj=null;this.SE=a.DebugOnlyPrintGestures};
ib.prototype={Fk:function(a,b){return 1>a.touches().length||a.touches().length>Y.po?!1:this.FE(a,b)},rM:function(){this.N.ms();this.Lq()},DG:function(a){return!this.Gh.Oh.Ti&&ef.pi(a,Y.Hc)},Vv:function(a,b){return!b.oL()&&!this.Gh.Oh.Ti&&ef.pi(a,Y.Ic)},FE:function(a,b){var c=new We,d=!1;var e=this.FD(a,b);this.WC(a);this.kF(a);e&&(this.DG(a)&&this.$F(a,b),this.N.Ja.state()!==Y.Gc&&this.N.Ja.state()!==Y.Zi||this.rF(a,b),this.N.ms(),this.Lq(),this.Gh.Oh.Tn&&this.N.Ja.Xd().Rn(Y.de));if(this.N.Ja.Xd().type()!==
Y.de&&(e=a.touches().length-1,e=this.ek[e].Fk(this,a,c),e===Y.Xi||e>=Y.Yi)){if(e>=Y.Yi)return null!==this.Fj?(this.Vv(a,b)&&b.Gn(4098,a.touches()[0].location().di,a.touches()[0].Ca()),this.ck(this.Fj.state(),this.Fj.Xd(),a,b),this.Fj=null,this.ck(e,c,a,b)):(this.ck(e,c,a,b),this.Vv(a,b)&&b.Gn(4098,a.touches()[0].location().di,a.touches()[0].Ca())),!0;this.N.Ja.assign(e,c);this.N.Ja.Zx(a);d=!0}if(!d)return this.Gh.Oh.Xn||(e=this.uE(c,a),this.ck(e,c,a,b)),!0;this.op(Y.ed,c);return!1},$F:function(a,
b){var c=a.touches()[0].Ca();b.pA();null!==a.ke&&a.Iw&&(c=a.ke.Ca());b.Gn(4097,a.touches()[0].location().di,c)},buffer:function(){return this.ma},VK:function(a){var b=new We(Y.Dd);a=a.clone();a.update(Y.Hc|Y.jl);b.data().Mg(a);this.Fj=new pf(b)},ck:function(a,b,c,d){if(this.N.Ja.state()!==Y.ae){var e=this.N.Ja.Xd().be;this.HD(a,b);this.op(a,b);this.N.Ja.assign(a,b.clone());b.be=e;e={delay:!1,callback:function(){d.Or(Y.ae,b)}};d.Or(a,b,e)&&(this.op(Y.ae,b),e.delay||d.Or(Y.ae,b),this.N.Ja.Pn(Y.ae));
this.N.Ja.Xd().be=b.be;a!==Y.ye&&this.N.Ja.Zx(c)}a===Y.ye&&this.N.ms()},HD:function(a,b){var c;if(a===Y.Gc&&b.type()===Y.Dd){a=!1;for(c=0;c<b.data().touches().length;++c)if(b.data().touches()[c].U(Y.jl)){a=!0;break}if(!a)for(c=0;c<b.data().touches().length;++c)if(b.data().touches()[c].U(Y.Hc)){this.N.Ja.jN(b.data().touches()[c].id());break}}if(this.N.Ja.tv)for(c=0;c<b.data().touches().length;++c)if(b.data().touches()[c].id()===this.N.Ja.ju){b.data().touches()[c].oi(Y.Vt);break}},uE:function(a,b){var c=
ef.pi(b,Y.Ic);var d=this.N.Ja.Xd().type()===Y.de?Y.de:Y.Dd;a.Rn(d);ef.Nr(a,b);return c?Y.ye:this.N.Ja.state()===Y.Gc||this.N.Ja.state()===Y.Zi?Y.Zi:Y.Gc},Lq:function(){var a;for(a=0;a<this.ek.length;++a)this.ek[a].Pn(Y.ed)},kF:function(a){var b;for(b=0;b<a.touches().length;++b){var c=a.touches()[b];this.N.tO(c)||this.N.vJ(c)||v.error("Could not store touch information; probably a touch release/up was missing")}},WC:function(a){var b;if(null!==a.event().currentTarget&&null!==a.ke&&a.ke instanceof Cb&&
a.event().currentTarget!=a.ke.ja&&null!==a.ke.Qa){var c=u.Hy(a.ke.Qa,a.event().currentTarget);for(b=0;b<a.touches().length;++b){var d=a.touches()[b];var e=d.location().current();e.X+=c.X;e.Y+=c.Y;d.vN(e);d.VM(c)}}},FD:function(a,b){return this.xG(a)?(this.Gh.xN(b.Ly(ef.By(a),a)),!0):!1},rF:function(a,b){ef.Ck(this.N.Ja.Xd().type())&&ef.Nr(this.N.Ja.Xd(),a);this.ck(Y.ye,this.N.Ja.Xd(),a,b)},xG:function(a){if(this.N.Ja.state()===Y.ed)return!0;if(ef.Ck(this.N.Ja.Xd().type()))return ef.pi(a,Y.Hc);if(this.N.Ja.nk.length!==
a.touches().length)return!0;var b;for(b=0;b<a.touches().length;++b)if(!this.N.Ja.bL(a.touches()[b].id()))return!0;return!1},op:function(a,b){if(this.SE){var c="";switch(a){case Y.ed:v.m("No gesture");return;case Y.Xi:c="Gesture (candidate); ";break;case Y.Gc:c="Gesture (new); ";break;case Y.ye:c="Gesture (finished); ";break;case Y.Zi:return;case Y.ae:c="Gesture (cancelled); "}c+=b.data().jn();null!==b.Ca()&&(c+=" IdStack: "+b.Ca().toString());v.m(c)}}};var qf;
qf=function(){this.da=Y.ed;this.uf=new We;this.nk=[];this.tv=!1;this.ju=-1};qf.prototype={state:function(){return this.da},Pn:function(a){this.da=a},Xd:function(){return this.uf},jN:function(a){this.tv=!0;this.ju=a},assign:function(a,b){this.da=a;this.uf=b},Zx:function(a){var b;this.nk=[];for(b=0;b<a.touches().length;++b)this.nk.push(a.touches()[b].id())},bL:function(a){var b;for(b=0;b<this.nk.length;++b)if(this.nk[b]===a)return!0;return!1}};var of;of=function(){this.Oh=null};
of.prototype={xN:function(a){this.Oh=a}};var pf;pf=function(a){this.da=Y.Gc;this.uf=a};pf.prototype={state:function(){return this.da},Xd:function(){return this.uf}};var nf;nf=function(){this.zg=[];this.Ja=new qf};
nf.prototype={tO:function(a){var b;for(b=0;b<this.zg.length;++b)if(this.zg[b].id===a.id())return a.location().fA(this.zg[b].Dk),a.U(Y.Ic)?this.zg.splice(b,1):this.zg[b].Dk=a.location().Dk(),!0;return!1},vJ:function(a){if(!a.U(Y.Hc))return!0;if(this.zg.length===Y.po)return!1;this.zg.push({id:a.id(),Dk:a.location().current()});return!0},ms:function(){this.Ja=new qf}};var mf;mf=function(a){this.vF=a.GesturesFlickPanThresholdPxPerSecond;this.AH=a.GesturesPanFlickTimeThresholdMs;this.zH=a.GesturesPanClickThresholdDistSquare};
mf.prototype={};var Xe;Xe=function(a){void 0===a&&(a=new t(0,0));this.dc=a;this.Xe=void 0;this.qc=new t(0,0);this.mi=0};
Xe.prototype={type:function(){return Y.ze},clone:function(){var a=new Xe(this.dc);a.wk(this);return a},jn:function(){return u.h("Flick: start({0}), overall move({1}), velocity {2}",u.Fb(this.dc),u.Fb(this.qc),this.mi)},createEvent:function(a,b){a=new m(2051,a,b.id(),0);b=p.B(12);var c=P.B(b,!0);c.I(this.dc.fc());c.I(this.qc.fc());c.I(this.mi);a.Eb(b);return a},wk:function(a){this.dc=a.dc;this.Xe=a.Xe;this.qc=a.qc;this.mi=a.mi},start:function(){return this.dc},Cs:function(a){this.Xe=a},Es:function(){return this.Xe},
setVelocity:function(a){this.mi=a},ds:function(){return this.qc},Ls:function(a){this.qc=a.cg(this.dc)}};var $e;$e=function(a){this.pk=a;this.Pa=[]};
$e.prototype={type:function(){return this.pk?Y.Dd:Y.de},touches:function(){return this.Pa},QJ:function(){this.Pa=[]},Mg:function(a){this.Pa.push(a)},clone:function(){var a=new $e(this.pk);a.Pa=this.Pa.slice(0);return a},jn:function(){var a="",b;var c=this.pk?"TouchToMouse":"IEC-Touches";for(b=0;b<this.Pa.length;++b)if(2>b)a+=u.h("[{0}, {1}]({2}) ",b,this.Pa[b].flags(),u.Fb(this.Pa[b].location().current()));else{a+="...";break}return u.h("{0} ({1}): {2}",c,this.Pa.length,a)},createEvent:function(a,
b,c){var d=0,e,f=!0;var g=c.g.sa?12:0;var h=null;this.pk||(d=b.id());var k=this.Pa.length;b=this.pk?2054:2052;g=p.B((8+g)*this.Pa.length);var q=P.B(g,!0);for(e=0;e<this.Pa.length;++e){var n=this.Pa[e].location().di;q.I(n.fc());n=255&this.QG(this.Pa[e]);this.Pa[e].U(Y.ce)||(f=!1);if(this.Pa[e].U(Y.jl)||this.Pa[e].U(Y.Vt))n|=256;n|=(this.Pa[e].id()&65535)<<16>>>0;q.I(n)}if(c.g.sa){for(e=0;e<this.Pa.length;++e)if(n=this.Pa[e].Ca(),null!==n){if(null===h||h!==n)h=n;q.I(n.yb);q.I(n.Rb)}else q.I(0),q.I(0);
for(e=0;e<this.Pa.length;++e)q.I(this.Pa[e].od.fc())}f&&b++;a=new m(b,a,d,k);a.Eb(g);!c.g.sa||2052!==b&&2053!==b||null!==h&&a.Ad(h);return a},QG:function(a){return a.U(Y.ce)?2:a.U(Y.Ic)?3:a.U(Y.Hc)?1:0}};var Ye;Ye=function(a){void 0===a&&(a=new t(0,0));this.dc=a;this.Xe=void 0;this.qc=new t(0,0);this.Ke=new t(0,0);this.jw=0;this.nx=!1};
Ye.prototype={wM:function(a){this.nx=a},type:function(){return Y.Jc},clone:function(){var a=new Ye(this.dc);a.wk(this);return a},wk:function(a){this.dc=a.dc;this.Xe=a.Xe;this.qc=a.qc;this.Ke=a.Ke},$x:function(a,b,c){var d=a.info().scroll(),e=this.dc.Mb(this.qc);b===Y.Gc&&d.TM(this.dc);b=this.LG(this.Ke,c,a);var f=a.ba&&a.ba.qe()&&a.ba.fj;c.vn()||a.xa.ly(e.X)||f?(d.RM(this.qc.X),d.Yz(b.X)):d.Yz(0);c.vn()||a.xa.my(e.Y)||f?(d.SM(this.qc.Y),d.Zz(b.Y)):d.Zz(0);return a.zr()},LG:function(a,b,c){c=c.xa.size().scale(b.IK());
b=new t(c.L*b.Uy(),c.V*b.Uy());return new t(Math.max(-b.X,Math.min(b.X,a.X)),Math.max(-b.Y,Math.min(b.Y,a.Y)))},jn:function(){return u.h("Pan: start({0}), overall move({1})",u.Fb(this.dc),u.Fb(this.qc))},createEvent:function(a,b){if(this.nx){a=new m(2051,a,b.id(),0);var c=p.B(12);var d=P.B(c,!0);d.I(b.info().scroll().Bh.fc());d.I(b.info().scroll().Ua.fc());d.I(2E3)}else a=new m(2050,a,b.id(),0),c=p.B(8),d=P.B(c,!0),d.I(b.info().scroll().Bh.fc()),d.I(b.info().scroll().Ua.fc());a.Eb(c);return a},start:function(){return this.dc},
Cs:function(a){this.Xe=a},Es:function(){return this.Xe},ds:function(){return this.qc},Ls:function(a){this.qc=a.cg(this.dc)},pe:function(){return this.Ke},sO:function(a,b){var c=b-this.jw;1E-6>c&&(c=1);this.jw=b;this.Ke=a.sM(60/c)}};var Ze;Ze=function(){this.Wq=new t(0,0);this.qu=new t(0,0);this.uH=1;this.wm=this.Jm=0};
Ze.prototype={type:function(){return Y.ig},clone:function(){},jn:function(){return"SpreadPinch: "},$x:function(a,b){var c=a.info().zoom(),d=a.info().scroll();b===Y.Gc&&c.Ji(this.Wq);c.Ji(this.qu);c.Nn(this.uH);c.$N(this.Jm);c.setOrientation(this.wm);d.Zf(this.qu.cg(this.Wq));b=a.zr();Z.Bi(b,Z.Vn)&&this.CG(a)&&(b=Z.eM(b));return b},createEvent:function(a,b){a=new m(2049,a,b.id(),0);var c=b.info().zoom();b=p.B(16);var d=P.B(b,!0);d.I(c.Lc.fc());d.I(c.Ie.fc());d.I(65536*c.tf);var e=c.Jm/2/Math.PI*65536;
c=c.orientation()/2/Math.PI*65536;d.I(e|c<<16);a.Eb(b);return a},CG:function(a){return 400>a.info().scroll().aK.Kr(new t(0,0))}};var lf;lf=function(){};lf.prototype={Fk:function(){return Y.ed},state:function(){return Y.ed},Pn:function(){}};var kf;kf=function(){this.da=Y.ed;this.Yq=0;this.xb=this.Kc=this.Ag=this.Bg=null;this.sf=-1};
kf.prototype={Fk:function(a,b,c){var d=a.Gh.Oh;if(ef.DJ(b,Y.Ic))this.da===Y.Xi&&(this.Kc=Y.hg,this.sf=Y.Dd,this.qG(a,b)),this.da=this.zD();else{var e=b.touches()[0].location();switch(this.da){case Y.ed:if(d.Xn)return Y.ed;d.Ti?(this.Kc=Y.hg,this.sf=Y.Dd,this.da=Y.Gc):d.bl||d.Uk?(this.Kc=Y.hg,d.bl&&(this.Kc|=Y.il),d.Uk&&(this.Kc|=Y.hl),this.da=Y.Xi):(this.Kc=Y.hg,this.sf=Y.Dd,this.da=Y.Gc);this.lG(b);break;case Y.Xi:e=e.current().Kr(e.Dk())>a.Uq.zH;b.GN(e);if(e)if(this.Kc===Y.il)this.jm(b,Y.Jc);else if(this.Kc===
Y.hl)this.jm(b,Y.ze);else if(e=b.timeStamp()-this.Yq>a.Uq.AH)this.gr(b),this.Ag.mi<a.Uq.vF?this.jm(b,Y.Jc):this.jm(b,Y.ze);break;default:this.gr(b),this.da=Y.Zi}}if(this.da>=Y.Yi)switch(c.Rn(this.sf),this.sf){case Y.Jc:c.data().wk(this.Bg);c.Ad(this.xb);break;case Y.ze:c.data().wk(this.Ag);c.Ad(this.xb);break;case Y.de:case Y.Dd:ef.Nr(c,b);break;default:throw Error("unexpected");}return this.da},state:function(){return this.da},Pn:function(a){this.da=a},lG:function(a){var b=a.touches()[0],c=b.location().current(),
d=b.od;this.Yq=u.m();this.Ag=new Xe(c);this.Ag.Cs(d);this.Bg=new Ye(c);this.Bg.Cs(d);this.xb=b.Ca();null!==a.ke&&(this.xb=a.ke.Ca())},jm:function(a,b){this.gr(a);this.Kc=Y.hg;this.sf=b;this.da=Y.Gc},qG:function(a,b){a.VK(b.touches()[0])},gr:function(a){var b=a.touches()[0].location().current();if(this.sf===Y.Jc||this.Kc!==Y.hg){var c=b.cg(this.Bg.start().Mb(this.Bg.ds()));this.Bg.sO(c,a.timeStamp());this.Bg.Ls(b)}if(this.sf===Y.ze||this.Kc!==Y.hg)c=this.Ag.start().jK(b),a=a.timeStamp()-this.Yq,1E-6>
a&&(a=10),this.Ag.setVelocity(c/a*1E3),this.Ag.Ls(b)},zD:function(){return this.da===Y.ed?Y.ed:Y.ye}};var Td;Td=function(a,b,c){this.ya=a;this.xa=b;this.gb=c;this.Oe=new rf;this.Ro=this.ba=null};
Td.prototype={NM:function(a){var b=a.ic().size();this.ba=a;0>=this.xa.aa&&0>=this.xa.T&&(this.xa.T=b.L,this.xa.aa=b.V)},id:function(){return this.ya},Vz:function(a){this.Ro=a},flags:function(){return this.gb},oi:function(a){this.gb|=a},U:function(a){return(this.gb&a)===a},info:function(){return this.Oe},Cr:function(a){return a.X>=this.xa.s&&a.X<=this.xa.T&&a.Y>=this.xa.u&&a.Y<=this.xa.aa},Cm:function(a,b,c,d){if(!Z.Bi(d,Z.Ss)){var e=Math.abs(b.X-c.X);b=Math.abs(b.Y-c.Y);if(Z.Bi(a,Z.Ts)&&e>b||Z.Bi(a,
Z.Us)&&b>e)d=Z.te(d,a)}return d},zr:function(){var a=Z.gh,b=this.Oe.zoom(),c=this.Oe.scroll(),d=b.tf,e=c.Ua,f=this.Ay();d<b.Oa().pc&&(a=Z.te(a,Z.Bo),a=Z.te(a,Z.$s));d>b.Oa().oc&&(a=Z.te(a,Z.Ao),a=Z.te(a,Z.Zs));e.X<f.s&&(a=Z.te(a,Z.Ui),a=this.Cm(Z.Xs,e,c.Oa().pc,a));e.Y<f.u&&(a=Z.te(a,Z.Vi),a=this.Cm(Z.Ys,e,c.Oa().pc,a));e.X>f.T&&(a=Z.te(a,Z.ih),a=this.Cm(Z.Vs,e,c.Oa().oc,a));e.Y>f.aa&&(a=Z.te(a,Z.jh),a=this.Cm(Z.Ws,e,c.Oa().oc,a));return a},sz:function(a){var b=this.info().scroll(),c=b.Oa();Z.U(a,
Z.Ui)&&b.Zf(new t(c.pc.X,b.Ua.Y));Z.U(a,Z.Vi)&&b.Zf(new t(b.Ua.X,c.pc.Y));Z.U(a,Z.ih)&&b.Zf(new t(c.oc.X,b.Ua.Y));Z.U(a,Z.jh)&&b.Zf(new t(b.Ua.X,c.oc.Y))},Ay:function(){var a=this.xa.kc().cg(this.Oe.scroll().Oa().oc);var b=this.xa.vd().cg(this.Oe.scroll().Oa().pc);b=(new N(a.X,a.Y,b.X,b.Y)).JJ(this.Oe.zoom().Lc,this.Oe.zoom().tf);a=this.xa.kc().cg(b.kc());b=this.xa.vd().cg(b.vd());b=new N(a.X,a.Y,b.X,b.Y);a=b.vd().min(this.Oe.scroll().Oa().pc);b=b.kc().min(this.Oe.scroll().Oa().oc);return new N(a.X,
a.Y,b.X,b.Y)}};var R;R={gh:0,Bt:1,NC:3,HO:4,it:8,St:16,Zt:32,ph:64,$B:128,wA:256,LO:512,Un:1024,gl:2048};var rf;rf=function(){this.rJ=new sf;this.jI=new tf;new N(0,0,0,0);this.We=[]};
rf.prototype={zoom:function(){return this.rJ},scroll:function(){return this.jI},PM:function(){},ls:function(a){return this.We.length>a?(a=this.We[a],"undefined"!==typeof a?a:null):null},mA:function(a,b){this.We[a]=b},XK:function(a){for(var b=0;b<this.We.length;++b)if("undefined"===typeof this.We[b]||null!==this.We[b]&&this.We[b].Xl===a)this.We[b]=null}};var tf;tf=function(){this.cq=new Ob;this.Bh=new t(0,0);this.Ua=new t(0,0);this.Ke=new t(0,0)};
tf.prototype={Oa:function(){return this.cq},TM:function(a){this.Bh=a},aK:function(){return this.Ua},Zf:function(a){this.Ua=a},RM:function(a){this.Ua.X=a},SM:function(a){this.Ua.Y=a},pe:function(){return this.Ke},Yz:function(a){this.Ke.X=a},Zz:function(a){this.Ke.Y=a}};var sf;sf=function(){this.cq=new uf;this.Lc=new t(0,0);this.Ie=new t(0,0);this.tf=1;this.wm=this.Jm=0};
sf.prototype={Oa:function(){return this.cq},Ji:function(a){this.Lc=a},Nn:function(a){this.tf=a},$N:function(a){this.Jm=a},orientation:function(){return this.wm},setOrientation:function(a){this.wm=a}};var Ud;Ud=function(a,b,c,d){this.Xl=a;this.fq=b;this.gq=c;this.pq=d};Ud.prototype={offset:function(){return this.pq}};var ff;ff=function(){this.P=[]};
ff.prototype={Jy:function(a){var b;switch(a.type()){case Y.ig:var c=R.NC;break;case Y.Jc:c=R.Bt;break;case Y.ze:c=R.it;break;case Y.de:c=R.St;break;default:c=0}for(b=0;b<this.P.length;++b)if(this.P[b].U(c)&&(a.type()===Y.ig&&this.P[b].Cr(a.data().Wq)||a.type()===Y.Jc&&this.Gu(this.P[b],a.data().start(),a.data().Es())||a.type()===Y.ze&&this.Gu(this.P[b],a.data().start(),a.data().Es())||a.type()===Y.de&&this.Oo(a.data().touches(),this.P[b]))){if(this.P[b].U(R.gl))break;return this.P[b]}return null},
uK:function(a,b,c){var d;for(d=0;d<this.P.length&&(!this.P[d].U(R.gl)||!this.Oo(a.touches(),this.P[d]));++d)if(this.P[d].U(R.St)&&this.P[d].U(b)&&(!c||null===a.nb||null===this.P[d].ba||u.ey(this.P[d].ba.S(),a.nb.target))&&this.Oo(a.touches(),this.P[d]))return this.P[d];return null},CJ:function(a,b){var c,d,e=[],f=!1;for(c=0;c<this.P.length;++c){for(d=0;d<a.touches().length;++d){var g=this.cp(this.P[c],a.touches()[d]);if(!e[d]&&g){if(this.P[c].U(R.gl)){f=!0;break}this.P[c].U(R.$B)&&this.P[c].U(b)&&
(e[d]=!0)}}if(f)break}for(d=0;d<a.touches().length;++d)if(!0!==e[d])return!1;return!0},cp:function(a,b,c){var d=a.ba;var e=b.location().current();e=a.Cr(e);return null!==d&&(e=u.Yk(d.ja),a.Vz(a.xa.Mb(e.X,e.Y)),(e=a.Ro.contains(b.od))&&void 0!==c&&null!==c&&!u.ey(d.S(),c))?!1:e},Gu:function(a,b,c){var d=a.ba;b=a.Cr(b);null!==d&&(d=u.Yk(d.ja),a.Vz(a.xa.Mb(d.X,d.Y)),b=a.Ro.contains(c));return b},Oo:function(a,b){var c;for(c=0;c<a.length;++c)if(!this.cp(b,a[c]))return!1;return!0},NJ:function(a,b,c){b[0]=
!1;b[1]=!1;if(1===a.touches().length){var d=a.nb;if(void 0!==d&&null!==d)var e=d.target;for(d=0;d<this.P.length;++d)if(this.cp(this.P[d],a.touches()[0],e)){if(this.P[d].U(R.gl))break;var f=!1;this.P[d].U(R.Bt)&&this.P[d].U(c)&&(f=b[0]=!0,a.gA(this.P[d].ba));this.P[d].U(R.it)&&this.P[d].U(c)&&(f=b[1]=!0,a.gA(this.P[d].ba));if(!f)break}}},clear:function(){this.P=[]},rr:function(a,b){b?this.P.push(a):this.P.unshift(a)},gM:function(a){this.P=this.P.filter(function(b){return b.ba!==a})},ic:function(a){return this.P.length>
a?this.P[a]:null},OK:function(a){for(var b=0;b<this.P.length;++b)if(this.P[b].id()===a)return this.P[b];return null},YK:function(a){for(var b=0;b<this.P.length;++b)this.P[b].info().XK(a)}};var Ob;Ob=function(){this.pc=new t(0,0);this.oc=new t(0,0)};Ob.prototype={Zg:function(a){this.pc=a},Yg:function(a){this.oc=a}};var uf;uf=function(){this.oc=this.pc=0};uf.prototype={ys:function(a){this.pc=a},xs:function(a){this.oc=a}};var vf;vf=function(){};
vf.prototype={Sg:function(a,b){null!==b.ba&&b.ba.Sg(a,b)},Fn:function(){},xr:function(){},Ei:function(a){null!==a.ba&&a.ba.Ei(a);return a.info().scroll().Bh.Mb(a.info().scroll().Ua)}};var hf;hf=function(){vf.call(this)};hf.prototype=Object.create(vf.prototype);hf.prototype.constructor=hf;var jf;jf=function(a,b){vf.call(this);b||(this.Pq=this.Ju(a.width,a.height),this.CH=this.jE())};jf.prototype=Object.create(vf.prototype);l=jf.prototype;l.constructor=jf;
l.Sg=function(a,b){var c=a.Rf();c.save();a.g.oa.g.N.Th?null!==b.info().ls(0)&&this.Fn(a,b):(this.xH(c,b),this.yH(c,b));c.restore()};l.xH=function(a,b){var c=b.xa.s,d=b.xa.u,e=b.xa.D()+1;b=b.xa.C()+1;a.fillStyle=this.CH;a.fillRect(c,d,e,b)};l.yH=function(a,b){var c=b.xa.s,d=b.xa.u,e=b.xa.D()+1,f=b.xa.C()+1;a.beginPath();a.rect(c,d,e,f);a.clip();this.Fx(a,b,null);a.drawImage(this.Pq,c,d,e,f,c,d,e,f)};
l.Fn=function(a,b){var c=a.Rf();var d=b.xa.s;var e=b.xa.u;var f=b.xa.D()+1;var g=b.xa.C()+1;c.beginPath();c.rect(d,e,f,g);c.clip();for(e=0;e<b.info().We.length;++e)d=b.info().ls(e),null!==d&&(f=a.Sd.Jn(d.Xl),f=f.xl.canvas,c.save(),this.Fx(c,b,d),c.drawImage(f,0,0),c.restore())};
l.Fx=function(a,b,c){a.translate(b.info().zoom().Lc.X,b.info().zoom().Lc.Y);a.scale(b.info().zoom().tf,b.info().zoom().tf);a.translate(-b.info().zoom().Lc.X,-b.info().zoom().Lc.Y);a.translate(null!==c&&c.fq?0:b.info().scroll().Ua.X,null!==c&&c.gq?0:b.info().scroll().Ua.Y);null!==c&&a.translate(b.xa.s-c.offset().X,b.xa.u-c.offset().Y)};
l.xr=function(a,b){var c=this.Pq.getContext("2d");c.drawImage(a.Ka.canvas,b.s,b.u,b.D(),b.C(),b.s,b.u,b.D(),b.C());c.drawImage(a.Ak().canvas,b.s,b.u,b.D(),b.C(),b.s,b.u,b.D(),b.C())};l.Ju=function(a,b){var c=window.document.createElement("canvas");c.width=a;c.height=b;return c};
l.jE=function(){var a=this.Ju(8,8),b=a.getContext("2d");b.fillStyle="#fff";b.fillRect(0,0,a.width,a.height);b.RO="#000";b.lineWidth=1;b.beginPath();b.moveTo(b.lineWidth/2,a.height);b.lineTo(b.lineWidth/2,b.lineWidth/2);b.lineTo(a.width,b.lineWidth/2);b.stroke();b.closePath();return this.Pq.getContext("2d").createPattern(a,"repeat")};l.Ei=function(a){return a.info().scroll().Bh.Mb(a.info().scroll().Ua)};var Ya,wf;wf=function(){this.Km=-1;this.Ed=!1};
Ya=function(a){this.g=a;this.$j=this.Ed=this.Vh=!1;this.gw=this.ew=this.$p=0;this.Df=null;this.kq=!1;this.Ze=[]};
Ya.prototype={hO:function(a){this.Vh||this.oG();this.Ed&&(1>a||a>da.ut?v.warn("Cannot benchmark with invalid type: "+a):(this.Ze[a].Ed=!0,this.Ze[a].Km=u.ro()))},pK:function(a,b){if(this.Ed&&!a&&(a=u.ro(),b==da.oo&&(this.gw=a-this.ew,this.ew=a),this.$j)){this.kq&&this.Ze[da.Si].Ed&&(this.$p=a-this.Ze[da.Si].Km,this.Qw(this.$p,da.Si),this.kq=!1);var c=this.Ze[b];c.Ed&&this.Qw(a-c.Km,b)}},wz:function(a){this.Ed&&(this.Df=r.uo(a),this.wx())},nO:function(a){this.Ed&&(this.Df=a,this.wx())},Hn:function(a){!this.Ed||
null===this.Df||this.Df.X<a.s||this.Df.X>a.T||this.Df.Y<a.u||this.Df.Y>a.aa||(this.Df=null,this.kq=!0)},rL:function(){return Math.round(this.$p/1E3)},sL:function(){return Math.round(this.gw/1E3)},Qw:function(a,b){a=new m(2097152,this.g.A.la,b,a&4294967295);a.YN();this.g.Yc(a)},oG:function(){var a=this.g.getConfiguration();this.Ed=a.Benchmarking||a.DebugOnlyDiagnosisDisplay;this.$j=a.Benchmarking;this.Ze.push(null);for(a=1;a<=da.ut;a++)this.Ze.push(new wf);this.Vh=!0},wx:function(){this.Ze[da.Si].Ed=
!0;this.Ze[da.Si].Km=u.ro()}};var fa;
(function(){function a(b){if(0>b)throw"Only non negative values supported";if(4294967296<=b)throw"Only values occupiing less than 32-Bit supported";}fa=function(b){if(void 0!==b)if("number"==typeof b)a(b),this.yb=b,this.Rb=0;else if(b instanceof fa)this.yb=b.yb,this.Rb=b.Rb;else throw"Unexpected initial value";else this.Rb=this.yb=0};fa.prototype={ko:function(b){if(0>b||64<=b)throw"Unexpected shift amount";if(32<b)this.ko(32),this.ko(b-32);else if(32===b)this.Rb=this.yb,this.yb=0;else{var c=this.gE(b);
var d=(c&this.yb)>>>0;this.Rb=this.Rb<<b>>>0;this.Rb=(this.Rb|d>>>32-b)>>>0;this.yb&=~c;this.yb=this.yb<<b>>>0}},vt:function(b){if("number"==typeof b)a(b),this.vt(new fa(b));else if(b instanceof fa)this.yb=(this.yb|b.yb)>>>0,this.Rb=(this.Rb|b.Rb)>>>0;else throw"Unexpected argument";},$A:function(b){return b instanceof fa?this.yb===b.yb&&this.Rb===b.Rb:!1},gE:function(b){var c,d=0;if(0===b)return 0;for(c=0;c<b-1;++c)d=(d|2147483648)>>>0,d>>>=1;return(d|2147483648)>>>0},toString:function(){return this.Rb+
" "+this.yb}}})();var xa;xa=function(){this.clear()};xa.prototype={clear:function(){this.P=[]},rr:function(a){this.P.push(a)},Yx:function(a){a.beginPath();for(var b=0;b<this.P.length;++b)a.rect(this.P[b].s,this.P[b].u,this.P[b].D(),this.P[b].C());a.clip()}};var dc;
dc=function(a,b){this.J=a;this.h=b;this.mu=[];this.Qu=[];b=this.va(this.J);for(a=0;a<this.h;++a){var c=Math.floor(b.Ia+(a+1)*(128-Math.floor(b.Ia/2))/this.h);this.mu[this.h-a-1]=this.m(b.vc,b.Jk,c,b.a);c=Math.floor(Math.floor(b.Ia/3)+Math.floor(2*a*b.Ia/(3*this.h)));this.Qu[a]=this.m(b.vc,b.Jk,c,b.a)}};
dc.prototype={xK:function(a){return this.mu[a]},Oy:function(a){return this.Qu[a]},va:function(a){var b={};var c=((a&16711680)>>16)/255;var d=((a&65280)>>8)/255;var e=(a&255)/255;var f=Math.min(c,Math.min(d,e));var g=Math.max(c,Math.max(d,e));var h=g-f;b.Ia=(f+g)/2;if(0===h)b.vc=b.Jk=0;else{b.Jk=.5>b.Ia?h/(g+f):h/(2-g-f);f=((g-c)/6+h/2)/h;var k=((g-d)/6+h/2)/h;h=((g-e)/6+h/2)/h;c===g?b.vc=h-k:d===g?b.vc=1/3+f-h:e===g&&(b.vc=2/3+k-f);0>b.vc&&(b.vc+=1);1<b.vc&&--b.vc}b.vc=Math.round(255*b.vc);b.Jk=Math.round(255*
b.Jk);b.Ia=Math.round(255*b.Ia);b.a=Math.round(((a&4278190080)>>24)/255*255);return b},m:function(a,b,c,d){var e;if(0===b)c=e=a=c;else{a/=255;b/=255;c/=255;b=.5>c?c*(1+b):c+b-c*b;var f=2*c-b;c=Math.round(255*this.Kp(f,b,a+1/3));e=Math.round(255*this.Kp(f,b,a));a=Math.round(255*this.Kp(f,b,a-1/3))}return(d<<24)+(c<<16)+(e<<8)+a},Kp:function(a,b,c){0>c&&(c+=1);1<c&&--c;return 1>6*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+(b-a)*(2/3-c)*6:a}};var Ga;Ga=function(){};
Ga.prototype={Rx:function(a,b){this.uI(a,b,90)},fz:function(a){return""!==this.xn(a)},xn:function(a){return this.FF(a)},uI:function(a,b,c){var d=new Date;d.setTime(d.getTime()+864E5*c);document.cookie=a+"="+b+"; expires="+d.toUTCString()},FF:function(a){a+="=";var b,c;var d=document.cookie.split(";");for(b=0;b<d.length;b++){for(c=d[b];" "==c.charAt(0);)c=c.substring(1);if(-1!==c.indexOf(a))return c.substring(a.length,c.length)}return""}};var Nb;Nb=function(){};
Nb.J=function(a){a=window.atob(a.substring(a.indexOf("-----BEGIN PUBLIC KEY-----")+26,a.indexOf("-----END PUBLIC KEY-----")));a=u.qM(a);return window.crypto.subtle.importKey("spki",a,{name:"RSA-OAEP",hash:"SHA-256"},!0,["encrypt"])};Nb.m=function(a,b){return window.crypto.subtle.encrypt({name:"RSA-OAEP",hash:{name:"SHA-256"}},a,b)};Nb.h=function(){var a=new Uint8Array(16);a=window.crypto.getRandomValues(a);return u.iz(a.buffer)};var bb;bb=function(a){this.sb=a.Sf();this.Fh=a.re()};bb.prototype={};
var Da;Da=function(a){this.g=a;this.mc=[]};
Da.prototype={ri:function(a){if(null!==this.g.getConfiguration()&&this.g.getConfiguration().DebugOnlyDiagnosisDisplay){this.fD();var b=13*this.mc.length+3;a.save();a.strokeStyle="rgb(0,0,0)";a.fillStyle="rgb(220,220,220)";a.font="10px Arial";a.beginPath();a.rect(10,10,150,b);a.clip();a.fillRect(10,10,150,b);a.strokeRect(10,10,150,b);a.fillStyle="rgb(0,0,0)";a.textAlign="left";a.textBaseline="top";for(b=0;b<this.mc.length;++b){var c=u.h("{0}: {1}",this.mc[b].title,this.mc[b].ah());a.fillText(c,13,
13+13*b)}a.restore()}},fD:function(){if(0===this.mc.length){var a=this.g.Pd,b=this.g.Z(),c=this;this.mc.push({title:"DPR",ah:function(){return b.Ur()?u.h("{0} (Changed)",r.we()):r.we()}});this.mc.push({title:"Canvas-Size",ah:function(){return u.h("{0}/{1}",b.cf().D(),b.cf().C())}});this.mc.push({title:"Resize-Count",ah:function(){return null!==a?a.vw:"---"}});this.mc.push({title:"Window-Size",ah:function(){return u.h("{0}/{1}",window.innerWidth,window.innerHeight)}});this.mc.push({title:"DocElem-Size",
ah:function(){return u.h("{0}/{1}",document.documentElement.clientWidth,document.documentElement.clientHeight)}});this.mc.push({title:"Last Input Reaction (*)",ah:function(){return u.h("{0}",c.g.Fd.rL())}});this.mc.push({title:"FPS (*)",ah:function(){return(1E3/c.g.Fd.sL()).toFixed(1)}})}}};var Ra;Ra=function(a){this.g=a;this.v=null;this.bp=this.Vm=!1;this.hj=this.Zb=null;this.ab=[]};
Ra.prototype={fn:function(a){(u.yo(a)||u.Qi(a)&&"touch"===a.pointerType||u.Io(a))&&this.Xr()&&this.Br(this.g.getConfiguration().CommitEditcontrolOnClickOut)},Xr:function(){return null!==this.v},open:function(a,b,c){this.v="editcontrol-inputform"===a.id?a.children[1]:a;this.Vm=b;this.PC();c.g.sa?(this.hj=c.g.ea().za(),this.hj.$z(a)):(this.Zb=c.Ka.canvas.parentNode,this.sl=a,this.Zb.appendChild(this.sl))},close:function(){null!==this.v&&(null!==this.Zb&&null!==this.sl&&this.Zb.removeChild(this.sl),
null!==this.hj&&this.hj.$z(null),this.gk());this.hj=this.sl=this.Zb=this.v=null},Br:function(a){if(!this.bp){var b=u.Jo(this.v);var c=new ub(this.v.value,this.Vm,this.g.getConfiguration().re());var d=c.length()+1;this.Vm&&(d*=2);d=p.B(d);P.B(d,this.g.A.Fa,this.g.getConfiguration().re()).Ub(c);c=new m(512,this.g.A.la,a?this.Vm?3:1:2,0);c.Eb(d);c.iA(b.lz(4));this.g.vb.push(c);a?this.bp=!0:this.close()}},lM:function(){this.bp=!1},uc:function(){return this.v},XE:function(a){null!==this.v&&(a.stopPropagation(),
27===a.keyCode?(a.preventDefault(),this.Br(!1)):13===a.keyCode&&this.Br(!0))},WE:function(a){a.stopPropagation()},ZE:function(a){a.stopPropagation()},YE:function(a){a.stopPropagation()},Eh:function(a){a.stopPropagation()},PC:function(){var a=this,b;this.ab.push({e:"keydown",Ia:function(c){a.XE(c)}});this.ab.push({e:"keyup",Ia:function(c){a.ZE(c)}});this.ab.push({e:"focus",Ia:function(c){a.WE(c)}});this.ab.push({e:"keypress",Ia:function(c){a.YE(c)}});r.Gb()?(this.ab.push({e:"pointerup",Ia:function(c){a.Eh(c)}}),
this.ab.push({e:"pointerdown",Ia:function(c){a.Eh(c)}})):(this.ab.push({e:"mouseup",Ia:function(c){a.Eh(c)}}),this.ab.push({e:"mousedown",Ia:function(c){a.Eh(c)}}),this.ab.push({e:"touchstart",Ia:function(c){a.Eh(c)}}),this.ab.push({e:"touchend",Ia:function(c){a.Eh(c)}}));for(b=0;b<this.ab.length;++b)this.v.addEventListener(this.ab[b].e,this.ab[b].Ia)},gk:function(){var a;for(a=0;a<this.ab.length;++a)this.v.removeEventListener(this.ab[a].e,this.ab[a].Ia);this.ab=[]}};var ub;
ub=function(a,b,c){c=new xf(c);this.yl=null;this.dD=b;if(null!==a)if(b){b=Array(a.length);for(c=0;c<a.length;c++)b[c]=a.charCodeAt(c);this.yl=b}else this.yl=c.cb(a)};ub.prototype={length:function(){return this.yl.length},data:function(){return this.yl},unicode:function(){return this.dD}};var xf;xf=function(a){void 0===a&&(a=null);this.tm=a};
xf.prototype={gD:function(){if(null===this.tm)try{this.tm=(new Configuration).re()}catch(a){this.tm={encode:function(){return 63}}}},cb:function(a){this.gD();return this.tm.encode(a)}};var ob;ob=function(a,b){this.yh=a;this.mE=u.m();this.SG=null!==b?b.ConnectionInfoValidTimeMsForLeaveAfterError:1E3};ob.prototype={jO:function(){return u.m()-this.mE<this.SG}};var yf;yf=function(){this.wb=[]};
yf.prototype={ZB:function(a){this.wb.push(a)},AA:function(){this.wb.splice(0,this.wb.length)},kt:function(a){this.wb.forEach(a)},jC:function(a){0<=a&&this.wb.splice(a,1)},Size:function(){return this.wb.length},JC:function(a){this.kt(function(b){b.update&&b.update(a)})},CA:function(a){a.Mg&&this.kt(function(b){a.Mg(b)})}};var ma;ma=function(a){try{this.h(a)}catch(b){throw Error("Parsing the fontstring '"+a+"' failed for the following reason: "+b);}};
ma.prototype={h:function(a){var b=null,c=null,d,e=!1,f=a.split(/\s+/);for(d=0;d<f.length;++d){var g=f[d];switch(g){case "normal":break;case "italic":case "oblique":break;case "small-caps":break;case "bold":case "bolder":case "lighter":case "100":case "200":case "300":case "400":case "500":case "600":case "700":case "800":case "900":break;default:null===c?(g=g.split("/"),g=u.bh(g[0]),"p"===g.charAt(g.length-2)&&"x"===g.charAt(g.length-1)&&(c=parseInt(g.substr(0,g.length-2),10))):(b=g,d<f.length-1&&
(b+=" "+f.slice(d+1).join(" ")),e=!0)}if(e)break}if(null===b)throw Error("Font Family/Name missing");if(null===c||isNaN(c))throw Error("Invalid or unsupported font Size");this.cB=c;this.bo=a}};var Ua;Ua=function(){yf.call(this)};Ua.prototype=Object.create(yf.prototype);l=Ua.prototype;l.constructor=Ua;l.Tk=function(a){for(var b=0;b<this.wb.length;b++)if(this.wb[b].id()===a)return b;return-1};
l.OC=function(a,b){a=this.Tk(a);if(0<=a){var c=this.wb[a];this.wb[a]=b;b.location().fA(c.location().current());b.rs(c.Ij);null!==c.mj&&null===b.mj&&b.Ks(c.mj)}};l.lt=function(a){a=this.Tk(a);return 0<=a?this.wb[a]:null};l.KC=function(a){null!==a&&a.id&&this.OC(a.id(),a)};l.kC=function(a){a=this.Tk(a);this.jC(a)};l.At=function(a){null!==a&&a.id&&this.kC(a.id())};var t;t=function(a,b){this.X=a;this.Y=b};
t.prototype={Fs:function(a){this.X-=a.X;this.Y-=a.Y;return this},cg:function(a){return this.clone().Fs(a)},min:function(a){return new t(Math.min(this.X,a.X),Math.min(this.Y,a.Y))},max:function(a){return new t(Math.max(this.X,a.X),Math.max(this.Y,a.Y))},offset:function(a){this.X+=a.X;this.Y+=a.Y;return this},Mb:function(a){return this.clone().offset(a)},DL:function(a){this.X+=a.L;this.Y+=a.V;return this},Az:function(a){return this.clone().DL(a)},fc:function(){return(this.Y>>>0&65535|this.X>>>0<<16)>>>
0},jK:function(a){return Math.sqrt(this.Kr(a))},Kr:function(a){return(this.X-a.X)*(this.X-a.X)+(this.Y-a.Y)*(this.Y-a.Y)},clone:function(){return new t(this.X,this.Y)},Kk:function(a){this.X*=a;this.Y*=a;return this},sM:function(a){return this.clone().Kk(a)},rotate:function(a,b){if(0===a%360)return this;var c=a*Math.PI/180;a=Math.cos(c);c=Math.sin(c);var d=this.X,e=this.Y;if(b){var f=b.X;b=b.Y}else f=b=0;this.X=d*a-e*c+f*(1-a)+b*c;this.Y=d*c+e*a+b*(1-a)-f*c;return this}};var N;
N=function(a,b,c,d,e){this.s=a;this.u=b;this.T=c;this.aa=d;this.dd=void 0!==e?e:null};
N.prototype={D:function(){return this.T-this.s},C:function(){return this.aa-this.u},zk:function(){return new t((this.s+this.T)/2,(this.u+this.aa)/2)},clone:function(){return new N(this.s,this.u,this.T,this.aa,this.dd)},kc:function(){return new t(this.s,this.u)},vd:function(){return new t(this.T,this.aa)},JJ:function(a,b){var c=this.size().scale(b),d=this.kc().Fs(a);b=(new w(d.X,d.Y)).scale(b);a=a.Az(b);c=a.Az(c);return new N(a.X,a.Y,c.X,c.Y)},size:function(){return new w(this.D(),this.C())},Mb:function(a,
b){return new N(this.s+a,this.u+b,this.T+a,this.aa+b,this.dd)},lz:function(a){return new N(this.s-a,this.u-a,this.T+a,this.aa+a,this.dd)},qK:function(a){return this.s===a.s&&this.u===a.u&&this.T===a.T&&this.aa===a.aa},normalize:function(){if(this.s>this.T){var a=this.T;this.T=this.s;this.s=a}this.u>this.aa&&(a=this.aa,this.aa=this.u,this.u=a)},yL:function(){var a=this.clone();a.normalize();return a},ly:function(a){return a>=this.s&&a<=this.T},my:function(a){return a>=this.u&&a<=this.aa},contains:function(a){return this.ly(a.X)&&
this.my(a.Y)}};var mb;mb=function(a){this.g=a;this.dj=null;this.$u=!1;this.vw=0;this.xw=r.we();this.Kf=new Ce(this.g)};
mb.prototype={ur:function(){var a=this;this.Kf.xe();this.dj=function(){a.uq()};window.addEventListener("resize",this.dj,!1)},detach:function(){null!==this.dj&&(window.removeEventListener("resize",this.dj,!1),this.dj=null)},xe:function(){this.Kf.xe()},uq:function(){var a=r.we(),b=this.$u?a:1;this.Kf.et()&&(a!==this.xw&&(this.$u=!0,this.xw=b=a,this.g.Z().BL()),this.vw++,this.g.Z().Lr(b),null!==this.A&&null!==this.Ib&&(a=m.va(this.g.A.la,this.g.getConfiguration().BestFit,this.g.getConfiguration().BestFitForDialogs,
this.g.getConfiguration().ScaleTypeIsotropic,this.g.Z().cf(),this.g.Z().lp,this.g.getConfiguration().FillBackground),this.g.YM(a)));this.Kf.xe()}};var w;w=function(a,b){this.L=a;this.V=b};w.prototype={scale:function(a){return new w(this.L*a,this.V*a)}};var Ce;Ce=function(a){this.g=a;this.Yp=this.Zp=this.hw=this.iw=0};
Ce.prototype={xe:function(){this.iw=window.screen.width;this.hw=window.screen.height;this.Zp=document.documentElement.clientWidth;this.Yp=document.documentElement.clientHeight},et:function(){var a,b=this.g.getConfiguration().MaxResizePixel;this.hw===window.screen.width&&this.iw===window.screen.height&&(a=!0);if(0<b)if(this.Zp!=document.documentElement.clientWidth&&this.Yp!=document.documentElement.clientHeight)a=!0;else{var c=Math.abs(this.Zp-document.documentElement.clientWidth);0<c&&c<b&&(a=!0);
c=Math.abs(this.Yp-document.documentElement.clientHeight);0<c&&c<b&&(a=!0)}return a}};var eb;eb=function(a,b,c,d){this.ka=a;this.qd=b;this.qd.clear();this.HG=u.m();this.DI=u.m();this.qE=d;this.ge=null;if(c)this.h();else{var e=this,f=function(){e.m();e.hb=window.requestAnimationFrame(f)};this.hb=window.requestAnimationFrame(f)}};
eb.prototype={close:function(){this.qd.clear();window.cancelAnimationFrame(this.hb)},m:function(){if(!(u.m()-this.DI<this.qE)){var a=this.qd.Rf(),b=this.qd.cf(),c=2*Math.PI/6,d=(2*Math.PI-5*c)/5,e=250/3,f=10+e,g=2*Math.PI*(u.m()-this.HG)/5E3,h=1;a.save();if(250>b.D()||250>b.C())h=.9*Math.min(b.D()/250,b.C()/250);a.scale(h,h);a.translate(Math.max(5,(b.D()-250)/2),Math.max(5,(b.C()-250)/2));a.strokeStyle="#a90018";a.lineWidth=4;a.strokeRect(0,0,250,250);a.fillStyle="#f4f4f4";a.fillRect(0,0,250,250);
for(b=0;5>b;++b)a.save(),a.translate(125,f),a.rotate(g+b*(c+d)),this.QE(a,c,e,"#cd001c"),a.restore();null===this.ge&&this.tE(a,250);a.font=this.ge;a.textAlign="center";a.textBaseline="bottom";a.fillStyle="#000000";a.fillText(this.ka,125,2750/12);a.restore()}},tE:function(a,b){var c=40;for(a.font=this.wv(c);2<c&&a.measureText(this.ka).width>=.95*b;)c-=2,a.font=this.wv(c);this.ge=a.font},wv:function(a){return"italic "+a+"px Arial"},QE:function(a,b,c,d){var e=.9*c;a.beginPath();a.moveTo(0,-c);a.arc(0,
0,c,-Math.PI/2,b-Math.PI/2,!1);a.lineTo(Math.sin(b)*e,-(Math.cos(b)*e));a.arc(0,0,e,b-Math.PI/2,-Math.PI/2,!0);a.lineTo(0,-c);a.closePath();a.strokeStyle=d;a.fillStyle=a.strokeStyle;a.stroke();a.fill()},h:function(){var a=this.qd.Ak();a.font="1em Arial";a.textAlign="left";a.textBaseline="top";a.fillStyle="#000";a.fillText(this.ka,20,20)}};var Ba;Ba=function(a){this.qd=a;this.kk=[]};
Ba.prototype={clear:function(){this.kk=[]},count:function(){return this.kk.length},D:function(a){return this.kk[a].X},C:function(a){return this.kk[a].Y},Qx:function(a,b,c){a=I.NB(this.qd,a,b,c);this.kk.push(a)}};var Ca;Ca=function(a){this.qd=a;this.ai=[]};
Ca.prototype={clear:function(){this.ai=[]},count:function(){return this.ai.length},xn:function(a){return this.ai[a]},xJ:function(a){this.ai.push(a.length+1);var b;for(b=1;b<=a.length;b++){var c=I.eg(this.qd.getContext(),a.substring(0,b),!0);this.ai.push(c)}a=u.Ya(this.qd);this.ai.push(a)}};var Rd;Rd=function(){this.mw=this.nw=this.ow=this.pw=this.bv=this.cv=this.fb=null};Rd.h=function(a,b,c,d,e,f){var g=new Rd;g.mw=a;g.nw=b;g.ow=c;g.pw=d;g.bv=e;g.cv=f;return g};
Rd.prototype={cn:function(a,b){null!==this.fb?this.dI(a,b):this.cD(a)},dI:function(a,b){a.translate(b.s,b.u);a.rotate(this.fb);a.translate(-b.s,-b.u)},cD:function(a){a.transform(this.mw,this.nw,this.ow,this.pw,this.bv,this.cv)}};var C;
C={eb:function(a){if(null!==a){if("false"===a.toLowerCase())return!1;if("true"===a.toLowerCase())return!0}return null},mC:function(){var a={};location.search.substr(1).split("&").forEach(function(b){b=b.split("=");a[b[0]]=b[1]});return a},$k:function(a,b){return void 0===a[b]?null:a[b]},MB:function(a){a=(new RegExp("[\\?&]"+a+"=([^&#]*)")).exec(window.location.href);return null===a?null:a[1]},tt:function(a){var b=window.WebvisuInst;return void 0===b?C.MB(a):C.$k(b.Of,a)},Ri:function(a,b,c){return null!==
C.$k(a,b)?C.eb(a[b]):c},gB:function(a,b){a=C.tt(a);return null!==a?C.eb(a):b},hB:function(a){a=C.tt(a);return null!==a?parseInt(a,10):null}};var u;u=function(){};u.mO=function(){var a=window.performance||{};a.now=function(){return a.now||a.webkitNow||a.m||a.J||a.h||function(){return(new Date).getTime()}}();return a.now()};u.to=function(a){var b=window.location;var c=b.pathname.lastIndexOf("/");-1!==c&&(a=b.pathname.substr(0,c+1)+a,"/"===a[0]&&(a=a.substr(1)));return b.protocol+"//"+b.host+"/"+a};
u.Do=function(a,b,c){var d=3,e=5;void 0===a&&(a="");void 0===d&&(d=0);void 0===e&&(e=0);void 0===b&&(b=0);void 0===c&&(c=0);a=a.split(".");b=[d,e,b,c];e=d=0;if(4!==a.length)return!1;var f=1E9;for(c=0;3>=c;c++){var g=parseInt(a[c],10);if(isNaN(g))return!1;d+=g*f;e+=b[c]*f;f/=1E3}return d>=e};u.m=function(){return(new Date).getTime()};
u.qM=function(a){if(null===a||void 0===a)return new ArrayBuffer(0);var b=new ArrayBuffer(a.length),c=new Uint8Array(b),d;var e=0;for(d=a.length;e<d;e++)c[e]=a.charCodeAt(e);return b};u.ro=function(){return 1E3*u.mO()};u.mL=function(a,b){var c=a;var d=a.indexOf("px");-1!==d&&(c=a.slice(0,d),d=c.lastIndexOf(" "),d=-1!==d?c.slice(d+1,c.length):c,c=a.replace(d,b));return c};u.Ya=function(a){return u.ef(a.getState().Lh)};u.ef=function(a){return 1.15*a};u.HL=function(a){return.15*a.getState().Lh};
u.Jo=function(a){var b=0,c=0,d=a;do b+=d.offsetLeft,c+=d.offsetTop;while(null!==(d=d.offsetParent));return new N(b,c,b+a.offsetWidth,c+a.offsetHeight)};u.cd=function(a,b){var c=b instanceof N?new t(b.s,b.u):b;a.style.position="absolute";a.style.left=Math.floor(c.X)+"px";a.style.top=Math.floor(c.Y)+"px";b instanceof N&&(a.style.width=Math.floor(b.D())+"px",a.style.height=Math.floor(b.C())+"px")};
u.h=function(a){var b=arguments;if(0===b.length)return"";var c=b[0];for(b=1;b<arguments.length;b++){var d=new RegExp("\\{"+(b-1)+"\\}","gi");c=c.replace(d,arguments[b])}return c};u.J=function(a){return a.Je instanceof nb};u.OL=function(a){return u.h("{0}/{1} {2}/{3}",a.s,a.u,a.T,a.aa)};u.Fb=function(a){return u.h("{0}/{1}",a.X,a.Y)};u.CL=function(a){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b};u.bh=function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};
u.no=function(a,b){var c=window.document.createElement("canvas");c.width=a;c.height=b;return c};u.vL=function(a,b,c){b=u.no(b,c);b.style.width="100%";b.style.height="100%";b.style.left="0px";b.style.top="0px";b.style.position="absolute";b.style.margin=0;b.style.padding=0;b.id=a;return b};u.Dy=function(a){return 0<a?Math.floor(a):Math.ceil(a)};u.Ho=function(a){return 3<=a.length&&"SVG"===a.substring(a.length-3).toUpperCase()};
u.Zk=function(a){var b=a.pageX;a=a.pageY;var c=u.Yk(u.mb());return new t(b-c.X,a-c.Y)};u.Yk=function(a){var b=a.getBoundingClientRect();a=void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft;var c=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;b=new t(b.left,b.top);r.fh()&&b.Kk(r.co());return new t(b.X+a,b.Y+c)};
u.Hy=function(a,b){a=a.getBoundingClientRect();if(b===document)return new t(a.left,a.top);b=b.getBoundingClientRect();return new t(b.left-a.left,b.top-a.top)};u.iz=function(a){var b="";a=new Uint8Array(a);var c=a.byteLength,d;for(d=0;d<c;d++)b+=String.fromCharCode(a[d]);return window.btoa(b)};u.Ox=function(a){var b=p.B(4),c=P.B(b,!0);c.tc(a.X);c.tc(a.Y);return b};u.ey=function(a,b){for(b=b.parentNode;void 0!==b&&null!==b;){if(a===b)return!0;b=b.parentNode}return!1};
u.Pi=function(a,b){var c=0,d=0;null!==a&&(""!==a.style.paddingLeft&&(c=parseInt(a.style.paddingLeft,10)),""!==a.style.paddingTop&&(d=parseInt(a.style.paddingTop,10)));for(;null!==a&&a!==b;){var e=0;void 0!==a.style&&""!==a.style.borderWidth&&(e=parseInt(a.style.borderWidth,10));a.offsetLeft&&(c+=a.offsetLeft+e);a.offsetTop&&(d+=a.offsetTop+e);a=a.parentNode}return new t(c,d)};
u.qL=function(a,b){var c=0,d=0;null!==a&&a.style&&(""!==a.style.paddingLeft&&(c=parseInt(a.style.paddingLeft,10)),""!==a.style.paddingTop&&(d=parseInt(a.style.paddingTop,10)));return new t(b.X-c,b.Y-d)};u.mb=function(){return document.getElementById("cdsRoot")};u.nL=function(a,b){a.g.sa&&(a.g.tl.Hk(),a.g.Nc.Hk(),a.g.Nc.Ng(b))};u.df=function(a){if(u.ty(a))return a.identifier;if(u.Qi(a))return a.pointerId;if(u.NL(a))return 1;throw Error("IllegalArgument!");};
u.ty=function(a){return"undefined"!==typeof Touch&&a instanceof Touch};u.yo=function(a){return 1===a.which};u.Io=function(a){return"undefined"!==typeof TouchEvent&&a instanceof TouchEvent};u.Qi=function(a){return"undefined"!==typeof PointerEvent&&a instanceof PointerEvent};u.NL=function(a){return"undefined"!==typeof MouseEvent&&a instanceof MouseEvent};u.Vk=function(a,b){b=b.split("_").slice(1);try{for(var c in b){var d=a.ie(parseInt(b[c],10));a=d.ea()}}catch(e){return null}return void 0!==d?d:null};
u.Ky=function(a,b){var c=[],d;for(d=0;d<=b-1;d++)c.push(a.getInt16());return c};u.so=function(a){return a(0,0,0,[],null,!0).Ca()};u.jo=function(a,b,c){c.Hp?(a.s+=Math.floor(a.D()/2)-Math.floor(b.L/2),a.T=a.s+b.L):c.Nq?a.s=a.T-b.L:a.T=a.s+b.L;c.kr?(a.u+=Math.floor(a.C()/2)-Math.floor(b.V/2),a.aa=a.u+b.V):c.Vo?a.u=a.aa-b.V:a.aa=a.u+b.V;return a};
u.Ps=function(a,b,c){a.D()<b.D()&&(c.Hp?a=a.Mb(Math.floor(b.D()/2)-Math.floor(a.D()/2),0):c.Nq&&(a=a.Mb(b.D()-a.D(),0)));a.C()<b.C()&&(c.kr?a=a.Mb(0,Math.floor(b.C()/2)-Math.floor(a.C()/2)):c.Vo&&(a=a.Mb(0,b.C()-a.C())));return a};u.wo=function(a){return"cdsRoot"===a.id};u.ay=function(a){return a&&"[object Date]"===Object.prototype.toString.call(a)&&!isNaN(a)};u.Wk=function(a){return"object"===typeof a&&!(a instanceof Array)&&null!==a};
u.xL=function(a){var b,c="";for(b=0;b<a.length;b++)c=0===b?c+('"'+a[b]+'"'):c+(',"'+a[b]+'"');return c};u.cz=function(a,b){for(;a.lastElementChild&&!a.lastElementChild.id.startsWith(b);)a.removeChild(a.lastElementChild)};u.va=function(a,b){return a.querySelector("#"+b)};var v,db;v=function(){this.level=db.Xk};v.m=function(a){this.level>=db.Yn&&console.info("--DEBUG--"+JSON.stringify(a))};v.info=function(a){this.level>=db.Xk&&console.info("--INFO--"+JSON.stringify(a))};
v.warn=function(a){this.level>=db.Yt&&console.warn(a)};v.h=function(a){this.level>=db.Eo&&console.info("--TRACE--"+JSON.stringify(a))};v.error=function(a){this.level>=db.ft&&console.error(a)};v.J=function(a){this.level=a};db={GO:0,aB:1,ft:2,Yt:3,Xk:4,Yn:5,Eo:6};
