var LayoutManager,Players;(function(n){if(typeof define=="function"&&define.amd)define([],n);else if(typeof exports=="object"){var t=require("fs");module.exports=n();module.exports.css=function(){return t.readFileSync(__dirname+"/nouislider.min.css","utf8")}}else window.noUiSlider=n()})(function(){"use strict";function y(n){return n.filter(function(n){return this[n]?!1:this[n]=!0},{})}function p(n,t){return Math.round(n/t)*t}function l(n){var i=n.getBoundingClientRect(),t=n.ownerDocument,r=t.defaultView||t.parentWindow,u=t.documentElement,f=r.pageXOffset;return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(f=0),{top:i.top+r.pageYOffset-u.clientTop,left:i.left+f-u.clientLeft}}function u(n){return typeof n=="number"&&!isNaN(n)&&isFinite(n)}function w(n){var t=Math.pow(10,7);return Number((Math.round(n*t)/t).toFixed(7))}function a(n,i,r){t(n,i);setTimeout(function(){f(n,i)},r)}function o(n){return Math.max(Math.min(n,100),0)}function s(n){return Array.isArray(n)?n:[n]}function b(n){var t=n.split(".");return t.length>1?t[1].length:0}function t(n,t){n.classList?n.classList.add(t):n.className+=" "+t}function f(n,t){n.classList?n.classList.remove(t):n.className=n.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function k(n,t){n.classList?n.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(n.className)}function h(n,t){return 100/(t-n)}function c(n,t){return t*100/(n[1]-n[0])}function d(n,t){return c(n,n[0]<0?t+Math.abs(n[0]):t-n[0])}function g(n,t){return t*(n[1]-n[0])/100+n[0]}function e(n,t){for(var i=1;n>=t[i];)i+=1;return i}function nt(n,t,i){if(i>=n.slice(-1)[0])return 100;var r=e(i,n),f,o,u,s;return f=n[r-1],o=n[r],u=t[r-1],s=t[r],u+d([f,o],i)/h(u,s)}function tt(n,t,i){if(i>=100)return n.slice(-1)[0];var r=e(i,t),f,o,u,s;return f=n[r-1],o=n[r],u=t[r-1],s=t[r],g([f,o],(i-u)*h(u,s))}function it(n,t,i,r){if(r===100)return r;var u=e(r,n),f,o;return i?(f=n[u-1],o=n[u],r-f>(o-f)/2)?o:f:t[u-1]?n[u-1]+p(r-n[u-1],t[u-1]):r}function rt(n,t,i){var r;if(typeof t=="number"&&(t=[t]),Object.prototype.toString.call(t)!=="[object Array]")throw new Error("noUiSlider: 'range' contains invalid value.");if(r=n==="min"?0:n==="max"?100:parseFloat(n),!u(r)||!u(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");i.xPct.push(r);i.xVal.push(t[0]);r?i.xSteps.push(isNaN(t[1])?!1:t[1]):isNaN(t[1])||(i.xSteps[0]=t[1])}function ut(n,t,i){if(!t)return!0;i.xSteps[n]=c([i.xVal[n],i.xVal[n+1]],t)/h(i.xPct[n],i.xPct[n+1])}function i(n,t,i,r){this.xPct=[];this.xVal=[];this.xSteps=[r||!1];this.xNumSteps=[!1];this.snap=t;this.direction=i;var u,f=[];for(u in n)n.hasOwnProperty(u)&&f.push([n[u],u]);for(f.sort(function(n,t){return n[0]-t[0]}),u=0;u<f.length;u++)rt(f[u][1],f[u][0],this);for(this.xNumSteps=this.xSteps.slice(0),u=0;u<this.xNumSteps.length;u++)ut(u,this.xNumSteps[u],this)}function ft(n,t){if(!u(t))throw new Error("noUiSlider: 'step' is not numeric.");n.singleStep=t}function et(n,t){if(typeof t!="object"||Array.isArray(t))throw new Error("noUiSlider: 'range' is not an object.");if(t.min===undefined||t.max===undefined)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");n.spectrum=new i(t,n.snap,n.dir,n.singleStep)}function ot(n,t){if(t=s(t),!Array.isArray(t)||!t.length||t.length>2)throw new Error("noUiSlider: 'start' option is incorrect.");n.handles=t.length;n.start=t}function st(n,t){if(n.snap=t,typeof t!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");}function ht(n,t){if(n.animate=t,typeof t!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");}function ct(n,t){if(t==="lower"&&n.handles===1)n.connect=1;else if(t==="upper"&&n.handles===1)n.connect=2;else if(t===!0&&n.handles===2)n.connect=3;else if(t===!1)n.connect=0;else throw new Error("noUiSlider: 'connect' option doesn't match handle count.");}function lt(n,t){switch(t){case"horizontal":n.ort=0;break;case"vertical":n.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.");}}function at(n,t){if(!u(t))throw new Error("noUiSlider: 'margin' option must be numeric.");if(n.margin=n.spectrum.getMargin(t),!n.margin)throw new Error("noUiSlider: 'margin' option is only supported on linear sliders.");}function vt(n,t){if(!u(t))throw new Error("noUiSlider: 'limit' option must be numeric.");if(n.limit=n.spectrum.getMargin(t),!n.limit)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders.");}function yt(n,t){switch(t){case"ltr":n.dir=0;break;case"rtl":n.dir=1;n.connect=[0,2,1,3][n.connect];break;default:throw new Error("noUiSlider: 'direction' option was not recognized.");}}function pt(n,t){if(typeof t!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var r=t.indexOf("tap")>=0,u=t.indexOf("drag")>=0,f=t.indexOf("fixed")>=0,i=t.indexOf("snap")>=0;n.events={tap:r||i,drag:u,fixed:f,snap:i}}function wt(n,t){if(n.format=t,typeof t.to=="function"&&typeof t.from=="function")return!0;throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");}function bt(n){var t={margin:0,limit:0,animate:!0,format:v},i,r;return i={step:{r:!1,t:ft},start:{r:!0,t:ot},connect:{r:!0,t:ct},direction:{r:!0,t:yt},snap:{r:!1,t:st},animate:{r:!1,t:ht},range:{r:!0,t:et},orientation:{r:!1,t:lt},margin:{r:!1,t:at},limit:{r:!1,t:vt},behaviour:{r:!0,t:pt},format:{r:!1,t:wt}},r={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal"},Object.keys(r).forEach(function(t){n[t]===undefined&&(n[t]=r[t])}),Object.keys(i).forEach(function(r){var u=i[r];if(n[r]===undefined){if(u.r)throw new Error("noUiSlider: '"+r+"' is required.");return!0}u.t(t,n[r])}),t.pips=n.pips,t.style=t.ort?"top":"left",t}function kt(n,t,i){var r=n+t[0],u=n+t[1];return i?(r<0&&(u+=Math.abs(r)),u>100&&(r-=u-100),[o(r),o(u)]):[r,u]}function dt(n){n.preventDefault();var e=n.type.indexOf("touch")===0,f=n.type.indexOf("mouse")===0,t=n.type.indexOf("pointer")===0,i,r,u=n;return n.type.indexOf("MSPointer")===0&&(t=!0),e&&(i=n.changedTouches[0].pageX,r=n.changedTouches[0].pageY),(f||t)&&(i=n.clientX+window.pageXOffset,r=n.clientY+window.pageYOffset),u.points=[i,r],u.cursor=f||t,u}function gt(i,r){var u=document.createElement("div"),f=document.createElement("div"),e=["-lower","-upper"];return i&&e.reverse(),t(f,n[3]),t(f,n[3]+e[r]),t(u,n[2]),u.appendChild(f),u}function ni(i,r,u){switch(i){case 1:t(r,n[7]);t(u[0],n[6]);break;case 3:t(u[1],n[6]);case 2:t(u[0],n[7]);case 0:t(r,n[6])}}function ti(n,t,i){for(var u=[],r=0;r<n;r+=1)u.push(i.appendChild(gt(t,r)));return u}function ii(i,r,u){t(u,n[0]);t(u,n[8+i]);t(u,n[4+r]);var f=document.createElement("div");return t(f,n[1]),u.appendChild(f),f}function ri(i,u){function et(n,t,i){if(n==="range"||n==="steps")return h.xVal;if(n==="count"){var u=100/(t-1),r,f=0;for(t=[];(r=f++*u)<=100;)t.push(r);n="positions"}return n==="positions"?t.map(function(n){return h.fromStepping(i?h.getStep(n):n)}):n==="values"?i?t.map(function(n){return h.fromStepping(h.getStep(h.toStepping(n)))}):t:void 0}function ot(n,t,i){var c=h.direction,r={},f=h.xVal[0],e=h.xVal[h.xVal.length-1],o=!1,s=!1,u=0;return h.direction=0,i=y(i.slice().sort(function(n,t){return n-t})),i[0]!==f&&(i.unshift(f),o=!0),i[i.length-1]!==e&&(i.push(e),s=!0),i.forEach(function(f,e){var l,c,a,p=f,v=i[e+1],y,w,d,b,g,k,nt;if(t==="steps"&&(l=h.xNumSteps[e]),l||(l=v-p),p!==!1&&v!==undefined)for(c=p;c<=v;c+=l){for(y=h.toStepping(c),w=y-u,g=w/n,k=Math.round(g),nt=w/k,a=1;a<=k;a+=1)d=u+a*nt,r[d.toFixed(5)]=["x",0];b=i.indexOf(c)>-1?1:t==="steps"?2:0;!e&&o&&(b=0);c===v&&s||(r[y.toFixed(5)]=[c,b]);u=y}}),h.direction=c,r}function st(n,i,r){function s(n){return["-normal","-large","-sub"][n]}function o(n,t,i){return'class="'+t+" "+t+"-"+e+" "+t+s(i[1])+'" style="'+u.style+": "+n+'%"'}function c(n,t){h.direction&&(n=100-n);t[1]=t[1]&&i?i(t[0],t[1]):t[1];f.innerHTML+="<div "+o(n,"noUi-marker",t)+"><\/div>";t[1]&&(f.innerHTML+="<div "+o(n,"noUi-value",t)+">"+r.to(t[0])+"<\/div>")}var e=["horizontal","vertical"][u.ort],f=document.createElement("div");return t(f,"noUi-pips"),t(f,"noUi-pips-"+e),Object.keys(n).forEach(function(t){c(t,n[t])}),f}function ht(n){var t=n.mode,i=n.density||1,r=n.filter||!1,u=n.values||!1,f=n.stepped||!1,e=et(t,u,f),o=ot(i,t,e),s=n.format||{to:Math.round};return c.appendChild(st(o,r,s))}function ut(){return w["offset"+["Width","Height"][u.ort]]}function v(n,t){t!==undefined&&(t=Math.abs(t-u.dir));Object.keys(d).forEach(function(i){var r=i.split(".")[0];n===r&&d[i].forEach(function(n){n(s(ft()),t,it(Array.prototype.slice.call(nt)))})})}function it(n){return n.length===1?n[0]:u.dir?n.reverse():n}function g(t,i,f,e){var o=function(i){if(c.hasAttribute("disabled")||k(c,n[14])||(i=dt(i),t===r.start&&i.buttons!==undefined&&i.buttons>1))return!1;i.calcPoint=i.points[u.ort];f(i,e)},s=[];return t.split(" ").forEach(function(n){i.addEventListener(n,o,!1);s.push([n,o])}),s}function ct(n,t){var i=t.handles||e,f,r=!1,s=(n.calcPoint-t.start)*100/ut(),o=i[0]===e[0]?0:1,u;if(f=kt(s,t.positions,i.length>1),r=tt(i[0],f[o],i.length===1),i.length>1){if(r=tt(i[1],f[o?0:1],!1)||r,r)for(u=0;u<t.handles.length;u++)v("slide",u)}else r&&v("slide",o)}function lt(t,i){var u=w.getElementsByClassName(n[15]),o=i.handles[0]===e[0]?0:1,r;u.length&&f(u[0],n[15]);t.cursor&&(document.body.style.cursor="",document.body.removeEventListener("selectstart",document.body.noUiListener));r=document.documentElement;r.noUiListeners.forEach(function(n){r.removeEventListener(n[0],n[1])});f(c,n[12]);v("set",o);v("change",o)}function rt(i,u){var f=document.documentElement,s,h,o;if(u.handles.length===1&&(t(u.handles[0].children[0],n[15]),u.handles[0].hasAttribute("disabled")))return!1;i.stopPropagation();s=g(r.move,f,ct,{start:i.calcPoint,handles:u.handles,positions:[p[0],p[e.length-1]]});h=g(r.end,f,lt,{handles:u.handles});f.noUiListeners=s.concat(h);i.cursor&&(document.body.style.cursor=getComputedStyle(i.target).cursor,e.length>1&&t(c,n[12]),o=function(){return!1},document.body.noUiListener=o,document.body.addEventListener("selectstart",o,!1))}function at(t){var r=t.calcPoint,f=0,i,o;if(t.stopPropagation(),e.forEach(function(n){f+=l(n)[u.style]}),i=r<f/2||e.length===1?0:1,r-=l(w)[u.style],o=r*100/ut(),u.events.snap||a(c,n[14],300),e[i].hasAttribute("disabled"))return!1;tt(e[i],o);v("slide",i);v("set",i);v("change",i);u.events.snap&&rt(t,{handles:[e[f]]})}function vt(i){var u,f;if(!i.fixed)for(u=0;u<e.length;u+=1)g(r.start,e[u].children[0],rt,{handles:[e[u]]});i.tap&&g(r.start,w,at,{handles:e});i.drag&&(f=[w.getElementsByClassName(n[7])[0]],t(f[0],n[10]),i.fixed&&f.push(e[f[0]===e[0]?1:0].children[0]),f.forEach(function(n){g(r.start,n,rt,{handles:e})}))}function tt(i,r,s){var c=i!==e[0]?1:0,l=p[0]+u.margin,a=p[1]-u.margin,y=p[0]+u.limit,w=p[1]-u.limit;return(e.length>1&&(r=c?Math.max(r,l):Math.min(r,a)),s!==!1&&u.limit&&e.length>1&&(r=c?Math.min(r,y):Math.max(r,w)),r=h.getStep(r),r=o(parseFloat(r.toFixed(7))),r===p[c])?!1:(i.style[u.style]=r+"%",i.previousSibling||(f(i,n[17]),r>50&&t(i,n[17])),p[c]=r,nt[c]=h.fromStepping(r),v("update",c),!0)}function yt(n,t){var r,f,i;for(u.limit&&(n+=1),r=0;r<n;r+=1)f=r%2,i=t[f],i!==null&&i!==!1&&(typeof i=="number"&&(i=String(i)),i=u.format.from(i),(i===!1||isNaN(i)||tt(e[f],h.toStepping(i),r===3-u.dir)===!1)&&v("update",f))}function pt(t){var r,f=s(t),i;for(u.dir&&u.handles>1&&f.reverse(),u.animate&&p[0]!==-1&&a(c,n[14],300),r=e.length>1?3:1,f.length===1&&(r=1),yt(r,f),i=0;i<e.length;i++)v("set",i)}function ft(){for(var t=[],n=0;n<u.handles;n+=1)t[n]=u.format.to(nt[n]);return it(t)}function wt(){n.forEach(function(n){n&&f(c,n)});c.innerHTML="";delete c.noUiSlider}function bt(){var n=p.map(function(n,t){var i=h.getApplicableStep(n),r=b(String(i[2])),u=nt[t],f=n===100?null:i[2],e=Number((u-i[2]).toFixed(r)),o=n===0?null:e>=i[1]?i[2]:i[0]||!1;return[o,f]});return it(n)}function gt(n,t){d[n]=d[n]||[];d[n].push(t);n.split(".")[0]==="update"&&e.forEach(function(n,t){v("update",t)})}function ri(n){var t=n.split(".")[0],i=n.substring(t.length);Object.keys(d).forEach(function(n){var r=n.split(".")[0],u=n.substring(r.length);t&&t!==r||i&&i!==u||delete d[n]})}var c=i,p=[-1,-1],w,e,h=u.spectrum,nt=[],d={};if(c.noUiSlider)throw new Error("Slider was already initialized.");return w=ii(u.dir,u.ort,c),e=ti(u.handles,u.dir,w),ni(u.connect,c,e),vt(u.events),u.pips&&ht(u.pips),{destroy:wt,steps:bt,on:gt,off:ri,get:ft,set:pt}}function ui(n,t){if(!n.nodeName)throw new Error("noUiSlider.create requires a single element.");var i=bt(t,n),r=ri(n,i);r.set(i.start);n.noUiSlider=r}var r=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},n=["noUi-target","noUi-base","noUi-origin","noUi-handle","noUi-horizontal","noUi-vertical","noUi-background","noUi-connect","noUi-ltr","noUi-rtl","noUi-dragable","","noUi-state-drag","","noUi-state-tap","noUi-active","","noUi-stacking"],v;return i.prototype.getMargin=function(n){return this.xPct.length===2?c(this.xVal,n):!1},i.prototype.toStepping=function(n){return n=nt(this.xVal,this.xPct,n),this.direction&&(n=100-n),n},i.prototype.fromStepping=function(n){return this.direction&&(n=100-n),w(tt(this.xVal,this.xPct,n))},i.prototype.getStep=function(n){return this.direction&&(n=100-n),n=it(this.xPct,this.xSteps,this.snap,n),this.direction&&(n=100-n),n},i.prototype.getApplicableStep=function(n){var t=e(n,this.xPct),i=n===100?2:1;return[this.xNumSteps[t-2],this.xVal[t-i],this.xNumSteps[t-i]]},i.prototype.convert=function(n){return this.getStep(this.toStepping(n))},v={to:function(n){return n.toFixed(2)},from:Number},{create:ui}});LayoutManager=function(){function n(){var e=this,t,n,f,i;$("#optionbar .item>.option-label").on("click",function(n){return n.preventDefault(),$(n.currentTarget).next().is(":visible")||($("#optionbar .option:visible").parent().find(".fa-caret-up").hide(),$("#optionbar .option:visible").parent().find(".fa-caret-down").show(),$("#optionbar .option:visible").parent().find(".option").toggle()),$(n.currentTarget).next().toggle("fast"),$(".fa-caret-up",$(n.currentTarget)).toggle(),$(".fa-caret-down",$(n.currentTarget)).toggle(),!1});$("body").on("click",function(){$("#optionbar .option:visible").parent().find(".fa-caret-up").hide();$("#optionbar .option:visible").parent().find(".fa-caret-down").show();$("#optionbar .option:visible").parent().find(".option").toggle()});$("#closead").on("click",function(){$("#sidebar").html("");$("#sidebar").remove()});var r="",u=document.cookie.split(";");for(t=0;t<u.length;t++){for(n=u[t];n.charAt(0)==" ";)n=n.substring(1);n.indexOf("wwwweerslagnl=")==0&&(r="ja")}r=="ja"&&($("#sidebar").html(""),$("#sidebar").remove());f=self.location.hostname.toLowerCase().replace(/\./g,"-");$("#logopane ."+f).show();this.setLabels(self.location.hostname.toLowerCase());this.setZoomAndCenter(self.location.hostname.toLowerCase());i=parent!==window;!i||document.referrer==""||document.referrer.indexOf("devtips")>0?document.documentElement.style.display="block":top.location=self.location;i&&(document.referrer==""||document.referrer.indexOf("devtips")>0)&&($(".header").hide(),$(".custom-logo").show());window.onresize=function(){return e.handleResize()};this.handleResize()}return n.prototype.handleResize=function(){var n=$(window).width();$("#radarmap").width(n);$("#radarmap").css("width",n+"px");setTimeout(function(){$("#bottombar").css({bottom:"0px",position:"fixed","z-index":1})},200)},n.prototype.setZoomAndCenter=function(n){this._zoom=7;this._center=[51.5,4.5];n=="localhost"&&(n="weerslag.nl");n.indexOf("weerslag.nl")>-1&&(this._zoom=7,this._center=[51.5,5.5]);n.indexOf("niederschlagsradar.de")>-1&&(this._zoom=6,this._center=[50.9,10.1]);n.indexOf("meteoradar.co.uk")>-1&&(this._zoom=6,this._center=[52.5,-2]);n.indexOf("meteox.com")>-1&&(this._zoom=6,this._center=[50.5,4.7]);n.indexOf("sat24.com")>-1&&(this._zoom=6,this._center=[50.5,4.7])},n.prototype.GetCenter=function(){return this._center},n.prototype.GetZoom=function(){return this._zoom},n.prototype.setLabels=function(n){var t,r,u,f;n=="localhost"&&(n="weerslag.nl");var e=n.substr(n.lastIndexOf(".")),i={".de":["opacity","Transparenz","location#placeholder","Ort suchen"],".nl":["opacity","Transparantie","location#placeholder","Plaats zoeken"],".uk":["opacity","Transparency","location#placeholder","Find location"]}[e];for(t=0;t<i.length;t=t+2)r=i[t],u=i[t+1],r.indexOf("#")>-1?(f=r.split("#")[1],$("*[data-key='"+i[t]+"']").attr(f,u)):$("*[data-key='"+i[t]+"']").text(u)},n}();!function(n){n[n.CLASSIC=0]="CLASSIC";n[n.BASICWEBGL=1]="BASICWEBGL";n[n.LIVEWEBGL=2]="LIVEWEBGL"}(Players||(Players={}));var RadarMap=function(){function n(n,t,i,r){this._defaultZoomLevel=8;this._defaultPlayer=Players.LIVEWEBGL;this._controlpanelLoaded=!1;this._mapId=n;this._center=t;this._apihost=r;this._a_u35=new _a_u84(t,i,"#shareurl");this._defaultZoomLevel=i;this.Initialize()}return n.prototype.Initialize=function(){var n=this,t;this._center=this._a_u35.MAP_CENTER;$("#"+this._mapId).height($(window).height());t={zoom:this._a_u35.MAP_ZOOM,panControlOptions:{position:google.maps.ControlPosition.RIGHT_TOP},zoomControlOptions:{position:google.maps.ControlPosition.RIGHT_TOP},center:new google.maps.LatLng(this._center[0],this._center[1]),mapTypeId:google.maps.MapTypeId.ROADMAP,mapTypeControlOptions:{mapTypeIds:[google.maps.MapTypeId.ROADMAP,google.maps.MapTypeId.HYBRID,google.maps.MapTypeId.SATELLITE]},mapTypeControl:!1,disableDoubleClickZoom:!1,scrollwheel:!0,streetViewControl:!1,minZoom:5,maxZoom:17};switch(this.__a_u56=new google.maps.LatLngBounds(new google.maps.LatLng(46.95,-12),new google.maps.LatLng(60,15.5)),this._map=new google.maps.Map(document.getElementById(this._mapId),t),this.addStyle("LightBlue",_a_u66.LightBlue()),this.addStyle("Midnight",_a_u66.MidnightCommander()),this.addStyle("TMC",_a_u66.TMC()),this._map.setMapTypeId(this._a_u35.MAP_STYLE),google.maps.event.addListener(this._map,"idle",function(){setTimeout(function(){return n.addControlPanel()},1e3)}),this._defaultPlayer){case Players.BASICWEBGL:this._player={};break;case Players.CLASSIC:this._player={};break;case Players.LIVEWEBGL:this._player=new LivePlayer(this._map,this.__a_u56,this._a_u35)}this._player._a_u53();google.maps.event.addListener(this._map,"center_changed",function(){var t=n._map.getCenter();n._a_u35.MAP_CENTER=[t.lat(),t.lng()]});google.maps.event.addListener(this._map,"zoom_changed",function(){var t=n._map.getZoom();n._a_u35.MAP_ZOOM=t})},n.prototype.addStyle=function(n,t){var i={name:n},r=new google.maps.StyledMapType(t,i);this._map.mapTypes.set(n,r)},n.prototype.PlotChasers=function(){var n=this,t=this._apihost+"/userlocation/getchasers?format=jsonp";$.ajax({url:t,jsonp:"jsoncallback",dataType:"jsonp",success:function(t){for(var r,i=0;i<t.length;i++)r=new Chaser,r=t[i],n._a_u52(r)}})},n.prototype._a_u41=function(n){var t={url:"http://weerslag.nl/content/images/refspot.png",size:new google.maps.Size(30,30),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(15,15)};new google.maps.Marker({position:n,map:this._map,animation:google.maps.Animation.DROP,icon:t,zIndex:999});this._map.setCenter(n);this._map.setZoom(10)},n.prototype._a_u83=function(){return this._player},n.prototype._a_u52=function(n){var u=this,t,i,r;n._a_u61&&(t=new google.maps.Marker({position:new google.maps.LatLng(n.CurrentLocation.Latitude,n.CurrentLocation.Longitude),icon:this.getIcon(4),draggable:!1,map:this._map,optimized:!1}),google.maps.event.addListener(t,"click",function(){u.openInfoWindow(n,t)}));i=this.getIcon(1);n._a_u61&&(i=this.getIcon(2));r=new google.maps.Marker({position:new google.maps.LatLng(n.CurrentLocation.Latitude,n.CurrentLocation.Longitude),icon:i,draggable:!1,map:this._map,title:n.Name});google.maps.event.addListener(r,"click",function(){u.openInfoWindow(n,r)})},n.prototype.getIcon=function(n){switch(n){case 1:return"/widgets/icons/car-v001-01.png";case 2:return"/widgets/icons/car-v001-02.png";case 3:return"/widgets/icons/car-v001-03.png";case 4:return"/widgets/icons/broadcast.gif";default:return"/widgets/icons/car-v001-01.png"}},n.prototype.openInfoWindow=function(n,t){var i=this,r="<div id='info-"+n.Name.toLowerCase()+"'><h3>"+n.Name+"<\/h3><hr style='margin:10px;' /><p><i style='font-size:13px;margin-right:10px;' class='fa fa-users'><\/i>"+n.Team+"<\/p>"+(n._a_u61?"<p><a style='cursor:pointer;'><i style='font-size:13px;margin-right:10px;' class='fa fa-video-camera'><\/i>Bekijk "+n.Name+"'s live verslag<\/a><\/p>":"")+"<\/div>",u=new google.maps.InfoWindow({content:r});u.open(this._map,t);setTimeout(function(){$("#info-"+n.Name.toLowerCase()+" a").on("click",function(){return i.addVideoPanel(n._a_u72,n.Name)})},500)},n.prototype.addControlPanel=function(){if(!this._controlpanelLoaded){this._controlpanelLoaded=!0;var n=document.getElementById("optionbar");new _a_u67(n,this._map,this,this._a_u35)}},n.prototype.addVideoPanel=function(){},n}(),LivePlayer=function(){function n(n,t,i){this._paused=!1;this._a_u73=!1;this._map=n;this.__a_u56=t;this._a_u35=i;this._a_u71=i.MAP_LEGEND;this._startTime=new Date;this._wglCtx=WebGL.GetWebGLContext($("#canvas")[0]);this._a_u36=new LivePlayerContext(this._wglCtx);this.setLegend(this._a_u71)}return n.prototype._a_u53=function(){var n=this,r=(this._wglCtx.getParameter(this._wglCtx.MAX_TEXTURE_IMAGE_UNITS)-2,$(window).width()),t,i;this._wglCtx&&(t="",i="",t="/radarpackage.ashx?type=header&width="+r,i="/radarpackage.ashx?type=images&width="+r,this._a_u77(t,function(t){return n._header=t,n._a_u54(t,i,function(t){setTimeout(function(){return n._a_u60(t)},100)})}))},n.prototype._a_u77=function(n,t){var i=this;$.getJSON(n,function(n){var r=new HeaderInfo;r=n;r.FlowImageSmall=_a_u70.__ll(r.FieldFlowSmall);r._a_u74=2e3;r._a_u75=1450;r._a_u48=i._a_u35.MAP_OPACITY;i._header=r;t(r)})},n.prototype._a_u54=function(n,t,i){var u=this;this._header=n;var e=new ImageStream,f=0,r=new XMLHttpRequest;r.open("GET",t,!0);r.responseType="arraybuffer";r.onreadystatechange=function(){var o,t,n;if(4==r.readyState&&200==r.status){for(o=new Uint8Array(r.response),u._header.FlowImage=_a_u70._a_u76(o.subarray(f,f+u._header.FieldFlowLength)),f+=u._header.FieldFlowLength,t=0;t<u._header.ImageFiles.length;t++)n=new _a_u57,n.DateTime=new Date(1e3*u._header.ImageFiles[t][0]),n.Length=u._header.ImageFiles[t][1],n.ImageElement=_a_u70._a_u76(o.subarray(f,f+n.Length)),e.Images.push(n),f+=n.Length;i(e)}};r.send()},n.prototype._a_u60=function(n){var t=this,i;n.Header=this._header;this._movie=new PM(n);this._a_u36.overlay_a_u48=this._a_u35.MAP_OPACITY||.9;this._a_u36._a_u49=this._a_u35.m_i||.5;this._a_u36.wff=this._a_u35.w_ff||1;var r=(new Date).getTime(),u=0,f=n.Header.TopLeft[0],e=n.Header.TopLeft[1],o=n.Header.BottomRight[0],s=n.Header.BottomRight[1];this._a_u36.BindFrameTextures(this._movie);i=function(){t._movie.Set__ii();0==t._movie.__ii&&(r=(new Date).getTime(),u=0);t._paused||(t._a_u36._a_u63(t._movie,f,o,s,e),t._a_u65(t._movie));t._movie.__ii==t._movie._cs.Images.length-1?(t._paused=!0,setTimeout(function(){t._paused=!1;requestAnimationFrame(i)},2050)):setTimeout(function(){t._a_u62();requestAnimationFrame(i)},40)};requestAnimationFrame(i)},n.prototype.fromLatLngToPixel=function(n,t){var i=Math.pow(2,t.getZoom()),r=t.getProjection(),u=t.getBounds(),f=r.fromLatLngToPoint(new google.maps.LatLng(u.getNorthEast().lat(),u.getSouthWest().lng())),e=r.fromLatLngToPoint(n);return new google.maps.Point(Math.floor((e.x-f.x)*i),Math.floor((e.y-f.y)*i))},n.prototype._a_u62=function(){var t=this._map.getBounds(),h=1,i=$(window).width()*h,r=$("#radarmap").height()*h,e,n,a,v;if(t){if(e=t.getNorthEast().lat(),e==this._a_u38)return;n=$("#canvas");n.attr("width",i);n.css("width",i);n.attr("height",r);n.css("height",r);this._a_u38=e;var c=this.fromLatLngToPixel(this.__a_u56.getSouthWest(),this._map).x,l=this.fromLatLngToPixel(this.__a_u56.getNorthEast(),this._map).y,y=this.fromLatLngToPixel(this.__a_u56.getNorthEast(),this._map).x,p=this.fromLatLngToPixel(this.__a_u56.getSouthWest(),this._map).y,w={1:20,2:22,3:25,4:28,5:30,6:35,7:40,8:40,9:70,10:100,11:200,12:400,13:800,14:1600,15:3200,16:6400,17:12e3}[this._map.getZoom()],o=y-c+w,s=p-l,u=o/i,f=s/r;this._wglCtx.uniform1f(this._a_u36._u_bf,u);this._wglCtx.uniform1f(this._a_u36._u_hf,f);a=1*u-1+_a_u70.hjs(c/2,-o/1,o/1,-4*u,4*u);v=-f+1+_a_u70.hjs(-l/2,-s/2,s/2,-2*f,2*f);this._wglCtx.uniform1f(this._a_u36._u_offsetX,a);this._wglCtx.uniform1f(this._a_u36._u_offsetY,v);this._wglCtx.viewport(0,0,i,r);window.localStorage.lat=t.getCenter().lat();window.localStorage.lng=t.getCenter().lng();window.localStorage.zoom=this._map.getZoom()}},n.prototype.Play=function(){this._paused=!this._paused},n.prototype._a_u51=function(){},n.prototype.PlayStepForward=function(){},n.prototype._a_u64=function(n){this._a_u35.MAP_LEGEND=n;this.setLegend(n)},n.prototype.setLegend=function(n){var i=this,t=new Image;t.onload=function(){i._a_u36.BindTextures(1,t)};t.src=n},n.prototype.Update_a_u48=function(n){0==n&&(n=.9);this._a_u35.MAP_OPACITY=n;this._a_u36.overlay_a_u48=this._a_u35.MAP_OPACITY},n.prototype._a_u81=function(n){this._a_u35.m_i=n;this._a_u35._a_u78();this._a_u36._a_u49=this._a_u35.m_i},n.prototype._a_u82=function(n){this._a_u35._a_u46d=n;this._a_u35._a_u78();this._movie&&(this._movie._a_u479=this._movie.p9=this._a_u35._a_u46d)},n.prototype._a_u80=function(n){this._a_u35.w_ff=n;this._a_u35._a_u78();this._a_u36.wff=this._a_u35.w_ff},n.prototype._a_u65=function(n){var i=n.__ii,t=n._cs.Images[i];(new Date).getTime()-this._startTime.getTime()>9e5&&0==this._a_u73?(this._a_u73=!0,$("#time div").html("<a href='/'><i class='fa fa-refresh'><\/i><\/a>")):this._a_u73||t&&$("#time div").text(_a_u70._a_u69((t.Time+0)/1e3))},n.prototype.initializeProgressBar=function(n){for(var u=n._cs.Images.length,t=(new Date(n._cs.Images[0].Time),new Date(n._cs.Images[u].Time),""),i=0;u>i;i++){var r=new Date(n._cs.Images[i].Time).getTime(),f=r+300,e=r+600;t+="<span>"+_a_u70._a_u69(r)+"<\/span>";t+="<span>"+_a_u70._a_u69(f)+"<\/span>";t+="<span>"+_a_u70._a_u69(e)+"<\/span>"}},n}(),LivePlayerContext=function(){function n(n){var r,u,i;this._buffersBound=!1;this._texturesBound=!1;this._wglCtx=n;var f=WebGL._a_u42(this._wglCtx,this.vertexShader(),WebGLRenderingContext.VERTEX_SHADER,null),e=WebGL._a_u42(this._wglCtx,this.fragmentShader(),WebGLRenderingContext.FRAGMENT_SHADER,null),t=WebGL.LoadProgram(this._wglCtx,[f,e],null,null);if(this._wglCtx.linkProgram(t),!this._wglCtx.getProgramParameter(t,this._wglCtx.LINK_STATUS))throw this._wglCtx.getProgramInfoLog(t);for(this._wglCtx.useProgram(t),this.uwwi=this._wglCtx.getUniformLocation(t,"mpwi"),this.uhwi=this._wglCtx.getUniformLocation(t,"wphi"),this.urvt=this._wglCtx.getUniformLocation(t,"rtw"),this._u_vertexKaartNoordWestLat=this._wglCtx.getUniformLocation(t,"aaab"),this.u_lv34=this._wglCtx.getUniformLocation(t,"aaac"),this._u_vertexKaartNoordWestLon=this._wglCtx.getUniformLocation(t,"aaad"),this._a_u34=this._wglCtx.getUniformLocation(t,"aaae"),this.urvt2=this._wglCtx.getUniformLocation(t,"rtw2"),this._u_teWaarde=this._wglCtx.getUniformLocation(t,"te"),this._u_vertex_a_u48=this._wglCtx.getUniformLocation(t,"mo"),this._u__a_u55=this._wglCtx.getUniformLocation(t,"trv"),this.rbh=this._wglCtx.getUniformLocation(t,"trh"),this.uwwv=this._wglCtx.getUniformLocation(t,"tww"),this.uwwl=this._wglCtx.getUniformLocation(t,"twl"),this._u_io=this._wglCtx.getUniformLocation(t,"io"),this._u_oi=this._wglCtx.getUniformLocation(t,"oi"),this._u_wvf=this._wglCtx.getUniformLocation(t,"wvf"),this._u_bf=this._wglCtx.getUniformLocation(t,"breedtefactor"),this._u_hf=this._wglCtx.getUniformLocation(t,"hoogtefactor"),this._u_offsetX=this._wglCtx.getUniformLocation(t,"offsetX"),this._u_offsetY=this._wglCtx.getUniformLocation(t,"offsetY"),this._a_ppWaarde=this._wglCtx.getAttribLocation(t,"pp"),this.abvp=this._wglCtx.getAttribLocation(t,"bvp"),this._a_ser=this._wglCtx.getAttribLocation(t,"ser"),this._u_matrix=this._wglCtx.getUniformLocation(t,"_u_matrix"),this._wglCtx.uniform1i(this.uwwl,1),this._wglCtx.uniform1i(this.uwwv,0),this._wglCtx.uniform1i(this._u__a_u55,2),this._wglCtx.uniform1i(this.rbh,3),r=WebGL.make2DProjection(1e3,1e3),this._wglCtx.uniformMatrix3fv(this._u_matrix,!1,r),this._textures=[],u=this._wglCtx.MAX_TEXTURE_IMAGE_UNITS>32?32:this._wglCtx.MAX_TEXTURE_IMAGE_UNITS,i=0;u>i;i++)this._wglCtx.activeTexture(this._wglCtx.TEXTURE0+i),this._textures.push(this._wglCtx.createTexture()),this._wglCtx.bindTexture(this._wglCtx.TEXTURE_2D,this._textures[i])}return n.prototype._a_u63=function(n,t,i,r,u){var p=n._cs.Header._a_u74,w=n._cs.Header._a_u75,h,a,b,v,y,k,c,e,o,f,s,g,l,nt,tt;if(!this._a_u68&&n._cs.Header.FlowImage.complete&&(this.__l2=this._wglCtx.createBuffer(),this.a_l2=this._wglCtx.createBuffer(),this.BindTextures(0,n._cs.Header.FlowImage),this._wglCtx.uniform1f(this.uwwi,p),this._wglCtx.uniform1f(this.uhwi,w)),!this._a_u68&&n._cs.Header.FlowImage.complete){for(h=new Array(726),a=document.createElement("canvas"),a.width=p,a.height=w,b=a.getContext("2d"),b.drawImage(n._cs.Header.FlowImageSmall,0,0),e=0;11>e;e++)for(o=0;11>o;o++){var f=6*(11*o+e),d=e/10,s=o/10;h[f+0]=d;h[f+1]=s;h[f+2]=_a_u70.hjs(e,0,10,n._cs.Header.TopLeft[1],n._cs.Header.BottomRight[1]);h[f+3]=_a_u70.hjs(o,0,10,n._cs.Header.TopLeft[0],n._cs.Header.BottomRight[0]);v=Math.floor(s*n._cs.Header.FlowImageSmall.width);y=Math.floor(d*n._cs.Header.FlowImageSmall.height);v>=n._cs.Header.FlowImageSmall.width&&(v-=1);y>=n._cs.Header.FlowImageSmall.height&&(y-=1);k=b.getImageData(v,y,1,1).data;h[f+4]=((k[0]-2)/252*150-75)/75;h[f+5]=((k[1]-2)/252*150-75)/75}for(c=new Array(600),e=0;10>e;e++)for(o=0;10>o;o++)f=6*(10*o+e),s=11*o+e,c[f+0]=s,c[f+1]=s+11,c[f+2]=s+1,c[f+3]=s+11,c[f+4]=s+11+1,c[f+5]=s+1;this._wglCtx.bindBuffer(this._wglCtx.ARRAY_BUFFER,this.__l2);this._wglCtx.bufferData(this._wglCtx.ARRAY_BUFFER,new Float32Array(h),this._wglCtx.STATIC_DRAW);this._wglCtx.bindBuffer(this._wglCtx.ELEMENT_ARRAY_BUFFER,this.a_l2);this._wglCtx.bufferData(this._wglCtx.ELEMENT_ARRAY_BUFFER,new Uint16Array(c),this._wglCtx.STATIC_DRAW);this._wglCtx.enableVertexAttribArray(this._a_ppWaarde);this._wglCtx.enableVertexAttribArray(this.abvp);this._wglCtx.enableVertexAttribArray(this._a_ser);this._wglCtx.vertexAttribPointer(this._a_ppWaarde,2,this._wglCtx.FLOAT,!1,24,0);this._wglCtx.vertexAttribPointer(this.abvp,2,this._wglCtx.FLOAT,!1,24,8);this._wglCtx.vertexAttribPointer(this._a_ser,2,this._wglCtx.FLOAT,!1,24,16);this._a_u68=!0;this._wglCtx.bindBuffer(this._wglCtx.ARRAY_BUFFER,this.__l2);this._wglCtx.bindBuffer(this._wglCtx.ELEMENT_ARRAY_BUFFER,this.a_l2)}if(this._a_u68){this._wglCtx.clear(this._wglCtx.COLOR_BUFFER_BIT);this._wglCtx.uniform1f(this._u_vertexKaartNoordWestLat,t);this._wglCtx.uniform1f(this.u_lv34,i);this._wglCtx.uniform1f(this._u_vertexKaartNoordWestLon,u);this._wglCtx.uniform1f(this._a_u34,r);g=n.lo1();l=g;this._wglCtx.uniform1f(this.urvt2,l);this._wglCtx.uniform1f(this.urvt,l);nt=l/(p*(n._cs.Header.BottomRight[1]-n._cs.Header.TopLeft[1]));tt=l/(w*(n._cs.Header.TopLeft[0]-n._cs.Header.BottomRight[0]));this._wglCtx.uniform2f(this._u_teWaarde,nt,tt);var rt=n.__iiOffset,it=Math.floor(n.__ii%n.m_l+2),ut=Math.floor(n.__ii%n.m_l+3);this._wglCtx.uniform1i(this._u_io,rt);this._wglCtx.uniform1i(this._u__a_u55,it);this._wglCtx.uniform1i(this.rbh,ut);n.__ii==n.m_l-1&&this._wglCtx.uniform1i(this.rbh,it);this._wglCtx.uniform1f(this._u_vertex_a_u48,this.overlay_a_u48);this._wglCtx.uniform1f(this._u_oi,5*this._a_u49);this._wglCtx.uniform1f(this._u_wvf,this.wff);this._wglCtx.drawElements(this._wglCtx.TRIANGLES,600,this._wglCtx.UNSIGNED_SHORT,0)}},n.prototype.BindTextures=function(n,t){try{this._wglCtx.activeTexture(this._wglCtx.TEXTURE0+n);this._wglCtx.bindTexture(this._wglCtx.TEXTURE_2D,this._textures[n]);this._wglCtx.texParameteri(this._wglCtx.TEXTURE_2D,this._wglCtx.TEXTURE_MIN_FILTER,this._wglCtx.LINEAR);this._wglCtx.texParameteri(this._wglCtx.TEXTURE_2D,this._wglCtx.TEXTURE_MAG_FILTER,this._wglCtx.LINEAR);this._wglCtx.texParameteri(this._wglCtx.TEXTURE_2D,this._wglCtx.TEXTURE_WRAP_S,this._wglCtx.CLAMP_TO_EDGE);this._wglCtx.texParameteri(this._wglCtx.TEXTURE_2D,this._wglCtx.TEXTURE_WRAP_T,this._wglCtx.CLAMP_TO_EDGE);this._wglCtx.texImage2D(this._wglCtx.TEXTURE_2D,0,this._wglCtx.RGBA,this._wglCtx.RGBA,this._wglCtx.UNSIGNED_BYTE,t)}catch(n){}},n.prototype.BindFrameTextures=function(n){var r,t,i;for(n.__ii=0,r=this._wglCtx.MAX_TEXTURE_IMAGE_UNITS<n.m_l?this._wglCtx.MAX_TEXTURE_IMAGE_UNITS:n.m_l,t=0;r>t;t++)i=t+n.__ii,n._cs.Images[i]&&this.BindTextures(t+2,n._cs.Images[i].ImageElement)},n.prototype.ResetTextures=function(){},n.prototype.vertexShader=function(){return"\n          varying highp vec2 vNormal;\n          uniform highp float aaac,aaab, aaad, aaae;\n          uniform highp float breedtefactor, hoogtefactor, offsetX, offsetY;\n\n\n          uniform vec2 te;\n          attribute highp vec2 pp, bvp, ser;\n\n          highp float p2m(\n              highp float liw,\n              highp float llmi,\n              highp float llma,\n              highp float miw,\n              highp float maw)\n          {\n            return miw + (liw - llmi) / (llma - llmi) * (maw - miw) ;\n          }\n\n          #define M_PI 3.14159\n\n          highp float pom(highp float wc)\n          {\n            return 180. / M_PI * log(tan( M_PI / 4. + wc * (M_PI/180.)/2.));\n          }\n\n          void main(){\n            vec2 bp = ser * te + bvp ;\n            highp float wx = bp.x ;\n            highp float wy = bp.y ;\n            highp vec2 pok = vec2(p2m(pom(wx),pom(aaad),pom(aaae),-1.,1.), p2m(pom(wy),pom(aaac),pom(aaab),-1.,1.));\n            highp vec2 offset = vec2(offsetX, offsetY );\n            highp vec2 size = vec2(breedtefactor, hoogtefactor);\n            gl_Position = vec4(offset + pok * size, -1, 1);\n\n            vNormal = pp;\n          }\n        "},n.prototype.fragmentShader=function(){return"\n        varying highp vec2 vNormal;\n        precision highp float;\n        uniform sampler2D trv,trh,tww,twl;\n        uniform highp float mpwi, wphi, mo, rtw2, rtw, oi, wvf;\n        uniform int io;\n        void main() {\n          highp vec2 _a_u58,bk;\n          _a_u58 = texture2D(tww,vNormal).xy;\n          bk= (-vec2((_a_u58.x-.5)*255./5. / mpwi, (_a_u58.y - .5) * 255. /5./wphi))* wvf;\n\n            highp float kv1, kv2, gk;\n\n            kv1 = texture2D(trv, vNormal + bk * rtw2).r;\n            kv2 = texture2D(trh, vNormal - bk * (1. - rtw2)).r;\n\n            //if(kv2 == 0.)\n            //{\n            //    kv2 = kv1;\n            //}\n\n            //if(io==0)\n            //{\n            //    kv1 = texture2D(trv, vNormal + bk * rtw2).r;\n            //    kv2 = texture2D(trv, vNormal - bk * (1. - rtw2)).g;\n            //}\n            //if(io==1)\n            //{\n            //    kv1 = texture2D(trv, vNormal + bk * rtw2).g;\n            //    kv2 = texture2D(trv, vNormal - bk * (1. - rtw2)).b;\n            //}\n            //if(io==2)\n            //{\n            //    kv1 = texture2D(trv, vNormal + bk * rtw2).b;\n            //    kv2 = texture2D(trh, vNormal - bk * (1. - rtw2)).r;\n            //}\n\n            gk = mix(kv1, kv2, rtw );\n\n            gl_FragColor = texture2D(twl, vec2(gk * oi, 0)) * clamp(gk * 15., 0., 1.) * mo;\n        }"},n}(),HeaderInfo=function(){function n(){}return n}(),_a_u57=function(){function n(){}return Object.defineProperty(n.prototype,"Time",{get:function(){return this.DateTime.getTime()},enumerable:!0,configurable:!0}),n}(),ImageStream=function(){function n(){this.Images=[]}return n}(),PM=function(){function n(n){this.Framerate=.05;this._cs=n;this._a_u48=.9;this.__ii=0;this.__iiOffset=0;this.m_l=n.Images.length;this.p9=1e3;this._a_u479=750;this._a_u37=this._cs.Header.MinuteOffset;this._a_u40=+new Date}return n.prototype.Set__ii=function(){this.__ii=Math.floor(Math.floor(((new Date).getTime()-this._a_u40)/this.p9)%(1*(this.m_l-0))/1)},n.prototype.lo1=function(){return this.__iiOffset=0,this.Set__ii(),((new Date).getTime()-this._a_u40)/this.p9%1},n}(),_a_u70=function(){function n(){}return n.__ll=function(n){var t=new Image;return t.loaded=!1,t.onload=function(){t.loaded=!0},t.src="data:image/png;base64,"+n,t},n._a_u76=function(n){for(var i="",t=0,r=n.length;r>t;t++)i+=String.fromCharCode(n[t]);return this.__ll(window.btoa(i))},n.hjs=function(n,t,i,r,u){return(n-t)*(u-r)/(i-t)+r},n.ConvertUTCTimeToLocalTime=function(n){var t=new Date(n),i=t.getTimezoneOffset()/60;return t.setHours(t.getHours()-i),t},n.FormatTime=function(n){var t=new Date(1e3*n);return t.toLocaleDateString()+" "+(t.getHours()+100).toString().substr(1)+":"+(t.getMinutes()+100).toString().substr(1)},n._a_u69=function(n){var t=new Date(1e3*n);return(t.getHours()+100).toString().substr(1)+":"+(t.getMinutes()+100).toString().substr(1)},n}(),WebGL=function(){function n(){}return n.GetWebGLContext=function(n){return this.SetupWebGL(n,{alpha:!0})},n.SetupWebGL=function(n,t){function r(){n.parentNode}var i=this.Create3DContext(n,t);return i||r("Problem..."),i},n.Create3DContext=function(n,t){for(var u=["webgl","experimental-webgl"],i=null,r=0;r<u.length;++r){try{i=n.getContext(u[r],t)}catch(n){}if(i)break}return i},n.SetRectangle=function(n,t,i,r,u){var f=t,e=t+r,o=i,s=i+u;n.bufferData(n.ARRAY_BUFFER,new Float32Array([f,o,e,o,f,s,f,s,e,o,e,s]),n.STATIC_DRAW)},n.LoadProgram=function(n,t,i,r){for(var e,o,f=n.createProgram(),u=0;u<t.length;++u)n.attachShader(f,t[u]);if(i)for(u=0;u<i.length;++u)n.bindAttribLocation(f,r?r[u]:u,i[u]);return(n.linkProgram(f),e=n.getProgramParameter(f,n.LINK_STATUS),!e)?(o=n.getProgramInfoLog(f),this.Error("Error in program linking:"+o),n.deleteProgram(f),null):f},n._a_u45=function(n,t,i,r){var o=r||this.Error,u=n.createShader(i),f,e;return(n.shaderSource(u,t),n.compileShader(u),f=n.getShaderParameter(u,n.COMPILE_STATUS),!f)?(e=n.getShaderInfoLog(u),o("*** Error compiling shader '"+u+"':"+e),n.deleteShader(u),null):u},n.make2DProjection=function(n,t){return[2/n,0,0,0,-2/t,0,-1,1,1]},n._a_u42=function(n,t,i,r){var u=t;return this._a_u45(n,u,i,r)},n.Error=function(n){window.console&&(window.console.error?window.console.error(n):window.console.log&&window.console.log(n))},n}(),_a_u67=function(){function n(n,t,i,r){var u=this,s,o,c,e,y;this._config=r;this._a_u39=i;var w=($("#opacity .option-action")[0],$("#legends .option-action")[0]),b=$("#maptypes .option-action")[0],f="class='active'",k="<div class='ctrlitem'><ul><li "+("TMC"==this._config.MAP_STYLE?f:"")+" data-style='TMC'><a tabindex='-1' href='#'><img src='/maptypes/tmc.png'><\/a><\/li><li "+("roadmap"==this._config.MAP_STYLE?f:"")+" data-style='Standaard'><a tabindex='-1' href='#'><img src='/maptypes/default.png'><\/a><\/li><li "+("LightBlue"==this._config.MAP_STYLE?f:"")+" data-style='Licht'><a tabindex='-1' href='#'><img src='/maptypes/light.png'><\/a><\/li><li "+("Midnight"==this._config.MAP_STYLE?f:"")+" data-style='Donker'><a tabindex='-1' href='#'><img src='/maptypes/dark.png'><\/a><\/li><li "+("satellite"==this._config.MAP_STYLE?f:"")+" data-style='Satelliet'><a tabindex='-1' href='#'><img src='/maptypes/satellite.png'><\/a><\/li><li "+("hybrid"==this._config.MAP_STYLE?f:"")+" data-style='Hybride'><a tabindex='-1' href='#'><img src='/maptypes/hybrid.png'><\/a><\/li><\/ul><\/div><\/div>",v=$(k);for(b.appendChild($(v)[0]),$("li",v).on("click",function(n){return n.preventDefault(),u.setMapStyle(n,t),!1}),s="<div class='ctrlitem'><ul>",o=0;13>o;o++)f="",parseInt(this._config.MAP_LEGEND.match("[0-9].")[0])==o&&(f=" class='active' "),s+="<li"+f+"><a tabindex='-1' href='#'><img src='/legenda/legendcolorsgreyconverter"+o+".png'><\/a><\/li>";s+="<\/ul><\/div>";c=$(s);w.appendChild($(c)[0]);$("li",c).on("click",function(n){return n.preventDefault(),u._a_u59(n,t),!1});e=($("#opacity"),$("#transparancy")[0]);y=100*this._config.MAP_OPACITY;noUiSlider.create(e,{start:y,range:{min:0,max:100}});e.noUiSlider.on("change",function(n,t){n[t]<20?e.noUiSlider.set(20):n[t]>100&&e.noUiSlider.set(100)});e.noUiSlider.on("update",function(n,t){var r=n[t]/100;i._a_u83().Update_a_u48(r)});$("#mylocation").on("click",function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition(function(n){var t=new google.maps.LatLng(n.coords.latitude,n.coords.longitude);u._a_u39._a_u41(t)})});$("#save").on("click",function(){$("#saving").show();$("#saving").css("opacity","1");u._config._a_u78();$("#saving").animate({opacity:0},1e3)});var h=$("#location input")[0],l=($("#location form")[0],null),a=null,p=new google.maps.places.Autocomplete(h);google.maps.event.addDomListener(h,"keydown",function(n){13!==n.keyCode||n.triggered||(google.maps.event.trigger(u,"keydown",{keyCode:40}),google.maps.event.trigger(u,"keydown",{keyCode:13,triggered:!0}));var t=$("body > .pac-container").filter(":visible");t.bind("DOMNodeInserted DOMNodeRemoved",function(){$(".pac-item",u).addClass("needsclick")})});google.maps.event.addListener(p,"place_changed",function(){l=p.getPlace();a=new google.maps.LatLng(l.geometry.location.lat(),l.geometry.location.lng());t.setCenter(a);t.setZoom(9);u._a_u39._a_u41(a)});h.addEventListener("click",function(){h.value=""});$("#embed .option-label").on("click",function(){var i=window.location.host,t="http://"+i+"/"+u._config._a_u85(),r="<iframe src='"+t+"' frameborder='0' width='560'  height='315'  ><\/iframe>",n='\n                    <div class="option-action a2a_kit a2a_kit_size_32 a2a_default_style">\n                    <!-- AddToAny BEGIN -->\n                    <a class="a2a_button_facebook"><\/a>\n                    <a class="a2a_button_twitter"><\/a>\n                    <a class="a2a_button_google_plus"><\/a>\n                    <a class="a2a_button_tumblr"><\/a>\n                    <a class="a2a_button_email"><\/a>\n                    <a class="a2a_button_stumbleupon"><\/a>\n                    <script type="text/javascript">\n                    var a2a_config = a2a_config || {};\n                    a2a_config.linkurl = "{link}";\n                    <\/script>\n                    <script type="text/javascript" src="//static.addtoany.com/menu/page.js" async><\/script>\n                    <!-- AddToAny END -->\n                    <\/div>\n                    <div class="iframe">\n                        <input type="text" value="{ilink}" />\n                    <\/div>\n                    ';n=n.replace(/{link}/g,t);n=n.replace(/{ilink}/g,r);$("#embed .option-holder").html(n);$("#optionbar .iframe input").on("click",function(n){return n.preventDefault(),$(n.currentTarget).select(),!1})})}return n.prototype.setMapStyle=function(n,t){var i=n.currentTarget.attributes["data-style"].value;"Standaard"==i&&t.setMapTypeId(google.maps.MapTypeId.ROADMAP);"TMC"==i&&t.setMapTypeId("TMC");"Licht"==i&&t.setMapTypeId("LightBlue");"Donker"==i&&t.setMapTypeId("Midnight");"Satelliet"==i&&t.setMapTypeId(google.maps.MapTypeId.SATELLITE);"Hybride"==i&&t.setMapTypeId(google.maps.MapTypeId.HYBRID);this._config.MAP_STYLE=t.getMapTypeId().toString();$(n.currentTarget).parent().find("li").removeClass("active");$(n.currentTarget).addClass("active")},n.prototype._a_u59=function(n){var t="",i=$(n.currentTarget).find("img")[0];t=i.attributes.src.value;$(n.currentTarget).parent().find("li").removeClass("active");$(n.currentTarget).addClass("active");this._a_u39._a_u83()._a_u64(t)},n}(),_a_u84=function(){function n(n,t,i){this.MAP_STYLE="TMC";this.MAP_OPACITY=.9;this.MAP_LEGEND="/legenda/legendcolorsgreyconverter1.png";this.m_i=.8;this._a_u46d=900;this.w_ff=.35;this.MAP_CENTER=this.getValue("MAP_CENTER",n).toString().split(",").map(function(n){return parseFloat(n)});this.MAP_ZOOM=parseInt(this.getValue("MAP_ZOOM",t));this.MAP_STYLE=this.getValue("MAP_STYLE",this.MAP_STYLE);this.MAP_OPACITY=parseFloat(this.getValue("MAP_OPACITY",this.MAP_OPACITY));this.MAP_LEGEND=this.getValue("MAP_LEGEND",this.MAP_LEGEND);this.m_i=parseFloat(this.getValue("m_i",this.m_i));this._a_u46d=parseFloat(this.getValue("_a_u46d",this._a_u46d));this.w_ff=parseFloat(this.getValue("w_ff",this.w_ff));this._shareSel=i}return n.prototype._a_u78=function(){this.saveCookie("map_center",this.MAP_CENTER,365);this.saveCookie("map_zoom",this.MAP_ZOOM,365);this.saveCookie("map_style",this.MAP_STYLE,365);this.saveCookie("map_opacity",this.MAP_OPACITY,365);this.saveCookie("map_legend",this.MAP_LEGEND,365);this.saveCookie("map_intensity",this.m_i,365);this.saveCookie("map_speed",this._a_u46d,365);this.saveCookie("map_windfield_factor",this.w_ff,365);this.updateShareUrl()},n.prototype.updateShareUrl=function(){var n=window.location.href.replace("#","").split("?")[0];n+="?map_center="+this.MAP_CENTER[0].toPrecision(2)+","+this.MAP_CENTER[1].toPrecision(2);n+="&map_zoom="+this.MAP_ZOOM;n+="&map_style="+this.MAP_STYLE;n+="&map_opacity="+this.MAP_OPACITY.toPrecision(2);$(this._shareSel).val(n)},n.prototype._a_u85=function(){var n="";return n+="?map_center="+this.MAP_CENTER[0].toPrecision(2)+","+this.MAP_CENTER[1].toPrecision(2),n+="&map_zoom="+this.MAP_ZOOM,n+="&map_style="+this.MAP_STYLE,n+("&map_opacity="+this.MAP_OPACITY.toPrecision(2))},n.prototype.getValue=function(n,t){var i=this.getQueryStringValue(n.toLowerCase()),r=this.readCookie(n.toLowerCase());return null!=i&&"undefined"!=typeof i||null!=r&&"undefined"!=typeof r?null==i||"undefined"==typeof i?r:i:t},n.prototype.saveCookie=function(n,t,i){var r,u;i?(r=new Date,r.setTime(r.getTime()+864e5*i),u="; expires="+r.toUTCString()):u="";document.cookie=n+"="+t+u+"; path=/"},n.prototype.readCookie=function(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];" "==t.charAt(0);)t=t.substring(1,t.length);if(0==t.indexOf(r))return t.substring(r.length,t.length)}return null},n.prototype.getQueryStringValue=function(n){var t=null,r="[\\?&#]"+n+"=([^&#]*)",u=new RegExp(r),i=u.exec("?"+window.location.href.split("?")[1]);return null!=i&&(t=decodeURIComponent(i[1].replace(/\+/g," "))),t},n}(),_a_u66=function(){function n(){}return n.MidnightCommander=function(){return[{featureType:"all",elementType:"labels.text.fill",stylers:[{color:"#ffffff"}]},{featureType:"all",elementType:"labels.text.stroke",stylers:[{color:"#000000"},{lightness:13}]},{featureType:"administrative",elementType:"geometry.fill",stylers:[{color:"#000000"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#144b53"},{lightness:14},{weight:1.4}]},{featureType:"landscape",elementType:"all",stylers:[{color:"#08304b"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#0c4152"},{lightness:5}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#000000"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#0b434f"},{lightness:25}]},{featureType:"road.arterial",elementType:"geometry.fill",stylers:[{color:"#000000"}]},{featureType:"road.arterial",elementType:"geometry.stroke",stylers:[{color:"#0b3d51"},{lightness:16}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#000000"}]},{featureType:"transit",elementType:"all",stylers:[{color:"#146474"}]},{featureType:"water",elementType:"all",stylers:[{color:"#021019"}]}]},n.TMC=function(){return[{featureType:"water",stylers:[{visibility:"simplified"},{color:"#3b5998"}]},{featureType:"transit",stylers:[{visibility:"simplified"},{color:"#d0b962"}]},{featureType:"landscape.natural",stylers:[{visibility:"simplified"},{color:"#d0b962"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#b59106"},{visibility:"simplified"}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"simplified"}]},{featureType:"landscape.man_made",stylers:[{visibility:"off"},{color:"#d1785f"}]},{featureType:"poi",stylers:[{color:"#004000"},{lightness:5},{visibility:"off"}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"administrative",elementType:"geometry",stylers:[{weight:1},{color:"#80733c"}]},{featureType:"administrative",elementType:"labels",stylers:[{visibility:"on"}]},{}]},n.LightBlue=function(){return[{featureType:"water",stylers:[{visibility:"on"},{color:"#b5cbe4"}]},{featureType:"landscape",stylers:[{color:"#efefef"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#83a5b0"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#bdcdd3"}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e3eed3"}]},{featureType:"administrative",stylers:[{visibility:"on"},{lightness:33}]},{featureType:"road"},{featureType:"poi.park",elementType:"labels",stylers:[{visibility:"on"},{lightness:20}]},{},{featureType:"road",stylers:[{lightness:20}]}]},n}(),Chaser=function(){function n(){}return n}(),LocationInfo=function(){function n(){}return n}()