????

Your IP : 13.59.252.174


Current Path : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/
Upload File :
Current File : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/6-es5.js

(function () {
  var absMids = {
    "esri/layers/graphics/data/projectionSupport": "./node_modules/arcgis-js-api/layers/graphics/data/projectionSupport.js",
    "esri/views/2d/layers/features/support/AttributeStore": "./node_modules/arcgis-js-api/views/2d/layers/features/support/AttributeStore.js",
    "esri/views/2d/layers/graphics/graphicsUtils": "./node_modules/arcgis-js-api/views/2d/layers/graphics/graphicsUtils.js"
  };
  var globalObj = this || window;
  var jsonpArray = globalObj["webpackJsonp"] = globalObj["webpackJsonp"] || [];

  if (jsonpArray.registerAbsMids) {
    jsonpArray.registerAbsMids(absMids);
  } else {
    var absMidsWaiting = jsonpArray.absMidsWaiting = jsonpArray.absMidsWaiting || [];
    absMidsWaiting.push(absMids);
  }
})(), (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[6], {
  /***/
  "./node_modules/arcgis-js-api/layers/graphics/data/projectionSupport.js":
  /*!******************************************************************************!*\
    !*** ./node_modules/arcgis-js-api/layers/graphics/data/projectionSupport.js ***!
    \******************************************************************************/

  /*! no static exports found */

  /***/
  function node_modulesArcgisJsApiLayersGraphicsDataProjectionSupportJs(module, exports, __webpack_require__) {
    var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; // COPYRIGHT © 2019 Esri
    //
    // All rights reserved under the copyright laws of the United States
    // and applicable international laws, treaties, and conventions.
    //
    // This material is licensed for use under the Esri Master License
    // Agreement (MLA), and is bound by the terms of that agreement.
    // You may redistribute and use this code without modification,
    // provided you adhere to the terms of the MLA and include this
    // copyright notice.
    //
    // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
    //
    // For additional information, contact:
    // Environmental Systems Research Institute, Inc.
    // Attn: Contracts and Legal Services Department
    // 380 New York Street
    // Redlands, California, USA 92373
    // USA
    //
    // email: contracts@esri.com
    //
    // See http://js.arcgis.com/4.14/esri/copyright.txt for details.


    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i), exports, __webpack_require__(
    /*! ../../../core/tsSupport/generatorHelper */
    "./node_modules/arcgis-js-api/core/tsSupport/generatorHelper.js"), __webpack_require__(
    /*! ../../../core/tsSupport/awaiterHelper */
    "./node_modules/arcgis-js-api/core/tsSupport/awaiterHelper.js"), __webpack_require__(
    /*! ../../../core/Error */
    "./node_modules/arcgis-js-api/core/Error.js"), __webpack_require__(
    /*! ../../../core/promiseUtils */
    "./node_modules/arcgis-js-api/core/promiseUtils.js"), __webpack_require__(
    /*! ../../../geometry/projection */
    "./node_modules/arcgis-js-api/geometry/projection.js"), __webpack_require__(
    /*! ../../../geometry/support/spatialReferenceUtils */
    "./node_modules/arcgis-js-api/geometry/support/spatialReferenceUtils.js"), __webpack_require__(
    /*! ../../../geometry/support/webMercatorUtils */
    "./node_modules/arcgis-js-api/geometry/support/webMercatorUtils.js")], __WEBPACK_AMD_DEFINE_RESULT__ = function (e, r, t, n, i, o, s, a, u) {
      function p(e, r) {
        var t, n, i;
        if (!r) return null;

        if ("x" in r) {
          var o = {
            x: 0,
            y: 0
          };
          return t = e(r.x, r.y, y), o.x = t[0], o.y = t[1], null != r.z && (o.z = r.z), null != r.m && (o.m = r.m), o;
        }

        if ("xmin" in r) {
          var o = {
            xmin: 0,
            ymin: 0,
            xmax: 0,
            ymax: 0
          };
          return n = e(r.xmin, r.ymin, y), o.xmin = n[0], o.ymin = n[1], i = e(r.xmax, r.ymax, y), o.xmax = i[0], o.ymax = i[1], r.hasZ && (o.zmin = r.zmin, o.zmax = r.zmax, o.hasZ = !0), r.hasM && (o.mmin = r.mmin, o.mmax = r.mmax, o.hasM = !0), o;
        }

        return "rings" in r ? {
          rings: c(r.rings, e),
          hasM: r.hasM,
          hasZ: r.hasZ
        } : "paths" in r ? {
          paths: c(r.paths, e),
          hasM: r.hasM,
          hasZ: r.hasZ
        } : "points" in r ? {
          points: l(r.points, e),
          hasM: r.hasM,
          hasZ: r.hasZ
        } : void 0;
      }

      function c(e, r) {
        for (var t = [], n = 0, i = e; n < i.length; n++) {
          var o = i[n];
          t.push(l(o, r));
        }

        return t;
      }

      function l(e, r) {
        for (var t = [], n = 0, i = e; n < i.length; n++) {
          var o = i[n],
              s = r(o[0], o[1], [0, 0]);
          t.push(s), o.length > 2 && s.push(o[2]), o.length > 3 && s.push(o[3]);
        }

        return t;
      }

      function h(e, r) {
        return !m(e, r) || s.isSupported();
      }

      function f(e, r) {
        return n(this, void 0, void 0, function () {
          var n, o, a;
          return t(this, function (t) {
            if (!r) return [2];

            if (Array.isArray(e)) {
              for (n = 0, o = e; n < o.length; n++) if (a = o[n], m(a.geometry && a.geometry.spatialReference, r)) {
                if (s.isSupported()) return [2, s.load()];
                throw new i(x, "projection not supported", {
                  inSpatialReference: e,
                  outSpatialReference: r
                });
              }

              return [2];
            }

            if (!m(e, r)) return [2];
            if (s.isSupported()) return [2, s.load()];
            throw new i(x, "projection not supported", {
              inSpatialReference: e,
              outSpatialReference: r
            });
          });
        });
      }

      function m(e, r) {
        return !(!a.isValid(e) || !a.isValid(r) || a.equals(e, r) || u.canProject(e, r));
      }

      function d(e, r, t) {
        return e ? (t || (t = r, r = e.spatialReference), a.isValid(r) && a.isValid(t) && !a.equals(r, t) ? u.canProject(r, t) ? a.isWebMercator(t) ? g(e) : j(e) : s.projectMany([e], r, t, null, !0)[0] : e) : e;
      }

      function v(e, r, i) {
        return n(this, void 0, void 0, function () {
          return t(this, function (t) {
            return [2, M.push(e, r, i)];
          });
        });
      }

      Object.defineProperty(r, "__esModule", {
        value: !0
      });
      var x = "feature-store:unsupported-query",
          y = [0, 0];
      r.doesBrowserSupportProjection = h, r.checkProjectionSupport = f;
      var g = p.bind(null, u.lngLatToXY),
          j = p.bind(null, u.xyToLngLat);
      r.project = d;

      var _ = function () {
        function e() {
          this._jobs = [], this._timer = null, this._process = this._process.bind(this);
        }

        return e.prototype.push = function (e, r, i) {
          return n(this, void 0, void 0, function () {
            var n,
                s = this;
            return t(this, function (t) {
              return e && e.length && r && i && !a.equals(r, i) || o.resolve(e), n = {
                geometries: e,
                inSpatialReference: r,
                outSpatialReference: i,
                resolve: null
              }, this._jobs.push(n), [2, o.create(function (e) {
                n.resolve = e, null === s._timer && (s._timer = setTimeout(s._process, 10));
              }, function () {
                var e = s._jobs.indexOf(n);

                e > -1 && s._jobs.splice(e, 1);
              })];
            });
          });
        }, e.prototype._process = function () {
          this._timer = null;

          var e = this._jobs.shift();

          if (e) {
            var r = e.geometries,
                t = e.inSpatialReference,
                n = e.outSpatialReference,
                i = e.resolve;
            i(u.canProject(t, n) ? a.isWebMercator(n) ? r.map(g) : r.map(j) : s.projectMany(r, t, n, null, !0)), this._jobs.length > 0 && (this._timer = setTimeout(this._process, 10));
          }
        }, e;
      }(),
          M = new _();

      r.projectMany = v;
    }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
    /***/
  },

  /***/
  "./node_modules/arcgis-js-api/views/2d/layers/features/support/AttributeStore.js":
  /*!***************************************************************************************!*\
    !*** ./node_modules/arcgis-js-api/views/2d/layers/features/support/AttributeStore.js ***!
    \***************************************************************************************/

  /*! no static exports found */

  /***/
  function node_modulesArcgisJsApiViews2dLayersFeaturesSupportAttributeStoreJs(module, exports, __webpack_require__) {
    var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; // COPYRIGHT © 2019 Esri
    //
    // All rights reserved under the copyright laws of the United States
    // and applicable international laws, treaties, and conventions.
    //
    // This material is licensed for use under the Esri Master License
    // Agreement (MLA), and is bound by the terms of that agreement.
    // You may redistribute and use this code without modification,
    // provided you adhere to the terms of the MLA and include this
    // copyright notice.
    //
    // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
    //
    // For additional information, contact:
    // Environmental Systems Research Institute, Inc.
    // Attn: Contracts and Legal Services Department
    // 380 New York Street
    // Redlands, California, USA 92373
    // USA
    //
    // email: contracts@esri.com
    //
    // See http://js.arcgis.com/4.14/esri/copyright.txt for details.


    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i), exports, __webpack_require__(
    /*! ../../../../../core/tsSupport/generatorHelper */
    "./node_modules/arcgis-js-api/core/tsSupport/generatorHelper.js"), __webpack_require__(
    /*! ../../../../../core/tsSupport/awaiterHelper */
    "./node_modules/arcgis-js-api/core/tsSupport/awaiterHelper.js"), __webpack_require__(
    /*! ../../../../../core/Error */
    "./node_modules/arcgis-js-api/core/Error.js"), __webpack_require__(
    /*! ../../../../../core/has */
    "./node_modules/arcgis-js-api/core/has.js"), __webpack_require__(
    /*! ../../../../../core/Logger */
    "./node_modules/arcgis-js-api/core/Logger.js"), __webpack_require__(
    /*! ../../../../../core/mathUtils */
    "./node_modules/arcgis-js-api/core/mathUtils.js"), __webpack_require__(
    /*! ../../../../../core/maybe */
    "./node_modules/arcgis-js-api/core/maybe.js"), __webpack_require__(
    /*! ../../../../../core/promiseUtils */
    "./node_modules/arcgis-js-api/core/promiseUtils.js"), __webpack_require__(
    /*! ../../../../../layers/support/FieldsIndex */
    "./node_modules/arcgis-js-api/layers/support/FieldsIndex.js"), __webpack_require__(
    /*! ../../../../../support/arcadeOnDemand */
    "./node_modules/arcgis-js-api/support/arcadeOnDemand.js"), __webpack_require__(
    /*! ../../../../webgl */
    "./node_modules/arcgis-js-api/views/webgl.js"), __webpack_require__(
    /*! ../../../engine */
    "./node_modules/arcgis-js-api/views/2d/engine.js"), __webpack_require__(
    /*! ../../../arcade/utils */
    "./node_modules/arcgis-js-api/views/2d/arcade/utils.js"), __webpack_require__(
    /*! ../../../engine/webgl/definitions */
    "./node_modules/arcgis-js-api/views/2d/engine/webgl/definitions.js"), __webpack_require__(
    /*! ../tileRenderers/support/visualVariablesUtils */
    "./node_modules/arcgis-js-api/views/2d/layers/features/tileRenderers/support/visualVariablesUtils.js"), __webpack_require__(
    /*! @dojo/framework/shim/Promise */
    "./node_modules/@dojo/framework/shim/Promise.mjs")], __WEBPACK_AMD_DEFINE_RESULT__ = function (t, e, r, i, n, s, a, o, u, l, c, h, p, d, f, _, g) {
      Object.defineProperty(e, "__esModule", {
        value: !0
      });

      var y = (p.enums.PixelType, a.getLogger("esri.views.layers.2d.features.support.AttributeStore")),
          b = d.debug.createDebugLogger(d.debug.DEBUG_ATTR_UPDATES, y),
          v = function v(t) {
        return (2147483648 & t) >>> 31;
      },
          m = function m(t) {
        return 2147483647 & t;
      },
          x = function x(t) {
        return 1 === v(t) ? 254 : 255;
      },
          T = function T(t, e) {
        return ((e ? 2147483648 : 0) | t) >>> 0;
      },
          D = function D(t, e) {
        return function (r, i, n) {
          var s;

          try {
            s = e(r, i, n);
          } catch (t) {
            s = NaN;
          }

          return (null === s || isNaN(s) || s === 1 / 0) && t || s;
        };
      },
          E = {
        sharedArrayBuffer: s("esri-shared-array-buffer"),
        oesTextureFloat: s("esri-webgl-texture-float"),
        maxTextureSize: s("esri-webgl-max-texture-size"),
        atomics: s("esri-atomics")
      },
          A = function () {
        function t(t, e, r, i) {
          this.texelSize = 4;
          var n = i.pixelType,
              s = i.layout,
              a = i.textureOnly;
          this.textureOnly = a || !1, this.pixelType = n, this._ctype = e, this.layout = s, this._resetRange(), this._shared = t, a || (this.data = this._initData(n, r, t, e));
        }

        return Object.defineProperty(t.prototype, "buffer", {
          get: function get() {
            return u.andThen(this.data, function (t) {
              return t.buffer;
            });
          },
          enumerable: !0,
          configurable: !0
        }), t.prototype.getData = function (t, e) {
          var r = m(t);
          return u.expect(this.data)[r * this.texelSize + e];
        }, t.prototype.setData = function (t, e, r) {
          var i = m(t),
              n = 1 << e;
          if (0 == (this.layout & n)) return void y.error("mapview-attributes-store", "Tried to set a value for a texel's readonly component");
          this.data[i * this.texelSize + e] = r, this.dirtyStart = Math.min(this.dirtyStart, i), this.dirtyEnd = Math.max(this.dirtyEnd, i);
        }, t.prototype.lock = function () {
          if (5121 !== this.pixelType) return void (s("esri-2d-debug") && y.error("AttributeStore-Bad-Type", "Tried to unlock non integer array type with float array"));
          this._shared && E.atomics && "local" !== this._ctype && Atomics.store(this.data, 0, 1);
        }, t.prototype.unlock = function () {
          if (5121 !== this.pixelType) return void (s("esri-2d-debug") && y.error("AttributeStore-Bad-Type", "Tried to unlock non integer array type with float array"));
          this._shared && E.atomics && "local" !== this._ctype && Atomics.store(this.data, 0, 0);
        }, t.prototype.expand = function (t) {
          if (!this.textureOnly) {
            var e = this._initData(this.pixelType, t, this._shared, this._ctype),
                r = u.expect(this.data);

            e.set(r), this.data = e;
          }
        }, t.prototype.toMessage = function () {
          var t = this.dirtyStart,
              e = this.dirtyEnd,
              r = this.texelSize;
          if (t > e) return null;

          this._resetRange();

          var i = !(this._shared || "local" === this._ctype),
              n = this.pixelType,
              s = this.layout,
              a = u.expect(this.data);

          if (!a.slice) {
            if (!i) return {
              start: t,
              end: e,
              data: null,
              pixelType: n,
              layout: s
            };
            return {
              start: t,
              end: e,
              data: new (d.Utils.getPixelArrayCtor(this.pixelType))(Array.prototype.slice.call(this.data, t * r, (e + 1) * r)),
              pixelType: n,
              layout: s
            };
          }

          return {
            start: t,
            end: e,
            data: i && a.slice(t * r, (e + 1) * r) || null,
            pixelType: n,
            layout: s
          };
        }, t.prototype._initData = function (t, e, r, i) {
          for (var n = r && "local" !== i ? SharedArrayBuffer : ArrayBuffer, s = d.Utils.getPixelArrayCtor(t), a = s.BYTES_PER_ELEMENT, o = new s(new n(e * e * 4 * a)), u = 0; u < o.length; u += 4) o[u + 1] = 255;

          return o;
        }, t.prototype._resetRange = function () {
          this.dirtyStart = 2147483647, this.dirtyEnd = 0;
        }, t;
      }(),
          S = function () {
        function e(t) {
          this._attributeComputeMap = new Map(), this._blocks = new Array(), this._idMap = new Map(), this._localToObjectId = new Map(), this._filters = new Array(d.definitions.MAX_FILTERS), this._freeTexelsList = [], this._abortController = l.createAbortController(), this._hasScaleExpr = !1, this._size = 32, this._idCounter = 1, this._idsToHighlight = new Set();
          var e = E.oesTextureFloat ? 5126 : 5121;
          b("Creating AttributeStore " + (E.sharedArrayBuffer ? "with" : "without") + " shared memory"), s("esri-2d-debug") && E.sharedArrayBuffer && !E.atomics && y.warn("Browser supports SharedArrayBuffer but not Atomics. Rendering may be impacted"), this._client = t, this._blockDescriptors = [{
            pixelType: 5121,
            layout: 1
          }, {
            pixelType: 5121,
            layout: 15,
            textureOnly: !0
          }, {
            pixelType: e,
            layout: 15
          }, {
            pixelType: e,
            layout: 15
          }], this._blocks = this._blockDescriptors.map(function () {
            return null;
          });
        }

        return e.prototype.destroy = function () {
          this._abortController.abort();
        }, Object.defineProperty(e.prototype, "hasScaleExpr", {
          get: function get() {
            return this._hasScaleExpr;
          },
          enumerable: !0,
          configurable: !0
        }), Object.defineProperty(e.prototype, "_signal", {
          get: function get() {
            return this._abortController.signal;
          },
          enumerable: !0,
          configurable: !0
        }), e.prototype.invalidateResources = function () {
          this._createResourcesPromise = null, this._abortController.abort(), this._abortController = l.createAbortController();
        }, e.prototype.createLocalId = function (t, e) {
          if (void 0 === e && (e = !1), !this._idMap.has(t)) {
            var r = T(this._getFreeTexel(), e);
            this._idMap.set(t, -1 === r ? 0 : r), this._localToObjectId.set(r, t);
          }

          return this._idMap.get(t);
        }, e.prototype.addLocalId = function (t) {
          this._getBlock(0).setData(t, 0, 0), this._freeTexelsList.push(m(t));
        }, e.prototype.removeLocalId = function (t) {
          var e = this._idMap.get(t);

          return this._idMap["delete"](t), this._localToObjectId["delete"](e), e;
        }, e.prototype.freeLocalId = function (t) {
          var e = this._idMap.get(t);

          s("esri-2d-debug") && !e && console.debug("Called freeLocalId for an invalid id"), this._getBlock(0).setData(e, 0, 0), this._idMap["delete"](t), this._localToObjectId["delete"](e), this._freeTexelsList.push(m(e));
        }, e.prototype.getFeatureId = function (t) {
          return this._localToObjectId.get(t);
        }, e.prototype.getLocalId = function (t) {
          return this._idMap.has(t) ? this._idMap.get(t) : null;
        }, e.prototype.setHighlight = function (t) {
          return i(this, void 0, void 0, function () {
            var e,
                i,
                n,
                s,
                a,
                o,
                u,
                l = this;
            return r(this, function (r) {
              switch (r.label) {
                case 0:
                  for (e = 1, this._getBlock(0).lock(), this._idsToHighlight.forEach(function (t) {
                    var r = l.getLocalId(t);

                    if (r) {
                      var i = l._getBlock(0).getData(r, 0);

                      l._getBlock(0).setData(r, 0, i & ~e);
                    }
                  }), this._idsToHighlight.clear(), i = 0, n = t; i < n.length; i++) s = n[i], this._idsToHighlight.add(s);

                  for (a = 0; a < t.length; a++) null != (o = this.getLocalId(t[a])) && (u = this._getBlock(0).getData(o, 0), this._getBlock(0).setData(o, 0, u | e));

                  return this._getBlock(0).unlock(), [4, this.sendUpdates()];

                case 1:
                  return r.sent(), [2];
              }
            });
          });
        }, e.prototype.addHighlight = function () {
          return i(this, void 0, void 0, function () {
            return r(this, function (t) {
              return [2];
            });
          });
        }, e.prototype.removeHighlight = function () {
          return i(this, void 0, void 0, function () {
            return r(this, function (t) {
              return [2];
            });
          });
        }, e.prototype.updateFilters = function (t) {
          return i(this, void 0, void 0, function () {
            var e,
                i,
                n,
                s,
                a,
                o = this;
            return r(this, function (r) {
              switch (r.label) {
                case 0:
                  return e = t.config, i = t.service, n = t.spatialReference, s = e.filters, a = s.map(function (e, r) {
                    return o._updateFilter(t, e, r, i, n);
                  }), [4, l.all(a)];

                case 1:
                  return r.sent(), [2];
              }
            });
          });
        }, e.prototype.setAttributeBindings = function (t, e) {
          return i(this, void 0, void 0, function () {
            return r(this, function (r) {
              switch (this._hasScaleExpr = !1, t.type) {
                case "simple":
                case "class-breaks":
                case "unique-value":
                case "dictionary":
                  return [2, this._bindVVEvaluators(t.visualVariables, e)];

                case "dot-density":
                  return [2, this._bindDDEvaluators(t.attributes, e)];

                case "heatmap":
                  break;

                default:
                  y.error(new n("attribute-store", "Found invalid renderer type: " + t));
              }

              return [2];
            });
          });
        }, e.prototype.setData = function (t, e, r, i) {
          this._getBlock(e).setData(t, r, i);
        }, e.prototype.getData = function (t, e, r) {
          return this._getBlock(e).getData(t, r);
        }, e.prototype.getHighlightFlag = function (t) {
          return this._idsToHighlight.has(t) ? _.HIGHLIGHT_FLAG : 0;
        }, e.prototype.setAttributeData = function (t, e, r, i) {
          var n = this,
              s = t;

          this._getBlock(0).setData(s, 0, this.getFilterFlags(e));

          var a = this._attributeComputeMap,
              u = E.oesTextureFloat ? 1 : 2;
          a.forEach(function (t, a) {
            var l = a * u % 4,
                c = Math.floor(a * u / 4),
                h = n._getBlock(c + _.ATTRIBUTE_DATA_VV),
                p = t(e, {
              $view: i
            }, r);

            if (E.oesTextureFloat) h.setData(s, l, p);else if (p === d.definitions.NAN_MAGIC_NUMBER) h.setData(s, l, 255), h.setData(s, l + 1, 255);else {
              var f = o.clamp(Math.round(p), -32767, 32766) + 32768,
                  g = 255 & f,
                  y = (65280 & f) >> 8;
              h.setData(s, l, g), h.setData(s, l + 1, y);
            }
          });
        }, e.prototype.sendUpdates = function () {
          var t = this;
          if (this._nextUpdate) return this._nextUpdate.promise;
          if (this._currUpdate) return this._nextUpdate = l.createResolver(), this._nextUpdate.promise;

          var e = this._blocks.map(function (t) {
            return u.isSome(t) ? t.toMessage() : null;
          }),
              r = {
            blocks: e
          };

          return this._currUpdate = this._createResources().then(function () {
            var e = function e() {
              if (t._currUpdate = null, t._nextUpdate) {
                var e = t._nextUpdate;
                t._nextUpdate = null, t.sendUpdates().then(function () {
                  return e.resolve();
                });
              }
            },
                i = t._client.update(r, t._signal).then(e)["catch"](e);

            return t._client.render(), i;
          })["catch"](function (e) {
            return l.isAbortError(e) ? (t._createResourcesPromise = null, t._createResources()) : (y.error(new n("mapview-attribute-store", "Encountered an error during client update", e)), l.resolve());
          }), this._currUpdate;
        }, e.prototype._createResources = function () {
          var t = this;
          if (u.isSome(this._createResourcesPromise)) return this._createResourcesPromise;
          this._getBlock(_.ATTRIBUTE_DATA_ANIMATION), b("Initializing AttributeStore");

          var e = {
            shared: E.sharedArrayBuffer && !("local" === this._client.type),
            size: this._size,
            blocks: u.mapMany(this._blocks, function (t) {
              return {
                textureOnly: t.textureOnly,
                buffer: t.buffer,
                pixelType: t.pixelType
              };
            })
          },
              r = this._client.initialize(e, this._signal)["catch"](function (e) {
            l.isAbortError(e) && (t._createResourcesPromise = null), y.error(new n("mapview-attribute-store", "Encountered an error during client initialization", e));
          });

          return this._createResourcesPromise = r, r.then(function () {
            return u.isNone(t._createResourcesPromise) ? t._createResources() : void 0;
          }), r;
        }, e.prototype._getBlock = function (t) {
          var e = this._blocks[t];
          if (u.isSome(e)) return e;
          b("Initializing AttributeBlock at index " + t);
          var r = E.sharedArrayBuffer,
              i = this._client.type,
              n = new A(r, i, this._size, this._blockDescriptors[t]);
          return this._blocks[t] = n, this._createResourcesPromise = null, n;
        }, e.prototype._expand = function () {
          if (this._size < E.maxTextureSize) {
            var t = this._size <<= 1;
            return b("Expanding block size to", t, this._blocks), u.forEachSome(this._blocks, function (e) {
              return e.expand(t);
            }), this._createResourcesPromise = null, this._size = t, 0;
          }

          return y.error(new n("mapview-limitations", "Maximum number of onscreen features exceeded.")), -1;
        }, e.prototype._getFreeTexel = function () {
          return this._freeTexelsList.length ? this._freeTexelsList.pop() : this._idCounter >= this._size * this._size && this._expand() ? -1 : this._idCounter++;
        }, e.prototype._updateFilter = function (t, e, n, s, a) {
          return i(this, void 0, void 0, function () {
            var i,
                o,
                l,
                c,
                h,
                p,
                d,
                f,
                _,
                g = this;

            return r(this, function (r) {
              switch (r.label) {
                case 0:
                  return i = this._filters[n], (o = u.isSome(i) && i.hash) === JSON.stringify(e) ? [2] : (l = 1 << n + 1, u.isNone(e) ? (this._filters[n] = null, this._idMap.forEach(function (t) {
                    var e = g._getBlock(0).getData(t, 0);

                    g._getBlock(0).setData(t, 0, e | l);
                  }), [2]) : [4, t.queryObjectIds(e)]);

                case 1:
                  return c = r.sent(), e.hiddenIds && e.hiddenIds.length && (c = c.filter(function (t) {
                    return -1 === e.hiddenIds.indexOf(t);
                  })), h = c.map(function (t) {
                    return g._idMap.get(t);
                  }), [4, this._getFilter(n, s)];

                case 2:
                  for (p = r.sent(), p.update(e, a), this._getBlock(0).lock(), this._idMap.forEach(function (t) {
                    if (1 !== v(t)) {
                      var e = g._getBlock(0).getData(t, 0);

                      g._getBlock(0).setData(t, 0, e & ~l);
                    }
                  }), d = 0; d < h.length; d++) null != (f = h[d]) && (_ = this._getBlock(0).getData(f, 0), this._getBlock(0).setData(f, 0, _ | l));

                  return this._getBlock(0).unlock(), [2];
              }
            });
          });
        }, e.prototype._getFilter = function (e, n) {
          return i(this, void 0, void 0, function () {
            var i, s, a;
            return r(this, function (r) {
              switch (r.label) {
                case 0:
                  return i = this._filters[e], u.isSome(i) ? [2, i] : [4, new Promise(function (e, r) {
                    Promise.all(
                    /*! AMD require */
                    [__webpack_require__.e(3), __webpack_require__.e(7), __webpack_require__.e(90)]).then(function () {
                      var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(
                      /*! ../../../../../layers/graphics/data/FeatureFilter */
                      "./node_modules/arcgis-js-api/layers/graphics/data/FeatureFilter.js")];
                      e.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);
                    }.bind(this))["catch"](r.bind(this));
                  })];

                case 1:
                  return s = r.sent()["default"], a = new s({
                    geometryType: n.geometryType,
                    hasM: !1,
                    hasZ: !1,
                    timeInfo: n.timeInfo,
                    fieldsIndex: new c(n.fields)
                  }), this._filters[e] = a, [2, a];
              }
            });
          });
        }, e.prototype.isVisible = function (t) {
          return !!(2 & this._getBlock(0).getData(t.localId, 0));
        }, e.prototype.getFilterFlags = function (t) {
          for (var e = 0, r = x(t.localId), i = 0; i < this._filters.length; i++) {
            var n = !!(r & 1 << i),
                s = this._filters[i];
            e |= (!n || u.isNone(s) || s.check(t) ? 1 : 0) << i;
          }

          var a = this.getFeatureId(t.localId);
          return e << 1 | this.getHighlightFlag(a);
        }, e.prototype._bindVVEvaluators = function (t, e) {
          return i(this, void 0, void 0, function () {
            var n,
                s = this;
            return r(this, function (a) {
              switch (a.label) {
                case 0:
                  return this._attributeComputeMap.clear(), u.isSome(t) ? (n = l.all(t.map(function (t) {
                    return i(s, void 0, void 0, function () {
                      var i, n;
                      return r(this, function (r) {
                        switch (r.label) {
                          case 0:
                            return i = d.Utils.getVVType(t.type), [4, this._createGetValueFunction(t, e)];

                          case 1:
                            return n = r.sent(), u.isSome(n) && this._attributeComputeMap.set(i, n), [2];
                        }
                      });
                    });
                  })), [4, n]) : [3, 2];

                case 1:
                  a.sent(), a.label = 2;

                case 2:
                  return [2];
              }
            });
          });
        }, e.prototype._bindDDEvaluators = function (t, e) {
          return i(this, void 0, void 0, function () {
            var i,
                n,
                s,
                a = this;
            return r(this, function (r) {
              switch (r.label) {
                case 0:
                  return this._attributeComputeMap.clear(), t.length > d.definitions.DOT_DENSITY_MAX_FIELDS && y.warn("mapview-invalid-value", "DotDensityRenderer supports a maximum of " + d.definitions.DOT_DENSITY_MAX_FIELDS + " attribtues, but found " + t.length), [4, l.all(t.map(function (t) {
                    return a._createNormalizedFunction(t, e);
                  }))];

                case 1:
                  for (i = r.sent().map(function (t) {
                    return D(0, t);
                  }), n = 0; n < d.definitions.DOT_DENSITY_MAX_FIELDS; n++) s = n < t.length && i[n], s ? this._attributeComputeMap.set(n, s) : this._attributeComputeMap.has(n) && this._attributeComputeMap["delete"](n);

                  return [2];
              }
            });
          });
        }, e.prototype._createGetValueFunction = function (t, e) {
          return i(this, void 0, void 0, function () {
            var i, n, s, a, o, u, l;
            return r(this, function (r) {
              switch (r.label) {
                case 0:
                  return "size" !== t.type ? [3, 2] : (i = d.getTypeOfSizeVisualVariable(t)) === d.enums.WGLVVFlag.SIZE_SCALE_STOPS ? [2, null] : (n = i === d.enums.WGLVVFlag.SIZE_UNIT_VALUE, s = n && function (e) {
                    return g.getVisualVariableSizeValueRepresentationRatio(e, t.valueRepresentation);
                  }, a = D, o = [d.definitions.NAN_MAGIC_NUMBER], [4, this._createNormalizedFunction(t, e, s)]);

                case 1:
                  return [2, a.apply(void 0, o.concat([r.sent()]))];

                case 2:
                  return u = D, l = [d.definitions.NAN_MAGIC_NUMBER], [4, this._createNormalizedFunction(t, e)];

                case 3:
                  return [2, u.apply(void 0, l.concat([r.sent()]))];
              }
            });
          });
        }, e.prototype._createNormalizedFunction = function (t, e, s) {
          return i(this, void 0, void 0, function () {
            var i, a, o;
            return r(this, function (r) {
              switch (r.label) {
                case 0:
                  return (i = t.field) ? "string" == typeof i ? (a = t.normalizationField, a ? [2, function (t) {
                    if (t.attributes[i] && t.attributes[a]) {
                      var e = t.attributes[i] / t.attributes[a];
                      return s ? s(e) : e;
                    }
                  }] : [2, s ? function (t) {
                    return s(t.attributes[i]);
                  } : function (t) {
                    return t.attributes[i];
                  }]) : (y.error(new n("mapview-rendering:invalid-type", "The field for a vv must be a string or a number, but got " + typeof i)), [2, function () {}]) : t.valueExpression ? (this._hasScaleExpr = this._hasScaleExpr || -1 !== t.valueExpression.indexOf("scale"), [4, h.createVVExpression(t.valueExpression, e.spatialReference, e.fields)]) : [3, 2];

                case 1:
                  return o = r.sent(), [2, f.callWithOptimizedFeature.bind(null, o)];

                case 2:
                  return y.error("Unable to create a normalized function for visual variable: " + t), [2, function () {}];
              }
            });
          });
        }, e;
      }();

      e["default"] = S;
    }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
    /***/
  },

  /***/
  "./node_modules/arcgis-js-api/views/2d/layers/graphics/graphicsUtils.js":
  /*!******************************************************************************!*\
    !*** ./node_modules/arcgis-js-api/views/2d/layers/graphics/graphicsUtils.js ***!
    \******************************************************************************/

  /*! no static exports found */

  /***/
  function node_modulesArcgisJsApiViews2dLayersGraphicsGraphicsUtilsJs(module, exports, __webpack_require__) {
    var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; // COPYRIGHT © 2019 Esri
    //
    // All rights reserved under the copyright laws of the United States
    // and applicable international laws, treaties, and conventions.
    //
    // This material is licensed for use under the Esri Master License
    // Agreement (MLA), and is bound by the terms of that agreement.
    // You may redistribute and use this code without modification,
    // provided you adhere to the terms of the MLA and include this
    // copyright notice.
    //
    // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
    //
    // For additional information, contact:
    // Environmental Systems Research Institute, Inc.
    // Attn: Contracts and Legal Services Department
    // 380 New York Street
    // Redlands, California, USA 92373
    // USA
    //
    // email: contracts@esri.com
    //
    // See http://js.arcgis.com/4.14/esri/copyright.txt for details.


    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i), exports, __webpack_require__(
    /*! ../../../../core/maybe */
    "./node_modules/arcgis-js-api/core/maybe.js"), __webpack_require__(
    /*! ../../../../core/screenUtils */
    "./node_modules/arcgis-js-api/core/screenUtils.js"), __webpack_require__(
    /*! ../../../../core/libs/gl-matrix-2/mat2d */
    "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/mat2d.js"), __webpack_require__(
    /*! ../../../../core/libs/gl-matrix-2/mat2df32 */
    "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/mat2df32.js"), __webpack_require__(
    /*! ../../../../core/libs/gl-matrix-2/vec2 */
    "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/vec2.js"), __webpack_require__(
    /*! ../../../../core/libs/gl-matrix-2/vec2f32 */
    "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/vec2f32.js"), __webpack_require__(
    /*! ../../../../geometry/SpatialReference */
    "./node_modules/arcgis-js-api/geometry/SpatialReference.js"), __webpack_require__(
    /*! ../../../../geometry/support/aaBoundingRect */
    "./node_modules/arcgis-js-api/geometry/support/aaBoundingRect.js"), __webpack_require__(
    /*! ../../../../geometry/support/boundsUtils */
    "./node_modules/arcgis-js-api/geometry/support/boundsUtils.js"), __webpack_require__(
    /*! ../../../../geometry/support/intersects */
    "./node_modules/arcgis-js-api/geometry/support/intersects.js"), __webpack_require__(
    /*! ../../../../geometry/support/jsonUtils */
    "./node_modules/arcgis-js-api/geometry/support/jsonUtils.js"), __webpack_require__(
    /*! ../../../../geometry/support/normalizeUtils */
    "./node_modules/arcgis-js-api/geometry/support/normalizeUtils.js"), __webpack_require__(
    /*! ../../../../geometry/support/spatialReferenceUtils */
    "./node_modules/arcgis-js-api/geometry/support/spatialReferenceUtils.js"), __webpack_require__(
    /*! ../../../../geometry/support/spatialReferenceUtils */
    "./node_modules/arcgis-js-api/geometry/support/spatialReferenceUtils.js"), __webpack_require__(
    /*! ../../engine */
    "./node_modules/arcgis-js-api/views/2d/engine.js")], __WEBPACK_AMD_DEFINE_RESULT__ = function (e, t, r, a, n, i, s, m, c, o, l, x, v, f, u, p, h) {
      function g(e, t, r, a, n, i, s) {
        if (!a || !r) return e[0] = e[1] = e[2] = e[3] = 0, t[0] = t[1] = t[2] = t[3] = 0, e;
        var m = a;

        if (!v.isPoint(m)) {
          l.getBoundsXY(e, m);
          var c = t[0];
          0 === c && (c = w(r, n), t[0] = c);
          var o = i * c,
              x = o / 2;
          return e[0] -= x, e[1] -= x, e[2] += x, e[3] += x, e;
        }

        var f = m.x,
            u = m.y;
        return "text" === r.type && 0 === t[2] && 0 === t[3] && X(t, r, n), P(e, f, u, r, t, i, s), e;
      }

      function d(e) {
        return "simple-marker" === e || "picture-marker" === e || "text" === e;
      }

      function y(e) {
        switch (r.expect(e.geometry).type) {
          case "point":
          case "multipoint":
            return 0;

          case "polyline":
            return 1;

          case "polygon":
          case "extent":
            return 2;
        }

        return 0;
      }

      function M(e, t, r, a) {
        s.vec2.set(j, t, r);

        for (var n, i, m, c, o, l, x, v, f, u = e.paths, p = 1 / 0, h = 0; h < u.length; h++) {
          var g = u[h];
          if (!(g.length < 2)) for (var d = 1; d < g.length; d++) n = g[d - 1][0], m = g[d - 1][1], i = g[d][0], c = g[d][1], o = Math.min(n, i) - a, l = Math.min(m, c) - a, x = Math.max(n, i) + a, v = Math.max(m, c) + a, t < o || t > x || r < l || r > v || (s.vec2.set(O, n, m), s.vec2.set(Y, i, c), s.vec2.subtract(F, Y, O), s.vec2.subtract(K, O, j), s.vec2.scale(Q, F, s.vec2.dot(F, K) / s.vec2.dot(F, F)), s.vec2.subtract(V, K, Q), f = s.vec2.dot(V, V), p > f && (p = f));
        }

        return Math.sqrt(p) <= a;
      }

      function b(e, t, r, i, m) {
        var c,
            o,
            l = a.pt2px(r.xoffset),
            x = a.pt2px(r.yoffset),
            v = L * r.angle,
            f = L * m;

        switch (r.type) {
          case "simple-marker":
            var u = r;
            c = o = a.pt2px(u.size);
            break;

          case "picture-marker":
            var p = r;
            c = a.pt2px(p.width), o = a.pt2px(p.height);
        }

        var h = n.mat2d.identity(C);
        n.mat2d.translate(h, h, s.vec2.set(q, e, t)), n.mat2d.rotate(h, h, f - v), n.mat2d.scale(h, h, s.vec2.set(q, i, -i)), n.mat2d.translate(h, h, s.vec2.set(q, l, -x));
        var g = [0, 0];
        s.vec2.transformMat2d(g, s.vec2.set(q, -.5 * c, -.5 * o), h);
        var d = [0, 0];
        s.vec2.transformMat2d(d, s.vec2.set(q, -.5 * c, .5 * o), h);
        var y = [0, 0];
        s.vec2.transformMat2d(y, s.vec2.set(q, .5 * c, -.5 * o), h);
        var M = [0, 0];
        return s.vec2.transformMat2d(M, s.vec2.set(q, .5 * c, .5 * o), h), {
          rings: [[g, y, M, d, g]]
        };
      }

      function I(e, t, r, i, m) {
        var c = h.CIMSymbolHelper.getEnvelope(r.data);
        if (!c) return null;
        var o = a.pt2px(c.width),
            l = a.pt2px(c.height),
            x = a.pt2px(c.x),
            v = a.pt2px(c.y),
            f = 0 * L,
            u = L * m,
            p = n.mat2d.identity(C);
        n.mat2d.translate(p, p, s.vec2.set(q, e, t)), n.mat2d.rotate(p, p, u - f), n.mat2d.scale(p, p, s.vec2.set(q, i, i));
        var g = [0, 0];
        s.vec2.transformMat2d(g, s.vec2.set(q, x, v + l), p);
        var d = [0, 0];
        s.vec2.transformMat2d(d, s.vec2.set(q, x, v), p);
        var y = [0, 0];
        s.vec2.transformMat2d(y, s.vec2.set(q, x + o, v + l), p);
        var M = [0, 0];
        return s.vec2.transformMat2d(M, s.vec2.set(q, x + o, v), p), {
          rings: [[g, y, M, d, g]]
        };
      }

      function T(e, t, r, i, m, c) {
        var o = h.alignmentUtils.getYAnchorDirection(r.verticalAlignment || "baseline"),
            l = "baseline" === (r.verticalAlignment || "baseline"),
            x = a.pt2px(r.xoffset),
            v = a.pt2px(r.yoffset),
            f = a.pt2px(r.font.size) / 24,
            u = 4 * f,
            p = l ? 25 * f : i[1] + (1 + o) * i[3] * .5,
            g = L * r.angle,
            d = L * c,
            y = n.mat2d.identity(C);
        n.mat2d.translate(y, y, s.vec2.set(q, e, t)), n.mat2d.rotate(y, y, d - g), n.mat2d.scale(y, y, s.vec2.set(q, m, -m)), n.mat2d.translate(y, y, s.vec2.set(q, x, -v)), n.mat2d.translate(y, y, s.vec2.set(q, -u, -u - p));
        var M = [0, 0];
        s.vec2.transformMat2d(M, s.vec2.set(q, i[0], i[1]), y);
        var b = [0, 0];
        s.vec2.transformMat2d(b, s.vec2.set(q, i[0], i[1] + i[3]), y);
        var I = [0, 0];
        s.vec2.transformMat2d(I, s.vec2.set(q, i[0] + i[2], i[1]), y);
        var T = [0, 0];
        return s.vec2.transformMat2d(T, s.vec2.set(q, i[0] + i[2], i[1] + i[3]), y), {
          rings: [[M, I, T, b, M]]
        };
      }

      function S(e) {
        var t,
            r,
            a,
            n,
            i,
            s,
            m,
            c,
            o = null;
        if (!e) return null;
        t = e.spatialReference, r = u.getInfo(t), a = t.isWebMercator, s = a ? 102100 : 4326, n = $[s].maxX, i = $[s].minX, m = $[s].plus180Line, c = $[s].minus180Line;
        var f,
            p = e.toJSON();
        if (!r) return p;
        if ("mesh" === e.type) f = p;else if (v.isPoint(p)) f = H(p, n, i);else if (v.isMultipoint(p)) p.points = p.points.map(function (e) {
          return H(e, n, i);
        }), f = p;else if (v.isExtent(p)) f = N(p, r);else if (v.isPolygon(p) || v.isPolyline(p)) {
          var h = J;
          l.getBoundsXY(h, p);
          var g = {
            xmin: h[0],
            ymin: h[1],
            xmax: h[2],
            ymax: h[3]
          },
              d = A(g.xmin, i),
              y = d * (2 * n),
              M = 0 === y ? p : E(p, y);
          g.xmin += y, g.xmax += y, x.extentIntersectsPolyline(g, m) && g.xmax !== n ? o = M : x.extentIntersectsPolyline(g, c) && g.xmin !== i ? o = M : f = M;
        } else f = e.clone();

        if (null !== o) {
          return new ee().cut(o, n);
        }

        return f;
      }

      function w(e, t) {
        var r = 0;

        switch (e.type) {
          case "simple-fill":
          case "picture-fill":
            var a = e.outline;
            if (!a) return 0;
            r = a.width;
            break;

          case "simple-line":
            r = e.width;
            break;

          case "simple-marker":
            r = e.size;
            break;

          case "picture-marker":
            r = Math.max(e.width, e.height);
            break;

          case "text":
            var n = [0, 0, 0, 0];
            X(n, e, t), r = Math.max(n[0], n[1]);
            break;

          case "cim":
            var i = h.CIMSymbolHelper.getEnvelope(e.data);
            r = Math.sqrt(i.width * i.width + i.height * i.height);
        }

        return r;
      }

      function X(e, t, r) {
        if (!r || 0 === r.glyphMosaicItems.length) return e;
        var n = h.bidiText(t.text),
            i = n[0],
            s = n[1],
            m = h.alignmentUtils.getJustification(t.horizontalAlignment || "center"),
            c = h.alignmentUtils.getXAnchorDirection(t.horizontalAlignment || "center"),
            o = r.glyphMosaicItems,
            l = new h.TextShapingNew([o], h.definitions.TEXT_MAX_WIDTH, h.definitions.TEXT_LINE_HEIGHT, h.definitions.TEXT_SPACING, [0, .5 * -G], .5 * (1 - c), 0, m),
            x = l.getShaping(i, s),
            v = h.fontUtils.getFontDecorationTop(t.font.decoration);
        isNaN(v) || h.TextShapingNew.addDecoration(x, v);
        var f = h.TextShapingNew.getBox(x),
            u = a.pt2px(t.font.size),
            p = u / Z;
        return e[0] = p * f.x, e[1] = p * f.y, e[2] = p * f.width, e[3] = p * f.height, e;
      }

      function k(e, t, r) {
        var n = h.bidiText(t.text),
            i = n[0],
            s = n[1],
            m = h.alignmentUtils.getJustification(t.horizontalAlignment || "center"),
            c = h.alignmentUtils.getXAnchorDirection(t.horizontalAlignment || "center"),
            o = new h.TextShapingNew([], D, G, W, [0, .5 * -G], .5 * (1 - c), 0, m),
            l = o.getEstimatedShaping(i, s, r),
            x = h.TextShapingNew.getBox(l),
            v = a.pt2px(t.font.size),
            f = v / Z;
        return e[0] = f * x.x, e[1] = f * x.y, e[2] = f * x.width, e[3] = f * x.height, e;
      }

      function P(e, t, r, a, n, i, s) {
        var m;

        switch (a.type) {
          case "simple-marker":
          case "picture-marker":
            m = b(t, r, a, i, 0);
            break;

          case "text":
            m = T(t, r, a, n, i, 0);
            break;

          case "cim":
            m = I(t, r, a, i, 0);
        }

        for (var c, o, l = 0, x = 0; x < m.rings[0].length - 1; x++) o = m.rings[0][x], c = (t - o[0]) * (t - o[0]) + (r - o[1]) * (r - o[1]), l = Math.max(l, c);

        l = Math.sqrt(l);
        var v = f.normalizeMapX(t - l, s),
            u = f.normalizeMapX(t + l, s);

        if (v > u) {
          var h = p.getInfo(s);

          if (h) {
            var g = h.valid,
                d = g[0],
                y = g[1];
            v = d, u = y;
          }
        }

        return e[0] = v, e[1] = r - l, e[2] = u, e[3] = r + l, e;
      }

      function z(e) {
        return v.isPolygon(e) ? e.rings : e.paths;
      }

      function A(e, t) {
        return Math.ceil((e - t) / (2 * t));
      }

      function E(e, t) {
        for (var r = z(e), a = 0, n = r; a < n.length; a++) for (var i = n[a], s = 0, m = i; s < m.length; s++) {
          var c = m[s];
          c[0] += t;
        }

        return e;
      }

      function N(e, t) {
        if (!t) return e;
        var r = U(e, t).map(function (e) {
          return e.extent;
        });
        return r.length < 2 ? r[0] || e : r.length > 2 ? (e.xmin = t.valid[0], e.xmax = t.valid[1], e) : {
          rings: r.map(function (e) {
            return [[e.xmin, e.ymin], [e.xmin, e.ymax], [e.xmax, e.ymax], [e.xmax, e.ymin], [e.xmin, e.ymin]];
          })
        };
      }

      function U(e, t) {
        var r,
            a = [],
            n = e.ymin,
            i = e.ymax,
            s = e.xmax - e.xmin,
            m = e.xmin,
            c = e.xmax,
            o = t.valid,
            l = o[0],
            x = o[1];
        r = _(e.xmin, t);
        var v = r.x,
            f = r.frameId;
        r = _(e.xmax, t);
        var u = r.x,
            p = r.frameId,
            h = v === u && s > 0;

        if (s > 2 * x) {
          var g = {
            xmin: m < c ? v : u,
            ymin: n,
            xmax: x,
            ymax: i
          },
              d = {
            xmin: l,
            ymin: n,
            xmax: m < c ? u : v,
            ymax: i
          },
              y = {
            xmin: 0,
            ymin: n,
            xmax: x,
            ymax: i
          },
              M = {
            xmin: l,
            ymin: n,
            xmax: 0,
            ymax: i
          },
              b = [],
              I = [];
          B(g, y) && b.push(f), B(g, M) && I.push(f), B(d, y) && b.push(p), B(d, M) && I.push(p);

          for (var T = f + 1; T < p; T++) b.push(T), I.push(T);

          a.push({
            extent: g,
            frameIds: [f]
          }, {
            extent: d,
            frameIds: [p]
          }, {
            extent: y,
            frameIds: b
          }, {
            extent: M,
            frameIds: I
          });
        } else v > u || h ? a.push({
          extent: {
            xmin: v,
            ymin: n,
            xmax: x,
            ymax: i
          },
          frameIds: [f]
        }, {
          extent: {
            xmin: l,
            ymin: n,
            xmax: u,
            ymax: i
          },
          frameIds: [p]
        }) : a.push({
          extent: {
            xmin: v,
            ymin: n,
            xmax: u,
            ymax: i
          },
          frameIds: [f]
        });

        return a;
      }

      function _(e, t) {
        var r,
            a = t.valid,
            n = a[0],
            i = a[1],
            s = 2 * i,
            m = 0;
        return e > i ? (r = Math.ceil(Math.abs(e - i) / s), e -= r * s, m = r) : e < n && (r = Math.ceil(Math.abs(e - n) / s), e += r * s, m = -r), {
          x: e,
          frameId: m
        };
      }

      function B(e, t) {
        var r = t.xmin,
            a = t.ymin,
            n = t.xmax,
            i = t.ymax;
        return R(e, r, a) && R(e, r, i) && R(e, n, i) && R(e, n, a);
      }

      function R(e, t, r) {
        return t >= e.xmin && t <= e.xmax && r >= e.ymin && r <= e.ymax;
      }

      function H(e, t, r) {
        if (Array.isArray(e)) {
          var a = e[0];

          if (a > t) {
            var n = A(a, t);
            e[0] = a + n * (-2 * t);
          } else if (a < r) {
            var n = A(a, r);
            e[0] = a + n * (-2 * r);
          }
        } else {
          var a = e.x;

          if (a > t) {
            var n = A(a, t);
            e.x += n * (-2 * t);
          } else if (a < r) {
            var n = A(a, r);
            e.x += n * (-2 * r);
          }
        }

        return e;
      }

      Object.defineProperty(t, "__esModule", {
        value: !0
      });
      var L = Math.PI / 180,
          D = h.definitions.TEXT_MAX_WIDTH,
          G = h.definitions.TEXT_LINE_HEIGHT,
          W = h.definitions.TEXT_SPACING,
          C = i.mat2df32.create(),
          q = m.vec2f32.create(),
          J = o.create();
      t.getBounds = g, t.isMarkerSymbol = d, t.graphicGeometryToNumber = y;
      var O = m.vec2f32.create(),
          Y = m.vec2f32.create(),
          j = m.vec2f32.create(),
          F = m.vec2f32.create(),
          K = m.vec2f32.create(),
          Q = m.vec2f32.create(),
          V = m.vec2f32.create();
      t.isPointOnPolyline = M, t.getMarkerSymbolBounds = b, t.getCIMMarkerBounds = I, t.getTextSymbolBounds = T, t.normalizeCentralMeridian = S;
      var Z = 24;
      t.getTextSymbolSize = X, t.getTextSymbolEstimatedSize = k;

      var $ = {
        102100: {
          maxX: 20037508.342788905,
          minX: -20037508.342788905,
          plus180Line: {
            paths: [[[20037508.342788905, -20037508.342788905], [20037508.342788905, 20037508.342788905]]],
            spatialReference: c.WebMercator
          },
          minus180Line: {
            paths: [[[-20037508.342788905, -20037508.342788905], [-20037508.342788905, 20037508.342788905]]],
            spatialReference: c.WebMercator
          }
        },
        4326: {
          maxX: 180,
          minX: -180,
          plus180Line: {
            paths: [[[180, -180], [180, 180]]],
            spatialReference: c.WGS84
          },
          minus180Line: {
            paths: [[[-180, -180], [-180, 180]]],
            spatialReference: c.WGS84
          }
        }
      },
          ee = function () {
        function e() {}

        return e.prototype.cut = function (e, t) {
          var r;
          if (e.rings) this.closed = !0, r = e.rings, this.minPts = 4;else {
            if (!e.paths) return null;
            this.closed = !1, r = e.paths, this.minPts = 2;
          }

          for (var a = r.length, n = -2 * t, i = 0; i < a; i++) {
            var s = r[i];

            if (s && s.length >= this.minPts) {
              for (var m = [], c = 0, o = s; c < o.length; c++) {
                var l = o[c];
                m.push([l[0] + n, l[1]]);
              }

              r.push(m);
            }
          }

          return this.closed ? e.rings = r : e.paths = r, e;
        }, e;
      }();
    }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
    /***/
  }
}]);
//# sourceMappingURL=6-es5.js.map