ym-gis-2d 1.0.33 → 1.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/capabilities/index.js +1 -1
- package/controls/ControlManager.js +1 -1
- package/controls/LegendControl.js +1 -1
- package/controls/MousePositionControl.js +1 -1
- package/controls/SwipeLayerControl.js +1 -1
- package/conver/kml/geoJSONToKml.js +1 -1
- package/conver/kml/index.js +1 -1
- package/conver/kml/kmlToGeoJSON.js +1 -1
- package/entity/Feature.js +1 -1
- package/entity/GeometryType.js +1 -1
- package/entity/measure/AreaMeasureUnits.js +1 -1
- package/feature/FeatureManager.d.ts +8 -2
- package/feature/FeatureManager.d.ts.map +1 -1
- package/feature/FeatureManager.js +1 -1
- package/feature/FeatureManager.js.map +1 -1
- package/index.js +1 -1
- package/interaction/AreaMeasure.js +1 -1
- package/interaction/Difference.d.ts +52 -0
- package/interaction/Difference.d.ts.map +1 -0
- package/interaction/Difference.js +1 -0
- package/interaction/Difference.js.map +1 -0
- package/interaction/Draw.js +1 -1
- package/interaction/InteractionManager.js +1 -1
- package/interaction/Modify.d.ts +15 -0
- package/interaction/Modify.d.ts.map +1 -0
- package/interaction/Modify.js +1 -0
- package/interaction/Modify.js.map +1 -0
- package/interaction/Select.js +1 -1
- package/interaction/Split.d.ts +10 -16
- package/interaction/Split.d.ts.map +1 -1
- package/interaction/Split.js +1 -1
- package/interaction/Split.js.map +1 -1
- package/layers/ArcgisDynamicLayer.js +1 -1
- package/layers/ArcgisFeatureLayer.js +1 -1
- package/layers/ArcgisTileLayer.js +1 -1
- package/layers/ArcgisWMSLayer.js +1 -1
- package/layers/ArcgisWMTSLayer.js +1 -1
- package/layers/GeoserverVectorTile.js +1 -1
- package/layers/GeoserverWFSLayer.js +1 -1
- package/layers/GeoserverWMSLayer.js +1 -1
- package/layers/GeoserverWMTSLayer.js +1 -1
- package/layers/LayerManager.js +1 -1
- package/layers/TDTLayer.js +1 -1
- package/mapView/Map.js +1 -1
- package/mapView/View.js +1 -1
- package/package.json +1 -1
- package/plot/Plot.js +1 -1
- package/plot/geometry/point/Point.js +1 -1
- package/plot/geometry/polygon/BasePolygon.js +1 -1
- package/plot/geometry/polygon/Circle.js +1 -1
- package/plot/geometry/polygon/Polygon.js +1 -1
- package/plot/geometry/polygon/RectAngle.js +1 -1
- package/plot/geometry/polyline/BaseLine.js +1 -1
- package/plot/geometry/polyline/Polyline.js +1 -1
- package/style/PointStyleFormat.js +1 -1
- package/style/PolygonStyleFormat.js +1 -1
- package/style/PolylineStyleFormat.js +1 -1
- package/style/PolylineStyleFormat.js.map +1 -1
- package/style/StyleManager.js +1 -1
- package/style/common.js +1 -1
- package/utils/ArrayUtil.js +1 -1
- package/utils/AxiosUtil.js +1 -1
- package/utils/EsriUtil.js +1 -1
- package/utils/GeometryUtil.d.ts +14 -2
- package/utils/GeometryUtil.d.ts.map +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/GeometryUtil.js.map +1 -1
- package/utils/LayerUtil.js +1 -1
- package/utils/RegisterProjUtil.js +1 -1
- package/utils/ResolutionUtil.js +1 -1
- package/utils/StringUtil.js +1 -1
- package/utils/StyleUtil.js +1 -1
- package/utils/UrlUtil.js +1 -1
- package/utils/XmlUtil.js +1 -1
- package/utils/format/CQL.js +1 -1
- package/utils/format/IsMatchCql.js +1 -1
- package/utils/plug/canvas/ImageCache.js +1 -1
- package/utils/plug/canvas/PinBuilder.js +1 -1
- package/utils/plug/canvas/PinIcon.js +1 -1
- package/utils/plug/canvas/writeTextToCanvas.js +1 -1
- package/utils/tasks/esri/Identify.js +1 -1
- package/utils/tasks/esri/Query.js +1 -1
- package/utils/tasks/esri/Task.js +1 -1
- package/utils/tasks/geoserver/QueryTask.js +1 -1
- package/utils/tasks/index.js +1 -1
- package/ym-gis-2d.es.js +1 -1
- package/ym-gis-2d.umd.js +1 -1
package/utils/UrlUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x583ccc,_0x77c610){const _0x30ddb0=a100_0x4342,_0x3fa70c=_0x583ccc();while(!![]){try{const _0x1cb6d8=-parseInt(_0x30ddb0(0x7d))/0x1*(parseInt(_0x30ddb0(0x92))/0x2)+parseInt(_0x30ddb0(0x8b))/0x3*(parseInt(_0x30ddb0(0x7c))/0x4)+parseInt(_0x30ddb0(0x7a))/0x5+parseInt(_0x30ddb0(0x7b))/0x6+-parseInt(_0x30ddb0(0x90))/0x7*(-parseInt(_0x30ddb0(0x80))/0x8)+-parseInt(_0x30ddb0(0x95))/0x9*(-parseInt(_0x30ddb0(0x91))/0xa)+-parseInt(_0x30ddb0(0x84))/0xb;if(_0x1cb6d8===_0x77c610)break;else _0x3fa70c['push'](_0x3fa70c['shift']());}catch(_0x597377){_0x3fa70c['push'](_0x3fa70c['shift']());}}}(a100_0x5abb,0xb8c6d));export function addArgument(_0x24eb21,_0x53e5d7,_0x495732){const _0x150369=a100_0x4342,_0x31c67d=new RegExp(_0x150369(0x88)+_0x53e5d7+_0x150369(0x89),'gi');if(_0x24eb21[_0x150369(0x81)](_0x31c67d))_0x24eb21=_0x24eb21[_0x150369(0x8d)](_0x31c67d,_0x122e08=>_0x122e08[0x0]+_0x53e5d7+'='+_0x495732);else{var _0x5dc7f8=_0x53e5d7+'='+_0x495732,_0x12f31e=_0x24eb21[_0x150369(0x8a)]('?');let _0x134490=_0x24eb21;_0x12f31e>-0x1&&_0x24eb21[_0x150369(0x8a)](_0x150369(0x8c))>-0x1&&(_0x134490=_0x24eb21['substring'](_0x12f31e+0x1),_0x12f31e=_0x134490[_0x150369(0x8a)]('?'));if(_0x12f31e<0x0)_0x24eb21+='?';else _0x12f31e>=0x0&&_0x12f31e!==_0x134490[_0x150369(0x82)]-0x1&&(_0x24eb21+='&');_0x24eb21=_0x24eb21+_0x5dc7f8;}return _0x24eb21;}export function appendParam(_0x4fdf37,_0x203f4e){const _0x45a54f=a100_0x4342;var _0x49fb57=_0x4fdf37['indexOf']('?');let _0x5260fb=_0x4fdf37;if(_0x49fb57>-0x1&&_0x4fdf37[_0x45a54f(0x8a)](_0x45a54f(0x8c))>-0x1){let _0x13adff=_0x49fb57+0x1;_0x5260fb=_0x4fdf37[_0x45a54f(0x8e)](_0x49fb57+0x1),_0x49fb57=_0x5260fb[_0x45a54f(0x8a)]('?');}return _0x49fb57>-0x1?_0x4fdf37+'&'+_0x203f4e:_0x4fdf37+'?'+_0x203f4e;}function a100_0x4342(_0x24f365,_0xb81458){const _0x5abb4e=a100_0x5abb();return a100_0x4342=function(_0x4342b5,_0x997394){_0x4342b5=_0x4342b5-0x7a;let _0x3946e0=_0x5abb4e[_0x4342b5];return _0x3946e0;},a100_0x4342(_0x24f365,_0xb81458);}export function appendPath(_0x57332e,_0x2d1cc3){const _0xd35a6f=a100_0x4342;var _0x5f4004=_0x57332e[_0xd35a6f(0x8a)]('?');let _0x52e3ab=_0x57332e;if(_0x5f4004>-0x1&&_0x57332e[_0xd35a6f(0x8a)]('?http')>-0x1){let _0x2b5fe5=_0x5f4004+0x1;_0x52e3ab=_0x57332e['substring'](_0x5f4004+0x1),_0x5f4004=_0x52e3ab[_0xd35a6f(0x8a)]('?'),_0x5f4004>-0x1&&(_0x5f4004+=_0x2b5fe5);}return _0x5f4004>-0x1?_0x57332e[_0xd35a6f(0x8e)](0x0,_0x5f4004)+'/'+_0x2d1cc3+_0x57332e[_0xd35a6f(0x8e)](_0x5f4004):_0x57332e+'/'+_0x2d1cc3;}function a100_0x5abb(){const _0x46ac63=['replace','substring','removeChild','2008461POtWRT','10229620thRyJb','2364188EgZOkB','setAttribute','createObjectURL','9DvqiJP','6078415vgNgPU','1761684Dcnpms','867104GbrgWD','1SxOAMQ','body','_blank','40PpSgpX','match','length','map','27076357QzyEdr','createElement','split','appendChild','[\x5c?&](','=)([^&]*)','indexOf','6wWgLRy','?http'];a100_0x5abb=function(){return _0x46ac63;};return a100_0x5abb();}export function getUrlParams(_0x5cafce){const _0x467c4f=a100_0x4342;var _0x4c1e92,_0x4d3963;let _0x2d0a67=_0x5cafce[_0x467c4f(0x8a)](_0x467c4f(0x8c)),_0x3a6281;_0x2d0a67>-0x1?_0x5cafce[_0x467c4f(0x8a)]('?',_0x2d0a67+0x3)>-0x1&&(_0x3a6281=(_0x4c1e92=_0x5cafce['split']('?'))===null||_0x4c1e92===void 0x0?void 0x0:_0x4c1e92[0x2]):_0x5cafce[_0x467c4f(0x8a)]('?')>-0x1&&(_0x3a6281=(_0x4d3963=_0x5cafce[_0x467c4f(0x86)]('?'))===null||_0x4d3963===void 0x0?void 0x0:_0x4d3963[0x1]);if(_0x3a6281)return createParamByQuery(_0x3a6281);return[];}function createParamByQuery(_0x5f1938){const _0x19248e=a100_0x4342;let _0x3e1c04=_0x5f1938['split']('&');return _0x3e1c04[_0x19248e(0x83)](_0x20ddde=>{const _0x5abd9f=_0x19248e;var _0x20bf1b=_0x20ddde[_0x5abd9f(0x86)]('=');return{'name':_0x20bf1b[0x0],'value':_0x20bf1b[0x1]};});}export function parseImage(_0x15a18d,_0x355ebb){const _0x51f8de=a100_0x4342;let _0x4b4ebc='';if(_0x15a18d){if(_0x15a18d[_0x51f8de(0x81)](/^(data|http|https)/))_0x4b4ebc=_0x15a18d;else{if(_0x15a18d['match'](/Assets/))_0x4b4ebc=_0x15a18d;else{}}}return _0x4b4ebc;}export function downloadBlob(_0x14c445,_0x464b8e){const _0xe53141=a100_0x4342,_0xbb15ab=URL[_0xe53141(0x94)](_0x14c445);var _0x3af92a=document[_0xe53141(0x85)]('a');_0x3af92a[_0xe53141(0x93)]('href',_0xbb15ab),_0x3af92a[_0xe53141(0x93)]('target',_0xe53141(0x7f)),_0x3af92a['setAttribute']('download',_0x464b8e),document['body'][_0xe53141(0x87)](_0x3af92a),_0x3af92a['click'](),document[_0xe53141(0x7e)][_0xe53141(0x8f)](_0x3af92a),URL['revokeObjectURL'](_0xbb15ab);}
|
package/utils/XmlUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x14c6d7,_0x5a7da6){const _0x1e98a8=a101_0x4758,_0x196810=_0x14c6d7();while(!![]){try{const _0x57dcb7=parseInt(_0x1e98a8(0x1ab))/0x1*(parseInt(_0x1e98a8(0x1aa))/0x2)+parseInt(_0x1e98a8(0x1a7))/0x3+-parseInt(_0x1e98a8(0x1b0))/0x4*(parseInt(_0x1e98a8(0x1a8))/0x5)+parseInt(_0x1e98a8(0x1ac))/0x6+-parseInt(_0x1e98a8(0x1b2))/0x7*(-parseInt(_0x1e98a8(0x1ae))/0x8)+parseInt(_0x1e98a8(0x1b3))/0x9+-parseInt(_0x1e98a8(0x1af))/0xa;if(_0x57dcb7===_0x5a7da6)break;else _0x196810['push'](_0x196810['shift']());}catch(_0xa793b1){_0x196810['push'](_0x196810['shift']());}}}(a101_0x3a6a,0xeba7a));function a101_0x3a6a(){const _0x32e0a3=['23776gNzvmY','36810560rhIFmR','5771572pFKVyz','loadXML','4333RrElsd','9912609FAfVgi','3913707lELEFG','5sgvRGB','parseFromString','10UorokM','78460aIXbXo','8707518SOCOgm','Microsoft.XMLDOM'];a101_0x3a6a=function(){return _0x32e0a3;};return a101_0x3a6a();}function a101_0x4758(_0x4162f3,_0x98e16e){const _0x3a6aec=a101_0x3a6a();return a101_0x4758=function(_0x47589c,_0x5172a9){_0x47589c=_0x47589c-0x1a7;let _0x4c8fee=_0x3a6aec[_0x47589c];return _0x4c8fee;},a101_0x4758(_0x4162f3,_0x98e16e);}export function readXml(_0x5d6590){const _0x4cd783=a101_0x4758;let _0x512639;return window['DOMParser']?_0x512639=new DOMParser()[_0x4cd783(0x1a9)](_0x5d6590,'text/xml'):(_0x512639=new ActiveXObject(_0x4cd783(0x1ad)),_0x512639['async']='false',_0x512639[_0x4cd783(0x1b1)](_0x5d6590)),_0x512639;}
|
package/utils/format/CQL.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a80_0x248b65=a80_0xae6c;(function(_0x381afb,_0x13cfc8){const _0x4315ce=a80_0xae6c,_0x5c14e8=_0x381afb();while(!![]){try{const _0x407665=parseInt(_0x4315ce(0x84))/0x1+parseInt(_0x4315ce(0x72))/0x2*(parseInt(_0x4315ce(0xaf))/0x3)+-parseInt(_0x4315ce(0xb3))/0x4*(parseInt(_0x4315ce(0xc7))/0x5)+parseInt(_0x4315ce(0x86))/0x6+parseInt(_0x4315ce(0xb1))/0x7*(parseInt(_0x4315ce(0xd4))/0x8)+parseInt(_0x4315ce(0x89))/0x9*(parseInt(_0x4315ce(0x97))/0xa)+parseInt(_0x4315ce(0x7b))/0xb*(-parseInt(_0x4315ce(0xb6))/0xc);if(_0x407665===_0x13cfc8)break;else _0x5c14e8['push'](_0x5c14e8['shift']());}catch(_0x3c8d0c){_0x5c14e8['push'](_0x5c14e8['shift']());}}}(a80_0x4147,0xbe575));import*as a80_0x1d57bb from'ol/format/filter';import{WKT}from'ol/format';import a80_0x2a6d01 from'ol/geom/Geometry';function a80_0x4147(){const _0x16bc1d=['RPAREN','PropertyIsEqualTo','match','LPAREN','8XJCzeB','property','lessThanOrEqualTo','BETWEEN','between','Within','PropertyIsNull','srsName','\x20AND\x20','INTERSECTS','538umrsah','CONTAINS','greaterThan','GEOMETRY','extent','split','propertyName','write','COMMA','5500946wZMRhl','lowerBoundary','pop','replaceAll','conditions','operators','notEqualTo','remainder','indexOf','301333MhyIDo','tryToken','6109104JlWLgf','follows','upperBoundary','9tYxgyp','And','length','greaterThanOrEqualTo','and','string','tagName_','END','writeGeometry','COMPARISON','lastIndexOf','nextToken','PropertyIsGreaterThanOrEqualTo','Contains','2999860RGBDBT','logicals','CQL解析失败:','NOT','BBOX','operatorReverse','No\x20follows\x20list\x20for\x20','expression','isNull','PropertyIsNotEqualTo','LIKE','WITHIN(','VALUE','charAt','LOGICAL','INTERSECTS(','SPATIAL','substring','toUpperCase','index','patterns','geometryName','text','PROPERTY','3612gpedUk','Can\x27t\x20encode:\x20','2371831IMGNSx','shift','9268rysttF','CONTAINS(','warn','36EARcCg','BBOX(','tokenize','type','inPatterns','Not','geometry','toLowerCase','intersects','equalTo','precedence','replace','exec','read','parseInToOr','push','number','5FnCeEn','readGeometry','WITHIN','condition','buildAst','not','like','tokens','IS\x20NULL'];a80_0x4147=function(){return _0x16bc1d;};return a80_0x4147();}function a80_0xae6c(_0x25bba5,_0xd5ecbb){const _0x414741=a80_0x4147();return a80_0xae6c=function(_0xae6c98,_0x3f0452){_0xae6c98=_0xae6c98-0x6f;let _0x4a57be=_0x414741[_0xae6c98];return _0x4a57be;},a80_0xae6c(_0x25bba5,_0xd5ecbb);}export default class CQL{constructor(){const _0x8d7877=a80_0xae6c;this['inPatterns']=/ (IN) /i,this[_0x8d7877(0xce)]=[_0x8d7877(0xae),_0x8d7877(0x92),_0x8d7877(0xa3),_0x8d7877(0xa5)],this[_0x8d7877(0xab)]={'PROPERTY':/^[_a-zA-Z]\w*/,'COMPARISON':/^(=|<>|<=|<|>=|>|LIKE)/i,'IS_NULL':/^IS NULL/i,'COMMA':/^,/,'LOGICAL':/^(AND|OR)/i,'VALUE':/^('([^']|'')*'|-?\d+(\.\d*)?|\.\d+)/,'LPAREN':/^\(/,'RPAREN':/^\)/,'SPATIAL':/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,'NOT':/^NOT/i,'BETWEEN':/^BETWEEN/i,'GEOMETRY':function(_0x2c5e46){const _0x247bd6=_0x8d7877;let _0x8b9b73=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/[_0x247bd6(0xc2)](_0x2c5e46);if(_0x8b9b73){let _0x37f56a=_0x2c5e46['length'],_0x34a9d4=_0x2c5e46[_0x247bd6(0x83)]('(',_0x8b9b73[0x0][_0x247bd6(0x8b)]);if(_0x34a9d4>-0x1){let _0x2b0afc=0x1;while(_0x34a9d4<_0x37f56a&&_0x2b0afc>0x0){_0x34a9d4++;switch(_0x2c5e46[_0x247bd6(0xa4)](_0x34a9d4)){case'(':_0x2b0afc++;break;case')':_0x2b0afc--;break;default:}}}return[_0x2c5e46[_0x247bd6(0xa8)](0x0,_0x34a9d4+0x1)];}},'END':/^$/},this['follows']={'LPAREN':[_0x8d7877(0x75),'SPATIAL',_0x8d7877(0xae),_0x8d7877(0xa3),_0x8d7877(0xd3)],'RPAREN':['NOT',_0x8d7877(0xa5),_0x8d7877(0x90),_0x8d7877(0xd0)],'PROPERTY':[_0x8d7877(0x92),'BETWEEN',_0x8d7877(0x7a),'IS_NULL'],'BETWEEN':[_0x8d7877(0xa3)],'IS_NULL':[_0x8d7877(0x90)],'COMPARISON':[_0x8d7877(0xa3)],'COMMA':[_0x8d7877(0x75),_0x8d7877(0xa3),_0x8d7877(0xae)],'VALUE':[_0x8d7877(0xa5),_0x8d7877(0x7a),_0x8d7877(0xd0),_0x8d7877(0x90)],'SPATIAL':[_0x8d7877(0xd3)],'LOGICAL':[_0x8d7877(0x9a),'VALUE',_0x8d7877(0xa7),_0x8d7877(0xae),_0x8d7877(0xd3)],'NOT':[_0x8d7877(0xae),_0x8d7877(0xd3)],'GEOMETRY':['COMMA','RPAREN']},this[_0x8d7877(0x80)]={'=':a80_0x1d57bb[_0x8d7877(0xbf)],'<>':a80_0x1d57bb[_0x8d7877(0x81)],'<':a80_0x1d57bb['lessThan'],'<=':a80_0x1d57bb[_0x8d7877(0xd6)],'>':a80_0x1d57bb[_0x8d7877(0x74)],'>=':a80_0x1d57bb[_0x8d7877(0x8c)],'LIKE':a80_0x1d57bb[_0x8d7877(0xcd)],'BETWEEN':a80_0x1d57bb[_0x8d7877(0xd8)],'IS\x20NULL':a80_0x1d57bb[_0x8d7877(0x9f)]},this[_0x8d7877(0x9c)]={'PropertyIsEqualTo':'=','PropertyIsNotEqualTo':'<>','PropertyIsLessThan':'<','PropertyIsLessThanOrEqualTo':'<=','PropertyIsGreaterThan':'>','PropertyIsGreaterThanOrEqualTo':'>=','PropertyIsLike':_0x8d7877(0xa1),'PropertyIsNull':_0x8d7877(0xcf),'PropertyIsBetween':_0x8d7877(0xd7)},this[_0x8d7877(0x98)]={'AND':a80_0x1d57bb[_0x8d7877(0x8d)],'OR':a80_0x1d57bb['or']},this['precedence']={'RPAREN':0x3,'LOGICAL':0x2,'COMPARISON':0x1};}['tryToken'](_0x2cee1e,_0x594d5c){return _0x594d5c instanceof RegExp?_0x594d5c['exec'](_0x2cee1e):_0x594d5c(_0x2cee1e);}[a80_0x248b65(0x94)](_0x3ea37f,_0x3d308a){const _0x57d50b=a80_0x248b65;let _0xb394e2,_0x28d2b5,_0x44f35b=_0x3d308a[_0x57d50b(0x8b)];for(_0xb394e2=0x0;_0xb394e2<_0x44f35b;_0xb394e2++){_0x28d2b5=_0x3d308a[_0xb394e2];let _0x26194b=this[_0x57d50b(0xab)][_0x28d2b5],_0x209ab4=this[_0x57d50b(0x85)](_0x3ea37f,_0x26194b);if(_0x209ab4){let _0x96bffe=_0x209ab4[0x0],_0x1405e9=_0x3ea37f['substring'](_0x96bffe['length'])['replace'](/^\s*/,'');return{'type':_0x28d2b5,'text':_0x96bffe,'remainder':_0x1405e9};}}let _0x5283ba='ERROR:\x20In\x20parsing:\x20['+_0x3ea37f+'],\x20expected\x20one\x20of:\x20';for(_0xb394e2=0x0;_0xb394e2<_0x44f35b;_0xb394e2++){_0x28d2b5=_0x3d308a[_0xb394e2],_0x5283ba+='\x0a\x20\x20\x20\x20'+_0x28d2b5+':\x20'+this[_0x57d50b(0xab)][_0x28d2b5];}throw new Error(_0x5283ba);}[a80_0x248b65(0xb8)](_0x39365d){const _0x1f5083=a80_0x248b65;_0x39365d=_0x39365d[_0x1f5083(0x7e)]('[','')[_0x1f5083(0x7e)](']','');let _0x40bdaa=this['tryToken'](_0x39365d,this[_0x1f5083(0xba)]);_0x40bdaa&&(_0x39365d=this['parseInToOr'](_0x39365d,_0x40bdaa));let _0x879c73=[],_0x21b97d,_0x2cbe4b=[_0x1f5083(0x9a),_0x1f5083(0x75),_0x1f5083(0xa7),_0x1f5083(0xae),_0x1f5083(0xd3)];do{_0x21b97d=this[_0x1f5083(0x94)](_0x39365d,_0x2cbe4b),_0x39365d=_0x21b97d[_0x1f5083(0x82)],_0x2cbe4b=this[_0x1f5083(0x87)][_0x21b97d[_0x1f5083(0xb9)]];if(_0x21b97d[_0x1f5083(0xb9)]!==_0x1f5083(0x90)&&!_0x2cbe4b)throw new Error(_0x1f5083(0x9d)+_0x21b97d['type']);_0x879c73[_0x1f5083(0xc5)](_0x21b97d);}while(_0x21b97d[_0x1f5083(0xb9)]!==_0x1f5083(0x90));return _0x879c73;}[a80_0x248b65(0xc4)](_0x14d433,_0xe6f052){const _0xae3a11=a80_0x248b65;let _0x3b6805=this['tryToken'](_0x14d433,/\((.+?)\)/g);if(_0x3b6805){let _0x3f4fee=_0x14d433[_0xae3a11(0xa8)](0x0,_0xe6f052[_0xae3a11(0xaa)]),_0x5b2988=_0x3b6805[0x1],_0x2c1e70=_0x5b2988[_0xae3a11(0x7e)]('\x20','')[_0xae3a11(0x77)](','),_0x287020='',_0xe2a705='';if(_0x3f4fee[_0xae3a11(0x83)]('\x20')>-0x1){let _0xf23c84=_0x3f4fee[_0xae3a11(0x93)]('\x20');_0xe2a705=_0x3f4fee[_0xae3a11(0xa8)](0x0,_0xf23c84+0x1),_0x287020=_0x3f4fee[_0xae3a11(0xa8)](_0xf23c84+0x1,_0x3f4fee[_0xae3a11(0x8b)]);}else _0x287020=_0x3f4fee;let _0xfa42cc=_0xe2a705;for(let _0x26860a=0x0;_0x26860a<_0x2c1e70[_0xae3a11(0x8b)];_0x26860a++){let _0x5394f7=_0x2c1e70[_0x26860a];_0xfa42cc+=_0x287020+'='+_0x5394f7,_0x26860a<_0x2c1e70[_0xae3a11(0x8b)]-0x1&&(_0xfa42cc+='\x20or\x20');}return _0xfa42cc;}return _0x14d433;}['buildAst'](_0x42dc35){const _0x11ad24=a80_0x248b65;let _0x254d5d=this,_0x4733af=[],_0x3d785b=[];while(_0x42dc35[_0x11ad24(0x8b)]){let _0x5e15ee=_0x42dc35[_0x11ad24(0xb2)]();switch(_0x5e15ee['type']){case _0x11ad24(0xae):case _0x11ad24(0x75):case _0x11ad24(0xa3):_0x3d785b['push'](_0x5e15ee);break;case _0x11ad24(0x92):case _0x11ad24(0xd7):case'IS_NULL':case _0x11ad24(0xa5):{let _0x37c4f7=this[_0x11ad24(0xc0)][_0x5e15ee[_0x11ad24(0xb9)]];while(_0x4733af['length']>0x0&&this['precedence'][_0x4733af[_0x4733af[_0x11ad24(0x8b)]-0x1][_0x11ad24(0xb9)]]<=_0x37c4f7){_0x3d785b[_0x11ad24(0xc5)](_0x4733af[_0x11ad24(0x7d)]());}_0x4733af[_0x11ad24(0xc5)](_0x5e15ee);break;}case _0x11ad24(0xa7):case _0x11ad24(0x9a):case _0x11ad24(0xd3):_0x4733af[_0x11ad24(0xc5)](_0x5e15ee);break;case _0x11ad24(0xd0):while(_0x4733af['length']>0x0&&_0x4733af[_0x4733af[_0x11ad24(0x8b)]-0x1][_0x11ad24(0xb9)]!==_0x11ad24(0xd3)){_0x3d785b[_0x11ad24(0xc5)](_0x4733af[_0x11ad24(0x7d)]());}_0x4733af[_0x11ad24(0x7d)]();_0x4733af[_0x11ad24(0x8b)]>0x0&&(_0x4733af[_0x4733af[_0x11ad24(0x8b)]-0x1]['type']===_0x11ad24(0xa7)||_0x4733af[_0x4733af[_0x11ad24(0x8b)]-0x1][_0x11ad24(0xb9)]==='NOT')&&_0x3d785b[_0x11ad24(0xc5)](_0x4733af[_0x11ad24(0x7d)]());break;case _0x11ad24(0x7a):case _0x11ad24(0x90):break;default:throw new Error('Unknown\x20token\x20type\x20'+_0x5e15ee[_0x11ad24(0xb9)]);}}while(_0x4733af[_0x11ad24(0x8b)]>0x0){_0x3d785b[_0x11ad24(0xc5)](_0x4733af[_0x11ad24(0x7d)]());}function _0x1ec71a(){const _0x2a6051=_0x11ad24;let _0x16589c,_0xba5ff7,_0x432cee=_0x3d785b['pop']();switch(_0x432cee['type']){case _0x2a6051(0xa5):{let _0x46e39d=_0x1ec71a(),_0x4c212f=_0x1ec71a();return new _0x254d5d[(_0x2a6051(0x98))][(_0x432cee[_0x2a6051(0xad)][_0x2a6051(0xa9)]())](_0x4c212f,_0x46e39d);}case _0x2a6051(0x9a):{let _0x19c9cf=_0x1ec71a();return a80_0x1d57bb[_0x2a6051(0xcc)](_0x19c9cf);}case _0x2a6051(0xd7):{let _0x2bc9d4,_0x237a51;return _0x3d785b[_0x2a6051(0x7d)](),_0x237a51=_0x1ec71a(),_0x2bc9d4=_0x1ec71a(),_0xba5ff7=_0x1ec71a(),a80_0x1d57bb[_0x2a6051(0xd8)](_0xba5ff7,_0x2bc9d4,_0x237a51);}case _0x2a6051(0x92):{return _0x16589c=_0x1ec71a(),_0xba5ff7=_0x1ec71a(),new _0x254d5d[(_0x2a6051(0x80))][(_0x432cee[_0x2a6051(0xad)][_0x2a6051(0xa9)]())](_0xba5ff7,_0x16589c);}case'IS_NULL':_0xba5ff7=_0x1ec71a();return new _0x254d5d[(_0x2a6051(0x80))][(_0x432cee[_0x2a6051(0xad)][_0x2a6051(0xa9)]())](_0xba5ff7);case'VALUE':{let _0x42b114=_0x432cee[_0x2a6051(0xad)][_0x2a6051(0xd2)](/^'(.*)'$/);return _0x42b114?_0x42b114[0x1][_0x2a6051(0xc1)](/''/g,'\x27'):Number(_0x432cee[_0x2a6051(0xad)]);}case'SPATIAL':switch(_0x432cee[_0x2a6051(0xad)][_0x2a6051(0xa9)]()){case _0x2a6051(0x9b):{let _0x1f77df=_0x1ec71a(),_0x4d9696=_0x1ec71a(),_0x551413=_0x1ec71a(),_0x4a3283=_0x1ec71a(),_0x17f551=_0x1ec71a();return a80_0x1d57bb['bbox'](_0x17f551,[_0x4a3283,_0x551413,_0x4d9696,_0x1f77df]);}case _0x2a6051(0x71):_0x16589c=_0x1ec71a(),_0xba5ff7=_0x1ec71a();return a80_0x1d57bb[_0x2a6051(0xbe)](_0xba5ff7,_0x16589c);case _0x2a6051(0xc9):_0x16589c=_0x1ec71a(),_0xba5ff7=_0x1ec71a();return a80_0x1d57bb['within'](_0xba5ff7,_0x16589c);case _0x2a6051(0x73):_0x16589c=_0x1ec71a(),_0xba5ff7=_0x1ec71a();return a80_0x1d57bb['contains'](_0xba5ff7,_0x16589c);}break;case _0x2a6051(0x75):return new WKT()[_0x2a6051(0xc8)](_0x432cee[_0x2a6051(0xad)],{});default:return _0x432cee[_0x2a6051(0xad)];}}let _0x4239f6=_0x1ec71a();if(_0x3d785b[_0x11ad24(0x8b)]>0x0){let _0x33e751='剩余的节点无法解析:\x20\x0a';for(let _0x48a6fd=_0x3d785b[_0x11ad24(0x8b)]-0x1;_0x48a6fd>=0x0;_0x48a6fd--){_0x33e751+=_0x3d785b[_0x48a6fd]['type']+':\x20'+_0x3d785b[_0x48a6fd][_0x11ad24(0xad)]+'\x0a';}throw new Error(_0x33e751);}return _0x4239f6;}[a80_0x248b65(0xc3)](_0x34d064){const _0x29e7bb=a80_0x248b65;try{return this[_0x29e7bb(0xcb)](this[_0x29e7bb(0xb8)](_0x34d064));}catch(_0x54241c){console[_0x29e7bb(0xb5)](_0x29e7bb(0x99)+_0x34d064),console[_0x29e7bb(0xb5)](_0x54241c);}}['write'](_0x96710){const _0x59d263=a80_0x248b65;switch(_0x96710[_0x59d263(0x8f)]){case _0x59d263(0x9b):return _0x59d263(0xb7)+_0x96710[_0x59d263(0xac)]+','+_0x96710[_0x59d263(0x76)]['join'](',')+','+_0x96710[_0x59d263(0x6f)]+')';case _0x59d263(0xd9):return _0x59d263(0xa2)+_0x96710[_0x59d263(0xac)]+',\x20'+this[_0x59d263(0xc8)](_0x96710[_0x59d263(0xbc)])+')';case'Intersects':return _0x59d263(0xa6)+_0x96710[_0x59d263(0xac)]+',\x20'+this['readGeometry'](_0x96710[_0x59d263(0xbc)])+')';case _0x59d263(0x96):return _0x59d263(0xb4)+_0x96710['geometryName']+',\x20'+this['readGeometry'](_0x96710[_0x59d263(0xbc)])+')';case _0x59d263(0xbb):return'NOT\x20('+this[_0x59d263(0x79)](_0x96710[_0x59d263(0xca)])+')';case _0x59d263(0x8a):case'Or':{let _0x2d99b1='(',_0x228bd5=!![];for(let _0x5a2d99=0x0;_0x5a2d99<_0x96710['conditions']['length'];_0x5a2d99++){_0x228bd5?_0x228bd5=![]:_0x2d99b1+=')\x20'+_0x96710[_0x59d263(0x8f)][_0x59d263(0xbd)]()+'\x20(',_0x2d99b1+=this[_0x59d263(0x79)](_0x96710[_0x59d263(0x7f)][_0x5a2d99]);}return _0x2d99b1+')';}case'PropertyIsBetween':return _0x96710[_0x59d263(0xd5)]+'\x20BETWEEN\x20'+this['write'](_0x96710[_0x59d263(0x7c)])+_0x59d263(0x70)+this['write'](_0x96710[_0x59d263(0x88)]);case _0x59d263(0xd1):case _0x59d263(0xa0):case'PropertyIsLessThan':case'PropertyIsLessThanOrEqualTo':case'PropertyIsGreaterThan':case _0x59d263(0x95):case'PropertyIsLike':case _0x59d263(0xda):{return _0x96710[_0x59d263(0x9e)]!==null?_0x96710[_0x59d263(0x78)]+'\x20'+this['operatorReverse'][_0x96710[_0x59d263(0x8f)]]+'\x20'+this[_0x59d263(0x79)](_0x96710[_0x59d263(0x9e)]):_0x96710[_0x59d263(0x78)]+'\x20'+this[_0x59d263(0x9c)][_0x96710[_0x59d263(0x8f)]];}case undefined:if(typeof _0x96710===_0x59d263(0x8e))return'\x27'+_0x96710['replace'](/'/g,'\x27\x27')+'\x27';else{if(typeof _0x96710===_0x59d263(0xc6))return String(_0x96710);}break;default:throw new Error(_0x59d263(0xb0)+_0x96710['CLASS_NAME']+'\x20'+_0x96710);}}['readGeometry'](_0x3048e0){const _0x48645a=a80_0x248b65;if(_0x3048e0 instanceof a80_0x2a6d01)return new WKT()[_0x48645a(0x91)](_0x3048e0);}}
|
|
1
|
+
function a82_0x3266(){const _0x59b415=['PropertyIsNull','119HbGgwt','greaterThan','tryToken','index','readGeometry','CONTAINS(','geometry','PropertyIsEqualTo','],\x20expected\x20one\x20of:\x20','remainder','replace','PropertyIsLessThan','push','and','NOT\x20(','inPatterns','2720884zbNaOV','SPATIAL','conditions','indexOf','exec','patterns','IS_NULL','PropertyIsLike','Unknown\x20token\x20type\x20','Intersects','srsName','upperBoundary','toUpperCase','equalTo','warn','within','Contains','1663961ZmcWnZ','12hgIWRW','operatorReverse','\x20or\x20','number','66566dgQZwf','BBOX(','Can\x27t\x20encode:\x20','string','buildAst','COMMA','COMPARISON','40kjaald','charAt','NOT','WITHIN','geometryName','operators','pop','Within','INTERSECTS(','1171278vInKVe','length','INTERSECTS','LPAREN','PROPERTY','split','tagName_','writeGeometry','RPAREN','like','10758zBgTed','PropertyIsGreaterThan','propertyName','And','lessThan','CQL解析失败:','GEOMETRY','5xVAtwf','match','nextToken','LOGICAL','precedence','WITHIN(','expression','339074AHUFis','toLowerCase','BBOX','END','BETWEEN','read','substring','1683XLxBXk','LIKE','\x0a\x20\x20\x20\x20','bbox','lessThanOrEqualTo','ERROR:\x20In\x20parsing:\x20[','PropertyIsNotEqualTo','剩余的节点无法解析:\x20\x0a','lastIndexOf','type','replaceAll','33uFvyjh','16600SbjWIv','intersects','\x20BETWEEN\x20','VALUE','between','parseInToOr','join','write','notEqualTo','text','contains'];a82_0x3266=function(){return _0x59b415;};return a82_0x3266();}const a82_0x262fdb=a82_0x1602;(function(_0x585a5a,_0x197dc3){const _0x10ddfa=a82_0x1602,_0x54750a=_0x585a5a();while(!![]){try{const _0x47d224=parseInt(_0x10ddfa(0xdd))/0x1+parseInt(_0x10ddfa(0xb5))/0x2*(-parseInt(_0x10ddfa(0x82))/0x3)+-parseInt(_0x10ddfa(0x9f))/0x4*(-parseInt(_0x10ddfa(0xd6))/0x5)+-parseInt(_0x10ddfa(0xcf))/0x6*(parseInt(_0x10ddfa(0x8f))/0x7)+-parseInt(_0x10ddfa(0xbc))/0x8*(parseInt(_0x10ddfa(0xc5))/0x9)+parseInt(_0x10ddfa(0x83))/0xa*(parseInt(_0x10ddfa(0xe4))/0xb)+parseInt(_0x10ddfa(0xb1))/0xc*(parseInt(_0x10ddfa(0xb0))/0xd);if(_0x47d224===_0x197dc3)break;else _0x54750a['push'](_0x54750a['shift']());}catch(_0xa9b0eb){_0x54750a['push'](_0x54750a['shift']());}}}(a82_0x3266,0x566b0));function a82_0x1602(_0xcfd7b8,_0x2d138d){const _0x32666f=a82_0x3266();return a82_0x1602=function(_0x16025e,_0x3e87e1){_0x16025e=_0x16025e-0x7b;let _0x2cd3da=_0x32666f[_0x16025e];return _0x2cd3da;},a82_0x1602(_0xcfd7b8,_0x2d138d);}import*as a82_0x12d7bd from'ol/format/filter';import{WKT}from'ol/format';import a82_0x840459 from'ol/geom/Geometry';export default class CQL{constructor(){const _0x536e21=a82_0x1602;this['inPatterns']=/ (IN) /i,this['tokens']=[_0x536e21(0xc9),_0x536e21(0xbb),'VALUE',_0x536e21(0xd9)],this[_0x536e21(0xa4)]={'PROPERTY':/^[_a-zA-Z]\w*/,'COMPARISON':/^(=|<>|<=|<|>=|>|LIKE)/i,'IS_NULL':/^IS NULL/i,'COMMA':/^,/,'LOGICAL':/^(AND|OR)/i,'VALUE':/^('([^']|'')*'|-?\d+(\.\d*)?|\.\d+)/,'LPAREN':/^\(/,'RPAREN':/^\)/,'SPATIAL':/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,'NOT':/^NOT/i,'BETWEEN':/^BETWEEN/i,'GEOMETRY':function(_0x391897){const _0x1f91dd=_0x536e21;let _0x28d85c=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/['exec'](_0x391897);if(_0x28d85c){let _0x14b233=_0x391897[_0x1f91dd(0xc6)],_0x54c4a5=_0x391897[_0x1f91dd(0xa2)]('(',_0x28d85c[0x0][_0x1f91dd(0xc6)]);if(_0x54c4a5>-0x1){let _0x1332a7=0x1;while(_0x54c4a5<_0x14b233&&_0x1332a7>0x0){_0x54c4a5++;switch(_0x391897[_0x1f91dd(0xbd)](_0x54c4a5)){case'(':_0x1332a7++;break;case')':_0x1332a7--;break;default:}}}return[_0x391897[_0x1f91dd(0xe3)](0x0,_0x54c4a5+0x1)];}},'END':/^$/},this['follows']={'LPAREN':[_0x536e21(0xd5),_0x536e21(0xa0),_0x536e21(0xc9),_0x536e21(0x86),_0x536e21(0xc8)],'RPAREN':[_0x536e21(0xbe),'LOGICAL','END','RPAREN'],'PROPERTY':['COMPARISON','BETWEEN',_0x536e21(0xba),'IS_NULL'],'BETWEEN':[_0x536e21(0x86)],'IS_NULL':[_0x536e21(0xe0)],'COMPARISON':[_0x536e21(0x86)],'COMMA':[_0x536e21(0xd5),_0x536e21(0x86),_0x536e21(0xc9)],'VALUE':['LOGICAL','COMMA',_0x536e21(0xcd),_0x536e21(0xe0)],'SPATIAL':[_0x536e21(0xc8)],'LOGICAL':[_0x536e21(0xbe),_0x536e21(0x86),_0x536e21(0xa0),'PROPERTY',_0x536e21(0xc8)],'NOT':[_0x536e21(0xc9),_0x536e21(0xc8)],'GEOMETRY':[_0x536e21(0xba),'RPAREN']},this[_0x536e21(0xc1)]={'=':a82_0x12d7bd[_0x536e21(0xac)],'<>':a82_0x12d7bd[_0x536e21(0x8b)],'<':a82_0x12d7bd[_0x536e21(0xd3)],'<=':a82_0x12d7bd[_0x536e21(0x7b)],'>':a82_0x12d7bd[_0x536e21(0x90)],'>=':a82_0x12d7bd['greaterThanOrEqualTo'],'LIKE':a82_0x12d7bd[_0x536e21(0xce)],'BETWEEN':a82_0x12d7bd[_0x536e21(0x87)],'IS\x20NULL':a82_0x12d7bd['isNull']},this[_0x536e21(0xb2)]={'PropertyIsEqualTo':'=','PropertyIsNotEqualTo':'<>','PropertyIsLessThan':'<','PropertyIsLessThanOrEqualTo':'<=','PropertyIsGreaterThan':'>','PropertyIsGreaterThanOrEqualTo':'>=','PropertyIsLike':_0x536e21(0xe5),'PropertyIsNull':'IS\x20NULL','PropertyIsBetween':_0x536e21(0xe1)},this['logicals']={'AND':a82_0x12d7bd[_0x536e21(0x9c)],'OR':a82_0x12d7bd['or']},this[_0x536e21(0xda)]={'RPAREN':0x3,'LOGICAL':0x2,'COMPARISON':0x1};}[a82_0x262fdb(0x91)](_0x929bc8,_0xb1a4bf){const _0xd7acd3=a82_0x262fdb;return _0xb1a4bf instanceof RegExp?_0xb1a4bf[_0xd7acd3(0xa3)](_0x929bc8):_0xb1a4bf(_0x929bc8);}['nextToken'](_0x550157,_0x367b62){const _0x19a058=a82_0x262fdb;let _0x6f7563,_0x3a67f3,_0x3f0c54=_0x367b62[_0x19a058(0xc6)];for(_0x6f7563=0x0;_0x6f7563<_0x3f0c54;_0x6f7563++){_0x3a67f3=_0x367b62[_0x6f7563];let _0x316ed3=this[_0x19a058(0xa4)][_0x3a67f3],_0x3012f7=this[_0x19a058(0x91)](_0x550157,_0x316ed3);if(_0x3012f7){let _0x35fb67=_0x3012f7[0x0],_0x4ce354=_0x550157[_0x19a058(0xe3)](_0x35fb67['length'])[_0x19a058(0x99)](/^\s*/,'');return{'type':_0x3a67f3,'text':_0x35fb67,'remainder':_0x4ce354};}}let _0x1dcc41=_0x19a058(0x7c)+_0x550157+_0x19a058(0x97);for(_0x6f7563=0x0;_0x6f7563<_0x3f0c54;_0x6f7563++){_0x3a67f3=_0x367b62[_0x6f7563],_0x1dcc41+=_0x19a058(0xe6)+_0x3a67f3+':\x20'+this['patterns'][_0x3a67f3];}throw new Error(_0x1dcc41);}['tokenize'](_0x41cff9){const _0x31b20f=a82_0x262fdb;_0x41cff9=_0x41cff9['replaceAll']('[','')['replaceAll'](']','');let _0x302bf0=this['tryToken'](_0x41cff9,this[_0x31b20f(0x9e)]);_0x302bf0&&(_0x41cff9=this[_0x31b20f(0x88)](_0x41cff9,_0x302bf0));let _0x31e886=[],_0x338296,_0x46bf4c=[_0x31b20f(0xbe),_0x31b20f(0xd5),_0x31b20f(0xa0),_0x31b20f(0xc9),'LPAREN'];do{_0x338296=this[_0x31b20f(0xd8)](_0x41cff9,_0x46bf4c),_0x41cff9=_0x338296[_0x31b20f(0x98)],_0x46bf4c=this['follows'][_0x338296['type']];if(_0x338296[_0x31b20f(0x80)]!==_0x31b20f(0xe0)&&!_0x46bf4c)throw new Error('No\x20follows\x20list\x20for\x20'+_0x338296[_0x31b20f(0x80)]);_0x31e886[_0x31b20f(0x9b)](_0x338296);}while(_0x338296[_0x31b20f(0x80)]!=='END');return _0x31e886;}[a82_0x262fdb(0x88)](_0x2f0ebf,_0x5a776d){const _0x4fae20=a82_0x262fdb;let _0x3ce0aa=this[_0x4fae20(0x91)](_0x2f0ebf,/\((.+?)\)/g);if(_0x3ce0aa){let _0x291e0f=_0x2f0ebf[_0x4fae20(0xe3)](0x0,_0x5a776d[_0x4fae20(0x92)]),_0x59dfbf=_0x3ce0aa[0x1],_0x338c4d=_0x59dfbf[_0x4fae20(0x81)]('\x20','')[_0x4fae20(0xca)](','),_0x560916='',_0x491c21='';if(_0x291e0f[_0x4fae20(0xa2)]('\x20')>-0x1){let _0xcf8657=_0x291e0f[_0x4fae20(0x7f)]('\x20');_0x491c21=_0x291e0f[_0x4fae20(0xe3)](0x0,_0xcf8657+0x1),_0x560916=_0x291e0f[_0x4fae20(0xe3)](_0xcf8657+0x1,_0x291e0f[_0x4fae20(0xc6)]);}else _0x560916=_0x291e0f;let _0x259c1e=_0x491c21;for(let _0x25d110=0x0;_0x25d110<_0x338c4d['length'];_0x25d110++){let _0x559b0e=_0x338c4d[_0x25d110];_0x259c1e+=_0x560916+'='+_0x559b0e,_0x25d110<_0x338c4d[_0x4fae20(0xc6)]-0x1&&(_0x259c1e+=_0x4fae20(0xb3));}return _0x259c1e;}return _0x2f0ebf;}[a82_0x262fdb(0xb9)](_0x18135b){const _0x2343a8=a82_0x262fdb;let _0x46c257=this,_0x4d020b=[],_0x4bbf66=[];while(_0x18135b['length']){let _0x52a396=_0x18135b['shift']();switch(_0x52a396[_0x2343a8(0x80)]){case'PROPERTY':case'GEOMETRY':case _0x2343a8(0x86):_0x4bbf66[_0x2343a8(0x9b)](_0x52a396);break;case _0x2343a8(0xbb):case _0x2343a8(0xe1):case _0x2343a8(0xa5):case _0x2343a8(0xd9):{let _0x4dab0a=this[_0x2343a8(0xda)][_0x52a396[_0x2343a8(0x80)]];while(_0x4d020b[_0x2343a8(0xc6)]>0x0&&this['precedence'][_0x4d020b[_0x4d020b[_0x2343a8(0xc6)]-0x1][_0x2343a8(0x80)]]<=_0x4dab0a){_0x4bbf66[_0x2343a8(0x9b)](_0x4d020b['pop']());}_0x4d020b[_0x2343a8(0x9b)](_0x52a396);break;}case'SPATIAL':case _0x2343a8(0xbe):case _0x2343a8(0xc8):_0x4d020b[_0x2343a8(0x9b)](_0x52a396);break;case'RPAREN':while(_0x4d020b['length']>0x0&&_0x4d020b[_0x4d020b[_0x2343a8(0xc6)]-0x1][_0x2343a8(0x80)]!==_0x2343a8(0xc8)){_0x4bbf66[_0x2343a8(0x9b)](_0x4d020b[_0x2343a8(0xc2)]());}_0x4d020b[_0x2343a8(0xc2)]();_0x4d020b['length']>0x0&&(_0x4d020b[_0x4d020b[_0x2343a8(0xc6)]-0x1][_0x2343a8(0x80)]===_0x2343a8(0xa0)||_0x4d020b[_0x4d020b[_0x2343a8(0xc6)]-0x1]['type']===_0x2343a8(0xbe))&&_0x4bbf66[_0x2343a8(0x9b)](_0x4d020b[_0x2343a8(0xc2)]());break;case _0x2343a8(0xba):case'END':break;default:throw new Error(_0x2343a8(0xa7)+_0x52a396[_0x2343a8(0x80)]);}}while(_0x4d020b[_0x2343a8(0xc6)]>0x0){_0x4bbf66[_0x2343a8(0x9b)](_0x4d020b[_0x2343a8(0xc2)]());}function _0x1d3b31(){const _0x277901=_0x2343a8;let _0x3b3fcb,_0xa6e6c5,_0x4e5ae6=_0x4bbf66[_0x277901(0xc2)]();switch(_0x4e5ae6[_0x277901(0x80)]){case _0x277901(0xd9):{let _0x2a7996=_0x1d3b31(),_0xa152d9=_0x1d3b31();return new _0x46c257['logicals'][(_0x4e5ae6[_0x277901(0x8c)][_0x277901(0xab)]())](_0xa152d9,_0x2a7996);}case'NOT':{let _0x28bd18=_0x1d3b31();return a82_0x12d7bd['not'](_0x28bd18);}case'BETWEEN':{let _0x3dc176,_0x45a9f2;return _0x4bbf66['pop'](),_0x45a9f2=_0x1d3b31(),_0x3dc176=_0x1d3b31(),_0xa6e6c5=_0x1d3b31(),a82_0x12d7bd[_0x277901(0x87)](_0xa6e6c5,_0x3dc176,_0x45a9f2);}case _0x277901(0xbb):{return _0x3b3fcb=_0x1d3b31(),_0xa6e6c5=_0x1d3b31(),new _0x46c257[(_0x277901(0xc1))][(_0x4e5ae6[_0x277901(0x8c)][_0x277901(0xab)]())](_0xa6e6c5,_0x3b3fcb);}case'IS_NULL':_0xa6e6c5=_0x1d3b31();return new _0x46c257['operators'][(_0x4e5ae6[_0x277901(0x8c)]['toUpperCase']())](_0xa6e6c5);case _0x277901(0x86):{let _0x38d45b=_0x4e5ae6['text'][_0x277901(0xd7)](/^'(.*)'$/);return _0x38d45b?_0x38d45b[0x1][_0x277901(0x99)](/''/g,'\x27'):Number(_0x4e5ae6['text']);}case _0x277901(0xa0):switch(_0x4e5ae6[_0x277901(0x8c)][_0x277901(0xab)]()){case _0x277901(0xdf):{let _0x32c843=_0x1d3b31(),_0x99be47=_0x1d3b31(),_0x4ce986=_0x1d3b31(),_0xac58db=_0x1d3b31(),_0xdd437d=_0x1d3b31();return a82_0x12d7bd[_0x277901(0xe7)](_0xdd437d,[_0xac58db,_0x4ce986,_0x99be47,_0x32c843]);}case _0x277901(0xc7):_0x3b3fcb=_0x1d3b31(),_0xa6e6c5=_0x1d3b31();return a82_0x12d7bd[_0x277901(0x84)](_0xa6e6c5,_0x3b3fcb);case _0x277901(0xbf):_0x3b3fcb=_0x1d3b31(),_0xa6e6c5=_0x1d3b31();return a82_0x12d7bd[_0x277901(0xae)](_0xa6e6c5,_0x3b3fcb);case'CONTAINS':_0x3b3fcb=_0x1d3b31(),_0xa6e6c5=_0x1d3b31();return a82_0x12d7bd[_0x277901(0x8d)](_0xa6e6c5,_0x3b3fcb);}break;case _0x277901(0xd5):return new WKT()[_0x277901(0x93)](_0x4e5ae6['text'],{});default:return _0x4e5ae6[_0x277901(0x8c)];}}let _0x41655d=_0x1d3b31();if(_0x4bbf66[_0x2343a8(0xc6)]>0x0){let _0x3e71d5=_0x2343a8(0x7e);for(let _0x17fb82=_0x4bbf66[_0x2343a8(0xc6)]-0x1;_0x17fb82>=0x0;_0x17fb82--){_0x3e71d5+=_0x4bbf66[_0x17fb82][_0x2343a8(0x80)]+':\x20'+_0x4bbf66[_0x17fb82][_0x2343a8(0x8c)]+'\x0a';}throw new Error(_0x3e71d5);}return _0x41655d;}[a82_0x262fdb(0xe2)](_0x46d2a2){const _0x4c3e75=a82_0x262fdb;try{return this[_0x4c3e75(0xb9)](this['tokenize'](_0x46d2a2));}catch(_0x47f88d){console[_0x4c3e75(0xad)](_0x4c3e75(0xd4)+_0x46d2a2),console[_0x4c3e75(0xad)](_0x47f88d);}}[a82_0x262fdb(0x8a)](_0x61dc4c){const _0x4f159c=a82_0x262fdb;switch(_0x61dc4c[_0x4f159c(0xcb)]){case _0x4f159c(0xdf):return _0x4f159c(0xb6)+_0x61dc4c['geometryName']+','+_0x61dc4c['extent'][_0x4f159c(0x89)](',')+','+_0x61dc4c[_0x4f159c(0xa9)]+')';case _0x4f159c(0xc3):return _0x4f159c(0xdb)+_0x61dc4c[_0x4f159c(0xc0)]+',\x20'+this[_0x4f159c(0x93)](_0x61dc4c[_0x4f159c(0x95)])+')';case _0x4f159c(0xa8):return _0x4f159c(0xc4)+_0x61dc4c[_0x4f159c(0xc0)]+',\x20'+this[_0x4f159c(0x93)](_0x61dc4c[_0x4f159c(0x95)])+')';case _0x4f159c(0xaf):return _0x4f159c(0x94)+_0x61dc4c[_0x4f159c(0xc0)]+',\x20'+this[_0x4f159c(0x93)](_0x61dc4c[_0x4f159c(0x95)])+')';case'Not':return _0x4f159c(0x9d)+this[_0x4f159c(0x8a)](_0x61dc4c['condition'])+')';case _0x4f159c(0xd2):case'Or':{let _0x5ad05f='(',_0x4aea11=!![];for(let _0x5f4abd=0x0;_0x5f4abd<_0x61dc4c[_0x4f159c(0xa1)][_0x4f159c(0xc6)];_0x5f4abd++){_0x4aea11?_0x4aea11=![]:_0x5ad05f+=')\x20'+_0x61dc4c[_0x4f159c(0xcb)][_0x4f159c(0xde)]()+'\x20(',_0x5ad05f+=this[_0x4f159c(0x8a)](_0x61dc4c[_0x4f159c(0xa1)][_0x5f4abd]);}return _0x5ad05f+')';}case'PropertyIsBetween':return _0x61dc4c['property']+_0x4f159c(0x85)+this[_0x4f159c(0x8a)](_0x61dc4c['lowerBoundary'])+'\x20AND\x20'+this[_0x4f159c(0x8a)](_0x61dc4c[_0x4f159c(0xaa)]);case _0x4f159c(0x96):case _0x4f159c(0x7d):case _0x4f159c(0x9a):case'PropertyIsLessThanOrEqualTo':case _0x4f159c(0xd0):case'PropertyIsGreaterThanOrEqualTo':case _0x4f159c(0xa6):case _0x4f159c(0x8e):{return _0x61dc4c[_0x4f159c(0xdc)]!==null?_0x61dc4c[_0x4f159c(0xd1)]+'\x20'+this['operatorReverse'][_0x61dc4c[_0x4f159c(0xcb)]]+'\x20'+this[_0x4f159c(0x8a)](_0x61dc4c[_0x4f159c(0xdc)]):_0x61dc4c[_0x4f159c(0xd1)]+'\x20'+this['operatorReverse'][_0x61dc4c[_0x4f159c(0xcb)]];}case undefined:if(typeof _0x61dc4c===_0x4f159c(0xb8))return'\x27'+_0x61dc4c[_0x4f159c(0x99)](/'/g,'\x27\x27')+'\x27';else{if(typeof _0x61dc4c===_0x4f159c(0xb4))return String(_0x61dc4c);}break;default:throw new Error(_0x4f159c(0xb7)+_0x61dc4c['CLASS_NAME']+'\x20'+_0x61dc4c);}}[a82_0x262fdb(0x93)](_0x20b5a7){const _0x36ea9f=a82_0x262fdb;if(_0x20b5a7 instanceof a82_0x840459)return new WKT()[_0x36ea9f(0xcc)](_0x20b5a7);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a83_0x4332(){const _0x1d3401=['710JZNjUf','push','tagName_','272658rggpmY','4446hGRedP','1737830hgFqhe','idMap','Not','And','PropertyIsLessThanOrEqualTo','280iDIFSV','template','1227SVYKSj','join','indexOf','PropertyIsNull','PropertyIsEqualTo','153579XVnfjx','PropertyIsGreaterThan','521892YAMibV','PropertyIsGreaterThanOrEqualTo','PropertyIsNotEqualTo','PropertyIsLike','property','length','PropertyIsLessThan','1147510vwoMYc','conditions','propertyName','12fwEuqc','idMapLength','lowerBoundary','expression','PropertyIsBetween','condition','upperBoundary'];a83_0x4332=function(){return _0x1d3401;};return a83_0x4332();}(function(_0x57083f,_0x2c48ba){const _0x13e269=a83_0x2df8,_0x149bfd=_0x57083f();while(!![]){try{const _0x18a216=-parseInt(_0x13e269(0xa9))/0x1*(-parseInt(_0x13e269(0x9d))/0x2)+parseInt(_0x13e269(0xae))/0x3*(parseInt(_0x13e269(0x96))/0x4)+-parseInt(_0x13e269(0xa2))/0x5+-parseInt(_0x13e269(0xa0))/0x6+-parseInt(_0x13e269(0xb0))/0x7+-parseInt(_0x13e269(0xa7))/0x8*(parseInt(_0x13e269(0xa1))/0x9)+parseInt(_0x13e269(0xb7))/0xa;if(_0x18a216===_0x2c48ba)break;else _0x149bfd['push'](_0x149bfd['shift']());}catch(_0x278731){_0x149bfd['push'](_0x149bfd['shift']());}}}(a83_0x4332,0x357b4));import a83_0x18ceda from'./CQL';export function isMatchCql(_0x396d0d,_0x4d59fe){let _0x5e4ce1=new a83_0x18ceda()['read'](_0x4d59fe);return isMatchFilter(_0x396d0d,_0x5e4ce1);}export function isMatchFilter(_0x4bbfe0,_0x861492){const _0x38fd07=a83_0x2df8;switch(_0x861492[_0x38fd07(0x9f)]){case _0x38fd07(0xa4):return!isMatchFilter(_0x4bbfe0,_0x861492['condition']);case _0x38fd07(0xa5):{let _0x4eeaf0=!![];for(let _0xa60b4f=0x0;_0xa60b4f<_0x861492[_0x38fd07(0xb8)][_0x38fd07(0xb5)];_0xa60b4f++){_0x4eeaf0=_0x4eeaf0&&isMatchFilter(_0x4bbfe0,_0x861492[_0x38fd07(0xb8)][_0xa60b4f]);}return _0x4eeaf0;}case'Or':{let _0x33b782=![];for(let _0x28058b=0x0;_0x28058b<_0x861492[_0x38fd07(0xb8)][_0x38fd07(0xb5)];_0x28058b++){_0x33b782=_0x33b782||isMatchFilter(_0x4bbfe0,_0x861492[_0x38fd07(0xb8)][_0x28058b]);}return _0x33b782;}case'PropertyIsBetween':return _0x4bbfe0[_0x861492[_0x38fd07(0xb4)]]>_0x861492[_0x38fd07(0x98)]&&_0x4bbfe0[_0x861492[_0x38fd07(0xb4)]]<_0x861492[_0x38fd07(0x9c)];case _0x38fd07(0xad):return _0x4bbfe0[_0x861492[_0x38fd07(0x95)]]===_0x861492[_0x38fd07(0x99)];case _0x38fd07(0xb2):return _0x4bbfe0[_0x861492[_0x38fd07(0x95)]]!==_0x861492[_0x38fd07(0x99)];case _0x38fd07(0xb6):return _0x4bbfe0[_0x861492['propertyName']]<_0x861492[_0x38fd07(0x99)];case'PropertyIsLessThanOrEqualTo':return _0x4bbfe0[_0x861492[_0x38fd07(0x95)]]<=_0x861492[_0x38fd07(0x99)];case'PropertyIsGreaterThan':return _0x4bbfe0[_0x861492['propertyName']]>_0x861492[_0x38fd07(0x99)];case'PropertyIsGreaterThanOrEqualTo':return _0x4bbfe0[_0x861492['propertyName']]>=_0x861492['expression'];case'PropertyIsLike':return _0x4bbfe0[_0x861492[_0x38fd07(0x95)]][_0x38fd07(0xab)](_0x861492['expression'])>-0x1;case'PropertyIsNull':{return!_0x4bbfe0[_0x861492['propertyName']];}default:return![];}}function a83_0x2df8(_0x30bd76,_0x5b9341){const _0x4332d0=a83_0x4332();return a83_0x2df8=function(_0x2df863,_0x5cc36e){_0x2df863=_0x2df863-0x95;let _0xbb9f22=_0x4332d0[_0x2df863];return _0xbb9f22;},a83_0x2df8(_0x30bd76,_0x5b9341);}export function isEqualFilter(_0x155812,_0x21d96d){const _0x1509e9=a83_0x2df8;switch(_0x155812[_0x1509e9(0x9f)]){case _0x1509e9(0xa4):return _0x155812[_0x1509e9(0x9f)]===_0x21d96d['tagName_']&&isEqualFilter(_0x155812[_0x1509e9(0x9b)],_0x21d96d[_0x1509e9(0x9b)]);case'Or':case'And':{let _0x23b34a=_0x155812[_0x1509e9(0x9f)]===_0x21d96d['tagName_']&&_0x155812[_0x1509e9(0xb8)]['length']===_0x21d96d['conditions']['length'];for(let _0x550080=0x0;_0x550080<_0x155812[_0x1509e9(0xb8)][_0x1509e9(0xb5)];_0x550080++){_0x23b34a=_0x23b34a&&isEqualFilter(_0x155812['conditions'][_0x550080],_0x21d96d[_0x1509e9(0xb8)][_0x550080]);}return _0x23b34a;}case _0x1509e9(0x9a):return _0x155812['tagName_']===_0x21d96d[_0x1509e9(0x9f)]&&_0x155812[_0x1509e9(0xb4)]===_0x21d96d[_0x1509e9(0xb4)];case _0x1509e9(0xad):case _0x1509e9(0xb2):case'PropertyIsLessThan':case _0x1509e9(0xa6):case _0x1509e9(0xaf):case _0x1509e9(0xb1):case _0x1509e9(0xb3):case _0x1509e9(0xac):return _0x155812[_0x1509e9(0x9f)]===_0x21d96d[_0x1509e9(0x9f)]&&_0x155812['propertyName']===_0x21d96d[_0x1509e9(0x95)];default:return![];}}export function indexOfFilter(_0x459269,_0x1f3b88){const _0x368a84=a83_0x2df8;let _0x30e85f=-0x1;if((_0x459269===null||_0x459269===void 0x0?void 0x0:_0x459269[_0x368a84(0xb5)])>0x0)for(let _0x25b3cd in _0x459269){if(isEqualFilter(_0x459269[_0x25b3cd][_0x368a84(0xa8)],_0x1f3b88))return _0x25b3cd;}return _0x30e85f;}export function getIndexByTemplate(_0x40ae05,_0x49effc){const _0x505c75=a83_0x2df8;let _0x19d836=_0x49effc[_0x505c75(0xa8)];if(_0x49effc[_0x505c75(0x97)]>0x0){let _0x4cbca3=getKeyByTemplate(_0x40ae05,_0x19d836);if(_0x4cbca3 instanceof Array)for(let _0xc61616 in _0x4cbca3){let _0x5bfab3=_0x49effc[_0x505c75(0xa3)][_0x4cbca3[_0xc61616]+'_'+_0xc61616];if(_0x5bfab3)return _0x5bfab3;}else return _0x49effc[_0x505c75(0xa3)][_0x4cbca3];}return null;}export function getKeyByTemplate(_0x35d78b,_0x38898e){const _0x156f76=a83_0x2df8;switch(_0x38898e['tagName_']){case _0x156f76(0xad):{return _0x35d78b[_0x38898e[_0x156f76(0x95)]];}case _0x156f76(0xa5):{let _0x52bc3c=[];for(let _0x3c10f5=0x0;_0x3c10f5<_0x38898e[_0x156f76(0xb8)][_0x156f76(0xb5)];_0x3c10f5++){let _0x8cef4f=getKeyByTemplate(_0x35d78b,_0x38898e['conditions'][_0x3c10f5]);_0x8cef4f&&_0x52bc3c['push'](_0x8cef4f);}return _0x52bc3c[_0x156f76(0xaa)](',');}case'Or':{let _0x5b8959=[];for(let _0x4d9536=0x0;_0x4d9536<_0x38898e[_0x156f76(0xb8)][_0x156f76(0xb5)];_0x4d9536++){let _0x394fbf=getKeyByTemplate(_0x35d78b,_0x38898e['conditions'][_0x4d9536]);_0x394fbf&&_0x5b8959[_0x156f76(0x9e)](_0x394fbf);}return _0x5b8959;}default:return null;}}export function createKeyFromFilter(_0x2cd984){const _0x25146c=a83_0x2df8;switch(_0x2cd984[_0x25146c(0x9f)]){case _0x25146c(0xad):return _0x2cd984[_0x25146c(0x99)];case'And':{let _0x17774e=[];for(let _0x21cda3=0x0;_0x21cda3<_0x2cd984[_0x25146c(0xb8)][_0x25146c(0xb5)];_0x21cda3++){let _0x13c5af=createKeyFromFilter(_0x2cd984[_0x25146c(0xb8)][_0x21cda3]);if(_0x13c5af)_0x17774e[_0x25146c(0x9e)](_0x13c5af);else return null;}return _0x17774e[_0x25146c(0xaa)](',');}case'Or':{let _0x443f45=[];for(let _0xe93d8=0x0;_0xe93d8<_0x2cd984['conditions'][_0x25146c(0xb5)];_0xe93d8++){let _0x3cc979=createKeyFromFilter(_0x2cd984[_0x25146c(0xb8)][_0xe93d8]);_0x3cc979&&_0x443f45[_0x25146c(0x9e)](_0x3cc979);}return _0x443f45;}default:return null;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a86_0x3aa7(_0x10726a,_0x4fdba7){const _0x55fdbf=a86_0x55fd();return a86_0x3aa7=function(_0x3aa7ab,_0x3a3a31){_0x3aa7ab=_0x3aa7ab-0x137;let _0x3355df=_0x55fdbf[_0x3aa7ab];return _0x3355df;},a86_0x3aa7(_0x10726a,_0x4fdba7);}const a86_0x343a8b=a86_0x3aa7;(function(_0x2ce013,_0xac1b61){const _0x40d2d9=a86_0x3aa7,_0x581591=_0x2ce013();while(!![]){try{const _0x79b1b0=parseInt(_0x40d2d9(0x14b))/0x1+parseInt(_0x40d2d9(0x141))/0x2*(-parseInt(_0x40d2d9(0x13f))/0x3)+-parseInt(_0x40d2d9(0x142))/0x4+-parseInt(_0x40d2d9(0x146))/0x5*(-parseInt(_0x40d2d9(0x13b))/0x6)+parseInt(_0x40d2d9(0x13d))/0x7*(-parseInt(_0x40d2d9(0x138))/0x8)+-parseInt(_0x40d2d9(0x144))/0x9*(parseInt(_0x40d2d9(0x13c))/0xa)+-parseInt(_0x40d2d9(0x13e))/0xb*(-parseInt(_0x40d2d9(0x139))/0xc);if(_0x79b1b0===_0xac1b61)break;else _0x581591['push'](_0x581591['shift']());}catch(_0x1cf613){_0x581591['push'](_0x581591['shift']());}}}(a86_0x55fd,0x7e365));import{asString}from'ol/color';class ImageCache{constructor(){const _0x4c0783=a86_0x3aa7;this[_0x4c0783(0x147)]={},this['cacheSize_']=0x0;}[a86_0x343a8b(0x149)](){const _0x1ea1bd=a86_0x343a8b;this[_0x1ea1bd(0x147)]={},this[_0x1ea1bd(0x14c)]=0x0;}[a86_0x343a8b(0x140)](_0x8e223a){const _0x314b02=a86_0x343a8b,_0x35e35a=getKey(_0x8e223a['markerLabel'],_0x8e223a[_0x314b02(0x137)],_0x8e223a[_0x314b02(0x148)],_0x8e223a[_0x314b02(0x145)]);return _0x35e35a in this[_0x314b02(0x147)]?this['cache_'][_0x35e35a]:null;}[a86_0x343a8b(0x143)](_0x12de8e,_0x56c96e){const _0x4a31bf=a86_0x343a8b,_0x39bc4d=getKey(_0x12de8e[_0x4a31bf(0x13a)],_0x12de8e[_0x4a31bf(0x137)],_0x12de8e[_0x4a31bf(0x148)],_0x12de8e['image']);this[_0x4a31bf(0x147)][_0x39bc4d]=_0x56c96e,++this[_0x4a31bf(0x14c)];}}function a86_0x55fd(){const _0x1558f6=['68490mIQVVp','9725970zntEJf','22841xvDurD','2359676yOkIBb','18675NNWHHB','get','166jtDUhs','3209512woQITC','set','9jXtMYC','image','10PtePyg','cache_','markerColor','clear','null','146438obMPMU','cacheSize_','markerSize','1944mkdjXT','192zFaKHe','markerLabel'];a86_0x55fd=function(){return _0x1558f6;};return a86_0x55fd();}function getKey(_0x58d71d,_0xb1e7cb,_0x4fe196,_0x2b8027){const _0x293ee8=a86_0x343a8b,_0x529bc5=_0x4fe196?asString(_0x4fe196):_0x293ee8(0x14a);return _0x58d71d+':'+_0x2b8027+':'+_0x529bc5+':'+_0xb1e7cb;}export default ImageCache;export const shared=new ImageCache();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x3cc1fa=a87_0x2321;(function(_0x45de25,_0x15fe5f){const _0x58e219=a87_0x2321,_0xcae7be=_0x45de25();while(!![]){try{const _0x2a4fb2=parseInt(_0x58e219(0x1f2))/0x1*(parseInt(_0x58e219(0x1ea))/0x2)+parseInt(_0x58e219(0x1dc))/0x3+parseInt(_0x58e219(0x1d7))/0x4+-parseInt(_0x58e219(0x1fb))/0x5+-parseInt(_0x58e219(0x1d2))/0x6+-parseInt(_0x58e219(0x1da))/0x7+-parseInt(_0x58e219(0x1eb))/0x8*(-parseInt(_0x58e219(0x1d6))/0x9);if(_0x2a4fb2===_0x15fe5f)break;else _0xcae7be['push'](_0xcae7be['shift']());}catch(_0x42485e){_0xcae7be['push'](_0xcae7be['shift']());}}}(a87_0x5280,0xf3d92));import a87_0x1c13f1 from'color';function a87_0x2321(_0x40e569,_0x548b4d){const _0x52804a=a87_0x5280();return a87_0x2321=function(_0x2321ae,_0x12ecef){_0x2321ae=_0x2321ae-0x1cb;let _0x448802=_0x52804a[_0x2321ae];return _0x448802;},a87_0x2321(_0x40e569,_0x548b4d);}import a87_0x517092 from'./writeTextToCanvas';import{Icon}from'ol/style';import a87_0x459109 from'ol/ImageState';function a87_0x5280(){const _0x487d74=['fromMakiIconId','listenImageChange','bold\x20','fill','toDataURL','getImage','4222830IhCUph','beginPath','stroke','bezierCurveTo','5807304gQzLFq','3079024ZbDaDM','createElement','globalCompositeOperation','7091770gbKVcc','ERROR','1496664XsRlCL','width','getImageState','lineTo','fillRect','fillStyle','save','closePath','getContext','destination-over','drawImage','LOADED','#000000','height','6yWVUjz','24DAUVPa','_cache','size\x20is\x20required','round','stringify','lighten','load','43103ANgvlH','url\x20is\x20required','canvas','hexa','color\x20is\x20required','lineWidth','IDLE','px\x20sans-serif','strokeStyle','3090020EidbsI','fromColor'];a87_0x5280=function(){return _0x487d74;};return a87_0x5280();}import{parseImage}from'../../UrlUtil.js';class PinBuilder{constructor(){const _0x121d23=a87_0x2321;this[_0x121d23(0x1ec)]={};}[a87_0x3cc1fa(0x1cb)](_0x353d2a,_0x11d6dd){const _0x474065=a87_0x3cc1fa;if(!_0x353d2a)throw new Error(_0x474065(0x1f6));if(!_0x11d6dd)throw new Error(_0x474065(0x1ed));return createPin('','',_0x353d2a,_0x11d6dd,this[_0x474065(0x1ec)]);}['fromUrl'](_0x4bcdd4,_0x1e37c0,_0x3486b5){const _0xeaa9f5=a87_0x3cc1fa;if(!_0x4bcdd4)throw new Error(_0xeaa9f5(0x1f3));if(!_0x1e37c0)throw new Error('color\x20is\x20required');if(!_0x3486b5)throw new Error('size\x20is\x20required');return createPin(_0x4bcdd4,'',_0x1e37c0,_0x3486b5,this[_0xeaa9f5(0x1ec)]);}[a87_0x3cc1fa(0x1cc)](_0x4b1e3a,_0x2823c1,_0x2245b0){const _0x25499e=a87_0x3cc1fa;if(!_0x4b1e3a)throw new Error('id\x20is\x20required');if(!_0x2823c1)throw new Error(_0x25499e(0x1f6));if(!_0x2245b0)throw new Error(_0x25499e(0x1ed));return createPin(parseImage(_0x4b1e3a),'',_0x2823c1,_0x2245b0,this[_0x25499e(0x1ec)]);}['fromText'](_0x1405b9,_0x4a7512,_0x14b89a){const _0x14d47b=a87_0x3cc1fa;if(!_0x1405b9)throw new Error('text\x20is\x20required');if(!_0x4a7512)throw new Error(_0x14d47b(0x1f6));if(!_0x14b89a)throw new Error(_0x14d47b(0x1ed));return createPin('',_0x1405b9,_0x4a7512,_0x14b89a,this[_0x14d47b(0x1ec)]);}}function drawPin(_0x46a4c5,_0x59005b,_0x23252c){const _0x111b3c=a87_0x3cc1fa;_0x46a4c5[_0x111b3c(0x1e2)](),_0x46a4c5['scale'](_0x23252c/0x18,_0x23252c/0x18),_0x46a4c5[_0x111b3c(0x1e1)]=_0x59005b,_0x46a4c5[_0x111b3c(0x1fa)]=a87_0x1c13f1(_0x59005b)[_0x111b3c(0x1f0)](0.6)[_0x111b3c(0x1f5)](),_0x46a4c5[_0x111b3c(0x1f7)]=0.846,_0x46a4c5[_0x111b3c(0x1d3)](),_0x46a4c5['moveTo'](6.72,0.422),_0x46a4c5[_0x111b3c(0x1df)](17.28,0.422),_0x46a4c5[_0x111b3c(0x1d5)](18.553,0.422,19.577,1.758,19.577,3.415),_0x46a4c5[_0x111b3c(0x1df)](19.577,10.973),_0x46a4c5[_0x111b3c(0x1d5)](19.577,12.63,18.553,13.966,17.282,13.966),_0x46a4c5[_0x111b3c(0x1df)](14.386,14.008),_0x46a4c5[_0x111b3c(0x1df)](11.826,23.578),_0x46a4c5[_0x111b3c(0x1df)](9.614,14.008),_0x46a4c5['lineTo'](6.719,13.965),_0x46a4c5[_0x111b3c(0x1d5)](5.446,13.983,4.422,12.629,4.422,10.972),_0x46a4c5[_0x111b3c(0x1df)](4.422,3.416),_0x46a4c5[_0x111b3c(0x1d5)](4.423,1.76,5.447,0.423,6.718,0.423),_0x46a4c5[_0x111b3c(0x1e3)](),_0x46a4c5[_0x111b3c(0x1cf)](),_0x46a4c5[_0x111b3c(0x1d4)](),_0x46a4c5['restore']();}function drawIcon(_0x13f105,_0x326196,_0x2a2dbb){const _0x14bb14=a87_0x3cc1fa,_0x52e447=_0x2a2dbb/2.5;let _0x5857bc=_0x52e447,_0x486498=_0x52e447;if(_0x326196[_0x14bb14(0x1dd)]>_0x326196['height'])_0x486498=_0x52e447*(_0x326196[_0x14bb14(0x1e9)]/_0x326196[_0x14bb14(0x1dd)]);else _0x326196['width']<_0x326196[_0x14bb14(0x1e9)]&&(_0x5857bc=_0x52e447*(_0x326196[_0x14bb14(0x1dd)]/_0x326196[_0x14bb14(0x1e9)]));const _0x3b276a=Math['round']((_0x2a2dbb-_0x5857bc)/0x2),_0x302411=Math[_0x14bb14(0x1ee)](0x7/0x18*_0x2a2dbb-_0x486498/0x2);_0x13f105[_0x14bb14(0x1d9)]='destination-out',_0x13f105[_0x14bb14(0x1e6)](_0x326196,_0x3b276a-0x1,_0x302411,_0x5857bc,_0x486498),_0x13f105[_0x14bb14(0x1e6)](_0x326196,_0x3b276a,_0x302411-0x1,_0x5857bc,_0x486498),_0x13f105[_0x14bb14(0x1e6)](_0x326196,_0x3b276a+0x1,_0x302411,_0x5857bc,_0x486498),_0x13f105['drawImage'](_0x326196,_0x3b276a,_0x302411+0x1,_0x5857bc,_0x486498),_0x13f105[_0x14bb14(0x1d9)]='destination-over',_0x13f105[_0x14bb14(0x1e1)]=_0x14bb14(0x1e8),_0x13f105[_0x14bb14(0x1e0)](_0x3b276a-0x1,_0x302411-0x1,_0x5857bc+0x2,_0x486498+0x2),_0x13f105['globalCompositeOperation']='destination-out',_0x13f105[_0x14bb14(0x1e6)](_0x326196,_0x3b276a,_0x302411,_0x5857bc,_0x486498),_0x13f105['globalCompositeOperation']=_0x14bb14(0x1e5),_0x13f105[_0x14bb14(0x1e1)]='#FFFFFF',_0x13f105['fillRect'](_0x3b276a-0x1,_0x302411-0x2,_0x5857bc+0x2,_0x486498+0x2);}const stringifyScratch=new Array(0x4);function createPin(_0x2707f8,_0x13969d,_0x13059b,_0x1e6a1e,_0x5533b9){const _0x93a973=a87_0x3cc1fa;stringifyScratch[0x0]=_0x2707f8,stringifyScratch[0x1]=_0x13969d,stringifyScratch[0x2]=_0x13059b,stringifyScratch[0x3]=_0x1e6a1e;const _0x3d698c=JSON[_0x93a973(0x1ef)](stringifyScratch),_0x285d08=_0x5533b9[_0x3d698c];if(_0x285d08)return _0x285d08;const _0x21c172=document[_0x93a973(0x1d8)](_0x93a973(0x1f4));_0x21c172['width']=_0x1e6a1e,_0x21c172['height']=_0x1e6a1e;const _0x5758f5=_0x21c172[_0x93a973(0x1e4)]('2d');drawPin(_0x5758f5,_0x13059b,_0x1e6a1e);if(_0x2707f8)return new Promise(_0x16c040=>{const _0x2e2bdf=_0x93a973;let _0x28f336=new Icon({'src':_0x2707f8}),_0x1cc304=_0x28f336[_0x2e2bdf(0x1de)]();_0x1cc304===a87_0x459109[_0x2e2bdf(0x1e7)]||_0x1cc304===a87_0x459109[_0x2e2bdf(0x1db)]?(drawIcon(_0x5758f5,_0x28f336['getImage'](0x60),_0x1e6a1e),_0x5533b9[_0x3d698c]=_0x21c172[_0x2e2bdf(0x1d0)](),_0x16c040(_0x21c172[_0x2e2bdf(0x1d0)]())):(_0x1cc304===a87_0x459109[_0x2e2bdf(0x1f8)]&&_0x28f336[_0x2e2bdf(0x1f1)](),_0x28f336[_0x2e2bdf(0x1cd)](_0xb750cc=>{const _0x575db4=_0x2e2bdf;_0x1cc304=_0xb750cc['target']['getImageState'](),(_0x1cc304===a87_0x459109[_0x575db4(0x1e7)]||_0x1cc304===a87_0x459109[_0x575db4(0x1db)])&&(drawIcon(_0x5758f5,_0x28f336[_0x575db4(0x1d1)](0x60),_0x1e6a1e),_0x5533b9[_0x3d698c]=_0x21c172[_0x575db4(0x1d0)](),_0x16c040(_0x21c172['toDataURL']()));}));});else{if(_0x13969d){const _0x541c98=a87_0x517092(_0x13969d,{'font':_0x93a973(0x1ce)+_0x1e6a1e+_0x93a973(0x1f9)});drawIcon(_0x5758f5,_0x541c98,_0x1e6a1e);}}return _0x5533b9[_0x3d698c]=_0x21c172[_0x93a973(0x1d0)](),_0x21c172[_0x93a973(0x1d0)]();}export default PinBuilder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x4f8eba=a88_0x50ea;(function(_0x25a4a9,_0x4e3908){const _0x104673=a88_0x50ea,_0x3de9a8=_0x25a4a9();while(!![]){try{const _0x21ab51=-parseInt(_0x104673(0x13c))/0x1*(-parseInt(_0x104673(0x139))/0x2)+-parseInt(_0x104673(0x128))/0x3+parseInt(_0x104673(0x137))/0x4+parseInt(_0x104673(0x11f))/0x5*(parseInt(_0x104673(0x125))/0x6)+parseInt(_0x104673(0x133))/0x7+parseInt(_0x104673(0x126))/0x8+-parseInt(_0x104673(0x138))/0x9;if(_0x21ab51===_0x4e3908)break;else _0x3de9a8['push'](_0x3de9a8['shift']());}catch(_0x449b3c){_0x3de9a8['push'](_0x3de9a8['shift']());}}}(a88_0x201d,0x62cd2));import a88_0x2a2810 from'./PinBuilder';import{Icon}from'ol/style';import a88_0x40a507 from'ol/ImageState';function a88_0x201d(){const _0x3bf55d=['options','2054736YrXozy','error','load','markerSize','fromText','target','loadIcon','listenImageChange','resolve','markerLabel','get','344162IhEIBp','then','getImage','ERROR','1098776dKRNIt','2226177KPizWB','17656AWeFPn','catch','LOADED','2CUdqVl','getImageState','_imageState','1290IpFgBM','IDLE','_icon','image','dispatchEvent','_listener','12162YYkjcs','3779784vxwcGR'];a88_0x201d=function(){return _0x3bf55d;};return a88_0x201d();}import a88_0x3c65a7 from'ol/events/Event';function a88_0x50ea(_0x398db1,_0x36966b){const _0x201d7a=a88_0x201d();return a88_0x50ea=function(_0x50eac2,_0x364813){_0x50eac2=_0x50eac2-0x11d;let _0xf49142=_0x201d7a[_0x50eac2];return _0xf49142;},a88_0x50ea(_0x398db1,_0x36966b);}import{shared as a88_0x613f81}from'./ImageCache';export default class PinIcon{constructor(_0x38a6e8){const _0x3e3a57=a88_0x50ea;this[_0x3e3a57(0x127)]=_0x38a6e8||{},this['_imageState']=a88_0x40a507[_0x3e3a57(0x120)],this[_0x3e3a57(0x121)]=a88_0x613f81[_0x3e3a57(0x132)](this[_0x3e3a57(0x127)]),this[_0x3e3a57(0x121)]&&(this['_imageState']=a88_0x40a507['LOADED']);}[a88_0x4f8eba(0x12a)](){const _0x1fce3e=a88_0x4f8eba;try{let _0x328b01,_0x40ecd6=new a88_0x2a2810();if(this[_0x1fce3e(0x127)][_0x1fce3e(0x131)])_0x328b01=_0x40ecd6[_0x1fce3e(0x12c)](this[_0x1fce3e(0x127)]['markerLabel'],this[_0x1fce3e(0x127)]['markerColor'],this[_0x1fce3e(0x127)][_0x1fce3e(0x12b)]||0x30);else this[_0x1fce3e(0x127)][_0x1fce3e(0x122)]&&(_0x328b01=_0x40ecd6['fromUrl'](this[_0x1fce3e(0x127)]['image'],this['options']['markerColor'],this['options'][_0x1fce3e(0x12b)]||0x30));Promise[_0x1fce3e(0x130)](_0x328b01)[_0x1fce3e(0x134)](_0x1d13e1=>{const _0x4f57c8=_0x1fce3e;this[_0x4f57c8(0x12e)](_0x1d13e1);})[_0x1fce3e(0x13a)](_0x499b78=>{const _0x119921=_0x1fce3e;console['warn'](_0x499b78),this[_0x119921(0x11e)]=a88_0x40a507[_0x119921(0x136)],this[_0x119921(0x123)](_0x119921(0x129));});}catch(_0x7b214f){console['warn'](_0x7b214f),this[_0x1fce3e(0x11e)]=a88_0x40a507[_0x1fce3e(0x136)],this[_0x1fce3e(0x123)](_0x1fce3e(0x129));}}['loadIcon'](_0x9eaa8d){const _0x123c9b=a88_0x4f8eba;this[_0x123c9b(0x121)]=new Icon({'src':_0x9eaa8d}),a88_0x613f81['set'](this[_0x123c9b(0x127)],this[_0x123c9b(0x121)]);let _0x4c6577=this[_0x123c9b(0x121)][_0x123c9b(0x11d)]();_0x4c6577===a88_0x40a507[_0x123c9b(0x13b)]||_0x4c6577===a88_0x40a507[_0x123c9b(0x136)]?(this[_0x123c9b(0x11e)]=this[_0x123c9b(0x121)][_0x123c9b(0x11d)](),this[_0x123c9b(0x123)](_0x123c9b(0x12a))):(_0x4c6577===a88_0x40a507[_0x123c9b(0x120)]&&this['_icon'][_0x123c9b(0x12a)](),this[_0x123c9b(0x121)][_0x123c9b(0x12f)](_0x2dc375=>{const _0x56128b=_0x123c9b;_0x4c6577=_0x2dc375[_0x56128b(0x12d)]['getImageState'](),(_0x4c6577===a88_0x40a507[_0x56128b(0x13b)]||_0x4c6577===a88_0x40a507[_0x56128b(0x136)])&&(this[_0x56128b(0x11e)]=this['_icon'][_0x56128b(0x11d)](),this['dispatchEvent'](_0x56128b(0x12a)));}));}[a88_0x4f8eba(0x11d)](){const _0x9e1e01=a88_0x4f8eba;return this[_0x9e1e01(0x11e)];}[a88_0x4f8eba(0x135)](){const _0x46bb34=a88_0x4f8eba;var _0x4719a9;return(_0x4719a9=this['_icon'])===null||_0x4719a9===void 0x0?void 0x0:_0x4719a9[_0x46bb34(0x135)]();}[a88_0x4f8eba(0x12f)](_0x45e34e){const _0x3510a0=a88_0x4f8eba;this[_0x3510a0(0x124)]=_0x45e34e;}[a88_0x4f8eba(0x123)](_0x2e52c0){const _0x4f204a=a88_0x4f8eba;if(this[_0x4f204a(0x124)]){let _0x3e8ae7=new a88_0x3c65a7(_0x2e52c0);_0x3e8ae7[_0x4f204a(0x12d)]=this,this[_0x4f204a(0x124)](_0x3e8ae7);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a89_0x140c(){const _0x552952=['canvas','data','strokeWidth','minx','2200xMwjMQ','getPropertyValue','#000000','fillColor','ascent','style','strokeStyle','backgroundColor','1599BDjZDx','getComputedStyle','1110807mJviWL','10469239nbHbpe','fillStyle','fill','25496Zlgtyf','measureText','getImageData','strokeText','removeChild','length','3198dNKvhX','fillText','height','fillRect','mozImageSmoothingEnabled','defaultView','createElement','msImageSmoothingEnabled','font','round','568OiDmgo','hidden','lineJoin','imageSmoothingEnabled','body','webkitImageSmoothingEnabled','1396170fCdAwh','test','#FFFFFF','padding','getContext','dimensions','lineWidth','text\x20is\x20required.','width','font-size','201SxdBdB','2316WgJHAT','stroke','replace','#00000000','427kfuFQi','appendChild','white','visibility'];a89_0x140c=function(){return _0x552952;};return a89_0x140c();}(function(_0x3e294e,_0x4f9ac9){const _0x42108f=a89_0x20cc,_0x5e74d8=_0x3e294e();while(!![]){try{const _0x48e06b=-parseInt(_0x42108f(0x137))/0x1*(parseInt(_0x42108f(0x127))/0x2)+-parseInt(_0x42108f(0x14c))/0x3*(parseInt(_0x42108f(0x138))/0x4)+-parseInt(_0x42108f(0x144))/0x5*(parseInt(_0x42108f(0x11d))/0x6)+parseInt(_0x42108f(0x13c))/0x7*(-parseInt(_0x42108f(0x152))/0x8)+-parseInt(_0x42108f(0x14e))/0x9+parseInt(_0x42108f(0x12d))/0xa+parseInt(_0x42108f(0x14f))/0xb;if(_0x48e06b===_0x4f9ac9)break;else _0x5e74d8['push'](_0x5e74d8['shift']());}catch(_0x2c8a7b){_0x5e74d8['push'](_0x5e74d8['shift']());}}}(a89_0x140c,0x2a50d));function measureText(_0x4872a6,_0x2dc553,_0x5df291,_0x3e5906,_0x1cc3e2){const _0x56dc63=a89_0x20cc,_0x54c1e9=_0x4872a6[_0x56dc63(0x153)](_0x2dc553),_0x334e3b=!/\S/[_0x56dc63(0x12e)](_0x2dc553);if(!_0x334e3b&&document[_0x56dc63(0x122)]){const _0x588fb4=document[_0x56dc63(0x122)][_0x56dc63(0x14d)](_0x4872a6['canvas'])[_0x56dc63(0x145)](_0x56dc63(0x136))[_0x56dc63(0x13a)]('px',''),_0x500d1a=document[_0x56dc63(0x123)](_0x56dc63(0x140)),_0x4875=0x64,_0x222e4b=_0x54c1e9[_0x56dc63(0x135)]+_0x4875|0x0,_0x150393=0x3*(_0x588fb4-0x0),_0x538df0=_0x150393/0x2;_0x500d1a['width']=_0x222e4b,_0x500d1a[_0x56dc63(0x11f)]=_0x150393;const _0x45577b=_0x500d1a[_0x56dc63(0x131)]('2d');if(!_0x45577b)return{};_0x45577b[_0x56dc63(0x125)]=_0x5df291,_0x45577b['fillStyle']=_0x56dc63(0x13e),_0x45577b[_0x56dc63(0x120)](0x0,0x0,_0x500d1a[_0x56dc63(0x135)]+0x1,_0x500d1a[_0x56dc63(0x11f)]+0x1);_0x3e5906&&(_0x45577b[_0x56dc63(0x14a)]='black',_0x45577b[_0x56dc63(0x133)]=_0x4872a6[_0x56dc63(0x133)],_0x45577b[_0x56dc63(0x11a)](_0x2dc553,_0x4875/0x2,_0x538df0));_0x1cc3e2&&(_0x45577b[_0x56dc63(0x150)]='black',_0x45577b[_0x56dc63(0x11e)](_0x2dc553,_0x4875/0x2,_0x538df0));const _0x16a0e7=_0x45577b[_0x56dc63(0x154)](0x0,0x0,_0x222e4b,_0x150393)[_0x56dc63(0x141)],_0x1245f9=_0x16a0e7[_0x56dc63(0x11c)],_0x2a57ca=_0x222e4b*0x4;let _0x5d836e,_0x1fbab0,_0x5dd864=0x0,_0x3816ae=0x0;for(_0x5d836e=0x0;_0x5d836e<_0x1245f9;++_0x5d836e){if(_0x16a0e7[_0x5d836e]!==0xff){_0x5dd864=_0x5d836e/_0x2a57ca|0x0;break;}}for(_0x5d836e=_0x1245f9-0x1;_0x5d836e>=0x0;--_0x5d836e){if(_0x16a0e7[_0x5d836e]!==0xff){_0x3816ae=_0x5d836e/_0x2a57ca|0x0;break;}}let _0x5b675e=-0x1;for(_0x5d836e=0x0;_0x5d836e<_0x222e4b&&_0x5b675e===-0x1;++_0x5d836e){for(_0x1fbab0=0x0;_0x1fbab0<_0x150393;++_0x1fbab0){const _0x4ab51e=_0x5d836e*0x4+_0x1fbab0*_0x2a57ca;if(_0x16a0e7[_0x4ab51e]!==0xff||_0x16a0e7[_0x4ab51e+0x1]!==0xff||_0x16a0e7[_0x4ab51e+0x2]!==0xff||_0x16a0e7[_0x4ab51e+0x3]!==0xff){_0x5b675e=_0x5d836e;break;}}}return{'width':_0x54c1e9[_0x56dc63(0x135)],'height':_0x3816ae-_0x5dd864,'ascent':_0x538df0-_0x5dd864,'descent':_0x3816ae-_0x538df0,'minx':_0x5b675e-_0x4875/0x2};}return{'width':_0x54c1e9['width'],'height':0x0,'ascent':0x0,'descent':0x0,'minx':0x0};}function a89_0x20cc(_0x39f486,_0x3ef85a){const _0x140c59=a89_0x140c();return a89_0x20cc=function(_0x20cc62,_0x38d5ff){_0x20cc62=_0x20cc62-0x11a;let _0x59ef91=_0x140c59[_0x20cc62];return _0x59ef91;},a89_0x20cc(_0x39f486,_0x3ef85a);}let imageSmoothingEnabledName='';function writeTextToCanvas(_0x307ac8,_0x198f8c){const _0x2d74da=a89_0x20cc;if(!_0x307ac8)throw new Error(_0x2d74da(0x134));if(_0x307ac8==='')return undefined;_0x198f8c=defaultValue(_0x198f8c,{});const _0x11a23b=defaultValue(_0x198f8c['font'],'10px\x20sans-serif'),_0x3e1f4b=defaultValue(_0x198f8c[_0x2d74da(0x139)],![]),_0x2fa5cc=defaultValue(_0x198f8c[_0x2d74da(0x151)],!![]),_0x376bc1=defaultValue(_0x198f8c[_0x2d74da(0x142)],0x1),_0x4830f8=defaultValue(_0x198f8c[_0x2d74da(0x14b)],_0x2d74da(0x13b)),_0x9624c7=defaultValue(_0x198f8c[_0x2d74da(0x130)],0x0),_0x3046e2=_0x9624c7*0x2,_0x186b85=document[_0x2d74da(0x123)](_0x2d74da(0x140));_0x186b85[_0x2d74da(0x135)]=0x1,_0x186b85['height']=0x1,_0x186b85[_0x2d74da(0x149)]['font']=_0x11a23b;const _0x43eb16=_0x186b85[_0x2d74da(0x131)]('2d');if(!imageSmoothingEnabledName&&_0x43eb16){if(_0x43eb16[_0x2d74da(0x12a)])imageSmoothingEnabledName=_0x2d74da(0x12a);else{if(_0x43eb16[_0x2d74da(0x121)])imageSmoothingEnabledName=_0x2d74da(0x121);else{if(_0x43eb16['webkitImageSmoothingEnabled'])imageSmoothingEnabledName=_0x2d74da(0x12c);else _0x43eb16[_0x2d74da(0x124)]&&(imageSmoothingEnabledName='msImageSmoothingEnabled');}}}_0x43eb16[_0x2d74da(0x125)]=_0x11a23b,_0x43eb16[_0x2d74da(0x129)]=_0x2d74da(0x126),_0x43eb16[_0x2d74da(0x133)]=_0x376bc1,_0x43eb16[imageSmoothingEnabledName]=![],_0x186b85[_0x2d74da(0x149)]['visibility']=_0x2d74da(0x128),document[_0x2d74da(0x12b)][_0x2d74da(0x13d)](_0x186b85);const _0x2f8bcd=measureText(_0x43eb16,_0x307ac8,_0x11a23b,_0x3e1f4b,_0x2fa5cc);if(!_0x2f8bcd)return;_0x186b85[_0x2d74da(0x132)]=_0x2f8bcd,document['body'][_0x2d74da(0x11b)](_0x186b85),_0x186b85[_0x2d74da(0x149)][_0x2d74da(0x13f)]='';const _0x344cdd=-(_0x2f8bcd[_0x2d74da(0x143)]?_0x2f8bcd['minx']:0x0),_0xa7ba7a=Math['ceil'](_0x2f8bcd[_0x2d74da(0x135)])+_0x344cdd+_0x3046e2,_0x316f93=(_0x2f8bcd[_0x2d74da(0x11f)]?_0x2f8bcd['height']:0x0)+_0x3046e2,_0x88be77=_0x316f93-(_0x2f8bcd[_0x2d74da(0x148)]?_0x2f8bcd[_0x2d74da(0x148)]:0x0)+_0x9624c7,_0x154fd1=_0x316f93-_0x88be77+_0x3046e2;return _0x186b85[_0x2d74da(0x135)]=_0xa7ba7a,_0x186b85[_0x2d74da(0x11f)]=_0x316f93,_0x43eb16['font']=_0x11a23b,_0x43eb16[_0x2d74da(0x129)]='round',_0x43eb16[_0x2d74da(0x133)]=_0x376bc1,_0x43eb16[imageSmoothingEnabledName]=![],_0x4830f8!=='#00000000'&&(_0x43eb16[_0x2d74da(0x150)]=_0x4830f8,_0x43eb16['fillRect'](0x0,0x0,_0x186b85[_0x2d74da(0x135)],_0x186b85[_0x2d74da(0x11f)])),_0x3e1f4b&&(_0x43eb16['strokeStyle']=defaultValue(_0x198f8c['strokeColor'],_0x2d74da(0x146)),_0x43eb16[_0x2d74da(0x11a)](_0x307ac8,_0x344cdd+_0x9624c7,_0x154fd1)),_0x2fa5cc&&(_0x43eb16[_0x2d74da(0x150)]=defaultValue(_0x198f8c[_0x2d74da(0x147)],_0x2d74da(0x12f)),_0x43eb16[_0x2d74da(0x11e)](_0x307ac8,_0x344cdd+_0x9624c7,_0x154fd1)),_0x186b85;}function defaultValue(_0xf98fae,_0x1eddec){if(_0xf98fae!==undefined&&_0xf98fae!==null)return _0xf98fae;return _0x1eddec;}export default writeTextToCanvas;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a94_0xa246(_0x2d697d,_0x47e8ad){const _0x59e63b=a94_0x59e6();return a94_0xa246=function(_0xa2462c,_0x1ebb64){_0xa2462c=_0xa2462c-0xe9;let _0x23eeaa=_0x59e63b[_0xa2462c];return _0x23eeaa;},a94_0xa246(_0x2d697d,_0x47e8ad);}const a94_0xa001ec=a94_0xa246;(function(_0xcb85bc,_0x5d1e6f){const _0x24fb37=a94_0xa246,_0x35470c=_0xcb85bc();while(!![]){try{const _0x5805b7=-parseInt(_0x24fb37(0xef))/0x1+parseInt(_0x24fb37(0xea))/0x2*(parseInt(_0x24fb37(0xf7))/0x3)+parseInt(_0x24fb37(0xfa))/0x4*(parseInt(_0x24fb37(0x105))/0x5)+parseInt(_0x24fb37(0xf2))/0x6*(-parseInt(_0x24fb37(0xee))/0x7)+parseInt(_0x24fb37(0x10d))/0x8*(-parseInt(_0x24fb37(0xf1))/0x9)+-parseInt(_0x24fb37(0x103))/0xa*(-parseInt(_0x24fb37(0x10c))/0xb)+-parseInt(_0x24fb37(0xf6))/0xc*(-parseInt(_0x24fb37(0xeb))/0xd);if(_0x5805b7===_0x5d1e6f)break;else _0x35470c['push'](_0x35470c['shift']());}catch(_0x30ad34){_0x35470c['push'](_0x35470c['shift']());}}}(a94_0x59e6,0x558fb));import a94_0x511ed8 from'ol/format/EsriJSON';import a94_0x116751 from'ol/format/GeoJSON';import{getPointResolution}from'ol/proj';import a94_0x4861c8 from'./Task';import{appendPath}from'../../UrlUtil';import{getEsriSpatialReference}from'../../EsriUtil';export default class Identify extends a94_0x4861c8{constructor(_0x47437b,_0x1eb7a0,_0x5428a1){const _0x421608=a94_0xa246;super(_0x47437b,_0x1eb7a0,_0x5428a1),this[_0x421608(0x109)]='identify',this[_0x421608(0x106)]={'layers':_0x421608(0xfc),'tolerance':0x0,'returnGeometry':!![]},this[_0x421608(0xfe)]=0x3,this['resolution']=0x0,this[_0x421608(0x104)]=appendPath(this[_0x421608(0x104)],this[_0x421608(0x109)]),_0x1eb7a0&&((_0x1eb7a0['returnGeometry']===!![]||_0x1eb7a0[_0x421608(0x100)]===![])&&(this['params'][_0x421608(0x100)]=_0x1eb7a0[_0x421608(0x100)]),_0x1eb7a0['layers']&&(this['params'][_0x421608(0x102)]=_0x1eb7a0['layers']),_0x1eb7a0[_0x421608(0xf5)]&&(this[_0x421608(0x106)][_0x421608(0xf5)]=_0x1eb7a0[_0x421608(0xf5)]),(_0x1eb7a0[_0x421608(0x10f)]===!![]||_0x1eb7a0[_0x421608(0x10f)]===![])&&(this[_0x421608(0x106)][_0x421608(0x10f)]=_0x1eb7a0[_0x421608(0x10f)]),(_0x1eb7a0[_0x421608(0xff)]===!![]||_0x1eb7a0['returnM']===![])&&(this[_0x421608(0x106)][_0x421608(0xff)]=_0x1eb7a0[_0x421608(0xff)]));}['at'](_0x410bb9,_0x1631b8){const _0x33267d=a94_0xa246;let _0x5b9c7b,_0x352eed;const _0x5dcd3b=new a94_0x116751();_0x5b9c7b=_0x410bb9,_0x352eed=getEsriSpatialReference(_0x1631b8[_0x33267d(0xf4)]()[_0x33267d(0x108)]()['getCode']());const _0x11e066=_0x1631b8['getSize']();_0x11e066&&(this[_0x33267d(0x106)]['imageDisplay']=[_0x11e066[0x0],_0x11e066[0x1],0x60]);this[_0x33267d(0x106)]['sr']=_0x352eed;const _0x14565b=_0x1631b8[_0x33267d(0xf4)]()[_0x33267d(0xf0)](_0x1631b8['getSize']());this['params'][_0x33267d(0xec)]={'xmin':_0x14565b[0x0],'ymin':_0x14565b[0x1],'xmax':_0x14565b[0x2],'ymax':_0x14565b[0x3],'spatialReference':_0x352eed};const _0x40dc7f=_0x1631b8['getView']()[_0x33267d(0xfd)](),_0x1672b7=_0x1631b8['getView']()['getCenter']();return _0x40dc7f&&_0x1672b7&&(this[_0x33267d(0xfb)]=getPointResolution(_0x1631b8[_0x33267d(0xf4)]()['getProjection'](),_0x40dc7f,_0x1672b7)),this['_setGeometryParams'](_0x5b9c7b,_0x1631b8[_0x33267d(0xf4)]()['getProjection']()[_0x33267d(0xf3)]()),this;}[a94_0xa001ec(0xf8)](_0x5f51bc,_0x6b6b0d){const _0x2c879e=a94_0xa001ec;return this[_0x2c879e(0x106)]['time']=[_0x5f51bc[_0x2c879e(0x10b)](),_0x6b6b0d[_0x2c879e(0x10b)]()],this;}['run'](){const _0x337483=a94_0xa001ec;this[_0x337483(0x10e)]();}[a94_0xa001ec(0xf9)](_0x49ed72,_0x1ea2d4){const _0x37ec86=a94_0xa001ec;var _0x57d337=new a94_0x511ed8();const _0x1b1585=_0x57d337[_0x37ec86(0xe9)](_0x49ed72);this[_0x37ec86(0x106)][_0x37ec86(0x101)]=getEsriSpatialReference(_0x1ea2d4),this[_0x37ec86(0x106)][_0x37ec86(0x10a)]=_0x1b1585,this['params'][_0x37ec86(0xed)]=this[_0x37ec86(0x107)](_0x49ed72['getType']());}}function a94_0x59e6(){const _0x5df6de=['url','5wATReH','params','geojsonTypeToArcGIS','getProjection','path','geometry','valueOf','649DWyzHA','17328KQuJqw','request','returnZ','writeGeometryObject','4822KZkuPQ','2898701HXRBze','mapExtent','geometryType','159243RqffVn','467163jRVjpM','calculateExtent','729anupXv','6cuvWcp','getCode','getView','layerDefs','12xgkZZL','144BwErIk','between','_setGeometryParams','2515400JboFiH','resolution','all','getResolution','tolerance','returnM','returnGeometry','inSR','layers','8180ltoxNR'];a94_0x59e6=function(){return _0x5df6de;};return a94_0x59e6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a95_0x445d7c=a95_0x1b47;function a95_0x1b47(_0x46c9ee,_0x456908){const _0x3bd317=a95_0x3bd3();return a95_0x1b47=function(_0x1b47a2,_0x1ab188){_0x1b47a2=_0x1b47a2-0xec;let _0x4a3fa0=_0x3bd317[_0x1b47a2];return _0x4a3fa0;},a95_0x1b47(_0x46c9ee,_0x456908);}(function(_0x33640d,_0x1cf7f8){const _0x4e69f5=a95_0x1b47,_0x325b39=_0x33640d();while(!![]){try{const _0x26977b=parseInt(_0x4e69f5(0x109))/0x1+-parseInt(_0x4e69f5(0xfa))/0x2*(-parseInt(_0x4e69f5(0xfb))/0x3)+parseInt(_0x4e69f5(0xee))/0x4*(-parseInt(_0x4e69f5(0x12d))/0x5)+parseInt(_0x4e69f5(0xf1))/0x6+parseInt(_0x4e69f5(0x121))/0x7+-parseInt(_0x4e69f5(0x137))/0x8*(-parseInt(_0x4e69f5(0x111))/0x9)+-parseInt(_0x4e69f5(0x10d))/0xa;if(_0x26977b===_0x1cf7f8)break;else _0x325b39['push'](_0x325b39['shift']());}catch(_0x2dcb5b){_0x325b39['push'](_0x325b39['shift']());}}}(a95_0x3bd3,0x4aac7));import a95_0x4bf4d4 from'ol/format/EsriJSON';import a95_0xef7f37 from'./Task';import{getEsriSpatialReference}from'../../EsriUtil';function a95_0x3bd3(){const _0xd831f1=['data','contains','getExtent','ASC','readFeature','returnCountOnly','query','warn','orderByFields','length','5sWhQBv','nearby','forEach','returnGeometry','spatialRel','geometryType','crosses','esriSpatialRelEnvelopeIntersects','esriSpatialRelWithin','_trapSQLerrors','104SXWMjI','intersects','returnZ','965296ZelZRW','simplify','touches','2611074gNMqhu','No\x20features\x20found','getSize','returnM','valueOf','_setGeometryParams','layer','count','/query','35424XYjNLL','45Nltcmy','maxAllowableOffset','returnDistinctValues','1=1','getTime','esriSpatialRelTouches','writeGeometryObject','time','esriSpatialRelIntersects','geometry','abs','distance','esriSRUnit_Meter','catch','723JWgWKb','outSR','url','_cleanParams','4163500YMcJUG','units','within','esriSpatialRelOverlaps','63333kIyDmF','returnIdsOnly','esriSpatialRelContains','request','between','path','distinct','inSR','join','orderBy','status','where','features','params','bboxIntersects','push','1193318wOQfFT','esriSpatialRelIndexIntersects'];a95_0x3bd3=function(){return _0xd831f1;};return a95_0x3bd3();}import{appendPath}from'../../UrlUtil';export default class Query extends a95_0xef7f37{constructor(_0x2a096a,_0x226ebe,_0x3dc546){const _0x518fe9=a95_0x1b47;super(_0x2a096a,_0x226ebe,_0x3dc546),this[_0x518fe9(0x116)]=_0x518fe9(0x129),this[_0x518fe9(0x11e)]={'returnGeometry':!![],'where':_0x518fe9(0xfe),'outFields':'*','returnZ':![],'returnM':![],'t':new Date()[_0x518fe9(0xff)]()},this[_0x518fe9(0x10b)]=appendPath(this['url'],this[_0x518fe9(0x116)]),_0x226ebe&&((_0x226ebe[_0x518fe9(0x130)]===!![]||_0x226ebe[_0x518fe9(0x130)]===![])&&(this['params'][_0x518fe9(0x130)]=_0x226ebe['returnGeometry']),_0x226ebe['where']&&(this[_0x518fe9(0x11e)][_0x518fe9(0x11c)]=_0x226ebe[_0x518fe9(0x11c)]),_0x226ebe[_0x518fe9(0x10a)]&&(this[_0x518fe9(0x11e)][_0x518fe9(0x10a)]=getEsriSpatialReference(_0x226ebe['outSR'])),(_0x226ebe[_0x518fe9(0xed)]===!![]||_0x226ebe['returnZ']===![])&&(this[_0x518fe9(0x11e)][_0x518fe9(0xed)]=_0x226ebe[_0x518fe9(0xed)]),(_0x226ebe['returnM']===!![]||_0x226ebe[_0x518fe9(0xf4)]===![])&&(this[_0x518fe9(0x11e)]['returnM']=_0x226ebe['returnM']));}[a95_0x445d7c(0x10f)](_0x21745f,_0x4b909c){const _0x484da3=a95_0x445d7c;return this[_0x484da3(0xf6)](_0x21745f,_0x4b909c),this[_0x484da3(0x11e)][_0x484da3(0x131)]=_0x484da3(0x113),this;}[a95_0x445d7c(0xec)](_0x393070,_0x58e7e7){const _0x57954e=a95_0x445d7c;return this[_0x57954e(0xf6)](_0x393070,_0x58e7e7),this[_0x57954e(0x11e)][_0x57954e(0x131)]=_0x57954e(0x103),this;}[a95_0x445d7c(0x124)](_0x5ae594,_0x51a0c6){const _0x4d2080=a95_0x445d7c;return this[_0x4d2080(0xf6)](_0x5ae594,_0x51a0c6),this[_0x4d2080(0x11e)][_0x4d2080(0x131)]=_0x4d2080(0x135),this;}[a95_0x445d7c(0x133)](_0x331a44,_0x108a4b){const _0xe06974=a95_0x445d7c;return this[_0xe06974(0xf6)](_0x331a44,_0x108a4b),this[_0xe06974(0x11e)]['spatialRel']='esriSpatialRelCrosses',this;}[a95_0x445d7c(0xf0)](_0x5d9a1c,_0x100fb4){const _0x3eab09=a95_0x445d7c;return this[_0x3eab09(0xf6)](_0x5d9a1c,_0x100fb4),this[_0x3eab09(0x11e)]['spatialRel']=_0x3eab09(0x100),this;}['overlaps'](_0x551dab,_0x5ba283){const _0x9d442d=a95_0x445d7c;return this[_0x9d442d(0xf6)](_0x551dab,_0x5ba283),this['params']['spatialRel']=_0x9d442d(0x110),this;}[a95_0x445d7c(0x11f)](_0x4cab4c,_0x11f00a){const _0x52b031=a95_0x445d7c;return this[_0x52b031(0xf6)](_0x4cab4c,_0x11f00a),this[_0x52b031(0x11e)][_0x52b031(0x131)]=_0x52b031(0x134),this;}['indexIntersects'](_0x46438b,_0xa49377){const _0x174225=a95_0x445d7c;return this[_0x174225(0xf6)](_0x46438b,_0xa49377),this[_0x174225(0x11e)]['spatialRel']=_0x174225(0x122),this;}[a95_0x445d7c(0x12e)](_0x47ec92,_0x1d997e,_0x28d53c){const _0x43e357=a95_0x445d7c;return this['_setGeometryParams'](_0x47ec92,_0x1d997e),this[_0x43e357(0x11e)]['spatialRel']=_0x43e357(0x103),this['params'][_0x43e357(0x10e)]=_0x43e357(0x107),this[_0x43e357(0x11e)][_0x43e357(0x106)]=_0x28d53c,this;}[a95_0x445d7c(0x11c)](_0x3787e9){const _0x407854=a95_0x445d7c;return this[_0x407854(0x11e)]['where']=_0x3787e9,this;}[a95_0x445d7c(0x115)](_0x1288ae,_0x3fc56e){const _0x5370df=a95_0x445d7c;return this[_0x5370df(0x11e)][_0x5370df(0x102)]=[_0x1288ae[_0x5370df(0xf5)](),_0x3fc56e[_0x5370df(0xf5)]()],this;}[a95_0x445d7c(0xef)](_0x40103f,_0x1beb46){const _0x575263=a95_0x445d7c,_0x41c6eb=_0x40103f[_0x575263(0x125)]();var _0x1d833c=Math[_0x575263(0x105)](_0x41c6eb[0x2]-_0x41c6eb[0x0]);const _0x3e3fcb=_0x40103f[_0x575263(0xf3)]();if(_0x3e3fcb)return this[_0x575263(0x11e)][_0x575263(0xfc)]=_0x1d833c/_0x3e3fcb[0x1]*_0x1beb46,this;}[a95_0x445d7c(0x11a)](_0x6e967e,_0x12623e){const _0x2bfbdd=a95_0x445d7c;return _0x12623e=_0x12623e||_0x2bfbdd(0x126),this['params'][_0x2bfbdd(0x12b)]=this['params'][_0x2bfbdd(0x12b)]?this[_0x2bfbdd(0x11e)][_0x2bfbdd(0x12b)]+',':'',this['params']['orderByFields']+=[_0x6e967e,_0x12623e][_0x2bfbdd(0x119)]('\x20'),this;}async['run'](){const _0x247512=a95_0x445d7c;this[_0x247512(0x10c)]();const _0xa95bc6=await this[_0x247512(0x114)]()[_0x247512(0x108)](_0x37621c=>{throw new Error(_0x37621c);});if(_0xa95bc6[_0x247512(0x11b)]!==0xc8)throw new Error(_0x247512(0xf2));if(_0xa95bc6[_0x247512(0x123)]&&_0xa95bc6[_0x247512(0x123)][_0x247512(0x11d)]&&_0xa95bc6[_0x247512(0x123)][_0x247512(0x11d)][_0x247512(0x12c)]>0x0){var _0x12154f=new a95_0x4bf4d4();let _0xecfeaf=[];return _0xa95bc6[_0x247512(0x123)][_0x247512(0x11d)][_0x247512(0x12f)](_0x481ba4=>{const _0x42c5d8=_0x247512,_0x2c1c62=_0x12154f[_0x42c5d8(0x127)](_0x481ba4);_0xecfeaf[_0x42c5d8(0x120)](_0x2c1c62);}),_0xecfeaf;}return[];}[a95_0x445d7c(0xf8)](){const _0x1f994d=a95_0x445d7c;this[_0x1f994d(0x10c)](),this[_0x1f994d(0x11e)][_0x1f994d(0x128)]=!![],this[_0x1f994d(0x114)]();}['ids'](){const _0x1e7eb1=a95_0x445d7c;this[_0x1e7eb1(0x10c)](),this['params'][_0x1e7eb1(0x112)]=!![],this[_0x1e7eb1(0x114)]();}[a95_0x445d7c(0x117)](){const _0x58448d=a95_0x445d7c;return this[_0x58448d(0x11e)][_0x58448d(0x130)]=![],this[_0x58448d(0x11e)][_0x58448d(0xfd)]=!![],this;}[a95_0x445d7c(0xf7)](_0x3688df){const _0x1b6687=a95_0x445d7c;return this[_0x1b6687(0x116)]=_0x3688df+_0x1b6687(0xf9),this;}[a95_0x445d7c(0x136)](_0x5b0fbf){const _0x47b77b=a95_0x445d7c;_0x5b0fbf&&(_0x5b0fbf['code']==='400'&&console[_0x47b77b(0x12a)]['apply']('one\x20common\x20syntax\x20error\x20in\x20query\x20requests\x20is\x20encasing\x20string\x20values\x20in\x20double\x20quotes\x20instead\x20of\x20single\x20quotes'));}[a95_0x445d7c(0x10c)](){const _0x304a73=a95_0x445d7c;delete this['params'][_0x304a73(0x112)],delete this[_0x304a73(0x11e)]['returnExtentOnly'],delete this[_0x304a73(0x11e)]['returnCountOnly'];}[a95_0x445d7c(0xf6)](_0x32668c,_0x493fc7){const _0x1573eb=a95_0x445d7c;var _0x3ca3cc=new a95_0x4bf4d4();const _0x1d7cb6=_0x3ca3cc[_0x1573eb(0x101)](_0x32668c);this[_0x1573eb(0x11e)][_0x1573eb(0x118)]=getEsriSpatialReference(_0x493fc7),this[_0x1573eb(0x11e)][_0x1573eb(0x104)]=_0x1d7cb6,this['params'][_0x1573eb(0x132)]=this['geojsonTypeToArcGIS'](_0x32668c['getType']());}}
|
package/utils/tasks/esri/Task.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a96_0x1b79(){var _0x3fd7a8=['1288260Klrbcw','returnUnformattedValues','MultiLineString','length','5027gtKDnR','4664646asgAKz','test','get','stringify','format','esriGeometryPolyline','51pViODS','esriGeometryMultipoint','esriGeometryPolygon','8110JIIpxI','MultiPoint','8EjpfzW','52530PbIBQG','serialize','method','[object\x20Array]','225gGYxOM','call','JSONP','toString','334927iEJlJC','url','2425584LVpsVr','json','geojsonTypeToArcGIS','prototype','[object\x20Object]','207484catoau','2RrhOZb','params','valueOf','request','esriGeometryPoint','MultiPolygon'];a96_0x1b79=function(){return _0x3fd7a8;};return a96_0x1b79();}var a96_0x23cf3f=a96_0x478c;(function(_0x1ed528,_0xbb71c4){var _0x3f896d=a96_0x478c,_0x95d8f3=_0x1ed528();while(!![]){try{var _0x153f2e=-parseInt(_0x3f896d(0x1d0))/0x1*(-parseInt(_0x3f896d(0x1d8))/0x2)+-parseInt(_0x3f896d(0x1e9))/0x3*(-parseInt(_0x3f896d(0x1d7))/0x4)+parseInt(_0x3f896d(0x1cc))/0x5*(-parseInt(_0x3f896d(0x1ef))/0x6)+parseInt(_0x3f896d(0x1d2))/0x7*(-parseInt(_0x3f896d(0x1ee))/0x8)+parseInt(_0x3f896d(0x1e3))/0x9+parseInt(_0x3f896d(0x1ec))/0xa*(-parseInt(_0x3f896d(0x1e2))/0xb)+-parseInt(_0x3f896d(0x1de))/0xc;if(_0x153f2e===_0xbb71c4)break;else _0x95d8f3['push'](_0x95d8f3['shift']());}catch(_0x14b4ec){_0x95d8f3['push'](_0x95d8f3['shift']());}}}(a96_0x1b79,0x7e1cf));function a96_0x478c(_0x3ae623,_0x2c5470){var _0x1b79cd=a96_0x1b79();return a96_0x478c=function(_0x478c51,_0x4bf89b){_0x478c51=_0x478c51-0x1cb;var _0x3e15ec=_0x1b79cd[_0x478c51];return _0x3e15ec;},a96_0x478c(_0x3ae623,_0x2c5470);}import a96_0xd3a853 from'../../AxiosUtil';import{jsonp,stringify}from'../../AxiosUtil';export default class Task{constructor(_0x374e4f,_0x297f31,_0x34589a){var _0x272538=a96_0x478c;this['url']=_0x374e4f,this[_0x272538(0x1d9)]=_0x297f31||{},this[_0x272538(0x1f1)]=!_0x34589a?'GET':_0x34589a;}[a96_0x23cf3f(0x1d4)](_0x4da902){var _0x3cf260=a96_0x23cf3f,_0x1cd700;switch(_0x4da902){case'Point':_0x1cd700=_0x3cf260(0x1dc);break;case _0x3cf260(0x1ed):_0x1cd700=_0x3cf260(0x1ea);break;case'LineString':_0x1cd700=_0x3cf260(0x1e8);break;case _0x3cf260(0x1e0):_0x1cd700='esriGeometryPolyline';break;case'Polygon':_0x1cd700=_0x3cf260(0x1eb);break;case _0x3cf260(0x1dd):_0x1cd700=_0x3cf260(0x1eb);break;}return _0x1cd700;}['isArcgisOnline'](_0x56f1bc){var _0x215215=a96_0x23cf3f;return/^(?!.*utility\.arcgis\.com).*\.arcgis\.com.*FeatureServer/i[_0x215215(0x1e4)](_0x56f1bc);}[a96_0x23cf3f(0x1f0)](_0x26b2a3){var _0x19d3d4=a96_0x23cf3f,_0x21797c='';_0x26b2a3['f']=_0x26b2a3['f']||_0x19d3d4(0x1d3);for(var _0x309e0c in _0x26b2a3){if(Object[_0x19d3d4(0x1d5)]['hasOwnProperty'][_0x19d3d4(0x1cd)](_0x26b2a3,_0x309e0c)){var _0x4e67b5=_0x26b2a3[_0x309e0c],_0x45dbed=Object['prototype'][_0x19d3d4(0x1cf)][_0x19d3d4(0x1cd)](_0x4e67b5),_0xccb66;_0x21797c[_0x19d3d4(0x1e1)]&&(_0x21797c+='&');if(_0x45dbed===_0x19d3d4(0x1cb))_0xccb66=Object['prototype'][_0x19d3d4(0x1cf)][_0x19d3d4(0x1cd)](_0x4e67b5[0x0])===_0x19d3d4(0x1d6)?JSON[_0x19d3d4(0x1e6)](_0x4e67b5):_0x4e67b5['join'](',');else{if(_0x45dbed===_0x19d3d4(0x1d6))_0xccb66=JSON[_0x19d3d4(0x1e6)](_0x4e67b5);else _0x45dbed==='[object\x20Date]'?_0xccb66=_0x4e67b5[_0x19d3d4(0x1da)]():_0xccb66=_0x4e67b5;}_0x21797c+=encodeURIComponent(_0x309e0c)+'='+encodeURIComponent(_0xccb66);}}return _0x21797c;}[a96_0x23cf3f(0x1e7)](_0x339717){var _0x25bac1=a96_0x23cf3f;return this['params'][_0x25bac1(0x1df)]=!_0x339717,this;}async[a96_0x23cf3f(0x1db)](){var _0x143915=a96_0x23cf3f,_0x4ff651=this[_0x143915(0x1f0)](this[_0x143915(0x1d9)]);const _0x2ae189=this[_0x143915(0x1d1)]['indexOf']('?')>-0x1?this[_0x143915(0x1d1)]+'&'+_0x4ff651:this[_0x143915(0x1d1)]+'?'+_0x4ff651;if(this['method']==='GET')return a96_0xd3a853[_0x143915(0x1e5)](_0x2ae189);else{if(this['method']===_0x143915(0x1ce))return jsonp(_0x2ae189);else{const _0x4ae9f2=stringify(this['params']);return a96_0xd3a853['post'](this['url'],_0x4ae9f2);}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98_0x4b589b=a98_0x4970;(function(_0x4dac7a,_0x2dd012){const _0x3f66d6=a98_0x4970,_0x1a7955=_0x4dac7a();while(!![]){try{const _0x5c74cc=-parseInt(_0x3f66d6(0x8f))/0x1+parseInt(_0x3f66d6(0x96))/0x2*(parseInt(_0x3f66d6(0x89))/0x3)+-parseInt(_0x3f66d6(0xa1))/0x4*(-parseInt(_0x3f66d6(0x9a))/0x5)+parseInt(_0x3f66d6(0x9b))/0x6*(parseInt(_0x3f66d6(0x94))/0x7)+parseInt(_0x3f66d6(0x9f))/0x8+-parseInt(_0x3f66d6(0x83))/0x9+-parseInt(_0x3f66d6(0x8b))/0xa;if(_0x5c74cc===_0x2dd012)break;else _0x1a7955['push'](_0x1a7955['shift']());}catch(_0x4bf46e){_0x1a7955['push'](_0x1a7955['shift']());}}}(a98_0x3022,0xeecf3));function a98_0x4970(_0x515b4e,_0x82be3){const _0x302250=a98_0x3022();return a98_0x4970=function(_0x49703e,_0x5532cb){_0x49703e=_0x49703e-0x81;let _0x2b800e=_0x302250[_0x49703e];return _0x2b800e;},a98_0x4970(_0x515b4e,_0x82be3);}import{and,intersects}from'ol/format/filter';import a98_0x16ceff from'../../format/CQL';import a98_0xabbacd from'ol/format/WFS';import a98_0x300943 from'ol/format/GeoJSON';import a98_0x48cfc4 from'ol/source/TileWMS';function a98_0x3022(){const _0x2e7789=['1.1.1','getFeatureInfoUrl','623HYykwk','POST','1202402qdYeQD','writeGetFeature','tableName','application/json','402850fNCNyU','105318DRZXfK','then','queryParameters','serializeToString','6477400FgjZmV','map','64EhriBg','url','geometry','anonymous','geometryName','error','srsName','where','resolution','features','srsName\x20is\x20required','1630431gGmfQS','executeRaster','execute','getCoordinates','the_geom','readFeature','6KGWkHD','read','30916460ttixcK','stringify','geometry\x20is\x20invalid','geoserver','612446NKOnbK','json','_geoserverQuery'];a98_0x3022=function(){return _0x2e7789;};return a98_0x3022();}import{getGeometryCenter}from'../../GeometryUtil';export default class QueryTask{constructor(_0x28fab2){const _0x483d9f=a98_0x4970;this[_0x483d9f(0x9d)]={},this[_0x483d9f(0xa2)]=_0x28fab2;}async[a98_0x4b589b(0x84)](_0x109401){const _0x50d2cd=a98_0x4b589b,_0x31a358=new a98_0x48cfc4({'url':this[_0x50d2cd(0xa2)],'params':{'LAYERS':_0x109401['tableName'],'TILED':!![],'VERSION':_0x50d2cd(0x92)},'serverType':_0x50d2cd(0x8e),'crossOrigin':_0x50d2cd(0xa4)}),_0x2846ac=_0x109401[_0x50d2cd(0xa9)]||0.001,_0x2fa89a=_0x109401[_0x50d2cd(0xa3)];if(!_0x2fa89a)throw new Error('geometry\x20is\x20required');let _0x164fd3=getGeometryCenter(_0x2fa89a);if(!_0x164fd3)throw new Error(_0x50d2cd(0x8d));const _0x1dbbfb=_0x31a358[_0x50d2cd(0x93)](_0x164fd3[_0x50d2cd(0x86)](),_0x2846ac,'EPSG:4326',{'INFO_FORMAT':'application/json'}),_0x21149f=await fetch(_0x1dbbfb,{'method':_0x50d2cd(0x95)}),_0x739652=await _0x21149f['json']();let _0x26b2c5=[];const _0x2d6221=new a98_0x300943();return _0x26b2c5=_0x739652[_0x50d2cd(0x81)][_0x50d2cd(0xa0)](_0x538efc=>{const _0x5e4954=_0x50d2cd;return _0x2d6221['readFeature'](JSON[_0x5e4954(0x8c)](_0x538efc));}),_0x26b2c5;}async[a98_0x4b589b(0x85)](_0x26571b){const _0x3a1fb7=a98_0x4b589b;this[_0x3a1fb7(0x9d)]=_0x26571b||{};const _0x9babb0=this[_0x3a1fb7(0x9d)]['geometryName']||_0x3a1fb7(0x87);let _0x4d6c00=this[_0x3a1fb7(0x9d)][_0x3a1fb7(0xa8)],_0x3e463f;_0x4d6c00&&(_0x3e463f=new a98_0x16ceff()[_0x3a1fb7(0x8a)](_0x4d6c00));let _0x197c46=_0x3e463f;if(this[_0x3a1fb7(0x9d)]['geometry']){if(!this[_0x3a1fb7(0x9d)][_0x3a1fb7(0xa7)])throw new Error(_0x3a1fb7(0x82));const _0x4c5e81=intersects(_0x9babb0,this[_0x3a1fb7(0x9d)][_0x3a1fb7(0xa3)]);_0x197c46=_0x3e463f?and(_0x3e463f,_0x4c5e81):_0x4c5e81;}let _0x290fa0=new a98_0xabbacd()[_0x3a1fb7(0x97)]({'srsName':this[_0x3a1fb7(0x9d)][_0x3a1fb7(0xa7)],'featureNS':'','featurePrefix':'','featureTypes':[this[_0x3a1fb7(0x9d)]['tableName']],'outputFormat':_0x3a1fb7(0x99),'geometryName':_0x9babb0,'filter':_0x197c46});const _0x58851f=await fetch(this['url'],{'method':_0x3a1fb7(0x95),'body':new XMLSerializer()[_0x3a1fb7(0x9e)](_0x290fa0)}),_0x14176a=await _0x58851f[_0x3a1fb7(0x90)]();let _0x3d20c1=[];const _0x1c5b9f=new a98_0x300943();return _0x3d20c1=_0x14176a[_0x3a1fb7(0x81)][_0x3a1fb7(0xa0)](_0x275a0a=>{const _0x13ad5d=_0x3a1fb7;return _0x1c5b9f[_0x13ad5d(0x88)](JSON[_0x13ad5d(0x8c)](_0x275a0a));}),_0x3d20c1;}[a98_0x4b589b(0x91)](){const _0x2d84bb=a98_0x4b589b,_0x4f89a1=this[_0x2d84bb(0x9d)][_0x2d84bb(0xa5)]||_0x2d84bb(0x87);let _0x49b966=this['queryParameters'][_0x2d84bb(0xa8)],_0x2ad3b2;_0x49b966&&(_0x2ad3b2=new a98_0x16ceff()['read'](_0x49b966));let _0x168779=_0x2ad3b2;if(this['queryParameters']['geometry']){const _0x4f77f8=intersects(_0x4f89a1,this[_0x2d84bb(0x9d)]['geometry']);_0x168779=_0x2ad3b2?and(_0x2ad3b2,_0x4f77f8):_0x4f77f8;}let _0x396bc5=new a98_0xabbacd()[_0x2d84bb(0x97)]({'srsName':this['queryParameters'][_0x2d84bb(0xa7)],'featureNS':'','featurePrefix':'','featureTypes':[this['queryParameters'][_0x2d84bb(0x98)]],'outputFormat':'application/json','geometryName':_0x4f89a1,'filter':_0x168779});return new Promise(_0xa991c=>{const _0x214d2a=_0x2d84bb;fetch(this['url'],{'method':_0x214d2a(0x95),'body':new XMLSerializer()[_0x214d2a(0x9e)](_0x396bc5)})['then'](_0x9ade90=>{const _0x28881e=_0x214d2a;return _0x9ade90[_0x28881e(0x90)]();})[_0x214d2a(0x9c)](_0x4b0b7d=>{const _0x1092ad=_0x214d2a;let _0x21ff9f=[];const _0x410729=new a98_0x300943();_0x21ff9f=_0x4b0b7d[_0x1092ad(0x81)][_0x1092ad(0xa0)](_0x43ba10=>{const _0x2506b8=_0x1092ad;return _0x410729[_0x2506b8(0x88)](JSON[_0x2506b8(0x8c)](_0x43ba10));}),_0xa991c(_0x21ff9f);})['catch'](_0x19e173=>{const _0x3ebae2=_0x214d2a;_0xa991c([]),console[_0x3ebae2(0xa6)](_0x19e173);});});}}
|