ym-gis-2d 1.0.6 → 1.0.7

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.
Files changed (80) hide show
  1. package/capabilities/index.js +1 -1
  2. package/controls/ControlManager.js +1 -1
  3. package/controls/MousePositionControl.js +1 -1
  4. package/controls/SwipeLayerControl.js +1 -1
  5. package/conver/kml/geoJSONToKml.js +1 -1
  6. package/conver/kml/index.js +1 -1
  7. package/conver/kml/kmlToGeoJSON.js +1 -1
  8. package/entity/Feature.js +1 -1
  9. package/entity/GeometryType.js +1 -1
  10. package/feature/FeatureManager.js +1 -1
  11. package/index.js +1 -1
  12. package/interaction/Draw.js +1 -1
  13. package/interaction/InteractionManager.js +1 -1
  14. package/interaction/Select.js +1 -1
  15. package/layers/ArcgisDynamicLayer.d.ts +1 -0
  16. package/layers/ArcgisDynamicLayer.d.ts.map +1 -1
  17. package/layers/ArcgisDynamicLayer.js +1 -1
  18. package/layers/ArcgisDynamicLayer.js.map +1 -1
  19. package/layers/ArcgisFeatureLayer.d.ts +1 -0
  20. package/layers/ArcgisFeatureLayer.d.ts.map +1 -1
  21. package/layers/ArcgisFeatureLayer.js +1 -1
  22. package/layers/ArcgisFeatureLayer.js.map +1 -1
  23. package/layers/ArcgisTileLayer.js +1 -1
  24. package/layers/ArcgisWMSLayer.d.ts +2 -0
  25. package/layers/ArcgisWMSLayer.d.ts.map +1 -1
  26. package/layers/ArcgisWMSLayer.js +1 -1
  27. package/layers/ArcgisWMSLayer.js.map +1 -1
  28. package/layers/ArcgisWMTSLayer.js +1 -1
  29. package/layers/GeoserverVectorTile.js +1 -1
  30. package/layers/GeoserverWFSLayer.d.ts +1 -0
  31. package/layers/GeoserverWFSLayer.d.ts.map +1 -1
  32. package/layers/GeoserverWFSLayer.js +1 -1
  33. package/layers/GeoserverWFSLayer.js.map +1 -1
  34. package/layers/GeoserverWMSLayer.d.ts +2 -0
  35. package/layers/GeoserverWMSLayer.d.ts.map +1 -1
  36. package/layers/GeoserverWMSLayer.js +1 -1
  37. package/layers/GeoserverWMSLayer.js.map +1 -1
  38. package/layers/GeoserverWMTSLayer.js +1 -1
  39. package/layers/LayerManager.js +1 -1
  40. package/layers/TDTLayer.js +1 -1
  41. package/mapView/Map.js +1 -1
  42. package/mapView/View.js +1 -1
  43. package/package.json +1 -1
  44. package/plot/Plot.js +1 -1
  45. package/plot/geometry/point/Point.js +1 -1
  46. package/plot/geometry/polygon/BasePolygon.js +1 -1
  47. package/plot/geometry/polygon/Circle.js +1 -1
  48. package/plot/geometry/polygon/Polygon.js +1 -1
  49. package/plot/geometry/polygon/RectAngle.js +1 -1
  50. package/plot/geometry/polyline/BaseLine.js +1 -1
  51. package/plot/geometry/polyline/Polyline.js +1 -1
  52. package/style/PointStyleFormat.js +1 -1
  53. package/style/PolygonStyleFormat.js +1 -1
  54. package/style/PolylineStyleFormat.js +1 -1
  55. package/style/StyleManager.js +1 -1
  56. package/style/common.js +1 -1
  57. package/utils/ArrayUtil.js +1 -1
  58. package/utils/AxiosUtil.js +1 -1
  59. package/utils/EsriUtil.js +1 -1
  60. package/utils/GeometryUtil.js +1 -1
  61. package/utils/LayerUtil.js +1 -1
  62. package/utils/RegisterProjUtil.js +1 -1
  63. package/utils/ResolutionUtil.js +1 -1
  64. package/utils/StringUtil.js +1 -1
  65. package/utils/StyleUtil.js +1 -1
  66. package/utils/UrlUtil.js +1 -1
  67. package/utils/XmlUtil.js +1 -1
  68. package/utils/format/CQL.js +1 -1
  69. package/utils/format/IsMatchCql.js +1 -1
  70. package/utils/plug/canvas/ImageCache.js +1 -1
  71. package/utils/plug/canvas/PinBuilder.js +1 -1
  72. package/utils/plug/canvas/PinIcon.js +1 -1
  73. package/utils/plug/canvas/writeTextToCanvas.js +1 -1
  74. package/utils/tasks/esri/Identify.js +1 -1
  75. package/utils/tasks/esri/Query.js +1 -1
  76. package/utils/tasks/esri/Task.js +1 -1
  77. package/utils/tasks/geoserver/QueryTask.js +1 -1
  78. package/utils/tasks/index.js +1 -1
  79. package/ym-gis-2d.es.js +1 -1
  80. package/ym-gis-2d.umd.js +1 -1
@@ -1 +1 @@
1
- (function(_0x5dc8cd,_0x351cb7){const _0x44fc58=a0_0x1a4f,_0xd91c4e=_0x5dc8cd();while(!![]){try{const _0x5b4dff=-parseInt(_0x44fc58(0x123))/0x1+parseInt(_0x44fc58(0x102))/0x2*(parseInt(_0x44fc58(0x119))/0x3)+parseInt(_0x44fc58(0xe8))/0x4*(parseInt(_0x44fc58(0x108))/0x5)+parseInt(_0x44fc58(0x121))/0x6*(parseInt(_0x44fc58(0xf2))/0x7)+-parseInt(_0x44fc58(0xf7))/0x8+-parseInt(_0x44fc58(0x13a))/0x9*(-parseInt(_0x44fc58(0x126))/0xa)+-parseInt(_0x44fc58(0x13c))/0xb;if(_0x5b4dff===_0x351cb7)break;else _0xd91c4e['push'](_0xd91c4e['shift']());}catch(_0x3854de){_0xd91c4e['push'](_0xd91c4e['shift']());}}}(a0_0x9f5b,0x2f788));function a0_0x1a4f(_0x314e11,_0x23fc38){const _0x9f5b7=a0_0x9f5b();return a0_0x1a4f=function(_0x1a4ffd,_0x381a45){_0x1a4ffd=_0x1a4ffd-0xe8;let _0x36e9b2=_0x9f5b7[_0x1a4ffd];return _0x36e9b2;},a0_0x1a4f(_0x314e11,_0x23fc38);}import{addArgument,appendPath}from'../utils/UrlUtil';import a0_0x3235fd from'../utils/AxiosUtil';import{jsonp}from'../utils/AxiosUtil';import a0_0x5ca421 from'ol/format/WMTSCapabilities';function a0_0x9f5b(){const _0x20dbe9=['3hhfCHg','crs','wmts','tileMatrixs','children','attributes','string','indexOf','411162Bpzfza','DefaultCRS','249287dlpHEu','layers','TileMatrixSet','10CyqJjL','esriFieldTypeDate','BoundingBox','fields','wfs','ows:WGS84BoundingBox','length','wkid','split','xsd:sequence','esriFieldTypeGeometry','style','toString','arcgis-dynamic','service','request','esriFieldTypeString','pjson','wgs84BoundingBox','get','3058083IVwfAi','ScaleDenominator','455213VcuLzn','geoserver-wms','typeName','335740CnSbto','label','json','forEach','alias','layerFields','boundingBoxExtent','Contents','Layer','tileMatrixSet','7pVFPwn','Name','nodeName','GetCapabilities','TileWidth','1309400uEdljX','TileMatrix','EPSG:','Identifier','esriFieldTypeDouble','TopLeftCorner','Capability','esriFieldTypeOID','Title','DescribeFeatureType','extent','313072LdVeob','TileHeight','innerHTML','FeatureTypeList','TileMatrixSetLink','data','5Argxsv','MatrixWidth','initExtent','name','arcgis-feature','value','esriFieldTypeSmallInteger','Style','double','push','decimal','WGS84BoundingBox','format','type','read','MatrixHeight','getElementsByTagName'];a0_0x9f5b=function(){return _0x20dbe9;};return a0_0x9f5b();}import a0_0x397380 from'ol/format/WMSCapabilities';import{readXml}from'../utils/XmlUtil';import{transformedToNumber}from'../utils/StringUtil';export async function getDynamicLayerInfo(_0x419df9){const _0xb9124a=a0_0x1a4f,_0x450d31=addArgument(_0x419df9,'f','json'),_0xd9ba2c=await a0_0x3235fd[_0xb9124a(0x139)](_0x450d31);return _0xd9ba2c[_0xb9124a(0x107)];}export async function getFeatureLayerInfo(_0x20e798,_0x4d31d6){const _0x183009=a0_0x1a4f;let _0x490a8c=addArgument(_0x20e798,'f',_0x183009(0xea));_0x490a8c=appendPath(_0x490a8c,_0x4d31d6);const _0x30af49=await jsonp(_0x490a8c);return _0x30af49['url']=_0x490a8c,_0x30af49;}export async function getWMSLayerCapabilities(_0x20807c,_0x354cdf){const _0x5da8c3=a0_0x1a4f,_0x27d8da=await getWMSCapabilities(_0x20807c);let _0x3f1cca={},_0xd7fa23=_0x27d8da[_0x5da8c3(0xfd)][_0x5da8c3(0xf0)][_0x5da8c3(0xf0)];for(let _0x118b59=0x0;_0x118b59<_0xd7fa23[_0x5da8c3(0x12c)];_0x118b59++){const _0x121f40=_0xd7fa23[_0x118b59];if(_0x121f40['Name']==_0x354cdf){_0x3f1cca['style']=_0x121f40[_0x5da8c3(0x10f)][0x0][_0x5da8c3(0xf3)];for(let _0xbce9f1=0x0;_0xbce9f1<_0x121f40[_0x5da8c3(0x128)][_0x5da8c3(0x12c)];_0xbce9f1++){const _0x43ec30=_0x121f40['BoundingBox'][_0xbce9f1];if(_0x43ec30[_0x5da8c3(0x11a)]['indexOf'](_0x5da8c3(0xf9))>-0x1){_0x3f1cca[_0x5da8c3(0x12d)]=transformedToNumber(_0x43ec30[_0x5da8c3(0x11a)]),_0x3f1cca[_0x5da8c3(0x10a)]=[_0x43ec30[_0x5da8c3(0x101)][0x1],_0x43ec30[_0x5da8c3(0x101)][0x0],_0x43ec30[_0x5da8c3(0x101)][0x3],_0x43ec30['extent'][0x2]];break;}}break;}}return _0x3f1cca;}export async function getWMTSLayerCapabilities(_0x2f888c,_0x475d49){const _0x27a6f3=a0_0x1a4f,_0xdc859a=await getWMTSCapabilities(_0x2f888c);let _0x4a101c={},_0x2c5044=_0xdc859a[_0x27a6f3(0xef)][_0x27a6f3(0xf0)];_0x4a101c['sourceXml']=_0xdc859a;for(let _0x3f880d=0x0;_0x3f880d<_0x2c5044[_0x27a6f3(0x12c)];_0x3f880d++){const _0x29fddd=_0x2c5044[_0x3f880d];if(_0x29fddd[_0x27a6f3(0xfa)]==_0x475d49){_0x4a101c[_0x27a6f3(0x114)]=_0x29fddd['Format'],_0x4a101c[_0x27a6f3(0x131)]=_0x29fddd['Style'][0x0][_0x27a6f3(0xfa)],_0x4a101c[_0x27a6f3(0xf1)]=_0x29fddd[_0x27a6f3(0x106)][0x0]['TileMatrixSet'],_0x4a101c[_0x27a6f3(0x138)]=_0x29fddd[_0x27a6f3(0x113)],_0x4a101c[_0x27a6f3(0xee)]=_0x29fddd[_0x27a6f3(0x128)]&&_0x29fddd['BoundingBox'][_0x27a6f3(0x12c)]>0x0?_0x29fddd[_0x27a6f3(0x128)][0x0][_0x27a6f3(0x101)]:_0x4a101c[_0x27a6f3(0x138)];break;}}if(_0x4a101c['tileMatrixSet'])for(let _0x197d39=0x0;_0x197d39<_0xdc859a['Contents']['TileMatrixSet'][_0x27a6f3(0x12c)];_0x197d39++){const _0x4e7ac1=_0xdc859a[_0x27a6f3(0xef)][_0x27a6f3(0x125)][_0x197d39];if(_0x4e7ac1[_0x27a6f3(0xfa)]==_0x4a101c[_0x27a6f3(0xf1)]){_0x4a101c[_0x27a6f3(0x12d)]=transformedToNumber(_0x4e7ac1['SupportedCRS']),_0x4a101c[_0x27a6f3(0x11c)]=[];for(let _0xc789c2=0x0;_0xc789c2<_0x4e7ac1[_0x27a6f3(0xf8)]['length'];_0xc789c2++){const _0x4e851a=_0x4e7ac1[_0x27a6f3(0xf8)][_0xc789c2];_0x4a101c[_0x27a6f3(0x11c)][_0x27a6f3(0x111)]({'identifier':_0x4e851a[_0x27a6f3(0xfa)],'matrixHeight':_0x4e851a[_0x27a6f3(0x117)],'matrixWidth':_0x4e851a[_0x27a6f3(0x109)],'scaleDenominator':_0x4e851a[_0x27a6f3(0x13b)],'tileHeight':_0x4e851a[_0x27a6f3(0x103)],'tileWidth':_0x4e851a[_0x27a6f3(0xf6)],'topLeftCorner':_0x4e851a[_0x27a6f3(0xfc)]});}break;}}return _0x4a101c;}export async function getWFSLayerCapabilities(_0x277e68,_0x4a9dd4){const _0x2ba116=a0_0x1a4f,_0x12e6f7=await getWFSCapabilities(_0x277e68);let _0x53574f={};const _0x4423ea=await getWmsLayerFields(_0x277e68,_0x4a9dd4);_0x53574f[_0x2ba116(0xed)]=_0x4423ea;let _0x4c0c4d=_0x12e6f7[_0x2ba116(0x118)](_0x2ba116(0x105))[0x0]['children'],_0x59fbbd;for(let _0x1d7a34=0x0,_0x83ecd5=_0x4c0c4d[_0x2ba116(0x12c)];_0x1d7a34<_0x83ecd5;_0x1d7a34++){for(let _0x1ad7ff=0x0,_0xfdc951=_0x4c0c4d[_0x1d7a34][_0x2ba116(0x11d)]['length'];_0x1ad7ff<_0xfdc951;_0x1ad7ff++){if(_0x4c0c4d[_0x1d7a34][_0x2ba116(0x11d)][_0x1ad7ff]['nodeName']===_0x2ba116(0xf3)){const _0x2f550c=_0x4c0c4d[_0x1d7a34][_0x2ba116(0x11d)][_0x1ad7ff][_0x2ba116(0x104)][_0x2ba116(0x132)]();if(_0x2f550c==_0x4a9dd4||_0x2f550c[_0x2ba116(0x120)](':'+_0x4a9dd4)>-0x1){_0x59fbbd=_0x4c0c4d[_0x1d7a34];break;}}}if(_0x59fbbd)break;}let _0x13e27f=[];for(let _0x38fed6=0x0,_0x58c2cc=_0x59fbbd[_0x2ba116(0x11d)][_0x2ba116(0x12c)];_0x38fed6<_0x58c2cc;_0x38fed6++){if(_0x59fbbd[_0x2ba116(0x11d)][_0x38fed6]['nodeName']===_0x2ba116(0x12b)){let _0x55ee2a=_0x59fbbd['children'][_0x38fed6]['children'][0x0][_0x2ba116(0x104)]['split']('\x20'),_0x57be8a=_0x59fbbd[_0x2ba116(0x11d)][_0x38fed6][_0x2ba116(0x11d)][0x1][_0x2ba116(0x104)][_0x2ba116(0x12e)]('\x20');_0x55ee2a&&_0x57be8a&&(_0x13e27f=[_0x55ee2a[0x0]-0x0,_0x55ee2a[0x1]-0x0,_0x57be8a[0x0]-0x0,_0x57be8a[0x1]-0x0]),_0x53574f[_0x2ba116(0x10a)]=_0x13e27f;}else _0x59fbbd[_0x2ba116(0x11d)][_0x38fed6][_0x2ba116(0xf4)]===_0x2ba116(0x122)&&(_0x53574f[_0x2ba116(0x12d)]=transformedToNumber(_0x59fbbd[_0x2ba116(0x11d)][_0x38fed6][_0x2ba116(0x104)]));}return _0x53574f;}export async function getWMSCapabilities(_0x716078){const _0x296476=a0_0x1a4f;let _0x92e1ac=addArgument(_0x716078,'request',_0x296476(0xf5));_0x92e1ac=addArgument(_0x92e1ac,_0x296476(0x134),'wms');const _0x3eec67=await a0_0x3235fd[_0x296476(0x139)](_0x92e1ac);let _0x5c69cd=new a0_0x397380();return _0x5c69cd[_0x296476(0x116)](_0x3eec67[_0x296476(0x107)]);}export async function getWMTSCapabilities(_0x2750e2){const _0x2812d1=a0_0x1a4f;let _0x749fe=addArgument(_0x2750e2,_0x2812d1(0x135),_0x2812d1(0xf5));_0x749fe=addArgument(_0x749fe,_0x2812d1(0x134),_0x2812d1(0x11b));const _0x58c114=await a0_0x3235fd[_0x2812d1(0x139)](_0x749fe);let _0x31e523=new a0_0x5ca421();return _0x31e523[_0x2812d1(0x116)](_0x58c114[_0x2812d1(0x107)]);}export async function getWFSCapabilities(_0x4941ad){const _0x41afcc=a0_0x1a4f;let _0x498923=addArgument(_0x4941ad,'request','GetCapabilities');_0x498923=addArgument(_0x498923,_0x41afcc(0x134),_0x41afcc(0x12a));const _0x22f2cc=await a0_0x3235fd[_0x41afcc(0x139)](_0x498923),_0x3174c1=readXml(_0x22f2cc[_0x41afcc(0x107)]);return _0x3174c1;}export async function getWmsLayerFields(_0x5757fb,_0x54b26b){const _0x146464=a0_0x1a4f;let _0x4f6dc8=addArgument(_0x5757fb,_0x146464(0x135),_0x146464(0x100));_0x4f6dc8=addArgument(_0x4f6dc8,_0x146464(0x134),_0x146464(0x12a)),_0x4f6dc8=addArgument(_0x4f6dc8,_0x146464(0x13e),_0x54b26b);const _0x2c9b96=await a0_0x3235fd['get'](_0x4f6dc8),_0x3bd424=readXml(_0x2c9b96[_0x146464(0x107)]);let _0x5f23ea=[];const _0x53a688=_0x3bd424['getElementsByTagName'](_0x146464(0x12f))[0x0][_0x146464(0x11d)];for(let _0x488fc0=0x0;_0x488fc0<_0x53a688[_0x146464(0x12c)];_0x488fc0++){const _0x4e2b00=_0x53a688[_0x488fc0],_0x46aa42=_0x4e2b00[_0x146464(0x11e)][_0x146464(0x115)][_0x146464(0x10d)];let _0x28cab8=0x1;if(_0x46aa42['indexOf'](_0x146464(0x11f))>-0x1)_0x28cab8=0x1;else{if(_0x46aa42[_0x146464(0x120)]('int')>-0x1||_0x46aa42[_0x146464(0x120)]('short')>-0x1)_0x28cab8=0x2;else{if(_0x46aa42['indexOf'](_0x146464(0x110))>-0x1||_0x46aa42['indexOf'](_0x146464(0x112))>-0x1)_0x28cab8=0x3;else{if(_0x46aa42[_0x146464(0x120)]('date')>-0x1)_0x28cab8=0x4;else _0x46aa42[_0x146464(0x120)]('gml:')>-0x1&&(_0x28cab8=0x6);}}}_0x5f23ea[_0x146464(0x111)]({'name':_0x4e2b00[_0x146464(0x11e)][_0x146464(0x10b)]['value'],'aliasName':_0x4e2b00['attributes'][_0x146464(0x10b)][_0x146464(0x10d)],'fieldType':_0x28cab8,'fieldTypeName':_0x46aa42});}return _0x5f23ea;}export async function getWmtsLayers(_0x38d370){const _0x4db96a=a0_0x1a4f,_0x43ad92=await getWMTSCapabilities(_0x38d370);let _0x5dfbad=[];if(!_0x43ad92||!_0x43ad92[_0x4db96a(0xef)]||!_0x43ad92['Contents'][_0x4db96a(0xf0)])return _0x5dfbad;return _0x43ad92[_0x4db96a(0xef)]['Layer'][_0x4db96a(0xeb)](_0x36ac52=>{const _0x586329=_0x4db96a;_0x5dfbad[_0x586329(0x111)]({'name':_0x36ac52[_0x586329(0xfa)],'label':_0x36ac52['Title']});}),_0x5dfbad;}export async function getWmsLayers(_0x538bc8){const _0x58a39b=a0_0x1a4f,_0x26d149=await getWMSCapabilities(_0x538bc8);let _0x37d00f=[];if(!_0x26d149||!_0x26d149['Capability']||!_0x26d149[_0x58a39b(0xfd)][_0x58a39b(0xf0)]||!_0x26d149[_0x58a39b(0xfd)][_0x58a39b(0xf0)][_0x58a39b(0xf0)])return _0x37d00f;return _0x26d149['Capability'][_0x58a39b(0xf0)][_0x58a39b(0xf0)][_0x58a39b(0xeb)](_0x18d74f=>{const _0x514ab6=_0x58a39b;_0x37d00f[_0x514ab6(0x111)]({'name':_0x18d74f[_0x514ab6(0xf3)],'label':_0x18d74f[_0x514ab6(0xff)]});}),_0x37d00f;}export async function getWfLayers(_0x15e30c){const _0x265d12=a0_0x1a4f,_0x3ea00c=await getWFSCapabilities(_0x15e30c);let _0x50fee2=[],_0x235096=_0x3ea00c[_0x265d12(0x118)](_0x265d12(0x105))[0x0][_0x265d12(0x11d)],_0xab41f8;for(let _0x52a008=0x0,_0x465d52=_0x235096[_0x265d12(0x12c)];_0x52a008<_0x465d52;_0x52a008++){let _0x2fcdd4={'name':'','label':''};for(let _0x2d807c=0x0,_0x53dfe3=_0x235096[_0x52a008][_0x265d12(0x11d)][_0x265d12(0x12c)];_0x2d807c<_0x53dfe3;_0x2d807c++){if(_0x235096[_0x52a008][_0x265d12(0x11d)][_0x2d807c][_0x265d12(0xf4)]===_0x265d12(0xf3)){const _0x3cb576=_0x235096[_0x52a008]['children'][_0x2d807c][_0x265d12(0x104)][_0x265d12(0x132)]();_0x2fcdd4[_0x265d12(0x10b)]=_0x3cb576;}else{if(_0x235096[_0x52a008][_0x265d12(0x11d)][_0x2d807c][_0x265d12(0xf4)]===_0x265d12(0xff)){const _0x247b50=_0x235096[_0x52a008][_0x265d12(0x11d)][_0x2d807c][_0x265d12(0x104)][_0x265d12(0x132)]();_0x2fcdd4['label']=_0x247b50;}}}_0x2fcdd4[_0x265d12(0x10b)]!==''&&_0x2fcdd4[_0x265d12(0xe9)]!==''&&_0x50fee2['push'](_0x2fcdd4);}return _0x50fee2;}export async function getArcgisDynamicLayers(_0x2e0a18){const _0x74f91b=a0_0x1a4f;let _0x36c66f=addArgument(_0x2e0a18,'f',_0x74f91b(0x137));const _0x125bc3=await a0_0x3235fd[_0x74f91b(0x139)](_0x36c66f);let _0x5500f7=[];return _0x125bc3['data'][_0x74f91b(0x124)]['forEach'](_0x609f34=>{const _0x2451ac=_0x74f91b;_0x5500f7[_0x2451ac(0x111)]({'name':_0x609f34['id'][_0x2451ac(0x132)](),'label':_0x609f34[_0x2451ac(0x10b)]});}),_0x5500f7;}export async function getArcgisDynamicLayerFields(_0x16f666,_0x5334d1){const _0x3d3033=a0_0x1a4f;let _0x5777c2=appendPath(_0x16f666,_0x5334d1);_0x5777c2=addArgument(_0x5777c2,'f','pjson');const _0x2f008b=await a0_0x3235fd['get'](_0x5777c2);let _0x3c0699=[];return _0x2f008b['data'][_0x3d3033(0x129)][_0x3d3033(0xeb)](_0x20a5e0=>{const _0x375108=_0x3d3033;let _0x8b42ff=0x1;switch(_0x20a5e0[_0x375108(0x115)]){case _0x375108(0x136):_0x8b42ff=0x1;break;case'esriFieldTypeInteger':case _0x375108(0x10e):case _0x375108(0xfe):_0x8b42ff=0x2;break;case _0x375108(0xfb):_0x8b42ff=0x3;break;case _0x375108(0x127):_0x8b42ff=0x4;break;case _0x375108(0x130):_0x8b42ff=0x6;break;default:_0x8b42ff=0x1;break;}_0x3c0699[_0x375108(0x111)]({'name':_0x20a5e0[_0x375108(0x10b)],'aliasName':_0x20a5e0[_0x375108(0xec)],'fieldType':_0x8b42ff,'fieldTypeName':_0x20a5e0[_0x375108(0x115)],'fieldLength':_0x20a5e0[_0x375108(0x12c)]});}),_0x3c0699;}export async function getSourceLayerFields(_0x20a76d,_0x231ff6,_0x30b2a8){const _0x221387=a0_0x1a4f;let _0x193cd0=[];switch(_0x30b2a8){case _0x221387(0x133):case _0x221387(0x10c):_0x193cd0=await getArcgisDynamicLayerFields(_0x20a76d,_0x231ff6);break;case _0x221387(0x13d):case'geoserver-wfs':_0x193cd0=await getWmsLayerFields(_0x20a76d,_0x231ff6);break;default:break;}return _0x193cd0;}
1
+ (function(_0x179e27,_0xb4f4cc){const _0x2cbb27=a0_0x44e2,_0x47266f=_0x179e27();while(!![]){try{const _0x4f2222=-parseInt(_0x2cbb27(0x210))/0x1*(parseInt(_0x2cbb27(0x214))/0x2)+parseInt(_0x2cbb27(0x215))/0x3*(parseInt(_0x2cbb27(0x1dc))/0x4)+parseInt(_0x2cbb27(0x1cb))/0x5*(-parseInt(_0x2cbb27(0x20e))/0x6)+parseInt(_0x2cbb27(0x1ce))/0x7*(-parseInt(_0x2cbb27(0x1cf))/0x8)+-parseInt(_0x2cbb27(0x21a))/0x9+-parseInt(_0x2cbb27(0x21b))/0xa+parseInt(_0x2cbb27(0x1d9))/0xb*(parseInt(_0x2cbb27(0x1e2))/0xc);if(_0x4f2222===_0xb4f4cc)break;else _0x47266f['push'](_0x47266f['shift']());}catch(_0x5ee0bd){_0x47266f['push'](_0x47266f['shift']());}}}(a0_0x5c91,0x450b0));import{addArgument,appendPath}from'../utils/UrlUtil';import a0_0x1342f5 from'../utils/AxiosUtil';import{jsonp}from'../utils/AxiosUtil';import a0_0xb4ffbd from'ol/format/WMTSCapabilities';import a0_0x150cb7 from'ol/format/WMSCapabilities';import{readXml}from'../utils/XmlUtil';import{transformedToNumber}from'../utils/StringUtil';export async function getDynamicLayerInfo(_0x17c9c6){const _0x259b8d=a0_0x44e2,_0xb72b3c=addArgument(_0x17c9c6,'f','json'),_0x52549e=await a0_0x1342f5[_0x259b8d(0x1d7)](_0xb72b3c);return _0x52549e[_0x259b8d(0x216)];}export async function getFeatureLayerInfo(_0x28023e,_0x1e8b89){const _0xbf0a7=a0_0x44e2;let _0x3689dd=addArgument(_0x28023e,'f',_0xbf0a7(0x1c6));_0x3689dd=appendPath(_0x3689dd,_0x1e8b89);const _0x38bc00=await jsonp(_0x3689dd);return _0x38bc00[_0xbf0a7(0x219)]=_0x3689dd,_0x38bc00;}export async function getWMSLayerCapabilities(_0x21e4d9,_0x4f8758){const _0xe41c8b=a0_0x44e2,_0x1ed813=await getWMSCapabilities(_0x21e4d9);let _0x166cbe={},_0x1d0f6a=_0x1ed813[_0xe41c8b(0x201)][_0xe41c8b(0x1e0)]['Layer'];for(let _0x5eca56=0x0;_0x5eca56<_0x1d0f6a[_0xe41c8b(0x1f6)];_0x5eca56++){const _0x343550=_0x1d0f6a[_0x5eca56];if(_0x343550['Name']==_0x4f8758){_0x166cbe[_0xe41c8b(0x200)]=_0x343550[_0xe41c8b(0x20f)][0x0][_0xe41c8b(0x1ea)];for(let _0x352bd9=0x0;_0x352bd9<_0x343550[_0xe41c8b(0x1c5)][_0xe41c8b(0x1f6)];_0x352bd9++){const _0x2f898e=_0x343550['BoundingBox'][_0x352bd9];if(_0x2f898e[_0xe41c8b(0x1f5)]['indexOf'](_0xe41c8b(0x21d))>-0x1){_0x166cbe[_0xe41c8b(0x1df)]=transformedToNumber(_0x2f898e[_0xe41c8b(0x1f5)]),_0x166cbe[_0xe41c8b(0x1f1)]=[_0x2f898e[_0xe41c8b(0x1dd)][0x1],_0x2f898e[_0xe41c8b(0x1dd)][0x0],_0x2f898e[_0xe41c8b(0x1dd)][0x3],_0x2f898e[_0xe41c8b(0x1dd)][0x2]];break;}}break;}}return _0x166cbe;}function a0_0x5c91(){const _0x39639f=['layerFields','11KIjOoP','nodeName','date','19480YgAWQO','extent','format','wkid','Layer','esriFieldTypeInteger','16155948vGcshd','innerHTML','esriFieldTypeDate','gml:','wfs','fields','TileWidth','esriFieldTypeString','Name','esriFieldTypeSmallInteger','Contents','wms','push','name','SupportedCRS','initExtent','forEach','value','esriFieldTypeDouble','crs','length','GetCapabilities','getElementsByTagName','wmts','toString','TileMatrixSetLink','short','children','MatrixWidth','WGS84BoundingBox','style','Capability','service','FeatureTypeList','TileMatrix','boundingBoxExtent','int','label','type','decimal','tileMatrixs','tileMatrixSet','request','attributes','24YpRoCE','Style','280873BfeQkS','arcgis-dynamic','layers','TileMatrixSet','2LuVVYh','282NsTBvE','data','DescribeFeatureType','geoserver-wfs','url','3199716XoZcBR','470500LYqoQy','TileHeight','EPSG:','double','BoundingBox','json','read','Title','alias','pjson','503735vGNUZz','arcgis-feature','split','3044118Yasksi','8DhZNKP','Identifier','typeName','ows:WGS84BoundingBox','TopLeftCorner','indexOf','esriFieldTypeOID','wgs84BoundingBox','get'];a0_0x5c91=function(){return _0x39639f;};return a0_0x5c91();}export async function getWMTSLayerCapabilities(_0x4c1d3a,_0x384e84){const _0x40bcbd=a0_0x44e2,_0x392179=await getWMTSCapabilities(_0x4c1d3a);let _0x4051b2={},_0x2012dd=_0x392179['Contents'][_0x40bcbd(0x1e0)];_0x4051b2['sourceXml']=_0x392179;for(let _0x4a61b4=0x0;_0x4a61b4<_0x2012dd[_0x40bcbd(0x1f6)];_0x4a61b4++){const _0x1280b7=_0x2012dd[_0x4a61b4];if(_0x1280b7[_0x40bcbd(0x1d0)]==_0x384e84){_0x4051b2[_0x40bcbd(0x1de)]=_0x1280b7['Format'],_0x4051b2['style']=_0x1280b7['Style'][0x0][_0x40bcbd(0x1d0)],_0x4051b2[_0x40bcbd(0x20b)]=_0x1280b7[_0x40bcbd(0x1fb)][0x0][_0x40bcbd(0x213)],_0x4051b2[_0x40bcbd(0x1d6)]=_0x1280b7[_0x40bcbd(0x1ff)],_0x4051b2[_0x40bcbd(0x205)]=_0x1280b7['BoundingBox']&&_0x1280b7[_0x40bcbd(0x1c5)][_0x40bcbd(0x1f6)]>0x0?_0x1280b7[_0x40bcbd(0x1c5)][0x0][_0x40bcbd(0x1dd)]:_0x4051b2[_0x40bcbd(0x1d6)];break;}}if(_0x4051b2[_0x40bcbd(0x20b)])for(let _0x3e480e=0x0;_0x3e480e<_0x392179['Contents'][_0x40bcbd(0x213)][_0x40bcbd(0x1f6)];_0x3e480e++){const _0x5ad1ba=_0x392179[_0x40bcbd(0x1ec)][_0x40bcbd(0x213)][_0x3e480e];if(_0x5ad1ba[_0x40bcbd(0x1d0)]==_0x4051b2[_0x40bcbd(0x20b)]){_0x4051b2[_0x40bcbd(0x1df)]=transformedToNumber(_0x5ad1ba[_0x40bcbd(0x1f0)]),_0x4051b2[_0x40bcbd(0x20a)]=[];for(let _0x1f9e99=0x0;_0x1f9e99<_0x5ad1ba[_0x40bcbd(0x204)][_0x40bcbd(0x1f6)];_0x1f9e99++){const _0x389a39=_0x5ad1ba['TileMatrix'][_0x1f9e99];_0x4051b2[_0x40bcbd(0x20a)][_0x40bcbd(0x1ee)]({'identifier':_0x389a39[_0x40bcbd(0x1d0)],'matrixHeight':_0x389a39['MatrixHeight'],'matrixWidth':_0x389a39[_0x40bcbd(0x1fe)],'scaleDenominator':_0x389a39['ScaleDenominator'],'tileHeight':_0x389a39[_0x40bcbd(0x21c)],'tileWidth':_0x389a39[_0x40bcbd(0x1e8)],'topLeftCorner':_0x389a39[_0x40bcbd(0x1d3)]});}break;}}return _0x4051b2;}export async function getWFSLayerCapabilities(_0x9aea49,_0x581ebd){const _0x3edd8b=a0_0x44e2,_0x5989f2=await getWFSCapabilities(_0x9aea49);let _0xd167f3={};const _0xa8b9ad=await getWmsLayerFields(_0x9aea49,_0x581ebd);_0xd167f3[_0x3edd8b(0x1d8)]=_0xa8b9ad;let _0x30ffec=_0x5989f2['getElementsByTagName'](_0x3edd8b(0x203))[0x0][_0x3edd8b(0x1fd)],_0x28b25a;for(let _0x2a7c26=0x0,_0x1219d1=_0x30ffec['length'];_0x2a7c26<_0x1219d1;_0x2a7c26++){for(let _0x54cca9=0x0,_0x300587=_0x30ffec[_0x2a7c26][_0x3edd8b(0x1fd)][_0x3edd8b(0x1f6)];_0x54cca9<_0x300587;_0x54cca9++){if(_0x30ffec[_0x2a7c26]['children'][_0x54cca9][_0x3edd8b(0x1da)]===_0x3edd8b(0x1ea)){const _0x28eb6f=_0x30ffec[_0x2a7c26][_0x3edd8b(0x1fd)][_0x54cca9][_0x3edd8b(0x1e3)][_0x3edd8b(0x1fa)]();if(_0x28eb6f==_0x581ebd||_0x28eb6f[_0x3edd8b(0x1d4)](':'+_0x581ebd)>-0x1){_0x28b25a=_0x30ffec[_0x2a7c26];break;}}}if(_0x28b25a)break;}let _0x83f735=[];for(let _0x5b6da0=0x0,_0x3ace72=_0x28b25a[_0x3edd8b(0x1fd)]['length'];_0x5b6da0<_0x3ace72;_0x5b6da0++){if(_0x28b25a['children'][_0x5b6da0]['nodeName']===_0x3edd8b(0x1d2)){let _0x5ecaf8=_0x28b25a[_0x3edd8b(0x1fd)][_0x5b6da0][_0x3edd8b(0x1fd)][0x0][_0x3edd8b(0x1e3)]['split']('\x20'),_0x565f4b=_0x28b25a[_0x3edd8b(0x1fd)][_0x5b6da0]['children'][0x1][_0x3edd8b(0x1e3)][_0x3edd8b(0x1cd)]('\x20');_0x5ecaf8&&_0x565f4b&&(_0x83f735=[_0x5ecaf8[0x0]-0x0,_0x5ecaf8[0x1]-0x0,_0x565f4b[0x0]-0x0,_0x565f4b[0x1]-0x0]),_0xd167f3['initExtent']=_0x83f735;}else _0x28b25a[_0x3edd8b(0x1fd)][_0x5b6da0][_0x3edd8b(0x1da)]==='DefaultCRS'&&(_0xd167f3['wkid']=transformedToNumber(_0x28b25a[_0x3edd8b(0x1fd)][_0x5b6da0][_0x3edd8b(0x1e3)]));}return _0xd167f3;}export async function getWMSCapabilities(_0x31a9fb){const _0x8c6d05=a0_0x44e2;let _0x720eba=addArgument(_0x31a9fb,_0x8c6d05(0x20c),_0x8c6d05(0x1f7));_0x720eba=addArgument(_0x720eba,_0x8c6d05(0x202),_0x8c6d05(0x1ed));const _0x10f41e=await a0_0x1342f5['get'](_0x720eba);let _0x4b7dcf=new a0_0x150cb7();return _0x4b7dcf[_0x8c6d05(0x1c7)](_0x10f41e[_0x8c6d05(0x216)]);}export async function getWMTSCapabilities(_0xa0b395){const _0x3c0631=a0_0x44e2;let _0x4d514a=addArgument(_0xa0b395,_0x3c0631(0x20c),_0x3c0631(0x1f7));_0x4d514a=addArgument(_0x4d514a,'service',_0x3c0631(0x1f9));const _0x1ef613=await a0_0x1342f5[_0x3c0631(0x1d7)](_0x4d514a);let _0x57f1dd=new a0_0xb4ffbd();return _0x57f1dd[_0x3c0631(0x1c7)](_0x1ef613[_0x3c0631(0x216)]);}export async function getWFSCapabilities(_0x59bf02){const _0x41cc99=a0_0x44e2;let _0x46d8c1=addArgument(_0x59bf02,'request',_0x41cc99(0x1f7));_0x46d8c1=addArgument(_0x46d8c1,_0x41cc99(0x202),_0x41cc99(0x1e6));const _0x5e80c0=await a0_0x1342f5[_0x41cc99(0x1d7)](_0x46d8c1),_0x2d6d55=readXml(_0x5e80c0[_0x41cc99(0x216)]);return _0x2d6d55;}export async function getWmsLayerFields(_0x2ea717,_0x487620){const _0x37eb43=a0_0x44e2;let _0x380454=addArgument(_0x2ea717,_0x37eb43(0x20c),_0x37eb43(0x217));_0x380454=addArgument(_0x380454,'service','wfs'),_0x380454=addArgument(_0x380454,_0x37eb43(0x1d1),_0x487620);const _0x6b4930=await a0_0x1342f5[_0x37eb43(0x1d7)](_0x380454),_0x466202=readXml(_0x6b4930['data']);let _0x321b68=[];const _0x52e88e=_0x466202[_0x37eb43(0x1f8)]('xsd:sequence')[0x0][_0x37eb43(0x1fd)];for(let _0x2e70fa=0x0;_0x2e70fa<_0x52e88e[_0x37eb43(0x1f6)];_0x2e70fa++){const _0x31b1d8=_0x52e88e[_0x2e70fa],_0x443e83=_0x31b1d8[_0x37eb43(0x20d)][_0x37eb43(0x208)][_0x37eb43(0x1f3)];let _0x2c0c7a=0x1;if(_0x443e83[_0x37eb43(0x1d4)]('string')>-0x1)_0x2c0c7a=0x1;else{if(_0x443e83[_0x37eb43(0x1d4)](_0x37eb43(0x206))>-0x1||_0x443e83[_0x37eb43(0x1d4)](_0x37eb43(0x1fc))>-0x1)_0x2c0c7a=0x2;else{if(_0x443e83['indexOf'](_0x37eb43(0x21e))>-0x1||_0x443e83[_0x37eb43(0x1d4)](_0x37eb43(0x209))>-0x1)_0x2c0c7a=0x3;else{if(_0x443e83[_0x37eb43(0x1d4)](_0x37eb43(0x1db))>-0x1)_0x2c0c7a=0x4;else _0x443e83[_0x37eb43(0x1d4)](_0x37eb43(0x1e5))>-0x1&&(_0x2c0c7a=0x6);}}}_0x321b68[_0x37eb43(0x1ee)]({'name':_0x31b1d8[_0x37eb43(0x20d)][_0x37eb43(0x1ef)][_0x37eb43(0x1f3)],'aliasName':_0x31b1d8[_0x37eb43(0x20d)][_0x37eb43(0x1ef)][_0x37eb43(0x1f3)],'fieldType':_0x2c0c7a,'fieldTypeName':_0x443e83});}return _0x321b68;}export async function getWmtsLayers(_0x37eac6){const _0x4a911e=a0_0x44e2,_0x2a3e13=await getWMTSCapabilities(_0x37eac6);let _0x32f374=[];if(!_0x2a3e13||!_0x2a3e13['Contents']||!_0x2a3e13[_0x4a911e(0x1ec)][_0x4a911e(0x1e0)])return _0x32f374;return _0x2a3e13['Contents'][_0x4a911e(0x1e0)][_0x4a911e(0x1f2)](_0x121b20=>{const _0xfa2a0b=_0x4a911e;_0x32f374[_0xfa2a0b(0x1ee)]({'name':_0x121b20[_0xfa2a0b(0x1d0)],'label':_0x121b20[_0xfa2a0b(0x1c8)]});}),_0x32f374;}export async function getWmsLayers(_0x51ece2){const _0x1bc8e1=a0_0x44e2,_0x4669bb=await getWMSCapabilities(_0x51ece2);let _0x2acbe0=[];if(!_0x4669bb||!_0x4669bb[_0x1bc8e1(0x201)]||!_0x4669bb['Capability'][_0x1bc8e1(0x1e0)]||!_0x4669bb[_0x1bc8e1(0x201)][_0x1bc8e1(0x1e0)][_0x1bc8e1(0x1e0)])return _0x2acbe0;return _0x4669bb[_0x1bc8e1(0x201)][_0x1bc8e1(0x1e0)][_0x1bc8e1(0x1e0)][_0x1bc8e1(0x1f2)](_0x3b2c20=>{const _0x59aca8=_0x1bc8e1;_0x2acbe0[_0x59aca8(0x1ee)]({'name':_0x3b2c20[_0x59aca8(0x1ea)],'label':_0x3b2c20['Title']});}),_0x2acbe0;}export async function getWfLayers(_0x432119){const _0x12fcad=a0_0x44e2,_0x2fe506=await getWFSCapabilities(_0x432119);let _0x53b35d=[],_0x122508=_0x2fe506[_0x12fcad(0x1f8)](_0x12fcad(0x203))[0x0][_0x12fcad(0x1fd)],_0x1c9d8b;for(let _0x3697cc=0x0,_0x5b3f79=_0x122508[_0x12fcad(0x1f6)];_0x3697cc<_0x5b3f79;_0x3697cc++){let _0x41c788={'name':'','label':''};for(let _0x3a71ff=0x0,_0x4e8c31=_0x122508[_0x3697cc][_0x12fcad(0x1fd)][_0x12fcad(0x1f6)];_0x3a71ff<_0x4e8c31;_0x3a71ff++){if(_0x122508[_0x3697cc][_0x12fcad(0x1fd)][_0x3a71ff][_0x12fcad(0x1da)]===_0x12fcad(0x1ea)){const _0x380ba3=_0x122508[_0x3697cc]['children'][_0x3a71ff][_0x12fcad(0x1e3)][_0x12fcad(0x1fa)]();_0x41c788[_0x12fcad(0x1ef)]=_0x380ba3;}else{if(_0x122508[_0x3697cc][_0x12fcad(0x1fd)][_0x3a71ff][_0x12fcad(0x1da)]===_0x12fcad(0x1c8)){const _0x273191=_0x122508[_0x3697cc][_0x12fcad(0x1fd)][_0x3a71ff][_0x12fcad(0x1e3)][_0x12fcad(0x1fa)]();_0x41c788[_0x12fcad(0x207)]=_0x273191;}}}_0x41c788[_0x12fcad(0x1ef)]!==''&&_0x41c788[_0x12fcad(0x207)]!==''&&_0x53b35d[_0x12fcad(0x1ee)](_0x41c788);}return _0x53b35d;}export async function getArcgisDynamicLayers(_0x4bc7f5){const _0x257b3c=a0_0x44e2;let _0x58fc71=addArgument(_0x4bc7f5,'f',_0x257b3c(0x1ca));const _0x5dd12f=await a0_0x1342f5['get'](_0x58fc71);let _0x428f5a=[];return _0x5dd12f[_0x257b3c(0x216)][_0x257b3c(0x212)][_0x257b3c(0x1f2)](_0x2b5ec8=>{const _0xaf21ca=_0x257b3c;_0x428f5a[_0xaf21ca(0x1ee)]({'name':_0x2b5ec8['id'][_0xaf21ca(0x1fa)](),'label':_0x2b5ec8['name']});}),_0x428f5a;}function a0_0x44e2(_0x439275,_0x10726c){const _0x5c912b=a0_0x5c91();return a0_0x44e2=function(_0x44e239,_0xd34beb){_0x44e239=_0x44e239-0x1c5;let _0x55ac3e=_0x5c912b[_0x44e239];return _0x55ac3e;},a0_0x44e2(_0x439275,_0x10726c);}export async function getArcgisDynamicLayerFields(_0x489085,_0x40a711){const _0x35bf9b=a0_0x44e2;let _0x6ba201=appendPath(_0x489085,_0x40a711);_0x6ba201=addArgument(_0x6ba201,'f','pjson');const _0x17dbb9=await a0_0x1342f5[_0x35bf9b(0x1d7)](_0x6ba201);let _0x16a821=[];return _0x17dbb9[_0x35bf9b(0x216)][_0x35bf9b(0x1e7)]['forEach'](_0x534916=>{const _0x219955=_0x35bf9b;let _0x4c305b=0x1;switch(_0x534916[_0x219955(0x208)]){case _0x219955(0x1e9):_0x4c305b=0x1;break;case _0x219955(0x1e1):case _0x219955(0x1eb):case _0x219955(0x1d5):_0x4c305b=0x2;break;case _0x219955(0x1f4):_0x4c305b=0x3;break;case _0x219955(0x1e4):_0x4c305b=0x4;break;case'esriFieldTypeGeometry':_0x4c305b=0x6;break;default:_0x4c305b=0x1;break;}_0x16a821['push']({'name':_0x534916[_0x219955(0x1ef)],'aliasName':_0x534916[_0x219955(0x1c9)],'fieldType':_0x4c305b,'fieldTypeName':_0x534916[_0x219955(0x208)],'fieldLength':_0x534916['length']});}),_0x16a821;}export async function getSourceLayerFields(_0x4cea12,_0x47b73b,_0x3e9dfe){const _0xd2fd8d=a0_0x44e2;let _0x263df2=[];switch(_0x3e9dfe){case _0xd2fd8d(0x211):case _0xd2fd8d(0x1cc):_0x263df2=await getArcgisDynamicLayerFields(_0x4cea12,_0x47b73b);break;case'geoserver-wms':case _0xd2fd8d(0x218):_0x263df2=await getWmsLayerFields(_0x4cea12,_0x47b73b);break;default:break;}return _0x263df2;}
@@ -1 +1 @@
1
- function a1_0x4182(){const _0x3e4807=['removeControl','set','removeAllControls','8851549WXcjRu','1568655bkTmoX','delete','map','1064186WsTBUp','8055680jixuoO','getControl','has','controls','2aDPkez','4062844kxIVCF','7031682VDvPPH','forEach','5AChUNp','get','2594247rpXbBd','addControl','56yHPpcA','name'];a1_0x4182=function(){return _0x3e4807;};return a1_0x4182();}function a1_0x41ac(_0x2603bf,_0x3ae980){const _0x4182c1=a1_0x4182();return a1_0x41ac=function(_0x41ac41,_0x361188){_0x41ac41=_0x41ac41-0xa2;let _0x530357=_0x4182c1[_0x41ac41];return _0x530357;},a1_0x41ac(_0x2603bf,_0x3ae980);}const a1_0xbb1174=a1_0x41ac;(function(_0x18c62c,_0x133239){const _0x427f81=a1_0x41ac,_0x12ecd5=_0x18c62c();while(!![]){try{const _0x4a4956=parseInt(_0x427f81(0xa2))/0x1*(-parseInt(_0x427f81(0xa7))/0x2)+parseInt(_0x427f81(0xad))/0x3+parseInt(_0x427f81(0xa8))/0x4*(-parseInt(_0x427f81(0xab))/0x5)+parseInt(_0x427f81(0xa9))/0x6+-parseInt(_0x427f81(0xb4))/0x7+parseInt(_0x427f81(0xaf))/0x8*(parseInt(_0x427f81(0xb5))/0x9)+parseInt(_0x427f81(0xa3))/0xa;if(_0x4a4956===_0x133239)break;else _0x12ecd5['push'](_0x12ecd5['shift']());}catch(_0x3946af){_0x12ecd5['push'](_0x12ecd5['shift']());}}}(a1_0x4182,0xaf465));export default class ControlManager{constructor(_0x449c6c){const _0x51ee3c=a1_0x41ac;this['map']=_0x449c6c,this[_0x51ee3c(0xa6)]=new Map();}[a1_0xbb1174(0xae)](_0x3ec3ed,_0x1d17e0){const _0x2936c3=a1_0xbb1174;this['controls'][_0x2936c3(0xa5)](_0x3ec3ed)&&this[_0x2936c3(0xb1)](_0x3ec3ed),_0x1d17e0['set'](_0x2936c3(0xb0),_0x3ec3ed),this[_0x2936c3(0xa6)][_0x2936c3(0xb2)](_0x3ec3ed,_0x1d17e0),this['map']['addControl'](_0x1d17e0);}[a1_0xbb1174(0xb1)](_0x53057c){const _0xc37f48=a1_0xbb1174,_0x14e952=this[_0xc37f48(0xa6)][_0xc37f48(0xac)](_0x53057c);_0x14e952&&(this[_0xc37f48(0xb7)][_0xc37f48(0xb1)](_0x14e952),this[_0xc37f48(0xa6)][_0xc37f48(0xb6)](_0x53057c));}[a1_0xbb1174(0xb3)](){const _0x5b3b5d=a1_0xbb1174;this['controls'][_0x5b3b5d(0xaa)](_0x35253c=>{const _0x47c269=_0x5b3b5d;this[_0x47c269(0xb7)]['removeControl'](_0x35253c);}),this['controls']['clear']();}[a1_0xbb1174(0xa4)](_0x1f8a0a){return this['controls']['get'](_0x1f8a0a);}}
1
+ function a1_0x1676(_0x52c28d,_0x398039){const _0x4f9671=a1_0x4f96();return a1_0x1676=function(_0x167642,_0x355e1b){_0x167642=_0x167642-0x1bf;let _0x303c19=_0x4f9671[_0x167642];return _0x303c19;},a1_0x1676(_0x52c28d,_0x398039);}const a1_0x5c5069=a1_0x1676;(function(_0x2be413,_0x1638fc){const _0x445546=a1_0x1676,_0x30dfe1=_0x2be413();while(!![]){try{const _0x355208=-parseInt(_0x445546(0x1cc))/0x1+-parseInt(_0x445546(0x1c2))/0x2+parseInt(_0x445546(0x1d2))/0x3*(parseInt(_0x445546(0x1d1))/0x4)+parseInt(_0x445546(0x1c6))/0x5*(-parseInt(_0x445546(0x1c3))/0x6)+-parseInt(_0x445546(0x1ca))/0x7+-parseInt(_0x445546(0x1c1))/0x8*(parseInt(_0x445546(0x1c0))/0x9)+parseInt(_0x445546(0x1d3))/0xa;if(_0x355208===_0x1638fc)break;else _0x30dfe1['push'](_0x30dfe1['shift']());}catch(_0xb3adee){_0x30dfe1['push'](_0x30dfe1['shift']());}}}(a1_0x4f96,0x46944));export default class ControlManager{constructor(_0xdb03b7){const _0x33f05d=a1_0x1676;this[_0x33f05d(0x1cd)]=_0xdb03b7,this[_0x33f05d(0x1cb)]=new Map();}[a1_0x5c5069(0x1c4)](_0x3c5bde,_0x2ad781){const _0x41fe98=a1_0x5c5069;this[_0x41fe98(0x1cb)][_0x41fe98(0x1ce)](_0x3c5bde)&&this[_0x41fe98(0x1c8)](_0x3c5bde),_0x2ad781[_0x41fe98(0x1c7)](_0x41fe98(0x1bf),_0x3c5bde),this[_0x41fe98(0x1cb)][_0x41fe98(0x1c7)](_0x3c5bde,_0x2ad781),this[_0x41fe98(0x1cd)][_0x41fe98(0x1c4)](_0x2ad781);}[a1_0x5c5069(0x1c8)](_0x489814){const _0x28cd4=a1_0x5c5069,_0x57a2c3=this[_0x28cd4(0x1cb)][_0x28cd4(0x1d0)](_0x489814);_0x57a2c3&&(this[_0x28cd4(0x1cd)][_0x28cd4(0x1c8)](_0x57a2c3),this[_0x28cd4(0x1cb)][_0x28cd4(0x1cf)](_0x489814));}['removeAllControls'](){const _0x19a76b=a1_0x5c5069;this['controls'][_0x19a76b(0x1c5)](_0x3d8b26=>{const _0xec7b63=_0x19a76b;this['map'][_0xec7b63(0x1c8)](_0x3d8b26);}),this['controls']['clear']();}[a1_0x5c5069(0x1c9)](_0xa2fc1d){const _0x4b8d48=a1_0x5c5069;return this[_0x4b8d48(0x1cb)]['get'](_0xa2fc1d);}}function a1_0x4f96(){const _0x12e788=['has','delete','get','155268qrzilZ','21KclImF','17473640xwIICL','name','1543554jyBlGJ','16MLvQiL','1120364xWEHdT','124518QqdbOi','addControl','forEach','100OlaRzH','set','removeControl','getControl','702212YdhBJj','controls','311421kTcIYV','map'];a1_0x4f96=function(){return _0x12e788;};return a1_0x4f96();}
@@ -1 +1 @@
1
- const a3_0x2879ad=a3_0x4afb;(function(_0x26ec91,_0x4df9e5){const _0x518bee=a3_0x4afb,_0xdf3956=_0x26ec91();while(!![]){try{const _0x209415=parseInt(_0x518bee(0x188))/0x1*(-parseInt(_0x518bee(0x1b5))/0x2)+-parseInt(_0x518bee(0x1ab))/0x3*(parseInt(_0x518bee(0x1a8))/0x4)+parseInt(_0x518bee(0x19f))/0x5+-parseInt(_0x518bee(0x18f))/0x6*(parseInt(_0x518bee(0x192))/0x7)+parseInt(_0x518bee(0x1ad))/0x8*(parseInt(_0x518bee(0x198))/0x9)+-parseInt(_0x518bee(0x1b3))/0xa+parseInt(_0x518bee(0x19d))/0xb*(parseInt(_0x518bee(0x1ac))/0xc);if(_0x209415===_0x4df9e5)break;else _0xdf3956['push'](_0xdf3956['shift']());}catch(_0xef116e){_0xdf3956['push'](_0xdf3956['shift']());}}}(a3_0x2509,0xc965c));import{format,wrapX}from'ol/coordinate';import{degreesToStringHDMS}from'../utils/StringUtil';import a3_0x485e8d from'ol/pointer/EventType.js';import{getSpheroidProjection,isSpheroid}from'../utils/RegisterProjUtil';function a3_0x2509(){const _0x15618c=['POINTERMOVE','innerHTML','getCoordinateFromPixelInternal','612lsLbbY','getCoordinateFormat','mapProjection_','projection','set','20911066XZlJRF','handleMouseOut','705145PUekWs','updateHTML_','fractionDigits','div','getViewport','render','push','setProjection','get','2012thFAyG','placeholder','&#160;','1743BSzHoL','12bKLirj','123416shJfJt','handleMouseMove','setCoordinateFormat','getProjection','className','viewState','10476760mdnAEz','X:{x}\x20Y:{y}','202ywGBQK','renderedHTML_','createStringHDMS','handleProjectionChanged_','setMap','showSpheroid','placeholder_','7231IGkufC','toString','getMap','wrapX_','renderOnMouseOut_','createStringXY','listenerKeys','234BZIBzJ','createElement','element','35161JbgCRq','transform_','getView'];a3_0x2509=function(){return _0x15618c;};return a3_0x2509();}import{listen}from'ol/events';import{Control}from'ol/control';function a3_0x4afb(_0x4d9638,_0x3a7978){const _0x2509d2=a3_0x2509();return a3_0x4afb=function(_0x4afb35,_0x55a455){_0x4afb35=_0x4afb35-0x184;let _0x1fef35=_0x2509d2[_0x4afb35];return _0x1fef35;},a3_0x4afb(_0x4d9638,_0x3a7978);}import{getTransformFromProjections,getUserProjection,identityTransform}from'ol/proj';const PROJECTION=a3_0x2879ad(0x19b),COORDINATE_FORMAT='coordinateFormat';export default class MousePositionControl extends Control{constructor(_0x5c63e3){const _0x3f1562=a3_0x2879ad;_0x5c63e3=_0x5c63e3||{};if(!_0x5c63e3[_0x3f1562(0x191)]){const _0x87346d=document[_0x3f1562(0x190)](_0x3f1562(0x1a2));_0x5c63e3[_0x3f1562(0x191)]=_0x87346d;}_0x5c63e3[_0x3f1562(0x191)][_0x3f1562(0x1b1)]=_0x5c63e3[_0x3f1562(0x1b1)]==undefined?'ol-mouse-position':_0x5c63e3['className'],super(_0x5c63e3),this['showSpheroid']=_0x5c63e3[_0x3f1562(0x186)]===undefined?![]:_0x5c63e3[_0x3f1562(0x186)],this['fractionDigits']=_0x5c63e3[_0x3f1562(0x1a1)]===undefined?0x2:_0x5c63e3[_0x3f1562(0x1a1)],this[_0x3f1562(0x18c)]=_0x5c63e3['placeholder']!==undefined,this['placeholder_']=_0x5c63e3[_0x3f1562(0x1a9)]!==undefined?_0x5c63e3['placeholder']:_0x3f1562(0x1aa),this[_0x3f1562(0x1b6)]=_0x5c63e3[_0x3f1562(0x191)][_0x3f1562(0x196)],this[_0x3f1562(0x18b)]=!![];}[a3_0x2879ad(0x184)](){const _0x1810ef=a3_0x2879ad;this[_0x1810ef(0x193)]=undefined;}[a3_0x2879ad(0x199)](){const _0x1e613b=a3_0x2879ad;return this[_0x1e613b(0x1a7)](COORDINATE_FORMAT);}[a3_0x2879ad(0x1af)](_0x36fa63){const _0x48a23a=a3_0x2879ad;this[_0x48a23a(0x19c)](COORDINATE_FORMAT,_0x36fa63);}[a3_0x2879ad(0x1b0)](){return this['get'](PROJECTION);}[a3_0x2879ad(0x1a6)](_0x255c82){const _0x308e41=a3_0x2879ad;this[_0x308e41(0x19c)](PROJECTION,_0x255c82);}['handleMouseMove'](_0x4023b4){const _0x649c79=a3_0x2879ad,_0x2b16ed=this[_0x649c79(0x18a)]();this[_0x649c79(0x1a0)](_0x2b16ed===null||_0x2b16ed===void 0x0?void 0x0:_0x2b16ed['getEventPixel'](_0x4023b4));}[a3_0x2879ad(0x19e)](_0x11b326){const _0xc09e5=a3_0x2879ad;this[_0xc09e5(0x1a0)](null);}[a3_0x2879ad(0x185)](_0x2b5564){const _0x1f8eba=a3_0x2879ad;super['setMap'](_0x2b5564);if(_0x2b5564){const _0x4b4099=isSpheroid(_0x2b5564[_0x1f8eba(0x194)]()['getProjection']());let _0x1feac6=_0x2b5564[_0x1f8eba(0x194)]()[_0x1f8eba(0x1b0)](),_0x28fb9b=this[_0x1f8eba(0x1b7)];if(!_0x4b4099){if(this[_0x1f8eba(0x186)]){const _0x25a479=getSpheroidProjection(_0x2b5564[_0x1f8eba(0x194)]()[_0x1f8eba(0x1b0)]());_0x25a479&&(_0x1feac6=_0x25a479);}else _0x28fb9b=this[_0x1f8eba(0x18d)];}this[_0x1f8eba(0x1a6)](_0x1feac6),this[_0x1f8eba(0x1af)](_0x28fb9b(this['fractionDigits']));const _0x2d6b90=_0x2b5564[_0x1f8eba(0x1a3)]();this[_0x1f8eba(0x18e)]['push'](listen(_0x2d6b90,a3_0x485e8d[_0x1f8eba(0x195)],this[_0x1f8eba(0x1ae)],this)),this['renderOnMouseOut_']&&this['listenerKeys'][_0x1f8eba(0x1a5)](listen(_0x2d6b90,a3_0x485e8d['POINTEROUT'],this[_0x1f8eba(0x19e)],this)),this[_0x1f8eba(0x1a0)](null);}}[a3_0x2879ad(0x1a0)](_0x5f4881){const _0x7cd49a=a3_0x2879ad;let _0x143a43=this[_0x7cd49a(0x187)];const _0x564c04=this['getMap']();if(_0x5f4881&&this[_0x7cd49a(0x19a)]&&_0x564c04){if(!this[_0x7cd49a(0x193)]){const _0xa77e48=this[_0x7cd49a(0x1b0)]();_0xa77e48?this[_0x7cd49a(0x193)]=getTransformFromProjections(this[_0x7cd49a(0x19a)],_0xa77e48):this['transform_']=identityTransform;}const _0x3f8485=_0x564c04[_0x7cd49a(0x197)](_0x5f4881);if(_0x3f8485){const _0x456a3b=getUserProjection();_0x456a3b&&(this[_0x7cd49a(0x193)]=getTransformFromProjections(this[_0x7cd49a(0x19a)],_0x456a3b));this['transform_'](_0x3f8485,_0x3f8485,undefined);if(this[_0x7cd49a(0x18b)]){const _0x7e6c6=_0x456a3b||this[_0x7cd49a(0x1b0)]()||this[_0x7cd49a(0x19a)];wrapX(_0x3f8485,_0x7e6c6);}const _0x4c0f81=this[_0x7cd49a(0x199)]();_0x4c0f81?_0x143a43=_0x4c0f81(_0x3f8485):_0x143a43=_0x3f8485[_0x7cd49a(0x189)]();}}(!this[_0x7cd49a(0x1b6)]||_0x143a43!==this[_0x7cd49a(0x1b6)])&&(this['element'][_0x7cd49a(0x196)]=_0x143a43,this[_0x7cd49a(0x1b6)]=_0x143a43);}[a3_0x2879ad(0x1a4)](_0xfadb8b){const _0x388725=a3_0x2879ad,_0x50b6ce=_0xfadb8b['frameState'];!_0x50b6ce?this['mapProjection_']=undefined:this['mapProjection_']!=_0x50b6ce[_0x388725(0x1b2)]['projection']&&(this[_0x388725(0x19a)]=_0x50b6ce[_0x388725(0x1b2)][_0x388725(0x19b)],this[_0x388725(0x193)]=undefined);}[a3_0x2879ad(0x18d)](_0x47cdc7){return function(_0x19675f){const _0x45d41f=a3_0x4afb;return format(_0x19675f,_0x45d41f(0x1b4),_0x47cdc7);};}['createStringHDMS'](_0x5416d2){return function(_0x268c2a){if(_0x268c2a)return'经度:'+degreesToStringHDMS(_0x268c2a[0x0],_0x5416d2)+'\x20'+'纬度:'+degreesToStringHDMS(_0x268c2a[0x1],_0x5416d2);};}}
1
+ const a3_0x5c35cb=a3_0x7973;(function(_0x48ff25,_0x40d6ce){const _0x309ac7=a3_0x7973,_0x1042cf=_0x48ff25();while(!![]){try{const _0x351f0f=-parseInt(_0x309ac7(0x217))/0x1+-parseInt(_0x309ac7(0x1f8))/0x2*(-parseInt(_0x309ac7(0x21e))/0x3)+-parseInt(_0x309ac7(0x1fb))/0x4+-parseInt(_0x309ac7(0x205))/0x5*(parseInt(_0x309ac7(0x21f))/0x6)+-parseInt(_0x309ac7(0x1f7))/0x7+-parseInt(_0x309ac7(0x1ff))/0x8+parseInt(_0x309ac7(0x21c))/0x9;if(_0x351f0f===_0x40d6ce)break;else _0x1042cf['push'](_0x1042cf['shift']());}catch(_0x47f50d){_0x1042cf['push'](_0x1042cf['shift']());}}}(a3_0x38d3,0x5e656));import{format,wrapX}from'ol/coordinate';import{degreesToStringHDMS}from'../utils/StringUtil';import a3_0x2ef1f5 from'ol/pointer/EventType.js';function a3_0x38d3(){const _0x4cd6f4=['426524eoijoH','mapProjection_','get','53616dFfZNU','&#160;','handleMouseOut','element','2077200Jrduoi','div','createStringXY','setProjection','setMap','getCoordinateFormat','60avVMmx','push','纬度:','placeholder','showSpheroid','listenerKeys','projection','fractionDigits','renderOnMouseOut_','innerHTML','renderedHTML_','className','getCoordinateFromPixelInternal','setCoordinateFormat','POINTERMOVE','render','updateHTML_','getProjection','649434GrvIGY','transform_','handleMouseMove','createStringHDMS','createElement','17933616jvcRQE','set','3YKlxJl','367116KXpwDd','placeholder_','POINTEROUT','getMap','frameState','经度:','wrapX_','viewState','toString','1137640YerWgz'];a3_0x38d3=function(){return _0x4cd6f4;};return a3_0x38d3();}import{getSpheroidProjection,isSpheroid}from'../utils/RegisterProjUtil';import{listen}from'ol/events';import{Control}from'ol/control';function a3_0x7973(_0x32f07d,_0x961f93){const _0x38d389=a3_0x38d3();return a3_0x7973=function(_0x797321,_0x1ab190){_0x797321=_0x797321-0x1f1;let _0x48780f=_0x38d389[_0x797321];return _0x48780f;},a3_0x7973(_0x32f07d,_0x961f93);}import{getTransformFromProjections,getUserProjection,identityTransform}from'ol/proj';const PROJECTION='projection',COORDINATE_FORMAT='coordinateFormat';export default class MousePositionControl extends Control{constructor(_0x48a50f){const _0x17239=a3_0x7973;_0x48a50f=_0x48a50f||{};if(!_0x48a50f[_0x17239(0x1fe)]){const _0x47a14c=document[_0x17239(0x21b)](_0x17239(0x200));_0x48a50f[_0x17239(0x1fe)]=_0x47a14c;}_0x48a50f[_0x17239(0x1fe)][_0x17239(0x210)]=_0x48a50f['className']==undefined?'ol-mouse-position':_0x48a50f[_0x17239(0x210)],super(_0x48a50f),this[_0x17239(0x209)]=_0x48a50f[_0x17239(0x209)]===undefined?![]:_0x48a50f[_0x17239(0x209)],this[_0x17239(0x20c)]=_0x48a50f[_0x17239(0x20c)]===undefined?0x2:_0x48a50f[_0x17239(0x20c)],this['renderOnMouseOut_']=_0x48a50f[_0x17239(0x208)]!==undefined,this['placeholder_']=_0x48a50f[_0x17239(0x208)]!==undefined?_0x48a50f['placeholder']:_0x17239(0x1fc),this[_0x17239(0x20f)]=_0x48a50f[_0x17239(0x1fe)][_0x17239(0x20e)],this['wrapX_']=!![];}['handleProjectionChanged_'](){this['transform_']=undefined;}[a3_0x5c35cb(0x204)](){const _0x26b523=a3_0x5c35cb;return this[_0x26b523(0x1fa)](COORDINATE_FORMAT);}[a3_0x5c35cb(0x212)](_0x451c2f){this['set'](COORDINATE_FORMAT,_0x451c2f);}['getProjection'](){const _0x1af09c=a3_0x5c35cb;return this[_0x1af09c(0x1fa)](PROJECTION);}[a3_0x5c35cb(0x202)](_0xed1d3f){const _0x174cf4=a3_0x5c35cb;this[_0x174cf4(0x21d)](PROJECTION,_0xed1d3f);}[a3_0x5c35cb(0x219)](_0x238dfd){const _0x14ad94=a3_0x5c35cb,_0x46d6ce=this[_0x14ad94(0x1f1)]();this[_0x14ad94(0x215)](_0x46d6ce===null||_0x46d6ce===void 0x0?void 0x0:_0x46d6ce['getEventPixel'](_0x238dfd));}[a3_0x5c35cb(0x1fd)](_0x5a0227){const _0xe08eb1=a3_0x5c35cb;this[_0xe08eb1(0x215)](null);}[a3_0x5c35cb(0x203)](_0x17b1e2){const _0xd90a1c=a3_0x5c35cb;super[_0xd90a1c(0x203)](_0x17b1e2);if(_0x17b1e2){const _0x479092=isSpheroid(_0x17b1e2['getView']()[_0xd90a1c(0x216)]());let _0x6afc57=_0x17b1e2['getView']()[_0xd90a1c(0x216)](),_0xf69e12=this[_0xd90a1c(0x21a)];if(!_0x479092){if(this[_0xd90a1c(0x209)]){const _0x363f81=getSpheroidProjection(_0x17b1e2['getView']()[_0xd90a1c(0x216)]());_0x363f81&&(_0x6afc57=_0x363f81);}else _0xf69e12=this[_0xd90a1c(0x201)];}this[_0xd90a1c(0x202)](_0x6afc57),this[_0xd90a1c(0x212)](_0xf69e12(this[_0xd90a1c(0x20c)]));const _0x469089=_0x17b1e2['getViewport']();this[_0xd90a1c(0x20a)][_0xd90a1c(0x206)](listen(_0x469089,a3_0x2ef1f5[_0xd90a1c(0x213)],this[_0xd90a1c(0x219)],this)),this[_0xd90a1c(0x20d)]&&this[_0xd90a1c(0x20a)][_0xd90a1c(0x206)](listen(_0x469089,a3_0x2ef1f5[_0xd90a1c(0x221)],this[_0xd90a1c(0x1fd)],this)),this[_0xd90a1c(0x215)](null);}}[a3_0x5c35cb(0x215)](_0x6ce67b){const _0x3ee2d4=a3_0x5c35cb;let _0x398107=this[_0x3ee2d4(0x220)];const _0x869b65=this['getMap']();if(_0x6ce67b&&this[_0x3ee2d4(0x1f9)]&&_0x869b65){if(!this[_0x3ee2d4(0x218)]){const _0x46227b=this[_0x3ee2d4(0x216)]();_0x46227b?this[_0x3ee2d4(0x218)]=getTransformFromProjections(this[_0x3ee2d4(0x1f9)],_0x46227b):this[_0x3ee2d4(0x218)]=identityTransform;}const _0x55b26b=_0x869b65[_0x3ee2d4(0x211)](_0x6ce67b);if(_0x55b26b){const _0x4edd71=getUserProjection();_0x4edd71&&(this[_0x3ee2d4(0x218)]=getTransformFromProjections(this[_0x3ee2d4(0x1f9)],_0x4edd71));this[_0x3ee2d4(0x218)](_0x55b26b,_0x55b26b,undefined);if(this[_0x3ee2d4(0x1f4)]){const _0x89b73=_0x4edd71||this[_0x3ee2d4(0x216)]()||this[_0x3ee2d4(0x1f9)];wrapX(_0x55b26b,_0x89b73);}const _0x3d5570=this['getCoordinateFormat']();_0x3d5570?_0x398107=_0x3d5570(_0x55b26b):_0x398107=_0x55b26b[_0x3ee2d4(0x1f6)]();}}(!this[_0x3ee2d4(0x20f)]||_0x398107!==this[_0x3ee2d4(0x20f)])&&(this['element'][_0x3ee2d4(0x20e)]=_0x398107,this[_0x3ee2d4(0x20f)]=_0x398107);}[a3_0x5c35cb(0x214)](_0x2a0cf7){const _0x1ef4c2=a3_0x5c35cb,_0x4f3675=_0x2a0cf7[_0x1ef4c2(0x1f2)];!_0x4f3675?this[_0x1ef4c2(0x1f9)]=undefined:this['mapProjection_']!=_0x4f3675[_0x1ef4c2(0x1f5)][_0x1ef4c2(0x20b)]&&(this[_0x1ef4c2(0x1f9)]=_0x4f3675[_0x1ef4c2(0x1f5)][_0x1ef4c2(0x20b)],this[_0x1ef4c2(0x218)]=undefined);}['createStringXY'](_0x3bf6df){return function(_0x36ea62){return format(_0x36ea62,'X:{x}\x20Y:{y}',_0x3bf6df);};}[a3_0x5c35cb(0x21a)](_0x2e951b){return function(_0x587c7b){const _0x37abf2=a3_0x7973;if(_0x587c7b)return _0x37abf2(0x1f3)+degreesToStringHDMS(_0x587c7b[0x0],_0x2e951b)+'\x20'+_0x37abf2(0x207)+degreesToStringHDMS(_0x587c7b[0x1],_0x2e951b);};}}
@@ -1 +1 @@
1
- const a4_0x201330=a4_0x5982;function a4_0xf87c(){const _0xeed4c=['isVertical','clientY','element','postrender','unsetSwipeLayer','width','cursor','getTargetElement','style','createElement','Left','left','render','className','36LixxRu','2vmNyDw','ol-scroll-layer\x20ol-scroll-layer-vertical','bindEvents','beginPath','clip','dispose','swipeVa','rect','height','Right','swipeLayer','pointermove','value','top','189868ZsDsaP','row-resize','col-resize','pointerdown','context','restore','_dockedVisible','disposeInternal','1480927bLjabM','canvas','setMap','dockedVisible','clientX','2793216zBBGQg','103152vMmthu','4064499YgMrne','1998705SDNlFj','getMap','addEventListener','_swipeLayer','log','1095894YNBjXI','save','ol-scroll-layer','prerender','setSwipeLayer'];a4_0xf87c=function(){return _0xeed4c;};return a4_0xf87c();}(function(_0x2bf7b5,_0xeb0613){const _0x62e0b1=a4_0x5982,_0x1b0601=_0x2bf7b5();while(!![]){try{const _0x4c8d4f=-parseInt(_0x62e0b1(0x195))/0x1*(parseInt(_0x62e0b1(0x1a3))/0x2)+parseInt(_0x62e0b1(0x1b1))/0x3*(parseInt(_0x62e0b1(0x194))/0x4)+-parseInt(_0x62e0b1(0x1b3))/0x5+parseInt(_0x62e0b1(0x181))/0x6+parseInt(_0x62e0b1(0x1ab))/0x7+-parseInt(_0x62e0b1(0x1b0))/0x8+parseInt(_0x62e0b1(0x1b2))/0x9;if(_0x4c8d4f===_0xeb0613)break;else _0x1b0601['push'](_0x1b0601['shift']());}catch(_0x1ce1a0){_0x1b0601['push'](_0x1b0601['shift']());}}}(a4_0xf87c,0x34dc4));function a4_0x5982(_0x189f1b,_0x41efa8){const _0xf87ce5=a4_0xf87c();return a4_0x5982=function(_0x598230,_0x19e8ec){_0x598230=_0x598230-0x180;let _0x1bc46d=_0xf87ce5[_0x598230];return _0x1bc46d;},a4_0x5982(_0x189f1b,_0x41efa8);}import{Control}from'ol/control';export default class SwipeLayerControl extends Control{constructor(_0x47cda5){const _0x27b79b=a4_0x5982;_0x47cda5=_0x47cda5||{};if(!_0x47cda5['element']){const _0x4eab08=document[_0x27b79b(0x18f)]('div');_0x47cda5['element']=_0x4eab08,_0x4eab08['className']=_0x27b79b(0x183),(_0x47cda5['dockedVisible']===_0x27b79b(0x190)||_0x47cda5['dockedVisible']===_0x27b79b(0x19e))&&(_0x4eab08[_0x27b79b(0x193)]=_0x27b79b(0x196));}super(_0x47cda5),this[_0x27b79b(0x19b)]=0x32,this[_0x27b79b(0x186)]=![],this['_swipeLayer']=_0x47cda5[_0x27b79b(0x19f)],this[_0x27b79b(0x1a9)]=_0x47cda5['dockedVisible'],this[_0x27b79b(0x186)]=_0x47cda5[_0x27b79b(0x1ae)]==='Left'||_0x47cda5[_0x27b79b(0x1ae)]===_0x27b79b(0x19e),this[_0x27b79b(0x197)](this[_0x27b79b(0x188)]),this['element'][_0x27b79b(0x1b5)]('input',()=>{const _0x4e0a42=_0x27b79b;var _0x8c2995;const _0x32647f=this[_0x4e0a42(0x188)][_0x4e0a42(0x1a1)];this[_0x4e0a42(0x19b)]=_0x32647f,(_0x8c2995=this[_0x4e0a42(0x1b4)]())===null||_0x8c2995===void 0x0?void 0x0:_0x8c2995['render']();},![]),this[_0x27b79b(0x185)](_0x47cda5[_0x27b79b(0x19f)]);}['setSwipeLayer'](_0xfb0540){const _0x142925=a4_0x5982;this['unsetSwipeLayer'](),_0xfb0540&&(_0xfb0540['on']('prerender',_0x6c0bac=>this[_0x142925(0x184)](_0x6c0bac)),_0xfb0540['on'](_0x142925(0x189),_0x1b0df1=>this[_0x142925(0x189)](_0x1b0df1)),this['_swipeLayer']=_0xfb0540);}[a4_0x201330(0x18a)](){const _0x16394a=a4_0x201330;var _0x22b63e;this[_0x16394a(0x1b6)]&&(this[_0x16394a(0x19b)]=0x64,(_0x22b63e=this[_0x16394a(0x1b4)]())===null||_0x22b63e===void 0x0?void 0x0:_0x22b63e[_0x16394a(0x192)](),this[_0x16394a(0x1b6)]['un'](_0x16394a(0x184),_0x50ee98=>this[_0x16394a(0x184)](_0x50ee98)),this[_0x16394a(0x1b6)]['un'](_0x16394a(0x189),_0x589bfd=>this['postrender'](_0x589bfd)));}['prerender'](_0x3ee24b){const _0x5069e2=a4_0x201330,_0x154837=_0x3ee24b[_0x5069e2(0x1a7)],_0xb62fe=_0x154837===null||_0x154837===void 0x0?void 0x0:_0x154837[_0x5069e2(0x1ac)][_0x5069e2(0x18b)];if(!this['element']||!_0xb62fe||!_0x154837)return;console[_0x5069e2(0x180)](this[_0x5069e2(0x19b)]);const _0x3bbe40=_0xb62fe*this[_0x5069e2(0x19b)]/0x64;_0x154837[_0x5069e2(0x182)](),_0x154837[_0x5069e2(0x198)](),_0x154837[_0x5069e2(0x19c)](0x0,0x0,_0x3bbe40,_0x154837[_0x5069e2(0x1ac)][_0x5069e2(0x19d)]),_0x154837[_0x5069e2(0x199)]();}[a4_0x201330(0x189)](_0x4b5b4b){const _0x4c5a96=a4_0x201330,_0x1ab6cb=_0x4b5b4b[_0x4c5a96(0x1a7)];_0x1ab6cb[_0x4c5a96(0x1a8)]();}[a4_0x201330(0x1ad)](_0x3ea0d4){const _0x27d840=a4_0x201330;!_0x3ea0d4&&this['unsetSwipeLayer'](),super[_0x27d840(0x1ad)](_0x3ea0d4);}[a4_0x201330(0x19a)](){const _0x2ae18e=a4_0x201330;this[_0x2ae18e(0x18a)]();}['disposeInternal'](){const _0x7666ea=a4_0x201330;this[_0x7666ea(0x18a)](),super[_0x7666ea(0x1aa)]();}[a4_0x201330(0x192)](_0x3e29a8){}['bindEvents'](_0x4ee526){const _0x259e70=a4_0x201330;let _0x26abf5=![];_0x4ee526[_0x259e70(0x1b5)](_0x259e70(0x1a6),()=>{const _0x499d40=_0x259e70,_0x573111=this[_0x499d40(0x1b4)]();if(!_0x573111)return;_0x26abf5=!![],_0x573111[_0x499d40(0x18d)]()[_0x499d40(0x18e)]['cursor']=this['isVertical']?_0x499d40(0x1a5):_0x499d40(0x1a4);}),document[_0x259e70(0x1b5)](_0x259e70(0x1a0),_0xc011df=>{const _0x3f54c0=_0x259e70;if(!_0x26abf5)return;const _0x471017=this[_0x3f54c0(0x1b4)]();if(!_0x471017)return;const _0x5267b8=_0x471017[_0x3f54c0(0x18d)]()['getBoundingClientRect'](),_0x191110=_0x471017['getCoordinateFromPixel']([_0xc011df['clientX']-_0x5267b8[_0x3f54c0(0x191)],_0xc011df['clientY']-_0x5267b8[_0x3f54c0(0x1a2)]]);this[_0x3f54c0(0x186)]?(this[_0x3f54c0(0x19b)]=(_0xc011df[_0x3f54c0(0x1af)]-_0x5267b8[_0x3f54c0(0x191)])/_0x5267b8[_0x3f54c0(0x18b)]*0x64,_0x4ee526[_0x3f54c0(0x18e)][_0x3f54c0(0x191)]=this['swipeVa']+'%'):_0x4ee526[_0x3f54c0(0x18e)][_0x3f54c0(0x1a2)]=(_0xc011df[_0x3f54c0(0x187)]-_0x5267b8['top'])/_0x5267b8[_0x3f54c0(0x19d)]*0x64+'%',_0x471017[_0x3f54c0(0x192)]();}),document[_0x259e70(0x1b5)]('pointerup',()=>{const _0x24d67a=_0x259e70;_0x26abf5=![];const _0x6d90e0=this[_0x24d67a(0x1b4)]();if(!_0x6d90e0)return;_0x6d90e0[_0x24d67a(0x18d)]()['style'][_0x24d67a(0x18c)]='';});}}
1
+ const a4_0x351793=a4_0x4aff;function a4_0x4aff(_0x56a0cd,_0x273402){const _0x3459be=a4_0x3459();return a4_0x4aff=function(_0x4aff14,_0x491e0c){_0x4aff14=_0x4aff14-0xa8;let _0x2b394d=_0x3459be[_0x4aff14];return _0x2b394d;},a4_0x4aff(_0x56a0cd,_0x273402);}(function(_0x44773e,_0x4855ba){const _0x3600d7=a4_0x4aff,_0x4a7b6f=_0x44773e();while(!![]){try{const _0x26f8b6=-parseInt(_0x3600d7(0xd8))/0x1+parseInt(_0x3600d7(0xd5))/0x2*(parseInt(_0x3600d7(0xc7))/0x3)+parseInt(_0x3600d7(0xb0))/0x4+-parseInt(_0x3600d7(0xaa))/0x5+-parseInt(_0x3600d7(0xac))/0x6+parseInt(_0x3600d7(0xd1))/0x7+parseInt(_0x3600d7(0xad))/0x8;if(_0x26f8b6===_0x4855ba)break;else _0x4a7b6f['push'](_0x4a7b6f['shift']());}catch(_0x5eb1b1){_0x4a7b6f['push'](_0x4a7b6f['shift']());}}}(a4_0x3459,0xc0ab0));import{Control}from'ol/control';export default class SwipeLayerControl extends Control{constructor(_0x5b910b){const _0x4f469c=a4_0x4aff;_0x5b910b=_0x5b910b||{};if(!_0x5b910b[_0x4f469c(0xda)]){const _0x1e0d8e=document['createElement'](_0x4f469c(0xd9));_0x5b910b[_0x4f469c(0xda)]=_0x1e0d8e,_0x1e0d8e[_0x4f469c(0xae)]='ol-scroll-layer',(_0x5b910b[_0x4f469c(0xb5)]===_0x4f469c(0xdb)||_0x5b910b['dockedVisible']==='Right')&&(_0x1e0d8e[_0x4f469c(0xae)]=_0x4f469c(0xd2));}super(_0x5b910b),this[_0x4f469c(0xbb)]=0x32,this[_0x4f469c(0xb9)]=![],this[_0x4f469c(0xd3)]=_0x5b910b[_0x4f469c(0xcb)],this[_0x4f469c(0xab)]=_0x5b910b[_0x4f469c(0xb5)],this['isVertical']=_0x5b910b[_0x4f469c(0xb5)]===_0x4f469c(0xdb)||_0x5b910b[_0x4f469c(0xb5)]==='Right',this[_0x4f469c(0xc5)](this[_0x4f469c(0xda)]),this[_0x4f469c(0xda)]['addEventListener'](_0x4f469c(0xc9),()=>{const _0x22dbb6=_0x4f469c;var _0x7cbfe6;const _0xcbcc16=this[_0x22dbb6(0xda)][_0x22dbb6(0xbe)];this['swipeVa']=_0xcbcc16,(_0x7cbfe6=this[_0x22dbb6(0xb4)]())===null||_0x7cbfe6===void 0x0?void 0x0:_0x7cbfe6['render']();},![]),this[_0x4f469c(0xce)](_0x5b910b['swipeLayer']);}[a4_0x351793(0xce)](_0x2bf2d9){const _0x1a8987=a4_0x351793;this[_0x1a8987(0xa8)](),_0x2bf2d9&&(_0x2bf2d9['on']('prerender',_0x2c72ae=>this[_0x1a8987(0xbf)](_0x2c72ae)),_0x2bf2d9['on'](_0x1a8987(0xcd),_0x45ec41=>this[_0x1a8987(0xcd)](_0x45ec41)),this[_0x1a8987(0xd3)]=_0x2bf2d9);}['unsetSwipeLayer'](){const _0x1ab90e=a4_0x351793;var _0xa1eb1c;this[_0x1ab90e(0xd3)]&&(this[_0x1ab90e(0xbb)]=0x64,(_0xa1eb1c=this[_0x1ab90e(0xb4)]())===null||_0xa1eb1c===void 0x0?void 0x0:_0xa1eb1c[_0x1ab90e(0xb2)](),this[_0x1ab90e(0xd3)]['un'](_0x1ab90e(0xbf),_0x49b1d2=>this['prerender'](_0x49b1d2)),this[_0x1ab90e(0xd3)]['un'](_0x1ab90e(0xcd),_0x3970a4=>this['postrender'](_0x3970a4)));}['prerender'](_0x2de36b){const _0x28dda1=a4_0x351793,_0x1254c1=_0x2de36b['context'],_0x2b6df0=_0x1254c1===null||_0x1254c1===void 0x0?void 0x0:_0x1254c1[_0x28dda1(0xc2)][_0x28dda1(0xaf)];if(!this[_0x28dda1(0xda)]||!_0x2b6df0||!_0x1254c1)return;console[_0x28dda1(0xc4)](this[_0x28dda1(0xbb)]);const _0x44e141=_0x2b6df0*this[_0x28dda1(0xbb)]/0x64;_0x1254c1[_0x28dda1(0xca)](),_0x1254c1[_0x28dda1(0xc8)](),_0x1254c1['rect'](0x0,0x0,_0x44e141,_0x1254c1['canvas'][_0x28dda1(0xc0)]),_0x1254c1[_0x28dda1(0xcf)]();}[a4_0x351793(0xcd)](_0x227244){const _0x40600b=a4_0x351793,_0x2ff418=_0x227244['context'];_0x2ff418[_0x40600b(0xd7)]();}[a4_0x351793(0xb7)](_0x5fa979){const _0x413311=a4_0x351793;!_0x5fa979&&this[_0x413311(0xa8)](),super['setMap'](_0x5fa979);}[a4_0x351793(0xb6)](){this['unsetSwipeLayer']();}['disposeInternal'](){const _0x1761f6=a4_0x351793;this[_0x1761f6(0xa8)](),super[_0x1761f6(0xa9)]();}[a4_0x351793(0xb2)](_0x570486){}[a4_0x351793(0xc5)](_0x3f4dc4){const _0x3c6749=a4_0x351793;let _0x11e97e=![];_0x3f4dc4[_0x3c6749(0xdc)](_0x3c6749(0xb8),()=>{const _0x25086b=_0x3c6749,_0x56ae72=this[_0x25086b(0xb4)]();if(!_0x56ae72)return;_0x11e97e=!![],_0x56ae72[_0x25086b(0xc3)]()[_0x25086b(0xbd)][_0x25086b(0xbc)]=this[_0x25086b(0xb9)]?_0x25086b(0xcc):_0x25086b(0xc6);}),document['addEventListener']('pointermove',_0x428528=>{const _0x12c264=_0x3c6749;if(!_0x11e97e)return;const _0x21fb71=this[_0x12c264(0xb4)]();if(!_0x21fb71)return;const _0x31410f=_0x21fb71['getTargetElement']()[_0x12c264(0xba)](),_0x47cdad=_0x21fb71[_0x12c264(0xb1)]([_0x428528[_0x12c264(0xd4)]-_0x31410f[_0x12c264(0xc1)],_0x428528[_0x12c264(0xd6)]-_0x31410f[_0x12c264(0xd0)]]);this[_0x12c264(0xb9)]?(this['swipeVa']=(_0x428528[_0x12c264(0xd4)]-_0x31410f[_0x12c264(0xc1)])/_0x31410f[_0x12c264(0xaf)]*0x64,_0x3f4dc4[_0x12c264(0xbd)]['left']=this[_0x12c264(0xbb)]+'%'):_0x3f4dc4[_0x12c264(0xbd)]['top']=(_0x428528[_0x12c264(0xd6)]-_0x31410f[_0x12c264(0xd0)])/_0x31410f[_0x12c264(0xc0)]*0x64+'%',_0x21fb71[_0x12c264(0xb2)]();}),document[_0x3c6749(0xdc)](_0x3c6749(0xb3),()=>{const _0x2c6f42=_0x3c6749;_0x11e97e=![];const _0x2b0487=this[_0x2c6f42(0xb4)]();if(!_0x2b0487)return;_0x2b0487['getTargetElement']()['style']['cursor']='';});}}function a4_0x3459(){const _0x41240e=['canvas','getTargetElement','log','bindEvents','row-resize','6DMoneK','beginPath','input','save','swipeLayer','col-resize','postrender','setSwipeLayer','clip','top','7455399aGoCBc','ol-scroll-layer\x20ol-scroll-layer-vertical','_swipeLayer','clientX','26974jUpnVe','clientY','restore','1520541KLFRyZ','div','element','Left','addEventListener','unsetSwipeLayer','disposeInternal','1445690FBUeJD','_dockedVisible','2037816aFtVFz','9451448JpAcJH','className','width','2660084yeJKzb','getCoordinateFromPixel','render','pointerup','getMap','dockedVisible','dispose','setMap','pointerdown','isVertical','getBoundingClientRect','swipeVa','cursor','style','value','prerender','height','left'];a4_0x3459=function(){return _0x41240e;};return a4_0x3459();}
@@ -1 +1 @@
1
- const a5_0x3ae339=a5_0x49e5;(function(_0x5eaed6,_0x13e9b4){const _0x63427b=a5_0x49e5,_0x575795=_0x5eaed6();while(!![]){try{const _0x59c908=-parseInt(_0x63427b(0xf6))/0x1*(-parseInt(_0x63427b(0x125))/0x2)+-parseInt(_0x63427b(0x11b))/0x3+-parseInt(_0x63427b(0x10a))/0x4*(parseInt(_0x63427b(0x11a))/0x5)+-parseInt(_0x63427b(0x12a))/0x6+-parseInt(_0x63427b(0x136))/0x7+-parseInt(_0x63427b(0x130))/0x8*(parseInt(_0x63427b(0x134))/0x9)+parseInt(_0x63427b(0xf8))/0xa;if(_0x59c908===_0x13e9b4)break;else _0x575795['push'](_0x575795['shift']());}catch(_0x17c6a8){_0x575795['push'](_0x575795['shift']());}}}(a5_0x4bbb,0x4c2b5));function a5_0x4bbb(){const _0x5ed710=['([&\x22<>\x27])','Placemark','indexOf','LineString','name','geometry','1996sZndgT','hotSpot','kml','value','call','2012568OmZutM','stroke','stringify','stroke-opacity','timestamp','ff555555','191896jTKfYz','MultiPoint','replace','marker-size','189cUPqUY','xunits','3461108aKbPha','xmlns','geometries','LineStyle','Polygon','fill-opacity','color','Feature','substr','fill','&quot;','marker-symbol','prototype','&gt;','innerBoundaryIs','ExtendedData','features','keys','type','\x22><value>','valid','278yVkqVD','styleUrl','16011280tDcVMw','Data','http://www.opengis.net/kml/2.2','fraction','LinearRing','properties','length','any','string','FeatureCollection','description','join','number','marker-color','</value></Data>','Document','IconStyle','<Data\x20name\x20=\x22','4mVTBKL','outerBoundaryIs','&lt;','TimeStamp','isPolygon','stroke-width','MultiPolygon','coordinates','PolyStyle','documentName','push','href','Point','&amp;','Style','map','519515abenbr','387243DeEZDo','MultiGeometry','toString','Icon'];a5_0x4bbb=function(){return _0x5ed710;};return a5_0x4bbb();}export function geoJSONToKml(_0x3c35f1,_0x6b5dbd){const _0x1a3fa1=a5_0x49e5;return _0x6b5dbd=_0x6b5dbd||{'documentName':undefined,'documentDescription':undefined,'name':_0x1a3fa1(0x123),'description':_0x1a3fa1(0x102),'simplestyle':![],'timestamp':'timestamp'},'<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>'+tag(_0x1a3fa1(0x127),tag(_0x1a3fa1(0x107),documentName(_0x6b5dbd)+documentDescription(_0x6b5dbd)+root(_0x3c35f1,_0x6b5dbd)),[[_0x1a3fa1(0x137),_0x1a3fa1(0xfa)]]);}function feature(_0x5ed660,_0xbd18de){return function(_0x5194b4){const _0x34b307=a5_0x49e5;if(!_0x5194b4[_0x34b307(0xfd)]||!geometry[_0x34b307(0xf5)](_0x5194b4[_0x34b307(0x124)]))return'';const _0x379257=geometry[_0x34b307(0xff)](_0x5194b4[_0x34b307(0x124)]);if(!_0x379257)return'';let _0x5b5376='',_0xdde315='';if(_0x5ed660['simplestyle']){const _0x3ab871=hashStyle(_0x5194b4['properties']);if(_0x3ab871){if(geometry['isPoint'](_0x5194b4[_0x34b307(0x124)])&&hasMarkerStyle(_0x5194b4['properties']))_0xbd18de[_0x34b307(0x121)](_0x3ab871)===-0x1&&(_0x5b5376=markerStyle(_0x5194b4[_0x34b307(0xfd)],_0x3ab871),_0xbd18de[_0x34b307(0x114)](_0x3ab871)),_0xdde315=tag(_0x34b307(0xf7),'#'+_0x3ab871);else(geometry[_0x34b307(0x10e)](_0x5194b4['geometry'])||geometry['isLine'](_0x5194b4[_0x34b307(0x124)]))&&hasPolygonAndLineStyle(_0x5194b4[_0x34b307(0xfd)])&&(_0xbd18de[_0x34b307(0x121)](_0x3ab871)===-0x1&&(_0x5b5376=polygonAndLineStyle(_0x5194b4['properties'],_0x3ab871),_0xbd18de[_0x34b307(0x114)](_0x3ab871)),_0xdde315=tag('styleUrl','#'+_0x3ab871));}}return _0x5b5376+tag(_0x34b307(0x120),name(_0x5194b4[_0x34b307(0xfd)],_0x5ed660)+description(_0x5194b4[_0x34b307(0xfd)],_0x5ed660)+extendeddata(_0x5194b4[_0x34b307(0xfd)])+timestamp(_0x5194b4['properties'],_0x5ed660)+_0x379257+_0xdde315);};}function root(_0x2ae05f,_0x48a1dd){const _0x2b4dfa=a5_0x49e5;if(!_0x2ae05f[_0x2b4dfa(0xf3)])return'';const _0xd9acfb=[];switch(_0x2ae05f[_0x2b4dfa(0xf3)]){case _0x2b4dfa(0x101):if(!_0x2ae05f[_0x2b4dfa(0xf1)])return'';return _0x2ae05f[_0x2b4dfa(0xf1)][_0x2b4dfa(0x119)](feature(_0x48a1dd,_0xd9acfb))[_0x2b4dfa(0x103)]('');case'Feature':return feature(_0x48a1dd,_0xd9acfb)(_0x2ae05f);default:return feature(_0x48a1dd,_0xd9acfb)({'type':_0x2b4dfa(0xe8),'geometry':_0x2ae05f,'properties':{}});}}function documentName(_0x39e798){const _0x1448e5=a5_0x49e5;return _0x39e798[_0x1448e5(0x113)]!==undefined?tag(_0x1448e5(0x123),_0x39e798[_0x1448e5(0x113)]):'';}function a5_0x49e5(_0x20ba10,_0x4a733e){const _0x4bbbde=a5_0x4bbb();return a5_0x49e5=function(_0x49e5d4,_0x53970f){_0x49e5d4=_0x49e5d4-0xe3;let _0x1e2a4c=_0x4bbbde[_0x49e5d4];return _0x1e2a4c;},a5_0x49e5(_0x20ba10,_0x4a733e);}function documentDescription(_0x3fcdeb){const _0x55270a=a5_0x49e5;return _0x3fcdeb['documentDescription']!==undefined?tag(_0x55270a(0x102),_0x3fcdeb['documentDescription']):'';}function name(_0xc07ebc,_0x386c88){const _0x794585=a5_0x49e5;return _0xc07ebc[_0x386c88[_0x794585(0x123)]]?tag(_0x794585(0x123),encode(_0xc07ebc[_0x386c88[_0x794585(0x123)]])):'';}function description(_0x3e4cf8,_0x410cfb){const _0x23b2d3=a5_0x49e5;return _0x3e4cf8[_0x410cfb['description']]?tag('description',encode(_0x3e4cf8[_0x410cfb[_0x23b2d3(0x102)]])):'';}function timestamp(_0x5c08de,_0x1a00b9){const _0x5c617e=a5_0x49e5;return _0x5c08de[_0x1a00b9['timestamp']]?tag(_0x5c617e(0x10d),tag('when',encode(_0x5c08de[_0x1a00b9[_0x5c617e(0x12e)]]))):'';}const geometry={'Point':function(_0x3611fc){const _0x423e22=a5_0x49e5;return tag(_0x423e22(0x116),tag(_0x423e22(0x111),_0x3611fc[_0x423e22(0x111)][_0x423e22(0x103)](',')));},'LineString':function(_0x16139f){const _0x495f5c=a5_0x49e5;return tag(_0x495f5c(0x122),tag(_0x495f5c(0x111),linearring(_0x16139f['coordinates'])));},'Polygon':function(_0x17cf1b){const _0x2955f6=a5_0x49e5;if(!_0x17cf1b[_0x2955f6(0x111)][_0x2955f6(0xfe)])return'';const _0x5f4b50=_0x17cf1b[_0x2955f6(0x111)][0x0],_0x311ed2=_0x17cf1b[_0x2955f6(0x111)]['slice'](0x1),_0x4e08f3=tag(_0x2955f6(0x10b),tag(_0x2955f6(0xfc),tag(_0x2955f6(0x111),linearring(_0x5f4b50)))),_0x7b8a8f=_0x311ed2[_0x2955f6(0x119)](function(_0x471c4d){const _0x2ce6be=_0x2955f6;return tag(_0x2ce6be(0xef),tag(_0x2ce6be(0xfc),tag(_0x2ce6be(0x111),linearring(_0x471c4d))));})['join']('');return tag('Polygon',_0x4e08f3+_0x7b8a8f);},'MultiPoint':function(_0x1406f4){const _0xa827ef=a5_0x49e5;if(!_0x1406f4['coordinates'][_0xa827ef(0xfe)])return'';return tag(_0xa827ef(0x11c),_0x1406f4[_0xa827ef(0x111)]['map'](function(_0x80bf10){const _0x38eadf=_0xa827ef;return geometry[_0x38eadf(0x116)]({'coordinates':_0x80bf10});})[_0xa827ef(0x103)](''));},'MultiPolygon':function(_0x397302){const _0x494e3a=a5_0x49e5;if(!_0x397302[_0x494e3a(0x111)][_0x494e3a(0xfe)])return'';return tag(_0x494e3a(0x11c),_0x397302[_0x494e3a(0x111)][_0x494e3a(0x119)](function(_0x28e15f){const _0x2c0276=_0x494e3a;return geometry[_0x2c0276(0xe5)]({'coordinates':_0x28e15f});})['join'](''));},'MultiLineString':function(_0x313338){const _0x3c2ccb=a5_0x49e5;if(!_0x313338[_0x3c2ccb(0x111)][_0x3c2ccb(0xfe)])return'';return tag(_0x3c2ccb(0x11c),_0x313338[_0x3c2ccb(0x111)][_0x3c2ccb(0x119)](function(_0x161978){return geometry['LineString']({'coordinates':_0x161978});})[_0x3c2ccb(0x103)](''));},'GeometryCollection':function(_0x44999d){const _0x130eeb=a5_0x49e5;return tag(_0x130eeb(0x11c),_0x44999d[_0x130eeb(0xe3)][_0x130eeb(0x119)](geometry['any'])['join'](''));},'valid':function(_0x57073f){const _0x3273d2=a5_0x49e5;return _0x57073f&&_0x57073f['type']&&(_0x57073f[_0x3273d2(0x111)]||_0x57073f[_0x3273d2(0xf3)]==='GeometryCollection'&&_0x57073f[_0x3273d2(0xe3)]&&_0x57073f[_0x3273d2(0xe3)]['every'](geometry['valid']));},'any':function(_0x133b30){const _0x5ec36f=a5_0x49e5;return geometry[_0x133b30[_0x5ec36f(0xf3)]]?geometry[_0x133b30[_0x5ec36f(0xf3)]](_0x133b30):'';},'isPoint':function(_0x16a038){const _0x1a73c0=a5_0x49e5;return _0x16a038['type']===_0x1a73c0(0x116)||_0x16a038[_0x1a73c0(0xf3)]===_0x1a73c0(0x131);},'isPolygon':function(_0x58c1fb){const _0x415426=a5_0x49e5;return _0x58c1fb[_0x415426(0xf3)]===_0x415426(0xe5)||_0x58c1fb[_0x415426(0xf3)]===_0x415426(0x110);},'isLine':function(_0x129e2e){const _0x3e778a=a5_0x49e5;return _0x129e2e[_0x3e778a(0xf3)]===_0x3e778a(0x122)||_0x129e2e[_0x3e778a(0xf3)]==='MultiLineString';}};function linearring(_0x285edb){const _0x3367cd=a5_0x49e5;return _0x285edb['map'](function(_0x25e238){return _0x25e238['join'](',');})[_0x3367cd(0x103)]('\x20');}function extendeddata(_0x246b3f){const _0x4416fb=a5_0x49e5,_0x384e3b=[];for(const _0x2e93d7 in _0x246b3f){const _0x357dd2=_0x246b3f[_0x2e93d7];isObject(_0x357dd2)?_0x384e3b[_0x4416fb(0x114)](_0x4416fb(0x109)+_0x2e93d7+'\x22><value>'+JSON[_0x4416fb(0x12c)](_0x357dd2)+_0x4416fb(0x106)):_0x384e3b[_0x4416fb(0x114)]('<Data\x20name\x20=\x22'+_0x2e93d7+_0x4416fb(0xf4)+_0x357dd2+'</value></Data>');}return tag(_0x4416fb(0xf0),_0x384e3b['join'](''));}function data(_0x528e2f){const _0x2abdcf=a5_0x49e5;return tag(_0x2abdcf(0xf9),tag(_0x2abdcf(0x128),encode(_0x528e2f[0x1])),[[_0x2abdcf(0x123),encode(_0x528e2f[0x0])]]);}function hasMarkerStyle(_0x4b985c){const _0x2b16ff=a5_0x49e5;return!!(_0x4b985c[_0x2b16ff(0x133)]||_0x4b985c[_0x2b16ff(0xec)]||_0x4b985c['marker-color']);}function markerStyle(_0xff603a,_0x5947e8){const _0x51eade=a5_0x49e5;return tag(_0x51eade(0x118),tag(_0x51eade(0x108),tag(_0x51eade(0x11e),tag(_0x51eade(0x115),iconUrl(_0xff603a))))+iconSize(_0xff603a),[['id',_0x5947e8]]);}function iconUrl(_0x483490){const _0x1f1dfd=a5_0x49e5;return _0x483490[_0x1f1dfd(0xec)];}function iconSize(_0x581b79){const _0x1457b1=a5_0x49e5;return tag(_0x1457b1(0x126),'',[[_0x1457b1(0x135),_0x1457b1(0xfb)],['yunits',_0x1457b1(0xfb)],['x',0.5],['y',0.5]]);}function hasPolygonAndLineStyle(_0x45285a){for(const _0x32aad2 in _0x45285a){if({'stroke':!![],'stroke-opacity':!![],'stroke-width':!![],'fill':!![],'fill-opacity':!![]}[_0x32aad2])return!![];}}function polygonAndLineStyle(_0xd77b79,_0x304dae){const _0x283556=a5_0x49e5,_0x3d3ace=tag(_0x283556(0xe4),[tag(_0x283556(0xe7),hexToKmlColor(_0xd77b79['stroke'],_0xd77b79['stroke-opacity'])||_0x283556(0x12f))+tag('width',_0xd77b79[_0x283556(0x10f)]===undefined?0x2:_0xd77b79[_0x283556(0x10f)])]);let _0x391b1c='';return(_0xd77b79['fill']||_0xd77b79[_0x283556(0xe6)])&&(_0x391b1c=tag(_0x283556(0x112),[tag(_0x283556(0xe7),hexToKmlColor(_0xd77b79[_0x283556(0xea)],_0xd77b79[_0x283556(0xe6)])||'88555555')])),tag(_0x283556(0x118),_0x3d3ace+_0x391b1c,[['id',_0x304dae]]);}function hashStyle(_0x4f0a37){const _0x239437=a5_0x49e5;let _0x3953a5='';return _0x4f0a37[_0x239437(0xec)]&&(_0x3953a5=_0x3953a5+'ms'+_0x4f0a37[_0x239437(0xec)]),_0x4f0a37[_0x239437(0x105)]&&(_0x3953a5=_0x3953a5+'mc'+_0x4f0a37[_0x239437(0x105)][_0x239437(0x132)]('#','')),_0x4f0a37['marker-size']&&(_0x3953a5=_0x3953a5+'ms'+_0x4f0a37[_0x239437(0x133)]),_0x4f0a37[_0x239437(0x12b)]&&(_0x3953a5=_0x3953a5+'s'+_0x4f0a37[_0x239437(0x12b)]['replace']('#','')),_0x4f0a37['stroke-width']&&(_0x3953a5=_0x3953a5+'sw'+_0x4f0a37[_0x239437(0x10f)][_0x239437(0x11d)]()[_0x239437(0x132)]('.','')),_0x4f0a37[_0x239437(0x12d)]&&(_0x3953a5=_0x3953a5+'mo'+_0x4f0a37[_0x239437(0x12d)][_0x239437(0x11d)]()[_0x239437(0x132)]('.','')),_0x4f0a37[_0x239437(0xea)]&&(_0x3953a5=_0x3953a5+'f'+_0x4f0a37['fill'][_0x239437(0x132)]('#','')),_0x4f0a37[_0x239437(0xe6)]&&(_0x3953a5=_0x3953a5+'fo'+_0x4f0a37[_0x239437(0xe6)][_0x239437(0x11d)]()[_0x239437(0x132)]('.','')),_0x3953a5;}function hexToKmlColor(_0x1fbc05,_0x1b4a9a){const _0x38a492=a5_0x49e5;if(typeof _0x1fbc05!==_0x38a492(0x100))return'';_0x1fbc05=_0x1fbc05['replace']('#','')['toLowerCase']();if(_0x1fbc05['length']===0x3)_0x1fbc05=_0x1fbc05[0x0]+_0x1fbc05[0x0]+_0x1fbc05[0x1]+_0x1fbc05[0x1]+_0x1fbc05[0x2]+_0x1fbc05[0x2];else{if(_0x1fbc05[_0x38a492(0xfe)]!==0x6)return'';}const _0xffc5f9=_0x1fbc05[0x0]+_0x1fbc05[0x1],_0x46e9a7=_0x1fbc05[0x2]+_0x1fbc05[0x3],_0x606bcc=_0x1fbc05[0x4]+_0x1fbc05[0x5];let _0x58173b='ff';return typeof _0x1b4a9a===_0x38a492(0x104)&&_0x1b4a9a>=0x0&&_0x1b4a9a<=0x1&&(_0x58173b=(_0x1b4a9a*0xff)[_0x38a492(0x11d)](0x10),_0x58173b['indexOf']('.')>-0x1&&(_0x58173b=_0x58173b[_0x38a492(0xe9)](0x0,_0x58173b['indexOf']('.'))),_0x58173b[_0x38a492(0xfe)]<0x2&&(_0x58173b='0'+_0x58173b)),_0x58173b+_0x606bcc+_0x46e9a7+_0xffc5f9;}export function isObject(_0x25d17f){const _0x49797e=a5_0x49e5;return Object[_0x49797e(0xed)]['toString'][_0x49797e(0x129)](_0x25d17f)==='[object\x20Object]';}function encode(_0x40a312){const _0x390380=a5_0x49e5;if(!_0x40a312)return'';return _0x40a312[_0x390380(0x11d)]()[_0x390380(0x132)](/&/g,_0x390380(0x117))[_0x390380(0x132)](/</g,'&lt;')[_0x390380(0x132)](/>/g,'&gt;')[_0x390380(0x132)](/"/g,'&quot;');}function attr(_0x4f58ca){const _0x18389a=a5_0x49e5;if(!Object['keys'](_0x4f58ca)[_0x18389a(0xfe)])return'';return'\x20'+Object[_0x18389a(0xf2)](_0x4f58ca)['map'](function(_0x45aa89){return _0x45aa89+'=\x22'+escape(_0x4f58ca[_0x45aa89])+'\x22';})[_0x18389a(0x103)]('\x20');}const escape_map={'>':a5_0x3ae339(0xee),'<':a5_0x3ae339(0x10c),'\x27':'&apos;','\x22':a5_0x3ae339(0xeb),'&':a5_0x3ae339(0x117)};function escape(_0x5bd734,_0x335d37){const _0xd87419=a5_0x3ae339;if(_0x5bd734===null||_0x5bd734===undefined)return;_0x335d37=(_0x335d37||'')[_0xd87419(0x132)](/[^&"<>\']/g,'');const _0x287ddd=_0xd87419(0x11f)[_0xd87419(0x132)](new RegExp('['+_0x335d37+']','g'),'');return _0x5bd734['replace'](new RegExp(_0x287ddd,'g'),function(_0x551f3e,_0x127267){return escape_map[_0x127267];});}function tag(_0xc816f,_0x32fa12,_0x18a9c9){const _0x11146e=a5_0x3ae339;return(Array['isArray'](_0x32fa12)||typeof _0x32fa12===_0x11146e(0x100))&&(_0x18a9c9=_0x32fa12,_0x32fa12={}),Array['isArray'](_0x18a9c9)&&(_0x18a9c9='\x0a'+_0x18a9c9[_0x11146e(0x119)](function(_0x522d10){return'\x20\x20'+_0x522d10;})[_0x11146e(0x103)]('\x0a')+'\x0a'),'<'+_0xc816f+attr(_0x32fa12)+'>'+_0x18a9c9+'</'+_0xc816f+'>';}
1
+ const a5_0x5c156a=a5_0x59b2;(function(_0x39c69e,_0x305654){const _0x3b3ad8=a5_0x59b2,_0x2daa1d=_0x39c69e();while(!![]){try{const _0x35d662=-parseInt(_0x3b3ad8(0x1bc))/0x1*(parseInt(_0x3b3ad8(0x1d2))/0x2)+-parseInt(_0x3b3ad8(0x1b9))/0x3+-parseInt(_0x3b3ad8(0x1d1))/0x4*(parseInt(_0x3b3ad8(0x1b8))/0x5)+parseInt(_0x3b3ad8(0x193))/0x6+-parseInt(_0x3b3ad8(0x1ac))/0x7*(parseInt(_0x3b3ad8(0x1cf))/0x8)+parseInt(_0x3b3ad8(0x19b))/0x9*(-parseInt(_0x3b3ad8(0x1c9))/0xa)+parseInt(_0x3b3ad8(0x1c3))/0xb;if(_0x35d662===_0x305654)break;else _0x2daa1d['push'](_0x2daa1d['shift']());}catch(_0x4956c9){_0x2daa1d['push'](_0x2daa1d['shift']());}}}(a5_0x3353,0x291fc));export function geoJSONToKml(_0x4dbfe1,_0x4e1253){const _0x553dcd=a5_0x59b2;return _0x4e1253=_0x4e1253||{'documentName':undefined,'documentDescription':undefined,'name':_0x553dcd(0x1a0),'description':_0x553dcd(0x1b4),'simplestyle':![],'timestamp':'timestamp'},_0x553dcd(0x18c)+tag(_0x553dcd(0x19d),tag(_0x553dcd(0x18a),documentName(_0x4e1253)+documentDescription(_0x4e1253)+root(_0x4dbfe1,_0x4e1253)),[[_0x553dcd(0x1c0),_0x553dcd(0x191)]]);}function feature(_0xd3201a,_0x352cc9){return function(_0x194343){const _0x520fdf=a5_0x59b2;if(!_0x194343[_0x520fdf(0x1b0)]||!geometry[_0x520fdf(0x1d4)](_0x194343[_0x520fdf(0x1aa)]))return'';const _0x145c64=geometry[_0x520fdf(0x189)](_0x194343[_0x520fdf(0x1aa)]);if(!_0x145c64)return'';let _0x3319bc='',_0x56aaf='';if(_0xd3201a[_0x520fdf(0x1be)]){const _0x245ec3=hashStyle(_0x194343['properties']);if(_0x245ec3){if(geometry[_0x520fdf(0x190)](_0x194343[_0x520fdf(0x1aa)])&&hasMarkerStyle(_0x194343[_0x520fdf(0x1b0)]))_0x352cc9[_0x520fdf(0x1ca)](_0x245ec3)===-0x1&&(_0x3319bc=markerStyle(_0x194343[_0x520fdf(0x1b0)],_0x245ec3),_0x352cc9[_0x520fdf(0x1c5)](_0x245ec3)),_0x56aaf=tag('styleUrl','#'+_0x245ec3);else(geometry[_0x520fdf(0x1ad)](_0x194343[_0x520fdf(0x1aa)])||geometry[_0x520fdf(0x19a)](_0x194343[_0x520fdf(0x1aa)]))&&hasPolygonAndLineStyle(_0x194343[_0x520fdf(0x1b0)])&&(_0x352cc9[_0x520fdf(0x1ca)](_0x245ec3)===-0x1&&(_0x3319bc=polygonAndLineStyle(_0x194343[_0x520fdf(0x1b0)],_0x245ec3),_0x352cc9[_0x520fdf(0x1c5)](_0x245ec3)),_0x56aaf=tag(_0x520fdf(0x1a2),'#'+_0x245ec3));}}return _0x3319bc+tag('Placemark',name(_0x194343['properties'],_0xd3201a)+description(_0x194343[_0x520fdf(0x1b0)],_0xd3201a)+extendeddata(_0x194343[_0x520fdf(0x1b0)])+timestamp(_0x194343[_0x520fdf(0x1b0)],_0xd3201a)+_0x145c64+_0x56aaf);};}function root(_0x2b5269,_0x1aef2c){const _0x2c54bb=a5_0x59b2;if(!_0x2b5269[_0x2c54bb(0x18e)])return'';const _0x46c12a=[];switch(_0x2b5269[_0x2c54bb(0x18e)]){case _0x2c54bb(0x1d0):if(!_0x2b5269['features'])return'';return _0x2b5269[_0x2c54bb(0x1b3)]['map'](feature(_0x1aef2c,_0x46c12a))[_0x2c54bb(0x1e0)]('');case _0x2c54bb(0x1b1):return feature(_0x1aef2c,_0x46c12a)(_0x2b5269);default:return feature(_0x1aef2c,_0x46c12a)({'type':_0x2c54bb(0x1b1),'geometry':_0x2b5269,'properties':{}});}}function documentName(_0x4129bd){const _0x23227b=a5_0x59b2;return _0x4129bd['documentName']!==undefined?tag(_0x23227b(0x1a0),_0x4129bd[_0x23227b(0x1c4)]):'';}function documentDescription(_0x3d902e){const _0x1df30f=a5_0x59b2;return _0x3d902e[_0x1df30f(0x194)]!==undefined?tag('description',_0x3d902e[_0x1df30f(0x194)]):'';}function name(_0x8ae7ef,_0x1ba975){const _0x4bc124=a5_0x59b2;return _0x8ae7ef[_0x1ba975[_0x4bc124(0x1a0)]]?tag('name',encode(_0x8ae7ef[_0x1ba975[_0x4bc124(0x1a0)]])):'';}function description(_0x412b4a,_0x3e8d80){const _0x29310b=a5_0x59b2;return _0x412b4a[_0x3e8d80['description']]?tag(_0x29310b(0x1b4),encode(_0x412b4a[_0x3e8d80['description']])):'';}function timestamp(_0x4b925b,_0x30cb61){const _0x5ddfef=a5_0x59b2;return _0x4b925b[_0x30cb61[_0x5ddfef(0x1d3)]]?tag('TimeStamp',tag(_0x5ddfef(0x1ae),encode(_0x4b925b[_0x30cb61[_0x5ddfef(0x1d3)]]))):'';}const geometry={'Point':function(_0x3966ef){const _0x10c0ea=a5_0x59b2;return tag(_0x10c0ea(0x192),tag(_0x10c0ea(0x1b7),_0x3966ef[_0x10c0ea(0x1b7)]['join'](',')));},'LineString':function(_0x53e529){const _0x590714=a5_0x59b2;return tag(_0x590714(0x196),tag('coordinates',linearring(_0x53e529[_0x590714(0x1b7)])));},'Polygon':function(_0x1bdebc){const _0xe5af31=a5_0x59b2;if(!_0x1bdebc[_0xe5af31(0x1b7)][_0xe5af31(0x1cc)])return'';const _0xd90ba6=_0x1bdebc[_0xe5af31(0x1b7)][0x0],_0x1c8cb8=_0x1bdebc[_0xe5af31(0x1b7)][_0xe5af31(0x1d5)](0x1),_0xd7b3d9=tag('outerBoundaryIs',tag(_0xe5af31(0x1a8),tag(_0xe5af31(0x1b7),linearring(_0xd90ba6)))),_0x36141f=_0x1c8cb8[_0xe5af31(0x1c1)](function(_0x3026c0){const _0x13e238=_0xe5af31;return tag(_0x13e238(0x1c6),tag('LinearRing',tag(_0x13e238(0x1b7),linearring(_0x3026c0))));})[_0xe5af31(0x1e0)]('');return tag('Polygon',_0xd7b3d9+_0x36141f);},'MultiPoint':function(_0x491c8f){const _0xb528c9=a5_0x59b2;if(!_0x491c8f[_0xb528c9(0x1b7)]['length'])return'';return tag(_0xb528c9(0x199),_0x491c8f['coordinates']['map'](function(_0x526773){const _0x51ee4f=_0xb528c9;return geometry[_0x51ee4f(0x192)]({'coordinates':_0x526773});})['join'](''));},'MultiPolygon':function(_0x1dde86){const _0x124017=a5_0x59b2;if(!_0x1dde86[_0x124017(0x1b7)][_0x124017(0x1cc)])return'';return tag(_0x124017(0x199),_0x1dde86[_0x124017(0x1b7)][_0x124017(0x1c1)](function(_0x23f638){const _0x1e3479=_0x124017;return geometry[_0x1e3479(0x1bf)]({'coordinates':_0x23f638});})[_0x124017(0x1e0)](''));},'MultiLineString':function(_0x35b7bd){const _0x3e91d1=a5_0x59b2;if(!_0x35b7bd['coordinates'][_0x3e91d1(0x1cc)])return'';return tag(_0x3e91d1(0x199),_0x35b7bd[_0x3e91d1(0x1b7)][_0x3e91d1(0x1c1)](function(_0x175dd0){return geometry['LineString']({'coordinates':_0x175dd0});})['join'](''));},'GeometryCollection':function(_0x40da21){const _0x32059e=a5_0x59b2;return tag(_0x32059e(0x199),_0x40da21[_0x32059e(0x198)][_0x32059e(0x1c1)](geometry['any'])[_0x32059e(0x1e0)](''));},'valid':function(_0x479427){const _0x4d3f2a=a5_0x59b2;return _0x479427&&_0x479427[_0x4d3f2a(0x18e)]&&(_0x479427[_0x4d3f2a(0x1b7)]||_0x479427[_0x4d3f2a(0x18e)]===_0x4d3f2a(0x197)&&_0x479427['geometries']&&_0x479427[_0x4d3f2a(0x198)]['every'](geometry[_0x4d3f2a(0x1d4)]));},'any':function(_0x22b5cc){const _0x784416=a5_0x59b2;return geometry[_0x22b5cc[_0x784416(0x18e)]]?geometry[_0x22b5cc[_0x784416(0x18e)]](_0x22b5cc):'';},'isPoint':function(_0xc90f8b){const _0x4ede3c=a5_0x59b2;return _0xc90f8b[_0x4ede3c(0x18e)]===_0x4ede3c(0x192)||_0xc90f8b[_0x4ede3c(0x18e)]==='MultiPoint';},'isPolygon':function(_0x5cfebe){const _0x566043=a5_0x59b2;return _0x5cfebe[_0x566043(0x18e)]===_0x566043(0x1bf)||_0x5cfebe['type']===_0x566043(0x18d);},'isLine':function(_0x49f82b){const _0x2ffd20=a5_0x59b2;return _0x49f82b[_0x2ffd20(0x18e)]===_0x2ffd20(0x196)||_0x49f82b[_0x2ffd20(0x18e)]==='MultiLineString';}};function linearring(_0x451d20){const _0x54c6a5=a5_0x59b2;return _0x451d20['map'](function(_0x454ce8){const _0x27b870=a5_0x59b2;return _0x454ce8[_0x27b870(0x1e0)](',');})[_0x54c6a5(0x1e0)]('\x20');}function extendeddata(_0x286ef8){const _0x5980be=a5_0x59b2,_0xe39bad=[];for(const _0x33cbf5 in _0x286ef8){const _0x451bae=_0x286ef8[_0x33cbf5];isObject(_0x451bae)?_0xe39bad[_0x5980be(0x1c5)](_0x5980be(0x1da)+_0x33cbf5+_0x5980be(0x1b5)+JSON[_0x5980be(0x1dd)](_0x451bae)+_0x5980be(0x1bd)):_0xe39bad[_0x5980be(0x1c5)](_0x5980be(0x1da)+_0x33cbf5+_0x5980be(0x1b5)+_0x451bae+_0x5980be(0x1bd));}return tag(_0x5980be(0x1dc),_0xe39bad['join'](''));}function data(_0x16a850){const _0xe6f518=a5_0x59b2;return tag('Data',tag(_0xe6f518(0x1a3),encode(_0x16a850[0x1])),[[_0xe6f518(0x1a0),encode(_0x16a850[0x0])]]);}function hasMarkerStyle(_0x283a60){const _0xc84ccb=a5_0x59b2;return!!(_0x283a60['marker-size']||_0x283a60['marker-symbol']||_0x283a60[_0xc84ccb(0x1ce)]);}function markerStyle(_0x44babf,_0x1b06d9){const _0x50116c=a5_0x59b2;return tag(_0x50116c(0x1ba),tag('IconStyle',tag('Icon',tag(_0x50116c(0x1cd),iconUrl(_0x44babf))))+iconSize(_0x44babf),[['id',_0x1b06d9]]);}function iconUrl(_0x3712cd){const _0x197e10=a5_0x59b2;return _0x3712cd[_0x197e10(0x1c2)];}function a5_0x59b2(_0x9c31bb,_0x58dd26){const _0x335348=a5_0x3353();return a5_0x59b2=function(_0x59b262,_0x551907){_0x59b262=_0x59b262-0x189;let _0x43d6a1=_0x335348[_0x59b262];return _0x43d6a1;},a5_0x59b2(_0x9c31bb,_0x58dd26);}function iconSize(_0x89678d){const _0x3fc7ac=a5_0x59b2;return tag(_0x3fc7ac(0x1e1),'',[['xunits',_0x3fc7ac(0x18f)],[_0x3fc7ac(0x1de),_0x3fc7ac(0x18f)],['x',0.5],['y',0.5]]);}function hasPolygonAndLineStyle(_0x127aa4){for(const _0x49a83c in _0x127aa4){if({'stroke':!![],'stroke-opacity':!![],'stroke-width':!![],'fill':!![],'fill-opacity':!![]}[_0x49a83c])return!![];}}function polygonAndLineStyle(_0x41972f,_0x31367e){const _0x43a64e=a5_0x59b2,_0x415c7f=tag(_0x43a64e(0x19e),[tag(_0x43a64e(0x19c),hexToKmlColor(_0x41972f['stroke'],_0x41972f['stroke-opacity'])||_0x43a64e(0x1a9))+tag(_0x43a64e(0x1a7),_0x41972f[_0x43a64e(0x1df)]===undefined?0x2:_0x41972f[_0x43a64e(0x1df)])]);let _0x21ce3d='';return(_0x41972f[_0x43a64e(0x1db)]||_0x41972f['fill-opacity'])&&(_0x21ce3d=tag(_0x43a64e(0x1d9),[tag(_0x43a64e(0x19c),hexToKmlColor(_0x41972f[_0x43a64e(0x1db)],_0x41972f[_0x43a64e(0x18b)])||_0x43a64e(0x1bb))])),tag(_0x43a64e(0x1ba),_0x415c7f+_0x21ce3d,[['id',_0x31367e]]);}function hashStyle(_0x1bd30c){const _0x31d032=a5_0x59b2;let _0x44785e='';return _0x1bd30c[_0x31d032(0x1c2)]&&(_0x44785e=_0x44785e+'ms'+_0x1bd30c[_0x31d032(0x1c2)]),_0x1bd30c['marker-color']&&(_0x44785e=_0x44785e+'mc'+_0x1bd30c[_0x31d032(0x1ce)][_0x31d032(0x1c8)]('#','')),_0x1bd30c[_0x31d032(0x1d8)]&&(_0x44785e=_0x44785e+'ms'+_0x1bd30c['marker-size']),_0x1bd30c[_0x31d032(0x1d6)]&&(_0x44785e=_0x44785e+'s'+_0x1bd30c[_0x31d032(0x1d6)][_0x31d032(0x1c8)]('#','')),_0x1bd30c[_0x31d032(0x1df)]&&(_0x44785e=_0x44785e+'sw'+_0x1bd30c[_0x31d032(0x1df)][_0x31d032(0x1a6)]()['replace']('.','')),_0x1bd30c[_0x31d032(0x195)]&&(_0x44785e=_0x44785e+'mo'+_0x1bd30c[_0x31d032(0x195)]['toString']()[_0x31d032(0x1c8)]('.','')),_0x1bd30c[_0x31d032(0x1db)]&&(_0x44785e=_0x44785e+'f'+_0x1bd30c[_0x31d032(0x1db)][_0x31d032(0x1c8)]('#','')),_0x1bd30c['fill-opacity']&&(_0x44785e=_0x44785e+'fo'+_0x1bd30c[_0x31d032(0x18b)]['toString']()['replace']('.','')),_0x44785e;}function hexToKmlColor(_0x160498,_0x362d5f){const _0x4b8434=a5_0x59b2;if(typeof _0x160498!=='string')return'';_0x160498=_0x160498[_0x4b8434(0x1c8)]('#','')[_0x4b8434(0x1b2)]();if(_0x160498['length']===0x3)_0x160498=_0x160498[0x0]+_0x160498[0x0]+_0x160498[0x1]+_0x160498[0x1]+_0x160498[0x2]+_0x160498[0x2];else{if(_0x160498[_0x4b8434(0x1cc)]!==0x6)return'';}const _0x2ef5f9=_0x160498[0x0]+_0x160498[0x1],_0x236a18=_0x160498[0x2]+_0x160498[0x3],_0x2f8992=_0x160498[0x4]+_0x160498[0x5];let _0x27343f='ff';return typeof _0x362d5f===_0x4b8434(0x1a4)&&_0x362d5f>=0x0&&_0x362d5f<=0x1&&(_0x27343f=(_0x362d5f*0xff)[_0x4b8434(0x1a6)](0x10),_0x27343f[_0x4b8434(0x1ca)]('.')>-0x1&&(_0x27343f=_0x27343f['substr'](0x0,_0x27343f['indexOf']('.'))),_0x27343f['length']<0x2&&(_0x27343f='0'+_0x27343f)),_0x27343f+_0x2f8992+_0x236a18+_0x2ef5f9;}export function isObject(_0x193a91){const _0x53435d=a5_0x59b2;return Object['prototype'][_0x53435d(0x1a6)][_0x53435d(0x1d7)](_0x193a91)===_0x53435d(0x1cb);}function encode(_0x204b4d){const _0x54056d=a5_0x59b2;if(!_0x204b4d)return'';return _0x204b4d[_0x54056d(0x1a6)]()[_0x54056d(0x1c8)](/&/g,_0x54056d(0x1b6))['replace'](/</g,_0x54056d(0x19f))['replace'](/>/g,_0x54056d(0x1a1))[_0x54056d(0x1c8)](/"/g,_0x54056d(0x1c7));}function attr(_0x5ae177){const _0x51014a=a5_0x59b2;if(!Object[_0x51014a(0x1a5)](_0x5ae177)[_0x51014a(0x1cc)])return'';return'\x20'+Object[_0x51014a(0x1a5)](_0x5ae177)[_0x51014a(0x1c1)](function(_0x2fe48f){return _0x2fe48f+'=\x22'+escape(_0x5ae177[_0x2fe48f])+'\x22';})['join']('\x20');}const escape_map={'>':a5_0x5c156a(0x1a1),'<':'&lt;','\x27':'&apos;','\x22':a5_0x5c156a(0x1c7),'&':a5_0x5c156a(0x1b6)};function escape(_0x4c77b1,_0x15c8fd){const _0x2f63a5=a5_0x5c156a;if(_0x4c77b1===null||_0x4c77b1===undefined)return;_0x15c8fd=(_0x15c8fd||'')[_0x2f63a5(0x1c8)](/[^&"<>\']/g,'');const _0x2e0357=_0x2f63a5(0x1af)[_0x2f63a5(0x1c8)](new RegExp('['+_0x15c8fd+']','g'),'');return _0x4c77b1[_0x2f63a5(0x1c8)](new RegExp(_0x2e0357,'g'),function(_0x40aeb1,_0x1c248d){return escape_map[_0x1c248d];});}function tag(_0x26530d,_0x25f46e,_0x4600d2){const _0x337c8c=a5_0x5c156a;return(Array['isArray'](_0x25f46e)||typeof _0x25f46e===_0x337c8c(0x1ab))&&(_0x4600d2=_0x25f46e,_0x25f46e={}),Array['isArray'](_0x4600d2)&&(_0x4600d2='\x0a'+_0x4600d2[_0x337c8c(0x1c1)](function(_0x11a6ec){return'\x20\x20'+_0x11a6ec;})['join']('\x0a')+'\x0a'),'<'+_0x26530d+attr(_0x25f46e)+'>'+_0x4600d2+'</'+_0x26530d+'>';}function a5_0x3353(){const _0x438dc2=['geometry','string','63JUgLGu','isPolygon','when','([&\x22<>\x27])','properties','Feature','toLowerCase','features','description','\x22><value>','&amp;','coordinates','110LAdSOR','745182rIQEkM','Style','88555555','100105AqcaOp','</value></Data>','simplestyle','Polygon','xmlns','map','marker-symbol','6814324ZMqmkN','documentName','push','innerBoundaryIs','&quot;','replace','380JaYnWv','indexOf','[object\x20Object]','length','href','marker-color','54128wndnCP','FeatureCollection','20664LABboc','4KNkyLY','timestamp','valid','slice','stroke','call','marker-size','PolyStyle','<Data\x20name\x20=\x22','fill','ExtendedData','stringify','yunits','stroke-width','join','hotSpot','any','Document','fill-opacity','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>','MultiPolygon','type','fraction','isPoint','http://www.opengis.net/kml/2.2','Point','1764084FwmFyd','documentDescription','stroke-opacity','LineString','GeometryCollection','geometries','MultiGeometry','isLine','28872gvBluJ','color','kml','LineStyle','&lt;','name','&gt;','styleUrl','value','number','keys','toString','width','LinearRing','ff555555'];a5_0x3353=function(){return _0x438dc2;};return a5_0x3353();}
@@ -1 +1 @@
1
- function a6_0x427f(_0x15b326,_0x2abe9c){const _0x41495d=a6_0x4149();return a6_0x427f=function(_0x427f21,_0x21ec4b){_0x427f21=_0x427f21-0x19d;let _0x1d0d85=_0x41495d[_0x427f21];return _0x1d0d85;},a6_0x427f(_0x15b326,_0x2abe9c);}const a6_0x2007c3=a6_0x427f;(function(_0x4c0bfb,_0x5d1ecb){const _0x343893=a6_0x427f,_0xbae970=_0x4c0bfb();while(!![]){try{const _0x166689=parseInt(_0x343893(0x1a5))/0x1*(parseInt(_0x343893(0x1b9))/0x2)+-parseInt(_0x343893(0x1c1))/0x3*(parseInt(_0x343893(0x1cd))/0x4)+-parseInt(_0x343893(0x1b4))/0x5*(parseInt(_0x343893(0x1a0))/0x6)+parseInt(_0x343893(0x1ae))/0x7+parseInt(_0x343893(0x1c0))/0x8+parseInt(_0x343893(0x1a2))/0x9*(-parseInt(_0x343893(0x1a7))/0xa)+-parseInt(_0x343893(0x1ca))/0xb*(-parseInt(_0x343893(0x1a4))/0xc);if(_0x166689===_0x5d1ecb)break;else _0xbae970['push'](_0xbae970['shift']());}catch(_0x43582c){_0xbae970['push'](_0xbae970['shift']());}}}(a6_0x4149,0x8cffe));import a6_0x2578eb from'jszip';import{kmlToGeoJSON}from'./kmlToGeoJSON';import{geoJSONToKml}from'./geoJSONToKml';function a6_0x4149(){const _0x3a7435=['10BldSMc','opacity','kml','type','length','textContent','GET','4755226MVexwD','getRootNode','features','application/xml','forEach','outlineOpacity','5oqlfTa','name','constructor','outlineColor','Polygon','5222BsmQNf','blob','rectangle','closure','split','innerText','image','7722024gBrXNF','777486fVmUjH','outlineWidth','string','push','loadAsync','resolve','toGeoJSON参数不能为空','text','html','132TWhBbs','properties','div','8qgaxtf','stroke','assign','marker-color','style','pop','innerHTML','geometry','stroke-opacity','then','6772002dgOrVq','kmz','4043205hVoWBF','async','399948fFIGLb','241TPPMTk','coordinates'];a6_0x4149=function(){return _0x3a7435;};return a6_0x4149();}export function toKml(_0x2540a1,_0x20907a){const _0x1a7410=a6_0x427f;return _0x2540a1['features']?_0x2540a1[_0x1a7410(0x1b0)][_0x1a7410(0x1b2)](_0x3172c3=>{updateFeatureByStyle(_0x3172c3);}):updateFeatureByStyle(_0x2540a1),geoJSONToKml(_0x2540a1,_0x20907a);}function updateFeatureByStyle(_0x12fdb0){const _0x3ee8fb=a6_0x427f;var _0x5d7ff7,_0x520675,_0x36a6e0,_0x1eb6be,_0x3c7809,_0x2df72e;if(!_0x12fdb0[_0x3ee8fb(0x1cb)])return;const _0x129e96=_0x12fdb0['properties'][_0x3ee8fb(0x1d1)];if(_0x129e96){if(_0x129e96[_0x3ee8fb(0x1bf)]){_0x12fdb0[_0x3ee8fb(0x1cb)]['marker-symbol']=_0x129e96[_0x3ee8fb(0x1bf)];_0x129e96['outlineColor']&&(_0x12fdb0[_0x3ee8fb(0x1cb)][_0x3ee8fb(0x1d0)]=_0x129e96[_0x3ee8fb(0x1b7)]);return;}_0x129e96['color']&&(_0x12fdb0[_0x3ee8fb(0x1cb)]['fill']=_0x129e96['color'],_0x129e96[_0x3ee8fb(0x1a8)]&&(_0x12fdb0[_0x3ee8fb(0x1cb)]['fill-opacity']=_0x129e96[_0x3ee8fb(0x1a8)])),_0x129e96['outlineColor']&&(_0x12fdb0[_0x3ee8fb(0x1cb)][_0x3ee8fb(0x1ce)]=_0x129e96['outlineColor'],_0x12fdb0['properties']['stroke-width']=(_0x5d7ff7=_0x129e96[_0x3ee8fb(0x1c2)])!==null&&_0x5d7ff7!==void 0x0?_0x5d7ff7:0x1,_0x12fdb0[_0x3ee8fb(0x1cb)][_0x3ee8fb(0x19e)]=(_0x36a6e0=(_0x520675=_0x129e96[_0x3ee8fb(0x1b3)])!==null&&_0x520675!==void 0x0?_0x520675:_0x129e96[_0x3ee8fb(0x1a8)])!==null&&_0x36a6e0!==void 0x0?_0x36a6e0:0x1),_0x129e96[_0x3ee8fb(0x1c9)]&&(_0x129e96['html']=HTMLEncode(_0x129e96[_0x3ee8fb(0x1c9)])),_0x129e96[_0x3ee8fb(0x1bc)]&&((_0x3c7809=(_0x1eb6be=_0x12fdb0[_0x3ee8fb(0x19d)])===null||_0x1eb6be===void 0x0?void 0x0:_0x1eb6be[_0x3ee8fb(0x1a6)])===null||_0x3c7809===void 0x0?void 0x0:_0x3c7809[_0x3ee8fb(0x1ab)])>0x0&&_0x12fdb0[_0x3ee8fb(0x19d)][_0x3ee8fb(0x1a6)][_0x3ee8fb(0x1c4)](_0x12fdb0[_0x3ee8fb(0x19d)][_0x3ee8fb(0x1a6)][0x0]);}const _0x5574c7=(_0x2df72e=_0x12fdb0===null||_0x12fdb0===void 0x0?void 0x0:_0x12fdb0['properties'])===null||_0x2df72e===void 0x0?void 0x0:_0x2df72e[_0x3ee8fb(0x1aa)];if(_0x5574c7==='polygon'){const _0x4baf23=_0x12fdb0[_0x3ee8fb(0x19d)][_0x3ee8fb(0x1a6)][0x0];(_0x4baf23===null||_0x4baf23===void 0x0?void 0x0:_0x4baf23[_0x3ee8fb(0x1ab)])>0x2&&_0x4baf23[_0x3ee8fb(0x1c4)](_0x4baf23[0x0]);}else{if(_0x5574c7===_0x3ee8fb(0x1bb)){const _0x1161b0=_0x12fdb0[_0x3ee8fb(0x19d)][_0x3ee8fb(0x1a6)],_0x58715a=_0x1161b0[0x0][0x0],_0x5012e6=_0x1161b0[0x1][0x0],_0x38964f=_0x1161b0[0x0][0x1],_0xe03933=_0x1161b0[0x1][0x1];_0x12fdb0[_0x3ee8fb(0x19d)]={'type':_0x3ee8fb(0x1b8),'coordinates':[[[_0x58715a,_0xe03933],[_0x58715a,_0x38964f],[_0x5012e6,_0x38964f],[_0x5012e6,_0xe03933],[_0x58715a,_0xe03933]]]};}}}const getDom=_0x226951=>new DOMParser()['parseFromString'](_0x226951,a6_0x2007c3(0x1b1)),getExtension=_0x495bf6=>_0x495bf6['split']('.')[a6_0x2007c3(0x1d2)](),getKmlDom=_0x18a75f=>{const _0x4bed89=a6_0x2007c3,_0x37451e=new a6_0x2578eb();return _0x37451e[_0x4bed89(0x1c5)](_0x18a75f)[_0x4bed89(0x19f)](_0x519d39=>{let _0xc6acd3=null;return _0x519d39['forEach']((_0x59257c,_0x1a8477)=>{const _0x29eddc=a6_0x427f;getExtension(_0x59257c)===_0x29eddc(0x1a9)&&_0xc6acd3===null&&(_0xc6acd3=_0x1a8477[_0x29eddc(0x1a3)](_0x29eddc(0x1c3))['then'](getDom));}),_0xc6acd3;});};export function toGeoJSON(_0x1bffc3,_0x3d20d8){const _0x480b10=a6_0x2007c3;if(!_0x1bffc3){console['warn'](_0x480b10(0x1c7));return;}if(isString(_0x1bffc3)){const _0x2921f6=getExtension(_0x1bffc3);if(_0x2921f6===_0x480b10(0x1a9))return fetchXML(_0x1bffc3,_0x3d20d8)[_0x480b10(0x19f)](function(_0x4a59a9){return kmlToGeoJSON(_0x4a59a9);});else{if(_0x2921f6===_0x480b10(0x1a1))return fetchBlob(_0x1bffc3,_0x3d20d8)[_0x480b10(0x19f)](function(_0x12a718){return getKmlDom(_0x12a718);})['then'](function(_0x5a70cc){return kmlToGeoJSON(_0x5a70cc);});else{const _0x23dd38=kmlToGeoJSON(getDom(_0x1bffc3));return Promise['resolve'](_0x23dd38);}}}else{if(_0x1bffc3[_0x480b10(0x1af)]){const _0xe6843b=kmlToGeoJSON(_0x1bffc3);return Promise[_0x480b10(0x1c6)](_0xe6843b);}else{const _0x246ffb=_0x1bffc3[_0x480b10(0x1b5)][_0x480b10(0x1bd)]('.')[_0x1bffc3[_0x480b10(0x1b5)][_0x480b10(0x1bd)]('.')[_0x480b10(0x1ab)]-0x1]['toLowerCase']();return _0x246ffb===_0x480b10(0x1a9)?_0x1bffc3['text']()[_0x480b10(0x19f)](_0x4d2761=>{return kmlToGeoJSON(getDom(_0x4d2761));}):getKmlDom(_0x1bffc3)[_0x480b10(0x19f)](function(_0x999d30){return kmlToGeoJSON(_0x999d30);});}}}function isString(_0x386f54){const _0x115217=a6_0x2007c3;return typeof _0x386f54==='string'&&_0x386f54[_0x115217(0x1b6)]===String;}function HTMLEncode(_0x5952e2){const _0x1d242e=a6_0x2007c3,_0x340a4a=document['createElement'](_0x1d242e(0x1cc));_0x340a4a[_0x1d242e(0x1ac)]!=null?_0x340a4a[_0x1d242e(0x1ac)]=_0x5952e2:_0x340a4a[_0x1d242e(0x1be)]=_0x5952e2;const _0x482f27=_0x340a4a[_0x1d242e(0x1d3)];return _0x482f27;}function fetchXML(_0x4ef347,_0x3a1859){const _0x2d6cd8=a6_0x2007c3,_0x457436=Object['assign']({'method':_0x2d6cd8(0x1ad),'headers':{'Content-Type':_0x2d6cd8(0x1b1)}},_0x3a1859);return fetch(_0x4ef347,_0x457436)['then'](_0x292051=>{const _0x63bf58=_0x2d6cd8;return _0x292051[_0x63bf58(0x1c8)]();})[_0x2d6cd8(0x19f)](_0x556f91=>{return getDom(_0x556f91);});}function fetchBlob(_0x53e666,_0x773ce1){const _0x1e7278=a6_0x2007c3,_0x1cb265=Object[_0x1e7278(0x1cf)]({'method':'GET'},_0x773ce1);return fetch(_0x53e666,_0x1cb265)[_0x1e7278(0x19f)](_0x36319f=>{const _0x2870e5=_0x1e7278;return _0x36319f[_0x2870e5(0x1ba)]();});}
1
+ const a6_0x4a2de7=a6_0x1e87;(function(_0x2f30fb,_0x35ff30){const _0x16dd04=a6_0x1e87,_0x7314de=_0x2f30fb();while(!![]){try{const _0x1d21ed=-parseInt(_0x16dd04(0x95))/0x1*(-parseInt(_0x16dd04(0x67))/0x2)+parseInt(_0x16dd04(0x91))/0x3*(-parseInt(_0x16dd04(0x66))/0x4)+-parseInt(_0x16dd04(0x9c))/0x5*(-parseInt(_0x16dd04(0x7d))/0x6)+parseInt(_0x16dd04(0x6f))/0x7*(-parseInt(_0x16dd04(0x94))/0x8)+parseInt(_0x16dd04(0x69))/0x9+-parseInt(_0x16dd04(0x81))/0xa+-parseInt(_0x16dd04(0x73))/0xb*(-parseInt(_0x16dd04(0x7f))/0xc);if(_0x1d21ed===_0x35ff30)break;else _0x7314de['push'](_0x7314de['shift']());}catch(_0x936e10){_0x7314de['push'](_0x7314de['shift']());}}}(a6_0x327d,0xd92a0));import a6_0x3f2d3d from'jszip';import{kmlToGeoJSON}from'./kmlToGeoJSON';import{geoJSONToKml}from'./geoJSONToKml';export function toKml(_0x5ae993,_0x55b693){const _0x47653f=a6_0x1e87;return _0x5ae993[_0x47653f(0x9b)]?_0x5ae993[_0x47653f(0x9b)][_0x47653f(0x97)](_0x173d03=>{updateFeatureByStyle(_0x173d03);}):updateFeatureByStyle(_0x5ae993),geoJSONToKml(_0x5ae993,_0x55b693);}function updateFeatureByStyle(_0x5a0042){const _0x275f16=a6_0x1e87;var _0x23fc6b,_0x1527bd,_0x339e8d,_0x31d2bb,_0x42193a,_0x483499;if(!_0x5a0042['properties'])return;const _0x3a0d39=_0x5a0042[_0x275f16(0x82)][_0x275f16(0x78)];if(_0x3a0d39){if(_0x3a0d39[_0x275f16(0x9a)]){_0x5a0042[_0x275f16(0x82)][_0x275f16(0x72)]=_0x3a0d39[_0x275f16(0x9a)];_0x3a0d39[_0x275f16(0x74)]&&(_0x5a0042['properties'][_0x275f16(0x71)]=_0x3a0d39['outlineColor']);return;}_0x3a0d39[_0x275f16(0x9e)]&&(_0x5a0042[_0x275f16(0x82)]['fill']=_0x3a0d39['color'],_0x3a0d39['opacity']&&(_0x5a0042['properties'][_0x275f16(0x86)]=_0x3a0d39[_0x275f16(0x7a)])),_0x3a0d39[_0x275f16(0x74)]&&(_0x5a0042['properties']['stroke']=_0x3a0d39['outlineColor'],_0x5a0042[_0x275f16(0x82)][_0x275f16(0x9f)]=(_0x23fc6b=_0x3a0d39[_0x275f16(0x8a)])!==null&&_0x23fc6b!==void 0x0?_0x23fc6b:0x1,_0x5a0042['properties'][_0x275f16(0x96)]=(_0x339e8d=(_0x1527bd=_0x3a0d39['outlineOpacity'])!==null&&_0x1527bd!==void 0x0?_0x1527bd:_0x3a0d39['opacity'])!==null&&_0x339e8d!==void 0x0?_0x339e8d:0x1),_0x3a0d39[_0x275f16(0x8d)]&&(_0x3a0d39['html']=HTMLEncode(_0x3a0d39[_0x275f16(0x8d)])),_0x3a0d39[_0x275f16(0x6e)]&&((_0x42193a=(_0x31d2bb=_0x5a0042['geometry'])===null||_0x31d2bb===void 0x0?void 0x0:_0x31d2bb['coordinates'])===null||_0x42193a===void 0x0?void 0x0:_0x42193a['length'])>0x0&&_0x5a0042['geometry'][_0x275f16(0x80)][_0x275f16(0x8f)](_0x5a0042[_0x275f16(0x99)][_0x275f16(0x80)][0x0]);}const _0x46a0f6=(_0x483499=_0x5a0042===null||_0x5a0042===void 0x0?void 0x0:_0x5a0042[_0x275f16(0x82)])===null||_0x483499===void 0x0?void 0x0:_0x483499[_0x275f16(0x93)];if(_0x46a0f6===_0x275f16(0x9d)){const _0x33665d=_0x5a0042[_0x275f16(0x99)][_0x275f16(0x80)][0x0];(_0x33665d===null||_0x33665d===void 0x0?void 0x0:_0x33665d[_0x275f16(0x75)])>0x2&&_0x33665d['push'](_0x33665d[0x0]);}else{if(_0x46a0f6===_0x275f16(0x6c)){const _0x546f93=_0x5a0042[_0x275f16(0x99)][_0x275f16(0x80)],_0x1a6afa=_0x546f93[0x0][0x0],_0x481f44=_0x546f93[0x1][0x0],_0x4c0b02=_0x546f93[0x0][0x1],_0x940886=_0x546f93[0x1][0x1];_0x5a0042[_0x275f16(0x99)]={'type':_0x275f16(0x87),'coordinates':[[[_0x1a6afa,_0x940886],[_0x1a6afa,_0x4c0b02],[_0x481f44,_0x4c0b02],[_0x481f44,_0x940886],[_0x1a6afa,_0x940886]]]};}}}const getDom=_0x345dd7=>new DOMParser()['parseFromString'](_0x345dd7,a6_0x4a2de7(0x6a)),getExtension=_0x10cc20=>_0x10cc20[a6_0x4a2de7(0x85)]('.')['pop'](),getKmlDom=_0x1cce50=>{const _0x53b324=a6_0x4a2de7,_0x23a79b=new a6_0x3f2d3d();return _0x23a79b[_0x53b324(0x8c)](_0x1cce50)['then'](_0x4ee6b2=>{const _0x2bab08=_0x53b324;let _0x77528d=null;return _0x4ee6b2[_0x2bab08(0x97)]((_0x2d7c97,_0x576669)=>{const _0x34396f=_0x2bab08;getExtension(_0x2d7c97)===_0x34396f(0x68)&&_0x77528d===null&&(_0x77528d=_0x576669[_0x34396f(0x7c)]('string')[_0x34396f(0x76)](getDom));}),_0x77528d;});};export function toGeoJSON(_0x30aa72,_0xa8f79d){const _0x17e275=a6_0x4a2de7;if(!_0x30aa72){console[_0x17e275(0x6d)]('toGeoJSON参数不能为空');return;}if(isString(_0x30aa72)){const _0x405798=getExtension(_0x30aa72);if(_0x405798===_0x17e275(0x68))return fetchXML(_0x30aa72,_0xa8f79d)[_0x17e275(0x76)](function(_0x1f8477){return kmlToGeoJSON(_0x1f8477);});else{if(_0x405798===_0x17e275(0x92))return fetchBlob(_0x30aa72,_0xa8f79d)[_0x17e275(0x76)](function(_0x32bbd3){return getKmlDom(_0x32bbd3);})[_0x17e275(0x76)](function(_0x3e136e){return kmlToGeoJSON(_0x3e136e);});else{const _0x4c7ba0=kmlToGeoJSON(getDom(_0x30aa72));return Promise[_0x17e275(0x70)](_0x4c7ba0);}}}else{if(_0x30aa72[_0x17e275(0x84)]){const _0x3ab15a=kmlToGeoJSON(_0x30aa72);return Promise[_0x17e275(0x70)](_0x3ab15a);}else{const _0xaab50b=_0x30aa72[_0x17e275(0x77)][_0x17e275(0x85)]('.')[_0x30aa72[_0x17e275(0x77)][_0x17e275(0x85)]('.')[_0x17e275(0x75)]-0x1]['toLowerCase']();return _0xaab50b===_0x17e275(0x68)?_0x30aa72[_0x17e275(0x98)]()['then'](_0x5350ac=>{return kmlToGeoJSON(getDom(_0x5350ac));}):getKmlDom(_0x30aa72)[_0x17e275(0x76)](function(_0x40ad50){return kmlToGeoJSON(_0x40ad50);});}}}function a6_0x327d(){const _0x22495c=['resolve','marker-color','marker-symbol','1706914IJkDAi','outlineColor','length','then','name','style','innerHTML','opacity','assign','async','234fVeNBX','textContent','24RWoJIL','coordinates','3117270UwRfBb','properties','createElement','getRootNode','split','fill-opacity','Polygon','innerText','constructor','outlineWidth','string','loadAsync','html','div','push','blob','12306lCTPGp','kmz','type','3559928wxNRJH','1nFRxhK','stroke-opacity','forEach','text','geometry','image','features','201115PhzZjX','polygon','color','stroke-width','1388jjSrYt','113426BdyMVT','kml','10204722jlyaPp','application/xml','GET','rectangle','warn','closure','7LoujWI'];a6_0x327d=function(){return _0x22495c;};return a6_0x327d();}function a6_0x1e87(_0x217c86,_0x6bad2e){const _0x327dd5=a6_0x327d();return a6_0x1e87=function(_0x1e8764,_0x42dda9){_0x1e8764=_0x1e8764-0x66;let _0x4df630=_0x327dd5[_0x1e8764];return _0x4df630;},a6_0x1e87(_0x217c86,_0x6bad2e);}function isString(_0x4ff175){const _0x1e1f1a=a6_0x4a2de7;return typeof _0x4ff175===_0x1e1f1a(0x8b)&&_0x4ff175[_0x1e1f1a(0x89)]===String;}function HTMLEncode(_0xcf841e){const _0x514c32=a6_0x4a2de7,_0x4a1d44=document[_0x514c32(0x83)](_0x514c32(0x8e));_0x4a1d44[_0x514c32(0x7e)]!=null?_0x4a1d44[_0x514c32(0x7e)]=_0xcf841e:_0x4a1d44[_0x514c32(0x88)]=_0xcf841e;const _0x333356=_0x4a1d44[_0x514c32(0x79)];return _0x333356;}function fetchXML(_0x58d714,_0x4147a4){const _0xb1c1e1=a6_0x4a2de7,_0x44d308=Object[_0xb1c1e1(0x7b)]({'method':_0xb1c1e1(0x6b),'headers':{'Content-Type':_0xb1c1e1(0x6a)}},_0x4147a4);return fetch(_0x58d714,_0x44d308)[_0xb1c1e1(0x76)](_0x58e278=>{return _0x58e278['text']();})[_0xb1c1e1(0x76)](_0x50f112=>{return getDom(_0x50f112);});}function fetchBlob(_0x5c3210,_0xcebc86){const _0x555988=a6_0x4a2de7,_0x139758=Object[_0x555988(0x7b)]({'method':'GET'},_0xcebc86);return fetch(_0x5c3210,_0x139758)[_0x555988(0x76)](_0x22f64e=>{const _0x206041=_0x555988;return _0x22f64e[_0x206041(0x90)]();});}
@@ -1 +1 @@
1
- const a7_0x12fe2a=a7_0x5ec8;(function(_0x5b7384,_0x890fae){const _0x356f94=a7_0x5ec8,_0xb5081c=_0x5b7384();while(!![]){try{const _0x2e7bf1=parseInt(_0x356f94(0x106))/0x1+parseInt(_0x356f94(0x124))/0x2+-parseInt(_0x356f94(0xfe))/0x3+-parseInt(_0x356f94(0x11d))/0x4+-parseInt(_0x356f94(0xfd))/0x5*(parseInt(_0x356f94(0x109))/0x6)+parseInt(_0x356f94(0x114))/0x7*(-parseInt(_0x356f94(0x11a))/0x8)+parseInt(_0x356f94(0x130))/0x9;if(_0x2e7bf1===_0x890fae)break;else _0xb5081c['push'](_0xb5081c['shift']());}catch(_0x30fe1f){_0xb5081c['push'](_0xb5081c['shift']());}}}(a7_0x14fe,0xf0a90));const removeSpace=/\s*/g,trimSpace=/^\s*|\s*$/g,splitSpace=/\s+/;function a7_0x5ec8(_0x56ed63,_0x51ccf5){const _0x14fe51=a7_0x14fe();return a7_0x5ec8=function(_0x5ec804,_0x2d8261){_0x5ec804=_0x5ec804-0xf6;let _0x2b025e=_0x14fe51[_0x5ec804];return _0x2b025e;},a7_0x5ec8(_0x56ed63,_0x51ccf5);}function okhash(_0x12f7c1){const _0x102c73=a7_0x5ec8;if(!_0x12f7c1||!_0x12f7c1[_0x102c73(0x13c)])return 0x0;for(var _0xcc4590=0x0,_0x1c6dda=0x0;_0xcc4590<_0x12f7c1[_0x102c73(0x13c)];_0xcc4590++){_0x1c6dda=(_0x1c6dda<<0x5)-_0x1c6dda+_0x12f7c1[_0x102c73(0xf8)](_0xcc4590)|0x0;}return _0x1c6dda;}function get(_0x157740,_0x434964){return _0x157740['getElementsByTagName'](_0x434964);}function attr(_0x5e3cd0,_0xdf57f1){const _0x5a2be1=a7_0x5ec8;return _0x5e3cd0[_0x5a2be1(0xfc)](_0xdf57f1);}function attrf(_0x138002,_0x2963fb){return parseFloat(attr(_0x138002,_0x2963fb));}function get1(_0xc45cde,_0x5b5089){const _0x1df217=get(_0xc45cde,_0x5b5089);return _0x1df217['length']?_0x1df217[0x0]:null;}function norm(_0x4b5ca5){const _0x1bf29e=a7_0x5ec8;return _0x4b5ca5[_0x1bf29e(0x100)]&&_0x4b5ca5['normalize'](),_0x4b5ca5;}function numarray(_0x418927){const _0x52be9c=a7_0x5ec8;for(var _0x53abc7=0x0,_0x508b51=[];_0x53abc7<_0x418927[_0x52be9c(0x13c)];_0x53abc7++){_0x508b51[_0x53abc7]=parseFloat(_0x418927[_0x53abc7]);}return _0x508b51;}function nodeVal(_0x3e05d9){return _0x3e05d9&&norm(_0x3e05d9),_0x3e05d9&&_0x3e05d9['textContent']||'';}function coord1(_0x539f36){const _0xcb7dbd=a7_0x5ec8;return numarray(_0x539f36['replace'](removeSpace,'')[_0xcb7dbd(0x138)](','));}function a7_0x14fe(){const _0xc5b6dd=['1332208yGMOgn','Polygon','XMLSerializer','1008402tIFmwy','gx:Track','FeatureCollection','browser','features','Feature','LineString','xmldom','outline','width','coordinates','2513lIwEhx','timestamp','begin','TimeSpan','LinearRing','MultiTrack','3848AuQZFf','substr','end','4394072BCYubd','object','Data','stroke-opacity','description','Point','timespan','3245610PaokxD','styleHash','styleMapHash','stroke-width','normal','StyleMap','replace','MultiGeometry','coordTimes','name','color','styleUrl','15377553MakTbv','fill-opacity','gx:coord','stroke','visibility','when','push','SimpleData','split','concat','parse','PolyStyle','length','gx:MultiTrack','Style','TimeStamp','charCodeAt','Track','undefined','xml','getAttribute','25WWmkOX','4699062bxfojW','toString','normalize','LineStyle','ExtendedData','geoms','times','Pair'];a7_0x14fe=function(){return _0xc5b6dd;};return a7_0x14fe();}function coord(_0x10e071){const _0x3202ce=a7_0x5ec8,_0x12f947=_0x10e071[_0x3202ce(0x12a)](trimSpace,'')[_0x3202ce(0x138)](splitSpace),_0x5c8314=[];for(let _0x521a69=0x0;_0x521a69<_0x12f947['length'];_0x521a69++){_0x5c8314[_0x3202ce(0x136)](coord1(_0x12f947[_0x521a69]));}return _0x5c8314;}function fc(){const _0xba7564=a7_0x5ec8;return{'type':_0xba7564(0x10b),'features':[]};}let serializer;if(typeof XMLSerializer!==a7_0x12fe2a(0xfa))serializer=new XMLSerializer();else typeof exports===a7_0x12fe2a(0x11e)&&typeof process===a7_0x12fe2a(0x11e)&&!process[a7_0x12fe2a(0x10c)]&&(serializer=new(require(a7_0x12fe2a(0x110)))[(a7_0x12fe2a(0x108))]());function xml2str(_0x57f52a){const _0x2b13c1=a7_0x12fe2a;if(_0x57f52a['xml']!==undefined)return _0x57f52a[_0x2b13c1(0xfb)];return serializer['serializeToString'](_0x57f52a);}export function kmlToGeoJSON(_0x5a2aa0){const _0xe8bd4e=a7_0x12fe2a,_0xd2278b=fc(),_0xb53316={},_0x26b472={},_0x17aed2={},_0x334994=['Polygon',_0xe8bd4e(0x10f),_0xe8bd4e(0x122),_0xe8bd4e(0xf9),'gx:Track'],_0x3f7167=get(_0x5a2aa0,'Placemark'),_0x43bd28=get(_0x5a2aa0,_0xe8bd4e(0xf6)),_0x4a36d8=get(_0x5a2aa0,_0xe8bd4e(0x129));for(let _0x570748=0x0;_0x570748<_0x43bd28['length'];_0x570748++){const _0x274078=okhash(xml2str(_0x43bd28[_0x570748]))[_0xe8bd4e(0xff)](0x10);_0xb53316['#'+attr(_0x43bd28[_0x570748],'id')]=_0x274078,_0x26b472[_0x274078]=_0x43bd28[_0x570748];}for(let _0x5a3fe9=0x0;_0x5a3fe9<_0x4a36d8[_0xe8bd4e(0x13c)];_0x5a3fe9++){_0xb53316['#'+attr(_0x4a36d8[_0x5a3fe9],'id')]=okhash(xml2str(_0x4a36d8[_0x5a3fe9]))[_0xe8bd4e(0xff)](0x10);const _0x293f96=get(_0x4a36d8[_0x5a3fe9],_0xe8bd4e(0x105)),_0xef206a={};for(let _0x5dd7c0=0x0;_0x5dd7c0<_0x293f96[_0xe8bd4e(0x13c)];_0x5dd7c0++){_0xef206a[nodeVal(get1(_0x293f96[_0x5dd7c0],'key'))]=nodeVal(get1(_0x293f96[_0x5dd7c0],_0xe8bd4e(0x12f)));}_0x17aed2['#'+attr(_0x4a36d8[_0x5a3fe9],'id')]=_0xef206a;}for(let _0x3515a7=0x0;_0x3515a7<_0x3f7167[_0xe8bd4e(0x13c)];_0x3515a7++){_0xd2278b['features']=_0xd2278b[_0xe8bd4e(0x10d)][_0xe8bd4e(0x139)](_0x347bbd(_0x3f7167[_0x3515a7]));}function _0x28d2d3(_0x3f4321){const _0x323e81=_0xe8bd4e;let _0x8b9f75,_0x3de69d=0x0;return _0x3f4321=_0x3f4321||'',_0x3f4321[_0x323e81(0x11b)](0x0,0x1)==='#'&&(_0x3f4321=_0x3f4321[_0x323e81(0x11b)](0x1)),(_0x3f4321[_0x323e81(0x13c)]===0x6||_0x3f4321[_0x323e81(0x13c)]===0x3)&&(_0x8b9f75=_0x3f4321),_0x3f4321[_0x323e81(0x13c)]===0x8&&(_0x3de69d=parseInt(_0x3f4321['substr'](0x0,0x2),0x10)/0xff,_0x8b9f75='#'+_0x3f4321[_0x323e81(0x11b)](0x6,0x2)+_0x3f4321['substr'](0x4,0x2)+_0x3f4321['substr'](0x2,0x2)),[_0x8b9f75,isNaN(_0x3de69d)?undefined:_0x3de69d];}function _0x51f1b0(_0x37a735){return numarray(_0x37a735['split']('\x20'));}function _0x4b7ef9(_0x43204b){const _0x1ca973=_0xe8bd4e;let _0x2eedb0=get(_0x43204b,'coord');const _0x58194c=[],_0x46f7e7=[];_0x2eedb0['length']===0x0&&(_0x2eedb0=get(_0x43204b,_0x1ca973(0x132)));for(let _0x1a6728=0x0;_0x1a6728<_0x2eedb0['length'];_0x1a6728++){_0x58194c[_0x1ca973(0x136)](_0x51f1b0(nodeVal(_0x2eedb0[_0x1a6728])));}const _0x517d88=get(_0x43204b,_0x1ca973(0x135));for(let _0x56d0e5=0x0;_0x56d0e5<_0x517d88[_0x1ca973(0x13c)];_0x56d0e5++){_0x46f7e7[_0x1ca973(0x136)](nodeVal(_0x517d88[_0x56d0e5]));}return{'coords':_0x58194c,'times':_0x46f7e7};}function _0x36806e(_0x29f974){const _0xe4bca5=_0xe8bd4e;let _0x284b47,_0x1c873a,_0x322d2f,_0x50b427,_0x20e1b4;const _0x3400d7=[],_0x625b0c=[];if(get1(_0x29f974,_0xe4bca5(0x12b)))return _0x36806e(get1(_0x29f974,_0xe4bca5(0x12b)));if(get1(_0x29f974,_0xe4bca5(0x119)))return _0x36806e(get1(_0x29f974,'MultiTrack'));if(get1(_0x29f974,_0xe4bca5(0x13d)))return _0x36806e(get1(_0x29f974,_0xe4bca5(0x13d)));for(_0x322d2f=0x0;_0x322d2f<_0x334994[_0xe4bca5(0x13c)];_0x322d2f++){_0x1c873a=get(_0x29f974,_0x334994[_0x322d2f]);if(_0x1c873a)for(_0x50b427=0x0;_0x50b427<_0x1c873a[_0xe4bca5(0x13c)];_0x50b427++){_0x284b47=_0x1c873a[_0x50b427];if(_0x334994[_0x322d2f]==='Point')_0x3400d7[_0xe4bca5(0x136)]({'type':_0xe4bca5(0x122),'coordinates':coord1(nodeVal(get1(_0x284b47,_0xe4bca5(0x113))))});else{if(_0x334994[_0x322d2f]===_0xe4bca5(0x10f))_0x3400d7['push']({'type':'LineString','coordinates':coord(nodeVal(get1(_0x284b47,'coordinates')))});else{if(_0x334994[_0x322d2f]===_0xe4bca5(0x107)){const _0x443c2b=get(_0x284b47,_0xe4bca5(0x118)),_0x4419fe=[];for(_0x20e1b4=0x0;_0x20e1b4<_0x443c2b[_0xe4bca5(0x13c)];_0x20e1b4++){_0x4419fe[_0xe4bca5(0x136)](coord(nodeVal(get1(_0x443c2b[_0x20e1b4],_0xe4bca5(0x113)))));}_0x3400d7[_0xe4bca5(0x136)]({'type':'Polygon','coordinates':_0x4419fe});}else{if(_0x334994[_0x322d2f]===_0xe4bca5(0xf9)||_0x334994[_0x322d2f]===_0xe4bca5(0x10a)){const _0x3daf4b=_0x4b7ef9(_0x284b47);_0x3400d7[_0xe4bca5(0x136)]({'type':_0xe4bca5(0x10f),'coordinates':_0x3daf4b['coords']}),_0x3daf4b[_0xe4bca5(0x104)][_0xe4bca5(0x13c)]&&_0x625b0c[_0xe4bca5(0x136)](_0x3daf4b[_0xe4bca5(0x104)]);}}}}}}return{'geoms':_0x3400d7,'coordTimes':_0x625b0c};}function _0x347bbd(_0x5dab63){const _0x447439=_0xe8bd4e,_0x574859=_0x36806e(_0x5dab63);let _0x43d60f;const _0x1033b7={},_0x20d9de=nodeVal(get1(_0x5dab63,_0x447439(0x12d)));let _0x57250e=nodeVal(get1(_0x5dab63,_0x447439(0x12f)));const _0x36e71f=nodeVal(get1(_0x5dab63,_0x447439(0x121))),_0x4fc63f=get1(_0x5dab63,_0x447439(0x117)),_0x2cd6b2=get1(_0x5dab63,_0x447439(0xf7)),_0xa945d7=get1(_0x5dab63,_0x447439(0x102));let _0x1b8e99=get1(_0x5dab63,_0x447439(0x101)),_0x361407=get1(_0x5dab63,_0x447439(0x13b));const _0x4c06ac=get1(_0x5dab63,'visibility');if(!_0x574859[_0x447439(0x103)]['length'])return[];_0x20d9de&&(_0x1033b7[_0x447439(0x12d)]=_0x20d9de);if(_0x57250e){_0x57250e[0x0]!=='#'&&(_0x57250e='#'+_0x57250e);_0x1033b7['styleUrl']=_0x57250e;_0xb53316[_0x57250e]&&(_0x1033b7['styleHash']=_0xb53316[_0x57250e]);_0x17aed2[_0x57250e]&&(_0x1033b7[_0x447439(0x126)]=_0x17aed2[_0x57250e],_0x1033b7[_0x447439(0x125)]=_0xb53316[_0x17aed2[_0x57250e][_0x447439(0x128)]]);const _0x3a2551=_0x26b472[_0x1033b7[_0x447439(0x125)]];_0x3a2551&&(!_0x1b8e99&&(_0x1b8e99=get1(_0x3a2551,_0x447439(0x101))),!_0x361407&&(_0x361407=get1(_0x3a2551,_0x447439(0x13b))));}_0x36e71f&&(_0x1033b7[_0x447439(0x121)]=_0x36e71f);if(_0x4fc63f){const _0x12ab55=nodeVal(get1(_0x4fc63f,_0x447439(0x116))),_0x434d22=nodeVal(get1(_0x4fc63f,_0x447439(0x11c)));_0x1033b7[_0x447439(0x123)]={'begin':_0x12ab55,'end':_0x434d22};}_0x2cd6b2&&(_0x1033b7[_0x447439(0x115)]=nodeVal(get1(_0x2cd6b2,_0x447439(0x135))));if(_0x1b8e99){const _0x3b91d=_0x28d2d3(nodeVal(get1(_0x1b8e99,_0x447439(0x12e)))),_0x48ec5f=_0x3b91d[0x0],_0x466e51=_0x3b91d[0x1],_0x4f4829=parseFloat(nodeVal(get1(_0x1b8e99,_0x447439(0x112))));_0x48ec5f&&(_0x1033b7[_0x447439(0x133)]=_0x48ec5f),!isNaN(_0x466e51)&&(_0x1033b7[_0x447439(0x120)]=_0x466e51),!isNaN(_0x4f4829)&&(_0x1033b7[_0x447439(0x127)]=_0x4f4829);}if(_0x361407){const _0x14f12c=_0x28d2d3(nodeVal(get1(_0x361407,'color'))),_0x1eb38d=_0x14f12c[0x0],_0x3d80a7=_0x14f12c[0x1],_0x2eda10=nodeVal(get1(_0x361407,'fill')),_0x1ecd44=nodeVal(get1(_0x361407,_0x447439(0x111)));_0x1eb38d&&(_0x1033b7['fill']=_0x1eb38d),!isNaN(_0x3d80a7)&&(_0x1033b7[_0x447439(0x131)]=_0x3d80a7),_0x2eda10&&(_0x1033b7['fill-opacity']=_0x2eda10==='1'?_0x1033b7[_0x447439(0x131)]||0x1:0x0),_0x1ecd44&&(_0x1033b7[_0x447439(0x120)]=_0x1ecd44==='1'?_0x1033b7['stroke-opacity']||0x1:0x0);}if(_0xa945d7){const _0x442b7a=get(_0xa945d7,_0x447439(0x11f)),_0x1dfdd6=get(_0xa945d7,_0x447439(0x137));for(_0x43d60f=0x0;_0x43d60f<_0x442b7a[_0x447439(0x13c)];_0x43d60f++){const _0x4d6e57=_0x442b7a[_0x43d60f][_0x447439(0xfc)](_0x447439(0x12d));let _0x1fed4c=nodeVal(get1(_0x442b7a[_0x43d60f],'value'));try{_0x1fed4c=JSON[_0x447439(0x13a)](_0x1fed4c);}catch(_0xebe2b){}_0x1033b7[_0x4d6e57]=_0x1fed4c;}for(_0x43d60f=0x0;_0x43d60f<_0x1dfdd6[_0x447439(0x13c)];_0x43d60f++){const _0x36aa18=_0x1dfdd6[_0x43d60f]['getAttribute'](_0x447439(0x12d));let _0x5f5200=nodeVal(_0x1dfdd6[_0x43d60f]);try{_0x5f5200=JSON[_0x447439(0x13a)](_0x5f5200);}catch(_0x3827ce){}_0x1033b7[_0x36aa18]=_0x5f5200;}}_0x4c06ac&&(_0x1033b7[_0x447439(0x134)]=nodeVal(_0x4c06ac));_0x574859[_0x447439(0x12c)][_0x447439(0x13c)]&&(_0x1033b7['coordTimes']=_0x574859[_0x447439(0x12c)][_0x447439(0x13c)]===0x1?_0x574859['coordTimes'][0x0]:_0x574859[_0x447439(0x12c)]);const _0x4ce5a1={'type':_0x447439(0x10e),'geometry':_0x574859[_0x447439(0x103)][_0x447439(0x13c)]===0x1?_0x574859[_0x447439(0x103)][0x0]:{'type':'GeometryCollection','geometries':_0x574859[_0x447439(0x103)]},'properties':_0x1033b7};return attr(_0x5dab63,'id')&&(_0x4ce5a1['id']=attr(_0x5dab63,'id')),[_0x4ce5a1];}return _0xd2278b;}
1
+ const a7_0x5a3331=a7_0x205c;(function(_0x236b7e,_0x1db0e9){const _0x3576f6=a7_0x205c,_0xd74b2a=_0x236b7e();while(!![]){try{const _0x2f537b=parseInt(_0x3576f6(0x1ad))/0x1+parseInt(_0x3576f6(0x1aa))/0x2+-parseInt(_0x3576f6(0x194))/0x3*(-parseInt(_0x3576f6(0x1ac))/0x4)+parseInt(_0x3576f6(0x196))/0x5*(-parseInt(_0x3576f6(0x175))/0x6)+-parseInt(_0x3576f6(0x19a))/0x7+-parseInt(_0x3576f6(0x1a3))/0x8+parseInt(_0x3576f6(0x195))/0x9;if(_0x2f537b===_0x1db0e9)break;else _0xd74b2a['push'](_0xd74b2a['shift']());}catch(_0x5cd4a2){_0xd74b2a['push'](_0xd74b2a['shift']());}}}(a7_0x17c0,0xeff7f));const removeSpace=/\s*/g,trimSpace=/^\s*|\s*$/g,splitSpace=/\s+/;function okhash(_0x3a200c){const _0x19d8ca=a7_0x205c;if(!_0x3a200c||!_0x3a200c[_0x19d8ca(0x16f)])return 0x0;for(var _0x15abcd=0x0,_0x379e40=0x0;_0x15abcd<_0x3a200c[_0x19d8ca(0x16f)];_0x15abcd++){_0x379e40=(_0x379e40<<0x5)-_0x379e40+_0x3a200c['charCodeAt'](_0x15abcd)|0x0;}return _0x379e40;}function get(_0x20a270,_0x58fb58){const _0x20ccb0=a7_0x205c;return _0x20a270[_0x20ccb0(0x19c)](_0x58fb58);}function a7_0x17c0(){const _0x46e42d=['395907BYRcbO','Track','fill-opacity','xmldom','length','stroke-width','PolyStyle','ExtendedData','Placemark','begin','36474JYeLLj','fill','geoms','color','split','styleMapHash','name','styleUrl','LineString','MultiTrack','browser','timespan','Pair','when','coordinates','timestamp','getAttribute','replace','gx:MultiTrack','coordTimes','XMLSerializer','undefined','features','xml','SimpleData','times','outline','Point','LinearRing','normalize','TimeSpan','1987191WBhqRM','8831061PjcApS','1080FlAZyA','visibility','stroke','object','2682771jMYkAz','StyleMap','getElementsByTagName','MultiGeometry','parse','Data','stroke-opacity','substr','description','10591288pWnqcR','normal','styleHash','toString','Polygon','push','coords','3927212ERdeIq','Style','4kNRVfy'];a7_0x17c0=function(){return _0x46e42d;};return a7_0x17c0();}function attr(_0x48bf70,_0x13243f){const _0xbe2856=a7_0x205c;return _0x48bf70[_0xbe2856(0x185)](_0x13243f);}function attrf(_0x57a2eb,_0x12b944){return parseFloat(attr(_0x57a2eb,_0x12b944));}function get1(_0x123885,_0x447cf9){const _0x3c6d01=a7_0x205c,_0x5ae5fc=get(_0x123885,_0x447cf9);return _0x5ae5fc[_0x3c6d01(0x16f)]?_0x5ae5fc[0x0]:null;}function norm(_0x1e3bc4){const _0x584159=a7_0x205c;return _0x1e3bc4['normalize']&&_0x1e3bc4[_0x584159(0x192)](),_0x1e3bc4;}function a7_0x205c(_0x572896,_0xe33927){const _0x17c012=a7_0x17c0();return a7_0x205c=function(_0x205c3e,_0x43e855){_0x205c3e=_0x205c3e-0x16c;let _0x37be77=_0x17c012[_0x205c3e];return _0x37be77;},a7_0x205c(_0x572896,_0xe33927);}function numarray(_0x346fc0){const _0x1328bb=a7_0x205c;for(var _0x5f492e=0x0,_0x3c323a=[];_0x5f492e<_0x346fc0[_0x1328bb(0x16f)];_0x5f492e++){_0x3c323a[_0x5f492e]=parseFloat(_0x346fc0[_0x5f492e]);}return _0x3c323a;}function nodeVal(_0x2953c6){return _0x2953c6&&norm(_0x2953c6),_0x2953c6&&_0x2953c6['textContent']||'';}function coord1(_0x1136ec){const _0x10d5d6=a7_0x205c;return numarray(_0x1136ec[_0x10d5d6(0x186)](removeSpace,'')[_0x10d5d6(0x179)](','));}function coord(_0x1e1a2e){const _0x114e72=a7_0x205c,_0x56db28=_0x1e1a2e[_0x114e72(0x186)](trimSpace,'')[_0x114e72(0x179)](splitSpace),_0x339e11=[];for(let _0x28e1b4=0x0;_0x28e1b4<_0x56db28[_0x114e72(0x16f)];_0x28e1b4++){_0x339e11[_0x114e72(0x1a8)](coord1(_0x56db28[_0x28e1b4]));}return _0x339e11;}function fc(){return{'type':'FeatureCollection','features':[]};}let serializer;if(typeof XMLSerializer!==a7_0x5a3331(0x18a))serializer=new XMLSerializer();else typeof exports===a7_0x5a3331(0x199)&&typeof process===a7_0x5a3331(0x199)&&!process[a7_0x5a3331(0x17f)]&&(serializer=new(require(a7_0x5a3331(0x16e)))[(a7_0x5a3331(0x189))]());function xml2str(_0x382586){const _0x5481ab=a7_0x5a3331;if(_0x382586[_0x5481ab(0x18c)]!==undefined)return _0x382586[_0x5481ab(0x18c)];return serializer['serializeToString'](_0x382586);}export function kmlToGeoJSON(_0xfb81c){const _0x46d1fa=a7_0x5a3331,_0x4927b0=fc(),_0x5ca58e={},_0xe59b8b={},_0x5d913d={},_0x91ca32=[_0x46d1fa(0x1a7),_0x46d1fa(0x17d),_0x46d1fa(0x190),_0x46d1fa(0x16c),'gx:Track'],_0x69da7f=get(_0xfb81c,_0x46d1fa(0x173)),_0x1503bb=get(_0xfb81c,_0x46d1fa(0x1ab)),_0x3bec1f=get(_0xfb81c,_0x46d1fa(0x19b));for(let _0x2eb8b2=0x0;_0x2eb8b2<_0x1503bb[_0x46d1fa(0x16f)];_0x2eb8b2++){const _0x2f5b35=okhash(xml2str(_0x1503bb[_0x2eb8b2]))[_0x46d1fa(0x1a6)](0x10);_0x5ca58e['#'+attr(_0x1503bb[_0x2eb8b2],'id')]=_0x2f5b35,_0xe59b8b[_0x2f5b35]=_0x1503bb[_0x2eb8b2];}for(let _0x5e0659=0x0;_0x5e0659<_0x3bec1f[_0x46d1fa(0x16f)];_0x5e0659++){_0x5ca58e['#'+attr(_0x3bec1f[_0x5e0659],'id')]=okhash(xml2str(_0x3bec1f[_0x5e0659]))['toString'](0x10);const _0x5b553e=get(_0x3bec1f[_0x5e0659],_0x46d1fa(0x181)),_0x369435={};for(let _0x5f557f=0x0;_0x5f557f<_0x5b553e[_0x46d1fa(0x16f)];_0x5f557f++){_0x369435[nodeVal(get1(_0x5b553e[_0x5f557f],'key'))]=nodeVal(get1(_0x5b553e[_0x5f557f],_0x46d1fa(0x17c)));}_0x5d913d['#'+attr(_0x3bec1f[_0x5e0659],'id')]=_0x369435;}for(let _0x31b6ff=0x0;_0x31b6ff<_0x69da7f[_0x46d1fa(0x16f)];_0x31b6ff++){_0x4927b0['features']=_0x4927b0[_0x46d1fa(0x18b)]['concat'](_0x100355(_0x69da7f[_0x31b6ff]));}function _0x49555e(_0x22cdf7){const _0x2647c7=_0x46d1fa;let _0x2b861a,_0x51cfba=0x0;return _0x22cdf7=_0x22cdf7||'',_0x22cdf7[_0x2647c7(0x1a1)](0x0,0x1)==='#'&&(_0x22cdf7=_0x22cdf7[_0x2647c7(0x1a1)](0x1)),(_0x22cdf7[_0x2647c7(0x16f)]===0x6||_0x22cdf7[_0x2647c7(0x16f)]===0x3)&&(_0x2b861a=_0x22cdf7),_0x22cdf7[_0x2647c7(0x16f)]===0x8&&(_0x51cfba=parseInt(_0x22cdf7['substr'](0x0,0x2),0x10)/0xff,_0x2b861a='#'+_0x22cdf7[_0x2647c7(0x1a1)](0x6,0x2)+_0x22cdf7['substr'](0x4,0x2)+_0x22cdf7['substr'](0x2,0x2)),[_0x2b861a,isNaN(_0x51cfba)?undefined:_0x51cfba];}function _0x3cda0a(_0x167166){const _0x431508=_0x46d1fa;return numarray(_0x167166[_0x431508(0x179)]('\x20'));}function _0xbdd319(_0x1ed667){const _0x189683=_0x46d1fa;let _0x38c9eb=get(_0x1ed667,'coord');const _0x3aad20=[],_0x5b4cb3=[];_0x38c9eb['length']===0x0&&(_0x38c9eb=get(_0x1ed667,'gx:coord'));for(let _0x408aa0=0x0;_0x408aa0<_0x38c9eb['length'];_0x408aa0++){_0x3aad20['push'](_0x3cda0a(nodeVal(_0x38c9eb[_0x408aa0])));}const _0x19041c=get(_0x1ed667,_0x189683(0x182));for(let _0x25613f=0x0;_0x25613f<_0x19041c[_0x189683(0x16f)];_0x25613f++){_0x5b4cb3[_0x189683(0x1a8)](nodeVal(_0x19041c[_0x25613f]));}return{'coords':_0x3aad20,'times':_0x5b4cb3};}function _0x3f9967(_0x136cf6){const _0x6bd116=_0x46d1fa;let _0x1416de,_0x36dce6,_0x43187e,_0x29c4fa,_0x434d8e;const _0x4b0871=[],_0x3bd512=[];if(get1(_0x136cf6,_0x6bd116(0x19d)))return _0x3f9967(get1(_0x136cf6,_0x6bd116(0x19d)));if(get1(_0x136cf6,_0x6bd116(0x17e)))return _0x3f9967(get1(_0x136cf6,_0x6bd116(0x17e)));if(get1(_0x136cf6,'gx:MultiTrack'))return _0x3f9967(get1(_0x136cf6,_0x6bd116(0x187)));for(_0x43187e=0x0;_0x43187e<_0x91ca32[_0x6bd116(0x16f)];_0x43187e++){_0x36dce6=get(_0x136cf6,_0x91ca32[_0x43187e]);if(_0x36dce6)for(_0x29c4fa=0x0;_0x29c4fa<_0x36dce6[_0x6bd116(0x16f)];_0x29c4fa++){_0x1416de=_0x36dce6[_0x29c4fa];if(_0x91ca32[_0x43187e]===_0x6bd116(0x190))_0x4b0871[_0x6bd116(0x1a8)]({'type':_0x6bd116(0x190),'coordinates':coord1(nodeVal(get1(_0x1416de,'coordinates')))});else{if(_0x91ca32[_0x43187e]===_0x6bd116(0x17d))_0x4b0871[_0x6bd116(0x1a8)]({'type':_0x6bd116(0x17d),'coordinates':coord(nodeVal(get1(_0x1416de,_0x6bd116(0x183))))});else{if(_0x91ca32[_0x43187e]===_0x6bd116(0x1a7)){const _0x568d4c=get(_0x1416de,_0x6bd116(0x191)),_0x18e32d=[];for(_0x434d8e=0x0;_0x434d8e<_0x568d4c[_0x6bd116(0x16f)];_0x434d8e++){_0x18e32d[_0x6bd116(0x1a8)](coord(nodeVal(get1(_0x568d4c[_0x434d8e],'coordinates'))));}_0x4b0871['push']({'type':_0x6bd116(0x1a7),'coordinates':_0x18e32d});}else{if(_0x91ca32[_0x43187e]==='Track'||_0x91ca32[_0x43187e]==='gx:Track'){const _0x526506=_0xbdd319(_0x1416de);_0x4b0871[_0x6bd116(0x1a8)]({'type':_0x6bd116(0x17d),'coordinates':_0x526506[_0x6bd116(0x1a9)]}),_0x526506[_0x6bd116(0x18e)]['length']&&_0x3bd512[_0x6bd116(0x1a8)](_0x526506['times']);}}}}}}return{'geoms':_0x4b0871,'coordTimes':_0x3bd512};}function _0x100355(_0x154e5a){const _0x343f34=_0x46d1fa,_0x4e2cf0=_0x3f9967(_0x154e5a);let _0x30a402;const _0x32f479={},_0x15ccfd=nodeVal(get1(_0x154e5a,_0x343f34(0x17b)));let _0xbf4199=nodeVal(get1(_0x154e5a,_0x343f34(0x17c)));const _0x1dedf1=nodeVal(get1(_0x154e5a,_0x343f34(0x1a2))),_0x32d720=get1(_0x154e5a,_0x343f34(0x193)),_0x41c80a=get1(_0x154e5a,'TimeStamp'),_0x3dbc5f=get1(_0x154e5a,_0x343f34(0x172));let _0x34cdfa=get1(_0x154e5a,'LineStyle'),_0x4bcf86=get1(_0x154e5a,_0x343f34(0x171));const _0x4e0048=get1(_0x154e5a,_0x343f34(0x197));if(!_0x4e2cf0[_0x343f34(0x177)]['length'])return[];_0x15ccfd&&(_0x32f479[_0x343f34(0x17b)]=_0x15ccfd);if(_0xbf4199){_0xbf4199[0x0]!=='#'&&(_0xbf4199='#'+_0xbf4199);_0x32f479[_0x343f34(0x17c)]=_0xbf4199;_0x5ca58e[_0xbf4199]&&(_0x32f479[_0x343f34(0x1a5)]=_0x5ca58e[_0xbf4199]);_0x5d913d[_0xbf4199]&&(_0x32f479[_0x343f34(0x17a)]=_0x5d913d[_0xbf4199],_0x32f479['styleHash']=_0x5ca58e[_0x5d913d[_0xbf4199][_0x343f34(0x1a4)]]);const _0x9cb1c8=_0xe59b8b[_0x32f479[_0x343f34(0x1a5)]];_0x9cb1c8&&(!_0x34cdfa&&(_0x34cdfa=get1(_0x9cb1c8,'LineStyle')),!_0x4bcf86&&(_0x4bcf86=get1(_0x9cb1c8,'PolyStyle')));}_0x1dedf1&&(_0x32f479[_0x343f34(0x1a2)]=_0x1dedf1);if(_0x32d720){const _0x3a0670=nodeVal(get1(_0x32d720,_0x343f34(0x174))),_0x42d1e4=nodeVal(get1(_0x32d720,'end'));_0x32f479[_0x343f34(0x180)]={'begin':_0x3a0670,'end':_0x42d1e4};}_0x41c80a&&(_0x32f479[_0x343f34(0x184)]=nodeVal(get1(_0x41c80a,_0x343f34(0x182))));if(_0x34cdfa){const _0x15fff6=_0x49555e(nodeVal(get1(_0x34cdfa,_0x343f34(0x178)))),_0x31744f=_0x15fff6[0x0],_0xc478f1=_0x15fff6[0x1],_0x4c0cda=parseFloat(nodeVal(get1(_0x34cdfa,'width')));_0x31744f&&(_0x32f479[_0x343f34(0x198)]=_0x31744f),!isNaN(_0xc478f1)&&(_0x32f479[_0x343f34(0x1a0)]=_0xc478f1),!isNaN(_0x4c0cda)&&(_0x32f479[_0x343f34(0x170)]=_0x4c0cda);}if(_0x4bcf86){const _0x1d4105=_0x49555e(nodeVal(get1(_0x4bcf86,_0x343f34(0x178)))),_0x58a2c1=_0x1d4105[0x0],_0x525369=_0x1d4105[0x1],_0xd585bc=nodeVal(get1(_0x4bcf86,_0x343f34(0x176))),_0x319abe=nodeVal(get1(_0x4bcf86,_0x343f34(0x18f)));_0x58a2c1&&(_0x32f479[_0x343f34(0x176)]=_0x58a2c1),!isNaN(_0x525369)&&(_0x32f479[_0x343f34(0x16d)]=_0x525369),_0xd585bc&&(_0x32f479[_0x343f34(0x16d)]=_0xd585bc==='1'?_0x32f479[_0x343f34(0x16d)]||0x1:0x0),_0x319abe&&(_0x32f479[_0x343f34(0x1a0)]=_0x319abe==='1'?_0x32f479['stroke-opacity']||0x1:0x0);}if(_0x3dbc5f){const _0x460f44=get(_0x3dbc5f,_0x343f34(0x19f)),_0x369e12=get(_0x3dbc5f,_0x343f34(0x18d));for(_0x30a402=0x0;_0x30a402<_0x460f44[_0x343f34(0x16f)];_0x30a402++){const _0x373296=_0x460f44[_0x30a402][_0x343f34(0x185)](_0x343f34(0x17b));let _0x50fac7=nodeVal(get1(_0x460f44[_0x30a402],'value'));try{_0x50fac7=JSON[_0x343f34(0x19e)](_0x50fac7);}catch(_0x530bd7){}_0x32f479[_0x373296]=_0x50fac7;}for(_0x30a402=0x0;_0x30a402<_0x369e12[_0x343f34(0x16f)];_0x30a402++){const _0x9e78b6=_0x369e12[_0x30a402][_0x343f34(0x185)](_0x343f34(0x17b));let _0x49db7a=nodeVal(_0x369e12[_0x30a402]);try{_0x49db7a=JSON[_0x343f34(0x19e)](_0x49db7a);}catch(_0x159a1f){}_0x32f479[_0x9e78b6]=_0x49db7a;}}_0x4e0048&&(_0x32f479['visibility']=nodeVal(_0x4e0048));_0x4e2cf0[_0x343f34(0x188)][_0x343f34(0x16f)]&&(_0x32f479[_0x343f34(0x188)]=_0x4e2cf0[_0x343f34(0x188)][_0x343f34(0x16f)]===0x1?_0x4e2cf0[_0x343f34(0x188)][0x0]:_0x4e2cf0['coordTimes']);const _0x3a7ec9={'type':'Feature','geometry':_0x4e2cf0[_0x343f34(0x177)][_0x343f34(0x16f)]===0x1?_0x4e2cf0[_0x343f34(0x177)][0x0]:{'type':'GeometryCollection','geometries':_0x4e2cf0[_0x343f34(0x177)]},'properties':_0x32f479};return attr(_0x154e5a,'id')&&(_0x3a7ec9['id']=attr(_0x154e5a,'id')),[_0x3a7ec9];}return _0x4927b0;}
package/entity/Feature.js CHANGED
@@ -1 +1 @@
1
- (function(_0x48f90f,_0x2bd226){var _0x444ecf=a9_0x275a,_0x527a3f=_0x48f90f();while(!![]){try{var _0x34e1be=-parseInt(_0x444ecf(0x100))/0x1*(-parseInt(_0x444ecf(0x101))/0x2)+-parseInt(_0x444ecf(0x105))/0x3+parseInt(_0x444ecf(0x103))/0x4*(parseInt(_0x444ecf(0xfd))/0x5)+-parseInt(_0x444ecf(0x104))/0x6*(parseInt(_0x444ecf(0x107))/0x7)+parseInt(_0x444ecf(0x106))/0x8*(-parseInt(_0x444ecf(0xff))/0x9)+-parseInt(_0x444ecf(0x102))/0xa+parseInt(_0x444ecf(0xfe))/0xb;if(_0x34e1be===_0x2bd226)break;else _0x527a3f['push'](_0x527a3f['shift']());}catch(_0x2f1b87){_0x527a3f['push'](_0x527a3f['shift']());}}}(a9_0x5b94,0x3f42c));import{Feature as a9_0x430287}from'ol';function a9_0x275a(_0x13572e,_0x592ccc){var _0x5b948e=a9_0x5b94();return a9_0x275a=function(_0x275ab8,_0x38998a){_0x275ab8=_0x275ab8-0xfd;var _0x103ce9=_0x5b948e[_0x275ab8];return _0x103ce9;},a9_0x275a(_0x13572e,_0x592ccc);}function a9_0x5b94(){var _0x1ba762=['6288GfHppj','186264crQsHU','1953104aGQOeH','1274PRoEBs','65ZgokfG','3613346PUUytG','18VMGAYM','7099LzlCHb','134arelcg','55200LfsuEB','62036xjOgjm'];a9_0x5b94=function(){return _0x1ba762;};return a9_0x5b94();}export default class Feature extends a9_0x430287{constructor(){super();}}
1
+ function a9_0x4212(_0x511e61,_0x5bd830){var _0x308838=a9_0x3088();return a9_0x4212=function(_0x4212f4,_0x36be26){_0x4212f4=_0x4212f4-0xdb;var _0x580971=_0x308838[_0x4212f4];return _0x580971;},a9_0x4212(_0x511e61,_0x5bd830);}function a9_0x3088(){var _0x48327a=['12zxDHyv','1672342AGGccM','1214020ftfVar','2535340PnUAuo','8neoUqM','2bkjoNu','124527ItpoRI','2396403kYxayb','841192TQbPNY','1064133TdqDuL'];a9_0x3088=function(){return _0x48327a;};return a9_0x3088();}(function(_0x2f9872,_0x123124){var _0x522444=a9_0x4212,_0x3f6587=_0x2f9872();while(!![]){try{var _0x275100=parseInt(_0x522444(0xe1))/0x1+parseInt(_0x522444(0xe0))/0x2*(parseInt(_0x522444(0xe4))/0x3)+parseInt(_0x522444(0xe3))/0x4+-parseInt(_0x522444(0xde))/0x5+-parseInt(_0x522444(0xdb))/0x6*(-parseInt(_0x522444(0xdc))/0x7)+parseInt(_0x522444(0xdf))/0x8*(-parseInt(_0x522444(0xe2))/0x9)+-parseInt(_0x522444(0xdd))/0xa;if(_0x275100===_0x123124)break;else _0x3f6587['push'](_0x3f6587['shift']());}catch(_0x1b367b){_0x3f6587['push'](_0x3f6587['shift']());}}}(a9_0x3088,0x428e3));import{Feature as a9_0x21845e}from'ol';export default class Feature extends a9_0x21845e{constructor(){super();}}
@@ -1 +1 @@
1
- function a10_0x1553(_0xac92db,_0x28480c){var _0x239a3b=a10_0x239a();return a10_0x1553=function(_0x15530b,_0xf5e539){_0x15530b=_0x15530b-0xe1;var _0x4805e8=_0x239a3b[_0x15530b];return _0x4805e8;},a10_0x1553(_0xac92db,_0x28480c);}var a10_0x154f52=a10_0x1553;(function(_0x55a9c5,_0xfb34f6){var _0x389cab=a10_0x1553,_0x19a07f=_0x55a9c5();while(!![]){try{var _0x23daca=-parseInt(_0x389cab(0xe7))/0x1+parseInt(_0x389cab(0xe4))/0x2+parseInt(_0x389cab(0xe2))/0x3+parseInt(_0x389cab(0xf2))/0x4+-parseInt(_0x389cab(0xf7))/0x5+-parseInt(_0x389cab(0xf1))/0x6+parseInt(_0x389cab(0xf4))/0x7*(parseInt(_0x389cab(0xf6))/0x8);if(_0x23daca===_0xfb34f6)break;else _0x19a07f['push'](_0x19a07f['shift']());}catch(_0x4ce56a){_0x19a07f['push'](_0x19a07f['shift']());}}}(a10_0x239a,0x791fa));class GeometryType{}function a10_0x239a(){var _0x5274a5=['arrow','1916028FKQhaQ','assembly_site','rectangle','107650YrCapm','AssemblySite','curve','ellipsoid','Circle','Ellipsoid','surface-closed','arrow_attack','Point','polygon','1054878oiVFkS','2772608sYLnCT','polyline','14GmMZLR','Curve','221264yaxipz','4858525cLegvU','ArrowAttack','Rectangle','circle','134424jUdajf'];a10_0x239a=function(){return _0x5274a5;};return a10_0x239a();}GeometryType[a10_0x154f52(0xef)]='point',GeometryType['PolyLine']=a10_0x154f52(0xf3),GeometryType['Polygon']=a10_0x154f52(0xf0),GeometryType[a10_0x154f52(0xf9)]=a10_0x154f52(0xe6),GeometryType[a10_0x154f52(0xeb)]=a10_0x154f52(0xe1),GeometryType[a10_0x154f52(0xf5)]=a10_0x154f52(0xe9),GeometryType['Ellipse']='ellipse',GeometryType[a10_0x154f52(0xec)]=a10_0x154f52(0xea),GeometryType['Arrow']=a10_0x154f52(0xe3),GeometryType[a10_0x154f52(0xf8)]=a10_0x154f52(0xee),GeometryType['ArrowPincerlike']='arrow_pincerlike',GeometryType[a10_0x154f52(0xe8)]=a10_0x154f52(0xe5),GeometryType['SurfaceClosed']=a10_0x154f52(0xed);export default GeometryType;
1
+ var a10_0x23a28c=a10_0x1d9e;(function(_0x24ae72,_0x16b9ba){var _0x70bff3=a10_0x1d9e,_0x2193dc=_0x24ae72();while(!![]){try{var _0x3afaa7=-parseInt(_0x70bff3(0xd2))/0x1*(parseInt(_0x70bff3(0xe2))/0x2)+parseInt(_0x70bff3(0xcf))/0x3+parseInt(_0x70bff3(0xdd))/0x4*(-parseInt(_0x70bff3(0xd0))/0x5)+parseInt(_0x70bff3(0xe3))/0x6*(parseInt(_0x70bff3(0xdc))/0x7)+parseInt(_0x70bff3(0xdf))/0x8+parseInt(_0x70bff3(0xd7))/0x9+-parseInt(_0x70bff3(0xd5))/0xa*(parseInt(_0x70bff3(0xe7))/0xb);if(_0x3afaa7===_0x16b9ba)break;else _0x2193dc['push'](_0x2193dc['shift']());}catch(_0x3b92e1){_0x2193dc['push'](_0x2193dc['shift']());}}}(a10_0x152d,0x9039d));class GeometryType{}GeometryType['Point']=a10_0x23a28c(0xe0),GeometryType[a10_0x23a28c(0xe4)]='polyline',GeometryType['Polygon']='polygon',GeometryType['Rectangle']='rectangle',GeometryType['Circle']='circle',GeometryType[a10_0x23a28c(0xd8)]=a10_0x23a28c(0xce),GeometryType[a10_0x23a28c(0xe6)]=a10_0x23a28c(0xd3),GeometryType['Ellipsoid']=a10_0x23a28c(0xe5),GeometryType[a10_0x23a28c(0xe1)]='arrow',GeometryType[a10_0x23a28c(0xdb)]='arrow_attack',GeometryType[a10_0x23a28c(0xde)]=a10_0x23a28c(0xd9),GeometryType[a10_0x23a28c(0xd6)]=a10_0x23a28c(0xd4),GeometryType[a10_0x23a28c(0xda)]=a10_0x23a28c(0xd1);export default GeometryType;function a10_0x1d9e(_0x30c981,_0x28da6c){var _0x152d84=a10_0x152d();return a10_0x1d9e=function(_0x1d9eb2,_0x4cb67b){_0x1d9eb2=_0x1d9eb2-0xce;var _0x3c6e7b=_0x152d84[_0x1d9eb2];return _0x3c6e7b;},a10_0x1d9e(_0x30c981,_0x28da6c);}function a10_0x152d(){var _0x287aa9=['surface-closed','15461Ppygop','ellipse','assembly_site','189870lobNRj','AssemblySite','1416744bTcORD','Curve','arrow_pincerlike','SurfaceClosed','ArrowAttack','7mxzjEr','96MqZEmV','ArrowPincerlike','3244032qrAGlY','point','Arrow','26gFUHcz','6701742XsfTMi','PolyLine','ellipsoid','Ellipse','495gNtUfZ','curve','986184mMbsvP','75510SZHMyq'];a10_0x152d=function(){return _0x287aa9;};return a10_0x152d();}
@@ -1 +1 @@
1
- const a27_0x19f4dd=a27_0x591a;(function(_0x464a3a,_0x3b2660){const _0x5ee204=a27_0x591a,_0x1f1698=_0x464a3a();while(!![]){try{const _0x24d73f=-parseInt(_0x5ee204(0xc1))/0x1*(parseInt(_0x5ee204(0xb8))/0x2)+parseInt(_0x5ee204(0xd1))/0x3*(-parseInt(_0x5ee204(0xca))/0x4)+parseInt(_0x5ee204(0xbe))/0x5+parseInt(_0x5ee204(0xd2))/0x6+parseInt(_0x5ee204(0xb1))/0x7+parseInt(_0x5ee204(0xbb))/0x8+parseInt(_0x5ee204(0xb2))/0x9*(parseInt(_0x5ee204(0xd4))/0xa);if(_0x24d73f===_0x3b2660)break;else _0x1f1698['push'](_0x1f1698['shift']());}catch(_0x521fd8){_0x1f1698['push'](_0x1f1698['shift']());}}}(a27_0x5aa7,0xf30f1));function a27_0x591a(_0x21c40c,_0x29e097){const _0x5aa709=a27_0x5aa7();return a27_0x591a=function(_0x591ac9,_0x2b2459){_0x591ac9=_0x591ac9-0xaf;let _0x29f2da=_0x5aa709[_0x591ac9];return _0x29f2da;},a27_0x591a(_0x21c40c,_0x29e097);}function a27_0x5aa7(){const _0x62aac9=['removeLayer','geometryType','getVisible','length','flashFeatures','getLineTempLayer','1497036rSdGrC','704772LFxFJO','layerInfo','10MvEPFp','features','getFeatures','tempLayer','layerId','10857637VPlImT','532242KmSSYP','flash_layer','setVisible','getPointTempLayer','filter','forEach','3823948KIGuWH','map','isSelected','12764616bNmjtj','tag','getPolygonTempLayer','416435QefhaO','getTempSelectedFeatures','getSelectedFeatures','1httuIr','getSource','addLayer','getLayersById','removeFeature','push','addFeatures','kmlImport','readFeature','4VFbQNa'];a27_0x5aa7=function(){return _0x62aac9;};return a27_0x5aa7();}import a27_0x15611c from'ol/layer/Vector';import a27_0x3fb41b from'ol/source/Vector';import{toGeoJSON}from'../conver/kml/index';import a27_0x80712b from'ol/format/GeoJSON';export default class FeatureManager{constructor(_0x7d5891){const _0x1827d2=a27_0x591a;this[_0x1827d2(0xb9)]=_0x7d5891;}[a27_0x19f4dd(0xc0)](_0x366151,_0x49b86d){const _0x2c776f=a27_0x19f4dd;if(_0x366151){const _0x595563=this[_0x2c776f(0xb9)][_0x2c776f(0xc4)](_0x366151);if(!_0x595563||!_0x595563[_0x2c776f(0xd3)])return;let _0x23ab68;switch(_0x595563[_0x2c776f(0xd3)][_0x2c776f(0xcc)]){case 0x1:_0x23ab68=this[_0x2c776f(0xbf)](this[_0x2c776f(0xb9)][_0x2c776f(0xb5)](),_0x366151,_0x49b86d);break;case 0x2:_0x23ab68=this[_0x2c776f(0xbf)](this[_0x2c776f(0xb9)]['getLineTempLayer'](),_0x366151,_0x49b86d);break;case 0x3:_0x23ab68=this[_0x2c776f(0xbf)](this['map']['getPolygonTempLayer'](),_0x366151,_0x49b86d);break;default:break;}return _0x23ab68;}else{const _0x11083f=this[_0x2c776f(0xbf)](this[_0x2c776f(0xb9)][_0x2c776f(0xb5)](),_0x366151,_0x49b86d),_0x2be964=this[_0x2c776f(0xbf)](this[_0x2c776f(0xb9)][_0x2c776f(0xd0)](),_0x366151,_0x49b86d),_0x384fab=this[_0x2c776f(0xbf)](this[_0x2c776f(0xb9)][_0x2c776f(0xbd)](),_0x366151,_0x49b86d);let _0x346b8a=[];return _0x11083f&&(_0x346b8a=[..._0x346b8a,..._0x11083f]),_0x2be964&&(_0x346b8a=[..._0x346b8a,..._0x2be964]),_0x384fab&&(_0x346b8a=[..._0x346b8a,..._0x384fab]),_0x346b8a;}}[a27_0x19f4dd(0xbf)](_0x2438f3,_0x386bb9,_0x23eb80){const _0x565c9c=a27_0x19f4dd;var _0x138f49;let _0x53098d=(_0x138f49=_0x2438f3[_0x565c9c(0xc2)]())===null||_0x138f49===void 0x0?void 0x0:_0x138f49[_0x565c9c(0xd6)]();if(!_0x53098d)return;_0x53098d[_0x565c9c(0xb7)]((_0x14190d,_0x163e8f,_0x406c75)=>{_0x14190d['tempLayer']=_0x2438f3;});_0x23eb80!=undefined&&(_0x53098d=_0x53098d[_0x565c9c(0xb6)](_0x1c3430=>_0x1c3430[_0x565c9c(0xba)]==_0x23eb80));if(_0x386bb9)return _0x53098d[_0x565c9c(0xb6)](_0x2626c0=>_0x2626c0[_0x565c9c(0xb0)]==_0x386bb9);return _0x53098d;}[a27_0x19f4dd(0xcf)](_0x5ecff2,_0x113c60=0x3){const _0x995ef2=a27_0x19f4dd;var _0xc5816;let _0x1b092c=new a27_0x15611c({'zIndex':0x270f,'source':new a27_0x3fb41b()});_0x1b092c['id']=_0x995ef2(0xb3),this[_0x995ef2(0xb9)][_0x995ef2(0xc3)](_0x1b092c,![]),(_0xc5816=_0x1b092c[_0x995ef2(0xc2)]())===null||_0xc5816===void 0x0?void 0x0:_0xc5816[_0x995ef2(0xc7)](_0x5ecff2);let _0x558273=0x0,_0x2227cb=setInterval(()=>{const _0xda51ba=_0x995ef2;if(_0x558273===_0x113c60){_0x2227cb&&clearInterval(_0x2227cb);const _0x531b15=this['map'][_0xda51ba(0xc4)](_0x1b092c['id']);_0x531b15&&this[_0xda51ba(0xb9)][_0xda51ba(0xcb)](_0x531b15);return;}if(_0x1b092c[_0xda51ba(0xcd)]())_0x1b092c['setVisible'](![]);else _0x1b092c[_0xda51ba(0xb4)](!![]);_0x558273++;},0x190);}async[a27_0x19f4dd(0xc8)](_0x10e0a9){const _0x126c4b=a27_0x19f4dd;let _0x168d78=await toGeoJSON(_0x10e0a9,null);if(!_0x168d78)return[];let _0xe33c5c=[];var _0x1f886b=new a27_0x80712b();return _0x168d78[_0x126c4b(0xd5)][_0x126c4b(0xb7)](_0x47aa1e=>{const _0x1d977a=_0x126c4b;_0xe33c5c[_0x1d977a(0xc6)](_0x1f886b[_0x1d977a(0xc9)](_0x47aa1e,null));}),_0xe33c5c;}['clearTempFeatures'](_0x28cbf9){const _0x2954f0=a27_0x19f4dd,_0x3985ed=this['getSelectedFeatures']();if(_0x3985ed&&_0x3985ed[_0x2954f0(0xce)]>0x0)for(const _0x5863c1 of _0x3985ed){if(_0x5863c1&&_0x5863c1[_0x2954f0(0xaf)]){const _0x5210e0=_0x5863c1[_0x2954f0(0xaf)][_0x2954f0(0xc2)]();_0x5210e0&&(_0x28cbf9!=undefined?_0x5863c1[_0x2954f0(0xbc)]==_0x28cbf9&&_0x5210e0['removeFeature'](_0x5863c1):_0x5210e0[_0x2954f0(0xc5)](_0x5863c1));}}}}
1
+ const a27_0x46d342=a27_0x5fa2;(function(_0x1aa1b0,_0x34a1ce){const _0xbf1212=a27_0x5fa2,_0xdf9ec=_0x1aa1b0();while(!![]){try{const _0x105357=-parseInt(_0xbf1212(0x154))/0x1+-parseInt(_0xbf1212(0x157))/0x2+parseInt(_0xbf1212(0x172))/0x3*(parseInt(_0xbf1212(0x16b))/0x4)+parseInt(_0xbf1212(0x175))/0x5*(-parseInt(_0xbf1212(0x15f))/0x6)+-parseInt(_0xbf1212(0x156))/0x7*(parseInt(_0xbf1212(0x167))/0x8)+-parseInt(_0xbf1212(0x168))/0x9+parseInt(_0xbf1212(0x160))/0xa*(parseInt(_0xbf1212(0x171))/0xb);if(_0x105357===_0x34a1ce)break;else _0xdf9ec['push'](_0xdf9ec['shift']());}catch(_0x4bf639){_0xdf9ec['push'](_0xdf9ec['shift']());}}}(a27_0x5c28,0xaca72));import a27_0x514a58 from'ol/layer/Vector';function a27_0x5fa2(_0x28d1d8,_0x526a00){const _0x5c2898=a27_0x5c28();return a27_0x5fa2=function(_0x5fa28b,_0x126e5b){_0x5fa28b=_0x5fa28b-0x153;let _0x357d6c=_0x5c2898[_0x5fa28b];return _0x357d6c;},a27_0x5fa2(_0x28d1d8,_0x526a00);}import a27_0x3dbfd3 from'ol/source/Vector';import{toGeoJSON}from'../conver/kml/index';import a27_0x17ba15 from'ol/format/GeoJSON';function a27_0x5c28(){const _0x2aaa07=['getSource','getVisible','29764559tmyOkr','3ksiHtk','map','getFeatures','5nigPKJ','tag','forEach','getTempSelectedFeatures','46372yRZeBp','push','7NoaOlg','2439430NhURrm','tempLayer','addLayer','getPolygonTempLayer','getLineTempLayer','flashFeatures','layerId','readFeature','116574ATrzKb','10dyELfl','setVisible','flash_layer','isSelected','getPointTempLayer','getSelectedFeatures','layerInfo','7818016Tijjij','5520591sEAXSc','removeFeature','removeLayer','3509936HVsoes','filter','geometryType','getLayersById'];a27_0x5c28=function(){return _0x2aaa07;};return a27_0x5c28();}export default class FeatureManager{constructor(_0xc12f91){const _0x503c42=a27_0x5fa2;this[_0x503c42(0x173)]=_0xc12f91;}[a27_0x46d342(0x165)](_0x46c75a,_0x3b3b94){const _0x2c454f=a27_0x46d342;if(_0x46c75a){const _0xa238ca=this[_0x2c454f(0x173)][_0x2c454f(0x16e)](_0x46c75a);if(!_0xa238ca||!_0xa238ca['layerInfo'])return;let _0x2dab07;switch(_0xa238ca[_0x2c454f(0x166)][_0x2c454f(0x16d)]){case 0x1:_0x2dab07=this['getTempSelectedFeatures'](this[_0x2c454f(0x173)]['getPointTempLayer'](),_0x46c75a,_0x3b3b94);break;case 0x2:_0x2dab07=this[_0x2c454f(0x153)](this[_0x2c454f(0x173)][_0x2c454f(0x15b)](),_0x46c75a,_0x3b3b94);break;case 0x3:_0x2dab07=this[_0x2c454f(0x153)](this['map'][_0x2c454f(0x15a)](),_0x46c75a,_0x3b3b94);break;default:break;}return _0x2dab07;}else{const _0x1c1af7=this[_0x2c454f(0x153)](this[_0x2c454f(0x173)][_0x2c454f(0x164)](),_0x46c75a,_0x3b3b94),_0x372eaf=this[_0x2c454f(0x153)](this['map'][_0x2c454f(0x15b)](),_0x46c75a,_0x3b3b94),_0x30583a=this['getTempSelectedFeatures'](this['map']['getPolygonTempLayer'](),_0x46c75a,_0x3b3b94);let _0x6d770e=[];return _0x1c1af7&&(_0x6d770e=[..._0x6d770e,..._0x1c1af7]),_0x372eaf&&(_0x6d770e=[..._0x6d770e,..._0x372eaf]),_0x30583a&&(_0x6d770e=[..._0x6d770e,..._0x30583a]),_0x6d770e;}}['getTempSelectedFeatures'](_0x4d4c2d,_0x58d929,_0x48a60f){const _0x2e629e=a27_0x46d342;var _0x43afaa;let _0x218c42=(_0x43afaa=_0x4d4c2d['getSource']())===null||_0x43afaa===void 0x0?void 0x0:_0x43afaa[_0x2e629e(0x174)]();if(!_0x218c42)return;_0x218c42[_0x2e629e(0x177)]((_0x57e569,_0x3c1a89,_0x1eea99)=>{const _0xc85d6d=_0x2e629e;_0x57e569[_0xc85d6d(0x158)]=_0x4d4c2d;});_0x48a60f!=undefined&&(_0x218c42=_0x218c42[_0x2e629e(0x16c)](_0x2da763=>_0x2da763[_0x2e629e(0x163)]==_0x48a60f));if(_0x58d929)return _0x218c42[_0x2e629e(0x16c)](_0x1910cc=>_0x1910cc[_0x2e629e(0x15d)]==_0x58d929);return _0x218c42;}[a27_0x46d342(0x15c)](_0x456e4b,_0x4c0e57=0x3){const _0xe37a4a=a27_0x46d342;var _0x4474cc;let _0x512f4e=new a27_0x514a58({'zIndex':0x270f,'source':new a27_0x3dbfd3()});_0x512f4e['id']=_0xe37a4a(0x162),this[_0xe37a4a(0x173)][_0xe37a4a(0x159)](_0x512f4e,![]),(_0x4474cc=_0x512f4e[_0xe37a4a(0x16f)]())===null||_0x4474cc===void 0x0?void 0x0:_0x4474cc['addFeatures'](_0x456e4b);let _0x46588f=0x0,_0x37a048=setInterval(()=>{const _0x359150=_0xe37a4a;if(_0x46588f===_0x4c0e57){_0x37a048&&clearInterval(_0x37a048);const _0x4e27bf=this[_0x359150(0x173)][_0x359150(0x16e)](_0x512f4e['id']);_0x4e27bf&&this['map'][_0x359150(0x16a)](_0x4e27bf);return;}if(_0x512f4e[_0x359150(0x170)]())_0x512f4e[_0x359150(0x161)](![]);else _0x512f4e[_0x359150(0x161)](!![]);_0x46588f++;},0x190);}async['kmlImport'](_0x430e38){const _0x48dcbb=a27_0x46d342;let _0xb5d4c9=await toGeoJSON(_0x430e38,null);if(!_0xb5d4c9)return[];let _0x222abd=[];var _0x1eca9b=new a27_0x17ba15();return _0xb5d4c9['features'][_0x48dcbb(0x177)](_0x40642f=>{const _0x2d2fc3=_0x48dcbb;_0x222abd[_0x2d2fc3(0x155)](_0x1eca9b[_0x2d2fc3(0x15e)](_0x40642f,null));}),_0x222abd;}['clearTempFeatures'](_0x5af016){const _0x58fefc=a27_0x46d342,_0x192e15=this[_0x58fefc(0x165)]();if(_0x192e15&&_0x192e15['length']>0x0)for(const _0x4eaadc of _0x192e15){if(_0x4eaadc&&_0x4eaadc['tempLayer']){const _0x53709c=_0x4eaadc[_0x58fefc(0x158)][_0x58fefc(0x16f)]();_0x53709c&&(_0x5af016!=undefined?_0x4eaadc[_0x58fefc(0x176)]==_0x5af016&&_0x53709c['removeFeature'](_0x4eaadc):_0x53709c[_0x58fefc(0x169)](_0x4eaadc));}}}}
package/index.js CHANGED
@@ -1 +1 @@
1
- function a28_0x1e35(){var _0x5a3e0f=['7359745hIxaqF','14220800VyDmLu','8692992FSMQFa','733660UsMyMc','4JohSSp','9jbMrGF','1688527xIMCrU','2736020KoUiiw','46308726ynzKYd'];a28_0x1e35=function(){return _0x5a3e0f;};return a28_0x1e35();}(function(_0x385a10,_0x94eab0){var _0x52430c=a28_0x3bcc,_0x556224=_0x385a10();while(!![]){try{var _0x3c5d01=-parseInt(_0x52430c(0x87))/0x1+-parseInt(_0x52430c(0x8d))/0x2*(parseInt(_0x52430c(0x8f))/0x3)+parseInt(_0x52430c(0x8e))/0x4*(-parseInt(_0x52430c(0x8a))/0x5)+parseInt(_0x52430c(0x8c))/0x6+parseInt(_0x52430c(0x88))/0x7+-parseInt(_0x52430c(0x8b))/0x8+parseInt(_0x52430c(0x89))/0x9;if(_0x3c5d01===_0x94eab0)break;else _0x556224['push'](_0x556224['shift']());}catch(_0x452dda){_0x556224['push'](_0x556224['shift']());}}}(a28_0x1e35,0xe716c));import a28_0x1cc33a from'./mapView/Map';function a28_0x3bcc(_0x5bdb9a,_0x256dcf){var _0x1e35f0=a28_0x1e35();return a28_0x3bcc=function(_0x3bcc94,_0x3e9f79){_0x3bcc94=_0x3bcc94-0x87;var _0x3ea7d2=_0x1e35f0[_0x3bcc94];return _0x3ea7d2;},a28_0x3bcc(_0x5bdb9a,_0x256dcf);}export{a28_0x1cc33a as Map2D};
1
+ function a28_0x5700(_0x3dfd17,_0x264e2){var _0x22e2cc=a28_0x22e2();return a28_0x5700=function(_0x5700b1,_0x59751e){_0x5700b1=_0x5700b1-0x106;var _0x1d1a3f=_0x22e2cc[_0x5700b1];return _0x1d1a3f;},a28_0x5700(_0x3dfd17,_0x264e2);}(function(_0x581f4f,_0xda4618){var _0x301584=a28_0x5700,_0x11dbf3=_0x581f4f();while(!![]){try{var _0x53bc83=-parseInt(_0x301584(0x10b))/0x1+-parseInt(_0x301584(0x10f))/0x2*(parseInt(_0x301584(0x110))/0x3)+-parseInt(_0x301584(0x106))/0x4+parseInt(_0x301584(0x109))/0x5*(-parseInt(_0x301584(0x10a))/0x6)+-parseInt(_0x301584(0x107))/0x7+parseInt(_0x301584(0x10c))/0x8*(parseInt(_0x301584(0x108))/0x9)+-parseInt(_0x301584(0x10e))/0xa*(-parseInt(_0x301584(0x10d))/0xb);if(_0x53bc83===_0xda4618)break;else _0x11dbf3['push'](_0x11dbf3['shift']());}catch(_0x4e0a34){_0x11dbf3['push'](_0x11dbf3['shift']());}}}(a28_0x22e2,0x823f3));function a28_0x22e2(){var _0xcd0fbb=['1926dJHJAt','199590xlZsLk','789064hQEGnk','12716Svjcgo','14990iVZjvr','383676SPMOQU','3EvPIoA','1200772mCzrMd','1040494owavvo','45qaEKbX','13275WwbUaT'];a28_0x22e2=function(){return _0xcd0fbb;};return a28_0x22e2();}import a28_0x2cad11 from'./mapView/Map';export{a28_0x2cad11 as Map2D};
@@ -1 +1 @@
1
- const a29_0x585764=a29_0x51dc;(function(_0x5d4d66,_0x5b9387){const _0x483c68=a29_0x51dc,_0x320d91=_0x5d4d66();while(!![]){try{const _0x5741c4=parseInt(_0x483c68(0xed))/0x1*(parseInt(_0x483c68(0x10d))/0x2)+parseInt(_0x483c68(0x10b))/0x3+-parseInt(_0x483c68(0x130))/0x4*(-parseInt(_0x483c68(0x13f))/0x5)+-parseInt(_0x483c68(0x10c))/0x6+parseInt(_0x483c68(0x13e))/0x7+-parseInt(_0x483c68(0x147))/0x8+-parseInt(_0x483c68(0x125))/0x9*(parseInt(_0x483c68(0x10e))/0xa);if(_0x5741c4===_0x5b9387)break;else _0x320d91['push'](_0x320d91['shift']());}catch(_0x2dcb54){_0x320d91['push'](_0x320d91['shift']());}}}(a29_0x2d94,0x662fd));import a29_0x304053 from'ol/events/Event';import a29_0x4003b6 from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';function a29_0x51dc(_0x16e374,_0x5e8a41){const _0x2d94af=a29_0x2d94();return a29_0x51dc=function(_0x51dcec,_0xa3db41){_0x51dcec=_0x51dcec-0xe5;let _0x5ab68b=_0x2d94af[_0x51dcec];return _0x5ab68b;},a29_0x51dc(_0x16e374,_0x5e8a41);}import a29_0x1402e6 from'ol/Feature';import a29_0x4b9e94,{createEditingStyle}from'ol/style/Style';import a29_0x29aced from'ol/source/Vector';function a29_0x2d94(){const _0x45884a=['单击结束绘制,右击删除点','_tipFeature','getPixelFromCoordinate','updateState_','wrapX','coordinates','getActive','DRAWABORT','indexOf','abortDrawing','rgba(255,\x20255,\x20255,\x201)','style','DRAWADDPOINT','setStyle','updateSketchFeatures_','单击拖动绘制','buildDrawingFeature','showTip','updateTip_','clear','单击增加点,右击删除点','getSource','_type','slice','revert','DRAWSTART','startDrawing_','_isStayDraw','pixel','773838ZKiioy','467424MFUNyD','277142VnKdZb','55950hnmqGy','drawstart','projection','Circle','abortDrawing_','_source','tipText','getGeometry','_sketchFeature','type','push','pointermove','handleDragEvent','_fixPoint','getOverlay','Ellipsoid','minPoint','onceInternal','dispatchEvent','atFinish_','handleMoveEvent','_showTip','Rectangle','999aGwMsv','_tipOverlay','handleUpEvent','length','button','stopDown','left','finishDrawing','MAX_VALUE','_drawingCoordinates','getType','237896uzQjbB','DRAWMOVING','unInternal','addChangeListener','sqrt','getCode','point','source','DRAWEND','setMap','getMap','addPoint','preventDefault','drawabort','4771543hRzjxV','20uEZXoZ','_minPoints','_snapTolerance','_style','getView','rectangle','drawaddpoint','_tipStyle','1588448RDLSte','setText','getProjection','createMultiPointFeature','once','setGeometry','coordinate','onInternal','单击开始绘制','单击增加点,右击删除点双击完成绘制','pop','_features','addFeature','originalEvent','1BalFBA'];a29_0x2d94=function(){return _0x45884a;};return a29_0x2d94();}import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a29_0x330f95 from'ol/style/Text';import a29_0x59ced4 from'ol/style/Fill';import a29_0x17d900 from'ol/interaction/Property';import a29_0x45d6eb from'ol/layer/Vector';import a29_0x35e67d from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a29_0x585764(0x10f),'DRAWEND':'drawend','DRAWABORT':a29_0x585764(0x13d),'DRAWADDPOINT':a29_0x585764(0x145),'DRAWMOVING':'drawmoving'};export class DrawEvent extends a29_0x304053{constructor(_0x511cb1,_0x403d57,_0x2465fc){super(_0x511cb1),this['feature']=_0x403d57,this['coordinates']=_0x2465fc;}}export class ShEvent extends a29_0x304053{constructor(_0x2646bc,_0x3913a1,_0x14a4b5,_0x510e96,_0x4936d0){const _0x36c418=a29_0x585764;super(_0x2646bc),this[_0x36c418(0x110)]=_0x4936d0,this[_0x36c418(0x117)]=_0x3913a1,this[_0x36c418(0xe5)]=_0x14a4b5,this[_0x36c418(0xf3)]=_0x510e96;}}export default class Draw extends a29_0x4003b6{constructor(_0xb6d1c0,_0x46540e){const _0x29ff7d=a29_0x585764,_0x2574fb=_0x46540e?_0x46540e:{};!_0x2574fb[_0x29ff7d(0x12a)]&&(_0x2574fb[_0x29ff7d(0x12a)]=![]);super(_0x46540e),this['on']=this[_0x29ff7d(0xe6)],this[_0x29ff7d(0x14b)]=this[_0x29ff7d(0x11f)],this['un']=this[_0x29ff7d(0x132)],this[_0x29ff7d(0x109)]=![],this[_0x29ff7d(0x104)]=_0xb6d1c0,this['_style']=_0x46540e===null||_0x46540e===void 0x0?void 0x0:_0x46540e[_0x29ff7d(0xf9)],this[_0x29ff7d(0x113)]=_0x46540e===null||_0x46540e===void 0x0?void 0x0:_0x46540e[_0x29ff7d(0x137)],this[_0x29ff7d(0xea)]=_0x46540e===null||_0x46540e===void 0x0?void 0x0:_0x46540e['features'];const _0x1cfda3=getPlotCount(this['_type']);this['_minPoints']=_0x1cfda3[_0x29ff7d(0x11e)],this[_0x29ff7d(0x11b)]=_0x1cfda3['fixPoint'],this[_0x29ff7d(0x114)]=_0x46540e===null||_0x46540e===void 0x0?void 0x0:_0x46540e[_0x29ff7d(0x114)],this[_0x29ff7d(0x123)]=(_0x46540e===null||_0x46540e===void 0x0?void 0x0:_0x46540e[_0x29ff7d(0xff)])==![]?![]:!![],this[_0x29ff7d(0x141)]=_0x2574fb['snapTolerance']?_0x2574fb['snapTolerance']:0x6,this[_0x29ff7d(0xef)]=new a29_0x1402e6(),this[_0x29ff7d(0x146)]=new a29_0x4b9e94({'text':new a29_0x330f95({'font':'12px\x20Calibre,sans-serif','fill':new a29_0x59ced4({'color':_0x29ff7d(0xf8)}),'backgroundFill':new a29_0x59ced4({'color':'rgba(0,\x200,\x200,\x200.4)'}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x29ff7d(0x12b),'offsetX':0xf})}),this['_drawingCoordinates']=[],this['_tipOverlay']=new a29_0x45d6eb({'source':new a29_0x29aced({'useSpatialIndex':![],'wrapX':(_0x46540e===null||_0x46540e===void 0x0?void 0x0:_0x46540e[_0x29ff7d(0xf2)])?_0x46540e[_0x29ff7d(0xf2)]:![]})}),this['_overlay']=new a29_0x45d6eb({'source':new a29_0x29aced({'useSpatialIndex':![],'wrapX':(_0x46540e===null||_0x46540e===void 0x0?void 0x0:_0x46540e[_0x29ff7d(0xf2)])?_0x46540e[_0x29ff7d(0xf2)]:![]}),'updateWhileInteracting':!![]}),this[_0x29ff7d(0x133)](a29_0x17d900['ACTIVE'],this[_0x29ff7d(0xf1)]);}[a29_0x585764(0xf1)](){const _0x51281e=a29_0x585764,_0xdaf1a5=this[_0x51281e(0x13a)](),_0x293620=this[_0x51281e(0xf4)]();(!_0xdaf1a5||!_0x293620)&&this[_0x51281e(0xf7)](),this['_overlay']['setMap'](_0x293620?_0xdaf1a5:null),this[_0x51281e(0x126)][_0x51281e(0x139)](_0x293620?_0xdaf1a5:null);}[a29_0x585764(0x139)](_0x3e99e6){const _0x28034e=a29_0x585764;super[_0x28034e(0x139)](_0x3e99e6),this['updateState_']();}[a29_0x585764(0xfb)](_0x4a68da){this['_style']=_0x4a68da?_0x4a68da:{};}[a29_0x585764(0x11c)](){return this['_overlay'];}['handleDownEvent'](_0x4a02c3){const _0x3704d2=a29_0x585764;if(_0x4a02c3[_0x3704d2(0xec)][_0x3704d2(0x129)]===0x2)return _0x4a02c3[_0x3704d2(0xec)][_0x3704d2(0x13c)](),this['revert'](),this[_0x3704d2(0x122)](_0x4a02c3),![];return!![];}[a29_0x585764(0x127)](_0x3b0b10){const _0x2ae6ff=a29_0x585764;var _0x13ff6c,_0x23b1d0;if(this[_0x2ae6ff(0x104)]==_0x2ae6ff(0x144)&&this[_0x2ae6ff(0x12e)]['length']<0x1)return this[_0x2ae6ff(0x120)](new DrawEvent(DrawEventType[_0x2ae6ff(0x138)],undefined,[_0x3b0b10[_0x2ae6ff(0xe5)]])),![];if(!this[_0x2ae6ff(0x109)])this['startDrawing_'](_0x3b0b10[_0x2ae6ff(0xe5)]),this[_0x2ae6ff(0x120)](new ShEvent(DrawEventType['DRAWADDPOINT'],this['_type'],_0x3b0b10['coordinate'],this[_0x2ae6ff(0x12e)],(_0x13ff6c=this[_0x2ae6ff(0x13a)]())===null||_0x13ff6c===void 0x0?void 0x0:_0x13ff6c[_0x2ae6ff(0x143)]()[_0x2ae6ff(0x149)]()[_0x2ae6ff(0x135)]())),this[_0x2ae6ff(0x104)]==_0x2ae6ff(0x136)&&this[_0x2ae6ff(0x12c)]();else{if(this[_0x2ae6ff(0x12e)]&&this[_0x2ae6ff(0x12e)][_0x2ae6ff(0x128)]>0x0){if(this[_0x2ae6ff(0x121)](_0x3b0b10[_0x2ae6ff(0x10a)]))return this[_0x2ae6ff(0x12c)](),_0x3b0b10[_0x2ae6ff(0x13c)](),![];let _0x35b171=this['_drawingCoordinates'][_0x2ae6ff(0x128)]+0x1;_0x35b171<=this[_0x2ae6ff(0x11b)]&&this[_0x2ae6ff(0x13b)](_0x3b0b10[_0x2ae6ff(0xe5)]),this[_0x2ae6ff(0x120)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x2ae6ff(0x104)],_0x3b0b10[_0x2ae6ff(0xe5)],this[_0x2ae6ff(0x12e)],(_0x23b1d0=this['getMap']())===null||_0x23b1d0===void 0x0?void 0x0:_0x23b1d0[_0x2ae6ff(0x143)]()[_0x2ae6ff(0x149)]()['getCode']())),_0x35b171>=this[_0x2ae6ff(0x140)]&&this[_0x2ae6ff(0xfe)](this[_0x2ae6ff(0x12e)]),_0x35b171===this[_0x2ae6ff(0x11b)]&&this['finishDrawing']();}}return _0x3b0b10[_0x2ae6ff(0x13c)](),![];}[a29_0x585764(0x11a)](_0xd77c12){const _0x3eefd4=a29_0x585764;var _0x1a7032;if(this[_0x3eefd4(0x104)]==_0x3eefd4(0x144)&&_0xd77c12['originalEvent'][_0x3eefd4(0x117)]==_0x3eefd4(0x119)){if(!this[_0x3eefd4(0x109)]){this[_0x3eefd4(0x108)](_0xd77c12['coordinate']),this[_0x3eefd4(0x120)](new ShEvent(DrawEventType[_0x3eefd4(0xfa)],this['_type'],_0xd77c12[_0x3eefd4(0xe5)],this['_drawingCoordinates'],(_0x1a7032=this[_0x3eefd4(0x13a)]())===null||_0x1a7032===void 0x0?void 0x0:_0x1a7032['getView']()['getProjection']()[_0x3eefd4(0x135)]()));return;}let _0x2819c5=[...this[_0x3eefd4(0x12e)],_0xd77c12[_0x3eefd4(0xe5)]];this[_0x3eefd4(0xfe)](_0x2819c5),this['dispatchEvent'](new DrawEvent(DrawEventType[_0x3eefd4(0x131)],this[_0x3eefd4(0x116)],this[_0x3eefd4(0x12e)]));}}[a29_0x585764(0x122)](_0xb50041){const _0x4e04d8=a29_0x585764;var _0x415da7,_0x40b8e0,_0x218b6d;let _0x5e600b='';this[_0x4e04d8(0x104)]==_0x4e04d8(0x119)&&(this[_0x4e04d8(0x108)](_0xb50041[_0x4e04d8(0xe5)]),this[_0x4e04d8(0x120)](new ShEvent(DrawEventType[_0x4e04d8(0xfa)],this['_type'],_0xb50041['coordinate'],this[_0x4e04d8(0x12e)],(_0x415da7=this[_0x4e04d8(0x13a)]())===null||_0x415da7===void 0x0?void 0x0:_0x415da7['getView']()[_0x4e04d8(0x149)]()[_0x4e04d8(0x135)]())),this['finishDrawing']());!this['_isStayDraw']?_0x5e600b=this[_0x4e04d8(0x104)]=='rectangle'?_0x4e04d8(0xfd):_0x4e04d8(0xe7):(_0x5e600b=_0x4e04d8(0x102),((_0x40b8e0=this[_0x4e04d8(0x12e)])===null||_0x40b8e0===void 0x0?void 0x0:_0x40b8e0[_0x4e04d8(0x128)])===this[_0x4e04d8(0x11b)]-0x1&&(_0x5e600b=_0x4e04d8(0xee)),((_0x218b6d=this['_drawingCoordinates'])===null||_0x218b6d===void 0x0?void 0x0:_0x218b6d['length'])>=this['_minPoints']&&this['_fixPoint']===Number[_0x4e04d8(0x12d)]&&(_0x5e600b=_0x4e04d8(0xe8)));this['tipText']!=undefined&&(_0x5e600b=this[_0x4e04d8(0x114)]);this['updateTip_'](_0xb50041[_0x4e04d8(0xe5)],_0x5e600b);if(this[_0x4e04d8(0x109)]&&this[_0x4e04d8(0x104)]!=_0x4e04d8(0x144)){let _0x4749a5=[...this[_0x4e04d8(0x12e)],_0xb50041['coordinate']];this[_0x4e04d8(0xfe)](_0x4749a5),this[_0x4e04d8(0x120)](new DrawEvent(DrawEventType[_0x4e04d8(0x131)],this[_0x4e04d8(0x116)],this['_drawingCoordinates']));}}['atFinish_'](_0x368e9f){const _0xe1f37a=a29_0x585764;var _0x14f010;let _0x773c96=![],_0x10754c=this['_drawingCoordinates']['length'];if(_0x10754c>this[_0xe1f37a(0x140)]&&this[_0xe1f37a(0x11b)]===Number[_0xe1f37a(0x12d)]){const _0x2151ca=this[_0xe1f37a(0x12e)][this[_0xe1f37a(0x12e)][_0xe1f37a(0x128)]-0x1],_0x6b9a0b=(_0x14f010=this[_0xe1f37a(0x13a)]())===null||_0x14f010===void 0x0?void 0x0:_0x14f010[_0xe1f37a(0xf0)](_0x2151ca),_0x5e522c=_0x368e9f[0x0]-(_0x6b9a0b?_0x6b9a0b[0x0]:0x0),_0x459b5c=_0x368e9f[0x1]-(_0x6b9a0b?_0x6b9a0b[0x1]:0x0);_0x773c96=Math[_0xe1f37a(0x134)](_0x5e522c*_0x5e522c+_0x459b5c*_0x459b5c)<=this[_0xe1f37a(0x141)];}return _0x773c96;}[a29_0x585764(0x108)](_0x172c56){const _0x1493e0=a29_0x585764;this[_0x1493e0(0x109)]=!![],this[_0x1493e0(0x12e)]=[_0x172c56[_0x1493e0(0x105)]()],this['_sketchFeature']=this['createMultiPointFeature'](),this['updateSketchFeatures_'](),this['dispatchEvent'](new DrawEvent(DrawEventType[_0x1493e0(0x107)],this[_0x1493e0(0x116)],this[_0x1493e0(0x12e)]));}[a29_0x585764(0x12c)](){const _0x53fb35=a29_0x585764;if(this[_0x53fb35(0x12e)][_0x53fb35(0x128)]>this[_0x53fb35(0x140)]){this[_0x53fb35(0xfe)](this[_0x53fb35(0x12e)]);let _0x13e8c2=this[_0x53fb35(0x12e)];const _0x556f0c=this[_0x53fb35(0x112)]();if(!_0x556f0c)return;this[_0x53fb35(0x120)](new DrawEvent(DrawEventType[_0x53fb35(0x138)],_0x556f0c,_0x13e8c2)),this['_features']&&this['_features'][_0x53fb35(0x118)](_0x556f0c),this[_0x53fb35(0x113)]&&this[_0x53fb35(0x113)][_0x53fb35(0xeb)](_0x556f0c);}}['addPoint'](_0x3667d1){const _0x131313=a29_0x585764;this[_0x131313(0x12e)]['push'](_0x3667d1),this[_0x131313(0x116)]=this['createMultiPointFeature'](),this[_0x131313(0xfc)]();}[a29_0x585764(0x14a)](){const _0x5bea63=a29_0x585764,_0x3a2f9b=new MultiPoint(this[_0x5bea63(0x12e)]);let _0x1bdddd=new a29_0x1402e6();return _0x1bdddd[_0x5bea63(0x14c)](_0x3a2f9b),_0x1bdddd;}['abortDrawing_'](){const _0x237c1c=a29_0x585764;var _0x5b573d,_0x4cefd1;this[_0x237c1c(0x109)]=![];const _0x498bfe=this[_0x237c1c(0x116)];return this[_0x237c1c(0x116)]=undefined,this['_drawingCoordinates']=[],(_0x5b573d=this['_overlay'][_0x237c1c(0x103)]())===null||_0x5b573d===void 0x0?void 0x0:_0x5b573d[_0x237c1c(0x101)](!![]),(_0x4cefd1=this[_0x237c1c(0x126)][_0x237c1c(0x103)]())===null||_0x4cefd1===void 0x0?void 0x0:_0x4cefd1[_0x237c1c(0x101)](!![]),_0x498bfe;}['abortDrawing'](){const _0x185373=a29_0x585764,_0x44360f=this['abortDrawing_']();_0x44360f&&this[_0x185373(0x120)](new DrawEvent(DrawEventType[_0x185373(0xf5)],_0x44360f,this[_0x185373(0x12e)]));}['buildDrawingFeature'](_0x181e2e){const _0x34f94e=a29_0x585764;this[_0x34f94e(0x116)]=new a29_0x1402e6();let _0x5602e6=createPlot(this[_0x34f94e(0x104)],_0x181e2e);if(!_0x5602e6)return;this[_0x34f94e(0x116)][_0x34f94e(0x14c)](_0x5602e6);let _0x14bbe9=[a29_0x35e67d[_0x34f94e(0x111)],a29_0x35e67d[_0x34f94e(0x11d)],a29_0x35e67d['Ellipse']];if(_0x14bbe9[_0x34f94e(0xf6)](this[_0x34f94e(0x104)])>-0x1&&this['_style']){}const _0x51383e=this[_0x34f94e(0x13a)]();this[_0x34f94e(0x116)][_0x34f94e(0xfb)](getStyle(this[_0x34f94e(0x104)],this[_0x34f94e(0x142)],this[_0x34f94e(0x13a)]())),this[_0x34f94e(0xfc)]();}['updateSketchFeatures_'](){const _0x1c3fd6=a29_0x585764,_0x21dbe2=this['_overlay']['getSource']();_0x21dbe2&&this[_0x1c3fd6(0x116)]&&(_0x21dbe2[_0x1c3fd6(0x101)](!![]),_0x21dbe2[_0x1c3fd6(0xeb)](this[_0x1c3fd6(0x116)]));}[a29_0x585764(0x106)](){const _0x1c684e=a29_0x585764;if(this['_isStayDraw']){if(this['_drawingCoordinates']&&this[_0x1c684e(0x12e)][_0x1c684e(0x128)]>0x0){const _0x5649f9=this['_overlay'][_0x1c684e(0x103)]();_0x5649f9===null||_0x5649f9===void 0x0?void 0x0:_0x5649f9[_0x1c684e(0x101)](!![]),this[_0x1c684e(0x12e)][_0x1c684e(0xe9)](),this[_0x1c684e(0x12e)][_0x1c684e(0x128)]>=this[_0x1c684e(0x140)]&&this['buildDrawingFeature'](this[_0x1c684e(0x12e)]),this[_0x1c684e(0x12e)][_0x1c684e(0x128)]===0x0&&(this[_0x1c684e(0x109)]=![]);}}}[a29_0x585764(0x100)](_0x43c5f4,_0x5f0f23){const _0x3d3cd4=a29_0x585764;var _0xe57dff,_0x38c052,_0x11f626,_0x36629b;if(!this[_0x3d3cd4(0x123)])return;const _0x10e364=this[_0x3d3cd4(0x126)]['getSource']();_0x10e364===null||_0x10e364===void 0x0?void 0x0:_0x10e364['clear'](!![]),(_0xe57dff=this['_tipFeature'])===null||_0xe57dff===void 0x0?void 0x0:_0xe57dff['setGeometry'](new Point(_0x43c5f4)),(_0x11f626=(_0x38c052=this['_tipStyle'])===null||_0x38c052===void 0x0?void 0x0:_0x38c052['getText']())===null||_0x11f626===void 0x0?void 0x0:_0x11f626[_0x3d3cd4(0x148)](_0x5f0f23),(_0x36629b=this[_0x3d3cd4(0xef)])===null||_0x36629b===void 0x0?void 0x0:_0x36629b[_0x3d3cd4(0xfb)](this[_0x3d3cd4(0x146)]),this[_0x3d3cd4(0xef)]&&(_0x10e364===null||_0x10e364===void 0x0?void 0x0:_0x10e364['addFeature'](this[_0x3d3cd4(0xef)]));}}function getDefaultStyleFunction(){const _0x2a63e0=createEditingStyle();return function(_0x5c0970,_0x458308){const _0x47d76a=a29_0x51dc,_0x336842=_0x2a63e0[_0x5c0970[_0x47d76a(0x115)]()['getType']()];if(_0x336842&&_0x47d76a(0x124)==_0x5c0970['getGeometry']()[_0x47d76a(0x12f)]()){}};}
1
+ const a29_0x3fc37b=a29_0x53a6;(function(_0x2a7be6,_0x6944a1){const _0x9178e4=a29_0x53a6,_0x538803=_0x2a7be6();while(!![]){try{const _0x1b9b50=parseInt(_0x9178e4(0xaa))/0x1*(-parseInt(_0x9178e4(0xc3))/0x2)+-parseInt(_0x9178e4(0x7e))/0x3+-parseInt(_0x9178e4(0x86))/0x4+-parseInt(_0x9178e4(0xd4))/0x5+parseInt(_0x9178e4(0x8b))/0x6*(parseInt(_0x9178e4(0xa1))/0x7)+-parseInt(_0x9178e4(0xb6))/0x8+parseInt(_0x9178e4(0xc1))/0x9*(parseInt(_0x9178e4(0x8d))/0xa);if(_0x1b9b50===_0x6944a1)break;else _0x538803['push'](_0x538803['shift']());}catch(_0x57d3da){_0x538803['push'](_0x538803['shift']());}}}(a29_0x3032,0x3332c));import a29_0x5dc155 from'ol/events/Event';import a29_0x53ebde from'ol/interaction/Pointer';function a29_0x53a6(_0x52ea42,_0x3783e3){const _0x30321b=a29_0x3032();return a29_0x53a6=function(_0x53a600,_0x13a4bb){_0x53a600=_0x53a600-0x7d;let _0x57f5e9=_0x30321b[_0x53a600];return _0x57f5e9;},a29_0x53a6(_0x52ea42,_0x3783e3);}import{MultiPoint,Point}from'ol/geom';import a29_0x49ae0e from'ol/Feature';import a29_0x45a7b7,{createEditingStyle}from'ol/style/Style';import a29_0x5a4bbe from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a29_0x309231 from'ol/style/Text';import a29_0x585a8a from'ol/style/Fill';import a29_0x1138bd from'ol/interaction/Property';function a29_0x3032(){const _0x28c831=['setGeometry','originalEvent','updateSketchFeatures_','button','length','Circle','handleMoveEvent','3917421HVZyDx','pixel','2fvdgND','getProjection','coordinate','abortDrawing','addFeature','getGeometry','push','addChangeListener','getText','showTip','buildDrawingFeature','atFinish_','setText','12px\x20Calibre,sans-serif','sqrt','_showTip','preventDefault','165005VfVPgW','wrapX','stopDown','_tipFeature','startDrawing_','dispatchEvent','setMap','drawstart','fixPoint','drawmoving','snapTolerance','finishDrawing','_minPoints','DRAWSTART','DRAWEND','drawaddpoint','_type','MAX_VALUE','ACTIVE','getType','34017BkgNUB','单击拖动绘制','_tipStyle','getCode','once','_snapTolerance','tipText','rectangle','1112740EufvZl','handleDownEvent','Rectangle','_sketchFeature','source','649182sosTgO','left','20ULOAqK','pointermove','indexOf','getView','getMap','单击开始绘制','rgba(255,\x20255,\x20255,\x201)','pop','Ellipsoid','DRAWMOVING','createMultiPointFeature','单击增加点,右击删除点','updateTip_','minPoint','setStyle','style','getOverlay','revert','point','DRAWADDPOINT','14QlTrCJ','handleUpEvent','_tipOverlay','unInternal','updateState_','DRAWABORT','addPoint','abortDrawing_','_isStayDraw','209123OpbCpV','rgba(0,\x200,\x200,\x200.4)','type','coordinates','_style','_overlay','getActive','clear','_drawingCoordinates','_fixPoint','getSource','_source','2764608kPqzWd','Ellipse','_features','drawend'];a29_0x3032=function(){return _0x28c831;};return a29_0x3032();}import a29_0x4e3ab4 from'ol/layer/Vector';import a29_0x1f3f69 from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a29_0x3fc37b(0xdb),'DRAWEND':a29_0x3fc37b(0xb9),'DRAWABORT':'drawabort','DRAWADDPOINT':a29_0x3fc37b(0xe3),'DRAWMOVING':a29_0x3fc37b(0xdd)};export class DrawEvent extends a29_0x5dc155{constructor(_0x50280c,_0x9f227f,_0x57a4ec){const _0x551328=a29_0x3fc37b;super(_0x50280c),this['feature']=_0x9f227f,this[_0x551328(0xad)]=_0x57a4ec;}}export class ShEvent extends a29_0x5dc155{constructor(_0x56a606,_0xd5c5b2,_0x58d568,_0x32c9f3,_0xe38ed2){const _0x1cce00=a29_0x3fc37b;super(_0x56a606),this['projection']=_0xe38ed2,this[_0x1cce00(0xac)]=_0xd5c5b2,this[_0x1cce00(0xc5)]=_0x58d568,this[_0x1cce00(0xad)]=_0x32c9f3;}}export default class Draw extends a29_0x53ebde{constructor(_0x19ca74,_0x562e78){const _0x559766=a29_0x3fc37b,_0x2cda31=_0x562e78?_0x562e78:{};!_0x2cda31[_0x559766(0xd6)]&&(_0x2cda31['stopDown']=![]);super(_0x562e78),this['on']=this['onInternal'],this[_0x559766(0x82)]=this['onceInternal'],this['un']=this[_0x559766(0xa4)],this[_0x559766(0xa9)]=![],this[_0x559766(0xe4)]=_0x19ca74,this[_0x559766(0xae)]=_0x562e78===null||_0x562e78===void 0x0?void 0x0:_0x562e78[_0x559766(0x9c)],this[_0x559766(0xb5)]=_0x562e78===null||_0x562e78===void 0x0?void 0x0:_0x562e78[_0x559766(0x8a)],this[_0x559766(0xb8)]=_0x562e78===null||_0x562e78===void 0x0?void 0x0:_0x562e78['features'];const _0x52f970=getPlotCount(this['_type']);this[_0x559766(0xe0)]=_0x52f970[_0x559766(0x9a)],this['_fixPoint']=_0x52f970[_0x559766(0xdc)],this['tipText']=_0x562e78===null||_0x562e78===void 0x0?void 0x0:_0x562e78[_0x559766(0x84)],this[_0x559766(0xd2)]=(_0x562e78===null||_0x562e78===void 0x0?void 0x0:_0x562e78[_0x559766(0xcc)])==![]?![]:!![],this['_snapTolerance']=_0x2cda31[_0x559766(0xde)]?_0x2cda31[_0x559766(0xde)]:0x6,this[_0x559766(0xd7)]=new a29_0x49ae0e(),this[_0x559766(0x80)]=new a29_0x45a7b7({'text':new a29_0x309231({'font':_0x559766(0xd0),'fill':new a29_0x585a8a({'color':_0x559766(0x93)}),'backgroundFill':new a29_0x585a8a({'color':_0x559766(0xab)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x559766(0x8c),'offsetX':0xf})}),this[_0x559766(0xb2)]=[],this[_0x559766(0xa3)]=new a29_0x4e3ab4({'source':new a29_0x5a4bbe({'useSpatialIndex':![],'wrapX':(_0x562e78===null||_0x562e78===void 0x0?void 0x0:_0x562e78[_0x559766(0xd5)])?_0x562e78[_0x559766(0xd5)]:![]})}),this[_0x559766(0xaf)]=new a29_0x4e3ab4({'source':new a29_0x5a4bbe({'useSpatialIndex':![],'wrapX':(_0x562e78===null||_0x562e78===void 0x0?void 0x0:_0x562e78[_0x559766(0xd5)])?_0x562e78[_0x559766(0xd5)]:![]}),'updateWhileInteracting':!![]}),this[_0x559766(0xca)](a29_0x1138bd[_0x559766(0xe6)],this[_0x559766(0xa5)]);}[a29_0x3fc37b(0xa5)](){const _0x3595ac=a29_0x3fc37b,_0x3dbea5=this['getMap'](),_0x49dfb3=this[_0x3595ac(0xb0)]();(!_0x3dbea5||!_0x49dfb3)&&this[_0x3595ac(0xc6)](),this[_0x3595ac(0xaf)]['setMap'](_0x49dfb3?_0x3dbea5:null),this[_0x3595ac(0xa3)][_0x3595ac(0xda)](_0x49dfb3?_0x3dbea5:null);}[a29_0x3fc37b(0xda)](_0x37454b){const _0x108938=a29_0x3fc37b;super['setMap'](_0x37454b),this[_0x108938(0xa5)]();}[a29_0x3fc37b(0x9b)](_0x15997c){const _0x51e483=a29_0x3fc37b;this[_0x51e483(0xae)]=_0x15997c?_0x15997c:{};}[a29_0x3fc37b(0x9d)](){const _0x1d3d33=a29_0x3fc37b;return this[_0x1d3d33(0xaf)];}[a29_0x3fc37b(0x87)](_0xb2be43){const _0x43cf3b=a29_0x3fc37b;if(_0xb2be43['originalEvent'][_0x43cf3b(0xbd)]===0x2)return _0xb2be43[_0x43cf3b(0xbb)][_0x43cf3b(0xd3)](),this[_0x43cf3b(0x9e)](),this[_0x43cf3b(0xc0)](_0xb2be43),![];return!![];}[a29_0x3fc37b(0xa2)](_0x530726){const _0x431301=a29_0x3fc37b;var _0x1ad396,_0xda28e0;if(this[_0x431301(0xe4)]==_0x431301(0x85)&&this[_0x431301(0xb2)][_0x431301(0xbe)]<0x1)return this[_0x431301(0xd9)](new DrawEvent(DrawEventType[_0x431301(0xe2)],undefined,[_0x530726['coordinate']])),![];if(!this['_isStayDraw'])this[_0x431301(0xd8)](_0x530726[_0x431301(0xc5)]),this[_0x431301(0xd9)](new ShEvent(DrawEventType[_0x431301(0xa0)],this['_type'],_0x530726[_0x431301(0xc5)],this[_0x431301(0xb2)],(_0x1ad396=this[_0x431301(0x91)]())===null||_0x1ad396===void 0x0?void 0x0:_0x1ad396[_0x431301(0x90)]()[_0x431301(0xc4)]()[_0x431301(0x81)]())),this[_0x431301(0xe4)]==_0x431301(0x9f)&&this[_0x431301(0xdf)]();else{if(this[_0x431301(0xb2)]&&this[_0x431301(0xb2)][_0x431301(0xbe)]>0x0){if(this[_0x431301(0xce)](_0x530726[_0x431301(0xc2)]))return this[_0x431301(0xdf)](),_0x530726[_0x431301(0xd3)](),![];let _0x2b1484=this[_0x431301(0xb2)][_0x431301(0xbe)]+0x1;_0x2b1484<=this[_0x431301(0xb3)]&&this[_0x431301(0xa7)](_0x530726[_0x431301(0xc5)]),this[_0x431301(0xd9)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x431301(0xe4)],_0x530726[_0x431301(0xc5)],this[_0x431301(0xb2)],(_0xda28e0=this[_0x431301(0x91)]())===null||_0xda28e0===void 0x0?void 0x0:_0xda28e0['getView']()[_0x431301(0xc4)]()['getCode']())),_0x2b1484>=this[_0x431301(0xe0)]&&this[_0x431301(0xcd)](this[_0x431301(0xb2)]),_0x2b1484===this['_fixPoint']&&this[_0x431301(0xdf)]();}}return _0x530726[_0x431301(0xd3)](),![];}['handleDragEvent'](_0x2cb72d){const _0x4ffccc=a29_0x3fc37b;var _0x299626;if(this[_0x4ffccc(0xe4)]==_0x4ffccc(0x85)&&_0x2cb72d[_0x4ffccc(0xbb)][_0x4ffccc(0xac)]==_0x4ffccc(0x8e)){if(!this[_0x4ffccc(0xa9)]){this[_0x4ffccc(0xd8)](_0x2cb72d[_0x4ffccc(0xc5)]),this[_0x4ffccc(0xd9)](new ShEvent(DrawEventType[_0x4ffccc(0xa0)],this[_0x4ffccc(0xe4)],_0x2cb72d[_0x4ffccc(0xc5)],this[_0x4ffccc(0xb2)],(_0x299626=this[_0x4ffccc(0x91)]())===null||_0x299626===void 0x0?void 0x0:_0x299626[_0x4ffccc(0x90)]()['getProjection']()[_0x4ffccc(0x81)]()));return;}let _0x28725f=[...this[_0x4ffccc(0xb2)],_0x2cb72d[_0x4ffccc(0xc5)]];this[_0x4ffccc(0xcd)](_0x28725f),this[_0x4ffccc(0xd9)](new DrawEvent(DrawEventType[_0x4ffccc(0x96)],this[_0x4ffccc(0x89)],this['_drawingCoordinates']));}}[a29_0x3fc37b(0xc0)](_0x50e2ca){const _0x117143=a29_0x3fc37b;var _0x19c746,_0x3a9a3b,_0x1f3ac6;let _0x2356be='';this[_0x117143(0xe4)]==_0x117143(0x8e)&&(this[_0x117143(0xd8)](_0x50e2ca['coordinate']),this[_0x117143(0xd9)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x117143(0xe4)],_0x50e2ca[_0x117143(0xc5)],this['_drawingCoordinates'],(_0x19c746=this[_0x117143(0x91)]())===null||_0x19c746===void 0x0?void 0x0:_0x19c746[_0x117143(0x90)]()[_0x117143(0xc4)]()[_0x117143(0x81)]())),this[_0x117143(0xdf)]());!this[_0x117143(0xa9)]?_0x2356be=this['_type']==_0x117143(0x85)?_0x117143(0x7f):_0x117143(0x92):(_0x2356be=_0x117143(0x98),((_0x3a9a3b=this[_0x117143(0xb2)])===null||_0x3a9a3b===void 0x0?void 0x0:_0x3a9a3b[_0x117143(0xbe)])===this[_0x117143(0xb3)]-0x1&&(_0x2356be='单击结束绘制,右击删除点'),((_0x1f3ac6=this[_0x117143(0xb2)])===null||_0x1f3ac6===void 0x0?void 0x0:_0x1f3ac6['length'])>=this['_minPoints']&&this['_fixPoint']===Number[_0x117143(0xe5)]&&(_0x2356be='单击增加点,右击删除点双击完成绘制'));this[_0x117143(0x84)]!=undefined&&(_0x2356be=this[_0x117143(0x84)]);this[_0x117143(0x99)](_0x50e2ca['coordinate'],_0x2356be);if(this[_0x117143(0xa9)]&&this[_0x117143(0xe4)]!=_0x117143(0x85)){let _0x46fa4e=[...this[_0x117143(0xb2)],_0x50e2ca[_0x117143(0xc5)]];this['buildDrawingFeature'](_0x46fa4e),this[_0x117143(0xd9)](new DrawEvent(DrawEventType[_0x117143(0x96)],this['_sketchFeature'],this[_0x117143(0xb2)]));}}[a29_0x3fc37b(0xce)](_0x1ea7bf){const _0x25d5c0=a29_0x3fc37b;var _0x176ba2;let _0x18846e=![],_0x266c22=this['_drawingCoordinates']['length'];if(_0x266c22>this[_0x25d5c0(0xe0)]&&this[_0x25d5c0(0xb3)]===Number['MAX_VALUE']){const _0x3be93a=this[_0x25d5c0(0xb2)][this['_drawingCoordinates'][_0x25d5c0(0xbe)]-0x1],_0x22c74d=(_0x176ba2=this[_0x25d5c0(0x91)]())===null||_0x176ba2===void 0x0?void 0x0:_0x176ba2['getPixelFromCoordinate'](_0x3be93a),_0x34a709=_0x1ea7bf[0x0]-(_0x22c74d?_0x22c74d[0x0]:0x0),_0xd8c62b=_0x1ea7bf[0x1]-(_0x22c74d?_0x22c74d[0x1]:0x0);_0x18846e=Math[_0x25d5c0(0xd1)](_0x34a709*_0x34a709+_0xd8c62b*_0xd8c62b)<=this[_0x25d5c0(0x83)];}return _0x18846e;}[a29_0x3fc37b(0xd8)](_0x4104a4){const _0x325de2=a29_0x3fc37b;this[_0x325de2(0xa9)]=!![],this[_0x325de2(0xb2)]=[_0x4104a4['slice']()],this[_0x325de2(0x89)]=this[_0x325de2(0x97)](),this['updateSketchFeatures_'](),this[_0x325de2(0xd9)](new DrawEvent(DrawEventType[_0x325de2(0xe1)],this[_0x325de2(0x89)],this[_0x325de2(0xb2)]));}[a29_0x3fc37b(0xdf)](){const _0x35e931=a29_0x3fc37b;if(this['_drawingCoordinates'][_0x35e931(0xbe)]>this[_0x35e931(0xe0)]){this[_0x35e931(0xcd)](this[_0x35e931(0xb2)]);let _0x1a4042=this['_drawingCoordinates'];const _0x266de8=this[_0x35e931(0xa8)]();if(!_0x266de8)return;this[_0x35e931(0xd9)](new DrawEvent(DrawEventType['DRAWEND'],_0x266de8,_0x1a4042)),this[_0x35e931(0xb8)]&&this[_0x35e931(0xb8)][_0x35e931(0xc9)](_0x266de8),this[_0x35e931(0xb5)]&&this['_source'][_0x35e931(0xc7)](_0x266de8);}}[a29_0x3fc37b(0xa7)](_0x2dc8c3){const _0x5d6be4=a29_0x3fc37b;this[_0x5d6be4(0xb2)]['push'](_0x2dc8c3),this['_sketchFeature']=this[_0x5d6be4(0x97)](),this[_0x5d6be4(0xbc)]();}[a29_0x3fc37b(0x97)](){const _0x6689b6=a29_0x3fc37b,_0x137fd5=new MultiPoint(this[_0x6689b6(0xb2)]);let _0x355881=new a29_0x49ae0e();return _0x355881[_0x6689b6(0xba)](_0x137fd5),_0x355881;}[a29_0x3fc37b(0xa8)](){const _0xe48714=a29_0x3fc37b;var _0x5ada4e,_0x1eaa9c;this['_isStayDraw']=![];const _0x26358c=this[_0xe48714(0x89)];return this['_sketchFeature']=undefined,this['_drawingCoordinates']=[],(_0x5ada4e=this[_0xe48714(0xaf)]['getSource']())===null||_0x5ada4e===void 0x0?void 0x0:_0x5ada4e[_0xe48714(0xb1)](!![]),(_0x1eaa9c=this[_0xe48714(0xa3)][_0xe48714(0xb4)]())===null||_0x1eaa9c===void 0x0?void 0x0:_0x1eaa9c[_0xe48714(0xb1)](!![]),_0x26358c;}[a29_0x3fc37b(0xc6)](){const _0x1dc526=a29_0x3fc37b,_0x38bd76=this[_0x1dc526(0xa8)]();_0x38bd76&&this[_0x1dc526(0xd9)](new DrawEvent(DrawEventType[_0x1dc526(0xa6)],_0x38bd76,this[_0x1dc526(0xb2)]));}[a29_0x3fc37b(0xcd)](_0x281da1){const _0xf163bd=a29_0x3fc37b;this['_sketchFeature']=new a29_0x49ae0e();let _0x15cf0d=createPlot(this[_0xf163bd(0xe4)],_0x281da1);if(!_0x15cf0d)return;this[_0xf163bd(0x89)][_0xf163bd(0xba)](_0x15cf0d);let _0x2ccb34=[a29_0x1f3f69[_0xf163bd(0xbf)],a29_0x1f3f69[_0xf163bd(0x95)],a29_0x1f3f69[_0xf163bd(0xb7)]];if(_0x2ccb34[_0xf163bd(0x8f)](this['_type'])>-0x1&&this[_0xf163bd(0xae)]){}const _0xbb165=this[_0xf163bd(0x91)]();this[_0xf163bd(0x89)]['setStyle'](getStyle(this[_0xf163bd(0xe4)],this[_0xf163bd(0xae)],this[_0xf163bd(0x91)]())),this[_0xf163bd(0xbc)]();}['updateSketchFeatures_'](){const _0x4b6a0e=a29_0x3fc37b,_0x1bc8b2=this['_overlay']['getSource']();_0x1bc8b2&&this[_0x4b6a0e(0x89)]&&(_0x1bc8b2[_0x4b6a0e(0xb1)](!![]),_0x1bc8b2['addFeature'](this[_0x4b6a0e(0x89)]));}['revert'](){const _0x312e85=a29_0x3fc37b;if(this[_0x312e85(0xa9)]){if(this[_0x312e85(0xb2)]&&this['_drawingCoordinates'][_0x312e85(0xbe)]>0x0){const _0x527748=this[_0x312e85(0xaf)][_0x312e85(0xb4)]();_0x527748===null||_0x527748===void 0x0?void 0x0:_0x527748[_0x312e85(0xb1)](!![]),this[_0x312e85(0xb2)][_0x312e85(0x94)](),this['_drawingCoordinates']['length']>=this[_0x312e85(0xe0)]&&this[_0x312e85(0xcd)](this[_0x312e85(0xb2)]),this[_0x312e85(0xb2)][_0x312e85(0xbe)]===0x0&&(this[_0x312e85(0xa9)]=![]);}}}[a29_0x3fc37b(0x99)](_0x3ddb1b,_0x5db1ed){const _0x5a33ec=a29_0x3fc37b;var _0x518ded,_0x127ff2,_0x5f55d6,_0x128181;if(!this[_0x5a33ec(0xd2)])return;const _0x41c8db=this[_0x5a33ec(0xa3)][_0x5a33ec(0xb4)]();_0x41c8db===null||_0x41c8db===void 0x0?void 0x0:_0x41c8db[_0x5a33ec(0xb1)](!![]),(_0x518ded=this[_0x5a33ec(0xd7)])===null||_0x518ded===void 0x0?void 0x0:_0x518ded[_0x5a33ec(0xba)](new Point(_0x3ddb1b)),(_0x5f55d6=(_0x127ff2=this['_tipStyle'])===null||_0x127ff2===void 0x0?void 0x0:_0x127ff2[_0x5a33ec(0xcb)]())===null||_0x5f55d6===void 0x0?void 0x0:_0x5f55d6[_0x5a33ec(0xcf)](_0x5db1ed),(_0x128181=this[_0x5a33ec(0xd7)])===null||_0x128181===void 0x0?void 0x0:_0x128181[_0x5a33ec(0x9b)](this['_tipStyle']),this[_0x5a33ec(0xd7)]&&(_0x41c8db===null||_0x41c8db===void 0x0?void 0x0:_0x41c8db[_0x5a33ec(0xc7)](this[_0x5a33ec(0xd7)]));}}function getDefaultStyleFunction(){const _0x4e0ee2=createEditingStyle();return function(_0x32dd89,_0x1c91d5){const _0x2ceabd=a29_0x53a6,_0x1307a5=_0x4e0ee2[_0x32dd89[_0x2ceabd(0xc8)]()['getType']()];if(_0x1307a5&&_0x2ceabd(0x88)==_0x32dd89['getGeometry']()[_0x2ceabd(0x7d)]()){}};}