From 4a1ee59bd7a203ecf3644841f2ac1ad6c465b854 Mon Sep 17 00:00:00 2001 From: Ahmet Atasoy Date: Wed, 15 Jun 2016 16:09:38 +0100 Subject: [PATCH 1/2] Feat: Adding places module --- bower.json | 2 +- package.json | 2 +- scripts/mapsjs-places.js | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 scripts/mapsjs-places.js diff --git a/bower.json b/bower.json index ea0854a..c0a005e 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "here-maps-api-scripts", - "version": "1.0.0", + "version": "1.0.1", "homepage": "https://github.com/lukemarsh/here-maps-api-scripts", "authors": [ "Luke Marsh " diff --git a/package.json b/package.json index 483d7aa..e99e5aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "here-maps-api-scripts", - "version": "1.0.0", + "version": "1.0.1", "description": "Here Maps API scripts", "repository": { "type": "git", diff --git a/scripts/mapsjs-places.js b/scripts/mapsjs-places.js new file mode 100644 index 0000000..d1cae66 --- /dev/null +++ b/scripts/mapsjs-places.js @@ -0,0 +1 @@ +H.util.eval("var Ko=/[&<>\\\"]/,Lo=/\\\"/g,Mo=/>/g,No=/b?null:ia(a)?a.charAt(b):a[b]}function Ro(a){if(!Ko.test(a))return a;-1!=a.indexOf(\"&\")&&(a=a.replace(Oo,\"&\"));-1!=a.indexOf(\"<\")&&(a=a.replace(No,\"<\"));-1!=a.indexOf(\">\")&&(a=a.replace(Mo,\">\"));-1!=a.indexOf('\"')&&(a=a.replace(Lo,\""\"));return a}\nfunction So(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function To(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Uo(a){return!(null!=a.status&&200!==a.status)};function Vo(a,b){if(null==a)throw Error({message:\"baseUrl can not be empty\"});var c,d=\"\";if(null!=b){d=[];for(c in b)b.hasOwnProperty(c)&&d.push(encodeURIComponent(c)+\"=\"+encodeURIComponent(b[c]));d=d.join(\"&\")}c=d;0a.indexOf(\"?\")?a+\"?\":a+\"&\");return a+c};var Wo=RegExp(\"^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\\\?([^#]*))?(?:#(.*))?$\");function Xo(a){if(\"function\"==typeof a.qj)return a.qj();if(ia(a))return a.split(\"\");if(ha(a)){for(var b=[],c=a.length,d=0;d2*this.W&&$o(this),!0):!1};\nfunction $o(a){if(a.W!=a.Ea.length){for(var b=0,c=0;bb.length){c.push(kp(a)+\"(\");for(var d=a.arguments,e=0;e=up(this).value)for(a=this.Dv(a,b,c),b=\"log:\"+a.Tw,ba.console&&(ba.console.timeStamp?ba.console.timeStamp(b):ba.console.markTimeline&&ba.console.markTimeline(b)),ba.msWriteProfilerMark&&ba.msWriteProfilerMark(b),b=this;b;){c=b;var d=a;if(c.Aq)for(var e=0,f=void 0;f=c.Aq[e];e++)f(d);b=b.getParent()}};\nm.Dv=function(a,b,c){var d=new mp(a,String(b),this.wn);if(c){d.$p=c;var e;var f=arguments.callee.caller;try{var g;var h=ca(\"window.location.href\");if(ia(c))g={message:c,name:\"Unknown error\",lineNumber:\"Not available\",fileName:h,stack:\"Not available\"};else{var k,l,n=!1;try{k=c.lineNumber||c.Sy||\"Not available\"}catch(p){k=\"Not available\",n=!0}try{l=c.fileName||c.filename||c.sourceURL||ba.$googDebugFname||h}catch(q){l=\"Not available\",n=!0}g=!n&&c.lineNumber&&c.fileName&&c.stack?c:{message:c.message,\nname:c.name,lineNumber:k,fileName:l,stack:c.stack||\"Not available\"}}e=\"Message: \"+Ro(g.message)+'\\nUrl: '+g.fileName+\"\\nLine: \"+g.lineNumber+\"\\n\\nBrowser stack:\\n\"+Ro(g.stack+\"-> \")+\"[end]\\n\\nJS stack traversal:\\n\"+Ro(ip(f)+\"-> \")}catch(s){e=\"Exception trying to expose exception! You win, we lose. \"+s}d.Zp=e}return d};m.Ec=function(a,b){this.log(sp,a,b)};function vp(a,b){a.log(tp,b,void 0)}var wp={},xp=null;\nfunction yp(a){xp||(xp=new op(\"\"),wp[\"\"]=xp,xp.Is(sp));var b;if(!(b=wp[a])){b=new op(a);var c=a.lastIndexOf(\".\"),d=a.substr(c+1),c=yp(a.substr(0,c));c.getChildren()[d]=b;b.Vc=c;wp[a]=b}return b};function zp(a){yb.call(this);this.headers=new Zo;this.cl=a||null}u(zp,F);zp.prototype.yb=yp(\"goog.net.XhrIo\");var Ap=/^https?$/i;m=zp.prototype;m.hd=!1;m.I=null;m.bl=null;m.Dj=\"\";m.Yq=\"\";m.Bh=\"\";m.bm=!1;m.uj=!1;m.Rm=!1;m.ie=!1;m.Vk=0;m.Ve=null;m.ws=\"\";m.Ey=!1;\nm.send=function(a,b,c,d){if(this.I)throw Error(\"[goog.net.XhrIo] Object is active with another request=\"+this.Dj+\"; newUri=\"+a);b=b?b.toUpperCase():\"GET\";this.Dj=a;this.Bh=\"\";this.Yq=b;this.bm=!1;this.hd=!0;this.I=this.cl?hp(this.cl):hp(fp);this.bl=this.cl?dp(this.cl):dp(fp);this.I.onreadystatechange=sa(this.Gr,this);try{vp(this.yb,Bp(this,\"Opening Xhr\")),this.Rm=!0,this.I.open(b,a,!0),this.Rm=!1}catch(e){vp(this.yb,Bp(this,\"Error opening Xhr: \"+e.message));Cp(this,e);return}a=c||\"\";var f=this.headers.i();\nd&&Yo(d,function(a,b){f.set(b,a)});d=Po(f.uf());c=ba.FormData&&a instanceof ba.FormData;\"POST\"!=b||d||c||f.set(\"Content-Type\",\"application/x-www-form-urlencoded;charset=utf-8\");Yo(f,function(a,b){this.I.setRequestHeader(b,a)},this);this.ws&&(this.I.responseType=this.ws);\"withCredentials\"in this.I&&(this.I.withCredentials=this.Ey);try{this.Ve&&(ba.clearTimeout(this.Ve),this.Ve=null),0 Date: Wed, 15 Jun 2016 16:50:41 +0100 Subject: [PATCH 2/2] Fix: Upgrading API scripts --- README.md | 3 + scripts/mapsjs-core.js | 570 ++++++++++++++++++------------------ scripts/mapsjs-mapevents.js | 2 +- scripts/mapsjs-service.js | 2 +- scripts/mapsjs-ui.js | 2 +- 5 files changed, 291 insertions(+), 288 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..a14860e --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +## Here Maps API scripts + +Here Maps version: 3.0 diff --git a/scripts/mapsjs-core.js b/scripts/mapsjs-core.js index de4c620..3a1d869 100644 --- a/scripts/mapsjs-core.js +++ b/scripts/mapsjs-core.js @@ -1,290 +1,290 @@ (function(){var m,aa=aa||{},ba=this;function ca(a){a=a.split(".");for(var b=ba,c;c=a.shift();)if(null!=b[c])b=b[c];else return null;return b}function da(){} function ea(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; -else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function fa(a){return void 0!==a}function ga(a){return"array"==ea(a)}function ha(a){var b=ea(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ia(a){return"string"==typeof a}function ja(a){return"function"==ea(a)}function la(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ma(a){return a[na]||(a[na]=++oa)}var na="closure_uid_"+(1E9*Math.random()>>>0),oa=0; -function qa(a,b,c){return a.call.apply(a.bind,arguments)}function ra(a,b,c){if(!a)throw Error();if(2arguments.length;f&&(b={H:y.H},c="",d=[]);Ya(b,!0,function(b,f){var k=b[f];f=Za(b,k);var l;if(l=!(la(k)&&k.window===k&&k.self===k))l=!(la(k)&&0d.indexOf(k)&&(d.push(k),e=Pa(a,k,c+"."+f,d)))return!0}});f&&(e=e?e.substr(1).replace("."+Ma[0]+".","#"):"~"+(xa(a)?$a(a)+"()":Sa(a)));return e}function Za(a,b){var c=[];Ya(a,!1,function(a,e){a[e]===b&&c.push(e)});return c.sort(ab)[0]} -function ab(a,b){return b.length-a.length}function Ya(a,b,c){var d,e;if(a){for(d in a)if((!b||a[Ma[2]](d))&&c(a,d,!0))return;for(e=Ma.length;e--&&(d=Ma[e],b&&!a[Ma[2]](d)||!c(a,d,!1)););}}function $a(a){return(a=/^\s*function ([^\( ]+)/.exec(a))?a[1]:"anonymous"}function bb(a,b,c){c[b]="#"+b};function cb(a,b,c){var d=[];1b?1:0};function zb(){0!=Ab&&(Bb[ma(this)]=this)}var Ab=0,Bb={};zb.prototype.Pp=!1;zb.prototype.e=function(){if(!this.Pp&&(this.Pp=!0,this.c(),0!=Ab)){var a=ma(this);delete Bb[a]}};zb.prototype.hd=function(a,b){this.Nh||(this.Nh=[]);this.Nh.push(sa(a,b))};zb.prototype.c=function(){if(this.Nh)for(;this.Nh.length;)this.Nh.shift()()};var Cb=0;function Db(){}m=Db.prototype;m.key=0;m.Ke=!1;m.Pi=!1;m.je=function(a,b,c,d,e,f){if(ja(a))this.Sq=!0;else if(a&&a.handleEvent&&ja(a.handleEvent))this.Sq=!1;else throw Error("Invalid listener argument");this.C=a;this.js=b;this.src=c;this.type=d;this.ta=!!e;this.Lm=f;this.Pi=!1;this.key=++Cb;this.Ke=!1};m.handleEvent=function(a){return this.Sq?this.C.call(this.Lm||this.src,a):this.C.handleEvent.call(this.C,a)};var Eb,Fb,Gb,Hb;function Ib(){return ba.navigator?ba.navigator.userAgent:null}Hb=Gb=Fb=Eb=!1;var Jb;if(Jb=Ib()){var Kb=ba.navigator;Eb=0==Jb.indexOf("Opera");Fb=!Eb&&-1!=Jb.indexOf("MSIE");Gb=!Eb&&-1!=Jb.indexOf("WebKit");Hb=!Eb&&!Gb&&"Gecko"==Kb.product}var Lb=Eb,Mb=Fb,Nb=Hb,Ob=Gb;function Pb(){var a=ba.document;return a?a.documentMode:void 0}var Qb; -a:{var Rb="",Sb;if(Lb&&ba.opera)var Tb=ba.opera.version,Rb="function"==typeof Tb?Tb():Tb;else if(Nb?Sb=/rv\:([^\);]+)(\)|;)/:Mb?Sb=/MSIE\s+([^\);]+)(\)|;)/:Ob&&(Sb=/WebKit\/(\S+)/),Sb)var Ub=Sb.exec(Ib()),Rb=Ub?Ub[1]:"";if(Mb){var Vb=Pb();if(Vb>parseFloat(Rb)){Qb=String(Vb);break a}}Qb=Rb}var Wb={}; -function Xb(a){var b;if(!(b=Wb[a])){b=0;for(var c=String(Qb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;0==b&&fc?Math.max(0,a.length+c):c;if(ia(a))return ia(b)&&1==b.length?a.indexOf(b,c):-1;for(;c=a.keyCode)a.keyCode=-1}catch(b){}};m.c=function(){};var Da={},ic={},jc={},kc={};function lc(a,b,c,d,e){if(ga(b)){for(var f=0;fe.keyCode||void 0!=e.returnValue)return!0;a:{var k=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(l){k=!0}if(k||void 0==e.returnValue)e.returnValue=!0}}k=new hc;k.je(e,this);e=!0;try{if(g){for(var n=[],p=k.currentTarget;p;p=p.parentNode)n.push(p);f=d[!0];f.bb=f.W;for(var q=n.length-1;!k.De&&0<=q&&f.bb;q--)k.currentTarget=n[q],e&=uc(f,n[q],c, -!0,k);if(h)for(f=d[!1],f.bb=f.W,q=0;!k.De&&q=e?a:1<=e?b:new F(a.x+e*c,a.y+e*d);return e};F.prototype.getNearest=F.prototype.nq;F.prototype.distance=function(a){return bd(cd(this.x-a.x,2)+cd(this.y-a.y,2))};F.prototype.distance=F.prototype.distance;function dd(a){var b=ed[a];if(!b)if(a in fd)b=ed[a]=a;else{var b=gd.length,c="",d=a.substr(0,1).toUpperCase()+a.substr(1),e="",f=!1;hd&&(e=hd+d,f=e in fd);for(;b--&&!f;)c=gd[b],e=c+d,f=e in fd;f&&(hd=c);if(b=f?e:null)ed[a]=b;else throw Error("Could not find any variant of CSS property ["+a+"]");}return b}r("H.dom.cssPrefixer.prefix",dd);var gd=["O","Ms","ms","Moz","Webkit"],ed={},hd="",fd=document.createElement("span").style;var id=Math,jd=id.random,kd=id.min,ld=id.max,Zc=id.round,$c=id.floor,ad=id.ceil,md=id.abs,nd=id.log,bd=id.sqrt,cd=id.pow,od=id.exp,pd=id.sin,qd=id.asin,rd=id.cos,sd=id.tan,td=id.atan,ud=id.atan2,vd=id.LN2,wd=id.PI,xd=wd/2,yd=wd/4,zd=2*wd,Ad=3*wd,Bd=wd/180,Cd=180/wd,Dd=1/0,Ed=cd(-2,53),Fd=Fd||function(a){return nd(a)/vd};function Gd(a,b){var c;return 0>(c=a%b)===0>b?c:c+b}function Hd(a,b,c){b-=c=c||0;a-=c;return a-$c(a/b)*b+c}r("H.math.normalize",Hd); -function Id(a,b,c){return(a-=0)>c?c:a=b-d&&a<=c+d:a>=c-d&&a<=b+d}function Kd(a,b,c,d,e,f){return bd(cd((a-e)*(d-f)-(b-f)*(c-e),2)/(cd(c-e,2)+cd(d-f,2)))}var Ld={NONE:0,Py:1,Jy:2,Oy:3}; +else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function fa(a){return void 0!==a}function ga(a){return"array"==ea(a)}function ha(a){var b=ea(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ia(a){return"string"==typeof a}function ja(a){return"function"==ea(a)}function ka(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ma(a){return a[na]||(a[na]=++oa)}var na="closure_uid_"+(1E9*Math.random()>>>0),oa=0; +function pa(a,b,c){return a.call.apply(a.bind,arguments)}function ra(a,b,c){if(!a)throw Error();if(2arguments.length;f&&(b={H:y.H},c="",d=[]);Wa(b,!0,function(b,f){var k=b[f];f=Xa(b,k);var l;if(l=!(ka(k)&&k.window===k&&k.self===k))l=!(ka(k)&&0d.indexOf(k)&&(d.push(k),e=Na(a,k,c+"."+f,d)))return!0}});f&&(e=e?e.substr(1).replace("."+Ka[0]+".","#"):"~"+(xa(a)?Ya(a)+"()":Qa(a)));return e}function Xa(a,b){var c=[];Wa(a,!1,function(a,e){a[e]===b&&c.push(e)});return c.sort(Za)[0]} +function Za(a,b){return b.length-a.length}function Wa(a,b,c){var d,e;if(a){for(d in a)if((!b||a[Ka[2]](d))&&c(a,d,!0))return;for(e=Ka.length;e--&&(d=Ka[e],b&&!a[Ka[2]](d)||!c(a,d,!1)););}}function Ya(a){return(a=/^\s*function ([^\( ]+)/.exec(a))?a[1]:"anonymous"}function $a(a,b,c){c[b]="#"+b};function ab(a,b,c){var d=[];1b?1:0};function yb(){0!=zb&&(Ab[ma(this)]=this)}var zb=0,Ab={};yb.prototype.Sp=!1;yb.prototype.e=function(){if(!this.Sp&&(this.Sp=!0,this.c(),0!=zb)){var a=ma(this);delete Ab[a]}};yb.prototype.jd=function(a,b){this.Mh||(this.Mh=[]);this.Mh.push(sa(a,b))};yb.prototype.c=function(){if(this.Mh)for(;this.Mh.length;)this.Mh.shift()()};var Bb=0;function Cb(){}m=Cb.prototype;m.key=0;m.Je=!1;m.Pi=!1;m.je=function(a,b,c,d,e,f){if(ja(a))this.Uq=!0;else if(a&&a.handleEvent&&ja(a.handleEvent))this.Uq=!1;else throw Error("Invalid listener argument");this.C=a;this.ls=b;this.src=c;this.type=d;this.ta=!!e;this.Mm=f;this.Pi=!1;this.key=++Bb;this.Je=!1};m.handleEvent=function(a){return this.Uq?this.C.call(this.Mm||this.src,a):this.C.handleEvent.call(this.C,a)};var Db,Eb,Fb,Gb;function Hb(){return ba.navigator?ba.navigator.userAgent:null}Gb=Fb=Eb=Db=!1;var Ib;if(Ib=Hb()){var Jb=ba.navigator;Db=0==Ib.indexOf("Opera");Eb=!Db&&-1!=Ib.indexOf("MSIE");Fb=!Db&&-1!=Ib.indexOf("WebKit");Gb=!Db&&!Fb&&"Gecko"==Jb.product}var Kb=Db,Lb=Eb,Mb=Gb,Nb=Fb;function Ob(){var a=ba.document;return a?a.documentMode:void 0}var Pb; +a:{var Qb="",Rb;if(Kb&&ba.opera)var Sb=ba.opera.version,Qb="function"==typeof Sb?Sb():Sb;else if(Mb?Rb=/rv\:([^\);]+)(\)|;)/:Lb?Rb=/MSIE\s+([^\);]+)(\)|;)/:Nb&&(Rb=/WebKit\/(\S+)/),Rb)var Tb=Rb.exec(Hb()),Qb=Tb?Tb[1]:"";if(Lb){var Ub=Ob();if(Ub>parseFloat(Qb)){Pb=String(Ub);break a}}Pb=Qb}var Vb={}; +function Wb(a){var b;if(!(b=Vb[a])){b=0;for(var c=String(Pb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;0==b&&fc?Math.max(0,a.length+c):c;if(ia(a))return ia(b)&&1==b.length?a.indexOf(b,c):-1;for(;c=a.keyCode)a.keyCode=-1}catch(b){}};m.c=function(){};var Da={},hc={},ic={},jc={};function kc(a,b,c,d,e){if(ga(b)){for(var f=0;fe.keyCode||void 0!=e.returnValue)return!0;a:{var k=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(l){k=!0}if(k||void 0==e.returnValue)e.returnValue=!0}}k=new gc;k.je(e,this);e=!0;try{if(g){for(var n=[],p=k.currentTarget;p;p=p.parentNode)n.push(p);f=d[!0];f.cb=f.W;for(var q=n.length-1;!k.Ce&&0<=q&&f.cb;q--)k.currentTarget=n[q],e&=tc(f,n[q],c, +!0,k);if(h)for(f=d[!1],f.cb=f.W,q=0;!k.Ce&&q=e?a:1<=e?b:new G(a.x+e*c,a.y+e*d);return e};G.prototype.getNearest=G.prototype.qq;G.prototype.distance=function(a){return ad(bd(this.x-a.x,2)+bd(this.y-a.y,2))};G.prototype.distance=G.prototype.distance;function cd(a){if(!a)throw new x(cd,0,a);return B(a,G)?a:new G(a.x,a.y)}G.fromIPoint=cd;function dd(a){var b=ed[a];if(!b)if(a in fd)b=ed[a]=a;else{var b=gd.length,c="",d=a.substr(0,1).toUpperCase()+a.substr(1),e="",f=!1;hd&&(e=hd+d,f=e in fd);for(;b--&&!f;)c=gd[b],e=c+d,f=e in fd;f&&(hd=c);if(b=f?e:null)ed[a]=b;else throw Error("Could not find any variant of CSS property ["+a+"]");}return b}r("H.dom.cssPrefixer.prefix",dd);var gd=["O","Ms","ms","Moz","Webkit"],ed={},hd="",fd=document.createElement("span").style;var id=Math,jd=id.random,kd=id.min,ld=id.max,Yc=id.round,Zc=id.floor,$c=id.ceil,md=id.abs,nd=id.log,ad=id.sqrt,bd=id.pow,od=id.exp,pd=id.sin,qd=id.asin,rd=id.cos,sd=id.tan,td=id.atan,ud=id.atan2,vd=id.LN2,wd=id.PI,xd=wd/2,yd=wd/4,zd=2*wd,Ad=3*wd,Bd=wd/180,Cd=180/wd,Dd=1/0,Ed=bd(-2,53),Fd=Fd||function(a){return nd(a)/vd};function Gd(a,b){var c;return 0>(c=a%b)===0>b?c:c+b}function Hd(a,b,c){b-=c=c||0;a-=c;return a-Zc(a/b)*b+c}r("H.math.normalize",Hd); +function Id(a,b,c){return(a-=0)>c?c:a=b-d&&a<=c+d:a>=c-d&&a<=b+d}function Kd(a,b,c,d,e,f){return ad(bd((a-e)*(d-f)-(b-f)*(c-e),2)/(bd(c-e,2)+bd(d-f,2)))}var Ld={NONE:0,Qy:1,Ky:2,Py:3}; function Md(a,b,c,d,e){for(var f=c.length,g=f,h,k,l,n=c[0],p=0,q=0,s=0,t=d/2||0,v=e?1:3;1!=p&&g>v;){h=c[--g];d=c[--g];l=c[g?g-1:(f+(g-1))%f];k=c[g?g-2:(f+(g-2))%f];if(d>=a-t&&d<=a+t&&h>=b-t&&h<=b+t||k>=a-t&&k<=a+t&&l>=b-t&&l<=b+t)p=1;else if(!p&&d===a)k===a&&(hb||h>b&&la||n>=a&&k=b?++q:++s),p=Jd(b,h,l,t)&&Kd(a,b,d,h,k,l)<=t?2:0;else if(!p&&Jd(a,d,k,t)){if(da||d>a&&kb,s+=nd||180xd&&(g=0xd?wd:0))%zd-wd)*Cd):this};Td.prototype.walk=Td.prototype.Qo;function Ud(a,b,c){var d=!!a&&!(B(a.lat=Od(a.lat))||B(a.lng=Pd(a.lng))||a.alt!==z&&B(a.alt=Qd(a.alt))||a.ctx!==z&&!Rd(a.ctx));if(!d&&b)throw new x(b,c,a);return d}Td.validate=Ud;function Vd(a){if(!a)throw new x(Vd,0,a);return A(a,Td)?a:new Td(a.lat,a.lng,a.alt,a.ctx)}Td.fromIPoint=Vd;function G(a,b,c,d){Wd(this,Od(a,G,0),Pd(b,G,1),Od(c,G,2),Pd(d,G,3))}r("H.geo.Rect",G);G.prototype.za=function(a){return this===a||!!a&&this.ga===a.ga&&this.O===a.O&&this.Z===a.Z&&this.S===a.S};G.prototype.equals=G.prototype.za;G.prototype.i=function(){return new G(this.ga,this.O,this.Z,this.S)};G.prototype.clone=G.prototype.i;function Wd(a,b,c,d,e){a.O=c;a.S=e;bthis.S};G.prototype.isCDB=G.prototype.Ef;G.prototype.vh=function(){return!this.vb()&&!this.vf()};G.prototype.isEmpty=G.prototype.vh; -G.prototype.Wi=function(a,b,c){var d=this.La();c||(a=Od(a,this.Wi,0),b=Pd(b,this.Wi,1));b=this.yd(a,b,c);a=b.La();return a.lat===d.lat&&a.lng===d.lng&&this.vf()===b.vf()&&this.vb()===b.vb()};G.prototype.containsLatLng=G.prototype.Wi;G.prototype.Ud=function(a,b){b||Ud(a,this.Ud,0);return this.Wi(a.lat,a.lng,b)};G.prototype.containsPoint=G.prototype.Ud; -G.prototype.Gl=function(a,b){var c=this.La(),d,e;if(!b&&!A(a,G))throw new x(this.Gl,0,a);e=this.zd(a,b);d=e.La();return d.lat===c.lat&&d.lng===c.lng&&this.vf()===e.vf()&&this.vb()===e.vb()};G.prototype.containsRect=G.prototype.Gl;G.prototype.yd=function(a,b,c,d){if(!c){if(B(a=Od(a)))throw new x(this.yd,0,a);if(B(b=Pd(b)))throw new x(this.yd,1,b);}return Zd(this.ga,this.O,this.Z,this.S,a,b,a,b,d)};G.prototype.mergeLatLng=G.prototype.yd; -G.prototype.mn=function(a,b,c){b||Ud(a,this.mn,0);return this.yd(a.lat,a.lng,b,c)};G.prototype.mergePoint=G.prototype.mn;G.prototype.zd=function(a,b,c){if(!b&&!A(a,G))throw new x(this.zd,0,a);return Zd(this.ga,this.O,this.Z,this.S,a.ga,a.O,a.Z,a.S,c)};G.prototype.mergeRect=G.prototype.zd;G.prototype.Rc=function(a,b,c,d,e,f){e||(a=Od(a,this.Rc,0),b=Pd(b,this.Rc,1),c=Od(c,this.Rc,2),d=Pd(d,this.Rc,3));return Zd(this.ga,this.O,this.Z,this.S,a,b,c,d,f)};G.prototype.mergeTopLeftBottomRight=G.prototype.Rc; -G.prototype.Df=function(a,b){if(!b&&!A(a,G))throw new x(this.Df,0,a);var c=this.O<=this.S,d=a.O<=a.S,e=this.Oc?360:0)}function Xd(a,b){var c=a+b/2;return c-(180p-1E-6?360:0;180>p-1E-6?(l=b,n=h):(p=360-p,l=f,n=d);p=p+e/2+g/2;360<=p+5E-7?(l=-180,n=180):p-5E-7k?-(g+a.lng):k,c=c+(0>k?2*k:0),c=-180>c?360+c:c,e=e+(0h?f+2*h:f;-90>=f&&(f=-90);return b?Wd(b,d,c,f,e):new G(d,c,f,e)}; -G.prototype.resizeToCenter=G.prototype.rs;function I(a,b){a&&de(a,I,0);this.K=null;this.Oa=a||[];this.Wd=b;this.yc=ee(this,0,this.Oa.length)}r("H.geo.Strip",I);function ee(a,b,c){a=a.Oa;var d=0;b=ld(b,0);c=kd(c,a.length);c-=2;for(b+=1;bg&&180f-g||gmd(g-f))h=f,f=g,g=h;da/b&&180a};ie.prototype.isAny=ie.prototype.tw;ie.prototype.nt=Ed; -ie.prototype.Ah=function(a){return this.nt>a};ie.prototype.isVisual=ie.prototype.Ah;ie.prototype.Ms=Ed;ie.prototype.Vm=function(a){return this.Ms>a};ie.prototype.isSpatial=ie.prototype.Vm;ie.prototype.rp=Ed;ie.prototype.Qq=function(a){return this.rp>a};ie.prototype.isAdd=ie.prototype.Qq;ie.prototype.ns=Ed;ie.prototype.xj=function(a){return this.ns>a};ie.prototype.isRemove=ie.prototype.xj;ie.prototype.tt=Ed;ie.prototype.Wm=function(a){return this.tt>a};ie.prototype.isZOrder=ie.prototype.Wm; -var je={NONE:0,VISUAL:1,SPATIAL:2,ADD:4,REMOVE:8,Z_ORDER:16};ie.Flag=je;function ke(a,b,c){ke.a.constructor.call(this,a);this.oldValue=c;this.newValue=b}u(ke,fc);r("H.util.ChangeEvent",ke);function J(a){var b;Oa(this,J);J.a.constructor.call(this);this.Hq=le++;a&&(b="min",Wa(a[b])&&(this.lb=a[b]),b="max",Wa(a[b])&&(this.Qc=a[b]),b="visibility",b in a&&(this.Md=!!a[b]),b="zIndex",b in a&&(this.ui=+a[b]||0),b="provider",b in a&&(this.R=a[b],this.ca(je.ADD)),b="data",b in a&&this.setData(a[b]))}u(J,E);r("H.map.Object",J);var me={ANY:0,OVERLAY:1,SPATIAL:2,MARKER:3,DOM_MARKER:4,GROUP:5};J.Type=me;J.prototype.d={Yt:"visibilitychange",Zt:"zindexchange"};var le=Ed;J.prototype.X=function(){return this.Hq}; -J.prototype.getId=J.prototype.X;J.prototype.lb=-1/0;J.prototype.Qc=1/0;J.prototype.Md=!0;J.prototype.setVisibility=function(a){var b=this.Md;(a=!!a)^b&&(this.Md=a,this.invalidate(je.VISUAL),this.dispatchEvent(new ke(this.d.Yt,a,b)));return this};J.prototype.setVisibility=J.prototype.setVisibility;J.prototype.getVisibility=function(a){for(var b=this,c;(c=b.Md)&&a&&(b=b.ka););return c};J.prototype.getVisibility=J.prototype.getVisibility;J.prototype.ui=z;J.prototype.fw=function(){return this.ui}; -J.prototype.getZIndex=J.prototype.fw;J.prototype.Ao=function(a){var b=this.ui;a!==b&&(this.$h(),this.ui=a,this.invalidate(je.Z_ORDER),this.dispatchEvent(new ke(this.d.Zt,a,b)));return this};J.prototype.setZIndex=J.prototype.Ao;J.prototype.dl=z;function ne(a){var b=a.dl,c,d,e;b||(c=(d=a.ui)!==z,(b=a.ka)?(b=ne(b).slice(),b[0]|=c):b=[c|0],b.push(d||0,(e=a.Ls)!==z?e:a.Hq),a.dl=b);return b}J.prototype.$h=function(){this.dl=z}; -function oe(a,b,c){if(!c||a[0]|b[0])for(var d=a.length,e=b.length,f=kd(d,e),g,h=1,k=1+c;h=a?+a:ue},function(a){return"butt"===(a=Ga(a))||"square"===a||"round"===a?a:ue},function(a){return"round"===a||"bevel"===a||"miter"===a?a:ue},function(a){return 0=a?+a:ue},function(a){return a&&a.every&&a.every(Xa)?a:ue},function(a){return B(+a)?ue:+a}]; -qe.MAX_LINE_WIDTH=100;var ve=new qe;qe.DEFAULT_STYLE=ve;function we(a){var b,c,d;if(a){b=A(a,we);for(c in a)c in this&&(d=a[c],d!==this[c]&&("fillColor"===c||0<(d=+d))&&(this[c]=d));a=b?a.Sb:!!(Ac(this.fillColor)&&this.width&&this.width);a||(this.Sb=a)}Ia(this)}r("H.map.ArrowStyle",we);we.prototype.Sb=!0;ya(we.prototype,{fillColor:"rgba(255,255,255,.75)",width:1.2,length:1.6,frequency:5});we.prototype.jq=function(){return new we(this)}; -we.prototype.za=function(a){var b=this===a;!b&&a&&(b=a.width===this.width&&a.fillColor===this.fillColor&&a.length===this.length&&a.frequency===this.frequency);return b};we.prototype.equals=we.prototype.za;function xe(a,b){var c;b&&this.Ik(b.style);a&&(this.Ff=!0);xe.a.constructor.call(this,b);b&&(c=b.arrows)&&this.Bs(c)}u(xe,J);r("H.map.Spatial",xe);xe.prototype.type=me.SPATIAL;xe.prototype.ug=0;xe.prototype.style=ve;xe.prototype.Ma=function(){return this.style};xe.prototype.getStyle=xe.prototype.Ma; -xe.prototype.Ik=function(a){var b=this.style,c=!0;a?this.style=A(a,qe)?a:new qe(a):this.style?delete this.style:c=!1;c&&(this.dispatchEvent(new ke("stylechange",this.style,b)),this.invalidate(je.VISUAL));return this};xe.prototype.setStyle=xe.prototype.Ik;xe.prototype.ev=function(){return this.df};xe.prototype.getArrows=xe.prototype.ev;xe.prototype.Bs=function(a){var b=this.df,c=!1;!a&&b?(delete this.df,c=!0):!a||b&&b.za(a)||(this.df=new we(a),c=!0);c&&"none"!==this.style.strokeColor&&this.ca(1);return this}; -xe.prototype.setArrows=xe.prototype.Bs;function ye(a,b){var c=!1,d;b!==a.bf&&(b===a.Bi?c=a.style.Sb:(c=a.style,c=c.zh||c.Sb&&a.Ff||(d=a.df||!1)&&c.uh&&d.Sb));return c&&a.getVisibility(!0)}xe.prototype.Bi=Ia([]);xe.prototype.bf=Ia([]);xe.prototype.Ff=!1;xe.prototype.uw=function(){return this.Ff};xe.prototype.isClosed=xe.prototype.uw;xe.prototype.getGeometry=xe.prototype.ee;xe.prototype.xm=function(){return Ja};xe.prototype.getLabels=xe.prototype.xm;xe.prototype.um=function(){return-1}; -xe.prototype.getHybridIdx=xe.prototype.um;function ze(a,b,c){if(!this.ww&&!this.xw)throw Error("Illegal constructor call "+Pa(ze));ze.a.constructor.call(this,a,c);this.Y(b)}u(ze,xe);r("H.map.GeoShape",ze);ze.prototype.vc=null;ze.prototype.gc=function(){return this.vc};ze.prototype.getStrip=ze.prototype.gc;ze.prototype.Y=function(a){var b;if(null!==a&&!A(a,I))throw new x(ze.prototype.Y,0,a);b=this.vc;this.vc=a;null!==b&&(this.dispatchEvent(new ke("stripchange",a,b)),this.ca(je.SPATIAL));return this};ze.prototype.setStrip=ze.prototype.Y; -ze.prototype.getBounds=ze.prototype.p;function Ae(a,b,c,d){var e=[],f=b.length,g,h;for(g=0;gf?-360:360);a.Lp=c;return e.bn(b,c+d)} -function De(a,b,c){for(var d=b,e,f=a.length+b,g,h;d--;){b=a[d];g=b.length;for(e=Array(g);g--;)h=b[g],e[g]=new F(h.x+c,h.y);a[--f]=e}};function Ee(a,b,c,d,e){this.Au=a||10;this.he=this.ah=this.ws=null;this.Hg=d||0;this.Ig=e||0;this.Uh=b||1;this.Vh=c||1;this.flush()}function Fe(a,b){for(var c,d,e,f,g,h,k,l=0,n,p,q=4,s;q--;){s=q+4;g=[];c=+!(q%3);h=b[q];for(n=(d=a[q]).length;n--;){e=d[n];if(f=e.l)for(p=f.length;p--;)((k=f[p][q])>h)-c&&(h=k);for(p=4;p--;)if(f=e[p])c?f[s]h&&g.push(f)}l+=g.length;b[q]=h;a[q]=g}l&&(b=Fe(a,b));return b} -Ee.prototype.flush=function(){this.he=this.ws=new Ge(null,0,this.Hg-this.Uh,this.Ig-this.Vh,this.Hg+this.Uh,this.Ig+this.Vh);this.ah=null};Ee.prototype.remove=function(a){var b,c=a.ls,d=c.l;if(d&&(b=d.indexOf(a),-1!==b&&(d.splice(b,1),!d.length))){delete c.l;for(var e=this.he;(d=c.Uc)&&!(c.l||c[0]||c[1]||c[2]||c[3]);)c===e&&(e=d),delete c.Uc,delete d[c.Xs],c=d;this.he=e;He(this)}(b=0<=b)&&Ie(this,a,!1);return b}; -function Ie(a,b,c){var d,e;if(d=a.ah)for(e=4;e--;)if(e%3?b[e]>=d[e]:b[e]<=d[e])if(c)d[e]=b[e];else{a.ah=null;break}}Ee.prototype.Rb=function(a,b,c,d,e,f){var g=a[8],h=a[9];f&&(d=g)&&(e=h)?b=this.Rb(Je(a,(c>=h?2:0)|b>=g),b,c,d,e,f-1):(b=new Ke(a,b,c,d,e),(a.l||(a.l=[])).push(b),Ie(this,b,!0),He(this,a));return b}; -function He(a,b){var c=a.he,d;if(b){if(d=b,d!==c)for(c=d;d=d.Uc;)if(d.l||3>!d[0]+!d[1]+!d[2]+!d[3])c=d}else for(;!c.l&&2< !c[0]+!c[1]+!c[2]+!c[3];)if(d=c[0]||c[1]||c[2]||c[3])c=d;else break;a.he=c}Ee.prototype.wb=function(a,b,c,d){var e=[];Le(this,this.he,e,a,b,c,d);return e}; -function Le(a,b,c,d,e,f,g){var h,k,l=b.l;k=b[7];var n=b[8],p=b[5],q=b[4],s=b[9],t=b[6],v;if(l)if(h=l.length,d>k||fq||gf||tg||v=n&&(e<=s&&b[1]&&Le(a,b[1],c,d,e,f,g),g>=s&&b[3]&&Le(a,b[3],c,d,e,f,g));d<=n&&(e<=s&&b[0]&&Le(a,b[0],c,d,e,f,g),g>=s&&b[2]&&Le(a,b[2],c,d,e,f,g))} -function Ge(a,b,c,d,e,f){a?(this.Uc=a,this.Xs=b,b&1?(c=a[8],e=a[5]):(c=a[7],e=a[8]),b&2?(d=a[9],f=a[6]):(d=a[4],f=a[9])):this.Xs=this.Uc=null;this[7]=c;this[5]=e;this[8]=(c+e)/2;this[4]=d;this[6]=f;this[9]=(d+f)/2}function Je(a,b){return a[b]||(a[b]=new Ge(a,b))}function Ke(a,b,c,d,e){this.id=++Me;this.ls=a;this[0]=c;this[1]=d;this[2]=e;this[3]=b}var Me=0;function Ne(a){this.Yk=new Ee(+a||10,180,90,0,0);this.Si=[];this.Sm=!1;this.Rd=this.Xe=this.K=null}m=Ne.prototype;m.ae=0;m.Ef=function(){return this.Sm}; -m.p=function(){var a,b,c;if(!this.K){c=[];var d;if(d=!this.Xe){a=this.Yk;var e;!(e=a.ah)&&(d=a.he,d.l||d[0]||d[1]||d[2]||d[3])&&(e=[d],e=Fe([e,e,e,e],[d[6],d[7],d[4],d[5]]),a.ah=e);d=a=e}d&&(this.Xe=new G(-a[0],a[3],-a[2],a[1]));(b=this.Xe)&&c.push(b);var f,g,h,k;if(!this.Rd&&(k=(g=this.Si).length)){a=90;d=360;e=-90;for(f=0;k--;)h=g[k],a=kd(a,h[0]),d=kd(d,h[3]),e=ld(e,h[2]),f=ld(f,h[1]);this.Rd=new G(-a,d,-e,f-360)}(b=this.Rd)&&c.push(b);if(b=c[0])c[1]&&(b=b.zd(c[1],!0)),this.K=b}return this.K}; -m.Rb=function(a,b,c,d,e){e?(e=new Ke(null,d,-a,b+360,-c),this.Si.push(e),this.Sm=!0,this.Rd&&this.Rd.Rc(a,b,c,d,!0,this.Rd)):(e=this.Yk,e=e.Rb(e.ws,b,-a,d,-c,e.Au),this.Xe&&this.Xe.Rc(a,b,c,d,!0,this.Xe));++this.ae;this.K=null;return e};m.Cf=function(a){var b=a.lng;a=a.lat;return this.Rb(a,b,a,b,!1)};function Oe(a,b){var c=b.hc(),d=b.ec(),e=b.Ef();return e?a.Rb(c.lat,d.lng,d.lat,c.lng,e):a.Rb(c.lat,c.lng,d.lat,d.lng,e)} -m.remove=function(a){var b,c=!1;if(a.ls)c=this.Yk.remove(a),this.Xe=null;else if(a=(b=this.Si).indexOf(a),c=0<=a)b.splice(a,1),this.Sm=0e||gd||hn[c-1]?360:-360,k.push(n[c-2],n[c-1],n[c],n[c+1]));e.push(k)}l=e}return l};function Xe(a,b){Xe.a.constructor.call(this,!0,a,b)}u(Xe,ze);r("H.map.Polygon",Xe);Xe.prototype.ww=!0;Xe.prototype.p=function(){var a,b,c,d;if(!(a=this.Ac)){if(b=this.gc())if(a=b.p())(c=b.lj(!0))&&(d=b.pq())&&(a=a.zd(ae([b.$g(0),b.$g(d-1)],!0),!0)),360===a.vb()&&1===c%2&&(a=a.yd(this.Gf?90:-90,0));this.Ac=a||null}return a};Xe.prototype.getBounds=Xe.prototype.p; -Xe.prototype.ee=function(a){var b,c,d,e=a.pj(),f,g,h,k;d=Ye(this);d=Ae(this,d,!0,e);f=this.p();g=this.gc().lj(!0);h=this.Gf;k=a.oj();if(360===f.vb()&&1==g%2){var l;d[0][1].x>d[0][d[0].length-1].x&&(d[0]=d[0].reverse());b=[];c=d[0].length-1;for(g=0;gg?g=k:kh?h=l:ld&&-180==a.O&&(a=new G(a.ga,180,a.Z,a.S));360>d&&180==a.S&&(a=new G(a.ga,a.O,a.Z,-180));if(a.Ef()){h=c.length;var l;d=-1;f=fe;for(e=0;ef?-k:k),e=0a.vb()&&a.Ud(new Td(a.ga,180))&&(c=kf([].concat(c),a.S),b.push(c));return b}Xe.prototype.clip=function(){var a=Xe.prototype.clip,b=y.console;!Bc&&b&&b.warn&&(a=Pa(a)+" is deprecated and will be removed soon. ",b.warn(a));return Ye(this)};Xe.prototype.clip=Xe.prototype.clip; -function kf(a,b){for(var c=[],d=Number.POSITIVE_INFINITY,e=-1,f,g=a.length,c=0;cd;d+=120)e.eo(b,d-180,z);else for(b=this.sk,b=360/b;360>d;d+=b)e.Ge(a.Qo(d,c,!0));return e};function mf(a,b){var c,d=a;if(!A(d,Element)){nf.innerHTML=d;d=nf.firstElementChild;if(!d)throw new x(mf,0,"No element data");nf.removeChild(d);c=!0;nf.innerHTML=""}this.Fl=0!==Hc(d).length;this.Up=c?d:Ic(d,y.document,this.Fl);b&&(c="onAttach",c in b&&Ra(d=b[c],"Function",mf,1,c)&&(this.An=d),c="onDetach",c in b&&Ra(d=b[c],"Function",mf,1,c)&&(this.En=d))}r("H.map.DomIcon",mf);var nf=document.createElement("DIV");mf.prototype.An=null;mf.prototype.En=null; -mf.prototype.jq=function(a,b){return Ic(this.Up,b,this.Fl)};mf.prototype.Fl=!1;function of(a,b){this.w=+a;this.h=+b}r("H.math.Size",of);function pf(a,b){var c,d,e,f,g,h,k;f=a;var l=b||[];if(a!==rf.NONE){c=d=l.length;if(-1===this.gy.indexOf(f))throw new x(pf,0,a);if(!l)throw new x(pf,1,l);for(;d--;)if(B(l[d]))throw new x(pf,1,l);f===rf.RECT&&3',size:new of(28, -36),anchor:new F(14,32),hitArea:new pf(3,[0,16,0,7,8,0,18,0,26,7,26,16,18,34,8,34])};function uf(a,b){uf.a.constructor.call(this,a,b)}u(uf,sf);r("H.map.DomMarker",uf);uf.prototype.type=me.DOM_MARKER;uf.prototype.ug=2;uf.prototype.Hp=function(a){var b=new mf(a.$s,a);a=a.anchor;b.Up.style.margin=-a.y+"px 0 0 -"+a.x+"px";return b};uf.prototype.Fq=mf;function vf(a,b,c,d){vf.a.constructor.call(this,a,b,c);this.modifiers=d}u(vf,ke);r("H.map.ChangeEvent",vf);vf.prototype.FOV=1;vf.prototype.PITCH=2;vf.prototype.POSITION=4;vf.prototype.ROLL=8;vf.prototype.SIZE=16;vf.prototype.YAW=32;vf.prototype.ZOOM=64;r("H.util.Disposable",zb);zb.prototype.hd=zb.prototype.hd;zb.prototype.addOnDisposeCallback=zb.prototype.hd;function wf(a){a&&"function"==typeof a.e&&a.e()}r("H.util.dispose",wf);function xf(){}r("H.util.ICapturable",xf);xf.prototype.ta=function(){};xf.prototype.capture=xf.prototype.ta;function yf(a,b){var c=a.f(),d=c.ownerDocument;yf.a.constructor.call(this);this.b=a;this.aa=c=c.appendChild(zf(d,"DIV","position:absolute;bottom:4em;left:0.5em;z-index:1;height:0px"));this.ul=zf(d,"DIV","position:absolute;top:0px;pointer-events:none;",Af);this.hu=c.appendChild(this.ul).firstChild.firstChild.style;c=c.appendChild(zf(d,"DIV","-webkit-touch-callout: none;-webkit-user-select:none;-khtml-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select:none;whiteSpace:nowrap;position:relative;top:2.2em;padding-left:1px")); -this.Il=c.appendChild(zf(d,"SPAN"));this.Il.setAttribute("unselectable","on");this.ct=c.appendChild(zf(d,"A","color:inherit","Terms of use"));this.ct.target="_blank";this.Sx=c=c.appendChild(zf(d,"SPAN","color:inherit"," | "));this.Tx=c.appendChild(function(){var a=zf(d,"A","color:inherit","Report image");a.target="_blank";return a}());this.Xq=Bf.slice();this.Hk(b);this.rg=w(this.rg,this);this.Tc=w(this.Tc,this);this.b.addEventListener(this.b.d.gp,this.rg);this.b.u.addEventListener("add",this.Tc); -this.b.u.addEventListener("remove",this.Tc);this.b.u.addEventListener("set",this.Tc);this.Tc()}u(yf,zb);r("H.map.Imprint",yf);var Cf=La("font href invert reportHref"),Bf=La("11px Arial,sans-serif;http://here.com/terms;;http://here.com/",";");yf.prototype.Hk=function(a){var b=Cf.length,c,d,e;a||(this.Xq=Bf.slice());for(e=this.Xq;b--;)c=Cf[b],d=a&&c in a?e[b]=a[c]:e[b],2===b?(this.hu.fill=d?"#FFF":"#1B468D",this.aa.style.color=d?"#FFF":"#333",this.Tq=d):1===b?this.ct[c]=d:this.aa.style[c]=d}; -yf.prototype.setOptions=yf.prototype.Hk;function zf(a,b,c,d){a=a.createElement(b);c&&(a.style.cssText=c);d&&(a.innerHTML=d);return a}yf.prototype.f=function(){return this.aa};yf.prototype.getElement=yf.prototype.f;yf.prototype.rg=function(){var a=Bf[3],b=this.b,c=this.Tx,d=this.Sx,e;b.ib().type===Df?d.style.display="none":(b=b.M.Gc(),e=b.position,d.style.display="inline",c.href=a+[e.lat,e.lng,22,b.yaw,90+b.pitch].join()+",panorama.day,report");this.Il.innerHTML=this.bp+" "+this.ua()+" | "}; -yf.prototype.Tc=function(){this.rg();setTimeout(this.rg,5E3)}; -var Af='',Ef= -"1987–"+ld(2015,(new Date).getFullYear())+" HERE";yf.prototype.ua=function(){var a=this.b,b=a.getZoom(),c=a.Fm(),a=a.u,d=a.l.length,e={},f=0,g,h,k,l=[Ef];if(c)for(;ff?Nf(b,!0):Nf(b)):a.bifocal&&!b.bifocal?(d=Nf(b),e=Nf(a).distance(d),f=Nf(a,!0).distance(d),c=e>f?Nf(a,!0):Nf(a)):(c=a,d=b),e=c.x-d.x,c=c.y-d.y,c=new Jf(e,c)):c=new Jf(0,0);return c} -function Of(a){var b;if(!a||B(a.bx)||B(a.by))return 0;b=a.bx-a.x;a=a.by-a.y;return bd(b*b+a*a)}function Mf(a){var b,c;!a||B(a.bx)||B(a.by)||(b=a.x-a.bx,c=a.y-a.by,b=new F(a.x-b/2,a.y-c/2));return b}function Nf(a,b){return b?new F(a.bx,a.by):new F(a.x,a.y)}m=Kf.prototype;m.start=function(a,b){if(B(a))throw new x(this.start,0,a);this.ai&&this.clear();this.Rw=a;this.ai=!0;this.yh=!!b}; -m.Us=function(a,b,c,d,e){var f=B(a)?0:B(b)?1:null!=c&&B(c)?2:null!=d&&B(d)?3:null!=e&&B(e)?4:z;if(0<=f)throw new x(this.Us,f,arguments[f]);this.ai&&(e=e||(new Date).getTime(),this.ye=this.Lb,this.Lb={x:a,y:b,bx:null!=c?c:NaN,by:null!=d?d:NaN,ts:e,bifocal:null!=c&&null!=d},this.yh&&this.pb.push(this.Lb))};m.clear=function(){this.pb=[];this.yh=this.ai=!1;this.Lb=this.ye=null};m.rj=function(a){if(B(a))throw new x(this.rj,0,a);return!!(this.Rw&a)};m.Tb=function(){return this.ai}; -m.qm=function(){var a=this.pb.length,b=0,c=new Jf(0,0);if(this.yh)for(;--a&&b=this.Nw&&a-c.ts<=this.uy?b>this.nr?this.nr:b:0}; -m.iq=function(a){var b;b=this.Lb;var c;if(B(a))throw new x(this.iq,0,a);b&&this.ye&&(b=Of(this.ye),0!==b&&(c=Of(this.Lb),a=nd(cd(2,a)*(c/b))/vd));return a};function Pf(a,b,c,d){this.left=+a;this.top=+b;this.right=+c;this.bottom=+d}r("H.math.Rect",Pf);Pf.prototype.set=Pf;Pf.prototype.set=Pf.prototype.set;Pf.prototype.hc=function(){return this.qi||(this.qi=new F(this.left,this.top))};Pf.prototype.getTopLeft=Pf.prototype.hc;Pf.prototype.ec=function(){return this.Dg||(this.Dg=new F(this.right,this.bottom))};Pf.prototype.getBottomRight=Pf.prototype.ec;Pf.prototype.Xi=function(a,b){return this.left<=a&&this.right>=a&&this.top<=b&&this.bottom>=b}; -Pf.prototype.containsXY=Pf.prototype.Xi;function Qf(a,b){return new Pf(a.x,a.y,b.x,b.y)}Pf.fromPoints=Qf;Pf.prototype.i=function(){return new Pf(this.left,this.top,this.right,this.bottom)};Pf.prototype.clone=Pf.prototype.i;function Rf(a,b,c){this.Fh=a;this.ng=b;this.fj=!(!c||!c.enableSubpixelRendering);this.ownerDocument=b.El.ownerDocument;this.gn={}}u(Rf,zb); -Rf.prototype.F=function(a,b,c,d,e,f){var g,h,k=this.Fh,l,n,p,q=this.fj,s;this.Ax=g=this.gn;this.gn=h={};if(d>=k.min&&d<=k.max&&(l=this.Zp(a,d,e,f),n=l.markers,a=n.length))for(n.sort(pe),d=this.ng,d.setOpacity(k.opacity),k=0;k=a?90:1<=a?-90:Cd*(2*td(od(wd*(1-2*a)))-xd)};Yf.qt=function(a){return 360*(1===a?1:Gd(a,1))-180}; -Yf.ha=function(a,b,c){c?(c.lat=Yf.st(b),c.lng=Yf.qt(a)):c=new Td(Yf.st(b),Yf.qt(a));return c};Yf.xyToGeo=Yf.ha;Yf.Xf=function(a,b){return Yf.ha(a.x,a.y,b)};Yf.pointToGeo=Yf.Xf;function Zf(a,b){this.projection=a||Yf;this.U=0;this.pi=this.exp=nd(b||256)/vd;$f(this);this.y=this.x=0}r("H.geo.PixelProjection",Zf);Zf.prototype.ma=function(a){if(B(a))throw new x(this.ma,0,a);var b=this.x/this.w,c=this.y/this.h;this.U=a;this.pi=this.exp+a;$f(this);this.x=b*this.w;this.y=c*this.h};Zf.prototype.rescale=Zf.prototype.ma;function $f(a){30=k.min&&d<=k.max&&(l=k.Zh(a,d,e,f),n=l.overlays,a=n.length))for(n.sort(pe),d=this.Eb,e=this.fj,ka=k.opacity,k=0;k=s.x&&(q.x-=p),p*=-((q.x+s.x)/p>>1),q.x+=p,q.add(b),s.x+=p,s.add(b),e||(q.round(),s.round()),(p=g[t=f.X()])?delete g[t]:p={rx:f},h[t]=p,v=q.x,q=q.y,C=s.x,s=s.y,R=C-v,Z=s-q,d.setOpacity(f.nj()* -ka),d.Zd(f.rd(),v,q,R,Z),p.Rl?p.Rl.set(v,q,C,s):p.Rl=new Pf(v,q,C,s),this.nk.push(p);return!l||l.requested&&l.requested===l.total||!l.requested&&n.length===l.total};fg.prototype.Ba=function(a,b,c){for(var d=this.nk,e=d.length,f,g,h;e--;)if(f=d[e],g=f.Rl,g.Xi(a,b))if(f=f.rx,h)h.push(f);else if(h=[f],c)break;return h||Gc};fg.prototype.c=function(){this.nk=null;fg.a.c.call(this)};var hg,ig=function(){function a(){}for(var b,c,d,e=La("o ms moz webkit "),f=5;f--&&!b;)b=e[f],b=(c=y[b+(b?"R":"r")+"equestAnimationFrame"])&&!B(c.call(window,a))&&(d=y[b+(b?"C":"c")+"ancelAnimationFrame"]);hg=b?function(a){return c.call(y,a)}:function(a){return y.setTimeout(a,25)};return b?function(a){return d.call(y,a)}:function(a){return y.clearTimeout(a)}}(),jg=y.performance&&y.performance.now?function(){return y.performance.now()}:function(){return Date.now()};function kg(a,b,c,d){var e=new Pf(0,0,0,0);kg.a.constructor.call(this);this.va=d.pixelRatio;this.ti={1:e.i(),2:e.i(),4:e.i()};this.cc=a;if(!a)throw new x(kg,0,a);lg(this);a.addEventListener(a.d.N,this.Rf,!1,this);this.cd=w(this.cd,this);this.Lc=w(this.Lc,this);this.endInteraction=w(this.endInteraction,this);a.startInteraction=this.cd;a.interaction=this.Lc;a.endInteraction=this.endInteraction;this.Ye=b;if(!b)throw new x(kg,1,b);this.bd=w(this.bd,this);this.control=w(this.control,this);this.endControl= -w(this.endControl,this);b.startControl=this.bd;b.control=this.control;b.endControl=this.endControl;b.addEventListener(b.d.N,this.gk,!1,this);this.Vg=c;if(!c)throw new x(kg,2,c);}u(kg,E);r("H.map.render.RenderEngine",kg);kg.prototype.getBBox=kg.prototype.qd; -function lg(a){var b=a.cc,c=b.width,d=b.height,e=b.padding,f=e.top,g=e.left,h=e.bottom,e=e.right,b=b.margin,k=-(c+g-e)/2<<0,l=-(d+f-h)/2<<0,c=c+k,d=d+l,n=a.ti;a=a.va;n[1].set((k-b)*a,(l-b)*a,(c+b)*a,(d+b)*a);n[2].set(k*a,l*a,c*a,d*a);n[4].set((k+g)*a,(l+f)*a,(c-e)*a,(d-h)*a)}kg.prototype.Rf=function(){lg(this)}; -kg.prototype.c=function(){var a=this.Ye,b=this.cc;a.removeEventListener(a.d.N,this.gk,!1,this);a.startControl===this.bd&&(a.startControl=mg.prototype.bd);a.control===this.control&&(a.control=mg.prototype.control);a.endControl===this.endControl&&(a.endControl=mg.prototype.endControl);b.removeEventListener(b.d.N,this.Rf,!1,this);b.startInteraction===this.cd&&(b.startInteraction=ng.prototype.cd);b.interaction===this.Lc&&(b.interaction=ng.prototype.Lc);b.endInteraction===this.endInteraction&&(b.endInteraction= -ng.prototype.endInteraction)};kg.prototype.getCamForBounds=kg.prototype.tf;kg.prototype.ta=function(){return null};kg.prototype.setPointer=kg.prototype.setPointer;function og(a,b){a.style.transition="opacity 1.5s";a.addEventListener("transitionend",function(){b()},!1);a.style.opacity=0}var pg={ZOOM:1,HEADING:2,TILT:4,INCLINE:8,COORD:16};kg.InteractionModifiers=pg;kg.prototype.d={np:"render"};var qg={P2D:0,PANORAMA:1};kg.EngineType=qg;r("H.util.animation.ease.LINEAR",function(a){return a});r("H.util.animation.ease.EASE_IN_QUAD",function(a){return a*a});function rg(a){return-a*(a-2)}r("H.util.animation.ease.EASE_OUT_QUAD",rg);r("H.util.animation.ease.EASE_IN_OUT_QUINT",function(a){a*=2;return 1>a?cd(a,5)/2:(a-=2,cd(a,5)/2+1)});r("H.util.animation.ease.EASE_OUT_CIRC",function(a){return bd(2*a-a*a)});function sg(a,b,c,d){if(!xa(this.Ay=a))throw new x(sg,0,a);if(B(this.Vl=+b))throw new x(sg,1,b);if(!xa(this.ur=c)&&null!=c)throw new x(sg,2,c);if(!xa(this.Tp=d)&&null!=d)throw new x(sg,3,d);this.id=Ec++;this.vd=!1}r("H.util.animation.Animation",sg);sg.prototype.start=function(){var a=this,b,c=hg,d;d=function(){var e=jg(),f=e-a.ki,g=f/a.Vl,g=1n)return!0;e=h.Gd(a,k,e,f);a=e.total;e=e.tiles;f=e.length;this.Ce=c;this.ay=b;this.Ro=k;t!==p&&s.setOpacity(p);c=d=d*v/(cd(2,k)*d);this.Xl||(d%1&&(d=$c(d),v=c/d,C/=v,R/=v,v=cd(2,k)*d),C=$c(C),R=$c(R));this.Rx=c;k=-d;g=q+d;for(h=0;hk;)s.Zd(l,t,p,d,d);for(t=c;(t+=v)=h&&(l%=h);0>l&&(l=h+l);(h=this.Yr[this.Ro+"_"+l+"_"+g])&&h.Ba&&(k=h.Ba((a-d*f)/e,(b-d*g)/e,c))}return k||Gc};function ug(a,b){if(B(this.ll=+a))throw new x(ug,0,a);this.Mk=this.Vl=0;b&&this.Fs(b)}r("H.util.kinetics.KineticMove",ug);ug.prototype.Fs=function(a){this.Mk=a;this.Vl=this.lq();return this};ug.prototype.setInitialSpeed=ug.prototype.Fs;ug.prototype.lq=function(){return Math.abs(this.Mk/this.ll)};ug.prototype.getDuration=ug.prototype.lq;ug.prototype.om=function(a){return this.Mk+this.ll*a};ug.prototype.getCurrentSpeed=ug.prototype.om;ug.prototype.nv=function(a){return this.Mk*a+this.ll*a*a/2}; -ug.prototype.getCurrentPath=ug.prototype.nv;var vg=pc;r("H.util.events.listenOnce",vg);r("H.util.events.dispatchEvent",wc);r("H.util.events.fireListeners",function(a,b,c,d){var e=ic;return b in e&&(e=e[b],c in e)?uc(e[c],a,b,c,d):!0});var wg=lc;r("H.util.events.listen",wg);var xg=qc;r("H.util.events.unlisten",xg); -var yg=vc,vc=function(a,b){var c,d,e,f=!0;c=b[b.currentTarget===b.target?"AT_TARGET":a.ta?"CAPTURING_PHASE":(d=!0,"BUBBLING_PHASE")];if(!d||"pointerenter"!==(e=b.type)&&"pointerleave"!==e)b.eventPhase=c,f=yg(a,b),d&&a.src.Kc&&null===a.src.Kc()&&delete b.eventPhase;return f};function mg(){mg.a.constructor.call(this);this.qb={};this.zk={position:new Td(0,0),pitch:0,yaw:0,roll:0,fov:70};this.Le=0}u(mg,E);r("H.map.ViewModel",mg);mg.prototype.d={N:"update",zg:"sync"};mg.prototype.hl=La("position pitch yaw roll fov zoom");var zg=La("fov pitch position roll yaw zoom").reduce(function(a,b){a[b]=vf.prototype[b.toUpperCase()];return a},{}); -function Ag(a,b,c,d){var e=d.length,f,g,h;a.ni=0;a.yn={};for(a.wn={};e--;)if(f=d[e],h=c[f],g=b[f],null!=h){if(a.yn[f]=g,a.wn[f]=h,b[f]=h,Sd(h)&&Sd(g)&&(h.lat!==g.lat||h.lng!==g.lng)||!Sd(h)&&h!==g)a.ni|=zg[f]}else delete b[f];return b}mg.prototype.Gc=function(){return Ag(this,{},this.zk,this.hl)};mg.prototype.getCameraData=mg.prototype.Gc; -mg.prototype.Zc=function(a){var b,c=a.animate;if(!a)throw new x(this.Zc,0,a);if((b=a.position)&&!Sd(b))throw new x(this.Zc,0,"position");this.qb.zoom=B(a.zoom)?B(this.qb.zoom)?this.Le:this.qb.zoom:a.zoom;b=this.qb.zoom;a=Ag(this,{},a,this.hl);this.qb={animate:c,zoom:b,camera:a};this.dispatchEvent(new Bg(this.qb));return this};mg.prototype.setCameraData=mg.prototype.Zc; -mg.prototype.Tk=function(a){var b=a.zoom;Ag(this,this.zk,a,this.hl);b!==this.Le&&(this.ni|=zg.zoom);this.yn.zoom=this.Le;this.wn.zoom=b;this.Le=null!=b?b:this.Le;this.zk.zoom=this.Le;this.qb={};this.dispatchEvent(new vf(this.d.zg,this.wn,this.yn,this.ni))};mg.prototype.setZoom=function(a,b){if(B(a=+a))throw new x(this.setZoom,0,a);this.qb={animate:b,zoom:a,camera:this.qb.camera||this.zk};this.dispatchEvent(new Bg(this.qb))};mg.prototype.setZoom=mg.prototype.setZoom;mg.prototype.getZoom=function(){return this.Le}; -mg.prototype.getZoom=mg.prototype.getZoom;mg.prototype.Sv=function(){var a=this.qb.camera;a.zoom=Wa(this.qb.zoom)?this.qb.zoom:a.zoom;return a};mg.prototype.getRequestedCameraData=mg.prototype.Sv;mg.prototype.startControl=mg.prototype.bd;mg.prototype.control=mg.prototype.control;mg.prototype.endControl=mg.prototype.endControl;function Bg(a){Bg.a.constructor.call(this,mg.prototype.d.N);this.requested=a}u(Bg,fc);function L(a,b,c,d){var e;L.a.constructor.call(this,a,b,c,d);this.ze=new F(0,0);if(e=d.renderBaseBackground)this.Ox=e.lower,this.Nx=e.higher;this.Xl=!!d.enableSubpixelRendering;this.py=1E3;this.Eh=this.U=0;this.To=this.Vq=!1;this.qc=new F(0.5,0.5);this.Xb=nd(this.va)/vd;this.Ya=new Kf;this.Ia=d=new cg;this.zn=w(this.zn,this);d.addEventListener(d.d.$o,this.zn);this.B=new Zf;d=a.element;this.Gh=a=d.ownerDocument.createElement("div");a.style.position="absolute";a.style.width=a.style.height="100%";a.style.zIndex= -0;d.insertBefore(a,d.firstChild);this.Eb=new Vf(this.Gh,1,1,this.va);Cg(this);c.addEventListener("update",this.xr,!1,this);c.addEventListener(c.d.wg,this.Gn,!1,this);c.addEventListener(c.d.yg,this.Hn,!1,this);c.addEventListener(c.d.Ci,this.Br,!1,this);this.mo=w(L.prototype.mo,this);this.j=Dg;this.qs();this.U=Eg(this,this.Ye.getZoom()+this.Xb);Fg(this);Gg(this,b.Gc().position,this.U);this.fb();this.Rf()}u(L,kg);r("H.map.render.p2d.RenderEngine",L);L.prototype.type=qg.P2D;L.prototype.type=L.prototype.type; -var Dg=2;L.prototype.Gg=If;L.prototype.getState=function(){return this.j};L.prototype.getState=L.prototype.getState;function Hg(a,b,c){b=c-b;return md(b)a)throw new x(this.ys,1,"positive number required");this.yi=a};L.prototype.setAnimationDuration=L.prototype.ys;L.prototype.cv=function(){return this.yi};L.prototype.getAnimationDuration=L.prototype.cv;L.prototype.zi=rg;L.prototype.zs=function(a){if(!xa(a))throw new x(this.zs,1,"function required");this.zi=a}; -L.prototype.setAnimationEase=L.prototype.zs;L.prototype.dv=function(){return this.zi};L.prototype.getAnimationEase=L.prototype.dv;L.prototype.qs=function(){this.zi=rg;this.yi=300};L.prototype.resetAnimationDefaults=L.prototype.qs;m=L.prototype;m.xr=function(){Ng(this)};m.Gn=function(a){var b=a.added;a=a.idx;Pg(this,a,b);0===a&&(Fg(this),Qg(this,b,!0));Rg(this);Ng(this)}; -m.Hn=function(a,b){var c=a.removed,d=a.idx,e;this.Uq=jg();(e=this.Vf.wa.splice(d,1)[0])&&e.e&&e.e();(e=this.ce.wa.splice(d,1)[0])&&e.e&&e.e();(e=this.eg.wa.splice(d,1)[0])&&e.e&&e.e();(e=this.Hd.wa.splice(d,1)[0])&&e.e&&e.e();this.Jf=this.Vg.kd();0===d&&(Qg(this,c,!1),Fg(this));Rg(this);b||Ng(this)};m.Br=function(a){this.Hn(a,!0);this.Gn(a)}; -function Cg(a){var b=a.Vg.kd(),c=0,d=b.length,e;[a.Vf={},a.ce={},a.eg={},a.Hd={}].forEach(function(a){a.Xg=[];a.wa=[]});for(a.Jf=b;c=d.w&&(f.lng=-(c.lng=180));return $d(f,c)};L.prototype.getBBox=L.prototype.qd; -L.prototype.Ba=function(a,b,c){var d=[],e=this.va;a*=e;b*=e;d=Vg(d,this.Hd.wa,a,b,c);if(c&&d.length)return d;d=Vg(d,this.eg.wa,a,b,c);if(c&&d.length)return d;d=Vg(d,this.ce.wa,a,b,c);return c&&d.length?d:Vg(d,this.Vf.wa,a,b,c)};L.prototype.getObjectsAt=L.prototype.Ba;function Vg(a,b,c,d,e){for(var f=b.length,g;f--&&!((g=b[f])&&g.Ba&&(a=a.concat(g.Ba(c,d,e)),a.length&&e)););return a}L.prototype.Sk=Ja;function Sg(a){a=a.ti[2];return{w:a.right-a.left,h:a.bottom-a.top}} -L.prototype.Rf=function(){var a=this.ti,b=this.Eb.fc(),c,d,e;this.cc.aq||(d=a[2].i());L.a.Rf.call(this);c=Sg(this);this.ze.set(0,0);e=c.w;c=c.h;if(b.width!==e||b.height!==c){Uf(this.Eb,e,c);for(var b=this.Hd.wa.length,f;b--;)if(f=this.Hd.wa[b])f=f.ng,Uf(f,e,c);this.Sk=new of(e,c)}d&&(a=a[2],Lg(this,d.left-a.left,d.top-a.top),this.fb());Ng(this)};L.prototype.ih=function(){return If};L.prototype.getCapabilities=L.prototype.ih; -function Wg(a){jg()-a.Uqa)throw new x(hh,1,'Argument "maxParallel" must be a positive number');this.Jw=a}ih.prototype.next=function(a,b){return a.length&&b.length=k)&&(l=l.ka););n&&(e||h.getVisibility(!0))&&(a||1===h.Hc().getState())&&(b[g++]=h)}b.length=g}else b=Gc;return b}K.prototype.co=function(){return 0(d=+b)?ld(0,a+d):kd(a,d)))throw new cb(O,b,[0,a-1]);return d}O.prototype.pl=function(a,b){this.l.splice(b,0,a);this.dispatchEvent(new wh(this,this.d.wg,b,a,null,null))};O.prototype.add=function(a,b){this.pl(a,vh(this,b,B(b)))};O.prototype.add=O.prototype.add; -O.prototype.Xc=function(a){var b=this.l.splice(a,1)[0];this.dispatchEvent(new wh(this,this.d.yg,a,null,b,null));return b};O.prototype.bg=function(a){this.get(a);return this.Xc(a)};O.prototype.removeAt=O.prototype.bg;O.prototype.remove=function(a){a=this.indexOf(a);return 0<=a?(this.Xc(a),!0):!1};O.prototype.remove=O.prototype.remove;O.prototype.set=function(a,b){var c=this.get(a);a=vh(this,a,!1);c=this.l[a];this.l[a]=b;this.dispatchEvent(new wh(this,this.d.Ci,a,b,c,null));return c}; -O.prototype.set=O.prototype.set;O.prototype.indexOf=function(a){return this.l.indexOf(a)};O.prototype.indexOf=O.prototype.indexOf;O.prototype.get=function(a){a=vh(this,a,!1);if((a=vh(this,a,!1))>=this.l.length)throw new cb(this.get,a,[0,this.l.length-1]);return this.l[a]};O.prototype.get=O.prototype.get;O.prototype.Av=function(){return this.l.length};O.prototype.getLength=O.prototype.Av;O.prototype.kd=function(){return[].concat(this.l)};O.prototype.asArray=O.prototype.kd; -O.prototype.flush=function(){for(var a=this.l.length;a--;)this.Xc(a)};O.prototype.flush=O.prototype.flush;O.prototype.c=function(){this.flush();O.a.c.call(this)};O.prototype.d={wg:"add",yg:"remove",Ci:"set",My:"move"};function wh(a,b,c,d,e,f){wh.a.constructor.call(this,b,a);this.idx=c;this.added=d;this.removed=e;this.moved=f}u(wh,fc);function xh(a){xh.a.constructor.call(this);a=a||{};this.min=0;this.max=22;this.yu=!!a.dark;a.min&&this.Gk(a.min);a.max&&this.Fk(a.max);this.pixelProjection=new Zf(a.projection,a.minWorldSize)}u(xh,E);r("H.map.layer.Layer",xh);xh.prototype.d={N:"update",jp:"minchange",hp:"maxchange"};xh.prototype.yw=function(a){return this.min<=a&&a<=this.max};xh.prototype.isValid=xh.prototype.yw; -xh.prototype.Gk=function(a){var b=this.min;if(a!==b){if(B(a))throw new x(xh.prototype.Gk,0,"min is NaN");if(a<=this.max)this.min=a,this.dispatchEvent(new ke(this.d.jp,a,b));else throw new x(xh.prototype.Gk,0,"min > max");}return this};xh.prototype.setMin=xh.prototype.Gk;xh.prototype.Fk=function(a){var b=this.max;if(a!==b){if(B(a))throw new x(xh.prototype.Fk,0,"max is NaN");if(a>=this.min)this.max=a,this.dispatchEvent(new ke(this.d.hp,a,b));else throw new x(xh.prototype.Fk,0,"max < min");}return this}; -xh.prototype.setMax=xh.prototype.Fk;xh.prototype.Ja=function(){this.dispatchEvent(this.d.N)};xh.prototype.c=function(){xh.a.c.call(this)};xh.prototype.ua=function(){return null};xh.prototype.getCopyrights=xh.prototype.ua;function yh(a){yh.a.constructor.call(this);this.dispatchEvent=w(this.dispatchEvent,this);if(a)for(var b=0,c=a.length;ba)throw new x(zh,1,'Argument "maxTime" must be a positive number');this.Lw=a;this.ki=jg()}Ah.prototype.next=function(a){return a.length&&jg()-this.kib||30c)throw new x(this.add,2,c);a=String(a);d=this.l[a];e=!0;this.filter&&(e=this.filter(a,b,c));d?e?(this.od+=c-d.size,d.size=c,d.data=b,Fh(this,d)):this.Xc(d,!0):e&&(this.l[a]=Gh(this,{id:a,data:b,size:c,Nf:null,Dd:null},this.sf));Hh(this);return e}; -Eh.prototype.add=Eh.prototype.add;Eh.prototype.ag=function(a){if(!xa(a))throw new x(this.ag,0,a);this.yr=a};Eh.prototype.registerOnDrop=Eh.prototype.ag;Eh.prototype.get=function(a,b){var c=b?this.l[a]:Fh(this,this.l[a]);return c&&c.data};Eh.prototype.get=Eh.prototype.get;Eh.prototype.ej=function(a){var b;(b=this.l[a])&&this.Xc(b,!0)};Eh.prototype.drop=Eh.prototype.ej;Eh.prototype.forEach=function(a,b,c){var d,e;for(e in this.l)d=this.l[e],(c?c(e,d.data,d.size):1)&&a.call(b,e,d.data,d.size)}; -Eh.prototype.forEach=Eh.prototype.forEach;Eh.prototype.Pa=function(a){var b,c;for(c in this.l)b=this.l[c],(a?a(c,b.data,b.size):1)&&this.Xc(this.l[c],!0)};Eh.prototype.removeAll=Eh.prototype.Pa;Eh.prototype.cy=function(a){this.kn=a;Hh(this);return this};Eh.prototype.setMaxSize=Eh.prototype.cy;Eh.prototype.Fv=function(){return this.kn};Eh.prototype.getMaxSize=Eh.prototype.Fv;Eh.prototype.ov=function(){return this.od};Eh.prototype.getCurrentSize=Eh.prototype.ov; -function Fh(a,b){b&&(a.sf=Gh(a,b,a.sf));return b}function Hh(a){for(;a.od>a.kn&&a.Bh;)a.Xc(a.Bh,!0)}function Gh(a,b,c){if(c!==b){(b.Nf||b.Dd)&&a.Xc(b);if(b.Nf=c)b.Dd=c.Dd,c.Dd=b;b.Dd||(a.sf=b);b.Nf||(a.Bh=b);a.od+=b.size}return b}Eh.prototype.Xc=function(a,b){var c=a.Dd,d=a.Nf;if(c||d||a==this.sf&&a==this.Bh)c?c.Nf=d:this.sf=d,d?d.Dd=c:this.Bh=c,this.od-=a.size,b&&(this.yr&&this.yr(a.id,a.data,a.size),delete this.l[a.id]);a.Nf=a.Dd=null;return a};function Ve(a,b,c,d,e,f){var g,h,k=a.length,l,n,p,q,s,t,v;if(k)for(g=[];k--;)for(t=a[k],q=t.length,s=0,l=1;lh){if(h>e||ge||hb){if(b>c||ac||bc)return;g=d}if(ae)return;a=f}h>e&&(b=a+(e-g)*(b-a)/(h-g),h=e);b>c&&(h=g+(c-a)*(h-g)/(b-a),b=c);k&&(a=-a,b=-b);return l?[new F(h,-b),new F(g,-a)]:[new F(g,-a),new F(h,-b)]} -function af(a,b,c,d,e,f,g,h,k,l){a={x:a,y:b,next:c||null,Wb:d||null,xn:e||null,vn:f||null,wb:g||0,$l:h||0,al:k||0,alpha:l||0};d&&(a.Wb.next=a);c&&(a.next.Wb=a);return a}function cf(a){for(;a&&a.wb;)a=a.next;return a}function bf(a){if(a)for(;a.next;)a=a.next;return a}function hf(a){var b=a;if(b){do b=b.next;while(b!=a&&(!b.wb||b.wb&&b.al))}return b}function gf(a){var b=bf(a);b.Wb.next=a;a.Wb=b.Wb} -function df(a,b,c,d,e,f){var g,h,k,l=b.x-a.x,n=b.y-a.y;g=d.x-c.x;var p=d.y-c.y;h=l*p-n*g;if(!h)return 0;g=((c.x-a.x)*p-(c.y-a.y)*g)/h;h=(n*(c.x-a.x)-l*(c.y-a.y))/h;if(0>g||1h||1=g||0a){if(f||e)Th(d,c),Sh(b,d,!0,f,e);g&&(Th(d,g),Uh(this,d,b,g,h,0))}else e&&(Th(d,c),Sh(b,d,!0,!1,e,0,a)),f&&Sh(b,d,!1,f,!1,a),g&&(Th(d,g),Uh(this,d,b,g,h,a))}; -function Sh(a,b,c,d,e,f,g){var h,k,l,n;g===z&&(g=a.length);for(f=f||0;ff;){t=0;l=c[k];if(q=n=l.length){p=l;q=p.length;for(s=0;--q;)s+=p[q].distance(p[q-1]);q=(p=s)>=d}if(q)for(q=kd($c(p/d),1E3),q=p/(q+1),s=q/2;--n;){for(v=(C=l[n]).distance(R=l[n-1]);s<=t+v;)ka=C.x+(R.x-C.x)*(Z=(s-t)/v),Z=C.y+(R.y-C.y)*Z,a.Xi(ka,Z)&&(b.save(),b.translate(ka,Z),b.rotate(-td((R.y-C.y)/(C.x- -R.x))+(C.x=n?!1:k;t=p&&qb.right,c)} -Xh.prototype.rh=function(a,b,c,d,e){if(!A(a,Pf))throw new x(this.rh,0,a);if(B(c=+c))throw new x(this.rh,1,c);var f,g=[],h,k=this.R,l=k.requestTile;d||(f={});b=Zh(this,a,b,c,e);if(a=b.length)for(d||b.sort(ai),c=a;c--;)e=b[c],d||(f[k.th.apply(k,e)]=!0),e[3]=+d,(h=l.apply(k,e))&&g.push(h);if(!d){d=f;for(var n in this.Uk)this.Uk.hasOwnProperty(n)&&this.Uk[n]&&!d[n]&&this.R.cancelTileByKey(n);this.Uk=d}return{total:a,tiles:g}};Xh.prototype.getProviderTiles=Xh.prototype.rh; -function ai(a,b){return b[3]-a[3]};function Q(a){Oa(this,Q);Q.a.constructor.call(this,a);this.Ta={};this.entryWeight=1;this.Ts=new bi;this.ff=w(this.ff,this)}u(Q,Bh);r("H.map.provider.RemoteTileProvider",Q);Q.prototype.MAX_STORE_TIME=Infinity;var ci=new Eh(65536);Q.cache=ci;Q.prototype.Nb=function(){return ci};Q.prototype.getCache=Q.prototype.Nb;Q.prototype.yf=function(){return this.Ts};Q.prototype.getStorage=Q.prototype.yf;Q.prototype.ff=function(a){return+La(a,"_")[0]===+this.uri};Q.prototype.cacheFilter=Q.prototype.ff; -Q.prototype.requestInternal=Q.prototype.sc;Q.prototype.mf=function(a,b,c,d){return new Jh(a,b,c,d)};Q.prototype.createTileInternal=Q.prototype.mf;Q.prototype.Ul={cancel:function(){}}; -Q.prototype.uc=function(a,b,c,d){var e=this,f,g,h,k=this.getCache(),l,n=this.Ta,p=this.yf();if(B(a=+a))throw new x(this.uc,0,a);if(B(b=+b))throw new x(this.uc,0,b);if(B(c=+c))throw new x(this.uc,0,c);c=~~c;f=this.getTileKey(a,b,c);g=k.get(f);g&&g.valid||d||this.Ta[f]||(n[f]=this.Ul,h=function(d){var h;d&&(h=y.Date.now()-d.timestamp);d&&ha.right,b,c,d)};Yh.prototype.requestTiles=Yh.prototype.Gd;function gg(a,b){var c=b||{};c.tileSize=c.tileSize||256;c.pixelRatio=c.pixelRatio||1;this.Te=new Wh(a,c);this.Ue=new Yh(this.Te,{opacity:1});c.minWorldSize=this.Te.tileSize;gg.a.constructor.call(this,c);this.opacity=this.Ue.opacity;this.tileSize=this.Ue.tileSize;this.rc=a;this.ck=w(this.ck,this);this.Te.addEventListener(this.Te.d.N,this.ck);this.rc.addEventListener("update",this.ck)}u(gg,xh);r("H.map.layer.ObjectLayer",gg); -gg.prototype.ck=function(a){a.currentTarget!==this.Te&&a.target.type===me.SPATIAL||this.Ja()};gg.prototype.Qa=function(){return this.rc};gg.prototype.getProvider=gg.prototype.Qa;var ei={markers:Gc,total:0};gg.prototype.Cb=function(a,b,c){var d=this.rc,e;return d.providesMarkers()&&(e=d.requestMarkers(a,b,!0,c)).length?{markers:e,total:e.length}:ei};gg.prototype.requestMarkers=gg.prototype.Cb; -gg.prototype.Bb=function(a,b,c){var d=this.rc,e;return d.providesDomMarkers()&&(e=d.requestDomMarkers(a,b,!0,c)).length?{markers:e,total:e.length}:ei};gg.prototype.requestDomMarkers=gg.prototype.Bb;var fi={tiles:Gc,total:0};gg.prototype.Gd=function(a,b,c,d){var e;this.rc.providesSpatials()?(e=this.Ue.Gd(a,b,c,d),c||(this.Te.Be(),e=this.Ue.Gd(a,b,!0,d))):e=fi;return e};gg.prototype.requestTiles=gg.prototype.Gd;gg.prototype.uc=function(a,b,c,d){return this.Ue.uc(a,b,c,d)};gg.prototype.requestTile=gg.prototype.uc; -gg.prototype.md=function(a,b,c){this.Ue.md(a,b,c)};gg.prototype.cancelTile=gg.prototype.md;var gi={overlays:Gc,total:0};gg.prototype.Zh=function(a,b,c){var d=this.rc,e=gi;d.providesOverlays&&d.providesOverlays()&&(a=d.requestOverlays(a,b,!0,c),b=a.length)&&(e={overlays:a,total:b});return e};gg.prototype.requestOverlays=gg.prototype.Zh;gg.prototype.c=function(){this.Te.e();this.Ue.e();this.rc.dispose();gg.a.c.call(this)};function hi(a,b){xa(a)&&(this.Mr=a);Wa(b)&&(this.ri=b)}r("H.util.Request",hi);hi.State={PENDING:0,PROCESSING:1,COMPLETE:2,CANCELLED:3,ERROR:4};var ii={lp:0,jl:1,il:2,Hy:3,ERROR:4},ji=[0,1,2,3,4];hi.prototype.j=0;hi.prototype.getState=function(){return this.j};hi.prototype.getState=hi.prototype.getState;hi.prototype.g=function(a){if(0>ji.indexOf(a))throw new x(this.g,0,a);if(this.j!==a||1===a&&1b;a-=0;if(0<=a&&1>=a)a!==b&&(this.Pr=a,c&&this.ca(je.VISUAL));else throw new x(this.setOpacity,0);return this}; -th.prototype.setOpacity=th.prototype.setOpacity;function ri(a){if(!a||!xa(a.requestData))throw new x(ri,0,"options.requestData");ri.a.constructor.call(this,a);this.Ux=a.requestData;this.Ex=!!a.providesDomMarkers||!1}u(ri,Q);r("H.map.provider.MarkerTileProvider",ri);ri.prototype.sc=function(a,b,c,d,e){var f=this;return this.Ux(a,b,c,function(e){for(var h=[],k,l,n=e.length;n--;)l=e[n],l.sy=f.getTileKey(a,b,c),l.G(f),k=l.Hc(),(A(l,uf)||k.getState()===k.Ag.READY)&&h.push(e[n]);d(h)},e)};ri.prototype.requestInternal=ri.prototype.sc; -ri.prototype.nc=function(a,b){var c;b!==je.NONE&&((c=this.Nb().get(a.sy))&&(c.valid=!1),this.Ja())};ri.prototype.invalidateObject=ri.prototype.nc;ri.prototype.Ee=function(){return this.Ex};ri.prototype.providesDomMarkers=ri.prototype.Ee;function si(a,b){si.a.constructor.call(this,a,b)}u(si,Xh);r("H.map.layer.MarkerTileLayer",si);var ti={markers:[],total:0,requested:0};function ui(a,b,c,d,e){var f;f=$c(c);a.pixelProjection.ma(f);b=a.dh(b);f=a.zf(b,f);c=a.rh(f,f.left>f.right,~~c,d,e);a=c.tiles;c=c.total;d=a.length;e=[];var g;for(g=0;gd||180xd&&(g=0xd?wd:0))%zd-wd)*Cd):this};Td.prototype.walk=Td.prototype.To;function Ud(a,b,c){var d=!!a&&!(D(a.lat=Od(a.lat))||D(a.lng=Pd(a.lng))||a.alt!==z&&D(a.alt=Qd(a.alt))||a.ctx!==z&&!Rd(a.ctx));if(!d&&b)throw new x(b,c,a);return d}Td.validate=Ud;function Vd(a){if(!a)throw new x(Vd,0,a);return B(a,Td)?a:new Td(a.lat,a.lng,a.alt,a.ctx)}Td.fromIPoint=Vd;function I(a,b,c,d){Wd(this,Od(a,I,0),Pd(b,I,1),Od(c,I,2),Pd(d,I,3))}r("H.geo.Rect",I);I.prototype.Aa=function(a){return this===a||!!a&&this.ga===a.ga&&this.O===a.O&&this.Z===a.Z&&this.S===a.S};I.prototype.equals=I.prototype.Aa;I.prototype.i=function(){return new I(this.ga,this.O,this.Z,this.S)};I.prototype.clone=I.prototype.i;function Wd(a,b,c,d,e){a.O=c;a.S=e;bthis.S};I.prototype.isCDB=I.prototype.Df;I.prototype.uh=function(){return!this.wb()&&!this.tf()};I.prototype.isEmpty=I.prototype.uh; +I.prototype.Wi=function(a,b,c){var d=this.Ma();c||(a=Od(a,this.Wi,0),b=Pd(b,this.Wi,1));b=this.yd(a,b,c);a=b.Ma();return a.lat===d.lat&&a.lng===d.lng&&this.tf()===b.tf()&&this.wb()===b.wb()};I.prototype.containsLatLng=I.prototype.Wi;I.prototype.Ud=function(a,b){b||Ud(a,this.Ud,0);return this.Wi(a.lat,a.lng,b)};I.prototype.containsPoint=I.prototype.Ud; +I.prototype.Gl=function(a,b){var c=this.Ma(),d,e;if(!b&&!B(a,I))throw new x(this.Gl,0,a);e=this.zd(a,b);d=e.Ma();return d.lat===c.lat&&d.lng===c.lng&&this.tf()===e.tf()&&this.wb()===e.wb()};I.prototype.containsRect=I.prototype.Gl;I.prototype.yd=function(a,b,c,d){if(!c){if(D(a=Od(a)))throw new x(this.yd,0,a);if(D(b=Pd(b)))throw new x(this.yd,1,b);}return Zd(this.ga,this.O,this.Z,this.S,a,b,a,b,d)};I.prototype.mergeLatLng=I.prototype.yd; +I.prototype.on=function(a,b,c){b||Ud(a,this.on,0);return this.yd(a.lat,a.lng,b,c)};I.prototype.mergePoint=I.prototype.on;I.prototype.zd=function(a,b,c){if(!b&&!B(a,I))throw new x(this.zd,0,a);return Zd(this.ga,this.O,this.Z,this.S,a.ga,a.O,a.Z,a.S,c)};I.prototype.mergeRect=I.prototype.zd;I.prototype.Sc=function(a,b,c,d,e,f){e||(a=Od(a,this.Sc,0),b=Pd(b,this.Sc,1),c=Od(c,this.Sc,2),d=Pd(d,this.Sc,3));return Zd(this.ga,this.O,this.Z,this.S,a,b,c,d,f)};I.prototype.mergeTopLeftBottomRight=I.prototype.Sc; +I.prototype.Bf=function(a,b){if(!b&&!B(a,I))throw new x(this.Bf,0,a);var c=this.O<=this.S,d=a.O<=a.S,e=this.Oc?360:0)}function Xd(a,b){var c=a+b/2;return c-(180p-1E-6?360:0;180>p-1E-6?(l=b,n=h):(p=360-p,l=f,n=d);p=p+e/2+g/2;360<=p+5E-7?(l=-180,n=180):p-5E-7k?-(g+a.lng):k,c=c+(0>k?2*k:0),c=-180>c?360+c:c,e=e+(0h?f+2*h:f;-90>=f&&(f=-90);return b?Wd(b,d,c,f,e):new I(d,c,f,e)}; +I.prototype.resizeToCenter=I.prototype.us;function J(a,b){a&&de(a,J,0);this.K=null;this.Pa=a||[];this.Wd=b;this.yc=ee(this,0,this.Pa.length)}r("H.geo.Strip",J);function ee(a,b,c){a=a.Pa;var d=0;b=ld(b,0);c=kd(c,a.length);c-=2;for(b+=1;bg&&180f-g||gmd(g-f))h=f,f=g,g=h;da/b&&180a};ie.prototype.isAny=ie.prototype.uw;ie.prototype.ot=Ed; +ie.prototype.zh=function(a){return this.ot>a};ie.prototype.isVisual=ie.prototype.zh;ie.prototype.Os=Ed;ie.prototype.Xm=function(a){return this.Os>a};ie.prototype.isSpatial=ie.prototype.Xm;ie.prototype.up=Ed;ie.prototype.Sq=function(a){return this.up>a};ie.prototype.isAdd=ie.prototype.Sq;ie.prototype.ps=Ed;ie.prototype.wj=function(a){return this.ps>a};ie.prototype.isRemove=ie.prototype.wj;ie.prototype.ut=Ed;ie.prototype.Ym=function(a){return this.ut>a};ie.prototype.isZOrder=ie.prototype.Ym; +var je={NONE:0,VISUAL:1,SPATIAL:2,ADD:4,REMOVE:8,Z_ORDER:16};ie.Flag=je;function ke(a,b,c){ke.a.constructor.call(this,a);this.oldValue=c;this.newValue=b}u(ke,ec);r("H.util.ChangeEvent",ke);function K(a){var b;Ma(this,K);K.a.constructor.call(this);this.Jq=le++;a&&(b="min",Ta(a[b])&&(this.mb=a[b]),b="max",Ta(a[b])&&(this.Rc=a[b]),b="visibility",b in a&&(this.Md=!!a[b]),b="zIndex",b in a&&(this.ui=+a[b]||0),b="provider",b in a&&(this.R=a[b],this.la(je.ADD)),b="data",b in a&&this.setData(a[b]))}u(K,F);r("H.map.Object",K);var me={ANY:0,OVERLAY:1,SPATIAL:2,MARKER:3,DOM_MARKER:4,GROUP:5};K.Type=me;K.prototype.d={Zt:"visibilitychange",$t:"zindexchange"};var le=Ed;K.prototype.X=function(){return this.Jq}; +K.prototype.getId=K.prototype.X;K.prototype.mb=-1/0;K.prototype.Rc=1/0;K.prototype.Md=!0;K.prototype.setVisibility=function(a){var b=this.Md;(a=!!a)^b&&(this.Md=a,this.invalidate(je.VISUAL),this.dispatchEvent(new ke(this.d.Zt,a,b)));return this};K.prototype.setVisibility=K.prototype.setVisibility;K.prototype.getVisibility=function(a){for(var b=this,c;(c=b.Md)&&a&&(b=b.ma););return c};K.prototype.getVisibility=K.prototype.getVisibility;K.prototype.ui=z;K.prototype.fw=function(){return this.ui}; +K.prototype.getZIndex=K.prototype.fw;K.prototype.Do=function(a){var b=this.ui;a!==b&&(this.Zh(),this.ui=a,this.invalidate(je.Z_ORDER),this.dispatchEvent(new ke(this.d.$t,a,b)));return this};K.prototype.setZIndex=K.prototype.Do;K.prototype.dl=z;function ne(a){var b=a.dl,c,d,e;b||(c=(d=a.ui)!==z,(b=a.ma)?(b=ne(b).slice(),b[0]|=c):b=[c|0],b.push(d||0,(e=a.Ns)!==z?e:a.Jq),a.dl=b);return b}K.prototype.Zh=function(){this.dl=z}; +function oe(a,b,c){if(!c||a[0]|b[0])for(var d=a.length,e=b.length,f=kd(d,e),g,h=1,k=1+c;h=a?+a:ue},function(a){return"butt"===(a=Ga(a))||"square"===a||"round"===a?a:ue},function(a){return"round"===a||"bevel"===a||"miter"===a?a:ue},function(a){return 0=a?+a:ue},function(a){return a&&a.every&&a.every(Va)?a:ue},function(a){return D(+a)?ue:+a}]; +qe.MAX_LINE_WIDTH=100;var ve=new qe;qe.DEFAULT_STYLE=ve;function we(a){var b,c,d;if(a){b=B(a,we);for(c in a)c in this&&(d=a[c],d!==this[c]&&("fillColor"===c||0<(d=+d))&&(this[c]=d));a=b?a.Tb:!!(zc(this.fillColor)&&this.width&&this.width);a||(this.Tb=a)}Ia(this)}r("H.map.ArrowStyle",we);we.prototype.Tb=!0;ya(we.prototype,{fillColor:"rgba(255,255,255,.75)",width:1.2,length:1.6,frequency:5});we.prototype.mq=function(){return new we(this)}; +we.prototype.Aa=function(a){var b=this===a;!b&&a&&(b=a.width===this.width&&a.fillColor===this.fillColor&&a.length===this.length&&a.frequency===this.frequency);return b};we.prototype.equals=we.prototype.Aa;function xe(a,b){var c;xe.a.constructor.call(this,b);b&&this.Hk(b.style);a&&(this.Ef=!0);xe.a.constructor.call(this,b);b&&(c=b.arrows)&&this.Ds(c)}u(xe,K);r("H.map.Spatial",xe);xe.prototype.type=me.SPATIAL;xe.prototype.tg=0;xe.prototype.style=ve;xe.prototype.Na=function(){return this.style};xe.prototype.getStyle=xe.prototype.Na; +xe.prototype.Hk=function(a){var b=this.style,c=!0;a?this.style=B(a,qe)?a:new qe(a):this.style?delete this.style:c=!1;c&&(this.dispatchEvent(new ke("stylechange",this.style,b)),this.invalidate(je.VISUAL));return this};xe.prototype.setStyle=xe.prototype.Hk;xe.prototype.ev=function(){return this.bf};xe.prototype.getArrows=xe.prototype.ev;xe.prototype.Ds=function(a){var b=this.bf,c=!1;!a&&b?(delete this.bf,c=!0):!a||b&&b.Aa(a)||(this.bf=new we(a),c=!0);c&&"none"!==this.style.strokeColor&&this.la(1);return this}; +xe.prototype.setArrows=xe.prototype.Ds;function ye(a,b){var c=!1,d;b!==a.$e&&(b===a.Bi?c=a.style.Tb:(c=a.style,c=c.yh||c.Tb&&a.Ef||(d=a.bf||!1)&&c.th&&d.Tb));return c&&a.getVisibility(!0)}xe.prototype.Bi=Ia([]);xe.prototype.$e=Ia([]);xe.prototype.Ef=!1;xe.prototype.vw=function(){return this.Ef};xe.prototype.isClosed=xe.prototype.vw;xe.prototype.getGeometry=xe.prototype.ee;xe.prototype.xm=function(){return A};xe.prototype.getLabels=xe.prototype.xm;xe.prototype.um=function(){return-1}; +xe.prototype.getHybridIdx=xe.prototype.um;function ze(a,b,c){if(!this.xw&&!this.yw)throw Error("Illegal constructor call "+Na(ze));ze.a.constructor.call(this,a,c);this.fa(b)}u(ze,xe);r("H.map.GeoShape",ze);ze.prototype.bc=A;ze.prototype.hc=function(){return this.bc};ze.prototype.getStrip=ze.prototype.hc;function Ae(a,b,c){var d=a!==A&&B(a,J);c=c||Ae;if(!d||a.Am()<(b||2))throw new x(c,0,a);} +ze.prototype.fa=function(a){var b;if(a!==A&&!B(a,J))throw new x(ze.prototype.fa,0,a);b=this.bc;this.bc=a;b!==A&&(this.dispatchEvent(new ke("stripchange",a,b)),this.la(je.SPATIAL));return this};ze.prototype.setStrip=ze.prototype.fa;ze.prototype.getBounds=ze.prototype.p;function Be(a,b,c,d){var e=[],f=b.length,g,h;for(g=0;gf?-360:360);a.Pp=c;return e.dn(b,c+d)}function Ee(a,b,c){for(var d=b,e,f=a.length+b,g,h;d--;){b=a[d];g=b.length;for(e=Array(g);g--;)h=b[g],e[g]=new G(h.x+c,h.y);a[--f]=e}}var Fe=new J([0,0,0,0,0,0,0,0,0]);function Ge(a,b,c,d,e){this.Bu=a||10;this.he=this.$g=this.ys=null;this.Gg=d||0;this.Hg=e||0;this.Th=b||1;this.Uh=c||1;this.flush()}function He(a,b){for(var c,d,e,f,g,h,k,l=0,n,p,q=4,s;q--;){s=q+4;g=[];c=+!(q%3);h=b[q];for(n=(d=a[q]).length;n--;){e=d[n];if(f=e.l)for(p=f.length;p--;)((k=f[p][q])>h)-c&&(h=k);for(p=4;p--;)if(f=e[p])c?f[s]h&&g.push(f)}l+=g.length;b[q]=h;a[q]=g}l&&(b=He(a,b));return b} +Ge.prototype.flush=function(){this.he=this.ys=new Ie(null,0,this.Gg-this.Th,this.Hg-this.Uh,this.Gg+this.Th,this.Hg+this.Uh);this.$g=null};Ge.prototype.remove=function(a){var b,c=a.ns,d=c.l;if(d&&(b=d.indexOf(a),-1!==b&&(d.splice(b,1),!d.length))){delete c.l;for(var e=this.he;(d=c.Vc)&&!(c.l||c[0]||c[1]||c[2]||c[3]);)c===e&&(e=d),delete c.Vc,delete d[c.Zs],c=d;this.he=e;Je(this)}(b=0<=b)&&Ke(this,a,!1);return b}; +function Ke(a,b,c){var d,e;if(d=a.$g)for(e=4;e--;)if(e%3?b[e]>=d[e]:b[e]<=d[e])if(c)d[e]=b[e];else{a.$g=null;break}}Ge.prototype.Sb=function(a,b,c,d,e,f){var g=a[8],h=a[9];f&&(d=g)&&(e=h)?b=this.Sb(Le(a,(c>=h?2:0)|b>=g),b,c,d,e,f-1):(b=new Me(a,b,c,d,e),(a.l||(a.l=[])).push(b),Ke(this,b,!0),Je(this,a));return b}; +function Je(a,b){var c=a.he,d;if(b){if(d=b,d!==c)for(c=d;d=d.Vc;)if(d.l||3>!d[0]+!d[1]+!d[2]+!d[3])c=d}else for(;!c.l&&2< !c[0]+!c[1]+!c[2]+!c[3];)if(d=c[0]||c[1]||c[2]||c[3])c=d;else break;a.he=c}Ge.prototype.xb=function(a,b,c,d){var e=[];Ne(this,this.he,e,a,b,c,d);return e}; +function Ne(a,b,c,d,e,f,g){var h,k,l=b.l;k=b[7];var n=b[8],p=b[5],q=b[4],s=b[9],t=b[6],v;if(l)if(h=l.length,d>k||fq||gf||tg||v=n&&(e<=s&&b[1]&&Ne(a,b[1],c,d,e,f,g),g>=s&&b[3]&&Ne(a,b[3],c,d,e,f,g));d<=n&&(e<=s&&b[0]&&Ne(a,b[0],c,d,e,f,g),g>=s&&b[2]&&Ne(a,b[2],c,d,e,f,g))} +function Ie(a,b,c,d,e,f){a?(this.Vc=a,this.Zs=b,b&1?(c=a[8],e=a[5]):(c=a[7],e=a[8]),b&2?(d=a[9],f=a[6]):(d=a[4],f=a[9])):this.Zs=this.Vc=null;this[7]=c;this[5]=e;this[8]=(c+e)/2;this[4]=d;this[6]=f;this[9]=(d+f)/2}function Le(a,b){return a[b]||(a[b]=new Ie(a,b))}function Me(a,b,c,d,e){this.id=++Oe;this.ns=a;this[0]=c;this[1]=d;this[2]=e;this[3]=b}var Oe=0;function Pe(a){this.Yk=new Ge(+a||10,180,90,0,0);this.Si=[];this.Um=!1;this.Rd=this.We=this.K=null}m=Pe.prototype;m.ae=0;m.Df=function(){return this.Um}; +m.p=function(){var a,b,c;if(!this.K){c=[];var d;if(d=!this.We){a=this.Yk;var e;!(e=a.$g)&&(d=a.he,d.l||d[0]||d[1]||d[2]||d[3])&&(e=[d],e=He([e,e,e,e],[d[6],d[7],d[4],d[5]]),a.$g=e);d=a=e}d&&(this.We=new I(-a[0],a[3],-a[2],a[1]));(b=this.We)&&c.push(b);var f,g,h,k;if(!this.Rd&&(k=(g=this.Si).length)){a=90;d=360;e=-90;for(f=0;k--;)h=g[k],a=kd(a,h[0]),d=kd(d,h[3]),e=ld(e,h[2]),f=ld(f,h[1]);this.Rd=new I(-a,d,-e,f-360)}(b=this.Rd)&&c.push(b);if(b=c[0])c[1]&&(b=b.zd(c[1],!0)),this.K=b}return this.K}; +m.Sb=function(a,b,c,d,e){e?(e=new Me(null,d,-a,b+360,-c),this.Si.push(e),this.Um=!0,this.Rd&&this.Rd.Sc(a,b,c,d,!0,this.Rd)):(e=this.Yk,e=e.Sb(e.ys,b,-a,d,-c,e.Bu),this.We&&this.We.Sc(a,b,c,d,!0,this.We));++this.ae;this.K=null;return e};m.Af=function(a){var b=a.lng;a=a.lat;return this.Sb(a,b,a,b,!1)};function Qe(a,b){var c=b.jc(),d=b.fc(),e=b.Df();return e?a.Sb(c.lat,d.lng,d.lat,c.lng,e):a.Sb(c.lat,c.lng,d.lat,d.lng,e)} +m.remove=function(a){var b,c=!1;if(a.ns)c=this.Yk.remove(a),this.We=null;else if(a=(b=this.Si).indexOf(a),c=0<=a)b.splice(a,1),this.Um=0e||gd||hn[c-1]?360:-360,k.push(n[c-2],n[c-1],n[c],n[c+1]));e.push(k)}l=e}return l};function $e(a,b){Ae(a,af,$e);$e.a.constructor.call(this,!0,a,b)}u($e,ze);r("H.map.Polygon",$e);var af=3;$e.prototype.xw=!0;$e.prototype.p=function(){var a,b,c,d;if(!(a=this.Ac)){if(b=this.hc())if(a=b.p())(c=b.lj(!0))&&(d=b.Am())&&(a=a.zd(ae([b.Zg(0),b.Zg(d-1)],!0),!0)),360===a.wb()&&1===c%2&&(a=a.yd(this.Ff?90:-90,0));this.Ac=a||A}return a};$e.prototype.getBounds=$e.prototype.p; +$e.prototype.ee=function(a){var b,c,d,e=a.pj(),f,g,h,k;d=bf(this);d=Be(this,d,!0,e);f=this.p();g=this.hc().lj(!0);h=this.Ff;k=a.oj();if(360===f.wb()&&1==g%2){var l;d[0][1].x>d[0][d[0].length-1].x&&(d[0]=d[0].reverse());b=[];c=d[0].length-1;for(g=0;gg?g=k:kh?h=l:ld&&-180==a.O&&(a=new I(a.ga,180,a.Z,a.S));360>d&&180==a.S&&(a=new I(a.ga,a.O,a.Z,-180));if(a.Df()){h=c.length;var l;d=-1;f=fe;for(e=0;ef?-k:k),e=0a.wb()&&a.Ud(new Td(a.ga,180))&&(c=of([].concat(c),a.S),b.push(c));return b}$e.prototype.clip=function(){var a=$e.prototype.clip,b=y.console;!Ac&&b&&b.warn&&(a=Na(a)+" is deprecated and will be removed soon. ",b.warn(a));return bf(this)};$e.prototype.clip=$e.prototype.clip; +function of(a,b){for(var c=[],d=Number.POSITIVE_INFINITY,e=-1,f,g=a.length,c=0;cd;d+=120)e.io(b,d-180,z);else for(b=this.rk,b=360/b;360>d;d+=b)e.Fe(a.To(d,c,!0));return e};function rf(a,b){var c,d=a;if(!B(d,Element)){sf.innerHTML=d;d=sf.firstElementChild;if(!d)throw new x(rf,0,"No element data");sf.removeChild(d);c=!0;sf.innerHTML=""}this.Fl=0!==Gc(d).length;this.Xp=c?d:Hc(d,y.document,this.Fl);b&&(c="onAttach",c in b&&Pa(d=b[c],"Function",rf,1,c)&&(this.Cn=d),c="onDetach",c in b&&Pa(d=b[c],"Function",rf,1,c)&&(this.Gn=d))}r("H.map.DomIcon",rf);var sf=document.createElement("DIV");rf.prototype.Cn=null;rf.prototype.Gn=null; +rf.prototype.mq=function(a,b){return Hc(this.Xp,b,this.Fl)};rf.prototype.Fl=!1;function uf(a,b){this.w=+a;this.h=+b}r("H.math.Size",uf);function vf(a,b){var c,d,e,f,g,h,k;f=a;var l=b||[];if(a!==wf.NONE){c=d=l.length;if(-1===this.hy.indexOf(f))throw new x(vf,0,a);if(!l)throw new x(vf,1,l);for(;d--;)if(D(l[d]))throw new x(vf,1,l);f===wf.RECT&&3',size:new uf(28, +36),anchor:new G(14,32),hitArea:new vf(3,[0,16,0,7,8,0,18,0,26,7,26,16,18,34,8,34])};function zf(a,b){zf.a.constructor.call(this,a,b)}u(zf,xf);r("H.map.DomMarker",zf);zf.prototype.type=me.DOM_MARKER;zf.prototype.tg=2;zf.prototype.Kp=function(a){var b=new rf(a.bt,a);a=a.anchor;b.Xp.style.margin=-a.y+"px 0 0 -"+a.x+"px";return b};zf.prototype.Hq=rf;function Af(a,b,c,d){Af.a.constructor.call(this,a,b,c);this.modifiers=d}u(Af,ke);r("H.map.ChangeEvent",Af);Af.prototype.FOV=1;Af.prototype.PITCH=2;Af.prototype.POSITION=4;Af.prototype.ROLL=8;Af.prototype.SIZE=16;Af.prototype.YAW=32;Af.prototype.ZOOM=64;r("H.util.Disposable",yb);yb.prototype.jd=yb.prototype.jd;yb.prototype.addOnDisposeCallback=yb.prototype.jd;function Bf(a){a&&"function"==typeof a.e&&a.e()}r("H.util.dispose",Bf);function Cf(){}r("H.util.ICapturable",Cf);Cf.prototype.ta=function(){};Cf.prototype.capture=Cf.prototype.ta;function Df(a,b){var c=a.f(),d=c.ownerDocument;Df.a.constructor.call(this);this.b=a;this.aa=c=c.appendChild(Ef(d,"DIV","position:absolute;bottom:4em;left:0.5em;z-index:1;height:0px;direction:ltr"));this.ul=Ef(d,"DIV","position:absolute;top:0px;pointer-events:none;",Ff);this.iu=c.appendChild(this.ul).firstChild.firstChild.style;c=c.appendChild(Ef(d,"DIV","-webkit-touch-callout: none;-webkit-user-select:none;-khtml-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select:none;whiteSpace:nowrap;position:relative;top:2.2em;padding-left:1px")); +this.Il=c.appendChild(Ef(d,"SPAN"));this.Il.setAttribute("unselectable","on");this.et=c.appendChild(Ef(d,"A","color:inherit","Terms of use"));this.et.target="_blank";this.Tx=c=c.appendChild(Ef(d,"SPAN","color:inherit"," | "));this.Ux=c.appendChild(function(){var a=Ef(d,"A","color:inherit","Report image");a.target="_blank";return a}());this.Zq=Gf.slice();this.Gk(b);this.qg=w(this.qg,this);this.Uc=w(this.Uc,this);this.b.addEventListener(this.b.d.jp,this.qg);this.b.u.addEventListener("add",this.Uc); +this.b.u.addEventListener("remove",this.Uc);this.b.u.addEventListener("set",this.Uc);this.Uc()}u(Df,yb);r("H.map.Imprint",Df);var Hf=Ja("font href invert reportHref"),Gf=Ja("11px Arial,sans-serif;http://here.com/terms;;http://here.com/",";");Df.prototype.Gk=function(a){var b=Hf.length,c,d,e;a||(this.Zq=Gf.slice());for(e=this.Zq;b--;)c=Hf[b],d=a&&c in a?e[b]=a[c]:e[b],2===b?(this.iu.fill=d?"#FFF":"#1B468D",this.aa.style.color=d?"#FFF":"#333",this.Vq=d):1===b?this.et[c]=d:this.aa.style[c]=d}; +Df.prototype.setOptions=Df.prototype.Gk;function Ef(a,b,c,d){a=a.createElement(b);c&&(a.style.cssText=c);d&&(a.innerHTML=d);return a}Df.prototype.f=function(){return this.aa};Df.prototype.getElement=Df.prototype.f;Df.prototype.qg=function(){var a=Gf[3],b=this.b,c=this.Ux,d=this.Tx,e;b.jb().type===If?d.style.display="none":(b=b.M.Gc(),e=b.position,d.style.display="inline",c.href=a+[e.lat,e.lng,22,b.yaw,90+b.pitch].join()+",panorama.day,report");this.Il.innerHTML=this.ep+" "+this.ua()+" | "}; +Df.prototype.Uc=function(){this.qg();setTimeout(this.qg,5E3)}; +var Ff='',Jf= +"1987–"+ld(2015,(new Date).getFullYear())+" HERE";Df.prototype.ua=function(){var a=this.b,b=a.getZoom(),c=a.Gm(),a=a.u,d=a.l.length,e={},f=0,g,h,k,l=[Jf];if(c)for(;ff?Sf(b,!0):Sf(b)):a.bifocal&&!b.bifocal?(d=Sf(b),e=Sf(a).distance(d),f=Sf(a,!0).distance(d),c=e>f?Sf(a,!0):Sf(a)):(c=a,d=b),e=c.x-d.x,c=c.y-d.y,c=new Of(e,c)):c=new Of(0,0);return c} +function Tf(a){var b;if(!a||D(a.bx)||D(a.by))return 0;b=a.bx-a.x;a=a.by-a.y;return ad(b*b+a*a)}function Rf(a){var b,c;!a||D(a.bx)||D(a.by)||(b=a.x-a.bx,c=a.y-a.by,b=new G(a.x-b/2,a.y-c/2));return b}function Sf(a,b){return b?new G(a.bx,a.by):new G(a.x,a.y)}m=Pf.prototype;m.start=function(a,b){if(D(a))throw new x(this.start,0,a);this.$h&&this.clear();this.Sw=a;this.$h=!0;this.xh=!!b}; +m.Ws=function(a,b,c,d,e){var f=D(a)?0:D(b)?1:null!=c&&D(c)?2:null!=d&&D(d)?3:null!=e&&D(e)?4:z;if(0<=f)throw new x(this.Ws,f,arguments[f]);this.$h&&(e=e||(new Date).getTime(),this.xe=this.Mb,this.Mb={x:a,y:b,bx:null!=c?c:NaN,by:null!=d?d:NaN,ts:e,bifocal:null!=c&&null!=d},this.xh&&this.qb.push(this.Mb))};m.clear=function(){this.qb=[];this.xh=this.$h=!1;this.Mb=this.xe=null};m.rj=function(a){if(D(a))throw new x(this.rj,0,a);return!!(this.Sw&a)};m.Ub=function(){return this.$h}; +m.qm=function(){var a=this.qb.length,b=0,c=new Of(0,0);if(this.xh)for(;--a&&b=this.Ow&&a-c.ts<=this.vy?b>this.pr?this.pr:b:0}; +m.lq=function(a){var b;b=this.Mb;var c;if(D(a))throw new x(this.lq,0,a);b&&this.xe&&(b=Tf(this.xe),0!==b&&(c=Tf(this.Mb),a=nd(bd(2,a)*(c/b))/vd));return a};function Uf(a,b,c,d){this.left=+a;this.top=+b;this.right=+c;this.bottom=+d}r("H.math.Rect",Uf);Uf.prototype.set=Uf;Uf.prototype.set=Uf.prototype.set;Uf.prototype.jc=function(){return this.pi||(this.pi=new G(this.left,this.top))};Uf.prototype.getTopLeft=Uf.prototype.jc;Uf.prototype.fc=function(){return this.Cg||(this.Cg=new G(this.right,this.bottom))};Uf.prototype.getBottomRight=Uf.prototype.fc;Uf.prototype.Xi=function(a,b){return this.left<=a&&this.right>=a&&this.top<=b&&this.bottom>=b}; +Uf.prototype.containsXY=Uf.prototype.Xi;function Vf(a,b){return new Uf(a.x,a.y,b.x,b.y)}Uf.fromPoints=Vf;Uf.prototype.i=function(){return new Uf(this.left,this.top,this.right,this.bottom)};Uf.prototype.clone=Uf.prototype.i;function Wf(a,b,c){this.Eh=a;this.mg=b;this.fj=!(!c||!c.enableSubpixelRendering);this.ownerDocument=b.El.ownerDocument;this.jn={}}u(Wf,yb); +Wf.prototype.F=function(a,b,c,d,e,f){var g,h,k=this.Eh,l,n,p,q=this.fj,s;this.Bx=g=this.jn;this.jn=h={};if(d>=k.min&&d<=k.max&&(l=this.bq(a,d,e,f),n=l.markers,a=n.length))for(n.sort(pe),d=this.mg,d.setOpacity(k.opacity),k=0;k=a?90:1<=a?-90:Cd*(2*td(od(wd*(1-2*a)))-xd)};cg.rt=function(a){return 360*(1===a?1:Gd(a,1))-180}; +cg.ia=function(a,b,c){c?(c.lat=cg.tt(b),c.lng=cg.rt(a)):c=new Td(cg.tt(b),cg.rt(a));return c};cg.xyToGeo=cg.ia;cg.Wf=function(a,b){return cg.ia(a.x,a.y,b)};cg.pointToGeo=cg.Wf;function dg(a,b){this.projection=a||cg;this.U=0;this.oi=this.exp=nd(b||256)/vd;eg(this);this.y=this.x=0}r("H.geo.PixelProjection",dg);dg.prototype.oa=function(a){if(D(a))throw new x(this.oa,0,a);var b=this.x/this.w,c=this.y/this.h;this.U=a;this.oi=this.exp+a;eg(this);this.x=b*this.w;this.y=c*this.h};dg.prototype.rescale=dg.prototype.oa;function eg(a){30=k.min&&d<=k.max&&(l=k.Yh(a,d,e,f),n=l.overlays,a=n.length))for(n.sort(pe),d=this.Fb,e=this.fj,la=k.opacity,k=0;k=s.x&&(q.x-=p),p*=-((q.x+s.x)/p>>1),q.x+=p,q.add(b),s.x+=p,s.add(b),e||(q.round(),s.round()),(p=g[t=f.X()])?delete g[t]:p={sx:f},h[t]=p,v=q.x,q=q.y,C=s.x,s=s.y,S=C-v,Z=s-q,d.setOpacity(f.nj()* +la),d.Zd(f.sd(),v,q,S,Z),p.Rl?p.Rl.set(v,q,C,s):p.Rl=new Uf(v,q,C,s),this.mk.push(p);return!l||l.requested&&l.requested===l.total||!l.requested&&n.length===l.total};og.prototype.Ca=function(a,b,c){for(var d=this.mk,e=d.length,f,g,h;e--;)if(f=d[e],g=f.Rl,g.Xi(a,b))if(f=f.sx,h)h.push(f);else if(h=[f],c)break;return h||Fc};og.prototype.c=function(){this.mk=null;og.a.c.call(this)};var qg,rg=function(){function a(){}for(var b,c,d,e=Ja("o ms moz webkit "),f=5;f--&&!b;)b=e[f],b=(c=y[b+(b?"R":"r")+"equestAnimationFrame"])&&!D(c.call(window,a))&&(d=y[b+(b?"C":"c")+"ancelAnimationFrame"]);qg=b?function(a){return c.call(y,a)}:function(a){return y.setTimeout(a,25)};return b?function(a){return d.call(y,a)}:function(a){return y.clearTimeout(a)}}(),sg=y.performance&&y.performance.now?function(){return y.performance.now()}:function(){return Date.now()};function tg(a,b,c,d){var e=new Uf(0,0,0,0);tg.a.constructor.call(this);this.va=d.pixelRatio;this.si={1:e.i(),2:e.i(),4:e.i()};this.ya=a;if(!a)throw new x(tg,0,a);ug(this);a.addEventListener(a.d.N,this.Qf,!1,this);this.dd=w(this.dd,this);this.Lc=w(this.Lc,this);this.endInteraction=w(this.endInteraction,this);a.startInteraction=this.dd;a.interaction=this.Lc;a.endInteraction=this.endInteraction;this.Xe=b;if(!b)throw new x(tg,1,b);this.cd=w(this.cd,this);this.control=w(this.control,this);this.endControl= +w(this.endControl,this);b.startControl=this.cd;b.control=this.control;b.endControl=this.endControl;b.addEventListener(b.d.N,this.fk,!1,this);this.Ug=c;if(!c)throw new x(tg,2,c);}u(tg,F);r("H.map.render.RenderEngine",tg);tg.prototype.getBBox=tg.prototype.rd; +function ug(a){var b=a.ya,c=b.width,d=b.height,e=b.padding,f=e.top,g=e.left,h=e.bottom,e=e.right,b=b.margin,k=-(c+g-e)/2<<0,l=-(d+f-h)/2<<0,c=c+k,d=d+l,n=a.si;a=a.va;n[1].set((k-b)*a,(l-b)*a,(c+b)*a,(d+b)*a);n[2].set(k*a,l*a,c*a,d*a);n[4].set((k+g)*a,(l+f)*a,(c-e)*a,(d-h)*a)}tg.prototype.Qf=function(){ug(this)}; +tg.prototype.c=function(){var a=this.Xe,b=this.ya;a.removeEventListener(a.d.N,this.fk,!1,this);a.startControl===this.cd&&(a.startControl=vg.prototype.cd);a.control===this.control&&(a.control=vg.prototype.control);a.endControl===this.endControl&&(a.endControl=vg.prototype.endControl);b.removeEventListener(b.d.N,this.Qf,!1,this);b.startInteraction===this.dd&&(b.startInteraction=wg.prototype.dd);b.interaction===this.Lc&&(b.interaction=wg.prototype.Lc);b.endInteraction===this.endInteraction&&(b.endInteraction= +wg.prototype.endInteraction)};tg.prototype.getCamForBounds=tg.prototype.rf;tg.prototype.ta=function(){return null};tg.prototype.setPointer=tg.prototype.setPointer;function xg(a,b){a.style.transition="opacity 1.5s";a.addEventListener("transitionend",function(){b()},!1);a.style.opacity=0}var yg={ZOOM:1,HEADING:2,TILT:4,INCLINE:8,COORD:16};tg.InteractionModifiers=yg;tg.prototype.d={qp:"render"};var zg={P2D:0,PANORAMA:1};tg.EngineType=zg;r("H.util.animation.ease.LINEAR",function(a){return a});r("H.util.animation.ease.EASE_IN_QUAD",function(a){return a*a});function Ag(a){return-a*(a-2)}r("H.util.animation.ease.EASE_OUT_QUAD",Ag);r("H.util.animation.ease.EASE_IN_OUT_QUINT",function(a){a*=2;return 1>a?bd(a,5)/2:(a-=2,bd(a,5)/2+1)});r("H.util.animation.ease.EASE_OUT_CIRC",function(a){return ad(2*a-a*a)});function Bg(a,b,c,d){if(!xa(this.By=a))throw new x(Bg,0,a);if(D(this.Vl=+b))throw new x(Bg,1,b);if(!xa(this.wr=c)&&null!=c)throw new x(Bg,2,c);if(!xa(this.Wp=d)&&null!=d)throw new x(Bg,3,d);this.id=Dc++;this.vd=!1}r("H.util.animation.Animation",Bg);Bg.prototype.start=function(){var a=this,b,c=qg,d;d=function(){var e=sg(),f=e-a.ji,g=f/a.Vl,g=1n)return!0;e=h.Gd(a,k,e,f);a=e.total;e=e.tiles;f=e.length;this.Be=c;this.cy=b;this.Uo=k;t!==p&&s.setOpacity(p);c=d=d*v/(bd(2,k)*d);this.Xl||(d%1&&(d=Zc(d),v=c/d,C/=v,S/=v,v=bd(2,k)*d),C=Zc(C),S=Zc(S));this.Sx=c;k=-d;g=q+d;for(h=0;hk;)s.Zd(l,t,p,d,d);for(t=c;(t+=v)=h&&(l%=h);0>l&&(l=h+l);(h=this.$r[this.Uo+"_"+l+"_"+g])&&h.Ca&&(k=h.Ca((a-d*f)/e,(b-d*g)/e,c))}return k||Fc};function Dg(a,b){if(D(this.ll=+a))throw new x(Dg,0,a);this.Lk=this.Vl=0;b&&this.Hs(b)}r("H.util.kinetics.KineticMove",Dg);Dg.prototype.Hs=function(a){this.Lk=a;this.Vl=this.oq();return this};Dg.prototype.setInitialSpeed=Dg.prototype.Hs;Dg.prototype.oq=function(){return Math.abs(this.Lk/this.ll)};Dg.prototype.getDuration=Dg.prototype.oq;Dg.prototype.om=function(a){return this.Lk+this.ll*a};Dg.prototype.getCurrentSpeed=Dg.prototype.om;Dg.prototype.nv=function(a){return this.Lk*a+this.ll*a*a/2}; +Dg.prototype.getCurrentPath=Dg.prototype.nv;var Eg=oc;r("H.util.events.listenOnce",Eg);r("H.util.events.dispatchEvent",vc);r("H.util.events.fireListeners",function(a,b,c,d){var e=hc;return b in e&&(e=e[b],c in e)?tc(e[c],a,b,c,d):!0});var Fg=kc;r("H.util.events.listen",Fg);var Gg=pc;r("H.util.events.unlisten",Gg); +var Hg=uc,uc=function(a,b){var c,d,e,f=!0;c=b[b.currentTarget===b.target?"AT_TARGET":a.ta?"CAPTURING_PHASE":(d=!0,"BUBBLING_PHASE")];if(!d||"pointerenter"!==(e=b.type)&&"pointerleave"!==e)b.eventPhase=c,f=Hg(a,b),d&&a.src.Kc&&null===a.src.Kc()&&delete b.eventPhase;return f};function vg(){vg.a.constructor.call(this);this.rb={};this.yk={position:new Td(0,0),pitch:0,yaw:0,roll:0,fov:70};this.Ke=0}u(vg,F);r("H.map.ViewModel",vg);vg.prototype.d={N:"update",yg:"sync"};vg.prototype.hl=Ja("position pitch yaw roll fov zoom");var Ig=Ja("fov pitch position roll yaw zoom").reduce(function(a,b){a[b]=Af.prototype[b.toUpperCase()];return a},{}); +function Jg(a,b,c,d){var e=d.length,f,g,h;a.mi=0;a.An={};for(a.yn={};e--;)if(f=d[e],h=c[f],g=b[f],null!=h){if(a.An[f]=g,a.yn[f]=h,b[f]=h,Sd(h)&&Sd(g)&&(h.lat!==g.lat||h.lng!==g.lng)||!Sd(h)&&h!==g)a.mi|=Ig[f]}else delete b[f];return b}vg.prototype.Gc=function(){return Jg(this,{},this.yk,this.hl)};vg.prototype.getCameraData=vg.prototype.Gc; +vg.prototype.$c=function(a){var b,c=a.animate;if(!a)throw new x(this.$c,0,a);if((b=a.position)&&!Sd(b))throw new x(this.$c,0,"position");this.rb.zoom=D(a.zoom)?D(this.rb.zoom)?this.Ke:this.rb.zoom:a.zoom;b=this.rb.zoom;a=Jg(this,{},a,this.hl);this.rb={animate:c,zoom:b,camera:a};this.dispatchEvent(new Kg(this.rb));return this};vg.prototype.setCameraData=vg.prototype.$c; +vg.prototype.Sk=function(a){var b=a.zoom;Jg(this,this.yk,a,this.hl);b!==this.Ke&&(this.mi|=Ig.zoom);this.An.zoom=this.Ke;this.yn.zoom=b;this.Ke=null!=b?b:this.Ke;this.yk.zoom=this.Ke;this.rb={};this.dispatchEvent(new Af(this.d.yg,this.yn,this.An,this.mi))};vg.prototype.setZoom=function(a,b){if(D(a=+a))throw new x(this.setZoom,0,a);this.rb={animate:b,zoom:a,camera:this.rb.camera||this.yk};this.dispatchEvent(new Kg(this.rb))};vg.prototype.setZoom=vg.prototype.setZoom;vg.prototype.getZoom=function(){return this.Ke}; +vg.prototype.getZoom=vg.prototype.getZoom;vg.prototype.Sv=function(){var a=this.rb.camera;a.zoom=Ta(this.rb.zoom)?this.rb.zoom:a.zoom;return a};vg.prototype.getRequestedCameraData=vg.prototype.Sv;vg.prototype.startControl=vg.prototype.cd;vg.prototype.control=vg.prototype.control;vg.prototype.endControl=vg.prototype.endControl;function Kg(a){Kg.a.constructor.call(this,vg.prototype.d.N);this.requested=a}u(Kg,ec);function M(a,b,c,d){var e;M.a.constructor.call(this,a,b,c,d);this.ye=new G(0,0);if(e=d.renderBaseBackground)this.Px=e.lower,this.Ox=e.higher;this.Xl=!!d.enableSubpixelRendering;this.qy=1E3;this.Dh=this.U=0;this.Wo=this.Xq=!1;this.rc=new G(0.5,0.5);this.Yb=nd(this.va)/vd;this.Za=new Pf;this.Ja=d=new lg;this.Bn=w(this.Bn,this);d.addEventListener(d.d.cp,this.Bn);this.B=new dg;d=a.element;this.Fh=a=d.ownerDocument.createElement("div");a.style.position="absolute";a.style.width=a.style.height="100%";a.style.zIndex= +0;d.insertBefore(a,d.firstChild);this.Fb=new $f(this.Fh,1,1,this.va);Lg(this);c.addEventListener("update",this.zr,!1,this);c.addEventListener(c.d.vg,this.In,!1,this);c.addEventListener(c.d.xg,this.Jn,!1,this);c.addEventListener(c.d.Ci,this.Dr,!1,this);this.po=w(M.prototype.po,this);this.j=Mg;this.ss();this.U=Ng(this,this.Xe.getZoom()+this.Yb);Og(this);Pg(this,b.Gc().position,this.U);this.gb();this.Qf()}u(M,tg);r("H.map.render.p2d.RenderEngine",M);M.prototype.type=zg.P2D;M.prototype.type=M.prototype.type; +var Mg=2;M.prototype.Fg=Nf;M.prototype.getState=function(){return this.j};M.prototype.getState=M.prototype.getState;function Qg(a,b,c){b=c-b;return md(b)a)throw new x(this.As,1,"positive number required");this.yi=a};M.prototype.setAnimationDuration=M.prototype.As;M.prototype.cv=function(){return this.yi};M.prototype.getAnimationDuration=M.prototype.cv;M.prototype.zi=Ag;M.prototype.Bs=function(a){if(!xa(a))throw new x(this.Bs,1,"function required");this.zi=a}; +M.prototype.setAnimationEase=M.prototype.Bs;M.prototype.dv=function(){return this.zi};M.prototype.getAnimationEase=M.prototype.dv;M.prototype.ss=function(){this.zi=Ag;this.yi=300};M.prototype.resetAnimationDefaults=M.prototype.ss;m=M.prototype;m.zr=function(){Wg(this)};m.In=function(a){var b=a.added;a=a.idx;Yg(this,a,b);0===a&&(Og(this),Zg(this,b,!0));$g(this);Wg(this)}; +m.Jn=function(a,b){var c=a.removed,d=a.idx,e;this.Wq=sg();(e=this.Uf.wa.splice(d,1)[0])&&e.e&&e.e();(e=this.ce.wa.splice(d,1)[0])&&e.e&&e.e();(e=this.dg.wa.splice(d,1)[0])&&e.e&&e.e();(e=this.Hd.wa.splice(d,1)[0])&&e.e&&e.e();this.If=this.Ug.ld();0===d&&(Zg(this,c,!1),Og(this));$g(this);b||Wg(this)};m.Dr=function(a){this.Jn(a,!0);this.In(a)}; +function Lg(a){var b=a.Ug.ld(),c=0,d=b.length,e;[a.Uf={},a.ce={},a.dg={},a.Hd={}].forEach(function(a){a.Wg=[];a.wa=[]});for(a.If=b;c=d.w&&(f.lng=-(c.lng=180));return $d(f,c)};M.prototype.getBBox=M.prototype.rd; +M.prototype.Ca=function(a,b,c){var d=[],e=this.va;a*=e;b*=e;d=dh(d,this.Hd.wa,a,b,c);if(c&&d.length)return d;d=dh(d,this.dg.wa,a,b,c);if(c&&d.length)return d;d=dh(d,this.ce.wa,a,b,c);return c&&d.length?d:dh(d,this.Uf.wa,a,b,c)};M.prototype.getObjectsAt=M.prototype.Ca;function dh(a,b,c,d,e){for(var f=b.length,g;f--&&!((g=b[f])&&g.Ca&&(a=a.concat(g.Ca(c,d,e)),a.length&&e)););return a}M.prototype.Rk=A;function ah(a){a=a.si[2];return{w:a.right-a.left,h:a.bottom-a.top}} +M.prototype.Qf=function(){var a=this.si,b=this.Fb.gc(),c,d,e;this.ya.dq||(d=a[2].i());M.a.Qf.call(this);c=ah(this);this.ye.set(0,0);e=c.w;c=c.h;if(b.width!==e||b.height!==c){Zf(this.Fb,e,c);for(var b=this.Hd.wa.length,f;b--;)if(f=this.Hd.wa[b])f=f.mg,Zf(f,e,c);this.Rk=new uf(e,c)}d&&(a=a[2],Ug(this,d.left-a.left,d.top-a.top),this.gb());Wg(this)};M.prototype.hh=function(){return Nf};M.prototype.getCapabilities=M.prototype.hh; +function eh(a){sg()-a.Wqa)throw new x(qh,1,'Argument "maxParallel" must be a positive number');this.Kw=a}rh.prototype.next=function(a,b){return a.length&&b.length=k)&&(l=l.ma););n&&(e||h.getVisibility(!0))&&(a||1===h.Hc().getState())&&(b[g++]=h)}b.length=g}else b=Fc;return b}L.prototype.ho=function(){return 0(d=+b)?ld(0,a+d):kd(a,d)))throw new ab(Eh,b,[0,a-1]);return d}Eh.prototype.pl=function(a,b){this.l.splice(b,0,a);this.dispatchEvent(new Gh(this,this.d.vg,b,a,null,null))};Eh.prototype.add=function(a,b){this.pl(a,Fh(this,b,D(b)))};Eh.prototype.add=Eh.prototype.add; +Eh.prototype.Yc=function(a){var b=this.l.splice(a,1)[0];this.dispatchEvent(new Gh(this,this.d.xg,a,null,b,null));return b};Eh.prototype.ag=function(a){this.get(a);return this.Yc(a)};Eh.prototype.removeAt=Eh.prototype.ag;Eh.prototype.remove=function(a){a=this.indexOf(a);return 0<=a?(this.Yc(a),!0):!1};Eh.prototype.remove=Eh.prototype.remove;Eh.prototype.set=function(a,b){var c=this.get(a);a=Fh(this,a,!1);c=this.l[a];this.l[a]=b;this.dispatchEvent(new Gh(this,this.d.Ci,a,b,c,null));return c}; +Eh.prototype.set=Eh.prototype.set;Eh.prototype.indexOf=function(a){return this.l.indexOf(a)};Eh.prototype.indexOf=Eh.prototype.indexOf;Eh.prototype.get=function(a){a=Fh(this,a,!1);if((a=Fh(this,a,!1))>=this.l.length)throw new ab(this.get,a,[0,this.l.length-1]);return this.l[a]};Eh.prototype.get=Eh.prototype.get;Eh.prototype.Av=function(){return this.l.length};Eh.prototype.getLength=Eh.prototype.Av;Eh.prototype.ld=function(){return[].concat(this.l)};Eh.prototype.asArray=Eh.prototype.ld; +Eh.prototype.flush=function(){for(var a=this.l.length;a--;)this.Yc(a)};Eh.prototype.flush=Eh.prototype.flush;Eh.prototype.c=function(){this.flush();Eh.a.c.call(this)};Eh.prototype.d={vg:"add",xg:"remove",Ci:"set",Ny:"move"};function Gh(a,b,c,d,e,f){Gh.a.constructor.call(this,b,a);this.idx=c;this.added=d;this.removed=e;this.moved=f}u(Gh,ec);function Hh(a){Hh.a.constructor.call(this);a=a||{};this.min=0;this.max=22;this.zu=!!a.dark;a.min&&this.Fk(a.min);a.max&&this.Ek(a.max);this.pixelProjection=new dg(a.projection,a.minWorldSize)}u(Hh,F);r("H.map.layer.Layer",Hh);Hh.prototype.d={N:"update",mp:"minchange",kp:"maxchange"};Hh.prototype.zw=function(a){return this.min<=a&&a<=this.max};Hh.prototype.isValid=Hh.prototype.zw; +Hh.prototype.Fk=function(a){var b=this.min;if(a!==b){if(D(a))throw new x(Hh.prototype.Fk,0,"min is NaN");if(a<=this.max)this.min=a,this.dispatchEvent(new ke(this.d.mp,a,b));else throw new x(Hh.prototype.Fk,0,"min > max");}return this};Hh.prototype.setMin=Hh.prototype.Fk;Hh.prototype.Ek=function(a){var b=this.max;if(a!==b){if(D(a))throw new x(Hh.prototype.Ek,0,"max is NaN");if(a>=this.min)this.max=a,this.dispatchEvent(new ke(this.d.kp,a,b));else throw new x(Hh.prototype.Ek,0,"max < min");}return this}; +Hh.prototype.setMax=Hh.prototype.Ek;Hh.prototype.Ka=function(){this.dispatchEvent(this.d.N)};Hh.prototype.c=function(){Hh.a.c.call(this)};Hh.prototype.ua=function(){return null};Hh.prototype.getCopyrights=Hh.prototype.ua;function Ih(a){Ih.a.constructor.call(this);this.dispatchEvent=w(this.dispatchEvent,this);if(a)for(var b=0,c=a.length;ba)throw new x(Jh,1,'Argument "maxTime" must be a positive number');this.Mw=a;this.ji=sg()}Kh.prototype.next=function(a){return a.length&&sg()-this.jib||30c)throw new x(this.add,2,c);a=String(a);d=this.l[a];e=!0;this.filter&&(e=this.filter(a,b,c));d?e?(this.pd+=c-d.size,d.size=c,d.data=b,Ph(this,d)):this.Yc(d,!0):e&&(this.l[a]=Qh(this,{id:a,data:b,size:c,Mf:null,Dd:null},this.qf));Rh(this);return e}; +Oh.prototype.add=Oh.prototype.add;Oh.prototype.$f=function(a){if(!xa(a))throw new x(this.$f,0,a);this.Ar=a};Oh.prototype.registerOnDrop=Oh.prototype.$f;Oh.prototype.get=function(a,b){var c=b?this.l[a]:Ph(this,this.l[a]);return c&&c.data};Oh.prototype.get=Oh.prototype.get;Oh.prototype.ej=function(a){var b;(b=this.l[a])&&this.Yc(b,!0)};Oh.prototype.drop=Oh.prototype.ej;Oh.prototype.forEach=function(a,b,c){var d,e;for(e in this.l)d=this.l[e],(c?c(e,d.data,d.size):1)&&a.call(b,e,d.data,d.size)}; +Oh.prototype.forEach=Oh.prototype.forEach;Oh.prototype.Qa=function(a){var b,c;for(c in this.l)b=this.l[c],(a?a(c,b.data,b.size):1)&&this.Yc(this.l[c],!0)};Oh.prototype.removeAll=Oh.prototype.Qa;Oh.prototype.dy=function(a){this.mn=a;Rh(this);return this};Oh.prototype.setMaxSize=Oh.prototype.dy;Oh.prototype.Fv=function(){return this.mn};Oh.prototype.getMaxSize=Oh.prototype.Fv;Oh.prototype.ov=function(){return this.pd};Oh.prototype.getCurrentSize=Oh.prototype.ov; +function Ph(a,b){b&&(a.qf=Qh(a,b,a.qf));return b}function Rh(a){for(;a.pd>a.mn&&a.Ah;)a.Yc(a.Ah,!0)}function Qh(a,b,c){if(c!==b){(b.Mf||b.Dd)&&a.Yc(b);if(b.Mf=c)b.Dd=c.Dd,c.Dd=b;b.Dd||(a.qf=b);b.Mf||(a.Ah=b);a.pd+=b.size}return b}Oh.prototype.Yc=function(a,b){var c=a.Dd,d=a.Mf;if(c||d||a==this.qf&&a==this.Ah)c?c.Mf=d:this.qf=d,d?d.Dd=c:this.Ah=c,this.pd-=a.size,b&&(this.Ar&&this.Ar(a.id,a.data,a.size),delete this.l[a.id]);a.Mf=a.Dd=null;return a};function Ye(a,b,c,d,e,f){var g,h,k=a.length,l,n,p,q,s,t,v;if(k)for(g=[];k--;)for(t=a[k],q=t.length,s=0,l=1;lh){if(h>e||ge||hb){if(b>c||ac||bc)return;g=d}if(ae)return;a=f}h>e&&(b=a+(e-g)*(b-a)/(h-g),h=e);b>c&&(h=g+(c-a)*(h-g)/(b-a),b=c);k&&(a=-a,b=-b);return l?[new G(h,-b),new G(g,-a)]:[new G(g,-a),new G(h,-b)]} +function ef(a,b,c,d,e,f,g,h,k,l){a={x:a,y:b,next:c||null,Xb:d||null,zn:e||null,xn:f||null,xb:g||0,$l:h||0,al:k||0,alpha:l||0};d&&(a.Xb.next=a);c&&(a.next.Xb=a);return a}function gf(a){for(;a&&a.xb;)a=a.next;return a}function ff(a){if(a)for(;a.next;)a=a.next;return a}function mf(a){var b=a;if(b){do b=b.next;while(b!=a&&(!b.xb||b.xb&&b.al))}return b}function lf(a){var b=ff(a);b.Xb.next=a;a.Xb=b.Xb} +function hf(a,b,c,d,e,f){var g,h,k,l=b.x-a.x,n=b.y-a.y;g=d.x-c.x;var p=d.y-c.y;h=l*p-n*g;if(!h)return 0;g=((c.x-a.x)*p-(c.y-a.y)*g)/h;h=(n*(c.x-a.x)-l*(c.y-a.y))/h;if(0>g||1h||1=g||0a){if(f||e)ci(d,c),bi(b,d,!0,f,e);g&&(ci(d,g),di(this,d,b,g,h,0))}else e&&(ci(d,c),bi(b,d,!0,!1,e,0,a)),f&&bi(b,d,!1,f,!1,a),g&&(ci(d,g),di(this,d,b,g,h,a))}; +function bi(a,b,c,d,e,f,g){var h,k,l,n;g===z&&(g=a.length);for(f=f||0;ff;){t=0;l=c[k];if(q=n=l.length){p=l;q=p.length;for(s=0;--q;)s+=p[q].distance(p[q-1]);q=(p=s)>=d}if(q)for(q=kd(Zc(p/d),1E3),q=p/(q+1),s=q/2;--n;){for(v=(C=l[n]).distance(S=l[n-1]);s<=t+v;)la=C.x+(S.x-C.x)*(Z=(s-t)/v),Z=C.y+(S.y-C.y)*Z,a.Xi(la,Z)&&(b.save(),b.translate(la,Z),b.rotate(-td((S.y-C.y)/(C.x- +S.x))+(C.x=n?!1:k;t=p&&qb.right,c)} +gi.prototype.qh=function(a,b,c,d,e){if(!B(a,Uf))throw new x(this.qh,0,a);if(D(c=+c))throw new x(this.qh,1,c);var f,g=[],h,k=this.R,l=k.requestTile;d||(f={});b=ii(this,a,b,c,e);if(a=b.length)for(d||b.sort(ki),c=a;c--;)e=b[c],d||(f[k.sh.apply(k,e)]=!0),e[3]=+d,(h=l.apply(k,e))&&g.push(h);if(!d){d=f;for(var n in this.Uk)this.Uk.hasOwnProperty(n)&&this.Uk[n]&&!d[n]&&this.R.cancelTileByKey(n);this.Uk=d}return{total:a,tiles:g}};gi.prototype.getProviderTiles=gi.prototype.qh; +function ki(a,b){return b[3]-a[3]};function Q(a){Ma(this,Q);Q.a.constructor.call(this,a);this.Ua={};this.entryWeight=1;this.Vs=new li;this.df=w(this.df,this)}u(Q,Lh);r("H.map.provider.RemoteTileProvider",Q);Q.prototype.MAX_STORE_TIME=Infinity;var mi=new Oh(65536);Q.cache=mi;Q.prototype.Ob=function(){return mi};Q.prototype.getCache=Q.prototype.Ob;Q.prototype.wf=function(){return this.Vs};Q.prototype.getStorage=Q.prototype.wf;Q.prototype.df=function(a){return Ja(a,"_")[0]===this.uri};Q.prototype.cacheFilter=Q.prototype.df; +Q.prototype.requestInternal=Q.prototype.tc;Q.prototype.kf=function(a,b,c,d){return new Th(a,b,c,d)};Q.prototype.createTileInternal=Q.prototype.kf;Q.prototype.Ul={cancel:function(){}}; +Q.prototype.vc=function(a,b,c,d){var e=this,f,g,h,k=this.getCache(),l,n=this.Ua,p=this.wf();if(D(a=+a))throw new x(this.vc,0,a);if(D(b=+b))throw new x(this.vc,0,b);if(D(c=+c))throw new x(this.vc,0,c);c=~~c;f=this.getTileKey(a,b,c);g=k.get(f);g&&g.valid||d||this.Ua[f]||(n[f]=this.Ul,h=function(d){var h;d&&(h=y.Date.now()-d.timestamp);d&&ha.right,b,c,d)};hi.prototype.requestTiles=hi.prototype.Gd;function pg(a,b){var c=b||{};c.tileSize=c.tileSize||256;c.pixelRatio=c.pixelRatio||1;this.Se=new fi(a,c);this.Te=new hi(this.Se,{opacity:1});c.minWorldSize=this.Se.tileSize;pg.a.constructor.call(this,c);this.opacity=this.Te.opacity;this.tileSize=this.Te.tileSize;this.sc=a;this.bk=w(this.bk,this);this.Se.addEventListener(this.Se.d.N,this.bk);this.sc.addEventListener("update",this.bk)}u(pg,Hh);r("H.map.layer.ObjectLayer",pg); +pg.prototype.bk=function(a){a.currentTarget!==this.Se&&a.target.type===me.SPATIAL||this.Ka()};pg.prototype.Ra=function(){return this.sc};pg.prototype.getProvider=pg.prototype.Ra;var oi={markers:Fc,total:0};pg.prototype.Db=function(a,b,c){var d=this.sc,e;return d.providesMarkers()&&(e=d.requestMarkers(a,b,!0,c)).length?{markers:e,total:e.length}:oi};pg.prototype.requestMarkers=pg.prototype.Db; +pg.prototype.Cb=function(a,b,c){var d=this.sc,e;return d.providesDomMarkers()&&(e=d.requestDomMarkers(a,b,!0,c)).length?{markers:e,total:e.length}:oi};pg.prototype.requestDomMarkers=pg.prototype.Cb;var pi={tiles:Fc,total:0};pg.prototype.Gd=function(a,b,c,d){var e;this.sc.providesSpatials()?(e=this.Te.Gd(a,b,c,d),c||(this.Se.Ae(),e=this.Te.Gd(a,b,!0,d))):e=pi;return e};pg.prototype.requestTiles=pg.prototype.Gd;pg.prototype.vc=function(a,b,c,d){return this.Te.vc(a,b,c,d)};pg.prototype.requestTile=pg.prototype.vc; +pg.prototype.nd=function(a,b,c){this.Te.nd(a,b,c)};pg.prototype.cancelTile=pg.prototype.nd;var qi={overlays:Fc,total:0};pg.prototype.Yh=function(a,b,c){var d=this.sc,e=qi;d.providesOverlays&&d.providesOverlays()&&(a=d.requestOverlays(a,b,!0,c),b=a.length)&&(e={overlays:a,total:b});return e};pg.prototype.requestOverlays=pg.prototype.Yh;pg.prototype.c=function(){this.Se.e();this.Te.e();this.sc.dispose();pg.a.c.call(this)};function ri(a,b){xa(a)&&(this.Or=a);Ta(b)&&(this.qi=b)}r("H.util.Request",ri);ri.State={PENDING:0,PROCESSING:1,COMPLETE:2,CANCELLED:3,ERROR:4};var si={op:0,jl:1,il:2,Iy:3,ERROR:4},ti=[0,1,2,3,4];ri.prototype.j=0;ri.prototype.getState=function(){return this.j};ri.prototype.getState=ri.prototype.getState;ri.prototype.g=function(a){if(0>ti.indexOf(a))throw new x(this.g,0,a);if(this.j!==a||1===a&&1b;a-=0;if(0<=a&&1>=a)a!==b&&(this.Rr=a,c&&this.la(je.VISUAL));else throw new x(this.setOpacity,0);return this}; +Ch.prototype.setOpacity=Ch.prototype.setOpacity;function Bi(a){if(!a||!xa(a.requestData))throw new x(Bi,0,"options.requestData");Bi.a.constructor.call(this,a);this.Vx=a.requestData;this.Fx=!!a.providesDomMarkers||!1}u(Bi,Q);r("H.map.provider.MarkerTileProvider",Bi);Bi.prototype.tc=function(a,b,c,d,e){var f=this;return this.Vx(a,b,c,function(e){for(var h=[],k,l,n=e.length;n--;)l=e[n],l.ty=f.getTileKey(a,b,c),l.G(f),k=l.Hc(),(B(l,zf)||k.getState()===k.zg.READY)&&h.push(e[n]);d(h)},e)};Bi.prototype.requestInternal=Bi.prototype.tc; +Bi.prototype.Mc=function(a,b){var c;b!==je.NONE&&((c=this.Ob().get(a.ty))&&(c.valid=!1),this.Ka())};Bi.prototype.invalidateObject=Bi.prototype.Mc;Bi.prototype.De=function(){return this.Fx};Bi.prototype.providesDomMarkers=Bi.prototype.De;function Ci(a,b){this.opacity=1;Ci.a.constructor.call(this,a,b)}u(Ci,gi);r("H.map.layer.MarkerTileLayer",Ci);var Di={markers:[],total:0,requested:0};function Ei(a,b,c,d,e){var f;f=Zc(c);a.pixelProjection.oa(f);b=a.bh(b);f=a.xf(b,f);c=a.qh(f,f.left>f.right,~~c,d,e);a=c.tiles;c=c.total;d=a.length;e=[];var g;for(g=0;g=b.length){c=this.la.i();for(d=b.length;d--;)c.remove(b[d].identifier);for(d=c.length();d--;)this.la.remove(c.item(d).id);this.Ha=c;Si(this,\"pointercancel\",a);this.Ha.clear()}if(this.gt[a.type]){b=Ei(this.q.element);c=a.type;d=a.changedTouches;var e=d.length,f,g,h,k,l,n;this.Ha.clear();for(n=0;na.en&&(a.kk=!0,e.dispatchEvent(new aj(b,c,e,d)),vg(f.f(),a.ap,a.Np,!1,a))}m.ap=[\"mousedown\",\"touchstart\",\"pointerdown\",\"wheel\"];\nm.Np=function(){this.kk&&(this.kk=!1,this.map.dispatchEvent(new fc(\"contextmenuclose\",this.map)))};m.c=function(){var a=this.map.f();clearInterval(this.of);a&&xg(a,this.ap,this.Np,!1,this);Qi.prototype.c.call(this)};function dj(a,b,c,d,e){dj.a.constructor.call(this,\"wheel\");this.delta=a;this.viewportX=b;this.viewportY=c;this.target=d;this.originalEvent=e}u(dj,fc);r(\"H.mapevents.WheelEvent\",dj);function ej(a){var b=\"onwheel\"in document;this.Lt=b;this.It=(b?\"d\":\"wheelD\")+\"elta\";this.Km=w(this.Km,this);ej.a.constructor.call(this,a,[{Aa:(b?\"\":\"mouse\")+\"wheel\",C:this.Km}])}u(ej,Qi);ej.prototype.normalize=function(a,b,c){var d=this.It,e=a[d+(d+\"Y\"in a?\"Y\":\"\")],f,g,h;e&&(h=Math.abs,f=h(e),e=(!(g=a[d+\"X\"])||3<=f/h(g))&&(!(g=a[d+\"Z\"])||3<=f/h(g))?((0e))*(this.Lt?1:-1):0);return new dj(e,b,c,null,a)};\nej.prototype.Km=function(a){var b=Ei(this.element);a=this.normalize(a,a.pageX-b.x,a.pageY-b.y);a.delta&&(a.target=this.map.Ba(a.viewportX,a.viewportY)[0],a.target&&\"function\"===typeof a.target.dispatchEvent&&a.target.dispatchEvent(a),a.defaultPrevented||this.map.dispatchEvent(a))};function fj(a){var b=window;this.ge=w(this.ge,this);Qi.call(this,a,[{Aa:\"mousedown\",C:this.ge},{Aa:\"mousemove\",C:this.ge,target:b},{Aa:\"mouseup\",C:this.ge,target:b},{Aa:\"mouseover\",C:this.ge},{Aa:\"mouseout\",C:this.ge},{Aa:\"dragstart\",C:this.ik}])}u(fj,Qi);fj.prototype.Kl=function(a,b){var c=new Hi(b.x,b.y,1,\"mouse\");this.la.push(c);return c};\nfj.prototype.ge=function(a){var b=a.type,c=Ei(this.element),d={x:a.pageX-c.x,y:a.pageY-c.y},c=this.la.item(0)||this.Kl(a,d);this.Ha.push(c);Ii(c,d.x,d.y);/^mouse(?:move|over|out)$/.test(b)?Si(this,\"pointermove\",a):(/^mouse(down|up)$/.test(b)&&(d=a.which-1,\"up\"===Fi.RegExp.$1?Ki(c,d):Ji(c,d)),Si(this,b.replace(\"mouse\",\"pointer\"),a));this.Ha.clear()};fj.prototype.ik=function(a){a.preventDefault()};function gj(a){if(-1!==hj.indexOf(a))throw Error(\"InvalidArgument: map is already in use\");this.b=a;hj.push(a);this.Dp=this.pt=this.qn=this.Ko=null;navigator.msPointerEnabled||navigator.pointerEnabled?this.Ko=new Yi(this.b):(this.Ko=new Xi(this.b),this.qn=new fj(this.b));this.pt=new ej(this.b);this.Dp=new bj(this.b);this.b.hd(this.e,this);zb.call(this)}u(gj,zb);r(\"H.mapevents.MapEvents\",gj);var hj=[];\ngj.prototype.e=function(){this.b=null;this.Ko.e();this.pt.e();this.Dp.e();this.qn&&this.qn.e();hj.splice(hj.indexOf(this.b),1);zb.prototype.e.call(this)};gj.prototype.dispose=gj.prototype.e;gj.prototype.fv=function(){return this.b};gj.prototype.getAttachedMap=gj.prototype.fv;function ij(a,b){if(-1!==jj.indexOf(a))throw Error(\"InvalidArgument: events are already used\");var c=b||{},d;zb.call(this);this.b=d=a.b;this.Hw=a;jj.push(a);this.b.draggable=!0;this.kb=c.kinetics||{duration:600,Wl:rg};this.Vp=7;this.enable(c.enabled||this.Vp);c=S.EngineType;this.q=this.b.q;this.Ze=this.q.element;this.M=this.b.M;this.Rn=c.P2D;this.Ze.style.msTouchAction=\"none\";this.Ze.style.Uy=\"none\";d.addEventListener(\"dragstart\",this.ik,!1,this);d.addEventListener(\"drag\",this.Kr,!1,this);d.addEventListener(\"dragend\",\nthis.Lr,!1,this);d.addEventListener(\"wheel\",this.Or,!1,this);d.addEventListener(\"dbltap\",this.Jr,!1,this);d.addEventListener(\"tap\",this.Nr,!1,this);d.addEventListener(\"pointermove\",this.$r,!1,this);wg(this.Ze,\"contextmenu\",this.Ir,!1,this);a.hd(this.e,this)}u(ij,zb);r(\"H.mapevents.Behavior\",ij);var jj=[];ij.prototype.ba=0;ij.DRAGGING=1;ij.WHEELZOOM=2;ij.DBLTAPZOOM=4;m=ij.prototype;\nm.ik=function(a){var b=a.pointers;a=this.q;var c=b[0],b=b[1]||{};this.ba&1&&(a.startInteraction(17,this.kb),a.interaction(c.viewportX,c.viewportY,b.viewportX,b.viewportY),this.ba&2&&this.Gi(c.viewportX,c.viewportY))};m.Kr=function(a){var b=a.pointers[0],c=a.pointers[1]||{};this.ba&1&&(this.q.interaction(b.viewportX,b.viewportY,c.viewportX,c.viewportY),a.originalEvent.preventDefault())};m.Lr=function(){this.ba&1&&this.q.endInteraction(!this.kb)};\nm.Gi=function(a,b){var c,d;this.an&&(c=this.b.getZoom(),d=Math[0>this.an?\"ceil\":\"floor\"](c),c!==d&&(this.an=null,this.zoom(c,d,a,b)))};m.$t=0.006;m.zoom=function(a,b,c,d){var e=this.b.M;if(isNaN(+a))throw Error(\"start zoom needs to be a number\");if(isNaN(+b))throw Error(\"to zoom needs to be a number\");0!==+b-+a&&(e.startControl(null,c,d),e.control(0,0,this.$t),e.endControl(!0,function(a){a.zoom=b}))};\nm.Or=function(a){var b,c,d,e;this.ba&2&&(b=a.delta,c=this.b.getZoom(),e=Math[0>b?\"ceil\":\"floor\"](c-b),d=this.b,d.ib().type===this.Rn?(this.zoom(c,e,a.viewportX,a.viewportY),this.an=b):(c=this.b.M.Gc(),c.fov+=16*b,d.M.Zc(c)),a.originalEvent.preventDefault())};m.Nr=function(a){a=a.currentPointer;this.Rn!==this.b.ib().type&&(a=this.b.Qe(a.viewportX,a.viewportY),this.b.M.Zc(a))};m.$r=function(a){a=a.currentPointer;this.b.ib().setPointer(a.viewportX,a.viewportY)};\nm.Jr=function(a){var b=a.currentPointer,c=this.b.getZoom(),d=a.currentPointer.type;this.Rn===this.b.ib().type&&(a=\"mouse\"===d?0===a.originalEvent.button?-1:1:0a?\"ceil\":\"floor\"](c-a),this.ba&4&&this.zoom(c,a,b.viewportX,b.viewportY))};m.Ir=function(a){return this.ba&4?(a.preventDefault(),!1):!0};\nm.e=function(){var a=this.b;a&&(a.draggable=!1,a.removeEventListener(\"dragstart\",this.ik,!1,this),a.removeEventListener(\"drag\",this.Kr,!1,this),a.removeEventListener(\"dragend\",this.Lr,!1,this),a.removeEventListener(\"wheel\",this.Or,!1,this),a.removeEventListener(\"tap\",this.Nr,!1,this),a.removeEventListener(\"dbltap\",this.Jr,!1,this),a.removeEventListener(\"pointermove\",this.$r,!1,this),this.b=null);this.Ze&&(this.Ze.style.msTouchAction=\"\",xg(this.Ze,\"contextmenu\",this.Ir,!1,this),this.Ze=null);this.kb=\nthis.q=null;jj.splice(jj.indexOf(this.Hw),1);zb.prototype.e.call(this)};ij.prototype.dispose=ij.prototype.e;ij.prototype.disable=function(a){this.q.endInteraction(!0);a?this.ba&a&&(this.ba-=a,a&1&&(this.b.draggable=!1)):(this.ba=0,this.b.draggable=!1)};ij.prototype.disable=ij.prototype.disable;ij.prototype.enable=function(a){a?this.ba&a||(this.ba+=a,a&1&&(this.b.draggable=!0)):(this.ba=this.Vp,this.b.draggable=!0)};ij.prototype.enable=ij.prototype.enable;\nij.prototype.isEnabled=function(a){if(isNaN(a))throw Error(\"behavior: number required\");return!!(this.ba&a)};ij.prototype.isEnabled=ij.prototype.isEnabled;r(\"H.mapevents.buildInfo\",function(){return xi(\"mapsjs-mapevents\",\"0.12.2\",\"8f389e9\")});\n"); +H.util.eval("function Oi(a){var b=a.ownerDocument,b=b.documentElement||b.body.parentNode||b.body;a=a.getBoundingClientRect();return{x:a.left+(\"number\"===typeof window.pageXOffset?window.pageXOffset:b.scrollLeft),y:a.top+(\"number\"===typeof window.pageYOffset?window.pageYOffset:b.scrollTop)}}var Pi=/Edge\\/\\d+/.test(navigator.appVersion),Qi=Function(\"return this\")();function Ri(a,b,c,d,e,f,g){Ri.a.constructor.call(this,a);this.pointers=b;this.changedPointers=c;this.targetPointers=d;this.currentPointer=e;this.originalEvent=g;this.target=f}u(Ri,ec);r(\"H.mapevents.Event\",Ri);function Si(a,b,c,d,e,f){if(isNaN(a))throw Error(\"x needs to be a number\");if(isNaN(b))throw Error(\"y needs to be a number\");if(isNaN(c))throw Error(\"pointer must have an id\");this.viewportX=a;this.viewportY=b;this.target=null;this.id=c;this.type=d;this.dragTarget=null;this.zj=this.button=e!==z?e:-1;this.buttons=f!==z?f:0}r(\"H.mapevents.Pointer\",Si);\nfunction Ti(a,b,c){if(isNaN(b))throw Error(\"x needs to be a number\");if(isNaN(c))throw Error(\"y needs to be a number\");a.viewportX=b;a.viewportY=c}Si.prototype.vv=function(){return this.zj};Si.prototype.getLastChangedButton=Si.prototype.vv;function Ui(a,b){a.zj=b;a.buttons|=Si.prototype.Cp[+b]||0}function Vi(a,b){a.zj=b;a.buttons&=~(Si.prototype.Cp[+b]||0)}Si.prototype.Cp=[1,4,2];var Wi={NONE:-1,LEFT:0,MIDDLE:1,RIGHT:2};Si.Button=Wi;function Xi(a){this.ca=a instanceof Array?a.slice(0):[]}m=Xi.prototype;m.clear=function(){this.ca.splice(0,this.ca.length)};m.length=function(){return this.ca.length};m.item=function(a){return this.ca[a]};m.indexOf=function(a){for(var b=this.ca.length;b--;)if(this.ca[b].id===a)return b;return-1};function Yi(a,b){var c=a.indexOf(b);return-1!==c?a.ca[c]:null}m.remove=function(a){a=this.indexOf(a);return-1!==a?this.ca.splice(a,1)[0]:null};\nfunction Zi(a,b){for(var c=a.ca.length,d=[];c--;)a.ca[c].type!==b&&d.push(a.ca[c]);a.ca=d}function $i(a,b){for(var c=a.ca.length;c--;)if(a.ca[c].dragTarget===b)return!0;return!1}m.push=function(a){if(a instanceof Si)return this.ca.push(a);throw Error(\"list needs a pointer\");};m.ld=function(){return this.ca};m.i=function(){return new Xi(this.ca)};function aj(a,b,c){c=c||{};if(!(a instanceof R))throw Error(\"events: map instance required\");if(!(b instanceof Array))throw Error(\"events: map array required\");yb.call(this);this.Pl=c.Pl||300;this.Mp=c.Mp||50;this.ct=c.ct||50;this.dt=c.dt||500;this.gn=c.gn||900;this.jr=c.jr||50;this.map=a;this.ya=this.map.q;this.element=this.ya.element;this.cm=b;this.na=new Xi;this.Ia=new Xi;this.le={};this.ja=null;this.hj=!0;this.Lh={};this.Gh={};this.Ch=null;this.Qg=w(this.Qg,this);this.Ou={pointerdown:this.Gu,\npointermove:this.Hu,pointerup:this.Iu,pointercancel:this.Fu};bj(this)}u(aj,yb);function bj(a,b){for(var c,d,e=0,f=a.cm.length,e=0;e=b.length){c=this.na.i();for(d=b.length;d--;)c.remove(b[d].identifier);for(d=c.length();d--;)this.na.remove(c.item(d).id);this.Ia=c;cj(this,\"pointercancel\",a);this.Ia.clear()}if(this.ht[a.type]){b=Oi(this.ya.element);c=a.type;d=a.changedTouches;var e=d.length,f,g,h,k,l,n;this.Ia.clear();for(n=0;na.gn&&(a.jk=!0,e.dispatchEvent(new lj(b,c,e,d)),Eg(f.f(),a.dp,a.Rp,!1,a))}m.dp=[\"mousedown\",\"touchstart\",\"pointerdown\",\"wheel\"];\nm.Rp=function(){this.jk&&(this.jk=!1,this.map.dispatchEvent(new ec(\"contextmenuclose\",this.map)))};m.c=function(){var a=this.map.f();clearInterval(this.mf);a&&Gg(a,this.dp,this.Rp,!1,this);aj.prototype.c.call(this)};function oj(a,b,c,d,e){oj.a.constructor.call(this,\"wheel\");this.delta=a;this.viewportX=b;this.viewportY=c;this.target=d;this.originalEvent=e}u(oj,ec);r(\"H.mapevents.WheelEvent\",oj);function pj(a){var b=\"onwheel\"in document;this.Mt=b;this.Jt=(b?\"d\":\"wheelD\")+\"elta\";this.Lm=w(this.Lm,this);pj.a.constructor.call(this,a,[{Ba:(b?\"\":\"mouse\")+\"wheel\",C:this.Lm}]);this.q=this.map.q}u(pj,aj);\npj.prototype.normalize=function(a,b,c){var d=this.Jt,e=a[d+(d+\"Y\"in a?\"Y\":\"\")],f,g,h;Pi&&\"rtl\"===y.getComputedStyle(this.q.element).direction&&(b-=(y.devicePixelRatio-1)*this.q.width);e&&(h=Math.abs,f=h(e),e=(!(g=a[d+\"X\"])||3<=f/h(g))&&(!(g=a[d+\"Z\"])||3<=f/h(g))?((0e))*(this.Mt?1:-1):0);return new oj(e,b,c,null,a)};\npj.prototype.Lm=function(a){var b=Oi(this.element);a=this.normalize(a,a.pageX-b.x,a.pageY-b.y);a.delta&&((a.target=b=this.map.Ca(a.viewportX,a.viewportY)[0])&&xa(b.dispatchEvent)&&b.dispatchEvent(a),a.defaultPrevented||this.map.dispatchEvent(a))};function qj(a){var b=window;this.ge=w(this.ge,this);aj.call(this,a,[{Ba:\"mousedown\",C:this.ge},{Ba:\"mousemove\",C:this.ge,target:b},{Ba:\"mouseup\",C:this.ge,target:b},{Ba:\"mouseover\",C:this.ge},{Ba:\"mouseout\",C:this.ge},{Ba:\"dragstart\",C:this.hk}])}u(qj,aj);qj.prototype.Kl=function(a,b){var c=new Si(b.x,b.y,1,\"mouse\");this.na.push(c);return c};\nqj.prototype.ge=function(a){var b=a.type,c=Oi(this.element),d={x:a.pageX-c.x,y:a.pageY-c.y},c=this.na.item(0)||this.Kl(a,d);this.Ia.push(c);Ti(c,d.x,d.y);/^mouse(?:move|over|out)$/.test(b)?cj(this,\"pointermove\",a):(/^mouse(down|up)$/.test(b)&&(d=a.which-1,\"up\"===Qi.RegExp.$1?Vi(c,d):Ui(c,d)),cj(this,b.replace(\"mouse\",\"pointer\"),a));this.Ia.clear()};qj.prototype.hk=function(a){a.preventDefault()};function rj(a){var b=a.q.element.style;if(-1!==sj.indexOf(a))throw Error(\"InvalidArgument: map is already in use\");this.b=a;sj.push(a);b.msTouchAction=b.touchAction=\"none\";this.Gp=this.qt=this.sn=this.No=null;navigator.msPointerEnabled||navigator.pointerEnabled?this.No=new ij(this.b):(this.No=new hj(this.b),this.sn=new qj(this.b));this.qt=new pj(this.b);this.Gp=new mj(this.b);this.b.jd(this.e,this);yb.call(this)}u(rj,yb);r(\"H.mapevents.MapEvents\",rj);var sj=[];\nrj.prototype.e=function(){this.b=null;this.No.e();this.qt.e();this.Gp.e();this.sn&&this.sn.e();sj.splice(sj.indexOf(this.b),1);yb.prototype.e.call(this)};rj.prototype.dispose=rj.prototype.e;rj.prototype.fv=function(){return this.b};rj.prototype.getAttachedMap=rj.prototype.fv;function tj(a,b){if(-1!==uj.indexOf(a))throw Error(\"InvalidArgument: events are already used\");var c=b||{},d;yb.call(this);this.b=d=a.b;this.Iw=a;uj.push(a);this.b.draggable=!0;this.lb=c.kinetics||{duration:600,Wl:Ag};this.Yp=7;this.enable(c.enabled||this.Yp);c=R.EngineType;this.q=this.b.q;this.ti=this.q.element;this.M=this.b.M;this.Tn=c.P2D;d.addEventListener(\"dragstart\",this.hk,!1,this);d.addEventListener(\"drag\",this.Mr,!1,this);d.addEventListener(\"dragend\",this.Nr,!1,this);d.addEventListener(\"wheel\",\nthis.Qr,!1,this);d.addEventListener(\"dbltap\",this.Lr,!1,this);d.addEventListener(\"tap\",this.Pr,!1,this);d.addEventListener(\"pointermove\",this.bs,!1,this);Fg(this.ti,\"contextmenu\",this.Kr,!1,this);a.jd(this.e,this)}u(tj,yb);r(\"H.mapevents.Behavior\",tj);var uj=[];tj.prototype.ba=0;tj.DRAGGING=1;tj.WHEELZOOM=2;tj.DBLTAPZOOM=4;m=tj.prototype;\nm.hk=function(a){var b=a.pointers;a=this.q;var c=b[0],b=b[1]||{};this.ba&1&&(a.startInteraction(17,this.lb),a.interaction(c.viewportX,c.viewportY,b.viewportX,b.viewportY),this.ba&2&&this.Gi(c.viewportX,c.viewportY))};m.Mr=function(a){var b=a.pointers[0],c=a.pointers[1]||{};this.ba&1&&(this.q.interaction(b.viewportX,b.viewportY,c.viewportX,c.viewportY),a.originalEvent.preventDefault())};m.Nr=function(){this.ba&1&&this.q.endInteraction(!this.lb)};\nm.Gi=function(a,b){var c,d;this.cn&&(c=this.b.getZoom(),d=Math[0>this.cn?\"ceil\":\"floor\"](c),c!==d&&(this.cn=null,this.zoom(c,d,a,b)))};m.au=0.006;m.zoom=function(a,b,c,d){var e=this.b.M;if(isNaN(+a))throw Error(\"start zoom needs to be a number\");if(isNaN(+b))throw Error(\"to zoom needs to be a number\");0!==+b-+a&&(e.startControl(null,c,d),e.control(0,0,this.au),e.endControl(!0,function(a){a.zoom=b}))};\nm.Qr=function(a){var b,c,d,e;this.ba&2&&(b=a.delta,c=this.b.getZoom(),e=Math[0>b?\"ceil\":\"floor\"](c-b),d=this.b,d.jb().type===this.Tn?(this.zoom(c,e,a.viewportX,a.viewportY),this.cn=b):(c=this.b.M.Gc(),c.fov+=16*b,d.M.$c(c)),a.originalEvent.preventDefault())};m.Pr=function(a){a=a.currentPointer;this.Tn!==this.b.jb().type&&(a=this.b.Pe(a.viewportX,a.viewportY),this.b.M.$c(a))};m.bs=function(a){a=a.currentPointer;this.b.jb().setPointer(a.viewportX,a.viewportY)};\nm.Lr=function(a){var b=a.currentPointer,c=this.b.getZoom(),d=a.currentPointer.type;this.Tn===this.b.jb().type&&(a=\"mouse\"===d?0===a.originalEvent.button?-1:1:0a?\"ceil\":\"floor\"](c-a),this.ba&4&&this.zoom(c,a,b.viewportX,b.viewportY))};m.Kr=function(a){return this.ba&4?(a.preventDefault(),!1):!0};\nm.e=function(){var a=this.b;a&&(a.draggable=!1,a.removeEventListener(\"dragstart\",this.hk,!1,this),a.removeEventListener(\"drag\",this.Mr,!1,this),a.removeEventListener(\"dragend\",this.Nr,!1,this),a.removeEventListener(\"wheel\",this.Qr,!1,this),a.removeEventListener(\"tap\",this.Pr,!1,this),a.removeEventListener(\"dbltap\",this.Lr,!1,this),a.removeEventListener(\"pointermove\",this.bs,!1,this),this.b=null);this.ti&&(this.ti.style.msTouchAction=\"\",Gg(this.ti,\"contextmenu\",this.Kr,!1,this),this.ti=null);this.lb=\nthis.q=null;uj.splice(uj.indexOf(this.Iw),1);yb.prototype.e.call(this)};tj.prototype.dispose=tj.prototype.e;tj.prototype.disable=function(a){this.q.endInteraction(!0);a?this.ba&a&&(this.ba-=a,a&1&&(this.b.draggable=!1)):(this.ba=0,this.b.draggable=!1)};tj.prototype.disable=tj.prototype.disable;tj.prototype.enable=function(a){a?this.ba&a||(this.ba+=a,a&1&&(this.b.draggable=!0)):(this.ba=this.Yp,this.b.draggable=!0)};tj.prototype.enable=tj.prototype.enable;\ntj.prototype.isEnabled=function(a){if(isNaN(a))throw Error(\"behavior: number required\");return!!(this.ba&a)};tj.prototype.isEnabled=tj.prototype.isEnabled;r(\"H.mapevents.buildInfo\",function(){return Hi(\"mapsjs-mapevents\",\"0.12.4\",\"7091e2f\")});\n"); diff --git a/scripts/mapsjs-service.js b/scripts/mapsjs-service.js index ca8fbaa..4cd8b36 100644 --- a/scripts/mapsjs-service.js +++ b/scripts/mapsjs-service.js @@ -1 +1 @@ -H.util.eval("function U(a,b,c,d,e,f){if(a&&b)this.Se(a),this.ad(b),this.Zb(c),this.ei(e),this.bi(f),this.kg(d);else throw Error('Parameters \"scheme\" and \"host\" must be specified');}r(\"H.service.Url\",U);\nfunction kj(a,b){var c=a,d=document,e,f,g,h,k=d.createElement(\"a\");b&&(f=(e=d.getElementsByTagName(\"base\")[0])&&e.href,g=d.head,h=e||g.appendChild(d.createElement(\"base\")),h.href=b);k.href=c;c=k.href;b&&(e?e.href=f:g.removeChild(h));c=/(?:(\\w+):\\/\\/)?(?:([^:]+):([^@/]*)@)?([^/:]+)?(?:[:]{1}([0-9]+))?(\\/[^?#]*)?(\\?[^#]+)?(#.*)?/.exec(c);e=c[1];k=c[4];f=c[5];d=c[6];g=c[7];h=c[8];!c[2]&&k&&/@/.test(k)&&(k=k.split(\"@\")[1]);var c=k,d=d&&0=this.min&&a<=this.max)if((c=this.vk.length)&&this.mk){if(this.mk.Df(b))for(;c--;)if(this.vk[c].Df(b))return!0}else return!0;return!1};function vj(a){var b=0,c,d,e=a.length;if(0===e)return b;for(c=0;ca};gk.prototype.release=gk.prototype.He;function hk(){}hk.prototype.parse=function(){};r(\"H.service.remote.IParser.prototype.parse\",hk.prototype.parse);function ik(a,b,c){M.call(this,ak(a));this.Wu=c;this.floorSpace_=new gk(a,b.id,b,!0);this.k(this.floorSpace_);this.floorSpaces=new M(ak(a));this.k(this.floorSpaces);this.Bo={}}u(ik,M);r(\"H.service.venues.Floor\",ik);ik.prototype.nh=function(){return this.Wu};ik.prototype.getLevel=ik.prototype.nh;ik.prototype.sm=function(){return this.floorSpace_};ik.prototype.getFloorSpace=ik.prototype.sm;ik.prototype.Wv=function(){return this.floorSpaces};ik.prototype.getSpaces=ik.prototype.Wv;\nik.prototype.gh=function(){return this.ka};ik.prototype.getBuilding=ik.prototype.gh;ik.prototype.getData=function(){return this.floorSpace_&&this.floorSpace_.getData()};ik.prototype.getData=ik.prototype.getData;ik.prototype.setData=function(a){this.floorSpace_.setData(a);return this};ik.prototype.setData=ik.prototype.setData;ik.prototype.rq=function(a){return this.Bo[a]};ik.prototype.getSpace=ik.prototype.rq;\nik.prototype.Ti=function(){if(!this.floorSpaces.Cc&&!this.floorSpace_){var a=this.gh(),b=this.nh();b===a.Xd&&(a.Xd=0);delete a.floorsByLevel_[b];a.P(this);a.Cc||(b=a.ka,delete b.Ni[a.X()],b.P(a),b.Cc||b.Qa().P(b))}};function jk(){}var kk;jk.prototype.St=Math.PI/180;function lk(a,b){return a&&a.category&&a.category[b||\"id\"]}function mk(a){var b,c;return a.sort(function(a,e){b=a.object.type;c=e.object.type;return b>c?-1:bb.xl.indexOf(p)&&b.xl.push(p);(v=p.lh(e))?(q=v.sm(),l=q.ee(b).concat(l)):(v=new ik(a,k,e),q=p,p=v,s=p.nh(),p.setVisibility(s===q.Xd),q.floorsByLevel_[s]=p,q.k(p),q=v.sm(),f&&f(q),p=lk(v.getData(),\"profileKey\"),t=d.Ma(p,void 0),q.Ik(t.floor));C[k.id]=v;0>g.indexOf(q)&&g.push(q);q.Yc[b.key]=new ek(l,-1,void 0);break;case \"space\":if(n=k.id,v=C[/_d$/.test(k.outerAreaId)?\nk.outerAreaId:k.outerAreaId+\"_d\"])q=v.rq(n),p=lk(v.getData(),\"profileKey\"),s=lk(q?q.getData():k),q||(t=q=new gk(a,n,k),v.Bo[t.X()]=t,v.floorSpaces.k(t),t=d.Ma(p,s),q.Ik(t.space),f&&f(q)),q.Oe(),(k=k.label)&&k.firstLinePos?(t=t||d.Ma(p,s),v=q.nw,k=[{lines:La(k.text,\"\\n\"),angle:k.rotation*this.St,font:k.font.face,size:k.font.size,lineHeight:k.font.lineHeight,color:v&&v.fillColor||t.spaceLabel.fillColor,x:k.firstLinePos[0],y:k.firstLinePos[1]}]):k=null,g.push(q),q.Yc[b.key]=new ek(l,-1,k)}}else kk=!0;\nreturn kk?void 0:{spatials:g}};r(\"H.service.venues.Parser.prototype.parse\",jk.prototype.parse);function nk(a,b){var c=b||{};if(!(a&&a instanceof ok))throw Error(\"InvalidArgument: service required\");this.Ho=c.tileCacheSize||256;this.ob=w(this.ob,this);this.objectProvider_=new Qj(a,new jk,{min:this.kp,max:this.ip,onSpaceCreated:c.onSpaceCreated});this.objectProvider_.G(this);this.Vb=w(this.Vb,this);this.objectProvider_.addEventListener(\"update\",this.Vb);this.Jn=w(this.Jn,this);this.objectProvider_.addEventListener(\"reload\",this.Jn);this.In=w(this.In,this);this.objectProvider_.addEventListener(\"error\",\nthis.In);this.Ea=c.pixelRatio||c.pixelratio||1;this.tileSize=256;this.wi=Ch(this.tileSize,this.Ea);this.gf=new Eh(this.Ho,this.ob);this.getCache=this.Nb;Q.call(this,{min:this.kp,max:this.ip})}u(nk,Q);r(\"H.service.venues.TileProvider\",nk);m=nk.prototype;m.kp=16;m.Ea=1;m.ip=20;m.Vb=function(){this.dispatchEvent(\"update\")};m.In=function(){this.dispatchEvent(\"error\")};m.Jn=function(){this.reload(!0)};\nm.ob=function(a,b){var c,d,e;c=b.Ob();for(e=c.length;e--;)d=c[e],delete d.Yc[b.key],d.He();b.data&&Dj.push(b.wk(),this.tileSize);b.xk()};m.ig=function(a){this.objectProvider_.ig(a)};nk.prototype.setCurrentLevel=nk.prototype.ig;nk.prototype.uf=function(){return this.objectProvider_.uf()};nk.prototype.getCurrentLevel=nk.prototype.uf;nk.prototype.Nb=function(){return this.gf};\nnk.prototype.sc=function(a,b,c,d){var e;this.Nb().get(this.getTileKey(a,b,c))?d(null,null):e=wj.setTimeout(function(){d(null,null)},500);return{cancel:function(){wj.clearTimeout(e)}}};nk.prototype.requestInternal=nk.prototype.sc;nk.prototype.mf=function(a,b,c){var d=Dj.pop(this.tileSize),e=this.Nb().get(this.getTileKey(a,b,c));e||(e=new Lj(this.th(a,b,c),a,b,c,this.tileSize,this.Ea,c+this.wi,this.objectProvider_));e.F(d)||Dj.push(d,this.tileSize);return e};nk.prototype.createTileInternal=nk.prototype.mf;function ok(a){var b=qj.venues;a=pj(b,a||{});zb.call(this);this.sa=b.baseUrl;this.A=a.path;this.ac=a.subDomain;this.Fa=b.shards}u(ok,E);r(\"H.service.venues.Service\",ok);var pk={ERROR:-1,INIT:0,READY:1};ok.State=pk;\nok.prototype.$=function(a,b,c,d,e){this.H=(this.sa||e).i();this.Rs=this.H.i().V(\"js\").m(\"statics/venues\").kg();this.ac&&this.H.V(this.ac);this.oa&&this.H.V(this.oa);this.A&&this.H.Zb(this.A);a=qj.venueSignature;b=this.H.i();b.V(a.subDomain);b.m(a.path);b.m(a.version);this.hy=b;this.Cu=this.H.i();this.j===pk.INIT&&this.$p();return this};ok.prototype.configure=ok.prototype.$;function Rj(a){return a.j===pk.READY}ok.prototype.s=function(){return Rj(this)?this.H:void 0};\nok.prototype.$p=function(){var a=this;new Tc(\"application/json\",this.hy.toString(),function(b,c){if(c)a.Kd(pk.ERROR,c);else{var d=b.SignatureTokens,e=new Date(b.Expires),f=e?e.getTime()-ta()-36E5:0;a.H.t(d);e&&4E9>f&&wj.setTimeout(w(a.$p,a),Math.max(f,0));a.Kd(pk.READY)}})};ok.prototype.Bu=function(a,b,c){var d=qj.venuesDiscovery;a=this.Cu.i().V(d.subDomain).m(d.path).m(d.version).t(pj(a,d.params));new Tc(\"application/json\",a.toString(),function(a,d){d?c(d):b(a)})};ok.prototype.discover=ok.prototype.Bu;\nok.prototype.o=function(a){return new Yh(new nk(this,a))};ok.prototype.createTileLayer=ok.prototype.o;ok.prototype.j=pk.INIT;ok.prototype.getState=function(){return this.j};ok.prototype.getState=ok.prototype.getState;ok.prototype.Kd=function(a,b){var c=new fc(\"statechange\",this);b&&(c.errorCode=b);this.j=a;this.dispatchEvent(c)};V.prototype.wq=function(a){return this.$(new ok(a))};V.prototype.getVenueService=V.prototype.wq;\nvar qk={subDomain:\"venue.maps\",path:\"\",shards:La(\"1 2 3 4\").map(function(a){return\"static-\"+a})};qj.venues=qk;qj.venueSignature={version:\"v1\",subDomain:\"signature\",path:\"venues/signature\"};qj.venuesDiscovery={version:\"v1\",subDomain:\"discovery\",path:\"venues/discovery\"};var rk={};function ak(a){rk.provider=a;return rk};function sk(){this.kc={}}sk.prototype.Hc=function(a,b){var c=a+b,d,e,f;if(!(d=this.kc[c])){f={size:{w:26,h:32},anchor:{x:13,y:30}};if(\"CLOSURE\"!==a)switch(d=tk,a){case \"CONGESTION\":d=d.replace(\"{{icon}}\",uk);break;case \"ROADWORKS\":d=d.replace(\"{{icon}}\",vk);break;case \"ACCIDENT\":d=d.replace(\"{{icon}}\",wk);break;default:d=d.replace(\"{{icon}}\",xk)}else d=yk,f.anchor.y=16;e=zk[b]||zk.BLOCKING;d=d.replace(\"{{color}}\",e);this.kc[c]=d=new N(d,f)}return d};\nvar zk={BLOCKING:\"#323232\",VERYHIGH:\"#d5232f\",HIGH:\"#ffa100\"},uk='',\nvk='',wk=\n'',\nxk='',tk='{{icon}}',\nyk='';function Ak(a,b,c){c=c?c:{criticality:\"major,critical\"};if(!(a instanceof sj))throw Error(\"IllegalArgument: service\");ri.call(this,{max:20,min:8,requestData:w(this.Vx,this)});this.kc=new sk;this.fa=a;this.D=c;this.reload=w(this.reload,this);this.Jx=setInterval(this.reload,b||18E4)}u(Ak,ri);r(\"H.service.TrafficIncidentsProvider\",Ak);Ak.prototype.xu={minor:\"HIGH\",\"low impact\":\"HIGH\",major:\"VERYHIGH\",critical:\"BLOCKING\"};\nAk.prototype.Vx=function(a,b,c,d,e){var f=this,g=this.xu,h=this.kc;return this.fa.ps(a,b,c,function(a){var b=[];a=a.TRAFFIC_ITEMS;var c,e,q,s;if(a)for(a=a.TRAFFIC_ITEM,s=a.length;s--;){c=a[s];e=c.TRAFFIC_ITEM_TYPE_DESC;switch(e){case \"ACCIDENT\":case \"CONGESTION\":q=e;break;case \"CONSTRUCTION\":q=\"ROADWORKS\";break;default:q=\"OTHER\"}q=h.Hc(q,g[c.CRITICALITY.DESCRIPTION]);e=c.LOCATION.GEOLOC.ORIGIN;e=new sh({lat:e.LATITUDE,lng:e.LONGITUDE},{provider:f,icon:q});e.setData(c);b.push(e)}d(b)},e,this.D)};\nAk.prototype.e=function(){ri.prototype.e.call(this);clearInterval(this.Jx)};function Bk(a){var b;if(a)for(this.Fo={},b=a.length;b--;)this.Fo[a[b]]=!0;this.Vs={}}var Ck;Bk.prototype.Fo={};Bk.prototype.parse=function(a,b,c){var d,e,f,g,h,k;Ck=!1;try{c=wj.JSON.parse(c)}catch(l){Ck=!0}if(c&&(d=c.metadata))for(e in k={spatials:[]},d){if(c=!this.Fo[e]&&(f=Dk[e]))(g=d[e])||(Ck=!0,g=void 0),c=g;if(c)for(c=g.length;c--;){var n;(n=g[c])||(Ck=!0,n=void 0);(h=n)&&f(b,a,this,e,h,k)}}else Ck=!0;return Ck?void 0:k};r(\"H.service.metaInfo.Parser.prototype.parse\",Bk.prototype.parse);\nvar Dk={\"street labels\":function(a,b,c,d,e,f){var g;(g=e.vertices)||(Ck=!0,g=void 0);if(g){var h=g.length,k,l,n;(l=0=this.min&&a<=this.max)if((c=this.uk.length)&&this.lk){if(this.lk.Bf(b))for(;c--;)if(this.uk[c].Bf(b))return!0}else return!0;return!1};function Gj(a){var b=0,c,d,e=a.length;if(0===e)return b;for(c=0;ca};rk.prototype.release=rk.prototype.Ge;function sk(){}sk.prototype.parse=function(){};r(\"H.service.remote.IParser.prototype.parse\",sk.prototype.parse);function tk(a,b,c){N.call(this,lk(a));this.Wu=c;this.floorSpace_=new rk(a,b.id,b,!0);this.k(this.floorSpace_);this.floorSpaces=new N(lk(a));this.k(this.floorSpaces);this.Eo={}}u(tk,N);r(\"H.service.venues.Floor\",tk);tk.prototype.mh=function(){return this.Wu};tk.prototype.getLevel=tk.prototype.mh;tk.prototype.sm=function(){return this.floorSpace_};tk.prototype.getFloorSpace=tk.prototype.sm;tk.prototype.Wv=function(){return this.floorSpaces};tk.prototype.getSpaces=tk.prototype.Wv;\ntk.prototype.fh=function(){return this.ma};tk.prototype.getBuilding=tk.prototype.fh;tk.prototype.getData=function(){return this.floorSpace_&&this.floorSpace_.getData()};tk.prototype.getData=tk.prototype.getData;tk.prototype.setData=function(a){this.floorSpace_.setData(a);return this};tk.prototype.setData=tk.prototype.setData;tk.prototype.tq=function(a){return this.Eo[a]};tk.prototype.getSpace=tk.prototype.tq;\ntk.prototype.Ti=function(){if(!this.floorSpaces.Cc&&!this.floorSpace_){var a=this.fh(),b=this.mh();b===a.Xd&&(a.Xd=0);delete a.floorsByLevel_[b];a.P(this);a.Cc||(b=a.ma,delete b.Ni[a.X()],b.P(a),b.Cc||b.Ra().P(b))}};function uk(){}var vk;uk.prototype.Tt=Math.PI/180;function wk(a,b){return a&&a.category&&a.category[b||\"id\"]}function xk(a){var b,c;return a.sort(function(a,e){b=a.object.type;c=e.object.type;return b>c?-1:bb.xl.indexOf(p)&&b.xl.push(p);(v=p.kh(e))?(q=v.sm(),l=q.ee(b).concat(l)):(v=new tk(a,k,e),q=p,p=v,s=p.mh(),p.setVisibility(s===q.Xd),q.floorsByLevel_[s]=p,q.k(p),q=v.sm(),f&&f(q),p=wk(v.getData(),\"profileKey\"),t=d.Na(p,void 0),q.Hk(t.floor));C[k.id]=v;0>g.indexOf(q)&&g.push(q);q.Zc[b.key]=new pk(l,-1,void 0);break;case \"space\":if(n=k.id,v=C[/_d$/.test(k.outerAreaId)?\nk.outerAreaId:k.outerAreaId+\"_d\"])q=v.tq(n),p=wk(v.getData(),\"profileKey\"),s=wk(q?q.getData():k),q||(t=q=new rk(a,n,k),v.Eo[t.X()]=t,v.floorSpaces.k(t),t=d.Na(p,s),q.Hk(t.space),f&&f(q)),q.Ne(),(k=k.label)&&k.firstLinePos?(t=t||d.Na(p,s),v=q.ow,k=[{lines:Ja(k.text,\"\\n\"),angle:k.rotation*this.Tt,font:k.font.face,size:k.font.size,lineHeight:k.font.lineHeight,color:v&&v.fillColor||t.spaceLabel.fillColor,x:k.firstLinePos[0],y:k.firstLinePos[1]}]):k=null,g.push(q),q.Zc[b.key]=new pk(l,-1,k)}}else vk=!0;\nreturn vk?void 0:{spatials:g}};r(\"H.service.venues.Parser.prototype.parse\",uk.prototype.parse);function yk(a,b){var c=b||{};if(!(a&&a instanceof zk))throw Error(\"InvalidArgument: service required\");this.Ko=c.tileCacheSize||256;this.pb=w(this.pb,this);this.objectProvider_=new bk(a,new uk,{min:this.np,max:this.lp,onSpaceCreated:c.onSpaceCreated});this.objectProvider_.G(this);this.Wb=w(this.Wb,this);this.objectProvider_.addEventListener(\"update\",this.Wb);this.Ln=w(this.Ln,this);this.objectProvider_.addEventListener(\"reload\",this.Ln);this.Kn=w(this.Kn,this);this.objectProvider_.addEventListener(\"error\",\nthis.Kn);this.Fa=c.pixelRatio||c.pixelratio||1;this.tileSize=256;this.wi=Mh(this.tileSize,this.Fa);this.ef=new Oh(this.Ko,this.pb);this.getCache=this.Ob;Q.call(this,{min:this.np,max:this.lp})}u(yk,Q);r(\"H.service.venues.TileProvider\",yk);m=yk.prototype;m.np=16;m.Fa=1;m.lp=20;m.Wb=function(){this.dispatchEvent(\"update\")};m.Kn=function(){this.dispatchEvent(\"error\")};m.Ln=function(){this.reload(!0)};\nm.pb=function(a,b){var c,d,e;c=b.Pb();for(e=c.length;e--;)d=c[e],delete d.Zc[b.key],d.Ge();b.data&&Oj.push(b.vk(),this.tileSize);b.wk()};m.hg=function(a){this.objectProvider_.hg(a)};yk.prototype.setCurrentLevel=yk.prototype.hg;yk.prototype.sf=function(){return this.objectProvider_.sf()};yk.prototype.getCurrentLevel=yk.prototype.sf;yk.prototype.Ob=function(){return this.ef};\nyk.prototype.tc=function(a,b,c,d){var e;this.Ob().get(this.getTileKey(a,b,c))?d(null,null):e=Hj.setTimeout(function(){d(null,null)},500);return{cancel:function(){Hj.clearTimeout(e)}}};yk.prototype.requestInternal=yk.prototype.tc;yk.prototype.kf=function(a,b,c){var d=Oj.pop(this.tileSize),e=this.Ob().get(this.getTileKey(a,b,c));e||(e=new Wj(this.sh(a,b,c),a,b,c,this.tileSize,this.Fa,c+this.wi,this.objectProvider_));e.F(d)||Oj.push(d,this.tileSize);return e};yk.prototype.createTileInternal=yk.prototype.kf;function zk(a){var b=Bj.venues;a=Aj(b,a||{});yb.call(this);this.sa=b.baseUrl;this.A=a.path;this.cc=a.subDomain;this.Ga=b.shards}u(zk,F);r(\"H.service.venues.Service\",zk);var Ak={ERROR:-1,INIT:0,READY:1};zk.State=Ak;\nzk.prototype.$=function(a,b,c,d,e){this.H=(this.sa||e).i();this.Ts=this.H.i().V(\"js\").m(\"statics/venues\").jg();this.cc&&this.H.V(this.cc);this.ha&&this.H.V(this.ha);this.A&&this.H.$b(this.A);a=Bj.venueSignature;b=this.H.i();b.V(a.subDomain);b.m(a.path);b.m(a.version);this.iy=b;this.Du=this.H.i();this.j===Ak.INIT&&this.cq();return this};zk.prototype.configure=zk.prototype.$;function ck(a){return a.j===Ak.READY}zk.prototype.s=function(){return ck(this)?this.H:void 0};\nzk.prototype.cq=function(){var a=this;new Rc(\"application/json\",this.iy.toString(),function(b,c){if(c)a.Kd(Ak.ERROR,c);else{var d=b.SignatureTokens,e=new Date(b.Expires),f=e?e.getTime()-ta()-36E5:0;a.H.t(d);e&&4E9>f&&Hj.setTimeout(w(a.cq,a),Math.max(f,0));a.Kd(Ak.READY)}})};zk.prototype.Cu=function(a,b,c){var d=Bj.venuesDiscovery;a=this.Du.i().V(d.subDomain).m(d.path).m(d.version).t(Aj(a,d.params));new Rc(\"application/json\",a.toString(),function(a,d){d?c(d):b(a)})};zk.prototype.discover=zk.prototype.Cu;\nzk.prototype.o=function(a){return new hi(new yk(this,a))};zk.prototype.createTileLayer=zk.prototype.o;zk.prototype.j=Ak.INIT;zk.prototype.getState=function(){return this.j};zk.prototype.getState=zk.prototype.getState;zk.prototype.Kd=function(a,b){var c=new ec(\"statechange\",this);b&&(c.errorCode=b);this.j=a;this.dispatchEvent(c)};V.prototype.yq=function(a){return this.$(new zk(a))};V.prototype.getVenueService=V.prototype.yq;\nvar Bk={subDomain:\"venue.maps\",path:\"\",shards:Ja(\"1 2 3 4\").map(function(a){return\"static-\"+a})};Bj.venues=Bk;Bj.venueSignature={version:\"v1\",subDomain:\"signature\",path:\"venues/signature\"};Bj.venuesDiscovery={version:\"v1\",subDomain:\"discovery\",path:\"venues/discovery\"};var Ck={};function lk(a){Ck.provider=a;return Ck};function Dk(){this.mc={}}Dk.prototype.Hc=function(a,b){var c=a+b,d,e,f;if(!(d=this.mc[c])){f={size:{w:26,h:32},anchor:{x:13,y:30}};if(\"CLOSURE\"!==a)switch(d=Ek,a){case \"CONGESTION\":d=d.replace(\"{{icon}}\",Fk);break;case \"ROADWORKS\":d=d.replace(\"{{icon}}\",Gk);break;case \"ACCIDENT\":d=d.replace(\"{{icon}}\",Hk);break;default:d=d.replace(\"{{icon}}\",Ik)}else d=Jk,f.anchor.y=16;e=Kk[b]||Kk.BLOCKING;d=d.replace(\"{{color}}\",e);this.mc[c]=d=new O(d,f)}return d};\nvar Kk={BLOCKING:\"#323232\",VERYHIGH:\"#d5232f\",HIGH:\"#ffa100\"},Fk='',\nGk='',Hk=\n'',\nIk='',Ek='{{icon}}',\nJk='';function Lk(a,b,c){c=c?c:{criticality:\"major,critical\"};if(!(a instanceof Dj))throw Error(\"IllegalArgument: service\");Bi.call(this,{max:20,min:8,requestData:w(this.Wx,this)});this.mc=new Dk;this.ea=a;this.D=c;this.reload=w(this.reload,this);this.Kx=setInterval(this.reload,b||18E4)}u(Lk,Bi);r(\"H.service.TrafficIncidentsProvider\",Lk);Lk.prototype.yu={minor:\"HIGH\",\"low impact\":\"HIGH\",major:\"VERYHIGH\",critical:\"BLOCKING\"};\nLk.prototype.Wx=function(a,b,c,d,e){var f=this,g=this.yu,h=this.mc;return this.ea.rs(a,b,c,function(a){var b=[];a=a.TRAFFIC_ITEMS;var c,e,q,s;if(a)for(a=a.TRAFFIC_ITEM,s=a.length;s--;){c=a[s];e=c.TRAFFIC_ITEM_TYPE_DESC;switch(e){case \"ACCIDENT\":case \"CONGESTION\":q=e;break;case \"CONSTRUCTION\":q=\"ROADWORKS\";break;default:q=\"OTHER\"}q=h.Hc(q,g[c.CRITICALITY.DESCRIPTION]);e=c.LOCATION.GEOLOC.ORIGIN;e=new Bh({lat:e.LATITUDE,lng:e.LONGITUDE},{provider:f,icon:q});e.setData(c);b.push(e)}d(b)},e,this.D)};\nLk.prototype.e=function(){Bi.prototype.e.call(this);clearInterval(this.Kx)};function Mk(a){var b;if(a)for(this.Io={},b=a.length;b--;)this.Io[a[b]]=!0;this.Xs={}}var Nk;Mk.prototype.Io={};Mk.prototype.parse=function(a,b,c){var d,e,f,g,h,k;Nk=!1;try{c=Hj.JSON.parse(c)}catch(l){Nk=!0}if(c&&(d=c.metadata))for(e in k={spatials:[]},d){if(c=!this.Io[e]&&(f=Ok[e]))(g=d[e])||(Nk=!0,g=void 0),c=g;if(c)for(c=g.length;c--;){var n;(n=g[c])||(Nk=!0,n=void 0);(h=n)&&f(b,a,this,e,h,k)}}else Nk=!0;return Nk?void 0:k};r(\"H.service.metaInfo.Parser.prototype.parse\",Mk.prototype.parse);\nvar Ok={\"street labels\":function(a,b,c,d,e,f){var g;(g=e.vertices)||(Nk=!0,g=void 0);if(g){var h=g.length,k,l,n;(l=0c.length&&(\"TouchEvent\"in a&&c.push(Em),c.push(Fm));return c};r(\"H.ui.util.Events.prototype.detectEventSets\",Bm.prototype.Mp);Bm.prototype.addEventListener=function(a,b,c,d){for(var e=this.Js,f,g=e.length,h=!1;g--;)if(f=e[g][b])h=!0,a.addEventListener(f,c,d||!1);h||a.addEventListener(b,c,d||!1)};\nBm.prototype.removeEventListener=function(a,b,c,d){for(var e=this.Js,f,g=e.length,h=!1;g--;)if(f=e[g][b])h=!0,a.removeEventListener(f,c,d||!1);h||a.removeEventListener(b,c,d||!1)};\nvar Dm={start:\"pointerdown\",end:\"pointerup\",move:\"pointermove\",cancel:\"pointercancel\",over:\"pointerover\",out:\"pointerout\",hover:\"pointerhover\"},Cm={start:\"MSPointerDown\",end:\"MSPointerUp\",move:\"MSPointerMove\",cancel:\"MSPointerCancel\",over:\"MSPointerOver\",out:\"MSPointerOut\",hover:\"MSPointerHover\"},Em={start:\"touchstart\",end:\"touchend\",move:\"touchmove\",cancel:\"touchcancel\"},Fm={start:\"mousedown\",end:\"mouseup\",move:\"mousemove\",over:\"mouseover\",out:\"mouseout\",hover:\"mousehover\"};function Gm(a,b,c,d){a=a.createElement(b);c&&(a.className=c);d&&(a.innerHTML=d);return a}function Hm(a,b){for(var c=1,d=arguments.length;cthis.Td.indexOf(a)&&this.Td.push(a);b&&(b.className=this.Td.join(\" \"));return this};X.prototype.addClass=X.prototype.qa;\nX.prototype.cb=function(a){a=this.Td.indexOf(a);var b=this.f();-1';Tm(this,!1)};\nfunction Tm(a,b,c,d){a.Lh.el.innerHTML=b?'':\n'';b&&zm(a.Dc.el,\nc||0,d||0);a.T(!b)};function Um(a){zb.call(this);this.ed=a;this.map=a.Ic();this.Oc=this.Nc=Number.MAX_VALUE;this.nb=w(this.nb,this);this.ak=w(this.ak,this);this.Kn=w(this.Kn,this);this.Wj=w(this.Wj,this);this.Vj=w(this.Vj,this);this.Uj=w(this.Uj,this);this.Zj=w(this.Zj,this);this.Ad=w(this.Ad,this);this.$a=new Sm;this.$a.F(a.f().ownerDocument);this.$d=w(this.$d,this);Jm(this.$a.Dc.el,\"start\",this.$d);this.Dj=this.Cj=Number.MAX_VALUE;this.fk=w(this.fk,this);this.Sf=w(this.Sf,this);this.ja=new Vm(this.map.La());this.ja.qa(\"H_ib_noclose H_pano_ib\");\nthis.ba=!1;this.Yh=ca(\"H.map.render.panorama\").RenderEngine;this.dd=0}u(Um,E);m=Um.prototype;\nm.enable=function(){var a=this.map;this.ba||(this.ed.f().insertBefore(this.$a.el,this.ed.f().firstChild),this.ed.Ei(this.ja),this.ja.close(),Jm(this.ja.el,\"start\",this.$d),a.addEventListener(\"pointermove\",this.nb),a.addEventListener(\"drag\",this.nb),a.addEventListener(\"tap\",this.Sf),a.addEventListener(\"mapviewchange\",this.Wj),a.addEventListener(\"mapviewchangestart\",this.Vj),a.addEventListener(\"mapviewchangeend\",this.Uj),a.addEventListener(\"pointerleave\",this.Ad),a.addEventListener(\"pointerenter\",this.Zj),\nthis.ba=!0)};m.Ad=function(a){\"mouse\"===a.currentPointer.type&&(Mm(this.$a),this.ed.ko(this.ja))};m.Zj=function(a){\"mouse\"===a.currentPointer.type&&(this.ed.f().insertBefore(this.$a.el,this.ed.f().firstChild),this.ed.Ei(this.ja),Jm(this.ja.el,\"start\",this.$d),this.ja.close())};m.$d=function(a){a instanceof MouseEvent&&1!==a.which||Wm(this,this.Nc,this.Oc)};m.qy=25;\nm.disable=function(){var a=this.ja.el,b=this.map;Mm(this.$a);this.ed.ko(this.ja);a&&Km(a,\"start\",this.$d);Km(this.$a.Dc.el,\"start\",this.$d);b.removeEventListener(\"pointermove\",this.nb);b.removeEventListener(\"drag\",this.nb);b.removeEventListener(\"tap\",this.Sf);b.removeEventListener(\"mapviewchange\",this.Wj);b.removeEventListener(\"mapviewchangestart\",this.Vj);b.removeEventListener(\"mapviewchangeend\",this.Uj);b.removeEventListener(\"pointerleave\",this.Ad);b.removeEventListener(\"pointerenter\",this.Zj);\nthis.ba=!1};function Wm(a,b,c){a.Yh&&(a.Cj=b,a.Dj=c,a.Yh.getClosestPanoramas(a.map.xa(a.Cj,a.Dj),a.fk))}m.nb=function(a){var b=a.currentPointer;this.map.ib().type===Df&&\"touch\"!==b.type&&(a=b.viewportX,b=b.viewportY,this.Nc!==a||this.Oc!==b)&&(this.$a.Lh.el.style.display=\"block\",this.Ss&&clearTimeout(this.Ss),this.ds&&this.ds.cancel(),this.$m=null,this.Nc=a,this.Oc=b,y.setTimeout(w(this.dy,this,a,b),0),this.Ss=y.setTimeout(this.ak,350),Tm(this.$a,!1),this.ja.close())};\nm.dy=function(a,b){var c=this.$a;zm(c.Lh.el,a,b);zm(c.Dc.el,a,b)};m.ak=function(){this.Yh&&this.Yh.getClosestPanoramas(this.map.xa(this.Nc,this.Oc),this.Kn)};m.Kn=function(a){var b=this,c;a&&0');b.ja.open()})):this.dd&&this.fk(a)};m.Vj=function(){this.$a.Dc.qa(\"H_pano_notransition\");this.ja.close()};\nm.Uj=function(){this.$a.Dc.cb(\"H_pano_notransition\")};m.Wj=function(){if(this.$m){var a=this.map.hb(this.$m);a&&Tm(this.$a,!0,a.x,a.y)}this.dd=0};m.Sf=function(a){var b=a.currentPointer,c=\"mouse\"===b.type,d=b.viewportX,b=b.viewportY,e=this.qy,f=Math.abs;0===a.currentPointer.button&&(1===this.dd&&f(this.Nc-d)'},Gp:{label:''},\nWf:{}};var c=this,d;Y.call(this);this.T(!0);a&&(Ym(this,a.mapTypes),(d=a.alignment)&&this.Db(d));this.coverageButton_=new Pm({onStateChange:function(){var a=c.$b;c.g(\"down\"===this.getState()?a.Gp:a.Bf)}});this.Gj=new Nm({onStateChange:function(){c.map.Dk(Df);c.g(c.Xn)}});this.Q(this.coverageButton_);this.Q(this.Gj);this.j=this.Xn=b.Bf}u(Xm,Y);r(\"H.ui.Pano\",Xm);\nfunction Ym(a,b){var c,d,e,f;if(b){a.yb=b;a.Ru=c=[];e=[\"normal\",\"satellite\",\"terrain\"];for(f=0;fe.indexOf(d)&&c.unshift(b[d]);a.T(!c.length)}}function Zm(a,b){var c,d,e,f,g;if(g=b){c=a.yb;var h;a:for(e in c)for(e in f=c[e],f)if(f[e]===b){h=!0;break a}g=c=h?f:void 0}g&&(d=c.panorama);if(!d)for(e=a.Ru,f=e.length;f--&&!(d=e[f].panorama););return d}\nXm.prototype.n=function(a,b){Y.prototype.renderInternal.call(this,a,b);this.g(this.$b.Bf);this.Yd=new Um(this.Kc());this.$b.Bf.Xk=this.r().translate(\"panorama.showCoverage\");this.$b.Gp.Xk=this.r().translate(\"panorama.hideCoverage\");this.$b.Wf.Xk=this.r().translate(\"panorama.leave\");this.$b.Wf.label=''+this.r().translate(\"panorama.leave\")+\"\";this.Gj.Ua(this.$b.Wf.label);Lm(this.Gj,this.$b.Wf.Xk);var c=this;this.Yd.addEventListener(\"enter\",function(a){c.Yd.disable();\nc.map.hg(a.position,!0);setTimeout(function(){c.coverageButton_.setVisibility(!1);c.map.Dk(1)},200)});var d=this.map.u;this.Ub=w(this.Ub,this);d.addEventListener(\"add\",this.Ub);d.addEventListener(\"remove\",this.Ub,!0,this);d.addEventListener(\"set\",this.Ub,!0,this)};Xm.prototype.renderInternal=Xm.prototype.n;Xm.prototype.Ub=function(a){0===a.idx&&this.map&&Zm(this,this.map.J)===this.map.J&&(this.Yd.disable(),this.coverageButton_.g(Om.UP))};\nXm.prototype.g=function(a){var b=this.j,c=this.$b,d=a===c.Wf,e=this.coverageButton_;b===c.Bf&&(this.zx=this.map.J);d?this.Xn=b:(a===c.Bf?(b=\"UP\",c=this.zx,this.Yd&&this.Yd.disable()):(b=\"DOWN\",c=Zm(this,this.map.J),this.Yd&&this.Yd.enable()),c&&this.map.Id(c),e.Ua(a.label),Lm(e,a.Xk),e.g(Om[b]));this.Gj.setVisibility(d);e.setVisibility(!d);this.j=a};Xm.prototype.Ra=function(a){var b=this.$b;this.g(1===a?b.Wf:this.Xn)};Xm.prototype.onMapEngineTypeChange=Xm.prototype.Ra;function $m(a,b){var c={},d={};c[\"top-left\"]=Gm(b,\"div\",[an,bn].join(\" \"));c[\"top-center\"]=Gm(b,\"div\",[an,cn,dn,bn].join(\" \"));c[\"top-right\"]=Gm(b,\"div\",[an,bn].join(\" \"));c[\"left-top\"]=Gm(b,\"div\",[an,en].join(\" \"));c[\"left-middle\"]=Gm(b,\"div\",[an,fn,gn,en].join(\" \"));c[\"left-bottom\"]=Gm(b,\"div\",[an,en].join(\" \"));c[\"right-top\"]=Gm(b,\"div\",[an,en].join(\" \"));c[\"right-middle\"]=Gm(b,\"div\",[an,hn,gn,en].join(\" \"));c[\"right-bottom\"]=Gm(b,\"div\",[an,en].join(\" \"));c[\"bottom-left\"]=Gm(b,\"div\",[an,bn].join(\" \"));\nc[\"bottom-center\"]=Gm(b,\"div\",[an,jn,dn,bn].join(\" \"));c[\"bottom-right\"]=Gm(b,\"div\",[an,bn].join(\" \"));d[\"top-left\"]=Gm(b,\"div\",[cn,fn].join(\" \"));d[\"top-right\"]=Gm(b,\"div\",[cn,hn].join(\" \"));d[\"bottom-left\"]=Gm(b,\"div\",[jn,fn].join(\" \"));d[\"bottom-right\"]=Gm(b,\"div\",[jn,hn].join(\" \"));Hm(d[\"top-left\"],c[\"top-left\"],c[\"left-top\"]);Hm(d[\"top-right\"],c[\"top-right\"],c[\"right-top\"]);Hm(d[\"bottom-left\"],c[\"left-bottom\"],c[\"bottom-left\"]);Hm(d[\"bottom-right\"],c[\"right-bottom\"],c[\"bottom-right\"]);Hm(a,d[\"top-left\"],\nd[\"top-right\"],d[\"bottom-left\"],d[\"bottom-right\"],c[\"top-center\"],c[\"left-middle\"],c[\"right-middle\"],c[\"bottom-center\"]);this.up=c}var cn=\"H_l_top\",jn=\"H_l_bottom\",fn=\"H_l_left\",hn=\"H_l_right\",dn=\"H_l_center\",gn=\"H_l_middle\",bn=\"H_l_horizontal\",en=\"H_l_vertical\",an=\"H_l_anchor\";$m.prototype.update=function(){var a=this.up;kn(a[\"top-center\"],!0);kn(a[\"bottom-center\"],!0);kn(a[\"left-middle\"],!1);kn(a[\"right-middle\"],!1)};\nfunction kn(a,b){var c;b?(c=a.offsetWidth,a.style.marginLeft=-Math.round(0.5*c)+\"px\"):(c=a.offsetHeight,a.style.marginTop=-Math.round(0.5*c)+\"px\")}$m.prototype.put=function(a,b){var c=a?a.f():null,d=b?this.up[b]:null;c&&d&&(c.parentElement&&c.parentElement.removeChild(c),d.insertBefore(c,/(bottom|right)$/.test(b)||/(center|middle)/.test(b)&&d.childNodes.length%2?d.firstChild:null));this.update()};var ln=[];r(\"H.ui.i18n.defaultLocales\",ln);var mn={},nn=[];function on(a,b){mn[a]=b;-1===ln.indexOf(a)&&ln.push(a);nn.length?pn(a,b):nn=Object.keys(b)}function pn(a,b){for(var c=nn,d=c.length,e;d--;)if(e=c[d],!b[e])throw Error(\"'\"+e+\"' key missing in translation map for \"+a);};on(\"nl-NL\",{\"layers.normal\":\"Kaartweergave\",\"layers.satellite\":\"Satelliet\",\"layers.terrain\":\"Terrein\",\"layer.transit\":\"Openbaar vervoer\",\"layer.traffic\":\"Verkeerssituatie\",\"layer.incidents\":\"Toon verkeersincidenten\",\"layers.choose\":\"Weergave kiezen\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Overgaan naar mijlen\",\"scale.switchToMetric\":\"Wijzigen naar km\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"mi\",\"scale.ft\":\"ft\",\"zoom.out\":\"Uitzoomen\",\"zoom.in\":\"Inzoomen\",\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"Straatbeeld verlaten\",\n\"panorama.showCoverage\":\"Toon straatbeeld\",\"panorama.hideCoverage\":\"Verberg straatbeeld\",\"panorama.unavailableHere\":\"Hier hebben we geen Straatbeeld dekking\",\"traffic.MASS_TRANSIT\":\"Openbaar vervoer\",\"traffic.MISCELLANEOUS\":\"Diversen\",\"traffic.ACCIDENT\":\"Ongeval\",\"traffic.OTHER_NEWS\":\"Meer informatie\",\"traffic.PLANNED_EVENT\":\"Geplande afzetting\",\"traffic.ROAD_HAZARD\":\"Gevaar op de weg\",\"traffic.WEATHER\":\"Weer\",\"traffic.CONGESTION\":\"Verkeersopstopping\",\"traffic.CONSTRUCTION\":\"Wegwerkzaamheden\",\"traffic.DISABLED_VEHICLE\":\"Voertuig met pech\",\n\"traffic.from\":\"Begintijd:\",\"traffic.until\":\"Geschatte eindtijd:\",\"distance.measurement\":\"Measure distance\"});on(\"pt-PT\",{\"layers.normal\":\"Vista do mapa\",\"layers.satellite\":\"Sat\\u00e9lite\",\"layers.terrain\":\"Terreno\",\"layer.transit\":\"Transportes p\\u00fablicos\",\"layer.traffic\":\"Condi\\u00e7\\u00f5es de tr\\u00e2nsito\",\"layer.incidents\":\"Mostrar incidentes de tr\\u00e2nsito\",\"layers.choose\":\"Escolher vista\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Mudar para milhas\",\"scale.switchToMetric\":\"Mudar para km\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"mi\",\"scale.ft\":\"ft\",\"zoom.out\":\"Diminuir\",\"zoom.in\":\"Aumentar\",\n\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"Sair de Vista de Rua\",\"panorama.showCoverage\":\"Visualizar \\u00e1reas com Vista de Rua\",\"panorama.hideCoverage\":\"Esconder \\u00e1reas com Vista de Rua\",\"panorama.unavailableHere\":\"Vista de Rua indispon\\u00edvel neste local.\",\"traffic.MASS_TRANSIT\":\"Transportes p\\u00fablicos\",\"traffic.MISCELLANEOUS\":\"Diversos\",\"traffic.ACCIDENT\":\"Acidente\",\"traffic.OTHER_NEWS\":\"Outras not\\u00edcias\",\"traffic.PLANNED_EVENT\":\"Evento planeado\",\"traffic.ROAD_HAZARD\":\"Perigo na estrada\",\n\"traffic.WEATHER\":\"Meteorologia\",\"traffic.CONGESTION\":\"Congestionamento\",\"traffic.CONSTRUCTION\":\"Constru\\u00e7\\u00e3o\",\"traffic.DISABLED_VEHICLE\":\"Ve\\u00edculo avariado\",\"traffic.from\":\"Hora de in\\u00edcio:\",\"traffic.until\":\"Hora de fim prevista:\",\"distance.measurement\":\"Measure distance\"});on(\"ru-RU\",{\"layers.normal\":\"\\u0420\\u0435\\u0436\\u0438\\u043c \\u043a\\u0430\\u0440\\u0442\\u044b\",\"layers.satellite\":\"\\u0421\\u043f\\u0443\\u0442\\u043d\\u0438\\u043a\\u043e\\u0432\\u0430\\u044f\",\"layers.terrain\":\"\\u041c\\u0435\\u0441\\u0442\\u043d\\u043e\\u0441\\u0442\\u044c\",\"layer.transit\":\"\\u041e\\u0431\\u0449\\u0435\\u0441\\u0442\\u0432\\u0435\\u043d\\u043d\\u044b\\u0439 \\u0442\\u0440\\u0430\\u043d\\u0441\\u043f\\u043e\\u0440\\u0442\",\"layer.traffic\":\"\\u0414\\u043e\\u0440\\u043e\\u0436\\u043d\\u044b\\u0435 \\u0443\\u0441\\u043b\\u043e\\u0432\\u0438\\u044f\",\n\"layer.incidents\":\"\\u041f\\u043e\\u043a\\u0430\\u0437\\u0430\\u0442\\u044c \\u0434\\u043e\\u0440\\u043e\\u0436\\u043d\\u044b\\u0435 \\u0441\\u043e\\u0431\\u044b\\u0442\\u0438\\u044f\",\"layers.choose\":\"\\u0412\\u044b\\u0431\\u0435\\u0440\\u0438\\u0442\\u0435 \\u0432\\u0438\\u0434\",minimap:\"Minimap\",\"scale.switchToImperial\":\"\\u0418\\u0441\\u043f\\u043e\\u043b\\u044c\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c \\u043c\\u0438\\u043b\\u0438\",\"scale.switchToMetric\":\"\\u0418\\u0441\\u043f\\u043e\\u043b\\u044c\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c \\u043a\\u0438\\u043b\\u043e\\u043c\\u0435\\u0442\\u0440\\u044b\",\n\"scale.km\":\"\\u043a\\u043c\",\"scale.m\":\"\\u043c\",\"scale.mi\":\"\\u043c\\u0438\\u043b\\u044c\",\"scale.ft\":\"\\u0444\\u0443\\u0442\",\"zoom.out\":\"\\u041e\\u0442\\u0434\\u0430\\u043b\\u0438\\u0442\\u044c\",\"zoom.in\":\"\\u041f\\u0440\\u0438\\u0431\\u043b\\u0438\\u0437\\u0438\\u0442\\u044c\",\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"\\u0412\\u044b\\u0439\\u0442\\u0438 \\u0438\\u0437 \\u0440\\u0435\\u0436\\u0438\\u043c\\u0430 \\u043f\\u0440\\u043e\\u0441\\u043c\\u043e\\u0442\\u0440\\u0430 \\u0443\\u043b\\u0438\\u0446\",\"panorama.showCoverage\":\"\\u041f\\u043e\\u043a\\u0430\\u0437\\u0430\\u0442\\u044c \\u043e\\u0431\\u043b\\u0430\\u0441\\u0442\\u0438 \\u0441 \\u043f\\u0430\\u043d\\u043e\\u0440\\u0430\\u043c\\u0430\\u043c\\u0438 \\u0443\\u043b\\u0438\\u0446\",\n\"panorama.hideCoverage\":\"\\u0421\\u043a\\u0440\\u044b\\u0442\\u044c \\u043e\\u0431\\u043b\\u0430\\u0441\\u0442\\u0438 \\u0441 \\u043f\\u0430\\u043d\\u043e\\u0440\\u0430\\u043c\\u0430\\u043c\\u0438 \\u0443\\u043b\\u0438\\u0446\",\"panorama.unavailableHere\":\"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u043e\\u043a\\u0430\\u0437\\u0430\\u0442\\u044c \\u043f\\u0430\\u043d\\u043e\\u0440\\u0430\\u043c\\u0443 \\u044d\\u0442\\u0438\\u0445 \\u0443\\u043b\\u0438\\u0446\",\"traffic.MASS_TRANSIT\":\"\\u041e\\u0431\\u0449\\u0435\\u0441\\u0442\\u0432\\u0435\\u043d\\u043d\\u044b\\u0439 \\u0442\\u0440\\u0430\\u043d\\u0441\\u043f\\u043e\\u0440\\u0442\",\n\"traffic.MISCELLANEOUS\":\"\\u041f\\u0440\\u043e\\u0447\\u0435\\u0435 \\u0414\\u0422\\u041f\",\"traffic.ACCIDENT\":\"\\u0414\\u0422\\u041f\",\"traffic.OTHER_NEWS\":\"\\u0414\\u0440\\u0443\\u0433\\u0438\\u0435 \\u043d\\u043e\\u0432\\u043e\\u0441\\u0442\\u0438\",\"traffic.PLANNED_EVENT\":\"\\u041f\\u043b\\u0430\\u043d\\u043e\\u0432\\u043e\\u0435 \\u043c\\u0435\\u0440\\u043e\\u043f\\u0440\\u0438\\u044f\\u0442\\u0438\\u0435\",\"traffic.ROAD_HAZARD\":\"\\u0414\\u043e\\u0440\\u043e\\u0436\\u043d\\u0430\\u044f \\u043e\\u043f\\u0430\\u0441\\u043d\\u043e\\u0441\\u0442\\u044c\",\"traffic.WEATHER\":\"\\u041f\\u043e\\u0433\\u043e\\u0434\\u0430\",\n\"traffic.CONGESTION\":\"\\u041f\\u0440\\u043e\\u0431\\u043a\\u0430\",\"traffic.CONSTRUCTION\":\"\\u0420\\u0435\\u043c\\u043e\\u043d\\u0442\",\"traffic.DISABLED_VEHICLE\":\"\\u041d\\u0435\\u0438\\u0441\\u043f\\u0440\\u0430\\u0432\\u043d\\u044b\\u0439 \\u0430\\u0432\\u0442\\u043e\\u043c\\u043e\\u0431\\u0438\\u043b\\u044c\",\"traffic.from\":\"\\u0412\\u0440\\u0435\\u043c\\u044f \\u043d\\u0430\\u0447\\u0430\\u043b\\u0430:\",\"traffic.until\":\"\\u041e\\u0436\\u0438\\u0434\\u0430\\u0435\\u043c\\u043e\\u0435 \\u0432\\u0440\\u0435\\u043c\\u044f \\u043e\\u043a\\u043e\\u043d\\u0447\\u0430\\u043d\\u0438\\u044f:\",\n\"distance.measurement\":\"\\u0418\\u0437\\u043c\\u0435\\u0440\\u0438\\u0442\\u044c \\u0440\\u0430\\u0441\\u0441\\u0442\\u043e\\u044f\\u043d\\u0438\\u0435\"});on(\"fi-FI\",{\"layers.normal\":\"Karttan\\u00e4kym\\u00e4\",\"layers.satellite\":\"Satelliitti\",\"layers.terrain\":\"Maasto\",\"layer.transit\":\"Julkinen liikenne\",\"layer.traffic\":\"Liikenneolosuhteet\",\"layer.incidents\":\"N\\u00e4yt\\u00e4 liikennetapahtumat\",\"layers.choose\":\"Valitse n\\u00e4kym\\u00e4\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Vaihda maileihin\",\"scale.switchToMetric\":\"Vaihda kilometreihin\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"mi\",\"scale.ft\":\"ft\",\"zoom.out\":\"Loitonna\",\"zoom.in\":\"L\\u00e4henn\\u00e4\",\n\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"Poistu katun\\u00e4kym\\u00e4st\\u00e4\",\"panorama.showCoverage\":\"N\\u00e4yt\\u00e4 katutason kattavuus\",\"panorama.hideCoverage\":\"Piilota katutason kattavuus\",\"panorama.unavailableHere\":\"Emme voi n\\u00e4ytt\\u00e4\\u00e4 sinulle katu tasoa t\\u00e4ss\\u00e4\",\"traffic.MASS_TRANSIT\":\"Julkinen liikenne\",\"traffic.MISCELLANEOUS\":\"Erittelem\\u00e4t\\u00f6n syy\",\"traffic.ACCIDENT\":\"Onnettomuus\",\"traffic.OTHER_NEWS\":\"Muu tapahtuma\",\"traffic.PLANNED_EVENT\":\"Suunniteltu tapahtuma\",\n\"traffic.ROAD_HAZARD\":\"Vaara tiell\\u00e4\",\"traffic.WEATHER\":\"S\\u00e4\\u00e4\",\"traffic.CONGESTION\":\"Ruuhka\",\"traffic.CONSTRUCTION\":\"Rakennusty\\u00f6\",\"traffic.DISABLED_VEHICLE\":\"Pys\\u00e4htynyt ajoneuvo\",\"traffic.from\":\"Alkamisaika:\",\"traffic.until\":\"Arvioitu p\\u00e4\\u00e4ttymisaika:\",\"distance.measurement\":\"Measure distance\"});on(\"pt-BR\",{\"layers.normal\":\"Exibi\\u00e7\\u00e3o do mapa\",\"layers.satellite\":\"Sat\\u00e9lite\",\"layers.terrain\":\"Terreno\",\"layer.transit\":\"Transporte p\\u00fablico\",\"layer.traffic\":\"Condi\\u00e7\\u00f5es do tr\\u00e2nsito\",\"layer.incidents\":\"Mostrar incidentes no tr\\u00e2nsito\",\"layers.choose\":\"Escolher exibi\\u00e7\\u00e3o\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Mudar para milhas\",\"scale.switchToMetric\":\"Mudar para km\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"milhas\",\"scale.ft\":\"p\\u00e9s\",\"zoom.out\":\"Menos zoom\",\n\"zoom.in\":\"Mais zoom\",\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"Sair de n\\u00edvel de rua\",\"panorama.showCoverage\":\"Mostrar \\u00e1reas com N\\u00edvel de Rua\",\"panorama.hideCoverage\":\"Esconder \\u00e1reas com N\\u00edvel de Rua\",\"panorama.unavailableHere\":\"N\\u00e3o \\u00e9 poss\\u00edvel mostrar N\\u00edvel da Rua aqui.\",\"traffic.MASS_TRANSIT\":\"Transporte p\\u00fablico\",\"traffic.MISCELLANEOUS\":\"Miscel\\u00e2nea\",\"traffic.ACCIDENT\":\"Acidente\",\"traffic.OTHER_NEWS\":\"Outras not\\u00edcias\",\"traffic.PLANNED_EVENT\":\"Evento planejado\",\n\"traffic.ROAD_HAZARD\":\"Risco na estrada\",\"traffic.WEATHER\":\"Clima\",\"traffic.CONGESTION\":\"Congestionamento\",\"traffic.CONSTRUCTION\":\"Constru\\u00e7\\u00e3o\",\"traffic.DISABLED_VEHICLE\":\"Ve\\u00edculo incapacitado\",\"traffic.from\":\"Hora de in\\u00edcio:\",\"traffic.until\":\"Tempo final estimado:\",\"distance.measurement\":\"Measure distance\"});on(\"zh-CN\",{\"layers.normal\":\"\\u5730\\u56fe\\u89c6\\u56fe\",\"layers.satellite\":\"\\u536b\\u661f\",\"layers.terrain\":\"\\u5730\\u5f62\",\"layer.transit\":\"\\u516c\\u5171\\u4ea4\\u901a\",\"layer.traffic\":\"\\u4ea4\\u901a\\u60c5\\u51b5\",\"layer.incidents\":\"\\u663e\\u793a\\u4ea4\\u901a\\u4e8b\\u4ef6\",\"layers.choose\":\"\\u9009\\u62e9\\u89c6\\u56fe\",minimap:\"Minimap\",\"scale.switchToImperial\":\"\\u5207\\u6362\\u4e3a\\u300c\\u82f1\\u91cc\\u300d\",\"scale.switchToMetric\":\"\\u5207\\u6362\\u4e3a\\u300c\\u516c\\u91cc\\u300d\",\"scale.km\":\"\\u516c\\u91cc\",\"scale.m\":\"\\u7c73\",\n\"scale.mi\":\"\\u82f1\\u91cc\",\"scale.ft\":\"\\u82f1\\u5c3a\",\"zoom.out\":\"\\u7f29\\u5c0f\",\"zoom.in\":\"\\u653e\\u5927\",\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"\\u9000\\u51fa\\u8857\\u666f\",\"panorama.showCoverage\":\"\\u663e\\u793a\\u652f\\u6301\\u8857\\u666f\\u7684\\u533a\\u57df\",\"panorama.hideCoverage\":\"\\u9690\\u85cf\\u652f\\u6301\\u8857\\u666f\\u7684\\u533a\\u57df\",\"panorama.unavailableHere\":\"\\u6b64\\u5730\\u8fd8\\u4e0d\\u652f\\u6301\\u8857\\u666f\",\"traffic.MASS_TRANSIT\":\"\\u516c\\u5171\\u4ea4\\u901a\",\"traffic.MISCELLANEOUS\":\"\\u7efc\\u5408\\u4e8b\\u4ef6\",\n\"traffic.ACCIDENT\":\"\\u4ea4\\u901a\\u610f\\u5916\",\"traffic.OTHER_NEWS\":\"\\u5176\\u4ed6\\u65b0\\u95fb\",\"traffic.PLANNED_EVENT\":\"\\u9884\\u5b9a\\u4e8b\\u4ef6\",\"traffic.ROAD_HAZARD\":\"\\u9053\\u8def\\u5371\\u9669\",\"traffic.WEATHER\":\"\\u5929\\u6c14\",\"traffic.CONGESTION\":\"\\u5835\\u585e\",\"traffic.CONSTRUCTION\":\"\\u65bd\\u5de5\",\"traffic.DISABLED_VEHICLE\":\"\\u8f66\\u8f86\\u629b\\u951a\",\"traffic.from\":\"\\u5f00\\u59cb\\u65f6\\u95f4\\uff1a\",\"traffic.until\":\"\\u9884\\u8ba1\\u7ed3\\u675f\\u65f6\\u95f4\\uff1a\",\"distance.measurement\":\"Measure distance\"});on(\"es-ES\",{\"layers.normal\":\"Mapa\",\"layers.satellite\":\"Sat\\u00e9lite\",\"layers.terrain\":\"Terreno\",\"layer.transit\":\"Transporte p\\u00fablico\",\"layer.traffic\":\"Estado del tr\\u00e1fico\",\"layer.incidents\":\"Mostrar incidentes de tr\\u00e1fico\",\"layers.choose\":\"Elija una vista\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Cambiar a millas\",\"scale.switchToMetric\":\"Cambiar a km\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"mi\",\"scale.ft\":\"ft\",\"zoom.out\":\"Alejar\",\"zoom.in\":\"Acercar\",\"zoom.rectangle\":\"Zoom rectangle\",\n\"panorama.leave\":\"Salir de vista de calles\",\"panorama.showCoverage\":\"Mostrar \\u00e1reas con vista desde la calle\",\"panorama.hideCoverage\":\"Ocultar \\u00e1reas con vista desde la calle\",\"panorama.unavailableHere\":\"No se puede mostrar vista desde la calle aqu\\u00ed\",\"traffic.MASS_TRANSIT\":\"Transporte p\\u00fablico\",\"traffic.MISCELLANEOUS\":\"Varios\",\"traffic.ACCIDENT\":\"Accidente\",\"traffic.OTHER_NEWS\":\"M\\u00e1s noticias\",\"traffic.PLANNED_EVENT\":\"Acto programado\",\"traffic.ROAD_HAZARD\":\"Riesgo en carretera\",\n\"traffic.WEATHER\":\"Tiempo\",\"traffic.CONGESTION\":\"Atasco\",\"traffic.CONSTRUCTION\":\"Construcci\\u00f3n\",\"traffic.DISABLED_VEHICLE\":\"Veh\\u00edculo averiado\",\"traffic.from\":\"Inicio:\",\"traffic.until\":\"Finalizaci\\u00f3n estimada:\",\"distance.measurement\":\"Measure distance\"});on(\"fr-FR\",{\"layers.normal\":\"Carte\",\"layers.satellite\":\"Satellite\",\"layers.terrain\":\"Terrain\",\"layer.transit\":\"Transports publics\",\"layer.traffic\":\"Conditions de circulation\",\"layer.incidents\":\"Afficher les incidents de circulation\",\"layers.choose\":\"Choisir la vue\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Passer en miles\",\"scale.switchToMetric\":\"Passer en km\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"mi\",\"scale.ft\":\"ft\",\"zoom.out\":\"Zoom arri\\u00e8re\",\"zoom.in\":\"Zoom avant\",\"zoom.rectangle\":\"Zoom rectangle\",\n\"panorama.leave\":\"Quitter le mode chauss\\u00e9e\",\"panorama.showCoverage\":\"Activer le mode Chauss\\u00e9e\",\"panorama.hideCoverage\":\"D\\u00e9sactiver le mode Chauss\\u00e9e\",\"panorama.unavailableHere\":\"Le mode chauss\\u00e9e n'est pas disponible ici\",\"traffic.MASS_TRANSIT\":\"Transports publics\",\"traffic.MISCELLANEOUS\":\"Divers\",\"traffic.ACCIDENT\":\"Accident\",\"traffic.OTHER_NEWS\":\"Autre\",\"traffic.PLANNED_EVENT\":\"\\u00c9v\\u00e9nement pr\\u00e9vu\",\"traffic.ROAD_HAZARD\":\"Danger routier\",\"traffic.WEATHER\":\"M\\u00e9t\\u00e9o\",\n\"traffic.CONGESTION\":\"Embouteillage\",\"traffic.CONSTRUCTION\":\"Travaux\",\"traffic.DISABLED_VEHICLE\":\"V\\u00e9hicule en panne\",\"traffic.from\":\"Date ou heure de d\\u00e9but:\",\"traffic.until\":\"Date et heure de fin estim\\u00e9es:\",\"distance.measurement\":\"Measure distance\"});on(\"pl-PL\",{\"layers.normal\":\"Widok mapy\",\"layers.satellite\":\"Satelita\",\"layers.terrain\":\"Teren\",\"layer.transit\":\"Transport publiczny\",\"layer.traffic\":\"Warunki drogowe\",\"layer.incidents\":\"Poka\\u017c zdarzenia drogowe\",\"layers.choose\":\"Wybierz widok\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Zmie\\u0144 na mile\",\"scale.switchToMetric\":\"Zmie\\u0144 na km\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"mi\",\"scale.ft\":\"ft\",\"zoom.out\":\"Oddal\",\"zoom.in\":\"Przybli\\u017c\",\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"Wyjd\\u017a z panoramy\",\n\"panorama.showCoverage\":\"Poka\\u017c obszary trybu panoramy\",\"panorama.hideCoverage\":\"Ukryj obszary trybu panoramy\",\"panorama.unavailableHere\":\"Niemo\\u017cliwe jest pokazanie widoku panoramy w tym miejscu.\",\"traffic.MASS_TRANSIT\":\"Transport publiczny\",\"traffic.MISCELLANEOUS\":\"Inne zdarzenie\",\"traffic.ACCIDENT\":\"Wypadek\",\"traffic.OTHER_NEWS\":\"Inne wiadomo\\u015bci\",\"traffic.PLANNED_EVENT\":\"Zdarzenie planowane\",\"traffic.ROAD_HAZARD\":\"Niebezpiecze\\u0144stwo na drodze\",\"traffic.WEATHER\":\"Pogoda\",\"traffic.CONGESTION\":\"Korek\",\n\"traffic.CONSTRUCTION\":\"Budowa\",\"traffic.DISABLED_VEHICLE\":\"Uszkodzony pojazd\",\"traffic.from\":\"Data rozpocz\\u0119cia:\",\"traffic.until\":\"Przybli\\u017cona data zako\\u0144czenia:\",\"distance.measurement\":\"Measure distance\"});on(\"de-DE\",{\"layers.normal\":\"Kartenansicht\",\"layers.satellite\":\"Satellit\",\"layers.terrain\":\"Gel\\u00e4nde\",\"layer.transit\":\"\\u00d6ffentliche Verkehrsmittel\",\"layer.traffic\":\"Verkehrslage\",\"layer.incidents\":\"Verkehrsst\\u00f6rungen anzeigen\",\"layers.choose\":\"Ansicht ausw\\u00e4hlen\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Umrechnung in Meilen\",\"scale.switchToMetric\":\"Umrechnung in Kilometer\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"mi\",\"scale.ft\":\"ft\",\"zoom.out\":\"Verkleinern\",\"zoom.in\":\"Vergr\\u00f6\\u00dfern\",\n\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"Stra\\u00dfenansicht verlassen\",\"panorama.showCoverage\":\"Gebiete mit Stra\\u00dfenszenen anzeigen\",\"panorama.hideCoverage\":\"Gebiete mit Stra\\u00dfenszenen ausblenden\",\"panorama.unavailableHere\":\"Keine Stra\\u00dfenszenen verf\\u00fcgbar\",\"traffic.MASS_TRANSIT\":\"\\u00d6ffentliche Verkehrsmittel\",\"traffic.MISCELLANEOUS\":\"Diverse\",\"traffic.ACCIDENT\":\"Unfall\",\"traffic.OTHER_NEWS\":\"Anderes Ereignis\",\"traffic.PLANNED_EVENT\":\"Geplantes Ereignis\",\"traffic.ROAD_HAZARD\":\"Verkehrshindernis\",\n\"traffic.WEATHER\":\"Wetter\",\"traffic.CONGESTION\":\"Verkehrsstau\",\"traffic.CONSTRUCTION\":\"Baustelle\",\"traffic.DISABLED_VEHICLE\":\"Liegengebliebenes Fahrzeug\",\"traffic.from\":\"Beginn:\",\"traffic.until\":\"Voraussichtliches Ende:\",\"distance.measurement\":\"Measure distance\"});on(\"tr-TR\",{\"layers.normal\":\"Harita g\\u00f6r\\u00fcn\\u00fcm\\u00fc\",\"layers.satellite\":\"Uydu\",\"layers.terrain\":\"Arazi\",\"layer.transit\":\"Toplu ula\\u015f\\u0131m\",\"layer.traffic\":\"Trafik durumlar\\u0131\",\"layer.incidents\":\"Trafik olaylar\\u0131n\\u0131 g\\u00f6ster\",\"layers.choose\":\"G\\u00f6r\\u00fcn\\u00fcm se\\u00e7\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Mile d\\u00f6n\\u00fc\\u015ft\\u00fcr\",\"scale.switchToMetric\":\"Kilometreye d\\u00f6n\\u00fc\\u015ft\\u00fcr\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"mil\",\"scale.ft\":\"ft\",\n\"zoom.out\":\"Uzakla\\u015ft\\u0131r\",\"zoom.in\":\"Yak\\u0131nla\\u015ft\\u0131r\",\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"Sokak g\\u00f6r\\u00fcn\\u00fcm\\u00fc kapat\",\"panorama.showCoverage\":\"Sokak G\\u00f6r\\u00fcn\\u00fcm\\u00fcn\\u00fc g\\u00f6ster\",\"panorama.hideCoverage\":\"Sokak G\\u00f6r\\u00fcn\\u00fcm\\u00fcn\\u00fc sakla\",\"panorama.unavailableHere\":\"Cadde g\\u00f6r\\u00fcn\\u00fcm\\u00fc yok\",\"traffic.MASS_TRANSIT\":\"Toplu ula\\u015f\\u0131m\",\"traffic.MISCELLANEOUS\":\"\\u00c7e\\u015fitli\",\"traffic.ACCIDENT\":\"Kaza\",\n\"traffic.OTHER_NEWS\":\"Di\\u011fer haberler\",\"traffic.PLANNED_EVENT\":\"Planl\\u0131 etkinlik\",\"traffic.ROAD_HAZARD\":\"Yol tehlikesi\",\"traffic.WEATHER\":\"Hava durumu\",\"traffic.CONGESTION\":\"Yo\\u011funluk\",\"traffic.CONSTRUCTION\":\"Yol \\u00e7al\\u0131\\u015fmas\\u0131\",\"traffic.DISABLED_VEHICLE\":\"Ara\\u00e7 ar\\u0131zas\\u0131\",\"traffic.from\":\"Ba\\u015flang\\u0131\\u00e7 zaman\\u0131:\",\"traffic.until\":\"Tahmini biti\\u015f zaman\\u0131:\",\"distance.measurement\":\"Measure distance\"});on(\"it-IT\",{\"layers.normal\":\"Vista mappa\",\"layers.satellite\":\"Satellite\",\"layers.terrain\":\"Terreno\",\"layer.transit\":\"Mezzi pubblici\",\"layer.traffic\":\"Condizioni del traffico\",\"layer.incidents\":\"Mostra incidenti stradali\",\"layers.choose\":\"Scegli vista\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Passa a miglia\",\"scale.switchToMetric\":\"Passa a km\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"mi\",\"scale.ft\":\"ft\",\"zoom.out\":\"Zoom indietro\",\"zoom.in\":\"Zoom avanti\",\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"Abbandona il livello strada\",\n\"panorama.showCoverage\":\"Mostra le aree al livello strada\",\"panorama.hideCoverage\":\"Nascondi le aree al livello strada\",\"panorama.unavailableHere\":\"Impossibile mostrare il livello strada in questo punto\",\"traffic.MASS_TRANSIT\":\"Mezzi pubblici\",\"traffic.MISCELLANEOUS\":\"Varie\",\"traffic.ACCIDENT\":\"Incidente\",\"traffic.OTHER_NEWS\":\"Altre notizie\",\"traffic.PLANNED_EVENT\":\"Evento pianificato\",\"traffic.ROAD_HAZARD\":\"Strada dissestata\",\"traffic.WEATHER\":\"Maltempo\",\"traffic.CONGESTION\":\"Ingorgo\",\"traffic.CONSTRUCTION\":\"Lavori in corso\",\n\"traffic.DISABLED_VEHICLE\":\"Veicolo in panne\",\"traffic.from\":\"Ora di inizio:\",\"traffic.until\":\"Ora di fine stimata:\",\"distance.measurement\":\"Measure distance\"});on(\"en-US\",{\"layers.normal\":\"Map view\",\"layers.satellite\":\"Satellite\",\"layers.terrain\":\"Terrain\",\"layer.transit\":\"Public transport\",\"layer.traffic\":\"Traffic conditions\",\"layer.incidents\":\"Show traffic incidents\",\"layers.choose\":\"Choose view\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Change to miles\",\"scale.switchToMetric\":\"Change to km\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"mi\",\"scale.ft\":\"ft\",\"zoom.out\":\"Zoom out\",\"zoom.in\":\"Zoom in\",\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"Leave street level\",\n\"panorama.showCoverage\":\"Show street level areas\",\"panorama.hideCoverage\":\"Hide street level areas\",\"panorama.unavailableHere\":\"Can't show you street level here\",\"traffic.MASS_TRANSIT\":\"Public transport\",\"traffic.MISCELLANEOUS\":\"Miscellaneous\",\"traffic.ACCIDENT\":\"Accident\",\"traffic.OTHER_NEWS\":\"Other news\",\"traffic.PLANNED_EVENT\":\"Planned event\",\"traffic.ROAD_HAZARD\":\"Road hazard\",\"traffic.WEATHER\":\"Weather\",\"traffic.CONGESTION\":\"Congestion\",\"traffic.CONSTRUCTION\":\"Construction\",\"traffic.DISABLED_VEHICLE\":\"Disabled vehicle\",\n\"traffic.from\":\"Start time:\",\"traffic.until\":\"Estimated end time:\",\"distance.measurement\":\"Measure distance\"});function qn(a,b){var c;if(!ia(a))throw new TypeError(\"string locale code required\");if(la(b))c=b,pn(a,c);else{if(-1===ln.indexOf(a))throw Error(\"Default locale '\"+a+\"' does nto exist.\");c=mn[a]}this.b=c||{};this.gr=a}r(\"H.ui.i18n.Localization\",qn);qn.prototype.Cv=function(){return this.gr};qn.prototype.getLocale=qn.prototype.Cv;qn.prototype.wf=function(){return Object.keys(this.b)};qn.prototype.getKeys=qn.prototype.wf;qn.prototype.zq=function(a){return!(!this.b||!this.b[a])};\nqn.prototype.hasKey=qn.prototype.zq;qn.prototype.translate=function(a){var b=this.b[a];if(!ia(b))throw Error(\"Translation missing for key '\"+a+\"'.\");return b};qn.prototype.translate=qn.prototype.translate;function rn(a){A(a,xc,rn,1);X.call(this,\"div\",\"H_context_menu_item\");this.mb=a;this.Nj=w(this.Nj,this);this.fd=w(this.fd,this);this.mb.addEventListener(\"update\",this.fd)}u(rn,X);r(\"H.ui.context.Item\",rn);rn.prototype.Nj=function(a){var b=this.mb,c=b.callback;c&&!b.isDisabled()&&(this.dispatchEvent(\"click\"),c(a))};rn.prototype.n=function(){var a=this,b=this.el;wg(b,\"click\",this.Nj);b.addEventListener(\"keyup\",function(b){13==b.keyCode&&a.Nj(b)});this.fd()};rn.prototype.renderInternal=rn.prototype.n;\nrn.prototype.fd=function(){var a=this.el,b=this.mb;b.callback?(this.qa(\"clickable\"),a.setAttribute(\"tabindex\",\"0\")):(this.cb(\"clickable\"),a.removeAttribute(\"tabindex\"));b.isDisabled()?this.qa(\"disabled\"):this.cb(\"disabled\");b=b.getLabel();sn.textContent=b;a.innerHTML=sn.innerHTML.split(\"\\n\").join(\"
\")};rn.prototype.c=function(){X.prototype.c.call(this);this.mb.removeEventListener(\"update\",this.fd)};var tn=new X(\"div\",\"H_context_menu_item_separator\");function un(a){A(a,Array,un,1);Rm.call(this,\"div\",\"H_context_menu\");this.Mw=a;this.b=null}u(un,Rm);r(\"H.ui.context.Menu\",un);un.prototype.n=function(){Rm.prototype.n.apply(this,arguments);this.Mw.forEach(function(a){a===yc?a=tn:(a=new rn(a),a.addEventListener(\"click\",this.hx.bind(this)));this.Q(a)},this);wg(this.el,[\"mousedown\",\"touchstart\",\"pointerdown\",\"wheel\"],function(a){a.stopPropagation()})};un.prototype.renderInternal=un.prototype.n;\nun.prototype.setPosition=function(a,b){if(this.b){var c=this.el,d=c.offsetWidth,e=c.offsetHeight,f=this.b,g=f.q.width,f=f.q.height;a+d>g&&a>g/2&&(a-=d);b+e>f&&b>f/2&&(b-=e);zm(c,a,b)}};un.prototype.setPosition=un.prototype.setPosition;un.prototype.hx=function(){this.b&&this.b.dispatchEvent(new fc(\"contextmenuclose\",this.b))};un.prototype.na=function(a){this.b=a};un.prototype.setMap=un.prototype.na;function $(a,b){var c=a.f(),d=this;zb.call(this);this.b=a;this.Yg=c.ownerDocument;this.Vd={};this.ld=[];this.tb=Gm(this.Yg,\"div\",\"H_ui\");this.$w=w(function(a){this.cn.put(a.target,a.target.jd)},this);this.addEventListener(\"alignmentchange\",this.$w);this.kx=w(function(){this.ft()},this);this.addEventListener(\"toggleunitsystem\",this.kx);this.ex=w(function(){var a=this.b.ib().type;if(a!==this.Zl){var a=this.Zl=a,b=this.Vd,c;for(c in b)if(b[c]instanceof Y)b[c].onMapEngineTypeChange(a);this.cn.update()}},\nthis);this.b.addEventListener(\"enginechange\",this.ex);this.tb.addEventListener(\"contextmenu\",this.prevDefault,!1);this.tb.addEventListener(\"MSHoldVisual\",this.prevDefault,!1);this.b.addEventListener(\"contextmenu\",this.Zw,!1,this);this.b.addEventListener(\"contextmenuclose\",this.wr,!1,this);this.Fc=null;this.Ep=-1;this.cn=new $m(this.tb,this.Yg);this.Hb=vn.METRIC;wn(this,\"en-US\");this.Zl=this.b.ib().type;b&&xn(this,b);c.appendChild(this.tb);setTimeout(function(){d.cn.update()},1)}u($,E);\nr(\"H.ui.UI\",$);$.prototype.prevDefault=function(a){for(var b=a.target;b&&!/\\bH_ib_content\\b/.test(b.className);)b=b.parentNode;b||a.preventDefault()};$.prototype.f=function(){return this.tb};$.prototype.getElement=$.prototype.f;$.prototype.Ic=function(){return this.b};$.prototype.getMap=$.prototype.Ic;$.prototype.aw=function(){return this.Hb};$.prototype.getUnitSystem=$.prototype.aw;$.prototype.Kk=function(a){var b=this.Vd,c;if(a!==this.Hb)for(c in this.Hb=a,b)if(b[c]instanceof Y)b[c].onUnitSystemChange(this.Hb)};\n$.prototype.setUnitSystem=$.prototype.Kk;function wn(a,b){var c,d;if(ia(b))c=b;else if(b instanceof qn)c=b.gr,d=b;else throw Error(\"The locale parameter must be a string or a H.ui.i18n.Localization object.\");if(c)if(d)a.dn=d;else if(0<=ln.indexOf(c))a.dn=new qn(c);else throw Error(\"Locale [\"+c+\"] is not supported.\");else throw Error(\"No locale was defined.\");}$.prototype.r=function(){return this.dn};$.prototype.ft=function(){this.Hb===vn.METRIC?this.Kk(vn.IMPERIAL):this.Kk(vn.METRIC)};\n$.prototype.toggleUnitSystem=$.prototype.ft;$.prototype.Ei=function(a){var b=this.ld.length,c=this.f(),d;0>this.ld.indexOf(a)&&(a.G(this),a.na(this.b),d=a.F(this.Yg),b=0b&&(b=0);c=(a.Qc-a.lb)*b/a.ht;c=En(a,d?a.Qc-c:a.lb+c);a.sg!==c&&(a.Lk(c,!0),a.dispatchEvent(new ke(a.d.af,c,a.sg)))}\nfunction Gn(a,b){return(b.touches?b.targetTouches[0]:b)[\"page\"+(a.tg?\"Y\":\"X\")]}function Hn(a,b){var c=!1,d=a.type;-1!==d.indexOf(\"pointer\")||-1!==d.indexOf(\"touch\")?c=!0:A(a,MouseEvent)&&(c=a.which===b||a.buttons===b);return c}function In(a){var b=a.touches;return b&&1===b.length||A(a,MouseEvent)}m.Yj=function(a){var b=this.tg,c,d;Hn(a,this.ep)&&In(a)&&(c=Gn(this,a),d=a.target,d===this.Hf||d.parentElement===this.Hf?(this.Aw=c-Am(this.Hf)[b?\"y\":\"x\"]-this.Hf.offsetWidth/2,this.ia=!0):Fn(this,c),a.preventDefault())};\nm.bk=function(){this.ia&&(this.ia=!1)};m.$j=function(a){this.ia&&a.target===this.Vc&&(this.ia=!1)};m.nb=function(a){this.ia&&In(a)&&(Hn(a,this.ep)?(Fn(this,Gn(this,a)-this.Aw),a.preventDefault()):this.ia=!1)};m.d={af:\"change\"};\nm.n=function(a,b){var c=Gm(b,\"div\",\"H_slider_cont\"),d=Gm(b,\"div\",\"H_slider_knob_cont\"),e=Gm(b,\"div\",\"H_slider_knob\"),f=Gm(b,\"div\",\"H_slider_knob_halo\"),g=Gm(b,\"div\",\"H_slider_track\");a.appendChild(c);c.appendChild(g);c.appendChild(d);d.appendChild(e);d.appendChild(f);this.it=g;this.Hf=d;this.Vc||(this.Vc=a.ownerDocument.body);c.style[this.tg?\"height\":\"width\"]=this.Fw;this.Lk(this.sg);this.fi()};Dn.prototype.renderInternal=Dn.prototype.n;Dn.prototype.c=function(){this.og()};\nDn.prototype.T=function(a){a?this.og():this.it&&this.fi();return X.prototype.T.call(this,a)};Dn.prototype.setDisabled=Dn.prototype.T;var Jn={\"in\":'',qx:''};function yn(a){a=a||{};var b=a.slider;Y.call(this);this.hk=w(this.hk,this);this.$k=w(this.$k,this);this.xc=w(this.xc,this);b&&(this.Ln=w(this.Ln,this),this.Aq=b,this.iy=a.sliderSnaps);this.fl=new Nm({label:Jn[\"in\"],onStateChange:this.hk});this.So=new Nm({label:Jn.qx,onStateChange:this.hk});this.qa(\"H_zoom\");this.qa(\"H_grp\");this.setZoomSpeed(a.zoomSpeed||0.004);this.Db(a.alignment||\"right-middle\")}u(yn,Y);r(\"H.ui.ZoomControl\",yn);yn.prototype.gw=function(){return this.vt};\nyn.prototype.getZoomSpeed=yn.prototype.gw;yn.prototype.setZoomSpeed=function(a){this.vt=a};yn.prototype.na=function(a){this.map!==a&&Kn(this);Y.prototype.na.apply(this,arguments);this.map&&this.xc()};yn.prototype.setMap=yn.prototype.na;yn.prototype.Ra=function(a){this.f().style.display=a!==Df?\"none\":\"\"};yn.prototype.onMapEngineTypeChange=yn.prototype.Ra;yn.prototype.c=function(){Y.prototype.c.apply(this,arguments);Kn(this)};\nyn.prototype.n=function(a,b){Y.prototype.renderInternal.call(this,a,b);Lm(this.fl,this.r().translate(\"zoom.in\"));Lm(this.So,this.r().translate(\"zoom.out\"))};yn.prototype.renderInternal=yn.prototype.n;yn.prototype.Db=function(a){var b=this.jd;Y.prototype.Db.call(this,a);b!==a&&this.xc();return this};yn.prototype.setAlignment=yn.prototype.Db;yn.prototype.$k=function(a){this.mg.Lk(a.target.getZoom())};\nfunction Kn(a){a.removeChild(a.mg);a.mg=null;a.map&&(a.map.removeEventListener(\"baselayerchange\",a.xc),a.map.removeEventListener(\"mapviewchange\",a.$k));a.J&&(a.J.removeEventListener(\"minchange\",a.xc),a.J.removeEventListener(\"maxchange\",a.xc),a.J=null)}yn.prototype.hk=function(a){a=a.target;var b=a===this.fl?1:-1,c=0',point:''};var Mn,Nn=navigator.userAgent,On=-1Qn;var Rn=Function(\"return this\")(),sn=document.createElement(\"T\");function Sn(a,b,c){uf.call(this,a,{icon:Tn,visibility:c});Un(this,b)}u(Sn,uf);function Un(a,b){a.Bw=b;a.tb&&(a.tb.textContent=b)}var Tn=new mf(Gm(Rn.document,\"span\",\"H_dm_label\"),{onAttach:function(a,b,c){c.tb=a;Un(c,c.Bw)},onDetach:function(a,b,c){delete c.tb}});function Vn(a,b){this.Ec=a;this.Za=new Sn(this.wy,\"\");b.push(this.Za);this.ic=new M({objects:b,data:this})}u(Vn,E);Vn.prototype.ud=!1;Vn.prototype.wy={lat:0,lng:0};Vn.prototype.Ua=function(a,b){Un(this.Za,a);this.Za.setPosition(b)};Vn.prototype.ci=function(a){this.Za.setVisibility(a)};function Wn(a,b){b&&(a.nextSibling=b,b.previousSibling=a)};function Xn(a,b,c,d){var e=new I;Wn(a,this);Wn(this,b);e.Ge(a.getPosition());e.Ge(b.getPosition());this.Lf=new Te(e,{style:c.Kf});this.hw=new Te(e,{style:{strokeColor:\"transparent\",lineWidth:Math.min(100,this.Lf.Ma().lineWidth+2*(d||5))}});Vn.call(this,c,[this.Lf,this.hw]);this.Oc=this.Nc=-1;a=this.ic;a.addEventListener(\"pointermove\",this.nb,!0,this);a.addEventListener(\"pointerleave\",this.Ad,!0,this)}u(Xn,Vn);Xn.prototype.kh=function(){var a=this.Lf.gc();return a.$g(0).distance(a.$g(1))};\nfunction Yn(a,b,c){var d=a.Lf.gc();d.ji(3*c,3,[b.lat,b.lng,0]);a.Lf.Y(d)}Xn.prototype.nb=function(a){var b=a.currentPointer;a=this.previousSibling.getPosition();var c=this.nextSibling.getPosition(),d=this.Ec.Ns,e=b.viewportX,b=b.viewportY;if(this.Nc!==e||this.Oc!==b)this.Nc=e,this.Oc=b,d.setPosition(this.Ec.Iv(a,c,{x:e,y:b})),d.setVisibility(!0)};Xn.prototype.Ad=function(){this.Ec.Ns.setVisibility()};Xn.prototype.ro=function(){this.Ua(this.Ec.Qp(this.kh()),this.Lf.p().La())};function Zn(a,b,c){c=b.mh(c||0);this.oe=new sh(a,{icon:c,zIndex:0});this.oe.draggable=!0;Vn.call(this,b,[this.oe]);a=this.ic;a.addEventListener(\"dragstart\",this.Qf,!0,this);a.addEventListener(\"drag\",this.Qj,!0,this);a.addEventListener(\"dragend\",this.Pj,!0,this)}u(Zn,Vn);m=Zn.prototype;m.pf=0;m.d={af:\"change\"};m.kh=function(){return this.pf};m.getPosition=function(){return this.oe.getPosition()};\nfunction $n(a){var b=0;a.nextSibling&&a.previousSibling&&(a.nextSibling.ud||a.previousSibling.ud?a.nextSibling.ud&&!a.previousSibling.ud&&(b=2):b=1);b=a.Ec.mh(b);a.oe.Jd(b)}m.Qj=function(a){var b=a.currentPointer;a=b.viewportX;b=b.viewportY;if(this.Cw!==a||this.Dw!==b)this.Cw=a,this.Dw=b,this.oe.setPosition(this.Ec.map.xa(a-this.lr.x,b-this.lr.y)),this.dispatchEvent(new fc(this.d.af,this))};\nm.Qf=function(a){var b=a.currentPointer,c=b.viewportX,b=b.viewportY,d=this.Ec.map.hb(this.getPosition());this.oe.Ao(1);this.lr={x:c-d.x,y:b-d.y};a.stopPropagation()};m.Pj=function(){this.oe.Ao(0)};m.ro=function(a){this.pf=a;this.Ua(this.Ec.Qp(a),this.getPosition())};function ao(a,b){this.Dl=b;this.ea=a;this.Na={previousSibling:null,nextSibling:null,ud:!0};bo(this,this.Na);this.Xj=w(this.Xj,this)}r(\"H.ui.distanceMeasurement.Model\",ao);m=ao.prototype;m.vh=function(){return this.Na.nextSibling===this.Na};m.ci=function(a){for(var b=this.Na,c=b.nextSibling;c!==b;)c.ci(c.previousSibling===b?!1:a),c=c.nextSibling};\nfunction co(a,b){var c;c=b||a.Na.nextSibling;var d=0,e=0;if(b&&!eo(a,b))throw new x(a.Xh,0,b);for(c instanceof Zn?d=c.kh():c instanceof Xn&&(d=c.previousSibling.kh());c&&c!==a.Na;c=c.nextSibling,e++)c.ro(d),1===e%2&&(d+=c.kh())}m.Bg=function(a){var b=this.Na.previousSibling,c=this.vh();a=new Zn(a,this.Dl,c?0:2);this.ea.k(a.ic);Wn(a,this.Na);a.addEventListener(a.d.af,this.Xj);c?bo(this,a):(fo(this,b,a),$n(b),co(this,b));return a};\nm.insertBefore=function(a,b){var c,d,e,f;d=!1;f=1;if(b){if(!eo(this,b))throw new x(this.insertBefore,1,b);if(d=b.previousSibling.ud)f=0;f=new Zn(a,this.Dl,f);f.addEventListener(f.d.af,this.Xj);this.ea.k(f.ic);d?(c=this.Na.nextSibling,fo(this,f,c),bo(this,f),d=f,$n(c)):(c=b.previousSibling,d=c.previousSibling,e=c.nextSibling,this.ea.P(c.ic),fo(this,d,f),fo(this,f,e));co(this,d)}else f=this.Bg(a);return f};m.Pa=function(){bo(this,this.Na);this.ea.Pa()};\nm.Xh=function(a){var b=this.Na,c=a.previousSibling,d=a.nextSibling,e;if(!eo(this,a))throw new x(this.Xh,0,a);this.ea.P(a.ic);c===b?(e=d,e!==b?(a=e.nextSibling,bo(this,a),a.ro(0),$n(a),co(this,a)):bo(this,this.Na)):d===b?(e=c,a=e.previousSibling,Wn(a,b),$n(a)):c&&d&&(fo(this,c.previousSibling,d.nextSibling),this.ea.Je([d.ic,c.ic]),co(this,c.previousSibling));e&&e!==b&&this.ea.P(e.ic)};function eo(a,b){for(var c=a.Na.nextSibling,d=!1;c!==a.Na;){if(c===b){d=!0;break}c=c.nextSibling}return d}\nfunction fo(a,b,c){b=new Xn(b,c,a.Dl);a.ea.k(b.ic)}function bo(a,b){a.Na.nextSibling=b;b.previousSibling=a.Na}m.Xj=function(a){a=a.target;var b=a.previousSibling,c=a.nextSibling,d=a.getPosition(),e;c.ud||(Yn(c,d,!1),e=a);b.ud||(Yn(b,d,!0),e=b.previousSibling);co(this,e)};function Cn(a){a=a||{};var b=a.lineStyle;Y.call(this);this.Eg=new Pm({label:Ln.btn,onStateChange:w(this.Ph,this)});this.Q(this.Eg);a.distanceFormatter&&(this.Rp=a.distanceFormatter);b&&(this.dr=b);this.Db(a.alignment||\"right-bottom\");this.kc={};this.kc[0]=a.startIcon;this.kc[2]=a.endIcon;this.kc[1]=a.stopoverIcon;this.kc[3]=a.splitIcon}u(Cn,Y);r(\"H.ui.DistanceMeasurement\",Cn);m=Cn.prototype;m.Dt=22;m.dr={strokeColor:\"rgba(102,17,68,.7)\",lineWidth:6};\nm.fi=function(){var a=this.map,b,c={};this.wh||(this.pc=new K,this.se=new gg(this.pc,{pixelRatio:this.map.fe()}),this.ea=b=this.pc.Pb(),b.addEventListener(\"dragstart\",this.Qf,!0,this),b.addEventListener(\"dragend\",this.gi,!0,this),b.addEventListener(\"pointerenter\",this.gi,!0,this),b.addEventListener(\"pointerleave\",this.Ad,!0,this),b.addEventListener(\"tap\",this.Sf,!0,this),this.Nk=go(this),c.Qp=w(this.Rp,this),c.mh=w(this.mh,this),c.Iv=w(this.oq,this),c.map=this.map,c.Ns=this.Nk,c.Kf=this.dr,this.mb=\nnew ao(this.ea,c),this.wh=!0);this.Nk&&this.ea.k(this.Nk);a.addEventListener(\"tap\",this.Cr,!0,this);a.u.add(this.se)};m.og=function(){var a=this.map;this.wh&&(a.removeEventListener(\"tap\",this.Cr,!0,this),a.lo(this.se),this.mb.Pa())};\nfunction go(a){function b(){var a=c.fc(),a={anchor:c.ra.i().scale(g).floor(),size:new of($c(a.w*g),$c(a.h*g)),hitArea:d};return new N(c.rd(),a)}var c=a.mh(3),d=new pf(rf.NONE,[]),e=c.Ag.READY,f,g=c===a.cp?0.5:1,h;c.getState()===e?h=b():(h=new N(\"\",{hitArea:d}),c.addEventListener(\"statechange\",function(){c.getState()===e&&f.Jd(b())}));return f=new sh(a.map.La(),{visibility:!1,icon:h})}\nm.Rp=function(a){var b=\"m\",c=0;this.Hb===ho?1E3<=a&&(a/=1E3,b=\"km\",c=1):(a/=0.3048,b=\"ft\",5280<=a&&(a/=5280,b=\"mi\",c=1));return a.toFixed(c)+\" \"+this.r().translate(\"scale.\"+b)};m.oq=function(a,b,c){a=this.map.hb(a);b=this.map.hb(b);c=(new F(c.x,c.y)).nq(a,b);return this.map.xa(c.x,c.y)};\nm.n=function(a,b){var c=this.Dt*this.map.fe(),d=c/2;Y.prototype.renderInternal.call(this,a,b);this.Hb=vn.METRIC;this.cp=new N(Ln.point,{anchor:{x:d,y:d},size:{w:c,h:c},hitArea:new pf(rf.CIRCLE,[d,d,d])});Lm(this.Eg,this.r().translate(\"distance.measurement\"))};Cn.prototype.renderInternal=Cn.prototype.n;m=Cn.prototype;m.mh=function(a){return this.kc[a]||this.cp};m.gi=function(){this.mb.ci(!0)};m.Qf=function(){this.mb.ci()};m.Ad=function(a){\"touch\"!==a.currentPointer.type&&this.mb.ci()};\nm.Sf=function(a){var b=a.currentPointer,c;c=a.target.ka;var d;c&&(c=c.getData())instanceof Vn&&(d=c);c=d;a=a.originalEvent;a=a.metaKey||a.altKey;c&&(a&&c instanceof Zn?this.mb.Xh(c):c instanceof Xn&&(a=c.previousSibling.getPosition(),d=c.nextSibling.getPosition(),b={x:b.viewportX,y:b.viewportY},this.mb.insertBefore(this.oq(a,d,b),c.nextSibling),this.Nk.setVisibility()),this.gi())};\nm.Cr=function(a){var b=a.currentPointer;a=a.target;if(a===this.map||a.Qa()!==this.pc)this.mb.Bg(this.map.xa(b.viewportX,b.viewportY)),this.gi()};m.Ph=function(a){\"down\"===a.target.getState()?this.fi():this.og()};m.Qh=function(a){this.Hb=a;this.wh&&(co(this.mb),this.gi())};Cn.prototype.onUnitSystemChange=Cn.prototype.Qh;Cn.prototype.Ra=function(a){a=a===Df;this.Eg.setVisibility(a);a||this.Eg.g(\"up\")};Cn.prototype.onMapEngineTypeChange=Cn.prototype.Ra;\nCn.prototype.e=function(){this.og();this.wh&&(this.pc.e(),this.se.e());Y.prototype.dispose.call(this)};Cn.prototype.dispose=Cn.prototype.e;Cn.prototype.na=function(a){a?this.Eg.getState()===Om.DOWN&&(this.map=a,this.fi()):(this.og(),this.wh=!1);Y.prototype.na.apply(this,arguments)};Cn.prototype.setMap=Cn.prototype.na;function Vm(a,b){var c=b||{};X.call(this,\"div\",\"H_ib\");this.Hr=w(function(a){this.Wa||(this.close(),a.preventDefault())},this);this.update=w(this.update,this);this.Wg=w(this.Wg,this);this.setPosition(a);this.Re(c.content);c.onStateChange&&this.addEventListener(\"statechange\",c.onStateChange);this.g(io.OPEN)}u(Vm,X);r(\"H.ui.InfoBubble\",Vm);Vm.prototype.b=null;Vm.prototype.getPosition=function(){return this.ab};Vm.prototype.setPosition=function(a){this.ab=Vd(a);this.update()};\nVm.prototype.setPosition=Vm.prototype.setPosition;Vm.prototype.na=function(a){this.b=a};\nVm.prototype.n=function(a,b){this.Ji=Gm(b,\"div\",\"H_ib_body\");this.tailEl_=Gm(b,\"div\",\"H_ib_tail\",jo);this.Ui=Gm(b,\"div\",\"H_ib_close\",ko);this.nd=Gm(b,\"div\",\"H_ib_content\",\" \");this.Ji.appendChild(this.Ui);this.Ji.appendChild(this.nd);Jm(this.Ui,\"start\",this.Hr);this.b.M.addEventListener(\"sync\",this.update);this.b.q.addEventListener(\"sync\",this.update);this.b.addEventListener(\"enginechange\",this.Wg);a.appendChild(this.Ji);a.appendChild(this.tailEl_);this.Re(this.Yi)};\nVm.prototype.renderInternal=Vm.prototype.n;Vm.prototype.Wg=function(){this.Kp||(this.Kp=setTimeout(this.update,0))};\nVm.prototype.update=function(){var a=this.el,b=this.b,c,d,e;this.Kp=0;b&&this.f()&&this.getState()===io.OPEN&&(d=(c=b.hb(this.ab))&&c.x,e=c&&c.y,c=b.q.width,b.ib().type!==Df?a.style.display=\"none\":d<-c||d>2*c||e<-c||e>2*c?a.style.display=\"none\":(a.style.display=\"\",Mn?(a.style.left=d-c+\"px\",a.style.top=e+\"px\"):zm(a,d,e),a=this.nd.offsetWidth,d-=a,40>d&&(d=Math.max(0,Math.min((a||this.nd.offsetWidth)-this.tailEl_.offsetWidth,-d)),this.Ji.style.right=d?-d+\"px\":\"0\")))};var io={OPEN:\"open\",CLOSED:\"closed\"};\nVm.State=io;Vm.prototype.j=io.OPEN;Vm.prototype.getState=function(){return this.j};Vm.prototype.getState=Vm.prototype.getState;Vm.prototype.g=function(a){a!==this.j&&(this.j=a,this.dispatchEvent(\"statechange\"));if(a=this.f())this.j===io.OPEN?(a.style.display=\"block\",this.Wg()):a.style.display=\"none\"};Vm.prototype.setState=Vm.prototype.g;Vm.prototype.close=function(){this.g(io.CLOSED)};Vm.prototype.close=Vm.prototype.close;Vm.prototype.open=function(){this.g(io.OPEN)};Vm.prototype.open=Vm.prototype.open;\nVm.prototype.mv=function(){return this.nd};Vm.prototype.getContentElement=Vm.prototype.mv;\nVm.prototype.Re=function(a){if(a)if(\"string\"===typeof a||\"number\"===typeof a.nodeType&&\"string\"===typeof a.nodeName)this.Yi=a;else throw Error(\"InfoBubble content must be a string or HTML node.\");else this.Yi=void 0;this.f()&&(this.Yi?(this.nd.innerHTML=\"\",\"string\"===typeof this.Yi?this.nd.innerHTML=a:\"number\"===typeof a.nodeType&&\"string\"===typeof a.nodeName&&this.nd.appendChild(a)):this.nd.innerHTML=\" \",this.Wg())};Vm.prototype.setContent=Vm.prototype.Re;\nVm.prototype.c=function(){this.close();this.Re(null);this.Ui&&Km(this.Ui,\"end\",this.Hr);this.b&&(this.b.M.removeEventListener(\"sync\",this.update),this.b.q.removeEventListener(\"sync\",this.update));X.prototype.c.call(this)};\nvar jo='',ko='';function lo(){this.j=mo.CLOSED;Rm.call(this,\"div\",\"H_overlay\")}u(lo,Rm);r(\"H.ui.base.OverlayPanel\",lo);lo.prototype.g=function(a,b){if(a!==this.j||b)this.j=a,a===mo.OPEN?this.qa(\"H_open\"):this.cb(\"H_open\");return this};lo.prototype.setState=lo.prototype.g;lo.prototype.getState=function(){return this.j};lo.prototype.getState=lo.prototype.getState;\nlo.prototype.Zr=function(a){var b=a.jd;a=a.f();var c=this.f(),d=c.style,e;this.cb(\"H_top\");this.cb(\"H_middle\");this.cb(\"H_bottom\");this.cb(\"H_left\");this.cb(\"H_center\");this.cb(\"H_right\");d.bottom=d.top=d.left=d.right=d.margin=\"\";/top/g.test(b)?(this.qa(\"H_top\"),d.top=\"0\",d.margin=\"0 1.2em\",e=-1):/bottom/g.test(b)?(this.qa(\"H_bottom\"),d.bottom=\"0\",d.margin=\"0 1.2em\",e=1):(this.qa(\"H_middle\"),d.top=\"50%\",d.margin=\"0 1.2em\",d.marginTop=-Math.round(0.5*c.offsetHeight)+\n\"px\",e=0);/left/g.test(b)?(this.qa(\"H_left\"),d.left=a.offsetWidth+\"px\",d.marginLeft=\"1.2em\"):/right/g.test(b)?(this.qa(\"H_right\"),d.right=a.offsetWidth+\"px\",d.marginRight=\"1.2em\"):(this.qa(\"H_center\"),d.left=\"50%\",0>e?(d.top=a.offsetHeight+\"px\",d.marginTop=\"1.2em\"):0a.vl)&&a.mc.close()})}function qo(a){var b=a.Ld,c=a.jb.getData(),d;b&&(d=b.Ic())&&c?0<=d.u.indexOf(c)?a.jb.g(\"down\",!0):(a.jb.g(\"up\",!0),a.mc&&a.mc.close()):a.jb.g(\"up\",!0)}po.prototype.Fn=function(){var a=this.Ld.Ic(),b=this.jb.getData();a&&b&&(this.jb.getState()===Om.DOWN?a.nl(b):a.lo(b))};\npo.prototype.Tj=function(a){var b,c;a.target&&(b=a.target.getData())&&0===a.currentPointer.button&&(this.mc||(this.mc=new Vm(a.target.getPosition()),this.Ld.Ei(this.mc)),this.mc.setPosition(a.target.getPosition()),c=b.TRAFFIC_ITEM_TYPE_DESC.replace(\" \",\"_\"),this.Ld.r().zq(\"traffic.\"+c)&&(c=this.Ld.r().translate(\"traffic.\"+c)),this.mc.Re('

{{title}}

{{desc}}

{{traffic.from}}{{from}}
{{traffic.until}}{{until}}

'.replace(\"{{title}}\",\nc).replace(\"{{desc}}\",b.TRAFFIC_ITEM_DESCRIPTION[0].value).replace(\"{{traffic.from}}\",this.Ld.r().translate(\"traffic.from\")).replace(\"{{traffic.until}}\",this.Ld.r().translate(\"traffic.until\")).replace(\"{{from}}\",b.START_TIME).replace(\"{{until}}\",b.END_TIME)),this.mc.open());a.stopPropagation()};function An(a){a=a||{};Y.call(this);this.On=w(this.On,this);this.Pn=w(this.Pn,this);this.Oh=w(this.Oh,this);this.Ub=w(this.Ub,this);this.Bl=w(this.Bl,this);this.xd=new lo;this.yb=new no({onActiveButtonChange:this.Oh});this.Gb=new Pm({onStateChange:this.Pn});this.Fb=new Pm({onStateChange:this.On});this.si=new po;this.si.Ek(a.incidents);this.pe=new Pm({label:'',\nonStateChange:w(function(a){a.target.getState()===Om.DOWN?(this.xd.g(mo.OPEN),this.xd.Zr(this)):this.xd.g(mo.CLOSED)},this)});this.xd.Q(this.yb);this.xd.Q(this.Fb);this.xd.Q(this.Gb);this.xd.Q(this.si.jb);this.Q(this.pe);this.Q(this.xd);a.entries&&a.entries.forEach(function(a){this.yb.ml(new Pm({label:a.name,data:a.mapType}))},this);this.Db(a.alignment||\"bottom-right\")}u(An,Y);r(\"H.ui.MapSettingsControl\",An);\nAn.prototype.n=function(a,b){var c=this.Ic().u;Y.prototype.renderInternal.call(this,a,b);this.yb.Jk(this.r().translate(\"layers.choose\"));this.yb.hh().forEach(function(a){var b=a.Za;\"layers.\"===b.substr(0,7)&&a.Ua(this.r().translate(b))},this);this.Gb.Ua(this.r().translate(\"layer.transit\"));this.Fb.Ua(this.r().translate(\"layer.traffic\"));Lm(this.pe,this.r().translate(\"layers.choose\"));ro(this.si,this.Kc());c.addEventListener(\"add\",this.Ub);c.addEventListener(\"remove\",this.Ub);c.addEventListener(\"set\",\nthis.Ub);this.Ic().addEventListener(\"tap\",this.Bl);so(this)};An.prototype.renderInternal=An.prototype.n;m=An.prototype;m.Oh=function(){var a;a:{a=this.yb.hh();for(var b=a.length;b--;)if(a[b].getState()===Om.DOWN){a=a[b];break a}a=null}(a=a?a.getData():null)?(b=a.map,this.Gb.T(!a.transit),a.transit&&(this.Gb.Wa||this.Gb.getState()!==Om.DOWN||(b=a.transit)),this.Fb.T(!a.traffic),a.traffic&&(this.Fb.Wa||this.Fb.getState()!==Om.DOWN||(b=a.traffic)),b&&this.map&&this.map.Id(b)):(this.Gb.T(!0),this.Fb.T(!0))};\nm.On=function(){this.Fb.getState()===Om.DOWN&&this.Gb.g(Om.UP,!0);this.Oh()};m.Pn=function(){this.Gb.getState()===Om.DOWN&&this.Fb.g(Om.UP,!0);this.Oh()};m.Ub=function(a){0===a.idx?so(this,a):qo(this.si)};\nfunction so(a,b){var c=null,d=b?b.added:a.map.J;a.yb.hh().forEach(function(a){var b=a.getData();b.map===d?(this.yb.fg(a,!0),this.Gb.g(Om.UP,!0),this.Fb.g(Om.UP,!0),c=b):b.transit&&b.transit===d?(this.yb.fg(a,!0),this.Gb.g(Om.DOWN,!0),this.Fb.g(Om.UP,!0),c=b):b.traffic&&b.traffic===d&&(this.yb.fg(a,!0),this.Gb.g(Om.UP,!0),this.Fb.g(Om.DOWN,!0),c=b)},a);c?(a.Gb.T(!c.transit),a.Fb.T(!c.traffic)):a.yb.fg(null,!0)}m.Ra=function(a){this.f().style.display=a!==Df?\"none\":\"\"};\nAn.prototype.onMapEngineTypeChange=An.prototype.Ra;An.prototype.Bl=function(){this.pe.g(Om.UP)};An.prototype.Ek=function(a){this.si.Ek(a)};An.prototype.setIncidentsLayer=An.prototype.Ek;function zn(a){a=a||{};Y.call(this);a.adjustZoom&&(this.Gi=a.adjustZoom);this.pe=new Pm({label:'',onStateChange:w(this.Ph,this)});this.Q(this.pe);this.Db(a.alignment||\"bottom-right\")}u(zn,Y);r(\"H.ui.ZoomRectangle\",zn);m=zn.prototype;m.Gi=function(a){return Math.floor(a)};\nm.Ph=function(a){var b=this.map,c=b.q.element;a.target.getState()===Om.DOWN?(b.addEventListener(\"dragstart\",this.Qf,!0,this),b.addEventListener(\"drag\",this.Qj,!0,this),b.addEventListener(\"dragend\",this.Pj,!0,this),a=c.ownerDocument.createElement(\"div\"),b=a.style,b.position=\"absolute\",b.display=\"none\",b.border=\"2px solid #000\",b.zIndex=1E5,b.backgroundColor=\"rgba(204,204,204,0.5)\",c.appendChild(a),this.zj=a):(b.removeEventListener(\"dragstart\",this.Qf,!0,this),b.removeEventListener(\"drag\",this.Qj,!0,\nthis),b.removeEventListener(\"dragend\",this.Pj,!0,this),c.removeChild(this.zj))};m.Qf=function(a){var b=this.zj.style,c=a.currentPointer,d=c.viewportX,c=c.viewportY;a.target===this.map&&(a.stopPropagation(),b.width=\"0px\",b.height=\"0px\",b.top=c+\"px\",b.left=d+\"px\",b.display=\"block\",this.Ps=c,this.Os=d)};\nm.Qj=function(a){var b=a.currentPointer,c=b.viewportX,d=b.viewportY,b=this.Os,e=this.Ps,f=this.zj.style;a.target===this.map&&(a=c-b,c=d-e,f.left=b+(0>a?a:0)+\"px\",f.top=e+(0>c?c:0)+\"px\",f.width=Math.abs(a)+\"px\",f.height=Math.abs(c)+\"px\")};m.Pj=function(a){var b=this.map,c=a.currentPointer;a.target===this.map&&(this.zj.style.display=\"none\",a=b.nm(ae([b.xa(this.Os,this.Ps),b.xa(c.viewportX,c.viewportY)])),a.animate=!0,a.zoom=this.Gi(a.zoom,this.map),b.M.Zc(a))};\nm.n=function(a,b){Y.prototype.renderInternal.call(this,a,b);Lm(this.pe,this.r().translate(\"zoom.rectangle\"))};zn.prototype.renderInternal=zn.prototype.n;zn.prototype.Ra=function(a){a=a!==Df;this.f().style.display=a?\"none\":\"\";a&&this.pe.g(\"up\")};zn.prototype.onMapEngineTypeChange=zn.prototype.Ra;function to(a,b){var c=b||{};if(!(a&&a instanceof Yh))throw Error(\"Base layer is mandatory for overview UI element\");Y.call(this);this.pk=new Pm({label:'',onStateChange:w(this.Ph,this)});this.Q(this.pk);this.we=new uo(a,c.zoomDelta,c.scaleX,c.scaleY);this.Db(c.alignment||\"right-bottom\");this.Q(this.we)}u(to,Y);\nr(\"H.ui.Overview\",to);to.prototype.Id=function(a){this.we.Id(a);return this};to.prototype.setBaseLayer=to.prototype.Id;to.prototype.Ph=function(a){a.target.getState()===Om.DOWN?this.we.setup():vo(this.we)};to.prototype.n=function(a,b){Y.prototype.renderInternal.call(this,a,b);this.pk.el.style[\"float\"]=this.jd.match(\"right\")?\"right\":\"left\";this.we.na(this.map);Lm(this.pk,this.r().translate(\"minimap\"))};to.prototype.renderInternal=to.prototype.n;\nto.prototype.Ra=function(a){this.f().style.display=a!==Df?\"none\":\"\";this.pk.getState()===Om.DOWN&&this.we.setup()};to.prototype.onMapEngineTypeChange=to.prototype.Ra;to.prototype.c=function(){this.we.e();X.prototype.c.call(this)};function uo(a,b,c,d){this.J=a;this.pp=\"H_overview_active\";\"number\"===typeof b&&(this.ut=b);\"number\"===typeof c&&(this.Sr=c);\"number\"===typeof d&&(this.Tr=d);Rm.call(this,\"div\",\"H_overview\")}u(uo,Y);uo.prototype.Id=function(a){this.Rh.Id(a)};\nuo.prototype.n=function(a,b){var c=Gm(b,\"div\",\"H_overview_map\");Hm(a,c);this.jr=c};uo.prototype.renderInternal=uo.prototype.n;m=uo.prototype;m.ut=3;m.Sr=5;m.Tr=5;m.na=function(a){this.b=a;this.Rh=new S(this.jr,this.J,{pixelRatio:this.b.fe()});this.Rh.lc.f().style.display=\"none\";this.sx=this.Rh.M;this.Iw=this.b.M};m.setup=function(){wo(this,!0);this.Go();this.qa(this.pp);this.b.addEventListener(\"mapviewchange\",this.Go,!1,this)};\nfunction vo(a){wo(a);a.cb(a.pp);a.b.removeEventListener(\"mapviewchange\",a.Go,!1,a)}m.Go=function(a){a&&a.modifiers&a.SIZE&&wo(this,!0);a=this.Iw.Gc();a.zoom-=this.ut;this.sx.Zc(a)};function wo(a,b){var c=a.b.q.element,d=a.el.style,e=c.offsetWidth/a.Sr/10,c=c.offsetHeight/a.Tr/10,f=a.jr.style;b?(d.width=e+\"em\",d.height=c+\"em\",f.width=e-1+\"em\",f.height=c-1+\"em\"):d.width=d.height=\"0em\";a.Rh.q.resize()}m.e=function(){vo(this);this.Rh.e()};function Bn(a){a=a||{};Y.call(this);this.qa(\"H_scalebar\");this.Db(a.alignment||\"bottom-right\");this.maxWidth=150;this.update=w(this.update,this);this.Ym=this.Xm=this.qo=this.po=this.Qk=null}u(Bn,Y);r(\"H.ui.ScaleBar\",Bn);\nBn.prototype.n=function(a,b){Y.prototype.renderInternal.call(this,a,b);var c;a.innerHTML='';this.Qk=\na.firstChild;c=this.Qk.childNodes;this.po=c[0];this.qo=c[1];this.Xm=c[2];this.Ym=c[3];this.Hb=vn.METRIC;this.Du=w(function(a){this.Wa||(this.dispatchEvent(\"toggleunitsystem\"),a.preventDefault())},this);this.ek=w(function(a){a.preventDefault()},this);Jm(a,\"start\",this.ek);Jm(a,\"end\",this.Du);Lm(this,this.r().translate(\"scale.switchToImperial\"));this.update()};Bn.prototype.renderInternal=Bn.prototype.n;\nBn.prototype.na=function(a){this.map&&this.map.removeEventListener(\"mapviewchangeend\",this.update);a&&a.addEventListener(\"mapviewchangeend\",this.update);Y.prototype.na.apply(this,arguments)};Bn.prototype.setMap=Bn.prototype.na;\nBn.prototype.ta=function(a,b,c){var d=document.createElement(\"canvas\"),e=d.getContext(\"2d\"),f=Ic(this.Qk,document,!1),g;g=parseFloat(f.getAttribute(\"width\"));var h=parseFloat(f.getAttribute(\"height\")),k=g*a;a*=h;f.setAttribute(\"viewBox\",\"0 0 \"+g+\" \"+h);f.setAttribute(\"width\",k);f.setAttribute(\"height\",a);g=document.createElement(\"div\");g.appendChild(f);f=Dc(g.innerHTML);d.width=k;d.height=a;Gf.load(f,function(a){e.drawImage(a,0,0);b(d)},c)};Bn.prototype.capture=Bn.prototype.ta;\nBn.prototype.Qh=function(a){this.Hb=a;Lm(this,\"imperial\"===a?this.r().translate(\"scale.switchToMetric\"):this.r().translate(\"scale.switchToImperial\"));this.update()};Bn.prototype.onUnitSystemChange=Bn.prototype.Qh;Bn.prototype.Ra=function(a){this.f().style.display=a!==Df?\"none\":\"\"};Bn.prototype.onMapEngineTypeChange=Bn.prototype.Ra;\nBn.prototype.update=function(){if(this.f()&&(!this.map||this.map.ib().type===Df)){var a,b=0,c=this.map,d,e;c&&(a=Math.round(0.5*c.q.width),d=Math.round(0.5*c.q.height),e=c.xa(a,d))&&(b=Vd(e),c=Vd(c.xa(a+1,d)),b=100*b.distance(c));a=b;c=this.maxWidth;this.Hb===vn.IMPERIAL?aa?(b=a,d=this.r().translate(\"scale.m\")):(b=a/1E3,d=this.r().translate(\"scale.km\"));a=Math.pow(10,Math.floor(Math.log(b)/Math.LN10));b=a/\nb*100;bc&&(a/=2,b/=2);b=Math.round(b);this.Qk.setAttribute(\"width\",b);this.Ym.textContent=this.Xm.textContent=a+\" \"+d;this.Ym.setAttribute(\"x\",b-8);this.Xm.setAttribute(\"x\",b-8);this.po.points.getItem(2).x=this.qo.points.getItem(2).x=this.po.points.getItem(3).x=this.qo.points.getItem(3).x=b-2}};var xo=1609.344,yo=0.3048006;r(\"H.ui.buildInfo\",function(){return xi(\"mapsjs-ui\",\"0.12.2\",\"d84d188\")});var ho=\"metric\",vn={IMPERIAL:\"imperial\",METRIC:ho};r(\"H.ui.UnitSystem\",vn);\n"); +H.util.eval("function Km(a,b,c){b=Ta(b)?b+\"px\":b;c=Ta(c)?c+\"px\":c;a.style[dd(\"transform\")]=\"translate(\"+b+\",\"+c+\")\"}function Lm(a){var b=a.ownerDocument,c=b.documentElement,b=b.defaultView,d=a.getBoundingClientRect();a=d.left;d=d.top;isNaN(b.pageXOffset)?(a+=c.scrollLeft,d+=c.scrollTop):(a+=b.pageXOffset,d+=b.pageYOffset);return new G(a,d)}function Mm(a){this.Ls=a?a:this.Qp()}\nMm.prototype.Qp=function(){var a=Function(\"return this;\")(),b=a.navigator,c=[];b&&(b.msPointerEnabled?c.push(Nm):b.yx&&c.push(Om));1>c.length&&(\"TouchEvent\"in a&&c.push(Pm),c.push(Qm));return c};r(\"H.ui.util.Events.prototype.detectEventSets\",Mm.prototype.Qp);Mm.prototype.addEventListener=function(a,b,c,d){for(var e=this.Ls,f,g=e.length,h=!1;g--;)if(f=e[g][b])h=!0,a.addEventListener(f,c,d||!1);h||a.addEventListener(b,c,d||!1)};\nMm.prototype.removeEventListener=function(a,b,c,d){for(var e=this.Ls,f,g=e.length,h=!1;g--;)if(f=e[g][b])h=!0,a.removeEventListener(f,c,d||!1);h||a.removeEventListener(b,c,d||!1)};\nvar Om={start:\"pointerdown\",end:\"pointerup\",move:\"pointermove\",cancel:\"pointercancel\",over:\"pointerover\",out:\"pointerout\",hover:\"pointerhover\"},Nm={start:\"MSPointerDown\",end:\"MSPointerUp\",move:\"MSPointerMove\",cancel:\"MSPointerCancel\",over:\"MSPointerOver\",out:\"MSPointerOut\",hover:\"MSPointerHover\"},Pm={start:\"touchstart\",end:\"touchend\",move:\"touchmove\",cancel:\"touchcancel\"},Qm={start:\"mousedown\",end:\"mouseup\",move:\"mousemove\",over:\"mouseover\",out:\"mouseout\",hover:\"mousehover\"};function Rm(a,b,c,d){a=a.createElement(b);c&&(a.className=c);d&&(a.innerHTML=d);return a}function Sm(a,b){for(var c=1,d=arguments.length;cthis.Td.indexOf(a)&&this.Td.push(a);b&&(b.className=this.Td.join(\" \"));return this};X.prototype.addClass=X.prototype.qa;\nX.prototype.eb=function(a){a=this.Td.indexOf(a);var b=this.f();-1';dn(this,!1)};\nfunction dn(a,b,c,d){a.Kh.el.innerHTML=b?'':\n'';b&&Km(a.Dc.el,\nc||0,d||0);a.T(!b)};function en(a){yb.call(this);this.fd=a;this.map=a.Ic();this.Pc=this.Oc=Number.MAX_VALUE;this.ob=w(this.ob,this);this.$j=w(this.$j,this);this.Mn=w(this.Mn,this);this.Vj=w(this.Vj,this);this.Uj=w(this.Uj,this);this.Tj=w(this.Tj,this);this.Yj=w(this.Yj,this);this.Ad=w(this.Ad,this);this.ab=new cn;this.ab.F(a.f().ownerDocument);this.$d=w(this.$d,this);Um(this.ab.Dc.el,\"start\",this.$d);this.Cj=this.Bj=Number.MAX_VALUE;this.ek=w(this.ek,this);this.Rf=w(this.Rf,this);this.ka=new fn(this.map.Ma());this.ka.qa(\"H_ib_noclose H_pano_ib\");\nthis.ba=!1;this.Xh=ca(\"H.map.render.panorama\").RenderEngine;this.ed=0}u(en,F);m=en.prototype;\nm.enable=function(){var a=this.map;this.ba||(this.fd.f().insertBefore(this.ab.el,this.fd.f().firstChild),this.fd.Ei(this.ka),this.ka.close(),Um(this.ka.el,\"start\",this.$d),a.addEventListener(\"pointermove\",this.ob),a.addEventListener(\"drag\",this.ob),a.addEventListener(\"tap\",this.Rf),a.addEventListener(\"mapviewchange\",this.Vj),a.addEventListener(\"mapviewchangestart\",this.Uj),a.addEventListener(\"mapviewchangeend\",this.Tj),a.addEventListener(\"pointerleave\",this.Ad),a.addEventListener(\"pointerenter\",this.Yj),\nthis.ba=!0)};m.Ad=function(a){\"mouse\"===a.currentPointer.type&&(Xm(this.ab),this.fd.no(this.ka))};m.Yj=function(a){\"mouse\"===a.currentPointer.type&&(this.fd.f().insertBefore(this.ab.el,this.fd.f().firstChild),this.fd.Ei(this.ka),Um(this.ka.el,\"start\",this.$d),this.ka.close())};m.$d=function(a){a instanceof MouseEvent&&1!==a.which||gn(this,this.Oc,this.Pc)};m.ry=25;\nm.disable=function(){var a=this.ka.el,b=this.map;Xm(this.ab);this.fd.no(this.ka);a&&Vm(a,\"start\",this.$d);Vm(this.ab.Dc.el,\"start\",this.$d);b.removeEventListener(\"pointermove\",this.ob);b.removeEventListener(\"drag\",this.ob);b.removeEventListener(\"tap\",this.Rf);b.removeEventListener(\"mapviewchange\",this.Vj);b.removeEventListener(\"mapviewchangestart\",this.Uj);b.removeEventListener(\"mapviewchangeend\",this.Tj);b.removeEventListener(\"pointerleave\",this.Ad);b.removeEventListener(\"pointerenter\",this.Yj);\nthis.ba=!1};function gn(a,b,c){a.Xh&&(a.Bj=b,a.Cj=c,a.Xh.getClosestPanoramas(a.map.xa(a.Bj,a.Cj),a.ek))}m.ob=function(a){var b=a.currentPointer;this.map.jb().type===If&&\"touch\"!==b.type&&(a=b.viewportX,b=b.viewportY,this.Oc!==a||this.Pc!==b)&&(this.ab.Kh.el.style.display=\"block\",this.Us&&clearTimeout(this.Us),this.gs&&this.gs.cancel(),this.bn=null,this.Oc=a,this.Pc=b,y.setTimeout(w(this.ey,this,a,b),0),this.Us=y.setTimeout(this.$j,350),dn(this.ab,!1),this.ka.close())};\nm.ey=function(a,b){var c=this.ab;Km(c.Kh.el,a,b);Km(c.Dc.el,a,b)};m.$j=function(){this.Xh&&this.Xh.getClosestPanoramas(this.map.xa(this.Oc,this.Pc),this.Mn)};m.Mn=function(a){var b=this,c;a&&0');b.ka.open()})):this.ed&&this.ek(a)};m.Uj=function(){this.ab.Dc.qa(\"H_pano_notransition\");this.ka.close()};\nm.Tj=function(){this.ab.Dc.eb(\"H_pano_notransition\")};m.Vj=function(){if(this.bn){var a=this.map.ib(this.bn);a&&dn(this.ab,!0,a.x,a.y)}this.ed=0};m.Rf=function(a){var b=a.currentPointer,c=\"mouse\"===b.type,d=b.viewportX,b=b.viewportY,e=this.ry,f=Math.abs;0===a.currentPointer.button&&(1===this.ed&&f(this.Oc-d)'},Jp:{label:''},\nVf:{}};var c=this,d;Y.call(this);this.T(!0);a&&(jn(this,a.mapTypes),(d=a.alignment)&&this.Eb(d));this.coverageButton_=new $m({onStateChange:function(){var a=c.ac;c.g(\"down\"===this.getState()?a.Jp:a.zf)}});this.Fj=new Ym({onStateChange:function(){c.map.Ck(If);c.g(c.Zn)}});this.Q(this.coverageButton_);this.Q(this.Fj);this.j=this.Zn=b.zf}u(hn,Y);r(\"H.ui.Pano\",hn);\nfunction jn(a,b){var c,d,e,f;if(b){a.zb=b;a.Ru=c=[];e=[\"normal\",\"satellite\",\"terrain\"];for(f=0;fe.indexOf(d)&&c.unshift(b[d]);a.T(!c.length)}}function kn(a,b){var c,d,e,f,g;if(g=b){c=a.zb;var h;a:for(e in c)for(e in f=c[e],f)if(f[e]===b){h=!0;break a}g=c=h?f:void 0}g&&(d=c.panorama);if(!d)for(e=a.Ru,f=e.length;f--&&!(d=e[f].panorama););return d}\nhn.prototype.n=function(a,b){Y.prototype.renderInternal.call(this,a,b);this.g(this.ac.zf);this.Yd=new en(this.Kc());this.ac.zf.Xk=this.r().translate(\"panorama.showCoverage\");this.ac.Jp.Xk=this.r().translate(\"panorama.hideCoverage\");this.ac.Vf.Xk=this.r().translate(\"panorama.leave\");this.ac.Vf.label=''+this.r().translate(\"panorama.leave\")+\"\";this.Fj.Va(this.ac.Vf.label);Wm(this.Fj,this.ac.Vf.Xk);var c=this;this.Yd.addEventListener(\"enter\",function(a){c.Yd.disable();\nc.map.gg(a.position,!0);setTimeout(function(){c.coverageButton_.setVisibility(!1);c.map.Ck(1)},200)});var d=this.map.u;this.Vb=w(this.Vb,this);d.addEventListener(\"add\",this.Vb);d.addEventListener(\"remove\",this.Vb,!0,this);d.addEventListener(\"set\",this.Vb,!0,this)};hn.prototype.renderInternal=hn.prototype.n;hn.prototype.Vb=function(a){0===a.idx&&this.map&&kn(this,this.map.J)===this.map.J&&(this.Yd.disable(),this.coverageButton_.g(Zm.UP))};\nhn.prototype.g=function(a){var b=this.j,c=this.ac,d=a===c.Vf,e=this.coverageButton_;b===c.zf&&(this.Ax=this.map.J);d?this.Zn=b:(a===c.zf?(b=\"UP\",c=this.Ax,this.Yd&&this.Yd.disable()):(b=\"DOWN\",c=kn(this,this.map.J),this.Yd&&this.Yd.enable()),c&&this.map.Id(c),e.Va(a.label),Wm(e,a.Xk),e.g(Zm[b]));this.Fj.setVisibility(d);e.setVisibility(!d);this.j=a};hn.prototype.Sa=function(a){var b=this.ac;this.g(1===a?b.Vf:this.Zn)};hn.prototype.onMapEngineTypeChange=hn.prototype.Sa;function ln(a,b){var c={},d={};c[\"top-left\"]=Rm(b,\"div\",[mn,nn].join(\" \"));c[\"top-center\"]=Rm(b,\"div\",[mn,on,pn,nn].join(\" \"));c[\"top-right\"]=Rm(b,\"div\",[mn,nn].join(\" \"));c[\"left-top\"]=Rm(b,\"div\",[mn,qn].join(\" \"));c[\"left-middle\"]=Rm(b,\"div\",[mn,rn,sn,qn].join(\" \"));c[\"left-bottom\"]=Rm(b,\"div\",[mn,qn].join(\" \"));c[\"right-top\"]=Rm(b,\"div\",[mn,qn].join(\" \"));c[\"right-middle\"]=Rm(b,\"div\",[mn,tn,sn,qn].join(\" \"));c[\"right-bottom\"]=Rm(b,\"div\",[mn,qn].join(\" \"));c[\"bottom-left\"]=Rm(b,\"div\",[mn,nn].join(\" \"));\nc[\"bottom-center\"]=Rm(b,\"div\",[mn,un,pn,nn].join(\" \"));c[\"bottom-right\"]=Rm(b,\"div\",[mn,nn].join(\" \"));d[\"top-left\"]=Rm(b,\"div\",[on,rn].join(\" \"));d[\"top-right\"]=Rm(b,\"div\",[on,tn].join(\" \"));d[\"bottom-left\"]=Rm(b,\"div\",[un,rn].join(\" \"));d[\"bottom-right\"]=Rm(b,\"div\",[un,tn].join(\" \"));Sm(d[\"top-left\"],c[\"top-left\"],c[\"left-top\"]);Sm(d[\"top-right\"],c[\"top-right\"],c[\"right-top\"]);Sm(d[\"bottom-left\"],c[\"left-bottom\"],c[\"bottom-left\"]);Sm(d[\"bottom-right\"],c[\"right-bottom\"],c[\"bottom-right\"]);Sm(a,d[\"top-left\"],\nd[\"top-right\"],d[\"bottom-left\"],d[\"bottom-right\"],c[\"top-center\"],c[\"left-middle\"],c[\"right-middle\"],c[\"bottom-center\"]);this.xp=c}var on=\"H_l_top\",un=\"H_l_bottom\",rn=\"H_l_left\",tn=\"H_l_right\",pn=\"H_l_center\",sn=\"H_l_middle\",nn=\"H_l_horizontal\",qn=\"H_l_vertical\",mn=\"H_l_anchor\";ln.prototype.update=function(){var a=this.xp;vn(a[\"top-center\"],!0);vn(a[\"bottom-center\"],!0);vn(a[\"left-middle\"],!1);vn(a[\"right-middle\"],!1)};\nfunction vn(a,b){var c;b?(c=a.offsetWidth,a.style.marginLeft=-Math.round(0.5*c)+\"px\"):(c=a.offsetHeight,a.style.marginTop=-Math.round(0.5*c)+\"px\")}ln.prototype.put=function(a,b){var c=a?a.f():null,d=b?this.xp[b]:null;c&&d&&(c.parentElement&&c.parentElement.removeChild(c),d.insertBefore(c,/(bottom|right)$/.test(b)||/(center|middle)/.test(b)&&d.childNodes.length%2?d.firstChild:null));this.update()};var wn=[];r(\"H.ui.i18n.defaultLocales\",wn);var xn={},yn=[];function zn(a,b){xn[a]=b;-1===wn.indexOf(a)&&wn.push(a);yn.length?An(a,b):yn=Object.keys(b)}function An(a,b){for(var c=yn,d=c.length,e;d--;)if(e=c[d],!b[e])throw Error(\"'\"+e+\"' key missing in translation map for \"+a);};zn(\"nl-NL\",{\"layers.normal\":\"Kaartweergave\",\"layers.satellite\":\"Satelliet\",\"layers.terrain\":\"Terrein\",\"layer.transit\":\"Openbaar vervoer\",\"layer.traffic\":\"Verkeerssituatie\",\"layer.incidents\":\"Toon verkeersincidenten\",\"layers.choose\":\"Weergave kiezen\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Overgaan naar mijlen\",\"scale.switchToMetric\":\"Wijzigen naar km\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"mi\",\"scale.ft\":\"ft\",\"zoom.out\":\"Uitzoomen\",\"zoom.in\":\"Inzoomen\",\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"Straatbeeld verlaten\",\n\"panorama.showCoverage\":\"Toon straatbeeld\",\"panorama.hideCoverage\":\"Verberg straatbeeld\",\"panorama.unavailableHere\":\"Hier hebben we geen Straatbeeld dekking\",\"traffic.MASS_TRANSIT\":\"Openbaar vervoer\",\"traffic.MISCELLANEOUS\":\"Diversen\",\"traffic.ACCIDENT\":\"Ongeval\",\"traffic.OTHER_NEWS\":\"Meer informatie\",\"traffic.PLANNED_EVENT\":\"Geplande afzetting\",\"traffic.ROAD_HAZARD\":\"Gevaar op de weg\",\"traffic.WEATHER\":\"Weer\",\"traffic.CONGESTION\":\"Verkeersopstopping\",\"traffic.CONSTRUCTION\":\"Wegwerkzaamheden\",\"traffic.DISABLED_VEHICLE\":\"Voertuig met pech\",\n\"traffic.from\":\"Begintijd:\",\"traffic.until\":\"Geschatte eindtijd:\",\"distance.measurement\":\"Measure distance\"});zn(\"pt-PT\",{\"layers.normal\":\"Vista do mapa\",\"layers.satellite\":\"Sat\\u00e9lite\",\"layers.terrain\":\"Terreno\",\"layer.transit\":\"Transportes p\\u00fablicos\",\"layer.traffic\":\"Condi\\u00e7\\u00f5es de tr\\u00e2nsito\",\"layer.incidents\":\"Mostrar incidentes de tr\\u00e2nsito\",\"layers.choose\":\"Escolher vista\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Mudar para milhas\",\"scale.switchToMetric\":\"Mudar para km\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"mi\",\"scale.ft\":\"ft\",\"zoom.out\":\"Diminuir\",\"zoom.in\":\"Aumentar\",\n\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"Sair de Vista de Rua\",\"panorama.showCoverage\":\"Visualizar \\u00e1reas com Vista de Rua\",\"panorama.hideCoverage\":\"Esconder \\u00e1reas com Vista de Rua\",\"panorama.unavailableHere\":\"Vista de Rua indispon\\u00edvel neste local.\",\"traffic.MASS_TRANSIT\":\"Transportes p\\u00fablicos\",\"traffic.MISCELLANEOUS\":\"Diversos\",\"traffic.ACCIDENT\":\"Acidente\",\"traffic.OTHER_NEWS\":\"Outras not\\u00edcias\",\"traffic.PLANNED_EVENT\":\"Evento planeado\",\"traffic.ROAD_HAZARD\":\"Perigo na estrada\",\n\"traffic.WEATHER\":\"Meteorologia\",\"traffic.CONGESTION\":\"Congestionamento\",\"traffic.CONSTRUCTION\":\"Constru\\u00e7\\u00e3o\",\"traffic.DISABLED_VEHICLE\":\"Ve\\u00edculo avariado\",\"traffic.from\":\"Hora de in\\u00edcio:\",\"traffic.until\":\"Hora de fim prevista:\",\"distance.measurement\":\"Measure distance\"});zn(\"ru-RU\",{\"layers.normal\":\"\\u0420\\u0435\\u0436\\u0438\\u043c \\u043a\\u0430\\u0440\\u0442\\u044b\",\"layers.satellite\":\"\\u0421\\u043f\\u0443\\u0442\\u043d\\u0438\\u043a\\u043e\\u0432\\u0430\\u044f\",\"layers.terrain\":\"\\u041c\\u0435\\u0441\\u0442\\u043d\\u043e\\u0441\\u0442\\u044c\",\"layer.transit\":\"\\u041e\\u0431\\u0449\\u0435\\u0441\\u0442\\u0432\\u0435\\u043d\\u043d\\u044b\\u0439 \\u0442\\u0440\\u0430\\u043d\\u0441\\u043f\\u043e\\u0440\\u0442\",\"layer.traffic\":\"\\u0414\\u043e\\u0440\\u043e\\u0436\\u043d\\u044b\\u0435 \\u0443\\u0441\\u043b\\u043e\\u0432\\u0438\\u044f\",\n\"layer.incidents\":\"\\u041f\\u043e\\u043a\\u0430\\u0437\\u0430\\u0442\\u044c \\u0434\\u043e\\u0440\\u043e\\u0436\\u043d\\u044b\\u0435 \\u0441\\u043e\\u0431\\u044b\\u0442\\u0438\\u044f\",\"layers.choose\":\"\\u0412\\u044b\\u0431\\u0435\\u0440\\u0438\\u0442\\u0435 \\u0432\\u0438\\u0434\",minimap:\"Minimap\",\"scale.switchToImperial\":\"\\u0418\\u0441\\u043f\\u043e\\u043b\\u044c\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c \\u043c\\u0438\\u043b\\u0438\",\"scale.switchToMetric\":\"\\u0418\\u0441\\u043f\\u043e\\u043b\\u044c\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c \\u043a\\u0438\\u043b\\u043e\\u043c\\u0435\\u0442\\u0440\\u044b\",\n\"scale.km\":\"\\u043a\\u043c\",\"scale.m\":\"\\u043c\",\"scale.mi\":\"\\u043c\\u0438\\u043b\\u044c\",\"scale.ft\":\"\\u0444\\u0443\\u0442\",\"zoom.out\":\"\\u041e\\u0442\\u0434\\u0430\\u043b\\u0438\\u0442\\u044c\",\"zoom.in\":\"\\u041f\\u0440\\u0438\\u0431\\u043b\\u0438\\u0437\\u0438\\u0442\\u044c\",\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"\\u0412\\u044b\\u0439\\u0442\\u0438 \\u0438\\u0437 \\u0440\\u0435\\u0436\\u0438\\u043c\\u0430 \\u043f\\u0440\\u043e\\u0441\\u043c\\u043e\\u0442\\u0440\\u0430 \\u0443\\u043b\\u0438\\u0446\",\"panorama.showCoverage\":\"\\u041f\\u043e\\u043a\\u0430\\u0437\\u0430\\u0442\\u044c \\u043e\\u0431\\u043b\\u0430\\u0441\\u0442\\u0438 \\u0441 \\u043f\\u0430\\u043d\\u043e\\u0440\\u0430\\u043c\\u0430\\u043c\\u0438 \\u0443\\u043b\\u0438\\u0446\",\n\"panorama.hideCoverage\":\"\\u0421\\u043a\\u0440\\u044b\\u0442\\u044c \\u043e\\u0431\\u043b\\u0430\\u0441\\u0442\\u0438 \\u0441 \\u043f\\u0430\\u043d\\u043e\\u0440\\u0430\\u043c\\u0430\\u043c\\u0438 \\u0443\\u043b\\u0438\\u0446\",\"panorama.unavailableHere\":\"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u043e\\u043a\\u0430\\u0437\\u0430\\u0442\\u044c \\u043f\\u0430\\u043d\\u043e\\u0440\\u0430\\u043c\\u0443 \\u044d\\u0442\\u0438\\u0445 \\u0443\\u043b\\u0438\\u0446\",\"traffic.MASS_TRANSIT\":\"\\u041e\\u0431\\u0449\\u0435\\u0441\\u0442\\u0432\\u0435\\u043d\\u043d\\u044b\\u0439 \\u0442\\u0440\\u0430\\u043d\\u0441\\u043f\\u043e\\u0440\\u0442\",\n\"traffic.MISCELLANEOUS\":\"\\u041f\\u0440\\u043e\\u0447\\u0435\\u0435 \\u0414\\u0422\\u041f\",\"traffic.ACCIDENT\":\"\\u0414\\u0422\\u041f\",\"traffic.OTHER_NEWS\":\"\\u0414\\u0440\\u0443\\u0433\\u0438\\u0435 \\u043d\\u043e\\u0432\\u043e\\u0441\\u0442\\u0438\",\"traffic.PLANNED_EVENT\":\"\\u041f\\u043b\\u0430\\u043d\\u043e\\u0432\\u043e\\u0435 \\u043c\\u0435\\u0440\\u043e\\u043f\\u0440\\u0438\\u044f\\u0442\\u0438\\u0435\",\"traffic.ROAD_HAZARD\":\"\\u0414\\u043e\\u0440\\u043e\\u0436\\u043d\\u0430\\u044f \\u043e\\u043f\\u0430\\u0441\\u043d\\u043e\\u0441\\u0442\\u044c\",\"traffic.WEATHER\":\"\\u041f\\u043e\\u0433\\u043e\\u0434\\u0430\",\n\"traffic.CONGESTION\":\"\\u041f\\u0440\\u043e\\u0431\\u043a\\u0430\",\"traffic.CONSTRUCTION\":\"\\u0420\\u0435\\u043c\\u043e\\u043d\\u0442\",\"traffic.DISABLED_VEHICLE\":\"\\u041d\\u0435\\u0438\\u0441\\u043f\\u0440\\u0430\\u0432\\u043d\\u044b\\u0439 \\u0430\\u0432\\u0442\\u043e\\u043c\\u043e\\u0431\\u0438\\u043b\\u044c\",\"traffic.from\":\"\\u0412\\u0440\\u0435\\u043c\\u044f \\u043d\\u0430\\u0447\\u0430\\u043b\\u0430:\",\"traffic.until\":\"\\u041e\\u0436\\u0438\\u0434\\u0430\\u0435\\u043c\\u043e\\u0435 \\u0432\\u0440\\u0435\\u043c\\u044f \\u043e\\u043a\\u043e\\u043d\\u0447\\u0430\\u043d\\u0438\\u044f:\",\n\"distance.measurement\":\"\\u0418\\u0437\\u043c\\u0435\\u0440\\u0438\\u0442\\u044c \\u0440\\u0430\\u0441\\u0441\\u0442\\u043e\\u044f\\u043d\\u0438\\u0435\"});zn(\"fi-FI\",{\"layers.normal\":\"Karttan\\u00e4kym\\u00e4\",\"layers.satellite\":\"Satelliitti\",\"layers.terrain\":\"Maasto\",\"layer.transit\":\"Julkinen liikenne\",\"layer.traffic\":\"Liikenneolosuhteet\",\"layer.incidents\":\"N\\u00e4yt\\u00e4 liikennetapahtumat\",\"layers.choose\":\"Valitse n\\u00e4kym\\u00e4\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Vaihda maileihin\",\"scale.switchToMetric\":\"Vaihda kilometreihin\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"mi\",\"scale.ft\":\"ft\",\"zoom.out\":\"Loitonna\",\"zoom.in\":\"L\\u00e4henn\\u00e4\",\n\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"Poistu katun\\u00e4kym\\u00e4st\\u00e4\",\"panorama.showCoverage\":\"N\\u00e4yt\\u00e4 katutason kattavuus\",\"panorama.hideCoverage\":\"Piilota katutason kattavuus\",\"panorama.unavailableHere\":\"Emme voi n\\u00e4ytt\\u00e4\\u00e4 sinulle katu tasoa t\\u00e4ss\\u00e4\",\"traffic.MASS_TRANSIT\":\"Julkinen liikenne\",\"traffic.MISCELLANEOUS\":\"Erittelem\\u00e4t\\u00f6n syy\",\"traffic.ACCIDENT\":\"Onnettomuus\",\"traffic.OTHER_NEWS\":\"Muu tapahtuma\",\"traffic.PLANNED_EVENT\":\"Suunniteltu tapahtuma\",\n\"traffic.ROAD_HAZARD\":\"Vaara tiell\\u00e4\",\"traffic.WEATHER\":\"S\\u00e4\\u00e4\",\"traffic.CONGESTION\":\"Ruuhka\",\"traffic.CONSTRUCTION\":\"Rakennusty\\u00f6\",\"traffic.DISABLED_VEHICLE\":\"Pys\\u00e4htynyt ajoneuvo\",\"traffic.from\":\"Alkamisaika:\",\"traffic.until\":\"Arvioitu p\\u00e4\\u00e4ttymisaika:\",\"distance.measurement\":\"Measure distance\"});zn(\"pt-BR\",{\"layers.normal\":\"Exibi\\u00e7\\u00e3o do mapa\",\"layers.satellite\":\"Sat\\u00e9lite\",\"layers.terrain\":\"Terreno\",\"layer.transit\":\"Transporte p\\u00fablico\",\"layer.traffic\":\"Condi\\u00e7\\u00f5es do tr\\u00e2nsito\",\"layer.incidents\":\"Mostrar incidentes no tr\\u00e2nsito\",\"layers.choose\":\"Escolher exibi\\u00e7\\u00e3o\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Mudar para milhas\",\"scale.switchToMetric\":\"Mudar para km\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"milhas\",\"scale.ft\":\"p\\u00e9s\",\"zoom.out\":\"Menos zoom\",\n\"zoom.in\":\"Mais zoom\",\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"Sair de n\\u00edvel de rua\",\"panorama.showCoverage\":\"Mostrar \\u00e1reas com N\\u00edvel de Rua\",\"panorama.hideCoverage\":\"Esconder \\u00e1reas com N\\u00edvel de Rua\",\"panorama.unavailableHere\":\"N\\u00e3o \\u00e9 poss\\u00edvel mostrar N\\u00edvel da Rua aqui.\",\"traffic.MASS_TRANSIT\":\"Transporte p\\u00fablico\",\"traffic.MISCELLANEOUS\":\"Miscel\\u00e2nea\",\"traffic.ACCIDENT\":\"Acidente\",\"traffic.OTHER_NEWS\":\"Outras not\\u00edcias\",\"traffic.PLANNED_EVENT\":\"Evento planejado\",\n\"traffic.ROAD_HAZARD\":\"Risco na estrada\",\"traffic.WEATHER\":\"Clima\",\"traffic.CONGESTION\":\"Congestionamento\",\"traffic.CONSTRUCTION\":\"Constru\\u00e7\\u00e3o\",\"traffic.DISABLED_VEHICLE\":\"Ve\\u00edculo incapacitado\",\"traffic.from\":\"Hora de in\\u00edcio:\",\"traffic.until\":\"Tempo final estimado:\",\"distance.measurement\":\"Measure distance\"});zn(\"zh-CN\",{\"layers.normal\":\"\\u5730\\u56fe\\u89c6\\u56fe\",\"layers.satellite\":\"\\u536b\\u661f\",\"layers.terrain\":\"\\u5730\\u5f62\",\"layer.transit\":\"\\u516c\\u5171\\u4ea4\\u901a\",\"layer.traffic\":\"\\u4ea4\\u901a\\u60c5\\u51b5\",\"layer.incidents\":\"\\u663e\\u793a\\u4ea4\\u901a\\u4e8b\\u4ef6\",\"layers.choose\":\"\\u9009\\u62e9\\u89c6\\u56fe\",minimap:\"Minimap\",\"scale.switchToImperial\":\"\\u5207\\u6362\\u4e3a\\u300c\\u82f1\\u91cc\\u300d\",\"scale.switchToMetric\":\"\\u5207\\u6362\\u4e3a\\u300c\\u516c\\u91cc\\u300d\",\"scale.km\":\"\\u516c\\u91cc\",\"scale.m\":\"\\u7c73\",\n\"scale.mi\":\"\\u82f1\\u91cc\",\"scale.ft\":\"\\u82f1\\u5c3a\",\"zoom.out\":\"\\u7f29\\u5c0f\",\"zoom.in\":\"\\u653e\\u5927\",\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"\\u9000\\u51fa\\u8857\\u666f\",\"panorama.showCoverage\":\"\\u663e\\u793a\\u652f\\u6301\\u8857\\u666f\\u7684\\u533a\\u57df\",\"panorama.hideCoverage\":\"\\u9690\\u85cf\\u652f\\u6301\\u8857\\u666f\\u7684\\u533a\\u57df\",\"panorama.unavailableHere\":\"\\u6b64\\u5730\\u8fd8\\u4e0d\\u652f\\u6301\\u8857\\u666f\",\"traffic.MASS_TRANSIT\":\"\\u516c\\u5171\\u4ea4\\u901a\",\"traffic.MISCELLANEOUS\":\"\\u7efc\\u5408\\u4e8b\\u4ef6\",\n\"traffic.ACCIDENT\":\"\\u4ea4\\u901a\\u610f\\u5916\",\"traffic.OTHER_NEWS\":\"\\u5176\\u4ed6\\u65b0\\u95fb\",\"traffic.PLANNED_EVENT\":\"\\u9884\\u5b9a\\u4e8b\\u4ef6\",\"traffic.ROAD_HAZARD\":\"\\u9053\\u8def\\u5371\\u9669\",\"traffic.WEATHER\":\"\\u5929\\u6c14\",\"traffic.CONGESTION\":\"\\u5835\\u585e\",\"traffic.CONSTRUCTION\":\"\\u65bd\\u5de5\",\"traffic.DISABLED_VEHICLE\":\"\\u8f66\\u8f86\\u629b\\u951a\",\"traffic.from\":\"\\u5f00\\u59cb\\u65f6\\u95f4\\uff1a\",\"traffic.until\":\"\\u9884\\u8ba1\\u7ed3\\u675f\\u65f6\\u95f4\\uff1a\",\"distance.measurement\":\"Measure distance\"});zn(\"es-ES\",{\"layers.normal\":\"Mapa\",\"layers.satellite\":\"Sat\\u00e9lite\",\"layers.terrain\":\"Terreno\",\"layer.transit\":\"Transporte p\\u00fablico\",\"layer.traffic\":\"Estado del tr\\u00e1fico\",\"layer.incidents\":\"Mostrar incidentes de tr\\u00e1fico\",\"layers.choose\":\"Elija una vista\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Cambiar a millas\",\"scale.switchToMetric\":\"Cambiar a km\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"mi\",\"scale.ft\":\"ft\",\"zoom.out\":\"Alejar\",\"zoom.in\":\"Acercar\",\"zoom.rectangle\":\"Zoom rectangle\",\n\"panorama.leave\":\"Salir de vista de calles\",\"panorama.showCoverage\":\"Mostrar \\u00e1reas con vista desde la calle\",\"panorama.hideCoverage\":\"Ocultar \\u00e1reas con vista desde la calle\",\"panorama.unavailableHere\":\"No se puede mostrar vista desde la calle aqu\\u00ed\",\"traffic.MASS_TRANSIT\":\"Transporte p\\u00fablico\",\"traffic.MISCELLANEOUS\":\"Varios\",\"traffic.ACCIDENT\":\"Accidente\",\"traffic.OTHER_NEWS\":\"M\\u00e1s noticias\",\"traffic.PLANNED_EVENT\":\"Acto programado\",\"traffic.ROAD_HAZARD\":\"Riesgo en carretera\",\n\"traffic.WEATHER\":\"Tiempo\",\"traffic.CONGESTION\":\"Atasco\",\"traffic.CONSTRUCTION\":\"Construcci\\u00f3n\",\"traffic.DISABLED_VEHICLE\":\"Veh\\u00edculo averiado\",\"traffic.from\":\"Inicio:\",\"traffic.until\":\"Finalizaci\\u00f3n estimada:\",\"distance.measurement\":\"Measure distance\"});zn(\"fr-FR\",{\"layers.normal\":\"Carte\",\"layers.satellite\":\"Satellite\",\"layers.terrain\":\"Terrain\",\"layer.transit\":\"Transports publics\",\"layer.traffic\":\"Conditions de circulation\",\"layer.incidents\":\"Afficher les incidents de circulation\",\"layers.choose\":\"Choisir la vue\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Passer en miles\",\"scale.switchToMetric\":\"Passer en km\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"mi\",\"scale.ft\":\"ft\",\"zoom.out\":\"Zoom arri\\u00e8re\",\"zoom.in\":\"Zoom avant\",\"zoom.rectangle\":\"Zoom rectangle\",\n\"panorama.leave\":\"Quitter le mode chauss\\u00e9e\",\"panorama.showCoverage\":\"Activer le mode Chauss\\u00e9e\",\"panorama.hideCoverage\":\"D\\u00e9sactiver le mode Chauss\\u00e9e\",\"panorama.unavailableHere\":\"Le mode chauss\\u00e9e n'est pas disponible ici\",\"traffic.MASS_TRANSIT\":\"Transports publics\",\"traffic.MISCELLANEOUS\":\"Divers\",\"traffic.ACCIDENT\":\"Accident\",\"traffic.OTHER_NEWS\":\"Autre\",\"traffic.PLANNED_EVENT\":\"\\u00c9v\\u00e9nement pr\\u00e9vu\",\"traffic.ROAD_HAZARD\":\"Danger routier\",\"traffic.WEATHER\":\"M\\u00e9t\\u00e9o\",\n\"traffic.CONGESTION\":\"Embouteillage\",\"traffic.CONSTRUCTION\":\"Travaux\",\"traffic.DISABLED_VEHICLE\":\"V\\u00e9hicule en panne\",\"traffic.from\":\"Date ou heure de d\\u00e9but:\",\"traffic.until\":\"Date et heure de fin estim\\u00e9es:\",\"distance.measurement\":\"Measure distance\"});zn(\"pl-PL\",{\"layers.normal\":\"Widok mapy\",\"layers.satellite\":\"Satelita\",\"layers.terrain\":\"Teren\",\"layer.transit\":\"Transport publiczny\",\"layer.traffic\":\"Warunki drogowe\",\"layer.incidents\":\"Poka\\u017c zdarzenia drogowe\",\"layers.choose\":\"Wybierz widok\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Zmie\\u0144 na mile\",\"scale.switchToMetric\":\"Zmie\\u0144 na km\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"mi\",\"scale.ft\":\"ft\",\"zoom.out\":\"Oddal\",\"zoom.in\":\"Przybli\\u017c\",\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"Wyjd\\u017a z panoramy\",\n\"panorama.showCoverage\":\"Poka\\u017c obszary trybu panoramy\",\"panorama.hideCoverage\":\"Ukryj obszary trybu panoramy\",\"panorama.unavailableHere\":\"Niemo\\u017cliwe jest pokazanie widoku panoramy w tym miejscu.\",\"traffic.MASS_TRANSIT\":\"Transport publiczny\",\"traffic.MISCELLANEOUS\":\"Inne zdarzenie\",\"traffic.ACCIDENT\":\"Wypadek\",\"traffic.OTHER_NEWS\":\"Inne wiadomo\\u015bci\",\"traffic.PLANNED_EVENT\":\"Zdarzenie planowane\",\"traffic.ROAD_HAZARD\":\"Niebezpiecze\\u0144stwo na drodze\",\"traffic.WEATHER\":\"Pogoda\",\"traffic.CONGESTION\":\"Korek\",\n\"traffic.CONSTRUCTION\":\"Budowa\",\"traffic.DISABLED_VEHICLE\":\"Uszkodzony pojazd\",\"traffic.from\":\"Data rozpocz\\u0119cia:\",\"traffic.until\":\"Przybli\\u017cona data zako\\u0144czenia:\",\"distance.measurement\":\"Measure distance\"});zn(\"de-DE\",{\"layers.normal\":\"Kartenansicht\",\"layers.satellite\":\"Satellit\",\"layers.terrain\":\"Gel\\u00e4nde\",\"layer.transit\":\"\\u00d6ffentliche Verkehrsmittel\",\"layer.traffic\":\"Verkehrslage\",\"layer.incidents\":\"Verkehrsst\\u00f6rungen anzeigen\",\"layers.choose\":\"Ansicht ausw\\u00e4hlen\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Umrechnung in Meilen\",\"scale.switchToMetric\":\"Umrechnung in Kilometer\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"mi\",\"scale.ft\":\"ft\",\"zoom.out\":\"Verkleinern\",\"zoom.in\":\"Vergr\\u00f6\\u00dfern\",\n\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"Stra\\u00dfenansicht verlassen\",\"panorama.showCoverage\":\"Gebiete mit Stra\\u00dfenszenen anzeigen\",\"panorama.hideCoverage\":\"Gebiete mit Stra\\u00dfenszenen ausblenden\",\"panorama.unavailableHere\":\"Keine Stra\\u00dfenszenen verf\\u00fcgbar\",\"traffic.MASS_TRANSIT\":\"\\u00d6ffentliche Verkehrsmittel\",\"traffic.MISCELLANEOUS\":\"Diverse\",\"traffic.ACCIDENT\":\"Unfall\",\"traffic.OTHER_NEWS\":\"Anderes Ereignis\",\"traffic.PLANNED_EVENT\":\"Geplantes Ereignis\",\"traffic.ROAD_HAZARD\":\"Verkehrshindernis\",\n\"traffic.WEATHER\":\"Wetter\",\"traffic.CONGESTION\":\"Verkehrsstau\",\"traffic.CONSTRUCTION\":\"Baustelle\",\"traffic.DISABLED_VEHICLE\":\"Liegengebliebenes Fahrzeug\",\"traffic.from\":\"Beginn:\",\"traffic.until\":\"Voraussichtliches Ende:\",\"distance.measurement\":\"Measure distance\"});zn(\"tr-TR\",{\"layers.normal\":\"Harita g\\u00f6r\\u00fcn\\u00fcm\\u00fc\",\"layers.satellite\":\"Uydu\",\"layers.terrain\":\"Arazi\",\"layer.transit\":\"Toplu ula\\u015f\\u0131m\",\"layer.traffic\":\"Trafik durumlar\\u0131\",\"layer.incidents\":\"Trafik olaylar\\u0131n\\u0131 g\\u00f6ster\",\"layers.choose\":\"G\\u00f6r\\u00fcn\\u00fcm se\\u00e7\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Mile d\\u00f6n\\u00fc\\u015ft\\u00fcr\",\"scale.switchToMetric\":\"Kilometreye d\\u00f6n\\u00fc\\u015ft\\u00fcr\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"mil\",\"scale.ft\":\"ft\",\n\"zoom.out\":\"Uzakla\\u015ft\\u0131r\",\"zoom.in\":\"Yak\\u0131nla\\u015ft\\u0131r\",\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"Sokak g\\u00f6r\\u00fcn\\u00fcm\\u00fc kapat\",\"panorama.showCoverage\":\"Sokak G\\u00f6r\\u00fcn\\u00fcm\\u00fcn\\u00fc g\\u00f6ster\",\"panorama.hideCoverage\":\"Sokak G\\u00f6r\\u00fcn\\u00fcm\\u00fcn\\u00fc sakla\",\"panorama.unavailableHere\":\"Cadde g\\u00f6r\\u00fcn\\u00fcm\\u00fc yok\",\"traffic.MASS_TRANSIT\":\"Toplu ula\\u015f\\u0131m\",\"traffic.MISCELLANEOUS\":\"\\u00c7e\\u015fitli\",\"traffic.ACCIDENT\":\"Kaza\",\n\"traffic.OTHER_NEWS\":\"Di\\u011fer haberler\",\"traffic.PLANNED_EVENT\":\"Planl\\u0131 etkinlik\",\"traffic.ROAD_HAZARD\":\"Yol tehlikesi\",\"traffic.WEATHER\":\"Hava durumu\",\"traffic.CONGESTION\":\"Yo\\u011funluk\",\"traffic.CONSTRUCTION\":\"Yol \\u00e7al\\u0131\\u015fmas\\u0131\",\"traffic.DISABLED_VEHICLE\":\"Ara\\u00e7 ar\\u0131zas\\u0131\",\"traffic.from\":\"Ba\\u015flang\\u0131\\u00e7 zaman\\u0131:\",\"traffic.until\":\"Tahmini biti\\u015f zaman\\u0131:\",\"distance.measurement\":\"Measure distance\"});zn(\"it-IT\",{\"layers.normal\":\"Vista mappa\",\"layers.satellite\":\"Satellite\",\"layers.terrain\":\"Terreno\",\"layer.transit\":\"Mezzi pubblici\",\"layer.traffic\":\"Condizioni del traffico\",\"layer.incidents\":\"Mostra incidenti stradali\",\"layers.choose\":\"Scegli vista\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Passa a miglia\",\"scale.switchToMetric\":\"Passa a km\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"mi\",\"scale.ft\":\"ft\",\"zoom.out\":\"Zoom indietro\",\"zoom.in\":\"Zoom avanti\",\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"Abbandona il livello strada\",\n\"panorama.showCoverage\":\"Mostra le aree al livello strada\",\"panorama.hideCoverage\":\"Nascondi le aree al livello strada\",\"panorama.unavailableHere\":\"Impossibile mostrare il livello strada in questo punto\",\"traffic.MASS_TRANSIT\":\"Mezzi pubblici\",\"traffic.MISCELLANEOUS\":\"Varie\",\"traffic.ACCIDENT\":\"Incidente\",\"traffic.OTHER_NEWS\":\"Altre notizie\",\"traffic.PLANNED_EVENT\":\"Evento pianificato\",\"traffic.ROAD_HAZARD\":\"Strada dissestata\",\"traffic.WEATHER\":\"Maltempo\",\"traffic.CONGESTION\":\"Ingorgo\",\"traffic.CONSTRUCTION\":\"Lavori in corso\",\n\"traffic.DISABLED_VEHICLE\":\"Veicolo in panne\",\"traffic.from\":\"Ora di inizio:\",\"traffic.until\":\"Ora di fine stimata:\",\"distance.measurement\":\"Measure distance\"});zn(\"en-US\",{\"layers.normal\":\"Map view\",\"layers.satellite\":\"Satellite\",\"layers.terrain\":\"Terrain\",\"layer.transit\":\"Public transport\",\"layer.traffic\":\"Traffic conditions\",\"layer.incidents\":\"Show traffic incidents\",\"layers.choose\":\"Choose view\",minimap:\"Minimap\",\"scale.switchToImperial\":\"Change to miles\",\"scale.switchToMetric\":\"Change to km\",\"scale.km\":\"km\",\"scale.m\":\"m\",\"scale.mi\":\"mi\",\"scale.ft\":\"ft\",\"zoom.out\":\"Zoom out\",\"zoom.in\":\"Zoom in\",\"zoom.rectangle\":\"Zoom rectangle\",\"panorama.leave\":\"Leave street level\",\n\"panorama.showCoverage\":\"Show street level areas\",\"panorama.hideCoverage\":\"Hide street level areas\",\"panorama.unavailableHere\":\"Can't show you street level here\",\"traffic.MASS_TRANSIT\":\"Public transport\",\"traffic.MISCELLANEOUS\":\"Miscellaneous\",\"traffic.ACCIDENT\":\"Accident\",\"traffic.OTHER_NEWS\":\"Other news\",\"traffic.PLANNED_EVENT\":\"Planned event\",\"traffic.ROAD_HAZARD\":\"Road hazard\",\"traffic.WEATHER\":\"Weather\",\"traffic.CONGESTION\":\"Congestion\",\"traffic.CONSTRUCTION\":\"Construction\",\"traffic.DISABLED_VEHICLE\":\"Disabled vehicle\",\n\"traffic.from\":\"Start time:\",\"traffic.until\":\"Estimated end time:\",\"distance.measurement\":\"Measure distance\"});function Bn(a,b){var c;if(!ia(a))throw new TypeError(\"string locale code required\");if(ka(b))c=b,An(a,c);else{if(-1===wn.indexOf(a))throw Error(\"Default locale '\"+a+\"' does nto exist.\");c=xn[a]}this.b=c||{};this.ir=a}r(\"H.ui.i18n.Localization\",Bn);Bn.prototype.Cv=function(){return this.ir};Bn.prototype.getLocale=Bn.prototype.Cv;Bn.prototype.uf=function(){return Object.keys(this.b)};Bn.prototype.getKeys=Bn.prototype.uf;Bn.prototype.Bq=function(a){return!(!this.b||!this.b[a])};\nBn.prototype.hasKey=Bn.prototype.Bq;Bn.prototype.translate=function(a){var b=this.b[a];if(!ia(b))throw Error(\"Translation missing for key '\"+a+\"'.\");return b};Bn.prototype.translate=Bn.prototype.translate;function Cn(a){B(a,wc,Cn,1);X.call(this,\"div\",\"H_context_menu_item\");this.nb=a;this.Mj=w(this.Mj,this);this.gd=w(this.gd,this);this.nb.addEventListener(\"update\",this.gd)}u(Cn,X);r(\"H.ui.context.Item\",Cn);Cn.prototype.Mj=function(a){var b=this.nb,c=b.callback;c&&!b.isDisabled()&&(this.dispatchEvent(\"click\"),c(a))};Cn.prototype.n=function(){var a=this,b=this.el;Fg(b,\"click\",this.Mj);b.addEventListener(\"keyup\",function(b){13==b.keyCode&&a.Mj(b)});this.gd()};Cn.prototype.renderInternal=Cn.prototype.n;\nCn.prototype.gd=function(){var a=this.el,b=this.nb;b.callback?(this.qa(\"clickable\"),a.setAttribute(\"tabindex\",\"0\")):(this.eb(\"clickable\"),a.removeAttribute(\"tabindex\"));b.isDisabled()?this.qa(\"disabled\"):this.eb(\"disabled\");b=b.getLabel();Dn.textContent=b;a.innerHTML=Dn.innerHTML.split(\"\\n\").join(\"
\")};Cn.prototype.c=function(){X.prototype.c.call(this);this.nb.removeEventListener(\"update\",this.gd)};var En=new X(\"div\",\"H_context_menu_item_separator\");function Fn(a){B(a,Array,Fn,1);bn.call(this,\"div\",\"H_context_menu\");this.Nw=a;this.b=null}u(Fn,bn);r(\"H.ui.context.Menu\",Fn);Fn.prototype.n=function(){bn.prototype.n.apply(this,arguments);this.Nw.forEach(function(a){a===xc?a=En:(a=new Cn(a),a.addEventListener(\"click\",this.ix.bind(this)));this.Q(a)},this);Fg(this.el,[\"mousedown\",\"touchstart\",\"pointerdown\",\"wheel\"],function(a){a.stopPropagation()})};Fn.prototype.renderInternal=Fn.prototype.n;\nFn.prototype.setPosition=function(a,b){if(this.b){var c=this.el,d=c.offsetWidth,e=c.offsetHeight,f=this.b,g=f.q.width,f=f.q.height;a+d>g&&a>g/2&&(a-=d);b+e>f&&b>f/2&&(b-=e);Km(c,a,b)}};Fn.prototype.setPosition=Fn.prototype.setPosition;Fn.prototype.ix=function(){this.b&&this.b.dispatchEvent(new ec(\"contextmenuclose\",this.b))};Fn.prototype.pa=function(a){this.b=a};Fn.prototype.setMap=Fn.prototype.pa;function $(a,b){var c=a.f(),d=this;yb.call(this);this.b=a;this.Xg=c.ownerDocument;this.Vd={};this.md=[];this.ub=Rm(this.Xg,\"div\",\"H_ui\");this.ax=w(function(a){this.en.put(a.target,a.target.kd)},this);this.addEventListener(\"alignmentchange\",this.ax);this.lx=w(function(){this.gt()},this);this.addEventListener(\"toggleunitsystem\",this.lx);this.fx=w(function(){var a=this.b.jb().type;if(a!==this.Zl){var a=this.Zl=a,b=this.Vd,c;for(c in b)if(b[c]instanceof Y)b[c].onMapEngineTypeChange(a);this.en.update()}},\nthis);this.b.addEventListener(\"enginechange\",this.fx);this.ub.addEventListener(\"contextmenu\",this.prevDefault,!1);this.ub.addEventListener(\"MSHoldVisual\",this.prevDefault,!1);this.b.addEventListener(\"contextmenu\",this.$w,!1,this);this.b.addEventListener(\"contextmenuclose\",this.yr,!1,this);this.Fc=null;this.Hp=-1;this.en=new ln(this.ub,this.Xg);this.Ib=Gn.METRIC;Hn(this,\"en-US\");this.Zl=this.b.jb().type;b&&In(this,b);c.appendChild(this.ub);setTimeout(function(){d.en.update()},1)}u($,F);\nr(\"H.ui.UI\",$);$.prototype.prevDefault=function(a){for(var b=a.target;b&&!/\\bH_ib_content\\b/.test(b.className);)b=b.parentNode;b||a.preventDefault()};$.prototype.f=function(){return this.ub};$.prototype.getElement=$.prototype.f;$.prototype.Ic=function(){return this.b};$.prototype.getMap=$.prototype.Ic;$.prototype.aw=function(){return this.Ib};$.prototype.getUnitSystem=$.prototype.aw;$.prototype.Jk=function(a){var b=this.Vd,c;if(a!==this.Ib)for(c in this.Ib=a,b)if(b[c]instanceof Y)b[c].onUnitSystemChange(this.Ib)};\n$.prototype.setUnitSystem=$.prototype.Jk;function Hn(a,b){var c,d;if(ia(b))c=b;else if(b instanceof Bn)c=b.ir,d=b;else throw Error(\"The locale parameter must be a string or a H.ui.i18n.Localization object.\");if(c)if(d)a.fn=d;else if(0<=wn.indexOf(c))a.fn=new Bn(c);else throw Error(\"Locale [\"+c+\"] is not supported.\");else throw Error(\"No locale was defined.\");}$.prototype.r=function(){return this.fn};$.prototype.gt=function(){this.Ib===Gn.METRIC?this.Jk(Gn.IMPERIAL):this.Jk(Gn.METRIC)};\n$.prototype.toggleUnitSystem=$.prototype.gt;$.prototype.Ei=function(a){var b=this.md.length,c=this.f(),d;0>this.md.indexOf(a)&&(a.G(this),a.pa(this.b),d=a.F(this.Xg),b=0b&&(b=0);c=(a.Rc-a.mb)*b/a.it;c=Pn(a,d?a.Rc-c:a.mb+c);a.rg!==c&&(a.Kk(c,!0),a.dispatchEvent(new ke(a.d.Ze,c,a.rg)))}\nfunction Rn(a,b){return(b.touches?b.targetTouches[0]:b)[\"page\"+(a.sg?\"Y\":\"X\")]}function Sn(a,b){var c=!1,d=a.type;-1!==d.indexOf(\"pointer\")||-1!==d.indexOf(\"touch\")?c=!0:B(a,MouseEvent)&&(c=a.which===b||a.buttons===b);return c}function Tn(a){var b=a.touches;return b&&1===b.length||B(a,MouseEvent)}m.Xj=function(a){var b=this.sg,c,d;Sn(a,this.hp)&&Tn(a)&&(c=Rn(this,a),d=a.target,d===this.Gf||d.parentElement===this.Gf?(this.Bw=c-Lm(this.Gf)[b?\"y\":\"x\"]-this.Gf.offsetWidth/2,this.ja=!0):Qn(this,c),a.preventDefault())};\nm.ak=function(){this.ja&&(this.ja=!1)};m.Zj=function(a){this.ja&&a.target===this.Wc&&(this.ja=!1)};m.ob=function(a){this.ja&&Tn(a)&&(Sn(a,this.hp)?(Qn(this,Rn(this,a)-this.Bw),a.preventDefault()):this.ja=!1)};m.d={Ze:\"change\"};\nm.n=function(a,b){var c=Rm(b,\"div\",\"H_slider_cont\"),d=Rm(b,\"div\",\"H_slider_knob_cont\"),e=Rm(b,\"div\",\"H_slider_knob\"),f=Rm(b,\"div\",\"H_slider_knob_halo\"),g=Rm(b,\"div\",\"H_slider_track\");a.appendChild(c);c.appendChild(g);c.appendChild(d);d.appendChild(e);d.appendChild(f);this.jt=g;this.Gf=d;this.Wc||(this.Wc=a.ownerDocument.body);c.style[this.sg?\"height\":\"width\"]=this.Gw;this.Kk(this.rg);this.ei()};On.prototype.renderInternal=On.prototype.n;On.prototype.c=function(){this.ng()};\nOn.prototype.T=function(a){a?this.ng():this.jt&&this.ei();return X.prototype.T.call(this,a)};On.prototype.setDisabled=On.prototype.T;var Un={\"in\":'',rx:''};function Jn(a){a=a||{};var b=a.slider;Y.call(this);this.gk=w(this.gk,this);this.$k=w(this.$k,this);this.xc=w(this.xc,this);b&&(this.Nn=w(this.Nn,this),this.Cq=b,this.jy=a.sliderSnaps);this.fl=new Ym({label:Un[\"in\"],onStateChange:this.gk});this.Vo=new Ym({label:Un.rx,onStateChange:this.gk});this.qa(\"H_zoom\");this.qa(\"H_grp\");this.setZoomSpeed(a.zoomSpeed||0.004);this.Eb(a.alignment||\"right-middle\")}u(Jn,Y);r(\"H.ui.ZoomControl\",Jn);Jn.prototype.gw=function(){return this.xt};\nJn.prototype.getZoomSpeed=Jn.prototype.gw;Jn.prototype.setZoomSpeed=function(a){this.xt=a};Jn.prototype.pa=function(a){this.map!==a&&Vn(this);Y.prototype.pa.apply(this,arguments);this.map&&this.xc()};Jn.prototype.setMap=Jn.prototype.pa;Jn.prototype.Sa=function(a){this.f().style.display=a!==If?\"none\":\"\"};Jn.prototype.onMapEngineTypeChange=Jn.prototype.Sa;Jn.prototype.c=function(){Y.prototype.c.apply(this,arguments);Vn(this)};\nJn.prototype.n=function(a,b){Y.prototype.renderInternal.call(this,a,b);Wm(this.fl,this.r().translate(\"zoom.in\"));Wm(this.Vo,this.r().translate(\"zoom.out\"))};Jn.prototype.renderInternal=Jn.prototype.n;Jn.prototype.Eb=function(a){var b=this.kd;Y.prototype.Eb.call(this,a);b!==a&&this.xc();return this};Jn.prototype.setAlignment=Jn.prototype.Eb;Jn.prototype.$k=function(a){this.kg.Kk(a.target.getZoom())};\nfunction Vn(a){a.removeChild(a.kg);a.kg=null;a.map&&(a.map.removeEventListener(\"baselayerchange\",a.xc),a.map.removeEventListener(\"mapviewchange\",a.$k));a.J&&(a.J.removeEventListener(\"minchange\",a.xc),a.J.removeEventListener(\"maxchange\",a.xc),a.J=null)}Jn.prototype.gk=function(a){a=a.target;var b=a===this.fl?1:-1,c=0',point:''};var Xn,Yn=navigator.userAgent,Zn=-1ao;var bo=Function(\"return this\")(),Dn=document.createElement(\"T\");function co(a,b,c){zf.call(this,a,{icon:eo,visibility:c});fo(this,b)}u(co,zf);function fo(a,b){a.Cw=b;a.ub&&(a.ub.textContent=b)}var eo=new rf(Rm(bo.document,\"span\",\"H_dm_label\"),{onAttach:function(a,b,c){c.ub=a;fo(c,c.Cw)},onDetach:function(a,b,c){delete c.ub}});function go(a,b){this.Ec=a;this.$a=new co(this.xy,\"\");b.push(this.$a);this.kc=new N({objects:b,data:this})}u(go,F);go.prototype.ud=!1;go.prototype.xy={lat:0,lng:0};go.prototype.Va=function(a,b){fo(this.$a,a);this.$a.setPosition(b)};go.prototype.bi=function(a){this.$a.setVisibility(a)};function ho(a,b){b&&(a.nextSibling=b,b.previousSibling=a)};function io(a,b,c,d){var e=new J;ho(a,this);ho(this,b);e.Fe(a.getPosition());e.Fe(b.getPosition());this.Kf=new Ve(e,{style:c.Jf});this.hw=new Ve(e,{style:{strokeColor:\"transparent\",lineWidth:Math.min(100,this.Kf.Na().lineWidth+2*(d||5))}});go.call(this,c,[this.Kf,this.hw]);this.Pc=this.Oc=-1;a=this.kc;a.addEventListener(\"pointermove\",this.ob,!0,this);a.addEventListener(\"pointerleave\",this.Ad,!0,this)}u(io,go);io.prototype.jh=function(){var a=this.Kf.hc();return a.Zg(0).distance(a.Zg(1))};\nfunction jo(a,b,c){var d=a.Kf.hc();d.ii(3*c,3,[b.lat,b.lng,0]);a.Kf.fa(d)}io.prototype.ob=function(a){var b=a.currentPointer;a=this.previousSibling.getPosition();var c=this.nextSibling.getPosition(),d=this.Ec.Ps,e=b.viewportX,b=b.viewportY;if(this.Oc!==e||this.Pc!==b)this.Oc=e,this.Pc=b,d.setPosition(this.Ec.Iv(a,c,{x:e,y:b})),d.setVisibility(!0)};io.prototype.Ad=function(){this.Ec.Ps.setVisibility()};io.prototype.uo=function(){this.Va(this.Ec.Tp(this.jh()),this.Kf.p().Ma())};function ko(a,b,c){c=b.lh(c||0);this.ne=new Bh(a,{icon:c,zIndex:0});this.ne.draggable=!0;go.call(this,b,[this.ne]);a=this.kc;a.addEventListener(\"dragstart\",this.Pf,!0,this);a.addEventListener(\"drag\",this.Pj,!0,this);a.addEventListener(\"dragend\",this.Oj,!0,this)}u(ko,go);m=ko.prototype;m.nf=0;m.d={Ze:\"change\"};m.jh=function(){return this.nf};m.getPosition=function(){return this.ne.getPosition()};\nfunction lo(a){var b=0;a.nextSibling&&a.previousSibling&&(a.nextSibling.ud||a.previousSibling.ud?a.nextSibling.ud&&!a.previousSibling.ud&&(b=2):b=1);b=a.Ec.lh(b);a.ne.Jd(b)}m.Pj=function(a){var b=a.currentPointer;a=b.viewportX;b=b.viewportY;if(this.Dw!==a||this.Ew!==b)this.Dw=a,this.Ew=b,this.ne.setPosition(this.Ec.map.xa(a-this.nr.x,b-this.nr.y)),this.dispatchEvent(new ec(this.d.Ze,this))};\nm.Pf=function(a){var b=a.currentPointer,c=b.viewportX,b=b.viewportY,d=this.Ec.map.ib(this.getPosition());this.ne.Do(1);this.nr={x:c-d.x,y:b-d.y};a.stopPropagation()};m.Oj=function(){this.ne.Do(0)};m.uo=function(a){this.nf=a;this.Va(this.Ec.Tp(a),this.getPosition())};function mo(a,b){this.Dl=b;this.da=a;this.Oa={previousSibling:null,nextSibling:null,ud:!0};no(this,this.Oa);this.Wj=w(this.Wj,this)}r(\"H.ui.distanceMeasurement.Model\",mo);m=mo.prototype;m.uh=function(){return this.Oa.nextSibling===this.Oa};m.bi=function(a){for(var b=this.Oa,c=b.nextSibling;c!==b;)c.bi(c.previousSibling===b?!1:a),c=c.nextSibling};\nfunction oo(a,b){var c;c=b||a.Oa.nextSibling;var d=0,e=0;if(b&&!po(a,b))throw new x(a.Wh,0,b);for(c instanceof ko?d=c.jh():c instanceof io&&(d=c.previousSibling.jh());c&&c!==a.Oa;c=c.nextSibling,e++)c.uo(d),1===e%2&&(d+=c.jh())}m.Ag=function(a){var b=this.Oa.previousSibling,c=this.uh();a=new ko(a,this.Dl,c?0:2);this.da.k(a.kc);ho(a,this.Oa);a.addEventListener(a.d.Ze,this.Wj);c?no(this,a):(qo(this,b,a),lo(b),oo(this,b));return a};\nm.insertBefore=function(a,b){var c,d,e,f;d=!1;f=1;if(b){if(!po(this,b))throw new x(this.insertBefore,1,b);if(d=b.previousSibling.ud)f=0;f=new ko(a,this.Dl,f);f.addEventListener(f.d.Ze,this.Wj);this.da.k(f.kc);d?(c=this.Oa.nextSibling,qo(this,f,c),no(this,f),d=f,lo(c)):(c=b.previousSibling,d=c.previousSibling,e=c.nextSibling,this.da.P(c.kc),qo(this,d,f),qo(this,f,e));oo(this,d)}else f=this.Ag(a);return f};m.Qa=function(){no(this,this.Oa);this.da.Qa()};\nm.Wh=function(a){var b=this.Oa,c=a.previousSibling,d=a.nextSibling,e;if(!po(this,a))throw new x(this.Wh,0,a);this.da.P(a.kc);c===b?(e=d,e!==b?(a=e.nextSibling,no(this,a),a.uo(0),lo(a),oo(this,a)):no(this,this.Oa)):d===b?(e=c,a=e.previousSibling,ho(a,b),lo(a)):c&&d&&(qo(this,c.previousSibling,d.nextSibling),this.da.Ie([d.kc,c.kc]),oo(this,c.previousSibling));e&&e!==b&&this.da.P(e.kc)};function po(a,b){for(var c=a.Oa.nextSibling,d=!1;c!==a.Oa;){if(c===b){d=!0;break}c=c.nextSibling}return d}\nfunction qo(a,b,c){b=new io(b,c,a.Dl);a.da.k(b.kc)}function no(a,b){a.Oa.nextSibling=b;b.previousSibling=a.Oa}m.Wj=function(a){a=a.target;var b=a.previousSibling,c=a.nextSibling,d=a.getPosition(),e;c.ud||(jo(c,d,!1),e=a);b.ud||(jo(b,d,!0),e=b.previousSibling);oo(this,e)};function Nn(a){a=a||{};var b=a.lineStyle;Y.call(this);this.Dg=new $m({label:Wn.btn,onStateChange:w(this.Oh,this)});this.Q(this.Dg);a.distanceFormatter&&(this.Up=a.distanceFormatter);b&&(this.fr=b);this.Eb(a.alignment||\"right-bottom\");this.mc={};this.mc[0]=a.startIcon;this.mc[2]=a.endIcon;this.mc[1]=a.stopoverIcon;this.mc[3]=a.splitIcon}u(Nn,Y);r(\"H.ui.DistanceMeasurement\",Nn);m=Nn.prototype;m.Et=22;m.fr={strokeColor:\"rgba(102,17,68,.7)\",lineWidth:6};\nm.ei=function(){var a=this.map,b,c={};this.vh||(this.qc=new L,this.re=new pg(this.qc,{pixelRatio:this.map.fe()}),this.da=b=this.qc.Qb(),b.addEventListener(\"dragstart\",this.Pf,!0,this),b.addEventListener(\"dragend\",this.fi,!0,this),b.addEventListener(\"pointerenter\",this.fi,!0,this),b.addEventListener(\"pointerleave\",this.Ad,!0,this),b.addEventListener(\"tap\",this.Rf,!0,this),this.Mk=ro(this),c.Tp=w(this.Up,this),c.lh=w(this.lh,this),c.Iv=w(this.rq,this),c.map=this.map,c.Ps=this.Mk,c.Jf=this.fr,this.nb=\nnew mo(this.da,c),this.vh=!0);this.Mk&&this.da.k(this.Mk);a.addEventListener(\"tap\",this.Er,!0,this);a.u.add(this.re)};m.ng=function(){var a=this.map;this.vh&&(a.removeEventListener(\"tap\",this.Er,!0,this),a.oo(this.re),this.nb.Qa())};\nfunction ro(a){function b(){var a=c.gc(),a={anchor:c.ra.i().scale(g).floor(),size:new uf(Zc(a.w*g),Zc(a.h*g)),hitArea:d};return new O(c.sd(),a)}var c=a.lh(3),d=new vf(wf.NONE,[]),e=c.zg.READY,f,g=c===a.fp?0.5:1,h;c.getState()===e?h=b():(h=new O(\"\",{hitArea:d}),c.addEventListener(\"statechange\",function(){c.getState()===e&&f.Jd(b())}));return f=new Bh(a.map.Ma(),{visibility:!1,icon:h})}\nm.Up=function(a){var b=\"m\",c=0;this.Ib===so?1E3<=a&&(a/=1E3,b=\"km\",c=1):(a/=0.3048,b=\"ft\",5280<=a&&(a/=5280,b=\"mi\",c=1));return a.toFixed(c)+\" \"+this.r().translate(\"scale.\"+b)};m.rq=function(a,b,c){a=this.map.ib(a);b=this.map.ib(b);c=(new G(c.x,c.y)).qq(a,b);return this.map.xa(c.x,c.y)};\nm.n=function(a,b){var c=this.Et*this.map.fe(),d=c/2;Y.prototype.renderInternal.call(this,a,b);this.Ib=Gn.METRIC;this.fp=new O(Wn.point,{anchor:{x:d,y:d},size:{w:c,h:c},hitArea:new vf(wf.CIRCLE,[d,d,d])});Wm(this.Dg,this.r().translate(\"distance.measurement\"))};Nn.prototype.renderInternal=Nn.prototype.n;m=Nn.prototype;m.lh=function(a){return this.mc[a]||this.fp};m.fi=function(){this.nb.bi(!0)};m.Pf=function(){this.nb.bi()};m.Ad=function(a){\"touch\"!==a.currentPointer.type&&this.nb.bi()};\nm.Rf=function(a){var b=a.currentPointer,c;c=a.target.ma;var d;c&&(c=c.getData())instanceof go&&(d=c);c=d;a=a.originalEvent;a=a.metaKey||a.altKey;c&&(a&&c instanceof ko?this.nb.Wh(c):c instanceof io&&(a=c.previousSibling.getPosition(),d=c.nextSibling.getPosition(),b={x:b.viewportX,y:b.viewportY},this.nb.insertBefore(this.rq(a,d,b),c.nextSibling),this.Mk.setVisibility()),this.fi())};\nm.Er=function(a){var b=a.currentPointer;a=a.target;if(a===this.map||a.Ra()!==this.qc)this.nb.Ag(this.map.xa(b.viewportX,b.viewportY)),this.fi()};m.Oh=function(a){\"down\"===a.target.getState()?this.ei():this.ng()};m.Ph=function(a){this.Ib=a;this.vh&&(oo(this.nb),this.fi())};Nn.prototype.onUnitSystemChange=Nn.prototype.Ph;Nn.prototype.Sa=function(a){a=a===If;this.Dg.setVisibility(a);a||this.Dg.g(\"up\")};Nn.prototype.onMapEngineTypeChange=Nn.prototype.Sa;\nNn.prototype.e=function(){this.ng();this.vh&&(this.qc.e(),this.re.e());Y.prototype.dispose.call(this)};Nn.prototype.dispose=Nn.prototype.e;Nn.prototype.pa=function(a){a?this.Dg.getState()===Zm.DOWN&&(this.map=a,this.ei()):(this.ng(),this.vh=!1);Y.prototype.pa.apply(this,arguments)};Nn.prototype.setMap=Nn.prototype.pa;function fn(a,b){var c=b||{};X.call(this,\"div\",\"H_ib\");this.Jr=w(function(a){this.Xa||(this.close(),a.preventDefault())},this);this.update=w(this.update,this);this.Vg=w(this.Vg,this);this.setPosition(a);this.Qe(c.content);c.onStateChange&&this.addEventListener(\"statechange\",c.onStateChange);this.g(to.OPEN)}u(fn,X);r(\"H.ui.InfoBubble\",fn);fn.prototype.b=null;fn.prototype.getPosition=function(){return this.bb};fn.prototype.setPosition=function(a){this.bb=Vd(a);this.update()};\nfn.prototype.setPosition=fn.prototype.setPosition;fn.prototype.pa=function(a){this.b=a};\nfn.prototype.n=function(a,b){this.Ji=Rm(b,\"div\",\"H_ib_body\");this.tailEl_=Rm(b,\"div\",\"H_ib_tail\",uo);this.Ui=Rm(b,\"div\",\"H_ib_close\",vo);this.od=Rm(b,\"div\",\"H_ib_content\",\" \");this.Ji.appendChild(this.Ui);this.Ji.appendChild(this.od);Um(this.Ui,\"start\",this.Jr);this.b.M.addEventListener(\"sync\",this.update);this.b.q.addEventListener(\"sync\",this.update);this.b.addEventListener(\"enginechange\",this.Vg);a.appendChild(this.Ji);a.appendChild(this.tailEl_);this.Qe(this.Yi)};\nfn.prototype.renderInternal=fn.prototype.n;fn.prototype.Vg=function(){this.Op||(this.Op=setTimeout(this.update,0))};\nfn.prototype.update=function(){var a=this.el,b=this.b,c,d,e;this.Op=0;b&&this.f()&&this.getState()===to.OPEN&&(d=(c=b.ib(this.bb))&&c.x,e=c&&c.y,c=b.q.width,b.jb().type!==If?a.style.display=\"none\":d<-c||d>2*c||e<-c||e>2*c?a.style.display=\"none\":(a.style.display=\"\",Xn?(a.style.left=d-c+\"px\",a.style.top=e+\"px\"):Km(a,d,e),a=this.od.offsetWidth,d-=a,40>d&&(d=Math.max(0,Math.min((a||this.od.offsetWidth)-this.tailEl_.offsetWidth,-d)),this.Ji.style.right=d?-d+\"px\":\"0\")))};var to={OPEN:\"open\",CLOSED:\"closed\"};\nfn.State=to;fn.prototype.j=to.OPEN;fn.prototype.getState=function(){return this.j};fn.prototype.getState=fn.prototype.getState;fn.prototype.g=function(a){a!==this.j&&(this.j=a,this.dispatchEvent(\"statechange\"));if(a=this.f())this.j===to.OPEN?(a.style.display=\"block\",this.Vg()):a.style.display=\"none\"};fn.prototype.setState=fn.prototype.g;fn.prototype.close=function(){this.g(to.CLOSED)};fn.prototype.close=fn.prototype.close;fn.prototype.open=function(){this.g(to.OPEN)};fn.prototype.open=fn.prototype.open;\nfn.prototype.mv=function(){return this.od};fn.prototype.getContentElement=fn.prototype.mv;\nfn.prototype.Qe=function(a){if(a)if(\"string\"===typeof a||\"number\"===typeof a.nodeType&&\"string\"===typeof a.nodeName)this.Yi=a;else throw Error(\"InfoBubble content must be a string or HTML node.\");else this.Yi=void 0;this.f()&&(this.Yi?(this.od.innerHTML=\"\",\"string\"===typeof this.Yi?this.od.innerHTML=a:\"number\"===typeof a.nodeType&&\"string\"===typeof a.nodeName&&this.od.appendChild(a)):this.od.innerHTML=\" \",this.Vg())};fn.prototype.setContent=fn.prototype.Qe;\nfn.prototype.c=function(){this.close();this.Qe(null);this.Ui&&Vm(this.Ui,\"end\",this.Jr);this.b&&(this.b.M.removeEventListener(\"sync\",this.update),this.b.q.removeEventListener(\"sync\",this.update));X.prototype.c.call(this)};\nvar uo='',vo='';function wo(){this.j=xo.CLOSED;bn.call(this,\"div\",\"H_overlay\")}u(wo,bn);r(\"H.ui.base.OverlayPanel\",wo);wo.prototype.g=function(a,b){if(a!==this.j||b)this.j=a,a===xo.OPEN?this.qa(\"H_open\"):this.eb(\"H_open\");return this};wo.prototype.setState=wo.prototype.g;wo.prototype.getState=function(){return this.j};wo.prototype.getState=wo.prototype.getState;\nwo.prototype.as=function(a){var b=a.kd;a=a.f();var c=this.f(),d=c.style,e;this.eb(\"H_top\");this.eb(\"H_middle\");this.eb(\"H_bottom\");this.eb(\"H_left\");this.eb(\"H_center\");this.eb(\"H_right\");d.bottom=d.top=d.left=d.right=d.margin=\"\";/top/g.test(b)?(this.qa(\"H_top\"),d.top=\"0\",d.margin=\"0 1.2em\",e=-1):/bottom/g.test(b)?(this.qa(\"H_bottom\"),d.bottom=\"0\",d.margin=\"0 1.2em\",e=1):(this.qa(\"H_middle\"),d.top=\"50%\",d.margin=\"0 1.2em\",d.marginTop=-Math.round(0.5*c.offsetHeight)+\n\"px\",e=0);/left/g.test(b)?(this.qa(\"H_left\"),d.left=a.offsetWidth+\"px\",d.marginLeft=\"1.2em\"):/right/g.test(b)?(this.qa(\"H_right\"),d.right=a.offsetWidth+\"px\",d.marginRight=\"1.2em\"):(this.qa(\"H_center\"),d.left=\"50%\",0>e?(d.top=a.offsetHeight+\"px\",d.marginTop=\"1.2em\"):0a.vl)&&a.oc.close()})}function Bo(a){var b=a.Ld,c=a.kb.getData(),d;b&&(d=b.Ic())&&c?0<=d.u.indexOf(c)?a.kb.g(\"down\",!0):(a.kb.g(\"up\",!0),a.oc&&a.oc.close()):a.kb.g(\"up\",!0)}Ao.prototype.Hn=function(){var a=this.Ld.Ic(),b=this.kb.getData();a&&b&&(this.kb.getState()===Zm.DOWN?a.nl(b):a.oo(b))};\nAo.prototype.Sj=function(a){var b,c;a.target&&(b=a.target.getData())&&0===a.currentPointer.button&&(this.oc||(this.oc=new fn(a.target.getPosition()),this.Ld.Ei(this.oc)),this.oc.setPosition(a.target.getPosition()),c=b.TRAFFIC_ITEM_TYPE_DESC.replace(\" \",\"_\"),this.Ld.r().Bq(\"traffic.\"+c)&&(c=this.Ld.r().translate(\"traffic.\"+c)),this.oc.Qe('

{{title}}

{{desc}}

{{traffic.from}}{{from}}
{{traffic.until}}{{until}}

'.replace(\"{{title}}\",\nc).replace(\"{{desc}}\",b.TRAFFIC_ITEM_DESCRIPTION[0].value).replace(\"{{traffic.from}}\",this.Ld.r().translate(\"traffic.from\")).replace(\"{{traffic.until}}\",this.Ld.r().translate(\"traffic.until\")).replace(\"{{from}}\",b.START_TIME).replace(\"{{until}}\",b.END_TIME)),this.oc.open());a.stopPropagation()};function Ln(a){a=a||{};Y.call(this);this.Qn=w(this.Qn,this);this.Rn=w(this.Rn,this);this.Nh=w(this.Nh,this);this.Vb=w(this.Vb,this);this.Bl=w(this.Bl,this);this.xd=new wo;this.zb=new yo({onActiveButtonChange:this.Nh});this.Hb=new $m({onStateChange:this.Rn});this.Gb=new $m({onStateChange:this.Qn});this.ri=new Ao;this.ri.Dk(a.incidents);this.oe=new $m({label:'',\nonStateChange:w(function(a){a.target.getState()===Zm.DOWN?(this.xd.g(xo.OPEN),this.xd.as(this)):this.xd.g(xo.CLOSED)},this)});this.xd.Q(this.zb);this.xd.Q(this.Gb);this.xd.Q(this.Hb);this.xd.Q(this.ri.kb);this.Q(this.oe);this.Q(this.xd);a.entries&&a.entries.forEach(function(a){this.zb.ml(new $m({label:a.name,data:a.mapType}))},this);this.Eb(a.alignment||\"bottom-right\")}u(Ln,Y);r(\"H.ui.MapSettingsControl\",Ln);\nLn.prototype.n=function(a,b){var c=this.Ic().u;Y.prototype.renderInternal.call(this,a,b);this.zb.Ik(this.r().translate(\"layers.choose\"));this.zb.gh().forEach(function(a){var b=a.$a;\"layers.\"===b.substr(0,7)&&a.Va(this.r().translate(b))},this);this.Hb.Va(this.r().translate(\"layer.transit\"));this.Gb.Va(this.r().translate(\"layer.traffic\"));Wm(this.oe,this.r().translate(\"layers.choose\"));Co(this.ri,this.Kc());c.addEventListener(\"add\",this.Vb);c.addEventListener(\"remove\",this.Vb);c.addEventListener(\"set\",\nthis.Vb);this.Ic().addEventListener(\"tap\",this.Bl);Do(this)};Ln.prototype.renderInternal=Ln.prototype.n;m=Ln.prototype;m.Nh=function(){var a;a:{a=this.zb.gh();for(var b=a.length;b--;)if(a[b].getState()===Zm.DOWN){a=a[b];break a}a=null}(a=a?a.getData():null)?(b=a.map,this.Hb.T(!a.transit),a.transit&&(this.Hb.Xa||this.Hb.getState()!==Zm.DOWN||(b=a.transit)),this.Gb.T(!a.traffic),a.traffic&&(this.Gb.Xa||this.Gb.getState()!==Zm.DOWN||(b=a.traffic)),b&&this.map&&this.map.Id(b)):(this.Hb.T(!0),this.Gb.T(!0))};\nm.Qn=function(){this.Gb.getState()===Zm.DOWN&&this.Hb.g(Zm.UP,!0);this.Nh()};m.Rn=function(){this.Hb.getState()===Zm.DOWN&&this.Gb.g(Zm.UP,!0);this.Nh()};m.Vb=function(a){0===a.idx?Do(this,a):Bo(this.ri)};\nfunction Do(a,b){var c=null,d=b?b.added:a.map.J;a.zb.gh().forEach(function(a){var b=a.getData();b.map===d?(this.zb.eg(a,!0),this.Hb.g(Zm.UP,!0),this.Gb.g(Zm.UP,!0),c=b):b.transit&&b.transit===d?(this.zb.eg(a,!0),this.Hb.g(Zm.DOWN,!0),this.Gb.g(Zm.UP,!0),c=b):b.traffic&&b.traffic===d&&(this.zb.eg(a,!0),this.Hb.g(Zm.UP,!0),this.Gb.g(Zm.DOWN,!0),c=b)},a);c?(a.Hb.T(!c.transit),a.Gb.T(!c.traffic)):a.zb.eg(null,!0)}m.Sa=function(a){this.f().style.display=a!==If?\"none\":\"\"};\nLn.prototype.onMapEngineTypeChange=Ln.prototype.Sa;Ln.prototype.Bl=function(){this.oe.g(Zm.UP)};Ln.prototype.Dk=function(a){this.ri.Dk(a)};Ln.prototype.setIncidentsLayer=Ln.prototype.Dk;function Kn(a){a=a||{};Y.call(this);a.adjustZoom&&(this.Gi=a.adjustZoom);this.oe=new $m({label:'',onStateChange:w(this.Oh,this)});this.Q(this.oe);this.Eb(a.alignment||\"bottom-right\")}u(Kn,Y);r(\"H.ui.ZoomRectangle\",Kn);m=Kn.prototype;m.Gi=function(a){return Math.floor(a)};\nm.Oh=function(a){var b=this.map,c=b.q.element;a.target.getState()===Zm.DOWN?(b.addEventListener(\"dragstart\",this.Pf,!0,this),b.addEventListener(\"drag\",this.Pj,!0,this),b.addEventListener(\"dragend\",this.Oj,!0,this),a=c.ownerDocument.createElement(\"div\"),b=a.style,b.position=\"absolute\",b.display=\"none\",b.border=\"2px solid #000\",b.zIndex=1E5,b.backgroundColor=\"rgba(204,204,204,0.5)\",c.appendChild(a),this.yj=a):(b.removeEventListener(\"dragstart\",this.Pf,!0,this),b.removeEventListener(\"drag\",this.Pj,!0,\nthis),b.removeEventListener(\"dragend\",this.Oj,!0,this),c.removeChild(this.yj))};m.Pf=function(a){var b=this.yj.style,c=a.currentPointer,d=c.viewportX,c=c.viewportY;a.target===this.map&&(a.stopPropagation(),b.width=\"0px\",b.height=\"0px\",b.top=c+\"px\",b.left=d+\"px\",b.display=\"block\",this.Rs=c,this.Qs=d)};\nm.Pj=function(a){var b=a.currentPointer,c=b.viewportX,d=b.viewportY,b=this.Qs,e=this.Rs,f=this.yj.style;a.target===this.map&&(a=c-b,c=d-e,f.left=b+(0>a?a:0)+\"px\",f.top=e+(0>c?c:0)+\"px\",f.width=Math.abs(a)+\"px\",f.height=Math.abs(c)+\"px\")};m.Oj=function(a){var b=this.map,c=a.currentPointer;a.target===this.map&&(this.yj.style.display=\"none\",a=b.nm(ae([b.xa(this.Qs,this.Rs),b.xa(c.viewportX,c.viewportY)])),a.animate=!0,a.zoom=this.Gi(a.zoom,this.map),b.M.$c(a))};\nm.n=function(a,b){Y.prototype.renderInternal.call(this,a,b);Wm(this.oe,this.r().translate(\"zoom.rectangle\"))};Kn.prototype.renderInternal=Kn.prototype.n;Kn.prototype.Sa=function(a){a=a!==If;this.f().style.display=a?\"none\":\"\";a&&this.oe.g(\"up\")};Kn.prototype.onMapEngineTypeChange=Kn.prototype.Sa;function Eo(a,b){var c=b||{};if(!(a&&a instanceof hi))throw Error(\"Base layer is mandatory for overview UI element\");Y.call(this);this.ok=new $m({label:'',onStateChange:w(this.Oh,this)});this.Q(this.ok);this.ve=new Fo(a,c.zoomDelta,c.scaleX,c.scaleY);this.Eb(c.alignment||\"right-bottom\");this.Q(this.ve)}u(Eo,Y);\nr(\"H.ui.Overview\",Eo);Eo.prototype.Id=function(a){this.ve.Id(a);return this};Eo.prototype.setBaseLayer=Eo.prototype.Id;Eo.prototype.Oh=function(a){a.target.getState()===Zm.DOWN?this.ve.setup():Go(this.ve)};Eo.prototype.n=function(a,b){Y.prototype.renderInternal.call(this,a,b);this.ok.el.style[\"float\"]=this.kd.match(\"right\")?\"right\":\"left\";this.ve.pa(this.map);Wm(this.ok,this.r().translate(\"minimap\"))};Eo.prototype.renderInternal=Eo.prototype.n;\nEo.prototype.Sa=function(a){this.f().style.display=a!==If?\"none\":\"\";this.ok.getState()===Zm.DOWN&&this.ve.setup()};Eo.prototype.onMapEngineTypeChange=Eo.prototype.Sa;Eo.prototype.c=function(){this.ve.e();X.prototype.c.call(this)};function Fo(a,b,c,d){this.J=a;this.sp=\"H_overview_active\";\"number\"===typeof b&&(this.vt=b);\"number\"===typeof c&&(this.Ur=c);\"number\"===typeof d&&(this.Vr=d);bn.call(this,\"div\",\"H_overview\")}u(Fo,Y);Fo.prototype.Id=function(a){this.Qh.Id(a)};\nFo.prototype.n=function(a,b){var c=Rm(b,\"div\",\"H_overview_map\");Sm(a,c);this.lr=c};Fo.prototype.renderInternal=Fo.prototype.n;m=Fo.prototype;m.vt=3;m.Ur=5;m.Vr=5;m.pa=function(a){this.b=a;this.Qh=new R(this.lr,this.J,{pixelRatio:this.b.fe()});this.Qh.nc.f().style.display=\"none\";this.tx=this.Qh.M;this.Jw=this.b.M};m.setup=function(){Ho(this,!0);this.Jo();this.qa(this.sp);this.b.addEventListener(\"mapviewchange\",this.Jo,!1,this)};\nfunction Go(a){Ho(a);a.eb(a.sp);a.b.removeEventListener(\"mapviewchange\",a.Jo,!1,a)}m.Jo=function(a){a&&a.modifiers&a.SIZE&&Ho(this,!0);a=this.Jw.Gc();a.zoom-=this.vt;this.tx.$c(a)};function Ho(a,b){var c=a.b.q.element,d=a.el.style,e=c.offsetWidth/a.Ur/10,c=c.offsetHeight/a.Vr/10,f=a.lr.style;b?(d.width=e+\"em\",d.height=c+\"em\",f.width=e-1+\"em\",f.height=c-1+\"em\"):d.width=d.height=\"0em\";a.Qh.q.resize()}m.e=function(){Go(this);this.Qh.e()};function Mn(a){a=a||{};Y.call(this);this.qa(\"H_scalebar\");this.Eb(a.alignment||\"bottom-right\");this.maxWidth=150;this.update=w(this.update,this);this.$m=this.Zm=this.to=this.so=this.Pk=null}u(Mn,Y);r(\"H.ui.ScaleBar\",Mn);\nMn.prototype.n=function(a,b){Y.prototype.renderInternal.call(this,a,b);var c;a.innerHTML='';a.style.direction=\n\"ltr\";this.Pk=a.firstChild;c=this.Pk.childNodes;this.so=c[0];this.to=c[1];this.Zm=c[2];this.$m=c[3];this.Ib=Gn.METRIC;this.Eu=w(function(a){this.Xa||(this.dispatchEvent(\"toggleunitsystem\"),a.preventDefault())},this);this.dk=w(function(a){a.preventDefault()},this);Um(a,\"start\",this.dk);Um(a,\"end\",this.Eu);Wm(this,this.r().translate(\"scale.switchToImperial\"));this.update()};Mn.prototype.renderInternal=Mn.prototype.n;\nMn.prototype.pa=function(a){this.map&&this.map.removeEventListener(\"mapviewchangeend\",this.update);a&&a.addEventListener(\"mapviewchangeend\",this.update);Y.prototype.pa.apply(this,arguments)};Mn.prototype.setMap=Mn.prototype.pa;\nMn.prototype.ta=function(a,b,c){var d=document.createElement(\"canvas\"),e=d.getContext(\"2d\"),f=Hc(this.Pk,document,!1),g;g=parseFloat(f.getAttribute(\"width\"));var h=parseFloat(f.getAttribute(\"height\")),k=g*a;a*=h;f.setAttribute(\"viewBox\",\"0 0 \"+g+\" \"+h);f.setAttribute(\"width\",k);f.setAttribute(\"height\",a);g=document.createElement(\"div\");g.appendChild(f);f=Cc(g.innerHTML);d.width=k;d.height=a;Lf.load(f,function(a){e.drawImage(a,0,0);b(d)},c)};Mn.prototype.capture=Mn.prototype.ta;\nMn.prototype.Ph=function(a){this.Ib=a;Wm(this,\"imperial\"===a?this.r().translate(\"scale.switchToMetric\"):this.r().translate(\"scale.switchToImperial\"));this.update()};Mn.prototype.onUnitSystemChange=Mn.prototype.Ph;Mn.prototype.Sa=function(a){this.f().style.display=a!==If?\"none\":\"\"};Mn.prototype.onMapEngineTypeChange=Mn.prototype.Sa;\nMn.prototype.update=function(){if(this.f()&&(!this.map||this.map.jb().type===If)){var a,b=0,c=this.map,d,e;c&&(a=Math.round(0.5*c.q.width),d=Math.round(0.5*c.q.height),e=c.xa(a,d))&&(b=Vd(e),c=Vd(c.xa(a+1,d)),b=100*b.distance(c));a=b;c=this.maxWidth;this.Ib===Gn.IMPERIAL?aa?(b=a,d=this.r().translate(\"scale.m\")):(b=a/1E3,d=this.r().translate(\"scale.km\"));a=Math.pow(10,Math.floor(Math.log(b)/Math.LN10));b=a/\nb*100;bc&&(a/=2,b/=2);b=Math.round(b);this.Pk.setAttribute(\"width\",b);this.$m.textContent=this.Zm.textContent=a+\" \"+d;this.$m.setAttribute(\"x\",b-8);this.Zm.setAttribute(\"x\",b-8);this.so.points.getItem(2).x=this.to.points.getItem(2).x=this.so.points.getItem(3).x=this.to.points.getItem(3).x=b-2}};var Io=1609.344,Jo=0.3048006;r(\"H.ui.buildInfo\",function(){return Hi(\"mapsjs-ui\",\"0.12.4\",\"51280b4\")});var so=\"metric\",Gn={IMPERIAL:\"imperial\",METRIC:so};r(\"H.ui.UnitSystem\",Gn);\n");