????
Current Path : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/ |
Current File : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/46-es5.js |
(function () { var absMids = { "esri/arcade/functions/geomasync": "./node_modules/arcgis-js-api/arcade/functions/geomasync.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([[46], { /***/ "./node_modules/arcgis-js-api/arcade/functions/geomasync.js": /*!******************************************************************!*\ !*** ./node_modules/arcgis-js-api/arcade/functions/geomasync.js ***! \******************************************************************/ /*! no static exports found */ /***/ function node_modulesArcgisJsApiArcadeFunctionsGeomasyncJs(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__( /*! ../../kernel */ "./node_modules/arcgis-js-api/kernel.js"), __webpack_require__( /*! ../kernel */ "./node_modules/arcgis-js-api/arcade/kernel.js"), __webpack_require__( /*! ../languageUtils */ "./node_modules/arcgis-js-api/arcade/languageUtils.js"), __webpack_require__( /*! ./centroid */ "./node_modules/arcgis-js-api/arcade/functions/centroid.js"), __webpack_require__( /*! ../../geometry/Extent */ "./node_modules/arcgis-js-api/geometry/Extent.js"), __webpack_require__( /*! ../../geometry/Geometry */ "./node_modules/arcgis-js-api/geometry/Geometry.js"), __webpack_require__( /*! ../../geometry/geometryEngineAsync */ "./node_modules/arcgis-js-api/geometry/geometryEngineAsync.js"), __webpack_require__( /*! ../../geometry/Multipoint */ "./node_modules/arcgis-js-api/geometry/Multipoint.js"), __webpack_require__( /*! ../../geometry/Point */ "./node_modules/arcgis-js-api/geometry/Point.js"), __webpack_require__( /*! ../../geometry/Polygon */ "./node_modules/arcgis-js-api/geometry/Polygon.js"), __webpack_require__( /*! ../../geometry/Polyline */ "./node_modules/arcgis-js-api/geometry/Polyline.js"), __webpack_require__( /*! ../../geometry/support/jsonUtils */ "./node_modules/arcgis-js-api/geometry/support/jsonUtils.js")], __WEBPACK_AMD_DEFINE_RESULT__ = function (n, e, t, r, o, a, i, u, l, f, c, s, d, g) { function m(n) { return 0 === t.version.indexOf("4.") ? s.fromExtent(n) : new s({ spatialReference: n.spatialReference, rings: [[[n.xmin, n.ymin], [n.xmin, n.ymax], [n.xmax, n.ymax], [n.xmax, n.ymin], [n.xmin, n.ymin]]] }); } function y(n) { if (o.pcCheck(n, 2, 2), n[0] instanceof u && n[1] instanceof u) ;else if (n[0] instanceof u && null === n[1]) ;else if (n[1] instanceof u && null === n[0]) ;else if (null !== n[0] || null !== n[1]) throw new Error("Illegal Argument"); } function h(n) { "async" === n.mode && (n.functions.disjoint = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { return t = o.autoCastFeatureToGeometry(t), y(t), null === t[0] || null === t[1] || l.disjoint(t[0], t[1]); }); }, n.functions.intersects = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { return t = o.autoCastFeatureToGeometry(t), y(t), null !== t[0] && null !== t[1] && l.intersects(t[0], t[1]); }); }, n.functions.touches = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { return t = o.autoCastFeatureToGeometry(t), y(t), null !== t[0] && null !== t[1] && l.touches(t[0], t[1]); }); }, n.functions.crosses = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { return t = o.autoCastFeatureToGeometry(t), y(t), null !== t[0] && null !== t[1] && l.crosses(t[0], t[1]); }); }, n.functions.within = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { return t = o.autoCastFeatureToGeometry(t), y(t), null !== t[0] && null !== t[1] && l.within(t[0], t[1]); }); }, n.functions.contains = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { return t = o.autoCastFeatureToGeometry(t), y(t), null !== t[0] && null !== t[1] && l.contains(t[0], t[1]); }); }, n.functions.overlaps = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { return t = o.autoCastFeatureToGeometry(t), y(t), null !== t[0] && null !== t[1] && l.overlaps(t[0], t[1]); }); }, n.functions.equals = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { return o.pcCheck(t, 2, 2), t[0] === t[1] || (t[0] instanceof u && t[1] instanceof u ? l.equals(t[0], t[1]) : !(!o.isDate(t[0]) || !o.isDate(t[1])) && t[0].getTime() === t[1].getTime()); }); }, n.functions.relate = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { if (t = o.autoCastFeatureToGeometry(t), o.pcCheck(t, 3, 3), t[0] instanceof u && t[1] instanceof u) return l.relate(t[0], t[1], o.toString(t[2])); if (t[0] instanceof u && null === t[1]) return !1; if (t[1] instanceof u && null === t[0]) return !1; if (null === t[0] && null === t[1]) return !1; throw new Error("Illegal Argument"); }); }, n.functions.intersection = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { return t = o.autoCastFeatureToGeometry(t), y(t), null === t[0] || null === t[1] ? null : l.intersect(t[0], t[1]); }); }, n.functions.union = function (e, t) { return n.standardFunctionAsync(e, t, function (n, t, a) { a = o.autoCastFeatureToGeometry(a); var i = []; if (0 === a.length) throw new Error("Function called with wrong number of Parameters"); if (1 === a.length) { if (o.isArray(a[0])) { for (var f = o.autoCastFeatureToGeometry(a[0]), c = 0; c < f.length; c++) if (null !== f[c]) { if (!(f[c] instanceof u)) throw new Error("Illegal Argument"); i.push(f[c]); } } else { if (!o.isImmutableArray(a[0])) { if (a[0] instanceof u) return o.fixSpatialReference(r.cloneGeometry(a[0]), e.spatialReference); if (null === a[0]) return null; throw new Error("Illegal Argument"); } for (var s = o.autoCastFeatureToGeometry(a[0].toArray()), c = 0; c < s.length; c++) if (null !== s[c]) { if (!(s[c] instanceof u)) throw new Error("Illegal Argument"); i.push(s[c]); } } } else for (var c = 0; c < a.length; c++) if (null !== a[c]) { if (!(a[c] instanceof u)) throw new Error("Illegal Argument"); i.push(a[c]); } return 0 === i.length ? null : l.union(i); }); }, n.functions.difference = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { return t = o.autoCastFeatureToGeometry(t), y(t), null !== t[0] && null === t[1] ? r.cloneGeometry(t[0]) : null === t[0] ? null : l.difference(t[0], t[1]); }); }, n.functions.symmetricdifference = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { return t = o.autoCastFeatureToGeometry(t), y(t), null === t[0] && null === t[1] ? null : null === t[0] ? r.cloneGeometry(t[1]) : null === t[1] ? r.cloneGeometry(t[0]) : l.symmetricDifference(t[0], t[1]); }); }, n.functions.clip = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { if (t = o.autoCastFeatureToGeometry(t), o.pcCheck(t, 2, 2), !(t[1] instanceof i) && null !== t[1]) throw new Error("Illegal Argument"); if (null === t[0]) return null; if (!(t[0] instanceof u)) throw new Error("Illegal Argument"); return null === t[1] ? null : l.clip(t[0], t[1]); }); }, n.functions.cut = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { if (t = o.autoCastFeatureToGeometry(t), o.pcCheck(t, 2, 2), !(t[1] instanceof d) && null !== t[1]) throw new Error("Illegal Argument"); if (null === t[0]) return []; if (!(t[0] instanceof u)) throw new Error("Illegal Argument"); return null === t[1] ? [r.cloneGeometry(t[0])] : l.cut(t[0], t[1]); }); }, n.functions.area = function (e, t) { return n.standardFunctionAsync(e, t, function (n, t, a) { if (o.pcCheck(a, 1, 2), a = o.autoCastFeatureToGeometry(a), null === a[0]) return 0; if (o.isFeatureSet(a[0])) return a[0].sumArea(r.convertSquareUnitsToCode(o.defaultUndefined(a[1], -1)), !1, e.abortSignal).then(function (n) { if (e.abortSignal.aborted) throw new Error("Operation has been cancelled."); return n; }); if (o.isArray(a[0]) || o.isImmutableArray(a[0])) { var i = o.autoCastArrayOfPointsToPolygon(a[0], e.spatialReference); return null === i ? 0 : l.planarArea(i, r.convertSquareUnitsToCode(o.defaultUndefined(a[1], -1))); } if (!(a[0] instanceof u)) throw new Error("Illegal Argument"); return l.planarArea(a[0], r.convertSquareUnitsToCode(o.defaultUndefined(a[1], -1))); }); }, n.functions.areageodetic = function (e, t) { return n.standardFunctionAsync(e, t, function (n, t, a) { if (o.pcCheck(a, 1, 2), a = o.autoCastFeatureToGeometry(a), null === a[0]) return 0; if (o.isFeatureSet(a[0])) return a[0].sumArea(r.convertSquareUnitsToCode(o.defaultUndefined(a[1], -1)), !0, e.abortSignal).then(function (n) { if (e.abortSignal.aborted) throw new Error("Operation has been cancelled."); return n; }); if (o.isArray(a[0]) || o.isImmutableArray(a[0])) { var i = o.autoCastArrayOfPointsToPolygon(a[0], e.spatialReference); return null === i ? 0 : l.geodesicArea(i, r.convertSquareUnitsToCode(o.defaultUndefined(a[1], -1))); } if (!(a[0] instanceof u)) throw new Error("Illegal Argument"); return l.geodesicArea(a[0], r.convertSquareUnitsToCode(o.defaultUndefined(a[1], -1))); }); }, n.functions.length = function (e, t) { return n.standardFunctionAsync(e, t, function (n, t, a) { if (o.pcCheck(a, 1, 2), a = o.autoCastFeatureToGeometry(a), null === a[0]) return 0; if (o.isFeatureSet(a[0])) return a[0].sumLength(r.convertLinearUnitsToCode(o.defaultUndefined(a[1], -1)), !1, e.abortSignal).then(function (n) { if (e.abortSignal.aborted) throw new Error("Operation has been cancelled."); return n; }); if (o.isArray(a[0]) || o.isImmutableArray(a[0])) { var i = o.autoCastArrayOfPointsToPolyline(a[0], e.spatialReference); return null === i ? 0 : l.planarLength(i, r.convertLinearUnitsToCode(o.defaultUndefined(a[1], -1))); } if (!(a[0] instanceof u)) throw new Error("Illegal Argument"); return l.planarLength(a[0], r.convertLinearUnitsToCode(o.defaultUndefined(a[1], -1))); }); }, n.functions.lengthgeodetic = function (e, t) { return n.standardFunctionAsync(e, t, function (n, t, a) { if (o.pcCheck(a, 1, 2), a = o.autoCastFeatureToGeometry(a), null === a[0]) return 0; if (o.isFeatureSet(a[0])) return a[0].sumLength(r.convertLinearUnitsToCode(o.defaultUndefined(a[1], -1)), !0, e.abortSignal).then(function (n) { if (e.abortSignal.aborted) throw new Error("Operation has been cancelled."); return n; }); if (o.isArray(a[0]) || o.isImmutableArray(a[0])) { var i = o.autoCastArrayOfPointsToPolyline(a[0], e.spatialReference); return null === i ? 0 : l.geodesicLength(i, r.convertLinearUnitsToCode(o.defaultUndefined(a[1], -1))); } if (!(a[0] instanceof u)) throw new Error("Illegal Argument"); return l.geodesicLength(a[0], r.convertLinearUnitsToCode(o.defaultUndefined(a[1], -1))); }); }, n.functions.distance = function (e, t) { return n.standardFunctionAsync(e, t, function (n, t, a) { a = o.autoCastFeatureToGeometry(a), o.pcCheck(a, 2, 3); var i = a[0]; (o.isArray(a[0]) || o.isImmutableArray(a[0])) && (i = o.autoCastArrayOfPointsToMultiPoint(a[0], e.spatialReference)); var f = a[1]; if ((o.isArray(a[1]) || o.isImmutableArray(a[1])) && (f = o.autoCastArrayOfPointsToMultiPoint(a[1], e.spatialReference)), !(i instanceof u)) throw new Error("Illegal Argument"); if (!(f instanceof u)) throw new Error("Illegal Argument"); return l.distance(i, f, r.convertLinearUnitsToCode(o.defaultUndefined(a[2], -1))); }); }, n.functions.distancegeodetic = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { t = o.autoCastFeatureToGeometry(t), o.pcCheck(t, 2, 3); var a = t[0], i = t[1]; if (!(a instanceof c)) throw new Error("Illegal Argument"); if (!(i instanceof c)) throw new Error("Illegal Argument"); var u = new d({ paths: [], spatialReference: a.spatialReference }); return u.addPath([a, i]), l.geodesicLength(u, r.convertLinearUnitsToCode(o.defaultUndefined(t[2], -1))); }); }, n.functions.densify = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { if (t = o.autoCastFeatureToGeometry(t), o.pcCheck(t, 2, 3), null === t[0]) return null; if (!(t[0] instanceof u)) throw new Error("Illegal Argument"); var a = o.toNumber(t[1]); if (isNaN(a)) throw new Error("Illegal Argument"); if (a <= 0) throw new Error("Illegal Argument"); return t[0] instanceof s || t[0] instanceof d ? l.densify(t[0], a, r.convertLinearUnitsToCode(o.defaultUndefined(t[2], -1))) : t[0] instanceof i ? l.densify(m(t[0]), a, r.convertLinearUnitsToCode(o.defaultUndefined(t[2], -1))) : t[0]; }); }, n.functions.densifygeodetic = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { if (t = o.autoCastFeatureToGeometry(t), o.pcCheck(t, 2, 3), null === t[0]) return null; if (!(t[0] instanceof u)) throw new Error("Illegal Argument"); var a = o.toNumber(t[1]); if (isNaN(a)) throw new Error("Illegal Argument"); if (a <= 0) throw new Error("Illegal Argument"); return t[0] instanceof s || t[0] instanceof d ? l.geodesicDensify(t[0], a, r.convertLinearUnitsToCode(o.defaultUndefined(t[2], -1))) : t[0] instanceof i ? l.geodesicDensify(m(t[0]), a, r.convertLinearUnitsToCode(o.defaultUndefined(t[2], -1))) : t[0]; }); }, n.functions.generalize = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { if (t = o.autoCastFeatureToGeometry(t), o.pcCheck(t, 2, 4), null === t[0]) return null; if (!(t[0] instanceof u)) throw new Error("Illegal Argument"); var a = o.toNumber(t[1]); if (isNaN(a)) throw new Error("Illegal Argument"); return l.generalize(t[0], a, o.toBoolean(o.defaultUndefined(t[2], !0)), r.convertLinearUnitsToCode(o.defaultUndefined(t[3], -1))); }); }, n.functions.buffer = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { if (t = o.autoCastFeatureToGeometry(t), o.pcCheck(t, 2, 3), null === t[0]) return null; if (!(t[0] instanceof u)) throw new Error("Illegal Argument"); var a = o.toNumber(t[1]); if (isNaN(a)) throw new Error("Illegal Argument"); return 0 === a ? r.cloneGeometry(t[0]) : l.buffer(t[0], a, r.convertLinearUnitsToCode(o.defaultUndefined(t[2], -1))); }); }, n.functions.buffergeodetic = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { if (t = o.autoCastFeatureToGeometry(t), o.pcCheck(t, 2, 3), null === t[0]) return null; if (!(t[0] instanceof u)) throw new Error("Illegal Argument"); var a = o.toNumber(t[1]); if (isNaN(a)) throw new Error("Illegal Argument"); return 0 === a ? r.cloneGeometry(t[0]) : l.geodesicBuffer(t[0], a, r.convertLinearUnitsToCode(o.defaultUndefined(t[2], -1))); }); }, n.functions.offset = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { if (t = o.autoCastFeatureToGeometry(t), o.pcCheck(t, 2, 6), null === t[0]) return null; if (!(t[0] instanceof s || t[0] instanceof d)) throw new Error("Illegal Argument"); var a = o.toNumber(t[1]); if (isNaN(a)) throw new Error("Illegal Argument"); var i = o.toNumber(o.defaultUndefined(t[4], 10)); if (isNaN(i)) throw new Error("Illegal Argument"); var u = o.toNumber(o.defaultUndefined(t[5], 0)); if (isNaN(u)) throw new Error("Illegal Argument"); return l.offset(t[0], a, r.convertLinearUnitsToCode(o.defaultUndefined(t[2], -1)), o.toString(o.defaultUndefined(t[3], "round")).toLowerCase(), i, u); }); }, n.functions.rotate = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { t = o.autoCastFeatureToGeometry(t), o.pcCheck(t, 2, 3); var r = t[0]; if (null === r) return null; if (!(r instanceof u)) throw new Error("Illegal Argument"); r instanceof i && (r = s.fromExtent(r)); var a = o.toNumber(t[1]); if (isNaN(a)) throw new Error("Illegal Argument"); var f = o.defaultUndefined(t[2], null); if (null === f) return l.rotate(r, a); if (f instanceof c) return l.rotate(r, a, f); throw new Error("Illegal Argument"); }); }, n.functions.centroid = function (e, t) { return n.standardFunctionAsync(e, t, function (n, t, l) { if (l = o.autoCastFeatureToGeometry(l), o.pcCheck(l, 1, 1), null === l[0]) return null; var g = l[0]; if ((o.isArray(l[0]) || o.isImmutableArray(l[0])) && (g = o.autoCastArrayOfPointsToMultiPoint(l[0], e.spatialReference)), null === g) return null; if (!(g instanceof u)) throw new Error("Illegal Argument"); return g instanceof c ? o.fixSpatialReference(r.cloneGeometry(l[0]), e.spatialReference) : g instanceof s ? g.centroid : g instanceof d ? a.centroidPolyline(g) : g instanceof f ? a.centroidMultiPoint(g) : g instanceof i ? g.center : null; }); }, n.functions.multiparttosinglepart = function (e, t) { return n.standardFunctionAsync(e, t, function (n, t, a) { a = o.autoCastFeatureToGeometry(a), o.pcCheck(a, 1, 1); var m = []; if (null === a[0]) return null; if (!(a[0] instanceof u)) throw new Error("Illegal Argument"); return a[0] instanceof c ? [o.fixSpatialReference(r.cloneGeometry(a[0]), e.spatialReference)] : a[0] instanceof i ? [o.fixSpatialReference(r.cloneGeometry(a[0]), e.spatialReference)] : l.simplify(a[0]).then(function (n) { if (n instanceof s) { for (var t = [], i = [], u = 0; u < n.rings.length; u++) if (n.isClockwise(n.rings[u])) { var l = g.fromJSON({ rings: [n.rings[u]], hasZ: !0 === n.hasZ, hazM: !0 === n.hasM, spatialReference: n.spatialReference.toJSON() }); t.push(l); } else i.push({ ring: n.rings[u], pt: n.getPoint(u, 0) }); for (var c = 0; c < i.length; c++) for (var y = 0; y < t.length; y++) if (t[y].contains(i[c].pt)) { t[y].addRing(i[c].ring); break; } return t; } if (n instanceof d) { for (var h = [], u = 0; u < n.paths.length; u++) { var A = g.fromJSON({ paths: [n.paths[u]], hasZ: !0 === n.hasZ, hazM: !0 === n.hasM, spatialReference: n.spatialReference.toJSON() }); h.push(A); } return h; } if (a[0] instanceof f) { for (var w = o.fixSpatialReference(r.cloneGeometry(a[0]), e.spatialReference), u = 0; u < w.points.length; u++) m.push(w.getPoint(u)); return m; } return null; }); }); }, n.functions.issimple = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { if (t = o.autoCastFeatureToGeometry(t), o.pcCheck(t, 1, 1), null === t[0]) return !0; if (!(t[0] instanceof u)) throw new Error("Illegal Argument"); return l.isSimple(t[0]); }); }, n.functions.simplify = function (e, t) { return n.standardFunctionAsync(e, t, function (n, e, t) { if (t = o.autoCastFeatureToGeometry(t), o.pcCheck(t, 1, 1), null === t[0]) return null; if (!(t[0] instanceof u)) throw new Error("Illegal Argument"); return l.simplify(t[0]); }); }); } Object.defineProperty(e, "__esModule", { value: !0 }), e.registerFunctions = h; }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ } }]); //# sourceMappingURL=46-es5.js.map