????
Current Path : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/www/ |
Current File : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/www/80.088d142d61c33a78d060.js |
(function(){var e={"esri/core/libs/quickselect/quickselect":"FT4I","esri/core/libs/rbush/rbush":"jEml","esri/layers/graphics/sources/geojson/GeoJSONSourceWorker":"vXbj"},t=this||window,i=t.webpackJsonp=t.webpackJsonp||[];i.registerAbsMids?i.registerAbsMids(e):(i.absMidsWaiting=i.absMidsWaiting||[]).push(e)})(),(window.webpackJsonp=window.webpackJsonp||[]).push([[80],{FT4I:function(e,t,i){var n;void 0===(n=(function(){"use strict";function e(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function t(e,t){return e<t?-1:e>t?1:0}return function(i,n,r,a,s){!function t(i,n,r,a,s){for(;a>r;){if(a-r>600){var o=a-r+1,u=n-r+1,l=Math.log(o),h=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*h*(o-h)/o)*(u-o/2<0?-1:1);t(i,n,Math.max(r,Math.floor(n-u*h/o+d)),Math.min(a,Math.floor(n+(o-u)*h/o+d)),s)}var c=i[n],p=r,f=a;for(e(i,r,n),s(i[a],c)>0&&e(i,r,a);p<f;){for(e(i,p,f),p++,f--;s(i[p],c)<0;)p++;for(;s(i[f],c)>0;)f--}0===s(i[r],c)?e(i,r,f):e(i,++f,a),f<=n&&(r=f+1),n<=f&&(a=f-1)}}(i,n,r||0,a||i.length-1,s||t)}}).apply(null,[]))||(e.exports=n)},jEml:function(e,t,i){var n,r;n=[i("FT4I")],void 0===(r=(function(e){"use strict";function t(e,i){if(!(this instanceof t))return new t(e,i);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),i&&("function"==typeof i?this.toBBox=i:this._initFormat(i)),this.clear()}function i(e,t,i){if(!i)return t.indexOf(e);for(var n=0;n<t.length;n++)if(i(e,t[n]))return n;return-1}function n(e,t){r(e,0,e.children.length,t,e)}function r(e,t,i,n,r){r||(r=c(null)),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(var s,o=t;o<i;o++)s=e.children[o],a(r,e.leaf?n(s):s);return r}function a(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function s(e,t){return e.minX-t.minX}function o(e,t){return e.minY-t.minY}function u(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function l(e){return e.maxX-e.minX+(e.maxY-e.minY)}function h(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function d(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function c(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function p(t,i,n,r,a){for(var s,o=[i,n];o.length;)(n=o.pop())-(i=o.pop())<=r||(s=i+Math.ceil((n-i)/r/2)*r,e(t,s,i,n,a),o.push(i,s,s,n))}return t.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,i=[],n=this.toBBox;if(!d(e,t))return i;for(var r,a,s,o,u=[];t;){for(r=0,a=t.children.length;r<a;r++)s=t.children[r],d(e,o=t.leaf?n(s):s)&&(t.leaf?i.push(s):h(e,o)?this._all(s,i):u.push(s));t=u.pop()}return i},collides:function(e){var t=this.data,i=this.toBBox;if(!d(e,t))return!1;for(var n,r,a,s,o=[];t;){for(n=0,r=t.children.length;n<r;n++)if(a=t.children[n],d(e,s=t.leaf?i(a):a)){if(t.leaf||h(e,s))return!0;o.push(a)}t=o.pop()}return!1},load:function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0,i=e.length;t<i;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},insert:function(e){return e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=c([]),this},remove:function(e,t){if(!e)return this;for(var n,r,a,s,o=this.data,u=this.toBBox(e),l=[],d=[];o||l.length;){if(o||(o=l.pop(),r=l[l.length-1],n=d.pop(),s=!0),o.leaf&&-1!==(a=i(e,o.children,t)))return o.children.splice(a,1),l.push(o),this._condense(l),this;s||o.leaf||!h(o,u)?r?(n++,o=r.children[n],s=!1):o=null:(l.push(o),d.push(n),n=0,r=o,o=o.children[0])}return this},toBBox:function(e){return e},compareMinX:s,compareMinY:o,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){for(var i=[];e;)e.leaf?t.push.apply(t,e.children):i.push.apply(i,e.children),e=i.pop();return t},_build:function(e,t,i,r){var a,s=i-t+1,o=this._maxEntries;if(s<=o)return n(a=c(e.slice(t,i+1)),this.toBBox),a;r||(r=Math.ceil(Math.log(s)/Math.log(o)),o=Math.ceil(s/Math.pow(o,r-1))),(a=c([])).leaf=!1,a.height=r;var u,l,h,d,f=Math.ceil(s/o),m=f*Math.ceil(Math.sqrt(o));for(p(e,t,i,m,this.compareMinX),u=t;u<=i;u+=m)for(p(e,u,h=Math.min(u+m-1,i),f,this.compareMinY),l=u;l<=h;l+=f)d=Math.min(l+f-1,h),a.children.push(this._build(e,l,d,r-1));return n(a,this.toBBox),a},_chooseSubtree:function(e,t,i,n){for(var r,a,s,o,l,h,d,c,p,f;n.push(t),!t.leaf&&n.length-1!==i;){for(d=c=1/0,r=0,a=t.children.length;r<a;r++)l=u(s=t.children[r]),p=e,f=s,(h=(Math.max(f.maxX,p.maxX)-Math.min(f.minX,p.minX))*(Math.max(f.maxY,p.maxY)-Math.min(f.minY,p.minY))-l)<c?(c=h,d=l<d?l:d,o=s):h===c&&l<d&&(d=l,o=s);t=o||t.children[0]}return t},_insert:function(e,t,i){var n=i?e:(0,this.toBBox)(e),r=[],s=this._chooseSubtree(n,this.data,t,r);for(s.children.push(e),a(s,n);t>=0&&r[t].children.length>this._maxEntries;)this._split(r,t),t--;this._adjustParentBBoxes(n,r,t)},_split:function(e,t){var i=e[t],r=i.children.length,a=this._minEntries;this._chooseSplitAxis(i,a,r);var s=this._chooseSplitIndex(i,a,r),o=c(i.children.splice(s,i.children.length-s));o.height=i.height,o.leaf=i.leaf,n(i,this.toBBox),n(o,this.toBBox),t?e[t-1].children.push(o):this._splitRoot(i,o)},_splitRoot:function(e,t){this.data=c([e,t]),this.data.height=e.height+1,this.data.leaf=!1,n(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,i){var n,a,s,o,l,h,d,c,p,f,m,y,g,_;for(h=d=1/0,n=t;n<=i-t;n++)p=a=r(e,0,n,this.toBBox),f=s=r(e,n,i,this.toBBox),m=Math.max(p.minX,f.minX),y=Math.max(p.minY,f.minY),g=Math.min(p.maxX,f.maxX),_=Math.min(p.maxY,f.maxY),o=Math.max(0,g-m)*Math.max(0,_-y),l=u(a)+u(s),o<h?(h=o,c=n,d=l<d?l:d):o===h&&l<d&&(d=l,c=n);return c},_chooseSplitAxis:function(e,t,i){var n=e.leaf?this.compareMinX:s,r=e.leaf?this.compareMinY:o;this._allDistMargin(e,t,i,n)<this._allDistMargin(e,t,i,r)&&e.children.sort(n)},_allDistMargin:function(e,t,i,n){e.children.sort(n);var s,o,u=this.toBBox,h=r(e,0,t,u),d=r(e,i-t,i,u),c=l(h)+l(d);for(s=t;s<i-t;s++)o=e.children[s],a(h,e.leaf?u(o):o),c+=l(h);for(s=i-t-1;s>=t;s--)o=e.children[s],a(d,e.leaf?u(o):o),c+=l(d);return c},_adjustParentBBoxes:function(e,t,i){for(var n=i;n>=0;n--)a(t[n],e)},_condense:function(e){for(var t,i=e.length-1;i>=0;i--)0===e[i].children.length?i>0?(t=e[i-1].children).splice(t.indexOf(e[i]),1):this.clear():n(e[i],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}},t}).apply(null,n))||(e.exports=r)},vXbj:function(e,t,i){var n,r;n=[i.dj.c(e.i),t,i("zOht"),i("zp6E"),i("ma1f"),i("qMld"),i("Lzvl"),i("nrlZ"),i("+6sX"),i("rfv1"),i("Q2Em"),i("ZooB"),i("9K5t"),i("DaHD"),i("jJpZ"),i("I90O"),i("Q3lp"),i("k7g7")],void 0===(r=(function(e,t,i,n,r,a,s,o,u,l,h,d,c,p,f,m,y,g){Object.defineProperty(t,"__esModule",{value:!0});var _={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!1,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0}},x=function(){function e(){this._queryEngine=null}return e.prototype.destroy=function(){this._queryEngine&&this._queryEngine&&this._queryEngine.destroy(),this._queryEngine=this._requiredFields=this._fieldsIndex=this._createDefaultAttributes=null},e.prototype.load=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,a,s,f,x,v,b,F,I,E,M,j,T,w,B,X,q,Y,S,R,D,O,k,A,Q,G;return i.__generator(this,(function(J){switch(J.label){case 0:return t=[],[4,this._checkProjection(e.spatialReference)];case 1:return J.sent(),a=null,e.url?[4,n(e.url,{responseType:"json"})]:[3,4];case 2:return s=J.sent(),[4,c.validateGeoJSON(a=s.data)];case 3:J.sent(),J.label=4;case 4:if(f=c.inferLayerProperties(a,{geometryType:e.geometryType}),x=e.fields||f.fields||[],v=null!=e.hasZ?e.hasZ:f.hasZ,F=e.objectIdField||("number"===f.objectIdFieldType?f.objectIdFieldName:"OBJECTID")||"OBJECTID",I=e.spatialReference||o.WGS84,E=e.timeInfo,!(b=f.geometryType))throw new r("geojson-layer:missing-property","geometryType not set and couldn't be inferred from the provided features");for("string"===f.objectIdFieldType&&t.push({name:"geojson-layer:unsupported-id-type",message:"Feature ids are of type string and can't be honored."}),x===f.fields&&f.unknownFields.length>0&&t.push({name:"geojson-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:f.unknownFields}}),F&&(M=null,x.some((function(e){return e.name===F&&(M=e,!0)}))?(M.type="esriFieldTypeOID",M.editable=!1,M.nullable=!1):x.unshift({alias:F,name:F,type:"esriFieldTypeOID",editable:!1,nullable:!1})),j=0,T=x;j<T.length;j++){if(null==(q=T[j]).name&&(q.name=q.alias),null==q.alias&&(q.alias=q.name),!q.name)throw new r("geojson-layer:invalid-field-name","field name is missing",{field:q});if(q.name===F&&(q.type="esriFieldTypeOID"),-1===y.kebabDict.jsonValues.indexOf(q.type))throw new r("geojson-layer:invalid-field-type",'invalid type for field "'+q.name+'"',{field:q})}for(w={},this._requiredFields=[],B=0,X=x;B<X.length;B++)"esriFieldTypeOID"!==(q=X[B]).type&&"esriFieldTypeGlobalID"!==q.type&&(q.editable=null==q.editable||!!q.editable,q.nullable=null==q.nullable||!!q.nullable,Y=g.getFieldDefaultValue(q),q.nullable||void 0!==Y?w[q.name]=Y:this._requiredFields.push(q));if(this._fieldsIndex=new m(x),E&&(E.startTimeField&&((S=this._fieldsIndex.get(E.startTimeField))?(E.startTimeField=S.name,S.type="esriFieldTypeDate"):E.startTimeField=null),E.endTimeField&&((R=this._fieldsIndex.get(E.endTimeField))?(E.endTimeField=R.name,R.type="esriFieldTypeDate"):E.endTimeField=null),E.trackIdField&&((D=this._fieldsIndex.get(E.trackIdField))?E.trackIdField=D.name:(E.trackIdField=null,t.push({name:"geojson-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:E}}))),E.startTimeField||E.endTimeField||(t.push({name:"geojson-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:E}}),E=null)),O={warnings:t,featureErrors:[],layerDefinition:i.__assign(i.__assign({},_),{drawingInfo:p.createDrawingInfo(b),templates:p.createDefaultTemplate(w),extent:null,geometryType:b,objectIdField:F,fields:x,hasZ:!!v,timeInfo:E})},this._queryEngine=new d.default({fields:x,geometryType:b,hasM:!1,hasZ:v,objectIdField:F,spatialReference:I,timeInfo:E,featureStore:new l.default({geometryType:b,hasM:!1,hasZ:v})}),this._createDefaultAttributes=p.createDefaultAttributesFunction(w,F),this._nextObjectId=f.maxObjectId+1,k=c.createOptimizedFeatures(a,{geometryType:b,hasZ:v,objectIdFieldName:"number"===f.objectIdFieldType?F:null}),!o.equals(I,o.WGS84))for(A=0,Q=k;A<Q.length;A++)(G=Q[A]).geometry&&(G.geometry=u.convertFromGeometry(h.project(u.convertToGeometry(G.geometry,b,v,!1),o.WGS84,I)));return this._loadInitialFeatures(O,k),[2,O]}}))}))},e.prototype.applyEdits=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,a.all([f.loadGeometryEngineForSimplify(n=(t=this._queryEngine).spatialReference,t.geometryType),h.checkProjectionSupport(e.adds,n),h.checkProjectionSupport(e.updates,n)])];case 1:return i.sent(),[2,this._applyEdits(e)]}}))}))},e.prototype.queryFeatures=function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(i){return[2,this._queryEngine.executeQuery(e,t.signal)]}))}))},e.prototype.queryFeatureCount=function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(i){return[2,this._queryEngine.executeQueryForCount(e,t.signal)]}))}))},e.prototype.queryObjectIds=function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(i){return[2,this._queryEngine.executeQueryForIds(e,t.signal)]}))}))},e.prototype.queryExtent=function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(i){return[2,this._queryEngine.executeQueryForExtent(e,t.signal)]}))}))},e.prototype._loadInitialFeatures=function(e,t){for(var i=this._queryEngine,n=i.featureStore,r=i.objectIdField,a=[],s=0,o=t;s<o.length;s++){var u=o[s],l=this._createDefaultAttributes(),h=f.mixAttributes(this._fieldsIndex,this._requiredFields,l,u.attributes,!0,e.warnings);h?e.featureErrors.push(h):(this._assignObjectId(l,u.attributes,!0),u.attributes=l,u.objectId=l[r],a.push(u))}if(n.addMany(a),e.layerDefinition.extent=this._queryEngine.fullExtent,e.layerDefinition.timeInfo){var d=this._queryEngine.timeExtent;e.layerDefinition.timeInfo.timeExtent=[d.start,d.end]}return e},e.prototype._applyEdits=function(e){var t=e.adds,i=e.updates,n=e.deletes,r={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(t&&t.length&&this._applyAddEdits(r,t),i&&i.length&&this._applyUpdateEdits(r,i),n&&n.length){for(var a=0,s=n;a<s.length;a++)r.deleteResults.push(f.createFeatureEditSuccessResult(s[a]));this._queryEngine.featureStore.removeManyById(n)}return{fullExtent:this._queryEngine.fullExtent,timeExtent:this._queryEngine.timeExtent,featureEditResults:r}},e.prototype._applyAddEdits=function(e,t){for(var i=e.addResults,n=this._queryEngine,r=n.geometryType,a=n.hasM,o=n.hasZ,l=n.objectIdField,d=n.spatialReference,c=n.featureStore,p=[],m=0,y=t;m<y.length;m++){var g=y[m];if(g.geometry&&r!==s.getJsonType(g.geometry))i.push(f.createFeatureEditErrorResult("Incorrect geometry type."));else{var _=this._createDefaultAttributes(),x=f.mixAttributes(this._fieldsIndex,this._requiredFields,_,g.attributes);x?i.push(x):(this._assignObjectId(_,g.attributes),g.attributes=_,null!=g.uid&&(e.uidToObjectId[g.uid]=g.attributes[l]),g.geometry&&(g.geometry=h.project(f.simplify(g.geometry,d),g.geometry.spatialReference,d)),p.push(g),i.push(f.createFeatureEditSuccessResult(g.attributes[l])))}}c.addMany(u.convertFromFeatures([],p,r,o,a,l))},e.prototype._applyUpdateEdits=function(e,t){for(var i=e.updateResults,n=this._queryEngine,r=n.geometryType,a=n.hasM,o=n.hasZ,l=n.objectIdField,d=n.spatialReference,c=n.featureStore,p=0,m=t;p<m.length;p++){var y=m[p],g=y.attributes,_=y.geometry,x=g&&g[l];if(null!=x)if(c.has(x)){var v=u.convertToFeature(c.getFeature(x),r,o,a);if(_){if(r!==s.getJsonType(_)){i.push(f.createFeatureEditErrorResult("Incorrect geometry type."));continue}v.geometry=h.project(f.simplify(_,d),_.spatialReference,d)}if(g){var b=f.mixAttributes(this._fieldsIndex,this._requiredFields,v.attributes,g);if(b){i.push(b);continue}}c.add(u.convertFromFeature(v,r,o,a,l)),i.push(f.createFeatureEditSuccessResult(x))}else i.push(f.createFeatureEditErrorResult("Feature with object id "+x+" missing"));else i.push(f.createFeatureEditErrorResult("Identifier field "+l+" missing"))}},e.prototype._assignObjectId=function(e,t,i){void 0===i&&(i=!1);var n=this._queryEngine.objectIdField;e[n]=i&&isFinite(t[n])?t[n]:this._nextObjectId++},e.prototype._checkProjection=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,h.checkProjectionSupport(o.WGS84,e)];case 1:return t.sent(),[3,3];case 2:throw t.sent(),new r("geojson-layer","Projection not supported");case 3:return[2]}}))}))},e}();t.default=x}).apply(null,n))||(e.exports=r)}}]);