m4-w-fast 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/index.js +1 -1
- package/dist/intersect.worker.js +2 -2
- package/dist/isoBands.worker.js +1 -1
- package/dist/readFile.d.ts +1 -1
- package/dist/readFile.js +1 -1
- package/package.json +1 -1
package/dist/readFile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x24c936=a3_0x3954;(function(_0x567b2a,_0x48e957){const _0x419b0b=a3_0x3954,_0x4e653f=_0x567b2a();while(!![]){try{const _0x1b04f4=-parseInt(_0x419b0b(0xc4))/0x1*(-parseInt(_0x419b0b(0xea))/0x2)+parseInt(_0x419b0b(0xfd))/0x3+-parseInt(_0x419b0b(0xbc))/0x4*(-parseInt(_0x419b0b(0xf1))/0x5)+-parseInt(_0x419b0b(0xc8))/0x6*(-parseInt(_0x419b0b(0xec))/0x7)+parseInt(_0x419b0b(0xc5))/0x8+-parseInt(_0x419b0b(0xd9))/0x9+parseInt(_0x419b0b(0xd7))/0xa*(-parseInt(_0x419b0b(0xef))/0xb);if(_0x1b04f4===_0x48e957)break;else _0x4e653f['push'](_0x4e653f['shift']());}catch(_0xe7937c){_0x4e653f['push'](_0x4e653f['shift']());}}}(a3_0x36c2,0xcab76));function a3_0x36c2(){const _0x4f171b=['postMessage','replace','220TkMzJq','split','2317995eRjxHA','floor','hardwareConcurrency','plus','thresholds','gjLat','coordinates','slice','filePath','convertTemKtoC','sort','onmessage','clear','min','map','getIsoBandsByLayerBreak','error','3646mwUZDt','minVal','1540413hPCGMw','size','filter','1177099iLOHSr','set','809445tpaWoX','features','length','_maskCache','push','get','ceil','abs','all','join','properties','rgba(','1540071OZoatt','module','contour','minLat','data','toNumber','start','number','getMinMax','sortFeaturesByArea','getIsoBandsFastByWorker','maxVal','max','undefined','times','minLng','Polygon','onerror','indexOf','terminate','chunkArray','from','28BbEtjr','getBreaks','gjLng','Feature','isNaN','forEach','FeatureCollection','contours','813iqhAmj','746728QNpJVd','rgba(255,255,255,0)','string','6JQiWpO','trim','values','ring','flat','minus','plusOffset','isArray','getJsonData','该时次未获取到文件','_maskCacheKey','__area','area'];a3_0x36c2=function(){return _0x4f171b;};return a3_0x36c2();}import{contours}from'd3-contour';import a3_0x93638c from'@turf/area';import{featureCollection as a3_0x476a7b}from'@turf/helpers';import a3_0x416a62 from'decimal.js';export class readFileM4{[a3_0x24c936(0xe1)]='';['nx']=0x0;['ny']=0x0;[a3_0x24c936(0xb5)]=0x0;[a3_0x24c936(0x100)]=0x0;[a3_0x24c936(0xbe)]=0x0;['gjLat']=0x0;[a3_0x24c936(0xca)]=[];[a3_0x24c936(0xb1)]=-Infinity;[a3_0x24c936(0xeb)]=Infinity;[a3_0x24c936(0xd2)]='';['_maskCache']=new Map();constructor(_0x374afd){const _0x395d4a=a3_0x24c936;this[_0x395d4a(0xe1)]=_0x374afd||'';}async[a3_0x24c936(0x103)](_0xeb17df){const _0x424f98=a3_0x24c936,_0x7b4e13=await fetch(this[_0x424f98(0xe1)]);if(!_0x7b4e13['ok'])return _0x424f98(0xd1);const _0x1a2f59=await _0x7b4e13['text'](),_0x4efb6b=_0x1a2f59[_0x424f98(0xd6)](/\r\n/g,'\x0a')[_0x424f98(0xd6)](/\r/g,'\x0a')['split']('\x0a');if(_0x4efb6b['length']<0x4)return'该时次文件数据异常';const _0x1e975c=(_0x4efb6b[0x1]??'')[_0x424f98(0xc9)]()[_0x424f98(0xd8)](/\s+/);let _0x1fe310=0x2;while(_0x1e975c[_0x424f98(0xf3)]<0x13){_0x1e975c[_0x424f98(0xf5)](...(_0x4efb6b[_0x1fe310]??'')[_0x424f98(0xc9)]()[_0x424f98(0xd8)](/\s+/)),_0x1fe310++;}this[_0x424f98(0xbe)]=Number(_0x1e975c[0x6]);const _0x4fc7a7=Number(_0x1e975c[0x8]),_0x20d88c=Number(_0x1e975c[0xa]),_0x201338=Number(_0x1e975c[0xb]);this['nx']=Number(_0x1e975c[0xc]),this['ny']=Number(_0x1e975c[0xd]),this[_0x424f98(0xb5)]=_0x4fc7a7,this[_0x424f98(0x100)]=_0x20d88c,this[_0x424f98(0xde)]=Math[_0x424f98(0xf8)](Number(_0x1e975c[0x7]))*(_0x20d88c>_0x201338?-0x1:0x1);const _0x96ff17=this['nx']*this['ny'];let _0x3449cc=0x0;for(let _0x54a26f=_0x1fe310;_0x54a26f<_0x4efb6b[_0x424f98(0xf3)]&&_0x3449cc<_0x96ff17;_0x54a26f++){const _0x439343=_0x4efb6b[_0x54a26f]['trim']()??'',_0x4549fc=_0x439343[_0x424f98(0xd8)](/\s+/);if(!_0x4549fc||_0x4549fc[_0x424f98(0xf3)]===0x0)continue;for(let _0x3bc7f2=0x0;_0x3bc7f2<_0x4549fc[_0x424f98(0xf3)]&&_0x3449cc<_0x96ff17;_0x3bc7f2++){let _0xc66225=Number(_0x4549fc[_0x3bc7f2]);if(_0xeb17df?.[_0x424f98(0xe2)])_0xc66225=new a3_0x416a62(_0xc66225)[_0x424f98(0xcd)](272.15)[_0x424f98(0x102)]();else _0xeb17df?.['plusOffset']&&(_0xc66225=new a3_0x416a62(_0xc66225)[_0x424f98(0xdc)](_0xeb17df[_0x424f98(0xce)])['toNumber']());this[_0x424f98(0xca)][_0x424f98(0xf5)](_0xc66225),this[_0x424f98(0xeb)]=Math[_0x424f98(0xe6)](this[_0x424f98(0xeb)],_0xc66225),this[_0x424f98(0xb1)]=Math[_0x424f98(0xb2)](this[_0x424f98(0xb1)],_0xc66225),_0x3449cc++;}}}['setParams'](_0x334b9a,_0x4e1c3c){const _0x53ca64=a3_0x24c936;this['nx']=_0x334b9a['nx'],this['ny']=_0x334b9a['ny'],this['minLng']=_0x334b9a[_0x53ca64(0xb5)],this[_0x53ca64(0x100)]=_0x334b9a[_0x53ca64(0x100)],this[_0x53ca64(0xbe)]=_0x334b9a[_0x53ca64(0xbe)],this[_0x53ca64(0xde)]=_0x334b9a['gjLat'];if(_0x4e1c3c?.[_0x53ca64(0xe2)])for(let _0x1dab05=0x0;_0x1dab05<_0x334b9a[_0x53ca64(0xca)][_0x53ca64(0xf3)];_0x1dab05++){_0x334b9a['values'][_0x1dab05]=new a3_0x416a62(_0x334b9a[_0x53ca64(0xca)][_0x1dab05])[_0x53ca64(0xcd)](272.15)['toNumber']();}else{if(_0x4e1c3c?.[_0x53ca64(0xce)])for(let _0x25287c=0x0;_0x25287c<_0x334b9a[_0x53ca64(0xca)][_0x53ca64(0xf3)];_0x25287c++){_0x334b9a[_0x53ca64(0xca)][_0x25287c]=new a3_0x416a62(_0x334b9a[_0x53ca64(0xca)][_0x25287c])[_0x53ca64(0xdc)](_0x4e1c3c[_0x53ca64(0xce)])[_0x53ca64(0x102)]();}else this[_0x53ca64(0xca)]=_0x334b9a[_0x53ca64(0xca)];}this['getMinMax']();}['getIsoBandsFast'](_0x5929f1){const _0x4ec63b=a3_0x24c936;if(this[_0x4ec63b(0xca)][_0x4ec63b(0xf3)]===0x0)return{'type':_0x4ec63b(0xc2),'features':[]};let _0x342a2e=[];if(_0x5929f1['length']===0x0)_0x5929f1=this[_0x4ec63b(0xbd)]();const _0x5a1445=contours()[_0x4ec63b(0xed)]([this['nx'],this['ny']]);for(let _0x210b08=0x0;_0x210b08<_0x5929f1[_0x4ec63b(0xf3)];_0x210b08++){const _0x517e65=_0x5929f1[_0x210b08];if(_0x517e65<this['minVal']||_0x517e65>this[_0x4ec63b(0xb1)])continue;const _0x2d6d88=_0x5a1445[_0x4ec63b(0xff)](this['values'],_0x517e65);if(!_0x2d6d88||!_0x2d6d88[_0x4ec63b(0xdf)])continue;for(const _0x15bf74 of _0x2d6d88['coordinates']){let _0x590067=[];if(Array[_0x4ec63b(0xcf)](_0x15bf74)&&_0x15bf74[_0x4ec63b(0xf3)]>0x0&&Array['isArray'](_0x15bf74[0x0])&&typeof _0x15bf74[0x0][0x0]===_0x4ec63b(0x104))_0x590067=[_0x15bf74];else{if(Array['isArray'](_0x15bf74))_0x590067=_0x15bf74;else continue;}for(const _0x14b599 of _0x590067){const _0x4ad555=_0x14b599['map'](_0x54690b=>{const _0x1ea786=_0x4ec63b,_0x315067=_0x54690b[0x0],_0x35a114=_0x54690b[0x1];if(_0x315067==null||_0x35a114==null||Number['isNaN'](_0x315067)||Number[_0x1ea786(0xc0)](_0x35a114))return null;const _0x37b7a4=new a3_0x416a62(this[_0x1ea786(0xb5)])[_0x1ea786(0xdc)](new a3_0x416a62(_0x315067)['times'](this['gjLng']))[_0x1ea786(0x102)](),_0x2a64cf=new a3_0x416a62(this[_0x1ea786(0x100)])['plus'](new a3_0x416a62(_0x35a114)[_0x1ea786(0xb4)](this['gjLat']))[_0x1ea786(0x102)]();return[_0x37b7a4,_0x2a64cf];})[_0x4ec63b(0xee)](_0x16dc8d=>_0x16dc8d!==null),_0x5f138f=_0x4ad555[_0x4ec63b(0xee)]((_0x7f4795,_0xac0539,_0x4e0799)=>{if(_0xac0539===0x0)return!![];const _0x25775b=_0x4e0799[_0xac0539-0x1];return!(_0x7f4795[0x0]===_0x25775b[0x0]&&_0x7f4795[0x1]===_0x25775b[0x1]);});if(_0x5f138f[_0x4ec63b(0xf3)]<0x3)continue;const _0x32886a=_0x5f138f[0x0],_0x53c0bf=_0x5f138f[_0x5f138f[_0x4ec63b(0xf3)]-0x1];(_0x32886a[0x0]!==_0x53c0bf[0x0]||_0x32886a[0x1]!==_0x53c0bf[0x1])&&_0x5f138f[_0x4ec63b(0xf5)]([_0x32886a[0x0],_0x32886a[0x1]]),_0x342a2e[_0x4ec63b(0xf5)]({'type':'Feature','properties':{'z':_0x517e65},'geometry':{'type':'Polygon','coordinates':[_0x5f138f]}});}}}return _0x342a2e=this[_0x4ec63b(0x106)](_0x342a2e),{'type':'FeatureCollection','features':_0x342a2e};}['getColorFast'](_0x5c0faf,_0x1054d7,_0x4f6afa){const _0x4bb2a1=a3_0x24c936;let _0x2da264=_0x4bb2a1(0xc6);const _0x89a6e=_0x1054d7[_0x4bb2a1(0xb8)](_0x5c0faf);if(typeof _0x4f6afa[_0x89a6e]==_0x4bb2a1(0xc7))_0x2da264=_0x4f6afa[_0x89a6e];else _0x89a6e!==-0x1&&(_0x2da264=_0x4bb2a1(0xfc)+_0x4f6afa[_0x89a6e][0x0]+','+_0x4f6afa[_0x89a6e][0x1]+','+_0x4f6afa[_0x89a6e][0x2]+','+(_0x4f6afa[_0x89a6e][0x3]||_0x4f6afa[_0x89a6e][0x3]===0x0?_0x4f6afa[_0x89a6e][0x3]:0x1)+')');return _0x2da264;}async['clipDataByJson'](_0x4954a4,_0x3a29a6,_0x3b9733,_0x5bc9b8){const _0x30eb0d=a3_0x24c936,_0x3cf7b2=_0x5bc9b8?_0x5bc9b8:navigator[_0x30eb0d(0xdb)]-0x4||0x1,_0x5928f8=Math[_0x30eb0d(0xe6)](_0x3cf7b2,Math['max'](0x1,_0x4954a4[_0x30eb0d(0xf2)][_0x30eb0d(0xf3)])),_0x305639=this[_0x30eb0d(0xba)](_0x4954a4[_0x30eb0d(0xf2)],_0x5928f8),_0x1fb94e=[],_0x22487f=_0x305639['map'](_0x5bac0d=>{const _0x371861=_0x30eb0d,_0x279189=new Worker(_0x3b9733,{'type':_0x371861(0xfe)});return _0x1fb94e[_0x371861(0xf5)](_0x279189),new Promise(_0x1042de=>{const _0x422cc5=_0x371861;_0x279189[_0x422cc5(0xe4)]=_0x374db3=>{const _0x4a4e9c=_0x422cc5;_0x1042de(_0x374db3[_0x4a4e9c(0x101)][_0x4a4e9c(0xf2)]);},_0x279189[_0x422cc5(0xb7)]=_0x3427be=>{console['error'](_0x3427be);},_0x279189[_0x422cc5(0xd5)]({'isoChunk':_0x5bac0d,'gansuFeatures':_0x3a29a6['features']});});}),_0x3bf1cc=await Promise[_0x30eb0d(0xf9)](_0x22487f);_0x1fb94e[_0x30eb0d(0xc1)](_0x37dfaa=>_0x37dfaa[_0x30eb0d(0xb9)]());const _0x24a93=_0x3bf1cc[_0x30eb0d(0xcc)]();return a3_0x476a7b(_0x24a93);}async[a3_0x24c936(0x107)](_0xe18980,_0x248b4d,_0x34f607){const _0x4e81f7=a3_0x24c936;if(this[_0x4e81f7(0xca)]['length']===0x0)return{'type':'FeatureCollection','features':[]};let _0x5d857d=[];if(_0xe18980['length']===0x0)_0xe18980=this[_0x4e81f7(0xbd)]();const _0x2ac722=[],_0x36b545=_0x34f607?_0x34f607:navigator['hardwareConcurrency']-0x4||0x1,_0x25eb7b=Math[_0x4e81f7(0xe6)](_0x36b545,Math['max'](0x1,_0xe18980[_0x4e81f7(0xf3)])),_0x5305e6=this[_0x4e81f7(0xba)](_0xe18980,_0x25eb7b),_0xece630=_0x5305e6['map'](_0x2d5dcc=>{const _0xe2686c=_0x4e81f7,_0x2e41c6=new Worker(_0x248b4d,{'type':_0xe2686c(0xfe)});return _0x2ac722[_0xe2686c(0xf5)](_0x2e41c6),new Promise(_0x152837=>{const _0x7d6e7e=_0xe2686c;_0x2e41c6['onmessage']=_0x28b12c=>{const _0x1f55bd=a3_0x3954;_0x152837(_0x28b12c[_0x1f55bd(0x101)][_0x1f55bd(0xf2)]);},_0x2e41c6[_0x7d6e7e(0xb7)]=_0x25bc5d=>{const _0x1a8477=_0x7d6e7e;console[_0x1a8477(0xe9)](_0x25bc5d);},_0x2e41c6[_0x7d6e7e(0xd5)]({'breaks':_0x2d5dcc,'values':this[_0x7d6e7e(0xca)],'nx':this['nx'],'ny':this['ny'],'minVal':this[_0x7d6e7e(0xeb)],'maxVal':this[_0x7d6e7e(0xb1)],'minLng':this['minLng'],'minLat':this[_0x7d6e7e(0x100)],'gjLng':this['gjLng'],'gjLat':this[_0x7d6e7e(0xde)]});});}),_0x5d6099=await Promise[_0x4e81f7(0xf9)](_0xece630);return _0x2ac722[_0x4e81f7(0xc1)](_0x88a902=>_0x88a902[_0x4e81f7(0xb9)]()),_0x5d6099['forEach'](_0x2d3c1f=>{const _0x188f94=_0x4e81f7;_0x5d857d[_0x188f94(0xf5)](..._0x2d3c1f);}),_0x5d857d=this[_0x4e81f7(0x106)](_0x5d857d),{'type':_0x4e81f7(0xc2),'features':_0x5d857d};}['clearMaskCache'](){const _0x514bb9=a3_0x24c936;this[_0x514bb9(0xf4)][_0x514bb9(0xe5)]();}[a3_0x24c936(0xe8)](_0x547bb5=[],_0x40b618){const _0x2a5a3d=a3_0x24c936;if(typeof _0x40b618!==_0x2a5a3d(0xb3)&&this[_0x2a5a3d(0xf4)][_0x2a5a3d(0xf6)](_0x40b618)){const _0x2d3ec1=this[_0x2a5a3d(0xf4)][_0x2a5a3d(0xf6)](_0x40b618)||[],_0x3be543=this[_0x2a5a3d(0x106)]?this['sortFeaturesByArea'](_0x2d3ec1):_0x2d3ec1;return{'type':'FeatureCollection','features':_0x3be543};}if(this[_0x2a5a3d(0xca)][_0x2a5a3d(0xf3)]===0x0)return{'type':_0x2a5a3d(0xc2),'features':[]};if(_0x547bb5['length']===0x0)_0x547bb5=this[_0x2a5a3d(0xbd)]();const _0x20e2f0=_0x547bb5[_0x2a5a3d(0xfa)](',');if(this[_0x2a5a3d(0xd2)]!==_0x20e2f0){this[_0x2a5a3d(0xd2)]=_0x20e2f0,this[_0x2a5a3d(0xf4)][_0x2a5a3d(0xe5)]();const _0x585ad2=this[_0x2a5a3d(0xb5)],_0x1d1fd9=this[_0x2a5a3d(0x100)],_0x2939a9=this[_0x2a5a3d(0xbe)],_0x50e76f=this['gjLat'],_0x52bbc2=_0x1ec452=>{const _0x565675=_0x2a5a3d;let _0x10ef08=0x0;for(let _0x5d2e71=0x0,_0x3e59af=_0x1ec452[_0x565675(0xf3)];_0x5d2e71<_0x3e59af;_0x5d2e71++){const _0x591f94=_0x1ec452[_0x5d2e71][0x0],_0x584cc8=_0x1ec452[_0x5d2e71][0x1],_0x4516dd=_0x1ec452[(_0x5d2e71+0x1)%_0x3e59af][0x0],_0x5f0ea2=_0x1ec452[(_0x5d2e71+0x1)%_0x3e59af][0x1];if(_0x591f94==null||_0x584cc8==null||_0x4516dd==null||_0x5f0ea2==null)continue;_0x10ef08+=_0x591f94*_0x5f0ea2-_0x4516dd*_0x584cc8;}return _0x10ef08/0x2;},_0x232e03=(_0x17179b,_0x1fccc5)=>{const _0x46ec77=_0x2a5a3d;if(!_0x17179b)return![];const _0x2f229c=_0x17179b[0x0],_0x2ab30b=_0x17179b[0x1];let _0x148b31=![];for(let _0x143dda=0x0,_0x2668c4=_0x1fccc5[_0x46ec77(0xf3)]-0x1;_0x143dda<_0x1fccc5[_0x46ec77(0xf3)];_0x2668c4=_0x143dda++){const _0x4b1651=_0x1fccc5[_0x143dda][0x0],_0x26a324=_0x1fccc5[_0x143dda][0x1],_0x11d3e0=_0x1fccc5[_0x2668c4][0x0],_0x4ae403=_0x1fccc5[_0x2668c4][0x1],_0x1b5143=_0x26a324>_0x2ab30b!==_0x4ae403>_0x2ab30b&&_0x2f229c<(_0x11d3e0-_0x4b1651)*(_0x2ab30b-_0x26a324)/(_0x4ae403-_0x26a324)+_0x4b1651;if(_0x1b5143)_0x148b31=!_0x148b31;}return _0x148b31;},_0x42e5ce=_0x408511=>{const _0x51b013=_0x2a5a3d,_0x1325e5=[];let _0x1ada14=null,_0x2b1b82=null;for(let _0x2314d4=0x0;_0x2314d4<_0x408511[_0x51b013(0xf3)];_0x2314d4++){const _0x4433d8=_0x408511[_0x2314d4];if(!_0x4433d8)continue;const _0x59a28d=_0x4433d8[0x0],_0x1d86da=_0x4433d8[0x1];if(_0x59a28d==null||_0x1d86da==null||Number[_0x51b013(0xc0)](_0x59a28d)||Number[_0x51b013(0xc0)](_0x1d86da))continue;const _0x1d8dea=_0x585ad2+_0x59a28d*_0x2939a9,_0x38ccc4=_0x1d1fd9+_0x1d86da*_0x50e76f;if(_0x1ada14!==null&&_0x2b1b82!==null&&_0x1ada14===_0x1d8dea&&_0x2b1b82===_0x38ccc4){_0x1ada14=_0x1d8dea,_0x2b1b82=_0x38ccc4;continue;}_0x1325e5['push']([_0x1d8dea,_0x38ccc4]),_0x1ada14=_0x1d8dea,_0x2b1b82=_0x38ccc4;}if(_0x1325e5[_0x51b013(0xf3)]===0x0)return _0x1325e5;const _0x21101d=_0x1325e5[0x0],_0x280888=_0x1325e5[_0x1325e5['length']-0x1];if(_0x21101d[0x0]!==_0x280888[0x0]||_0x21101d[0x1]!==_0x280888[0x1])_0x1325e5[_0x51b013(0xf5)]([_0x21101d[0x0],_0x21101d[0x1]]);return _0x1325e5;},_0x381e25=_0x547bb5['length']-0x1;for(let _0x35de55=0x0;_0x35de55<_0x547bb5[_0x2a5a3d(0xf3)];_0x35de55++){const _0x5f1599=_0x547bb5[_0x35de55],_0x3cf077=_0x35de55<_0x381e25?_0x547bb5[_0x35de55+0x1]:Infinity,_0x9d6d65=Array[_0x2a5a3d(0xbb)]({'length':this[_0x2a5a3d(0xca)][_0x2a5a3d(0xf3)]});let _0x35f75b=![];for(let _0x461f54=0x0;_0x461f54<this[_0x2a5a3d(0xca)][_0x2a5a3d(0xf3)];_0x461f54++){const _0x5e1d65=this[_0x2a5a3d(0xca)][_0x461f54],_0x15ba18=_0x5e1d65>=_0x5f1599&&_0x5e1d65<_0x3cf077?0x1:0x0;if(_0x15ba18)_0x35f75b=!![];_0x9d6d65[_0x461f54]=_0x15ba18;}if(!_0x35f75b)continue;const _0x1ee964=contours()[_0x2a5a3d(0xed)]([this['nx'],this['ny']])[_0x2a5a3d(0xdd)]([0.5]),_0x2e1f48=_0x1ee964[_0x2a5a3d(0xc3)]?_0x1ee964[_0x2a5a3d(0xc3)](_0x9d6d65):_0x1ee964(_0x9d6d65);if(!_0x2e1f48||_0x2e1f48[_0x2a5a3d(0xf3)]===0x0)continue;const _0xf0b7f3=[];for(const _0x1f5894 of _0x2e1f48){const _0x459ef2=_0x1f5894&&_0x1f5894['coordinates'];if(!_0x459ef2)continue;for(const _0x18c657 of _0x459ef2){let _0x3f2e42=[];if(Array[_0x2a5a3d(0xcf)](_0x18c657)&&_0x18c657[_0x2a5a3d(0xf3)]>0x0&&typeof _0x18c657[0x0][0x0]===_0x2a5a3d(0x104))_0x3f2e42=[_0x18c657];else{if(Array['isArray'](_0x18c657))_0x3f2e42=_0x18c657;else continue;}const _0x50119f=_0x3f2e42[_0x2a5a3d(0xe7)](_0xfe6330=>({'ring':_0xfe6330,'area':Math[_0x2a5a3d(0xf8)](_0x52bbc2(_0xfe6330))}))[_0x2a5a3d(0xe3)]((_0x8ff393,_0x58ed15)=>_0x58ed15['area']-_0x8ff393[_0x2a5a3d(0xd4)]),_0x45ca6d=Array[_0x2a5a3d(0xbb)]({'length':_0x50119f[_0x2a5a3d(0xf3)]})['fill'](![]);for(let _0xb4c33d=0x0;_0xb4c33d<_0x50119f[_0x2a5a3d(0xf3)];_0xb4c33d++){if(_0x45ca6d[_0xb4c33d])continue;const _0x4098f2=_0x50119f[_0xb4c33d]['ring'];_0x45ca6d[_0xb4c33d]=!![];const _0x30e754=[];for(let _0x19aaa1=0x0;_0x19aaa1<_0x50119f[_0x2a5a3d(0xf3)];_0x19aaa1++){if(_0x45ca6d[_0x19aaa1])continue;const _0x3d2ae1=_0x50119f[_0x19aaa1][_0x2a5a3d(0xcb)],_0x2c6ef3=_0x3d2ae1[0x0];_0x2c6ef3&&_0x232e03(_0x2c6ef3,_0x4098f2)&&(_0x30e754['push'](_0x3d2ae1),_0x45ca6d[_0x19aaa1]=!![]);}const _0x1bebed=_0x42e5ce(_0x4098f2);if(_0x1bebed[_0x2a5a3d(0xf3)]<0x4)continue;const _0x598383=[];for(const _0x370cb1 of _0x30e754){const _0x2620c1=_0x42e5ce(_0x370cb1);if(_0x2620c1[_0x2a5a3d(0xf3)]>=0x4)_0x598383['push'](_0x2620c1);}_0xf0b7f3[_0x2a5a3d(0xf5)]({'type':_0x2a5a3d(0xbf),'properties':{'z':_0x5f1599},'geometry':{'type':_0x2a5a3d(0xb6),'coordinates':[_0x1bebed,..._0x598383]}});}}}_0xf0b7f3[_0x2a5a3d(0xf3)]&&this[_0x2a5a3d(0xf4)][_0x2a5a3d(0xf0)](_0x5f1599,_0xf0b7f3);}}if(typeof _0x40b618!==_0x2a5a3d(0xb3)){const _0xda184d=this[_0x2a5a3d(0xf4)]['get'](_0x40b618)||[],_0x4876fc=this[_0x2a5a3d(0x106)]?this[_0x2a5a3d(0x106)](_0xda184d):_0xda184d;return{'type':_0x2a5a3d(0xc2),'features':_0x4876fc};}const _0x12b57c=[];for(const _0x2c3601 of this[_0x2a5a3d(0xf4)]['values']()){_0x12b57c[_0x2a5a3d(0xf5)](..._0x2c3601);}const _0xf6cabe=this['sortFeaturesByArea']?this[_0x2a5a3d(0x106)](_0x12b57c):_0x12b57c;return{'type':_0x2a5a3d(0xc2),'features':_0xf6cabe};}[a3_0x24c936(0xd0)](){const _0x52baad=a3_0x24c936,_0x57ecd6=Array['from']({'length':this['nx']});for(let _0x2efe0a=0x0;_0x2efe0a<this['nx'];_0x2efe0a++){_0x57ecd6[_0x2efe0a]=new a3_0x416a62(this[_0x52baad(0xb5)])[_0x52baad(0xdc)](new a3_0x416a62(_0x2efe0a)[_0x52baad(0xb4)](this[_0x52baad(0xbe)]))['toNumber']();}const _0x206df1=Array[_0x52baad(0xbb)]({'length':this['ny']});for(let _0x2f6ead=0x0;_0x2f6ead<this['ny'];_0x2f6ead++){_0x206df1[_0x2f6ead]=new a3_0x416a62(this[_0x52baad(0x100)])[_0x52baad(0xdc)](new a3_0x416a62(_0x2f6ead)[_0x52baad(0xb4)](this['gjLat']))['toNumber']();}const _0x37d7bb=Array[_0x52baad(0xbb)]({'length':this['nx']*this['ny']});for(let _0x3fa1a=0x0;_0x3fa1a<this['values']['length'];_0x3fa1a++){const _0x3db113=Math[_0x52baad(0xda)](_0x3fa1a/this['nx']),_0x333399=_0x3fa1a%this['nx'],_0x39f276=_0x57ecd6[_0x333399],_0x53e80d=_0x206df1[_0x3db113],_0x2f7b25=this[_0x52baad(0xca)][_0x3fa1a];_0x53e80d&&_0x39f276&&(_0x37d7bb[_0x3fa1a]={'lng':_0x39f276,'lat':_0x53e80d,'val':_0x2f7b25});}return _0x37d7bb;}[a3_0x24c936(0x105)](){const _0x4adbc4=a3_0x24c936;let _0x25ec50=-Infinity,_0x71fec3=Infinity;for(let _0x19760a=0x0;_0x19760a<this[_0x4adbc4(0xca)][_0x4adbc4(0xf3)];_0x19760a++){const _0x4ea90e=this[_0x4adbc4(0xca)][_0x19760a];if(_0x4ea90e>_0x25ec50)_0x25ec50=_0x4ea90e;if(_0x4ea90e<_0x71fec3)_0x71fec3=_0x4ea90e;}this['minVal']=_0x71fec3,this[_0x4adbc4(0xb1)]=_0x25ec50;}[a3_0x24c936(0xbd)](){const _0x42284c=a3_0x24c936,_0x5fd282=[];if(this[_0x42284c(0xeb)]===Infinity||this[_0x42284c(0xb1)]===-Infinity)return _0x5fd282;for(let _0x3e17ce=this['minVal']-0x1;_0x3e17ce<=this['maxVal']+0x1;_0x3e17ce++){_0x5fd282[_0x42284c(0xf5)](_0x3e17ce);}return _0x5fd282;}['sortFeaturesByArea'](_0x2310b8){const _0x3c3ed0=a3_0x24c936;return _0x2310b8[_0x3c3ed0(0xe7)](_0xf448c9=>{const _0x1e4ffd=_0x3c3ed0;try{const _0x148109=a3_0x93638c(_0xf448c9)||0x0;_0xf448c9['properties']={..._0xf448c9[_0x1e4ffd(0xfb)]||{},'__area':_0x148109};}catch{_0xf448c9['properties']={..._0xf448c9[_0x1e4ffd(0xfb)]||{},'__area':0x0};}return _0xf448c9;})['sort']((_0x161818,_0x114342)=>_0x114342[_0x3c3ed0(0xfb)]['__area']-_0x161818[_0x3c3ed0(0xfb)]['__area'])[_0x3c3ed0(0xee)](_0x11833e=>_0x11833e[_0x3c3ed0(0xfb)]&&_0x3c3ed0(0xd3)in _0x11833e[_0x3c3ed0(0xfb)]&&_0x11833e['properties']['__area']!==0x0)[_0x3c3ed0(0xe7)](_0x112b06=>{const _0x486153=_0x3c3ed0;if(_0x112b06[_0x486153(0xfb)]&&_0x486153(0xd3)in _0x112b06[_0x486153(0xfb)]){const {__area:_0x1e9c8f,..._0x55be81}=_0x112b06[_0x486153(0xfb)];_0x112b06['properties']=_0x55be81;}return _0x112b06;});}[a3_0x24c936(0xba)]=(_0x4d97ce,_0x3378f4)=>{const _0x310bc7=a3_0x24c936,_0x3a60c0=[],_0x306f8d=Math['max'](0x1,Math[_0x310bc7(0xf7)](_0x4d97ce[_0x310bc7(0xf3)]/_0x3378f4));for(let _0xe7a060=0x0;_0xe7a060<_0x3378f4;_0xe7a060++){_0x3a60c0[_0x310bc7(0xf5)](_0x4d97ce[_0x310bc7(0xe0)](_0xe7a060*_0x306f8d,(_0xe7a060+0x1)*_0x306f8d));}return _0x3a60c0;};}function a3_0x3954(_0x4c3c00,_0x36afbd){const _0x36c2d3=a3_0x36c2();return a3_0x3954=function(_0x39544b,_0x47dc04){_0x39544b=_0x39544b-0xb1;let _0x33556a=_0x36c2d3[_0x39544b];return _0x33556a;},a3_0x3954(_0x4c3c00,_0x36afbd);}export default readFileM4;
|
|
1
|
+
const a3_0x3067b7=a3_0x3b79;(function(_0x1d88d3,_0x4b8207){const _0x3a2edc=a3_0x3b79,_0x2f103d=_0x1d88d3();while(!![]){try{const _0x2d0f21=parseInt(_0x3a2edc(0x8b))/0x1*(-parseInt(_0x3a2edc(0x9e))/0x2)+parseInt(_0x3a2edc(0xd0))/0x3*(-parseInt(_0x3a2edc(0xa4))/0x4)+-parseInt(_0x3a2edc(0xd2))/0x5*(-parseInt(_0x3a2edc(0x92))/0x6)+-parseInt(_0x3a2edc(0x9a))/0x7*(-parseInt(_0x3a2edc(0xd6))/0x8)+-parseInt(_0x3a2edc(0xb5))/0x9*(-parseInt(_0x3a2edc(0xb0))/0xa)+parseInt(_0x3a2edc(0xbb))/0xb+-parseInt(_0x3a2edc(0x8a))/0xc;if(_0x2d0f21===_0x4b8207)break;else _0x2f103d['push'](_0x2f103d['shift']());}catch(_0x13da4a){_0x2f103d['push'](_0x2f103d['shift']());}}}(a3_0xabf4,0xaf882));function a3_0xabf4(){const _0x5a47a5=['FeatureCollection','ceil','getBreaks','min','length','values','onerror','8364097ssTqCn','_maskCacheKey','filePath','error','5386SUGpGn','sort','chunkArray','minLat','getJsonData','string','46156AKVFdx','该时次未获取到文件','clipDataByJson','该时次文件数据异常','isArray','coordinates','Polygon','plusOffset','sortFeaturesByArea','push','filter','plus','142510GDdhel','split','flat','times','area','423VzcjJp','ring','minVal','terminate','hardwareConcurrency','setParams','4674197XFZxTn','max','onmessage','convertTemKtoC','fill','gjLat','minus','join','postMessage','replace','clear','__area','_maskCache','rgba(','undefined','gjLng','features','get','minLng','toNumber','isNaN','306PWJPTS','from','425gLSjtQ','getMinMax','contours','start','8jmCPNa','maxVal','getIsoBandsFastByWorker','map','forEach','slice','8249364nMOdJc','134DyHXCT','Feature','properties','trim','abs','thresholds','data','46212tmVeqp'];a3_0xabf4=function(){return _0x5a47a5;};return a3_0xabf4();}import{contours}from'd3-contour';function a3_0x3b79(_0x43641f,_0x21ab60){const _0xabf4c9=a3_0xabf4();return a3_0x3b79=function(_0x3b799b,_0x4cb45b){_0x3b799b=_0x3b799b-0x8a;let _0x59ba4f=_0xabf4c9[_0x3b799b];return _0x59ba4f;},a3_0x3b79(_0x43641f,_0x21ab60);}import a3_0x573b69 from'@turf/area';import{featureCollection as a3_0x39625f}from'@turf/helpers';import a3_0x31e825 from'decimal.js';export class readFileM4{[a3_0x3067b7(0x9c)]='';['nx']=0x0;['ny']=0x0;[a3_0x3067b7(0xcd)]=0x0;['minLat']=0x0;['gjLng']=0x0;[a3_0x3067b7(0xc0)]=0x0;[a3_0x3067b7(0x98)]=[];[a3_0x3067b7(0xd7)]=-Infinity;[a3_0x3067b7(0xb7)]=Infinity;['_maskCacheKey']='';[a3_0x3067b7(0xc7)]=new Map();constructor(_0x451464){this['filePath']=_0x451464||'';}async[a3_0x3067b7(0xd5)](_0x45fe80){const _0x58735b=a3_0x3067b7,_0x407deb=await fetch(this['filePath']);if(!_0x407deb['ok'])return new Promise((_0xe2b0fb,_0x53f014)=>{const _0x1d705a=a3_0x3b79;_0x53f014(_0x1d705a(0xa5));});const _0x11f0dd=await _0x407deb['text'](),_0x2f7a40=_0x11f0dd[_0x58735b(0xc4)](/\r\n/g,'\x0a')[_0x58735b(0xc4)](/\r/g,'\x0a')['split']('\x0a');if(_0x2f7a40[_0x58735b(0x97)]<0x4)return new Promise((_0x45d974,_0x208b3b)=>{const _0x20733e=_0x58735b;_0x208b3b(_0x20733e(0xa7));});const _0x29a683=(_0x2f7a40[0x1]??'')[_0x58735b(0x8e)]()[_0x58735b(0xb1)](/\s+/);let _0x2a6e02=0x2;while(_0x29a683['length']<0x13){_0x29a683[_0x58735b(0xad)](...(_0x2f7a40[_0x2a6e02]??'')[_0x58735b(0x8e)]()[_0x58735b(0xb1)](/\s+/)),_0x2a6e02++;}this[_0x58735b(0xca)]=Number(_0x29a683[0x6]);const _0x56e8bc=Number(_0x29a683[0x8]),_0x32f6dd=Number(_0x29a683[0xa]),_0x47aca9=Number(_0x29a683[0xb]);this['nx']=Number(_0x29a683[0xc]),this['ny']=Number(_0x29a683[0xd]),this['minLng']=_0x56e8bc,this[_0x58735b(0xa1)]=_0x32f6dd,this[_0x58735b(0xc0)]=Math['abs'](Number(_0x29a683[0x7]))*(_0x32f6dd>_0x47aca9?-0x1:0x1);const _0x351037=this['nx']*this['ny'];let _0x106cec=0x0;for(let _0x57bfbb=_0x2a6e02;_0x57bfbb<_0x2f7a40[_0x58735b(0x97)]&&_0x106cec<_0x351037;_0x57bfbb++){const _0x439e0d=_0x2f7a40[_0x57bfbb][_0x58735b(0x8e)]()??'',_0x501d08=_0x439e0d[_0x58735b(0xb1)](/\s+/);if(!_0x501d08||_0x501d08[_0x58735b(0x97)]===0x0)continue;for(let _0xdb88af=0x0;_0xdb88af<_0x501d08[_0x58735b(0x97)]&&_0x106cec<_0x351037;_0xdb88af++){let _0x94377e=Number(_0x501d08[_0xdb88af]);if(_0x45fe80?.[_0x58735b(0xbe)])_0x94377e=new a3_0x31e825(_0x94377e)[_0x58735b(0xc1)](272.15)['toNumber']();else _0x45fe80?.[_0x58735b(0xab)]&&(_0x94377e=new a3_0x31e825(_0x94377e)[_0x58735b(0xaf)](_0x45fe80['plusOffset'])['toNumber']());this[_0x58735b(0x98)][_0x58735b(0xad)](_0x94377e),this[_0x58735b(0xb7)]=Math['min'](this[_0x58735b(0xb7)],_0x94377e),this['maxVal']=Math['max'](this['maxVal'],_0x94377e),_0x106cec++;}}}[a3_0x3067b7(0xba)](_0x8a8929,_0x8cb8d4){const _0x352d4a=a3_0x3067b7;this['nx']=_0x8a8929['nx'],this['ny']=_0x8a8929['ny'],this[_0x352d4a(0xcd)]=_0x8a8929[_0x352d4a(0xcd)],this[_0x352d4a(0xa1)]=_0x8a8929[_0x352d4a(0xa1)],this[_0x352d4a(0xca)]=_0x8a8929['gjLng'],this[_0x352d4a(0xc0)]=_0x8a8929[_0x352d4a(0xc0)];if(_0x8cb8d4?.[_0x352d4a(0xbe)])for(let _0x1742d0=0x0;_0x1742d0<_0x8a8929[_0x352d4a(0x98)][_0x352d4a(0x97)];_0x1742d0++){_0x8a8929['values'][_0x1742d0]=new a3_0x31e825(_0x8a8929['values'][_0x1742d0])[_0x352d4a(0xc1)](272.15)[_0x352d4a(0xce)]();}else{if(_0x8cb8d4?.['plusOffset'])for(let _0x263666=0x0;_0x263666<_0x8a8929[_0x352d4a(0x98)][_0x352d4a(0x97)];_0x263666++){_0x8a8929[_0x352d4a(0x98)][_0x263666]=new a3_0x31e825(_0x8a8929[_0x352d4a(0x98)][_0x263666])['plus'](_0x8cb8d4[_0x352d4a(0xab)])[_0x352d4a(0xce)]();}else this[_0x352d4a(0x98)]=_0x8a8929['values'];}this[_0x352d4a(0xd3)]();}['getIsoBandsFast'](_0x4f62d8){const _0x634340=a3_0x3067b7;if(this['values'][_0x634340(0x97)]===0x0)return{'type':_0x634340(0x93),'features':[]};let _0x3df956=[];if(_0x4f62d8[_0x634340(0x97)]===0x0)_0x4f62d8=this[_0x634340(0x95)]();const _0x3dae56=contours()['size']([this['nx'],this['ny']]);for(let _0x3d8084=0x0;_0x3d8084<_0x4f62d8[_0x634340(0x97)];_0x3d8084++){const _0x95ed4e=_0x4f62d8[_0x3d8084],_0x43ade7=_0x3d8084<_0x4f62d8[_0x634340(0x97)]-0x1?_0x4f62d8[_0x3d8084+0x1]:Infinity;if(_0x95ed4e<this[_0x634340(0xb7)]&&_0x43ade7<this[_0x634340(0xb7)])continue;if(_0x95ed4e>this[_0x634340(0xd7)]&&_0x43ade7>this[_0x634340(0xd7)])continue;const _0x3fb5f7=_0x3dae56['contour'](this[_0x634340(0x98)],_0x95ed4e);if(!_0x3fb5f7||!_0x3fb5f7[_0x634340(0xa9)])continue;for(const _0x598927 of _0x3fb5f7[_0x634340(0xa9)]){let _0x8bbfc=[];if(Array['isArray'](_0x598927)&&_0x598927[_0x634340(0x97)]>0x0&&Array[_0x634340(0xa8)](_0x598927[0x0])&&typeof _0x598927[0x0][0x0]==='number')_0x8bbfc=[_0x598927];else{if(Array[_0x634340(0xa8)](_0x598927))_0x8bbfc=_0x598927;else continue;}for(const _0x10b338 of _0x8bbfc){const _0x42381e=_0x10b338[_0x634340(0xd9)](_0x1b9881=>{const _0xc8abc7=_0x634340,_0x4228cd=_0x1b9881[0x0],_0x38bb0f=_0x1b9881[0x1];if(_0x4228cd==null||_0x38bb0f==null||Number[_0xc8abc7(0xcf)](_0x4228cd)||Number[_0xc8abc7(0xcf)](_0x38bb0f))return null;const _0x2d1684=new a3_0x31e825(this[_0xc8abc7(0xcd)])['plus'](new a3_0x31e825(_0x4228cd)[_0xc8abc7(0xb3)](this[_0xc8abc7(0xca)]))['toNumber'](),_0x3900f8=new a3_0x31e825(this[_0xc8abc7(0xa1)])[_0xc8abc7(0xaf)](new a3_0x31e825(_0x38bb0f)[_0xc8abc7(0xb3)](this[_0xc8abc7(0xc0)]))[_0xc8abc7(0xce)]();return[_0x2d1684,_0x3900f8];})[_0x634340(0xae)](_0xe1527b=>_0xe1527b!==null),_0x1a9ce0=_0x42381e[_0x634340(0xae)]((_0x1208dc,_0x23c120,_0x3a7b3b)=>{if(_0x23c120===0x0)return!![];const _0x1066cc=_0x3a7b3b[_0x23c120-0x1];return!(_0x1208dc[0x0]===_0x1066cc[0x0]&&_0x1208dc[0x1]===_0x1066cc[0x1]);});if(_0x1a9ce0[_0x634340(0x97)]<0x3)continue;const _0x393116=_0x1a9ce0[0x0],_0x35ed40=_0x1a9ce0[_0x1a9ce0[_0x634340(0x97)]-0x1];(_0x393116[0x0]!==_0x35ed40[0x0]||_0x393116[0x1]!==_0x35ed40[0x1])&&_0x1a9ce0[_0x634340(0xad)]([_0x393116[0x0],_0x393116[0x1]]),_0x3df956[_0x634340(0xad)]({'type':_0x634340(0x8c),'properties':{'z':_0x95ed4e},'geometry':{'type':'Polygon','coordinates':[_0x1a9ce0]}});}}}return _0x3df956=this[_0x634340(0xac)](_0x3df956),{'type':_0x634340(0x93),'features':_0x3df956};}['getColorFast'](_0x4fa4f7,_0x6dfe79,_0x181574){const _0x2dc032=a3_0x3067b7;let _0x5b2403='rgba(255,255,255,0)';const _0x143e45=_0x6dfe79['indexOf'](_0x4fa4f7);if(typeof _0x181574[_0x143e45]==_0x2dc032(0xa3))_0x5b2403=_0x181574[_0x143e45];else _0x143e45!==-0x1&&(_0x5b2403=_0x2dc032(0xc8)+_0x181574[_0x143e45][0x0]+','+_0x181574[_0x143e45][0x1]+','+_0x181574[_0x143e45][0x2]+','+(_0x181574[_0x143e45][0x3]||_0x181574[_0x143e45][0x3]===0x0?_0x181574[_0x143e45][0x3]:0x1)+')');return _0x5b2403;}async[a3_0x3067b7(0xa6)](_0x1fb9b9,_0x559877,_0x5d9e9b,_0x43ac01){const _0x475341=a3_0x3067b7,_0x12612f=_0x43ac01?_0x43ac01:navigator[_0x475341(0xb9)]-0x4||0x1,_0x22950a=Math[_0x475341(0x96)](_0x12612f,Math['max'](0x1,_0x1fb9b9['features'][_0x475341(0x97)])),_0x475228=this[_0x475341(0xa0)](_0x1fb9b9[_0x475341(0xcb)],_0x22950a),_0x2a6a10=[],_0x50a4b6=_0x475228[_0x475341(0xd9)](_0x36c052=>{const _0x1199fb=_0x475341,_0x2778f6=new Worker(_0x5d9e9b,{'type':'module'});return _0x2a6a10[_0x1199fb(0xad)](_0x2778f6),new Promise(_0xc5b05c=>{const _0x4698df=_0x1199fb;_0x2778f6[_0x4698df(0xbd)]=_0xda1806=>{const _0x5a7af8=_0x4698df;_0xc5b05c(_0xda1806[_0x5a7af8(0x91)][_0x5a7af8(0xcb)]);},_0x2778f6['onerror']=_0x1b7835=>{const _0x1f1919=_0x4698df;console[_0x1f1919(0x9d)](_0x1b7835);},_0x2778f6[_0x4698df(0xc3)]({'isoChunk':_0x36c052,'gansuFeatures':_0x559877[_0x4698df(0xcb)]});});}),_0x16a9a8=await Promise['all'](_0x50a4b6);_0x2a6a10[_0x475341(0xda)](_0x77c826=>_0x77c826[_0x475341(0xb8)]());const _0x9fc314=_0x16a9a8[_0x475341(0xb2)]();return a3_0x39625f(_0x9fc314);}async[a3_0x3067b7(0xd8)](_0x5dab85,_0x2c7e27,_0x556f17){const _0x4290dd=a3_0x3067b7;if(this[_0x4290dd(0x98)][_0x4290dd(0x97)]===0x0)return{'type':_0x4290dd(0x93),'features':[]};let _0x369e89=[];if(_0x5dab85[_0x4290dd(0x97)]===0x0)_0x5dab85=this[_0x4290dd(0x95)]();const _0x44eade=[],_0x3377e0=_0x556f17?_0x556f17:navigator[_0x4290dd(0xb9)]-0x4||0x1,_0x51dbdf=Math[_0x4290dd(0x96)](_0x3377e0,Math['max'](0x1,_0x5dab85['length'])),_0x3dc93a=this[_0x4290dd(0xa0)](_0x5dab85,_0x51dbdf),_0x389253=_0x3dc93a[_0x4290dd(0xd9)](_0x28a57b=>{const _0x54d4a6=_0x4290dd,_0x219bf7=new Worker(_0x2c7e27,{'type':'module'});return _0x44eade[_0x54d4a6(0xad)](_0x219bf7),new Promise(_0x56498b=>{const _0x4c9b19=_0x54d4a6;_0x219bf7[_0x4c9b19(0xbd)]=_0x4fa46b=>{const _0x2f0e83=_0x4c9b19;_0x56498b(_0x4fa46b[_0x2f0e83(0x91)][_0x2f0e83(0xcb)]);},_0x219bf7[_0x4c9b19(0x99)]=_0x1b0073=>{const _0x1d3a74=_0x4c9b19;console[_0x1d3a74(0x9d)](_0x1b0073);},_0x219bf7['postMessage']({'breaks':_0x28a57b,'values':this[_0x4c9b19(0x98)],'nx':this['nx'],'ny':this['ny'],'minVal':this[_0x4c9b19(0xb7)],'maxVal':this['maxVal'],'minLng':this[_0x4c9b19(0xcd)],'minLat':this[_0x4c9b19(0xa1)],'gjLng':this[_0x4c9b19(0xca)],'gjLat':this[_0x4c9b19(0xc0)]});});}),_0x584178=await Promise['all'](_0x389253);return _0x44eade[_0x4290dd(0xda)](_0x3ae2f6=>_0x3ae2f6[_0x4290dd(0xb8)]()),_0x584178['forEach'](_0x3f2a9f=>{_0x369e89['push'](..._0x3f2a9f);}),_0x369e89=this[_0x4290dd(0xac)](_0x369e89),{'type':_0x4290dd(0x93),'features':_0x369e89};}['clearMaskCache'](){const _0xd479ea=a3_0x3067b7;this[_0xd479ea(0xc7)][_0xd479ea(0xc5)]();}['getIsoBandsByLayerBreak'](_0x1d373e=[],_0x3d3d59){const _0x3b4e1b=a3_0x3067b7;if(typeof _0x3d3d59!=='undefined'&&this[_0x3b4e1b(0xc7)][_0x3b4e1b(0xcc)](_0x3d3d59)){const _0x3dd1ee=this[_0x3b4e1b(0xc7)][_0x3b4e1b(0xcc)](_0x3d3d59)||[],_0x4b6c72=this['sortFeaturesByArea']?this[_0x3b4e1b(0xac)](_0x3dd1ee):_0x3dd1ee;return{'type':'FeatureCollection','features':_0x4b6c72};}if(this['values'][_0x3b4e1b(0x97)]===0x0)return{'type':'FeatureCollection','features':[]};if(_0x1d373e[_0x3b4e1b(0x97)]===0x0)_0x1d373e=this[_0x3b4e1b(0x95)]();const _0x447a16=_0x1d373e[_0x3b4e1b(0xc2)](',');if(this[_0x3b4e1b(0x9b)]!==_0x447a16){this['_maskCacheKey']=_0x447a16,this[_0x3b4e1b(0xc7)][_0x3b4e1b(0xc5)]();const _0x56e639=this['minLng'],_0x344828=this[_0x3b4e1b(0xa1)],_0x2f4e38=this[_0x3b4e1b(0xca)],_0x96ec2c=this['gjLat'],_0x1f36aa=_0x4fceb2=>{const _0x568475=_0x3b4e1b;let _0xdd6525=0x0;for(let _0x399a6c=0x0,_0x366629=_0x4fceb2[_0x568475(0x97)];_0x399a6c<_0x366629;_0x399a6c++){const _0x2c7daa=_0x4fceb2[_0x399a6c][0x0],_0x884a5c=_0x4fceb2[_0x399a6c][0x1],_0x1c7fec=_0x4fceb2[(_0x399a6c+0x1)%_0x366629][0x0],_0xfcc32b=_0x4fceb2[(_0x399a6c+0x1)%_0x366629][0x1];if(_0x2c7daa==null||_0x884a5c==null||_0x1c7fec==null||_0xfcc32b==null)continue;_0xdd6525+=_0x2c7daa*_0xfcc32b-_0x1c7fec*_0x884a5c;}return _0xdd6525/0x2;},_0x11c61a=(_0x25ed18,_0x440af7)=>{const _0x15abff=_0x3b4e1b;if(!_0x25ed18)return![];const _0x435373=_0x25ed18[0x0],_0x2f9ab8=_0x25ed18[0x1];let _0x4bc8ea=![];for(let _0x2ac60b=0x0,_0x469370=_0x440af7[_0x15abff(0x97)]-0x1;_0x2ac60b<_0x440af7['length'];_0x469370=_0x2ac60b++){const _0xfc3634=_0x440af7[_0x2ac60b][0x0],_0x5a5541=_0x440af7[_0x2ac60b][0x1],_0x51b1f3=_0x440af7[_0x469370][0x0],_0x3719cf=_0x440af7[_0x469370][0x1],_0x52a7b1=_0x5a5541>_0x2f9ab8!==_0x3719cf>_0x2f9ab8&&_0x435373<(_0x51b1f3-_0xfc3634)*(_0x2f9ab8-_0x5a5541)/(_0x3719cf-_0x5a5541)+_0xfc3634;if(_0x52a7b1)_0x4bc8ea=!_0x4bc8ea;}return _0x4bc8ea;},_0x312cfe=_0x439903=>{const _0xd29b22=_0x3b4e1b,_0x4a868a=[];let _0x471065=null,_0x30fe31=null;for(let _0x2aad98=0x0;_0x2aad98<_0x439903[_0xd29b22(0x97)];_0x2aad98++){const _0x31361a=_0x439903[_0x2aad98];if(!_0x31361a)continue;const _0xfa2e0a=_0x31361a[0x0],_0xc2c22a=_0x31361a[0x1];if(_0xfa2e0a==null||_0xc2c22a==null||Number[_0xd29b22(0xcf)](_0xfa2e0a)||Number[_0xd29b22(0xcf)](_0xc2c22a))continue;const _0x11e668=_0x56e639+_0xfa2e0a*_0x2f4e38,_0x571779=_0x344828+_0xc2c22a*_0x96ec2c;if(_0x471065!==null&&_0x30fe31!==null&&_0x471065===_0x11e668&&_0x30fe31===_0x571779){_0x471065=_0x11e668,_0x30fe31=_0x571779;continue;}_0x4a868a[_0xd29b22(0xad)]([_0x11e668,_0x571779]),_0x471065=_0x11e668,_0x30fe31=_0x571779;}if(_0x4a868a[_0xd29b22(0x97)]===0x0)return _0x4a868a;const _0x15a4c6=_0x4a868a[0x0],_0xd30b29=_0x4a868a[_0x4a868a[_0xd29b22(0x97)]-0x1];if(_0x15a4c6[0x0]!==_0xd30b29[0x0]||_0x15a4c6[0x1]!==_0xd30b29[0x1])_0x4a868a[_0xd29b22(0xad)]([_0x15a4c6[0x0],_0x15a4c6[0x1]]);return _0x4a868a;},_0x11205f=_0x1d373e['length']-0x1;for(let _0x12097c=0x0;_0x12097c<_0x1d373e[_0x3b4e1b(0x97)];_0x12097c++){const _0x113fb5=_0x1d373e[_0x12097c],_0x57cbbd=_0x12097c<_0x11205f?_0x1d373e[_0x12097c+0x1]:Infinity,_0x2ac7e1=Array[_0x3b4e1b(0xd1)]({'length':this[_0x3b4e1b(0x98)][_0x3b4e1b(0x97)]});let _0xd879fe=![];for(let _0x4b4368=0x0;_0x4b4368<this[_0x3b4e1b(0x98)]['length'];_0x4b4368++){const _0x4c6e2=this['values'][_0x4b4368],_0x1b86d1=_0x4c6e2>=_0x113fb5&&_0x4c6e2<_0x57cbbd?0x1:0x0;if(_0x1b86d1)_0xd879fe=!![];_0x2ac7e1[_0x4b4368]=_0x1b86d1;}if(!_0xd879fe)continue;const _0x38809a=contours()['size']([this['nx'],this['ny']])[_0x3b4e1b(0x90)]([0.5]),_0x37b4e5=_0x38809a[_0x3b4e1b(0xd4)]?_0x38809a[_0x3b4e1b(0xd4)](_0x2ac7e1):_0x38809a(_0x2ac7e1);if(!_0x37b4e5||_0x37b4e5['length']===0x0)continue;const _0x57cc08=[];for(const _0x387957 of _0x37b4e5){const _0x86b5da=_0x387957&&_0x387957['coordinates'];if(!_0x86b5da)continue;for(const _0xed480f of _0x86b5da){let _0x34e77a=[];if(Array[_0x3b4e1b(0xa8)](_0xed480f)&&_0xed480f[_0x3b4e1b(0x97)]>0x0&&typeof _0xed480f[0x0][0x0]==='number')_0x34e77a=[_0xed480f];else{if(Array['isArray'](_0xed480f))_0x34e77a=_0xed480f;else continue;}const _0x479843=_0x34e77a[_0x3b4e1b(0xd9)](_0x183d44=>({'ring':_0x183d44,'area':Math[_0x3b4e1b(0x8f)](_0x1f36aa(_0x183d44))}))[_0x3b4e1b(0x9f)]((_0x347764,_0x33a3dc)=>_0x33a3dc[_0x3b4e1b(0xb4)]-_0x347764[_0x3b4e1b(0xb4)]),_0x588054=Array[_0x3b4e1b(0xd1)]({'length':_0x479843['length']})[_0x3b4e1b(0xbf)](![]);for(let _0x59c702=0x0;_0x59c702<_0x479843[_0x3b4e1b(0x97)];_0x59c702++){if(_0x588054[_0x59c702])continue;const _0xa9f39=_0x479843[_0x59c702][_0x3b4e1b(0xb6)];_0x588054[_0x59c702]=!![];const _0x3d1bbb=[];for(let _0x8a88d2=0x0;_0x8a88d2<_0x479843[_0x3b4e1b(0x97)];_0x8a88d2++){if(_0x588054[_0x8a88d2])continue;const _0x398491=_0x479843[_0x8a88d2]['ring'],_0x3ba4bc=_0x398491[0x0];_0x3ba4bc&&_0x11c61a(_0x3ba4bc,_0xa9f39)&&(_0x3d1bbb[_0x3b4e1b(0xad)](_0x398491),_0x588054[_0x8a88d2]=!![]);}const _0x5e079c=_0x312cfe(_0xa9f39);if(_0x5e079c['length']<0x4)continue;const _0xdc697e=[];for(const _0x3d546e of _0x3d1bbb){const _0x716e2a=_0x312cfe(_0x3d546e);if(_0x716e2a[_0x3b4e1b(0x97)]>=0x4)_0xdc697e[_0x3b4e1b(0xad)](_0x716e2a);}_0x57cc08[_0x3b4e1b(0xad)]({'type':_0x3b4e1b(0x8c),'properties':{'z':_0x113fb5},'geometry':{'type':_0x3b4e1b(0xaa),'coordinates':[_0x5e079c,..._0xdc697e]}});}}}_0x57cc08['length']&&this[_0x3b4e1b(0xc7)]['set'](_0x113fb5,_0x57cc08);}}if(typeof _0x3d3d59!==_0x3b4e1b(0xc9)){const _0x20f1e5=this[_0x3b4e1b(0xc7)][_0x3b4e1b(0xcc)](_0x3d3d59)||[],_0x5093f0=this['sortFeaturesByArea']?this[_0x3b4e1b(0xac)](_0x20f1e5):_0x20f1e5;return{'type':'FeatureCollection','features':_0x5093f0};}const _0xc99210=[];for(const _0x34d7d9 of this['_maskCache'][_0x3b4e1b(0x98)]()){_0xc99210['push'](..._0x34d7d9);}const _0x1138fc=this[_0x3b4e1b(0xac)]?this['sortFeaturesByArea'](_0xc99210):_0xc99210;return{'type':_0x3b4e1b(0x93),'features':_0x1138fc};}[a3_0x3067b7(0xa2)](){const _0x9cded=a3_0x3067b7,_0x2de815=Array[_0x9cded(0xd1)]({'length':this['nx']});for(let _0x39bfbc=0x0;_0x39bfbc<this['nx'];_0x39bfbc++){_0x2de815[_0x39bfbc]=new a3_0x31e825(this[_0x9cded(0xcd)])[_0x9cded(0xaf)](new a3_0x31e825(_0x39bfbc)[_0x9cded(0xb3)](this['gjLng']))[_0x9cded(0xce)]();}const _0x154efe=Array[_0x9cded(0xd1)]({'length':this['ny']});for(let _0x308036=0x0;_0x308036<this['ny'];_0x308036++){_0x154efe[_0x308036]=new a3_0x31e825(this[_0x9cded(0xa1)])[_0x9cded(0xaf)](new a3_0x31e825(_0x308036)[_0x9cded(0xb3)](this['gjLat']))[_0x9cded(0xce)]();}const _0x5d05ca=Array[_0x9cded(0xd1)]({'length':this['nx']*this['ny']});for(let _0x4e9016=0x0;_0x4e9016<this[_0x9cded(0x98)][_0x9cded(0x97)];_0x4e9016++){const _0x139fb8=Math['floor'](_0x4e9016/this['nx']),_0x60ba17=_0x4e9016%this['nx'],_0x30b95e=_0x2de815[_0x60ba17],_0x4d7ed4=_0x154efe[_0x139fb8],_0x303473=this[_0x9cded(0x98)][_0x4e9016];_0x4d7ed4&&_0x30b95e&&(_0x5d05ca[_0x4e9016]={'lng':_0x30b95e,'lat':_0x4d7ed4,'val':_0x303473});}return _0x5d05ca;}[a3_0x3067b7(0xd3)](){const _0x544126=a3_0x3067b7;let _0x1a729a=-Infinity,_0x3a3334=Infinity;for(let _0x23963f=0x0;_0x23963f<this[_0x544126(0x98)][_0x544126(0x97)];_0x23963f++){const _0x3bfd05=this[_0x544126(0x98)][_0x23963f];if(_0x3bfd05>_0x1a729a)_0x1a729a=_0x3bfd05;if(_0x3bfd05<_0x3a3334)_0x3a3334=_0x3bfd05;}this['minVal']=_0x3a3334,this[_0x544126(0xd7)]=_0x1a729a;}['getBreaks'](){const _0x34d204=a3_0x3067b7,_0x37a157=[];if(this['minVal']===Infinity||this['maxVal']===-Infinity)return _0x37a157;for(let _0x4fe7a2=this['minVal']-0x1;_0x4fe7a2<=this[_0x34d204(0xd7)]+0x1;_0x4fe7a2++){_0x37a157[_0x34d204(0xad)](_0x4fe7a2);}return _0x37a157;}[a3_0x3067b7(0xac)](_0x48cab8){const _0x529b0e=a3_0x3067b7;return _0x48cab8[_0x529b0e(0xd9)](_0x52f3d9=>{const _0x222b6a=_0x529b0e;try{const _0x11d909=a3_0x573b69(_0x52f3d9)||0x0;_0x52f3d9['properties']={..._0x52f3d9[_0x222b6a(0x8d)]||{},'__area':_0x11d909};}catch{_0x52f3d9[_0x222b6a(0x8d)]={..._0x52f3d9['properties']||{},'__area':0x0};}return _0x52f3d9;})[_0x529b0e(0x9f)]((_0x422dd9,_0x2f0b0e)=>_0x2f0b0e['properties'][_0x529b0e(0xc6)]-_0x422dd9[_0x529b0e(0x8d)][_0x529b0e(0xc6)])[_0x529b0e(0xae)](_0x4f394f=>_0x4f394f[_0x529b0e(0x8d)]&&_0x529b0e(0xc6)in _0x4f394f[_0x529b0e(0x8d)]&&_0x4f394f[_0x529b0e(0x8d)]['__area']!==0x0)[_0x529b0e(0xd9)](_0x255e0c=>{const _0xc541d0=_0x529b0e;if(_0x255e0c['properties']&&_0xc541d0(0xc6)in _0x255e0c[_0xc541d0(0x8d)]){const {__area:_0x4962a4,..._0x42ec37}=_0x255e0c[_0xc541d0(0x8d)];_0x255e0c[_0xc541d0(0x8d)]=_0x42ec37;}return _0x255e0c;});}['chunkArray']=(_0x4379fc,_0x337ddf)=>{const _0x193aa4=a3_0x3067b7,_0x1610db=[],_0x55b2db=Math[_0x193aa4(0xbc)](0x1,Math[_0x193aa4(0x94)](_0x4379fc['length']/_0x337ddf));for(let _0x4002ee=0x0;_0x4002ee<_0x337ddf;_0x4002ee++){_0x1610db['push'](_0x4379fc[_0x193aa4(0xdb)](_0x4002ee*_0x55b2db,(_0x4002ee+0x1)*_0x55b2db));}return _0x1610db;};}export default readFileM4;
|