????

Your IP : 3.15.145.122


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

(function () {
  var absMids = {
    "esri/views/3d/layers/PointCloudWorker": "./node_modules/arcgis-js-api/views/3d/layers/PointCloudWorker.js",
    "esri/views/3d/layers/i3s/PointCloudRendererUtil": "./node_modules/arcgis-js-api/views/3d/layers/i3s/PointCloudRendererUtil.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([[83], {
  /***/
  "./node_modules/arcgis-js-api/views/3d/layers/PointCloudWorker.js":
  /*!************************************************************************!*\
    !*** ./node_modules/arcgis-js-api/views/3d/layers/PointCloudWorker.js ***!
    \************************************************************************/

  /*! no static exports found */

  /***/
  function node_modulesArcgisJsApiViews3dLayersPointCloudWorkerJs(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/extendsHelper */
    "./node_modules/arcgis-js-api/core/tsSupport/extendsHelper.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__(
    /*! ../../../core/requireUtils */
    "./node_modules/arcgis-js-api/core/requireUtils.js"), __webpack_require__(
    /*! ../../../core/typedArrayUtil */
    "./node_modules/arcgis-js-api/core/typedArrayUtil.js"), __webpack_require__(
    /*! ../../../core/workers */
    "./node_modules/arcgis-js-api/core/workers.js"), __webpack_require__(
    /*! ../../../core/libs/gl-matrix-2/quat */
    "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/quat.js"), __webpack_require__(
    /*! ../../../core/libs/gl-matrix-2/quatf32 */
    "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/quatf32.js"), __webpack_require__(
    /*! ../../../core/libs/gl-matrix-2/vec3 */
    "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/vec3.js"), __webpack_require__(
    /*! ../../../core/libs/gl-matrix-2/vec3f32 */
    "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/vec3f32.js"), __webpack_require__(
    /*! ../../../geometry/SpatialReference */
    "./node_modules/arcgis-js-api/geometry/SpatialReference.js"), __webpack_require__(
    /*! ./i3s/PointCloudRendererUtil */
    "./node_modules/arcgis-js-api/views/3d/layers/i3s/PointCloudRendererUtil.js"), __webpack_require__(
    /*! ../support/projectionUtils */
    "./node_modules/arcgis-js-api/views/3d/support/projectionUtils.js"), __webpack_require__.dj.m(module)], __WEBPACK_AMD_DEFINE_RESULT__ = function (t, e, r, a, o, i, n, u, f, s, l, b, c, p, h, v) {
      function m() {
        return new d();
      }

      Object.defineProperty(e, "__esModule", {
        value: !0
      });

      var d = function () {
        function t() {}

        return t.prototype._process = function (t) {
          var e = this._transform(t),
              r = [e.points.buffer, e.rgb.buffer];

          a.isSome(e.pointIdFilterMap) && r.push(e.pointIdFilterMap.buffer);

          for (var i = 0, u = e.attributes; i < u.length; i++) {
            var f = u[i];
            "buffer" in f.values && n.isArrayBuffer(f.values.buffer) && f.values.buffer !== e.rgb.buffer && r.push(f.values.buffer);
          }

          return o.resolve({
            result: e,
            transferList: r
          });
        }, t.prototype._transform = function (t) {
          var e = p.readGeometry(t.schema, t.geometryBuffer),
              r = e.length / 3,
              o = null,
              i = [],
              n = p.getAttributeValues(t.primaryAttributeData, e, r);
          a.isSome(t.primaryAttributeData) && n && i.push({
            attributeInfo: t.primaryAttributeData.attributeInfo,
            values: n
          });
          var u = p.getAttributeValues(t.modulationAttributeData, e, r);
          a.isSome(t.modulationAttributeData) && u && i.push({
            attributeInfo: t.modulationAttributeData.attributeInfo,
            values: u
          });
          var f = p.evaluateRenderer(t.rendererInfo, n, u, r);

          if (t.filterInfo && t.filterInfo.length > 0 && a.isSome(t.filterAttributesData)) {
            var s = t.filterAttributesData.map(function (t) {
              var a = p.getAttributeValues(t, e, r),
                  o = {
                attributeInfo: t.attributeInfo,
                values: a
              };
              return i.push(o), o;
            });
            o = new Uint32Array(r), r = p.filterInPlace(e, f, o, t.filterInfo, s);
          }

          for (var l = 0, b = t.userAttributesData; l < b.length; l++) {
            var h = b[l],
                v = p.getAttributeValues(h, e, r);
            i.push({
              attributeInfo: h.attributeInfo,
              values: v
            });
          }

          3 * r < f.length && (f = new Uint8Array(f.buffer.slice(0, 3 * r))), this._applyElevationOffsetInPlace(e, r, t.elevationOffset);

          var m = this._transformCoordinates(e, r, t.obb, c.fromJSON(t.inSR), c.fromJSON(t.outSR));

          return {
            obb: t.obb,
            points: m,
            rgb: f,
            attributes: i,
            pointIdFilterMap: o
          };
        }, t.prototype._transformCoordinates = function (t, e, r, a, o) {
          if (!h.bufferToBuffer(t, a, 0, t, o, 0, e)) throw Error("Can't reproject");
          var i = b.vec3f32.fromValues(r.center[0], r.center[1], r.center[2]),
              n = b.vec3f32.create(),
              u = b.vec3f32.create();
          f.quat.conjugate(y, r.quaternion);

          for (var s = new Float32Array(3 * e), c = 0; c < e; c++) n[0] = t[3 * c] - i[0], n[1] = t[3 * c + 1] - i[1], n[2] = t[3 * c + 2] - i[2], l.vec3.transformQuat(u, n, y), r.halfSize[0] = Math.max(r.halfSize[0], Math.abs(u[0])), r.halfSize[1] = Math.max(r.halfSize[1], Math.abs(u[1])), r.halfSize[2] = Math.max(r.halfSize[2], Math.abs(u[2])), s[3 * c] = n[0], s[3 * c + 1] = n[1], s[3 * c + 2] = n[2];

          return s;
        }, t.prototype._applyElevationOffsetInPlace = function (t, e, r) {
          if (0 !== r) for (var a = 0; a < e; a++) t[3 * a + 2] += r;
        }, t;
      }(),
          y = s.quatf32.create(),
          g = function (e) {
        function a() {
          var r = e.call(this) || this;
          return r._thread = void 0, u.open(i.getAbsMid("./PointCloudWorker", t, v)).then(function (t) {
            void 0 === r._thread ? r._thread = t : t.close();
          }), r;
        }

        return r(a, e), a.prototype.destroy = function () {
          this._thread && this._thread.close(), this._thread = null;
        }, a.prototype.transform = function (t, e, r) {
          return this._thread ? this._thread.invoke("_process", t, {
            transferList: e,
            signal: r
          }) : o.resolve(this._transform(t));
        }, a;
      }(d);

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

  /***/
  "./node_modules/arcgis-js-api/views/3d/layers/i3s/PointCloudRendererUtil.js":
  /*!**********************************************************************************!*\
    !*** ./node_modules/arcgis-js-api/views/3d/layers/i3s/PointCloudRendererUtil.js ***!
    \**********************************************************************************/

  /*! no static exports found */

  /***/
  function node_modulesArcgisJsApiViews3dLayersI3sPointCloudRendererUtilJs(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__(
    /*! ../../../../renderers/PointCloudClassBreaksRenderer */
    "./node_modules/arcgis-js-api/renderers/PointCloudClassBreaksRenderer.js"), __webpack_require__(
    /*! ../../../../renderers/PointCloudStretchRenderer */
    "./node_modules/arcgis-js-api/renderers/PointCloudStretchRenderer.js"), __webpack_require__(
    /*! ../../../../renderers/PointCloudUniqueValueRenderer */
    "./node_modules/arcgis-js-api/renderers/PointCloudUniqueValueRenderer.js"), __webpack_require__(
    /*! ./I3SBinaryReader */
    "./node_modules/arcgis-js-api/views/3d/layers/i3s/I3SBinaryReader.js"), __webpack_require__(
    /*! ./LEPCC */
    "./node_modules/arcgis-js-api/views/3d/layers/i3s/LEPCC.js")], __WEBPACK_AMD_DEFINE_RESULT__ = function (e, r, t, n, o, l, a, i) {
      function u(e) {
        var r = e.renderer,
            t = r && r.type,
            n = r && e.renderer.toJSON() || null,
            o = null,
            l = !1;
        "point-cloud-unique-value" === t ? o = m(e.attributeStorageInfo, r.field) : "point-cloud-stretch" === t ? o = m(e.attributeStorageInfo, r.field) : "point-cloud-class-breaks" === t ? o = m(e.attributeStorageInfo, r.field) : "point-cloud-rgb" === t ? (o = p(e.attributeStorageInfo, r.field), l = null != o) : (o = p(e.attributeStorageInfo, "RGB"), l = null != o);
        var a = null;
        return r && r.colorModulation && (a = m(e.attributeStorageInfo, r.colorModulation.field)), {
          rendererJSON: n,
          isRGBRenderer: l,
          primaryAttribute: o,
          modulationAttribute: a
        };
      }

      function f(e) {
        var r = e.filters;
        return r ? r.map(function (r) {
          return {
            filterJSON: r.toJSON(),
            attributeInfo: m(e.attributeStorageInfo, r.field)
          };
        }) : [];
      }

      function s(e, r, t, a) {
        var i = e.rendererJSON,
            u = e.isRGBRenderer,
            f = null,
            s = null;
        if (r && u) f = r;else if (r && "pointCloudUniqueValueRenderer" === i.type) {
          s = l.fromJSON(i);
          var d = s.colorUniqueValueInfos;
          f = new Uint8Array(3 * a);

          for (var c = h(s.fieldTransformType), v = 0; v < a; v++) for (var g = c ? c(r[v]) : r[v], b = g + "", p = 0; p < d.length; p++) if (d[p].values.indexOf(b) >= 0) {
            f[3 * v] = d[p].color.r, f[3 * v + 1] = d[p].color.g, f[3 * v + 2] = d[p].color.b;
            break;
          }
        } else if (r && "pointCloudStretchRenderer" === i.type) {
          s = o.fromJSON(i);
          var m = s.stops;
          f = new Uint8Array(3 * a);

          for (var c = h(s.fieldTransformType), v = 0; v < a; v++) {
            var g = c ? c(r[v]) : r[v],
                y = m.length - 1;
            if (g < m[0].value) f[3 * v] = m[0].color.r, f[3 * v + 1] = m[0].color.g, f[3 * v + 2] = m[0].color.b;else if (g >= m[y].value) f[3 * v] = m[y].color.r, f[3 * v + 1] = m[y].color.g, f[3 * v + 2] = m[y].color.b;else for (var p = 1; p < m.length; p++) if (g < m[p].value) {
              var S = (g - m[p - 1].value) / (m[p].value - m[p - 1].value);
              f[3 * v] = m[p].color.r * S + m[p - 1].color.r * (1 - S), f[3 * v + 1] = m[p].color.g * S + m[p - 1].color.g * (1 - S), f[3 * v + 2] = m[p].color.b * S + m[p - 1].color.b * (1 - S);
              break;
            }
          }
        } else if (r && "pointCloudClassBreaksRenderer" === i.type) {
          s = n.fromJSON(i);
          var I = s.colorClassBreakInfos;
          f = new Uint8Array(3 * a);

          for (var c = h(s.fieldTransformType), v = 0; v < a; v++) for (var g = c ? c(r[v]) : r[v], p = 0; p < I.length; p++) if (g >= I[p].minValue && g <= I[p].maxValue) {
            f[3 * v] = I[p].color.r, f[3 * v + 1] = I[p].color.g, f[3 * v + 2] = I[p].color.b;
            break;
          }
        } else {
          f = new Uint8Array(3 * a);

          for (var v = 0; v < f.length; v++) f[v] = 255;
        }
        if (t && s && s.colorModulation) for (var A = s.colorModulation.minValue, C = s.colorModulation.maxValue, v = 0; v < a; v++) {
          var g = t[v],
              R = g >= C ? 1 : g <= A ? .3 : .3 + .7 * (g - A) / (C - A);
          f[3 * v] = R * f[3 * v], f[3 * v + 1] = R * f[3 * v + 1], f[3 * v + 2] = R * f[3 * v + 2];
        }
        return f;
      }

      function d(e, r, t, n, o) {
        for (var l = e.length / 3, a = 0, i = 0; i < l; i++) {
          for (var u = !0, f = 0; f < n.length && u; f++) {
            var s = n[f].filterJSON,
                d = o[f].values[i];

            switch (s.type) {
              case "pointCloudValueFilter":
                var v = "exclude" === s.mode;
                -1 !== s.values.indexOf(d) === v && (u = !1);
                break;

              case "pointCloudBitfieldFilter":
                var g = c(s.requiredSetBits),
                    b = c(s.requiredClearBits);
                (d & g) === g && 0 == (d & b) || (u = !1);
                break;

              case "pointCloudReturnFilter":
                for (var p = 15 & d, m = d >>> 4 & 15, y = m > 1, S = 1 === p, h = p === m, I = !1, A = 0, C = s.includedReturns; A < C.length; A++) {
                  var R = C[A];

                  if ("last" === R && h || "firstOfMany" === R && S && y || "lastOfMany" === R && h && y || "single" === R && !y) {
                    I = !0;
                    break;
                  }
                }

                I || (u = !1);
            }
          }

          u && (t[a] = i, e[3 * a] = e[3 * i], e[3 * a + 1] = e[3 * i + 1], e[3 * a + 2] = e[3 * i + 2], r[3 * a] = r[3 * i], r[3 * a + 1] = r[3 * i + 1], r[3 * a + 2] = r[3 * i + 2], a++);
        }

        return a;
      }

      function c(e) {
        for (var r = 0, t = 0, n = e || []; t < n.length; t++) {
          r |= 1 << n[t];
        }

        return r;
      }

      function v(e) {
        var r = e && e.pointSizeAlgorithm;
        return r && "splat" === r.type ? r : null;
      }

      function g(e) {
        var r = e && e.pointSizeAlgorithm;
        return r && "fixed-size" === r.type ? r : null;
      }

      function b(e) {
        var r = e && e.pointSizeAlgorithm;
        return !(!r || !r.type) && "fixed-size" === r.type;
      }

      function p(e, r) {
        for (var t = 0, n = e; t < n.length; t++) {
          var o = n[t];
          if (o.name === r && null != o.attributeValues && "UInt8" === o.attributeValues.valueType && 3 === o.attributeValues.valuesPerElement) return {
            name: r,
            storageInfo: o,
            useElevation: !1
          };
        }

        return null;
      }

      function m(e, r) {
        for (var t = 0, n = e; t < n.length; t++) {
          var o = n[t];

          if (o.name === r) {
            var l = "embedded-elevation" === o.encoding;
            return {
              name: r,
              storageInfo: l ? null : o,
              useElevation: l
            };
          }
        }

        return "elevation" === r.toLowerCase() ? {
          name: r,
          storageInfo: null,
          useElevation: !0
        } : null;
      }

      function y(e, r) {
        for (var t = new Float64Array(r), n = 0; n < r; n++) t[n] = e[3 * n + 2];

        return t;
      }

      function S(e, r, n) {
        return t.isSome(e) && e.attributeInfo.useElevation ? y(r, n) : t.isSome(e) ? a.readBinaryAttribute(e.attributeInfo.storageInfo, e.buffer, n) : null;
      }

      function h(e) {
        return null == e || "none" === e ? null : "low-four-bit" === e ? function (e) {
          return 15 & e;
        } : "high-four-bit" === e ? function (e) {
          return (240 & e) >> 4;
        } : "absolute-value" === e ? function (e) {
          return Math.abs(e);
        } : "modulo-ten" === e ? function (e) {
          return e % 10;
        } : null;
      }

      function I(e, r) {
        if (null == e.encoding || "" === e.encoding) {
          for (var t = a.createGeometryIndexFromSchema(r, e), n = a.createTypedView(r, t.vertexAttributes.position), o = t.header.fields, l = [o.offsetX, o.offsetY, o.offsetZ], u = [o.scaleX, o.scaleY, o.scaleZ], f = n.length / 3, s = new Float64Array(3 * f), d = 0; d < f; d++) s[3 * d] = n[3 * d] * u[0] + l[0], s[3 * d + 1] = n[3 * d + 1] * u[1] + l[1], s[3 * d + 2] = n[3 * d + 2] * u[2] + l[2];

          return s;
        }

        if ("lepcc-xyz" === e.encoding) return i.decodeXYZ(r).result;
      }

      Object.defineProperty(r, "__esModule", {
        value: !0
      }), r.getRendererInfo = u, r.getFilterInfo = f, r.evaluateRenderer = s, r.filterInPlace = d, r.getSplatSizeAlgorithm = v, r.getFixedSizeAlgorithm = g, r.rendererUsesFixedSizes = b, r.getAttributeInfo = m, r.elevationFromPositions = y, r.getAttributeValues = S, r.readGeometry = I;
    }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
    /***/
  }
}]);
//# sourceMappingURL=83-es5.js.map