684 lines
345 KiB
JavaScript
684 lines
345 KiB
JavaScript
// OpenLayers 3. see http://ol3js.org/
|
|
(function(){function aa(){return function(a){return a}}function ba(){return function(){}}function k(a){return function(){return this[a]}}function ca(a){return function(){return a}}var l,da=da||{},ea=this;function fa(){}function ga(a){a.kb=function(){return a.te?a.te:a.te=new a}}
|
|
function ja(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 s(a){return void 0!==a}function ka(a){return null===a}function la(a){return"array"==ja(a)}function ma(a){var b=ja(a);return"array"==b||"object"==b&&"number"==typeof a.length}function na(a){return"string"==typeof a}function oa(a){return"number"==typeof a}function qa(a){return"function"==ja(a)}function ra(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function sa(a){return a[ta]||(a[ta]=++ua)}
|
|
var ta="closure_uid_"+(1E9*Math.random()>>>0),ua=0;function va(a,b,c){return a.call.apply(a.bind,arguments)}function wa(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}
|
|
function xa(a,b,c){xa=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?va:wa;return xa.apply(null,arguments)}function za(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var Aa=Date.now||function(){return+new Date};
|
|
function t(a,b){var c=a.split("."),d=ea;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b}function v(a,b){function c(){}c.prototype=b.prototype;a.K=b.prototype;a.prototype=new c};function Ba(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")}function Ca(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function Da(a){if(!Ea.test(a))return a;-1!=a.indexOf("\x26")&&(a=a.replace(Fa,"\x26amp;"));-1!=a.indexOf("\x3c")&&(a=a.replace(Ga,"\x26lt;"));-1!=a.indexOf("\x3e")&&(a=a.replace(Ha,"\x26gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ia,"\x26quot;"));return a}
|
|
var Fa=/&/g,Ga=/</g,Ha=/>/g,Ia=/\"/g,Ea=/[&<>\"]/;function Ja(a){a=s(void 0)?a.toFixed(void 0):String(a);var b=a.indexOf(".");-1==b&&(b=a.length);b=Math.max(0,2-b);return Array(b+1).join("0")+a}
|
|
function Ka(a,b){for(var c=0,d=Ca(String(a)).split("."),e=Ca(String(b)).split("."),f=Math.max(d.length,e.length),g=0;0==c&&g<f;g++){var h=d[g]||"",m=e[g]||"",n=RegExp("(\\d*)(\\D*)","g"),p=RegExp("(\\d*)(\\D*)","g");do{var q=n.exec(h)||["","",""],r=p.exec(m)||["","",""];if(0==q[0].length&&0==r[0].length)break;c=((0==q[1].length?0:parseInt(q[1],10))<(0==r[1].length?0:parseInt(r[1],10))?-1:(0==q[1].length?0:parseInt(q[1],10))>(0==r[1].length?0:parseInt(r[1],10))?1:0)||((0==q[2].length)<(0==r[2].length)?
|
|
-1:(0==q[2].length)>(0==r[2].length)?1:0)||(q[2]<r[2]?-1:q[2]>r[2]?1:0)}while(0==c)}return c};var La,Ma,Na,Pa,Qa,Ta,Ua;function Va(){return ea.navigator?ea.navigator.userAgent:null}function Xa(){return ea.navigator}Pa=Na=Ma=La=!1;var Ya;if(Ya=Va()){var Za=Xa();La=0==Ya.lastIndexOf("Opera",0);Ma=!La&&(-1!=Ya.indexOf("MSIE")||-1!=Ya.indexOf("Trident"));Na=!La&&-1!=Ya.indexOf("WebKit");Pa=!La&&!Na&&!Ma&&"Gecko"==Za.product}var $a=La,ab=Ma,bb=Pa,cb=Na,db,eb=Xa();db=eb&&eb.platform||"";Qa=-1!=db.indexOf("Mac");Ta=-1!=db.indexOf("Win");Ua=-1!=db.indexOf("Linux");
|
|
var fb=!!Xa()&&-1!=(Xa().appVersion||"").indexOf("X11");function gb(){var a=ea.document;return a?a.documentMode:void 0}var hb;a:{var ib="",jb;if($a&&ea.opera)var kb=ea.opera.version,ib="function"==typeof kb?kb():kb;else if(bb?jb=/rv\:([^\);]+)(\)|;)/:ab?jb=/\b(?:MSIE|rv)\s+([^\);]+)(\)|;)/:cb&&(jb=/WebKit\/(\S+)/),jb)var lb=jb.exec(Va()),ib=lb?lb[1]:"";if(ab){var mb=gb();if(mb>parseFloat(ib)){hb=String(mb);break a}}hb=ib}var nb={};function ob(a){return nb[a]||(nb[a]=0<=Ka(hb,a))}
|
|
var pb=ea.document,qb=pb&&ab?gb()||("CSS1Compat"==pb.compatMode?parseInt(hb,10):5):void 0;var rb="https:"===ea.location.protocol,sb=ab&&!ob("9.0")&&""!==hb;function tb(a){Error.captureStackTrace?Error.captureStackTrace(this,tb):this.stack=Error().stack||"";a&&(this.message=String(a))}v(tb,Error);tb.prototype.name="CustomError";var ub=Array.prototype,vb=ub.indexOf?function(a,b,c){return ub.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(na(a))return na(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},wb=ub.forEach?function(a,b,c){ub.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=na(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},xb=ub.map?function(a,b,c){return ub.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),
|
|
f=na(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},yb=ub.some?function(a,b,c){return ub.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=na(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1};function zb(a,b){var c=Ab(a,b,void 0);return 0>c?null:na(a)?a.charAt(c):a[c]}function Ab(a,b,c){for(var d=a.length,e=na(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1}
|
|
function Bb(a,b){var c=vb(a,b),d;(d=0<=c)&&ub.splice.call(a,c,1);return d}function Cb(a){return ub.concat.apply(ub,arguments)}function Db(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function Eb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(la(d)||(e=ma(d))&&Object.prototype.hasOwnProperty.call(d,"callee"))a.push.apply(a,d);else if(e)for(var f=a.length,g=d.length,h=0;h<g;h++)a[f+h]=d[h];else a.push(d)}}
|
|
function Fb(a,b,c,d){ub.splice.apply(a,Gb(arguments,1))}function Gb(a,b,c){return 2>=arguments.length?ub.slice.call(a,b):ub.slice.call(a,b,c)}function Hb(a,b){ub.sort.call(a,b||Ib)}function Jb(a,b){if(!ma(a)||!ma(b)||a.length!=b.length)return!1;for(var c=a.length,d=Kb,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0}function Ib(a,b){return a>b?1:a<b?-1:0}function Kb(a,b){return a===b};function Lb(a,b,c){this.a=a;this.x=b;this.y=c}function Mb(a,b,c,d){return s(d)?(d.a=a,d.x=b,d.y=c,d):new Lb(a,b,c)}function Nb(a,b,c){return a+"/"+b+"/"+c}Lb.prototype.c=function(a){return s(a)?(a[0]=this.a,a[1]=this.x,a[2]=this.y,a):[this.a,this.x,this.y]};function Ob(a){var b=Array(a.a),c=1<<a.a-1,d,e;for(d=0;d<a.a;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}Lb.prototype.toString=function(){return Nb(this.a,this.x,this.y)};function Pb(a,b,c,d){this.a=a;this.d=b;this.b=c;this.c=d}function Qb(a,b,c,d,e){return s(e)?(e.a=a,e.d=b,e.b=c,e.c=d,e):new Pb(a,b,c,d)}Pb.prototype.contains=function(a){return this.a<=a.x&&a.x<=this.d&&this.b<=a.y&&a.y<=this.c};function Rb(a){this.c=a.html;this.a=s(a.tileRanges)?a.tileRanges:null};var Sb,Tb=!ab||ab&&9<=qb;!bb&&!ab||ab&&ab&&9<=qb||bb&&ob("1.9.1");ab&&ob("9");function Ub(a){a=a.className;return na(a)&&a.match(/\S+/g)||[]}function Vb(a,b){for(var c=Ub(a),d=Gb(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=vb(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e}function Wb(a,b,c){for(var d=Ub(a),e=!1,f=0;f<d.length;f++)d[f]==b&&(Fb(d,f--,1),e=!0);e&&(d.push(c),a.className=d.join(" "))};function Xb(a,b,c){return Math.min(Math.max(a,b),c)}function Yb(a,b){var c=a%b;return 0>c*b?c+b:c}function Zb(a){return a*Math.PI/180};function $b(a,b){this.x=s(a)?a:0;this.y=s(b)?b:0}l=$b.prototype;l.S=function(){return new $b(this.x,this.y)};l.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};l.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};l.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};l.scale=function(a,b){var c=oa(b)?b:a;this.x*=a;this.y*=c;return this};function bc(a,b){this.width=a;this.height=b}l=bc.prototype;l.S=function(){return new bc(this.width,this.height)};l.ma=function(){return!(this.width*this.height)};l.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};l.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
|
|
l.scale=function(a,b){var c=oa(b)?b:a;this.width*=a;this.height*=c;return this};function cc(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function dc(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function ec(a){var b=0,c;for(c in a)b++;return b}function fc(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function gc(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function hc(a){for(var b in a)return!1;return!0}function ic(a){for(var b in a)delete a[b]}function jc(a,b){b in a&&delete a[b]}function w(a,b,c){return b in a?a[b]:c}
|
|
function kc(a,b){var c=[];return b in a?a[b]:a[b]=c}function lc(a){var b={},c;for(c in a)b[c]=a[c];return b}var mc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function nc(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<mc.length;f++)c=mc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function oc(a){return a?new pc(qc(a)):Sb||(Sb=new pc)}function rc(a){return na(a)?document.getElementById(a):a}function sc(a,b){cc(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in tc?a.setAttribute(tc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}
|
|
var tc={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function uc(a){a=a.document.documentElement;return new bc(a.clientWidth,a.clientHeight)}
|
|
function vc(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!Tb&&g&&(g.name||g.type)){f=["\x3c",f];g.name&&f.push(' name\x3d"',Da(g.name),'"');if(g.type){f.push(' type\x3d"',Da(g.type),'"');var h={};nc(h,g);delete h.type;g=h}f.push("\x3e");f=f.join("")}f=e.createElement(f);g&&(na(g)?f.className=g:la(g)?Vb.apply(null,[f].concat(g)):sc(f,g));2<d.length&&wc(e,f,d,2);return f}
|
|
function wc(a,b,c,d){function e(c){c&&b.appendChild(na(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];!ma(f)||ra(f)&&0<f.nodeType?e(f):wb(xc(f)?Db(f):f,e)}}function zc(a){return document.createElement(a)}function Ac(a,b){wc(qc(a),a,arguments,1)}function Bc(a){for(var b;b=a.firstChild;)a.removeChild(b)}function Cc(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)}function Dc(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}
|
|
function Ec(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function Fc(a){if(void 0!=a.firstElementChild)a=a.firstElementChild;else for(a=a.firstChild;a&&1!=a.nodeType;)a=a.nextSibling;return a}function Gc(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}function qc(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
|
|
function xc(a){if(a&&"number"==typeof a.length){if(ra(a))return"function"==typeof a.item||"string"==typeof a.item;if(qa(a))return"function"==typeof a.item}return!1}function pc(a){this.a=a||ea.document||document}function Hc(a){var b=a.a;a=cb?b.body:b.documentElement;b=b.parentWindow||b.defaultView;return ab&&ob("10")&&b.pageYOffset!=a.scrollTop?new $b(a.scrollLeft,a.scrollTop):new $b(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}pc.prototype.appendChild=function(a,b){a.appendChild(b)};
|
|
pc.prototype.contains=Gc;function Ic(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}l=Ic.prototype;l.S=function(){return new Ic(this.top,this.right,this.bottom,this.left)};l.contains=function(a){return this&&a?a instanceof Ic?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
|
|
l.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};l.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};l.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
|
|
l.scale=function(a,b){var c=oa(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function Jc(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}l=Jc.prototype;l.S=function(){return new Jc(this.left,this.top,this.width,this.height)};l.contains=function(a){return a instanceof Jc?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};
|
|
l.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};l.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
|
|
l.scale=function(a,b){var c=oa(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function Kc(a,b){var c=qc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Lc(a,b){return Kc(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function Mc(a,b,c){var d,e=bb&&(Qa||fb)&&ob("1.9");b instanceof $b?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Nc(d,e);a.style.top=Nc(b,e)}
|
|
function Oc(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}ab&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
|
|
function Pc(a){if(ab&&!(ab&&8<=qb))return a.offsetParent;var b=qc(a),c=Lc(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Lc(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}
|
|
function Qc(a){var b,c=qc(a),d=Lc(a,"position"),e=bb&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new $b(0,0),g;b=c?qc(c):document;(g=!ab)||(g=ab&&9<=qb)||(oc(b),g=!0);g=g?b.documentElement:b.body;if(a==g)return f;if(a.getBoundingClientRect)b=Oc(a),a=Hc(oc(c)),f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(g),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{e=a;do{f.x+=
|
|
e.offsetLeft;f.y+=e.offsetTop;e!=a&&(f.x+=e.clientLeft||0,f.y+=e.clientTop||0);if(cb&&"fixed"==Lc(e,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}e=e.offsetParent}while(e&&e!=a);if($a||cb&&"absolute"==d)f.y-=c.body.offsetTop;for(e=a;(e=Pc(e))&&e!=c.body&&e!=g;)f.x-=e.scrollLeft,$a&&"TR"==e.tagName||(f.y-=e.scrollTop)}return f}function Rc(a,b){var c=Sc(a),d=Sc(b);return new $b(c.x-d.x,c.y-d.y)}
|
|
function Sc(a){if(1==a.nodeType){var b;if(a.getBoundingClientRect)b=Oc(a),b=new $b(b.left,b.top);else{b=Hc(oc(a));var c=Qc(a);b=new $b(c.x-b.x,c.y-b.y)}if(bb&&!ob(12)){var d;ab?d="-ms-transform":cb?d="-webkit-transform":$a?d="-o-transform":bb&&(d="-moz-transform");var e;d&&(e=Lc(a,d));e||(e=Lc(a,"transform"));a=e?(a=e.match(Tc))?new $b(parseFloat(a[1]),parseFloat(a[2])):new $b(0,0):new $b(0,0);a=new $b(b.x+a.x,b.y+a.y)}else a=b;return a}d=qa(a.wf);e=a;a.targetTouches?e=a.targetTouches[0]:d&&a.P.targetTouches&&
|
|
(e=a.P.targetTouches[0]);return new $b(e.clientX,e.clientY)}function Nc(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Vc(a){var b=Wc;if("none"!=Lc(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}
|
|
function Wc(a){var b=a.offsetWidth,c=a.offsetHeight,d=cb&&!b&&!c;return s(b)&&!d||!a.getBoundingClientRect?new bc(b,c):(a=Oc(a),new bc(a.right-a.left,a.bottom-a.top))}function Xc(a,b){var c=a.style;"opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity\x3d"+100*b+")")}function Yc(a,b){a.style.display=b?"":"none"}function Zc(a){return"rtl"==Lc(a,"direction")}
|
|
function $c(a){var b=qc(a),c=ab&&a.currentStyle,d;if(d=c)oc(b),d="auto"!=c.width&&"auto"!=c.height&&!c.boxSizing;if(d)return b=ad(a,c.width,"width","pixelWidth"),a=ad(a,c.height,"height","pixelHeight"),new bc(b,a);c=new bc(a.offsetWidth,a.offsetHeight);b=bd(a,"padding");a=cd(a);return new bc(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom)}
|
|
function ad(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],f=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=f;return b}function dd(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?ad(a,c,"left","pixelLeft"):0}
|
|
function bd(a,b){if(ab){var c=dd(a,b+"Left"),d=dd(a,b+"Right"),e=dd(a,b+"Top"),f=dd(a,b+"Bottom");return new Ic(e,d,f,c)}c=Kc(a,b+"Left");d=Kc(a,b+"Right");e=Kc(a,b+"Top");f=Kc(a,b+"Bottom");return new Ic(parseFloat(e),parseFloat(d),parseFloat(f),parseFloat(c))}var ed={thin:2,medium:4,thick:6};function fd(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;return c in ed?ed[c]:ad(a,c,"left","pixelLeft")}
|
|
function cd(a){if(ab){var b=fd(a,"borderLeft"),c=fd(a,"borderRight"),d=fd(a,"borderTop");a=fd(a,"borderBottom");return new Ic(d,c,a,b)}b=Kc(a,"borderLeftWidth");c=Kc(a,"borderRightWidth");d=Kc(a,"borderTopWidth");a=Kc(a,"borderBottomWidth");return new Ic(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var Tc=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function gd(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}gd.prototype.a=4;gd.prototype.c=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};gd.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(gd.BYTES_PER_ELEMENT=4,gd.prototype.BYTES_PER_ELEMENT=gd.prototype.a,gd.prototype.set=gd.prototype.c,gd.prototype.toString=gd.prototype.toString,t("Float32Array",gd));function hd(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}hd.prototype.a=8;hd.prototype.c=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};hd.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{hd.BYTES_PER_ELEMENT=8}catch(id){}hd.prototype.BYTES_PER_ELEMENT=hd.prototype.a;hd.prototype.set=hd.prototype.c;hd.prototype.toString=hd.prototype.toString;t("Float64Array",hd)};function jd(a,b,c,d,e){a[0]=b;a[1]=c;a[2]=d;a[3]=e};function kd(){var a=Array(16);ld(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function md(){var a=Array(16);ld(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function ld(a,b,c,d,e,f,g,h,m,n,p,q,r,u,y,B,z){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;a[6]=h;a[7]=m;a[8]=n;a[9]=p;a[10]=q;a[11]=r;a[12]=u;a[13]=y;a[14]=B;a[15]=z}
|
|
function nd(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4];a[5]=b[5];a[6]=b[6];a[7]=b[7];a[8]=b[8];a[9]=b[9];a[10]=b[10];a[11]=b[11];a[12]=b[12];a[13]=b[13];a[14]=b[14];a[15]=b[15]}function od(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1}
|
|
function pd(a,b,c){var d=a[0],e=a[1],f=a[2],g=a[3],h=a[4],m=a[5],n=a[6],p=a[7],q=a[8],r=a[9],u=a[10],y=a[11],B=a[12],z=a[13],F=a[14];a=a[15];var D=b[0],L=b[1],R=b[2],ha=b[3],T=b[4],pa=b[5],ya=b[6],Oa=b[7],Sa=b[8],ia=b[9],Wa=b[10],Ra=b[11],Uc=b[12],ac=b[13],yc=b[14];b=b[15];c[0]=d*D+h*L+q*R+B*ha;c[1]=e*D+m*L+r*R+z*ha;c[2]=f*D+n*L+u*R+F*ha;c[3]=g*D+p*L+y*R+a*ha;c[4]=d*T+h*pa+q*ya+B*Oa;c[5]=e*T+m*pa+r*ya+z*Oa;c[6]=f*T+n*pa+u*ya+F*Oa;c[7]=g*T+p*pa+y*ya+a*Oa;c[8]=d*Sa+h*ia+q*Wa+B*Ra;c[9]=e*Sa+m*ia+r*Wa+
|
|
z*Ra;c[10]=f*Sa+n*ia+u*Wa+F*Ra;c[11]=g*Sa+p*ia+y*Wa+a*Ra;c[12]=d*Uc+h*ac+q*yc+B*b;c[13]=e*Uc+m*ac+r*yc+z*b;c[14]=f*Uc+n*ac+u*yc+F*b;c[15]=g*Uc+p*ac+y*yc+a*b}function qd(a,b,c){var d=a[1]*b+a[5]*c+0*a[9]+a[13],e=a[2]*b+a[6]*c+0*a[10]+a[14],f=a[3]*b+a[7]*c+0*a[11]+a[15];a[12]=a[0]*b+a[4]*c+0*a[8]+a[12];a[13]=d;a[14]=e;a[15]=f}function rd(a,b,c){ld(a,a[0]*b,a[1]*b,a[2]*b,a[3]*b,a[4]*c,a[5]*c,a[6]*c,a[7]*c,1*a[8],1*a[9],1*a[10],1*a[11],a[12],a[13],a[14],a[15])}
|
|
function sd(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],h=a[5],m=a[6],n=a[7],p=Math.cos(b),q=Math.sin(b);a[0]=c*p+g*q;a[1]=d*p+h*q;a[2]=e*p+m*q;a[3]=f*p+n*q;a[4]=c*-q+g*p;a[5]=d*-q+h*p;a[6]=e*-q+m*p;a[7]=f*-q+n*p}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function td(a,b){var c=zc("CANVAS");s(a)&&(c.width=a);s(b)&&(c.height=b);return c.getContext("2d")}
|
|
var ud=function(){var a;return function(){if(!s(a))if(ea.getComputedStyle){var b=zc("P"),c,d={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(b);for(var e in d)e in b.style&&(b.style[e]="translate(1px,1px)",c=ea.getComputedStyle(b).getPropertyValue(d[e]));Ec(b);a=c&&"none"!==c}else a=!1;return a}}(),vd=function(){var a;return function(){if(!s(a))if(ea.getComputedStyle){var b=zc("P"),
|
|
c,d={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(b);for(var e in d)e in b.style&&(b.style[e]="translate3d(1px,1px,1px)",c=ea.getComputedStyle(b).getPropertyValue(d[e]));Ec(b);a=c&&"none"!==c}else a=!1;return a}}();function wd(a,b){var c=a.style;c.WebkitTransform=b;c.MozTransform=b;c.a=b;c.msTransform=b;c.transform=b;ab&&!sb&&(a.style.transformOrigin="0 0")}
|
|
function xd(a,b){var c;if(vd()){if(s(6)){var d=Array(16);for(c=0;16>c;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");wd(a,"matrix3d("+c+")")}else if(ud()){d=[b[0],b[1],b[4],b[5],b[12],b[13]];if(s(6)){var e=Array(6);for(c=0;6>c;++c)e[c]=d[c].toFixed(6);c=e.join(",")}else c=d.join(",");wd(a,"matrix("+c+")")}else a.style.left=Math.round(b[12])+"px",a.style.top=Math.round(b[13])+"px"};var yd=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function zd(a,b){var c,d,e=yd.length;for(d=0;d<e;++d)try{if(c=a.getContext(yd[d],b),null!==c)return c}catch(f){}return null};var Ad=ea.devicePixelRatio||1,Bd="ArrayBuffer"in ea,Cd=!1,Dd=function(){if(!("HTMLCanvasElement"in ea))return!1;try{var a=td();if(null===a)return!1;s(a.setLineDash)&&(Cd=!0);return!0}catch(b){return!1}}(),Ed="DeviceOrientationEvent"in ea,Fd="geolocation"in ea.navigator,Gd="JSON"in ea&&"parse"in ea.JSON,Hd="ontouchstart"in ea,Id="PointerEvent"in ea,Jd=!!ea.navigator.msPointerEnabled,Kd=function(){if(!("WebGLRenderingContext"in ea))return!1;try{var a=zc("CANVAS");return!ka(zd(a,{uf:!0}))}catch(b){return!1}}();function Ld(){0!=Md&&(this.Wi=Error().stack,Nd[sa(this)]=this)}var Md=0,Nd={};Ld.prototype.Ta=!1;Ld.prototype.gc=function(){if(!this.Ta&&(this.Ta=!0,this.H(),0!=Md)){var a=sa(this);delete Nd[a]}};function Od(a,b){var c=za(Pd,b);a.ua||(a.ua=[]);a.ua.push(xa(c,void 0))}Ld.prototype.H=function(){if(this.ua)for(;this.ua.length;)this.ua.shift()()};function Pd(a){a&&"function"==typeof a.gc&&a.gc()};function Qd(a,b){this.type=a;this.c=this.target=b}l=Qd.prototype;l.gc=ba();l.sb=!1;l.Uf=!1;l.Pe=!0;l.Pa=function(){this.sb=!0};l.preventDefault=function(){this.Uf=!0;this.Pe=!1};function Rd(a){a.Pa()}function Sd(a){a.preventDefault()};var Td=!ab||ab&&9<=qb,Ud=!ab||ab&&9<=qb,Vd=ab&&!ob("9");!cb||ob("528");bb&&ob("1.9b")||ab&&ob("8")||$a&&ob("9.5")||cb&&ob("528");bb&&!ob("8")||ab&&ob("9");var Wd=ab?"focusout":"DOMFocusOut";function Xd(a){Xd[" "](a);return a}Xd[" "]=fa;function Yd(a,b){a&&Zd(this,a,b)}v(Yd,Qd);var $d=[1,4,2];l=Yd.prototype;l.target=null;l.relatedTarget=null;l.offsetX=0;l.offsetY=0;l.clientX=0;l.clientY=0;l.screenX=0;l.screenY=0;l.button=0;l.$a=0;l.ud=0;l.qc=!1;l.pa=!1;l.ab=!1;l.vd=!1;l.Vb=!1;l.P=null;
|
|
function Zd(a,b,c){var d=a.type=b.type;Qd.call(a,d);a.target=b.target||b.srcElement;a.c=c;if(c=b.relatedTarget){if(bb){var e;a:{try{Xd(c.nodeName);e=!0;break a}catch(f){}e=!1}e||(c=null)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.relatedTarget=c;a.offsetX=cb||void 0!==b.offsetX?b.offsetX:b.layerX;a.offsetY=cb||void 0!==b.offsetY?b.offsetY:b.layerY;a.clientX=void 0!==b.clientX?b.clientX:b.pageX;a.clientY=void 0!==b.clientY?b.clientY:b.pageY;a.screenX=b.screenX||0;a.screenY=
|
|
b.screenY||0;a.button=b.button;a.$a=b.keyCode||0;a.ud=b.charCode||("keypress"==d?b.keyCode:0);a.qc=b.ctrlKey;a.pa=b.altKey;a.ab=b.shiftKey;a.vd=b.metaKey;a.Vb=Qa?b.metaKey:b.ctrlKey;a.state=b.state;a.P=b;b.defaultPrevented&&a.preventDefault();delete a.sb}function ae(a){return(Td?0==a.P.button:"click"==a.type?!0:!!(a.P.button&$d[0]))&&!(cb&&Qa&&a.qc)}l.Pa=function(){Yd.K.Pa.call(this);this.P.stopPropagation?this.P.stopPropagation():this.P.cancelBubble=!0};
|
|
l.preventDefault=function(){Yd.K.preventDefault.call(this);var a=this.P;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Vd)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};l.wf=k("P");var be="closure_listenable_"+(1E6*Math.random()|0);function ce(a){return!(!a||!a[be])}var de=0;function ee(a,b,c,d,e,f){this.Qa=a;this.a=b;this.src=c;this.type=d;this.capture=!!e;this.Bb=f;this.key=++de;this.eb=this.Mb=!1}function fe(a){a.eb=!0;a.Qa=null;a.a=null;a.src=null;a.Bb=null};var ge={},he={},ie={},je={};function x(a,b,c,d,e){if(la(b)){for(var f=0;f<b.length;f++)x(a,b[f],c,d,e);return null}c=ke(c);return ce(a)?a.qa(b,c,d,e):le(a,b,c,!1,d,e)}
|
|
function le(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");e=!!e;var g=he;b in g||(g[b]={O:0});g=g[b];e in g||(g[e]={O:0},g.O++);var g=g[e],h=sa(a),m;if(g[h]){m=g[h];for(var n=0;n<m.length;n++)if(g=m[n],g.Qa==c&&g.Bb==f){if(g.eb)break;d||(m[n].Mb=!1);return m[n]}}else m=g[h]=[],g.O++;n=me();g=new ee(c,n,a,b,e,f);g.Mb=d;n.src=a;n.Qa=g;m.push(g);ie[h]||(ie[h]=[]);ie[h].push(g);a.addEventListener?a.addEventListener(b,n,e):a.attachEvent(b in je?je[b]:je[b]="on"+b,n);return ge[g.key]=g}
|
|
function me(){var a=ne,b=Ud?function(c){return a.call(b.src,b.Qa,c)}:function(c){c=a.call(b.src,b.Qa,c);if(!c)return c};return b}function oe(a,b,c,d,e){if(la(b)){for(var f=0;f<b.length;f++)oe(a,b[f],c,d,e);return null}c=ke(c);return ce(a)?a.ja.add(b,c,!0,d,e):le(a,b,c,!0,d,e)}function pe(a,b,c,d,e){if(la(b))for(var f=0;f<b.length;f++)pe(a,b[f],c,d,e);else if(c=ke(c),ce(a))a.Sd(b,c,d,e);else if(d=!!d,a=qe(a,b,d))for(f=0;f<a.length;f++)if(a[f].Qa==c&&a[f].capture==d&&a[f].Bb==e){re(a[f]);break}}
|
|
function re(a){if(oa(a)||!a||a.eb)return!1;var b=a.src;if(ce(b))return se(b.ja,a);var c=a.type,d=a.a,e=a.capture;b.removeEventListener?b.removeEventListener(c,d,e):b.detachEvent&&b.detachEvent(c in je?je[c]:je[c]="on"+c,d);b=sa(b);ie[b]&&(d=ie[b],Bb(d,a),0==d.length&&delete ie[b]);fe(a);if(d=he[c][e][b])Bb(d,a),0==d.length&&(delete he[c][e][b],he[c][e].O--),0==he[c][e].O&&(delete he[c][e],he[c].O--),0==he[c].O&&delete he[c];delete ge[a.key];return!0}
|
|
function qe(a,b,c){var d=he;return b in d&&(d=d[b],c in d&&(d=d[c],a=sa(a),d[a]))?d[a]:null}function te(a){if(ce(a))return ue(a.ja,void 0);a=sa(a);var b=ie[a];if(b){var c=s(void 0),d=s(void 0);return c&&d?(b=he[void 0],!!b&&!!b[void 0]&&a in b[void 0]):c||d?yb(b,function(a){return c&&void 0==a.type||d&&void 0==a.capture}):!0}return!1}function ve(a,b,c){var d=1;b=sa(b);if(a[b])for(a=Db(a[b]),b=0;b<a.length;b++){var e=a[b];e&&!e.eb&&(d&=!1!==we(e,c))}return Boolean(d)}
|
|
function we(a,b){var c=a.Qa,d=a.Bb||a.src;a.Mb&&re(a);return c.call(d,b)}
|
|
function ne(a,b){if(a.eb)return!0;var c=a.type,d=he;if(!(c in d))return!0;var d=d[c],e,f;if(!Ud){if(!(c=b))a:{for(var c=["window","event"],g=ea;e=c.shift();)if(null!=g[e])g=g[e];else{c=null;break a}c=g}e=c;c=!0 in d;g=!1 in d;if(c){if(0>e.keyCode||void 0!=e.returnValue)return!0;a:{var h=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(m){h=!0}if(h||void 0==e.returnValue)e.returnValue=!0}}h=new Yd;Zd(h,e,this);e=!0;try{if(c){for(var n=[],p=h.c;p;p=p.parentNode)n.push(p);f=d[!0];for(var q=n.length-
|
|
1;!h.sb&&0<=q;q--)h.c=n[q],e&=ve(f,n[q],h);if(g)for(f=d[!1],q=0;!h.sb&&q<n.length;q++)h.c=n[q],e&=ve(f,n[q],h)}else e=we(a,h)}finally{n&&(n.length=0)}return e}d=new Yd(b,this);return e=we(a,d)}var xe="__closure_events_fn_"+(1E9*Math.random()>>>0);function ke(a){return qa(a)?a:a[xe]||(a[xe]=function(b){return a.handleEvent(b)})};function ye(a){return function(){return a}}var ze=ye(!1),Ae=ye(!0);function Be(a){return a}function Ce(a){return function(){throw a;}}function De(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}function Ee(a){var b=arguments,c=b.length;return function(){for(var a=0;a<c;a++)if(!b[a].apply(this,arguments))return!1;return!0}};function Fe(a){this.src=a;this.a={};this.c=0}Fe.prototype.add=function(a,b,c,d,e){var f=this.a[a];f||(f=this.a[a]=[],this.c++);var g=Ge(f,b,d,e);-1<g?(a=f[g],c||(a.Mb=!1)):(a=new ee(b,null,this.src,a,!!d,e),a.Mb=c,f.push(a));return a};Fe.prototype.remove=function(a,b,c,d){if(!(a in this.a))return!1;var e=this.a[a];b=Ge(e,b,c,d);return-1<b?(fe(e[b]),ub.splice.call(e,b,1),0==e.length&&(delete this.a[a],this.c--),!0):!1};
|
|
function se(a,b){var c=b.type;if(!(c in a.a))return!1;var d=Bb(a.a[c],b);d&&(fe(b),0==a.a[c].length&&(delete a.a[c],a.c--));return d}function ue(a,b){var c=s(b),d=s(void 0);return dc(a.a,function(a){for(var f=0;f<a.length;++f)if(!(c&&a[f].type!=b||d&&void 0!=a[f].capture))return!0;return!1})}function Ge(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.eb&&f.Qa==b&&f.capture==!!c&&f.Bb==d)return e}return-1};function He(){Ld.call(this);this.ja=new Fe(this);this.$e=this}v(He,Ld);He.prototype[be]=!0;l=He.prototype;l.Ld=null;l.addEventListener=function(a,b,c,d){x(this,a,b,c,d)};l.removeEventListener=function(a,b,c,d){pe(this,a,b,c,d)};
|
|
function A(a,b){var c,d=a.Ld;if(d)for(c=[];d;d=d.Ld)c.push(d);var d=a.$e,e=b,f=e.type||e;if(na(e))e=new Qd(e,d);else if(e instanceof Qd)e.target=e.target||d;else{var g=e,e=new Qd(f,d);nc(e,g)}var g=!0,h;if(c)for(var m=c.length-1;!e.sb&&0<=m;m--)h=e.c=c[m],g=Ie(h,f,!0,e)&&g;e.sb||(h=e.c=d,g=Ie(h,f,!0,e)&&g,e.sb||(g=Ie(h,f,!1,e)&&g));if(c)for(m=0;!e.sb&&m<c.length;m++)h=e.c=c[m],g=Ie(h,f,!1,e)&&g;return g}
|
|
l.H=function(){He.K.H.call(this);if(this.ja){var a=this.ja,b=0,c;for(c in a.a){for(var d=a.a[c],e=0;e<d.length;e++)++b,d[e].eb=!0;delete a.a[c];a.c--}}this.Ld=null};l.qa=function(a,b,c,d){return this.ja.add(a,b,!1,c,d)};l.Sd=function(a,b,c,d){return this.ja.remove(a,b,c,d)};function Ie(a,b,c,d){b=a.ja.a[b];if(!b)return!0;b=Db(b);for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.eb&&g.capture==c){var h=g.Qa,m=g.Bb||g.src;g.Mb&&se(a.ja,g);e=!1!==h.call(m,d)&&e}}return e&&!1!=d.Pe};function Je(){He.call(this);this.c=0}v(Je,He);l=Je.prototype;l.l=function(){++this.c;A(this,"change")};l.u=function(a,b,c){return x(this,a,b,!1,c)};l.v=function(a,b,c){return oe(this,a,b,!1,c)};l.A=function(a,b,c){pe(this,a,b,!1,c)};l.B=function(a){re(a)};function Ke(a,b){Qd.call(this,a);this.key=b}v(Ke,Qd);function Le(a,b){this.target=a;this.key=b;this.c=this.a=Be}Le.prototype.transform=function(a,b){this.a=a;this.c=b;this.target.V(this.key)};function Me(a){Je.call(this);sa(this);this.q={};this.ea={};this.Kb={};this.Lb={};s(a)&&this.J(a)}v(Me,Je);var Ne={},Oe={},Pe={};function Qe(a){return Ne.hasOwnProperty(a)?Ne[a]:Ne[a]="change:"+a.toLowerCase()}l=Me.prototype;
|
|
l.Y=function(a,b,c){c=c||a;this.X(a);var d=Qe(c);this.Lb[a]=x(b,d,function(){Re(this,a)},void 0,this);this.Kb[a]=x(b,"beforepropertychange",Se(a,c),void 0,this);b=new Le(b,c);this.ea[a]=b;Re(this,a);return b};function Se(a,b){return function(c){c.key===b&&A(this,new Ke("beforepropertychange",a))}}
|
|
l.get=function(a){var b,c=this.ea;if(c.hasOwnProperty(a)){a=c[a];b=a.target;var c=a.key,d=Oe.hasOwnProperty(c)?Oe[c]:Oe[c]="get"+(c.substr(0,1).toUpperCase()+c.substr(1)),d=w(b,d);b=s(d)?d.call(b):b.get(c);b=a.c(b)}else this.q.hasOwnProperty(a)&&(b=this.q[a]);return b};l.M=function(){var a=this.ea,b;if(hc(this.q)){if(hc(a))return[];b=a}else if(hc(a))b=this.q;else{b={};for(var c in this.q)b[c]=!0;for(c in a)b[c]=!0}return gc(b)};
|
|
l.T=function(){var a={},b;for(b in this.q)a[b]=this.q[b];for(b in this.ea)a[b]=this.get(b);return a};l.V=function(a){var b=this.ea;b.hasOwnProperty(a)?(a=b[a],a.target.V(a.key)):Re(this,a)};function Re(a,b){var c=Qe(b);A(a,c);A(a,new Ke("propertychange",b))}
|
|
l.s=function(a,b){A(this,new Ke("beforepropertychange",a));var c=this.ea;if(c.hasOwnProperty(a)){var d=c[a],c=d.target,e=d.key;b=d.a(b);d=Pe.hasOwnProperty(e)?Pe[e]:Pe[e]="set"+(e.substr(0,1).toUpperCase()+e.substr(1));d=w(c,d);s(d)?d.call(c,b):c.s(e,b)}else this.q[a]=b,Re(this,a)};l.J=function(a){for(var b in a)this.s(b,a[b])};l.X=function(a){var b=this.Lb,c=b[a];c&&(delete b[a],re(c),b=this.get(a),delete this.ea[a],this.q[a]=b);if(b=this.Kb[a])re(b),delete this.Kb[a]};l.Z=function(){for(var a in this.Lb)this.X(a)};function Ue(a,b,c){Qd.call(this,a,c);this.element=b}v(Ue,Qd);function C(a){Me.call(this);this.a=a||[];Ve(this)}v(C,Me);l=C.prototype;l.clear=function(){for(;0<this.Cb();)this.pop()};l.Og=function(a){var b,c;b=0;for(c=a.length;b<c;++b)this.push(a[b]);return this};l.forEach=function(a,b){wb(this.a,a,b)};l.Pg=k("a");l.item=function(a){return this.a[a]};l.Cb=function(){return this.get("length")};l.Tc=function(a,b){Fb(this.a,a,0,b);Ve(this);A(this,new Ue("add",b,this))};
|
|
l.pop=function(){return this.cd(this.Cb()-1)};l.push=function(a){var b=this.a.length;this.Tc(b,a);return b};l.remove=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)if(b[c]===a)return this.cd(c)};l.cd=function(a){var b=this.a[a];ub.splice.call(this.a,a,1);Ve(this);A(this,new Ue("remove",b,this));return b};l.ri=function(a,b){var c=this.Cb();if(a<c)c=this.a[a],this.a[a]=b,A(this,new Ue("remove",c,this)),A(this,new Ue("add",b,this));else{for(;c<a;++c)this.Tc(c,void 0);this.Tc(a,b)}};
|
|
function Ve(a){a.s("length",a.a.length)};function We(a,b){a[0]+=b[0];a[1]+=b[1];return a}function Xe(a,b){var c=a[0],d=a[1],e=b[0],f=b[1],g=e[0],e=e[1],h=f[0],f=f[1],m=h-g,n=f-e,c=0===m&&0===n?0:(m*(c-g)+n*(d-e))/(m*m+n*n||0);0>=c||(1<=c?(g=h,e=f):(g+=c*m,e+=c*n));return[g,e]}function Ye(a,b){var c=Yb(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)}
|
|
function Ze(a,b,c){return s(a)?b.replace("{x}",a[0].toFixed(c)).replace("{y}",a[1].toFixed(c)):""}function $e(a,b){for(var c=!0,d=a.length-1;0<=d;--d)if(a[d]!=b[d]){c=!1;break}return c}function af(a,b){var c=Math.cos(b),d=Math.sin(b),e=a[1]*c+a[0]*d;a[0]=a[0]*c-a[1]*d;a[1]=e;return a}function bf(a,b){var c=a[0]-b[0],d=a[1]-b[1];return c*c+d*d}function cf(a,b){return Ze(a,"{x}, {y}",b)};function E(a){Me.call(this);a=s(a)?a:{};this.a=null;x(this,Qe("tracking"),this.k,!1,this);this.b(s(a.tracking)?a.tracking:!1)}v(E,Me);E.prototype.H=function(){this.b(!1);E.K.H.call(this)};
|
|
E.prototype.n=function(a){a=a.P;if(null!=a.alpha){var b=Zb(a.alpha);this.s("alpha",b);"boolean"==typeof a.absolute&&a.absolute?this.s("heading",b):null!=a.webkitCompassHeading&&(null!=a.webkitCompassAccuracy&&-1!=a.webkitCompassAccuracy)&&this.s("heading",Zb(a.webkitCompassHeading))}null!=a.beta&&this.s("beta",Zb(a.beta));null!=a.gamma&&this.s("gamma",Zb(a.gamma));this.l()};E.prototype.e=function(){return this.get("alpha")};E.prototype.getAlpha=E.prototype.e;E.prototype.f=function(){return this.get("beta")};
|
|
E.prototype.getBeta=E.prototype.f;E.prototype.i=function(){return this.get("gamma")};E.prototype.getGamma=E.prototype.i;E.prototype.g=function(){return this.get("heading")};E.prototype.getHeading=E.prototype.g;E.prototype.d=function(){return this.get("tracking")};E.prototype.getTracking=E.prototype.d;E.prototype.k=function(){if(Ed){var a=this.d();a&&null===this.a?this.a=x(ea,"deviceorientation",this.n,!1,this):a||null===this.a||(re(this.a),this.a=null)}};
|
|
E.prototype.b=function(a){this.s("tracking",a)};E.prototype.setTracking=E.prototype.b;function df(a,b,c){Qd.call(this,a);this.map=b;this.frameState=s(c)?c:null}v(df,Qd);function ef(a,b,c){Qd.call(this,a);this.a=b;a=s(c)?c:{};this.buttons=ff(a);this.Md=gf(a,this.buttons);this.bubbles=w(a,"bubbles",!1);this.cancelable=w(a,"cancelable",!1);this.view=w(a,"view",null);this.detail=w(a,"detail",null);this.screenX=w(a,"screenX",0);this.screenY=w(a,"screenY",0);this.clientX=w(a,"clientX",0);this.clientY=w(a,"clientY",0);this.d=w(a,"ctrlKey",!1);this.b=w(a,"altKey",!1);this.i=w(a,"shiftKey",!1);this.f=w(a,"metaKey",!1);this.button=w(a,"button",0);this.relatedTarget=w(a,"relatedTarget",
|
|
null);this.pointerId=w(a,"pointerId",0);this.width=w(a,"width",0);this.height=w(a,"height",0);this.g=w(a,"tiltX",0);this.k=w(a,"tiltY",0);this.pointerType=w(a,"pointerType","");this.e=w(a,"hwTimestamp",0);this.Uc=w(a,"isPrimary",!1);b.preventDefault&&(this.preventDefault=function(){b.preventDefault()})}v(ef,Qd);function ff(a){if(a.buttons||hf)a=a.buttons;else switch(a.which){case 1:a=1;break;case 2:a=4;break;case 3:a=2;break;default:a=0}return a}
|
|
function gf(a,b){var c=0;return c=a.Md?a.Md:b?0.5:0}var hf=!1;try{hf=1===(new MouseEvent("click",{buttons:1})).buttons}catch(jf){};function kf(a,b){this.a=a;this.e=b};function lf(a){kf.call(this,a,{mousedown:this.Ag,mousemove:this.Bg,mouseup:this.Eg,mouseover:this.Dg,mouseout:this.Cg});this.c=a.c;this.b=[]}v(lf,kf);function mf(a,b){for(var c=a.b,d=b.clientX,e=b.clientY,f=0,g=c.length,h;f<g&&(h=c[f]);f++){var m=Math.abs(e-h[1]);if(25>=Math.abs(d-h[0])&&25>=m)return!0}return!1}function nf(a){var b=of(a,a.P),c=b.preventDefault;b.preventDefault=function(){a.preventDefault();c()};b.pointerId=1;b.Uc=!0;b.pointerType="mouse";return b}l=lf.prototype;
|
|
l.Ag=function(a){if(!mf(this,a)){(1).toString()in this.c&&this.cancel(a);var b=nf(a);this.c[(1).toString()]=a;pf(this.a,qf,b,a)}};l.Bg=function(a){if(!mf(this,a)){var b=nf(a);pf(this.a,rf,b,a)}};l.Eg=function(a){if(!mf(this,a)){var b=w(this.c,(1).toString());b&&b.button===a.button&&(b=nf(a),pf(this.a,sf,b,a),jc(this.c,(1).toString()))}};l.Dg=function(a){if(!mf(this,a)){var b=nf(a);tf(this.a,b,a)}};l.Cg=function(a){if(!mf(this,a)){var b=nf(a);uf(this.a,b,a)}};
|
|
l.cancel=function(a){var b=nf(a);this.a.cancel(b,a);jc(this.c,(1).toString())};function vf(a){kf.call(this,a,{MSPointerDown:this.Jg,MSPointerMove:this.Kg,MSPointerUp:this.Ng,MSPointerOut:this.Lg,MSPointerOver:this.Mg,MSPointerCancel:this.Ig,MSGotPointerCapture:this.Gg,MSLostPointerCapture:this.Hg});this.c=a.c;this.b=["","unavailable","touch","pen","mouse"]}v(vf,kf);function wf(a,b){var c=b;oa(b.P.pointerType)&&(c=of(b,b.P),c.pointerType=a.b[b.P.pointerType]);return c}l=vf.prototype;l.Jg=function(a){this.c[a.P.pointerId]=a;var b=wf(this,a);pf(this.a,qf,b,a)};
|
|
l.Kg=function(a){var b=wf(this,a);pf(this.a,rf,b,a)};l.Ng=function(a){var b=wf(this,a);pf(this.a,sf,b,a);jc(this.c,a.P.pointerId)};l.Lg=function(a){var b=wf(this,a);uf(this.a,b,a)};l.Mg=function(a){var b=wf(this,a);tf(this.a,b,a)};l.Ig=function(a){var b=wf(this,a);this.a.cancel(b,a);jc(this.c,a.P.pointerId)};l.Hg=function(a){A(this.a,new ef("lostpointercapture",a,a.P))};l.Gg=function(a){A(this.a,new ef("gotpointercapture",a,a.P))};function xf(a){kf.call(this,a,{pointerdown:this.Zh,pointermove:this.$h,pointerup:this.ci,pointerout:this.ai,pointerover:this.bi,pointercancel:this.Yh,gotpointercapture:this.Vf,lostpointercapture:this.yg})}v(xf,kf);l=xf.prototype;l.Zh=function(a){yf(this.a,a)};l.$h=function(a){yf(this.a,a)};l.ci=function(a){yf(this.a,a)};l.ai=function(a){yf(this.a,a)};l.bi=function(a){yf(this.a,a)};l.Yh=function(a){yf(this.a,a)};l.yg=function(a){yf(this.a,a)};l.Vf=function(a){yf(this.a,a)};function zf(a,b){kf.call(this,a,{touchstart:this.yi,touchmove:this.xi,touchend:this.wi,touchcancel:this.vi});this.c=a.c;this.i=b;this.b=void 0;this.f=0;this.d=void 0}v(zf,kf);l=zf.prototype;l.Oe=function(){this.f=0;this.d=void 0};
|
|
function Af(a,b,c){b=of(b,c);b.pointerId=c.identifier+2;b.bubbles=!0;b.cancelable=!0;b.detail=a.f;b.button=0;b.buttons=1;b.width=c.webkitRadiusX||c.radiusX||0;b.height=c.webkitRadiusY||c.radiusY||0;b.Md=c.webkitForce||c.force||0.5;b.Uc=a.b===c.identifier;b.pointerType="touch";b.clientX=c.clientX;b.clientY=c.clientY;b.screenX=c.screenX;b.screenY=c.screenY;return b}
|
|
function Bf(a,b,c){function d(){b.preventDefault()}var e=Array.prototype.slice.call(b.P.changedTouches),f=e.length,g,h;for(g=0;g<f;++g)h=Af(a,b,e[g]),h.preventDefault=d,c.call(a,b,h)}
|
|
l.yi=function(a){var b=a.P.touches,c=gc(this.c),d=c.length;if(d>=b.length){var e=[],f,g,h;for(f=0;f<d;++f){g=c[f];h=this.c[g];var m;if(!(m=1==g))a:{m=b.length;for(var n=void 0,p=0;p<m;p++)if(n=b[p],n.identifier===g-2){m=!0;break a}m=!1}m||e.push(h.Eb)}for(f=0;f<e.length;++f)this.pd(a,e[f])}b=ec(this.c);if(!(c=0===b)){if(b=1===b)b=(1).toString()in this.c;c=b}c&&(this.b=a.P.changedTouches[0].identifier,s(this.d)&&ea.clearTimeout(this.d));Cf(this,a);this.f++;Bf(this,a,this.Xh)};
|
|
l.Xh=function(a,b){this.c[b.pointerId]={target:b.target,Eb:b,Je:b.target};var c=this.a;b.bubbles=!0;pf(c,Df,b,a);c=this.a;b.bubbles=!1;pf(c,Ef,b,a);pf(this.a,qf,b,a)};l.xi=function(a){a.preventDefault();Bf(this,a,this.Fg)};l.Fg=function(a,b){var c=w(this.c,b.pointerId);if(c){var d=c.Eb,e=c.Je;pf(this.a,rf,b,a);d&&e!==b.target&&(d.relatedTarget=b.target,b.relatedTarget=e,d.target=e,b.target?(uf(this.a,d,a),tf(this.a,b,a)):(b.target=e,b.relatedTarget=null,this.pd(a,b)));c.Eb=b;c.Je=b.target}};
|
|
l.wi=function(a){Cf(this,a);Bf(this,a,this.zi)};l.zi=function(a,b){pf(this.a,sf,b,a);this.a.Eb(b,a);var c=this.a;b.bubbles=!1;pf(c,Ff,b,a);jc(this.c,b.pointerId);b.Uc&&(this.b=void 0,this.d=ea.setTimeout(xa(this.Oe,this),200))};l.vi=function(a){Bf(this,a,this.pd)};l.pd=function(a,b){this.a.cancel(b,a);this.a.Eb(b,a);var c=this.a;b.bubbles=!1;pf(c,Ff,b,a);jc(this.c,b.pointerId);b.Uc&&(this.b=void 0,this.d=ea.setTimeout(xa(this.Oe,this),200))};
|
|
function Cf(a,b){var c=a.i.b,d=b.P.changedTouches[0];if(a.b===d.identifier){var e=[d.clientX,d.clientY];c.push(e);ea.setTimeout(function(){Bb(c,e)},2500)}};function Gf(a){He.call(this);this.d=a;this.c={};this.b={};this.a=[];Id?Hf(this,new xf(this)):Jd?Hf(this,new vf(this)):(a=new lf(this),Hf(this,a),Hd&&Hf(this,new zf(this,a)));a=this.a.length;for(var b,c=0;c<a;c++)b=this.a[c],If(this,gc(b.e))}v(Gf,He);function Hf(a,b){var c=gc(b.e);c&&(wb(c,function(a){var c=b.e[a];c&&(this.b[a]=xa(c,b))},a),a.a.push(b))}Gf.prototype.e=function(a){var b=this.b[a.type];b&&b(a)};function If(a,b){wb(b,function(a){x(this.d,a,this.e,!1,this)},a)}
|
|
function Jf(a,b){wb(b,function(a){pe(this.d,a,this.e,!1,this)},a)}function of(a,b){for(var c={},d,e=0,f=Kf.length;e<f;e++)d=Kf[e][0],c[d]=a[d]||b[d]||Kf[e][1];return c}Gf.prototype.Eb=function(a,b){a.bubbles=!0;pf(this,Lf,a,b)};Gf.prototype.cancel=function(a,b){pf(this,Mf,a,b)};function uf(a,b,c){a.Eb(b,c);b.target.contains(b.relatedTarget)||(b.bubbles=!1,pf(a,Ff,b,c))}function tf(a,b,c){b.bubbles=!0;pf(a,Df,b,c);b.target.contains(b.relatedTarget)||(b.bubbles=!1,pf(a,Ef,b,c))}
|
|
function pf(a,b,c,d){A(a,new ef(b,d,c))}function yf(a,b){A(a,new ef(b.type,b,b.P))}Gf.prototype.H=function(){for(var a=this.a.length,b,c=0;c<a;c++)b=this.a[c],Jf(this,gc(b.e));Gf.K.H.call(this)};
|
|
var rf="pointermove",qf="pointerdown",sf="pointerup",Df="pointerover",Lf="pointerout",Ef="pointerenter",Ff="pointerleave",Mf="pointercancel",Kf=[["bubbles",!1],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",
|
|
!1],["type",""],["target",null],["currentTarget",null],["which",0]];function Nf(a,b,c,d){df.call(this,a,b,d);this.a=c;this.originalEvent=c.P;this.coordinate=b.ke(this.originalEvent);this.pixel=b.sd(this.originalEvent)}v(Nf,df);Nf.prototype.preventDefault=function(){Nf.K.preventDefault.call(this);this.a.preventDefault()};Nf.prototype.Pa=function(){Nf.K.Pa.call(this);this.a.Pa()};function Of(a,b,c,d){Nf.call(this,a,b,c.a,d);this.b=c}v(Of,Nf);
|
|
function Pf(a){He.call(this);this.c=a;this.e=0;this.g=!1;this.f=this.i=this.b=null;a=this.c.b;this.q=0;this.n={};this.d=new Gf(a);this.a=null;this.i=x(this.d,qf,this.kg,!1,this);this.k=x(this.d,rf,this.hi,!1,this)}v(Pf,He);function Qf(a,b){var c;c=new Of(Rf,a.c,b);A(a,c);0!==a.e?(ea.clearTimeout(a.e),a.e=0,c=new Of(Sf,a.c,b),A(a,c)):a.e=ea.setTimeout(xa(function(){this.e=0;var a=new Of(Tf,this.c,b);A(this,a)},a),250)}
|
|
function Uf(a,b){b.type==Vf||b.type==Wf?delete a.n[b.pointerId]:b.type==Xf&&(a.n[b.pointerId]=!0);a.q=ec(a.n)}l=Pf.prototype;l.Ae=function(a){Uf(this,a);var b=new Of(Vf,this.c,a);A(this,b);0===this.q&&(wb(this.b,re),this.b=null,Pd(this.a),this.a=null);!this.g&&0===a.button&&Qf(this,this.f)};
|
|
l.kg=function(a){Uf(this,a);var b=new Of(Xf,this.c,a);A(this,b);this.f=a;this.g=!1;null===this.b&&(this.a=new Gf(document),this.b=[x(this.a,Yf,this.Zg,!1,this),x(this.a,Vf,this.Ae,!1,this),x(this.d,Wf,this.Ae,!1,this)]);a.preventDefault()};l.Zg=function(a){if(a.clientX!=this.f.clientX||a.clientY!=this.f.clientY){this.g=!0;var b=new Of(Zf,this.c,a);A(this,b)}a.preventDefault()};l.hi=function(a){A(this,new Of(a.type,this.c,a))};
|
|
l.H=function(){null!==this.k&&(re(this.k),this.k=null);null!==this.i&&(re(this.i),this.i=null);null!==this.b&&(wb(this.b,re),this.b=null);null!==this.a&&(Pd(this.a),this.a=null);null!==this.d&&(Pd(this.d),this.d=null);Pf.K.H.call(this)};var Tf="singleclick",Rf="click",Sf="dblclick",Zf="pointerdrag",Yf="pointermove",Xf="pointerdown",Vf="pointerup",Wf="pointercancel",$f={Vi:Tf,Ki:Rf,Li:Sf,Oi:Zf,Ri:Yf,Ni:Xf,Ui:Vf,Ti:"pointerover",Si:"pointerout",Pi:"pointerenter",Qi:"pointerleave",Mi:Wf};function ag(a){a=a.a;return a.pa&&!a.Vb&&a.ab}function bg(a){return a.type==Tf}function cg(a){a=a.a;return!a.pa&&!a.Vb&&!a.ab}function dg(a){a=a.a;return!a.pa&&!a.Vb&&a.ab}function eg(a){a=a.a.target.tagName;return"INPUT"!==a&&"SELECT"!==a&&"TEXTAREA"!==a}function fg(a){return 1==a.b.pointerId};function gg(a){return function(b){if(s(b))return[Xb(b[0],a[0],a[2]),Xb(b[1],a[1],a[3])]}}function hg(a){return a};function ig(a,b){var c,d;c=0;for(d=b.length;c<d;++c)a.push(b[c])}function jg(a,b,c){var d=a.length;if(a[0]<=b)return 0;if(!(b<=a[d-1]))if(0<c)for(c=1;c<d;++c){if(a[c]<b)return c-1}else if(0>c)for(c=1;c<d;++c){if(a[c]<=b)return c}else for(c=1;c<d;++c){if(a[c]==b)return c;if(a[c]<b)return a[c-1]-b<b-a[c]?c-1:c}return d-1};function kg(a){return function(b,c,d){if(s(b))return b=jg(a,b,d),b=Xb(b+c,0,a.length-1),a[b]}}function lg(a,b,c){return function(d,e,f){if(s(d))return f=0<f?0:0>f?1:0.5,d=Math.floor(Math.log(b/d)/Math.log(a)+f),e=Math.max(d+e,0),s(c)&&(e=Math.min(e,c)),b/Math.pow(a,e)}};function mg(a){if(s(a))return 0}function ng(a,b){if(s(a))return a+b}function og(a){var b=2*Math.PI/a;return function(a,d){if(s(a))return a=Math.floor((a+d)/b+0.5)*b}}function pg(){var a=Zb(5);return function(b,c){if(s(b))return Math.abs(b+c)<=a?0:b+c}};function qg(a,b,c){this.center=a;this.resolution=b;this.rotation=c};function rg(){Me.call(this);this.n=[0,0]}v(rg,Me);rg.prototype.$=ca(null);rg.prototype.Cd=ca(!1);function sg(a,b){a.n[1]+=b};function tg(a){for(var b=ug(),c=0,d=a.length;c<d;++c){var e=b,f=a[c];f[0]<e[0]&&(e[0]=f[0]);f[0]>e[2]&&(e[2]=f[0]);f[1]<e[1]&&(e[1]=f[1]);f[1]>e[3]&&(e[3]=f[1])}return b}function vg(a,b,c){var d=Math.min.apply(null,a),e=Math.min.apply(null,b);a=Math.max.apply(null,a);b=Math.max.apply(null,b);return wg(d,e,a,b,c)}function xg(a,b,c){return s(c)?(c[0]=a[0]-b,c[1]=a[1]-b,c[2]=a[2]+b,c[3]=a[3]+b,c):[a[0]-b,a[1]-b,a[2]+b,a[3]+b]}
|
|
function yg(a,b){return s(b)?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a.slice()}function zg(a,b,c){b=b<a[0]?a[0]-b:a[2]<b?b-a[2]:0;a=c<a[1]?a[1]-c:a[3]<c?c-a[3]:0;return b*b+a*a}function Ag(a,b){return a[0]<=b[0]&&b[2]<=a[2]&&a[1]<=b[1]&&b[3]<=a[3]}function ug(){return[Infinity,Infinity,-Infinity,-Infinity]}function wg(a,b,c,d,e){return s(e)?(e[0]=a,e[1]=b,e[2]=c,e[3]=d,e):[a,b,c,d]}function Bg(a){return wg(Infinity,Infinity,-Infinity,-Infinity,a)}
|
|
function Cg(a,b){return a[0]==b[0]&&a[2]==b[2]&&a[1]==b[1]&&a[3]==b[3]}function Dg(a,b){b[0]<a[0]&&(a[0]=b[0]);b[2]>a[2]&&(a[2]=b[2]);b[1]<a[1]&&(a[1]=b[1]);b[3]>a[3]&&(a[3]=b[3]);return a}function Eg(a,b,c,d,e){for(;c<d;c+=e){var f=a,g=b[c],h=b[c+1];f[0]=Math.min(f[0],g);f[1]=Math.min(f[1],h);f[2]=Math.max(f[2],g);f[3]=Math.max(f[3],h)}return a}function Fg(a){return[a[0],a[1]]}function Gg(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]}
|
|
function Hg(a,b,c,d){var e=b*d[0]/2;d=b*d[1]/2;b=Math.cos(c);c=Math.sin(c);e=[-e,-e,e,e];d=[-d,d,-d,d];var f,g,h;for(f=0;4>f;++f)g=e[f],h=d[f],e[f]=a[0]+g*b-h*c,d[f]=a[1]+g*c+h*b;return vg(e,d,void 0)}function Ig(a){return a[3]-a[1]}function Jg(a){return[a[0],a[3]]}function Kg(a){return a[2]-a[0]}function Mg(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function Ng(a){return a[2]<a[0]||a[3]<a[1]}function Og(a,b){return s(b)?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a}
|
|
function Pg(a,b){var c=(a[2]-a[0])/2*(b-1),d=(a[3]-a[1])/2*(b-1);a[0]-=c;a[2]+=c;a[1]-=d;a[3]+=d}function Qg(a,b){return Mg(a,b)&&(a[0]==b[2]||a[2]==b[0]||a[1]==b[3]||a[3]==b[1])}function Rg(a,b,c){a=[a[0],a[1],a[0],a[3],a[2],a[1],a[2],a[3]];b(a,a,2);return vg([a[0],a[2],a[4],a[6]],[a[1],a[3],a[5],a[7]],c)};/*
|
|
|
|
Latitude/longitude spherical geodesy formulae taken from
|
|
http://www.movable-type.co.uk/scripts/latlong.html
|
|
Licenced under CC-BY-3.0.
|
|
*/
|
|
function Sg(a){this.radius=a}function Tg(a,b,c){var d=Zb(b[1]),e=Zb(c[1]),f=(e-d)/2;b=Zb(c[0]-b[0])/2;d=Math.sin(f)*Math.sin(f)+Math.sin(b)*Math.sin(b)*Math.cos(d)*Math.cos(e);return 2*a.radius*Math.atan2(Math.sqrt(d),Math.sqrt(1-d))}Sg.prototype.offset=function(a,b,c){var d=Zb(a[1]);b/=this.radius;var e=Math.asin(Math.sin(d)*Math.cos(b)+Math.cos(d)*Math.sin(b)*Math.cos(c));return[180*(Zb(a[0])+Math.atan2(Math.sin(c)*Math.sin(b)*Math.cos(d),Math.cos(b)-Math.sin(d)*Math.sin(e)))/Math.PI,180*e/Math.PI]};var Ug=new Sg(6370997);var Vg={},Wg="object"==typeof Proj4js;Vg.degrees=2*Math.PI*Ug.radius/360;Vg.ft=0.3048;Vg.m=1;function Xg(a){this.a=a.code;this.Ja=a.units;this.q=s(a.extent)?a.extent:null;this.e=s(a.axisOrientation)?a.axisOrientation:"enu";this.n=s(a.global)?a.global:!1;this.g=null}Xg.prototype.c=k("a");Xg.prototype.C=k("q");Xg.prototype.b=k("Ja");Xg.prototype.f=function(){return Vg[this.Ja]};function Yg(a){return a.e}
|
|
function Zg(a,b){var c={units:a.units,axisOrientation:a.axis};nc(c,b);Xg.call(this,c);this.k=a;this.i=null}v(Zg,Xg);Zg.prototype.f=function(){var a=this.k.to_meter;s(a)||(a=Vg[this.Ja]);return a};
|
|
Zg.prototype.d=function(a,b){if("degrees"==this.Ja)return a;null===this.i&&(this.i=$g(this,ah({code:"EPSG:4326",extent:null})));var c=[b[0]-a/2,b[1],b[0]+a/2,b[1],b[0],b[1]-a/2,b[0],b[1]+a/2],c=this.i(c,c,2),d=Tg(Ug,c.slice(0,2),c.slice(2,4)),c=Tg(Ug,c.slice(4,6),c.slice(6,8)),d=(d+c)/2;"ft"==this.Ja&&(d/=0.3048);return d};function bh(a){return a.k}var ch={},dh={},eh={};function fh(a){gh(a);wb(a,function(b){wb(a,function(a){b!==a&&hh(b,a,ih)})})}
|
|
function jh(){var a=kh,b=lh,c=mh;wb(nh,function(d){wb(a,function(a){hh(d,a,b);hh(a,d,c)})})}function oh(a){dh[a.a]=a;hh(a,a,ih)}function gh(a){wb(a,function(a){oh(a)})}function ph(a){return null!=a?na(a)?qh(a):a:qh("EPSG:3857")}function hh(a,b,c){a=a.a;b=b.a;a in eh||(eh[a]={});eh[a][b]=c}function qh(a){var b;a instanceof Xg?b=a:na(a)?(b=dh[a],Wg&&!s(b)&&(b=ah({code:a,extent:null})),s(b)||(b=null)):b=null;return b}
|
|
function ah(a){var b=a.code,c=ch[b];if(!s(c)){var d=new Proj4js.Proj(b),e=d.srsCode,c=ch[e];s(c)||(a=lc(a),a.code=e,c=new Zg(d,a),ch[e]=c);ch[b]=c}return c}function rh(a,b){var c=qh(a),d=qh(b);return $g(c,d)}
|
|
function $g(a,b){var c=a.a,d=b.a,e;c in eh&&d in eh[c]&&(e=eh[c][d]);if(Wg&&!s(e)){var f=bh(a instanceof Zg?a:ah({code:c,extent:null})),g=bh(b instanceof Zg?b:ah({code:d,extent:null}));e=function(a,b,c){var d=a.length;c=1<c?c:2;s(b)||(b=2<c?a.slice():Array(d));for(var e,r=0;r<d;r+=c)e=new Proj4js.Point(a[r],a[r+1]),e=Proj4js.transform(f,g,e),b[r]=e.x,b[r+1]=e.y;return b};hh(a,b,e)}s(e)||(e=sh);return e}function sh(a,b){if(s(b)&&a!==b){for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}return a}
|
|
function ih(a,b){var c;if(s(b)){c=0;for(var d=a.length;c<d;++c)b[c]=a[c];c=b}else c=a.slice();return c};function G(a){rg.call(this);a=s(a)?a:{};var b={};b.center=s(a.center)?a.center:null;b.projection=ph(a.projection);var c,d,e,f=s(a.minZoom)?a.minZoom:0;c=s(a.maxZoom)?a.maxZoom:28;var g=s(a.zoomFactor)?a.zoomFactor:2;if(s(a.resolutions))c=a.resolutions,d=c[0],e=c[c.length-1],c=kg(c);else{d=a.projection;e=ph(d).C();var h=(null===e?360*Vg.degrees/Vg[d.Ja]:Math.max(Kg(e),Ig(e)))/256/Math.pow(2,0),m=h/Math.pow(2,28);d=a.maxResolution;s(d)?f=0:d=h/Math.pow(g,f);e=a.minResolution;s(e)||(e=s(a.maxZoom)?s(a.maxResolution)?
|
|
d/Math.pow(g,c):h/Math.pow(g,c):m);c=f+Math.floor(Math.log(d/e)/Math.log(g));e=d/Math.pow(g,c-f);c=lg(g,d,c-f)}this.f=d;this.t=e;this.r=f;(s(a.enableRotation)?a.enableRotation:1)?(f=a.constrainRotation,f=s(f)&&!0!==f?!1===f?ng:oa(f)?og(f):ng:pg()):f=mg;this.p=new qg(s(a.extent)?gg(a.extent):hg,c,f);s(a.resolution)?b.resolution=a.resolution:s(a.zoom)&&(b.resolution=this.constrainResolution(this.f,a.zoom-this.r));b.rotation=s(a.rotation)?a.rotation:0;this.J(b)}v(G,rg);G.prototype.g=function(a){return this.p.center(a)};
|
|
G.prototype.constrainResolution=function(a,b,c){return this.p.resolution(a,b||0,c||0)};G.prototype.constrainRotation=function(a,b){return this.p.rotation(a,b||0)};G.prototype.a=function(){return this.get("center")};G.prototype.getCenter=G.prototype.a;G.prototype.F=function(a){var b=this.a(),c=this.b();return[b[0]-c*a[0]/2,b[1]-c*a[1]/2,b[0]+c*a[0]/2,b[1]+c*a[1]/2]};G.prototype.i=function(){return this.get("projection")};G.prototype.getProjection=G.prototype.i;G.prototype.b=function(){return this.get("resolution")};
|
|
G.prototype.getResolution=G.prototype.b;G.prototype.k=function(a,b){return Math.max(Kg(a)/b[0],Ig(a)/b[1])};function th(a){var b=a.f,c=Math.log(b/a.t)/Math.log(2);return function(a){return b/Math.pow(2,a*c)}}G.prototype.e=function(){return this.get("rotation")};G.prototype.getRotation=G.prototype.e;function uh(a){var b=a.f,c=Math.log(b/a.t)/Math.log(2);return function(a){return Math.log(b/a)/Math.log(2)/c}}l=G.prototype;l.$=function(){return this};
|
|
function vh(a){var b=a.a(),c=a.i(),d=a.b();a=a.e();return{center:b.slice(),projection:s(c)?c:null,resolution:d,rotation:s(a)?a:0}}l.Tf=function(){var a,b=this.b();if(s(b)){var c,d=0;do{c=this.constrainResolution(this.f,d);if(c==b){a=d;break}++d}while(c>this.t)}return s(a)?this.r+a:a};l.ge=function(a,b){if(!Ng(a)){this.Ea(Gg(a));var c=this.k(a,b),d=this.constrainResolution(c,0,0);d<c&&(d=this.constrainResolution(d,-1,0));this.d(d)}};
|
|
l.vf=function(a,b,c){var d=s(c)?c:{};c=s(d.padding)?d.padding:[0,0,0,0];var e=s(d.constrainResolution)?d.constrainResolution:!0,f=s(d.nearest)?d.nearest:!1,g=s(d.minResolution)?d.minResolution:0,h=a.j,m=this.e(),d=Math.cos(-m),m=Math.sin(-m),n=Infinity,p=Infinity,q=-Infinity,r=-Infinity;a=a.a;for(var u=0,y=h.length;u<y;u+=a)var B=h[u]*d-h[u+1]*m,z=h[u]*m+h[u+1]*d,n=Math.min(n,B),p=Math.min(p,z),q=Math.max(q,B),r=Math.max(r,z);b=this.k([n,p,q,r],[b[0]-c[1]-c[3],b[1]-c[0]-c[2]]);b=isNaN(b)?g:Math.max(b,
|
|
g);e&&(e=this.constrainResolution(b,0,0),!f&&e<b&&(e=this.constrainResolution(e,-1,0)),b=e);this.d(b);m=-m;f=(n+q)/2+(c[1]-c[3])/2*b;c=(p+r)/2+(c[0]-c[2])/2*b;this.Ea([f*d-c*m,c*d+f*m])};l.qf=function(a,b,c){var d=this.e(),e=Math.cos(-d),d=Math.sin(-d),f=a[0]*e-a[1]*d;a=a[1]*e+a[0]*d;var g=this.b(),f=f+(b[0]/2-c[0])*g;a+=(c[1]-b[1]/2)*g;d=-d;this.Ea([f*e-a*d,a*e+f*d])};l.Cd=function(){return null!=this.a()&&s(this.b())};
|
|
l.rotate=function(a,b){if(s(b)){var c,d=this.a();s(d)&&(c=[d[0]-b[0],d[1]-b[1]],af(c,a-this.e()),We(c,b));this.Ea(c)}this.o(a)};l.Ea=function(a){this.s("center",a)};G.prototype.setCenter=G.prototype.Ea;G.prototype.D=function(a){this.s("projection",a)};G.prototype.setProjection=G.prototype.D;G.prototype.d=function(a){this.s("resolution",a)};G.prototype.setResolution=G.prototype.d;G.prototype.o=function(a){this.s("rotation",a)};G.prototype.setRotation=G.prototype.o;
|
|
G.prototype.N=function(a){a=this.constrainResolution(this.f,a-this.r,0);this.d(a)};function wh(a){return 1-Math.pow(1-a,3)};function xh(a){return 3*a*a-2*a*a*a}function yh(a){return a}function zh(a){return 0.5>a?xh(2*a):1-xh(2*(a-0.5))};function Ah(a){var b=a.source,c=s(a.start)?a.start:Aa(),d=b[0],e=b[1],f=s(a.duration)?a.duration:1E3,g=s(a.easing)?a.easing:xh;return function(a,b){if(b.time<c)return b.xa=!0,b.aa[0]+=1,!0;if(b.time<c+f){var n=1-g((b.time-c)/f),p=d-b.view2DState.center[0],q=e-b.view2DState.center[1];b.xa=!0;b.view2DState.center[0]+=n*p;b.view2DState.center[1]+=n*q;b.aa[0]+=1;return!0}return!1}}
|
|
function Bh(a){var b=s(a.rotation)?a.rotation:0,c=s(a.start)?a.start:Aa(),d=s(a.duration)?a.duration:1E3,e=s(a.easing)?a.easing:xh,f=s(a.anchor)?a.anchor:null;return function(a,h){if(h.time<c)return h.xa=!0,h.aa[0]+=1,!0;if(h.time<c+d){var m=1-e((h.time-c)/d),m=(b-h.view2DState.rotation)*m;h.xa=!0;h.view2DState.rotation+=m;if(null!==f){var n=h.view2DState.center;n[0]-=f[0];n[1]-=f[1];af(n,m);We(n,f)}h.aa[0]+=1;return!0}return!1}}
|
|
function Ch(a){var b=a.resolution,c=s(a.start)?a.start:Aa(),d=s(a.duration)?a.duration:1E3,e=s(a.easing)?a.easing:xh;return function(a,g){if(g.time<c)return g.xa=!0,g.aa[0]+=1,!0;if(g.time<c+d){var h=1-e((g.time-c)/d),m=b-g.view2DState.resolution;g.xa=!0;g.view2DState.resolution+=h*m;g.aa[0]+=1;return!0}return!1}};function Dh(){Je.call(this);this.i=null}v(Dh,Je);Dh.prototype.setMap=function(a){this.i=a};function Eh(a,b,c,d,e){if(null!=c){var f=b.e(),g=b.a();s(f)&&(s(g)&&s(e)&&0<e)&&(a.ya(Bh({rotation:f,duration:e,easing:wh})),s(d)&&a.ya(Ah({source:g,duration:e,easing:wh})));b.rotate(c,d)}}function Fh(a,b,c,d,e){var f=b.b();c=b.constrainResolution(f,c,0);Gh(a,b,c,d,e)}
|
|
function Gh(a,b,c,d,e){if(null!=c){var f=b.b(),g=b.a();s(f)&&(s(g)&&s(e)&&0<e)&&(a.ya(Ch({resolution:f,duration:e,easing:wh})),s(d)&&a.ya(Ah({source:g,duration:e,easing:wh})));if(null!=d){var h;a=b.a();e=b.b();s(a)&&s(e)&&(h=[d[0]-c*(d[0]-a[0])/e,d[1]-c*(d[1]-a[1])/e]);b.Ea(h)}b.d(c)}};function Hh(){Dh.call(this);this.g=!1;this.q={};this.b=[]}v(Hh,Dh);function Ih(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return[c/b,d/b]}l=Hh.prototype;l.nb=fa;l.cb=ze;l.bb=ze;
|
|
l.Fa=function(a){if(!(a instanceof Of))return!0;var b=!1,c=a.type;if(c===Xf||c===Zf||c===Vf)c=a.b,a.type==Vf?delete this.q[c.pointerId]:a.type==Xf?this.q[c.pointerId]=c:c.pointerId in this.q&&(this.q[c.pointerId]=c),this.b=fc(this.q);this.g&&(a.type==Zf?this.nb(a):a.type==Vf&&(this.g=this.cb(a)));a.type==Xf&&(this.g=a=this.bb(a),b=this.fd(a));return!b};l.fd=ze;function Jh(){Je.call(this);this.extent=void 0;this.f=-1;this.i={};this.n=this.g=0}v(Jh,Je);Jh.prototype.e=function(a,b){var c=s(b)?b:[NaN,NaN];this.za(a[0],a[1],c,Infinity);return c};Jh.prototype.wb=ze;Jh.prototype.transform=function(a,b){this.vb(rh(a,b));return this};function Kh(a,b,c,d){var e=c[0],f=c[1],g=c[4],h=c[5],m=c[12];c=c[13];var n=s(d)?d:[],p=0,q,r;q=0;for(r=a.length;q<r;q+=b){var u=a[q],y=a[q+1];n[p++]=e*u+g*y+m;n[p++]=f*u+h*y+c}s(d)&&n.length!=p&&(n.length=p);return n};function Lh(){Jh.call(this);this.b="XY";this.a=2;this.j=null}v(Lh,Jh);function Mh(a){if("XY"==a)return 2;if("XYZ"==a||"XYM"==a)return 3;if("XYZM"==a)return 4;throw Error("unsupported layout: "+a);}l=Lh.prototype;l.wb=ze;l.C=function(a){if(this.f!=this.c){var b=this.j,c=this.j.length,d=this.a,e=Bg(this.extent);this.extent=Eg(e,b,0,c,d);this.f=this.c}return Og(this.extent,a)};l.Xa=function(){return this.j.slice(0,this.a)};l.Ya=function(){return this.j.slice(this.j.length-this.a)};l.Za=k("b");
|
|
l.la=function(a){this.n!=this.c&&(ic(this.i),this.g=0,this.n=this.c);if(0>a||0!==this.g&&a<=this.g)return this;var b=a.toString();if(this.i.hasOwnProperty(b))return this.i[b];var c=this.Ob(a);if(c.j.length<this.j.length)return this.i[b]=c;this.g=a;return this};l.Ob=function(){return this};function Nh(a,b,c){a.a=Mh(b);a.b=b;a.j=c}
|
|
function Oh(a,b,c,d){if(s(b))c=Mh(b);else{for(b=0;b<d;++b){if(0===c.length){a.b="XY";a.a=2;return}c=c[0]}c=c.length;if(2==c)b="XY";else if(3==c)b="XYZ";else if(4==c)b="XYZM";else throw Error("unsupported stride: "+c);}a.b=b;a.a=c}l.vb=function(a){null!==this.j&&(a(this.j,this.j,this.a),this.l())};function Ph(a,b,c){var d=a.j;return null===d?null:Kh(d,a.a,b,c)};function Qh(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var h=a[b],m=a[b+1],e=e+(g*h-f*m),f=h,g=m;return e/2}function Rh(a,b,c,d){var e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],e=e+Qh(a,b,h,d);b=h}return e};function Sh(a,b,c,d){a=c-a;b=d-b;return a*a+b*b};function Th(a,b,c,d,e,f,g){var h=a[b],m=a[b+1],n=a[c]-h,p=a[c+1]-m;if(0!==n||0!==p)if(f=((e-h)*n+(f-m)*p)/(n*n+p*p),1<f)b=c;else if(0<f){for(e=0;e<d;++e)g[e]=a[b+e]+f*(a[c+e]-a[b+e]);g.length=d;return}for(e=0;e<d;++e)g[e]=a[b+e];g.length=d}function Uh(a,b,c,d,e){var f=a[b],g=a[b+1];for(b+=d;b<c;b+=d){var h=a[b],m=a[b+1],f=Sh(f,g,h,m);f>e&&(e=f);f=h;g=m}return e}function Vh(a,b,c,d,e){var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f];e=Uh(a,b,h,d,e);b=h}return e}
|
|
function Wh(a,b,c,d,e,f,g,h,m,n,p){if(b==c)return n;var q;if(0===e){q=Sh(g,h,a[b],a[b+1]);if(q<n){for(p=0;p<d;++p)m[p]=a[b+p];m.length=d;return q}return n}for(var r=s(p)?p:[NaN,NaN],u=b+d;u<c;)if(Th(a,u-d,u,d,g,h,r),q=Sh(g,h,r[0],r[1]),q<n){n=q;for(p=0;p<d;++p)m[p]=r[p];m.length=d;u+=d}else u+=d*Math.max((Math.sqrt(q)-Math.sqrt(n))/e|0,1);if(f&&(Th(a,c-d,b,d,g,h,r),q=Sh(g,h,r[0],r[1]),q<n)){n=q;for(p=0;p<d;++p)m[p]=r[p];m.length=d}return n}
|
|
function Xh(a,b,c,d,e,f,g,h,m,n,p){p=s(p)?p:[NaN,NaN];var q,r;q=0;for(r=c.length;q<r;++q){var u=c[q];n=Wh(a,b,u,d,e,f,g,h,m,n,p);b=u}return n};function Yh(a,b){var c=0,d,e;d=0;for(e=b.length;d<e;++d)a[c++]=b[d];return c}function $h(a,b,c,d){var e,f;e=0;for(f=c.length;e<f;++e){var g=c[e],h;for(h=0;h<d;++h)a[b++]=g[h]}return b}function ai(a,b,c,d,e){e=s(e)?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g)b=$h(a,b,c[g],d),e[f++]=b;e.length=f;return e};function bi(a,b,c,d,e){e=s(e)?e:[];for(var f=0;b<c;b+=d)e[f++]=a.slice(b,b+d);e.length=f;return e}function ci(a,b,c,d,e){e=s(e)?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g){var m=c[g];e[f++]=bi(a,b,m,d,e[f]);b=m}e.length=f;return e};function di(a,b,c,d,e,f,g){var h=(c-b)/d;if(3>h){for(;b<c;b+=d)f[g++]=a[b],f[g++]=a[b+1];return g}var m=Array(h);m[0]=1;m[h-1]=1;c=[b,c-d];for(var n=0,p;0<c.length;){var q=c.pop(),r=c.pop(),u=0,y=a[r],B=a[r+1],z=a[q],F=a[q+1];for(p=r+d;p<q;p+=d){var D;D=a[p];var L=a[p+1],R=y,ha=B,T=z-R,pa=F-ha;if(0!==T||0!==pa){var ya=((D-R)*T+(L-ha)*pa)/(T*T+pa*pa);1<ya?(R=z,ha=F):0<ya&&(R+=T*ya,ha+=pa*ya)}D=Sh(D,L,R,ha);D>u&&(n=p,u=D)}u>e&&(m[(n-b)/d]=1,r+d<n&&c.push(r,n),n+d<q&&c.push(n,q))}for(p=0;p<h;++p)m[p]&&
|
|
(f[g++]=a[b+p*d],f[g++]=a[b+p*d+1]);return g}
|
|
function ei(a,b,c,d,e,f,g,h){var m,n;m=0;for(n=c.length;m<n;++m){var p=c[m];a:{var q=a,r=p,u=d,y=e,B=f;if(b!=r){var z=y*Math.round(q[b]/y),F=y*Math.round(q[b+1]/y);b+=u;B[g++]=z;B[g++]=F;var D=void 0,L=void 0;do if(D=y*Math.round(q[b]/y),L=y*Math.round(q[b+1]/y),b+=u,b==r){B[g++]=D;B[g++]=L;break a}while(D==z&&L==F);for(;b<r;){var R,ha;R=y*Math.round(q[b]/y);ha=y*Math.round(q[b+1]/y);b+=u;if(R!=D||ha!=L){var T=D-z,pa=L-F,ya=R-z,Oa=ha-F;T*Oa==pa*ya&&(0>T&&ya<T||T==ya||0<T&&ya>T)&&(0>pa&&Oa<pa||pa==
|
|
Oa||0<pa&&Oa>pa)||(B[g++]=D,B[g++]=L,z=D,F=L);D=R;L=ha}}B[g++]=D;B[g++]=L}}h.push(g);b=p}return g};function fi(a,b){Lh.call(this);this.d=this.k=-1;this.R(a,b)}v(fi,Lh);l=fi.prototype;l.S=function(){var a=new fi(null);gi(a,this.b,this.j.slice());return a};l.za=function(a,b,c,d){if(d<zg(this.C(),a,b))return d;this.d!=this.c&&(this.k=Math.sqrt(Uh(this.j,0,this.j.length,this.a,0)),this.d=this.c);return Wh(this.j,0,this.j.length,this.a,this.k,!0,a,b,c,d)};l.eh=function(){return Qh(this.j,0,this.j.length,this.a)};l.G=function(){return bi(this.j,0,this.j.length,this.a)};
|
|
l.Ob=function(a){var b=[];b.length=di(this.j,0,this.j.length,this.a,a,b,0);a=new fi(null);gi(a,"XY",b);return a};l.I=ca("LinearRing");l.R=function(a,b){null===a?gi(this,"XY",null):(Oh(this,b,a,1),null===this.j&&(this.j=[]),this.j.length=$h(this.j,0,a,this.a),this.l())};function gi(a,b,c){Nh(a,b,c);a.l()};function hi(a,b){Lh.call(this);this.R(a,b)}v(hi,Lh);l=hi.prototype;l.S=function(){var a=new hi(null);ii(a,this.b,this.j.slice());return a};l.za=function(a,b,c,d){var e=this.j;a=Sh(a,b,e[0],e[1]);if(a<d){d=this.a;for(b=0;b<d;++b)c[b]=e[b];c.length=d;return a}return d};l.G=function(){return this.j.slice()};l.C=function(a){if(this.f!=this.c){var b=this.j,c=b[0],b=b[1];this.extent=wg(c,b,c,b,this.extent);this.f=this.c}return Og(this.extent,a)};l.I=ca("Point");
|
|
l.R=function(a,b){null===a?ii(this,"XY",null):(Oh(this,b,a,0),null===this.j&&(this.j=[]),this.j.length=Yh(this.j,a),this.l())};function ii(a,b,c){Nh(a,b,c);a.l()};function ji(a,b,c,d,e,f){for(var g=!1,h=a[c-d],m=a[c-d+1];b<c;b+=d){var n=a[b],p=a[b+1];m>f!=p>f&&e<(n-h)*(f-m)/(p-m)+h&&(g=!g);h=n;m=p}return g}function ki(a,b,c,d,e,f){if(0===c.length||!ji(a,b,c[0],d,e,f))return!1;var g;b=1;for(g=c.length;b<g;++b)if(ji(a,c[b-1],c[b],d,e,f))return!1;return!0};function li(a,b,c,d,e,f,g){var h,m,n,p,q,r=e[f+1],u=[],y=c[0];n=a[y-d];q=a[y-d+1];for(h=b;h<y;h+=d){p=a[h];m=a[h+1];if(r<=q&&m<=r||q<=r&&r<=m)n=(r-q)/(m-q)*(p-n)+n,u.push(n);n=p;q=m}y=NaN;q=-Infinity;u.sort();n=u[0];h=1;for(m=u.length;h<m;++h){p=u[h];var B=Math.abs(p-n);B>q&&(n=(n+p)/2,ki(a,b,c,d,n,r)&&(y=n,q=B));n=p}isNaN(y)&&(y=e[f]);return s(g)?(g.push(y,r),g):[y,r]};function mi(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var h=a[b],m=a[b+1],e=e+(h-f)*(m+g),f=h,g=m;return 0<e}function ni(a,b,c){var d=0,e,f;e=0;for(f=b.length;e<f;++e){var g=b[e],d=mi(a,d,g,c);if(0===e?!d:d)return!1;d=g}return!0}function oi(a,b,c,d){var e,f;e=0;for(f=c.length;e<f;++e){var g=c[e],h=mi(a,b,g,d);if(0===e?!h:h)for(var h=a,m=g,n=d;b<m-n;){var p;for(p=0;p<n;++p){var q=h[b+p];h[b+p]=h[m-n+p];h[m-n+p]=q}b+=n;m-=n}b=g}return b};function H(a,b){Lh.call(this);this.d=[];this.q=-1;this.o=null;this.r=this.p=this.t=-1;this.k=null;this.R(a,b)}v(H,Lh);l=H.prototype;l.lf=function(a){null===this.j?this.j=a.j.slice():ig(this.j,a.j);this.d.push(this.j.length);this.l()};l.S=function(){var a=new H(null);pi(a,this.b,this.j.slice(),this.d.slice());return a};
|
|
l.za=function(a,b,c,d){if(d<zg(this.C(),a,b))return d;this.p!=this.c&&(this.t=Math.sqrt(Vh(this.j,0,this.d,this.a,0)),this.p=this.c);return Xh(this.j,0,this.d,this.a,this.t,!0,a,b,c,d)};l.wb=function(a,b){return ki(qi(this),0,this.d,this.a,a,b)};l.hh=function(){return Rh(qi(this),0,this.d,this.a)};l.G=function(){return ci(this.j,0,this.d,this.a)};function ri(a){if(a.q!=a.c){var b=Gg(a.C());a.o=li(qi(a),0,a.d,a.a,b,0);a.q=a.c}return a.o}l.Df=function(){return new hi(ri(this))};
|
|
l.If=function(a){if(0>a||this.d.length<=a)return null;var b=new fi(null);gi(b,this.b,this.j.slice(0===a?0:this.d[a-1],this.d[a]));return b};l.ne=function(){var a=this.b,b=this.j,c=this.d,d=[],e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],m=new fi(null);gi(m,a,b.slice(e,h));d.push(m);e=h}return d};function qi(a){if(a.r!=a.c){var b=a.j;ni(b,a.d,a.a)?a.k=b:(a.k=b.slice(),a.k.length=oi(a.k,0,a.d,a.a));a.r=a.c}return a.k}
|
|
l.Ob=function(a){var b=[],c=[];b.length=ei(this.j,0,this.d,this.a,Math.sqrt(a),b,0,c);a=new H(null);pi(a,"XY",b,c);return a};l.I=ca("Polygon");l.R=function(a,b){if(null===a)pi(this,"XY",null,this.d);else{Oh(this,b,a,2);null===this.j&&(this.j=[]);var c=ai(this.j,0,a,this.a,this.d);this.j.length=0===c.length?0:c[c.length-1];this.l()}};function pi(a,b,c,d){Nh(a,b,c);a.d=d;a.l()}
|
|
function si(a,b,c,d){var e=s(d)?d:32;d=[];var f;for(f=0;f<e;++f)Eb(d,a.offset(b,c,2*Math.PI*f/e));d.push(d[0],d[1]);a=new H(null);pi(a,"XY",d,[d.length]);return a};function ti(a,b,c,d,e,f){Qd.call(this,a,b);this.vectorContext=c;this.frameState=d;this.context=e;this.glContext=f}v(ti,Qd);function ui(a){this.b=this.c=this.e=this.d=this.a=null;this.f=a}v(ui,Ld);function vi(a){var b=a.e,c=a.c;a=xb([b,[b[0],c[1]],c,[c[0],b[1]]],a.a.Ba,a.a);a[4]=a[0].slice();return new H([a])}ui.prototype.H=function(){this.setMap(null)};ui.prototype.i=function(a){var b=this.b,c=this.f;a.vectorContext.Hc(Infinity,function(a){a.Ia(c.d,c.b);a.sa(c.c);a.Nb(b,null)})};ui.prototype.Q=k("b");function wi(a){null===a.a||(null===a.e||null===a.c)||a.a.U()}
|
|
ui.prototype.setMap=function(a){null!==this.d&&(re(this.d),this.d=null,this.a.U(),this.a=null);this.a=a;null!==this.a&&(this.d=x(a,"postcompose",this.i,!1,this),wi(this))};function xi(a,b){Qd.call(this,a);this.coordinate=b}v(xi,Qd);function yi(a){Hh.call(this);a=s(a)?a:{};this.d=new ui(s(a.style)?a.style:null);this.a=null;this.e=s(a.condition)?a.condition:Ae}v(yi,Hh);l=yi.prototype;l.nb=function(a){if(fg(a)){var b=this.d;a=a.pixel;b.e=this.a;b.c=a;b.b=vi(b);wi(b)}};l.Q=function(){return this.d.Q()};l.Ie=fa;
|
|
l.cb=function(a){if(!fg(a))return!0;this.d.setMap(null);var b=a.pixel[0]-this.a[0],c=a.pixel[1]-this.a[1];64<=b*b+c*c&&(this.Ie(a),A(this,new xi("boxend",a.coordinate)));return!1};l.bb=function(a){if(fg(a)&&ae(a.a)&&this.e(a)){this.a=a.pixel;this.d.setMap(a.map);var b=this.d,c=this.a;b.e=this.a;b.c=c;b.b=vi(b);wi(b);A(this,new xi("boxstart",a.coordinate));return!0}return!1};l.fd=Be;var zi=/^#(?:[0-9a-f]{3}){1,2}$/i,Ai=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,Bi=/^(?:rgba)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|1|0\.\d{0,10})\)$/i;function Ci(a){if(!na(a)){var b=a[0];b!=(b|0)&&(b=b+0.5|0);var c=a[1];c!=(c|0)&&(c=c+0.5|0);var d=a[2];d!=(d|0)&&(d=d+0.5|0);a="rgba("+b+","+c+","+d+","+a[3]+")"}return a}
|
|
var Ei=function(){var a={},b=0;return function(c,d){var e;if(a.hasOwnProperty(c))e=a[c];else{if(1024<=b){e=0;for(var f in a)0===(e++&3)&&(delete a[f],--b)}var g,h;if(zi.exec(c))h=3==c.length-1?1:2,e=parseInt(c.substr(1+0*h,h),16),f=parseInt(c.substr(1+1*h,h),16),g=parseInt(c.substr(1+2*h,h),16),1==h&&(e=(e<<4)+e,f=(f<<4)+f,g=(g<<4)+g),e=[e,f,g,1];else if(h=Bi.exec(c))e=Number(h[1]),f=Number(h[2]),g=Number(h[3]),h=Number(h[4]),e=[e,f,g,h],e=Di(e,e);else if(h=Ai.exec(c))e=Number(h[1]),f=Number(h[2]),
|
|
g=Number(h[3]),e=[e,f,g,1],e=Di(e,e);else throw Error(c+" is not a valid color");a[c]=e;++b}s(d)&&(d[0]=e[0],d[1]=e[1],d[2]=e[2],d[3]=e[3],e=d);return e}}();function Di(a,b){var c=s(b)?b:[];c[0]=Xb(a[0]+0.5|0,0,255);c[1]=Xb(a[1]+0.5|0,0,255);c[2]=Xb(a[2]+0.5|0,0,255);c[3]=Xb(a[3],0,1);return c};var Fi=[0,0,0,1],Gi=[],Hi=[0,0,0,1];function Ii(a){a=s(a)?a:{};this.a=s(a.color)?a.color:null}Ii.prototype.c=k("a");function Ji(a){this.t=a.opacity;this.r=a.rotateWithView;this.i=a.rotation;this.g=a.scale;this.D=a.snapToPixel}Ji.prototype.k=k("i");Ji.prototype.n=k("g");function Ki(a){a=s(a)?a:{};this.a=s(a.color)?a.color:null;this.b=a.lineCap;this.d=s(a.lineDash)?a.lineDash:null;this.e=a.lineJoin;this.f=a.miterLimit;this.c=a.width}l=Ki.prototype;l.Dh=k("a");l.Ff=k("b");l.Eh=k("d");l.Gf=k("e");l.Jf=k("f");l.Fh=k("c");function Li(a){a=s(a)?a:{};this.e=zc("CANVAS");this.c=null;this.b=s(a.fill)?a.fill:null;this.q=[0,0];this.d=a.radius;this.a=s(a.stroke)?a.stroke:null;var b,c=this.e,d;null===this.a?d=0:(b=Ci(this.a.a),d=this.a.c,s(d)||(d=1));var e=2*(this.d+d)+1;c.height=e;c.width=e;var e=c.width,f=c.getContext("2d");f.arc(e/2,e/2,this.d,0,2*Math.PI,!0);null!==this.b&&(f.fillStyle=Ci(this.b.a),f.fill());null!==this.a&&(f.strokeStyle=b,f.lineWidth=d,f.stroke());null===this.b?(c=this.c=zc("CANVAS"),c.height=e,c.width=
|
|
e,f=c.getContext("2d"),f.arc(e/2,e/2,this.d,0,2*Math.PI,!0),f.fillStyle=Fi,f.fill(),null!==this.a&&(f.strokeStyle=b,f.lineWidth=d,f.stroke())):this.c=c;b=e;this.f=[b/2,b/2];this.o=[b,b];Ji.call(this,{opacity:1,rotateWithView:!1,rotation:0,scale:1,snapToPixel:s(a.snapToPixel)?a.snapToPixel:!0})}v(Li,Ji);l=Li.prototype;l.oc=k("f");l.zh=k("b");l.He=k("c");l.uc=k("e");l.Id=ca(2);l.vc=k("q");l.Ah=k("d");l.Db=k("o");l.Bh=k("a");l.zd=fa;l.Jd=fa;l.Td=fa;function Mi(a){a=s(a)?a:{};this.d=s(a.fill)?a.fill:null;this.e=s(a.image)?a.image:null;this.b=s(a.stroke)?a.stroke:null;this.c=s(a.text)?a.text:null;this.a=a.zIndex}l=Mi.prototype;l.Gh=k("d");l.Hh=k("e");l.Ih=k("b");l.Jh=k("c");l.Sf=k("a");function I(a){Me.call(this);this.ba=void 0;this.a="geometry";this.i=null;this.f=void 0;this.d=null;x(this,Qe(this.a),this.Sc,!1,this);s(a)&&(a instanceof Jh||null===a?this.fb(a):this.J(a))}v(I,Me);I.prototype.Q=function(){return this.get(this.a)};I.prototype.getGeometry=I.prototype.Q;l=I.prototype;l.Bf=k("ba");l.Af=k("a");l.Vg=k("i");l.Wg=k("f");l.bg=function(){this.l()};l.Sc=function(){null!==this.d&&(re(this.d),this.d=null);var a=this.Q();null!=a&&(this.d=x(a,"change",this.bg,!1,this),this.l())};
|
|
l.fb=function(a){this.s(this.a,a)};I.prototype.setGeometry=I.prototype.fb;I.prototype.g=function(a){this.i=a;qa(a)||(a=la(a)?a:[a],a=ye(a));this.f=a;this.l()};I.prototype.b=function(a){this.ba=a;this.l()};I.prototype.e=function(a){pe(this,Qe(this.a),this.Sc,!1,this);this.a=a;x(this,Qe(this.a),this.Sc,!1,this);this.Sc()};
|
|
function Ni(){var a=new Ii({color:"rgba(255,255,255,0.4)"}),b=new Ki({color:"#3399CC",width:1.25}),c=[new Mi({image:new Li({fill:a,stroke:b,radius:5}),fill:a,stroke:b})];Ni=function(){return c};return c}function Oi(a,b){var c=a.f;s(c)||(c=Ni);return c.call(a,b)}function Pi(a){qa(a)||(a=la(a)?a:[a],a=ye(a));return a}
|
|
function Qi(){var a={},b=[255,255,255,1],c=[0,153,255,1];a.Polygon=[new Mi({fill:new Ii({color:[255,255,255,0.5]})})];a.MultiPolygon=a.Polygon;a.LineString=[new Mi({stroke:new Ki({color:b,width:5})}),new Mi({stroke:new Ki({color:c,width:3})})];a.MultiLineString=a.LineString;a.Point=[new Mi({image:new Li({radius:6,fill:new Ii({color:c}),stroke:new Ki({color:b,width:1.5})}),zIndex:Infinity})];a.MultiPoint=a.Point;a.GeometryCollection=a.Polygon.concat(a.Point);return a};function Ri(a){a=s(a)?a:{};this.i=this.d=this.e=this.c=this.b=this.a=null;this.f=s(a.style)?Pi(a.style):void 0;s(a.features)?la(a.features)?this.yc(new C(Db(a.features))):this.yc(a.features):this.yc(new C);s(a.map)&&this.setMap(a.map)}l=Ri.prototype;l.xe=function(a){this.a.push(a)};l.Qg=k("a");l.ye=function(){Si(this)};l.$f=function(a){a=a.element;this.c[sa(a).toString()]=x(a,"change",this.ye,!1,this);Si(this)};l.ag=function(a){a=sa(a.element).toString();re(this.c[a]);delete this.c[a];Si(this)};
|
|
l.ze=function(){Si(this)};l.Tg=function(a){if(null!==this.a){var b=this.f;s(b)||(b=Oi);var c=a.frameState.view2DState.resolution,d=a.vectorContext,e,f,g;this.a.forEach(function(a){g=b(a,c);if(null!=g)for(f=g.length,e=0;e<f;++e){var m=d,n=a,p=g[e],q=p.e;if(null===q)m.Ic(n,p);else{var r=q.Id();2==r||3==r?(q.Td(this.ze,this),2==r&&m.Ic(n,p)):(0==r&&q.Jd(),q.zd(this.ze,this))}}},this)}};l.$c=function(a){this.a.remove(a)};function Si(a){null===a.e||a.e.U()}
|
|
l.yc=function(a){null!==this.b&&(wb(this.b,re),this.b=null);null!==this.c&&(wb(fc(this.c),re),this.c=null);this.a=a;null!==a&&(this.b=[x(a,"add",this.$f,!1,this),x(a,"remove",this.ag,!1,this)],this.c={},a.forEach(function(a){this.c[sa(a).toString()]=x(a,"change",this.ye,!1,this)},this));Si(this)};l.setMap=function(a){null!==this.d&&(re(this.d),this.d=null);Si(this);this.e=a;null!==a&&(this.d=x(a,"postcompose",this.Tg,!1,this),a.U())};l.Ug=function(a){this.i=a;this.f=Pi(a);Si(this)};l.Rg=k("i");
|
|
l.Sg=k("f");function Ti(a){if("function"==typeof a.Oa)return a.Oa();if(na(a))return a.split("");if(ma(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return fc(a)}function Ui(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(ma(a)||na(a))wb(a,b,c);else{var d;if("function"==typeof a.M)d=a.M();else if("function"!=typeof a.Oa)if(ma(a)||na(a)){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f)}else d=gc(a);else d=void 0;for(var e=Ti(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)}};function Vi(a,b){this.c={};this.a=[];var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)Wi(this,arguments[d],arguments[d+1])}else if(a){a instanceof Vi?(c=a.M(),d=a.Oa()):(c=gc(a),d=fc(a));for(var e=0;e<c.length;e++)Wi(this,c[e],d[e])}}l=Vi.prototype;l.O=0;l.Wd=0;l.La=k("O");l.Oa=function(){Xi(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.c[this.a[b]]);return a};l.M=function(){Xi(this);return this.a.concat()};l.ma=function(){return 0==this.O};
|
|
l.clear=function(){this.c={};this.Wd=this.O=this.a.length=0};l.remove=function(a){return Yi(this.c,a)?(delete this.c[a],this.O--,this.Wd++,this.a.length>2*this.O&&Xi(this),!0):!1};function Xi(a){if(a.O!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];Yi(a.c,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.O!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],Yi(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}l.get=function(a,b){return Yi(this.c,a)?this.c[a]:b};
|
|
function Wi(a,b,c){Yi(a.c,b)||(a.O++,a.a.push(b),a.Wd++);a.c[b]=c}l.S=function(){return new Vi(this)};function Yi(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Zi=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?\x3d[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function $i(a){if(aj){aj=!1;var b=ea.location;if(b){var c=b.href;if(c&&(c=(c=$i(c)[3]||null)&&decodeURIComponent(c))&&c!=b.hostname)throw aj=!0,Error();}}return a.match(Zi)}var aj=cb;function bj(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")}
|
|
function cj(a,b,c){if(la(b))for(var d=0;d<b.length;d++)cj(a,String(b[d]),c);else null!=b&&c.push("\x26",a,""===b?"":"\x3d",encodeURIComponent(String(b)))}function dj(a,b){for(var c in b)cj(c,b[c],a);return a};function ej(a,b){var c;if(a instanceof ej)this.zb=s(b)?b:a.zb,fj(this,a.tb),c=a.Ib,gj(this),this.Ib=c,c=a.Wa,gj(this),this.Wa=c,hj(this,a.Wb),c=a.Ra,gj(this),this.Ra=c,ij(this,a.a.S()),c=a.yb,gj(this),this.yb=c;else if(a&&(c=$i(String(a)))){this.zb=!!b;fj(this,c[1]||"",!0);var d=c[2]||"";gj(this);this.Ib=d?decodeURIComponent(d):"";d=c[3]||"";gj(this);this.Wa=d?decodeURIComponent(d):"";hj(this,c[4]);d=c[5]||"";gj(this);this.Ra=d?decodeURIComponent(d):"";ij(this,c[6]||"",!0);c=c[7]||"";gj(this);this.yb=
|
|
c?decodeURIComponent(c):""}else this.zb=!!b,this.a=new jj(null,0,this.zb)}l=ej.prototype;l.tb="";l.Ib="";l.Wa="";l.Wb=null;l.Ra="";l.yb="";l.xg=!1;l.zb=!1;
|
|
l.toString=function(){var a=[],b=this.tb;b&&a.push(kj(b,lj),":");if(b=this.Wa){a.push("//");var c=this.Ib;c&&a.push(kj(c,lj),"@");a.push(encodeURIComponent(String(b)));b=this.Wb;null!=b&&a.push(":",String(b))}if(b=this.Ra)this.Wa&&"/"!=b.charAt(0)&&a.push("/"),a.push(kj(b,"/"==b.charAt(0)?mj:nj));(b=this.a.toString())&&a.push("?",b);(b=this.yb)&&a.push("#",kj(b,oj));return a.join("")};l.S=function(){return new ej(this)};
|
|
function fj(a,b,c){gj(a);a.tb=c?b?decodeURIComponent(b):"":b;a.tb&&(a.tb=a.tb.replace(/:$/,""))}function hj(a,b){gj(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Wb=b}else a.Wb=null}function ij(a,b,c){gj(a);b instanceof jj?(a.a=b,pj(a.a,a.zb)):(c||(b=kj(b,qj)),a.a=new jj(b,0,a.zb))}function rj(a,b,c){gj(a);la(c)||(c=[String(c)]);sj(a.a,b,c)}function gj(a){if(a.xg)throw Error("Tried to modify a read-only Uri");}
|
|
function tj(a){return a instanceof ej?a.S():new ej(a,void 0)}
|
|
function uj(a,b){a instanceof ej||(a=tj(a));b instanceof ej||(b=tj(b));var c=a,d=b,e=c.S(),f=!!d.tb;f?fj(e,d.tb):f=!!d.Ib;if(f){var g=d.Ib;gj(e);e.Ib=g}else f=!!d.Wa;f?(g=d.Wa,gj(e),e.Wa=g):f=null!=d.Wb;g=d.Ra;if(f)hj(e,d.Wb);else if(f=!!d.Ra)if("/"!=g.charAt(0)&&(c.Wa&&!c.Ra?g="/"+g:(c=e.Ra.lastIndexOf("/"),-1!=c&&(g=e.Ra.substr(0,c+1)+g))),".."==g||"."==g)g="";else if(-1!=g.indexOf("./")||-1!=g.indexOf("/.")){for(var c=0==g.lastIndexOf("/",0),g=g.split("/"),h=[],m=0;m<g.length;){var n=g[m++];"."==
|
|
n?c&&m==g.length&&h.push(""):".."==n?((1<h.length||1==h.length&&""!=h[0])&&h.pop(),c&&m==g.length&&h.push("")):(h.push(n),c=!0)}g=h.join("/")}f?(c=g,gj(e),e.Ra=c):f=""!==d.a.toString();f?ij(e,d.a.toString()?decodeURIComponent(d.a.toString()):""):f=!!d.yb;f&&(d=d.yb,gj(e),e.yb=d);return e}function kj(a,b){return na(a)?encodeURI(a).replace(b,vj):null}function vj(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var lj=/[#\/\?@]/g,nj=/[\#\?:]/g,mj=/[\#\?]/g,qj=/[\#\?@]/g,oj=/#/g;
|
|
function jj(a,b,c){this.a=a||null;this.c=!!c}function wj(a){if(!a.fa&&(a.fa=new Vi,a.O=0,a.a))for(var b=a.a.split("\x26"),c=0;c<b.length;c++){var d=b[c].indexOf("\x3d"),e=null,f=null;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=xj(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}l=jj.prototype;l.fa=null;l.O=null;l.La=function(){wj(this);return this.O};
|
|
l.add=function(a,b){wj(this);this.a=null;a=xj(this,a);var c=this.fa.get(a);c||Wi(this.fa,a,c=[]);c.push(b);this.O++;return this};l.remove=function(a){wj(this);a=xj(this,a);return Yi(this.fa.c,a)?(this.a=null,this.O-=this.fa.get(a).length,this.fa.remove(a)):!1};l.clear=function(){this.fa=this.a=null;this.O=0};l.ma=function(){wj(this);return 0==this.O};l.M=function(){wj(this);for(var a=this.fa.Oa(),b=this.fa.M(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
|
|
l.Oa=function(a){wj(this);var b=[];if(a){var c=a;wj(this);c=xj(this,c);Yi(this.fa.c,c)&&(b=Cb(b,this.fa.get(xj(this,a))))}else for(a=this.fa.Oa(),c=0;c<a.length;c++)b=Cb(b,a[c]);return b};l.get=function(a,b){var c=a?this.Oa(a):[];return 0<c.length?String(c[0]):b};function sj(a,b,c){a.remove(b);0<c.length&&(a.a=null,Wi(a.fa,xj(a,b),Db(c)),a.O+=c.length)}
|
|
l.toString=function(){if(this.a)return this.a;if(!this.fa)return"";for(var a=[],b=this.fa.M(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.Oa(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="\x3d"+encodeURIComponent(String(d[f])));a.push(g)}return this.a=a.join("\x26")};l.S=function(){var a=new jj;a.a=this.a;this.fa&&(a.fa=this.fa.S(),a.O=this.O);return a};function xj(a,b){var c=String(b);a.c&&(c=c.toLowerCase());return c}
|
|
function pj(a,b){b&&!a.c&&(wj(a),a.a=null,Ui(a.fa,function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),sj(this,e,a))},a));a.c=b};function yj(a,b,c){Ld.call(this);this.d=a;this.b=c;this.a=b||window;this.c=xa(this.de,this)}v(yj,Ld);l=yj.prototype;l.ba=null;l.Vd=!1;l.start=function(){zj(this);this.Vd=!1;var a=Aj(this),b=Bj(this);a&&!b&&this.a.mozRequestAnimationFrame?(this.ba=x(this.a,"MozBeforePaint",this.c),this.a.mozRequestAnimationFrame(null),this.Vd=!0):this.ba=a&&b?a.call(this.a,this.c):this.a.setTimeout(De(this.c),20)};
|
|
function zj(a){if(null!=a.ba){var b=Aj(a),c=Bj(a);b&&!c&&a.a.mozRequestAnimationFrame?re(a.ba):b&&c?c.call(a.a,a.ba):a.a.clearTimeout(a.ba)}a.ba=null}l.de=function(){this.Vd&&this.ba&&re(this.ba);this.ba=null;this.d.call(this.b,Aa())};l.H=function(){zj(this);yj.K.H.call(this)};function Aj(a){a=a.a;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null}
|
|
function Bj(a){a=a.a;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};var Cj;
|
|
function Dj(){var a=ea.MessageChannel;"undefined"===typeof a&&("undefined"!==typeof window&&window.postMessage&&window.addEventListener)&&(a=function(){var a=document.createElement("iframe");a.style.display="none";a.src="";document.body.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d=b.location.protocol+"//"+b.location.host,a=xa(function(a){if(a.origin==d||a.data==c)this.port1.onmessage()},this);b.addEventListener("message",a,
|
|
!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a){var b=new a,c={},d=c;b.port1.onmessage=function(){c=c.next;var a=c.$d;c.$d=null;a()};return function(a){d.next={$d:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("script")?function(a){var b=document.createElement("script");b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};
|
|
document.documentElement.appendChild(b)}:function(a){ea.setTimeout(a,0)}};function Ej(a){He.call(this);this.Bc=a||window;this.Rc=x(this.Bc,"resize",this.og,!1,this);this.Ab=uc(this.Bc||window)}v(Ej,He);l=Ej.prototype;l.Rc=null;l.Bc=null;l.Ab=null;l.H=function(){Ej.K.H.call(this);this.Rc&&(re(this.Rc),this.Rc=null);this.Ab=this.Bc=null};l.og=function(){var a=uc(this.Bc||window);a==this.Ab||a&&this.Ab&&a.width==this.Ab.width&&a.height==this.Ab.height||(this.Ab=a,A(this,"resize"))};function Fj(a,b,c,d,e){if(!(ab||cb&&ob("525")))return!0;if(Qa&&e)return Gj(a);if(e&&!d||!c&&(17==b||18==b||Qa&&91==b))return!1;if(cb&&d&&c)switch(a){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}if(ab&&d&&b==a)return!1;switch(a){case 13:return!(ab&&ab&&9<=qb);case 27:return!cb}return Gj(a)}
|
|
function Gj(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||cb&&0==a)return!0;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}}function Hj(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Ij(a,b){He.call(this);a&&Jj(this,a,b)}v(Ij,He);l=Ij.prototype;l.rc=null;l.Vc=null;l.wd=null;l.Wc=null;l.na=-1;l.ob=-1;l.ld=!1;
|
|
var Kj={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},Lj={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Mj=ab||cb&&ob("525"),Nj=Qa&&bb;
|
|
Ij.prototype.a=function(a){cb&&(17==this.na&&!a.qc||18==this.na&&!a.pa||Qa&&91==this.na&&!a.vd)&&(this.ob=this.na=-1);-1==this.na&&(a.qc&&17!=a.$a?this.na=17:a.pa&&18!=a.$a?this.na=18:a.vd&&91!=a.$a&&(this.na=91));Mj&&!Fj(a.$a,this.na,a.ab,a.qc,a.pa)?this.handleEvent(a):(this.ob=bb?Hj(a.$a):a.$a,Nj&&(this.ld=a.pa))};Ij.prototype.c=function(a){this.ob=this.na=-1;this.ld=a.pa};
|
|
Ij.prototype.handleEvent=function(a){var b=a.P,c,d,e=b.altKey;ab&&"keypress"==a.type?(c=this.ob,d=13!=c&&27!=c?b.keyCode:0):cb&&"keypress"==a.type?(c=this.ob,d=0<=b.charCode&&63232>b.charCode&&Gj(c)?b.charCode:0):$a?(c=this.ob,d=Gj(c)?b.keyCode:0):(c=b.keyCode||this.ob,d=b.charCode||0,Nj&&(e=this.ld),Qa&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Kj?f=Kj[c]:25==c&&a.ab&&(f=9):g&&g in Lj&&(f=Lj[g]);a=f==this.na;this.na=f;b=new Oj(f,d,a,b);b.pa=e;A(this,b)};
|
|
function Jj(a,b,c){a.Wc&&Pj(a);a.rc=b;a.Vc=x(a.rc,"keypress",a,c);a.wd=x(a.rc,"keydown",a.a,c,a);a.Wc=x(a.rc,"keyup",a.c,c,a)}function Pj(a){a.Vc&&(re(a.Vc),re(a.wd),re(a.Wc),a.Vc=null,a.wd=null,a.Wc=null);a.rc=null;a.na=-1;a.ob=-1}Ij.prototype.H=function(){Ij.K.H.call(this);Pj(this)};function Oj(a,b,c,d){d&&Zd(this,d,void 0);this.type="key";this.$a=a;this.ud=b;this.a=c}v(Oj,Yd);function Qj(a,b){He.call(this);this.a=a;var c=ra(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:null;this.e=!!c&&Zc(c);this.c=x(this.a,bb?"DOMMouseScroll":"mousewheel",this,b)}v(Qj,He);
|
|
Qj.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.P;if("mousewheel"==a.type){c=1;if(ab||cb&&(Ta||ob("532.0")))c=40;d=Rj(-a.wheelDelta,c);s(a.wheelDeltaX)?(b=Rj(-a.wheelDeltaX,c),c=Rj(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),s(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;oa(this.b)&&(b=Xb(b,-this.b,this.b));oa(this.d)&&(c=Xb(c,-this.d,this.d));this.e&&(b=-b);b=new Sj(d,a,b,c);A(this,b)};function Rj(a,b){return cb&&(Qa||Ua)&&0!=a%b?a:a/b}
|
|
Qj.prototype.H=function(){Qj.K.H.call(this);re(this.c);this.c=null};function Sj(a,b,c,d){b&&Zd(this,b,void 0);this.type="mousewheel";this.detail=a;this.b=c;this.a=d}v(Sj,Yd);function Tj(a){Je.call(this);this.o=qh(a.projection);this.N=s(a.extent)?a.extent:s(a.projection)?this.o.C():null;this.i=s(a.attributions)?a.attributions:null;this.t=a.logo;this.k=s(a.state)?a.state:1}v(Tj,Je);Tj.prototype.bd=fa;Tj.prototype.C=k("N");Tj.prototype.a=k("k");function Uj(a,b){a.k=b;a.l()};function J(a){Me.call(this);a=lc(a);a.brightness=s(a.brightness)?a.brightness:0;a.contrast=s(a.contrast)?a.contrast:1;a.hue=s(a.hue)?a.hue:0;a.opacity=s(a.opacity)?a.opacity:1;a.saturation=s(a.saturation)?a.saturation:1;a.visible=s(a.visible)?a.visible:!0;a.maxResolution=s(a.maxResolution)?a.maxResolution:Infinity;a.minResolution=s(a.minResolution)?a.minResolution:0;this.J(a)}v(J,Me);J.prototype.d=function(){return this.get("brightness")};J.prototype.getBrightness=J.prototype.d;J.prototype.e=function(){return this.get("contrast")};
|
|
J.prototype.getContrast=J.prototype.e;J.prototype.f=function(){return this.get("hue")};J.prototype.getHue=J.prototype.f;function Vj(a){var b=a.d(),c=a.e(),d=a.f(),e=a.n(),f=a.k(),g=a.Ua(),h=a.b(),m=a.i(),n=a.g();return{layer:a,brightness:s(b)?Xb(b,-1,1):0,contrast:s(c)?Math.max(c,0):1,hue:s(d)?d:0,opacity:s(e)?Xb(e,0,1):1,saturation:s(f)?Math.max(f,0):1,Va:g,visible:s(h)?!!h:!0,maxResolution:s(m)?m:Infinity,minResolution:s(n)?Math.max(n,0):0}}J.prototype.i=function(){return this.get("maxResolution")};
|
|
J.prototype.getMaxResolution=J.prototype.i;J.prototype.g=function(){return this.get("minResolution")};J.prototype.getMinResolution=J.prototype.g;J.prototype.n=function(){return this.get("opacity")};J.prototype.getOpacity=J.prototype.n;J.prototype.k=function(){return this.get("saturation")};J.prototype.getSaturation=J.prototype.k;J.prototype.b=function(){return this.get("visible")};J.prototype.getVisible=J.prototype.b;J.prototype.o=function(a){this.s("brightness",a)};J.prototype.setBrightness=J.prototype.o;
|
|
J.prototype.p=function(a){this.s("contrast",a)};J.prototype.setContrast=J.prototype.p;J.prototype.t=function(a){this.s("hue",a)};J.prototype.setHue=J.prototype.t;J.prototype.r=function(a){this.s("maxResolution",a)};J.prototype.setMaxResolution=J.prototype.r;J.prototype.D=function(a){this.s("minResolution",a)};J.prototype.setMinResolution=J.prototype.D;J.prototype.F=function(a){this.s("opacity",a)};J.prototype.setOpacity=J.prototype.F;J.prototype.N=function(a){this.s("saturation",a)};
|
|
J.prototype.setSaturation=J.prototype.N;J.prototype.W=function(a){this.s("visible",a)};J.prototype.setVisible=J.prototype.W;function K(a){var b=lc(a);delete b.source;J.call(this,b);this.a=a.source;x(this.a,"change",this.kd,!1,this)}v(K,J);K.prototype.Oc=function(a){a=s(a)?a:[];a.push(Vj(this));return a};K.prototype.ca=k("a");K.prototype.Ua=function(){return this.a.k};K.prototype.kd=function(){this.l()};function Wj(a,b,c,d,e){He.call(this);this.i=e;this.k=a;this.b=c;this.d=b;this.state=d}v(Wj,He);Wj.prototype.C=k("k");function Xj(a,b,c,d,e,f){Wj.call(this,a,b,c,0,d);this.g=e;this.a=new Image;null!==f&&(this.a.crossOrigin=f);this.f={};this.c=null;this.state=0}v(Xj,Wj);Xj.prototype.e=function(a){if(s(a)){var b=sa(a);if(b in this.f)return this.f[b];a=hc(this.f)?this.a:this.a.cloneNode(!1);return this.f[b]=a}return this.a};Xj.prototype.n=function(){this.state=3;wb(this.c,re);this.c=null;A(this,"change")};Xj.prototype.q=function(){this.state=2;wb(this.c,re);this.c=null;A(this,"change")};
|
|
function Yj(a){0==a.state&&(a.state=1,a.c=[oe(a.a,"error",a.n,!1,a),oe(a.a,"load",a.q,!1,a)],a.a.src=a.g)};function Zj(a,b){He.call(this);this.a=a;this.state=b}v(Zj,He);Zj.prototype.d=function(){return sa(this).toString()};Zj.prototype.k=k("a");function ak(a){this.minZoom=s(a.minZoom)?a.minZoom:0;this.a=a.resolutions;this.maxZoom=this.a.length-1;this.e=s(a.origin)?a.origin:null;this.i=null;s(a.origins)&&(this.i=a.origins);this.b=null;s(a.tileSizes)&&(this.b=a.tileSizes);this.f=s(a.tileSize)?a.tileSize:null===this.b?256:void 0}var bk=new Lb(0,0,0);l=ak.prototype;l.Mc=function(a,b,c,d,e){e=ck(this,a,e);for(a=a.a-1;a>=this.minZoom;){if(b.call(c,a,dk(this,e,a,d)))return!0;--a}return!1};l.Pc=k("minZoom");
|
|
l.pb=function(a){return null===this.e?this.i[a]:this.e};l.ha=function(a){return this.a[a]};l.Qc=function(a,b,c){return a.a<this.maxZoom?(c=ck(this,a,c),dk(this,c,a.a+1,b)):null};function ek(a,b,c,d){fk(a,b[0],b[1],c,!1,bk);var e=bk.x,f=bk.y;fk(a,b[2],b[3],c,!0,bk);return Qb(e,bk.x,f,bk.y,d)}function dk(a,b,c,d){return ek(a,b,a.ha(c),d)}function gk(a,b){var c=a.pb(b.a),d=a.ha(b.a),e=a.ka(b.a);return[c[0]+(b.x+0.5)*e*d,c[1]+(b.y+0.5)*e*d]}
|
|
function ck(a,b,c){var d=a.pb(b.a),e=a.ha(b.a);a=a.ka(b.a);var f=d[0]+b.x*a*e;b=d[1]+b.y*a*e;return wg(f,b,f+a*e,b+a*e,c)}function fk(a,b,c,d,e,f){var g=jg(a.a,d,0),h=d/a.ha(g),m=a.pb(g);a=a.ka(g);b=h*(b-m[0])/(d*a);c=h*(c-m[1])/(d*a);e?(b=Math.ceil(b)-1,c=Math.ceil(c)-1):(b=Math.floor(b),c=Math.floor(c));return Mb(g,b,c,f)}l.ka=function(a){return s(this.f)?this.f:this.b[a]};function hk(a){Tj.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection});this.D=s(a.opaque)?a.opaque:!1;this.pixelRatio=null!=a.pixelRatio?a.pixelRatio:1;this.tileGrid=s(a.tileGrid)?a.tileGrid:null}v(hk,Tj);l=hk.prototype;l.Fd=ze;l.qd=function(a,b,c,d){var e=!0,f,g,h,m;for(h=d.a;h<=d.d;++h)for(m=d.b;m<=d.c;++m)g=this.lb(c,h,m),a[c]&&a[c][g]||(f=b(c,h,m),null===f?e=!1:(a[c]||(a[c]={}),a[c][g]=f));return e};l.Nc=ca(0);l.lb=Nb;l.Ca=k("tileGrid");
|
|
function ik(a,b){var c;if(null===a.tileGrid){if(c=b.g,null===c){c=b.C();for(var d=null===c?360*Vg.degrees/b.f():Math.max(c[2]-c[0],c[3]-c[1]),e=s(void 0)?void 0:256,f=Array((s(void 0)?NaN:42)+1),d=d/e,g=0,h=f.length;g<h;++g)f[g]=d/Math.pow(2,g);c=new ak({origin:null===c?[0,0]:Fg(c),resolutions:f,tileSize:e});b.g=c}}else c=a.tileGrid;return c}l.pc=function(a,b,c){a=ik(this,c).ka(a);return 1==this.pixelRatio?a:a*this.pixelRatio+0.5|0};l.Xe=fa;function jk(a,b){Ld.call(this);this.e=a;this.a=b}v(jk,Ld);jk.prototype.f=fa;jk.prototype.q=function(a){2===a.target.state&&kk(this)};function kk(a){var b=a.a;b.b()&&1==b.Ua()&&a.e.f.U()}function lk(a,b){b.Fd()&&a.rb.push(za(function(a,b,e){b=sa(a).toString();a.Ee(e.Ac[b])},b))}function mk(a,b){if(null!=b){var c,d,e;d=0;for(e=b.length;d<e;++d)c=b[d],a[sa(c).toString()]=c}}function nk(a,b){var c=b.t;s(c)&&(a.Bd[c]="")}
|
|
function ok(a,b,c,d){b=sa(b).toString();c=c.toString();b in a?c in a[b]?(a=a[b][c],d.a<a.a&&(a.a=d.a),d.d>a.d&&(a.d=d.d),d.b<a.b&&(a.b=d.b),d.c>a.c&&(a.c=d.c)):a[b][c]=d:(a[b]={},a[b][c]=d)}function pk(a,b,c,d){return function(e,f,g){e=b.Pb(e,f,g,c,d);return a(e)?e:null}}function qk(a,b,c){return[b*(Math.round(a[0]/b)+c[0]%2/2),b*(Math.round(a[1]/b)+c[1]%2/2)]}
|
|
function rk(a,b,c,d,e,f,g,h,m,n){var p=sa(b).toString();p in a.Zb||(a.Zb[p]={});var q=a.Zb[p];a=a.ui;var r=c.minZoom,u,y,B,z,F,D;s(h)||(h=0);for(D=g;D>=r;--D)for(y=dk(c,f,D),B=c.ha(D),z=y.a;z<=y.d;++z)for(F=y.b;F<=y.c;++F)g-D<=h?(u=b.Pb(D,z,F,d,e),0==u.state&&(q[u.a.toString()]=!0,u.d()in a.b||sk(a,[u,p,gk(c,u.a),B])),s(m)&&m.call(n,u)):b.Xe(D,z,F)};function tk(a){a=s(a)?a:{};this.e=s(a.anchor)?a.anchor:[0.5,0.5];this.d=null;this.c=s(a.anchorOrigin)?a.anchorOrigin:"top-left";this.q=s(a.anchorXUnits)?a.anchorXUnits:"fraction";this.o=s(a.anchorYUnits)?a.anchorYUnits:"fraction";var b=s(a.crossOrigin)?a.crossOrigin:null,c=s(a.img)?a.img:null,d=a.src;s(d)&&0!==d.length||null===c||(d=c.src);var e=s(a.src)?0:2,f=vk.kb(),g=f.get(d,b);null===g&&(g=new wk(c,d,b,e),f.a[b+":"+d]=g,++f.c);this.a=g;this.F=s(a.offset)?a.offset:[0,0];this.b=s(a.offsetOrigin)?
|
|
a.offsetOrigin:"top-left";this.f=null;this.p=s(a.size)?a.size:null;Ji.call(this,{opacity:s(a.opacity)?a.opacity:1,rotation:s(a.rotation)?a.rotation:0,scale:s(a.scale)?a.scale:1,snapToPixel:s(a.snapToPixel)?a.snapToPixel:!0,rotateWithView:s(a.rotateWithView)?a.rotateWithView:!1})}v(tk,Ji);l=tk.prototype;
|
|
l.oc=function(){if(null!==this.d)return this.d;var a=this.e,b=this.Db();if("fraction"==this.q||"fraction"==this.o){if(null===b)return null;a=this.e.slice();"fraction"==this.q&&(a[0]*=b[0]);"fraction"==this.o&&(a[1]*=b[1])}if("top-left"!=this.c){if(null===b)return null;a===this.e&&(a=this.e.slice());if("top-right"==this.c||"bottom-right"==this.c)a[0]=-a[0]+b[0];if("bottom-left"==this.c||"bottom-right"==this.c)a[1]=-a[1]+b[1]}return this.d=a};l.uc=function(){return this.a.a};l.Id=function(){return this.a.c};
|
|
l.He=function(){var a=this.a;if(null===a.e)if(a.g){var b=a.d[0],c=a.d[1],d=td(b,c);d.fillRect(0,0,b,c);a.e=d.canvas}else a.e=a.a;return a.e};l.vc=function(){if(null!==this.f)return this.f;var a=this.F;if("top-left"!=this.b){var b=this.Db(),c=this.a.d;if(null===b||null===c)return null;a=a.slice();if("top-right"==this.b||"bottom-right"==this.b)a[0]=c[0]-b[0]-a[0];if("bottom-left"==this.b||"bottom-right"==this.b)a[1]=c[1]-b[1]-a[1]}return this.f=a};l.Ch=function(){return this.a.f};
|
|
l.Db=function(){return null===this.p?this.a.d:this.p};l.zd=function(a,b){return x(this.a,"change",a,!1,b)};l.Jd=function(){var a=this.a;if(0==a.c){a.c=1;a.b=[oe(a.a,"error",a.i,!1,a),oe(a.a,"load",a.k,!1,a)];try{a.a.src=a.f}catch(b){a.i()}}};l.Td=function(a,b){pe(this.a,"change",a,!1,b)};function wk(a,b,c,d){He.call(this);this.e=null;this.a=null===a?new Image:a;null!==c&&(this.a.crossOrigin=c);this.b=null;this.c=d;this.d=null;this.f=b;this.g=!1}v(wk,He);
|
|
wk.prototype.i=function(){this.c=3;wb(this.b,re);this.b=null;A(this,"change")};wk.prototype.k=function(){this.c=2;this.d=[this.a.width,this.a.height];wb(this.b,re);this.b=null;var a=td(1,1);a.drawImage(this.a,0,0);try{a.getImageData(0,0,1,1)}catch(b){this.g=!0}A(this,"change")};function vk(){this.a={};this.c=0;this.b=32}ga(vk);vk.prototype.clear=function(){this.a={};this.c=0};vk.prototype.get=function(a,b){var c=b+":"+a;return c in this.a?this.a[c]:null};function xk(a,b,c,d,e,f,g,h){od(a);0===b&&0===c||qd(a,b,c);1==d&&1==e||rd(a,d,e);0!==f&&sd(a,f);0===g&&0===h||qd(a,g,h);return a}function yk(a,b){return a[0]==b[0]&&a[1]==b[1]&&a[4]==b[4]&&a[5]==b[5]&&a[12]==b[12]&&a[13]==b[13]}function zk(a,b,c){var d=a[1],e=a[5],f=a[13],g=b[0];b=b[1];c[0]=a[0]*g+a[4]*b+a[12];c[1]=d*g+e*b+f;return c};function Ak(a,b){Ld.call(this);this.f=b;this.b={}}v(Ak,Ld);
|
|
function Bk(a){var b=a.view2DState,c=a.be;xk(c,a.size[0]/2,a.size[1]/2,1/b.resolution,-1/b.resolution,-b.rotation,-b.center[0],-b.center[1]);a=a.Ke;var b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],h=c[5],m=c[6],n=c[7],p=c[8],q=c[9],r=c[10],u=c[11],y=c[12],B=c[13],z=c[14],c=c[15],F=b*h-d*g,D=b*m-e*g,L=b*n-f*g,R=d*m-e*h,ha=d*n-f*h,T=e*n-f*m,pa=p*B-q*y,ya=p*z-r*y,Oa=p*c-u*y,Sa=q*z-r*B,ia=q*c-u*B,Wa=r*c-u*z,Ra=F*Wa-D*ia+L*Sa+R*Oa-ha*ya+T*pa;0!=Ra&&(Ra=1/Ra,a[0]=(h*Wa-m*ia+n*Sa)*Ra,a[1]=(-d*Wa+e*ia-f*Sa)*Ra,a[2]=
|
|
(B*T-z*ha+c*R)*Ra,a[3]=(-q*T+r*ha-u*R)*Ra,a[4]=(-g*Wa+m*Oa-n*ya)*Ra,a[5]=(b*Wa-e*Oa+f*ya)*Ra,a[6]=(-y*T+z*L-c*D)*Ra,a[7]=(p*T-r*L+u*D)*Ra,a[8]=(g*ia-h*Oa+n*pa)*Ra,a[9]=(-b*ia+d*Oa-f*pa)*Ra,a[10]=(y*ha-B*L+c*F)*Ra,a[11]=(-p*ha+q*L-u*F)*Ra,a[12]=(-g*Sa+h*ya-m*pa)*Ra,a[13]=(b*Sa-d*ya+e*pa)*Ra,a[14]=(-y*R+B*D-z*F)*Ra,a[15]=(p*R-q*D+r*F)*Ra)}Ak.prototype.Fc=function(a){return new jk(this,a)};Ak.prototype.H=function(){cc(this.b,function(a){Pd(a)});Ak.K.H.call(this)};
|
|
function Ck(a,b){var c=sa(b).toString();if(c in a.b)return a.b[c];var d=a.Fc(b);return a.b[c]=d}Ak.prototype.dd=fa;Ak.prototype.t=function(a,b){for(var c in this.b)if(!(null!==b&&c in b.yd)){var d=this.b[c];delete this.b[c];Pd(d)}};function Dk(a){a.rb.push(function(){var a=vk.kb();if(a.c>a.b){var c=0,d,e;for(d in a.a)e=a.a[d],0!==(c++&3)||te(e)||(delete a.a[d],--a.c)}})}function Ek(a,b){for(var c in a.b)if(!(c in b.yd)){b.rb.push(xa(a.t,a));break}};function Fk(a,b){this.f=a;this.e=b;this.a=[];this.c=[];this.b={}}Fk.prototype.clear=function(){this.a.length=0;this.c.length=0;ic(this.b)};function Gk(a){var b=a.a,c=a.c,d=b[0];1==b.length?(b.length=0,c.length=0):(b[0]=b.pop(),c[0]=c.pop(),Hk(a,0));b=a.e(d);delete a.b[b];return d}function sk(a,b){var c=a.f(b);Infinity!=c&&(a.a.push(b),a.c.push(c),a.b[a.e(b)]=!0,Ik(a,0,a.a.length-1))}Fk.prototype.La=function(){return this.a.length};Fk.prototype.ma=function(){return 0===this.a.length};
|
|
function Hk(a,b){for(var c=a.a,d=a.c,e=c.length,f=c[b],g=d[b],h=b;b<e>>1;){var m=2*b+1,n=2*b+2,m=n<e&&d[n]<d[m]?n:m;c[b]=c[m];d[b]=d[m];b=m}c[b]=f;d[b]=g;Ik(a,h,b)}function Ik(a,b,c){var d=a.a;a=a.c;for(var e=d[c],f=a[c];c>b;){var g=c-1>>1;if(a[g]>f)d[c]=d[g],a[c]=a[g],c=g;else break}d[c]=e;a[c]=f}function Jk(a){var b=a.f,c=a.a,d=a.c,e=0,f=c.length,g,h,m;for(h=0;h<f;++h)g=c[h],m=b(g),Infinity==m?delete a.b[a.e(g)]:(d[e]=m,c[e++]=g);c.length=e;d.length=e;for(b=(a.a.length>>1)-1;0<=b;b--)Hk(a,b)};function Kk(a,b){Fk.call(this,function(b){return a.apply(null,b)},function(a){return a[0].d()});this.g=b;this.d=0}v(Kk,Fk);Kk.prototype.i=function(){--this.d;this.g()};function M(a){Me.call(this);this.element=s(a.element)?a.element:null;this.r=s(a.target)?rc(a.target):null;this.a=null;this.i=[]}v(M,Me);M.prototype.H=function(){Ec(this.element);M.K.H.call(this)};M.prototype.b=k("a");M.prototype.d=fa;M.prototype.setMap=function(a){null===this.a||Ec(this.element);0!=this.i.length&&(wb(this.i,re),this.i.length=0);this.a=a;null!==this.a&&((null===this.r?a.t:this.r).appendChild(this.element),this.d!==fa&&this.i.push(x(a,"postrender",this.d,!1,this)),a.U())};function Lk(a){a=s(a)?a:{};this.k=zc("UL");var b=vc("DIV",{"class":(s(a.className)?a.className:"ol-attribution")+" ol-unselectable"},this.k);M.call(this,{element:b,target:a.target});this.g=!0;this.f={};this.e={}}v(Lk,M);
|
|
Lk.prototype.d=function(a){a=a.frameState;if(null===a)this.g&&(Yc(this.element,!1),this.g=!1);else{var b,c,d,e,f,g,h,m,n,p=a.Yc,q=lc(a.attributions),r={};b=0;for(c=p.length;b<c;b++)if(d=p[b].layer.a,n=sa(d).toString(),m=d.i,null!==m)for(d=0,e=m.length;d<e;d++)if(g=m[d],h=sa(g).toString(),!(h in q)){f=a.Ac[n];var u;if(u=s(f))a:if(null===g.a)u=!0;else{var y=u=void 0,B=void 0,z=void 0;for(z in f)if(z in g.a)for(B=f[z],u=0,y=g.a[z].length;u<y;++u)if(g.a[z][u].a<=B.d&&g.a[z][u].d>=B.a&&g.a[z][u].b<=B.c&&
|
|
g.a[z][u].c>=B.b){u=!0;break a}u=!1}u?(h in r&&delete r[h],q[h]=g):r[h]=g}b=[q,r];a=b[0];b=b[1];for(var F in this.f)F in a?(this.e[F]||(Yc(this.f[F],!0),this.e[F]=!0),delete a[F]):F in b?(this.e[F]&&(Yc(this.f[F],!1),delete this.e[F]),delete b[F]):(Ec(this.f[F]),delete this.f[F],delete this.e[F]);for(F in a)c=zc("LI"),c.innerHTML=a[F].c,this.k.appendChild(c),this.f[F]=c,this.e[F]=!0;for(F in b)c=zc("LI"),c.innerHTML=b[F].c,Yc(c,!1),this.k.appendChild(c),this.f[F]=c;F=!hc(this.e);this.g!=F&&(Yc(this.element,
|
|
F),this.g=F)}};function Mk(a){a=s(a)?a:{};this.f=zc("UL");var b=vc("DIV",{"class":(s(a.className)?a.className:"ol-logo")+" ol-unselectable"},this.f);M.call(this,{element:b,target:a.target});this.e=!0;this.g={}}v(Mk,M);
|
|
Mk.prototype.d=function(a){a=a.frameState;if(null===a)this.e&&(Yc(this.element,!1),this.e=!1);else{var b;a=a.Bd;var c=this.g;for(b in c)b in a||(Ec(c[b]),delete c[b]);for(var d in a)if(!(d in c)){b=new Image;b.src=d;var e=a[d];""===e?e=b:(e=vc("A",{href:e,target:"_blank"}),e.appendChild(b));b=vc("LI",void 0,e);this.f.appendChild(b);c[d]=b}d=!hc(a);this.e!=d&&(Yc(this.element,d),this.e=d)}};function Nk(a){a=s(a)?a:{};var b=s(a.className)?a.className:"ol-rotate",c=vc("SPAN",{"class":"ol-compass"},s(a.label)?a.label:"\u21e7");this.e=c;var d=vc("SPAN",{role:"tooltip"},s(a.tipLabel)?a.tipLabel:"Reset rotation"),c=vc("BUTTON",{"class":b+"-reset ol-has-tooltip",name:"ResetRotation",type:"button"},d,c),d=new Gf(c);Od(this,d);x(d,sf,Nk.prototype.n,!1,this);x(c,"click",Nk.prototype.k,!1,this);x(c,["mouseout",Wd],function(){this.blur()},!1);b=vc("DIV",b+" ol-unselectable ol-control",c);M.call(this,
|
|
{element:b,target:a.target});this.g=s(a.duration)?a.duration:250;this.f=s(a.autoHide)?a.autoHide:!0;b.style.opacity=this.f?0:1}v(Nk,M);Nk.prototype.k=function(a){0!==a.screenX&&0!==a.screenY||Ok(this)};Nk.prototype.n=function(a){a.a.preventDefault();Ok(this)};function Ok(a){for(var b=a.a,c=b.a().$(),d=c.e();d<-Math.PI;)d+=2*Math.PI;for(;d>Math.PI;)d-=2*Math.PI;s(d)&&(0<a.g&&b.ya(Bh({rotation:d,duration:a.g,easing:wh})),c.o(0))}
|
|
Nk.prototype.d=function(a){a=a.frameState;if(null!==a){a=a.view2DState.rotation;var b="rotate("+360*a/(2*Math.PI)+"deg)";this.f&&(this.element.style.opacity=0===a?0:1);this.e.style.msTransform=b;this.e.style.webkitTransform=b;this.e.style.transform=b}};function Pk(a){a=s(a)?a:{};var b=s(a.className)?a.className:"ol-zoom",c=s(a.delta)?a.delta:1,d=s(a.zoomInLabel)?a.zoomInLabel:"+",e=s(a.zoomOutLabel)?a.zoomOutLabel:"\u2212",f=s(a.zoomOutTipLabel)?a.zoomOutTipLabel:"Zoom out",g=vc("SPAN",{role:"tooltip"},s(a.zoomInTipLabel)?a.zoomInTipLabel:"Zoom in"),d=vc("BUTTON",{"class":b+"-in ol-has-tooltip",type:"button"},g,d),g=new Gf(d);Od(this,g);x(g,sf,za(Pk.prototype.g,c),!1,this);x(d,"click",za(Pk.prototype.f,c),!1,this);x(d,["mouseout",Wd],function(){this.blur()},
|
|
!1);f=vc("SPAN",{role:"tooltip"},f);e=vc("BUTTON",{"class":b+"-out ol-has-tooltip",type:"button"},f,e);f=new Gf(e);Od(this,f);x(f,sf,za(Pk.prototype.g,-c),!1,this);x(e,"click",za(Pk.prototype.f,-c),!1,this);x(e,["mouseout",Wd],function(){this.blur()},!1);b=vc("DIV",b+" ol-unselectable ol-control",d,e);M.call(this,{element:b,target:a.target});this.e=s(a.duration)?a.duration:250}v(Pk,M);Pk.prototype.f=function(a,b){0!==b.screenX&&0!==b.screenY||Qk(this,a)};
|
|
Pk.prototype.g=function(a,b){b.a.preventDefault();Qk(this,a)};function Qk(a,b){var c=a.a,d=c.a().$(),e=d.b();s(e)&&(0<a.e&&c.ya(Ch({resolution:e,duration:a.e,easing:wh})),c=d.constrainResolution(e,b),d.d(c))};function Rk(a){a=s(a)?a:{};var b=new C;(s(a.zoom)?a.zoom:1)&&b.push(new Pk(a.zoomOptions));(s(a.rotate)?a.rotate:1)&&b.push(new Nk(a.rotateOptions));(s(a.attribution)?a.attribution:1)&&b.push(new Lk(a.attributionOptions));(s(a.logo)?a.logo:1)&&b.push(new Mk(a.logoOptions));return b};function Sk(a,b,c){this.e=a;this.b=b;this.f=c;this.a=[];this.c=this.d=0}Sk.prototype.update=function(a,b){this.a.push(a,b,Aa())};function Tk(a,b){var c=a.e,d=a.c,e=a.b,f=Math.log(a.b/a.c)/a.e;return Ah({source:b,duration:f,easing:function(a){return d*(Math.exp(c*a*f)-1)/(e-d)}})};function Uk(a){a=s(a)?a:{};this.a=s(a.delta)?a.delta:1;Dh.call(this);this.b=s(a.duration)?a.duration:250}v(Uk,Dh);Uk.prototype.Fa=function(a){var b=!1,c=a.a;if(a.type==Sf){var b=a.map,d=a.coordinate,c=c.ab?-this.a:this.a,e=b.a().$();Fh(b,e,c,d,this.b);a.preventDefault();b=!0}return!b};function Vk(a){Hh.call(this);this.a=(s(a)?a:{}).kinetic;this.d=this.e=null;this.k=s(a.condition)?a.condition:cg;this.f=!1}v(Vk,Hh);Vk.prototype.nb=function(a){var b=Ih(this.b);if(null!==this.d){this.a&&this.a.update(b[0],b[1]);var c=this.d[0]-b[0],d=b[1]-this.d[1];a=a.map;var e=a.a().$(),f=vh(e),d=c=[c,d],g=f.resolution;d[0]*=g;d[1]*=g;af(c,f.rotation);We(c,f.center);c=e.g(c);a.U();e.Ea(c)}this.d=b};
|
|
Vk.prototype.cb=function(a){a=a.map;var b=a.a().$();if(0===this.b.length){var c;if(c=!this.f)if(c=this.a){c=this.a;var d=Aa()-c.f,e=c.a.length-3;if(c.a[e+2]<d)c=!1;else{for(var f=e-3;0<=f&&c.a[f+2]>d;)f-=3;if(0<=f){var d=c.a[e+2]-c.a[f+2],g=c.a[e]-c.a[f],e=c.a[e+1]-c.a[f+1];c.d=Math.atan2(e,g);c.c=Math.sqrt(g*g+e*e)/d;c=c.c>c.b}else c=!1}}c&&(c=(this.a.b-this.a.c)/this.a.e,e=this.a.d,f=b.a(),this.e=Tk(this.a,f),a.ya(this.e),f=a.f(f),c=a.Ba([f[0]-c*Math.cos(e),f[1]-c*Math.sin(e)]),c=b.g(c),b.Ea(c));
|
|
sg(b,-1);a.U();return!1}this.d=null;return!0};Vk.prototype.bb=function(a){if(0<this.b.length&&this.k(a)){var b=a.map,c=b.a().$();this.d=null;this.g||sg(c,1);b.U();null!==this.e&&Bb(b.r,this.e)&&(c.Ea(a.frameState.view2DState.center),this.e=null);this.a&&(a=this.a,a.a.length=0,a.d=0,a.c=0);this.f=1<this.b.length;return!0}return!1};function Wk(a){a=s(a)?a:{};Hh.call(this);this.d=s(a.condition)?a.condition:ag;this.a=void 0}v(Wk,Hh);Wk.prototype.nb=function(a){if(fg(a)){var b=a.map,c=b.e();a=a.pixel;c=Math.atan2(c[1]/2-a[1],a[0]-c[0]/2);if(s(this.a)){a=c-this.a;var d=b.a().$(),e=vh(d);b.U();Eh(b,d,e.rotation-a)}this.a=c}};Wk.prototype.cb=function(a){if(!fg(a))return!0;a=a.map;var b=a.a();sg(b,-1);var b=b.$(),c=vh(b).rotation,c=b.constrainRotation(c,0);Eh(a,b,c,void 0,250);return!1};
|
|
Wk.prototype.bb=function(a){return fg(a)&&ae(a.a)&&this.d(a)?(a=a.map,sg(a.a(),1),a.U(),this.a=void 0,!0):!1};function Xk(a){a=s(a)?a:{};yi.call(this,{condition:s(a.condition)?a.condition:dg,style:s(a.style)?a.style:new Mi({stroke:new Ki({color:[0,0,255,1]})})})}v(Xk,yi);Xk.prototype.Ie=function(){var a=this.i,b=a.a().$(),c=this.Q().C(),d=Gg(c),c=b.k(c,a.e()),c=b.constrainResolution(c,0,void 0);Gh(a,b,c,d,200)};function Yk(a){Dh.call(this);a=s(a)?a:{};this.a=s(a.condition)?a.condition:Ee(cg,eg);this.b=s(a.pixelDelta)?a.pixelDelta:128}v(Yk,Dh);Yk.prototype.Fa=function(a){var b=!1;if("key"==a.type){var c=a.a.$a;if(this.a(a)&&(40==c||37==c||39==c||38==c)){var d=a.map,b=d.a(),e=vh(b),f=e.resolution*this.b,g=0,h=0;40==c?h=-f:37==c?g=-f:39==c?g=f:h=f;c=[g,h];af(c,e.rotation);e=b.a();s(e)&&(s(100)&&d.ya(Ah({source:e,duration:100,easing:yh})),d=b.g([e[0]+c[0],e[1]+c[1]]),b.Ea(d));a.preventDefault();b=!0}}return!b};function Zk(a){Dh.call(this);a=s(a)?a:{};this.b=s(a.condition)?a.condition:eg;this.a=s(a.delta)?a.delta:1;this.d=s(a.duration)?a.duration:100}v(Zk,Dh);Zk.prototype.Fa=function(a){var b=!1;if("key"==a.type){var c=a.a.ud;if(this.b(a)&&(43==c||45==c)){b=a.map;c=43==c?this.a:-this.a;b.U();var d=b.a().$();Fh(b,d,c,void 0,this.d);a.preventDefault();b=!0}}return!b};function $k(a){a=s(a)?a:{};Dh.call(this);this.a=0;this.g=s(a.duration)?a.duration:250;this.d=null;this.e=this.b=void 0}v($k,Dh);$k.prototype.Fa=function(a){var b=!1;if("mousewheel"==a.type){var b=a.map,c=a.a;this.d=a.coordinate;this.a+=c.a;s(this.b)||(this.b=Aa());c=Math.max(80-(Aa()-this.b),0);ea.clearTimeout(this.e);this.e=ea.setTimeout(xa(this.f,this,b),c);a.preventDefault();b=!0}return!b};
|
|
$k.prototype.f=function(a){var b=Xb(this.a,-1,1),c=a.a().$();a.U();Fh(a,c,-b,this.d,this.g);this.a=0;this.d=null;this.e=this.b=void 0};function al(a){Hh.call(this);a=s(a)?a:{};this.d=null;this.e=void 0;this.a=!1;this.f=0;this.k=s(a.threshold)?a.threshold:0.3}v(al,Hh);al.prototype.nb=function(a){var b=0,c=this.b[0],d=this.b[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);s(this.e)&&(b=c-this.e,this.f+=b,!this.a&&Math.abs(this.f)>this.k&&(this.a=!0));this.e=c;a=a.map;c=Sc(a.b);d=Ih(this.b);d[0]-=c.x;d[1]-=c.y;this.d=a.Ba(d);this.a&&(c=a.a().$(),d=vh(c),a.U(),Eh(a,c,d.rotation+b,this.d))};
|
|
al.prototype.cb=function(a){if(2>this.b.length){a=a.map;var b=a.a();sg(b,-1);if(this.a){var b=b.$(),c=vh(b).rotation,d=this.d,c=b.constrainRotation(c,0);Eh(a,b,c,d,250)}return!1}return!0};al.prototype.bb=function(a){return 2<=this.b.length?(a=a.map,this.d=null,this.e=void 0,this.a=!1,this.f=0,this.g||sg(a.a(),1),a.U(),!0):!1};function bl(a){a=s(a)?a:{};Hh.call(this);this.d=null;this.f=s(a.duration)?a.duration:400;this.a=void 0;this.e=1}v(bl,Hh);bl.prototype.nb=function(a){var b=1,c=this.b[0],d=this.b[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);s(this.a)&&(b=this.a/e);this.a=e;1!=b&&(this.e=b);a=a.map;var e=a.a().$(),c=vh(e),d=Sc(a.b),f=Ih(this.b);f[0]-=d.x;f[1]-=d.y;this.d=a.Ba(f);a.U();Gh(a,e,c.resolution*b,this.d)};
|
|
bl.prototype.cb=function(a){if(2>this.b.length){a=a.map;var b=a.a();sg(b,-1);var b=b.$(),c=vh(b).resolution,d=this.d,e=this.f,c=b.constrainResolution(c,0,this.e-1);Gh(a,b,c,d,e);return!1}return!0};bl.prototype.bb=function(a){return 2<=this.b.length?(a=a.map,this.d=null,this.a=void 0,this.e=1,this.g||sg(a.a(),1),a.U(),!0):!1};function cl(a){a=s(a)?a:{};var b=new C,c=new Sk(-0.005,0.05,100);(s(a.altShiftDragRotate)?a.altShiftDragRotate:1)&&b.push(new Wk);(s(a.doubleClickZoom)?a.doubleClickZoom:1)&&b.push(new Uk({delta:a.zoomDelta,duration:a.zoomDuration}));(s(a.dragPan)?a.dragPan:1)&&b.push(new Vk({kinetic:c}));(s(a.pinchRotate)?a.pinchRotate:1)&&b.push(new al);(s(a.pinchZoom)?a.pinchZoom:1)&&b.push(new bl({duration:a.zoomDuration}));if(s(a.keyboard)?a.keyboard:1)b.push(new Yk),b.push(new Zk({delta:a.zoomDelta,duration:a.zoomDuration}));
|
|
(s(a.mouseWheelZoom)?a.mouseWheelZoom:1)&&b.push(new $k({duration:a.zoomDuration}));(s(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new Xk);return b};function N(a){var b=s(a)?a:{};a=lc(b);delete a.layers;b=b.layers;J.call(this,a);this.a=null;x(this,Qe("layers"),this.gg,!1,this);s(b)?la(b)&&(b=new C(Db(b))):b=new C;this.ca(b)}v(N,J);l=N.prototype;l.re=function(){this.b()&&this.l()};
|
|
l.gg=function(){null!==this.a&&(wb(fc(this.a),re),this.a=null);var a=this.Tb();if(null!=a){this.a={add:x(a,"add",this.fg,!1,this),remove:x(a,"remove",this.hg,!1,this)};var a=a.a,b,c,d;b=0;for(c=a.length;b<c;b++)d=a[b],this.a[sa(d).toString()]=x(d,["propertychange","change"],this.re,!1,this)}this.l()};l.fg=function(a){a=a.element;this.a[sa(a).toString()]=x(a,["propertychange","change"],this.re,!1,this);this.l()};l.hg=function(a){a=sa(a.element).toString();re(this.a[a]);delete this.a[a];this.l()};
|
|
l.Tb=function(){return this.get("layers")};N.prototype.getLayers=N.prototype.Tb;N.prototype.ca=function(a){this.s("layers",a)};N.prototype.setLayers=N.prototype.ca;
|
|
N.prototype.Oc=function(a){var b=s(a)?a:[],c=b.length;this.Tb().forEach(function(a){a.Oc(b)});a=Vj(this);var d,e;for(d=b.length;c<d;c++)e=b[c],e.brightness=Xb(e.brightness+a.brightness,-1,1),e.contrast*=a.contrast,e.hue+=a.hue,e.opacity*=a.opacity,e.saturation*=a.saturation,e.visible=e.visible&&a.visible,e.maxResolution=Math.min(e.maxResolution,a.maxResolution),e.minResolution=Math.max(e.minResolution,a.minResolution);return b};N.prototype.Ua=ca(1);function dl(a){Xg.call(this,{code:a,units:"m",extent:el,global:!0})}v(dl,Xg);var fl=6378137*Math.PI,el=[-fl,-fl,fl,fl],kh=xb("EPSG:3857 EPSG:102100 EPSG:102113 EPSG:900913 urn:ogc:def:crs:EPSG:6.18:3:3857 http://www.opengis.net/gml/srs/epsg.xml#3857".split(" "),function(a){return new dl(a)});function lh(a,b,c){var d=a.length;c=1<c?c:2;s(b)||(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c)b[e]=6378137*Math.PI*a[e]/180,b[e+1]=6378137*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));return b}
|
|
function mh(a,b,c){var d=a.length;c=1<c?c:2;s(b)||(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c)b[e]=180*a[e]/(6378137*Math.PI),b[e+1]=360*Math.atan(Math.exp(a[e+1]/6378137))/Math.PI-90;return b}dl.prototype.d=function(a,b){return a/((Math.exp(b[1]/6378137)+Math.exp(-(b[1]/6378137)))/2)};function gl(a,b){Xg.call(this,{code:a,units:"degrees",extent:hl,axisOrientation:b,global:!0})}v(gl,Xg);var hl=[-180,-90,180,90],nh=[new gl("CRS:84"),new gl("EPSG:4326","neu"),new gl("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new gl("urn:ogc:def:crs:OGC:1.3:CRS84"),new gl("urn:ogc:def:crs:OGC:2:84"),new gl("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new gl("urn:x-ogc:def:crs:EPSG:4326","neu")];gl.prototype.d=aa();function il(){fh(kh);fh(nh);jh()};function O(a){K.call(this,a)}v(O,K);function P(a){K.call(this,a)}v(P,K);P.prototype.ga=function(){return this.get("preload")};P.prototype.getPreload=P.prototype.ga;P.prototype.va=function(a){this.s("preload",a)};P.prototype.setPreload=P.prototype.va;P.prototype.ia=function(){return this.get("useInterimTilesOnError")};P.prototype.getUseInterimTilesOnError=P.prototype.ia;P.prototype.Ka=function(a){this.s("useInterimTilesOnError",a)};P.prototype.setUseInterimTilesOnError=P.prototype.Ka;function Q(a){a=s(a)?a:{};var b=lc(a);delete b.style;K.call(this,b);this.hb=null;this.va=void 0;s(a.style)&&this.ia(a.style)}v(Q,K);Q.prototype.ub=k("hb");Q.prototype.$b=k("va");Q.prototype.ia=function(a){this.hb=a;this.va=Pi(a);this.l()};function jl(a,b,c,d,e){this.t={};this.b=a;this.n=b;this.i=c;this.f=d;this.ub=e;this.g=this.a=this.c=this.ga=this.Ta=this.ua=null;this.Kb=this.ia=this.r=this.W=this.N=this.F=0;this.Ua=!1;this.k=this.Lb=0;this.va=!1;this.ea=0;this.d="";this.o=this.D=this.Ka=this.Va=0;this.ca=this.p=this.q=null;this.e=[];this.hb=kd()}
|
|
function kl(a,b){if(null!==a.g){var c=Kh(b,2,a.f,a.e),d=a.b,e=a.hb,f=d.globalAlpha;1!=a.r&&(d.globalAlpha=f*a.r);var g=a.Lb;a.Ua&&(g+=a.ub);var h,m;h=0;for(m=c.length;h<m;h+=2){var n=c[h]-a.F,p=c[h+1]-a.N;a.va&&(n=n+0.5|0,p=p+0.5|0);if(0!==g||1!=a.k){var q=n+a.F,r=p+a.N;xk(e,q,r,a.k,a.k,g,-q,-r);d.setTransform(e[0],e[1],e[4],e[5],e[12],e[13])}d.drawImage(a.g,a.ia,a.Kb,a.ea,a.W,n,p,a.ea,a.W)}0===g&&1==a.k||d.setTransform(1,0,0,1,0,0);1!=a.r&&(d.globalAlpha=f)}}
|
|
function ll(a,b,c,d){var e=0;if(null!==a.ca&&""!==a.d){null===a.q||ml(a,a.q);null===a.p||nl(a,a.p);var f=a.ca,g=a.b,h=a.ga;null===h?(g.font=f.font,g.textAlign=f.textAlign,g.textBaseline=f.textBaseline,a.ga={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline}):(h.font!=f.font&&(h.font=g.font=f.font),h.textAlign!=f.textAlign&&(h.textAlign=g.textAlign=f.textAlign),h.textBaseline!=f.textBaseline&&(h.textBaseline=g.textBaseline=f.textBaseline));b=Kh(b,d,a.f,a.e);for(f=a.b;e<c;e+=d){g=b[e]+a.Va;
|
|
h=b[e+1]+a.Ka;if(0!==a.D||1!=a.o){var m=xk(a.hb,g,h,a.o,a.o,a.D,-g,-h);f.setTransform(m[0],m[1],m[4],m[5],m[12],m[13])}null===a.p||f.strokeText(a.d,g,h);null===a.q||f.fillText(a.d,g,h)}0===a.D&&1==a.o||f.setTransform(1,0,0,1,0,0)}}function pl(a,b,c,d,e){a=a.b;a.moveTo(b[c],b[c+1]);var f;for(f=c+2;f<d;f+=2)a.lineTo(b[f],b[f+1]);e&&a.lineTo(b[c],b[c+1]);return d}function ql(a,b,c,d){var e=a.b,f,g;f=0;for(g=d.length;f<g;++f)c=pl(a,b,c,d[f],!0),e.closePath();return c}l=jl.prototype;
|
|
l.Hc=function(a,b){var c=a.toString(),d=this.t[c];s(d)?d.push(b):this.t[c]=[b]};l.ic=function(a){if(Mg(this.i,a.C())){if(null!==this.c||null!==this.a){null===this.c||ml(this,this.c);null===this.a||nl(this,this.a);var b=Ph(a,this.f,this.e),c=b[2]-b[0],d=b[3]-b[1],c=Math.sqrt(c*c+d*d),d=this.b;d.beginPath();d.arc(b[0],b[1],c,0,2*Math.PI);null===this.c||d.fill();null===this.a||d.stroke()}""!==this.d&&ll(this,a.Ed(),2,2)}};
|
|
l.Ic=function(a,b){var c=a.Q();if(null!=c&&Mg(this.i,c.C())){var d=b.a;s(d)||(d=0);this.Hc(d,function(a){a.Ia(b.d,b.b);a.Yb(b.e);a.sa(b.c);rl[c.I()].call(a,c,null)})}};l.ee=function(a,b){var c=a.a,d,e;d=0;for(e=c.length;d<e;++d){var f=c[d];rl[f.I()].call(this,f,b)}};l.nc=function(a){var b=a.j;a=a.a;null===this.g||kl(this,b);""!==this.d&&ll(this,b,b.length,a)};l.lc=function(a){var b=a.j;a=a.a;null===this.g||kl(this,b);""!==this.d&&ll(this,b,b.length,a)};
|
|
l.jc=function(a){if(Mg(this.i,a.C())){if(null!==this.a){nl(this,this.a);var b=Ph(a,this.f,this.e),c=this.b;c.beginPath();pl(this,b,0,b.length,!1);c.stroke()}""!==this.d&&(a=sl(a),ll(this,a,2,2))}};l.kc=function(a){var b=a.C();if(Mg(this.i,b)){if(null!==this.a){nl(this,this.a);var b=Ph(a,this.f,this.e),c=this.b;c.beginPath();var d=a.d,e=0,f,g;f=0;for(g=d.length;f<g;++f)e=pl(this,b,e,d[f],!1);c.stroke()}""!==this.d&&(a=tl(a),ll(this,a,a.length,2))}};
|
|
l.Nb=function(a){if(Mg(this.i,a.C())){var b;if(null!==this.a||null!==this.c){null===this.c||ml(this,this.c);null===this.a||nl(this,this.a);b=Ph(a,this.f,this.e);var c=this.b;c.beginPath();ql(this,b,0,a.d);null===this.c||c.fill();null===this.a||c.stroke()}""!==this.d&&(a=ri(a),ll(this,a,2,2))}};
|
|
l.mc=function(a){if(Mg(this.i,a.C())){var b;if(null!==this.a||null!==this.c){null===this.c||ml(this,this.c);null===this.a||nl(this,this.a);b=Ph(a,this.f,this.e);var c=this.b,d=a.d,e=0,f,g;f=0;for(g=d.length;f<g;++f){var h=d[f];c.beginPath();e=ql(this,b,e,h);null===this.c||c.fill();null===this.a||c.stroke()}}""!==this.d&&(a=ul(a),ll(this,a,a.length,2))}};
|
|
function vl(a){var b=xb(gc(a.t),Number);Hb(b);var c,d,e,f,g;c=0;for(d=b.length;c<d;++c)for(e=a.t[b[c].toString()],f=0,g=e.length;f<g;++f)e[f](a)}function ml(a,b){var c=a.b,d=a.ua;null===d?(c.fillStyle=b.fillStyle,a.ua={fillStyle:b.fillStyle}):d.fillStyle!=b.fillStyle&&(d.fillStyle=c.fillStyle=b.fillStyle)}
|
|
function nl(a,b){var c=a.b,d=a.Ta;null===d?(c.lineCap=b.lineCap,Cd&&c.setLineDash(b.lineDash),c.lineJoin=b.lineJoin,c.lineWidth=b.lineWidth,c.miterLimit=b.miterLimit,c.strokeStyle=b.strokeStyle,a.Ta={lineCap:b.lineCap,lineDash:b.lineDash,lineJoin:b.lineJoin,lineWidth:b.lineWidth,miterLimit:b.miterLimit,strokeStyle:b.strokeStyle}):(d.lineCap!=b.lineCap&&(d.lineCap=c.lineCap=b.lineCap),Cd&&!Jb(d.lineDash,b.lineDash)&&c.setLineDash(d.lineDash=b.lineDash),d.lineJoin!=b.lineJoin&&(d.lineJoin=c.lineJoin=
|
|
b.lineJoin),d.lineWidth!=b.lineWidth&&(d.lineWidth=c.lineWidth=b.lineWidth),d.miterLimit!=b.miterLimit&&(d.miterLimit=c.miterLimit=b.miterLimit),d.strokeStyle!=b.strokeStyle&&(d.strokeStyle=c.strokeStyle=b.strokeStyle))}
|
|
l.Ia=function(a,b){if(null===a)this.c=null;else{var c=a.a;this.c={fillStyle:Ci(null===c?Fi:c)}}if(null===b)this.a=null;else{var c=b.a,d=b.b,e=b.d,f=b.e,g=b.c,h=b.f;this.a={lineCap:s(d)?d:"round",lineDash:null!=e?e:Gi,lineJoin:s(f)?f:"round",lineWidth:this.n*(s(g)?g:1),miterLimit:s(h)?h:10,strokeStyle:Ci(null===c?Hi:c)}}};
|
|
l.Yb=function(a){if(null===a)this.g=null;else{var b=a.oc(),c=a.uc(1),d=a.vc(),e=a.Db();this.F=b[0];this.N=b[1];this.W=e[1];this.g=c;this.r=a.t;this.ia=d[0];this.Kb=d[1];this.Ua=a.r;this.Lb=a.i;this.k=a.g;this.va=a.D;this.ea=e[0]}};
|
|
l.sa=function(a){if(null===a)this.d="";else{var b=a.c;null===b?this.q=null:(b=b.a,this.q={fillStyle:Ci(null===b?Fi:b)});var c=a.e;if(null===c)this.p=null;else{var b=c.a,d=c.b,e=c.d,f=c.e,g=c.c,c=c.f;this.p={lineCap:s(d)?d:"round",lineDash:null!=e?e:Gi,lineJoin:s(f)?f:"round",lineWidth:this.n*(s(g)?g:1),miterLimit:s(c)?c:10,strokeStyle:Ci(null===b?Hi:b)}}var b=a.a,d=a.k,e=a.n,f=a.b,g=a.d,c=a.f,h=a.i;a=a.g;this.ca={font:s(b)?b:"10px sans-serif",textAlign:s(h)?h:"center",textBaseline:s(a)?a:"middle"};
|
|
this.d=s(c)?c:"";this.Va=s(d)?this.n*d:0;this.Ka=s(e)?this.n*e:0;this.D=s(f)?f:0;this.o=this.n*(s(g)?g:1)}};var rl={Point:jl.prototype.nc,LineString:jl.prototype.jc,Polygon:jl.prototype.Nb,MultiPoint:jl.prototype.lc,MultiLineString:jl.prototype.kc,MultiPolygon:jl.prototype.mc,GeometryCollection:jl.prototype.ee,Circle:jl.prototype.ic};function wl(a,b){jk.call(this,a,b);this.F=kd()}v(wl,jk);wl.prototype.o=function(a,b,c){xl(this,"precompose",c,a,void 0);var d=this.p();if(null!==d){var e=this.n();c.globalAlpha=b.opacity;if(0===a.view2DState.rotation){b=e[13];var f=d.width*e[0],g=d.height*e[5];c.drawImage(d,0,0,+d.width,+d.height,Math.round(e[12]),Math.round(b),Math.round(f),Math.round(g))}else c.setTransform(e[0],e[1],e[4],e[5],e[12],e[13]),c.drawImage(d,0,0),c.setTransform(1,0,0,1,0,0)}xl(this,"postcompose",c,a,void 0)};
|
|
function xl(a,b,c,d,e){var f=a.a;ue(f.ja,b)&&(a=s(e)?e:yl(a,d),a=new jl(c,d.pixelRatio,d.extent,a,d.view2DState.rotation),A(f,new ti(b,f,a,d,c,null)),vl(a))}function yl(a,b){var c=b.view2DState,d=b.pixelRatio;return xk(a.F,d*b.size[0]/2,d*b.size[1]/2,d/c.resolution,-d/c.resolution,-c.rotation,-c.center[0],-c.center[1])}
|
|
var zl=function(){var a=null,b=null;return function(c){if(null===a){a=td(1,1);b=a.createImageData(1,1);var d=b.data;d[0]=42;d[1]=84;d[2]=126;d[3]=255}var d=a.canvas,e=c[0]<=d.width&&c[1]<=d.height;e||(d.width=c[0],d.height=c[1],d=c[0]-1,c=c[1]-1,a.putImageData(b,d,c),c=a.getImageData(d,c,1,1),e=Jb(b.data,c.data));return e}}();function Al(a){Tj.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state});this.q=s(a.resolutions)?a.resolutions:null}v(Al,Tj);function Bl(a,b){null===a.q||(b=a.q[jg(a.q,b,0)]);return b};function Cl(a,b){wl.call(this,a,b);this.c=null;this.b=kd()}v(Cl,wl);Cl.prototype.f=function(a,b,c,d){var e=this.a;return e.a.bd(b.extent,b.view2DState.resolution,b.view2DState.rotation,a,b.gb,function(a){return c.call(d,a,e)})};Cl.prototype.p=function(){return null===this.c?null:this.c.e()};Cl.prototype.n=k("b");
|
|
Cl.prototype.d=function(a){var b=a.pixelRatio,c=a.view2DState,d=c.center,e=c.resolution,f=c.rotation,g=this.a.a,h=a.aa;h[0]||h[1]||(c=g.Ub(a.extent,e,b,c.projection),null!==c&&(h=c.state,0==h?(oe(c,"change",this.q,!1,this),Yj(c)):2==h&&(this.c=c)));if(null!==this.c){var c=this.c,h=c.C(),m=c.d,n=c.b,e=b*m/(e*n);xk(this.b,b*a.size[0]/2,b*a.size[1]/2,e,e,f,n*(h[0]-d[0])/m,n*(d[1]-h[3])/m);mk(a.attributions,c.i);nk(a,g)}};function Dl(a,b){wl.call(this,a,b);this.c=this.i=null;this.k=!1;this.t=null;this.r=kd();this.D=NaN;this.g=this.b=null}v(Dl,wl);Dl.prototype.p=k("i");Dl.prototype.n=k("r");
|
|
Dl.prototype.d=function(a){var b=a.pixelRatio,c=a.view2DState,d=c.projection,e=this.a,f=e.a,g=ik(f,d),h=f.Nc(),m=jg(g.a,c.resolution,0),n=f.pc(m,a.pixelRatio,d),p=g.ha(m),q=p/(n/g.ka(m)),r=c.center,u;p==c.resolution?(r=qk(r,p,a.size),u=Hg(r,p,c.rotation,a.size)):u=a.extent;var y=ek(g,u,p),B=n*(y.d-y.a+1),z=n*(y.c-y.b+1),F,D;null===this.i?(D=td(B,z),this.i=D.canvas,this.c=[B,z],this.t=D,this.k=!zl(this.c)):(F=this.i,D=this.t,this.c[0]<B||this.c[1]<z||this.k&&(this.c[0]>B||this.c[1]>z)?(F.width=B,F.height=
|
|
z,this.c=[B,z],this.k=!zl(this.c),this.b=null):(B=this.c[0],z=this.c[1],m==this.D&&this.b.a<=y.a&&y.d<=this.b.d&&this.b.b<=y.b&&y.c<=this.b.c||(this.b=null)));var L,R;null===this.b?(B/=n,z/=n,L=y.a-Math.floor((B-(y.d-y.a+1))/2),R=y.b-Math.floor((z-(y.c-y.b+1))/2),this.D=m,this.b=new Pb(L,L+B-1,R,R+z-1),this.g=Array(B*z),z=this.b):(z=this.b,B=z.d-z.a+1);F={};F[m]={};var ha=[],T=xa(f.qd,f,F,pk(function(a){return null!==a&&2==a.state},f,b,d)),pa=e.ia();s(pa)||(pa=!0);var ya=ug(),Oa=new Pb(0,0,0,0),Sa,
|
|
ia,Wa;for(R=y.a;R<=y.d;++R)for(Wa=y.b;Wa<=y.c;++Wa)ia=f.Pb(m,R,Wa,b,d),L=ia.state,2==L||4==L||3==L&&!pa?F[m][ia.a.toString()]=ia:(Sa=g.Mc(ia.a,T,null,Oa,ya),Sa||(ha.push(ia),Sa=g.Qc(ia.a,Oa,ya),null===Sa||T(m+1,Sa)));T=0;for(Sa=ha.length;T<Sa;++T)ia=ha[T],R=n*(ia.a.x-z.a),Wa=n*(z.c-ia.a.y),D.clearRect(R,Wa,n,n);ha=xb(gc(F),Number);Hb(ha);var Ra=f.D,Uc=Jg(ck(g,new Lb(m,z.a,z.c),ya)),ac,yc,Zh,Lg,Te,uk,T=0;for(Sa=ha.length;T<Sa;++T)if(ac=ha[T],n=f.pc(ac,b,d),Lg=F[ac],ac==m)for(Zh in Lg)ia=Lg[Zh],yc=
|
|
(ia.a.y-z.b)*B+(ia.a.x-z.a),this.g[yc]!=ia&&(R=n*(ia.a.x-z.a),Wa=n*(z.c-ia.a.y),L=ia.state,4!=L&&(3!=L||pa)&&Ra||D.clearRect(R,Wa,n,n),2==L&&D.drawImage(ia.b(),h,h,n,n,R,Wa,n,n),this.g[yc]=ia);else for(Zh in ac=g.ha(ac)/p,Lg)for(ia=Lg[Zh],yc=ck(g,ia.a,ya),R=(yc[0]-Uc[0])/q,Wa=(Uc[1]-yc[3])/q,uk=ac*n,Te=ac*n,L=ia.state,4!=L&&Ra||D.clearRect(R,Wa,uk,Te),2==L&&D.drawImage(ia.b(),h,h,n,n,R,Wa,uk,Te),ia=dk(g,yc,m,Oa),L=Math.max(ia.a,z.a),Wa=Math.min(ia.d,z.d),R=Math.max(ia.b,z.b),ia=Math.min(ia.c,z.c);L<=
|
|
Wa;++L)for(Te=R;Te<=ia;++Te)yc=(Te-z.b)*B+(L-z.a),this.g[yc]=void 0;ok(a.Ac,f,m,y);rk(a,f,g,b,d,u,m,e.ga());lk(a,f);nk(a,f);xk(this.r,b*a.size[0]/2,b*a.size[1]/2,b*q/c.resolution,b*q/c.resolution,c.rotation,(Uc[0]-r[0])/q,(r[1]-Uc[1])/q)};var El=["Polygon","LineString","Image","Text"];function Fl(a,b,c){this.ga=a;this.ea=b;this.e=0;this.resolution=c;this.N=this.F=null;this.c=[];this.coordinates=[];this.ua=kd();this.a=[];this.ca=[];this.d=ug();this.Ta=kd()}
|
|
function Gl(a,b,c,d,e,f){var g=a.coordinates.length,h=a.rd(),m=[b[c],b[c+1]],n=[NaN,NaN],p=!0,q,r,u;for(q=c+e;q<d;q+=e){n[0]=b[q];n[1]=b[q+1];u=h[1];var y=h[2],B=h[3],z=n[0],F=n[1],D=0;z<h[0]?D=D|16:z>y&&(D=D|4);F<u?D|=8:F>B&&(D|=2);0===D&&(D=1);u=D;u!==r?(p&&(a.coordinates[g++]=m[0],a.coordinates[g++]=m[1]),a.coordinates[g++]=n[0],a.coordinates[g++]=n[1],p=!1):1===u?(a.coordinates[g++]=n[0],a.coordinates[g++]=n[1],p=!1):p=!0;m[0]=n[0];m[1]=n[1];r=u}q===c+e&&(a.coordinates[g++]=m[0],a.coordinates[g++]=
|
|
m[1]);f&&(a.coordinates[g++]=b[c],a.coordinates[g++]=b[c+1]);return g}function Hl(a,b,c){a.F=[0,b,c,0];a.c.push(a.F);a.N=[0,b,c,0];a.a.push(a.N)}
|
|
function Il(a,b,c,d,e,f,g,h){var m;yk(d,a.ua)?m=a.ca:(m=Kh(a.coordinates,2,d,a.ca),nd(a.ua,d));d=0;var n=g.length,p=0,q;for(a=a.Ta;d<n;){var r=g[d],u,y,B,z,F;switch(r[0]){case 0:q=r[2];q=sa(q).toString();s(w(f,q))?d=r[3]:++d;break;case 1:b.beginPath();++d;break;case 2:q=m[p];y=m[p+1];var D=m[p+2]-q,r=m[p+3]-y;b.arc(q,y,Math.sqrt(D*D+r*r),0,2*Math.PI,!0);p+=4;++d;break;case 3:b.closePath();++d;break;case 4:p=r[1];q=r[2];u=r[3];z=r[4]*c;var L=r[5]*c,R=r[6];B=r[7];var ha=r[8],T=r[9];y=r[11];var D=r[12],
|
|
pa=r[13],ya=r[14];for(r[10]&&(y+=e);p<q;p+=2){r=m[p]-z;F=m[p+1]-L;pa&&(r=r+0.5|0,F=F+0.5|0);if(1!=D||0!==y){var Oa=r+z,Sa=F+L;xk(a,Oa,Sa,D,D,y,-Oa,-Sa);b.setTransform(a[0],a[1],a[4],a[5],a[12],a[13])}Oa=b.globalAlpha;1!=B&&(b.globalAlpha=Oa*B);b.drawImage(u,ha,T,ya,R,r,F,ya*c,R*c);1!=B&&(b.globalAlpha=Oa);1==D&&0===y||b.setTransform(1,0,0,1,0,0)}++d;break;case 5:p=r[1];q=r[2];z=r[3];L=r[4]*c;R=r[5]*c;y=r[6];D=r[7]*c;u=r[8];for(B=r[9];p<q;p+=2){r=m[p]+L;F=m[p+1]+R;if(1!=D||0!==y)xk(a,r,F,D,D,y,-r,
|
|
-F),b.setTransform(a[0],a[1],a[4],a[5],a[12],a[13]);B&&b.strokeText(z,r,F);u&&b.fillText(z,r,F);1==D&&0===y||b.setTransform(1,0,0,1,0,0)}++d;break;case 6:if(s(h)&&(y=r[1],q=r[2],q=h(y,q)))return q;++d;break;case 7:b.fill();++d;break;case 8:p=r[1];q=r[2];b.moveTo(m[p],m[p+1]);for(p+=2;p<q;p+=2)b.lineTo(m[p],m[p+1]);++d;break;case 9:b.fillStyle=r[1];++d;break;case 10:b.strokeStyle=r[1];b.lineWidth=r[2]*c;b.lineCap=r[3];b.lineJoin=r[4];b.miterLimit=r[5];Cd&&b.setLineDash(r[6]);++d;break;case 11:b.font=
|
|
r[1];b.textAlign=r[2];b.textBaseline=r[3];++d;break;case 12:b.stroke();++d;break;default:++d}}}function Jl(a){var b=a.a;b.reverse();var c,d=b.length,e,f,g=-1;for(c=0;c<d;++c)if(e=b[c],f=e[0],6==f)g=c;else if(0==f){e[3]=c;e=a.a;for(f=c;g<f;){var h=e[g];e[g]=e[f];e[f]=h;++g;--f}g=-1}}function Kl(a,b,c){a.F[3]=a.c.length;a.F=null;a.N[3]=a.a.length;a.N=null;b=[6,b,c];a.c.push(b);a.a.push(b)}Fl.prototype.ad=fa;Fl.prototype.rd=k("ea");Fl.prototype.C=k("d");
|
|
function Ll(a,b,c){Fl.call(this,a,b,c);this.g=this.W=null;this.t=this.p=this.o=this.q=this.n=this.D=this.r=this.k=this.i=this.f=this.b=void 0}v(Ll,Fl);
|
|
Ll.prototype.nc=function(a,b){if(null!==this.g){Dg(this.d,a.C());Hl(this,a,b);var c=a.j,d=this.coordinates.length,c=Gl(this,c,0,c.length,a.a,!1);this.c.push([4,d,c,this.g,this.b,this.f,this.i,this.k,this.r,this.D,this.n,this.q,this.o,this.p,this.t]);this.a.push([4,d,c,this.W,this.b,this.f,this.i,this.k,this.r,this.D,this.n,this.q,this.o,this.p,this.t]);Kl(this,a,b)}};
|
|
Ll.prototype.lc=function(a,b){if(null!==this.g){Dg(this.d,a.C());Hl(this,a,b);var c=a.j,d=this.coordinates.length,c=Gl(this,c,0,c.length,a.a,!1);this.c.push([4,d,c,this.g,this.b,this.f,this.i,this.k,this.r,this.D,this.n,this.q,this.o,this.p,this.t]);this.a.push([4,d,c,this.W,this.b,this.f,this.i,this.k,this.r,this.D,this.n,this.q,this.o,this.p,this.t]);Kl(this,a,b)}};
|
|
Ll.prototype.ad=function(){Jl(this);this.f=this.b=void 0;this.g=this.W=null;this.t=this.p=this.q=this.n=this.D=this.r=this.k=this.o=this.i=void 0};Ll.prototype.Yb=function(a){var b=a.oc(),c=a.Db(),d=a.He(1),e=a.uc(1),f=a.vc();this.b=b[0];this.f=b[1];this.W=d;this.g=e;this.i=c[1];this.k=a.t;this.r=f[0];this.D=f[1];this.n=a.r;this.q=a.i;this.o=a.g;this.p=a.D;this.t=c[0]};
|
|
function Ml(a,b,c){Fl.call(this,a,b,c);this.b={fc:void 0,ac:void 0,bc:null,cc:void 0,dc:void 0,ec:void 0,xd:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}v(Ml,Fl);function Nl(a,b,c,d,e){var f=a.coordinates.length;b=Gl(a,b,c,d,e,!1);f=[8,f,b];a.c.push(f);a.a.push(f);return d}l=Ml.prototype;l.rd=function(){var a=this.ea;this.e&&(a=xg(a,this.resolution*(this.e+1)/2));return a};
|
|
function Ol(a){var b=a.b,c=b.strokeStyle,d=b.lineCap,e=b.lineDash,f=b.lineJoin,g=b.lineWidth,h=b.miterLimit;b.fc==c&&b.ac==d&&Jb(b.bc,e)&&b.cc==f&&b.dc==g&&b.ec==h||(b.xd!=a.coordinates.length&&(a.c.push([12]),b.xd=a.coordinates.length),a.c.push([10,c,g,d,f,h,e],[1]),b.fc=c,b.ac=d,b.bc=e,b.cc=f,b.dc=g,b.ec=h)}
|
|
l.jc=function(a,b){var c=this.b,d=c.lineWidth;s(c.strokeStyle)&&s(d)&&(Dg(this.d,a.C()),Ol(this),Hl(this,a,b),this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash],[1]),c=a.j,Nl(this,c,0,c.length,a.a),this.a.push([12]),Kl(this,a,b))};
|
|
l.kc=function(a,b){var c=this.b,d=c.lineWidth;if(s(c.strokeStyle)&&s(d)){Dg(this.d,a.C());Ol(this);Hl(this,a,b);this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash],[1]);var c=a.d,d=a.j,e=a.a,f=0,g,h;g=0;for(h=c.length;g<h;++g)f=Nl(this,d,f,c[g],e);this.a.push([12]);Kl(this,a,b)}};l.ad=function(){this.b.xd!=this.coordinates.length&&this.c.push([12]);Jl(this);this.b=null};
|
|
l.Ia=function(a,b){var c=b.a;this.b.strokeStyle=Ci(null===c?Hi:c);c=b.b;this.b.lineCap=s(c)?c:"round";c=b.d;this.b.lineDash=null===c?Gi:c;c=b.e;this.b.lineJoin=s(c)?c:"round";c=b.c;this.b.lineWidth=s(c)?c:1;c=b.f;this.b.miterLimit=s(c)?c:10;this.e=Math.max(this.e,this.b.lineWidth)};
|
|
function Pl(a,b,c){Fl.call(this,a,b,c);this.b={ce:void 0,fc:void 0,ac:void 0,bc:null,cc:void 0,dc:void 0,ec:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}v(Pl,Fl);
|
|
function Ql(a,b,c,d,e){var f=a.b,g=[1];a.c.push(g);a.a.push(g);var h,g=0;for(h=d.length;g<h;++g){var m=d[g],n=a.coordinates.length;c=Gl(a,b,c,m,e,!0);c=[8,n,c];n=[3];a.c.push(c,n);a.a.push(c,n);c=m}b=[7];a.a.push(b);s(f.fillStyle)&&a.c.push(b);s(f.strokeStyle)&&(f=[12],a.c.push(f),a.a.push(f));return c}l=Pl.prototype;
|
|
l.ic=function(a,b){var c=this.b,d=c.strokeStyle;if(s(c.fillStyle)||s(d)){Dg(this.d,a.C());Rl(this);Hl(this,a,b);this.a.push([9,Ci(Fi)]);s(c.strokeStyle)&&this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]);d=a.j;Gl(this,d,0,d.length,a.a,!1);var d=[1],e=[2];this.c.push(d,e);this.a.push(d,e);Kl(this,a,b);d=[7];this.a.push(d);s(c.fillStyle)&&this.c.push(d);s(c.strokeStyle)&&(c=[12],this.c.push(c),this.a.push(c))}};
|
|
l.Nb=function(a,b){var c=this.b,d=c.strokeStyle;if(s(c.fillStyle)||s(d))Dg(this.d,a.C()),Rl(this),Hl(this,a,b),this.a.push([9,Ci(Fi)]),s(c.strokeStyle)&&this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]),c=a.d,d=qi(a),Ql(this,d,0,c,a.a),Kl(this,a,b)};
|
|
l.mc=function(a,b){var c=this.b,d=c.strokeStyle;if(s(c.fillStyle)||s(d)){Dg(this.d,a.C());Rl(this);Hl(this,a,b);this.a.push([9,Ci(Fi)]);s(c.strokeStyle)&&this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]);var c=a.d,d=Sl(a),e=a.a,f=0,g,h;g=0;for(h=c.length;g<h;++g)f=Ql(this,d,f,c[g],e);Kl(this,a,b)}};l.ad=function(){Jl(this);this.b=null;var a=this.ga;if(0!==a){var b=this.coordinates,c,d;c=0;for(d=b.length;c<d;++c)b[c]=a*Math.round(b[c]/a)}};
|
|
l.rd=function(){var a=this.ea;this.e&&(a=xg(a,this.resolution*(this.e+1)/2));return a};
|
|
l.Ia=function(a,b){var c=this.b;if(null===a)c.fillStyle=void 0;else{var d=a.a;c.fillStyle=Ci(null===d?Fi:d)}null===b?(c.strokeStyle=void 0,c.lineCap=void 0,c.lineDash=null,c.lineJoin=void 0,c.lineWidth=void 0,c.miterLimit=void 0):(d=b.a,c.strokeStyle=Ci(null===d?Hi:d),d=b.b,c.lineCap=s(d)?d:"round",d=b.d,c.lineDash=null===d?Gi:d.slice(),d=b.e,c.lineJoin=s(d)?d:"round",d=b.c,c.lineWidth=s(d)?d:1,d=b.f,c.miterLimit=s(d)?d:10,this.e=Math.max(this.e,c.lineWidth))};
|
|
function Rl(a){var b=a.b,c=b.fillStyle,d=b.strokeStyle,e=b.lineCap,f=b.lineDash,g=b.lineJoin,h=b.lineWidth,m=b.miterLimit;s(c)&&b.ce!=c&&(a.c.push([9,c]),b.ce=b.fillStyle);!s(d)||b.fc==d&&b.ac==e&&b.bc==f&&b.cc==g&&b.dc==h&&b.ec==m||(a.c.push([10,d,h,e,g,m,f]),b.fc=d,b.ac=e,b.bc=f,b.cc=g,b.dc=h,b.ec=m)}function Tl(a,b,c){Fl.call(this,a,b,c);this.r=this.t=this.p=null;this.g="";this.o=this.q=this.n=this.k=0;this.i=this.f=this.b=null}v(Tl,Fl);
|
|
Tl.prototype.ib=function(a,b,c,d,e,f){if(""!==this.g&&null!==this.i&&(null!==this.b||null!==this.f)){Eg(this.d,a,b,c,d);if(null!==this.b){var g=this.b,h=this.p;if(null===h||h.fillStyle!=g.fillStyle){var m=[9,g.fillStyle];this.c.push(m);this.a.push(m);null===h?this.p={fillStyle:g.fillStyle}:h.fillStyle=g.fillStyle}}null!==this.f&&(g=this.f,h=this.t,null===h||h.lineCap!=g.lineCap||h.lineDash!=g.lineDash||h.lineJoin!=g.lineJoin||h.lineWidth!=g.lineWidth||h.miterLimit!=g.miterLimit||h.strokeStyle!=g.strokeStyle)&&
|
|
(m=[10,g.strokeStyle,g.lineWidth,g.lineCap,g.lineJoin,g.miterLimit,g.lineDash],this.c.push(m),this.a.push(m),null===h?this.t={lineCap:g.lineCap,lineDash:g.lineDash,lineJoin:g.lineJoin,lineWidth:g.lineWidth,miterLimit:g.miterLimit,strokeStyle:g.strokeStyle}:(h.lineCap=g.lineCap,h.lineDash=g.lineDash,h.lineJoin=g.lineJoin,h.lineWidth=g.lineWidth,h.miterLimit=g.miterLimit,h.strokeStyle=g.strokeStyle));g=this.i;h=this.r;if(null===h||h.font!=g.font||h.textAlign!=g.textAlign||h.textBaseline!=g.textBaseline)m=
|
|
[11,g.font,g.textAlign,g.textBaseline],this.c.push(m),this.a.push(m),null===h?this.r={font:g.font,textAlign:g.textAlign,textBaseline:g.textBaseline}:(h.font=g.font,h.textAlign=g.textAlign,h.textBaseline=g.textBaseline);Hl(this,e,f);g=this.coordinates.length;a=Gl(this,a,b,c,d,!1);a=[5,g,a,this.g,this.k,this.n,this.q,this.o,null!==this.b,null!==this.f];this.c.push(a);this.a.push(a);Kl(this,e,f)}};
|
|
Tl.prototype.sa=function(a){if(null===a)this.g="";else{var b=a.c;null===b?this.b=null:(b=b.a,b=Ci(null===b?Fi:b),null===this.b?this.b={fillStyle:b}:this.b.fillStyle=b);var c=a.e;if(null===c)this.f=null;else{var b=c.a,d=c.b,e=c.d,f=c.e,g=c.c,c=c.f,d=s(d)?d:"round",e=null!=e?e.slice():Gi,f=s(f)?f:"round",g=s(g)?g:1,c=s(c)?c:10,b=Ci(null===b?Hi:b);if(null===this.f)this.f={lineCap:d,lineDash:e,lineJoin:f,lineWidth:g,miterLimit:c,strokeStyle:b};else{var h=this.f;h.lineCap=d;h.lineDash=e;h.lineJoin=f;h.lineWidth=
|
|
g;h.miterLimit=c;h.strokeStyle=b}}var m=a.a,b=a.k,d=a.n,e=a.b,g=a.d,c=a.f,f=a.i,h=a.g;a=s(m)?m:"10px sans-serif";f=s(f)?f:"center";h=s(h)?h:"middle";null===this.i?this.i={font:a,textAlign:f,textBaseline:h}:(m=this.i,m.font=a,m.textAlign=f,m.textBaseline=h);this.g=s(c)?c:"";this.k=s(b)?b:0;this.n=s(d)?d:0;this.q=s(e)?e:0;this.o=s(g)?g:1}};function Ul(a,b,c){this.f=a;this.c=b;this.e=c;this.a={};this.b=td(1,1);this.d=kd()}
|
|
function Vl(a,b,c,d,e,f,g){var h=xb(gc(a.a),Number);Hb(h);a:{var m=a.c,n=m[0],p=m[1],q=m[2],m=m[3],n=Kh([n,p,n,m,q,m,q,p],2,e);b.save();b.beginPath();b.moveTo(n[0],n[1]);b.lineTo(n[2],n[3]);b.lineTo(n[4],n[5]);b.lineTo(n[6],n[7]);b.closePath();b.clip();for(var r,u,n=0,p=h.length;n<p;++n)for(r=a.a[h[n].toString()],q=0,m=El.length;q<m;++q)if(u=r[El[q]],s(u)&&Mg(c,u.C())&&(u=Il(u,b,d,e,f,g,u.c,void 0)))break a;b.restore()}}
|
|
function Wl(a,b,c,d,e,f,g,h){var m,n,p,q,r;m=0;for(n=b.length;m<n;++m)for(q in p=a.a[b[m].toString()],p)if(r=p[q],Mg(d,r.C())&&(r=Il(r,c,1,e,f,g,r.a,h)))return r}function Xl(a,b,c,d,e,f,g){var h=a.d;xk(h,0.5,0.5,1/c,-1/c,-d,-e[0],-e[1]);c=xb(gc(a.a),Number);Hb(c,function(a,b){return b-a});var m=a.b;m.clearRect(0,0,1,1);return Wl(a,c,m,b,h,d,f,function(a,b){if(0<m.getImageData(0,0,1,1).data[3]){var c=g(a,b);if(c)return c;m.clearRect(0,0,1,1)}})}
|
|
function Yl(a){for(var b in a.a){var c=a.a[b],d;for(d in c)c[d].ad()}}function Zl(a,b,c){var d=s(b)?b.toString():"0";b=a.a[d];s(b)||(b={},a.a[d]=b);d=b[c];s(d)||(d=new $l[c](a.f,a.c,a.e),b[c]=d);return d}Ul.prototype.ma=function(){return hc(this.a)};var $l={Image:Ll,LineString:Ml,Polygon:Pl,Text:Tl};function am(a,b,c){Lh.call(this);this.Re(a,s(b)?b:0,c)}v(am,Lh);l=am.prototype;l.S=function(){var a=new am(null),b=this.j.slice();Nh(a,this.b,b);a.l();return a};l.za=function(a,b,c,d){var e=this.j;a-=e[0];var f=b-e[1];b=a*a+f*f;if(b<d){if(0===b)for(d=0;d<this.a;++d)c[d]=e[d];else for(d=this.Ce()/Math.sqrt(b),c[0]=e[0]+d*a,c[1]=e[1]+d*f,d=2;d<this.a;++d)c[d]=e[d];c.length=this.a;return b}return d};l.wb=function(a,b){var c=this.j,d=a-c[0],c=b-c[1];return d*d+c*c<=bm(this)};
|
|
l.Ed=function(){return this.j.slice(0,this.a)};l.C=function(a){if(this.f!=this.c){var b=this.j,c=b[this.a]-b[0];this.extent=wg(b[0]-c,b[1]-c,b[0]+c,b[1]+c,this.extent);this.f=this.c}return Og(this.extent,a)};l.Ce=function(){return Math.sqrt(bm(this))};function bm(a){var b=a.j[a.a]-a.j[0];a=a.j[a.a+1]-a.j[1];return b*b+a*a}l.I=ca("Circle");l.ah=function(a){var b=this.a,c=this.j[b]-this.j[0],d=a.slice();d[b]=d[0]+c;for(c=1;c<b;++c)d[b+c]=a[c];Nh(this,this.b,d);this.l()};
|
|
l.Re=function(a,b,c){if(null===a)Nh(this,"XY",null);else{Oh(this,c,a,0);null===this.j&&(this.j=[]);c=this.j;a=Yh(c,a);c[a++]=c[0]+b;var d;b=1;for(d=this.a;b<d;++b)c[a++]=c[b];c.length=a}this.l()};l.si=function(a){this.j[this.a]=this.j[0]+a;this.l()};function cm(a){Jh.call(this);this.a=s(a)?a:null;dm(this)}v(cm,Jh);function em(a){var b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(a[c].S());return b}function fm(a){var b,c;if(null!==a.a)for(b=0,c=a.a.length;b<c;++b)pe(a.a[b],"change",a.l,!1,a)}function dm(a){var b,c;if(null!==a.a)for(b=0,c=a.a.length;b<c;++b)x(a.a[b],"change",a.l,!1,a)}l=cm.prototype;l.S=function(){var a=new cm(null);a.Se(this.a);return a};
|
|
l.za=function(a,b,c,d){if(d<zg(this.C(),a,b))return d;var e=this.a,f,g;f=0;for(g=e.length;f<g;++f)d=e[f].za(a,b,c,d);return d};l.wb=function(a,b){var c=this.a,d,e;d=0;for(e=c.length;d<e;++d)if(c[d].wb(a,b))return!0;return!1};l.C=function(a){if(this.f!=this.c){var b=Bg(this.extent),c=this.a,d,e;d=0;for(e=c.length;d<e;++d)Dg(b,c[d].C());this.extent=b;this.f=this.c}return Og(this.extent,a)};l.zf=function(){return em(this.a)};
|
|
l.la=function(a){this.n!=this.c&&(ic(this.i),this.g=0,this.n=this.c);if(0>a||0!==this.g&&a<this.g)return this;var b=a.toString();if(this.i.hasOwnProperty(b))return this.i[b];var c=[],d=this.a,e=!1,f,g;f=0;for(g=d.length;f<g;++f){var h=d[f],m=h.la(a);c.push(m);m!==h&&(e=!0)}if(e)return a=new cm(null),fm(a),a.a=c,dm(a),a.l(),this.i[b]=a;this.g=a;return this};l.I=ca("GeometryCollection");l.ma=function(){return 0==this.a.length};l.Se=function(a){a=em(a);fm(this);this.a=a;dm(this);this.l()};
|
|
l.vb=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)b[c].vb(a);this.l()};l.H=function(){fm(this);cm.K.H.call(this)};function gm(a,b,c,d,e){var f=NaN,g=NaN,h=(c-b)/d;if(0!==h)if(1==h)f=a[b],g=a[b+1];else if(2==h)f=0.5*a[b]+0.5*a[b+d],g=0.5*a[b+1]+0.5*a[b+d+1];else{var g=a[b],h=a[b+1],m=0,f=[0],n;for(n=b+d;n<c;n+=d){var p=a[n],q=a[n+1],m=m+Math.sqrt((p-g)*(p-g)+(q-h)*(q-h));f.push(m);g=p;h=q}c=0.5*m;for(var r,g=Ib,h=0,m=f.length;h<m;)n=h+m>>1,p=g(c,f[n]),0<p?h=n+1:(m=n,r=!p);r=r?h:~h;0>r?(c=(c-f[-r-2])/(f[-r-1]-f[-r-2]),b+=(-r-2)*d,f=a[b]+c*(a[b+d]-a[b]),g=a[b+1]+c*(a[b+d+1]-a[b+1])):(f=a[b+r*d],g=a[b+r*d+1])}return null!=
|
|
e?(e[0]=f,e[1]=g,e):[f,g]}function hm(a,b,c,d,e,f){if(c==b)return null;if(e<a[b+d-1])return f?(c=a.slice(b,b+d),c[d-1]=e,c):null;if(a[c-1]<e)return f?(c=a.slice(c-d,c),c[d-1]=e,c):null;if(e==a[b+d-1])return a.slice(b,b+d);b/=d;for(c/=d;b<c;)f=b+c>>1,e<a[(f+1)*d-1]?c=f:b=f+1;c=a[b*d-1];if(e==c)return a.slice((b-1)*d,(b-1)*d+d);f=(e-c)/(a[(b+1)*d-1]-c);c=[];var g;for(g=0;g<d-1;++g)c.push(a[(b-1)*d+g]+f*(a[b*d+g]-a[(b-1)*d+g]));c.push(e);return c}
|
|
function im(a,b,c,d,e,f){var g=0;if(f)return hm(a,g,b[b.length-1],c,d,e);if(d<a[c-1])return e?(a=a.slice(0,c),a[c-1]=d,a):null;if(a[a.length-1]<d)return e?(a=a.slice(a.length-c),a[c-1]=d,a):null;e=0;for(f=b.length;e<f;++e){var h=b[e];if(g!=h){if(d<a[g+c-1])break;else if(d<=a[h-1])return hm(a,g,h,c,d,!1);g=h}}return null};function jm(a,b){Lh.call(this);this.d=null;this.q=this.o=this.k=-1;this.R(a,b)}v(jm,Lh);l=jm.prototype;l.jf=function(a){null===this.j?this.j=a.slice():ig(this.j,a);this.l()};l.S=function(){var a=new jm(null);km(a,this.b,this.j.slice());return a};l.za=function(a,b,c,d){if(d<zg(this.C(),a,b))return d;this.q!=this.c&&(this.o=Math.sqrt(Uh(this.j,0,this.j.length,this.a,0)),this.q=this.c);return Wh(this.j,0,this.j.length,this.a,this.o,!1,a,b,c,d)};
|
|
l.bh=function(a,b){return"XYM"!=this.b&&"XYZM"!=this.b?null:hm(this.j,0,this.j.length,this.a,a,s(b)?b:!1)};l.G=function(){return bi(this.j,0,this.j.length,this.a)};l.dh=function(){var a=this.j,b=this.a,c=a[0],d=a[1],e=0,f;for(f=0+b;f<this.j.length;f+=b)var g=a[f],h=a[f+1],e=e+Math.sqrt((g-c)*(g-c)+(h-d)*(h-d)),c=g,d=h;return e};function sl(a){a.k!=a.c&&(a.d=gm(a.j,0,a.j.length,a.a,a.d),a.k=a.c);return a.d}
|
|
l.Ob=function(a){var b=[];b.length=di(this.j,0,this.j.length,this.a,a,b,0);a=new jm(null);km(a,"XY",b);return a};l.I=ca("LineString");l.R=function(a,b){null===a?km(this,"XY",null):(Oh(this,b,a,1),null===this.j&&(this.j=[]),this.j.length=$h(this.j,0,a,this.a),this.l())};function km(a,b,c){Nh(a,b,c);a.l()};function lm(a,b){Lh.call(this);this.d=[];this.k=this.q=-1;this.R(a,b)}v(lm,Lh);l=lm.prototype;l.kf=function(a){null===this.j?this.j=a.j.slice():ig(this.j,a.j.slice());this.d.push(this.j.length);this.l()};l.S=function(){var a=new lm(null);mm(a,this.b,this.j.slice(),this.d.slice());return a};l.za=function(a,b,c,d){if(d<zg(this.C(),a,b))return d;this.k!=this.c&&(this.q=Math.sqrt(Vh(this.j,0,this.d,this.a,0)),this.k=this.c);return Xh(this.j,0,this.d,this.a,this.q,!1,a,b,c,d)};
|
|
l.fh=function(a,b,c){return"XYM"!=this.b&&"XYZM"!=this.b||0===this.j.length?null:im(this.j,this.d,this.a,a,s(b)?b:!1,s(c)?c:!1)};l.G=function(){return ci(this.j,0,this.d,this.a)};l.Hf=function(a){if(0>a||this.d.length<=a)return null;var b=new jm(null);km(b,this.b,this.j.slice(0===a?0:this.d[a-1],this.d[a]));return b};l.td=function(){var a=this.j,b=this.d,c=this.b,d=[],e=0,f,g;f=0;for(g=b.length;f<g;++f){var h=b[f],m=new jm(null);km(m,c,a.slice(e,h));d.push(m);e=h}return d};
|
|
function tl(a){var b=[],c=a.j,d=0,e=a.d;a=a.a;var f,g;f=0;for(g=e.length;f<g;++f){var h=e[f],d=gm(c,d,h,a);ig(b,d);d=h}return b}l.Ob=function(a){var b=[],c=[],d=this.j,e=this.d,f=this.a,g=0,h=0,m,n;m=0;for(n=e.length;m<n;++m){var p=e[m],h=di(d,g,p,f,a,b,h);c.push(h);g=p}b.length=h;a=new lm(null);mm(a,"XY",b,c);return a};l.I=ca("MultiLineString");
|
|
l.R=function(a,b){if(null===a)mm(this,"XY",null,this.d);else{Oh(this,b,a,2);null===this.j&&(this.j=[]);var c=ai(this.j,0,a,this.a,this.d);this.j.length=0===c.length?0:c[c.length-1];this.l()}};function mm(a,b,c,d){Nh(a,b,c);a.d=d;a.l()}function nm(a,b){var c="XY",d=[],e=[],f,g;f=0;for(g=b.length;f<g;++f){var h=b[f];0===f&&(c=h.b);ig(d,h.j);e.push(d.length)}mm(a,c,d,e)};function om(a,b){Lh.call(this);this.R(a,b)}v(om,Lh);l=om.prototype;l.mf=function(a){null===this.j?this.j=a.j.slice():ig(this.j,a.j);this.l()};l.S=function(){var a=new om(null),b=this.j.slice();Nh(a,this.b,b);a.l();return a};l.za=function(a,b,c,d){if(d<zg(this.C(),a,b))return d;var e=this.j,f=this.a,g,h,m;g=0;for(h=e.length;g<h;g+=f)if(m=Sh(a,b,e[g],e[g+1]),m<d){d=m;for(m=0;m<f;++m)c[m]=e[g+m];c.length=f}return d};l.G=function(){return bi(this.j,0,this.j.length,this.a)};
|
|
l.Lf=function(a){var b=null===this.j?0:this.j.length/this.a;if(0>a||b<=a)return null;b=new hi(null);ii(b,this.b,this.j.slice(a*this.a,(a+1)*this.a));return b};l.oe=function(){var a=this.j,b=this.b,c=this.a,d=[],e,f;e=0;for(f=a.length;e<f;e+=c){var g=new hi(null);ii(g,b,a.slice(e,e+c));d.push(g)}return d};l.I=ca("MultiPoint");l.R=function(a,b){null===a?Nh(this,"XY",null):(Oh(this,b,a,1),null===this.j&&(this.j=[]),this.j.length=$h(this.j,0,a,this.a));this.l()};function pm(a,b){Lh.call(this);this.d=[];this.q=-1;this.o=null;this.r=this.p=this.t=-1;this.k=null;this.R(a,b)}v(pm,Lh);l=pm.prototype;l.nf=function(a){if(null===this.j)this.j=a.j.slice(),a=a.d.slice(),this.d.push();else{var b=this.j.length;ig(this.j,a.j);a=a.d.slice();var c,d;c=0;for(d=a.length;c<d;++c)a[c]+=b}this.d.push(a);this.l()};l.S=function(){var a=new pm(null);qm(a,this.b,this.j.slice(),this.d.slice());return a};
|
|
l.za=function(a,b,c,d){if(d<zg(this.C(),a,b))return d;if(this.p!=this.c){var e=this.d,f=0,g=0,h,m;h=0;for(m=e.length;h<m;++h)var n=e[h],g=Vh(this.j,f,n,this.a,g),f=n[n.length-1];this.t=Math.sqrt(g);this.p=this.c}e=Sl(this);f=this.d;g=this.a;h=this.t;m=0;var n=s(void 0)?void 0:[NaN,NaN],p,q;p=0;for(q=f.length;p<q;++p){var r=f[p];d=Xh(e,m,r,g,h,!0,a,b,c,d,n);m=r[r.length-1]}return d};
|
|
l.wb=function(a,b){var c;a:{c=Sl(this);var d=this.d,e=0;if(0!==d.length){var f,g;f=0;for(g=d.length;f<g;++f){var h=d[f];if(ki(c,e,h,this.a,a,b)){c=!0;break a}e=h[h.length-1]}}c=!1}return c};l.gh=function(){var a=Sl(this),b=this.d,c=0,d=0,e,f;e=0;for(f=b.length;e<f;++e)var g=b[e],d=d+Rh(a,c,g,this.a),c=g[g.length-1];return d};l.G=function(){var a=this.j,b=this.d,c=this.a,d=0,e=s(void 0)?void 0:[],f=0,g,h;g=0;for(h=b.length;g<h;++g){var m=b[g];e[f++]=ci(a,d,m,c,e[f]);d=m[m.length-1]}e.length=f;return e};
|
|
function ul(a){if(a.q!=a.c){var b=a.j,c=a.d,d=a.a,e=0,f=[],g,h,m=ug();g=0;for(h=c.length;g<h;++g){var n=c[g],m=b,p=n[0],q=d,r=Bg(void 0),m=Eg(r,m,e,p,q);f.push((m[0]+m[2])/2,(m[1]+m[3])/2);e=n[n.length-1]}b=Sl(a);c=a.d;d=a.a;g=0;h=[];n=0;for(m=c.length;n<m;++n)e=c[n],h=li(b,g,e,d,f,2*n,h),g=e[e.length-1];a.o=h;a.q=a.c}return a.o}l.Ef=function(){var a=new om(null),b=ul(this).slice();Nh(a,"XY",b);a.l();return a};
|
|
function Sl(a){if(a.r!=a.c){var b=a.j,c;a:{c=a.d;var d,e;d=0;for(e=c.length;d<e;++d)if(!ni(b,c[d],a.a)){c=!1;break a}c=!0}if(c)a.k=b;else{a.k=b.slice();c=b=a.k;d=a.d;e=a.a;var f=0,g,h;g=0;for(h=d.length;g<h;++g)f=oi(c,f,d[g],e);b.length=f}a.r=a.c}return a.k}l.Ob=function(a){var b=[],c=[],d=this.j,e=this.d,f=this.a;a=Math.sqrt(a);var g=0,h=0,m,n;m=0;for(n=e.length;m<n;++m){var p=e[m],q=[],h=ei(d,g,p,f,a,b,h,q);c.push(q);g=p[p.length-1]}b.length=h;d=new pm(null);qm(d,"XY",b,c);return d};
|
|
l.Mf=function(a){if(0>a||this.d.length<=a)return null;var b;0===a?b=0:(b=this.d[a-1],b=b[b.length-1]);a=this.d[a].slice();var c=a[a.length-1];if(0!==b){var d,e;d=0;for(e=a.length;d<e;++d)a[d]-=b}d=new H(null);pi(d,this.b,this.j.slice(b,c),a);return d};l.pe=function(){var a=this.b,b=this.j,c=this.d,d=[],e=0,f,g,h,m;f=0;for(g=c.length;f<g;++f){var n=c[f].slice(),p=n[n.length-1];if(0!==e)for(h=0,m=n.length;h<m;++h)n[h]-=e;h=new H(null);pi(h,a,b.slice(e,p),n);d.push(h);e=p}return d};l.I=ca("MultiPolygon");
|
|
l.R=function(a,b){if(null===a)qm(this,"XY",null,this.d);else{Oh(this,b,a,3);null===this.j&&(this.j=[]);var c=this.j,d=this.a,e=this.d,f=0,e=s(e)?e:[],g=0,h,m;h=0;for(m=a.length;h<m;++h)f=ai(c,f,a[h],d,e[g]),e[g++]=f,f=f[f.length-1];e.length=g;c=e[e.length-1];this.j.length=0===c.length?0:c[c.length-1];this.l()}};function qm(a,b,c,d){Nh(a,b,c);a.d=d;a.l()}
|
|
function rm(a,b){var c="XY",d=[],e=[],f,g,h;f=0;for(g=b.length;f<g;++f){var m=b[f];0===f&&(c=m.b);var n=d.length;h=m.d;var p,q;p=0;for(q=h.length;p<q;++p)h[p]+=n;ig(d,m.j);e.push(h)}qm(a,c,d,e)};function sm(a,b){return sa(a)-sa(b)}function tm(a,b,c,d,e,f,g){var h=!1,m,n;m=c.e;null===m?um(a,b,c,d,e):(n=m.Id(),2==n||3==n?(m.Td(f,g),2==n&&um(a,b,c,d,e)):(0==n&&m.Jd(),m.zd(f,g),h=!0));return h}function um(a,b,c,d,e){b=b.Q();null!=b&&(d=b.la(d),(0,vm[d.I()])(a,d,c,e))}
|
|
var vm={Point:function(a,b,c,d){var e=c.e;if(null!==e){var f=Zl(a,c.a,"Image");f.Yb(e);f.nc(b,d)}e=c.c;null!==e&&(a=Zl(a,c.a,"Text"),a.sa(e),a.ib(b.G(),0,2,2,b,d))},LineString:function(a,b,c,d){var e=c.b;if(null!==e){var f=Zl(a,c.a,"LineString");f.Ia(null,e);f.jc(b,d)}e=c.c;null!==e&&(a=Zl(a,c.a,"Text"),a.sa(e),a.ib(sl(b),0,2,2,b,d))},Polygon:function(a,b,c,d){var e=c.d,f=c.b;if(null!==e||null!==f){var g=Zl(a,c.a,"Polygon");g.Ia(e,f);g.Nb(b,d)}e=c.c;null!==e&&(a=Zl(a,c.a,"Text"),a.sa(e),a.ib(ri(b),
|
|
0,2,2,b,d))},MultiPoint:function(a,b,c,d){var e=c.e;if(null!==e){var f=Zl(a,c.a,"Image");f.Yb(e);f.lc(b,d)}e=c.c;null!==e&&(a=Zl(a,c.a,"Text"),a.sa(e),c=b.j,a.ib(c,0,c.length,b.a,b,d))},MultiLineString:function(a,b,c,d){var e=c.b;if(null!==e){var f=Zl(a,c.a,"LineString");f.Ia(null,e);f.kc(b,d)}e=c.c;null!==e&&(a=Zl(a,c.a,"Text"),a.sa(e),c=tl(b),a.ib(c,0,c.length,2,b,d))},MultiPolygon:function(a,b,c,d){var e=c.d,f=c.b;if(null!==f||null!==e){var g=Zl(a,c.a,"Polygon");g.Ia(e,f);g.mc(b,d)}e=c.c;null!==
|
|
e&&(a=Zl(a,c.a,"Text"),a.sa(e),c=ul(b),a.ib(c,0,c.length,2,b,d))},GeometryCollection:function(a,b,c,d){b=b.a;var e,f;e=0;for(f=b.length;e<f;++e)(0,vm[b[e].I()])(a,b[e],c,d)},Circle:function(a,b,c,d){var e=c.d,f=c.b;if(null!==e||null!==f){var g=Zl(a,c.a,"Polygon");g.Ia(e,f);g.ic(b,d)}e=c.c;null!==e&&(a=Zl(a,c.a,"Text"),a.sa(e),a.ib(b.Ed(),0,2,2,b,d))}};function wm(a,b,c,d){this.extent=a;this.height=b;this.a=c;this.value=d}function xm(a,b){return a.extent[0]-b.extent[0]}function ym(a,b){return a.extent[1]-b.extent[1]}function zm(a,b,c,d){a=a.a;for(d=Bg(d);b<c;++b)Dg(d,a[b].extent);return d}wm.prototype.remove=function(a,b,c){var d=this.a,e=d.length,f,g;if(1==this.height)for(g=0;g<e;++g){if(f=d[g],f.value===b)return ub.splice.call(d,g,1),!0}else for(g=0;g<e;++g)if(f=d[g],Ag(f.extent,a)){c.push(f);if(f.remove(a,b,c))return!0;c.pop()}return!1};
|
|
function Am(a){var b=Bg(a.extent);a=a.a;var c,d;c=0;for(d=a.length;c<d;++c)Dg(b,a[c].extent)}function Bm(a){this.b=Math.max(4,s(a)?a:9);this.d=Math.max(2,Math.ceil(0.4*this.b));this.a=new wm(ug(),1,[],null);this.c={}}function Cm(a,b,c){var d=b.a;a=a.d;var e=d.length;Hb(d,c);c=zm(b,0,a);var f=zm(b,e-a,e),g=Kg(c)+Ig(c)+(Kg(f)+Ig(f));for(b=a;b<e-a;++b)Dg(c,d[b].extent),g+=Kg(c)+Ig(c);for(b=e-a-1;b>=a;--b)Dg(f,d[b].extent),g+=Kg(f)+Ig(f);return g}l=Bm.prototype;
|
|
l.clear=function(){var a=this.a;a.extent=Bg(this.a.extent);a.height=1;a.a.length=0;a.value=null;ic(this.c)};l.forEach=function(a,b){return Dm(this.a,a,b)};function Dm(a,b,c){for(var d=[a],e,f,g;0<d.length;)if(a=d.pop(),e=a.a,1==a.height)for(a=0,f=e.length;a<f;++a){if(g=b.call(c,e[a].value))return g}else d.push.apply(d,e)}function Em(a,b,c){Fm(a,b,c,void 0)}
|
|
function Fm(a,b,c,d){a=[a.a];for(var e;0<a.length;)if(e=a.pop(),Mg(b,e.extent))if(null===e.a){if(e=c.call(d,e.value))return e}else if(Ag(b,e.extent)){if(e=Dm(e,c,d))return e}else a.push.apply(a,e.a)}function Gm(a){var b=[];a.forEach(function(a){b.push(a)});return b}function Hm(a,b){var c=[];Fm(a,b,function(a){c.push(a)},void 0);return c}l.C=function(a){return Og(this.a.extent,a)};function Im(a,b,c){var d=sa(c).toString();Jm(a,b,c,a.a.height-1);a.c[d]=yg(b)}
|
|
function Jm(a,b,c,d){for(var e=[a.a],f=a.a;null!==f.a&&e.length-1!=d;){var g=Infinity,h=Infinity,f=f.a,m=null,n,p;n=0;for(p=f.length;n<p;++n){var q=f[n],r=Kg(q.extent)*Ig(q.extent),u=q.extent,y=b,B=Math.min(u[0],y[0]),z=Math.min(u[1],y[1]),F=Math.max(u[2],y[2]),u=Math.max(u[3],y[3]),B=(F-B)*(u-z)-r;B<h?(h=B,g=Math.min(r,g),m=q):B==h&&r<g&&(g=r,m=q)}f=m;e.push(f)}d=f;d.a.push(new wm(b,0,null,c));Dg(d.extent,b);for(c=e.length-1;0<=c;--c)if(e[c].a.length>a.b){g=a;h=e;f=c;d=h[f];p=g;m=d;n=Cm(p,m,xm);
|
|
p=Cm(p,m,ym);n<p&&Hb(m.a,xm);m=d;n=g.d;p=m.a.length;r=q=Infinity;B=ug();z=ug();F=0;u=void 0;for(u=n;u<=p-n;++u){var B=zm(m,0,u,B),z=zm(m,u,p,z),D=B,L=z,y=Math.max(D[0],L[0]),R=Math.max(D[1],L[1]),ha=Math.min(D[2],L[2]),D=Math.min(D[3],L[3]),y=Math.max(0,ha-y)*Math.max(0,D-R),R=Kg(B)*Ig(B)+Kg(z)*Ig(z);y<q?(q=y,r=Math.min(R,r),F=u):y==q&&R<r&&(r=R,F=u)}m=d.a.splice(F);m=new wm(ug(),d.height,m,null);Am(d);Am(m);f?h[f-1].a.push(m):(h=m,f=d.height+1,m=Dg(d.extent.slice(),h.extent),g.a=new wm(m,f,[d,h],
|
|
null))}else break;for(;0<=c;--c)Dg(e[c].extent,b)}l.ma=function(){return 0===this.a.a.length};l.remove=function(a){var b=sa(a).toString(),c=this.c[b];delete this.c[b];return Km(this,c,a)};function Km(a,b,c){var d=a.a,e=[d];if(b=d.remove(b,c,e))for(c=e.length-1;0<=c;--c)d=e[c],0===d.a.length?0<c?Bb(e[c-1].a,d):a.clear():Am(d);return b}l.update=function(a,b){var c=sa(b).toString(),d=this.c[c];Cg(d,a)||(Km(this,d,b),Jm(this,a,b,this.a.height-1),this.c[c]=yg(a,d))};function Lm(a){a=s(a)?a:{};Tj.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state});this.b=new Bm;this.d={};this.e={};this.g={};this.p={};s(a.features)&&this.wa(a.features)}v(Lm,Tj);l=Lm.prototype;l.Gd=function(a){Mm(this,a);this.l()};
|
|
function Mm(a,b){var c=sa(b).toString();a.p[c]=[x(b,"change",a.Fe,!1,a),x(b,"propertychange",a.Fe,!1,a)];var d=b.Q();null!=d?(d=d.C(),Im(a.b,d,b)):a.d[c]=b;d=b.ba;s(d)?a.e[d.toString()]=b:a.g[c]=b;A(a,new Nm("addfeature",b))}l.Yd=function(a){this.wa(a);this.l()};l.wa=function(a){var b,c;b=0;for(c=a.length;b<c;++b)Mm(this,a[b])};l.clear=function(){this.b.forEach(this.Pd,this);this.b.clear();cc(this.d,this.Pd,this);ic(this.d);this.l()};l.he=function(a,b){return this.b.forEach(a,b)};
|
|
function Om(a,b,c){a.Kc([b[0],b[1],b[0],b[1]],function(a){if(a.Q().wb(b[0],b[1]))return c.call(void 0,a)})}l.Kc=function(a,b,c){return Fm(this.b,a,b,c)};l.Lc=function(a,b,c,d){return this.Kc(a,c,d)};l.Hd=function(){var a=Gm(this.b);hc(this.d)||Eb(a,fc(this.d));return a};l.me=function(a){var b=[];Om(this,a,function(a){b.push(a)});return b};
|
|
l.je=function(a){var b=a[0],c=a[1],d=null,e=[NaN,NaN],f=Infinity,g=[-Infinity,-Infinity,Infinity,Infinity];Fm(this.b,g,function(a){var m=a.Q(),n=f;f=m.za(b,c,e,f);f<n&&(d=a,a=Math.sqrt(f),g[0]=b-a,g[1]=c-a,g[2]=b+a,g[3]=c+a)},void 0);return d};l.C=function(){return this.b.C()};l.le=function(a){a=this.e[a.toString()];return s(a)?a:null};
|
|
l.Fe=function(a){a=a.target;var b=sa(a).toString(),c=a.Q();null!=c?(c=c.C(),b in this.d?(delete this.d[b],Im(this.b,c,a)):this.b.update(c,a)):b in this.d||(this.b.remove(a),this.d[b]=a);c=a.ba;s(c)?(c=c.toString(),b in this.g?(delete this.g[b],this.e[c]=a):this.e[c]!==a&&(Pm(this,a),this.e[c]=a)):b in this.g||(Pm(this,a),this.g[b]=a);this.l()};l.ma=function(){return this.b.ma()&&hc(this.d)};l.Ad=fa;l.Ge=function(a){var b=sa(a).toString();b in this.d?delete this.d[b]:this.b.remove(a);this.Pd(a);this.l()};
|
|
l.Pd=function(a){var b=sa(a).toString();wb(this.p[b],re);delete this.p[b];var c=a.ba;s(c)?delete this.e[c.toString()]:delete this.g[b];A(this,new Nm("removefeature",a))};function Pm(a,b){for(var c in a.e)if(a.e[c]===b){delete a.e[c];break}}function Nm(a,b){Qd.call(this,a);this.feature=b}v(Nm,Qd);function Qm(a,b){wl.call(this,a,b);this.b=!1;this.k=-1;this.g=NaN;this.t=ug();this.c=this.r=null;this.i=td()}v(Qm,wl);
|
|
Qm.prototype.o=function(a,b,c){var d=yl(this,a);xl(this,"precompose",c,a,d);var e=this.c;if(null!==e&&!e.ma()){var f;ue(this.a.ja,"render")?(this.i.canvas.width=c.canvas.width,this.i.canvas.height=c.canvas.height,f=this.i):f=c;f.globalAlpha=b.opacity;Vl(e,f,a.extent,a.pixelRatio,d,a.view2DState.rotation,a.gb);f!=c&&(xl(this,"render",f,a,d),c.drawImage(f.canvas,0,0))}xl(this,"postcompose",c,a,d)};
|
|
Qm.prototype.f=function(a,b,c,d){if(null!==this.c){var e=this.a;return Xl(this.c,b.extent,b.view2DState.resolution,b.view2DState.rotation,a,b.gb,function(a,b){return c.call(d,b,e)})}};Qm.prototype.D=function(){kk(this)};
|
|
Qm.prototype.d=function(a){var b=this.a,c=b.a;mk(a.attributions,c.i);nk(a,c);if(this.b||!a.aa[0]&&!a.aa[1]){var d=a.extent,e=a.view2DState,f=e.projection,g=e.resolution,h=a.pixelRatio;a=b.c;e=b.get("renderOrder");s(e)||(e=sm);if(this.b||this.g!=g||this.k!=a||this.r!=e||!Ag(this.t,d)){var m=this.t,n=Kg(d)/4,p=Ig(d)/4;m[0]=d[0]-n;m[1]=d[1]-p;m[2]=d[2]+n;m[3]=d[3]+p;Pd(this.c);this.c=null;this.b=!1;var q=b.va;s(q)||(q=Oi);var r=new Ul(g/(2*h),m,g);c.Ad(m,g,f);b=function(a){var b=q(a,g);if(null!=b){var c=
|
|
g*g/(4*h*h),d,e,f=!1;d=0;for(e=b.length;d<e;++d)f=tm(r,a,b[d],c,a,this.D,this)||f;a=f}else a=!1;this.b=this.b||a};if(null===e)c.Lc(m,g,b,this);else{var u=[];c.Lc(m,g,function(a){u.push(a)},this);Hb(u,e);wb(u,b,this)}Yl(r);this.g=g;this.k=a;this.r=e;this.c=r}}};function Rm(a,b){Ak.call(this,0,b);this.i=td();this.a=this.i.canvas;this.a.style.width="100%";this.a.style.height="100%";this.a.className="ol-unselectable";Dc(a,this.a,0);this.c=!0;this.g=kd()}v(Rm,Ak);Rm.prototype.Fc=function(a){return a instanceof O?new Cl(this,a):a instanceof P?new Dl(this,a):a instanceof Q?new Qm(this,a):null};
|
|
function Sm(a,b,c){var d=a.f,e=a.i;if(ue(d.ja,b)){var f=c.view2DState,g=c.pixelRatio;xk(a.g,a.a.width/2,a.a.height/2,g/f.resolution,-g/f.resolution,-f.rotation,-f.center[0],-f.center[1]);a=new jl(e,g,c.extent,a.g,f.rotation);A(d,new ti(b,d,a,c,e,null));vl(a)}}Rm.prototype.I=ca("canvas");
|
|
Rm.prototype.dd=function(a){if(null===a)this.c&&(Yc(this.a,!1),this.c=!1);else{var b=this.i,c=a.size[0]*a.pixelRatio,d=a.size[1]*a.pixelRatio;this.a.width!=c||this.a.height!=d?(this.a.width=c,this.a.height=d):b.clearRect(0,0,this.a.width,this.a.height);Bk(a);Sm(this,"precompose",a);var c=a.Yc,d=a.view2DState.resolution,e,f,g,h;e=0;for(f=c.length;e<f;++e)h=c[e],g=h.layer,g=Ck(this,g),h.visible&&(d>=h.minResolution&&d<h.maxResolution)&&1==h.Va&&(g.d(a,h),g.o(a,h,b));Sm(this,"postcompose",a);this.c||
|
|
(Yc(this.a,!0),this.c=!0);Ek(this,a);Dk(a)}};function Tm(a,b,c){jk.call(this,a,b);this.target=c}v(Tm,jk);function Um(a,b){var c=zc("DIV");c.style.position="absolute";Tm.call(this,a,b,c);this.c=null;this.b=md()}v(Um,Tm);Um.prototype.f=function(a,b,c,d){var e=this.a;return e.a.bd(b.extent,b.view2DState.resolution,b.view2DState.rotation,a,b.gb,function(a){return c.call(d,a,e)})};
|
|
Um.prototype.d=function(a){var b=a.view2DState,c=b.center,d=b.resolution,e=b.rotation,f=this.c,g=this.a.a,h=a.aa;h[0]||h[1]||(b=g.Ub(a.extent,d,a.pixelRatio,b.projection),null!==b&&(h=b.state,0==h?(oe(b,"change",this.q,!1,this),Yj(b)):2==h&&(f=b)));if(null!==f){var h=f.C(),m=f.d,b=kd();xk(b,a.size[0]/2,a.size[1]/2,m/d,m/d,e,(h[0]-c[0])/m,(c[1]-h[3])/m);f!=this.c&&(c=f.e(this),c.style.maxWidth="none",c.style.position="absolute",Bc(this.target),this.target.appendChild(c),this.c=f);yk(b,this.b)||(xd(this.target,
|
|
b),nd(this.b,b));mk(a.attributions,f.i);nk(a,g)}};function Vm(a,b){var c=zc("DIV");c.style.position="absolute";Tm.call(this,a,b,c);this.b=!0;this.g=1;this.i=0;this.c={}}v(Vm,Tm);
|
|
Vm.prototype.d=function(a,b){if(b.visible){var c=a.pixelRatio,d=a.view2DState,e=d.projection,f=this.a,g=f.a,h=ik(g,e),m=g.Nc(),n=jg(h.a,d.resolution,0),p=h.ha(n),q=d.center,r;p==d.resolution?(q=qk(q,p,a.size),r=Hg(q,p,d.rotation,a.size)):r=a.extent;var p=ek(h,r,p),u={};u[n]={};var y=xa(g.qd,g,u,pk(function(a){return null!==a&&2==a.state},g,c,e)),B=f.ia();s(B)||(B=!0);var z=ug(),F=new Pb(0,0,0,0),D,L,R,ha;for(R=p.a;R<=p.d;++R)for(ha=p.b;ha<=p.c;++ha)D=g.Pb(n,R,ha,c,e),L=D.state,2==L?u[n][D.a.toString()]=
|
|
D:4==L||3==L&&!B||(L=h.Mc(D.a,y,null,F,z),L||(D=h.Qc(D.a,F,z),null===D||y(n+1,D)));var T;if(this.i!=g.c){for(T in this.c)B=this.c[+T],Ec(B.target);this.c={};this.i=g.c}z=xb(gc(u),Number);Hb(z);var y={},pa;R=0;for(ha=z.length;R<ha;++R){T=z[R];T in this.c?B=this.c[T]:(B=fk(h,q[0],q[1],h.ha(T),!1,void 0),B=new Wm(h,B),y[T]=!0,this.c[T]=B);T=u[T];for(pa in T)Xm(B,T[pa],m);Ym(B)}m=xb(gc(this.c),Number);Hb(m);R=kd();pa=0;for(z=m.length;pa<z;++pa)if(T=m[pa],B=this.c[T],T in u)if(D=B.i,ha=B.f,xk(R,a.size[0]/
|
|
2,a.size[1]/2,D/d.resolution,D/d.resolution,d.rotation,(ha[0]-q[0])/D,(q[1]-ha[1])/D),Zm(B,R),T in y){for(T-=1;0<=T;--T)if(T in this.c){Cc(B.target,this.c[T].target);break}0>T&&Dc(this.target,B.target,0)}else a.aa[0]||a.aa[1]||$m(B,r,F);else Ec(B.target),delete this.c[T];b.opacity!=this.g&&(Xc(this.target,b.opacity),this.g=b.opacity);b.visible&&!this.b&&(Yc(this.target,!0),this.b=!0);ok(a.Ac,g,n,p);rk(a,g,h,c,e,r,n,f.ga());lk(a,g);nk(a,g)}else this.b&&(Yc(this.target,!1),this.b=!1)};
|
|
function Wm(a,b){this.target=zc("DIV");this.target.style.position="absolute";this.target.style.width="100%";this.target.style.height="100%";this.d=a;this.b=b;this.f=Jg(ck(a,b));this.i=a.ha(b.a);this.c={};this.a=null;this.e=md()}
|
|
function Xm(a,b,c){var d=b.a,e=d.toString();if(!(e in a.c)){var f=a.d.ka(d.a),g=b.b(a),h=g.style;h.maxWidth="none";var m,n;0<c?(m=zc("DIV"),n=m.style,n.overflow="hidden",n.width=f+"px",n.height=f+"px",h.position="absolute",h.left=-c+"px",h.top=-c+"px",h.width=f+2*c+"px",h.height=f+2*c+"px",m.appendChild(g)):(h.width=f+"px",h.height=f+"px",m=g,n=h);n.position="absolute";n.left=(d.x-a.b.x)*f+"px";n.top=(a.b.y-d.y)*f+"px";null===a.a&&(a.a=document.createDocumentFragment());a.a.appendChild(m);a.c[e]=
|
|
b}}function Ym(a){null!==a.a&&(a.target.appendChild(a.a),a.a=null)}function $m(a,b,c){var d=dk(a.d,b,a.b.a,c);b=[];for(var e in a.c)c=a.c[e],d.contains(c.a)||b.push(c);var f,d=0;for(f=b.length;d<f;++d)c=b[d],e=c.a.toString(),Ec(c.b(a)),delete a.c[e]}function Zm(a,b){yk(b,a.e)||(xd(a.target,b),nd(a.e,b))};function an(a,b){Ak.call(this,0,b);this.a=zc("DIV");this.a.className="ol-unselectable";var c=this.a.style;c.position="absolute";c.width="100%";c.height="100%";Dc(a,this.a,0);this.c=!0}v(an,Ak);an.prototype.Fc=function(a){if(a instanceof O)a=new Um(this,a);else if(a instanceof P)a=new Vm(this,a);else return null;return a};an.prototype.I=ca("dom");
|
|
an.prototype.dd=function(a){if(null===a)this.c&&(Yc(this.a,!1),this.c=!1);else{var b;b=function(a,b){Dc(this.a,a,b)};var c=a.Yc,d,e,f,g;d=0;for(e=c.length;d<e;++d)g=c[d],f=g.layer,f=Ck(this,f),b.call(this,f.target,d),1==g.Va&&f.d(a,g);b=a.yd;for(var h in this.b)h in b||(f=this.b[h],Ec(f.target));this.c||(Yc(this.a,!0),this.c=!0);Bk(a);Ek(this,a);Dk(a)}};function bn(){}l=bn.prototype;l.Hc=ba();l.ic=ba();l.Ic=ba();l.ee=ba();l.nc=ba();l.jc=ba();l.kc=ba();l.lc=ba();l.mc=ba();l.Nb=ba();l.ib=ba();l.Ia=ba();l.Yb=ba();l.sa=ba();function cn(){this.i=kd();this.c=void 0;this.a=kd();this.d=void 0;this.b=kd();this.f=void 0;this.e=kd();this.k=void 0;this.g=kd()}
|
|
function dn(a,b,c,d,e){var f=!1;s(b)&&b!==a.c&&(f=a.a,od(f),f[12]=b,f[13]=b,f[14]=b,f[15]=1,a.c=b,f=!0);if(s(c)&&c!==a.d){f=a.b;od(f);f[0]=c;f[5]=c;f[10]=c;f[15]=1;var g=-0.5*c+0.5;f[12]=g;f[13]=g;f[14]=g;f[15]=1;a.d=c;f=!0}s(d)&&d!==a.f&&(f=Math.cos(d),g=Math.sin(d),ld(a.e,0.213+0.787*f-0.213*g,0.213-0.213*f+0.143*g,0.213-0.213*f-0.787*g,0,0.715-0.715*f-0.715*g,0.715+0.285*f+0.14*g,0.715-0.715*f+0.715*g,0,0.072-0.072*f+0.928*g,0.072-0.072*f-0.283*g,0.072+0.928*f+0.072*g,0,0,0,0,1),a.f=d,f=!0);s(e)&&
|
|
e!==a.k&&(ld(a.g,0.213+0.787*e,0.213-0.213*e,0.213-0.213*e,0,0.715-0.715*e,0.715+0.285*e,0.715-0.715*e,0,0.072-0.072*e,0.072-0.072*e,0.072+0.928*e,0,0,0,0,1),a.k=e,f=!0);f&&(f=a.i,od(f),s(c)&&pd(f,a.b,f),s(b)&&pd(f,a.a,f),s(e)&&pd(f,a.g,f),s(d)&&pd(f,a.e,f));return a.i};function en(a){this.a=a}function fn(a){this.a=a}v(fn,en);fn.prototype.I=ca(35632);function gn(a){this.a=a}v(gn,en);gn.prototype.I=ca(35633);function hn(){this.a="precision mediump float;varying vec2 a;uniform mat4 f;uniform float g;uniform sampler2D h;void main(void){vec4 texColor\x3dtexture2D(h,a);gl_FragColor.rgb\x3d(f*vec4(texColor.rgb,1.)).rgb;gl_FragColor.a\x3dtexColor.a*g;}"}v(hn,fn);ga(hn);function jn(){this.a="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position\x3de*vec4(b,0.,1.);a\x3d(d*vec4(c,0.,1.)).st;}"}v(jn,gn);ga(jn);
|
|
function kn(a,b){this.i=a.getUniformLocation(b,"f");this.d=a.getUniformLocation(b,"g");this.e=a.getUniformLocation(b,"e");this.f=a.getUniformLocation(b,"d");this.b=a.getUniformLocation(b,"h");this.a=a.getAttribLocation(b,"b");this.c=a.getAttribLocation(b,"c")};function ln(){this.a="precision mediump float;varying vec2 a;uniform float f;uniform sampler2D g;void main(void){vec4 texColor\x3dtexture2D(g,a);gl_FragColor.rgb\x3dtexColor.rgb;gl_FragColor.a\x3dtexColor.a*f;}"}v(ln,fn);ga(ln);function mn(){this.a="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position\x3de*vec4(b,0.,1.);a\x3d(d*vec4(c,0.,1.)).st;}"}v(mn,gn);ga(mn);
|
|
function nn(a,b){this.d=a.getUniformLocation(b,"f");this.e=a.getUniformLocation(b,"e");this.f=a.getUniformLocation(b,"d");this.b=a.getUniformLocation(b,"g");this.a=a.getAttribLocation(b,"b");this.c=a.getAttribLocation(b,"c")};function on(a){this.a=s(a)?a:[]}function pn(a,b,c){if(b!=c){var d=a.a,e=d.length,f;for(f=0;f<e;f+=2)if(b<=d[f]){d.splice(f,0,b,c);qn(a);return}d.push(b,c);qn(a)}}on.prototype.clear=function(){this.a.length=0};function qn(a){a=a.a;var b=a.length,c=0,d;for(d=0;d<b;d+=2)a[d]!=a[d+1]&&(0<c&&a[c-2]<=a[d]&&a[d]<=a[c-1]?a[c-1]=Math.max(a[c-1],a[d+1]):(a[c++]=a[d],a[c++]=a[d+1]));a.length=c}function rn(a,b){var c=a.a,d=c.length,e;for(e=0;e<d;e+=2)b.call(void 0,c[e],c[e+1])}
|
|
on.prototype.ma=function(){return 0===this.a.length};function sn(a,b,c){var d=a.a,e=d.length,f;for(f=0;f<e;f+=2)if(!(c<d[f]||d[f+1]<b)){if(d[f]>c)break;if(b<d[f])if(c==d[f])break;else if(c<d[f+1]){d[f]=Math.max(d[f],c);break}else d.splice(f,2),f-=2,e-=2;else if(b==d[f])if(c<d[f+1]){d[f]=c;break}else if(c==d[f+1]){d.splice(f,2);break}else d.splice(f,2),f-=2,e-=2;else if(c<d[f+1]){d.splice(f,2,d[f],b,c,d[f+1]);break}else if(c==d[f+1]){d[f+1]=b;break}else d[f+1]=b}qn(a)};function tn(a,b,c){this.c=s(a)?a:[];this.a=[];this.b=new on;a=s(b)?b:this.c.length;a<this.c.length&&pn(this.b,a,this.c.length);this.e=this.f=null;this.d=s(c)?c:35044}tn.prototype.add=function(a){var b=a.length,c;a:{c=this.b.a;var d=c.length,e=-1,f,g,h;for(g=0;g<d;g+=2){h=c[g+1]-c[g];if(h==b){c=c[g];break a}h>b&&(-1==e||h<f)&&(e=c[g],f=h)}c=e}sn(this.b,c,c+b);for(d=0;d<b;++d)this.c[c+d]=a[d];a=0;for(d=this.a.length;a<d;++a)pn(this.a[a],c,c+b);return c};
|
|
tn.prototype.La=function(){var a=this.b.a,b=a.length,c=0,d;for(d=0;d<b;d+=2)c+=a[d+1]-a[d];return this.c.length-c};tn.prototype.remove=function(a,b){var c,d;pn(this.b,b,b+a);c=0;for(d=this.a.length;c<d;++c)sn(this.a[c],b,b+a)};function un(a,b){jk.call(this,a,b);this.N=new tn([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]);this.i=this.ta=null;this.g=void 0;this.r=kd();this.D=md();this.ea=new cn;this.n=this.k=null}v(un,jk);
|
|
function vn(a,b,c){var d=a.e.d;if(s(a.g)&&a.g==c)d.bindFramebuffer(36160,a.i);else{b.rb.push(za(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},d,a.i,a.ta));b=d.createTexture();d.bindTexture(3553,b);d.texImage2D(3553,0,6408,c,c,0,6408,5121,null);d.texParameteri(3553,10240,9729);d.texParameteri(3553,10241,9729);var e=d.createFramebuffer();d.bindFramebuffer(36160,e);d.framebufferTexture2D(36160,36064,3553,b,0);a.ta=b;a.i=e;a.g=c}}
|
|
function wn(a,b,c,d){a=a.a;ue(a.ja,b)&&A(a,new ti(b,a,new bn,d,null,c))}un.prototype.o=function(){this.i=this.ta=null;this.g=void 0};function xn(a,b){un.call(this,a,b);this.c=null}v(xn,un);function yn(a,b){var c=b.e(),d=a.e.d,e=d.createTexture();d.bindTexture(3553,e);d.texImage2D(3553,0,6408,6408,5121,c);d.texParameteri(3553,10242,33071);d.texParameteri(3553,10243,33071);d.texParameteri(3553,10241,9729);d.texParameteri(3553,10240,9729);return e}xn.prototype.f=function(a,b,c,d){var e=this.a;return e.a.bd(b.extent,b.view2DState.resolution,b.view2DState.rotation,a,b.gb,function(a){return c.call(d,a,e)})};
|
|
xn.prototype.d=function(a){var b=this.e.d,c=a.view2DState,d=c.center,e=c.resolution,f=c.rotation,g=this.c,h=this.ta,m=this.a.a,n=a.aa;n[0]||n[1]||(c=m.Ub(a.extent,e,a.pixelRatio,c.projection),null!==c&&(n=c.state,0==n?(oe(c,"change",this.q,!1,this),Yj(c)):2==n&&(g=c,h=yn(this,c),null===this.ta||a.rb.push(za(function(a,b){a.isContextLost()||a.deleteTexture(b)},b,this.ta)))));null!==g&&(b=this.e.e.f,zn(this,b.width,b.height,d,e,f,g.C()),d=this.r,od(d),rd(d,1,-1),qd(d,0,-1),this.c=g,this.ta=h,mk(a.attributions,
|
|
g.i),nk(a,m))};function zn(a,b,c,d,e,f,g){b*=e;c*=e;a=a.D;od(a);rd(a,2/b,2/c);sd(a,-f);qd(a,g[0]-d[0],g[1]-d[1]);rd(a,(g[2]-g[0])/2,(g[3]-g[1])/2);qd(a,1,1)};function An(){this.a="precision mediump float;varying vec2 a;uniform sampler2D e;void main(void){gl_FragColor\x3dtexture2D(e,a);}"}v(An,fn);ga(An);function Bn(){this.a="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform vec4 d;void main(void){gl_Position\x3dvec4(b*d.xy+d.zw,0.,1.);a\x3dc;}"}v(Bn,gn);ga(Bn);function Cn(a,b){this.b=a.getUniformLocation(b,"e");this.d=a.getUniformLocation(b,"d");this.a=a.getAttribLocation(b,"b");this.c=a.getAttribLocation(b,"c")};function Dn(a,b){un.call(this,a,b);this.W=An.kb();this.ca=Bn.kb();this.c=null;this.F=new tn([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]);this.t=this.b=null;this.p=-1}v(Dn,un);Dn.prototype.H=function(){var a=this.e.e,b=a.c,c=sa(this.F),d=a.a[c];Bb(d.Zd.a,d.Gc);b.isContextLost()||b.deleteBuffer(d.buffer);delete a.a[c];Dn.K.H.call(this)};Dn.prototype.o=function(){Dn.K.o.call(this);this.c=null};
|
|
Dn.prototype.d=function(a){var b=this.e,c=b.e,d=b.d,e=a.view2DState,f=e.projection,g=this.a,h=g.a,m=ik(h,f),n=jg(m.a,e.resolution,0),p=m.ha(n),q=h.pc(n,a.pixelRatio,f),r=q/m.ka(n),u=p/r,y=h.Nc(),B=e.center,z;p==e.resolution?(B=qk(B,p,a.size),z=Hg(B,p,e.rotation,a.size)):z=a.extent;p=ek(m,z,p);if(null!==this.b&&this.b.a==p.a&&(this.b.b==p.b&&this.b.d==p.d&&this.b.c==p.c)&&this.p==h.c)u=this.t;else{var F=[p.d-p.a+1,p.c-p.b+1],F=Math.max(F[0]*q,F[1]*q),D=Math.pow(2,Math.ceil(Math.log(F)/Math.LN2)),F=
|
|
u*D,L=m.pb(n),R=L[0]+p.a*q*u,u=L[1]+p.b*q*u,u=[R,u,R+F,u+F];vn(this,a,D);d.viewport(0,0,D,D);d.clearColor(0,0,0,0);d.clear(16384);d.disable(3042);D=En(c,this.W,this.ca);c.Kd(D);null===this.c&&(this.c=new Cn(d,D));Fn(c,this.F);d.enableVertexAttribArray(this.c.a);d.vertexAttribPointer(this.c.a,2,5126,!1,16,0);d.enableVertexAttribArray(this.c.c);d.vertexAttribPointer(this.c.c,2,5126,!1,16,8);d.uniform1i(this.c.b,0);c={};c[n]={};var ha=xa(h.qd,h,c,pk(function(a){return null!==a&&2==a.state&&Gn(b.c,a.d())},
|
|
h,r,f)),T=g.ia();s(T)||(T=!0);var D=!0,R=ug(),pa=new Pb(0,0,0,0),ya,Oa,Sa;for(Oa=p.a;Oa<=p.d;++Oa)for(Sa=p.b;Sa<=p.c;++Sa){L=h.Pb(n,Oa,Sa,r,f);ya=L.state;if(2==ya){if(Gn(b.c,L.d())){c[n][L.a.toString()]=L;continue}}else if(4==ya||3==ya&&!T)continue;D=!1;ya=m.Mc(L.a,ha,null,pa,R);ya||(L=m.Qc(L.a,pa,R),null===L||ha(n+1,L))}ha=xb(gc(c),Number);Hb(ha);var T=new Float32Array(4),ia,Wa,Ra,Uc,pa=0;for(Oa=ha.length;pa<Oa;++pa)for(Wa in Ra=c[ha[pa]],Ra)L=Ra[Wa],ia=ck(m,L.a,R),Sa=2*(ia[2]-ia[0])/F,ya=2*(ia[3]-
|
|
ia[1])/F,Uc=2*(ia[0]-u[0])/F-1,ia=2*(ia[1]-u[1])/F-1,jd(T,Sa,ya,Uc,ia),d.uniform4fv(this.c.d,T),Hn(b,L,q,y*r),d.drawArrays(5,0,4);D?(this.b=p,this.t=u,this.p=h.c):(this.t=this.b=null,this.p=-1,a.xa=!0)}ok(a.Ac,h,n,p);var ac=b.g;rk(a,h,m,r,f,z,n,g.ga(),function(a){var c;(c=2!=a.state)||(c=Gn(b.c,a.d()))||(c=a.d()in ac.b);c||sk(ac,[a,gk(m,a.a),m.ha(a.a.a),q,y*r])},this);lk(a,h);nk(a,h);d=this.r;od(d);qd(d,(B[0]-u[0])/(u[2]-u[0]),(B[1]-u[1])/(u[3]-u[1]));0!==e.rotation&&sd(d,e.rotation);rd(d,a.size[0]*
|
|
e.resolution/(u[2]-u[0]),a.size[1]*e.resolution/(u[3]-u[1]));qd(d,-0.5,-0.5)};function In(){this.O=0;this.b={};this.c=this.a=null}l=In.prototype;l.clear=function(){this.O=0;this.b={};this.c=this.a=null};function Gn(a,b){return a.b.hasOwnProperty(b)}l.forEach=function(a,b){for(var c=this.a;null!==c;)a.call(b,c.Jb,c.Xc,this),c=c.Da};l.get=function(a){a=this.b[a];if(a===this.c)return a.Jb;a===this.a?(this.a=this.a.Da,this.a.qb=null):(a.Da.qb=a.qb,a.qb.Da=a.Da);a.Da=null;a.qb=this.c;this.c=this.c.Da=a;return a.Jb};l.La=k("O");
|
|
l.M=function(){var a=Array(this.O),b=0,c;for(c=this.c;null!==c;c=c.qb)a[b++]=c.Xc;return a};l.Oa=function(){var a=Array(this.O),b=0,c;for(c=this.c;null!==c;c=c.qb)a[b++]=c.Jb;return a};l.pop=function(){var a=this.a;delete this.b[a.Xc];null!==a.Da&&(a.Da.qb=null);this.a=a.Da;null===this.a&&(this.c=null);--this.O;return a.Jb};function Jn(a,b,c){c={Xc:b,Da:null,qb:a.c,Jb:c};null===a.c?a.a=c:a.c.Da=c;a.c=c;a.b[b]=c;++a.O};function Kn(a,b){this.f=a;this.c=b;this.a={};this.d={};this.b={};this.e=null;x(this.f,"webglcontextlost",this.Qh,!1,this);x(this.f,"webglcontextrestored",this.Rh,!1,this)}
|
|
function Fn(a,b){var c=a.c,d=b.c,e=sa(b);if(e in a.a)e=a.a[e],c.bindBuffer(34962,e.buffer),rn(e.Gc,function(a,b){var e=d.slice(a,b);c.bufferSubData(34962,a,new Float32Array(e))}),e.Gc.clear();else{var f=c.createBuffer();c.bindBuffer(34962,f);c.bufferData(34962,new Float32Array(d),b.d);var g=new on;b.a.push(g);a.a[e]={Zd:b,buffer:f,Gc:g}}}l=Kn.prototype;
|
|
l.H=function(){cc(this.a,function(a){Bb(a.Zd.a,a.Gc)});var a=this.c;a.isContextLost()||(cc(this.a,function(b){a.deleteBuffer(b.buffer)}),cc(this.b,function(b){a.deleteProgram(b)}),cc(this.d,function(b){a.deleteShader(b)}))};l.Ph=k("c");function Ln(a,b){var c=sa(b);if(c in a.d)return a.d[c];var d=a.c,e=d.createShader(b.I());d.shaderSource(e,b.a);d.compileShader(e);return a.d[c]=e}
|
|
function En(a,b,c){var d=sa(b)+"/"+sa(c);if(d in a.b)return a.b[d];var e=a.c,f=e.createProgram();e.attachShader(f,Ln(a,b));e.attachShader(f,Ln(a,c));e.linkProgram(f);return a.b[d]=f}l.Qh=function(){ic(this.a);ic(this.d);ic(this.b);this.e=null};l.Rh=ba();l.Kd=function(a){if(a==this.e)return!1;this.c.useProgram(a);this.e=a;return!0};function Mn(a,b){Ak.call(this,0,b);this.a=zc("CANVAS");this.a.style.width="100%";this.a.style.height="100%";this.a.className="ol-unselectable";Dc(a,this.a,0);this.q=0;this.o=td();this.k=!0;this.d=zd(this.a,{antialias:!0,depth:!1,uf:!0,preserveDrawingBuffer:!1,stencil:!0});this.e=new Kn(this.a,this.d);x(this.a,"webglcontextlost",this.kh,!1,this);x(this.a,"webglcontextrestored",this.lh,!1,this);this.c=new In;this.n=null;this.g=new Fk(xa(function(a){var b=a[1];a=a[2];var e=b[0]-this.n[0],b=b[1]-this.n[1];
|
|
return 65536*Math.log(a)+Math.sqrt(e*e+b*b)/a},this),function(a){return a[0].d()});this.p=xa(function(){if(!this.g.ma()){Jk(this.g);var a=Gk(this.g);Hn(this,a[0],a[3],a[4])}},this);this.i=0;Nn(this)}v(Mn,Ak);
|
|
function Hn(a,b,c,d){var e=a.d,f=b.d();if(Gn(a.c,f))a=a.c.get(f),e.bindTexture(3553,a.ta),9729!=a.ue&&(e.texParameteri(3553,10240,9729),a.ue=9729),9729!=a.ve&&(e.texParameteri(3553,10240,9729),a.ve=9729);else{var g=e.createTexture();e.bindTexture(3553,g);if(0<d){var h=a.o.canvas,m=a.o;a.q!=c?(h.width=c,h.height=c,a.q=c):m.clearRect(0,0,c,c);m.drawImage(b.b(),d,d,c,c,0,0,c,c);e.texImage2D(3553,0,6408,6408,5121,h)}else e.texImage2D(3553,0,6408,6408,5121,b.b());e.texParameteri(3553,10240,9729);e.texParameteri(3553,
|
|
10241,9729);e.texParameteri(3553,10242,33071);e.texParameteri(3553,10243,33071);Jn(a.c,f,{ta:g,ue:9729,ve:9729})}}l=Mn.prototype;l.Fc=function(a){return a instanceof O?new xn(this,a):a instanceof P?new Dn(this,a):null};function On(a,b,c){var d=a.f;ue(d.ja,b)&&A(d,new ti(b,d,new bn,c,null,a.e))}l.H=function(){var a=this.d;a.isContextLost()||this.c.forEach(function(b){null===b||a.deleteTexture(b.ta)});Pd(this.e);Mn.K.H.call(this)};
|
|
l.tf=function(a,b){for(var c=this.d,d;1024<this.c.La()-this.i;){d=this.c.a.Jb;if(null===d)if(+this.c.a.Xc==b.index)break;else--this.i;else c.deleteTexture(d.ta);this.c.pop()}};l.I=ca("webgl");l.kh=function(a){a.preventDefault();this.c.clear();this.i=0;cc(this.b,function(a){a.o()})};l.lh=function(){Nn(this);this.f.U()};function Nn(a){a=a.d;a.activeTexture(33984);a.blendFuncSeparate(770,771,1,771);a.disable(2884);a.disable(2929);a.disable(3089);a.disable(2960)}
|
|
l.dd=function(a){var b=this.e,c=this.d;if(c.isContextLost())return!1;if(null===a)return this.k&&(Yc(this.a,!1),this.k=!1),!1;this.n=a.focus;Jn(this.c,(-a.index).toString(),null);++this.i;var d=[],e=a.Yc,f=a.view2DState.resolution,g,h,m;g=0;for(h=e.length;g<h;++g)m=e[g],m.visible&&(f>=m.minResolution&&f<m.maxResolution)&&1==m.Va&&d.push(m);g=0;for(h=d.length;g<h;++g)m=d[g],e=Ck(this,m.layer),e.d(a,m);g=a.size[0]*a.pixelRatio;h=a.size[1]*a.pixelRatio;if(this.a.width!=g||this.a.height!=h)this.a.width=
|
|
g,this.a.height=h;c.bindFramebuffer(36160,null);c.clearColor(0,0,0,0);c.clear(16384);c.enable(3042);c.viewport(0,0,this.a.width,this.a.height);On(this,"precompose",a);g=0;for(h=d.length;g<h;++g){m=d[g];c=e=Ck(this,m.layer);e=a;f=b;wn(c,"precompose",f,e);Fn(f,c.N);var n=f.c,p=m.brightness||1!=m.contrast||m.hue||1!=m.saturation,q=void 0,r=void 0;p?(q=hn.kb(),r=jn.kb()):(q=ln.kb(),r=mn.kb());q=En(f,q,r);r=void 0;p?null===c.k?(r=new kn(n,q),c.k=r):r=c.k:null===c.n?(r=new nn(n,q),c.n=r):r=c.n;f.Kd(q)&&
|
|
(n.enableVertexAttribArray(r.a),n.vertexAttribPointer(r.a,2,5126,!1,16,0),n.enableVertexAttribArray(r.c),n.vertexAttribPointer(r.c,2,5126,!1,16,8),n.uniform1i(r.b,0));n.uniformMatrix4fv(r.f,!1,c.r);n.uniformMatrix4fv(r.e,!1,c.D);p&&n.uniformMatrix4fv(r.i,!1,dn(c.ea,m.brightness,m.contrast,m.hue,m.saturation));n.uniform1f(r.d,m.opacity);n.bindTexture(3553,c.ta);n.drawArrays(5,0,4);wn(c,"postcompose",f,e)}this.k||(Yc(this.a,!0),this.k=!0);Bk(a);1024<this.c.La()-this.i&&a.rb.push(xa(this.tf,this));this.g.ma()||
|
|
(a.rb.push(this.p),a.xa=!0);On(this,"postcompose",a);Ek(this,a);Dk(a)};var Pn=["canvas","webgl","dom"];
|
|
function S(a){Me.call(this);var b=Qn(a);this.af=s(a.pixelRatio)?a.pixelRatio:Ad;this.kd=b.ol3Logo;this.o=new yj(this.ni,void 0,this);Od(this,this.o);this.Dc=kd();this.cf=kd();this.jd=0;this.n=this.N=this.ca=this.d=null;this.b=vc("DIV","ol-viewport");this.b.style.position="relative";this.b.style.overflow="hidden";this.b.style.width="100%";this.b.style.height="100%";this.b.style.msTouchAction="none";Hd&&(this.b.className="ol-touch");this.Ua=vc("DIV","ol-overlaycontainer");this.b.appendChild(this.Ua);
|
|
this.t=vc("DIV","ol-overlaycontainer-stopevent");x(this.t,["click","dblclick","mousedown","touchstart","MSPointerDown",Xf,"mousewheel"],Rd);this.b.appendChild(this.t);a=new Pf(this);x(a,fc($f),this.Be,!1,this);Od(this,a);this.ia=b.keyboardEventTarget;this.p=new Ij;x(this.p,"key",this.qe,!1,this);Od(this,this.p);a=new Qj(this.b);x(a,"mousewheel",this.qe,!1,this);Od(this,a);this.g=b.controls;this.hd=b.deviceOptions;this.i=b.interactions;this.k=b.overlays;this.ga=new b.pi(this.b,this);Od(this,this.ga);
|
|
this.df=new Ej;x(this.df,"resize",this.F,!1,this);this.W=null;this.r=[];this.va=[];this.ub=new Kk(xa(this.Pf,this),xa(this.sg,this));this.gb={};x(this,Qe("layergroup"),this.cg,!1,this);x(this,Qe("view"),this.tg,!1,this);x(this,Qe("size"),this.qg,!1,this);x(this,Qe("target"),this.rg,!1,this);this.J(b.Ai);this.g.forEach(function(a){a.setMap(this)},this);x(this.g,"add",function(a){a.element.setMap(this)},!1,this);x(this.g,"remove",function(a){a.element.setMap(null)},!1,this);this.i.forEach(function(a){a.setMap(this)},
|
|
this);x(this.i,"add",function(a){a.element.setMap(this)},!1,this);x(this.i,"remove",function(a){a.element.setMap(null)},!1,this);this.k.forEach(function(a){a.setMap(this)},this);x(this.k,"add",function(a){a.element.setMap(this)},!1,this);x(this.k,"remove",function(a){a.element.setMap(null)},!1,this)}v(S,Me);l=S.prototype;l.ef=function(a){this.g.push(a)};l.ff=function(a){this.i.push(a)};l.gf=function(a){this.mb().Tb().push(a)};l.hf=function(a){this.k.push(a)};
|
|
l.ya=function(a){this.U();Array.prototype.push.apply(this.r,arguments)};l.H=function(){Ec(this.b);S.K.H.call(this)};l.Dd=function(a,b,c,d,e){if(null!==this.d){a=this.Ba(a);a:{var f=this.ga,g=this.d;c=s(c)?c:null;d=s(d)?d:Ae;e=s(e)?e:null;var h=f.f.mb().Oc(),m=g.view2DState.resolution,n;for(n=h.length-1;0<=n;--n){var p=h[n],q=p.layer;if(p.visible&&(m>=p.minResolution&&m<p.maxResolution)&&d.call(e,q)&&(p=Ck(f,q).f(a,g,b,c))){b=p;break a}}b=void 0}return b}};l.ke=function(a){return this.Ba(this.sd(a))};
|
|
l.sd=function(a){if(s(a.changedTouches)){a=a.changedTouches.item(0);var b=Sc(this.b);return[a.clientX-b.x,a.clientY-b.y]}a=Rc(a,this.b);return[a.x,a.y]};l.tc=function(){return this.get("target")};S.prototype.getTarget=S.prototype.tc;l=S.prototype;l.Ba=function(a){var b=this.d;if(null===b)return null;a=a.slice();return zk(b.Ke,a,a)};l.xf=k("g");l.Kf=k("k");l.Cf=k("i");l.mb=function(){return this.get("layergroup")};S.prototype.getLayerGroup=S.prototype.mb;S.prototype.bf=function(){var a=this.mb();if(s(a))return a.Tb()};
|
|
S.prototype.f=function(a){var b=this.d;if(null===b)return null;a=a.slice(0,2);return zk(b.be,a,a)};S.prototype.e=function(){return this.get("size")};S.prototype.getSize=S.prototype.e;S.prototype.a=function(){return this.get("view")};S.prototype.getView=S.prototype.a;l=S.prototype;l.Rf=k("b");l.Pf=function(a,b,c,d){var e=this.d;if(!(null!==e&&b in e.Zb&&e.Zb[b][a.a.toString()]))return Infinity;a=c[0]-e.focus[0];c=c[1]-e.focus[1];return 65536*Math.log(d)+Math.sqrt(a*a+c*c)/d};
|
|
l.qe=function(a,b){var c=new Nf(b||a.type,this,a);this.Be(c)};l.Be=function(a){if(null!==this.d){this.W=a.coordinate;a.frameState=this.d;var b=this.i.a,c;if(!1!==A(this,a))for(c=b.length-1;0<=c&&b[c].Fa(a);c--);}};
|
|
l.ng=function(){var a=this.d,b=this.ub;if(!b.ma()){var c=16,d=c,e=0;if(null!==a){var e=a.aa,f=this.hd;e[0]&&(c=!1===f.loadTilesWhileAnimating?0:8,d=2);e[1]&&(c=!1===f.loadTilesWhileInteracting?0:8,d=2);e=ec(a.Zb)}c*=e;d*=e;if(b.d<c){Jk(b);c=Math.min(c-b.d,d,b.La());for(d=0;d<c;++d)e=Gk(b)[0],oe(e,"change",b.i,!1,b),0==e.state&&(e.state=1,e.e=[oe(e.c,"error",e.n,!1,e),oe(e.c,"load",e.q,!1,e)],e.o(e,e.g));b.d+=c}}b=this.va;c=0;for(d=b.length;c<d;++c)b[c](this,a);b.length=0};l.qg=function(){this.U()};
|
|
l.rg=function(){var a=this.tc(),a=s(a)?rc(a):null;Pj(this.p);null===a?Ec(this.b):(a.appendChild(this.b),Jj(this.p,null===this.ia?a:this.ia));this.F()};l.sg=function(){this.U()};l.ug=function(){this.U()};l.tg=function(){null!==this.N&&(re(this.N),this.N=null);var a=this.a();null!=a&&(this.N=x(a,"propertychange",this.ug,!1,this));this.U()};l.dg=function(){this.U()};l.eg=function(){this.U()};
|
|
l.cg=function(){if(null!==this.n){for(var a=this.n.length,b=0;b<a;++b)re(this.n[b]);this.n=null}a=this.mb();null!=a&&(this.n=[x(a,"propertychange",this.eg,!1,this),x(a,"change",this.dg,!1,this)]);this.U()};l.oi=function(){var a=this.o;zj(a);a.de()};l.U=function(){null!=this.o.ba||this.o.start()};l.ii=function(a){if(s(this.g.remove(a)))return a};l.ki=function(a){var b;s(this.i.remove(a))&&(b=a);return b};l.li=function(a){return this.mb().Tb().remove(a)};l.mi=function(a){if(s(this.k.remove(a)))return a};
|
|
l.ni=function(a){var b,c,d,e=this.e();b=this.a();var f=s(b)?this.a().$():void 0,g=null;if(s(e)&&0<e[0]&&0<e[1]&&s(f)&&f.Cd()){var g=Db(b.n),h=this.mb().Oc(),m={};b=0;for(c=h.length;b<c;++b)m[sa(h[b].layer)]=h[b];d=vh(f);g={xa:!1,attributions:{},be:this.Dc,extent:null,focus:null===this.W?d.center:this.W,index:this.jd++,yd:m,Yc:h,Bd:{},pixelRatio:this.af,Ke:this.cf,rb:[],size:e,gb:this.gb,ui:this.ub,time:a,Ac:{},view2DState:d,aa:g,Zb:{}};this.kd&&(g.Bd["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAAHGAAABxgEXwfpGAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAhNQTFRF////AP//AICAgP//AFVVQECA////K1VVSbbbYL/fJ05idsTYJFtbbcjbJllmZszWWMTOIFhoHlNiZszTa9DdUcHNHlNlV8XRIVdiasrUHlZjIVZjaMnVH1RlIFRkH1RkH1ZlasvYasvXVsPQH1VkacnVa8vWIVZjIFRjVMPQa8rXIVVkXsXRsNveIFVkIFZlIVVj3eDeh6GmbMvXH1ZkIFRka8rWbMvXIFVkIFVjIFVkbMvWH1VjbMvWIFVlbcvWIFVla8vVIFVkbMvWbMvVH1VkbMvWIFVlbcvWIFVkbcvVbMvWjNPbIFVkU8LPwMzNIFVkbczWIFVkbsvWbMvXIFVkRnB8bcvW2+TkW8XRIFVkIlZlJVloJlpoKlxrLl9tMmJwOWd0Omh1RXF8TneCT3iDUHiDU8LPVMLPVcLPVcPQVsPPVsPQV8PQWMTQWsTQW8TQXMXSXsXRX4SNX8bSYMfTYcfTYsfTY8jUZcfSZsnUaIqTacrVasrVa8jTa8rWbI2VbMvWbcvWdJObdcvUdszUd8vVeJaee87Yfc3WgJyjhqGnitDYjaarldPZnrK2oNbborW5o9bbo9fbpLa6q9ndrL3ArtndscDDutzfu8fJwN7gwt7gxc/QyuHhy+HizeHi0NfX0+Pj19zb1+Tj2uXk29/e3uLg3+Lh3+bl4uXj4ufl4+fl5Ofl5ufl5ujm5+jmySDnBAAAAFp0Uk5TAAECAgMEBAYHCA0NDg4UGRogIiMmKSssLzU7PkJJT1JTVFliY2hrdHZ3foSFhYeJjY2QkpugqbG1tre5w8zQ09XY3uXn6+zx8vT09vf4+Pj5+fr6/P39/f3+gz7SsAAAAVVJREFUOMtjYKA7EBDnwCPLrObS1BRiLoJLnte6CQy8FLHLCzs2QUG4FjZ5GbcmBDDjxJBXDWxCBrb8aM4zbkIDzpLYnAcE9VXlJSWlZRU13koIeW57mGx5XjoMZEUqwxWYQaQbSzLSkYGfKFSe0QMsX5WbjgY0YS4MBplemI4BdGBW+DQ11eZiymfqQuXZIjqwyadPNoSZ4L+0FVM6e+oGI6g8a9iKNT3o8kVzNkzRg5lgl7p4wyRUL9Yt2jAxVh6mQCogae6GmflI8p0r13VFWTHBQ0rWPW7ahgWVcPm+9cuLoyy4kCJDzCm6d8PSFoh0zvQNC5OjDJhQopPPJqph1doJBUD5tnkbZiUEqaCnB3bTqLTFG1bPn71kw4b+GFdpLElKIzRxxgYgWNYc5SCENVHKeUaltHdXx0dZ8uBI1hJ2UUDgq82CM2MwKeibqAvSO7MCABq0wXEPiqWEAAAAAElFTkSuQmCC"]=
|
|
"http://ol3js.org/")}a=this.r;b=e=0;for(c=a.length;b<c;++b)f=a[b],f(this,g)&&(a[e++]=f);a.length=e;null!==g&&(g.extent=Hg(d.center,d.resolution,d.rotation,g.size));this.d=g;this.ga.dd(g);null!==g&&(g.xa&&this.U(),Array.prototype.push.apply(this.va,g.rb),0!==this.r.length||(g.aa[0]||g.aa[1]||this.ca&&Cg(g.extent,this.ca))||(A(this,new df("moveend",this,g)),this.ca=yg(g.extent)));A(this,new df("postrender",this,g));b=d=this.ng;this&&(b=xa(d,this));qa(ea.setImmediate)?ea.setImmediate(b):(Cj||(Cj=Dj()),
|
|
Cj(b))};l.Te=function(a){this.s("layergroup",a)};S.prototype.setLayerGroup=S.prototype.Te;S.prototype.D=function(a){this.s("size",a)};S.prototype.setSize=S.prototype.D;S.prototype.Va=function(a){this.s("target",a)};S.prototype.setTarget=S.prototype.Va;S.prototype.Ka=function(a){this.s("view",a)};S.prototype.setView=S.prototype.Ka;S.prototype.hb=function(a){a=sa(a).toString();this.gb[a]=!0;this.U()};
|
|
S.prototype.F=function(){var a=this.tc(),a=s(a)?rc(a):null;null===a?this.D(void 0):(a=$c(a),this.D([a.width,a.height]))};S.prototype.$b=function(a){a=sa(a).toString();delete this.gb[a];this.U()};
|
|
function Qn(a){var b=null;s(a.keyboardEventTarget)&&(b=na(a.keyboardEventTarget)?document.getElementById(a.keyboardEventTarget):a.keyboardEventTarget);var c={},d=s(a.ol3Logo)?a.ol3Logo:!0,e=a.layers instanceof N?a.layers:new N({layers:a.layers});c.layergroup=e;c.target=a.target;c.view=s(a.view)?a.view:new G;var e=Ak,f;s(a.renderer)?la(a.renderer)?f=a.renderer:na(a.renderer)&&(f=[a.renderer]):f=Pn;var g,h;g=0;for(h=f.length;g<h;++g){var m=f[g];if("canvas"==m){if(Dd){e=Rm;break}}else if("dom"==m){e=
|
|
an;break}else if("webgl"==m&&Kd){e=Mn;break}}f=s(a.controls)?la(a.controls)?new C(Db(a.controls)):a.controls:Rk();g=s(a.deviceOptions)?a.deviceOptions:{};h=s(a.interactions)?la(a.interactions)?new C(Db(a.interactions)):a.interactions:cl();a=s(a.overlays)?la(a.overlays)?new C(Db(a.overlays)):a.overlays:new C;return{controls:f,deviceOptions:g,interactions:h,keyboardEventTarget:b,ol3Logo:d,overlays:a,pi:e,Ai:c}}il();function Rn(a,b){Qd.call(this,a);this.feature=b}v(Rn,Qd);
|
|
function Sn(a){Hh.call(this);this.t=null;this.F=s(a.source)?a.source:null;this.r=s(a.features)?a.features:null;this.ea=s(a.snapTolerance)?a.snapTolerance:12;this.N=s(a.minPointsPerRing)?a.minPointsPerRing:3;var b=this.o=a.type,c;if("Point"===b||"MultiPoint"===b)c=Tn;else if("LineString"===b||"MultiLineString"===b)c=Un;else if("Polygon"===b||"MultiPolygon"===b)c=Vn;this.a=c;this.d=this.k=this.n=this.e=this.f=null;this.ca=4;this.p=new Ri({style:s(a.style)?a.style:Wn()});this.D=a.geometryName;this.W=
|
|
s(a.condition)?a.condition:cg}v(Sn,Hh);function Wn(){var a=Qi();return function(b){return a[b.Q().I()]}}Sn.prototype.setMap=function(a){null===a&&Xn(this);this.p.setMap(a);Sn.K.setMap.call(this,a)};Sn.prototype.Fa=function(a){var b;b=a.map;if(Gc(document,b.b)&&"none"!=b.b.style.display){var c=b.e();null==c||0>=c[0]||0>=c[1]?b=!1:(b=b.a(),b=s(b)&&b.Cd()?!0:!1)}else b=!1;if(!b)return!0;b=!0;a.type===Yf?b=Yn(this,a):a.type===Sf&&(b=!1);return Sn.K.Fa.call(this,a)&&b};
|
|
Sn.prototype.bb=function(a){return this.W(a)?(this.t=a.pixel,!0):!1};
|
|
Sn.prototype.cb=function(a){var b=this.t,c=a.pixel,d=b[0]-c[0],b=b[1]-c[1],c=!0;if(d*d+b*b<=this.ca){Yn(this,a);if(null===this.f)Zn(this,a);else if(this.a===Tn||$n(this,a)){a=Xn(this);var e,d=a.Q();this.a===Tn?e=d.G():this.a===Un?(e=d.G(),e.pop(),d.R(e)):this.a===Vn&&(this.d[0].pop(),this.d[0].push(this.d[0][0]),d.R(this.d),e=d.G());"MultiPoint"===this.o?a.fb(new om([e])):"MultiLineString"===this.o?a.fb(new lm([e])):"MultiPolygon"===this.o&&a.fb(new pm([e]));null===this.r||this.r.push(a);null===this.F||
|
|
this.F.Gd(a);A(this,new Rn("drawend",a))}else e=a.coordinate,a=this.e.Q(),this.a===Un?(this.f=e.slice(),d=a.G(),d.push(e.slice()),a.R(d)):this.a===Vn&&(this.d[0].push(e.slice()),a.R(this.d)),ao(this);c=!1}return c};
|
|
function Yn(a,b){if(a.a===Tn&&null===a.f)Zn(a,b);else if(null!==a.f){var c=b.coordinate,d=a.e.Q(),e,f;a.a===Tn?(f=d.G(),f[0]=c[0],f[1]=c[1],d.R(f)):(a.a===Un?e=d.G():a.a===Vn&&(e=a.d[0]),$n(a,b)&&(c=a.f.slice()),a.n.Q().R(c),f=e[e.length-1],f[0]=c[0],f[1]=c[1],a.a===Un?d.R(e):a.a===Vn&&(a.k.Q().R(e),d.R(a.d)));ao(a)}return!0}
|
|
function $n(a,b){var c=!1;if(null!==a.e){var d=a.e.Q(),e=!1,f=[a.f];a.a===Un?e=2<d.G().length:a.a===Vn&&(e=d.G()[0].length>a.N,f=[a.d[0][0],a.d[0][a.d[0].length-2]]);if(e)for(var d=b.map,e=0,g=f.length;e<g;e++){var h=f[e],m=d.f(h),n=b.pixel,c=n[0]-m[0],m=n[1]-m[1];if(c=Math.sqrt(c*c+m*m)<=a.ea){a.f=h;break}}}return c}
|
|
function Zn(a,b){var c=b.coordinate;a.f=c;var d;a.a===Tn?d=new hi(c.slice()):(a.n=new I(new hi(c.slice())),a.a===Un?d=new jm([c.slice(),c.slice()]):a.a===Vn&&(a.k=new I(new jm([c.slice(),c.slice()])),a.d=[[c.slice(),c.slice()]],d=new H(a.d)));a.e=new I;s(a.D)&&a.e.e(a.D);a.e.fb(d);ao(a);A(a,new Rn("drawstart",a.e))}function Xn(a){a.f=null;var b=a.e;null!==b&&(a.e=null,a.n=null,a.k=null,a.p.a.clear());return b}
|
|
function ao(a){var b=[a.e];null===a.k||b.push(a.k);null===a.n||b.push(a.n);a.p.yc(new C(b))}var Tn="Point",Un="LineString",Vn="Polygon";var bo=new Sg(6378137);function U(a){Me.call(this);a=s(a)?a:{};this.a=null;this.d=sh;this.b=void 0;x(this,Qe("projection"),this.Xg,!1,this);x(this,Qe("tracking"),this.Yg,!1,this);s(a.projection)&&this.k(qh(a.projection));s(a.trackingOptions)&&this.n(a.trackingOptions);this.e(s(a.tracking)?a.tracking:!1)}v(U,Me);l=U.prototype;l.H=function(){this.e(!1);U.K.H.call(this)};l.Xg=function(){var a=this.i();null!=a&&(this.d=$g(qh("EPSG:4326"),a),null===this.a||this.s("position",this.d(this.a)))};
|
|
l.Yg=function(){if(Fd){var a=this.g();a&&!s(this.b)?this.b=ea.navigator.geolocation.watchPosition(xa(this.di,this),xa(this.ei,this),this.f()):!a&&s(this.b)&&(ea.navigator.geolocation.clearWatch(this.b),this.b=void 0)}};
|
|
l.di=function(a){a=a.coords;this.s("accuracy",a.accuracy);this.s("altitude",null===a.altitude?void 0:a.altitude);this.s("altitudeAccuracy",null===a.altitudeAccuracy?void 0:a.altitudeAccuracy);this.s("heading",null===a.heading?void 0:Zb(a.heading));null===this.a?this.a=[a.longitude,a.latitude]:(this.a[0]=a.longitude,this.a[1]=a.latitude);var b=this.d(this.a);this.s("position",b);this.s("speed",null===a.speed?void 0:a.speed);a=si(bo,this.a,a.accuracy);a.vb(this.d);this.s("accuracyGeometry",a);this.l()};
|
|
l.ei=function(a){a.type="error";A(this,a)};l.ie=function(){return this.get("accuracy")};U.prototype.getAccuracy=U.prototype.ie;U.prototype.o=function(){return this.get("accuracyGeometry")||null};U.prototype.getAccuracyGeometry=U.prototype.o;U.prototype.p=function(){return this.get("altitude")};U.prototype.getAltitude=U.prototype.p;U.prototype.t=function(){return this.get("altitudeAccuracy")};U.prototype.getAltitudeAccuracy=U.prototype.t;U.prototype.D=function(){return this.get("heading")};
|
|
U.prototype.getHeading=U.prototype.D;U.prototype.F=function(){return this.get("position")};U.prototype.getPosition=U.prototype.F;U.prototype.i=function(){return this.get("projection")};U.prototype.getProjection=U.prototype.i;U.prototype.r=function(){return this.get("speed")};U.prototype.getSpeed=U.prototype.r;U.prototype.g=function(){return this.get("tracking")};U.prototype.getTracking=U.prototype.g;U.prototype.f=function(){return this.get("trackingOptions")};U.prototype.getTrackingOptions=U.prototype.f;
|
|
U.prototype.k=function(a){this.s("projection",a)};U.prototype.setProjection=U.prototype.k;U.prototype.e=function(a){this.s("tracking",a)};U.prototype.setTracking=U.prototype.e;U.prototype.n=function(a){this.s("trackingOptions",a)};U.prototype.setTrackingOptions=U.prototype.n;function co(a,b,c,d,e){Zj.call(this,a,b);this.g=c;this.c=new Image;null!==d&&(this.c.crossOrigin=d);this.f={};this.e=null;this.o=e}v(co,Zj);co.prototype.b=function(a){if(s(a)){var b=sa(a);if(b in this.f)return this.f[b];a=hc(this.f)?this.c:this.c.cloneNode(!1);return this.f[b]=a}return this.c};co.prototype.d=k("g");co.prototype.n=function(){this.state=3;wb(this.e,re);this.e=null;A(this,"change")};
|
|
co.prototype.q=function(){s(this.c.naturalWidth)||(this.c.naturalWidth=this.c.width,this.c.naturalHeight=this.c.height);this.state=this.c.naturalWidth&&this.c.naturalHeight?2:4;wb(this.e,re);this.e=null;A(this,"change")};function V(a){Me.call(this);this.o=s(a.insertFirst)?a.insertFirst:!0;this.r=s(a.stopEvent)?a.stopEvent:!0;this.p=s(a.offsetX)?a.offsetX:0;this.t=s(a.offsetY)?a.offsetY:0;this.b=zc("DIV");this.b.style.position="absolute";this.a={Ec:"",Zc:"",ed:"",gd:"",visible:!0};this.d=null;x(this,Qe("element"),this.Xf,!1,this);x(this,Qe("map"),this.ig,!1,this);x(this,Qe("position"),this.lg,!1,this);x(this,Qe("positioning"),this.mg,!1,this);s(a.element)&&this.Qd(a.element);s(a.position)&&this.k(a.position);s(a.positioning)&&
|
|
this.n(a.positioning)}v(V,Me);V.prototype.i=function(){return this.get("element")};V.prototype.getElement=V.prototype.i;V.prototype.e=function(){return this.get("map")};V.prototype.getMap=V.prototype.e;V.prototype.g=function(){return this.get("position")};V.prototype.getPosition=V.prototype.g;V.prototype.f=function(){return this.get("positioning")};V.prototype.getPositioning=V.prototype.f;l=V.prototype;l.Xf=function(){Bc(this.b);var a=this.i();null!=a&&Ac(this.b,a)};
|
|
l.ig=function(){null!==this.d&&(Ec(this.b),re(this.d),this.d=null);var a=this.e();null!=a&&(this.d=x(a,"postrender",this.$g,!1,this),eo(this),a=this.r?a.t:a.Ua,this.o?Dc(a,this.b,0):Ac(a,this.b))};l.$g=function(){eo(this)};l.lg=function(){eo(this)};l.mg=function(){eo(this)};l.Qd=function(a){this.s("element",a)};V.prototype.setElement=V.prototype.Qd;V.prototype.setMap=function(a){this.s("map",a)};V.prototype.setMap=V.prototype.setMap;V.prototype.k=function(a){this.s("position",a)};
|
|
V.prototype.setPosition=V.prototype.k;V.prototype.n=function(a){this.s("positioning",a)};V.prototype.setPositioning=V.prototype.n;
|
|
function eo(a){var b=a.e(),c=a.g();if(s(b)&&null!==b.d&&s(c)){var c=b.f(c),d=b.e(),b=a.b.style,e=a.f();if("bottom-right"==e||"center-right"==e||"top-right"==e){""!==a.a.Zc&&(a.a.Zc=b.left="");var f=Math.round(d[0]-c[0])+"px";a.a.ed!=f&&(a.a.ed=b.right=f)}else{""!==a.a.ed&&(a.a.ed=b.right="");f=-a.p;if("bottom-center"==e||"center-center"==e||"top-center"==e)f+=Vc(a.b).width/2;f=Math.round(c[0]-f)+"px";a.a.Zc!=f&&(a.a.Zc=b.left=f)}if("bottom-left"==e||"bottom-center"==e||"bottom-right"==e)""!==a.a.gd&&
|
|
(a.a.gd=b.top=""),c=Math.round(d[1]-c[1])+"px",a.a.Ec!=c&&(a.a.Ec=b.bottom=c);else{""!==a.a.Ec&&(a.a.Ec=b.bottom="");d=-a.t;if("center-left"==e||"center-center"==e||"center-right"==e)d+=Vc(a.b).height/2;c=Math.round(c[1]-d)+"px";a.a.gd!=c&&(a.a.gd=b.top=c)}a.a.visible||(Yc(a.b,!0),a.a.visible=!0)}else a.a.visible&&(Yc(a.b,!1),a.a.visible=!1)};var fo=cb?"webkitfullscreenchange":bb?"mozfullscreenchange":ab?"MSFullscreenChange":"fullscreenchange";function go(){var a=oc().a,b=a.body;return!!(b.webkitRequestFullscreen||b.mozRequestFullScreen&&a.mozFullScreenEnabled||b.msRequestFullscreen&&a.msFullscreenEnabled||b.requestFullscreen&&a.fullscreenEnabled)}
|
|
function ho(a){a.webkitRequestFullscreen?a.webkitRequestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.msRequestFullscreen?a.msRequestFullscreen():a.requestFullscreen&&a.requestFullscreen()}function io(){var a=oc().a;return!!(a.webkitIsFullScreen||a.mozFullScreen||a.msFullscreenElement||a.fullscreenElement)};function jo(a){a=s(a)?a:{};this.e=s(a.className)?a.className:"ol-full-screen";var b=vc("SPAN",{role:"tooltip"},s(a.tipLabel)?a.tipLabel:"Toggle full-screen"),c=vc("BUTTON",{"class":this.e+"-"+io()+" ol-has-tooltip"});c.appendChild(b);b=new Gf(c);Od(this,b);x(b,sf,this.n,!1,this);x(c,"click",this.k,!1,this);x(c,["mouseout",Wd],function(){this.blur()},!1);x(ea.document,fo,this.f,!1,this);b=this.e+" ol-unselectable ol-control"+(go()?"":"ol-unsupported");c=vc("DIV",b,c);M.call(this,{element:c,target:a.target});
|
|
this.g=s(a.keys)?a.keys:!1}v(jo,M);jo.prototype.k=function(a){0!==a.screenX&&0!==a.screenY||ko(this)};jo.prototype.n=function(a){a.a.preventDefault();ko(this)};
|
|
function ko(a){if(go()){var b=a.a;null!==b&&(io()?(a=oc().a,a.webkitCancelFullScreen?a.webkitCancelFullScreen():a.mozCancelFullScreen?a.mozCancelFullScreen():a.msExitFullscreen?a.msExitFullscreen():a.exitFullscreen&&a.exitFullscreen()):(b=b.tc(),b=rc(b),a.g?b.mozRequestFullScreenWithKeys?b.mozRequestFullScreenWithKeys():b.webkitRequestFullscreen?b.webkitRequestFullscreen():ho(b):ho(b)))}}
|
|
jo.prototype.f=function(){var a=this.e+"-true",b=this.e+"-false",c=Fc(this.element),d=this.a;io()?Wb(c,b,a):Wb(c,a,b);null===d||d.F()};function W(a){a=s(a)?a:{};var b=vc("DIV",{"class":s(a.className)?a.className:"ol-mouse-position"});M.call(this,{element:b,target:a.target});x(this,Qe("projection"),this.N,!1,this);s(a.coordinateFormat)&&this.t(a.coordinateFormat);s(a.projection)&&this.p(qh(a.projection));this.W=s(a.undefinedHTML)?a.undefinedHTML:"";this.n=b.innerHTML;this.g=this.f=this.e=null}v(W,M);
|
|
W.prototype.d=function(a){a=a.frameState;null===a?this.e=null:this.e!=a.view2DState.projection&&(this.e=a.view2DState.projection,this.f=null);lo(this,this.g)};W.prototype.N=function(){this.f=null};W.prototype.k=function(){return this.get("coordinateFormat")};W.prototype.getCoordinateFormat=W.prototype.k;W.prototype.o=function(){return this.get("projection")};W.prototype.getProjection=W.prototype.o;W.prototype.D=function(a){a=Rc(a,this.a.b);this.g=[a.x,a.y];lo(this,this.g)};
|
|
W.prototype.F=function(){lo(this,null);this.g=null};W.prototype.setMap=function(a){W.K.setMap.call(this,a);null!==a&&(a=a.b,this.i.push(x(a,"mousemove",this.D,!1,this),x(a,"mouseout",this.F,!1,this)))};W.prototype.t=function(a){this.s("coordinateFormat",a)};W.prototype.setCoordinateFormat=W.prototype.t;W.prototype.p=function(a){this.s("projection",a)};W.prototype.setProjection=W.prototype.p;
|
|
function lo(a,b){var c=a.W;if(null!==b&&null!==a.e){if(null===a.f){var d=a.o();a.f=s(d)?$g(a.e,d):sh}d=a.a.Ba(b);null!==d&&(a.f(d,d),c=a.k(),c=s(c)?c(d):d.toString())}s(a.n)&&c==a.n||(a.element.innerHTML=c,a.n=c)};function mo(a){a=s(a)?a:{};var b=s(a.className)?a.className:"ol-scale-line";this.g=vc("DIV",{"class":b+"-inner"});this.n=vc("DIV",{"class":b+" ol-unselectable"},this.g);this.t=null;this.k=s(a.minWidth)?a.minWidth:64;this.f=!1;this.F=void 0;this.D="";this.e=null;M.call(this,{element:this.n,target:a.target});x(this,Qe("units"),this.N,!1,this);this.p(a.units||"metric")}v(mo,M);var no=[1,2,5];mo.prototype.o=function(){return this.get("units")};mo.prototype.getUnits=mo.prototype.o;
|
|
mo.prototype.d=function(a){a=a.frameState;null===a?this.t=null:this.t=a.view2DState;oo(this)};mo.prototype.N=function(){oo(this)};mo.prototype.p=function(a){this.s("units",a)};mo.prototype.setUnits=mo.prototype.p;
|
|
function oo(a){var b=a.t;if(null===b)a.f&&(Yc(a.n,!1),a.f=!1);else{var c=b.center,d=b.projection,b=d.d(b.resolution,c),e=d.Ja,f=a.o();"degrees"!=e||"metric"!=f&&"imperial"!=f?"ft"!=e&&"m"!=e||"degrees"!=f?a.e=null:(null===a.e&&(a.e=$g(d,qh("EPSG:4326"))),c=Math.cos(Zb(a.e(c)[1])),d=Ug.radius,"ft"==e&&(d/=0.3048),b*=180/(Math.PI*c*d)):(a.e=null,c=Math.cos(Zb(c[1])),b*=Math.PI*c*Ug.radius/180);c=a.k*b;e="";"degrees"==f?c<1/60?(e="\u2033",b*=3600):1>c?(e="\u2032",b*=60):e="\u00b0":"imperial"==f?0.9144>
|
|
c?(e="in",b/=0.0254):1609.344>c?(e="ft",b/=0.3048):(e="mi",b/=1609.344):"nautical"==f?(b/=1852,e="nm"):"metric"==f?1>c?(e="mm",b*=1E3):1E3>c?e="m":(e="km",b/=1E3):"us"==f&&(0.9144>c?(e="in",b*=39.37):1609.344>c?(e="ft",b/=0.30480061):(e="mi",b/=1609.3472));for(var f=3*Math.floor(Math.log(a.k*b)/Math.log(10)),g,h;;){g=no[f%3]*Math.pow(10,Math.floor(f/3));h=Math.round(g/b);if(h>=a.k)break;++f}g=g+e;a.D!=g&&(a.g.innerHTML=g,a.D=g);a.F!=h&&(a.g.style.width=h+"px",a.F=h);a.f||(Yc(a.n,!0),a.f=!0)}};function po(a){Ld.call(this);this.c=a;this.a={}}v(po,Ld);var qo=[];po.prototype.qa=function(a,b,c,d,e){la(b)||(qo[0]=b,b=qo);for(var f=0;f<b.length;f++){var g=x(a,b[f],c||this,d||!1,e||this.c||this);this.a[g.key]=g}return this};
|
|
po.prototype.Sd=function(a,b,c,d,e){if(la(b))for(var f=0;f<b.length;f++)this.Sd(a,b[f],c,d,e);else{a:if(e=e||this.c||this,d=!!d,c=ke(c||this),ce(a))a=a.ja.a[b],b=-1,a&&(b=Ge(a,c,d,e)),e=-1<b?a[b]:null;else{if(a=qe(a,b,d))for(b=0;b<a.length;b++)if(!a[b].eb&&a[b].Qa==c&&a[b].capture==d&&a[b].Bb==e){e=a[b];break a}e=null}e&&(re(e),delete this.a[e.key])}return this};function ro(a){cc(a.a,re);a.a={}}po.prototype.H=function(){po.K.H.call(this);ro(this)};
|
|
po.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function so(a,b,c){He.call(this);this.target=a;this.handle=b||a;this.c=c||new Jc(NaN,NaN,NaN,NaN);this.b=qc(a);this.a=new po(this);Od(this,this.a);x(this.handle,["touchstart","mousedown"],this.Ue,!1,this)}v(so,He);var to=ab||bb&&ob("1.9.3");l=so.prototype;l.clientX=0;l.clientY=0;l.screenX=0;l.screenY=0;l.Ve=0;l.We=0;l.Qb=0;l.Rb=0;l.fe=!0;l.xb=!1;l.se=0;l.zg=0;l.vg=!1;l.Ud=!1;
|
|
l.H=function(){so.K.H.call(this);pe(this.handle,["touchstart","mousedown"],this.Ue,!1,this);ro(this.a);to&&this.b.releaseCapture();this.handle=this.target=null};function uo(a){s(a.e)||(a.e=Zc(a.target));return a.e}
|
|
l.Ue=function(a){var b="mousedown"==a.type;if(!this.fe||this.xb||b&&!ae(a))A(this,"earlycancel");else{vo(a);if(0==this.se)if(A(this,new wo("start",this,a.clientX,a.clientY,a)))this.xb=!0,a.preventDefault();else return;else a.preventDefault();var b=this.b,c=b.documentElement,d=!to;this.a.qa(b,["touchmove","mousemove"],this.jg,d);this.a.qa(b,["touchend","mouseup"],this.Jc,d);to?(c.setCapture(!1),this.a.qa(c,"losecapture",this.Jc)):this.a.qa(b?b.parentWindow||b.defaultView:window,"blur",this.Jc);ab&&
|
|
this.vg&&this.a.qa(b,"dragstart",Sd);this.f&&this.a.qa(this.f,"scroll",this.Wh,d);this.clientX=this.Ve=a.clientX;this.clientY=this.We=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.Ud?(a=this.target,b=a.offsetLeft,c=a.offsetParent,c||"fixed"!=Lc(a,"position")||(c=qc(a).documentElement),c?(bb?(d=cd(c),b+=d.left):ab&&8<=qb&&(d=cd(c),b-=d.left),a=Zc(c)?c.clientWidth-(b+a.offsetWidth):b):a=b):a=this.target.offsetLeft;this.Qb=a;this.Rb=this.target.offsetTop;this.d=Hc(oc(this.b));this.zg=
|
|
Aa()}};l.Jc=function(a,b){ro(this.a);to&&this.b.releaseCapture();if(this.xb){vo(a);this.xb=!1;var c=xo(this,this.Qb),d=yo(this,this.Rb);A(this,new wo("end",this,a.clientX,a.clientY,a,c,d,b||"touchcancel"==a.type))}else A(this,"earlycancel")};function vo(a){var b=a.type;"touchstart"==b||"touchmove"==b?Zd(a,a.P.targetTouches[0],a.c):"touchend"!=b&&"touchcancel"!=b||Zd(a,a.P.changedTouches[0],a.c)}
|
|
l.jg=function(a){if(this.fe){vo(a);var b=(this.Ud&&uo(this)?-1:1)*(a.clientX-this.clientX),c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.xb){var d=this.Ve-this.clientX,e=this.We-this.clientY;if(d*d+e*e>this.se)if(A(this,new wo("start",this,a.clientX,a.clientY,a)))this.xb=!0;else{this.Ta||this.Jc(a);return}}c=zo(this,b,c);b=c.x;c=c.y;this.xb&&A(this,new wo("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(Ao(this,a,b,c),
|
|
a.preventDefault())}};function zo(a,b,c){var d=Hc(oc(a.b));b+=d.x-a.d.x;c+=d.y-a.d.y;a.d=d;a.Qb+=b;a.Rb+=c;b=xo(a,a.Qb);a=yo(a,a.Rb);return new $b(b,a)}l.Wh=function(a){var b=zo(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;Ao(this,a,b.x,b.y)};function Ao(a,b,c,d){a.Ud&&uo(a)?a.target.style.right=c+"px":a.target.style.left=c+"px";a.target.style.top=d+"px";A(a,new wo("drag",a,b.clientX,b.clientY,b,c,d))}
|
|
function xo(a,b){var c=a.c,d=isNaN(c.left)?null:c.left,c=isNaN(c.width)?0:c.width;return Math.min(null!=d?d+c:Infinity,Math.max(null!=d?d:-Infinity,b))}function yo(a,b){var c=a.c,d=isNaN(c.top)?null:c.top,c=isNaN(c.height)?0:c.height;return Math.min(null!=d?d+c:Infinity,Math.max(null!=d?d:-Infinity,b))}function wo(a,b,c,d,e,f,g,h){Qd.call(this,a);this.clientX=c;this.clientY=d;this.d=e;this.left=s(f)?f:b.Qb;this.top=s(g)?g:b.Rb;this.b=b;this.a=!!h}v(wo,Qd);function Bo(a){a=s(a)?a:{};this.e=void 0;this.g=Co;this.k=!1;var b=s(a.className)?a.className:"ol-zoomslider";a=vc("DIV",[b+"-thumb","ol-unselectable"]);b=vc("DIV",[b,"ol-unselectable"],a);this.f=new so(a);Od(this,this.f);x(this.f,["drag","end"],this.o,void 0,this);x(b,"click",this.n,!1,this);x(a,"click",Rd);M.call(this,{element:b})}v(Bo,M);var Co=0;Bo.prototype.setMap=function(a){Bo.K.setMap.call(this,a);null===a||a.U()};
|
|
Bo.prototype.d=function(a){if(null!==a.frameState){if(!this.k){var b=this.element,c=Fc(b),b=$c(b),d;d=Qc(c);var e=Vc(c);d=new Jc(d.x,d.y,e.width,e.height);var e=bd(c,"margin"),f=cd(c),c=b.width-e.left-e.right-f.left-f.right-d.width;d=b.height-e.top-e.bottom-f.top-f.bottom-d.height;b.width>b.height?(this.g=1,b=new Jc(0,0,c,0)):(this.g=Co,b=new Jc(0,0,0,d));this.f.c=b||new Jc(NaN,NaN,NaN,NaN);this.k=!0}a=a.frameState.view2DState.resolution;a!==this.e&&(this.e=a,a=-1*(uh(this.a.a().$())(a)-1),b=this.f,
|
|
c=Fc(this.element),1==this.g?Mc(c,b.c.left+b.c.width*a):Mc(c,b.c.left,b.c.top+b.c.height*a))}};Bo.prototype.n=function(a){var b=this.a,c=b.a().$();a=Do(this,Eo(this,a.offsetX,a.offsetY));b.ya(Ch({resolution:a,duration:200,easing:wh}));a=c.constrainResolution(a);c.d(a)};function Eo(a,b,c){var d=a.f.c,e=0;return e=1===a.g?(b-d.left)/d.width:(c-d.top)/d.height}function Do(a,b){b=-1*(Xb(b,0,1)-1);return th(a.a.a().$())(b)}
|
|
Bo.prototype.o=function(a){var b=this.a,c=b.a().$();"drag"===a.type?(a=Do(this,Eo(this,a.left,a.top)),a!==this.e&&(this.e=a,c.d(a))):(b.ya(Ch({resolution:this.e,duration:200,easing:wh})),a=c.constrainResolution(this.e),c.d(a))};function Fo(a){a=s(a)?a:{};this.e=s(a.extent)?a.extent:null;var b=s(a.className)?a.className:"ol-zoom-extent",c=vc("SPAN",{role:"tooltip"},s(a.tipLabel)?a.tipLabel:"Fit to extent"),d=vc("BUTTON",{"class":"ol-has-tooltip"});d.appendChild(c);c=new Gf(d);Od(this,c);x(c,sf,this.g,!1,this);x(d,"click",this.f,!1,this);x(d,["mouseout",Wd],function(){this.blur()},!1);b=vc("DIV",b+" ol-unselectable ol-control",d);M.call(this,{element:b,target:a.target})}v(Fo,M);
|
|
Fo.prototype.f=function(a){0!==a.screenX&&0!==a.screenY||Go(this)};Fo.prototype.g=function(a){a.a.preventDefault();Go(this)};function Go(a){var b=a.a,c=b.a().$();a=null===a.e?c.i().C():a.e;c.ge(a,b.e())};function Ho(a){Me.call(this);this.a=a;x(this.a,["change","input"],this.g,!1,this);x(this,Qe("value"),this.k,!1,this);x(this,Qe("checked"),this.i,!1,this)}v(Ho,Me);Ho.prototype.b=function(){return this.get("checked")};Ho.prototype.getChecked=Ho.prototype.b;Ho.prototype.d=function(){return this.get("value")};Ho.prototype.getValue=Ho.prototype.d;Ho.prototype.f=function(a){this.s("value",a)};Ho.prototype.setValue=Ho.prototype.f;Ho.prototype.e=function(a){this.s("checked",a)};Ho.prototype.setChecked=Ho.prototype.e;
|
|
Ho.prototype.g=function(){var a=this.a;"checkbox"===a.type||"radio"===a.type?this.e(a.checked):this.f(a.value)};Ho.prototype.i=function(){this.a.checked=this.b()};Ho.prototype.k=function(){this.a.value=this.d()};function Io(){};var Jo;a:if(document.implementation&&document.implementation.createDocument)Jo=document.implementation.createDocument("","",null);else{if("undefined"!=typeof ActiveXObject){var Ko=new ActiveXObject("MSXML2.DOMDocument");if(Ko){Ko.resolveExternals=!1;Ko.validateOnParse=!1;try{Ko.setProperty("ProhibitDTD",!0),Ko.setProperty("MaxXMLSize",2048),Ko.setProperty("MaxElementDepth",256)}catch(Lo){}}if(Ko){Jo=Ko;break a}}throw Error("Your browser does not support creating new documents");}var Mo=Jo;
|
|
function No(a,b){return Mo.createElementNS(a,b)}function Oo(a,b){null===a&&(a="");return Mo.createNode(1,b,a)}var Po=document.implementation&&document.implementation.createDocument?No:Oo;function Qo(a){return Ro(a,!1,[]).join("")}function Ro(a,b,c){if(4==a.nodeType||3==a.nodeType)b?c.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):c.push(a.nodeValue);else for(a=a.firstChild;null!==a;a=a.nextSibling)Ro(a,b,c);return c}function So(a){return a.localName}
|
|
function To(a){var b=a.localName;return s(b)?b:a.baseName}var Uo=ab?To:So;function Vo(a){return a instanceof Document}function Wo(a){return ra(a)&&9==a.nodeType}var Xo=ab?Wo:Vo;function Yo(a){return a instanceof Node}function Zo(a){return ra(a)&&s(a.nodeType)}var $o=ab?Zo:Yo;function ap(a,b,c){return a.getAttributeNS(b,c)||""}function bp(a,b,c){var d="";a=cp(a,b,c);s(a)&&(d=a.nodeValue);return d}var dp=document.implementation&&document.implementation.createDocument?ap:bp;
|
|
function ep(a,b,c){return a.getAttributeNodeNS(b,c)}function fp(a,b,c){var d=null;a=a.attributes;for(var e,f,g=0,h=a.length;g<h;++g)if(e=a[g],e.namespaceURI==b&&(f=e.prefix?e.prefix+":"+c:c,f==e.nodeName)){d=e;break}return d}var cp=document.implementation&&document.implementation.createDocument?ep:fp;function gp(a,b,c,d){a.setAttributeNS(b,c,d)}function hp(a,b,c,d){null===b?a.setAttribute(c,d):(b=a.ownerDocument.createNode(2,c,b),b.nodeValue=d,a.setAttributeNode(b))}
|
|
var ip=document.implementation&&document.implementation.createDocument?gp:hp;function jp(a){return(new DOMParser).parseFromString(a,"application/xml")}function kp(a,b){return function(c,d){var e=a.call(b,c,d);s(e)&&Eb(d[d.length-1],e)}}function lp(a,b){return function(c,d){var e=a.call(b,c,d);s(e)&&d[d.length-1].push(e)}}function mp(a){return function(b,c){var d=a.call(void 0,b,c);s(d)&&(c[c.length-1]=d)}}
|
|
function np(a){return function(b,c){var d=a.call(void 0,b,c);s(d)&&kc(c[c.length-1],s(void 0)?void 0:b.localName).push(d)}}function X(a,b){return function(c,d){var e=a.call(void 0,c,d);s(e)&&(d[d.length-1][s(b)?b:c.localName]=e)}}function op(a,b,c){return pp(a,b,c)}function Y(a){return function(b,c,d){a.call(void 0,b,c,d);d[d.length-1].node.appendChild(b)}}function qp(a){var b,c;return function(d,e,f){if(!s(b)){b={};var g={};g[d.localName]=a;b[d.namespaceURI]=g;c=rp(d.localName)}sp(b,c,e,f)}}
|
|
function rp(a,b){return function(c,d,e){c=d[d.length-1].node;d=a;s(d)||(d=e);e=b;s(b)||(e=c.namespaceURI);return Po(e,d)}}var tp=rp();function up(a,b){for(var c=b.length,d=Array(c),e=0;e<c;++e)d[e]=a[b[e]];return d}function pp(a,b,c){c=s(c)?c:{};var d,e;d=0;for(e=a.length;d<e;++d)c[a[d]]=b;return c}function vp(a,b,c,d){for(b=b.firstElementChild;null!==b;b=b.nextElementSibling){var e=a[b.namespaceURI];s(e)&&(e=e[b.localName],s(e)&&e.call(d,b,c))}}
|
|
function Z(a,b,c,d,e){d.push(a);vp(b,c,d,e);return d.pop()}function sp(a,b,c,d,e,f){for(var g=(s(e)?e:c).length,h,m,n=0;n<g;++n)h=c[n],s(h)&&(m=b.call(f,h,d,s(e)?e[n]:void 0),s(m)&&a[m.namespaceURI][m.localName].call(f,m,h,d))}function wp(a,b,c,d,e,f){e.push(a);sp(b,c,d,e,f,void 0);e.pop()};function xp(){}v(xp,Io);l=xp.prototype;l.I=ca("xml");l.Xb=function(a){return Xo(a)?yp(this,a):$o(a)?this.Ne(a):na(a)?(a=jp(a),yp(this,a)):null};function yp(a,b){var c=zp(a,b);return 0<c.length?c[0]:null}l.ra=function(a){return Xo(a)?zp(this,a):$o(a)?this.Fb(a):na(a)?(a=jp(a),zp(this,a)):[]};function zp(a,b){var c=[],d;for(d=b.firstChild;null!==d;d=d.nextSibling)1==d.nodeType&&Eb(c,a.Fb(d));return c}
|
|
l.Nd=function(a){return Xo(a)?this.i(a):$o(a)?(a=Ap(a,[{}]),s(a)?a:null):na(a)?(a=jp(a),this.i(a)):null};l.oa=function(a){return Xo(a)?this.wc(a):$o(a)?this.xc(a):na(a)?(a=jp(a),this.wc(a)):null};l.Xd=function(a){return this.q(a)};l.Cc=function(a){return this.n(a)};function Bp(a){a=Qo(a);return Cp(a)}function Cp(a){if(a=/^\s*(true|1)|(false|0)\s*$/.exec(a))return s(a[1])||!1}function Dp(a){a=Qo(a);if(a=/^\s*(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(Z|(?:([+\-])(\d{2})(?::(\d{2}))?))\s*$/.exec(a)){var b=Date.UTC(parseInt(a[1],10),parseInt(a[2],10)-1,parseInt(a[3],10),parseInt(a[4],10),parseInt(a[5],10),parseInt(a[6],10))/1E3;if("Z"!=a[7]){var c="-"==a[8]?-1:1,b=b+60*c*parseInt(a[9],10);s(a[10])&&(b+=3600*c*parseInt(a[10],10))}return b}}
|
|
function Ep(a){a=Qo(a);return Fp(a)}function Fp(a){if(a=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(a))return parseFloat(a[1])}function Gp(a){a=Qo(a);return Hp(a)}function Hp(a){if(a=/^\s*(\d+)\s*$/.exec(a))return parseInt(a[1],10)}function Ip(a){a=Qo(a);return Ca(a)}function Jp(a,b){a.appendChild(Mo.createTextNode(b.toPrecision()))}function Kp(a,b){a.appendChild(Mo.createTextNode(b.toString()))}function Lp(a,b){a.appendChild(Mo.createTextNode(b))};function Mp(a){a=s(a)?a:{};this.c=a.featureType;this.a=a.featureNS;this.g=a.srsName;this.k=s(a.surface)?a.surface:!1;this.b=s(a.curve)?a.curve:!1;this.d=s(a.multiCurve)?a.multiCurve:!0;this.e=s(a.multiSurface)?a.multiSurface:!0;this.f=s(a.schemaLocation)?a.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd"}v(Mp,xp);
|
|
function Np(a,b){var c=Uo(a),d=b[0],e=w(d,"featureType"),f;if("FeatureCollection"==c)f=Z(null,Op,a,b);else if("featureMembers"==c||"featureMember"==c){f={};var g={};f[e]="featureMembers"==c?lp(Pp):mp(Pp);g[w(d,"featureNS")]=f;f=Z([],g,a,b)}s(f)||(f=[]);return f}var Op={"http://www.opengis.net/gml":{featureMember:lp(Np),featureMembers:mp(Np)}};function Ap(a,b){var c=a.firstElementChild.getAttribute("srsName");b[0].srsName=c;c=Z(null,Qp,a,b);if(null!=c)return c}
|
|
function Pp(a,b){var c,d=a.getAttribute("fid")||dp(a,"http://www.opengis.net/gml","id"),e={},f;for(c=a.firstElementChild;null!==c;c=c.nextElementSibling)if(0===c.childNodes.length||1===c.childNodes.length&&3===c.firstChild.nodeType){var g=Qo(c);/^[\s\xa0]*$/.test(g)&&(g=void 0);e[Uo(c)]=g}else f=Uo(c),e[f]=Ap(c,b);c=new I(e);s(f)&&c.e(f);d&&c.b(d);return c}function Rp(a,b){vp(Sp,a,b)}function Tp(a,b){vp(Up,a,b)}function Vp(a,b){vp(Wp,a,b)}function Xp(a,b){vp(Yp,a,b)}function Zp(a,b){vp($p,a,b)}
|
|
function aq(a,b){var c=bq(a,b);if(null!=c){var d=new jm(null);km(d,"XYZ",c);return d}}function cq(a,b){var c=Z([null],dq,a,b);if(s(c)&&null!==c[0]){var d=new H(null),e=c[0],f=[e.length],g,h;g=1;for(h=c.length;g<h;++g)ig(e,c[g]),f.push(e.length);pi(d,"XYZ",e,f);return d}}function eq(a,b){var c=Z([null],fq,a,b);if(s(c)&&null!==c[0]){var d=new H(null),e=c[0],f=[e.length],g,h;g=1;for(h=c.length;g<h;++g)ig(e,c[g]),f.push(e.length);pi(d,"XYZ",e,f);return d}}
|
|
function gq(a,b){var c=Z([null],hq,a,b);if(s(c)){var d=new jm(null);km(d,"XYZ",c);return d}}function bq(a,b){return Z(null,iq,a,b)}
|
|
function jq(a,b){var c=Qo(a).replace(/^\s*|\s*$/g,""),d=w(b[0],"srsName"),e=a.parentNode.getAttribute("srsDimension"),f="enu";null===d||(f=Yg(qh(d)));c=c.split(/\s+/);d=2;ka(a.getAttribute("srsDimension"))?ka(a.getAttribute("dimension"))?null===e||(d=Hp(e)):d=Hp(a.getAttribute("dimension")):d=Hp(a.getAttribute("srsDimension"));for(var g,h,m=[],n=0,p=c.length;n<p;n+=d)e=parseFloat(c[n]),g=parseFloat(c[n+1]),h=3===d?parseFloat(c[n+2]):0,"en"===f.substr(0,2)?m.push(e,g,h):m.push(g,e,h);return m}
|
|
var Qp={"http://www.opengis.net/gml":{Point:mp(function(a,b){var c=bq(a,b);if(null!=c){var d=new hi(null);ii(d,"XYZ",c);return d}}),MultiPoint:mp(function(a,b){var c=Z([],kq,a,b);if(s(c))return new om(c)}),LineString:mp(aq),MultiLineString:mp(function(a,b){var c=Z([],lq,a,b);if(s(c)){var d=new lm(null);nm(d,c);return d}}),LinearRing:mp(function(a,b){var c=bq(a,b);if(s(c)){var d=new fi(null);gi(d,"XYZ",c);return d}}),Polygon:mp(cq),MultiPolygon:mp(function(a,b){var c=Z([],mq,a,b);if(s(c)){var d=new pm(null);
|
|
rm(d,c);return d}}),Surface:mp(eq),MultiSurface:mp(function(a,b){var c=Z([],nq,a,b);if(s(c)){var d=new pm(null);rm(d,c);return d}}),Curve:mp(gq),MultiCurve:mp(function(a,b){var c=Z([],oq,a,b);if(s(c)){var d=new lm(null);nm(d,c);return d}}),Envelope:mp(function(a,b){var c=Z([null],pq,a,b);return wg(c[1][0],c[1][1],c[2][0],c[2][1])})}},iq={"http://www.opengis.net/gml":{pos:mp(function(a,b){for(var c=Qo(a),d=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*/,e=[],f;f=d.exec(c);)e.push(parseFloat(f[1])),c=c.substr(f[0].length);
|
|
if(""===c){c=w(b[0],"srsName");d="enu";null===c||(d=Yg(qh(c)));if("neu"===d)for(c=0,d=e.length;c<d;c+=3)f=e[c],e[c]=e[c+1],e[c+1]=f;c=e.length;2==c&&e.push(0);return 0===c?void 0:e}}),posList:mp(jq)}},dq={"http://www.opengis.net/gml":{interior:function(a,b){var c=Z(void 0,qq,a,b);s(c)&&b[b.length-1].push(c)},exterior:function(a,b){var c=Z(void 0,qq,a,b);s(c)&&(b[b.length-1][0]=c)}}},kq={"http://www.opengis.net/gml":{pointMember:lp(Rp),pointMembers:lp(Rp)}},lq={"http://www.opengis.net/gml":{lineStringMember:lp(Tp),
|
|
lineStringMembers:lp(Tp)}},oq={"http://www.opengis.net/gml":{curveMember:lp(Vp),curveMembers:lp(Vp)}},nq={"http://www.opengis.net/gml":{surfaceMember:lp(Xp),surfaceMembers:lp(Xp)}},mq={"http://www.opengis.net/gml":{polygonMember:lp(Zp),polygonMembers:lp(Zp)}},Sp={"http://www.opengis.net/gml":{Point:lp(bq)}},Up={"http://www.opengis.net/gml":{LineString:lp(aq)}},Wp={"http://www.opengis.net/gml":{LineString:lp(aq),Curve:lp(gq)}},Yp={"http://www.opengis.net/gml":{Polygon:lp(cq),Surface:lp(eq)}},$p={"http://www.opengis.net/gml":{Polygon:lp(cq)}},
|
|
fq={"http://www.opengis.net/gml":{patches:mp(function(a,b){return Z([null],rq,a,b)})}},hq={"http://www.opengis.net/gml":{segments:mp(function(a,b){return Z([null],sq,a,b)})}},pq={"http://www.opengis.net/gml":{lowerCorner:lp(jq),upperCorner:lp(jq)}},rq={"http://www.opengis.net/gml":{PolygonPatch:mp(function(a,b){return Z([null],dq,a,b)})}},sq={"http://www.opengis.net/gml":{LineStringSegment:mp(function(a,b){return Z([null],iq,a,b)})}},qq={"http://www.opengis.net/gml":{LinearRing:mp(function(a,b){var c=
|
|
Z(null,iq,a,b);if(null!=c)return c})}};Mp.prototype.Fb=function(a){return Np(a,[{featureType:this.c,featureNS:this.a}])};function tq(a,b,c){c=w(c[c.length-1],"srsName");b=b.G();for(var d=b.length,e=Array(d),f,g=0;g<d;++g){f=b[g];var h=e,m=g,n="enu";null!=c&&(n=Yg(qh(c)));h[m]="en"===n.substr(0,2)?f[0]+" "+f[1]:f[1]+" "+f[0]}Lp(a,e.join(" "))}
|
|
function uq(a,b,c){var d=w(c[c.length-1],"srsName");null!=d&&a.setAttribute("srsName",d);d=Po(a.namespaceURI,"pos");a.appendChild(d);c=w(c[c.length-1],"srsName");a="enu";null!=c&&(a=Yg(qh(c)));b=b.G();Lp(d,"en"===a.substr(0,2)?b[0]+" "+b[1]:b[1]+" "+b[0])}var vq={"http://www.opengis.net/gml":{lowerCorner:Y(Lp),upperCorner:Y(Lp)}};function wq(a,b,c){var d=w(c[c.length-1],"srsName");null!=d&&a.setAttribute("srsName",d);d=Po(a.namespaceURI,"posList");a.appendChild(d);tq(d,b,c)}
|
|
function xq(a,b){var c=b[b.length-1],d=c.node,e=w(c,"exteriorWritten");s(e)||(c.exteriorWritten=!0);return Po(d.namespaceURI,s(e)?"interior":"exterior")}
|
|
function yq(a,b,c){var d=w(c[c.length-1],"srsName");"PolygonPatch"!==a.nodeName&&null!=d&&a.setAttribute("srsName",d);"Polygon"===a.nodeName||"PolygonPatch"===a.nodeName?(b=b.ne(),wp({node:a,srsName:d},zq,xq,b,c)):"Surface"===a.nodeName&&(d=Po(a.namespaceURI,"patches"),a.appendChild(d),a=Po(d.namespaceURI,"PolygonPatch"),d.appendChild(a),yq(a,b,c))}
|
|
function Aq(a,b,c){var d=w(c[c.length-1],"srsName");"LineStringSegment"!==a.nodeName&&null!=d&&a.setAttribute("srsName",d);"LineString"===a.nodeName||"LineStringSegment"===a.nodeName?(d=Po(a.namespaceURI,"posList"),a.appendChild(d),tq(d,b,c)):"Curve"===a.nodeName&&(d=Po(a.namespaceURI,"segments"),a.appendChild(d),a=Po(d.namespaceURI,"LineStringSegment"),d.appendChild(a),Aq(a,b,c))}
|
|
function Bq(a,b,c){var d=c[c.length-1],e=w(d,"srsName"),d=w(d,"surface");null!=e&&a.setAttribute("srsName",e);b=b.pe();wp({node:a,srsName:e,surface:d},Cq,Dq,b,c)}function Eq(a,b,c){var d=c[c.length-1],e=w(d,"srsName"),d=w(d,"curve");null!=e&&a.setAttribute("srsName",e);b=b.td();wp({node:a,srsName:e,curve:d},Fq,Dq,b,c)}function Gq(a,b,c){var d=Po(a.namespaceURI,"LinearRing");a.appendChild(d);wq(d,b,c)}function Hq(a,b,c){var d=Iq(b,c);s(d)&&(a.appendChild(d),yq(d,b,c))}
|
|
function Jq(a,b,c){var d=Iq(b,c);s(d)&&(a.appendChild(d),Aq(d,b,c))}function Kq(a,b,c){var d=lc(c[c.length-1]);d.node=a;wp(d,Lq,Iq,[b],c)}function Mq(a,b,c){var d=b.ba;s(d)&&a.setAttribute("fid",d);var d=c[c.length-1],e=w(d,"featureNS"),f=b.a;s(d.Gb)||(d.Gb={},d.Gb[e]={});var g=b.T();b=[];var h=[],m;for(m in g){var n=g[m];null!==n&&(b.push(m),h.push(n),m==f?m in d.Gb[e]||(d.Gb[e][m]=Y(Kq)):m in d.Gb[e]||(d.Gb[e][m]=Y(Lp)))}m=lc(d);m.node=a;wp(m,d.Gb,rp(void 0,e),h,c,b)}
|
|
var Cq={"http://www.opengis.net/gml":{surfaceMember:Y(Hq),polygonMember:Y(Hq)}},Nq={"http://www.opengis.net/gml":{pointMember:Y(function(a,b,c){var d=Po(a.namespaceURI,"Point");a.appendChild(d);uq(d,b,c)})}},Fq={"http://www.opengis.net/gml":{lineStringMember:Y(Jq),curveMember:Y(Jq)}},zq={"http://www.opengis.net/gml":{exterior:Y(Gq),interior:Y(Gq)}},Lq={"http://www.opengis.net/gml":{Curve:Y(Aq),MultiCurve:Y(Eq),Point:Y(uq),MultiPoint:Y(function(a,b,c){var d=w(c[c.length-1],"srsName");null!=d&&a.setAttribute("srsName",
|
|
d);b=b.oe();wp({node:a,srsName:d},Nq,rp("pointMember"),b,c)}),LineString:Y(Aq),MultiLineString:Y(Eq),LinearRing:Y(wq),Polygon:Y(yq),MultiPolygon:Y(Bq),Surface:Y(yq),MultiSurface:Y(Bq),Envelope:Y(function(a,b,c){var d=w(c[c.length-1],"srsName");s(d)&&a.setAttribute("srsName",d);wp({node:a},vq,tp,[b[0]+" "+b[1],b[2]+" "+b[3]],c,["lowerCorner","upperCorner"])})}},Oq={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"};
|
|
function Dq(a,b){return Po("http://www.opengis.net/gml",Oq[b[b.length-1].node.nodeName])}function Iq(a,b){var c=b[b.length-1],d=w(c,"multiSurface"),e=w(c,"surface"),f=w(c,"curve"),c=w(c,"multiCurve"),g;la(a)?g="Envelope":(g=a.I(),"MultiPolygon"===g&&!0===d?g="MultiSurface":"Polygon"===g&&!0===e?g="Surface":"LineString"===g&&!0===f?g="Curve":"MultiLineString"===g&&!0===c&&(g="MultiCurve"));return Po("http://www.opengis.net/gml",g)}
|
|
Mp.prototype.n=function(a){var b=Po("http://www.opengis.net/gml","featureMembers");ip(b,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.f);var c=[{srsName:this.g,curve:this.b,surface:this.k,multiSurface:this.e,multiCurve:this.d,featureNS:this.a,featureType:this.c}],d=c[c.length-1],e=w(d,"featureType"),f=w(d,"featureNS"),g={};g[f]={};g[f][e]=Y(Mq);d=lc(d);d.node=b;wp(d,g,rp(e,f),a,c);return b};function Pq(){}v(Pq,xp);var Qq=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function Rq(a,b,c){a.push(parseFloat(b.getAttribute("lon")),parseFloat(b.getAttribute("lat")));"ele"in c?(a.push(w(c,"ele")),jc(c,"ele")):a.push(0);"time"in c?(a.push(w(c,"time")),jc(c,"time")):a.push(0);return a}function Sq(a,b){var c=b[b.length-1],d=a.getAttribute("href");null!==d&&(c.link=d);vp(Tq,a,b)}
|
|
function Uq(a,b){var c=Z({flatCoordinates:[]},Vq,a,b);if(s(c)){var d=w(c,"flatCoordinates");jc(c,"flatCoordinates");var e=new jm(null);km(e,"XYZM",d);d=new I(e);d.J(c);return d}}function Wq(a,b){var c=Z({flatCoordinates:[],ends:[]},Xq,a,b);if(s(c)){var d=w(c,"flatCoordinates");jc(c,"flatCoordinates");var e=w(c,"ends");jc(c,"ends");var f=new lm(null);mm(f,"XYZM",d,e);d=new I(f);d.J(c);return d}}
|
|
function Yq(a,b){var c=Z({},Zq,a,b);if(s(c)){var d=Rq([],a,c),d=new hi(d,"XYZM"),d=new I(d);d.J(c);return d}}
|
|
var $q={rte:Uq,trk:Wq,wpt:Yq},ar=pp(Qq,{rte:lp(Uq),trk:lp(Wq),wpt:lp(Yq)},void 0),Tq=pp(Qq,{text:X(Ip,"linkText"),type:X(Ip,"linkType")},void 0),Vq=pp(Qq,{name:X(Ip),cmt:X(Ip),desc:X(Ip),src:X(Ip),link:Sq,number:X(Gp),type:X(Ip),rtept:function(a,b){var c=Z({},br,a,b);s(c)&&Rq(w(b[b.length-1],"flatCoordinates"),a,c)}},void 0),br=pp(Qq,{ele:X(Ep),time:X(Dp)},void 0),Xq=pp(Qq,{name:X(Ip),cmt:X(Ip),desc:X(Ip),src:X(Ip),link:Sq,number:X(Gp),type:X(Ip),trkseg:function(a,b){var c=b[b.length-1];vp(cr,a,b);
|
|
w(c,"ends").push(w(c,"flatCoordinates").length)}},void 0),cr=pp(Qq,{trkpt:function(a,b){var c=Z({},dr,a,b);s(c)&&Rq(w(b[b.length-1],"flatCoordinates"),a,c)}},void 0),dr=pp(Qq,{ele:X(Ep),time:X(Dp)},void 0),Zq=pp(Qq,{ele:X(Ep),time:X(Dp),magvar:X(Ep),geoidheight:X(Ep),name:X(Ip),cmt:X(Ip),desc:X(Ip),src:X(Ip),link:Sq,sym:X(Ip),type:X(Ip),fix:X(Ip),sat:X(Gp),hdop:X(Ep),vdop:X(Ep),pdop:X(Ep),ageofdgpsdata:X(Ep),dgpsid:X(Gp)},void 0);
|
|
Pq.prototype.Ne=function(a){if(!(0<=vb(Qq,a.namespaceURI)))return null;var b=$q[a.localName];if(!s(b))return null;a=b(a,[]);return s(a)?a:null};Pq.prototype.Fb=function(a){return 0<=vb(Qq,a.namespaceURI)?"gpx"==a.localName&&(a=Z([],ar,a,[]),s(a))?a:[]:[]};Pq.prototype.wc=function(){return qh("EPSG:4326")};Pq.prototype.xc=function(){return qh("EPSG:4326")};function er(a,b,c){a.setAttribute("href",b);b=w(c[c.length-1],"properties");wp({node:a},fr,tp,[w(b,"linkText"),w(b,"linkType")],c,gr)}
|
|
function hr(a,b,c){var d=c[c.length-1],e=d.node.namespaceURI,f=w(d,"properties");ip(a,null,"lat",b[1]);ip(a,null,"lon",b[0]);switch(w(d,"geometryLayout")){case "XYZM":0!==b[3]&&(f.time=b[3]);case "XYZ":0!==b[2]&&(f.ele=b[2]);break;case "XYM":0!==b[2]&&(f.time=b[2])}b=ir[e];d=up(f,b);wp({node:a,properties:f},jr,tp,d,c,b)}
|
|
var gr=["text","type"],fr=pp(Qq,{text:Y(Lp),type:Y(Lp)}),kr=pp(Qq,"name cmt desc src link number type rtept".split(" ")),lr=pp(Qq,{name:Y(Lp),cmt:Y(Lp),desc:Y(Lp),src:Y(Lp),link:Y(er),number:Y(Kp),type:Y(Lp),rtept:qp(Y(hr))}),mr=pp(Qq,"name cmt desc src link number type trkseg".split(" ")),pr=pp(Qq,{name:Y(Lp),cmt:Y(Lp),desc:Y(Lp),src:Y(Lp),link:Y(er),number:Y(Kp),type:Y(Lp),trkseg:qp(Y(function(a,b,c){wp({node:a,geometryLayout:b.b,properties:{}},nr,or,b.G(),c)}))}),or=rp("trkpt"),nr=pp(Qq,{trkpt:Y(hr)}),
|
|
ir=pp(Qq,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),jr=pp(Qq,{ele:Y(Jp),time:Y(function(a,b){var c=new Date(1E3*b),c=c.getUTCFullYear()+"-"+Ja(c.getUTCMonth()+1)+"-"+Ja(c.getUTCDate())+"T"+Ja(c.getUTCHours())+":"+Ja(c.getUTCMinutes())+":"+Ja(c.getUTCSeconds())+"Z";a.appendChild(Mo.createTextNode(c))}),magvar:Y(Jp),geoidheight:Y(Jp),name:Y(Lp),cmt:Y(Lp),desc:Y(Lp),src:Y(Lp),link:Y(er),sym:Y(Lp),type:Y(Lp),fix:Y(Lp),sat:Y(Kp),
|
|
hdop:Y(Jp),vdop:Y(Jp),pdop:Y(Jp),ageofdgpsdata:Y(Jp),dgpsid:Y(Kp)});
|
|
pp(Qq,{rte:Y(function(a,b,c){var d=b.T();a={node:a,properties:d};b=b.Q();s(b)&&(a.geometryLayout=b.b,b=b.G(),d.rtept=b);b=kr[c[c.length-1].node.namespaceURI];d=up(d,b);wp(a,lr,tp,d,c,b)}),trk:Y(function(a,b,c){var d=b.T();a={node:a,properties:d};b=b.Q();s(b)&&(b=b.td(),d.trkseg=b);b=mr[c[c.length-1].node.namespaceURI];d=up(d,b);wp(a,pr,tp,d,c,b)}),wpt:Y(function(a,b,c){var d=c[c.length-1],e=b.T();d.properties=e;b=b.Q();s(b)&&(d.geometryLayout=b.b,hr(a,b.G(),c))})});function qr(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};function rr(){}v(rr,Io);function sr(a){return ra(a)?a:na(a)?(a=Gd?JSON.parse(a):qr(a),s(a)?a:null):null}l=rr.prototype;l.I=ca("json");l.Xb=function(a){return tr(this,sr(a))};l.ra=function(a){return this.c(sr(a))};l.Nd=function(a){a=sr(a);return ur(a)};l.oa=function(a){return this.d(sr(a))};l.Xd=function(a){return vr(a)};l.Cc=function(a){var b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(vr(a[c]));return{type:"FeatureCollection",features:b}};function wr(a){a=s(a)?a:{};this.b=qh(a.defaultProjection?a.defaultProjection:"EPSG:4326");this.a=a.geometryName}v(wr,rr);function ur(a){return null===a?null:(0,xr[a.type])(a)}function yr(a){return(0,zr[a.I()])(a)}
|
|
var xr={Point:function(a){return new hi(a.coordinates)},LineString:function(a){return new jm(a.coordinates)},Polygon:function(a){return new H(a.coordinates)},MultiPoint:function(a){return new om(a.coordinates)},MultiLineString:function(a){return new lm(a.coordinates)},MultiPolygon:function(a){return new pm(a.coordinates)},GeometryCollection:function(a){a=xb(a.geometries,ur);return new cm(a)}},zr={Point:function(a){return{type:"Point",coordinates:a.G()}},LineString:function(a){return{type:"LineString",
|
|
coordinates:a.G()}},Polygon:function(a){return{type:"Polygon",coordinates:a.G()}},MultiPoint:function(a){return{type:"MultiPoint",coordinates:a.G()}},MultiLineString:function(a){return{type:"MultiLineString",coordinates:a.G()}},MultiPolygon:function(a){return{type:"MultiPolygon",coordinates:a.G()}},GeometryCollection:function(a){return{type:"GeometryCollection",geometries:xb(a.a,yr)}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};
|
|
function tr(a,b){var c=ur(b.geometry),d=new I;s(a.a)&&d.e(a.a);d.fb(c);s(b.id)&&d.b(b.id);s(b.properties)&&d.J(b.properties);return d}wr.prototype.c=function(a){if("Feature"==a.type)return[tr(this,a)];if("FeatureCollection"==a.type){var b=[];a=a.features;var c,d;c=0;for(d=a.length;c<d;++c)b.push(tr(this,a[c]));return b}return[]};wr.prototype.oa=function(a){a=a.crs;return null!=a?"name"==a.type?qh(a.properties.name):"EPSG"==a.type?qh("EPSG:"+a.properties.code):null:this.b};
|
|
function vr(a){var b={type:"Feature"},c=a.ba;null!=c&&(b.id=c);c=a.Q();null!=c&&(c=yr(c),b.geometry=c);a=a.T();jc(a,"geometry");hc(a)||(b.properties=a);return b};function Ar(a){a=Br(a);return xb(a,function(a){return a.b.substring(a.c,a.a)})}function Cr(a,b,c,d){this.b=a;this.c=b;this.a=c;this.d=d}function Br(a){for(var b=RegExp("\r\n|\r|\n","g"),c=0,d,e=[];d=b.exec(a);)c=new Cr(a,c,d.index,d.index+d[0].length),e.push(c),c=b.lastIndex;c<a.length&&(c=new Cr(a,c,a.length,a.length),e.push(c));return e};function Dr(){}v(Dr,Io);l=Dr.prototype;l.I=ca("text");l.Xb=function(a){return Er(this,na(a)?a:"")};l.ra=function(a){a=Er(this,na(a)?a:"");return null===a?[]:[a]};l.Nd=function(a){return this.c(na(a)?a:"")};l.oa=function(){return qh("EPSG:4326")};l.Xd=function(a){return this.b(a)};l.Cc=function(a){return this.d(a)};function Fr(a){a=s(a)?a:{};this.a=s(a.altitudeMode)?a.altitudeMode:"none"}v(Fr,Dr);var Gr=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,Hr=/^H.([A-Z]{3}).*?:(.*)/,Ir=/^HFDTE(\d{2})(\d{2})(\d{2})/;
|
|
function Er(a,b){var c=a.a,d=Ar(b),e={},f=[],g=2E3,h=0,m=1,n,p;n=0;for(p=d.length;n<p;++n){var q=d[n],r;if("B"==q.charAt(0)){if(r=Gr.exec(q)){var q=parseInt(r[1],10),u=parseInt(r[2],10),y=parseInt(r[3],10),B=parseInt(r[4],10)+parseInt(r[5],10)/6E4;"S"==r[6]&&(B=-B);var z=parseInt(r[7],10)+parseInt(r[8],10)/6E4;"W"==r[9]&&(z=-z);f.push(z,B);"none"!=c&&f.push("gps"==c?parseInt(r[11],10):"barometric"==c?parseInt(r[12],10):0);f.push(Date.UTC(g,h,m,q,u,y)/1E3)}}else if("H"==q.charAt(0))if(r=Ir.exec(q))m=
|
|
parseInt(r[1],10),h=parseInt(r[2],10)-1,g=2E3+parseInt(r[3],10);else if(r=Hr.exec(q))e[r[1]]=Ca(r[2]),Ir.exec(q)}if(0===f.length)return null;d=new jm(null);km(d,"none"==c?"XYM":"XYZM",f);c=new I(d);c.J(e);return c};function Jr(a){function b(a){return la(a)?a:na(a)?(!(a in d)&&"#"+a in d&&(a="#"+a),b(d[a])):c}a=s(a)?a:{};var c=s(a.defaultStyle)?a.defaultStyle:Kr,d={};this.a=d;this.c=function(){var a=this.get("Style");if(s(a))return a;a=this.get("styleUrl");return s(a)?b(a):c}}v(Jr,xp);
|
|
var Lr=["http://www.google.com/kml/ext/2.2"],Mr=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],Nr=[255,255,255,1],Or=new Ii({color:Nr}),Pr=[2,20],Qr=[32,32],Rr=new tk({anchor:Pr,anchorXUnits:"pixels",anchorYUnits:"pixels",crossOrigin:"anonymous",rotation:0,scale:1,size:Qr,src:"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"}),Sr=new Ki({color:Nr,width:1}),Kr=[new Mi({fill:Or,image:Rr,text:null,
|
|
stroke:Sr,zIndex:0})],Tr={fraction:"fraction",pixels:"pixels"};function Ur(a){a=Qo(a);if(a=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(a))return a=a[1],[parseInt(a.substr(6,2),16),parseInt(a.substr(4,2),16),parseInt(a.substr(2,2),16),parseInt(a.substr(0,2),16)/255]}
|
|
function Vr(a){a=Qo(a);for(var b=[],c=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?))?\s*/i,d;d=c.exec(a);)b.push(parseFloat(d[1]),parseFloat(d[2]),d[3]?parseFloat(d[3]):0),a=a.substr(d[0].length);return""!==a?void 0:b}function Wr(a){var b=Qo(a);return null!=a.baseURI?uj(a.baseURI,Ca(b)).toString():Ca(b)}function Xr(a,b){return Z(null,Yr,a,b)}
|
|
function Zr(a,b){var c=Z({j:[],Ye:[]},$r,a,b);if(s(c)){var d=c.j,c=c.Ye,e,f;e=0;for(f=Math.min(d.length,c.length);e<f;++e)d[4*e+3]=c[e];c=new jm(null);km(c,"XYZM",d);return c}}function as(a,b){var c=Z(null,bs,a,b);if(s(c)){var d=new jm(null);km(d,"XYZ",c);return d}}function cs(a,b){var c=Z(null,bs,a,b);if(s(c)){var d=new H(null);pi(d,"XYZ",c,[c.length]);return d}}
|
|
function ds(a,b){var c=Z([],es,a,b);if(!s(c))return null;if(0===c.length)return new cm(c);var d=!0,e=c[0].I(),f,g,h;g=1;for(h=c.length;g<h;++g)if(f=c[g],f.I()!=e){d=!1;break}if(d){if("Point"==e){f=c[0];d=f.b;e=f.j;g=1;for(h=c.length;g<h;++g)f=c[g],ig(e,f.j);c=new om(null);Nh(c,d,e);c.l();return c}return"LineString"==e?(f=new lm(null),nm(f,c),f):"Polygon"==e?(f=new pm(null),rm(f,c),f):"GeometryCollection"==e?new cm(c):null}return new cm(c)}
|
|
function fs(a,b){var c=Z(null,bs,a,b);if(null!=c){var d=new hi(null);ii(d,"XYZ",c);return d}}function gs(a,b){var c=Z([null],hs,a,b);if(null!=c&&null!==c[0]){var d=new H(null),e=c[0],f=[e.length],g,h;g=1;for(h=c.length;g<h;++g)ig(e,c[g]),f.push(e.length);pi(d,"XYZ",e,f);return d}}
|
|
function is(a,b){var c=Z({},js,a,b);if(!s(c))return null;var d=w(c,"fillStyle",Or),e=w(c,"fill");s(e)&&!e&&(d=null);var e=w(c,"imageStyle",Rr),f=w(c,"strokeStyle",Sr),c=w(c,"outline");s(c)&&!c&&(f=null);return[new Mi({fill:d,image:e,stroke:f,text:null,zIndex:void 0})]}
|
|
var ks=pp(Mr,{value:mp(Ip)},void 0),ms=pp(Mr,{Data:function(a,b){var c=a.getAttribute("name");if(null!==c){var d=Z(void 0,ks,a,b);s(d)&&(b[b.length-1][c]=d)}},SchemaData:function(a,b){vp(ls,a,b)}},void 0),Yr=pp(Mr,{coordinates:mp(Vr)},void 0),hs=pp(Mr,{innerBoundaryIs:function(a,b){var c=Z(void 0,ns,a,b);s(c)&&b[b.length-1].push(c)},outerBoundaryIs:function(a,b){var c=Z(void 0,os,a,b);s(c)&&(b[b.length-1][0]=c)}},void 0),$r=op(Mr,{when:function(a,b){var c=b[b.length-1].Ye,d=Qo(a);if(d=/^\s*(\d{4})($|-(\d{2})($|-(\d{2})($|T(\d{2}):(\d{2}):(\d{2})(Z|(?:([+\-])(\d{2})(?::(\d{2}))?)))))\s*$/.exec(d)){var e=
|
|
Date.UTC(parseInt(d[1],10),s(d[3])?parseInt(d[3],10)-1:0,s(d[5])?parseInt(d[5],10):1,s(d[7])?parseInt(d[7],10):0,s(d[8])?parseInt(d[8],10):0,s(d[9])?parseInt(d[9],10):0);if(s(d[10])&&"Z"!=d[10]){var f="-"==d[11]?-1:1,e=e+60*f*parseInt(d[12],10);s(d[13])&&(e+=3600*f*parseInt(d[13],10))}c.push(e)}else c.push(0)}},pp(Lr,{coord:function(a,b){var c=b[b.length-1].j,d=Qo(a);(d=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(d))?
|
|
c.push(parseFloat(d[1]),parseFloat(d[2]),parseFloat(d[3]),0):c.push(0,0,0,0)}},void 0)),bs=pp(Mr,{coordinates:mp(Vr)},void 0),ps=op(Mr,{href:X(Wr)},pp(Lr,{x:X(Ep),y:X(Ep),w:X(Ep),h:X(Ep)},void 0)),qs=pp(Mr,{Icon:X(function(a,b){var c=Z({},ps,a,b);return s(c)?c:null}),heading:X(Ep),hotSpot:X(function(a){var b=a.getAttribute("xunits"),c=a.getAttribute("yunits");return{x:parseFloat(a.getAttribute("x")),Ii:Tr[b],y:parseFloat(a.getAttribute("y")),Ji:Tr[c]}}),scale:X(function(a){a=Ep(a);if(s(a))return Math.sqrt(a)})},
|
|
void 0),ns=pp(Mr,{LinearRing:mp(Xr)},void 0),rs=pp(Mr,{color:X(Ur),width:X(Ep)},void 0),es=pp(Mr,{LineString:lp(as),LinearRing:lp(cs),MultiGeometry:lp(ds),Point:lp(fs),Polygon:lp(gs)},void 0),ss=pp(Lr,{Track:lp(Zr)},void 0),os=pp(Mr,{LinearRing:mp(Xr)},void 0),ts=pp(Mr,{Style:X(is),key:X(Ip),styleUrl:X(function(a){var b=Ca(Qo(a));return null!=a.baseURI?uj(a.baseURI,b).toString():b})},void 0),vs=op(Mr,{ExtendedData:function(a,b){vp(ms,a,b)},MultiGeometry:X(ds,"geometry"),LineString:X(as,"geometry"),
|
|
LinearRing:X(cs,"geometry"),Point:X(fs,"geometry"),Polygon:X(gs,"geometry"),Style:X(is),StyleMap:function(a,b){var c=Z(void 0,us,a,b);if(s(c)){var d=b[b.length-1];la(c)?d.Style=c:na(c)&&(d.styleUrl=c)}},address:X(Ip),description:X(Ip),name:X(Ip),open:X(Bp),phoneNumber:X(Ip),styleUrl:X(Wr),visibility:X(Bp)},pp(Lr,{MultiTrack:X(function(a,b){var c=Z([],ss,a,b);if(s(c)){var d=new lm(null);nm(d,c);return d}},"geometry"),Track:X(Zr,"geometry")},void 0)),ws=pp(Mr,{color:X(Ur),fill:X(Bp),outline:X(Bp)},
|
|
void 0),ls=pp(Mr,{SimpleData:function(a,b){var c=a.getAttribute("name");if(null!==c){var d=Ip(a);b[b.length-1][c]=d}}},void 0),js=pp(Mr,{IconStyle:function(a,b){var c=Z({},qs,a,b);if(s(c)){var d=b[b.length-1],e=w(c,"Icon",{}),f;f=w(e,"href");f=s(f)?f:"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png";var g,h,m,n=w(c,"hotSpot");s(n)?(g=[n.x,n.y],h=n.Ii,m=n.Ji):"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"===f?(g=Pr,m=h="pixels"):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(f)&&
|
|
(g=[0.5,0],m=h="fraction");var p,n=w(e,"x"),q=w(e,"y");s(n)&&s(q)&&(p=[n,q]);var r,n=w(e,"w"),e=w(e,"h");s(n)&&s(e)&&(r=[n,e]);var u,e=w(c,"heading");s(e)&&(u=Zb(e));c=w(c,"scale");"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"==f&&(r=Qr);g=new tk({anchor:g,anchorOrigin:"bottom-left",anchorXUnits:h,anchorYUnits:m,crossOrigin:"anonymous",offset:p,offsetOrigin:"bottom-left",rotation:u,scale:c,size:r,src:f});d.imageStyle=g}},LineStyle:function(a,b){var c=Z({},rs,a,b);s(c)&&(b[b.length-
|
|
1].strokeStyle=new Ki({color:w(c,"color",Nr),width:w(c,"width",1)}))},PolyStyle:function(a,b){var c=Z({},ws,a,b);if(s(c)){var d=b[b.length-1];d.fillStyle=new Ii({color:w(c,"color",Nr)});var e=w(c,"fill");s(e)&&(d.fill=e);c=w(c,"outline");s(c)&&(d.outline=c)}}},void 0),us=pp(Mr,{Pair:function(a,b){var c=Z({},ts,a,b);if(s(c)){var d=w(c,"key");s(d)&&"normal"==d&&(d=w(c,"styleUrl"),s(d)&&(b[b.length-1]=d),c=w(c,"Style"),s(c)&&(b[b.length-1]=c))}}},void 0);l=Jr.prototype;
|
|
l.Me=function(a,b){Uo(a);var c=op(Mr,{Folder:kp(this.Me,this),Placemark:lp(this.Od,this),Style:xa(this.gi,this),StyleMap:xa(this.fi,this)}),c=Z([],c,a,b,this);if(s(c))return c};l.Od=function(a,b){var c=Z({geometry:null},vs,a,b);if(s(c)){var d=new I,e=a.getAttribute("id");null===e||d.b(e);d.J(c);d.g(this.c);return d}};l.gi=function(a,b){var c=a.getAttribute("id");if(null!==c){var d=is(a,b);s(d)&&(c=null!=a.baseURI?uj(a.baseURI,"#"+c).toString():"#"+c,this.a[c]=d)}};
|
|
l.fi=function(a,b){var c=a.getAttribute("id");if(null!==c){var d=Z(void 0,us,a,b);s(d)&&(c=null!=a.baseURI?uj(a.baseURI,"#"+c).toString():"#"+c,this.a[c]=d)}};l.Ne=function(a){if(!(0<=vb(Mr,a.namespaceURI)))return null;a=this.Od(a,[]);return s(a)?a:null};
|
|
l.Fb=function(a){if(!(0<=vb(Mr,a.namespaceURI)))return[];var b;b=Uo(a);if("Document"==b||"Folder"==b)return b=this.Me(a,[]),s(b)?b:[];if("Placemark"==b)return b=this.Od(a,[]),s(b)?[b]:[];if("kml"==b){b=[];for(a=a.firstElementChild;null!==a;a=a.nextElementSibling){var c=this.Fb(a);s(c)&&Eb(b,c)}return b}return[]};l.wc=function(){return qh("EPSG:4326")};l.xc=function(){return qh("EPSG:4326")};function xs(){}v(xs,xp);function ys(a,b){var c=a.getAttribute("k"),d=a.getAttribute("v");b[b.length-1].zc[c]=d}
|
|
var zs=[null],As=pp(zs,{nd:function(a,b){b[b.length-1].Sb.push(a.getAttribute("ref"))},tag:ys},void 0),Cs=pp(zs,{node:function(a,b){var c=b[b.length-1],d=a.getAttribute("id"),e=[parseFloat(a.getAttribute("lon")),parseFloat(a.getAttribute("lat"))];c.we[d]=e;var f=Z({zc:{}},Bs,a,b);hc(f.zc)||(e=new hi(e),e=new I(e),e.b(d),e.J(f.zc),c.features.push(e))},way:function(a,b){for(var c=a.getAttribute("id"),d=Z({Sb:[],zc:{}},As,a,b),e=b[b.length-1],f=[],g=0,h=d.Sb.length;g<h;g++)Eb(f,w(e.we,d.Sb[g]));d.Sb[0]==
|
|
d.Sb[d.Sb.length-1]?(g=new H(null),pi(g,"XY",f,[f.length])):(g=new jm(null),km(g,"XY",f));f=new I(g);f.b(c);f.J(d.zc);e.features.push(f)}},void 0),Bs=pp(zs,{tag:ys},void 0);xs.prototype.Fb=function(a){return"osm"==a.localName&&(a=Z({we:{},features:[]},Cs,a,[]),s(a.features))?a.features:[]};xs.prototype.wc=function(){return qh("EPSG:4326")};xs.prototype.xc=function(){return qh("EPSG:4326")};function Ds(a){this.a=qh((s(a)?a:{}).defaultProjection||"EPSG:4326")}v(Ds,rr);function Es(a,b){var c=[],d,e,f;e=0;for(f=a.length;e<f;++e)d=a[e],0<e&&c.pop(),d=0<=d?b[d]:b[~d].slice().reverse(),c.push.apply(c,d);e=0;for(f=c.length;e<f;++e)c[e]=c[e].slice();return c}function Fs(a,b,c,d){a=a.geometries;var e=[],f,g;f=0;for(g=a.length;f<g;++f)e[f]=Gs(a[f],b,c,d);return e}
|
|
function Gs(a,b,c,d){var e=a.type,f=Hs[e];b="Point"===e||"MultiPoint"===e?f(a,c,d):f(a,b);c=new I;c.fb(b);s(a.id)&&c.b(a.id);s(a.properties)&&c.J(a.properties);return c}
|
|
Ds.prototype.c=function(a){if("Topology"==a.type){var b,c=null,d=null;s(a.transform)&&(b=a.transform,c=b.scale,d=b.translate);var e=a.arcs;if(s(b)){b=c;var f=d,g,h;g=0;for(h=e.length;g<h;++g)for(var m=e[g],n=b,p=f,q=0,r=0,u=void 0,y=void 0,B=void 0,y=0,B=m.length;y<B;++y)u=m[y],q+=u[0],r+=u[1],u[0]=q,u[1]=r,Is(u,n,p)}b=[];a=fc(a.objects);f=0;for(g=a.length;f<g;++f)"GeometryCollection"===a[f].type?(h=a[f],b.push.apply(b,Fs(h,e,c,d))):(h=a[f],b.push(Gs(h,e,c,d)));return b}return[]};
|
|
function Is(a,b,c){a[0]=a[0]*b[0]+c[0];a[1]=a[1]*b[1]+c[1]}Ds.prototype.oa=k("a");
|
|
var Hs={Point:function(a,b,c){a=a.coordinates;null===b||null===c||Is(a,b,c);return new hi(a)},LineString:function(a,b){var c=Es(a.arcs,b);return new jm(c)},Polygon:function(a,b){var c=[],d,e;d=0;for(e=a.arcs.length;d<e;++d)c[d]=Es(a.arcs[d],b);return new H(c)},MultiPoint:function(a,b,c){a=a.coordinates;var d,e;if(null!==b&&null!==c)for(d=0,e=a.length;d<e;++d)Is(a[d],b,c);return new om(a)},MultiLineString:function(a,b){var c=[],d,e;d=0;for(e=a.arcs.length;d<e;++d)c[d]=Es(a.arcs[d],b);return new lm(c)},
|
|
MultiPolygon:function(a,b){var c=[],d,e,f,g,h,m;h=0;for(m=a.arcs.length;h<m;++h){d=a.arcs[h];e=[];f=0;for(g=d.length;f<g;++f)e[f]=Es(d[f],b);c[h]=e}return new pm(c)}};function Js(a){a=s(a)?a:{};this.b=a.featureType;this.a=a.featureNS;this.c=s(a.schemaLocation)?a.schemaLocation:"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"}v(Js,xp);Js.prototype.Fb=function(a){a=Z([],Op,a,[{featureType:this.b,featureNS:this.a}]);s(a)||(a=[]);return a};Js.prototype.e=function(a){if(Xo(a))return Ks(a);if($o(a))return Z({},Ls,a,[]);if(na(a))return a=jp(a),Ks(a)};
|
|
Js.prototype.d=function(a){if(Xo(a))return Ms(a);if($o(a))return Ns(a);if(na(a))return a=jp(a),Ms(a)};function Ms(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==a.nodeType)return Ns(a)}var Os={"http://www.opengis.net/gml":{boundedBy:X(Ap,"bounds")}};function Ns(a){var b={},c=Hp(a.getAttribute("numberOfFeatures"));b.numberOfFeatures=c;return Z(b,Os,a,[])}
|
|
var Ps={"http://www.opengis.net/wfs":{totalInserted:X(Gp),totalUpdated:X(Gp),totalDeleted:X(Gp)}},Qs={"http://www.opengis.net/ogc":{FeatureId:lp(function(a){return a.getAttribute("fid")})}},Rs={"http://www.opengis.net/wfs":{Feature:function(a,b){vp(Qs,a,b)}}},Ls={"http://www.opengis.net/wfs":{TransactionSummary:X(function(a,b){return Z({},Ps,a,b)},"transactionSummary"),InsertResults:X(function(a,b){return Z([],Rs,a,b)},"insertIds")}};
|
|
function Ks(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==a.nodeType)return Z({},Ls,a,[])}var Ss={"http://www.opengis.net/wfs":{PropertyName:Y(Lp)}};function Ts(a,b){var c=Po("http://www.opengis.net/ogc","Filter"),d=Po("http://www.opengis.net/ogc","FeatureId");c.appendChild(d);d.setAttribute("fid",b);a.appendChild(c)}
|
|
var Us={"http://www.opengis.net/wfs":{Insert:Y(function(a,b,c){var d=c[c.length-1],d=Po(w(d,"featureNS"),w(d,"featureType"));a.appendChild(d);Mq(d,b,c)}),Update:Y(function(a,b,c){var d=c[c.length-1],e=w(d,"featureType"),f=w(d,"featurePrefix"),f=s(f)?f:"feature",g=w(d,"featureNS");a.setAttribute("typeName",f+":"+e);ip(a,"http://www.w3.org/2000/xmlns/","xmlns:"+f,g);e=b.ba;if(s(e)){for(var f=b.M(),g=[],h=0,m=f.length;h<m;h++){var n=b.get(f[h]);s(n)&&g.push({name:f[h],value:n})}wp({node:a,srsName:w(d,
|
|
"srsName")},Us,rp("Property"),g,c);Ts(a,e)}}),Delete:Y(function(a,b,c){var d=c[c.length-1];c=w(d,"featureType");var e=w(d,"featurePrefix"),e=s(e)?e:"feature",d=w(d,"featureNS");a.setAttribute("typeName",e+":"+c);ip(a,"http://www.w3.org/2000/xmlns/","xmlns:"+e,d);b=b.ba;s(b)&&Ts(a,b)}),Property:Y(function(a,b,c){var d=Po("http://www.opengis.net/wfs","Name");a.appendChild(d);Lp(d,b.name);null!=b.value&&(d=Po("http://www.opengis.net/wfs","Value"),a.appendChild(d),b.value instanceof Jh?Kq(d,b.value,c):
|
|
Lp(d,b.value))}),Native:Y(function(a,b){s(b.Bi)&&a.setAttribute("vendorId",b.Bi);s(b.qi)&&a.setAttribute("safeToIgnore",b.qi);s(b.value)&&Lp(a,b.value)})}},Vs={"http://www.opengis.net/wfs":{Query:Y(function(a,b,c){var d=c[c.length-1],e=w(d,"featurePrefix"),f=w(d,"featureNS"),g=w(d,"propertyNames"),h=w(d,"srsName");a.setAttribute("typeName",(s(e)?e+":":"")+b);s(h)&&a.setAttribute("srsName",h);s(f)&&ip(a,"http://www.w3.org/2000/xmlns/","xmlns:"+e,f);b=lc(d);b.node=a;wp(b,Ss,rp("PropertyName"),g,c);
|
|
d=w(d,"bbox");s(d)&&(g=Po("http://www.opengis.net/ogc","Filter"),b=w(c[c.length-1],"geometryName"),e=Po("http://www.opengis.net/ogc","BBOX"),g.appendChild(e),f=Po("http://www.opengis.net/ogc","PropertyName"),Lp(f,b),e.appendChild(f),Kq(e,d,c),a.appendChild(g))})}};
|
|
Js.prototype.f=function(a){var b=Po("http://www.opengis.net/wfs","GetFeature");b.setAttribute("service","WFS");b.setAttribute("version","1.1.0");s(a)&&(s(a.handle)&&b.setAttribute("handle",a.handle),s(a.outputFormat)&&b.setAttribute("outputFormat",a.outputFormat),s(a.maxFeatures)&&b.setAttribute("maxFeatures",a.maxFeatures),s(a.resultType)&&b.setAttribute("resultType",a.resultType),s(a.ti)&&b.setAttribute("startIndex",a.ti),s(a.count)&&b.setAttribute("count",a.count));ip(b,"http://www.w3.org/2001/XMLSchema-instance",
|
|
"xsi:schemaLocation",this.c);var c=a.featureTypes;a=[{node:b,srsName:a.srsName,featureNS:s(a.featureNS)?a.featureNS:this.a,featurePrefix:a.featurePrefix,geometryName:a.geometryName,bbox:a.bbox,Le:s(a.Le)?a.Le:[]}];var d=lc(a[a.length-1]);d.node=b;wp(d,Vs,rp("Query"),c,a);return b};
|
|
Js.prototype.g=function(a,b,c,d){var e=[],f=Po("http://www.opengis.net/wfs","Transaction");f.setAttribute("service","WFS");f.setAttribute("version","1.1.0");var g,h;s(d)&&(g=s(d.gmlOptions)?d.gmlOptions:{},s(d.handle)&&f.setAttribute("handle",d.handle));ip(f,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.c);null!=a&&(h={node:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix},nc(h,g),wp(h,Us,rp("Insert"),a,e));null!=b&&(h={node:f,featureNS:d.featureNS,
|
|
featureType:d.featureType,featurePrefix:d.featurePrefix},nc(h,g),wp(h,Us,rp("Update"),b,e));null!=c&&wp({node:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix},Us,rp("Delete"),c,e);s(d.nativeElements)&&wp({node:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix},Us,rp("Native"),d.nativeElements,e);return f};Js.prototype.wc=function(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==a.nodeType)return this.xc(a);return null};
|
|
Js.prototype.xc=function(a){a=a.firstElementChild.firstElementChild;if(null!=a)for(a=a.firstElementChild;null!==a;a=a.nextElementSibling)if(0!==a.childNodes.length&&(1!==a.childNodes.length||3!==a.firstChild.nodeType)){var b=[{}];Ap(a,b);return qh(b.pop().srsName)}return null};function Ws(a){return a.getAttributeNS("http://www.w3.org/1999/xlink","href")};function Xs(){}Xs.prototype.a=function(a){return Xo(a)?Ys(this,a):$o(a)?Zs(this,a):na(a)?(a=jp(a),Ys(this,a)):null};function $s(){this.version=void 0}v($s,Xs);function Ys(a,b){for(var c=b.firstChild;null!==c;c=c.nextSibling)if(1==c.nodeType)return Zs(a,c);return null}function Zs(a,b){a.version=Ca(b.getAttribute("version"));var c=Z({version:a.version},at,b,[]);return s(c)?c:null}function bt(a,b){return Z({},ct,a,b)}function dt(a,b){return Z({},et,a,b)}function ft(a,b){var c=bt(a,b);if(s(c)){var d=[Hp(a.getAttribute("width")),Hp(a.getAttribute("height"))];c.size=d;return c}}function gt(a,b){return Z([],ht,a,b)}
|
|
var it=[null,"http://www.opengis.net/wms"],at=pp(it,{Service:X(function(a,b){return Z({},jt,a,b)}),Capability:X(function(a,b){return Z({},kt,a,b)})},void 0),kt=pp(it,{Request:X(function(a,b){return Z({},lt,a,b)}),Exception:X(function(a,b){return Z([],mt,a,b)}),Layer:X(function(a,b){return Z({},nt,a,b)})},void 0),jt=pp(it,{Name:X(Ip),Title:X(Ip),Abstract:X(Ip),KeywordList:X(gt),OnlineResource:X(Ws),ContactInformation:X(function(a,b){return Z({},ot,a,b)}),Fees:X(Ip),AccessConstraints:X(Ip),LayerLimit:X(Gp),
|
|
MaxWidth:X(Gp),MaxHeight:X(Gp)},void 0),ot=pp(it,{ContactPersonPrimary:X(function(a,b){return Z({},pt,a,b)}),ContactPosition:X(Ip),ContactAddress:X(function(a,b){return Z({},qt,a,b)}),ContactVoiceTelephone:X(Ip),ContactFacsimileTelephone:X(Ip),ContactElectronicMailAddress:X(Ip)},void 0),pt=pp(it,{ContactPerson:X(Ip),ContactOrganization:X(Ip)},void 0),qt=pp(it,{AddressType:X(Ip),Address:X(Ip),City:X(Ip),StateOrProvince:X(Ip),PostCode:X(Ip),Country:X(Ip)},void 0),mt=pp(it,{Format:lp(Ip)},void 0),nt=
|
|
pp(it,{Name:X(Ip),Title:X(Ip),Abstract:X(Ip),KeywordList:X(gt),CRS:np(Ip),EX_GeographicBoundingBox:X(function(a,b){var c=Z({},rt,a,b);if(s(c)){var d=w(c,"westBoundLongitude"),e=w(c,"southBoundLatitude"),f=w(c,"eastBoundLongitude"),c=w(c,"northBoundLatitude");return s(d)&&s(e)&&s(f)&&s(c)?[d,e,f,c]:void 0}}),BoundingBox:np(function(a){var b=[Fp(a.getAttribute("minx")),Fp(a.getAttribute("miny")),Fp(a.getAttribute("maxx")),Fp(a.getAttribute("maxy"))],c=[Fp(a.getAttribute("resx")),Fp(a.getAttribute("resy"))];
|
|
return{crs:a.getAttribute("CRS"),extent:b,res:c}}),Dimension:np(function(a){return{name:a.getAttribute("name"),units:a.getAttribute("units"),unitSymbol:a.getAttribute("unitSymbol"),"default":a.getAttribute("default"),multipleValues:Cp(a.getAttribute("multipleValues")),nearestValue:Cp(a.getAttribute("nearestValue")),current:Cp(a.getAttribute("current")),values:Ip(a)}}),Attribution:X(function(a,b){return Z({},st,a,b)}),AuthorityURL:np(function(a,b){var c=bt(a,b);if(s(c)){var d=a.getAttribute("name");
|
|
c.name=d;return c}}),Identifier:np(Ip),MetadataURL:np(function(a,b){var c=bt(a,b);if(s(c)){var d=a.getAttribute("type");c.type=d;return c}}),DataURL:np(bt),FeatureListURL:np(bt),Style:np(function(a,b){return Z({},tt,a,b)}),MinScaleDenominator:X(Ep),MaxScaleDenominator:X(Ep),Layer:np(function(a,b){var c=b[b.length-1],d=Z({},nt,a,b);if(s(d)){var e=Cp(a.getAttribute("queryable"));s(e)||(e=w(c,"queryable"));d.queryable=s(e)?e:!1;e=Hp(a.getAttribute("cascaded"));s(e)||(e=w(c,"cascaded"));d.cascaded=e;
|
|
e=Cp(a.getAttribute("opaque"));s(e)||(e=w(c,"opaque"));d.opaque=s(e)?e:!1;e=Cp(a.getAttribute("noSubsets"));s(e)||(e=w(c,"noSubsets"));d.noSubsets=s(e)?e:!1;e=Fp(a.getAttribute("fixedWidth"));s(e)||(e=w(c,"fixedWidth"));d.fixedWidth=e;e=Fp(a.getAttribute("fixedHeight"));s(e)||(e=w(c,"fixedHeight"));d.fixedHeight=e;wb(["Style","CRS","AuthorityURL"],function(a){s(w(c,a))&&kc(d,a)});wb("EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" "),function(a){s(w(d,
|
|
a))||(d[a]=w(c,a))});return d}})},void 0),st=pp(it,{Title:X(Ip),OnlineResource:X(Ws),LogoURL:X(ft)},void 0),rt=pp(it,{westBoundLongitude:X(Ep),eastBoundLongitude:X(Ep),southBoundLatitude:X(Ep),northBoundLatitude:X(Ep)},void 0),lt=pp(it,{GetCapabilities:X(dt),GetMap:X(dt),GetFeatureInfo:X(dt)},void 0),et=pp(it,{Format:np(Ip),DCPType:np(function(a,b){return Z({},ut,a,b)})},void 0),ut=pp(it,{HTTP:X(function(a,b){return Z({},vt,a,b)})},void 0),vt=pp(it,{Get:X(bt),Post:X(bt)},void 0),tt=pp(it,{Name:X(Ip),
|
|
Title:X(Ip),Abstract:X(Ip),LegendURL:np(ft),StyleSheetURL:X(bt),StyleURL:X(bt)},void 0),ct=pp(it,{Format:X(Ip),OnlineResource:X(Ws)},void 0),ht=pp(it,{Keyword:lp(Ip)},void 0);function wt(a,b){He.call(this);this.a=new po(this);var c=a;b&&(c=qc(a));this.a.qa(c,"dragenter",this.Sh);c!=a&&this.a.qa(c,"dragover",this.Th);this.a.qa(a,"dragover",this.Uh);this.a.qa(a,"drop",this.Vh)}v(wt,He);l=wt.prototype;l.hc=!1;l.H=function(){wt.K.H.call(this);this.a.gc()};l.Sh=function(a){var b=a.P.dataTransfer;(this.hc=!(!b||!(b.types&&(0<=vb(b.types,"Files")||0<=vb(b.types,"public.file-url"))||b.files&&0<b.files.length)))&&a.preventDefault()};
|
|
l.Th=function(a){this.hc&&(a.preventDefault(),a.P.dataTransfer.dropEffect="none")};l.Uh=function(a){this.hc&&(a.preventDefault(),a.Pa(),a=a.P.dataTransfer,a.effectAllowed="all",a.dropEffect="copy")};l.Vh=function(a){this.hc&&(a.preventDefault(),a.Pa(),a=new Yd(a.P),a.type="drop",A(this,a))};/*
|
|
Portions of this code are from MochiKit, received by
|
|
The Closure Authors under the MIT license. All other code is Copyright
|
|
2005-2009 The Closure Authors. All Rights Reserved.
|
|
*/
|
|
function xt(a,b){this.a=[];this.f=a;this.e=b||null}l=xt.prototype;l.jb=!1;l.sc=!1;l.md=!1;l.of=!1;l.Rd=!1;l.od=0;l.cancel=function(a){if(this.jb)this.b instanceof xt&&this.b.cancel();else{if(this.c){var b=this.c;delete this.c;a?b.cancel(a):(b.od--,0>=b.od&&b.cancel())}this.f?this.f.call(this.e,this):this.Rd=!0;this.jb||(a=new yt(this),zt(this),At(this,!1,a))}};l.ae=function(a,b){this.md=!1;At(this,a,b)};function At(a,b,c){a.jb=!0;a.b=c;a.sc=!b;Bt(a)}
|
|
function zt(a){if(a.jb){if(!a.Rd)throw new Ct(a);a.Rd=!1}}function Dt(a){return yb(a.a,function(a){return qa(a[1])})}
|
|
function Bt(a){a.d&&(a.jb&&Dt(a))&&(ea.clearTimeout(a.d),delete a.d);a.c&&(a.c.od--,delete a.c);for(var b=a.b,c=!1,d=!1;a.a.length&&!a.md;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.sc?g:f)try{var h=f.call(e||a.e,b);s(h)&&(a.sc=a.sc&&(h==b||h instanceof Error),a.b=b=h);b instanceof xt&&(d=!0,a.md=!0)}catch(m){b=m,a.sc=!0,Dt(a)||(c=!0)}}a.b=b;d&&(d=b,h=xa(a.ae,a,!0),f=xa(a.ae,a,!1),d.a.push([h,f,void 0]),d.jb&&Bt(d),b.of=!0);c&&(a.d=ea.setTimeout(Ce(b),0))}
|
|
function Ct(a){tb.call(this);this.a=a}v(Ct,tb);Ct.prototype.message="Deferred has already fired";Ct.prototype.name="AlreadyCalledError";function yt(a){tb.call(this);this.a=a}v(yt,tb);yt.prototype.message="Deferred was canceled";yt.prototype.name="CanceledError";function Et(a,b){tb.call(this,Ba("Error %s: %s",b,Ft(a)));this.code=a}v(Et,tb);
|
|
function Ft(a){switch(a){case 1:return"File or directory not found";case 2:return"Insecure or disallowed operation";case 3:return"Operation aborted";case 4:return"File or directory not readable";case 5:return"Invalid encoding";case 6:return"Cannot modify file or directory";case 7:return"Invalid state";case 8:return"Invalid line-ending specifier";case 9:return"Invalid modification";case 10:return"Quota exceeded";case 11:return"Invalid filetype";case 12:return"File or directory already exists at specified path";
|
|
default:return"Unrecognized error"}};function Gt(a,b){Qd.call(this,a.type,b);this.a=a}v(Gt,Qd);function Ht(){He.call(this);this.Ha=new FileReader;this.Ha.onloadstart=xa(this.a,this);this.Ha.onprogress=xa(this.a,this);this.Ha.onload=xa(this.a,this);this.Ha.onabort=xa(this.a,this);this.Ha.onerror=xa(this.a,this);this.Ha.onloadend=xa(this.a,this)}v(Ht,He);Ht.prototype.getError=function(){return this.Ha.error&&new Et(this.Ha.error.code,"reading file")};Ht.prototype.a=function(a){A(this,new Gt(a,this))};Ht.prototype.H=function(){Ht.K.H.call(this);delete this.Ha};
|
|
function It(a){var b=new xt;a.addEventListener("loadend",za(function(a,b){var e=b.Ha.result,f=b.getError();null==e||f?(zt(a),At(a,!1,f)):(zt(a),At(a,!0,e));b.gc()},b,a));return b};function Jt(a){a=s(a)?a:{};Dh.call(this);this.d=s(a.formatConstructors)?a.formatConstructors:[];this.e=s(a.reprojectTo)?qh(a.reprojectTo):null;this.b=null;this.a=void 0}v(Jt,Dh);l=Jt.prototype;l.H=function(){s(this.a)&&re(this.a);Jt.K.H.call(this)};l.Wf=function(a){a=a.P.dataTransfer.files;var b,c,d;b=0;for(c=a.length;b<c;++b){d=a[b];var e;e=d;var f=new Ht,g=It(f);f.Ha.readAsText(e,"");e=g;d=za(this.pg,d);e.a.push([d,null,this]);e.jb&&Bt(e)}};
|
|
l.pg=function(a,b){var c=this.i,d=this.e;null===d&&(d=c.a().$().i());var c=this.d,e=[],f,g;f=0;for(g=c.length;f<g;++f){var h=new c[f],m;try{m=h.ra(b)}catch(n){m=null}if(null!==m){var h=h.oa(b),h=rh(h,d),p,q;p=0;for(q=m.length;p<q;++p){var r=m[p],u=r.Q();null!=u&&u.vb(h);e.push(r)}}}A(this,new Kt(Lt,this,a,e,d))};l.Fa=Ae;
|
|
l.setMap=function(a){s(this.a)&&(re(this.a),this.a=void 0);null!==this.b&&(Pd(this.b),this.b=null);Jt.K.setMap.call(this,a);null!==a&&(this.b=new wt(a.b),this.a=x(this.b,"drop",this.Wf,!1,this))};var Lt="addfeatures";function Kt(a,b,c,d,e){Qd.call(this,a,b);this.features=d;this.file=c;this.projection=e}v(Kt,Qd);function Mt(a,b){this.x=a;this.y=b}v(Mt,$b);Mt.prototype.S=function(){return new Mt(this.x,this.y)};Mt.prototype.scale=$b.prototype.scale;Mt.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};Mt.prototype.rotate=function(a){var b=Math.cos(a);a=Math.sin(a);var c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};function Nt(a){a=s(a)?a:{};Hh.call(this);this.f=s(a.condition)?a.condition:dg;this.a=this.d=void 0;this.e=0}v(Nt,Hh);Nt.prototype.nb=function(a){if(fg(a)){var b=a.map,c=b.e();a=a.pixel;a=new Mt(a[0]-c[0]/2,c[1]/2-a[1]);c=Math.atan2(a.y,a.x);a=Math.sqrt(a.x*a.x+a.y*a.y);var d=b.a().$(),e=vh(d);b.U();s(this.d)&&Eh(b,d,e.rotation-(c-this.d));this.d=c;s(this.a)&&Gh(b,d,this.a*(e.resolution/a));s(this.a)&&(this.e=this.a/a);this.a=a}};
|
|
Nt.prototype.cb=function(a){if(!fg(a))return!0;a=a.map;var b=a.a();sg(b,-1);var b=b.$(),c=vh(b),d=this.e-1,e=c.rotation,e=b.constrainRotation(e,0);Eh(a,b,e,void 0,void 0);c=c.resolution;c=b.constrainResolution(c,0,d);Gh(a,b,c,void 0,400);this.e=0;return!1};Nt.prototype.bb=function(a){return fg(a)&&this.f(a)?(sg(a.map.a(),1),this.a=this.d=void 0,!0):!1};Nt.prototype.fd=Be;function Ot(a){Hh.call(this);this.D=s(a.deleteCondition)?a.deleteCondition:Ee(cg,bg);this.r=this.d=null;this.t=[0,0];this.a=new Bm;this.f=s(a.pixelTolerance)?a.pixelTolerance:10;this.p=!1;this.e=null;this.k=new Ri({style:s(a.style)?a.style:Pt()});this.o={Point:this.Gi,LineString:this.Ze,LinearRing:this.Ze,Polygon:this.Hi,MultiPoint:this.Ei,MultiLineString:this.Di,MultiPolygon:this.Fi,GeometryCollection:this.Ci};this.n=a.features;this.n.forEach(this.De,this);x(this.n,"add",this.Yf,!1,this);x(this.n,
|
|
"remove",this.Zf,!1,this)}v(Ot,Hh);l=Ot.prototype;l.De=function(a){var b=a.Q();s(this.o[b.I()])&&this.o[b.I()].call(this,a,b);a=this.i;null===a||Qt(this,this.t,a)};l.setMap=function(a){this.k.setMap(a);Ot.K.setMap.call(this,a)};l.Yf=function(a){this.De(a.element)};l.Zf=function(a){var b=a.element;a=this.a;var c,d=[];Em(a,b.Q().C(),function(a){b===a.feature&&d.push(a)});for(c=d.length-1;0<=c;--c)a.remove(d[c]);null!==this.d&&0===this.n.Cb()&&(this.k.$c(this.d),this.d=null)};
|
|
l.Gi=function(a,b){var c=b.G(),c={feature:a,geometry:b,da:[c,c]};Im(this.a,b.C(),c)};l.Ei=function(a,b){var c=b.G(),d,e,f;e=0;for(f=c.length;e<f;++e)d=c[e],d={feature:a,geometry:b,depth:[e],index:e,da:[d,d]},Im(this.a,b.C(),d)};l.Ze=function(a,b){var c=b.G(),d,e,f,g;d=0;for(e=c.length-1;d<e;++d)f=c.slice(d,d+2),g={feature:a,geometry:b,index:d,da:f},Im(this.a,tg(f),g)};
|
|
l.Di=function(a,b){var c=b.G(),d,e,f,g,h,m,n;g=0;for(h=c.length;g<h;++g)for(d=c[g],e=0,f=d.length-1;e<f;++e)m=d.slice(e,e+2),n={feature:a,geometry:b,depth:[g],index:e,da:m},Im(this.a,tg(m),n)};l.Hi=function(a,b){var c=b.G(),d,e,f,g,h,m,n;g=0;for(h=c.length;g<h;++g)for(d=c[g],e=0,f=d.length-1;e<f;++e)m=d.slice(e,e+2),n={feature:a,geometry:b,depth:[g],index:e,da:m},Im(this.a,tg(m),n)};
|
|
l.Fi=function(a,b){var c=b.G(),d,e,f,g,h,m,n,p,q,r;m=0;for(n=c.length;m<n;++m)for(p=c[m],g=0,h=p.length;g<h;++g)for(d=p[g],e=0,f=d.length-1;e<f;++e)q=d.slice(e,e+2),r={feature:a,geometry:b,depth:[g,m],index:e,da:q},Im(this.a,tg(q),r)};l.Ci=function(a,b){var c,d=b.a;for(c=0;c<d.length;++c)this.o[d[c].I()].call(this,a,d[c])};function Rt(a,b){var c=a.d;null===c?(c=new I(new hi(b)),a.d=c,a.k.xe(c)):c.Q().R(b)}
|
|
l.bb=function(a){Qt(this,a.pixel,a.map);this.e=[];var b=this.d;if(null!==b){a=[];var b=b.Q().G(),c=tg([b]),d=[];Fm(this.a,c,function(a){d.push(a)},void 0);for(var c={},e=0,f=d.length;e<f;++e){var g=d[e],h=g.da;sa(g.feature)in c||(c[sa(g.feature)]=!0);$e(h[0],b)?this.e.push([g,0]):$e(h[1],b)?this.e.push([g,1]):sa(h)in this.r&&a.push([g,b])}for(e=a.length-1;0<=e;--e)this.wg.apply(this,a[e])}return null!==this.d};
|
|
l.nb=function(a){a=a.coordinate;for(var b=0,c=this.e.length;b<c;++b){var d=this.e[b],e=d[0],f=e.depth,g=e.geometry,h=g.G(),m=e.da,d=d[1];switch(g.I()){case "Point":h=a;m[0]=m[1]=a;break;case "MultiPoint":h[e.index]=a;m[0]=m[1]=a;break;case "LineString":h[e.index+d]=a;m[d]=a;break;case "MultiLineString":h[f[0]][e.index+d]=a;m[d]=a;break;case "Polygon":h[f[0]][e.index+d]=a;m[d]=a;break;case "MultiPolygon":h[f[1]][f[0]][e.index+d]=a,m[d]=a}g.R(h);Rt(this,a)}};
|
|
l.cb=function(){for(var a,b=this.e.length-1;0<=b;--b)a=this.e[b][0],this.a.update(tg(a.da),a);return!1};
|
|
l.Fa=function(a){var b,c=a.map.a();Db(c.n)[1]||a.type!=Yf||(this.t=a.pixel,Qt(this,a.pixel,a.map));if(null!==this.d&&this.p&&this.D(a)){this.d.Q();b=this.e;var c={},d=!1,e,f,g,h,m,n,p,q,r;for(m=b.length-1;0<=m;--m)if(g=b[m],q=g[0],h=q.geometry,f=h.G(),r=sa(q.feature),e=p=n=void 0,0===g[1]?(p=q,n=q.index):1==g[1]&&(e=q,n=q.index+1),r in c||(c[r]=[e,p,n]),g=c[r],s(e)&&(g[0]=e),s(p)&&(g[1]=p),s(g[0])&&s(g[1])){e=f;d=!1;p=n-1;switch(h.I()){case "MultiLineString":f[q.depth[0]].splice(n,1);d=!0;break;case "LineString":f.splice(n,
|
|
1);d=!0;break;case "MultiPolygon":e=e[q.depth[1]];case "Polygon":e=e[q.depth[0]],4<e.length&&(n==e.length-1&&(n=0),e.splice(n,1),d=!0,0===n&&(e.pop(),e.push(e[0]),p=e.length-1))}d&&(this.a.remove(g[0]),this.a.remove(g[1]),h.R(f),f={depth:q.depth,feature:q.feature,geometry:q.geometry,index:p,da:[g[0].da[0],g[1].da[1]]},Im(this.a,tg(f.da),f),St(this,h,n,q.depth,-1),this.k.$c(this.d),this.d=null)}b=d}return Ot.K.Fa.call(this,a)&&!b};
|
|
function Qt(a,b,c){function d(a,b){return bf(e,Xe(e,a.da))-bf(e,Xe(e,b.da))}var e=c.Ba(b),f=c.Ba([b[0]-a.f,b[1]+a.f]),g=c.Ba([b[0]+a.f,b[1]-a.f]),f=tg([f,g]),f=Hm(a.a,f);if(0<f.length){f.sort(d);var g=f[0].da,h=Xe(e,g),m=c.f(h);if(Math.sqrt(bf(b,m))<=a.f){b=c.f(g[0]);c=c.f(g[1]);b=bf(m,b);c=bf(m,c);a.p=Math.sqrt(Math.min(b,c))<=a.f;a.p&&(h=b>c?g[1]:g[0]);Rt(a,h);c={};c[sa(g)]=!0;b=1;for(m=f.length;b<m;++b)if(h=f[b].da,$e(g[0],h[0])&&$e(g[1],h[1])||$e(g[0],h[1])&&$e(g[1],h[0]))c[sa(h)]=!0;else break;
|
|
a.r=c;return}}null!==a.d&&(a.k.$c(a.d),a.d=null)}
|
|
l.wg=function(a,b){var c=a.da,d=a.feature,e=a.geometry,f=a.depth,g=a.index,h;switch(e.I()){case "MultiLineString":h=e.G();h[f[0]].splice(g+1,0,b);break;case "Polygon":h=e.G();h[f[0]].splice(g+1,0,b);break;case "MultiPolygon":h=e.G();h[f[1]][f[0]].splice(g+1,0,b);break;case "LineString":h=e.G();h.splice(g+1,0,b);break;default:return}e.R(h);h=this.a;h.remove(a);St(this,e,g,f,1);var m={da:[c[0],b],feature:d,geometry:e,depth:f,index:g};Im(h,tg(m.da),m);this.e.push([m,1]);c={da:[b,c[1]],feature:d,geometry:e,
|
|
depth:f,index:g+1};Im(h,tg(c.da),c);this.e.push([c,0])};l.fd=Be;function St(a,b,c,d,e){Em(a.a,b.C(),function(a){a.geometry===b&&((!s(d)||Jb(a.depth,d))&&a.index>c)&&(a.index+=e)})}function Pt(){var a=Qi();return function(){return a.Point}};function Tt(a){Dh.call(this);a=s(a)?a:{};this.e=s(a.condition)?a.condition:bg;this.d=s(a.addCondition)?a.addCondition:ze;this.f=s(a.removeCondition)?a.removeCondition:ze;this.g=s(a.toggleCondition)?a.toggleCondition:dg;var b;if(s(a.layers))if(qa(a.layers))b=a.layers;else{var c=a.layers;b=function(a){return 0<=vb(c,a)}}else b=Ae;this.b=b;this.a=new Ri({style:s(a.style)?a.style:Ut()});a=this.a.a;x(a,"add",this.ih,!1,this);x(a,"remove",this.ji,!1,this)}v(Tt,Dh);l=Tt.prototype;l.jh=function(){return this.a.a};
|
|
l.Fa=function(a){if(!this.e(a))return!0;var b=this.d(a),c=this.f(a),d=this.g(a),e=a.map,f=this.a.a;b||c||d?e.Dd(a.pixel,function(a){var e=vb(f.a,a);-1==e?(b||d)&&f.push(a):(c||d)&&f.cd(e)},void 0,this.b):(a=e.Dd(a.pixel,aa(),void 0,this.b),s(a)&&1==f.Cb()&&f.item(0)==a||(0!==f.Cb()&&f.clear(),s(a)&&f.push(a)));return!1};l.setMap=function(a){var b=this.i,c=this.a.a;null===b||c.forEach(b.$b,b);Tt.K.setMap.call(this,a);this.a.setMap(a);null===a||c.forEach(a.hb,a)};
|
|
function Ut(){var a=Qi();Eb(a.Polygon,a.LineString);Eb(a.GeometryCollection,a.LineString);return function(b){return a[b.Q().I()]}}l.ih=function(a){a=a.element;var b=this.i;null===b||b.hb(a)};l.ji=function(a){a=a.element;var b=this.i;null===b||b.$b(a)};function $(a){a=s(a)?a:{};Q.call(this,a);this.ga=null;x(this,Qe("gradient"),this.hd,!1,this);this.Dc(s(a.gradient)?a.gradient:Vt);var b=Wt(s(a.radius)?a.radius:8,s(a.blur)?a.blur:15,s(a.shadow)?a.shadow:250),c=Array(256),d=s(a.weight)?a.weight:"weight",e;e=na(d)?function(a){return a.get(d)}:d;this.ia(function(a){a=e(a);a=s(a)?Xb(a,0,1):1;var d=255*a|0,h=c[d];s(h)||(h=[new Mi({image:new tk({opacity:a,src:b})})],c[d]=h);return h});this.s("renderOrder",null);x(this,"render",this.jd,!1,this)}v($,Q);
|
|
var Vt=["#00f","#0ff","#0f0","#ff0","#f00"];function Wt(a,b,c){var d=a+b+1,e=2*d,e=td(e,e);e.shadowOffsetX=e.shadowOffsetY=c;e.shadowBlur=b;e.shadowColor="#000";e.beginPath();b=d-c;e.arc(b,b,a,0,2*Math.PI,!0);e.fill();return e.canvas.toDataURL()}$.prototype.Ka=function(){return this.get("gradient")};$.prototype.getGradient=$.prototype.Ka;
|
|
$.prototype.hd=function(){for(var a=this.Ka(),b=td(1,256),c=b.createLinearGradient(0,0,1,256),d=1/(a.length-1),e=0,f=a.length;e<f;++e)c.addColorStop(e*d,a[e]);b.fillStyle=c;b.fillRect(0,0,1,256);this.ga=b.getImageData(0,0,1,256).data};$.prototype.jd=function(a){a=a.context;var b=a.canvas,b=a.getImageData(0,0,b.width,b.height),c=b.data,d,e,f;d=0;for(e=c.length;d<e;d+=4)if(f=4*c[d+3])c[d]=this.ga[f],c[d+1]=this.ga[f+1],c[d+2]=this.ga[f+2];a.putImageData(b,0,0)};
|
|
$.prototype.Dc=function(a){this.s("gradient",a)};$.prototype.setGradient=$.prototype.Dc;function Xt(a){return[a]};var Yt=new function(a,b){this.b=a;this.d=b;this.e=this.b*(1-this.d);this.a=2*b-b*b;this.c=Math.sqrt(this.a)}(6377397.155,1/299.15281285);function Zt(a){Xg.call(this,{code:a.code,extent:a.extent,global:!1,units:"m"})}v(Zt,Xg);var $t=Zb(169028.66/3600),au=Math.sin($t);Math.log(Math.tan(Math.PI/4+Math.asin(au/Math.sqrt(1+Yt.a*Math.pow(Math.cos($t),4)/(1-Yt.a)))/2));Math.log(Math.tan(Math.PI/4+$t/2));Math.log((1+Yt.c*au)/(1-Yt.c*au));Zt.prototype.d=aa();function bu(){Zt.call(this,{code:"EPSG:2056",extent:cu})}v(bu,Zt);var cu=[2485869.5728,1076443.1884,2837076.5648,1299941.7864];
|
|
function du(){Zt.call(this,{code:"EPSG:21781",extent:eu})}v(du,Zt);var eu=[485869.5728,76443.1884,837076.5648,299941.7864];function fu(a,b){var c=b||{},d=c.document||document,e=zc("SCRIPT"),f={Qe:e,Hb:void 0},g=new xt(gu,f),h=null,m=null!=c.timeout?c.timeout:5E3;0<m&&(h=window.setTimeout(function(){hu(e,!0);var b=new iu(ju,"Timeout reached for loading script "+a);zt(g);At(g,!1,b)},m),f.Hb=h);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(hu(e,c.rf||!1,h),zt(g),At(g,!0,null))};e.onerror=function(){hu(e,!0,h);var b=new iu(ku,"Error while loading script "+a);zt(g);
|
|
At(g,!1,b)};sc(e,{type:"text/javascript",charset:"UTF-8",src:a});lu(d).appendChild(e);return g}function lu(a){var b=a.getElementsByTagName("HEAD");return b&&0!=b.length?b[0]:a.documentElement}function gu(){if(this&&this.Qe){var a=this.Qe;a&&"SCRIPT"==a.tagName&&hu(a,!0,this.Hb)}}function hu(a,b,c){null!=c&&ea.clearTimeout(c);a.onload=fa;a.onerror=fa;a.onreadystatechange=fa;b&&window.setTimeout(function(){Ec(a)},0)}var ku=0,ju=1;
|
|
function iu(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);tb.call(this,c);this.code=a}v(iu,tb);function mu(a,b){this.c=new ej(a);this.a=b?b:"callback";this.Hb=5E3}var nu=0;function ou(a,b,c){var d=b||null;b="_"+(nu++).toString(36)+Aa().toString(36);ea._callbacks_||(ea._callbacks_={});var e=a.c.S();if(d)for(var f in d)d.hasOwnProperty&&!d.hasOwnProperty(f)||rj(e,f,d[f]);c&&(ea._callbacks_[b]=pu(b,c),rj(e,a.a,"_callbacks_."+b));a=fu(e.toString(),{timeout:a.Hb,rf:!0});a.a.push([null,qu(b),void 0]);a.jb&&Bt(a)}mu.prototype.cancel=function(a){a&&(a.sf&&a.sf.cancel(),a.ba&&ru(a.ba,!1))};
|
|
function qu(a){return function(){ru(a,!1)}}function pu(a,b){return function(c){ru(a,!0);b.apply(void 0,arguments)}}function ru(a,b){ea._callbacks_[a]&&(b?delete ea._callbacks_[a]:ea._callbacks_[a]=fa)};function su(a){return function(b){return null===b?void 0:a.replace("{z}",b.a.toString()).replace("{x}",b.x.toString()).replace("{y}",b.y.toString()).replace("{-y}",function(){return((1<<b.a)-b.y-1).toString()})}}function tu(a){return uu(xb(a,su))}function uu(a){return 1===a.length?a[0]:function(b,c,d){return null===b?void 0:a[Yb((b.x<<b.a)+b.y,a.length)](b,c,d)}}function vu(){}function wu(a,b){var c=new Lb(0,0,0);return function(d,e,f){return null===d?void 0:b(a(d,f,c),e,f)}}
|
|
function xu(a){var b=[],c=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(c){var d=c[2].charCodeAt(0),e;for(e=c[1].charCodeAt(0);e<=d;++e)b.push(a.replace(c[0],String.fromCharCode(e)))}else b.push(a);return b};function yu(a){In.call(this);this.d=s(a)?a:2048}v(yu,In);function zu(a,b){for(var c,d;a.La()>a.d&&!(c=a.a.Jb,d=c.a.a.toString(),d in b&&b[d].contains(c.a));)a.pop()};function Au(a){hk.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,opaque:a.opaque,pixelRatio:a.pixelRatio,projection:a.projection,tileGrid:a.tileGrid});this.tileUrlFunction=s(a.tileUrlFunction)?a.tileUrlFunction:vu;this.crossOrigin=s(a.crossOrigin)?a.crossOrigin:null;this.b=new yu;this.tileLoadFunction=s(a.tileLoadFunction)?a.tileLoadFunction:Bu;this.tileClass=s(a.tileClass)?a.tileClass:co}v(Au,hk);function Bu(a,b){a.b().src=b}l=Au.prototype;l.Fd=function(){return this.b.La()>this.b.d};
|
|
l.Ee=function(a){zu(this.b,a)};l.Pb=function(a,b,c,d,e){var f=this.lb(a,b,c);if(Gn(this.b,f))return this.b.get(f);a=new Lb(a,b,c);d=this.tileUrlFunction(a,d,e);d=new this.tileClass(a,s(d)?0:4,s(d)?d:"",this.crossOrigin,this.tileLoadFunction);Jn(this.b,f,d);return d};l.Ma=k("tileLoadFunction");l.Na=k("tileUrlFunction");l.Sa=function(a){this.b.clear();this.tileLoadFunction=a;this.l()};l.Ga=function(a){this.b.clear();this.tileUrlFunction=a;this.l()};
|
|
l.Xe=function(a,b,c){a=this.lb(a,b,c);Gn(this.b,a)&&this.b.get(a)};function Cu(a){var b=Array(a.maxZoom+1),c,d=2*fl/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);ak.call(this,{minZoom:a.minZoom,origin:[-fl,fl],resolutions:b,tileSize:256})}v(Cu,ak);
|
|
Cu.prototype.c=function(a){a=s(a)?a:{};var b=this.minZoom,c=this.maxZoom,d=s(a.wrapX)?a.wrapX:!0,e=new Lb(0,0,0),f=null;if(s(a.extent)){var f=Array(c+1),g;for(g=0;g<=c;++g)f[g]=g<b?null:dk(this,a.extent,g)}return function(a,g,n){g=a.a;if(g<b||c<g)return null;var p=Math.pow(2,g),q=a.x;if(d)q=Yb(q,p);else if(0>q||p<=q)return null;a=a.y;return a<-p||-1<a||null!==f&&(e.a=g,e.x=q,e.y=a,!f[g].contains(e))?null:Mb(g,q,-a-1,n)}};
|
|
Cu.prototype.Qc=function(a,b){return a.a<this.maxZoom?Qb(2*a.x,2*(a.x+1),2*a.y,2*(a.y+1),b):null};Cu.prototype.Mc=function(a,b,c,d){d=Qb(0,a.x,0,a.y,d);for(a=a.a-1;a>=this.minZoom;--a)if(d.a=d.d>>=1,d.b=d.c>>=1,b.call(c,a,d))return!0;return!1};function Du(a){Au.call(this,{crossOrigin:"anonymous",opaque:!0,projection:qh("EPSG:3857"),state:0,tileLoadFunction:a.tileLoadFunction});this.d=s(a.culture)?a.culture:"en-us";var b=new ej((rb?"https:":"http:")+"//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.imagerySet);ou(new mu(b,"jsonp"),{include:"ImageryProviders",key:a.key},xa(this.e,this))}v(Du,Au);var Eu=new Rb({html:'\x3ca class\x3d"ol-attribution-bing-tos" target\x3d"_blank" href\x3d"http://www.microsoft.com/maps/product/terms.html"\x3eTerms of Use\x3c/a\x3e'});
|
|
Du.prototype.e=function(a){if(200!=a.statusCode||"OK"!=a.statusDescription||"ValidCredentials"!=a.authenticationResultCode||1!=a.resourceSets.length||1!=a.resourceSets[0].resources.length)Uj(this,2);else{var b=a.brandLogoUri,c=a.resourceSets[0].resources[0],d=new Cu({minZoom:c.zoomMin,maxZoom:c.zoomMax,tileSize:c.imageWidth});this.tileGrid=d;var e=this.d;this.tileUrlFunction=wu(d.c(),uu(xb(c.imageUrlSubdomains,function(a){var b=c.imageUrl.replace("{subdomain}",a).replace("{culture}",e);return function(a){return null===
|
|
a?void 0:b.replace("{quadkey}",Ob(a))}})));if(c.imageryProviders){var f=$g(qh("EPSG:4326"),this.o);a=xb(c.imageryProviders,function(a){var b=a.attribution,c={};wb(a.coverageAreas,function(a){var b=a.zoomMin,e=a.zoomMax;a=a.bbox;a=Rg([a[1],a[0],a[3],a[2]],f);var g,h;for(g=b;g<=e;++g)h=g.toString(),b=dk(d,a,g),h in c?c[h].push(b):c[h]=[b]});return new Rb({html:b,tileRanges:c})});a.push(Eu);this.i=a}this.t=b;Uj(this,1)}};function Fu(a,b,c){if(qa(a))c&&(a=xa(a,c));else if(a&&"function"==typeof a.handleEvent)a=xa(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:ea.setTimeout(a,b||0)};function Gu(){}Gu.prototype.a=null;function Hu(a){var b;(b=a.a)||(b={},Iu(a)&&(b[0]=!0,b[1]=!0),b=a.a=b);return b};var Ju;function Ku(){}v(Ku,Gu);function Lu(a){return(a=Iu(a))?new ActiveXObject(a):new XMLHttpRequest}function Iu(a){if(!a.c&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.c=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.c}Ju=new Ku;function Mu(a){He.call(this);this.D=new Vi;this.k=a||null;this.a=!1;this.g=this.L=null;this.F=this.o="";this.b=0;this.e="";this.c=this.t=this.q=this.n=!1;this.i=0;this.d=null;this.f=Nu;this.p=this.N=!1}v(Mu,He);var Nu="",Ou=/^https?$/i,Pu=["POST","PUT"];
|
|
function Qu(a,b){if(a.L)throw Error("[goog.net.XhrIo] Object is active with another request\x3d"+a.o+"; newUri\x3d"+b);a.o=b;a.e="";a.b=0;a.F="GET";a.n=!1;a.a=!0;a.L=a.k?Lu(a.k):Lu(Ju);a.g=a.k?Hu(a.k):Hu(Ju);a.L.onreadystatechange=xa(a.r,a);try{a.t=!0,a.L.open("GET",b,!0),a.t=!1}catch(c){Ru(a,c);return}var d=a.D.S(),e=zb(d.M(),Su),f=ea.FormData&&!1;!(0<=vb(Pu,"GET"))||(e||f)||Wi(d,"Content-Type","application/x-www-form-urlencoded;charset\x3dutf-8");Ui(d,function(a,b){this.L.setRequestHeader(b,a)},
|
|
a);a.f&&(a.L.responseType=a.f);"withCredentials"in a.L&&(a.L.withCredentials=a.N);try{Tu(a),0<a.i&&(a.p=ab&&ob(9)&&oa(a.L.timeout)&&s(a.L.ontimeout),a.p?(a.L.timeout=a.i,a.L.ontimeout=xa(a.Hb,a)):a.d=Fu(a.Hb,a.i,a)),a.q=!0,a.L.send(""),a.q=!1}catch(g){Ru(a,g)}}function Su(a){return"content-type"==a.toLowerCase()}
|
|
Mu.prototype.Hb=function(){"undefined"!=typeof da&&this.L&&(this.e="Timed out after "+this.i+"ms, aborting",this.b=8,A(this,"timeout"),this.L&&this.a&&(this.a=!1,this.c=!0,this.L.abort(),this.c=!1,this.b=8,A(this,"complete"),A(this,"abort"),Uu(this)))};function Ru(a,b){a.a=!1;a.L&&(a.c=!0,a.L.abort(),a.c=!1);a.e=b;a.b=5;Vu(a);Uu(a)}function Vu(a){a.n||(a.n=!0,A(a,"complete"),A(a,"error"))}Mu.prototype.H=function(){this.L&&(this.a&&(this.a=!1,this.c=!0,this.L.abort(),this.c=!1),Uu(this,!0));Mu.K.H.call(this)};
|
|
Mu.prototype.r=function(){if(!this.Ta&&this.a&&"undefined"!=typeof da&&(!this.g[1]||4!=Wu(this)||2!=Xu(this)))if(this.q&&4==Wu(this))Fu(this.r,0,this);else if(A(this,"readystatechange"),4==Wu(this)){this.a=!1;try{if(Yu(this))A(this,"complete"),A(this,"success");else{this.b=6;var a;try{a=2<Wu(this)?this.L.statusText:""}catch(b){a=""}this.e=a+" ["+Xu(this)+"]";Vu(this)}}finally{Uu(this)}}};
|
|
function Uu(a,b){if(a.L){Tu(a);var c=a.L,d=a.g[0]?fa:null;a.L=null;a.g=null;b||A(a,"ready");try{c.onreadystatechange=d}catch(e){}}}function Tu(a){a.L&&a.p&&(a.L.ontimeout=null);oa(a.d)&&(ea.clearTimeout(a.d),a.d=null)}
|
|
function Yu(a){var b=Xu(a),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}if(!c){if(b=0===b)a=$i(String(a.o))[1]||null,!a&&self.location&&(a=self.location.protocol,a=a.substr(0,a.length-1)),b=!Ou.test(a?a.toLowerCase():"");c=b}return c}function Wu(a){return a.L?a.L.readyState:0}function Xu(a){try{return 2<Wu(a)?a.L.status:-1}catch(b){return-1}}function Zu(a){try{return a.L?a.L.responseText:""}catch(b){return""}}
|
|
function $u(a){try{if(!a.L)return null;if("response"in a.L)return a.L.response;switch(a.f){case Nu:case "text":return a.L.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.L)return a.L.mozResponseArrayBuffer}return null}catch(b){return null}};function av(a){Lm.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection});this.format=a.format}v(av,Lm);
|
|
function bv(a,b,c,d){var e=new Mu;e.f="binary"==a.format.I()&&Bd?"arraybuffer":"text";x(e,"complete",function(a){a=a.target;if(Yu(a)){var b=this.format.I(),e;if("binary"==b&&Bd)e=$u(a);else if("json"==b)e=Zu(a);else if("text"==b)e=Zu(a);else if("xml"==b){if(!ab)try{e=a.L?a.L.responseXML:null}catch(m){e=null}null!=e||(e=jp(Zu(a)))}null!=e?c.call(d,this.f(e)):Uj(this,2)}else Uj(this,2);Pd(a)},!1,a);Qu(e,b)}
|
|
av.prototype.f=function(a){var b=this.format,c=b.ra(a);a=b.oa(a);b=this.o;if(null!==b&&null!==a&&a!==b&&(a.Ja!=b.Ja||$g(a,b)!==ih)){a=rh(a,b);var d,b=0;for(d=c.length;b<d;++b){var e=c[b].Q();null!=e&&e.vb(a)}}return c};function cv(a){av.call(this,{attributions:a.attributions,extent:a.extent,format:a.format,logo:a.logo,projection:a.projection});s(a.arrayBuffer)&&this.wa(this.f(a.arrayBuffer));s(a.doc)&&this.wa(this.f(a.doc));s(a.node)&&this.wa(this.f(a.node));s(a.object)&&this.wa(this.f(a.object));s(a.text)&&this.wa(this.f(a.text));if(s(a.url)||s(a.urls))if(Uj(this,0),s(a.url)&&bv(this,a.url,function(a){this.wa(a);Uj(this,1)},this),s(a.urls)){a=a.urls;var b,c;b=0;for(c=a.length;b<c;++b)bv(this,a[b],function(a){this.wa(a);
|
|
Uj(this,1)},this)}}v(cv,av);function dv(a){a=s(a)?a:{};cv.call(this,{attributions:a.attributions,doc:a.doc,extent:a.extent,format:new Pq,logo:a.logo,node:a.node,projection:a.projection,text:a.text,url:a.url,urls:a.urls})}v(dv,cv);function ev(a){a=s(a)?a:{};cv.call(this,{attributions:a.attributions,extent:a.extent,format:new wr({defaultProjection:a.defaultProjection}),logo:a.logo,object:a.object,projection:a.projection,text:a.text,url:a.url,urls:a.urls})}v(ev,cv);function fv(a){a=s(a)?a:{};cv.call(this,{format:new Fr({altitudeMode:a.altitudeMode}),projection:a.projection,text:a.text,url:a.url,urls:a.urls})}v(fv,cv);function gv(a,b,c,d,e){Wj.call(this,a,b,c,2,d);this.a=e}v(gv,Wj);gv.prototype.e=k("a");function hv(a){Al.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,resolutions:a.resolutions,state:a.state});this.p=a.canvasFunction;this.g=null;this.n=0;this.r=s(a.ratio)?a.ratio:1.5}v(hv,Al);hv.prototype.Ub=function(a,b,c,d){b=Bl(this,b);var e=this.g;if(null!==e&&this.n==this.c&&e.d==b&&e.b==c&&Ag(e.C(),a))return e;a=a.slice();Pg(a,this.r);d=this.p(a,b,c,[Kg(a)/b*c,Ig(a)/b*c],d);null===d||(e=new gv(a,b,c,this.i,d));this.g=e;this.n=this.c;return e};function iv(a){var b=s(a.attributions)?a.attributions:null,c=s(a.crossOrigin)?a.crossOrigin:null,d=a.imageExtent,e=(d[3]-d[1])/a.imageSize[1],f=a.url,g=qh(a.projection);Al.call(this,{attributions:b,extent:a.extent,logo:a.logo,projection:g,resolutions:[e]});this.b=new Xj(d,e,1,b,f,c)}v(iv,Al);iv.prototype.Ub=function(a){return Mg(a,this.b.C())?this.b:null};function jv(a){this.d=a.source;this.mh=s(a.style)?Pi(a.style):Oi;this.D=kd();this.b=td();this.e=[0,0];this.f=null;hv.call(this,{attributions:a.attributions,canvasFunction:xa(this.pf,this),extent:a.extent,logo:a.logo,projection:a.projection,ratio:a.ratio,resolutions:a.resolutions,state:this.d.k});x(this.d,"change",this.ph,void 0,this)}v(jv,hv);l=jv.prototype;
|
|
l.pf=function(a,b,c,d){var e=new Ul(b/(2*c),a,b),f=!1;this.d.Lc(a,b,function(a){var d;if(!(d=f))if(d=this.mh(a,b),null!=d){var m=b*b/(4*c*c),n,p,q=!1;n=0;for(p=d.length;n<p;++n)q=tm(e,a,d[n],m,a,this.oh,this)||q;d=q}else d=!1;f=d},this);Yl(e);if(f)return null;this.e[0]!=d[0]||this.e[1]!=d[1]?(this.b.canvas.width=d[0],this.b.canvas.height=d[1],this.e[0]=d[0],this.e[1]=d[1]):this.b.clearRect(0,0,d[0],d[1]);d=xk(this.D,d[0]/2,d[1]/2,c/b,-c/b,0,-Gg(a)[0],-Gg(a)[1]);Vl(e,this.b,a,c,d,0,{});this.f=e;return this.b.canvas};
|
|
l.bd=function(a,b,c,d,e,f){return null===this.f?void 0:Xl(this.f,a,b,0,d,e,function(a,b){return f(b)})};l.nh=k("d");l.oh=function(){this.l()};l.ph=function(){Uj(this,this.d.k)};function kv(a){a=s(a)?a:{};Al.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,resolutions:a.resolutions});this.W=s(a.crossOrigin)?a.crossOrigin:null;this.e=a.url;this.d=a.params;this.f=!0;lv(this);this.F=a.serverType;this.ea=s(a.hidpi)?a.hidpi:!0;this.b=null;this.g=[0,0];this.n=null;this.r=NaN;this.D=0;this.p=s(a.ratio)?a.ratio:1.5}v(kv,Al);l=kv.prototype;
|
|
l.qh=function(a,b,c,d){if(s(this.e)&&null!==this.b&&b==this.r&&(c===this.n||(c.Ja!=this.n.Ja?0:$g(c,this.n)===ih))){var e=this.b.C(),f=this.b.b,g={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:w(this.d,"LAYERS")};nc(g,this.d,d);b/=f;d=Math.floor((e[3]-a[1])/b);g[this.f?"I":"X"]=Math.floor((a[0]-e[0])/b);g[this.f?"J":"Y"]=d;return mv(this,e,this.g,f,c,g)}};l.rh=k("d");
|
|
l.Ub=function(a,b,c,d){if(!s(this.e))return null;b=Bl(this,b);1==c||this.ea&&s(this.F)||(c=1);var e=this.b;if(null!==e&&this.D==this.c&&e.d==b&&e.b==c&&Ag(e.C(),a))return e;e={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};nc(e,this.d);a=a.slice();var f=(a[0]+a[2])/2,g=(a[1]+a[3])/2;if(1!=this.p){var h=this.p*Kg(a)/2,m=this.p*Ig(a)/2;a[0]=f-h;a[1]=g-m;a[2]=f+h;a[3]=g+m}var h=b/c,m=Math.ceil(Kg(a)/h),n=Math.ceil(Ig(a)/h);a[0]=f-h*m/2;a[2]=f+h*m/2;a[1]=g-h*n/2;a[3]=
|
|
g+h*n/2;this.g[0]=m;this.g[1]=n;e=mv(this,a,this.g,c,d,e);this.b=new Xj(a,b,c,this.i,e,this.W);this.n=d;this.r=b;this.D=this.c;return this.b};
|
|
function mv(a,b,c,d,e,f){f[a.f?"CRS":"SRS"]=e.a;"STYLES"in a.d||(f.STYLES=new String(""));if(1!=d)switch(a.F){case "geoserver":f.FORMAT_OPTIONS="dpi:"+(90*d+0.5|0);break;case "mapserver":f.MAP_RESOLUTION=90*d;break;case "carmentaserver":case "qgis":f.DPI=90*d}f.WIDTH=c[0];f.HEIGHT=c[1];c=e.e;f.BBOX=(a.f&&"ne"==c.substr(0,2)?[b[1],b[0],b[3],b[2]]:b).join(",");return bj(dj([a.e],f))}l.sh=k("e");l.th=function(a){a!=this.e&&(this.e=a,this.b=null,this.l())};
|
|
l.uh=function(a){nc(this.d,a);lv(this);this.b=null;this.l()};function lv(a){a.f=0<=Ka(w(a.d,"VERSION","1.3.0"),"1.3")};function nv(a){a=s(a)?a:{};cv.call(this,{attributions:a.attributions,doc:a.doc,extent:a.extent,format:new Jr({defaultStyle:a.defaultStyle}),logo:a.logo,node:a.node,projection:a.projection,text:a.text,url:a.url,urls:a.urls})}v(nv,cv);function ov(a,b,c){return function(d,e,f){return c(a,b,d,e,f)}}function pv(){};function qv(a){Al.call(this,{extent:a.extent,projection:a.projection,resolutions:a.resolutions});this.n=s(a.crossOrigin)?a.crossOrigin:null;this.b=s(a.displayDpi)?a.displayDpi:96;this.f=s(a.url)?ov(a.url,s(a.params)?a.params:{},xa(this.r,this)):pv;this.p=s(a.hidpi)?a.hidpi:!0;this.g=s(a.metersPerUnit)?a.metersPerUnit:1;this.e=s(a.ratio)?a.ratio:1;this.D=s(a.useOverlay)?a.useOverlay:!1;this.d=null}v(qv,Al);
|
|
qv.prototype.Ub=function(a,b,c,d){b=Bl(this,b);c=this.p?c:1;var e=this.d;if(null!==e&&e.d==b&&e.b==c&&Ag(e.C(),a))return e;1!=this.e&&(a=a.slice(),Pg(a,this.e));d=this.f(a,[Kg(a)/b*c,Ig(a)/b*c],d);return this.d=e=s(d)?new Xj(a,b,c,this.i,d,this.n):null};
|
|
qv.prototype.r=function(a,b,c,d){var e;e=this.g;var f=Kg(c),g=Ig(c),h=d[0],m=d[1],n=0.0254/this.b;e=m*f>h*g?f*e/(h*n):g*e/(m*n);c=Gg(c);d={OPERATION:this.D?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.MapGuide source",CLIP:"1",SETDISPLAYDPI:this.b,SETDISPLAYWIDTH:Math.round(d[0]),SETDISPLAYHEIGHT:Math.round(d[1]),SETVIEWSCALE:e,SETVIEWCENTERX:c[0],SETVIEWCENTERY:c[1]};nc(d,b);return bj(dj([a],d))};function rv(a){var b=s(a.projection)?a.projection:"EPSG:3857",c=new Cu({maxZoom:s(a.maxZoom)?a.maxZoom:18});Au.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,projection:b,tileGrid:c,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:vu});this.e=c.c({extent:a.extent,wrapX:a.wrapX});s(a.tileUrlFunction)?this.Ga(a.tileUrlFunction):s(a.urls)?this.Ga(tu(a.urls)):s(a.url)&&this.d(a.url)}v(rv,Au);rv.prototype.Ga=function(a){rv.K.Ga.call(this,wu(this.e,a))};
|
|
rv.prototype.d=function(a){this.Ga(tu(xu(a)))};function sv(a){a=s(a)?a:{};var b=rb?"https:":"http:";rv.call(this,{attributions:s(a.attributions)?a.attributions:tv,crossOrigin:s(a.crossOrigin)?a.crossOrigin:"anonymous",opaque:!0,maxZoom:a.maxZoom,tileLoadFunction:a.tileLoadFunction,url:s(a.url)?a.url:b+"//{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}v(sv,rv);
|
|
var uv=new Rb({html:'Data \x26copy; \x3ca href\x3d"http://www.openstreetmap.org/"\x3eOpenStreetMap\x3c/a\x3e contributors, \x3ca href\x3d"http://www.openstreetmap.org/copyright"\x3eODbL\x3c/a\x3e'}),vv=new Rb({html:'Tiles \x26copy; \x3ca href\x3d"http://www.openstreetmap.org/"\x3eOpenStreetMap\x3c/a\x3e contributors, \x3ca href\x3d"http://creativecommons.org/licenses/by-sa/2.0/"\x3eCC BY-SA\x3c/a\x3e'}),tv=[vv,uv];function wv(a){a=s(a)?a:{};var b=xv[a.layer];rv.call(this,{attributions:b.attributions,crossOrigin:"anonymous",logo:"//developer.mapquest.com/content/osm/mq_logo.png",maxZoom:b.maxZoom,opaque:!0,tileLoadFunction:a.tileLoadFunction,url:(rb?"https:":"http:")+"//otile{1-4}-s.mqcdn.com/tiles/1.0.0/"+a.layer+"/{z}/{x}/{y}.jpg"})}v(wv,rv);
|
|
var yv=new Rb({html:'Tiles Courtesy of \x3ca href\x3d"http://www.mapquest.com/" target\x3d"_blank"\x3eMapQuest\x3c/a\x3e'}),xv={osm:{maxZoom:28,attributions:[yv,uv]},sat:{maxZoom:18,attributions:[yv,new Rb({html:"Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"})]},hyb:{maxZoom:18,attributions:[yv,uv]}};function zv(a){a=s(a)?a:{};cv.call(this,{attributions:a.attributions,doc:a.doc,extent:a.extent,format:new xs,logo:a.logo,node:a.node,projection:a.projection,reprojectTo:a.reprojectTo,text:a.text,url:a.url})}v(zv,cv);function Av(a){av.call(this,{attributions:a.attributions,extent:a.extent,format:a.format,logo:a.logo,projection:a.projection});this.q=new Bm;this.r=a.loader;this.D=s(a.strategy)?a.strategy:Xt;this.n={}}v(Av,av);Av.prototype.wa=function(a){var b=[],c,d;c=0;for(d=a.length;c<d;++c){var e=a[c],f=e.ba;f in this.n||(b.push(e),this.n[f]=!0)}Av.K.wa.call(this,b)};
|
|
Av.prototype.Ad=function(a,b,c){var d=this.q;a=this.D(a,b);var e,f;e=0;for(f=a.length;e<f;++e){var g=a[e];Fm(d,g,function(a){return Ag(a.extent,g)},void 0)||(this.r.call(this,g,b,c),Im(d,g,{extent:g.slice()}))}};var Bv={terrain:{Aa:"jpg",opaque:!0},"terrain-background":{Aa:"jpg",opaque:!0},"terrain-labels":{Aa:"png",opaque:!1},"terrain-lines":{Aa:"png",opaque:!1},"toner-background":{Aa:"png",opaque:!0},toner:{Aa:"png",opaque:!0},"toner-hybrid":{Aa:"png",opaque:!1},"toner-labels":{Aa:"png",opaque:!1},"toner-lines":{Aa:"png",opaque:!1},"toner-lite":{Aa:"png",opaque:!0},watercolor:{Aa:"jpg",opaque:!0}},Cv={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:3,maxZoom:16}};
|
|
function Dv(a){var b=a.layer.indexOf("-"),b=-1==b?a.layer:a.layer.slice(0,b),c=Bv[a.layer],d=rb?"https:":"http:";rv.call(this,{attributions:Ev,crossOrigin:"anonymous",maxZoom:Cv[b].maxZoom,opaque:c.opaque,tileLoadFunction:a.tileLoadFunction,url:s(a.url)?a.url:d+"//{a-d}.tile.stamen.com/"+a.layer+"/{z}/{x}/{y}."+c.Aa})}v(Dv,rv);
|
|
var Ev=[new Rb({html:'Map tiles by \x3ca href\x3d"http://stamen.com/"\x3eStamen Design\x3c/a\x3e, under \x3ca href\x3d"http://creativecommons.org/licenses/by/3.0/"\x3eCC BY 3.0\x3c/a\x3e.'}),uv];function Fv(a,b){Zj.call(this,a,2);this.f=a;this.e=b.ka(a.a);this.c={}}v(Fv,Zj);Fv.prototype.b=function(a){a=s(a)?sa(a):-1;if(a in this.c)return this.c[a];var b=this.e,c=td(b,b);c.strokeStyle="black";c.strokeRect(0.5,0.5,b+0.5,b+0.5);c.fillStyle="black";c.textAlign="center";c.textBaseline="middle";c.font="24px sans-serif";c.fillText(this.f.toString(),b/2,b/2);return this.c[a]=c.canvas};
|
|
function Gv(a){hk.call(this,{extent:a.extent,opaque:!1,projection:a.projection,tileGrid:a.tileGrid});this.b=new yu}v(Gv,hk);Gv.prototype.Fd=function(){return this.b.La()>this.b.d};Gv.prototype.Ee=function(a){zu(this.b,a)};Gv.prototype.Pb=function(a,b,c){var d=this.lb(a,b,c);if(Gn(this.b,d))return this.b.get(d);a=new Fv(new Lb(a,b,c),this.tileGrid);Jn(this.b,d,a);return a};function Hv(a){Au.call(this,{crossOrigin:a.crossOrigin,projection:qh("EPSG:3857"),state:0,tileLoadFunction:a.tileLoadFunction});ou(new mu(a.url),void 0,xa(this.d,this))}v(Hv,Au);
|
|
Hv.prototype.d=function(a){var b=qh("EPSG:4326"),c;if(s(a.bounds)){var d=$g(b,this.o);this.N=c=Rg(a.bounds,d)}var e=a.minzoom||0,d=a.maxzoom||22,f=new Cu({maxZoom:d,minZoom:e});this.tileGrid=f;this.tileUrlFunction=wu(f.c({extent:c}),tu(a.tiles));if(s(a.attribution)){b=s(c)?c:b.C();c={};for(var g;e<=d;++e)g=e.toString(),c[g]=[dk(f,b,e)];this.i=[new Rb({html:a.attribution,tileRanges:c})]}Uj(this,1)};function Iv(a){av.call(this,{attributions:a.attributions,extent:a.extent,format:a.format,logo:a.logo,projection:a.projection});var b=a.tileGrid;this.r=a.tileGrid;this.n=vu;this.D=b.c({extent:a.extent});this.q={};s(a.tileUrlFunction)?(this.n=a.tileUrlFunction,this.l()):s(a.urls)?(this.n=tu(a.urls),this.l()):s(a.url)&&(this.n=tu(xu(a.url)),this.l())}v(Iv,av);Iv.prototype.clear=function(){ic(this.q)};
|
|
Iv.prototype.Lc=function(a,b,c,d){var e=this.r,f=this.q;b=jg(e.a,b,0);a=dk(e,a,b);for(var g,e=a.a;e<=a.d;++e)for(g=a.b;g<=a.c;++g){var h=f[b+"/"+e+"/"+g];if(s(h)){var m,n;m=0;for(n=h.length;m<n;++m){var p=c.call(d,h[m]);if(p)return p}}}};Iv.prototype.Hd=function(){var a=this.q,b=[],c;for(c in a)Eb(b,a[c]);return b};
|
|
Iv.prototype.Ad=function(a,b,c){var d=this.D,e=this.r,f=this.n,g=this.q;b=jg(e.a,b,0);a=dk(e,a,b);var e=new Lb(b,0,0),h,m;for(h=a.a;h<=a.d;++h)for(m=a.b;m<=a.c;++m){var n=b+"/"+h+"/"+m;if(!(n in g)){e.a=b;e.x=h;e.y=m;d(e,c,e);var p=f(e,1,c);s(p)&&(g[n]=[],bv(this,p,za(function(a,b){g[a]=b;Uj(this,1)},n),this))}}};function Jv(a){a=s(a)?a:{};var b=s(a.params)?a.params:{};Au.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,opaque:!w(b,"TRANSPARENT",!0),projection:a.projection,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:xa(this.xh,this)});var c=a.urls;!s(c)&&s(a.url)&&(c=xu(a.url));this.n=c;this.f=s(a.gutter)?a.gutter:0;this.d=b;this.e=!0;this.g=a.serverType;this.p=s(a.hidpi)?a.hidpi:!0;this.q="";Kv(this);this.r=ug();Lv(this)}v(Jv,Au);l=Jv.prototype;
|
|
l.vh=function(a,b,c,d){var e=this.tileGrid;null===e&&(e=ik(this,c));b=fk(e,a[0],a[1],b,!1,void 0);if(!(e.a.length<=b.a)){var f=e.ha(b.a),g=ck(e,b,this.r),e=e.ka(b.a),h=this.f;0!==h&&(e+=2*h,g=xg(g,f*h,g));h=this.pixelRatio;1!=h&&(e=e*h+0.5|0);var m={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:w(this.d,"LAYERS")};nc(m,this.d,d);d=Math.floor((g[3]-a[1])/(f/h));m[this.e?"I":"X"]=Math.floor((a[0]-g[0])/(f/h));m[this.e?"J":"Y"]=d;return Mv(this,
|
|
b,e,g,h,c,m)}};l.Nc=k("f");l.lb=function(a,b,c){return this.q+Jv.K.lb.call(this,a,b,c)};l.wh=k("d");
|
|
function Mv(a,b,c,d,e,f,g){var h=a.n;if(s(h)&&0!=h.length){g.WIDTH=c;g.HEIGHT=c;g[a.e?"CRS":"SRS"]=f.a;"STYLES"in a.d||(g.STYLES=new String(""));if(1!=e)switch(a.g){case "geoserver":g.FORMAT_OPTIONS="dpi:"+(90*e+0.5|0);break;case "mapserver":g.MAP_RESOLUTION=90*e;break;case "carmentaserver":case "qgis":g.DPI=90*e}c=f.e;a.e&&"ne"==c.substr(0,2)&&(c=d[0],d[0]=d[1],d[1]=c,c=d[2],d[2]=d[3],d[3]=c);g.BBOX=d.join(",");return bj(dj([1==h.length?h[0]:h[Yb((b.x<<b.a)+b.y,a.n.length)]],g))}}
|
|
l.pc=function(a,b,c){a=Jv.K.pc.call(this,a,b,c);return 1!=b&&this.p&&s(this.g)?a*b+0.5|0:a};l.Qf=k("n");function Kv(a){var b=0,c=[],d;for(d in a.d)c[b++]=d+"-"+a.d[d];a.q=c.join("/")}
|
|
l.xh=function(a,b,c){var d=this.tileGrid;null===d&&(d=ik(this,c));if(!(d.a.length<=a.a)){1==b||this.p&&s(this.g)||(b=1);var e=d.ha(a.a),f=ck(d,a,this.r),d=d.ka(a.a),g=this.f;0!==g&&(d+=2*g,f=xg(f,e*g,f));e=this.C();if(null===e||Mg(f,e)&&!Qg(f,e))return 1!=b&&(d=d*b+0.5|0),e={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0},nc(e,this.d),this.pixelRatio=b,Mv(this,a,d,f,b,c,e)}};l.yh=function(a){nc(this.d,a);Kv(this);Lv(this);this.l()};
|
|
function Lv(a){a.e=0<=Ka(w(a.d,"VERSION","1.3.0"),"1.3")};function Nv(a){a=s(a)?a:{};cv.call(this,{attributions:a.attributions,extent:a.extent,format:new Ds({defaultProjection:a.defaultProjection}),logo:a.logo,object:a.object,projection:a.projection,text:a.text,url:a.url})}v(Nv,cv);function Ov(a){this.d=a.matrixIds;ak.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}v(Ov,ak);Ov.prototype.g=k("d");
|
|
function Pv(a){var b=[],c=[],d=[],e=[],f=qh(a.supportedCRS).f();Hb(a.matrixIds,function(a,b){return b.scaleDenominator-a.scaleDenominator});wb(a.matrixIds,function(a){c.push(a.identifier);d.push(a.topLeftCorner);b.push(2.8E-4*a.scaleDenominator/f);e.push(a.tileWidth)});return new Ov({origins:d,resolutions:b,matrixIds:c,tileSizes:e})};var Qv="KVP";
|
|
function Rv(a){function b(a){a=e==Qv?bj(dj([a],g)):a.replace(/\{(\w+?)\}/g,function(a,b){return b in g?g[b]:a});return function(b){if(null!==b){var c={TileMatrix:f.d[b.a],TileCol:b.x,TileRow:b.y};nc(c,h);b=a;return b=e==Qv?bj(dj([b],c)):b.replace(/\{(\w+?)\}/g,function(a,b){return c[b]})}}}var c=s(a.version)?a.version:"1.0.0",d=s(a.format)?a.format:"image/jpeg";this.d=s(a.dimensions)?a.dimensions:{};this.e="";Sv(this);var e=s(a.requestEncoding)?a.requestEncoding:Qv,f=a.tileGrid,g={Layer:a.layer,style:a.style,
|
|
Style:a.style,TileMatrixSet:a.matrixSet};e==Qv&&nc(g,{Service:"WMTS",Request:"GetTile",Version:c,Format:d});var h=this.d,c=vu,d=a.urls;!s(d)&&s(a.url)&&(d=xu(a.url));s(d)&&(c=uu(xb(d,b)));var m=ug(),n=new Lb(0,0,0),c=wu(function(b,c){if(f.a.length<=b.a)return null;var d=b.x,e=-b.y-1,g=ck(f,b),h=c.C(),z=s(a.extent)?a.extent:h;null!==z&&(c.n&&z[0]===h[0]&&z[2]===h[2])&&(g=Math.ceil(Kg(z)/Kg(g)),d=Yb(d,g),n.a=b.a,n.x=d,n.y=b.y,g=ck(f,n,m));return!Mg(g,z)||Qg(g,z)?null:new Lb(b.a,d,e)},c);Au.call(this,
|
|
{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,pixelRatio:s(a.pixelRatio)?a.pixelRatio:1,projection:a.projection,tileGrid:f,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:c})}v(Rv,Au);Rv.prototype.f=k("d");Rv.prototype.lb=function(a,b,c){return this.e+Rv.K.lb.call(this,a,b,c)};function Sv(a){var b=0,c=[],d;for(d in a.d)c[b++]=d+"-"+a.d[d];a.e=c.join("/")}Rv.prototype.g=function(a){nc(this.d,a);Sv(this);this.l()};function Tv(a){var b=s(a)?a:b;ak.call(this,{origin:[0,0],resolutions:b.resolutions})}v(Tv,ak);Tv.prototype.c=function(a){a=s(a)?a:{};var b=this.minZoom,c=this.maxZoom,d=new Lb(0,0,0),e=null;if(s(a.extent)){var e=Array(c+1),f;for(f=0;f<=c;++f)e[f]=f<b?null:dk(this,a.extent,f)}return function(a,f,m){f=a.a;if(f<b||c<f)return null;var n=Math.pow(2,f),p=a.x;if(0>p||n<=p)return null;a=a.y;return a<-n||-1<a||null!==e&&(d.a=f,d.x=p,d.y=-a-1,!e[f].contains(d))?null:Mb(f,p,-a-1,m)}};function Uv(a){a=s(a)?a:{};var b=a.size,c=b[0],d=b[1],e=[],f=256;switch(s(a.tierSizeCalculation)?a.tierSizeCalculation:"default"){case "default":for(;c>f||d>f;)e.push([Math.ceil(c/f),Math.ceil(d/f)]),f+=f;break;case "truncated":for(;c>f||d>f;)e.push([Math.ceil(c/f),Math.ceil(d/f)]),c>>=1,d>>=1}e.push([1,1]);e.reverse();for(var f=[1],g=[0],d=1,c=e.length;d<c;d++)f.push(1<<d),g.push(e[d-1][0]*e[d-1][1]+g[d-1]);f.reverse();var f=new Tv({resolutions:f}),h=a.url,b=wu(f.c({extent:[0,0,b[0],b[1]]}),function(a){return null===
|
|
a?void 0:h+"TileGroup"+((a.x+a.y*e[a.a][0]+g[a.a])/256|0)+"/"+a.a+"-"+a.x+"-"+a.y+".jpg"});Au.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,logo:a.logo,tileClass:Vv,tileGrid:f,tileUrlFunction:b})}v(Uv,Au);function Vv(a,b,c,d,e){co.call(this,a,b,c,d,e);this.i={}}v(Vv,co);
|
|
Vv.prototype.b=function(a){var b=s(a)?sa(a).toString():"";if(b in this.i)return this.i[b];a=Vv.K.b.call(this,a);if(2==this.state){if(256==a.width&&256==a.height)return this.i[b]=a;var c=td(256,256);c.drawImage(a,0,0);return this.i[b]=c.canvas}return a};function Wv(a){a=s(a)?a:{};this.a=a.font;this.b=a.rotation;this.d=a.scale;this.f=a.text;this.i=a.textAlign;this.g=a.textBaseline;this.c=s(a.fill)?a.fill:null;this.e=s(a.stroke)?a.stroke:null;this.k=s(a.offsetX)?a.offsetX:0;this.n=s(a.offsetY)?a.offsetY:0}l=Wv.prototype;l.yf=k("a");l.Kh=k("c");l.Lh=k("b");l.Mh=k("d");l.Nh=k("e");l.Oh=k("f");l.Nf=k("i");l.Of=k("g");t("ol.Attribution",Rb);t("ol.BrowserFeature.DEVICE_PIXEL_RATIO",Ad);t("ol.BrowserFeature.HAS_CANVAS",Dd);t("ol.BrowserFeature.HAS_DEVICE_ORIENTATION",Ed);t("ol.BrowserFeature.HAS_GEOLOCATION",Fd);t("ol.BrowserFeature.HAS_TOUCH",Hd);t("ol.BrowserFeature.HAS_WEBGL",Kd);t("ol.Collection",C);C.prototype.bindTo=C.prototype.Y;C.prototype.clear=C.prototype.clear;C.prototype.dispatchChangeEvent=C.prototype.l;C.prototype.extend=C.prototype.Og;C.prototype.forEach=C.prototype.forEach;C.prototype.get=C.prototype.get;
|
|
C.prototype.getArray=C.prototype.Pg;C.prototype.getKeys=C.prototype.M;C.prototype.getLength=C.prototype.Cb;C.prototype.getProperties=C.prototype.T;C.prototype.insertAt=C.prototype.Tc;C.prototype.item=C.prototype.item;C.prototype.notify=C.prototype.V;C.prototype.on=C.prototype.u;C.prototype.once=C.prototype.v;C.prototype.pop=C.prototype.pop;C.prototype.push=C.prototype.push;C.prototype.remove=C.prototype.remove;C.prototype.removeAt=C.prototype.cd;C.prototype.set=C.prototype.s;C.prototype.setAt=C.prototype.ri;
|
|
C.prototype.setValues=C.prototype.J;C.prototype.un=C.prototype.A;C.prototype.unByKey=C.prototype.B;C.prototype.unbind=C.prototype.X;C.prototype.unbindAll=C.prototype.Z;Ue.prototype.element=Ue.prototype.element;t("ol.DeviceOrientation",E);E.prototype.bindTo=E.prototype.Y;E.prototype.dispatchChangeEvent=E.prototype.l;E.prototype.get=E.prototype.get;E.prototype.getAlpha=E.prototype.e;E.prototype.getBeta=E.prototype.f;E.prototype.getGamma=E.prototype.i;E.prototype.getHeading=E.prototype.g;
|
|
E.prototype.getKeys=E.prototype.M;E.prototype.getProperties=E.prototype.T;E.prototype.getTracking=E.prototype.d;E.prototype.notify=E.prototype.V;E.prototype.on=E.prototype.u;E.prototype.once=E.prototype.v;E.prototype.set=E.prototype.s;E.prototype.setTracking=E.prototype.b;E.prototype.setValues=E.prototype.J;E.prototype.un=E.prototype.A;E.prototype.unByKey=E.prototype.B;E.prototype.unbind=E.prototype.X;E.prototype.unbindAll=E.prototype.Z;xi.prototype.coordinate=xi.prototype.coordinate;
|
|
Rn.prototype.feature=Rn.prototype.feature;t("ol.Feature",I);I.prototype.bindTo=I.prototype.Y;I.prototype.dispatchChangeEvent=I.prototype.l;I.prototype.get=I.prototype.get;I.prototype.getGeometry=I.prototype.Q;I.prototype.getGeometryName=I.prototype.Af;I.prototype.getId=I.prototype.Bf;I.prototype.getKeys=I.prototype.M;I.prototype.getProperties=I.prototype.T;I.prototype.getStyle=I.prototype.Vg;I.prototype.getStyleFunction=I.prototype.Wg;I.prototype.notify=I.prototype.V;I.prototype.on=I.prototype.u;
|
|
I.prototype.once=I.prototype.v;I.prototype.set=I.prototype.s;I.prototype.setGeometry=I.prototype.fb;I.prototype.setGeometryName=I.prototype.e;I.prototype.setId=I.prototype.b;I.prototype.setStyle=I.prototype.g;I.prototype.setValues=I.prototype.J;I.prototype.un=I.prototype.A;I.prototype.unByKey=I.prototype.B;I.prototype.unbind=I.prototype.X;I.prototype.unbindAll=I.prototype.Z;t("ol.FeatureOverlay",Ri);Ri.prototype.addFeature=Ri.prototype.xe;Ri.prototype.getFeatures=Ri.prototype.Qg;
|
|
Ri.prototype.getStyle=Ri.prototype.Rg;Ri.prototype.getStyleFunction=Ri.prototype.Sg;Ri.prototype.removeFeature=Ri.prototype.$c;Ri.prototype.setFeatures=Ri.prototype.yc;Ri.prototype.setMap=Ri.prototype.setMap;Ri.prototype.setStyle=Ri.prototype.Ug;t("ol.Geolocation",U);U.prototype.bindTo=U.prototype.Y;U.prototype.dispatchChangeEvent=U.prototype.l;U.prototype.get=U.prototype.get;U.prototype.getAccuracy=U.prototype.ie;U.prototype.getAccuracyGeometry=U.prototype.o;U.prototype.getAltitude=U.prototype.p;
|
|
U.prototype.getAltitudeAccuracy=U.prototype.t;U.prototype.getHeading=U.prototype.D;U.prototype.getKeys=U.prototype.M;U.prototype.getPosition=U.prototype.F;U.prototype.getProjection=U.prototype.i;U.prototype.getProperties=U.prototype.T;U.prototype.getSpeed=U.prototype.r;U.prototype.getTracking=U.prototype.g;U.prototype.getTrackingOptions=U.prototype.f;U.prototype.notify=U.prototype.V;U.prototype.on=U.prototype.u;U.prototype.once=U.prototype.v;U.prototype.set=U.prototype.s;
|
|
U.prototype.setProjection=U.prototype.k;U.prototype.setTracking=U.prototype.e;U.prototype.setTrackingOptions=U.prototype.n;U.prototype.setValues=U.prototype.J;U.prototype.un=U.prototype.A;U.prototype.unByKey=U.prototype.B;U.prototype.unbind=U.prototype.X;U.prototype.unbindAll=U.prototype.Z;co.prototype.getImage=co.prototype.b;t("ol.Kinetic",Sk);t("ol.Map",S);S.prototype.addControl=S.prototype.ef;S.prototype.addInteraction=S.prototype.ff;S.prototype.addLayer=S.prototype.gf;S.prototype.addOverlay=S.prototype.hf;
|
|
S.prototype.beforeRender=S.prototype.ya;S.prototype.bindTo=S.prototype.Y;S.prototype.dispatchChangeEvent=S.prototype.l;S.prototype.forEachFeatureAtPixel=S.prototype.Dd;S.prototype.get=S.prototype.get;S.prototype.getControls=S.prototype.xf;S.prototype.getCoordinateFromPixel=S.prototype.Ba;S.prototype.getEventCoordinate=S.prototype.ke;S.prototype.getEventPixel=S.prototype.sd;S.prototype.getInteractions=S.prototype.Cf;S.prototype.getKeys=S.prototype.M;S.prototype.getLayerGroup=S.prototype.mb;
|
|
S.prototype.getLayers=S.prototype.bf;S.prototype.getOverlays=S.prototype.Kf;S.prototype.getPixelFromCoordinate=S.prototype.f;S.prototype.getProperties=S.prototype.T;S.prototype.getSize=S.prototype.e;S.prototype.getTarget=S.prototype.tc;S.prototype.getView=S.prototype.a;S.prototype.getViewport=S.prototype.Rf;S.prototype.notify=S.prototype.V;S.prototype.on=S.prototype.u;S.prototype.once=S.prototype.v;S.prototype.removeControl=S.prototype.ii;S.prototype.removeInteraction=S.prototype.ki;
|
|
S.prototype.removeLayer=S.prototype.li;S.prototype.removeOverlay=S.prototype.mi;S.prototype.render=S.prototype.U;S.prototype.renderSync=S.prototype.oi;S.prototype.set=S.prototype.s;S.prototype.setLayerGroup=S.prototype.Te;S.prototype.setSize=S.prototype.D;S.prototype.setTarget=S.prototype.Va;S.prototype.setValues=S.prototype.J;S.prototype.setView=S.prototype.Ka;S.prototype.un=S.prototype.A;S.prototype.unByKey=S.prototype.B;S.prototype.unbind=S.prototype.X;S.prototype.unbindAll=S.prototype.Z;
|
|
S.prototype.updateSize=S.prototype.F;Nf.prototype.coordinate=Nf.prototype.coordinate;Nf.prototype.frameState=Nf.prototype.frameState;Nf.prototype.map=Nf.prototype.map;Nf.prototype.originalEvent=Nf.prototype.originalEvent;Nf.prototype.pixel=Nf.prototype.pixel;Nf.prototype.preventDefault=Nf.prototype.preventDefault;Nf.prototype.stopPropagation=Nf.prototype.Pa;Of.prototype.coordinate=Of.prototype.coordinate;Of.prototype.frameState=Of.prototype.frameState;Of.prototype.map=Of.prototype.map;
|
|
Of.prototype.originalEvent=Of.prototype.originalEvent;Of.prototype.pixel=Of.prototype.pixel;Of.prototype.preventDefault=Of.prototype.preventDefault;Of.prototype.stopPropagation=Of.prototype.Pa;df.prototype.frameState=df.prototype.frameState;df.prototype.map=df.prototype.map;t("ol.Object",Me);Me.prototype.bindTo=Me.prototype.Y;Me.prototype.dispatchChangeEvent=Me.prototype.l;Me.prototype.get=Me.prototype.get;Me.prototype.getKeys=Me.prototype.M;Me.prototype.getProperties=Me.prototype.T;
|
|
Me.prototype.notify=Me.prototype.V;Me.prototype.on=Me.prototype.u;Me.prototype.once=Me.prototype.v;Me.prototype.set=Me.prototype.s;Me.prototype.setValues=Me.prototype.J;Me.prototype.un=Me.prototype.A;Me.prototype.unByKey=Me.prototype.B;Me.prototype.unbind=Me.prototype.X;Me.prototype.unbindAll=Me.prototype.Z;Ke.prototype.key=Ke.prototype.key;t("ol.Observable",Je);Je.prototype.dispatchChangeEvent=Je.prototype.l;Je.prototype.on=Je.prototype.u;Je.prototype.once=Je.prototype.v;Je.prototype.un=Je.prototype.A;
|
|
Je.prototype.unByKey=Je.prototype.B;t("ol.Overlay",V);V.prototype.bindTo=V.prototype.Y;V.prototype.dispatchChangeEvent=V.prototype.l;V.prototype.get=V.prototype.get;V.prototype.getElement=V.prototype.i;V.prototype.getKeys=V.prototype.M;V.prototype.getMap=V.prototype.e;V.prototype.getPosition=V.prototype.g;V.prototype.getPositioning=V.prototype.f;V.prototype.getProperties=V.prototype.T;V.prototype.notify=V.prototype.V;V.prototype.on=V.prototype.u;V.prototype.once=V.prototype.v;V.prototype.set=V.prototype.s;
|
|
V.prototype.setElement=V.prototype.Qd;V.prototype.setMap=V.prototype.setMap;V.prototype.setPosition=V.prototype.k;V.prototype.setPositioning=V.prototype.n;V.prototype.setValues=V.prototype.J;V.prototype.un=V.prototype.A;V.prototype.unByKey=V.prototype.B;V.prototype.unbind=V.prototype.X;V.prototype.unbindAll=V.prototype.Z;Zj.prototype.getTileCoord=Zj.prototype.k;Lb.prototype.getZXY=Lb.prototype.c;rg.prototype.bindTo=rg.prototype.Y;rg.prototype.dispatchChangeEvent=rg.prototype.l;rg.prototype.get=rg.prototype.get;
|
|
rg.prototype.getKeys=rg.prototype.M;rg.prototype.getProperties=rg.prototype.T;rg.prototype.notify=rg.prototype.V;rg.prototype.on=rg.prototype.u;rg.prototype.once=rg.prototype.v;rg.prototype.set=rg.prototype.s;rg.prototype.setValues=rg.prototype.J;rg.prototype.un=rg.prototype.A;rg.prototype.unByKey=rg.prototype.B;rg.prototype.unbind=rg.prototype.X;rg.prototype.unbindAll=rg.prototype.Z;t("ol.View2D",G);G.prototype.bindTo=G.prototype.Y;G.prototype.calculateExtent=G.prototype.F;G.prototype.centerOn=G.prototype.qf;
|
|
G.prototype.constrainCenter=G.prototype.g;G.prototype.constrainResolution=G.prototype.constrainResolution;G.prototype.constrainRotation=G.prototype.constrainRotation;G.prototype.dispatchChangeEvent=G.prototype.l;G.prototype.fitExtent=G.prototype.ge;G.prototype.fitGeometry=G.prototype.vf;G.prototype.get=G.prototype.get;G.prototype.getCenter=G.prototype.a;G.prototype.getKeys=G.prototype.M;G.prototype.getProjection=G.prototype.i;G.prototype.getProperties=G.prototype.T;G.prototype.getResolution=G.prototype.b;
|
|
G.prototype.getResolutionForExtent=G.prototype.k;G.prototype.getRotation=G.prototype.e;G.prototype.getView2D=G.prototype.$;G.prototype.getZoom=G.prototype.Tf;G.prototype.notify=G.prototype.V;G.prototype.on=G.prototype.u;G.prototype.once=G.prototype.v;G.prototype.rotate=G.prototype.rotate;G.prototype.set=G.prototype.s;G.prototype.setCenter=G.prototype.Ea;G.prototype.setProjection=G.prototype.D;G.prototype.setResolution=G.prototype.d;G.prototype.setRotation=G.prototype.o;G.prototype.setValues=G.prototype.J;
|
|
G.prototype.setZoom=G.prototype.N;G.prototype.un=G.prototype.A;G.prototype.unByKey=G.prototype.B;G.prototype.unbind=G.prototype.X;G.prototype.unbindAll=G.prototype.Z;t("ol.animation.bounce",function(a){var b=a.resolution,c=s(a.start)?a.start:Aa(),d=s(a.duration)?a.duration:1E3,e=s(a.easing)?a.easing:zh;return function(a,g){if(g.time<c)return g.xa=!0,g.aa[0]+=1,!0;if(g.time<c+d){var h=e((g.time-c)/d),m=b-g.view2DState.resolution;g.xa=!0;g.view2DState.resolution+=h*m;g.aa[0]+=1;return!0}return!1}});
|
|
t("ol.animation.pan",Ah);t("ol.animation.rotate",Bh);t("ol.animation.zoom",Ch);t("ol.color.asArray",function(a){return la(a)?a:Ei(a)});t("ol.color.asString",Ci);t("ol.control.Attribution",Lk);Lk.prototype.bindTo=Lk.prototype.Y;Lk.prototype.dispatchChangeEvent=Lk.prototype.l;Lk.prototype.get=Lk.prototype.get;Lk.prototype.getKeys=Lk.prototype.M;Lk.prototype.getMap=Lk.prototype.b;Lk.prototype.getProperties=Lk.prototype.T;Lk.prototype.notify=Lk.prototype.V;Lk.prototype.on=Lk.prototype.u;
|
|
Lk.prototype.once=Lk.prototype.v;Lk.prototype.set=Lk.prototype.s;Lk.prototype.setMap=Lk.prototype.setMap;Lk.prototype.setValues=Lk.prototype.J;Lk.prototype.un=Lk.prototype.A;Lk.prototype.unByKey=Lk.prototype.B;Lk.prototype.unbind=Lk.prototype.X;Lk.prototype.unbindAll=Lk.prototype.Z;t("ol.control.Control",M);M.prototype.bindTo=M.prototype.Y;M.prototype.dispatchChangeEvent=M.prototype.l;M.prototype.get=M.prototype.get;M.prototype.getKeys=M.prototype.M;M.prototype.getMap=M.prototype.b;
|
|
M.prototype.getProperties=M.prototype.T;M.prototype.notify=M.prototype.V;M.prototype.on=M.prototype.u;M.prototype.once=M.prototype.v;M.prototype.set=M.prototype.s;M.prototype.setMap=M.prototype.setMap;M.prototype.setValues=M.prototype.J;M.prototype.un=M.prototype.A;M.prototype.unByKey=M.prototype.B;M.prototype.unbind=M.prototype.X;M.prototype.unbindAll=M.prototype.Z;t("ol.control.FullScreen",jo);jo.prototype.bindTo=jo.prototype.Y;jo.prototype.dispatchChangeEvent=jo.prototype.l;jo.prototype.get=jo.prototype.get;
|
|
jo.prototype.getKeys=jo.prototype.M;jo.prototype.getMap=jo.prototype.b;jo.prototype.getProperties=jo.prototype.T;jo.prototype.notify=jo.prototype.V;jo.prototype.on=jo.prototype.u;jo.prototype.once=jo.prototype.v;jo.prototype.set=jo.prototype.s;jo.prototype.setMap=jo.prototype.setMap;jo.prototype.setValues=jo.prototype.J;jo.prototype.un=jo.prototype.A;jo.prototype.unByKey=jo.prototype.B;jo.prototype.unbind=jo.prototype.X;jo.prototype.unbindAll=jo.prototype.Z;t("ol.control.Logo",Mk);
|
|
Mk.prototype.bindTo=Mk.prototype.Y;Mk.prototype.dispatchChangeEvent=Mk.prototype.l;Mk.prototype.get=Mk.prototype.get;Mk.prototype.getKeys=Mk.prototype.M;Mk.prototype.getMap=Mk.prototype.b;Mk.prototype.getProperties=Mk.prototype.T;Mk.prototype.notify=Mk.prototype.V;Mk.prototype.on=Mk.prototype.u;Mk.prototype.once=Mk.prototype.v;Mk.prototype.set=Mk.prototype.s;Mk.prototype.setMap=Mk.prototype.setMap;Mk.prototype.setValues=Mk.prototype.J;Mk.prototype.un=Mk.prototype.A;Mk.prototype.unByKey=Mk.prototype.B;
|
|
Mk.prototype.unbind=Mk.prototype.X;Mk.prototype.unbindAll=Mk.prototype.Z;t("ol.control.MousePosition",W);W.prototype.bindTo=W.prototype.Y;W.prototype.dispatchChangeEvent=W.prototype.l;W.prototype.get=W.prototype.get;W.prototype.getCoordinateFormat=W.prototype.k;W.prototype.getKeys=W.prototype.M;W.prototype.getMap=W.prototype.b;W.prototype.getProjection=W.prototype.o;W.prototype.getProperties=W.prototype.T;W.prototype.notify=W.prototype.V;W.prototype.on=W.prototype.u;W.prototype.once=W.prototype.v;
|
|
W.prototype.set=W.prototype.s;W.prototype.setCoordinateFormat=W.prototype.t;W.prototype.setMap=W.prototype.setMap;W.prototype.setProjection=W.prototype.p;W.prototype.setValues=W.prototype.J;W.prototype.un=W.prototype.A;W.prototype.unByKey=W.prototype.B;W.prototype.unbind=W.prototype.X;W.prototype.unbindAll=W.prototype.Z;t("ol.control.Rotate",Nk);Nk.prototype.bindTo=Nk.prototype.Y;Nk.prototype.dispatchChangeEvent=Nk.prototype.l;Nk.prototype.get=Nk.prototype.get;Nk.prototype.getKeys=Nk.prototype.M;
|
|
Nk.prototype.getMap=Nk.prototype.b;Nk.prototype.getProperties=Nk.prototype.T;Nk.prototype.notify=Nk.prototype.V;Nk.prototype.on=Nk.prototype.u;Nk.prototype.once=Nk.prototype.v;Nk.prototype.set=Nk.prototype.s;Nk.prototype.setMap=Nk.prototype.setMap;Nk.prototype.setValues=Nk.prototype.J;Nk.prototype.un=Nk.prototype.A;Nk.prototype.unByKey=Nk.prototype.B;Nk.prototype.unbind=Nk.prototype.X;Nk.prototype.unbindAll=Nk.prototype.Z;t("ol.control.ScaleLine",mo);mo.prototype.bindTo=mo.prototype.Y;
|
|
mo.prototype.dispatchChangeEvent=mo.prototype.l;mo.prototype.get=mo.prototype.get;mo.prototype.getKeys=mo.prototype.M;mo.prototype.getMap=mo.prototype.b;mo.prototype.getProperties=mo.prototype.T;mo.prototype.getUnits=mo.prototype.o;mo.prototype.notify=mo.prototype.V;mo.prototype.on=mo.prototype.u;mo.prototype.once=mo.prototype.v;mo.prototype.set=mo.prototype.s;mo.prototype.setMap=mo.prototype.setMap;mo.prototype.setUnits=mo.prototype.p;mo.prototype.setValues=mo.prototype.J;mo.prototype.un=mo.prototype.A;
|
|
mo.prototype.unByKey=mo.prototype.B;mo.prototype.unbind=mo.prototype.X;mo.prototype.unbindAll=mo.prototype.Z;t("ol.control.Zoom",Pk);Pk.prototype.bindTo=Pk.prototype.Y;Pk.prototype.dispatchChangeEvent=Pk.prototype.l;Pk.prototype.get=Pk.prototype.get;Pk.prototype.getKeys=Pk.prototype.M;Pk.prototype.getMap=Pk.prototype.b;Pk.prototype.getProperties=Pk.prototype.T;Pk.prototype.notify=Pk.prototype.V;Pk.prototype.on=Pk.prototype.u;Pk.prototype.once=Pk.prototype.v;Pk.prototype.set=Pk.prototype.s;
|
|
Pk.prototype.setMap=Pk.prototype.setMap;Pk.prototype.setValues=Pk.prototype.J;Pk.prototype.un=Pk.prototype.A;Pk.prototype.unByKey=Pk.prototype.B;Pk.prototype.unbind=Pk.prototype.X;Pk.prototype.unbindAll=Pk.prototype.Z;t("ol.control.ZoomSlider",Bo);Bo.prototype.bindTo=Bo.prototype.Y;Bo.prototype.dispatchChangeEvent=Bo.prototype.l;Bo.prototype.get=Bo.prototype.get;Bo.prototype.getKeys=Bo.prototype.M;Bo.prototype.getMap=Bo.prototype.b;Bo.prototype.getProperties=Bo.prototype.T;Bo.prototype.notify=Bo.prototype.V;
|
|
Bo.prototype.on=Bo.prototype.u;Bo.prototype.once=Bo.prototype.v;Bo.prototype.set=Bo.prototype.s;Bo.prototype.setValues=Bo.prototype.J;Bo.prototype.un=Bo.prototype.A;Bo.prototype.unByKey=Bo.prototype.B;Bo.prototype.unbind=Bo.prototype.X;Bo.prototype.unbindAll=Bo.prototype.Z;t("ol.control.ZoomToExtent",Fo);Fo.prototype.bindTo=Fo.prototype.Y;Fo.prototype.dispatchChangeEvent=Fo.prototype.l;Fo.prototype.get=Fo.prototype.get;Fo.prototype.getKeys=Fo.prototype.M;Fo.prototype.getMap=Fo.prototype.b;
|
|
Fo.prototype.getProperties=Fo.prototype.T;Fo.prototype.notify=Fo.prototype.V;Fo.prototype.on=Fo.prototype.u;Fo.prototype.once=Fo.prototype.v;Fo.prototype.set=Fo.prototype.s;Fo.prototype.setMap=Fo.prototype.setMap;Fo.prototype.setValues=Fo.prototype.J;Fo.prototype.un=Fo.prototype.A;Fo.prototype.unByKey=Fo.prototype.B;Fo.prototype.unbind=Fo.prototype.X;Fo.prototype.unbindAll=Fo.prototype.Z;t("ol.control.defaults",Rk);t("ol.coordinate.add",We);
|
|
t("ol.coordinate.createStringXY",function(a){return function(b){return cf(b,a)}});t("ol.coordinate.format",Ze);t("ol.coordinate.fromProjectedArray",function(a,b){var c=b.charAt(0);return"n"===c||"s"===c?[a[1],a[0]]:a});t("ol.coordinate.rotate",af);t("ol.coordinate.toStringHDMS",function(a){return s(a)?Ye(a[1],"NS")+" "+Ye(a[0],"EW"):""});t("ol.coordinate.toStringXY",cf);t("ol.dom.Input",Ho);Ho.prototype.bindTo=Ho.prototype.Y;Ho.prototype.dispatchChangeEvent=Ho.prototype.l;Ho.prototype.get=Ho.prototype.get;
|
|
Ho.prototype.getChecked=Ho.prototype.b;Ho.prototype.getKeys=Ho.prototype.M;Ho.prototype.getProperties=Ho.prototype.T;Ho.prototype.getValue=Ho.prototype.d;Ho.prototype.notify=Ho.prototype.V;Ho.prototype.on=Ho.prototype.u;Ho.prototype.once=Ho.prototype.v;Ho.prototype.set=Ho.prototype.s;Ho.prototype.setChecked=Ho.prototype.e;Ho.prototype.setValue=Ho.prototype.f;Ho.prototype.setValues=Ho.prototype.J;Ho.prototype.un=Ho.prototype.A;Ho.prototype.unByKey=Ho.prototype.B;Ho.prototype.unbind=Ho.prototype.X;
|
|
Ho.prototype.unbindAll=Ho.prototype.Z;t("ol.easing.easeIn",function(a){return a*a*a});t("ol.easing.easeOut",wh);t("ol.easing.inAndOut",xh);t("ol.easing.linear",yh);t("ol.easing.upAndDown",zh);t("ol.events.condition.altKeyOnly",function(a){a=a.a;return a.pa&&!a.Vb&&!a.ab});t("ol.events.condition.altShiftKeysOnly",ag);t("ol.events.condition.always",Ae);t("ol.events.condition.mouseOnly",fg);t("ol.events.condition.never",ze);t("ol.events.condition.noModifierKeys",cg);
|
|
t("ol.events.condition.platformModifierKeyOnly",function(a){a=a.a;return!a.pa&&a.Vb&&!a.ab});t("ol.events.condition.shiftKeyOnly",dg);t("ol.events.condition.singleClick",bg);t("ol.events.condition.targetNotEditable",eg);t("ol.extent.applyTransform",Rg);t("ol.extent.boundingExtent",tg);t("ol.extent.buffer",xg);t("ol.extent.containsCoordinate",function(a,b){return a[0]<=b[0]&&b[0]<=a[2]&&a[1]<=b[1]&&b[1]<=a[3]});t("ol.extent.containsExtent",Ag);t("ol.extent.createEmpty",ug);t("ol.extent.equals",Cg);
|
|
t("ol.extent.extend",Dg);t("ol.extent.getBottomLeft",Fg);t("ol.extent.getBottomRight",function(a){return[a[2],a[1]]});t("ol.extent.getCenter",Gg);t("ol.extent.getHeight",Ig);t("ol.extent.getSize",function(a){return[a[2]-a[0],a[3]-a[1]]});t("ol.extent.getTopLeft",Jg);t("ol.extent.getTopRight",function(a){return[a[2],a[3]]});t("ol.extent.getWidth",Kg);t("ol.extent.intersects",Mg);t("ol.extent.isEmpty",Ng);t("ol.format.GML",Mp);Mp.prototype.readFeatures=Mp.prototype.ra;Mp.prototype.writeFeatures=Mp.prototype.Cc;
|
|
t("ol.format.GPX",Pq);Pq.prototype.readFeature=Pq.prototype.Xb;Pq.prototype.readFeatures=Pq.prototype.ra;Pq.prototype.readProjection=Pq.prototype.oa;Pq.prototype.writeFeatures=Pq.prototype.Cc;t("ol.format.GeoJSON",wr);wr.prototype.readFeature=wr.prototype.Xb;wr.prototype.readFeatures=wr.prototype.ra;wr.prototype.readGeometry=wr.prototype.Nd;wr.prototype.readProjection=wr.prototype.oa;wr.prototype.writeFeature=wr.prototype.Xd;wr.prototype.writeFeatures=wr.prototype.Cc;t("ol.format.IGC",Fr);
|
|
Fr.prototype.readFeature=Fr.prototype.Xb;Fr.prototype.readFeatures=Fr.prototype.ra;Fr.prototype.readProjection=Fr.prototype.oa;t("ol.format.KML",Jr);Jr.prototype.readFeature=Jr.prototype.Xb;Jr.prototype.readFeatures=Jr.prototype.ra;Jr.prototype.readProjection=Jr.prototype.oa;t("ol.format.OSMXML",xs);xs.prototype.readFeatures=xs.prototype.ra;xs.prototype.readProjection=xs.prototype.oa;t("ol.format.TopoJSON",Ds);Ds.prototype.readFeatures=Ds.prototype.ra;Ds.prototype.readProjection=Ds.prototype.oa;
|
|
t("ol.format.WFS",Js);Js.prototype.readFeatureCollectionMetadata=Js.prototype.d;Js.prototype.readFeatures=Js.prototype.ra;Js.prototype.readProjection=Js.prototype.oa;Js.prototype.readTransactionResponse=Js.prototype.e;Js.prototype.writeGetFeature=Js.prototype.f;Js.prototype.writeTransaction=Js.prototype.g;t("ol.format.WMSCapabilities",$s);$s.prototype.read=$s.prototype.a;t("ol.geom.Circle",am);am.prototype.clone=am.prototype.S;am.prototype.dispatchChangeEvent=am.prototype.l;
|
|
am.prototype.getCenter=am.prototype.Ed;am.prototype.getClosestPoint=am.prototype.e;am.prototype.getExtent=am.prototype.C;am.prototype.getFirstCoordinate=am.prototype.Xa;am.prototype.getLastCoordinate=am.prototype.Ya;am.prototype.getLayout=am.prototype.Za;am.prototype.getRadius=am.prototype.Ce;am.prototype.getSimplifiedGeometry=am.prototype.la;am.prototype.getType=am.prototype.I;am.prototype.on=am.prototype.u;am.prototype.once=am.prototype.v;am.prototype.setCenter=am.prototype.ah;
|
|
am.prototype.setCenterAndRadius=am.prototype.Re;am.prototype.setRadius=am.prototype.si;am.prototype.transform=am.prototype.transform;am.prototype.un=am.prototype.A;am.prototype.unByKey=am.prototype.B;t("ol.geom.Geometry",Jh);Jh.prototype.applyTransform=Jh.prototype.vb;Jh.prototype.dispatchChangeEvent=Jh.prototype.l;Jh.prototype.getClosestPoint=Jh.prototype.e;Jh.prototype.getExtent=Jh.prototype.C;Jh.prototype.on=Jh.prototype.u;Jh.prototype.once=Jh.prototype.v;Jh.prototype.transform=Jh.prototype.transform;
|
|
Jh.prototype.un=Jh.prototype.A;Jh.prototype.unByKey=Jh.prototype.B;t("ol.geom.GeometryCollection",cm);cm.prototype.clone=cm.prototype.S;cm.prototype.dispatchChangeEvent=cm.prototype.l;cm.prototype.getClosestPoint=cm.prototype.e;cm.prototype.getExtent=cm.prototype.C;cm.prototype.getGeometries=cm.prototype.zf;cm.prototype.getSimplifiedGeometry=cm.prototype.la;cm.prototype.getType=cm.prototype.I;cm.prototype.on=cm.prototype.u;cm.prototype.once=cm.prototype.v;cm.prototype.setGeometries=cm.prototype.Se;
|
|
cm.prototype.transform=cm.prototype.transform;cm.prototype.un=cm.prototype.A;cm.prototype.unByKey=cm.prototype.B;t("ol.geom.LineString",jm);jm.prototype.appendCoordinate=jm.prototype.jf;jm.prototype.clone=jm.prototype.S;jm.prototype.dispatchChangeEvent=jm.prototype.l;jm.prototype.getClosestPoint=jm.prototype.e;jm.prototype.getCoordinateAtM=jm.prototype.bh;jm.prototype.getCoordinates=jm.prototype.G;jm.prototype.getExtent=jm.prototype.C;jm.prototype.getFirstCoordinate=jm.prototype.Xa;
|
|
jm.prototype.getLastCoordinate=jm.prototype.Ya;jm.prototype.getLayout=jm.prototype.Za;jm.prototype.getLength=jm.prototype.dh;jm.prototype.getSimplifiedGeometry=jm.prototype.la;jm.prototype.getType=jm.prototype.I;jm.prototype.on=jm.prototype.u;jm.prototype.once=jm.prototype.v;jm.prototype.setCoordinates=jm.prototype.R;jm.prototype.transform=jm.prototype.transform;jm.prototype.un=jm.prototype.A;jm.prototype.unByKey=jm.prototype.B;t("ol.geom.LinearRing",fi);fi.prototype.clone=fi.prototype.S;
|
|
fi.prototype.dispatchChangeEvent=fi.prototype.l;fi.prototype.getArea=fi.prototype.eh;fi.prototype.getClosestPoint=fi.prototype.e;fi.prototype.getCoordinates=fi.prototype.G;fi.prototype.getExtent=fi.prototype.C;fi.prototype.getFirstCoordinate=fi.prototype.Xa;fi.prototype.getLastCoordinate=fi.prototype.Ya;fi.prototype.getLayout=fi.prototype.Za;fi.prototype.getSimplifiedGeometry=fi.prototype.la;fi.prototype.getType=fi.prototype.I;fi.prototype.on=fi.prototype.u;fi.prototype.once=fi.prototype.v;
|
|
fi.prototype.setCoordinates=fi.prototype.R;fi.prototype.transform=fi.prototype.transform;fi.prototype.un=fi.prototype.A;fi.prototype.unByKey=fi.prototype.B;t("ol.geom.MultiLineString",lm);lm.prototype.appendLineString=lm.prototype.kf;lm.prototype.clone=lm.prototype.S;lm.prototype.dispatchChangeEvent=lm.prototype.l;lm.prototype.getClosestPoint=lm.prototype.e;lm.prototype.getCoordinateAtM=lm.prototype.fh;lm.prototype.getCoordinates=lm.prototype.G;lm.prototype.getExtent=lm.prototype.C;
|
|
lm.prototype.getFirstCoordinate=lm.prototype.Xa;lm.prototype.getLastCoordinate=lm.prototype.Ya;lm.prototype.getLayout=lm.prototype.Za;lm.prototype.getLineString=lm.prototype.Hf;lm.prototype.getLineStrings=lm.prototype.td;lm.prototype.getSimplifiedGeometry=lm.prototype.la;lm.prototype.getType=lm.prototype.I;lm.prototype.on=lm.prototype.u;lm.prototype.once=lm.prototype.v;lm.prototype.setCoordinates=lm.prototype.R;lm.prototype.transform=lm.prototype.transform;lm.prototype.un=lm.prototype.A;
|
|
lm.prototype.unByKey=lm.prototype.B;t("ol.geom.MultiPoint",om);om.prototype.appendPoint=om.prototype.mf;om.prototype.clone=om.prototype.S;om.prototype.dispatchChangeEvent=om.prototype.l;om.prototype.getClosestPoint=om.prototype.e;om.prototype.getCoordinates=om.prototype.G;om.prototype.getExtent=om.prototype.C;om.prototype.getFirstCoordinate=om.prototype.Xa;om.prototype.getLastCoordinate=om.prototype.Ya;om.prototype.getLayout=om.prototype.Za;om.prototype.getPoint=om.prototype.Lf;
|
|
om.prototype.getPoints=om.prototype.oe;om.prototype.getSimplifiedGeometry=om.prototype.la;om.prototype.getType=om.prototype.I;om.prototype.on=om.prototype.u;om.prototype.once=om.prototype.v;om.prototype.setCoordinates=om.prototype.R;om.prototype.transform=om.prototype.transform;om.prototype.un=om.prototype.A;om.prototype.unByKey=om.prototype.B;t("ol.geom.MultiPolygon",pm);pm.prototype.appendPolygon=pm.prototype.nf;pm.prototype.clone=pm.prototype.S;pm.prototype.dispatchChangeEvent=pm.prototype.l;
|
|
pm.prototype.getArea=pm.prototype.gh;pm.prototype.getClosestPoint=pm.prototype.e;pm.prototype.getCoordinates=pm.prototype.G;pm.prototype.getExtent=pm.prototype.C;pm.prototype.getFirstCoordinate=pm.prototype.Xa;pm.prototype.getInteriorPoints=pm.prototype.Ef;pm.prototype.getLastCoordinate=pm.prototype.Ya;pm.prototype.getLayout=pm.prototype.Za;pm.prototype.getPolygon=pm.prototype.Mf;pm.prototype.getPolygons=pm.prototype.pe;pm.prototype.getSimplifiedGeometry=pm.prototype.la;pm.prototype.getType=pm.prototype.I;
|
|
pm.prototype.on=pm.prototype.u;pm.prototype.once=pm.prototype.v;pm.prototype.setCoordinates=pm.prototype.R;pm.prototype.transform=pm.prototype.transform;pm.prototype.un=pm.prototype.A;pm.prototype.unByKey=pm.prototype.B;t("ol.geom.Point",hi);hi.prototype.clone=hi.prototype.S;hi.prototype.dispatchChangeEvent=hi.prototype.l;hi.prototype.getClosestPoint=hi.prototype.e;hi.prototype.getCoordinates=hi.prototype.G;hi.prototype.getFirstCoordinate=hi.prototype.Xa;hi.prototype.getLastCoordinate=hi.prototype.Ya;
|
|
hi.prototype.getLayout=hi.prototype.Za;hi.prototype.getSimplifiedGeometry=hi.prototype.la;hi.prototype.getType=hi.prototype.I;hi.prototype.on=hi.prototype.u;hi.prototype.once=hi.prototype.v;hi.prototype.setCoordinates=hi.prototype.R;hi.prototype.transform=hi.prototype.transform;hi.prototype.un=hi.prototype.A;hi.prototype.unByKey=hi.prototype.B;t("ol.geom.Polygon",H);H.prototype.appendLinearRing=H.prototype.lf;H.prototype.clone=H.prototype.S;H.prototype.dispatchChangeEvent=H.prototype.l;
|
|
H.prototype.getArea=H.prototype.hh;H.prototype.getClosestPoint=H.prototype.e;H.prototype.getCoordinates=H.prototype.G;H.prototype.getExtent=H.prototype.C;H.prototype.getFirstCoordinate=H.prototype.Xa;H.prototype.getInteriorPoint=H.prototype.Df;H.prototype.getLastCoordinate=H.prototype.Ya;H.prototype.getLayout=H.prototype.Za;H.prototype.getLinearRing=H.prototype.If;H.prototype.getLinearRings=H.prototype.ne;H.prototype.getSimplifiedGeometry=H.prototype.la;H.prototype.getType=H.prototype.I;
|
|
H.prototype.on=H.prototype.u;H.prototype.once=H.prototype.v;H.prototype.setCoordinates=H.prototype.R;H.prototype.transform=H.prototype.transform;H.prototype.un=H.prototype.A;H.prototype.unByKey=H.prototype.B;t("ol.geom.Polygon.circular",si);t("ol.geom.SimpleGeometry",Lh);Lh.prototype.dispatchChangeEvent=Lh.prototype.l;Lh.prototype.getClosestPoint=Lh.prototype.e;Lh.prototype.getExtent=Lh.prototype.C;Lh.prototype.getFirstCoordinate=Lh.prototype.Xa;Lh.prototype.getLastCoordinate=Lh.prototype.Ya;
|
|
Lh.prototype.getLayout=Lh.prototype.Za;Lh.prototype.getSimplifiedGeometry=Lh.prototype.la;Lh.prototype.on=Lh.prototype.u;Lh.prototype.once=Lh.prototype.v;Lh.prototype.transform=Lh.prototype.transform;Lh.prototype.un=Lh.prototype.A;Lh.prototype.unByKey=Lh.prototype.B;t("ol.inherits",v);t("ol.interaction.DoubleClickZoom",Uk);Uk.prototype.dispatchChangeEvent=Uk.prototype.l;Uk.prototype.on=Uk.prototype.u;Uk.prototype.once=Uk.prototype.v;Uk.prototype.un=Uk.prototype.A;Uk.prototype.unByKey=Uk.prototype.B;
|
|
t("ol.interaction.DragAndDrop",Jt);Jt.prototype.dispatchChangeEvent=Jt.prototype.l;Jt.prototype.on=Jt.prototype.u;Jt.prototype.once=Jt.prototype.v;Jt.prototype.un=Jt.prototype.A;Jt.prototype.unByKey=Jt.prototype.B;Kt.prototype.features=Kt.prototype.features;Kt.prototype.file=Kt.prototype.file;Kt.prototype.projection=Kt.prototype.projection;t("ol.interaction.DragBox",yi);yi.prototype.dispatchChangeEvent=yi.prototype.l;yi.prototype.getGeometry=yi.prototype.Q;yi.prototype.on=yi.prototype.u;
|
|
yi.prototype.once=yi.prototype.v;yi.prototype.un=yi.prototype.A;yi.prototype.unByKey=yi.prototype.B;t("ol.interaction.DragPan",Vk);Vk.prototype.dispatchChangeEvent=Vk.prototype.l;Vk.prototype.on=Vk.prototype.u;Vk.prototype.once=Vk.prototype.v;Vk.prototype.un=Vk.prototype.A;Vk.prototype.unByKey=Vk.prototype.B;t("ol.interaction.DragRotate",Wk);Wk.prototype.dispatchChangeEvent=Wk.prototype.l;Wk.prototype.on=Wk.prototype.u;Wk.prototype.once=Wk.prototype.v;Wk.prototype.un=Wk.prototype.A;
|
|
Wk.prototype.unByKey=Wk.prototype.B;t("ol.interaction.DragRotateAndZoom",Nt);Nt.prototype.dispatchChangeEvent=Nt.prototype.l;Nt.prototype.on=Nt.prototype.u;Nt.prototype.once=Nt.prototype.v;Nt.prototype.un=Nt.prototype.A;Nt.prototype.unByKey=Nt.prototype.B;t("ol.interaction.DragZoom",Xk);Xk.prototype.dispatchChangeEvent=Xk.prototype.l;Xk.prototype.getGeometry=Xk.prototype.Q;Xk.prototype.on=Xk.prototype.u;Xk.prototype.once=Xk.prototype.v;Xk.prototype.un=Xk.prototype.A;Xk.prototype.unByKey=Xk.prototype.B;
|
|
t("ol.interaction.Draw",Sn);Sn.prototype.dispatchChangeEvent=Sn.prototype.l;Sn.prototype.on=Sn.prototype.u;Sn.prototype.once=Sn.prototype.v;Sn.prototype.un=Sn.prototype.A;Sn.prototype.unByKey=Sn.prototype.B;Dh.prototype.dispatchChangeEvent=Dh.prototype.l;Dh.prototype.on=Dh.prototype.u;Dh.prototype.once=Dh.prototype.v;Dh.prototype.un=Dh.prototype.A;Dh.prototype.unByKey=Dh.prototype.B;t("ol.interaction.KeyboardPan",Yk);Yk.prototype.dispatchChangeEvent=Yk.prototype.l;Yk.prototype.on=Yk.prototype.u;
|
|
Yk.prototype.once=Yk.prototype.v;Yk.prototype.un=Yk.prototype.A;Yk.prototype.unByKey=Yk.prototype.B;t("ol.interaction.KeyboardZoom",Zk);Zk.prototype.dispatchChangeEvent=Zk.prototype.l;Zk.prototype.on=Zk.prototype.u;Zk.prototype.once=Zk.prototype.v;Zk.prototype.un=Zk.prototype.A;Zk.prototype.unByKey=Zk.prototype.B;t("ol.interaction.Modify",Ot);Ot.prototype.dispatchChangeEvent=Ot.prototype.l;Ot.prototype.on=Ot.prototype.u;Ot.prototype.once=Ot.prototype.v;Ot.prototype.un=Ot.prototype.A;
|
|
Ot.prototype.unByKey=Ot.prototype.B;t("ol.interaction.MouseWheelZoom",$k);$k.prototype.dispatchChangeEvent=$k.prototype.l;$k.prototype.on=$k.prototype.u;$k.prototype.once=$k.prototype.v;$k.prototype.un=$k.prototype.A;$k.prototype.unByKey=$k.prototype.B;t("ol.interaction.PinchRotate",al);al.prototype.dispatchChangeEvent=al.prototype.l;al.prototype.on=al.prototype.u;al.prototype.once=al.prototype.v;al.prototype.un=al.prototype.A;al.prototype.unByKey=al.prototype.B;t("ol.interaction.PinchZoom",bl);
|
|
bl.prototype.dispatchChangeEvent=bl.prototype.l;bl.prototype.on=bl.prototype.u;bl.prototype.once=bl.prototype.v;bl.prototype.un=bl.prototype.A;bl.prototype.unByKey=bl.prototype.B;Hh.prototype.dispatchChangeEvent=Hh.prototype.l;Hh.prototype.on=Hh.prototype.u;Hh.prototype.once=Hh.prototype.v;Hh.prototype.un=Hh.prototype.A;Hh.prototype.unByKey=Hh.prototype.B;t("ol.interaction.Select",Tt);Tt.prototype.dispatchChangeEvent=Tt.prototype.l;Tt.prototype.getFeatures=Tt.prototype.jh;Tt.prototype.on=Tt.prototype.u;
|
|
Tt.prototype.once=Tt.prototype.v;Tt.prototype.setMap=Tt.prototype.setMap;Tt.prototype.un=Tt.prototype.A;Tt.prototype.unByKey=Tt.prototype.B;t("ol.interaction.defaults",cl);J.prototype.bindTo=J.prototype.Y;J.prototype.dispatchChangeEvent=J.prototype.l;J.prototype.get=J.prototype.get;J.prototype.getBrightness=J.prototype.d;J.prototype.getContrast=J.prototype.e;J.prototype.getHue=J.prototype.f;J.prototype.getKeys=J.prototype.M;J.prototype.getMaxResolution=J.prototype.i;J.prototype.getMinResolution=J.prototype.g;
|
|
J.prototype.getOpacity=J.prototype.n;J.prototype.getProperties=J.prototype.T;J.prototype.getSaturation=J.prototype.k;J.prototype.getVisible=J.prototype.b;J.prototype.notify=J.prototype.V;J.prototype.on=J.prototype.u;J.prototype.once=J.prototype.v;J.prototype.set=J.prototype.s;J.prototype.setBrightness=J.prototype.o;J.prototype.setContrast=J.prototype.p;J.prototype.setHue=J.prototype.t;J.prototype.setMaxResolution=J.prototype.r;J.prototype.setMinResolution=J.prototype.D;J.prototype.setOpacity=J.prototype.F;
|
|
J.prototype.setSaturation=J.prototype.N;J.prototype.setValues=J.prototype.J;J.prototype.setVisible=J.prototype.W;J.prototype.un=J.prototype.A;J.prototype.unByKey=J.prototype.B;J.prototype.unbind=J.prototype.X;J.prototype.unbindAll=J.prototype.Z;t("ol.layer.Group",N);N.prototype.bindTo=N.prototype.Y;N.prototype.dispatchChangeEvent=N.prototype.l;N.prototype.get=N.prototype.get;N.prototype.getBrightness=N.prototype.d;N.prototype.getContrast=N.prototype.e;N.prototype.getHue=N.prototype.f;
|
|
N.prototype.getKeys=N.prototype.M;N.prototype.getMaxResolution=N.prototype.i;N.prototype.getMinResolution=N.prototype.g;N.prototype.getOpacity=N.prototype.n;N.prototype.getProperties=N.prototype.T;N.prototype.getSaturation=N.prototype.k;N.prototype.getVisible=N.prototype.b;N.prototype.notify=N.prototype.V;N.prototype.on=N.prototype.u;N.prototype.once=N.prototype.v;N.prototype.set=N.prototype.s;N.prototype.setBrightness=N.prototype.o;N.prototype.setContrast=N.prototype.p;N.prototype.setHue=N.prototype.t;
|
|
N.prototype.setMaxResolution=N.prototype.r;N.prototype.setMinResolution=N.prototype.D;N.prototype.setOpacity=N.prototype.F;N.prototype.setSaturation=N.prototype.N;N.prototype.setValues=N.prototype.J;N.prototype.setVisible=N.prototype.W;N.prototype.un=N.prototype.A;N.prototype.unByKey=N.prototype.B;N.prototype.unbind=N.prototype.X;N.prototype.unbindAll=N.prototype.Z;t("ol.layer.Heatmap",$);$.prototype.bindTo=$.prototype.Y;$.prototype.dispatchChangeEvent=$.prototype.l;$.prototype.get=$.prototype.get;
|
|
$.prototype.getBrightness=$.prototype.d;$.prototype.getContrast=$.prototype.e;$.prototype.getHue=$.prototype.f;$.prototype.getKeys=$.prototype.M;$.prototype.getMaxResolution=$.prototype.i;$.prototype.getMinResolution=$.prototype.g;$.prototype.getOpacity=$.prototype.n;$.prototype.getProperties=$.prototype.T;$.prototype.getSaturation=$.prototype.k;$.prototype.getSource=$.prototype.ca;$.prototype.getStyle=$.prototype.ub;$.prototype.getStyleFunction=$.prototype.$b;$.prototype.getVisible=$.prototype.b;
|
|
$.prototype.notify=$.prototype.V;$.prototype.on=$.prototype.u;$.prototype.once=$.prototype.v;$.prototype.set=$.prototype.s;$.prototype.setBrightness=$.prototype.o;$.prototype.setContrast=$.prototype.p;$.prototype.setHue=$.prototype.t;$.prototype.setMaxResolution=$.prototype.r;$.prototype.setMinResolution=$.prototype.D;$.prototype.setOpacity=$.prototype.F;$.prototype.setSaturation=$.prototype.N;$.prototype.setStyle=$.prototype.ia;$.prototype.setValues=$.prototype.J;$.prototype.setVisible=$.prototype.W;
|
|
$.prototype.un=$.prototype.A;$.prototype.unByKey=$.prototype.B;$.prototype.unbind=$.prototype.X;$.prototype.unbindAll=$.prototype.Z;t("ol.layer.Image",O);O.prototype.bindTo=O.prototype.Y;O.prototype.dispatchChangeEvent=O.prototype.l;O.prototype.get=O.prototype.get;O.prototype.getBrightness=O.prototype.d;O.prototype.getContrast=O.prototype.e;O.prototype.getHue=O.prototype.f;O.prototype.getKeys=O.prototype.M;O.prototype.getMaxResolution=O.prototype.i;O.prototype.getMinResolution=O.prototype.g;
|
|
O.prototype.getOpacity=O.prototype.n;O.prototype.getProperties=O.prototype.T;O.prototype.getSaturation=O.prototype.k;O.prototype.getSource=O.prototype.ca;O.prototype.getVisible=O.prototype.b;O.prototype.notify=O.prototype.V;O.prototype.on=O.prototype.u;O.prototype.once=O.prototype.v;O.prototype.set=O.prototype.s;O.prototype.setBrightness=O.prototype.o;O.prototype.setContrast=O.prototype.p;O.prototype.setHue=O.prototype.t;O.prototype.setMaxResolution=O.prototype.r;O.prototype.setMinResolution=O.prototype.D;
|
|
O.prototype.setOpacity=O.prototype.F;O.prototype.setSaturation=O.prototype.N;O.prototype.setValues=O.prototype.J;O.prototype.setVisible=O.prototype.W;O.prototype.un=O.prototype.A;O.prototype.unByKey=O.prototype.B;O.prototype.unbind=O.prototype.X;O.prototype.unbindAll=O.prototype.Z;t("ol.layer.Layer",K);K.prototype.bindTo=K.prototype.Y;K.prototype.dispatchChangeEvent=K.prototype.l;K.prototype.get=K.prototype.get;K.prototype.getBrightness=K.prototype.d;K.prototype.getContrast=K.prototype.e;
|
|
K.prototype.getHue=K.prototype.f;K.prototype.getKeys=K.prototype.M;K.prototype.getMaxResolution=K.prototype.i;K.prototype.getMinResolution=K.prototype.g;K.prototype.getOpacity=K.prototype.n;K.prototype.getProperties=K.prototype.T;K.prototype.getSaturation=K.prototype.k;K.prototype.getSource=K.prototype.ca;K.prototype.getVisible=K.prototype.b;K.prototype.notify=K.prototype.V;K.prototype.on=K.prototype.u;K.prototype.once=K.prototype.v;K.prototype.set=K.prototype.s;K.prototype.setBrightness=K.prototype.o;
|
|
K.prototype.setContrast=K.prototype.p;K.prototype.setHue=K.prototype.t;K.prototype.setMaxResolution=K.prototype.r;K.prototype.setMinResolution=K.prototype.D;K.prototype.setOpacity=K.prototype.F;K.prototype.setSaturation=K.prototype.N;K.prototype.setValues=K.prototype.J;K.prototype.setVisible=K.prototype.W;K.prototype.un=K.prototype.A;K.prototype.unByKey=K.prototype.B;K.prototype.unbind=K.prototype.X;K.prototype.unbindAll=K.prototype.Z;t("ol.layer.Tile",P);P.prototype.bindTo=P.prototype.Y;
|
|
P.prototype.dispatchChangeEvent=P.prototype.l;P.prototype.get=P.prototype.get;P.prototype.getBrightness=P.prototype.d;P.prototype.getContrast=P.prototype.e;P.prototype.getHue=P.prototype.f;P.prototype.getKeys=P.prototype.M;P.prototype.getMaxResolution=P.prototype.i;P.prototype.getMinResolution=P.prototype.g;P.prototype.getOpacity=P.prototype.n;P.prototype.getProperties=P.prototype.T;P.prototype.getSaturation=P.prototype.k;P.prototype.getSource=P.prototype.ca;P.prototype.getVisible=P.prototype.b;
|
|
P.prototype.notify=P.prototype.V;P.prototype.on=P.prototype.u;P.prototype.once=P.prototype.v;P.prototype.set=P.prototype.s;P.prototype.setBrightness=P.prototype.o;P.prototype.setContrast=P.prototype.p;P.prototype.setHue=P.prototype.t;P.prototype.setMaxResolution=P.prototype.r;P.prototype.setMinResolution=P.prototype.D;P.prototype.setOpacity=P.prototype.F;P.prototype.setSaturation=P.prototype.N;P.prototype.setValues=P.prototype.J;P.prototype.setVisible=P.prototype.W;P.prototype.un=P.prototype.A;
|
|
P.prototype.unByKey=P.prototype.B;P.prototype.unbind=P.prototype.X;P.prototype.unbindAll=P.prototype.Z;t("ol.layer.Vector",Q);Q.prototype.bindTo=Q.prototype.Y;Q.prototype.dispatchChangeEvent=Q.prototype.l;Q.prototype.get=Q.prototype.get;Q.prototype.getBrightness=Q.prototype.d;Q.prototype.getContrast=Q.prototype.e;Q.prototype.getHue=Q.prototype.f;Q.prototype.getKeys=Q.prototype.M;Q.prototype.getMaxResolution=Q.prototype.i;Q.prototype.getMinResolution=Q.prototype.g;Q.prototype.getOpacity=Q.prototype.n;
|
|
Q.prototype.getProperties=Q.prototype.T;Q.prototype.getSaturation=Q.prototype.k;Q.prototype.getSource=Q.prototype.ca;Q.prototype.getStyle=Q.prototype.ub;Q.prototype.getStyleFunction=Q.prototype.$b;Q.prototype.getVisible=Q.prototype.b;Q.prototype.notify=Q.prototype.V;Q.prototype.on=Q.prototype.u;Q.prototype.once=Q.prototype.v;Q.prototype.set=Q.prototype.s;Q.prototype.setBrightness=Q.prototype.o;Q.prototype.setContrast=Q.prototype.p;Q.prototype.setHue=Q.prototype.t;Q.prototype.setMaxResolution=Q.prototype.r;
|
|
Q.prototype.setMinResolution=Q.prototype.D;Q.prototype.setOpacity=Q.prototype.F;Q.prototype.setSaturation=Q.prototype.N;Q.prototype.setStyle=Q.prototype.ia;Q.prototype.setValues=Q.prototype.J;Q.prototype.setVisible=Q.prototype.W;Q.prototype.un=Q.prototype.A;Q.prototype.unByKey=Q.prototype.B;Q.prototype.unbind=Q.prototype.X;Q.prototype.unbindAll=Q.prototype.Z;t("ol.loadingstrategy.all",function(){return[[-Infinity,-Infinity,Infinity,Infinity]]});t("ol.loadingstrategy.bbox",Xt);
|
|
t("ol.loadingstrategy.createTile",function(a){return function(b,c){var d=jg(a.a,c,0),e=dk(a,b,d),f=[],d=new Lb(d,0,0);for(d.x=e.a;d.x<=e.d;++d.x)for(d.y=e.b;d.y<=e.c;++d.y)f.push(ck(a,d));return f}});t("ol.proj.CH",Zt);Zt.prototype.getCode=Zt.prototype.c;Zt.prototype.getExtent=Zt.prototype.C;Zt.prototype.getUnits=Zt.prototype.b;t("ol.proj.EPSG2056",bu);bu.prototype.getCode=bu.prototype.c;bu.prototype.getExtent=bu.prototype.C;bu.prototype.getUnits=bu.prototype.b;t("ol.proj.EPSG21781",du);
|
|
du.prototype.getCode=du.prototype.c;du.prototype.getExtent=du.prototype.C;du.prototype.getUnits=du.prototype.b;t("ol.proj.EPSG3857",dl);dl.prototype.getCode=dl.prototype.c;dl.prototype.getExtent=dl.prototype.C;dl.prototype.getUnits=dl.prototype.b;t("ol.proj.EPSG4326",gl);gl.prototype.getCode=gl.prototype.c;gl.prototype.getExtent=gl.prototype.C;gl.prototype.getUnits=gl.prototype.b;t("ol.proj.METERS_PER_UNIT[undefined]",Vg[void 0]);t("ol.proj.Projection",Xg);Xg.prototype.getCode=Xg.prototype.c;
|
|
Xg.prototype.getExtent=Xg.prototype.C;Xg.prototype.getUnits=Xg.prototype.b;t("ol.proj.addProjection",oh);t("ol.proj.common.add",il);t("ol.proj.configureProj4jsProjection",function(a){return ah(a)});t("ol.proj.get",qh);t("ol.proj.getTransform",rh);t("ol.proj.getTransformFromProjections",$g);t("ol.proj.transform",function(a,b,c){return rh(b,c)(a)});t("ol.proj.transformWithProjections",function(a,b,c){return $g(b,c)(a)});ti.prototype.context=ti.prototype.context;ti.prototype.frameState=ti.prototype.frameState;
|
|
ti.prototype.glContext=ti.prototype.glContext;ti.prototype.vectorContext=ti.prototype.vectorContext;jl.prototype.drawAsync=jl.prototype.Hc;jl.prototype.drawCircleGeometry=jl.prototype.ic;jl.prototype.drawFeature=jl.prototype.Ic;jl.prototype.drawLineStringGeometry=jl.prototype.jc;jl.prototype.drawMultiLineStringGeometry=jl.prototype.kc;jl.prototype.drawMultiPointGeometry=jl.prototype.lc;jl.prototype.drawMultiPolygonGeometry=jl.prototype.mc;jl.prototype.drawPointGeometry=jl.prototype.nc;
|
|
jl.prototype.drawPolygonGeometry=jl.prototype.Nb;jl.prototype.setFillStrokeStyle=jl.prototype.Ia;jl.prototype.setImageStyle=jl.prototype.Yb;jl.prototype.setTextStyle=jl.prototype.sa;t("ol.source.BingMaps",Du);Du.prototype.dispatchChangeEvent=Du.prototype.l;Du.prototype.getState=Du.prototype.a;Du.prototype.getTileGrid=Du.prototype.Ca;Du.prototype.getTileLoadFunction=Du.prototype.Ma;Du.prototype.getTileUrlFunction=Du.prototype.Na;Du.prototype.on=Du.prototype.u;Du.prototype.once=Du.prototype.v;
|
|
Du.prototype.setTileLoadFunction=Du.prototype.Sa;Du.prototype.setTileUrlFunction=Du.prototype.Ga;Du.prototype.un=Du.prototype.A;Du.prototype.unByKey=Du.prototype.B;t("ol.source.BingMaps.TOS_ATTRIBUTION",Eu);t("ol.source.BingMaps.TOS_ATTRIBUTION",Eu);av.prototype.addFeature=av.prototype.Gd;av.prototype.addFeatures=av.prototype.Yd;av.prototype.dispatchChangeEvent=av.prototype.l;av.prototype.forEachFeature=av.prototype.he;av.prototype.forEachFeatureInExtent=av.prototype.Kc;
|
|
av.prototype.getClosestFeatureToCoordinate=av.prototype.je;av.prototype.getExtent=av.prototype.C;av.prototype.getFeatureById=av.prototype.le;av.prototype.getFeatures=av.prototype.Hd;av.prototype.getFeaturesAtCoordinate=av.prototype.me;av.prototype.getState=av.prototype.a;av.prototype.on=av.prototype.u;av.prototype.once=av.prototype.v;av.prototype.readFeatures=av.prototype.f;av.prototype.removeFeature=av.prototype.Ge;av.prototype.un=av.prototype.A;av.prototype.unByKey=av.prototype.B;
|
|
t("ol.source.GPX",dv);t("ol.source.GeoJSON",ev);t("ol.source.IGC",fv);Al.prototype.dispatchChangeEvent=Al.prototype.l;Al.prototype.getState=Al.prototype.a;Al.prototype.on=Al.prototype.u;Al.prototype.once=Al.prototype.v;Al.prototype.un=Al.prototype.A;Al.prototype.unByKey=Al.prototype.B;t("ol.source.ImageCanvas",hv);hv.prototype.dispatchChangeEvent=hv.prototype.l;hv.prototype.getState=hv.prototype.a;hv.prototype.on=hv.prototype.u;hv.prototype.once=hv.prototype.v;hv.prototype.un=hv.prototype.A;
|
|
hv.prototype.unByKey=hv.prototype.B;t("ol.source.ImageStatic",iv);iv.prototype.dispatchChangeEvent=iv.prototype.l;iv.prototype.getState=iv.prototype.a;iv.prototype.on=iv.prototype.u;iv.prototype.once=iv.prototype.v;iv.prototype.un=iv.prototype.A;iv.prototype.unByKey=iv.prototype.B;t("ol.source.ImageVector",jv);jv.prototype.dispatchChangeEvent=jv.prototype.l;jv.prototype.getSource=jv.prototype.nh;jv.prototype.getState=jv.prototype.a;jv.prototype.on=jv.prototype.u;jv.prototype.once=jv.prototype.v;
|
|
jv.prototype.un=jv.prototype.A;jv.prototype.unByKey=jv.prototype.B;t("ol.source.ImageWMS",kv);kv.prototype.dispatchChangeEvent=kv.prototype.l;kv.prototype.getGetFeatureInfoUrl=kv.prototype.qh;kv.prototype.getParams=kv.prototype.rh;kv.prototype.getState=kv.prototype.a;kv.prototype.getUrl=kv.prototype.sh;kv.prototype.on=kv.prototype.u;kv.prototype.once=kv.prototype.v;kv.prototype.setUrl=kv.prototype.th;kv.prototype.un=kv.prototype.A;kv.prototype.unByKey=kv.prototype.B;kv.prototype.updateParams=kv.prototype.uh;
|
|
t("ol.source.KML",nv);t("ol.source.MapGuide",qv);qv.prototype.dispatchChangeEvent=qv.prototype.l;qv.prototype.getState=qv.prototype.a;qv.prototype.on=qv.prototype.u;qv.prototype.once=qv.prototype.v;qv.prototype.un=qv.prototype.A;qv.prototype.unByKey=qv.prototype.B;t("ol.source.MapQuest",wv);wv.prototype.dispatchChangeEvent=wv.prototype.l;wv.prototype.getState=wv.prototype.a;wv.prototype.getTileGrid=wv.prototype.Ca;wv.prototype.getTileLoadFunction=wv.prototype.Ma;wv.prototype.getTileUrlFunction=wv.prototype.Na;
|
|
wv.prototype.on=wv.prototype.u;wv.prototype.once=wv.prototype.v;wv.prototype.setTileLoadFunction=wv.prototype.Sa;wv.prototype.setUrl=wv.prototype.d;wv.prototype.setUrl=wv.prototype.d;wv.prototype.un=wv.prototype.A;wv.prototype.unByKey=wv.prototype.B;t("ol.source.OSM",sv);sv.prototype.dispatchChangeEvent=sv.prototype.l;sv.prototype.getState=sv.prototype.a;sv.prototype.getTileGrid=sv.prototype.Ca;sv.prototype.getTileLoadFunction=sv.prototype.Ma;sv.prototype.getTileUrlFunction=sv.prototype.Na;
|
|
sv.prototype.on=sv.prototype.u;sv.prototype.once=sv.prototype.v;sv.prototype.setTileLoadFunction=sv.prototype.Sa;sv.prototype.setUrl=sv.prototype.d;sv.prototype.setUrl=sv.prototype.d;sv.prototype.un=sv.prototype.A;sv.prototype.unByKey=sv.prototype.B;t("ol.source.OSM.DATA_ATTRIBUTION",uv);t("ol.source.OSM.DATA_ATTRIBUTION",uv);t("ol.source.OSM.TILE_ATTRIBUTION",vv);t("ol.source.OSM.TILE_ATTRIBUTION",vv);t("ol.source.OSMXML",zv);t("ol.source.ServerVector",Av);Av.prototype.readFeatures=Av.prototype.f;
|
|
Tj.prototype.dispatchChangeEvent=Tj.prototype.l;Tj.prototype.getState=Tj.prototype.a;Tj.prototype.on=Tj.prototype.u;Tj.prototype.once=Tj.prototype.v;Tj.prototype.un=Tj.prototype.A;Tj.prototype.unByKey=Tj.prototype.B;t("ol.source.Stamen",Dv);Dv.prototype.dispatchChangeEvent=Dv.prototype.l;Dv.prototype.getState=Dv.prototype.a;Dv.prototype.getTileGrid=Dv.prototype.Ca;Dv.prototype.getTileLoadFunction=Dv.prototype.Ma;Dv.prototype.getTileUrlFunction=Dv.prototype.Na;Dv.prototype.on=Dv.prototype.u;
|
|
Dv.prototype.once=Dv.prototype.v;Dv.prototype.setTileLoadFunction=Dv.prototype.Sa;Dv.prototype.setUrl=Dv.prototype.d;Dv.prototype.setUrl=Dv.prototype.d;Dv.prototype.un=Dv.prototype.A;Dv.prototype.unByKey=Dv.prototype.B;t("ol.source.StaticVector",cv);hk.prototype.dispatchChangeEvent=hk.prototype.l;hk.prototype.getState=hk.prototype.a;hk.prototype.getTileGrid=hk.prototype.Ca;hk.prototype.on=hk.prototype.u;hk.prototype.once=hk.prototype.v;hk.prototype.un=hk.prototype.A;hk.prototype.unByKey=hk.prototype.B;
|
|
t("ol.source.TileDebug",Gv);Gv.prototype.dispatchChangeEvent=Gv.prototype.l;Gv.prototype.getState=Gv.prototype.a;Gv.prototype.on=Gv.prototype.u;Gv.prototype.once=Gv.prototype.v;Gv.prototype.un=Gv.prototype.A;Gv.prototype.unByKey=Gv.prototype.B;t("ol.source.TileImage",Au);Au.prototype.dispatchChangeEvent=Au.prototype.l;Au.prototype.getState=Au.prototype.a;Au.prototype.getTileGrid=Au.prototype.Ca;Au.prototype.getTileLoadFunction=Au.prototype.Ma;Au.prototype.getTileUrlFunction=Au.prototype.Na;
|
|
Au.prototype.on=Au.prototype.u;Au.prototype.once=Au.prototype.v;Au.prototype.setTileLoadFunction=Au.prototype.Sa;Au.prototype.setTileUrlFunction=Au.prototype.Ga;Au.prototype.un=Au.prototype.A;Au.prototype.unByKey=Au.prototype.B;t("ol.source.TileJSON",Hv);Hv.prototype.dispatchChangeEvent=Hv.prototype.l;Hv.prototype.getState=Hv.prototype.a;Hv.prototype.getTileGrid=Hv.prototype.Ca;Hv.prototype.getTileLoadFunction=Hv.prototype.Ma;Hv.prototype.getTileUrlFunction=Hv.prototype.Na;Hv.prototype.on=Hv.prototype.u;
|
|
Hv.prototype.once=Hv.prototype.v;Hv.prototype.setTileLoadFunction=Hv.prototype.Sa;Hv.prototype.setTileUrlFunction=Hv.prototype.Ga;Hv.prototype.un=Hv.prototype.A;Hv.prototype.unByKey=Hv.prototype.B;t("ol.source.TileVector",Iv);t("ol.source.TileWMS",Jv);Jv.prototype.dispatchChangeEvent=Jv.prototype.l;Jv.prototype.getGetFeatureInfoUrl=Jv.prototype.vh;Jv.prototype.getParams=Jv.prototype.wh;Jv.prototype.getState=Jv.prototype.a;Jv.prototype.getTileGrid=Jv.prototype.Ca;Jv.prototype.getTileLoadFunction=Jv.prototype.Ma;
|
|
Jv.prototype.getTileUrlFunction=Jv.prototype.Na;Jv.prototype.getUrls=Jv.prototype.Qf;Jv.prototype.on=Jv.prototype.u;Jv.prototype.once=Jv.prototype.v;Jv.prototype.setTileLoadFunction=Jv.prototype.Sa;Jv.prototype.setTileUrlFunction=Jv.prototype.Ga;Jv.prototype.un=Jv.prototype.A;Jv.prototype.unByKey=Jv.prototype.B;Jv.prototype.updateParams=Jv.prototype.yh;t("ol.source.TopoJSON",Nv);t("ol.source.Vector",Lm);Lm.prototype.addFeature=Lm.prototype.Gd;Lm.prototype.addFeatures=Lm.prototype.Yd;
|
|
Lm.prototype.dispatchChangeEvent=Lm.prototype.l;Lm.prototype.forEachFeature=Lm.prototype.he;Lm.prototype.forEachFeatureInExtent=Lm.prototype.Kc;Lm.prototype.getClosestFeatureToCoordinate=Lm.prototype.je;Lm.prototype.getExtent=Lm.prototype.C;Lm.prototype.getFeatureById=Lm.prototype.le;Lm.prototype.getFeatures=Lm.prototype.Hd;Lm.prototype.getFeaturesAtCoordinate=Lm.prototype.me;Lm.prototype.getState=Lm.prototype.a;Lm.prototype.on=Lm.prototype.u;Lm.prototype.once=Lm.prototype.v;
|
|
Lm.prototype.removeFeature=Lm.prototype.Ge;Lm.prototype.un=Lm.prototype.A;Lm.prototype.unByKey=Lm.prototype.B;Nm.prototype.feature=Nm.prototype.feature;t("ol.source.WMTS",Rv);Rv.prototype.dispatchChangeEvent=Rv.prototype.l;Rv.prototype.getDimensions=Rv.prototype.f;Rv.prototype.getState=Rv.prototype.a;Rv.prototype.getTileGrid=Rv.prototype.Ca;Rv.prototype.getTileLoadFunction=Rv.prototype.Ma;Rv.prototype.getTileUrlFunction=Rv.prototype.Na;Rv.prototype.on=Rv.prototype.u;Rv.prototype.once=Rv.prototype.v;
|
|
Rv.prototype.setTileLoadFunction=Rv.prototype.Sa;Rv.prototype.setTileUrlFunction=Rv.prototype.Ga;Rv.prototype.un=Rv.prototype.A;Rv.prototype.unByKey=Rv.prototype.B;Rv.prototype.updateDimensions=Rv.prototype.g;
|
|
t("ol.source.WMTS.optionsFromCapabilities",function(a,b){var c=zb(a.contents.layers,function(a){return a.identifier==b}),d=c.tileMatrixSetLinks[0].tileMatrixSet,e=c.formats[0],f=Ab(c.styles,function(a){return a.isDefault});0>f&&(f=0);var f=c.styles[f].identifier,g={};wb(c.dimensions,function(a){var b=a.identifier,c=a["default"];s(c)||(c=a.values[0]);g[b]=c});var h=a.contents.tileMatrixSets[d],m=Pv(h),h=qh(h.supportedCRS),n=a.operationsMetadata.GetTile.dcp.http.get,p,q;switch(gc(n[0].constraints.GetEncoding.allowedValues)[0]){case "REST":case "RESTful":q=
|
|
"REST";p=c.resourceUrls.tile[e];break;case "KVP":q=Qv,p=[],wb(n,function(a){a.constraints.GetEncoding.allowedValues.hasOwnProperty(Qv)&&p.push(a.url)})}return{urls:p,layer:b,matrixSet:d,format:e,projection:h,requestEncoding:q,tileGrid:m,style:f,dimensions:g}});t("ol.source.XYZ",rv);rv.prototype.dispatchChangeEvent=rv.prototype.l;rv.prototype.getState=rv.prototype.a;rv.prototype.getTileGrid=rv.prototype.Ca;rv.prototype.getTileLoadFunction=rv.prototype.Ma;rv.prototype.getTileUrlFunction=rv.prototype.Na;
|
|
rv.prototype.on=rv.prototype.u;rv.prototype.once=rv.prototype.v;rv.prototype.setTileLoadFunction=rv.prototype.Sa;rv.prototype.setUrl=rv.prototype.d;rv.prototype.setUrl=rv.prototype.d;rv.prototype.un=rv.prototype.A;rv.prototype.unByKey=rv.prototype.B;t("ol.source.Zoomify",Uv);Uv.prototype.dispatchChangeEvent=Uv.prototype.l;Uv.prototype.getState=Uv.prototype.a;Uv.prototype.getTileGrid=Uv.prototype.Ca;Uv.prototype.getTileLoadFunction=Uv.prototype.Ma;Uv.prototype.getTileUrlFunction=Uv.prototype.Na;
|
|
Uv.prototype.on=Uv.prototype.u;Uv.prototype.once=Uv.prototype.v;Uv.prototype.setTileLoadFunction=Uv.prototype.Sa;Uv.prototype.setTileUrlFunction=Uv.prototype.Ga;Uv.prototype.un=Uv.prototype.A;Uv.prototype.unByKey=Uv.prototype.B;t("ol.sphere.WGS84",bo);t("ol.style.Circle",Li);Li.prototype.getAnchor=Li.prototype.oc;Li.prototype.getFill=Li.prototype.zh;Li.prototype.getImage=Li.prototype.uc;Li.prototype.getOrigin=Li.prototype.vc;Li.prototype.getRadius=Li.prototype.Ah;Li.prototype.getRotation=Li.prototype.k;
|
|
Li.prototype.getScale=Li.prototype.n;Li.prototype.getSize=Li.prototype.Db;Li.prototype.getStroke=Li.prototype.Bh;t("ol.style.Fill",Ii);Ii.prototype.getColor=Ii.prototype.c;t("ol.style.Icon",tk);tk.prototype.getAnchor=tk.prototype.oc;tk.prototype.getImage=tk.prototype.uc;tk.prototype.getOrigin=tk.prototype.vc;tk.prototype.getRotation=tk.prototype.k;tk.prototype.getScale=tk.prototype.n;tk.prototype.getSize=tk.prototype.Db;tk.prototype.getSrc=tk.prototype.Ch;Ji.prototype.getRotation=Ji.prototype.k;
|
|
Ji.prototype.getScale=Ji.prototype.n;t("ol.style.Stroke",Ki);Ki.prototype.getColor=Ki.prototype.Dh;Ki.prototype.getLineCap=Ki.prototype.Ff;Ki.prototype.getLineDash=Ki.prototype.Eh;Ki.prototype.getLineJoin=Ki.prototype.Gf;Ki.prototype.getMiterLimit=Ki.prototype.Jf;Ki.prototype.getWidth=Ki.prototype.Fh;t("ol.style.Style",Mi);Mi.prototype.getFill=Mi.prototype.Gh;Mi.prototype.getImage=Mi.prototype.Hh;Mi.prototype.getStroke=Mi.prototype.Ih;Mi.prototype.getText=Mi.prototype.Jh;Mi.prototype.getZIndex=Mi.prototype.Sf;
|
|
t("ol.style.Text",Wv);Wv.prototype.getFill=Wv.prototype.Kh;Wv.prototype.getFont=Wv.prototype.yf;Wv.prototype.getRotation=Wv.prototype.Lh;Wv.prototype.getScale=Wv.prototype.Mh;Wv.prototype.getStroke=Wv.prototype.Nh;Wv.prototype.getText=Wv.prototype.Oh;Wv.prototype.getTextAlign=Wv.prototype.Nf;Wv.prototype.getTextBaseline=Wv.prototype.Of;t("ol.tilegrid.TileGrid",ak);ak.prototype.getMinZoom=ak.prototype.Pc;ak.prototype.getOrigin=ak.prototype.pb;ak.prototype.getResolution=ak.prototype.ha;
|
|
ak.prototype.getTileSize=ak.prototype.ka;t("ol.tilegrid.WMTS",Ov);Ov.prototype.getMatrixIds=Ov.prototype.g;Ov.prototype.getMinZoom=Ov.prototype.Pc;Ov.prototype.getOrigin=Ov.prototype.pb;Ov.prototype.getResolution=Ov.prototype.ha;Ov.prototype.getTileSize=Ov.prototype.ka;t("ol.tilegrid.XYZ",Cu);Cu.prototype.getMinZoom=Cu.prototype.Pc;Cu.prototype.getOrigin=Cu.prototype.pb;Cu.prototype.getResolution=Cu.prototype.ha;Cu.prototype.getTileSize=Cu.prototype.ka;t("ol.tilegrid.Zoomify",Tv);
|
|
Tv.prototype.getMinZoom=Tv.prototype.Pc;Tv.prototype.getOrigin=Tv.prototype.pb;Tv.prototype.getResolution=Tv.prototype.ha;Tv.prototype.getTileSize=Tv.prototype.ka;t("ol.webgl.Context",Kn);Kn.prototype.getGL=Kn.prototype.Ph;Kn.prototype.useProgram=Kn.prototype.Kd;})();
|