text: !function t(n,e,o){function i(r,u){if(!e[r]){if(!n[r]){var c="function"==typeof require&&require;if(!u&&c)return c(r,!0);if(s)return s(r,!0);var h=new Error("Cannot find module '"+r+"'");throw h.code="MODULE_NOT_FOUND",h}var d=e[r]={exports:{}};n[r][0].call(d.exports,function(t){var e=n[r][1][t];return i(e?e:t)},d,d.exports,t,n,e,o)}return e[r].exports}for(var s="function"==typeof require&&require,r=0;r<o.length;r++)i(o[r]);return i}({1:[function(t,n,e){"use strict";function o(t,n){this._onDown=this._onDown.bind(this),this._onMove=this._onMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this);var e=document.createElement("div");e.className="compare-swiper",e.addEventListener("mousedown",this._onDown),e.addEventListener("touchstart",this._onDown),this._container=document.createElement("div"),this._container.className="mapboxgl-compare",this._container.appendChild(e),t.getContainer().appendChild(this._container),this._clippedMap=n,this._bounds=n.getContainer().getBoundingClientRect(),this._setPosition(this._bounds.width/2),i(t,n),n.on("resize",function(){this._bounds=n.getContainer().getBoundingClientRect(),this._x&&this._setPosition(this._x)}.bind(this))}var i=t("mapbox-gl-sync-move");o.prototype={_onDown:function(t){t.touches?(document.addEventListener("touchmove",this._onMove),document.addEventListener("touchend",this._onTouchEnd)):(document.addEventListener("mousemove",this._onMove),document.addEventListener("mouseup",this._onMouseUp))},_setPosition:function(t){var n="translate("+t+"px, 0)";this._container.style.transform=n,this._container.style.WebkitTransform=n,this._clippedMap.getContainer().style.clip="rect(0, 999em, "+this._bounds.height+"px,"+t+"px)",this._x=t},_onMove:function(t){this._setPosition(this._getX(t))},_onMouseUp:function(){document.removeEventListener("mousemove",this._onMove),document.removeEventListener("mouseup",this._onMouseUp)},_onTouchEnd:function(){document.removeEventListener("touchmove",this._onMove),document.removeEventListener("touchend",this._onTouchEnd)},_getX:function(t){t=t.touches?t.touches[0]:t;var n=t.clientX-this._bounds.left;return n<0&&(n=0),n>this._bounds.width&&(n=this._bounds.width),n}},window.mapboxgl?mapboxgl.Compare=o:"undefined"!=typeof n&&(n.exports=o)},{"mapbox-gl-sync-move":2}],2:[function(t,n,e){function o(t,n){n.jumpTo({center:t.getCenter(),zoom:t.getZoom(),bearing:t.getBearing(),pitch:t.getPitch()})}function i(t,n){function e(){t.on("move",s),n.on("move",r)}function i(){t.off("move",s),n.off("move",r)}function s(){i(),o(t,n),e()}function r(){i(),o(n,t),e()}e()}n.exports=i},{}]},{},[1]);
  