1!function(n){var i={};function r(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}r.m=n,r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=92)}([function(t,e,n){"use strict";n.d(e,"b",function(){return o}),n.d(e,"c",function(){return a}),n.d(e,"d",function(){return s}),n.d(e,"e",function(){return l}),n.d(e,"f",function(){return c}),n.d(e,"g",function(){return u}),n.d(e,"h",function(){return h}),n.d(e,"i",function(){return d}),n.d(e,"j",function(){return f}),n.d(e,"k",function(){return g}),n.d(e,"l",function(){return y}),n.d(e,"m",function(){return m}),n.d(e,"n",function(){return _}),n.d(e,"o",function(){return v}),n.d(e,"p",function(){return b}),n.d(e,"q",function(){return x}),n.d(e,"r",function(){return O}),n.d(e,"s",function(){return w}),n.d(e,"t",function(){return C}),n.d(e,"u",function(){return E}),n.d(e,"v",function(){return T}),n.d(e,"w",function(){return S}),n.d(e,"x",function(){return j}),n.d(e,"y",function(){return D}),n.d(e,"z",function(){return I}),n.d(e,"A",function(){return R}),n.d(e,"B",function(){return P}),n.d(e,"C",function(){return k}),n.d(e,"D",function(){return M}),n.d(e,"E",function(){return A}),n.d(e,"F",function(){return L}),n.d(e,"H",function(){return F}),n.d(e,"I",function(){return N}),n.d(e,"J",function(){return G}),n.d(e,"G",function(){return W}),n.d(e,"a",function(){return z}),n.d(e,"K",function(){return Y});var i=n(62),p=n(28),r=n(9);function o(t){for(var e=f(),n=0,i=t.length;n<i;++n)O(e,t[n]);return e}function a(t,e,n){return n?(n[0]=t[0]-e,n[1]=t[1]-e,n[2]=t[2]+e,n[3]=t[3]+e,n):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function s(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function l(t,e,n){return(e=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*e+(t=n<t[1]?t[1]-n:t[3]<n?n-t[3]:0)*t}function c(t,e){return h(t,e[0],e[1])}function u(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function h(t,e,n){return t[0]<=e&&e<=t[2]&&t[1]<=n&&n<=t[3]}function d(t,e){var n=t[0],i=t[1],r=t[2],o=t[3],a=e[0],t=e[1],e=p.a.UNKNOWN;return a<n?e|=p.a.LEFT:r<a&&(e|=p.a.RIGHT),t<i?e|=p.a.BELOW:o<t&&(e|=p.a.ABOVE),e=e===p.a.UNKNOWN?p.a.INTERSECTING:e}function f(){return[1/0,1/0,-1/0,-1/0]}function g(t,e,n,i,r){return r?(r[0]=t,r[1]=e,r[2]=n,r[3]=i,r):[t,e,n,i]}function y(t){return g(1/0,1/0,-1/0,-1/0,t)}function m(t,e){var n=t[0],t=t[1];return g(n,t,n,t,e)}function _(t,e){return function(t,e){for(var n=0,i=e.length;n<i;++n)O(t,e[n]);return t}(y(e),t)}function v(t,e,n,i,r){return w(y(r),t,e,n,i)}function b(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function x(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function O(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function w(t,e,n,i,r){for(;n<i;n+=r)o=t,a=e[n],s=e[n+1],o[0]=Math.min(o[0],a),o[1]=Math.min(o[1],s),o[2]=Math.max(o[2],a),o[3]=Math.max(o[3],s);var o,a,s;return t}function C(t,e){var n;return(n=e(T(t)))||(n=e(S(t)))||(n=e(M(t)))?n:(n=e(k(t)))||!1}function E(t){var e=0;return e=!F(t)?A(t)*R(t):e}function T(t){return[t[0],t[1]]}function S(t){return[t[2],t[1]]}function j(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function D(t,e){var n;return e===i.a.BOTTOM_LEFT?n=T(t):e===i.a.BOTTOM_RIGHT?n=S(t):e===i.a.TOP_LEFT?n=k(t):e===i.a.TOP_RIGHT?n=M(t):Object(r.a)(!1,13),n}function I(t,e,n,i,r){var o=e*i[0]/2,a=e*i[1]/2,s=Math.cos(n),l=Math.sin(n),c=o*s,u=o*l,e=a*s,i=a*l,n=t[0],o=t[1],s=n-c+i,a=n-c-i,l=n+c-i,t=n+c+i,n=o-u-e,c=o-u+e,i=o+u+e,e=o+u-e;return g(Math.min(s,a,l,t),Math.min(n,c,i,e),Math.max(s,a,l,t),Math.max(n,c,i,e),r)}function R(t){return t[3]-t[1]}function P(t,e,n){n=n||[1/0,1/0,-1/0,-1/0];return L(t,e)?(t[0]>e[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]<e[2]?n[2]=t[2]:n[2]=e[2],t[3]<e[3]?n[3]=t[3]:n[3]=e[3]):y(n),n}function k(t){return[t[0],t[3]]}function M(t){return[t[2],t[3]]}function A(t){return t[2]-t[0]}function L(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function F(t){return t[2]<t[0]||t[3]<t[1]}function N(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function G(t,e){var n=(t[2]-t[0])/2*(e-1),e=(t[3]-t[1])/2*(e-1);t[0]-=n,t[2]+=n,t[1]-=e,t[3]+=e}function W(t,e,n){var i,r,o,a,s,l,c=!1,u=d(t,e),h=d(t,n);return u===p.a.INTERSECTING||h===p.a.INTERSECTING?c=!0:(i=t[0],r=t[1],o=t[2],a=t[3],l=e[0],s=e[1],t=n[0],n=((e=n[1])-s)/(t-l),l=s=void 0,(c=!(c=!(c=h&p.a.ABOVE&&!(u&p.a.ABOVE)?(s=t-(e-a)/n)>=i&&s<=o:c)&&h&p.a.RIGHT&&!(u&p.a.RIGHT)?(l=e-(t-o)*n)>=r&&l<=a:c)&&h&p.a.BELOW&&!(u&p.a.BELOW)?(s=t-(e-r)/n)>=i&&s<=o:c)||!(h&p.a.LEFT)||u&p.a.LEFT||(c=(l=e-(t-i)*n)>=r&&l<=a)),c}function z(t,e,n,i){var r=[];if(1<i)for(var o=t[2]-t[0],a=t[3]-t[1],s=0;s<i;++s)r.push(t[0]+o*s/i,t[1],t[2],t[1]+a*s/i,t[2]-o*s/i,t[3],t[0],t[3]-a*s/i);else r=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(r,r,2);for(var l,c=[],u=[],h=(s=0,r.length);s<h;s+=2)c.push(r[s]),u.push(r[s+1]);return l=c,e=u,n=n,g(Math.min.apply(null,l),Math.min.apply(null,e),Math.max.apply(null,l),Math.max.apply(null,e),n)}function Y(t,e){var n=e.getExtent(),i=j(t);return e.canWrapX()&&(i[0]<n[0]||i[0]>=n[2])&&(e=A(n),e=Math.floor((i[0]-n[0])/e)*e,t[0]-=e,t[2]-=e),t}},function(t,e,n){"use strict";function i(){return function(){throw new Error("Unimplemented abstract method.")}()}n.d(e,"b",function(){return i}),n.d(e,"c",function(){return o}
1),n.d(e,"a",function(){return a});var r=0;function o(t){return t.ol_uid||(t.ol_uid=String(++r))}var a="6.5.0"},function(t,e,n){"use strict";e.a={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"}},function(t,e,n){"use strict";n.d(e,"d",function(){return c}),n.d(e,"c",function(){return u}),n.d(e,"e",function(){return h}),n.d(e,"f",function(){return p}),n.d(e,"g",function(){return d}),n.d(e,"h",function(){return f}),n.d(e,"j",function(){return g}),n.d(e,"l",function(){return y}),n.d(e,"m",function(){return m}),n.d(e,"n",function(){return _}),n.d(e,"k",function(){return v}),n.d(e,"i",function(){return b}),n.d(e,"a",function(){return x}),n.d(e,"s",function(){return R}),n.d(e,"q",function(){return P}),n.d(e,"p",function(){return F}),n.d(e,"r",function(){return N}),n.d(e,"t",function(){return G}),n.d(e,"o",function(){return W}),n.d(e,"b",function(){return Y});var i=n(13),e=n(37),r=n(20),o=n(11),a=n(14),s=n(22),l=n(7),c="10px sans-serif",u="#000",h="round",p=[],d=0,f="round",g=10,y="#000",m="center",_="middle",v=[0,0,0,0],b=1,x=new i.a;(new e.a).setSize=function(){console.warn("labelCache is deprecated.")};var O,w,C,E,T,S,j,D=null,I={},R=(S=(T=["monospace","serif"]).length,j="wmytzilWMYTZIL@#/&?$%10ï",function(t){var e=Object(s.f)(t);if(e)for(var n=e.families,i=0,r=n.length;i<r;++i){var o=n[i],a=e.style+"\n"+e.weight+"\n"+o;void 0===x.get(a)&&(x.set(a,100,!0),k(e.style,e.weight,o)||(x.set(a,0,!0),void 0===C&&(C=setInterval(M,32))))}}),P=function(t){var e,n,i=I[t];return null==i&&(r.g?(e=Object(s.f)(t),n=A(t,"Žg"),i=(isNaN(Number(e.lineHeight))?1.2:Number(e.lineHeight))*(n.actualBoundingBoxAscent+n.actualBoundingBoxDescent)):(w||((w=document.createElement("div")).innerHTML="M",w.style.margin="0 !important",w.style.padding="0 !important",w.style.position="absolute !important",w.style.left="-99999px !important"),w.style.font=t,document.body.appendChild(w),i=w.offsetHeight,document.body.removeChild(w)),I[t]=i),i};function k(t,e,n){for(var i=!0,r=0;r<S;++r){var o=T[r];E=L(t+" "+e+" 32px "+o,j),n!=o&&(o=L(t+" "+e+" 32px "+n+","+o,j),i=i&&o!=E)}return!!i}function M(){for(var t=!0,e=x.getKeys(),n=0,i=e.length;n<i;++n){var r=e[n];x.get(r)<100&&(k.apply(this,r.split("\n"))?(Object(o.b)(I),D=null,O=void 0,x.set(r,100)):(x.set(r,x.get(r)+1,!0),t=!1))}t&&(clearInterval(C),C=void 0)}function A(t,e){return D=D||Object(a.a)(1,1),t!=O&&(D.font=t,O=D.font),D.measureText(e)}function L(t,e){return A(t,e).width}function F(t,e,n){if(e in n)return n[e];t=L(t,e);return n[e]=t}function N(t,e,n){for(var i=e.length,r=0,o=0;o<i;++o){var a=L(t,e[o]),r=Math.max(r,a);n.push(a)}return r}function G(t,e,n,i){0!==e&&(t.translate(n,i),t.rotate(e),t.translate(-n,-i))}function W(t,e,n,r,i,o,a,s,l,c,u){t.save(),1!==n&&(t.globalAlpha*=n),e&&t.setTransform.apply(t,e),r.contextInstructions?(t.translate(l,c),t.scale(u[0],u[1]),function(t){for(var e=r.contextInstructions,n=0,i=e.length;n<i;n+=2)Array.isArray(e[n+1])?t[e[n]].apply(t,e[n+1]):t[e[n]]=e[n+1]}(t)):u[0]<0||u[1]<0?(t.translate(l,c),t.scale(u[0],u[1]),t.drawImage(r,i,o,a,s,0,0,a,s)):t.drawImage(r,i,o,a,s,l,c,a*u[0],s*u[1]),t.restore()}var z=null;function Y(t){return r.g?Object(l.h)(t):((z=z||Object(a.a)(1,1).canvas).style.transform=Object(l.h)(t),z.style.transform)}},function(t,e,n){"use strict";function i(t,e,n){return Math.min(Math.max(t,e),n)}n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"d",function(){return o}),n.d(e,"h",function(){return a}),n.d(e,"g",function(){return c}),n.d(e,"f",function(){return s}),n.d(e,"i",function(){return l}),n.d(e,"j",function(){return u}),n.d(e,"e",function(){return h}),n.d(e,"c",function(){return p});var r="cosh"in Math?Math.cosh:function(t){t=Math.exp(t);return(t+1/t)/2},o="log2"in Math?Math.log2:function(t){return Math.log(t)*Math.LOG2E};function a(t,e,n,i,r,o){var a,s=r-n,l=o-i;return 0==s&&0==l||(1<(a=((t-n)*s+(e-i)*l)/(s*s+l*l))?(n=r,i=o):0<a&&(n+=s*a,i+=l*a)),c(t,e,n,i)}function c(t,e,n,i){t=n-t,e=i-e;return t*t+e*e}function s(t){for(var e=t.length,n=0;n<e;n++){for(var i=n,r=Math.abs(t[n][n]),o=n+1;o<e;o++){var a=Math.abs(t[o][n]);r<a&&(r=a,i=o)}if(0===r)return null;var s=t[i];t[i]=t[n],t[n]=s;for(var l=n+1;l<e;l++)for(var c=-t[l][n]/t[n][n],u=n;u<e+1;u++)n==u?t[l][u]=0:t[l][u]+=c*t[n][u]}for(var h=new Array(e),p=e-1;0<=p;p--){h[p]=t[p][e]/t[p][p];for(var d=p-1;0<=d;d--)t[d][e]-=t[d][p]*h[p]}return h}function l(t){return 180*t/Math.PI}function u(t){return t*Math.PI/180}function h(t,e){t%=e;return t*e<0?t+e:t}function p(t,e,n){return t+n*(e-t)}},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o}
1),n.d(e,"c",function(){return a});var i=n(11);function r(t,e,n,i,r){var o;i&&i!==t&&(n=n.bind(i)),r&&(o=n,n=function(){t.removeEventListener(e,n),o.apply(this,arguments)});r={target:t,type:e,listener:n};return t.addEventListener(e,n),r}function o(t,e,n,i){return r(t,e,n,i,!0)}function a(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),Object(i.b)(t))}},function(t,e,n){"use strict";e.a={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},function(t,e,n){"use strict";n.d(e,"c",function(){return i}),n.d(e,"f",function(){return r}),n.d(e,"g",function(){return o}),n.d(e,"a",function(){return a}),n.d(e,"e",function(){return s}),n.d(e,"b",function(){return c}),n.d(e,"d",function(){return u}),n.d(e,"h",function(){return h});var l=n(9);function i(){return[1,0,0,1,0,0]}function r(t,e){var n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=e[0],c=e[1],u=e[2],h=e[3],p=e[4],e=e[5];return t[0]=n*l+r*c,t[1]=i*l+o*c,t[2]=n*u+r*h,t[3]=i*u+o*h,t[4]=n*p+r*e+a,t[5]=i*p+o*e+s,t}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function a(t,e){var n=e[0],i=e[1];return e[0]=t[0]*n+t[2]*i+t[4],e[1]=t[1]*n+t[3]*i+t[5],e}function s(t,e,n){return r=e,a=n,(i=t)[t=n=e=o=0]=r,i[1]=o,i[2]=e,i[3]=a,i[4]=n,i[5]=t,i;var i,r,o,a}function c(t,e,n,i,r,o,a,s){var l=Math.sin(o),o=Math.cos(o);return t[0]=i*o,t[1]=r*l,t[2]=-i*l,t[3]=r*o,t[4]=a*i*o-s*i*l+e,t[5]=a*r*l+s*r*o+n,t}function u(t,e){var n=e[0]*e[3]-e[1]*e[2];Object(l.a)(0!=n,32);var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],e=e[5];return t[0]=a/n,t[1]=-r/n,t[2]=-o/n,t[3]=i/n,t[4]=(o*e-a*s)/n,t[5]=-(i*e-r*s)/n,t}function h(t){return"matrix("+t.join(", ")+")"}new Array(6)},function(t,e,n){"use strict";n.d(e,"a",function(){return l.a}),n.d(e,"g",function(){return j}),n.d(e,"h",function(){return D}),n.d(e,"b",function(){return R}),n.d(e,"d",function(){return P}),n.d(e,"c",function(){return k}),n.d(e,"j",function(){return M}),n.d(e,"i",function(){return A}),n.d(e,"n",function(){return L}),n.d(e,"k",function(){return Y}),n.d(e,"l",function(){return U}),n.d(e,"e",function(){return X}),n.d(e,"m",function(){return B}),n.d(e,"f",function(){return V});var i,r,l=n(29),o=(f.prototype.canWrapX=function(){return this.canWrapX_},f.prototype.getCode=function(){return this.code_},f.prototype.getExtent=function(){return this.extent_},f.prototype.getUnits=function(){return this.units_},f.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||l.a[this.units_]},f.prototype.getWorldExtent=function(){return this.worldExtent_},f.prototype.getAxisOrientation=function(){return this.axisOrientation_},f.prototype.isGlobal=function(){return this.global_},f.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},f.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},f.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},f.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},f.prototype.setWorldExtent=function(t){this.worldExtent_=t},f.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},f.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},f),a=n(4),s=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=6378137*Math.PI,u=[-c,-c,c,c],h=[-180,-85,180,85],p=6378137*Math.log(Math.tan(Math.PI/2)),e=(s(d,r=o),d),s=[new e("EPSG:3857"),new e("EPSG:102100"),new e("EPSG:102113"),new e("EPSG:900913"),new e("http://www.opengis.net/gml/srs/epsg.xml#3857")];function d(t){return r.call(this,{code:t,units:l.b.METERS,extent:u,global:!0,worldExtent:h,getPointResolution:function(t,e){return t/Object(a.b)(e[1]/6378137)}})||this}
1function f(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}var g,y,e=(y=function(t,e){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}y(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),m=[-180,-90,180,90],_=6378137*Math.PI/180,o=(e(b,g=o),b),o=[new o("CRS:84"),new o("EPSG:4326","neu"),new o("urn:ogc:def:crs:OGC:1.3:CRS84"),new o("urn:ogc:def:crs:OGC:2:84"),new o("http://www.opengis.net/gml/srs/epsg.xml#4326","neu")],v={};function b(t,e){return g.call(this,{code:t,units:l.b.DEGREES,extent:m,axisOrientation:e,global:!0,metersPerUnit:_,worldExtent:m})||this}n(11);var x={};function O(t,e,n){t=t.getCode(),e=e.getCode();t in x||(x[t]={}),x[t][e]=n}var w=n(0),C=n(68);function E(t,e,n){var i;if(void 0!==e){for(var r=0,o=t.length;r<o;++r)e[r]=t[r];i=e}else i=t.slice();return i}function T(t,e,n){if(void 0!==e&&t!==e){for(var i=0,r=t.length;i<r;++i)e[i]=t[i];t=e}return t}function S(t){var e;e=t.getCode(),O(v[e]=t,t,E)}function j(t){return"string"==typeof t?v[t]||v[t.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null:t||null}function D(t,e,n,i){var r,o,a,s=(t=j(t)).getPointResolutionFunc();return s?(a=s(e,n),!i||i===t.getUnits()||(o=t.getMetersPerUnit())&&(a=a*o/l.a[i])):(r=t.getUnits())==l.b.DEGREES&&!i||i==l.b.DEGREES?a=e:(a=(s=M(t,j("EPSG:4326")))===T&&r!==l.b.DEGREES?e*t.getMetersPerUnit():(e=s(e=[n[0]-e/2,n[1],n[0]+e/2,n[1],n[0],n[1]-e/2,n[0],n[1]+e/2],e,2),(Object(C.a)(e.slice(0,2),e.slice(2,4))+Object(C.a)(e.slice(4,6),e.slice(6,8)))/2),void 0!==(o=i?l.a[i]:t.getMetersPerUnit())&&(a/=o)),a}function I(t){t.forEach(S),t.forEach(function(e){t.forEach(function(t){e!==t&&O(e,t,E)})})}function R(t,e){return t?"string"==typeof t?j(t):t:j(e)}function P(t,e){return L(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}function k(t,e){if(t===e)return!0;var n=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||M(t,e)===E)&&n}function M(t,e){var n;return(t=t.getCode(),e=e.getCode(),n=t in x&&e in x[t]?x[t][e]:n)||T}function A(t,e){return M(j(t),j(e))}function L(t,e,n){return A(e,n)(t,void 0,t.length)}function F(t,e,n,i){n=A(e,n);return Object(w.a)(t,n,void 0,i)}n(24);var N,G,W,z=null;function Y(){return z}function U(t,e){return z?L(t,e,z):t}function X(t,e){return z?L(t,z,e):t}function B(t,e){return z?F(t,e,z):t}function V(t,e){return z?F(t,z,e):t}I(s),I(o),N=s,G=function(t,e,n){var i=t.length,r=1<n?n:2,o=e;void 0===o&&(o=2<r?t.slice():new Array(i));for(var a=0;a<i;a+=r){o[a]=c*t[a]/180;var s=6378137*Math.log(Math.tan(Math.PI*(+t[a+1]+90)/360));p<s?s=p:s<-p&&(s=-p),o[a+1]=s}return o},W=function(t,e,n){var i=t.length,r=1<n?n:2,o=e;void 0===o&&(o=2<r?t.slice():new Array(i));for(var a=0;a<i;a+=r)o[a]=180*t[a]/c,o[a+1]=360*Math.atan(Math.exp(t[a+1]/6378137))/Math.PI-90;return o},o.forEach(function(e){N.forEach(function(t){O(e,t,G),O(t,e,W)})})},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n(72);function r(t,e){if(!t)throw new i.a(e)}},function(t,e,n){"use strict";e.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"d",function(){return a});var i="function"==typeof Object.assign?Object.assign:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1,r=arguments.length;i<r;++i){var o=arguments[i];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(n[a]=o[a])}return n};function r(t){for(var e in t)delete t[e]}var o="function"==typeof Object.values?Object.values:function(t){var e,n=[];for(e in t)n.push(t[e]);return n};function a(t){for(var e in t)return!1;return!e}},function(t,e,n){"use strict";function i(t,e,n){for(var i,r,o=n||c,a=0,s=t.length,l=!1;a<s;)(r=+o(t[i=a+(s-a>>1)],e))<0?a=i+1:(s=i,l=!r);return l?a:~a}function c(t,e){return e<t?1:t<e?-1:0}function r(t,e){return 0<=t.indexOf(e)}function o(t,e,n){var i=t.length;if(t[0]<=e)return 0;if(e<=t[i-1])return i-1;var r=void 0;if(0<n){for(r=1;r<i;++r)if(t[r]<e)return r-1}else if(n<0){for(r=1;r<i;++r)if(t[r]<=e)return r}else for(r=1;r<i;++r){if(t[r]==e)return r;if(t[r]<e)return t[r-1]-e<e-t[r]?r-1:r}return i-1}function a(t,e,n){for(;e<n;){var i=t[e];t[e]=t[n],t[n]=i,++e,--n}}function s(t,e){for(var n=Array.isArray(e)?e:[e],i=n.length,r=0;r<i;r++)t[t.length]=n[r]}function l(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function u(n,t,i){var r=t||c;return n.every(function(t,e){if(0===e)return!0;t=r(n[e-1],t);return!(0<t||i&&0===t)})}n.d(e,"a",function(){return i}),n.d(e,"g",function(){return c}),n.d(e,"d",function(){return r}),n.d(e,"f",function(){return o}
1),n.d(e,"h",function(){return a}),n.d(e,"c",function(){return s}),n.d(e,"b",function(){return l}),n.d(e,"e",function(){return u})},function(t,e,n){"use strict";n.d(e,"b",function(){return g});var i,r,o,a=n(31),s=n(38),l=n(55),c=n(11),u=n(1),n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=(o=a.a,n(f,o),f),n=(r=l.a,n(d,r),d.prototype.get=function(t){var e;return e=this.values_&&this.values_.hasOwnProperty(t)?this.values_[t]:e},d.prototype.getKeys=function(){return this.values_&&Object.keys(this.values_)||[]},d.prototype.getProperties=function(){return this.values_&&Object(c.a)({},this.values_)||{}},d.prototype.hasProperties=function(){return!!this.values_},d.prototype.notify=function(t,e){var n=g(t);this.dispatchEvent(new h(n,t,e)),n=s.a.PROPERTYCHANGE,this.dispatchEvent(new h(n,t,e))},d.prototype.set=function(t,e,n){var i=this.values_||(this.values_={});n?i[t]=e:(n=i[t])!==(i[t]=e)&&this.notify(t,n)},d.prototype.setProperties=function(t,e){for(var n in t)this.set(n,t[n],e)},d.prototype.applyProperties=function(t){t.values_&&Object(c.a)(this.values_||(this.values_={}),t.values_)},d.prototype.unset=function(t,e){var n;this.values_&&t in this.values_&&(n=this.values_[t],delete this.values_[t],Object(c.d)(this.values_)&&(this.values_=null),e||this.notify(t,n))},d),p={};function d(t){var e=r.call(this)||this;return Object(u.c)(e),e.values_=null,void 0!==t&&e.setProperties(t),e}function f(t,e,n){t=o.call(this,t)||this;return t.key=e,t.oldValue=n,t}function g(t){return p.hasOwnProperty(t)?p[t]:p[t]="change:"+t}e.a=n},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"b",function(){return a}),n.d(e,"g",function(){return s}),n.d(e,"e",function(){return l}),n.d(e,"d",function(){return c}),n.d(e,"f",function(){return u});var i=n(20);function r(t,e,n){n=n&&n.length?n.shift():i.g?new OffscreenCanvas(t||300,e||300):document.createElement("canvas");return t&&(n.width=t),e&&(n.height=e),n.getContext("2d")}function o(t){var e=t.offsetWidth,t=getComputedStyle(t);return e+(parseInt(t.marginLeft,10)+parseInt(t.marginRight,10))}function a(t){var e=t.offsetHeight,t=getComputedStyle(t);return e+(parseInt(t.marginTop,10)+parseInt(t.marginBottom,10))}function s(t,e){var n=e.parentNode;n&&n.replaceChild(t,e)}function l(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function c(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function u(t,e){for(var n=t.childNodes,i=0;;++i){var r=n[i],o=e[i];if(!r&&!o)break;r!==o&&(r?o?t.insertBefore(o,r):(t.removeChild(r),--i):t.appendChild(o))}}},function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"d",function(){return s});var a=n(12);function i(){return!0}function r(){return!1}function o(){}function s(e){var n,i,r,o=!1;return function(){var t=Array.prototype.slice.call(arguments);return o&&this===r&&Object(a.b)(t,i)||(o=!0,r=this,i=t,n=e.apply(this,arguments)),n}}},function(t,e,n){"use strict";n=n(6);e.a={SINGLECLICK:"singleclick",CLICK:n.a.CLICK,DBLCLICK:n.a.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},function(t,e,n){"use strict";e.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return s}),n.d(e,"d",function(){return l}),n.d(e,"c",function(){return c}),n.d(e,"e",function(){return u}),n.d(e,"g",function(){return h}),n.d(e,"k",function(){return p}),n.d(e,"h",function(){return d}),n.d(e,"j",function(){return f}),n.d(e,"l",function(){return g}),n.d(e,"f",function(){return y}),n.d(e,"i",function(){return m});var i=n(16),e=n(15),r=n(20),o=n(9);function a(t){var r=arguments;return function(t){for(var e=!0,n=0,i=r.length;n<i&&(e=e&&r[n](t));++n);return e}}var s=function(t){t=t.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},l=function(t){return!t.map.getTargetElement().hasAttribute("tabindex")||t.target.getTargetElement().contains(document.activeElement)},c=e.b,u=function(t){t=t.originalEvent;return 0==t.button&&!(r.f&&r.d&&t.ctrlKey)},h=e.a,p=function(t){return t.type==i.a.SINGLECLICK},d=function(t){t=t.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey},f=function(t){t=t.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},g=function(t){t=t.originalEvent.target.tagName;return"INPUT"!==t&&"SELECT"!==t&&"TEXTAREA"!==t},y=function(t){t=t.originalEvent;return Object(o.a)(void 0!==t,56),"mouse"==t.pointerType},m=function(t){t=t.originalEvent;return Object(o.a)(void 0!==t,56),t.isPrimary&&0===t.button}},function(t,e,n){"use strict";e.a={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source"}},function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"f",function(){return r}),n.d(e,"d",function(){return o}
1),n.d(e,"a",function(){return a}),n.d(e,"g",function(){return s}),n.d(e,"c",function(){return l}),n.d(e,"e",function(){return c});var e="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",i=-1!==e.indexOf("firefox"),r=(-1!==e.indexOf("safari")&&e.indexOf("chrom"),-1!==e.indexOf("webkit")&&-1==e.indexOf("edge")),o=-1!==e.indexOf("macintosh"),a="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,s="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,l="undefined"!=typeof Image&&Image.prototype.decode,c=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(t){}return t}()},function(t,e,n){"use strict";e.a={ADD:"add",REMOVE:"remove"}},function(t,e,n){"use strict";n.d(e,"c",function(){return i}),n.d(e,"d",function(){return r}),n.d(e,"e",function(){return o}),n.d(e,"b",function(){return a}),n.d(e,"a",function(){return s}),n.d(e,"f",function(){return u});var i="ol-hidden",r="ol-selectable",o="ol-unselectable",a="ol-control",s="ol-collapsed",l=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),c=["style","variant","weight","size","lineHeight","family"],u=function(t){var e=t.match(l);if(!e)return null;for(var n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},i=0,r=c.length;i<r;++i){var o=e[i+1];void 0!==o&&(n[c[i]]=o)}return n.families=n.family.split(/,\s?/),n}},function(t,e,n){"use strict";function i(t){return Math.pow(t,3)}function r(t){return 1-i(1-t)}function o(t){return 3*t*t-2*t*t*t}function a(t){return t}n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"d",function(){return a})},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"d",function(){return a}),n.d(e,"e",function(){return s}),n.d(e,"f",function(){return l}),n.d(e,"c",function(){return c});var o=n(0);function i(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function r(t,e){for(var n=!0,i=t.length-1;0<=i;--i)if(t[i]!=e[i]){n=!1;break}return n}function a(t,e){var n=Math.cos(e),i=Math.sin(e),e=t[0]*n-t[1]*i,i=t[1]*n+t[0]*i;return t[0]=e,t[1]=i,t}function s(t,e){return t[0]*=e,t[1]*=e,t}function l(t,e){var n;return e.canWrapX()&&(n=Object(o.E)(e.getExtent()),(e=c(t,e,n))&&(t[0]-=e*n)),t}function c(t,e,n){var i=e.getExtent(),r=0;return e.canWrapX()&&(t[0]<i[0]||t[0]>i[2])&&(n=n||Object(o.E)(i),r=Math.floor((t[0]-i[0])/n)),r}n(4)},function(t,e,n){"use strict";e.a={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},function(t,e,n){"use strict";var i,o,r,a=n(72),s=n(13),l=n(21),c=n(31),n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=(r=c.a,n(p,r),p),n=(o=s.a,n(h,o),h.prototype.clear=function(){for(;0<this.getLength();)this.pop()},h.prototype.extend=function(t){for(var e=0,n=t.length;e<n;++e)this.push(t[e]);return this},h.prototype.forEach=function(t){for(var e=this.array_,n=0,i=e.length;n<i;++n)t(e[n],n,e)},h.prototype.getArray=function(){return this.array_},h.prototype.item=function(t){return this.array_[t]},h.prototype.getLength=function(){return this.get("length")},h.prototype.insertAt=function(t,e){this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new u(l.a.ADD,e,t))},h.prototype.pop=function(){return this.removeAt(this.getLength()-1)},h.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var e=this.getLength();return this.insertAt(e,t),this.getLength()},h.prototype.remove=function(t){for(var e=this.array_,n=0,i=e.length;n<i;++n)if(e[n]===t)return this.removeAt(n)},h.prototype.removeAt=function(t){var e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new u(l.a.REMOVE,e,t)),e},h.prototype.setAt=function(t,e){var n=this.getLength();if(t<n){this.unique_&&this.assertUnique_(e,t);var i=this.array_[t];this.array_[t]=e,this.dispatchEvent(new u(l.a.REMOVE,i,t)),this.dispatchEvent(new u(l.a.ADD,e,t))}else{for(var r=n;r<t;++r)this.insertAt(r,void 0);this.insertAt(t,e)}},h.prototype.updateLength_=function(){this.set("length",this.array_.length)},h.prototype.assertUnique_=function(t,e){for(var n=0,i=this.array_.length;n<i;++n)if(this.array_[n]===t&&n!==e)throw new a.a(58)},h);function h(t,e){var n=o.call(this)||this,e=e||{};if(n.unique_=!!e.unique,n.array_=t||[],n.unique_)for(var i=0,r=n.array_.length;i<r;++i)n.assertUnique_(n.array_[i],i);return n.updateLength_(),n}function p(t,e,n){t=r.call(this,t)||this;return t.element=e,t.index=n,t}e.a=n},function(t,e,n){"use strict";function i(t){return 0<t[0]&&0<t[1]}function r(t,e,n){return(n=void 0===n?[0,0]:n)[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function o(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return o}
1)},function(t,e,n){"use strict";e.a={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var n={DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},i={};i[n.DEGREES]=2*Math.PI*6370997/360,i[n.FEET]=.3048,i[n.METERS]=1,i[n.USFEET]=1200/3937,e.b=n},function(t,e,n){"use strict";e.a={ANIMATING:0,INTERACTING:1}},function(t,e,n){"use strict";var i=(r.prototype.preventDefault=function(){this.propagationStopped=!0},r.prototype.stopPropagation=function(){this.propagationStopped=!0},r);function r(t){this.propagationStopped,this.type=t,this.target=null}e.a=i},function(t,e,n){"use strict";n.d(e,"b",function(){return l}),n.d(e,"c",function(){return c});var i,r,o=n(13),a=n(23),n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),n=(r=o.a,n(s,r),s.prototype.getActive=function(){return this.get("active")},s.prototype.getMap=function(){return this.map_},s.prototype.handleEvent=function(t){return!0},s.prototype.setActive=function(t){this.set("active",t)},s.prototype.setMap=function(t){this.map_=t},s);function s(t){var e=r.call(this)||this;return t&&t.handleEvent&&(e.handleEvent=t.handleEvent),e.map_=null,e.setActive(!0),e}function l(t,e,n){var i=t.getCenterInternal();i&&(e=[i[0]+e[0],i[1]+e[1]],t.animateInternal({duration:void 0!==n?n:250,easing:a.d,center:t.getConstrainedCenter(e)}))}function c(t,e,n,i){var r=t.getZoom();void 0!==r&&(e=t.getConstrainedZoom(r+e),e=t.getResolutionForZoom(e),t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:e,anchor:n,duration:void 0!==i?i:250,easing:a.b}))}e.a=n},function(t,e,n){"use strict";function i(t,e,n,i,r,o){for(var a=o||[],s=0,l=e;l<n;l+=i){var c=t[l],u=t[l+1];a[s++]=r[0]*c+r[2]*u+r[4],a[s++]=r[1]*c+r[3]*u+r[5]}return o&&a.length!=s&&(a.length=s),a}function r(t,e,n,i,r,o,a){for(var s=a||[],l=Math.cos(r),c=Math.sin(r),u=o[0],h=o[1],p=0,d=e;d<n;d+=i){var f=t[d]-u,g=t[d+1]-h;s[p++]=u+f*l-g*c,s[p++]=h+f*c+g*l;for(var y=d+2;y<d+i;++y)s[p++]=t[y]}return a&&s.length!=p&&(s.length=p),s}function o(t,e,n,i,r,o,a,s){for(var l=s||[],c=a[0],u=a[1],h=0,p=e;p<n;p+=i){var d=t[p]-c,f=t[p+1]-u;l[h++]=c+r*d,l[h++]=u+o*f;for(var g=p+2;g<p+i;++g)l[h++]=t[g]}return s&&l.length!=h&&(l.length=h),l}function a(t,e,n,i,r,o,a){for(var s=a||[],l=0,c=e;c<n;c+=i){s[l++]=t[c]+r,s[l++]=t[c+1]+o;for(var u=c+2;u<c+i;++u)s[l++]=t[u]}return a&&s.length!=l&&(s.length=l),s}n.d(e,"c",function(){return i}),n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o}),n.d(e,"d",function(){return a})},function(t,e,n){"use strict";function i(t,e,n,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=n,i):[t,e,n]}function r(t,e,n){return t+"/"+e+"/"+n}function o(t){return r(t[0],t[1],t[2])}function a(t){return t.split("/").map(Number)}function s(t){return(t[1]<<t[0])+t[2]}function l(t,e){var n=t[0],i=t[1],t=t[2];if(e.getMinZoom()>n||n>e.getMaxZoom())return!1;n=e.getFullTileRange(n);return!n||n.containsXY(i,t)}n.d(e,"a",function(){return i}),n.d(e,"d",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"b",function(){return a}),n.d(e,"e",function(){return s}),n.d(e,"f",function(){return l})},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n(44);function r(t){return Array.isArray(t)?Object(i.c)(t):t}},function(t,e,n){"use strict";e.a={UNDEFINED:"undefined",LOADING:"loading",READY:"ready",ERROR:"error"}},function(t,e,n){"use strict";var i,r,o=n(65),c=n(31),u=n(15),a=n(11),n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),n=(r=o.a,n(s,r),s.prototype.addEventListener=function(t,e){var n;t&&e&&(-1===(t=(n=this.listeners_||(this.listeners_={}))[t]||(n[t]=[])).indexOf(e)&&t.push(e))},s.prototype.dispatchEvent=function(t){var e="string"==typeof t?new c.a(t):t,n=e.type;e.target||(e.target=this.eventTarget_||this);var i,r=this.listeners_&&this.listeners_[n];if(r){var o=this.dispatching_||(this.dispatching_={}),t=this.pendingRemovals_||(this.pendingRemovals_={});n in o||(o[n]=0,t[n]=0),++o[n];for(var a=0,s=r.length;a<s;++a)if(!1===(i="handleEvent"in r[a]?r[a].handleEvent(e):r[a].call(this,e))||e.propagationStopped){i=!1;break}if(--o[n],0===o[n]){var l=t[n];for(delete t[n];l--;)this.removeEventListener(n,u.c);delete o[n]}return i}}
1,s.prototype.disposeInternal=function(){this.listeners_&&Object(a.b)(this.listeners_)},s.prototype.getListeners=function(t){return this.listeners_&&this.listeners_[t]||void 0},s.prototype.hasListener=function(t){return!!this.listeners_&&(t?t in this.listeners_:0<Object.keys(this.listeners_).length)},s.prototype.removeEventListener=function(t,e){var n=this.listeners_&&this.listeners_[t];!n||-1!==(e=n.indexOf(e))&&(this.pendingRemovals_&&t in this.pendingRemovals_?(n[e]=u.c,++this.pendingRemovals_[t]):(n.splice(e,1),0===n.length&&delete this.listeners_[t]))},s);function s(t){var e=r.call(this)||this;return e.eventTarget_=t,e.pendingRemovals_=null,e.dispatching_=null,e.listeners_=null,e}e.a=n},function(t,e,n){"use strict";e.a={PROPERTYCHANGE:"propertychange"}},function(t,e,n){"use strict";var i,r,o=n(2),a=n(45),s=n(0),l=n(54),c=n(4),n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),n=(r=a.a,n(u,r),u.prototype.clone=function(){var t=new u(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},u.prototype.closestPointXY=function(t,e,n,i){var r=this.flatCoordinates,e=Object(c.g)(t,e,r[0],r[1]);if(e<i){for(var o=this.stride,a=0;a<o;++a)n[a]=r[a];return n.length=o,e}return i},u.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},u.prototype.computeExtent=function(t){return Object(s.m)(this.flatCoordinates,t)},u.prototype.getType=function(){return o.a.POINT},u.prototype.intersectsExtent=function(t){return Object(s.h)(t,this.flatCoordinates[0],this.flatCoordinates[1])},u.prototype.setCoordinates=function(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(l.a)(this.flatCoordinates,0,t,this.stride),this.changed()},u);function u(t,e){var n=r.call(this)||this;return n.setCoordinates(t,e),n}e.a=n},function(t,e,n){"use strict";var i,r,o=n(13),a=n(6),s=n(9),l=n(5),n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),n=(r=o.a,n(c,r),c.prototype.clone=function(){var t=new c(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());var e=this.getGeometry();e&&t.setGeometry(e.clone());e=this.getStyle();return e&&t.setStyle(e),t},c.prototype.getGeometry=function(){return this.get(this.geometryName_)},c.prototype.getId=function(){return this.id_},c.prototype.getGeometryName=function(){return this.geometryName_},c.prototype.getStyle=function(){return this.style_},c.prototype.getStyleFunction=function(){return this.styleFunction_},c.prototype.handleGeometryChange_=function(){this.changed()},c.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(Object(l.c)(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=Object(l.a)(t,a.a.CHANGE,this.handleGeometryChange_,this)),this.changed()},c.prototype.setGeometry=function(t){this.set(this.geometryName_,t)},c.prototype.setStyle=function(t){this.style_=t,this.styleFunction_=t?function(t){if("function"==typeof t)return t;var e=Array.isArray(t)?t:(Object(s.a)("function"==typeof t.getZIndex,41),[t]);return function(){return e}}(t):void 0,this.changed()},c.prototype.setId=function(t){this.id_=t,this.changed()},c.prototype.setGeometryName=function(t){this.removeEventListener(Object(o.b)(this.geometryName_),this.handleGeometryChanged_),this.geometryName_=t,this.addEventListener(Object(o.b)(this.geometryName_),this.handleGeometryChanged_),this.handleGeometryChanged_()},c);function c(t){var e=r.call(this)||this;return e.id_=void 0,e.geometryName_="geometry",e.style_=null,e.styleFunction_=void 0,e.geometryChangeKey_=null,e.addEventListener(Object(o.b)(e.geometryName_),e.handleGeometryChanged_),t&&("function"==typeof t.getSimplifiedGeometry?e.setGeometry(t):e.setProperties(t)),e}e.a=n},function(t,e,n){"use strict";n.d(e,"b",function(){return g});var i,r,o=n(80),a=n(6),s=n(19),l=n(43),c=n(36),u=n(9),h=n(11),p=n(13),d=n(5),n=(i=function(t,e){return(i=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),n=(r=o.a,n(f,r),f.prototype.getLayersArray=function(t){t=t||[];return t.push(this),t},f.prototype.getLayerStatesArray=function(t){t=t||[];return t.push(this.getLayerState()),t},f.prototype.getSource=function(){return this.get(s.a.SOURCE)||null},f.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():c.a.UNDEFINED},f.prototype.handleSourceChange_=function(){this.changed()},f.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Object(d.c)(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=Object(d.a)(t,a.a.CHANGE,this.handleSourceChange_,this)),this.changed()},f.prototype.getFeatures=function(t){return this.renderer_.getFeatures(t)},f.prototype.render=function(t,e){var n=this.getRenderer();if(n.prepareFrame(t))return n.renderFrame(t,e)},f.prototype.setMap=function(t){this.mapPrecomposeKey_&&(Object(d.c)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Object(d.c)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=Object(d.a)(t,l.a.PRECOMPOSE,function(t){var t=t.frameState.layerStatesArray,e=this.getLayerState(!1);Object(u.a)(!t.some(function(t){return t.layer===e.layer}),67),t.push(e)},this),this.mapRenderKey_=Object(d.a)(this,a.a.CHANGE,t.render,t),this.changed())},f.prototype.setSource=function(t){this.set(s.a.SOURCE,t)},f.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},f.prototype.hasRenderer=function(){return!!this.renderer_},f.prototype.createRenderer=function(){return null},f.prototype.disposeInternal=function(){this.setSource(null),r.prototype.disposeInternal.call(this)},f);function f(t){var e=this,n=Object(h.a)({},t);delete n.source,(e=r.call(this,n)||this).mapPrecomposeKey_=null,e.mapRenderKey_=null,e.sourceChangeKey_=null,e.renderer_=null,t.render&&(e.render=t.render),t.map&&e.setMap(t.map),e.addEventListener(Object(p.b)(s.a.SOURCE),e.handleSourcePropertyChange_);t=t.source||null;return e.setSource(t),e}function g(t,e){if(!t.visible)return!1;var n=e.resolution;if(n<t.minResolution||n>=t.maxResolution)return!1;e=e.zoom;return e>t.minZoom&&e<=t.maxZoom}e.a=n},function(t,e,n){"use strict";function u(t,e,n,i,r){for(var o=void 0!==r?r:[],a=0,s=e;s<n;s+=i)o[a++]=t.slice(s,s+i);return o.length=a,o}function h(t,e,n,i,r){for(var o=void 0!==r?r:[],a=0,s=0,l=n.length;s<l;++s){var c=n[s];o[a++]=u(t,e,c,i,o[a]),e=c}return o.length=a,o}function i(t,e,n,i,r){for(var o=void 0!==r?r:[],a=0,s=0,l=n.length;s<l;++s){var c=n[s];o[a++]=h(t,e,c,i,o[a]),e=c[c.length-1]}return o.length=a,o}n.d(e,"a",function(){return u}),n.d(e,"b",function(){return h}),n.d(e,"c",function(){return i})},function(t,e,n){"use strict";e.a={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return a}),n.d(e,"c",function(){return s});var h=n(9),i=n(4),p=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,d=/^([a-z]*)$|^hsla?\(.*\)$/i;function r(t){return"string"==typeof t?t:s(t)}var f,g,o=(f={},g=0,function(t){var e,n,i,r,o,a,s,l;if(f.hasOwnProperty(t))e=f[t];else{if(1024<=g){var c,u=0;for(c in f)0==(3&u++)&&(delete f[c],--g)}n=t,d.exec(n)&&(s=n,(l=document.createElement("div")).style.color=s,n=""===l.style.color?"":(document.body.appendChild(l),s=getComputedStyle(l).color,document.body.removeChild(l),s)),p.exec(n)?(i=void 0,i=(a=n.length-1)<=4?1:2,r=4==a||8==a,o=parseInt(n.substr(1+0*i,i),16),l=parseInt(n.substr(1+i,i),16),s=parseInt(n.substr(1+2*i,i),16),a=r?parseInt(n.substr(1+3*i,i),16):255,1==i&&(o=(o<<4)+o,l=(l<<4)+l,s=(s<<4)+s,r&&(a=(a<<4)+a)),a=[o,l,s,a/255]):0==n.indexOf("rgba(")?y(a=n.slice(5,-1).split(",").map(Number)):0==n.indexOf("rgb(")?((a=n.slice(4,-1).split(",").map(Number)).push(1),y(a)):Object(h.a)(!1,14),e=a,f[t]=e,++g}return e});function a(t){return Array.isArray(t)?t:o(t)}function y(t){return t[0]=Object(i.a)(t[0]+.5|0,0,255),t[1]=Object(i.a)(t[1]+.5|0,0,255),t[2]=Object(i.a)(t[2]+.5|0,0,255),t[3]=Object(i.a)(t[3],0,1),t}function s(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var n=t[1];n!=(0|n)&&(n=n+.5|0);var i=t[2];return"rgba("+e+","+n+","+(i=i!=(0|i)?i+.5|0:i)+","+(void 0===t[3]?1:t[3])+")"}},function(t,e,n){"use strict";n.d(e,"b",function(){return x});var i,r,o,a,s=n(13),l=n(29),c=n(1),u=n(7),h=n(0),p=n(8),d=n(15),f=n(33),g=(i=function(t,e){return(i=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),y=Object(u.c)(),g=(a=s.a,g(v,a),v.prototype.simplifyTransformed=function(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)},v.prototype.clone=function(){return Object(c.b)()},v.prototype.closestPointXY=function(t,e,n,i){return Object(c.b)()},v.prototype.containsXY=function(t,e){var n=this.getClosestPoint([t,e]);return n[0]===t&&n[1]===e},v.prototype.getClosestPoint=function(t,e){e=e||[NaN,NaN];return this.closestPointXY(t[0],t[1],e,1/0),e},v.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},v.prototype.computeExtent=function(t){return Object(c.b)()},v.prototype.getExtent=function(t){var e;return this.extentRevision_!=this.getRevision()&&(e=this.computeExtent(this.extent_),(isNaN(e[0])||isNaN(e[1]))&&Object(h.l)(e),this.extentRevision_=this.getRevision()),Object(h.I)(this.extent_,t)},v.prototype.rotate=function(t,e){Object(c.b)()},v.prototype.scale=function(t,e,n){Object(c.b)()},v.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},v.prototype.getSimplifiedGeometry=function(t){return Object(c.b)()},v.prototype.getType=function(){return Object(c.b)()},v.prototype.applyTransform=function(t){Object(c.b)()},v.prototype.intersectsExtent=function(t){return Object(c.b)()},v.prototype.translate=function(t,e){Object(c.b)()},v.prototype.transform=function(t,o){var a=Object(p.g)(t),t=a.getUnits()==l.b.TILE_PIXELS?function(t,e,n){var i=a.getExtent(),r=a.getWorldExtent(),i=Object(h.A)(r)/Object(h.A)(i);return Object(u.b)(y,r[0],r[3],i,-i,0,0,0),Object(f.c)(t,0,t.length,n,y,e),Object(p.i)(a,o)(t,e,n)}:Object(p.i)(a,o);return this.applyTransform(t),this},v),m=n(25),g=((o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(_,r=g),_.prototype.computeExtent=function(t){return Object(h.o)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},_.prototype.getCoordinates=function(){return Object(c.b)()},_.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},_.prototype.getFlatCoordinates=function(){return this.flatCoordinates},_.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},_.prototype.getLayout=function(){return this.layout},_.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)},_.prototype.getSimplifiedGeometryInternal=function(t){return this},_.prototype.getStride=function(){return this.stride},_.prototype.setFlatCoordinates=function(t,e){this.stride=b(t),this.layout=t,this.flatCoordinates=e},_.prototype.setCoordinates=function(t,e){Object(c.b)()},_.prototype.setLayout=function(t,e,n){var i,r,o;if(t)i=b(t);else{for(var a=0;a<n;++a){if(0===e.length)return this.layout=m.a.XY,void(this.stride=2);e=e[0]}2==(r=i=e.length)?o=m.a.XY:3==r?o=m.a.XYZ:4==r&&(o=m.a.XYZM),t=o}this.layout=t,this.stride=i},_.prototype.applyTransform=function(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},_.prototype.rotate=function(t,e){var n,i=this.getFlatCoordinates();i&&(n=this.getStride(),Object(f.a)(i,0,i.length,n,t,e,i),this.changed())},_.prototype.scale=function(t,e,n){var i=e;void 0===i&&(i=t);var r=(r=n)||Object(h.x)(this.getExtent()),e=this.getFlatCoordinates();e&&(n=this.getStride(),Object(f.b)(e,0,e.length,n,t,i,r,e),this.changed())},_.prototype.translate=function(t,e){var n,i=this.getFlatCoordinates();i&&(n=this.getStride(),Object(f.d)(i,0,i.length,n,t,e,i),this.changed())},_);function _(){var t=r.call(this)||this;return t.layout=m.a.XY,t.stride=2,t.flatCoordinates=null,t}function v(){var t=a.call(this)||this;return t.extent_=Object(h.j)(),t.extentRevision_=-1,t.simplifiedGeometryMaxMinSquaredTolerance=0,t.simplifiedGeometryRevision=0,t.simplifyTransformedInternal=Object(d.d)(function(t,e,n){if(!n)return this.get
1SimplifiedGeometry(e);var i=this.clone();return i.applyTransform(n),i.getSimplifiedGeometry(e)}),t}function b(t){var e;return t==m.a.XY?e=2:t==m.a.XYZ||t==m.a.XYM?e=3:t==m.a.XYZM&&(e=4),e}function x(t,e,n){var i=t.getFlatCoordinates();if(i){t=t.getStride();return Object(f.c)(i,0,i.length,t,e,n)}return null}e.a=g},function(t,e,n){"use strict";n.d(e,"d",function(){return u}),n.d(e,"a",function(){return p}),n.d(e,"b",function(){return d});var r=n(58),o=n(50),i=n(2),a=n(52),s=n(9),l=(c.prototype.clone=function(){var t=this.getGeometry();return new c({geometry:t=t&&"object"==typeof t?t.clone():t,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},c.prototype.getRenderer=function(){return this.renderer_},c.prototype.setRenderer=function(t){this.renderer_=t},c.prototype.getGeometry=function(){return this.geometry_},c.prototype.getGeometryFunction=function(){return this.geometryFunction_},c.prototype.getFill=function(){return this.fill_},c.prototype.setFill=function(t){this.fill_=t},c.prototype.getImage=function(){return this.image_},c.prototype.setImage=function(t){this.image_=t},c.prototype.getStroke=function(){return this.stroke_},c.prototype.setStroke=function(t){this.stroke_=t},c.prototype.getText=function(){return this.text_},c.prototype.setText=function(t){this.text_=t},c.prototype.getZIndex=function(){return this.zIndex_},c.prototype.setGeometry=function(e){"function"==typeof e?this.geometryFunction_=e:"string"==typeof e?this.geometryFunction_=function(t){return t.get(e)}:e?void 0!==e&&(this.geometryFunction_=function(){return e}):this.geometryFunction_=f,this.geometry_=e},c.prototype.setZIndex=function(t){this.zIndex_=t},c);function c(t){t=t||{};this.geometry_=null,this.geometryFunction_=f,void 0!==t.geometry&&this.setGeometry(t.geometry),this.fill_=void 0!==t.fill?t.fill:null,this.image_=void 0!==t.image?t.image:null,this.renderer_=void 0!==t.renderer?t.renderer:null,this.stroke_=void 0!==t.stroke?t.stroke:null,this.text_=void 0!==t.text?t.text:null,this.zIndex_=t.zIndex}function u(t){var e;return"function"==typeof t?t:(e=Array.isArray(t)?t:(Object(s.a)("function"==typeof t.getZIndex,41),[t]),function(){return e})}var h=null;function p(t,e){var n,i;return h||(n=new o.a({color:"rgba(255,255,255,0.4)"}),i=new a.a({color:"#3399CC",width:1.25}),h=[new l({image:new r.a({fill:n,stroke:i,radius:5}),fill:n,stroke:i})]),h}function d(){var t={},e=[255,255,255,1],n=[0,153,255,1];return t[i.a.POLYGON]=[new l({fill:new o.a({color:[255,255,255,.5]})})],t[i.a.MULTI_POLYGON]=t[i.a.POLYGON],t[i.a.LINE_STRING]=[new l({stroke:new a.a({color:e,width:5})}),new l({stroke:new a.a({color:n,width:3})})],t[i.a.MULTI_LINE_STRING]=t[i.a.LINE_STRING],t[i.a.CIRCLE]=t[i.a.POLYGON].concat(t[i.a.LINE_STRING]),t[i.a.POINT]=[new l({image:new r.a({radius:6,fill:new o.a({color:n}),stroke:new a.a({color:e,width:1.5})}),zIndex:1/0})],t[i.a.MULTI_POINT]=t[i.a.POINT],t[i.a.GEOMETRY_COLLECTION]=t[i.a.POLYGON].concat(t[i.a.LINE_STRING],t[i.a.POINT]),t}function f(t){return t.getGeometry()}e.c=l},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return l}),n.d(e,"c",function(){return r});var o=n(0);function i(e,n,i,r,t){return!Object(o.t)(t,function(t){return!l(e,n,i,r,t[0],t[1])})}function l(t,e,n,i,r,o){for(var a=0,s=t[n-i],l=t[n-i+1];e<n;e+=i){var c=t[e],u=t[e+1];l<=o?o<u&&0<(c-s)*(o-l)-(r-s)*(u-l)&&a++:u<=o&&(c-s)*(o-l)-(r-s)*(u-l)<0&&a--,s=c,l=u}return 0!==a}function r(t,e,n,i,r,o){if(0===n.length)return!1;if(!l(t,e,n[0],i,r,o))return!1;for(var a=1,s=n.length;a<s;++a)if(l(t,n[a-1],n[a],i,r,o))return!1;return!0}},function(t,e,n){"use strict";n.d(e,"c",function(){return r}),n.d(e,"d",function(){return o}),n.d(e,"a",function(){return a}),n.d(e,"b",function(){return s});var i=n(4);function r(t){return void 0!==t?0:void 0}function o(t){return void 0!==t?t:void 0}function a(t){var n=2*Math.PI/t;return function(t,e){return e?t:void 0!==t?Math.floor(t/n+.5)*n:void 0}}
1function s(t){var n=t||Object(i.j)(5);return function(t,e){return e?t:void 0!==t?Math.abs(t)<=n?0:t:void 0}}},function(t,e,n){"use strict";e.a={FRACTION:"fraction",PIXELS:"pixels"}},function(t,e,n){"use strict";var i=(r.prototype.clone=function(){var t=this.getColor();return new r({color:Array.isArray(t)?t.slice():t||void 0})},r.prototype.getColor=function(){return this.color_},r.prototype.setColor=function(t){this.color_=t},r);function r(t){t=t||{};this.color_=void 0!==t.color?t.color:null}e.a=i},function(t,e,n){"use strict";n.d(e,"d",function(){return l}),n.d(e,"a",function(){return i}),n.d(e,"c",function(){return m}),n.d(e,"b",function(){return r});var g=n(4);function y(t,e,n,i,r,o,a){var s,l=t[e],c=t[e+1],u=t[n]-l,h=t[n+1]-c;if(0==u&&0==h)s=e;else{var p=((r-l)*u+(o-c)*h)/(u*u+h*h);if(1<p)s=n;else{if(0<p){for(var d=0;d<i;++d)a[d]=Object(g.c)(t[e+d],t[n+d],p);return a.length=i,0}s=e}}for(d=0;d<i;++d)a[d]=t[s+d];a.length=i}function l(t,e,n,i,r){var o=t[e],a=t[e+1];for(e+=i;e<n;e+=i){var s=t[e],l=t[e+1],c=Object(g.g)(o,a,s,l);r<c&&(r=c),o=s,a=l}return r}function i(t,e,n,i,r){for(var o=0,a=n.length;o<a;++o){var s=n[o];r=l(t,e,s,i,r),e=s}return r}function m(t,e,n,i,r,o,a,s,l,c,u){if(e==n)return c;var h,p;if(0===r){if((p=Object(g.g)(a,s,t[e],t[e+1]))<c){for(h=0;h<i;++h)l[h]=t[e+h];return l.length=i,p}return c}for(var d=u||[NaN,NaN],f=e+i;f<n;)if(y(t,f-i,f,i,a,s,d),(p=Object(g.g)(a,s,d[0],d[1]))<c){for(c=p,h=0;h<i;++h)l[h]=d[h];f+=l.length=i}else f+=i*Math.max((Math.sqrt(p)-Math.sqrt(c))/r|0,1);if(o&&(y(t,n-i,e,i,a,s,d),(p=Object(g.g)(a,s,d[0],d[1]))<c)){for(c=p,h=0;h<i;++h)l[h]=d[h];l.length=i}return c}function r(t,e,n,i,r,o,a,s,l,c,u){for(var h=u||[NaN,NaN],p=0,d=n.length;p<d;++p){var f=n[p];c=m(t,e,f,i,r,o,a,s,l,c,h),e=f}return c}},function(t,e,n){"use strict";var i=(r.prototype.clone=function(){var t=this.getColor();return new r({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},r.prototype.getColor=function(){return this.color_},r.prototype.getLineCap=function(){return this.lineCap_},r.prototype.getLineDash=function(){return this.lineDash_},r.prototype.getLineDashOffset=function(){return this.lineDashOffset_},r.prototype.getLineJoin=function(){return this.lineJoin_},r.prototype.getMiterLimit=function(){return this.miterLimit_},r.prototype.getWidth=function(){return this.width_},r.prototype.setColor=function(t){this.color_=t},r.prototype.setLineCap=function(t){this.lineCap_=t},r.prototype.setLineDash=function(t){this.lineDash_=t},r.prototype.setLineDashOffset=function(t){this.lineDashOffset_=t},r.prototype.setLineJoin=function(t){this.lineJoin_=t},r.prototype.setMiterLimit=function(t){this.miterLimit_=t},r.prototype.setWidth=function(t){this.width_=t},r);function r(t){t=t||{};this.color_=void 0!==t.color?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=void 0!==t.lineDash?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.width_=t.width}e.a=i},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"c",function(){return m}),n.d(e,"b",function(){return r});var x=n(4);function i(t,e,n,i,r,o,a){var s=(n-e)/i;if(s<3){for(;e<n;e+=i)o[a++]=t[e],o[a++]=t[e+1];return a}var l=new Array(s);l[0]=1,l[s-1]=1;for(var c=[e,n-i],u=0;0<c.length;){for(var h=c.pop(),p=c.pop(),d=0,f=t[p],g=t[p+1],y=t[h],m=t[h+1],_=p+i;_<h;_+=i){var v=t[_],b=t[_+1],b=Object(x.h)(v,b,f,g,y,m);d<b&&(u=_,d=b)}r<d&&(l[(u-e)/i]=1,p+i<u&&c.push(p,u),u+i<h&&c.push(u,h))}for(_=0;_<s;++_)l[_]&&(o[a++]=t[e+_*i],o[a++]=t[e+_*i+1]);return a}function m(t,e){return e*Math.round(t/e)}function r(t,e,n,i,r,o,a,s){for(var l=0,c=n.length;l<c;++l){var u=n[l];a=function(t,e,n,i,r,o,a){if(e==n)return a;var s,l=m(t[e],r),c=m(t[e+1],r);e+=i,o[a++]=l,o[a++]=c;do{if(s=m(t[e],r),f=m(t[e+1],r),(e+=i)==n)return o[a++]=s,o[a++]=f,a}while(s==l&&f==c);for(;e<n;){var u,h,p,d,f,g=m(t[e],r),y=m(t[e+1],r);e+=i,g==s&&y==f||(s=((u=s-l)*(d=y-c)==(h=f-c)*(p=g-l)&&(u<0&&p<u||u==p||0<u&&u<p)&&(h<0&&d<h||h==d||0<h&&h<d)||(l=o[a++]=s,c=o[a++]=f),g),f=y)}return o[a++]=s,o[a++]=f,a}(t,e,u,i,r,o,a),s.push(a),e=u}return a}},function(t,e,n){"use strict";function i(t,e,n,i){for(var r=0,o=n.length;r<o;++r)t[e++]=n[r];return e}function u(t,e,n,i){for(var r=0,o=n.length;r<o;++r)for(var a=n[r],s=0;s<i;++s)t[e++]=a[s];return e}function r(t,e,n,i,r){for(var o=r||[],a=0,s=0,l=n.length;s<l;++s){var c=u(t,e,n[s],i);e=o[a++]=c}return o.length=a,o}n.d(e,"a",function(){return i}),n.d(e,"b",function(){return u}),n.d(e,"c",function(){return r})},function(t,e,n){"use strict";n.d(e,"b",function(){return c});var i,r,o=n(37),a=n(6),s=n(5),n=(i=function(t,e){return(i=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),n=(r=o.a,n(l,r),l.prototype.changed=function(){++this.revision_,this.dispatchEvent(a.a.CHANGE)},l.prototype.getRevision=function(){return this.revision_},l.prototype.on=function(t,e){if(Array.isArray(t)){for(var n=t.length,i=new Array(n),r=0;r<n;++r)i[r]=Object(s.a)(this,t[r],e);return i}return Object(s.a)(this,t,e)},l.prototype.once=function(t,e){if(Array.isArray(t))for(var n=t.length,i=new Array(n),r=0;r<n;++r)i[r]=Object(s.b)(this,t[r],e);else i=Object(s.b)(this,t,e);return e.ol_key=i},l.prototype.un=function(t,e){var n=e.ol_key;if(n)c(n);else if(Array.isArray(t))for(var i=0,r=t.length;i<r;++i)this.removeEventListener(t[i],e);else this.removeEventListener(t,e)},l);function l(){var t=r.call(this)||this;return t.revision_=0,t}function c(t){if(Array.isArray(t))for(var e=0,n=t.length;e<n;++e)Object(s.c)(t[e]);else Object(s.c)(t)}e.a=n},function(t,e,n){"use strict";e.a={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend"}},function(t,e,n){"use strict";n.d(e,"c",function(){return s}),n.d(e,"d",function(){return l}),n.d(e,"a",function(){return p}),n.d(e,"b",function(){return f});var o=n(62),a=n(86),i=n(29),c=n(60),r=n(8),u=n(0),h=n(27);function s(t){var e,n,i,r=t.getDefaultTileGrid();return r||(e=f(t),n=o.a.TOP_LEFT,i=d(e,void 0,void 0),r=new a.a({extent:e,origin:Object(u.y)(e,n),resolutions:i,tileSize:void 0}),t.setDefaultTileGrid(r)),r}function l(t,e,n){var i=e[0],r=t.getTileCoordCenter(e),n=f(n);if(Object(u.f)(n,r))return e;e=Object(u.E)(n),n=Math.ceil((n[0]-r[0])/e);return r[0]+=e*n,t.getTileCoordForCoordAndZ(r,i)}function p(t){var e=t||{},t=e.extent||Object(r.g)("EPSG:3857").getExtent(),e={extent:t,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:d(t,e.maxZoom,e.tileSize,e.maxResolution)};return new a.a(e)}function d(t,e,n,i){for(var r=void 0!==e?e:c.a,e=Object(u.A)(t),t=Object(u.E)(t),n=Object(h.c)(void 0!==n?n:c.b),o=0<i?i:Math.max(t/n[0],e/n[1]),a=r+1,s=new Array(a),l=0;l<a;++l)s[l]=o/Math.pow(2,l);return s}function f(t){var e=(t=Object(r.g)(t)).getExtent();return e||(t=180*r.a[i.b.DEGREES]/t.getMetersPerUnit(),e=Object(u.k)(-t,-t,t,t)),e}},function(t,e,n){"use strict";var i,r,o,a,s=n(17),l=n(75),c=n(44),u=n(35),h=n(14),p=n(3),n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),n=(a=l.a,n(f,a),f.prototype.clone=function(){var t=this.getScale(),t=new f({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice()});return t.setOpacity(this.getOpacity()),t},f.prototype.getAnchor=function(){return this.anchor_},f.prototype.getAngle=function(){return this.angle_},f.prototype.getFill=function(){return this.fill_},f.prototype.getHitDetectionImage=function(){var t;return this.hitDetectionCanvas_||(t=this.createRenderOptions(),this.createHitDetectionCanvas_(t)),this.hitDetectionCanvas_},f.prototype.getImage=function(t){var e,n;return this.canvas_[t||1]||(e=this.createRenderOptions(),n=Object(h.a)(e.size*t||1,e.size*t||1),this.draw_(e,n,0,0,t||1),this.canvas_[t||1]=n.canvas),this.canvas_[t||1]},f.prototype.getPixelRatio=function(t){return t},f.prototype.getImageSize=function(){return this.imageSize_},f.prototype.getHitDetectionImageSize=function(){return this.hitDetectionImageSize_},f.prototype.getImageState=function(){return s.a.LOADED},f.prototype.getOrigin=function(){return this.origin_},f.prototype.getPoints=function(){return this.points_},f.prototype.getRadius=function(){return this.radius_},f.prototype.getRadius2=function(){return this.radius2_},f.prototype.getSize=function(){return this.size_},f.prototype.getStroke=function(){return this.stroke_},f.prototype.listenImageChange=function(t){},f.prototype.load=function(){},f.prototype.unlistenImageChange=function(t){},f.prototype.createRenderOptions=function(){var t,e=p.e,n=p.h,i=0,r=null,o=0,a=0;return this.stroke_&&(null===(t=this.stroke_.getColor())&&(t=p.l),t=Object(u.a)(t),void 0===(a=this.stroke_.getWidth())&&(a=p.i),r=this.stroke_.getLineDash(),o=this.stroke_.getLineDashOffset(),void 0===(n=this.stroke_.getLineJoin())&&(n=p.h),void 0===(e=this.stroke_.getLineCap())&&(e=p.e),void 0===(i=this.stroke_.getMiterLimit())&&(i=p.j)),{strokeStyle:t,strokeWidth:a,size:2*(this.radius_+a)+1,lineCap:e,lineDash:r,lineDashOffset:o,lineJoin:n,miterLimit:i}},f.prototype.render=function(){var t=this.createRenderOptions(),e=Object(h.a)(t.size,t.size);this.draw_(t,e,0,0,1),this.canvas_={},this.canvas_[1]=e.canvas;var n=e.canvas.width,i=n,e=this.getDisplacement();this.hitDetectionImageSize_=[t.size,t.size],this.createHitDetectionCanvas_(t),this.anchor_=[n/2-e[0],n/2+e[1]],this.size_=[n,n],this.imageSize_=[i,i]},f.prototype.draw_=function(t,e,n,i,r){var o,a,s;e.setTransform(r,0,0,r,0,0),e.translate(n,i),e.beginPath();var l=this.points_;if(l===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var c=void 0!==this.radius2_?this.radius2_:this.radius_;for(c!==this.radius_&&(l*=2),o=0;o<=l;o++)a=2*o*Math.PI/l-Math.PI/2+this.angle_,s=o%2==0?this.radius_:c,e.lineTo(t.size/2+s*Math.cos(a),t.size/2+s*Math.sin(a))}this.fill_&&(null===(i=this.fill_.getColor())&&(i=p.c),e.fillStyle=Object(u.a)(i),e.fill()),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,e.setLineDash&&t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke()),e.closePath()},f.prototype.createHitDetectionCanvas_=function(t){var e,n;this.hitDetectionCanvas_=this.getImage(1),this.fill_&&(n=0,null===(e="string"==typeof(e=this.fill_.getColor())?Object(c.a)(e):e)?n=1:Array.isArray(e)&&(n=4===e.length?e[3]:1),0===n&&(n=Object(h.a)(t.size,t.size),this.hitDetectionCanvas_=n.canvas,this.drawHitDetectionCanvas_(t,n,0,0)))},f.prototype.drawHitDetectionCanvas_=function(t,e,n,i){e.translate(n,i),e.beginPath();var r=this.points_;if(r===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var o=void 0!==this.radius2_?this.radius2_:this.radius_;o!==this.radius_&&(r*=2);for(var a,s,l=void 0,l=0;l<=r;l++)s=2*l*Math.PI/r-Math.PI/2+this.angle_,a=l%2==0?this.radius_:o,e.lineTo(t.size/2+a*Math.cos(s),t.size/2+a*Math.sin(s))}e.fillStyle=p.c,e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.stroke()),e.closePath()}
vendor: 5,612 bytes, line 1
1,f),n=((o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(d,r=n),d.prototype.clone=function(){var t=this.getScale(),t=new d({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()});return t.setOpacity(this.getOpacity()),t},d.prototype.setRadius=function(t){this.radius_=t,this.render()},d);function d(t){t=t||{};return r.call(this,{points:1/0,fill:t.fill,radius:t.radius,stroke:t.stroke,scale:void 0!==t.scale?t.scale:1,rotation:void 0!==t.rotation?t.rotation:0,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,displacement:void 0!==t.displacement?t.displacement:[0,0]})||this}function f(t){var e=this,n=void 0!==t.rotateWithView&&t.rotateWithView;return(e=a.call(this,{opacity:1,rotateWithView:n,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,displacement:void 0!==t.displacement?t.displacement:[0,0]})||this).canvas_={},e.hitDetectionCanvas_=null,e.fill_=void 0!==t.fill?t.fill:null,e.origin_=[0,0],e.points_=t.points,e.radius_=void 0!==t.radius?t.radius:t.radius1,e.radius2_=t.radius2,e.angle_=void 0!==t.angle?t.angle:0,e.stroke_=void 0!==t.stroke?t.stroke:null,e.anchor_=null,e.size_=null,e.imageSize_=null,e.hitDetectionImageSize_=null,e.render(),e}e.a=n},function(en,nn,t){var rn;!function(t,e){"use strict";"object"==typeof en.exports?en.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(w,t){"use strict";function g(t){return null!=t&&t===t.window}var e=[],n=Object.getPrototypeOf,s=e.slice,y=e.flat?function(t){return e.flat.call(t)}:function(t){return e.concat.apply([],t)},l=e.push,r=e.indexOf,i={},o=i.toString,m=i.hasOwnProperty,a=m.toString,c=a.call(Object),_={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},C=w.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function b(t,e,n){var i,r,o=(n=n||C).createElement("script");if(o.text=t,e)for(i in u)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function f(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?i[o.call(t)]||"object":typeof t}var E=function(t,e){return new E.fn.init(t,e)};function h(t){var e=!!t&&"length"in t&&t.length,n=f(t);return!v(t)&&!g(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}E.fn=E.prototype={jquery:"3.5.1",constructor:E,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){t=E.merge(this.constructor(),t);return t.prevObject=this,t},each:function(t){return E.each(this,t)},map:function(n){return this.pushStack(E.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(E.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(E.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,t=+t+(t<0?e:0);return this.pushStack(0<=t&&t<e?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:e.sort,splice:e.splice},E.extend=E.fn.extend=function(){var t,e,n,i,r,o=arguments[0]||{},a=1,s=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[a]||{},a++),"object"==typeof o||v(o)||(o={}),a===s&&(o=this,a--);a<s;a++)if(null!=(t=arguments[a]))for(e in t)n=t[e],"__proto__"!==e&&o!==n&&(l&&n&&(E.isPlainObject(n)||(i=Array.isArray(n)))?(r=o[e],r=i&&!Array.isArray(r)?[]:i||E.isPlainObject(r)?r:{},i=!1,o[e]=E.extend(l,r,n)):void 0!==n&&(o[e]=n));return o},E.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){return!(!t||"[object Object]"!==o.call(t)||(t=n(t))&&("function"!=typeof(t=m.call(t,"constructor")&&t.constructor)||a.call(t)!==c))},isEmptyObject:function(t){for(var e in t)return!1;return!0},globalEval:function(t,e,n){b(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(h(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},makeArray:function(t,e){e=e||[];return null!=t&&(h(Object(t))?E.merge(e,"string"==typeof t?[t]:t):l.call(e,t)),e},inArray:function(t,e,n){return null==e?-1:r.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,a=!n;r<o;r++)!e(t[r],r)!=a&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,a=[];if(h(t))for(i=t.length;o<i;o++)null!=(r=e(t[o],o,n))&&a.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&a.push(r);return y(a)},guid:1,support:_}),"function"==typeof Symbol&&(E.fn[Symbol.iterator]=e[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){i["[object "+e+"]"]=e.toLowerCase()});var p=function(n){function h(t,e){return t="0x"+t.slice(1)-65536,e||(t<0?String.fromCharCode(65536+t):String.fromCharCode(t>>
vendor: 24,611 bytes, line 1
110|55296,1023&t|56320))}function i(){O()}var t,d,b,o,r,f,p,g,x,l,c,O,w,a,C,y,s,u,m,E="sizzle"+ +new Date,_=n.document,T=0,v=0,S=lt(),j=lt(),D=lt(),I=lt(),R=function(t,e){return t===e&&(c=!0),0},P={}.hasOwnProperty,e=[],k=e.pop,M=e.push,A=e.push,L=e.slice,F=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",G="[\\x20\\t\\r\\n\\f]",W="(?:\\\\[\\da-fA-F]{1,6}"+G+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",z="\\["+G+"*("+W+")(?:"+G+"*([*^$|!~]?=)"+G+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+W+"))|)"+G+"*\\]",Y=":("+W+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",U=new RegExp(G+"+","g"),X=new RegExp("^"+G+"+|((?:^|[^\\\\])(?:\\\\.)*)"+G+"+$","g"),B=new RegExp("^"+G+"*,"+G+"*"),V=new RegExp("^"+G+"*([>+~]|"+G+")"+G+"*"),H=new RegExp(G+"|>"),K=new RegExp(Y),q=new RegExp("^"+W+"$"),Z={ID:new RegExp("^#("+W+")"),CLASS:new RegExp("^\\.("+W+")"),TAG:new RegExp("^("+W+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+Y),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+G+"*(even|odd|(([+-]|)(\\d*)n|)"+G+"*(?:([+-]|)"+G+"*(\\d+)|))"+G+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+G+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+G+"*((?:-\\d)?\\d*)"+G+"*\\)|)(?=[^-]|$)","i")},J=/HTML$/i,$=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,tt=/^[^{]+\{\s*\[native \w/,et=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,nt=/[+~]/,it=new RegExp("\\\\[\\da-fA-F]{1,6}"+G+"?|\\\\([^\\r\\n\\f])","g"),rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ot=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},at=_t(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{A.apply(e=L.call(_.childNodes),_.childNodes),e[_.childNodes.length].nodeType}catch(n){A={apply:e.length?function(t,e){M.apply(t,L.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function st(t,e,n,i){var r,o,a,s,l,c,u,h=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!i&&(O(e),e=e||w,C)){if(11!==p&&(l=et.exec(t)))if(r=l[1]){if(9===p){if(!(a=e.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(h&&(a=h.getElementById(r))&&m(e,a)&&a.id===r)return n.push(a),n}else{if(l[2])return A.apply(n,e.getElementsByTagName(t)),n;if((r=l[3])&&d.getElementsByClassName&&e.getElementsByClassName)return A.apply(n,e.getElementsByClassName(r)),n}if(d.qsa&&!I[t+" "]&&(!y||!y.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(u=t,h=e,1===p&&(H.test(t)||V.test(t))){for((h=nt.test(t)&>(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(rt,ot):e.setAttribute("id",s=E)),o=(c=f(t)).length;o--;)c[o]=(s?"#"+s:":scope")+" "+mt(c[o]);u=c.join(",")}try{return A.apply(n,h.querySelectorAll(u)),n}catch(e){I(t,!0)}finally{s===E&&e.removeAttribute("id")}}}return g(t.replace(X,"$1"),e,n,i)}function lt(){var i=[];return function t(e,n){return i.push(e+" ")>b.cacheLength&&delete t[i.shift()],t[e+" "]=n}}function ct(t){return t[E]=!0,t}function ut(t){var e=w.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ht(t,e){for(var n=t.split("|"),i=n.length;i--;)b.attrHandle[n[i]]=e}function pt(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function dt(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&at(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ft(a){return ct(function(o){return o=+o,ct(function(t,e){for(var n,i=a([],t.length,o),r=i.length;r--;)t[n=i[r]]&&(t[n]=!(e[n]=t[n]))})})}function gt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in d=st.support={},r=st.isXML=function(t){var e=t.namespaceURI,t=(t.ownerDocument||t).documentElement;return!J.test(e||t&&t.nodeName||"HTML")},O=st.setDocument=function(t){var e,t=t?t.ownerDocument||t:_;return t!=w&&9===t.nodeType&&t.documentElement&&(a=(w=t).documentElement,C=!r(w),_!=w&&(e=w.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",i,!1):e.attachEvent&&e.attachEvent("onunload",i)),d.scope=ut(function(t){return a.appendChild(t).appendChild(w.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length}),d.attributes=ut(function(t){return t.className="i",!t.getAttribute("className")}),d.getElementsByTagName=ut(function(t){return t.appendChild(w.createComment("")),!t.getElementsByTagName("*").length}),d.getElementsByClassName=tt.test(w.getElementsByClassName),d.getById=ut(function(t){return a.appendChild(t).id=E,!w.getElementsByName||!w.getElementsByName(E).length}),d.getById?(b.filter.ID=function(t){var e=t.replace(it,h);return function(t){return t.getAttribute("id")===e}},b.find.ID=function(t,e){if(void 0!==e.getElementById&&C){t=e.getElementById(t);return t?[t]:[]}}):(b.filter.ID=function(t){var e=t.replace(it,h);return function(t){t=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return t&&t.value===e}},b.find.ID=function(t,e){if(void 0!==e.getElementById&&C){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):d.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},b.find.CLASS=d.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&C)return e.getElementsByClassName(t)},s=[],y=[],(d.qsa=tt.test(w.querySelectorAll))&&(ut(function(t){var e;a.appendChild(t).innerHTML="<a id='"+E+"'></a><select id='"+E+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+G+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||y.push("\\["+G+"*(?:value|"+N+")"),t.querySelectorAll("[id~="+E+"-]").length||y.push("~="),(e=w.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||y.push("\\["+G+"*name"+G+"*="+G+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||y.push(":checked"),t.querySelectorAll("a#"+E+"+*").length||y.push(".#.+[+~]"),t.querySelectorAll("\\\f"),y.push("[\\r\\n\\f]")}),ut(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=w.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&y.push("name"+G+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),a.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),y.push(",.*:")})),(d.matchesSelector=tt.test(u=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ut(function(t){d.disconnectedMatch=u.call(t,"*"),u.call(t,"[s!='']:x"),s.push("!=",Y)}),y=y.length&&new RegExp(y.join("|")),s=s.length&&new RegExp(s.join("|")),e=tt.test(a.compareDocumentPosition),m=e||tt.test(a.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,e=e&&e.parentNode;return t===e||!(!e||1!==e.nodeType||!(n.contains?n.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},R=e?function(t,e){if(t===e)return c=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!d.sortDetached&&e.compareDocumentPosition(t)===n?t==w||t.ownerDocument==_&&m(_,t)?-1:e==w||e.ownerDocument==_&&m(_,e)?1:l?F(l,t)-F(l,e):0:4&n?-1:1)}:function(t,e){if(t===e)return c=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!r||!o)return t==w?-1:e==w?1:r?-1:o?1:l?F(l,t)-F(l,e):0;if(r===o)return pt(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?pt(a[i],s[i]):a[i]==_?-1:s[i]==_?1:0}),w},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(O(t),d.matchesSelector&&C&&!I[e+" "]&&(!s||!s.test(e))&&(!y||!y.test(e)))try{var n=u.call(t,e);if(n||d.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){I(e,!0)}return 0<st(e,w,null,[t]).length},st.contains=function(t,e){return(t.ownerDocument||t)!=w&&O(t),m(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=w&&O(t);var n=b.attrHandle[e.toLowerCase()],n=n&&P.call(b.attrHandle,e.toLowerCase())?n(t,e,!C):void 0;return void 0!==n?n:d.attributes||!C?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},st.escape=function(t){return(t+"").replace(rt,ot)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,n=[],i=0,r=0;if(c=!d.detectDuplicates,l=!d.sortStable&&t.slice(0),t.sort(R),c){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return l=null,t},o=st.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=o(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=o(e);return n},(b=st.selectors={cacheLength:50,createPseudo:ct,match:Z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(it,h),t[3]=(t[3]||t[4]||t[5]||"").replace(it,h),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Z.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&K.test(n)&&(e=f(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(it,h).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|"+G+")"+t+"("+G+"|$)"))&&S(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(t){t=st.attr(t,e);return null==t?"!="===n:!n||(t+="","="===n?t===i:"!="===n?t!==i:"^="===n?i&&0===t.indexOf(i):"*="===n?i&&-1<t.indexOf(i):"$="===n?i&&t.slice(-i.length)===i:"~="===n?-1<(" "+t.replace(U," ")+" ").indexOf(i):"|="===n&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,t,e,g,y){var m="nth"!==f.slice(0,3),_="last"!==f.slice(-4),v="of-type"===t;return 1===g&&0===y?function(t){return!!t.parentNode}:function(t,e,n){var i,r,o,a,s,l,c=m!=_?"nextSibling":"previousSibling",u=t.parentNode,h=v&&t.nodeName.toLowerCase(),p=!n&&!v,d=!1;if(u){if(m){for(;c;){for(a=t;a=a[c];)if(v?a.nodeName.toLowerCase()===h:1===a.nodeType)return!1;l=c="only"===f&&!l&&"nextSibling"}return!0}if(l=[_?u.firstChild:u.lastChild],_&&p){for(d=(s=(i=(r=(o=(a=u)[E]||(a[E]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===T&&i[1])&&i[2],a=s&&u.childNodes[s];a=++s&&a&&a[c]||(d=s=0)||l.pop();)if(1===a.nodeType&&++d&&a===t){r[f]=[T,s,d];break}}else if(!1===(d=p?s=(i=(r=(o=(a=t)[E]||(a[E]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===T&&i[1]:d))for(;(a=++s&&a&&a[c]||(d=s=0)||l.pop())&&((v?a.nodeName.toLowerCase()!==h:1!==a.nodeType)||!++d||(p&&((r=(o=a[E]||(a[E]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[T,d]),a!==t)););return(d-=y)===g||d%g==0&&0<=d/g}}},PSEUDO:function(t,o){var e,a=b.pseudos[t]||b.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return a[E]?a(o):1<a.length?(e=[t,t,"",o],b.setFilters.hasOwnProperty(t.toLowerCase())?ct(function(t,e){for(var n,i=a(t,o),r=i.length;r--;)t[n=F(t,i[r])]=!(e[n]=i[r])}):function(t){return a(t,0,e)}):a}},pseudos:{not:ct(function(t){var i=[],r=[],s=p(t.replace(X,"$1"));return s[E]?ct(function(t,e,n,i){for(var r,o=s(t,null,i,[]),a=t.length;a--;)(r=o[a])&&(t[a]=!(e[a]=r))}):function(t,e,n){return i[0]=t,s(i,null,n,r),i[0]=null,!r.pop()}}),has:ct(function(e){return function(t){return 0<st(e,t).length}}),contains:ct(function(e){return e=e.replace(it,h),function(t){return-1<(t.textContent||o(t)).indexOf(e)}}),lang:ct(function(n){return q.test(n||"")||st.error("unsupported lang: "+n),n=n.replace(it,h).toLowerCase(),function(t){var e;do{if(e=C?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===a},focus:function(t){return t===w.activeElement&&(!w.hasFocus||w.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:dt(!1),disabled:dt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!b.pseudos.empty(t)},header:function(t){return Q.test(t.nodeName)},input:function(t){return $.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(t=t.getAttribute("type"))||"text"===t.toLowerCase())},first:ft(function(){return[0]}),last:ft(function(t,e){return[e-1]}),eq:ft(function(t,e,n){return[n<0?n+e:n]}),even:ft(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:ft(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:ft(function(t,e,n){for(var i=n<0?n+e:e<n?e:n;0<=--i;)t.push(i);return t}),gt:ft(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[t]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(t);for(t in{submit:!0,reset:!0})b.pseudos[t]=function(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}(t);function yt(){}function mt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function _t(a,t,e){var s=t.dir,l=t.next,c=l||s,u=e&&"parentNode"===c,h=v++;return t.first?function(t,e,n){for(;t=t[s];)if(1===t.nodeType||u)return a(t,e,n);return!1}:function(t,e,n){var i,r,o=[T,h];if(n){for(;t=t[s];)if((1===t.nodeType||u)&&a(t,e,n))return!0}else for(;t=t[s];)if(1===t.nodeType||u)if(i=(r=t[E]||(t[E]={}))[t.uniqueID]||(r[t.uniqueID]={}),l&&l===t.nodeName.toLowerCase())t=t[s]||t;else{if((r=i[c])&&r[0]===T&&r[1]===h)return o[2]=r[2];if((i[c]=o)[2]=a(t,e,n))return!0}return!1}}function vt(r){return 1<r.length?function(t,e,n){for(var i=r.length;i--;)if(!r[i](t,e,n))return!1;return!0}:r[0]}function bt(t,e,n,i,r){for(var o,a=[],s=0,l=t.length,c=null!=e;s<l;s++)(o=t[s])&&(n&&!n(o,i,r)||(a.push(o),c&&e.push(s)));return a}function xt(t){for(var i,e,n,r=t.length,o=b.relative[t[0].type],a=o||b.relative[" "],s=o?1:0,l=_t(function(t){return t===i},a,!0),c=_t(function(t){return-1<F(i,t)},a,!0),u=[function(t,e,n){n=!o&&(n||e!==x)||((i=e).nodeType?l:c)(t,e,n);return i=null,n}];s<r;s++)if(e=b.relative[t[s].type])u=[_t(vt(u),e)];else{if((e=b.filter[t[s].type].apply(null,t[s].matches))[E]){for(n=++s;n<r&&!b.relative[t[n].type];n++);return function t(d,f,g,y,m,e){return y&&!y[E]&&(y=t(y)),m&&!m[E]&&(m=t(m,e)),ct(function(t,e,n,i){var r,o,a,s=[],l=[],c=e.length,u=t||function(t,e,n){for(var i=0,r=e.length;i<r;i++)st(t,e[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),h=!d||!t&&f?u:bt(u,s,d,n,i),p=g?m||(t?d:c||y)?[]:e:h;if(g&&g(h,p,n,i),y)for(r=bt(p,l),y(r,[],n,i),o=r.length;o--;)(a=r[o])&&(p[l[o]]=!(h[l[o]]=a));if(t){if(m||d){if(m){for(r=[],o=p.length;o--;)(a=p[o])&&r.push(h[o]=a);m(null,p=[],r,i)}for(o=p.length;o--;)(a=p[o])&&-1<(r=m?F(t,a):s[o])&&(t[r]=!(e[r]=a))}}else p=bt(p===e?p.splice(c,p.length):p),m?m(null,e,p,i):A.apply(e,p)})}(1<s&&vt(u),1<s&&mt(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(X,"$1"),e,s<n&&xt(t.slice(s,n)),n<r&&xt(t=t.slice(n)),n<r&&mt(t))}u.push(e)}return vt(u)}return yt.prototype=b.filters=b.pseudos,b.setFilters=new yt,f=st.tokenize=function(t,e){var n,i,r,o,a,s,l,c=j[t+" "];if(c)return e?0:c.slice(0);for(a=t,s=[],l=b.preFilter;a;){for(o in n&&!(i=B.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=V.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(X," ")}),a=a.slice(n.length)),b.filter)!(i=Z[o].exec(a))||l[o]&&!(i=l[o](i))||(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return e?a.length:a?st.error(t):j(t,s).slice(0)},p=st.compile=function(t,e){var n,y,m,_,v,i=[],r=[],o=D[t+" "];if(!o){for(n=(e=e||f(t)).length;n--;)((o=xt(e[n]))[E]?i:r).push(o);(o=D(t,(y=r,_=0<(m=i).length,v=0<y.length,_?ct(a):a))).selector=t}function a(t,e,n,i,r){var o,a,s,l=0,c="0",u=t&&[],h=[],p=x,d=t||v&&b.find.TAG("*",r),f=T+=null==p?1:Math.random()||.1,g=d.length;for(r&&(x=e==w||e||r);c!==g&&null!=(o=d[c]);c++){if(v&&o){for(a=0,e||o.ownerDocument==w||(O(o),n=!C);s=y[a++];)if(s(o,e||w,n)){i.push(o);break}r&&(T=f)}_&&((o=!s&&o)&&l--,t&&u.push(o))}if(l+=c,_&&c!==l){for(a=0;s=m[a++];)s(u,h,e,n);if(t){if(0<l)for(;c--;)u[c]||h[c]||(h[c]=k.call(i));h=bt(h)}A.apply(i,h),r&&!t&&0<h.length&&1<l+m.length&&st.uniqueSort(i)}return r&&(T=f,x=p),u}return o},g=st.select=function(t,e,n,i){var r,o,a,s,l,c="function"==typeof t&&t,u=!i&&f(t=c.selector||t);if(n=n||[],1===u.length){if(2<(o=u[0]=u[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===e.nodeType&&C&&b.relative[o[1].type]){if(!(e=(b.find.ID(a.matches[0].replace(it,h),e)||[])[0]))return n;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=Z.needsContext.test(t)?0:o.length;r--&&(a=o[r],!b.relative[s=a.type]);)if((l=b.find[s])&&(i=l(a.matches[0].replace(it,h),nt.test(o[0].type)&>(e.parentNode)||e))){if(o.splice(r,1),!(t=i.length&&mt(o)))return A.apply(n,i),n;break}}return(c||p(t,u))(i,e,!C,n,!e||nt.test(t)&>(e.parentNode)||e),n},d.sortStable=E.split("").sort(R).join("")===E,d.detectDuplicates=!!c,O(),d.sortDetached=ut(function(t){return 1&t.compareDocumentPosition(w.createElement("fieldset"))}),ut(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ht("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),d.attributes&&ut(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ht("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),ut(function(t){return null==t.getAttribute("disabled")})||ht(N,function(t,e,n){if(!n)return!0===t[e]?e.toLowerCase():(e=t.getAttributeNode(e))&&e.specified?e.value:null}),st}(w);E.find=p,E.expr=p.selectors,E.expr[":"]=E.expr.pseudos,E.uniqueSort=E.unique=p.uniqueSort,E.text=p.getText,E.isXMLDoc=p.isXML,E.contains=p.contains,E.escapeSelector=p.escape;function d(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&E(t).is(n))break;i.push(t)}return i}function x(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}var O=E.expr.match.needsContext;function T(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var S=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(t,n,i){return v(n)?E.grep(t,function(t,e){return!!n.call(t,e,t)!==i}):n.nodeType?E.grep(t,function(t){return t===n!==i}):"string"!=typeof n?E.grep(t,function(t){return-1<r.call(n,t)!==i}):E.filter(n,t,i)}E.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?E.find.matchesSelector(i,t)?[i]:[]:E.find.matches(t,E.grep(e,function(t){return 1===t.nodeType}))},E.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(E(t).filter(function(){for(e=0;e<i;e++)if(E.contains(r[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)E.find(t,r[e],n);return 1<i?E.uniqueSort(n):n},filter:function(t){return this.pushStack(j(this,t||[],!1))},not:function(t){return this.pushStack(j(this,t||[],!0))},is:function(t){return!!j(this,"string"==typeof t&&O.test(t)?E(t):t||[],!1).length}});var D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(t,e,n){if(!t)return this;if(n=n||I,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==n.ready?n.ready(t):t(E):E.makeArray(t,this);if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:D.exec(t))||!i[1]&&e)return(!e||e.jquery?e||n:this.constructor(e)).find(t);if(i[1]){if(e=e instanceof E?e[0]:e,E.merge(this,E.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:C,!0)),S.test(i[1])&&E.isPlainObject(e))for(var i in e)v(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(t=C.getElementById(i[2]))&&(this[0]=t,this.length=1),this}).prototype=E.fn;var I=E(C),R=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function k(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}E.fn.extend({has:function(t){var e=E(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(E.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,r=this.length,o=[],a="string"!=typeof t&&E(t);if(!O.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&E.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(1<o.length?E.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?r.call(E(t),this[0]):r.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),E.each({parent:function(t){t=t.parentNode;return t&&11!==t.nodeType?t:null},parents:function(t){return d(t,"parentNode")},parentsUntil:function(t,e,n){return d(t,"parentNode",n)},next:function(t){return k(t,"nextSibling")},prev:function(t){return k(t,"previousSibling")},nextAll:function(t){return d(t,"nextSibling")},prevAll:function(t){return d(t,"previousSibling")},nextUntil:function(t,e,n){return d(t,"nextSibling",n)},prevUntil:function(t,e,n){return d(t,"previousSibling",n)},siblings:function(t){return x((t.parentNode||{}).firstChild,t)},children:function(t){return x(t.firstChild)},contents:function(t){return null!=t.contentDocument&&n(t.contentDocument)?t.contentDocument:(T(t,"template")&&(t=t.content||t),E.merge([],t.childNodes))}},function(i,r){E.fn[i]=function(t,e){var n=E.map(this,r,t);return(e="Until"!==i.slice(-5)?t:e)&&"string"==typeof e&&(n=E.filter(e,n)),1<this.length&&(P[i]||E.uniqueSort(n),R.test(i)&&n.reverse()),this.pushStack(n)}});var M=/[^\x20\t\r\n\f]+/g;function A(t){return t}function L(t){throw t}function F(t,e,n,i){var r;try{t&&v(r=t.promise)?r.call(t).done(e).fail(n):t&&v(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}E.Callbacks=function(i){var n;i="string"==typeof i?(n={},E.each(i.match(M)||[],function(t,e){n[e]=!0}),n):E.extend({},i);function r(){for(a=a||i.once,e=o=!0;l.length;c=-1)for(t=l.shift();++c<s.length;)!1===s[c].apply(t[0],t[1])&&i.stopOnFalse&&(c=s.length,t=!1);i.memory||(t=!1),o=!1,a&&(s=t?[]:"")}var o,t,e,a,s=[],l=[],c=-1,u={add:function(){return s&&(t&&!o&&(c=s.length-1,l.push(t)),function n(t){E.each(t,function(t,e){v(e)?i.unique&&u.has(e)||s.push(e):e&&e.length&&"string"!==f(e)&&n(e)})}(arguments),t&&!o&&r()),this},remove:function(){return E.each(arguments,function(t,e){for(var n;-1<(n=E.inArray(e,s,n));)s.splice(n,1),n<=c&&c--}),this},has:function(t){return t?-1<E.inArray(t,s):0<s.length},empty:function(){return s=s&&[],this}
vendor: 4,646 bytes, line 1
1,disable:function(){return a=l=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=l=[],t||o||(s=t=""),this},locked:function(){return!!a},fireWith:function(t,e){return a||(e=[t,(e=e||[]).slice?e.slice():e],l.push(e),o||r()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!e}};return u},E.extend({Deferred:function(t){var o=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],r="pending",a={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return a.then(null,t)},pipe:function(){var r=arguments;return E.Deferred(function(i){E.each(o,function(t,e){var n=v(r[e[4]])&&r[e[4]];s[e[1]](function(){var t=n&&n.apply(this,arguments);t&&v(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[e[0]+"With"](this,n?[t]:arguments)})}),r=null}).promise()},then:function(e,n,i){var l=0;function c(r,o,a,s){return function(){function t(){var t,e;if(!(r<l)){if((t=a.apply(n,i))===o.promise())throw new TypeError("Thenable self-resolution");e=t&&("object"==typeof t||"function"==typeof t)&&t.then,v(e)?s?e.call(t,c(l,o,A,s),c(l,o,L,s)):(l++,e.call(t,c(l,o,A,s),c(l,o,L,s),c(l,o,A,o.notifyWith))):(a!==A&&(n=void 0,i=[t]),(s||o.resolveWith)(n,i))}}var n=this,i=arguments,e=s?t:function(){try{t()}catch(t){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(t,e.stackTrace),l<=r+1&&(a!==L&&(n=void 0,i=[t]),o.rejectWith(n,i))}};r?e():(E.Deferred.getStackHook&&(e.stackTrace=E.Deferred.getStackHook()),w.setTimeout(e))}}return E.Deferred(function(t){o[0][3].add(c(0,t,v(i)?i:A,t.notifyWith)),o[1][3].add(c(0,t,v(e)?e:A)),o[2][3].add(c(0,t,v(n)?n:L))}).promise()},promise:function(t){return null!=t?E.extend(t,a):a}},s={};return E.each(o,function(t,e){var n=e[2],i=e[5];a[e[1]]=n.add,i&&n.add(function(){r=i},o[3-t][2].disable,o[3-t][3].disable,o[0][2].lock,o[0][3].lock),n.add(e[3].fire),s[e[0]]=function(){return s[e[0]+"With"](this===s?void 0:this,arguments),this},s[e[0]+"With"]=n.fireWith}),a.promise(s),t&&t.call(s,s),s},when:function(t){function e(e){return function(t){r[e]=this,o[e]=1<arguments.length?s.call(arguments):t,--n||a.resolveWith(r,o)}}var n=arguments.length,i=n,r=Array(i),o=s.call(arguments),a=E.Deferred();if(n<=1&&(F(t,a.done(e(i)).resolve,a.reject,!n),"pending"===a.state()||v(o[i]&&o[i].then)))return a.then();for(;i--;)F(o[i],e(i),a.reject);return a.promise()}});var N=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(t,e){w.console&&w.console.warn&&t&&N.test(t.name)&&w.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},E.readyException=function(t){w.setTimeout(function(){throw t})};var G=E.Deferred();function W(){C.removeEventListener("DOMContentLoaded",W),w.removeEventListener("load",W),E.ready()}E.fn.ready=function(t){return G.then(t).catch(function(t){E.readyException(t)}),this},E.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--E.readyWait:E.isReady)||((E.isReady=!0)!==t&&0<--E.readyWait||G.resolveWith(C,[E]))}}),E.ready.then=G.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?w.setTimeout(E.ready):(C.addEventListener("DOMContentLoaded",W),w.addEventListener("load",W));var z=function(t,e,n,i,r,o,a){var s=0,l=t.length,c=null==n;if("object"===f(n))for(s in r=!0,n)z(t,e,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,v(i)||(a=!0),e=c?a?(e.call(t,i),null):(c=e,function(t,e,n){return c.call(E(t),n)}):e))for(;s<l;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return r?t:c?e.call(t):l?e(t[0],n):o},Y=/^-ms-/,U=/-([a-z])/g;function X(t,e){return e.toUpperCase()}function B(t){return t.replace(Y,"ms-").replace(U,X)}function V(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function H(){this.expando=E.expando+H.uid++}H.uid=1,H.prototype={cache:function(t){var e=t[this.expando];return e||(e={},V(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[B(e)]=n;else for(i in e)r[B(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][B(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(B):(e=B(e))in i?[e]:e.match(M)||[]).length;for(;n--;)delete i[e[n]]}
vendor: 10,383 bytes, line 1
1void 0!==e&&!E.isEmptyObject(i)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){t=t[this.expando];return void 0!==t&&!E.isEmptyObject(t)}};var K=new H,q=new H,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function $(t,e,n){var i,r;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(J,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n="true"===(r=n)||"false"!==r&&("null"===r?null:r===+r+""?+r:Z.test(r)?JSON.parse(r):r)}catch(t){}q.set(t,e,n)}else n=void 0;return n}E.extend({hasData:function(t){return q.hasData(t)||K.hasData(t)},data:function(t,e,n){return q.access(t,e,n)},removeData:function(t,e){q.remove(t,e)},_data:function(t,e,n){return K.access(t,e,n)},_removeData:function(t,e){K.remove(t,e)}}),E.fn.extend({data:function(n,t){var e,i,r,o=this[0],a=o&&o.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){q.set(this,n)}):z(this,function(t){var e;return o&&void 0===t?void 0!==(e=q.get(o,n))||void 0!==(e=$(o,n))?e:void 0:void this.each(function(){q.set(this,n,t)})},null,t,1<arguments.length,null,!0);if(this.length&&(r=q.get(o),1===o.nodeType&&!K.get(o,"hasDataAttrs"))){for(e=a.length;e--;)a[e]&&0===(i=a[e].name).indexOf("data-")&&(i=B(i.slice(5)),$(o,i,r[i]));K.set(o,"hasDataAttrs",!0)}return r},removeData:function(t){return this.each(function(){q.remove(this,t)})}}),E.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=K.get(t,e),n&&(!i||Array.isArray(n)?i=K.access(t,e,E.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=E.queue(t,e),i=n.length,r=n.shift(),o=E._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,function(){E.dequeue(t,e)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return K.get(t,n)||K.access(t,n,{empty:E.Callbacks("once memory").add(function(){K.remove(t,[e+"queue",n])})})}}),E.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?E.queue(this[0],e):void 0===n?this:this.each(function(){var t=E.queue(this,e,n);E._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&E.dequeue(this,e)})},dequeue:function(t){return this.each(function(){E.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function n(){--r||o.resolveWith(a,[a])}var i,r=1,o=E.Deferred(),a=this,s=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(i=K.get(a[s],t+"queueHooks"))&&i.empty&&(r++,i.empty.add(n));return n(),o.promise(e)}});var Q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,tt=new RegExp("^(?:([+-])=|)("+Q+")([a-z%]*)$","i"),et=["Top","Right","Bottom","Left"],nt=C.documentElement,it=function(t){return E.contains(t.ownerDocument,t)},rt={composed:!0};nt.getRootNode&&(it=function(t){return E.contains(t.ownerDocument,t)||t.getRootNode(rt)===t.ownerDocument});function ot(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&it(t)&&"none"===E.css(t,"display")}function at(t,e,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return E.css(t,e,"")},l=s(),c=n&&n[3]||(E.cssNumber[e]?"":"px"),u=t.nodeType&&(E.cssNumber[e]||"px"!==c&&+l)&&tt.exec(E.css(t,e));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)E.style(t,e,u+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),u/=o;u*=2,E.style(t,e,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var st={};function lt(t,e){for(var n,i,r,o,a,s=[],l=0,c=t.length;l<c;l++)(i=t[l]).style&&(n=i.style.display,e?("none"===n&&(s[l]=K.get(i,"display")||null,s[l]||(i.style.display="")),""===i.style.display&&ot(i)&&(s[l]=(a=o=void 0,o=(r=i).ownerDocument,a=r.nodeName,(r=st[a])||(o=o.body.appendChild(o.createElement(a)),r=E.css(o,"display"),o.parentNode.removeChild(o),"none"===r&&(r="block"),st[a]=r)))):"none"!==n&&(s[l]="none",K.set(i,"display",n)));for(l=0;l<c;l++)null!=s[l]&&(t[l].style.display=s[l]);return t}E.fn.extend({show:function(){return lt(this,!0)},hide:function(){return lt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){ot(this)?E(this).show():E(this).hide()})}});var ct=/^(?:checkbox|radio)$/i,ut=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ht=/^$|^module$|\/(?:java|ecma)script/i,pt=C.createDocumentFragment().appendChild(C.createElement("div"));(p=C.createElement("input")).setAttribute("type","radio"),p.setAttribute("checked","checked"),p.setAttribute("name","t"),pt.appendChild(p),_.checkClone=pt.cloneNode(!0).cloneNode(!0).lastChild.checked,pt.innerHTML="<textarea>x</textarea>",_.noCloneChecked=!!pt.cloneNode(!0).lastChild.defaultValue,pt.innerHTML="<option></option>",_.option=!!pt.lastChild;var dt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ft(t,e){var n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&T(t,e)?E.merge([t],n):n}function gt(t,e){for(var n=0,i=t.length;n<i;n++)K.set(t[n],"globalEval",!e||K.get(e[n],"globalEval"))}dt.tbody=dt.tfoot=dt.colgroup=dt.caption=dt.thead,dt.th=dt.td,_.option||(dt.optgroup=dt.option=[1,"<select multiple='multiple'>","</select>"]);var yt=/<|&#?\w+;/;function mt(t,e,n,i,r){for(var o,a,s,l,c,u=e.createDocumentFragment(),h=[],p=0,d=t.length;p<d;p++)if((o=t[p])||0===o)if("object"===f(o))E.merge(h,o.nodeType?[o]:o);else if(yt.test(o)){for(a=a||u.appendChild(e.createElement("div")),s=(ut.exec(o)||["",""])[1].toLowerCase(),s=dt[s]||dt._default,a.innerHTML=s[1]+E.htmlPrefilter(o)+s[2],c=s[0];c--;)a=a.lastChild;E.merge(h,a.childNodes),(a=u.firstChild).textContent=""}else h.push(e.createTextNode(o));for(u.textContent="",p=0;o=h[p++];)if(i&&-1<E.inArray(o,i))r&&r.push(o);else if(l=it(o),a=ft(u.appendChild(o),"script"),l&>(a),n)for(c=0;o=a[c++];)ht.test(o.type||"")&&n.push(o);return u}var _t=/^key/,vt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,bt=/^([^.]*)(?:\.(.+)|)/;function xt(){return!0}function Ot(){return!1}function wt(t,e){return t===function(){try{return C.activeElement}catch(t){}}()==("focus"===e)}function Ct(t,e,n,i,r,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)Ct(t,s,n,i,e[s],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Ot;else if(!r)return t;return 1===o&&(a=r,(r=function(t){return E().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=E.guid++)),t.each(function(){E.event.add(this,e,r,i,n)})}function Et(t,r,o){o?(K.set(t,r,!1),E.event.add(t,r,{namespace:!1,handler:function(t){var e,n,i=K.get(this,r);if(1&t.isTrigger&&this[r]){if(i.length)(E.event.special[r]||{}).delegateType&&t.stopPropagation();else if(i=s.call(arguments),K.set(this,r,i),e=o(this,r),this[r](),i!==(n=K.get(this,r))||e?K.set(this,r,!1):n={},i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n.value}else i.length&&(K.set(this,r,{value:E.event.trigger(E.extend(i[0],E.Event.prototype),i.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===K.get(t,r)&&E.event.add(t,r,xt)}E.event={global:{},add:function(e,t,n,i,r){var o,a,s,l,c,u,h,p,d,f=K.get(e);if(V(e))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&E.find.matchesSelector(nt,r),n.guid||(n.guid=E.guid++),(s=f.events)||(s=f.events=Object.create(null)),(a=f.handle)||(a=f.handle=function(t){return void 0!==E&&E.event.triggered!==t.type?E.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(M)||[""]).length;l--;)h=d=(c=bt.exec(t[l])||[])[1],p=(c[2]||"").split(".").sort(),h&&(u=E.event.special[h]||{},h=(r?u.delegateType:u.bindType)||h,u=E.event.special[h]||{},c=E.extend({type:h,origType:d,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&E.expr.match.needsContext.test(r),namespace:p.join(".")},o),(d=s[h])||((d=s[h]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,i,p,a)||e.addEventListener&&e.addEventListener(h,a)),u.add&&(u.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,c):d.push(c),E.event.global[h]=!0)},remove:function(t,e,n,i,r){var o,a,s,l,c,u,h,p,d,f,g,y=K.hasData(t)&&K.get(t);if(y&&(l=y.events)){for(c=(e=(e||"").match(M)||[""]).length;c--;)if(d=g=(s=bt.exec(e[c])||[])[1],f=(s[2]||"").split(".").sort(),d){for(h=E.event.special[d]||{},p=l[d=(i?h.delegateType:h.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)u=p[o],!r&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(p.splice(o,1),u.selector&&p.delegateCount--,h.remove&&h.remove.call(t,u));a&&!p.length&&(h.teardown&&!1!==h.teardown.call(t,f,y.handle)||E.removeEvent(t,d,y.handle),delete l[d])}else for(d in l)E.event.remove(t,d+e[c],n,i,!0);E.isEmptyObject(l)&&K.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,a=new Array(arguments.length),s=E.event.fix(t),l=(K.get(this,"events")||Object.create(null))[s.type]||[],t=E.event.special[s.type]||{};for(a[0]=s,e=1;e<arguments.length;e++)a[e]=arguments[e];if(s.delegateTarget=this,!t.preDispatch||!1!==t.preDispatch.call(this,s)){for(o=E.event.handlers.call(this,s,l),e=0;(i=o[e++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(r=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==r.namespace&&!s.rnamespace.test(r.namespace)||(s.handleObj=r,s.data=r.data,void 0!==(r=((E.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,a))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return t.postDispatch&&t.postDispatch.call(this,s),s.result}},handlers:function(t,e){var n,i,r,o,a,s=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&1<=t.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=e[n]).selector+" "]&&(a[r]=i.needsContext?-1<E(r,this).index(c):E.find(r,this,null,[c]).length),a[r]&&o.push(i);o.length&&s.push({elem:c,handlers:o})}return c=this,l<e.length&&s.push({elem:c,handlers:e.slice(l)}),s},addProp:function(e,t){Object.defineProperty(E.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]}
vendor: 2,418 bytes, line 1
1,set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(t){return t[E.expando]?t:new E.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){t=this||t;return ct.test(t.type)&&t.click&&T(t,"input")&&Et(t,"click",xt),!1},trigger:function(t){t=this||t;return ct.test(t.type)&&t.click&&T(t,"input")&&Et(t,"click"),!0},_default:function(t){t=t.target;return ct.test(t.type)&&t.click&&T(t,"input")&&K.get(t,"click")||T(t,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},E.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},E.Event=function(t,e){if(!(this instanceof E.Event))return new E.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?xt:Ot,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&E.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:Ot,isPropagationStopped:Ot,isImmediatePropagationStopped:Ot,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=xt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=xt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=xt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},E.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&_t.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&vt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},E.event.addProp),E.each({focus:"focusin",blur:"focusout"},function(t,e){E.event.special[t]={setup:function(){return Et(this,t,wt),!1},trigger:function(){return Et(this,t),!0},delegateType:e}}
vendor: 4,530 bytes, line 1
1),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,r){E.event.special[t]={delegateType:r,bindType:r,handle:function(t){var e,n=t.relatedTarget,i=t.handleObj;return n&&(n===this||E.contains(this,n))||(t.type=i.origType,e=i.handler.apply(this,arguments),t.type=r),e}}}),E.fn.extend({on:function(t,e,n,i){return Ct(this,t,e,n,i)},one:function(t,e,n,i){return Ct(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,E(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Ot),this.each(function(){E.event.remove(this,t,n,e)});for(r in t)this.off(r,e,t[r]);return this}});var Tt=/<script|<style|<link/i,St=/checked\s*(?:[^=]|=\s*.checked.)/i,jt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Dt(t,e){return T(t,"table")&&T(11!==e.nodeType?e:e.firstChild,"tr")&&E(t).children("tbody")[0]||t}function It(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Rt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Pt(t,e){var n,i,r,o;if(1===e.nodeType){if(K.hasData(t)&&(o=K.get(t).events))for(r in K.remove(e,"handle events"),o)for(n=0,i=o[r].length;n<i;n++)E.event.add(e,r,o[r][n]);q.hasData(t)&&(t=q.access(t),t=E.extend({},t),q.set(e,t))}}function kt(n,i,r,o){i=y(i);var t,e,a,s,l,c,u=0,h=n.length,p=h-1,d=i[0],f=v(d);if(f||1<h&&"string"==typeof d&&!_.checkClone&&St.test(d))return n.each(function(t){var e=n.eq(t);f&&(i[0]=d.call(this,t,e.html())),kt(e,i,r,o)});if(h&&(e=(t=mt(i,n[0].ownerDocument,!1,n,o)).firstChild,1===t.childNodes.length&&(t=e),e||o)){for(s=(a=E.map(ft(t,"script"),It)).length;u<h;u++)l=t,u!==p&&(l=E.clone(l,!0,!0),s&&E.merge(a,ft(l,"script"))),r.call(n[u],l,u);if(s)for(c=a[a.length-1].ownerDocument,E.map(a,Rt),u=0;u<s;u++)l=a[u],ht.test(l.type||"")&&!K.access(l,"globalEval")&&E.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?E._evalUrl&&!l.noModule&&E._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):b(l.textContent.replace(jt,""),l,c))}return n}function Mt(t,e,n){for(var i,r=e?E.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||E.cleanData(ft(i)),i.parentNode&&(n&&it(i)&>(ft(i,"script")),i.parentNode.removeChild(i));return t}E.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,o,a,s,l,c,u=t.cloneNode(!0),h=it(t);if(!(_.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||E.isXMLDoc(t)))for(a=ft(u),i=0,r=(o=ft(t)).length;i<r;i++)s=o[i],l=a[i],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&ct.test(s.type)?l.checked=s.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=s.defaultValue);if(e)if(n)for(o=o||ft(t),a=a||ft(u),i=0,r=o.length;i<r;i++)Pt(o[i],a[i]);else Pt(t,u);return 0<(a=ft(u,"script")).length&>(a,!h&&ft(t,"script")),u},cleanData:function(t){for(var e,n,i,r=E.event.special,o=0;void 0!==(n=t[o]);o++)if(V(n)){if(e=n[K.expando]){if(e.events)for(i in e.events)r[i]?E.event.remove(n,i):E.removeEvent(n,i,e.handle);n[K.expando]=void 0}n[q.expando]&&(n[q.expando]=void 0)}}}),E.fn.extend({detach:function(t){return Mt(this,t,!0)},remove:function(t){return Mt(this,t)},text:function(t){return z(this,function(t){return void 0===t?E.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return kt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Dt(this,t).appendChild(t)})},prepend:function(){return kt(this,arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=Dt(this,t)).insertBefore(t,e.firstChild)})},before:function(){return kt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return kt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(E.cleanData(ft(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return E.clone(this,t,e)})},html:function(t){return z(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Tt.test(t)&&!dt[(ut.exec(t)||["",""])[1].toLowerCase()]){t=E.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}
vendor: 4,759 bytes, line 1
1).nodeType&&(E.cleanData(ft(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var n=[];return kt(this,arguments,function(t){var e=this.parentNode;E.inArray(this,n)<0&&(E.cleanData(ft(this)),e&&e.replaceChild(t,this))},n)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,a){E.fn[t]=function(t){for(var e,n=[],i=E(t),r=i.length-1,o=0;o<=r;o++)e=o===r?this:this.clone(!0),E(i[o])[a](e),l.apply(n,e.get());return this.pushStack(n)}});function At(t,e,n){var i,r={};for(i in e)r[i]=t.style[i],t.style[i]=e[i];for(i in n=n.call(t),e)t.style[i]=r[i];return n}var Lt,Ft,Nt,Gt,Wt,zt,Yt,Ut,Xt=new RegExp("^("+Q+")(?!px)[a-z%]+$","i"),Bt=function(t){var e=t.ownerDocument.defaultView;return(e=!e||!e.opener?w:e).getComputedStyle(t)},Vt=new RegExp(et.join("|"),"i");function Ht(t,e,n){var i,r,o=t.style;return(n=n||Bt(t))&&(""!==(r=n.getPropertyValue(e)||n[e])||it(t)||(r=E.style(t,e)),!_.pixelBoxStyles()&&Xt.test(r)&&Vt.test(e)&&(i=o.width,t=o.minWidth,e=o.maxWidth,o.minWidth=o.maxWidth=o.width=r,r=n.width,o.width=i,o.minWidth=t,o.maxWidth=e)),void 0!==r?r+"":r}function Kt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}function qt(){var t;Ut&&(Yt.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Ut.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",nt.appendChild(Yt).appendChild(Ut),t=w.getComputedStyle(Ut),Lt="1%"!==t.top,zt=12===Zt(t.marginLeft),Ut.style.right="60%",Gt=36===Zt(t.right),Ft=36===Zt(t.width),Ut.style.position="absolute",Nt=12===Zt(Ut.offsetWidth/3),nt.removeChild(Yt),Ut=null)}function Zt(t){return Math.round(parseFloat(t))}Yt=C.createElement("div"),(Ut=C.createElement("div")).style&&(Ut.style.backgroundClip="content-box",Ut.cloneNode(!0).style.backgroundClip="",_.clearCloneStyle="content-box"===Ut.style.backgroundClip,E.extend(_,{boxSizingReliable:function(){return qt(),Ft},pixelBoxStyles:function(){return qt(),Gt},pixelPosition:function(){return qt(),Lt},reliableMarginLeft:function(){return qt(),zt},scrollboxSize:function(){return qt(),Nt},reliableTrDimensions:function(){var t,e,n;return null==Wt&&(t=C.createElement("table"),n=C.createElement("tr"),e=C.createElement("div"),t.style.cssText="position:absolute;left:-11111px",n.style.height="1px",e.style.height="9px",nt.appendChild(t).appendChild(n).appendChild(e),n=w.getComputedStyle(n),Wt=3<parseInt(n.height),nt.removeChild(t)),Wt}}));var Jt=["Webkit","Moz","ms"],$t=C.createElement("div").style,Qt={};function te(t){return E.cssProps[t]||Qt[t]||(t in $t?t:Qt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=Jt.length;n--;)if((t=Jt[n]+e)in $t)return t}(t)||t)}var ee=/^(none|table(?!-c[ea]).+)/,ne=/^--/,ie={position:"absolute",visibility:"hidden",display:"block"},re={letterSpacing:"0",fontWeight:"400"};function oe(t,e,n){var i=tt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function ae(t,e,n,i,r,o){var a="width"===e?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=E.css(t,n+et[a],!0,r)),i?("content"===n&&(l-=E.css(t,"padding"+et[a],!0,r)),"margin"!==n&&(l-=E.css(t,"border"+et[a]+"Width",!0,r))):(l+=E.css(t,"padding"+et[a],!0,r),"padding"!==n?l+=E.css(t,"border"+et[a]+"Width",!0,r):s+=E.css(t,"border"+et[a]+"Width",!0,r));return!i&&0<=o&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))||0),l}function se(t,e,n){var i=Bt(t),r=(!_.boxSizingReliable()||n)&&"border-box"===E.css(t,"boxSizing",!1,i),o=r,a=Ht(t,e,i),s="offset"+e[0].toUpperCase()+e.slice(1);if(Xt.test(a)){if(!n)return a;a="auto"}return(!_.boxSizingReliable()&&r||!_.reliableTrDimensions()&&T(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===E.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===E.css(t,"boxSizing",!1,i),(o=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+ae(t,e,n||(r?"border":"content"),o,i,a)+"px"}function le(t,e,n,i,r){return new le.prototype.init(t,e,n,i,r)}E.extend({cssHooks:{opacity:{get:function(t,e){if(e){t=Ht(t,"opacity");return""===t?"1":t}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=B(e),l=ne.test(e),c=t.style;if(l||(e=te(s)),a=E.cssHooks[e]||E.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,i))?r:c[e];
vendor: 4,270 bytes, line 1
1"string"==(o=typeof n)&&(r=tt.exec(n))&&r[1]&&(n=at(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(E.cssNumber[s]?"":"px")),_.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,i){var r,o=B(e);return ne.test(e)||(e=te(o)),"normal"===(r=void 0===(r=(o=E.cssHooks[e]||E.cssHooks[o])&&"get"in o?o.get(t,!0,n):r)?Ht(t,e,i):r)&&e in re&&(r=re[e]),""===n||n?(e=parseFloat(r),!0===n||isFinite(e)?e||0:r):r}}),E.each(["height","width"],function(t,s){E.cssHooks[s]={get:function(t,e,n){if(e)return!ee.test(E.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?se(t,s,n):At(t,ie,function(){return se(t,s,n)})},set:function(t,e,n){var i,r=Bt(t),o=!_.scrollboxSize()&&"absolute"===r.position,a=(o||n)&&"border-box"===E.css(t,"boxSizing",!1,r),n=n?ae(t,s,n,a,r):0;return a&&o&&(n-=Math.ceil(t["offset"+s[0].toUpperCase()+s.slice(1)]-parseFloat(r[s])-ae(t,s,"border",!1,r)-.5)),n&&(i=tt.exec(e))&&"px"!==(i[3]||"px")&&(t.style[s]=e,e=E.css(t,s)),oe(0,e,n)}}}),E.cssHooks.marginLeft=Kt(_.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Ht(t,"marginLeft"))||t.getBoundingClientRect().left-At(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),E.each({margin:"",padding:"",border:"Width"},function(r,o){E.cssHooks[r+o]={expand:function(t){for(var e=0,n={},i="string"==typeof t?t.split(" "):[t];e<4;e++)n[r+et[e]+o]=i[e]||i[e-2]||i[0];return n}},"margin"!==r&&(E.cssHooks[r+o].set=oe)}),E.fn.extend({css:function(t,e){return z(this,function(t,e,n){var i,r,o={},a=0;if(Array.isArray(e)){for(i=Bt(t),r=e.length;a<r;a++)o[e[a]]=E.css(t,e[a],!1,i);return o}return void 0!==n?E.style(t,e,n):E.css(t,e)},t,e,1<arguments.length)}}),(E.Tween=le).prototype={constructor:le,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||E.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(E.cssNumber[n]?"":"px")},cur:function(){var t=le.propHooks[this.prop];return(t&&t.get?t:le.propHooks._default).get(this)},run:function(t){var e,n=le.propHooks[this.prop];return this.options.duration?this.pos=e=E.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(n&&n.set?n:le.propHooks._default).set(this),this}},le.prototype.init.prototype=le.prototype,le.propHooks={_default:{get:function(t){return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(t=E.css(t.elem,t.prop,""))&&"auto"!==t?t:0},set:function(t){E.fx.step[t.prop]?E.fx.step[t.prop](t):1!==t.elem.nodeType||!E.cssHooks[t.prop]&&null==t.elem.style[te(t.prop)]?t.elem[t.prop]=t.now:E.style(t.elem,t.prop,t.now+t.unit)}}},le.propHooks.scrollTop=le.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},E.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},E.fx=le.prototype.init,E.fx.step={};var ce,ue,he=/^(?:toggle|show|hide)$/,pe=/queueHooks$/;function de(){ue&&(!1===C.hidden&&w.requestAnimationFrame?w.requestAnimationFrame(de):w.setTimeout(de,E.fx.interval),E.fx.tick())}function fe(){return w.setTimeout(function(){ce=void 0}),ce=Date.now()}function ge(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=et[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function ye(t,e,n){for(var i,r=(me.tweeners[e]||[]).concat(me.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,e,t))return i}function me(r,t,e){var n,o,i=0,a=me.prefilters.length,s=E.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=ce||fe(),t=Math.max(0,c.startTime+c.duration-t),e=1-(t/c.duration||0),n=0,i=c.tweens.length;n<i;n++)c.tweens[n].run(e);return s.notifyWith(r,[c,e,t]),e<1&&i?t:(i||s.notifyWith(r,[c,1,0]),s.resolveWith(r,[c]),!1)},c=s.promise({elem:r,props:E.extend({},t),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},e),originalProperties:t,originalOptions:e,startTime:ce||fe(),duration:e.duration,tweens:[],createTween:function(t,e){t=E.Tween(r,c.opts,t,e,c.opts.specialEasing[t]||
vendor: 28,890 bytes, line 1
1c.opts.easing);return c.tweens.push(t),t},stop:function(t){var e=0,n=t?c.tweens.length:0;if(o)return this;for(o=!0;e<n;e++)c.tweens[e].run(1);return t?(s.notifyWith(r,[c,1,0]),s.resolveWith(r,[c,t])):s.rejectWith(r,[c,t]),this}}),u=c.props;for(function(t,e){var n,i,r,o,a;for(n in t)if(r=e[i=B(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(a=E.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(u,c.opts.specialEasing);i<a;i++)if(n=me.prefilters[i].call(c,r,u,c.opts))return v(n.stop)&&(E._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return E.map(u,ye,c),v(c.opts.start)&&c.opts.start.call(r,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),E.fx.timer(E.extend(l,{elem:r,anim:c,queue:c.opts.queue})),c}E.Animation=E.extend(me,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return at(n.elem,t,tt.exec(e),n),n}]},tweener:function(t,e){for(var n,i=0,r=(t=v(t)?(e=t,["*"]):t.match(M)).length;i<r;i++)n=t[i],me.tweeners[n]=me.tweeners[n]||[],me.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,a,s,l,c,u="width"in e||"height"in e,h=this,p={},d=t.style,f=t.nodeType&&ot(t),g=K.get(t,"fxshow");for(i in n.queue||(null==(a=E._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,E.queue(t,"fx").length||a.empty.fire()})})),e)if(r=e[i],he.test(r)){if(delete e[i],o=o||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;f=!0}p[i]=g&&g[i]||E.style(t,i)}if((l=!E.isEmptyObject(e))||!E.isEmptyObject(p))for(i in u&&1===t.nodeType&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],null==(c=g&&g.display)&&(c=K.get(t,"display")),"none"===(u=E.css(t,"display"))&&(c?u=c:(lt([t],!0),c=t.style.display||c,u=E.css(t,"display"),lt([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===E.css(t,"float")&&(l||(h.done(function(){d.display=c}),null==c&&(u=d.display,c="none"===u?"":u)),d.display="inline-block")),n.overflow&&(d.overflow="hidden",h.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})),l=!1,p)l||(g?"hidden"in g&&(f=g.hidden):g=K.access(t,"fxshow",{display:c}),o&&(g.hidden=!f),f&<([t],!0),h.done(function(){for(i in f||lt([t]),K.remove(t,"fxshow"),p)E.style(t,i,p[i])})),l=ye(f?g[i]:0,i,h),i in g||(g[i]=l.start,f&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?me.prefilters.unshift(t):me.prefilters.push(t)}}),E.speed=function(t,e,n){var i=t&&"object"==typeof t?E.extend({},t):{complete:n||!n&&e||v(t)&&t,duration:t,easing:n&&e||e&&!v(e)&&e};return E.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in E.fx.speeds?i.duration=E.fx.speeds[i.duration]:i.duration=E.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&E.dequeue(this,i.queue)},i},E.fn.extend({fadeTo:function(t,e,n,i){return this.filter(ot).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(e,t,n,i){var r=E.isEmptyObject(e),o=E.speed(t,n,i),i=function(){var t=me(this,E.extend({},e),o);(r||K.get(this,"finish"))&&t.stop(!0)};return i.finish=i,r||!1===o.queue?this.each(i):this.queue(o.queue,i)},stop:function(r,t,o){function a(t){var e=t.stop;delete t.stop,e(o)}return"string"!=typeof r&&(o=t,t=r,r=void 0),t&&this.queue(r||"fx",[]),this.each(function(){var t=!0,e=null!=r&&r+"queueHooks",n=E.timers,i=K.get(this);if(e)i[e]&&i[e].stop&&a(i[e]);else for(e in i)i[e]&&i[e].stop&&pe.test(e)&&a(i[e]);for(e=n.length;e--;)n[e].elem!==this||null!=r&&n[e].queue!==r||(n[e].anim.stop(o),t=!1,n.splice(e,1));!t&&o||E.dequeue(this,r)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var t,e=K.get(this),n=e[a+"queue"],i=e[a+"queueHooks"],r=E.timers,o=n?n.length:0;for(e.finish=!0,E.queue(this,a,[]),i&&i.stop&&i.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===a&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<o;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),E.each(["toggle","show","hide"],function(t,i){var r=E.fn[i];E.fn[i]=function(t,e,n){return null==t||"boolean"==typeof t?r.apply(this,arguments):this.animate(ge(i,!0),t,e,n)}}),E.each({slideDown:ge("show"),slideUp:ge("hide"),slideToggle:ge("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,i){E.fn[t]=function(t,e,n){return this.animate(i,t,e,n)}}),E.timers=[],E.fx.tick=function(){var t,e=0,n=E.timers;for(ce=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||E.fx.stop(),ce=void 0},E.fx.timer=function(t){E.timers.push(t),E.fx.start()},E.fx.interval=13,E.fx.start=function(){ue||(ue=!0,de())},E.fx.stop=function(){ue=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(i,t){return i=E.fx&&E.fx.speeds[i]||i,t=t||"fx",this.queue(t,function(t,e){var n=w.setTimeout(t,i);e.stop=function(){w.clearTimeout(n)}})},pt=C.createElement("input"),Q=C.createElement("select").appendChild(C.createElement("option")),pt.type="checkbox",_.checkOn=""!==pt.value,_.optSelected=Q.selected,(pt=C.createElement("input")).value="t",pt.type="radio",_.radioValue="t"===pt.value;var _e,ve=E.expr.attrHandle;E.fn.extend({attr:function(t,e){return z(this,E.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){E.removeAttr(this,t)})}}),E.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?E.prop(t,e,n):(1===o&&E.isXMLDoc(t)||(r=E.attrHooks[e.toLowerCase()]||(E.expr.match.bool.test(e)?_e:void 0)),void 0!==n?null===n?void E.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):!(r&&"get"in r&&null!==(i=r.get(t,e)))&&null==(i=E.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!_.radioValue&&"radio"===e&&T(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(M);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),_e={set:function(t,e,n){return!1===e?E.removeAttr(t,n):t.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),function(t,e){var a=ve[e]||E.find.attr;ve[e]=function(t,e,n){var i,r,o=e.toLowerCase();return n||(r=ve[o],ve[o]=i,i=null!=a(t,e,n)?o:null,ve[o]=r),i}});var be=/^(?:input|select|textarea|button)$/i,xe=/^(?:a|area)$/i;function Oe(t){return(t.match(M)||[]).join(" ")}function we(t){return t.getAttribute&&t.getAttribute("class")||""}function Ce(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(M)||[]}E.fn.extend({prop:function(t,e){return z(this,E.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[E.propFix[t]||t]})}}),E.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&E.isXMLDoc(t)||(e=E.propFix[e]||e,r=E.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=E.find.attr(t,"tabindex");return e?parseInt(e,10):be.test(t.nodeName)||xe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(E.propHooks.selected={get:function(t){t=t.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(t){t=t.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){E.propFix[this.toLowerCase()]=this}),E.fn.extend({addClass:function(e){var t,n,i,r,o,a,s=0;if(v(e))return this.each(function(t){E(this).addClass(e.call(this,t,we(this)))});if((t=Ce(e)).length)for(;n=this[s++];)if(a=we(n),i=1===n.nodeType&&" "+Oe(a)+" "){for(o=0;r=t[o++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");a!==(a=Oe(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,r,o,a,s=0;if(v(e))return this.each(function(t){E(this).removeClass(e.call(this,t,we(this)))});if(!arguments.length)return this.attr("class","");if((t=Ce(e)).length)for(;n=this[s++];)if(a=we(n),i=1===n.nodeType&&" "+Oe(a)+" "){for(o=0;r=t[o++];)for(;-1<i.indexOf(" "+r+" ");)i=i.replace(" "+r+" "," ");a!==(a=Oe(i))&&n.setAttribute("class",a)}return this},toggleClass:function(r,e){var o=typeof r,a="string"==o||Array.isArray(r);return"boolean"==typeof e&&a?e?this.addClass(r):this.removeClass(r):v(r)?this.each(function(t){E(this).toggleClass(r.call(this,t,we(this),e),e)}):this.each(function(){var t,e,n,i;if(a)for(e=0,n=E(this),i=Ce(r);t=i[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==r&&"boolean"!=o||((t=we(this))&&K.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",!t&&!1!==r&&K.get(this,"__className__")||""))})},hasClass:function(t){for(var e,n=0,i=" "+t+" ";e=this[n++];)if(1===e.nodeType&&-1<(" "+Oe(we(e))+" ").indexOf(i))return!0;return!1}});var Ee=/\r/g;E.fn.extend({val:function(e){var n,t,i,r=this[0];return arguments.length?(i=v(e),this.each(function(t){1===this.nodeType&&(null==(t=i?e.call(this,t,E(this).val()):e)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=E.map(t,function(t){return null==t?"":t+""})),(n=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value")||(this.value=t))})):r?(n=E.valHooks[r.type]||E.valHooks[r.nodeName.toLowerCase()])&&"get"in n&&void 0!==(t=n.get(r,"value"))?t:"string"==typeof(t=r.value)?t.replace(Ee,""):null==t?"":t:void 0}}),E.extend({valHooks:{option:{get:function(t){var e=E.find.attr(t,"value");return null!=e?e:Oe(E.text(t))}},select:{get:function(t){for(var e,n=t.options,i=t.selectedIndex,r="select-one"===t.type,o=r?null:[],a=r?i+1:n.length,s=i<0?a:r?i:0;s<a;s++)if(((e=n[s]).selected||s===i)&&!e.disabled&&(!e.parentNode.disabled||!T(e.parentNode,"optgroup"))){if(e=E(e).val(),r)return e;o.push(e)}return o},set:function(t,e){for(var n,i,r=t.options,o=E.makeArray(e),a=r.length;a--;)((i=r[a]).selected=-1<E.inArray(E.valHooks.option.get(i),o))&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),E.each(["radio","checkbox"],function(){E.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<E.inArray(E(t).val(),e)}},_.checkOn||(E.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),_.focusin="onfocusin"in w;function Te(t){t.stopPropagation()}var Se=/^(?:focusinfocus|focusoutblur)$/;E.extend(E.event,{trigger:function(t,e,n,i){var r,o,a,s,l,c,u,h=[n||C],p=m.call(t,"type")?t.type:t,d=m.call(t,"namespace")?t.namespace.split("."):[],f=u=o=n=n||C;if(3!==n.nodeType&&8!==n.nodeType&&!Se.test(p+E.event.triggered)&&(-1<p.indexOf(".")&&(p=(d=p.split(".")).shift(),d.sort()),s=p.indexOf(":")<0&&"on"+p,(t=t[E.expando]?t:new E.Event(p,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=d.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:E.makeArray(e,[t]),c=E.event.special[p]||{},i||!c.trigger||!1!==c.trigger.apply(n,e))){if(!i&&!c.noBubble&&!g(n)){for(a=c.delegateType||p,Se.test(a+p)||(f=f.parentNode);f;f=f.parentNode)h.push(f),o=f;o===(n.ownerDocument||C)&&h.push(o.defaultView||o.parentWindow||w)}for(r=0;(f=h[r++])&&!t.isPropagationStopped();)u=f,t.type=1<r?a:c.bindType||p,(l=(K.get(f,"events")||Object.create(null))[t.type]&&K.get(f,"handle"))&&l.apply(f,e),(l=s&&f[s])&&l.apply&&V(f)&&(t.result=l.apply(f,e),!1===t.result&&t.preventDefault());return t.type=p,i||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(h.pop(),e)||!V(n)||s&&v(n[p])&&!g(n)&&((o=n[s])&&(n[s]=null),E.event.triggered=p,t.isPropagationStopped()&&u.addEventListener(p,Te),n[p](),t.isPropagationStopped()&&u.removeEventListener(p,Te),E.event.triggered=void 0,o&&(n[s]=o)),t.result}},simulate:function(t,e,n){t=E.extend(new E.Event,n,{type:t,isSimulated:!0});E.event.trigger(t,null,e)}}),E.fn.extend({trigger:function(t,e){return this.each(function(){E.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return E.event.trigger(t,e,n,!0)}}),_.focusin||E.each({focus:"focusin",blur:"focusout"},function(n,i){function r(t){E.event.simulate(i,t.target,E.event.fix(t))}E.event.special[i]={setup:function(){var t=this.ownerDocument||this.document||this,e=K.access(t,i);e||t.addEventListener(n,r,!0),K.access(t,i,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this.document||this,e=K.access(t,i)-1;e?K.access(t,i,e):(t.removeEventListener(n,r,!0),K.remove(t,i))}}});var je=w.location,De={guid:Date.now()},Ie=/\?/;E.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new w.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||E.error("Invalid XML: "+t),e};var Re=/\[\]$/,Pe=/\r?\n/g,ke=/^(?:submit|button|image|reset|file)$/i,Me=/^(?:input|select|textarea|keygen)/i;E.param=function(t,e){function n(t,e){e=v(e)?e():e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)}var i,r=[];if(null==t)return"";if(Array.isArray(t)||t.jquery&&!E.isPlainObject(t))E.each(t,function(){n(this.name,this.value)});else for(i in t)!function n(i,t,r,o){if(Array.isArray(t))E.each(t,function(t,e){r||Re.test(i)?o(i,e):n(i+"["+("object"==typeof e&&null!=e?t:"")+"]",e,r,o)});else if(r||"object"!==f(t))o(i,t);else for(var e in t)n(i+"["+e+"]",t[e],r,o)}(i,t[i],e,n);return r.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=E.prop(this,"elements");return t?E.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!E(this).is(":disabled")&&Me.test(this.nodeName)&&!ke.test(t)&&(this.checked||!ct.test(t))}).map(function(t,e){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,function(t){return{name:e.name,value:t.replace(Pe,"\r\n")}}):{name:e.name,value:n.replace(Pe,"\r\n")}}).get()}});var Ae=/%20/g,Le=/#.*$/,Fe=/([?&])_=[^&]*/,Ne=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ge=/^(?:GET|HEAD)$/,We=/^\/\//,ze={},Ye={},Ue="*/".concat("*"),Xe=C.createElement("a");function Be(o){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,i=0,r=t.toLowerCase().match(M)||[];if(v(e))for(;n=r[i++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(e)):(o[n]=o[n]||[]).push(e)}}function Ve(e,i,r,o){var a={},s=e===Ye;function l(t){var n;return a[t]=!0,E.each(e[t]||[],function(t,e){e=e(i,r,o);return"string"!=typeof e||s||a[e]?s?!(n=e):void 0:(i.dataTypes.unshift(e),l(e),!1)}),n}return l(i.dataTypes[0])||!a["*"]&&l("*")}function He(t,e){var n,i,r=E.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i=i||{})[n]=e[n]);return i&&E.extend(!0,t,i),t}Xe.href=je.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:je.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(je.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ue,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?He(He(t,E.ajaxSettings),e):He(E.ajaxSettings,t)},ajaxPrefilter:Be(ze),ajaxTransport:Be(Ye),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var l,c,u,n,h,i,p,d,r,o,f=E.ajaxSetup({},e),g=f.context||f,y=f.context&&(g.nodeType||g.jquery)?E(g):E.event,m=E.Deferred(),_=E.Callbacks("once memory"),v=f.statusCode||{},a={},s={},b="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(p){if(!n)for(n={};e=Ne.exec(u);)n[e[1].toLowerCase()+" "]=(n[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=n[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return p?u:null},setRequestHeader:function(t,e){return null==p&&(t=s[t.toLowerCase()]=s[t.toLowerCase()]||t,a[t]=e),this},overrideMimeType:function(t){return null==p&&(f.mimeType=t),this},statusCode:function(t){if(t)if(p)x.always(t[x.status]);else for(var e in t)v[e]=[v[e],t[e]];return this},abort:function(t){t=t||b;return l&&l.abort(t),O(0,t),this}};if(m.promise(x),f.url=((t||f.url||je.href)+"").replace(We,je.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(M)||[""],null==f.crossDomain){i=C.createElement("a");try{i.href=f.url,i.href=i.href,f.crossDomain=Xe.protocol+"//"+Xe.host!=i.protocol+"//"+i.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=E.param(f.data,f.traditional)),Ve(ze,f,e,x),p)return x;for(r in(d=E.event&&f.global)&&0==E.active++&&E.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ge.test(f.type),c=f.url.replace(Le,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ae,"+")):(o=f.url.slice(c.length),f.data&&(f.processData||"string"==typeof f.data)&&(c+=(Ie.test(c)?"&":"?")+f.data,delete f.data),!1===f.cache&&(c=c.replace(Fe,"$1"),o=(Ie.test(c)?"&":"?")+"_="+De.guid+++o),f.url=c+o),f.ifModified&&(E.lastModified[c]&&x.setRequestHeader("If-Modified-Since",E.lastModified[c]),E.etag[c]&&x.setRequestHeader("If-None-Match",E.etag[c])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&x.setRequestHeader("Content-Type",f.contentType),x.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ue+"; q=0.01":""):f.accepts["*"]),f.headers)x.setRequestHeader(r,f.headers[r]);if(f.beforeSend&&(!1===f.beforeSend.call(g,x,f)||p))return x.abort();if(b="abort",_.add(f.complete),x.done(f.success),x.fail(f.error),l=Ve(Ye,f,e,x)){if(x.readyState=1,d&&y.trigger("ajaxSend",[x,f]),p)return x;f.async&&0<f.timeout&&(h=w.setTimeout(function(){x.abort("timeout")},f.timeout));try{p=!1,l.send(a,O)}catch(t){if(p)throw t;O(-1,t)}}else O(-1,"No Transport");function O(t,e,n,i){var r,o,a,s=e;p||(p=!0,h&&w.clearTimeout(h),l=void 0,u=i||"",x.readyState=0<t?4:0,i=200<=t&&t<300||304===t,n&&(a=function(t,e,n){for(var i,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}a=a||r}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(f,x,n)),!i&&-1<E.inArray("script",f.dataTypes)&&(f.converters["text script"]=function(){}),a=function(t,e,n,i){var r,o,a,s,l,c={},u=t.dataTypes.slice();if(u[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(r in c)if((s=r.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(f,a,x,i),i?(f.ifModified&&((n=x.getResponseHeader("Last-Modified"))&&(E.lastModified[c]=n),(n=x.getResponseHeader("etag"))&&(E.etag[c]=n)),204===t||"HEAD"===f.type?s="nocontent":304===t?s="notmodified":(s=a.state,r=a.data,i=!(o=a.error))):(o=s,!t&&s||(s="error",t<0&&(t=0))),x.status=t,x.statusText=(e||s)+"",i?m.resolveWith(g,[r,s,x]):m.rejectWith(g,[x,s,o]),x.statusCode(v),v=void 0,d&&y.trigger(i?"ajaxSuccess":"ajaxError",[x,f,i?r:o]),_.fireWith(g,[x,s]),d&&(y.trigger("ajaxComplete",[x,f]),--E.active||E.event.trigger("ajaxStop")))}return x},getJSON:function(t,e,n){return E.get(t,e,n,"json")},getScript:function(t,e){return E.get(t,void 0,e,"script")}}),E.each(["get","post"],function(t,r){E[r]=function(t,e,n,i){return v(e)&&(i=i||n,n=e,e=void 0),E.ajax(E.extend({url:t,type:r,dataType:i,data:e,success:n},E.isPlainObject(t)&&t))}}),E.ajaxPrefilter(function(t){for(var e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),E._evalUrl=function(t,e,n){return E.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){E.globalEval(t,e,n)}})},E.fn.extend({wrapAll:function(t){return this[0]&&(v(t)&&(t=t.call(this[0])),t=E(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(t){E(this).wrapInner(n.call(this,t))}):this.each(function(){var t=E(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=v(e);return this.each(function(t){E(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(t){return this.parent(t).not("body").each(function(){E(this).replaceWith(this.childNodes)}),this}}),E.expr.pseudos.hidden=function(t){return!E.expr.pseudos.visible(t)},E.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new w.XMLHttpRequest}catch(t){}};var Ke={0:200,1223:204},qe=E.ajaxSettings.xhr();_.cors=!!qe&&"withCredentials"in qe,_.ajax=qe=!!qe,E.ajaxTransport(function(r){var o,a;if(_.cors||qe&&!r.crossDomain)return{send:function(t,e){var n,i=r.xhr();if(i.open(r.type,r.url,r.async,r.username,r.password),r.xhrFields)for(n in r.xhrFields)i[n]=r.xhrFields[n];for(n in r.mimeType&&i.overrideMimeType&&i.overrideMimeType(r.mimeType),r.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)i.setRequestHeader(n,t[n]);o=function(t){return function(){o&&(o=a=i.onload=i.onerror=i.onabort=i.ontimeout=i.onreadystatechange=null,"abort"===t?i.abort():"error"===t?"number"!=typeof i.status?e(0,"error"):e(i.status,i.statusText):e(Ke[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=o(),a=i.onerror=i.ontimeout=o("error"),void 0!==i.onabort?i.onabort=a:i.onreadystatechange=function(){4===i.readyState&&w.setTimeout(function(){o&&a()})},o=o("abort");try{i.send(r.hasContent&&r.data||null)}catch(t){if(o)throw t}},abort:function(){o&&o()}}}),E.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return E.globalEval(t),t}}}),E.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),E.ajaxTransport("script",function(n){var i,r;if(n.crossDomain||n.scriptAttrs)return{send:function(t,e){i=E("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(t){i.remove(),r=null,t&&e("error"===t.type?404:200,t.type)}),C.head.appendChild(i[0])},abort:function(){r&&r()}}});var Ze=[],Je=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ze.pop()||E.expando+"_"+De.guid++;return this[t]=!0,t}}),E.ajaxPrefilter("json jsonp",function(t,e,n){var i,r,o,a=!1!==t.jsonp&&(Je.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Je.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Je,"$1"+i):!1!==t.jsonp&&(t.url+=(Ie.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||E.error(i+" was not called"),o[0]},t.dataTypes[0]="json",r=w[i],w[i]=function(){o=arguments},n.always(function(){void 0===r?E(w).removeProp(i):w[i]=r,t[i]&&(t.jsonpCallback=e.jsonpCallback,Ze.push(i)),o&&v(r)&&r(o[0]),o=r=void 0}),"script"}),_.createHTMLDocument=((pt=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===pt.childNodes.length),E.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(_.createHTMLDocument?((i=(e=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,e.head.appendChild(i)):e=C),i=!n&&[],(n=S.exec(t))?[e.createElement(n[1])]:(n=mt([t],e,i),i&&i.length&&E(i).remove(),E.merge([],n.childNodes)));var i},E.fn.load=function(t,e,n){var i,r,o,a=this,s=t.indexOf(" ");return-1<s&&(i=Oe(t.slice(s)),t=t.slice(0,s)),v(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),0<a.length&&E.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(i?E("<div>").append(E.parseHTML(t)).find(i):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},E.expr.pseudos.animated=function(e){return E.grep(E.timers,function(t){return e===t.elem}).length},E.offset={setOffset:function(t,e,n){var i,r,o,a,s=E.css(t,"position"),l=E(t),c={};"static"===s&&(t.style.position="relative"),o=l.offset(),i=E.css(t,"top"),a=E.css(t,"left"),a=("absolute"===s||"fixed"===s)&&-1<(i+a).indexOf("auto")?(r=(s=l.position()).top,s.left):(r=parseFloat(i)||0,parseFloat(a)||0),null!=(e=v(e)?e.call(t,n,E.extend({},o)):e).top&&(c.top=e.top-o.top+r),null!=e.left&&(c.left=e.left-o.left+a),"using"in e?e.using.call(t,c):("number"==typeof c.top&&(c.top+="px"),"number"==typeof c.left&&(c.left+="px"),l.css(c))}},E.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){E.offset.setOffset(this,e,t)});var t,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),n=n.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===E.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===E.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=E(t).offset()).top+=E.css(t,"borderTopWidth",!0),r.left+=E.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-E.css(i,"marginTop",!0),left:e.left-r.left-E.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===E.css(t,"position");)t=t.offsetParent;return t||nt})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,r){var o="pageYOffset"===r;E.fn[e]=function(t){return z(this,function(t,e,n){var i;return g(t)?i=t:9===t.nodeType&&(i=t.defaultView),void 0===n?i?i[r]:t[e]:void(i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):t[e]=n)},e,t,arguments.length)}}),E.each(["top","left"],function(t,n){E.cssHooks[n]=Kt(_.pixelPosition,function(t,e){if(e)return e=Ht(t,n),Xt.test(e)?E(t).position()[n]+"px":e})}),E.each({Height:"height",Width:"width"},function(a,s){E.each({padding:"inner"+a,content:s,"":"outer"+a},function(i,o){E.fn[o]=function(t,e){var n=arguments.length&&(i||"boolean"!=typeof t),r=i||(!0===t||!0===e?"margin":"border");return z(this,function(t,e,n){var i;return g(t)?0===o.indexOf("outer")?t["inner"+a]:t.document.documentElement["client"+a]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+a],i["scroll"+a],t.body["offset"+a],i["offset"+a],i["client"+a])):void 0===n?E.css(t,e,r):E.style(t,e,n,r)},s,n?t:void 0,n)}})}),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){E.fn[e]=function(t){return this.on(e,t)}}),E.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,n){E.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}});var $e=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;E.proxy=function(t,e){var n,i;if("string"==typeof e&&(i=t[e],e=t,t=i),v(t))return n=s.call(arguments,2),(i=function(){return t.apply(e||this,n.concat(s.call(arguments)))}).guid=t.guid=t.guid||E.guid++,i},E.holdReady=function(t){t?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=T,E.isFunction=v,E.isWindow=g,E.c
1amelCase=B,E.type=f,E.now=Date.now,E.isNumeric=function(t){var e=E.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},E.trim=function(t){return null==t?"":(t+"").replace($e,"")},void 0===(rn=function(){return E}.apply(nn,[]))||(en.exports=rn);var Qe=w.jQuery,tn=w.$;return E.noConflict=function(t){return w.$===E&&(w.$=tn),t&&w.jQuery===E&&(w.jQuery=Qe),E},void 0===t&&(w.jQuery=w.$=E),E})},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=42,r=256},function(t,e,n){"use strict";var o=n(26),i=n(21),r=n(31),a=n(6),s=n(38),l=n(79),c=n.n(l),u=n(0),h=n(1),p=n(11),d=(_.prototype.insert=function(t,e){t={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(t),this.items_[Object(h.c)(e)]=t},_.prototype.load=function(t,e){for(var n=new Array(e.length),i=0,r=e.length;i<r;i++){var o=t[i],a=e[i],o={minX:o[0],minY:o[1],maxX:o[2],maxY:o[3],value:a};n[i]=o,this.items_[Object(h.c)(a)]=o}this.rbush_.load(n)},_.prototype.remove=function(t){var e=Object(h.c)(t),t=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(t)},_.prototype.update=function(t,e){var n=this.items_[Object(h.c)(e)],n=[n.minX,n.minY,n.maxX,n.maxY];Object(u.p)(n,t)||(this.remove(e),this.insert(t,e))},_.prototype.getAll=function(){return this.rbush_.all().map(function(t){return t.value})},_.prototype.getInExtent=function(t){t={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this.rbush_.search(t).map(function(t){return t.value})},_.prototype.forEach=function(t){return this.forEach_(this.getAll(),t)},_.prototype.forEachInExtent=function(t,e){return this.forEach_(this.getInExtent(t),e)},_.prototype.forEach_=function(t,e){for(var n,i=0,r=t.length;i<r;i++)if(n=e(t[i]))return n;return n},_.prototype.isEmpty=function(){return Object(p.d)(this.items_)},_.prototype.clear=function(){this.rbush_.clear(),this.items_={}},_.prototype.getExtent=function(t){var e=this.rbush_.toJSON();return Object(u.k)(e.minX,e.minY,e.maxX,e.maxY,t)},_.prototype.concat=function(t){for(var e in this.rbush_.load(t.rbush_.all()),t.items_)this.items_[e]=t.items_[e]},_),l=n(81),f=n(36),g="addfeature",y="removefeature",m=n(15);function _(t){this.rbush_=new c.a(t),this.items_={}}function v(t,e){return[[-1/0,-1/0,1/0,1/0]]}var b=n(9),x=n(12),O=n(5),w="arraybuffer",C="json",E="text",T="xml",S=!1;function j(p,d){return function(t,e,n,i,r){var o,a,s,l,c,u,h=this;o=p,a=d,s=t,e=e,l=n,c=r||m.c,(u=new XMLHttpRequest).open("GET","function"==typeof o?o(s,e,l):o,!0),a.getType()==w&&(u.responseType="arraybuffer"),u.withCredentials=S,u.onload=function(t){var e,n;!u.status||200<=u.status&&u.status<300?(e=void 0,(n=a.getType())==C||n==E?e=u.responseText:n==T?(e=u.responseXML)||(e=(new DOMParser).parseFromString(u.responseText,"application/xml")):n==w&&(e=u.response),e?(n=a.readFeatures(e,{extent:s,featureProjection:l}),a.readProjection(e),void 0!==i&&i(n),h.addFeatures(n)):c()):c()},u.onerror=c,u.send()}}var D,I,R,n=(D=function(t,e){return(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}D(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),P=(R=r.a,n(M,R),M),n=(I=l.a,n(k,I),k.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},k.prototype.addFeatureInternal=function(t){var e,n=Object(h.c)(t);this.addToIndex_(n,t)?(this.setupChangeEvents_(n,t),(e=t.getGeometry())?(e=e.getExtent(),this.featuresRtree_&&this.featuresRtree_.insert(e,t)):this.nullGeometryFeatures_[n]=t,this.dispatchEvent(new P(g,t))):this.featuresCollection_&&this.featuresCollection_.remove(t)},k.prototype.setupChangeEvents_=function(t,e){this.featureChangeKeys_[t]=[Object(O.a)(e,a.a.CHANGE,this.handleFeatureChange_,this),Object(O.a)(e,s.a.PROPERTYCHANGE,this.handleFeatureChange_,this)]},k.prototype.addToIndex_=function(t,e){var n=!0,i=e.getId();return void 0!==i&&(i.toString()in this.idIndex_?n=!1:this.idIndex_[i.toString()]=e),n&&(Object(b.a)(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),n},k.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},k.prototype.addFeaturesInternal=function(t){for(var e=[],n=[],i=[],r=0,o=t.length;r<o;r++){var a=t[r],s=Object(h.c)(a);this.addToIndex_(s,a)&&n.push(a)}for(var r=0,l=n.length;r<l;r++){a=n[r],s=Object(h.c)(a),this.setupChangeEvents_(s,a);var c=a.getGeometry();c?(c=c.getExtent(),e.push(c),i.push(a)):this.nullGeometryFeatures_[s]=a}this.featuresRtree_&&this.featuresRtree_.load(e,i),r=0;for(var u=n.length;r<u;r++)this.dispatchEvent(new P(g,n[r]))},k.prototype.bindFeaturesCollection_=function(e){var n=!1;this.addEventListener(g,function(t){n||(n=!0,e.push(t.feature),n=!1)}),this.addEventListener(y,function(t){n||(n=!0,e.remove(t.feature),n=!1)}),e.addEventListener(i.a.ADD,function(t){n||(n=!0,this.addFeature(t.element),n=!1)}.bind(this)),e.addEventListener(i.a.REMOVE,function(t){n||(n=!0,this.removeFeature
1(t.element),n=!1)}.bind(this)),this.featuresCollection_=e},k.prototype.clear=function(t){if(t){for(var e in this.featureChangeKeys_)this.featureChangeKeys_[e].forEach(O.c);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_)for(var n in this.featuresRtree_.forEach(this.removeFeatureInternal.bind(this)),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[n]);this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};t=new P("clear");this.dispatchEvent(t),this.changed()},k.prototype.forEachFeature=function(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},k.prototype.forEachFeatureAtCoordinateDirect=function(e,n){var t=[e[0],e[1],e[0],e[1]];return this.forEachFeatureInExtent(t,function(t){return t.getGeometry().intersectsCoordinate(e)?n(t):void 0})},k.prototype.forEachFeatureInExtent=function(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},k.prototype.forEachFeatureIntersectingExtent=function(e,n){return this.forEachFeatureInExtent(e,function(t){if(t.getGeometry().intersectsExtent(e)){t=n(t);if(t)return t}})},k.prototype.getFeaturesCollection=function(){return this.featuresCollection_},k.prototype.getFeatures=function(){var t;return this.featuresCollection_?t=this.featuresCollection_.getArray():this.featuresRtree_&&(t=this.featuresRtree_.getAll(),Object(p.d)(this.nullGeometryFeatures_)||Object(x.c)(t,Object(p.c)(this.nullGeometryFeatures_))),t},k.prototype.getFeaturesAtCoordinate=function(t){var e=[];return this.forEachFeatureAtCoordinateDirect(t,function(t){e.push(t)}),e},k.prototype.getFeaturesInExtent=function(t){return this.featuresRtree_?this.featuresRtree_.getInExtent(t):this.featuresCollection_?this.featuresCollection_.getArray():[]},k.prototype.getClosestFeatureToCoordinate=function(t,e){var i=t[0],r=t[1],o=null,a=[NaN,NaN],s=1/0,l=[-1/0,-1/0,1/0,1/0],c=e||m.b;return this.featuresRtree_.forEachInExtent(l,function(t){var e,n;c(t)&&(e=t.getGeometry(),n=s,(s=e.closestPointXY(i,r,a,s))<n&&(o=t,t=Math.sqrt(s),l[0]=i-t,l[1]=r-t,l[2]=i+t,l[3]=r+t))}),o},k.prototype.getExtent=function(t){return this.featuresRtree_.getExtent(t)},k.prototype.getFeatureById=function(t){t=this.idIndex_[t.toString()];return void 0!==t?t:null},k.prototype.getFeatureByUid=function(t){t=this.uidIndex_[t];return void 0!==t?t:null},k.prototype.getFormat=function(){return this.format_},k.prototype.getOverlaps=function(){return this.overlaps_},k.prototype.getUrl=function(){return this.url_},k.prototype.handleFeatureChange_=function(t){var e=t.target,n=Object(h.c)(e),t=e.getGeometry();t?(i=t.getExtent(),n in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[n],this.featuresRtree_&&this.featuresRtree_.insert(i,e)):this.featuresRtree_&&this.featuresRtree_.update(i,e)):n in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[n]=e);var i=e.getId();void 0!==i?(i=i.toString(),this.idIndex_[i]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[i]=e)):(this.removeFromIdIndex_(e),this.uidIndex_[n]=e),this.changed(),this.dispatchEvent(new P("changefeature",e))},k.prototype.hasFeature=function(t){var e=t.getId();return void 0!==e?e in this.idIndex_:Object(h.c)(t)in this.uidIndex_},k.prototype.isEmpty=function(){return this.featuresRtree_.isEmpty()&&Object(p.d)(this.nullGeometryFeatures_)},k.prototype.loadFeatures=function(t,n,i){var r=this.loadedExtentsRtree_,o=this.strategy_(t,n);this.loading=!1;for(var a=this,s=0,e=o.length;s<e;++s)!function(){var e=o[s];r.forEachInExtent(e,function(t){return Object(u.g)(t.extent,e)})||(a.dispatchEvent(new P("featuresloadstart")),a.loader_.call(a,e,n,i,function(t){this.dispatchEvent(new P("featuresloadend",void 0,t))}.bind(a),function(){this.dispatchEvent(new P("featuresloaderror"))}.bind(a)),r.insert(e,{extent:e.slice()}),a.loading=a.loader_!==m.c)}()},k.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),I.prototype.refresh.call(this)},k.prototype.removeLoadedExtent=function(e){var n,t=this.loadedExtentsRtree_;t.forEachInExtent(e,function(t){if(Object(u.p)(t.extent,e))return n=t,!0}),n&&t.remove(n)},k.prototype.removeFeature=function(t){var e=Object(h.c)(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t),this.changed()},k.prototype.removeFeatureInternal=function(t){var e=Object(h.c)(t);this.featureChangeKeys_[e].forEach(O.c),delete this.featureChangeKeys_[e];var n=t.getId();void 0!==n&&delete this.idIndex_[n.toString()],delete this.uidIndex_[e],this.dispatchEvent(new P(y,t))},k.prototype.removeFromIdIndex_=function(t){var e,n=!1;for(e in this.idIndex_)if(this.idIndex_[e]===t){delete this.idIndex_[e],n=!0;break}return n},k.prototype.setLoader=function(t){this.loader_=t},k.prototype.setUrl=function(t){Object(b.a)(this.format_,7),this.setLoader(j(t,this.format_))},k);function k(t){var e=this,n=t||{};(e=I.call(this,{attributions:n.attributions,projection:void 0,state:f.a.READY,wrapX:void 0===n.wrapX||n.wrapX})||this).loader_=m.c,e.format_=n.format,e.overlaps_=void 0===n.overlaps||n.overlaps,e.url_=n.url,void 0!==n.loader?e.loader_=n.loader:void 0!==e.url_&&(Object(b.a)(e.format_,7),e.loader_=j(e.url_,e.format_)),e.strategy_=void 0!==n.strategy?n.strategy:v;
1var i,r,t=void 0===n.useSpatialIndex||n.useSpatialIndex;return e.featuresRtree_=t?new d:null,e.loadedExtentsRtree_=new d,e.nullGeometryFeatures_={},e.idIndex_={},e.uidIndex_={},e.featureChangeKeys_={},e.featuresCollection_=null,Array.isArray(n.features)?r=n.features:n.features&&(r=(i=n.features).getArray()),t||void 0!==i||(i=new o.a(r)),void 0!==r&&e.addFeaturesInternal(r),void 0!==i&&e.bindFeaturesCollection_(i),e}function M(t,e,n){t=R.call(this,t)||this;return t.feature=e,t.features=n,t}e.a=n},function(t,e,n){"use strict";e.a={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var o=(i.prototype.contains=function(t){return this.containsXY(t[1],t[2])},i.prototype.containsTileRange=function(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY},i.prototype.containsXY=function(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY},i.prototype.equals=function(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY},i.prototype.extend=function(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)},i.prototype.getHeight=function(){return this.maxY-this.minY+1},i.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},i.prototype.getWidth=function(){return this.maxX-this.minX+1},i.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},i);function i(t,e,n,i){this.minX=t,this.maxX=e,this.minY=n,this.maxY=i}function r(t,e,n,i,r){return void 0!==r?(r.minX=t,r.maxX=e,r.minY=n,r.maxY=i,r):new o(t,e,n,i)}e.b=o},function(t,e,n){"use strict";window.ol&&!ol.ext&&(ol.ext={});function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t}window.ol&&(ol.inherits||(ol.inherits=i)),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),window.Element&&!Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),e.a=i},function(t,e,n){"use strict";var i=(r.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},r.prototype.disposeInternal=function(){},r);function r(){this.disposed=!1}e.a=i},function(t,e,n){"use strict";var i,r,o,a=n(26),s=n(21),l=n(31),c=n(2),u=n(32),h=n(15),d=n(11),p=n(46),f=n(12),g=n(1),y=n(18),n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),m=(o=l.a,n(b,o),b),_={},n=(r=u.a,n(v,r),v.prototype.addFeatureLayerAssociation_=function(t,e){this.featureLayerAssociation_[Object(g.c)(t)]=e},v.prototype.getFeatures=function(){return this.features_},v.prototype.getHitTolerance=function(){return this.hitTolerance_},v.prototype.getLayer=function(t){return this.featureLayerAssociation_[Object(g.c)(t)]},v.prototype.setHitTolerance=function(t){this.hitTolerance_=t},v.prototype.setMap=function(t){this.getMap()&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),r.prototype.setMap.call(this,t),t?(this.features_.addEventListener(s.a.ADD,this.boundAddFeature_),this.features_.addEventListener(s.a.REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(s.a.ADD,this.boundAddFeature_),this.features_.removeEventListener(s.a.REMOVE,this.boundRemoveFeature_))},v.prototype.addFeature_=function(t){t=t.element;this.style_&&this.applySelectedStyle_(t)},v.prototype.removeFeature_=function(t){t=t.element;this.style_&&this.restorePreviousStyle_(t)},v.prototype.getStyle=function(){return this.style_},v.prototype.applySelectedStyle_=function(t){var e=Object(g.c)(t);e in _||(_[e]=t.getStyle()),t.setStyle(this.style_)},v.prototype.restorePreviousStyle_=function(t){for(var e=this.getMap().getInteractions().getArray(),n=e.length-1;0<=n;--n){var i=e[n];if(i!==this&&i instanceof v&&i.getStyle()&&-1!==i.getFeatures().getArray().lastIndexOf(t))return void t.setStyle(i.getStyle())}var r=Object(g.c)(t);t.setStyle(_[r]),delete _[r]},v.prototype.removeFeatureLayerAssociation_=function(t){delete this.featureLayerAssociation_[Object(g.c)(t)]},v.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var n=this.addCondition_(t),i=this.removeCondition_(t),r=this.toggleCondition_(t),e=!n&&!i&&!r,o=t.map,a=this.getFeatures(),s=[],l=[];
1if(e){Object(d.b)(this.featureLayerAssociation_),o.forEachFeatureAtPixel(t.pixel,function(t,e){if(this.filter_(t,e))return l.push(t),this.addFeatureLayerAssociation_(t,e),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var c=a.getLength()-1;0<=c;--c){var u=a.item(c),h=l.indexOf(u);-1<h?l.splice(h,1):(a.remove(u),s.push(u))}0!==l.length&&a.extend(l)}else{o.forEachFeatureAtPixel(t.pixel,function(t,e){if(this.filter_(t,e))return!n&&!r||Object(f.d)(a.getArray(),t)?(i||r)&&Object(f.d)(a.getArray(),t)&&(s.push(t),this.removeFeatureLayerAssociation_(t)):(l.push(t),this.addFeatureLayerAssociation_(t,e)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var p=s.length-1;0<=p;--p)a.remove(s[p]);a.extend(l)}return(0<l.length||0<s.length)&&this.dispatchEvent(new m("select",l,s,t)),!0},v);function v(t){var e,n,i=r.call(this)||this,t=t||{};return i.boundAddFeature_=i.addFeature_.bind(i),i.boundRemoveFeature_=i.removeFeature_.bind(i),i.condition_=t.condition||y.k,i.addCondition_=t.addCondition||y.g,i.removeCondition_=t.removeCondition||y.g,i.toggleCondition_=t.toggleCondition||y.j,i.multi_=!!t.multi&&t.multi,i.filter_=t.filter||h.b,i.hitTolerance_=t.hitTolerance||0,i.style_=void 0!==t.style?t.style:(e=Object(p.b)(),Object(f.c)(e[c.a.POLYGON],e[c.a.LINE_STRING]),Object(f.c)(e[c.a.GEOMETRY_COLLECTION],e[c.a.LINE_STRING]),function(t){return t.getGeometry()?e[t.getGeometry().getType()]:null}),i.features_=t.features||new a.a,t=t.layers?"function"==typeof t.layers?t.layers:(n=t.layers,function(t){return Object(f.d)(n,t)}):h.b,i.layerFilter_=t,i.featureLayerAssociation_={},i}function b(t,e,n,i){t=o.call(this,t)||this;return t.selected=e,t.deselected=n,t.mapBrowserEvent=i,t}e.a=n},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n(44);function r(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}function o(t,e,n){return e+":"+t+":"+(n?Object(i.b)(n):"null")}var a=new(r.prototype.clear=function(){this.cache_={},this.cacheSize_=0},r.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},r.prototype.expire=function(){if(this.canExpireCache()){var t,e=0;for(t in this.cache_){var n=this.cache_[t];0!=(3&e++)||n.hasListener()||(delete this.cache_[t],--this.cacheSize_)}}},r.prototype.get=function(t,e,n){n=o(t,e,n);return n in this.cache_?this.cache_[n]:null},r.prototype.set=function(t,e,n,i){n=o(t,e,n);this.cache_[n]=i,++this.cacheSize_},r.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},r)},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n(2);var a=n(4);function i(t,e,n){var i=n||6371008.8,r=Object(a.j)(t[1]),o=Object(a.j)(e[1]),n=(o-r)/2,t=Object(a.j)(e[0]-t[0])/2,o=Math.sin(n)*Math.sin(n)+Math.sin(t)*Math.sin(t)*Math.cos(r)*Math.cos(o);return 2*i*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))}function r(t,e,n,i){var r=i||6371008.8,i=Object(a.j)(t[1]),t=Object(a.j)(t[0]),e=e/r,r=Math.asin(Math.sin(i)*Math.cos(e)+Math.cos(i)*Math.sin(e)*Math.cos(n)),i=t+Math.atan2(Math.sin(n)*Math.sin(e)*Math.cos(i),Math.cos(e)-Math.sin(i)*Math.sin(r));return[Object(a.i)(i),Object(a.i)(r)]}},function(t,e,n){"use strict";var i,r,o,a,s,l,c,u,h,p,d=n(41),f=n(79),g=n.n(f),y=n(11),m=n(46),_=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),v="renderOrder",b=(p=d.a,_(N,p),N.prototype.getDeclutter=function(){return this.declutter_},N.prototype.getFeatures=function(t){return p.prototype.getFeatures.call(this,t)},N.prototype.getRenderBuffer=function(){return this.renderBuffer_},N.prototype.getRenderOrder=function(){return this.get(v)},N.prototype.getStyle=function(){return this.style_},N.prototype.getStyleFunction=function(){return this.styleFunction_},N.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},N.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},N.prototype.renderDeclutter=function(t){t.declutterTree||(t.declutterTree=new g.a(9)),this.getRenderer().renderDeclutter(t)},N.prototype.setRenderOrder=function(t){this.set(v,t)},N.prototype.setStyle=function(t){this.style_=void 0!==t?t:m.a,this.styleFunction_=null===t?void 0:Object(m.d)(this.style_),this.changed()},N),x={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},O=[x.FILL],w=[x.STROKE],C=[x.BEGIN_PATH],E=[x.CLOSE_PATH],St=x,P=n(2),T=n(28),S=n(74),j=n(35),jt=n(0),Dt=n(3),It=n(12),D=n(42),f=(h=function(t,e){return(
1h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=(u=S.a,f(F,u),F.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map(function(t){return t*e})},F.prototype.appendFlatPointCoordinates=function(t,e){for(var n=this.getBufferedMaxExtent(),i=this.tmpCoordinate_,r=this.coordinates,o=r.length,a=0,s=t.length;a<s;a+=e)i[0]=t[a],i[1]=t[a+1],Object(jt.f)(n,i)&&(r[o++]=i[0],r[o++]=i[1]);return o},F.prototype.appendFlatLineCoordinates=function(t,e,n,i,r,o){var a=this.coordinates,s=a.length,l=this.getBufferedMaxExtent();o&&(e+=i);for(var c,u,h=t[e],p=t[e+1],d=this.tmpCoordinate_,f=!0,g=e+i;g<n;g+=i)d[0]=t[g],d[1]=t[g+1],(u=Object(jt.i)(l,d))!==c?(f&&(a[s++]=h,a[s++]=p,f=!1),a[s++]=d[0],a[s++]=d[1]):f=u!==T.a.INTERSECTING||(a[s++]=d[0],a[s++]=d[1],!1),h=d[0],p=d[1],c=u;return(r&&f||g===e+i)&&(a[s++]=h,a[s++]=p),s},F.prototype.drawCustomCoordinates_=function(t,e,n,i,r){for(var o=0,a=n.length;o<a;++o){var s=n[o],l=this.appendFlatLineCoordinates(t,e,s,i,!1,!1);r.push(l),e=s}return e},F.prototype.drawCustom=function(t,e,n){this.beginGeometry(t,e);var i,r,o=t.getType(),a=t.getStride(),s=this.coordinates.length;if(o==P.a.MULTI_POLYGON){for(var l=t.getOrientedFlatCoordinates(),c=[],u=t.getEndss(),h=f=0,p=u.length;h<p;++h){var d=[],f=this.drawCustomCoordinates_(l,f,u[h],a,d);c.push(d)}this.instructions.push([St.CUSTOM,s,c,t,n,D.c])}else o==P.a.POLYGON||o==P.a.MULTI_LINE_STRING?(r=[],l=o==P.a.POLYGON?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),f=this.drawCustomCoordinates_(l,0,t.getEnds(),a,r),this.instructions.push([St.CUSTOM,s,r,t,n,D.b])):o==P.a.LINE_STRING||o==P.a.CIRCLE?(l=t.getFlatCoordinates(),i=this.appendFlatLineCoordinates(l,0,l.length,a,!1,!1),this.instructions.push([St.CUSTOM,s,i,t,n,D.a])):o==P.a.MULTI_POINT?(l=t.getFlatCoordinates(),(i=this.appendFlatPointCoordinates(l,a))>s&&this.instructions.push([St.CUSTOM,s,i,t,n,D.a])):o==P.a.POINT&&(l=t.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),i=this.coordinates.length,this.instructions.push([St.CUSTOM,s,i,t,n]));this.endGeometry(e)},F.prototype.beginGeometry=function(t,e){this.beginGeometryInstruction1_=[St.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[St.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},F.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},F.prototype.reverseHitDetectionInstructions=function(){var t=this.hitDetectionInstructions;t.reverse();for(var e,n,i=t.length,r=-1,o=0;o<i;++o)(n=(e=t[o])[0])==St.END_GEOMETRY?r=o:n==St.BEGIN_GEOMETRY&&(e[2]=o,Object(It.h)(this.hitDetectionInstructions,r,o),r=-1)},F.prototype.setFillStrokeStyle=function(t,e){var n,i=this.state;t?(n=t.getColor(),i.fillStyle=Object(j.a)(n||Dt.c)):i.fillStyle=void 0,e?(n=e.getColor(),i.strokeStyle=Object(j.a)(n||Dt.l),n=e.getLineCap(),i.lineCap=void 0!==n?n:Dt.e,n=e.getLineDash(),i.lineDash=n?n.slice():Dt.f,n=e.getLineDashOffset(),i.lineDashOffset=n||Dt.g,n=e.getLineJoin(),i.lineJoin=void 0!==n?n:Dt.h,n=e.getWidth(),i.lineWidth=void 0!==n?n:Dt.i,e=e.getMiterLimit(),i.miterLimit=void 0!==e?e:Dt.j,i.lineWidth>this.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)):(i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0)},F.prototype.createFill=function(t){var e=t.fillStyle,t=[St.SET_FILL_STYLE,e];return"string"!=typeof e&&t.push(!0),t},F.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},F.prototype.createStroke=function(t){return[St.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},F.prototype.updateFillStyle=function(t,e){var n=t.fillStyle;"string"==typeof n&&t.currentFillStyle==n||(void 0!==n&&this.instructions.push(e.call(this,t)),t.currentFillStyle=n)},F.prototype.updateStrokeStyle=function(t,e){var n=t.strokeStyle,i=t.lineCap,r=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,s=t.lineWidth,l=t.miterLimit;t.currentStrokeStyle==n&&t.currentLineCap==i&&(r==t.currentLineDash||Object(It.b)(t.currentLineDash,r))&&t.currentLineDashOffset==o&&t.currentLineJoin==a&&t.currentLineWidth==s&&t.currentMiterLimit==l||(void 0!==n&&e.call(this,t),t.currentStrokeStyle=n,t.currentLineCap=i,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=s,t.currentMiterLimit=l)},F.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;t=[St.END_GEOMETRY,t];this.instructions.push(t),this.hitDetectionInstructions.push(t)},F.prototype.getBufferedMaxExtent=function(){var t;return!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(jt.d)(this.maxExtent),0<this.maxLineWidth)&&(t=this.resolution*(this.maxLineWidth+1)/2,Object(jt.c)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)),this.bufferedMaxExtent_}
1,F),_=((c=function(t,e){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(L,l=d),L.prototype.drawPoint=function(t,e){var n,i;this.image_&&(this.beginGeometry(t,e),n=t.getFlatCoordinates(),i=t.getStride(),t=this.coordinates.length,i=this.appendFlatPointCoordinates(n,i),this.instructions.push([St.DRAW_IMAGE,t,i,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([St.DRAW_IMAGE,t,i,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(e))},L.prototype.drawMultiPoint=function(t,e){var n,i;this.image_&&(this.beginGeometry(t,e),n=t.getFlatCoordinates(),i=t.getStride(),t=this.coordinates.length,i=this.appendFlatPointCoordinates(n,i),this.instructions.push([St.DRAW_IMAGE,t,i,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([St.DRAW_IMAGE,t,i,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(e))},L.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,l.prototype.finish.call(this)},L.prototype.setImageStyle=function(t,e){var n=t.getAnchor(),i=t.getSize(),r=t.getHitDetectionImage(),o=t.getImage(this.pixelRatio),a=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.hitDetectionImage_=r,this.image_=o,this.height_=i[1],this.opacity_=t.getOpacity(),this.originX_=a[0],this.originY_=a[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=i[0],this.declutterImageWithText_=e},L),x=((s=function(t,e){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(A,a=d),A.prototype.drawFlatCoordinates_=function(t,e,n,i){var r=this.coordinates.length,i=this.appendFlatLineCoordinates(t,e,n,i,!1,!1),i=[St.MOVE_TO_LINE_TO,r,i];return this.instructions.push(i),this.hitDetectionInstructions.push(i),n},A.prototype.drawLineString=function(t,e){var n=this.state,i=n.strokeStyle,r=n.lineWidth;void 0!==i&&void 0!==r&&(this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([St.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],C),n=t.getFlatCoordinates(),t=t.getStride(),this.drawFlatCoordinates_(n,0,n.length,t),this.hitDetectionInstructions.push(w),this.endGeometry(e))},A.prototype.drawMultiLineString=function(t,e){var n=this.state,i=n.strokeStyle,r=n.lineWidth;if(void 0!==i&&void 0!==r){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([St.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],C);for(var o=t.getEnds(),a=t.getFlatCoordinates(),s=t.getStride(),l=0,c=0,u=o.length;c<u;++c)l=this.drawFlatCoordinates_(a,l,o[c],s);this.hitDetectionInstructions.push(w),this.endGeometry(e)}},A.prototype.finish=function(){var t=this.state;return null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&this.instructions.push(w),this.reverseHitDetectionInstructions(),this.state=null,a.prototype.finish.call(this)},A.prototype.applyStroke=function(t){null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&(this.instructions.push(w),t.lastStroke=this.coordinates.length),t.lastStroke=0,a.prototype.applyStroke.call(this,t),this.instructions.push(C)}
1,A),I=n(53),S=((o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(M,r=d),M.prototype.drawFlatCoordinatess_=function(t,e,n,i){var r=this.state,o=void 0!==r.fillStyle,a=void 0!==r.strokeStyle,s=n.length;this.instructions.push(C),this.hitDetectionInstructions.push(C);for(var l=0;l<s;++l){var c=n[l],u=this.coordinates.length,h=this.appendFlatLineCoordinates(t,e,c,i,!0,!a),h=[St.MOVE_TO_LINE_TO,u,h];this.instructions.push(h),this.hitDetectionInstructions.push(h),a&&(this.instructions.push(E),this.hitDetectionInstructions.push(E)),e=c}return o&&(this.instructions.push(O),this.hitDetectionInstructions.push(O)),a&&(this.instructions.push(w),this.hitDetectionInstructions.push(w)),e},M.prototype.drawCircle=function(t,e){var n=this.state,i=n.fillStyle,r=n.strokeStyle;void 0===i&&void 0===r||(this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([St.SET_FILL_STYLE,Dt.c]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([St.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]),i=t.getFlatCoordinates(),r=t.getStride(),t=this.coordinates.length,this.appendFlatLineCoordinates(i,0,i.length,r,!1,!1),t=[St.CIRCLE,t],this.instructions.push(C,t),this.hitDetectionInstructions.push(C,t),void 0!==n.fillStyle&&(this.instructions.push(O),this.hitDetectionInstructions.push(O)),void 0!==n.strokeStyle&&(this.instructions.push(w),this.hitDetectionInstructions.push(w)),this.endGeometry(e))},M.prototype.drawPolygon=function(t,e){var n=this.state,i=n.fillStyle,r=n.strokeStyle;void 0===i&&void 0===r||(this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([St.SET_FILL_STYLE,Dt.c]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([St.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]),r=t.getEnds(),n=t.getOrientedFlatCoordinates(),t=t.getStride(),this.drawFlatCoordinatess_(n,0,r,t),this.endGeometry(e))},M.prototype.drawMultiPolygon=function(t,e){var n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0!==i||void 0!==r){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([St.SET_FILL_STYLE,Dt.c]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([St.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);for(var o=t.getEndss(),a=t.getOrientedFlatCoordinates(),s=t.getStride(),l=0,c=0,u=o.length;c<u;++c)l=this.drawFlatCoordinatess_(a,l,o[c],s);this.endGeometry(e)}},M.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var t=this.tolerance;if(0!==t)for(var e=this.coordinates,n=0,i=e.length;n<i;++n)e[n]=Object(I.c)(e[n],t);return r.prototype.finish.call(this)},M.prototype.setFillStrokeStyles_=function(){var t=this.state;void 0!==t.fillStyle&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)},M),R=n(76),k=n(1);function M(t,e,n,i){return r.call(this,t,e,n,i)||this}function A(t,e,n,i){return a.call(this,t,e,n,i)||this}function L(t,e,n,i){i=l.call(this,t,e,n,i)||this;return i.hitDetectionImage_=null,i.image_=null,i.imagePixelRatio_=void 0,i.anchorX_=void 0,i.anchorY_=void 0,i.height_=void 0,i.opacity_=void 0,i.originX_=void 0,i.originY_=void 0,i.rotateWithView_=void 0,i.rotation_=void 0,i.scale_=void 0,i.width_=void 0,i.declutterImageWithText_=void 0,i}function F(t,e,n,i){var r=u.call(this)||this;return r.tolerance=t,r.maxExtent=e,r.pixelRatio=i,r.maxLineWidth=0,r.resolution=n,r.beginGeometryInstruction1_=null,r.beginGeometryInstruction2_=null,r.bufferedMaxExtent_=null,r.instructions=[],r.coordinates=[],r.tmpCoordinate_=[],r.hitDetectionInstructions=[],r.state={},r}function N(t){var e=this,n=t||{},t=Object(y.a)({},n);return delete t.style,delete t.renderBuffer,delete t.updateWhileAnimating,delete t.updateWhileInteracting,(e=p.call(this,t)||this).declutter_=void 0!==n.declutter&&n.declutter,e.renderBuffer_=void 0!==n.renderBuffer?n.renderBuffer:100,e.style_=null,e.styleFunction_=void 0,e.setStyle(n.style),e.updateWhileAnimating_=void 0!==n.updateWhileAnimating&&n.updateWhileAnimating,e.updateWhileInteracting_=void 0!==n.updateWhileInteracting&&n.updateWhileInteracting,e}var G,W,f=(W=function(t,e){return(W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}W(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Rt={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},z={Circle:S,Default:d,Image:_,LineString:x,Polygon:S,Text:(f(Z,G=d),Z.prototype.finish=function(){var t=G.prototype.finish.call(this);return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t},Z.prototype.drawText=function(t,e){var n=this.textFillState_,i=this.textStrokeState_,r=this.textState_;if(""!==this.text_&&r&&(n||i)){var o=this.coordinates,a=o.length,s=t.getType(),l=null,c=t.getStride();if(r.placement!==R.a.LINE||s!=P.a.LINE_STRING&&s!=P.a.MULTI_LINE_STRING&&s!=P.a.POLYGON&&s!=P.a.MULTI_POLYGON){var u,h,p,d,f=r.overflow?null:[];switch(s){case P.a.POINT:case P.a.MULTI_POINT:l=t.getFlatCoordinates();break;case P.a.LINE_STRING:l=t.getFlatMidpoint();break;case P.a.CIRCLE:l=t.getCenter();break;case P.a.MULTI_LINE_STRING:l=t.getFlatMidpoints(),c=2;break;case P.a.POLYGON:l=t.getFlatInteriorPoint(),r.overflow||f.push(l[2]/this.resolution),c=3;break;case P.a.MULTI_POLYGON:var g=t.getFlatInteriorPoints(),l=[];for(_=0,v=g.length;_<v;_+=3)r.overflow||f.push(g[_+2]/this.resolution),l.push(g[_],g[_+1]);if(0===l.length)return;c=2}
1(T=this.appendFlatPointCoordinates(l,c))!==a&&(this.saveTextStates_(),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),r.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),r.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e),(u=r.padding)!=Dt.k&&(r.scale[0]<0||r.scale[1]<0)&&(h=r.padding[0],n=r.padding[1],i=r.padding[2],d=r.padding[3],r.scale[0]<0&&(n=-n,d=-d),r.scale[1]<0&&(h=-h,i=-i),u=[h,n,i,d]),p=this.pixelRatio,this.instructions.push([St.DRAW_IMAGE,a,T,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterImageWithText_,u==Dt.k?Dt.k:u.map(function(t){return t*p}),!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,f]),d=1/p,this.hitDetectionInstructions.push([St.DRAW_IMAGE,a,T,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[d,d],NaN,this.declutterImageWithText_,u,!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,f]),this.endGeometry(e))}else if(Object(jt.F)(this.getBufferedMaxExtent(),t.getExtent())){var y=void 0;if(l=t.getFlatCoordinates(),s==P.a.LINE_STRING)y=[l.length];else if(s==P.a.MULTI_LINE_STRING)y=t.getEnds();else if(s==P.a.POLYGON)y=t.getEnds().slice(0,1);else if(s==P.a.MULTI_POLYGON)for(var m=t.getEndss(),y=[],_=0,v=m.length;_<v;++_)y.push(m[_][0]);this.beginGeometry(t,e);for(var b,x=r.textAlign,O=0,w=void 0,C=0,E=y.length;C<E;++C){w=null==x?(O=(b=function(t,e,n,i,r){for(var o,a,s,l,c,u,h,p,d=n,f=n,g=0,y=0,m=n,_=n;_<i;_+=r){var v=e[_],b=e[_+1];void 0!==s&&(h=v-s,p=b-l,a=Math.sqrt(h*h+p*p),void 0!==c&&(y+=o,Math.acos((c*h+u*p)/(o*a))>t&&(g<y&&(g=y,d=m,f=_),y=0,m=_-r)),o=a,c=h,u=p),s=v,l=b}return(y+=a)>g?[m,_]:[d,f]}(r.maxAngle,l,O,y[C],c))[0],b[1]):y[C];for(_=O;_<w;_+=c)o.push(l[_],l[_+1]);var T=o.length;O=y[C],this.drawChars_(a,T),a=T}this.endGeometry(e)}}},Z.prototype.saveTextStates_=function(){var t=this.textStrokeState_,e=this.textState_,n=this.textFillState_,i=this.strokeKey_;t&&(i in this.strokeStates||(this.strokeStates[i]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));t=this.textKey_;t in this.textStates||(this.textStates[t]={font:e.font,textAlign:e.textAlign||Dt.m,textBaseline:e.textBaseline||Dt.n,scale:e.scale});e=this.fillKey_;n&&(e in this.fillStates||(this.fillStates[e]={fillStyle:n.fillStyle}))},Z.prototype.drawChars_=function(t,e){var n=this.textStrokeState_,i=this.textState_,r=this.strokeKey_,o=this.textKey_,a=this.fillKey_;this.saveTextStates_();var s=this.pixelRatio,l=Rt[i.textBaseline],c=this.textOffsetY_*s,u=this.text_,n=n?n.lineWidth*Math.abs(i.scale[0])/2:0;this.instructions.push([St.DRAW_CHARS,t,e,l,i.overflow,a,i.maxAngle,s,c,r,n*s,u,o,1]),this.hitDetectionInstructions.push([St.DRAW_CHARS,t,e,l,i.overflow,a,i.maxAngle,1,c,r,n,u,o,1/s])},Z.prototype.setTextStyle=function(t,e){var n,i,r,o,a,s,l;t?((a=t.getFill())?((n=this.textFillState_)||(n={},this.textFillState_=n),n.fillStyle=Object(j.a)(a.getColor()||Dt.c)):(n=null,this.textFillState_=n),(a=t.getStroke())?((i=this.textStrokeState_)||(i={},this.textStrokeState_=i),r=a.getLineDash(),s=a.getLineDashOffset(),l=a.getWidth(),o=a.getMiterLimit(),i.lineCap=a.getLineCap()||Dt.e,i.lineDash=r?r.slice():Dt.f,i.lineDashOffset=void 0===s?Dt.g:s,i.lineJoin=a.getLineJoin()||Dt.h,i.lineWidth=void 0===l?Dt.i:l,i.miterLimit=void 0===o?Dt.j:o,i.strokeStyle=Object(j.a)(a.getColor()||Dt.l)):(i=null,this.textStrokeState_=i),r=this.textState_,s=t.getFont()||Dt.d,Object(Dt.s)(s),l=t.getScaleArray(),r.overflow=t.getOverflow(),r.font=s,r.maxAngle=t.getMaxAngle(),r.placement=t.getPlacement(),r.textAlign=t.getTextAlign(),r.textBaseline=t.getTextBaseline()||Dt.n,r.backgroundFill=t.getBackgroun
1dFill(),r.backgroundStroke=t.getBackgroundStroke(),r.padding=t.getPadding()||Dt.k,r.scale=void 0===l?[1,1]:l,o=t.getOffsetX(),a=t.getOffsetY(),s=t.getRotateWithView(),l=t.getRotation(),this.text_=t.getText()||"",this.textOffsetX_=void 0===o?0:o,this.textOffsetY_=void 0===a?0:a,this.textRotateWithView_=void 0!==s&&s,this.textRotation_=void 0===l?0:l,this.strokeKey_=i?("string"==typeof i.strokeStyle?i.strokeStyle:Object(k.c)(i.strokeStyle))+i.lineCap+i.lineDashOffset+"|"+i.lineWidth+i.lineJoin+i.miterLimit+"["+i.lineDash.join()+"]":"",this.textKey_=r.font+r.scale+(r.textAlign||"?")+(r.textBaseline||"?"),this.fillKey_=n?"string"==typeof n.fillStyle?n.fillStyle:"|"+Object(k.c)(n.fillStyle):""):this.text_="",this.declutterImageWithText_=e},Z)},Y=(q.prototype.finish=function(){var t,e={};for(t in this.buildersByZIndex_){e[t]=e[t]||{};var n,i=this.buildersByZIndex_[t];for(n in i){var r=i[n].finish();e[t][n]=r}}return e},q.prototype.getBuilder=function(t,e){var n=void 0!==t?t.toString():"0",t=this.buildersByZIndex_[n];void 0===t&&(t={},this.buildersByZIndex_[n]=t);n=t[e];return void 0===n&&(n=new z[e](this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),t[e]=n),n},q),f=n(85),U="Default",X="Image",B="LineString",V="Polygon",H="Text",K=n(20),Pt=n(7),kt=n(4),Mt=n(33);function q(t,e,n,i){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=i,this.resolution_=n,this.buildersByZIndex_={}}function Z(t,e,n,i){i=G.call(this,t,e,n,i)||this;return i.labels_=null,i.text_="",i.textOffsetX_=0,i.textOffsetY_=0,i.textRotateWithView_=void 0,i.textRotation_=0,i.textFillState_=null,i.fillStates={},i.textStrokeState_=null,i.strokeStates={},i.textState_={},i.textStates={},i.textKey_="",i.fillKey_="",i.strokeKey_="",i.declutterImageWithText_=void 0,i}var At=n(77),J=Object(jt.j)(),$=[],Q=[],tt=[],et=[];function Lt(t){return t[3].declutterBox}var nt=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function it(t,e){return"start"!==e&&"end"!==e||nt.test(t)||(e="start"===e?"left":"right"),Rt[e]}var rt=(ct.prototype.createLabel=function(t,e,n,i){var r=t+e+n+i;if(this.labels_[r])return this.labels_[r];var o=i?this.strokeStates[i]:null,a=n?this.fillStates[n]:null,s=this.textStates[e],l=this.pixelRatio,c=[s.scale[0]*l,s.scale[1]*l],u=it(t,s.textAlign||Dt.m),h=i&&o.lineWidth?o.lineWidth:0,p=t.split("\n"),d=p.length,f=[],e=Object(Dt.r)(s.font,p,f),g=Object(Dt.q)(s.font),l=e+h,y=[],t=(l+2)*c[0],e=(g*d+h)*c[1],e={width:t<0?Math.floor(t):Math.ceil(t),height:e<0?Math.floor(e):Math.ceil(e),contextInstructions:y};1==c[0]&&1==c[1]||y.push("scale",c),y.push("font",s.font),i&&(y.push("strokeStyle",o.strokeStyle),y.push("lineWidth",h),y.push("lineCap",o.lineCap),y.push("lineJoin",o.lineJoin),y.push("miterLimit",o.miterLimit),(K.g?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D).prototype.setLineDash&&(y.push("setLineDash",[o.lineDash]),y.push("lineDashOffset",o.lineDashOffset))),n&&y.push("fillStyle",a.fillStyle),y.push("textBaseline","middle"),y.push("textAlign","center");var m,_=.5-u,v=u*l+_*h;if(i)for(m=0;m<d;++m)y.push("strokeText",[p[m],v+_*f[m],.5*(h+g)+m*g]);if(n)for(m=0;m<d;++m)y.push("fillText",[p[m],v+_*f[m],.5*(h+g)+m*g]);return this.labels_[r]=e},ct.prototype.replayTextBackground_=function(t,e,n,i,r,o,a){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,n),t.lineTo.apply(t,i),t.lineTo.apply(t,r),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),a&&(this.setStrokeStyle_(t,a),t.stroke())},ct.prototype.calculateImageOrLabelDimensions_=function(t,e,n,i,r,o,a,s,l,c,u,h,p,d,f,g){var y,m=n-(a*=h[0]),a=i-(s*=h[1]),s=t<r+l?t-l:r,t=e<o+c?e-c:o,r=d[3]+s*h[0]+d[1],e=d[0]+t*h[1]+d[2],o=m-d[3],d=a-d[0];return!f&&0===u||($[0]=o,et[0]=o,$[1]=d,Q[1]=d,Q[0]=o+r,tt[0]=Q[0],tt[1]=d+e,et[1]=tt[1]),0!==u?(y=Object(Pt.b)(Object(Pt.c)(),n,i,1,1,u,-n,-i),Object(Pt.a)(y,$),Object(Pt.a)(y,Q),Ob
1ject(Pt.a)(y,tt),Object(Pt.a)(y,et),Object(jt.k)(Math.min($[0],Q[0],tt[0],et[0]),Math.min($[1],Q[1],tt[1],et[1]),Math.max($[0],Q[0],tt[0],et[0]),Math.max($[1],Q[1],tt[1],et[1]),J)):Object(jt.k)(Math.min(o,o+r),Math.min(d,d+e),Math.max(o,o+r),Math.max(d,d+e),J),p&&(m=Math.round(m),a=Math.round(a)),{drawImageX:m,drawImageY:a,drawImageW:s,drawImageH:t,originX:l,originY:c,declutterBox:{minX:J[0],minY:J[1],maxX:J[2],maxY:J[3],value:g},canvasTransform:y,scale:h}},ct.prototype.replayImageOrLabel_=function(t,e,n,i,r,o,a){var s=!(!o&&!a),l=i.declutterBox,c=t.canvas,u=a?a[2]*i.scale[0]/2:0;return l.minX-u<=c.width/e&&0<=l.maxX+u&&l.minY-u<=c.height/e&&0<=l.maxY+u&&(s&&this.replayTextBackground_(t,$,Q,tt,et,o,a),Object(Dt.o)(t,i.canvasTransform,r,n,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0},ct.prototype.fill_=function(t){var e,n;this.alignFill_&&(e=Object(Pt.a)(this.renderedTransform_,[0,0]),n=512*this.pixelRatio,t.save(),t.translate(e[0]%n,e[1]%n),t.rotate(this.viewRotation_)),t.fill(),this.alignFill_&&t.restore()},ct.prototype.setStrokeStyle_=function(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.setLineDash&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},ct.prototype.drawLabelWithPointPlacement_=function(t,e,n,i){var r=this.textStates[e],o=this.createLabel(t,e,i,n),e=this.strokeStates[n],i=this.pixelRatio,n=it(t,r.textAlign||Dt.m),t=Rt[r.textBaseline||Dt.n],e=e&&e.lineWidth?e.lineWidth:0;return{label:o,anchorX:n*(o.width/i-2*r.scale[0])+2*(.5-n)*e,anchorY:t*o.height/i+2*(.5-t)*e}},ct.prototype.execute_=function(t,e,n,i,r,o,a,s){var l;this.pixelCoordinates_&&Object(It.b)(n,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),l=Object(Mt.c)(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),Object(Pt.g)(this.renderedTransform_,n));for(var c,u,h,p,d,f,g,y,m=0,_=i.length,v=0,b=0,x=0,O=null,w=null,C=this.coordinateCache_,E=this.viewRotation_,T=Math.round(1e12*Math.atan2(-n[1],n[0]))/1e12,S={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:E},j=this.instructions!=i||this.overlaps?0:200;m<_;){var D=i[m];switch(D[0]){case St.BEGIN_GEOMETRY:d=D[1],y=D[3],d.getGeometry()?void 0===a||Object(jt.F)(a,y.getExtent())?++m:m=D[2]+1:m=D[2];break;case St.BEGIN_PATH:j<b&&(this.fill_(t),b=0),j<x&&(t.stroke(),x=0),b||x||(t.beginPath(),u=c=NaN),++m;break;case St.CIRCLE:var I=l[v=D[1]],R=l[v+1],P=l[v+2]-I,k=l[v+3]-R,k=Math.sqrt(P*P+k*k);t.moveTo(I+k,R),t.arc(I,R,k,0,2*Math.PI,!0),++m;break;case St.CLOSE_PATH:t.closePath(),++m;break;case St.CUSTOM:var v=D[1],M=D[2],A=D[3],L=D[4],F=6==D.length?D[5]:void 0;S.geometry=A,S.feature=d,m in C||(C[m]=[]);A=C[m];F?F(l,v,M,2,A):(A[0]=l[v],A[1]=l[v+1],A.length=2),L(A,S),++m;break;case St.DRAW_IMAGE:v=D[1],M=D[2],Y=D[3],U=D[4],X=D[5];var N,G,W,z,Y,U,X,B=D[6],V=D[7],H=D[8],K=D[9],q=D[10],Z=D[11],J=D[12],$=D[13],Q=D[14];!Y&&19<=D.length&&(N=D[18],G=D[19],W=D[20],z=D[21],Y=(ut=this.drawLabelWithPointPlacement_(N,G,W,z)).label,D[3]=Y,ct=D[22],U=(ut.anchorX-ct)*this.pixelRatio,D[4]=U,ft=D[23],X=(ut.anchorY-ft)*this.pixelRatio,D[5]=X,B=Y.height,D[6]=B,$=Y.width,D[13]=$);var tt=void 0;24<D.length&&(tt=D[24]);var et=void 0,nt=void 0,it=void 0,it=16<D.length?(et=D[15],nt=D[16],D[17]):(et=Dt.k,nt=!1);q&&T?Z+=E:q||T||(Z-=E);for(var rt=0;v<M;v+=2)if(!(tt&&tt[rt++]<$/this.pixelRatio)){var ot=[t,e,Y,Ct=this.calculateImageOrLabelDimensions_(Y.width,Y.height,l[v],l[v+1],$,B,U,X,H,K,Z,J,r,et,nt||it,d),V,nt?O:null,it?w:null],at=void 0,st=void 0;if(s&&Q){if(!Q[v]){Q[v]=ot;continue}if(at=Q[v],delete Q[v],st=Lt(at),s.collides(st))continue}s&&s.collides(Ct.declutterBox)||(at&&(s&&s.insert(st),this.replayImageOrLabel_.apply(this,at)),s&&s.insert(Ct.declutterBox),this.replayImageOrLabel_.apply(this,ot))}++m;break;case St.DRAW_CHARS:var F=D[1],L=D[2],lt=D[3],A=D[4];z=D[5];var ct=D[6],ut=D[7],ht=D[8];W=D[9];var pt=D[10];N=D[11],G=D[12];var dt=[D[13],D[13]],ft=this.textStates[G],q=ft.font,gt=[ft.scale[0]*ut,ft.scale[1]*ut],yt=void 0;q in this.widths_?yt=this.widths_[q]:(yt={},this.widths_[q]=yt);ft=Object(At.a)(l,F,L,2),ut=Math.abs(gt[0])*Object(Dt.p)(q,N,yt);if(A||ut<=ft){var A=this.textStates[G].textAlign,mt=function(t,e,n,i,r,o,a,s,l,c,u,h){var p=t[e],d=t[e+1],f=0,g=0,y=0,m=0;function _(){f=p,g=d,p=t[e+=i],d=t[e+1],m+=y,y=Math.sqrt((p-f)*(p-f)+(d-g)*(d-g))}for(;_(),e<n-i&&m+y<o;);for(var v=(o-m)/y,b=Object(kt.c)(f,p,v),x=Object(kt.c)(g,d,v),O=e-i,w=m,C=o+s*l(c,r,u);e<n-i&&m+y<C;)_();v=(C-m)/y;var E=Object(kt.c)(f,p,v),T=Object(kt.c)(g,d,v),S=h?(I=[b,x,E,T],Object(Mt.a)(I,0,4,2,h,I,I),I[2]<I[0]):E<b,j=Math.PI,D=[],I=O+i===e,y=0,m=w,p=t[e=O],d=t[e+1];if(I){_();I=Math.atan2(d-g,p-f);S&&(I+=0<I?-j:j);var R=(E+b)/2,P=(T+x)/2;return D[0]=[R,P,(C-o)/2,I,r],D}for(var k=0,M=r.length;k<M;){_();var A=Math.atan2(d-g,p-f);if(S&&(A+=0<A?-j:j),void 0!==F){var L=A-F;if(L+=j<L?-2*j:L<-j?2*j:0,Math.abs(L)>a)return null}for(var F=A,L=k,N=0;k<M;++k){var G=s*l(c,r[S?M-k-1:k],u);if(e+i<n&&m+y<o+N+G/2)break;N+=G}k!==L&&(L=S?r.substring(M-L,M-k):r.substring(L,k),v=(o+N/2-m)/y,R=Object(kt.c)(f,p,v),P=Object(kt.c)(g,d,v),D.push([R,P,N/2,A,L]),o+=N)}return D}(l,F,L,2,N,(ft-ut)*Rt[A],ct,Math.abs(gt[0]),Dt.p,q,yt,T?0:this.viewRotation_);t:if(mt){var _t=[],vt=void 0,bt=void 0,xt=void 0,Ot=void 0,wt=void 0;if(W)for(vt=0,bt=mt.length;vt<bt;++vt){xt=(wt=mt[vt])[4],Ot=this.createLabel(xt,G,"",W),U=wt[2]+(gt[0]<0?-pt:pt),X=lt*Ot.height+2*(.5-lt)*pt*gt[1]/gt[0]-ht;
1var Ct=this.calculateImageOrLabelDimensions_(Ot.width,Ot.height,wt[0],wt[1],Ot.width,Ot.height,U,X,0,0,wt[3],dt,!1,Dt.k,!1,d);if(s&&s.collides(Ct.declutterBox))break t;_t.push([t,e,Ot,Ct,1,null,null])}if(z)for(vt=0,bt=mt.length;vt<bt;++vt){if(xt=(wt=mt[vt])[4],Ot=this.createLabel(xt,G,z,""),U=wt[2],X=lt*Ot.height-ht,Ct=this.calculateImageOrLabelDimensions_(Ot.width,Ot.height,wt[0],wt[1],Ot.width,Ot.height,U,X,0,0,wt[3],dt,!1,Dt.k,!1,d),s&&s.collides(Ct.declutterBox))break t;_t.push([t,e,Ot,Ct,1,null,null])}s&&s.load(_t.map(Lt));for(var Et=0,Tt=_t.length;Et<Tt;++Et)this.replayImageOrLabel_.apply(this,_t[Et])}}++m;break;case St.END_GEOMETRY:if(void 0!==o){yt=o(d=D[1],y);if(yt)return yt}++m;break;case St.FILL:j?b++:this.fill_(t),++m;break;case St.MOVE_TO_LINE_TO:for(v=D[1],M=D[2],f=l[v],p=(g=l[v+1])+.5|0,(h=f+.5|0)===c&&p===u||(t.moveTo(f,g),c=h,u=p),v+=2;v<M;v+=2)h=(f=l[v])+.5|0,p=(g=l[v+1])+.5|0,v!=M-2&&h===c&&p===u||(t.lineTo(f,g),c=h,u=p);++m;break;case St.SET_FILL_STYLE:O=D,this.alignFill_=D[2],b&&(this.fill_(t),b=0,x&&(t.stroke(),x=0)),t.fillStyle=D[1],++m;break;case St.SET_STROKE_STYLE:w=D,x&&(t.stroke(),x=0),this.setStrokeStyle_(t,D),++m;break;case St.STROKE:j?x++:t.stroke(),++m;break;default:++m}}b&&this.fill_(t),x&&t.stroke()},ct.prototype.execute=function(t,e,n,i,r,o){this.viewRotation_=i,this.execute_(t,e,n,this.instructions,r,void 0,void 0,o)},ct.prototype.executeHitDetection=function(t,e,n,i,r){return this.viewRotation_=n,this.execute_(t,1,e,this.hitDetectionInstructions,!0,i,r)},ct),ot=n(14),at=[V,"Circle",B,X,H,U],d=(lt.prototype.clip=function(t,e){e=this.getClipCoords(e);t.beginPath(),t.moveTo(e[0],e[1]),t.lineTo(e[2],e[3]),t.lineTo(e[4],e[5]),t.lineTo(e[6],e[7]),t.clip()},lt.prototype.createExecutors_=function(t){for(var e in t){var n=this.executorsByZIndex_[e];void 0===n&&(n={},this.executorsByZIndex_[e]=n);var i,r=t[e],o=[this.renderBuffer_||0,this.renderBuffer_||0];for(i in r){var a=r[i];n[i]=new rt(this.resolution_,this.pixelRatio_,this.overlaps_,a,o)}}},lt.prototype.hasExecutors=function(t){for(var e in this.executorsByZIndex_)for(var n=this.executorsByZIndex_[e],i=0,r=t.length;i<r;++i)if(t[i]in n)return!0;return!1},lt.prototype.forEachFeatureAtCoordinate=function(t,e,n,s,l,c){var u=2*(s=Math.round(s))+1,i=Object(Pt.b)(this.hitDetectionTransform_,s+.5,s+.5,1/e,-1/e,-n,-t[0],-t[1]),r=!this.hitDetectionContext_;r&&(this.hitDetectionContext_=Object(ot.a)(u,u));var o,h=this.hitDetectionContext_;h.canvas.width!==u||h.canvas.height!==u?(h.canvas.width=u,h.canvas.height=u):r||h.clearRect(0,0,u,u),void 0!==this.renderBuffer_&&(o=Object(jt.j)(),Object(jt.r)(o,t),Object(jt.c)(o,e*(this.renderBuffer_+s),o));var p,d=function(t){if(void 0!==st[t])return st[t];for(var e=2*t+1,n=t*t,i=new Array(1+n),r=0;r<=t;++r)for(var o=0;o<=t;++o){var a=r*r+o*o;if(n<a)break;var s=i[a];s||(s=[],i[a]=s),s.push(4*((t+r)*e+(t+o))+3),0<r&&s.push(4*((t-r)*e+(t+o))+3),0<o&&(s.push(4*((t+r)*e+(t-o))+3),0<r&&s.push(4*((t-r)*e+(t-o))+3))}for(var l=[],c=(r=0,i.length);r<c;++r)i[r]&&l.push.apply(l,i[r]);return st[t]=l}(s);function a(t,e){for(var n=h.getImageData(0,0,u,u).data,i=0,r=d.length;i<r;i++)if(0<n[d[i]]){if(!c||p!==X&&p!==H||-1!==c.indexOf(t)){var o=(d[i]-3)/4,a=s-o%u,o=s-(o/u|0),o=l(t,e,a*a+o*o);if(o)return o}h.clearRect(0,0,u,u);break}}var f,g,y,m=Object.keys(this.executorsByZIndex_).map(Number);for(m.sort(It.g),f=m.length-1;0<=f;--f)for(var _=m[f].toString(),v=this.executorsByZIndex_[_],b=at.length-1;0<=b;--b)if(void 0!==(g=v[p=at[b]])&&(y=g.executeHitDetection(h,i,n,a,o)))return y},lt.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var n=e[0],i=e[1],r=e[2],e=e[3],i=[n,i,n,e,r,e,r,i];return Object(Mt.c)(i,0,8,2,t,i),i},lt.prototype.isEmpty=function(){return Object(y.d)(this.executorsByZIndex_)},lt.prototype.execute=function(t,e,n,i,r,o,a){var s=Object.keys(this.executorsByZIndex_).map(Number);s.sort(It.g),this.maxExtent_&&(t.save(),this.clip(t,n));var l,c,u,h=o||at;for(a&&s.reverse(),l=0,c=s.length;l<c;++l)for(var p=s[l].toString(),d=this.executorsByZIndex_[p],f=0,g=h.length;f<g;++f)void 0!==(u=d[h[f]])&&u.execute(t,e,n,i,r,a);
1this.maxExtent_&&t.restore()},lt),st={};function lt(t,e,n,i,r,o){this.maxExtent_=t,this.overlaps_=i,this.pixelRatio_=n,this.resolution_=e,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Object(Pt.c)(),this.createExecutors_(r)}function ct(t,e,n,i,r){this.overlaps=n,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderBuffer_=r,this.renderedTransform_=Object(Pt.c)(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={}}var ut=d,ht=n(30),pt=n(73),dt=n(49),ft=n(122),gt=n(17),yt={Point:function(t,e,n,i,r){var o,a=n.getImage(),s=n.getText();if(r&&(t=r,o=a&&s&&s.getText()?{}:void 0),a){if(a.getImageState()!=gt.a.LOADED)return;r=t.getBuilder(n.getZIndex(),X);r.setImageStyle(a,o),r.drawPoint(e,i)}s&&s.getText()&&((n=t.getBuilder(n.getZIndex(),H)).setTextStyle(s,o),n.drawText(e,i))},LineString:function(t,e,n,i,r){var o=n.getStroke();o&&((a=t.getBuilder(n.getZIndex(),B)).setFillStrokeStyle(null,o),a.drawLineString(e,i));var a=n.getText();a&&a.getText()&&((n=(r||t).getBuilder(n.getZIndex(),H)).setTextStyle(a),n.drawText(e,i))},Polygon:function(t,e,n,i,r){var o=n.getFill(),a=n.getStroke();(o||a)&&((s=t.getBuilder(n.getZIndex(),V)).setFillStrokeStyle(o,a),s.drawPolygon(e,i));var s=n.getText();s&&s.getText()&&((n=(r||t).getBuilder(n.getZIndex(),H)).setTextStyle(s),n.drawText(e,i))},MultiPoint:function(t,e,n,i,r){var o,a=n.getImage(),s=n.getText();if(r&&(t=r,o=a&&s&&s.getText()?{}:void 0),a){if(a.getImageState()!=gt.a.LOADED)return;var l=t.getBuilder(n.getZIndex(),X);l.setImageStyle(a,o),l.drawMultiPoint(e,i)}s&&s.getText()&&((n=(r||t).getBuilder(n.getZIndex(),H)).setTextStyle(s,o),n.drawText(e,i))},MultiLineString:function(t,e,n,i,r){var o=n.getStroke();o&&((a=t.getBuilder(n.getZIndex(),B)).setFillStrokeStyle(null,o),a.drawMultiLineString(e,i));var a=n.getText();a&&a.getText()&&((n=(r||t).getBuilder(n.getZIndex(),H)).setTextStyle(a),n.drawText(e,i))},MultiPolygon:function(t,e,n,i,r){var o=n.getFill(),a=n.getStroke();(a||o)&&((s=t.getBuilder(n.getZIndex(),V)).setFillStrokeStyle(o,a),s.drawMultiPolygon(e,i));var s=n.getText();s&&s.getText()&&((n=(r||t).getBuilder(n.getZIndex(),H)).setTextStyle(s),n.drawText(e,i))},GeometryCollection:function(t,e,n,i,r){for(var o=e.getGeometriesArray(),a=0,s=o.length;a<s;++a)(0,yt[o[a].getType()])(t,o[a],n,i,r)},Circle:function(t,e,n,i,r){var o=n.getFill(),a=n.getStroke();(o||a)&&((s=t.getBuilder(n.getZIndex(),"Circle")).setFillStrokeStyle(o,a),s.drawCircle(e,i));var s=n.getText();s&&s.getText()&&((n=(r||t).getBuilder(n.getZIndex(),H)).setTextStyle(s),n.drawText(e,i))}};function mt(t,e){return parseInt(Object(k.c)(t),10)-parseInt(Object(k.c)(e),10)}function _t(t,e,n,i,r,o,a){var s,l=!1,c=n.getImage();return c&&((s=c.getImageState())==gt.a.LOADED||s==gt.a.ERROR?c.unlistenImageChange(r):(s==gt.a.IDLE&&c.load(),s=c.getImageState(),c.listenImageChange(r),l=!0)),r=t,t=e,e=i,i=o,o=a,(n=(a=n).getGeometryFunction()(t))&&(i=n.simplifyTransformed(e,i),a.getRenderer()?function t(e,n,i,r){if(n.getType()!=P.a.GEOMETRY_COLLECTION)e.getBuilder(i.getZIndex(),U).drawCustom(n,r,i.getRenderer());else for(var o=n.getGeometries(),a=0,s=o.length;a<s;++a)t(e,o[a],i,r)}(r,i,a,t):(0,yt[i.getType()])(r,i,a,t,o)),l}var vt,bt,xt,Ot,wt=n(8),Ct=n(24),n=(Ot=function(t,e){return(Ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Ot(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Et=(xt=f.a,n(Ft,xt),Ft.prototype.useContainer=function(t,e,n){n<1&&(t=null),xt.prototype.useContainer.call(this,t,e,n)},Ft.prototype.renderWorlds=function(t,e,n){var i=e.extent,r=e.viewState,o=r.center,a=r.resolution,s=r.projection,l=r.rotation,c=s.getExtent(),u=this.getLayer().getSource(),h=e.pixelRatio,r=e.viewHints,p=!(r[ht.a.ANIMATING]||r[ht.a.INTERACTING]),d=this.context,f
1=Math.round(e.size[0]*h),g=Math.round(e.size[1]*h),s=u.getWrapX()&&s.canWrapX(),y=s?Object(jt.E)(c):null,m=s?Math.ceil((i[2]-c[2])/y)+1:1,_=s?Math.floor((i[0]-c[0])/y):0;do{var v=this.getRenderTransform(o,a,l,h,f,g,_*y)}while(t.execute(d,1,v,l,p,void 0,n),++_<m)},Ft.prototype.renderDeclutter=function(t){this.declutterExecutorGroup&&this.renderWorlds(this.declutterExecutorGroup,t,t.declutterTree)},Ft.prototype.renderFrame=function(t,e){var n=t.pixelRatio,i=t.layerStatesArray[t.layerIndex];Object(Pt.e)(this.pixelTransform,1/n,1/n),Object(Pt.d)(this.inversePixelTransform,this.pixelTransform);var r=Object(Pt.h)(this.pixelTransform);this.useContainer(e,r,i.opacity);var o=this.context,a=o.canvas,s=this.replayGroup_,e=this.declutterExecutorGroup;if((!s||s.isEmpty())&&(!e||e.isEmpty()))return!this.containerReused&&0<a.width&&(a.width=0),this.container;e=Math.round(t.size[0]*n),n=Math.round(t.size[1]*n);a.width!=e||a.height!=n?(a.width=e,a.height=n,a.style.transform!==r&&(a.style.transform=r)):this.containerReused||o.clearRect(0,0,e,n),this.preRender(o,t);r=t.viewState,e=r.projection,n=!1;i.extent&&this.clipping&&(e=Object(wt.f)(i.extent,e),(n=!Object(jt.g)(e,t.extent)&&Object(jt.F)(e,t.extent))&&this.clipUnrotated(o,t,e)),this.renderWorlds(s,t),n&&o.restore(),this.postRender(o,t);t=i.opacity,i=this.container;return t!==parseFloat(i.style.opacity)&&(i.style.opacity=1===t?"":String(t)),this.renderedRotation_!==r.rotation&&(this.renderedRotation_=r.rotation,this.hitDetectionImageData_=null),this.container},Ft.prototype.getFeatures=function(m){return new Promise(function(t){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var e=[this.context.canvas.width,this.context.canvas.height];Object(Pt.a)(this.pixelTransform,e);var n=this.renderedCenter_,i=this.renderedResolution_,r=this.renderedRotation_,o=this.renderedProjection_,a=this.renderedExtent_,s=this.getLayer(),l=[],c=e[0]/2,u=e[1]/2;l.push(this.getRenderTransform(n,i,r,.5,c,u,0).slice());var h=s.getSource(),p=o.getExtent();if(h.getWrapX()&&o.canWrapX()&&!Object(jt.g)(p,a)){for(var d=a[0],f=Object(jt.E)(p),g=0,y=void 0;d<p[0];)y=f*--g,l.push(this.getRenderTransform(n,i,r,.5,c,u,y).slice()),d+=f;for(g=0,d=a[2];d>p[2];)y=f*++g,l.push(this.getRenderTransform(n,i,r,.5,c,u,y).slice()),d-=f}this.hitDetectionImageData_=function(t,e,n,i,r,o,a){var s=t[0]/2,t=t[1]/2,s=Object(ot.a)(s,t);s.imageSmoothingEnabled=!1;for(var t=s.canvas,l=new pt.a(s,.5,r,null,a),c=n.length,u=Math.floor(16777215/c),h={},p=1;p<=c;++p){var d=n[p-1],f=d.getStyleFunction()||i;if(i){var g=f(d,o);if(g){Array.isArray(g)||(g=[g]);for(var y="#"+("000000"+(p*u).toString(16)).slice(-6),m=0,_=g.length;m<_;++m){var v=g[m],b=v.clone(),x=b.getFill();x&&x.setColor(y);var O=b.getStroke();O&&O.setColor(y),b.setText(void 0);var w=v.getImage();if(w){var C=w.getImageSize();if(!C)continue;x=document.createElement("canvas");x.width=C[0],x.height=C[1];O=x.getContext("2d",{alpha:!1});O.fillStyle=y;v=O.canvas;O.fillRect(0,0,v.width,v.height);x=C?C[0]:v.width,O=C?C[1]:v.height;Object(ot.a)(x,O).drawImage(v,0,0),b.setImage(new ft.a({img:v,imgSize:C,anchor:w.getAnchor(),anchorXUnits:dt.a.PIXELS,anchorYUnits:dt.a.PIXELS,offset:w.getOrigin(),size:w.getSize(),opacity:w.getOpacity(),scale:w.getScale(),rotation:w.getRotation(),rotateWithView:w.getRotateWithView()}))}w=Number(b.getZIndex());(j=h[w])||(j={},(h[w]=j)[P.a.POLYGON]=[],j[P.a.CIRCLE]=[],j[P.a.LINE_STRING]=[],j[P.a.POINT]=[]);w=b.getGeometryFunction()(d);w&&Object(jt.F)(r,w.getExtent())&&j[w.getType().replace("Multi","")].push(w,b)}}}}for(var E=Object.keys(h).map(Number).sort(It.g),T=(p=0,E.length);p<T;++p){var S,j=h[E[p]];for(S in j)for(var D=j[S],m=0,_=D.length;m<_;m+=2){l.setStyle(D[m+1]);for(var I=0,R=e.length;I<R;++I)l.setTransform(e[I]),l.drawGeometry(D[m])}}return s.getImageData(0,0,t.width,t.height)}(e,l,this.renderedFeatures_,s.getStyleFunction(),a,i,r)}t((h=m,o=this.renderedFeatures_,e=this.hitDetectionImageData_,s=[],e&&(a=4*(Math.round(h[0]/2)+Math.round(h[1]/2)*e.width),t=e.data[a],h=e.data[1+a],h=e.data[2+a]+256*(h+256*t),t=Math.floor(16777215/o.length),h&&h%t==0&&s.push(o[h/t-1])),s))}.bind(this))},Ft.prototype.forEachFeatureAtCoordinate=function(e,n,i,o,a){var r=this;if(this.replayGroup_){var s,l=n.viewState.resolution,c=n.viewState.rotation,u=this.getLayer(),h={},p=function(t,e,n){var i=Object(k.c)(t),r=h[i];if(r){if(!0!==r&&n<r.distanceSq){if(0===n)return h[i]=!0,a.splice(a.lastIndexOf(r),1),o(t,u,e);r.geometry=e,r.distanceSq=n}}else{if(0===n)return h[i]=!0,o(t,u,e);a.push(h[i]={feature:t,layer:u,geometry:e,distanceSq:n,callback:o})}},t=[this.replayGroup_];return this.declutterExecutorGroup&&t.push(this.declutterExecutorGroup),t.some(function(t){return s=t.forEachFeatureAtCoordinate(e,l,c,i,p,t===r.declutterExecutorGroup?n.declutterTree.all().map(function(t){return t.value}):null)}),s}},Ft.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()},Ft.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},Ft.prototype.prepareFrame=function(t){var i=this.getLayer(),e=i.getSource();if(!e)return!1;var n=t.viewHints[ht.a.ANIMATING],r=t.viewHints[ht.a.INTERACTING],o=i.getUpdateWhileAnimating(),a=i.getUpdateWhileInteracting();if(!this.dirty_&&!o&&n||!a&&r)return this.animatingOrInteracting_=!0;this.animatingOrInteracting_=!1;var s=t.extent,l=t.viewState,c=l.projection,u=l.resolution,o=t.pixelRatio,n=i.getRevision(),a=i.getRenderBuffer(),r=i.getRenderOrder();void 0===r&&(r=mt);var l=l.center.slice(),s=Object(jt.c)(s,a*u),h=[s.slice()],a=c.getExtent();if(e.getWrapX()&&c.canWrapX()&&!Object(jt.g)(a,t.extent)&&(t=Object(jt.E)(a),b=Math.max(Object(jt.E)(s)/2,t),s[0]=a[0]-b,s[2]=a[2]+b,Object(Ct.f)(l,c),(b=Object(jt.K)(h[0],c
1))[0]<a[0]&&b[2]<a[2]?h.push([b[0]+t,b[1],b[2]+t,b[3]]):b[0]>a[0]&&b[2]>a[2]&&h.push([b[0]-t,b[1],b[2]-t,b[3]])),!this.dirty_&&this.renderedResolution_==u&&this.renderedRevision_==n&&this.renderedRenderOrder_==r&&Object(jt.g)(this.renderedExtent_,s))return!(this.replayGroupChanged=!1);this.replayGroup_=null,this.dirty_=!1;var p,d=new Y(.5*u/o,s,u,o);this.getLayer().getDeclutter()&&(p=new Y(.5*u/o,s,u,o));var f,g=Object(wt.k)();if(g){for(var y=0,m=h.length;y<m;++y)e.loadFeatures(Object(wt.m)(h[y],c),u,g);f=Object(wt.j)(g,c)}else for(y=0,m=h.length;y<m;++y)e.loadFeatures(h[y],u,c);var _=(b=.5*u/o)*b,v=function(t){var e,n=t.getStyleFunction()||i.getStyleFunction();(e=n?n(t,u):e)&&(e=this.renderFeature(t,_,e,d,f,p),this.dirty_=this.dirty_||e)}.bind(this),b=Object(wt.m)(s,c),x=e.getFeaturesInExtent(b);for(r&&x.sort(r),y=0,m=x.length;y<m;++y)v(x[y]);this.renderedFeatures_=x;var b=d.finish(),b=new ut(s,u,o,e.getOverlaps(),b,i.getRenderBuffer());return p&&(this.declutterExecutorGroup=new ut(s,u,o,e.getOverlaps(),p.finish(),i.getRenderBuffer())),this.renderedResolution_=u,this.renderedRevision_=n,this.renderedRenderOrder_=r,this.renderedExtent_=s,this.renderedCenter_=l,this.renderedProjection_=c,this.replayGroup_=b,this.hitDetectionImageData_=null,this.replayGroupChanged=!0},Ft.prototype.renderFeature=function(t,e,n,i,r,o){if(!n)return!1;var a=!1;if(Array.isArray(n))for(var s=0,l=n.length;s<l;++s)a=_t(i,t,n[s],e,this.boundHandleStyleImageChange_,r,o)||a;else a=_t(i,t,n,e,this.boundHandleStyleImageChange_,r,o);return a},Ft),b=((bt=function(t,e){return(bt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}bt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(Tt,vt=b),Tt.prototype.createRenderer=function(){return new Et(this)},Tt);function Tt(t){return vt.call(this,t)||this}function Ft(t){t=xt.call(this,t)||this;return t.boundHandleStyleImageChange_=t.handleStyleImageChange_.bind(t),t.animatingOrInteracting_,t.dirty_=!1,t.hitDetectionImageData_=null,t.renderedFeatures_=null,t.renderedRevision_=-1,t.renderedResolution_=NaN,t.renderedExtent_=Object(jt.j)(),t.renderedRotation_,t.renderedCenter_=null,t.renderedProjection_=null,t.renderedRenderOrder_=null,t.replayGroup_=null,t.replayGroupChanged=!0,t.declutterExecutorGroup=null,t.clipping=!0,t}e.a=b},function(t,e,n){"use strict";n.d(e,"b",function(){return S});var r=n(25),i=n(2),o=n(45),a=n(51),s=n(0),l=n(54),c=n(53),u=n(42);function h(t,e,n,i){for(var r=0,o=t[n-i],a=t[n-i+1];e<n;e+=i){var s=t[e],l=t[e+1];r+=a*s-o*l,o=s,a=l}return r/2}var p,d,f=(p=function(t,e){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),g=(d=o.a,f(m,d),m.prototype.clone=function(){return new m(this.flatCoordinates.slice(),this.layout)},m.prototype.closestPointXY=function(t,e,n,i){return i<Object(s.e)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(a.d)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(a.c)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,n,i))},m.prototype.getArea=function(){return h(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},m.prototype.getCoordinates=function(){return Object(u.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},m.prototype.getSimplifiedGeometryInternal=function(t){var e=[];return e.length=Object(c.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new m(e,r.a.XY)},m.prototype.getType=function(){return i.a.LINEAR_RING},m.prototype.intersectsExtent=function(t){return!1},m.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(l.b)(this.flatCoordinates,0,t,this.stride),this.changed()},m),y=n(39),O=n(12),w=n(47);function m(t,e){var n=d.call(this)||this;return n.maxDelta_=-1,n.maxDeltaRevision_=-1,void 0===e||Array.isArray(t[0])?n.setCo
1ordinates(t,e):n.setFlatCoordinates(e,t),n}var _=n(83);function v(t,e,n,i){for(var r=0,o=t[n-i],a=t[n-i+1];e<n;e+=i){var s=t[e],l=t[e+1];r+=(s-o)*(l+a),o=s,a=l}return 0===r?void 0:0<r}function b(t,e,n,i,r){for(var o=void 0!==r&&r,a=0,s=n.length;a<s;++a){var l=n[a],c=v(t,e,l,i);(0===a?o&&c||!o&&!c:o&&!c||!o&&c)&&function(t,e,n,i){for(;e<n-i;){for(var r=0;r<i;++r){var o=t[e+r];t[e+r]=t[n-i+r],t[n-i+r]=o}e+=i,n-=i}}(t,e,l,i),e=l}return e}n(4),n(68);var x,C,n=(C=function(t,e){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}C(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),E=(x=o.a,n(T,x),T.prototype.appendLinearRing=function(t){this.flatCoordinates?Object(O.c)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},T.prototype.clone=function(){var t=new T(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t},T.prototype.closestPointXY=function(t,e,n,i){return i<Object(s.e)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(a.a)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(a.b)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,n,i))},T.prototype.containsXY=function(t,e){return Object(w.c)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)},T.prototype.getArea=function(){return function(t,e,n,i){for(var r=0,o=0,a=n.length;o<a;++o){var s=n[o];r+=h(t,e,s,i),e=s}return r}(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},T.prototype.getCoordinates=function(t){var e;return void 0!==t?b(e=this.getOrientedFlatCoordinates().slice(),0,this.ends_,this.stride,t):e=this.flatCoordinates,Object(u.b)(e,0,this.ends_,this.stride)},T.prototype.getEnds=function(){return this.ends_},T.prototype.getFlatInteriorPoint=function(){var t;return this.flatInteriorPointRevision_!=this.getRevision()&&(t=Object(s.x)(this.getExtent()),this.flatInteriorPoint_=function(t,e,n,i,r,o,a){for(var s,l,c,u=r[o+1],h=[],p=0,d=n.length;p<d;++p)for(var f=n[p],g=t[f-i],y=t[f-i+1],m=e;m<f;m+=i)b=t[m],c=t[m+1],(u<=y&&c<=u||y<=u&&u<=c)&&(l=(u-y)/(c-y)*(b-g)+g,h.push(l)),g=b,y=c;var _=NaN,v=-1/0;for(h.sort(O.g),g=h[0],m=1,s=h.length;m<s;++m){var b=h[m],x=Math.abs(b-g);v<x&&(l=(g+b)/2,Object(w.c)(t,e,n,i,l,u)&&(_=l,v=x)),g=b}return isNaN(_)&&(_=r[o]),a?(a.push(_,u,v),a):[_,u,v]}(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()),this.flatInteriorPoint_},T.prototype.getInteriorPoint=function(){return new y.a(this.getFlatInteriorPoint(),r.a.XYM)},T.prototype.getLinearRingCount=function(){return this.ends_.length},T.prototype.getLinearRing=function(t){return t<0||this.ends_.length<=t?null:new g(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},T.prototype.getLinearRings=function(){for(var t=this.layout,e=this.flatCoordinates,n=this.ends_,i=[],r=0,o=0,a=n.length;o<a;++o){var s=n[o],l=new g(e.slice(r,s),t);i.push(l),r=s}return i},T.prototype.getOrientedFlatCoordinates=function(){var t;return this.orientedRevision_!=this.getRevision()&&(!function(t,e,n,i,r){for(var o=void 0!==r&&r,a=0,s=n.length;a<s;++a){var l=n[a],c=v(t,e,l,i);if(0===a){if(o&&c||!o&&!c)return}else if(o&&!c||!o&&c)return;e=l}return 1}(t=this.flatCoordinates,0,this.ends_,this.stride)?(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=b(this.orientedFlatCoordinates_,0,this.ends_,this.stride)):this.orientedFlatCoordinates_=t,this.orientedRevision_=this.getRevision()),this.orientedFlatCoordinates_},T.prototype.getSimplifiedGeometryInternal=function(t){var e=[],n=[];return e.length=Object(c.b)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),e,0,n),new T(e,r.a.XY,n)},T.prototype.getType=function(){return i.a.POLYGON},T.prototype.intersectsExtent=function(t){return Object(_.b)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)},T.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);t=Object(l.c)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===t.length?0:t[t.length-1],this.changed()},T);function T(t,e,n){var i=x.call(this)||this;return i.ends_=[],i.flatInteriorPointRevision_=-1,i.flatInteriorPoint_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,void 0!==e&&n?(i.setFlatCoordinates(e,t),i.ends_=n):i.setCoordinates(t,e),i}function S(t){var e=t[0],n=t[1],i=t[2],t=t[3],n=[e,n,e,t,i,t,i,n,e,n];return new E(n,r.a.XY,[n.length])}e.a=E},function(t,e,n){"use strict";var i=n(7),r=n(73);e.a=function(t){var e=t.frameState,n=Object(i.f)(t.inversePixelTransform.slice(),e.coordinateToPixelTransform);return new r.a(t.context,e.pixelRatio,e.extent,n,e.viewState.rotation)}},function(t,e,n){"use strict";
1var i,r,o=n(1),n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),n=(r=Error,n(a,r),a);function a(t){var e=this,n="Assertion failed. See https://openlayers.org/en/"+("latest"===o.a?o.a:"v"+o.a.split("-")[0])+"/doc/errors/#"+t+" for details.";return(e=r.call(this,n)||this).code=t,e.name="AssertionError",e.message=n,e}e.a=n},function(t,e,n){"use strict";var i,l,r=n(2),o=n(74),u=n(35),f=n(7),h=n(3),a=n(12),c=n(0),g=n(33),s=n(45),n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),n=(l=o.a,n(p,l),p.prototype.drawImages_=function(t,e,n,i){if(this.image_){var r=Object(g.c)(t,e,n,2,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.tmpLocalTransform_,n=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=n*this.imageOpacity_);var s=this.imageRotation_;this.imageRotateWithView_&&(s+=this.viewRotation_);for(var l=0,c=r.length;l<c;l+=2){var u,h,p=r[l]-this.imageAnchorX_,d=r[l+1]-this.imageAnchorY_;0!==s||1!=this.imageScale_[0]||1!=this.imageScale_[1]?(u=p+this.imageAnchorX_,h=d+this.imageAnchorY_,Object(f.b)(a,u,h,1,1,s,-u,-h),o.setTransform.apply(o,a),o.translate(u,h),o.scale(this.imageScale_[0],this.imageScale_[1]),o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),o.setTransform(1,0,0,1,0,0)):o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,p,d,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(o.globalAlpha=n)}},p.prototype.drawText_=function(t,e,n,i){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var r=Object(g.c)(t,e,n,i,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.textRotation_;for(this.textRotateWithView_&&(a+=this.viewRotation_);e<n;e+=i){var s,l=r[e]+this.textOffsetX_,c=r[e+1]+this.textOffsetY_;0!==a||1!=this.textScale_[0]||1!=this.textScale_[1]?(s=Object(f.b)(this.tmpLocalTransform_,l,c,1,1,a,-l,-c),o.setTransform.apply(o,s),o.translate(l,c),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.setTransform(1,0,0,1,0,0)):(this.textStrokeState_&&o.strokeText(this.text_,l,c),this.textFillState_&&o.fillText(this.text_,l,c))}}},p.prototype.moveToLineTo_=function(t,e,n,i,r){var o=this.context_,a=Object(g.c)(t,e,n,i,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);var s=a.length;r&&(s-=2);for(var l=2;l<s;l+=2)o.lineTo(a[l],a[l+1]);return r&&o.closePath(),n},p.prototype.drawRings_=function(t,e,n,i){for(var r=0,o=n.length;r<o;++r)e=this.moveToLineTo_(t,e,n[r],i,!0);return e},p.prototype.drawCircle=function(t){var e,n,i;Object(c.F)(this.extent_,t.getExtent())&&((this.fillState_||this.strokeState_)&&(this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_),n=(e=Object(s.b)(t,this.transform_,this.pixelCoordinates_))[2]-e[0],i=e[3]-e[1],n=Math.sqrt(n*n+i*i),(i=this.context_).beginPath(),i.arc(e[0],e[1],n,0,2*Math.PI),this.fillState_&&i.fill(),this.strokeState_&&i.stroke()),""!==this.text_&&this.drawText_(t.getCenter(),0,2,2))},p.prototype.setStyle=function(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())},p.prototype.setTransform=function(t){this.transform_=t},p.prototype.drawGeometry=function(t){switch(t.getType()){case r.a.POINT:this.drawPoint(t);break;case r.a.LINE_STRING:this.drawLineString(t);break;case r.a.POLYGON:this.drawPolygon(t);break;case r.a.MULTI_POINT:this.drawMultiPoint(t);break;case r.a.MULTI_LINE_STRING:this.drawMultiLineString(t);break;case r.a.MULTI_POLYGON:this.drawMultiPolygon(t);break;case r.a.GEOMETRY_COLLECTION:this.drawGeometryCollection(t);break;case r.a.CIRCLE:this.drawCircle(t)}},p.prototype.drawFeature=function(t,e){t=e.getGeometryFunction()(t);t&&Object(c.F)(this.extent_,t.getExtent())&&(this.setStyle(e),this.drawGeometry(t))},p.prototype.drawGeometryCollection=function(t){for(var e=t.getGeometriesArray(),n=0,i=e.length;n<i;++n)this.drawGeometry(e[n])},p.prototype.drawPoint=function(t){var e=(t=this.squaredTolerance_?t.simplifyTransformed(this.squaredTolerance_,this.userTransform_):t).getFlatCoordinates(),t=t.getStride();this.image_&&this.drawImages_(e,0,e.length,t),""!==this.text_&&this.drawText_(e,0,e.length,t)},p.prototype.drawMultiPoint=function(t){var e=(t=this.squaredTolerance_?t.simplifyTransformed(this.squaredTolerance_,this.userTransform_):t).getFlatCoordinates(),t=t.getStride();this.image_&&this.drawImages_(e,0,e.length,t),""!==this.text_&&this.drawText_(e,0,e.length,t)},p.prototype.drawLineString=function(t){var e,n;this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(c.F)(this.extent_,t.getExtent())&&(this.strokeState_&&(this.setContextStrokeState_(this.strokeState_),e=this.context_,n=t.getFlatCoordinates(),e.beginPath(),this.moveToLineTo_(n,0,n.length,t.getStride(),!1),e.stroke()),""!==this.text_&&(t=t.getFlatMidpoint(),this.drawText_(t,0,2,2)))},p.prototype.drawMultiLineString=function(t){var e=(t=this.squaredTolerance_?t.simplifyTransformed(this.squaredTolerance_,this.userTransform_):t).getExtent();if(Object(c.F)(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var e=this.context_,n=t.getFlatCoordinates(),i=0,r=t.getEnds(),o=t.getStride();e.beginPath();for(var a=0,s=r.length;a<s;++a)i=this.moveToLineTo_(n,i,r[a],o,!1);e.stroke()}""!==this.text_&&(t=t.getFlatMidpoints(),this.drawText_(t,0,t.length,2))}},p.prototype.drawPolygon=function(t){var e;this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(c.F)(this.extent_,t.getExtent())&&((this.strokeState_||this.fillState_)&&(this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_),(e=this.context_).beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()),""!==this.text_&&(t=t.getFlatInteriorPoint(),this.drawText_(t,0,2,2)))},p.prototype.drawMultiPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(c.F)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_,n=t.getOrientedFlatCoordinates(),i=0,r=t.getEndss(),o=t.getStride();e.beginPath();for(var a=0,s=r.length;a<s;++a)var l=r[a],i=this.drawRings_(n,i,l,o);this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}""!==this.text_&&(t=t.getFlatInteriorPoints(),this.drawText_(t,0,t.length,2))}},p.prototype.setContextFillState_=function(t){var e=this.context_,n=this.contextFillState_;n?n.fillStyle!=t.fillStyle&&(n.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})},p.prototype.setContextStrokeState_=function(t){var e=this.context_,n=this.contextStrokeState_;n?(n.lineCap!=t.lineCap&&(n.lineCap=t.lineCap,e.lineCap=t.lineCap),e.setLineDash&&(Object(a.b)(n.lineDash,t.lineDash)||e.setLineDash(n.lineDash=t.lineDash),n.lineDashOffset!=t.lineDashOffset&&(n.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset)),n.lineJoin!=t.lineJoin&&(n.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),n.lineWidth!=t.lineWidth&&(n.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),n.miterLimit!=t.miterLimit&&(n.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),n.strokeStyle!=t.strokeStyle&&(n.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})},p.prototype.setContextTextState_=function(t){var e=this.context_,n=this.contextTextState_,i=t.textAlign||h.m;n?(n.font!=t.font&&(n.font=t.font,e.font=t.font),n.textAlign!=i&&(n.textAlign=i,e.textAlign=i),n.textBaseline!=t.textBaseline&&(n.textBaseline=t.textBaseline,e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=i,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:i,textBaseline:t.textBaseline})},p.prototype.setFillStrokeStyle=function(t,e){var n,i,r,o,a;t?(a=t.getColor(),this.fillState_={fillStyle:Object(u.a)(a||h.c)}):this.fillState_=null,e?(n=e.getColor(),i=e.getLineCap(),r=e.getLineDash(),o=e.getLineDashOffset(),t=e.getLineJoin(),a=e.getWidth(),e=e.getMiterLimit(),this.strokeState_={lineCap:void 0!==i?i:h.e,lineDash:r||h.f,lineDashOffset:o||h.g,lineJoin:void 0!==t?t:h.h,lineWidth:this.pixelRatio_*(void 0!==a?a:h.i),miterLimit:void 0!==e?e:h.j,strokeStyle:Object(u.a)(n||h.l)}):this.strokeState_=null},p.prototype.setImageStyle=function(t){var e,n,i,r,o;t&&(e=t.getSize())?(n=t.getAnchor(),i=t.getImage(1),r=t.getOrigin(),o=t.getScaleArray(),this.imageAnchorX_=n[0],this.imageAnchorY_=n[1],this.imageHeight_=e[1],this.image_=i,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation(),this.imageScale_=[this.pixelRatio_*o[0],this.pixelRatio_*o[1]],this.imageWidth_=e[0]):this.image_=null},p.prototype.setTextStyle=function(t){var e,n,i,r,o,a,s,l,c;
1t?((e=t.getFill())?(n=e.getColor(),this.textFillState_={fillStyle:Object(u.a)(n||h.c)}):this.textFillState_=null,(n=t.getStroke())?(c=n.getColor(),i=n.getLineCap(),r=n.getLineDash(),o=n.getLineDashOffset(),a=n.getLineJoin(),s=n.getWidth(),l=n.getMiterLimit(),this.textStrokeState_={lineCap:void 0!==i?i:h.e,lineDash:r||h.f,lineDashOffset:o||h.g,lineJoin:void 0!==a?a:h.h,lineWidth:void 0!==s?s:h.i,miterLimit:void 0!==l?l:h.j,strokeStyle:Object(u.a)(c||h.l)}):this.textStrokeState_=null,n=t.getFont(),i=t.getOffsetX(),r=t.getOffsetY(),o=t.getRotateWithView(),a=t.getRotation(),s=t.getScaleArray(),l=t.getText(),c=t.getTextAlign(),t=t.getTextBaseline(),this.textState_={font:void 0!==n?n:h.d,textAlign:void 0!==c?c:h.m,textBaseline:void 0!==t?t:h.n},this.text_=void 0!==l?l:"",this.textOffsetX_=void 0!==i?this.pixelRatio_*i:0,this.textOffsetY_=void 0!==r?this.pixelRatio_*r:0,this.textRotateWithView_=void 0!==o&&o,this.textRotation_=void 0!==a?a:0,this.textScale_=[this.pixelRatio_*s[0],this.pixelRatio_*s[1]]):this.text_=""},p);function p(t,e,n,i,r,o,a){var s=l.call(this)||this;return s.context_=t,s.pixelRatio_=e,s.extent_=n,s.transform_=i,s.viewRotation_=r,s.squaredTolerance_=o,s.userTransform_=a,s.contextFillState_=null,s.contextStrokeState_=null,s.contextTextState_=null,s.fillState_=null,s.strokeState_=null,s.image_=null,s.imageAnchorX_=0,s.imageAnchorY_=0,s.imageHeight_=0,s.imageOpacity_=0,s.imageOriginX_=0,s.imageOriginY_=0,s.imageRotateWithView_=!1,s.imageRotation_=0,s.imageScale_=[0,0],s.imageWidth_=0,s.text_="",s.textOffsetX_=0,s.textOffsetY_=0,s.textRotateWithView_=!1,s.textRotation_=0,s.textScale_=[0,0],s.textFillState_=null,s.textStrokeState_=null,s.textState_=null,s.pixelCoordinates_=[],s.tmpLocalTransform_=Object(f.c)(),s}e.a=n},function(t,e,n){"use strict";var i=(r.prototype.drawCustom=function(t,e,n){},r.prototype.drawGeometry=function(t){},r.prototype.setStyle=function(t){},r.prototype.drawCircle=function(t,e){},r.prototype.drawFeature=function(t,e){},r.prototype.drawGeometryCollection=function(t,e){},r.prototype.drawLineString=function(t,e){},r.prototype.drawMultiLineString=function(t,e){},r.prototype.drawMultiPoint=function(t,e){},r.prototype.drawMultiPolygon=function(t,e){},r.prototype.drawPoint=function(t,e){},r.prototype.drawPolygon=function(t,e){},r.prototype.drawText=function(t,e){},r.prototype.setFillStrokeStyle=function(t,e){},r.prototype.setImageStyle=function(t,e){},r.prototype.setTextStyle=function(t,e){},r);function r(){}e.a=i},function(t,e,n){"use strict";var i=n(1),r=n(27),n=(o.prototype.clone=function(){var t=this.getScale();return new o({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()})},o.prototype.getOpacity=function(){return this.opacity_},o.prototype.getRotateWithView=function(){return this.rotateWithView_},o.prototype.getRotation=function(){return this.rotation_},o.prototype.getScale=function(){return this.scale_},o.prototype.getScaleArray=function(){return this.scaleArray_},o.prototype.getDisplacement=function(){return this.displacement_},o.prototype.getAnchor=function(){return Object(i.b)()},o.prototype.getImage=function(t){return Object(i.b)()},o.prototype.getHitDetectionImage=function(){return Object(i.b)()},o.prototype.getPixelRatio=function(t){return 1},o.prototype.getImageState=function(){return Object(i.b)()},o.prototype.getImageSize=function(){return Object(i.b)()},o.prototype.getHitDetectionImageSize=function(){return Object(i.b)()},o.prototype.getOrigin=function(){return Object(i.b)()},o.prototype.getSize=function(){return Object(i.b)()},o.prototype.setOpacity=function(t){this.opacity_=t},o.prototype.setRotateWithView=function(t){this.rotateWithView_=t},o.prototype.setRotation=function(t){this.rotation_=t},o.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=Object(r.c)(t)},o.prototype.listenImageChange=function(t){Object(i.b)()},o.prototype.load=function(){Object(i.b)()},o.prototype.unlistenImageChange=function(t){Object(i.b)()},o);function o(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=Object(r.c)(t.scale),this.displacement_=t.displacement}e.a=n},function(t,e,n){"use strict";e.a={POINT:"point",LINE:"line"}},function(t,e,n){"use strict";function i(t,e,n,i){for(var r=t[e],o=t[e+1],a=0,s=e+i;s<n;s+=i){var l=t[s],c=t[s+1];a+=Math.sqrt((l-r)*(l-r)+(c-o)*(c-o)),r=l,o=c}return a}n.d(e,"a",function(){return i})},function(t,e,n){"use strict";
1var i,r,o=n(31),n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),n=(r=o.a,n(a,r),a);function a(t,e,n,i){t=r.call(this,t)||this;return t.inversePixelTransform=e,t.frameState=n,t.context=i,t}e.a=n},function(t,e,n){t.exports=function(){"use strict";function d(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function c(t,e){return t<e?-1:e<t?1:0}function t(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}function f(t,e){g(t,0,t.children.length,e,t)}function g(t,e,n,i,r){(r=r||_(null)).minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(var o=e;o<n;o++){var a=t.children[o];p(r,t.leaf?i(a):a)}return r}function p(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function o(t,e){return t.minX-e.minX}function a(t,e){return t.minY-e.minY}function y(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function u(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function l(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function _(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function v(t,e,n,i,r){for(var o,a,s,l=[e,n];l.length;)(n=l.pop())-(e=l.pop())<=i||(o=e+Math.ceil((n-e)/i/2)*i,s=r,function t(e,n,i,r,o){for(;i<r;){var a,s,l,c;600<r-i&&(a=r-i+1,s=n-i+1,c=Math.log(a),l=.5*Math.exp(2*c/3),c=.5*Math.sqrt(c*l*(a-l)/a)*(s-a/2<0?-1:1),t(e,n,Math.max(i,Math.floor(n-s*l/a+c)),Math.min(r,Math.floor(n+(a-s)*l/a+c)),o));var u=e[n],h=i,p=r;for(d(e,i,n),0<o(e[r],u)&&d(e,i,r);h<p;){for(d(e,h,p),h++,p--;o(e[h],u)<0;)h++;for(;0<o(e[p],u);)p--}0===o(e[i],u)?d(e,i,p):d(e,++p,r),p<=n&&(i=p+1),n<=p&&(r=p-1)}}(a=t,o,e||0,n||a.length-1,s||c),l.push(e,o,o,n))}return t.prototype.all=function(){return this._all(this.data,[])},t.prototype.search=function(t){var e=this.data,n=[];if(!l(t,e))return n;for(var i=this.toBBox,r=[];e;){for(var o=0;o<e.children.length;o++){var a=e.children[o],s=e.leaf?i(a):a;l(t,s)&&(e.leaf?n.push(a):u(t,s)?this._all(a,n):r.push(a))}e=r.pop()}return n},t.prototype.collides=function(t){var e=this.data;if(!l(t,e))return!1;for(var n=[];e;){for(var i=0;i<e.children.length;i++){var r=e.children[i],o=e.leaf?this.toBBox(r):r;if(l(t,o)){if(e.leaf||u(t,o))return!0;n.push(r)}}e=n.pop()}return!1},t.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0;e<t.length;e++)this.insert(t[e]);return this}var n,i=this._build(t.slice(),0,t.length-1,0);return this.data.children.length?this.data.height===i.height?this._splitRoot(this.data,i):(this.data.height<i.height&&(n=this.data,this.data=i,i=n),this._insert(i,this.data.height-i.height-1,!0)):this.data=i,this},t.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},t.prototype.clear=function(){return this.data=_([]),this},t.prototype.remove=function(t,e){if(!t)return this;for(var n,i,r,o=this.data,a=this.toBBox(t),s=[],l=[];o||s.length;){if(o||(o=s.pop(),i=s[s.length-1],n=l.pop(),r=!0),o.leaf){var c=function(t,e,n){if(!n)return e.indexOf(t);for(var i=0;i<e.length;i++)if(n(t,e[i]))return i;return-1}(t,o.children,e);if(-1!==c)return o.children.splice(c,1),s.push(o),this._condense(s),this}r||o.leaf||!u(o,a)?i?(n++,o=i.children[n],r=!1):o=null:(s.push(o),l.push(n),n=0,o=(i=o).children[0])}return this},t.prototype.toBBox=function(t){return t},t.prototype.compareMinX=function(t,e){return t.minX-e.minX},t.prototype.compareMinY=function(t,e){return t.minY-e.minY},t.prototype.toJSON=function(){return this.data},t.prototype.fromJSON=function(t){return this.data=t,this},t.prototype._all=function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},t.prototype._build=function(t,e,n,i){var r,o=n-e+1,a=this._maxEntries;if(o<=a)return f(r=_(t.slice(e,n+1)),this.toBBox),r;
1i||(i=Math.ceil(Math.log(o)/Math.log(a)),a=Math.ceil(o/Math.pow(a,i-1))),(r=_([])).leaf=!1,r.height=i;var s=Math.ceil(o/a),l=s*Math.ceil(Math.sqrt(a));v(t,e,n,l,this.compareMinX);for(var c=e;c<=n;c+=l){var u=Math.min(c+l-1,n);v(t,c,u,s,this.compareMinY);for(var h=c;h<=u;h+=s){var p=Math.min(h+s-1,u);r.children.push(this._build(t,h,p,i-1))}}return f(r,this.toBBox),r},t.prototype._chooseSubtree=function(t,e,n,i){for(;i.push(e),!e.leaf&&i.length-1!==n;){for(var r=1/0,o=1/0,a=void 0,s=0;s<e.children.length;s++){var l=e.children[s],c=y(l),u=(u=t,h=l,(Math.max(h.maxX,u.maxX)-Math.min(h.minX,u.minX))*(Math.max(h.maxY,u.maxY)-Math.min(h.minY,u.minY))-c);u<o?(o=u,r=c<r?c:r,a=l):u===o&&c<r&&(r=c,a=l)}e=a||e.children[0]}var u,h;return e},t.prototype._insert=function(t,e,n){var i=n?t:this.toBBox(t),r=[],n=this._chooseSubtree(i,this.data,e,r);for(n.children.push(t),p(n,i);0<=e&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(i,r,e)},t.prototype._split=function(t,e){var n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);i=this._chooseSplitIndex(n,r,i),i=_(n.children.splice(i,n.children.length-i));i.height=n.height,i.leaf=n.leaf,f(n,this.toBBox),f(i,this.toBBox),e?t[e-1].children.push(i):this._splitRoot(n,i)},t.prototype._splitRoot=function(t,e){this.data=_([t,e]),this.data.height=t.height+1,this.data.leaf=!1,f(this.data,this.toBBox)},t.prototype._chooseSplitIndex=function(t,e,n){for(var i,r,o,a,s,l=1/0,c=1/0,u=e;u<=n-e;u++){var h=g(t,0,u,this.toBBox),p=g(t,u,n,this.toBBox),d=(r=h,s=p,o=Math.max(r.minX,s.minX),d=Math.max(r.minY,s.minY),a=Math.min(r.maxX,s.maxX),s=Math.min(r.maxY,s.maxY),Math.max(0,a-o)*Math.max(0,s-d)),p=y(h)+y(p);d<l?(l=d,i=u,c=p<c?p:c):d===l&&p<c&&(c=p,i=u)}return i||n-e},t.prototype._chooseSplitAxis=function(t,e,n){var i=t.leaf?this.compareMinX:o,r=t.leaf?this.compareMinY:a;this._allDistMargin(t,e,n,i)<this._allDistMargin(t,e,n,r)&&t.children.sort(i)},t.prototype._allDistMargin=function(t,e,n,i){t.children.sort(i);for(var r=this.toBBox,o=g(t,0,e,r),a=g(t,n-e,n,r),s=m(o)+m(a),l=e;l<n-e;l++){var c=t.children[l];p(o,t.leaf?r(c):c),s+=m(o)}for(var u=n-e-1;e<=u;u--){var h=t.children[u];p(a,t.leaf?r(h):h),s+=m(a)}return s},t.prototype._adjustParentBBoxes=function(t,e,n){for(var i=n;0<=i;i--)p(e[i],t)},t.prototype._condense=function(t){for(var e=t.length-1,n=void 0;0<=e;e--)0===t[e].children.length?0<e?(n=t[e-1].children).splice(n.indexOf(t[e]),1):this.clear():f(t[e],this.toBBox)},t}()},function(t,e,n){"use strict";var i,r,o=n(13),a=n(19),s=n(1),l=n(9),c=n(11),u=n(4),n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),n=(r=o.a,n(h,r),h.prototype.getClassName=function(){return this.className_},h.prototype.getLayerState=function(t){var e=this.state_||{layer:this,managed:void 0===t||t},t=this.getZIndex();return e.opacity=Object(u.a)(Math.round(100*this.getOpacity())/100,0,1),e.sourceState=this.getSourceState(),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==t?t:!1===e.managed?1/0:0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e},h.prototype.getLayersArray=function(t){return Object(s.b)()},h.prototype.getLayerStatesArray=function(t){return Object(s.b)()},h.prototype.getExtent=function(){return this.get(a.a.EXTENT)},h.prototype.getMaxResolution=function(){return this.get(a.a.MAX_RESOLUTION)},h.prototype.getMinResolution=function(){return this.get(a.a.MIN_RESOLUTION)},h.prototype.getMinZoom=function(){return this.get(a.a.MIN_ZOOM)},h.prototype.getMaxZoom=function(){return this.get(a.a.MAX_ZOOM)},h.prototype.getOpacity=function(){return this.get(a.a.OPACITY)},h.prototype.getSourceState=function(){return Object(s.b)()},h.prototype.getVisible=function(){return this.get(a.a.VISIBLE)},h.prototype.getZIndex=function(){return this.get(a.a.Z_INDEX)},h.prototype.setExtent=function(t){this.set(a.a.EXTENT,t)},h.prototype.setMaxResolution=function(t){this.set(a.a.MAX_RESOLUTION,t)},h.prototype.setMinResolution=function(t){this.set(a.a.MIN_RESOLUTION,t)},h.prototype.setMaxZoom=function(t){this.set(a.a.MAX_ZOOM,t)},h.prototype.setMinZoom=function(t){this.set(a.a.MIN_ZOOM,t)},h.prototype.setOpacity=function(t){Object(l.a)("number"==typeof t,64),this.set(a.a.OPACITY,t)},h.prototype.setVisible=function(t){this.set(a.a.VISIBLE,t)},h.prototype.setZIndex=function(t){this.set(a.a.Z_INDEX,t)},h.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),r.prototype.disposeInternal.call(this)},h);function h(t){var e=r.call(this)||this,n=Object(c.a)({},t);return n[a.a.OPACITY]=void 0!==t.opacity?t.opacity:1,Object(l.a)("number"==typeof n[a.a.OPACITY],64),n[a.a.VISIBLE]=void 0===t.visible||t.visible,n[a.a.Z_INDEX]=t.zIndex,n[a.a.MAX_RESOLUTION]=void 0!==t.maxResolution?t.maxResolution:1/0,n[a.a.MIN_RESOLUTION]=void 0!==t.minResolution?t.minResolution:0,n[a.a.MIN_ZOOM]=void 0!==t.minZoom?t.minZoom:-1/0,n[a.a.MAX_ZOOM]=void 0!==t.maxZoom?t.maxZoom:1/0,e.className_=void 0!==n.className?t.className:"ol-layer",delete n.className,e.setProperties(n),e.state_=null,e}e.a=n},function(t,e,n){"use strict";var i,r,o=n(13),a=n(36),s=n(1),l=n(8),n=(i=function(t,e){return(i=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),n=(r=o.a,n(c,r),c.prototype.getAttributions=function(){return this.attributions_},c.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},c.prototype.getProjection=function(){return this.projection_},c.prototype.getResolutions=function(){return Object(s.b)()},c.prototype.getState=function(){return this.state_},c.prototype.getWrapX=function(){return this.wrapX_},c.prototype.getContextOptions=function(){},c.prototype.refresh=function(){this.changed()},c.prototype.setAttributions=function(t){this.attributions_=u(t),this.changed()},c.prototype.setState=function(t){this.state_=t,this.changed()},c);function c(t){var e=r.call(this)||this;return e.projection_=Object(l.g)(t.projection),e.attributions_=u(t.attributions),e.attributionsCollapsible_=void 0===t.attributionsCollapsible||t.attributionsCollapsible,e.loading=!1,e.state_=void 0!==t.state?t.state:a.a.READY,e.wrapX_=void 0!==t.wrapX&&t.wrapX,e}function u(e){return e?Array.isArray(e)?function(t){return e}:"function"==typeof e?e:function(t){return[e]}:null}e.a=n},function(t,e,n){"use strict";function i(t,e,n,i,r){for(var o,a=[t[e],t[e+1]],s=[];e+i<n;e+=i){if(s[0]=t[e+i],s[1]=t[e+i+1],o=r(a,s))return o;a[0]=s[0],a[1]=s[1]}return!1}n.d(e,"a",function(){return i})},function(t,e,n){"use strict";n.d(e,"a",function(){return p}),n.d(e,"b",function(){return i});var a=n(0),s=n(82),h=n(47);function p(t,e,n,i,r){var o=Object(a.s)(Object(a.j)(),t,e,n,i);return!!Object(a.F)(r,o)&&(!!Object(a.g)(r,o)||o[0]>=r[0]&&o[2]<=r[2]||o[1]>=r[1]&&o[3]<=r[3]||Object(s.a)(t,e,n,i,function(t,e){return Object(a.G)(r,t,e)}))}function i(t,e,n,i,r){if(o=t,a=e,s=n[0],!(p(o,a,s,l=i,e=r)||Object(h.b)(o,a,s,l,e[0],e[1])||Object(h.b)(o,a,s,l,e[0],e[3])||Object(h.b)(o,a,s,l,e[2],e[1])||Object(h.b)(o,a,s,l,e[2],e[3])))return!1;var o,a,s,l;if(1===n.length)return!0;for(var c=1,u=n.length;c<u;++c)if(Object(h.a)(t,n[c-1],n[c],i,r)&&!p(t,n[c-1],n[c],i,r))return!1;return!0}},function(t,e,n){"use strict";n.d(e,"a",function(){return g});var i,r,o,a,s=n(6),l=n(37),c=n(1),e=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),e=(o=l.a,e(f,o),f.prototype.changed=function(){this.dispatchEvent(s.a.CHANGE)},f.prototype.getExtent=function(){return this.extent},f.prototype.getImage=function(){return Object(c.b)()},f.prototype.getPixelRatio=function(){return this.pixelRatio_},f.prototype.getResolution=function(){return this.resolution},f.prototype.getState=function(){return this.state},f.prototype.load=function(){Object(c.b)()},f),u=n(17),h=n(20),p=n(0),d=n(5);function f(t,e,n,i){var r=o.call(this)||this;return r.extent=t,r.pixelRatio_=n,r.resolution=e,r.state=i,r}function g(t,e,n){var i=t;if(i.src&&h.c){var t=i.decode(),r=!0;return t.then(function(){r&&e()}).catch(function(t){r&&("EncodingError"===t.name&&"Invalid image type."===t.message?e:n)()}),function(){r=!1}}var o=[Object(d.b)(i,s.a.LOAD,e),Object(d.b)(i,s.a.ERROR,n)];return function(){o.forEach(d.c)}}function y(t,e,n,i,r,o){n=a.call(this,t,e,n,u.a.IDLE)||this;return n.src_=i,n.image_=new Image,null!==r&&(n.image_.crossOrigin=r),n.unlisten_=null,n.state=u.a.IDLE,n.imageLoadFunction_=o,n}(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(y,a=e),y.prototype.getImage=function(){return this.image_},y.prototype.handleImageError_=function(){this.state=u.a.ERROR,this.unlistenImage_(),this.changed()},y.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=Object(p.A)(this.extent)/this.image_.height),this.state=u.a.LOADED,this.unlistenImage_(),this.changed()},y.prototype.load=function(){this.state!=u.a.IDLE&&this.state!=u.a.ERROR||(this.state=u.a.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=g(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},y.prototype.setImage=function(t){this.image_=t},y.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}},function(t,e,n){"use strict";var i,r,o,a,s=n(6),l=n(17),c=n(55),u=n(36),h=n(1),p=(i=function(t,e){return(i=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=(a=c.a,p(b,a),b.prototype.getFeatures=function(t){return Object(h.b)()},b.prototype.prepareFrame=function(t){return Object(h.b)()},b.prototype.renderFrame=function(t,e){return Object(h.b)()},b.prototype.loadedTileCallback=function(t,e,n){t[e]||(t[e]={}),t[e][n.tileCoord.toString()]=n},b.prototype.createLoadedTileFinder=function(i,r,o){return function(t,e){var n=this.loadedTileCallback.bind(this,o,t);return i.forEachLoadedTile(r,t,e,n)}.bind(this)},b.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r){},b.prototype.getDataAtPixel=function(t,e,n){return Object(h.b)()},b.prototype.getLayer=function(){return this.layer_},b.prototype.handleFontsChanged=function(){},b.prototype.handleImageChange_=function(t){t.target.getState()===l.a.LOADED&&this.renderIfReadyAndVisible()},b.prototype.loadImage=function(t){var e=t.getState();return e!=l.a.LOADED&&e!=l.a.ERROR&&t.addEventListener(s.a.CHANGE,this.boundHandleImageChange_),e==l.a.IDLE&&(t.load(),e=t.getState()),e==l.a.LOADED},b.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t.getVisible()&&t.getSourceState()==u.a.READY&&t.changed()},b),d=n(78),f=n(43),g=n(7),y=n(0),m=n(14),_=n(3),p=((o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(v,r=p),v.prototype.useContainer=function(t,e,n){var i,r,o=this.getLayer().getClassName();!(i=t&&""===t.style.opacity&&t.className===o&&(r=t.firstElementChild)instanceof HTMLCanvasElement?r.getContext("2d"):i)||0!==i.canvas.width&&i.canvas.style.transform!==e?this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1):(this.container=t,this.context=i,this.containerReused=!0),this.container||((t=document.createElement("div")).className=o,(o=t.style).position="absolute",o.width="100%",o.height="100%",r=(i=Object(m.a)()).canvas,t.appendChild(r),(o=r.style).position="absolute",o.left="0",o.transformOrigin="top left",this.container=t,this.context=i)},v.prototype.clip=function(t,e,n){var i=e.pixelRatio,r=e.size[0]*i/2,o=e.size[1]*i/2,a=e.viewState.rotation,s=Object(y.C)(n),l=Object(y.D)(n),c=Object(y.w)(n),n=Object(y.v)(n);Object(g.a)(e.coordinateToPixelTransform,s),Object(g.a)(e.coordinateToPixelTransform,l),Object(g.a)(e.coordinateToPixelTransform,c),Object(g.a)(e.coordinateToPixelTransform,n),t.save(),Object(_.t)(t,-a,r,o),t.beginPath(),t.moveTo(s[0]*i,s[1]*i),t.lineTo(l[0]*i,l[1]*i),t.lineTo(c[0]*i,c[1]*i),t.lineTo(n[0]*i,n[1]*i),t.clip(),Object(_.t)(t,a,r,o)},v.prototype.clipUnrotated=function(t,e,n){var i=Object(y.C)(n),r=Object(y.D)(n),o=Object(y.w)(n),n=Object(y.v)(n);Object(g.a)(e.coordinateToPixelTransform,i),Object(g.a)(e.coordinateToPixelTransform,r),Object(g.a)(e.coordinateToPixelTransform,o),Object(g.a)(e.coordinateToPixelTransform,n);e=this.inversePixelTransform;Object(g.a)(e,i),Object(g.a)(e,r),Object(g.a)(e,o),Object(g.a)(e,n),t.save(),t.beginPath(),t.moveTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])
1),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(n[0]),Math.round(n[1])),t.clip()},v.prototype.dispatchRenderEvent_=function(t,e,n){var i=this.getLayer();i.hasListener(t)&&(e=new d.a(t,this.inversePixelTransform,n,e),i.dispatchEvent(e))},v.prototype.preRender=function(t,e){this.dispatchRenderEvent_(f.a.PRERENDER,t,e)},v.prototype.postRender=function(t,e){this.dispatchRenderEvent_(f.a.POSTRENDER,t,e)},v.prototype.getRenderTransform=function(t,e,n,i,r,o,a){r/=2,o/=2,i/=e,e=-i,a=-t[0]+a,t=-t[1];return Object(g.b)(this.tempTransform,r,o,i,e,-n,a,t)},v.prototype.getDataAtPixel=function(t,e,n){var i,r=Object(g.a)(this.inversePixelTransform,t.slice()),o=this.context,a=this.getLayer().getExtent();if(a){e=Object(g.a)(e.pixelToCoordinateTransform,t.slice());if(!Object(y.f)(a,e))return null}try{var s=Math.round(r[0]),l=Math.round(r[1]),c=document.createElement("canvas"),u=c.getContext("2d");c.width=1,c.height=1,u.clearRect(0,0,1,1),u.drawImage(o.canvas,s,l,1,1,0,0,1,1),i=u.getImageData(0,0,1,1).data}catch(t){return"SecurityError"===t.name?new Uint8Array:i}return 0===i[3]?null:i},v);function v(t){t=r.call(this,t)||this;return t.container=null,t.renderedResolution,t.tempTransform=Object(g.c)(),t.pixelTransform=Object(g.c)(),t.inversePixelTransform=Object(g.c)(),t.context=null,t.containerReused=!1,t}function b(t){var e=a.call(this)||this;return e.boundHandleImageChange_=e.handleImageChange_.bind(e),e.layer_=t,e.declutterExecutorGroup=null,e}e.a=p},function(t,e,n){"use strict";var l=n(63),o=n(60),a=n(9),i=n(4),c=n(0),h=n(34),s=n(12),p=n(27),u=[0,0,0],n=(r.prototype.forEachTileCoord=function(t,e,n){for(var i=this.getTileRangeForExtentAndZ(t,e),r=i.minX,o=i.maxX;r<=o;++r)for(var a=i.minY,s=i.maxY;a<=s;++a)n([e,r,a])},r.prototype.forEachTileCoordParentTileRange=function(t,e,n,i){var r,o,a=null,s=t[0]-1;for(2===this.zoomFactor_?(r=t[1],o=t[2]):a=this.getTileCoordExtent(t,i);s>=this.minZoom;){if(e(s,2===this.zoomFactor_?(r=Math.floor(r/2),o=Math.floor(o/2),Object(l.a)(r,r,o,o,n)):this.getTileRangeForExtentAndZ(a,s,n)))return!0;--s}return!1},r.prototype.getExtent=function(){return this.extent_},r.prototype.getMaxZoom=function(){return this.maxZoom},r.prototype.getMinZoom=function(){return this.minZoom},r.prototype.getOrigin=function(t){return this.origin_||this.origins_[t]},r.prototype.getResolution=function(t){return this.resolutions_[t]},r.prototype.getResolutions=function(){return this.resolutions_},r.prototype.getTileCoordChildTileRange=function(t,e,n){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){var i=2*t[1],r=2*t[2];return Object(l.a)(i,1+i,r,1+r,e)}n=this.getTileCoordExtent(t,n);return this.getTileRangeForExtentAndZ(n,t[0]+1,e)}return null},r.prototype.getTileRangeExtent=function(t,e,n){var i=this.getOrigin(t),r=this.getResolution(t),o=Object(p.c)(this.getTileSize(t),this.tmpSize_),a=i[0]+e.minX*o[0]*r,s=i[0]+(e.maxX+1)*o[0]*r,t=i[1]+e.minY*o[1]*r,r=i[1]+(e.maxY+1)*o[1]*r;return Object(c.k)(a,t,s,r,n)},r.prototype.getTileRangeForExtentAndZ=function(t,e,n){var i=u;this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,i);var r=i[1],o=i[2];return this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,i),Object(l.a)(r,i[1],o,i[2],n)},r.prototype.getTileCoordCenter=function(t){var e=this.getOrigin(t[0]),n=this.getResolution(t[0]),i=Object(p.c)(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*i[0]*n,e[1]-(t[2]+.5)*i[1]*n]},r.prototype.getTileCoordExtent=function(t,e){var n=this.getOrigin(t[0]),i=this.getResolution(t[0]),r=Object(p.c)(this.getTileSize(t[0]),this.tmpSize_),o=n[0]+t[1]*r[0]*i,n=n[1]-(t[2]+1)*r[1]*i,t=o+r[0]*i,i=n+r[1]*i;return Object(c.k)(o,n,t,i,e)},r.prototype.getTileCoordForCoordAndResolution=function(t,e,n){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,n)},r.prototype.getTileCoordForXYAndResolution_=function(t,e,n,i,r){var o=this.getZForResolution(n),a=n/this.getResolution(o),s=this.getOrigin(o),l=Object(p.c)(this.getTileSize(o),this.tmpSize_),c=i?.5:0,u=i?.5:0,c=Math.floor((t-s[0])/n+c),u=Math.floor((s[1]-e)/n+u),c=a*c/l[0],l=a*u/l[1],l=i?(c=Math.ceil(c)-1,Math.ceil(l)-1):(c=Math.floor(c),Math.floor(l));return Object(h.a)(o,c,l,r)},r.prototype.getTileCoordForXYAndZ_=function(t,e,n,i,r){var o=this.getOrigin(n),a=this.getResolution(n),s=Object(p.c)(this.getTileSize(n),this.tmpSize_),l=i?.5:0,c=i?.5:0,l=Math.floor((t-o[0])/a+l),c=Math.floor((o[1]-e)/a+c),l=l/s[0],s=c/s[1],s=i?(l=Math.ceil(l)-1,Math.ceil(s)-1):(l=Math.floor(l),Math.floor(s));
1return Object(h.a)(n,l,s,r)},r.prototype.getTileCoordForCoordAndZ=function(t,e,n){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,n)},r.prototype.getTileCoordResolution=function(t){return this.resolutions_[t[0]]},r.prototype.getTileSize=function(t){return this.tileSize_||this.tileSizes_[t]},r.prototype.getFullTileRange=function(t){return this.fullTileRanges_?this.fullTileRanges_[t]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,t):null},r.prototype.getZForResolution=function(t,e){e=Object(s.f)(this.resolutions_,t,e||0);return Object(i.a)(e,this.minZoom,this.maxZoom)},r.prototype.calculateTileRanges_=function(t){for(var e=this.resolutions_.length,n=new Array(e),i=this.minZoom;i<e;++i)n[i]=this.getTileRangeForExtentAndZ(t,i);this.fullTileRanges_=n},r);function r(t){var e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,Object(a.a)(Object(s.e)(this.resolutions_,function(t,e){return e-t},!0),17),!t.origins)for(var n=0,i=this.resolutions_.length-1;n<i;++n)if(e){if(this.resolutions_[n]/this.resolutions_[n+1]!==e){e=void 0;break}}else e=this.resolutions_[n]/this.resolutions_[n+1];this.zoomFactor_=e,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,Object(a.a)(this.origins_.length==this.resolutions_.length,20));var r=t.extent;void 0===r||this.origin_||this.origins_||(this.origin_=Object(c.C)(r)),Object(a.a)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,Object(a.a)(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:o.b,Object(a.a)(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==r?r:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map(function(t,e){t=new l.b(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1));return r&&(e=this.getTileRangeForExtentAndZ(r,e),t.minX=Math.max(e.minX,t.minX),t.maxX=Math.min(e.maxX,t.maxX),t.minY=Math.max(e.minY,t.minY),t.maxY=Math.min(e.maxY,t.maxY)),t},this):r&&this.calculateTileRanges_(r)}e.a=n},function(t,e,n){"use strict";var i,r=n(65),a=n(15),s=n(1),o=n(7),C=n(0),l=n(67),E=n(41),T=n(24),c=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function u(t,e){l.a.expire()}var h,p,d,f,g,y,m,_,v,b,x,O,w,S=(w=r.a,c(pt,w),pt.prototype.dispatchRenderEvent=function(t,e){Object(s.b)()},pt.prototype.calculateMatrices2D=function(t){var e=t.viewState,n=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;Object(o.b)(n,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),Object(o.d)(i,n)},pt.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r,o,a,s){var l,c=e.viewState;function u(t,e,n,i){return r.call(o,e,t?n:null,i)}var h=c.projection,p=Object(T.f)(t.slice(),h),d=[[0,0]];h.canWrapX()&&i&&(h=h.getExtent(),h=Object(C.E)(h),d.push([-h,0],[h,0]));for(var f=e.layerStatesArray,g=f.length,y=[],m=[],_=0;_<d.length;_++)for(var v=g-1;0<=v;--v){var b=f[v],x=b.layer;if(x.hasRenderer()&&Object(E.b)(b,c)&&a.call(s,x)){var O=x.getRenderer(),x=x.getSource();if(O&&x&&(x=x.getWrapX()?p:t,b=u.bind(null,b.managed),m[0]=x[0]+d[_][0],m[1]=x[1]+d[_][1],l=O.forEachFeatureAtCoordinate(m,e,n,b,y)),l)return l}}if(0!==y.length){var w=1/y.length;return y.forEach(function(t,e){return t.distanceSq+=e*w}),y.sort(function(t,e){return t.distanceSq-e.distanceSq}),y.some(function(t){return l=t.callback(t.feature,t.layer,t.geometry)}),l}},pt.prototype.forEachLayerAtPixel=function(t,e,n,i,r){return Object(s.b)()},pt.prototype.hasFeatureAtCoordinate=function(t,e,n,i,r,o){return void 0!==this.forEachFeatureAtCoordinate(t,e,n,i,a.b,this,r,o)},pt.prototype.getMap=function(){return this.map_},pt.prototype.renderFrame=function(t){Object(s.b)()},pt.prototype.scheduleExpireIconCache=function(t){l.a.canExpireCache()&&t.postRenderFunctions.push(u)},pt),j=n(38),D=n(78),I=n(43),R=n(36),P=n(22),k=n(3),M=n(5),A=n(14),L=((O=function(t,e){return(O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}O(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(ht,x=S),ht.prototype.dispatchRenderEvent=function(t,e){var n=this.getMap();n.hasListener(t)&&(e=new D.a(t,void 0,e),n.dispatchEvent(e))},ht.prototype.disposeInternal=function(){Object(M.c)(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),x.prototype.disposeInternal.call(this)},ht.prototype.renderFrame=function(t){if(t){this.calculateMatrices2D(t),this.dispatchRenderEvent(I.a.PRECOMPOSE,t);for(var e=t.layerStatesArray.sort(function(t,e){return t.zIndex-e.zIndex}),n=t.viewState,i=[],r=null,o=this.children_.length=0,a=e.length;o<a;++o){var s,l=e[o];t.layerIndex=o,!Object(E.b)(l,n)||l.sourceState!=R.a.READY&&l.sourceState!=R.a.UNDEFINED||(l=(s=l.layer).render(t,r))&&(l!==r&&(this.children_.push(l),r=l),"getDeclutter"in s&&i.push(s))}for(o=i.length-1;0<=o;--o)i[o].renderDeclutter(t);Object(A.f)(this.element_,this.children_),this.dispatchRenderEvent(I.a.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},ht.prototype.forEachLayerAtPixel=function(t,e,n,i,r){for(var o=e.viewState,a=e.layerStatesArray,s=a.length-1;0<=s;--s){var l=a[s],c=l.layer;if(c.hasRenderer()&&Object(E.b)(l,o)&&r(c)){l=c.getRenderer().getDataAtPixel(t,e,n);if(l){l=i(c,l);if(l)return l}}}},ht),F=n(13),N=n(26),G=n(21),W=n(6),z=n(80),Y=n(9),U=n(11),X=(b=function(t,e){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),B="layers",V=(v=z.a,X(ut,v),ut.prototype.handleLayerChange_=function(){this.changed()},ut.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(M.c),this.layersListenerKeys_.length=0;var t,e=this.getLayers();for(t in this.layersListenerKeys_.push(Object(M.a)(e,G.a.ADD,this.handleLayersAdd_,this),Object(M.a)(e,G.a.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[t].forEach(M.c);Object(U.b)(this.listenerKeys_);for(var n=e.getArray(),i=0,r=n.length;i<r;i++){var o=n[i];
1this.listenerKeys_[Object(s.c)(o)]=[Object(M.a)(o,j.a.PROPERTYCHANGE,this.handleLayerChange_,this),Object(M.a)(o,W.a.CHANGE,this.handleLayerChange_,this)]}this.changed()},ut.prototype.handleLayersAdd_=function(t){t=t.element;this.listenerKeys_[Object(s.c)(t)]=[Object(M.a)(t,j.a.PROPERTYCHANGE,this.handleLayerChange_,this),Object(M.a)(t,W.a.CHANGE,this.handleLayerChange_,this)],this.changed()},ut.prototype.handleLayersRemove_=function(t){t=t.element,t=Object(s.c)(t);this.listenerKeys_[t].forEach(M.c),delete this.listenerKeys_[t],this.changed()},ut.prototype.getLayers=function(){return this.get(B)},ut.prototype.setLayers=function(t){this.set(B,t)},ut.prototype.getLayersArray=function(t){var e=void 0!==t?t:[];return this.getLayers().forEach(function(t){t.getLayersArray(e)}),e},ut.prototype.getLayerStatesArray=function(t){var e=void 0!==t?t:[],t=e.length;this.getLayers().forEach(function(t){t.getLayerStatesArray(e)});for(var n=this.getLayerState(),i=t,r=e.length;i<r;i++){var o=e[i];o.opacity*=n.opacity,o.visible=o.visible&&n.visible,o.maxResolution=Math.min(o.maxResolution,n.maxResolution),o.minResolution=Math.max(o.minResolution,n.minResolution),o.minZoom=Math.max(o.minZoom,n.minZoom),o.maxZoom=Math.min(o.maxZoom,n.maxZoom),void 0!==n.extent&&(void 0!==o.extent?o.extent=Object(C.B)(o.extent,n.extent):o.extent=n.extent)}return e},ut.prototype.getSourceState=function(){return R.a.READY},ut),c=n(31),S=(_=function(t,e){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}_(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),H=(m=c.a,S(ct,m),ct),K=((y=function(t,e){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}y(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(lt,g=H),Object.defineProperty(lt.prototype,"pixel",{get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(t){this.pixel_=t},enumerable:!1,configurable:!0}),Object.defineProperty(lt.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(t){this.coordinate_=t},enumerable:!1,configurable:!0}),lt.prototype.preventDefault=function(){g.prototype.preventDefault.call(this),this.originalEvent.preventDefault()},lt.prototype.stopPropagation=function(){g.prototype.stopPropagation.call(this),this.originalEvent.stopPropagation()},lt),z=n(37),q=n(16),Z="pointerdown",J=n(20),X=(f=function(t,e){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),$=(d=z.a,X(st,d),st.prototype.emulateClick_=function(e){var t=new K(q.a.CLICK,this.map_,e);this.dispatchEvent(t),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,t=new K(q.a.DBLCLICK,this.map_,e),this.dispatchEvent(t)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var t=new K(q.a.SINGLECLICK,this.map_,e);this.dispatchEvent(t)}.bind(this),250)},st.prototype.updateActivePointers_=function(t){t.type==q.a.POINTERUP||t.type==q.a.POINTERCANCEL?delete this.trackedTouches_[t.pointerId]:t.type==q.a.POINTERDOWN&&(this.trackedTouches_[t.pointerId]=!0),this.activePointers_=Object.keys(this.trackedTouches_).length},st.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new K(q.a.POINTERUP,this.map_,t);this.dispatchEvent(e),this.emulateClicks_&&!e.propagationStopped&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_&&(this.dragListenerKeys_.forEach(M.c),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)},st.prototype.isMouseActionButton_=function(t){return 0===t.button},st.prototype.handlePointerDown_=function(t){this.emulateClicks_=0===this.activePointers_,this.updateActivePointers_(t);var e=new K(q.a.POINTERDOWN,this.map_,t);this.dispatchEvent(e),this.down_=t,0===this.dragListenerKeys_.length&&(t=this.map_.getOwnerDocument(),this.dragListenerKeys_.push(Object(M.a)(t,q.a.POINTERMOVE,this.handlePointerMove_,this),Object(M.a)(t,q.a.POINTERUP,this.handlePointerUp_,this),Object(M.a)(this.element_,q.a.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==t&&this.dragListenerKeys_.push(Object(M.a)(this.element_.getRootNode(),q.a.POINTERUP,this.handlePointerUp_,this)))},st.prototype.handlePointerMove_=function(t){this.isMoving_(t)&&(this.dragging_=!0,t=new K(q.a.POINTERDRAG,this.map_,t,this.dragging_),this.dispatchEvent(t))},st.prototype.relayEvent_=function(t){this.originalPointerMoveEvent_=t;var e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new K(t.type,this.map_,t,e))},st.prototype.handleTouchMove_=function(t){this.originalPointerMoveEvent_&&!this.originalPointerMoveEvent_.defaultPrevented||t.preventDefault()},st.prototype.isMoving_=function(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},st.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Object(M.c)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(W.a.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Object(M.c)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(M.c),this.dragListenerKeys_.length=0,this.element_=null,d.prototype.disposeInternal.call(this)},st),Q=n(56),tt="layergroup",et="target",nt="view",S=(at.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Object(U.b)(this.queuedElements_)},at.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,n=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));e=this.keyFunction_(n);return delete this.queuedElements_[e],n},at.prototype.enqueue=function(t){Object(Y.a)(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);
1return e!=1/0&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},at.prototype.getCount=function(){return this.elements_.length},at.prototype.getLeftChildIndex_=function(t){return 2*t+1},at.prototype.getRightChildIndex_=function(t){return 2*t+2},at.prototype.getParentIndex_=function(t){return t-1>>1},at.prototype.heapify_=function(){for(var t=(this.elements_.length>>1)-1;0<=t;t--)this.siftUp_(t)},at.prototype.isEmpty=function(){return 0===this.elements_.length},at.prototype.isKeyQueued=function(t){return t in this.queuedElements_},at.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},at.prototype.siftUp_=function(t){for(var e=this.elements_,n=this.priorities_,i=e.length,r=e[t],o=n[t],a=t;t<i>>1;){var s=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),s=l<i&&n[l]<n[s]?l:s;e[t]=e[s],n[t]=n[s],t=s}e[t]=r,n[t]=o,this.siftDown_(a,t)},at.prototype.siftDown_=function(t,e){for(var n=this.elements_,i=this.priorities_,r=n[e],o=i[e];t<e;){var a=this.getParentIndex_(e);if(!(i[a]>o))break;n[e]=n[a],i[e]=i[a],e=a}n[e]=r,i[e]=o},at.prototype.reprioritize=function(){for(var t,e,n=this.priorityFunction_,i=this.elements_,r=this.priorities_,o=0,a=i.length,s=0;s<a;++s)(e=n(t=i[s]))==1/0?delete this.queuedElements_[this.keyFunction_(t)]:(r[o]=e,i[o++]=t);i.length=o,r.length=o,this.heapify_()},at),it=n(10),rt=((p=function(t,e){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(ot,h=S),ot.prototype.enqueue=function(t){var e=h.prototype.enqueue.call(this,t);return e&&t[0].addEventListener(W.a.CHANGE,this.boundHandleTileChange_),e},ot.prototype.getTilesLoading=function(){return this.tilesLoading_},ot.prototype.handleTileChange=function(t){var e=t.target,t=e.getState();(e.hifi&&t===it.a.LOADED||t===it.a.ERROR||t===it.a.EMPTY)&&(e.removeEventListener(W.a.CHANGE,this.boundHandleTileChange_),(e=e.getKey())in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[e],--this.tilesLoading_),this.tileChangeCallback_())},ot.prototype.loadMoreTiles=function(t,e){for(var n,i,r=0;this.tilesLoading_<t&&r<e&&0<this.getCount();)i=(n=this.dequeue()[0]).getKey(),n.getState()!==it.a.IDLE||i in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[i]=!0,++this.tilesLoading_,++r,n.load())},ot);function ot(e,t){var n=h.call(this,function(t){return e.apply(null,t)},function(t){return t[0].getKey()})||this;return n.boundHandleTileChange_=n.handleTileChange.bind(n),n.tileChangeCallback_=t,n.tilesLoading_=0,n.tilesLoadingKeys_={},n}function at(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}function st(t,e){var n=d.call(this,t)||this;n.map_=t,n.clickTimeoutId_,n.emulateClicks_=!1,n.dragging_=!1,n.dragListenerKeys_=[],n.moveTolerance_=e?e*J.a:J.a,n.down_=null;e=n.map_.getViewport();return n.activePointers_=0,n.trackedTouches_={},n.element_=e,n.pointerdownListenerKey_=Object(M.a)(e,Z,n.handlePointerDown_,n),n.originalPointerMoveEvent_,n.relayedListenerKey_=Object(M.a)(e,"pointermove",n.relayEvent_,n),n.boundHandleTouchMove_=n.handleTouchMove_.bind(n),n.element_.addEventListener(W.a.TOUCHMOVE,n.boundHandleTouchMove_,!!J.e&&{passive:!1}),n}function lt(t,e,n,i,r){r=g.call(this,t,e,r)||this;return r.originalEvent=n,r.pixel_=null,r.coordinate_=null,r.dragging=void 0!==i&&i,r}function ct(t,e,n){t=m.call(this,t)||this;return t.map=e,t.frameState=void 0!==n?n:null,t}function ut(t){var e=this,n=t||{},t=Object(U.a)({},n);delete t.layers;n=n.layers;return(e=v.call(this,t)||this).layersListenerKeys_=[],e.listenerKeys_={},e.addEventListener(Object(F.b)(B),e.handleLayersChanged_),n?Array.isArray(n)?n=new N.a(n.slice(),{unique:!0}):Object(Y.a)("function"==typeof n.getArray,43):n=new N.a(void 0,{unique:!0}),e.setLayers(n),e}function ht(t){var e=x.call(this,t)||this;e.fontChangeListenerKey_=Object(M.a)(k.a,j.a.PROPERTYCHANGE,t.redrawText.bind(t)),e.element_=document.createElement("div");var n=e.element_.style;
1n.position="absolute",n.width="100%",n.height="100%",n.zIndex="0",e.element_.className=P.e+" ol-layers";t=t.getViewport();return t.insertBefore(e.element_,t.firstChild||null),e.children_=[],e.renderedVisible_=!0,e}function pt(t){var e=w.call(this)||this;return e.map_=t,e}var dt,ft,gt,yt,mt,_t,vt,bt,xt,Ot,wt=n(88),Ct=n(30),Et=n(8),Tt=n(27),z=(dt=function(t,e){return(dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}dt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),X=(Ot=F.a,z(Lt,Ot),Lt.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},Lt.prototype.addControl=function(t){this.getControls().push(t)},Lt.prototype.addInteraction=function(t){this.getInteractions().push(t)},Lt.prototype.addLayer=function(t){this.getLayerGroup().getLayers().push(t)},Lt.prototype.addOverlay=function(t){this.getOverlays().push(t)},Lt.prototype.addOverlayInternal_=function(t){var e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)},Lt.prototype.disposeInternal=function(){this.setTarget(null),Ot.prototype.disposeInternal.call(this)},Lt.prototype.forEachFeatureAtPixel=function(t,e,n){if(this.frameState_){var i=this.getCoordinateFromPixelInternal(t),r=void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance:0,t=void 0!==n.layerFilter?n.layerFilter:a.b,n=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(i,this.frameState_,r,n,e,null,t,null)}},Lt.prototype.getFeaturesAtPixel=function(t,e){var n=[];return this.forEachFeatureAtPixel(t,function(t){n.push(t)},e),n},Lt.prototype.forEachLayerAtPixel=function(t,e,n){if(this.frameState_){var i=n||{},n=void 0!==i.hitTolerance?i.hitTolerance:0,i=i.layerFilter||a.b;return this.renderer_.forEachLayerAtPixel(t,this.frameState_,n,e,i)}},Lt.prototype.hasFeatureAtPixel=function(t,e){if(!this.frameState_)return!1;var n=this.getCoordinateFromPixelInternal(t),i=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:a.b,t=void 0!==e.hitTolerance?e.hitTolerance:0,e=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,t,e,i,null)},Lt.prototype.getEventCoordinate=function(t){return this.getCoordinateFromPixel(this.getEventPixel(t))},Lt.prototype.getEventCoordinateInternal=function(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))},Lt.prototype.getEventPixel=function(t){var e=this.viewport_.getBoundingClientRect(),t="changedTouches"in t?t.changedTouches[0]:t;return[t.clientX-e.left,t.clientY-e.top]},Lt.prototype.getTarget=function(){return this.get(et)},Lt.prototype.getTargetElement=function(){var t=this.getTarget();return void 0!==t?"string"==typeof t?document.getElementById(t):t:null},Lt.prototype.getCoordinateFromPixel=function(t){return Object(Et.l)(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())},Lt.prototype.getCoordinateFromPixelInternal=function(t){var e=this.frameState_;return e?Object(o.a)(e.pixelToCoordinateTransform,t.slice()):null},Lt.prototype.getControls=function(){return this.controls},Lt.prototype.getOverlays=function(){return this.overlays_},Lt.prototype.getOverlayById=function(t){t=this.overlayIdIndex_[t.toString()];return void 0!==t?t:null},Lt.prototype.getInteractions=function(){return this.interactions},Lt.prototype.getLayerGroup=function(){return this.get(tt)},Lt.prototype.getLayers=function(){return this.getLayerGroup().getLayers()},Lt.prototype.getLoading=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,n=t.length;e<n;++e){var i=t[e].layer.getSource();if(i&&i.loading)return!0}return!1},Lt.prototype.getPixelFromCoordinate=function(t){t=Object(Et.e)(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(t)},Lt.prototype.getPixelFromCoordinateInternal=function(t){var e=this.frameState_;return e?Object(o.a)(e.coordinateToPixelTransform,t.slice(0,2)):null},Lt.prototype.getRenderer=function(){return this.renderer_},Lt.prototype.getSize=function(){return this.get("size")},Lt.prototype.getView=function(){return this.get(nt)},Lt.prototype.getViewport=function(){return this.viewport_},Lt.prototype.getOverlayContainer=function(){return this.overlayContainer_},Lt.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},Lt.prototype.getOwnerDocument=function(){return this.getTargetElement()?this.getTargetElement().ownerDocument:document},Lt.prototype.getTilePriority=function(t,e,n,i){return function(t,e,n,i,r){if(!(t&&n in t.wantedTiles))return 1/0;if(!t.wantedTiles[n][e.getKey()])return 1/0;e=t.viewState.center,t=i[0]-e[0],e=i[1]-e[1];return 65536*Math.log(r)+Math.sqrt(t*t+e*e)/r}(this.frameState_,t,e,n,i)},Lt.prototype.handleBrowserEvent=function(t,e){e=e||t.type,t=new K(e,this,t);this.handleMapBrowserEvent(t)},Lt.prototype.handleMapBrowserEvent=function(t){if(this.frameState_){var e=t.originalEvent,n=e.type;if(n===Z||n===W.a.WHEEL||n===W.a.KEYDOWN){var i=this.getOwnerDocument(),n=this.viewport_.getRootNode?this.viewport_.getRootNode():i,e="host"in n?n.elementFromPoint(e.clientX,e.clientY):e.target;if(this.overlayContainerStopEvent_.contains(e)||!(n===i?i.documentElement:n).contains(e))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t))for(var r=this.getInteractions().getArray().slice(),o=r.length-1;0<=o;o--){var a=r[o];
1if(a.getMap()===this&&a.getActive()&&this.getTargetElement()&&(!a.handleEvent(t)||t.propagationStopped))break}}},Lt.prototype.handlePostRender=function(){var t,e,n,i=this.frameState_,r=this.tileQueue_;r.isEmpty()||(n=e=this.maxTilesLoading_,!i||((t=i.viewHints)[Ct.a.ANIMATING]||t[Ct.a.INTERACTING])&&(e=(t=!J.c&&8<Date.now()-i.time)?0:8,n=t?0:2),r.getTilesLoading()<e&&(r.reprioritize(),r.loadMoreTiles(e,n))),!i||!this.hasListener(I.a.RENDERCOMPLETE)||i.animate||this.tileQueue_.getTilesLoading()||this.getLoading()||this.renderer_.dispatchRenderEvent(I.a.RENDERCOMPLETE,i);for(var o=this.postRenderFunctions_,a=0,s=o.length;a<s;++a)o[a](this,i);o.length=0},Lt.prototype.handleSizeChanged_=function(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()},Lt.prototype.handleTargetChanged_=function(){if(this.getTarget()&&(i=this.getTargetElement()),this.mapBrowserEventHandler_){for(var t=0,e=this.keyHandlerKeys_.length;t<e;++t)Object(M.c)(this.keyHandlerKeys_[t]);this.keyHandlerKeys_=null,this.viewport_.removeEventListener(W.a.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(W.a.WHEEL,this.boundHandleBrowserEvent_),void 0!==this.handleResize_&&(removeEventListener(W.a.RESIZE,this.handleResize_,!1),this.handleResize_=void 0),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,Object(A.e)(this.viewport_)}if(i){for(var n in i.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new $(this,this.moveTolerance_),q.a)this.mapBrowserEventHandler_.addEventListener(q.a[n],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(W.a.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(W.a.WHEEL,this.boundHandleBrowserEvent_,!!J.e&&{passive:!1});var i=this.keyboardEventTarget_||i;this.keyHandlerKeys_=[Object(M.a)(i,W.a.KEYDOWN,this.handleBrowserEvent,this),Object(M.a)(i,W.a.KEYPRESS,this.handleBrowserEvent,this)],this.handleResize_||(this.handleResize_=this.updateSize.bind(this),window.addEventListener(W.a.RESIZE,this.handleResize_,!1))}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()},Lt.prototype.handleTileChange_=function(){this.render()},Lt.prototype.handleViewPropertyChanged_=function(){this.render()},Lt.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&(Object(M.c)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(Object(M.c)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var t=this.getView();t&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=Object(M.a)(t,j.a.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=Object(M.a)(t,W.a.CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()},Lt.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(M.c),this.layerGroupPropertyListenerKeys_=null);var t=this.getLayerGroup();t&&(this.layerGroupPropertyListenerKeys_=[Object(M.a)(t,j.a.PROPERTYCHANGE,this.render,this),Object(M.a)(t,W.a.CHANGE,this.render,this)]),this.render()},Lt.prototype.isRendered=function(){return!!this.frameState_},Lt.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},Lt.prototype.redrawText=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,n=t.length;e<n;++e){var i=t[e].layer;i.hasRenderer()&&i.getRenderer().handleFontsChanged()}},Lt.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},Lt.prototype.removeControl=function(t){return this.getControls().remove(t)},Lt.prototype.removeInteraction=function(t){return this.getInteractions().remove(t)},Lt.prototype.removeLayer=function(t){return this.getLayerGroup().getLayers().remove(t)},Lt.prototype.removeOverlay=function(t){return this.getOverlays().remove(t)},Lt.prototype.renderFrame_=function(t){var e,n=this,i=this.getSize(),r=this.getView(),o=this.frameState_,a=null;void 0!==i&&Object(Tt.a)(i)&&r&&r.isDef()&&(e=r.getHints(this.frameState_?this.frameState_.viewHints:void 0),r=r.getState(),a={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:Object(C.z)(r.center,r.resolution,r.rotation,i),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:i,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:r,viewHints:e,wantedTiles:{}}),this.frameState_=a,this.renderer_.renderFrame(a),a&&(a.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,a.postRenderFunctions),o&&(this.previousExtent_&&(Object(C.H)(this.previousExtent_)||Object(C.p)(a.extent,this.previousExtent_))||(this.dispatchEvent(new H(Q.a.MOVESTART,this,o)),this.previousExtent_=Object(C.l)(this.previousExtent_))),!this.previousExtent_||a.viewHints[Ct.a.ANIMATING]||a.viewHints[Ct.a.INTERACTING]||Object(C.p)(a.extent,this.previousExtent_)||(this.dispatchEvent(new H(Q.a.MOVEEND,this,a)),Object(C.d)(a.extent,this.previousExtent_))),this.dispatchEvent(new H(Q.a.POSTRENDER,this,a)),this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout(function(){n.postRenderTimeoutHandle_=void 0,n.handlePostRender()},0))},Lt.prototype.setLayerGroup=function(t){this.set(tt,t)},Lt.prototype.setSize=function(t){this.set("size",t)},Lt.prototype.setTarget=function(t){this.set(et,t)},Lt.prototype.setView=function(t){this.set(nt,t)},Lt.prototype.updateSize=function(){var t,e=this.getTargetElement();e?(t=getComputedStyle(e),this.setSize([e.offsetWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)-parseFloat(t.borderRightWidth),e.offsetHeight-parseFloat(t.borderTopWidth)-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)-parseFloat(t.borderBottomWidth)])):this.setSize(void 0),this.updateViewportSize_()},Lt.prototype.updateViewportSize_=function(){var t,e,n=this.getView();n&&(t=void 0,(e=getComputedStyle(this.viewport_)).width&&e.height&&(t=[parseInt(e.width,10),parseInt(e.height,10)]),n.setVie
1wportSize(t))},Lt),S=(xt=function(t,e){return(xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}xt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),z=(bt=F.a,S(At,bt),At.prototype.disposeInternal=function(){Object(A.e)(this.element),bt.prototype.disposeInternal.call(this)},At.prototype.getMap=function(){return this.map_},At.prototype.setMap=function(t){this.map_&&Object(A.e)(this.element);for(var e=0,n=this.listenerKeys.length;e<n;++e)Object(M.c)(this.listenerKeys[e]);this.listenerKeys.length=0,this.map_=t,this.map_&&((this.target_||t.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==a.c&&this.listenerKeys.push(Object(M.a)(t,Q.a.POSTRENDER,this.render,this)),t.render())},At.prototype.render=function(t){},At.prototype.setTarget=function(t){this.target_="string"==typeof t?document.getElementById(t):t},At),St=n(12),jt=((vt=function(t,e){return(vt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}vt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(Mt,_t=z),Mt.prototype.collectSourceAttributions_=function(t){for(var e={},n=[],i=!0,r=t.layerStatesArray,o=0,a=r.length;o<a;++o){var s=r[o];if(Object(E.b)(s,t.viewState)){var l=s.layer.getSource();if(l){s=l.getAttributions();if(s){var c=s(t);if(c)if(i=i&&!1!==l.getAttributionsCollapsible(),Array.isArray(c))for(var u=0,h=c.length;u<h;++u)c[u]in e||(n.push(c[u]),e[c[u]]=!0);else c in e||(n.push(c),e[c]=!0)}}}}return this.overrideCollapsible_||this.setCollapsible(i),n},Mt.prototype.updateElement_=function(t){if(t){var e=this.collectSourceAttributions_(t),t=0<e.length;if(this.renderedVisible_!=t&&(this.element.style.display=t?"":"none",this.renderedVisible_=t),!Object(St.b)(e,this.renderedAttributions_)){Object(A.d)(this.ulElement_);for(var n=0,i=e.length;n<i;++n){var r=document.createElement("li");r.innerHTML=e[n],this.ulElement_.appendChild(r)}this.renderedAttributions_=e}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},Mt.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_},Mt.prototype.handleToggle_=function(){this.element.classList.toggle(P.a),this.collapsed_?Object(A.g)(this.collapseLabel_,this.label_):Object(A.g)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_},Mt.prototype.getCollapsible=function(){return this.collapsible_},Mt.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())},Mt.prototype.setCollapsed=function(t){this.userCollapsed_=t,this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},Mt.prototype.getCollapsed=function(){return this.collapsed_},Mt.prototype.render=function(t){this.updateElement_(t.frameState)},Mt),Dt=n(23),It=((mt=function(t,e){return(mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}mt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(kt,yt=z),kt.prototype.handleClick_=function(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},kt.prototype.resetNorth_=function(){var t,e=this.getMap().getView();!e||void 0!==(t=e.getRotation())&&(0<this.duration_&&t%(2*Math.PI)!=0?e.animate({rotation:0,duration:this.duration_,easing:Dt.b}):e.setRotation(0))},kt.prototype.render=function(t){var e,n=t.frameState;n&&((e=n.viewState.rotation)!=this.rotation_&&(t="rotate("+e+"rad)",this.autoHide_&&((n=this.element.classList.contains(P.c))||0!==e?n&&0!==e&&this.element.classList.remove(P.c):this.element.classList.add(P.c)),this.label_.style.transform=t),this.rotation_=e)},kt),Rt=((gt=function(t,e){return(gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}gt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(Pt,ft=z),Pt.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},Pt.prototype.zoomByDelta_=function(t){var e,n=this.getMap().getView();
1!n||void 0!==(e=n.getZoom())&&(t=n.getConstrainedZoom(e+t),0<this.duration_?(n.getAnimating()&&n.cancelAnimations(),n.animate({zoom:t,duration:this.duration_,easing:Dt.b})):n.setZoom(t))},Pt);function Pt(t){var e=this,n=t||{},e=ft.call(this,{element:document.createElement("div"),target:n.target})||this,i=void 0!==n.className?n.className:"ol-zoom",r=void 0!==n.delta?n.delta:1,o=void 0!==n.zoomInClassName?n.zoomInClassName:i+"-in",a=void 0!==n.zoomOutClassName?n.zoomOutClassName:i+"-out",s=void 0!==n.zoomInLabel?n.zoomInLabel:"+",l=void 0!==n.zoomOutLabel?n.zoomOutLabel:"â",c=void 0!==n.zoomInTipLabel?n.zoomInTipLabel:"Zoom in",u=void 0!==n.zoomOutTipLabel?n.zoomOutTipLabel:"Zoom out",t=document.createElement("button");t.className=o,t.setAttribute("type","button"),t.title=c,t.appendChild("string"==typeof s?document.createTextNode(s):s),t.addEventListener(W.a.CLICK,e.handleClick_.bind(e,r),!1);s=document.createElement("button");s.className=a,s.setAttribute("type","button"),s.title=u,s.appendChild("string"==typeof l?document.createTextNode(l):l),s.addEventListener(W.a.CLICK,e.handleClick_.bind(e,-r),!1);r=i+" "+P.e+" "+P.b,i=e.element;return i.className=r,i.appendChild(t),i.appendChild(s),e.duration_=void 0!==n.duration?n.duration:250,e}function kt(t){var e=this,n=t||{},e=yt.call(this,{element:document.createElement("div"),render:n.render,target:n.target})||this,i=void 0!==n.className?n.className:"ol-rotate",r=void 0!==n.label?n.label:"â§",t=void 0!==n.compassClassName?n.compassClassName:"ol-compass";e.label_=null,"string"==typeof r?(e.label_=document.createElement("span"),e.label_.className=t,e.label_.textContent=r):(e.label_=r,e.label_.classList.add(t));r=n.tipLabel||"Reset rotation",t=document.createElement("button");t.className=i+"-reset",t.setAttribute("type","button"),t.title=r,t.appendChild(e.label_),t.addEventListener(W.a.CLICK,e.handleClick_.bind(e),!1);r=i+" "+P.e+" "+P.b,i=e.element;return i.className=r,i.appendChild(t),e.callResetNorth_=n.resetNorth||void 0,e.duration_=void 0!==n.duration?n.duration:250,e.autoHide_=void 0===n.autoHide||n.autoHide,e.rotation_=void 0,e.autoHide_&&e.element.classList.add(P.c),e}function Mt(t){var e=this,n=t||{};(e=_t.call(this,{element:document.createElement("div"),render:n.render,target:n.target})||this).ulElement_=document.createElement("ul"),e.collapsed_=void 0===n.collapsed||n.collapsed,e.userCollapsed_=e.collapsed_,e.overrideCollapsible_=void 0!==n.collapsible,e.collapsible_=void 0===n.collapsible||n.collapsible,e.collapsible_||(e.collapsed_=!1);var i=void 0!==n.className?n.className:"ol-attribution",r=void 0!==n.tipLabel?n.tipLabel:"Attributions",o=void 0!==n.expandClassName?n.expandClassName:i+"-expand",a=void 0!==n.collapseLabel?n.collapseLabel:"»",t=void 0!==n.collapseClassName?n.collapseClassName:i+"-collpase";"string"==typeof a?(e.collapseLabel_=document.createElement("span"),e.collapseLabel_.textContent=a,e.collapseLabel_.className=t):e.collapseLabel_=a;n=void 0!==n.label?n.label:"i";"string"==typeof n?(e.label_=document.createElement("span"),e.label_.textContent=n,e.label_.className=o):e.label_=n;o=e.collapsible_&&!e.collapsed_?e.collapseLabel_:e.label_,n=document.createElement("button");n.setAttribute("type","button"),n.title=r,n.appendChild(o),n.addEventListener(W.a.CLICK,e.handleClick_.bind(e),!1);o=i+" "+P.e+" "+P.b+(e.collapsed_&&e.collapsible_?" "+P.a:"")+(e.collapsible_?"":" ol-uncollapsible"),i=e.element;return i.className=o,i.appendChild(e.ulElement_),i.appendChild(n),e.renderedAttributions_=[],e.renderedVisible_=!0,e}function At(t){var e=bt.call(this)||this,n=t.element;return!n||t.target||n.style.pointerEvents||(n.style.pointerEvents="auto"),e.element=n||null,e.target_=null,e.map_=null,e.listenerKeys=[],t.render&&(e.render=t.render),t.target&&e.setTarget(t.target),e}function Lt(t){var e=Ot.call(this)||this,n=function(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var n,i,r={},o=t.layers&&"function"==typeof t.layers.getLayers?t.layers:new V({layers:t.layers});return r[tt]=o,r[et]=t.target,r.view=void 0!==t.view?t.view:new wt.a,{controls:n=void 0!==t.controls?Array.isArray(t.controls)?new N.a(t.controls.slice()):(Object(Y.a)("function"==typeof t.controls.getArray,47),t.controls):n,interactions:i=void 0!==t.interactions?Array.isArray(t.interactions)?new
1N.a(t.interactions.slice()):(Object(Y.a)("function"==typeof t.interactions.getArray,48),t.interactions):i,keyboardEventTarget:e,overlays:void 0!==t.overlays?Array.isArray(t.overlays)?new N.a(t.overlays.slice()):(Object(Y.a)("function"==typeof t.overlays.getArray,49),t.overlays):new N.a,values:r}}(t);return e.boundHandleBrowserEvent_=e.handleBrowserEvent.bind(e),e.maxTilesLoading_=void 0!==t.maxTilesLoading?t.maxTilesLoading:16,e.pixelRatio_=void 0!==t.pixelRatio?t.pixelRatio:J.a,e.postRenderTimeoutHandle_,e.animationDelayKey_,e.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(e),e.coordinateToPixelTransform_=Object(o.c)(),e.pixelToCoordinateTransform_=Object(o.c)(),e.frameIndex_=0,e.frameState_=null,e.previousExtent_=null,e.viewPropertyListenerKey_=null,e.viewChangeListenerKey_=null,e.layerGroupPropertyListenerKeys_=null,e.viewport_=document.createElement("div"),e.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),e.viewport_.style.position="relative",e.viewport_.style.overflow="hidden",e.viewport_.style.width="100%",e.viewport_.style.height="100%",e.overlayContainer_=document.createElement("div"),e.overlayContainer_.style.position="absolute",e.overlayContainer_.style.zIndex="0",e.overlayContainer_.style.width="100%",e.overlayContainer_.style.height="100%",e.overlayContainer_.style.pointerEvents="none",e.overlayContainer_.className="ol-overlaycontainer",e.viewport_.appendChild(e.overlayContainer_),e.overlayContainerStopEvent_=document.createElement("div"),e.overlayContainerStopEvent_.style.position="absolute",e.overlayContainerStopEvent_.style.zIndex="0",e.overlayContainerStopEvent_.style.width="100%",e.overlayContainerStopEvent_.style.height="100%",e.overlayContainerStopEvent_.style.pointerEvents="none",e.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",e.viewport_.appendChild(e.overlayContainerStopEvent_),e.mapBrowserEventHandler_=null,e.moveTolerance_=t.moveTolerance,e.keyboardEventTarget_=n.keyboardEventTarget,e.keyHandlerKeys_=null,e.controls=n.controls||new N.a,e.interactions=n.interactions||new N.a,e.overlays_=n.overlays,e.overlayIdIndex_={},e.renderer_=null,e.handleResize_,e.postRenderFunctions_=[],e.tileQueue_=new rt(e.getTilePriority.bind(e),e.handleTileChange_.bind(e)),e.addEventListener(Object(F.b)(tt),e.handleLayerGroupChanged_),e.addEventListener(Object(F.b)(nt),e.handleViewChanged_),e.addEventListener(Object(F.b)("size"),e.handleSizeChanged_),e.addEventListener(Object(F.b)(et),e.handleTargetChanged_),e.setProperties(n.values),e.controls.forEach(function(t){t.setMap(this)}.bind(e)),e.controls.addEventListener(G.a.ADD,function(t){t.element.setMap(this)}.bind(e)),e.controls.addEventListener(G.a.REMOVE,function(t){t.element.setMap(null)}.bind(e)),e.interactions.forEach(function(t){t.setMap(this)}.bind(e)),e.interactions.addEventListener(G.a.ADD,function(t){t.element.setMap(this)}.bind(e)),e.interactions.addEventListener(G.a.REMOVE,function(t){t.element.setMap(null)}.bind(e)),e.overlays_.forEach(e.addOverlayInternal_.bind(e)),e.overlays_.addEventListener(G.a.ADD,function(t){this.addOverlayInternal_(t.element)}.bind(e)),e.overlays_.addEventListener(G.a.REMOVE,function(t){var e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)}.bind(e)),e}var Ft,Nt,Gt,Wt=n(32),S=(Gt=function(t,e){return(Gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Gt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),zt=(Nt=Wt.a,S(Yt,Nt),Yt.prototype.handleEvent=function(t){var e,n,i,r=!1;return t.type==q.a.DBLCLICK&&(e=t.originalEvent,i=t.map,n=t.coordinate,t=e.shiftKey?-this.delta_:this.delta_,i=i.getView(),Object(Wt.c)(i,t,n,this.duration_),e.preventDefault(),r=!0),!r},Yt),z=(Ft=function(t,e){return(Ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Ft(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function Yt(t){var e=Nt.call(this)||this,t=t||{};return e.delta_=t.delta||1,e.duration_=void 0!==t.duration?t.duration:250,e}function Ut(t){for(var e=t.length,n=0,i=0,r=0;r<e;r++)n+=t[r].clientX,i+=t[r].clientY;return[n/e,i/e]}var Xt,Bt,Vt,Ht,Kt,qt,Zt,Jt,$t,Qt,te,ee,ne,ie,re,oe,ae,se,le,ce,ue,he,S=(he=Wt.a,z(Ge,he),Ge.prototype.getPointerCount=function(){return this.targetPointers.length},Ge.prototype.handleDownEvent=function(t){return!1},Ge.prototype.handleDragEvent=function(t){},Ge.prototype.handleEvent=function(t){if(!t.originalEvent)return!0;var e,n=!1;return this.updateTrackedPointers_(t),this.handlingDownUpSequence?t.type==q.a.POINTERDRAG?(this.handleDragEvent(t),t.originalEvent.preventDefault()):t.type==q.a.POINTERUP&&(e=this.handleUpEvent(t),this.handlingDownUpSequence=e&&0<this.targetPointers.length):t.type==q.a.POINTERDOWN?(e=this.handleDownEvent(t),this.handlingDownUpSequence=e,n=this.stopDown(e)):t.type==q.a.POINTERMOVE&&this.handleMoveEvent(t),!n},Ge.prototype.handleMoveEvent=function(t){},Ge.prototype.handleUpEvent=function(t){return!1},Ge.prototype.stopDown=function(t){return t},Ge.prototype.updateTrackedPointers_=function(t){var e,n;(n=t.type)!==q.a.POINTERDOWN&&n!==q.a.POINTERDRAG&&n!==q.a.POINTERUP||(n=(e=t.originalEvent).pointerId.toString(),t.type==q.a.POINTERUP?delete this.trackedPointers_[n]:(t.type==q.a.POINTERDOWN||n in this.trackedPointers_)&&(this.trackedPointers_[n]=e),this.targetPointers=Object(U.c)(this.trackedPointers_))},Ge),pe=n(18),de=((ue=function(t,e){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}ue(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(Ne,ce=S),Ne.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var e,n,i=this.targetPointers,r=Ut(i);i.length==this.lastPointersCount_?(this.kinetic_&&this.kinetic_.update(r[0],r[1]),this.lastCentroid&&(e=[this.lastCentroid[0]-r[0],r[1]-this.lastCentroid[1]],n=t.map.getView(),Ob
1ject(T.e)(e,n.getResolution()),Object(T.d)(e,n.getRotation()),n.adjustCenterInternal(e))):this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=r,this.lastPointersCount_=i.length,t.originalEvent.preventDefault()},Ne.prototype.handleUpEvent=function(t){var e,n,i=t.map,r=i.getView();return 0!==this.targetPointers.length?(this.kinetic_&&this.kinetic_.begin(),!(this.lastCentroid=null)):(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()&&(e=this.kinetic_.getDistance(),n=this.kinetic_.getAngle(),t=r.getCenterInternal(),t=i.getPixelFromCoordinateInternal(t),n=i.getCoordinateFromPixelInternal([t[0]-e*Math.cos(n),t[1]-e*Math.sin(n)]),r.animateInternal({center:r.getConstrainedCenter(n),duration:500,easing:Dt.b})),this.panning_&&(this.panning_=!1,r.endInteraction()),!1)},Ne.prototype.handleDownEvent=function(t){if(0<this.targetPointers.length&&this.condition_(t)){t=t.map.getView();return this.lastCentroid=null,t.getAnimating()&&t.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=1<this.targetPointers.length,!0}return!1},Ne),fe=n(48),ge=((le=function(t,e){return(le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}le(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(Fe,se=S),Fe.prototype.handleDragEvent=function(t){var e,n;!Object(pe.f)(t)||(e=(n=t.map).getView()).getConstraints().rotation!==fe.c&&(n=n.get
1Size(),t=t.pixel,t=Math.atan2(n[1]/2-t[1],t[0]-n[0]/2),void 0!==this.lastAngle_&&(n=t-this.lastAngle_,e.adjustRotationInternal(-n)),this.lastAngle_=t)},Fe.prototype.handleUpEvent=function(t){return!Object(pe.f)(t)||(t.map.getView().endInteraction(this.duration_),!1)},Fe.prototype.handleDownEvent=function(t){return!(!Object(pe.f)(t)||!Object(pe.e)(t)||!this.condition_(t)||(t.map.getView().beginInteraction(),this.lastAngle_=void 0))},Fe),ye=n(70),z=(ae=function(t,e){return(ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}ae(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),me=(oe=r.a,z(Le,oe),Le.prototype.disposeInternal=function(){this.setMap(null)},Le.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,n=this.element_.style;n.left=Math.min(t[0],e[0])+"px",n.top=Math.min(t[1],e[1])+"px",n.width=Math.abs(e[0]-t[0])+"px",n.height=Math.abs(e[1]-t[1])+"px"},Le.prototype.setMap=function(t){var e;this.map_&&(this.map_.getOverlayContainer().removeChild(this.element_),(e=this.element_.style).left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"),this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},Le.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},Le.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,e=this.endPixel_,t=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);t[4]=t[0].slice(),this.geometry_?this.geometry_.setCoordinates([t]):this.geometry_=new ye.a([t])},Le.prototype.getGeometry=function(){return this.geometry_},Le),z=(re=function(t,e){return(re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}re(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),_e=(ie=c.a,z(Ae,ie),Ae),z=(z(Me,ne=S),Me.prototype.defaultBoxEndCondition=function(t,e,n){var i=n[0]-e[0],e=n[1]-e[1];return i*i+e*e>=this.minArea_},Me.prototype.getGeometry=function(){return this.box_.getGeometry()},Me.prototype.handleDragEvent=function(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new _e("boxdrag",t.coordinate,t))},Me.prototype.handleUpEvent=function(t){this.box_.setMap(null);var e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new _e(e?"boxend":"boxcancel",t.coordinate,t)),!1},Me.prototype.handleDownEvent=function(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new _e("boxstart",t.coordinate,t)),!0)},Me.prototype.onBoxEnd=function(t){},Me),ve=((ee=function(t,e){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}ee(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(ke,te=z),ke.prototype.onBoxEnd=function(t){var e,n=this.getMap(),i=n.getView(),r=n.getSize(),o=this.getGeometry().getExtent();this.out_&&(e=i.calculateExtentInternal(r),n=Object(C.n)([n.getPixelFromCoordinateInternal(Object(C.v)(o)),n.getPixelFromCoordinateInternal(Object(C.D)(o))]),n=i.getResolutionForExtentInternal(n,r),Object(C.J)(e,1/n),o=e);r=i.getConstrainedResolution(i.getResolutionForExtentInternal(o,r)),o=i.getConstrainedCenter(Object(C.x)(o),r);i.animateInternal({resolution:r,center:o,duration:this.duration_,easing:Dt.b})},ke),z=(Qt=function(t,e){return(Qt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Qt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),be=($t=Wt.a,z(Pe,$t),Pe.prototype.handleEvent=function(t){var e,n,i,r,o,a=!1;return t.type==W.a.KEYDOWN&&(n=(e=t.originalEvent).keyCode,!this.condition_(t)||40!=n&&37!=n&&39!=n&&38!=n||(r=(i=t.map.getView()).getResolution()*this.pixelDelta_,t=o=0,40==n?t=-r:37==n?o=-r:39==n?o=r:t=r,t=[o,t],Object(T.d)(t,i.getRotation()),Object(Wt.b)(i,t,this.duration_),e.preventDefault(),a=!0)),!a},Pe),z=(Jt=function(t,e){return(Jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Jt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),xe=(Zt=Wt.a,z(Re,Zt),Re.prototype.handleEvent=function(t){var e,n,i=!1;return t.type!=W.a.KEYDOWN&&t.type!=W.a.KEYPRESS||(n=(e=t.originalEvent).charCode,!this.condition_(t)||n!="+".charCodeAt(0)&&n!="-".charCodeAt(0)||(t=t.map,n=n=="+".charCodeAt(0)?this.delta_:-this.delta_,t=t.getView(),Ob
1ject(Wt.c)(t,n,void 0,this.duration_),e.preventDefault(),i=!0)),!i},Re),Oe=(Ie.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},Ie.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},Ie.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[2+e]<t)return!1;for(var n=e-3;0<n&&this.points_[n+2]>t;)n-=3;var i=this.points_[2+e]-this.points_[n+2];if(i<1e3/60)return!1;var r=this.points_[e]-this.points_[n],e=this.points_[1+e]-this.points_[n+1];return this.angle_=Math.atan2(e,r),this.initialVelocity_=Math.sqrt(r*r+e*e)/i,this.initialVelocity_>this.minVelocity_},Ie.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},Ie.prototype.getAngle=function(){return this.angle_},Ie),we=n(4),n=(qt=function(t,e){return(qt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}qt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Ce=(Kt=Wt.a,n(De,Kt),De.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0,this.getMap().getView().endInteraction(void 0,this.lastDelta_?0<this.lastDelta_?1:-1:0,this.lastAnchor_)},De.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;if(t.type!==W.a.WHEEL)return!0;var e,n=t.map,i=t.originalEvent;if(i.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==W.a.WHEEL&&(e=i.deltaY,J.b&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=J.a),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)),0===e)return!1;this.lastDelta_=e;t=Date.now();void 0===this.startTime_&&(this.startTime_=t),(!this.mode_||t-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(e)<4?"trackpad":"wheel");i=n.getView();if("trackpad"===this.mode_&&!i.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(i.getAnimating()&&i.cancelAnimations(),i.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),i.adjustZoom(-e/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=t,!1;this.totalDelta_+=e;t=Math.max(this.timeout_-(t-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),t),!1},De.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();t=-Object(we.a)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(t=t?0<t?1:-1:0),Object(Wt.c)(e,t,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},De.prototype.setMouseAnchor=function(t){(this.useAnchor_=t)||(this.lastAnchor_=null)},De),Ee=((Ht=function(t,e){return(Ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Ht(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(je,Vt=S),je.prototype.handleDragEvent=function(t){var e=0,n=this.targetPointers[0],i=this.targetPointers[1],i=Math.atan2(i.clientY-n.clientY,i.clientX-n.clientX);void 0!==this.lastAngle_&&(r=i-this.lastAngle_,this.rotationDelta_+=r,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=r),this.lastAngle_=i;var n=t.map,r=n.getView();r.getConstraints().rotation!==fe.c&&(i=n.getViewport().getBoundingClientRect(),(t=Ut(this.targetPointers))[0]-=i.left,t[1]-=i.top,this.anchor_=n.getCoordinateFromPixelInternal(t),this.rotating_&&(n.render(),r.adjustRotationInternal(e,this.anchor_)))},je.prototype.handleUpEvent=function(t){return!(this.targetPointers.length<2&&(t.map.getView().endInteraction(this.duration_),1))},je.prototype.handleDownEvent=function(t){if(2<=this.targetPointers.length){t=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1},je),Te=((Bt=function(t,e){return(Bt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Bt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(Se,Xt=S),Se.prototype.handleDragEvent=function(t){var e=1,n=this.targetPointers[0],i=this.targetPointers[1],r=n.clientX-i.clientX,n=n.clientY-i.clientY,i=Math.sqrt(r*r+n*n);void 0!==this.lastDistance_&&(e=this.lastDistance_/i),this.lastDistance_=i;r=t.map,n=r.getView();1!=e&&(this.lastScaleDelta_=e);i=r.getViewport().getBoundingClientRect(),t=Ut(this.targetPointers);t[0]-=i.left,t[1]-=i.top,this.anchor_=r.getCoordinateFromPixelInternal(t),r.render(),n.adjustResolutionInternal(e,this.anchor_)},Se.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map.getView(),t=1<this.lastScaleDelta_?1:-1;return e.endInteraction(this.duration_,t),!1}return!0},Se.prototype.handleDownEvent=function(t){if(2<=this.targetPointers.length){t=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1},Se);function Se(t){var e=this,n=t||{},t=n;return t.stopDown||(t.stopDown=a.a),(e=Xt.call(this,t)||this).anchor_=null,e.duration_=void 0!==n.duration?n.duration:400,e.lastDistance_=void 0,e.lastScaleDelta_=1,e}function je(t){var e=this,n=t||{},t=n;return t.stopDown||(t.stopDown=a.a),(e=Vt.call(this,t)||this).anchor_=null,e.lastAngle_=void 0,e.rotating_=!1,e.rotationDelta_=0,e.threshold_=void 0!==n.threshold?n.threshold:.3,e.duration_=void 0!==n.duration?n.duration:250,e}function De(t){var e=this,n=t||{};(e=Kt.call(this,n)||this).totalDelta_=0,e.lastDelta_=0,e.maxDelta_=void 0!==n.maxDelta?n.maxDelta:1,e.duration_=void 0!==n.duration?n.duration:250,e.timeout_=void 0!==n.timeout?n.timeout:80,e.useAnchor_=void 0===n.useAnchor||n.useAnchor,e.constrainResolution_=void 0!==n.constrainResolution&&n.c
1onstrainResolution;t=n.condition||pe.c;return e.condition_=n.onFocusOnly?Object(pe.a)(pe.d,t):t,e.lastAnchor_=null,e.startTime_=void 0,e.timeoutId_,e.mode_=void 0,e.trackpadEventGap_=400,e.trackpadTimeoutId_,e.deltaPerZoom_=300,e}function Ie(t,e,n){this.decay_=t,this.minVelocity_=e,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}function Re(t){var e=Zt.call(this)||this,t=t||{};return e.condition_=t.condition||pe.l,e.delta_=t.delta||1,e.duration_=void 0!==t.duration?t.duration:100,e}function Pe(t){var e=$t.call(this)||this,t=t||{};return e.defaultCondition_=function(t){return Object(pe.h)(t)&&Object(pe.l)(t)},e.condition_=void 0!==t.condition?t.condition:e.defaultCondition_,e.duration_=void 0!==t.duration?t.duration:100,e.pixelDelta_=void 0!==t.pixelDelta?t.pixelDelta:128,e}function ke(t){var e=this,n=t||{},t=n.condition||pe.j;return(e=te.call(this,{condition:t,className:n.className||"ol-dragzoom",minArea:n.minArea})||this).duration_=void 0!==n.duration?n.duration:200,e.out_=void 0!==n.out&&n.out,e}function Me(t){var e=ne.call(this)||this,t=t||{};return e.box_=new me(t.className||"ol-dragbox"),e.minArea_=void 0!==t.minArea?t.minArea:64,t.onBoxEnd&&(e.onBoxEnd=t.onBoxEnd),e.startPixel_=null,e.condition_=t.condition||pe.e,e.boxEndCondition_=t.boxEndCondition||e.defaultBoxEndCondition,e}function Ae(t,e,n){t=ie.call(this,t)||this;return t.coordinate=e,t.mapBrowserEvent=n,t}function Le(t){var e=oe.call(this)||this;return e.geometry_=null,e.element_=document.createElement("div"),e.element_.style.position="absolute",e.element_.style.pointerEvents="auto",e.element_.className="ol-box "+t,e.map_=null,e.startPixel_=null,e.endPixel_=null,e}function Fe(t){var e=this,t=t||{};return(e=se.call(this,{stopDown:a.a})||this).condition_=t.condition||pe.b,e.lastAngle_=void 0,e.duration_=void 0!==t.duration?t.duration:250,e}function Ne(t){var e=ce.call(this,{stopDown:a.a})||this,n=t||{};e.kinetic_=n.kinetic,e.lastCentroid=null,e.lastPointersCount_,e.panning_=!1;t=n.condition||Object(pe.a)(pe.h,pe.i);return e.condition_=n.onFocusOnly?Object(pe.a)(pe.d,t):t,e.noKinetic_=!1,e}function Ge(t){var e=this,t=t||{},e=he.call(this,t)||this;return t.handleDownEvent&&(e.handleDownEvent=t.handleDownEvent),t.handleDragEvent&&(e.handleDragEvent=t.handleDragEvent),t.handleMoveEvent&&(e.handleMoveEvent=t.handleMoveEvent),t.handleUpEvent&&(e.handleUpEvent=t.handleUpEvent),t.stopDown&&(e.stopDown=t.stopDown),e.handlingDownUpSequence=!1,e.trackedPointers_={},e.targetPointers=[],e}var We,ze,X=((ze=function(t,e){return(ze=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}ze(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(Ye,We=X),Ye.prototype.createRenderer=function(){return new L(this)},Ye);function Ye(t){return(t=Object(U.a)({},t)).controls||(t.controls=(n={},i=new N.a,void 0!==n.zoom&&!n.zoom||i.push(new Rt(n.zoomOptions)),void 0!==n.rotate&&!n.rotate||i.push(new It(n.rotateOptions)),void 0!==n.attribution&&!n.attribution||i.push(new jt(n.attributionOptions)),i)),t.interactions||(t.interactions=(e={onFocusOnly:!0},n=new N.a,i=new Oe(-.005,.05,100),void 0!==e.altShiftDragRotate&&!e.altShiftDragRotate||n.push(new ge),void 0!==e.doubleClickZoom&&!e.doubleClickZoom||n.push(new zt({delta:e.zoomDelta,duration:e.zoomDuration})),void 0!==e.dragPan&&!e.dragPan||n.push(new de({onFocusOnly:e.onFocusOnly,kinetic:i})),void 0!==e.pinchRotate&&!e.pinchRotate||n.push(new Ee),void 0!==e.pinchZoom&&!e.pinchZoom||n.push(new Te({duration:e.zoomDuration}
1)),void 0!==e.keyboard&&!e.keyboard||(n.push(new be),n.push(new xe({delta:e.zoomDelta,duration:e.zoomDuration}))),void 0!==e.mouseWheelZoom&&!e.mouseWheelZoom||n.push(new Ce({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration})),void 0!==e.shiftDragZoom&&!e.shiftDragZoom||n.push(new ve({duration:e.zoomDuration})),n)),We.call(this,t)||this;var e,n,i}e.a=X},function(t,e,n){"use strict";var i=n(13),r=n(2),C=n(29),d=n(30),o="center",a="resolution",s="rotation",E=n(60),T=n(8),v=n(15),f=n(24),l=n(9),c=n(11),S=n(4);function j(c,u,h){return function(t,e,n,i,r){if(t){var o=u?0:n[0]*e,a=u?0:n[1]*e,s=r?r[0]:0,l=r?r[1]:0,n=c[0]+o/2+s,r=c[2]-o/2+s,o=c[1]+a/2+l,s=c[3]-a/2+l;r<n&&(r=n=(r+n)/2),s<o&&(s=o=(s+o)/2);a=Object(S.a)(t[0],n,r),l=Object(S.a)(t[1],o,s),e=30*e;return i&&h&&(a+=-e*Math.log(1+Math.max(0,n-t[0])/e)+e*Math.log(1+Math.max(0,t[0]-r)/e),l+=-e*Math.log(1+Math.max(0,o-t[1])/e)+e*Math.log(1+Math.max(0,t[1]-s)/e)),[a,l]}}}function D(t){return t}var I=n(0),R=n(12);function P(t,e,n,i){var r=Object(I.E)(e)/n[0],n=Object(I.A)(e)/n[1];return i?Math.min(t,Math.max(r,n)):Math.min(t,Math.min(r,n))}function k(t,e,n){var i=Math.min(t,e);return i*=Math.log(1+50*Math.max(0,t/e-1))/50+1,n&&(i=Math.max(i,n),i/=Math.log(1+50*Math.max(0,n/t-1))/50+1),Object(S.a)(i,n/2,2*e)}function M(r,o,a,s,l){return function(t,e,n,i){if(void 0!==t){n=s?P(r,s,n,l):r;return(void 0===a||a)&&i?k(t,n,o):Object(S.a)(t,o,n)}}}var u,h,A=n(48),g=n(23),p=n(70),n=(u=function(t,e){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),n=(h=i.a,n(y,h),y.prototype.applyOptions_=function(e){var t,n,o,a,s,l,c,u,h,p,d,f,i,r,g,y,m,_,v,b,x=(O=void 0!==(t=e).minZoom?t.minZoom:0,i=void 0!==t.maxZoom?t.maxZoom:28,w=void 0!==t.zoomFactor?t.zoomFactor:2,r=void 0!==t.multiWorld&&t.multiWorld,g=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,y=void 0!==t.showFullExtent&&t.showFullExtent,m=Object(T.b)(t.projection,"EPSG:3857"),_=m.getExtent(),v=t.constrainOnlyCenter,b=t.extent,r||b||!m.isGlobal()||(v=!1,b=_),{constraint:void 0!==t.resolutions?(n=(r=t.resolutions)[O],x=void 0!==r[i]?r[i]:r[r.length-1],t.constrainResolution?(h=r,p=g,d=!v&&b,f=y,function(t,e,n,i){if(void 0!==t){var r=h[0],o=h[h.length-1],r=d?P(r,d,n,f):r;if(i)return void 0===p||p?k(t,r,o):Object(S.a)(t,o,r);t=Math.min(r,t),e=Math.floor(Object(R.f)(h,t,e));return h[e]>r&&e<h.length-1?h[e+1]:h[e]}}):M(n,x,g,!v&&b,y)):(m=(_=(_?Math.max(Object(I.E)(_),Object(I.A)(_)):360*T.a[C.b.DEGREES]/m.getMetersPerUnit())/E.b/Math.pow(2,0))/Math.pow(2,28),void 0!==(n=t.maxResolution)?O=0:n=_/Math.pow(w,O),void 0===(x=t.minResolution)&&(x=void 0!==t.maxZoom?void 0!==t.maxResolution?n/Math.pow(w,i):_/Math.pow(w,i):m),i=O+Math.floor(Math.log(n/x)/Math.log(w)),x=n/Math.pow(w,i-O),t.constrainResolution?(o=w,a=n,s=x,l=g,c=!v&&b,u=y,function(t,e,n,i){if(void 0!==t){var r=c?P(a,c,n,u):a,n=void 0!==s?s:0;if(i)return void 0===l||l?k(t,r,n):Object(S.a)(t,n,r);i=Math.ceil(Math.log(a/r)/Math.log(o)-1e-9),e=-e*(.5-1e-9)+.5,t=Math.min(r,t),e=Math.floor(Math.log(a/t)/Math.log(o)+e),e=Math.max(i,e),e=a/Math.pow(o,e);return Object(S.a)(e,n,r)}}):M(n,x,g,!v&&b,y)),maxResolution:n,minResolution:x,minZoom:O,zoomFactor:w});this.maxResolution_=x.maxResolution,this.minResolution_=x.minResolution,this.zoomFactor_=x.zoomFactor,this.resolutions_=e.resolutions,this.padding=e.padding,this.minZoom_=x.minZoom;var O=function(t){if(void 0!==t.extent){var e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return j(t.extent,t.constrainOnlyCenter,e)}e=Object(T.b)(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&e.isGlobal()){e=e.getExtent().slice();return e[0]=-1/0,e[2]=1/0,j(e,!1,!1)}return D}(e),w=x.constraint,x=function(){if(void 0===e.enableRotation||e.enableRotation){var t=e.constrainRotation;return void 0===t||!0===t?Object(A.b)():!1!==t&&"number"==typeof t?Object(A.a)(t):A.d}return A.c}();this.constraints_={center:O,resolution:w,rotation:x},this.setRotation(void 0!==e.rotation?e.rotation:0),this.setCenterInternal(void 0!==e.center?e.center:null),void 0!==e.resolution?this.setResolution(e.resolution):void 0!==e.zoom&&this.setZoom(e.zoom),this.setProperties({}),this.options_=e},y.prototype.getUpdatedOptions_=function(t){var e=Object(c.a)({},this.options_);return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),Object(c.a)({},e,t)},y.prototype.animate=function(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var e=new Array(arguments.length),n=0;n<e.length;++n){var i=arguments[n];i.center&&((i=Object(c.a)({},i)).center=Object(T.e)(i.center,this.getProjection())),i.anchor&&((i=Object(c.a)({},i)).anchor=Object(T.e)(i.anchor,this.getProjection())),e[n]=i}this.animateInternal.apply(this,e)},y.prototype.animateInternal=function(t){var e,n=arguments.length;if(1<n&&"function"==typeof arguments[n-1]&&(e=arguments[n-1],--n),!this.isDef()){var i=arguments[n-1];return i.center&&this.setCenterInternal(i.center),void 0!==i.zoom&&this.setZoom(i.zoom),void 0!==i.rotation&&this.setRotation(i.rotation),void(e&&b(e,!0))}for(var r=Date.now(),o=this.targetCenter_.slice(),a=this.targetResolution_,s=this.targetRotation_,l=[],c=0;c<n;++c){var u,h=arguments[c],p={start:r,complete:!1,anchor:h.anchor,duration:void 0!==h.duration?h.duration:1e3,easing:h.easing||g.c,callback:e};h.center&&(p.sourceCenter=o,p.targetCenter=h.center.slice(),o=p.targetCenter),void 0!==h.zoom?(p.sourceResolution=a,p.targetResolution=this.getResolutionForZoom(h.zoom),a=p.targetResolution):h.resolution&&(p.sourceResolution=a,p.targetResolution=h.resolution,a=p.targetResolution),void 0!==h.rotation&&(p.sourceRotation=s,u=Object(S.e)(h.rotation-s+Math.PI,2*Math.PI)-Math.PI,p.targetRotation=s+u,s=p.targetRotation),(u=p).sourceCenter&&u.targetCenter&&!Object(f.b)(u.sourceCenter,u.targetCenter)||u.sourceResolution!==u.targetResolution||u.sourceRotation!==u.targetRotation?r+=p.duration:p.complete=!0,l.push(p)}this.animations_.push(l),this.setHint(d.a.ANIMATING,1),this.updateAnimations_()},y.prototype.getAnimating=function(){return 0<this.hints_[d.a.ANIMATING]},y.prototype.getInteracting=function(){return 0<this.hints_[d.a.INTERACTING]},y.prototype.cancelAnimations=function(){var t;this.setHint(d.a.ANIMATING,-this.hints_[d.a.ANIMATING]);for(var e=0,n=this.animations_.length;e<n;++e){var i=this.animations_[e];
1if(i[0].callback&&b(i[0].callback,!1),!t)for(var r=0,o=i.length;r<o;++r){var a=i[r];if(!a.complete){t=a.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t},y.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var t=Date.now(),e=!1,n=this.animations_.length-1;0<=n;--n){for(var i,r=this.animations_[n],o=!0,a=0,s=r.length;a<s;++a){var l=r[a];if(!l.complete){var c=t-l.start,u=0<l.duration?c/l.duration:1;1<=u?(l.complete=!0,u=1):o=!1;var h,p,c=l.easing(u);if(l.sourceCenter&&(u=l.sourceCenter[0],h=l.sourceCenter[1],u=u+c*(l.targetCenter[0]-u),h=h+c*(l.targetCenter[1]-h),this.targetCenter_=[u,h]),l.sourceResolution&&l.targetResolution&&(p=1===c?l.targetResolution:l.sourceResolution+c*(l.targetResolution-l.sourceResolution),l.anchor&&(h=this.getViewportSize_(this.getRotation()),h=this.constraints_.resolution(p,0,h,!0),this.targetCenter_=this.calculateCenterZoom(h,l.anchor)),this.targetResolution_=p,this.applyTargetState_(!0)),void 0!==l.sourceRotation&&void 0!==l.targetRotation&&(p=1===c?Object(S.e)(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+c*(l.targetRotation-l.sourceRotation),l.anchor&&(c=this.constraints_.rotation(p,!0),this.targetCenter_=this.calculateCenterRotate(c,l.anchor)),this.targetRotation_=p),this.applyTargetState_(!0),e=!0,!l.complete)break}}o&&(this.animations_[n]=null,this.setHint(d.a.ANIMATING,-1),(i=r[0].callback)&&b(i,!0))}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},y.prototype.calculateCenterRotate=function(t,e){var n,i=this.getCenterInternal();return void 0!==i&&(n=[i[0]-e[0],i[1]-e[1]],Object(f.d)(n,t-this.getRotation()),Object(f.a)(n,e)),n},y.prototype.calculateCenterZoom=function(t,e){var n,i=this.getCenterInternal(),r=this.getResolution();return n=void 0!==i&&void 0!==r?[e[0]-t*(e[0]-i[0])/r,e[1]-t*(e[1]-i[1])/r]:n},y.prototype.getViewportSize_=function(t){var e=this.viewportSize_;if(t){var n=e[0],i=e[1];return[Math.abs(n*Math.cos(t))+Math.abs(i*Math.sin(t)),Math.abs(n*Math.sin(t))+Math.abs(i*Math.cos(t))]}return e},y.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},y.prototype.getCenter=function(){var t=this.getCenterInternal();return t&&Object(T.l)(t,this.getProjection())},y.prototype.getCenterInternal=function(){return this.get(o)},y.prototype.getConstraints=function(){return this.constraints_},y.prototype.getConstrainResolution=function(){return this.options_.constrainResolution},y.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},y.prototype.calculateExtent=function(t){t=this.calculateExtentInternal(t);return Object(T.m)(t,this.getProjection())},y.prototype.calculateExtentInternal=function(t){var e=t||this.getViewportSize_(),n=this.getCenterInternal();Object(l.a)(n,1);var i=this.getResolution();Object(l.a)(void 0!==i,2);t=this.getRotation();return Object(l.a)(void 0!==t,3),Object(I.z)(n,i,t,e)},y.prototype.getMaxResolution=function(){return this.maxResolution_},y.prototype.getMinResolution=function(){return this.minResolution_},y.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},y.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},y.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},y.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},y.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},y.prototype.getProjection=function(){return this.projection_},y.prototype.getResolution=function(){return this.get(a)},y.prototype.getResolutions=function(){return this.resolutions_},y.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal(Object(T.f)(t,this.getProjection()),e)},y.prototype.getResolutionForExtentInternal=function(t,e){var n=e||this.getViewportSize_(),e=Object(I.E)(t)/n[0],n=Object(I.A)(t)/n[1];return Math.max(e,n)},y.prototype.getResolutionForValueFunction=function(t){var e=t||2,n=this.getConstrainedResolution(this.maxResolution_),t=this.minResolution_,i=Math.log(n/t)/Math.log(e);return function(t){return n/Math.pow(e,t*i)}},y.prototype.getRotation=function(){return this.get(s)},y.prototype.getValueForResolutionFunction=function(t){var e=Math.log(t||2),n=this.getConstrainedResolution(this.maxResolution_),t=this.minResolution_,i=Math.log(n/t)/e;return function(t){return Math.log(n/t)/e/i}},y.prototype.getViewportSizeMinusPadding_=function(t){var e=this.getViewportSize_(t),t=this.padding;return e=t?[e[0]-t[1]-t[3],e[1]-t[0]-t[2]]:e},y.prototype.getState=function(){var t,e=this.getProjection(),n=this.getResolution(),i=this.getRotation(),r=this.getCenterInternal(),o=this.padding;return o&&(t=this.getViewportSizeMinusPadding_(),r=m(r,this.getViewportSize_(),[t[0]/2+o[3],t[1]/2+o[0]],n,i)),{center:r.slice(0),projection:void 0!==e?e:null,resolution:n,rotation:i,zoom:this.getZoom()}},y.prototype.getZoom=function(){var t,e=this.getResolution();return t=void 0!==e?this.getZoomForResolution(e):t},y.prototype.getZoomForResolution=function(t){var e,n,i=this.minZoom_||0;return n=this.resolutions_?(i=n=Object(R.f)(this.resolutions_,t,1),e=this.resolutions_[n],n==this.resolutions_.length-1?2:e/this.resolutions_[n+1]):(e=this.maxResolution_,this.zoomFactor_),i+Math.log(e/t)/Math.log(n)},y.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=Object(S.a)(Math.floor(t),0,this.resolutions_.length-2),n=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(n,Object(S.a)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}
1,y.prototype.fit=function(t,e){var n,i;Object(l.a)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)?(Object(l.a)(!Object(I.H)(t),25),i=Object(T.f)(t,this.getProjection()),n=Object(p.b)(i)):t.getType()===r.a.CIRCLE?(i=Object(T.f)(t.getExtent(),this.getProjection()),(n=Object(p.b)(i)).rotate(this.getRotation(),Object(I.x)(i))):n=(i=Object(T.k)())?t.clone().transform(i,this.getProjection()):t,this.fitInternal(n,e)},y.prototype.fitInternal=function(t,e){for(var n=e||{},i=(i=n.size)||this.getViewportSizeMinusPadding_(),r=void 0!==n.padding?n.padding:[0,0,0,0],o=void 0!==n.nearest&&n.nearest,a=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.getResolutionForZoom(n.maxZoom):0,s=t.getFlatCoordinates(),e=this.getRotation(),l=Math.cos(-e),c=Math.sin(-e),u=1/0,h=1/0,p=-1/0,d=-1/0,f=t.getStride(),g=0,y=s.length;g<y;g+=f)var m=s[g]*l-s[g+1]*c,_=s[g]*c+s[g+1]*l,u=Math.min(u,m),h=Math.min(h,_),p=Math.max(p,m),d=Math.max(d,_);i=this.getResolutionForExtentInternal([u,h,p,d],[i[0]-r[1]-r[3],i[1]-r[0]-r[2]]),i=isNaN(i)?a:Math.max(i,a);i=this.getConstrainedResolution(i,o?0:1);c=-c,a=(u+p)/2,o=(h+d)/2,r=(a+=(r[1]-r[3])/2*i)*l-(o+=(r[0]-r[2])/2*i)*c,a=o*l+a*c,r=this.getConstrainedCenter([r,a],i),a=n.callback||v.c;void 0!==n.duration?this.animateInternal({resolution:i,center:r,duration:n.duration,easing:n.easing},a):(this.targetResolution_=i,this.targetCenter_=r,this.applyTargetState_(!1,!0),b(a,!0))},y.prototype.centerOn=function(t,e,n){this.centerOnInternal(Object(T.e)(t,this.getProjection()),e,n)},y.prototype.centerOnInternal=function(t,e,n){this.setCenterInternal(m(t,e,n,this.getResolution(),this.getRotation()))},y.prototype.calculateCenterShift=function(t,e,n,i){var r,o=this.padding;return o&&t&&(r=m(t,i,[(r=this.getViewportSizeMinusPadding_(-n))[0]/2+o[3],r[1]/2+o[0]],e,n),r=[t[0]-r[0],t[1]-r[1]]),r},y.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},y.prototype.adjustCenter=function(t){var e=Object(T.l)(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])},y.prototype.adjustCenterInternal=function(t){var e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])},y.prototype.adjustResolution=function(t,e){e=e&&Object(T.e)(e,this.getProjection());this.adjustResolutionInternal(t,e)},y.prototype.adjustResolutionInternal=function(t,e){var n=this.getAnimating()||this.getInteracting(),i=this.getViewportSize_(this.getRotation()),n=this.constraints_.resolution(this.targetResolution_*t,0,i,n);e&&(this.targetCenter_=this.calculateCenterZoom(n,e)),this.targetResolution_*=t,this.applyTargetState_()},y.prototype.adjustZoom=function(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)},y.prototype.adjustRotation=function(t,e){e=e&&Object(T.e)(e,this.getProjection()),this.adjustRotationInternal(t,e)},y.prototype.adjustRotationInternal=function(t,e){var n=this.getAnimating()||this.getInteracting(),n=this.constraints_.rotation(this.targetRotation_+t,n);e&&(this.targetCenter_=this.calculateCenterRotate(n,e)),this.targetRotation_+=t,this.applyTargetState_()},y.prototype.setCenter=function(t){this.setCenterInternal(Object(T.e)(t,this.getProjection()))},y.prototype.setCenterInternal=function(t){this.targetCenter_=t,this.applyTargetState_()},y.prototype.setHint=function(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]},y.prototype.setResolution=function(t){this.targetResolution_=t,this.applyTargetState_()},y.prototype.setRotation=function(t){this.targetRotation_=t,this.applyTargetState_()},y.prototype.setZoom=function(t){this.setResolution(this.getResolutionForZoom(t))},y.prototype.applyTargetState_=function(t,e){var n=this.getAnimating()||this.getInteracting()||e,i=this.constraints_.rotation(this.targetRotation_,n),r=this.getViewportSize_(i),e=this.constraints_.resolution(this.targetResolution_,0,r,n),r=this.constraints_.center(this.targetCenter_,e,r,n,this.calculateCenterShift(this.targetCenter_,e,i,r));this.get(s)!==i&&this.set(s,i),this.get(a)!==e&&this.set(a,e),this.get(o)&&Object(f.b)(this.get(o),r)||this.set(o,r),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0}
1,y.prototype.resolveConstraints=function(t,e,n){var i=void 0!==t?t:200,r=e||0,t=this.constraints_.rotation(this.targetRotation_),e=this.getViewportSize_(t),r=this.constraints_.resolution(this.targetResolution_,r,e),e=this.constraints_.center(this.targetCenter_,r,e,!1,this.calculateCenterShift(this.targetCenter_,r,t,e));if(0===i&&!this.cancelAnchor_)return this.targetResolution_=r,this.targetRotation_=t,this.targetCenter_=e,void this.applyTargetState_();n=n||(0===i?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===r&&this.getRotation()===t&&this.getCenterInternal()&&Object(f.b)(this.getCenterInternal(),e)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:t,center:e,resolution:r,duration:i,easing:g.b,anchor:n}))},y.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(d.a.INTERACTING,1)},y.prototype.endInteraction=function(t,e,n){n=n&&Object(T.e)(n,this.getProjection());this.endInteractionInternal(t,e,n)},y.prototype.endInteractionInternal=function(t,e,n){this.setHint(d.a.INTERACTING,-1),this.resolveConstraints(t,e,n)},y.prototype.getConstrainedCenter=function(t,e){var n=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),n)},y.prototype.getConstrainedZoom=function(t,e){t=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(t,e))},y.prototype.getConstrainedResolution=function(t,e){var n=e||0,e=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,n,e)},y);function y(t){var e=h.call(this)||this,t=Object(c.a)({},t);return e.hints_=[0,0],e.animations_=[],e.updateAnimationKey_,e.projection_=Object(T.b)(t.projection,"EPSG:3857"),e.viewportSize_=[100,100],e.targetCenter_=null,e.targetResolution_,e.targetRotation_,e.cancelAnchor_=void 0,t.center&&(t.center=Object(T.e)(t.center,e.projection_)),t.extent&&(t.extent=Object(T.f)(t.extent,e.projection_)),e.applyOptions_(t),e}function b(t,e){setTimeout(function(){t(e)},0)}function m(t,e,n,i,r){var o=Math.cos(-r),a=Math.sin(-r),r=t[0]*o-t[1]*a,t=t[1]*o+t[0]*a;return[(r+=(e[0]/2-n[0])*i)*o-(t+=(n[1]-e[1]/2)*i)*(a=-a),t*o+r*a]}e.a=n},function(t,e,n){"use strict";var i=n(64),r=n(69),o=n(61),j=n(40),a=n(23),D=n(0),I=n(39),R=n(71),n=function(t){t=t||{};r.a.call(this,t),this.oldcluster=new o.a,this.clusters=[],this.animation={start:!1},this.set("animationDuration","number"==typeof t.animationDuration?t.animationDuration:700),this.set("animationMethod",t.animationMethod||a.b),this.getSource().on("change",this.saveCluster.bind(this)),this.on(["precompose","prerender"],this.animate.bind(this)),this.on(["postcompose","postrender"],this.postanimate.bind(this))};Object(i.a)(n,r.a),n.prototype.saveCluster=function(){var t;this.oldcluster&&(this.oldcluster.clear(),this.get("animationDuration")&&(t=this.getSource().getFeatures()).length&&t[0].get("features")&&(this.oldcluster.addFeatures(this.cluster
1s),this.clusters=t.slice(0),this.sourceChanged=!0))},n.prototype.getClusterForFeature=function(t,e){for(var n,i=0;n=e[i];i++){var r=n.get("features");if(r&&r.length)for(var o,a=0;o=r[a];a++)if(t===o)return n}return!1},n.prototype.stopAnimation=function(){this.animation.start=!1,this.animation.cA=[],this.animation.cB=[]},n.prototype.animate=function(t){var e=this.get("animationDuration");if(e){var n,i,r=t.frameState.viewState.resolution,o=this.animation,a=t.frameState.time;if(o.resolution!=r&&this.sourceChanged){var s=t.frameState.extent;for(o.resolution<r?(s=Object(D.c)(s,100*r),o.cA=this.oldcluster.getFeaturesInExtent(s),o.cB=this.getSource().getFeaturesInExtent(s),o.revers=!1):(s=Object(D.c)(s,100*r),o.cA=this.getSource().getFeaturesInExtent(s),o.cB=this.oldcluster.getFeaturesInExtent(s),o.revers=!0),o.clusters=[],n=0;i=o.cA[n];n++){var l,c=i.get("features");c&&c.length&&((l=this.getClusterForFeature(c[0],o.cB))&&o.clusters.push({f:i,pt:l.getGeometry().getCoordinates()}))}if(o.resolution=r,this.sourceChanged=!1,!o.clusters.length||1e3<o.clusters.length)return void this.stopAnimation();a=o.start=(new Date).getTime()}if(o.start){var u=t.vectorContext||Object(R.a)(t);1<(h=(a-o.start)/e)&&(this.stopAnimation(),h=1);var h=this.get("animationMethod")(h),p=this.getStyle(),d="function"==typeof p?p:p.length?function(){return p}:function(){return[p]};for(t.context.save(),t.context.globalAlpha=this.getOpacity(),n=0;l=o.clusters[n];n++){var f=l.f.getGeometry().getCoordinates(),g=f[0]-l.pt[0],y=f[1]-l.pt[1];o.revers?(f[0]=l.pt[0]+h*g,f[1]=l.pt[1]+h*y):(f[0]=f[0]-h*g,f[1]=f[1]-h*y);var m=d(l.f,r,!0);m.length||(m=[m]),c=1!==l.f.get("features").length||g||y?(f=new I.a(f),new j.a(f)):l.f.get("features")[0];for(var _,v,b,x,O,w,C,E,T,S=0;_=m[S];S++)_.getText()&&/\n/.test(_.getText().getText())?(b=_.getText().getOffsetX(),x=_.getText().getOffsetY(),O=_.getText().getRotation()||0,w=1.2*Number((_.getText().getFont()||"10px").match(/\d+/)),C=_.getText().getText().split("\n"),E=C.length-1,T=_.clone(),C.forEach(function(t,e){switch(1==e&&(T.setImage(),T.setFill(),T.setStroke()),_.getText().getTextBaseline()){case"alphabetic":case"ideographic":case"bottom":v=E;break;case"hanging":case"top":v=0;break;default:v=E/2}T.getText().setOffsetX(b-Math.sin(O)*w*(e-v)),T.getText().setOffsetY(x+Math.cos(O)*w*(e-v)),T.getText().setText(t),u.drawFeature(c,T)})):u.drawFeature(c,_)}t.context.restore(),t.frameState.animate=!0,t.context.save(),t.context.beginPath(),t.context.rect(0,0,0,0),t.context.clip(),this.clip_=!0}}},n.prototype.postanimate=function(t){this.clip_&&(t.context.restore(),this.clip_=!1)},e.a=n},function(t,e,n){"use strict";var i,r,o=n(64),a=n(13),s=n(56),l="bottom-center",c="bottom-right",u="center-center",h="center-right",p=n(22),d=n(0),f=n(5),g=n(14),n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),y="element",m="offset",_="position",v="positioning",b=(r=a.a,n(w,r),w.prototype.getElement=function(){return this.get(y)},w.prototype.getId=function(){return this.id},w.prototype.getMap=function(){return this.get("map")},w.prototype.getOffset=function(){return this.get(m)},w.prototype.getPosition=function(){return this.get(_)},w.prototype.getPositioning=function(){return this.get(v)},w.prototype.handleElementChanged=function(){Object(g.d)(this.element);var t=this.getElement();t&&this.element.appendChild(t)},w.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(Object(g.e)(this.element),Object(f.c)(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var t=this.getMap();t&&(this.mapPostrenderListenerKey=Object(f.a)(t,s.a.POSTRENDER,this.render,this),this.updatePixelPosition(),t=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer(),this.insertFirst?t.insertBefore(this.element,t.childNodes[0]||null):t.appendChild(this.element),this.performAutoPan())},w.prototype.render=function(){this.updatePixelPosition()},w.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},w.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.performAutoPan()},w.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},w.prototype.setElement=function(t){this.set(y,t)},w.prototype.setMap=function(t){this.set("map",t)},w.prototype.setOffset=function(t){this.set(m,t)},w.prototype.setPosition=function(t){this.set(_,t)},w.prototype.performAutoPan=function(){this.autoPan&&this.panIntoView(this.autoPan)},w.prototype.panIntoView=function(t){var e,n,i,r,o,a,s=this.getMap();s&&s.getTargetElement()&&this.get(_)&&(i=this.getRect(s.getTargetElement(),s.getSize()),n=this.getElement(),o=this.getRect(n,[Object(g.c)(n),Ob
1ject(g.b)(n)]),r=void 0===(a=t||{}).margin?20:a.margin,Object(d.g)(i,o)||(e=o[0]-i[0],n=i[2]-o[2],t=o[1]-i[1],i=i[3]-o[3],o=[0,0],e<0?o[0]=e-r:n<0&&(o[0]=Math.abs(n)+r),t<0?o[1]=t-r:i<0&&(o[1]=Math.abs(i)+r),0===o[0]&&0===o[1]||(r=s.getView().getCenterInternal(),(r=s.getPixelFromCoordinateInternal(r))&&(o=[r[0]+o[0],r[1]+o[1]],a=a.animation||{},s.getView().animateInternal({center:s.getCoordinateFromPixelInternal(o),duration:a.duration,easing:a.easing})))))},w.prototype.getRect=function(t,e){var n=t.getBoundingClientRect(),t=n.left+window.pageXOffset,n=n.top+window.pageYOffset;return[t,n,t+e[0],n+e[1]]},w.prototype.setPositioning=function(t){this.set(v,t)},w.prototype.setVisible=function(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)},w.prototype.updatePixelPosition=function(){var t=this.getMap(),e=this.getPosition();t&&t.isRendered()&&e?(e=t.getPixelFromCoordinate(e),t=t.getSize(),this.updateRenderedPosition(e,t)):this.setVisible(!1)},w.prototype.updateRenderedPosition=function(t,e){var n=this.element.style,i=this.getOffset(),r=this.getPositioning();this.setVisible(!0);var o=Math.round(t[0]+i[0])+"px",a=Math.round(t[1]+i[1])+"px",t="0%",i="0%";r==c||r==h||"top-right"==r?t="-100%":r!=l&&r!=u&&"top-center"!=r||(t="-50%"),"bottom-left"==r||r==l||r==c?i="-100%":"center-left"!=r&&r!=u&&r!=h||(i="-50%");a="translate("+t+", "+i+") translate("+o+", "+a+")";this.rendered.transform_!=a&&(this.rendered.transform_=a,n.transform=a,n.msTransform=a)},w.prototype.getOptions=function(){return this.options},w),x={create:function(t,e){var n;if(e=e||{},"TEXT"===t)n=document.createTextNode(e.html||""),e.parent&&e.parent.appendChild(n);else for(var i in n=document.createElement(t),/button/i.test(t)&&n.setAttribute("type","button"),e)switch(i){case"className":e.className&&e.className.trim&&n.setAttribute("class",e.className.trim());break;case"html":e.html instanceof Element?n.appendChild(e.html):void 0!==e.html&&(n.innerHTML=e.html);break;case"parent":e.parent&&e.parent.appendChild(n);break;case"style":this.setStyle(n,e.style);break;case"change":case"click":x.addListener(n,i,e[i]);break;case"on":for(var r in e.on)x.addListener(n,r,e.on[r]);break;case"checked":n.checked=!!e.checked;break;default:n.setAttribute(i,e[i])}return n},setHTML:function(t,e){e instanceof Element?t.appendChild(e):void 0!==e&&(t.innerHTML=e)},appendText:function(t,e){t.appendChild(document.createTextNode(e||""))},addListener:function(e,t,n){(t="string"==typeof t?t.split(" "):t).forEach(function(t){e.addEventListener(t,n)})},removeListener:function(e,t,n){(t="string"==typeof t?t.split(" "):t).forEach(function(t){e.removeEventListener(t,n)})},show:function(t){t.style.display=""},hide:function(t){t.style.display="none"},hidden:function(t){return"none"===x.getStyle(t,"display")},toggle:function(t){t.style.display="none"===t.style.display?"":"none"},setStyle:function(t,e){for(var n in e)switch(n){case"top":case"left":case"bottom":case"right":case"minWidth":case"maxWidth":case"width":case"height":"number"==typeof e[n]?t.style[n]=e[n]+"px":t.style[n]=e[n];break;default:t.style[n]=e[n]}},getStyle:function(t,e){var n,i,r=(t.ownerDocument||document).defaultView;if(r&&r.getComputedStyle)e=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=r.getComputedStyle(t,null).getPropertyValue(e);else if(t.currentStyle&&(e=e.replace(/-(\w)/g,function(t,e){return e.toUpperCase()}),n=t.currentStyle[e],/^\d+(em|pt|%|ex)?$/i.test(n)))return i=n,r=t.style.left,e=t.runtimeStyle.left,t.runtimeStyle.left=t.currentStyle.left,t.style.left=i||0,i=t.style.pixelLeft+"px",t.style.left=r,t.runtimeStyle.left=e,i;return/px$/.test(n)?parseInt(n):n},outerHeight:function(t){return t.offsetHeight+x.getStyle(t,"marginBottom")},outerWidth:function(t){return t.offsetWidth+x.getStyle(t,"marginLeft")},offsetRect:function(t){t=t.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0),height:t.height||t.bottom-t.top,width:t.widtth||t.right-t.left}},scrollDiv:function(n,t){var i,r=!1,o=0,a=0,s="function"==typeof t.onmove?t.onmove:function(){},l=t.vertical?"pageY":"pageX",c=t.vertical?"scrollTop":"scrollLeft",u=!1;n.querySelectorAll("img").forEach(function(t){t.ondragstart=function(){return!1}}),x.addListener(n,["mousedown"],function(t){u=!1,r=t[l],a=new Date,n.classList.add("ol-move")}),x.addListener(window,["mousemove"],function(t){var e;!(u=!0)!==r?(e=r-t[l],n[c]+=e,(i=new Date)-a&&(o=(o+e/(i-a))/2),r=t[l],a=i,e&&s(!0)):s(!1)}),x.addListener(window,["mouseup"],function(t){u?setTimeout(function(){n.classList.remove("ol-move")}):n.classList.remove("ol-move"),u=!1,100<(a=new Date-a)?o=0:0<a&&(o=((o||0)+(r-t[l])/a)/2),n[c]+=100*o,r=!1,a=o=0}),t.mousewheel&&!n.classList.contains("ol-touch")&&x.addListener(n,["mousewheel","DOMMouseScroll","onmousewheel"],function(t){t=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail));return n.classList.add("ol-move"),n[c]-=30*t,n.classList.remove("ol-move"),!1})},dispatchEvent:function(t,e){var n;try{n=new CustomEvent(t)}catch(e){(n=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,{})}e.dispatchEvent(n)}},O=x,n=function(t){var e=this;"number"==typeof(t=t||{}).offsetBox?this.offsetBox=[t.offsetBox,t.offsetBox,t.offsetBox,t.offsetBox]:this.offsetBox=t.offsetBox;var n=document.createElement("div");t.element=n;var i=document.createElement("div");i.classList.add("anchor"),n.appendChild(i),this.content=O.create("div",{html:t.html||"",className:"ol-popup-content",parent:n}
1),this.closeBox=t.closeBox,this.onclose=t.onclose,this.onshow=t.onshow;var r=document.createElement("button");r.classList.add("closeBox"),t.closeBox&&r.classList.add("hasclosebox"),r.setAttribute("type","button"),n.insertBefore(r,i),r.addEventListener("click",function(){e.hide()}),t.stopEvent&&(n.addEventListener("mousedown",function(t){t.stopPropagation()}),n.addEventListener("touchstart",function(t){t.stopPropagation()})),b.call(this,t),this._elt=n,this.setPositioning(t.positioning||"auto"),this.setPopupClass(t.popupClass||t.className||"default"),t.position&&setTimeout(function(){this.show(t.position)}.bind(this))};function w(t){var e=r.call(this)||this;e.options=t,e.id=t.id,e.insertFirst=void 0===t.insertFirst||t.insertFirst,e.stopEvent=void 0===t.stopEvent||t.stopEvent,e.element=document.createElement("div"),e.element.className=void 0!==t.className?t.className:"ol-overlay-container "+p.d,e.element.style.position="absolute",e.element.style.pointerEvents="auto";var n=t.autoPan;return n&&"object"!=typeof n&&(n={animation:t.autoPanAnimation,margin:t.autoPanMargin}),e.autoPan=n||!1,e.rendered={transform_:"",visible:!0},e.mapPostrenderListenerKey=null,e.addEventListener(Object(a.b)(y),e.handleElementChanged),e.addEventListener(Object(a.b)("map"),e.handleMapChanged),e.addEventListener(Object(a.b)(m),e.handleOffsetChanged),e.addEventListener(Object(a.b)(_),e.handlePositionChanged),e.addEventListener(Object(a.b)(v),e.handlePositioningChanged),void 0!==t.element&&e.setElement(t.element),e.setOffset(void 0!==t.offset?t.offset:[0,0]),e.setPositioning(void 0!==t.positioning?t.positioning:"top-left"),void 0!==t.position&&e.setPosition(t.position),e}Object(o.a)(n,b),n.prototype.getClassPositioning=function(){var t="",e=this.getPositioning();return/bottom/.test(e)&&(t+="ol-popup-bottom "),/top/.test(e)&&(t+="ol-popup-top "),/left/.test(e)&&(t+="ol-popup-left "),/right/.test(e)&&(t+="ol-popup-right "),/^center/.test(e)&&(t+="ol-popup-middle "),/center$/.test(e)&&(t+="ol-popup-center "),t},n.prototype.setClosebox=function(t){(this.closeBox=t)?this.element.classList.add("hasclosebox"):this.element.classList.remove("hasclosebox")},n.prototype.setPopupClass=function(t){this.element.className="";var e=this.getClassPositioning().split(" ").filter(function(t){return 0<t.length}),n=["ol-popup"];t?t.split(" ").filter(function(t){return 0<t.length}).forEach(function(t){n.push(t)}):n.push("default"),e.forEach(function(t){n.push(t)}),this.closeBox&&n.push("hasclosebox"),this.element.classList.add.apply(this.element.classList,n)},n.prototype.addPopupClass=function(t){this.element.classList.add(t)},n.prototype.removePopupClass=function(t){this.element.classList.remove(t)},n.prototype.setPositioning=function(t){void 0!==t&&(/auto/.test(t)?(this.autoPositioning=t.split("-"),1==this.autoPositioning.length&&(this.autoPositioning[1]="auto")):this.autoPositioning=!1,"center"==(t=t.replace(/auto/g,"center"))&&(t="bottom-center"),this.setPositioning_(t))},n.prototype.setPositioning_=function(t){this.element&&(b.prototype.setPositioning.call(this,t),this.element.classList.remove("ol-popup-top","ol-popup-bottom","ol-popup-left","ol-popup-right","ol-popup-center","ol-popup-middle"),t=this.getClassPositioning().split(" ").filter(function(t){return 0<t.length}),this.element.classList.add.apply(this.element.classList,t))},n.prototype.getVisible=function(){return this.element.classList.contains("visible")},n.prototype.show=function(t,e){e||"string"!=typeof t||(e=t,t=null),!0===t&&(t=this.getPosition());var n,i,r=this,o=this.getMap();o&&(e&&e!==this.prevHTML&&(this.prevHTML=e,this.content.innerHTML="",e instanceof Element?this.content.appendChild(e):this.content.insertAdjacentHTML("beforeend",e),Array.prototype.slice.call(this.content.querySelectorAll("img")).forEach(function(t){t.addEventListener("load",function(){o.renderSync()})})),t)&&(this.autoPositioning?(n=o.getPixelFromCoordinate(t),i=o.getSize(),e=[],"auto"==this.autoPositioning[0]?e[0]=n[1]<i[1]/3?"top":"bottom":e[0]=this.autoPositioning[0],e[1]=n[0]<2*i[0]/3?"left":"right",this.setPositioning_(e[0]+"-"+e[1]),this.offsetBox&&this.setOffset([this.offsetBox["left"==e[1]?2:0],this.offsetBox["top"==e[0]?3:1]])):this.offsetBox&&this.setOffset(this.offsetBox),this.setPosition(t),this.element.parentElement.style.display="","function"==typeof this.onshow&&this.onshow(),this._tout=setTimeout(function(){r.element.classList.add("visible")},0))},n.prototype.hide=function(){null!=this.getPosition()&&("function"==typeof this.onclose&&this.onclose(),this.setPosition(void 0),this._tout&&clearTimeout(this._tout),this.element.classList.remove("visible"))},e.a=n},function(t,e,n){"use strict";var i=n(64),_=n(87),r=n(26),o=n(69),a=n(61),s=n(66),v=n(40),l=n(25),c=n(2),u=n(45),h=n(51),p=n(0),d=n(54),f=n(53),b=n(12),g=n(82),y=n(42),x=n(4);var m,O,w=n(83),C=n(77),E=(m=function(t,e){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),T=(O=u.a,E(k,O),k.prototype.appendCoordinate=function(t){this.flatCoordinates?Object(b.c)(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()},k.prototype.clone=function(){var t=new k(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},k.prototype.closestPointXY=function(t,e,n,i){return i<Object(p.e)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(h.d)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(h.c)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,n,i))},k.prototype.forEachSegment=function(t){return Object(g.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},k.prototype.getCoordinateAtM=function(t,e){if(this.layout!=l.a.XYM&&this.layout!=l.a.XYZM)return null;e=void 0!==e&&e;return function(t,e,n,i,r,o){if(n==e)return null;
1if(r<t[e+i-1])return o?((u=t.slice(e,e+i))[i-1]=r,u):null;if(t[n-1]<r)return o?((u=t.slice(n-i,n))[i-1]=r,u):null;if(r==t[e+i-1])return t.slice(e,e+i);for(var a=e/i,s=n/i;a<s;){var l=a+s>>1;r<t[(1+l)*i-1]?s=l:a=1+l}if(n=t[a*i-1],r==n)return t.slice((a-1)*i,(a-1)*i+i);for(var c=(r-n)/(t[(a+1)*i-1]-n),u=[],h=0;h<i-1;++h)u.push(Object(x.c)(t[(a-1)*i+h],t[a*i+h],c));return u.push(r),u}(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e)},k.prototype.getCoordinates=function(){return Object(y.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},k.prototype.getCoordinateAt=function(t,e){return function(t,e,n,i,r,o){var a,s=+e/n;if(1==s)g=0;else if(2==s)g=0,a=i;else if(0!=s){for(var l=t[0],c=t[1],u=0,h=[0],p=0+n;p<e;p+=n){var d=t[p],f=t[p+1];u+=Math.sqrt((d-l)*(d-l)+(f-c)*(f-c)),h.push(u),l=d,c=f}var s=i*u,i=Object(b.a)(h,s),g=i<0?(a=(s-h[-i-2])/(h[-i-1]-h[-i-2]),0+(-i-2)*n):0+i*n}for(var y=1<o?o:2,m=r||new Array(y),p=0;p<y;++p)m[p]=void 0===g?NaN:void 0===a?t[g+p]:Object(x.c)(t[g+p],t[g+n+p],a);return m}(this.flatCoordinates,this.flatCoordinates.length,this.stride,t,e,this.stride)},k.prototype.getLength=function(){return Object(C.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},k.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},k.prototype.getSimplifiedGeometryInternal=function(t){var e=[];return e.length=Object(f.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new k(e,l.a.XY)},k.prototype.getType=function(){return c.a.LINE_STRING},k.prototype.intersectsExtent=function(t){return Object(w.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},k.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(d.b)(this.flatCoordinates,0,t,this.stride),this.changed()},k),S=n(55),j=n(23),D=n(39),I=n(46),R=n(58),P=n(71),n=function(t){var n;t=t||{},this.pointRadius=t.pointRadius||12,this.circleMaxObjects=t.circleMaxObjects||10,this.maxObjects=t.maxObjects||60,this.spiral=!1!==t.spiral,this.animate=t.animate,this.animationDuration=t.animationDuration||500,this.selectCluster_=!1!==t.selectCluster;var e=this.overlayLayer_=new o.a({source:new a.a({features:new r.a,wrapX:t.wrapX,useSpatialIndex:!0}),name:"Cluster overlay",updateWhileAnimating:!0,updateWhileInteracting:!0,displayInLayerSwitcher:!1,style:t.featureStyle});t.layers&&("function"==typeof t.layers?(n=t.layers,t.layers=function(t){return t===e||n(t)}):t.layers.push&&t.layers.push(this.overlayLayer_)),t.filter?(n=t.filter,t.filter=function(t,e){return!(!e&&t.get("selectclusterlink"))&&n(t,e)}):t.filter=function(t,e){return!(!e&&t.get("selectclusterlink"))},this.filter_=t.filter,s.a.call(this,t),this.on("select",this.selectCluster.bind(this))};function k(t,e){var n=O.call(this)||this;return n.flatMidpoint_=null,n.flatMidpointRevision_=-1,n.maxDelta_=-1,n.maxDeltaRevision_=-1,void 0===e||Array.isArray(t[0])?n.setCoordinates(t,e):n.setFlatCoordinates(e,t),n}Object(i.a)(n,s.a),n.prototype.setMap=function(t){this.getMap()&&this.getMap().removeLayer(this.overlayLayer_),this._listener&&Object(S.b)(this._listener),this._listener=null,s.a.prototype.setMap.call(this,t),this.overlayLayer_.setMap(t),t&&t.getView()&&(this._listener=t.getView().on("change:resolution",this.clear.bind(this)))},n.prototype.clear=function(){this.getFeatures().clear(),this.overlayLayer_.getSource().clear()},n.prototype.getLayer=function(){return this.overlayLayer_},n.prototype.selectCluster=function(t){if((t=t instanceof v.a?{selected:[t]}:t).selected.length){var e=t.selected[0];if(!e.get("selectclusterfeature")){t=this.overlayLayer_.getSource();t.clear();var n=e.get("features");if(n&&1!=n.length){this.selectCluster_||this.getFeatures().clear();var i,r,o=e.getGeometry().getCoordinates(),a=this.getMap().getView().getResolution(),s=a*this.pointRadius*(.5+n.length/4),l=[];if(!this.spiral||n.length<=this.circleMaxObjects)for(h=Math.min(n.length,this.circleMaxObjects),p=0;p<h;p++)c=2*Math.PI*p/h,2!=h&&4!=h||(c+=Math.PI/4),g=[o[0]+s*Math.sin(c),o[1]+s*Math.cos(c)],(i=new v.a({selectclusterfeature:!0,features:[n[p]],geometry:new D.a(g)})).setStyle(n[p].getStyle()),l.push(i),r=new v.a({selectclusterlink:!0,geometry:new T([o,g])}),l.push(r);else for(var c=0,u=2*this.pointRadius,h=Math.min(this.maxObjects,n.length),p=0;p<h;p++){c+=(.1+u)/(s=u/2+u*c/(2*Math.PI));var d=a*s*Math.sin(c),f=a*s*Math.cos(c),g=[o[0]+d,o[1]+f];(i=new v.a({selectclusterfeature:!0,features:[n[p]],geometry:new D.a(g)})).setStyle(n[p].getStyle()),l.push(i),r=new v.a({selectclusterlink:!0,geometry:new T([o,g])}),l.push(r)}t.clear(),this.animate?this.animateCluster_(o,l):t.addFeatures(l)}}}else this.clear()},n.prototype.animateCluster_=function(d,f){var t,g,y,m,e;this.listenerKey_&&Object(S.b)(this.listenerKey_),f.length&&(t=this.overlayLayer_.getStyle(),g="function"==typeof t?t:t.length?function(){return t}:function(){return[t]},y=this.animationDuration||500,m=(new Date).getTime(),this.listenerKey_=this.overlayLayer_.on(["postcompose","postrender"],function(t){for(var e,n=t.vectorContext||Object(P.a)(t),i=t.frameState.pixelRatio,r=this.getMap().getView().getResolution(),o=Object(j.b)((t.frameState.time-m)/y),a=0;e=f[a];a++)if(e.get("features")){var s=e.getGeometry().getCoordinates();s[0]=d[0]+o*(s[0]-d[0]),s[1]=d[1]+o*(s[1]-d[1]);for(var l=new D.a(s),c=g(e,r),u=0;u<c.length;u++){var h,p=!_.a.prototype.getFeaturesAtPixel&&c[u].getImage();p&&(h=p.getScale(),p.setScale(i)),n.setStyle?(n.setStyle(c[u]),n.drawGeometry(l)):(n.setImageStyle(p),n.drawPointGeometry(l)),p&&p.setScale(h)}}if(1<o)return Object(S.b)(this.listenerKey_),this.overlayLayer_.getSource().addFeatures(f),void this.overlayLayer_.changed();t.frameState.animate=!0}.bind(this)),(e=new v.a(new D.a(this.getMap().getView().getCenter()))).setStyle(new I.c({image:new R.a({})})),this.overlayLayer_.getSource().addFeature(e))},n.prototype.getClusterExtent=function(t){if(!t.get("features"))return null;var e=Object(p.j)();return t.get("features").forEach(function(t){e=Object(p.q)(e,t.getGeometry().getExtent())}),e[0]===e[2]&&e[1]===e[3]?null:e},e.a=n},function(t,e,n){"use strict";n.r(e),n(107),n(109),n(110),n(111),n(112),n(113)},,,,,,,,,,,,,,,function(t,e,n){"use strict";!function(t){n(108),function(v){var s=custom_events.ajaxurl,l=!1,c=custom_events.postTypeMultiSelect;function b(t,e,n,i){n=!!n;var r,n=v(".search-lozenges > .lozenge[data-"+t+(e?(n?"^":"")+'="'+e+'"':"")+"]");return i&&(e=n.map(function(){return v(this).data(i)}).get(),r=Math.max.apply(Math,e),n=n.filter(function(){return v(this).data(i)==r})),n}function x(t,e,n,i,r,o){var a;0==b(t,e).length&&(i=(i=i||"")||v('.search-filters-form label[for="'+n+'"]').text(),(a={class:"lozenge badge rounded-pill bg-primary mx-1 "+t,"data-type":t,"data-multiple":r?"true":"false"})["data-"+t]=e,v.each(o,function(t,e){a[t]=e}),v("<span/>",a).html(v("<span/>",{class:"lozenge-btn d-flex align-items-center p-1"}).html(i+'<a href="#" class="close text-white ms-2" aria-label="Close"><span aria-hidden="true">×</span></a>')).appendTo("#search-lozenges"))}function O(t,e,n,i,r){n=!!n;n=v(".search-lozenges > .lozenge[data-"+t+(e?(n?"^":"")+'="'+e+'"':"")+"]"),e=1==n.data("static");"function"==typeof r&&(n=n.filter(r)),e||n.fadeOut("fast",function(){v(this).remove(),"function"==typeof i&&i()}),0!=n.length&&!e||"function"!=typeof i||i()}window._ce_ajax_running=!1,v("body").on("loading",function(){v(".page-loading-overlay").fadeIn("fast")}),v("body").on("hideloading",function(){v(".page-loading-overlay").fadeOut("fast")}),v("body").on("toggleloading",function(){v(".page-loading-overlay").fadeToggle("fast")}),v(".button.delete[data-confirm]").click(function(){return confirm("Please confirm that you want to delete: "+v(this).data("c
1onfirm"))}),v(".search-filters .date-starting").datepicker({format:"yyyy-mm-dd",weekStart:1}).on("changeDate",function(t){var e=v(".search-filters input#date-range").data("date-end");t.date.valueOf()>new Date(e)?v(".search-filters #date-alert").show().find("strong").text("The start date can not be greater then the end date."):(v(".search-filters #date-alert").hide(),t=v(this).data("date"),v(".search-filters #startDate").text(t),v(".search-filters input#date-range").data("date-start",t).val('{"start_date":"'+t+'","end_date":"'+e+'"}'),t&&e&&v(".search-filters input#date-range").trigger("change")),v(".search-filters #date-starting").datepicker("hide")}),v(".search-filters .date-ending").datepicker({format:"yyyy-mm-dd",weekStart:1}).on("changeDate",function(t){var e=v(".search-filters input#date-range").data("date-start");t.date.valueOf()<new Date(e)?v(".search-filters #date-alert").show().find("strong").text("The end date can not be less then the start date."):(v(".search-filters #date-alert").hide(),t=v(this).data("date"),v(".search-filters #endDate").text(t),v(".search-filters input#date-range").data("date-end",t).val('{"start_date":"'+e+'","end_date":"'+t+'"}'),e&&t&&v(".search-filters input#date-range").trigger("change")),v(".search-filters #date-starting").datepicker("hide")}),v('.search-filters input[data-action="datepicker"]').datepicker({format:"yyyy-mm-dd",pickTime:!1,weekStart:1}),v(".search-filters form.search-filters-form").submit(function(){return h("filter"),!1}),v(".search-filters .filter-trigger, .search-filters .search-submit").click(function(){return h("filter"),!1}),v(".dtcev").on("change",'.search-filters-form input[data-filter]:not([data-static="true"]), .search-filters-form select[data-filter]',function(){var t,e,n=v(this);n.data("taxloader-item")&&(t=n.data("tax"),e=n.parents('[data-tax-loader="true"]:first').data("taxloader-level"),O("taxonomies",t+"%",!0,!1,function(){return v(this).data("taxloader-level")>=e})),h("filter")}),v(".dtcev").on("click",".dropdown-menu a[data-filter], a[data-filter]",function(){var n=v(this),t=n.data("filter");let i="true"==n.attr("data-selected")?"false":"true";if("taxonomy"==t){var e=n.data("tax"),r=n.parents('[data-tax-loader="true"]:first').data("taxloader-level");O("taxonomies",e+"%",!0,function(){var t=n.data("value");v('.search-filters-form .dropdown[data-tax-loader="true"][data-taxloader-level="'+r+'"] a[data-filter="taxonomy"][data-taxloader-item="true"][data-tax="'+e+'"]:not([data-value="'+t+'"])').attr("data-selected",!1),n.attr("data-selected",i),h("filter")},function(){return v(this).data("taxloader-level")>=r})}else if("post_type"==t){var o=n.data("value"),a=!(c&&"true"==n.attr("data-selected"));if(v('.search-lozenges > .lozenge[data-static="true"] input[data-filter="'+t+'"][value="'+o+'"]').prop("checked",a),a||O("post-type",o,!1,function(){n.attr("data-selected",i),h("filter")}),!c){i=a?"true":"false";let t=b("post-type").filter(':not([data-post-type="'+o+'"])');t.length?t.each((t,e)=>{e=v(e).data("post-type");O("post-type",e,!1,function(){n.attr("data-selected",i),h("filter")}),v('.search-filters-form a[data-filter="post_type"][data-value="'+e+'"]').attr("data-selected",!1)}):(n.attr("data-selected",i),h("filter"))}}}),v("a[data-orderer]").on("click",function(){return"true"==v(this).attr("data-ordered")||(v('a[data-orderer][data-ordered="true"]').attr("data-ordered","false"),v(this).attr("data-ordered","true"),h("filter")),!1}),v("body").on("change",'.search-lozenges > .lozenge[data-static="true"] input',function(){var t=v(this),e=t.data("filter"),n=t.val();return t.is(":checkbox")&&v('.search-lozenges > .lozenge[data-static="true"] input[data-filter="'+e+'"][value="'+n+'"]').prop("checked",t.is(":checked")),"post_type"==t.data("filter")&&(v('.search-filters-form a[data-filter="post_type"][data-value="'+n+'"]'),v('.search-filters-form a[data-filter="post_type"][data-value="'+n+'"]').attr("data-selected",t.is(":checked")?"true":"false")),h("filter"),!1}),v('.search-lozenges > .lozenge[data-static="true"]').on("click",function(t){v(t.target).is(":checkbox")||(t=v(this).find("input"))&&t.prop("checked",!t.is(":checked")).trigger("change")}),v(".search-reset").click(function(){v('a[data-orderer][data-ordered="true"]').attr("data-ordered","false"),v('a[data-orderer][data-orderer-default="true"]').attr("data-ordered","true"),v(".search-filters form.search-filters-form input.search-field").val(""),v('.search-filters-form input[data-filter="post_type"]').prop("checked",!0),v('.search-filters-form select[data-filter="taxonomy"]').val(""),v('.search-filters-form input[type="checkbox"][data-filter="taxonomy"]').prop("checked",!1),v('.search-filters-form input[data-filter="postcode"]').val(""),v('.search-filters-form input[data-filter="numeric"]').val(""),v('.search-filters-form input[data-filter="date"]').val("").data("date-start","").data("date-end",""),v('.search-filters-form input[data-filter="postcode_radius"]').val("1"),v('.search-filters-form select[data-filter="time_period"]').val("30days"),v(".search-filters-form a[data-filter]").attr("data-selected",!1),v('.search-filters-form a[data-filter="post_type"]').each(function(){var t=v(this),e=t.data("default")?"true":"false";t.attr("data-selected",e)}),v(".search-filters #startDate").text(""),v(".search-filters #endDate").text(""),v('.dtcev .search-filters-top [data-tax-loader="true"][data-tax][data-toplevel-parent="false"][data-taxloader-template="false"]').fadeOut("fast",function(){v(this).remove()}),v('.search-lozenges > .lozenge[data-multiple="true"]:not([data-static="true"])').fadeOut("fast").promise().done(function(){v('.search-lozenges > .lozenge[data-multiple="true"]:not([data-static="true"])').remove(),h("filter")})}),v("body").on("click",'.search-lozenges > .lozenge:not( [data-static="true"] )',function(){var t=v(this),e=t.data("type");if("search"==e)return v(".search-filters form.search-filters-form input.search-field").val(""),v(".search-filters form.search-filters-form").submit(),!1;if("post-type"==e){var n=t.data("post-type");return n&&(v('.search-filters-form input[data-filter="post_type"][value="'+n+'"]').prop("checked",!1).trigger("change").length||(v('.search-filters-form a[data-filter="post_type"][data-value="'+n+'"]').attr("data-selected","false").trigger("change"),O("post-type",n),h("filter"))),!1}if("taxonomies"==e){var i,r,o=t.data("taxonomies"),a=!!t.data("multiple"),s=o.substr(1+o.indexOf("%")),n=o.substr(0,o.indexOf("%"));return n&&s&&(a?(v('.search-filters-form select[data-filter="taxonomy"][data-tax="'+n+'"]').val()==s&&v('.search-filters-form select[data-filter="taxonomy"][data-tax="'+n+'"]').val(""),v('.search-filters-form input[type="checkbox"][data-filter="taxonomy"][data-tax="'+n+'"][data-value="'+s+'"]').length&&v('.search-filters-form input[type="checkbox"][data-filter="taxonomy"][data-tax="'+n+'"][data-value="'+s+'"]').prop("checked",!1),v('.search-filters-form a[data-filter="taxonomy"][data-tax="'+n+'"][data-value="'+s+'"]').length&&v('.search-filters-form a[data-filter="taxonomy"][data-tax="'+n+'"][data-value="'+s+'"]').attr("data-selected",!1),t.data("taxloader")&&t.data("taxloader-level")&&(i=parseInt(t.data("taxloader-level")),v('.dtcev [data-taxloader-container="true"] div.dropdown[data-tax="'+n+'"][data-taxloader-level]').filter(function(){return v(this).attr("data-taxloader-level")>i}).fadeOut("fast",function(){v(this).remove()}),r=i-1,v('.dtcev [data-taxloader-container="true"] div.select-tax[data-tax="'+n+'"][data-taxloader-level]').filter(function(){return v(this).attr("data-taxloader-level")>r}).fadeOut("fast",function(){v(this).remove()}),O(e,!1,!1,!1,function(){return v(this).data("taxloader-level")>i})),O(e,o,!1,function(){h("filter")})):(v('.search-filters-form select[data-filter="taxonomy"][data-tax="'+n+'"]').val(""),h("filter"))),!1}if("postcode"==e&&(v('.search-filters-form input[data-filter="postcode"]').val(""),h("filter")),"date"==e)return v(".search-filters #startDate").text(""),v(".search-filters #endDate").text(""),v('.search-filters-form input[data-filter="date"]').val("").data("date-start","").data("date-end",""),h("filter"),!1;if("checkbox"==e){var l=(o=t.data("checkbox")).substr(0,o.indexOf("%"));return v('.search-filters-form input[data-filter="checkbox"][name="'+l+'"]').prop("checked",!1),h("filter"),!1}if("string"==e){l=(o=t.data("string")).substr(0,o.indexOf("%"));return v('.search-filters-form select[data-filter="string"][name="'+l+'"]').val(""),h("filter"),!1}if("numeric"==e){o=(o=t.data("numeric")).substr(0,o.indexOf("%"));return v('.search-filters-form select[data-filter="numeric"][name="'+o+'"]').val(""),h("filter"),!1}});var u=!0;function h(n,i,e){if(!window._ce_ajax_running){window._ce_ajax_running=!0;var r="fewer"==(n=n||"filter")||"more"==n||Number.isInteger(n);if(r&&"more"==n){if(l)return window._ce_ajax_running=!1}else l=!1;var _={action:"custom_events",pages:{},search:"",post_type:[],taxonomies:{},postcode:"",time_period:"",order:"title-asc"},t=v('a[data-orderer][data-ordered="true"]:first').attr("data-orderer");t&&(_.order=t);var o,a="";v(".search-filters form.search-filters-form input.search-field").each(function(){var t=v(this).val();if(t)return a=t,!1}),_.search=a,_.search?b("search",_.search).length?x("search",_.search,"search"," "+_.search):O("search",null,null,function(){x("search",_.search,"search"," "+_.search)}):O("search"),v('.search-filters-form input[data-filter], .search-filters-form a[data-filter][data-selected="true"], .search-filters-form select[data-filter], .search-lozenges > .lozenge[data-static="true"] input, .search-lozenges > .lozenge[data-preselected="true"] input').each(function(){var t,e,n,i,r,o,a,s=v(this),l=s.data("filter");if("post_type"==l)s.is(":checkbox")?(y=s.val(),s.is(":checked"),s.is(":checked")&&y?(x("post-type",y,"pt-"+y,null,!0),-1==v.inArray(y,_.post_type)&&(_.post_type[_.post_type.length]=y)):O("post-type",y)):s.is("a")&&(y=s.data("value"),"true"==s.attr("data-selected")&&y?(x("post-type",y,"pt-"+y,null,!0),-1==v.inArray(y,_.post_type)&&(_.post_type[_.post_type.length]=y)):O("post-type",y));else if("taxonomy"==l){var c=s.prop("tagName"),u="INPUT"==c&&s.is(":checkbox"),h="SELECT"==c,p=s.data("tax"),d=h?s.val():s.data("value"),f=!!s.data("multiple"),g=!!s.data("taxloader-item"),y=!1,h=1;
1if(s.data("taxloader-item"),g&&(h=(y=!!(g=s.parents('[data-tax-loader="true"]')).data("tax-loader"))?g.data("taxloader-level"):h),p){if(f){if(!d||u&&!s.is(":checked"))u&&!s.is(":checked")&&O("taxonomies",p+"%"+d,!1);else{var m="";switch(c){case"A":m=s.text();break;case"SELECT":m=s.find('option[value="'+d+'"]').text()}h={"data-taxloader":y?"true":"false","data-taxloader-level":h};x("taxonomies",p+"%"+d,u?s.attr("id"):p,m,!0,h)}y=b("taxonomies",p+"%",!0,!!y&&"taxloader-level");y.length&&(_.taxonomies[p]=[],y.each(function(){var t=v(this).data("taxonomies"),t=t.substr(1+t.indexOf("%"));_.taxonomies[p].push(t)}))}!f&&d&&(_.taxonomies[p]=d,b("taxonomies",p+"%"+d).length||O("taxonomies",p+"%",!0,function(){x("taxonomies",p+"%"+d,p,s.find('option[value="'+d+'"]').text())}))}else f||O("taxonomies",p+"%",!0)}else"postcode"==l?(f=s.val())?(b("postcode",_.postcode=f).length||O("postcode"),x("postcode",f,"postcode",f.toUpperCase())):O("postcode"):"postcode_radius"==l?(a=s.val())&&(_.radius=a):"checkbox"==l?(t=s.attr("name"),e=s.is(":checked")?"true":"false",t&&(_["cb-"+t]=e),"true"==e?b("checkbox",t+"%"+e).length||O("checkbox",t+"%",!0,function(){x("checkbox",t+"%"+e,s.attr("id"))}):O("checkbox",t+"%",!0)):"numeric"==l?(n=s.attr("name"),(i=s.val())?(_["num-"+n]=i,b("numeric",n+"%"+i).length||O("numeric",n+"%",!0,function(){x("numeric",n+"%"+i,s.attr("id"),v('.search-filters-form label[for="'+s.attr("id")+'"]').text()+": "+s.find('option[value="'+i+'"]').text())})):O("numeric",n+"%",!0)):"string"==l?(r=s.attr("name"),(o=s.val())?(_["str-"+r]=o,b("string",r+"%"+o).length||O("string",r+"%",!0,function(){x("string",r+"%"+o,s.attr("id"),s.find('option[value="'+o+'"]').text())})):O("string",r+"%",!0)):"date"==l&&(a=s.data("date-start"),l=s.data("date-end"),a&&l?b("date",(_["start-date"]=a)+"|"+(_["end-date"]=l)).length||(O("date"),x("date",a+"|"+l,"date-range",a+" - "+l)):O("date"))}),r&&!e&&(o=v(i?'.search-content-inner > section[data-results="'+i+'"]':".page-container:first").offset().top-20),e?v(".search-content-inner > section[data-results]").each(function(){var t=v(this).data("results"),e=r?v(this).data("page"):1;t&&(_.pages[t]=e,r&&("fewer"==n&&(!i||i==t)&&1<e?(_.pages[t]--,_.pages[t]):"more"!=n||i&&i!=t?Number.isInteger(n)&&(_.pages[i]=n,_.pages[i]):(_.pages[t]++,_.pages[t]))),v(this).find(".pagination [data-trigger]:not(.human)").addClass("disabled")}):v(".search-content-inner > section[data-results]").hide().each(function(){var t=v(this).data("results"),e=r?v(this).data("page"):1;t&&(_.pages[t]=e,r&&("fewer"==n&&(!i||i==t)&&1<e?(_.pages[t]--,_.pages[t]):"more"!=n||i&&i!=t?Number.isInteger(n)&&(_.pages[i]=n,_.pages[i]):(_.pages[t]++,_.pages[t]))),v(this).find(".pagination [data-trigger]:not(.human)").addClass("disabled")}).slideUp("fast"),e||(v(".custom-events-map").trigger("showloading"),v("body").trigger("loading"),v(".custom-events-results").addClass("overlay")),e||(t=u?0:v(".page-container:first").offset().top,u=!1,v("html, body").animate({scrollTop:t},250,function(){})),v.post(s,_,function(n){return n.debug&&n.debug,n.success?(v(".search-content-inner > .results-errors").hide(),n.pages.events,n.max_pages.events,(e?v('.search-content-inner > section[data-results="events"] > .inner').append(n.events):v('.search-content-inner > section[data-results="events"] > .inner').html(n.events)).parent().removeClass("hide isvisible").addClass(0==n.events.length?"hide":"isvisible").data("page",n.pages.events),1<n.pages.events&&v('.search-content-inner > section[data-results="events"] .pagination > .trigger.fewer').removeClass("disabled"),n.pages.events<n.max_pages.events?v('.search-content-inner > section[data-results="events"] .pagination > .trigger.more').removeClass("disabled"):l=!0,n.human_numbers.events&&(n.human_numbers.events,v('.search-content-inner > section[data-results="events"] .pagination > .human').remove(),n.human_numbers.events&&v('.search-content-inner > section[data-results="events"] .pagination > .trigger.fewer').after(n.human_numbers.events)),r&&!e&&o&&v("html, body").animate({scrollTop:o},1500),v(".custom-events-map").trigger("updatemap",n.map_data),e?(t=v(".search-content-inner > section.isvisible[data-results]"),v(".custom-events-loading-removable").slideUp("fast",function(){v(this).remove()})):t=v(".search-content-inner > section.isvisible[data-results]").slideDown("fast",function(){v(".custom-events-results").removeClass("overlay"),v("body").trigger("hideloading"),v(".custom-events-map").trigger("hideloading"),v(".custom-events-loading-removable").slideUp("fast",function(){v(this).remove()})}),t.each(function(){var t=v(this),e=t.data("results");e&&n.pages[e]&&(t.data("page",n.pages[e]),n.pages[e])}),0==n.events.length&&(v(".search-content-inner > .results-errors h1").show(),v(".search-content-inner > .results-errors").fadeIn("fast",function(){v(".custom-events-results").removeClass("overlay"),v("body").trigger("hideloading"),v(".custom-events-map").trigger("hideloading")})),window.noinf=!1):(v(".custom-events-results").removeClass("overlay"),v("body").trigger("hideloading"),v(".custom-events-map").trigger("hideloading"),n.errors?(v(".search-content-inner >
vendor: 16,810 bytes, line 1
1 .results-errors h1").hide(),v(".search-content-inner > .results-errors > .inner > .errors").empty(),v.each(n.errors,function(t,e){v(".search-content-inner > .results-errors > .inner > .errors").append("<li>"+e+"</li>")}),v(".search-content-inner > .results-errors > .inner").fadeIn("fast")):v(".search-content-inner > .results-errors h1").show(),v(".custom-events-loading-removable").slideUp("fast",function(){v(this).remove()}),v(".search-content-inner > .results-errors").fadeIn("fast")),void(window._ce_ajax_running=!1);var t},"json")}}v(".dtcev").on("click",".search-content-inner > section[data-results] .pagination .trigger",function(){var t=v(this),e=t.data("trigger"),n=t.data("results");return t.parent().hasClass("active")||h(e,n),!1}),v(document).ready(function(){v(".search-results-content").length&&h("filter")}),v(".search-results-content").on("load-more-events",function(){l?v(".custom-events-loading-removable").slideUp("fast",function(){v(this).remove()}):h("more",!1,!0)})}(t),Number.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}}.call(this,n(59))},function(t,e,n){var i=[n(59)];void 0===(n="function"==typeof(n=function(x,O){function w(){return new Date(Date.UTC.apply(Date,arguments))}function C(){var t=new Date;return w(t.getFullYear(),t.getMonth(),t.getDate())}function o(t,e){return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCDate()===e.getUTCDate()}function t(t,e){return function(){return e!==O&&x.fn.datepicker.deprecated(e),this[t].apply(this,arguments)}}function E(t,e){x.data(t,"datepicker",this),this._events=[],this._secondaryEvents=[],this._process_options(e),this.dates=new n,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=x(t),this.isInput=this.element.is("input"),this.inputField=this.isInput?this.element:this.element.find("input"),this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .input-group-append, .input-group-prepend, .btn"),this.component&&0===this.component.length&&(this.component=!1),this.isInline=!this.component&&this.element.is("div"),this.picker=x(S.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.o.calendarWeeks&&this.picker.find(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",function(t,e){return Number(e)+1}),this._process_options({startDate:this._o.startDate,endDate:this._o.endDate,daysOfWeekDisabled:this.o.daysOfWeekDisabled,daysOfWeekHighlighted:this.o.daysOfWeekHighlighted,datesDisabled:this.o.datesDisabled}),this._allow_update=!1,this.setViewMode(this.o.startView),this._allow_update=!0,this.fillDow(),this.fillMonths(),this.update(),this.isInline&&this.show()}var e,n=(e={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),n=0,i=this.length;n<i;n++)if(0<=this[n].valueOf()-e&&this[n].valueOf()-e<864e5)return n;return-1},remove:function(t){this.splice(t,1)},replace:function(t){t&&(x.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.length=0},copy:function(){var t=new n;return t.replace(this),t}},function(){var t=[];return t.push.apply(t,arguments),x.extend(t,e),t});E.prototype={constructor:E,_resolveViewName:function(n){return x.each(S.viewModes,function(t,e){if(n===t||-1!==x.inArray(n,e.names))return n=t,!1}),n},_resolveDaysOfWeek:function(t){return x.isArray(t)||(t=t.split(/[,\s]*/)),x.map(t,Number)},_check_template:function(t){try{return t!==O&&""!==t&&((t.match(/[<>]/g)||[]).length<=0||0<x(t).length)}catch(t){return!1}},_process_options:function(t){this._o=x.extend({},this._o,t);var e=this.o=x.extend({},this._o),n=e.language;T[n]||(n=n.split("-")[0],T[n]||(n=c.language)),e.language=n,e.startView=this._resolveViewName(e.startView),e.minViewMode=this._resolveViewName(e.minViewMode),e.maxViewMode=this._resolveViewName(e.maxViewMode),e.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,e.startView)),!0!==e.multidate&&(e.multidate=Number(e.multidate)||!1,!1!==e.multidate&&(e.multidate=Math.max(0,e.multidate))),e.multidateSeparator=String(e.multidateSeparator),e.weekStart%=7,e.weekEnd=(e.weekStart+6)%7;var i=S.parseFormat(e.format);e.startDate!==-1/0&&(e.startDate?e.startDate instanceof Date?e.startDate=this._local_to_utc(this._zero_time(e.startDate)):e.startDate=S.parseDate(e.startDate,i,e.language,e.assumeNearbyYear):e.startDate=-1/0),e.endDate!==1/0&&(e.endDate?e.endDate instanceof Date?e.endDate=this._local_to_utc(this._zero_time(e.endDate)):e.endDate=S.parseDate(e.endDate,i,e.language,e.assumeNearbyYear):e.endDate=1/0),e.daysOfWeekDisabled=this._resolveDaysOfWeek(e.daysOfWeekDisabled||[]),e.daysOfWeekHighlighted=this._resolveDaysOfWeek(e.daysOfWeekHighlighted||[]),e.datesDisabled=e.datesDisabled||[],x.isArray(e.datesDisabled)||(e.datesDisabled=e.datesDisabled.split(",")),e.datesDisabled=x.map(e.datesDisabled,function(t){return S.parseDate(t,i,e.language,e.assumeNearbyYear)});var r=String(e.orientation).toLowerCase().split(/\s+/g),o=e.orientation.toLowerCase(),r=x.grep(r,function(t){return/^auto|left|right|top|bottom$/.test(t)});if(e.orientation={x:"auto",y:"auto"},o&&"auto"!==o)if(1===r.length)switch(r[0]){case"top":case"bottom":e.orientation.y=r[0];break;case"left":case"right":e.orientation.x=r[0]}else o=x.grep(r,function(t){return/^left|right$/.test(t)}),e.orientation.x=o[0]||"auto",o=x.grep(r,function(t){return/^top|bottom$/.test(t)}),e.orientation.y=o[0]||"auto";e.defaultViewDate instanceof Date||"string"==typeof e.defaultViewDate?e.defaultViewDate=S.parseDate(e.defaultViewDate,i,e.language,e.assumeNearbyYear):e.defaultViewDate?(t=e.defaultViewDate.year||(new Date).getFullYear(),n=e.defaultViewDate.month||0,o=e.defaultViewDate.day||1,e.defaultViewDate=w(t,n,o)):e.defaultViewDate=C()},_applyEvents:function(t){for(var e,n,i,r=0;r<t.length;r++)e=t[r][0],2===t[r].length?(n=O,i=t[r][1]):3===t[r].length&&(n=t[r][1],i=t[r][2]),e.on(i,n)},_unapplyEvents:function(t){for(var e,n,i,r=0;r<t.length;r++)e=t[r][0],2===t[r].length?(i=O,n=t[r][1]):3===t[r].length&&(i=t[r][1],n=t[r][2]),e.off(n,i)},_buildEvents:function(){var t={keyup:x.proxy(function(t){-1===x.inArray(t.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:x.proxy(this.keydown,this),paste:x.proxy(this.paste,this)};!0===this.o.showOnFocus&&(t.focus=x.proxy(this.show,this)),this.isInput?this._events=[[this.element,t]]:this.component&&this.inputField.length?this._events=[[this.inputField,t],[this.component,{click:x.proxy(this.show,this)}]]:this._events=[[this.element,{click:x.proxy(this.show,this),keydown:x.proxy(this.keydown,this)}]],this._events.push([this.element,"*",{blur:x.proxy(function(t){this._focused_from=t.target},this)}],[this.element,{blur:x.proxy(function(t){this._focused_from=t.target},this)}]),this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":x.proxy(function(t){this.update(t.date)},this)}]),this._secondaryEvents=[[this.picker,{click:x.proxy(this.click,this)}],[this.picker,".prev, .next",{click:x.proxy(this.navArrowsClick,this)}],[this.picker,".day:not(.disabled)",{click:x.proxy(this.dayCellClick,this)}],[x(window),{resize:x.proxy(this.place,this)}],[x(document),{"mousedown touchstart":x.proxy(function(t){this.element.is(t.target)||this.element.find(t.target).length||this.picker.is(t.target)||this.picker.find(t.target).length||this.isInline||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(t,e){e=e||this.dates.get(-1),e=this._utc_to_local(e);this.element.trigger({type:t,date:e,viewMode:this.viewMode,dates:x.map(this.dates,this._utc_to_local),format:x.proxy(function(t,e){0===arguments.length?(t=this.dates.length-1,e=this.o.format):"string"==typeof t&&(e=t,t=this.dates.length-1),e=e||this.o.format;var n=this.dates.get(t);return S.formatDate(n,e,this.o.language)},this)})},show:function(){if(!(this.inputField.is(":disabled")||this.inputField.prop("readonly")&&!1===this.o.enableOnReadonly))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&x(this.element).blur(),this},hide:function(){return this.isInline||!this.picker.is(":visible")||(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.setViewMode(this.o.startView),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide")),this},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(t){var e;if(t.originalEvent.clipboardData&&t.originalEvent.clipboardData.types&&-1!==x.inArray("text/plain",t.originalEvent.clipboardData.types))e=t.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;e=window.clipboardData.getData("Text")}this.setDate(e),this.update(),t.preventDefault()},_utc_to_local:function(t){if(!t)return t;var e=new Date(t.getTime()+6e4*t.getTimezoneOffset());return e=e.getTimezoneOffset()!==t.getTimezoneOffset()?new Date(t.getTime()+6e4*e.getTimezoneOffset()):e},_local_to_utc:function(t){return t&&new Date(t.getTime()-6e4*t.getTimezoneOffset())},_zero_time:function(t){return t&&new Date(t.getFullYear(),t.getMonth(),t.getDate())},_zero_utc_time:function(t){return t&&w(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())},getDates:function(){return x.map(this.dates,this._utc_to_local)},getUTCDates:function(){return x.map(this.dates,function(t){return new Date(t)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var t=this.dates.get(-1);return t!==O?new Date(t):null},clearDates:function(){this.inputField.val(""),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()},setDates:function(){var t=x.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var t=x.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,x.map(t,this._utc_to_local)),this},setDate:t("setDates"),setUTCDate:t("setUTCDates"),remove:t("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var t=this.getFormattedDate();return this.inputField.val(t),this},getFormattedDate:function(e){e===O&&(e=this.o.format);var n=this.o.language;return x.map(this.dates,function(t){return S.formatDate(t,e,n)}).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(t){return this._process_options({startDate:t}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(t){return this._process_options({endDate:t}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(t){return this._process_options({daysOfWeekDisabled:t}),this.update(),this},setDaysOfWeekHighlighted:function(t){return this._process_options({daysOfWeekHighlighted:t}),this.update(),this},setDatesDisabled:function(t){return this._process_options({datesDisabled:t}),this.update(),this},place:function(){if(this.isInline)return this;var t=this.picker.outerWidth(),e=this.picker.outerHeight(),n=x(this.o.container),i=n.width(),r=("body"===this.o.container?x(document):n).scrollTop(),o=n.offset(),a=[0];this.element.parents().each(function(){var t=x(this).css("z-index");"auto"!==t&&0!==Number(t)&&a.push(Number(t))});var s=Math.max.apply(Math,a)+this.o.zIndexOffset,l=(this.component?this.component.parent():this.element).offset(),c=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),u=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),n=l.left-o.left,o=l.top-o.top;"body"!==this.o.container&&(o+=r),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(n-=t-u)):l.left<0?(this.picker.addClass("datepicker-orient-left"),n-=l.left-10):i<n+t?(this.picker.addClass("datepicker-orient-right"),n+=u-t):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");t=this.o.orientation.y;return"auto"===t&&(t=-r+o-e<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+t),"top"===t?o-=e+parseInt(this.picker.css("padding-top")):o+=c,this.o.rtl?(u=i-(n+u),this.picker.css({top:o,right:u,zIndex:s})):this.picker.css({top:o,left:n,zIndex:s}),this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var t=this.dates.copy(),n=[],e=!1;return arguments.length?(x.each(arguments,x.proxy(function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),n.push(e)},this)),e=!0):(n=(n=this.isInput?this.element.val():this.element.data("date")||this.inputField.val())&&this.o.multidate?n.split(this.o.multidateSeparator):[n],delete this.element.data().date),n=x.map(n,x.proxy(function(t){return S.parseDate(t,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),n=x.grep(n,x.proxy(function(t){return!this.dateWithinRange(t)||!t},this),!0),this.dates.replace(n),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),e?(this.setValue(),this.element.change()):this.dates.length&&String(t)!==String(this.dates)&&e&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&t.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var t=this.o.weekStart,e="<tr>";for(this.o.calendarWeeks&&(e+='<th class="cw"> </th>');t<this.o.weekStart+7;)e+='<th class="dow',-1!==x.inArray(t,this.o.daysOfWeekDisabled)&&(e+=" disabled"),e+='">'+T[this.o.language].daysMin[t++%7]+"</th>";e+="</tr>",this.picker.find(".datepicker-days thead").append(e)}},fillMonths:function(){for(var t=this._utc_to_local(this.viewDate),e="",n=0;n<12;n++)e+='<span class="month'+(t&&t.getMonth()===n?" focused":"")+'">'+T[this.o.language].monthsShort[n]+"</span>";this.picker.find(".datepicker-months td").html(e)},setRange:function(t){t&&t.length?this.range=x.map(t,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(t){var e=[],n=this.viewDate.getUTCFullYear(),i=this.viewDate.getUTCMonth(),r=C();return t.getUTCFullYear()<n||t.getUTCFullYear()===n&&t.getUTCMonth()<i?e.push("old"):(t.getUTCFullYear()>n||t.getUTCFullYear()===n&&t.getUTCMonth()>i)&&e.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&e.push("focused"),this.o.todayHighlight&&o(t,r)&&e.push("today"),-1!==this.dates.contains(t)&&e.push("active"),this.dateWithinRange(t)||e.push("disabled"),this.dateIsDisabled(t)&&e.push("disabled","disabled-date"),-1!==x.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)&&e.push("highlighted"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&e.push("range"),-1!==x.inArray(t.valueOf(),this.range)&&e.push("selected"),t.valueOf()===this.range[0]&&e.push("range-start"),t.valueOf()===this.range[this.range.length-1]&&e.push("range-end")),e},_fill_yearsView:function(t,e,n,i,r,o,a){for(var s,l,c,u="",h=n/10,t=this.picker.find(t),p=Math.floor(i/n)*n,d=p+9*h,f=Math.floor(this.viewDate.getFullYear()/h)*h,g=x.map(this.dates,function(t){return Math.floor(t.getUTCFullYear()/h)*h}),y=p-h;y<=d+h;y+=h)s=[e],l=null,y===p-h?s.push("old"):y===d+h&&s.push("new"),-1!==x.inArray(y,g)&&s.push("active"),(y<r||o<y)&&s.push("disabled"),y===f&&s.push("focused"),a!==x.noop&&((c=a(new Date(y,0,1)))===O?c={}:"boolean"==typeof c?c={enabled:c}:"string"==typeof c&&(c={classes:c}),!1===c.enabled&&s.push("disabled"),c.classes&&(s=s.concat(c.classes.split(/\s+/))),c.tooltip&&(l=c.tooltip)),u+='<sp
1an class="'+s.join(" ")+'"'+(l?' title="'+l+'"':"")+">"+y+"</span>";t.find(".datepicker-switch").text(p+"-"+d),t.find("td").html(u)},fill:function(){var t,e=new Date(this.viewDate),n=e.getUTCFullYear(),i=e.getUTCMonth(),r=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,o=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,a=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,s=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,l=T[this.o.language].today||T.en.today||"",c=T[this.o.language].clear||T.en.clear||"",u=T[this.o.language].titleFormat||T.en.titleFormat,h=C(),h=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&h>=this.o.startDate&&h<=this.o.endDate&&!this.weekOfDateIsDisabled(h);if(!isNaN(n)&&!isNaN(i)){this.picker.find(".datepicker-days .datepicker-switch").text(S.formatDate(e,u,this.o.language)),this.picker.find("tfoot .today").text(l).css("display",h?"table-cell":"none"),this.picker.find("tfoot .clear").text(c).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var p=w(n,i,0),i=p.getUTCDate();p.setUTCDate(i-(p.getUTCDay()-this.o.weekStart+7)%7);var d=new Date(p);p.getUTCFullYear()<100&&d.setUTCFullYear(p.getUTCFullYear()),d.setUTCDate(d.getUTCDate()+42);for(var f,g,y,d=d.valueOf(),m=[];p.valueOf()<d;){(f=p.getUTCDay())===this.o.weekStart&&(m.push("<tr>"),this.o.calendarWeeks)&&(y=new Date(+p+(this.o.weekStart-f-7)%7*864e5),g=new Date(Number(y)+(11-y.getUTCDay())%7*864e5),_=new Date(Number(_=w(g.getUTCFullYear(),0,1))+(11-_.getUTCDay())%7*864e5),y=(g-_)/864e5/7+1,m.push('<td class="cw">'+y+"</td>")),(g=this.getClassNames(p)).push("day");var _=p.getUTCDate();this.o.beforeShowDay!==x.noop&&((y=this.o.beforeShowDay(this._utc_to_local(p)))===O?y={}:"boolean"==typeof y?y={enabled:y}:"string"==typeof y&&(y={classes:y}),!1===y.enabled&&g.push("disabled"),y.classes&&(g=g.concat(y.classes.split(/\s+/))),y.tooltip&&(t=y.tooltip),y.content&&(_=y.content)),g=x.isFunction(x.uniqueSort)?x.uniqueSort(g):x.unique(g),m.push('<td class="'+g.join(" ")+'"'+(t?' title="'+t+'"':"")+' data-date="'+p.getTime().toString()+'">'+_+"</td>"),t=null,f===this.o.weekEnd&&m.push("</tr>"),p.setUTCDate(p.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(m.join(""));var v,i=T[this.o.language].monthsTitle||T.en.monthsTitle||"Months",b
vendor: 15,476 bytes, line 1
1=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?i:n).end().find("tbody span").removeClass("active");x.each(this.dates,function(t,e){e.getUTCFullYear()===n&&b.eq(e.getUTCMonth()).addClass("active")}),(n<r||a<n)&&b.addClass("disabled"),n===r&&b.slice(0,o).addClass("disabled"),n===a&&b.slice(s+1).addClass("disabled"),this.o.beforeShowMonth!==x.noop&&(v=this,x.each(b,function(t,e){t=new Date(n,t,1),t=v.o.beforeShowMonth(t);t===O?t={}:"boolean"==typeof t?t={enabled:t}:"string"==typeof t&&(t={classes:t}),!1!==t.enabled||x(e).hasClass("disabled")||x(e).addClass("disabled"),t.classes&&x(e).addClass(t.classes),t.tooltip&&x(e).prop("title",t.tooltip)})),this._fill_yearsView(".datepicker-years","year",10,n,r,a,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,n,r,a,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,n,r,a,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var t,e,n=new Date(this.viewDate),i=n.getUTCFullYear(),r=n.getUTCMonth(),o=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,a=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,s=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,c=1;switch(this.viewMode){case 4:c*=10;case 3:c*=10;case 2:c*=10;case 1:t=Math.floor(i/c)*c<=o,e=Math.floor(i/c)*c+c>s;break;case 0:t=i<=o&&r<=a,e=s<=i&&l<=r}this.picker.find(".prev").toggleClass("disabled",t),this.picker.find(".next").toggleClass("disabled",e)}},click:function(t){var e,n;t.preventDefault(),t.stopPropagation(),(t=x(t.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),t.hasClass("today")&&!t.hasClass("day")&&(this.setViewMode(0),this._setDate(C(),"linked"===this.o.todayBtn?null:"view")),t.hasClass("clear")&&this.clearDates(),t.hasClass("disabled")||(t.hasClass("month")||t.hasClass("year")||t.hasClass("decade")||t.hasClass("century"))&&(this.viewDate.setUTCDate(1),1===this.viewMode?(n=t.parent().find("span").index(t),e=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(n)):(n=0,e=Number(t.text()),this.viewDate.setUTCFullYear(e)),this._trigger(S.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(w(e,n,1)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(t){t=x(t.currentTarget).data("date"),t=new Date(t);this.o.updateViewDate&&(t.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),t.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(t)},navArrowsClick:function(t){t=x(t.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(t*=12*S.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,t),this._trigger(S.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),-1!==e?(!0===this.o.multidate||1<this.o.multidate||this.o.toggleActive)&&this.dates.remove(e):(!1===this.o.multidate&&this.dates.clear(),this.dates.push(t)),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),(!e&&this.o.updateViewDate||"view"===e)&&(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||e&&"date"!==e||this.hide()},moveDay:function(t,e){var n=new Date(t);return n.setUTCDate(t.getUTCDate()+e),n},moveWeek:function(t,e){return this.moveDay(t,7*e)},moveMonth:function(t,e){if(!t||isNaN(t.getTime()))return this.o.defaultViewDate;if(!e)return t;var n,i,r=new Date(t.valueOf()),o=r.getUTCDate(),a=r.getUTCMonth(),s=Math.abs(e);if(e=0<e?1:-1,1===s)i=-1===e?function(){return r.getUTCMonth()===a}:function(){return r.getUTCMonth()!==n},n=a+e,r.setUTCMonth(n),n=(n+12)%12;else{for(var l=0;l<s;l++)r=this.moveMonth(r,e);n=r.getUTCMonth(),r.setUTCDate(o),i=function(){return n!==r.getUTCMonth()}}for(;i();)r.setUTCDate(--o),r.setUTCMonth(n);return r},moveYear:function(t,e){return this.moveMonth(t,12*e)},moveAvailableDate:function(t,e,n){do{if(t=this[n](t,e),!this.dateWithinRange(t))return!1}while(n="moveDay",this.dateIsDisabled(t));return t},weekOfDateIsDisabled:function(t){return-1!==x.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled)},dateIsDisabled:function(e){return this.weekOfDateIsDisabled(e)||0<x.grep(this.o.datesDisabled,function(t){return o(e,t)}).length},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":visible")){var e,n,i=!1,r=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault(),t.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;e=37===t.keyCode||38===t.keyCode?-1:1,0===this.viewMode?t.ctrlKey?(n=this.moveAvailableDate(r,e,"moveYear"))&&this._trigger("changeYear",this.viewDate):t.shiftKey?(n=this.moveAvailableDate(r,e,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===t.keyCode||39===t.keyCode?n=this.moveAvailableDate(r,e,"moveDay"):this.weekOfDateIsDisabled(r)||(n=this.moveAvailableDate(r,e,"moveWeek")):1===this.viewMode?(38!==t.keyCode&&40!==t.keyCode||(e*=4),n=this.moveAvailableDate(r,e,"moveMonth")):2===this.viewMode&&(38!==t.keyCode&&40!==t.keyCode||(e*=4),n=this.moveAvailableDate(r,e,"moveYear")),n&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),t.preventDefault());break;case 13:if(!this.o.forceParse)break;r=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(r),i=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),t.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}i&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==t.keyCode&&27!==t.keyCode||(this.show(),t.stopPropagation())},setViewMode:function(t){this.viewMode=t,this.picker.children("div").hide().filter(".datepicker-"+S.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};function l(t,e){x.data(t,"datepicker",this),this.element=x(t),this.inputs=x.map(e.inputs,function(t){return t.jquery?t[0]:t}),delete e.inputs,this.keepEmptyValues=e.keepEmptyValues,delete e.keepEmptyValues,r.call(x(this.inputs),e).on("changeDate",x.proxy(this.dateUpdated,this)),this.pickers=x.map(this.inputs,function(t){return x.data(t,"datepicker")}),this.updateDates()}l.prototype={updateDates:function(){this.dates=x.map(this.pickers,function(t){return t.getUTCDate()}),this.updateRanges()},updateRanges:function(){var n=x.map(this.dates,function(t){return t.valueOf()});x.each(this.pickers,function(t,e){e.setRange(n)})},clearDates:function(){x.each(this.pickers,function(t,e){e.clearDates()})},dateUpdated:function(t){if(!this.updating){this.updating=!0;var n=x.data(t.target,"datepicker");if(n!==O){var i=n.getUTCDate(),r=this.keepEmptyValues,t=x.inArray(t.target,this.inputs),e=t-1,o=t+1,a=this.inputs.length;if(-1!==t){if(x.each(this.pickers,function(t,e){e.getUTCDate()||e!==n&&r||e.setUTCDate(i)}),i<this.dates[e])for(;0<=e&&i<this.dates[e];)this.pickers[e--].setUTCDate(i);else if(i>this.dates[o])for(;o<a&&i>this.dates[o];)this.pickers[o++].setUTCDate(i);this.updateDates(),delete this.updating}}}},destroy:function(){x.map(this.pickers,function(t){t.destroy()}),x(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:t("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var i=x.fn.datepicker,r=function(o){var a,s=Array.apply(null,arguments);if(s.shift(),this.each(function(){var t,e,n=x(this),i=n.data("datepicker"),r="object"==typeof o&&o;i||(t=function(t,e){var n,i=x(t).data(),r={},o=new RegExp("^"+e.toLowerCase()+"([A-Z])");function a(t,e){return e.toLowerCase()}for(n in e=new RegExp("^"+e.toLowerCase()),i)e.test(n)&&(r[n.replace(o,a)]=i[n]);return r}(this,"date"),e=function(t){var n={};if(T[t]||(t=t.split("-")[0],T[t])){var i=T[t];return x.each(u,function(t,e){e in i&&(n[e]=i[e])}),n}}(x.extend({},c,t,r).language),r=x.extend({},c,e,t,r),i=n.hasClass("input-daterange")||r.inputs?(x.extend(r,{inputs:r.inputs||n.find("input").toArray()}),new l(this,r)):new E(this,r),n.data("datepicker",i)),"string"==typeof o&&"function"==typeof i[o]&&(a=i[o].apply(i,s))}),a===O||a instanceof E||a instanceof l)return this;if(1<this.length)throw new Error("Using only allowed for the collection of a single element ("+o+" function)");return a};x.fn.datepicker=r;var c=x.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:x.noop,beforeShowMonth:x.noop,beforeShowYear:x.noop,beforeShowDecade:x.noop,beforeShowCentury:x.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"«",rightArrow:"»"},showWeekDays:!0},u=x.fn.datepicker.locale_opts=["format","rtl","weekStart"];x.fn.datepicker.Constructor=E;var T=x.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},S={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(t){if("function"==typeof t.toValue&&"function"==typeof t.toDisplay)return t;var e=t.replace(this.validParts,"\0").split("\0"),t=t.match(this.validParts);if(!e||!e.length||!t||0===t.length)throw new Error("Invalid date format.");return{separators:e,parts:t}},parseDate:function(t,e,n,i){if(!t)return O;if(t instanceof Date)return t;if((e="string"==typeof e?S.parseFormat(e):e).toValue)return e.toValue(t,e,n);var r,o,a,s={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},l={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(t=t in l?l[t]:t)){for(h=t.match(/([\-+]\d+)([dmwy])/gi),t=new Date,v=0;v<h.length;v++)r=h[v].match(/([\-+]\d+)([dmwy])/i),o=Number(r[1]),a=s[r[2].toLowerCase()],t=E.prototype[a](t,o);return E.prototype._zero_utc_time(t)}var c,u,h=t&&t.match(this.nonpunctuation)||[],p={},d=["yyyy","yy","M","MM","m","mm","d","dd"],f={yyyy:function(t,e){return t.setUTCFullYear(i?(!0===(n=i)&&(n=10),(t=e)<100&&(t+=2e3)>(new Date).getFullYear()+n&&(t-=100),t):e);var n},m:function(t,e){if(isNaN(t))return t;for(--e;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};f.yy=f.yyyy,f.M=f.MM=f.mm=f.m,f.dd=f.d,t=C();var g=e.parts.slice();function y(){var t=this.slice(0,h[v].length),e=h[v].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(h.length!==g.length&&(g=x(g).filter(function(t,e){return-1!==x.inArray(e,d)}).toArray()),h.length===g.length){for(var m,_,v=0,b=g.length;v<b;v++){if(c=parseInt(h[v],10),r=g[v],isNaN(c))switch(r){case"MM":u=x(T[n].months).filter(y),c=x.inArray(u[0],T[n].months)+1;break;case"M":u=x(T[n].monthsShort).filter(y),c=x.inArray(u[0],T[n].monthsShort)+1}p[r]=c}for(v=0;v<d.length;v++)(_=d[v])in p&&!isNaN(p[_])&&(m=new Date(t),f[_](m,p[_]),isNaN(m)||(t=m))}return t},formatDate:function(t,e,n){if(!t)return"";if((e="string"==typeof e?S.parseFormat(e):e).toDisplay)return e.toDisplay(t,e,n);var i={d:t.getUTCDate(),D:T[n].daysShort[t.getUTCDay()],DD:T[n].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:T[n].monthsShort[t.getUTCMonth()],MM:T[n].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()};i.dd=(i.d<10?"0":"")+i.d,i.mm=(i.m<10?"0":"")+i.m,t=[];for(var r=x.extend([],e.separators),o=0,a=e.parts.length;o<=a;o++)r.length&&t.push(r.shift()),t.push(i[e.parts[o]]);return t.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"></th></tr><tr><th class="prev">'+c.templates.leftArrow+'</th><th colspan="5" class="datepicker-switch"></th><th class="next">'+c.templates.rightArrow+"</th></tr></thead>",contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};S.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+S.headTemplate+"<tbody></tbody>"+S.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+S.headTemplate+S.contTemplate+S.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+S.headTemplate+S.contTemplate+S.footTemplate+'</table></div><div class="datepicker-decades"><table class="table-condensed">'+S.headTemplate+S.contTemplate+S.footTemplate+'</table></div><div class="datepicker-centuries"><table class="table-condensed">'+S.headTemplate+S.contTemplate+S.footTemplate+"</table></div></div>",x.fn.datepicker.DPGlobal=S,x.fn.datepicker.noConflict=function(){return x.fn.datepicker=i,this},x.fn.datepicker.version="1.9.0",x.fn.datepicker.deprecated=function(t){var e=window.console;e&&e.warn&&e.warn("DEPRECATED: "+t)},x(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var e=x(this);e.data("datepicker")||(t.preventDefault(),r.call(e,"show"))}),x(function(){r.call(x('[data-provide="datepicker-inline"]'))})})?n.apply(e,i):n)||(t.exports=n)},function(t,e,S){"use strict";!function(t){var n,o,e,s,l,c=S(89),u=S(117),h=S(61),p=S(114),d=S(116),f=S(46),g=S(58),y=S(52),m=S(50),_=S(115),v=S(90),b=S(87),x=S(88),i=S(40),O=S(91),r=S(39),w=S(8);function a(t){var e,n;t.lat&&t.lng&&(e=Object(w.d)([parseFloat(t.lng),parseFloat(t.lat)]),n=t.tmb?'<a href="'+t.lnk+'"><img src="'+t.tmb+'" alt="'+t.ttl+'" class="marker-img"></a>':"",t=new i.a({geometry:new r.a([e[0],e[1]]),name:t.ttl,description:n+'<sp
1an class="marker-title"><a href="'+t.lnk+'">'+t.ttl+"</a></span>",is_a_marker:!0}),s.addFeature(t))}function C(){s&&0<s.getFeatures().length&&e.getView().fit(s.getExtent(),e.getSize()),!1!==l&&e.getView().setZoom(l)}function E(t){s&&0<s.getFeatures().length&&s.clear(),"function"==typeof t&&t()}function T(t){n(".dtcev .make-map-marker[data-lat][data-lng]").each(function(){a({lat:n(this).data("lat"),lng:n(this).data("lng"),lnk:n(this).find("a.map-link:first").attr("href"),ttl:n(this).find(".map-title:first").html(),tmb:n(this).find("img.map-thumb:first").attr("src")})}).promise().done(function(){"function"==typeof t&&t()})}l=s=e=null,(n=t)(document).ready(function(){n(".dtcev .osmmap").each(function(){var t=n(this);e=function(t){s=new h.a;var e=new p.a({distance:25,source:s}),a={};function n(t,e){var n,i,r=t.get("features").length,o=a[r];return o||(n=8<r?"192,0,0":4<r?"255,128,0":"68,97,108",i=Math.max(15,Math.min(2.5*r,30)),t=[0,t=2*Math.PI*i/6,t,t,t,t,t],o=a[r]=new f.c({image:new g.a({radius:i,stroke:new y.a({color:"rgba("+n+",0.5)",width:15,lineDash:t,lineCap:"butt"}),fill:new m.a({color:"rgba("+n+",1)"})}),text:new _.a({text:r.toString(),font:"bold 16px Cutive Mono,monospace",fill:new m.a({color:"#fff"})})})),o}o=new c.a({name:"Cluster",source:e,animationDuration:700,style:n});var i=new v.a({popupClass:"default",closeBox:!0,onshow:function(){},onclose:function(){},positioning:"auto",autoPan:!0,autoPanAnimation:{duration:250}}),r=new b.a({target:t[0],layers:[new u.a({source:new d.a}),o],view:new x.a({center:Object(w.d)([-2.58791,51.454514]),zoom:l||8,maxZoom:15}),overlays:[i]}),t=new O.a({pointRadius:25,animate:!0,featureStyle:new f.c({image:new g.a({radius:10,stroke:new y.a({color:"rgba( 68,97,108, 1 )",width:1}),fill:new m.a({color:"rgba( 233,172,160, 1 )"})}),stroke:new y.a({color:"rgba( 68,97,108, 0.5 )",width:1})}),style:function(t,e){return 1<t.get("features").length?[n(t)]:[new f.c({image:new g.a({stroke:new y.a({color:"rgba( 0,0,192, 0.5 )",width:2}),fill:new m.a({color:"rgba( 0,0,192, 0.3 )"}),radius:5})})]}});return r.addInteraction(t),t.getFeatures().on(["add"],function(t){var e=t.element.get("features");1==e.length&&(!(t=e[0]).get("is_a_marker")||"function"==typeof(e=t.getGeometry()).getCoordinates&&(e=e.getFirstCoordinate(),i.show(e,t.get("description"))))}),t.getFeatures().on(["remove"],function(t){i.hide()}),r.on("pointermove",function(t){t.dragging?i.getVisible()&&i.hide():(t=r.getEventPixel(t.originalEvent),t=r.hasFeatureAtPixel(t),r.getTarget().style.cursor=t?"pointer":"")}),r}(t),t.attr("id"),l=(l=t.data("zoom"))||!1,t.on("showloading",function(){n(".map-wrapper .loading").fadeIn("fast")}),t.on("hideloading",function(){n(".map-wrapper .loading").fadeOut("fast")}),t.on("redrawmap",function(){setTimeout(function(){e.updateSize(),C()},500)}),t.on("updatemap",function(t,e){e&&E(function(){var t;n(this).hasClass("automarker")?T(function(){C(),n(".map-wrapper .loading").fadeOut("fast")}):(t=function(){C(),n(".map-wrapper .loading").fadeOut("fast")},n.each(e,function(t,e){a(e)}),t())})}),t.on("resizemap",function(){n(this).hasClass("automarker")?E(function(){e.updateSize(),T(function(){C(),n(".map-wrapper .loading").fadeOut("fast")})}):(e.updateSize(),C(),n(".map-wrapper .loading").fadeOut("fast"))}),t.hasClass("automarker")&&(T(),C())}),n('.dtcev .map-switch input[type="checkbox"]').on("change",function(){var t=n(".dtcev .custom-events-map");if(n(this).is(":checked")){if(t.hasClass("showmap"))return!1;t.addClass("showmap").trigger("redrawmap").trigger("hideloading")}else{if(!t.hasClass("showmap"))return!1;t.trigger("showloading").removeClass("showmap")}})})}.call(this,S(59))},function(t,e,n){!function(t){var c,i;c=t,(i=custom_events.ajaxurl)&&c(document).ready(function(){c(".dtcev").on("click",'[data-tax-loader="true"][data-tax] .dropdown-menu a[data-filter]',function(){var t,e=c(this),n=e.data("tax"),a=e.data("value"),s=e.parents(".dropdown"),l=(s.data("toplevel-parent")||s.data("parent"),s.data("taxloader-level"));c('.dtcev [data-taxloader-container="true"] div.dropdown[data-tax="'+n+'"]'+(a?'[data-parent="'+a+'"]':"")).length||(t=l,c('.dtcev [data-taxloader-container="true"] div.dropdown[data-tax="'+n+'"][data-taxloader-level]').filter(function(){return c(this).data("taxloader-level")>t}).fadeOut("fast",function(){c(this).remove()}),n={action:"custom_events_taxloader",taxonomy:n,parent_term_id:a},c.post(i,n,function(n){var t,e,i,r,o;n.debug&&n.debug,n.success&&n.terms&&(t=JSON.parse(n.terms),Object.keys(t).length&&(t.length,e="dtcevdd-"+Math.floor(101*Math.random()),i=c("<div/>",{id:e,class:"dropdown m-2","data-tax-loader":"true","data-tax":n.taxonomy,"data-toplevel-parent":"false","data-parent":a,"data-taxloader-template":"false","data-taxloader-level":1+l}),r=c("<button/>",{id:e+"-btn",class:"btn btn-outline-primary dropdown-toggle",type:"button","aria-haspopup":"true","aria-expanded":"false","data-taxloader-title":"true","data-toggle":"dropdown"}).html(n.name),o=c("<div/>",{id:e+"-menu",class:"dropdown-menu filter-dropdown","aria-labelledby":e+"-btn"}),c.each(t,function(t,e){e=c("<a/>",{id:"ce-filter-venue-tax-"+n.taxonomy+"-"+a+"-"+t,href:"#",class:"dropdown-item","data-filter":"taxonomy","data-multiple":"true","data-tax":n.taxonomy,"data-value":t,"data-taxloader-item":"true"}).html(e);o.append(e)}),i.append(r).append(o),i.insertAfter(s)))}))})})}.call(this,n(59))},function(t,e,n){!function(t){function r(t,e){l('.dtcev [data-taxloader-container="true"] .checkbox-tax[data-tax-loader="true"][data-tax="'+t+'"][data-taxloader-level]').filter(function(){return l(this).data("taxloader-level")>e}).fadeOut("fast",function(){l(this).remove()})}var l,o;l=t,(o=custom_events.ajaxurl)&&l(document).ready(function(){l(".dtcev").on("change",'div.checkbox-tax[data-tax-loader="true"][data-tax] .form-check input[type="checkbox"][data-filter="taxonomy"]',function(){var t=l(this),e=t.data("tax"),s=t.data("value"),n=t.parents(".checkbox-tax"),i=(n.data("toplevel-parent")||n.data("parent"),n.data("taxloader-level"));l('.dtcev [data-taxloader-container="true"] .checkbox-tax[data-tax-loader="true"][data-tax="'+e+'"]'+(s?'[data-parent="'+s+'"]':"")).length?r(e,i):(r(e,i),e={action:"custom_events_taxloader",taxonomy:e,parent_term_id:s}
1,l.post(o,e,function(r){var t,o,a,e;r.debug&&r.debug,r.success&&r.terms&&(t=JSON.parse(r.terms),Object.keys(t).length&&(t.length,o="dtcevdd-"+Math.floor(101*Math.random()),a=l("<div/>",{id:o,class:"checkbox-tax","data-tax-loader":"true","data-tax":r.taxonomy,"data-toplevel-parent":"false","data-parent":s,"data-taxloader-template":"false","data-taxloader-level":1+i}),e=l("<span/>",{id:o+"-title",class:"ce-filter-title","data-taxloader-title":"true"}).html(r.name),a.append(e),l.each(t,function(t,e){var n=l("<div/>",{class:"form-check","aria-labelledby":o+"-title"}),i=l("<input/>",{id:"ce-filter-venue-tax-"+r.taxonomy+"-"+s+"-"+t,name:"ce-filter-venue-tax-"+r.taxonomy+"-"+s+"-"+t,type:"checkbox",class:"checkbox-filter","data-filter":"taxonomy","data-multiple":"true","data-taxloader-item":"true","data-tax":r.taxonomy,"data-value":t}).html(e),e=l("<label/>",{class:"form-check-label ml-2",for:"ce-filter-venue-tax-"+r.taxonomy+"-"+s+"-"+t}).html(e);n.append(i).append(e),a.append(n)}),a.insertAfter(n)))}))})})}.call(this,n(59))},function(t,e,n){!function(t){function n(t,e){c('.dtcev [data-taxloader-container="true"] .select-tax[data-tax-loader="true"][data-tax="'+t+'"][data-taxloader-level]').filter(function(){return c(this).data("taxloader-level")>e}).fadeOut("fast",function(){c(this).remove()})}var c,i;c=t,(i=custom_events.ajaxurl)&&c(document).ready(function(){c(".dtcev").on("change",'div.select-tax[data-tax-loader="true"][data-tax] select[data-filter="taxonomy"]',function(){var t=c(this),e=t.data("tax"),a=t.val(),s=t.parents(".select-tax"),l=(s.data("toplevel-parent")||s.data("parent"),s.data("taxloader-level"));a?c('.dtcev [data-taxloader-container="true"] .select-tax[data-tax-loader="true"][data-tax="'+e+'"]'+(a?'[data-parent="'+a+'"]':"")).length?n(e,l):(n(e,l),t={action:"custom_events_taxloader",taxonomy:e,parent_term_id:a},c.post(i,t,function(t){var e,n,i,r,o;t.debug&&t.debug,t.success&&t.terms&&(e=JSON.parse(t.terms),Object.keys(e).length&&(n="dtcevdd-"+Math.floor(101*Math.random()),i=c("<div/>",{id:n,class:"select-tax d-flex flex-column align-items-start","data-tax-loader":"true","data-tax":t.taxonomy,"data-toplevel-parent":"false","data-parent":a,"data-taxloader-template":"false","data-taxloader-level":1+l}),r=c("<label/>",{id:n+"-title",class:"ce-filter-title","data-taxloader-title":"true",for:n+"-select"}).html(t.name),o=c("<select/>",{id:n+"-select",name:n+"-select",class:"form-select select-filter form-control w-100","aria-labelledby":n+"-title","data-filter":"taxonomy","data-multiple":"true","data-tax":t.taxonomy,"data-taxloader-item":"true"}),t=c("<option/>",{value:""}).html("Select..."),o.append(t),c.each(e,function(t,e){e=c("<option/>",{value:t}).html(e);o.append(e)}),i.append(r).append(o),i.insertAfter(s)))})):n(e,1)})})}.call(this,n(59))},function(t,e,n){!function(t){t.noConflict(),void 0!==window.$&&window.$}.call(this,n(59))},function(t,e,n){"use strict";var i,r,o=n(6),a=n(40),s=n(2),l=n(39),c=n(61),u=n(24),h=n(9),p=n(0),d=n(1),n=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),n=(r=c.a,n(f,r),f.prototype.clear=function(t){this.features.length=0,r.prototype.clear.call(this,t)},f.prototype.getDistance=function(){return this.distance},f.prototype.getSource=function(){return this.source},f.prototype.loadFeatures=function(t,e,n){this.source.loadFeatures(t,e,n),e!==this.resolution&&(this.clear(),this.resolution=e,this.cluster(),this.addFeatures(this.features))},f.prototype.setDistance=function(t){this.distance=t,this.refresh()},f.prototype.setSource=function(t){this.source&&this.source.removeEventListener(o.a.CHANGE,this.boundRefresh_),(this.source=t)&&t.addEventListener(o.a.CHANGE,this.boundRefresh_),this.refresh()},f.prototype.refresh=function(){this.clear(),this.cluster(),this.addFeatures(this.features)}
1,f.prototype.cluster=function(){if(void 0!==this.resolution&&this.source)for(var t=Object(p.j)(),e=this.distance*this.resolution,n=this.source.getFeatures(),i={},r=0,o=n.length;r<o;r++){var a=n[r];Object(d.c)(a)in i||(a=this.geometryFunction(a))&&(a=a.getCoordinates(),Object(p.m)(a,t),Object(p.c)(t,e,t),a=(a=this.source.getFeaturesInExtent(t)).filter(function(t){t=Object(d.c)(t);return!(t in i||(i[t]=!0,0))}),this.features.push(this.createCluster(a)))}},f.prototype.createCluster=function(t){for(var e=[0,0],n=t.length-1;0<=n;--n){var i=this.geometryFunction(t[n]);i?Object(u.a)(e,i.getCoordinates()):t.splice(n,1)}Object(u.e)(e,1/t.length);var r=new a.a(new l.a(e));return r.set("features",t),r},f);function f(t){var e=r.call(this,{attributions:t.attributions,wrapX:t.wrapX})||this;return e.resolution=void 0,e.distance=void 0!==t.distance?t.distance:20,e.features=[],e.geometryFunction=t.geometryFunction||function(t){t=t.getGeometry();return Object(h.a)(t.getType()==s.a.POINT,10),t},e.boundRefresh_=e.refresh.bind(e),e.setSource(t.source||null),e}e.a=n},function(t,e,n){"use strict";var i=n(50),r=n(76),o=n(27),n=(a.prototype.clone=function(){var t=this.getScale();return new a({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()})},a.prototype.getOverflow=function(){return this.overflow_},a.prototype.getFont=function(){return this.font_},a.prototype.getMaxAngle=function(){return this.maxAngle_},a.prototype.getPlacement=function(){return this.placement_},a.prototype.getOffsetX=function(){return this.offsetX_},a.prototype.getOffsetY=function(){return this.offsetY_},a.prototype.getFill=function(){return this.fill_},a.prototype.getRotateWithView=function(){return this.rotateWithView_},a.prototype.getRotation=function(){return this.rotation_},a.prototype.getScale=function(){return this.scale_},a.prototype.getScaleArray=function(){return this.scaleArray_},a.prototype.getStroke=function(){return this.stroke_},a.prototype.getText=function(){return this.text_},a.prototype.getTextAlign=function(){return this.textAlign_},a.prototype.getTextBaseline=function(){return this.textBaseline_},a.prototype.getBackgroundFill=function(){return this.backgroundFill_},a.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},a.prototype.getPadding=function(){return this.padding_},a.prototype.setOverflow=function(t){this.overflow_=t},a.prototype.setFont=function(t){this.font_=t},a.prototype.setMaxAngle=function(t){this.maxAngle_=t},a.prototype.setOffsetX=function(t){this.offsetX_=t},a.prototype.setOffsetY=function(t){this.offsetY_=t},a.prototype.setPlacement=function(t){this.placement_=t},a.prototype.setRotateWithView=function(t){this.rotateWithView_=t},a.prototype.setFill=function(t){this.fill_=t},a.prototype.setRotation=function(t){this.rotation_=t},a.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=Object(o.c)(void 0!==t?t:1)},a.prototype.setStroke=function(t){this.stroke_=t},a.prototype.setText=function(t){this.text_=t},a.prototype.setTextAlign=function(t){this.textAlign_=t},a.prototype.setTextBaseline=function(t){this.textBaseline_=t},a.prototype.setBackgroundFill=function(t){this.backgroundFill_=t},a.prototype.setBackgroundStroke=function(t){this.backgroundStroke_=t},a.prototype.setPadding=function(t){this.padding_=t},a);function a(t){t=t||{};this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=Object(o.c)(void 0!==t.scale?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.textBaseline_=t.textBaseline,this.fill_=void 0!==t.fill?t.fill:new i.a({color:"#333"}),this.maxAngle_=void 0!==t.maxAngle?t.maxAngle:Math.PI/4,this.placement_=void 0!==t.placement?t.placement:r.a.POINT,this.overflow_=!!t.overflow,this.stroke_=void 0!==t.stroke?t.stroke:null,this.offsetX_=void 0!==t.offsetX?t.offsetX:0,this.offsetY_=void 0!==t.offsetY?t.offsetY:0,this.backgroundFill_=t.backgroundFill||null,this.backgroundStroke_=t.backgroundStroke||null,this.padding_=void 0===t.padding?null:t.padding}e.a=n},function(t,e,n){"use strict";var i,r,o,a=n(6),s=n(37),x=n(10),l=n(1),c=n(23),u=(i=function(t,e){return(i=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=(o=s.a,u(d,o),d.prototype.changed=function(){this.dispatchEvent(a.a.CHANGE)},d.prototype.release=function(){},d.prototype.getKey=function(){return this.key+"/"+this.tileCoord},d.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(t.getState()==x.a.LOADED)return this.transition_=0,t}while(t=t.interimTile);return this},d.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,e=this;do{if(t.getState()==x.a.LOADED){t.interimTile=null;break}}while(t.getState()!=x.a.LOADING&&t.getState()==x.a.IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile)}},d.prototype.getTileCoord=function(){return this.tileCoord},d.prototype.getState=function(){return this.state},d.prototype.setState=function(t){if(this.state!==x.a.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},d.prototype.load=function(){Object(l.b)()},d.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var n=this.transitionStarts_[t];if(n){if(-1===n)return 1}else n=e,this.transitionStarts_[t]=n;n=e-n+1e3/60;return n>=this.transition_?1:Object(c.a)(n/this.transition_)},d.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},d.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},d),h=n(14),p=n(84);function d(t,e,n){var i=o.call(this)||this,n=n||{};return i.tileCoord=t,i.state=e,i.interimTile=null,i.hifi=!0,i.key="",i.transition_=void 0===n.transition?250:n.transition,i.transitionStarts_={},i}var T,f,g=((r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(_,f=s),_.prototype.getImage=function(){return this.image_},_.prototype.handleImageError_=function(){var t;this.state=x.a.ERROR,this.unlistenImage_(),this.image_=((t=Object(h.a)(1,1)).fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas),this.changed()},_.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=x.a.LOADED:this.state=x.a.EMPTY,this.unlistenImage_(),this.changed()},_.prototype.load=function(){this.state==x.a.ERROR&&(this.state=x.a.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==x.a.IDLE&&(this.state=x.a.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Object(p.a)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},_.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},_),S=n(0),y=n(8),j=n(4),O=(m.prototype.addTriangle_=function(t,e,n,i,r,o){this.triangles_.push({source:[i,r,o],target:[t,e,n]})},m.prototype.addQuad_=function(t,e,n,i,r,o,a,s,l){var c=Object(S.b)([r,o,a,s]),u=this.sourceWorldWidth_?Object(S.E)(c)/this.sourceWorldWidth_:null,h=this.sourceWorldWidth_,p=this.sourceProj_.canWrapX()&&.5<u&&u<1,d=!1;if(0<l&&(this.targetProj_.isGlobal()&&this.targetWorldWidth_&&(_=Object(S.b)([t,e,n,i]),d=.25<Object(S.E)(_)/this.targetWorldWidth_||d),!p&&this.sourceProj_.isGlobal()&&u&&(d=.25<u||d)),!(!d&&this.maxSourceExtent_&&isFinite(c[0])&&isFinite(c[1])&&isFinite(c[2])&&isFinite(c[3]))||Object(S.F)(c,this.maxSourceExtent_)){var f,g,y,m,_=0;if(!(d||isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(s[0])&&isFinite(s[1])))if(0<l)d=!0;else if(1!=(_=(isFinite(r[0])&&isFinite(r[1])?0:8)+(isFinite(o[0])&&isFinite(o[1])?0:4)+(isFinite(a[0])&&isFinite(a[1])?0:2)+(isFinite(s[0])&&isFinite(s[1])?0:1))&&2!=_&&4!=_&&8!=_)return;if(0<l)if(d||(u=[(t[0]+n[0])/2,(t[1]+n[1])/2],c=this.transformInv_(u),u=void 0,d=(u=p?(Object(j.e)(r[0],h)+Object(j.e)(a[0],h))/2-Object(j.e)(c[0],h):(r[0]+a[0])/2-c[0])*u+(c=(r[1]+a[1])/2-c[1])*c>this.errorThresholdSquared_),d)return void(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])?(g=[(e[0]+n[0])/2,(e[1]+n[1])/2],m=this.transformInv_(g),f=[(i[0]+t[0])/2,(i[1]+t[1])/2],y=this.transformInv_(f),this.addQuad_(t,e,g,f,r,o,m,y,l-1),this.addQuad_(f,g,n,i,y,m,a,s,l-1)):(f=[(t[0]+e[0])/2,(t[1]+e[1])/2],g=this.transformInv_(f),y=[(n[0]+i[0])/2,(n[1]+i[1])/2],m=this.transformInv_(y),this.addQuad_(t,f,y,i,r,g,m,s,l-1),this.addQuad_(f,e,n,y,g,o,a,m,l-1)));if(p){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&_)&&this.addTriangle_(t,n,i,r,a,s),0==(14&_)&&this.addTriangle_(t,n,e,r,a,o),_&&(0==(13&_)&&this.addTriangle_(e,i,t,o,s,r),0==(7&_)&&this.addTriangle_(e,i,n,o,s,a))}},m.prototype.calculateSourceExtent=function(){var i=Object(S.j)();return this.triangles_.forEach(function(t,e,n){t=t.source;Object(S.r)(i,t[0]),Object(S.r)(i,t[1]),Object(S.r)(i,t[2])}),i},m.prototype.getTriangles=function(){return this.triangles_},m),D={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},I=n(11);function m(t,e,n,i,r,o){this.sourceProj_=t,this.targetProj_=e;var a={},s=Object(y.i)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return a[e]||(a[e]=s(t)),a[e]},this.maxSourceExtent_=i,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&Object(S.E)(i)==Object(S.E)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(S.E)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(S.E)(this.targetProj_.getExtent()):null;var l,c=Object(S.C)(n),u=Object(S.D)(n),h=Object(S.w)(n),p=Object(S.v)(n),t=this.transformInv_(c),e=this.transformInv_(u),r=this.transformInv_(h),i=this.transformInv_(p),o=10+(o?Math.max(0,Math.ceil(Object(j.d)(Object(S.u)(n)/(o*o*256*256)))):0);this.addQuad_(c,u,h,p,t,e,r,i,o),this.wrapsXInSource_&&(l=1/0,this.triangles_.forEach(function(t,e,n){l=Math.min(l,t.source[0][0],t.source[1][0],t.source[2][0])}),this.triangles_.forEach(function(t){var e,n;Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-l>this.sourceWorldWidth_/2&&((e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]])[0][0]-l>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-l>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-l>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_),n=Math.min(e[0][0],e[1][0],e[2][0]),Math.max(e[0][0],e[1][0],e[2][0])-n<this.sourceWorldWidth_/2&&(t.source=e))}.bind(this))),a={}}function _(t,e,n,i,r,o){o=f.call(this,t,e,o)||this;return o.crossOrigin_=i,o.src_=n,o.key=n,o.image_=new Image,null!==i&&(o.image_.crossOrigin=i),o.unlisten_=null,o.tileLoadFunction_=r,o}function R(t,e,n,i,r){t.beginPath(),t.moveTo(0,0),t.lineTo(e,n),t.lineTo(i,r),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,i)+1,Math.max(n,r)),t.restore(
1)}function P(t,e){return 2<Math.abs(t[4*e]-210)||2<Math.abs(t[4*e+3]-191.25)}function w(t,e,n,i){var r=Object(y.n)(n,e,t),n=Object(y.h)(e,i,n),e=e.getMetersPerUnit();void 0!==e&&(n*=e);e=t.getMetersPerUnit();void 0!==e&&(n/=e);e=t.getExtent();return e&&!Object(S.f)(e,r)||(r=Object(y.h)(t,n,r)/n,isFinite(r)&&0<r&&(n/=r)),n}function v(t,e,m,_,n,v,i,r,o,s,a,b){var x=Object(h.a)(Math.round(m*t),Math.round(m*e));if(Object(I.a)(x,b),0===o.length)return x.canvas;function O(t){return Math.round(t*m)/m}x.scale(m,m),x.globalCompositeOperation="lighter";var w=Object(S.j)();o.forEach(function(t,e,n){Object(S.q)(w,t.extent)});var t=Object(S.E)(w),e=Object(S.A)(w),C=Object(h.a)(Math.round(m*t/_),Math.round(m*e/_));Object(I.a)(C,b);var l=m/_;o.forEach(function(t,e,n){var i=t.extent[0]-w[0],r=-(t.extent[3]-w[3]),o=Object(S.E)(t.extent),a=Object(S.A)(t.extent);0<t.image.width&&0<t.image.height&&C.drawImage(t.image,s,s,t.image.width-2*s,t.image.height-2*s,i*l,r*l,o*l,a*l)});var E=Object(S.C)(i);return r.getTriangles().forEach(function(t,e,n){var i=t.source,r=t.target,o=i[0][0],a=i[0][1],s=i[1][0],l=i[1][1],c=i[2][0],u=i[2][1],h=O((r[0][0]-E[0])/v),t=O(-(r[0][1]-E[1])/v),p=O((r[1][0]-E[0])/v),d=O(-(r[1][1]-E[1])/v),i=O((r[2][0]-E[0])/v),r=O(-(r[2][1]-E[1])/v),o=o,a=a,c=[[s-=o,l-=a,0,0,p-h],[c-=o,u-=a,0,0,i-h],[0,0,s,l,d-t],[0,0,c,u,r-t]],u=Object(j.f)(c);if(u){if(x.save(),x.beginPath(),void 0===T&&((c=document.createElement("canvas").getContext("2d")).globalCompositeOperation="lighter",c.fillStyle="rgba(210, 0, 0, 0.75)",R(c,4,5,4,0),R(c,4,5,0,5),c=c.getImageData(0,0,3,3).data,T=P(c,0)||P(c,4)||P(c,8)),T||b===D){x.moveTo(p,d);for(var f=h-p,g=t-d,y=0;y<4;y++)x.lineTo(p+O((y+1)*f/4),d+O(y*g/3)),3!=y&&x.lineTo(p+O((y+1)*f/4),d+O((y+1)*g/3));x.lineTo(i,r)}else x.moveTo(p,d),x.lineTo(h,t),x.lineTo(i,r);x.clip(),x.transform(u[0],u[2],u[1],u[3],h,t),x.translate(w[0]-o,w[3]-a),x.scale(_/m,-_/m),x.drawImage(C.canvas,0,0),x.restore()}}),a&&(x.save(),x.globalCompositeOperation="source-over",x.strokeStyle="black",x.lineWidth=1,r.getTriangles().forEac
1h(function(t,e,n){var i=t.target,r=(i[0][0]-E[0])/v,o=-(i[0][1]-E[1])/v,a=(i[1][0]-E[0])/v,s=-(i[1][1]-E[1])/v,t=(i[2][0]-E[0])/v,i=-(i[2][1]-E[1])/v;x.beginPath(),x.moveTo(a,s),x.lineTo(r,o),x.lineTo(t,i),x.closePath(),x.stroke()}),x.restore()),x.canvas}var b,C,E,k,M,A,L,F=n(5),N=((L=function(t,e){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}L(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(q,A=s),q.prototype.getImage=function(){return this.canvas_},q.prototype.reproject_=function(){var t,e,n,i,r,o=[];this.sourceTiles_.forEach(function(t,e,n){t&&t.getState()==x.a.LOADED&&o.push({extent:this.sourceTileGrid_.getTileCoordExtent(t.tileCoord),image:t.getImage()})}.bind(this)),(this.sourceTiles_.length=0)===o.length?this.state=x.a.ERROR:(r=this.wrappedTileCoord_[0],t="number"==typeof(i=this.targetTileGrid_.getTileSize(r))?i:i[0],e="number"==typeof i?i:i[1],n=this.targetTileGrid_.getResolution(r),i=this.sourceTileGrid_.getResolution(this.sourceZ_),r=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_),this.canvas_=v(t,e,this.pixelRatio_,i,this.sourceTileGrid_.getExtent(),n,r,this.triangulation_,o,this.gutter_,this.renderEdges_,this.contextOptions_),this.state=x.a.LOADED),this.changed()},q.prototype.load=function(){var o;this.state==x.a.IDLE&&(this.state=x.a.LOADING,this.changed(),o=0,this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(n,t,e){var i,r=n.getState();r!=x.a.IDLE&&r!=x.a.LOADING||(o++,i=Object(F.a)(n,a.a.CHANGE,function(t){var e=n.getState();e!=x.a.LOADED&&e!=x.a.ERROR&&e!=x.a.EMPTY||(Object(F.c)(i),0==--o&&(this.unlistenSources_(),this.reproject_()))},this),this.sourcesListenerKeys_.push(i))}.bind(this)),this.sourceTiles_.forEach(function(t,e,n){t.getState()==x.a.IDLE&&t.load()}),0===o&&setTimeout(this.reproject_.bind(this),0))},q.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(F.c),this.sourcesListenerKeys_=null},q),G=n(9),u=(K.prototype.canExpireCache=function(){return 0<this.highWaterMark&&this.getCount()>this.highWaterMark},K.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},K.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},K.prototype.forEach=function(t){for(var e=this.oldest_;e;)t(e.value_,e.key_,this),e=e.newer},K.prototype.get=function(t,e){t=this.entries_[t];return Object(G.a)(void 0!==t,15),t===this.newest_||(t===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(t.newer.older=t.older,t.older.newer=t.newer),t.newer=null,t.older=this.newest_,this.newest_.newer=t,this.newest_=t),t.value_},K.prototype.remove=function(t){var e=this.entries_[t];return Object(G.a)(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},K.prototype.getCount=function(){return this.count_},K.prototype.getKeys=function(){for(var t=new Array(this.count_),e=0,n=this.newest_;n;n=n.older)t[e++]=n.key_;return t},K.prototype.getValues=function(){for(var t=new Array(this.count_),e=0,n=this.newest_;n;n=n.older)t[e++]=n.value_;return t},K.prototype.peekLast=function(){return this.oldest_.value_},K.prototype.peekLastKey=function(){return this.oldest_.key_},K.prototype.peekFirstKey=function(){return this.newest_.key_},K.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},K.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},K.prototype.set=function(t,e){Object(G.a)(!(t in this.entries_),16);e={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=e:this.oldest_=e,this.newest_=e,this.entries_[t]=e,++this.count_},K.prototype.setSize=function(t){this.highWaterMark=t}
1,K),W=n(34),z=((M=function(t,e){return(M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}M(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(H,k=u),H.prototype.expireCache=function(t){for(;this.canExpireCache()&&!(this.peekLast().getKey()in t);)this.pop().release()},H.prototype.pruneExceptNewestZ=function(){var t,e;0!==this.getCount()&&(t=this.peekFirstKey(),e=Object(W.b)(t)[0],this.forEach(function(t){t.tileCoord[0]!==e&&(this.remove(Object(W.c)(t.tileCoord)),t.release())}.bind(this)))},H),s=n(31),u=n(81),Y=n(57),U=n(27),n=(E=function(t,e){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}E(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=(C=u.a,n(V,C),V.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},V.prototype.expireCache=function(t,e){t=this.getTileCacheForProjection(t);t&&t.expireCache(e)},V.prototype.forEachLoadedTile=function(t,e,n,i){var r=this.getTileCacheForProjection(t);if(!r)return!1;for(var o,a,s,l=!0,c=n.minX;c<=n.maxX;++c)for(var u=n.minY;u<=n.maxY;++u)a=Object(W.d)(e,c,u),s=!1,(s=r.containsKey(a)&&(s=(o=r.get(a)).getState()===x.a.LOADED)?!1!==i(o):s)||(l=!1);return l},V.prototype.getGutterForProjection=function(t){return 0},V.prototype.getKey=function(){return this.key_},V.prototype.setKey=function(t){this.key_!==t&&(this.key_=t,this.changed())},V.prototype.getOpaque=function(t){return this.opaque_},V.prototype.getResolutions=function(){return this.tileGrid.getResolutions()},V.prototype.getTile=function(t,e,n,i,r){return Object(l.b)()},V.prototype.getTileGrid=function(){return this.tileGrid},V.prototype.getTileGridForProjection=function(t){return this.tileGrid||Object(Y.c)(t)},V.prototype.getTileCacheForProjection=function(t){return Object(G.a)(Object(y.c)(this.getProjection(),t),68),this.tileCache},V.prototype.getTilePixelRatio=function(t){return this.tilePixelRatio_},V.prototype.getTilePixelSize=function(t,e,n){n=this.getTileGridForProjection(n),e=this.getTilePixelRatio(e),t=Object(U.c)(n.getTileSize(t),this.tmpSize);return 1==e?t:Object(U.b)(t,e,this.tmpSize)},V.prototype.getTileCoordForTileUrlFunction=function(t,e){var n=void 0!==e?e:this.getProjection(),e=this.getTileGridForProjection(n);return this.getWrapX()&&n.isGlobal()&&(t=Object(Y.d)(e,t,n)),Object(W.f)(t,e)?t:null},V.prototype.clear=function(){this.tileCache.clear()},V.prototype.refresh=function(){this.clear(),C.prototype.refresh.call(this)},V.prototype.updateCacheSize=function(t,e){e=this.getTileCacheForProjection(e);t>e.highWaterMark&&(e.highWaterMark=t)},V.prototype.useTile=function(t,e,n,i){},V),X=(b=s.a,n(B,b),B);function B(t,e){t=b.call(this,t)||this;return t.tile=e,t}function V(t){var e=C.call(this,{attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:t.projection,state:t.state,wrapX:t.wrapX})||this;e.opaque_=void 0!==t.opaque&&t.opaque,e.tilePixelRatio_=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,e.tileGrid=void 0!==t.tileGrid?t.tileGrid:null;var n=t.tileGrid;return n&&Object(U.c)(n.getTileSize(n.getMinZoom()),[256,256]),e.tileCache=new z(t.cacheSize||0),e.tmpSize=[0,0],e.key_=t.key||"",e.tileOptions={transition:t.transition},e.zDirection=t.zDirection||0,e}function H(){return null!==k&&k.apply(this,arguments)||this}function K(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}function q(t,e,n,i,r,o,a,s,l,c,u,h){var p=A.call(this,r,x.a.IDLE)||this;p.renderEdges_=void 0!==u&&u,p.contextOptions_=h,p.pixelRatio_=a,p.gutter_=s,p.canvas_=null,p.sourceTileGrid_=e,p.targetTileGrid_=i,p.wrappedTileCoord_=o||r,p.sourceTiles_=[],p.sourcesListenerKeys_=null,p.sourceZ_=0;h=i.getTileCoordExtent(p.wrappedTileCoord_),s=p.targetTileGrid_.getExtent(),o=p.sourceTileGrid_.getExtent(),r=s?Object(S.B)(h,s):h;if(0===Object(S.u)(r))return p.state=x.a.EMPTY,p;s=t.getExtent();s&&(o=o?Object(S.B)(o,s):s);var d,f,g,y,h=i.getResolution(p.wrappedTileCoord_[0]),s=(d=t,f=n,s=r,g=h,i=Object(S.x)(s),y=w(d,f,i,g),(!isFinite(y)||y<=0)&&Object(S.t)(s,function(t){return y=w(d,f,t,g),isFinite(y)&&0<y}),y);if(!isFinite(s)||s<=0)return p.state=x.a.EMPTY,p;c=void 0!==c?c:.5;if(p.triangulation_=new O(t,n,r,o,s*c,h),0===p.triangulation_.getTr
1iangles().length)return p.state=x.a.EMPTY,p;p.sourceZ_=e.getZForResolution(s);s=p.triangulation_.calculateSourceExtent();if(o&&(t.canWrapX()?(s[1]=Object(j.a)(s[1],o[1],o[3]),s[3]=Object(j.a)(s[3],o[1],o[3])):s=Object(S.B)(s,o)),Object(S.u)(s)){for(var m=e.getTileRangeForExtentAndZ(s,p.sourceZ_),_=m.minX;_<=m.maxX;_++)for(var v=m.minY;v<=m.maxY;v++){var b=l(p.sourceZ_,_,v,a);b&&p.sourceTiles_.push(b)}0===p.sourceTiles_.length&&(p.state=x.a.EMPTY)}else p.state=x.a.EMPTY;return p}function Z(t,e){for(var r,n=t.length,i=new Array(n),o=0;o<n;++o)i[o]=function(i,r){var o=/\{z\}/g,a=/\{x\}/g,s=/\{y\}/g,l=/\{-y\}/g;return function(e,t,n){return e?i.replace(o,e[0].toString()).replace(a,e[1].toString()).replace(s,e[2].toString()).replace(l,function(){var t=e[0],t=r.getFullTileRange(t);return Object(G.a)(t,55),(t.getHeight()-e[2]-1).toString()}):void 0}}(t[o],e);return 1===(r=i).length?r[0]:function(t,e,n){if(t){var i=Object(W.e)(t),i=Object(j.e)(i,r.length);return r[i](t,e,n)}}}var J,$,Q,u=((Q=function(t,e){return(Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Q(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(tt,$=u),tt.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},tt.prototype.getTileUrlFunction=function(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction},tt.prototype.getUrls=function(){return this.urls},tt.prototype.handleTileChange=function(t){var e,n=t.target,i=Object(l.c)(n),t=n.getState();t==x.a.LOADING?(this.tileLoadingKeys_[i]=!0,e="tileloadstart"):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],e=t==x.a.ERROR?"tileloaderror":t==x.a.LOADED?"tileloadend":void 0),null!=e&&this.dispatchEvent(new X(e,n))},tt.prototype.setTileLoadFunction=function(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()},tt.prototype.setTileUrlFunction=function(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),void 0!==e?this.setKey(e):this.changed()},tt.prototype.setUrl=function(t){t=function(t){var e=[],n=/\{([a-z])-([a-z])\}/.exec(t);if(n){for(var i=n[1].charCodeAt(0),r=n[2].charCodeAt(0),o=void 0,o=i;o<=r;++o)e.push(t.replace(n[0],String.fromCharCode(o)));return e}if(n=/\{(\d+)-(\d+)\}/.exec(t)){for(var a=parseInt(n[2],10),s=parseInt(n[1],10);s<=a;s++)e.push(t.replace(n[0],s.toString()));return e}return e.push(t),e}(t);this.urls=t,this.setUrls(t)},tt.prototype.setUrls=function(t){var e=(this.urls=t).join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(Z(t,this.tileGrid),e):this.setKey(e)},tt.prototype.tileUrlFunction=function(t,e,n){},tt.prototype.useTile=function(t,e,n){n=Object(W.d)(t,e,n);this.tileCache.containsKey(n)&&this.tileCache.get(n)},tt);function tt(t){var e=$.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX,transition:t.transition,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection})||this;return e.generateTileUrlFunction_=e.tileUrlFunction===tt.prototype.tileUrlFunction,e.tileLoadFunction=t.tileLoadFunction,t.tileUrlFunction&&(e.tileUrlFunction=t.tileUrlFunction),e.urls=null,t.urls?e.setUrls(t.urls):t.url&&e.setUrl(t.url),e.tileLoadingKeys_={},e}function et(t,e){t.getImage().src=e}var nt,it,rt,ot,at,u=((J=function(t,e){return(J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}J(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(ct,at=u),ct.prototype.canExpireCache=function(){if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},ct.prototype.expireCache=function(t,e){var n,i=this.getTileCacheForProjection(t);for(n in this.tileCache.expireCache(this.tileCache==i?e:{}),this.tileCacheForProjection){var r=this.tileCacheForProjection[n];r.expireCache(r==i?e:{})}},ct.prototype.getContextOptions=function(){return this.contextOptions_},ct.prototype.getGutterForProjection=function(t){return this.getProjection()&&t&&!Object(y.c)(this.getProjection(),t)?0:this.getGutter()},ct.prototype.getGutter=function(){return 0},ct.prototype.getKey=function(){return at.prototype.getKey.call(this)+(this.contextOptions_?"\n"+JSON.stringify(this.contextOptions_):"")},ct.prototype.getOpaque=function(t){return!(this.getProjection()&&t&&!Object(y.c)(this.getProjection(),t))&&at.prototype.getOpaque.call(this,t)},ct.prototype.getTileGridForProjection=function(t){var e=this.getProjection();if(!this.tileGrid||e&&!Object(y.c)(e,t)){e=Object(l.c)(t);return e in this.tileGridForProjection||(this.tileGridForProjection[e]=Object(Y.c)(t)),this.tileGridForProjection[e]}return this.tileGrid},ct.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();if(!e||Object(y.c)(e,t))return this.tileCache;t=Object(l.c)(t);return t in this.tileCacheForProjection||(this.tileCacheForProjection[t]=new z(this.tileCache.highWaterMark)),this.tileCacheForProjection[t]},ct.prototype.createTile_=function(t,e,n,i,r,o){e=[t,e,n],n=this.getTileCoordForTileUrlFunction(e,r),r=n?this.tileUrlFunction(n,i,r):void 0,r=new this.tileClass(e,void 0!==r?x.a.IDLE:x.a.EMPTY,void 0!==r?r:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return r.key=o,r.addEventListener(a.a.CHANGE,this.handleTileChange.bind(this)),r},ct.prototype.getTile=function(t,e,n,i,r){var o=this.getProjection();if(o&&r&&!Object(y.c)(o,r)){var a=this.getTileCacheForProjection(r),s=[t,e,n],l=void 0,c=Object(W.c)(s);a.containsKey(c)&&(l=a.get(c));var u=this.getKey();if(l&&l.key==u)return l;var h=this.getTileGridForProjection(o),p=this.getTileGridForProjection(r),d=this.getTileCoordForTileUrlFunction(s,r),d=new N(o,h,r,p,s,d,this.getTilePixelRatio(i),this.getGutter(),function(t,e,n,i){return this.getTileInternal(t,e,n,i,o)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.contextOptions_);return d.key=u,l?(d.interimTile=l,d.refreshInterimChain(),a.replace(c,d)):a.set(c,d),d}return this.getTileInternal(t,e,n,i,o||r)},ct.prototype.getTileInternal=function(t,e,n,i,r){var o,a=null,s=Object(W.d)(t,e,n),l=this.getKey();return this.tileCache.containsKey(s)?(a=this.tileCache.get(s)).key!=l&&(o=a,a=this.createTile_(t,e,n,i,r,l),o.getState()==x.a.IDLE?a.interimTile=o.interimTile:a.interimTile=o,a.refreshInterimChain(),this.tileCache.replace(s,a)):(a=this.createTile_(t,e,n,i,r,l),this.tileCache.set(s,a)),a},ct.prototype.setRenderReprojectionEdges=function(t){if(this.renderReprojectionEdges_!=t){for(var e in this.renderReprojectionEdges_=t,this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}},ct.prototype.setTileGridForProjection=function(t,e){t=Object(y.g)(t);t&&((t=Object(l.c)(t))in this.tileGridForProjection||(this.tileGridForProjection[t]=e))},ct),u=((ot=function(t,e){return(ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}ot(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(lt,rt=u),lt),u=((it=function(t,e){return(it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}it(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(st,nt=u),st);function st(t){var e=t||{},n=void 0!==e.attributions?e.attributions:['© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.'],i=void 0!==e.crossOrigin?e.crossOrigin:"anonymous",t=void 0!==e.url?e.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";
1return nt.call(this,{attributions:n,attributionsCollapsible:!1,cacheSize:e.cacheSize,crossOrigin:i,imageSmoothing:e.imageSmoothing,maxZoom:void 0!==e.maxZoom?e.maxZoom:19,opaque:void 0===e.opaque||e.opaque,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,transition:e.transition,url:t,wrapX:e.wrapX})||this}function lt(t){var e=t||{},n=void 0!==e.projection?e.projection:"EPSG:3857",t=void 0!==e.tileGrid?e.tileGrid:Object(Y.a)({extent:Object(Y.b)(n),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize});return rt.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,imageSmoothing:e.imageSmoothing,opaque:e.opaque,projection:n,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileGrid:t,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this}function ct(t){var e=at.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction||et,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX,transition:t.transition,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection})||this;return e.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,e.tileClass=void 0!==t.tileClass?t.tileClass:g,e.tileCacheForProjection={},e.tileGridForProjection={},e.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,e.contextOptions_=!1===t.imageSmoothing?D:void 0,e.renderReprojectionEdges_=!1,e}e.a=u},function(t,e,n){"use strict";var i,r,o,a,s=n(41),l="useInterimTilesOnError",it=n(11),c=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=(a=s.a,c(p,a),p.prototype.getPreload=function(){return this.get("preload")},p.prototype.setPreload=function(t){this.set("preload",t)},p.prototype.getUseInterimTilesOnError=function(){return this.get(l)},p.prototype.setUseInterimTilesOnError=function(t){this.set(l,t)},p),c=n(85),u=n(63),rt=n(10),ot=n(7),at=n(0),st=n(3),lt=n(8),ct=n(1),ut=n(12),n=(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),n=(r=c.a,n(h,r),h.prototype.isDrawableTile=function(t){var e=this.getLayer(),t=t.getState(),e=e.getUseInterimTilesOnError();return t==rt.a.LOADED||t==rt.a.EMPTY||t==rt.a.ERROR&&!e},h.prototype.getTile=function(t,e,n,i){var r=i.pixelRatio,o=i.viewState.projection,i=this.getLayer(),o=i.getSource().getTile(t,e,n,r,o);return o.getState()==rt.a.ERROR&&(i.getUseInterimTilesOnError()?0<i.getPreload()&&(this.newTiles_=!0):o.setState(rt.a.LOADED)),o=!this.isDrawableTile(o)?o.getInterimTile():o},h.prototype.loadedTileCallback=function(t,e,n){return!!this.isDrawableTile(n)&&r.prototype.loadedTileCallback.call(this,t,e,n)},h.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},h.prototype.renderFrame=function(t,e){var n=t.layerStatesArray[t.layerIndex],i=t.viewState,r=i.projection,o=i.resolution,a=i.center,s=i.rotation,l=t.pixelRatio,c=this.getLayer(),u=c.getSource(),h=u.getRevision(),p=u.getTileGridForProjection(r),d=p.getZForResolution(o,u.zDirection),f=p.getResolution(d),g=t.extent,y=n.extent&&Object(lt.f)(n.extent,r);y&&(g=Object(at.B)(g,Object(lt.f)(n.extent,r)));var m=u.getTilePixelRatio(l),_=Math.round(t.size[0]*m),v=Math.round(t.size[1]*m);s&&(v=_=Math.round(Math.sqrt(_*_+v*v)));var b=f*_/2/m,i=f*v/2/m,x=[a[0]-b,a[1]-i,a[0]+b,a[1]+i],O=p.getTileRangeForExtentAndZ(g,d),w={};w[d]={};var C=this.createLoadedTileFinder(u,r,w),E=this.tmpExtent,T=this.tmpTileRange_;this.newTiles_=!1;for(var S=O.minX;S<=O.maxX;++S)for(var j=O.minY;j<=O.maxY;++j){var D=this.getTile(d,S,j,t);
1if(this.isDrawableTile(D)){var I,R=Object(ct.c)(this);if(D.getState()==rt.a.LOADED&&(I=(w[d][D.tileCoord.toString()]=D).inTransition(R),this.newTiles_||!I&&-1!==this.renderedTiles.indexOf(D)||(this.newTiles_=!0)),1===D.getAlpha(R,t.time))continue}var P=p.getTileCoordChildTileRange(D.tileCoord,T,E),R=!1;(R=P?C(d+1,P):R)||p.forEachTileCoordParentTileRange(D.tileCoord,C,T,E)}var k=f/o;Object(ot.b)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/m,1/m,s,-_/2,-v/2);s=Object(st.b)(this.pixelTransform);this.useContainer(e,s,n.opacity);var M=this.context,e=M.canvas;Object(ot.d)(this.inversePixelTransform,this.pixelTransform),Object(ot.b)(this.tempTransform,_/2,v/2,k,k,0,-_/2,-v/2),e.width!=_||e.height!=v?(e.width=_,e.height=v):this.containerReused||M.clearRect(0,0,_,v),y&&this.clipUnrotated(M,t,y),Object(it.a)(M,u.getContextOptions()),this.preRender(M,t),this.renderedTiles.length=0;var A,L,F=Object.keys(w).map(Number);F.sort(ut.g),1!==n.opacity||this.containerReused&&!u.getOpaque(t.viewState.projection)?(A=[],L=[]):F=F.reverse();for(var N=F.length-1;0<=N;--N){var G,W=F[N],z=u.getTilePixelSize(W,l,r),Y=p.getResolution(W)/f,U=z[0]*Y*k,X=z[1]*Y*k,B=p.getTileCoordForCoordAndZ(Object(at.C)(x),W),Y=p.getTileCoordExtent(B),V=Object(ot.a)(this.tempTransform,[m*(Y[0]-x[0])/f,m*(x[3]-Y[3])/f]),H=m*u.getGutterForProjection(r),K=w[W];for(G in K){var q=(D=K[G]).tileCoord,Z=V[0]-(B[1]-q[1])*U,J=Math.round(Z+U),$=V[1]-(B[2]-q[2])*X,q=Math.round($+X),Z=J-(S=Math.round(Z)),q=q-(j=Math.round($)),$=d===W;if(!(I=$&&1!==D.getAlpha(Object(ct.c)(this),t.time)))if(A){M.save();for(var Q,tt=[S,j,S+Z,j,S+Z,j+q,S,j+q],et=0,nt=A.length;et<nt;++et)d!==W&&W<L[et]&&(Q=A[et],M.beginPath(),M.moveTo(tt[0],tt[1]),M.lineTo(tt[2],tt[3]),M.lineTo(tt[4],tt[5]),M.lineTo(tt[6],tt[7]),M.moveTo(Q[6],Q[7]),M.lineTo(Q[4],Q[5
1]),M.lineTo(Q[2],Q[3]),M.lineTo(Q[0],Q[1]),M.clip());A.push(tt),L.push(W)}else M.clearRect(S,j,Z,q);this.drawTileImage(D,t,S,j,Z,q,H,$,n.opacity),A&&!I&&M.restore(),this.renderedTiles.push(D),this.updateUsedTiles(t.usedTiles,u,D)}}return this.renderedRevision=h,this.renderedResolution=f,this.extentChanged=!this.renderedExtent_||!Object(at.p)(this.renderedExtent_,x),this.renderedExtent_=x,this.renderedPixelRatio=l,this.renderedProjection=r,this.manageTilePyramid(t,u,p,l,r,g,d,c.getPreload()),this.scheduleExpireCache(t,u),this.postRender(M,t),n.extent&&M.restore(),s!==e.style.transform&&(e.style.transform=s),this.container},h.prototype.drawTileImage=function(t,e,n,i,r,o,a,s,l){var c,u,h,p=this.getTileImage(t);p&&(c=Object(ct.c)(this),(l=(h=l*(u=s?t.getAlpha(c,e.time):1))!==this.context.globalAlpha)&&(this.context.save(),this.context.globalAlpha=h),this.context.drawImage(p,a,a,p.width-2*a,p.height-2*a,n,i,r,o),l&&this.context.restore(),1!==u?e.animate=!0:s&&t.endTransition(c))},h.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},h.prototype.getTileImage=function(t){return t.getImage()},h.prototype.scheduleExpireCache=function(t,e){e.canExpireCache()&&(e=function(t,e,n){var i=Object(ct.c)(t);i in n.usedTiles&&t.expireCache(n.viewState.projection,n.usedTiles[i])}.bind(null,e),t.postRenderFunctions.push(e))},h.prototype.updateUsedTiles=function(t,e,n){e=Object(ct.c)(e);e in t||(t[e]={}),t[e][n.getKey()]=!0},h.prototype.manageTilePyramid=function(t,e,n,i,r,o,a,s,l){var c=Object(ct.c)(e);c in t.wantedTiles||(t.wantedTiles[c]={});for(var u,h,p,d,f,g=t.wantedTiles[c],y=t.tileQueue,m=0,_=n.getMinZoom();_<=a;++_)for(h=n.getTileRangeForExtentAndZ(o,_,h),p=n.getResolution(_),d=h.minX;d<=h.maxX;++d)for(f=h.minY;f<=h.maxY;++f)a-_<=s?(++m,(u=e.getTile(_,d,f,i,r)).getState()==rt.a.IDLE&&(g[u.getKey()]=!0,y.isKeyQueued(u.getKey())||y.enqueue([u,c,n.getTileCoordCenter(u.tileCoord),p])),void 0!==l&&l(u)):e.useTile(_,d,f,r);e.updateCacheSize(m,r)},h);function h(t){t=r.call(this,t)||this;return t.extentChanged=!0,t.renderedExtent_=null,t.renderedPixelRatio,t.renderedProjection=null,t.renderedRevision,t.renderedTiles=[],t.newTiles_=!1,t.tmpExtent=Object(at.j)(),t.tmpTileRange_=new u.b(0,0,0,0),t}function p(t){var e=this,n=t||{},t=Object(it.a)({},n);return delete t.preload,delete t.useInterimTilesOnError,(e=a.call(this,t)||this).setPreload(void 0!==n.preload?n.preload:0),e.setUseInterimTilesOnError(void 0===n.useInterimTilesOnError||n.useInterimTilesOnError),e}n.prototype.getLayer;var d,f,g=n,s=((f=function(t,e){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(y,d=s),y.prototype.createRenderer=function(){return new g(this)},y);function y(t){return d.call(this,t)||this}e.a=s},,,,,function(t,e,n){"use strict";var i,s,r=n(6),c=n(49),o="bottom-left",a="bottom-right",u="top-left",h=n(17),l=n(75),p=n(44),d=n(9),f=n(37),g=n(14),y=n(67),m=n(84),_=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),v=null,b=(s=f.a,_(x,s),x.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===h.a.LOADED){(v=v||Object(g.a)(1,1)).drawImage(this.image_,0,0);try{v.getImageData(0,0,1,1),this.tainted_=!1}catch(t){v=null,this.tainted_=!0}}return!0===this.tainted_},x.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(r.a.CHANGE)},x.prototype.handleImageError_=function(){this.imageState_=h.a.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},x.prototype.handleImageLoad_=function(){this.imageState_=h.a.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},x.prototype.getImage=function(t){return this.replaceColor_(t),this.canvas_[t]||this.image_},x.prototype.getPixelRatio=function(t){return this.replaceColor_(t),this.canvas_[t]?t:1},x.prototype.getImageState=function(){return this.imageState_},x.prototype.getHitDetectionImage=function(){var t,e,n;return this.hitDetectionImage_||(this.isTainted_()?(t=this.size_[0],e=this.size_[1],(n=Object(g.a)(t,e)).fillRect(0,0,t,e),this.hitDetectionImage_=n.canvas):this.hitDetectionImage_=this.image_),this.hitDetectionImage_},x.prototype.getSize=function(){return this.size_},x.prototype.getSrc=function(){return this.src_},x.prototype.load=function(){if(this.imageState_==h.a.IDLE){this.imageState_=h.a.LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=Object(m.a)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},x.prototype.replaceColor_=function(t){if(this.color_&&!this.canvas_[t]){var e=document.createElement("canvas");(this.canvas_[t]=e).width=Math.ceil(this.image_.width*t),e.height=Math.ceil(this.image_.height*t);var n=e.getContext("2d");
1if(n.scale(t,t),n.drawImage(this.image_,0,0),(n.globalCompositeOperation="multiply")===n.globalCompositeOperation||this.isTainted_())n.fillStyle=Object(p.b)(this.color_),n.fillRect(0,0,e.width,e.height),n.globalCompositeOperation="destination-in",n.drawImage(this.image_,0,0);else{for(var e=n.getImageData(0,0,e.width,e.height),i=e.data,r=this.color_[0]/255,o=this.color_[1]/255,a=this.color_[2]/255,s=this.color_[3],l=0,c=i.length;l<c;l+=4)i[l]*=r,i[l+1]*=o,i[l+2]*=a,i[l+3]*=s;n.putImageData(e,0,0)}}},x.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},x);function x(t,e,n,i,r,o){var a=s.call(this)||this;return a.hitDetectionImage_=null,a.image_=t||new Image,null!==i&&(a.image_.crossOrigin=i),a.canvas_={},a.color_=o,a.unlisten_=null,a.imageState_=r,a.size_=n,a.src_=e,a.tainted_,a}var O,w,C=n(1),n=(w=function(t,e){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}w(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),n=(O=l.a,n(E,O),E.prototype.clone=function(){var t=this.getScale();return new E({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,crossOrigin:this.crossOrigin_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,src:this.getSrc(),offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,size:null!==this.size_?this.size_.slice():void 0,opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},E.prototype.getAnchor=function(){if(this.normalizedAnchor_)return this.normalizedAnchor_;var t=this.anchor_,e=this.getSize();if(this.anchorXUnits_==c.a.FRACTION||this.anchorYUnits_==c.a.FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==c.a.FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==c.a.FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=u){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),"top-right"!=this.anchorOrigin_&&this.anchorOrigin_!=a||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=o&&this.anchorOrigin_!=a||(t[1]=-t[1]+e[1])}return this.normalizedAnchor_=t,this.normalizedAnchor_},E.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},E.prototype.getColor=function(){return this.color_},E.prototype.getImage=function(t){return this.iconImage_.getImage(t)},E.prototype.getPixelRatio=function(t){return this.iconImage_.getPixelRatio(t)},E.prototype.getImageSize=function(){return this.iconImage_.getSize()},E.prototype.getHitDetectionImageSize=function(){return this.getImageSize()},E.prototype.getImageState=function(){return this.iconImage_.getImageState()},E.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},E.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_,e=this.getDisplacement();if(this.offsetOrigin_!=u){var n=this.getSize(),i=this.iconImage_.getSize();if(!n||!i)return null;t=t.slice(),"top-right"!=this.offsetOrigin_&&this.offsetOrigin_!=a||(t[0]=i[0]-n[0]-t[0]),this.offsetOrigin_!=o&&this.offsetOrigin_!=a||(t[1]=i[1]-n[1]-t[1])}return t[0]+=e[0],t[1]+=e[1],this.origin_=t,this.origin_},E.prototype.getSrc=function(){return this.iconImage_.getSrc()},E.prototype.getSize=function(){return this.size_||this.iconImage_.getSize()},E.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(r.a.CHANGE,t)},E.prototype.load=function(){this.iconImage_.load()},E.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(r.a.CHANGE,t)},E);function E(t){var e=this,n=t||{},i=void 0!==n.opacity?n.opacity:1,r=void 0!==n.rotation?n.rotation:0,o=void 0!==n.scale?n.scale:1,a=void 0!==n.rotateWithView&&n.rotateWithView;(e=O.call(this,{opacity:i,rotation:r,scale:o,displacement:void 0!==n.displacement?n.displacement:[0,0],rotateWithView:a})||this).anchor_=void 0!==n.anchor?n.anchor:[.5,.5],e.normalizedAnchor_=null,e.anchorOrigin_=void 0!==n.anchorOrigin?n.anchorOrigin:u,e.anchorXUnits_=void 0!==n.anchorXUnits?n.anchorXUnits:c.a.FRACTION,e.anchorYUnits_=void 0!==n.anchorYUnits?n.anchorYUnits:c.a.FRACTION,e.crossOrigin_=void 0!==n.crossOrigin?n.crossOrigin:null;var s=void 0!==n.img?n.img:null,l=void 0!==n.imgSize?n.imgSize:null,t=n.src;Object(d.a)(!(void 0!==t&&s),4),Object(d.a)(!s||s&&l,5),void 0!==t&&0!==t.length||!s||(t=s.src||Object(C.c)(s)),Object(d.a)(void 0!==t&&0<t.length,6);i=void 0!==n.src?h.a.IDLE:h.a.LOADED;return e.color_=void 0!==n.color?Object(p.a)(n.color):null,e.iconImage_=(r=s,o=t,a=l,s=e.crossOrigin_,t=i,l=e.color_,(i=y.a.get(o,s,l))||(i=new b(r,o,a,s,t,l),y.a.set(o,s,l,i)),i),e.offset_=void 0!==n.offset?n.offset:[0,0],e.offsetOrigin_=void 0!==n.offsetOrigin?n.offsetOrigin:u,e.origin_=null,e.size_=void 0!==n.size?n.size:null,e}e.a=n}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.