module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__webpack_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__webpack_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __webpack_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__webpack_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "lib/mapboxgl/";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 769);
/******/ })
/************************************************************************/
/******/ ({

/***/ 0:
/***/ (function(module, exports) {

module.exports = require("@babel/runtime/helpers/interopRequireDefault");

/***/ }),

/***/ 1:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
/* globals __VUE_SSR_CONTEXT__ */

// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.

function normalizeComponent(
  scriptExports,
  render,
  staticRenderFns,
  functionalTemplate,
  injectStyles,
  scopeId,
  moduleIdentifier /* server only */,
  shadowMode /* vue-cli only */
) {
  // Vue.extend constructor export interop
  var options =
    typeof scriptExports === 'function' ? scriptExports.options : scriptExports

  // render functions
  if (render) {
    options.render = render
    options.staticRenderFns = staticRenderFns
    options._compiled = true
  }

  // functional template
  if (functionalTemplate) {
    options.functional = true
  }

  // scopedId
  if (scopeId) {
    options._scopeId = 'data-v-' + scopeId
  }

  var hook
  if (moduleIdentifier) {
    // server build
    hook = function (context) {
      // 2.3 injection
      context =
        context || // cached call
        (this.$vnode && this.$vnode.ssrContext) || // stateful
        (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
      // 2.2 with runInNewContext: true
      if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
        context = __VUE_SSR_CONTEXT__
      }
      // inject component styles
      if (injectStyles) {
        injectStyles.call(this, context)
      }
      // register component module identifier for async chunk inferrence
      if (context && context._registeredComponents) {
        context._registeredComponents.add(moduleIdentifier)
      }
    }
    // used by ssr in case component is cached and beforeCreate
    // never gets called
    options._ssrRegister = hook
  } else if (injectStyles) {
    hook = shadowMode
      ? function () {
          injectStyles.call(
            this,
            (options.functional ? this.parent : this).$root.$options.shadowRoot
          )
        }
      : injectStyles
  }

  if (hook) {
    if (options.functional) {
      // for template-only hot-reload because in that case the render fn doesn't
      // go through the normalizer
      options._injectStyles = hook
      // register for functional component in vue file
      var originalRender = options.render
      options.render = function renderWithStyleInjection(h, context) {
        hook.call(context)
        return originalRender(h, context)
      }
    } else {
      // inject component registration as beforeCreate hook
      var existing = options.beforeCreate
      options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
    }
  }

  return {
    exports: scriptExports,
    options: options
  }
}


/***/ }),

/***/ 10:
/***/ (function(module, exports) {

module.exports = require("lodash.isplainobject");

/***/ }),

/***/ 11:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/_utils/vue-types/utils.js");

/***/ }),

/***/ 112:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/select");

/***/ }),

/***/ 116:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/collapse");

/***/ }),

/***/ 14:
/***/ (function(module, exports) {

module.exports = require("@babel/runtime/helpers/createClass");

/***/ }),

/***/ 17:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/_mixin/control.js");

/***/ }),

/***/ 2:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/init.js");

/***/ }),

/***/ 21:
/***/ (function(module, exports) {

module.exports = require("lodash.uniqueid");

/***/ }),

/***/ 22:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/_mixin/Card.js");

/***/ }),

/***/ 24:
/***/ (function(module, exports) {

module.exports = require("@babel/runtime/helpers/assertThisInitialized");

/***/ }),

/***/ 26:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/message");

/***/ }),

/***/ 27:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_Option_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_Option_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_Option_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_Option_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_Option_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_Option_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 28:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(0);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.optionTypes = exports.default = void 0;
var _select = _interopRequireDefault(__webpack_require__(51));
var _vueTypes = _interopRequireDefault(__webpack_require__(8));
var _Theme = _interopRequireDefault(__webpack_require__(4));
var _AntdRender = _interopRequireDefault(__webpack_require__(6));
var optionTypes = exports.optionTypes = {
  disabled: _vueTypes.default.bool,
  key: _vueTypes.default.string,
  title: _vueTypes.default.string,
  value: _vueTypes.default.oneOfType([_vueTypes.default.string, _vueTypes.default.number])
};
var _default = exports.default = {
  name: 'SmSelectOption',
  isSelectOption: true,
  defaultComponent: _select.default.Option,
  mixins: [_Theme.default, _AntdRender.default],
  inheritAttrs: false,
  props: optionTypes
};

/***/ }),

/***/ 3:
/***/ (function(module, exports) {

module.exports = require("@babel/runtime/helpers/inheritsLoose");

/***/ }),

/***/ 326:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_CoordinateConversion_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(327);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_CoordinateConversion_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_CoordinateConversion_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_CoordinateConversion_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_CoordinateConversion_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_CoordinateConversion_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 327:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(0);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _createClass2 = _interopRequireDefault(__webpack_require__(14));
var _inheritsLoose2 = _interopRequireDefault(__webpack_require__(3));
var _Theme = _interopRequireDefault(__webpack_require__(4));
var _mapGetter = _interopRequireDefault(__webpack_require__(7));
var _control = _interopRequireDefault(__webpack_require__(17));
var _Card = _interopRequireDefault(__webpack_require__(22));
var _Input = _interopRequireDefault(__webpack_require__(52));
var _Select = _interopRequireDefault(__webpack_require__(112));
var _Option = _interopRequireDefault(__webpack_require__(84));
var _Card2 = _interopRequireDefault(__webpack_require__(57));
var _Collapse = _interopRequireDefault(__webpack_require__(116));
var _CoordinateConversionViewModel = _interopRequireDefault(__webpack_require__(771));
var _epsgDefine = __webpack_require__(48);
var _clipboard = _interopRequireDefault(__webpack_require__(772));
var _proj = _interopRequireDefault(__webpack_require__(88));
var _lodash = _interopRequireDefault(__webpack_require__(21));
var _latlngConv = __webpack_require__(773);
var _vuePropertyDecorator = __webpack_require__(9);
var _Message = _interopRequireDefault(__webpack_require__(26));
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
  var c = arguments.length,
    r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
    d;
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
  return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var utm = __webpack_require__(774);
var SmCoordinateConversion = /*#__PURE__*/function (_Mixins) {
  (0, _inheritsLoose2.default)(SmCoordinateConversion, _Mixins);
  function SmCoordinateConversion() {
    var _this;
    _this = _Mixins.apply(this, arguments) || this;
    _this.clickCaptureTimes = 0;
    _this.defaultFormats = [];
    _this.formatOptions = [];
    _this.activeFormat = 'XY';
    _this.activeDisplayFormat = 'X°‎, Y°‎';
    _this.inputValue = '';
    _this.iconValue = '';
    _this.coordinate = null;
    _this.enableLocation = true;
    _this.uniqueId = (0, _lodash.default)(_this.$options.name.toLowerCase() + "-");
    _this.decimals = 7;
    return _this;
  }
  var _proto = SmCoordinateConversion.prototype;
  _proto.isCaptureWatcher = function isCaptureWatcher() {
    if (this.isCapture) {
      this.viewModel._bindCapture();
    } else {
      this.viewModel._bindHover();
    }
  };
  _proto.formatsWatcher = function formatsWatcher() {
    var _this2 = this;
    var formatOptions = [];
    this.formats && this.formats.forEach(function (item) {
      if (typeof item === 'string') {
        var defaultFormat = _this2.defaultFormats.find(function (val) {
          return val.title === item;
        });
        defaultFormat && formatOptions.push(defaultFormat);
      } else if (typeof item === 'object') {
        formatOptions.push(item);
      }
    });
    if (formatOptions && formatOptions[0] && !this.formats.includes('XY')) {
      this.activeFormat = formatOptions[0].title;
      this.activeDisplayFormat = formatOptions[0].display || '';
    }
    this.formatOptions = formatOptions;
  };
  _proto.created = function created() {
    var _this3 = this;
    this.defaultFormats = [{
      title: 'BASEMAP',
      i18n: this.$t('unit.BASEMAP'),
      display: "X Y",
      fromWGS84: this.getBaseMapCoordinate,
      toWGS84: function toWGS84(value) {
        var coor = value.split(' ');
        var coor1 = {
          lng: coor[0] * 1,
          lat: coor[1] * 1
        };
        return _this3.getEpsgCoordinate(coor1, 'EPSG:4326', _this3.getEpsgCode());
      }
    }, {
      title: 'UTM',
      i18n: this.$t('unit.UTM'),
      fromWGS84: this.getUtm,
      toWGS84: this.getCoorByUtm
    }, {
      title: 'Mercator',
      i18n: this.$t('unit.Mercator'),
      display: "X Y",
      fromWGS84: this.getMercatorCoordinate,
      toWGS84: function toWGS84(value) {
        var coor = value.split(' ');
        var coor2 = {
          lng: coor[0] * 1,
          lat: coor[1] * 1
        };
        return _this3.getEpsgCoordinate(coor2, 'EPSG:4326', 'EPSG:3857');
      }
    }, {
      title: 'XY',
      i18n: this.$t('unit.XY'),
      display: 'X°‎, Y°‎',
      fromWGS84: this.getXY,
      toWGS84: this.getCoorByXY
    }, {
      title: 'DD',
      i18n: this.$t('unit.DD'),
      display: 'Y° ‎N, X° ‎E‎',
      fromWGS84: this.getDD,
      toWGS84: this.getCoorByDD
    }, {
      title: 'DOM',
      i18n: this.$t('unit.DOM'),
      display: "Y\xB0\u200E A' N, X\xB0\u200E B' E",
      fromWGS84: this.getDOM,
      toWGS84: this.getCoorByDOM
    }, {
      title: 'DMS',
      i18n: this.$t('unit.DMS'),
      display: "Y\xB0\u200E A' B\" N, X\xB0\u200E C' D\" E",
      fromWGS84: this.getDMS,
      toWGS84: this.getCoorByDMS
    }];
    this.formatOptions = [].concat(this.defaultFormats);
    var clipboard = this.clipboard = new _clipboard.default(".sm-component-coordinate-conversion__copyed" + this.uniqueId);
    clipboard.on('success', function () {
      _Message.default.success(_this3.$t('success.copySucccess'));
    });
    this.viewModel = new _CoordinateConversionViewModel.default();
    this.viewModel.on('getcoordinate', function (res) {
      var coordinate = res.coordinate;
      var formatOption = _this3.formatOptions.find(function (item) {
        return item.title === _this3.activeFormat;
      });
      _this3.coordinate = coordinate;
      _this3.inputValue = _this3.formatCoordinate(_this3.coordinate, formatOption);
    });
  };
  _proto.beforeDestroy = function beforeDestroy() {
    this.clipboard && this.clipboard.destroy();
  };
  _proto.getPopupContainer = function getPopupContainer() {
    return this.$el.querySelector('.sm-component-coordinate-conversion__content');
  };
  _proto.handleCapture = function handleCapture() {
    this.clickCaptureTimes++;
  };
  _proto.handleInput = function handleInput(e) {
    if (!this.isCapture) {
      this.handleCapture();
    }
    this.inputValue = e.target.value;
    this.enableLocation = true;
  };
  _proto.handleBlur = function handleBlur(e) {
    var _this4 = this;
    var formatOption = this.formatOptions.find(function (item) {
      return item.title === _this4.activeFormat;
    });
    this.coordinate = this.reverseCoordinateFormat(e.target.value, formatOption);
  };
  _proto.handleChange = function handleChange(e) {
    if (!e.target.value) {
      this.enableLocation = false;
      this.coordinate = null;
    }
  };
  _proto.handleLocation = function handleLocation() {
    if (!this.coordinate) {
      return;
    }
    this.enableLocation = false;
    if (!this.isCapture) {
      this.handleCapture();
    }
    var _this$coordinate = this.coordinate,
      lng = _this$coordinate.lng,
      lat = _this$coordinate.lat;
    this.viewModel._addMarker([lng, lat]);
    this.viewModel._flyTo([lng, lat]);
  };
  _proto.changeFormat = function changeFormat(val) {
    var formatOption = this.formatOptions.find(function (item) {
      return item.title === val;
    });
    this.activeDisplayFormat = formatOption && formatOption.display;
    this.inputValue = this.formatCoordinate(this.coordinate, formatOption);
  };
  _proto.formatCoordinate = function formatCoordinate(coordinate, formatOption, format) {
    if (!coordinate || !formatOption) {
      this.viewModel._clearMarker();
      return null;
    }
    var fromWGS84 = formatOption.fromWGS84 || this.getXY;
    return fromWGS84(coordinate, format || formatOption.display);
  };
  _proto.reverseCoordinateFormat = function reverseCoordinateFormat(value, formatOption, format) {
    if (value === void 0) {
      value = this.inputValue;
    }
    value = value.replace(/^\s+|\s+$ /, '');
    if (!value || !formatOption) {
      this.viewModel._clearMarker();
      return null;
    }
    var toWGS84 = formatOption.toWGS84 || this.getCoorByXY;
    return toWGS84(value, format);
  };
  _proto.getUtm = function getUtm(coordinate) {
    var _utm$fromLatLon = utm.fromLatLon(coordinate.lat, this.getWrapNum(coordinate.lng)),
      easting = _utm$fromLatLon.easting,
      northing = _utm$fromLatLon.northing,
      zoneNum = _utm$fromLatLon.zoneNum,
      zoneLetter = _utm$fromLatLon.zoneLetter;
    return "" + zoneNum + zoneLetter + " " + parseInt(easting) + " " + parseInt(northing);
  };
  _proto.getMercatorCoordinate = function getMercatorCoordinate(coordinate) {
    var _this$getEpsgCoordina = this.getEpsgCoordinate(coordinate, 'EPSG:3857'),
      lng = _this$getEpsgCoordina.lng,
      lat = _this$getEpsgCoordina.lat;
    return lng.toFixed(3) + " " + lat.toFixed(3);
  };
  _proto.getBaseMapCoordinate = function getBaseMapCoordinate(coordinate) {
    var _this$getEpsgCoordina2 = this.getEpsgCoordinate(coordinate),
      lng = _this$getEpsgCoordina2.lng,
      lat = _this$getEpsgCoordina2.lat;
    return lng.toFixed(3) + " " + lat.toFixed(3);
  };
  _proto.getEpsgCoordinate = function getEpsgCoordinate(coordinate, toEpsgCode, sourceEpsgCode) {
    if (sourceEpsgCode === void 0) {
      sourceEpsgCode = 'EPSG:4326';
    }
    var lng = coordinate.lng,
      lat = coordinate.lat;
    toEpsgCode = toEpsgCode || this.getEpsgCode();
    var toProjection = (0, _epsgDefine.getProjection)(toEpsgCode);
    var sourceProjection = (0, _epsgDefine.getProjection)(sourceEpsgCode);
    var coor = sourceEpsgCode === toEpsgCode ? [lng, lat] : (0, _proj.default)(sourceProjection, toProjection, [lng, lat]);
    return {
      lng: coor[0],
      lat: coor[1]
    };
  };
  _proto.getEpsgCode = function getEpsgCode(map) {
    if (map === void 0) {
      map = this.map;
    }
    if (!map) {
      return '';
    }
    return this.map.getCRS().epsgCode;
  };
  _proto.getWrapNum = function getWrapNum(x, includeMax, includeMin, range) {
    if (includeMax === void 0) {
      includeMax = true;
    }
    if (includeMin === void 0) {
      includeMin = true;
    }
    if (range === void 0) {
      range = [-180, 180];
    }
    var max = range[1];
    var min = range[0];
    var d = max - min;
    if (x === max && includeMax) {
      return x;
    }
    if (x === min && includeMin) {
      return x;
    }
    var tmp = ((x - min) % d + d) % d;
    if (tmp === 0 && includeMax) {
      return max;
    }
    return ((x - min) % d + d) % d + min;
  };
  _proto.getWE = function getWE(lng) {
    if (lng === 0) {
      return '';
    }
    return lng > 0 ? 'E' : 'W';
  };
  _proto.getNS = function getNS(lat) {
    if (lat === 0) {
      return '';
    }
    return lat > 0 ? 'N' : 'S';
  };
  _proto.getXY = function getXY(coordinate, format) {
    var lng = coordinate.lng,
      lat = coordinate.lat;
    var newLat = lat.toFixed(this.decimals);
    lat = newLat * 1;
    lng = this.getWrapNum(lng).toFixed(this.decimals) * 1;
    var XY = format.replace('X', lng + '');
    XY = XY.replace('Y', lat + '');
    return XY;
  };
  _proto.getDD = function getDD(coordinate, format) {
    var lng = coordinate.lng,
      lat = coordinate.lat;
    lng = this.getWrapNum(lng);
    var newLat = lat.toFixed(this.decimals);
    lat = newLat * 1;
    lng = this.getWrapNum(lng).toFixed(this.decimals) * 1;
    var XY = format.replace('X', lng + '');
    XY = XY.replace('Y', lat + '');
    XY = XY.replace('E', this.getWE(lng));
    XY = XY.replace('N', this.getNS(lat));
    return XY;
  };
  _proto.getDOM = function getDOM(coordinate) {
    var lng = coordinate.lng,
      lat = coordinate.lat;
    lng = this.getWrapNum(lng);
    var formatDM = function formatDM(dm) {
      var degrees = dm.degrees,
        minutes = dm.minutes,
        direction = dm.direction;
      return degrees + "\xB0 " + minutes + "' " + direction;
    };
    var value = formatDM((0, _latlngConv.dd2ddm)(lat, 'lat')) + " " + formatDM((0, _latlngConv.dd2ddm)(lng, 'lng'));
    return value;
  };
  _proto.getDMS = function getDMS(coordinate) {
    var lng = coordinate.lng,
      lat = coordinate.lat;
    lng = this.getWrapNum(lng);
    var value = (0, _latlngConv.format)((0, _latlngConv.dd2dms)(lat, 'lat')) + " " + (0, _latlngConv.format)((0, _latlngConv.dd2dms)(lng, 'lng'));
    return value;
  };
  _proto.getCoorByXY = function getCoorByXY(value) {
    value = this.replaceUnit(value);
    value = value.replace(/‎|°|\s+/g, '');
    var coordinates = value.split(',');
    return {
      lng: coordinates[0] * 1,
      lat: coordinates[1] * 1
    };
  };
  _proto.getCoorByDD = function getCoorByDD(value) {
    value = this.replaceUnit(value);
    value = value.replace(/‎|°|\s+/g, '');
    value = value.replace(/E|N|W|S/gi, '');
    var coordinates = value.split(',');
    return {
      lng: coordinates[1] * 1,
      lat: coordinates[0] * 1
    };
  };
  _proto.getCoorByDOM = function getCoorByDOM(value) {
    var _this$getDMLatLng = this.getDMLatLng(value),
      latStr = _this$getDMLatLng.latStr,
      lngStr = _this$getDMLatLng.lngStr;
    if (!latStr || !lngStr) {
      return {
        lng: NaN,
        lat: NaN
      };
    }
    var ddmLng = this.parseDM(lngStr);
    var ddmLat = this.parseDM(latStr);
    var lng = (0, _latlngConv.ddm2dd)(ddmLng);
    var lat = (0, _latlngConv.ddm2dd)(ddmLat);
    return {
      lng: lng,
      lat: lat
    };
  };
  _proto.getCoorByDMS = function getCoorByDMS(value) {
    var _this$getDMLatLng2 = this.getDMLatLng(value),
      latStr = _this$getDMLatLng2.latStr,
      lngStr = _this$getDMLatLng2.lngStr;
    if (!latStr || !lngStr) {
      return {
        lng: NaN,
        lat: NaN
      };
    }
    var ddmLng = (0, _latlngConv.parse)(lngStr);
    var ddmLat = (0, _latlngConv.parse)(latStr);
    var lng = (0, _latlngConv.dms2dd)(ddmLng);
    var lat = (0, _latlngConv.dms2dd)(ddmLat);
    return {
      lng: lng,
      lat: lat
    };
  };
  _proto.getCoorByUtm = function getCoorByUtm(value) {
    var _value$split = value.split(' '),
      zone = _value$split[0],
      easting = _value$split[1],
      northing = _value$split[2];
    var zoneNum = parseInt(zone);
    var zoneLetter = Object.is(zoneNum, NaN) ? zone : zone.replace(zoneNum + '', '');
    var _utm$toLatLon = utm.toLatLon(easting, northing, zoneNum, zoneLetter),
      latitude = _utm$toLatLon.latitude,
      longitude = _utm$toLatLon.longitude;
    return {
      lng: longitude,
      lat: latitude
    };
  };
  _proto.replaceUnit = function replaceUnit(value) {
    value = value.replace(/º/g, '°');
    value = value.replace(/\'\'/g, '"');
    return value;
  };
  _proto.getDMLatLng = function getDMLatLng(value) {
    var unit = ['N', 'S'];
    var index = value.indexOf(unit[0]);
    if (index < 0) {
      index = value.indexOf(unit[1]);
    }
    if (index < -1) {
      return {
        latStr: '',
        lngStr: ''
      };
    }
    var latStr = value.slice(0, index + 1).trim();
    var lngStr = value.slice(index + 1).trim();
    return {
      latStr: latStr,
      lngStr: lngStr
    };
  };
  _proto.parseDM = function parseDM(value) {
    var pattern = /^([0-1]?[0-9]?[0-9])°\s([0-5]?[0-9](?:.\d+)?)'\s?(N|S|E|W)?$/;
    var results = pattern.exec(value);
    if (!results) {
      throw new Error(this.$t('coordinateConversion.errorCoordinate'));
    }
    var _results$slice = results.slice(1, 4),
      degrees = _results$slice[0],
      minutes = _results$slice[1],
      direction = _results$slice[2];
    var dm = {
      degrees: parseInt(degrees, 10),
      minutes: parseFloat(minutes)
    };
    return direction ? Object.assign(dm, {
      direction: direction
    }) : dm;
  };
  (0, _createClass2.default)(SmCoordinateConversion, [{
    key: "isCapture",
    get: function get() {
      return this.clickCaptureTimes % 2 !== 0;
    }
  }]);
  return SmCoordinateConversion;
}((0, _vuePropertyDecorator.Mixins)(_mapGetter.default, _control.default, _Theme.default, _Card.default));
__decorate([(0, _vuePropertyDecorator.Prop)({
  default: 'sm-components-icon-coordinate-coversion'
})], SmCoordinateConversion.prototype, "iconClass", void 0);
__decorate([(0, _vuePropertyDecorator.Prop)({
  default: false
})], SmCoordinateConversion.prototype, "collapsed", void 0);
__decorate([(0, _vuePropertyDecorator.Prop)({
  default: true
})], SmCoordinateConversion.prototype, "showLocation", void 0);
__decorate([(0, _vuePropertyDecorator.Prop)({
  default: function _default() {
    return ['BASEMAP', 'Mercator', 'XY', 'UTM', 'DD', 'DOM', 'DMS'];
  }
})], SmCoordinateConversion.prototype, "formats", void 0);
__decorate([(0, _vuePropertyDecorator.Watch)('isCapture')], SmCoordinateConversion.prototype, "isCaptureWatcher", null);
__decorate([(0, _vuePropertyDecorator.Watch)('formats', {
  immediate: true
})], SmCoordinateConversion.prototype, "formatsWatcher", null);
SmCoordinateConversion = __decorate([(0, _vuePropertyDecorator.Component)({
  name: 'SmCoordinateConversion',
  components: {
    SmInput: _Input.default,
    SmSelect: _Select.default,
    SmSelectOption: _Option.default,
    SmCard: _Card2.default,
    SmCollapse: _Collapse.default
  }
})], SmCoordinateConversion);
var _default2 = exports.default = SmCoordinateConversion;

/***/ }),

/***/ 4:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/_mixin/Theme.js");

/***/ }),

/***/ 452:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ render; });
__webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ staticRenderFns; });

// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/mapboxgl/web-map/control/coordinate-conversion/CoordinateConversion.vue?vue&type=template&id=82a8b59e&
var render = function () {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  return _c(
    "sm-collapse-card",
    {
      directives: [
        {
          name: "show",
          rawName: "v-show",
          value: _vm.isShow,
          expression: "isShow",
        },
      ],
      staticClass: "sm-component-coordinate-conversion",
      attrs: {
        "icon-class": _vm.iconClass,
        "icon-position": _vm.position,
        "auto-rotate": _vm.autoRotate,
        collapsed: _vm.collapsed,
        headerName: _vm.headerName,
        background: _vm.background,
        textColor: _vm.textColor,
      },
    },
    [
      _c(
        "sm-card",
        {
          staticClass: "sm-component-coordinate-conversion__sm-card",
          style: _vm.getTextColorStyle,
          attrs: { bordered: false },
        },
        [
          _c(
            "div",
            {
              class: [
                "sm-component-coordinate-conversion__content",
                !_vm.showLocation && "not-show-location",
              ],
            },
            [
              _c(
                "div",
                {
                  staticClass: "sm-component-coordinate-conversion__auto-width",
                },
                [
                  _c(
                    "sm-select",
                    {
                      staticClass:
                        "sm-component-coordinate-conversion__a-select",
                      attrs: {
                        placeholder: _vm.$t("measure.selectPlaceholder"),
                        "get-popup-container": _vm.getPopupContainer,
                        dropdownMatchSelectWidth: true,
                        size: "small",
                      },
                      on: { change: _vm.changeFormat },
                      model: {
                        value: _vm.activeFormat,
                        callback: function ($$v) {
                          _vm.activeFormat = $$v
                        },
                        expression: "activeFormat",
                      },
                    },
                    _vm._l(_vm.formatOptions, function (value, key, index) {
                      return _c(
                        "sm-select-option",
                        {
                          key: index,
                          attrs: {
                            title: value.i18n || value.title,
                            value: value.title,
                          },
                        },
                        [_vm._v(_vm._s(value.i18n || value.title))]
                      )
                    }),
                    1
                  ),
                  _c("sm-input", {
                    class: ["sm-component-coordinate-conversion__a-input"],
                    attrs: {
                      placeholder:
                        _vm.activeDisplayFormat ||
                        _vm.$t("coordinateConversion.inputPlaceHolder"),
                      size: "small",
                      allowClear: "",
                    },
                    on: {
                      input: _vm.handleInput,
                      blur: _vm.handleBlur,
                      change: _vm.handleChange,
                    },
                    model: {
                      value: _vm.inputValue,
                      callback: function ($$v) {
                        _vm.inputValue = $$v
                      },
                      expression: "inputValue",
                    },
                  }),
                ],
                1
              ),
              _c(
                "div",
                { staticClass: "sm-component-coordinate-conversion__icons" },
                [
                  _c("div", {
                    class: [
                      _vm.isCapture &&
                        "sm-component-coordinate-conversion__copyed" +
                          _vm.uniqueId,
                      _vm.isCapture
                        ? "sm-component-coordinate-conversion__copyed"
                        : "sm-component-coordinate-conversion__not-enable",
                      "sm-components-icon-copy",
                    ],
                    attrs: {
                      "data-clipboard-text": _vm.isCapture
                        ? _vm.inputValue
                        : "",
                      title: _vm.$t("coordinateConversion.copy"),
                    },
                  }),
                  _vm.showLocation
                    ? _c("div", {
                        class: [
                          "sm-component-coordinate-conversion__location",
                          "sm-components-icon-locate",
                        ],
                        attrs: {
                          title: _vm.$t("coordinateConversion.location"),
                        },
                        on: { click: _vm.handleLocation },
                      })
                    : _vm._e(),
                  _c("div", {
                    class: [
                      _vm.isCapture
                        ? "sm-component-coordinate-conversion__captured"
                        : "sm-component-coordinate-conversion__not-captured",
                      "sm-components-icon-click",
                    ],
                    attrs: {
                      title: _vm.isCapture
                        ? _vm.$t("coordinateConversion.capture")
                        : _vm.$t("coordinateConversion.realTime"),
                    },
                    on: { click: _vm.handleCapture },
                  }),
                ]
              ),
            ]
          ),
        ]
      ),
    ],
    1
  )
}
var staticRenderFns = []
render._withStripped = true


// CONCATENATED MODULE: ./src/mapboxgl/web-map/control/coordinate-conversion/CoordinateConversion.vue?vue&type=template&id=82a8b59e&


/***/ }),

/***/ 48:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/_utils/epsg-define.js");

/***/ }),

/***/ 5:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/static/libs/mapboxgl/mapbox-gl-enhance.js");

/***/ }),

/***/ 51:
/***/ (function(module, exports) {

module.exports = require("ant-design-vue/es/select");

/***/ }),

/***/ 52:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/input");

/***/ }),

/***/ 57:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/card");

/***/ }),

/***/ 6:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/_mixin/AntdRender.js");

/***/ }),

/***/ 7:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/_mixin/map-getter.js");

/***/ }),

/***/ 769:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(0);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _CoordinateConversion = _interopRequireDefault(__webpack_require__(770));
var _init = _interopRequireDefault(__webpack_require__(2));
_CoordinateConversion.default.install = function (Vue, opts) {
  (0, _init.default)(Vue, opts);
  Vue.component(_CoordinateConversion.default.options ? _CoordinateConversion.default.options.name : _CoordinateConversion.default.name, _CoordinateConversion.default);
};
var _default = exports.default = _CoordinateConversion.default;

/***/ }),

/***/ 770:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _CoordinateConversion_vue_vue_type_template_id_82a8b59e___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(452);
/* harmony import */ var _CoordinateConversion_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(326);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _CoordinateConversion_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _CoordinateConversion_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);





/* normalize component */

var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _CoordinateConversion_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_1__["default"],
  _CoordinateConversion_vue_vue_type_template_id_82a8b59e___WEBPACK_IMPORTED_MODULE_0__[/* render */ "a"],
  _CoordinateConversion_vue_vue_type_template_id_82a8b59e___WEBPACK_IMPORTED_MODULE_0__[/* staticRenderFns */ "b"],
  false,
  null,
  null,
  null
  
)

/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 771:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(0);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(24));
var _inheritsLoose2 = _interopRequireDefault(__webpack_require__(3));
var _mapboxGlEnhance = _interopRequireDefault(__webpack_require__(5));
var CoordinateConversionViewModel = exports.default = /*#__PURE__*/function (_mapboxgl$Evented) {
  (0, _inheritsLoose2.default)(CoordinateConversionViewModel, _mapboxgl$Evented);
  function CoordinateConversionViewModel() {
    var _this;
    _this = _mapboxgl$Evented.call(this) || this;
    _this.marker = null;
    _this._getCoordinateFn = _this._getCoordinate.bind((0, _assertThisInitialized2.default)(_this));
    _this._clickCallbackFn = _this._clickCallback.bind((0, _assertThisInitialized2.default)(_this));
    return _this;
  }
  var _proto = CoordinateConversionViewModel.prototype;
  _proto.setMap = function setMap(mapInfo) {
    var map = mapInfo.map;
    this.map = map || null;
    this._bindMouseMove();
  };
  _proto._bindCapture = function _bindCapture() {
    this._unbindMouseMove();
    this._bindClick();
  };
  _proto._bindHover = function _bindHover() {
    this._clearMarker();
    this._unbindClick();
    this._bindMouseMove();
  };
  _proto._getCoordinate = function _getCoordinate(e) {
    var coordinate = e.lngLat;
    this.fire('getcoordinate', {
      coordinate: coordinate
    });
    return coordinate;
  };
  _proto._bindMouseMove = function _bindMouseMove(map) {
    if (map === void 0) {
      map = this.map;
    }
    if (!map) {
      return;
    }
    this._changeCursor();
    map.on('mousemove', this._getCoordinateFn);
  };
  _proto._bindClick = function _bindClick(map) {
    if (map === void 0) {
      map = this.map;
    }
    if (!map) {
      return;
    }
    this._changeCursor('pointer');
    map.on('click', this._clickCallbackFn);
  };
  _proto._unbindMouseMove = function _unbindMouseMove(map) {
    if (map === void 0) {
      map = this.map;
    }
    map && map.off('mousemove', this._getCoordinateFn);
  };
  _proto._unbindClick = function _unbindClick(map) {
    if (map === void 0) {
      map = this.map;
    }
    map && map.off('click', this._clickCallbackFn);
  };
  _proto._clickCallback = function _clickCallback(e) {
    var coordinate = this._getCoordinate(e);
    this._addMarker(coordinate);
  };
  _proto._changeCursor = function _changeCursor(cursorType, map) {
    if (cursorType === void 0) {
      cursorType = 'default';
    }
    if (map === void 0) {
      map = this.map;
    }
    if (map && map.getCanvas()) {
      map.getCanvas().style.cursor = cursorType;
    }
  };
  _proto._addMarker = function _addMarker(coordinate, map) {
    if (map === void 0) {
      map = this.map;
    }
    this._clearMarker();
    if (!map) {
      return;
    }
    this.marker = new _mapboxGlEnhance.default.Marker().setLngLat(coordinate).addTo(map);
  };
  _proto._flyTo = function _flyTo(coordinate, map) {
    if (map === void 0) {
      map = this.map;
    }
    if (!map) {
      return;
    }
    map.flyTo({
      center: coordinate
    });
  };
  _proto._clearMarker = function _clearMarker() {
    this.marker && this.marker.remove();
    this.marker = null;
  };
  _proto.removed = function removed() {
    this._unbindMouseMove();
    this._unbindClick();
    this._clearMarker();
  };
  return CoordinateConversionViewModel;
}(_mapboxGlEnhance.default.Evented);

/***/ }),

/***/ 772:
/***/ (function(module, exports) {

module.exports = require("clipboard");

/***/ }),

/***/ 773:
/***/ (function(module, exports) {

module.exports = require("latlng-conv");

/***/ }),

/***/ 774:
/***/ (function(module, exports) {

module.exports = require("utm");

/***/ }),

/***/ 8:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(0);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _lodash = _interopRequireDefault(__webpack_require__(10));
var _utils = __webpack_require__(11);
var VuePropTypes = {
  get any() {
    return (0, _utils.toType)('any', {
      type: null
    });
  },
  get func() {
    return (0, _utils.toType)('function', {
      type: Function
    }).def(currentDefaults.func);
  },
  get bool() {
    return (0, _utils.toType)('boolean', {
      type: Boolean
    }).def(currentDefaults.bool);
  },
  get string() {
    return (0, _utils.toType)('string', {
      type: String
    }).def(currentDefaults.string);
  },
  get number() {
    return (0, _utils.toType)('number', {
      type: Number
    }).def(currentDefaults.number);
  },
  get array() {
    return (0, _utils.toType)('array', {
      type: Array
    }).def(currentDefaults.array);
  },
  get object() {
    return (0, _utils.toType)('object', {
      type: Object
    }).def(currentDefaults.object);
  },
  get integer() {
    return (0, _utils.toType)('integer', {
      type: Number,
      validator: function validator(value) {
        return (0, _utils.isInteger)(value);
      }
    }).def(currentDefaults.integer);
  },
  get symbol() {
    return (0, _utils.toType)('symbol', {
      type: null,
      validator: function validator(value) {
        return typeof value === 'symbol';
      }
    });
  },
  custom: function custom(validatorFn, warnMsg) {
    if (warnMsg === void 0) {
      warnMsg = 'custom validation failed';
    }
    if (typeof validatorFn !== 'function') {
      throw new TypeError('[VueTypes error]: You must provide a function as argument');
    }
    return (0, _utils.toType)(validatorFn.name || '<<anonymous function>>', {
      validator: function validator() {
        var valid = validatorFn.apply(void 0, arguments);
        if (!valid) (0, _utils.warn)(this._vueTypes_name + " - " + warnMsg);
        return valid;
      }
    });
  },
  oneOf: function oneOf(arr) {
    if (!(0, _utils.isArray)(arr)) {
      throw new TypeError('[VueTypes error]: You must provide an array as argument');
    }
    var msg = "oneOf - value should be one of \"" + arr.join('", "') + "\"";
    var allowedTypes = arr.reduce(function (ret, v) {
      if (v !== null && v !== undefined) {
        ret.indexOf(v.constructor) === -1 && ret.push(v.constructor);
      }
      return ret;
    }, []);
    return (0, _utils.toType)('oneOf', {
      type: allowedTypes.length > 0 ? allowedTypes : null,
      validator: function validator(value) {
        var valid = arr.indexOf(value) !== -1;
        if (!valid) (0, _utils.warn)(msg);
        return valid;
      }
    });
  },
  instanceOf: function instanceOf(instanceConstructor) {
    return (0, _utils.toType)('instanceOf', {
      type: instanceConstructor
    });
  },
  oneOfType: function oneOfType(arr) {
    if (!(0, _utils.isArray)(arr)) {
      throw new TypeError('[VueTypes error]: You must provide an array as argument');
    }
    var hasCustomValidators = false;
    var nativeChecks = arr.reduce(function (ret, type) {
      if ((0, _lodash.default)(type)) {
        if (type._vueTypes_name === 'oneOf') {
          return ret.concat(type.type || []);
        }
        if (type.type && !(0, _utils.isFunction)(type.validator)) {
          if ((0, _utils.isArray)(type.type)) return ret.concat(type.type);
          ret.push(type.type);
        } else if ((0, _utils.isFunction)(type.validator)) {
          hasCustomValidators = true;
        }
        return ret;
      }
      ret.push(type);
      return ret;
    }, []);
    if (!hasCustomValidators) {
      // we got just native objects (ie: Array, Object)
      // delegate to Vue native prop check
      return (0, _utils.toType)('oneOfType', {
        type: nativeChecks
      }).def(undefined);
    }
    var typesStr = arr.map(function (type) {
      if (type && (0, _utils.isArray)(type.type)) {
        return type.type.map(_utils.getType);
      }
      return (0, _utils.getType)(type);
    }).reduce(function (ret, type) {
      return ret.concat((0, _utils.isArray)(type) ? type : [type]);
    }, []).join('", "');
    return this.custom(function oneOfType(value) {
      var valid = arr.some(function (type) {
        if (type._vueTypes_name === 'oneOf') {
          return type.type ? (0, _utils.validateType)(type.type, value, true) : true;
        }
        return (0, _utils.validateType)(type, value, true);
      });
      if (!valid) (0, _utils.warn)("oneOfType - value type should be one of \"" + typesStr + "\"");
      return valid;
    }).def(undefined);
  },
  arrayOf: function arrayOf(type) {
    return (0, _utils.toType)('arrayOf', {
      type: Array,
      validator: function validator(values) {
        var valid = values.every(function (value) {
          return (0, _utils.validateType)(type, value);
        });
        if (!valid) (0, _utils.warn)("arrayOf - value must be an array of \"" + (0, _utils.getType)(type) + "\"");
        return valid;
      }
    });
  },
  objectOf: function objectOf(type) {
    return (0, _utils.toType)('objectOf', {
      type: Object,
      validator: function validator(obj) {
        var valid = Object.keys(obj).every(function (key) {
          return (0, _utils.validateType)(type, obj[key]);
        });
        if (!valid) (0, _utils.warn)("objectOf - value must be an object of \"" + (0, _utils.getType)(type) + "\"");
        return valid;
      }
    });
  },
  shape: function shape(obj) {
    var keys = Object.keys(obj);
    var requiredKeys = keys.filter(function (key) {
      return obj[key] && obj[key].required === true;
    });
    var type = (0, _utils.toType)('shape', {
      type: Object,
      validator: function validator(value) {
        var _this = this;
        if (!(0, _lodash.default)(value)) {
          return false;
        }
        var valueKeys = Object.keys(value);

        // check for required keys (if any)
        if (requiredKeys.length > 0 && requiredKeys.some(function (req) {
          return valueKeys.indexOf(req) === -1;
        })) {
          (0, _utils.warn)("shape - at least one of required properties \"" + requiredKeys.join('", "') + "\" is not present");
          return false;
        }
        return valueKeys.every(function (key) {
          if (keys.indexOf(key) === -1) {
            if (_this._vueTypes_isLoose === true) return true;
            (0, _utils.warn)("shape - object is missing \"" + key + "\" property");
            return false;
          }
          var type = obj[key];
          return (0, _utils.validateType)(type, value[key]);
        });
      }
    });
    Object.defineProperty(type, '_vueTypes_isLoose', {
      enumerable: false,
      writable: true,
      value: false
    });
    Object.defineProperty(type, 'loose', {
      get: function get() {
        this._vueTypes_isLoose = true;
        return this;
      },
      enumerable: false
    });
    return type;
  }
};
var typeDefaults = function typeDefaults() {
  return {
    func: undefined,
    bool: undefined,
    string: undefined,
    number: undefined,
    array: undefined,
    object: undefined,
    integer: undefined
  };
};
var currentDefaults = typeDefaults();
Object.defineProperty(VuePropTypes, 'sensibleDefaults', {
  enumerable: false,
  set: function set(value) {
    if (value === false) {
      currentDefaults = {};
    } else if (value === true) {
      currentDefaults = typeDefaults();
    } else if ((0, _lodash.default)(value)) {
      currentDefaults = value;
    }
  },
  get: function get() {
    return currentDefaults;
  }
});
var _default = exports.default = VuePropTypes;

/***/ }),

/***/ 84:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Option_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Option_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Option_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
var render, staticRenderFns




/* normalize component */

var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(
  _Option_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__["default"],
  render,
  staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 88:
/***/ (function(module, exports) {

module.exports = require("proj4");

/***/ }),

/***/ 9:
/***/ (function(module, exports) {

module.exports = require("vue-property-decorator");

/***/ })

/******/ });