!function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var i={};e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=200)}([function(t,e,i){"use strict";var n={};n.ASSUME_TOUCH=!1,n.DEFAULT_MAX_ZOOM=42,n.DEFAULT_MIN_ZOOM=0,n.DEFAULT_RASTER_REPROJECTION_ERROR_THRESHOLD=.5,n.DEFAULT_TILE_SIZE=256,n.DEFAULT_WMS_VERSION="1.3.0",n.ENABLE_CANVAS=!0,n.ENABLE_PROJ4JS=!0,n.ENABLE_RASTER_REPROJECTION=!0,n.ENABLE_WEBGL=!0,n.DEBUG_WEBGL=!0,n.INITIAL_ATLAS_SIZE=256,n.MAX_ATLAS_SIZE=-1,n.MOUSEWHEELZOOM_MAXDELTA=1,n.OVERVIEWMAP_MAX_RATIO=.75,n.OVERVIEWMAP_MIN_RATIO=.1,n.RASTER_REPROJECTION_MAX_SOURCE_TILES=100,n.RASTER_REPROJECTION_MAX_SUBDIVISION=10,n.RASTER_REPROJECTION_MAX_TRIANGLE_WIDTH=.25,n.SIMPLIFY_TOLERANCE=.5,n.WEBGL_TEXTURE_CACHE_HIGH_WATER_MARK=1024,n.VERSION="v4.6.4",n.WEBGL_MAX_TEXTURE_SIZE,n.WEBGL_EXTENSIONS,n.inherits=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},n.nullFunction=function(){},n.getUid=function(t){return t.ol_uid||(t.ol_uid=++n.uidCounter_)},n.uidCounter_=0,e.a=n},function(t,e,i){"use strict";var n=i(7),r=i(146),o=i(147),a={};a.boundingExtent=function(t){for(var e=a.createEmpty(),i=0,n=t.length;i<n;++i)a.extendCoordinate(e,t[i]);return e},a.boundingExtentXYs_=function(t,e,i){var n=Math.min.apply(null,t),r=Math.min.apply(null,e),o=Math.max.apply(null,t),s=Math.max.apply(null,e);return a.createOrUpdate(n,r,o,s,i)},a.buffer=function(t,e,i){return i?(i[0]=t[0]-e,i[1]=t[1]-e,i[2]=t[2]+e,i[3]=t[3]+e,i):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]},a.clone=function(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()},a.closestSquaredDistanceXY=function(t,e,i){var n,r;return n=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0,r=i<t[1]?t[1]-i:t[3]<i?i-t[3]:0,n*n+r*r},a.containsCoordinate=function(t,e){return a.containsXY(t,e[0],e[1])},a.containsExtent=function(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]},a.containsXY=function(t,e,i){return t[0]<=e&&e<=t[2]&&t[1]<=i&&i<=t[3]},a.coordinateRelationship=function(t,e){var i=t[0],n=t[1],r=t[2],a=t[3],s=e[0],l=e[1],u=o.a.UNKNOWN;return s<i?u|=o.a.LEFT:s>r&&(u|=o.a.RIGHT),l<n?u|=o.a.BELOW:l>a&&(u|=o.a.ABOVE),u===o.a.UNKNOWN&&(u=o.a.INTERSECTING),u},a.createEmpty=function(){return[1/0,1/0,-1/0,-1/0]},a.createOrUpdate=function(t,e,i,n,r){return r?(r[0]=t,r[1]=e,r[2]=i,r[3]=n,r):[t,e,i,n]},a.createOrUpdateEmpty=function(t){return a.createOrUpdate(1/0,1/0,-1/0,-1/0,t)},a.createOrUpdateFromCoordinate=function(t,e){var i=t[0],n=t[1];return a.createOrUpdate(i,n,i,n,e)},a.createOrUpdateFromCoordinates=function(t,e){var i=a.createOrUpdateEmpty(e);return a.extendCoordinates(i,t)},a.createOrUpdateFromFlatCoordinates=function(t,e,i,n,r){var o=a.createOrUpdateEmpty(r);return a.extendFlatCoordinates(o,t,e,i,n)},a.createOrUpdateFromRings=function(t,e){var i=a.createOrUpdateEmpty(e);return a.extendRings(i,t)},a.equals=function(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]},a.extend=function(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},a.extendCoordinate=function(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])},a.extendCoordinates=function(t,e){var i,n;for(i=0,n=e.length;i<n;++i)a.extendCoordinate(t,e[i]);return t},a.extendFlatCoordinates=function(t,e,i,n,r){for(;i<n;i+=r)a.extendXY(t,e[i],e[i+1]);return t},a.extendRings=function(t,e){var i,n;for(i=0,n=e.length;i<n;++i)a.extendCoordinates(t,e[i]);return t},a.extendXY=function(t,e,i){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],i),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],i)},a.forEachCorner=function(t,e,i){var n;return(n=e.call(i,a.getBottomLeft(t)))?n:(n=e.call(i,a.getBottomRight(t)))?n:(n=e.call(i,a.getTopRight(t)))?n:(n=e.call(i,a.getTopLeft(t)))||!1},a.getArea=function(t){var e=0;return a.isEmpty(t)||(e=a.getWidth(t)*a.getHeight(t)),e},a.getBottomLeft=function(t){return[t[0],t[1]]},a.getBottomRight=function(t){return[t[2],t[1]]},a.getCenter=function(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]},a.getCorner=function(t,e){var i;return e===r.a.BOTTOM_LEFT?i=a.getBottomLeft(t):e===r.a.BOTTOM_RIGHT?i=a.getBottomRight(t):e===r.a.TOP_LEFT?i=a.getTopLeft(t):e===r.a.TOP_RIGHT?i=a.getTopRight(t):n.a.assert(!1,13),i},a.getEnlargedArea=function(t,e){var i=Math.min(t[0],e[0]),n=Math.min(t[1],e[1]);return(Math.max(t[2],e[2])-i)*(Math.max(t[3],e[3])-n)},a.getForViewAndSize=function(t,e,i,n,r){var o=e*n[0]/2,s=e*n[1]/2,l=Math.cos(i),u=Math.sin(i),c=o*l,h=o*u,d=s*l,f=s*u,p=t[0],g=t[1],_=p-c+f,y=p-c-f,v=p+c-f,m=p+c+f,E=g-h-d,T=g-h+d,S=g+h+d,x=g+h-d;return a.createOrUpdate(Math.min(_,y,v,m),Math.min(E,T,S,x),Math.max(_,y,v,m),Math.max(E,T,S,x),r)},a.getHeight=function(t){return t[3]-t[1]},a.getIntersectionArea=function(t,e){var i=a.getIntersection(t,e);return a.getArea(i)},a.getIntersection=function(t,e,i){var n=i||a.createEmpty();return a.intersects(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]),n},a.getMargin=function(t){return a.getWidth(t)+a.getHeight(t)},a.getSize=function(t){return[t[2]-t[0],t[3]-t[1]]},a.getTopLeft=function(t){return[t[0],t[3]]},a.getTopRight=function(t){return[t[2],t[3]]},a.getWidth=function(t){return t[2]-t[0]},a.intersects=function(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]},a.isEmpty=function(t){return t[2]<t[0]||t[3]<t[1]},a.returnOrUpdate=function(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t},a.scaleFromCenter=function(t,e){var i=(t[2]-t[0])/2*(e-1),n=(t[3]-t[1])/2*(e-1);t[0]-=i,t[2]+=i,t[1]-=n,t[3]+=n},a.intersectsSegment=function(t,e,i){var n=!1,r=a.coordinateRelationship(t,e),s=a.coordinateRelationship(t,i);if(r===o.a.INTERSECTING||s===o.a.INTERSECTING)n=!0;else{var l,u,c=t[0],h=t[1],d=t[2],f=t[3],p=e[0],g=e[1],_=i[0],y=i[1],v=(y-g)/(_-p);s&o.a.ABOVE&&!(r&o.a.ABOVE)&&(l=_-(y-f)/v,n=l>=c&&l<=d),n||!(s&o.a.RIGHT)||r&o.a.RIGHT||(u=y-(_-d)*v,n=u>=h&&u<=f),n||!(s&o.a.BELOW)||r&o.a.BELOW||(l=_-(y-h)/v,n=l>=c&&l<=d),n||!(s&o.a.LEFT)||r&o.a.LEFT||(u=y-(_-c)*v,n=u>=h&&u<=f)}return n},a.applyTransform=function(t,e,i){var n=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]];e(n,n,2);var r=[n[0],n[2],n[4],n[6]],o=[n[1],n[3],n[5],n[7]];return a.boundingExtentXYs_(r,o,i)},e.a=a},function(t,e,i){"use strict";var n={};n.assign="function"===typeof Object.assign?Object.assign:function(t,e){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(t),n=1,r=arguments.length;n<r;++n){var o=arguments[n];if(void 0!==o&&null!==o)for(var a in o)o.hasOwnProperty(a)&&(i[a]=o[a])}return i},n.clear=function(t){for(var e in t)delete t[e]},n.getValues=function(t){var e=[];for(var i in t)e.push(t[i]);return e},n.isEmpty=function(t){var e;for(e in t)return!1;return!e},e.a=n},function(t,e,i){"use strict";var n=i(2),r={};r.bindListener_=function(t){var e=function(e){var i=t.listener,n=t.bindTo||t.target;return t.callOnce&&r.unlistenByKey(t),i.call(n,e)};return t.boundListener=e,e},r.findListener_=function(t,e,i,n){for(var r,o=0,a=t.length;o<a;++o)if(r=t[o],r.listener===e&&r.bindTo===i)return n&&(r.deleteIndex=o),r},r.getListeners=function(t,e){var i=t.ol_lm;return i?i[e]:void 0},r.getListenerMap_=function(t){var e=t.ol_lm;return e||(e=t.ol_lm={}),e},r.removeListeners_=function(t,e){var i=r.getListeners(t,e);if(i){for(var o=0,a=i.length;o<a;++o)t.removeEventListener(e,i[o].boundListener),n.a.clear(i[o]);i.length=0;var s=t.ol_lm;s&&(delete s[e],0===Object.keys(s).length&&delete t.ol_lm)}},r.listen=function(t,e,i,n,o){var a=r.getListenerMap_(t),s=a[e];s||(s=a[e]=[]);var l=r.findListener_(s,i,n,!1);return l?o||(l.callOnce=!1):(l={bindTo:n,callOnce:!!o,listener:i,target:t,type:e},t.addEventListener(e,r.bindListener_(l)),s.push(l)),l},r.listenOnce=function(t,e,i,n){return r.listen(t,e,i,n,!0)},r.unlisten=function(t,e,i,n){var o=r.getListeners(t,e);if(o){var a=r.findListener_(o,i,n,!0);a&&r.unlistenByKey(a)}},r.unlistenByKey=function(t){if(t&&t.target){t.target.removeEventListener(t.type,t.boundListener);var e=r.getListeners(t.target,t.type);if(e){var i="deleteIndex"in t?t.deleteIndex:e.indexOf(t);-1!==i&&e.splice(i,1),0===e.length&&r.removeListeners_(t.target,t.type)}n.a.clear(t)}},r.unlistenAll=function(t){var e=r.getListenerMap_(t);for(var i in e)r.removeListeners_(t,i)},e.a=r},function(t,e,i){"use strict";var n={CHANGE:"change",CLEAR:"clear",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",ERROR:"error",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",MOUSEDOWN:"mousedown",MOUSEMOVE:"mousemove",MOUSEOUT:"mouseout",MOUSEUP:"mouseup",MOUSEWHEEL:"mousewheel",MSPOINTERDOWN:"MSPointerDown",RESIZE:"resize",TOUCHSTART:"touchstart",TOUCHMOVE:"touchmove",TOUCHEND:"touchend",WHEEL:"wheel"};e.a=n},function(t,e,i){"use strict";var n={};n.binarySearch=function(t,e,i){for(var r,o,a=i||n.numberSafeCompareFunction,s=0,l=t.length,u=!1;s<l;)r=s+(l-s>>1),o=+a(t[r],e),o<0?s=r+1:(l=r,u=!o);return u?s:~s},n.numberSafeCompareFunction=function(t,e){return t>e?1:t<e?-1:0},n.includes=function(t,e){return t.indexOf(e)>=0},n.linearFindNearest=function(t,e,i){var n=t.length;if(t[0]<=e)return 0;if(e<=t[n-1])return n-1;var r;if(i>0){for(r=1;r<n;++r)if(t[r]<e)return r-1}else if(i<0){for(r=1;r<n;++r)if(t[r]<=e)return r}else for(r=1;r<n;++r){if(t[r]==e)return r;if(t[r]<e)return t[r-1]-e<e-t[r]?r-1:r}return n-1},n.reverseSubArray=function(t,e,i){for(;e<i;){var n=t[e];t[e]=t[i],t[i]=n,++e,--i}},n.extend=function(t,e){var i,n=Array.isArray(e)?e:[e],r=n.length;for(i=0;i<r;i++)t[t.length]=n[i]},n.remove=function(t,e){var i=t.indexOf(e),n=i>-1;return n&&t.splice(i,1),n},n.find=function(t,e){for(var i,n=t.length>>>0,r=0;r<n;r++)if(i=t[r],e(i,r,t))return i;return null},n.equals=function(t,e){var i=t.length;if(i!==e.length)return!1;for(var n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0},n.stableSort=function(t,e){var i,n=t.length,r=Array(t.length);for(i=0;i<n;i++)r[i]={index:i,value:t[i]};for(r.sort(function(t,i){return e(t.value,i.value)||t.index-i.index}),i=0;i<t.length;i++)t[i]=r[i].value},n.findIndex=function(t,e){var i;return t.every(function(n,r){return i=r,!e(n,r,t)})?-1:i},n.isSorted=function(t,e,i){var r=e||n.numberSafeCompareFunction;return t.every(function(e,n){if(0===n)return!0;var o=r(t[n-1],e);return!(o>0||i&&0===o)})},e.a=n},function(t,e,i){"use strict";var n=i(7),r={};r.clamp=function(t,e,i){return Math.min(Math.max(t,e),i)},r.cosh=function(){return"cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2}}(),r.roundUpToPowerOfTwo=function(t){return n.a.assert(0<t,29),Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},r.squaredSegmentDistance=function(t,e,i,n,o,a){var s=o-i,l=a-n;if(0!==s||0!==l){var u=((t-i)*s+(e-n)*l)/(s*s+l*l);u>1?(i=o,n=a):u>0&&(i+=s*u,n+=l*u)}return r.squaredDistance(t,e,i,n)},r.squaredDistance=function(t,e,i,n){var r=i-t,o=n-e;return r*r+o*o},r.solveLinearSystem=function(t){for(var e=t.length,i=0;i<e;i++){for(var n=i,r=Math.abs(t[i][i]),o=i+1;o<e;o++){var a=Math.abs(t[o][i]);a>r&&(r=a,n=o)}if(0===r)return null;var s=t[n];t[n]=t[i],t[i]=s;for(var l=i+1;l<e;l++)for(var u=-t[l][i]/t[i][i],c=i;c<e+1;c++)i==c?t[l][c]=0:t[l][c]+=u*t[i][c]}for(var h=new Array(e),d=e-1;d>=0;d--){h[d]=t[d][e]/t[d][d];for(var f=d-1;f>=0;f--)t[f][e]-=t[f][d]*h[d]}return h},r.toDegrees=function(t){return 180*t/Math.PI},r.toRadians=function(t){return t*Math.PI/180},r.modulo=function(t,e){var i=t%e;return i*e<0?i+e:i},r.lerp=function(t,e,i){return t+i*(e-t)},e.a=r},function(t,e,i){"use strict";var n=i(140),r={};r.assert=function(t,e){if(!t)throw new n.a(e)},e.a=r},function(t,e,i){"use strict";var n={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"};e.a=n},function(t,e,i){"use strict";var n={};n.createCanvasContext2D=function(t,e){var i=document.createElement("CANVAS");return t&&(i.width=t),e&&(i.height=e),i.getContext("2d")},n.outerWidth=function(t){var e=t.offsetWidth,i=getComputedStyle(t);return e+=parseInt(i.marginLeft,10)+parseInt(i.marginRight,10)},n.outerHeight=function(t){var e=t.offsetHeight,i=getComputedStyle(t);return e+=parseInt(i.marginTop,10)+parseInt(i.marginBottom,10)},n.replaceNode=function(t,e){var i=e.parentNode;i&&i.replaceChild(t,e)},n.removeNode=function(t){return t&&t.parentNode?t.parentNode.removeChild(t):null},n.removeChildren=function(t){for(;t.lastChild;)t.removeChild(t.lastChild)},e.a=n},function(t,e,i){"use strict";var n=i(7),r={};r.tmp_=new Array(6),r.create=function(){return[1,0,0,1,0,0]},r.reset=function(t){return r.set(t,1,0,0,1,0,0)},r.multiply=function(t,e){var i=t[0],n=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=e[0],u=e[1],c=e[2],h=e[3],d=e[4],f=e[5];return t[0]=i*l+r*u,t[1]=n*l+o*u,t[2]=i*c+r*h,t[3]=n*c+o*h,t[4]=i*d+r*f+a,t[5]=n*d+o*f+s,t},r.set=function(t,e,i,n,r,o,a){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t[4]=o,t[5]=a,t},r.setFromArray=function(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},r.apply=function(t,e){var i=e[0],n=e[1];return e[0]=t[0]*i+t[2]*n+t[4],e[1]=t[1]*i+t[3]*n+t[5],e},r.rotate=function(t,e){var i=Math.cos(e),n=Math.sin(e);return r.multiply(t,r.set(r.tmp_,i,n,-n,i,0,0))},r.scale=function(t,e,i){return r.multiply(t,r.set(r.tmp_,e,0,0,i,0,0))},r.translate=function(t,e,i){return r.multiply(t,r.set(r.tmp_,1,0,0,1,e,i))},r.compose=function(t,e,i,n,r,o,a,s){var l=Math.sin(o),u=Math.cos(o);return t[0]=n*u,t[1]=r*l,t[2]=-n*l,t[3]=r*u,t[4]=a*n*u-s*n*l+e,t[5]=a*r*l+s*r*u+i,t},r.invert=function(t){var e=r.determinant(t);n.a.assert(0!==e,32);var i=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5];return t[0]=s/e,t[1]=-o/e,t[2]=-a/e,t[3]=i/e,t[4]=(a*u-s*l)/e,t[5]=-(i*u-o*l)/e,t},r.determinant=function(t){return t[0]*t[3]-t[1]*t[2]},e.a=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(148),o=i(1),a=i(6),s=i(266),l=i(267),u=i(75),c=i(27),h=i(149),d=i(268),f=i(269),p={};p.METERS_PER_UNIT=c.a.METERS_PER_UNIT,p.SPHERE_=new r.default(r.default.DEFAULT_RADIUS),n.a.ENABLE_PROJ4JS&&(p.setProj4=function(t){h.a.set(t)}),p.getPointResolution=function(t,e,i,n){t=p.get(t);var r,o=t.getPointResolutionFunc();if(o)r=o(e,i);else{if(t.getUnits()==c.a.DEGREES&&!n||n==c.a.DEGREES)r=e;else{var a=p.getTransformFromProjections(t,p.get("EPSG:4326")),s=[i[0]-e/2,i[1],i[0]+e/2,i[1],i[0],i[1]-e/2,i[0],i[1]+e/2];s=a(s,s,2);r=(p.SPHERE_.haversineDistance(s.slice(0,2),s.slice(2,4))+p.SPHERE_.haversineDistance(s.slice(4,6),s.slice(6,8)))/2;var l=n?c.a.METERS_PER_UNIT[n]:t.getMetersPerUnit();void 0!==l&&(r/=l)}}return r},p.addEquivalentProjections=function(t){p.addProjections(t),t.forEach(function(e){t.forEach(function(t){e!==t&&f.a.add(e,t,p.cloneTransform)})})},p.addEquivalentTransforms=function(t,e,i,n){t.forEach(function(t){e.forEach(function(e){f.a.add(t,e,i),f.a.add(e,t,n)})})},p.addProjection=function(t){d.a.add(t.getCode(),t),f.a.add(t,t,p.cloneTransform)},p.addProjections=function(t){t.forEach(p.addProjection)},p.clearAllProjections=function(){d.a.clear(),f.a.clear()},p.createProjection=function(t,e){return t?"string"===typeof t?p.get(t):t:p.get(e)},p.addCoordinateTransforms=function(t,e,i,n){var r=p.get(t),o=p.get(e);f.a.add(r,o,p.createTransformFromCoordinateTransform(i)),f.a.add(o,r,p.createTransformFromCoordinateTransform(n))},p.createTransformFromCoordinateTransform=function(t){return function(e,i,n){var r,o,a,s=e.length,l=void 0!==n?n:2,u=void 0!==i?i:new Array(s);for(o=0;o<s;o+=l)for(r=t([e[o],e[o+1]]),u[o]=r[0],u[o+1]=r[1],a=l-1;a>=2;--a)u[o+a]=e[o+a];return u}},p.fromLonLat=function(t,e){return p.transform(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")},p.toLonLat=function(t,e){var i=p.transform(t,void 0!==e?e:"EPSG:3857","EPSG:4326"),n=i[0];return(n<-180||n>180)&&(i[0]=a.a.modulo(n+180,360)-180),i},p.get=function(t){var e=null;if(t instanceof u.a)e=t;else if("string"===typeof t){var i=t;if(e=d.a.get(i),n.a.ENABLE_PROJ4JS&&!e){var r=h.a.get();"function"==typeof r&&void 0!==r.defs(i)&&(e=new u.a({code:i}),p.addProjection(e))}}return e},p.equivalent=function(t,e){if(t===e)return!0;var i=t.getUnits()===e.getUnits();return t.getCode()===e.getCode()?i:p.getTransformFromProjections(t,e)===p.cloneTransform&&i},p.getTransform=function(t,e){var i=p.get(t),n=p.get(e);return p.getTransformFromProjections(i,n)},p.getTransformFromProjections=function(t,e){var i=t.getCode(),r=e.getCode(),o=f.a.get(i,r);if(n.a.ENABLE_PROJ4JS&&!o){var a=h.a.get();if("function"==typeof a){var s=a.defs(i),l=a.defs(r);if(void 0!==s&&void 0!==l){if(s===l)p.addEquivalentProjections([e,t]);else{var u=a(r,i);p.addCoordinateTransforms(e,t,u.forward,u.inverse)}o=f.a.get(i,r)}}}return o||(o=p.identityTransform),o},p.identityTransform=function(t,e,i){if(void 0!==e&&t!==e){for(var n=0,r=t.length;n<r;++n)e[n]=t[n];t=e}return t},p.cloneTransform=function(t,e,i){var n;if(void 0!==e){for(var r=0,o=t.length;r<o;++r)e[r]=t[r];n=e}else n=t.slice();return n},p.transform=function(t,e,i){return p.getTransform(e,i)(t,void 0,t.length)},p.transformExtent=function(t,e,i){var n=p.getTransform(e,i);return o.a.applyTransform(t,n)},p.transformWithProjections=function(t,e,i){return p.getTransformFromProjections(e,i)(t)},p.addCommon=function(){p.addEquivalentProjections(s.a.PROJECTIONS),p.addEquivalentProjections(l.a.PROJECTIONS),p.addEquivalentTransforms(l.a.PROJECTIONS,s.a.PROJECTIONS,s.a.fromEPSG4326,s.a.toEPSG4326)},p.addCommon(),e.default=p},function(t,e,i){"use strict";var n={};n.TRUE=function(){return!0},n.FALSE=function(){return!1},e.a=n},function(t,e,i){"use strict";var n={};n.ONE=1,n.SRC_ALPHA=770,n.COLOR_ATTACHMENT0=36064,n.COLOR_BUFFER_BIT=16384,n.TRIANGLES=4,n.TRIANGLE_STRIP=5,n.ONE_MINUS_SRC_ALPHA=771,n.ARRAY_BUFFER=34962,n.ELEMENT_ARRAY_BUFFER=34963,n.STREAM_DRAW=35040,n.STATIC_DRAW=35044,n.DYNAMIC_DRAW=35048,n.CULL_FACE=2884,n.BLEND=3042,n.STENCIL_TEST=2960,n.DEPTH_TEST=2929,n.SCISSOR_TEST=3089,n.UNSIGNED_BYTE=5121,n.UNSIGNED_SHORT=5123,n.UNSIGNED_INT=5125,n.FLOAT=5126,n.RGBA=6408,n.FRAGMENT_SHADER=35632,n.VERTEX_SHADER=35633,n.LINK_STATUS=35714,n.LINEAR=9729,n.TEXTURE_MAG_FILTER=10240,n.TEXTURE_MIN_FILTER=10241,n.TEXTURE_WRAP_S=10242,n.TEXTURE_WRAP_T=10243,n.TEXTURE_2D=3553,n.TEXTURE0=33984,n.CLAMP_TO_EDGE=33071,n.COMPILE_STATUS=35713,n.FRAMEBUFFER=36160,n.CONTEXT_IDS_=["experimental-webgl","webgl","webkit-3d","moz-webgl"],n.getContext=function(t,e){var i,r,o=n.CONTEXT_IDS_.length;for(r=0;r<o;++r)try{if(i=t.getContext(n.CONTEXT_IDS_[r],e))return i}catch(t){}return null},e.a=n},function(t,e,i){"use strict";var n=function(t){this.propagationStopped,this.type=t,this.target=null};n.prototype.preventDefault=n.prototype.stopPropagation=function(){this.propagationStopped=!0},n.stopPropagation=function(t){t.stopPropagation()},n.preventDefault=function(t){t.preventDefault()},e.a=n},function(t,e,i){"use strict";var n={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4,ABORT:5};e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(73),o=i(74),a=i(14),s=i(2),l=function(t){o.default.call(this),n.a.getUid(this),this.values_={},void 0!==t&&this.setProperties(t)};n.a.inherits(l,o.default),l.changeEventTypeCache_={},l.getChangeEventType=function(t){return l.changeEventTypeCache_.hasOwnProperty(t)?l.changeEventTypeCache_[t]:l.changeEventTypeCache_[t]="change:"+t},l.prototype.get=function(t){var e;return this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},l.prototype.getKeys=function(){return Object.keys(this.values_)},l.prototype.getProperties=function(){return s.a.assign({},this.values_)},l.prototype.notify=function(t,e){var i;i=l.getChangeEventType(t),this.dispatchEvent(new l.Event(i,t,e)),i=r.a.PROPERTYCHANGE,this.dispatchEvent(new l.Event(i,t,e))},l.prototype.set=function(t,e,i){if(i)this.values_[t]=e;else{var n=this.values_[t];this.values_[t]=e,n!==e&&this.notify(t,n)}},l.prototype.setProperties=function(t,e){var i;for(i in t)this.set(i,t[i],e)},l.prototype.unset=function(t,e){if(t in this.values_){var i=this.values_[t];delete this.values_[t],e||this.notify(t,i)}},l.Event=function(t,e,i){a.a.call(this,t),this.key=e,this.oldValue=i},n.a.inherits(l.Event,a.a),e.a=l},function(t,e,i){"use strict";var n={ANIMATING:0,INTERACTING:1};e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(13),o={},a="undefined"!==typeof navigator?navigator.userAgent.toLowerCase():"";o.FIREFOX=-1!==a.indexOf("firefox"),o.SAFARI=-1!==a.indexOf("safari")&&-1==a.indexOf("chrom"),o.WEBKIT=-1!==a.indexOf("webkit")&&-1==a.indexOf("edge"),o.MAC=-1!==a.indexOf("macintosh"),o.DEVICE_PIXEL_RATIO=window.devicePixelRatio||1,o.CANVAS_LINE_DASH=!1,o.CANVAS=n.a.ENABLE_CANVAS&&function(){if(!("HTMLCanvasElement"in window))return!1;try{var t=document.createElement("CANVAS").getContext("2d");return!!t&&(void 0!==t.setLineDash&&(o.CANVAS_LINE_DASH=!0),!0)}catch(t){return!1}}(),o.DEVICE_ORIENTATION="DeviceOrientationEvent"in window,o.GEOLOCATION="geolocation"in navigator,o.TOUCH=n.a.ASSUME_TOUCH||"ontouchstart"in window,o.POINTER="PointerEvent"in window,o.MSPOINTER=!!navigator.msPointerEnabled,o.WEBGL,function(){if(n.a.ENABLE_WEBGL){var t,e=!1,i=[];if("WebGLRenderingContext"in window)try{var a=document.createElement("CANVAS"),s=r.a.getContext(a,{failIfMajorPerformanceCaveat:!0});s&&(e=!0,t=s.getParameter(s.MAX_TEXTURE_SIZE),i=s.getSupportedExtensions())}catch(t){}o.WEBGL=e,n.a.WEBGL_EXTENSIONS=i,n.a.WEBGL_MAX_TEXTURE_SIZE=t}}(),e.a=o},function(t,e,i){"use strict";var n={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"};e.a=n},function(t,e,i){"use strict";var n={IMAGE:"IMAGE",TILE:"TILE",VECTOR_TILE:"VECTOR_TILE",VECTOR:"VECTOR"};e.a=n},function(t,e,i){"use strict";var n={IDLE:0,LOADING:1,LOADED:2,ERROR:3};e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(12),o=i(1),a=i(72),s=i(19),l=i(26),u=i(2),c=function(){a.a.call(this),this.layout=s.a.XY,this.stride=2,this.flatCoordinates=null};n.a.inherits(c,a.a),c.getLayoutForStride_=function(t){var e;return 2==t?e=s.a.XY:3==t?e=s.a.XYZ:4==t&&(e=s.a.XYZM),e},c.getStrideForLayout=function(t){var e;return t==s.a.XY?e=2:t==s.a.XYZ||t==s.a.XYM?e=3:t==s.a.XYZM&&(e=4),e},c.prototype.containsXY=r.a.FALSE,c.prototype.computeExtent=function(t){return o.a.createOrUpdateFromFlatCoordinates(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},c.prototype.getCoordinates=function(){},c.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},c.prototype.getFlatCoordinates=function(){return this.flatCoordinates},c.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},c.prototype.getLayout=function(){return this.layout},c.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!=this.getRevision()&&(u.a.clear(this.simplifiedGeometryCache),this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=t.toString();if(this.simplifiedGeometryCache.hasOwnProperty(e))return this.simplifiedGeometryCache[e];var i=this.getSimplifiedGeometryInternal(t);return i.getFlatCoordinates().length<this.flatCoordinates.length?(this.simplifiedGeometryCache[e]=i,i):(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)},c.prototype.getSimplifiedGeometryInternal=function(t){return this},c.prototype.getStride=function(){return this.stride},c.prototype.setFlatCoordinatesInternal=function(t,e){this.stride=c.getStrideForLayout(t),this.layout=t,this.flatCoordinates=e},c.prototype.setCoordinates=function(t,e){},c.prototype.setLayout=function(t,e,i){var n;if(t)n=c.getStrideForLayout(t);else{var r;for(r=0;r<i;++r){if(0===e.length)return this.layout=s.a.XY,void(this.stride=2);e=e[0]}n=e.length,t=c.getLayoutForStride_(n)}this.layout=t,this.stride=n},c.prototype.applyTransform=function(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},c.prototype.rotate=function(t,e){var i=this.getFlatCoordinates();if(i){var n=this.getStride();l.a.rotate(i,0,i.length,n,t,e,i),this.changed()}},c.prototype.scale=function(t,e,i){var n=e;void 0===n&&(n=t);var r=i;r||(r=o.a.getCenter(this.getExtent()));var a=this.getFlatCoordinates();if(a){var s=this.getStride();l.a.scale(a,0,a.length,s,t,n,r,a),this.changed()}},c.prototype.translate=function(t,e){var i=this.getFlatCoordinates();if(i){var n=this.getStride();l.a.translate(i,0,i.length,n,t,e,i),this.changed()}},c.transform2D=function(t,e,i){var n=t.getFlatCoordinates();if(n){var r=t.getStride();return l.a.transform2D(n,0,n.length,r,e,i)}return null},e.a=c},function(t,e,i){"use strict";var n={CANVAS:"canvas",WEBGL:"webgl"};e.a=n},function(t,e,i){"use strict";var n=i(39),r=i(9),o=i(2),a=i(96),s=i(10),l={};l.defaultFont="10px sans-serif",l.defaultFillStyle=[0,0,0,1],l.defaultLineCap="round",l.defaultLineDash=[],l.defaultLineDashOffset=0,l.defaultLineJoin="round",l.defaultMiterLimit=10,l.defaultStrokeStyle=[0,0,0,1],l.defaultTextAlign="center",l.defaultTextBaseline="middle",l.defaultPadding=[0,0,0,0],l.defaultLineWidth=1,l.labelCache=new a.a,l.checkedFonts_={},l.measureContext_=null,l.textHeights_={},l.checkFont=function(){function t(t){var e=l.getMeasureContext();e.font=c,r=e.measureText(h).width;var i=!0;if("monospace"!=t){e.font="32px "+t+",monospace";i=e.measureText(h).width!=r}return i}function e(){var e=!0;for(var n in s)s[n]<a&&(t(n)?(s[n]=a,o.a.clear(l.textHeights_),l.measureContext_=null,u.clear()):(++s[n],e=!1));e&&(window.clearInterval(i),i=void 0)}var i,r,a=60,s=l.checkedFonts_,u=l.labelCache,c="32px monospace",h="wmytzilWMYTZIL@#/&?$%10";return function(r){var o=n.a.getFontFamilies(r);if(o)for(var l=0,u=o.length;l<u;++l){var c=o[l];c in s||(s[c]=a,t(c)||(s[c]=0,void 0===i&&(i=window.setInterval(e,32))))}}}(),l.getMeasureContext=function(){var t=l.measureContext_;return t||(t=l.measureContext_=r.a.createCanvasContext2D(1,1)),t},l.measureTextHeight=function(){var t,e=l.textHeights_;return function(i){var n=e[i];return void 0==n&&(t||(t=document.createElement("span"),t.textContent="M",t.style.margin=t.style.padding="0 !important",t.style.position="absolute !important",t.style.left="-99999px !important"),t.style.font=i,document.body.appendChild(t),n=e[i]=t.offsetHeight,document.body.removeChild(t)),n}}(),l.measureTextWidth=function(t,e){var i=l.getMeasureContext();return t!=i.font&&(i.font=t),i.measureText(e).width},l.rotateAtOffset=function(t,e,i,n){0!==e&&(t.translate(i,n),t.rotate(e),t.translate(-i,-n))},l.resetTransform_=s.a.create(),l.drawImage=function(t,e,i,n,r,o,a,s,u,c,h){var d;1!=i&&(d=t.globalAlpha,t.globalAlpha=d*i),e&&t.setTransform.apply(t,e),t.drawImage(n,r,o,a,s,u,c,a*h,s*h),d&&(t.globalAlpha=d),e&&t.setTransform.apply(t,l.resetTransform_)},e.a=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(1),o=i(19),a=i(8),s=i(22),l=i(28),u=i(6),c=function(t,e){s.a.call(this),this.setCoordinates(t,e)};n.a.inherits(c,s.a),c.prototype.clone=function(){var t=new c(null);return t.setFlatCoordinates(this.layout,this.flatCoordinates.slice()),t},c.prototype.closestPointXY=function(t,e,i,n){var r=this.flatCoordinates,o=u.a.squaredDistance(t,e,r[0],r[1]);if(o<n){var a,s=this.stride;for(a=0;a<s;++a)i[a]=r[a];return i.length=s,o}return n},c.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},c.prototype.computeExtent=function(t){return r.a.createOrUpdateFromCoordinate(this.flatCoordinates,t)},c.prototype.getType=function(){return a.a.POINT},c.prototype.intersectsExtent=function(t){return r.a.containsXY(t,this.flatCoordinates[0],this.flatCoordinates[1])},c.prototype.setCoordinates=function(t,e){t?(this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=l.a.coordinate(this.flatCoordinates,0,t,this.stride),this.changed()):this.setFlatCoordinates(o.a.XY,null)},c.prototype.setFlatCoordinates=function(t,e){this.setFlatCoordinatesInternal(t,e),this.changed()},e.default=c},function(t,e,i){"use strict";var n={};n.transform2D=function(t,e,i,n,r,o){var a,s=o||[],l=0;for(a=e;a<i;a+=n){var u=t[a],c=t[a+1];s[l++]=r[0]*u+r[2]*c+r[4],s[l++]=r[1]*u+r[3]*c+r[5]}return o&&s.length!=l&&(s.length=l),s},n.rotate=function(t,e,i,n,r,o,a){for(var s=a||[],l=Math.cos(r),u=Math.sin(r),c=o[0],h=o[1],d=0,f=e;f<i;f+=n){var p=t[f]-c,g=t[f+1]-h;s[d++]=c+p*l-g*u,s[d++]=h+p*u+g*l;for(var _=f+2;_<f+n;++_)s[d++]=t[_]}return a&&s.length!=d&&(s.length=d),s},n.scale=function(t,e,i,n,r,o,a,s){for(var l=s||[],u=a[0],c=a[1],h=0,d=e;d<i;d+=n){var f=t[d]-u,p=t[d+1]-c;l[h++]=u+r*f,l[h++]=c+o*p;for(var g=d+2;g<d+n;++g)l[h++]=t[g]}return s&&l.length!=h&&(l.length=h),l},n.translate=function(t,e,i,n,r,o,a){var s,l,u=a||[],c=0;for(s=e;s<i;s+=n)for(u[c++]=t[s]+r,u[c++]=t[s+1]+o,l=s+2;l<s+n;++l)u[c++]=t[l];return a&&u.length!=c&&(u.length=c),u},e.a=n},function(t,e,i){"use strict";var n={DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"};n.METERS_PER_UNIT={},n.METERS_PER_UNIT[n.DEGREES]=2*Math.PI*6370997/360,n.METERS_PER_UNIT[n.FEET]=.3048,n.METERS_PER_UNIT[n.METERS]=1,n.METERS_PER_UNIT[n.USFEET]=1200/3937,e.a=n},function(t,e,i){"use strict";var n={};n.coordinate=function(t,e,i,n){var r,o;for(r=0,o=i.length;r<o;++r)t[e++]=i[r];return e},n.coordinates=function(t,e,i,n){var r,o;for(r=0,o=i.length;r<o;++r){var a,s=i[r];for(a=0;a<n;++a)t[e++]=s[a]}return e},n.coordinatess=function(t,e,i,r,o){var a,s,l=o||[],u=0;for(a=0,s=i.length;a<s;++a){var c=n.coordinates(t,e,i[a],r);l[u++]=c,e=c}return l.length=u,l},n.coordinatesss=function(t,e,i,r,o){var a,s,l=o||[],u=0;for(a=0,s=i.length;a<s;++a){var c=n.coordinatess(t,e,i[a],r,l[u]);l[u++]=c,e=c[c.length-1]}return l.length=u,l},e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(16),o=i(36),a=i(162),s=i(6),l=function(t){r.a.call(this),this.map_=null,this.setActive(!0),this.handleEvent=t.handleEvent};n.a.inherits(l,r.a),l.prototype.getActive=function(){return this.get(a.a.ACTIVE)},l.prototype.getMap=function(){return this.map_},l.prototype.setActive=function(t){this.set(a.a.ACTIVE,t)},l.prototype.setMap=function(t){this.map_=t},l.pan=function(t,e,i){var n=t.getCenter();if(n){var r=t.constrainCenter([n[0]+e[0],n[1]+e[1]]);i?t.animate({duration:i,easing:o.a.linear,center:r}):t.setCenter(r)}},l.rotate=function(t,e,i,n){e=t.constrainRotation(e,0),l.rotateWithoutConstraints(t,e,i,n)},l.rotateWithoutConstraints=function(t,e,i,n){if(void 0!==e){var r=t.getRotation(),a=t.getCenter();void 0!==r&&a&&n>0?t.animate({rotation:e,anchor:i,duration:n,easing:o.a.easeOut}):t.rotate(e,i)}},l.zoom=function(t,e,i,n,r){e=t.constrainResolution(e,0,r),l.zoomWithoutConstraints(t,e,i,n)},l.zoomByDelta=function(t,e,i,n){var r=t.getResolution(),o=t.constrainResolution(r,e,0);if(void 0!==o){var a=t.getResolutions();o=s.a.clamp(o,t.getMinResolution()||a[a.length-1],t.getMaxResolution()||a[0])}if(i&&void 0!==o&&o!==r){var u=t.getCenter(),c=t.calculateCenterZoom(o,i);c=t.constrainCenter(c),i=[(o*u[0]-r*c[0])/(o-r),(o*u[1]-r*c[1])/(o-r)]}l.zoomWithoutConstraints(t,o,i,n)},l.zoomWithoutConstraints=function(t,e,i,n){if(e){var r=t.getResolution(),a=t.getCenter();if(void 0!==r&&a&&e!==r&&n)t.animate({resolution:e,anchor:i,duration:n,easing:o.a.easeOut});else{if(i){var s=t.calculateCenterZoom(e,i);t.setCenter(s)}t.setResolution(e)}}},e.a=l},function(t,e,i){"use strict";var n=i(42),r=i(7),o=i(12),a=i(18),s={};s.altKeyOnly=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},s.altShiftKeysOnly=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},s.always=o.a.TRUE,s.click=function(t){return t.type==n.a.CLICK},s.mouseActionButton=function(t){var e=t.originalEvent;return 0==e.button&&!(a.a.WEBKIT&&a.a.MAC&&e.ctrlKey)},s.never=o.a.FALSE,s.pointerMove=function(t){return"pointermove"==t.type},s.singleClick=function(t){return t.type==n.a.SINGLECLICK},s.doubleClick=function(t){return t.type==n.a.DBLCLICK},s.noModifierKeys=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},s.platformModifierKeyOnly=function(t){var e=t.originalEvent;return!e.altKey&&(a.a.MAC?e.metaKey:e.ctrlKey)&&!e.shiftKey},s.shiftKeyOnly=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},s.targetNotEditable=function(t){var e=t.originalEvent.target,i=e.tagName;return"INPUT"!==i&&"SELECT"!==i&&"TEXTAREA"!==i},s.mouseOnly=function(t){return r.a.assert(t.pointerEvent,56),"mouse"==t.pointerEvent.pointerType},s.primaryAction=function(t){var e=t.pointerEvent;return e.isPrimary&&0===e.button},e.a=s},function(t,e,i){"use strict";t.exports=i(206)},function(t,e,i){"use strict";var n=i(7),r=i(6),o={};o.HEX_COLOR_RE_=/^#(?:[0-9a-f]{3,4}){1,2}$/i,o.NAMED_COLOR_RE_=/^([a-z]*)$/i,o.asArray=function(t){return Array.isArray(t)?t:o.fromString(t)},o.asString=function(t){return"string"===typeof t?t:o.toString(t)},o.fromNamed=function(t){var e=document.createElement("div");e.style.color=t,document.body.appendChild(e);var i=getComputedStyle(e).color;return document.body.removeChild(e),i},o.fromString=function(){var t={},e=0;return function(i){var n;if(t.hasOwnProperty(i))n=t[i];else{if(e>=1024){var r,a=0;for(r in t)0===(3&a++)&&(delete t[r],--e)}n=o.fromStringInternal_(i),t[i]=n,++e}return n}}(),o.fromStringInternal_=function(t){var e,i,r,a,s,l;if(o.NAMED_COLOR_RE_.exec(t)&&(t=o.fromNamed(t)),o.HEX_COLOR_RE_.exec(t)){var u,c=t.length-1;u=c<=4?1:2;var h=4===c||8===c;e=parseInt(t.substr(1+0*u,u),16),i=parseInt(t.substr(1+1*u,u),16),r=parseInt(t.substr(1+2*u,u),16),a=h?parseInt(t.substr(1+3*u,u),16):255,1==u&&(e=(e<<4)+e,i=(i<<4)+i,r=(r<<4)+r,h&&(a=(a<<4)+a)),s=[e,i,r,a/255]}else 0==t.indexOf("rgba(")?(l=t.slice(5,-1).split(",").map(Number),s=o.normalize(l)):0==t.indexOf("rgb(")?(l=t.slice(4,-1).split(",").map(Number),l.push(1),s=o.normalize(l)):n.a.assert(!1,14);return s},o.normalize=function(t,e){var i=e||[];return i[0]=r.a.clamp(t[0]+.5|0,0,255),i[1]=r.a.clamp(t[1]+.5|0,0,255),i[2]=r.a.clamp(t[2]+.5|0,0,255),i[3]=r.a.clamp(t[3],0,1),i},o.toString=function(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var i=t[1];i!=(0|i)&&(i=i+.5|0);var n=t[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+e+","+i+","+n+","+(void 0===t[3]?1:t[3])+")"},e.a=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(41),o=i(1),a=i(146),s=i(2),l=i(11),u=i(27),c=i(271),h={};h.getForProjection=function(t){var e=t.getDefaultTileGrid();return e||(e=h.createForProjection(t),t.setDefaultTileGrid(e)),e},h.wrapX=function(t,e,i){var n=e[0],r=t.getTileCoordCenter(e),a=h.extentFromProjection(i);if(o.a.containsCoordinate(a,r))return e;var s=o.a.getWidth(a),l=Math.ceil((a[0]-r[0])/s);return r[0]+=s*l,t.getTileCoordForCoordAndZ(r,n)},h.createForExtent=function(t,e,i,n){var r=void 0!==n?n:a.a.TOP_LEFT,s=h.resolutionsFromExtent(t,e,i);return new c.a({extent:t,origin:o.a.getCorner(t,r),resolutions:s,tileSize:i})},h.createXYZ=function(t){var e={};return s.a.assign(e,void 0!==t?t:{}),void 0===e.extent&&(e.extent=l.default.get("EPSG:3857").getExtent()),e.resolutions=h.resolutionsFromExtent(e.extent,e.maxZoom,e.tileSize),delete e.maxZoom,new c.a(e)},h.resolutionsFromExtent=function(t,e,i){for(var a=void 0!==e?e:n.a.DEFAULT_MAX_ZOOM,s=o.a.getHeight(t),l=o.a.getWidth(t),u=r.a.toSize(void 0!==i?i:n.a.DEFAULT_TILE_SIZE),c=Math.max(l/u[0],s/u[1]),h=a+1,d=new Array(h),f=0;f<h;++f)d[f]=c/Math.pow(2,f);return d},h.createForProjection=function(t,e,i,n){var r=h.extentFromProjection(t);return h.createForExtent(r,e,i,n)},h.extentFromProjection=function(t){t=l.default.get(t);var e=t.getExtent();if(!e){var i=180*l.default.METERS_PER_UNIT[u.a.DEGREES]/t.getMetersPerUnit();e=o.a.createOrUpdate(-i,-i,i,i)}return e},e.default=h},function(t,e,i){"use strict";var n={};n.createOrUpdate=function(t,e,i,n){return void 0!==n?(n[0]=t,n[1]=e,n[2]=i,n):[t,e,i]},n.getKeyZXY=function(t,e,i){return t+"/"+e+"/"+i},n.getKey=function(t){return n.getKeyZXY(t[0],t[1],t[2])},n.fromKey=function(t){return t.split("/").map(Number)},n.hash=function(t){return(t[1]<<t[0])+t[2]},n.quadKey=function(t){var e,i,n=t[0],r=new Array(n),o=1<<n-1;for(e=0;e<n;++e)i=48,t[1]&o&&(i+=1),t[2]&o&&(i+=2),r[e]=String.fromCharCode(i),o>>=1;return r.join("")},n.withinExtentAndZ=function(t,e){var i=t[0],n=t[1],r=t[2];if(e.getMinZoom()>i||i>e.getMaxZoom())return!1;var o,a=e.getExtent();return!(o=a?e.getTileRangeForExtentAndZ(a,i):e.getFullTileRange(i))||o.containsXY(n,r)},e.a=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(6),r=i(155),o={};o.add=function(t,e){return t[0]+=e[0],t[1]+=e[1],t},o.closestOnCircle=function(t,e){var i=e.getRadius(),n=e.getCenter(),r=n[0],o=n[1],a=t[0],s=t[1],l=a-r,u=s-o;0===l&&0===u&&(l=1);var c,h,d=Math.sqrt(l*l+u*u);return c=r+i*l/d,h=o+i*u/d,[c,h]},o.closestOnSegment=function(t,e){var i,n,r=t[0],o=t[1],a=e[0],s=e[1],l=a[0],u=a[1],c=s[0],h=s[1],d=c-l,f=h-u,p=0===d&&0===f?0:(d*(r-l)+f*(o-u))/(d*d+f*f||0);return p<=0?(i=l,n=u):p>=1?(i=c,n=h):(i=l+p*d,n=u+p*f),[i,n]},o.createStringXY=function(t){return function(e){return o.toStringXY(e,t)}},o.degreesToStringHDMS=function(t,e,i){var o=n.a.modulo(e+180,360)-180,a=Math.abs(3600*o),s=i||0,l=Math.pow(10,s),u=Math.floor(a/3600),c=Math.floor((a-3600*u)/60),h=a-3600*u-60*c;return h=Math.ceil(h*l)/l,h>=60&&(h=0,c+=1),c>=60&&(c=0,u+=1),u+"\xb0 "+r.a.padNumber(c,2)+"\u2032 "+r.a.padNumber(h,2,s)+"\u2033"+(0==o?"":" "+t.charAt(o<0?1:0))},o.format=function(t,e,i){return t?e.replace("{x}",t[0].toFixed(i)).replace("{y}",t[1].toFixed(i)):""},o.equals=function(t,e){for(var i=!0,n=t.length-1;n>=0;--n)if(t[n]!=e[n]){i=!1;break}return i},o.rotate=function(t,e){var i=Math.cos(e),n=Math.sin(e),r=t[0]*i-t[1]*n,o=t[1]*i+t[0]*n;return t[0]=r,t[1]=o,t},o.scale=function(t,e){return t[0]*=e,t[1]*=e,t},o.sub=function(t,e){return t[0]-=e[0],t[1]-=e[1],t},o.squaredDistance=function(t,e){var i=t[0]-e[0],n=t[1]-e[1];return i*i+n*n},o.distance=function(t,e){return Math.sqrt(o.squaredDistance(t,e))},o.squaredDistanceToSegment=function(t,e){return o.squaredDistance(t,o.closestOnSegment(t,e))},o.toStringHDMS=function(t,e){return t?o.degreesToStringHDMS("NS",t[1],e)+" "+o.degreesToStringHDMS("EW",t[0],e):""},o.toStringXY=function(t,e){return o.format(t,"{x}, {y}",e)},e.default=o},function(t,e,i){"use strict";var n={};n.easeIn=function(t){return Math.pow(t,3)},n.easeOut=function(t){return 1-n.easeIn(1-t)},n.inAndOut=function(t){return 3*t*t-2*t*t*t},n.linear=function(t){return t},n.upAndDown=function(t){return t<.5?n.inAndOut(2*t):1-n.inAndOut(2*(t-.5))},e.a=n},function(t,e,i){"use strict";var n={UNDEFINED:"undefined",LOADING:"loading",READY:"ready",ERROR:"error"};e.a=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(7),r=i(8),o=i(141),a=i(97),s=i(98),l=function t(e){var i=e||{};this.geometry_=null,this.geometryFunction_=t.defaultGeometryFunction,void 0!==i.geometry&&this.setGeometry(i.geometry),this.fill_=void 0!==i.fill?i.fill:null,this.image_=void 0!==i.image?i.image:null,this.renderer_=void 0!==i.renderer?i.renderer:null,this.stroke_=void 0!==i.stroke?i.stroke:null,this.text_=void 0!==i.text?i.text:null,this.zIndex_=i.zIndex};l.prototype.clone=function(){var t=this.getGeometry();return t&&t.clone&&(t=t.clone()),new l({geometry: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()})},l.prototype.getRenderer=function(){return this.renderer_},l.prototype.setRenderer=function(t){this.renderer_=t},l.prototype.getGeometry=function(){return this.geometry_},l.prototype.getGeometryFunction=function(){return this.geometryFunction_},l.prototype.getFill=function(){return this.fill_},l.prototype.setFill=function(t){this.fill_=t},l.prototype.getImage=function(){return this.image_},l.prototype.setImage=function(t){this.image_=t},l.prototype.getStroke=function(){return this.stroke_},l.prototype.setStroke=function(t){this.stroke_=t},l.prototype.getText=function(){return this.text_},l.prototype.setText=function(t){this.text_=t},l.prototype.getZIndex=function(){return this.zIndex_},l.prototype.setGeometry=function(t){"function"===typeof t?this.geometryFunction_=t:"string"===typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=l.defaultGeometryFunction,this.geometry_=t},l.prototype.setZIndex=function(t){this.zIndex_=t},l.createFunction=function(t){var e;if("function"===typeof t)e=t;else{var i;Array.isArray(t)?i=t:(n.a.assert(t instanceof l,41),i=[t]),e=function(){return i}}return e},l.default_=null,l.defaultFunction=function(t,e){if(!l.default_){var i=new a.default({color:"rgba(255,255,255,0.4)"}),n=new s.default({color:"#3399CC",width:1.25});l.default_=[new l({image:new o.default({fill:i,stroke:n,radius:5}),fill:i,stroke:n})]}return l.default_},l.createDefaultEditing=function(){var t={},e=[255,255,255,1],i=[0,153,255,1];return t[r.a.POLYGON]=[new l({fill:new a.default({color:[255,255,255,.5]})})],t[r.a.MULTI_POLYGON]=t[r.a.POLYGON],t[r.a.LINE_STRING]=[new l({stroke:new s.default({color:e,width:5})}),new l({stroke:new s.default({color:i,width:3})})],t[r.a.MULTI_LINE_STRING]=t[r.a.LINE_STRING],t[r.a.CIRCLE]=t[r.a.POLYGON].concat(t[r.a.LINE_STRING]),t[r.a.POINT]=[new l({image:new o.default({radius:6,fill:new a.default({color:i}),stroke:new s.default({color:e,width:1.5})}),zIndex:1/0})],t[r.a.MULTI_POINT]=t[r.a.POINT],t[r.a.GEOMETRY_COLLECTION]=t[r.a.POLYGON].concat(t[r.a.LINE_STRING],t[r.a.POINT]),t},l.defaultGeometryFunction=function(t){return t.getGeometry()},e.default=l},function(t,e,i){"use strict";var n={};n.CLASS_HIDDEN="ol-hidden",n.CLASS_SELECTABLE="ol-selectable",n.CLASS_UNSELECTABLE="ol-unselectable",n.CLASS_UNSUPPORTED="ol-unsupported",n.CLASS_CONTROL="ol-control",n.getFontFamilies=function(){var t,e={};return function(i){if(t||(t=document.createElement("div").style),!(i in e)){t.font=i;var n=t.fontFamily;if(t.font="",!n)return null;e[i]=n.split(/,\s?/)}return e[i]}}(),e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(71),o=i(3),a=i(14),s=function(){r.a.call(this),this.pendingRemovals_={},this.dispatching_={},this.listeners_={}};n.a.inherits(s,r.a),s.prototype.addEventListener=function(t,e){var i=this.listeners_[t];i||(i=this.listeners_[t]=[]),-1===i.indexOf(e)&&i.push(e)},s.prototype.dispatchEvent=function(t){var e="string"===typeof t?new a.a(t):t,i=e.type;e.target=this;var r,o=this.listeners_[i];if(o){i in this.dispatching_||(this.dispatching_[i]=0,this.pendingRemovals_[i]=0),++this.dispatching_[i];for(var s=0,l=o.length;s<l;++s)if(!1===o[s].call(this,e)||e.propagationStopped){r=!1;break}if(0===--this.dispatching_[i]){var u=this.pendingRemovals_[i];for(delete this.pendingRemovals_[i];u--;)this.removeEventListener(i,n.a.nullFunction);delete this.dispatching_[i]}return r}},s.prototype.disposeInternal=function(){o.a.unlistenAll(this)},s.prototype.getListeners=function(t){return this.listeners_[t]},s.prototype.hasListener=function(t){return t?t in this.listeners_:Object.keys(this.listeners_).length>0},s.prototype.removeEventListener=function(t,e){var i=this.listeners_[t];if(i){var r=i.indexOf(e);t in this.pendingRemovals_?(i[r]=n.a.nullFunction,++this.pendingRemovals_[t]):(i.splice(r,1),0===i.length&&delete this.listeners_[t])}},e.a=s},function(t,e,i){"use strict";var n={};n.buffer=function(t,e,i){return void 0===i&&(i=[0,0]),i[0]=t[0]+2*e,i[1]=t[1]+2*e,i},n.hasArea=function(t){return t[0]>0&&t[1]>0},n.scale=function(t,e,i){return void 0===i&&(i=[0,0]),i[0]=t[0]*e+.5|0,i[1]=t[1]*e+.5|0,i},n.toSize=function(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:e[0]=e[1]=t,e)},e.a=n},function(t,e,i){"use strict";var n=i(4),r={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"};e.a=r},function(t,e,i){"use strict";var n=i(0),r=i(5),o=i(1),a=i(19),s=i(8),l=i(156),u=i(25),c=i(22),h=i(78),d=i(59),f=i(60),p=i(28),g=i(44),_=i(104),y=i(79),v=i(51),m=i(50),E=i(6),T=function(t,e){c.a.call(this),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,this.setCoordinates(t,e)};n.a.inherits(T,c.a),T.prototype.appendLinearRing=function(t){this.flatCoordinates?r.a.extend(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(null);return t.setFlatCoordinates(this.layout,this.flatCoordinates.slice(),this.ends_.slice()),t},T.prototype.closestPointXY=function(t,e,i,n){return n<o.a.closestSquaredDistanceXY(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(d.a.getsMaxSquaredDelta(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),d.a.getsClosestPoint(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,i,n))},T.prototype.containsXY=function(t,e){return f.a.linearRingsContainsXY(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)},T.prototype.getArea=function(){return h.a.linearRings(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},T.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),v.a.orientLinearRings(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,g.a.coordinatess(e,0,this.ends_,this.stride)},T.prototype.getEnds=function(){return this.ends_},T.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var t=o.a.getCenter(this.getExtent());this.flatInteriorPoint_=_.a.linearRings(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},T.prototype.getInteriorPoint=function(){return new u.default(this.getFlatInteriorPoint(),a.a.XYM)},T.prototype.getLinearRingCount=function(){return this.ends_.length},T.prototype.getLinearRing=function(t){if(t<0||this.ends_.length<=t)return null;var e=new l.a(null);return e.setFlatCoordinates(this.layout,this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t])),e},T.prototype.getLinearRings=function(){var t,e,i=this.layout,n=this.flatCoordinates,r=this.ends_,o=[],a=0;for(t=0,e=r.length;t<e;++t){var s=r[t],u=new l.a(null);u.setFlatCoordinates(i,n.slice(a,s)),o.push(u),a=s}return o},T.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;v.a.linearRingsAreOriented(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=v.a.orientLinearRings(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},T.prototype.getSimplifiedGeometryInternal=function(t){var e=[],i=[];e.length=m.a.quantizes(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),e,0,i);var n=new T(null);return n.setFlatCoordinates(a.a.XY,e,i),n},T.prototype.getType=function(){return s.a.POLYGON},T.prototype.intersectsExtent=function(t){return y.a.linearRings(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)},T.prototype.setCoordinates=function(t,e){if(t){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var i=p.a.coordinatess(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===i.length?0:i[i.length-1],this.changed()}else this.setFlatCoordinates(a.a.XY,null,this.ends_)},T.prototype.setFlatCoordinates=function(t,e,i){this.setFlatCoordinatesInternal(t,e),this.ends_=i,this.changed()},T.circular=function(t,e,i,n){var o,s=n||32,l=[];for(o=0;o<s;++o)r.a.extend(l,t.offset(e,i,2*Math.PI*o/s));l.push(l[0],l[1]);var u=new T(null);return u.setFlatCoordinates(a.a.XY,l,[l.length]),u},T.fromExtent=function(t){var e=t[0],i=t[1],n=t[2],r=t[3],o=[e,i,e,r,n,r,n,i,e,i],s=new T(null);return s.setFlatCoordinates(a.a.XY,o,[o.length]),s},T.fromCircle=function(t,e,i){for(var n=e||32,r=t.getStride(),o=t.getLayout(),a=new T(null,o),s=r*(n+1),l=new Array(s),u=0;u<s;u++)l[u]=0;var c=[l.length];return a.setFlatCoordinates(o,l,c),T.makeRegular(a,t.getCenter(),t.getRadius(),i),a},T.makeRegular=function(t,e,i,n){for(var r,o,a=t.getFlatCoordinates(),s=t.getLayout(),l=t.getStride(),u=t.getEnds(),c=a.length/l-1,h=n||0,d=0;d<=c;++d)o=d*l,r=h+2*E.a.modulo(d,c)*Math.PI/c,a[o]=e[0]+i*Math.cos(r),a[o+1]=e[1]+i*Math.sin(r);t.setFlatCoordinates(s,a,u)},e.a=T},function(t,e,i){"use strict";var n={};n.coordinates=function(t,e,i,n,r){var o,a=void 0!==r?r:[],s=0;for(o=e;o<i;o+=n)a[s++]=t.slice(o,o+n);return a.length=s,a},n.coordinatess=function(t,e,i,r,o){var a,s,l=void 0!==o?o:[],u=0;for(a=0,s=i.length;a<s;++a){var c=i[a];l[u++]=n.coordinates(t,e,c,r,l[u]),e=c}return l.length=u,l},n.coordinatesss=function(t,e,i,r,o){var a,s,l=void 0!==o?o:[],u=0;for(a=0,s=i.length;a<s;++a){var c=i[a];l[u++]=n.coordinatess(t,e,c,r,l[u]),e=c[c.length-1]}return l.length=u,l},e.a=n},function(t,e,i){"use strict";var n=i(3),r=i(4),o=i(0),a=i(16),s=i(158),l=i(159),u=i(2),c=i(52),h=i(37),d=function(t){var e=u.a.assign({},t);delete e.source,s.a.call(this,e),this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,t.map&&this.setMap(t.map),n.a.listen(this,a.a.getChangeEventType(l.a.SOURCE),this.handleSourcePropertyChange_,this);var i=t.source?t.source:null;this.setSource(i)};o.a.inherits(d,s.a),d.visibleAtResolution=function(t,e){return t.visible&&e>=t.minResolution&&e<t.maxResolution},d.prototype.getLayersArray=function(t){var e=t||[];return e.push(this),e},d.prototype.getLayerStatesArray=function(t){var e=t||[];return e.push(this.getLayerState()),e},d.prototype.getSource=function(){return this.get(l.a.SOURCE)||null},d.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():h.a.UNDEFINED},d.prototype.handleSourceChange_=function(){this.changed()},d.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(n.a.unlistenByKey(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=n.a.listen(t,r.a.CHANGE,this.handleSourceChange_,this)),this.changed()},d.prototype.setMap=function(t){this.mapPrecomposeKey_&&(n.a.unlistenByKey(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(n.a.unlistenByKey(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=n.a.listen(t,c.a.PRECOMPOSE,function(t){var e=this.getLayerState();e.managed=!1,e.zIndex=1/0,t.frameState.layerStatesArray.push(e),t.frameState.layerStates[o.a.getUid(this)]=e},this),this.mapRenderKey_=n.a.listen(this,r.a.CHANGE,t.render,t),this.changed())},d.prototype.setSource=function(t){this.set(l.a.SOURCE,t)},e.a=d},function(t,e,i){"use strict";var n=i(0),r=i(12),o=i(42),a=i(99),s=i(29),l=i(2),u=function t(e){var i=e||{},n=i.handleEvent?i.handleEvent:t.handleEvent;s.a.call(this,{handleEvent:n}),this.handleDownEvent_=i.handleDownEvent?i.handleDownEvent:t.handleDownEvent,this.handleDragEvent_=i.handleDragEvent?i.handleDragEvent:t.handleDragEvent,this.handleMoveEvent_=i.handleMoveEvent?i.handleMoveEvent:t.handleMoveEvent,this.handleUpEvent_=i.handleUpEvent?i.handleUpEvent:t.handleUpEvent,this.handlingDownUpSequence=!1,this.trackedPointers_={},this.targetPointers=[]};n.a.inherits(u,s.a),u.centroid=function(t){for(var e=t.length,i=0,n=0,r=0;r<e;r++)i+=t[r].clientX,n+=t[r].clientY;return[i/e,n/e]},u.prototype.isPointerDraggingEvent_=function(t){var e=t.type;return e===o.a.POINTERDOWN||e===o.a.POINTERDRAG||e===o.a.POINTERUP},u.prototype.updateTrackedPointers_=function(t){if(this.isPointerDraggingEvent_(t)){var e=t.pointerEvent,i=e.pointerId.toString();t.type==o.a.POINTERUP?delete this.trackedPointers_[i]:t.type==o.a.POINTERDOWN?this.trackedPointers_[i]=e:i in this.trackedPointers_&&(this.trackedPointers_[i]=e),this.targetPointers=l.a.getValues(this.trackedPointers_)}},u.handleDragEvent=n.a.nullFunction,u.handleUpEvent=r.a.FALSE,u.handleDownEvent=r.a.FALSE,u.handleMoveEvent=n.a.nullFunction,u.handleEvent=function(t){if(!(t instanceof a.a))return!0;var e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==o.a.POINTERDRAG)this.handleDragEvent_(t);else if(t.type==o.a.POINTERUP){var i=this.handleUpEvent_(t);this.handlingDownUpSequence=i&&this.targetPointers.length>0}}else if(t.type==o.a.POINTERDOWN){var n=this.handleDownEvent_(t);this.handlingDownUpSequence=n,e=this.shouldStopEvent(n)}else t.type==o.a.POINTERMOVE&&this.handleMoveEvent_(t);return!e},u.prototype.shouldStopEvent=function(t){return t},e.a=u},function(t,e,i){"use strict";var n=i(13),r=function t(e,i){this.arr_=void 0!==e?e:[],this.usage_=void 0!==i?i:t.Usage_.STATIC_DRAW};r.prototype.getArray=function(){return this.arr_},r.prototype.getUsage=function(){return this.usage_},r.Usage_={STATIC_DRAW:n.a.STATIC_DRAW,STREAM_DRAW:n.a.STREAM_DRAW,DYNAMIC_DRAW:n.a.DYNAMIC_DRAW},e.a=r},function(t,e,i){"use strict";var n=i(0),r=i(140),o=i(49),a=i(16),s=i(14),l=function(t,e){a.a.call(this);var i=e||{};if(this.unique_=!!i.unique,this.array_=t||[],this.unique_)for(var n=0,r=this.array_.length;n<r;++n)this.assertUnique_(this.array_[n],n);this.updateLength_()};n.a.inherits(l,a.a),l.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},l.prototype.extend=function(t){var e,i;for(e=0,i=t.length;e<i;++e)this.push(t[e]);return this},l.prototype.forEach=function(t,e){for(var i=e?t.bind(e):t,n=this.array_,r=0,o=n.length;r<o;++r)i(n[r],r,n)},l.prototype.getArray=function(){return this.array_},l.prototype.item=function(t){return this.array_[t]},l.prototype.getLength=function(){return this.get(l.Property_.LENGTH)},l.prototype.insertAt=function(t,e){this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new l.Event(o.a.ADD,e))},l.prototype.pop=function(){return this.removeAt(this.getLength()-1)},l.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var e=this.getLength();return this.insertAt(e,t),this.getLength()},l.prototype.remove=function(t){var e,i,n=this.array_;for(e=0,i=n.length;e<i;++e)if(n[e]===t)return this.removeAt(e)},l.prototype.removeAt=function(t){var e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new l.Event(o.a.REMOVE,e)),e},l.prototype.setAt=function(t,e){var i=this.getLength();if(t<i){this.unique_&&this.assertUnique_(e,t);var n=this.array_[t];this.array_[t]=e,this.dispatchEvent(new l.Event(o.a.REMOVE,n)),this.dispatchEvent(new l.Event(o.a.ADD,e))}else{var r;for(r=i;r<t;++r)this.insertAt(r,void 0);this.insertAt(t,e)}},l.prototype.updateLength_=function(){this.set(l.Property_.LENGTH,this.array_.length)},l.prototype.assertUnique_=function(t,e){for(var i=0,n=this.array_.length;i<n;++i)if(this.array_[i]===t&&i!==e)throw new r.a(58)},l.Property_={LENGTH:"length"},l.Event=function(t,e){s.a.call(this,t),this.element=e},n.a.inherits(l.Event,s.a),e.a=l},function(t,e,i){"use strict";var n={ADD:"add",REMOVE:"remove"};e.a=n},function(t,e,i){"use strict";var n=i(6),r={};r.lineString=function(t,e,i,n,o,a,s){var l=void 0!==s?s:[];return a||(i=r.radialDistance(t,e,i,n,o,l,0),t=l,e=0,n=2),l.length=r.douglasPeucker(t,e,i,n,o,l,0),l},r.douglasPeucker=function(t,e,i,r,o,a,s){var l=(i-e)/r;if(l<3){for(;e<i;e+=r)a[s++]=t[e],a[s++]=t[e+1];return s}var u=new Array(l);u[0]=1,u[l-1]=1;for(var c,h=[e,i-r],d=0;h.length>0;){var f=h.pop(),p=h.pop(),g=0,_=t[p],y=t[p+1],v=t[f],m=t[f+1];for(c=p+r;c<f;c+=r){var E=t[c],T=t[c+1],S=n.a.squaredSegmentDistance(E,T,_,y,v,m);S>g&&(d=c,g=S)}g>o&&(u[(d-e)/r]=1,p+r<d&&h.push(p,d),d+r<f&&h.push(d,f))}for(c=0;c<l;++c)u[c]&&(a[s++]=t[e+c*r],a[s++]=t[e+c*r+1]);return s},r.douglasPeuckers=function(t,e,i,n,o,a,s,l){var u,c;for(u=0,c=i.length;u<c;++u){var h=i[u];s=r.douglasPeucker(t,e,h,n,o,a,s),l.push(s),e=h}return s},r.douglasPeuckerss=function(t,e,i,n,o,a,s,l){var u,c;for(u=0,c=i.length;u<c;++u){var h=i[u],d=[];s=r.douglasPeuckers(t,e,h,n,o,a,s,d),l.push(d),e=h[h.length-1]}return s},r.radialDistance=function(t,e,i,r,o,a,s){if(i<=e+r){for(;e<i;e+=r)a[s++]=t[e],a[s++]=t[e+1];return s}var l=t[e],u=t[e+1];a[s++]=l,a[s++]=u;var c=l,h=u;for(e+=r;e<i;e+=r)c=t[e],h=t[e+1],n.a.squaredDistance(l,u,c,h)>o&&(a[s++]=c,a[s++]=h,l=c,u=h);return c==l&&h==u||(a[s++]=c,a[s++]=h),s},r.snap=function(t,e){return e*Math.round(t/e)},r.quantize=function(t,e,i,n,o,a,s){if(e==i)return s;var l=r.snap(t[e],o),u=r.snap(t[e+1],o);e+=n,a[s++]=l,a[s++]=u;var c,h;do{if(c=r.snap(t[e],o),h=r.snap(t[e+1],o),(e+=n)==i)return a[s++]=c,a[s++]=h,s}while(c==l&&h==u);for(;e<i;){var d,f;if(d=r.snap(t[e],o),f=r.snap(t[e+1],o),e+=n,d!=c||f!=h){var p=c-l,g=h-u,_=d-l,y=f-u;p*y==g*_&&(p<0&&_<p||p==_||p>0&&_>p)&&(g<0&&y<g||g==y||g>0&&y>g)?(c=d,h=f):(a[s++]=c,a[s++]=h,l=c,u=h,c=d,h=f)}}return a[s++]=c,a[s++]=h,s},r.quantizes=function(t,e,i,n,o,a,s,l){var u,c;for(u=0,c=i.length;u<c;++u){var h=i[u];s=r.quantize(t,e,h,n,o,a,s),l.push(s),e=h}return s},r.quantizess=function(t,e,i,n,o,a,s,l){var u,c;for(u=0,c=i.length;u<c;++u){var h=i[u],d=[];s=r.quantizes(t,e,h,n,o,a,s,d),l.push(d),e=h[h.length-1]}return s},e.a=r},function(t,e,i){"use strict";var n=i(284),r={};r.linearRingIsClockwise=function(t,e,i,n){for(var r=0,o=t[i-n],a=t[i-n+1];e<i;e+=n){var s=t[e],l=t[e+1];r+=(s-o)*(l+a),o=s,a=l}return r>0},r.linearRingsAreOriented=function(t,e,i,n,o){var a,s,l=void 0!==o&&o;for(a=0,s=i.length;a<s;++a){var u=i[a],c=r.linearRingIsClockwise(t,e,u,n);if(0===a){if(l&&c||!l&&!c)return!1}else if(l&&!c||!l&&c)return!1;e=u}return!0},r.linearRingssAreOriented=function(t,e,i,n,o){var a,s;for(a=0,s=i.length;a<s;++a)if(!r.linearRingsAreOriented(t,e,i[a],n,o))return!1;return!0},r.orientLinearRings=function(t,e,i,o,a){var s,l,u=void 0!==a&&a;for(s=0,l=i.length;s<l;++s){var c=i[s],h=r.linearRingIsClockwise(t,e,c,o);(0===s?u&&h||!u&&!h:u&&!h||!u&&h)&&n.a.coordinates(t,e,c,o),e=c}return e},r.orientLinearRingss=function(t,e,i,n,o){var a,s;for(a=0,s=i.length;a<s;++a)e=r.orientLinearRings(t,e,i[a],n,o);return e},e.a=r},function(t,e,i){"use strict";var n={POSTCOMPOSE:"postcompose",PRECOMPOSE:"precompose",RENDER:"render"};e.a=n},function(t,e,i){"use strict";var n=i(62),r={};r.ORDER=[n.a.POLYGON,n.a.CIRCLE,n.a.LINE_STRING,n.a.IMAGE,n.a.TEXT,n.a.DEFAULT],r.TEXT_ALIGN={},r.TEXT_ALIGN.left=0,r.TEXT_ALIGN.end=0,r.TEXT_ALIGN.center=.5,r.TEXT_ALIGN.right=1,r.TEXT_ALIGN.start=1,r.TEXT_ALIGN.top=0,r.TEXT_ALIGN.middle=.5,r.TEXT_ALIGN.hanging=.2,r.TEXT_ALIGN.alphabetic=.8,r.TEXT_ALIGN.ideographic=.8,r.TEXT_ALIGN.bottom=1,e.a=r},function(t,e,i){"use strict";var n=i(0),r=i(13),o=i(176),a=function(t){o.a.call(this,t)};n.a.inherits(a,o.a),a.prototype.getType=function(){return r.a.FRAGMENT_SHADER},e.a=a},function(t,e,i){"use strict";var n=i(0),r=i(13),o=i(176),a=function(t){o.a.call(this,t)};n.a.inherits(a,o.a),a.prototype.getType=function(){return r.a.VERTEX_SHADER},e.a=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(20),o=i(45),a=i(163),s=i(2),l=i(38),u=function(t){var e=t||{},i=s.a.assign({},e);delete i.style,delete i.renderBuffer,delete i.updateWhileAnimating,delete i.updateWhileInteracting,o.a.call(this,i),this.declutter_=void 0!==e.declutter&&e.declutter,this.renderBuffer_=void 0!==e.renderBuffer?e.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(e.style),this.updateWhileAnimating_=void 0!==e.updateWhileAnimating&&e.updateWhileAnimating,this.updateWhileInteracting_=void 0!==e.updateWhileInteracting&&e.updateWhileInteracting,this.renderMode_=e.renderMode||a.a.VECTOR,this.type=r.a.VECTOR};n.a.inherits(u,o.a),u.prototype.getDeclutter=function(){return this.declutter_},u.prototype.setDeclutter=function(t){this.declutter_=t},u.prototype.getRenderBuffer=function(){return this.renderBuffer_},u.prototype.getRenderOrder=function(){return this.get(u.Property_.RENDER_ORDER)},u.prototype.getSource,u.prototype.getStyle=function(){return this.style_},u.prototype.getStyleFunction=function(){return this.styleFunction_},u.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},u.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},u.prototype.setRenderOrder=function(t){this.set(u.Property_.RENDER_ORDER,t)},u.prototype.setStyle=function(t){this.style_=void 0!==t?t:l.default.defaultFunction,this.styleFunction_=null===t?void 0:l.default.createFunction(this.style_),this.changed()},u.prototype.getRenderMode=function(){return this.renderMode_},u.Property_={RENDER_ORDER:"renderOrder"},e.default=u},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(48),o=i(49),a=i(73),s=i(5),l=i(7),u=i(3),c=i(14),h=i(4),d=i(1),f=i(193),p=i(12),g=i(194),_=i(2),y=i(118),v=i(37),m=i(195),E=i(112),T=function(t){var e=t||{};y.a.call(this,{attributions:e.attributions,logo:e.logo,projection:void 0,state:v.a.READY,wrapX:void 0===e.wrapX||e.wrapX}),this.loader_=n.a.nullFunction,this.format_=e.format,this.overlaps_=void 0==e.overlaps||e.overlaps,this.url_=e.url,void 0!==e.loader?this.loader_=e.loader:void 0!==this.url_&&(l.a.assert(this.format_,7),this.loader_=f.a.xhr(this.url_,this.format_)),this.strategy_=void 0!==e.strategy?e.strategy:g.default.all;var i=void 0===e.useSpatialIndex||e.useSpatialIndex;this.featuresRtree_=i?new E.a:null,this.loadedExtentsRtree_=new E.a,this.nullGeometryFeatures_={},this.idIndex_={},this.undefIdIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null;var o,a;e.features instanceof r.a?(o=e.features,a=o.getArray()):Array.isArray(e.features)&&(a=e.features),i||void 0!==o||(o=new r.a(a)),void 0!==a&&this.addFeaturesInternal(a),void 0!==o&&this.bindFeaturesCollection_(o)};n.a.inherits(T,y.a),T.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},T.prototype.addFeatureInternal=function(t){var e=n.a.getUid(t).toString();if(this.addToIndex_(e,t)){this.setupChangeEvents_(e,t);var i=t.getGeometry();if(i){var r=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(r,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new T.Event(m.a.ADDFEATURE,t))}},T.prototype.setupChangeEvents_=function(t,e){this.featureChangeKeys_[t]=[u.a.listen(e,h.a.CHANGE,this.handleFeatureChange_,this),u.a.listen(e,a.a.PROPERTYCHANGE,this.handleFeatureChange_,this)]},T.prototype.addToIndex_=function(t,e){var i=!0,n=e.getId();return void 0!==n?n.toString()in this.idIndex_?i=!1:this.idIndex_[n.toString()]=e:(l.a.assert(!(t in this.undefIdIndex_),30),this.undefIdIndex_[t]=e),i},T.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},T.prototype.addFeaturesInternal=function(t){var e,i,r,o,a=[],s=[],l=[];for(i=0,r=t.length;i<r;i++)o=t[i],e=n.a.getUid(o).toString(),this.addToIndex_(e,o)&&s.push(o);for(i=0,r=s.length;i<r;i++){o=s[i],e=n.a.getUid(o).toString(),this.setupChangeEvents_(e,o);var u=o.getGeometry();if(u){var c=u.getExtent();a.push(c),l.push(o)}else this.nullGeometryFeatures_[e]=o}for(this.featuresRtree_&&this.featuresRtree_.load(a,l),i=0,r=s.length;i<r;i++)this.dispatchEvent(new T.Event(m.a.ADDFEATURE,s[i]))},T.prototype.bindFeaturesCollection_=function(t){var e=!1;u.a.listen(this,m.a.ADDFEATURE,function(i){e||(e=!0,t.push(i.feature),e=!1)}),u.a.listen(this,m.a.REMOVEFEATURE,function(i){e||(e=!0,t.remove(i.feature),e=!1)}),u.a.listen(t,o.a.ADD,function(t){e||(e=!0,this.addFeature(t.element),e=!1)},this),u.a.listen(t,o.a.REMOVE,function(t){e||(e=!0,this.removeFeature(t.element),e=!1)},this),this.featuresCollection_=t},T.prototype.clear=function(t){if(t){for(var e in this.featureChangeKeys_){this.featureChangeKeys_[e].forEach(u.a.unlistenByKey)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.undefIdIndex_={})}else if(this.featuresRtree_){this.featuresRtree_.forEach(this.removeFeatureInternal,this);for(var i in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[i])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.loadedExtentsRtree_.clear(),this.nullGeometryFeatures_={};var n=new T.Event(m.a.CLEAR);this.dispatchEvent(n),this.changed()},T.prototype.forEachFeature=function(t,e){return this.featuresRtree_?this.featuresRtree_.forEach(t,e):this.featuresCollection_?this.featuresCollection_.forEach(t,e):void 0},T.prototype.forEachFeatureAtCoordinateDirect=function(t,e,i){var n=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(n,function(n){return n.getGeometry().intersectsCoordinate(t)?e.call(i,n):void 0})},T.prototype.forEachFeatureInExtent=function(t,e,i){return this.featuresRtree_?this.featuresRtree_.forEachInExtent(t,e,i):this.featuresCollection_?this.featuresCollection_.forEach(e,i):void 0},T.prototype.forEachFeatureIntersectingExtent=function(t,e,i){return this.forEachFeatureInExtent(t,function(n){if(n.getGeometry().intersectsExtent(t)){var r=e.call(i,n);if(r)return r}})},T.prototype.getFeaturesCollection=function(){return this.featuresCollection_},T.prototype.getFeatures=function(){var t;return this.featuresCollection_?t=this.featuresCollection_.getArray():this.featuresRtree_&&(t=this.featuresRtree_.getAll(),_.a.isEmpty(this.nullGeometryFeatures_)||s.a.extend(t,_.a.getValues(this.nullGeometryFeatures_))),t},T.prototype.getFeaturesAtCoordinate=function(t){var e=[];return this.forEachFeatureAtCoordinateDirect(t,function(t){e.push(t)}),e},T.prototype.getFeaturesInExtent=function(t){return this.featuresRtree_.getInExtent(t)},T.prototype.getClosestFeatureToCoordinate=function(t,e){var i=t[0],n=t[1],r=null,o=[NaN,NaN],a=1/0,s=[-1/0,-1/0,1/0,1/0],l=e||p.a.TRUE;return this.featuresRtree_.forEachInExtent(s,function(t){if(l(t)){var e=t.getGeometry(),u=a;if((a=e.closestPointXY(i,n,o,a))<u){r=t;var c=Math.sqrt(a);s[0]=i-c,s[1]=n-c,s[2]=i+c,s[3]=n+c}}}),r},T.prototype.getExtent=function(t){return this.featuresRtree_.getExtent(t)},T.prototype.getFeatureById=function(t){var e=this.idIndex_[t.toString()];return void 0!==e?e:null},T.prototype.getFormat=function(){return this.format_},T.prototype.getOverlaps=function(){return this.overlaps_},T.prototype.getResolutions=function(){},T.prototype.getUrl=function(){return this.url_},T.prototype.handleFeatureChange_=function(t){var e=t.target,i=n.a.getUid(e).toString(),r=e.getGeometry();if(r){var o=r.getExtent();i in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[i],this.featuresRtree_&&this.featuresRtree_.insert(o,e)):this.featuresRtree_&&this.featuresRtree_.update(o,e)}else i in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[i]=e);var a=e.getId();if(void 0!==a){var s=a.toString();i in this.undefIdIndex_?(delete this.undefIdIndex_[i],this.idIndex_[s]=e):this.idIndex_[s]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[s]=e)}else i in this.undefIdIndex_||(this.removeFromIdIndex_(e),this.undefIdIndex_[i]=e);this.changed(),this.dispatchEvent(new T.Event(m.a.CHANGEFEATURE,e))},T.prototype.isEmpty=function(){return this.featuresRtree_.isEmpty()&&_.a.isEmpty(this.nullGeometryFeatures_)},T.prototype.loadFeatures=function(t,e,i){var n,r,o=this.loadedExtentsRtree_,a=this.strategy_(t,e);for(n=0,r=a.length;n<r;++n){var s=a[n];o.forEachInExtent(s,function(t){return d.a.containsExtent(t.extent,s)})||(this.loader_.call(this,s,e,i),o.insert(s,{extent:s.slice()}))}},T.prototype.removeLoadedExtent=function(t){var e,i=this.loadedExtentsRtree_;i.forEachInExtent(t,function(i){if(d.a.equals(i.extent,t))return e=i,!0}),e&&i.remove(e)},T.prototype.removeFeature=function(t){var e=n.a.getUid(t).toString();e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t),this.changed()},T.prototype.removeFeatureInternal=function(t){var e=n.a.getUid(t).toString();this.featureChangeKeys_[e].forEach(u.a.unlistenByKey),delete this.featureChangeKeys_[e];var i=t.getId();void 0!==i?delete this.idIndex_[i.toString()]:delete this.undefIdIndex_[e],this.dispatchEvent(new T.Event(m.a.REMOVEFEATURE,t))},T.prototype.removeFromIdIndex_=function(t){var e=!1;for(var i in this.idIndex_)if(this.idIndex_[i]===t){delete this.idIndex_[i],e=!0;break}return e},T.prototype.setLoader=function(t){this.loader_=t},T.Event=function(t,e){c.a.call(this,t),this.feature=e},n.a.inherits(T.Event,c.a),e.default=T},function(t,e,i){"use strict";var n=i(32),r={};r.asColorLike=function(t){return r.isColorLike(t)?t:n.a.asString(t)},r.isColorLike=function(t){return"string"===typeof t||t instanceof CanvasPattern||t instanceof CanvasGradient},e.a=r},function(t,e,i){"use strict";var n=i(6),r={};r.point=function(t,e,i,r,o,a,s){var l,u,c=t[e],h=t[e+1],d=t[i]-c,f=t[i+1]-h;if(0===d&&0===f)u=e;else{var p=((o-c)*d+(a-h)*f)/(d*d+f*f);if(p>1)u=i;else{if(p>0){for(l=0;l<r;++l)s[l]=n.a.lerp(t[e+l],t[i+l],p);return void(s.length=r)}u=e}}for(l=0;l<r;++l)s[l]=t[u+l];s.length=r},r.getMaxSquaredDelta=function(t,e,i,r,o){var a=t[e],s=t[e+1];for(e+=r;e<i;e+=r){var l=t[e],u=t[e+1],c=n.a.squaredDistance(a,s,l,u);c>o&&(o=c),a=l,s=u}return o},r.getsMaxSquaredDelta=function(t,e,i,n,o){var a,s;for(a=0,s=i.length;a<s;++a){var l=i[a];o=r.getMaxSquaredDelta(t,e,l,n,o),e=l}return o},r.getssMaxSquaredDelta=function(t,e,i,n,o){var a,s;for(a=0,s=i.length;a<s;++a){var l=i[a];o=r.getsMaxSquaredDelta(t,e,l,n,o),e=l[l.length-1]}return o},r.getClosestPoint=function(t,e,i,o,a,s,l,u,c,h,d){if(e==i)return h;var f,p;if(0===a){if((p=n.a.squaredDistance(l,u,t[e],t[e+1]))<h){for(f=0;f<o;++f)c[f]=t[e+f];return c.length=o,p}return h}for(var g=d||[NaN,NaN],_=e+o;_<i;)if(r.point(t,_-o,_,o,l,u,g),(p=n.a.squaredDistance(l,u,g[0],g[1]))<h){for(h=p,f=0;f<o;++f)c[f]=g[f];c.length=o,_+=o}else _+=o*Math.max((Math.sqrt(p)-Math.sqrt(h))/a|0,1);if(s&&(r.point(t,i-o,e,o,l,u,g),(p=n.a.squaredDistance(l,u,g[0],g[1]))<h)){for(h=p,f=0;f<o;++f)c[f]=g[f];c.length=o}return h},r.getsClosestPoint=function(t,e,i,n,o,a,s,l,u,c,h){var d,f,p=h||[NaN,NaN];for(d=0,f=i.length;d<f;++d){var g=i[d];c=r.getClosestPoint(t,e,g,n,o,a,s,l,u,c,p),e=g}return c},r.getssClosestPoint=function(t,e,i,n,o,a,s,l,u,c,h){var d,f,p=h||[NaN,NaN];for(d=0,f=i.length;d<f;++d){var g=i[d];c=r.getsClosestPoint(t,e,g,n,o,a,s,l,u,c,p),e=g[g.length-1]}return c},e.a=r},function(t,e,i){"use strict";var n=i(1),r={};r.linearRingContainsExtent=function(t,e,i,o,a){return!n.a.forEachCorner(a,function(n){return!r.linearRingContainsXY(t,e,i,o,n[0],n[1])})},r.linearRingContainsXY=function(t,e,i,n,r,o){for(var a=0,s=t[i-n],l=t[i-n+1];e<i;e+=n){var u=t[e],c=t[e+1];l<=o?c>o&&(u-s)*(o-l)-(r-s)*(c-l)>0&&a++:c<=o&&(u-s)*(o-l)-(r-s)*(c-l)<0&&a--,s=u,l=c}return 0!==a},r.linearRingsContainsXY=function(t,e,i,n,o,a){if(0===i.length)return!1;if(!r.linearRingContainsXY(t,e,i[0],n,o,a))return!1;var s,l;for(s=1,l=i.length;s<l;++s)if(r.linearRingContainsXY(t,i[s-1],i[s],n,o,a))return!1;return!0},r.linearRingssContainsXY=function(t,e,i,n,o,a){if(0===i.length)return!1;var s,l;for(s=0,l=i.length;s<l;++s){var u=i[s];if(r.linearRingsContainsXY(t,e,u,n,o,a))return!0;e=u[u.length-1]}return!1},e.a=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(105),r={};r.mapRendererPlugins_=[],r.getMapRendererPlugins=function(){return r.mapRendererPlugins_},r.layerRendererPlugins_=[],r.getLayerRendererPlugins=function(){return r.layerRendererPlugins_},r.register=function(t,e){var i;switch(t){case n.default.MAP_RENDERER:i=r.mapRendererPlugins_,i.push(e);break;case n.default.LAYER_RENDERER:i=r.layerRendererPlugins_,i.push(e);break;default:throw new Error("Unsupported plugin type: "+t)}},r.registerMultiple=function(t,e){for(var i=0,n=e.length;i<n;++i)r.register(t,e[i])},e.default=r},function(t,e,i){"use strict";var n={CIRCLE:"Circle",DEFAULT:"Default",IMAGE:"Image",LINE_STRING:"LineString",POLYGON:"Polygon",TEXT:"Text"};e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(5),o=i(58),a=i(1),s=i(147),l=i(8),u=i(44),c=i(172),h=i(306),d=i(26),f=i(18),p=i(2),g=i(81),_=i(24),y=i(64),v=i(53),m=i(10),E=function(t,e,i,n,r,o){g.a.call(this),this.declutterTree=o,this.tmpExtent_=a.a.createEmpty(),this.tolerance=t,this.maxExtent=e,this.overlaps=r,this.pixelRatio=n,this.maxLineWidth=0,this.resolution=i,this.fillOrigin_,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.coordinateCache_={},this.renderedTransform_=m.a.create(),this.hitDetectionInstructions=[],this.pixelCoordinates_=null,this.state={},this.viewRotation_=0,this.tmpLocalTransform_=m.a.create(),this.resetTransform_=m.a.create()};n.a.inherits(E,g.a),E.prototype.replayTextBackground_=function(t,e,i,n,r,o,a){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,i),t.lineTo.apply(t,n),t.lineTo.apply(t,r),t.lineTo.apply(t,e),o&&(this.fillOrigin_=o[2],this.fill_(t)),a&&(this.setStrokeStyle_(t,a),t.stroke())},E.prototype.replayImage_=function(t,e,i,n,r,o,s,l,u,c,h,d,f,p,g,y,v,E){var T=v||E,S=this.tmpLocalTransform_;r*=f,o*=f,e-=r,i-=o,p&&(e=Math.round(e),i=Math.round(i));var x,C,R,b,I=g+c>n.width?n.width-c:g,O=l+h>n.height?n.height-h:l,P=this.tmpExtent_,w=y[3]+I*f+y[1],L=y[0]+O*f+y[2],A=e-y[3],M=i-y[0];(T||0!==d)&&(x=[A,M],C=[A+w,M],R=[A+w,M+L],b=[A,M+L]);var F=null;if(0!==d){var N=e+r,D=i+o;F=m.a.compose(S,N,D,1,1,d,-N,-D),a.a.createOrUpdateEmpty(P),a.a.extendCoordinate(P,m.a.apply(S,x)),a.a.extendCoordinate(P,m.a.apply(S,C)),a.a.extendCoordinate(P,m.a.apply(S,R)),a.a.extendCoordinate(P,m.a.apply(S,b))}else a.a.createOrUpdate(A,M,A+w,M+L,P);var k=t.canvas,G=P[0]<=k.width&&P[2]>=0&&P[1]<=k.height&&P[3]>=0;if(s){if(!G&&1==s[4])return;a.a.extend(s,P);var U=G?[t,F?F.slice(0):null,u,n,c,h,I,O,e,i,f]:null;U&&T&&U.push(v,E,x,C,R,b),s.push(U)}else G&&(T&&this.replayTextBackground_(t,x,C,R,b,v,E),_.a.drawImage(t,F,u,n,c,h,I,O,e,i,f))},E.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map(function(t){return t*e})},E.prototype.appendFlatCoordinates=function(t,e,i,n,r,o){var l=this.coordinates.length,u=this.getBufferedMaxExtent();o&&(e+=n);var c,h,d,f=[t[e],t[e+1]],p=[NaN,NaN],g=!0;for(c=e+n;c<i;c+=n)p[0]=t[c],p[1]=t[c+1],d=a.a.coordinateRelationship(u,p),d!==h?(g&&(this.coordinates[l++]=f[0],this.coordinates[l++]=f[1]),this.coordinates[l++]=p[0],this.coordinates[l++]=p[1],g=!1):d===s.a.INTERSECTING?(this.coordinates[l++]=p[0],this.coordinates[l++]=p[1],g=!1):g=!0,f[0]=p[0],f[1]=p[1],h=d;return(r&&g||c===e+n)&&(this.coordinates[l++]=f[0],this.coordinates[l++]=f[1]),l},E.prototype.drawCustomCoordinates_=function(t,e,i,n,r){for(var o=0,a=i.length;o<a;++o){var s=i[o],l=this.appendFlatCoordinates(t,e,s,n,!1,!1);r.push(l),e=s}return e},E.prototype.drawCustom=function(t,e,i){this.beginGeometry(t,e);var n,r,o,a,s,c=t.getType(),h=t.getStride(),d=this.coordinates.length;if(c==l.a.MULTI_POLYGON){t=t,n=t.getOrientedFlatCoordinates(),a=[];var f=t.getEndss();s=0;for(var p=0,g=f.length;p<g;++p){var _=[];s=this.drawCustomCoordinates_(n,s,f[p],h,_),a.push(_)}this.instructions.push([y.a.CUSTOM,d,a,t,i,u.a.coordinatesss])}else c==l.a.POLYGON||c==l.a.MULTI_LINE_STRING?(o=[],n=c==l.a.POLYGON?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),s=this.drawCustomCoordinates_(n,0,t.getEnds(),h,o),this.instructions.push([y.a.CUSTOM,d,o,t,i,u.a.coordinatess])):c==l.a.LINE_STRING||c==l.a.MULTI_POINT?(n=t.getFlatCoordinates(),r=this.appendFlatCoordinates(n,0,n.length,h,!1,!1),this.instructions.push([y.a.CUSTOM,d,r,t,i,u.a.coordinates])):c==l.a.POINT&&(n=t.getFlatCoordinates(),this.coordinates.push(n[0],n[1]),r=this.coordinates.length,this.instructions.push([y.a.CUSTOM,d,r,t,i]));this.endGeometry(t,e)},E.prototype.beginGeometry=function(t,e){this.beginGeometryInstruction1_=[y.a.BEGIN_GEOMETRY,e,0],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[y.a.BEGIN_GEOMETRY,e,0],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},E.prototype.fill_=function(t){if(this.fillOrigin_){var e=m.a.apply(this.renderedTransform_,this.fillOrigin_.slice());t.translate(e[0],e[1]),t.rotate(this.viewRotation_)}t.fill(),this.fillOrigin_&&t.setTransform.apply(t,_.a.resetTransform_)},E.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],f.a.CANVAS_LINE_DASH&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},E.prototype.renderDeclutter_=function(t,e){if(t&&t.length>5){var i=t[4];if(1==i||i==t.length-5){var n={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};if(!this.declutterTree.collides(n)){this.declutterTree.insert(n);for(var r=_.a.drawImage,o=5,s=t.length;o<s;++o){var l=t[o];l&&(l.length>11&&this.replayTextBackground_(l[0],l[13],l[14],l[15],l[16],l[11],l[12]),r.apply(void 0,l))}}t.length=5,a.a.createOrUpdateEmpty(t)}}},E.prototype.replay_=function(t,e,i,o,s,l){var u;this.pixelCoordinates_&&r.a.equals(e,this.renderedTransform_)?u=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),u=d.a.transform2D(this.coordinates,0,this.coordinates.length,2,e,this.pixelCoordinates_),m.a.setFromArray(this.renderedTransform_,e));for(var f,g,E,T,S,x,C,R,b,I=!p.a.isEmpty(i),O=0,P=o.length,w=0,L=0,A=0,M=null,F=null,N=this.coordinateCache_,D=this.viewRotation_,k={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:D},G=this.instructions!=o||this.overlaps?0:200;O<P;){var U,j,B,V=o[O],Y=V[0];switch(Y){case y.a.BEGIN_GEOMETRY:U=V[1],I&&i[n.a.getUid(U).toString()]||!U.getGeometry()?O=V[2]:void 0===l||a.a.intersects(l,U.getGeometry().getExtent())?++O:O=V[2]+1;break;case y.a.BEGIN_PATH:L>G&&(this.fill_(t),L=0),A>G&&(t.stroke(),A=0),L||A||(t.beginPath(),T=S=NaN),++O;break;case y.a.CIRCLE:w=V[1];var W=u[w],z=u[w+1],X=u[w+2],H=u[w+3],K=X-W,q=H-z,Z=Math.sqrt(K*K+q*q);t.moveTo(W+Z,z),t.arc(W,z,Z,0,2*Math.PI,!0),++O;break;case y.a.CLOSE_PATH:t.closePath(),++O;break;case y.a.CUSTOM:w=V[1],f=V[2];var J=V[3],Q=V[4],$=6==V.length?V[5]:void 0;k.geometry=J,k.feature=U,O in N||(N[O]=[]);var tt=N[O];$?$(u,w,f,2,tt):(tt[0]=u[w],tt[1]=u[w+1],tt.length=2),Q(tt,k),++O;break;case y.a.DRAW_IMAGE:w=V[1],f=V[2],b=V[3],g=V[4],E=V[5],R=s?null:V[6];var et,it,nt,rt=V[7],ot=V[8],at=V[9],st=V[10],lt=V[11],ut=V[12],ct=V[13],ht=V[14],dt=V[15];for(V.length>16?(et=V[16],it=V[17],nt=V[18]):(et=_.a.defaultPadding,it=nt=!1),lt&&(ut+=D);w<f;w+=2)this.replayImage_(t,u[w],u[w+1],b,g,E,R,rt,ot,at,st,ut,ct,ht,dt,et,it?M:null,nt?F:null);this.renderDeclutter_(R,U),++O;break;case y.a.DRAW_CHARS:var ft=V[1],pt=V[2],gt=V[3];R=s?null:V[4];var _t=V[5],yt=V[6],vt=V[7],mt=V[8],Et=V[9],Tt=V[10],St=V[11],xt=V[12],Ct=V[13],Rt=V[14],bt=c.a.lineString(u,ft,pt,2),It=mt(xt);if(_t||It<=bt){var Ot=this.textStates[Ct].textAlign,Pt=(bt-It)*v.a.TEXT_ALIGN[Ot],wt=h.a.lineString(u,ft,pt,2,xt,mt,Pt,vt);if(wt){var Lt,At,Mt,Ft,Nt;if(Tt)for(Lt=0,At=wt.length;Lt<At;++Lt)Nt=wt[Lt],Mt=Nt[4],Ft=this.getImage(Mt,Ct,"",Tt),g=Nt[2]+St,E=gt*Ft.height+2*(.5-gt)*St-Et,this.replayImage_(t,Nt[0],Nt[1],Ft,g,E,R,Ft.height,1,0,0,Nt[3],Rt,!1,Ft.width,_.a.defaultPadding,null,null);if(yt)for(Lt=0,At=wt.length;Lt<At;++Lt)Nt=wt[Lt],Mt=Nt[4],Ft=this.getImage(Mt,Ct,yt,""),g=Nt[2],E=gt*Ft.height-Et,this.replayImage_(t,Nt[0],Nt[1],Ft,g,E,R,Ft.height,1,0,0,Nt[3],Rt,!1,Ft.width,_.a.defaultPadding,null,null)}}this.renderDeclutter_(R,U),++O;break;case y.a.END_GEOMETRY:if(void 0!==s){U=V[1];var Dt=s(U);if(Dt)return Dt}++O;break;case y.a.FILL:G?L++:this.fill_(t),++O;break;case y.a.MOVE_TO_LINE_TO:for(w=V[1],f=V[2],j=u[w],B=u[w+1],x=j+.5|0,C=B+.5|0,x===T&&C===S||(t.moveTo(j,B),T=x,S=C),w+=2;w<f;w+=2)j=u[w],B=u[w+1],x=j+.5|0,C=B+.5|0,w!=f-2&&x===T&&C===S||(t.lineTo(j,B),T=x,S=C);++O;break;case y.a.SET_FILL_STYLE:M=V,this.fillOrigin_=V[2],L&&(this.fill_(t),L=0,A&&(t.stroke(),A=0)),t.fillStyle=V[1],++O;break;case y.a.SET_STROKE_STYLE:F=V,A&&(t.stroke(),A=0),this.setStrokeStyle_(t,V),++O;break;case y.a.STROKE:G?A++:t.stroke(),++O;break;default:++O}}L&&this.fill_(t),A&&t.stroke()},E.prototype.replay=function(t,e,i,n){this.viewRotation_=i,this.replay_(t,e,n,this.instructions,void 0,void 0)},E.prototype.replayHitDetection=function(t,e,i,n,r,o){return this.viewRotation_=i,this.replay_(t,e,n,this.hitDetectionInstructions,r,o)},E.prototype.reverseHitDetectionInstructions=function(){var t=this.hitDetectionInstructions;t.reverse();var e,i,n,o=t.length,a=-1;for(e=0;e<o;++e)i=t[e],n=i[0],n==y.a.END_GEOMETRY?a=e:n==y.a.BEGIN_GEOMETRY&&(i[2]=e,r.a.reverseSubArray(this.hitDetectionInstructions,a,e),a=-1)},E.prototype.setFillStrokeStyle=function(t,e){var i=this.state;if(t){var n=t.getColor();i.fillStyle=o.a.asColorLike(n||_.a.defaultFillStyle)}else i.fillStyle=void 0;if(e){var r=e.getColor();i.strokeStyle=o.a.asColorLike(r||_.a.defaultStrokeStyle);var a=e.getLineCap();i.lineCap=void 0!==a?a:_.a.defaultLineCap;var s=e.getLineDash();i.lineDash=s?s.slice():_.a.defaultLineDash;var l=e.getLineDashOffset();i.lineDashOffset=l||_.a.defaultLineDashOffset;var u=e.getLineJoin();i.lineJoin=void 0!==u?u:_.a.defaultLineJoin;var c=e.getWidth();i.lineWidth=void 0!==c?c:_.a.defaultLineWidth;var h=e.getMiterLimit();i.miterLimit=void 0!==h?h:_.a.defaultMiterLimit,i.lineWidth>this.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else 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},E.prototype.applyFill=function(t,e){var i=t.fillStyle,n=[y.a.SET_FILL_STYLE,i];if("string"!==typeof i){var r=e.getExtent();n.push([r[0],r[3]])}this.instructions.push(n)},E.prototype.applyStroke=function(t){this.instructions.push([y.a.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio])},E.prototype.updateFillStyle=function(t,e,i){var n=t.fillStyle;"string"===typeof n&&t.currentFillStyle==n||(e.call(this,t,i),t.currentFillStyle=n)},E.prototype.updateStrokeStyle=function(t,e){var i=t.strokeStyle,n=t.lineCap,o=t.lineDash,a=t.lineDashOffset,s=t.lineJoin,l=t.lineWidth,u=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=n||o!=t.currentLineDash&&!r.a.equals(t.currentLineDash,o)||t.currentLineDashOffset!=a||t.currentLineJoin!=s||t.currentLineWidth!=l||t.currentMiterLimit!=u)&&(e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=n,t.currentLineDash=o,t.currentLineDashOffset=a,t.currentLineJoin=s,t.currentLineWidth=l,t.currentMiterLimit=u)},E.prototype.endGeometry=function(t,e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var i=[y.a.END_GEOMETRY,e];this.instructions.push(i),this.hitDetectionInstructions.push(i)},E.prototype.finish=n.a.nullFunction,E.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=a.a.clone(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;a.a.buffer(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e.a=E},function(t,e,i){"use strict";var n={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};e.a=n},function(t,e,i){"use strict";var n=i(7),r=i(3),o=i(4),a=i(0),s=i(16),l=i(72),u=i(38),c=function(t){if(s.a.call(this),this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,r.a.listen(this,s.a.getChangeEventType(this.geometryName_),this.handleGeometryChanged_,this),void 0!==t)if(t instanceof l.a||!t){var e=t;this.setGeometry(e)}else{var i=t;this.setProperties(i)}};a.a.inherits(c,s.a),c.prototype.clone=function(){var t=new c(this.getProperties());t.setGeometryName(this.getGeometryName());var e=this.getGeometry();e&&t.setGeometry(e.clone());var i=this.getStyle();return i&&t.setStyle(i),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_&&(r.a.unlistenByKey(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=r.a.listen(t,o.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?c.createStyleFunction(t):void 0,this.changed()},c.prototype.setId=function(t){this.id_=t,this.changed()},c.prototype.setGeometryName=function(t){r.a.unlisten(this,s.a.getChangeEventType(this.geometryName_),this.handleGeometryChanged_,this),this.geometryName_=t,r.a.listen(this,s.a.getChangeEventType(this.geometryName_),this.handleGeometryChanged_,this),this.handleGeometryChanged_()},c.createStyleFunction=function(t){var e;if("function"===typeof t)e=2==t.length?function(e){return t(this,e)}:t;else{var i;Array.isArray(t)?i=t:(n.a.assert(t instanceof u.default,41),i=[t]),e=function(){return i}}return e},e.a=c},function(t,e,i){"use strict";var n=i(0),r=i(5),o=i(1),a=i(19),s=i(8),l=i(22),u=i(59),c=i(28),h=i(44),d=i(115),f=i(79),p=i(172),g=i(157),_=i(50),y=function(t,e){l.a.call(this),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.setCoordinates(t,e)};n.a.inherits(y,l.a),y.prototype.appendCoordinate=function(t){this.flatCoordinates?r.a.extend(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()},y.prototype.clone=function(){var t=new y(null);return t.setFlatCoordinates(this.layout,this.flatCoordinates.slice()),t},y.prototype.closestPointXY=function(t,e,i,n){return n<o.a.closestSquaredDistanceXY(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(u.a.getMaxSquaredDelta(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),u.a.getClosestPoint(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,i,n))},y.prototype.forEachSegment=function(t,e){return g.a.forEach(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e)},y.prototype.getCoordinateAtM=function(t,e){if(this.layout!=a.a.XYM&&this.layout!=a.a.XYZM)return null;var i=void 0!==e&&e;return d.a.lineStringCoordinateAtM(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,i)},y.prototype.getCoordinates=function(){return h.a.coordinates(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},y.prototype.getCoordinateAt=function(t,e){return d.a.lineString(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e)},y.prototype.getLength=function(){return p.a.lineString(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},y.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},y.prototype.getSimplifiedGeometryInternal=function(t){var e=[];e.length=_.a.douglasPeucker(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0);var i=new y(null);return i.setFlatCoordinates(a.a.XY,e),i},y.prototype.getType=function(){return s.a.LINE_STRING},y.prototype.intersectsExtent=function(t){return f.a.lineString(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},y.prototype.setCoordinates=function(t,e){t?(this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=c.a.coordinates(this.flatCoordinates,0,t,this.stride),this.changed()):this.setFlatCoordinates(a.a.XY,null)},y.prototype.setFlatCoordinates=function(t,e){this.setFlatCoordinatesInternal(t,e),this.changed()},e.a=y},function(t,e,i){"use strict";var n=i(0),r=i(5),o=i(1),a=i(19),s=i(8),l=i(25),u=i(22),c=i(28),h=i(44),d=i(6),f=function(t,e){u.a.call(this),this.setCoordinates(t,e)};n.a.inherits(f,u.a),f.prototype.appendPoint=function(t){this.flatCoordinates?r.a.extend(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()},f.prototype.clone=function(){var t=new f(null);return t.setFlatCoordinates(this.layout,this.flatCoordinates.slice()),t},f.prototype.closestPointXY=function(t,e,i,n){if(n<o.a.closestSquaredDistanceXY(this.getExtent(),t,e))return n;var r,a,s,l=this.flatCoordinates,u=this.stride;for(r=0,a=l.length;r<a;r+=u){var c=d.a.squaredDistance(t,e,l[r],l[r+1]);if(c<n){for(n=c,s=0;s<u;++s)i[s]=l[r+s];i.length=u}}return n},f.prototype.getCoordinates=function(){return h.a.coordinates(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},f.prototype.getPoint=function(t){var e=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;if(t<0||e<=t)return null;var i=new l.default(null);return i.setFlatCoordinates(this.layout,this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride)),i},f.prototype.getPoints=function(){var t,e,i=this.flatCoordinates,n=this.layout,r=this.stride,o=[];for(t=0,e=i.length;t<e;t+=r){var a=new l.default(null);a.setFlatCoordinates(n,i.slice(t,t+r)),o.push(a)}return o},f.prototype.getType=function(){return s.a.MULTI_POINT},f.prototype.intersectsExtent=function(t){var e,i,n,r,a=this.flatCoordinates,s=this.stride;for(e=0,i=a.length;e<i;e+=s)if(n=a[e],r=a[e+1],o.a.containsXY(t,n,r))return!0;return!1},f.prototype.setCoordinates=function(t,e){t?(this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=c.a.coordinates(this.flatCoordinates,0,t,this.stride),this.changed()):this.setFlatCoordinates(a.a.XY,null)},f.prototype.setFlatCoordinates=function(t,e){this.setFlatCoordinatesInternal(t,e),this.changed()},e.a=f},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.LAYER_VERSION_KEY="bnd:layer-version",r=e.SOURCE_VERSION_KEY="bnd:source-version",o=e.TITLE_KEY="bnd:title",a=e.TIME_KEY="bnd:time",s=e.TIME_START_KEY="bnd:start-time",l=e.TIME_END_KEY="bnd:end-time",u=e.DATA_VERSION_KEY="bnd:data-version",c=e.GROUPS_KEY="mapbox:groups",h=e.GROUP_KEY="mapbox:group",d=(e.LAYERLIST_HIDE_KEY="bnd:hide-layerlist",e.QUERYABLE_KEY="bnd:queryable",e.QUERY_ENDPOINT_KEY="bnd:query-endpoint",e.MIN_ZOOM_KEY="bnd:minzoom",e.MAX_ZOOM_KEY="bnd:maxzoom",e.DEFAULT_ZOOM={MIN:0,MAX:22}),f=e.INTERACTIONS={modify:"Modify",select:"Select",point:"Point",line:"LineString",polygon:"Polygon",box:"Box",measure_point:"measure:Point",measure_line:"measure:LineString",measure_polygon:"measure:Polygon"};f.drawing=[f.point,f.line,f.polygon,f.box],f.measuring=[f.measure_point,f.measure_line,f.measure_polygon],e.default={LAYER_VERSION_KEY:n,SOURCE_VERSION_KEY:r,TITLE_KEY:o,TIME_KEY:a,GROUP_KEY:h,GROUPS_KEY:c,TIME_START_KEY:s,TIME_END_KEY:l,DATA_VERSION_KEY:u,INTERACTIONS:f,DEFAULT_ZOOM:d}},function(t,e,i){"use strict";function n(t){return function(){return t}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(235),r=i(131),o=i(242);i.d(e,"Provider",function(){return n.b}),i.d(e,"createProvider",function(){return n.a}),i.d(e,"connectAdvanced",function(){return r.a}),i.d(e,"connect",function(){return o.a})},function(t,e,i){"use strict";var n=i(0),r=function(){};r.prototype.disposed_=!1,r.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())},r.prototype.disposeInternal=n.a.nullFunction,e.a=r},function(t,e,i){"use strict";var n=i(0),r=i(16),o=i(1),a=i(12),s=i(26),l=i(11),u=i(27),c=i(10),h=function(){r.a.call(this),this.extent_=o.a.createEmpty(),this.extentRevision_=-1,this.simplifiedGeometryCache={},this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.tmpTransform_=c.a.create()};n.a.inherits(h,r.a),h.prototype.clone=function(){},h.prototype.closestPointXY=function(t,e,i,n){},h.prototype.getClosestPoint=function(t,e){var i=e||[NaN,NaN];return this.closestPointXY(t[0],t[1],i,1/0),i},h.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},h.prototype.computeExtent=function(t){},h.prototype.containsXY=a.a.FALSE,h.prototype.getExtent=function(t){return this.extentRevision_!=this.getRevision()&&(this.extent_=this.computeExtent(this.extent_),this.extentRevision_=this.getRevision()),o.a.returnOrUpdate(this.extent_,t)},h.prototype.rotate=function(t,e){},h.prototype.scale=function(t,e,i){},h.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},h.prototype.getSimplifiedGeometry=function(t){},h.prototype.getType=function(){},h.prototype.applyTransform=function(t){},h.prototype.intersectsExtent=function(t){},h.prototype.translate=function(t,e){},h.prototype.transform=function(t,e){var i=this.tmpTransform_;t=l.default.get(t);var n=t.getUnits()==u.a.TILE_PIXELS?function(n,r,a){var u=t.getExtent(),h=t.getWorldExtent(),d=o.a.getHeight(h)/o.a.getHeight(u);return c.a.compose(i,h[0],h[3],d,-d,0,0,0),s.a.transform2D(n,0,n.length,a,i,r),l.default.getTransform(t,e)(n,r,a)}:l.default.getTransform(t,e);return this.applyTransform(n),this},e.a=h},function(t,e,i){"use strict";var n={PROPERTYCHANGE:"propertychange"};e.a=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(3),o=i(40),a=i(4),s=function(){o.a.call(this),this.revision_=0};n.a.inherits(s,o.a),s.unByKey=function(t){if(Array.isArray(t))for(var e=0,i=t.length;e<i;++e)r.a.unlistenByKey(t[e]);else r.a.unlistenByKey(t)},s.prototype.changed=function(){++this.revision_,this.dispatchEvent(a.a.CHANGE)},s.prototype.dispatchEvent,s.prototype.getRevision=function(){return this.revision_},s.prototype.on=function(t,e,i){if(Array.isArray(t)){for(var n=t.length,o=new Array(n),a=0;a<n;++a)o[a]=r.a.listen(this,t[a],e,i);return o}return r.a.listen(this,t,e,i)},s.prototype.once=function(t,e,i){if(Array.isArray(t)){for(var n=t.length,o=new Array(n),a=0;a<n;++a)o[a]=r.a.listenOnce(this,t[a],e,i);return o}return r.a.listenOnce(this,t,e,i)},s.prototype.un=function(t,e,i){if(Array.isArray(t))for(var n=0,o=t.length;n<o;++n)r.a.unlisten(this,t[n],e,i);else r.a.unlisten(this,t,e,i)},e.default=s},function(t,e,i){"use strict";var n=i(0),r=i(27),o=i(149),a=function(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 e=t.code;if(n.a.ENABLE_PROJ4JS){var i=o.a.get();if("function"==typeof i){var r=i.defs(e);void 0!==r&&(void 0!==r.axis&&void 0===t.axisOrientation&&(this.axisOrientation_=r.axis),void 0===t.metersPerUnit&&(this.metersPerUnit_=r.to_meter),void 0===t.units&&(this.units_=r.units))}}};a.prototype.canWrapX=function(){return this.canWrapX_},a.prototype.getCode=function(){return this.code_},a.prototype.getExtent=function(){return this.extent_},a.prototype.getUnits=function(){return this.units_},a.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||r.a.METERS_PER_UNIT[this.units_]},a.prototype.getWorldExtent=function(){return this.worldExtent_},a.prototype.getAxisOrientation=function(){return this.axisOrientation_},a.prototype.isGlobal=function(){return this.global_},a.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},a.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},a.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},a.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},a.prototype.setWorldExtent=function(t){this.worldExtent_=t},a.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},a.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},e.a=a},function(t,e,i){"use strict";var n=function(t,e,i,n){this.minX=t,this.maxX=e,this.minY=i,this.maxY=n};n.createOrUpdate=function(t,e,i,r,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=i,o.maxY=r,o):new n(t,e,i,r)},n.prototype.contains=function(t){return this.containsXY(t[1],t[2])},n.prototype.containsTileRange=function(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY},n.prototype.containsXY=function(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY},n.prototype.equals=function(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY},n.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)},n.prototype.getHeight=function(){return this.maxY-this.minY+1},n.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},n.prototype.getWidth=function(){return this.maxX-this.minX+1},n.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},e.a=n},function(t,e,i){"use strict";var n=function(t,e){this.dispatcher=t,this.mapping_=e};n.prototype.getEvents=function(){return Object.keys(this.mapping_)},n.prototype.getHandlerForEvent=function(t){return this.mapping_[t]},e.a=n},function(t,e,i){"use strict";var n={};n.linearRing=function(t,e,i,n){for(var r=0,o=t[i-n],a=t[i-n+1];e<i;e+=n){var s=t[e],l=t[e+1];r+=a*s-o*l,o=s,a=l}return r/2},n.linearRings=function(t,e,i,r){var o,a,s=0;for(o=0,a=i.length;o<a;++o){var l=i[o];s+=n.linearRing(t,e,l,r),e=l}return s},n.linearRingss=function(t,e,i,r){var o,a,s=0;for(o=0,a=i.length;o<a;++o){var l=i[o];s+=n.linearRings(t,e,l,r),e=l[l.length-1]}return s},e.a=n},function(t,e,i){"use strict";var n=i(1),r=i(60),o=i(157),a={};a.lineString=function(t,e,i,r,a){var s=n.a.extendFlatCoordinates(n.a.createEmpty(),t,e,i,r);return!!n.a.intersects(a,s)&&(!!n.a.containsExtent(a,s)||(s[0]>=a[0]&&s[2]<=a[2]||(s[1]>=a[1]&&s[3]<=a[3]||o.a.forEach(t,e,i,r,function(t,e){return n.a.intersectsSegment(a,t,e)}))))},a.lineStrings=function(t,e,i,n,r){var o,s;for(o=0,s=i.length;o<s;++o){if(a.lineString(t,e,i[o],n,r))return!0;e=i[o]}return!1},a.linearRing=function(t,e,i,n,o){return!!a.lineString(t,e,i,n,o)||(!!r.a.linearRingContainsXY(t,e,i,n,o[0],o[1])||(!!r.a.linearRingContainsXY(t,e,i,n,o[0],o[3])||(!!r.a.linearRingContainsXY(t,e,i,n,o[2],o[1])||!!r.a.linearRingContainsXY(t,e,i,n,o[2],o[3]))))},a.linearRings=function(t,e,i,n,o){if(!a.linearRing(t,e,i[0],n,o))return!1;if(1===i.length)return!0;var s,l;for(s=1,l=i.length;s<l;++s)if(r.a.linearRingContainsExtent(t,i[s-1],i[s],n,o))return!1;return!0},a.linearRingss=function(t,e,i,n,r){var o,s;for(o=0,s=i.length;o<s;++o){var l=i[o];if(a.linearRings(t,e,l,n,r))return!0;e=l[l.length-1]}return!1},e.a=a},function(t,e,i){"use strict";var n=i(0),r=i(14),o=function(t,e,i,n,o){r.a.call(this,t),this.vectorContext=e,this.frameState=i,this.context=n,this.glContext=o};n.a.inherits(o,r.a),e.a=o},function(t,e,i){"use strict";var n=function(){};n.prototype.drawCustom=function(t,e,i){},n.prototype.drawGeometry=function(t){},n.prototype.setStyle=function(t){},n.prototype.drawCircle=function(t,e){},n.prototype.drawFeature=function(t,e){},n.prototype.drawGeometryCollection=function(t,e){},n.prototype.drawLineString=function(t,e){},n.prototype.drawMultiLineString=function(t,e){},n.prototype.drawMultiPoint=function(t,e){},n.prototype.drawMultiPolygon=function(t,e){},n.prototype.drawPoint=function(t,e){},n.prototype.drawPolygon=function(t,e){},n.prototype.drawText=function(t,e){},n.prototype.setFillStrokeStyle=function(t,e){},n.prototype.setImageStyle=function(t,e){},n.prototype.setTextStyle=function(t,e){},e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(1),o=i(81),a=i(10),s=i(177),l=i(13),u=function(t,e){o.a.call(this),this.tolerance=t,this.maxExtent=e,this.origin=r.a.getCenter(e),this.projectionMatrix_=a.a.create(),this.offsetRotateMatrix_=a.a.create(),this.offsetScaleMatrix_=a.a.create(),this.tmpMat4_=s.a.create(),this.indices=[],this.indicesBuffer=null,this.startIndices=[],this.startIndicesFeature=[],this.vertices=[],this.verticesBuffer=null,this.lineStringReplay=void 0};n.a.inherits(u,o.a),u.prototype.getDeleteResourcesFunction=function(t){},u.prototype.finish=function(t){},u.prototype.setUpProgram=function(t,e,i,n){},u.prototype.shutDownProgram=function(t,e){},u.prototype.drawReplay=function(t,e,i,n){},u.prototype.drawHitDetectionReplayOneByOne=function(t,e,i,n,r){},u.prototype.drawHitDetectionReplay=function(t,e,i,n,r,o){return r?this.drawHitDetectionReplayOneByOne(t,e,i,n,o):this.drawHitDetectionReplayAll(t,e,i,n)},u.prototype.drawHitDetectionReplayAll=function(t,e,i,n){t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),this.drawReplay(t,e,i,!0);var r=n(null);return r||void 0},u.prototype.replay=function(t,e,i,n,r,o,u,c,h,d,f){var p,g,_,y,v,m,E,T,S=t.getGL();this.lineStringReplay&&(p=S.isEnabled(S.STENCIL_TEST),g=S.getParameter(S.STENCIL_FUNC),_=S.getParameter(S.STENCIL_VALUE_MASK),y=S.getParameter(S.STENCIL_REF),v=S.getParameter(S.STENCIL_WRITEMASK),m=S.getParameter(S.STENCIL_FAIL),E=S.getParameter(S.STENCIL_PASS_DEPTH_PASS),T=S.getParameter(S.STENCIL_PASS_DEPTH_FAIL),S.enable(S.STENCIL_TEST),S.clear(S.STENCIL_BUFFER_BIT),S.stencilMask(255),S.stencilFunc(S.ALWAYS,1,255),S.stencilOp(S.KEEP,S.KEEP,S.REPLACE),this.lineStringReplay.replay(t,e,i,n,r,o,u,c,h,d,f),S.stencilMask(0),S.stencilFunc(S.NOTEQUAL,1,255)),t.bindBuffer(l.a.ARRAY_BUFFER,this.verticesBuffer),t.bindBuffer(l.a.ELEMENT_ARRAY_BUFFER,this.indicesBuffer);var x=this.setUpProgram(S,t,r,o),C=a.a.reset(this.projectionMatrix_);a.a.scale(C,2/(i*r[0]),2/(i*r[1])),a.a.rotate(C,-n),a.a.translate(C,-(e[0]-this.origin[0]),-(e[1]-this.origin[1]));var R=a.a.reset(this.offsetScaleMatrix_);a.a.scale(R,2/r[0],2/r[1]);var b=a.a.reset(this.offsetRotateMatrix_);0!==n&&a.a.rotate(b,-n),S.uniformMatrix4fv(x.u_projectionMatrix,!1,s.a.fromTransform(this.tmpMat4_,C)),S.uniformMatrix4fv(x.u_offsetScaleMatrix,!1,s.a.fromTransform(this.tmpMat4_,R)),S.uniformMatrix4fv(x.u_offsetRotateMatrix,!1,s.a.fromTransform(this.tmpMat4_,b)),S.uniform1f(x.u_opacity,u);var I;return void 0===h?this.drawReplay(S,t,c,!1):I=this.drawHitDetectionReplay(S,t,c,h,d,f),this.shutDownProgram(S,x),this.lineStringReplay&&(p||S.disable(S.STENCIL_TEST),S.clear(S.STENCIL_BUFFER_BIT),S.stencilFunc(g,y,_),S.stencilMask(v),S.stencilOp(m,T,E)),I},u.prototype.drawElements=function(t,e,i,n){var r=e.hasOESElementIndexUint?l.a.UNSIGNED_INT:l.a.UNSIGNED_SHORT,o=e.hasOESElementIndexUint?4:2,a=n-i,s=i*o;t.drawElements(l.a.TRIANGLES,a,r,s)},e.a=u},function(t,e,i){"use strict";var n={};n.defaultFont="10px sans-serif",n.defaultFillStyle=[0,0,0,1],n.defaultLineCap="round",n.defaultLineDash=[],n.defaultLineDashOffset=0,n.defaultLineJoin="round",n.defaultMiterLimit=10,n.defaultStrokeStyle=[0,0,0,1],n.defaultTextAlign=.5,n.defaultTextBaseline=.5,n.defaultLineWidth=1,n.triangleIsCounterClockwise=function(t,e,i,r,o,a){var s=(i-t)*(a-e)-(o-t)*(r-e);return s<=n.EPSILON&&s>=-n.EPSILON?void 0:s>0},n.EPSILON=Number.EPSILON||2.220446049250313e-16,e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(71),o=i(5),a=i(3),s=i(2),l=i(13),u=i(179),c=function(t,e){this.canvas_=t,this.gl_=e,this.bufferCache_={},this.shaderCache_={},this.programCache_={},this.currentProgram_=null,this.hitDetectionFramebuffer_=null,this.hitDetectionTexture_=null,this.hitDetectionRenderbuffer_=null,this.hasOESElementIndexUint=o.a.includes(n.a.WEBGL_EXTENSIONS,"OES_element_index_uint"),this.hasOESElementIndexUint&&e.getExtension("OES_element_index_uint"),a.a.listen(this.canvas_,u.a.LOST,this.handleWebGLContextLost,this),a.a.listen(this.canvas_,u.a.RESTORED,this.handleWebGLContextRestored,this)};n.a.inherits(c,r.a),c.prototype.bindBuffer=function(t,e){var i=this.getGL(),r=e.getArray(),o=String(n.a.getUid(e));if(o in this.bufferCache_){var a=this.bufferCache_[o];i.bindBuffer(t,a.buffer)}else{var s=i.createBuffer();i.bindBuffer(t,s);var u;t==l.a.ARRAY_BUFFER?u=new Float32Array(r):t==l.a.ELEMENT_ARRAY_BUFFER&&(u=this.hasOESElementIndexUint?new Uint32Array(r):new Uint16Array(r)),i.bufferData(t,u,e.getUsage()),this.bufferCache_[o]={buf:e,buffer:s}}},c.prototype.deleteBuffer=function(t){var e=this.getGL(),i=String(n.a.getUid(t)),r=this.bufferCache_[i];e.isContextLost()||e.deleteBuffer(r.buffer),delete this.bufferCache_[i]},c.prototype.disposeInternal=function(){a.a.unlistenAll(this.canvas_);var t=this.getGL();if(!t.isContextLost()){var e;for(e in this.bufferCache_)t.deleteBuffer(this.bufferCache_[e].buffer);for(e in this.programCache_)t.deleteProgram(this.programCache_[e]);for(e in this.shaderCache_)t.deleteShader(this.shaderCache_[e]);t.deleteFramebuffer(this.hitDetectionFramebuffer_),t.deleteRenderbuffer(this.hitDetectionRenderbuffer_),t.deleteTexture(this.hitDetectionTexture_)}},c.prototype.getCanvas=function(){return this.canvas_},c.prototype.getGL=function(){return this.gl_},c.prototype.getHitDetectionFramebuffer=function(){return this.hitDetectionFramebuffer_||this.initHitDetectionFramebuffer_(),this.hitDetectionFramebuffer_},c.prototype.getShader=function(t){var e=String(n.a.getUid(t));if(e in this.shaderCache_)return this.shaderCache_[e];var i=this.getGL(),r=i.createShader(t.getType());return i.shaderSource(r,t.getSource()),i.compileShader(r),this.shaderCache_[e]=r,r},c.prototype.getProgram=function(t,e){var i=n.a.getUid(t)+"/"+n.a.getUid(e);if(i in this.programCache_)return this.programCache_[i];var r=this.getGL(),o=r.createProgram();return r.attachShader(o,this.getShader(t)),r.attachShader(o,this.getShader(e)),r.linkProgram(o),this.programCache_[i]=o,o},c.prototype.handleWebGLContextLost=function(){s.a.clear(this.bufferCache_),s.a.clear(this.shaderCache_),s.a.clear(this.programCache_),this.currentProgram_=null,this.hitDetectionFramebuffer_=null,this.hitDetectionTexture_=null,this.hitDetectionRenderbuffer_=null},c.prototype.handleWebGLContextRestored=function(){},c.prototype.initHitDetectionFramebuffer_=function(){var t=this.gl_,e=t.createFramebuffer();t.bindFramebuffer(t.FRAMEBUFFER,e);var i=c.createEmptyTexture(t,1,1),n=t.createRenderbuffer();t.bindRenderbuffer(t.RENDERBUFFER,n),t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_COMPONENT16,1,1),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,i,0),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,n),t.bindTexture(t.TEXTURE_2D,null),t.bindRenderbuffer(t.RENDERBUFFER,null),t.bindFramebuffer(t.FRAMEBUFFER,null),this.hitDetectionFramebuffer_=e,this.hitDetectionTexture_=i,this.hitDetectionRenderbuffer_=n},c.prototype.useProgram=function(t){return t!=this.currentProgram_&&(this.getGL().useProgram(t),this.currentProgram_=t,!0)},c.createTexture_=function(t,e,i){var n=t.createTexture();return t.bindTexture(t.TEXTURE_2D,n),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),void 0!==e&&t.texParameteri(l.a.TEXTURE_2D,l.a.TEXTURE_WRAP_S,e),void 0!==i&&t.texParameteri(l.a.TEXTURE_2D,l.a.TEXTURE_WRAP_T,i),n},c.createEmptyTexture=function(t,e,i,n,r){var o=c.createTexture_(t,n,r);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e,i,0,t.RGBA,t.UNSIGNED_BYTE,null),o},c.createTexture=function(t,e,i,n){var r=c.createTexture_(t,i,n);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),r},e.a=c},function(t,e,i){"use strict";var n=i(72),r=i(2),o=i(11),a=function(){this.defaultDataProjection=null,this.defaultFeatureProjection=null};a.prototype.getReadOptions=function(t,e){var i;return e&&(i={dataProjection:e.dataProjection?e.dataProjection:this.readProjection(t),featureProjection:e.featureProjection}),this.adaptOptions(i)},a.prototype.adaptOptions=function(t){return r.a.assign({dataProjection:this.defaultDataProjection,featureProjection:this.defaultFeatureProjection},t)},a.prototype.getLastExtent=function(){return null},a.prototype.getType=function(){},a.prototype.readFeature=function(t,e){},a.prototype.readFeatures=function(t,e){},a.prototype.readGeometry=function(t,e){},a.prototype.readProjection=function(t){},a.prototype.writeFeature=function(t,e){},a.prototype.writeFeatures=function(t,e){},a.prototype.writeGeometry=function(t,e){},a.transformWithOptions=function(t,e,i){var r,a=i?o.default.get(i.featureProjection):null,s=i?o.default.get(i.dataProjection):null;if(r=a&&s&&!o.default.equivalent(a,s)?t instanceof n.a?(e?t.clone():t).transform(e?a:s,e?s:a):o.default.transformExtent(t,s,a):t,e&&i&&void 0!==i.decimals){var l=Math.pow(10,i.decimals),u=function(t){for(var e=0,i=t.length;e<i;++e)t[e]=Math.round(t[e]*l)/l;return t};r===t&&(r=r.clone()),r.applyTransform(u)}return r},e.a=a},function(t,e,i){"use strict";var n=i(0),r=i(5),o=i(1),a=i(19),s=i(8),l=i(66),u=i(22),c=i(59),h=i(28),d=i(44),f=i(115),p=i(79),g=i(50),_=function(t,e){u.a.call(this),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.setCoordinates(t,e)};n.a.inherits(_,u.a),_.prototype.appendLineString=function(t){this.flatCoordinates?r.a.extend(this.flatCoordinates,t.getFlatCoordinates().slice()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},_.prototype.clone=function(){var t=new _(null);return t.setFlatCoordinates(this.layout,this.flatCoordinates.slice(),this.ends_.slice()),t},_.prototype.closestPointXY=function(t,e,i,n){return n<o.a.closestSquaredDistanceXY(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(c.a.getsMaxSquaredDelta(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),c.a.getsClosestPoint(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,t,e,i,n))},_.prototype.getCoordinateAtM=function(t,e,i){if(this.layout!=a.a.XYM&&this.layout!=a.a.XYZM||0===this.flatCoordinates.length)return null;var n=void 0!==e&&e,r=void 0!==i&&i;return f.a.lineStringsCoordinateAtM(this.flatCoordinates,0,this.ends_,this.stride,t,n,r)},_.prototype.getCoordinates=function(){return d.a.coordinatess(this.flatCoordinates,0,this.ends_,this.stride)},_.prototype.getEnds=function(){return this.ends_},_.prototype.getLineString=function(t){if(t<0||this.ends_.length<=t)return null;var e=new l.a(null);return e.setFlatCoordinates(this.layout,this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t])),e},_.prototype.getLineStrings=function(){var t,e,i=this.flatCoordinates,n=this.ends_,r=this.layout,o=[],a=0;for(t=0,e=n.length;t<e;++t){var s=n[t],u=new l.a(null);u.setFlatCoordinates(r,i.slice(a,s)),o.push(u),a=s}return o},_.prototype.getFlatMidpoints=function(){var t,e,i=[],n=this.flatCoordinates,o=0,a=this.ends_,s=this.stride;for(t=0,e=a.length;t<e;++t){var l=a[t],u=f.a.lineString(n,o,l,s,.5);r.a.extend(i,u),o=l}return i},_.prototype.getSimplifiedGeometryInternal=function(t){var e=[],i=[];e.length=g.a.douglasPeuckers(this.flatCoordinates,0,this.ends_,this.stride,t,e,0,i);var n=new _(null);return n.setFlatCoordinates(a.a.XY,e,i),n},_.prototype.getType=function(){return s.a.MULTI_LINE_STRING},_.prototype.intersectsExtent=function(t){return p.a.lineStrings(this.flatCoordinates,0,this.ends_,this.stride,t)},_.prototype.setCoordinates=function(t,e){if(t){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var i=h.a.coordinatess(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===i.length?0:i[i.length-1],this.changed()}else this.setFlatCoordinates(a.a.XY,null,this.ends_)},_.prototype.setFlatCoordinates=function(t,e,i){this.setFlatCoordinatesInternal(t,e),this.ends_=i,this.changed()},_.prototype.setLineStrings=function(t){var e,i,n=this.getLayout(),o=[],a=[];for(e=0,i=t.length;e<i;++e){var s=t[e];0===e&&(n=s.getLayout()),r.a.extend(o,s.getFlatCoordinates()),a.push(o.length)}this.setFlatCoordinates(n,o,a)},e.a=_},function(t,e,i){"use strict";var n=i(0),r=i(5),o=i(1),a=i(19),s=i(8),l=i(67),u=i(43),c=i(22),h=i(78),d=i(182),f=i(59),p=i(60),g=i(28),_=i(44),y=i(104),v=i(79),m=i(51),E=i(50),T=function(t,e){c.a.call(this),this.endss_=[],this.flatInteriorPointsRevision_=-1,this.flatInteriorPoints_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,this.setCoordinates(t,e)};n.a.inherits(T,c.a),T.prototype.appendPolygon=function(t){var e;if(this.flatCoordinates){var i=this.flatCoordinates.length;r.a.extend(this.flatCoordinates,t.getFlatCoordinates()),e=t.getEnds().slice();var n,o;for(n=0,o=e.length;n<o;++n)e[n]+=i}else this.flatCoordinates=t.getFlatCoordinates().slice(),e=t.getEnds().slice(),this.endss_.push();this.endss_.push(e),this.changed()},T.prototype.clone=function(){for(var t=new T(null),e=this.endss_.length,i=new Array(e),n=0;n<e;++n)i[n]=this.endss_[n].slice();return t.setFlatCoordinates(this.layout,this.flatCoordinates.slice(),i),t},T.prototype.closestPointXY=function(t,e,i,n){return n<o.a.closestSquaredDistanceXY(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(f.a.getssMaxSquaredDelta(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),f.a.getssClosestPoint(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,t,e,i,n))},T.prototype.containsXY=function(t,e){return p.a.linearRingssContainsXY(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t,e)},T.prototype.getArea=function(){return h.a.linearRingss(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},T.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),m.a.orientLinearRingss(e,0,this.endss_,this.stride,t)):e=this.flatCoordinates,_.a.coordinatesss(e,0,this.endss_,this.stride)},T.prototype.getEndss=function(){return this.endss_},T.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var t=d.a.linearRingss(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=y.a.linearRingss(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},T.prototype.getInteriorPoints=function(){var t=new l.a(null);return t.setFlatCoordinates(a.a.XYM,this.getFlatInteriorPoints().slice()),t},T.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;m.a.linearRingssAreOriented(t,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=m.a.orientLinearRingss(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},T.prototype.getSimplifiedGeometryInternal=function(t){var e=[],i=[];e.length=E.a.quantizess(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),e,0,i);var n=new T(null);return n.setFlatCoordinates(a.a.XY,e,i),n},T.prototype.getPolygon=function(t){if(t<0||this.endss_.length<=t)return null;var e;if(0===t)e=0;else{var i=this.endss_[t-1];e=i[i.length-1]}var n=this.endss_[t].slice(),r=n[n.length-1];if(0!==e){var o,a;for(o=0,a=n.length;o<a;++o)n[o]-=e}var s=new u.a(null);return s.setFlatCoordinates(this.layout,this.flatCoordinates.slice(e,r),n),s},T.prototype.getPolygons=function(){var t,e,i,n,r=this.layout,o=this.flatCoordinates,a=this.endss_,s=[],l=0;for(t=0,e=a.length;t<e;++t){var c=a[t].slice(),h=c[c.length-1];if(0!==l)for(i=0,n=c.length;i<n;++i)c[i]-=l;var d=new u.a(null);d.setFlatCoordinates(r,o.slice(l,h),c),s.push(d),l=h}return s},T.prototype.getType=function(){return s.a.MULTI_POLYGON},T.prototype.intersectsExtent=function(t){return v.a.linearRingss(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t)},T.prototype.setCoordinates=function(t,e){if(t){this.setLayout(e,t,3),this.flatCoordinates||(this.flatCoordinates=[]);var i=g.a.coordinatesss(this.flatCoordinates,0,t,this.stride,this.endss_);if(0===i.length)this.flatCoordinates.length=0;else{var n=i[i.length-1];this.flatCoordinates.length=0===n.length?0:n[n.length-1]}this.changed()}else this.setFlatCoordinates(a.a.XY,null,this.endss_)},T.prototype.setFlatCoordinates=function(t,e,i){this.setFlatCoordinatesInternal(t,e),this.endss_=i,this.changed()},T.prototype.setPolygons=function(t){var e,i,n,o=this.getLayout(),a=[],s=[];for(e=0,i=t.length;e<i;++e){var l=t[e];0===e&&(o=l.getLayout());var u=a.length;n=l.getEnds();var c,h;for(c=0,h=n.length;c<h;++c)n[c]+=u;r.a.extend(a,l.getFlatCoordinates()),s.push(n)}this.setFlatCoordinates(o,a,s)},e.a=T},function(t,e,i){"use strict";var n=i(0),r=i(15),o=i(36),a=i(40),s=i(4),l=function(t,e,i){a.a.call(this);var n=i||{};this.tileCoord=t,this.state=e,this.interimTile=null,this.key="",this.transition_=void 0===n.transition?250:n.transition,this.transitionStarts_={}};n.a.inherits(l,a.a),l.prototype.changed=function(){this.dispatchEvent(s.a.CHANGE)},l.prototype.getKey=function(){return this.key+"/"+this.tileCoord},l.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(t.getState()==r.a.LOADED)return t;t=t.interimTile}while(t);return this},l.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,e=this;do{if(t.getState()==r.a.LOADED){t.interimTile=null;break}t.getState()==r.a.LOADING?e=t:t.getState()==r.a.IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}},l.prototype.getTileCoord=function(){return this.tileCoord},l.prototype.getState=function(){return this.state},l.prototype.setState=function(t){this.state=t,this.changed()},l.prototype.load=function(){},l.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var i=this.transitionStarts_[t];if(i){if(-1===i)return 1}else i=e,this.transitionStarts_[t]=i;var n=e-i+1e3/60;return n>=this.transition_?1:o.a.easeIn(n/this.transition_)},l.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},l.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e.a=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.MAP={SET_VIEW:"MAP_SET_VIEW",SET_ZOOM:"MAP_SET_ZOOM",FIT_EXTENT:"MAP_FIT_EXTENT",ZOOM_IN:"MAP_ZOOM_IN",ZOOM_OUT:"MAP_ZOOM_OUT",ADD_LAYER:"MAP_ADD_LAYER",SET_NAME:"MAP_SET_NAME",SET_BEARING:"MAP_SET_BEARING",ADD_SOURCE:"MAP_ADD_SOURCE",REMOVE_LAYER:"MAP_REMOVE_LAYER",REMOVE_SOURCE:"MAP_REMOVE_SOURCE",UPDATE_LAYER:"MAP_UPDATE_LAYER",CLEAR_LAYER_FILTER:"MAP_CLEAR_LAYER_FILTER",ADD_FEATURES:"MAP_ADD_FEATURES",REMOVE_FEATURES:"MAP_REMOVE_FEATURES",SET_LAYER_METADATA:"MAP_SET_LAYER_METADATA",SET_LAYER_VISIBILITY:"MAP_SET_LAYER_VISIBILITY",SET_LAYER_IN_GROUP_VISIBLE:"MAP_SET_LAYER_IN_GROUP_VISIBLE",RECEIVE_CONTEXT:"MAP_RECEIVE_CONTEXT",ORDER_LAYER:"MAP_ORDER_LAYER",CLUSTER_POINTS:"MAP_CLUSTER_POINTS",SET_CLUSTER_RADIUS:"MAP_SET_CLUSTER_RADIUS",SET_SPRITE:"MAP_SET_SPRITE",SET_GLYPHS:"MAP_SET_GLYPHS",UPDATE_SOURCE:"MAP_UPDATE_SOURCE",UPDATE_METADATA:"MAP_UPDATE_METADATA",MOVE_GROUP:"MAP_MOVE_GROUP",ADD_GROUP:"MAP_ADD_GROUP",REMOVE_GROUP:"MAP_REMOVE_GROUP"},r=e.DRAWING={START:"DRAWING_START",END:"DRAWING_END",SET_MEASURE_FEATURE:"DRAWING_SET_MEASURE_FEATURE",CLEAR_MEASURE_FEATURE:"DRAWING_CLEAR_MEASURE_FEATURE",FINALIZE_MEASURE_FEATURE:"DRAWING_FINALIZE_MEASURE_FEATURE",SET_EDIT_STYLE:"DRAWING_SET_EDIT_STYLE",SET_SELECT_STYLE:"DRAWING_SET_SELECT_STYLE",SET_MODIFY_STYLE:"DRAWING_SET_MODIFY_STYLE"},o=e.PRINT={EXPORT_IMAGE:"PRINT_EXPORT_IMAGE",RECEIVE_IMAGE:"PRINT_RECEIVE_IMAGE"},a=e.WFS={INSERT:"WFS_INSERT",UPDATE:"WFS_UPDATE",DELETE:"WFS_DELETE",ADD_SOURCE:"WFS_ADD_SOURCE",REMOVE_SOURCE:" WFS_REMOVE_SOURCE",FINISHED:"WFS_FINISHED"},s=e.MAPBOX={CONFIGURE:"MAPBOX_CONFIGURE"},l=e.ESRI={ADD_SOURCE:"ESRI_ADD_SOURCE",REMOVE_SOURCE:"ESRI_REMOVE_SOURCE"},u=e.MAPINFO={SET_SIZE:"MAPINFO.SET_SIZE",SET_MOUSE_POSITION:"MAPINFO.SET_MOUSE_POSITION",SET_EXTENT:"MAPINFO.SET_EXTENT",SET_RESOLUTION:"MAPINFO.SET_RESOLUTION",SET_PROJECTION:"MAPINFO.SET_PROJECTION"};e.default={MAP:n,DRAWING:r,PRINT:o,WFS:a,MAPBOX:s,ESRI:l,MAPINFO:u}},function(t,e){var i,n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"===typeof window?"undefined":n(window))&&(i=window)}t.exports=i},function(t,e,i){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var i,s,l=n(t),u=1;u<arguments.length;u++){i=Object(arguments[u]);for(var c in i)o.call(i,c)&&(l[c]=i[c]);if(r){s=r(i);for(var h=0;h<s.length;h++)a.call(i,s[h])&&(l[s[h]]=i[s[h]])}}return l}},function(t,e,i){"use strict";function n(t){if(!Object(a.a)(t)||Object(r.a)(t)!=s)return!1;var e=Object(o.a)(t);if(null===e)return!0;var i=h.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&c.call(i)==d}var r=i(220),o=i(225),a=i(227),s="[object Object]",l=Function.prototype,u=Object.prototype,c=l.toString,h=u.hasOwnProperty,d=c.call(Object);e.a=n},function(t,e,i){"function"===typeof Symbol&&Symbol.iterator;t.exports=i(236)()},function(t,e,i){"use strict";function n(t){"undefined"!==typeof console&&"function"===typeof console.error&&console.error(t);try{throw new Error(t)}catch(t){}}e.a=n},function(t,e){function i(t){return new Function("f","var p = (f && f.properties || {}); return "+n(t))}function n(t){if(!t)return"true";var e=t[0];return t.length<=1?"any"===e?"false":"true":"("+("=="===e?o(t[1],t[2],"===",!1):"!="===e?o(t[1],t[2],"!==",!1):"<"===e||">"===e||"<="===e||">="===e?o(t[1],t[2],e,!0):"any"===e?a(t.slice(1),"||"):"all"===e?a(t.slice(1),"&&"):"none"===e?u(a(t.slice(1),"||")):"in"===e?s(t[1],t.slice(2)):"!in"===e?u(s(t[1],t.slice(2))):"has"===e?l(t[1]):"!has"===e?u(l(t[1])):"true")+")"}function r(t){return"$type"===t?"f.type":"$id"===t?"f.id":"p["+JSON.stringify(t)+"]"}function o(t,e,i,n){var o=r(t),a="$type"===t?h.indexOf(e):JSON.stringify(e);return(n?"typeof "+o+"=== typeof "+a+"&&":"")+o+i+a}function a(t,e){return t.map(n).join(e)}function s(t,e){"$type"===t&&(e=e.map(function(t){return h.indexOf(t)}));var i=JSON.stringify(e.sort(c)),n=r(t);return e.length<=200?i+".indexOf("+n+") !== -1":"function(v, a, i, j) {while (i <= j) { var m = (i + j) >> 1;    if (a[m] === v) return true; if (a[m] > v) j = m - 1; else i = m + 1;}return false; }("+n+", "+i+",0,"+(e.length-1)+")"}function l(t){return"$id"===t?'"id" in f':JSON.stringify(t)+" in p"}function u(t){return"!("+t+")"}function c(t,e){return t<e?-1:t>e?1:0}t.exports=i;var h=["Unknown","Point","LineString","Polygon"]},function(t,e,i){"use strict";var n=i(0),r=i(7),o=i(40),a=i(4),s=function(t){o.a.call(this),this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null};n.a.inherits(s,o.a),s.prototype.canExpireCache=function(){return this.getCount()>this.highWaterMark},s.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null,this.dispatchEvent(a.a.CLEAR)},s.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},s.prototype.forEach=function(t,e){for(var i=this.oldest_;i;)t.call(e,i.value_,i.key_,this),i=i.newer},s.prototype.get=function(t){var e=this.entries_[t];return r.a.assert(void 0!==e,15),e===this.newest_?e.value_:(e===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(e.newer.older=e.older,e.older.newer=e.newer),e.newer=null,e.older=this.newest_,this.newest_.newer=e,this.newest_=e,e.value_)},s.prototype.remove=function(t){var e=this.entries_[t];return r.a.assert(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_},s.prototype.getCount=function(){return this.count_},s.prototype.getKeys=function(){var t,e=new Array(this.count_),i=0;for(t=this.newest_;t;t=t.older)e[i++]=t.key_;return e},s.prototype.getValues=function(){var t,e=new Array(this.count_),i=0;for(t=this.newest_;t;t=t.older)e[i++]=t.value_;return e},s.prototype.peekLast=function(){return this.oldest_.value_},s.prototype.peekLastKey=function(){return this.oldest_.key_},s.prototype.peekFirstKey=function(){return this.newest_.key_},s.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_},s.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},s.prototype.set=function(t,e){r.a.assert(!(t in this.entries_),16);var i={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=i:this.oldest_=i,this.newest_=i,this.entries_[t]=i,++this.count_},s.prototype.prune=function(){for(;this.canExpireCache();)this.pop()},e.a=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(32),o=function(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.checksum_=void 0};o.prototype.clone=function(){var t=this.getColor();return new o({color:t&&t.slice?t.slice():t||void 0})},o.prototype.getColor=function(){return this.color_},o.prototype.setColor=function(t){this.color_=t,this.checksum_=void 0},o.prototype.getChecksum=function(){return void 0===this.checksum_&&(this.color_ instanceof CanvasPattern||this.color_ instanceof CanvasGradient?this.checksum_=n.a.getUid(this.color_).toString():this.checksum_="f"+(this.color_?r.a.asString(this.color_):"-")),this.checksum_},e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=function(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width,this.checksum_=void 0};r.prototype.clone=function(){var t=this.getColor();return new r({color:t&&t.slice?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,this.checksum_=void 0},r.prototype.setLineCap=function(t){this.lineCap_=t,this.checksum_=void 0},r.prototype.setLineDash=function(t){this.lineDash_=t,this.checksum_=void 0},r.prototype.setLineDashOffset=function(t){this.lineDashOffset_=t,this.checksum_=void 0},r.prototype.setLineJoin=function(t){this.lineJoin_=t,this.checksum_=void 0},r.prototype.setMiterLimit=function(t){this.miterLimit_=t,this.checksum_=void 0},r.prototype.setWidth=function(t){this.width_=t,this.checksum_=void 0},r.prototype.getChecksum=function(){return void 0===this.checksum_&&(this.checksum_="s",this.color_?"string"===typeof this.color_?this.checksum_+=this.color_:this.checksum_+=n.a.getUid(this.color_).toString():this.checksum_+="-",this.checksum_+=","+(void 0!==this.lineCap_?this.lineCap_.toString():"-")+","+(this.lineDash_?this.lineDash_.toString():"-")+","+(void 0!==this.lineDashOffset_?this.lineDashOffset_:"-")+","+(void 0!==this.lineJoin_?this.lineJoin_:"-")+","+(void 0!==this.miterLimit_?this.miterLimit_.toString():"-")+","+(void 0!==this.width_?this.width_.toString():"-")),this.checksum_},e.default=r},function(t,e,i){"use strict";var n=i(0),r=i(151),o=function(t,e,i,n,o){r.a.call(this,t,e,i.originalEvent,n,o),this.pointerEvent=i};n.a.inherits(o,r.a),e.a=o},function(t,e,i){"use strict";var n={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend"};e.a=n},function(t,e,i){"use strict";var n=i(7),r=i(2),o=function(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}};o.DROP=1/0,o.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,r.a.clear(this.queuedElements_)},o.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,i=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var n=this.keyFunction_(i);return delete this.queuedElements_[n],i},o.prototype.enqueue=function(t){n.a.assert(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=o.DROP&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},o.prototype.getCount=function(){return this.elements_.length},o.prototype.getLeftChildIndex_=function(t){return 2*t+1},o.prototype.getRightChildIndex_=function(t){return 2*t+2},o.prototype.getParentIndex_=function(t){return t-1>>1},o.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},o.prototype.isEmpty=function(){return 0===this.elements_.length},o.prototype.isKeyQueued=function(t){return t in this.queuedElements_},o.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},o.prototype.siftUp_=function(t){for(var e=this.elements_,i=this.priorities_,n=e.length,r=e[t],o=i[t],a=t;t<n>>1;){var s=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),u=l<n&&i[l]<i[s]?l:s;e[t]=e[u],i[t]=i[u],t=u}e[t]=r,i[t]=o,this.siftDown_(a,t)},o.prototype.siftDown_=function(t,e){for(var i=this.elements_,n=this.priorities_,r=i[e],o=n[e];e>t;){var a=this.getParentIndex_(e);if(!(n[a]>o))break;i[e]=i[a],n[e]=n[a],e=a}i[e]=r,n[e]=o},o.prototype.reprioritize=function(){var t,e,i,n=this.priorityFunction_,r=this.elements_,a=this.priorities_,s=0,l=r.length;for(e=0;e<l;++e)t=r[e],i=n(t),i==o.DROP?delete this.queuedElements_[this.keyFunction_(t)]:(a[s]=i,r[s++]=t);r.length=s,a.length=s,this.heapify_()},e.a=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(281),o=i(16),a=i(282),s=i(103),l=i(17),u=i(283),c=i(5),h=i(7),d=i(35),f=i(36),p=i(1),g=i(8),_=i(43),y=i(22),v=i(6),m=i(2),E=i(11),T=i(27),S=function(t){o.a.call(this);var e=m.a.assign({},t);this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.updateAnimations_=this.updateAnimations_.bind(this),this.projection_=E.default.createProjection(e.projection,"EPSG:3857"),this.applyOptions_(e)};n.a.inherits(S,o.a),S.prototype.applyOptions_=function(t){var e={};e[u.a.CENTER]=void 0!==t.center?t.center:null;var i=S.createResolutionConstraint_(t);this.maxResolution_=i.maxResolution,this.minResolution_=i.minResolution,this.zoomFactor_=i.zoomFactor,this.resolutions_=t.resolutions,this.minZoom_=i.minZoom;var n=S.createCenterConstraint_(t),r=i.constraint,o=S.createRotationConstraint_(t);this.constraints_={center:n,resolution:r,rotation:o},void 0!==t.resolution?e[u.a.RESOLUTION]=t.resolution:void 0!==t.zoom&&(e[u.a.RESOLUTION]=this.constrainResolution(this.maxResolution_,t.zoom-this.minZoom_),this.resolutions_&&(e[u.a.RESOLUTION]=v.a.clamp(Number(this.getResolution()||e[u.a.RESOLUTION]),this.minResolution_,this.maxResolution_))),e[u.a.ROTATION]=void 0!==t.rotation?t.rotation:0,this.setProperties(e),this.options_=t},S.prototype.getUpdatedOptions_=function(t){var e=m.a.assign({},this.options_);return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenter(),e.rotation=this.getRotation(),m.a.assign({},e,t)},S.prototype.animate=function(t){var e,i=arguments.length;if(i>1&&"function"===typeof arguments[i-1]&&(e=arguments[i-1],--i),!this.isDef()){var n=arguments[i-1];return n.center&&this.setCenter(n.center),void 0!==n.zoom&&this.setZoom(n.zoom),void 0!==n.rotation&&this.setRotation(n.rotation),void(e&&e(!0))}for(var r=Date.now(),o=this.getCenter().slice(),a=this.getResolution(),s=this.getRotation(),u=[],c=0;c<i;++c){var h=arguments[c],d={start:r,complete:!1,anchor:h.anchor,duration:void 0!==h.duration?h.duration:1e3,easing:h.easing||f.a.inAndOut};if(h.center&&(d.sourceCenter=o,d.targetCenter=h.center,o=d.targetCenter),void 0!==h.zoom?(d.sourceResolution=a,d.targetResolution=this.constrainResolution(this.maxResolution_,h.zoom-this.minZoom_,0),a=d.targetResolution):h.resolution&&(d.sourceResolution=a,d.targetResolution=h.resolution,a=d.targetResolution),void 0!==h.rotation){d.sourceRotation=s;var p=v.a.modulo(h.rotation-s+Math.PI,2*Math.PI)-Math.PI;d.targetRotation=s+p,s=d.targetRotation}d.callback=e,S.isNoopAnimation(d)?d.complete=!0:r+=d.duration,u.push(d)}this.animations_.push(u),this.setHint(l.a.ANIMATING,1),this.updateAnimations_()},S.prototype.getAnimating=function(){return this.hints_[l.a.ANIMATING]>0},S.prototype.getInteracting=function(){return this.hints_[l.a.INTERACTING]>0},S.prototype.cancelAnimations=function(){this.setHint(l.a.ANIMATING,-this.hints_[l.a.ANIMATING]);for(var t=0,e=this.animations_.length;t<e;++t){var i=this.animations_[t];i[0].callback&&i[0].callback(!1)}this.animations_.length=0},S.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var t=Date.now(),e=!1,i=this.animations_.length-1;i>=0;--i){for(var n=this.animations_[i],r=!0,o=0,a=n.length;o<a;++o){var s=n[o];if(!s.complete){var c=t-s.start,h=s.duration>0?c/s.duration:1;h>=1?(s.complete=!0,h=1):r=!1;var d=s.easing(h);if(s.sourceCenter){var f=s.sourceCenter[0],p=s.sourceCenter[1],g=s.targetCenter[0],_=s.targetCenter[1],y=f+d*(g-f),m=p+d*(_-p);this.set(u.a.CENTER,[y,m])}if(s.sourceResolution&&s.targetResolution){var E=1===d?s.targetResolution:s.sourceResolution+d*(s.targetResolution-s.sourceResolution);s.anchor&&this.set(u.a.CENTER,this.calculateCenterZoom(E,s.anchor)),this.set(u.a.RESOLUTION,E)}if(void 0!==s.sourceRotation&&void 0!==s.targetRotation){var T=1===d?v.a.modulo(s.targetRotation+Math.PI,2*Math.PI)-Math.PI:s.sourceRotation+d*(s.targetRotation-s.sourceRotation);s.anchor&&this.set(u.a.CENTER,this.calculateCenterRotate(T,s.anchor)),this.set(u.a.ROTATION,T)}if(e=!0,!s.complete)break}}if(r){this.animations_[i]=null,this.setHint(l.a.ANIMATING,-1);var S=n[0].callback;S&&S(!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_))}},S.prototype.calculateCenterRotate=function(t,e){var i,n=this.getCenter();return void 0!==n&&(i=[n[0]-e[0],n[1]-e[1]],d.default.rotate(i,t-this.getRotation()),d.default.add(i,e)),i},S.prototype.calculateCenterZoom=function(t,e){var i,n=this.getCenter(),r=this.getResolution();if(void 0!==n&&void 0!==r){i=[e[0]-t*(e[0]-n[0])/r,e[1]-t*(e[1]-n[1])/r]}return i},S.prototype.getSizeFromViewport_=function(){var t=[100,100],e='.ol-viewport[data-view="'+n.a.getUid(this)+'"]',i=document.querySelector(e);if(i){var r=getComputedStyle(i);t[0]=parseInt(r.width,10),t[1]=parseInt(r.height,10)}return t},S.prototype.constrainCenter=function(t){return this.constraints_.center(t)},S.prototype.constrainResolution=function(t,e,i){var n=e||0,r=i||0;return this.constraints_.resolution(t,n,r)},S.prototype.constrainRotation=function(t,e){var i=e||0;return this.constraints_.rotation(t,i)},S.prototype.getCenter=function(){return this.get(u.a.CENTER)},S.prototype.getConstraints=function(){return this.constraints_},S.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},S.prototype.calculateExtent=function(t){var e=t||this.getSizeFromViewport_(),i=this.getCenter();h.a.assert(i,1);var n=this.getResolution();h.a.assert(void 0!==n,2);var r=this.getRotation();return h.a.assert(void 0!==r,3),p.a.getForViewAndSize(i,n,r,e)},S.prototype.getMaxResolution=function(){return this.maxResolution_},S.prototype.getMinResolution=function(){return this.minResolution_},S.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},S.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},S.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},S.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},S.prototype.getProjection=function(){return this.projection_},S.prototype.getResolution=function(){return this.get(u.a.RESOLUTION)},S.prototype.getResolutions=function(){return this.resolutions_},S.prototype.getResolutionForExtent=function(t,e){var i=e||this.getSizeFromViewport_(),n=p.a.getWidth(t)/i[0],r=p.a.getHeight(t)/i[1];return Math.max(n,r)},S.prototype.getResolutionForValueFunction=function(t){var e=t||2,i=this.maxResolution_,n=this.minResolution_,r=Math.log(i/n)/Math.log(e);return function(t){return i/Math.pow(e,t*r)}},S.prototype.getRotation=function(){return this.get(u.a.ROTATION)},S.prototype.getValueForResolutionFunction=function(t){var e=t||2,i=this.maxResolution_,n=this.minResolution_,r=Math.log(i/n)/Math.log(e);return function(t){return Math.log(i/t)/Math.log(e)/r}},S.prototype.getState=function(){var t=this.getCenter(),e=this.getProjection(),i=this.getResolution(),n=this.getRotation();return{center:t.slice(),projection:void 0!==e?e:null,resolution:i,rotation:n,zoom:this.getZoom()}},S.prototype.getZoom=function(){var t,e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t},S.prototype.getZoomForResolution=function(t){var e,i,n=this.minZoom_||0;if(this.resolutions_){var r=c.a.linearFindNearest(this.resolutions_,t,1);n=r,e=this.resolutions_[r],i=r==this.resolutions_.length-1?2:e/this.resolutions_[r+1]}else e=this.maxResolution_,i=this.zoomFactor_;return n+Math.log(e/t)/Math.log(i)},S.prototype.getResolutionForZoom=function(t){return this.constrainResolution(this.maxResolution_,t-this.minZoom_,0)},S.prototype.fit=function(t,e){var i=e||{},r=i.size;r||(r=this.getSizeFromViewport_());var o;t instanceof y.a?t.getType()===g.a.CIRCLE?(t=t.getExtent(),o=_.a.fromExtent(t),o.rotate(this.getRotation(),p.a.getCenter(t))):o=t:(h.a.assert(Array.isArray(t),24),h.a.assert(!p.a.isEmpty(t),25),o=_.a.fromExtent(t));var a,s=void 0!==i.padding?i.padding:[0,0,0,0],l=void 0===i.constrainResolution||i.constrainResolution,u=void 0!==i.nearest&&i.nearest;a=void 0!==i.minResolution?i.minResolution:void 0!==i.maxZoom?this.constrainResolution(this.maxResolution_,i.maxZoom-this.minZoom_,0):0;for(var c=o.getFlatCoordinates(),d=this.getRotation(),f=Math.cos(-d),v=Math.sin(-d),m=1/0,E=1/0,T=-1/0,S=-1/0,x=o.getStride(),C=0,R=c.length;C<R;C+=x){var b=c[C]*f-c[C+1]*v,I=c[C]*v+c[C+1]*f;m=Math.min(m,b),E=Math.min(E,I),T=Math.max(T,b),S=Math.max(S,I)}var O=this.getResolutionForExtent([m,E,T,S],[r[0]-s[1]-s[3],r[1]-s[0]-s[2]]);if(O=isNaN(O)?a:Math.max(O,a),l){var P=this.constrainResolution(O,0,0);!u&&P<O&&(P=this.constrainResolution(P,-1,0)),O=P}v=-v;var w=(m+T)/2,L=(E+S)/2;w+=(s[1]-s[3])/2*O,L+=(s[0]-s[2])/2*O;var A=w*f-L*v,M=L*f+w*v,F=[A,M],N=i.callback?i.callback:n.a.nullFunction;void 0!==i.duration?this.animate({resolution:O,center:F,duration:i.duration,easing:i.easing},N):(this.setResolution(O),this.setCenter(F),setTimeout(N.bind(void 0,!0),0))},S.prototype.centerOn=function(t,e,i){var n=this.getRotation(),r=Math.cos(-n),o=Math.sin(-n),a=t[0]*r-t[1]*o,s=t[1]*r+t[0]*o,l=this.getResolution();a+=(e[0]/2-i[0])*l,s+=(i[1]-e[1]/2)*l,o=-o;var u=a*r-s*o,c=s*r+a*o;this.setCenter([u,c])},S.prototype.isDef=function(){return!!this.getCenter()&&void 0!==this.getResolution()},S.prototype.rotate=function(t,e){if(void 0!==e){var i=this.calculateCenterRotate(t,e);this.setCenter(i)}this.setRotation(t)},S.prototype.setCenter=function(t){this.set(u.a.CENTER,t),this.getAnimating()&&this.cancelAnimations()},S.prototype.setHint=function(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]},S.prototype.setResolution=function(t){this.set(u.a.RESOLUTION,t),this.getAnimating()&&this.cancelAnimations()},S.prototype.setRotation=function(t){this.set(u.a.ROTATION,t),this.getAnimating()&&this.cancelAnimations()},S.prototype.setZoom=function(t){this.setResolution(this.getResolutionForZoom(t))},S.createCenterConstraint_=function(t){return void 0!==t.extent?r.a.createExtent(t.extent):r.a.none},S.createResolutionConstraint_=function(t){var e,i,r,o=void 0!==t.minZoom?t.minZoom:n.a.DEFAULT_MIN_ZOOM,s=void 0!==t.maxZoom?t.maxZoom:28,l=void 0!==t.zoomFactor?t.zoomFactor:2;if(void 0!==t.resolutions){var u=t.resolutions;i=u[o],r=void 0!==u[s]?u[s]:u[u.length-1],e=a.a.createSnapToResolutions(u)}else{var c=E.default.createProjection(t.projection,"EPSG:3857"),h=c.getExtent(),d=h?Math.max(p.a.getWidth(h),p.a.getHeight(h)):360*E.default.METERS_PER_UNIT[T.a.DEGREES]/c.getMetersPerUnit(),f=d/n.a.DEFAULT_TILE_SIZE/Math.pow(2,n.a.DEFAULT_MIN_ZOOM),g=f/Math.pow(2,28-n.a.DEFAULT_MIN_ZOOM);i=t.maxResolution,void 0!==i?o=0:i=f/Math.pow(l,o),r=t.minResolution,void 0===r&&(r=void 0!==t.maxZoom?void 0!==t.maxResolution?i/Math.pow(l,s):f/Math.pow(l,s):g),s=o+Math.floor(Math.log(i/r)/Math.log(l)),r=i/Math.pow(l,s-o),e=a.a.createSnapToPower(l,i,s-o)}return{constraint:e,maxResolution:i,minResolution:r,minZoom:o,zoomFactor:l}},S.createRotationConstraint_=function(t){if(void 0===t.enableRotation||t.enableRotation){var e=t.constrainRotation;return void 0===e||!0===e?s.a.createSnapToZero():!1===e?s.a.none:"number"===typeof e?s.a.createSnapToN(e):s.a.none}return s.a.disable},S.isNoopAnimation=function(t){return!(t.sourceCenter&&t.targetCenter&&!d.default.equals(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)},e.default=S},function(t,e,i){"use strict";var n=i(6),r={};r.disable=function(t,e){return void 0!==t?0:void 0},r.none=function(t,e){return void 0!==t?t+e:void 0},r.createSnapToN=function(t){var e=2*Math.PI/t;return function(t,i){return void 0!==t?t=Math.floor((t+i)/e+.5)*e:void 0}},r.createSnapToZero=function(t){var e=t||n.a.toRadians(5);return function(t,i){return void 0!==t?Math.abs(t+i)<=e?0:t+i:void 0}},e.a=r},function(t,e,i){"use strict";var n=i(5),r=i(60),o={};o.linearRings=function(t,e,i,o,a,s,l){for(var u,c,h,d,f,p,g,_=a[s+1],y=[],v=0,m=i.length;v<m;++v){var E=i[v];for(d=t[E-o],p=t[E-o+1],u=e;u<E;u+=o)f=t[u],g=t[u+1],(_<=p&&g<=_||p<=_&&_<=g)&&(h=(_-p)/(g-p)*(f-d)+d,y.push(h)),d=f,p=g}var T=NaN,S=-1/0;for(y.sort(n.a.numberSafeCompareFunction),d=y[0],u=1,c=y.length;u<c;++u){f=y[u];var x=Math.abs(f-d);x>S&&(h=(d+f)/2,r.a.linearRingsContainsXY(t,e,i,o,h,_)&&(T=h,S=x)),d=f}return isNaN(T)&&(T=a[s]),l?(l.push(T,_,S),l):[T,_,S]},o.linearRingss=function(t,e,i,n,r){var a,s,l=[];for(a=0,s=i.length;a<s;++a){var u=i[a];l=o.linearRings(t,e,u,n,r,2*a,l),e=u[u.length-1]}return l},e.a=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={MAP_RENDERER:"MAP_RENDERER",LAYER_RENDERER:"LAYER_RENDERER"};e.default=n},function(t,e,i){"use strict";var n=i(0),r=i(100),o=i(16),a=i(9),s=i(3),l=function(t){o.a.call(this),this.element=t.element?t.element:null,this.target_=null,this.map_=null,this.listenerKeys=[],this.render=t.render?t.render:n.a.nullFunction,t.target&&this.setTarget(t.target)};n.a.inherits(l,o.a),l.prototype.disposeInternal=function(){a.a.removeNode(this.element),o.a.prototype.disposeInternal.call(this)},l.prototype.getMap=function(){return this.map_},l.prototype.setMap=function(t){this.map_&&a.a.removeNode(this.element);for(var e=0,i=this.listenerKeys.length;e<i;++e)s.a.unlistenByKey(this.listenerKeys[e]);if(this.listenerKeys.length=0,this.map_=t,this.map_){(this.target_?this.target_:t.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==n.a.nullFunction&&this.listenerKeys.push(s.a.listen(t,r.a.POSTRENDER,this.render,this)),t.render()}},l.prototype.setTarget=function(t){this.target_="string"===typeof t?document.getElementById(t):t},e.a=l},function(t,e,i){"use strict";var n=i(0),r=i(40),o=i(4),a=function(t,e,i,n){r.a.call(this),this.extent=t,this.pixelRatio_=i,this.resolution=e,this.state=n};n.a.inherits(a,r.a),a.prototype.changed=function(){this.dispatchEvent(o.a.CHANGE)},a.prototype.getExtent=function(){return this.extent},a.prototype.getImage=function(){},a.prototype.getPixelRatio=function(){return this.pixelRatio_},a.prototype.getResolution=function(){return this.resolution},a.prototype.getState=function(){return this.state},a.prototype.load=function(){},e.a=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(20),o=i(76),a=i(15),s=i(17),l=i(9),u=i(1),c=i(23),h=i(164),d=i(10),f=function(t){h.a.call(this,t),this.context=null===this.context?null:l.a.createCanvasContext2D(),this.oversampling_,this.renderedExtent_=null,this.renderedRevision,this.renderedTiles=[],this.tmpExtent=u.a.createEmpty(),this.tmpTileRange_=new o.a(0,0,0,0),this.imageTransform_=d.a.create(),this.zDirection=0};n.a.inherits(f,h.a),f.handles=function(t,e){return t===c.a.CANVAS&&e.getType()===r.a.TILE},f.create=function(t,e){return new f(e)},f.prototype.isDrawableTile_=function(t){var e=t.getState(),i=this.getLayer().getUseInterimTilesOnError();return e==a.a.LOADED||e==a.a.EMPTY||e==a.a.ERROR&&!i},f.prototype.prepareFrame=function(t,e){var i=t.pixelRatio,r=t.size,o=t.viewState,l=o.projection,c=o.resolution,h=o.center,f=this.getLayer(),p=f.getSource(),g=p.getRevision(),_=p.getTileGridForProjection(l),y=_.getZForResolution(c,this.zDirection),v=_.getResolution(y),m=Math.round(c/v)||1,E=t.extent;if(void 0!==e.extent&&(E=u.a.getIntersection(E,e.extent)),u.a.isEmpty(E))return!1;var T=_.getTileRangeForExtentAndZ(E,y),S=_.getTileRangeExtent(y,T),x=p.getTilePixelRatio(i),C={};C[y]={};var R,b,I,O=this.createLoadedTileFinder(p,l,C),P=this.tmpExtent,w=this.tmpTileRange_,L=!1;for(b=T.minX;b<=T.maxX;++b)for(I=T.minY;I<=T.maxY;++I){if(R=p.getTile(y,b,I,i,l),R.getState()==a.a.ERROR&&(f.getUseInterimTilesOnError()?f.getPreload()>0&&(L=!0):R.setState(a.a.LOADED)),this.isDrawableTile_(R)||(R=R.getInterimTile()),this.isDrawableTile_(R)){var A=n.a.getUid(this);if(R.getState()==a.a.LOADED){C[y][R.tileCoord.toString()]=R;var M=R.inTransition(A);L||!M&&-1!==this.renderedTiles.indexOf(R)||(L=!0)}if(1===R.getAlpha(A,t.time))continue}var F=_.getTileCoordChildTileRange(R.tileCoord,w,P),N=!1;F&&(N=O(y+1,F)),N||_.forEachTileCoordParentTileRange(R.tileCoord,O,null,w,P)}var D=v*i/x*m,k=t.viewHints,G=k[s.a.ANIMATING]||k[s.a.INTERACTING];if(!(this.renderedResolution&&Date.now()-t.time>16&&G)&&(L||!this.renderedExtent_||!u.a.containsExtent(this.renderedExtent_,E)||this.renderedRevision!=g||m!=this.oversampling_||!G&&D!=this.renderedResolution)){var U=this.context;if(U){var j=p.getTilePixelSize(y,i,l),B=Math.round(T.getWidth()*j[0]/m),V=Math.round(T.getHeight()*j[1]/m),Y=U.canvas;Y.width!=B||Y.height!=V?(this.oversampling_=m,Y.width=B,Y.height=V):(this.renderedExtent_&&!u.a.equals(S,this.renderedExtent_)&&U.clearRect(0,0,B,V),m=this.oversampling_)}this.renderedTiles.length=0;var W=Object.keys(C).map(Number);W.sort(function(t,e){return t===y?1:e===y?-1:t>e?1:t<e?-1:0});var z,X,H,K,q,Z,J,Q,$,tt,et;for(q=0,Z=W.length;q<Z;++q){K=W[q],H=p.getTilePixelSize(K,i,l),z=_.getResolution(K),X=z/v,Q=x*p.getGutter(l),$=C[K];for(var it in $)R=$[it],J=_.getTileCoordExtent(R.getTileCoord(),P),b=(J[0]-S[0])/v*x/m,I=(S[3]-J[3])/v*x/m,tt=H[0]*X/m,et=H[1]*X/m,this.drawTileImage(R,t,e,b,I,tt,et,Q,y===K),this.renderedTiles.push(R)}this.renderedRevision=g,this.renderedResolution=v*i/x*m,this.renderedExtent_=S}var nt=this.renderedResolution/c,rt=d.a.compose(this.imageTransform_,i*r[0]/2,i*r[1]/2,nt,nt,0,(this.renderedExtent_[0]-h[0])/this.renderedResolution*i,(h[1]-this.renderedExtent_[3])/this.renderedResolution*i);return d.a.compose(this.coordinateToCanvasPixelTransform,i*r[0]/2-rt[4],i*r[1]/2-rt[5],i/c,-i/c,0,-h[0],-h[1]),this.updateUsedTiles(t.usedTiles,p,y,T),this.manageTilePyramid(t,p,_,i,l,E,y,f.getPreload()),this.scheduleExpireCache(t,p),this.updateLogos(t,p),this.renderedTiles.length>0},f.prototype.drawTileImage=function(t,e,i,r,o,a,s,l,u){var c=t.getImage(this.getLayer());if(c){var h=n.a.getUid(this),d=u?t.getAlpha(h,e.time):1;1!==d||this.getLayer().getSource().getOpaque(e.viewState.projection)||this.context.clearRect(r,o,a,s);var f=d!==this.context.globalAlpha;f&&(this.context.save(),this.context.globalAlpha=d),this.context.drawImage(c,l,l,c.width-2*l,c.height-2*l,r,o,a,s),f&&this.context.restore(),1!==d?e.animate=!0:u&&t.endTransition(h)}},f.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},f.prototype.getLayer,f.prototype.getImageTransform=function(){return this.imageTransform_},e.default=f},function(t,e,i){"use strict";function n(t,e){if(!(this instanceof n))return new n(t,e);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&this._initFormat(e),this.clear()}function r(t,e,i){if(!i)return e.indexOf(t);for(var n=0;n<e.length;n++)if(i(t,e[n]))return n;return-1}function o(t,e){a(t,0,t.children.length,e,t)}function a(t,e,i,n,r){r||(r=_(null)),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(var o,a=e;a<i;a++)o=t.children[a],s(r,t.leaf?n(o):o);return r}function s(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 l(t,e){return t.minX-e.minX}function u(t,e){return t.minY-e.minY}function c(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function h(t){return t.maxX-t.minX+(t.maxY-t.minY)}function d(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function f(t,e){var i=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY),r=Math.min(t.maxX,e.maxX),o=Math.min(t.maxY,e.maxY);return Math.max(0,r-i)*Math.max(0,o-n)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function g(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 y(t,e,i,n,r){for(var o,a=[e,i];a.length;)i=a.pop(),e=a.pop(),i-e<=n||(o=e+Math.ceil((i-e)/n/2)*n,v(t,o,e,i,r),a.push(e,o,o,i))}t.exports=n;var v=i(305);n.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,i=[],n=this.toBBox;if(!g(t,e))return i;for(var r,o,a,s,l=[];e;){for(r=0,o=e.children.length;r<o;r++)a=e.children[r],s=e.leaf?n(a):a,g(t,s)&&(e.leaf?i.push(a):p(t,s)?this._all(a,i):l.push(a));e=l.pop()}return i},collides:function(t){var e=this.data,i=this.toBBox;if(!g(t,e))return!1;for(var n,r,o,a,s=[];e;){for(n=0,r=e.children.length;n<r;n++)if(o=e.children[n],a=e.leaf?i(o):o,g(t,a)){if(e.leaf||p(t,a))return!0;s.push(o)}e=s.pop()}return!1},load:function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0,i=t.length;e<i;e++)this.insert(t[e]);return this}var n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},insert:function(t){return t&&this._insert(t,this.data.height-1),this},clear:function(){return this.data=_([]),this},remove:function(t,e){if(!t)return this;for(var i,n,o,a,s=this.data,l=this.toBBox(t),u=[],c=[];s||u.length;){if(s||(s=u.pop(),n=u[u.length-1],i=c.pop(),a=!0),s.leaf&&-1!==(o=r(t,s.children,e)))return s.children.splice(o,1),u.push(s),this._condense(u),this;a||s.leaf||!p(s,l)?n?(i++,s=n.children[i],a=!1):s=null:(u.push(s),c.push(i),i=0,n=s,s=s.children[0])}return this},toBBox:function(t){return t},compareMinX:l,compareMinY:u,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},_all:function(t,e){for(var i=[];t;)t.leaf?e.push.apply(e,t.children):i.push.apply(i,t.children),t=i.pop();return e},_build:function(t,e,i,n){var r,a=i-e+1,s=this._maxEntries;if(a<=s)return r=_(t.slice(e,i+1)),o(r,this.toBBox),r;n||(n=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,n-1))),r=_([]),r.leaf=!1,r.height=n;var l,u,c,h,d=Math.ceil(a/s),f=d*Math.ceil(Math.sqrt(s));for(y(t,e,i,f,this.compareMinX),l=e;l<=i;l+=f)for(c=Math.min(l+f-1,i),y(t,l,c,d,this.compareMinY),u=l;u<=c;u+=d)h=Math.min(u+d-1,c),r.children.push(this._build(t,u,h,n-1));return o(r,this.toBBox),r},_chooseSubtree:function(t,e,i,n){for(var r,o,a,s,l,u,h,f;;){if(n.push(e),e.leaf||n.length-1===i)break;for(h=f=1/0,r=0,o=e.children.length;r<o;r++)a=e.children[r],l=c(a),u=d(t,a)-l,u<f?(f=u,h=l<h?l:h,s=a):u===f&&l<h&&(h=l,s=a);e=s||e.children[0]}return e},_insert:function(t,e,i){var n=this.toBBox,r=i?t:n(t),o=[],a=this._chooseSubtree(r,this.data,e,o);for(a.children.push(t),s(a,r);e>=0&&o[e].children.length>this._maxEntries;)this._split(o,e),e--;this._adjustParentBBoxes(r,o,e)},_split:function(t,e){var i=t[e],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);var a=this._chooseSplitIndex(i,r,n),s=_(i.children.splice(a,i.children.length-a));s.height=i.height,s.leaf=i.leaf,o(i,this.toBBox),o(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(i,s)},_splitRoot:function(t,e){this.data=_([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,i){var n,r,o,s,l,u,h,d;for(u=h=1/0,n=e;n<=i-e;n++)r=a(t,0,n,this.toBBox),o=a(t,n,i,this.toBBox),s=f(r,o),l=c(r)+c(o),s<u?(u=s,d=n,h=l<h?l:h):s===u&&l<h&&(h=l,d=n);return d},_chooseSplitAxis:function(t,e,i){var n=t.leaf?this.compareMinX:l,r=t.leaf?this.compareMinY:u;this._allDistMargin(t,e,i,n)<this._allDistMargin(t,e,i,r)&&t.children.sort(n)},_allDistMargin:function(t,e,i,n){t.children.sort(n);var r,o,l=this.toBBox,u=a(t,0,e,l),c=a(t,i-e,i,l),d=h(u)+h(c);for(r=e;r<i-e;r++)o=t.children[r],s(u,t.leaf?l(o):o),d+=h(u);for(r=i-e-1;r>=e;r--)o=t.children[r],s(c,t.leaf?l(o):o),d+=h(c);return d},_adjustParentBBoxes:function(t,e,i){for(var n=i;n>=0;n--)s(e[n],t)},_condense:function(t){for(var e,i=t.length-1;i>=0;i--)0===t[i].children.length?i>0?(e=t[i-1].children,e.splice(e.indexOf(t[i]),1)):this.clear():o(t[i],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},function(t,e,i){"use strict";var n=i(0),r=i(21),o=i(8),a=i(62),s={};s.defaultOrder=function(t,e){return n.a.getUid(t)-n.a.getUid(e)},s.getSquaredTolerance=function(t,e){var i=s.getTolerance(t,e);return i*i},s.getTolerance=function(t,e){return n.a.SIMPLIFY_TOLERANCE*t/e},s.renderCircleGeometry_=function(t,e,i,n){var r=i.getFill(),o=i.getStroke();if(r||o){var s=t.getReplay(i.getZIndex(),a.a.CIRCLE);s.setFillStrokeStyle(r,o),s.drawCircle(e,n)}var l=i.getText();if(l){var u=t.getReplay(i.getZIndex(),a.a.TEXT);u.setTextStyle(l,t.addDeclutter(!1)),u.drawText(e,n)}},s.renderFeature=function(t,e,i,n,o,a){var l,u,c=!1;return l=i.getImage(),l&&(u=l.getImageState(),u==r.a.LOADED||u==r.a.ERROR?l.unlistenImageChange(o,a):(u==r.a.IDLE&&l.load(),u=l.getImageState(),l.listenImageChange(o,a),c=!0)),s.renderFeature_(t,e,i,n),c},s.renderFeature_=function(t,e,i,n){var r=i.getGeometryFunction()(e);if(r){var o=r.getSimplifiedGeometry(n);if(i.getRenderer())s.renderGeometry_(t,o,i,e);else{(0,s.GEOMETRY_RENDERERS_[o.getType()])(t,o,i,e)}}},s.renderGeometry_=function(t,e,i,n){if(e.getType()!=o.a.GEOMETRY_COLLECTION){t.getReplay(i.getZIndex(),a.a.DEFAULT).drawCustom(e,n,i.getRenderer())}else for(var r=e.getGeometries(),l=0,u=r.length;l<u;++l)s.renderGeometry_(t,r[l],i,n)},s.renderGeometryCollectionGeometry_=function(t,e,i,n){var r,o,a=e.getGeometriesArray();for(r=0,o=a.length;r<o;++r){(0,s.GEOMETRY_RENDERERS_[a[r].getType()])(t,a[r],i,n)}},s.renderLineStringGeometry_=function(t,e,i,n){var r=i.getStroke();if(r){var o=t.getReplay(i.getZIndex(),a.a.LINE_STRING);o.setFillStrokeStyle(null,r),o.drawLineString(e,n)}var s=i.getText();if(s){var l=t.getReplay(i.getZIndex(),a.a.TEXT);l.setTextStyle(s,t.addDeclutter(!1)),l.drawText(e,n)}},s.renderMultiLineStringGeometry_=function(t,e,i,n){var r=i.getStroke();if(r){var o=t.getReplay(i.getZIndex(),a.a.LINE_STRING);o.setFillStrokeStyle(null,r),o.drawMultiLineString(e,n)}var s=i.getText();if(s){var l=t.getReplay(i.getZIndex(),a.a.TEXT);l.setTextStyle(s,t.addDeclutter(!1)),l.drawText(e,n)}},s.renderMultiPolygonGeometry_=function(t,e,i,n){var r=i.getFill(),o=i.getStroke();if(o||r){var s=t.getReplay(i.getZIndex(),a.a.POLYGON);s.setFillStrokeStyle(r,o),s.drawMultiPolygon(e,n)}var l=i.getText();if(l){var u=t.getReplay(i.getZIndex(),a.a.TEXT);u.setTextStyle(l,t.addDeclutter(!1)),u.drawText(e,n)}},s.renderPointGeometry_=function(t,e,i,n){var o=i.getImage();if(o){if(o.getImageState()!=r.a.LOADED)return;var s=t.getReplay(i.getZIndex(),a.a.IMAGE);s.setImageStyle(o,t.addDeclutter(!1)),s.drawPoint(e,n)}var l=i.getText();if(l){var u=t.getReplay(i.getZIndex(),a.a.TEXT);u.setTextStyle(l,t.addDeclutter(!!o)),u.drawText(e,n)}},s.renderMultiPointGeometry_=function(t,e,i,n){var o=i.getImage();if(o){if(o.getImageState()!=r.a.LOADED)return;var s=t.getReplay(i.getZIndex(),a.a.IMAGE);s.setImageStyle(o,t.addDeclutter(!1)),s.drawMultiPoint(e,n)}var l=i.getText();if(l){var u=t.getReplay(i.getZIndex(),a.a.TEXT);u.setTextStyle(l,t.addDeclutter(!!o)),u.drawText(e,n)}},s.renderPolygonGeometry_=function(t,e,i,n){var r=i.getFill(),o=i.getStroke();if(r||o){var s=t.getReplay(i.getZIndex(),a.a.POLYGON);s.setFillStrokeStyle(r,o),s.drawPolygon(e,n)}var l=i.getText();if(l){var u=t.getReplay(i.getZIndex(),a.a.TEXT);u.setTextStyle(l,t.addDeclutter(!1)),u.drawText(e,n)}},s.GEOMETRY_RENDERERS_={Point:s.renderPointGeometry_,LineString:s.renderLineStringGeometry_,Polygon:s.renderPolygonGeometry_,MultiPoint:s.renderMultiPointGeometry_,MultiLineString:s.renderMultiLineStringGeometry_,MultiPolygon:s.renderMultiPolygonGeometry_,GeometryCollection:s.renderGeometryCollectionGeometry_,Circle:s.renderCircleGeometry_},e.a=s},function(t,e,i){"use strict";var n=i(0),r=i(80),o=i(52),a=i(174),s=i(167),l=i(330),u=i(331),c=i(10),h=i(177),d=i(13),f=i(47),p=i(84),g=function(t,e){s.a.call(this,e),this.mapRenderer=t,this.arrayBuffer_=new f.a([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),this.texture=null,this.framebuffer=null,this.framebufferDimension=void 0,this.texCoordMatrix=c.a.create(),this.projectionMatrix=c.a.create(),this.tmpMat4_=h.a.create(),this.defaultLocations_=null};n.a.inherits(g,s.a),g.prototype.bindFramebuffer=function(t,e){var i=this.mapRenderer.getGL();if(void 0===this.framebufferDimension||this.framebufferDimension!=e){var n=function(t,e,i){t.isContextLost()||(t.deleteFramebuffer(e),t.deleteTexture(i))}.bind(null,i,this.framebuffer,this.texture);t.postRenderFunctions.push(n);var r=p.a.createEmptyTexture(i,e,e),o=i.createFramebuffer();i.bindFramebuffer(d.a.FRAMEBUFFER,o),i.framebufferTexture2D(d.a.FRAMEBUFFER,d.a.COLOR_ATTACHMENT0,d.a.TEXTURE_2D,r,0),this.texture=r,this.framebuffer=o,this.framebufferDimension=e}else i.bindFramebuffer(d.a.FRAMEBUFFER,this.framebuffer)},g.prototype.composeFrame=function(t,e,i){this.dispatchComposeEvent_(o.a.PRECOMPOSE,i,t),i.bindBuffer(d.a.ARRAY_BUFFER,this.arrayBuffer_);var n,r=i.getGL(),a=l.a.fragment,s=l.a.vertex,c=i.getProgram(a,s);this.defaultLocations_?n=this.defaultLocations_:(n=new u.a(r,c),this.defaultLocations_=n),i.useProgram(c)&&(r.enableVertexAttribArray(n.a_position),r.vertexAttribPointer(n.a_position,2,d.a.FLOAT,!1,16,0),r.enableVertexAttribArray(n.a_texCoord),r.vertexAttribPointer(n.a_texCoord,2,d.a.FLOAT,!1,16,8),r.uniform1i(n.u_texture,0)),r.uniformMatrix4fv(n.u_texCoordMatrix,!1,h.a.fromTransform(this.tmpMat4_,this.getTexCoordMatrix())),r.uniformMatrix4fv(n.u_projectionMatrix,!1,h.a.fromTransform(this.tmpMat4_,this.getProjectionMatrix())),r.uniform1f(n.u_opacity,e.opacity),r.bindTexture(d.a.TEXTURE_2D,this.getTexture()),r.drawArrays(d.a.TRIANGLE_STRIP,0,4),this.dispatchComposeEvent_(o.a.POSTCOMPOSE,i,t)},g.prototype.dispatchComposeEvent_=function(t,e,i){var n=this.getLayer();if(n.hasListener(t)){var o=i.viewState,s=o.resolution,l=i.pixelRatio,u=i.extent,c=o.center,h=o.rotation,d=i.size,f=new a.a(e,c,s,h,d,u,l),p=new r.a(t,f,i,null,e);n.dispatchEvent(p)}},g.prototype.getTexCoordMatrix=function(){return this.texCoordMatrix},g.prototype.getTexture=function(){return this.texture},g.prototype.getProjectionMatrix=function(){return this.projectionMatrix},g.prototype.handleWebGLContextLost=function(){this.texture=null,this.framebuffer=null,this.framebufferDimension=void 0},g.prototype.prepareFrame=function(t,e,i){},g.prototype.forEachLayerAtPixel=function(t,e,i,n){},e.a=g},function(t,e,i){"use strict";var n=i(0),r=i(109),o=i.n(r),a=i(1),s=i(2),l=function(t){this.rbush_=o()(t),this.items_={}};l.prototype.insert=function(t,e){var i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(i),this.items_[n.a.getUid(e)]=i},l.prototype.load=function(t,e){for(var i=new Array(e.length),r=0,o=e.length;r<o;r++){var a=t[r],s=e[r],l={minX:a[0],minY:a[1],maxX:a[2],maxY:a[3],value:s};i[r]=l,this.items_[n.a.getUid(s)]=l}this.rbush_.load(i)},l.prototype.remove=function(t){var e=n.a.getUid(t),i=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(i)},l.prototype.update=function(t,e){var i=this.items_[n.a.getUid(e)],r=[i.minX,i.minY,i.maxX,i.maxY];a.a.equals(r,t)||(this.remove(e),this.insert(t,e))},l.prototype.getAll=function(){return this.rbush_.all().map(function(t){return t.value})},l.prototype.getInExtent=function(t){var e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this.rbush_.search(e).map(function(t){return t.value})},l.prototype.forEach=function(t,e){return this.forEach_(this.getAll(),t,e)},l.prototype.forEachInExtent=function(t,e,i){return this.forEach_(this.getInExtent(t),e,i)},l.prototype.forEach_=function(t,e,i){for(var n,r=0,o=t.length;r<o;r++)if(n=e.call(i,t[r]))return n;return n},l.prototype.isEmpty=function(){return s.a.isEmpty(this.items_)},l.prototype.clear=function(){this.rbush_.clear(),this.items_={}},l.prototype.getExtent=function(t){var e=this.rbush_.data;return a.a.createOrUpdate(e.minX,e.minY,e.maxX,e.maxY,t)},l.prototype.concat=function(t){this.rbush_.load(t.rbush_.all());for(var e in t.items_)this.items_[0|e]=t.items_[0|e]},e.a=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(7),o=i(65),a=i(85),s=i(181),l=i(337),u=i(66),c=i(86),h=i(67),d=i(87),f=i(25),p=i(43),g=i(2),_=i(11),y=function(t){var e=t||{};s.a.call(this),this.defaultDataProjection=_.default.get(e.defaultDataProjection?e.defaultDataProjection:"EPSG:4326"),e.featureProjection&&(this.defaultFeatureProjection=_.default.get(e.featureProjection)),this.geometryName_=e.geometryName,this.extractGeometryName_=e.extractGeometryName};n.a.inherits(y,s.a),y.readGeometry_=function(t,e){if(!t)return null;var i=y.GEOMETRY_READERS_[t.type];return a.a.transformWithOptions(i(t),!1,e)},y.readGeometryCollectionGeometry_=function(t,e){var i=t.geometries.map(function(t){return y.readGeometry_(t,e)});return new l.a(i)},y.readPointGeometry_=function(t){return new f.default(t.coordinates)},y.readLineStringGeometry_=function(t){return new u.a(t.coordinates)},y.readMultiLineStringGeometry_=function(t){return new c.a(t.coordinates)},y.readMultiPointGeometry_=function(t){return new h.a(t.coordinates)},y.readMultiPolygonGeometry_=function(t){return new d.a(t.coordinates)},y.readPolygonGeometry_=function(t){return new p.a(t.coordinates)},y.writeGeometry_=function(t,e){return(0,y.GEOMETRY_WRITERS_[t.getType()])(a.a.transformWithOptions(t,!0,e),e)},y.writeEmptyGeometryCollectionGeometry_=function(t){return{type:"GeometryCollection",geometries:[]}},y.writeGeometryCollectionGeometry_=function(t,e){return{type:"GeometryCollection",geometries:t.getGeometriesArray().map(function(t){var i=g.a.assign({},e);return delete i.featureProjection,y.writeGeometry_(t,i)})}},y.writeLineStringGeometry_=function(t,e){return{type:"LineString",coordinates:t.getCoordinates()}},y.writeMultiLineStringGeometry_=function(t,e){return{type:"MultiLineString",coordinates:t.getCoordinates()}},y.writeMultiPointGeometry_=function(t,e){return{type:"MultiPoint",coordinates:t.getCoordinates()}},y.writeMultiPolygonGeometry_=function(t,e){var i;return e&&(i=e.rightHanded),{type:"MultiPolygon",coordinates:t.getCoordinates(i)}},y.writePointGeometry_=function(t,e){return{type:"Point",coordinates:t.getCoordinates()}},y.writePolygonGeometry_=function(t,e){var i;return e&&(i=e.rightHanded),{type:"Polygon",coordinates:t.getCoordinates(i)}},y.GEOMETRY_READERS_={Point:y.readPointGeometry_,LineString:y.readLineStringGeometry_,Polygon:y.readPolygonGeometry_,MultiPoint:y.readMultiPointGeometry_,MultiLineString:y.readMultiLineStringGeometry_,MultiPolygon:y.readMultiPolygonGeometry_,GeometryCollection:y.readGeometryCollectionGeometry_},y.GEOMETRY_WRITERS_={Point:y.writePointGeometry_,LineString:y.writeLineStringGeometry_,Polygon:y.writePolygonGeometry_,MultiPoint:y.writeMultiPointGeometry_,MultiLineString:y.writeMultiLineStringGeometry_,MultiPolygon:y.writeMultiPolygonGeometry_,GeometryCollection:y.writeGeometryCollectionGeometry_,Circle:y.writeEmptyGeometryCollectionGeometry_},y.prototype.readFeature,y.prototype.readFeatures,y.prototype.readFeatureFromObject=function(t,e){var i=null;i="Feature"===t.type?t:{type:"Feature",geometry:t};var n=y.readGeometry_(i.geometry,e),r=new o.a;return this.geometryName_?r.setGeometryName(this.geometryName_):this.extractGeometryName_&&void 0!==i.geometry_name&&r.setGeometryName(i.geometry_name),r.setGeometry(n),void 0!==i.id&&r.setId(i.id),i.properties&&r.setProperties(i.properties),r},y.prototype.readFeaturesFromObject=function(t,e){var i=t,n=null;if("FeatureCollection"===i.type){var r=t;n=[];var o,a,s=r.features;for(o=0,a=s.length;o<a;++o)n.push(this.readFeatureFromObject(s[o],e))}else n=[this.readFeatureFromObject(t,e)];return n},y.prototype.readGeometry,y.prototype.readGeometryFromObject=function(t,e){return y.readGeometry_(t,e)},y.prototype.readProjection,y.prototype.readProjectionFromObject=function(t){var e,i=t,n=i.crs;return n?"name"==n.type?e=_.default.get(n.properties.name):r.a.assert(!1,36):e=this.defaultDataProjection,e},y.prototype.writeFeature,y.prototype.writeFeatureObject=function(t,e){e=this.adaptOptions(e);var i={type:"Feature"},n=t.getId();void 0!==n&&(i.id=n);var r=t.getGeometry();i.geometry=r?y.writeGeometry_(r,e):null;var o=t.getProperties();return delete o[t.getGeometryName()],g.a.isEmpty(o)?i.properties=null:i.properties=o,i},y.prototype.writeFeatures,y.prototype.writeFeaturesObject=function(t,e){e=this.adaptOptions(e);var i,n,r=[];for(i=0,n=t.length;i<n;++i)r.push(this.writeFeatureObject(t[i],e));return{type:"FeatureCollection",features:r}},y.prototype.writeGeometry,y.prototype.writeGeometryObject=function(t,e){return y.writeGeometry_(t,this.adaptOptions(e))},e.default=y},function(t,e,i){"use strict";var n={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"};e.a=n},function(t,e,i){"use strict";var n=i(5),r=i(6),o={};o.lineString=function(t,e,i,o,a,s){var l=NaN,u=NaN,c=(i-e)/o;if(1===c)l=t[e],u=t[e+1];else if(2==c)l=(1-a)*t[e]+a*t[e+o],u=(1-a)*t[e+1]+a*t[e+o+1];else if(0!==c){var h,d=t[e],f=t[e+1],p=0,g=[0];for(h=e+o;h<i;h+=o){var _=t[h],y=t[h+1];p+=Math.sqrt((_-d)*(_-d)+(y-f)*(y-f)),g.push(p),d=_,f=y}var v=a*p,m=n.a.binarySearch(g,v);if(m<0){var E=(v-g[-m-2])/(g[-m-1]-g[-m-2]),T=e+(-m-2)*o;l=r.a.lerp(t[T],t[T+o],E),u=r.a.lerp(t[T+1],t[T+o+1],E)}else l=t[e+m*o],u=t[e+m*o+1]}return s?(s[0]=l,s[1]=u,s):[l,u]},o.lineStringCoordinateAtM=function(t,e,i,n,o,a){if(i==e)return null;var s;if(o<t[e+n-1])return a?(s=t.slice(e,e+n),s[n-1]=o,s):null;if(t[i-1]<o)return a?(s=t.slice(i-n,i),s[n-1]=o,s):null;if(o==t[e+n-1])return t.slice(e,e+n);for(var l=e/n,u=i/n;l<u;){var c=l+u>>1;o<t[(c+1)*n-1]?u=c:l=c+1}var h=t[l*n-1];if(o==h)return t.slice((l-1)*n,(l-1)*n+n);var d=t[(l+1)*n-1],f=(o-h)/(d-h);s=[];var p;for(p=0;p<n-1;++p)s.push(r.a.lerp(t[(l-1)*n+p],t[l*n+p],f));return s.push(o),s},o.lineStringsCoordinateAtM=function(t,e,i,n,r,a,s){if(s)return o.lineStringCoordinateAtM(t,e,i[i.length-1],n,r,a);var l;if(r<t[n-1])return a?(l=t.slice(0,n),l[n-1]=r,l):null;if(t[t.length-1]<r)return a?(l=t.slice(t.length-n),l[n-1]=r,l):null;var u,c;for(u=0,c=i.length;u<c;++u){var h=i[u];if(e!=h){if(r<t[e+n-1])return null;if(r<=t[h-1])return o.lineStringCoordinateAtM(t,e,h,n,r,!1);e=h}}return null},e.a=o},function(t,e,i){"use strict";var n=i(0),r=i(341),o=i(190),a=i(15),s=i(3),l=i(4),u=i(11),c=i(342),h=i(192),d=i(34),f=i(33),p=function t(e){h.a.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,extent:e.extent,logo:e.logo,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:t.defaultTileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition}),this.crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,this.tileClass=void 0!==e.tileClass?e.tileClass:r.a,this.tileCacheForProjection={},this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1};n.a.inherits(p,h.a),p.prototype.canExpireCache=function(){if(!n.a.ENABLE_RASTER_REPROJECTION)return h.a.prototype.canExpireCache.call(this);if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},p.prototype.expireCache=function(t,e){if(!n.a.ENABLE_RASTER_REPROJECTION)return void h.a.prototype.expireCache.call(this,t,e);var i=this.getTileCacheForProjection(t);this.tileCache.expireCache(this.tileCache==i?e:{});for(var r in this.tileCacheForProjection){var o=this.tileCacheForProjection[r];o.expireCache(o==i?e:{})}},p.prototype.getGutter=function(t){return n.a.ENABLE_RASTER_REPROJECTION&&this.getProjection()&&t&&!u.default.equivalent(this.getProjection(),t)?0:this.getGutterInternal()},p.prototype.getGutterInternal=function(){return 0},p.prototype.getOpaque=function(t){return!(n.a.ENABLE_RASTER_REPROJECTION&&this.getProjection()&&t&&!u.default.equivalent(this.getProjection(),t))&&h.a.prototype.getOpaque.call(this,t)},p.prototype.getTileGridForProjection=function(t){if(!n.a.ENABLE_RASTER_REPROJECTION)return h.a.prototype.getTileGridForProjection.call(this,t);var e=this.getProjection();if(!this.tileGrid||e&&!u.default.equivalent(e,t)){var i=n.a.getUid(t).toString();return i in this.tileGridForProjection||(this.tileGridForProjection[i]=f.default.getForProjection(t)),this.tileGridForProjection[i]}return this.tileGrid},p.prototype.getTileCacheForProjection=function(t){if(!n.a.ENABLE_RASTER_REPROJECTION)return h.a.prototype.getTileCacheForProjection.call(this,t);var e=this.getProjection();if(!e||u.default.equivalent(e,t))return this.tileCache;var i=n.a.getUid(t).toString();return i in this.tileCacheForProjection||(this.tileCacheForProjection[i]=new o.a(this.tileCache.highWaterMark)),this.tileCacheForProjection[i]},p.prototype.createTile_=function(t,e,i,n,r,o){var u=[t,e,i],c=this.getTileCoordForTileUrlFunction(u,r),h=c?this.tileUrlFunction(c,n,r):void 0,d=new this.tileClass(u,void 0!==h?a.a.IDLE:a.a.EMPTY,void 0!==h?h:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return d.key=o,s.a.listen(d,l.a.CHANGE,this.handleTileChange,this),d},p.prototype.getTile=function(t,e,i,r,o){var a=this.getProjection();if(n.a.ENABLE_RASTER_REPROJECTION&&a&&o&&!u.default.equivalent(a,o)){var s,l=this.getTileCacheForProjection(o),h=[t,e,i],f=d.a.getKey(h);l.containsKey(f)&&(s=l.get(f));var p=this.getKey();if(s&&s.key==p)return s;var g=this.getTileGridForProjection(a),_=this.getTileGridForProjection(o),y=this.getTileCoordForTileUrlFunction(h,o),v=new c.a(a,g,o,_,h,y,this.getTilePixelRatio(r),this.getGutterInternal(),function(t,e,i,n){return this.getTileInternal(t,e,i,n,a)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_);return v.key=p,s?(v.interimTile=s,v.refreshInterimChain(),l.replace(f,v)):l.set(f,v),v}return this.getTileInternal(t,e,i,r,a||o)},p.prototype.getTileInternal=function(t,e,i,n,r){var o=null,s=d.a.getKeyZXY(t,e,i),l=this.getKey();if(this.tileCache.containsKey(s)){if(o=this.tileCache.get(s),o.key!=l){var u=o;o=this.createTile_(t,e,i,n,r,l),u.getState()==a.a.IDLE?o.interimTile=u.interimTile:o.interimTile=u,o.refreshInterimChain(),this.tileCache.replace(s,o)}}else o=this.createTile_(t,e,i,n,r,l),this.tileCache.set(s,o);return o},p.prototype.setRenderReprojectionEdges=function(t){if(n.a.ENABLE_RASTER_REPROJECTION&&this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(var e in this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}},p.prototype.setTileGridForProjection=function(t,e){if(n.a.ENABLE_RASTER_REPROJECTION){var i=u.default.get(t);if(i){var r=n.a.getUid(i).toString();r in this.tileGridForProjection||(this.tileGridForProjection[r]=e)}}},p.defaultTileLoadFunction=function(t,e){t.getImage().src=e},e.a=p},function(t,e,i){"use strict";var n=i(9),r=i(1),o=i(6),a=i(11),s={};s.calculateSourceResolution=function(t,e,i,n){var o=a.default.transform(i,e,t),s=a.default.getPointResolution(e,n,i),l=e.getMetersPerUnit();void 0!==l&&(s*=l);var u=t.getMetersPerUnit();void 0!==u&&(s/=u);var c=t.getExtent();if(!c||r.a.containsCoordinate(c,o)){var h=a.default.getPointResolution(t,s,o)/s;isFinite(h)&&h>0&&(s/=h)}return s},s.enlargeClipPoint_=function(t,e,i,n){var r=i-t,o=n-e,a=Math.sqrt(r*r+o*o);return[Math.round(i+r/a),Math.round(n+o/a)]},s.render=function(t,e,i,a,l,u,c,h,d,f,p){var g=n.a.createCanvasContext2D(Math.round(i*t),Math.round(i*e));if(0===d.length)return g.canvas;g.scale(i,i);var _=r.a.createEmpty();d.forEach(function(t,e,i){r.a.extend(_,t.extent)});var y=r.a.getWidth(_),v=r.a.getHeight(_),m=n.a.createCanvasContext2D(Math.round(i*y/a),Math.round(i*v/a)),E=i/a;d.forEach(function(t,e,i){var n=t.extent[0]-_[0],o=-(t.extent[3]-_[3]),a=r.a.getWidth(t.extent),s=r.a.getHeight(t.extent);m.drawImage(t.image,f,f,t.image.width-2*f,t.image.height-2*f,n*E,o*E,a*E,s*E)});var T=r.a.getTopLeft(c);return h.getTriangles().forEach(function(t,e,n){var r=t.source,l=t.target,c=r[0][0],h=r[0][1],d=r[1][0],f=r[1][1],p=r[2][0],y=r[2][1],v=(l[0][0]-T[0])/u,E=-(l[0][1]-T[1])/u,S=(l[1][0]-T[0])/u,x=-(l[1][1]-T[1])/u,C=(l[2][0]-T[0])/u,R=-(l[2][1]-T[1])/u,b=c,I=h;c=0,h=0,d-=b,f-=I,p-=b,y-=I;var O=[[d,f,0,0,S-v],[p,y,0,0,C-v],[0,0,d,f,x-E],[0,0,p,y,R-E]],P=o.a.solveLinearSystem(O);if(P){g.save(),g.beginPath();var w=(v+S+C)/3,L=(E+x+R)/3,A=s.enlargeClipPoint_(w,L,v,E),M=s.enlargeClipPoint_(w,L,S,x),F=s.enlargeClipPoint_(w,L,C,R);g.moveTo(M[0],M[1]),g.lineTo(A[0],A[1]),g.lineTo(F[0],F[1]),g.clip(),g.transform(P[0],P[2],P[1],P[3],v,E),g.translate(_[0]-b,_[3]-I),g.scale(a/i,-a/i),g.drawImage(m.canvas,0,0),g.restore()}}),p&&(g.save(),g.strokeStyle="black",g.lineWidth=1,h.getTriangles().forEach(function(t,e,i){var n=t.target,r=(n[0][0]-T[0])/u,o=-(n[0][1]-T[1])/u,a=(n[1][0]-T[0])/u,s=-(n[1][1]-T[1])/u,l=(n[2][0]-T[0])/u,c=-(n[2][1]-T[1])/u;g.beginPath(),g.moveTo(a,s),g.lineTo(r,o),g.lineTo(l,c),g.closePath(),g.stroke()}),g.restore()),g.canvas},e.a=s},function(t,e,i){"use strict";var n=i(0),r=i(344),o=i(16),a=i(11),s=i(37),l=function(t){o.a.call(this),this.projection_=a.default.get(t.projection),this.attributions_=null,this.attributions2_=this.adaptAttributions_(t.attributions),this.logo_=t.logo,this.state_=void 0!==t.state?t.state:s.a.READY,this.wrapX_=void 0!==t.wrapX&&t.wrapX};n.a.inherits(l,o.a),l.prototype.adaptAttributions_=function(t){if(!t)return null;if(t instanceof r.a)return this.attributions_=[t],function(e){return[t.getHTML()]};if(Array.isArray(t)){if(t[0]instanceof r.a){this.attributions_=t;var e=t.map(function(t){return t.getHTML()});return function(t){return e}}return this.attributions_=t.map(function(t){return new r.a({html:t})}),function(e){return t}}return"function"===typeof t?t:(this.attributions_=[new r.a({html:t})],function(e){return[t]})},l.prototype.forEachFeatureAtCoordinate=n.a.nullFunction,l.prototype.getAttributions=function(){return this.attributions_},l.prototype.getAttributions2=function(){return this.attributions2_},l.prototype.getLogo=function(){return this.logo_},l.prototype.getProjection=function(){return this.projection_},l.prototype.getResolutions=function(){},l.prototype.getState=function(){return this.state_},l.prototype.getWrapX=function(){return this.wrapX_},l.prototype.refresh=function(){this.changed()},l.prototype.setAttributions=function(t){this.attributions2_=this.adaptAttributions_(t),this.changed()},l.prototype.setLogo=function(t){this.logo_=t},l.prototype.setState=function(t){this.state_=t,this.changed()},e.a=l},function(t,e,i){"use strict";function n(t,e){return{type:V.MAP.SET_VIEW,view:{center:t,zoom:e}}}function r(){return{type:V.MAP.ZOOM_IN}}function o(){return{type:V.MAP.ZOOM_OUT}}function a(t){return{type:V.MAP.SET_ZOOM,zoom:t}}function s(t,e,i){return{type:V.MAP.FIT_EXTENT,extent:t,size:e,projection:i}}function l(t){return{type:V.MAP.SET_NAME,name:t}}function u(t){return{type:V.MAP.SET_BEARING,bearing:t}}function c(t,e,i){return{type:V.MAP.ADD_LAYER,layerDef:t,layerTitle:e,positionId:i}}function h(t,e){if(-1===z.indexOf(e.type))throw new Error("Invalid source type: "+e.type+".  Valid source types are "+z.toString());return{type:V.MAP.ADD_SOURCE,sourceName:t,sourceDef:e}}function d(t){return{type:V.MAP.REMOVE_LAYER,layerId:t}}function f(t){return{type:V.MAP.REMOVE_SOURCE,sourceName:t}}function p(t,e){return{type:V.MAP.UPDATE_LAYER,layerId:t,layerDef:e}}function g(t){return{type:V.MAP.CLEAR_LAYER_FILTER,layerId:t}}function _(t,e){return{type:V.MAP.CLUSTER_POINTS,sourceName:t,cluster:e}}function y(t,e){return{type:V.MAP.SET_CLUSTER_RADIUS,sourceName:t,radius:e}}function v(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return{type:V.MAP.ADD_FEATURES,sourceName:t,features:e,position:i}}function m(t,e){return{type:V.MAP.REMOVE_FEATURES,sourceName:t,filter:e}}function E(t,e){return{type:V.MAP.SET_LAYER_VISIBILITY,layerId:t,visibility:e}}function T(t,e){return{type:V.MAP.SET_LAYER_IN_GROUP_VISIBLE,layerId:t,groupId:e}}function S(t,e,i){return{type:V.MAP.SET_LAYER_METADATA,layerId:t,key:e,value:i}}function x(t,e){return S(t,Y.TITLE_KEY,e)}function C(t,e){return S(t,Y.TIME_KEY,e)}function R(t){return{type:V.MAP.RECEIVE_CONTEXT,context:t}}function b(t){return function(e){return t.url?(0,B.default)(t.url).then(function(t){return t.json()},function(t){return console.error("An error occured.",t)}).then(function(t){return e(R(t))}):t.json?new Promise(function(i){e(R(t.json)),i()}):new Promise(function(t,e){e("Invalid option for setContext. Specify either json or url.")})}}function I(t,e){return{type:V.MAP.ORDER_LAYER,layerId:t,targetId:e}}function O(t){return{type:V.MAP.SET_SPRITE,sprite:t}}function P(t){return{type:V.MAP.SET_GLYPHS,glyphs:t}}function w(t){return{type:V.MAP.UPDATE_METADATA,metadata:t}}function L(t,e){return{type:V.MAP.ADD_GROUP,id:t,config:e}}function A(t){return{type:V.MAP.REMOVE_GROUP,id:t}}function M(t,e){return{type:V.MAP.UPDATE_SOURCE,sourceName:t,sourceDef:e}}function F(t){var e={};return e[Y.TIME_KEY]=t,w(e)}function N(t,e){return{type:V.MAP.MOVE_GROUP,placeAt:e,group:t}}function D(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=n.tileSize?n.tileSize:256,o=n.projection?n.projection:"EPSG:3857",a=!1!==n.asVector?"application/x-protobuf;type=mapbox-vector":"image/png",s={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:a,TRANSPARENT:"TRUE",LAYERS:i,WIDTH:r,HEIGHT:r,CRS:o};n.accessToken&&(s.ACCESS_TOKEN=n.accessToken);var l=e+"?"+(0,W.encodeQueryObject)(s)+"&BBOX={bbox-epsg-3857}";return!1!==n.asVector?h(t,{type:"vector",tiles:[l]}):h(t,{type:"raster",tileSize:r,tiles:[l]})}function k(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r={SERVICE:"WFS",VERSION:"1.1.0",SRSNAME:"EPSG:4326",REQUEST:"GetFeature",TYPENAME:i,OUTPUTFORMAT:"JSON"};return n.accessToken&&(r.ACCESS_TOKEN=n.accessToken),h(t,{type:"geojson",data:e+"?"+(0,W.encodeQueryObject)(r)})}function G(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return h(t,{type:"vector",tiles:[e+"/gwc/service/tms/1.0.0/"+i+"@EPSG%3A3857@pbf/{z}/{x}/{-y}.pbf?"+(n.accessToken?"access_token="+n.accessToken:"")]})}function U(t){return h(t,{type:"raster",tileSize:256,attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.',tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png","https://c.tile.openstreetmap.org/{z}/{x}/{y}.png"]})}Object.defineProperty(e,"__esModule",{value:!0}),e.setView=n,e.zoomIn=r,e.zoomOut=o,e.setZoom=a,e.fitExtent=s,e.setMapName=l,e.setBearing=u,e.addLayer=c,e.addSource=h,e.removeLayer=d,e.removeSource=f,e.updateLayer=p,e.clearLayerFilter=g,e.clusterPoints=_,e.setClusterRadius=y,e.addFeatures=v,e.removeFeatures=m,e.setLayerVisibility=E,e.setLayerInGroupVisible=T,e.setLayerMetadata=S,e.setLayerTitle=x,e.setLayerTime=C,e.receiveContext=R,e.setContext=b,e.orderLayer=I,e.setSprite=O,e.setGlyphs=P,e.updateMetadata=w,e.addGroup=L,e.removeGroup=A,e.updateSource=M,e.setMapTime=F,e.moveGroup=N,e.addWmsSource=D,e.addWfsSource=k,e.addTmsSource=G,e.addOsmSource=U;var j=i(134),B=function(t){return t&&t.__esModule?t:{default:t}}(j),V=i(89),Y=i(68),W=i(120),z=["vector","raster","geojson","image","video","canvas"]},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){return JSON.stringify(t)===JSON.stringify(e)}function o(t,e){return new I.default({projection:e}).getResolutionForZoom(t)/2}function a(t,e){return new I.default({projection:e}).getZoomForResolution(t)-1}function s(t,e,i){var n=R.default.transformExtent(t,"EPSG:4326",i),r=(n[2]-n[0])/e[0],o=(n[3]-n[1])/e[1];return Math.max(r,o)}function l(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i].id===e)return t[i];return null}function u(t){var e=null;return t&&t.metadata&&t.metadata[T.GROUP_KEY]&&(e=t.metadata[T.GROUP_KEY]),e}function c(t){for(var e=t.split("&"),i={},n=0,r=e.length;n<r;n++){var o=e[n].indexOf("="),a=e[n].substring(0,o),s=decodeURIComponent(e[n].substring(o+1));i[a]=s}return i}function h(t){for(var e=Object.keys(t),i=[],n=0,r=e.length;n<r;n++){var o=encodeURIComponent(t[e[n]]);i.push(e[n]+"="+o)}return i.join("&")}function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326",i=new x.default,n=i.readProjectionFromObject(t).getCode(),r={featureProjection:e,dataProjection:n},o={featureProjection:e,dataProjection:e},a={type:"FeatureCollection",features:t.features};return i.writeFeaturesObject(i.readFeatures(a,r),o).features}function f(t){return t*Math.PI/180}function p(t){return 180*t/Math.PI}function g(t){return JSON.parse(JSON.stringify(t))}function _(t,e){return void 0===t||null===t?t:t[e]}function y(t){return void 0===t||void 0===t.layout||"none"!==t.layout.visibility}function v(t,e){for(var i=t.length-1;i>=0;i--)if(t[i].id===e)return i;return-1}function m(t){return t.metadata&&t.metadata[T.TITLE_KEY]?t.metadata[T.TITLE_KEY]:t.id}function E(t,e){for(var i=[],n=0,r=t.length;n<r;n++)u(t[n])===e&&i.push(t[n]);return i}Object.defineProperty(e,"__esModule",{value:!0}),e.jsonEquals=r,e.getResolutionForZoom=o,e.getZoomForResolution=a,e.getResolutionForExtent=s,e.getLayerById=l,e.getGroup=u,e.parseQueryString=c,e.encodeQueryObject=h,e.reprojectGeoJson=d,e.degreesToRadians=f,e.radiansToDegrees=p,e.jsonClone=g,e.getKey=_,e.isLayerVisible=y,e.getLayerIndexById=v,e.getLayerTitle=m,e.getLayersByGroup=E;var T=i(68),S=i(113),x=n(S),C=i(11),R=n(C),b=i(102),I=n(b)},function(t,e,i){"use strict";function n(){}function r(t){try{return t.then}catch(t){return v=t,m}}function o(t,e){try{return t(e)}catch(t){return v=t,m}}function a(t,e,i){try{t(e,i)}catch(t){return v=t,m}}function s(t){if("object"!==_(this))throw new TypeError("Promises must be constructed via new");if("function"!==typeof t)throw new TypeError("Promise constructor's argument is not a function");this._75=0,this._83=0,this._18=null,this._38=null,t!==n&&g(t,this)}function l(t,e,i){return new t.constructor(function(r,o){var a=new s(n);a.then(r,o),u(t,new p(e,i,a))})}function u(t,e){for(;3===t._83;)t=t._18;if(s._47&&s._47(t),0===t._83)return 0===t._75?(t._75=1,void(t._38=e)):1===t._75?(t._75=2,void(t._38=[t._38,e])):void t._38.push(e);c(t,e)}function c(t,e){y(function(){var i=1===t._83?e.onFulfilled:e.onRejected;if(null===i)return void(1===t._83?h(e.promise,t._18):d(e.promise,t._18));var n=o(i,t._18);n===m?d(e.promise,v):h(e.promise,n)})}function h(t,e){if(e===t)return d(t,new TypeError("A promise cannot be resolved with itself."));if(e&&("object"===("undefined"===typeof e?"undefined":_(e))||"function"===typeof e)){var i=r(e);if(i===m)return d(t,v);if(i===t.then&&e instanceof s)return t._83=3,t._18=e,void f(t);if("function"===typeof i)return void g(i.bind(e),t)}t._83=1,t._18=e,f(t)}function d(t,e){t._83=2,t._18=e,s._71&&s._71(t,e),f(t)}function f(t){if(1===t._75&&(u(t,t._38),t._38=null),2===t._75){for(var e=0;e<t._38.length;e++)u(t,t._38[e]);t._38=null}}function p(t,e,i){this.onFulfilled="function"===typeof t?t:null,this.onRejected="function"===typeof e?e:null,this.promise=i}function g(t,e){var i=!1,n=a(t,function(t){i||(i=!0,h(e,t))},function(t){i||(i=!0,d(e,t))});i||n!==m||(i=!0,d(e,v))}var _="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y=i(203),v=null,m={};t.exports=s,s._47=null,s._71=null,s._44=n,s.prototype.then=function(t,e){if(this.constructor!==s)return l(this,t,e);var i=new s(n);return u(this,new p(t,e,i)),i}},function(t,e){!function(t){"use strict";function e(t){if("string"!==typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function i(t){return"string"!==typeof t&&(t=String(t)),t}function n(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return y.iterable&&(e[Symbol.iterator]=function(){return e}),e}function r(t){this.map={},t instanceof r?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function o(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function a(t){return new Promise(function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}})}function s(t){var e=new FileReader,i=a(e);return e.readAsArrayBuffer(t),i}function l(t){var e=new FileReader,i=a(e);return e.readAsText(t),i}function u(t){for(var e=new Uint8Array(t),i=new Array(e.length),n=0;n<e.length;n++)i[n]=String.fromCharCode(e[n]);return i.join("")}function c(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t)if("string"===typeof t)this._bodyText=t;else if(y.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(y.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(y.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(y.arrayBuffer&&y.blob&&m(t))this._bodyArrayBuffer=c(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!y.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t)&&!E(t))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=c(t)}else this._bodyText="";this.headers.get("content-type")||("string"===typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):y.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},y.blob&&(this.blob=function(){var t=o(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?o(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(s)}),this.text=function(){var t=o(this);if(t)return t;if(this._bodyBlob)return l(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(u(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},y.formData&&(this.formData=function(){return this.text().then(p)}),this.json=function(){return this.text().then(JSON.parse)},this}function d(t){var e=t.toUpperCase();return T.indexOf(e)>-1?e:t}function f(t,e){e=e||{};var i=e.body;if(t instanceof f){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new r(t.headers)),this.method=t.method,this.mode=t.mode,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new r(e.headers)),this.method=d(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function p(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var i=t.split("="),n=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(r))}}),e}function g(t){var e=new r;return t.split(/\r?\n/).forEach(function(t){var i=t.split(":"),n=i.shift().trim();if(n){var r=i.join(":").trim();e.append(n,r)}}),e}function _(t,e){e||(e={}),this.type="default",this.status="status"in e?e.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new r(e.headers),this.url=e.url||"",this._initBody(t)}if(!t.fetch){var y={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(y.arrayBuffer)var v=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],m=function(t){return t&&DataView.prototype.isPrototypeOf(t)},E=ArrayBuffer.isView||function(t){return t&&v.indexOf(Object.prototype.toString.call(t))>-1};r.prototype.append=function(t,n){t=e(t),n=i(n);var r=this.map[t];this.map[t]=r?r+","+n:n},r.prototype.delete=function(t){delete this.map[e(t)]},r.prototype.get=function(t){return t=e(t),this.has(t)?this.map[t]:null},r.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},r.prototype.set=function(t,n){this.map[e(t)]=i(n)},r.prototype.forEach=function(t,e){for(var i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},r.prototype.keys=function(){var t=[];return this.forEach(function(e,i){t.push(i)}),n(t)},r.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),n(t)},r.prototype.entries=function(){var t=[];return this.forEach(function(e,i){t.push([i,e])}),n(t)},y.iterable&&(r.prototype[Symbol.iterator]=r.prototype.entries);var T=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];f.prototype.clone=function(){return new f(this,{body:this._bodyInit})},h.call(f.prototype),h.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new r(this.headers),url:this.url})},_.error=function(){var t=new _(null,{status:0,statusText:""});return t.type="error",t};var S=[301,302,303,307,308];_.redirect=function(t,e){if(-1===S.indexOf(e))throw new RangeError("Invalid status code");return new _(null,{status:e,headers:{location:t}})},t.Headers=r,t.Request=f,t.Response=_,t.fetch=function(t,e){return new Promise(function(i,n){var r=new f(t,e),o=new XMLHttpRequest;o.onload=function(){var t={status:o.status,statusText:o.statusText,headers:g(o.getAllResponseHeaders()||"")};t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL");var e="response"in o?o.response:o.responseText;i(new _(e,t))},o.onerror=function(){n(new TypeError("Network request failed"))},o.ontimeout=function(){n(new TypeError("Network request failed"))},o.open(r.method,r.url,!0),"include"===r.credentials&&(o.withCredentials=!0),"responseType"in o&&y.blob&&(o.responseType="blob"),r.headers.forEach(function(t,e){o.setRequestHeader(e,t)}),o.send("undefined"===typeof r._bodyInit?null:r._bodyInit)})},t.fetch.polyfill=!0}}("undefined"!==typeof self?self:this)},function(t,e,i){"use strict";var n={};t.exports=n},function(t,e,i){"use strict";function n(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(t){console.error(t)}}n(),t.exports=i(207)},function(t,e,i){"use strict";var n=i(126),r=i(231),o=i(232),a=i(233);i(129),i(128);i.d(e,"d",function(){return n.b}),i.d(e,"c",function(){return r.a}),i.d(e,"b",function(){return o.a}),i.d(e,"a",function(){return a.a})},function(t,e,i){"use strict";function n(t,e,i){function l(){v===y&&(v=y.slice())}function u(){return _}function c(t){if("function"!==typeof t)throw new Error("Expected listener to be a function.");var e=!0;return l(),v.push(t),function(){if(e){e=!1,l();var i=v.indexOf(t);v.splice(i,1)}}}function h(t){if(!Object(r.a)(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(m)throw new Error("Reducers may not dispatch actions.");try{m=!0,_=g(_,t)}finally{m=!1}for(var e=y=v,i=0;i<e.length;i++){(0,e[i])()}return t}function d(t){if("function"!==typeof t)throw new Error("Expected the nextReducer to be a function.");g=t,h({type:s.INIT})}function f(){var t,e=c;return t={subscribe:function(t){function i(){t.next&&t.next(u())}if("object"!==("undefined"===typeof t?"undefined":a(t)))throw new TypeError("Expected the observer to be an object.");return i(),{unsubscribe:e(i)}}},t[o.a]=function(){return this},t}var p;if("function"===typeof e&&"undefined"===typeof i&&(i=e,e=void 0),"undefined"!==typeof i){if("function"!==typeof i)throw new Error("Expected the enhancer to be a function.");return i(n)(t,e)}if("function"!==typeof t)throw new Error("Expected the reducer to be a function.");var g=t,_=e,y=[],v=y,m=!1;return h({type:s.INIT}),p={dispatch:h,subscribe:c,getState:u,replaceReducer:d},p[o.a]=f,p}i.d(e,"a",function(){return s}),e.b=n;var r=i(92),o=i(228),a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s={INIT:"@@redux/INIT"}},function(t,e,i){"use strict";var n=i(221),r=n.a.Symbol;e.a=r},function(t,e,i){"use strict"},function(t,e,i){"use strict";function n(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce(function(t,e){return function(){return t(e.apply(void 0,arguments))}})}e.a=n},function(t,e,i){"use strict";i.d(e,"b",function(){return o}),i.d(e,"a",function(){return a});var n=i(93),r=i.n(n),o=r.a.shape({trySubscribe:r.a.func.isRequired,tryUnsubscribe:r.a.func.isRequired,notifyNestedSubs:r.a.func.isRequired,isSubscribed:r.a.func.isRequired}),a=r.a.shape({subscribe:r.a.func.isRequired,dispatch:r.a.func.isRequired,getState:r.a.func.isRequired})},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"===typeof e?"undefined":y(e))&&"function"!==typeof e?t:e}function o(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof e?"undefined":y(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e){var i={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n]);return i}function s(){}function l(t,e){var i={run:function(n){try{var r=t(e.getState(),n);(r!==i.props||i.error)&&(i.shouldComponentUpdate=!0,i.props=r,i.error=null)}catch(t){i.shouldComponentUpdate=!0,i.error=t}}};return i}function u(t){var e,i,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=u.getDisplayName,d=void 0===c?function(t){return"ConnectAdvanced("+t+")"}:c,y=u.methodName,T=void 0===y?"connectAdvanced":y,S=u.renderCountProp,x=void 0===S?void 0:S,C=u.shouldHandleStateChanges,R=void 0===C||C,b=u.storeKey,I=void 0===b?"store":b,O=u.withRef,P=void 0!==O&&O,w=a(u,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),L=I+"Subscription",A=m++,M=(e={},e[I]=_.a,e[L]=_.b,e),F=(i={},i[L]=_.b,i);return function(e){f()("function"==typeof e,"You must pass a component to the function returned by connect. Instead received "+JSON.stringify(e));var i=e.displayName||e.name||"Component",a=d(i),u=v({},w,{getDisplayName:d,methodName:T,renderCountProp:x,shouldHandleStateChanges:R,storeKey:I,withRef:P,displayName:a,wrappedComponentName:i,WrappedComponent:e}),c=function(i){function c(t,e){n(this,c);var o=r(this,i.call(this,t,e));return o.version=A,o.state={},o.renderCount=0,o.store=t[I]||e[I],o.propsMode=Boolean(t[I]),o.setWrappedInstance=o.setWrappedInstance.bind(o),f()(o.store,'Could not find "'+I+'" in either the context or props of "'+a+'". Either wrap the root component in a <Provider>, or explicitly pass "'+I+'" as a prop to "'+a+'".'),o.initSelector(),o.initSubscription(),o}return o(c,i),c.prototype.getChildContext=function(){var t,e=this.propsMode?null:this.subscription;return t={},t[L]=e||this.context[L],t},c.prototype.componentDidMount=function(){R&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},c.prototype.componentWillReceiveProps=function(t){this.selector.run(t)},c.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},c.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=s,this.store=null,this.selector.run=s,this.selector.shouldComponentUpdate=!1},c.prototype.getWrappedInstance=function(){return f()(P,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+T+"() call."),this.wrappedInstance},c.prototype.setWrappedInstance=function(t){this.wrappedInstance=t},c.prototype.initSelector=function(){var e=t(this.store.dispatch,u);this.selector=l(e,this.store),this.selector.run(this.props)},c.prototype.initSubscription=function(){if(R){var t=(this.propsMode?this.props:this.context)[L];this.subscription=new g.a(this.store,t,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},c.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(E)):this.notifyNestedSubs()},c.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},c.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},c.prototype.addExtraProps=function(t){if(!P&&!x&&(!this.propsMode||!this.subscription))return t;var e=v({},t);return P&&(e.ref=this.setWrappedInstance),x&&(e[x]=this.renderCount++),this.propsMode&&this.subscription&&(e[L]=this.subscription),e},c.prototype.render=function(){var t=this.selector;if(t.shouldComponentUpdate=!1,t.error)throw t.error;return Object(p.createElement)(e,this.addExtraProps(t.props))},c}(p.Component);return c.WrappedComponent=e,c.displayName=a,c.childContextTypes=F,c.contextTypes=M,c.propTypes=M,h()(c,e)}}e.a=u;var c=i(239),h=i.n(c),d=i(240),f=i.n(d),p=i(31),g=(i.n(p),i(241)),_=i(130),y="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},m=0,E={}},function(t,e,i){"use strict";function n(t){return function(e,i){function n(){return r}var r=t(e,i);return n.dependsOnOwnProps=!1,n}}function r(t){return null!==t.dependsOnOwnProps&&void 0!==t.dependsOnOwnProps?Boolean(t.dependsOnOwnProps):1!==t.length}function o(t,e){return function(e,i){var n=(i.displayName,function(t,e){return n.dependsOnOwnProps?n.mapToProps(t,e):n.mapToProps(t)});return n.dependsOnOwnProps=!0,n.mapToProps=function(e,i){n.mapToProps=t,n.dependsOnOwnProps=r(t);var o=n(e,i);return"function"===typeof o&&(n.mapToProps=o,n.dependsOnOwnProps=r(o),o=n(e,i)),o},n}}e.a=n,e.b=o;i(133)},function(t,e,i){"use strict";i(92),i(94)},function(t,e,i){i(122),t.exports=self.fetch.bind(self)},function(t,e){var i="undefined"!=typeof crypto&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&msCrypto.getRandomValues.bind(msCrypto);if(i){var n=new Uint8Array(16);t.exports=function(){return i(n),n}}else{var r=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0===(3&e)&&(t=4294967296*Math.random()),r[e]=t>>>((3&e)<<3)&255;return r}}},function(t,e){function i(t,e){var i=e||0,r=n;return r[t[i++]]+r[t[i++]]+r[t[i++]]+r[t[i++]]+"-"+r[t[i++]]+r[t[i++]]+"-"+r[t[i++]]+r[t[i++]]+"-"+r[t[i++]]+r[t[i++]]+"-"+r[t[i++]]+r[t[i++]]+r[t[i++]]+r[t[i++]]+r[t[i++]]+r[t[i++]]}for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.exports=i},function(t,e,i){function n(t){return t}function r(t,e){var i="color"===e.type,c=void 0;if(h(t)){var d=t.stops&&"object"===f(t.stops[0][0]),y=d||void 0!==t.property,v=d||!y,m=t.type||("interpolated"===e.function?"exponential":"interval");i&&(t=_({},t),t.stops&&(t.stops=t.stops.map(function(t){return[t[0],g(t[1])]})),t.default?t.default=g(t.default):t.default=g(e.default));var E=void 0,T=void 0,S=void 0;if("exponential"===m)E=l;else if("interval"===m)E=s;else if("categorical"===m){E=a,T=Object.create(null);var x=!0,C=!1,R=void 0;try{for(var b,I=t.stops[Symbol.iterator]();!(x=(b=I.next()).done);x=!0){var O=b.value;T[O[0]]=O[1]}}catch(t){C=!0,R=t}finally{try{!x&&I.return&&I.return()}finally{if(C)throw R}}S=f(t.stops[0][0])}else{if("identity"!==m)throw new Error('Unknown function type "'+m+'"');E=u}var P=void 0;if(t.colorSpace&&"rgb"!==t.colorSpace){if(!p[t.colorSpace])throw new Error("Unknown color space: "+t.colorSpace);var w=p[t.colorSpace];t=JSON.parse(JSON.stringify(t));for(var L=0;L<t.stops.length;L++)t.stops[L]=[t.stops[L][0],w.forward(t.stops[L][1])];P=w.reverse}else P=n;if(d){for(var A={},M=[],F=0;F<t.stops.length;F++){var N=t.stops[F],D=N[0].zoom;void 0===A[D]&&(A[D]={zoom:D,type:t.type,property:t.property,default:t.default,stops:[]},M.push(D)),A[D].stops.push([N[0].value,N[1]])}var k=[],G=!0,U=!1,j=void 0;try{for(var B,V=M[Symbol.iterator]();!(G=(B=V.next()).done);G=!0){var Y=B.value;k.push([A[Y].zoom,r(A[Y],e)])}}catch(t){U=!0,j=t}finally{try{!G&&V.return&&V.return()}finally{if(U)throw j}}c=function(i,n){return P(l({stops:k,base:t.base},e,i)(i,n))},c.isFeatureConstant=!1,c.isZoomConstant=!1}else v?(c=function(i){return P(E(t,e,i,T,S))},c.isFeatureConstant=!0,c.isZoomConstant=!1):(c=function(i,n){var r=n[t.property];return void 0===r?o(t.default,e.default):P(E(t,e,r,T,S))},c.isFeatureConstant=!1,c.isZoomConstant=!0)}else i&&t&&(t=g(t)),c=function(){return t},c.isFeatureConstant=!0,c.isZoomConstant=!0;return c}function o(t,e,i){return void 0!==t?t:void 0!==e?e:void 0!==i?i:void 0}function a(t,e,i,n,r){return o(("undefined"===typeof i?"undefined":f(i))===r?n[i]:void 0,t.default,e.default)}function s(t,e,i){if("number"!==y(i))return o(t.default,e.default);var n=t.stops.length;if(1===n)return t.stops[0][1];if(i<=t.stops[0][0])return t.stops[0][1];if(i>=t.stops[n-1][0])return t.stops[n-1][1];var r=c(t.stops,i);return t.stops[r][1]}function l(t,e,i){var r=void 0!==t.base?t.base:1;if("number"!==y(i))return o(t.default,e.default);var a=t.stops.length;if(1===a)return t.stops[0][1];if(i<=t.stops[0][0])return t.stops[0][1];if(i>=t.stops[a-1][0])return t.stops[a-1][1];var s=c(t.stops,i),l=d(i,r,t.stops[s][0],t.stops[s+1][0]),u=t.stops[s][1],h=t.stops[s+1][1],f=v[e.type]||n;return"function"===typeof u?function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=u.apply(void 0,e),r=h.apply(void 0,e);if(void 0!==n&&void 0!==r)return f(n,r,l)}:f(u,h,l)}function u(t,e,i){return"color"===e.type?i=g(i):y(i)===e.type||"enum"===e.type&&e.values[i]||(i=void 0),o(i,t.default,e.default)}function c(t,e){for(var i=t.length,n=0,r=i-1,o=0,a=void 0,s=void 0;n<=r;){if(o=Math.floor((n+r)/2),a=t[o][0],s=t[o+1][0],e===a||e>a&&e<s)return o;a<e?n=o+1:a>e&&(r=o-1)}return Math.max(o-1,0)}function h(t){return"object"===("undefined"===typeof t?"undefined":f(t))&&(t.stops||"identity"===t.type)}function d(t,e,i,n){var r=n-i,o=t-i;return 0===r?0:1===e?o/r:(Math.pow(e,o)-1)/(Math.pow(e,r)-1)}var f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=i(254),g=i(255),_=i(257),y=i(258),v=i(259);t.exports=r,t.exports.isFunctionDefinition=h,t.exports.interpolationFactor=d,t.exports.findStopLessThanOrEqualTo=c},function(t,e){var i={thin:100,hairline:100,"ultra-light":100,"extra-light":100,light:200,book:300,regular:400,normal:400,plain:400,roman:400,standard:400,medium:500,"semi-bold":600,"demi-bold":600,bold:700,heavy:800,black:800,"extra-bold":800,"ultra-black":900,"extra-black":900,"ultra-bold":900,"heavy-black":900,fat:900,poster:900},n={};t.exports=function(t,e){var r=n[t];if(!r){var o=t.split(" "),a=o[o.length-1].toLowerCase(),s="normal",l="normal";"normal"!=a&&"italic"!=a&&"oblique"!=a||(l=a,o.pop(),a=o[o.length-1].toLowerCase());for(var u in i)if(a==u||a==u.replace("-","")||a==u.replace("-"," ")){s=i[u],o.pop();break}"number"==typeof a&&(s=a);var c=o.join(" ").replace("Klokantech Noto Sans","Noto Sans");-1!==c.indexOf(" ")&&(c='"'+c+'"'),r=n[t]=[l,s,c]}return r[0]+" "+r[1]+" "+e+"px "+r[2]}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){for(var e in D)e in t||(t[e]=D[e])}function o(t){for(var e in t.layout)e in t.paint||(t.paint[e]=t.layout[e])}function a(t,e){for(var i=0,n=N[e].length;i<n;++i){var r=N[e][i];if(r in t){var o=t[r];t[r]=(0,w.default)(o,{function:e,type:-1!==r.indexOf("color")?"color":"object"==("undefined"===typeof o?"undefined":p(o))&&o.stops&&"number"==typeof o.stops[0][0]?"number":void 0})}}}function s(t,e){if(e){var i,n,r;if(!Array.isArray(t)){var o=t.stops;if(o)for(n=0,r=o.length;n<r;++n)s(o[n][1],e);return}if(!G[t]){for(n=0,r=t.length;n<r;++n)if(i=t[n],-1!=e.indexOf(i)){G[t]=i;break}G[t]||(G[t]=t[t.length-1])}}else G[t]=t[0]}function l(t,e){t.paint||(t.paint={}),t.ref||o(t),r(t.paint),t.paint["text-field"]&&s(t.paint["text-font"],e),Array.isArray(t.filter)&&(t.filter=(0,A.default)(t.filter)),a(t.paint,"interpolated"),a(t.paint,"piecewise-constant")}function u(t,e){if(t.ref)for(var i=e.layers,n=0,r=i.length;n<r;++n){var o=i[n];if(o.id==t.ref)return t.type=o.type,t.source=o.source,t["source-layer"]=o["source-layer"],t.minzoom=o.minzoom,t.maxzoom=o.maxzoom,t.filter=o.filter,void(t.layout=o.layout)}}function c(t,e){for(var i=0,n=e.length;i<n;++i)if(e[i]<t&&i+1<n){var r=e[i]/e[i+1];return i+Math.log(e[i]/t)/Math.log(r)}return n-1}function h(t,e){if(t&&void 0!==e){var i=U[t];i||(U[t]=i={color:[255*t[0]/t[3],255*t[1]/t[3],255*t[2]/t[3],t[3]],opacity:t[3]}),t=i.color,t[3]=i.opacity*e,0===t[3]&&(t=void 0)}return t}function d(t){return t*Math.PI/180}function f(t,e){var i;do{if(i=t.match(j)){var n=e[i[2]]||"";t=i[1]+n+i[3]}}while(i);return t}Object.defineProperty(e,"__esModule",{value:!0});var p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=function(t,e,i,n,r,o,a){function s(t,e,i){var n=i+","+e+","+t,r=I[n];if(!r){R.font=e;for(var o=R.measureText("M").width,a=o*i,s=t.split(" "),l="",u=[],c=0,h=s.length;c<h;++c){var d=s[c];R.measureText(l+d).width<=a?l+=(l?" ":"")+d:(l&&u.push(l),l=d)}l&&u.push(l),I[n]=r=u.join("\n")}return r}if(!n){n=[];for(var g=78271.51696402048;n.length<21;g/=2)n.push(g)}if("object"==("undefined"===typeof e?"undefined":p(e))&&(e=JSON.stringify(e)),e=JSON.parse(e),8!=e.version)throw new Error("glStyle version 8 required.");var y,m;if(o){var T=new Image;T.crossOrigin="anonymous",T.onload=function(){y=T,m=[T.width,T.height],t.changed()},T.src=o}for(var x,R=document.createElement("CANVAS").getContext("2d"),I={},P=e.layers,w={},L=[],A=0,M=P.length;A<M;++A){var N=P[A];if(N.layout||(N.layout={}),u(N,e),"string"==typeof i&&N.source==i||-1!==i.indexOf(N.id)){var U=N["source-layer"];x||(x=N.source);var j=w[U];j||(j=w[U]=[]),j.push({layer:N,index:A}),L.push(N.id),l(N,a)}}var B=new E.default,V=new v.default,Y={},W=[],z=function(t,e){var i=t.getProperties(),o=w[i.layer];if(o){var a=n.indexOf(e);-1==a&&(a=c(e,n));for(var l=k[t.getGeometry().getType()],u={properties:i,type:l},p=-1,g=0,T=o.length;g<T;++g){var x=o[g],R=x.layer,I=R.paint;if(!("none"===I.visibility||"minzoom"in R&&a<R.minzoom||"maxzoom"in R&&a>=R.maxzoom)&&(!R.filter||R.filter(u))){var P,L,A,M,N,U,j=x.index;if(3==l&&!("fill-pattern"in I)&&"fill-color"in I&&(L=I["fill-opacity"](a,i),P=h(I["fill-color"](a,i),L),P&&(++p,U=W[p],U&&U.getFill()&&!U.getStroke()&&!U.getText()||(U=W[p]=new _.default({fill:new v.default})),A=U.getFill(),A.setColor(P),U.setZIndex(j)),"fill-outline-color"in I&&(N=h(I["fill-outline-color"](a,i),L)),N&&(++p,U=W[p],U&&U.getStroke()&&!U.getFill()&&!U.getText()||(U=W[p]=new _.default({stroke:new E.default})),M=U.getStroke(),M.setLineCap(D["line-cap"]),M.setLineJoin(D["line-join"]),M.setMiterLimit(D["line-miter-limit"]),M.setColor(N),M.setWidth(1),M.setLineDash(null),U.setZIndex(j))),1!=l){P=!("line-pattern"in I)&&"line-color"in I?h(I["line-color"](a,i),I["line-opacity"](a,i)):void 0;var z=I["line-width"](a,i);P&&z>0&&(++p,U=W[p],U&&U.getStroke()&&!U.getFill()&&!U.getText()||(U=W[p]=new _.default({stroke:new E.default})),M=U.getStroke(),M.setLineCap(I["line-cap"](a,i)),M.setLineJoin(I["line-join"](a,i)),M.setMiterLimit(I["line-miter-limit"](a,i)),M.setColor(P),M.setWidth(z),M.setLineDash(I["line-dasharray"]?I["line-dasharray"](a,i).map(function(t){return t*z}):null),U.setZIndex(j))}var X,H,K,q=!1,Z=null;if((1==l||2==l)&&"icon-image"in I){var J=I["icon-image"](a,i);if(J){X=f(J,i);var Q=void 0;if(y&&r&&r[X]){if(2==l){var $=t.getGeometry();if($.getFlatMidpoint){var tt=$.getExtent();Math.sqrt(Math.pow((tt[2]-tt[0])/e,2),Math.pow((tt[3]-tt[1])/e,2))>150&&(Q=new O.default($.getFlatMidpoint()))}}if(2!==l||Q){++p,U=W[p],U&&U.getImage()&&!U.getFill()&&!U.getStroke()||(U=W[p]=new _.default),U.setGeometry(Q);var et=I["icon-size"](a,i),it=void 0!==I["icon-color"]?I["icon-color"](a,i):null,nt=X+"."+et;if(null!==it&&(nt+="."+it),!(H=Y[nt])){var rt=r[X];if(null!==it){P=h(it,1);var ot=document.createElement("canvas");ot.width=rt.width,ot.height=rt.height;var at=ot.getContext("2d");at.drawImage(y,rt.x,rt.y,rt.width,rt.height,0,0,rt.width,rt.height);for(var st=at.getImageData(0,0,ot.width,ot.height),lt=0,ut=st.data.length;lt<ut;lt+=4)st.data[lt]=P[0],st.data[lt+1]=P[1],st.data[lt+2]=P[2];at.putImageData(st,0,0),H=Y[nt]=new S.default({img:ot,imgSize:[ot.width,ot.height],scale:et/rt.pixelRatio})}else H=Y[nt]=new S.default({img:y,imgSize:m,size:[rt.width,rt.height],offset:[rt.x,rt.y],scale:et/rt.pixelRatio})}H.setRotation(d(I["icon-rotate"](a,i))),H.setOpacity(I["icon-opacity"](a,i)),U.setImage(H),Z=U.getText(),U.setText(void 0),U.setZIndex(99999-j),q=!0,K=!1}else K=!0}}}if(1==l&&"circle-radius"in I){++p,U=W[p],U&&U.getImage()&&!U.getFill()&&!U.getStroke()||(U=W[p]=new _.default);var ct=I["circle-radius"](a,i),ht=I["circle-stroke-color"](a,i),dt=I["circle-color"](a,i),ft=I["circle-opacity"](a,i),pt=I["circle-stroke-width"](a,i);H=Y[ct+"."+ht+"."+dt+"."+ft+"."+pt],H||(H=new b.default({radius:ct,stroke:0===pt?void 0:new E.default({width:pt,color:h(ht,ft)}),fill:new v.default({color:h(dt,ft)})})),U.setImage(H),Z=U.getText(),U.setText(void 0),U.setGeometry(void 0),U.setZIndex(99999-j),q=!0}var gt;if("text-field"in I){gt=f(I["text-field"](a,i),i)}if(gt&&!K){q||(++p,U=W[p],U&&U.getText()&&!U.getFill()&&!U.getStroke()||(U=W[p]=new _.default),U.setImage(void 0),U.setGeometry(void 0)),U.getText()||U.setText(Z||new C.default),Z=U.getText();var _t=I["text-size"](a,i),yt=(0,F.default)(G[I["text-font"](a,i)],_t),vt=I["text-transform"];"uppercase"==vt?gt=gt.toUpperCase():"lowercase"==vt&&(gt=gt.toLowerCase());var mt=2==l?gt:s(gt,yt,I["text-max-width"](a,i));Z.setText(mt),Z.setFont(yt),Z.setRotation(d(I["text-rotate"](a,i)));var Et=I["text-anchor"](a,i),Tt=q||1==l?"point":I["symbol-placement"](a,i);if(Z.setPlacement(Tt),"point"==Tt){var St="center";-1!==Et.indexOf("left")?St="left":-1!==Et.indexOf("right")&&(St="right"),Z.setTextAlign(St)}else Z.setTextAlign();var xt="middle";0==Et.indexOf("bottom")?xt="bottom":0==Et.indexOf("top")&&(xt="top"),Z.setTextBaseline(xt);var Ct=I["text-offset"](a,i);Z.setOffsetX(Ct[0]*_t),Z.setOffsetY(Ct[1]*_t),L=I["text-opacity"](a,i),V.setColor(h(I["text-color"](a,i),L)),Z.setFill(V);var Rt=h(I["text-halo-color"](a,i),L);Rt?(B.setColor(Rt),B.setWidth(I["text-halo-width"](a,i)),Z.setStroke(B)):Z.setStroke(void 0),U.setZIndex(99999-j)}}}return p>-1?(W.length=p+1,W):void 0}};return t.setStyle(z),t.set("mapbox-source",x),t.set("mapbox-layers",L),z};var g=i(38),_=n(g),y=i(97),v=n(y),m=i(98),E=n(m),T=i(143),S=n(T),x=i(265),C=n(x),R=i(141),b=n(R),I=i(25),O=n(I),P=i(137),w=n(P),L=i(95),A=n(L),M=i(138),F=n(M),N={interpolated:["line-miter-limit","fill-opacity","line-opacity","line-width","text-halo-width","text-max-width","text-offset","text-opacity","text-rotate","text-size","icon-opacity","icon-rotate","icon-size","icon-color","circle-radius","circle-opacity","circle-stroke-width","circle-color","circle-stroke-color","text-halo-color","text-color","line-color","fill-outline-color","fill-color"],"piecewise-constant":["icon-image","line-cap","line-join","line-dasharray","symbol-placement","text-anchor","text-field","text-font"]},D={"fill-opacity":1,"line-cap":"butt","line-join":"miter","line-miter-limit":2,"line-opacity":1,"line-width":1,"symbol-placement":"point","text-anchor":"center","text-color":"#000000","text-font":["Open Sans Regular","Arial Unicode MS Regular"],"text-halo-color":"rgba(0, 0, 0, 0)","text-halo-width":0,"text-max-width":10,"text-offset":[0,0],"text-opacity":1,"text-rotate":0,"text-size":16,"icon-opacity":1,"icon-rotate":0,"icon-size":1,"circle-color":"#000000","circle-stroke-color":"#000000","circle-opacity":1,"circle-stroke-width":0},k={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},G={},U={},j=/^([^]*)\{(.*)\}([^]*)$/},function(t,e,i){"use strict";var n=i(0),r=function(t){var e=n.a.VERSION?n.a.VERSION.split("-")[0]:"latest";this.message="Assertion failed. See https://openlayers.org/en/"+e+"/doc/errors/#"+t+" for details.",this.code=t,this.name="AssertionError"};n.a.inherits(r,Error),e.a=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(260),o=function(t){var e=t||{};r.a.call(this,{points:1/0,fill:e.fill,radius:e.radius,snapToPixel:e.snapToPixel,stroke:e.stroke,atlasManager:e.atlasManager})};n.a.inherits(o,r.a),o.prototype.clone=function(){var t=new o({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),snapToPixel:this.getSnapToPixel(),atlasManager:this.atlasManager_});return t.setOpacity(this.getOpacity()),t.setScale(this.getScale()),t},o.prototype.setRadius=function(t){this.radius_=t,this.render_(this.atlasManager_)},e.default=o},function(t,e,i){"use strict";var n=function(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.snapToPixel_=t.snapToPixel};n.prototype.getOpacity=function(){return this.opacity_},n.prototype.getRotateWithView=function(){return this.rotateWithView_},n.prototype.getRotation=function(){return this.rotation_},n.prototype.getScale=function(){return this.scale_},n.prototype.getSnapToPixel=function(){return this.snapToPixel_},n.prototype.getAnchor=function(){},n.prototype.getImage=function(t){},n.prototype.getHitDetectionImage=function(t){},n.prototype.getImageState=function(){},n.prototype.getImageSize=function(){},n.prototype.getHitDetectionImageSize=function(){},n.prototype.getOrigin=function(){},n.prototype.getSize=function(){},n.prototype.setOpacity=function(t){this.opacity_=t},n.prototype.setRotateWithView=function(t){this.rotateWithView_=t},n.prototype.setRotation=function(t){this.rotation_=t},n.prototype.setScale=function(t){this.scale_=t},n.prototype.setSnapToPixel=function(t){this.snapToPixel_=t},n.prototype.listenImageChange=function(t,e){},n.prototype.load=function(){},n.prototype.unlistenImageChange=function(t,e){},e.a=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(21),o=i(7),a=i(32),s=i(3),l=i(4),u=i(261),c=i(262),h=i(264),d=i(142),f=function(t){var e=t||{};this.anchor_=void 0!==e.anchor?e.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==e.anchorOrigin?e.anchorOrigin:h.a.TOP_LEFT,this.anchorXUnits_=void 0!==e.anchorXUnits?e.anchorXUnits:u.a.FRACTION,this.anchorYUnits_=void 0!==e.anchorYUnits?e.anchorYUnits:u.a.FRACTION,this.crossOrigin_=void 0!==e.crossOrigin?e.crossOrigin:null;var i=void 0!==e.img?e.img:null,s=void 0!==e.imgSize?e.imgSize:null,l=e.src;o.a.assert(!(void 0!==l&&i),4),o.a.assert(!i||i&&s,5),void 0!==l&&0!==l.length||!i||(l=i.src||n.a.getUid(i).toString()),o.a.assert(void 0!==l&&l.length>0,6);var f=void 0!==e.src?r.a.IDLE:r.a.LOADED;this.color_=void 0!==e.color?a.a.asArray(e.color):null,this.iconImage_=c.a.get(i,l,s,this.crossOrigin_,f,this.color_),this.offset_=void 0!==e.offset?e.offset:[0,0],this.offsetOrigin_=void 0!==e.offsetOrigin?e.offsetOrigin:h.a.TOP_LEFT,this.origin_=null,this.size_=void 0!==e.size?e.size:null;var p=void 0!==e.opacity?e.opacity:1,g=void 0!==e.rotateWithView&&e.rotateWithView,_=void 0!==e.rotation?e.rotation:0,y=void 0!==e.scale?e.scale:1,v=void 0===e.snapToPixel||e.snapToPixel;d.a.call(this,{opacity:p,rotation:_,scale:y,snapToPixel:v,rotateWithView:g})};n.a.inherits(f,d.a),f.prototype.clone=function(){return new f({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:this.getScale(),snapToPixel:this.getSnapToPixel(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},f.prototype.getAnchor=function(){if(this.normalizedAnchor_)return this.normalizedAnchor_;var t=this.anchor_,e=this.getSize();if(this.anchorXUnits_==u.a.FRACTION||this.anchorYUnits_==u.a.FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==u.a.FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==u.a.FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=h.a.TOP_LEFT){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=h.a.TOP_RIGHT&&this.anchorOrigin_!=h.a.BOTTOM_RIGHT||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=h.a.BOTTOM_LEFT&&this.anchorOrigin_!=h.a.BOTTOM_RIGHT||(t[1]=-t[1]+e[1])}return this.normalizedAnchor_=t,this.normalizedAnchor_},f.prototype.getColor=function(){return this.color_},f.prototype.getImage=function(t){return this.iconImage_.getImage(t)},f.prototype.getImageSize=function(){return this.iconImage_.getSize()},f.prototype.getHitDetectionImageSize=function(){return this.getImageSize()},f.prototype.getImageState=function(){return this.iconImage_.getImageState()},f.prototype.getHitDetectionImage=function(t){return this.iconImage_.getHitDetectionImage(t)},f.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=h.a.TOP_LEFT){var e=this.getSize(),i=this.iconImage_.getSize();if(!e||!i)return null;t=t.slice(),this.offsetOrigin_!=h.a.TOP_RIGHT&&this.offsetOrigin_!=h.a.BOTTOM_RIGHT||(t[0]=i[0]-e[0]-t[0]),this.offsetOrigin_!=h.a.BOTTOM_LEFT&&this.offsetOrigin_!=h.a.BOTTOM_RIGHT||(t[1]=i[1]-e[1]-t[1])}return this.origin_=t,this.origin_},f.prototype.getSrc=function(){return this.iconImage_.getSrc()},f.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},f.prototype.listenImageChange=function(t,e){return s.a.listen(this.iconImage_,l.a.CHANGE,t,e)},f.prototype.load=function(){this.iconImage_.load()},f.prototype.unlistenImageChange=function(t,e){s.a.unlisten(this.iconImage_,l.a.CHANGE,t,e)},e.default=f},function(t,e,i){"use strict";var n=i(263),r={};r.iconImageCache=new n.a,e.a=r},function(t,e,i){"use strict";var n={POINT:"point",LINE:"line"};e.a=n},function(t,e,i){"use strict";var n={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"};e.a=n},function(t,e,i){"use strict";var n={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};e.a=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(6),r=i(8),o=function(t){this.radius=t};o.prototype.geodesicArea=function(t){return o.getArea_(t,this.radius)},o.prototype.haversineDistance=function(t,e){return o.getDistance_(t,e,this.radius)},o.prototype.offset=function(t,e,i){var r=n.a.toRadians(t[1]),o=n.a.toRadians(t[0]),a=e/this.radius,s=Math.asin(Math.sin(r)*Math.cos(a)+Math.cos(r)*Math.sin(a)*Math.cos(i)),l=o+Math.atan2(Math.sin(i)*Math.sin(a)*Math.cos(r),Math.cos(a)-Math.sin(r)*Math.sin(s));return[n.a.toDegrees(l),n.a.toDegrees(s)]},o.DEFAULT_RADIUS=6371008.8,o.getLength=function(t,e){var i=e||{},n=i.radius||o.DEFAULT_RADIUS,a=i.projection||"EPSG:3857";t=t.clone().transform(a,"EPSG:4326");var s,l,u,c,h,d,f=t.getType(),p=0;switch(f){case r.a.POINT:case r.a.MULTI_POINT:break;case r.a.LINE_STRING:case r.a.LINEAR_RING:s=t.getCoordinates(),p=o.getLength_(s,n);break;case r.a.MULTI_LINE_STRING:case r.a.POLYGON:for(s=t.getCoordinates(),u=0,c=s.length;u<c;++u)p+=o.getLength_(s[u],n);break;case r.a.MULTI_POLYGON:for(s=t.getCoordinates(),u=0,c=s.length;u<c;++u)for(l=s[u],h=0,d=l.length;h<d;++h)p+=o.getLength_(l[h],n);break;case r.a.GEOMETRY_COLLECTION:var g=t.getGeometries();for(u=0,c=g.length;u<c;++u)p+=o.getLength(g[u],e);break;default:throw new Error("Unsupported geometry type: "+f)}return p},o.getLength_=function(t,e){for(var i=0,n=0,r=t.length;n<r-1;++n)i+=o.getDistance_(t[n],t[n+1],e);return i},o.getDistance_=function(t,e,i){var r=n.a.toRadians(t[1]),o=n.a.toRadians(e[1]),a=(o-r)/2,s=n.a.toRadians(e[0]-t[0])/2,l=Math.sin(a)*Math.sin(a)+Math.sin(s)*Math.sin(s)*Math.cos(r)*Math.cos(o);return 2*i*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))},o.getArea=function(t,e){var i=e||{},n=i.radius||o.DEFAULT_RADIUS,a=i.projection||"EPSG:3857";t=t.clone().transform(a,"EPSG:4326");var s,l,u,c,h,d,f=t.getType(),p=0;switch(f){case r.a.POINT:case r.a.MULTI_POINT:case r.a.LINE_STRING:case r.a.MULTI_LINE_STRING:case r.a.LINEAR_RING:break;case r.a.POLYGON:for(s=t.getCoordinates(),p=Math.abs(o.getArea_(s[0],n)),u=1,c=s.length;u<c;++u)p-=Math.abs(o.getArea_(s[u],n));break;case r.a.MULTI_POLYGON:for(s=t.getCoordinates(),u=0,c=s.length;u<c;++u)for(l=s[u],p+=Math.abs(o.getArea_(l[0],n)),h=1,d=l.length;h<d;++h)p-=Math.abs(o.getArea_(l[h],n));break;case r.a.GEOMETRY_COLLECTION:var g=t.getGeometries();for(u=0,c=g.length;u<c;++u)p+=o.getArea(g[u],e);break;default:throw new Error("Unsupported geometry type: "+f)}return p},o.getArea_=function(t,e){for(var i=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;s<r;s++){var l=t[s][0],u=t[s][1];i+=n.a.toRadians(l-o)*(2+Math.sin(n.a.toRadians(a))+Math.sin(n.a.toRadians(u))),o=l,a=u}return i*e*e/2},e.default=o},function(t,e,i){"use strict";var n={};n.cache_=null,n.set=function(t){n.cache_=t},n.get=function(){return n.cache_||window.proj4},e.a=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(48),o=i(49),a=i(151),s=i(273),l=i(42),u=i(152),c=i(100),h=i(279),d=i(16),f=i(73),p=i(280),g=i(102),_=i(17),y=i(7),v=i(9),m=i(3),E=i(14),T=i(4),S=i(1),x=i(12),C=i(18),R=i(285),b=i(2),I=i(61),O=i(23),P=i(41),w=i(101),L=i(10),A=function t(e){d.a.call(this);var i=t.createOptionsInternal(e);this.loadTilesWhileAnimating_=void 0!==e.loadTilesWhileAnimating&&e.loadTilesWhileAnimating,this.loadTilesWhileInteracting_=void 0!==e.loadTilesWhileInteracting&&e.loadTilesWhileInteracting,this.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:C.a.DEVICE_PIXEL_RATIO,this.logos_=i.logos,this.animationDelayKey_,this.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_.call(this,Date.now())}.bind(this),this.coordinateToPixelTransform_=L.a.create(),this.pixelToCoordinateTransform_=L.a.create(),this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,this.viewport_=document.createElement("DIV"),this.viewport_.className="ol-viewport"+(C.a.TOUCH?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.viewport_.style.msTouchAction="none",this.viewport_.style.touchAction="none",this.overlayContainer_=document.createElement("DIV"),this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("DIV"),this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent";for(var n=[T.a.CLICK,T.a.DBLCLICK,T.a.MOUSEDOWN,T.a.TOUCHSTART,T.a.MSPOINTERDOWN,l.a.POINTERDOWN,T.a.MOUSEWHEEL,T.a.WHEEL],a=0,u=n.length;a<u;++a)m.a.listen(this.overlayContainerStopEvent_,n[a],E.a.stopPropagation);this.viewport_.appendChild(this.overlayContainerStopEvent_),this.mapBrowserEventHandler_=new s.a(this,e.moveTolerance);for(var c in l.a)m.a.listen(this.mapBrowserEventHandler_,l.a[c],this.handleMapBrowserEvent,this);this.keyboardEventTarget_=i.keyboardEventTarget,this.keyHandlerKeys_=null,m.a.listen(this.viewport_,T.a.WHEEL,this.handleBrowserEvent,this),m.a.listen(this.viewport_,T.a.MOUSEWHEEL,this.handleBrowserEvent,this),this.controls=i.controls||new r.a,this.interactions=i.interactions||new r.a,this.overlays_=i.overlays,this.overlayIdIndex_={},this.renderer_=i.mapRendererPlugin.create(this.viewport_,this),this.handleResize_,this.focus_=null,this.postRenderFunctions_=[],this.tileQueue_=new p.a(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.skippedFeatureUids_={},m.a.listen(this,d.a.getChangeEventType(h.a.LAYERGROUP),this.handleLayerGroupChanged_,this),m.a.listen(this,d.a.getChangeEventType(h.a.VIEW),this.handleViewChanged_,this),m.a.listen(this,d.a.getChangeEventType(h.a.SIZE),this.handleSizeChanged_,this),m.a.listen(this,d.a.getChangeEventType(h.a.TARGET),this.handleTargetChanged_,this),this.setProperties(i.values),this.controls.forEach(function(t){t.setMap(this)},this),m.a.listen(this.controls,o.a.ADD,function(t){t.element.setMap(this)},this),m.a.listen(this.controls,o.a.REMOVE,function(t){t.element.setMap(null)},this),this.interactions.forEach(function(t){t.setMap(this)},this),m.a.listen(this.interactions,o.a.ADD,function(t){t.element.setMap(this)},this),m.a.listen(this.interactions,o.a.REMOVE,function(t){t.element.setMap(null)},this),this.overlays_.forEach(this.addOverlayInternal_,this),m.a.listen(this.overlays_,o.a.ADD,function(t){this.addOverlayInternal_(t.element)},this),m.a.listen(this.overlays_,o.a.REMOVE,function(t){var e=t.element,i=e.getId();void 0!==i&&delete this.overlayIdIndex_[i.toString()],t.element.setMap(null)},this)};n.a.inherits(A,d.a),A.prototype.addControl=function(t){this.getControls().push(t)},A.prototype.addInteraction=function(t){this.getInteractions().push(t)},A.prototype.addLayer=function(t){this.getLayerGroup().getLayers().push(t)},A.prototype.addOverlay=function(t){this.getOverlays().push(t)},A.prototype.addOverlayInternal_=function(t){var e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)},A.prototype.disposeInternal=function(){this.mapBrowserEventHandler_.dispose(),m.a.unlisten(this.viewport_,T.a.WHEEL,this.handleBrowserEvent,this),m.a.unlisten(this.viewport_,T.a.MOUSEWHEEL,this.handleBrowserEvent,this),void 0!==this.handleResize_&&(window.removeEventListener(T.a.RESIZE,this.handleResize_,!1),this.handleResize_=void 0),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0),this.setTarget(null),d.a.prototype.disposeInternal.call(this)},A.prototype.forEachFeatureAtPixel=function(t,e,i){if(this.frameState_){var n=this.getCoordinateFromPixel(t);i=void 0!==i?i:{};var r=void 0!==i.hitTolerance?i.hitTolerance*this.frameState_.pixelRatio:0,o=void 0!==i.layerFilter?i.layerFilter:x.a.TRUE;return this.renderer_.forEachFeatureAtCoordinate(n,this.frameState_,r,e,null,o,null)}},A.prototype.getFeaturesAtPixel=function(t,e){var i=null;return this.forEachFeatureAtPixel(t,function(t){i||(i=[]),i.push(t)},e),i},A.prototype.forEachLayerAtPixel=function(t,e,i,n,r){if(this.frameState_){var o=void 0!==i?i:null,a=void 0!==n?n:x.a.TRUE,s=void 0!==r?r:null;return this.renderer_.forEachLayerAtPixel(t,this.frameState_,e,o,a,s)}},A.prototype.hasFeatureAtPixel=function(t,e){if(!this.frameState_)return!1;var i=this.getCoordinateFromPixel(t);e=void 0!==e?e:{};var n=void 0!==e.layerFilter?e.layerFilter:x.a.TRUE,r=void 0!==e.hitTolerance?e.hitTolerance*this.frameState_.pixelRatio:0;return this.renderer_.hasFeatureAtCoordinate(i,this.frameState_,r,n,null)},A.prototype.getEventCoordinate=function(t){return this.getCoordinateFromPixel(this.getEventPixel(t))},A.prototype.getEventPixel=function(t){var e=this.viewport_.getBoundingClientRect(),i=t.changedTouches?t.changedTouches[0]:t;return[i.clientX-e.left,i.clientY-e.top]},A.prototype.getTarget=function(){return this.get(h.a.TARGET)},A.prototype.getTargetElement=function(){var t=this.getTarget();return void 0!==t?"string"===typeof t?document.getElementById(t):t:null},A.prototype.getCoordinateFromPixel=function(t){var e=this.frameState_;return e?L.a.apply(e.pixelToCoordinateTransform,t.slice()):null},A.prototype.getControls=function(){return this.controls},A.prototype.getOverlays=function(){return this.overlays_},A.prototype.getOverlayById=function(t){var e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null},A.prototype.getInteractions=function(){return this.interactions},A.prototype.getLayerGroup=function(){return this.get(h.a.LAYERGROUP)},A.prototype.getLayers=function(){return this.getLayerGroup().getLayers()},A.prototype.getPixelFromCoordinate=function(t){var e=this.frameState_;return e?L.a.apply(e.coordinateToPixelTransform,t.slice(0,2)):null},A.prototype.getRenderer=function(){return this.renderer_},A.prototype.getSize=function(){return this.get(h.a.SIZE)},A.prototype.getView=function(){return this.get(h.a.VIEW)},A.prototype.getViewport=function(){return this.viewport_},A.prototype.getOverlayContainer=function(){return this.overlayContainer_},A.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},A.prototype.getTilePriority=function(t,e,i,n){var r=this.frameState_;if(!r||!(e in r.wantedTiles))return w.a.DROP;if(!r.wantedTiles[e][t.getKey()])return w.a.DROP;var o=i[0]-r.focus[0],a=i[1]-r.focus[1];return 65536*Math.log(n)+Math.sqrt(o*o+a*a)/n},A.prototype.handleBrowserEvent=function(t,e){var i=e||t.type,n=new a.a(i,this,t);this.handleMapBrowserEvent(n)},A.prototype.handleMapBrowserEvent=function(t){if(this.frameState_){this.focus_=t.coordinate,t.frameState=this.frameState_;var e,i=this.getInteractions().getArray();if(!1!==this.dispatchEvent(t))for(e=i.length-1;e>=0;e--){var n=i[e];if(n.getActive()){var r=n.handleEvent(t);if(!r)break}}}},A.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var i=16,n=i;if(t){var r=t.viewHints;r[_.a.ANIMATING]&&(i=this.loadTilesWhileAnimating_?8:0,n=2),r[_.a.INTERACTING]&&(i=this.loadTilesWhileInteracting_?8:0,n=2)}e.getTilesLoading()<i&&(e.reprioritize(),e.loadMoreTiles(i,n))}var o,a,s=this.postRenderFunctions_;for(o=0,a=s.length;o<a;++o)s[o](this,t);s.length=0},A.prototype.handleSizeChanged_=function(){this.render()},A.prototype.handleTargetChanged_=function(){var t;if(this.getTarget()&&(t=this.getTargetElement()),this.keyHandlerKeys_){for(var e=0,i=this.keyHandlerKeys_.length;e<i;++e)m.a.unlistenByKey(this.keyHandlerKeys_[e]);this.keyHandlerKeys_=null}if(t){t.appendChild(this.viewport_);var n=this.keyboardEventTarget_?this.keyboardEventTarget_:t;this.keyHandlerKeys_=[m.a.listen(n,T.a.KEYDOWN,this.handleBrowserEvent,this),m.a.listen(n,T.a.KEYPRESS,this.handleBrowserEvent,this)],this.handleResize_||(this.handleResize_=this.updateSize.bind(this),window.addEventListener(T.a.RESIZE,this.handleResize_,!1))}else this.renderer_.removeLayerRenderers(),v.a.removeNode(this.viewport_),void 0!==this.handleResize_&&(window.removeEventListener(T.a.RESIZE,this.handleResize_,!1),this.handleResize_=void 0);this.updateSize()},A.prototype.handleTileChange_=function(){this.render()},A.prototype.handleViewPropertyChanged_=function(){this.render()},A.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&(m.a.unlistenByKey(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(m.a.unlistenByKey(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var t=this.getView();t&&(this.viewport_.setAttribute("data-view",n.a.getUid(t)),this.viewPropertyListenerKey_=m.a.listen(t,f.a.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=m.a.listen(t,T.a.CHANGE,this.handleViewPropertyChanged_,this)),this.render()},A.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(m.a.unlistenByKey),this.layerGroupPropertyListenerKeys_=null);var t=this.getLayerGroup();t&&(this.layerGroupPropertyListenerKeys_=[m.a.listen(t,f.a.PROPERTYCHANGE,this.render,this),m.a.listen(t,T.a.CHANGE,this.render,this)]),this.render()},A.prototype.isRendered=function(){return!!this.frameState_},A.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},A.prototype.render=function(){void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},A.prototype.removeControl=function(t){return this.getControls().remove(t)},A.prototype.removeInteraction=function(t){return this.getInteractions().remove(t)},A.prototype.removeLayer=function(t){return this.getLayerGroup().getLayers().remove(t)},A.prototype.removeOverlay=function(t){return this.getOverlays().remove(t)},A.prototype.renderFrame_=function(t){var e,i,r,o=this.getSize(),a=this.getView(),s=S.a.createEmpty(),l=this.frameState_,h=null;if(void 0!==o&&P.a.hasArea(o)&&a&&a.isDef()){var d=a.getHints(this.frameState_?this.frameState_.viewHints:void 0),f=this.getLayerGroup().getLayerStatesArray(),p={};for(e=0,i=f.length;e<i;++e)p[n.a.getUid(f[e].layer)]=f[e];r=a.getState();var g=r.center,y=r.resolution/this.pixelRatio_;g[0]=Math.round(g[0]/y)*y,g[1]=Math.round(g[1]/y)*y,h={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,extent:s,focus:this.focus_?this.focus_:g,index:this.frameIndex_++,layerStates:p,layerStatesArray:f,logos:b.a.assign({},this.logos_),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:o,skippedFeatureUids:this.skippedFeatureUids_,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:r,viewHints:d,wantedTiles:{}}}if(h&&(h.extent=S.a.getForViewAndSize(r.center,r.resolution,r.rotation,h.size,s)),this.frameState_=h,this.renderer_.renderFrame(h),h){if(h.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,h.postRenderFunctions),l){(!this.previousExtent_||!S.a.isEmpty(this.previousExtent_)&&!S.a.equals(h.extent,this.previousExtent_))&&(this.dispatchEvent(new u.a(c.a.MOVESTART,this,l)),this.previousExtent_=S.a.createOrUpdateEmpty(this.previousExtent_))}this.previousExtent_&&!h.viewHints[_.a.ANIMATING]&&!h.viewHints[_.a.INTERACTING]&&!S.a.equals(h.extent,this.previousExtent_)&&(this.dispatchEvent(new u.a(c.a.MOVEEND,this,h)),S.a.clone(h.extent,this.previousExtent_))}this.dispatchEvent(new u.a(c.a.POSTRENDER,this,h)),setTimeout(this.handlePostRender.bind(this),0)},A.prototype.setLayerGroup=function(t){this.set(h.a.LAYERGROUP,t)},A.prototype.setSize=function(t){this.set(h.a.SIZE,t)},A.prototype.setTarget=function(t){this.set(h.a.TARGET,t)},A.prototype.setView=function(t){this.set(h.a.VIEW,t)},A.prototype.skipFeature=function(t){var e=n.a.getUid(t).toString();this.skippedFeatureUids_[e]=!0,this.render()},A.prototype.updateSize=function(){var t=this.getTargetElement();if(t){var e=getComputedStyle(t);this.setSize([t.offsetWidth-parseFloat(e.borderLeftWidth)-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)-parseFloat(e.borderRightWidth),t.offsetHeight-parseFloat(e.borderTopWidth)-parseFloat(e.paddingTop)-parseFloat(e.paddingBottom)-parseFloat(e.borderBottomWidth)])}else this.setSize(void 0)},A.prototype.unskipFeature=function(t){var e=n.a.getUid(t).toString();delete this.skippedFeatureUids_[e],this.render()},A.DEFAULT_RENDERER_TYPES=[O.a.CANVAS,O.a.WEBGL],A.LOGO_URL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAAHGAAABxgEXwfpGAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAhNQTFRF////AP//AICAgP//AFVVQECA////K1VVSbbbYL/fJ05idsTYJFtbbcjbJllmZszWWMTOIFhoHlNiZszTa9DdUcHNHlNlV8XRIVdiasrUHlZjIVZjaMnVH1RlIFRkH1RkH1ZlasvYasvXVsPQH1VkacnVa8vWIVZjIFRjVMPQa8rXIVVkXsXRsNveIFVkIFZlIVVj3eDeh6GmbMvXH1ZkIFRka8rWbMvXIFVkIFVjIFVkbMvWH1VjbMvWIFVlbcvWIFVla8vVIFVkbMvWbMvVH1VkbMvWIFVlbcvWIFVkbcvVbMvWjNPbIFVkU8LPwMzNIFVkbczWIFVkbsvWbMvXIFVkRnB8bcvW2+TkW8XRIFVkIlZlJVloJlpoKlxrLl9tMmJwOWd0Omh1RXF8TneCT3iDUHiDU8LPVMLPVcLPVcPQVsPPVsPQV8PQWMTQWsTQW8TQXMXSXsXRX4SNX8bSYMfTYcfTYsfTY8jUZcfSZsnUaIqTacrVasrVa8jTa8rWbI2VbMvWbcvWdJObdcvUdszUd8vVeJaee87Yfc3WgJyjhqGnitDYjaarldPZnrK2oNbborW5o9bbo9fbpLa6q9ndrL3ArtndscDDutzfu8fJwN7gwt7gxc/QyuHhy+HizeHi0NfX0+Pj19zb1+Tj2uXk29/e3uLg3+Lh3+bl4uXj4ufl4+fl5Ofl5ufl5ujm5+jmySDnBAAAAFp0Uk5TAAECAgMEBAYHCA0NDg4UGRogIiMmKSssLzU7PkJJT1JTVFliY2hrdHZ3foSFhYeJjY2QkpugqbG1tre5w8zQ09XY3uXn6+zx8vT09vf4+Pj5+fr6/P39/f3+gz7SsAAAAVVJREFUOMtjYKA7EBDnwCPLrObS1BRiLoJLnte6CQy8FLHLCzs2QUG4FjZ5GbcmBDDjxJBXDWxCBrb8aM4zbkIDzpLYnAcE9VXlJSWlZRU13koIeW57mGx5XjoMZEUqwxWYQaQbSzLSkYGfKFSe0QMsX5WbjgY0YS4MBplemI4BdGBW+DQ11eZiymfqQuXZIjqwyadPNoSZ4L+0FVM6e+oGI6g8a9iKNT3o8kVzNkzRg5lgl7p4wyRUL9Yt2jAxVh6mQCogae6GmflI8p0r13VFWTHBQ0rWPW7ahgWVcPm+9cuLoyy4kCJDzCm6d8PSFoh0zvQNC5OjDJhQopPPJqph1doJBUD5tnkbZiUEqaCnB3bTqLTFG1bPn71kw4b+GFdpLElKIzRxxgYgWNYc5SCENVHKeUaltHdXx0dZ8uBI1hJ2UUDgq82CM2MwKeibqAvSO7MCABq0wXEPiqWEAAAAAElFTkSuQmCC",A.createOptionsInternal=function(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"===typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var i={},o={};if(void 0===t.logo||"boolean"===typeof t.logo&&t.logo)o[A.LOGO_URL]="https://openlayers.org/";else{var a=t.logo;"string"===typeof a?o[a]="":a instanceof HTMLElement?o[n.a.getUid(a).toString()]=a:a&&(y.a.assert("string"==typeof a.href,44),y.a.assert("string"==typeof a.src,45),o[a.src]=a.href)}var s=t.layers instanceof R.a?t.layers:new R.a({layers:t.layers});i[h.a.LAYERGROUP]=s,i[h.a.TARGET]=t.target,i[h.a.VIEW]=void 0!==t.view?t.view:new g.default;var l;void 0!==t.renderer?(Array.isArray(t.renderer)?l=t.renderer:"string"===typeof t.renderer?l=[t.renderer]:y.a.assert(!1,46),l.indexOf("dom")>=0&&(l=l.concat(A.DEFAULT_RENDERER_TYPES))):l=A.DEFAULT_RENDERER_TYPES;var u,c=I.default.getMapRendererPlugins();t:for(var d=0,f=l.length;d<f;++d)for(var p=l[d],_=0,v=c.length;_<v;++_){var m=c[_];if(m.handles(p)){u=m;break t}}if(!u)throw new Error("Unable to create a map renderer for types: "+l.join(", "));var E;void 0!==t.controls&&(Array.isArray(t.controls)?E=new r.a(t.controls.slice()):(y.a.assert(t.controls instanceof r.a,47),E=t.controls));var T;void 0!==t.interactions&&(Array.isArray(t.interactions)?T=new r.a(t.interactions.slice()):(y.a.assert(t.interactions instanceof r.a,48),T=t.interactions));var S;return void 0!==t.overlays?Array.isArray(t.overlays)?S=new r.a(t.overlays.slice()):(y.a.assert(t.overlays instanceof r.a,49),S=t.overlays):S=new r.a,{controls:E,interactions:T,keyboardEventTarget:e,logos:o,overlays:S,mapRendererPlugin:u,values:i}},e.default=A},function(t,e,i){"use strict";var n=i(0),r=i(152),o=function(t,e,i,n,o){r.a.call(this,t,e,o),this.originalEvent=i,this.pixel=e.getEventPixel(i),this.coordinate=e.getCoordinateFromPixel(this.pixel),this.dragging=void 0!==n&&n};n.a.inherits(o,r.a),o.prototype.preventDefault=function(){r.a.prototype.preventDefault.call(this),this.originalEvent.preventDefault()},o.prototype.stopPropagation=function(){r.a.prototype.stopPropagation.call(this),this.originalEvent.stopPropagation()},e.a=o},function(t,e,i){"use strict";var n=i(0),r=i(14),o=function(t,e,i){r.a.call(this,t),this.map=e,this.frameState=void 0!==i?i:null};n.a.inherits(o,r.a),e.a=o},function(t,e,i){"use strict";var n={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"};e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(77),o=function(t){var e={mousedown:this.mousedown,mousemove:this.mousemove,mouseup:this.mouseup,mouseover:this.mouseover,mouseout:this.mouseout};r.a.call(this,t,e),this.pointerMap=t.pointerMap,this.lastTouches=[]};n.a.inherits(o,r.a),o.POINTER_ID=1,o.POINTER_TYPE="mouse",o.DEDUP_DIST=25,o.prototype.isEventSimulatedFromTouch_=function(t){for(var e,i=this.lastTouches,n=t.clientX,r=t.clientY,a=0,s=i.length;a<s&&(e=i[a]);a++){var l=Math.abs(n-e[0]),u=Math.abs(r-e[1]);if(l<=o.DEDUP_DIST&&u<=o.DEDUP_DIST)return!0}return!1},o.prepareEvent=function(t,e){var i=e.cloneEvent(t,t),n=i.preventDefault;return i.preventDefault=function(){t.preventDefault(),n()},i.pointerId=o.POINTER_ID,i.isPrimary=!0,i.pointerType=o.POINTER_TYPE,i},o.prototype.mousedown=function(t){if(!this.isEventSimulatedFromTouch_(t)){o.POINTER_ID.toString()in this.pointerMap&&this.cancel(t);var e=o.prepareEvent(t,this.dispatcher);this.pointerMap[o.POINTER_ID.toString()]=t,this.dispatcher.down(e,t)}},o.prototype.mousemove=function(t){if(!this.isEventSimulatedFromTouch_(t)){var e=o.prepareEvent(t,this.dispatcher);this.dispatcher.move(e,t)}},o.prototype.mouseup=function(t){if(!this.isEventSimulatedFromTouch_(t)){var e=this.pointerMap[o.POINTER_ID.toString()];if(e&&e.button===t.button){var i=o.prepareEvent(t,this.dispatcher);this.dispatcher.up(i,t),this.cleanupMouse()}}},o.prototype.mouseover=function(t){if(!this.isEventSimulatedFromTouch_(t)){var e=o.prepareEvent(t,this.dispatcher);this.dispatcher.enterOver(e,t)}},o.prototype.mouseout=function(t){if(!this.isEventSimulatedFromTouch_(t)){var e=o.prepareEvent(t,this.dispatcher);this.dispatcher.leaveOut(e,t)}},o.prototype.cancel=function(t){var e=o.prepareEvent(t,this.dispatcher);this.dispatcher.cancel(e,t),this.cleanupMouse()},o.prototype.cleanupMouse=function(){delete this.pointerMap[o.POINTER_ID.toString()]},e.a=o},function(t,e,i){"use strict";var n={};n.padNumber=function(t,e,i){var n=void 0!==i?t.toFixed(i):""+t,r=n.indexOf(".");return r=-1===r?n.length:r,r>e?n:new Array(1+e-r).join("0")+n},n.compareVersions=function(t,e){for(var i=(""+t).split("."),n=(""+e).split("."),r=0;r<Math.max(i.length,n.length);r++){var o=parseInt(i[r]||"0",10),a=parseInt(n[r]||"0",10);if(o>a)return 1;if(a>o)return-1}return 0},e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(1),o=i(19),a=i(8),s=i(22),l=i(78),u=i(59),c=i(28),h=i(44),d=i(50),f=function(t,e){s.a.call(this),this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.setCoordinates(t,e)};n.a.inherits(f,s.a),f.prototype.clone=function(){var t=new f(null);return t.setFlatCoordinates(this.layout,this.flatCoordinates.slice()),t},f.prototype.closestPointXY=function(t,e,i,n){return n<r.a.closestSquaredDistanceXY(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(u.a.getMaxSquaredDelta(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),u.a.getClosestPoint(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,i,n))},f.prototype.getArea=function(){return l.a.linearRing(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},f.prototype.getCoordinates=function(){return h.a.coordinates(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},f.prototype.getSimplifiedGeometryInternal=function(t){var e=[];e.length=d.a.douglasPeucker(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0);var i=new f(null);return i.setFlatCoordinates(o.a.XY,e),i},f.prototype.getType=function(){return a.a.LINEAR_RING},f.prototype.intersectsExtent=function(t){},f.prototype.setCoordinates=function(t,e){t?(this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=c.a.coordinates(this.flatCoordinates,0,t,this.stride),this.changed()):this.setFlatCoordinates(o.a.XY,null)},f.prototype.setFlatCoordinates=function(t,e){this.setFlatCoordinatesInternal(t,e),this.changed()},e.a=f},function(t,e,i){"use strict";var n={};n.forEach=function(t,e,i,n,r,o){for(var a,s=[t[e],t[e+1]],l=[];e+n<i;e+=n){if(l[0]=t[e+n],l[1]=t[e+n+1],a=r.call(o,s,l))return a;s[0]=l[0],s[1]=l[1]}return!1},e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(16),o=i(159),a=i(6),s=i(2),l=function(t){r.a.call(this);var e=s.a.assign({},t);e[o.a.OPACITY]=void 0!==t.opacity?t.opacity:1,e[o.a.VISIBLE]=void 0===t.visible||t.visible,e[o.a.Z_INDEX]=void 0!==t.zIndex?t.zIndex:0,e[o.a.MAX_RESOLUTION]=void 0!==t.maxResolution?t.maxResolution:1/0,e[o.a.MIN_RESOLUTION]=void 0!==t.minResolution?t.minResolution:0,this.setProperties(e),this.state_={layer:this,managed:!0},this.type};n.a.inherits(l,r.a),l.prototype.getType=function(){return this.type},l.prototype.getLayerState=function(){return this.state_.opacity=a.a.clamp(this.getOpacity(),0,1),this.state_.sourceState=this.getSourceState(),this.state_.visible=this.getVisible(),this.state_.extent=this.getExtent(),this.state_.zIndex=this.getZIndex(),this.state_.maxResolution=this.getMaxResolution(),this.state_.minResolution=Math.max(this.getMinResolution(),0),this.state_},l.prototype.getLayersArray=function(t){},l.prototype.getLayerStatesArray=function(t){},l.prototype.getExtent=function(){return this.get(o.a.EXTENT)},l.prototype.getMaxResolution=function(){return this.get(o.a.MAX_RESOLUTION)},l.prototype.getMinResolution=function(){return this.get(o.a.MIN_RESOLUTION)},l.prototype.getOpacity=function(){return this.get(o.a.OPACITY)},l.prototype.getSourceState=function(){},l.prototype.getVisible=function(){return this.get(o.a.VISIBLE)},l.prototype.getZIndex=function(){return this.get(o.a.Z_INDEX)},l.prototype.setExtent=function(t){this.set(o.a.EXTENT,t)},l.prototype.setMaxResolution=function(t){this.set(o.a.MAX_RESOLUTION,t)},l.prototype.setMinResolution=function(t){this.set(o.a.MIN_RESOLUTION,t)},l.prototype.setOpacity=function(t){this.set(o.a.OPACITY,t)},l.prototype.setVisible=function(t){this.set(o.a.VISIBLE,t)},l.prototype.setZIndex=function(t){this.set(o.a.Z_INDEX,t)},e.a=l},function(t,e,i){"use strict";var n={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",SOURCE:"source"};e.a=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(5),o=i(106),a=i(39),s=i(9),l=i(3),u=i(4),c=i(45),h=i(2),d=function t(e){var i=e||{};this.ulElement_=document.createElement("UL"),this.logoLi_=document.createElement("LI"),this.ulElement_.appendChild(this.logoLi_),this.logoLi_.style.display="none",this.collapsed_=void 0===i.collapsed||i.collapsed,this.collapsible_=void 0===i.collapsible||i.collapsible,this.collapsible_||(this.collapsed_=!1);var n=void 0!==i.className?i.className:"ol-attribution",r=void 0!==i.tipLabel?i.tipLabel:"Attributions",s=void 0!==i.collapseLabel?i.collapseLabel:"\xbb";"string"===typeof s?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=s):this.collapseLabel_=s;var c=void 0!==i.label?i.label:"i";"string"===typeof c?(this.label_=document.createElement("span"),this.label_.textContent=c):this.label_=c;var h=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_,d=document.createElement("button");d.setAttribute("type","button"),d.title=r,d.appendChild(h),l.a.listen(d,u.a.CLICK,this.handleClick_,this);var f=n+" "+a.a.CLASS_UNSELECTABLE+" "+a.a.CLASS_CONTROL+(this.collapsed_&&this.collapsible_?" ol-collapsed":"")+(this.collapsible_?"":" ol-uncollapsible"),p=document.createElement("div");p.className=f,p.appendChild(this.ulElement_),p.appendChild(d);var g=i.render?i.render:t.render;o.a.call(this,{element:p,render:g,target:i.target}),this.renderedAttributions_=[],this.renderedVisible_=!0,this.logoElements_={}};n.a.inherits(d,o.a),d.prototype.getSourceAttributions_=function(t){for(var e={},i=[],n=t.layerStatesArray,r=t.viewState.resolution,o=0,a=n.length;o<a;++o){var s=n[o];if(c.a.visibleAtResolution(s,r)){var l=s.layer.getSource();if(l){var u=l.getAttributions2();if(u){var h=u(t);if(h)if(Array.isArray(h))for(var d=0,f=h.length;d<f;++d)h[d]in e||(i.push(h[d]),e[h[d]]=!0);else h in e||(i.push(h),e[h]=!0)}}}}return i},d.render=function(t){this.updateElement_(t.frameState)},d.prototype.updateElement_=function(t){if(!t)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));var e=this.getSourceAttributions_(t);if(!r.a.equals(e,this.renderedAttributions_)){for(;this.ulElement_.lastChild!==this.logoLi_;)this.ulElement_.removeChild(this.ulElement_.lastChild);for(var i=0,n=e.length;i<n;++i){var o=document.createElement("LI");o.innerHTML=e[i],this.ulElement_.appendChild(o)}0===e.length&&this.renderedAttributions_.length>0?this.element.classList.add("ol-logo-only"):0===this.renderedAttributions_.length&&e.length>0&&this.element.classList.remove("ol-logo-only");var a=e.length>0||!h.a.isEmpty(t.logos);this.renderedVisible_!=a&&(this.element.style.display=a?"":"none",this.renderedVisible_=a),this.renderedAttributions_=e,this.insertLogos_(t)}},d.prototype.insertLogos_=function(t){var e,i=t.logos,n=this.logoElements_;for(e in n)e in i||(s.a.removeNode(n[e]),delete n[e]);var r,o,a;for(a in i){var l=i[a];l instanceof HTMLElement&&(this.logoLi_.appendChild(l),n[a]=l),a in n||(r=new Image,r.src=a,""===l?o=r:(o=document.createElement("a"),o.href=l,o.appendChild(r)),this.logoLi_.appendChild(o),n[a]=o)}this.logoLi_.style.display=h.a.isEmpty(i)?"none":""},d.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_()},d.prototype.handleToggle_=function(){this.element.classList.toggle("ol-collapsed"),this.collapsed_?s.a.replaceNode(this.collapseLabel_,this.label_):s.a.replaceNode(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_},d.prototype.getCollapsible=function(){return this.collapsible_},d.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())},d.prototype.setCollapsed=function(t){this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},d.prototype.getCollapsed=function(){return this.collapsed_},e.default=d},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(48),r=i(289),o=i(290),a=i(291),s=i(292),l=i(293),u=i(296),c=i(298),h=i(299),d=i(300),f=i(301),p={};p.defaults=function(t){var e=t||{},i=new n.a,p=new r.a(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&i.push(new s.a),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&i.push(new o.a({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&i.push(new a.a({kinetic:p})),(void 0===e.pinchRotate||e.pinchRotate)&&i.push(new d.a),(void 0===e.pinchZoom||e.pinchZoom)&&i.push(new f.a({constrainResolution:e.constrainResolution,duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(i.push(new u.a),i.push(new c.a({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&i.push(new h.a({constrainResolution:e.constrainResolution,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&i.push(new l.a({duration:e.zoomDuration})),i},e.default=p},function(t,e,i){"use strict";var n={ACTIVE:"active"};e.a=n},function(t,e,i){"use strict";var n={IMAGE:"image",VECTOR:"vector"};e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(35),o=i(9),a=i(1),s=i(165),l=i(10),u=function(t){s.a.call(this,t),this.coordinateToCanvasPixelTransform=l.a.create(),this.hitCanvasContext_=null};n.a.inherits(u,s.a),u.prototype.composeFrame=function(t,e,i){this.preCompose(i,t);var n=this.getImage();if(n){var r=e.extent,o=void 0!==r&&!a.a.containsExtent(r,t.extent)&&a.a.intersects(r,t.extent);o&&this.clip(i,t,r);var s=this.getImageTransform(),l=i.globalAlpha;i.globalAlpha=e.opacity;var u=s[4],c=s[5],h=n.width*s[0],d=n.height*s[3];i.drawImage(n,0,0,+n.width,+n.height,Math.round(u),Math.round(c),Math.round(h),Math.round(d)),i.globalAlpha=l,o&&i.restore()}this.postCompose(i,t,e)},u.prototype.getImage=function(){},u.prototype.getImageTransform=function(){},u.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,r){var o=this.getLayer(),a=o.getSource(),s=e.viewState.resolution,l=e.viewState.rotation,u=e.skippedFeatureUids;return a.forEachFeatureAtCoordinate(t,s,l,i,u,function(t){return n.call(r,t,o)})},u.prototype.forEachLayerAtCoordinate=function(t,e,i,a){if(this.getImage()){if(this.getLayer().getSource().forEachFeatureAtCoordinate!==n.a.nullFunction)return s.a.prototype.forEachLayerAtCoordinate.apply(this,arguments);var u=l.a.apply(this.coordinateToCanvasPixelTransform,t.slice());r.default.scale(u,e.viewState.resolution/this.renderedResolution),this.hitCanvasContext_||(this.hitCanvasContext_=o.a.createCanvasContext2D(1,1)),this.hitCanvasContext_.clearRect(0,0,1,1),this.hitCanvasContext_.drawImage(this.getImage(),u[0],u[1],1,1,0,0,1,1);var c=this.hitCanvasContext_.getImageData(0,0,1,1).data;return c[3]>0?i.call(a,this.getLayer(),c):void 0}},e.a=u},function(t,e,i){"use strict";var n=i(0),r=i(1),o=i(12),a=i(80),s=i(52),l=i(24),u=i(166),c=i(167),h=i(10),d=function(t){c.a.call(this,t),this.renderedResolution,this.transform_=h.a.create()};n.a.inherits(d,c.a),d.prototype.clip=function(t,e,i){var n=e.pixelRatio,o=e.size[0]*n,a=e.size[1]*n,s=e.viewState.rotation,u=r.a.getTopLeft(i),c=r.a.getTopRight(i),d=r.a.getBottomRight(i),f=r.a.getBottomLeft(i);h.a.apply(e.coordinateToPixelTransform,u),h.a.apply(e.coordinateToPixelTransform,c),h.a.apply(e.coordinateToPixelTransform,d),h.a.apply(e.coordinateToPixelTransform,f),t.save(),l.a.rotateAtOffset(t,-s,o/2,a/2),t.beginPath(),t.moveTo(u[0]*n,u[1]*n),t.lineTo(c[0]*n,c[1]*n),t.lineTo(d[0]*n,d[1]*n),t.lineTo(f[0]*n,f[1]*n),t.clip(),l.a.rotateAtOffset(t,s,o/2,a/2)},d.prototype.dispatchComposeEvent_=function(t,e,i,n){var r=this.getLayer();if(r.hasListener(t)){var o=i.size[0]*i.pixelRatio,s=i.size[1]*i.pixelRatio,c=i.viewState.rotation;l.a.rotateAtOffset(e,-c,o/2,s/2);var h=void 0!==n?n:this.getTransform(i,0),d=new u.a(e,i.pixelRatio,i.extent,h,i.viewState.rotation),f=new a.a(t,d,i,e,null);r.dispatchEvent(f),l.a.rotateAtOffset(e,c,o/2,s/2)}},d.prototype.forEachLayerAtCoordinate=function(t,e,i,n){return this.forEachFeatureAtCoordinate(t,e,0,o.a.TRUE,this)?i.call(n,this.getLayer(),null):void 0},d.prototype.postCompose=function(t,e,i,n){this.dispatchComposeEvent_(s.a.POSTCOMPOSE,t,e,n)},d.prototype.preCompose=function(t,e,i){this.dispatchComposeEvent_(s.a.PRECOMPOSE,t,e,i)},d.prototype.dispatchRenderEvent=function(t,e,i){this.dispatchComposeEvent_(s.a.RENDER,t,e,i)},d.prototype.getTransform=function(t,e){var i=t.viewState,n=t.pixelRatio,r=n*t.size[0]/2,o=n*t.size[1]/2,a=n/i.resolution,s=-a,l=-i.rotation,u=-i.center[0]+e,c=-i.center[1];return h.a.compose(this.transform_,r,o,a,s,l,u,c)},d.prototype.composeFrame=function(t,e,i){},d.prototype.prepareFrame=function(t,e){},e.a=d},function(t,e,i){"use strict";var n=i(0),r=i(5),o=i(58),a=i(1),s=i(8),l=i(22),u=i(26),c=i(18),h=i(81),d=i(24),f=i(10),p=function(t,e,i,n,r){h.a.call(this),this.context_=t,this.pixelRatio_=e,this.extent_=i,this.transform_=n,this.viewRotation_=r,this.contextFillState_=null,this.contextStrokeState_=null,this.contextTextState_=null,this.fillState_=null,this.strokeState_=null,this.image_=null,this.imageAnchorX_=0,this.imageAnchorY_=0,this.imageHeight_=0,this.imageOpacity_=0,this.imageOriginX_=0,this.imageOriginY_=0,this.imageRotateWithView_=!1,this.imageRotation_=0,this.imageScale_=0,this.imageSnapToPixel_=!1,this.imageWidth_=0,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=!1,this.textRotation_=0,this.textScale_=0,this.textFillState_=null,this.textStrokeState_=null,this.textState_=null,this.pixelCoordinates_=[],this.tmpLocalTransform_=f.a.create()};n.a.inherits(p,h.a),p.prototype.drawImages_=function(t,e,i,n){if(this.image_){var r=u.a.transform2D(t,e,i,2,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.tmpLocalTransform_,s=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=s*this.imageOpacity_);var l=this.imageRotation_;this.imageRotateWithView_&&(l+=this.viewRotation_);var c,h;for(c=0,h=r.length;c<h;c+=2){var d=r[c]-this.imageAnchorX_,p=r[c+1]-this.imageAnchorY_;if(this.imageSnapToPixel_&&(d=Math.round(d),p=Math.round(p)),0!==l||1!=this.imageScale_){var g=d+this.imageAnchorX_,_=p+this.imageAnchorY_;f.a.compose(a,g,_,this.imageScale_,this.imageScale_,l,-g,-_),o.setTransform.apply(o,a)}o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,d,p,this.imageWidth_,this.imageHeight_)}0===l&&1==this.imageScale_||o.setTransform(1,0,0,1,0,0),1!=this.imageOpacity_&&(o.globalAlpha=s)}},p.prototype.drawText_=function(t,e,i,n){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var r=u.a.transform2D(t,e,i,n,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.textRotation_;for(this.textRotateWithView_&&(a+=this.viewRotation_);e<i;e+=n){var s=r[e]+this.textOffsetX_,l=r[e+1]+this.textOffsetY_;if(0!==a||1!=this.textScale_){var c=f.a.compose(this.tmpLocalTransform_,s,l,this.textScale_,this.textScale_,a,-s,-l);o.setTransform.apply(o,c)}this.textStrokeState_&&o.strokeText(this.text_,s,l),this.textFillState_&&o.fillText(this.text_,s,l)}0===a&&1==this.textScale_||o.setTransform(1,0,0,1,0,0)}},p.prototype.moveToLineTo_=function(t,e,i,n,r){var o=this.context_,a=u.a.transform2D(t,e,i,n,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(),i},p.prototype.drawRings_=function(t,e,i,n){var r,o;for(r=0,o=i.length;r<o;++r)e=this.moveToLineTo_(t,e,i[r],n,!0);return e},p.prototype.drawCircle=function(t){if(a.a.intersects(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=l.a.transform2D(t,this.transform_,this.pixelCoordinates_),i=e[2]-e[0],n=e[3]-e[1],r=Math.sqrt(i*i+n*n),o=this.context_;o.beginPath(),o.arc(e[0],e[1],r,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.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.drawGeometry=function(t){switch(t.getType()){case s.a.POINT:this.drawPoint(t);break;case s.a.LINE_STRING:this.drawLineString(t);break;case s.a.POLYGON:this.drawPolygon(t);break;case s.a.MULTI_POINT:this.drawMultiPoint(t);break;case s.a.MULTI_LINE_STRING:this.drawMultiLineString(t);break;case s.a.MULTI_POLYGON:this.drawMultiPolygon(t);break;case s.a.GEOMETRY_COLLECTION:this.drawGeometryCollection(t);break;case s.a.CIRCLE:this.drawCircle(t)}},p.prototype.drawFeature=function(t,e){var i=e.getGeometryFunction()(t);i&&a.a.intersects(this.extent_,i.getExtent())&&(this.setStyle(e),this.drawGeometry(i))},p.prototype.drawGeometryCollection=function(t){var e,i,n=t.getGeometriesArray();for(e=0,i=n.length;e<i;++e)this.drawGeometry(n[e])},p.prototype.drawPoint=function(t){var e=t.getFlatCoordinates(),i=t.getStride();this.image_&&this.drawImages_(e,0,e.length,i),""!==this.text_&&this.drawText_(e,0,e.length,i)},p.prototype.drawMultiPoint=function(t){var e=t.getFlatCoordinates(),i=t.getStride();this.image_&&this.drawImages_(e,0,e.length,i),""!==this.text_&&this.drawText_(e,0,e.length,i)},p.prototype.drawLineString=function(t){if(a.a.intersects(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var e=this.context_,i=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(i,0,i.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){var n=t.getFlatMidpoint();this.drawText_(n,0,2,2)}}},p.prototype.drawMultiLineString=function(t){var e=t.getExtent();if(a.a.intersects(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var i=this.context_,n=t.getFlatCoordinates(),r=0,o=t.getEnds(),s=t.getStride();i.beginPath();var l,u;for(l=0,u=o.length;l<u;++l)r=this.moveToLineTo_(n,r,o[l],s,!1);i.stroke()}if(""!==this.text_){var c=t.getFlatMidpoints();this.drawText_(c,0,c.length,2)}}},p.prototype.drawPolygon=function(t){if(a.a.intersects(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_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var i=t.getFlatInteriorPoint();this.drawText_(i,0,2,2)}}},p.prototype.drawMultiPolygon=function(t){if(a.a.intersects(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e,i,n=this.context_,r=t.getOrientedFlatCoordinates(),o=0,s=t.getEndss(),l=t.getStride();for(n.beginPath(),e=0,i=s.length;e<i;++e){var u=s[e];o=this.drawRings_(r,o,u,l)}this.fillState_&&n.fill(),this.strokeState_&&n.stroke()}if(""!==this.text_){var c=t.getFlatInteriorPoints();this.drawText_(c,0,c.length,2)}}},p.prototype.setContextFillState_=function(t){var e=this.context_,i=this.contextFillState_;i?i.fillStyle!=t.fillStyle&&(i.fillStyle=e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})},p.prototype.setContextStrokeState_=function(t){var e=this.context_,i=this.contextStrokeState_;i?(i.lineCap!=t.lineCap&&(i.lineCap=e.lineCap=t.lineCap),c.a.CANVAS_LINE_DASH&&(r.a.equals(i.lineDash,t.lineDash)||e.setLineDash(i.lineDash=t.lineDash),i.lineDashOffset!=t.lineDashOffset&&(i.lineDashOffset=e.lineDashOffset=t.lineDashOffset)),i.lineJoin!=t.lineJoin&&(i.lineJoin=e.lineJoin=t.lineJoin),i.lineWidth!=t.lineWidth&&(i.lineWidth=e.lineWidth=t.lineWidth),i.miterLimit!=t.miterLimit&&(i.miterLimit=e.miterLimit=t.miterLimit),i.strokeStyle!=t.strokeStyle&&(i.strokeStyle=e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,c.a.CANVAS_LINE_DASH&&(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_,i=this.contextTextState_,n=t.textAlign?t.textAlign:d.a.defaultTextAlign;i?(i.font!=t.font&&(i.font=e.font=t.font),i.textAlign!=n&&(i.textAlign=n),i.textBaseline!=t.textBaseline&&(i.textBaseline=e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=n,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:n,textBaseline:t.textBaseline})},p.prototype.setFillStrokeStyle=function(t,e){if(t){var i=t.getColor();this.fillState_={fillStyle:o.a.asColorLike(i||d.a.defaultFillStyle)}}else this.fillState_=null;if(e){var n=e.getColor(),r=e.getLineCap(),a=e.getLineDash(),s=e.getLineDashOffset(),l=e.getLineJoin(),u=e.getWidth(),c=e.getMiterLimit();this.strokeState_={lineCap:void 0!==r?r:d.a.defaultLineCap,lineDash:a||d.a.defaultLineDash,lineDashOffset:s||d.a.defaultLineDashOffset,lineJoin:void 0!==l?l:d.a.defaultLineJoin,lineWidth:this.pixelRatio_*(void 0!==u?u:d.a.defaultLineWidth),miterLimit:void 0!==c?c:d.a.defaultMiterLimit,strokeStyle:o.a.asColorLike(n||d.a.defaultStrokeStyle)}}else this.strokeState_=null},p.prototype.setImageStyle=function(t){if(t){var e=t.getAnchor(),i=t.getImage(1),n=t.getOrigin(),r=t.getSize();this.imageAnchorX_=e[0],this.imageAnchorY_=e[1],this.imageHeight_=r[1],this.image_=i,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=n[0],this.imageOriginY_=n[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation(),this.imageScale_=t.getScale()*this.pixelRatio_,this.imageSnapToPixel_=t.getSnapToPixel(),this.imageWidth_=r[0]}else this.image_=null},p.prototype.setTextStyle=function(t){if(t){var e=t.getFill();if(e){var i=e.getColor();this.textFillState_={fillStyle:o.a.asColorLike(i||d.a.defaultFillStyle)}}else this.textFillState_=null;var n=t.getStroke();if(n){var r=n.getColor(),a=n.getLineCap(),s=n.getLineDash(),l=n.getLineDashOffset(),u=n.getLineJoin(),c=n.getWidth(),h=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==a?a:d.a.defaultLineCap,lineDash:s||d.a.defaultLineDash,lineDashOffset:l||d.a.defaultLineDashOffset,lineJoin:void 0!==u?u:d.a.defaultLineJoin,lineWidth:void 0!==c?c:d.a.defaultLineWidth,miterLimit:void 0!==h?h:d.a.defaultMiterLimit,strokeStyle:o.a.asColorLike(r||d.a.defaultStrokeStyle)}}else this.textStrokeState_=null;var f=t.getFont(),p=t.getOffsetX(),g=t.getOffsetY(),_=t.getRotateWithView(),y=t.getRotation(),v=t.getScale(),m=t.getText(),E=t.getTextAlign(),T=t.getTextBaseline();this.textState_={font:void 0!==f?f:d.a.defaultFont,textAlign:void 0!==E?E:d.a.defaultTextAlign,textBaseline:void 0!==T?T:d.a.defaultTextBaseline},this.text_=void 0!==m?m:"",this.textOffsetX_=void 0!==p?this.pixelRatio_*p:0,this.textOffsetY_=void 0!==g?this.pixelRatio_*g:0,this.textRotateWithView_=void 0!==_&&_,this.textRotation_=void 0!==y?y:0,this.textScale_=this.pixelRatio_*(void 0!==v?v:1)}else this.text_=""},e.a=p},function(t,e,i){"use strict";var n=i(0),r=i(21),o=i(74),a=i(15),s=i(7),l=i(3),u=i(4),c=i(12),h=i(37),d=function(t){o.default.call(this),this.layer_=t};n.a.inherits(d,o.default),d.prototype.forEachFeatureAtCoordinate=n.a.nullFunction,d.prototype.hasFeatureAtCoordinate=c.a.FALSE,d.prototype.createLoadedTileFinder=function(t,e,i){return function(n,r){function o(t){i[n]||(i[n]={}),i[n][t.tileCoord.toString()]=t}return t.forEachLoadedTile(e,n,r,o)}},d.prototype.getLayer=function(){return this.layer_},d.prototype.handleImageChange_=function(t){t.target.getState()===r.a.LOADED&&this.renderIfReadyAndVisible()},d.prototype.loadImage=function(t){var e=t.getState();return e!=r.a.LOADED&&e!=r.a.ERROR&&l.a.listen(t,u.a.CHANGE,this.handleImageChange_,this),e==r.a.IDLE&&(t.load(),e=t.getState()),e==r.a.LOADED},d.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t.getVisible()&&t.getSourceState()==h.a.READY&&this.changed()},d.prototype.scheduleExpireCache=function(t,e){if(e.canExpireCache()){var i=function(t,e,i){var r=n.a.getUid(t).toString();r in i.usedTiles&&t.expireCache(i.viewState.projection,i.usedTiles[r])}.bind(null,e);t.postRenderFunctions.push(i)}},d.prototype.updateLogos=function(t,e){var i=e.getLogo();void 0!==i&&("string"===typeof i?t.logos[i]="":i&&(s.a.assert("string"==typeof i.href,44),s.a.assert("string"==typeof i.src,45),t.logos[i.src]=i.href))},d.prototype.updateUsedTiles=function(t,e,i,r){var o=n.a.getUid(e).toString(),a=i.toString();o in t?a in t[o]?t[o][a].extend(r):t[o][a]=r:(t[o]={},t[o][a]=r)},d.prototype.manageTilePyramid=function(t,e,i,r,o,s,l,u,c,h){var d=n.a.getUid(e).toString();d in t.wantedTiles||(t.wantedTiles[d]={});var f,p,g,_,y,v,m=t.wantedTiles[d],E=t.tileQueue,T=i.getMinZoom();for(v=T;v<=l;++v)for(p=i.getTileRangeForExtentAndZ(s,v,p),g=i.getResolution(v),_=p.minX;_<=p.maxX;++_)for(y=p.minY;y<=p.maxY;++y)l-v<=u?(f=e.getTile(v,_,y,r,o),f.getState()==a.a.IDLE&&(m[f.getKey()]=!0,E.isKeyQueued(f.getKey())||E.enqueue([f,d,i.getTileCoordCenter(f.tileCoord),g])),void 0!==c&&c.call(h,f)):e.useTile(v,_,y,o)},e.a=d},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(10),r=i(0),o=i(5),a=i(39),s=i(9),l=i(45),u=i(80),c=i(52),h=i(24),d=i(166),f=i(169),p=i(23),g=i(37),_=function(t,e){f.a.call(this,t,e),this.context_=s.a.createCanvasContext2D(),this.canvas_=this.context_.canvas,this.canvas_.style.width="100%",this.canvas_.style.height="100%",this.canvas_.style.display="block",this.canvas_.className=a.a.CLASS_UNSELECTABLE,t.insertBefore(this.canvas_,t.childNodes[0]||null),this.renderedVisible_=!0,this.transform_=n.a.create()};r.a.inherits(_,f.a),_.handles=function(t){return t===p.a.CANVAS},_.create=function(t,e){return new _(t,e)},_.prototype.dispatchComposeEvent_=function(t,e){var i=this.getMap(),n=this.context_;if(i.hasListener(t)){var r=e.extent,o=e.pixelRatio,a=e.viewState,s=a.rotation,l=this.getTransform(e),c=new d.a(n,o,r,l,s),h=new u.a(t,c,e,n,null);i.dispatchEvent(h)}},_.prototype.getTransform=function(t){var e=t.viewState,i=this.canvas_.width/2,r=this.canvas_.height/2,o=t.pixelRatio/e.resolution,a=-o,s=-e.rotation,l=-e.center[0],u=-e.center[1];return n.a.compose(this.transform_,i,r,o,a,s,l,u)},_.prototype.getType=function(){return p.a.CANVAS},_.prototype.renderFrame=function(t){if(!t)return void(this.renderedVisible_&&(this.canvas_.style.display="none",this.renderedVisible_=!1));var e=this.context_,i=t.pixelRatio,n=Math.round(t.size[0]*i),r=Math.round(t.size[1]*i);this.canvas_.width!=n||this.canvas_.height!=r?(this.canvas_.width=n,this.canvas_.height=r):e.clearRect(0,0,n,r);var a=t.viewState.rotation;this.calculateMatrices2D(t),this.dispatchComposeEvent_(c.a.PRECOMPOSE,t);var s=t.layerStatesArray;o.a.stableSort(s,f.a.sortByZIndex),a&&(e.save(),h.a.rotateAtOffset(e,a,n/2,r/2));var u,d,p,_,y,v=t.viewState.resolution;for(u=0,d=s.length;u<d;++u)y=s[u],p=y.layer,_=this.getLayerRenderer(p),l.a.visibleAtResolution(y,v)&&y.sourceState==g.a.READY&&_.prepareFrame(t,y)&&_.composeFrame(t,y,e);a&&e.restore(),this.dispatchComposeEvent_(c.a.POSTCOMPOSE,t),this.renderedVisible_||(this.canvas_.style.display="",this.renderedVisible_=!0),this.scheduleRemoveUnusedLayerRenderers(t),this.scheduleExpireIconCache(t)},_.prototype.forEachLayerAtPixel=function(t,e,i,r,o,a){var s,u,c=e.viewState,h=c.resolution,d=e.layerStatesArray,f=d.length,p=n.a.apply(e.pixelToCoordinateTransform,t.slice());for(u=f-1;u>=0;--u){var g=d[u],_=g.layer;if(l.a.visibleAtResolution(g,h)&&o.call(a,_)){if(s=this.getLayerRenderer(_).forEachLayerAtCoordinate(p,e,i,r))return s}}},e.default=_},function(t,e,i){"use strict";var n=i(0),r=i(71),o=i(3),a=i(4),s=i(1),l=i(12),u=i(45),c=i(61),h=i(144),d=i(10),f=function(t,e){r.a.call(this),this.map_=e,this.layerRenderers_={},this.layerRendererListeners_={}};n.a.inherits(f,r.a),f.prototype.calculateMatrices2D=function(t){var e=t.viewState,i=t.coordinateToPixelTransform,n=t.pixelToCoordinateTransform;d.a.compose(i,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),d.a.invert(d.a.setFromArray(n,i))},f.prototype.removeLayerRenderers=function(){for(var t in this.layerRenderers_)this.removeLayerRendererByKey_(t).dispose()},f.expireIconCache_=function(t,e){h.a.iconImageCache.expire()},f.prototype.forEachFeatureAtCoordinate=function(t,e,i,r,o,a,l){function c(t,i){var a=n.a.getUid(t).toString(),s=e.layerStates[n.a.getUid(i)].managed;if(!(a in e.skippedFeatureUids)||s)return r.call(o,t,s?i:null)}var h,d=e.viewState,f=d.resolution,p=d.projection,g=t;if(p.canWrapX()){var _=p.getExtent(),y=s.a.getWidth(_),v=t[0];if(v<_[0]||v>_[2]){g=[v+y*Math.ceil((_[0]-v)/y),t[1]]}}var m,E=e.layerStatesArray,T=E.length;for(m=T-1;m>=0;--m){var S=E[m],x=S.layer;if(u.a.visibleAtResolution(S,f)&&a.call(l,x)){var C=this.getLayerRenderer(x);if(x.getSource()&&(h=C.forEachFeatureAtCoordinate(x.getSource().getWrapX()?g:t,e,i,c,o)),h)return h}}},f.prototype.forEachLayerAtPixel=function(t,e,i,n,r,o){},f.prototype.hasFeatureAtCoordinate=function(t,e,i,n,r){return void 0!==this.forEachFeatureAtCoordinate(t,e,i,l.a.TRUE,this,n,r)},f.prototype.getLayerRenderer=function(t){var e=n.a.getUid(t).toString();if(e in this.layerRenderers_)return this.layerRenderers_[e];for(var i,r=c.default.getLayerRendererPlugins(),s=this.getType(),l=0,u=r.length;l<u;++l){var h=r[l];if(h.handles(s,t)){i=h.create(this,t);break}}if(!i)throw new Error("Unable to create renderer for layer: "+t.getType());return this.layerRenderers_[e]=i,this.layerRendererListeners_[e]=o.a.listen(i,a.a.CHANGE,this.handleLayerRendererChange_,this),i},f.prototype.getLayerRendererByKey=function(t){return this.layerRenderers_[t]},f.prototype.getLayerRenderers=function(){return this.layerRenderers_},f.prototype.getMap=function(){return this.map_},f.prototype.getType=function(){},f.prototype.handleLayerRendererChange_=function(){this.map_.render()},f.prototype.removeLayerRendererByKey_=function(t){var e=this.layerRenderers_[t];return delete this.layerRenderers_[t],o.a.unlistenByKey(this.layerRendererListeners_[t]),delete this.layerRendererListeners_[t],e},f.prototype.renderFrame=n.a.nullFunction,f.prototype.removeUnusedLayerRenderers_=function(t,e){var i;for(i in this.layerRenderers_)e&&i in e.layerStates||this.removeLayerRendererByKey_(i).dispose()},f.prototype.scheduleExpireIconCache=function(t){t.postRenderFunctions.push(f.expireIconCache_)},f.prototype.scheduleRemoveUnusedLayerRenderers=function(t){var e;for(e in this.layerRenderers_)if(!(e in t.layerStates))return void t.postRenderFunctions.push(this.removeUnusedLayerRenderers_.bind(this))},f.sortByZIndex=function(t,e){return t.zIndex-e.zIndex},e.a=f},function(t,e,i){"use strict";var n=i(0),r=i(5),o=i(9),a=i(1),s=i(26),l=i(2),u=i(171),c=i(62),h=i(63),d=i(307),f=i(308),p=i(309),g=i(310),_=i(53),y=i(10),v=function(t,e,i,n,r,a,s){u.a.call(this),this.declutterTree_=a,this.declutterGroup_=null,this.tolerance_=t,this.maxExtent_=e,this.overlaps_=r,this.pixelRatio_=n,this.resolution_=i,this.renderBuffer_=s,this.replaysByZIndex_={},this.hitDetectionContext_=o.a.createCanvasContext2D(1,1),this.hitDetectionTransform_=y.a.create()};n.a.inherits(v,u.a),v.circleArrayCache_={0:[[!0]]},v.fillCircleArrayRowToMiddle_=function(t,e,i){var n,r=Math.floor(t.length/2);if(e>=r)for(n=r;n<e;n++)t[n][i]=!0;else if(e<r)for(n=e+1;n<r;n++)t[n][i]=!0},v.getCircleArray_=function(t){if(void 0!==v.circleArrayCache_[t])return v.circleArrayCache_[t];for(var e=2*t+1,i=new Array(e),n=0;n<e;n++)i[n]=new Array(e);for(var r=t,o=0,a=0;r>=o;)v.fillCircleArrayRowToMiddle_(i,t+r,t+o),v.fillCircleArrayRowToMiddle_(i,t+o,t+r),v.fillCircleArrayRowToMiddle_(i,t-o,t+r),v.fillCircleArrayRowToMiddle_(i,t-r,t+o),v.fillCircleArrayRowToMiddle_(i,t-r,t-o),v.fillCircleArrayRowToMiddle_(i,t-o,t-r),v.fillCircleArrayRowToMiddle_(i,t+o,t-r),v.fillCircleArrayRowToMiddle_(i,t+r,t-o),o++,2*((a+=1+2*o)-r)+1>0&&(r-=1,a+=1-2*r);return v.circleArrayCache_[t]=i,i},v.replayDeclutter=function(t,e,i){for(var n=Object.keys(t).map(Number).sort(r.a.numberSafeCompareFunction),o={},a=0,s=n.length;a<s;++a)for(var l=t[n[a].toString()],u=0,c=l.length;u<c;){var h=l[u++],d=l[u++];h.replay(e,d,i,o)}},v.prototype.addDeclutter=function(t){var e=null;return this.declutterTree_&&(t?(e=this.declutterGroup_,e[4]++):(e=this.declutterGroup_=a.a.createEmpty(),e.push(1))),e},v.prototype.clip=function(t,e){var i=this.getClipCoords(e);t.beginPath(),t.moveTo(i[0],i[1]),t.lineTo(i[2],i[3]),t.lineTo(i[4],i[5]),t.lineTo(i[6],i[7]),t.clip()},v.prototype.hasReplays=function(t){for(var e in this.replaysByZIndex_)for(var i=this.replaysByZIndex_[e],n=0,r=t.length;n<r;++n)if(t[n]in i)return!0;return!1},v.prototype.finish=function(){var t;for(t in this.replaysByZIndex_){var e,i=this.replaysByZIndex_[t];for(e in i)i[e].finish()}},v.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,r,o,s){function l(t){for(var e=h.getImageData(0,0,u,u).data,i=0;i<u;i++)for(var n=0;n<u;n++)if(p[i][n]&&e[4*(n*u+i)+3]>0){var r;return f&&-1===f.indexOf(t)||(r=o(t)),r||void h.clearRect(0,0,u,u)}}n=Math.round(n);var u=2*n+1,c=y.a.compose(this.hitDetectionTransform_,n+.5,n+.5,1/e,-1/e,-i,-t[0],-t[1]),h=this.hitDetectionContext_;h.canvas.width!==u||h.canvas.height!==u?(h.canvas.width=u,h.canvas.height=u):h.clearRect(0,0,u,u);var d;void 0!==this.renderBuffer_&&(d=a.a.createEmpty(),a.a.extendCoordinate(d,t),a.a.buffer(d,e*(this.renderBuffer_+n),d));var f,p=v.getCircleArray_(n);return this.declutterTree_&&(f=this.declutterTree_.all().map(function(t){return t.value})),this.replayHitDetection_(h,c,i,r,l,d,s)},v.prototype.getClipCoords=function(t){var e=this.maxExtent_,i=e[0],n=e[1],r=e[2],o=e[3],a=[i,n,i,o,r,o,r,n];return s.a.transform2D(a,0,8,2,t,a),a},v.prototype.getReplay=function(t,e){var i=void 0!==t?t.toString():"0",n=this.replaysByZIndex_[i];void 0===n&&(n={},this.replaysByZIndex_[i]=n);var r=n[e];if(void 0===r){r=new(0,v.BATCH_CONSTRUCTORS_[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_,this.overlaps_,this.declutterTree_),n[e]=r}return r},v.prototype.getReplays=function(){return this.replaysByZIndex_},v.prototype.isEmpty=function(){return l.a.isEmpty(this.replaysByZIndex_)},v.prototype.replay=function(t,e,i,n,o,a){var s=Object.keys(this.replaysByZIndex_).map(Number);s.sort(r.a.numberSafeCompareFunction),t.save(),this.clip(t,e);var l,u,h,d,f,p,g=o||_.a.ORDER;for(l=0,u=s.length;l<u;++l){var y=s[l].toString();for(f=this.replaysByZIndex_[y],h=0,d=g.length;h<d;++h){var v=g[h];if(void 0!==(p=f[v]))if(!a||v!=c.a.IMAGE&&v!=c.a.TEXT)p.replay(t,e,i,n);else{var m=a[y];m?m.push(p,e.slice(0)):a[y]=[p,e.slice(0)]}}}t.restore()},v.prototype.replayHitDetection_=function(t,e,i,n,o,a,s){var l=Object.keys(this.replaysByZIndex_).map(Number);l.sort(r.a.numberSafeCompareFunction);var u,h,d,f,p;for(u=l.length-1;u>=0;--u){var g=l[u].toString();for(d=this.replaysByZIndex_[g],h=_.a.ORDER.length-1;h>=0;--h){var y=_.a.ORDER[h];if(void 0!==(f=d[y]))if(!s||y!=c.a.IMAGE&&y!=c.a.TEXT){if(p=f.replayHitDetection(t,e,i,n,o,a))return p}else{var v=s[g];v?v.push(f,e.slice(0)):s[g]=[f,e.slice(0)]}}}},v.BATCH_CONSTRUCTORS_={Circle:p.a,Default:h.a,Image:d.a,LineString:f.a,Polygon:p.a,Text:g.a},e.a=v},function(t,e,i){"use strict";var n=function(){};n.prototype.getReplay=function(t,e){},n.prototype.isEmpty=function(){},e.a=n},function(t,e,i){"use strict";var n={};n.lineString=function(t,e,i,n){var r,o=t[e],a=t[e+1],s=0;for(r=e+n;r<i;r+=n){var l=t[r],u=t[r+1];s+=Math.sqrt((l-o)*(l-o)+(u-a)*(u-a)),o=l,a=u}return s},n.linearRing=function(t,e,i,r){var o=n.lineString(t,e,i,r),a=t[i-r]-t[e],s=t[i-r+1]-t[e+1];return o+=Math.sqrt(a*a+s*s)},e.a=n},function(t,e,i){"use strict";var n={IMAGE:"image",HYBRID:"hybrid",VECTOR:"vector"};e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(1),o=i(8),a=i(62),s=i(81),l=i(175),u=function(t,e,i,n,r,o,a){s.a.call(this),this.context_=t,this.center_=e,this.extent_=o,this.pixelRatio_=a,this.size_=r,this.rotation_=n,this.resolution_=i,this.imageStyle_=null,this.fillStyle_=null,this.strokeStyle_=null,this.textStyle_=null};n.a.inherits(u,s.a),u.prototype.drawText_=function(t,e){var i=this.context_,n=t.getReplay(0,a.a.TEXT);n.setTextStyle(this.textStyle_),n.drawText(e,null),n.finish(i);var r={};n.replay(this.context_,this.center_,this.resolution_,this.rotation_,this.size_,this.pixelRatio_,1,r,void 0,!1),n.getDeleteResourcesFunction(i)()},u.prototype.setStyle=function(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())},u.prototype.drawGeometry=function(t){switch(t.getType()){case o.a.POINT:this.drawPoint(t,null);break;case o.a.LINE_STRING:this.drawLineString(t,null);break;case o.a.POLYGON:this.drawPolygon(t,null);break;case o.a.MULTI_POINT:this.drawMultiPoint(t,null);break;case o.a.MULTI_LINE_STRING:this.drawMultiLineString(t,null);break;case o.a.MULTI_POLYGON:this.drawMultiPolygon(t,null);break;case o.a.GEOMETRY_COLLECTION:this.drawGeometryCollection(t,null);break;case o.a.CIRCLE:this.drawCircle(t,null)}},u.prototype.drawFeature=function(t,e){var i=e.getGeometryFunction()(t);i&&r.a.intersects(this.extent_,i.getExtent())&&(this.setStyle(e),this.drawGeometry(i))},u.prototype.drawGeometryCollection=function(t,e){var i,n,r=t.getGeometriesArray();for(i=0,n=r.length;i<n;++i)this.drawGeometry(r[i])},u.prototype.drawPoint=function(t,e){var i=this.context_,n=new l.a(1,this.extent_),r=n.getReplay(0,a.a.IMAGE);r.setImageStyle(this.imageStyle_),r.drawPoint(t,e),r.finish(i);var o={};r.replay(this.context_,this.center_,this.resolution_,this.rotation_,this.size_,this.pixelRatio_,1,o,void 0,!1),r.getDeleteResourcesFunction(i)(),this.textStyle_&&this.drawText_(n,t)},u.prototype.drawMultiPoint=function(t,e){var i=this.context_,n=new l.a(1,this.extent_),r=n.getReplay(0,a.a.IMAGE);r.setImageStyle(this.imageStyle_),r.drawMultiPoint(t,e),r.finish(i);var o={};r.replay(this.context_,this.center_,this.resolution_,this.rotation_,this.size_,this.pixelRatio_,1,o,void 0,!1),r.getDeleteResourcesFunction(i)(),this.textStyle_&&this.drawText_(n,t)},u.prototype.drawLineString=function(t,e){var i=this.context_,n=new l.a(1,this.extent_),r=n.getReplay(0,a.a.LINE_STRING);r.setFillStrokeStyle(null,this.strokeStyle_),r.drawLineString(t,e),r.finish(i);var o={};r.replay(this.context_,this.center_,this.resolution_,this.rotation_,this.size_,this.pixelRatio_,1,o,void 0,!1),r.getDeleteResourcesFunction(i)(),this.textStyle_&&this.drawText_(n,t)},u.prototype.drawMultiLineString=function(t,e){var i=this.context_,n=new l.a(1,this.extent_),r=n.getReplay(0,a.a.LINE_STRING);r.setFillStrokeStyle(null,this.strokeStyle_),r.drawMultiLineString(t,e),r.finish(i);var o={};r.replay(this.context_,this.center_,this.resolution_,this.rotation_,this.size_,this.pixelRatio_,1,o,void 0,!1),r.getDeleteResourcesFunction(i)(),this.textStyle_&&this.drawText_(n,t)},u.prototype.drawPolygon=function(t,e){var i=this.context_,n=new l.a(1,this.extent_),r=n.getReplay(0,a.a.POLYGON);r.setFillStrokeStyle(this.fillStyle_,this.strokeStyle_),r.drawPolygon(t,e),r.finish(i);var o={};r.replay(this.context_,this.center_,this.resolution_,this.rotation_,this.size_,this.pixelRatio_,1,o,void 0,!1),r.getDeleteResourcesFunction(i)(),this.textStyle_&&this.drawText_(n,t)},u.prototype.drawMultiPolygon=function(t,e){var i=this.context_,n=new l.a(1,this.extent_),r=n.getReplay(0,a.a.POLYGON);r.setFillStrokeStyle(this.fillStyle_,this.strokeStyle_),r.drawMultiPolygon(t,e),r.finish(i);var o={};r.replay(this.context_,this.center_,this.resolution_,this.rotation_,this.size_,this.pixelRatio_,1,o,void 0,!1),r.getDeleteResourcesFunction(i)(),this.textStyle_&&this.drawText_(n,t)},u.prototype.drawCircle=function(t,e){var i=this.context_,n=new l.a(1,this.extent_),r=n.getReplay(0,a.a.CIRCLE);r.setFillStrokeStyle(this.fillStyle_,this.strokeStyle_),r.drawCircle(t,e),r.finish(i);var o={};r.replay(this.context_,this.center_,this.resolution_,this.rotation_,this.size_,this.pixelRatio_,1,o,void 0,!1),r.getDeleteResourcesFunction(i)(),this.textStyle_&&this.drawText_(n,t)},u.prototype.setImageStyle=function(t){this.imageStyle_=t},u.prototype.setFillStrokeStyle=function(t,e){this.fillStyle_=t,this.strokeStyle_=e},u.prototype.setTextStyle=function(t){this.textStyle_=t},e.a=u},function(t,e,i){"use strict";var n=i(0),r=i(5),o=i(1),a=i(2),s=i(53),l=i(171),u=i(314),c=i(317),h=i(180),d=i(323),f=i(327),p=function(t,e,i){l.a.call(this),this.maxExtent_=e,this.tolerance_=t,this.renderBuffer_=i,this.replaysByZIndex_={}};n.a.inherits(p,l.a),p.prototype.addDeclutter=function(t,e){},p.prototype.getDeleteResourcesFunction=function(t){var e,i=[];for(e in this.replaysByZIndex_){var n,r=this.replaysByZIndex_[e];for(n in r)i.push(r[n].getDeleteResourcesFunction(t))}return function(){for(var t,e=i.length,n=0;n<e;n++)t=i[n].apply(this,arguments);return t}},p.prototype.finish=function(t){var e;for(e in this.replaysByZIndex_){var i,n=this.replaysByZIndex_[e];for(i in n)n[i].finish(t)}},p.prototype.getReplay=function(t,e){var i=void 0!==t?t.toString():"0",n=this.replaysByZIndex_[i];void 0===n&&(n={},this.replaysByZIndex_[i]=n);var r=n[e];if(void 0===r){r=new(0,p.BATCH_CONSTRUCTORS_[e])(this.tolerance_,this.maxExtent_),n[e]=r}return r},p.prototype.isEmpty=function(){return a.a.isEmpty(this.replaysByZIndex_)},p.prototype.replay=function(t,e,i,n,o,a,l,u){var c=Object.keys(this.replaysByZIndex_).map(Number);c.sort(r.a.numberSafeCompareFunction);var h,d,f,p,g,_;for(h=0,d=c.length;h<d;++h)for(g=this.replaysByZIndex_[c[h].toString()],f=0,p=s.a.ORDER.length;f<p;++f)void 0!==(_=g[s.a.ORDER[f]])&&_.replay(t,e,i,n,o,a,l,u,void 0,!1)},p.prototype.replayHitDetection_=function(t,e,i,n,r,o,a,l,u,c,h){var d=Object.keys(this.replaysByZIndex_).map(Number);d.sort(function(t,e){return e-t});var f,p,g,_,y,v;for(f=0,p=d.length;f<p;++f)for(_=this.replaysByZIndex_[d[f].toString()],g=s.a.ORDER.length-1;g>=0;--g)if(void 0!==(y=_[s.a.ORDER[g]])&&(v=y.replay(t,e,i,n,r,o,a,l,u,c,h)))return v},p.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,r,a,s,l,u,c){var h=e.getGL();h.bindFramebuffer(h.FRAMEBUFFER,e.getHitDetectionFramebuffer());var d;return void 0!==this.renderBuffer_&&(d=o.a.buffer(o.a.createOrUpdateFromCoordinate(t),n*this.renderBuffer_)),this.replayHitDetection_(e,t,n,r,p.HIT_DETECTION_SIZE_,s,l,u,function(t){var e=new Uint8Array(4);if(h.readPixels(0,0,1,1,h.RGBA,h.UNSIGNED_BYTE,e),e[3]>0){var i=c(t);if(i)return i}},!0,d)},p.prototype.hasFeatureAtCoordinate=function(t,e,i,n,r,o,a,s,l){var u=e.getGL();return u.bindFramebuffer(u.FRAMEBUFFER,e.getHitDetectionFramebuffer()),void 0!==this.replayHitDetection_(e,t,n,r,p.HIT_DETECTION_SIZE_,a,s,l,function(t){var e=new Uint8Array(4);return u.readPixels(0,0,1,1,u.RGBA,u.UNSIGNED_BYTE,e),e[3]>0},!1)},p.HIT_DETECTION_SIZE_=[1,1],p.BATCH_CONSTRUCTORS_={Circle:u.a,Image:c.a,LineString:h.a,Polygon:d.a,Text:f.a},e.a=p},function(t,e,i){"use strict";var n=i(12),r=function(t){this.source_=t};r.prototype.getType=function(){},r.prototype.getSource=function(){return this.source_},r.prototype.isAnimated=n.a.FALSE,e.a=r},function(t,e,i){"use strict";var n={};n.create=function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},n.fromTransform=function(t,e){return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t},e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(1),o=i(2),a=i(318),s=i(319),l=i(82),u=i(13),c=i(84),h=function(t,e){l.a.call(this,t,e),this.anchorX=void 0,this.anchorY=void 0,this.groupIndices=[],this.hitDetectionGroupIndices=[],this.height=void 0,this.imageHeight=void 0,this.imageWidth=void 0,this.defaultLocations=null,this.opacity=void 0,this.originX=void 0,this.originY=void 0,this.rotateWithView=void 0,this.rotation=void 0,this.scale=void 0,this.width=void 0};n.a.inherits(h,l.a),h.prototype.getDeleteResourcesFunction=function(t){var e=this.verticesBuffer,i=this.indicesBuffer,n=this.getTextures(!0),r=t.getGL();return function(){if(!r.isContextLost()){var o,a;for(o=0,a=n.length;o<a;++o)r.deleteTexture(n[o])}t.deleteBuffer(e),t.deleteBuffer(i)}},h.prototype.drawCoordinates=function(t,e,i,n){var r,o,a,s,l,u,c=this.anchorX,h=this.anchorY,d=this.height,f=this.imageHeight,p=this.imageWidth,g=this.opacity,_=this.originX,y=this.originY,v=this.rotateWithView?1:0,m=-this.rotation,E=this.scale,T=this.width,S=Math.cos(m),x=Math.sin(m),C=this.indices.length,R=this.vertices.length;for(r=e;r<i;r+=n)l=t[r]-this.origin[0],u=t[r+1]-this.origin[1],o=R/8,a=-E*c,s=-E*(d-h),this.vertices[R++]=l,this.vertices[R++]=u,this.vertices[R++]=a*S-s*x,this.vertices[R++]=a*x+s*S,this.vertices[R++]=_/p,this.vertices[R++]=(y+d)/f,this.vertices[R++]=g,this.vertices[R++]=v,a=E*(T-c),s=-E*(d-h),this.vertices[R++]=l,this.vertices[R++]=u,this.vertices[R++]=a*S-s*x,this.vertices[R++]=a*x+s*S,this.vertices[R++]=(_+T)/p,this.vertices[R++]=(y+d)/f,this.vertices[R++]=g,this.vertices[R++]=v,a=E*(T-c),s=E*h,this.vertices[R++]=l,this.vertices[R++]=u,this.vertices[R++]=a*S-s*x,this.vertices[R++]=a*x+s*S,this.vertices[R++]=(_+T)/p,this.vertices[R++]=y/f,this.vertices[R++]=g,this.vertices[R++]=v,a=-E*c,s=E*h,this.vertices[R++]=l,this.vertices[R++]=u,this.vertices[R++]=a*S-s*x,this.vertices[R++]=a*x+s*S,this.vertices[R++]=_/p,this.vertices[R++]=y/f,this.vertices[R++]=g,this.vertices[R++]=v,this.indices[C++]=o,this.indices[C++]=o+1,this.indices[C++]=o+2,this.indices[C++]=o,this.indices[C++]=o+2,this.indices[C++]=o+3;return R},h.prototype.createTextures=function(t,e,i,r){var o,a,s,l,h=e.length;for(l=0;l<h;++l)a=e[l],s=n.a.getUid(a).toString(),s in i?o=i[s]:(o=c.a.createTexture(r,a,u.a.CLAMP_TO_EDGE,u.a.CLAMP_TO_EDGE),i[s]=o),t[l]=o},h.prototype.setUpProgram=function(t,e,i,n){var r,o=a.a.fragment,l=a.a.vertex,c=e.getProgram(o,l);return this.defaultLocations?r=this.defaultLocations:(r=new s.a(t,c),this.defaultLocations=r),e.useProgram(c),t.enableVertexAttribArray(r.a_position),t.vertexAttribPointer(r.a_position,2,u.a.FLOAT,!1,32,0),t.enableVertexAttribArray(r.a_offsets),t.vertexAttribPointer(r.a_offsets,2,u.a.FLOAT,!1,32,8),t.enableVertexAttribArray(r.a_texCoord),t.vertexAttribPointer(r.a_texCoord,2,u.a.FLOAT,!1,32,16),t.enableVertexAttribArray(r.a_opacity),t.vertexAttribPointer(r.a_opacity,1,u.a.FLOAT,!1,32,24),t.enableVertexAttribArray(r.a_rotateWithView),t.vertexAttribPointer(r.a_rotateWithView,1,u.a.FLOAT,!1,32,28),r},h.prototype.shutDownProgram=function(t,e){t.disableVertexAttribArray(e.a_position),t.disableVertexAttribArray(e.a_offsets),t.disableVertexAttribArray(e.a_texCoord),t.disableVertexAttribArray(e.a_opacity),t.disableVertexAttribArray(e.a_rotateWithView)},h.prototype.drawReplay=function(t,e,i,n){var r=n?this.getHitDetectionTextures():this.getTextures(),a=n?this.hitDetectionGroupIndices:this.groupIndices;if(o.a.isEmpty(i)){var s,l,c;for(s=0,l=r.length,c=0;s<l;++s){t.bindTexture(u.a.TEXTURE_2D,r[s]);var h=a[s];this.drawElements(t,e,c,h),c=h}}else this.drawReplaySkipping(t,e,i,r,a)},h.prototype.drawReplaySkipping=function(t,e,i,r,o){var a,s,l=0;for(a=0,s=r.length;a<s;++a){t.bindTexture(u.a.TEXTURE_2D,r[a]);for(var c=a>0?o[a-1]:0,h=o[a],d=c,f=c;l<this.startIndices.length&&this.startIndices[l]<=h;){var p=this.startIndicesFeature[l];void 0!==i[n.a.getUid(p).toString()]?(d!==f&&this.drawElements(t,e,d,f),d=l===this.startIndices.length-1?h:this.startIndices[l+1],f=d):f=l===this.startIndices.length-1?h:this.startIndices[l+1],l++}d!==f&&this.drawElements(t,e,d,f)}},h.prototype.drawHitDetectionReplayOneByOne=function(t,e,i,o,a){var s,l,c,h,d,f,p=this.startIndices.length-1,g=this.getHitDetectionTextures();for(s=g.length-1;s>=0;--s)for(t.bindTexture(u.a.TEXTURE_2D,g[s]),l=s>0?this.hitDetectionGroupIndices[s-1]:0,h=this.hitDetectionGroupIndices[s];p>=0&&this.startIndices[p]>=l;){if(c=this.startIndices[p],d=this.startIndicesFeature[p],f=n.a.getUid(d).toString(),void 0===i[f]&&d.getGeometry()&&(void 0===a||r.a.intersects(a,d.getGeometry().getExtent()))){t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),this.drawElements(t,e,c,h);var _=o(d);if(_)return _}h=c,p--}},h.prototype.finish=function(t){this.anchorX=void 0,this.anchorY=void 0,this.height=void 0,this.imageHeight=void 0,this.imageWidth=void 0,this.indices=null,this.opacity=void 0,this.originX=void 0,this.originY=void 0,this.rotateWithView=void 0,this.rotation=void 0,this.scale=void 0,this.vertices=null,this.width=void 0},h.prototype.getTextures=function(t){},h.prototype.getHitDetectionTextures=function(){},e.a=h},function(t,e,i){"use strict";var n={LOST:"webglcontextlost",RESTORED:"webglcontextrestored"};e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(5),o=i(32),a=i(1),s=i(51),l=i(26),u=i(320),c=i(2),h=i(83),d=i(82),f=i(321),p=i(322),g=i(13),_=i(47),y=function(t,e){d.a.call(this,t,e),this.defaultLocations_=null,this.styles_=[],this.styleIndices_=[],this.state_={strokeColor:null,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0,changed:!1}};n.a.inherits(y,d.a),y.prototype.drawCoordinates_=function(t,e,i,n){var o,a,l,c,d,f,p,g,_=this.vertices.length,v=this.indices.length,m="bevel"===this.state_.lineJoin?0:"miter"===this.state_.lineJoin?1:2,E="butt"===this.state_.lineCap?0:"square"===this.state_.lineCap?1:2,T=u.a.lineStringIsClosed(t,e,i,n),S=v,x=1;for(o=e,a=i;o<a;o+=n){if(d=_/7,f=p,p=g||[t[o],t[o+1]],o===e){if(g=[t[o+n],t[o+n+1]],i-e===2*n&&r.a.equals(p,g))break;if(!T){E&&(_=this.addVertices_([0,0],p,g,x*y.Instruction_.BEGIN_LINE_CAP*E,_),_=this.addVertices_([0,0],p,g,-x*y.Instruction_.BEGIN_LINE_CAP*E,_),this.indices[v++]=d+2,this.indices[v++]=d,this.indices[v++]=d+1,this.indices[v++]=d+1,this.indices[v++]=d+3,this.indices[v++]=d+2),_=this.addVertices_([0,0],p,g,x*y.Instruction_.BEGIN_LINE*(E||1),_),_=this.addVertices_([0,0],p,g,-x*y.Instruction_.BEGIN_LINE*(E||1),_),S=_/7-1;continue}f=[t[i-2*n],t[i-2*n+1]],l=g}else{if(o===i-n){if(T){g=l;break}f=f||[0,0],_=this.addVertices_(f,p,[0,0],x*y.Instruction_.END_LINE*(E||1),_),_=this.addVertices_(f,p,[0,0],-x*y.Instruction_.END_LINE*(E||1),_),this.indices[v++]=d,this.indices[v++]=S-1,this.indices[v++]=S,this.indices[v++]=S,this.indices[v++]=d+1,this.indices[v++]=d,E&&(_=this.addVertices_(f,p,[0,0],x*y.Instruction_.END_LINE_CAP*E,_),_=this.addVertices_(f,p,[0,0],-x*y.Instruction_.END_LINE_CAP*E,_),this.indices[v++]=d+2,this.indices[v++]=d,this.indices[v++]=d+1,this.indices[v++]=d+1,this.indices[v++]=d+3,this.indices[v++]=d+2);break}g=[t[o+n],t[o+n+1]]}c=h.a.triangleIsCounterClockwise(f[0],f[1],p[0],p[1],g[0],g[1])?-1:1,_=this.addVertices_(f,p,g,c*y.Instruction_.BEVEL_FIRST*(m||1),_),_=this.addVertices_(f,p,g,c*y.Instruction_.BEVEL_SECOND*(m||1),_),_=this.addVertices_(f,p,g,-c*y.Instruction_.MITER_BOTTOM*(m||1),_),o>e&&(this.indices[v++]=d,this.indices[v++]=S-1,this.indices[v++]=S,this.indices[v++]=d+2,this.indices[v++]=d,this.indices[v++]=x*c>0?S:S-1),this.indices[v++]=d,this.indices[v++]=d+2,this.indices[v++]=d+1,S=d+2,x=c,m&&(_=this.addVertices_(f,p,g,c*y.Instruction_.MITER_TOP*m,_),this.indices[v++]=d+1,this.indices[v++]=d+3,this.indices[v++]=d)}T&&(d=d||_/7,c=s.a.linearRingIsClockwise([f[0],f[1],p[0],p[1],g[0],g[1]],0,6,2)?1:-1,_=this.addVertices_(f,p,g,c*y.Instruction_.BEVEL_FIRST*(m||1),_),_=this.addVertices_(f,p,g,-c*y.Instruction_.MITER_BOTTOM*(m||1),_),this.indices[v++]=d,this.indices[v++]=S-1,this.indices[v++]=S,this.indices[v++]=d+1,this.indices[v++]=d,this.indices[v++]=x*c>0?S:S-1)},y.prototype.addVertices_=function(t,e,i,n,r){return this.vertices[r++]=t[0],this.vertices[r++]=t[1],this.vertices[r++]=e[0],this.vertices[r++]=e[1],this.vertices[r++]=i[0],this.vertices[r++]=i[1],this.vertices[r++]=n,r},y.prototype.isValid_=function(t,e,i,n){var o=i-e;if(o<2*n)return!1;if(o===2*n){var a=[t[e],t[e+1]],s=[t[e+n],t[e+n+1]];return!r.a.equals(a,s)}return!0},y.prototype.drawLineString=function(t,e){var i=t.getFlatCoordinates(),n=t.getStride();this.isValid_(i,0,i.length,n)&&(i=l.a.translate(i,0,i.length,n,-this.origin[0],-this.origin[1]),this.state_.changed&&(this.styleIndices_.push(this.indices.length),this.state_.changed=!1),this.startIndices.push(this.indices.length),this.startIndicesFeature.push(e),this.drawCoordinates_(i,0,i.length,n))},y.prototype.drawMultiLineString=function(t,e){var i=this.indices.length,n=t.getEnds();n.unshift(0);var r,o,a=t.getFlatCoordinates(),s=t.getStride();if(n.length>1)for(r=1,o=n.length;r<o;++r)if(this.isValid_(a,n[r-1],n[r],s)){var u=l.a.translate(a,n[r-1],n[r],s,-this.origin[0],-this.origin[1]);this.drawCoordinates_(u,0,u.length,s)}this.indices.length>i&&(this.startIndices.push(i),this.startIndicesFeature.push(e),this.state_.changed&&(this.styleIndices_.push(i),this.state_.changed=!1))},y.prototype.drawPolygonCoordinates=function(t,e,i){if(u.a.lineStringIsClosed(t,0,t.length,i)||(t.push(t[0]),t.push(t[1])),this.drawCoordinates_(t,0,t.length,i),e.length){var n,r;for(n=0,r=e.length;n<r;++n)u.a.lineStringIsClosed(e[n],0,e[n].length,i)||(e[n].push(e[n][0]),e[n].push(e[n][1])),this.drawCoordinates_(e[n],0,e[n].length,i)}},y.prototype.setPolygonStyle=function(t,e){var i=void 0===e?this.indices.length:e;this.startIndices.push(i),this.startIndicesFeature.push(t),this.state_.changed&&(this.styleIndices_.push(i),this.state_.changed=!1)},y.prototype.getCurrentIndex=function(){return this.indices.length},y.prototype.finish=function(t){this.verticesBuffer=new _.a(this.vertices),this.indicesBuffer=new _.a(this.indices),this.startIndices.push(this.indices.length),0===this.styleIndices_.length&&this.styles_.length>0&&(this.styles_=[]),this.vertices=null,this.indices=null},y.prototype.getDeleteResourcesFunction=function(t){var e=this.verticesBuffer,i=this.indicesBuffer;return function(){t.deleteBuffer(e),t.deleteBuffer(i)}},y.prototype.setUpProgram=function(t,e,i,n){var r,o;r=f.a.fragment,o=f.a.vertex;var a,s=e.getProgram(r,o);return this.defaultLocations_?a=this.defaultLocations_:(a=new p.a(t,s),this.defaultLocations_=a),e.useProgram(s),t.enableVertexAttribArray(a.a_lastPos),t.vertexAttribPointer(a.a_lastPos,2,g.a.FLOAT,!1,28,0),t.enableVertexAttribArray(a.a_position),t.vertexAttribPointer(a.a_position,2,g.a.FLOAT,!1,28,8),t.enableVertexAttribArray(a.a_nextPos),t.vertexAttribPointer(a.a_nextPos,2,g.a.FLOAT,!1,28,16),t.enableVertexAttribArray(a.a_direction),t.vertexAttribPointer(a.a_direction,1,g.a.FLOAT,!1,28,24),t.uniform2fv(a.u_size,i),t.uniform1f(a.u_pixelRatio,n),a},y.prototype.shutDownProgram=function(t,e){t.disableVertexAttribArray(e.a_lastPos),t.disableVertexAttribArray(e.a_position),t.disableVertexAttribArray(e.a_nextPos),t.disableVertexAttribArray(e.a_direction)},y.prototype.drawReplay=function(t,e,i,n){var r=t.getParameter(t.DEPTH_FUNC),o=t.getParameter(t.DEPTH_WRITEMASK);if(n||(t.enable(t.DEPTH_TEST),t.depthMask(!0),t.depthFunc(t.NOTEQUAL)),c.a.isEmpty(i)){var a,s,l,u;for(l=this.startIndices[this.startIndices.length-1],a=this.styleIndices_.length-1;a>=0;--a)s=this.styleIndices_[a],u=this.styles_[a],this.setStrokeStyle_(t,u[0],u[1],u[2]),this.drawElements(t,e,s,l),t.clear(t.DEPTH_BUFFER_BIT),l=s}else this.drawReplaySkipping_(t,e,i);n||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(o),t.depthFunc(r))},y.prototype.drawReplaySkipping_=function(t,e,i){var r,o,a,s,l,u,c,h,d;for(h=this.startIndices.length-2,a=o=this.startIndices[h+1],r=this.styleIndices_.length-1;r>=0;--r){for(s=this.styles_[r],this.setStrokeStyle_(t,s[0],s[1],s[2]),l=this.styleIndices_[r];h>=0&&this.startIndices[h]>=l;)d=this.startIndices[h],u=this.startIndicesFeature[h],c=n.a.getUid(u).toString(),i[c]&&(o!==a&&(this.drawElements(t,e,o,a),t.clear(t.DEPTH_BUFFER_BIT)),a=d),h--,o=d;o!==a&&(this.drawElements(t,e,o,a),t.clear(t.DEPTH_BUFFER_BIT)),o=a=l}},y.prototype.drawHitDetectionReplayOneByOne=function(t,e,i,r,o){var s,l,u,c,h,d,f,p;for(p=this.startIndices.length-2,u=this.startIndices[p+1],s=this.styleIndices_.length-1;s>=0;--s)for(c=this.styles_[s],this.setStrokeStyle_(t,c[0],c[1],c[2]),h=this.styleIndices_[s];p>=0&&this.startIndices[p]>=h;){if(l=this.startIndices[p],d=this.startIndicesFeature[p],f=n.a.getUid(d).toString(),void 0===i[f]&&d.getGeometry()&&(void 0===o||a.a.intersects(o,d.getGeometry().getExtent()))){t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),this.drawElements(t,e,l,u);var g=r(d);if(g)return g}p--,u=l}},y.prototype.setStrokeStyle_=function(t,e,i,n){t.uniform4fv(this.defaultLocations_.u_color,e),t.uniform1f(this.defaultLocations_.u_lineWidth,i),t.uniform1f(this.defaultLocations_.u_miterLimit,n)},y.prototype.setFillStrokeStyle=function(t,e){var i=e.getLineCap();this.state_.lineCap=void 0!==i?i:h.a.defaultLineCap;var n=e.getLineDash();this.state_.lineDash=n||h.a.defaultLineDash;var a=e.getLineDashOffset();this.state_.lineDashOffset=a||h.a.defaultLineDashOffset;var s=e.getLineJoin();this.state_.lineJoin=void 0!==s?s:h.a.defaultLineJoin;var l=e.getColor();l=l instanceof CanvasGradient||l instanceof CanvasPattern?h.a.defaultStrokeStyle:o.a.asArray(l).map(function(t,e){return 3!=e?t/255:t})||h.a.defaultStrokeStyle;var u=e.getWidth();u=void 0!==u?u:h.a.defaultLineWidth;var c=e.getMiterLimit();c=void 0!==c?c:h.a.defaultMiterLimit,this.state_.strokeColor&&r.a.equals(this.state_.strokeColor,l)&&this.state_.lineWidth===u&&this.state_.miterLimit===c||(this.state_.changed=!0,this.state_.strokeColor=l,this.state_.lineWidth=u,this.state_.miterLimit=c,this.styles_.push([l,u,c]))},y.Instruction_={ROUND:2,BEGIN_LINE:3,END_LINE:5,BEGIN_LINE_CAP:7,END_LINE_CAP:11,BEVEL_FIRST:13,BEVEL_SECOND:17,MITER_BOTTOM:19,MITER_TOP:23},e.a=y},function(t,e,i){"use strict";var n=i(0),r=i(85),o=i(114),a=function(){r.a.call(this)};n.a.inherits(a,r.a),a.prototype.getObject_=function(t){if("string"===typeof t){var e=JSON.parse(t);return e||null}return null!==t?t:null},a.prototype.getType=function(){return o.a.JSON},a.prototype.readFeature=function(t,e){return this.readFeatureFromObject(this.getObject_(t),this.getReadOptions(t,e))},a.prototype.readFeatures=function(t,e){return this.readFeaturesFromObject(this.getObject_(t),this.getReadOptions(t,e))},a.prototype.readFeatureFromObject=function(t,e){},a.prototype.readFeaturesFromObject=function(t,e){},a.prototype.readGeometry=function(t,e){return this.readGeometryFromObject(this.getObject_(t),this.getReadOptions(t,e))},a.prototype.readGeometryFromObject=function(t,e){},a.prototype.readProjection=function(t){return this.readProjectionFromObject(this.getObject_(t))},a.prototype.readProjectionFromObject=function(t){},a.prototype.writeFeature=function(t,e){return JSON.stringify(this.writeFeatureObject(t,e))},a.prototype.writeFeatureObject=function(t,e){},a.prototype.writeFeatures=function(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))},a.prototype.writeFeaturesObject=function(t,e){},a.prototype.writeGeometry=function(t,e){return JSON.stringify(this.writeGeometryObject(t,e))},a.prototype.writeGeometryObject=function(t,e){},e.a=a},function(t,e,i){"use strict";var n=i(1),r={};r.linearRingss=function(t,e,i,r){var o,a,s=[],l=n.a.createEmpty();for(o=0,a=i.length;o<a;++o){var u=i[o];l=n.a.createOrUpdateFromFlatCoordinates(t,e,u[0],r),s.push((l[0]+l[2])/2,(l[1]+l[3])/2),e=u[u.length-1]}return s},e.a=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(7),o=i(338),a=i.n(o),s=i(85),l=i(114),u=i(19),c=i(8),h=i(66),d=i(86),f=i(67),p=i(87),g=i(25),_=i(43),y=i(51),v=i(75),m=i(27),E=i(184),T=function(t){s.a.call(this);var e=t||{};this.defaultDataProjection=new v.a({code:"EPSG:3857",units:m.a.TILE_PIXELS}),this.featureClass_=e.featureClass?e.featureClass:E.default,this.geometryName_=e.geometryName,this.layerName_=e.layerName?e.layerName:"layer",this.layers_=e.layers?e.layers:null,this.extent_=null};n.a.inherits(T,s.a),T.pbfReaders_={layers:function(t,e,i){if(3===t){var n={keys:[],values:[],features:[]},r=i.readVarint()+i.pos;i.readFields(T.pbfReaders_.layer,n,r),n.length=n.features.length,n.length&&(e[n.name]=n)}},layer:function(t,e,i){if(15===t)e.version=i.readVarint();else if(1===t)e.name=i.readString();else if(5===t)e.extent=i.readVarint();else if(2===t)e.features.push(i.pos);else if(3===t)e.keys.push(i.readString());else if(4===t){for(var n=null,r=i.readVarint()+i.pos;i.pos<r;)t=i.readVarint()>>3,n=1===t?i.readString():2===t?i.readFloat():3===t?i.readDouble():4===t?i.readVarint64():5===t?i.readVarint():6===t?i.readSVarint():7===t?i.readBoolean():null;e.values.push(n)}},feature:function(t,e,i){if(1==t)e.id=i.readVarint();else if(2==t)for(var n=i.readVarint()+i.pos;i.pos<n;){var r=e.layer.keys[i.readVarint()],o=e.layer.values[i.readVarint()];e.properties[r]=o}else 3==t?e.type=i.readVarint():4==t&&(e.geometry=i.pos)}},T.readRawFeature_=function(t,e,i){t.pos=e.features[i];var n=t.readVarint()+t.pos,r={layer:e,type:0,properties:{}};return t.readFields(T.pbfReaders_.feature,r,n),r},T.readRawGeometry_=function(t,e,i,n){t.pos=e.geometry;for(var o=t.readVarint()+t.pos,a=1,s=0,l=0,u=0,c=0,h=0;t.pos<o;){if(!s){var d=t.readVarint();a=7&d,s=d>>3}s--,1===a||2===a?(l+=t.readSVarint(),u+=t.readSVarint(),1===a&&c>h&&(n.push(c),h=c),i.push(l,u),c+=2):7===a?c>h&&(i.push(i[h],i[h+1]),c+=2):r.a.assert(!1,59)}c>h&&(n.push(c),h=c)},T.getGeometryType_=function(t,e){var i;return 1===t?i=1===e?c.a.POINT:c.a.MULTI_POINT:2===t?i=1===e?c.a.LINE_STRING:c.a.MULTI_LINE_STRING:3===t&&(i=c.a.POLYGON),i},T.prototype.createFeature_=function(t,e,i){var n=e.type;if(0===n)return null;var r,o=e.id,a=e.properties;a[this.layerName_]=e.layer.name;var l=[],v=[];T.readRawGeometry_(t,e,l,v);var m=T.getGeometryType_(n,v.length);if(this.featureClass_===E.default)r=new this.featureClass_(m,l,v,a,o);else{var S;if(m==c.a.POLYGON){for(var x=[],C=0,R=0,b=0,I=v.length;b<I;++b){var O=v[b];y.a.linearRingIsClockwise(l,C,O,2)||(x.push(v.slice(R,b)),R=b),C=O}x.length>1?(v=x,S=new p.a(null)):S=new _.a(null)}else S=m===c.a.POINT?new g.default(null):m===c.a.LINE_STRING?new h.a(null):m===c.a.POLYGON?new _.a(null):m===c.a.MULTI_POINT?new f.a(null):m===c.a.MULTI_LINE_STRING?new d.a(null):null;S.setFlatCoordinates(u.a.XY,l,v),r=new this.featureClass_,this.geometryName_&&r.setGeometryName(this.geometryName_);var P=s.a.transformWithOptions(S,!1,this.adaptOptions(i));r.setGeometry(P),r.setId(o),r.setProperties(a)}return r},T.prototype.getLastExtent=function(){return this.extent_},T.prototype.getType=function(){return l.a.ARRAY_BUFFER},T.prototype.readFeatures=function(t,e){var i,n=this.layers_,r=new a.a(t),o=r.readFields(T.pbfReaders_.layers,{}),s=[];for(var l in o)if(!n||-1!=n.indexOf(l)){i=o[l];for(var u,c=0,h=i.length;c<h;++c)u=T.readRawFeature_(r,i,c),s.push(this.createFeature_(r,u));this.extent_=i?[0,0,i.extent,i.extent]:null}return s},T.prototype.readProjection=function(t){return this.defaultDataProjection},T.prototype.setLayers=function(t){this.layers_=t},T.prototype.readFeature=function(){},T.prototype.readGeometry=function(){},T.prototype.writeFeature=function(){},T.prototype.writeGeometry=function(){},T.prototype.writeFeatures=function(){},e.default=T},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(5),o=i(1),a=i(8),s=i(182),l=i(104),u=i(115),c=i(26),h=i(10),d=function(t,e,i,n,r){this.extent_,this.id_=r,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=i,this.properties_=n,this.tmpTransform_=h.a.create()};d.prototype.get=function(t){return this.properties_[t]},d.prototype.getEnds=d.prototype.getEndss=function(){return this.ends_},d.prototype.getExtent=function(){return this.extent_||(this.extent_=this.type_===a.a.POINT?o.a.createOrUpdateFromCoordinate(this.flatCoordinates_):o.a.createOrUpdateFromFlatCoordinates(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_},d.prototype.getFlatInteriorPoint=function(){if(!this.flatInteriorPoints_){var t=o.a.getCenter(this.getExtent());this.flatInteriorPoints_=l.a.linearRings(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_},d.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var t=s.a.linearRingss(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=l.a.linearRingss(this.flatCoordinates_,0,this.ends_,2,t)}return this.flatInteriorPoints_},d.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=u.a.lineString(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_},d.prototype.getFlatMidpoints=function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var t=this.flatCoordinates_,e=0,i=this.ends_,n=0,o=i.length;n<o;++n){var a=i[n],s=u.a.lineString(t,e,a,2,.5);r.a.extend(this.flatMidpoints_,s),e=a}}return this.flatMidpoints_},d.prototype.getId=function(){return this.id_},d.prototype.getOrientedFlatCoordinates=function(){return this.flatCoordinates_},d.prototype.getFlatCoordinates=d.prototype.getOrientedFlatCoordinates,d.prototype.getGeometry=function(){return this},d.prototype.getProperties=function(){return this.properties_},d.prototype.getSimplifiedGeometry=d.prototype.getGeometry,d.prototype.getStride=function(){return 2},d.prototype.getStyleFunction=n.a.nullFunction,d.prototype.getType=function(){return this.type_},d.prototype.transform=function(t,e){var i=t.getExtent(),n=t.getWorldExtent(),r=o.a.getHeight(n)/o.a.getHeight(i),a=this.tmpTransform_;h.a.compose(a,n[0],n[3],r,-r,0,0,0),c.a.transform2D(this.flatCoordinates_,0,this.flatCoordinates_.length,2,a,this.flatCoordinates_)},e.default=d},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(20),o=i(45),a=i(186),s=i(2),l=function(t){var e=t||{},i=s.a.assign({},e);delete i.preload,delete i.useInterimTilesOnError,o.a.call(this,i),this.setPreload(void 0!==e.preload?e.preload:0),this.setUseInterimTilesOnError(void 0===e.useInterimTilesOnError||e.useInterimTilesOnError),this.type=r.a.TILE};n.a.inherits(l,o.a),l.prototype.getPreload=function(){return this.get(a.a.PRELOAD)},l.prototype.getSource,l.prototype.setPreload=function(t){this.set(a.a.PRELOAD,t)},l.prototype.getUseInterimTilesOnError=function(){return this.get(a.a.USE_INTERIM_TILES_ON_ERROR)},l.prototype.setUseInterimTilesOnError=function(t){this.set(a.a.USE_INTERIM_TILES_ON_ERROR,t)},e.default=l},function(t,e,i){"use strict";var n={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};e.a=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(20),o=i(7),a=i(186),s=i(56),l=i(173),u=i(2),c=function(t){var e=t||{},i=e.renderMode||l.a.HYBRID;o.a.assert(void 0==i||i==l.a.IMAGE||i==l.a.HYBRID||i==l.a.VECTOR,28),e.declutter&&i==l.a.IMAGE&&(i=l.a.HYBRID),e.renderMode=i;var n=u.a.assign({},e);delete n.preload,delete n.useInterimTilesOnError,s.default.call(this,n),this.setPreload(e.preload?e.preload:0),this.setUseInterimTilesOnError(!e.useInterimTilesOnError||e.useInterimTilesOnError),this.type=r.a.VECTOR_TILE};n.a.inherits(c,s.default),c.prototype.getPreload=function(){return this.get(a.a.PRELOAD)},c.prototype.getUseInterimTilesOnError=function(){return this.get(a.a.USE_INTERIM_TILES_ON_ERROR)},c.prototype.setPreload=function(t){this.set(a.a.PRELOAD,t)},c.prototype.setUseInterimTilesOnError=function(t){this.set(a.a.USE_INTERIM_TILES_ON_ERROR,t)},c.prototype.getSource,e.default=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(189),o=i(7),a=i(1),s=i(340),l=i(11),u=i(37),c=i(116),h=i(33),d=function(t){if(this.tileJSON_=null,c.a.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,projection:l.default.get("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:u.a.LOADING,tileLoadFunction:t.tileLoadFunction,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition}),t.url)if(t.jsonp)s.a.jsonp(t.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{var e=new XMLHttpRequest;e.addEventListener("load",this.onXHRLoad_.bind(this)),e.addEventListener("error",this.onXHRError_.bind(this)),e.open("GET",t.url),e.send()}else t.tileJSON?this.handleTileJSONResponse(t.tileJSON):o.a.assert(!1,51)};n.a.inherits(d,c.a),d.prototype.onXHRLoad_=function(t){var e=t.target;if(!e.status||e.status>=200&&e.status<300){var i;try{i=JSON.parse(e.responseText)}catch(t){return void this.handleTileJSONError()}this.handleTileJSONResponse(i)}else this.handleTileJSONError()},d.prototype.onXHRError_=function(t){this.handleTileJSONError()},d.prototype.getTileJSON=function(){return this.tileJSON_},d.prototype.handleTileJSONResponse=function(t){var e,i=l.default.get("EPSG:4326"),n=this.getProjection();if(void 0!==t.bounds){var o=l.default.getTransformFromProjections(i,n);e=a.a.applyTransform(t.bounds,o)}var s=t.minzoom||0,c=t.maxzoom||22,d=h.default.createXYZ({extent:h.default.extentFromProjection(n),maxZoom:c,minZoom:s});if(this.tileGrid=d,this.tileUrlFunction=r.a.createFromTemplates(t.tiles,d),void 0!==t.attribution&&!this.getAttributions2()){var f=void 0!==e?e:i.getExtent();this.setAttributions(function(e){return a.a.intersects(f,e.extent)?[t.attribution]:null})}this.tileJSON_=t,this.setState(u.a.READY)},d.prototype.handleTileJSONError=function(){this.setState(u.a.ERROR)},e.default=d},function(t,e,i){"use strict";var n=i(7),r=i(6),o=i(34),a={};a.createFromTemplate=function(t,e){var i=/\{z\}/g,r=/\{x\}/g,o=/\{y\}/g,a=/\{-y\}/g;return function(s,l,u){return s?t.replace(i,s[0].toString()).replace(r,s[1].toString()).replace(o,function(){return(-s[2]-1).toString()}).replace(a,function(){var t=s[0],i=e.getFullTileRange(t);return n.a.assert(i,55),(i.getHeight()+s[2]).toString()}):void 0}},a.createFromTemplates=function(t,e){for(var i=t.length,n=new Array(i),r=0;r<i;++r)n[r]=a.createFromTemplate(t[r],e);return a.createFromTileUrlFunctions(n)},a.createFromTileUrlFunctions=function(t){return 1===t.length?t[0]:function(e,i,n){if(e){var a=o.a.hash(e),s=r.a.modulo(a,t.length);return t[s](e,i,n)}}},a.nullTileUrlFunction=function(t,e,i){},a.expandUrl=function(t){var e=[],i=/\{([a-z])-([a-z])\}/.exec(t);if(i){var n,r=i[1].charCodeAt(0),o=i[2].charCodeAt(0);for(n=r;n<=o;++n)e.push(t.replace(i[0],String.fromCharCode(n)));return e}if(i=i=/\{(\d+)-(\d+)\}/.exec(t)){for(var a=parseInt(i[2],10),s=parseInt(i[1],10);s<=a;s++)e.push(t.replace(i[0],s.toString()));return e}return e.push(t),e},e.a=a},function(t,e,i){"use strict";var n=i(0),r=i(96),o=i(34),a=function(t){r.a.call(this,t)};n.a.inherits(a,r.a),a.prototype.expireCache=function(t){for(var e,i;this.canExpireCache()&&(e=this.peekLast(),!((i=e.tileCoord[0].toString())in t&&t[i].contains(e.tileCoord)));)this.pop().dispose()},a.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=this.peekFirstKey(),e=o.a.fromKey(t),i=e[0];this.forEach(function(t){t.tileCoord[0]!==i&&(this.remove(o.a.getKey(t.tileCoord)),t.dispose())},this)}},e.a=a},function(t,e,i){"use strict";var n=i(0),r=i(1),o=i(6),a=i(11),s=function(t,e,i,o,s){this.sourceProj_=t,this.targetProj_=e;var l={},u=a.default.getTransform(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return l[e]||(l[e]=u(t)),l[e]},this.maxSourceExtent_=o,this.errorThresholdSquared_=s*s,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!o&&!!this.sourceProj_.getExtent()&&r.a.getWidth(o)==r.a.getWidth(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?r.a.getWidth(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?r.a.getWidth(this.targetProj_.getExtent()):null;var c=r.a.getTopLeft(i),h=r.a.getTopRight(i),d=r.a.getBottomRight(i),f=r.a.getBottomLeft(i),p=this.transformInv_(c),g=this.transformInv_(h),_=this.transformInv_(d),y=this.transformInv_(f);if(this.addQuad_(c,h,d,f,p,g,_,y,n.a.RASTER_REPROJECTION_MAX_SUBDIVISION),this.wrapsXInSource_){var v=1/0;this.triangles_.forEach(function(t,e,i){v=Math.min(v,t.source[0][0],t.source[1][0],t.source[2][0])}),this.triangles_.forEach(function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-v>this.sourceWorldWidth_/2){var 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]]];e[0][0]-v>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-v>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-v>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var i=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-i<this.sourceWorldWidth_/2&&(t.source=e)}},this)}l={}};s.prototype.addTriangle_=function(t,e,i,n,r,o){this.triangles_.push({source:[n,r,o],target:[t,e,i]})},s.prototype.addQuad_=function(t,e,i,a,s,l,u,c,h){var d=r.a.boundingExtent([s,l,u,c]),f=this.sourceWorldWidth_?r.a.getWidth(d)/this.sourceWorldWidth_:null,p=this.sourceWorldWidth_,g=this.sourceProj_.canWrapX()&&f>.5&&f<1,_=!1;if(h>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var y=r.a.boundingExtent([t,e,i,a]);_|=r.a.getWidth(y)/this.targetWorldWidth_>n.a.RASTER_REPROJECTION_MAX_TRIANGLE_WIDTH}!g&&this.sourceProj_.isGlobal()&&f&&(_|=f>n.a.RASTER_REPROJECTION_MAX_TRIANGLE_WIDTH)}if(_||!this.maxSourceExtent_||r.a.intersects(d,this.maxSourceExtent_)){if(!_&&(!isFinite(s[0])||!isFinite(s[1])||!isFinite(l[0])||!isFinite(l[1])||!isFinite(u[0])||!isFinite(u[1])||!isFinite(c[0])||!isFinite(c[1]))){if(!(h>0))return;_=!0}if(h>0){if(!_){var v,m=[(t[0]+i[0])/2,(t[1]+i[1])/2],E=this.transformInv_(m);if(g){v=(o.a.modulo(s[0],p)+o.a.modulo(u[0],p))/2-o.a.modulo(E[0],p)}else v=(s[0]+u[0])/2-E[0];var T=(s[1]+u[1])/2-E[1];_=v*v+T*T>this.errorThresholdSquared_}if(_){if(Math.abs(t[0]-i[0])<=Math.abs(t[1]-i[1])){var S=[(e[0]+i[0])/2,(e[1]+i[1])/2],x=this.transformInv_(S),C=[(a[0]+t[0])/2,(a[1]+t[1])/2],R=this.transformInv_(C);this.addQuad_(t,e,S,C,s,l,x,R,h-1),this.addQuad_(C,S,i,a,R,x,u,c,h-1)}else{var b=[(t[0]+e[0])/2,(t[1]+e[1])/2],I=this.transformInv_(b),O=[(i[0]+a[0])/2,(i[1]+a[1])/2],P=this.transformInv_(O);this.addQuad_(t,b,O,a,s,I,P,c,h-1),this.addQuad_(b,e,i,O,I,l,u,P,h-1)}return}}if(g){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}this.addTriangle_(t,i,a,s,u,c),this.addTriangle_(t,e,i,s,l,u)}},s.prototype.calculateSourceExtent=function(){var t=r.a.createEmpty();return this.triangles_.forEach(function(e,i,n){var o=e.source;r.a.extendCoordinate(t,o[0]),r.a.extendCoordinate(t,o[1]),r.a.extendCoordinate(t,o[2])}),t},s.prototype.getTriangles=function(){return this.triangles_},e.a=s},function(t,e,i){"use strict";var n=i(0),r=i(15),o=i(189),a=i(343),s=i(345),l=i(34),u=function(t){a.a.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,extent:t.extent,logo:t.logo,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX,transition:t.transition}),this.tileLoadFunction=t.tileLoadFunction,this.tileUrlFunction=this.fixedTileUrlFunction?this.fixedTileUrlFunction.bind(this):o.a.nullTileUrlFunction,this.urls=null,t.urls?this.setUrls(t.urls):t.url&&this.setUrl(t.url),t.tileUrlFunction&&this.setTileUrlFunction(t.tileUrlFunction),this.tileLoadingKeys_={}};n.a.inherits(u,a.a),u.prototype.fixedTileUrlFunction,u.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},u.prototype.getTileUrlFunction=function(){return this.tileUrlFunction},u.prototype.getUrls=function(){return this.urls},u.prototype.handleTileChange=function(t){var e,i=t.target,o=n.a.getUid(i),l=i.getState();l==r.a.LOADING?(this.tileLoadingKeys_[o]=!0,e=s.a.TILELOADSTART):o in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[o],e=l==r.a.ERROR?s.a.TILELOADERROR:l==r.a.LOADED||l==r.a.ABORT?s.a.TILELOADEND:void 0),void 0!=e&&this.dispatchEvent(new a.a.Event(e,i))},u.prototype.setTileLoadFunction=function(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()},u.prototype.setTileUrlFunction=function(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),"undefined"!==typeof e?this.setKey(e):this.changed()},u.prototype.setUrl=function(t){var e=this.urls=o.a.expandUrl(t);this.setTileUrlFunction(this.fixedTileUrlFunction?this.fixedTileUrlFunction.bind(this):o.a.createFromTemplates(e,this.tileGrid),t)},u.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.setTileUrlFunction(this.fixedTileUrlFunction?this.fixedTileUrlFunction.bind(this):o.a.createFromTemplates(t,this.tileGrid),e)},u.prototype.useTile=function(t,e,i){var n=l.a.getKeyZXY(t,e,i);this.tileCache.containsKey(n)&&this.tileCache.get(n)},e.a=u},function(t,e,i){"use strict";var n=i(0),r=i(114),o=i(346),a={};a.loadFeaturesXhr=function(t,e,i,n){return function(a,s,l){var u=new XMLHttpRequest;u.open("GET","function"===typeof t?t(a,s,l):t,!0),e.getType()==r.a.ARRAY_BUFFER&&(u.responseType="arraybuffer"),u.onload=function(t){if(!u.status||u.status>=200&&u.status<300){var a,s=e.getType();s==r.a.JSON||s==r.a.TEXT?a=u.responseText:s==r.a.XML?(a=u.responseXML)||(a=o.a.parse(u.responseText)):s==r.a.ARRAY_BUFFER&&(a=u.response),a?i.call(this,e.readFeatures(a,{featureProjection:l}),e.readProjection(a),e.getLastExtent()):n.call(this)}else n.call(this)}.bind(this),u.onerror=function(){n.call(this)}.bind(this),u.send()}},a.xhr=function(t,e){return a.loadFeaturesXhr(t,e,function(t,e){this.addFeatures(t)},n.a.nullFunction)},e.a=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={};n.all=function(t,e){return[[-1/0,-1/0,1/0,1/0]]},n.bbox=function(t,e){return[t]},n.tile=function(t){return function(e,i){var n=t.getZForResolution(i),r=t.getTileRangeForExtentAndZ(e,n),o=[],a=[n,0,0];for(a[1]=r.minX;a[1]<=r.maxX;++a[1])for(a[2]=r.minY;a[2]<=r.maxY;++a[2])o.push(t.getTileCoordExtent(a));return o}},e.default=n},function(t,e,i){"use strict";var n={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature"};e.a=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(15),o=i(347),a=i(348),s=i(41),l=i(192),u=i(34),c=i(33),h=function(t){var e=t.projection||"EPSG:3857",i=t.extent||c.default.extentFromProjection(e),n=t.tileGrid||c.default.createXYZ({extent:i,maxZoom:t.maxZoom||22,minZoom:t.minZoom,tileSize:t.tileSize||512});l.a.call(this,{attributions:t.attributions,cacheSize:void 0!==t.cacheSize?t.cacheSize:128,extent:i,logo:t.logo,opaque:!1,projection:e,state:t.state,tileGrid:n,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:o.a.defaultLoadFunction,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition}),this.format_=t.format?t.format:null,this.sourceTiles_={},this.overlaps_=void 0==t.overlaps||t.overlaps,this.tileClass=t.tileClass?t.tileClass:a.a,this.tileGrids_={}};n.a.inherits(h,l.a),h.prototype.getOverlaps=function(){return this.overlaps_},h.prototype.clear=function(){this.tileCache.clear(),this.sourceTiles_={}},h.prototype.getTile=function(t,e,i,n,a){var s=u.a.getKeyZXY(t,e,i);if(this.tileCache.containsKey(s))return this.tileCache.get(s);var l=[t,e,i],c=this.getTileCoordForTileUrlFunction(l,a),h=new o.a(l,null!==c?r.a.IDLE:r.a.EMPTY,this.getRevision(),this.format_,this.tileLoadFunction,c,this.tileUrlFunction,this.tileGrid,this.getTileGridForProjection(a),this.sourceTiles_,n,a,this.tileClass,this.handleTileChange.bind(this),this.tileOptions);return this.tileCache.set(s,h),h},h.prototype.getTileGridForProjection=function(t){var e=t.getCode(),i=this.tileGrids_[e];if(!i){var n=this.tileGrid;i=this.tileGrids_[e]=c.default.createForProjection(t,void 0,n?n.getTileSize(n.getMinZoom()):void 0)}return i},h.prototype.getTilePixelRatio=function(t){return t},h.prototype.getTilePixelSize=function(t,e,i){var n=s.a.toSize(this.getTileGridForProjection(i).getTileSize(t));return[Math.round(n[0]*e),Math.round(n[1]*e)]},e.default=h},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(116),o=i(33),a=function(t){var e=t||{},i=void 0!==e.projection?e.projection:"EPSG:3857",n=void 0!==e.tileGrid?e.tileGrid:o.default.createXYZ({extent:o.default.extentFromProjection(i),maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize});r.a.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,logo:e.logo,opaque:e.opaque,projection:i,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileGrid:n,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})};n.a.inherits(a,r.a),e.default=a},function(t,e,i){"use strict";function n(t,e){return"undefined"===typeof t||"undefined"===typeof t[e]?0:t[e]}function r(t,e){var i=Object.assign({},t);return i[e]=n(t,e)+1,{metadata:i}}function o(t){return k.DATA_VERSION_KEY+":"+t}function a(t,e,i){var n=t.layers.slice(),o=(0,N.getLayerIndexById)(n,e.id),a=(0,N.getLayerIndexById)(n,i);-1!==o&&n.splice(o,1);var s=i?a:n.length;return n.splice(s,0,e),Object.assign({},t,{layers:n},r(t.metadata,k.LAYER_VERSION_KEY))}function s(t,e){var i=(0,N.getLayerIndexById)(t.layers,e.layerId),n=t.layers[i],r=(0,N.getGroup)(n),o=(0,N.getLayerIndexById)(t.layers,e.targetId);if(r)return!1;var a=void 0,s=void 0;if(i<o){for(a=o+1,s=t.layers.length;a<s;a++)if((0,N.getGroup)(t.layers[a])===r)return t.layers[a-1].id;return t.layers[s-1].id}for(a=o-1;a>=0;a--)if((0,N.getGroup)(t.layers[a])===r)return t.layers[a+1].id;return t.layers[0].id}function l(t,e){for(var i=null,n=null,r=0,o=t.layers.length;r<o;r++)t.layers[r].id===e.layerId&&(i=t.layers[r]),t.layers[r].id===e.targetId&&(n=t.layers[r]);if(null!==i){var l=e.targetId,u=(0,N.getGroup)(n);if((0,N.getGroup)(i)!==u&&(l=s(t,e)),!1!==l)return a(t,i,l)}return t}function u(t,e){var i=(0,N.getLayerIndexById)(t.layers,e.placeAt),n=t.layers.length;if(i<0||i>n)return t;for(var o=null,a=null,s=0,l=n;s<l;s++){(0,N.getGroup)(t.layers[s])===e.group&&((null===o||s<o)&&(o=s),(null===a||s>a)&&(a=s))}var u=i,c=(0,N.getGroup)(t.layers[i]),h=i>o;if(c){var d=-1;if(h)for(var f=n-1;f>=0&&d<0;f--)(0,N.getGroup)(t.layers[f])===c&&(d=f);else for(var p=0,g=n;p<g&&d<0;p++)(0,N.getGroup)(t.layers[p])===c&&(d=p);u=d}for(var _=[],y=t.layers.slice(o,a+1),v=0,m=n;v<m;v++){var E=t.layers[v],T=(0,N.getGroup)(E)===e.group;h&&!T&&_.push(E),v===u&&(_=_.concat(y)),h||T||_.push(E)}return Object.assign({},t,{layers:_},r(t.metadata,k.LAYER_VERSION_KEY))}function c(t,e){var i=Object.assign({paint:{},metadata:{}},e.layerDef);return e.layerTitle&&(i.metadata[k.TITLE_KEY]=e.layerTitle),a(t,i,e.positionId)}function h(t,e){for(var i=[],n=0,o=t.layers.length;n<o;n++)t.layers[n].id!==e.layerId&&i.push(t.layers[n]);return Object.assign({},t,{layers:i},r(t.metadata,k.LAYER_VERSION_KEY))}function d(t,e){for(var i=[],n=0,o=t.layers.length;n<o;n++)if(t.layers[n].id===e.layerId){var a=Object.assign({},t.layers[n]);delete a.filter,i.push(a)}else i.push(t.layers[n]);return Object.assign({},t,{layers:i},r(t.metadata,k.LAYER_VERSION_KEY))}function f(t,e){for(var i=[],n=0,o=t.layers.length;n<o;n++)if(t.layers[n].id===e.layerId)if(e.type===D.MAP.SET_LAYER_METADATA){var a={};a[e.key]=e.value,i.push(Object.assign({},t.layers[n],{metadata:Object.assign({},t.layers[n].metadata,a)}))}else i.push(Object.assign({},t.layers[n],e.layerDef));else i.push(t.layers[n]);return Object.assign({},t,{layers:i},r(t.metadata,k.LAYER_VERSION_KEY))}function p(t,e){var i={};i[e.sourceName]=Object.assign({},e.sourceDef),"geojson"===e.sourceDef.type&&(void 0===e.sourceDef.data||null===e.sourceDef.data?i[e.sourceName].data={}:"object"===A(e.sourceDef.data)?i[e.sourceName].data=Object.assign({},e.sourceDef.data):i[e.sourceName].data=e.sourceDef.data);var n={};n[o(e.sourceName)]=0;var a=Object.assign({},t.sources,i);return Object.assign({},t,{metadata:Object.assign({},t.metadata,n),sources:a},r(t.metadata,k.SOURCE_VERSION_KEY))}function g(t,e){var i=Object.assign({},t.sources);return delete i[e.sourceName],Object.assign({},t,{sources:i},r(t.metadata,k.SOURCE_VERSION_KEY))}function _(t,e,i){var n=t.sources[e],a={};return a[e]=Object.assign({},n,{data:i}),Object.assign({},t,{sources:Object.assign({},t.sources,a)},r(t.metadata,o(e)))}function y(t,e){var i=t.sources[e.sourceName],n=i.data,r=null,o=void 0;if(o=e.features.features?(0,N.reprojectGeoJson)(e.features):e.features,n&&n.type){if("Feature"===n.type)r={type:"FeatureCollection",features:[n].concat(o)};else if("FeatureCollection"===n.type){var a=[];if(e.position>-1)for(var s=0,l=n.features.length;s<l;s++){if(s===e.position)for(var u=0,c=o.length;u<c;u++)a.push(o[u]);a.push(n.features[s])}else a=n.features.concat(o);r=Object.assign({},n,{features:a})}}else r={type:"FeatureCollection",features:o};return null!==r?_(t,e.sourceName,r):t}function v(t,e){var i=t.sources[e.sourceName],n=[],o={};return"undefined"!==typeof e.cluster&&(o.cluster=e.cluster,o.clusterRadius=i.clusterRadius?i.clusterRadius:50),"undefined"!==typeof e.radius&&(o.clusterRadius=e.radius),n[e.sourceName]=Object.assign({},i,o),Object.assign({},t,{sources:Object.assign({},t.sources,n)},r(t.metadata,k.SOURCE_VERSION_KEY))}function m(t,e){var i=t.sources[e.sourceName],n=i.data,r=(0,F.default)(e.filter);if("Feature"===n.type){if(r(n))return _(t,e.sourceName,{type:"FeatureCollection",features:[]})}else if("FeatureCollection"===n.type){for(var o=[],a=0,s=n.features.length;a<s;a++){var l=n.features[a];r(l)||o.push(l)}var u=Object.assign({},n,{features:o});return _(t,e.sourceName,u)}return t}function E(t,e){for(var i=[],n=0,o=t.layers.length;n<o;n++){var a=t.layers[n];a.metadata&&a.metadata[k.GROUP_KEY]===e.groupId?i.push(L({},a,{layout:L({},a.layout,{visibility:a.id===e.layerId?"visible":"none"})})):i.push(a)}return Object.assign({},t,{layers:i},r(t.metadata,k.LAYER_VERSION_KEY))}function T(t,e){for(var i=!1,n=[],o=0,a=t.layers.length;o<a;o++){var s=t.layers[o];s.id===e.layerId?(n.push(L({},s,{layout:L({},s.layout,{visibility:e.visibility})})),i=!0):n.push(s)}return i?Object.assign({},t,{layers:n},r(t.metadata,k.LAYER_VERSION_KEY)):t}function S(t,e){var i=r(t.metadata,k.SOURCE_VERSION_KEY);return i=r(i.metadata,k.LAYER_VERSION_KEY),Object.assign({},e.context,{metadata:Object.assign({},i.metadata,e.context.metadata)})}function x(t,e){return Object.assign({},t,{metadata:Object.assign({},t.metadata,e.metadata)})}function C(t,e){var i=t.metadata?Object.assign({},t.metadata[k.GROUPS_KEY]):{};i[e.id]=e.config;var n={};return n[k.GROUPS_KEY]=i,Object.assign({},t,{metadata:Object.assign({},t.metadata,n)})}function R(t,e){var i=t.metadata?Object.assign({},t.metadata[k.GROUPS_KEY]):{};delete i[e.id];var n={};return n[k.GROUPS_KEY]=i,Object.assign({},t,{metadata:Object.assign({},t.metadata,n)})}function b(t,e){var i=t.sources[e.sourceName],n={};n[e.sourceName]=Object.assign({},i,e.sourceDef);var a=Object.assign({},t.sources,n),s=void 0;return s="geojson"===n[e.sourceName].type?r(t.metadata,o(e.sourceName)):r(t.metadata,k.SOURCE_VERSION_KEY),Object.assign({},t,{sources:Object.assign({},t.sources,a)},s)}function I(t,e){var i=Math.min(k.DEFAULT_ZOOM.MAX,e.zoom);return i=Math.max(k.DEFAULT_ZOOM.MIN,i),Object.assign({},t,{zoom:i})}function O(t,e){var i=e.extent,n=(0,N.getResolutionForExtent)(i,e.size,e.projection),r=(0,N.getZoomForResolution)(n,e.projection),o=[(i[0]+i[2])/2,(i[1]+i[3])/2];return Object.assign({},t,{center:o,zoom:r})}function P(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G,e=arguments[1];switch(e.type){case D.MAP.SET_VIEW:return void 0!==e.view.zoom?I(Object.assign({},t,e.view),{zoom:e.view.zoom}):Object.assign({},t,e.view);case D.MAP.ZOOM_IN:return I(t,{zoom:t.zoom+1});case D.MAP.ZOOM_OUT:return I(t,{zoom:t.zoom-1});case D.MAP.SET_ZOOM:return I(t,e);case D.MAP.FIT_EXTENT:return O(t,e);case D.MAP.SET_NAME:return Object.assign({},t,{name:e.name});case D.MAP.SET_GLYPHS:return Object.assign({},t,{glyphs:e.glyphs});case D.MAP.SET_SPRITE:return Object.assign({},t,{sprite:e.sprite});case D.MAP.SET_BEARING:return Object.assign({},t,{bearing:e.bearing});case D.MAP.ADD_LAYER:return c(t,e);case D.MAP.REMOVE_LAYER:return h(t,e);case D.MAP.SET_LAYER_METADATA:case D.MAP.UPDATE_LAYER:return f(t,e);case D.MAP.CLEAR_LAYER_FILTER:return d(t,e);case D.MAP.ADD_SOURCE:return p(t,e);case D.MAP.REMOVE_SOURCE:return g(t,e);case D.MAP.ADD_FEATURES:return y(t,e);case D.MAP.REMOVE_FEATURES:return m(t,e);case D.MAP.SET_LAYER_VISIBILITY:return T(t,e);case D.MAP.SET_LAYER_IN_GROUP_VISIBLE:return E(t,e);case D.MAP.RECEIVE_CONTEXT:return S(t,e);case D.MAP.ORDER_LAYER:return l(t,e);case D.MAP.CLUSTER_POINTS:case D.MAP.SET_CLUSTER_RADIUS:return v(t,e);case D.MAP.UPDATE_METADATA:return x(t,e);case D.MAP.ADD_GROUP:return C(t,e);case D.MAP.REMOVE_GROUP:return R(t,e);case D.MAP.UPDATE_SOURCE:return b(t,e);case D.MAP.MOVE_GROUP:return u(t,e);default:return t}}var w="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};Object.defineProperty(e,"__esModule",{value:!0});var L=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},A="function"===typeof Symbol&&"symbol"===w(Symbol.iterator)?function(t){return"undefined"===typeof t?"undefined":w(t)}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":"undefined"===typeof t?"undefined":w(t)};e.dataVersionKey=o,e.default=P;var M=i(95),F=function(t){return t&&t.__esModule?t:{default:t}}(M),N=i(120),D=i(89),k=i(68),G={version:8,name:"default",center:[0,0],zoom:3,bearing:0,metadata:function(){var t={};return t[k.LAYER_VERSION_KEY]=0,t[k.SOURCE_VERSION_KEY]=0,t}(),sources:{},layers:[]}},function(t,e,i){"use strict";function n(t){return{type:"MOVE",count:t}}function r(t){return{type:"CHANGESOURCE",source:t}}e.b=n,e.a=r},function(t,e,i){i(201),t.exports=i(205)},function(t,e,i){"use strict";"undefined"===typeof Promise&&(i(202).enable(),window.Promise=i(204)),i(122),Object.assign=i(91)},function(t,e,i){"use strict";function n(){u=!1,s._47=null,s._71=null}function r(t){function e(e){(t.allRejections||a(h[e].error,t.whitelist||l))&&(h[e].displayId=c++,t.onUnhandled?(h[e].logged=!0,t.onUnhandled(h[e].displayId,h[e].error)):(h[e].logged=!0,o(h[e].displayId,h[e].error)))}function i(e){h[e].logged&&(t.onHandled?t.onHandled(h[e].displayId,h[e].error):h[e].onUnhandled||(console.warn("Promise Rejection Handled (id: "+h[e].displayId+"):"),console.warn('  This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+h[e].displayId+".")))}t=t||{},u&&n(),u=!0;var r=0,c=0,h={};s._47=function(t){2===t._83&&h[t._56]&&(h[t._56].logged?i(t._56):clearTimeout(h[t._56].timeout),delete h[t._56])},s._71=function(t,i){0===t._75&&(t._56=r++,h[t._56]={displayId:null,error:i,timeout:setTimeout(e.bind(null,t._56),a(i,l)?100:2e3),logged:!1})}}function o(t,e){console.warn("Possible Unhandled Promise Rejection (id: "+t+"):"),((e&&(e.stack||e))+"").split("\n").forEach(function(t){console.warn("  "+t)})}function a(t,e){return e.some(function(e){return t instanceof e})}var s=i(121),l=[ReferenceError,TypeError,RangeError],u=!1;e.disable=n,e.enable=r},function(t,e,i){"use strict";(function(e){function i(t){a.length||(o(),s=!0),a[a.length]=t}function n(){for(;l<a.length;){var t=l;if(l+=1,a[t].call(),l>u){for(var e=0,i=a.length-l;e<i;e++)a[e]=a[e+l];a.length-=l,l=0}}a.length=0,l=0,s=!1}function r(t){return function(){function e(){clearTimeout(i),clearInterval(n),t()}var i=setTimeout(e,0),n=setInterval(e,50)}}t.exports=i;var o,a=[],s=!1,l=0,u=1024,c="undefined"!==typeof e?e:self,h=c.MutationObserver||c.WebKitMutationObserver;o="function"===typeof h?function(t){var e=1,i=new h(t),n=document.createTextNode("");return i.observe(n,{characterData:!0}),function(){e=-e,n.data=e}}(n):r(n),i.requestFlush=o,i.makeRequestCallFromTimer=r}).call(e,i(90))},function(t,e,i){"use strict";function n(t){var e=new o(o._44);return e._83=1,e._18=t,e}var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=i(121);t.exports=o;var a=n(!0),s=n(!1),l=n(null),u=n(void 0),c=n(0),h=n("");o.resolve=function(t){if(t instanceof o)return t;if(null===t)return l;if(void 0===t)return u;if(!0===t)return a;if(!1===t)return s;if(0===t)return c;if(""===t)return h;if("object"===("undefined"===typeof t?"undefined":r(t))||"function"===typeof t)try{var e=t.then;if("function"===typeof e)return new o(e.bind(t))}catch(t){return new o(function(e,i){i(t)})}return n(t)},o.all=function(t){var e=Array.prototype.slice.call(t);return new o(function(t,i){function n(s,l){if(l&&("object"===("undefined"===typeof l?"undefined":r(l))||"function"===typeof l)){if(l instanceof o&&l.then===o.prototype.then){for(;3===l._83;)l=l._18;return 1===l._83?n(s,l._18):(2===l._83&&i(l._18),void l.then(function(t){n(s,t)},i))}var u=l.then;if("function"===typeof u){return void new o(u.bind(l)).then(function(t){n(s,t)},i)}}e[s]=l,0===--a&&t(e)}if(0===e.length)return t([]);for(var a=e.length,s=0;s<e.length;s++)n(s,e[s])})},o.reject=function(t){return new o(function(e,i){i(t)})},o.race=function(t){return new o(function(e,i){t.forEach(function(t){o.resolve(t).then(e,i)})})},o.prototype.catch=function(t){return this.then(null,t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(31),r=i.n(n),o=i(124),a=i.n(o),s=i(216),l=(i.n(s),i(217));a.a.render(r.a.createElement(l.a,null),document.getElementById("maproot"))},function(t,e,i){"use strict";function n(t){for(var e=arguments.length-1,i="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,n=0;n<e;n++)i+="&args[]="+encodeURIComponent(arguments[n+1]);throw e=Error(i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),e.name="Invariant Violation",e.framesToPop=1,e}function r(t,e,i){this.props=t,this.context=e,this.refs=E,this.updater=i||P}function o(t,e,i){this.props=t,this.context=e,this.refs=E,this.updater=i||P}function a(){}function s(t,e,i){this.props=t,this.context=e,this.refs=E,this.updater=i||P}function l(t,e,i){var n,r={},o=null,a=null;if(null!=e)for(n in void 0!==e.ref&&(a=e.ref),void 0!==e.key&&(o=""+e.key),e)M.call(e,n)&&!F.hasOwnProperty(n)&&(r[n]=e[n]);var s=arguments.length-2;if(1===s)r.children=i;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}if(t&&t.defaultProps)for(n in s=t.defaultProps)void 0===r[n]&&(r[n]=s[n]);return{$$typeof:x,type:t,key:o,ref:a,props:r,_owner:A.current}}function u(t){return"object"===("undefined"===typeof t?"undefined":v(t))&&null!==t&&t.$$typeof===x}function c(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,function(t){return e[t]})}function h(t,e,i,n){if(D.length){var r=D.pop();return r.result=t,r.keyPrefix=e,r.func=i,r.context=n,r.count=0,r}return{result:t,keyPrefix:e,func:i,context:n,count:0}}function d(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>D.length&&D.push(t)}function f(t,e,i,r){var o="undefined"===typeof t?"undefined":v(t);"undefined"!==o&&"boolean"!==o||(t=null);var a=!1;if(null===t)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case x:case C:case R:case b:a=!0}}if(a)return i(r,t,""===e?"."+p(t,0):e),1;if(a=0,e=""===e?".":e+":",Array.isArray(t))for(var s=0;s<t.length;s++){o=t[s];var l=e+p(o,s);a+=f(o,l,i,r)}else if(null===t||"undefined"===typeof t?l=null:(l=O&&t[O]||t["@@iterator"],l="function"===typeof l?l:null),"function"===typeof l)for(t=l.call(t),s=0;!(o=t.next()).done;)o=o.value,l=e+p(o,s++),a+=f(o,l,i,r);else"object"===o&&(i=""+t,n("31","[object Object]"===i?"object with keys {"+Object.keys(t).join(", ")+"}":i,""));return a}function p(t,e){return"object"===("undefined"===typeof t?"undefined":v(t))&&null!==t&&null!=t.key?c(t.key):e.toString(36)}function g(t,e){t.func.call(t.context,e,t.count++)}function _(t,e,i){var n=t.result,r=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?y(t,n,i,T.thatReturnsArgument):null!=t&&(u(t)&&(e=r+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(N,"$&/")+"/")+i,t={$$typeof:x,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}),n.push(t))}function y(t,e,i,n,r){var o="";null!=i&&(o=(""+i).replace(N,"$&/")+"/"),e=h(e,o,n,r),null==t||f(t,"",_,e),d(e)}var v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m=i(91),E=i(123),T=i(69),S="function"===typeof Symbol&&Symbol.for,x=S?Symbol.for("react.element"):60103,C=S?Symbol.for("react.call"):60104,R=S?Symbol.for("react.return"):60105,b=S?Symbol.for("react.portal"):60106,I=S?Symbol.for("react.fragment"):60107,O="function"===typeof Symbol&&Symbol.iterator,P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};r.prototype.isReactComponent={},r.prototype.setState=function(t,e){"object"!==("undefined"===typeof t?"undefined":v(t))&&"function"!==typeof t&&null!=t&&n("85"),this.updater.enqueueSetState(this,t,e,"setState")},r.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},a.prototype=r.prototype;var w=o.prototype=new a;w.constructor=o,m(w,r.prototype),w.isPureReactComponent=!0;var L=s.prototype=new a;L.constructor=s,m(L,r.prototype),L.unstable_isAsyncReactComponent=!0,L.render=function(){return this.props.children};var A={current:null},M=Object.prototype.hasOwnProperty,F={key:!0,ref:!0,__self:!0,__source:!0},N=/\/+/g,D=[],k={Children:{map:function(t,e,i){if(null==t)return t;var n=[];return y(t,n,null,e,i),n},forEach:function(t,e,i){if(null==t)return t;e=h(null,null,e,i),null==t||f(t,"",g,e),d(e)},count:function(t){return null==t?0:f(t,"",T.thatReturnsNull,null)},toArray:function(t){var e=[];return y(t,e,null,T.thatReturnsArgument),e},only:function(t){return u(t)||n("143"),t}},Component:r,PureComponent:o,unstable_AsyncComponent:s,Fragment:I,createElement:l,cloneElement:function(t,e,i){var n=m({},t.props),r=t.key,o=t.ref,a=t._owner;if(null!=e){if(void 0!==e.ref&&(o=e.ref,a=A.current),void 0!==e.key&&(r=""+e.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(l in e)M.call(e,l)&&!F.hasOwnProperty(l)&&(n[l]=void 0===e[l]&&void 0!==s?s[l]:e[l])}var l=arguments.length-2;if(1===l)n.children=i;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];n.children=s}return{$$typeof:x,type:t.type,key:r,ref:o,props:n,_owner:a}},createFactory:function(t){var e=l.bind(null,t);return e.type=t,e},isValidElement:u,version:"16.2.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:A,assign:m}},G=Object.freeze({default:k}),U=G&&k||G;t.exports=U.default?U.default:U},function(t,e,i){"use strict";function n(t){for(var e=arguments.length-1,i="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,n=0;n<e;n++)i+="&args[]="+encodeURIComponent(arguments[n+1]);throw e=Error(i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),e.name="Invariant Violation",e.framesToPop=1,e}function r(t,e){return(t&e)===e}function o(t,e){if(Pi.hasOwnProperty(t)||2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))return!1;if(null===e)return!0;switch("undefined"===typeof e?"undefined":vi(e)){case"boolean":return Pi.hasOwnProperty(t)?t=!0:(e=a(t))?t=e.hasBooleanValue||e.hasStringBooleanValue||e.hasOverloadedBooleanValue:(t=t.toLowerCase().slice(0,5),t="data-"===t||"aria-"===t),t;case"undefined":case"number":case"string":case"object":return!0;default:return!1}}function a(t){return Li.hasOwnProperty(t)?Li[t]:null}function s(t){return t[1].toUpperCase()}function l(t,e,i,n,r,o,a,s,l){Wi._hasCaughtError=!1,Wi._caughtError=null;var u=Array.prototype.slice.call(arguments,3);try{e.apply(i,u)}catch(t){Wi._caughtError=t,Wi._hasCaughtError=!0}}function u(){if(Wi._hasRethrowError){var t=Wi._rethrowError;throw Wi._rethrowError=null,Wi._hasRethrowError=!1,t}}function c(){if(zi)for(var t in Xi){var e=Xi[t],i=zi.indexOf(t);if(-1<i||n("96",t),!Hi[i]){e.extractEvents||n("97",t),Hi[i]=e,i=e.eventTypes;for(var r in i){var o=void 0,a=i[r],s=e,l=r;Ki.hasOwnProperty(l)&&n("99",l),Ki[l]=a;var u=a.phasedRegistrationNames;if(u){for(o in u)u.hasOwnProperty(o)&&h(u[o],s,l);o=!0}else a.registrationName?(h(a.registrationName,s,l),o=!0):o=!1;o||n("98",r,t)}}}}function h(t,e,i){qi[t]&&n("100",t),qi[t]=e,Zi[t]=e.eventTypes[i].dependencies}function d(t){zi&&n("101"),zi=Array.prototype.slice.call(t),c()}function f(t){var e,i=!1;for(e in t)if(t.hasOwnProperty(e)){var r=t[e];Xi.hasOwnProperty(e)&&Xi[e]===r||(Xi[e]&&n("102",e),Xi[e]=r,i=!0)}i&&c()}function p(t,e,i,n){e=t.type||"unknown-event",t.currentTarget=tn(n),Wi.invokeGuardedCallbackAndCatchFirstError(e,i,void 0,t),t.currentTarget=null}function g(t,e){return null==e&&n("30"),null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function _(t,e,i){Array.isArray(t)?t.forEach(e,i):t&&e.call(i,t)}function y(t,e){if(t){var i=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(i))for(var r=0;r<i.length&&!t.isPropagationStopped();r++)p(t,e,i[r],n[r]);else i&&p(t,e,i,n);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}function v(t){return y(t,!0)}function m(t){return y(t,!1)}function E(t,e){var i=t.stateNode;if(!i)return null;var r=Qi(i);if(!r)return null;i=r[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(t=t.type,r=!("button"===t||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}return t?null:(i&&"function"!==typeof i&&n("231",e,"undefined"===typeof i?"undefined":vi(i)),i)}function T(t,e,i,n){for(var r,o=0;o<Hi.length;o++){var a=Hi[o];a&&(a=a.extractEvents(t,e,i,n))&&(r=g(r,a))}return r}function S(t){t&&(en=g(en,t))}function x(t){var e=en;en=null,e&&(t?_(e,v):_(e,m),en&&n("95"),Wi.rethrowCaughtError())}function C(t){if(t[an])return t[an];for(var e=[];!t[an];){if(e.push(t),!t.parentNode)return null;t=t.parentNode}var i=void 0,n=t[an];if(5===n.tag||6===n.tag)return n;for(;t&&(n=t[an]);t=e.pop())i=n;return i}function R(t){if(5===t.tag||6===t.tag)return t.stateNode;n("33")}function b(t){return t[sn]||null}function I(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function O(t,e,i){for(var n=[];t;)n.push(t),t=I(t);for(t=n.length;0<t--;)e(n[t],"captured",i);for(t=0;t<n.length;t++)e(n[t],"bubbled",i)}function P(t,e,i){(e=E(t,i.dispatchConfig.phasedRegistrationNames[e]))&&(i._dispatchListeners=g(i._dispatchListeners,e),i._dispatchInstances=g(i._dispatchInstances,t))}function w(t){t&&t.dispatchConfig.phasedRegistrationNames&&O(t._targetInst,P,t)}function L(t){if(t&&t.dispatchConfig.phasedRegistrationNames){var e=t._targetInst;e=e?I(e):null,O(e,P,t)}}function A(t,e,i){t&&i&&i.dispatchConfig.registrationName&&(e=E(t,i.dispatchConfig.registrationName))&&(i._dispatchListeners=g(i._dispatchListeners,e),i._dispatchInstances=g(i._dispatchInstances,t))}function M(t){t&&t.dispatchConfig.registrationName&&A(t._targetInst,null,t)}function F(t){_(t,w)}function N(t,e,i,n){if(i&&n)t:{for(var r=i,o=n,a=0,s=r;s;s=I(s))a++;s=0;for(var l=o;l;l=I(l))s++;for(;0<a-s;)r=I(r),a--;for(;0<s-a;)o=I(o),s--;for(;a--;){if(r===o||r===o.alternate)break t;r=I(r),o=I(o)}r=null}else r=null;for(o=r,r=[];i&&i!==o&&(null===(a=i.alternate)||a!==o);)r.push(i),i=I(i);for(i=[];n&&n!==o&&(null===(a=n.alternate)||a!==o);)i.push(n),n=I(n);for(n=0;n<r.length;n++)A(r[n],"bubbled",t);for(t=i.length;0<t--;)A(i[t],"captured",e)}function D(){return!cn&&Ei.canUseDOM&&(cn="textContent"in document.documentElement?"textContent":"innerText"),cn}function k(){if(hn._fallbackText)return hn._fallbackText;var t,e,i=hn._startText,n=i.length,r=G(),o=r.length;for(t=0;t<n&&i[t]===r[t];t++);var a=n-t;for(e=1;e<=a&&i[n-e]===r[o-e];e++);return hn._fallbackText=r.slice(t,1<e?1-e:void 0),hn._fallbackText}function G(){return"value"in hn._root?hn._root.value:hn._root[D()]}function U(t,e,i,n){this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=i,t=this.constructor.Interface;for(var r in t)t.hasOwnProperty(r)&&((e=t[r])?this[r]=e(i):"target"===r?this.target=n:this[r]=i[r]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?Si.thatReturnsTrue:Si.thatReturnsFalse,this.isPropagationStopped=Si.thatReturnsFalse,this}function j(t,e,i,n){if(this.eventPool.length){var r=this.eventPool.pop();return this.call(r,t,e,i,n),r}return new this(t,e,i,n)}function B(t){t instanceof this||n("223"),t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function V(t){t.eventPool=[],t.getPooled=j,t.release=B}function Y(t,e,i,n){return U.call(this,t,e,i,n)}function W(t,e,i,n){return U.call(this,t,e,i,n)}function z(t,e){switch(t){case"topKeyUp":return-1!==pn.indexOf(e.keyCode);case"topKeyDown":return 229!==e.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function X(t){return t=t.detail,"object"===("undefined"===typeof t?"undefined":vi(t))&&"data"in t?t.data:null}function H(t,e){switch(t){case"topCompositionEnd":return X(e);case"topKeyPress":return 32!==e.which?null:(Cn=!0,Sn);case"topTextInput":return t=e.data,t===Sn&&Cn?null:t;default:return null}}function K(t,e){if(Rn)return"topCompositionEnd"===t||!gn&&z(t,e)?(t=k(),hn._root=null,hn._startText=null,hn._fallbackText=null,Rn=!1,t):null;switch(t){case"topPaste":return null;case"topKeyPress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"topCompositionEnd":return Tn?null:e.data;default:return null}}function q(t){if(t=$i(t)){In&&"function"===typeof In.restoreControlledState||n("194");var e=Qi(t.stateNode);In.restoreControlledState(t.stateNode,t.type,e)}}function Z(t){On?Pn?Pn.push(t):Pn=[t]:On=t}function J(){if(On){var t=On,e=Pn;if(Pn=On=null,q(t),e)for(t=0;t<e.length;t++)q(e[t])}}function Q(t,e){return t(e)}function $(t,e){if(An)return Q(t,e);An=!0;try{return Q(t,e)}finally{An=!1,J()}}function tt(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!Mn[t.type]:"textarea"===e}function et(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function it(t,e){if(!Ei.canUseDOM||e&&!("addEventListener"in document))return!1;e="on"+t;var i=e in document;return i||(i=document.createElement("div"),i.setAttribute(e,"return;"),i="function"===typeof i[e]),!i&&mn&&"wheel"===t&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}function nt(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function rt(t){var e=nt(t)?"checked":"value",i=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&"function"===typeof i.get&&"function"===typeof i.set)return Object.defineProperty(t,e,{enumerable:i.enumerable,configurable:!0,get:function(){return i.get.call(this)},set:function(t){n=""+t,i.set.call(this,t)}}),{getValue:function(){return n},setValue:function(t){n=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}function ot(t){t._valueTracker||(t._valueTracker=rt(t))}function at(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var i=e.getValue(),n="";return t&&(n=nt(t)?t.checked?"true":"false":t.value),(t=n)!==i&&(e.setValue(t),!0)}function st(t,e,i){return t=U.getPooled(Fn.change,t,e,i),t.type="change",Z(i),F(t),t}function lt(t){S(t),x(!1)}function ut(t){if(at(R(t)))return t}function ct(t,e){if("topChange"===t)return e}function ht(){Nn&&(Nn.detachEvent("onpropertychange",dt),Dn=Nn=null)}function dt(t){"value"===t.propertyName&&ut(Dn)&&(t=st(Dn,t,et(t)),$(lt,t))}function ft(t,e,i){"topFocus"===t?(ht(),Nn=e,Dn=i,Nn.attachEvent("onpropertychange",dt)):"topBlur"===t&&ht()}function pt(t){if("topSelectionChange"===t||"topKeyUp"===t||"topKeyDown"===t)return ut(Dn)}function gt(t,e){if("topClick"===t)return ut(e)}function _t(t,e){if("topInput"===t||"topChange"===t)return ut(e)}function yt(t,e,i,n){return U.call(this,t,e,i,n)}function vt(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=Un[t])&&!!e[t]}function mt(){return vt}function Et(t,e,i,n){return U.call(this,t,e,i,n)}function Tt(t){return t=t.type,"string"===typeof t?t:"function"===typeof t?t.displayName||t.name:null}function St(t){var e=t;if(t.alternate)for(;e.return;)e=e.return;else{if(0!==(2&e.effectTag))return 1;for(;e.return;)if(e=e.return,0!==(2&e.effectTag))return 1}return 3===e.tag?2:3}function xt(t){return!!(t=t._reactInternalFiber)&&2===St(t)}function Ct(t){2!==St(t)&&n("188")}function Rt(t){var e=t.alternate;if(!e)return e=St(t),3===e&&n("188"),1===e?null:t;for(var i=t,r=e;;){var o=i.return,a=o?o.alternate:null;if(!o||!a)break;if(o.child===a.child){for(var s=o.child;s;){if(s===i)return Ct(o),t;if(s===r)return Ct(o),e;s=s.sibling}n("188")}if(i.return!==r.return)i=o,r=a;else{s=!1;for(var l=o.child;l;){if(l===i){s=!0,i=o,r=a;break}if(l===r){s=!0,r=o,i=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===i){s=!0,i=a,r=o;break}if(l===r){s=!0,r=a,i=o;break}l=l.sibling}s||n("189")}}i.alternate!==r&&n("190")}return 3!==i.tag&&n("188"),i.stateNode.current===i?t:e}function bt(t){if(!(t=Rt(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function It(t){if(!(t=Rt(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child&&4!==e.tag)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function Ot(t){var e=t.targetInst;do{if(!e){t.ancestors.push(e);break}var i;for(i=e;i.return;)i=i.return;if(!(i=3!==i.tag?null:i.stateNode.containerInfo))break;t.ancestors.push(e),e=C(i)}while(e);for(i=0;i<t.ancestors.length;i++)e=t.ancestors[i],zn(t.topLevelType,e,t.nativeEvent,et(t.nativeEvent))}function Pt(t){Wn=!!t}function wt(t,e,i){return i?xi.listen(i,e,At.bind(null,t)):null}function Lt(t,e,i){return i?xi.capture(i,e,At.bind(null,t)):null}function At(t,e){if(Wn){var i=et(e);if(i=C(i),null===i||"number"!==typeof i.tag||2===St(i)||(i=null),Yn.length){var n=Yn.pop();n.topLevelType=t,n.nativeEvent=e,n.targetInst=i,t=n}else t={topLevelType:t,nativeEvent:e,targetInst:i,ancestors:[]};try{$(Ot,t)}finally{t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>Yn.length&&Yn.push(t)}}}function Mt(t,e){var i={};return i[t.toLowerCase()]=e.toLowerCase(),i["Webkit"+t]="webkit"+e,i["Moz"+t]="moz"+e,i["ms"+t]="MS"+e,i["O"+t]="o"+e.toLowerCase(),i}function Ft(t){if(Kn[t])return Kn[t];if(!Hn[t])return t;var e,i=Hn[t];for(e in i)if(i.hasOwnProperty(e)&&e in qn)return Kn[t]=i[e];return""}function Nt(t){return Object.prototype.hasOwnProperty.call(t,$n)||(t[$n]=Qn++,Jn[t[$n]]={}),Jn[t[$n]]}function Dt(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function kt(t,e){var i=Dt(t);t=0;for(var n;i;){if(3===i.nodeType){if(n=t+i.textContent.length,t<=e&&n>=e)return{node:i,offset:e-t};t=n}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=Dt(i)}}function Gt(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&"text"===t.type||"textarea"===e||"true"===t.contentEditable)}function Ut(t,e){if(or||null==ir||ir!==Ci())return null;var i=ir;return"selectionStart"in i&&Gt(i)?i={start:i.selectionStart,end:i.selectionEnd}:window.getSelection?(i=window.getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}):i=void 0,rr&&Ri(rr,i)?null:(rr=i,t=U.getPooled(er.select,nr,t,e),t.type="select",t.target=ir,F(t),t)}function jt(t,e,i,n){return U.call(this,t,e,i,n)}function Bt(t,e,i,n){return U.call(this,t,e,i,n)}function Vt(t,e,i,n){return U.call(this,t,e,i,n)}function Yt(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,32<=t||13===t?t:0}function Wt(t,e,i,n){return U.call(this,t,e,i,n)}function zt(t,e,i,n){return U.call(this,t,e,i,n)}function Xt(t,e,i,n){return U.call(this,t,e,i,n)}function Ht(t,e,i,n){return U.call(this,t,e,i,n)}function Kt(t,e,i,n){return U.call(this,t,e,i,n)}function qt(t){0>fr||(t.current=dr[fr],dr[fr]=null,fr--)}function Zt(t,e){fr++,dr[fr]=t.current,t.current=e}function Jt(t){return $t(t)?_r:pr.current}function Qt(t,e){var i=t.type.contextTypes;if(!i)return Oi;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var r,o={};for(r in i)o[r]=e[r];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function $t(t){return 2===t.tag&&null!=t.type.childContextTypes}function te(t){$t(t)&&(qt(gr,t),qt(pr,t))}function ee(t,e,i){null!=pr.cursor&&n("168"),Zt(pr,e,t),Zt(gr,i,t)}function ie(t,e){var i=t.stateNode,r=t.type.childContextTypes;if("function"!==typeof i.getChildContext)return e;i=i.getChildContext();for(var o in i)o in r||n("108",Tt(t)||"Unknown",o);return Ti({},e,i)}function ne(t){if(!$t(t))return!1;var e=t.stateNode;return e=e&&e.__reactInternalMemoizedMergedChildContext||Oi,_r=pr.current,Zt(pr,e,t),Zt(gr,gr.current,t),!0}function re(t,e){var i=t.stateNode;if(i||n("169"),e){var r=ie(t,_r);i.__reactInternalMemoizedMergedChildContext=r,qt(gr,t),qt(pr,t),Zt(pr,r,t)}else qt(gr,t);Zt(gr,e,t)}function oe(t,e,i){this.tag=t,this.key=e,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=i,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function ae(t,e,i){var n=t.alternate;return null===n?(n=new oe(t.tag,t.key,t.internalContextTag),n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.expirationTime=i,n.pendingProps=e,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function se(t,e,i){var r=void 0,o=t.type,a=t.key;return"function"===typeof o?(r=o.prototype&&o.prototype.isReactComponent?new oe(2,a,e):new oe(0,a,e),r.type=o,r.pendingProps=t.props):"string"===typeof o?(r=new oe(5,a,e),r.type=o,r.pendingProps=t.props):"object"===("undefined"===typeof o?"undefined":vi(o))&&null!==o&&"number"===typeof o.tag?(r=o,r.pendingProps=t.props):n("130",null==o?o:"undefined"===typeof o?"undefined":vi(o),""),r.expirationTime=i,r}function le(t,e,i,n){return e=new oe(10,n,e),e.pendingProps=t,e.expirationTime=i,e}function ue(t,e,i){return e=new oe(6,null,e),e.pendingProps=t,e.expirationTime=i,e}function ce(t,e,i){return e=new oe(7,t.key,e),e.type=t.handler,e.pendingProps=t,e.expirationTime=i,e}function he(t,e,i){return t=new oe(9,null,e),t.expirationTime=i,t}function de(t,e,i){return e=new oe(4,t.key,e),e.pendingProps=t.children||[],e.expirationTime=i,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function fe(t){return function(e){try{return t(e)}catch(t){}}}function pe(t){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var i=e.inject(t);yr=fe(function(t){return e.onCommitFiberRoot(i,t)}),vr=fe(function(t){return e.onCommitFiberUnmount(i,t)})}catch(t){}return!0}function ge(t){"function"===typeof yr&&yr(t)}function _e(t){"function"===typeof vr&&vr(t)}function ye(t){return{baseState:t,expirationTime:0,first:null,last:null,callbackList:null,hasForceUpdate:!1,isInitialized:!1}}function ve(t,e){null===t.last?t.first=t.last=e:(t.last.next=e,t.last=e),(0===t.expirationTime||t.expirationTime>e.expirationTime)&&(t.expirationTime=e.expirationTime)}function me(t,e){var i=t.alternate,n=t.updateQueue;null===n&&(n=t.updateQueue=ye(null)),null!==i?null===(t=i.updateQueue)&&(t=i.updateQueue=ye(null)):t=null,t=t!==n?t:null,null===t?ve(n,e):null===n.last||null===t.last?(ve(n,e),ve(t,e)):(ve(n,e),t.last=e)}function Ee(t,e,i,n){return t=t.partialState,"function"===typeof t?t.call(e,i,n):t}function Te(t,e,i,n,r,o){null!==t&&t.updateQueue===i&&(i=e.updateQueue={baseState:i.baseState,expirationTime:i.expirationTime,first:i.first,last:i.last,isInitialized:i.isInitialized,callbackList:null,hasForceUpdate:!1}),i.expirationTime=0,i.isInitialized?t=i.baseState:(t=i.baseState=e.memoizedState,i.isInitialized=!0);for(var a=!0,s=i.first,l=!1;null!==s;){var u=s.expirationTime;if(u>o){var c=i.expirationTime;(0===c||c>u)&&(i.expirationTime=u),l||(l=!0,i.baseState=t)}else l||(i.first=s.next,null===i.first&&(i.last=null)),s.isReplace?(t=Ee(s,n,t,r),a=!0):(u=Ee(s,n,t,r))&&(t=a?Ti({},t,u):Ti(t,u),a=!1),s.isForced&&(i.hasForceUpdate=!0),null!==s.callback&&(u=i.callbackList,null===u&&(u=i.callbackList=[]),u.push(s));s=s.next}return null!==i.callbackList?e.effectTag|=32:null!==i.first||i.hasForceUpdate||(e.updateQueue=null),l||(i.baseState=t),t}function Se(t,e){var i=t.callbackList;if(null!==i)for(t.callbackList=null,t=0;t<i.length;t++){var r=i[t],o=r.callback;r.callback=null,"function"!==typeof o&&n("191",o),o.call(e)}}function xe(t,e,i,r){function o(t,e){e.updater=a,t.stateNode=e,e._reactInternalFiber=t}var a={isMounted:xt,enqueueSetState:function(i,n,r){i=i._reactInternalFiber,r=void 0===r?null:r;var o=e(i);me(i,{expirationTime:o,partialState:n,callback:r,isReplace:!1,isForced:!1,nextCallback:null,next:null}),t(i,o)},enqueueReplaceState:function(i,n,r){i=i._reactInternalFiber,r=void 0===r?null:r;var o=e(i);me(i,{expirationTime:o,partialState:n,callback:r,isReplace:!0,isForced:!1,nextCallback:null,next:null}),t(i,o)},enqueueForceUpdate:function(i,n){i=i._reactInternalFiber,n=void 0===n?null:n;var r=e(i);me(i,{expirationTime:r,partialState:null,callback:n,isReplace:!1,isForced:!0,nextCallback:null,next:null}),t(i,r)}};return{adoptClassInstance:o,constructClassInstance:function(t,e){var i=t.type,n=Jt(t),r=2===t.tag&&null!=t.type.contextTypes,a=r?Qt(t,n):Oi;return e=new i(e,a),o(t,e),r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=n,t.__reactInternalMemoizedMaskedChildContext=a),e},mountClassInstance:function(t,e){var i=t.alternate,r=t.stateNode,o=r.state||null,s=t.pendingProps;s||n("158");var l=Jt(t);r.props=s,r.state=t.memoizedState=o,r.refs=Oi,r.context=Qt(t,l),null!=t.type&&null!=t.type.prototype&&!0===t.type.prototype.unstable_isAsyncReactComponent&&(t.internalContextTag|=1),"function"===typeof r.componentWillMount&&(o=r.state,r.componentWillMount(),o!==r.state&&a.enqueueReplaceState(r,r.state,null),null!==(o=t.updateQueue)&&(r.state=Te(i,t,o,r,s,e))),"function"===typeof r.componentDidMount&&(t.effectTag|=4)},updateClassInstance:function(t,e,o){var s=e.stateNode;s.props=e.memoizedProps,s.state=e.memoizedState;var l=e.memoizedProps,u=e.pendingProps;u||null==(u=l)&&n("159");var c=s.context,h=Jt(e);if(h=Qt(e,h),"function"!==typeof s.componentWillReceiveProps||l===u&&c===h||(c=s.state,s.componentWillReceiveProps(u,h),s.state!==c&&a.enqueueReplaceState(s,s.state,null)),c=e.memoizedState,o=null!==e.updateQueue?Te(t,e,e.updateQueue,s,u,o):c,!(l!==u||c!==o||gr.current||null!==e.updateQueue&&e.updateQueue.hasForceUpdate))return"function"!==typeof s.componentDidUpdate||l===t.memoizedProps&&c===t.memoizedState||(e.effectTag|=4),!1;var d=u;if(null===l||null!==e.updateQueue&&e.updateQueue.hasForceUpdate)d=!0;else{var f=e.stateNode,p=e.type;d="function"===typeof f.shouldComponentUpdate?f.shouldComponentUpdate(d,o,h):!p.prototype||!p.prototype.isPureReactComponent||(!Ri(l,d)||!Ri(c,o))}return d?("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(u,o,h),"function"===typeof s.componentDidUpdate&&(e.effectTag|=4)):("function"!==typeof s.componentDidUpdate||l===t.memoizedProps&&c===t.memoizedState||(e.effectTag|=4),i(e,u),r(e,o)),s.props=u,s.state=o,s.context=h,d}}}function Ce(t){return null===t||"undefined"===typeof t?null:(t=Rr&&t[Rr]||t["@@iterator"],"function"===typeof t?t:null)}function Re(t,e){var i=e.ref;if(null!==i&&"function"!==typeof i){if(e._owner){e=e._owner;var r=void 0;e&&(2!==e.tag&&n("110"),r=e.stateNode),r||n("147",i);var o=""+i;return null!==t&&null!==t.ref&&t.ref._stringRef===o?t.ref:(t=function(t){var e=r.refs===Oi?r.refs={}:r.refs;null===t?delete e[o]:e[o]=t},t._stringRef=o,t)}"string"!==typeof i&&n("148"),e._owner||n("149",i)}return i}function be(t,e){"textarea"!==t.type&&n("31","[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,"")}function Ie(t){function e(e,i){if(t){var n=e.lastEffect;null!==n?(n.nextEffect=i,e.lastEffect=i):e.firstEffect=e.lastEffect=i,i.nextEffect=null,i.effectTag=8}}function i(i,n){if(!t)return null;for(;null!==n;)e(i,n),n=n.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(t,e,i){return t=ae(t,e,i),t.index=0,t.sibling=null,t}function a(e,i,n){return e.index=n,t?null!==(n=e.alternate)?(n=n.index,n<i?(e.effectTag=2,i):n):(e.effectTag=2,i):i}function s(e){return t&&null===e.alternate&&(e.effectTag=2),e}function l(t,e,i,n){return null===e||6!==e.tag?(e=ue(i,t.internalContextTag,n),e.return=t,e):(e=o(e,i,n),e.return=t,e)}function u(t,e,i,n){return null!==e&&e.type===i.type?(n=o(e,i.props,n),n.ref=Re(e,i),n.return=t,n):(n=se(i,t.internalContextTag,n),n.ref=Re(e,i),n.return=t,n)}function c(t,e,i,n){return null===e||7!==e.tag?(e=ce(i,t.internalContextTag,n),e.return=t,e):(e=o(e,i,n),e.return=t,e)}function h(t,e,i,n){return null===e||9!==e.tag?(e=he(i,t.internalContextTag,n),e.type=i.value,e.return=t,e):(e=o(e,null,n),e.type=i.value,e.return=t,e)}function d(t,e,i,n){return null===e||4!==e.tag||e.stateNode.containerInfo!==i.containerInfo||e.stateNode.implementation!==i.implementation?(e=de(i,t.internalContextTag,n),e.return=t,e):(e=o(e,i.children||[],n),e.return=t,e)}function f(t,e,i,n,r){return null===e||10!==e.tag?(e=le(i,t.internalContextTag,n,r),e.return=t,e):(e=o(e,i,n),e.return=t,e)}function p(t,e,i){if("string"===typeof e||"number"===typeof e)return e=ue(""+e,t.internalContextTag,i),e.return=t,e;if("object"===("undefined"===typeof e?"undefined":vi(e))&&null!==e){switch(e.$$typeof){case Er:return e.type===Cr?(e=le(e.props.children,t.internalContextTag,i,e.key),e.return=t,e):(i=se(e,t.internalContextTag,i),i.ref=Re(null,e),i.return=t,i);case Tr:return e=ce(e,t.internalContextTag,i),e.return=t,e;case Sr:return i=he(e,t.internalContextTag,i),i.type=e.value,i.return=t,i;case xr:return e=de(e,t.internalContextTag,i),e.return=t,e}if(br(e)||Ce(e))return e=le(e,t.internalContextTag,i,null),e.return=t,e;be(t,e)}return null}function g(t,e,i,n){var r=null!==e?e.key:null;if("string"===typeof i||"number"===typeof i)return null!==r?null:l(t,e,""+i,n);if("object"===("undefined"===typeof i?"undefined":vi(i))&&null!==i){switch(i.$$typeof){case Er:return i.key===r?i.type===Cr?f(t,e,i.props.children,n,r):u(t,e,i,n):null;case Tr:return i.key===r?c(t,e,i,n):null;case Sr:return null===r?h(t,e,i,n):null;case xr:return i.key===r?d(t,e,i,n):null}if(br(i)||Ce(i))return null!==r?null:f(t,e,i,n,null);be(t,i)}return null}function _(t,e,i,n,r){if("string"===typeof n||"number"===typeof n)return t=t.get(i)||null,l(e,t,""+n,r);if("object"===("undefined"===typeof n?"undefined":vi(n))&&null!==n){switch(n.$$typeof){case Er:return t=t.get(null===n.key?i:n.key)||null,n.type===Cr?f(e,t,n.props.children,r,n.key):u(e,t,n,r);case Tr:return t=t.get(null===n.key?i:n.key)||null,c(e,t,n,r);case Sr:return t=t.get(i)||null,h(e,t,n,r);case xr:return t=t.get(null===n.key?i:n.key)||null,d(e,t,n,r)}if(br(n)||Ce(n))return t=t.get(i)||null,f(e,t,n,r,null);be(e,n)}return null}function y(n,o,s,l){for(var u=null,c=null,h=o,d=o=0,f=null;null!==h&&d<s.length;d++){h.index>d?(f=h,h=null):f=h.sibling;var y=g(n,h,s[d],l);if(null===y){null===h&&(h=f);break}t&&h&&null===y.alternate&&e(n,h),o=a(y,o,d),null===c?u=y:c.sibling=y,c=y,h=f}if(d===s.length)return i(n,h),u;if(null===h){for(;d<s.length;d++)(h=p(n,s[d],l))&&(o=a(h,o,d),null===c?u=h:c.sibling=h,c=h);return u}for(h=r(n,h);d<s.length;d++)(f=_(h,n,d,s[d],l))&&(t&&null!==f.alternate&&h.delete(null===f.key?d:f.key),o=a(f,o,d),null===c?u=f:c.sibling=f,c=f);return t&&h.forEach(function(t){return e(n,t)}),u}function v(o,s,l,u){var c=Ce(l);"function"!==typeof c&&n("150"),null==(l=c.call(l))&&n("151");for(var h=c=null,d=s,f=s=0,y=null,v=l.next();null!==d&&!v.done;f++,v=l.next()){d.index>f?(y=d,d=null):y=d.sibling;var m=g(o,d,v.value,u);if(null===m){d||(d=y);break}t&&d&&null===m.alternate&&e(o,d),s=a(m,s,f),null===h?c=m:h.sibling=m,h=m,d=y}if(v.done)return i(o,d),c;if(null===d){for(;!v.done;f++,v=l.next())null!==(v=p(o,v.value,u))&&(s=a(v,s,f),null===h?c=v:h.sibling=v,h=v);return c}for(d=r(o,d);!v.done;f++,v=l.next())null!==(v=_(d,o,f,v.value,u))&&(t&&null!==v.alternate&&d.delete(null===v.key?f:v.key),s=a(v,s,f),null===h?c=v:h.sibling=v,h=v);return t&&d.forEach(function(t){return e(o,t)}),c}return function(t,r,a,l){"object"===("undefined"===typeof a?"undefined":vi(a))&&null!==a&&a.type===Cr&&null===a.key&&(a=a.props.children);var u="object"===("undefined"===typeof a?"undefined":vi(a))&&null!==a;if(u)switch(a.$$typeof){case Er:t:{var c=a.key;for(u=r;null!==u;){if(u.key===c){if(10===u.tag?a.type===Cr:u.type===a.type){i(t,u.sibling),r=o(u,a.type===Cr?a.props.children:a.props,l),r.ref=Re(u,a),r.return=t,t=r;break t}i(t,u);break}e(t,u),u=u.sibling}a.type===Cr?(r=le(a.props.children,t.internalContextTag,l,a.key),r.return=t,t=r):(l=se(a,t.internalContextTag,l),l.ref=Re(r,a),l.return=t,t=l)}return s(t);case Tr:t:{for(u=a.key;null!==r;){if(r.key===u){if(7===r.tag){i(t,r.sibling),r=o(r,a,l),r.return=t,t=r;break t}i(t,r);break}e(t,r),r=r.sibling}r=ce(a,t.internalContextTag,l),r.return=t,t=r}return s(t);case Sr:t:{if(null!==r){if(9===r.tag){i(t,r.sibling),r=o(r,null,l),r.type=a.value,r.return=t,t=r;break t}i(t,r)}r=he(a,t.internalContextTag,l),r.type=a.value,r.return=t,t=r}return s(t);case xr:t:{for(u=a.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){i(t,r.sibling),r=o(r,a.children||[],l),r.return=t,t=r;break t}i(t,r);break}e(t,r),r=r.sibling}r=de(a,t.internalContextTag,l),r.return=t,t=r}return s(t)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==r&&6===r.tag?(i(t,r.sibling),r=o(r,a,l)):(i(t,r),r=ue(a,t.internalContextTag,l)),r.return=t,t=r,s(t);if(br(a))return y(t,r,a,l);if(Ce(a))return v(t,r,a,l);if(u&&be(t,a),"undefined"===typeof a)switch(t.tag){case 2:case 1:l=t.type,n("152",l.displayName||l.name||"Component")}return i(t,r)}}function Oe(t,e,i,r,o){function a(t,e,i){var n=e.expirationTime;e.child=null===t?Or(e,null,i,n):Ir(e,t.child,i,n)}function s(t,e){var i=e.ref;null===i||t&&t.ref===i||(e.effectTag|=128)}function l(t,e,i,n){if(s(t,e),!i)return n&&re(e,!1),c(t,e);i=e.stateNode,Vn.current=e;var r=i.render();return e.effectTag|=1,a(t,e,r),e.memoizedState=i.state,e.memoizedProps=i.props,n&&re(e,!0),e.child}function u(t){var e=t.stateNode;e.pendingContext?ee(t,e.pendingContext,e.pendingContext!==e.context):e.context&&ee(t,e.context,!1),_(t,e.containerInfo)}function c(t,e){if(null!==t&&e.child!==t.child&&n("153"),null!==e.child){t=e.child;var i=ae(t,t.pendingProps,t.expirationTime);for(e.child=i,i.return=e;null!==t.sibling;)t=t.sibling,i=i.sibling=ae(t,t.pendingProps,t.expirationTime),i.return=e;i.sibling=null}return e.child}function h(t,e){switch(e.tag){case 3:u(e);break;case 2:ne(e);break;case 4:_(e,e.stateNode.containerInfo)}return null}var d=t.shouldSetTextContent,f=t.useSyncScheduling,p=t.shouldDeprioritizeSubtree,g=e.pushHostContext,_=e.pushHostContainer,y=i.enterHydrationState,v=i.resetHydrationState,m=i.tryToClaimNextHydratableInstance;t=xe(r,o,function(t,e){t.memoizedProps=e},function(t,e){t.memoizedState=e});var E=t.adoptClassInstance,T=t.constructClassInstance,S=t.mountClassInstance,x=t.updateClassInstance;return{beginWork:function(t,e,i){if(0===e.expirationTime||e.expirationTime>i)return h(t,e);switch(e.tag){case 0:null!==t&&n("155");var r=e.type,o=e.pendingProps,C=Jt(e);return C=Qt(e,C),r=r(o,C),e.effectTag|=1,"object"===("undefined"===typeof r?"undefined":vi(r))&&null!==r&&"function"===typeof r.render?(e.tag=2,o=ne(e),E(e,r),S(e,i),e=l(t,e,!0,o)):(e.tag=1,a(t,e,r),e.memoizedProps=o,e=e.child),e;case 1:t:{if(o=e.type,i=e.pendingProps,r=e.memoizedProps,gr.current)null===i&&(i=r);else if(null===i||r===i){e=c(t,e);break t}r=Jt(e),r=Qt(e,r),o=o(i,r),e.effectTag|=1,a(t,e,o),e.memoizedProps=i,e=e.child}return e;case 2:return o=ne(e),r=void 0,null===t?e.stateNode?n("153"):(T(e,e.pendingProps),S(e,i),r=!0):r=x(t,e,i),l(t,e,r,o);case 3:return u(e),o=e.updateQueue,null!==o?(r=e.memoizedState,o=Te(t,e,o,null,null,i),r===o?(v(),e=c(t,e)):(r=o.element,C=e.stateNode,(null===t||null===t.child)&&C.hydrate&&y(e)?(e.effectTag|=2,e.child=Or(e,null,r,i)):(v(),a(t,e,r)),e.memoizedState=o,e=e.child)):(v(),e=c(t,e)),e;case 5:g(e),null===t&&m(e),o=e.type;var R=e.memoizedProps;return r=e.pendingProps,null===r&&null===(r=R)&&n("154"),C=null!==t?t.memoizedProps:null,gr.current||null!==r&&R!==r?(R=r.children,d(o,r)?R=null:C&&d(o,C)&&(e.effectTag|=16),s(t,e),2147483647!==i&&!f&&p(o,r)?(e.expirationTime=2147483647,e=null):(a(t,e,R),e.memoizedProps=r,e=e.child)):e=c(t,e),e;case 6:return null===t&&m(e),t=e.pendingProps,null===t&&(t=e.memoizedProps),e.memoizedProps=t,null;case 8:e.tag=7;case 7:return o=e.pendingProps,gr.current?null===o&&null===(o=t&&t.memoizedProps)&&n("154"):null!==o&&e.memoizedProps!==o||(o=e.memoizedProps),r=o.children,e.stateNode=null===t?Or(e,e.stateNode,r,i):Ir(e,e.stateNode,r,i),e.memoizedProps=o,e.stateNode;case 9:return null;case 4:t:{if(_(e,e.stateNode.containerInfo),o=e.pendingProps,gr.current)null===o&&null==(o=t&&t.memoizedProps)&&n("154");else if(null===o||e.memoizedProps===o){e=c(t,e);break t}null===t?e.child=Ir(e,null,o,i):a(t,e,o),e.memoizedProps=o,e=e.child}return e;case 10:t:{if(i=e.pendingProps,gr.current)null===i&&(i=e.memoizedProps);else if(null===i||e.memoizedProps===i){e=c(t,e);break t}a(t,e,i),e.memoizedProps=i,e=e.child}return e;default:n("156")}},beginFailedWork:function(t,e,i){switch(e.tag){case 2:ne(e);break;case 3:u(e);break;default:n("157")}return e.effectTag|=64,null===t?e.child=null:e.child!==t.child&&(e.child=t.child),0===e.expirationTime||e.expirationTime>i?h(t,e):(e.firstEffect=null,e.lastEffect=null,e.child=null===t?Or(e,null,null,i):Ir(e,t.child,null,i),2===e.tag&&(t=e.stateNode,e.memoizedProps=t.props,e.memoizedState=t.state),e.child)}}}function Pe(t,e,i){function r(t){t.effectTag|=4}var o=t.createInstance,a=t.createTextInstance,s=t.appendInitialChild,l=t.finalizeInitialChildren,u=t.prepareUpdate,c=t.persistence,h=e.getRootHostContainer,d=e.popHostContext,f=e.getHostContext,p=e.popHostContainer,g=i.prepareToHydrateHostInstance,_=i.prepareToHydrateHostTextInstance,y=i.popHydrationState,v=void 0,m=void 0,E=void 0;return t.mutation?(v=function(){},m=function(t,e,i){(e.updateQueue=i)&&r(e)},E=function(t,e,i,n){i!==n&&r(e)}):n(c?"235":"236"),{completeWork:function(t,e,i){var c=e.pendingProps;switch(null===c?c=e.memoizedProps:2147483647===e.expirationTime&&2147483647!==i||(e.pendingProps=null),e.tag){case 1:return null;case 2:return te(e),null;case 3:return p(e),qt(gr,e),qt(pr,e),c=e.stateNode,c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),null!==t&&null!==t.child||(y(e),e.effectTag&=-3),v(e),null;case 5:d(e),i=h();var T=e.type;if(null!==t&&null!=e.stateNode){var S=t.memoizedProps,x=e.stateNode,C=f();x=u(x,T,S,c,i,C),m(t,e,x,T,S,c,i),t.ref!==e.ref&&(e.effectTag|=128)}else{if(!c)return null===e.stateNode&&n("166"),null;if(t=f(),y(e))g(e,i,t)&&r(e);else{t=o(T,c,i,t,e);t:for(S=e.child;null!==S;){if(5===S.tag||6===S.tag)s(t,S.stateNode);else if(4!==S.tag&&null!==S.child){S.child.return=S,S=S.child;continue}if(S===e)break;for(;null===S.sibling;){if(null===S.return||S.return===e)break t;S=S.return}S.sibling.return=S.return,S=S.sibling}l(t,T,c,i)&&r(e),e.stateNode=t}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)E(t,e,t.memoizedProps,c);else{if("string"!==typeof c)return null===e.stateNode&&n("166"),null;t=h(),i=f(),y(e)?_(e)&&r(e):e.stateNode=a(c,t,i,e)}return null;case 7:(c=e.memoizedProps)||n("165"),e.tag=8,T=[];t:for((S=e.stateNode)&&(S.return=e);null!==S;){if(5===S.tag||6===S.tag||4===S.tag)n("247");else if(9===S.tag)T.push(S.type);else if(null!==S.child){S.child.return=S,S=S.child;continue}for(;null===S.sibling;){if(null===S.return||S.return===e)break t;S=S.return}S.sibling.return=S.return,S=S.sibling}return S=c.handler,c=S(c.props,T),e.child=Ir(e,null!==t?t.child:null,c,i),e.child;case 8:return e.tag=7,null;case 9:case 10:return null;case 4:return p(e),v(e),null;case 0:n("167");default:n("156")}}}}function we(t,e){function i(t){var i=t.ref;if(null!==i)try{i(null)}catch(i){e(t,i)}}function r(t){switch("function"===typeof _e&&_e(t),t.tag){case 2:i(t);var n=t.stateNode;if("function"===typeof n.componentWillUnmount)try{n.props=t.memoizedProps,n.state=t.memoizedState,n.componentWillUnmount()}catch(i){e(t,i)}break;case 5:i(t);break;case 7:o(t.stateNode);break;case 4:u&&s(t)}}function o(t){for(var e=t;;)if(r(e),null===e.child||u&&4===e.tag){if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return;e=e.return}e.sibling.return=e.return,e=e.sibling}else e.child.return=e,e=e.child}function a(t){return 5===t.tag||3===t.tag||4===t.tag}function s(t){for(var e=t,i=!1,a=void 0,s=void 0;;){if(!i){i=e.return;t:for(;;){switch(null===i&&n("160"),i.tag){case 5:a=i.stateNode,s=!1;break t;case 3:case 4:a=i.stateNode.containerInfo,s=!0;break t}i=i.return}i=!0}if(5===e.tag||6===e.tag)o(e),s?m(a,e.stateNode):v(a,e.stateNode);else if(4===e.tag?a=e.stateNode.containerInfo:r(e),null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return;e=e.return,4===e.tag&&(i=!1)}e.sibling.return=e.return,e=e.sibling}}var l=t.getPublicInstance,u=t.mutation;t=t.persistence,u||n(t?"235":"236");var c=u.commitMount,h=u.commitUpdate,d=u.resetTextContent,f=u.commitTextUpdate,p=u.appendChild,g=u.appendChildToContainer,_=u.insertBefore,y=u.insertInContainerBefore,v=u.removeChild,m=u.removeChildFromContainer;return{commitResetTextContent:function(t){d(t.stateNode)},commitPlacement:function(t){t:{for(var e=t.return;null!==e;){if(a(e)){var i=e;break t}e=e.return}n("160"),i=void 0}var r=e=void 0;switch(i.tag){case 5:e=i.stateNode,r=!1;break;case 3:case 4:e=i.stateNode.containerInfo,r=!0;break;default:n("161")}16&i.effectTag&&(d(e),i.effectTag&=-17);t:e:for(i=t;;){for(;null===i.sibling;){if(null===i.return||a(i.return)){i=null;break t}i=i.return}for(i.sibling.return=i.return,i=i.sibling;5!==i.tag&&6!==i.tag;){if(2&i.effectTag)continue e;if(null===i.child||4===i.tag)continue e;i.child.return=i,i=i.child}if(!(2&i.effectTag)){i=i.stateNode;break t}}for(var o=t;;){if(5===o.tag||6===o.tag)i?r?y(e,o.stateNode,i):_(e,o.stateNode,i):r?g(e,o.stateNode):p(e,o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},commitDeletion:function(t){s(t),t.return=null,t.child=null,t.alternate&&(t.alternate.child=null,t.alternate.return=null)},commitWork:function(t,e){switch(e.tag){case 2:break;case 5:var i=e.stateNode;if(null!=i){var r=e.memoizedProps;t=null!==t?t.memoizedProps:r;var o=e.type,a=e.updateQueue;e.updateQueue=null,null!==a&&h(i,a,o,t,r,e)}break;case 6:null===e.stateNode&&n("162"),i=e.memoizedProps,f(e.stateNode,null!==t?t.memoizedProps:i,i);break;case 3:break;default:n("163")}},commitLifeCycles:function(t,e){switch(e.tag){case 2:var i=e.stateNode;if(4&e.effectTag)if(null===t)i.props=e.memoizedProps,i.state=e.memoizedState,i.componentDidMount();else{var r=t.memoizedProps;t=t.memoizedState,i.props=e.memoizedProps,i.state=e.memoizedState,i.componentDidUpdate(r,t)}e=e.updateQueue,null!==e&&Se(e,i);break;case 3:i=e.updateQueue,null!==i&&Se(i,null!==e.child?e.child.stateNode:null);break;case 5:i=e.stateNode,null===t&&4&e.effectTag&&c(i,e.type,e.memoizedProps,e);break;case 6:case 4:break;default:n("163")}},commitAttachRef:function(t){var e=t.ref;if(null!==e){var i=t.stateNode;switch(t.tag){case 5:e(l(i));break;default:e(i)}}},commitDetachRef:function(t){null!==(t=t.ref)&&t(null)}}}function Le(t){function e(t){return t===Pr&&n("174"),t}var i=t.getChildHostContext,r=t.getRootHostContext,o={current:Pr},a={current:Pr},s={current:Pr};return{getHostContext:function(){return e(o.current)},getRootHostContainer:function(){return e(s.current)},popHostContainer:function(t){qt(o,t),qt(a,t),qt(s,t)},popHostContext:function(t){a.current===t&&(qt(o,t),qt(a,t))},pushHostContainer:function(t,e){Zt(s,e,t),e=r(e),Zt(a,t,t),Zt(o,e,t)},pushHostContext:function(t){var n=e(s.current),r=e(o.current);n=i(r,t.type,n),r!==n&&(Zt(a,t,t),Zt(o,n,t))},resetHostContainer:function(){o.current=Pr,s.current=Pr}}}function Ae(t){function e(t,e){var i=new oe(5,null,0);i.type="DELETED",i.stateNode=e,i.return=t,i.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=i,t.lastEffect=i):t.firstEffect=t.lastEffect=i}function i(t,e){switch(t.tag){case 5:return null!==(e=a(e,t.type,t.pendingProps))&&(t.stateNode=e,!0);case 6:return null!==(e=s(e,t.pendingProps))&&(t.stateNode=e,!0);default:return!1}}function r(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag;)t=t.return;d=t}var o=t.shouldSetTextContent;if(!(t=t.hydration))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){n("175")},prepareToHydrateHostTextInstance:function(){n("176")},popHydrationState:function(){return!1}};var a=t.canHydrateInstance,s=t.canHydrateTextInstance,l=t.getNextHydratableSibling,u=t.getFirstHydratableChild,c=t.hydrateInstance,h=t.hydrateTextInstance,d=null,f=null,p=!1;return{enterHydrationState:function(t){return f=u(t.stateNode.containerInfo),d=t,p=!0},resetHydrationState:function(){f=d=null,p=!1},tryToClaimNextHydratableInstance:function(t){if(p){var n=f;if(n){if(!i(t,n)){if(!(n=l(n))||!i(t,n))return t.effectTag|=2,p=!1,void(d=t);e(d,f)}d=t,f=u(n)}else t.effectTag|=2,p=!1,d=t}},prepareToHydrateHostInstance:function(t,e,i){return e=c(t.stateNode,t.type,t.memoizedProps,e,i,t),t.updateQueue=e,null!==e},prepareToHydrateHostTextInstance:function(t){return h(t.stateNode,t.memoizedProps,t)},popHydrationState:function(t){if(t!==d)return!1;if(!p)return r(t),p=!0,!1;var i=t.type;if(5!==t.tag||"head"!==i&&"body"!==i&&!o(i,t.memoizedProps))for(i=f;i;)e(t,i),i=l(i);return r(t),f=d?l(t.stateNode):null,!0}}}function Me(t){function e(t){ot=q=!0;var e=t.stateNode;if(e.current===t&&n("177"),e.isReadyForCommit=!1,Vn.current=null,1<t.effectTag)if(null!==t.lastEffect){t.lastEffect.nextEffect=t;var i=t.firstEffect}else i=t;else i=t.firstEffect;for(W(),$=i;null!==$;){var r=!1,o=void 0;try{for(;null!==$;){var a=$.effectTag;if(16&a&&M($),128&a){var s=$.alternate;null!==s&&U(s)}switch(-242&a){case 2:F($),$.effectTag&=-3;break;case 6:F($),$.effectTag&=-3,D($.alternate,$);break;case 4:D($.alternate,$);break;case 8:at=!0,N($),at=!1}$=$.nextEffect}}catch(t){r=!0,o=t}r&&(null===$&&n("178"),l($,o),null!==$&&($=$.nextEffect))}for(z(),e.current=t,$=i;null!==$;){i=!1,r=void 0;try{for(;null!==$;){var u=$.effectTag;if(36&u&&k($.alternate,$),128&u&&G($),64&u)switch(o=$,a=void 0,null!==tt&&(a=tt.get(o),tt.delete(o),null==a&&null!==o.alternate&&(o=o.alternate,a=tt.get(o),tt.delete(o))),null==a&&n("184"),o.tag){case 2:o.stateNode.componentDidCatch(a.error,{componentStack:a.componentStack});break;case 3:null===nt&&(nt=a.error);break;default:n("157")}var c=$.nextEffect;$.nextEffect=null,$=c}}catch(t){i=!0,r=t}i&&(null===$&&n("178"),l($,r),null!==$&&($=$.nextEffect))}return q=ot=!1,"function"===typeof ge&&ge(t.stateNode),it&&(it.forEach(g),it=null),null!==nt&&(t=nt,nt=null,x(t)),e=e.current.expirationTime,0===e&&(et=tt=null),e}function i(t){for(;;){var e=A(t.alternate,t,Q),i=t.return,n=t.sibling,r=t;if(2147483647===Q||2147483647!==r.expirationTime){if(2!==r.tag&&3!==r.tag)var o=0;else o=r.updateQueue,o=null===o?0:o.expirationTime;for(var a=r.child;null!==a;)0!==a.expirationTime&&(0===o||o>a.expirationTime)&&(o=a.expirationTime),a=a.sibling;r.expirationTime=o}if(null!==e)return e;if(null!==i&&(null===i.firstEffect&&(i.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==i.lastEffect&&(i.lastEffect.nextEffect=t.firstEffect),i.lastEffect=t.lastEffect),1<t.effectTag&&(null!==i.lastEffect?i.lastEffect.nextEffect=t:i.firstEffect=t,i.lastEffect=t)),null!==n)return n;if(null===i){t.stateNode.isReadyForCommit=!0;break}t=i}return null}function r(t){var e=w(t.alternate,t,Q);return null===e&&(e=i(t)),Vn.current=null,e}function o(t){var e=L(t.alternate,t,Q);return null===e&&(e=i(t)),Vn.current=null,e}function a(t){if(null!==tt){if(!(0===Q||Q>t))if(Q<=H)for(;null!==Z;)Z=u(Z)?o(Z):r(Z);else for(;null!==Z&&!S();)Z=u(Z)?o(Z):r(Z)}else if(!(0===Q||Q>t))if(Q<=H)for(;null!==Z;)Z=r(Z);else for(;null!==Z&&!S();)Z=r(Z)}function s(t,e){if(q&&n("243"),q=!0,t.isReadyForCommit=!1,t!==J||e!==Q||null===Z){for(;-1<fr;)dr[fr]=null,fr--;_r=Oi,pr.current=Oi,gr.current=!1,O(),J=t,Q=e,Z=ae(J.current,null,e)}var i=!1,r=null;try{a(e)}catch(t){i=!0,r=t}for(;i;){if(rt){nt=r;break}var s=Z;if(null===s)rt=!0;else{var u=l(s,r);if(null===u&&n("183"),!rt){try{for(i=u,r=e,u=i;null!==s;){switch(s.tag){case 2:te(s);break;case 5:I(s);break;case 3:b(s);break;case 4:b(s)}if(s===u||s.alternate===u)break;s=s.return}Z=o(i),a(r)}catch(t){i=!0,r=t;continue}break}}}return e=nt,rt=q=!1,nt=null,null!==e&&x(e),t.isReadyForCommit?t.current.alternate:null}function l(t,e){var i=Vn.current=null,n=!1,r=!1,o=null;if(3===t.tag)i=t,c(t)&&(rt=!0);else for(var a=t.return;null!==a&&null===i;){if(2===a.tag?"function"===typeof a.stateNode.componentDidCatch&&(n=!0,o=Tt(a),i=a,r=!0):3===a.tag&&(i=a),c(a)){if(at||null!==it&&(it.has(a)||null!==a.alternate&&it.has(a.alternate)))return null;i=null,r=!1}a=a.return}if(null!==i){null===et&&(et=new Set),et.add(i);var s="";a=t;do{t:switch(a.tag){case 0:case 1:case 2:case 5:var l=a._debugOwner,u=a._debugSource,h=Tt(a),d=null;l&&(d=Tt(l)),l=u,h="\n    in "+(h||"Unknown")+(l?" (at "+l.fileName.replace(/^.*[\\\/]/,"")+":"+l.lineNumber+")":d?" (created by "+d+")":"");break t;default:h=""}s+=h,a=a.return}while(a);a=s,t=Tt(t),null===tt&&(tt=new Map),e={componentName:t,componentStack:a,error:e,errorBoundary:n?i.stateNode:null,errorBoundaryFound:n,errorBoundaryName:o,willRetry:r},tt.set(i,e);try{var f=e.error;f&&f.suppressReactErrorLogging||console.error(f)}catch(t){t&&t.suppressReactErrorLogging||console.error(t)}return ot?(null===it&&(it=new Set),it.add(i)):g(i),i}return null===nt&&(nt=e),null}function u(t){return null!==tt&&(tt.has(t)||null!==t.alternate&&tt.has(t.alternate))}function c(t){return null!==et&&(et.has(t)||null!==t.alternate&&et.has(t.alternate))}function h(){return 20*(1+((_()+100)/20|0))}function d(t){return 0!==K?K:q?ot?1:Q:!Y||1&t.internalContextTag?h():1}function f(t,e){return p(t,e,!1)}function p(t,e){for(;null!==t;){if((0===t.expirationTime||t.expirationTime>e)&&(t.expirationTime=e),null!==t.alternate&&(0===t.alternate.expirationTime||t.alternate.expirationTime>e)&&(t.alternate.expirationTime=e),null===t.return){if(3!==t.tag)break;var i=t.stateNode;!q&&i===J&&e<Q&&(Z=J=null,Q=0);var r=i,o=e;if(St>Et&&n("185"),null===r.nextScheduledRoot)r.remainingExpirationTime=o,null===lt?(st=lt=r,r.nextScheduledRoot=r):(lt=lt.nextScheduledRoot=r,lt.nextScheduledRoot=st);else{var a=r.remainingExpirationTime;(0===a||o<a)&&(r.remainingExpirationTime=o)}ht||(vt?mt&&(dt=r,ft=1,T(dt,ft)):1===o?E(1,null):y(o)),!q&&i===J&&e<Q&&(Z=J=null,Q=0)}t=t.return}}function g(t){p(t,1,!0)}function _(){return H=2+((j()-X)/10|0)}function y(t){if(0!==ut){if(t>ut)return;V(ct)}var e=j()-X;ut=t,ct=B(m,{timeout:10*(t-2)-e})}function v(){var t=0,e=null;if(null!==lt)for(var i=lt,r=st;null!==r;){var o=r.remainingExpirationTime;if(0===o){if((null===i||null===lt)&&n("244"),r===r.nextScheduledRoot){st=lt=r.nextScheduledRoot=null;break}if(r===st)st=o=r.nextScheduledRoot,lt.nextScheduledRoot=o,r.nextScheduledRoot=null;else{if(r===lt){lt=i,lt.nextScheduledRoot=st,r.nextScheduledRoot=null;break}i.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=i.nextScheduledRoot}else{if((0===t||o<t)&&(t=o,e=r),r===lt)break;i=r,r=r.nextScheduledRoot}}i=dt,null!==i&&i===e?St++:St=0,dt=e,ft=t}function m(t){E(0,t)}function E(t,e){for(yt=e,v();null!==dt&&0!==ft&&(0===t||ft<=t)&&!pt;)T(dt,ft),v();if(null!==yt&&(ut=0,ct=-1),0!==ft&&y(ft),yt=null,pt=!1,St=0,gt)throw t=_t,_t=null,gt=!1,t}function T(t,i){if(ht&&n("245"),ht=!0,i<=_()){var r=t.finishedWork;null!==r?(t.finishedWork=null,t.remainingExpirationTime=e(r)):(t.finishedWork=null,null!==(r=s(t,i))&&(t.remainingExpirationTime=e(r)))}else r=t.finishedWork,null!==r?(t.finishedWork=null,t.remainingExpirationTime=e(r)):(t.finishedWork=null,null!==(r=s(t,i))&&(S()?t.finishedWork=r:t.remainingExpirationTime=e(r)));ht=!1}function S(){return!(null===yt||yt.timeRemaining()>xt)&&(pt=!0)}function x(t){null===dt&&n("246"),dt.remainingExpirationTime=0,gt||(gt=!0,_t=t)}var C=Le(t),R=Ae(t),b=C.popHostContainer,I=C.popHostContext,O=C.resetHostContainer,P=Oe(t,C,R,f,d),w=P.beginWork,L=P.beginFailedWork,A=Pe(t,C,R).completeWork;C=we(t,l);var M=C.commitResetTextContent,F=C.commitPlacement,N=C.commitDeletion,D=C.commitWork,k=C.commitLifeCycles,G=C.commitAttachRef,U=C.commitDetachRef,j=t.now,B=t.scheduleDeferredCallback,V=t.cancelDeferredCallback,Y=t.useSyncScheduling,W=t.prepareForCommit,z=t.resetAfterCommit,X=j(),H=2,K=0,q=!1,Z=null,J=null,Q=0,$=null,tt=null,et=null,it=null,nt=null,rt=!1,ot=!1,at=!1,st=null,lt=null,ut=0,ct=-1,ht=!1,dt=null,ft=0,pt=!1,gt=!1,_t=null,yt=null,vt=!1,mt=!1,Et=1e3,St=0,xt=1;return{computeAsyncExpiration:h,computeExpirationForFiber:d,scheduleWork:f,batchedUpdates:function(t,e){var i=vt;vt=!0;try{return t(e)}finally{(vt=i)||ht||E(1,null)}},unbatchedUpdates:function(t){if(vt&&!mt){mt=!0;try{return t()}finally{mt=!1}}return t()},flushSync:function(t){var e=vt;vt=!0;try{t:{var i=K;K=1;try{var r=t();break t}finally{K=i}r=void 0}return r}finally{vt=e,ht&&n("187"),E(1,null)}},deferredUpdates:function(t){var e=K;K=h();try{return t()}finally{K=e}}}}function Fe(t){function e(t){return t=bt(t),null===t?null:t.stateNode}var i=t.getPublicInstance;t=Me(t);var r=t.computeAsyncExpiration,o=t.computeExpirationForFiber,a=t.scheduleWork;return{createContainer:function(t,e){var i=new oe(3,null,0);return t={current:i,containerInfo:t,pendingChildren:null,remainingExpirationTime:0,isReadyForCommit:!1,finishedWork:null,context:null,pendingContext:null,hydrate:e,nextScheduledRoot:null},i.stateNode=t},updateContainer:function(t,e,i,s){var l=e.current;if(i){i=i._reactInternalFiber;var u;t:{for(2===St(i)&&2===i.tag||n("170"),u=i;3!==u.tag;){if($t(u)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}(u=u.return)||n("171")}u=u.stateNode.context}i=$t(i)?ie(i,u):u}else i=Oi;null===e.context?e.context=i:e.pendingContext=i,e=s,e=void 0===e?null:e,s=null!=t&&null!=t.type&&null!=t.type.prototype&&!0===t.type.prototype.unstable_isAsyncReactComponent?r():o(l),me(l,{expirationTime:s,partialState:{element:t},callback:e,isReplace:!1,isForced:!1,nextCallback:null,next:null}),a(l,s)},batchedUpdates:t.batchedUpdates,unbatchedUpdates:t.unbatchedUpdates,deferredUpdates:t.deferredUpdates,flushSync:t.flushSync,getPublicRootInstance:function(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return i(t.child.stateNode);default:return t.child.stateNode}},findHostInstance:e,findHostInstanceWithNoPortals:function(t){return t=It(t),null===t?null:t.stateNode},injectIntoDevTools:function(t){var i=t.findFiberByHostInstance;return pe(Ti({},t,{findHostInstanceByFiber:function(t){return e(t)},findFiberByHostInstance:function(t){return i?i(t):null}}))}}}function Ne(t,e,i){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:xr,key:null==n?null:""+n,children:t,containerInfo:e,implementation:i}}function De(t){return!!qr.hasOwnProperty(t)||!Kr.hasOwnProperty(t)&&(Hr.test(t)?qr[t]=!0:(Kr[t]=!0,!1))}function ke(t,e,i){var n=a(e);if(n&&o(e,i)){var r=n.mutationMethod;r?r(t,i):null==i||n.hasBooleanValue&&!i||n.hasNumericValue&&isNaN(i)||n.hasPositiveNumericValue&&1>i||n.hasOverloadedBooleanValue&&!1===i?Ue(t,e):n.mustUseProperty?t[n.propertyName]=i:(e=n.attributeName,(r=n.attributeNamespace)?t.setAttributeNS(r,e,""+i):n.hasBooleanValue||n.hasOverloadedBooleanValue&&!0===i?t.setAttribute(e,""):t.setAttribute(e,""+i))}else Ge(t,e,o(e,i)?i:null)}function Ge(t,e,i){De(e)&&(null==i?t.removeAttribute(e):t.setAttribute(e,""+i))}function Ue(t,e){var i=a(e);i?(e=i.mutationMethod)?e(t,void 0):i.mustUseProperty?t[i.propertyName]=!i.hasBooleanValue&&"":t.removeAttribute(i.attributeName):t.removeAttribute(e)}function je(t,e){var i=e.value,n=e.checked;return Ti({type:void 0,step:void 0,min:void 0,max:void 0},e,{defaultChecked:void 0,defaultValue:void 0,value:null!=i?i:t._wrapperState.initialValue,checked:null!=n?n:t._wrapperState.initialChecked})}function Be(t,e){var i=e.defaultValue;t._wrapperState={initialChecked:null!=e.checked?e.checked:e.defaultChecked,initialValue:null!=e.value?e.value:i,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function Ve(t,e){null!=(e=e.checked)&&ke(t,"checked",e)}function Ye(t,e){Ve(t,e);var i=e.value;null!=i?0===i&&""===t.value?t.value="0":"number"===e.type?(e=parseFloat(t.value)||0,(i!=e||i==e&&t.value!=i)&&(t.value=""+i)):t.value!==""+i&&(t.value=""+i):(null==e.value&&null!=e.defaultValue&&t.defaultValue!==""+e.defaultValue&&(t.defaultValue=""+e.defaultValue),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked))}function We(t,e){switch(e.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":t.value="",t.value=t.defaultValue;break;default:t.value=t.value}e=t.name,""!==e&&(t.name=""),t.defaultChecked=!t.defaultChecked,t.defaultChecked=!t.defaultChecked,""!==e&&(t.name=e)}function ze(t){var e="";return mi.Children.forEach(t,function(t){null==t||"string"!==typeof t&&"number"!==typeof t||(e+=t)}),e}function Xe(t,e){return t=Ti({children:void 0},e),(e=ze(e.children))&&(t.children=e),t}function He(t,e,i,n){if(t=t.options,e){e={};for(var r=0;r<i.length;r++)e["$"+i[r]]=!0;for(i=0;i<t.length;i++)r=e.hasOwnProperty("$"+t[i].value),t[i].selected!==r&&(t[i].selected=r),r&&n&&(t[i].defaultSelected=!0)}else{for(i=""+i,e=null,r=0;r<t.length;r++){if(t[r].value===i)return t[r].selected=!0,void(n&&(t[r].defaultSelected=!0));null!==e||t[r].disabled||(e=t[r])}null!==e&&(e.selected=!0)}}function Ke(t,e){var i=e.value;t._wrapperState={initialValue:null!=i?i:e.defaultValue,wasMultiple:!!e.multiple}}function qe(t,e){return null!=e.dangerouslySetInnerHTML&&n("91"),Ti({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Ze(t,e){var i=e.value;null==i&&(i=e.defaultValue,e=e.children,null!=e&&(null!=i&&n("92"),Array.isArray(e)&&(1>=e.length||n("93"),e=e[0]),i=""+e),null==i&&(i="")),t._wrapperState={initialValue:""+i}}function Je(t,e){var i=e.value;null!=i&&(i=""+i,i!==t.value&&(t.value=i),null==e.defaultValue&&(t.defaultValue=i)),null!=e.defaultValue&&(t.defaultValue=e.defaultValue)}function Qe(t){var e=t.textContent;e===t._wrapperState.initialValue&&(t.value=e)}function $e(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ti(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?$e(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}function ei(t,e){if(e){var i=t.firstChild;if(i&&i===t.lastChild&&3===i.nodeType)return void(i.nodeValue=e)}t.textContent=e}function ii(t,e){t=t.style;for(var i in e)if(e.hasOwnProperty(i)){var n=0===i.indexOf("--"),r=i,o=e[i];r=null==o||"boolean"===typeof o||""===o?"":n||"number"!==typeof o||0===o||$r.hasOwnProperty(r)&&$r[r]?(""+o).trim():o+"px","float"===i&&(i="cssFloat"),n?t.setProperty(i,r):t[i]=r}}function ni(t,e,i){e&&(eo[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML)&&n("137",t,i()),null!=e.dangerouslySetInnerHTML&&(null!=e.children&&n("60"),"object"===vi(e.dangerouslySetInnerHTML)&&"__html"in e.dangerouslySetInnerHTML||n("61")),null!=e.style&&"object"!==vi(e.style)&&n("62",i()))}function ri(t,e){if(-1===t.indexOf("-"))return"string"===typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function oi(t,e){t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument;var i=Nt(t);e=Zi[e];for(var n=0;n<e.length;n++){var r=e[n];i.hasOwnProperty(r)&&i[r]||("topScroll"===r?Lt("topScroll","scroll",t):"topFocus"===r||"topBlur"===r?(Lt("topFocus","focus",t),Lt("topBlur","blur",t),i.topBlur=!0,i.topFocus=!0):"topCancel"===r?(it("cancel",!0)&&Lt("topCancel","cancel",t),i.topCancel=!0):"topClose"===r?(it("close",!0)&&Lt("topClose","close",t),i.topClose=!0):Zn.hasOwnProperty(r)&&wt(r,Zn[r],t),i[r]=!0)}}function ai(t,e,i,n){return i=9===i.nodeType?i:i.ownerDocument,n===io&&(n=$e(t)),n===io?"script"===t?(t=i.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):t="string"===typeof e.is?i.createElement(t,{is:e.is}):i.createElement(t):t=i.createElementNS(n,t),t}function si(t,e){return(9===e.nodeType?e:e.ownerDocument).createTextNode(t)}function li(t,e,i,n){var r=ri(e,i);switch(e){case"iframe":case"object":wt("topLoad","load",t);var o=i;break;case"video":case"audio":for(o in ro)ro.hasOwnProperty(o)&&wt(o,ro[o],t);o=i;break;case"source":wt("topError","error",t),o=i;break;case"img":case"image":wt("topError","error",t),wt("topLoad","load",t),o=i;break;case"form":wt("topReset","reset",t),wt("topSubmit","submit",t),o=i;break;case"details":wt("topToggle","toggle",t),o=i;break;case"input":Be(t,i),o=je(t,i),wt("topInvalid","invalid",t),oi(n,"onChange");break;case"option":o=Xe(t,i);break;case"select":Ke(t,i),o=Ti({},i,{value:void 0}),wt("topInvalid","invalid",t),oi(n,"onChange");break;case"textarea":Ze(t,i),o=qe(t,i),wt("topInvalid","invalid",t),oi(n,"onChange");break;default:o=i}ni(e,o,no);var a,s=o;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];"style"===a?ii(t,l,no):"dangerouslySetInnerHTML"===a?null!=(l=l?l.__html:void 0)&&Qr(t,l):"children"===a?"string"===typeof l?("textarea"!==e||""!==l)&&ei(t,l):"number"===typeof l&&ei(t,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(qi.hasOwnProperty(a)?null!=l&&oi(n,a):r?Ge(t,a,l):null!=l&&ke(t,a,l))}switch(e){case"input":ot(t),We(t,i);break;case"textarea":ot(t),Qe(t,i);break;case"option":null!=i.value&&t.setAttribute("value",i.value);break;case"select":t.multiple=!!i.multiple,e=i.value,null!=e?He(t,!!i.multiple,e,!1):null!=i.defaultValue&&He(t,!!i.multiple,i.defaultValue,!0);break;default:"function"===typeof o.onClick&&(t.onclick=Si)}}function ui(t,e,i,n,r){var o=null;switch(e){case"input":i=je(t,i),n=je(t,n),o=[];break;case"option":i=Xe(t,i),n=Xe(t,n),o=[];break;case"select":i=Ti({},i,{value:void 0}),n=Ti({},n,{value:void 0}),o=[];break;case"textarea":i=qe(t,i),n=qe(t,n),o=[];break;default:"function"!==typeof i.onClick&&"function"===typeof n.onClick&&(t.onclick=Si)}ni(e,n,no);var a,s;t=null;for(a in i)if(!n.hasOwnProperty(a)&&i.hasOwnProperty(a)&&null!=i[a])if("style"===a)for(s in e=i[a])e.hasOwnProperty(s)&&(t||(t={}),t[s]="");else"dangerouslySetInnerHTML"!==a&&"children"!==a&&"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(qi.hasOwnProperty(a)?o||(o=[]):(o=o||[]).push(a,null));for(a in n){var l=n[a];if(e=null!=i?i[a]:void 0,n.hasOwnProperty(a)&&l!==e&&(null!=l||null!=e))if("style"===a)if(e){for(s in e)!e.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(t||(t={}),t[s]="");for(s in l)l.hasOwnProperty(s)&&e[s]!==l[s]&&(t||(t={}),t[s]=l[s])}else t||(o||(o=[]),o.push(a,t)),t=l;else"dangerouslySetInnerHTML"===a?(l=l?l.__html:void 0,e=e?e.__html:void 0,null!=l&&e!==l&&(o=o||[]).push(a,""+l)):"children"===a?e===l||"string"!==typeof l&&"number"!==typeof l||(o=o||[]).push(a,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&(qi.hasOwnProperty(a)?(null!=l&&oi(r,a),o||e===l||(o=[])):(o=o||[]).push(a,l))}return t&&(o=o||[]).push("style",t),o}function ci(t,e,i,n,r){"input"===i&&"radio"===r.type&&null!=r.name&&Ve(t,r),ri(i,n),n=ri(i,r);for(var o=0;o<e.length;o+=2){var a=e[o],s=e[o+1];"style"===a?ii(t,s,no):"dangerouslySetInnerHTML"===a?Qr(t,s):"children"===a?ei(t,s):n?null!=s?Ge(t,a,s):t.removeAttribute(a):null!=s?ke(t,a,s):Ue(t,a)}switch(i){case"input":Ye(t,r);break;case"textarea":Je(t,r);break;case"select":t._wrapperState.initialValue=void 0,e=t._wrapperState.wasMultiple,t._wrapperState.wasMultiple=!!r.multiple,i=r.value,null!=i?He(t,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?He(t,!!r.multiple,r.defaultValue,!0):He(t,!!r.multiple,r.multiple?[]:"",!1))}}function hi(t,e,i,n,r){switch(e){case"iframe":case"object":wt("topLoad","load",t);break;case"video":case"audio":for(var o in ro)ro.hasOwnProperty(o)&&wt(o,ro[o],t);break;case"source":wt("topError","error",t);break;case"img":case"image":wt("topError","error",t),wt("topLoad","load",t);break;case"form":wt("topReset","reset",t),wt("topSubmit","submit",t);break;case"details":wt("topToggle","toggle",t);break;case"input":Be(t,i),wt("topInvalid","invalid",t),oi(r,"onChange");break;case"select":Ke(t,i),wt("topInvalid","invalid",t),oi(r,"onChange");break;case"textarea":Ze(t,i),wt("topInvalid","invalid",t),oi(r,"onChange")}ni(e,i,no),n=null;for(var a in i)i.hasOwnProperty(a)&&(o=i[a],"children"===a?"string"===typeof o?t.textContent!==o&&(n=["children",o]):"number"===typeof o&&t.textContent!==""+o&&(n=["children",""+o]):qi.hasOwnProperty(a)&&null!=o&&oi(r,a));switch(e){case"input":ot(t),We(t,i);break;case"textarea":ot(t),Qe(t,i);break;case"select":case"option":break;default:"function"===typeof i.onClick&&(t.onclick=Si)}return n}function di(t,e){return t.nodeValue!==e}function fi(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function pi(t){return!(!(t=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))}function gi(t,e,i,r,o){fi(i)||n("200");var a=i._reactRootContainer;if(a)lo.updateContainer(e,a,t,o);else{if(!(r=r||pi(i)))for(a=void 0;a=i.lastChild;)i.removeChild(a);var s=lo.createContainer(i,r);a=i._reactRootContainer=s,lo.unbatchedUpdates(function(){lo.updateContainer(e,s,t,o)})}return lo.getPublicRootInstance(a)}function _i(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return fi(e)||n("200"),Ne(t,e,null,i)}function yi(t,e){this._reactRootContainer=lo.createContainer(t,e)}var vi="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mi=i(31),Ei=i(208),Ti=i(91),Si=i(69),xi=i(209),Ci=i(210),Ri=i(211),bi=i(212),Ii=i(215),Oi=i(123);mi||n("227");var Pi={children:!0,dangerouslySetInnerHTML:!0,defaultValue:!0,defaultChecked:!0,innerHTML:!0,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,style:!0},wi={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,HAS_STRING_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(t){var e=wi,i=t.Properties||{},o=t.DOMAttributeNamespaces||{},a=t.DOMAttributeNames||{};t=t.DOMMutationMethods||{};for(var s in i){Li.hasOwnProperty(s)&&n("48",s);var l=s.toLowerCase(),u=i[s];l={attributeName:l,attributeNamespace:null,propertyName:s,mutationMethod:null,mustUseProperty:r(u,e.MUST_USE_PROPERTY),hasBooleanValue:r(u,e.HAS_BOOLEAN_VALUE),hasNumericValue:r(u,e.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(u,e.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(u,e.HAS_OVERLOADED_BOOLEAN_VALUE),hasStringBooleanValue:r(u,e.HAS_STRING_BOOLEAN_VALUE)},1>=l.hasBooleanValue+l.hasNumericValue+l.hasOverloadedBooleanValue||n("50",s),a.hasOwnProperty(s)&&(l.attributeName=a[s]),o.hasOwnProperty(s)&&(l.attributeNamespace=o[s]),t.hasOwnProperty(s)&&(l.mutationMethod=t[s]),Li[s]=l}}},Li={},Ai=wi,Mi=Ai.MUST_USE_PROPERTY,Fi=Ai.HAS_BOOLEAN_VALUE,Ni=Ai.HAS_NUMERIC_VALUE,Di=Ai.HAS_POSITIVE_NUMERIC_VALUE,ki=Ai.HAS_OVERLOADED_BOOLEAN_VALUE,Gi=Ai.HAS_STRING_BOOLEAN_VALUE,Ui={Properties:{allowFullScreen:Fi,async:Fi,autoFocus:Fi,autoPlay:Fi,capture:ki,checked:Mi|Fi,cols:Di,contentEditable:Gi,controls:Fi,default:Fi,defer:Fi,disabled:Fi,download:ki,draggable:Gi,formNoValidate:Fi,hidden:Fi,loop:Fi,multiple:Mi|Fi,muted:Mi|Fi,noValidate:Fi,open:Fi,playsInline:Fi,readOnly:Fi,required:Fi,reversed:Fi,rows:Di,rowSpan:Ni,scoped:Fi,seamless:Fi,selected:Mi|Fi,size:Di,start:Ni,span:Di,spellCheck:Gi,style:0,tabIndex:0,itemScope:Fi,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:Gi},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMMutationMethods:{value:function(t,e){if(null==e)return t.removeAttribute("value");"number"!==t.type||!1===t.hasAttribute("value")?t.setAttribute("value",""+e):t.validity&&!t.validity.badInput&&t.ownerDocument.activeElement!==t&&t.setAttribute("value",""+e)}}},ji=Ai.HAS_STRING_BOOLEAN_VALUE,Bi={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Vi={Properties:{autoReverse:ji,externalResourcesRequired:ji,preserveAlpha:ji},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:Bi.xlink,xlinkArcrole:Bi.xlink,xlinkHref:Bi.xlink,xlinkRole:Bi.xlink,xlinkShow:Bi.xlink,xlinkTitle:Bi.xlink,xlinkType:Bi.xlink,xmlBase:Bi.xml,xmlLang:Bi.xml,xmlSpace:Bi.xml}},Yi=/[\-\:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(t){var e=t.replace(Yi,s);Vi.Properties[e]=0,Vi.DOMAttributeNames[e]=t}),Ai.injectDOMPropertyConfig(Ui),Ai.injectDOMPropertyConfig(Vi);var Wi={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(t){"function"!==typeof t.invokeGuardedCallback&&n("197"),l=t.invokeGuardedCallback}},invokeGuardedCallback:function(t,e,i,n,r,o,a,s,u){l.apply(Wi,arguments)},invokeGuardedCallbackAndCatchFirstError:function(t,e,i,n,r,o,a,s,l){if(Wi.invokeGuardedCallback.apply(this,arguments),Wi.hasCaughtError()){var u=Wi.clearCaughtError();Wi._hasRethrowError||(Wi._hasRethrowError=!0,Wi._rethrowError=u)}},rethrowCaughtError:function(){return u.apply(Wi,arguments)},hasCaughtError:function(){return Wi._hasCaughtError},clearCaughtError:function(){if(Wi._hasCaughtError){var t=Wi._caughtError;return Wi._caughtError=null,Wi._hasCaughtError=!1,t}n("198")}},zi=null,Xi={},Hi=[],Ki={},qi={},Zi={},Ji=Object.freeze({plugins:Hi,eventNameDispatchConfigs:Ki,registrationNameModules:qi,registrationNameDependencies:Zi,possibleRegistrationNames:null,injectEventPluginOrder:d,injectEventPluginsByName:f}),Qi=null,$i=null,tn=null,en=null,nn={injectEventPluginOrder:d,injectEventPluginsByName:f},rn=Object.freeze({injection:nn,getListener:E,extractEvents:T,enqueueEvents:S,processEventQueue:x}),on=Math.random().toString(36).slice(2),an="__reactInternalInstance$"+on,sn="__reactEventHandlers$"+on,ln=Object.freeze({precacheFiberNode:function(t,e){e[an]=t},getClosestInstanceFromNode:C,getInstanceFromNode:function(t){return t=t[an],!t||5!==t.tag&&6!==t.tag?null:t},getNodeFromInstance:R,getFiberCurrentPropsFromNode:b,updateFiberProps:function(t,e){t[sn]=e}}),un=Object.freeze({accumulateTwoPhaseDispatches:F,accumulateTwoPhaseDispatchesSkipTarget:function(t){_(t,L)},accumulateEnterLeaveDispatches:N,accumulateDirectDispatches:function(t){_(t,M)}}),cn=null,hn={_root:null,_startText:null,_fallbackText:null},dn="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),fn={type:null,target:null,currentTarget:Si.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};Ti(U.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!==typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=Si.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!==typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=Si.thatReturnsTrue)},persist:function(){this.isPersistent=Si.thatReturnsTrue},isPersistent:Si.thatReturnsFalse,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;for(e=0;e<dn.length;e++)this[dn[e]]=null}}),U.Interface=fn,U.augmentClass=function(t,e){function i(){}i.prototype=this.prototype;var n=new i;Ti(n,t.prototype),t.prototype=n,t.prototype.constructor=t,t.Interface=Ti({},this.Interface,e),t.augmentClass=this.augmentClass,V(t)},V(U),U.augmentClass(Y,{data:null}),U.augmentClass(W,{data:null});var pn=[9,13,27,32],gn=Ei.canUseDOM&&"CompositionEvent"in window,_n=null;Ei.canUseDOM&&"documentMode"in document&&(_n=document.documentMode);var yn;if(yn=Ei.canUseDOM&&"TextEvent"in window&&!_n){var vn=window.opera;yn=!("object"===("undefined"===typeof vn?"undefined":vi(vn))&&"function"===typeof vn.version&&12>=parseInt(vn.version(),10))}var mn,En=yn,Tn=Ei.canUseDOM&&(!gn||_n&&8<_n&&11>=_n),Sn=String.fromCharCode(32),xn={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},Cn=!1,Rn=!1,bn={eventTypes:xn,extractEvents:function(t,e,i,n){var r;if(gn)t:{switch(t){case"topCompositionStart":var o=xn.compositionStart;break t;case"topCompositionEnd":o=xn.compositionEnd;break t;case"topCompositionUpdate":o=xn.compositionUpdate;break t}o=void 0}else Rn?z(t,i)&&(o=xn.compositionEnd):"topKeyDown"===t&&229===i.keyCode&&(o=xn.compositionStart);return o?(Tn&&(Rn||o!==xn.compositionStart?o===xn.compositionEnd&&Rn&&(r=k()):(hn._root=n,hn._startText=G(),Rn=!0)),o=Y.getPooled(o,e,i,n),r?o.data=r:null!==(r=X(i))&&(o.data=r),F(o),r=o):r=null,(t=En?H(t,i):K(t,i))?(e=W.getPooled(xn.beforeInput,e,i,n),e.data=t,F(e)):e=null,[r,e]}},In=null,On=null,Pn=null,wn={injectFiberControlledHostComponent:function(t){In=t}},Ln=Object.freeze({injection:wn,enqueueStateRestore:Z,restoreStateIfNeeded:J}),An=!1,Mn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};Ei.canUseDOM&&(mn=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var Fn={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}},Nn=null,Dn=null,kn=!1;Ei.canUseDOM&&(kn=it("input")&&(!document.documentMode||9<document.documentMode));var Gn={eventTypes:Fn,_isInputEventSupported:kn,extractEvents:function(t,e,i,n){var r=e?R(e):window,o=r.nodeName&&r.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===r.type)var a=ct;else if(tt(r))if(kn)a=_t;else{a=pt;var s=ft}else!(o=r.nodeName)||"input"!==o.toLowerCase()||"checkbox"!==r.type&&"radio"!==r.type||(a=gt);if(a&&(a=a(t,e)))return st(a,i,n);s&&s(t,r,e),"topBlur"===t&&null!=e&&(t=e._wrapperState||r._wrapperState)&&t.controlled&&"number"===r.type&&(t=""+r.value,r.getAttribute("value")!==t&&r.setAttribute("value",t))}};U.augmentClass(yt,{view:null,detail:null});var Un={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};yt.augmentClass(Et,{screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:mt,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)}});var jn={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},Bn={eventTypes:jn,extractEvents:function(t,e,i,n){if("topMouseOver"===t&&(i.relatedTarget||i.fromElement)||"topMouseOut"!==t&&"topMouseOver"!==t)return null;var r=n.window===n?n:(r=n.ownerDocument)?r.defaultView||r.parentWindow:window;if("topMouseOut"===t?(t=e,e=(e=i.relatedTarget||i.toElement)?C(e):null):t=null,t===e)return null;var o=null==t?r:R(t);r=null==e?r:R(e);var a=Et.getPooled(jn.mouseLeave,t,i,n);return a.type="mouseleave",a.target=o,a.relatedTarget=r,i=Et.getPooled(jn.mouseEnter,e,i,n),i.type="mouseenter",i.target=r,i.relatedTarget=o,N(a,i,t,e),[a,i]}},Vn=mi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Yn=[],Wn=!0,zn=void 0,Xn=Object.freeze({get _enabled(){return Wn},get _handleTopLevel(){return zn},setHandleTopLevel:function(t){zn=t},setEnabled:Pt,isEnabled:function(){return Wn},trapBubbledEvent:wt,trapCapturedEvent:Lt,dispatchEvent:At}),Hn={animationend:Mt("Animation","AnimationEnd"),animationiteration:Mt("Animation","AnimationIteration"),animationstart:Mt("Animation","AnimationStart"),transitionend:Mt("Transition","TransitionEnd")},Kn={},qn={};Ei.canUseDOM&&(qn=document.createElement("div").style,"AnimationEvent"in window||(delete Hn.animationend.animation,delete Hn.animationiteration.animation,delete Hn.animationstart.animation),"TransitionEvent"in window||delete Hn.transitionend.transition);var Zn={topAbort:"abort",topAnimationEnd:Ft("animationend")||"animationend",topAnimationIteration:Ft("animationiteration")||"animationiteration",topAnimationStart:Ft("animationstart")||"animationstart",topBlur:"blur",topCancel:"cancel",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topClose:"close",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoad:"load",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topToggle:"toggle",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:Ft("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},Jn={},Qn=0,$n="_reactListenersID"+(""+Math.random()).slice(2),tr=Ei.canUseDOM&&"documentMode"in document&&11>=document.documentMode,er={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},ir=null,nr=null,rr=null,or=!1,ar={eventTypes:er,extractEvents:function(t,e,i,n){var r,o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;if(!(r=!o)){t:{o=Nt(o),r=Zi.onSelect;for(var a=0;a<r.length;a++){var s=r[a];if(!o.hasOwnProperty(s)||!o[s]){o=!1;break t}}o=!0}r=!o}if(r)return null;switch(o=e?R(e):window,t){case"topFocus":(tt(o)||"true"===o.contentEditable)&&(ir=o,nr=e,rr=null);break;case"topBlur":rr=nr=ir=null;break;case"topMouseDown":or=!0;break;case"topContextMenu":case"topMouseUp":return or=!1,Ut(i,n);case"topSelectionChange":if(tr)break;case"topKeyDown":case"topKeyUp":return Ut(i,n)}return null}};U.augmentClass(jt,{animationName:null,elapsedTime:null,pseudoElement:null}),U.augmentClass(Bt,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),yt.augmentClass(Vt,{relatedTarget:null});var sr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};yt.augmentClass(Wt,{key:function(t){if(t.key){var e=sr[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?(t=Yt(t),13===t?"Enter":String.fromCharCode(t)):"keydown"===t.type||"keyup"===t.type?lr[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:mt,charCode:function(t){return"keypress"===t.type?Yt(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?Yt(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),Et.augmentClass(zt,{dataTransfer:null}),yt.augmentClass(Xt,{touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:mt}),U.augmentClass(Ht,{propertyName:null,elapsedTime:null,pseudoElement:null}),Et.augmentClass(Kt,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null});var ur={},cr={};"abort animationEnd animationIteration animationStart blur cancel canPlay canPlayThrough click close contextMenu copy cut doubleClick drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error focus input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing progress rateChange reset scroll seeked seeking stalled submit suspend timeUpdate toggle touchCancel touchEnd touchMove touchStart transitionEnd volumeChange waiting wheel".split(" ").forEach(function(t){var e=t[0].toUpperCase()+t.slice(1),i="on"+e;e="top"+e,i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[e]},ur[t]=i,cr[e]=i});var hr={eventTypes:ur,extractEvents:function(t,e,i,n){var r=cr[t];if(!r)return null;switch(t){case"topKeyPress":if(0===Yt(i))return null;case"topKeyDown":case"topKeyUp":t=Wt;break;case"topBlur":case"topFocus":t=Vt;break;case"topClick":if(2===i.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":t=Et;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":t=zt;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":t=Xt;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":t=jt;break;case"topTransitionEnd":t=Ht;break;case"topScroll":t=yt;break;case"topWheel":t=Kt;break;case"topCopy":case"topCut":case"topPaste":t=Bt;break;default:t=U}return e=t.getPooled(r,e,i,n),F(e),e}};zn=function(t,e,i,n){t=T(t,e,i,n),S(t),x(!1)},nn.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),Qi=ln.getFiberCurrentPropsFromNode,$i=ln.getInstanceFromNode,tn=ln.getNodeFromInstance,nn.injectEventPluginsByName({SimpleEventPlugin:hr,EnterLeaveEventPlugin:Bn,ChangeEventPlugin:Gn,SelectEventPlugin:ar,BeforeInputEventPlugin:bn});var dr=[],fr=-1;new Set;var pr={current:Oi},gr={current:!1},_r=Oi,yr=null,vr=null,mr="function"===typeof Symbol&&Symbol.for,Er=mr?Symbol.for("react.element"):60103,Tr=mr?Symbol.for("react.call"):60104,Sr=mr?Symbol.for("react.return"):60105,xr=mr?Symbol.for("react.portal"):60106,Cr=mr?Symbol.for("react.fragment"):60107,Rr="function"===typeof Symbol&&Symbol.iterator,br=Array.isArray,Ir=Ie(!0),Or=Ie(!1),Pr={},wr=Object.freeze({default:Fe}),Lr=wr&&Fe||wr,Ar=Lr.default?Lr.default:Lr,Mr="object"===("undefined"===typeof performance?"undefined":vi(performance))&&"function"===typeof performance.now,Fr=void 0;Fr=Mr?function(){return performance.now()}:function(){return Date.now()};var Nr=void 0,Dr=void 0;if(Ei.canUseDOM)if("function"!==typeof requestIdleCallback||"function"!==typeof cancelIdleCallback){var kr,Gr=null,Ur=!1,jr=-1,Br=!1,Vr=0,Yr=33,Wr=33;kr=Mr?{didTimeout:!1,timeRemaining:function(){var t=Vr-performance.now();return 0<t?t:0}}:{didTimeout:!1,timeRemaining:function(){var t=Vr-Date.now();return 0<t?t:0}};var zr="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(t){if(t.source===window&&t.data===zr){if(Ur=!1,t=Fr(),0>=Vr-t){if(!(-1!==jr&&jr<=t))return void(Br||(Br=!0,requestAnimationFrame(Xr)));kr.didTimeout=!0}else kr.didTimeout=!1;jr=-1,t=Gr,Gr=null,null!==t&&t(kr)}},!1);var Xr=function(t){Br=!1;var e=t-Vr+Wr;e<Wr&&Yr<Wr?(8>e&&(e=8),Wr=e<Yr?Yr:e):Yr=e,Vr=t+Wr,Ur||(Ur=!0,window.postMessage(zr,"*"))};Nr=function(t,e){return Gr=t,null!=e&&"number"===typeof e.timeout&&(jr=Fr()+e.timeout),Br||(Br=!0,requestAnimationFrame(Xr)),0},Dr=function(){Gr=null,Ur=!1,jr=-1}}else Nr=window.requestIdleCallback,Dr=window.cancelIdleCallback;else Nr=function(t){return setTimeout(function(){t({timeRemaining:function(){return 1/0}})})},Dr=function(t){clearTimeout(t)};var Hr=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Kr={},qr={},Zr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"},Jr=void 0,Qr=function(t){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,i,n,r){MSApp.execUnsafeLocalFunction(function(){return t(e,i)})}:t}(function(t,e){if(t.namespaceURI!==Zr.svg||"innerHTML"in t)t.innerHTML=e;else{for(Jr=Jr||document.createElement("div"),Jr.innerHTML="<svg>"+e+"</svg>",e=Jr.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}),$r={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},to=["Webkit","ms","Moz","O"];Object.keys($r).forEach(function(t){to.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),$r[e]=$r[t]})});var eo=Ti({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),io=Zr.html,no=Si.thatReturns(""),ro={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},oo=Object.freeze({createElement:ai,createTextNode:si,setInitialProperties:li,diffProperties:ui,updateProperties:ci,diffHydratedProperties:hi,diffHydratedText:di,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(t,e,i){switch(e){case"input":if(Ye(t,i),e=i.name,"radio"===i.type&&null!=e){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<i.length;e++){var r=i[e];if(r!==t&&r.form===t.form){var o=b(r);o||n("90"),at(r),Ye(r,o)}}}break;case"textarea":Je(t,i);break;case"select":null!=(e=i.value)&&He(t,!!i.multiple,e,!1)}}});wn.injectFiberControlledHostComponent(oo);var ao=null,so=null,lo=Ar({getRootHostContext:function(t){var e=t.nodeType;switch(e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ti(null,"");break;default:e=8===e?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ti(t,e)}return t},getChildHostContext:function(t,e){return ti(t,e)},getPublicInstance:function(t){return t},prepareForCommit:function(){ao=Wn;var t=Ci();if(Gt(t)){if("selectionStart"in t)var e={start:t.selectionStart,end:t.selectionEnd};else t:{var i=window.getSelection&&window.getSelection();if(i&&0!==i.rangeCount){e=i.anchorNode;var n=i.anchorOffset,r=i.focusNode;i=i.focusOffset;try{e.nodeType,r.nodeType}catch(t){e=null;break t}var o=0,a=-1,s=-1,l=0,u=0,c=t,h=null;e:for(;;){for(var d;c!==e||0!==n&&3!==c.nodeType||(a=o+n),c!==r||0!==i&&3!==c.nodeType||(s=o+i),3===c.nodeType&&(o+=c.nodeValue.length),null!==(d=c.firstChild);)h=c,c=d;for(;;){if(c===t)break e;if(h===e&&++l===n&&(a=o),h===r&&++u===i&&(s=o),null!==(d=c.nextSibling))break;c=h,h=c.parentNode}c=d}e=-1===a||-1===s?null:{start:a,end:s}}else e=null}e=e||{start:0,end:0}}else e=null;so={focusedElem:t,selectionRange:e},Pt(!1)},resetAfterCommit:function(){var t=so,e=Ci(),i=t.focusedElem,n=t.selectionRange;if(e!==i&&bi(document.documentElement,i)){if(Gt(i))if(e=n.start,t=n.end,void 0===t&&(t=e),"selectionStart"in i)i.selectionStart=e,i.selectionEnd=Math.min(t,i.value.length);else if(window.getSelection){e=window.getSelection();var r=i[D()].length;t=Math.min(n.start,r),n=void 0===n.end?t:Math.min(n.end,r),!e.extend&&t>n&&(r=n,n=t,t=r),r=kt(i,t);var o=kt(i,n);if(r&&o&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)){var a=document.createRange();a.setStart(r.node,r.offset),e.removeAllRanges(),t>n?(e.addRange(a),e.extend(o.node,o.offset)):(a.setEnd(o.node,o.offset),e.addRange(a))}}for(e=[],t=i;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(Ii(i),i=0;i<e.length;i++)t=e[i],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}so=null,Pt(ao),ao=null},createInstance:function(t,e,i,n,r){return t=ai(t,e,i,n),t[an]=r,t[sn]=e,t},appendInitialChild:function(t,e){t.appendChild(e)},finalizeInitialChildren:function(t,e,i,n){li(t,e,i,n);t:{switch(e){case"button":case"input":case"select":case"textarea":t=!!i.autoFocus;break t}t=!1}return t},prepareUpdate:function(t,e,i,n,r){return ui(t,e,i,n,r)},shouldSetTextContent:function(t,e){return"textarea"===t||"string"===typeof e.children||"number"===typeof e.children||"object"===vi(e.dangerouslySetInnerHTML)&&null!==e.dangerouslySetInnerHTML&&"string"===typeof e.dangerouslySetInnerHTML.__html},shouldDeprioritizeSubtree:function(t,e){return!!e.hidden},createTextInstance:function(t,e,i,n){return t=si(t,e),t[an]=n,t},now:Fr,mutation:{commitMount:function(t){t.focus()},commitUpdate:function(t,e,i,n,r){t[sn]=r,ci(t,e,i,n,r)},resetTextContent:function(t){t.textContent=""},commitTextUpdate:function(t,e,i){t.nodeValue=i},appendChild:function(t,e){t.appendChild(e)},appendChildToContainer:function(t,e){8===t.nodeType?t.parentNode.insertBefore(e,t):t.appendChild(e)},insertBefore:function(t,e,i){t.insertBefore(e,i)},insertInContainerBefore:function(t,e,i){8===t.nodeType?t.parentNode.insertBefore(e,i):t.insertBefore(e,i)},removeChild:function(t,e){t.removeChild(e)},removeChildFromContainer:function(t,e){8===t.nodeType?t.parentNode.removeChild(e):t.removeChild(e)}},hydration:{canHydrateInstance:function(t,e){return 1!==t.nodeType||e.toLowerCase()!==t.nodeName.toLowerCase()?null:t},canHydrateTextInstance:function(t,e){return""===e||3!==t.nodeType?null:t},getNextHydratableSibling:function(t){for(t=t.nextSibling;t&&1!==t.nodeType&&3!==t.nodeType;)t=t.nextSibling;return t},getFirstHydratableChild:function(t){for(t=t.firstChild;t&&1!==t.nodeType&&3!==t.nodeType;)t=t.nextSibling;return t},hydrateInstance:function(t,e,i,n,r,o){return t[an]=o,t[sn]=i,hi(t,e,i,r,n)},hydrateTextInstance:function(t,e,i){return t[an]=i,di(t,e)},didNotMatchHydratedContainerTextInstance:function(){},didNotMatchHydratedTextInstance:function(){},didNotHydrateContainerInstance:function(){},didNotHydrateInstance:function(){},didNotFindHydratableContainerInstance:function(){},didNotFindHydratableContainerTextInstance:function(){},didNotFindHydratableInstance:function(){},didNotFindHydratableTextInstance:function(){}},scheduleDeferredCallback:Nr,cancelDeferredCallback:Dr,useSyncScheduling:!0});Q=lo.batchedUpdates,yi.prototype.render=function(t,e){lo.updateContainer(t,this._reactRootContainer,null,e)},yi.prototype.unmount=function(t){lo.updateContainer(null,this._reactRootContainer,null,t)};var uo={createPortal:_i,findDOMNode:function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternalFiber;if(e)return lo.findHostInstance(e);"function"===typeof t.render?n("188"):n("213",Object.keys(t))},hydrate:function(t,e,i){return gi(null,t,e,!0,i)},render:function(t,e,i){return gi(null,t,e,!1,i)},unstable_renderSubtreeIntoContainer:function(t,e,i,r){return(null==t||void 0===t._reactInternalFiber)&&n("38"),gi(t,e,i,!1,r)},unmountComponentAtNode:function(t){return fi(t)||n("40"),!!t._reactRootContainer&&(lo.unbatchedUpdates(function(){gi(null,null,t,!1,function(){t._reactRootContainer=null})}),!0)},unstable_createPortal:_i,unstable_batchedUpdates:$,unstable_deferredUpdates:lo.deferredUpdates,flushSync:lo.flushSync,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:rn,EventPluginRegistry:Ji,EventPropagators:un,ReactControlledComponent:Ln,ReactDOMComponentTree:ln,ReactDOMEventListener:Xn}};lo.injectIntoDevTools({findFiberByHostInstance:C,bundleType:0,version:"16.2.0",rendererPackageName:"react-dom"});var co=Object.freeze({default:uo}),ho=co&&uo||co;t.exports=ho.default?ho.default:ho},function(t,e,i){"use strict";var n=!("undefined"===typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};t.exports=r},function(t,e,i){"use strict";var n=i(69),r={listen:function(t,e,i){return t.addEventListener?(t.addEventListener(e,i,!1),{remove:function(){t.removeEventListener(e,i,!1)}}):t.attachEvent?(t.attachEvent("on"+e,i),{remove:function(){t.detachEvent("on"+e,i)}}):void 0},capture:function(t,e,i){return t.addEventListener?(t.addEventListener(e,i,!0),{remove:function(){t.removeEventListener(e,i,!0)}}):{remove:n}},registerDefault:function(){}};t.exports=r},function(t,e,i){"use strict";function n(t){if("undefined"===typeof(t=t||("undefined"!==typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}t.exports=n},function(t,e,i){"use strict";function n(t,e){return t===e?0!==t||0!==e||1/t===1/e:t!==t&&e!==e}function r(t,e){if(n(t,e))return!0;if("object"!==("undefined"===typeof t?"undefined":o(t))||null===t||"object"!==("undefined"===typeof e?"undefined":o(e))||null===e)return!1;var i=Object.keys(t),r=Object.keys(e);if(i.length!==r.length)return!1;for(var s=0;s<i.length;s++)if(!a.call(e,i[s])||!n(t[i[s]],e[i[s]]))return!1;return!0}var o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=Object.prototype.hasOwnProperty;t.exports=r},function(t,e,i){"use strict";function n(t,e){return!(!t||!e)&&(t===e||!r(t)&&(r(e)?n(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var r=i(213);t.exports=n},function(t,e,i){"use strict";function n(t){return r(t)&&3==t.nodeType}var r=i(214);t.exports=n},function(t,e,i){"use strict";function n(t){var e=t?t.ownerDocument||t:document,i=e.defaultView||window;return!(!t||!("function"===typeof i.Node?t instanceof i.Node:"object"===("undefined"===typeof t?"undefined":r(t))&&"number"===typeof t.nodeType&&"string"===typeof t.nodeName))}var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=n},function(t,e,i){"use strict";function n(t){try{t.focus()}catch(t){}}t.exports=n},function(t,e){},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function o(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=i(31),s=i.n(a),l=i(218),u=(i.n(l),i(219)),c=i.n(u),h=i(125),d=i(234),f=i.n(d),p=i(70),g=i(249),_=i.n(g),y=i(198),v=i.n(y),m=i(119),E=(i.n(m),i(373)),T=i(375),S=i(199),x=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),C=Object(h.d)(Object(h.c)({map:v.a,bookmark:T.a}),window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__(),Object(h.a)(f.a)),R=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),x(e,[{key:"componentDidMount",value:function(){C.dispatch(m.setView([-90.1980205,38.633941],18)),C.dispatch(m.addSource("osm",{type:"raster",tileSize:256,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png","https://c.tile.openstreetmap.org/{z}/{x}/{y}.png"]})),C.dispatch(m.addLayer({id:"osm",source:"osm"})),C.dispatch(m.addSource("stories",{type:"geojson",data:c.a})),C.dispatch(m.addLayer({id:"stories",type:"circle",source:"stories",paint:{"circle-radius":5,"circle-color":"#f46b42","circle-stroke-color":"#3a160b"}})),C.dispatch(S.a("stories"))}},{key:"render",value:function(){return s.a.createElement("div",{className:"App"},s.a.createElement(p.Provider,{store:C},s.a.createElement("div",{className:"mapContainer"},s.a.createElement(_.a,{className:"map"}),s.a.createElement(E.a,null))))}}]),e}(a.Component);e.a=R},function(t,e){},function(t,e){t.exports={type:"FeatureCollection",name:"Urban Harvest Existing Farms",crs:{type:"name",properties:{name:"urn:ogc:def:crs:OGC:1.3:CRS84"}},features:[{type:"Feature",properties:{Name:"Food Roof Farm",description:'<img src="https://lh3.googleusercontent.com/vTeisCIKR0kPadLu_u2_qn4TrBKjeyMgr-l6ebZO8C1XYPOvAvyJVOjCbL96UyB3yt48SUF215pZdrT7y-s0AK9L_0NjiUjIjrzpMkP6pxXB-IEjFddGLpFBwjTa1WeI0-nJpQ" height="200" width="auto" /><br><br>',timestamp:null,begin:null,end:null,altitudeMode:null,tessellate:-1,extrude:0,visibility:-1,drawOrder:null,icon:null,gx_media_links:"https://lh3.googleusercontent.com/vTeisCIKR0kPadLu_u2_qn4TrBKjeyMgr-l6ebZO8C1XYPOvAvyJVOjCbL96UyB3yt48SUF215pZdrT7y-s0AK9L_0NjiUjIjrzpMkP6pxXB-IEjFddGLpFBwjTa1WeI0-nJpQ"},geometry:{type:"Point",coordinates:[-90.1980205,38.633941,0]}},{type:"Feature",properties:{Name:"Fresh Starts Community Garden",description:'<img src="https://lh5.googleusercontent.com/qpbUNVMm_K6YIbW9k48oeozkHFr9_LeYSMjhqKb-bpA7Xwdro2ELIgpOgcHuuMs9QnZofPrVsx5j2w8PVVbM9oqSyIGNEwS0yzkx_kQNCXWInMQYb-871cixSKA1L24zAQj_4Q" height="200" width="auto" /><br><br>',timestamp:null,begin:null,end:null,altitudeMode:null,tessellate:-1,extrude:0,visibility:-1,drawOrder:null,icon:null,gx_media_links:"https://lh5.googleusercontent.com/qpbUNVMm_K6YIbW9k48oeozkHFr9_LeYSMjhqKb-bpA7Xwdro2ELIgpOgcHuuMs9QnZofPrVsx5j2w8PVVbM9oqSyIGNEwS0yzkx_kQNCXWInMQYb-871cixSKA1L24zAQj_4Q"},geometry:{type:"Point",coordinates:[-90.2178557,38.6423165,0]}},{type:"Feature",properties:{Name:"School Garden: Flance Early Learning Center",description:'<img src="https://lh3.googleusercontent.com/Afu8k0rWP8ippmxtSPPm6UQDBGraK1h1SQMse02RXMe0vsLIQq6-vDzM7Tm2-VkZq7QQil4Sd498pTORuu3evmhBOr0ojCqYJtPaZArD4hA0-kS6jQHJejdWKzOWyH6sNv6Npw" height="200" width="auto" /><br><br>',timestamp:null,begin:null,end:null,altitudeMode:null,tessellate:-1,extrude:0,visibility:-1,drawOrder:null,icon:null,gx_media_links:"https://lh3.googleusercontent.com/Afu8k0rWP8ippmxtSPPm6UQDBGraK1h1SQMse02RXMe0vsLIQq6-vDzM7Tm2-VkZq7QQil4Sd498pTORuu3evmhBOr0ojCqYJtPaZArD4hA0-kS6jQHJejdWKzOWyH6sNv6Npw"},geometry:{type:"Point",coordinates:[-90.2043537,38.6403565,0]}},{type:"Feature",properties:{Name:"Kerr FOOD ROOF",description:'<img src="https://lh4.googleusercontent.com/pvf2ZA-K3y9gbvqrpZHHsaac27_ZaRPCLw_Lok7_t3d50zdSWil3KyH6PRWgageVzhpCKm099cWyjKiYsCgIccchd-0UiVOQ6FdeBkKznEkP4EarKa959C5R4kuK31G5wS7h_w" height="200" width="auto" /><br><br>',timestamp:null,begin:null,end:null,altitudeMode:null,tessellate:-1,extrude:0,visibility:-1,drawOrder:null,icon:null,gx_media_links:"https://lh4.googleusercontent.com/pvf2ZA-K3y9gbvqrpZHHsaac27_ZaRPCLw_Lok7_t3d50zdSWil3KyH6PRWgageVzhpCKm099cWyjKiYsCgIccchd-0UiVOQ6FdeBkKznEkP4EarKa959C5R4kuK31G5wS7h_w"},geometry:{type:"Point",coordinates:[-90.1819729,38.6374365,0]}},{type:"Feature",properties:{Name:"Busch Stadium",description:'<img src="https://lh3.googleusercontent.com/1RkJqqJQKhVLD07WnKb4_i18nE12EQvgJlgvcvI8uorn6wAvf3lQ5DySssbXSRAghjsMWKy-jy-lm-m1P64BS0YeRFSlECTNcJ1QW7bSwgfzd2Vw6N1ue1DcsRVjZGrnCMOe" height="200" width="auto" /><br><br>',timestamp:null,begin:null,end:null,altitudeMode:null,tessellate:-1,extrude:0,visibility:-1,drawOrder:null,icon:null,gx_media_links:"https://lh3.googleusercontent.com/1RkJqqJQKhVLD07WnKb4_i18nE12EQvgJlgvcvI8uorn6wAvf3lQ5DySssbXSRAghjsMWKy-jy-lm-m1P64BS0YeRFSlECTNcJ1QW7bSwgfzd2Vw6N1ue1DcsRVjZGrnCMOe"},geometry:{type:"Point",coordinates:[-90.1928209,38.6226188,0]}}]}},function(t,e,i){"use strict";function n(t){return null==t?void 0===t?l:s:u&&u in Object(t)?Object(o.a)(t):Object(a.a)(t)}var r=i(127),o=i(223),a=i(224),s="[object Null]",l="[object Undefined]",u=r.a?r.a.toStringTag:void 0;e.a=n},function(t,e,i){"use strict";var n=i(222),r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o="object"==("undefined"===typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,a=n.a||o||Function("return this")();e.a=a},function(t,e,i){"use strict";(function(t){var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n="object"==("undefined"===typeof t?"undefined":i(t))&&t&&t.Object===Object&&t;e.a=n}).call(e,i(90))},function(t,e,i){"use strict";function n(t){var e=a.call(t,l),i=t[l];try{t[l]=void 0;var n=!0}catch(t){}var r=s.call(t);return n&&(e?t[l]=i:delete t[l]),r}var r=i(127),o=Object.prototype,a=o.hasOwnProperty,s=o.toString,l=r.a?r.a.toStringTag:void 0;e.a=n},function(t,e,i){"use strict";function n(t){return o.call(t)}var r=Object.prototype,o=r.toString;e.a=n},function(t,e,i){"use strict";var n=i(226),r=Object(n.a)(Object.getPrototypeOf,Object);e.a=r},function(t,e,i){"use strict";function n(t,e){return function(i){return t(e(i))}}e.a=n},function(t,e,i){"use strict";function n(t){return null!=t&&"object"==("undefined"===typeof t?"undefined":r(t))}var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.a=n},function(t,e,i){"use strict";(function(t,n){var r,o=i(230);r="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof t?t:n;var a=Object(o.a)(r);e.a=a}).call(e,i(90),i(229)(t))},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,i){"use strict";function n(t){var e,i=t.Symbol;return"function"===typeof i?i.observable?e=i.observable:(e=i("observable"),i.observable=e):e="@@observable",e}e.a=n},function(t,e,i){"use strict";function n(t,e){var i=e&&e.type;return"Given action "+(i&&'"'+i.toString()+'"'||"an action")+', reducer "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function r(t){Object.keys(t).forEach(function(e){var i=t[e];if("undefined"===typeof i(void 0,{type:a.a.INIT}))throw new Error('Reducer "'+e+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof i(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+e+"\" returned undefined when probed with a random type. Don't try to handle "+a.a.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}function o(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var a=e[o];"function"===typeof t[a]&&(i[a]=t[a])}var s=Object.keys(i),l=void 0;try{r(i)}catch(t){l=t}return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];if(l)throw l;for(var r=!1,o={},a=0;a<s.length;a++){var u=s[a],c=i[u],h=t[u],d=c(h,e);if("undefined"===typeof d){var f=n(u,e);throw new Error(f)}o[u]=d,r=r||d!==h}return r?o:t}}e.a=o;var a=i(126);i(92),i(128)},function(t,e,i){"use strict";function n(t,e){return function(){return e(t.apply(void 0,arguments))}}function r(t,e){if("function"===typeof t)return n(t,e);if("object"!==("undefined"===typeof t?"undefined":o(t))||null===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":"undefined"===typeof t?"undefined":o(t))+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var i=Object.keys(t),r={},a=0;a<i.length;a++){var s=i[a],l=t[s];"function"===typeof l&&(r[s]=n(l,e))}return r}e.a=r;var o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}},function(t,e,i){"use strict";function n(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(i,n,a){var s=t(i,n,a),l=s.dispatch,u=[],c={getState:s.getState,dispatch:function(t){return l(t)}};return u=e.map(function(t){return t(c)}),l=r.a.apply(void 0,u)(s.dispatch),o({},s,{dispatch:l})}}}e.a=n;var r=i(129),o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}},function(t,e,i){"use strict";function n(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(r){return"function"===typeof r?r(i,n,t):e(r)}}}}e.__esModule=!0;var r=n();r.withExtraArgument=n,e.default=r},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"===typeof e?"undefined":h(e))&&"function"!==typeof e?t:e}function o(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof e?"undefined":h(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",i=arguments[1],a=i||e+"Subscription",l=function(t){function i(o,a){n(this,i);var s=r(this,t.call(this,o,a));return s[e]=o.store,s}return o(i,t),i.prototype.getChildContext=function(){var t;return t={},t[e]=this[e],t[a]=null,t},i.prototype.render=function(){return s.Children.only(this.props.children)},i}(s.Component);return l.propTypes={store:c.a.isRequired,children:u.a.element.isRequired},l.childContextTypes=(t={},t[e]=c.a.isRequired,t[a]=c.b,t),l}e.a=a;var s=i(31),l=(i.n(s),i(93)),u=i.n(l),c=i(130),h=(i(94),"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t});e.b=a()},function(t,e,i){"use strict";var n=i(69),r=i(237),o=i(238);t.exports=function(){function t(t,e,i,n,a,s){s!==o&&r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var i={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return i.checkPropTypes=n,i.PropTypes=i,i}},function(t,e,i){"use strict";function n(t,e,i,n,o,a,s,l){if(r(e),!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[i,n,o,a,s,l],h=0;u=new Error(e.replace(/%s/g,function(){return c[h++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var r=function(t){};t.exports=n},function(t,e,i){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,i){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,c=u&&u(Object);t.exports=function t(e,i,h){if("string"!==typeof i){if(c){var d=u(i);d&&d!==c&&t(e,d,h)}var f=a(i);s&&(f=f.concat(s(i)));for(var p=0;p<f.length;++p){var g=f[p];if(!n[g]&&!r[g]&&(!h||!h[g])){var _=l(i,g);try{o(e,g,_)}catch(t){}}}return e}return e}},function(t,e,i){"use strict";var n=function(t,e,i,n,r,o,a,s){if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[i,n,r,o,a,s],c=0;l=new Error(e.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};t.exports=n},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(){var t=[],e=[];return{clear:function(){e=o,t=o},notify:function(){for(var i=t=e,n=0;n<i.length;n++)i[n]()},get:function(){return e},subscribe:function(i){var n=!0;return e===t&&(e=t.slice()),e.push(i),function(){n&&t!==o&&(n=!1,e===t&&(e=t.slice()),e.splice(e.indexOf(i),1))}}}}i.d(e,"a",function(){return s});var o=null,a={notify:function(){}},s=function(){function t(e,i,r){n(this,t),this.store=e,this.parentSub=i,this.onStateChange=r,this.unsubscribe=null,this.listeners=a}return t.prototype.addNestedSub=function(t){return this.trySubscribe(),this.listeners.subscribe(t)},t.prototype.notifyNestedSubs=function(){this.listeners.notify()},t.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},t.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=r())},t.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=a)},t}()},function(t,e,i){"use strict";function n(t,e){var i={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n]);return i}function r(t,e,i){for(var n=e.length-1;n>=0;n--){var r=e[n](t);if(r)return r}return function(e,n){throw new Error("Invalid value of type "+("undefined"===typeof t?"undefined":d(t))+" for "+i+" argument when connecting component "+n.wrappedComponentName+".")}}function o(t,e){return t===e}var a=i(131),s=i(243),l=i(244),u=i(245),c=i(246),h=i(247),d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};e.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.connectHOC,i=void 0===e?a.a:e,d=t.mapStateToPropsFactories,p=void 0===d?u.a:d,g=t.mapDispatchToPropsFactories,_=void 0===g?l.a:g,y=t.mergePropsFactories,v=void 0===y?c.a:y,m=t.selectorFactory,E=void 0===m?h.a:m;return function(t,e,a){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=l.pure,c=void 0===u||u,h=l.areStatesEqual,d=void 0===h?o:h,g=l.areOwnPropsEqual,y=void 0===g?s.a:g,m=l.areStatePropsEqual,T=void 0===m?s.a:m,S=l.areMergedPropsEqual,x=void 0===S?s.a:S,C=n(l,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),R=r(t,p,"mapStateToProps"),b=r(e,_,"mapDispatchToProps"),I=r(a,v,"mergeProps");return i(E,f({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:R,initMapDispatchToProps:b,initMergeProps:I,pure:c,areStatesEqual:d,areOwnPropsEqual:y,areStatePropsEqual:T,areMergedPropsEqual:x},C))}}()},function(t,e,i){"use strict";function n(t,e){return t===e?0!==t||0!==e||1/t===1/e:t!==t&&e!==e}function r(t,e){if(n(t,e))return!0;if("object"!==("undefined"===typeof t?"undefined":o(t))||null===t||"object"!==("undefined"===typeof e?"undefined":o(e))||null===e)return!1;var i=Object.keys(t),r=Object.keys(e);if(i.length!==r.length)return!1;for(var s=0;s<i.length;s++)if(!a.call(e,i[s])||!n(t[i[s]],e[i[s]]))return!1;return!0}e.a=r;var o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=Object.prototype.hasOwnProperty},function(t,e,i){"use strict";function n(t){return"function"===typeof t?Object(s.b)(t,"mapDispatchToProps"):void 0}function r(t){return t?void 0:Object(s.a)(function(t){return{dispatch:t}})}function o(t){return t&&"object"===("undefined"===typeof t?"undefined":l(t))?Object(s.a)(function(e){return Object(a.b)(t,e)}):void 0}var a=i(125),s=i(132),l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.a=[n,r,o]},function(t,e,i){"use strict";function n(t){return"function"===typeof t?Object(o.b)(t,"mapStateToProps"):void 0}function r(t){return t?void 0:Object(o.a)(function(){return{}})}var o=i(132);e.a=[n,r]},function(t,e,i){"use strict";function n(t,e,i){return s({},i,t,e)}function r(t){return function(e,i){var n=(i.displayName,i.pure),r=i.areMergedPropsEqual,o=!1,a=void 0;return function(e,i,s){var l=t(e,i,s);return o?n&&r(l,a)||(a=l):(o=!0,a=l),a}}}function o(t){return"function"===typeof t?r(t):void 0}function a(t){return t?void 0:function(){return n}}var s=(i(133),Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t});e.a=[o,a]},function(t,e,i){"use strict";function n(t,e){var i={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n]);return i}function r(t,e,i,n){return function(r,o){return i(t(r,o),e(n,o),o)}}function o(t,e,i,n,r){function o(r,o){return p=r,g=o,_=t(p,g),y=e(n,g),v=i(_,y,g),f=!0,v}function a(){return _=t(p,g),e.dependsOnOwnProps&&(y=e(n,g)),v=i(_,y,g)}function s(){return t.dependsOnOwnProps&&(_=t(p,g)),e.dependsOnOwnProps&&(y=e(n,g)),v=i(_,y,g)}function l(){var e=t(p,g),n=!d(e,_);return _=e,n&&(v=i(_,y,g)),v}function u(t,e){var i=!h(e,g),n=!c(t,p);return p=t,g=e,i&&n?a():i?s():n?l():v}var c=r.areStatesEqual,h=r.areOwnPropsEqual,d=r.areStatePropsEqual,f=!1,p=void 0,g=void 0,_=void 0,y=void 0,v=void 0;return function(t,e){return f?u(t,e):o(t,e)}}function a(t,e){var i=e.initMapStateToProps,a=e.initMapDispatchToProps,s=e.initMergeProps,l=n(e,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),u=i(t,l),c=a(t,l),h=s(t,l);return(l.pure?o:r)(u,c,h,t,l)}e.a=a;i(248)},function(t,e,i){"use strict";i(94)},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"===typeof e?"undefined":b(e))&&"function"!==typeof e?t:e}function a(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof e?"undefined":b(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e){if(void 0!==t.metadata)return t.metadata[e]}function l(t,e,i){var n=t.tiles[0],r={attributions:t.attribution,minZoom:t.minzoom,maxZoom:"maxzoom"in t?t.maxzoom:22,tileSize:t.tileSize||512,crossOrigin:"crossOrigin"in t?t.crossOrigin:"anonymous",projection:e};if(n.toUpperCase().indexOf("SERVICE=WMS")>=0){for(var o=t.tiles[0].split("?"),a=(0,de.parseQueryString)(o[1]),s=Object.keys(a),l=0,u=s.length;l<u;++l)"REQUEST"===s[l].toUpperCase()&&delete a[s[l]];return i&&(a.TIME=i),new vt.default(Object.assign({url:o[0],params:a},r))}var c=new _t.default(Object.assign({urls:t.tiles},r));return c.setTileLoadFunction(function(t,e){var i=e.slice();if(-1!==e.indexOf(Ee)){var n=c.getTileGrid().getTileCoordExtent(t.getTileCoord());i=e.replace(Ee,n.toString())}t.getImage().src=i}),"tms"===t.scheme&&c.setTileUrlFunction(function(e,i,n){var r=t.tiles.length-1,o=Math.floor(Math.random()*(r-0+1))+0,a=e[0],s=e[1],l=e[2]+(1<<a);return t.tiles[o].replace("{z}",a).replace("{y}",l).replace("{x}",s)}),c}function u(t,e){var i=t.url;if(0===i.indexOf(ve)){var n=i.replace(ve,"");i="https://"+me+"/"+n+".json?access_token="+e}return i}function c(t,e){return new Et.default({url:u(t,e),crossOrigin:"anonymous"})}function h(t){var e=t.coordinates;return new Ft.default({url:t.url,imageExtent:[e[0][0],e[3][1],e[1][0],e[0][1]],projection:"EPSG:4326"})}function d(t,e){if(t.tiles)return new Promise(function(e,i){var n=void 0,r=void 0;-1!==t.tiles[0].indexOf(Ee)&&(r=function(e,i,r){var o=n.getTileGrid().getTileCoordExtent(e);return t.tiles[0].replace(Ee,o.toString())}),n=new bt.default({urls:t.tiles,tileGrid:St.default.createXYZ({tileSize:512,maxZoom:"maxzoom"in t?t.maxzoom:22,minZoom:t.minzoom}),attributions:t.attribution,format:new Ot.default,crossOrigin:"crossOrigin"in t?t.crossOrigin:"anonymous",tileUrlFunction:r}),e(n)});var i=u(t,e);return(0,w.default)(i).then(function(t){if(t.ok)return t.json()}).then(function(e){return new bt.default({crossOrigin:"crossOrigin"in t?t.crossOrigin:"anonymous",attributions:e.attribution,format:new Ot.default,tileGrid:St.default.createXYZ({minZoom:e.minzoom,maxZoom:e.maxzoom,tileSize:512}),urls:e.tiles})})}function f(t,e,i){return function(n,r,o){var a=this,s=void 0;if("string"===typeof t.data){var l=t.data;0!==l.indexOf("https://")&&0!==l.indexOf("http://")&&(i&&0===l.indexOf(".")&&(l=l.substring(1)),l=i+l),l.indexOf(Ee)>=0&&(l=l.replace(Ee,n.toString())),s=(0,w.default)(l).then(function(t){return t.json()})}else"object"!==O(t.data)||"Feature"!==t.data.type&&"FeatureCollection"!==t.data.type||(s=new Promise(function(e){e(t.data)}));s&&s.then(function(t){if(t){var i={featureProjection:e};a.addFeatures(ge.readFeatures(t,i))}}).catch(function(t){console.error(t)})}}function p(t,e,i,n){var r=t;e.cluster&&(r=t.getSource()),r.loader_=f(e,i.getProjection(),n),r.clear(!0),r.loadFeatures(i.calculateExtent(),i.getResolution(),i.getProjection())}function g(t,e,i,n){var r="string"===typeof t.data&&t.data.indexOf(Ee)>=0,o=new Gt.default({strategy:r?re.default.bbox:re.default.all,loader:f(t,e.getProjection(),i),useSpatialIndex:!0,wrapX:n}),a=o;return t.cluster&&(a=new he.default({source:o,distance:t.clusterRadius?t.clusterRadius:50})),p(a,t,e,i),a}function _(t,e,i,n,r,o){var a=void 0;if("raster"===t.type)"tiles"in t?a=l(t,e.getProjection(),r):t.url&&(a=c(t,i));else if("geojson"===t.type)a=g(t,e,n,o);else if("image"===t.type)a=h(t);else if("vector"===t.type)return d(t,i);return new Promise(function(t,e){t(a)})}function y(t){for(var e=[],i=0,n=t.length;i<n;i++)e.push(t[i].id);return t[0].source+"-"+e.join(",")}function v(t){var e=t.indexOf("-");return t.substring(0,e)}function m(t,e){if(void 0===e||void 0===e.ref)return e;var i=(0,de.getLayerById)(t,e.ref),n=e;return i&&(n=(0,de.jsonClone)(e),n.ref=void 0,n=Object.assign({},i,n)),n}function E(t,e){for(var i=[],n=0,r=e.length;n<r;n++)i.push(m(t,e[n]));return i}function T(t,e,i,n){var r={version:8,sprite:t,layers:e};return t&&0===t.indexOf(ve)&&(r.sprite=i+"/sprite?access_token="+n),r}function S(t){return{map:t.map,drawing:t.drawing,print:t.print,mapbox:t.mapbox,mapinfo:t.mapinfo}}function x(t,e){var i=t.getProjection(),n=t.calculateExtent(e);return lt.default.transformExtent(n,i,"EPSG:4326")}function C(t){return{updateLayer:function(e,i){t((0,oe.updateLayer)(e,i))},setView:function(e){var i=e.getView(),n=i.getProjection(),r=lt.default.transform(i.getCenter(),n,"EPSG:4326"),o=(0,de.radiansToDegrees)(i.getRotation()),a=i.getZoom()-1,s=e.getSize();t((0,oe.setView)(r,a)),t((0,oe.setBearing)(-o)),t((0,ae.setMapExtent)(x(i,s))),t((0,ae.setResolution)(i.getResolution()))},setSize:function(e){var i=e.getSize(),n=e.getView();t((0,ae.setMapExtent)(x(n,i))),t((0,ae.setMapSize)(i))},setProjection:function(e){t((0,ae.setProjection)(e))},setMeasureGeometry:function(e,i){var n=ge.writeGeometryObject(e,{featureProjection:i,dataProjection:"EPSG:4326"}),r=[];if("LineString"===n.type)for(var o=0,a=n.coordinates.length-1;o<a;o++){var s=n.coordinates[o],l=n.coordinates[o+1];r.push(ye.haversineDistance(s,l))}else"Polygon"===n.type&&n.coordinates.length>0&&r.push(Math.abs(ye.geodesicArea(n.coordinates[0])));t((0,ue.setMeasureFeature)({type:"Feature",properties:{},geometry:n},r))},finalizeMeasureFeature:function(){t((0,ue.finalizeMeasureFeature)())},clearMeasureFeature:function(){t((0,ue.clearMeasureFeature)())},setMousePosition:function(e,i){t((0,ae.setMousePosition)(e,i))}}}function R(t){var e=t.map(function(t){return t.id}),i={version:8,layers:t,sources:e},n=new Dt.default;return(0,Zt.default)(n,i,e)}var b="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};Object.defineProperty(e,"__esModule",{value:!0}),e.Map=void 0;var I=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),O="function"===typeof Symbol&&"symbol"===b(Symbol.iterator)?function(t){return"undefined"===typeof t?"undefined":b(t)}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":"undefined"===typeof t?"undefined":b(t)};e.getTileJSONUrl=u,e.hydrateLayer=m,e.getFakeStyle=T,e.getMapExtent=x,e.getOLStyleFunctionFromMapboxStyle=R;var P=i(134),w=n(P),L=i(250),A=n(L),M=i(95),F=n(M),N=i(93),D=n(N),k=i(31),G=n(k),U=i(124),j=n(U),B=i(70),V=i(253),Y=i(150),W=n(Y),z=i(102),X=n(z),H=i(349),K=n(H),q=i(168),Z=n(q),J=i(161),Q=n(J),$=i(61),tt=n($),et=i(105),it=n(et),nt=i(108),rt=n(nt),ot=i(74),at=n(ot),st=i(11),lt=n(st),ut=i(35),ct=n(ut),ht=i(148),dt=n(ht),ft=i(185),pt=n(ft),gt=i(197),_t=n(gt),yt=i(351),vt=n(yt),mt=i(188),Et=n(mt),Tt=i(33),St=n(Tt),xt=i(187),Ct=n(xt),Rt=i(196),bt=n(Rt),It=i(183),Ot=n(It),Pt=i(184),wt=n(Pt),Lt=i(354),At=n(Lt),Mt=i(355),Ft=n(Mt),Nt=i(56),Dt=n(Nt),kt=i(57),Gt=n(kt),Ut=i(113),jt=n(Ut),Bt=i(359),Vt=n(Bt),Yt=i(360),Wt=n(Yt),zt=i(363),Xt=n(zt),Ht=i(365),Kt=n(Ht),qt=i(139),Zt=n(qt),Jt=i(38),Qt=n(Jt),$t=i(366),te=n($t),ee=i(160),ie=n(ee),ne=i(194),re=n(ne),oe=i(119),ae=i(367),se=i(68),le=i(198),ue=i(368),ce=i(369),he=n(ce),de=i(120),fe=i(371),pe=n(fe);i(372);var ge=new jt.default,_e=new Vt.default,ye=new dt.default(6378137),ve="mapbox://",me="api.mapbox.com/v4",Ee="{bbox-epsg-3857}";tt.default.register(it.default.MAP_RENDERER,Z.default),tt.default.register(it.default.LAYER_RENDERER,rt.default);var Te=e.Map=function(t){function e(t){r(this,e);var i=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.sourcesVersion=null,i.layersVersion=null,i.sources={},i.layers={},i.popups={},i.elems={},i.activeInteractions=null,i}return a(e,t),I(e,[{key:"componentDidMount",value:function(){this.configureMap()}},{key:"componentWillUnmount",value:function(){this.map&&this.map.setTarget(null)}},{key:"shouldComponentUpdate",value:function(t){var e=this;if((0,de.getKey)(this.props.map.metadata,se.TIME_KEY)!==(0,de.getKey)(t.map.metadata,se.TIME_KEY))for(var i=0,n=t.map.layers.length;i<n;++i){var r=t.map.layers[i];if(void 0!==r.metadata[se.TIME_START_KEY]&&this.props.updateLayer(r.id,{filter:this.props.createLayerFilter(r,t.map.metadata[se.TIME_KEY])}),void 0!==r.metadata[se.TIME_KEY]){var o=r.source,a=this.sources[o];a&&a instanceof vt.default&&a.updateParams({TIME:t.map.metadata[se.TIME_KEY]})}}var l=this.map.getView(),u=l.getProjection();if(void 0!==t.map.center&&(void 0===this.props.map.center||t.map.center[0]!==this.props.map.center[0]||t.map.center[1]!==this.props.map.center[1])){var c=lt.default.transform(t.map.center,"EPSG:4326",u);l.setCenter(c)}if(void 0!==t.map.zoom&&t.map.zoom!==this.props.map.zoom&&l.setZoom(t.map.zoom+1),void 0!==t.map.bearing&&t.map.bearing!==this.props.map.bearing){var h=(0,de.degreesToRadians)(t.map.bearing);l.setRotation(-h)}var d=s(t.map,se.SOURCE_VERSION_KEY),f=s(t.map,se.LAYER_VERSION_KEY);this.sourcesVersion!==d?this.configureSources(t.map.sources,d).then(function(){e.configureLayers(t.map.sources,t.map.layers,f,t.map.sprite,e.props.declutter)}):this.layersVersion!==f&&this.configureLayers(t.map.sources,t.map.layers,f,t.map.sprite,this.props.declutter);for(var g=Object.keys(t.map.sources),_=0,y=g.length;_<y;_++){var v=g[_],m=this.props.map.sources[v];if(m&&"geojson"===m.type){var E=(0,le.dataVersionKey)(v);if(void 0!==this.props.map.metadata&&this.props.map.metadata[E]!==t.map.metadata[E]){var T=t.map.sources[v];p(this.sources[v],T,l,this.props.mapbox.baseUrl)}}}return this.updatePopups(),!t.drawing||t.drawing.interaction===this.props.drawing.interaction&&t.drawing.sourceName===this.props.drawing.sourceName||this.updateInteraction(t.drawing),t.print&&t.print.exportImage&&(this.map.once("postcompose",function(t){t.context.canvas.toBlob(e.props.onExportImage)},this),this.map.renderSync()),!t.mapinfo||null===this.props.mapinfo.size||t.mapinfo.size[0]===this.props.mapinfo.size[0]&&t.mapinfo.size[1]===this.props.mapinfo.size[1]||this.map.updateSize(),!1}},{key:"onFeatureEvent",value:function(t,e,i){var n=ge.writeFeaturesObject(i,{dataProjection:"EPSG:4326",featureProjection:this.map.getView().getProjection()});"drawn"===t?this.props.onFeatureDrawn(this,e,n):"modified"===t?this.props.onFeatureModified(this,e,n):"selected"===t?this.props.onFeatureSelected(this,e,n):"deselected"===t&&this.props.onFeatureDeselected(this,e,n)}},{key:"configureSources",value:function(t,e){for(var i=this,n=[],r=Object.keys(t),o=this.map.getView(),a=0,s=r.length;a<s;a++)!function(e,a){var s=r[e];if(!(s in i.sources)){var l=(0,de.getKey)(i.props.map.metadata,se.TIME_KEY);n.push(_(t[s],o,i.props.mapbox.accessToken,i.props.mapbox.baseUrl,l,i.props.wrapX).then(function(t){t&&(i.sources[s]=t)}))}var u=i.props.map.sources[s];u&&"geojson"!==u.type&&!(0,de.jsonEquals)(u,t[s])&&n.push(_(t[s],o,i.props.mapbox.accessToken,i.props.mapbox.baseUrl,void 0,i.props.wrapX).then(function(t){t&&(i.sources[s]=t,i.updateLayerSource(s))})),!u||u.cluster===t[s].cluster&&u.clusterRadius===t[s].clusterRadius||n.push(_(t[s],o,i.props.mapbox.accessToken,i.props.mapbox.baseUrl,void 0,i.props.wrapX).then(function(t){t&&(i.sources[s]=t,i.updateLayerSource(s))}))}(a);r=Object.keys(this.sources);for(var a=0,s=r.length;a<s;a++){var l=r[a];l in t||delete this.sources[l]}return Promise.all(n).then(function(){i.sourcesVersion=e})}},{key:"applySpriteAnimation",value:function(t,e){var i=this;this.map.on("postcompose",function(t){i.map.render()});for(var n={},r={},o=0,a=e.length;o<a;++o){var s=e[o];r[s.id]=(0,de.jsonClone)(s.metadata["bnd:animate-sprite"]),Array.isArray(s.filter)&&(s.filter=(0,F.default)(s.filter))}var l=function(t){this.update(t)};t.setStyle(function(t,o){for(var a=0,s=e.length;a<s;++a){var u=e[a];if(!u.filter||u.filter({properties:t.getProperties()})){if(!r[u.id].rotation||r[u.id].rotation&&!r[u.id].rotation.property){if(!n[u.id]){var c=new te.default(r[u.id]);n[u.id]=new Qt.default({image:c}),i.map.on("postcompose",l,c)}return n[u.id]}n[u.id]||(n[u.id]={});var h=r[u.id].rotation.property,d=t.get(h);if(!n[u.id][d]){var f=(0,de.jsonClone)(u.metadata["bnd:animate-sprite"]);f.rotation=d;var p=new te.default(f),g=new Qt.default({image:p});i.map.on("postcompose",l,p),n[u.id][d]=g}return n[u.id][d]}}return null})}},{key:"applyStyle",value:function(t,e,i){for(var n=[],r=[],o=0,a=e.length;o<a;o++){var s=e[o];s.metadata&&s.metadata["bnd:animate-sprite"]&&r.push(s);(!s.layout||"none"!==s.layout.visibility)&&n.push(s)}r.length>0&&this.applySpriteAnimation(t,r);var l=T(i||this.props.map.sprite,n,this.props.mapbox.baseUrl,this.props.mapbox.accessToken);t.setStyle&&0===r.length&&(0,V.applyStyle)(t,l,e[0].source),t.setVisible(n.length>0)}},{key:"configureLayer",value:function(t,e,i,n,r,o){var a=this.sources[t],s=null;switch(e.type){case"raster":return s=new pt.default({source:a}),this.applyStyle(s,i,n),s;case"geojson":return s=new Dt.default({declutter:r,source:a}),this.applyStyle(s,i,n),s;case"vector":var l=(0,de.getKey)(this.props.map.metadata,se.TIME_KEY);l&&i[0].metadata&&void 0!==i[0].metadata[se.TIME_START_KEY]&&(i[0].filter=this.props.createLayerFilter(i[0],l));var u=a.getTileGrid();return s=new Ct.default({maxResolution:u.getMinZoom()>0?u.getResolution(u.getMinZoom()):void 0,declutter:r,zIndex:o,source:a}),this.applyStyle(s,i,n),s;case"image":return new At.default({source:a,opacity:i[0].paint?i[0].paint["raster-opacity"]:void 0})}return null}},{key:"updateLayerSource",value:function(t){for(var e=Object.keys(this.layers),i=0,n=e.length;i<n;i++){var r=e[i];v(r)===t&&this.layers[r].setSource(this.sources[t])}}},{key:"cleanupLayers",value:function(t){for(var e={},i=0,n=t.length;i<n;i++)e[t[i]]=!0;for(var r=Object.keys(this.layers),o=0,a=r.length;o<a;o++){var s=r[o];!0!==e[s]&&(this.map.removeLayer(this.layers[s]),delete this.layers[s])}}},{key:"configureLayers",value:function(t,e,i,n,r){this.layersVersion=i;for(var o=[],a=null,s=[],l=0,u=e.length;l<u;l++){var c=e[l];void 0!==c.ref&&(c={source:(0,de.getLayerById)(e,c.ref).source}),null!==a&&a===c.source||s.length>0&&(o.push(s),s=[]),a=c.source,s.push(e[l])}s.length>0&&o.push(s);for(var h=[],d=0,f=o.length;d<f;d++){var p=o[d],g=y(p);h.push(g);var _=m(e,p[0]).source,v=t[_];if(g in this.layers){for(var T=this.layers[g],S=[],x=0,C=p.length;x<C;x++)S.push((0,de.getLayerById)(this.props.map.layers,p[x].id));(0,de.jsonEquals)(p,S)||this.applyStyle(T,E(e,p),n);var R=this.map.getView();v.minzoom&&T.setMinResolution(R.getResolutionForZoom(v.minzoom)),v.maxzoom&&T.setMaxResolution(R.getResolutionForZoom(v.maxzoom)),T.setZIndex(d)}else if("background"===p[0].type)(0,V.applyBackground)(this.map,{layers:p});else{var b=E(e,p),I=this.configureLayer(_,v,b,n,r,d);null!==I&&(I.set("name",g),this.layers[g]=I,this.map.addLayer(this.layers[g]))}}this.cleanupLayers(h)}},{key:"updatePopups",value:function(){var t=this,e=this.map.getOverlays(),i=[];e.forEach(function(e){var n=e.get("popupId");!1!==t.popups[n].state.closed&&(t.popups[n].setMap(null),i.push(e),j.default.unmountComponentAtNode(t.elems[n]),delete t.popups[n],delete t.elems[n])});for(var n=0,r=i.length;n<r;n++)this.map.removeOverlay(i[n])}},{key:"removePopup",value:function(t){this.popups[t].close(),this.updatePopups()}},{key:"addPopup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=A.default.v4(),n=document.createElement("div");n.setAttribute("class","sdk-popup");var r=new K.default({element:n,stopEvent:!1,autoPan:!0,autoPanAnimation:{duration:250}}),o=this;j.default.render(t,n,function(){o.popups[i]=this,o.elems[i]=n,this.setMap(o)}),r.set("popupId",i),this.map.addOverlay(r);var a=[t.props.coordinate[0],t.props.coordinate[1]],s=lt.default.transform(a,"EPSG:4326",this.map.getView().getProjection());r.setPosition(s),!0!==e&&this.updatePopups()}},{key:"handleAsyncGetFeatureInfo",value:function(t,e,i){var n=this,r=this.map,o=r.getView(),a=o.getProjection(),s=void 0,l=void 0,u=void 0;if(t.metadata[se.QUERYABLE_KEY]&&(!t.layout||t.layout.visibility&&"none"!==t.layout.visibility)){var c=o.getResolution();if(this.sources[t.source]instanceof vt.default)e.push(new Promise(function(e){l={},u=t.id,s=n.sources[t.source].getGetFeatureInfoUrl(i.coordinate,c,a,{INFO_FORMAT:"application/json"}),(0,w.default)(s).then(function(t){return t.json()},function(t){return console.error("An error occured.",t)}).then(function(t){l[u]=ge.writeFeaturesObject(ge.readFeatures(t),{featureProjection:ge.readProjection(t),dataProjection:"EPSG:4326"}).features,e(l)})}));else if(t.metadata[se.QUERY_ENDPOINT_KEY]){var h=r.getSize();e.push(new Promise(function(e){l={};var n={geometryType:"esriGeometryPoint",geometry:i.coordinate.join(","),sr:a.getCode().split(":")[1],tolerance:2,mapExtent:o.calculateExtent(h).join(","),imageDisplay:h.join(",")+",90",f:"json",pretty:"false"};s=t.metadata[se.QUERY_ENDPOINT_KEY]+"?"+(0,de.encodeQueryObject)(n),(0,pe.default)(s).then(function(t){return t.json()}).then(function(i){u=t.id;for(var n=[],r=0,o=i.results.length;r<o;++r)n.push(_e.readFeature(i.results[r]));l[u]=ge.writeFeaturesObject(n,{featureProjection:a,dataProjection:"EPSG:4326"}).features,e(l)}).catch(function(t){console.error("An error occured.",t)})}))}}}},{key:"queryMap",value:function(t){for(var e=this,i=this.map.getView().getProjection(),n=new Promise(function(n){var r={};e.map.forEachFeatureAtPixel(t.pixel,function(t,e){var n=e.get("name");void 0===r[n]&&(r[n]=[]),t instanceof wt.default?r[n].push({properties:t.getProperties()}):r[n].push(ge.writeFeatureObject(t,{featureProjection:i,dataProjection:"EPSG:4326"}))}),n(r)}),r=[n],o=0,a=this.props.map.layers.length;o<a;++o){var s=this.props.map.layers[o];this.handleAsyncGetFeatureInfo(s,r,t)}return Promise.all(r)}},{key:"configureMap",value:function(){var t=this,e=this.props.projection,i=void 0;void 0!==this.props.map.bearing&&(i=(0,de.degreesToRadians)(this.props.map.bearing));var n=void 0;void 0!==this.props.map.center&&(n=lt.default.transform(this.props.map.center,"EPSG:4326",e));var r=(0,de.getKey)(this.props.map.metadata,se.MIN_ZOOM_KEY),o=(0,de.getKey)(this.props.map.metadata,se.MAX_ZOOM_KEY);this.map=new W.default({interactions:Q.default.defaults(),controls:[new ie.default],target:this.mapdiv,logo:!1,view:new X.default({minZoom:r?r+1:void 0,maxZoom:o?o+1:void 0,center:n,zoom:this.props.map.zoom>=0?this.props.map.zoom+1:this.props.map.zoom,rotation:void 0!==i?-i:0,projection:e})}),this.props.hover&&this.map.on("pointermove",function(e){var i=lt.default.toLonLat(e.coordinate);t.props.setMousePosition({lng:i[0],lat:i[1]},e.coordinate)}),this.map.on("moveend",function(){t.props.setView(t.map)}),this.props.setSize(this.map),this.props.setProjection(e),this.map.on("change:size",function(){t.props.setSize(t.map)}),this.map.on("singleclick",function(e){if(null===t.activeInteractions&&t.map.getRenderer().canvas_===e.originalEvent.target){var i=t.map.getView().getProjection(),n=null;t.props.includeFeaturesOnClick&&(n=t.queryMap(e));var r=lt.default.transform(e.coordinate,i,"EPSG:4326"),o={0:r[0],1:r[1],xy:e.coordinate,hms:ct.default.toStringHDMS(r)};t.props.onClick(t,o,n)}}),this.props.map.layers.length>0&&this.configureSources(this.props.map.sources,this.props.map.metadata[se.SOURCE_VERSION_KEY]).then(function(){t.configureLayers(t.props.map.sources,t.props.map.layers,t.props.map.metadata[se.LAYER_VERSION_KEY],t.props.map.sprite,t.props.declutter)}),this.map.once("postcompose",function(){for(var e=0,i=t.props.initialPopups.length;e<i;e++)t.addPopup(t.props.initialPopups[e],!0);t.updatePopups()}),this.props.drawing&&this.props.drawing.interaction&&this.updateInteraction(this.props.drawing)}},{key:"updateInteraction",value:function(t){var e=this;if(null!==this.activeInteractions){for(var i=0,n=this.activeInteractions.length;i<n;i++)this.map.removeInteraction(this.activeInteractions[i]);this.activeInteractions=null}if(t.interaction===se.INTERACTIONS.modify){var r={wrapX:!1};r=this.setStyleFunc(r,t.modifyStyle);var o=new Kt.default(r),a={features:o.getFeatures()};a=this.setStyleFunc(a,t.modifyStyle);var s=new Xt.default(a);s.on("modifyend",function(i){e.onFeatureEvent("modified",t.sourceName,[i.features.item(0)])}),this.activeInteractions=[o,s]}else if(t.interaction===se.INTERACTIONS.select){var l={wrapX:!1,layers:function(i){var n=e.sources[t.sourceName];return i.getSource()===n}};l=this.setStyleFunc(l,t.selectStyle);var u=new Kt.default(l);u.on("select",function(i){i.selected.length>0?e.onFeatureEvent("selected",t.sourcename,i.selected):i.deselected.length>0&&e.onFeatureEvent("deselected",t.sourcename,i.deselected)}),this.activeInteractions=[u]}else if(se.INTERACTIONS.drawing.includes(t.interaction)){var c={};if(t.interaction===se.INTERACTIONS.box){var h=Wt.default.createBox();c={type:"Circle",geometryFunction:h}}else c={type:t.interaction};var d=this.setStyleFunc(c,t.editStyle),f=new Wt.default(d);f.on("drawend",function(i){e.onFeatureEvent("drawn",t.sourceName,[i.feature])}),this.activeInteractions=[f]}else if(se.INTERACTIONS.measuring.includes(t.interaction)){this.props.clearMeasureFeature();var p=new Wt.default({type:t.interaction.split(":")[1]}),g=null;p.on("drawstart",function(t){var i=t.feature.getGeometry(),n=e.map.getView().getProjection();g=i.on("change",function(t){e.props.setMeasureGeometry(t.target,n)}),e.props.setMeasureGeometry(i,n)}),p.on("drawend",function(){at.default.unByKey(g),e.props.finalizeMeasureFeature()}),this.activeInteractions=[p]}if(this.activeInteractions)for(var _=0,y=this.activeInteractions.length;_<y;_++)this.map.addInteraction(this.activeInteractions[_])}},{key:"setStyleFunc",value:function(t,e){return e&&(t.style=R(e)),t}},{key:"render",value:function(){var t=this,e="sdk-map";return this.props.className&&(e=e+" "+this.props.className),G.default.createElement("div",{style:this.props.style,ref:function(e){t.mapdiv=e},className:e},G.default.createElement("div",{className:"controls"},this.props.children))}}]),e}(G.default.Component);Te.propTypes={declutter:D.default.bool,wrapX:D.default.bool,hover:D.default.bool,projection:D.default.string,map:D.default.shape({center:D.default.array,zoom:D.default.number,bearing:D.default.number,metadata:D.default.object,layers:D.default.array,sources:D.default.object,sprite:D.default.string}),children:D.default.oneOfType([D.default.arrayOf(D.default.node),D.default.node]),mapbox:D.default.shape({baseUrl:D.default.string,accessToken:D.default.string}),style:D.default.object,className:D.default.string,drawing:D.default.shape({interaction:D.default.string,sourceName:D.default.string}),initialPopups:D.default.arrayOf(D.default.object),setView:D.default.func,setSize:D.default.func,setMousePosition:D.default.func,setProjection:D.default.func,includeFeaturesOnClick:D.default.bool,onClick:D.default.func,onFeatureDrawn:D.default.func,onFeatureModified:D.default.func,onFeatureSelected:D.default.func,onFeatureDeselected:D.default.func,onExportImage:D.default.func,setMeasureGeometry:D.default.func,clearMeasureFeature:D.default.func,finalizeMeasureFeature:D.default.func,createLayerFilter:D.default.func},Te.defaultProps={declutter:!1,wrapX:!0,hover:!0,projection:"EPSG:3857",map:{center:[0,0],zoom:2,bearing:0,metadata:{},layers:[],sources:{},sprite:void 0},drawing:{interaction:null,source:null},mapbox:{baseUrl:"",accessToken:""},initialPopups:[],setView:function(){},setSize:function(){},setMousePosition:function(){},setProjection:function(){},includeFeaturesOnClick:!1,onClick:function(){},onFeatureDrawn:function(){},onFeatureModified:function(){},onFeatureSelected:function(){},onFeatureDeselected:function(){},onExportImage:function(){},setMeasureGeometry:function(){},clearMeasureFeature:function(){},finalizeMeasureFeature:function(){},createLayerFilter:function(){}},e.default=(0,B.connect)(S,C,void 0,{withRef:!0})(Te)},function(t,e,i){var n=i(251),r=i(252),o=r;o.v1=n,o.v4=r,t.exports=o},function(t,e,i){function n(t,e,i){var n=e&&i||0,c=e||[];t=t||{};var h=t.node||r,d=void 0!==t.clockseq?t.clockseq:o;if(null==h||null==d){var f=a();null==h&&(h=r=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==d&&(d=o=16383&(f[6]<<8|f[7]))}var p=void 0!==t.msecs?t.msecs:(new Date).getTime(),g=void 0!==t.nsecs?t.nsecs:u+1,_=p-l+(g-u)/1e4;if(_<0&&void 0===t.clockseq&&(d=d+1&16383),(_<0||p>l)&&void 0===t.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=p,u=g,o=d,p+=122192928e5;var y=(1e4*(268435455&p)+g)%4294967296;c[n++]=y>>>24&255,c[n++]=y>>>16&255,c[n++]=y>>>8&255,c[n++]=255&y;var v=p/4294967296*1e4&268435455;c[n++]=v>>>8&255,c[n++]=255&v,c[n++]=v>>>24&15|16,c[n++]=v>>>16&255,c[n++]=d>>>8|128,c[n++]=255&d;for(var m=0;m<6;++m)c[n+m]=h[m];return e||s(c)}var r,o,a=i(135),s=i(136),l=0,u=0;t.exports=n},function(t,e,i){function n(t,e,i){var n=e&&i||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null),t=t||{};var a=t.random||(t.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[n+s]=a[s];return e||o(a)}var r=i(135),o=i(136);t.exports=n},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){var e,i;if(Array.isArray(t)){var n=x.default.getNames(),o=t.map(function(t){return(0,m.default)(t,1).split(" 1px ")[1].replace(/"/g,"")});for(e=0,i=o.length;e<i;++e){var a=o[e],s=t[e];if(-1!==n.indexOf(a)){if(g||(g=[]),-1==g.indexOf(s)){g.push(s);var l="https://fonts.googleapis.com/css?family="+a.replace(/ /g,"+");if(!document.querySelector('link[href="'+l+'"]')){var u=document.createElement("link");u.href=l,u.rel="stylesheet",document.getElementsByTagName("head")[0].appendChild(u)}}break}}}else{var c=t.stops;if(c)for(e=0,i=c.length;e<i;++e)r(c[e][1])}}function o(t){"layout"in t&&"text-field"in t.layout&&r(t.layout["text-font"]||Z)}function a(t,e){return e&&0!=t.indexOf("http")&&(t=e+t),t}function s(t,e,i){t=a(t,e);var n=t.match(J);return n?n[1]+i+(n.length>2?n[2]:""):t+i}function l(t,e,i,n){return new Promise(function(r,a){function l(){f||e.sprite&&!c||g&&!(g.length>0)?f&&t.setStyle(f):(f=(0,T.default)(t,e,i,void 0,c,h,g),r())}"object"!=("undefined"===typeof e?"undefined":p(e))&&(e=JSON.parse(e)),8!=e.version&&a(new Error("glStyle version 8 required."));var u,c,h;if(e.sprite){u=window.devicePixelRatio>=1.5?.5:1;var d=.5==u?"@2x":"";!function t(){var i=s(e.sprite,n,d+".json"),r=new window.XMLHttpRequest;r.open("GET",i),r.onload=r.onerror=function(){200==r.status&&r.responseText?(c=JSON.parse(r.responseText),l()):""!=d?(d="",t()):a(new Error("Sprites cannot be loaded from "+i))},r.send(),h=s(e.sprite,n,d+".png"),l()}()}var f;if(t instanceof B.default||t instanceof U.default)try{for(var _=e.layers,y=0,v=_.length;y<v;++y)("string"==typeof i&&_[y].source==i||i.indexOf(_[y].id)>=0)&&o(_[y]);l()}catch(t){window.setTimeout(function(){a(t)},0)}})}function u(t,e){function i(){var i=t.getTargetElement();if(i){var n=e.layout||{},r=e.paint||{},o=t.getView().getZoom();if("background-color"in r){var a=(0,y.default)(r["background-color"],{function:"interpolated",type:"color"})(o);Array.isArray(a)&&(a="rgba("+Math.round(255*a[0])+","+Math.round(255*a[1])+","+Math.round(255*a[2])+","+(a[3]?a[3]:1)+")"),i.style.backgroundColor=a}"background-opacity"in r&&(i.style.backgroundOpacity=(0,y.default)(r["background-opacity"],{function:"interpolated",type:"number"})(o)),"none"==n.visibility&&(i.style.backgroundColor="",i.style.backgroundOpacity="")}}t.getTargetElement()&&i(),t.on(["change:resolution","change:target"],i)}function c(t,e){e.layers.some(function(e){if("background"==e.type)return u(t,e),!0})}function h(t,e){var i;return t.some(function(t){if(t.id==e)return i=t.source,!0}),i}function d(t,e,i,n,r,o){function s(i){if(T.length>0){e.addLayer(i);var n=function(){l(i,t,T,r).then(function(){i.setVisible(!0)},function(t){console.error(t)})};i.getSource()?n():i.once("change:source",n)}}var c=e.getView();"center"in t&&!Q&&c.setCenter(R.default.fromLonLat(t.center)),"zoom"in t&&!Q&&c.setZoom(t.zoom),"zoom"in t||"center"in t||c.fit(c.getProjection().getExtent(),{nearest:!0,size:e.getSize()}),t.sprite&&(0==t.sprite.indexOf("mapbox://")?t.sprite=i+"/sprite"+o:0!=t.sprite.indexOf("http")&&(t.sprite=(n?n+r:"")+t.sprite+o));for(var d,f,p,g,_,y,v,m=t.layers,E=new L.default,T=[],S=0,x=m.length;S<x;++S)if(d=m[S],"background"==d.type)u(e,d);else{if((g=d.source||h(m,d.ref))!=p){s(_),T=[],f=t.sources[g],v=f.url;var C=f.tiles;if(v&&0==v.indexOf("mapbox://")&&(y=v.replace("mapbox://",""),C=["a","b","c","d"].map(function(t){return"https://"+t+".tiles.mapbox.com/v4/"+y+"/{z}/{x}/{y}."+("vector"==f.type?"vector.pbf":"png")+o})),"vector"==f.type)_=C?new B.default({declutter:!0,source:new H.default({attributions:f.attribution,format:new M.default,tileGrid:I.default.createXYZ({tileSize:512,maxZoom:"maxzoom"in f?f.maxzoom:22,minZoom:f.minzoom}),urls:C}),visible:!1,zIndex:S}):function(){var t=new B.default({declutter:!0,visible:!1,zIndex:S}),e=new Y.default({url:v}),i=e.on("change",function(){if("ready"==e.getState()){for(var n=e.getTileJSON(),r=Array.isArray(n.tiles)?n.tiles:[n.tiles],o=0,a=r.length;o<a;++o){var s=r[o];0!=s.indexOf("http")&&(r[o]=f.url+s)}var l=e.getTileGrid();t.setSource(new H.default({attributions:e.getAttributions(),format:new M.default,tileGrid:I.default.createXYZ({minZoom:l.getMinZoom(),maxZoom:l.getMaxZoom(),tileSize:512}),urls:r})),N.default.unByKey(i)}});return t}();else if("raster"==f.type){var b;b=f.tiles?new q.default({attributions:f.attribution,minZoom:f.minzoom,maxZoom:"maxzoom"in f?f.maxzoom:22,tileSize:f.tileSize||512,url:v,urls:f.tiles,crossOrigin:"anonymous"}):function(){return new Y.default({url:v,crossOrigin:"anonymous"})}(),b.setTileLoadFunction(function(t,e){if(-1!=e.indexOf("{bbox-epsg-3857}")){var i=b.getTileGrid().getTileCoordExtent(t.getTileCoord());e=e.replace("{bbox-epsg-3857}",i.toString())}t.getImage().src=e}),_=new k.default({source:b,visible:!d.layout||"none"!==d.layout.visibility})}else if("geojson"==f.type){var O,P,w=f.data;"string"==typeof w?P=a(w,r):O=E.readFeatures(w,{featureProjection:"EPSG:3857"}),_=new U.default({source:new z.default({attributions:f.attribution,features:O,format:E,url:P}),visible:!1,zIndex:S})}p=g}T.push(d.id)}s(_)}function f(t,e){var i,n,r,o;if(i=n=r=o="",t instanceof P.default||(Q=!1,t=new P.default({target:t})),"string"===typeof e){var a=e.match(J);a&&(n=a[1],i=a.length>2?a[2]:"");var s=new XMLHttpRequest;s.open("GET",e);var l=document.createElement("A");l.href=e,o=l.pathname.split("/").slice(0,-1).join("/")+"/",r=e.substr(0,e.indexOf(o)),s.addEventListener("load",function(){d(JSON.parse(s.responseText),t,n,r,o,i)}),s.addEventListener("error",function(){throw new Error("Could not load "+e)}),s.send()}else d(e,t);return t}Object.defineProperty(e,"__esModule",{value:!0});var p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.applyStyle=l,e.applyBackground=c,e.apply=f;var g,_=i(137),y=n(_),v=i(138),m=n(v),E=i(139),T=n(E),S=i(270),x=n(S),C=i(11),R=n(C),b=i(33),I=n(b),O=i(272),P=n(O),w=i(113),L=n(w),A=i(183),M=n(A),F=i(74),N=n(F),D=i(185),k=n(D),G=i(56),U=n(G),j=i(187),B=n(j),V=i(188),Y=n(V),W=i(57),z=n(W),X=i(196),H=n(X),K=i(197),q=n(K),Z=["Open Sans Regular","Arial Regular"],J=/^(.*)(\?.*)$/,Q=!0},function(t,e){function i(t){return t>_?Math.pow(t,1/3):t/g+f}function n(t){return t>p?t*t*t:g*(t-f)}function r(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function o(t){return t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function a(t){var e=o(t[0]),n=o(t[1]),r=o(t[2]),a=i((.4124564*e+.3575761*n+.1804375*r)/c),s=i((.2126729*e+.7151522*n+.072175*r)/h);return[116*s-16,500*(a-s),200*(s-i((.0193339*e+.119192*n+.9503041*r)/d)),t[3]]}function s(t){var e=(t[0]+16)/116,i=isNaN(t[1])?e:e+t[1]/500,o=isNaN(t[2])?e:e-t[2]/200;return e=h*n(e),i=c*n(i),o=d*n(o),[r(3.2404542*i-1.5371385*e-.4985314*o),r(-.969266*i+1.8760108*e+.041556*o),r(.0556434*i-.2040259*e+1.0572252*o),t[3]]}function l(t){var e=a(t),i=e[0],n=e[1],r=e[2],o=Math.atan2(r,n)*v;return[o<0?o+360:o,Math.sqrt(n*n+r*r),i,t[3]]}function u(t){var e=t[0]*y,i=t[1];return s([t[2],Math.cos(e)*i,Math.sin(e)*i,t[3]])}var c=.95047,h=1,d=1.08883,f=4/29,p=6/29,g=3*p*p,_=p*p*p,y=Math.PI/180,v=180/Math.PI;t.exports={lab:{forward:a,reverse:s},hcl:{forward:l,reverse:u}}},function(t,e,i){var n=i(256).parseCSSColor;t.exports=function(t){if("string"===typeof t){var e=n(t);if(!e)return;return[e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3]]}return Array.isArray(t)?t:void 0}},function(t,e){function i(t){return t=Math.round(t),t<0?0:t>255?255:t}function n(t){return t<0?0:t>1?1:t}function r(t){return i("%"===t[t.length-1]?parseFloat(t)/100*255:parseInt(t))}function o(t){return n("%"===t[t.length-1]?parseFloat(t)/100:parseFloat(t))}function a(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function s(t){var e=t.replace(/ /g,"").toLowerCase();if(e in l)return l[e].slice();if("#"===e[0]){if(4===e.length){var n=parseInt(e.substr(1),16);return n>=0&&n<=4095?[(3840&n)>>4|(3840&n)>>8,240&n|(240&n)>>4,15&n|(15&n)<<4,1]:null}if(7===e.length){var n=parseInt(e.substr(1),16);return n>=0&&n<=16777215?[(16711680&n)>>16,(65280&n)>>8,255&n,1]:null}return null}var s=e.indexOf("("),u=e.indexOf(")");if(-1!==s&&u+1===e.length){var c=e.substr(0,s),h=e.substr(s+1,u-(s+1)).split(","),d=1;switch(c){case"rgba":if(4!==h.length)return null;d=o(h.pop());case"rgb":return 3!==h.length?null:[r(h[0]),r(h[1]),r(h[2]),d];case"hsla":if(4!==h.length)return null;d=o(h.pop());case"hsl":if(3!==h.length)return null;var f=(parseFloat(h[0])%360+360)%360/360,p=o(h[1]),g=o(h[2]),_=g<=.5?g*(p+1):g+p-g*p,y=2*g-_;return[i(255*a(y,_,f+1/3)),i(255*a(y,_,f)),i(255*a(y,_,f-1/3)),d];default:return null}}return null}var l={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};try{e.parseCSSColor=s}catch(t){}},function(t,e){t.exports=function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];var r=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){var u=s.value;for(var c in u)t[c]=u[c]}}catch(t){o=!0,a=t}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return t}},function(t,e){var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":"undefined"===typeof t?"undefined":i(t)}},function(t,e){function i(t,e,i){return t*(1-i)+e*i}t.exports=i,i.number=i,i.vec2=function(t,e,n){return[i(t[0],e[0],n),i(t[1],e[1],n)]},i.color=function(t,e,n){return[i(t[0],e[0],n),i(t[1],e[1],n),i(t[2],e[2],n),i(t[3],e[3],n)]},i.array=function(t,e,n){return t.map(function(t,r){return i(t,e[r],n)})}},function(t,e,i){"use strict";var n=i(0),r=i(58),o=i(9),a=i(18),s=i(21),l=i(24),u=i(142),c=function(t){this.checksums_=null,this.canvas_=null,this.hitDetectionCanvas_=null,this.fill_=void 0!==t.fill?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius_=void 0!==t.radius?t.radius:t.radius1,this.radius2_=t.radius2,this.angle_=void 0!==t.angle?t.angle:0,this.stroke_=void 0!==t.stroke?t.stroke:null,this.anchor_=null,this.size_=null,this.imageSize_=null,this.hitDetectionImageSize_=null,this.atlasManager_=t.atlasManager,this.render_(this.atlasManager_);var e=void 0===t.snapToPixel||t.snapToPixel,i=void 0!==t.rotateWithView&&t.rotateWithView;u.a.call(this,{opacity:1,rotateWithView:i,rotation:void 0!==t.rotation?t.rotation:0,scale:1,snapToPixel:e})};n.a.inherits(c,u.a),c.prototype.clone=function(){var t=new c({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),snapToPixel:this.getSnapToPixel(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),atlasManager:this.atlasManager_});return t.setOpacity(this.getOpacity()),t.setScale(this.getScale()),t},c.prototype.getAnchor=function(){return this.anchor_},c.prototype.getAngle=function(){return this.angle_},c.prototype.getFill=function(){return this.fill_},c.prototype.getHitDetectionImage=function(t){return this.hitDetectionCanvas_},c.prototype.getImage=function(t){return this.canvas_},c.prototype.getImageSize=function(){return this.imageSize_},c.prototype.getHitDetectionImageSize=function(){return this.hitDetectionImageSize_},c.prototype.getImageState=function(){return s.a.LOADED},c.prototype.getOrigin=function(){return this.origin_},c.prototype.getPoints=function(){return this.points_},c.prototype.getRadius=function(){return this.radius_},c.prototype.getRadius2=function(){return this.radius2_},c.prototype.getSize=function(){return this.size_},c.prototype.getStroke=function(){return this.stroke_},c.prototype.listenImageChange=function(t,e){},c.prototype.load=function(){},c.prototype.unlistenImageChange=function(t,e){},c.prototype.render_=function(t){var e,i,n="",s="",u=0,c=null,h=0,d=0;this.stroke_&&(i=this.stroke_.getColor(),null===i&&(i=l.a.defaultStrokeStyle),i=r.a.asColorLike(i),d=this.stroke_.getWidth(),void 0===d&&(d=l.a.defaultLineWidth),c=this.stroke_.getLineDash(),h=this.stroke_.getLineDashOffset(),a.a.CANVAS_LINE_DASH||(c=null,h=0),s=this.stroke_.getLineJoin(),void 0===s&&(s=l.a.defaultLineJoin),n=this.stroke_.getLineCap(),void 0===n&&(n=l.a.defaultLineCap),void 0===(u=this.stroke_.getMiterLimit())&&(u=l.a.defaultMiterLimit));var f=2*(this.radius_+d)+1,p={strokeStyle:i,strokeWidth:d,size:f,lineCap:n,lineDash:c,lineDashOffset:h,lineJoin:s,miterLimit:u};if(void 0===t){var g=o.a.createCanvasContext2D(f,f);this.canvas_=g.canvas,f=this.canvas_.width,e=f,this.draw_(p,g,0,0),this.createHitDetectionCanvas_(p)}else{f=Math.round(f);var _,y=!this.fill_;y&&(_=this.drawHitDetectionCanvas_.bind(this,p));var v=this.getChecksum(),m=t.add(v,f,f,this.draw_.bind(this,p),_);this.canvas_=m.image,this.origin_=[m.offsetX,m.offsetY],e=m.image.width,y?(this.hitDetectionCanvas_=m.hitImage,this.hitDetectionImageSize_=[m.hitImage.width,m.hitImage.height]):(this.hitDetectionCanvas_=this.canvas_,this.hitDetectionImageSize_=[e,e])}this.anchor_=[f/2,f/2],this.size_=[f,f],this.imageSize_=[e,e]},c.prototype.draw_=function(t,e,i,n){var o,a,s;e.setTransform(1,0,0,1,0,0),e.translate(i,n),e.beginPath();var u=this.points_;if(u===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_&&(u*=2),o=0;o<=u;o++)a=2*o*Math.PI/u-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))}if(this.fill_){var h=this.fill_.getColor();null===h&&(h=l.a.defaultFillStyle),e.fillStyle=r.a.asColorLike(h),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,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()},c.prototype.createHitDetectionCanvas_=function(t){if(this.hitDetectionImageSize_=[t.size,t.size],this.fill_)return void(this.hitDetectionCanvas_=this.canvas_);var e=o.a.createCanvasContext2D(t.size,t.size);this.hitDetectionCanvas_=e.canvas,this.drawHitDetectionCanvas_(t,e,0,0)},c.prototype.drawHitDetectionCanvas_=function(t,e,i,n){e.setTransform(1,0,0,1,0,0),e.translate(i,n),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);var a,s,u;for(a=0;a<=r;a++)u=2*a*Math.PI/r-Math.PI/2+this.angle_,s=a%2===0?this.radius_:o,e.lineTo(t.size/2+s*Math.cos(u),t.size/2+s*Math.sin(u))}e.fillStyle=l.a.defaultFillStyle,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()},c.prototype.getChecksum=function(){var t=this.stroke_?this.stroke_.getChecksum():"-",e=this.fill_?this.fill_.getChecksum():"-";if(!this.checksums_||t!=this.checksums_[1]||e!=this.checksums_[2]||this.radius_!=this.checksums_[3]||this.radius2_!=this.checksums_[4]||this.angle_!=this.checksums_[5]||this.points_!=this.checksums_[6]){var i="r"+t+e+(void 0!==this.radius_?this.radius_.toString():"-")+(void 0!==this.radius2_?this.radius2_.toString():"-")+(void 0!==this.angle_?this.angle_.toString():"-")+(void 0!==this.points_?this.points_.toString():"-");this.checksums_=[i,t,e,this.radius_,this.radius2_,this.angle_,this.points_]}return this.checksums_[0]},e.a=c},function(t,e,i){"use strict";var n={FRACTION:"fraction",PIXELS:"pixels"};e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(9),o=i(3),a=i(40),s=i(4),l=i(21),u=i(144),c=function(t,e,i,n,r,o){a.a.call(this),this.hitDetectionImage_=null,this.image_=t||new Image,null!==n&&(this.image_.crossOrigin=n),this.canvas_=o?document.createElement("CANVAS"):null,this.color_=o,this.imageListenerKeys_=null,this.imageState_=r,this.size_=i,this.src_=e,this.tainting_=!1,this.imageState_==l.a.LOADED&&this.determineTainting_()};n.a.inherits(c,a.a),c.get=function(t,e,i,n,r,o){var a=u.a.iconImageCache,s=a.get(e,n,o);return s||(s=new c(t,e,i,n,r,o),a.set(e,n,o,s)),s},c.prototype.determineTainting_=function(){var t=r.a.createCanvasContext2D(1,1);try{t.drawImage(this.image_,0,0),t.getImageData(0,0,1,1)}catch(t){this.tainting_=!0}},c.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(s.a.CHANGE)},c.prototype.handleImageError_=function(){this.imageState_=l.a.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},c.prototype.handleImageLoad_=function(){this.imageState_=l.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.determineTainting_(),this.replaceColor_(),this.dispatchChangeEvent_()},c.prototype.getImage=function(t){return this.canvas_?this.canvas_:this.image_},c.prototype.getImageState=function(){return this.imageState_},c.prototype.getHitDetectionImage=function(t){if(!this.hitDetectionImage_)if(this.tainting_){var e=this.size_[0],i=this.size_[1],n=r.a.createCanvasContext2D(e,i);n.fillRect(0,0,e,i),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},c.prototype.getSize=function(){return this.size_},c.prototype.getSrc=function(){return this.src_},c.prototype.load=function(){if(this.imageState_==l.a.IDLE){this.imageState_=l.a.LOADING,this.imageListenerKeys_=[o.a.listenOnce(this.image_,s.a.ERROR,this.handleImageError_,this),o.a.listenOnce(this.image_,s.a.LOAD,this.handleImageLoad_,this)];try{this.image_.src=this.src_}catch(t){this.handleImageError_()}}},c.prototype.replaceColor_=function(){if(!this.tainting_&&null!==this.color_){this.canvas_.width=this.image_.width,this.canvas_.height=this.image_.height;var t=this.canvas_.getContext("2d");t.drawImage(this.image_,0,0);for(var e=t.getImageData(0,0,this.image_.width,this.image_.height),i=e.data,n=this.color_[0]/255,r=this.color_[1]/255,o=this.color_[2]/255,a=0,s=i.length;a<s;a+=4)i[a]*=n,i[a+1]*=r,i[a+2]*=o;t.putImageData(e,0,0)}},c.prototype.unlistenImage_=function(){this.imageListenerKeys_.forEach(o.a.unlistenByKey),this.imageListenerKeys_=null},e.a=c},function(t,e,i){"use strict";var n=i(32),r=function(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32};r.getKey=function(t,e,i){return e+":"+t+":"+(i?n.a.asString(i):"null")},r.prototype.clear=function(){this.cache_={},this.cacheSize_=0},r.prototype.expire=function(){if(this.cacheSize_>this.maxCacheSize_){var t,e,i=0;for(t in this.cache_)e=this.cache_[t],0!==(3&i++)||e.hasListener()||(delete this.cache_[t],--this.cacheSize_)}},r.prototype.get=function(t,e,i){var n=r.getKey(t,e,i);return n in this.cache_?this.cache_[n]:null},r.prototype.set=function(t,e,i,n){var o=r.getKey(t,e,i);this.cache_[o]=n,++this.cacheSize_},r.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},e.a=r},function(t,e,i){"use strict";var n={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"};e.a=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(97),r=i(145),o=function t(e){var i=e||{};this.font_=i.font,this.rotation_=i.rotation,this.rotateWithView_=i.rotateWithView,this.scale_=i.scale,this.text_=i.text,this.textAlign_=i.textAlign,this.textBaseline_=i.textBaseline,this.fill_=void 0!==i.fill?i.fill:new n.default({color:t.DEFAULT_FILL_COLOR_}),this.maxAngle_=void 0!==i.maxAngle?i.maxAngle:Math.PI/4,this.placement_=void 0!==i.placement?i.placement:r.a.POINT;var o=void 0===i.overflow?i.exceedLength:i.overflow;this.overflow_=void 0!==o&&o,this.stroke_=void 0!==i.stroke?i.stroke:null,this.offsetX_=void 0!==i.offsetX?i.offsetX:0,this.offsetY_=void 0!==i.offsetY?i.offsetY:0,this.backgroundFill_=i.backgroundFill?i.backgroundFill:null,this.backgroundStroke_=i.backgroundStroke?i.backgroundStroke:null,this.padding_=void 0===i.padding?null:i.padding};o.DEFAULT_FILL_COLOR_="#333",o.prototype.clone=function(){return new o({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:this.getScale(),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()})},o.prototype.getOverflow=function(){return this.overflow_},o.prototype.getFont=function(){return this.font_},o.prototype.getMaxAngle=function(){return this.maxAngle_},o.prototype.getPlacement=function(){return this.placement_},o.prototype.getOffsetX=function(){return this.offsetX_},o.prototype.getOffsetY=function(){return this.offsetY_},o.prototype.getFill=function(){return this.fill_},o.prototype.getRotateWithView=function(){return this.rotateWithView_},o.prototype.getRotation=function(){return this.rotation_},o.prototype.getScale=function(){return this.scale_},o.prototype.getStroke=function(){return this.stroke_},o.prototype.getText=function(){return this.text_},o.prototype.getTextAlign=function(){return this.textAlign_},o.prototype.getTextBaseline=function(){return this.textBaseline_},o.prototype.getBackgroundFill=function(){return this.backgroundFill_},o.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},o.prototype.getPadding=function(){return this.padding_},o.prototype.setOverflow=function(t){this.overflow_=t},o.prototype.setFont=function(t){this.font_=t},o.prototype.setMaxAngle=function(t){this.maxAngle_=t},o.prototype.setOffsetX=function(t){this.offsetX_=t},o.prototype.setOffsetY=function(t){this.offsetY_=t},o.prototype.setPlacement=function(t){this.placement_=t},o.prototype.setFill=function(t){this.fill_=t},o.prototype.setRotation=function(t){this.rotation_=t},o.prototype.setScale=function(t){this.scale_=t},o.prototype.setStroke=function(t){this.stroke_=t},o.prototype.setText=function(t){this.text_=t},o.prototype.setTextAlign=function(t){this.textAlign_=t},o.prototype.setTextBaseline=function(t){this.textBaseline_=t},o.prototype.setBackgroundFill=function(t){this.backgroundFill_=t},o.prototype.setBackgroundStroke=function(t){this.backgroundStroke_=t},o.prototype.setPadding=function(t){this.padding_=t},e.default=o},function(t,e,i){"use strict";var n=i(0),r=i(6),o=i(75),a=i(27),s={};s.Projection_=function(t){o.a.call(this,{code:t,units:a.a.METERS,extent:s.EXTENT,global:!0,worldExtent:s.WORLD_EXTENT,getPointResolution:function(t,e){return t/r.a.cosh(e[1]/s.RADIUS)}})},n.a.inherits(s.Projection_,o.a),s.RADIUS=6378137,s.HALF_SIZE=Math.PI*s.RADIUS,s.EXTENT=[-s.HALF_SIZE,-s.HALF_SIZE,s.HALF_SIZE,s.HALF_SIZE],s.WORLD_EXTENT=[-180,-85,180,85],s.PROJECTIONS=[new s.Projection_("EPSG:3857"),new s.Projection_("EPSG:102100"),new s.Projection_("EPSG:102113"),new s.Projection_("EPSG:900913"),new s.Projection_("urn:ogc:def:crs:EPSG:6.18:3:3857"),new s.Projection_("urn:ogc:def:crs:EPSG::3857"),new s.Projection_("http://www.opengis.net/gml/srs/epsg.xml#3857")],s.fromEPSG4326=function(t,e,i){var n=t.length,r=i>1?i:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(n));for(var a=s.HALF_SIZE,l=0;l<n;l+=r){o[l]=a*t[l]/180;var u=s.RADIUS*Math.log(Math.tan(Math.PI*(t[l+1]+90)/360));u>a?u=a:u<-a&&(u=-a),o[l+1]=u}return o},s.toEPSG4326=function(t,e,i){var n=t.length,r=i>1?i:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(n));for(var a=0;a<n;a+=r)o[a]=180*t[a]/s.HALF_SIZE,o[a+1]=360*Math.atan(Math.exp(t[a+1]/s.RADIUS))/Math.PI-90;return o},e.a=s},function(t,e,i){"use strict";var n=i(0),r=i(75),o=i(27),a={};a.Projection_=function(t,e){r.a.call(this,{code:t,units:o.a.DEGREES,extent:a.EXTENT,axisOrientation:e,global:!0,metersPerUnit:a.METERS_PER_UNIT,worldExtent:a.EXTENT})},n.a.inherits(a.Projection_,r.a),a.RADIUS=6378137,a.EXTENT=[-180,-90,180,90],a.METERS_PER_UNIT=Math.PI*a.RADIUS/180,a.PROJECTIONS=[new a.Projection_("CRS:84"),new a.Projection_("EPSG:4326","neu"),new a.Projection_("urn:ogc:def:crs:EPSG::4326","neu"),new a.Projection_("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new a.Projection_("urn:ogc:def:crs:OGC:1.3:CRS84"),new a.Projection_("urn:ogc:def:crs:OGC:2:84"),new a.Projection_("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new a.Projection_("urn:x-ogc:def:crs:EPSG:4326","neu")],e.a=a},function(t,e,i){"use strict";var n={};n.cache_={},n.clear=function(){n.cache_={}},n.get=function(t){return n.cache_[t]||null},n.add=function(t,e){n.cache_[t]=e},e.a=n},function(t,e,i){"use strict";var n=i(2),r={};r.cache_={},r.clear=function(){r.cache_={}},r.add=function(t,e,i){var n=t.getCode(),o=e.getCode(),a=r.cache_;n in a||(a[n]={}),a[n][o]=i},r.remove=function(t,e){var i=t.getCode(),o=e.getCode(),a=r.cache_,s=a[i][o];return delete a[i][o],n.a.isEmpty(a[i])&&delete a[i],s},r.get=function(t,e){var i,n=r.cache_;return t in n&&e in n[t]&&(i=n[t][e]),i},e.a=r},function(t,e){(function(){var e;t.exports={icon:"icons/google.svg",name:"google",title:"Google Fonts",link:"google.com/fonts",getNames:function(){return e},getLink:function(t){return"https://fonts.google.com/specimen/"+t.replace(/( )/g,"+")},normalizeName:function(t){return t}},e=["ABeeZee","Abel","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alegreya Sans","Alegreya Sans SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Amiri","Amita","Anaheim","Andada","Andika","Angkor","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo Black","Archivo Narrow","Arimo","Arizonia","Armata","Artifika","Arvo","Arya","Asap","Asar","Asset","Astloch","Asul","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Balthazar","Bangers","Basic","Battambang","Baumans","Bayon","Belgrano","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","Biryani","Bitter","Black Ops One","Bokor","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Calligraffitti","Cambay","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Catamaran","Caudex","Caveat","Caveat Brush","Cedarville Cursive","Ceviche One","Changa One","Chango","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Chonburi","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Corben","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script","Dangrek","Dawning of a New Day","Days One","Dekko","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Dhurjati","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Droid Sans","Droid Sans Mono","Droid Serif","Duru Sans","Dynalight","EB Garamond","Eagle Lake","Eater","Economica","Eczar","Ek Mukta","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Engagement","Englebert","Enriqueta","Erica One","Esteban","Euphoria Script","Ewert","Exo","Exo 2","Expletus Sans","Fanwood Text","Fascinate","Fascinate Inline","Faster One","Fasthand","Fauna One","Federant","Federo","Felipa","Fenix","Finger Paint","Fira Mono","Fira Sans","Fjalla One","Fjord One","Flamenco","Flavors","Fondamento","Fontdiner Swanky","Forum","Francois One","Freckle Face","Fredericka the Great","Fredoka One","Freehand","Fresca","Frijole","Fruktur","Fugaz One","GFS Didot","GFS Neohellenic","Gabriela","Gafata","Galdeano","Galindo","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","Gidugu","Gilda Display","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Gorditas","Goudy Bookletter 1911","Graduate","Grand Hotel","Gravitas One","Great Vibes","Griffy","Gruppo","Gudea","Gurajada","Habibi","Halant","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Hanuman","Happy Monkey","Headland One","Henny Penny","Herr Von Muellerhoff","Hind","Hind Siliguri","Hind Vadodara","Holtwood One SC","Homemade Apple","Homenaje","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Iceberg","Iceland","Imprima","Inconsolata","Inder","Indie Flower","Inika","Inknut Antiqua","Irish Grover","Istok Web","Italiana","Italianno","Itim","Jacques Francois","Jacques Francois Shadow","Jaldi","Jim Nightshade","Jockey One","Jolly Lodger","Josefin Sans","Josefin Slab","Joti One","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","Kadwa","Kalam","Kameron","Kantumruy","Karla","Karma","Kaushan Script","Kavoon","Kdam Thmor","Keania One","Kelly Slab","Kenia","Khand","Khmer","Khula","Kite One","Knewave","Kotta One","Koulen","Kranky","Kreon","Kristi","Krona One","Kurale","La Belle Aurore","Laila","Lakki Reddy","Lancelot","Lateef","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Libre Baskerville","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","Macondo","Macondo Swash Caps","Magra","Maiden Orange","Mako","Mallanna","Mandali","Marcellus","Marcellus SC","Marck Script","Margarine","Marko One","Marmelad","Martel","Martel Sans","Marvel","Mate","Mate SC","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Miniver","Miss Fajardose","Modak","Modern Antiqua","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Moul","Moulpali","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Muli","Mystery Quest","NTR","Neucha","Neuton","New Rocker","News Cycle","Niconne","Nixie One","Nobile","Nokora","Norican","Nosifer","Nothing You Could Do","Noticia Text","Noto Sans","Noto Serif","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Odor Mean Chey","Offside","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orienta","Original Surfer","Oswald","Over the Rainbow","Overlock","Overlock SC","Ovo","Oxygen","Oxygen Mono","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Pacifico","Palanquin","Palanquin Dark","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Patua One","Paytone One","Peddana","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Poppins","Port Lligat Sans","Port Lligat Slab","Pragati Narrow","Prata","Preahvihear","Press Start 2P","Princess Sofia","Prociono","Prosto One","Puritan","Purple Purse","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Rajdhani","Raleway","Raleway Dots","Ramabhadra","Ramaraja","Rambla","Rammetto One","Ranchers","Rancho","Ranga","Rationale","Ravi Prakash","Redressed","Reenie Beanie","Revalia","Rhodium Libre","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Mono","Roboto Slab","Rochester","Rock Salt","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Rozha One","Rubik","Rubik Mono One","Rubik One","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","Sacramento","Sahitya","Sail","Salsa","Sanchez","Sancreek","Sansita One","Sarala","Sarina","Sarpanch","Satisfy","Scada","Scheherazade","Schoolbell","Seaweed Script","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shojumaru","Short Stack","Siemreap","Sigmar One","Signika","Signika Negative","Simonetta","Sintony","Sirin Stencil","Six Caps","Skranji","Slabo 13px","Slabo 27px","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Sonsie One","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Source Serif Pro","Special Elite","Spicy Rice","Spinnaker","Spirax","Squada One","Sree Krushnadevaraya","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Sue Ellen Francisco","Sumana","Sunshiney","Supermercado One","Sura","Suranna","Suravaram","Suwannaphum","Swanky and Moo Moo","Syncopate","Tangerine","Taprom","Tauri","Teko","Telex","Tenali Ramakrishna","Tenor Sans","Text Me One","The Girl Next Door","Tienne","Tillana","Timmana","Tinos","Titan One","Titillium Web","Trade Winds","Trocchi","Trochut","Trykker","Tulpen One","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","VT323","Vampiro One","Varela","Varela Round","Vast Shadow","Vesper Libre","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Voltaire","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Work Sans","Yanone Kaffeesatz","Yantramanav","Yellowtail","Yeseva One","Yesteryear","Zeyada"]}).call(this)},function(t,e,i){"use strict";var n=i(0),r=i(7),o=i(76),a=i(5),s=i(1),l=i(6),u=i(41),c=i(34),h=function(t){this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,r.a.assert(a.a.isSorted(this.resolutions_,function(t,e){return e-t},!0),17);var e;if(!t.origins)for(var i=0,l=this.resolutions_.length-1;i<l;++i)if(e){if(this.resolutions_[i]/this.resolutions_[i+1]!==e){e=void 0;break}}else e=this.resolutions_[i]/this.resolutions_[i+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,r.a.assert(this.origins_.length==this.resolutions_.length,20));var u=t.extent;void 0===u||this.origin_||this.origins_||(this.origin_=s.a.getTopLeft(u)),r.a.assert(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,r.a.assert(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:n.a.DEFAULT_TILE_SIZE,r.a.assert(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==u?u:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map(function(t,e){return new o.a(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1))},this):u&&this.calculateTileRanges_(u)};h.tmpTileCoord_=[0,0,0],h.prototype.forEachTileCoord=function(t,e,i){for(var n=this.getTileRangeForExtentAndZ(t,e),r=n.minX,o=n.maxX;r<=o;++r)for(var a=n.minY,s=n.maxY;a<=s;++a)i([e,r,a])},h.prototype.forEachTileCoordParentTileRange=function(t,e,i,n,r){var a,s,l,u=null,c=t[0]-1;for(2===this.zoomFactor_?(s=t[1],l=t[2]):u=this.getTileCoordExtent(t,r);c>=this.minZoom;){if(2===this.zoomFactor_?(s=Math.floor(s/2),l=Math.floor(l/2),a=o.a.createOrUpdate(s,s,l,l,n)):a=this.getTileRangeForExtentAndZ(u,c,n),e.call(i,c,a))return!0;--c}return!1},h.prototype.getExtent=function(){return this.extent_},h.prototype.getMaxZoom=function(){return this.maxZoom},h.prototype.getMinZoom=function(){return this.minZoom},h.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},h.prototype.getResolution=function(t){return this.resolutions_[t]},h.prototype.getResolutions=function(){return this.resolutions_},h.prototype.getTileCoordChildTileRange=function(t,e,i){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){var n=2*t[1],r=2*t[2];return o.a.createOrUpdate(n,n+1,r,r+1,e)}var a=this.getTileCoordExtent(t,i);return this.getTileRangeForExtentAndZ(a,t[0]+1,e)}return null},h.prototype.getTileRangeExtent=function(t,e,i){var n=this.getOrigin(t),r=this.getResolution(t),o=u.a.toSize(this.getTileSize(t),this.tmpSize_),a=n[0]+e.minX*o[0]*r,l=n[0]+(e.maxX+1)*o[0]*r,c=n[1]+e.minY*o[1]*r,h=n[1]+(e.maxY+1)*o[1]*r;return s.a.createOrUpdate(a,c,l,h,i)},h.prototype.getTileRangeForExtentAndZ=function(t,e,i){var n=h.tmpTileCoord_;this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,n);var r=n[1],a=n[2];return this.getTileCoordForXYAndZ_(t[2],t[3],e,!0,n),o.a.createOrUpdate(r,n[1],a,n[2],i)},h.prototype.getTileCoordCenter=function(t){var e=this.getOrigin(t[0]),i=this.getResolution(t[0]),n=u.a.toSize(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*n[0]*i,e[1]+(t[2]+.5)*n[1]*i]},h.prototype.getTileCoordExtent=function(t,e){var i=this.getOrigin(t[0]),n=this.getResolution(t[0]),r=u.a.toSize(this.getTileSize(t[0]),this.tmpSize_),o=i[0]+t[1]*r[0]*n,a=i[1]+t[2]*r[1]*n,l=o+r[0]*n,c=a+r[1]*n;return s.a.createOrUpdate(o,a,l,c,e)},h.prototype.getTileCoordForCoordAndResolution=function(t,e,i){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,i)},h.prototype.getTileCoordForXYAndResolution_=function(t,e,i,n,r){var o=this.getZForResolution(i),a=i/this.getResolution(o),s=this.getOrigin(o),l=u.a.toSize(this.getTileSize(o),this.tmpSize_),h=n?.5:0,d=n?0:.5,f=Math.floor((t-s[0])/i+h),p=Math.floor((e-s[1])/i+d),g=a*f/l[0],_=a*p/l[1];return n?(g=Math.ceil(g)-1,_=Math.ceil(_)-1):(g=Math.floor(g),_=Math.floor(_)),c.a.createOrUpdate(o,g,_,r)},h.prototype.getTileCoordForXYAndZ_=function(t,e,i,n,r){var o=this.getOrigin(i),a=this.getResolution(i),s=u.a.toSize(this.getTileSize(i),this.tmpSize_),l=n?.5:0,h=n?0:.5,d=Math.floor((t-o[0])/a+l),f=Math.floor((e-o[1])/a+h),p=d/s[0],g=f/s[1];return n?(p=Math.ceil(p)-1,g=Math.ceil(g)-1):(p=Math.floor(p),g=Math.floor(g)),c.a.createOrUpdate(i,p,g,r)},h.prototype.getTileCoordForCoordAndZ=function(t,e,i){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,i)},h.prototype.getTileCoordResolution=function(t){return this.resolutions_[t[0]]},h.prototype.getTileSize=function(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]},h.prototype.getFullTileRange=function(t){return this.fullTileRanges_?this.fullTileRanges_[t]:null},h.prototype.getZForResolution=function(t,e){var i=a.a.linearFindNearest(this.resolutions_,t,e||0);return l.a.clamp(i,this.minZoom,this.maxZoom)},h.prototype.calculateTileRanges_=function(t){for(var e=this.resolutions_.length,i=new Array(e),n=this.minZoom;n<e;++n)i[n]=this.getTileRangeForExtentAndZ(t,n);this.fullTileRanges_=i},e.a=h},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(150),o=i(105),a=i(286),s=i(161),l=i(2),u=i(61),c=i(302),h=i(168),d=i(108),f=i(304),p=i(312),g=i(313),_=i(332),y=i(333),v=i(336);n.a.ENABLE_CANVAS&&(u.default.register(o.default.MAP_RENDERER,h.default),u.default.registerMultiple(o.default.LAYER_RENDERER,[c.a,d.default,f.a,p.a])),n.a.ENABLE_WEBGL&&(u.default.register(o.default.MAP_RENDERER,_.a),u.default.registerMultiple(o.default.LAYER_RENDERER,[g.a,y.a,v.a]));var m=function(t){t=l.a.assign({},t),t.controls||(t.controls=a.a.defaults()),t.interactions||(t.interactions=s.default.defaults()),r.default.call(this,t)};n.a.inherits(m,r.default),e.default=m},function(t,e,i){"use strict";var n=i(0),r=i(18),o=i(42),a=i(99),s=i(3),l=i(40),u=i(153),c=i(274),h=function(t,e){l.a.call(this),this.map_=t,this.clickTimeoutId_=0,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=e?e*r.a.DEVICE_PIXEL_RATIO:r.a.DEVICE_PIXEL_RATIO,this.down_=null;var i=this.map_.getViewport();this.activePointers_=0,this.trackedTouches_={},this.pointerEventHandler_=new c.a(i),this.documentPointerEventHandler_=null,this.pointerdownListenerKey_=s.a.listen(this.pointerEventHandler_,u.a.POINTERDOWN,this.handlePointerDown_,this),this.relayedListenerKey_=s.a.listen(this.pointerEventHandler_,u.a.POINTERMOVE,this.relayEvent_,this)};n.a.inherits(h,l.a),h.prototype.emulateClick_=function(t){var e=new a.a(o.a.CLICK,this.map_,t);this.dispatchEvent(e),0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=0,e=new a.a(o.a.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=0;var e=new a.a(o.a.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}.bind(this),250)},h.prototype.updateActivePointers_=function(t){var e=t;e.type==o.a.POINTERUP||e.type==o.a.POINTERCANCEL?delete this.trackedTouches_[e.pointerId]:e.type==o.a.POINTERDOWN&&(this.trackedTouches_[e.pointerId]=!0),this.activePointers_=Object.keys(this.trackedTouches_).length},h.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new a.a(o.a.POINTERUP,this.map_,t);this.dispatchEvent(e),e.propagationStopped||this.dragging_||!this.isMouseActionButton_(t)||this.emulateClick_(this.down_),0===this.activePointers_&&(this.dragListenerKeys_.forEach(s.a.unlistenByKey),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null,this.documentPointerEventHandler_.dispose(),this.documentPointerEventHandler_=null)},h.prototype.isMouseActionButton_=function(t){return 0===t.button},h.prototype.handlePointerDown_=function(t){this.updateActivePointers_(t);var e=new a.a(o.a.POINTERDOWN,this.map_,t);this.dispatchEvent(e),this.down_=t,0===this.dragListenerKeys_.length&&(this.documentPointerEventHandler_=new c.a(document),this.dragListenerKeys_.push(s.a.listen(this.documentPointerEventHandler_,o.a.POINTERMOVE,this.handlePointerMove_,this),s.a.listen(this.documentPointerEventHandler_,o.a.POINTERUP,this.handlePointerUp_,this),s.a.listen(this.pointerEventHandler_,o.a.POINTERCANCEL,this.handlePointerUp_,this)))},h.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.dragging_=!0;var e=new a.a(o.a.POINTERDRAG,this.map_,t,this.dragging_);this.dispatchEvent(e)}t.preventDefault()},h.prototype.relayEvent_=function(t){var e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new a.a(t.type,this.map_,t,e))},h.prototype.isMoving_=function(t){return Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},h.prototype.disposeInternal=function(){this.relayedListenerKey_&&(s.a.unlistenByKey(this.relayedListenerKey_),this.relayedListenerKey_=null),this.pointerdownListenerKey_&&(s.a.unlistenByKey(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(s.a.unlistenByKey),this.dragListenerKeys_.length=0,this.documentPointerEventHandler_&&(this.documentPointerEventHandler_.dispose(),this.documentPointerEventHandler_=null),this.pointerEventHandler_&&(this.pointerEventHandler_.dispose(),this.pointerEventHandler_=null),l.a.prototype.disposeInternal.call(this)},e.a=h},function(t,e,i){"use strict";var n=i(0),r=i(3),o=i(40),a=i(18),s=i(153),l=i(154),u=i(275),c=i(276),h=i(277),d=i(278),f=function(t){o.a.call(this),this.element_=t,this.pointerMap={},this.eventMap_={},this.eventSourceList_=[],this.registerSources()};n.a.inherits(f,o.a),f.prototype.registerSources=function(){if(a.a.POINTER)this.registerSource("native",new c.a(this));else if(a.a.MSPOINTER)this.registerSource("ms",new u.a(this));else{var t=new l.a(this);this.registerSource("mouse",t),a.a.TOUCH&&this.registerSource("touch",new d.a(this,t))}this.register_()},f.prototype.registerSource=function(t,e){var i=e,n=i.getEvents();n&&(n.forEach(function(t){var e=i.getHandlerForEvent(t);e&&(this.eventMap_[t]=e.bind(i))},this),this.eventSourceList_.push(i))},f.prototype.register_=function(){for(var t,e=this.eventSourceList_.length,i=0;i<e;i++)t=this.eventSourceList_[i],this.addEvents_(t.getEvents())},f.prototype.unregister_=function(){for(var t,e=this.eventSourceList_.length,i=0;i<e;i++)t=this.eventSourceList_[i],this.removeEvents_(t.getEvents())},f.prototype.eventHandler_=function(t){var e=t.type,i=this.eventMap_[e];i&&i(t)},f.prototype.addEvents_=function(t){t.forEach(function(t){r.a.listen(this.element_,t,this.eventHandler_,this)},this)},f.prototype.removeEvents_=function(t){t.forEach(function(t){r.a.unlisten(this.element_,t,this.eventHandler_,this)},this)},f.prototype.cloneEvent=function(t,e){for(var i,n={},r=0,o=f.CLONE_PROPS.length;r<o;r++)i=f.CLONE_PROPS[r][0],n[i]=t[i]||e[i]||f.CLONE_PROPS[r][1];return n},f.prototype.down=function(t,e){this.fireEvent(s.a.POINTERDOWN,t,e)},f.prototype.move=function(t,e){this.fireEvent(s.a.POINTERMOVE,t,e)},f.prototype.up=function(t,e){this.fireEvent(s.a.POINTERUP,t,e)},f.prototype.enter=function(t,e){t.bubbles=!1,this.fireEvent(s.a.POINTERENTER,t,e)},f.prototype.leave=function(t,e){t.bubbles=!1,this.fireEvent(s.a.POINTERLEAVE,t,e)},f.prototype.over=function(t,e){t.bubbles=!0,this.fireEvent(s.a.POINTEROVER,t,e)},f.prototype.out=function(t,e){t.bubbles=!0,this.fireEvent(s.a.POINTEROUT,t,e)},f.prototype.cancel=function(t,e){this.fireEvent(s.a.POINTERCANCEL,t,e)},f.prototype.leaveOut=function(t,e){this.out(t,e),this.contains_(t.target,t.relatedTarget)||this.leave(t,e)},f.prototype.enterOver=function(t,e){this.over(t,e),this.contains_(t.target,t.relatedTarget)||this.enter(t,e)},f.prototype.contains_=function(t,e){return!(!t||!e)&&t.contains(e)},f.prototype.makeEvent=function(t,e,i){return new h.a(t,i,e)},f.prototype.fireEvent=function(t,e,i){var n=this.makeEvent(t,e,i);this.dispatchEvent(n)},f.prototype.fireNativeEvent=function(t){var e=this.makeEvent(t.type,t,t);this.dispatchEvent(e)},f.prototype.wrapMouseEvent=function(t,e){return this.makeEvent(t,l.a.prepareEvent(e,this),e)},f.prototype.disposeInternal=function(){this.unregister_(),o.a.prototype.disposeInternal.call(this)},f.CLONE_PROPS=[["bubbles",!1],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",!1],["type",""],["target",null],["currentTarget",null],["which",0]],e.a=f},function(t,e,i){"use strict";var n=i(0),r=i(77),o=function(t){var e={MSPointerDown:this.msPointerDown,MSPointerMove:this.msPointerMove,MSPointerUp:this.msPointerUp,MSPointerOut:this.msPointerOut,MSPointerOver:this.msPointerOver,MSPointerCancel:this.msPointerCancel,MSGotPointerCapture:this.msGotPointerCapture,MSLostPointerCapture:this.msLostPointerCapture};r.a.call(this,t,e),this.pointerMap=t.pointerMap,this.POINTER_TYPES=["","unavailable","touch","pen","mouse"]};n.a.inherits(o,r.a),o.prototype.prepareEvent_=function(t){var e=t;return"number"===typeof t.pointerType&&(e=this.dispatcher.cloneEvent(t,t),e.pointerType=this.POINTER_TYPES[t.pointerType]),e},o.prototype.cleanup=function(t){delete this.pointerMap[t.toString()]},o.prototype.msPointerDown=function(t){this.pointerMap[t.pointerId.toString()]=t;var e=this.prepareEvent_(t);this.dispatcher.down(e,t)},o.prototype.msPointerMove=function(t){var e=this.prepareEvent_(t);this.dispatcher.move(e,t)},o.prototype.msPointerUp=function(t){var e=this.prepareEvent_(t);this.dispatcher.up(e,t),this.cleanup(t.pointerId)},o.prototype.msPointerOut=function(t){var e=this.prepareEvent_(t);this.dispatcher.leaveOut(e,t)},o.prototype.msPointerOver=function(t){var e=this.prepareEvent_(t);this.dispatcher.enterOver(e,t)},o.prototype.msPointerCancel=function(t){var e=this.prepareEvent_(t);this.dispatcher.cancel(e,t),this.cleanup(t.pointerId)},o.prototype.msLostPointerCapture=function(t){var e=this.dispatcher.makeEvent("lostpointercapture",t,t);this.dispatcher.dispatchEvent(e)},o.prototype.msGotPointerCapture=function(t){var e=this.dispatcher.makeEvent("gotpointercapture",t,t);this.dispatcher.dispatchEvent(e)},e.a=o},function(t,e,i){"use strict";var n=i(0),r=i(77),o=function(t){var e={pointerdown:this.pointerDown,pointermove:this.pointerMove,pointerup:this.pointerUp,pointerout:this.pointerOut,pointerover:this.pointerOver,pointercancel:this.pointerCancel,gotpointercapture:this.gotPointerCapture,lostpointercapture:this.lostPointerCapture};r.a.call(this,t,e)};n.a.inherits(o,r.a),o.prototype.pointerDown=function(t){this.dispatcher.fireNativeEvent(t)},o.prototype.pointerMove=function(t){this.dispatcher.fireNativeEvent(t)},o.prototype.pointerUp=function(t){this.dispatcher.fireNativeEvent(t)},o.prototype.pointerOut=function(t){this.dispatcher.fireNativeEvent(t)},o.prototype.pointerOver=function(t){this.dispatcher.fireNativeEvent(t)},o.prototype.pointerCancel=function(t){this.dispatcher.fireNativeEvent(t)},o.prototype.lostPointerCapture=function(t){this.dispatcher.fireNativeEvent(t)},o.prototype.gotPointerCapture=function(t){this.dispatcher.fireNativeEvent(t)},e.a=o},function(t,e,i){"use strict";var n=i(0),r=i(14),o=function(t,e,i){r.a.call(this,t),this.originalEvent=e;var n=i||{};this.buttons=this.getButtons_(n),this.pressure=this.getPressure_(n,this.buttons),this.bubbles="bubbles"in n&&n.bubbles,this.cancelable="cancelable"in n&&n.cancelable,this.view="view"in n?n.view:null,this.detail="detail"in n?n.detail:null,this.screenX="screenX"in n?n.screenX:0,this.screenY="screenY"in n?n.screenY:0,this.clientX="clientX"in n?n.clientX:0,this.clientY="clientY"in n?n.clientY:0,this.ctrlKey="ctrlKey"in n&&n.ctrlKey,this.altKey="altKey"in n&&n.altKey,this.shiftKey="shiftKey"in n&&n.shiftKey,this.metaKey="metaKey"in n&&n.metaKey,this.button="button"in n?n.button:0,this.relatedTarget="relatedTarget"in n?n.relatedTarget:null,this.pointerId="pointerId"in n?n.pointerId:0,this.width="width"in n?n.width:0,this.height="height"in n?n.height:0,this.tiltX="tiltX"in n?n.tiltX:0,this.tiltY="tiltY"in n?n.tiltY:0,this.pointerType="pointerType"in n?n.pointerType:"",this.hwTimestamp="hwTimestamp"in n?n.hwTimestamp:0,this.isPrimary="isPrimary"in n&&n.isPrimary,e.preventDefault&&(this.preventDefault=function(){e.preventDefault()})};n.a.inherits(o,r.a),o.prototype.getButtons_=function(t){var e;if(t.buttons||o.HAS_BUTTONS)e=t.buttons;else switch(t.which){case 1:e=1;break;case 2:e=4;break;case 3:e=2;break;default:e=0}return e},o.prototype.getPressure_=function(t,e){return t.pressure?t.pressure:e?.5:0},o.HAS_BUTTONS=!1,function(){try{var t=new MouseEvent("click",{buttons:1});o.HAS_BUTTONS=1===t.buttons}catch(t){}}(),e.a=o},function(t,e,i){"use strict";var n=i(0),r=i(5),o=i(77),a=i(154),s=function(t,e){var i={touchstart:this.touchstart,touchmove:this.touchmove,touchend:this.touchend,touchcancel:this.touchcancel};o.a.call(this,t,i),this.pointerMap=t.pointerMap,this.mouseSource=e,this.firstTouchId_=void 0,this.clickCount_=0,this.resetId_=void 0};n.a.inherits(s,o.a),s.DEDUP_TIMEOUT=2500,s.CLICK_COUNT_TIMEOUT=200,s.POINTER_TYPE="touch",s.prototype.isPrimaryTouch_=function(t){return this.firstTouchId_===t.identifier},s.prototype.setPrimaryTouch_=function(t){var e=Object.keys(this.pointerMap).length;(0===e||1===e&&a.a.POINTER_ID.toString()in this.pointerMap)&&(this.firstTouchId_=t.identifier,this.cancelResetClickCount_())},s.prototype.removePrimaryPointer_=function(t){t.isPrimary&&(this.firstTouchId_=void 0,this.resetClickCount_())},s.prototype.resetClickCount_=function(){this.resetId_=setTimeout(this.resetClickCountHandler_.bind(this),s.CLICK_COUNT_TIMEOUT)},s.prototype.resetClickCountHandler_=function(){this.clickCount_=0,this.resetId_=void 0},s.prototype.cancelResetClickCount_=function(){void 0!==this.resetId_&&clearTimeout(this.resetId_)},s.prototype.touchToPointer_=function(t,e){var i=this.dispatcher.cloneEvent(t,e);return i.pointerId=e.identifier+2,i.bubbles=!0,i.cancelable=!0,i.detail=this.clickCount_,i.button=0,i.buttons=1,i.width=e.webkitRadiusX||e.radiusX||0,i.height=e.webkitRadiusY||e.radiusY||0,i.pressure=e.webkitForce||e.force||.5,i.isPrimary=this.isPrimaryTouch_(e),i.pointerType=s.POINTER_TYPE,i.clientX=e.clientX,i.clientY=e.clientY,i.screenX=e.screenX,i.screenY=e.screenY,i},s.prototype.processTouches_=function(t,e){function i(){t.preventDefault()}var n,r,o=Array.prototype.slice.call(t.changedTouches),a=o.length;for(n=0;n<a;++n)r=this.touchToPointer_(t,o[n]),r.preventDefault=i,e.call(this,t,r)},s.prototype.findTouch_=function(t,e){for(var i,n=t.length,r=0;r<n;r++)if(i=t[r],i.identifier===e)return!0;return!1},s.prototype.vacuumTouches_=function(t){var e=t.touches,i=Object.keys(this.pointerMap),n=i.length;if(n>=e.length){var r,o,s,l=[];for(r=0;r<n;++r)o=i[r],s=this.pointerMap[o],o==a.a.POINTER_ID||this.findTouch_(e,o-2)||l.push(s.out);for(r=0;r<l.length;++r)this.cancelOut_(t,l[r])}},s.prototype.touchstart=function(t){this.vacuumTouches_(t),this.setPrimaryTouch_(t.changedTouches[0]),this.dedupSynthMouse_(t),this.clickCount_++,this.processTouches_(t,this.overDown_)},s.prototype.overDown_=function(t,e){this.pointerMap[e.pointerId]={target:e.target,out:e,outTarget:e.target},this.dispatcher.over(e,t),this.dispatcher.enter(e,t),this.dispatcher.down(e,t)},s.prototype.touchmove=function(t){t.preventDefault(),this.processTouches_(t,this.moveOverOut_)},s.prototype.moveOverOut_=function(t,e){var i=e,n=this.pointerMap[i.pointerId];if(n){var r=n.out,o=n.outTarget;this.dispatcher.move(i,t),r&&o!==i.target&&(r.relatedTarget=i.target,i.relatedTarget=o,r.target=o,i.target?(this.dispatcher.leaveOut(r,t),this.dispatcher.enterOver(i,t)):(i.target=o,i.relatedTarget=null,this.cancelOut_(t,i))),n.out=i,n.outTarget=i.target}},s.prototype.touchend=function(t){this.dedupSynthMouse_(t),this.processTouches_(t,this.upOut_)},s.prototype.upOut_=function(t,e){this.dispatcher.up(e,t),this.dispatcher.out(e,t),this.dispatcher.leave(e,t),this.cleanUpPointer_(e)},s.prototype.touchcancel=function(t){this.processTouches_(t,this.cancelOut_)},s.prototype.cancelOut_=function(t,e){this.dispatcher.cancel(e,t),this.dispatcher.out(e,t),this.dispatcher.leave(e,t),this.cleanUpPointer_(e)},s.prototype.cleanUpPointer_=function(t){delete this.pointerMap[t.pointerId],this.removePrimaryPointer_(t)},s.prototype.dedupSynthMouse_=function(t){var e=this.mouseSource.lastTouches,i=t.changedTouches[0];if(this.isPrimaryTouch_(i)){var n=[i.clientX,i.clientY];e.push(n),setTimeout(function(){r.a.remove(e,n)},s.DEDUP_TIMEOUT)}},e.a=s},function(t,e,i){"use strict";var n={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"};e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(15),o=i(3),a=i(4),s=i(101),l=function(t,e){s.a.call(this,function(e){return t.apply(null,e)},function(t){return t[0].getKey()}),this.tileChangeCallback_=e,this.tilesLoading_=0,this.tilesLoadingKeys_={}};n.a.inherits(l,s.a),l.prototype.enqueue=function(t){var e=s.a.prototype.enqueue.call(this,t);if(e){var i=t[0];o.a.listen(i,a.a.CHANGE,this.handleTileChange,this)}return e},l.prototype.getTilesLoading=function(){return this.tilesLoading_},l.prototype.handleTileChange=function(t){var e=t.target,i=e.getState();if(i===r.a.LOADED||i===r.a.ERROR||i===r.a.EMPTY||i===r.a.ABORT){o.a.unlisten(e,a.a.CHANGE,this.handleTileChange,this);var n=e.getKey();n in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[n],--this.tilesLoading_),this.tileChangeCallback_()}},l.prototype.loadMoreTiles=function(t,e){for(var i,n,o,a=0,s=!1;this.tilesLoading_<t&&a<e&&this.getCount()>0;)n=this.dequeue()[0],o=n.getKey(),i=n.getState(),i===r.a.ABORT?s=!0:i!==r.a.IDLE||o in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[o]=!0,++this.tilesLoading_,++a,n.load());0===a&&s&&this.tileChangeCallback_()},e.a=l},function(t,e,i){"use strict";var n=i(6),r={};r.createExtent=function(t){return function(e){return e?[n.a.clamp(e[0],t[0],t[2]),n.a.clamp(e[1],t[1],t[3])]:void 0}},r.none=function(t){return t},e.a=r},function(t,e,i){"use strict";var n=i(5),r=i(6),o={};o.createSnapToResolutions=function(t){return function(e,i,o){if(void 0!==e){var a=n.a.linearFindNearest(t,e,o);a=r.a.clamp(a+i,0,t.length-1);var s=Math.floor(a);if(a!=s&&s<t.length-1){var l=t[s]/t[s+1];return t[s]/Math.pow(l,a-s)}return t[s]}}},o.createSnapToPower=function(t,e,i){return function(n,r,o){if(void 0!==n){var a=-o/2+.5,s=Math.floor(Math.log(e/n)/Math.log(t)+a),l=Math.max(s+r,0);return void 0!==i&&(l=Math.min(l,i)),e/Math.pow(t,l)}}},e.a=o},function(t,e,i){"use strict";var n={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};e.a=n},function(t,e,i){"use strict";var n={};n.coordinates=function(t,e,i,n){for(;e<i-n;){var r;for(r=0;r<n;++r){var o=t[e+r];t[e+r]=t[i-n+r],t[i-n+r]=o}e+=n,i-=n}},e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(48),o=i(49),a=i(16),s=i(73),l=i(7),u=i(3),c=i(4),h=i(1),d=i(158),f=i(2),p=i(37),g=function t(e){var i=e||{},n=f.a.assign({},i);delete n.layers;var o=i.layers;d.a.call(this,n),this.layersListenerKeys_=[],this.listenerKeys_={},u.a.listen(this,a.a.getChangeEventType(t.Property_.LAYERS),this.handleLayersChanged_,this),o?Array.isArray(o)?o=new r.a(o.slice(),{unique:!0}):(l.a.assert(o instanceof r.a,43),o=o):o=new r.a(void 0,{unique:!0}),this.setLayers(o)};n.a.inherits(g,d.a),g.prototype.handleLayerChange_=function(){this.changed()},g.prototype.handleLayersChanged_=function(t){this.layersListenerKeys_.forEach(u.a.unlistenByKey),this.layersListenerKeys_.length=0;var e=this.getLayers();this.layersListenerKeys_.push(u.a.listen(e,o.a.ADD,this.handleLayersAdd_,this),u.a.listen(e,o.a.REMOVE,this.handleLayersRemove_,this));for(var i in this.listenerKeys_)this.listenerKeys_[i].forEach(u.a.unlistenByKey);f.a.clear(this.listenerKeys_);var r,a,l,h=e.getArray();for(r=0,a=h.length;r<a;r++)l=h[r],this.listenerKeys_[n.a.getUid(l).toString()]=[u.a.listen(l,s.a.PROPERTYCHANGE,this.handleLayerChange_,this),u.a.listen(l,c.a.CHANGE,this.handleLayerChange_,this)];this.changed()},g.prototype.handleLayersAdd_=function(t){var e=t.element,i=n.a.getUid(e).toString();this.listenerKeys_[i]=[u.a.listen(e,s.a.PROPERTYCHANGE,this.handleLayerChange_,this),u.a.listen(e,c.a.CHANGE,this.handleLayerChange_,this)],this.changed()},g.prototype.handleLayersRemove_=function(t){var e=t.element,i=n.a.getUid(e).toString();this.listenerKeys_[i].forEach(u.a.unlistenByKey),delete this.listenerKeys_[i],this.changed()},g.prototype.getLayers=function(){return this.get(g.Property_.LAYERS)},g.prototype.setLayers=function(t){this.set(g.Property_.LAYERS,t)},g.prototype.getLayersArray=function(t){var e=void 0!==t?t:[];return this.getLayers().forEach(function(t){t.getLayersArray(e)}),e},g.prototype.getLayerStatesArray=function(t){var e=void 0!==t?t:[],i=e.length;this.getLayers().forEach(function(t){t.getLayerStatesArray(e)});var n,r,o,a=this.getLayerState();for(n=i,r=e.length;n<r;n++)o=e[n],o.opacity*=a.opacity,o.visible=o.visible&&a.visible,o.maxResolution=Math.min(o.maxResolution,a.maxResolution),o.minResolution=Math.max(o.minResolution,a.minResolution),void 0!==a.extent&&(void 0!==o.extent?o.extent=h.a.getIntersection(o.extent,a.extent):o.extent=a.extent);return e},g.prototype.getSourceState=function(){return p.a.READY},g.Property_={LAYERS:"layers"},e.a=g},function(t,e,i){"use strict";var n=i(48),r=i(160),o=i(287),a=i(288),s={};s.defaults=function(t){var e=t||{},i=new n.a;return(void 0===e.zoom||e.zoom)&&i.push(new a.a(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&i.push(new o.a(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&i.push(new r.default(e.attributionOptions)),i},e.a=s},function(t,e,i){"use strict";var n=i(3),r=i(4),o=i(0),a=i(106),s=i(39),l=i(36),u=function t(e){var i=e||{},o=void 0!==i.className?i.className:"ol-rotate",l=void 0!==i.label?i.label:"\u21e7";this.label_=null,"string"===typeof l?(this.label_=document.createElement("span"),this.label_.className="ol-compass",this.label_.textContent=l):(this.label_=l,this.label_.classList.add("ol-compass"));var u=i.tipLabel?i.tipLabel:"Reset rotation",c=document.createElement("button");c.className=o+"-reset",c.setAttribute("type","button"),c.title=u,c.appendChild(this.label_),n.a.listen(c,r.a.CLICK,t.prototype.handleClick_,this);var h=o+" "+s.a.CLASS_UNSELECTABLE+" "+s.a.CLASS_CONTROL,d=document.createElement("div");d.className=h,d.appendChild(c);var f=i.render?i.render:t.render;this.callResetNorth_=i.resetNorth?i.resetNorth:void 0,a.a.call(this,{element:d,render:f,target:i.target}),this.duration_=void 0!==i.duration?i.duration:250,this.autoHide_=void 0===i.autoHide||i.autoHide,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(s.a.CLASS_HIDDEN)};o.a.inherits(u,a.a),u.prototype.handleClick_=function(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},u.prototype.resetNorth_=function(){var t=this.getMap(),e=t.getView();e&&void 0!==e.getRotation()&&(this.duration_>0?e.animate({rotation:0,duration:this.duration_,easing:l.a.easeOut}):e.setRotation(0))},u.render=function(t){var e=t.frameState;if(e){var i=e.viewState.rotation;if(i!=this.rotation_){var n="rotate("+i+"rad)";if(this.autoHide_){var r=this.element.classList.contains(s.a.CLASS_HIDDEN);r||0!==i?r&&0!==i&&this.element.classList.remove(s.a.CLASS_HIDDEN):this.element.classList.add(s.a.CLASS_HIDDEN)}this.label_.style.msTransform=n,this.label_.style.webkitTransform=n,this.label_.style.transform=n}this.rotation_=i}},e.a=u},function(t,e,i){"use strict";var n=i(0),r=i(3),o=i(4),a=i(106),s=i(39),l=i(36),u=function t(e){var i=e||{},n=void 0!==i.className?i.className:"ol-zoom",l=void 0!==i.delta?i.delta:1,u=void 0!==i.zoomInLabel?i.zoomInLabel:"+",c=void 0!==i.zoomOutLabel?i.zoomOutLabel:"\u2212",h=void 0!==i.zoomInTipLabel?i.zoomInTipLabel:"Zoom in",d=void 0!==i.zoomOutTipLabel?i.zoomOutTipLabel:"Zoom out",f=document.createElement("button");f.className=n+"-in",f.setAttribute("type","button"),f.title=h,f.appendChild("string"===typeof u?document.createTextNode(u):u),r.a.listen(f,o.a.CLICK,t.prototype.handleClick_.bind(this,l));var p=document.createElement("button");p.className=n+"-out",p.setAttribute("type","button"),p.title=d,p.appendChild("string"===typeof c?document.createTextNode(c):c),r.a.listen(p,o.a.CLICK,t.prototype.handleClick_.bind(this,-l));var g=n+" "+s.a.CLASS_UNSELECTABLE+" "+s.a.CLASS_CONTROL,_=document.createElement("div");_.className=g,_.appendChild(f),_.appendChild(p),a.a.call(this,{element:_,target:i.target}),this.duration_=void 0!==i.duration?i.duration:250};n.a.inherits(u,a.a),u.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},u.prototype.zoomByDelta_=function(t){var e=this.getMap(),i=e.getView();if(i){var n=i.getResolution();if(n){var r=i.constrainResolution(n,t);this.duration_>0?(i.getAnimating()&&i.cancelAnimations(),i.animate({resolution:r,duration:this.duration_,easing:l.a.easeOut})):i.setResolution(r)}}},e.a=u},function(t,e,i){"use strict";var n=function(t,e,i){this.decay_=t,this.minVelocity_=e,this.delay_=i,this.points_=[],this.angle_=0,this.initialVelocity_=0};n.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},n.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},n.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;for(var i=e-3;i>0&&this.points_[i+2]>t;)i-=3;var n=this.points_[e+2]-this.points_[i+2];if(n<1e3/60)return!1;var r=this.points_[e]-this.points_[i],o=this.points_[e+1]-this.points_[i+1];return this.angle_=Math.atan2(o,r),this.initialVelocity_=Math.sqrt(r*r+o*o)/n,this.initialVelocity_>this.minVelocity_},n.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},n.prototype.getAngle=function(){return this.angle_},e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(42),o=i(29),a=function t(e){var i=e||{};this.delta_=i.delta?i.delta:1,o.a.call(this,{handleEvent:t.handleEvent}),this.duration_=void 0!==i.duration?i.duration:250};n.a.inherits(a,o.a),a.handleEvent=function(t){var e=!1,i=t.originalEvent;if(t.type==r.a.DBLCLICK){var n=t.map,a=t.coordinate,s=i.shiftKey?-this.delta_:this.delta_,l=n.getView();o.a.zoomByDelta(l,s,a,this.duration_),t.preventDefault(),e=!0}return!e},e.a=a},function(t,e,i){"use strict";var n=i(0),r=i(17),o=i(35),a=i(36),s=i(30),l=i(12),u=i(46),c=function t(e){u.a.call(this,{handleDownEvent:t.handleDownEvent_,handleDragEvent:t.handleDragEvent_,handleUpEvent:t.handleUpEvent_});var i=e||{};this.kinetic_=i.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.condition_=i.condition?i.condition:s.a.noModifierKeys,this.noKinetic_=!1};n.a.inherits(c,u.a),c.handleDragEvent_=function(t){var e=this.targetPointers,i=u.a.centroid(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(i[0],i[1]),this.lastCentroid){var n=this.lastCentroid[0]-i[0],r=i[1]-this.lastCentroid[1],a=t.map,s=a.getView(),l=s.getState(),c=[n,r];o.default.scale(c,l.resolution),o.default.rotate(c,l.rotation),o.default.add(c,l.center),c=s.constrainCenter(c),s.setCenter(c)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=i,this.lastPointersCount_=e.length},c.handleUpEvent_=function(t){var e=t.map,i=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var n=this.kinetic_.getDistance(),o=this.kinetic_.getAngle(),s=i.getCenter(),l=e.getPixelFromCoordinate(s),u=e.getCoordinateFromPixel([l[0]-n*Math.cos(o),l[1]-n*Math.sin(o)]);i.animate({center:i.constrainCenter(u),duration:500,easing:a.a.easeOut})}return i.setHint(r.a.INTERACTING,-1),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},c.handleDownEvent_=function(t){if(this.targetPointers.length>0&&this.condition_(t)){var e=t.map,i=e.getView();return this.lastCentroid=null,this.handlingDownUpSequence||i.setHint(r.a.INTERACTING,1),i.getAnimating()&&i.setCenter(t.frameState.viewState.center),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},c.prototype.shouldStopEvent=l.a.FALSE,e.a=c},function(t,e,i){"use strict";var n=i(0),r=i(103),o=i(17),a=i(30),s=i(12),l=i(29),u=i(46),c=function t(e){var i=e||{};u.a.call(this,{handleDownEvent:t.handleDownEvent_,handleDragEvent:t.handleDragEvent_,handleUpEvent:t.handleUpEvent_}),this.condition_=i.condition?i.condition:a.a.altShiftKeysOnly,this.lastAngle_=void 0,this.duration_=void 0!==i.duration?i.duration:250};n.a.inherits(c,u.a),c.handleDragEvent_=function(t){if(a.a.mouseOnly(t)){var e=t.map,i=e.getView();if(i.getConstraints().rotation!==r.a.disable){var n=e.getSize(),o=t.pixel,s=Math.atan2(n[1]/2-o[1],o[0]-n[0]/2);if(void 0!==this.lastAngle_){var u=s-this.lastAngle_,c=i.getRotation();l.a.rotateWithoutConstraints(i,c-u)}this.lastAngle_=s}}},c.handleUpEvent_=function(t){if(!a.a.mouseOnly(t))return!0;var e=t.map,i=e.getView();i.setHint(o.a.INTERACTING,-1);var n=i.getRotation();return l.a.rotate(i,n,void 0,this.duration_),!1},c.handleDownEvent_=function(t){if(!a.a.mouseOnly(t))return!1;if(a.a.mouseActionButton(t)&&this.condition_(t)){return t.map.getView().setHint(o.a.INTERACTING,1),this.lastAngle_=void 0,!0}return!1},c.prototype.shouldStopEvent=s.a.FALSE,e.a=c},function(t,e,i){"use strict";var n=i(0),r=i(36),o=i(30),a=i(1),s=i(294),l=function(t){var e=t||{},i=e.condition?e.condition:o.a.shiftKeyOnly;this.duration_=void 0!==e.duration?e.duration:200,this.out_=void 0!==e.out&&e.out,s.a.call(this,{condition:i,className:e.className||"ol-dragzoom"})};n.a.inherits(l,s.a),l.prototype.onBoxEnd=function(){var t=this.getMap(),e=t.getView(),i=t.getSize(),n=this.getGeometry().getExtent();if(this.out_){var o=e.calculateExtent(i),s=a.a.createOrUpdateFromCoordinates([t.getPixelFromCoordinate(a.a.getBottomLeft(n)),t.getPixelFromCoordinate(a.a.getTopRight(n))]),l=e.getResolutionForExtent(s,i);a.a.scaleFromCenter(o,1/l),n=o}var u=e.constrainResolution(e.getResolutionForExtent(n,i)),c=a.a.getCenter(n);c=e.constrainCenter(c),e.animate({resolution:u,center:c,duration:this.duration_,easing:r.a.easeOut})},e.a=l},function(t,e,i){"use strict";var n=i(14),r=i(0),o=i(30),a=i(46),s=i(295),l=function t(e){a.a.call(this,{handleDownEvent:t.handleDownEvent_,handleDragEvent:t.handleDragEvent_,handleUpEvent:t.handleUpEvent_});var i=e||{};this.box_=new s.a(i.className||"ol-dragbox"),this.minArea_=void 0!==i.minArea?i.minArea:64,this.startPixel_=null,this.condition_=i.condition?i.condition:o.a.always,this.boxEndCondition_=i.boxEndCondition?i.boxEndCondition:t.defaultBoxEndCondition};r.a.inherits(l,a.a),l.defaultBoxEndCondition=function(t,e,i){var n=i[0]-e[0],r=i[1]-e[1];return n*n+r*r>=this.minArea_},l.handleDragEvent_=function(t){o.a.mouseOnly(t)&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new l.Event(l.EventType_.BOXDRAG,t.coordinate,t)))},l.prototype.getGeometry=function(){return this.box_.getGeometry()},l.prototype.onBoxEnd=r.a.nullFunction,l.handleUpEvent_=function(t){return!o.a.mouseOnly(t)||(this.box_.setMap(null),this.boxEndCondition_(t,this.startPixel_,t.pixel)&&(this.onBoxEnd(t),this.dispatchEvent(new l.Event(l.EventType_.BOXEND,t.coordinate,t))),!1)},l.handleDownEvent_=function(t){return!!o.a.mouseOnly(t)&&(!(!o.a.mouseActionButton(t)||!this.condition_(t))&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new l.Event(l.EventType_.BOXSTART,t.coordinate,t)),!0))},l.EventType_={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend"},l.Event=function(t,e,i){n.a.call(this,t),this.coordinate=e,this.mapBrowserEvent=i},r.a.inherits(l.Event,n.a),e.a=l},function(t,e,i){"use strict";var n=i(0),r=i(71),o=i(43),a=function(t){this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null};n.a.inherits(a,r.a),a.prototype.disposeInternal=function(){this.setMap(null)},a.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,i=this.element_.style;i.left=Math.min(t[0],e[0])+"px",i.top=Math.min(t[1],e[1])+"px",i.width=Math.abs(e[0]-t[0])+"px",i.height=Math.abs(e[1]-t[1])+"px"},a.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left=e.top=e.width=e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},a.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},a.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,e=this.endPixel_,i=[t,[t[0],e[1]],e,[e[0],t[1]]],n=i.map(this.map_.getCoordinateFromPixel,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new o.a([n])},a.prototype.getGeometry=function(){return this.geometry_},e.a=a},function(t,e,i){"use strict";var n=i(0),r=i(35),o=i(4),a=i(297),s=i(30),l=i(29),u=function t(e){l.a.call(this,{handleEvent:t.handleEvent});var i=e||{};this.defaultCondition_=function(t){return s.a.noModifierKeys(t)&&s.a.targetNotEditable(t)},this.condition_=void 0!==i.condition?i.condition:this.defaultCondition_,this.duration_=void 0!==i.duration?i.duration:100,this.pixelDelta_=void 0!==i.pixelDelta?i.pixelDelta:128};n.a.inherits(u,l.a),u.handleEvent=function(t){var e=!1;if(t.type==o.a.KEYDOWN){var i=t.originalEvent,n=i.keyCode;if(this.condition_(t)&&(n==a.a.DOWN||n==a.a.LEFT||n==a.a.RIGHT||n==a.a.UP)){var s=t.map,u=s.getView(),c=u.getResolution()*this.pixelDelta_,h=0,d=0;n==a.a.DOWN?d=-c:n==a.a.LEFT?h=-c:n==a.a.RIGHT?h=c:d=c;var f=[h,d];r.default.rotate(f,u.getRotation()),l.a.pan(u,f,this.duration_),t.preventDefault(),e=!0}}return!e},e.a=u},function(t,e,i){"use strict";var n={LEFT:37,UP:38,RIGHT:39,DOWN:40};e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(4),o=i(30),a=i(29),s=function t(e){a.a.call(this,{handleEvent:t.handleEvent});var i=e||{};this.condition_=i.condition?i.condition:o.a.targetNotEditable,this.delta_=i.delta?i.delta:1,this.duration_=void 0!==i.duration?i.duration:100};n.a.inherits(s,a.a),s.handleEvent=function(t){var e=!1;if(t.type==r.a.KEYDOWN||t.type==r.a.KEYPRESS){var i=t.originalEvent,n=i.charCode;if(this.condition_(t)&&(n=="+".charCodeAt(0)||n=="-".charCodeAt(0))){var o=t.map,s=n=="+".charCodeAt(0)?this.delta_:-this.delta_,l=o.getView();a.a.zoomByDelta(l,s,void 0,this.duration_),t.preventDefault(),e=!0}}return!e},e.a=s},function(t,e,i){"use strict";var n=i(0),r=i(17),o=i(36),a=i(4),s=i(18),l=i(29),u=i(6),c=function t(e){l.a.call(this,{handleEvent:t.handleEvent});var i=e||{};this.delta_=0,this.duration_=void 0!==i.duration?i.duration:250,this.timeout_=void 0!==i.timeout?i.timeout:80,this.useAnchor_=void 0===i.useAnchor||i.useAnchor,this.constrainResolution_=i.constrainResolution||!1,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_=void 0,this.trackpadDeltaPerZoom_=300,this.trackpadZoomBuffer_=1.5};n.a.inherits(c,l.a),c.handleEvent=function(t){var e=t.type;if(e!==a.a.WHEEL&&e!==a.a.MOUSEWHEEL)return!0;t.preventDefault();var i=t.map,n=t.originalEvent;this.useAnchor_&&(this.lastAnchor_=t.coordinate);var l;if(t.type==a.a.WHEEL?(l=n.deltaY,s.a.FIREFOX&&n.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(l/=s.a.DEVICE_PIXEL_RATIO),n.deltaMode===WheelEvent.DOM_DELTA_LINE&&(l*=40)):t.type==a.a.MOUSEWHEEL&&(l=-n.wheelDeltaY,s.a.SAFARI&&(l/=3)),0===l)return!1;var u=Date.now();if(void 0===this.startTime_&&(this.startTime_=u),(!this.mode_||u-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(l)<4?c.Mode_.TRACKPAD:c.Mode_.WHEEL),this.mode_===c.Mode_.TRACKPAD){var h=i.getView();this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):h.setHint(r.a.INTERACTING,1),this.trackpadTimeoutId_=setTimeout(this.decrementInteractingHint_.bind(this),this.trackpadEventGap_);var d=h.getResolution()*Math.pow(2,l/this.trackpadDeltaPerZoom_),f=h.getMinResolution(),p=h.getMaxResolution(),g=0;if(d<f?(d=Math.max(d,f/this.trackpadZoomBuffer_),g=1):d>p&&(d=Math.min(d,p*this.trackpadZoomBuffer_),g=-1),this.lastAnchor_){var _=h.calculateCenterZoom(d,this.lastAnchor_);h.setCenter(h.constrainCenter(_))}return h.setResolution(d),0===g&&this.constrainResolution_&&h.animate({resolution:h.constrainResolution(d,l>0?-1:1),easing:o.a.easeOut,anchor:this.lastAnchor_,duration:this.duration_}),g>0?h.animate({resolution:f,easing:o.a.easeOut,anchor:this.lastAnchor_,duration:500}):g<0&&h.animate({resolution:p,easing:o.a.easeOut,anchor:this.lastAnchor_,duration:500}),this.startTime_=u,!1}this.delta_+=l;var y=Math.max(this.timeout_-(u-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),y),!1},c.prototype.decrementInteractingHint_=function(){this.trackpadTimeoutId_=void 0,this.getMap().getView().setHint(r.a.INTERACTING,-1)},c.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();var i=n.a.MOUSEWHEELZOOM_MAXDELTA,r=u.a.clamp(this.delta_,-i,i);l.a.zoomByDelta(e,-r,this.lastAnchor_,this.duration_),this.mode_=void 0,this.delta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},c.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},c.Mode_={TRACKPAD:"trackpad",WHEEL:"wheel"},e.a=c},function(t,e,i){"use strict";var n=i(0),r=i(17),o=i(12),a=i(29),s=i(46),l=i(103),u=function t(e){s.a.call(this,{handleDownEvent:t.handleDownEvent_,handleDragEvent:t.handleDragEvent_,handleUpEvent:t.handleUpEvent_});var i=e||{};this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==i.threshold?i.threshold:.3,this.duration_=void 0!==i.duration?i.duration:250};n.a.inherits(u,s.a),u.handleDragEvent_=function(t){var e=0,i=this.targetPointers[0],n=this.targetPointers[1],r=Math.atan2(n.clientY-i.clientY,n.clientX-i.clientX);if(void 0!==this.lastAngle_){var o=r-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=o}this.lastAngle_=r;var u=t.map,c=u.getView();if(c.getConstraints().rotation!==l.a.disable){var h=u.getViewport().getBoundingClientRect(),d=s.a.centroid(this.targetPointers);if(d[0]-=h.left,d[1]-=h.top,this.anchor_=u.getCoordinateFromPixel(d),this.rotating_){var f=c.getRotation();u.render(),a.a.rotateWithoutConstraints(c,f+e,this.anchor_)}}},u.handleUpEvent_=function(t){if(this.targetPointers.length<2){var e=t.map,i=e.getView();if(i.setHint(r.a.INTERACTING,-1),this.rotating_){var n=i.getRotation();a.a.rotate(i,n,this.anchor_,this.duration_)}return!1}return!0},u.handleDownEvent_=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().setHint(r.a.INTERACTING,1),!0}return!1},u.prototype.shouldStopEvent=o.a.FALSE,e.a=u},function(t,e,i){"use strict";var n=i(0),r=i(17),o=i(12),a=i(29),s=i(46),l=function t(e){s.a.call(this,{handleDownEvent:t.handleDownEvent_,handleDragEvent:t.handleDragEvent_,handleUpEvent:t.handleUpEvent_});var i=e||{};this.constrainResolution_=i.constrainResolution||!1,this.anchor_=null,this.duration_=void 0!==i.duration?i.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1};n.a.inherits(l,s.a),l.handleDragEvent_=function(t){var e=1,i=this.targetPointers[0],n=this.targetPointers[1],r=i.clientX-n.clientX,o=i.clientY-n.clientY,l=Math.sqrt(r*r+o*o);void 0!==this.lastDistance_&&(e=this.lastDistance_/l),this.lastDistance_=l;var u=t.map,c=u.getView(),h=c.getResolution(),d=c.getMaxResolution(),f=c.getMinResolution(),p=h*e;p>d?(e=d/h,p=d):p<f&&(e=f/h,p=f),1!=e&&(this.lastScaleDelta_=e);var g=u.getViewport().getBoundingClientRect(),_=s.a.centroid(this.targetPointers);_[0]-=g.left,_[1]-=g.top,this.anchor_=u.getCoordinateFromPixel(_),u.render(),a.a.zoomWithoutConstraints(c,p,this.anchor_)},l.handleUpEvent_=function(t){if(this.targetPointers.length<2){var e=t.map,i=e.getView();i.setHint(r.a.INTERACTING,-1);var n=i.getResolution();if(this.constrainResolution_||n<i.getMinResolution()||n>i.getMaxResolution()){var o=this.lastScaleDelta_-1;a.a.zoom(i,n,this.anchor_,this.duration_,o)}return!1}return!0},l.handleDownEvent_=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().setHint(r.a.INTERACTING,1),!0}return!1},l.prototype.shouldStopEvent=o.a.FALSE,e.a=l},function(t,e,i){"use strict";var n=i(0),r=i(303),o=i(20),a=i(17),s=i(5),l=i(1),u=i(163),c=i(2),h=i(61),d=i(23),f=i(164),p=i(10),g=function(t){f.a.call(this,t),this.image_=null,this.imageTransform_=p.a.create(),this.skippedFeatures_=[],this.vectorRenderer_=null};n.a.inherits(g,f.a),g.handles=function(t,e){return t===d.a.CANVAS&&(e.getType()===o.a.IMAGE||e.getType()===o.a.VECTOR&&e.getRenderMode()===u.a.IMAGE)},g.create=function(t,e){var i=new g(e);if(e.getType()===o.a.VECTOR)for(var n=h.default.getLayerRendererPlugins(),r=0,a=n.length;r<a;++r){var s=n[r];s!==g&&s.handles(d.a.CANVAS,e)&&i.setVectorRenderer(s.create(t,e))}return i},g.prototype.getImage=function(){return this.image_?this.image_.getImage():null},g.prototype.getImageTransform=function(){return this.imageTransform_},g.prototype.prepareFrame=function(t,e){var i,o=t.pixelRatio,u=t.size,h=t.viewState,d=h.center,f=h.resolution,g=this.getLayer(),_=g.getSource(),y=t.viewHints,v=t.extent;if(void 0!==e.extent&&(v=l.a.getIntersection(v,e.extent)),!y[a.a.ANIMATING]&&!y[a.a.INTERACTING]&&!l.a.isEmpty(v)){var m=h.projection;if(!n.a.ENABLE_RASTER_REPROJECTION){var E=_.getProjection();E&&(m=E)}var T=this.vectorRenderer_;if(T){var S=T.context,x=c.a.assign({},t,{size:[l.a.getWidth(v)/f,l.a.getHeight(v)/f],viewState:c.a.assign({},t.viewState,{rotation:0})}),C=Object.keys(x.skippedFeatureUids).sort();!T.prepareFrame(x,e)||!T.replayGroupChanged&&s.a.equals(C,this.skippedFeatures_)||(S.canvas.width=x.size[0]*o,S.canvas.height=x.size[1]*o,T.composeFrame(x,e,S),this.image_=new r.a(v,f,o,S.canvas),this.skippedFeatures_=C)}else if(i=_.getImage(v,f,o,m)){var R=this.loadImage(i);R&&(this.image_=i)}}if(this.image_){i=this.image_;var b=i.getExtent(),I=i.getResolution(),O=i.getPixelRatio(),P=o*I/(f*O),w=p.a.compose(this.imageTransform_,o*u[0]/2,o*u[1]/2,P,P,0,O*(b[0]-d[0])/I,O*(d[1]-b[3])/I);p.a.compose(this.coordinateToCanvasPixelTransform,o*u[0]/2-w[4],o*u[1]/2-w[5],o/f,-o/f,0,-d[0],-d[1]),this.updateLogos(t,_),this.renderedResolution=I*o/O}return!!this.image_},g.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,r){return this.vectorRenderer_?this.vectorRenderer_.forEachFeatureAtCoordinate(t,e,i,n,r):f.a.prototype.forEachFeatureAtCoordinate.call(this,t,e,i,n,r)},g.prototype.setVectorRenderer=function(t){this.vectorRenderer_=t},e.a=g},function(t,e,i){"use strict";var n=i(0),r=i(107),o=i(21),a=function(t,e,i,n,a){this.loader_=void 0!==a?a:null;var s=void 0!==a?o.a.IDLE:o.a.LOADED;r.a.call(this,t,e,i,s),this.canvas_=n,this.error_=null};n.a.inherits(a,r.a),a.prototype.getError=function(){return this.error_},a.prototype.handleLoad_=function(t){t?(this.error_=t,this.state=o.a.ERROR):this.state=o.a.LOADED,this.changed()},a.prototype.load=function(){this.state==o.a.IDLE&&(this.state=o.a.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))},a.prototype.getImage=function(){return this.canvas_},e.a=a},function(t,e,i){"use strict";var n=i(0),r=i(20),o=i(17),a=i(9),s=i(3),l=i(4),u=i(109),c=i.n(u),h=i(1),d=i(52),f=i(24),p=i(170),g=i(23),_=i(165),y=i(110),v=function(t){_.a.call(this,t),this.declutterTree_=t.getDeclutter()?c()(9):null,this.dirty_=!1,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=h.a.createEmpty(),this.renderedRenderOrder_=null,this.replayGroup_=null,this.replayGroupChanged=!0,this.context=a.a.createCanvasContext2D(),s.a.listen(f.a.labelCache,l.a.CLEAR,this.handleFontsChanged_,this)};n.a.inherits(v,_.a),v.handles=function(t,e){return t===g.a.CANVAS&&e.getType()===r.a.VECTOR},v.create=function(t,e){return new v(e)},v.prototype.disposeInternal=function(){s.a.unlisten(f.a.labelCache,l.a.CLEAR,this.handleFontsChanged_,this),_.a.prototype.disposeInternal.call(this)},v.prototype.composeFrame=function(t,e,i){var n=t.extent,r=t.pixelRatio,o=e.managed?t.skippedFeatureUids:{},a=t.viewState,s=a.projection,l=a.rotation,u=s.getExtent(),c=this.getLayer().getSource(),p=this.getTransform(t,0);this.preCompose(i,t,p);var g=e.extent,_=void 0!==g;_&&this.clip(i,t,g);var y=this.replayGroup_;if(y&&!y.isEmpty()){this.declutterTree_&&this.declutterTree_.clear();var v,m=this.getLayer(),E=0,T=0,S=1!==e.opacity,x=m.hasListener(d.a.RENDER);if(S||x){var C=i.canvas.width,R=i.canvas.height;if(l){var b=Math.round(Math.sqrt(C*C+R*R));E=(b-C)/2,T=(b-R)/2,C=R=b}this.context.canvas.width=C,this.context.canvas.height=R,v=this.context}else v=i;var I=v.globalAlpha;S||(v.globalAlpha=e.opacity),v!=i&&v.translate(E,T);var O=t.size[0]*r,P=t.size[1]*r;if(f.a.rotateAtOffset(v,-l,O/2,P/2),y.replay(v,p,l,o),c.getWrapX()&&s.canWrapX()&&!h.a.containsExtent(u,n)){for(var w,L=n[0],A=h.a.getWidth(u),M=0;L<u[0];)--M,w=A*M,p=this.getTransform(t,w),y.replay(v,p,l,o),L+=A;for(M=0,L=n[2];L>u[2];)++M,w=A*M,p=this.getTransform(t,w),y.replay(v,p,l,o),L-=A;p=this.getTransform(t,0)}if(f.a.rotateAtOffset(v,l,O/2,P/2),v!=i){if(x&&this.dispatchRenderEvent(v,t,p),S){var F=i.globalAlpha;i.globalAlpha=e.opacity,i.drawImage(v.canvas,-E,-T),i.globalAlpha=F}else i.drawImage(v.canvas,-E,-T);v.translate(-E,-T)}S||(v.globalAlpha=I)}_&&i.restore(),this.postCompose(i,t,e,p)},v.prototype.forEachFeatureAtCoordinate=function(t,e,i,r,o){if(this.replayGroup_){var a=e.viewState.resolution,s=e.viewState.rotation,l=this.getLayer(),u={};return this.replayGroup_.forEachFeatureAtCoordinate(t,a,s,i,{},function(t){var e=n.a.getUid(t).toString();if(!(e in u))return u[e]=!0,r.call(o,t,l)},null)}},v.prototype.handleFontsChanged_=function(t){var e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()},v.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},v.prototype.prepareFrame=function(t,e){var i=this.getLayer(),n=i.getSource();this.updateLogos(t,n);var r=t.viewHints[o.a.ANIMATING],a=t.viewHints[o.a.INTERACTING],s=i.getUpdateWhileAnimating(),l=i.getUpdateWhileInteracting();if(!this.dirty_&&!s&&r||!l&&a)return!0;var u=t.extent,c=t.viewState,d=c.projection,f=c.resolution,g=t.pixelRatio,_=i.getRevision(),v=i.getRenderBuffer(),m=i.getRenderOrder();void 0===m&&(m=y.a.defaultOrder);var E=h.a.buffer(u,v*f),T=c.projection.getExtent();if(n.getWrapX()&&c.projection.canWrapX()&&!h.a.containsExtent(T,t.extent)){var S=h.a.getWidth(T),x=Math.max(h.a.getWidth(E)/2,S);E[0]=T[0]-x,E[2]=T[2]+x}if(!this.dirty_&&this.renderedResolution_==f&&this.renderedRevision_==_&&this.renderedRenderOrder_==m&&h.a.containsExtent(this.renderedExtent_,E))return this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var C=new p.a(y.a.getTolerance(f,g),E,f,g,n.getOverlaps(),this.declutterTree_,i.getRenderBuffer());n.loadFeatures(E,f,d);var R=function(t){var e,n=t.getStyleFunction();if(n?e=n.call(t,f):(n=i.getStyleFunction())&&(e=n(t,f)),e){var r=this.renderFeature(t,f,g,e,C);this.dirty_=this.dirty_||r}}.bind(this);if(m){var b=[];n.forEachFeatureInExtent(E,function(t){b.push(t)},this),b.sort(m);for(var I=0,O=b.length;I<O;++I)R(b[I])}else n.forEachFeatureInExtent(E,R,this);return C.finish(),this.renderedResolution_=f,this.renderedRevision_=_,this.renderedRenderOrder_=m,this.renderedExtent_=E,this.replayGroup_=C,this.replayGroupChanged=!0,!0},v.prototype.renderFeature=function(t,e,i,n,r){if(!n)return!1;var o=!1;if(Array.isArray(n))for(var a=0,s=n.length;a<s;++a)o=y.a.renderFeature(r,t,n[a],y.a.getSquaredTolerance(e,i),this.handleStyleImageChange_,this)||o;else o=y.a.renderFeature(r,t,n,y.a.getSquaredTolerance(e,i),this.handleStyleImageChange_,this);return o},e.a=v},function(t,e,i){"use strict";function n(t,e,i,n,o){r(t,e,i||0,n||t.length-1,o||a)}function r(t,e,i,n,a){for(;n>i;){if(n-i>600){var s=n-i+1,l=e-i+1,u=Math.log(s),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1);r(t,e,Math.max(i,Math.floor(e-l*c/s+h)),Math.min(n,Math.floor(e+(s-l)*c/s+h)),a)}var d=t[e],f=i,p=n;for(o(t,i,e),a(t[n],d)>0&&o(t,i,n);f<p;){for(o(t,f,p),f++,p--;a(t[f],d)<0;)f++;for(;a(t[p],d)>0;)p--}0===a(t[i],d)?o(t,i,p):(p++,o(t,p,n)),p<=e&&(i=p+1),e<=p&&(n=p-1)}}function o(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function a(t,e){return t<e?-1:t>e?1:0}t.exports=n,t.exports.default=n},function(t,e,i){"use strict";var n=i(6),r={};r.lineString=function(t,e,i,r,o,a,s,l){var u=[],c=t[e]>t[i-r],h=o.length,d=t[e],f=t[e+1];e+=r;for(var p,g,_,y=t[e],v=t[e+1],m=0,E=Math.sqrt(Math.pow(y-d,2)+Math.pow(v-f,2)),T="",S=0,x=0;x<h;++x){g=c?h-x-1:x;var C=o.charAt(g);T=c?C+T:T+C;var R=a(T)-S;S+=R;for(var b=s+R/2;e<i-r&&m+E<b;)d=y,f=v,e+=r,y=t[e],v=t[e+1],m+=E,E=Math.sqrt(Math.pow(y-d,2)+Math.pow(v-f,2));var I=b-m,O=Math.atan2(v-f,y-d);if(c&&(O+=O>0?-Math.PI:Math.PI),void 0!==_){var P=O-_;if(P+=P>Math.PI?-2*Math.PI:P<-Math.PI?2*Math.PI:0,Math.abs(P)>l)return null}var w=I/E,L=n.a.lerp(d,y,w),A=n.a.lerp(f,v,w);_==O?(c&&(p[0]=L,p[1]=A,p[2]=R/2),p[4]=T):(T=C,S=R,p=[L,A,R/2,O,T],c?u.unshift(p):u.push(p),_=O),s+=R}return u},e.a=r},function(t,e,i){"use strict";var n=i(0),r=i(64),o=i(63),a=function(t,e,i,n,r,a){o.a.call(this,t,e,i,n,r,a),this.declutterGroup_=null,this.hitDetectionImage_=null,this.image_=null,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.snapToPixel_=void 0,this.width_=void 0};n.a.inherits(a,o.a),a.prototype.drawCoordinates_=function(t,e,i,n){return this.appendFlatCoordinates(t,e,i,n,!1,!1)},a.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var i=t.getFlatCoordinates(),n=t.getStride(),o=this.coordinates.length,a=this.drawCoordinates_(i,0,i.length,n);this.instructions.push([r.a.DRAW_IMAGE,o,a,this.image_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.snapToPixel_,this.width_]),this.hitDetectionInstructions.push([r.a.DRAW_IMAGE,o,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.snapToPixel_,this.width_]),this.endGeometry(t,e)}},a.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var i=t.getFlatCoordinates(),n=t.getStride(),o=this.coordinates.length,a=this.drawCoordinates_(i,0,i.length,n);this.instructions.push([r.a.DRAW_IMAGE,o,a,this.image_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.snapToPixel_,this.width_]),this.hitDetectionInstructions.push([r.a.DRAW_IMAGE,o,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.snapToPixel_,this.width_]),this.endGeometry(t,e)}},a.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,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.snapToPixel_=void 0,this.width_=void 0},a.prototype.setImageStyle=function(t,e){var i=t.getAnchor(),n=t.getSize(),r=t.getHitDetectionImage(1),o=t.getImage(1),a=t.getOrigin();this.anchorX_=i[0],this.anchorY_=i[1],this.declutterGroup_=e,this.hitDetectionImage_=r,this.image_=o,this.height_=n[1],this.opacity_=t.getOpacity(),this.originX_=a[0],this.originY_=a[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScale(),this.snapToPixel_=t.getSnapToPixel(),this.width_=n[0]},e.a=a},function(t,e,i){"use strict";var n=i(0),r=i(64),o=i(63),a=function(t,e,i,n,r,a){o.a.call(this,t,e,i,n,r,a)};n.a.inherits(a,o.a),a.prototype.drawFlatCoordinates_=function(t,e,i,n){var o=this.coordinates.length,a=this.appendFlatCoordinates(t,e,i,n,!1,!1),s=[r.a.MOVE_TO_LINE_TO,o,a];return this.instructions.push(s),this.hitDetectionInstructions.push(s),i},a.prototype.drawLineString=function(t,e){var i=this.state,n=i.strokeStyle,o=i.lineWidth;if(void 0!==n&&void 0!==o){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([r.a.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],[r.a.BEGIN_PATH]);var a=t.getFlatCoordinates(),s=t.getStride();this.drawFlatCoordinates_(a,0,a.length,s),this.hitDetectionInstructions.push([r.a.STROKE]),this.endGeometry(t,e)}},a.prototype.drawMultiLineString=function(t,e){var i=this.state,n=i.strokeStyle,o=i.lineWidth;if(void 0!==n&&void 0!==o){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([r.a.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],[r.a.BEGIN_PATH]);var a,s,l=t.getEnds(),u=t.getFlatCoordinates(),c=t.getStride(),h=0;for(a=0,s=l.length;a<s;++a)h=this.drawFlatCoordinates_(u,h,l[a],c);this.hitDetectionInstructions.push([r.a.STROKE]),this.endGeometry(t,e)}},a.prototype.finish=function(){var t=this.state;void 0!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&this.instructions.push([r.a.STROKE]),this.reverseHitDetectionInstructions(),this.state=null},a.prototype.applyStroke=function(t){void 0!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&(this.instructions.push([r.a.STROKE]),t.lastStroke=this.coordinates.length),t.lastStroke=0,o.a.prototype.applyStroke.call(this,t),this.instructions.push([r.a.BEGIN_PATH])},e.a=a},function(t,e,i){"use strict";var n=i(0),r=i(32),o=i(50),a=i(24),s=i(64),l=i(63),u=function(t,e,i,n,r,o){l.a.call(this,t,e,i,n,r,o)};n.a.inherits(u,l.a),u.prototype.drawFlatCoordinatess_=function(t,e,i,n){var r=this.state,o=void 0!==r.fillStyle,a=void 0!=r.strokeStyle,l=i.length,u=[s.a.BEGIN_PATH];this.instructions.push(u),this.hitDetectionInstructions.push(u);for(var c=0;c<l;++c){var h=i[c],d=this.coordinates.length,f=this.appendFlatCoordinates(t,e,h,n,!0,!a),p=[s.a.MOVE_TO_LINE_TO,d,f];if(this.instructions.push(p),this.hitDetectionInstructions.push(p),a){var g=[s.a.CLOSE_PATH];this.instructions.push(g),this.hitDetectionInstructions.push(g)}e=h}var _=[s.a.FILL];if(this.hitDetectionInstructions.push(_),o&&this.instructions.push(_),a){var y=[s.a.STROKE];this.instructions.push(y),this.hitDetectionInstructions.push(y)}return e},u.prototype.drawCircle=function(t,e){var i=this.state,n=i.fillStyle,o=i.strokeStyle;if(void 0!==n||void 0!==o){this.setFillStrokeStyles_(t),this.beginGeometry(t,e),this.hitDetectionInstructions.push([s.a.SET_FILL_STYLE,r.a.asString(a.a.defaultFillStyle)]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([s.a.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);var l=t.getFlatCoordinates(),u=t.getStride(),c=this.coordinates.length;this.appendFlatCoordinates(l,0,l.length,u,!1,!1);var h=[s.a.BEGIN_PATH],d=[s.a.CIRCLE,c];this.instructions.push(h,d),this.hitDetectionInstructions.push(h,d);var f=[s.a.FILL];if(this.hitDetectionInstructions.push(f),void 0!==i.fillStyle&&this.instructions.push(f),void 0!==i.strokeStyle){var p=[s.a.STROKE];this.instructions.push(p),this.hitDetectionInstructions.push(p)}this.endGeometry(t,e)}},u.prototype.drawPolygon=function(t,e){var i=this.state;this.setFillStrokeStyles_(t),this.beginGeometry(t,e),this.hitDetectionInstructions.push([s.a.SET_FILL_STYLE,r.a.asString(a.a.defaultFillStyle)]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([s.a.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);var n=t.getEnds(),o=t.getOrientedFlatCoordinates(),l=t.getStride();this.drawFlatCoordinatess_(o,0,n,l),this.endGeometry(t,e)},u.prototype.drawMultiPolygon=function(t,e){var i=this.state,n=i.fillStyle,o=i.strokeStyle;if(void 0!==n||void 0!==o){this.setFillStrokeStyles_(t),this.beginGeometry(t,e),this.hitDetectionInstructions.push([s.a.SET_FILL_STYLE,r.a.asString(a.a.defaultFillStyle)]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([s.a.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);var l,u,c=t.getEndss(),h=t.getOrientedFlatCoordinates(),d=t.getStride(),f=0;for(l=0,u=c.length;l<u;++l)f=this.drawFlatCoordinatess_(h,f,c[l],d);this.endGeometry(t,e)}},u.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var t=this.tolerance;if(0!==t){var e,i,n=this.coordinates;for(e=0,i=n.length;e<i;++e)n[e]=o.a.snap(n[e],t)}},u.prototype.setFillStrokeStyles_=function(t){var e=this.state;void 0!==e.fillStyle&&this.updateFillStyle(e,this.applyFill,t),void 0!==e.strokeStyle&&this.updateStrokeStyle(e,this.applyStroke)},e.a=u},function(t,e,i){"use strict";var n=i(0),r=i(58),o=i(9),a=i(1),s=i(311),l=i(8),u=i(18),c=i(24),h=i(64),d=i(63),f=i(53),p=i(145),g=function(t,e,i,n,r,o){d.a.call(this,t,e,i,n,r,o),this.declutterGroup_,this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.widths_={},c.a.labelCache.prune()};n.a.inherits(g,d.a),g.measureTextWidths=function(t,e,i){var n,r,o=e.length,a=0;for(r=0;r<o;++r)n=c.a.measureTextWidth(t,e[r]),a=Math.max(a,n),i.push(n);return a},g.prototype.drawText=function(t,e){var i=this.textFillState_,n=this.textStrokeState_,r=this.textState_;if(""!==this.text_&&r&&(i||n)){var o,u,c=this.coordinates.length,h=t.getType(),d=null,f=2,g=2;if(r.placement===p.a.LINE){if(!a.a.intersects(this.getBufferedMaxExtent(),t.getExtent()))return;var _;if(d=t.getFlatCoordinates(),g=t.getStride(),h==l.a.LINE_STRING)_=[d.length];else if(h==l.a.MULTI_LINE_STRING)_=t.getEnds();else if(h==l.a.POLYGON)_=t.getEnds().slice(0,1);else if(h==l.a.MULTI_POLYGON){var y=t.getEndss();for(_=[],o=0,u=y.length;o<u;++o)_.push(y[o][0])}this.beginGeometry(t,e);for(var v,m=r.textAlign,E=0,T=0,S=_.length;T<S;++T){if(void 0==m){var x=s.a.lineString(r.maxAngle,d,E,_[T],g);E=x[0],v=x[1]}else v=_[T];for(o=E;o<v;o+=g)this.coordinates.push(d[o],d[o+1]);f=this.coordinates.length,E=_[T],this.drawChars_(c,f,this.declutterGroup_),c=f}this.endGeometry(t,e)}else{var C=this.getImage(this.text_,this.textKey_,this.fillKey_,this.strokeKey_),R=C.width/this.pixelRatio;switch(h){case l.a.POINT:case l.a.MULTI_POINT:d=t.getFlatCoordinates(),f=d.length;break;case l.a.LINE_STRING:d=t.getFlatMidpoint();break;case l.a.CIRCLE:d=t.getCenter();break;case l.a.MULTI_LINE_STRING:d=t.getFlatMidpoints(),f=d.length;break;case l.a.POLYGON:if(d=t.getFlatInteriorPoint(),!r.overflow&&d[2]/this.resolution<R)return;g=3;break;case l.a.MULTI_POLYGON:var b=t.getFlatInteriorPoints();for(d=[],o=0,u=b.length;o<u;o+=3)(r.overflow||b[o+2]/this.resolution>=R)&&d.push(b[o],b[o+1]);if(0==(f=d.length))return}f=this.appendFlatCoordinates(d,0,f,g,!1,!1),this.beginGeometry(t,e),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),this.updateFillStyle(this.state,this.applyFill,t),this.updateStrokeStyle(this.state,this.applyStroke)),this.drawTextImage_(C,c,f),this.endGeometry(t,e)}}},g.prototype.getImage=function(t,e,i,n){var r,a=n+e+t+i+this.pixelRatio,s=c.a.labelCache;if(!s.containsKey(a)){var l=n?this.strokeStates[n]||this.textStrokeState_:null,h=i?this.fillStates[i]||this.textFillState_:null,d=this.textStates[e]||this.textState_,p=this.pixelRatio,_=d.scale*p,y=f.a.TEXT_ALIGN[d.textAlign||c.a.defaultTextAlign],v=n&&l.lineWidth?l.lineWidth:0,m=t.split("\n"),E=m.length,T=[],S=g.measureTextWidths(d.font,m,T),x=c.a.measureTextHeight(d.font),C=x*E,R=S+v,b=o.a.createCanvasContext2D(Math.ceil(R*_),Math.ceil((C+v)*_));r=b.canvas,s.set(a,r),1!=_&&b.scale(_,_),b.font=d.font,n&&(b.strokeStyle=l.strokeStyle,b.lineWidth=v*(u.a.SAFARI?_:1),b.lineCap=l.lineCap,b.lineJoin=l.lineJoin,b.miterLimit=l.miterLimit,u.a.CANVAS_LINE_DASH&&l.lineDash.length&&(b.setLineDash(l.lineDash),b.lineDashOffset=l.lineDashOffset)),i&&(b.fillStyle=h.fillStyle),b.textBaseline="middle",b.textAlign="center";var I,O=.5-y,P=y*r.width/_+O*v;if(n)for(I=0;I<E;++I)b.strokeText(m[I],P+O*T[I],.5*(v+x)+I*x);if(i)for(I=0;I<E;++I)b.fillText(m[I],P+O*T[I],.5*(v+x)+I*x)}return s.get(a)},g.prototype.drawTextImage_=function(t,e,i){var n=this.textState_,r=this.textStrokeState_,o=this.pixelRatio,a=f.a.TEXT_ALIGN[n.textAlign||c.a.defaultTextAlign],s=f.a.TEXT_ALIGN[n.textBaseline],l=r&&r.lineWidth?r.lineWidth:0,u=a*t.width/o+2*(.5-a)*l,d=s*t.height/o+2*(.5-s)*l;this.instructions.push([h.a.DRAW_IMAGE,e,i,t,(u-this.textOffsetX_)*o,(d-this.textOffsetY_)*o,this.declutterGroup_,t.height,1,0,0,this.textRotateWithView_,this.textRotation_,1,!0,t.width,n.padding==c.a.defaultPadding?c.a.defaultPadding:n.padding.map(function(t){return t*o}),!!n.backgroundFill,!!n.backgroundStroke]),this.hitDetectionInstructions.push([h.a.DRAW_IMAGE,e,i,t,(u-this.textOffsetX_)*o,(d-this.textOffsetY_)*o,this.declutterGroup_,t.height,1,0,0,this.textRotateWithView_,this.textRotation_,1/o,!0,t.width,n.padding,!!n.backgroundFill,!!n.backgroundStroke])},g.prototype.drawChars_=function(t,e,i){var n=this.textStrokeState_,r=this.textState_,o=this.textFillState_,a=this.strokeKey_;n&&(a in this.strokeStates||(this.strokeStates[a]={strokeStyle:n.strokeStyle,lineCap:n.lineCap,lineDashOffset:n.lineDashOffset,lineWidth:n.lineWidth,lineJoin:n.lineJoin,miterLimit:n.miterLimit,lineDash:n.lineDash}));var s=this.textKey_;this.textKey_ in this.textStates||(this.textStates[this.textKey_]={font:r.font,textAlign:r.textAlign||c.a.defaultTextAlign,scale:r.scale});var l=this.fillKey_;o&&(l in this.fillStates||(this.fillStates[l]={fillStyle:o.fillStyle}));var u=this.pixelRatio,d=f.a.TEXT_ALIGN[r.textBaseline],p=this.textOffsetY_*u,g=this.text_,_=r.font,y=r.scale,v=n?n.lineWidth*y/2:0,m=this.widths_[_];m||(this.widths_[_]=m={}),this.instructions.push([h.a.DRAW_CHARS,t,e,d,i,r.overflow,l,r.maxAngle,function(t){var e=m[t];return e||(e=m[t]=c.a.measureTextWidth(_,t)),e*y*u},p,a,v*u,g,s,1]),this.hitDetectionInstructions.push([h.a.DRAW_CHARS,t,e,d,i,r.overflow,l,r.maxAngle,function(t){var e=m[t];return e||(e=m[t]=c.a.measureTextWidth(_,t)),e*y},p,a,v,g,s,1/u])},g.prototype.setTextStyle=function(t,e){var i,o,a;if(t){this.declutterGroup_=e;var s=t.getFill();s?(o=this.textFillState_,o||(o=this.textFillState_={}),o.fillStyle=r.a.asColorLike(s.getColor()||c.a.defaultFillStyle)):o=this.textFillState_=null;var l=t.getStroke();if(l){a=this.textStrokeState_,a||(a=this.textStrokeState_={});var u=l.getLineDash(),h=l.getLineDashOffset(),d=l.getWidth(),f=l.getMiterLimit();a.lineCap=l.getLineCap()||c.a.defaultLineCap,a.lineDash=u?u.slice():c.a.defaultLineDash,a.lineDashOffset=void 0===h?c.a.defaultLineDashOffset:h,a.lineJoin=l.getLineJoin()||c.a.defaultLineJoin,a.lineWidth=void 0===d?c.a.defaultLineWidth:d,a.miterLimit=void 0===f?c.a.defaultMiterLimit:f,a.strokeStyle=r.a.asColorLike(l.getColor()||c.a.defaultStrokeStyle)}else a=this.textStrokeState_=null;i=this.textState_;var p=t.getFont()||c.a.defaultFont;c.a.checkFont(p);var g=t.getScale();i.overflow=t.getOverflow(),i.font=p,i.maxAngle=t.getMaxAngle(),i.placement=t.getPlacement(),i.textAlign=t.getTextAlign(),i.textBaseline=t.getTextBaseline()||c.a.defaultTextBaseline,i.backgroundFill=t.getBackgroundFill(),i.backgroundStroke=t.getBackgroundStroke(),i.padding=t.getPadding()||c.a.defaultPadding,i.scale=void 0===g?1:g;var _=t.getOffsetX(),y=t.getOffsetY(),v=t.getRotateWithView(),m=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===_?0:_,this.textOffsetY_=void 0===y?0:y,this.textRotateWithView_=void 0!==v&&v,this.textRotation_=void 0===m?0:m,this.strokeKey_=a?("string"==typeof a.strokeStyle?a.strokeStyle:n.a.getUid(a.strokeStyle))+a.lineCap+a.lineDashOffset+"|"+a.lineWidth+a.lineJoin+a.miterLimit+"["+a.lineDash.join()+"]":"",this.textKey_=i.font+i.scale+(i.textAlign||"?"),this.fillKey_=o?"string"==typeof o.fillStyle?o.fillStyle:"|"+n.a.getUid(o.fillStyle):""}else this.text_=""},e.a=g},function(t,e,i){"use strict";var n={};n.lineString=function(t,e,i,n,r){var o,a,s,l,u,c,h,d,f,p=i,g=i,_=0,y=0,v=i;for(o=i;o<n;o+=r){var m=e[o],E=e[o+1];void 0!==l&&(d=m-l,f=E-u,s=Math.sqrt(d*d+f*f),void 0!==c&&(y+=a,Math.acos((c*d+h*f)/(a*s))>t&&(y>_&&(_=y,p=v,g=o),y=0,v=o-r)),a=s,c=d,h=f),l=m,u=E}return y+=s,y>_?[v,o]:[p,g]},e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(20),o=i(15),a=i(9),s=i(3),l=i(4),u=i(109),c=i.n(u),h=i(1),d=i(173),f=i(11),p=i(27),g=i(62),_=i(24),y=i(170),v=i(53),m=i(23),E=i(108),T=i(110),S=i(10),x=function(t){this.context=null,E.default.call(this,t),this.declutterTree_=t.getDeclutter()?c()(9):null,this.dirty_=!1,this.renderedLayerRevision_,this.tmpTransform_=S.a.create(),this.zDirection=t.getRenderMode()==d.a.VECTOR?1:0,s.a.listen(_.a.labelCache,l.a.CLEAR,this.handleFontsChanged_,this)};n.a.inherits(x,E.default),x.handles=function(t,e){return t===m.a.CANVAS&&e.getType()===r.a.VECTOR_TILE},x.create=function(t,e){return new x(e)},x.IMAGE_REPLAYS={image:[g.a.POLYGON,g.a.CIRCLE,g.a.LINE_STRING,g.a.IMAGE,g.a.TEXT],hybrid:[g.a.POLYGON,g.a.LINE_STRING]},x.VECTOR_REPLAYS={image:[g.a.DEFAULT],hybrid:[g.a.IMAGE,g.a.TEXT,g.a.DEFAULT],vector:v.a.ORDER},x.prototype.disposeInternal=function(){s.a.unlisten(_.a.labelCache,l.a.CLEAR,this.handleFontsChanged_,this),E.default.prototype.disposeInternal.call(this)},x.prototype.prepareFrame=function(t,e){var i=this.getLayer(),n=i.getRevision();if(this.renderedLayerRevision_!=n){this.renderedTiles.length=0;var r=i.getRenderMode();this.context||r==d.a.VECTOR||(this.context=a.a.createCanvasContext2D()),this.context&&r==d.a.VECTOR&&(this.context=null)}return this.renderedLayerRevision_=n,E.default.prototype.prepareFrame.apply(this,arguments)},x.prototype.createReplayGroup_=function(t,e){var i=this.getLayer(),n=e.pixelRatio,r=e.viewState.projection,a=i.getRevision(),s=i.getRenderOrder()||null,l=t.getReplayState(i);if(l.dirty||l.renderedRevision!=a||l.renderedRenderOrder!=s){for(var u=i.getSource(),c=u.getTileGrid(),d=u.getTileGridForProjection(r),g=d.getResolution(t.tileCoord[0]),_=d.getTileCoordExtent(t.wrappedTileCoord),v={},m=0,E=t.tileKeys.length;m<E;++m){var S=t.getTile(t.tileKeys[m]);if(S.getState()!=o.a.ERROR){var x=S.tileCoord,C=c.getTileCoordExtent(x),R=h.a.getIntersection(_,C),b=h.a.equals(C,R)?null:h.a.buffer(R,i.getRenderBuffer()*g),I=S.getProjection(),O=!1;f.default.equivalent(r,I)||(O=!0,S.setProjection(r)),l.dirty=!1;var P=new y.a(0,R,g,n,u.getOverlaps(),this.declutterTree_,i.getRenderBuffer()),w=T.a.getSquaredTolerance(g,n),L=function(t){var e,n=t.getStyleFunction();if(n?e=n.call(t,g):(n=i.getStyleFunction())&&(e=n(t,g)),e){var r=this.renderFeature(t,w,e,P);this.dirty_=this.dirty_||r,l.dirty=l.dirty||r}},A=S.getFeatures();s&&s!==l.renderedRenderOrder&&A.sort(s);for(var M,F=0,N=A.length;F<N;++F)M=A[F],O&&(I.getUnits()==p.a.TILE_PIXELS&&(I.setWorldExtent(C),I.setExtent(S.getExtent())),M.getGeometry().transform(I,r)),b&&!h.a.intersects(b,M.getGeometry().getExtent())||L.call(this,M);P.finish();for(var D in P.getReplays())v[D]=!0;S.setReplayGroup(i,t.tileCoord.toString(),P)}}l.renderedRevision=a,l.renderedRenderOrder=s}},x.prototype.drawTileImage=function(t,e,i,n,r,o,a,s,l){var u=t;this.createReplayGroup_(u,e),this.context&&(this.renderTileImage_(u,e,i),E.default.prototype.drawTileImage.apply(this,arguments))},x.prototype.forEachFeatureAtCoordinate=function(t,e,i,r,a){var s=e.viewState.resolution,l=e.viewState.rotation;i=void 0==i?0:i;var u,c,d,f,p,g,_,y,v=this.getLayer(),m={},E=this.renderedTiles,T=v.getSource(),S=T.getTileGridForProjection(e.viewState.projection);for(d=0,f=E.length;d<f;++d)if(g=E[d],_=g.wrappedTileCoord,y=S.getTileCoordExtent(_,this.tmpExtent),u=h.a.buffer(y,i*s,u),h.a.containsCoordinate(u,t))for(var x=0,C=g.tileKeys.length;x<C;++x){var R=g.getTile(g.tileKeys[x]);R.getState()!=o.a.ERROR&&(p=R.getReplayGroup(v,g.tileCoord.toString()),c=c||p.forEachFeatureAtCoordinate(t,s,l,i,{},function(t){var e=n.a.getUid(t).toString();if(!(e in m))return m[e]=!0,r.call(a,t,v)},null))}return c},x.prototype.getReplayTransform_=function(t,e){var i=this.getLayer(),n=i.getSource(),r=n.getTileGrid(),o=t.tileCoord,a=r.getResolution(o[0]),s=e.viewState,l=e.pixelRatio,u=s.resolution/l,c=r.getTileCoordExtent(o,this.tmpExtent),d=s.center,f=h.a.getTopLeft(c),p=e.size,g=Math.round(l*p[0]/2),_=Math.round(l*p[1]/2);return S.a.compose(this.tmpTransform_,g,_,a/u,a/u,s.rotation,(f[0]-d[0])/a,(d[1]-f[1])/a)},x.prototype.handleFontsChanged_=function(t){var e=this.getLayer();e.getVisible()&&void 0!==this.renderedLayerRevision_&&e.changed()},x.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},x.prototype.postCompose=function(t,e,i){var n,r,a=this.getLayer(),s=a.getDeclutter()?{}:null,l=a.getSource(),u=a.getRenderMode(),c=x.VECTOR_REPLAYS[u],h=e.pixelRatio,f=e.viewState.rotation,p=e.size;f&&(n=Math.round(h*p[0]/2),r=Math.round(h*p[1]/2),_.a.rotateAtOffset(t,-f,n,r)),s&&this.declutterTree_.clear();for(var g=this.renderedTiles,v=l.getTileGridForProjection(e.viewState.projection),m=[],T=[],S=g.length-1;S>=0;--S){var C=g[S];if(C.getState()!=o.a.ABORT)for(var R=C.tileCoord,b=v.getTileCoordExtent(R)[0]-v.getTileCoordExtent(C.wrappedTileCoord)[0],I=void 0,O=0,P=C.tileKeys.length;O<P;++O){var w=C.getTile(C.tileKeys[O]);if(w.getState()!=o.a.ERROR){var L=w.getReplayGroup(a,R.toString());if(u==d.a.VECTOR||L.hasReplays(c)){I||(I=this.getTransform(e,b));var A=w.tileCoord[0],M=L.getClipCoords(I);t.save(),t.globalAlpha=i.opacity;for(var F=0,N=m.length;F<N;++F){var D=m[F];A<T[F]&&(t.beginPath(),t.moveTo(M[0],M[1]),t.lineTo(M[2],M[3]),t.lineTo(M[4],M[5]),t.lineTo(M[6],M[7]),t.moveTo(D[6],D[7]),t.lineTo(D[4],D[5]),t.lineTo(D[2],D[3]),t.lineTo(D[0],D[1]),t.clip())}L.replay(t,I,f,{},c,s),t.restore(),m.push(M),T.push(A)}}}}s&&y.a.replayDeclutter(s,t,f),f&&_.a.rotateAtOffset(t,f,n,r),E.default.prototype.postCompose.apply(this,arguments)},x.prototype.renderFeature=function(t,e,i,n){if(!i)return!1;var r=!1;if(Array.isArray(i))for(var o=0,a=i.length;o<a;++o)r=T.a.renderFeature(n,t,i[o],e,this.handleStyleImageChange_,this)||r;else r=T.a.renderFeature(n,t,i,e,this.handleStyleImageChange_,this);return r},x.prototype.renderTileImage_=function(t,e,i){var n=this.getLayer(),r=t.getReplayState(n),a=n.getRevision(),s=x.IMAGE_REPLAYS[n.getRenderMode()];if(s&&r.renderedTileRevision!==a){r.renderedTileRevision=a;var l=t.wrappedTileCoord,u=l[0],c=e.pixelRatio,h=n.getSource(),d=h.getTileGridForProjection(e.viewState.projection),f=d.getResolution(u),p=t.getContext(n),g=h.getTilePixelSize(u,c,e.viewState.projection);p.canvas.width=g[0],p.canvas.height=g[1];for(var _=d.getTileCoordExtent(l),y=0,v=t.tileKeys.length;y<v;++y){var m=t.getTile(t.tileKeys[y]);if(m.getState()!=o.a.ERROR){var E=c/f,T=S.a.reset(this.tmpTransform_);S.a.scale(T,E,-E),S.a.translate(T,-_[0],-_[3]);m.getReplayGroup(n,t.tileCoord.toString()).replay(p,T,0,{},s)}}}},e.a=x},function(t,e,i){"use strict";var n=i(0),r=i(20),o=i(17),a=i(9),s=i(1),l=i(12),u=i(23),c=i(111),h=i(10),d=i(13),f=i(84),p=function(t,e){c.a.call(this,t,e),this.image_=null,this.hitCanvasContext_=null,this.hitTransformationMatrix_=null};n.a.inherits(p,c.a),p.handles=function(t,e){return t===u.a.WEBGL&&e.getType()===r.a.IMAGE},p.create=function(t,e){return new p(t,e)},p.prototype.createTexture_=function(t){var e=t.getImage(),i=this.mapRenderer.getGL();return f.a.createTexture(i,e,d.a.CLAMP_TO_EDGE,d.a.CLAMP_TO_EDGE)},p.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,r){var o=this.getLayer(),a=o.getSource(),s=e.viewState.resolution,l=e.viewState.rotation,u=e.skippedFeatureUids;return a.forEachFeatureAtCoordinate(t,s,l,i,u,function(t){return n.call(r,t,o)})},p.prototype.prepareFrame=function(t,e,i){var r=this.mapRenderer.getGL(),a=t.pixelRatio,l=t.viewState,u=l.center,c=l.resolution,d=l.rotation,f=this.image_,p=this.texture,g=this.getLayer(),_=g.getSource(),y=t.viewHints,v=t.extent;if(void 0!==e.extent&&(v=s.a.getIntersection(v,e.extent)),!y[o.a.ANIMATING]&&!y[o.a.INTERACTING]&&!s.a.isEmpty(v)){var m=l.projection;if(!n.a.ENABLE_RASTER_REPROJECTION){var E=_.getProjection();E&&(m=E)}var T=_.getImage(v,c,a,m);if(T){if(this.loadImage(T)&&(f=T,p=this.createTexture_(T),this.texture)){var S=function(t,e){t.isContextLost()||t.deleteTexture(e)}.bind(null,r,this.texture);t.postRenderFunctions.push(S)}}}if(f){var x=this.mapRenderer.getContext().getCanvas();this.updateProjectionMatrix_(x.width,x.height,a,u,c,d,f.getExtent()),this.hitTransformationMatrix_=null;var C=this.texCoordMatrix;h.a.reset(C),h.a.scale(C,1,-1),h.a.translate(C,0,-1),this.image_=f,this.texture=p,this.updateLogos(t,_)}return!!f},p.prototype.updateProjectionMatrix_=function(t,e,i,n,r,o,a){var s=t*r,l=e*r,u=this.projectionMatrix;h.a.reset(u),h.a.scale(u,2*i/s,2*i/l),h.a.rotate(u,-o),h.a.translate(u,a[0]-n[0],a[1]-n[1]),h.a.scale(u,(a[2]-a[0])/2,(a[3]-a[1])/2),h.a.translate(u,1,1)},p.prototype.hasFeatureAtCoordinate=function(t,e){return void 0!==this.forEachFeatureAtCoordinate(t,e,0,l.a.TRUE,this)},p.prototype.forEachLayerAtPixel=function(t,e,i,r){if(this.image_&&this.image_.getImage()){if(this.getLayer().getSource().forEachFeatureAtCoordinate!==n.a.nullFunction){var o=h.a.apply(e.pixelToCoordinateTransform,t.slice());return this.forEachFeatureAtCoordinate(o,e,0,l.a.TRUE,this)?i.call(r,this.getLayer(),null):void 0}var s=[this.image_.getImage().width,this.image_.getImage().height];this.hitTransformationMatrix_||(this.hitTransformationMatrix_=this.getHitTransformationMatrix_(e.size,s));var u=h.a.apply(this.hitTransformationMatrix_,t.slice());if(!(u[0]<0||u[0]>s[0]||u[1]<0||u[1]>s[1])){this.hitCanvasContext_||(this.hitCanvasContext_=a.a.createCanvasContext2D(1,1)),this.hitCanvasContext_.clearRect(0,0,1,1),this.hitCanvasContext_.drawImage(this.image_.getImage(),u[0],u[1],1,1,0,0,1,1);var c=this.hitCanvasContext_.getImageData(0,0,1,1).data;return c[3]>0?i.call(r,this.getLayer(),c):void 0}}},p.prototype.getHitTransformationMatrix_=function(t,e){var i=h.a.create();h.a.translate(i,-1,-1),h.a.scale(i,2/t[0],2/t[1]),h.a.translate(i,0,t[1]),h.a.scale(i,1,-1);var n=h.a.invert(this.projectionMatrix.slice()),r=h.a.create();return h.a.translate(r,0,e[1]),h.a.scale(r,1,-1),h.a.scale(r,e[0]/2,e[1]/2),h.a.translate(r,1,1),h.a.multiply(r,n),h.a.multiply(r,i),r},e.a=p},function(t,e,i){"use strict";var n=i(0),r=i(5),o=i(32),a=i(1),s=i(2),l=i(26),u=i(315),c=i(316),h=i(82),d=i(83),f=i(13),p=i(47),g=function(t,e){h.a.call(this,t,e),this.defaultLocations_=null,this.styles_=[],this.styleIndices_=[],this.radius_=0,this.state_={fillColor:null,strokeColor:null,lineDash:null,lineDashOffset:void 0,lineWidth:void 0,changed:!1}};n.a.inherits(g,h.a),g.prototype.drawCoordinates_=function(t,e,i,n){var r,o,a=this.vertices.length,s=this.indices.length,l=a/4;for(r=e,o=i;r<o;r+=n)this.vertices[a++]=t[r],this.vertices[a++]=t[r+1],this.vertices[a++]=0,this.vertices[a++]=this.radius_,this.vertices[a++]=t[r],this.vertices[a++]=t[r+1],this.vertices[a++]=1,this.vertices[a++]=this.radius_,this.vertices[a++]=t[r],this.vertices[a++]=t[r+1],this.vertices[a++]=2,this.vertices[a++]=this.radius_,this.vertices[a++]=t[r],this.vertices[a++]=t[r+1],this.vertices[a++]=3,this.vertices[a++]=this.radius_,this.indices[s++]=l,this.indices[s++]=l+1,this.indices[s++]=l+2,this.indices[s++]=l+2,this.indices[s++]=l+3,this.indices[s++]=l,l+=4},g.prototype.drawCircle=function(t,e){var i=t.getRadius(),n=t.getStride();if(i){this.startIndices.push(this.indices.length),this.startIndicesFeature.push(e),this.state_.changed&&(this.styleIndices_.push(this.indices.length),this.state_.changed=!1),this.radius_=i;var r=t.getFlatCoordinates();r=l.a.translate(r,0,2,n,-this.origin[0],-this.origin[1]),this.drawCoordinates_(r,0,2,n)}else if(this.state_.changed&&(this.styles_.pop(),this.styles_.length)){var o=this.styles_[this.styles_.length-1];this.state_.fillColor=o[0],this.state_.strokeColor=o[1],this.state_.lineWidth=o[2],this.state_.changed=!1}},g.prototype.finish=function(t){this.verticesBuffer=new p.a(this.vertices),this.indicesBuffer=new p.a(this.indices),this.startIndices.push(this.indices.length),0===this.styleIndices_.length&&this.styles_.length>0&&(this.styles_=[]),this.vertices=null,this.indices=null},g.prototype.getDeleteResourcesFunction=function(t){var e=this.verticesBuffer,i=this.indicesBuffer;return function(){t.deleteBuffer(e),t.deleteBuffer(i)}},g.prototype.setUpProgram=function(t,e,i,n){var r,o;r=u.a.fragment,o=u.a.vertex;var a,s=e.getProgram(r,o);return this.defaultLocations_?a=this.defaultLocations_:(a=new c.a(t,s),this.defaultLocations_=a),e.useProgram(s),t.enableVertexAttribArray(a.a_position),t.vertexAttribPointer(a.a_position,2,f.a.FLOAT,!1,16,0),t.enableVertexAttribArray(a.a_instruction),t.vertexAttribPointer(a.a_instruction,1,f.a.FLOAT,!1,16,8),t.enableVertexAttribArray(a.a_radius),t.vertexAttribPointer(a.a_radius,1,f.a.FLOAT,!1,16,12),t.uniform2fv(a.u_size,i),t.uniform1f(a.u_pixelRatio,n),a},g.prototype.shutDownProgram=function(t,e){t.disableVertexAttribArray(e.a_position),t.disableVertexAttribArray(e.a_instruction),t.disableVertexAttribArray(e.a_radius)},g.prototype.drawReplay=function(t,e,i,n){if(s.a.isEmpty(i)){var r,o,a,l;for(a=this.startIndices[this.startIndices.length-1],r=this.styleIndices_.length-1;r>=0;--r)o=this.styleIndices_[r],l=this.styles_[r],this.setFillStyle_(t,l[0]),this.setStrokeStyle_(t,l[1],l[2]),this.drawElements(t,e,o,a),a=o}else this.drawReplaySkipping_(t,e,i)},g.prototype.drawHitDetectionReplayOneByOne=function(t,e,i,r,o){var s,l,u,c,h,d,f,p;for(p=this.startIndices.length-2,u=this.startIndices[p+1],s=this.styleIndices_.length-1;s>=0;--s)for(c=this.styles_[s],this.setFillStyle_(t,c[0]),this.setStrokeStyle_(t,c[1],c[2]),h=this.styleIndices_[s];p>=0&&this.startIndices[p]>=h;){if(l=this.startIndices[p],d=this.startIndicesFeature[p],f=n.a.getUid(d).toString(),void 0===i[f]&&d.getGeometry()&&(void 0===o||a.a.intersects(o,d.getGeometry().getExtent()))){t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),this.drawElements(t,e,l,u);var g=r(d);if(g)return g}p--,u=l}},g.prototype.drawReplaySkipping_=function(t,e,i){var r,o,a,s,l,u,c,h,d;for(h=this.startIndices.length-2,a=o=this.startIndices[h+1],r=this.styleIndices_.length-1;r>=0;--r){for(s=this.styles_[r],this.setFillStyle_(t,s[0]),this.setStrokeStyle_(t,s[1],s[2]),l=this.styleIndices_[r];h>=0&&this.startIndices[h]>=l;)d=this.startIndices[h],u=this.startIndicesFeature[h],c=n.a.getUid(u).toString(),i[c]&&(o!==a&&this.drawElements(t,e,o,a),a=d),h--,o=d;o!==a&&this.drawElements(t,e,o,a),o=a=l}},g.prototype.setFillStyle_=function(t,e){t.uniform4fv(this.defaultLocations_.u_fillColor,e)},g.prototype.setStrokeStyle_=function(t,e,i){t.uniform4fv(this.defaultLocations_.u_strokeColor,e),t.uniform1f(this.defaultLocations_.u_lineWidth,i)},g.prototype.setFillStrokeStyle=function(t,e){var i,n;if(e){var a=e.getLineDash();this.state_.lineDash=a||d.a.defaultLineDash;var s=e.getLineDashOffset();this.state_.lineDashOffset=s||d.a.defaultLineDashOffset,i=e.getColor(),i=i instanceof CanvasGradient||i instanceof CanvasPattern?d.a.defaultStrokeStyle:o.a.asArray(i).map(function(t,e){return 3!=e?t/255:t})||d.a.defaultStrokeStyle,n=e.getWidth(),n=void 0!==n?n:d.a.defaultLineWidth}else i=[0,0,0,0],n=0;var l=t?t.getColor():[0,0,0,0];l=l instanceof CanvasGradient||l instanceof CanvasPattern?d.a.defaultFillStyle:o.a.asArray(l).map(function(t,e){return 3!=e?t/255:t})||d.a.defaultFillStyle,this.state_.strokeColor&&r.a.equals(this.state_.strokeColor,i)&&this.state_.fillColor&&r.a.equals(this.state_.fillColor,l)&&this.state_.lineWidth===n||(this.state_.changed=!0,this.state_.fillColor=l,this.state_.strokeColor=i,this.state_.lineWidth=n,this.styles_.push([l,i,n]))},e.a=g},function(t,e,i){"use strict";var n=i(0),r=i(54),o=i(55),a={};a.fragment=new r.a(n.a.DEBUG_WEBGL?"precision mediump float;\nvarying vec2 v_center;\nvarying vec2 v_offset;\nvarying float v_halfWidth;\nvarying float v_pixelRatio;\n\n\n\nuniform float u_opacity;\nuniform vec4 u_fillColor;\nuniform vec4 u_strokeColor;\nuniform vec2 u_size;\n\nvoid main(void) {\n  vec2 windowCenter = vec2((v_center.x + 1.0) / 2.0 * u_size.x * v_pixelRatio,\n      (v_center.y + 1.0) / 2.0 * u_size.y * v_pixelRatio);\n  vec2 windowOffset = vec2((v_offset.x + 1.0) / 2.0 * u_size.x * v_pixelRatio,\n      (v_offset.y + 1.0) / 2.0 * u_size.y * v_pixelRatio);\n  float radius = length(windowCenter - windowOffset);\n  float dist = length(windowCenter - gl_FragCoord.xy);\n  if (dist > radius + v_halfWidth) {\n    if (u_strokeColor.a == 0.0) {\n      gl_FragColor = u_fillColor;\n    } else {\n      gl_FragColor = u_strokeColor;\n    }\n    gl_FragColor.a = gl_FragColor.a - (dist - (radius + v_halfWidth));\n  } else if (u_fillColor.a == 0.0) {\n    // Hooray, no fill, just stroke. We can use real antialiasing.\n    gl_FragColor = u_strokeColor;\n    if (dist < radius - v_halfWidth) {\n      gl_FragColor.a = gl_FragColor.a - (radius - v_halfWidth - dist);\n    }\n  } else {\n    gl_FragColor = u_fillColor;\n    float strokeDist = radius - v_halfWidth;\n    float antialias = 2.0 * v_pixelRatio;\n    if (dist > strokeDist) {\n      gl_FragColor = u_strokeColor;\n    } else if (dist >= strokeDist - antialias) {\n      float step = smoothstep(strokeDist - antialias, strokeDist, dist);\n      gl_FragColor = mix(u_fillColor, u_strokeColor, step);\n    }\n  }\n  gl_FragColor.a = gl_FragColor.a * u_opacity;\n  if (gl_FragColor.a <= 0.0) {\n    discard;\n  }\n}\n":"precision mediump float;varying vec2 a;varying vec2 b;varying float c;varying float d;uniform float m;uniform vec4 n;uniform vec4 o;uniform vec2 p;void main(void){vec2 windowCenter=vec2((a.x+1.0)/2.0*p.x*d,(a.y+1.0)/2.0*p.y*d);vec2 windowOffset=vec2((b.x+1.0)/2.0*p.x*d,(b.y+1.0)/2.0*p.y*d);float radius=length(windowCenter-windowOffset);float dist=length(windowCenter-gl_FragCoord.xy);if(dist>radius+c){if(o.a==0.0){gl_FragColor=n;}else{gl_FragColor=o;}gl_FragColor.a=gl_FragColor.a-(dist-(radius+c));}else if(n.a==0.0){gl_FragColor=o;if(dist<radius-c){gl_FragColor.a=gl_FragColor.a-(radius-c-dist);}} else{gl_FragColor=n;float strokeDist=radius-c;float antialias=2.0*d;if(dist>strokeDist){gl_FragColor=o;}else if(dist>=strokeDist-antialias){float step=smoothstep(strokeDist-antialias,strokeDist,dist);gl_FragColor=mix(n,o,step);}} gl_FragColor.a=gl_FragColor.a*m;if(gl_FragColor.a<=0.0){discard;}}"),a.vertex=new o.a(n.a.DEBUG_WEBGL?"varying vec2 v_center;\nvarying vec2 v_offset;\nvarying float v_halfWidth;\nvarying float v_pixelRatio;\n\n\nattribute vec2 a_position;\nattribute float a_instruction;\nattribute float a_radius;\n\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\nuniform float u_lineWidth;\nuniform float u_pixelRatio;\n\nvoid main(void) {\n  mat4 offsetMatrix = u_offsetScaleMatrix * u_offsetRotateMatrix;\n  v_center = vec4(u_projectionMatrix * vec4(a_position, 0.0, 1.0)).xy;\n  v_pixelRatio = u_pixelRatio;\n  float lineWidth = u_lineWidth * u_pixelRatio;\n  v_halfWidth = lineWidth / 2.0;\n  if (lineWidth == 0.0) {\n    lineWidth = 2.0 * u_pixelRatio;\n  }\n  vec2 offset;\n  // Radius with anitaliasing (roughly).\n  float radius = a_radius + 3.0 * u_pixelRatio;\n  // Until we get gl_VertexID in WebGL, we store an instruction.\n  if (a_instruction == 0.0) {\n    // Offsetting the edges of the triangle by lineWidth / 2 is necessary, however\n    // we should also leave some space for the antialiasing, thus we offset by lineWidth.\n    offset = vec2(-1.0, 1.0);\n  } else if (a_instruction == 1.0) {\n    offset = vec2(-1.0, -1.0);\n  } else if (a_instruction == 2.0) {\n    offset = vec2(1.0, -1.0);\n  } else {\n    offset = vec2(1.0, 1.0);\n  }\n\n  gl_Position = u_projectionMatrix * vec4(a_position + offset * radius, 0.0, 1.0) +\n      offsetMatrix * vec4(offset * lineWidth, 0.0, 0.0);\n  v_offset = vec4(u_projectionMatrix * vec4(a_position.x + a_radius, a_position.y,\n      0.0, 1.0)).xy;\n\n  if (distance(v_center, v_offset) > 20000.0) {\n    gl_Position = vec4(v_center, 0.0, 1.0);\n  }\n}\n\n\n":"varying vec2 a;varying vec2 b;varying float c;varying float d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;uniform float k;uniform float l;void main(void){mat4 offsetMatrix=i*j;a=vec4(h*vec4(e,0.0,1.0)).xy;d=l;float lineWidth=k*l;c=lineWidth/2.0;if(lineWidth==0.0){lineWidth=2.0*l;}vec2 offset;float radius=g+3.0*l;//Until we get gl_VertexID in WebGL,we store an instruction.if(f==0.0){//Offsetting the edges of the triangle by lineWidth/2 is necessary,however//we should also leave some space for the antialiasing,thus we offset by lineWidth.offset=vec2(-1.0,1.0);}else if(f==1.0){offset=vec2(-1.0,-1.0);}else if(f==2.0){offset=vec2(1.0,-1.0);}else{offset=vec2(1.0,1.0);}gl_Position=h*vec4(e+offset*radius,0.0,1.0)+offsetMatrix*vec4(offset*lineWidth,0.0,0.0);b=vec4(h*vec4(e.x+g,e.y,0.0,1.0)).xy;if(distance(a,b)>20000.0){gl_Position=vec4(a,0.0,1.0);}}"),e.a=a},function(t,e,i){"use strict";var n=i(0),r=function(t,e){this.u_projectionMatrix=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_projectionMatrix":"h"),this.u_offsetScaleMatrix=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_offsetScaleMatrix":"i"),this.u_offsetRotateMatrix=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_offsetRotateMatrix":"j"),this.u_lineWidth=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_lineWidth":"k"),this.u_pixelRatio=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_pixelRatio":"l"),this.u_opacity=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_opacity":"m"),this.u_fillColor=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_fillColor":"n"),this.u_strokeColor=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_strokeColor":"o"),this.u_size=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_size":"p"),this.a_position=t.getAttribLocation(e,n.a.DEBUG_WEBGL?"a_position":"e"),this.a_instruction=t.getAttribLocation(e,n.a.DEBUG_WEBGL?"a_instruction":"f"),this.a_radius=t.getAttribLocation(e,n.a.DEBUG_WEBGL?"a_radius":"g")};e.a=r},function(t,e,i){"use strict";var n=i(0),r=i(178),o=i(47),a=function(t,e){r.a.call(this,t,e),this.images_=[],this.hitDetectionImages_=[],this.textures_=[],this.hitDetectionTextures_=[]};n.a.inherits(a,r.a),a.prototype.drawMultiPoint=function(t,e){this.startIndices.push(this.indices.length),this.startIndicesFeature.push(e);var i=t.getFlatCoordinates(),n=t.getStride();this.drawCoordinates(i,0,i.length,n)},a.prototype.drawPoint=function(t,e){this.startIndices.push(this.indices.length),this.startIndicesFeature.push(e);var i=t.getFlatCoordinates(),n=t.getStride();this.drawCoordinates(i,0,i.length,n)},a.prototype.finish=function(t){var e=t.getGL();this.groupIndices.push(this.indices.length),this.hitDetectionGroupIndices.push(this.indices.length),this.verticesBuffer=new o.a(this.vertices);var i=this.indices;this.indicesBuffer=new o.a(i);var n={};this.createTextures(this.textures_,this.images_,n,e),this.createTextures(this.hitDetectionTextures_,this.hitDetectionImages_,n,e),this.images_=null,this.hitDetectionImages_=null,r.a.prototype.finish.call(this,t)},a.prototype.setImageStyle=function(t){var e,i=t.getAnchor(),r=t.getImage(1),o=t.getImageSize(),a=t.getHitDetectionImage(1),s=t.getOpacity(),l=t.getOrigin(),u=t.getRotateWithView(),c=t.getRotation(),h=t.getSize(),d=t.getScale();0===this.images_.length?this.images_.push(r):(e=this.images_[this.images_.length-1],n.a.getUid(e)!=n.a.getUid(r)&&(this.groupIndices.push(this.indices.length),this.images_.push(r))),0===this.hitDetectionImages_.length?this.hitDetectionImages_.push(a):(e=this.hitDetectionImages_[this.hitDetectionImages_.length-1],n.a.getUid(e)!=n.a.getUid(a)&&(this.hitDetectionGroupIndices.push(this.indices.length),this.hitDetectionImages_.push(a))),this.anchorX=i[0],this.anchorY=i[1],this.height=h[1],this.imageHeight=o[1],this.imageWidth=o[0],this.opacity=s,this.originX=l[0],this.originY=l[1],this.rotation=c,this.rotateWithView=u,this.scale=d,this.width=h[0]},a.prototype.getTextures=function(t){return t?this.textures_.concat(this.hitDetectionTextures_):this.textures_},a.prototype.getHitDetectionTextures=function(){return this.hitDetectionTextures_},e.a=a},function(t,e,i){"use strict";var n=i(0),r=i(54),o=i(55),a={};a.fragment=new r.a(n.a.DEBUG_WEBGL?"precision mediump float;\nvarying vec2 v_texCoord;\nvarying float v_opacity;\n\nuniform float u_opacity;\nuniform sampler2D u_image;\n\nvoid main(void) {\n  vec4 texColor = texture2D(u_image, v_texCoord);\n  gl_FragColor.rgb = texColor.rgb;\n  float alpha = texColor.a * v_opacity * u_opacity;\n  if (alpha == 0.0) {\n    discard;\n  }\n  gl_FragColor.a = alpha;\n}\n":"precision mediump float;varying vec2 a;varying float b;uniform float k;uniform sampler2D l;void main(void){vec4 texColor=texture2D(l,a);gl_FragColor.rgb=texColor.rgb;float alpha=texColor.a*b*k;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"),a.vertex=new o.a(n.a.DEBUG_WEBGL?"varying vec2 v_texCoord;\nvarying float v_opacity;\n\nattribute vec2 a_position;\nattribute vec2 a_texCoord;\nattribute vec2 a_offsets;\nattribute float a_opacity;\nattribute float a_rotateWithView;\n\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\n\nvoid main(void) {\n  mat4 offsetMatrix = u_offsetScaleMatrix;\n  if (a_rotateWithView == 1.0) {\n    offsetMatrix = u_offsetScaleMatrix * u_offsetRotateMatrix;\n  }\n  vec4 offsets = offsetMatrix * vec4(a_offsets, 0.0, 0.0);\n  gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n  v_texCoord = a_texCoord;\n  v_opacity = a_opacity;\n}\n\n\n":"varying vec2 a;varying float b;attribute vec2 c;attribute vec2 d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;void main(void){mat4 offsetMatrix=i;if(g==1.0){offsetMatrix=i*j;}vec4 offsets=offsetMatrix*vec4(e,0.0,0.0);gl_Position=h*vec4(c,0.0,1.0)+offsets;a=d;b=f;}"),e.a=a},function(t,e,i){"use strict";var n=i(0),r=function(t,e){this.u_projectionMatrix=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_projectionMatrix":"h"),this.u_offsetScaleMatrix=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_offsetScaleMatrix":"i"),this.u_offsetRotateMatrix=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_offsetRotateMatrix":"j"),this.u_opacity=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_opacity":"k"),this.u_image=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_image":"l"),this.a_position=t.getAttribLocation(e,n.a.DEBUG_WEBGL?"a_position":"c"),this.a_texCoord=t.getAttribLocation(e,n.a.DEBUG_WEBGL?"a_texCoord":"d"),this.a_offsets=t.getAttribLocation(e,n.a.DEBUG_WEBGL?"a_offsets":"e"),this.a_opacity=t.getAttribLocation(e,n.a.DEBUG_WEBGL?"a_opacity":"f"),this.a_rotateWithView=t.getAttribLocation(e,n.a.DEBUG_WEBGL?"a_rotateWithView":"g")};e.a=r},function(t,e,i){"use strict";var n=i(78),r={};r.lineStringIsClosed=function(t,e,i,r){var o=i-r;return t[e]===t[o]&&t[e+1]===t[o+1]&&(i-e)/r>3&&!!n.a.linearRing(t,e,i,r)},e.a=r},function(t,e,i){"use strict";var n=i(0),r=i(54),o=i(55),a={};a.fragment=new r.a(n.a.DEBUG_WEBGL?"precision mediump float;\nvarying float v_round;\nvarying vec2 v_roundVertex;\nvarying float v_halfWidth;\n\n\n\nuniform float u_opacity;\nuniform vec4 u_color;\nuniform vec2 u_size;\nuniform float u_pixelRatio;\n\nvoid main(void) {\n  if (v_round > 0.0) {\n    vec2 windowCoords = vec2((v_roundVertex.x + 1.0) / 2.0 * u_size.x * u_pixelRatio,\n        (v_roundVertex.y + 1.0) / 2.0 * u_size.y * u_pixelRatio);\n    if (length(windowCoords - gl_FragCoord.xy) > v_halfWidth * u_pixelRatio) {\n      discard;\n    }\n  }\n  gl_FragColor = u_color;\n  float alpha = u_color.a * u_opacity;\n  if (alpha == 0.0) {\n    discard;\n  }\n  gl_FragColor.a = alpha;\n}\n":"precision mediump float;varying float a;varying vec2 aVertex;varying float c;uniform float m;uniform vec4 n;uniform vec2 o;uniform float p;void main(void){if(a>0.0){vec2 windowCoords=vec2((aVertex.x+1.0)/2.0*o.x*p,(aVertex.y+1.0)/2.0*o.y*p);if(length(windowCoords-gl_FragCoord.xy)>c*p){discard;}} gl_FragColor=n;float alpha=n.a*m;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"),a.vertex=new o.a(n.a.DEBUG_WEBGL?"varying float v_round;\nvarying vec2 v_roundVertex;\nvarying float v_halfWidth;\n\n\nattribute vec2 a_lastPos;\nattribute vec2 a_position;\nattribute vec2 a_nextPos;\nattribute float a_direction;\n\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\nuniform float u_lineWidth;\nuniform float u_miterLimit;\n\nbool nearlyEquals(in float value, in float ref) {\n  float epsilon = 0.000000000001;\n  return value >= ref - epsilon && value <= ref + epsilon;\n}\n\nvoid alongNormal(out vec2 offset, in vec2 nextP, in float turnDir, in float direction) {\n  vec2 dirVect = nextP - a_position;\n  vec2 normal = normalize(vec2(-turnDir * dirVect.y, turnDir * dirVect.x));\n  offset = u_lineWidth / 2.0 * normal * direction;\n}\n\nvoid miterUp(out vec2 offset, out float round, in bool isRound, in float direction) {\n  float halfWidth = u_lineWidth / 2.0;\n  vec2 tangent = normalize(normalize(a_nextPos - a_position) + normalize(a_position - a_lastPos));\n  vec2 normal = vec2(-tangent.y, tangent.x);\n  vec2 dirVect = a_nextPos - a_position;\n  vec2 tmpNormal = normalize(vec2(-dirVect.y, dirVect.x));\n  float miterLength = abs(halfWidth / dot(normal, tmpNormal));\n  offset = normal * direction * miterLength;\n  round = 0.0;\n  if (isRound) {\n    round = 1.0;\n  } else if (miterLength > u_miterLimit + u_lineWidth) {\n    offset = halfWidth * tmpNormal * direction;\n  }\n}\n\nbool miterDown(out vec2 offset, in vec4 projPos, in mat4 offsetMatrix, in float direction) {\n  bool degenerate = false;\n  vec2 tangent = normalize(normalize(a_nextPos - a_position) + normalize(a_position - a_lastPos));\n  vec2 normal = vec2(-tangent.y, tangent.x);\n  vec2 dirVect = a_lastPos - a_position;\n  vec2 tmpNormal = normalize(vec2(-dirVect.y, dirVect.x));\n  vec2 longOffset, shortOffset, longVertex;\n  vec4 shortProjVertex;\n  float halfWidth = u_lineWidth / 2.0;\n  if (length(a_nextPos - a_position) > length(a_lastPos - a_position)) {\n    longOffset = tmpNormal * direction * halfWidth;\n    shortOffset = normalize(vec2(dirVect.y, -dirVect.x)) * direction * halfWidth;\n    longVertex = a_nextPos;\n    shortProjVertex = u_projectionMatrix * vec4(a_lastPos, 0.0, 1.0);\n  } else {\n    shortOffset = tmpNormal * direction * halfWidth;\n    longOffset = normalize(vec2(dirVect.y, -dirVect.x)) * direction * halfWidth;\n    longVertex = a_lastPos;\n    shortProjVertex = u_projectionMatrix * vec4(a_nextPos, 0.0, 1.0);\n  }\n  //Intersection algorithm based on theory by Paul Bourke (http://paulbourke.net/geometry/pointlineplane/).\n  vec4 p1 = u_projectionMatrix * vec4(longVertex, 0.0, 1.0) + offsetMatrix * vec4(longOffset, 0.0, 0.0);\n  vec4 p2 = projPos + offsetMatrix * vec4(longOffset, 0.0, 0.0);\n  vec4 p3 = shortProjVertex + offsetMatrix * vec4(-shortOffset, 0.0, 0.0);\n  vec4 p4 = shortProjVertex + offsetMatrix * vec4(shortOffset, 0.0, 0.0);\n  float denom = (p4.y - p3.y) * (p2.x - p1.x) - (p4.x - p3.x) * (p2.y - p1.y);\n  float firstU = ((p4.x - p3.x) * (p1.y - p3.y) - (p4.y - p3.y) * (p1.x - p3.x)) / denom;\n  float secondU = ((p2.x - p1.x) * (p1.y - p3.y) - (p2.y - p1.y) * (p1.x - p3.x)) / denom;\n  float epsilon = 0.000000000001;\n  if (firstU > epsilon && firstU < 1.0 - epsilon && secondU > epsilon && secondU < 1.0 - epsilon) {\n    shortProjVertex.x = p1.x + firstU * (p2.x - p1.x);\n    shortProjVertex.y = p1.y + firstU * (p2.y - p1.y);\n    offset = shortProjVertex.xy;\n    degenerate = true;\n  } else {\n    float miterLength = abs(halfWidth / dot(normal, tmpNormal));\n    offset = normal * direction * miterLength;\n  }\n  return degenerate;\n}\n\nvoid squareCap(out vec2 offset, out float round, in bool isRound, in vec2 nextP,\n    in float turnDir, in float direction) {\n  round = 0.0;\n  vec2 dirVect = a_position - nextP;\n  vec2 firstNormal = normalize(dirVect);\n  vec2 secondNormal = vec2(turnDir * firstNormal.y * direction, -turnDir * firstNormal.x * direction);\n  vec2 hypotenuse = normalize(firstNormal - secondNormal);\n  vec2 normal = vec2(turnDir * hypotenuse.y * direction, -turnDir * hypotenuse.x * direction);\n  float length = sqrt(v_halfWidth * v_halfWidth * 2.0);\n  offset = normal * length;\n  if (isRound) {\n    round = 1.0;\n  }\n}\n\nvoid main(void) {\n  bool degenerate = false;\n  float direction = float(sign(a_direction));\n  mat4 offsetMatrix = u_offsetScaleMatrix * u_offsetRotateMatrix;\n  vec2 offset;\n  vec4 projPos = u_projectionMatrix * vec4(a_position, 0.0, 1.0);\n  bool round = nearlyEquals(mod(a_direction, 2.0), 0.0);\n\n  v_round = 0.0;\n  v_halfWidth = u_lineWidth / 2.0;\n  v_roundVertex = projPos.xy;\n\n  if (nearlyEquals(mod(a_direction, 3.0), 0.0) || nearlyEquals(mod(a_direction, 17.0), 0.0)) {\n    alongNormal(offset, a_nextPos, 1.0, direction);\n  } else if (nearlyEquals(mod(a_direction, 5.0), 0.0) || nearlyEquals(mod(a_direction, 13.0), 0.0)) {\n    alongNormal(offset, a_lastPos, -1.0, direction);\n  } else if (nearlyEquals(mod(a_direction, 23.0), 0.0)) {\n    miterUp(offset, v_round, round, direction);\n  } else if (nearlyEquals(mod(a_direction, 19.0), 0.0)) {\n    degenerate = miterDown(offset, projPos, offsetMatrix, direction);\n  } else if (nearlyEquals(mod(a_direction, 7.0), 0.0)) {\n    squareCap(offset, v_round, round, a_nextPos, 1.0, direction);\n  } else if (nearlyEquals(mod(a_direction, 11.0), 0.0)) {\n    squareCap(offset, v_round, round, a_lastPos, -1.0, direction);\n  }\n  if (!degenerate) {\n    vec4 offsets = offsetMatrix * vec4(offset, 0.0, 0.0);\n    gl_Position = projPos + offsets;\n  } else {\n    gl_Position = vec4(offset, 0.0, 1.0);\n  }\n}\n\n\n":"varying float a;varying vec2 aVertex;varying float c;attribute vec2 d;attribute vec2 e;attribute vec2 f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;uniform float k;uniform float l;bool nearlyEquals(in float value,in float ref){float epsilon=0.000000000001;return value>=ref-epsilon&&value<=ref+epsilon;}void alongNormal(out vec2 offset,in vec2 nextP,in float turnDir,in float direction){vec2 dirVect=nextP-e;vec2 normal=normalize(vec2(-turnDir*dirVect.y,turnDir*dirVect.x));offset=k/2.0*normal*direction;}void miterUp(out vec2 offset,out float round,in bool isRound,in float direction){float halfWidth=k/2.0;vec2 tangent=normalize(normalize(f-e)+normalize(e-d));vec2 normal=vec2(-tangent.y,tangent.x);vec2 dirVect=f-e;vec2 tmpNormal=normalize(vec2(-dirVect.y,dirVect.x));float miterLength=abs(halfWidth/dot(normal,tmpNormal));offset=normal*direction*miterLength;round=0.0;if(isRound){round=1.0;}else if(miterLength>l+k){offset=halfWidth*tmpNormal*direction;}} bool miterDown(out vec2 offset,in vec4 projPos,in mat4 offsetMatrix,in float direction){bool degenerate=false;vec2 tangent=normalize(normalize(f-e)+normalize(e-d));vec2 normal=vec2(-tangent.y,tangent.x);vec2 dirVect=d-e;vec2 tmpNormal=normalize(vec2(-dirVect.y,dirVect.x));vec2 longOffset,shortOffset,longVertex;vec4 shortProjVertex;float halfWidth=k/2.0;if(length(f-e)>length(d-e)){longOffset=tmpNormal*direction*halfWidth;shortOffset=normalize(vec2(dirVect.y,-dirVect.x))*direction*halfWidth;longVertex=f;shortProjVertex=h*vec4(d,0.0,1.0);}else{shortOffset=tmpNormal*direction*halfWidth;longOffset=normalize(vec2(dirVect.y,-dirVect.x))*direction*halfWidth;longVertex=d;shortProjVertex=h*vec4(f,0.0,1.0);}vec4 p1=h*vec4(longVertex,0.0,1.0)+offsetMatrix*vec4(longOffset,0.0,0.0);vec4 p2=projPos+offsetMatrix*vec4(longOffset,0.0,0.0);vec4 p3=shortProjVertex+offsetMatrix*vec4(-shortOffset,0.0,0.0);vec4 p4=shortProjVertex+offsetMatrix*vec4(shortOffset,0.0,0.0);float denom=(p4.y-p3.y)*(p2.x-p1.x)-(p4.x-p3.x)*(p2.y-p1.y);float firstU=((p4.x-p3.x)*(p1.y-p3.y)-(p4.y-p3.y)*(p1.x-p3.x))/denom;float secondU=((p2.x-p1.x)*(p1.y-p3.y)-(p2.y-p1.y)*(p1.x-p3.x))/denom;float epsilon=0.000000000001;if(firstU>epsilon&&firstU<1.0-epsilon&&secondU>epsilon&&secondU<1.0-epsilon){shortProjVertex.x=p1.x+firstU*(p2.x-p1.x);shortProjVertex.y=p1.y+firstU*(p2.y-p1.y);offset=shortProjVertex.xy;degenerate=true;}else{float miterLength=abs(halfWidth/dot(normal,tmpNormal));offset=normal*direction*miterLength;}return degenerate;}void squareCap(out vec2 offset,out float round,in bool isRound,in vec2 nextP,in float turnDir,in float direction){round=0.0;vec2 dirVect=e-nextP;vec2 firstNormal=normalize(dirVect);vec2 secondNormal=vec2(turnDir*firstNormal.y*direction,-turnDir*firstNormal.x*direction);vec2 hypotenuse=normalize(firstNormal-secondNormal);vec2 normal=vec2(turnDir*hypotenuse.y*direction,-turnDir*hypotenuse.x*direction);float length=sqrt(c*c*2.0);offset=normal*length;if(isRound){round=1.0;}} void main(void){bool degenerate=false;float direction=float(sign(g));mat4 offsetMatrix=i*j;vec2 offset;vec4 projPos=h*vec4(e,0.0,1.0);bool round=nearlyEquals(mod(g,2.0),0.0);a=0.0;c=k/2.0;aVertex=projPos.xy;if(nearlyEquals(mod(g,3.0),0.0)||nearlyEquals(mod(g,17.0),0.0)){alongNormal(offset,f,1.0,direction);}else if(nearlyEquals(mod(g,5.0),0.0)||nearlyEquals(mod(g,13.0),0.0)){alongNormal(offset,d,-1.0,direction);}else if(nearlyEquals(mod(g,23.0),0.0)){miterUp(offset,a,round,direction);}else if(nearlyEquals(mod(g,19.0),0.0)){degenerate=miterDown(offset,projPos,offsetMatrix,direction);}else if(nearlyEquals(mod(g,7.0),0.0)){squareCap(offset,a,round,f,1.0,direction);}else if(nearlyEquals(mod(g,11.0),0.0)){squareCap(offset,a,round,d,-1.0,direction);}if(!degenerate){vec4 offsets=offsetMatrix*vec4(offset,0.0,0.0);gl_Position=projPos+offsets;}else{gl_Position=vec4(offset,0.0,1.0);}}"),e.a=a},function(t,e,i){"use strict";var n=i(0),r=function(t,e){this.u_projectionMatrix=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_projectionMatrix":"h"),this.u_offsetScaleMatrix=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_offsetScaleMatrix":"i"),this.u_offsetRotateMatrix=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_offsetRotateMatrix":"j"),this.u_lineWidth=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_lineWidth":"k"),this.u_miterLimit=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_miterLimit":"l"),this.u_opacity=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_opacity":"m"),this.u_color=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_color":"n"),this.u_size=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_size":"o"),this.u_pixelRatio=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_pixelRatio":"p"),this.a_lastPos=t.getAttribLocation(e,n.a.DEBUG_WEBGL?"a_lastPos":"d"),this.a_position=t.getAttribLocation(e,n.a.DEBUG_WEBGL?"a_position":"e"),this.a_nextPos=t.getAttribLocation(e,n.a.DEBUG_WEBGL?"a_nextPos":"f"),this.a_direction=t.getAttribLocation(e,n.a.DEBUG_WEBGL?"a_direction":"g")};e.a=r},function(t,e,i){"use strict";var n=i(0),r=i(5),o=i(32),a=i(1),s=i(2),l=i(60),u=i(51),c=i(26),h=i(324),d=i(325),f=i(180),p=i(82),g=i(83),_=i(98),y=i(326),v=i(112),m=i(13),E=i(47),T="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S=function(t,e){p.a.call(this,t,e),this.lineStringReplay=new f.a(t,e),this.defaultLocations_=null,this.styles_=[],this.styleIndices_=[],this.state_={fillColor:null,changed:!1}};n.a.inherits(S,p.a),S.prototype.drawCoordinates_=function(t,e,i){var n=new y.a,r=new v.a;this.processFlatCoordinates_(t,i,n,r,!0);var o=this.getMaxCoords_(n);if(e.length){var a,s,l=[];for(a=0,s=e.length;a<s;++a){var u={list:new y.a,maxCoords:void 0,rtree:new v.a};l.push(u),this.processFlatCoordinates_(e[a],i,u.list,u.rtree,!1),this.classifyPoints_(u.list,u.rtree,!0),u.maxCoords=this.getMaxCoords_(u.list)}for(l.sort(function(t,e){return e.maxCoords[0]===t.maxCoords[0]?t.maxCoords[1]-e.maxCoords[1]:e.maxCoords[0]-t.maxCoords[0]}),a=0;a<l.length;++a){var c,h=l[a].list,d=h.firstItem(),f=d;do{if(this.getIntersections_(f,r).length){c=!0;break}f=h.nextItem()}while(d!==f);c||this.bridgeHole_(h,l[a].maxCoords[0],n,o[0],r)&&(r.concat(l[a].rtree),this.classifyPoints_(n,r,!1))}}else this.classifyPoints_(n,r,!1);this.triangulate_(n,r)},S.prototype.processFlatCoordinates_=function(t,e,i,n,r){var o,a,s,l,c,h=u.a.linearRingIsClockwise(t,0,t.length,e),d=this.vertices.length/2,f=[],p=[];if(r===h){for(s=this.createPoint_(t[0],t[1],d++),l=s,o=e,a=t.length;o<a;o+=e)c=this.createPoint_(t[o],t[o+1],d++),p.push(this.insertItem_(l,c,i)),f.push([Math.min(l.x,c.x),Math.min(l.y,c.y),Math.max(l.x,c.x),Math.max(l.y,c.y)]),l=c;p.push(this.insertItem_(c,s,i)),f.push([Math.min(l.x,c.x),Math.min(l.y,c.y),Math.max(l.x,c.x),Math.max(l.y,c.y)])}else{var g=t.length-e;for(s=this.createPoint_(t[g],t[g+1],d++),l=s,o=g-e,a=0;o>=a;o-=e)c=this.createPoint_(t[o],t[o+1],d++),p.push(this.insertItem_(l,c,i)),f.push([Math.min(l.x,c.x),Math.min(l.y,c.y),Math.max(l.x,c.x),Math.max(l.y,c.y)]),l=c;p.push(this.insertItem_(c,s,i)),f.push([Math.min(l.x,c.x),Math.min(l.y,c.y),Math.max(l.x,c.x),Math.max(l.y,c.y)])}n.load(f,p)},S.prototype.getMaxCoords_=function(t){var e=t.firstItem(),i=e,n=[i.p0.x,i.p0.y];do{i=t.nextItem(),i.p0.x>n[0]&&(n=[i.p0.x,i.p0.y])}while(i!==e);return n},S.prototype.classifyPoints_=function(t,e,i){var n=t.firstItem(),r=n,o=t.nextItem(),a=!1;do{var s=i?g.a.triangleIsCounterClockwise(o.p1.x,o.p1.y,r.p1.x,r.p1.y,r.p0.x,r.p0.y):g.a.triangleIsCounterClockwise(r.p0.x,r.p0.y,r.p1.x,r.p1.y,o.p1.x,o.p1.y);void 0===s?(this.removeItem_(r,o,t,e),a=!0,o===n&&(n=t.getNextItem()),o=r,t.prevItem()):r.p1.reflex!==s&&(r.p1.reflex=s,a=!0),r=o,o=t.nextItem()}while(r!==n);return a},S.prototype.bridgeHole_=function(t,e,i,n,r){for(var o=t.firstItem();o.p1.x!==e;)o=t.nextItem();var a,s,l,u,c=o.p1,h={x:n,y:c.y,i:-1},d=1/0,f=this.getIntersections_({p0:c,p1:h},r,!0);for(a=0,s=f.length;a<s;++a){var p=f[a],_=this.calculateIntersection_(c,h,p.p0,p.p1,!0),y=Math.abs(c.x-_[0]);y<d&&void 0!==g.a.triangleIsCounterClockwise(c.x,c.y,p.p0.x,p.p0.y,p.p1.x,p.p1.y)&&(d=y,u={x:_[0],y:_[1],i:-1},o=p)}if(d===1/0)return!1;if(l=o.p1,d>0){var v=this.getPointsInTriangle_(c,u,o.p1,r);if(v.length){var m=1/0;for(a=0,s=v.length;a<s;++a){var E=v[a],T=Math.atan2(c.y-E.y,h.x-E.x);(T<m||T===m&&E.x<l.x)&&(m=T,l=E)}}}for(o=i.firstItem();o.p1.x!==l.x||o.p1.y!==l.y;)o=i.nextItem();var S={x:c.x,y:c.y,i:c.i,reflex:void 0},x={x:o.p1.x,y:o.p1.y,i:o.p1.i,reflex:void 0};return t.getNextItem().p0=S,this.insertItem_(c,o.p1,t,r),this.insertItem_(x,S,t,r),o.p1=x,t.setFirstItem(),i.concat(t),!0},S.prototype.triangulate_=function(t,e){for(var i=!1,n=this.isSimple_(t,e);t.getLength()>3;)if(n){if(!this.clipEars_(t,e,n,i)&&!this.classifyPoints_(t,e,i)&&!this.resolveSelfIntersections_(t,e,!0))break}else if(!this.clipEars_(t,e,n,i)&&!this.classifyPoints_(t,e,i)&&!this.resolveSelfIntersections_(t,e)){if(!(n=this.isSimple_(t,e))){this.splitPolygon_(t,e);break}i=!this.isClockwise_(t),this.classifyPoints_(t,e,i)}if(3===t.getLength()){var r=this.indices.length;this.indices[r++]=t.getPrevItem().p0.i,this.indices[r++]=t.getCurrItem().p0.i,this.indices[r++]=t.getNextItem().p0.i}},S.prototype.clipEars_=function(t,e,i,n){var r,o,a,s=this.indices.length,l=t.firstItem(),c=t.getPrevItem(),h=l,d=t.nextItem(),f=t.getNextItem(),p=!1;do{if(r=h.p0,o=h.p1,a=d.p1,!1===o.reflex){var g;g=i?0===this.getPointsInTriangle_(r,o,a,e,!0).length:n?this.diagonalIsInside_(f.p1,a,o,r,c.p0):this.diagonalIsInside_(c.p0,r,o,a,f.p1),(i||0===this.getIntersections_({p0:r,p1:a},e).length)&&g&&(i||!1===r.reflex||!1===a.reflex||u.a.linearRingIsClockwise([c.p0.x,c.p0.y,r.x,r.y,o.x,o.y,a.x,a.y,f.p1.x,f.p1.y],0,10,2)===!n)&&(this.indices[s++]=r.i,this.indices[s++]=o.i,this.indices[s++]=a.i,this.removeItem_(h,d,t,e),d===l&&(l=f),p=!0)}c=t.getPrevItem(),h=t.getCurrItem(),d=t.nextItem(),f=t.getNextItem()}while(h!==l&&t.getLength()>3);return p},S.prototype.resolveSelfIntersections_=function(t,e,i){var n=t.firstItem();t.nextItem();var r=n,o=t.nextItem(),a=!1;do{var s=this.calculateIntersection_(r.p0,r.p1,o.p0,o.p1,i);if(s){var l=!1,u=this.vertices.length,c=this.indices.length,h=u/2,d=t.prevItem();t.removeItem(),e.remove(d),l=d===n;var f;if(i?(s[0]===r.p0.x&&s[1]===r.p0.y?(t.prevItem(),f=r.p0,o.p0=f,e.remove(r),l=l||r===n):(f=o.p1,r.p1=f,e.remove(o),l=l||o===n),t.removeItem()):(f=this.createPoint_(s[0],s[1],h),r.p1=f,o.p0=f,e.update([Math.min(r.p0.x,r.p1.x),Math.min(r.p0.y,r.p1.y),Math.max(r.p0.x,r.p1.x),Math.max(r.p0.y,r.p1.y)],r),e.update([Math.min(o.p0.x,o.p1.x),Math.min(o.p0.y,o.p1.y),Math.max(o.p0.x,o.p1.x),Math.max(o.p0.y,o.p1.y)],o)),this.indices[c++]=d.p0.i,this.indices[c++]=d.p1.i,this.indices[c++]=f.i,a=!0,l)break}r=t.getPrevItem(),o=t.nextItem()}while(r!==n);return a},S.prototype.isSimple_=function(t,e){var i=t.firstItem(),n=i;do{if(this.getIntersections_(n,e).length)return!1;n=t.nextItem()}while(n!==i);return!0},S.prototype.isClockwise_=function(t){var e=2*t.getLength(),i=new Array(e),n=t.firstItem(),r=n,o=0;do{i[o++]=r.p0.x,i[o++]=r.p0.y,r=t.nextItem()}while(r!==n);return u.a.linearRingIsClockwise(i,0,e,2)},S.prototype.splitPolygon_=function(t,e){var i=t.firstItem(),n=i;do{var r=this.getIntersections_(n,e);if(r.length){var o=r[0],a=this.vertices.length/2,s=this.calculateIntersection_(n.p0,n.p1,o.p0,o.p1),l=this.createPoint_(s[0],s[1],a),u=new y.a,c=new v.a;this.insertItem_(l,n.p1,u,c),n.p1=l,e.update([Math.min(n.p0.x,l.x),Math.min(n.p0.y,l.y),Math.max(n.p0.x,l.x),Math.max(n.p0.y,l.y)],n);for(var h=t.nextItem();h!==o;)this.insertItem_(h.p0,h.p1,u,c),e.remove(h),t.removeItem(),h=t.getCurrItem();this.insertItem_(o.p0,l,u,c),o.p0=l,e.update([Math.min(o.p1.x,l.x),Math.min(o.p1.y,l.y),Math.max(o.p1.x,l.x),Math.max(o.p1.y,l.y)],o),this.classifyPoints_(t,e,!1),this.triangulate_(t,e),this.classifyPoints_(u,c,!1),this.triangulate_(u,c);break}n=t.nextItem()}while(n!==i)},S.prototype.createPoint_=function(t,e,i){var n=this.vertices.length;return this.vertices[n++]=t,this.vertices[n++]=e,{x:t,y:e,i:i,reflex:void 0}},S.prototype.insertItem_=function(t,e,i,n){var r={p0:t,p1:e};return i.insertItem(r),n&&n.insert([Math.min(t.x,e.x),Math.min(t.y,e.y),Math.max(t.x,e.x),Math.max(t.y,e.y)],r),r},S.prototype.removeItem_=function(t,e,i,n){i.getCurrItem()===e&&(i.removeItem(),t.p1=e.p1,n.remove(e),n.update([Math.min(t.p0.x,t.p1.x),Math.min(t.p0.y,t.p1.y),Math.max(t.p0.x,t.p1.x),Math.max(t.p0.y,t.p1.y)],t))},S.prototype.getPointsInTriangle_=function(t,e,i,n,r){var o,a,s,u,c=[],h=n.getInExtent([Math.min(t.x,e.x,i.x),Math.min(t.y,e.y,i.y),Math.max(t.x,e.x,i.x),Math.max(t.y,e.y,i.y)]);for(o=0,a=h.length;o<a;++o)for(s in h[o])u=h[o][s],"object"!==("undefined"===typeof u?"undefined":T(u))||r&&!u.reflex||u.x===t.x&&u.y===t.y||u.x===e.x&&u.y===e.y||u.x===i.x&&u.y===i.y||-1!==c.indexOf(u)||!l.a.linearRingContainsXY([t.x,t.y,e.x,e.y,i.x,i.y],0,6,2,u.x,u.y)||c.push(u);return c},S.prototype.getIntersections_=function(t,e,i){var n,r,o=t.p0,a=t.p1,s=e.getInExtent([Math.min(o.x,a.x),Math.min(o.y,a.y),Math.max(o.x,a.x),Math.max(o.y,a.y)]),l=[];for(n=0,r=s.length;n<r;++n){var u=s[n];t!==u&&(i||u.p0!==a||u.p1!==o)&&this.calculateIntersection_(o,a,u.p0,u.p1,i)&&l.push(u)}return l},S.prototype.calculateIntersection_=function(t,e,i,n,r){var o=(n.y-i.y)*(e.x-t.x)-(n.x-i.x)*(e.y-t.y);if(0!==o){var a=((n.x-i.x)*(t.y-i.y)-(n.y-i.y)*(t.x-i.x))/o,s=((e.x-t.x)*(t.y-i.y)-(e.y-t.y)*(t.x-i.x))/o;if(!r&&a>g.a.EPSILON&&a<1-g.a.EPSILON&&s>g.a.EPSILON&&s<1-g.a.EPSILON||r&&a>=0&&a<=1&&s>=0&&s<=1)return[t.x+a*(e.x-t.x),t.y+a*(e.y-t.y)]}},S.prototype.diagonalIsInside_=function(t,e,i,n,r){if(void 0===e.reflex||void 0===n.reflex)return!1;var o=(i.x-n.x)*(e.y-n.y)>(i.y-n.y)*(e.x-n.x),a=(r.x-n.x)*(e.y-n.y)<(r.y-n.y)*(e.x-n.x),s=(t.x-e.x)*(n.y-e.y)>(t.y-e.y)*(n.x-e.x),l=(i.x-e.x)*(n.y-e.y)<(i.y-e.y)*(n.x-e.x),u=n.reflex?a||o:a&&o,c=e.reflex?l||s:l&&s;return u&&c},S.prototype.drawMultiPolygon=function(t,e){var i,n,r,o,a=t.getEndss(),s=t.getStride(),l=this.indices.length,u=this.lineStringReplay.getCurrentIndex(),h=t.getFlatCoordinates(),d=0;for(i=0,n=a.length;i<n;++i){var f=a[i];if(f.length>0){var p=c.a.translate(h,d,f[0],s,-this.origin[0],-this.origin[1]);if(p.length){var g,_=[];for(r=1,o=f.length;r<o;++r)f[r]!==f[r-1]&&(g=c.a.translate(h,f[r-1],f[r],s,-this.origin[0],-this.origin[1]),_.push(g));this.lineStringReplay.drawPolygonCoordinates(p,_,s),this.drawCoordinates_(p,_,s)}}d=f[f.length-1]}this.indices.length>l&&(this.startIndices.push(l),this.startIndicesFeature.push(e),this.state_.changed&&(this.styleIndices_.push(l),this.state_.changed=!1)),this.lineStringReplay.getCurrentIndex()>u&&this.lineStringReplay.setPolygonStyle(e,u)},S.prototype.drawPolygon=function(t,e){var i=t.getEnds(),n=t.getStride();if(i.length>0){var r=t.getFlatCoordinates().map(Number),o=c.a.translate(r,0,i[0],n,-this.origin[0],-this.origin[1]);if(o.length){var a,s,l,u=[];for(a=1,s=i.length;a<s;++a)i[a]!==i[a-1]&&(l=c.a.translate(r,i[a-1],i[a],n,-this.origin[0],-this.origin[1]),u.push(l));this.startIndices.push(this.indices.length),this.startIndicesFeature.push(e),this.state_.changed&&(this.styleIndices_.push(this.indices.length),this.state_.changed=!1),this.lineStringReplay.setPolygonStyle(e),this.lineStringReplay.drawPolygonCoordinates(o,u,n),this.drawCoordinates_(o,u,n)}}},S.prototype.finish=function(t){this.verticesBuffer=new E.a(this.vertices),this.indicesBuffer=new E.a(this.indices),this.startIndices.push(this.indices.length),this.lineStringReplay.finish(t),0===this.styleIndices_.length&&this.styles_.length>0&&(this.styles_=[]),this.vertices=null,this.indices=null},S.prototype.getDeleteResourcesFunction=function(t){var e=this.verticesBuffer,i=this.indicesBuffer,n=this.lineStringReplay.getDeleteResourcesFunction(t);return function(){t.deleteBuffer(e),t.deleteBuffer(i),n()}},S.prototype.setUpProgram=function(t,e,i,n){var r,o;r=h.a.fragment,o=h.a.vertex;var a,s=e.getProgram(r,o);return this.defaultLocations_?a=this.defaultLocations_:(a=new d.a(t,s),this.defaultLocations_=a),e.useProgram(s),t.enableVertexAttribArray(a.a_position),t.vertexAttribPointer(a.a_position,2,m.a.FLOAT,!1,8,0),a},S.prototype.shutDownProgram=function(t,e){t.disableVertexAttribArray(e.a_position)},S.prototype.drawReplay=function(t,e,i,n){var r=t.getParameter(t.DEPTH_FUNC),o=t.getParameter(t.DEPTH_WRITEMASK);if(n||(t.enable(t.DEPTH_TEST),t.depthMask(!0),t.depthFunc(t.NOTEQUAL)),s.a.isEmpty(i)){var a,l,u,c;for(u=this.startIndices[this.startIndices.length-1],a=this.styleIndices_.length-1;a>=0;--a)l=this.styleIndices_[a],c=this.styles_[a],this.setFillStyle_(t,c),this.drawElements(t,e,l,u),u=l}else this.drawReplaySkipping_(t,e,i);n||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(o),t.depthFunc(r))},S.prototype.drawHitDetectionReplayOneByOne=function(t,e,i,r,o){var s,l,u,c,h,d,f,p;for(p=this.startIndices.length-2,u=this.startIndices[p+1],s=this.styleIndices_.length-1;s>=0;--s)for(c=this.styles_[s],this.setFillStyle_(t,c),h=this.styleIndices_[s];p>=0&&this.startIndices[p]>=h;){if(l=this.startIndices[p],d=this.startIndicesFeature[p],f=n.a.getUid(d).toString(),void 0===i[f]&&d.getGeometry()&&(void 0===o||a.a.intersects(o,d.getGeometry().getExtent()))){t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),this.drawElements(t,e,l,u);var g=r(d);if(g)return g}p--,u=l}},S.prototype.drawReplaySkipping_=function(t,e,i){var r,o,a,s,l,u,c,h,d;for(h=this.startIndices.length-2,a=o=this.startIndices[h+1],r=this.styleIndices_.length-1;r>=0;--r){for(s=this.styles_[r],this.setFillStyle_(t,s),l=this.styleIndices_[r];h>=0&&this.startIndices[h]>=l;)d=this.startIndices[h],u=this.startIndicesFeature[h],c=n.a.getUid(u).toString(),i[c]&&(o!==a&&(this.drawElements(t,e,o,a),t.clear(t.DEPTH_BUFFER_BIT)),a=d),h--,o=d;o!==a&&(this.drawElements(t,e,o,a),t.clear(t.DEPTH_BUFFER_BIT)),o=a=l}},S.prototype.setFillStyle_=function(t,e){t.uniform4fv(this.defaultLocations_.u_color,e)},S.prototype.setFillStrokeStyle=function(t,e){var i=t?t.getColor():[0,0,0,0];if(i=i instanceof CanvasGradient||i instanceof CanvasPattern?g.a.defaultFillStyle:o.a.asArray(i).map(function(t,e){return 3!=e?t/255:t})||g.a.defaultFillStyle,this.state_.fillColor&&r.a.equals(i,this.state_.fillColor)||(this.state_.fillColor=i,this.state_.changed=!0,this.styles_.push(i)),e)this.lineStringReplay.setFillStrokeStyle(null,e);else{var n=new _.default({color:[0,0,0,0],lineWidth:0});this.lineStringReplay.setFillStrokeStyle(null,n)}},e.a=S},function(t,e,i){"use strict";var n=i(0),r=i(54),o=i(55),a={};a.fragment=new r.a(n.a.DEBUG_WEBGL?"precision mediump float;\n\n\n\nuniform vec4 u_color;\nuniform float u_opacity;\n\nvoid main(void) {\n  gl_FragColor = u_color;\n  float alpha = u_color.a * u_opacity;\n  if (alpha == 0.0) {\n    discard;\n  }\n  gl_FragColor.a = alpha;\n}\n":"precision mediump float;uniform vec4 e;uniform float f;void main(void){gl_FragColor=e;float alpha=e.a*f;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"),a.vertex=new o.a(n.a.DEBUG_WEBGL?"\n\nattribute vec2 a_position;\n\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\n\nvoid main(void) {\n  gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0);\n}\n\n\n":"attribute vec2 a;uniform mat4 b;uniform mat4 c;uniform mat4 d;void main(void){gl_Position=b*vec4(a,0.0,1.0);}"),e.a=a},function(t,e,i){"use strict";var n=i(0),r=function(t,e){this.u_projectionMatrix=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_projectionMatrix":"b"),this.u_offsetScaleMatrix=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_offsetScaleMatrix":"c"),this.u_offsetRotateMatrix=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_offsetRotateMatrix":"d"),this.u_color=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_color":"e"),this.u_opacity=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_opacity":"f"),this.a_position=t.getAttribLocation(e,n.a.DEBUG_WEBGL?"a_position":"a")};e.a=r},function(t,e,i){"use strict";var n=function(t){this.first_=void 0,this.last_=void 0,this.head_=void 0,this.circular_=void 0===t||t,this.length_=0};n.prototype.insertItem=function(t){var e={prev:void 0,next:void 0,data:t},i=this.head_;if(i){var n=i.next;e.prev=i,e.next=n,i.next=e,n&&(n.prev=e),i===this.last_&&(this.last_=e)}else this.first_=e,this.last_=e,this.circular_&&(e.next=e,e.prev=e);this.head_=e,this.length_++},n.prototype.removeItem=function(){var t=this.head_;if(t){var e=t.next,i=t.prev;e&&(e.prev=i),i&&(i.next=e),this.head_=e||i,this.first_===this.last_?(this.head_=void 0,this.first_=void 0,this.last_=void 0):this.first_===t?this.first_=this.head_:this.last_===t&&(this.last_=i?this.head_.prev:this.head_),this.length_--}},n.prototype.firstItem=function(){if(this.head_=this.first_,this.head_)return this.head_.data},n.prototype.lastItem=function(){if(this.head_=this.last_,this.head_)return this.head_.data},n.prototype.nextItem=function(){if(this.head_&&this.head_.next)return this.head_=this.head_.next,this.head_.data},n.prototype.getNextItem=function(){if(this.head_&&this.head_.next)return this.head_.next.data},n.prototype.prevItem=function(){if(this.head_&&this.head_.prev)return this.head_=this.head_.prev,this.head_.data},n.prototype.getPrevItem=function(){if(this.head_&&this.head_.prev)return this.head_.prev.data},n.prototype.getCurrItem=function(){if(this.head_)return this.head_.data},n.prototype.setFirstItem=function(){this.circular_&&this.head_&&(this.first_=this.head_,this.last_=this.head_.prev)},n.prototype.concat=function(t){if(t.head_){if(this.head_){var e=this.head_.next;this.head_.next=t.first_,t.first_.prev=this.head_,e.prev=t.last_,t.last_.next=e,this.length_+=t.length_}else this.head_=t.head_,this.first_=t.first_,this.last_=t.last_,this.length_=t.length_;t.head_=void 0,t.first_=void 0,t.last_=void 0,t.length_=0}},n.prototype.getLength=function(){return this.length_},e.a=n},function(t,e,i){"use strict";var n=i(0),r=i(58),o=i(9),a=i(8),s=i(18),l=i(53),u=i(83),c=i(178),h=i(328),d=i(47),f=function(t,e){c.a.call(this,t,e),this.images_=[],this.textures_=[],this.measureCanvas_=o.a.createCanvasContext2D(0,0).canvas,this.state_={strokeColor:null,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:0,miterLimit:void 0,fillColor:null,font:void 0,scale:void 0},this.text_="",this.textAlign_=void 0,this.textBaseline_=void 0,this.offsetX_=void 0,this.offsetY_=void 0,this.atlases_={},this.currAtlas_=void 0,this.scale=1,this.opacity=1};n.a.inherits(f,c.a),f.prototype.drawText=function(t,e){if(this.text_){var i=null,r=2,o=2;switch(t.getType()){case a.a.POINT:case a.a.MULTI_POINT:i=t.getFlatCoordinates(),r=i.length,o=t.getStride();break;case a.a.CIRCLE:i=t.getCenter();break;case a.a.LINE_STRING:i=t.getFlatMidpoint();break;case a.a.MULTI_LINE_STRING:i=t.getFlatMidpoints(),r=i.length;break;case a.a.POLYGON:i=t.getFlatInteriorPoint();break;case a.a.MULTI_POLYGON:i=t.getFlatInteriorPoints(),r=i.length}this.startIndices.push(this.indices.length),this.startIndicesFeature.push(e);var s,l,u,c,h,d,f,p,g=this.currAtlas_,_=this.text_.split("\n"),y=this.getTextSize_(_),v=Math.round(y[0]*this.textAlign_-this.offsetX_),m=Math.round(y[1]*this.textBaseline_-this.offsetY_),E=this.state_.lineWidth/2*this.state_.scale;for(s=0,l=_.length;s<l;++s)for(h=0,d=g.height*s,f=_[s].split(""),u=0,c=f.length;u<c;++u){if(p=g.atlas.getInfo(f[u])){var T=p.image;this.anchorX=v-h,this.anchorY=m-d,this.originX=0===u?p.offsetX-E:p.offsetX,this.originY=p.offsetY,this.height=g.height,this.width=0===u||u===f.length-1?g.width[f[u]]+E:g.width[f[u]],this.imageHeight=T.height,this.imageWidth=T.width;var S;0===this.images_.length?this.images_.push(T):(S=this.images_[this.images_.length-1],n.a.getUid(S)!=n.a.getUid(T)&&(this.groupIndices.push(this.indices.length),this.images_.push(T))),this.drawText_(i,0,r,o)}h+=this.width}}},f.prototype.getTextSize_=function(t){var e=this,i=this.currAtlas_,n=t.length*i.height;return[t.map(function(t){var n,r,o=0;for(n=0,r=t.length;n<r;++n){var a=t[n];i.width[a]||e.addCharToAtlas_(a),o+=i.width[a]?i.width[a]:0}return o}).reduce(function(t,e){return Math.max(t,e)}),n]},f.prototype.drawText_=function(t,e,i,n){var r,o;for(r=e,o=i;r<o;r+=n)this.drawCoordinates(t,e,i,n)},f.prototype.addCharToAtlas_=function(t){if(1===t.length){var e=this.currAtlas_,i=this.state_,n=this.measureCanvas_.getContext("2d");n.font=i.font;var r=Math.ceil(n.measureText(t).width*i.scale);e.atlas.add(t,r,e.height,function(e,n,r){e.font=i.font,e.fillStyle=i.fillColor,e.strokeStyle=i.strokeColor,e.lineWidth=i.lineWidth,e.lineCap=i.lineCap,e.lineJoin=i.lineJoin,e.miterLimit=i.miterLimit,e.textAlign="left",e.textBaseline="top",s.a.CANVAS_LINE_DASH&&i.lineDash&&(e.setLineDash(i.lineDash),e.lineDashOffset=i.lineDashOffset),1!==i.scale&&e.setTransform(i.scale,0,0,i.scale,0,0),i.strokeColor&&e.strokeText(t,n,r),i.fillColor&&e.fillText(t,n,r)})&&(e.width[t]=r)}},f.prototype.finish=function(t){var e=t.getGL();this.groupIndices.push(this.indices.length),this.hitDetectionGroupIndices=this.groupIndices,this.verticesBuffer=new d.a(this.vertices),this.indicesBuffer=new d.a(this.indices);var i={};this.createTextures(this.textures_,this.images_,i,e),this.state_={strokeColor:null,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:0,miterLimit:void 0,fillColor:null,font:void 0,scale:void 0},this.text_="",this.textAlign_=void 0,this.textBaseline_=void 0,this.offsetX_=void 0,this.offsetY_=void 0,this.images_=null,this.atlases_={},this.currAtlas_=void 0,c.a.prototype.finish.call(this,t)},f.prototype.setTextStyle=function(t){var e=this.state_,i=t.getFill(),n=t.getStroke();if(t&&t.getText()&&(i||n)){if(i){var o=i.getColor();e.fillColor=r.a.asColorLike(o||u.a.defaultFillStyle)}else e.fillColor=null;if(n){var a=n.getColor();e.strokeColor=r.a.asColorLike(a||u.a.defaultStrokeStyle),e.lineWidth=n.getWidth()||u.a.defaultLineWidth,e.lineCap=n.getLineCap()||u.a.defaultLineCap,e.lineDashOffset=n.getLineDashOffset()||u.a.defaultLineDashOffset,e.lineJoin=n.getLineJoin()||u.a.defaultLineJoin,e.miterLimit=n.getMiterLimit()||u.a.defaultMiterLimit;var s=n.getLineDash();e.lineDash=s?s.slice():u.a.defaultLineDash}else e.strokeColor=null,e.lineWidth=0;e.font=t.getFont()||u.a.defaultFont,e.scale=t.getScale()||1,this.text_=t.getText();var c=l.a.TEXT_ALIGN[t.getTextAlign()],h=l.a.TEXT_ALIGN[t.getTextBaseline()];this.textAlign_=void 0===c?u.a.defaultTextAlign:c,this.textBaseline_=void 0===h?u.a.defaultTextBaseline:h,this.offsetX_=t.getOffsetX()||0,this.offsetY_=t.getOffsetY()||0,this.rotateWithView=!!t.getRotateWithView(),this.rotation=t.getRotation()||0,this.currAtlas_=this.getAtlas_(e)}else this.text_=""},f.prototype.getAtlas_=function(t){var e,i=[];for(e in t)(t[e]||0===t[e])&&(Array.isArray(t[e])?i=i.concat(t[e]):i.push(t[e]));var n=this.calculateHash_(i);if(!this.atlases_[n]){var r=this.measureCanvas_.getContext("2d");r.font=t.font;var o=Math.ceil((1.5*r.measureText("M").width+t.lineWidth/2)*t.scale);this.atlases_[n]={atlas:new h.a({space:t.lineWidth+1}),width:{},height:o}}return this.atlases_[n]},f.prototype.calculateHash_=function(t){var e,i,n="";for(e=0,i=t.length;e<i;++e)n+=t[e];return n},f.prototype.getTextures=function(t){return this.textures_},f.prototype.getHitDetectionTextures=function(){return this.textures_},e.a=f},function(t,e,i){"use strict";var n=i(0),r=i(329),o=function(t){var e=t||{};this.currentSize_=void 0!==e.initialSize?e.initialSize:n.a.INITIAL_ATLAS_SIZE,this.maxSize_=void 0!==e.maxSize?e.maxSize:-1!=n.a.MAX_ATLAS_SIZE?n.a.MAX_ATLAS_SIZE:void 0!==n.a.WEBGL_MAX_TEXTURE_SIZE?n.a.WEBGL_MAX_TEXTURE_SIZE:2048,this.space_=void 0!==e.space?e.space:1,this.atlases_=[new r.a(this.currentSize_,this.space_)],this.currentHitSize_=this.currentSize_,this.hitAtlases_=[new r.a(this.currentHitSize_,this.space_)]};o.prototype.getInfo=function(t){var e=this.getInfo_(this.atlases_,t);if(!e)return null;var i=this.getInfo_(this.hitAtlases_,t);return this.mergeInfos_(e,i)},o.prototype.getInfo_=function(t,e){var i,n,r,o;for(r=0,o=t.length;r<o;++r)if(i=t[r],n=i.get(e))return n;return null},o.prototype.mergeInfos_=function(t,e){return{offsetX:t.offsetX,offsetY:t.offsetY,image:t.image,hitImage:e.image}},o.prototype.add=function(t,e,i,r,o,a){if(e+this.space_>this.maxSize_||i+this.space_>this.maxSize_)return null;var s=this.add_(!1,t,e,i,r,a);if(!s)return null;var l=void 0!==o?o:n.a.nullFunction,u=this.add_(!0,t,e,i,l,a);return this.mergeInfos_(s,u)},o.prototype.add_=function(t,e,i,n,o,a){var s,l,u,c,h=t?this.hitAtlases_:this.atlases_;for(u=0,c=h.length;u<c;++u){if(s=h[u],l=s.add(e,i,n,o,a))return l;if(!l&&u===c-1){var d;t?(d=Math.min(2*this.currentHitSize_,this.maxSize_),this.currentHitSize_=d):(d=Math.min(2*this.currentSize_,this.maxSize_),this.currentSize_=d),s=new r.a(d,this.space_),h.push(s),++c}}return null},e.a=o},function(t,e,i){"use strict";var n=i(9),r=function(t,e){this.space_=e,this.emptyBlocks_=[{x:0,y:0,width:t,height:t}],this.entries_={},this.context_=n.a.createCanvasContext2D(t,t),this.canvas_=this.context_.canvas};r.prototype.get=function(t){return this.entries_[t]||null},r.prototype.add=function(t,e,i,n,r){var o,a,s;for(a=0,s=this.emptyBlocks_.length;a<s;++a)if(o=this.emptyBlocks_[a],o.width>=e+this.space_&&o.height>=i+this.space_){var l={offsetX:o.x+this.space_,offsetY:o.y+this.space_,image:this.canvas_};return this.entries_[t]=l,n.call(r,this.context_,o.x+this.space_,o.y+this.space_),this.split_(a,o,e+this.space_,i+this.space_),l}return null},r.prototype.split_=function(t,e,i,n){var r,o,a=e.width-i,s=e.height-n;a>s?(r={x:e.x+i,y:e.y,width:e.width-i,height:e.height},o={x:e.x,y:e.y+n,width:i,height:e.height-n},this.updateBlocks_(t,r,o)):(r={x:e.x+i,y:e.y,width:e.width-i,height:n},o={x:e.x,y:e.y+n,width:e.width,height:e.height-n},this.updateBlocks_(t,r,o))},r.prototype.updateBlocks_=function(t,e,i){var n=[t,1];e.width>0&&e.height>0&&n.push(e),i.width>0&&i.height>0&&n.push(i),this.emptyBlocks_.splice.apply(this.emptyBlocks_,n)},e.a=r},function(t,e,i){"use strict";var n=i(0),r=i(54),o=i(55),a={};a.fragment=new r.a(n.a.DEBUG_WEBGL?"precision mediump float;\nvarying vec2 v_texCoord;\n\n\nuniform float u_opacity;\nuniform sampler2D u_texture;\n\nvoid main(void) {\n  vec4 texColor = texture2D(u_texture, v_texCoord);\n  gl_FragColor.rgb = texColor.rgb;\n  gl_FragColor.a = texColor.a * u_opacity;\n}\n":"precision mediump float;varying vec2 a;uniform float f;uniform sampler2D g;void main(void){vec4 texColor=texture2D(g,a);gl_FragColor.rgb=texColor.rgb;gl_FragColor.a=texColor.a*f;}"),a.vertex=new o.a(n.a.DEBUG_WEBGL?"varying vec2 v_texCoord;\n\n\nattribute vec2 a_position;\nattribute vec2 a_texCoord;\n\nuniform mat4 u_texCoordMatrix;\nuniform mat4 u_projectionMatrix;\n\nvoid main(void) {\n  gl_Position = u_projectionMatrix * vec4(a_position, 0., 1.);\n  v_texCoord = (u_texCoordMatrix * vec4(a_texCoord, 0., 1.)).st;\n}\n\n\n":"varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position=e*vec4(b,0.,1.);a=(d*vec4(c,0.,1.)).st;}"),e.a=a},function(t,e,i){"use strict";var n=i(0),r=function(t,e){this.u_texCoordMatrix=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_texCoordMatrix":"d"),this.u_projectionMatrix=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_projectionMatrix":"e"),this.u_opacity=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_opacity":"f"),this.u_texture=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_texture":"g"),this.a_position=t.getAttribLocation(e,n.a.DEBUG_WEBGL?"a_position":"b"),this.a_texCoord=t.getAttribLocation(e,n.a.DEBUG_WEBGL?"a_texCoord":"c")};e.a=r},function(t,e,i){"use strict";var n=i(0),r=i(5),o=i(39),a=i(9),s=i(3),l=i(18),u=i(45),c=i(80),h=i(52),d=i(174),f=i(169),p=i(23),g=i(37),_=i(96),y=i(101),v=i(13),m=i(84),E=i(179),T=function(t,e){f.a.call(this,t,e),this.canvas_=document.createElement("CANVAS"),this.canvas_.style.width="100%",this.canvas_.style.height="100%",this.canvas_.style.display="block",this.canvas_.className=o.a.CLASS_UNSELECTABLE,t.insertBefore(this.canvas_,t.childNodes[0]||null),this.clipTileCanvasWidth_=0,this.clipTileCanvasHeight_=0,this.clipTileContext_=a.a.createCanvasContext2D(),this.renderedVisible_=!0,this.gl_=v.a.getContext(this.canvas_,{antialias:!0,depth:!0,failIfMajorPerformanceCaveat:!0,preserveDrawingBuffer:!1,stencil:!0}),this.context_=new m.a(this.canvas_,this.gl_),s.a.listen(this.canvas_,E.a.LOST,this.handleWebGLContextLost,this),s.a.listen(this.canvas_,E.a.RESTORED,this.handleWebGLContextRestored,this),this.textureCache_=new _.a,this.focus_=null,this.tileTextureQueue_=new y.a(function(t){var e=t[1],i=t[2],n=e[0]-this.focus_[0],r=e[1]-this.focus_[1];return 65536*Math.log(i)+Math.sqrt(n*n+r*r)/i}.bind(this),function(t){return t[0].getKey()}),this.loadNextTileTexture_=function(t,e){if(!this.tileTextureQueue_.isEmpty()){this.tileTextureQueue_.reprioritize();var i=this.tileTextureQueue_.dequeue(),n=i[0],r=i[3],o=i[4];this.bindTileTexture(n,r,o,v.a.LINEAR,v.a.LINEAR)}return!1}.bind(this),this.textureCacheFrameMarkerCount_=0,this.initializeGL_()};n.a.inherits(T,f.a),T.handles=function(t){return l.a.WEBGL&&t===p.a.WEBGL},T.create=function(t,e){return new T(t,e)},T.prototype.bindTileTexture=function(t,e,i,n,r){var o=this.getGL(),a=t.getKey();if(this.textureCache_.containsKey(a)){var s=this.textureCache_.get(a);o.bindTexture(v.a.TEXTURE_2D,s.texture),s.magFilter!=n&&(o.texParameteri(v.a.TEXTURE_2D,v.a.TEXTURE_MAG_FILTER,n),s.magFilter=n),s.minFilter!=r&&(o.texParameteri(v.a.TEXTURE_2D,v.a.TEXTURE_MIN_FILTER,r),s.minFilter=r)}else{var l=o.createTexture();if(o.bindTexture(v.a.TEXTURE_2D,l),i>0){var u=this.clipTileContext_.canvas,c=this.clipTileContext_;this.clipTileCanvasWidth_!==e[0]||this.clipTileCanvasHeight_!==e[1]?(u.width=e[0],u.height=e[1],this.clipTileCanvasWidth_=e[0],this.clipTileCanvasHeight_=e[1]):c.clearRect(0,0,e[0],e[1]),c.drawImage(t.getImage(),i,i,e[0],e[1],0,0,e[0],e[1]),o.texImage2D(v.a.TEXTURE_2D,0,v.a.RGBA,v.a.RGBA,v.a.UNSIGNED_BYTE,u)}else o.texImage2D(v.a.TEXTURE_2D,0,v.a.RGBA,v.a.RGBA,v.a.UNSIGNED_BYTE,t.getImage());o.texParameteri(v.a.TEXTURE_2D,v.a.TEXTURE_MAG_FILTER,n),o.texParameteri(v.a.TEXTURE_2D,v.a.TEXTURE_MIN_FILTER,r),o.texParameteri(v.a.TEXTURE_2D,v.a.TEXTURE_WRAP_S,v.a.CLAMP_TO_EDGE),o.texParameteri(v.a.TEXTURE_2D,v.a.TEXTURE_WRAP_T,v.a.CLAMP_TO_EDGE),this.textureCache_.set(a,{texture:l,magFilter:n,minFilter:r})}},T.prototype.dispatchComposeEvent_=function(t,e){var i=this.getMap();if(i.hasListener(t)){var n=this.context_,r=e.extent,o=e.size,a=e.viewState,s=e.pixelRatio,l=a.resolution,u=a.center,h=a.rotation,f=new d.a(n,u,l,h,o,r,s),p=new c.a(t,f,e,null,n);i.dispatchEvent(p)}},T.prototype.disposeInternal=function(){var t=this.getGL();t.isContextLost()||this.textureCache_.forEach(function(e){e&&t.deleteTexture(e.texture)}),this.context_.dispose(),f.a.prototype.disposeInternal.call(this)},T.prototype.expireCache_=function(t,e){for(var i,r=this.getGL();this.textureCache_.getCount()-this.textureCacheFrameMarkerCount_>n.a.WEBGL_TEXTURE_CACHE_HIGH_WATER_MARK;){if(i=this.textureCache_.peekLast())r.deleteTexture(i.texture);else{if(+this.textureCache_.peekLastKey()==e.index)break;--this.textureCacheFrameMarkerCount_}this.textureCache_.pop()}},T.prototype.getContext=function(){return this.context_},T.prototype.getGL=function(){return this.gl_},T.prototype.getTileTextureQueue=function(){return this.tileTextureQueue_},T.prototype.getType=function(){return p.a.WEBGL},T.prototype.handleWebGLContextLost=function(t){t.preventDefault(),this.textureCache_.clear(),this.textureCacheFrameMarkerCount_=0;var e=this.getLayerRenderers();for(var i in e){e[i].handleWebGLContextLost()}},T.prototype.handleWebGLContextRestored=function(){this.initializeGL_(),this.getMap().render()},T.prototype.initializeGL_=function(){var t=this.gl_;t.activeTexture(v.a.TEXTURE0),t.blendFuncSeparate(v.a.SRC_ALPHA,v.a.ONE_MINUS_SRC_ALPHA,v.a.ONE,v.a.ONE_MINUS_SRC_ALPHA),t.disable(v.a.CULL_FACE),t.disable(v.a.DEPTH_TEST),t.disable(v.a.SCISSOR_TEST),t.disable(v.a.STENCIL_TEST)},T.prototype.isTileTextureLoaded=function(t){return this.textureCache_.containsKey(t.getKey())},T.prototype.renderFrame=function(t){var e=this.getContext(),i=this.getGL();if(i.isContextLost())return!1;if(!t)return this.renderedVisible_&&(this.canvas_.style.display="none",this.renderedVisible_=!1),!1;this.focus_=t.focus,this.textureCache_.set((-t.index).toString(),null),++this.textureCacheFrameMarkerCount_,this.dispatchComposeEvent_(h.a.PRECOMPOSE,t);var o=[],a=t.layerStatesArray;r.a.stableSort(a,f.a.sortByZIndex);var s,l,c,d,p=t.viewState.resolution;for(s=0,l=a.length;s<l;++s)d=a[s],u.a.visibleAtResolution(d,p)&&d.sourceState==g.a.READY&&(c=this.getLayerRenderer(d.layer),c.prepareFrame(t,d,e)&&o.push(d));var _=t.size[0]*t.pixelRatio,y=t.size[1]*t.pixelRatio;for(this.canvas_.width==_&&this.canvas_.height==y||(this.canvas_.width=_,this.canvas_.height=y),i.bindFramebuffer(v.a.FRAMEBUFFER,null),i.clearColor(0,0,0,0),i.clear(v.a.COLOR_BUFFER_BIT),i.enable(v.a.BLEND),i.viewport(0,0,this.canvas_.width,this.canvas_.height),s=0,l=o.length;s<l;++s)d=o[s],c=this.getLayerRenderer(d.layer),c.composeFrame(t,d,e);this.renderedVisible_||(this.canvas_.style.display="",this.renderedVisible_=!0),this.calculateMatrices2D(t),this.textureCache_.getCount()-this.textureCacheFrameMarkerCount_>n.a.WEBGL_TEXTURE_CACHE_HIGH_WATER_MARK&&t.postRenderFunctions.push(this.expireCache_.bind(this)),this.tileTextureQueue_.isEmpty()||(t.postRenderFunctions.push(this.loadNextTileTexture_),t.animate=!0),this.dispatchComposeEvent_(h.a.POSTCOMPOSE,t),this.scheduleRemoveUnusedLayerRenderers(t),this.scheduleExpireIconCache(t)},T.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,r,o,a){var s;if(this.getGL().isContextLost())return!1;var l,c=e.viewState,h=e.layerStatesArray,d=h.length;for(l=d-1;l>=0;--l){var f=h[l],p=f.layer;if(u.a.visibleAtResolution(f,c.resolution)&&o.call(a,p)){if(s=this.getLayerRenderer(p).forEachFeatureAtCoordinate(t,e,i,n,r))return s}}},T.prototype.hasFeatureAtCoordinate=function(t,e,i,n,r){var o=!1;if(this.getGL().isContextLost())return!1;var a,s=e.viewState,l=e.layerStatesArray,c=l.length;for(a=c-1;a>=0;--a){var h=l[a],d=h.layer;if(u.a.visibleAtResolution(h,s.resolution)&&n.call(r,d)){if(o=this.getLayerRenderer(d).hasFeatureAtCoordinate(t,e))return!0}}return o},T.prototype.forEachLayerAtPixel=function(t,e,i,n,r,o){if(this.getGL().isContextLost())return!1;var a,s,l=e.viewState,c=e.layerStatesArray,h=c.length;for(s=h-1;s>=0;--s){var d=c[s],f=d.layer;if(u.a.visibleAtResolution(d,l.resolution)&&r.call(n,f)){if(a=this.getLayerRenderer(f).forEachLayerAtPixel(t,e,i,n))return a}}},e.a=T},function(t,e,i){"use strict";var n=i(0),r=i(20),o=i(76),a=i(15),s=i(5),l=i(1),u=i(6),c=i(23),h=i(111),d=i(334),f=i(335),p=i(41),g=i(10),_=i(13),y=i(47),v=function(t,e){h.a.call(this,t,e),this.fragmentShader_=d.a.fragment,this.vertexShader_=d.a.vertex,this.locations_=null,this.renderArrayBuffer_=new y.a([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),this.renderedTileRange_=null,this.renderedFramebufferExtent_=null,this.renderedRevision_=-1,this.tmpSize_=[0,0]};n.a.inherits(v,h.a),v.handles=function(t,e){return t===c.a.WEBGL&&e.getType()===r.a.TILE},v.create=function(t,e){return new v(t,e)},v.prototype.disposeInternal=function(){this.mapRenderer.getContext().deleteBuffer(this.renderArrayBuffer_),h.a.prototype.disposeInternal.call(this)},v.prototype.createLoadedTileFinder=function(t,e,i){var n=this.mapRenderer;return function(r,o){function a(t){var e=n.isTileTextureLoaded(t);return e&&(i[r]||(i[r]={}),i[r][t.tileCoord.toString()]=t),e}return t.forEachLoadedTile(e,r,o,a)}},v.prototype.handleWebGLContextLost=function(){h.a.prototype.handleWebGLContextLost.call(this),this.locations_=null},v.prototype.prepareFrame=function(t,e,i){var n,r=this.mapRenderer,c=i.getGL(),h=t.viewState,d=h.projection,y=this.getLayer(),v=y.getSource(),m=v.getTileGridForProjection(d),E=m.getZForResolution(h.resolution),T=m.getResolution(E),S=v.getTilePixelSize(E,t.pixelRatio,d),x=S[0]/p.a.toSize(m.getTileSize(E),this.tmpSize_)[0],C=T/x,R=v.getTilePixelRatio(x)*v.getGutter(d),b=h.center,I=t.extent,O=m.getTileRangeForExtentAndZ(I,E);if(this.renderedTileRange_&&this.renderedTileRange_.equals(O)&&this.renderedRevision_==v.getRevision())n=this.renderedFramebufferExtent_;else{var P=O.getSize(),w=Math.max(P[0]*S[0],P[1]*S[1]),L=u.a.roundUpToPowerOfTwo(w),A=C*L,M=m.getOrigin(E),F=M[0]+O.minX*S[0]*C,N=M[1]+O.minY*S[1]*C;n=[F,N,F+A,N+A],this.bindFramebuffer(t,L),c.viewport(0,0,L,L),c.clearColor(0,0,0,0),c.clear(_.a.COLOR_BUFFER_BIT),c.disable(_.a.BLEND);var D=i.getProgram(this.fragmentShader_,this.vertexShader_);i.useProgram(D),this.locations_||(this.locations_=new f.a(c,D)),i.bindBuffer(_.a.ARRAY_BUFFER,this.renderArrayBuffer_),c.enableVertexAttribArray(this.locations_.a_position),c.vertexAttribPointer(this.locations_.a_position,2,_.a.FLOAT,!1,16,0),c.enableVertexAttribArray(this.locations_.a_texCoord),c.vertexAttribPointer(this.locations_.a_texCoord,2,_.a.FLOAT,!1,16,8),c.uniform1i(this.locations_.u_texture,0);var k={};k[E]={};var G,U,j,B,V,Y,W,z,X=this.createLoadedTileFinder(v,d,k),H=y.getUseInterimTilesOnError(),K=!0,q=l.a.createEmpty(),Z=new o.a(0,0,0,0);for(Y=O.minX;Y<=O.maxX;++Y)for(W=O.minY;W<=O.maxY;++W)if(B=v.getTile(E,Y,W,x,d),void 0===e.extent||(z=m.getTileCoordExtent(B.tileCoord,q),l.a.intersects(z,e.extent))){if(V=B.getState(),U=V==a.a.LOADED||V==a.a.EMPTY||V==a.a.ERROR&&!H,U||(B=B.getInterimTile()),(V=B.getState())==a.a.LOADED){if(r.isTileTextureLoaded(B)){k[E][B.tileCoord.toString()]=B;continue}}else if(V==a.a.EMPTY||V==a.a.ERROR&&!H)continue;K=!1,j=m.forEachTileCoordParentTileRange(B.tileCoord,X,null,Z,q),j||(G=m.getTileCoordChildTileRange(B.tileCoord,Z,q))&&X(E+1,G)}var J=Object.keys(k).map(Number);J.sort(s.a.numberSafeCompareFunction);var Q,$,tt,et,it=new Float32Array(4);for(Q=0,$=J.length;Q<$;++Q){et=k[J[Q]];for(tt in et)B=et[tt],z=m.getTileCoordExtent(B.tileCoord,q),it[0]=2*(z[2]-z[0])/A,it[1]=2*(z[3]-z[1])/A,it[2]=2*(z[0]-n[0])/A-1,it[3]=2*(z[1]-n[1])/A-1,c.uniform4fv(this.locations_.u_tileOffset,it),r.bindTileTexture(B,S,R*x,_.a.LINEAR,_.a.LINEAR),c.drawArrays(_.a.TRIANGLE_STRIP,0,4)}K?(this.renderedTileRange_=O,this.renderedFramebufferExtent_=n,this.renderedRevision_=v.getRevision()):(this.renderedTileRange_=null,this.renderedFramebufferExtent_=null,this.renderedRevision_=-1,t.animate=!0)}this.updateUsedTiles(t.usedTiles,v,E,O);var nt=r.getTileTextureQueue();this.manageTilePyramid(t,v,m,x,d,I,E,y.getPreload(),function(t){t.getState()!=a.a.LOADED||r.isTileTextureLoaded(t)||nt.isKeyQueued(t.getKey())||nt.enqueue([t,m.getTileCoordCenter(t.tileCoord),m.getResolution(t.tileCoord[0]),S,R*x])},this),this.scheduleExpireCache(t,v),this.updateLogos(t,v);var rt=this.texCoordMatrix;return g.a.reset(rt),g.a.translate(rt,(Math.round(b[0]/T)*T-n[0])/(n[2]-n[0]),(Math.round(b[1]/T)*T-n[1])/(n[3]-n[1])),0!==h.rotation&&g.a.rotate(rt,h.rotation),g.a.scale(rt,t.size[0]*h.resolution/(n[2]-n[0]),t.size[1]*h.resolution/(n[3]-n[1])),g.a.translate(rt,-.5,-.5),!0},v.prototype.forEachLayerAtPixel=function(t,e,i,n){if(this.framebuffer){var r=[t[0]/e.size[0],(e.size[1]-t[1])/e.size[1]],o=g.a.apply(this.texCoordMatrix,r.slice()),a=[o[0]*this.framebufferDimension,o[1]*this.framebufferDimension],s=this.mapRenderer.getContext().getGL();s.bindFramebuffer(s.FRAMEBUFFER,this.framebuffer);var l=new Uint8Array(4);return s.readPixels(a[0],a[1],1,1,s.RGBA,s.UNSIGNED_BYTE,l),l[3]>0?i.call(n,this.getLayer(),l):void 0}},e.a=v},function(t,e,i){"use strict";var n=i(0),r=i(54),o=i(55),a={};a.fragment=new r.a(n.a.DEBUG_WEBGL?"precision mediump float;\nvarying vec2 v_texCoord;\n\n\nuniform sampler2D u_texture;\n\nvoid main(void) {\n  gl_FragColor = texture2D(u_texture, v_texCoord);\n}\n":"precision mediump float;varying vec2 a;uniform sampler2D e;void main(void){gl_FragColor=texture2D(e,a);}"),a.vertex=new o.a(n.a.DEBUG_WEBGL?"varying vec2 v_texCoord;\n\n\nattribute vec2 a_position;\nattribute vec2 a_texCoord;\nuniform vec4 u_tileOffset;\n\nvoid main(void) {\n  gl_Position = vec4(a_position * u_tileOffset.xy + u_tileOffset.zw, 0., 1.);\n  v_texCoord = a_texCoord;\n}\n\n\n":"varying vec2 a;attribute vec2 b;attribute vec2 c;uniform vec4 d;void main(void){gl_Position=vec4(b*d.xy+d.zw,0.,1.);a=c;}"),e.a=a},function(t,e,i){"use strict";var n=i(0),r=function(t,e){this.u_tileOffset=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_tileOffset":"d"),this.u_texture=t.getUniformLocation(e,n.a.DEBUG_WEBGL?"u_texture":"e"),this.a_position=t.getAttribLocation(e,n.a.DEBUG_WEBGL?"a_position":"b"),this.a_texCoord=t.getAttribLocation(e,n.a.DEBUG_WEBGL?"a_texCoord":"c")};e.a=r},function(t,e,i){"use strict";var n=i(0),r=i(20),o=i(17),a=i(1),s=i(175),l=i(23),u=i(110),c=i(111),h=i(10),d=function(t,e){c.a.call(this,t,e),this.dirty_=!1,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=a.a.createEmpty(),this.renderedRenderOrder_=null,this.replayGroup_=null,this.layerState_=null};n.a.inherits(d,c.a),d.handles=function(t,e){return t===l.a.WEBGL&&e.getType()===r.a.VECTOR},d.create=function(t,e){return new d(t,e)},d.prototype.composeFrame=function(t,e,i){this.layerState_=e;var n=t.viewState,r=this.replayGroup_,o=t.size,a=t.pixelRatio,s=this.mapRenderer.getGL();r&&!r.isEmpty()&&(s.enable(s.SCISSOR_TEST),s.scissor(0,0,o[0]*a,o[1]*a),r.replay(i,n.center,n.resolution,n.rotation,o,a,e.opacity,e.managed?t.skippedFeatureUids:{}),s.disable(s.SCISSOR_TEST))},d.prototype.disposeInternal=function(){var t=this.replayGroup_;if(t){var e=this.mapRenderer.getContext();t.getDeleteResourcesFunction(e)(),this.replayGroup_=null}c.a.prototype.disposeInternal.call(this)},d.prototype.forEachFeatureAtCoordinate=function(t,e,i,r,o){if(this.replayGroup_&&this.layerState_){var a=this.mapRenderer.getContext(),s=e.viewState,l=this.getLayer(),u=this.layerState_,c={};return this.replayGroup_.forEachFeatureAtCoordinate(t,a,s.center,s.resolution,s.rotation,e.size,e.pixelRatio,u.opacity,{},function(t){var e=n.a.getUid(t).toString();if(!(e in c))return c[e]=!0,r.call(o,t,l)})}},d.prototype.hasFeatureAtCoordinate=function(t,e){if(this.replayGroup_&&this.layerState_){var i=this.mapRenderer.getContext(),n=e.viewState,r=this.layerState_;return this.replayGroup_.hasFeatureAtCoordinate(t,i,n.center,n.resolution,n.rotation,e.size,e.pixelRatio,r.opacity,e.skippedFeatureUids)}return!1},d.prototype.forEachLayerAtPixel=function(t,e,i,n){var r=h.a.apply(e.pixelToCoordinateTransform,t.slice());return this.hasFeatureAtCoordinate(r,e)?i.call(n,this.getLayer(),null):void 0},d.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},d.prototype.prepareFrame=function(t,e,i){var n=this.getLayer(),r=n.getSource();this.updateLogos(t,r);var l=t.viewHints[o.a.ANIMATING],c=t.viewHints[o.a.INTERACTING],h=n.getUpdateWhileAnimating(),d=n.getUpdateWhileInteracting();if(!this.dirty_&&!h&&l||!d&&c)return!0;var f=t.extent,p=t.viewState,g=p.projection,_=p.resolution,y=t.pixelRatio,v=n.getRevision(),m=n.getRenderBuffer(),E=n.getRenderOrder();void 0===E&&(E=u.a.defaultOrder);var T=a.a.buffer(f,m*_);if(!this.dirty_&&this.renderedResolution_==_&&this.renderedRevision_==v&&this.renderedRenderOrder_==E&&a.a.containsExtent(this.renderedExtent_,T))return!0;this.replayGroup_&&t.postRenderFunctions.push(this.replayGroup_.getDeleteResourcesFunction(i)),this.dirty_=!1;var S=new s.a(u.a.getTolerance(_,y),T,n.getRenderBuffer());r.loadFeatures(T,_,g);var x=function(t){var e,i=t.getStyleFunction();if(i?e=i.call(t,_):(i=n.getStyleFunction())&&(e=i(t,_)),e){var r=this.renderFeature(t,_,y,e,S);this.dirty_=this.dirty_||r}};if(E){var C=[];r.forEachFeatureInExtent(T,function(t){C.push(t)},this),C.sort(E),C.forEach(x,this)}else r.forEachFeatureInExtent(T,x,this);return S.finish(i),this.renderedResolution_=_,this.renderedRevision_=v,this.renderedRenderOrder_=E,this.renderedExtent_=T,this.replayGroup_=S,!0},d.prototype.renderFeature=function(t,e,i,n,r){if(!n)return!1;var o=!1;if(Array.isArray(n))for(var a=n.length-1;a>=0;--a)o=u.a.renderFeature(r,t,n[a],u.a.getSquaredTolerance(e,i),this.handleStyleImageChange_,this)||o;else o=u.a.renderFeature(r,t,n,u.a.getSquaredTolerance(e,i),this.handleStyleImageChange_,this)||o;return o},e.a=d},function(t,e,i){"use strict";var n=i(0),r=i(3),o=i(4),a=i(1),s=i(72),l=i(8),u=i(2),c=function(t){s.a.call(this),this.geometries_=t||null,this.listenGeometriesChange_()};n.a.inherits(c,s.a),c.cloneGeometries_=function(t){var e,i,n=[];for(e=0,i=t.length;e<i;++e)n.push(t[e].clone());return n},c.prototype.unlistenGeometriesChange_=function(){var t,e;if(this.geometries_)for(t=0,e=this.geometries_.length;t<e;++t)r.a.unlisten(this.geometries_[t],o.a.CHANGE,this.changed,this)},c.prototype.listenGeometriesChange_=function(){var t,e;if(this.geometries_)for(t=0,e=this.geometries_.length;t<e;++t)r.a.listen(this.geometries_[t],o.a.CHANGE,this.changed,this)},c.prototype.clone=function(){var t=new c(null);return t.setGeometries(this.geometries_),t},c.prototype.closestPointXY=function(t,e,i,n){if(n<a.a.closestSquaredDistanceXY(this.getExtent(),t,e))return n;var r,o,s=this.geometries_;for(r=0,o=s.length;r<o;++r)n=s[r].closestPointXY(t,e,i,n);return n},c.prototype.containsXY=function(t,e){var i,n,r=this.geometries_;for(i=0,n=r.length;i<n;++i)if(r[i].containsXY(t,e))return!0;return!1},c.prototype.computeExtent=function(t){a.a.createOrUpdateEmpty(t);for(var e=this.geometries_,i=0,n=e.length;i<n;++i)a.a.extend(t,e[i].getExtent());return t},c.prototype.getGeometries=function(){return c.cloneGeometries_(this.geometries_)},c.prototype.getGeometriesArray=function(){return this.geometries_},c.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!=this.getRevision()&&(u.a.clear(this.simplifiedGeometryCache),this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=t.toString();if(this.simplifiedGeometryCache.hasOwnProperty(e))return this.simplifiedGeometryCache[e];var i,n,r=[],o=this.geometries_,a=!1;for(i=0,n=o.length;i<n;++i){var s=o[i],l=s.getSimplifiedGeometry(t);r.push(l),l!==s&&(a=!0)}if(a){var h=new c(null);return h.setGeometriesArray(r),this.simplifiedGeometryCache[e]=h,h}return this.simplifiedGeometryMaxMinSquaredTolerance=t,this},c.prototype.getType=function(){return l.a.GEOMETRY_COLLECTION},c.prototype.intersectsExtent=function(t){var e,i,n=this.geometries_;for(e=0,i=n.length;e<i;++e)if(n[e].intersectsExtent(t))return!0;return!1},c.prototype.isEmpty=function(){return 0===this.geometries_.length},c.prototype.rotate=function(t,e){for(var i=this.geometries_,n=0,r=i.length;n<r;++n)i[n].rotate(t,e);this.changed()},c.prototype.scale=function(t,e,i){var n=i;n||(n=a.a.getCenter(this.getExtent()));for(var r=this.geometries_,o=0,s=r.length;o<s;++o)r[o].scale(t,e,n);this.changed()},c.prototype.setGeometries=function(t){this.setGeometriesArray(c.cloneGeometries_(t))},c.prototype.setGeometriesArray=function(t){this.unlistenGeometriesChange_(),this.geometries_=t,this.listenGeometriesChange_(),this.changed()},c.prototype.applyTransform=function(t){var e,i,n=this.geometries_;for(e=0,i=n.length;e<i;++e)n[e].applyTransform(t);this.changed()},c.prototype.translate=function(t,e){var i,n,r=this.geometries_;for(i=0,n=r.length;i<n;++i)r[i].translate(t,e);this.changed()},c.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),s.a.prototype.disposeInternal.call(this)},e.a=c},function(t,e,i){"use strict";function n(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}function r(t,e,i){var n,r,o=i.buf;if(r=o[i.pos++],n=(112&r)>>4,r<128)return a(t,n,e);if(r=o[i.pos++],n|=(127&r)<<3,r<128)return a(t,n,e);if(r=o[i.pos++],n|=(127&r)<<10,r<128)return a(t,n,e);if(r=o[i.pos++],n|=(127&r)<<17,r<128)return a(t,n,e);if(r=o[i.pos++],n|=(127&r)<<24,r<128)return a(t,n,e);if(r=o[i.pos++],n|=(1&r)<<31,r<128)return a(t,n,e);throw new Error("Expected varint not more than 10 bytes")}function o(t){return t.type===n.Bytes?t.readVarint()+t.pos:t.pos+1}function a(t,e,i){return i?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function s(t,e){var i,n;if(t>=0?(i=t%4294967296|0,n=t/4294967296|0):(i=~(-t%4294967296),n=~(-t/4294967296),4294967295^i?i=i+1|0:(i=0,n=n+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),l(i,n,e),u(n,e)}function l(t,e,i){i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos]=127&t}function u(t,e){var i=(7&t)<<4;e.buf[e.pos++]|=i|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}function c(t,e,i){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.ceil(Math.log(e)/(7*Math.LN2));i.realloc(n);for(var r=i.pos-1;r>=t;r--)i.buf[r+n]=i.buf[r]}function h(t,e){for(var i=0;i<t.length;i++)e.writeVarint(t[i])}function d(t,e){for(var i=0;i<t.length;i++)e.writeSVarint(t[i])}function f(t,e){for(var i=0;i<t.length;i++)e.writeFloat(t[i])}function p(t,e){for(var i=0;i<t.length;i++)e.writeDouble(t[i])}function g(t,e){for(var i=0;i<t.length;i++)e.writeBoolean(t[i])}function _(t,e){for(var i=0;i<t.length;i++)e.writeFixed32(t[i])}function y(t,e){for(var i=0;i<t.length;i++)e.writeSFixed32(t[i])}function v(t,e){for(var i=0;i<t.length;i++)e.writeFixed64(t[i])}function m(t,e){for(var i=0;i<t.length;i++)e.writeSFixed64(t[i])}function E(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function T(t,e,i){t[i]=e,t[i+1]=e>>>8,t[i+2]=e>>>16,t[i+3]=e>>>24}function S(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function x(t,e,i){for(var n="",r=e;r<i;){var o=t[r],a=null,s=o>239?4:o>223?3:o>191?2:1;if(r+s>i)break;var l,u,c;1===s?o<128&&(a=o):2===s?128===(192&(l=t[r+1]))&&(a=(31&o)<<6|63&l)<=127&&(a=null):3===s?(l=t[r+1],u=t[r+2],128===(192&l)&&128===(192&u)&&((a=(15&o)<<12|(63&l)<<6|63&u)<=2047||a>=55296&&a<=57343)&&(a=null)):4===s&&(l=t[r+1],u=t[r+2],c=t[r+3],128===(192&l)&&128===(192&u)&&128===(192&c)&&((a=(15&o)<<18|(63&l)<<12|(63&u)<<6|63&c)<=65535||a>=1114112)&&(a=null)),null===a?(a=65533,s=1):a>65535&&(a-=65536,n+=String.fromCharCode(a>>>10&1023|55296),a=56320|1023&a),n+=String.fromCharCode(a),r+=s}return n}function C(t,e,i){for(var n,r,o=0;o<e.length;o++){if((n=e.charCodeAt(o))>55295&&n<57344){if(!r){n>56319||o+1===e.length?(t[i++]=239,t[i++]=191,t[i++]=189):r=n;continue}if(n<56320){t[i++]=239,t[i++]=191,t[i++]=189,r=n;continue}n=r-55296<<10|n-56320|65536,r=null}else r&&(t[i++]=239,t[i++]=191,t[i++]=189,r=null);n<128?t[i++]=n:(n<2048?t[i++]=n>>6|192:(n<65536?t[i++]=n>>12|224:(t[i++]=n>>18|240,t[i++]=n>>12&63|128),t[i++]=n>>6&63|128),t[i++]=63&n|128)}return i}t.exports=n;var R=i(339);n.Varint=0,n.Fixed64=1,n.Bytes=2,n.Fixed32=5;n.prototype={destroy:function(){this.buf=null},readFields:function(t,e,i){for(i=i||this.length;this.pos<i;){var n=this.readVarint(),r=n>>3,o=this.pos;this.type=7&n,t(r,e,this),this.pos===o&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=E(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=S(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=E(this.buf,this.pos)+4294967296*E(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=E(this.buf,this.pos)+4294967296*S(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=R.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=R.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,i,n=this.buf;return i=n[this.pos++],e=127&i,i<128?e:(i=n[this.pos++],e|=(127&i)<<7,i<128?e:(i=n[this.pos++],e|=(127&i)<<14,i<128?e:(i=n[this.pos++],e|=(127&i)<<21,i<128?e:(i=n[this.pos],e|=(15&i)<<28,r(e,t,this)))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2===1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=x(this.buf,this.pos,t);return this.pos=t,e},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){var i=o(this);for(t=t||[];this.pos<i;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===n.Varint)for(;this.buf[this.pos++]>127;);else if(e===n.Bytes)this.pos=this.readVarint()+this.pos;else if(e===n.Fixed32)this.pos+=4;else{if(e!==n.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var i=new Uint8Array(e);i.set(this.buf),this.buf=i,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),T(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),T(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),T(this.buf,-1&t,this.pos),T(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),T(this.buf,-1&t,this.pos),T(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(t){if((t=+t||0)>268435455||t<0)return void s(t,this);this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127)))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=C(this.buf,t,this.pos);var i=this.pos-e;i>=128&&c(e,i,this),this.pos=e-1,this.writeVarint(i),this.pos+=i},writeFloat:function(t){this.realloc(4),R.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),R.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var i=0;i<e;i++)this.buf[this.pos++]=t[i]},writeRawMessage:function(t,e){this.pos++;var i=this.pos;t(e,this);var n=this.pos-i;n>=128&&c(i,n,this),this.pos=i-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,i){this.writeTag(t,n.Bytes),this.writeRawMessage(e,i)},writePackedVarint:function(t,e){this.writeMessage(t,h,e)},writePackedSVarint:function(t,e){this.writeMessage(t,d,e)},writePackedBoolean:function(t,e){this.writeMessage(t,g,e)},writePackedFloat:function(t,e){this.writeMessage(t,f,e)},writePackedDouble:function(t,e){this.writeMessage(t,p,e)},writePackedFixed32:function(t,e){this.writeMessage(t,_,e)},writePackedSFixed32:function(t,e){this.writeMessage(t,y,e)},writePackedFixed64:function(t,e){this.writeMessage(t,v,e)},writePackedSFixed64:function(t,e){this.writeMessage(t,m,e)},writeBytesField:function(t,e){this.writeTag(t,n.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,n.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,n.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,n.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,n.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,n.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,n.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,n.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,n.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,n.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}}},function(t,e){e.read=function(t,e,i,n,r){var o,a,s=8*r-n-1,l=(1<<s)-1,u=l>>1,c=-7,h=i?r-1:0,d=i?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+t[e+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),o-=u}return(f?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,i,n,r,o){var a,s,l,u=8*o-r-1,c=(1<<u)-1,h=c>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+h>=1?d/l:d*Math.pow(2,1-h),e*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,r),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;t[i+f]=255&s,f+=p,s/=256,r-=8);for(a=a<<r|s,u+=r;u>0;t[i+f]=255&a,f+=p,a/=256,u-=8);t[i+f-p]|=128*g}},function(t,e,i){"use strict";var n=i(0),r={};r.jsonp=function(t,e,i,r){function o(){delete window[s],a.parentNode.removeChild(a)}var a=document.createElement("script"),s="olc_"+n.a.getUid(e);a.async=!0,a.src=t+(-1==t.indexOf("?")?"?":"&")+(r||"callback")+"="+s;var l=setTimeout(function(){o(),i&&i()},1e4);window[s]=function(t){clearTimeout(l),o(),e(t)},document.getElementsByTagName("head")[0].appendChild(a)},e.a=r},function(t,e,i){"use strict";var n=i(0),r=i(88),o=i(15),a=i(9),s=i(3),l=i(4),u=function(t,e,i,n,o,a){r.a.call(this,t,e,a),this.crossOrigin_=n,this.src_=i,this.image_=new Image,null!==n&&(this.image_.crossOrigin=n),this.imageListenerKeys_=null,this.tileLoadFunction_=o};n.a.inherits(u,r.a),u.prototype.disposeInternal=function(){this.state==o.a.LOADING&&(this.unlistenImage_(),this.image_=u.getBlankImage()),this.interimTile&&this.interimTile.dispose(),this.state=o.a.ABORT,this.changed(),r.a.prototype.disposeInternal.call(this)},u.prototype.getImage=function(){return this.image_},u.prototype.getKey=function(){return this.src_},u.prototype.handleImageError_=function(){this.state=o.a.ERROR,this.unlistenImage_(),this.image_=u.getBlankImage(),this.changed()},u.prototype.handleImageLoad_=function(){this.image_.naturalWidth&&this.image_.naturalHeight?this.state=o.a.LOADED:this.state=o.a.EMPTY,this.unlistenImage_(),this.changed()},u.prototype.load=function(){this.state==o.a.ERROR&&(this.state=o.a.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==o.a.IDLE&&(this.state=o.a.LOADING,this.changed(),this.imageListenerKeys_=[s.a.listenOnce(this.image_,l.a.ERROR,this.handleImageError_,this),s.a.listenOnce(this.image_,l.a.LOAD,this.handleImageLoad_,this)],this.tileLoadFunction_(this,this.src_))},u.prototype.unlistenImage_=function(){this.imageListenerKeys_.forEach(s.a.unlistenByKey),this.imageListenerKeys_=null},u.getBlankImage=function(){var t=a.a.createCanvasContext2D(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas},e.a=u},function(t,e,i){"use strict";var n=i(0),r=i(88),o=i(15),a=i(3),s=i(4),l=i(1),u=i(6),c=i(117),h=i(191),d=function(t,e,i,a,s,d,f,p,g,_,y){r.a.call(this,s,o.a.IDLE),this.renderEdges_=void 0!==y&&y,this.pixelRatio_=f,this.gutter_=p,this.canvas_=null,this.sourceTileGrid_=e,this.targetTileGrid_=a,this.wrappedTileCoord_=d||s,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;var v=a.getTileCoordExtent(this.wrappedTileCoord_),m=this.targetTileGrid_.getExtent(),E=this.sourceTileGrid_.getExtent(),T=m?l.a.getIntersection(v,m):v;if(0===l.a.getArea(T))return void(this.state=o.a.EMPTY);var S=t.getExtent();S&&(E=E?l.a.getIntersection(E,S):S);var x=a.getResolution(this.wrappedTileCoord_[0]),C=l.a.getCenter(T),R=c.a.calculateSourceResolution(t,i,C,x);if(!isFinite(R)||R<=0)return void(this.state=o.a.EMPTY);var b=void 0!==_?_:n.a.DEFAULT_RASTER_REPROJECTION_ERROR_THRESHOLD;if(this.triangulation_=new h.a(t,i,T,E,R*b),0===this.triangulation_.getTriangles().length)return void(this.state=o.a.EMPTY);this.sourceZ_=e.getZForResolution(R);var I=this.triangulation_.calculateSourceExtent();if(E&&(t.canWrapX()?(I[1]=u.a.clamp(I[1],E[1],E[3]),I[3]=u.a.clamp(I[3],E[1],E[3])):I=l.a.getIntersection(I,E)),l.a.getArea(I)){for(var O=e.getTileRangeForExtentAndZ(I,this.sourceZ_),P=O.minX;P<=O.maxX;P++)for(var w=O.minY;w<=O.maxY;w++){var L=g(this.sourceZ_,P,w,f);L&&this.sourceTiles_.push(L)}0===this.sourceTiles_.length&&(this.state=o.a.EMPTY)}else this.state=o.a.EMPTY};n.a.inherits(d,r.a),d.prototype.disposeInternal=function(){this.state==o.a.LOADING&&this.unlistenSources_(),r.a.prototype.disposeInternal.call(this)},d.prototype.getImage=function(){return this.canvas_},d.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,i,n){e&&e.getState()==o.a.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})},this),this.sourceTiles_.length=0,0===t.length)this.state=o.a.ERROR;else{var e=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(e),n="number"===typeof i?i:i[0],r="number"===typeof i?i:i[1],a=this.targetTileGrid_.getResolution(e),s=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=c.a.render(n,r,this.pixelRatio_,s,this.sourceTileGrid_.getExtent(),a,l,this.triangulation_,t,this.gutter_,this.renderEdges_),this.state=o.a.LOADED}this.changed()},d.prototype.load=function(){if(this.state==o.a.IDLE){this.state=o.a.LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,i,n){var r=e.getState();if(r==o.a.IDLE||r==o.a.LOADING){t++;var l;l=a.a.listen(e,s.a.CHANGE,function(i){var n=e.getState();n!=o.a.LOADED&&n!=o.a.ERROR&&n!=o.a.EMPTY||(a.a.unlistenByKey(l),0===--t&&(this.unlistenSources_(),this.reproject_()))},this),this.sourcesListenerKeys_.push(l)}},this),this.sourceTiles_.forEach(function(t,e,i){t.getState()==o.a.IDLE&&t.load()}),0===t&&setTimeout(this.reproject_.bind(this),0)}},d.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(a.a.unlistenByKey),this.sourcesListenerKeys_=null},e.a=d},function(t,e,i){"use strict";var n=i(0),r=i(190),o=i(15),a=i(14),s=i(11),l=i(41),u=i(118),c=i(34),h=i(33),d=function(t){u.a.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,state:t.state,wrapX:t.wrapX}),this.opaque_=void 0!==t.opaque&&t.opaque,this.tilePixelRatio_=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:null,this.tileCache=new r.a(t.cacheSize),this.tmpSize=[0,0],this.key_="",this.tileOptions={transition:t.transition}};n.a.inherits(d,u.a),d.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},d.prototype.expireCache=function(t,e){var i=this.getTileCacheForProjection(t);i&&i.expireCache(e)},d.prototype.forEachLoadedTile=function(t,e,i,n){var r=this.getTileCacheForProjection(t);if(!r)return!1;for(var a,s,l,u=!0,h=i.minX;h<=i.maxX;++h)for(var d=i.minY;d<=i.maxY;++d)s=c.a.getKeyZXY(e,h,d),l=!1,r.containsKey(s)&&(a=r.get(s),(l=a.getState()===o.a.LOADED)&&(l=!1!==n(a))),l||(u=!1);return u},d.prototype.getGutter=function(t){return 0},d.prototype.getKey=function(){return this.key_},d.prototype.setKey=function(t){this.key_!==t&&(this.key_=t,this.changed())},d.prototype.getOpaque=function(t){return this.opaque_},d.prototype.getResolutions=function(){return this.tileGrid.getResolutions()},d.prototype.getTile=function(t,e,i,n,r){},d.prototype.getTileGrid=function(){return this.tileGrid},d.prototype.getTileGridForProjection=function(t){return this.tileGrid?this.tileGrid:h.default.getForProjection(t)},d.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();return e&&!s.default.equivalent(e,t)?null:this.tileCache},d.prototype.getTilePixelRatio=function(t){return this.tilePixelRatio_},d.prototype.getTilePixelSize=function(t,e,i){var n=this.getTileGridForProjection(i),r=this.getTilePixelRatio(e),o=l.a.toSize(n.getTileSize(t),this.tmpSize);return 1==r?o:l.a.scale(o,r,this.tmpSize)},d.prototype.getTileCoordForTileUrlFunction=function(t,e){var i=void 0!==e?e:this.getProjection(),n=this.getTileGridForProjection(i);return this.getWrapX()&&i.isGlobal()&&(t=h.default.wrapX(n,t,i)),c.a.withinExtentAndZ(t,n)?t:null},d.prototype.refresh=function(){this.tileCache.clear(),this.changed()},d.prototype.useTile=n.a.nullFunction,d.Event=function(t,e){a.a.call(this,t),this.tile=e},n.a.inherits(d.Event,a.a),e.a=d},function(t,e,i){"use strict";var n=i(76),r=i(6),o=i(33),a=function(t){this.html_=t.html,this.tileRanges_=t.tileRanges?t.tileRanges:null};a.prototype.getHTML=function(){return this.html_},a.prototype.intersectsAnyTileRange=function(t,e,i){if(!this.tileRanges_)return!0;var a,s,l,u;for(u in t)if(u in this.tileRanges_){l=t[u];var c;for(a=0,s=this.tileRanges_[u].length;a<s;++a){if(c=this.tileRanges_[u][a],c.intersects(l))return!0;var h=e.getTileRangeForExtentAndZ(o.default.extentFromProjection(i),parseInt(u,10)),d=h.getWidth();if(l.minX<h.minX||l.maxX>h.maxX){if(c.intersects(new n.a(r.a.modulo(l.minX,d),r.a.modulo(l.maxX,d),l.minY,l.maxY)))return!0;if(l.getWidth()>d&&c.intersects(h))return!0}}}return!1},e.a=a},function(t,e,i){"use strict";var n={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"};e.a=n},function(t,e,i){"use strict";var n=i(5),r={};r.DOCUMENT=document.implementation.createDocument("","",null),r.createElementNS=function(t,e){return r.DOCUMENT.createElementNS(t,e)},r.getAllTextContent=function(t,e){return r.getAllTextContent_(t,e,[]).join("")},r.getAllTextContent_=function(t,e,i){if(t.nodeType==Node.CDATA_SECTION_NODE||t.nodeType==Node.TEXT_NODE)e?i.push(String(t.nodeValue).replace(/(\r\n|\r|\n)/g,"")):i.push(t.nodeValue);else{var n;for(n=t.firstChild;n;n=n.nextSibling)r.getAllTextContent_(n,e,i)}return i},r.isDocument=function(t){return t instanceof Document},r.isNode=function(t){return t instanceof Node},r.getAttributeNS=function(t,e,i){return t.getAttributeNS(e,i)||""},r.setAttributeNS=function(t,e,i,n){t.setAttributeNS(e,i,n)},r.parse=function(t){return(new DOMParser).parseFromString(t,"application/xml")},r.makeArrayExtender=function(t,e){return function(i,r){var o=t.call(e,i,r);if(void 0!==o){var a=r[r.length-1];n.a.extend(a,o)}}},r.makeArrayPusher=function(t,e){return function(i,n){var r=t.call(void 0!==e?e:this,i,n);if(void 0!==r){n[n.length-1].push(r)}}},r.makeReplacer=function(t,e){return function(i,n){var r=t.call(void 0!==e?e:this,i,n);void 0!==r&&(n[n.length-1]=r)}},r.makeObjectPropertyPusher=function(t,e,i){return function(n,r){var o=t.call(void 0!==i?i:this,n,r);if(void 0!==o){var a,s=r[r.length-1],l=void 0!==e?e:n.localName;a=l in s?s[l]:s[l]=[],a.push(o)}}},r.makeObjectPropertySetter=function(t,e,i){return function(n,r){var o=t.call(void 0!==i?i:this,n,r);if(void 0!==o){r[r.length-1][void 0!==e?e:n.localName]=o}}},r.makeChildAppender=function(t,e){return function(i,n,r){t.call(void 0!==e?e:this,i,n,r),r[r.length-1].node.appendChild(i)}},r.makeArraySerializer=function(t,e){var i,n;return function(e,o,a){if(void 0===i){i={};var s={};s[e.localName]=t,i[e.namespaceURI]=s,n=r.makeSimpleNodeFactory(e.localName)}r.serialize(i,n,o,a)}},r.makeSimpleNodeFactory=function(t,e){var i=t;return function(t,n,o){var a=n[n.length-1],s=a.node,l=i;void 0===l&&(l=o);var u=e;return void 0===e&&(u=s.namespaceURI),r.createElementNS(u,l)}},r.OBJECT_PROPERTY_NODE_FACTORY=r.makeSimpleNodeFactory(),r.makeSequence=function(t,e){for(var i=e.length,n=new Array(i),r=0;r<i;++r)n[r]=t[e[r]];return n},r.makeStructureNS=function(t,e,i){var n,r,o=void 0!==i?i:{};for(n=0,r=t.length;n<r;++n)o[t[n]]=e;return o},r.parseNode=function(t,e,i,n){var r;for(r=e.firstElementChild;r;r=r.nextElementSibling){var o=t[r.namespaceURI];if(void 0!==o){var a=o[r.localName];void 0!==a&&a.call(n,r,i)}}},r.pushParseAndPop=function(t,e,i,n,o){return n.push(t),r.parseNode(e,i,n,o),n.pop()},r.serialize=function(t,e,i,n,r,o){for(var a,s,l=(void 0!==r?r:i).length,u=0;u<l;++u)void 0!==(a=i[u])&&void 0!==(s=e.call(o,a,n,void 0!==r?r[u]:void 0))&&t[s.namespaceURI][s.localName].call(o,s,a,n)},r.pushSerializeAndPop=function(t,e,i,n,o,a,s){return o.push(t),r.serialize(e,i,n,o,a,s),o.pop()},e.a=r},function(t,e,i){"use strict";var n=i(0),r=i(88),o=i(15),a=i(9),s=i(3),l=i(1),u=i(4),c=i(193),h=function(t,e,i,n,a,c,h,d,f,p,g,_,y,v,m){if(r.a.call(this,t,e,m),this.context_={},this.loader_,this.replayState_={},this.sourceTiles_=p,this.tileKeys=[],this.sourceRevision_=i,this.wrappedTileCoord=c,this.loadListenerKeys_=[],this.sourceTileListenerKeys_=[],c){var E=f.getTileCoordExtent(c),T=f.getResolution(t[0]),S=d.getZForResolution(T);d.forEachTileCoord(E,S,function(t){var e=l.a.getIntersection(E,d.getTileCoordExtent(t)),i=d.getExtent();if(i&&(e=l.a.getIntersection(e,i)),l.a.getWidth(e)/T>=.5&&l.a.getHeight(e)/T>=.5){var r=t.toString(),c=p[r];if(!c){var f=h(t,g,_);c=p[r]=new y(t,void 0==f?o.a.EMPTY:o.a.IDLE,void 0==f?"":f,n,a),this.sourceTileListenerKeys_.push(s.a.listen(c,u.a.CHANGE,v))}c.consumers++,this.tileKeys.push(r)}}.bind(this))}};n.a.inherits(h,r.a),h.prototype.disposeInternal=function(){for(var t=0,e=this.tileKeys.length;t<e;++t){var i=this.tileKeys[t],n=this.getTile(i);n.consumers--,0==n.consumers&&(delete this.sourceTiles_[i],n.dispose())}this.tileKeys.length=0,this.sourceTiles_=null,this.loadListenerKeys_.forEach(s.a.unlistenByKey),this.loadListenerKeys_.length=0,this.interimTile&&this.interimTile.dispose(),this.state=o.a.ABORT,this.changed(),this.sourceTileListenerKeys_.forEach(s.a.unlistenByKey),this.sourceTileListenerKeys_.length=0,r.a.prototype.disposeInternal.call(this)},h.prototype.getContext=function(t){var e=n.a.getUid(t).toString();return e in this.context_||(this.context_[e]=a.a.createCanvasContext2D()),this.context_[e]},h.prototype.getImage=function(t){return-1==this.getReplayState(t).renderedTileRevision?null:this.getContext(t).canvas},h.prototype.getReplayState=function(t){var e=n.a.getUid(t).toString();return e in this.replayState_||(this.replayState_[e]={dirty:!1,renderedRenderOrder:null,renderedRevision:-1,renderedTileRevision:-1}),this.replayState_[e]},h.prototype.getKey=function(){return this.tileKeys.join("/")+"-"+this.sourceRevision_},h.prototype.getTile=function(t){return this.sourceTiles_[t]},h.prototype.load=function(){var t=0,e={};this.state==o.a.IDLE&&this.setState(o.a.LOADING),this.state==o.a.LOADING&&this.tileKeys.forEach(function(i){var r=this.getTile(i);if(r.state==o.a.IDLE&&(r.setLoader(this.loader_),r.load()),r.state==o.a.LOADING){var a=s.a.listen(r,u.a.CHANGE,function(i){var a=r.getState();if(a==o.a.LOADED||a==o.a.ERROR){var s=n.a.getUid(r);a==o.a.ERROR?e[s]=!0:(--t,delete e[s]),t-Object.keys(e).length==0&&this.finishLoading_()}}.bind(this));this.loadListenerKeys_.push(a),++t}}.bind(this)),t-Object.keys(e).length==0&&setTimeout(this.finishLoading_.bind(this),0)},h.prototype.finishLoading_=function(){for(var t=this.tileKeys.length,e=0,i=t-1;i>=0;--i){var n=this.getTile(this.tileKeys[i]).getState();n!=o.a.LOADED&&--t,n==o.a.EMPTY&&++e}t==this.tileKeys.length?(this.loadListenerKeys_.forEach(s.a.unlistenByKey),this.loadListenerKeys_.length=0,this.setState(o.a.LOADED)):this.setState(e==this.tileKeys.length?o.a.EMPTY:o.a.ERROR)},h.defaultLoadFunction=function(t,e){var i=c.a.loadFeaturesXhr(e,t.getFormat(),t.onLoad.bind(t),t.onError.bind(t));t.setLoader(i)},e.a=h},function(t,e,i){"use strict";var n=i(0),r=i(88),o=i(15),a=function(t,e,i,n,o,a){r.a.call(this,t,e,a),this.consumers=0,this.extent_=null,this.format_=n,this.features_=null,this.loader_,this.projection_,this.replayGroups_={},this.tileLoadFunction_=o,this.url_=i};n.a.inherits(a,r.a),a.prototype.disposeInternal=function(){this.features_=null,this.replayGroups_={},this.state=o.a.ABORT,this.changed(),r.a.prototype.disposeInternal.call(this)},a.prototype.getExtent=function(){return this.extent_||a.DEFAULT_EXTENT},a.prototype.getFormat=function(){return this.format_},a.prototype.getFeatures=function(){return this.features_},a.prototype.getKey=function(){return this.url_},a.prototype.getProjection=function(){return this.projection_},a.prototype.getReplayGroup=function(t,e){return this.replayGroups_[n.a.getUid(t)+","+e]},a.prototype.load=function(){this.state==o.a.IDLE&&(this.setState(o.a.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_(null,NaN,null))},a.prototype.onLoad=function(t,e,i){this.setProjection(e),this.setFeatures(t),this.setExtent(i)},a.prototype.onError=function(){this.setState(o.a.ERROR)},a.prototype.setExtent=function(t){this.extent_=t},a.prototype.setFeatures=function(t){this.features_=t,this.setState(o.a.LOADED)},a.prototype.setProjection=function(t){this.projection_=t},a.prototype.setReplayGroup=function(t,e,i){this.replayGroups_[n.a.getUid(t)+","+e]=i},a.prototype.setLoader=function(t){this.loader_=t},a.DEFAULT_EXTENT=[0,0,4096,4096],e.a=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(100),o=i(16),a=i(350),s=i(39),l=i(9),u=i(3),c=i(1),h=function t(e){o.a.call(this),this.options=e,this.id=e.id,this.insertFirst=void 0===e.insertFirst||e.insertFirst,this.stopEvent=void 0===e.stopEvent||e.stopEvent,this.element=document.createElement("DIV"),this.element.className=void 0!==e.className?e.className:"ol-overlay-container "+s.a.CLASS_SELECTABLE,this.element.style.position="absolute",this.autoPan=void 0!==e.autoPan&&e.autoPan,this.autoPanAnimation=e.autoPanAnimation||{},this.autoPanMargin=void 0!==e.autoPanMargin?e.autoPanMargin:20,this.rendered={bottom_:"",left_:"",right_:"",top_:"",visible:!0},this.mapPostrenderListenerKey=null,u.a.listen(this,o.a.getChangeEventType(t.Property.ELEMENT),this.handleElementChanged,this),u.a.listen(this,o.a.getChangeEventType(t.Property.MAP),this.handleMapChanged,this),u.a.listen(this,o.a.getChangeEventType(t.Property.OFFSET),this.handleOffsetChanged,this),u.a.listen(this,o.a.getChangeEventType(t.Property.POSITION),this.handlePositionChanged,this),u.a.listen(this,o.a.getChangeEventType(t.Property.POSITIONING),this.handlePositioningChanged,this),void 0!==e.element&&this.setElement(e.element),this.setOffset(void 0!==e.offset?e.offset:[0,0]),this.setPositioning(void 0!==e.positioning?e.positioning:a.a.TOP_LEFT),void 0!==e.position&&this.setPosition(e.position)};n.a.inherits(h,o.a),h.prototype.getElement=function(){return this.get(h.Property.ELEMENT)},h.prototype.getId=function(){return this.id},h.prototype.getMap=function(){return this.get(h.Property.MAP)},h.prototype.getOffset=function(){return this.get(h.Property.OFFSET)},h.prototype.getPosition=function(){return this.get(h.Property.POSITION)},h.prototype.getPositioning=function(){return this.get(h.Property.POSITIONING)},h.prototype.handleElementChanged=function(){l.a.removeChildren(this.element);var t=this.getElement();t&&this.element.appendChild(t)},h.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(l.a.removeNode(this.element),u.a.unlistenByKey(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var t=this.getMap();if(t){this.mapPostrenderListenerKey=u.a.listen(t,r.a.POSTRENDER,this.render,this),this.updatePixelPosition();var e=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this.insertFirst?e.insertBefore(this.element,e.childNodes[0]||null):e.appendChild(this.element)}},h.prototype.render=function(){this.updatePixelPosition()},h.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},h.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.get(h.Property.POSITION)&&this.autoPan&&this.panIntoView()},h.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},h.prototype.setElement=function(t){this.set(h.Property.ELEMENT,t)},h.prototype.setMap=function(t){this.set(h.Property.MAP,t)},h.prototype.setOffset=function(t){this.set(h.Property.OFFSET,t)},h.prototype.setPosition=function(t){this.set(h.Property.POSITION,t)},h.prototype.panIntoView=function(){var t=this.getMap();if(t&&t.getTargetElement()){var e=this.getRect(t.getTargetElement(),t.getSize()),i=this.getElement(),n=this.getRect(i,[l.a.outerWidth(i),l.a.outerHeight(i)]),r=this.autoPanMargin;if(!c.a.containsExtent(e,n)){var o=n[0]-e[0],a=e[2]-n[2],s=n[1]-e[1],u=e[3]-n[3],h=[0,0];if(o<0?h[0]=o-r:a<0&&(h[0]=Math.abs(a)+r),s<0?h[1]=s-r:u<0&&(h[1]=Math.abs(u)+r),0!==h[0]||0!==h[1]){var d=t.getView().getCenter(),f=t.getPixelFromCoordinate(d),p=[f[0]+h[0],f[1]+h[1]];t.getView().animate({center:t.getCoordinateFromPixel(p),duration:this.autoPanAnimation.duration,easing:this.autoPanAnimation.easing})}}}},h.prototype.getRect=function(t,e){var i=t.getBoundingClientRect(),n=i.left+window.pageXOffset,r=i.top+window.pageYOffset;return[n,r,n+e[0],r+e[1]]},h.prototype.setPositioning=function(t){this.set(h.Property.POSITIONING,t)},h.prototype.setVisible=function(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)},h.prototype.updatePixelPosition=function(){var t=this.getMap(),e=this.getPosition();if(!t||!t.isRendered()||!e)return void this.setVisible(!1);var i=t.getPixelFromCoordinate(e),n=t.getSize();this.updateRenderedPosition(i,n)},h.prototype.updateRenderedPosition=function(t,e){var i=this.element.style,n=this.getOffset(),r=this.getPositioning();this.setVisible(!0);var o=n[0],s=n[1];if(r==a.a.BOTTOM_RIGHT||r==a.a.CENTER_RIGHT||r==a.a.TOP_RIGHT){""!==this.rendered.left_&&(this.rendered.left_=i.left="");var l=Math.round(e[0]-t[0]-o)+"px";this.rendered.right_!=l&&(this.rendered.right_=i.right=l)}else{""!==this.rendered.right_&&(this.rendered.right_=i.right=""),r!=a.a.BOTTOM_CENTER&&r!=a.a.CENTER_CENTER&&r!=a.a.TOP_CENTER||(o-=this.element.offsetWidth/2);var u=Math.round(t[0]+o)+"px";this.rendered.left_!=u&&(this.rendered.left_=i.left=u)}if(r==a.a.BOTTOM_LEFT||r==a.a.BOTTOM_CENTER||r==a.a.BOTTOM_RIGHT){""!==this.rendered.top_&&(this.rendered.top_=i.top="");var c=Math.round(e[1]-t[1]-s)+"px";this.rendered.bottom_!=c&&(this.rendered.bottom_=i.bottom=c)}else{""!==this.rendered.bottom_&&(this.rendered.bottom_=i.bottom=""),r!=a.a.CENTER_LEFT&&r!=a.a.CENTER_CENTER&&r!=a.a.CENTER_RIGHT||(s-=this.element.offsetHeight/2);var h=Math.round(t[1]+s)+"px";this.rendered.top_!=h&&(this.rendered.top_=i.top=h)}},h.prototype.getOptions=function(){return this.options},h.Property={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},e.default=h},function(t,e,i){"use strict";var n={BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right",CENTER_LEFT:"center-left",CENTER_CENTER:"center-center",CENTER_RIGHT:"center-right",TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right"};e.a=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(7),o=i(1),a=i(2),s=i(6),l=i(11),u=i(117),c=i(41),h=i(116),d=i(352),f=i(34),p=i(155),g=i(353),_=function(t){var e=t||{},i=e.params||{},n=!("TRANSPARENT"in i)||i.TRANSPARENT;h.a.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,logo:e.logo,opaque:!n,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileClass:e.tileClass,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition}),this.gutter_=void 0!==e.gutter?e.gutter:0,this.params_=i,this.v13_=!0,this.serverType_=e.serverType,this.hidpi_=void 0===e.hidpi||e.hidpi,this.tmpExtent_=o.a.createEmpty(),this.updateV13_(),this.setKey(this.getKeyForParams_())};n.a.inherits(_,h.a),_.prototype.getGetFeatureInfoUrl=function(t,e,i,r){var s=l.default.get(i),h=this.getProjection(),d=this.getTileGrid();d||(d=this.getTileGridForProjection(s));var f=d.getTileCoordForCoordAndResolution(t,e);if(!(d.getResolutions().length<=f[0])){var p=d.getResolution(f[0]),g=d.getTileCoordExtent(f,this.tmpExtent_),_=c.a.toSize(d.getTileSize(f[0]),this.tmpSize),y=this.gutter_;0!==y&&(_=c.a.buffer(_,y,this.tmpSize),g=o.a.buffer(g,p*y,g)),h&&h!==s&&(p=u.a.calculateSourceResolution(h,s,t,p),g=l.default.transformExtent(g,s,h),t=l.default.transform(t,s,h));var v={SERVICE:"WMS",VERSION:n.a.DEFAULT_WMS_VERSION,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};a.a.assign(v,this.params_,r);var m=Math.floor((t[0]-g[0])/p),E=Math.floor((g[3]-t[1])/p);return v[this.v13_?"I":"X"]=m,v[this.v13_?"J":"Y"]=E,this.getRequestUrl_(f,_,g,1,h||s,v)}},_.prototype.getGutterInternal=function(){return this.gutter_},_.prototype.getParams=function(){return this.params_},_.prototype.getRequestUrl_=function(t,e,i,n,o,a){var l=this.urls;if(l){if(a.WIDTH=e[0],a.HEIGHT=e[1],a[this.v13_?"CRS":"SRS"]=o.getCode(),"STYLES"in this.params_||(a.STYLES=""),1!=n)switch(this.serverType_){case d.a.GEOSERVER:var u=90*n+.5|0;"FORMAT_OPTIONS"in a?a.FORMAT_OPTIONS+=";dpi:"+u:a.FORMAT_OPTIONS="dpi:"+u;break;case d.a.MAPSERVER:a.MAP_RESOLUTION=90*n;break;case d.a.CARMENTA_SERVER:case d.a.QGIS:a.DPI=90*n;break;default:r.a.assert(!1,52)}var c=o.getAxisOrientation(),h=i;if(this.v13_&&"ne"==c.substr(0,2)){var p;p=i[0],h[0]=i[1],h[1]=p,p=i[2],h[2]=i[3],h[3]=p}a.BBOX=h.join(",");var _;if(1==l.length)_=l[0];else{_=l[s.a.modulo(f.a.hash(t),l.length)]}return g.a.appendParams(_,a)}},_.prototype.getTilePixelRatio=function(t){return this.hidpi_&&void 0!==this.serverType_?t:1},_.prototype.getKeyForParams_=function(){var t=0,e=[];for(var i in this.params_)e[t++]=i+"-"+this.params_[i];return e.join("/")},_.prototype.fixedTileUrlFunction=function(t,e,i){var r=this.getTileGrid();if(r||(r=this.getTileGridForProjection(i)),!(r.getResolutions().length<=t[0])){1==e||this.hidpi_&&void 0!==this.serverType_||(e=1);var s=r.getResolution(t[0]),l=r.getTileCoordExtent(t,this.tmpExtent_),u=c.a.toSize(r.getTileSize(t[0]),this.tmpSize),h=this.gutter_;0!==h&&(u=c.a.buffer(u,h,this.tmpSize),l=o.a.buffer(l,s*h,l)),1!=e&&(u=c.a.scale(u,e,this.tmpSize));var d={SERVICE:"WMS",VERSION:n.a.DEFAULT_WMS_VERSION,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return a.a.assign(d,this.params_),this.getRequestUrl_(t,u,l,e,i,d)}},_.prototype.updateParams=function(t){a.a.assign(this.params_,t),this.updateV13_(),this.setKey(this.getKeyForParams_())},_.prototype.updateV13_=function(){var t=this.params_.VERSION||n.a.DEFAULT_WMS_VERSION;this.v13_=p.a.compareVersions(t,"1.3")>=0},e.default=_},function(t,e,i){"use strict";var n={CARMENTA_SERVER:"carmentaserver",GEOSERVER:"geoserver",MAPSERVER:"mapserver",QGIS:"qgis"};e.a=n},function(t,e,i){"use strict";var n={};n.appendParams=function(t,e){var i=[];Object.keys(e).forEach(function(t){null!==e[t]&&void 0!==e[t]&&i.push(t+"="+encodeURIComponent(e[t]))});var n=i.join("&");return t=t.replace(/[?&]$/,""),(t=-1===t.indexOf("?")?t+"?":t+"&")+n},e.a=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(20),o=i(45),a=function(t){var e=t||{};o.a.call(this,e),this.type=r.a.IMAGE};n.a.inherits(a,o.a),a.prototype.getSource,e.default=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(356),o=i(21),a=i(9),s=i(3),l=i(4),u=i(1),c=i(11),h=i(357),d=function(t){var e=t.imageExtent,i=void 0!==t.crossOrigin?t.crossOrigin:null,n=void 0!==t.imageLoadFunction?t.imageLoadFunction:h.a.defaultImageLoadFunction;h.a.call(this,{attributions:t.attributions,logo:t.logo,projection:c.default.get(t.projection)}),this.image_=new r.a(e,void 0,1,t.url,i,n),this.imageSize_=t.imageSize?t.imageSize:null,s.a.listen(this.image_,l.a.CHANGE,this.handleImageChange,this)};n.a.inherits(d,h.a),d.prototype.getImageInternal=function(t,e,i,n){return u.a.intersects(t,this.image_.getExtent())?this.image_:null},d.prototype.handleImageChange=function(t){if(this.image_.getState()==o.a.LOADED){var e,i,n=this.image_.getExtent(),r=this.image_.getImage();this.imageSize_?(e=this.imageSize_[0],i=this.imageSize_[1]):(e=r.width,i=r.height);var s=u.a.getHeight(n)/i,l=Math.ceil(u.a.getWidth(n)/s);if(l!=e){var c=a.a.createCanvasContext2D(l,i),d=c.canvas;c.drawImage(r,0,0,e,i,0,0,d.width,d.height),this.image_.setImage(d)}}h.a.prototype.handleImageChange.call(this,t)},e.default=d},function(t,e,i){"use strict";var n=i(0),r=i(107),o=i(21),a=i(3),s=i(4),l=i(1),u=function(t,e,i,n,a,s){r.a.call(this,t,e,i,o.a.IDLE),this.src_=n,this.image_=new Image,null!==a&&(this.image_.crossOrigin=a),this.imageListenerKeys_=null,this.state=o.a.IDLE,this.imageLoadFunction_=s};n.a.inherits(u,r.a),u.prototype.getImage=function(){return this.image_},u.prototype.handleImageError_=function(){this.state=o.a.ERROR,this.unlistenImage_(),this.changed()},u.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=l.a.getHeight(this.extent)/this.image_.height),this.state=o.a.LOADED,this.unlistenImage_(),this.changed()},u.prototype.load=function(){this.state!=o.a.IDLE&&this.state!=o.a.ERROR||(this.state=o.a.LOADING,this.changed(),this.imageListenerKeys_=[a.a.listenOnce(this.image_,s.a.ERROR,this.handleImageError_,this),a.a.listenOnce(this.image_,s.a.LOAD,this.handleImageLoad_,this)],this.imageLoadFunction_(this,this.src_))},u.prototype.setImage=function(t){this.image_=t},u.prototype.unlistenImage_=function(){this.imageListenerKeys_.forEach(a.a.unlistenByKey),this.imageListenerKeys_=null},e.a=u},function(t,e,i){"use strict";var n=i(0),r=i(21),o=i(5),a=i(14),s=i(1),l=i(11),u=i(358),c=i(118),h=function(t){c.a.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,state:t.state}),this.resolutions_=void 0!==t.resolutions?t.resolutions:null,this.reprojectedImage_=null,this.reprojectedRevision_=0};n.a.inherits(h,c.a),h.prototype.getResolutions=function(){return this.resolutions_},h.prototype.findNearestResolution=function(t){if(this.resolutions_){var e=o.a.linearFindNearest(this.resolutions_,t,0);t=this.resolutions_[e]}return t},h.prototype.getImage=function(t,e,i,r){var o=this.getProjection();if(n.a.ENABLE_RASTER_REPROJECTION&&o&&r&&!l.default.equivalent(o,r)){if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&l.default.equivalent(this.reprojectedImage_.getProjection(),r)&&this.reprojectedImage_.getResolution()==e&&s.a.equals(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new u.a(o,r,t,e,i,function(t,e,i){return this.getImageInternal(t,e,i,o)}.bind(this)),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}return o&&(r=o),this.getImageInternal(t,e,i,r)},h.prototype.getImageInternal=function(t,e,i,n){},h.prototype.handleImageChange=function(t){var e=t.target;switch(e.getState()){case r.a.LOADING:this.dispatchEvent(new h.Event(h.EventType_.IMAGELOADSTART,e));break;case r.a.LOADED:this.dispatchEvent(new h.Event(h.EventType_.IMAGELOADEND,e));break;case r.a.ERROR:this.dispatchEvent(new h.Event(h.EventType_.IMAGELOADERROR,e))}},h.defaultImageLoadFunction=function(t,e){t.getImage().src=e},h.Event=function(t,e){a.a.call(this,t),this.image=e},n.a.inherits(h.Event,a.a),h.EventType_={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"},e.a=h},function(t,e,i){"use strict";var n=i(0),r=i(107),o=i(21),a=i(3),s=i(4),l=i(1),u=i(117),c=i(191),h=function(t,e,i,a,s,h){this.targetProj_=e,this.maxSourceExtent_=t.getExtent();var d=e.getExtent(),f=d?l.a.getIntersection(i,d):i,p=l.a.getCenter(f),g=u.a.calculateSourceResolution(t,e,p,a),_=n.a.DEFAULT_RASTER_REPROJECTION_ERROR_THRESHOLD;this.triangulation_=new c.a(t,e,f,this.maxSourceExtent_,g*_),this.targetResolution_=a,this.targetExtent_=i;var y=this.triangulation_.calculateSourceExtent();this.sourceImage_=h(y,g,s),this.sourcePixelRatio_=this.sourceImage_?this.sourceImage_.getPixelRatio():1,this.canvas_=null,this.sourceListenerKey_=null;var v=o.a.LOADED;this.sourceImage_&&(v=o.a.IDLE),r.a.call(this,i,a,this.sourcePixelRatio_,v)};n.a.inherits(h,r.a),h.prototype.disposeInternal=function(){this.state==o.a.LOADING&&this.unlistenSource_(),r.a.prototype.disposeInternal.call(this)},h.prototype.getImage=function(){return this.canvas_},h.prototype.getProjection=function(){return this.targetProj_},h.prototype.reproject_=function(){var t=this.sourceImage_.getState();if(t==o.a.LOADED){var e=l.a.getWidth(this.targetExtent_)/this.targetResolution_,i=l.a.getHeight(this.targetExtent_)/this.targetResolution_;this.canvas_=u.a.render(e,i,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0)}this.state=t,this.changed()},h.prototype.load=function(){if(this.state==o.a.IDLE){this.state=o.a.LOADING,this.changed();var t=this.sourceImage_.getState();t==o.a.LOADED||t==o.a.ERROR?this.reproject_():(this.sourceListenerKey_=a.a.listen(this.sourceImage_,s.a.CHANGE,function(t){var e=this.sourceImage_.getState();e!=o.a.LOADED&&e!=o.a.ERROR||(this.unlistenSource_(),this.reproject_())},this),this.sourceImage_.load())}},h.prototype.unlistenSource_=function(){a.a.unlistenByKey(this.sourceListenerKey_),this.sourceListenerKey_=null},e.a=h},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(65),o=i(7),a=i(1),s=i(85),l=i(181),u=i(19),c=i(8),h=i(66),d=i(156),f=i(86),p=i(67),g=i(87),_=i(25),y=i(43),v=i(28),m=i(51),E=i(2),T=i(11),S=function(t){var e=t||{};l.a.call(this),this.geometryName_=e.geometryName};n.a.inherits(S,l.a),S.readGeometry_=function(t,e){if(!t)return null;var i;if("number"===typeof t.x&&"number"===typeof t.y)i=c.a.POINT;else if(t.points)i=c.a.MULTI_POINT;else if(t.paths)i=1===t.paths.length?c.a.LINE_STRING:c.a.MULTI_LINE_STRING;else if(t.rings){var n=S.getGeometryLayout_(t),r=S.convertRings_(t.rings,n);t=E.a.assign({},t),1===r.length?(i=c.a.POLYGON,t.rings=r[0]):(i=c.a.MULTI_POLYGON,t.rings=r)}var o=S.GEOMETRY_READERS_[i];return s.a.transformWithOptions(o(t),!1,e)},S.convertRings_=function(t,e){var i,n,r=[],o=[],s=[];for(i=0,n=t.length;i<n;++i){r.length=0,v.a.coordinates(r,0,t[i],e.length);m.a.linearRingIsClockwise(r,0,r.length,e.length)?o.push([t[i]]):s.push(t[i])}for(;s.length;){var l=s.shift(),u=!1;for(i=o.length-1;i>=0;i--){var c=o[i][0];if(a.a.containsExtent(new d.a(c).getExtent(),new d.a(l).getExtent())){o[i].push(l),u=!0;break}}u||o.push([l.reverse()])}return o},S.readPointGeometry_=function(t){return void 0!==t.m&&void 0!==t.z?new _.default([t.x,t.y,t.z,t.m],u.a.XYZM):void 0!==t.z?new _.default([t.x,t.y,t.z],u.a.XYZ):void 0!==t.m?new _.default([t.x,t.y,t.m],u.a.XYM):new _.default([t.x,t.y])},S.readLineStringGeometry_=function(t){var e=S.getGeometryLayout_(t);return new h.a(t.paths[0],e)},S.readMultiLineStringGeometry_=function(t){var e=S.getGeometryLayout_(t);return new f.a(t.paths,e)},S.getGeometryLayout_=function(t){var e=u.a.XY;return!0===t.hasZ&&!0===t.hasM?e=u.a.XYZM:!0===t.hasZ?e=u.a.XYZ:!0===t.hasM&&(e=u.a.XYM),e},S.readMultiPointGeometry_=function(t){var e=S.getGeometryLayout_(t);return new p.a(t.points,e)},S.readMultiPolygonGeometry_=function(t){var e=S.getGeometryLayout_(t);return new g.a(t.rings,e)},S.readPolygonGeometry_=function(t){var e=S.getGeometryLayout_(t);return new y.a(t.rings,e)},S.writePointGeometry_=function(t,e){var i,n=t.getCoordinates(),r=t.getLayout();return r===u.a.XYZ?i={x:n[0],y:n[1],z:n[2]}:r===u.a.XYM?i={x:n[0],y:n[1],m:n[2]}:r===u.a.XYZM?i={x:n[0],y:n[1],z:n[2],m:n[3]}:r===u.a.XY?i={x:n[0],y:n[1]}:o.a.assert(!1,34),i},S.getHasZM_=function(t){var e=t.getLayout();return{hasZ:e===u.a.XYZ||e===u.a.XYZM,hasM:e===u.a.XYM||e===u.a.XYZM}},S.writeLineStringGeometry_=function(t,e){var i=S.getHasZM_(t);return{hasZ:i.hasZ,hasM:i.hasM,paths:[t.getCoordinates()]}},S.writePolygonGeometry_=function(t,e){var i=S.getHasZM_(t);return{hasZ:i.hasZ,hasM:i.hasM,rings:t.getCoordinates(!1)}},S.writeMultiLineStringGeometry_=function(t,e){var i=S.getHasZM_(t);return{hasZ:i.hasZ,hasM:i.hasM,paths:t.getCoordinates()}},S.writeMultiPointGeometry_=function(t,e){var i=S.getHasZM_(t);return{hasZ:i.hasZ,hasM:i.hasM,points:t.getCoordinates()}},S.writeMultiPolygonGeometry_=function(t,e){for(var i=S.getHasZM_(t),n=t.getCoordinates(!1),r=[],o=0;o<n.length;o++)for(var a=n[o].length-1;a>=0;a--)r.push(n[o][a]);return{hasZ:i.hasZ,hasM:i.hasM,rings:r}},S.GEOMETRY_READERS_={},S.GEOMETRY_READERS_[c.a.POINT]=S.readPointGeometry_,S.GEOMETRY_READERS_[c.a.LINE_STRING]=S.readLineStringGeometry_,S.GEOMETRY_READERS_[c.a.POLYGON]=S.readPolygonGeometry_,S.GEOMETRY_READERS_[c.a.MULTI_POINT]=S.readMultiPointGeometry_,S.GEOMETRY_READERS_[c.a.MULTI_LINE_STRING]=S.readMultiLineStringGeometry_,S.GEOMETRY_READERS_[c.a.MULTI_POLYGON]=S.readMultiPolygonGeometry_,S.GEOMETRY_WRITERS_={},S.GEOMETRY_WRITERS_[c.a.POINT]=S.writePointGeometry_,S.GEOMETRY_WRITERS_[c.a.LINE_STRING]=S.writeLineStringGeometry_,S.GEOMETRY_WRITERS_[c.a.POLYGON]=S.writePolygonGeometry_,S.GEOMETRY_WRITERS_[c.a.MULTI_POINT]=S.writeMultiPointGeometry_,S.GEOMETRY_WRITERS_[c.a.MULTI_LINE_STRING]=S.writeMultiLineStringGeometry_,S.GEOMETRY_WRITERS_[c.a.MULTI_POLYGON]=S.writeMultiPolygonGeometry_,S.prototype.readFeature,S.prototype.readFeatures,S.prototype.readFeatureFromObject=function(t,e){var i=t,n=S.readGeometry_(i.geometry,e),o=new r.a;return this.geometryName_&&o.setGeometryName(this.geometryName_),o.setGeometry(n),e&&e.idField&&i.attributes[e.idField]&&o.setId(i.attributes[e.idField]),i.attributes&&o.setProperties(i.attributes),o},S.prototype.readFeaturesFromObject=function(t,e){var i=t,n=e||{};if(i.features){var r,o,a=t,s=[],l=a.features;for(n.idField=t.objectIdFieldName,r=0,o=l.length;r<o;++r)s.push(this.readFeatureFromObject(l[r],n));return s}return[this.readFeatureFromObject(t,n)]},S.prototype.readGeometry,S.prototype.readGeometryFromObject=function(t,e){return S.readGeometry_(t,e)},S.prototype.readProjection,S.prototype.readProjectionFromObject=function(t){var e=t;if(e.spatialReference&&e.spatialReference.wkid){var i=e.spatialReference.wkid;return T.default.get("EPSG:"+i)}return null},S.writeGeometry_=function(t,e){return(0,S.GEOMETRY_WRITERS_[t.getType()])(s.a.transformWithOptions(t,!0,e),e)},S.prototype.writeGeometry,S.prototype.writeGeometryObject=function(t,e){return S.writeGeometry_(t,this.adaptOptions(e))},S.prototype.writeFeature,S.prototype.writeFeatureObject=function(t,e){e=this.adaptOptions(e);var i={},n=t.getGeometry();n&&(i.geometry=S.writeGeometry_(n,e),e&&e.featureProjection&&(i.geometry.spatialReference={wkid:T.default.get(e.featureProjection).getCode().split(":").pop()}));var r=t.getProperties();return delete r[t.getGeometryName()],E.a.isEmpty(r)?i.attributes={}:i.attributes=r,i},S.prototype.writeFeatures,S.prototype.writeFeaturesObject=function(t,e){e=this.adaptOptions(e);var i,n,r=[];for(i=0,n=t.length;i<n;++i)r.push(this.writeFeatureObject(t[i],e));return{features:r}},e.default=S},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(65),o=i(42),a=i(16),s=i(35),l=i(3),u=i(14),c=i(30),h=i(1),d=i(12),f=i(361),p=i(8),g=i(66),_=i(86),y=i(67),v=i(87),m=i(25),E=i(43),T=i(362),S=i(46),x=i(162),C=i(56),R=i(57),b=i(38),I=function t(e){S.a.call(this,{handleDownEvent:t.handleDownEvent_,handleEvent:t.handleEvent,handleUpEvent:t.handleUpEvent_}),this.shouldHandle_=!1,this.downPx_=null,this.freehand_=!1,this.source_=e.source?e.source:null,this.features_=e.features?e.features:null,this.snapTolerance_=e.snapTolerance?e.snapTolerance:12,this.type_=e.type,this.mode_=t.getMode_(this.type_),this.stopClick_=!!e.stopClick,this.minPoints_=e.minPoints?e.minPoints:this.mode_===t.Mode_.POLYGON?3:2,this.maxPoints_=e.maxPoints?e.maxPoints:1/0,this.finishCondition_=e.finishCondition?e.finishCondition:d.a.TRUE;var i=e.geometryFunction;if(!i)if(this.type_===p.a.CIRCLE)i=function(t,e){var i=e||new f.a([NaN,NaN]),n=s.default.squaredDistance(t[0],t[1]);return i.setCenterAndRadius(t[0],Math.sqrt(n)),i};else{var n,r=this.mode_;r===t.Mode_.POINT?n=m.default:r===t.Mode_.LINE_STRING?n=g.a:r===t.Mode_.POLYGON&&(n=E.a),i=function(e,i){var o=i;return o?r===t.Mode_.POLYGON?e[0].length?o.setCoordinates([e[0].concat([e[0][0]])]):o.setCoordinates([]):o.setCoordinates(e):o=new n(e),o}}this.geometryFunction_=i,this.finishCoordinate_=null,this.sketchFeature_=null,this.sketchPoint_=null,this.sketchCoords_=null,this.sketchLine_=null,this.sketchLineCoords_=null,this.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,this.overlay_=new C.default({source:new R.default({useSpatialIndex:!1,wrapX:!!e.wrapX&&e.wrapX}),style:e.style?e.style:t.getDefaultStyleFunction()}),this.geometryName_=e.geometryName,this.condition_=e.condition?e.condition:c.a.noModifierKeys,this.freehandCondition_,e.freehand?this.freehandCondition_=c.a.always:this.freehandCondition_=e.freehandCondition?e.freehandCondition:c.a.shiftKeyOnly,l.a.listen(this,a.a.getChangeEventType(x.a.ACTIVE),this.updateState_,this)};n.a.inherits(I,S.a),I.getDefaultStyleFunction=function(){var t=b.default.createDefaultEditing();return function(e,i){return t[e.getGeometry().getType()]}},I.prototype.setMap=function(t){S.a.prototype.setMap.call(this,t),this.updateState_()},I.handleEvent=function(t){this.freehand_=this.mode_!==I.Mode_.POINT&&this.freehandCondition_(t);var e=!0;return this.freehand_&&t.type===o.a.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(t),e=!1):this.freehand_&&t.type===o.a.POINTERDOWN?e=!1:t.type===o.a.POINTERMOVE?e=this.handlePointerMove_(t):t.type===o.a.DBLCLICK&&(e=!1),S.a.handleEvent.call(this,t)&&e},I.handleDownEvent_=function(t){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=t.pixel,this.finishCoordinate_||this.startDrawing_(t),!0):!!this.condition_(t)&&(this.downPx_=t.pixel,!0)},I.handleUpEvent_=function(t){var e=!0;this.handlePointerMove_(t);var i=this.mode_===I.Mode_.CIRCLE;return this.shouldHandle_?(this.finishCoordinate_?this.freehand_||i?this.finishDrawing():this.atFinish_(t)?this.finishCondition_(t)&&this.finishDrawing():this.addToDrawing_(t):(this.startDrawing_(t),this.mode_===I.Mode_.POINT&&this.finishDrawing()),e=!1):this.freehand_&&(this.finishCoordinate_=null,this.abortDrawing_()),!e&&this.stopClick_&&t.stopPropagation(),e},I.prototype.handlePointerMove_=function(t){if(this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var e=this.downPx_,i=t.pixel,n=e[0]-i[0],r=e[1]-i[1],o=n*n+r*r;this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_}return this.finishCoordinate_?this.modifyDrawing_(t):this.createOrUpdateSketchPoint_(t),!0},I.prototype.atFinish_=function(t){var e=!1;if(this.sketchFeature_){var i=!1,n=[this.finishCoordinate_];if(this.mode_===I.Mode_.LINE_STRING?i=this.sketchCoords_.length>this.minPoints_:this.mode_===I.Mode_.POLYGON&&(i=this.sketchCoords_[0].length>this.minPoints_,n=[this.sketchCoords_[0][0],this.sketchCoords_[0][this.sketchCoords_[0].length-2]]),i)for(var r=t.map,o=0,a=n.length;o<a;o++){var s=n[o],l=r.getPixelFromCoordinate(s),u=t.pixel,c=u[0]-l[0],h=u[1]-l[1],d=this.freehand_?1:this.snapTolerance_;if(e=Math.sqrt(c*c+h*h)<=d){this.finishCoordinate_=s;break}}}return e},I.prototype.createOrUpdateSketchPoint_=function(t){var e=t.coordinate.slice();if(this.sketchPoint_){this.sketchPoint_.getGeometry().setCoordinates(e)}else this.sketchPoint_=new r.a(new m.default(e)),this.updateSketchFeatures_()},I.prototype.startDrawing_=function(t){var e=t.coordinate;this.finishCoordinate_=e,this.mode_===I.Mode_.POINT?this.sketchCoords_=e.slice():this.mode_===I.Mode_.POLYGON?(this.sketchCoords_=[[e.slice(),e.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):(this.sketchCoords_=[e.slice(),e.slice()],this.mode_===I.Mode_.CIRCLE&&(this.sketchLineCoords_=this.sketchCoords_)),this.sketchLineCoords_&&(this.sketchLine_=new r.a(new g.a(this.sketchLineCoords_)));var i=this.geometryFunction_(this.sketchCoords_);this.sketchFeature_=new r.a,this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(i),this.updateSketchFeatures_(),this.dispatchEvent(new I.Event(T.a.DRAWSTART,this.sketchFeature_))},I.prototype.modifyDrawing_=function(t){var e,i,n=t.coordinate,o=this.sketchFeature_.getGeometry();if(this.mode_===I.Mode_.POINT?i=this.sketchCoords_:this.mode_===I.Mode_.POLYGON?(e=this.sketchCoords_[0],i=e[e.length-1],this.atFinish_(t)&&(n=this.finishCoordinate_.slice())):(e=this.sketchCoords_,i=e[e.length-1]),i[0]=n[0],i[1]=n[1],this.geometryFunction_(this.sketchCoords_,o),this.sketchPoint_){this.sketchPoint_.getGeometry().setCoordinates(n)}var a;if(o instanceof E.a&&this.mode_!==I.Mode_.POLYGON){this.sketchLine_||(this.sketchLine_=new r.a(new g.a(null)));var s=o.getLinearRing(0);a=this.sketchLine_.getGeometry(),a.setFlatCoordinates(s.getLayout(),s.getFlatCoordinates())}else this.sketchLineCoords_&&(a=this.sketchLine_.getGeometry(),a.setCoordinates(this.sketchLineCoords_));this.updateSketchFeatures_()},I.prototype.addToDrawing_=function(t){var e,i,n=t.coordinate,r=this.sketchFeature_.getGeometry();this.mode_===I.Mode_.LINE_STRING?(this.finishCoordinate_=n.slice(),i=this.sketchCoords_,i.length>=this.maxPoints_&&(this.freehand_?i.pop():e=!0),i.push(n.slice()),this.geometryFunction_(i,r)):this.mode_===I.Mode_.POLYGON&&(i=this.sketchCoords_[0],i.length>=this.maxPoints_&&(this.freehand_?i.pop():e=!0),i.push(n.slice()),e&&(this.finishCoordinate_=i[0]),this.geometryFunction_(this.sketchCoords_,r)),this.updateSketchFeatures_(),e&&this.finishDrawing()},I.prototype.removeLastPoint=function(){if(this.sketchFeature_){var t,e,i=this.sketchFeature_.getGeometry();this.mode_===I.Mode_.LINE_STRING?(t=this.sketchCoords_,t.splice(-2,1),this.geometryFunction_(t,i),t.length>=2&&(this.finishCoordinate_=t[t.length-2].slice())):this.mode_===I.Mode_.POLYGON&&(t=this.sketchCoords_[0],t.splice(-2,1),e=this.sketchLine_.getGeometry(),e.setCoordinates(t),this.geometryFunction_(this.sketchCoords_,i)),0===t.length&&(this.finishCoordinate_=null),this.updateSketchFeatures_()}},I.prototype.finishDrawing=function(){var t=this.abortDrawing_(),e=this.sketchCoords_,i=t.getGeometry();this.mode_===I.Mode_.LINE_STRING?(e.pop(),this.geometryFunction_(e,i)):this.mode_===I.Mode_.POLYGON&&(e[0].pop(),this.geometryFunction_(e,i),e=i.getCoordinates()),this.type_===p.a.MULTI_POINT?t.setGeometry(new y.a([e])):this.type_===p.a.MULTI_LINE_STRING?t.setGeometry(new _.a([e])):this.type_===p.a.MULTI_POLYGON&&t.setGeometry(new v.a([e])),this.dispatchEvent(new I.Event(T.a.DRAWEND,t)),this.features_&&this.features_.push(t),this.source_&&this.source_.addFeature(t)},I.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var t=this.sketchFeature_;return t&&(this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0)),t},I.prototype.extend=function(t){var e=t.getGeometry(),i=e;this.sketchFeature_=t,this.sketchCoords_=i.getCoordinates();var n=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=n.slice(),this.sketchCoords_.push(n.slice()),this.updateSketchFeatures_(),this.dispatchEvent(new I.Event(T.a.DRAWSTART,this.sketchFeature_))},I.prototype.shouldStopEvent=d.a.FALSE,I.prototype.updateSketchFeatures_=function(){var t=[];this.sketchFeature_&&t.push(this.sketchFeature_),this.sketchLine_&&t.push(this.sketchLine_),this.sketchPoint_&&t.push(this.sketchPoint_);var e=this.overlay_.getSource();e.clear(!0),e.addFeatures(t)},I.prototype.updateState_=function(){var t=this.getMap(),e=this.getActive();t&&e||this.abortDrawing_(),this.overlay_.setMap(e?t:null)},I.createRegularPolygon=function(t,e){return function(i,n){var r=i[0],o=i[1],a=Math.sqrt(s.default.squaredDistance(r,o)),l=n||E.a.fromCircle(new f.a(r),t),u=e||Math.atan((o[1]-r[1])/(o[0]-r[0]));return E.a.makeRegular(l,r,a,u),l}},I.createBox=function(){return function(t,e){var i=h.a.boundingExtent(t),n=e||new E.a(null);return n.setCoordinates([[h.a.getBottomLeft(i),h.a.getBottomRight(i),h.a.getTopRight(i),h.a.getTopLeft(i),h.a.getBottomLeft(i)]]),n}},I.getMode_=function(t){var e;return t===p.a.POINT||t===p.a.MULTI_POINT?e=I.Mode_.POINT:t===p.a.LINE_STRING||t===p.a.MULTI_LINE_STRING?e=I.Mode_.LINE_STRING:t===p.a.POLYGON||t===p.a.MULTI_POLYGON?e=I.Mode_.POLYGON:t===p.a.CIRCLE&&(e=I.Mode_.CIRCLE),e},I.Mode_={POINT:"Point",LINE_STRING:"LineString",POLYGON:"Polygon",CIRCLE:"Circle"},I.Event=function(t,e){u.a.call(this,t),this.feature=e},n.a.inherits(I.Event,u.a),e.default=I},function(t,e,i){"use strict";var n=i(0),r=i(1),o=i(19),a=i(8),s=i(22),l=i(28),u=function(t,e,i){s.a.call(this);var n=e||0;this.setCenterAndRadius(t,n,i)};n.a.inherits(u,s.a),u.prototype.clone=function(){var t=new u(null);return t.setFlatCoordinates(this.layout,this.flatCoordinates.slice()),t},u.prototype.closestPointXY=function(t,e,i,n){var r=this.flatCoordinates,o=t-r[0],a=e-r[1],s=o*o+a*a;if(s<n){var l;if(0===s)for(l=0;l<this.stride;++l)i[l]=r[l];else{var u=this.getRadius()/Math.sqrt(s);for(i[0]=r[0]+u*o,i[1]=r[1]+u*a,l=2;l<this.stride;++l)i[l]=r[l]}return i.length=this.stride,s}return n},u.prototype.containsXY=function(t,e){var i=this.flatCoordinates,n=t-i[0],r=e-i[1];return n*n+r*r<=this.getRadiusSquared_()},u.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},u.prototype.computeExtent=function(t){var e=this.flatCoordinates,i=e[this.stride]-e[0];return r.a.createOrUpdate(e[0]-i,e[1]-i,e[0]+i,e[1]+i,t)},u.prototype.getRadius=function(){return Math.sqrt(this.getRadiusSquared_())},u.prototype.getRadiusSquared_=function(){var t=this.flatCoordinates[this.stride]-this.flatCoordinates[0],e=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return t*t+e*e},u.prototype.getType=function(){return a.a.CIRCLE},u.prototype.intersectsExtent=function(t){var e=this.getExtent();if(r.a.intersects(t,e)){var i=this.getCenter();return t[0]<=i[0]&&t[2]>=i[0]||(t[1]<=i[1]&&t[3]>=i[1]||r.a.forEachCorner(t,this.intersectsCoordinate,this))}return!1},u.prototype.setCenter=function(t){var e=this.stride,i=this.flatCoordinates[e]-this.flatCoordinates[0],n=t.slice();n[e]=n[0]+i;var r;for(r=1;r<e;++r)n[e+r]=t[r];this.setFlatCoordinates(this.layout,n)},u.prototype.setCenterAndRadius=function(t,e,i){if(t){this.setLayout(i,t,0),this.flatCoordinates||(this.flatCoordinates=[]);var n=this.flatCoordinates,r=l.a.coordinate(n,0,t,this.stride);n[r++]=n[0]+e;var a,s;for(a=1,s=this.stride;a<s;++a)n[r++]=n[a];n.length=r,this.changed()}else this.setFlatCoordinates(o.a.XY,null)},u.prototype.getCoordinates=function(){},u.prototype.setCoordinates=function(t,e){},u.prototype.setFlatCoordinates=function(t,e){this.setFlatCoordinatesInternal(t,e),this.changed()},u.prototype.setRadius=function(t){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+t,this.changed()},u.prototype.transform,e.a=u},function(t,e,i){"use strict";var n={DRAWSTART:"drawstart",DRAWEND:"drawend"};e.a=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(48),o=i(49),a=i(65),s=i(42),l=i(99),u=i(5),c=i(35),h=i(3),d=i(14),f=i(4),p=i(30),g=i(1),_=i(8),y=i(25),v=i(364),m=i(46),E=i(56),T=i(57),S=i(195),x=i(112),C=i(38),R=function t(e){m.a.call(this,{handleDownEvent:t.handleDownEvent_,handleDragEvent:t.handleDragEvent_,handleEvent:t.handleEvent,handleUpEvent:t.handleUpEvent_}),this.condition_=e.condition?e.condition:p.a.primaryAction,this.defaultDeleteCondition_=function(t){return p.a.altKeyOnly(t)&&p.a.singleClick(t)},this.deleteCondition_=e.deleteCondition?e.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:p.a.always,this.vertexFeature_=null,this.vertexSegments_=null,this.lastPixel_=[0,0],this.ignoreNextSingleClick_=!1,this.modified_=!1,this.rBush_=new x.a,this.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,this.snappedToVertex_=!1,this.changingFeature_=!1,this.dragSegments_=[],this.overlay_=new E.default({source:new T.default({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.style?e.style:t.getDefaultStyleFunction(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.SEGMENT_WRITERS_={Point:this.writePointGeometry_,LineString:this.writeLineStringGeometry_,LinearRing:this.writeLineStringGeometry_,Polygon:this.writePolygonGeometry_,MultiPoint:this.writeMultiPointGeometry_,MultiLineString:this.writeMultiLineStringGeometry_,MultiPolygon:this.writeMultiPolygonGeometry_,Circle:this.writeCircleGeometry_,GeometryCollection:this.writeGeometryCollectionGeometry_},this.source_=null;var i;if(e.source?(this.source_=e.source,i=new r.a(this.source_.getFeatures()),h.a.listen(this.source_,S.a.ADDFEATURE,this.handleSourceAdd_,this),h.a.listen(this.source_,S.a.REMOVEFEATURE,this.handleSourceRemove_,this)):i=e.features,!i)throw new Error("The modify interaction requires features or a source");this.features_=i,this.features_.forEach(this.addFeature_,this),h.a.listen(this.features_,o.a.ADD,this.handleFeatureAdd_,this),h.a.listen(this.features_,o.a.REMOVE,this.handleFeatureRemove_,this),this.lastPointerEvent_=null};n.a.inherits(R,m.a),R.MODIFY_SEGMENT_CIRCLE_CENTER_INDEX=0,R.MODIFY_SEGMENT_CIRCLE_CIRCUMFERENCE_INDEX=1,R.prototype.addFeature_=function(t){var e=t.getGeometry();e&&e.getType()in this.SEGMENT_WRITERS_&&this.SEGMENT_WRITERS_[e.getType()].call(this,t,e);var i=this.getMap();i&&i.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,i),h.a.listen(t,f.a.CHANGE,this.handleFeatureChange_,this)},R.prototype.willModifyFeatures_=function(t){this.modified_||(this.modified_=!0,this.dispatchEvent(new R.Event(v.a.MODIFYSTART,this.features_,t)))},R.prototype.removeFeature_=function(t){this.removeFeatureSegmentData_(t),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),h.a.unlisten(t,f.a.CHANGE,this.handleFeatureChange_,this)},R.prototype.removeFeatureSegmentData_=function(t){var e=this.rBush_,i=[];e.forEach(function(e){t===e.feature&&i.push(e)});for(var n=i.length-1;n>=0;--n)e.remove(i[n])},R.prototype.setActive=function(t){this.vertexFeature_&&!t&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),m.a.prototype.setActive.call(this,t)},R.prototype.setMap=function(t){this.overlay_.setMap(t),m.a.prototype.setMap.call(this,t)},R.prototype.handleSourceAdd_=function(t){t.feature&&this.features_.push(t.feature)},R.prototype.handleSourceRemove_=function(t){t.feature&&this.features_.remove(t.feature)},R.prototype.handleFeatureAdd_=function(t){this.addFeature_(t.element)},R.prototype.handleFeatureChange_=function(t){if(!this.changingFeature_){var e=t.target;this.removeFeature_(e),this.addFeature_(e)}},R.prototype.handleFeatureRemove_=function(t){var e=t.element;this.removeFeature_(e)},R.prototype.writePointGeometry_=function(t,e){var i=e.getCoordinates(),n={feature:t,geometry:e,segment:[i,i]};this.rBush_.insert(e.getExtent(),n)},R.prototype.writeMultiPointGeometry_=function(t,e){var i,n,r,o,a=e.getCoordinates();for(n=0,r=a.length;n<r;++n)i=a[n],o={feature:t,geometry:e,depth:[n],index:n,segment:[i,i]},this.rBush_.insert(e.getExtent(),o)},R.prototype.writeLineStringGeometry_=function(t,e){var i,n,r,o,a=e.getCoordinates();for(i=0,n=a.length-1;i<n;++i)r=a.slice(i,i+2),o={feature:t,geometry:e,index:i,segment:r},this.rBush_.insert(g.a.boundingExtent(r),o)},R.prototype.writeMultiLineStringGeometry_=function(t,e){var i,n,r,o,a,s,l,u=e.getCoordinates();for(o=0,a=u.length;o<a;++o)for(i=u[o],n=0,r=i.length-1;n<r;++n)s=i.slice(n,n+2),l={feature:t,geometry:e,depth:[o],index:n,segment:s},this.rBush_.insert(g.a.boundingExtent(s),l)},R.prototype.writePolygonGeometry_=function(t,e){var i,n,r,o,a,s,l,u=e.getCoordinates();for(o=0,a=u.length;o<a;++o)for(i=u[o],n=0,r=i.length-1;n<r;++n)s=i.slice(n,n+2),l={feature:t,geometry:e,depth:[o],index:n,segment:s},this.rBush_.insert(g.a.boundingExtent(s),l)},R.prototype.writeMultiPolygonGeometry_=function(t,e){var i,n,r,o,a,s,l,u,c,h,d=e.getCoordinates();for(s=0,l=d.length;s<l;++s)for(u=d[s],o=0,a=u.length;o<a;++o)for(i=u[o],n=0,r=i.length-1;n<r;++n)c=i.slice(n,n+2),h={feature:t,geometry:e,depth:[o,s],index:n,segment:c},this.rBush_.insert(g.a.boundingExtent(c),h)},R.prototype.writeCircleGeometry_=function(t,e){var i=e.getCenter(),n={feature:t,geometry:e,index:R.MODIFY_SEGMENT_CIRCLE_CENTER_INDEX,segment:[i,i]},r={feature:t,geometry:e,index:R.MODIFY_SEGMENT_CIRCLE_CIRCUMFERENCE_INDEX,segment:[i,i]},o=[n,r];n.featureSegments=r.featureSegments=o,this.rBush_.insert(g.a.createOrUpdateFromCoordinate(i),n),this.rBush_.insert(e.getExtent(),r)},R.prototype.writeGeometryCollectionGeometry_=function(t,e){var i,n=e.getGeometriesArray();for(i=0;i<n.length;++i)this.SEGMENT_WRITERS_[n[i].getType()].call(this,t,n[i])},R.prototype.createOrUpdateVertexFeature_=function(t){var e=this.vertexFeature_;if(e){e.getGeometry().setCoordinates(t)}else e=new a.a(new y.default(t)),this.vertexFeature_=e,this.overlay_.getSource().addFeature(e);return e},R.compareIndexes_=function(t,e){return t.index-e.index},R.handleDownEvent_=function(t){if(!this.condition_(t))return!1;this.handlePointerAtPixel_(t.pixel,t.map);var e=t.map.getCoordinateFromPixel(t.pixel);this.dragSegments_.length=0,this.modified_=!1;var i=this.vertexFeature_;if(i){var r=[],o=i.getGeometry(),a=o.getCoordinates(),s=g.a.boundingExtent([a]),l=this.rBush_.getInExtent(s),u={};l.sort(R.compareIndexes_);for(var h=0,d=l.length;h<d;++h){var f=l[h],p=f.segment,y=n.a.getUid(f.feature),v=f.depth;if(v&&(y+="-"+v.join("-")),u[y]||(u[y]=new Array(2)),f.geometry.getType()===_.a.CIRCLE&&f.index===R.MODIFY_SEGMENT_CIRCLE_CIRCUMFERENCE_INDEX){var m=R.closestOnSegmentData_(e,f);c.default.equals(m,a)&&!u[y][0]&&(this.dragSegments_.push([f,0]),u[y][0]=f)}else if(c.default.equals(p[0],a)&&!u[y][0])this.dragSegments_.push([f,0]),u[y][0]=f;else if(c.default.equals(p[1],a)&&!u[y][1]){if((f.geometry.getType()===_.a.LINE_STRING||f.geometry.getType()===_.a.MULTI_LINE_STRING)&&u[y][0]&&0===u[y][0].index)continue;this.dragSegments_.push([f,1]),u[y][1]=f}else this.insertVertexCondition_(t)&&n.a.getUid(p)in this.vertexSegments_&&!u[y][0]&&!u[y][1]&&r.push([f,a])}r.length&&this.willModifyFeatures_(t);for(var E=r.length-1;E>=0;--E)this.insertVertex_.apply(this,r[E])}return!!this.vertexFeature_},R.handleDragEvent_=function(t){this.ignoreNextSingleClick_=!1,this.willModifyFeatures_(t);for(var e=t.coordinate,i=0,n=this.dragSegments_.length;i<n;++i){for(var r,o=this.dragSegments_[i],a=o[0],s=a.depth,l=a.geometry,u=a.segment,h=o[1];e.length<l.getStride();)e.push(u[h][e.length]);switch(l.getType()){case _.a.POINT:r=e,u[0]=u[1]=e;break;case _.a.MULTI_POINT:r=l.getCoordinates(),r[a.index]=e,u[0]=u[1]=e;break;case _.a.LINE_STRING:r=l.getCoordinates(),r[a.index+h]=e,u[h]=e;break;case _.a.MULTI_LINE_STRING:case _.a.POLYGON:r=l.getCoordinates(),r[s[0]][a.index+h]=e,u[h]=e;break;case _.a.MULTI_POLYGON:r=l.getCoordinates(),r[s[1]][s[0]][a.index+h]=e,u[h]=e;break;case _.a.CIRCLE:u[0]=u[1]=e,a.index===R.MODIFY_SEGMENT_CIRCLE_CENTER_INDEX?(this.changingFeature_=!0,l.setCenter(e),this.changingFeature_=!1):(this.changingFeature_=!0,l.setRadius(c.default.distance(l.getCenter(),e)),this.changingFeature_=!1)}r&&this.setGeometryCoordinates_(l,r)}this.createOrUpdateVertexFeature_(e)},R.handleUpEvent_=function(t){for(var e,i,n=this.dragSegments_.length-1;n>=0;--n)if(e=this.dragSegments_[n][0],i=e.geometry,i.getType()===_.a.CIRCLE){var r=i.getCenter(),o=e.featureSegments[0],a=e.featureSegments[1];o.segment[0]=o.segment[1]=r,a.segment[0]=a.segment[1]=r,this.rBush_.update(g.a.createOrUpdateFromCoordinate(r),o),this.rBush_.update(i.getExtent(),a)}else this.rBush_.update(g.a.boundingExtent(e.segment),e);return this.modified_&&(this.dispatchEvent(new R.Event(v.a.MODIFYEND,this.features_,t)),this.modified_=!1),!1},R.handleEvent=function(t){if(!(t instanceof l.a))return!0;this.lastPointerEvent_=t;var e;return t.map.getView().getInteracting()||t.type!=s.a.POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(t),this.vertexFeature_&&this.deleteCondition_(t)&&(e=!(t.type!=s.a.SINGLECLICK||!this.ignoreNextSingleClick_)||this.removePoint()),t.type==s.a.SINGLECLICK&&(this.ignoreNextSingleClick_=!1),m.a.handleEvent.call(this,t)&&!e},R.prototype.handlePointerMove_=function(t){this.lastPixel_=t.pixel,this.handlePointerAtPixel_(t.pixel,t.map)},R.prototype.handlePointerAtPixel_=function(t,e){var i=e.getCoordinateFromPixel(t),r=function(t,e){return R.pointDistanceToSegmentDataSquared_(i,t)-R.pointDistanceToSegmentDataSquared_(i,e)},o=g.a.buffer(g.a.createOrUpdateFromCoordinate(i),e.getView().getResolution()*this.pixelTolerance_),a=this.rBush_,s=a.getInExtent(o);if(s.length>0){s.sort(r);var l=s[0],u=l.segment,h=R.closestOnSegmentData_(i,l),d=e.getPixelFromCoordinate(h),f=c.default.distance(t,d);if(f<=this.pixelTolerance_){var p={};if(l.geometry.getType()===_.a.CIRCLE&&l.index===R.MODIFY_SEGMENT_CIRCLE_CIRCUMFERENCE_INDEX)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(h);else{var y=e.getPixelFromCoordinate(u[0]),v=e.getPixelFromCoordinate(u[1]),m=c.default.squaredDistance(d,y),E=c.default.squaredDistance(d,v);f=Math.sqrt(Math.min(m,E)),this.snappedToVertex_=f<=this.pixelTolerance_,this.snappedToVertex_&&(h=m>E?u[1]:u[0]),this.createOrUpdateVertexFeature_(h);for(var T,S=1,x=s.length;S<x&&(T=s[S].segment,c.default.equals(u[0],T[0])&&c.default.equals(u[1],T[1])||c.default.equals(u[0],T[1])&&c.default.equals(u[1],T[0]));++S)p[n.a.getUid(T)]=!0}return p[n.a.getUid(u)]=!0,void(this.vertexSegments_=p)}}this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null)},R.pointDistanceToSegmentDataSquared_=function(t,e){var i=e.geometry;if(i.getType()===_.a.CIRCLE){var n=i;if(e.index===R.MODIFY_SEGMENT_CIRCLE_CIRCUMFERENCE_INDEX){var r=c.default.squaredDistance(n.getCenter(),t),o=Math.sqrt(r)-n.getRadius();return o*o}}return c.default.squaredDistanceToSegment(t,e.segment)},R.closestOnSegmentData_=function(t,e){var i=e.geometry;return i.getType()===_.a.CIRCLE&&e.index===R.MODIFY_SEGMENT_CIRCLE_CIRCUMFERENCE_INDEX?i.getClosestPoint(t):c.default.closestOnSegment(t,e.segment)},R.prototype.insertVertex_=function(t,e){for(var i,n=t.segment,r=t.feature,o=t.geometry,a=t.depth,s=t.index;e.length<o.getStride();)e.push(0);switch(o.getType()){case _.a.MULTI_LINE_STRING:case _.a.POLYGON:i=o.getCoordinates(),i[a[0]].splice(s+1,0,e);break;case _.a.MULTI_POLYGON:i=o.getCoordinates(),i[a[1]][a[0]].splice(s+1,0,e);break;case _.a.LINE_STRING:i=o.getCoordinates(),i.splice(s+1,0,e);break;default:return}this.setGeometryCoordinates_(o,i);var l=this.rBush_;l.remove(t),this.updateSegmentIndices_(o,s,a,1);var u={segment:[n[0],e],feature:r,geometry:o,depth:a,index:s};l.insert(g.a.boundingExtent(u.segment),u),this.dragSegments_.push([u,1]);var c={segment:[e,n[1]],feature:r,geometry:o,depth:a,index:s+1};l.insert(g.a.boundingExtent(c.segment),c),this.dragSegments_.push([c,0]),this.ignoreNextSingleClick_=!0},R.prototype.removePoint=function(){if(this.lastPointerEvent_&&this.lastPointerEvent_.type!=s.a.POINTERDRAG){var t=this.lastPointerEvent_;return this.willModifyFeatures_(t),this.removeVertex_(),this.dispatchEvent(new R.Event(v.a.MODIFYEND,this.features_,t)),this.modified_=!1,!0}return!1},R.prototype.removeVertex_=function(){var t,e,i,r,o,a,s,l,u,c,h,d=this.dragSegments_,f={},p=!1;for(o=d.length-1;o>=0;--o)i=d[o],c=i[0],h=n.a.getUid(c.feature),c.depth&&(h+="-"+c.depth.join("-")),h in f||(f[h]={}),0===i[1]?(f[h].right=c,f[h].index=c.index):1==i[1]&&(f[h].left=c,f[h].index=c.index+1);for(h in f){switch(u=f[h].right,s=f[h].left,a=f[h].index,l=a-1,c=void 0!==s?s:u,l<0&&(l=0),r=c.geometry,e=r.getCoordinates(),t=e,p=!1,r.getType()){case _.a.MULTI_LINE_STRING:e[c.depth[0]].length>2&&(e[c.depth[0]].splice(a,1),p=!0);break;case _.a.LINE_STRING:e.length>2&&(e.splice(a,1),p=!0);break;case _.a.MULTI_POLYGON:t=t[c.depth[1]];case _.a.POLYGON:t=t[c.depth[0]],t.length>4&&(a==t.length-1&&(a=0),t.splice(a,1),p=!0,0===a&&(t.pop(),t.push(t[0]),l=t.length-1))}if(p){this.setGeometryCoordinates_(r,e);var y=[];if(void 0!==s&&(this.rBush_.remove(s),y.push(s.segment[0])),void 0!==u&&(this.rBush_.remove(u),y.push(u.segment[1])),void 0!==s&&void 0!==u){var v={depth:c.depth,feature:c.feature,geometry:c.geometry,index:l,segment:y};this.rBush_.insert(g.a.boundingExtent(v.segment),v)}this.updateSegmentIndices_(r,a,c.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),d.length=0}}return p},R.prototype.setGeometryCoordinates_=function(t,e){this.changingFeature_=!0,t.setCoordinates(e),this.changingFeature_=!1},R.prototype.updateSegmentIndices_=function(t,e,i,n){this.rBush_.forEachInExtent(t.getExtent(),function(r){r.geometry===t&&(void 0===i||void 0===r.depth||u.a.equals(r.depth,i))&&r.index>e&&(r.index+=n)})},R.getDefaultStyleFunction=function(){var t=C.default.createDefaultEditing();return function(e,i){return t[_.a.POINT]}},R.Event=function(t,e,i){d.a.call(this,t),this.features=e,this.mapBrowserEvent=i},n.a.inherits(R.Event,d.a),e.default=R},function(t,e,i){"use strict";var n={MODIFYSTART:"modifystart",MODIFYEND:"modifyend"};e.a=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(49),o=i(5),a=i(3),s=i(14),l=i(30),u=i(12),c=i(8),h=i(29),d=i(56),f=i(2),p=i(57),g=i(38),_=function t(e){h.a.call(this,{handleEvent:t.handleEvent});var i=e||{};this.condition_=i.condition?i.condition:l.a.singleClick,this.addCondition_=i.addCondition?i.addCondition:l.a.never,this.removeCondition_=i.removeCondition?i.removeCondition:l.a.never,this.toggleCondition_=i.toggleCondition?i.toggleCondition:l.a.shiftKeyOnly,this.multi_=!!i.multi&&i.multi,this.filter_=i.filter?i.filter:u.a.TRUE,this.hitTolerance_=i.hitTolerance?i.hitTolerance:0;var n=new d.default({source:new p.default({useSpatialIndex:!1,features:i.features,wrapX:i.wrapX}),style:i.style?i.style:t.getDefaultStyleFunction(),updateWhileAnimating:!0,updateWhileInteracting:!0});this.featureOverlay_=n;var s;if(i.layers)if("function"===typeof i.layers)s=i.layers;else{var c=i.layers;s=function(t){return o.a.includes(c,t)}}else s=u.a.TRUE;this.layerFilter_=s,this.featureLayerAssociation_={};var f=this.featureOverlay_.getSource().getFeaturesCollection();a.a.listen(f,r.a.ADD,this.addFeature_,this),a.a.listen(f,r.a.REMOVE,this.removeFeature_,this)};n.a.inherits(_,h.a),_.prototype.addFeatureLayerAssociation_=function(t,e){var i=n.a.getUid(t);this.featureLayerAssociation_[i]=e},_.prototype.getFeatures=function(){return this.featureOverlay_.getSource().getFeaturesCollection()},_.prototype.getHitTolerance=function(){return this.hitTolerance_},_.prototype.getLayer=function(t){var e=n.a.getUid(t);return this.featureLayerAssociation_[e]},_.handleEvent=function(t){if(!this.condition_(t))return!0;var e=this.addCondition_(t),i=this.removeCondition_(t),n=this.toggleCondition_(t),r=!e&&!i&&!n,a=t.map,s=this.featureOverlay_.getSource().getFeaturesCollection(),u=[],c=[];if(r){f.a.clear(this.featureLayerAssociation_),a.forEachFeatureAtPixel(t.pixel,function(t,e){if(this.filter_(t,e))return c.push(t),this.addFeatureLayerAssociation_(t,e),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});var h;for(h=s.getLength()-1;h>=0;--h){var d=s.item(h),p=c.indexOf(d);p>-1?c.splice(p,1):(s.remove(d),u.push(d))}0!==c.length&&s.extend(c)}else{a.forEachFeatureAtPixel(t.pixel,function(t,r){if(this.filter_(t,r))return!e&&!n||o.a.includes(s.getArray(),t)?(i||n)&&o.a.includes(s.getArray(),t)&&(u.push(t),this.removeFeatureLayerAssociation_(t)):(c.push(t),this.addFeatureLayerAssociation_(t,r)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});var g;for(g=u.length-1;g>=0;--g)s.remove(u[g]);s.extend(c)}return(c.length>0||u.length>0)&&this.dispatchEvent(new _.Event(_.EventType_.SELECT,c,u,t)),l.a.pointerMove(t)},_.prototype.setHitTolerance=function(t){this.hitTolerance_=t},_.prototype.setMap=function(t){var e=this.getMap(),i=this.featureOverlay_.getSource().getFeaturesCollection();e&&i.forEach(e.unskipFeature,e),h.a.prototype.setMap.call(this,t),this.featureOverlay_.setMap(t),t&&i.forEach(t.skipFeature,t)},_.getDefaultStyleFunction=function(){var t=g.default.createDefaultEditing();return o.a.extend(t[c.a.POLYGON],t[c.a.LINE_STRING]),o.a.extend(t[c.a.GEOMETRY_COLLECTION],t[c.a.LINE_STRING]),function(e,i){return e.getGeometry()?t[e.getGeometry().getType()]:null}},_.prototype.addFeature_=function(t){var e=this.getMap();e&&e.skipFeature(t.element)},_.prototype.removeFeature_=function(t){var e=this.getMap();e&&e.unskipFeature(t.element)},_.prototype.removeFeatureLayerAssociation_=function(t){var e=n.a.getUid(t);delete this.featureLayerAssociation_[e]},_.Event=function(t,e,i,n){s.a.call(this,t),this.selected=e,this.deselected=i,this.mapBrowserEvent=n},n.a.inherits(_.Event,s.a),_.EventType_={SELECT:"select"},e.default=_},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"===typeof e?"undefined":a(e))&&"function"!==typeof e?t:e}function o(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof e?"undefined":a(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),l=i(143),u=function(t){return t&&t.__esModule?t:{default:t}}(l),c=function(t){function e(t){n(this,e);var i=document.createElement("canvas"),o=i.width=t.width,a=i.height=t.height,s=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{img:i,imgSize:[o,a],rotation:t.rotation,scale:t.scale}));s.color=t.color,s.spriteCount=t.spriteCount,s.frameRate=void 0!==t.frameRate?t.frameRate:100,s.width=o,s.height=a,s.offset=[0,0];var l,u=s;return l=s.img_=new Image,l.crossOrigin=t.crossOrigin||"anonymous",l.src=t.src,l.width?s.drawImage_():l.onload=function(){u.drawImage_()},s}return o(e,t),s(e,[{key:"drawImage_",value:function(){var t=this.getImage().getContext("2d");if(t.clearRect(0,0,this.width,this.height),t.drawImage(this.img_,this.offset[0],this.offset[1],this.width,this.height,0,0,this.width,this.height),this.color){for(var e=t.getImageData(0,0,this.width,this.height),i=0,n=e.data.length;i<n;i+=4)e.data[i]=this.color[0],e.data[i+1]=this.color[1],e.data[i+2]=this.color[2];t.putImageData(e,0,0)}}},{key:"update",value:function(t){var e=t.frameState.time/this.frameRate,i=[(0+Math.trunc(e)%this.spriteCount)*this.width,0];i[0]===this.offset[0]&&i[1]===this.offset[1]||(this.offset=i,this.drawImage_())}}]),e}(u.default);e.default=c},function(t,e,i){"use strict";function n(t){return{type:l.MAPINFO.SET_SIZE,size:t}}function r(t,e){return{type:l.MAPINFO.SET_MOUSE_POSITION,lngLat:t,coordinate:e}}function o(t){return{type:l.MAPINFO.SET_EXTENT,extent:t}}function a(t){return{type:l.MAPINFO.SET_RESOLUTION,resolution:t}}function s(t){return{type:l.MAPINFO.SET_PROJECTION,projection:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.setMapSize=n,e.setMousePosition=r,e.setMapExtent=o,e.setResolution=a,e.setProjection=s;var l=i(89)},function(t,e,i){"use strict";function n(t,e,i,n,r){return{type:_.DRAWING.START,interaction:e,sourceName:t,currentMode:n,afterMode:i,currentModeOptions:r}}function r(t,e,i){return n(t,y.INTERACTIONS.modify,e,i)}function o(t){return n(t,y.INTERACTIONS.select)}function a(t){return{type:_.DRAWING.END,afterMode:t}}function s(t){return a(t)}function l(){return a()}function u(t){return n(null,t)}function c(t,e){return{type:_.DRAWING.SET_MEASURE_FEATURE,feature:t,segments:e}}function h(){return{type:_.DRAWING.FINALIZE_MEASURE_FEATURE}}function d(){return{type:_.DRAWING.CLEAR_MEASURE_FEATURE}}function f(t){return{type:_.DRAWING.SET_EDIT_STYLE,editStyle:t}}function p(t){return{type:_.DRAWING.SET_SELECT_STYLE,selectStyle:t}}function g(t){return{type:_.DRAWING.SET_MODIFY_STYLE,modifyStyle:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.startDrawing=n,e.startModify=r,e.startSelect=o,e.endDrawing=a,e.endModify=s,e.endSelect=l,e.startMeasure=u,e.setMeasureFeature=c,e.finalizeMeasureFeature=h,e.clearMeasureFeature=d,e.setEditStyle=f,e.setSelectStyle=p,e.setModifyStyle=g;var _=i(89),y=i(68)},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"===typeof e?"undefined":a(e))&&"function"!==typeof e?t:e}function o(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof e?"undefined":a(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),l=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(n)},u=i(370),c=function(t){return t&&t.__esModule?t:{default:t}}(u),h=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),s(e,[{key:"createCluster",value:function(t){var i=l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"createCluster",this).call(this,t),n=i.get("features").length;return i.set("point_count",n),i.set("point_count_abbreviated",n),i}}]),e}(c.default);e.default=h},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(7),o=i(65),a=i(35),s=i(4),l=i(1),u=i(25),c=i(57),h=function t(e){c.default.call(this,{attributions:e.attributions,extent:e.extent,logo:e.logo,projection:e.projection,wrapX:e.wrapX}),this.resolution=void 0,this.distance=void 0!==e.distance?e.distance:20,this.features=[],this.geometryFunction=e.geometryFunction||function(t){var e=t.getGeometry();return r.a.assert(e instanceof u.default,10),e},this.source=e.source,this.source.on(s.a.CHANGE,t.prototype.refresh,this)};n.a.inherits(h,c.default),h.prototype.getDistance=function(){return this.distance},h.prototype.getSource=function(){return this.source},h.prototype.loadFeatures=function(t,e,i){this.source.loadFeatures(t,e,i),e!==this.resolution&&(this.clear(),this.resolution=e,this.cluster(),this.addFeatures(this.features))},h.prototype.setDistance=function(t){this.distance=t,this.refresh()},h.prototype.refresh=function(){this.clear(),this.cluster(),this.addFeatures(this.features),c.default.prototype.refresh.call(this)},h.prototype.cluster=function(){if(void 0!==this.resolution){this.features.length=0;for(var t=l.a.createEmpty(),e=this.distance*this.resolution,i=this.source.getFeatures(),r={},o=0,a=i.length;o<a;o++){var s=i[o];if(!(n.a.getUid(s).toString()in r)){var u=this.geometryFunction(s);if(u){var c=u.getCoordinates();l.a.createOrUpdateFromCoordinate(c,t),l.a.buffer(t,e,t);var h=this.source.getFeaturesInExtent(t);h=h.filter(function(t){var e=n.a.getUid(t).toString();return!(e in r)&&(r[e]=!0,!0)}),this.features.push(this.createCluster(h))}}}}},h.prototype.createCluster=function(t){for(var e=[0,0],i=t.length-1;i>=0;--i){var n=this.geometryFunction(t[i]);n?a.default.add(e,n.getCoordinates()):t.splice(i,1)}a.default.scale(e,1/t.length);var r=new o.a(new u.default(e));return r.set("features",t),r},e.default=h},function(t,e,i){var n,r,o;!function(i,a){r=[e,t],n=a,void 0!==(o="function"===typeof n?n.apply(e,r):n)&&(t.exports=o)}(0,function(t,e){"use strict";function i(){return"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random())}function n(t){try{delete window[t]}catch(e){window[t]=void 0}}function r(t){var e=document.getElementById(t);e&&document.getElementsByTagName("head")[0].removeChild(e)}function o(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=t,s=e.timeout||a.timeout,l=e.jsonpCallback||a.jsonpCallback,u=void 0;return new Promise(function(a,c){var h=e.jsonpCallbackFunction||i(),d=l+"_"+h;window[h]=function(t){a({ok:!0,json:function(){return Promise.resolve(t)}}),u&&clearTimeout(u),r(d),n(h)},o+=-1===o.indexOf("?")?"?":"&";var f=document.createElement("script");f.setAttribute("src",""+o+l+"="+h),e.charset&&f.setAttribute("charset",e.charset),f.id=d,document.getElementsByTagName("head")[0].appendChild(f),u=setTimeout(function(){c(new Error("JSONP request to "+t+" timed out")),n(h),r(d),window[h]=function(){n(h)}},s),f.onerror=function(){c(new Error("JSONP request to "+t+" failed")),n(h),r(d),u&&clearTimeout(u)}})}var a={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};e.exports=o})},function(t,e){},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function o(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){return{bookmark:t.bookmark,map:t.map}}var s=i(31),l=i.n(s),u=i(70),c=i(374),h=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),d=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),h(e,[{key:"render",value:function(){var t=this.props.bookmark.count;if(this.props.map.sources[this.props.bookmark.source]&&this.props.map.sources[this.props.bookmark.source].data.features){var e=this.props.map.sources[this.props.bookmark.source].data.features[t],i=e.properties.description.split(" ")[1].slice(5);i=i.slice(0,i.length-1);var n={backgroundImage:'url("'+i+'")'};return l.a.createElement("div",{className:"panelContainer"},l.a.createElement("div",{className:"panel"},l.a.createElement("div",{className:"imageContainer",style:n},l.a.createElement("div",{className:"closeButton"}),l.a.createElement("div",{className:"title"},e.properties.Name)),l.a.createElement("div",{className:"storyContainer"},e.properties.Story),l.a.createElement("div",{className:"controls"},l.a.createElement(c.a,{store:this.props.store}))))}return l.a.createElement("div",null," ")}}]),e}(l.a.PureComponent);e.a=Object(u.connect)(a,null)(d)},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function o(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){return{bookmark:t.bookmark,map:t.map}}function s(t){return{moveSlide:function(e){t(h.b(e))},zoomTo:function(e,i){t(d.setView(e,i))}}}var l=i(31),u=i.n(l),c=i(70),h=i(199),d=i(119),f=(i.n(d),function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}()),p=function(t){function e(){return n(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),f(e,[{key:"moveBookmark",value:function(t){if(this.props.moveSlide(t),this.props.map.sources[this.props.bookmark.source]){var e=this.props.map.sources[this.props.bookmark.source].data.features[t],i=[e.geometry.coordinates[0]-5e-4,e.geometry.coordinates[1]];this.props.zoomTo(i,18)}}},{key:"nextBookmark",value:function(){var t=this.props.map.sources[this.props.bookmark.source].data.features.length,e=this.props.bookmark.count,i=e>=t-1?0:e+1;this.moveBookmark(i)}},{key:"previousBookmark",value:function(){var t=this.props.map.sources[this.props.bookmark.source].data.features.length,e=this.props.bookmark.count,i=e<=0?t-1:e-1;this.moveBookmark(i)}},{key:"componentDidUpdate",value:function(t,e){t.bookmark.source!==this.props.bookmark.source&&this.moveBookmark(this.props.bookmark.count)}},{key:"render",value:function(){var t=this;return u.a.createElement("span",{className:"buttons"},u.a.createElement("button",{className:"sdk-btn",onClick:function(){t.previousBookmark()}},"Previous")," ",u.a.createElement("button",{className:"sdk-btn",onClick:function(){t.nextBookmark()}},"Next"))}}]),e}(u.a.PureComponent);e.a=Object(c.connect)(a,s)(p)},function(t,e,i){"use strict";function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,e=arguments[1];switch(e.type){case"MOVE":return Object.assign({},t,{count:e.count});case"CHANGESOURCE":return{source:e.source,count:0};case"ADDBOOKMARK":return Object.assign({},t,{isAdding:e.isAdding});default:return t}}e.a=n;var r={count:0}}]);
//# sourceMappingURL=main.js.map